{"version":3,"sources":["webpack:///./src/app/shared/featured-photos/featured-photos.component.ts","webpack:///./src/app/shared/featured-photos.module.ts","webpack:///./src/app/shared/featured-photos/featured-photos.component.ngfactory.js.pre-build-optimizer.js","webpack:///./src/app/shared/featured-photos/featured-photos.component.html"],"names":["__webpack_require__","d","__webpack_exports__","FeaturedPhotosComponent","_environments_environment__WEBPACK_IMPORTED_MODULE_0__","getService","router","elem","this","featuredImageThumbnails","featuredImages","maxDisplayedImageCount","bucket","bucketUrl","prototype","onClick","_this","nativeElement","querySelector","addEventListener","e","target","closest","ngxImageGallery","close","ngOnInit","galleryConf","showDeleteControl","getFeaturedImages","subscribe","data","slice","map","image","url","filePath","altText","blurb","title","FeaturedPhotosModule","RenderType_FeaturedPhotosComponent","View_FeaturedPhotosComponent_0","_angular_core__WEBPACK_IMPORTED_MODULE_0__","_node_modules_ngx_image_gallery_ngx_image_gallery_ngfactory__WEBPACK_IMPORTED_MODULE_1__","ngx_image_gallery__WEBPACK_IMPORTED_MODULE_2__","_angular_router__WEBPACK_IMPORTED_MODULE_3__","_angular_common__WEBPACK_IMPORTED_MODULE_4__","_directives_noSSR_directive__WEBPACK_IMPORTED_MODULE_5__","encapsulation","styles","View_FeaturedPhotosComponent_1","_l","_v","en","$event","ad","onKeyboardInput","onWindowResize","conf","images","_ck","_co","component","opened","View_FeaturedPhotosComponent_3","open","context","index","button","ctrlKey","metaKey","shiftKey","routerLink","currVal_6","$implicit","userUrl","thumbnail","userName","href","View_FeaturedPhotosComponent_2","ngForOf","View_FeaturedPhotosComponent_4","ngIf","length"],"mappings":"2FAIAA,EAAAC,EAAAC,EAAA,sBAAAC,IAAA,IAAAC,EAAAJ,EAAA,QAEAG,EAAA,WA6BE,SAAAA,EAAoBE,EAAgCC,EAAwBC,GAAxDC,KAAAH,aAAgCG,KAAAF,SAAwBE,KAAAD,OAxBrEC,KAAAC,wBAAiC,GACjCD,KAAAE,eAAkC,GAEjCF,KAAAG,uBAAyB,GAE1BH,KAAAI,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,MAAAT,EAAA,uCAAAqC,IAAArC,EAAA,4BAAAI,EAAA,MAAAJ,EAAA,iBAAAA,EAAA,cAAAwC,KAAA,mBAAgqB/B,MAAAT,EAAA,uCAAAuC,IAAAvC,EAAA,4BAAAI,EAAA,MAAAJ,EAAA,iBAAAA,EAAA,cAAAwC,KAAA,mBAA2E,SAAAtB,EAAAR,GAAA,IAAAS,EAAAT,EAAAU,UAFr1BF,EAAAR,EAAA,KAE0GQ,EAAAR,EAAA,IAA8BS,EAAAnD,eAAAyE,OAAA,GAAAtB,EAAApD,wBAAA0E,OAAA,GAAkoBvB,EAAAR,EAAA,IAAGS,EAAAnD,eAAAyE,OAAA,GAAAtB,EAAApD,wBAAA0E,OAAA,IAAuE","file":"common.5e2c60cb041a20666b3f.js","sourcesContent":["import { Component, OnInit, ElementRef, ViewChild, HostListener } from '@angular/core';\nimport { GetService } from '../../../services/getService.client.service';\nimport { NgxImageGalleryComponent, GALLERY_CONF, GALLERY_IMAGE } from 'ngx-image-gallery';\nimport { Router } from '@angular/router';\nimport { environment } from '../../../environments/environment';\n\n@Component({\n  selector: 'featured-photos',\n  templateUrl: './featured-photos.component.html'\n})\nexport class FeaturedPhotosComponent implements OnInit {\n  public featuredImageThumbnails: any[] = [];\n  public featuredImages: GALLERY_IMAGE[] = [];\n  public galleryConf: GALLERY_CONF;\n  private maxDisplayedImageCount = 12;\n\n  public bucket: string = environment.bucketUrl;\n\n  @ViewChild(NgxImageGalleryComponent)\n  ngxImageGallery: NgxImageGalleryComponent;\n\n  // close gallery on outside click\n  @HostListener('document:click', ['$event.target'])\n  public onClick() {\n    if (this.elem.nativeElement.querySelector('.galleria')) {\n      this.elem.nativeElement.querySelector('.galleria').addEventListener('click', (e: any) => {\n        if (typeof e.target.closest === 'function') {\n          if (!e.target.closest('img') && !e.target.closest('.control') && !e.target.closest('.thumbnail')) {\n            this.ngxImageGallery.close();\n          }\n        }\n      });\n    }\n  }\n\n  constructor(private getService: GetService, private router: Router, private elem: ElementRef) {}\n\n  ngOnInit(): void {\n    this.galleryConf = {\n      showDeleteControl: false\n    };\n\n    this.getService.getFeaturedImages().subscribe((data: any[]) => {\n      this.featuredImageThumbnails = data.slice(0, this.maxDisplayedImageCount);\n      this.featuredImages = data.slice(0, this.maxDisplayedImageCount).map(image => {\n        return { url: this.bucket + image.filePath, altText: image.blurb, title: image.blurb };\n      });\n    });\n  }\n}\n","import { NgModule } from '@angular/core';\nimport { FeaturedPhotosComponent } from './featured-photos/featured-photos.component';\nimport { SharedModule } from './shared.module';\n\n@NgModule({\n  imports: [SharedModule],\n  declarations: [FeaturedPhotosComponent],\n  providers: [],\n  exports: [FeaturedPhotosComponent]\n})\nexport class FeaturedPhotosModule {}\n","/**\n * @fileoverview This file was generated by the Angular template compiler. Do not edit.\n *\n * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}\n * tslint:disable\n */ \nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"../../../../node_modules/ngx-image-gallery/ngx-image-gallery.ngfactory\";\nimport * as i2 from \"ngx-image-gallery\";\nimport * as i3 from \"@angular/router\";\nimport * as i4 from \"@angular/common\";\nimport * as i5 from \"../../../directives/noSSR.directive\";\nimport * as i6 from \"./featured-photos.component\";\nimport * as i7 from \"../../../services/getService.client.service\";\nvar styles_FeaturedPhotosComponent = [];\nvar RenderType_FeaturedPhotosComponent = i0.ɵcrt({ encapsulation: 2, styles: styles_FeaturedPhotosComponent, data: {} });\nexport { RenderType_FeaturedPhotosComponent as RenderType_FeaturedPhotosComponent };\nfunction View_FeaturedPhotosComponent_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, \"ngx-image-gallery\", [], [[2, \"active\", null]], [[\"window\", \"keydown\"], [\"window\", \"resize\"]], function (_v, en, $event) { var ad = true; if ((\"window:keydown\" === en)) {\n        var pd_0 = (i0.ɵnov(_v, 1).onKeyboardInput($event) !== false);\n        ad = (pd_0 && ad);\n    } if ((\"window:resize\" === en)) {\n        var pd_1 = (i0.ɵnov(_v, 1).onWindowResize($event) !== false);\n        ad = (pd_1 && ad);\n    } return ad; }, i1.View_NgxImageGalleryComponent_0, i1.RenderType_NgxImageGalleryComponent)), i0.ɵdid(1, 638976, [[1, 4]], 0, i2.NgxImageGalleryComponent, [i0.ElementRef, i0.Renderer2], { conf: [0, \"conf\"], images: [1, \"images\"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_1 = _co.galleryConf; var currVal_2 = _co.featuredImages; _ck(_v, 1, 0, currVal_1, currVal_2); }, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 1).opened; _ck(_v, 0, 0, currVal_0); }); }\nfunction View_FeaturedPhotosComponent_3(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 7, \"div\", [[\"class\", \"col-4 col-md-2 mb-4\"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 2, \"div\", [[\"class\", \"thumbnail-wrapper d-flex justify-content-center align-items-center\"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, \"a\", [], [[8, \"title\", 0]], [[null, \"click\"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if ((\"click\" === en)) {\n        var pd_0 = (_co.ngxImageGallery.open(_v.context.index) !== false);\n        ad = (pd_0 && ad);\n    } return ad; }, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 0, \"img\", [], [[8, \"src\", 4], [8, \"title\", 0]], null, null, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 3, \"a\", [[\"class\", \"user-name d-block\"]], [[8, \"title\", 0], [1, \"target\", 0], [8, \"href\", 4]], [[null, \"click\"]], function (_v, en, $event) { var ad = true; if ((\"click\" === en)) {\n        var pd_0 = (i0.ɵnov(_v, 5).onClick($event.button, $event.ctrlKey, $event.metaKey, $event.shiftKey) !== false);\n        ad = (pd_0 && ad);\n    } return ad; }, null, null)), i0.ɵdid(5, 671744, null, 0, i3.RouterLinkWithHref, [i3.Router, i3.ActivatedRoute, i4.LocationStrategy], { routerLink: [0, \"routerLink\"] }, null), i0.ɵpad(6, 1), (_l()(), i0.ɵted(7, null, [\"\", \"\"]))], function (_ck, _v) { var currVal_6 = _ck(_v, 6, 0, _v.context.$implicit.userUrl); _ck(_v, 5, 0, currVal_6); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = _v.context.$implicit.blurb; _ck(_v, 2, 0, currVal_0); var currVal_1 = i0.ɵinlineInterpolate(2, \"\", _co.bucket, \"/\", _v.context.$implicit.thumbnail, \"\"); var currVal_2 = _v.context.$implicit.blurb; _ck(_v, 3, 0, currVal_1, currVal_2); var currVal_3 = _v.context.$implicit.userName; var currVal_4 = i0.ɵnov(_v, 5).target; var currVal_5 = i0.ɵnov(_v, 5).href; _ck(_v, 4, 0, currVal_3, currVal_4, currVal_5); var currVal_7 = _v.context.$implicit.userName; _ck(_v, 7, 0, currVal_7); }); }\nfunction View_FeaturedPhotosComponent_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, \"div\", [[\"class\", \"photos-container\"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 2, \"div\", [[\"class\", \"thumbnails-container row\"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_FeaturedPhotosComponent_3)), i0.ɵdid(3, 278528, null, 0, i4.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, \"ngForOf\"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.featuredImageThumbnails; _ck(_v, 3, 0, currVal_0); }, null); }\nfunction View_FeaturedPhotosComponent_4(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, \"p\", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [\" No member photos \"]))], null, null); }\nexport function View_FeaturedPhotosComponent_0(_l) { return i0.ɵvid(0, [i0.ɵqud(671088640, 1, { ngxImageGallery: 0 }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_FeaturedPhotosComponent_1)), i0.ɵdid(2, 81920, null, 0, i5.NoSsrDirective, [i0.TemplateRef, i0.ViewContainerRef, i0.PLATFORM_ID], null, null), (_l()(), i0.ɵeld(3, 0, null, null, 6, \"div\", [[\"id\", \"featured-photos\"]], null, null, null, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 1, \"h3\", [[\"class\", \"heading\"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [\"Member Photos\"])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_FeaturedPhotosComponent_2)), i0.ɵdid(7, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, \"ngIf\"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_FeaturedPhotosComponent_4)), i0.ɵdid(9, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, \"ngIf\"] }, null)], function (_ck, _v) { var _co = _v.component; _ck(_v, 2, 0); var currVal_0 = ((_co.featuredImages.length > 0) && (_co.featuredImageThumbnails.length > 0)); _ck(_v, 7, 0, currVal_0); var currVal_1 = ((_co.featuredImages.length < 1) && (_co.featuredImageThumbnails.length < 1)); _ck(_v, 9, 0, currVal_1); }, null); }\nexport function View_FeaturedPhotosComponent_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, \"featured-photos\", [], null, [[\"document\", \"click\"]], function (_v, en, $event) { var ad = true; if ((\"document:click\" === en)) {\n        var pd_0 = (i0.ɵnov(_v, 1).onClick($event.target) !== false);\n        ad = (pd_0 && ad);\n    } return ad; }, View_FeaturedPhotosComponent_0, RenderType_FeaturedPhotosComponent)), i0.ɵdid(1, 114688, null, 0, i6.FeaturedPhotosComponent, [i7.GetService, i3.Router, i0.ElementRef], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }\nvar FeaturedPhotosComponentNgFactory = i0.ɵccf(\"featured-photos\", i6.FeaturedPhotosComponent, View_FeaturedPhotosComponent_Host_0, {}, {}, []);\nexport { FeaturedPhotosComponentNgFactory as FeaturedPhotosComponentNgFactory };\n","<ngx-image-gallery [images]=\"featuredImages\" [conf]=\"galleryConf\" *noSSR></ngx-image-gallery>\n<div id=\"featured-photos\">\n  <h3 class=\"heading\">Member Photos</h3>\n  <div class=\"photos-container\" *ngIf=\"featuredImages.length > 0 && featuredImageThumbnails.length > 0\">\n    <div class=\"thumbnails-container row\">\n      <div class=\"col-4 col-md-2 mb-4\" *ngFor=\"let thumb of featuredImageThumbnails; let i = index\">\n        <div class=\"thumbnail-wrapper d-flex justify-content-center align-items-center\">\n          <a [title]=\"thumb.blurb\" (click)=\"ngxImageGallery.open(i)\">\n            <img src=\"{{ bucket }}/{{ thumb.thumbnail }}\" [title]=\"thumb.blurb\" />\n          </a>\n        </div>\n        <a class=\"user-name d-block\" [routerLink]=\"[thumb.userUrl]\" [title]=\"thumb.userName\">{{ thumb.userName }}</a>\n      </div>\n    </div>\n  </div>\n  <p *ngIf=\"featuredImages.length < 1 && featuredImageThumbnails.length < 1\">\n    No member photos\n  </p>\n</div>\n"],"sourceRoot":""}