source: trip-planner-front/node_modules/.cache/babel-webpack/1ce9b5548c86cd5bd8d1ac64274eb9b3.json

Last change on this file was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago

adding photos

  • Property mode set to 100644
File size: 177.2 KB
Line 
1{"ast":null,"code":"import * as i0 from '@angular/core';\nimport { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ViewChild, Output, ContentChildren, NgModule } from '@angular/core';\nimport * as i2 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i1 from 'primeng/api';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\nimport { ZIndexUtils, UniqueComponentId } from 'primeng/utils';\nimport { DomHandler } from 'primeng/dom';\nimport * as i3 from 'primeng/ripple';\nimport { RippleModule } from 'primeng/ripple';\nimport { trigger, transition, style, animate } from '@angular/animations';\nconst _c0 = [\"mask\"];\n\nconst _c1 = function (a0, a1) {\n return {\n showTransitionParams: a0,\n hideTransitionParams: a1\n };\n};\n\nconst _c2 = function (a1) {\n return {\n value: \"visible\",\n params: a1\n };\n};\n\nfunction Galleria_div_0_div_1_p_galleriaContent_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r7 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"p-galleriaContent\", 6);\n i0.ɵɵlistener(\"@animation.start\", function Galleria_div_0_div_1_p_galleriaContent_2_Template_p_galleriaContent_animation_animation_start_0_listener($event) {\n i0.ɵɵrestoreView(_r7);\n const ctx_r6 = i0.ɵɵnextContext(3);\n return ctx_r6.onAnimationStart($event);\n })(\"@animation.done\", function Galleria_div_0_div_1_p_galleriaContent_2_Template_p_galleriaContent_animation_animation_done_0_listener($event) {\n i0.ɵɵrestoreView(_r7);\n const ctx_r8 = i0.ɵɵnextContext(3);\n return ctx_r8.onAnimationEnd($event);\n })(\"maskHide\", function Galleria_div_0_div_1_p_galleriaContent_2_Template_p_galleriaContent_maskHide_0_listener() {\n i0.ɵɵrestoreView(_r7);\n const ctx_r9 = i0.ɵɵnextContext(3);\n return ctx_r9.onMaskHide();\n })(\"activeItemChange\", function Galleria_div_0_div_1_p_galleriaContent_2_Template_p_galleriaContent_activeItemChange_0_listener($event) {\n i0.ɵɵrestoreView(_r7);\n const ctx_r10 = i0.ɵɵnextContext(3);\n return ctx_r10.onActiveItemChange($event);\n });\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r5 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"@animation\", i0.ɵɵpureFunction1(8, _c2, i0.ɵɵpureFunction2(5, _c1, ctx_r5.showTransitionOptions, ctx_r5.hideTransitionOptions)))(\"value\", ctx_r5.value)(\"activeIndex\", ctx_r5.activeIndex)(\"numVisible\", ctx_r5.numVisible)(\"ngStyle\", ctx_r5.containerStyle);\n }\n}\n\nconst _c3 = function (a1) {\n return {\n \"p-galleria-mask p-component-overlay p-component-overlay-enter\": true,\n \"p-galleria-visible\": a1\n };\n};\n\nfunction Galleria_div_0_div_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 3, 4);\n i0.ɵɵtemplate(2, Galleria_div_0_div_1_p_galleriaContent_2_Template, 1, 10, \"p-galleriaContent\", 5);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r3 = i0.ɵɵnextContext(2);\n i0.ɵɵclassMap(ctx_r3.maskClass);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(4, _c3, ctx_r3.visible));\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r3.visible);\n }\n}\n\nfunction Galleria_div_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\");\n i0.ɵɵtemplate(1, Galleria_div_0_div_1_Template, 3, 6, \"div\", 2);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.maskVisible);\n }\n}\n\nfunction Galleria_ng_template_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r12 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"p-galleriaContent\", 7);\n i0.ɵɵlistener(\"activeItemChange\", function Galleria_ng_template_1_Template_p_galleriaContent_activeItemChange_0_listener($event) {\n i0.ɵɵrestoreView(_r12);\n const ctx_r11 = i0.ɵɵnextContext();\n return ctx_r11.onActiveItemChange($event);\n });\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"value\", ctx_r2.value)(\"activeIndex\", ctx_r2.activeIndex)(\"numVisible\", ctx_r2.numVisible);\n }\n}\n\nfunction GalleriaContent_div_0_button_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r6 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"button\", 8);\n i0.ɵɵlistener(\"click\", function GalleriaContent_div_0_button_1_Template_button_click_0_listener() {\n i0.ɵɵrestoreView(_r6);\n const ctx_r5 = i0.ɵɵnextContext(2);\n return ctx_r5.maskHide.emit();\n });\n i0.ɵɵelement(1, \"span\", 9);\n i0.ɵɵelementEnd();\n }\n}\n\nfunction GalleriaContent_div_0_div_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 10);\n i0.ɵɵelement(1, \"p-galleriaItemSlot\", 11);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"templates\", ctx_r2.galleria.templates);\n }\n}\n\nfunction GalleriaContent_div_0_p_galleriaThumbnails_5_Template(rf, ctx) {\n if (rf & 1) {\n const _r8 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"p-galleriaThumbnails\", 12);\n i0.ɵɵlistener(\"onActiveIndexChange\", function GalleriaContent_div_0_p_galleriaThumbnails_5_Template_p_galleriaThumbnails_onActiveIndexChange_0_listener($event) {\n i0.ɵɵrestoreView(_r8);\n const ctx_r7 = i0.ɵɵnextContext(2);\n return ctx_r7.onActiveIndexChange($event);\n })(\"stopSlideShow\", function GalleriaContent_div_0_p_galleriaThumbnails_5_Template_p_galleriaThumbnails_stopSlideShow_0_listener() {\n i0.ɵɵrestoreView(_r8);\n const ctx_r9 = i0.ɵɵnextContext(2);\n return ctx_r9.stopSlideShow();\n });\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r3 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"containerId\", ctx_r3.id)(\"value\", ctx_r3.value)(\"activeIndex\", ctx_r3.activeIndex)(\"templates\", ctx_r3.galleria.templates)(\"numVisible\", ctx_r3.numVisible)(\"responsiveOptions\", ctx_r3.galleria.responsiveOptions)(\"circular\", ctx_r3.galleria.circular)(\"isVertical\", ctx_r3.isVertical())(\"contentHeight\", ctx_r3.galleria.verticalThumbnailViewPortHeight)(\"showThumbnailNavigators\", ctx_r3.galleria.showThumbnailNavigators)(\"slideShowActive\", ctx_r3.slideShowActive);\n }\n}\n\nfunction GalleriaContent_div_0_div_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 13);\n i0.ɵɵelement(1, \"p-galleriaItemSlot\", 14);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r4 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"templates\", ctx_r4.galleria.templates);\n }\n}\n\nconst _c4 = function (a1, a2, a3) {\n return {\n \"p-galleria p-component\": true,\n \"p-galleria-fullscreen\": a1,\n \"p-galleria-indicator-onitem\": a2,\n \"p-galleria-item-nav-onhover\": a3\n };\n};\n\nconst _c5 = function () {\n return {};\n};\n\nfunction GalleriaContent_div_0_Template(rf, ctx) {\n if (rf & 1) {\n const _r11 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"div\", 1);\n i0.ɵɵtemplate(1, GalleriaContent_div_0_button_1_Template, 2, 0, \"button\", 2);\n i0.ɵɵtemplate(2, GalleriaContent_div_0_div_2_Template, 2, 1, \"div\", 3);\n i0.ɵɵelementStart(3, \"div\", 4);\n i0.ɵɵelementStart(4, \"p-galleriaItem\", 5);\n i0.ɵɵlistener(\"onActiveIndexChange\", function GalleriaContent_div_0_Template_p_galleriaItem_onActiveIndexChange_4_listener($event) {\n i0.ɵɵrestoreView(_r11);\n const ctx_r10 = i0.ɵɵnextContext();\n return ctx_r10.onActiveIndexChange($event);\n })(\"startSlideShow\", function GalleriaContent_div_0_Template_p_galleriaItem_startSlideShow_4_listener() {\n i0.ɵɵrestoreView(_r11);\n const ctx_r12 = i0.ɵɵnextContext();\n return ctx_r12.startSlideShow();\n })(\"stopSlideShow\", function GalleriaContent_div_0_Template_p_galleriaItem_stopSlideShow_4_listener() {\n i0.ɵɵrestoreView(_r11);\n const ctx_r13 = i0.ɵɵnextContext();\n return ctx_r13.stopSlideShow();\n });\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(5, GalleriaContent_div_0_p_galleriaThumbnails_5_Template, 1, 11, \"p-galleriaThumbnails\", 6);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(6, GalleriaContent_div_0_div_6_Template, 2, 1, \"div\", 7);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵclassMap(ctx_r0.galleriaClass());\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(20, _c4, ctx_r0.galleria.fullScreen, ctx_r0.galleria.showIndicatorsOnItem, ctx_r0.galleria.showItemNavigatorsOnHover && !ctx_r0.galleria.fullScreen))(\"ngStyle\", !ctx_r0.galleria.fullScreen ? ctx_r0.galleria.containerStyle : i0.ɵɵpureFunction0(24, _c5));\n i0.ɵɵattribute(\"id\", ctx_r0.id);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.galleria.fullScreen);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.galleria.templates && ctx_r0.galleria.headerFacet);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"value\", ctx_r0.value)(\"activeIndex\", ctx_r0.activeIndex)(\"circular\", ctx_r0.galleria.circular)(\"templates\", ctx_r0.galleria.templates)(\"showIndicators\", ctx_r0.galleria.showIndicators)(\"changeItemOnIndicatorHover\", ctx_r0.galleria.changeItemOnIndicatorHover)(\"indicatorFacet\", ctx_r0.galleria.indicatorFacet)(\"captionFacet\", ctx_r0.galleria.captionFacet)(\"showItemNavigators\", ctx_r0.galleria.showItemNavigators)(\"autoPlay\", ctx_r0.galleria.autoPlay)(\"slideShowActive\", ctx_r0.slideShowActive);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.galleria.showThumbnails);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.galleria.templates && ctx_r0.galleria.footerFacet);\n }\n}\n\nfunction GalleriaItemSlot_ng_container_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\n\nfunction GalleriaItemSlot_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, GalleriaItemSlot_ng_container_0_ng_container_1_Template, 1, 0, \"ng-container\", 1);\n i0.ɵɵelementContainerEnd();\n }\n\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.contentTemplate)(\"ngTemplateOutletContext\", ctx_r0.context);\n }\n}\n\nconst _c6 = function (a1) {\n return {\n \"p-galleria-item-prev p-galleria-item-nav p-link\": true,\n \"p-disabled\": a1\n };\n};\n\nfunction GalleriaItem_button_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r5 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"button\", 6);\n i0.ɵɵlistener(\"click\", function GalleriaItem_button_2_Template_button_click_0_listener($event) {\n i0.ɵɵrestoreView(_r5);\n const ctx_r4 = i0.ɵɵnextContext();\n return ctx_r4.navBackward($event);\n });\n i0.ɵɵelement(1, \"span\", 7);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(2, _c6, ctx_r0.isNavBackwardDisabled()))(\"disabled\", ctx_r0.isNavBackwardDisabled());\n }\n}\n\nconst _c7 = function (a1) {\n return {\n \"p-galleria-item-next p-galleria-item-nav p-link\": true,\n \"p-disabled\": a1\n };\n};\n\nfunction GalleriaItem_button_4_Template(rf, ctx) {\n if (rf & 1) {\n const _r7 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"button\", 6);\n i0.ɵɵlistener(\"click\", function GalleriaItem_button_4_Template_button_click_0_listener($event) {\n i0.ɵɵrestoreView(_r7);\n const ctx_r6 = i0.ɵɵnextContext();\n return ctx_r6.navForward($event);\n });\n i0.ɵɵelement(1, \"span\", 8);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(2, _c7, ctx_r1.isNavForwardDisabled()))(\"disabled\", ctx_r1.isNavForwardDisabled());\n }\n}\n\nfunction GalleriaItem_div_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 9);\n i0.ɵɵelement(1, \"p-galleriaItemSlot\", 10);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"item\", ctx_r2.activeItem)(\"templates\", ctx_r2.templates);\n }\n}\n\nfunction GalleriaItem_ul_6_li_1_button_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"button\", 16);\n }\n}\n\nconst _c8 = function (a1) {\n return {\n \"p-galleria-indicator\": true,\n \"p-highlight\": a1\n };\n};\n\nfunction GalleriaItem_ul_6_li_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r13 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"li\", 13);\n i0.ɵɵlistener(\"click\", function GalleriaItem_ul_6_li_1_Template_li_click_0_listener() {\n const restoredCtx = i0.ɵɵrestoreView(_r13);\n const index_r10 = restoredCtx.index;\n const ctx_r12 = i0.ɵɵnextContext(2);\n return ctx_r12.onIndicatorClick(index_r10);\n })(\"mouseenter\", function GalleriaItem_ul_6_li_1_Template_li_mouseenter_0_listener() {\n const restoredCtx = i0.ɵɵrestoreView(_r13);\n const index_r10 = restoredCtx.index;\n const ctx_r14 = i0.ɵɵnextContext(2);\n return ctx_r14.onIndicatorMouseEnter(index_r10);\n })(\"keydown.enter\", function GalleriaItem_ul_6_li_1_Template_li_keydown_enter_0_listener() {\n const restoredCtx = i0.ɵɵrestoreView(_r13);\n const index_r10 = restoredCtx.index;\n const ctx_r15 = i0.ɵɵnextContext(2);\n return ctx_r15.onIndicatorKeyDown(index_r10);\n });\n i0.ɵɵtemplate(1, GalleriaItem_ul_6_li_1_button_1_Template, 1, 0, \"button\", 14);\n i0.ɵɵelement(2, \"p-galleriaItemSlot\", 15);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const index_r10 = ctx.index;\n const ctx_r8 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(4, _c8, ctx_r8.isIndicatorItemActive(index_r10)));\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", !ctx_r8.indicatorFacet);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"index\", index_r10)(\"templates\", ctx_r8.templates);\n }\n}\n\nfunction GalleriaItem_ul_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"ul\", 11);\n i0.ɵɵtemplate(1, GalleriaItem_ul_6_li_1_Template, 3, 6, \"li\", 12);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r3 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngForOf\", ctx_r3.value);\n }\n}\n\nconst _c9 = [\"itemsContainer\"];\n\nconst _c10 = function (a1) {\n return {\n \"p-galleria-thumbnail-prev p-link\": true,\n \"p-disabled\": a1\n };\n};\n\nconst _c11 = function (a1, a2) {\n return {\n \"p-galleria-thumbnail-prev-icon pi\": true,\n \"pi-chevron-left\": a1,\n \"pi-chevron-up\": a2\n };\n};\n\nfunction GalleriaThumbnails_button_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r5 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"button\", 7);\n i0.ɵɵlistener(\"click\", function GalleriaThumbnails_button_2_Template_button_click_0_listener($event) {\n i0.ɵɵrestoreView(_r5);\n const ctx_r4 = i0.ɵɵnextContext();\n return ctx_r4.navBackward($event);\n });\n i0.ɵɵelement(1, \"span\", 8);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(3, _c10, ctx_r0.isNavBackwardDisabled()))(\"disabled\", ctx_r0.isNavBackwardDisabled());\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(5, _c11, !ctx_r0.isVertical, ctx_r0.isVertical));\n }\n}\n\nconst _c12 = function (a1, a2, a3, a4) {\n return {\n \"p-galleria-thumbnail-item\": true,\n \"p-galleria-thumbnail-item-current\": a1,\n \"p-galleria-thumbnail-item-active\": a2,\n \"p-galleria-thumbnail-item-start\": a3,\n \"p-galleria-thumbnail-item-end\": a4\n };\n};\n\nfunction GalleriaThumbnails_div_6_Template(rf, ctx) {\n if (rf & 1) {\n const _r9 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"div\", 8);\n i0.ɵɵelementStart(1, \"div\", 9);\n i0.ɵɵlistener(\"click\", function GalleriaThumbnails_div_6_Template_div_click_1_listener() {\n const restoredCtx = i0.ɵɵrestoreView(_r9);\n const index_r7 = restoredCtx.index;\n const ctx_r8 = i0.ɵɵnextContext();\n return ctx_r8.onItemClick(index_r7);\n })(\"keydown.enter\", function GalleriaThumbnails_div_6_Template_div_keydown_enter_1_listener() {\n const restoredCtx = i0.ɵɵrestoreView(_r9);\n const index_r7 = restoredCtx.index;\n const ctx_r10 = i0.ɵɵnextContext();\n return ctx_r10.onItemClick(index_r7);\n });\n i0.ɵɵelement(2, \"p-galleriaItemSlot\", 10);\n i0.ɵɵelementEnd();\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const item_r6 = ctx.$implicit;\n const index_r7 = ctx.index;\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction4(4, _c12, ctx_r2.activeIndex === index_r7, ctx_r2.isItemActive(index_r7), ctx_r2.firstItemAciveIndex() === index_r7, ctx_r2.lastItemActiveIndex() === index_r7));\n i0.ɵɵadvance(1);\n i0.ɵɵattribute(\"tabindex\", ctx_r2.getTabIndex(index_r7));\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"item\", item_r6)(\"templates\", ctx_r2.templates);\n }\n}\n\nconst _c13 = function (a1) {\n return {\n \"p-galleria-thumbnail-next p-link\": true,\n \"p-disabled\": a1\n };\n};\n\nconst _c14 = function (a1, a2) {\n return {\n \"p-galleria-thumbnail-next-icon pi\": true,\n \"pi-chevron-right\": a1,\n \"pi-chevron-down\": a2\n };\n};\n\nfunction GalleriaThumbnails_button_7_Template(rf, ctx) {\n if (rf & 1) {\n const _r12 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"button\", 7);\n i0.ɵɵlistener(\"click\", function GalleriaThumbnails_button_7_Template_button_click_0_listener($event) {\n i0.ɵɵrestoreView(_r12);\n const ctx_r11 = i0.ɵɵnextContext();\n return ctx_r11.navForward($event);\n });\n i0.ɵɵelement(1, \"span\", 8);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r3 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(3, _c13, ctx_r3.isNavForwardDisabled()))(\"disabled\", ctx_r3.isNavForwardDisabled());\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(5, _c14, !ctx_r3.isVertical, ctx_r3.isVertical));\n }\n}\n\nconst _c15 = function (a0) {\n return {\n \"height\": a0\n };\n};\n\nclass Galleria {\n constructor(element, cd, config) {\n this.element = element;\n this.cd = cd;\n this.config = config;\n this.fullScreen = false;\n this.numVisible = 3;\n this.showItemNavigators = false;\n this.showThumbnailNavigators = true;\n this.showItemNavigatorsOnHover = false;\n this.changeItemOnIndicatorHover = false;\n this.circular = false;\n this.autoPlay = false;\n this.transitionInterval = 4000;\n this.showThumbnails = true;\n this.thumbnailsPosition = \"bottom\";\n this.verticalThumbnailViewPortHeight = \"300px\";\n this.showIndicators = false;\n this.showIndicatorsOnItem = false;\n this.indicatorsPosition = \"bottom\";\n this.baseZIndex = 0;\n this.showTransitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';\n this.hideTransitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';\n this.activeIndexChange = new EventEmitter();\n this.visibleChange = new EventEmitter();\n this._visible = false;\n this._activeIndex = 0;\n this.maskVisible = false;\n }\n\n get activeIndex() {\n return this._activeIndex;\n }\n\n set activeIndex(activeIndex) {\n this._activeIndex = activeIndex;\n }\n\n get visible() {\n return this._visible;\n }\n\n set visible(visible) {\n this._visible = visible;\n\n if (this._visible && !this.maskVisible) {\n this.maskVisible = true;\n }\n }\n\n ngAfterContentInit() {\n this.templates.forEach(item => {\n switch (item.getType()) {\n case 'header':\n this.headerFacet = item.template;\n break;\n\n case 'footer':\n this.footerFacet = item.template;\n break;\n\n case 'indicator':\n this.indicatorFacet = item.template;\n break;\n\n case 'caption':\n this.captionFacet = item.template;\n break;\n }\n });\n }\n\n ngOnChanges(simpleChanges) {\n if (simpleChanges.value && simpleChanges.value.currentValue?.length < this.numVisible) {\n this.numVisible = simpleChanges.value.currentValue.length;\n }\n }\n\n onMaskHide() {\n this.visible = false;\n this.visibleChange.emit(false);\n }\n\n onActiveItemChange(index) {\n if (this.activeIndex !== index) {\n this.activeIndex = index;\n this.activeIndexChange.emit(index);\n }\n }\n\n onAnimationStart(event) {\n switch (event.toState) {\n case 'visible':\n this.enableModality();\n break;\n\n case 'void':\n DomHandler.addClass(this.mask.nativeElement, 'p-component-overlay-leave');\n break;\n }\n }\n\n onAnimationEnd(event) {\n switch (event.toState) {\n case 'void':\n this.disableModality();\n break;\n }\n }\n\n enableModality() {\n DomHandler.addClass(document.body, 'p-overflow-hidden');\n this.cd.markForCheck();\n\n if (this.mask) {\n ZIndexUtils.set('modal', this.mask.nativeElement, this.baseZIndex || this.config.zIndex.modal);\n }\n }\n\n disableModality() {\n DomHandler.removeClass(document.body, 'p-overflow-hidden');\n this.maskVisible = false;\n this.cd.markForCheck();\n\n if (this.mask) {\n ZIndexUtils.clear(this.mask.nativeElement);\n }\n }\n\n ngOnDestroy() {\n if (this.fullScreen) {\n DomHandler.removeClass(document.body, 'p-overflow-hidden');\n }\n\n if (this.mask) {\n this.disableModality();\n }\n }\n\n}\n\nGalleria.ɵfac = function Galleria_Factory(t) {\n return new (t || Galleria)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.PrimeNGConfig));\n};\n\nGalleria.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: Galleria,\n selectors: [[\"p-galleria\"]],\n contentQueries: function Galleria_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n }\n\n if (rf & 2) {\n let _t;\n\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n }\n },\n viewQuery: function Galleria_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c0, 5);\n }\n\n if (rf & 2) {\n let _t;\n\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.mask = _t.first);\n }\n },\n hostAttrs: [1, \"p-element\"],\n inputs: {\n activeIndex: \"activeIndex\",\n fullScreen: \"fullScreen\",\n id: \"id\",\n value: \"value\",\n numVisible: \"numVisible\",\n responsiveOptions: \"responsiveOptions\",\n showItemNavigators: \"showItemNavigators\",\n showThumbnailNavigators: \"showThumbnailNavigators\",\n showItemNavigatorsOnHover: \"showItemNavigatorsOnHover\",\n changeItemOnIndicatorHover: \"changeItemOnIndicatorHover\",\n circular: \"circular\",\n autoPlay: \"autoPlay\",\n transitionInterval: \"transitionInterval\",\n showThumbnails: \"showThumbnails\",\n thumbnailsPosition: \"thumbnailsPosition\",\n verticalThumbnailViewPortHeight: \"verticalThumbnailViewPortHeight\",\n showIndicators: \"showIndicators\",\n showIndicatorsOnItem: \"showIndicatorsOnItem\",\n indicatorsPosition: \"indicatorsPosition\",\n baseZIndex: \"baseZIndex\",\n maskClass: \"maskClass\",\n containerClass: \"containerClass\",\n containerStyle: \"containerStyle\",\n showTransitionOptions: \"showTransitionOptions\",\n hideTransitionOptions: \"hideTransitionOptions\",\n visible: \"visible\"\n },\n outputs: {\n activeIndexChange: \"activeIndexChange\",\n visibleChange: \"visibleChange\"\n },\n features: [i0.ɵɵNgOnChangesFeature],\n decls: 3,\n vars: 2,\n consts: [[4, \"ngIf\", \"ngIfElse\"], [\"windowed\", \"\"], [3, \"ngClass\", \"class\", 4, \"ngIf\"], [3, \"ngClass\"], [\"mask\", \"\"], [3, \"value\", \"activeIndex\", \"numVisible\", \"ngStyle\", \"maskHide\", \"activeItemChange\", 4, \"ngIf\"], [3, \"value\", \"activeIndex\", \"numVisible\", \"ngStyle\", \"maskHide\", \"activeItemChange\"], [3, \"value\", \"activeIndex\", \"numVisible\", \"activeItemChange\"]],\n template: function Galleria_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Galleria_div_0_Template, 2, 1, \"div\", 0);\n i0.ɵɵtemplate(1, Galleria_ng_template_1_Template, 1, 3, \"ng-template\", null, 1, i0.ɵɵtemplateRefExtractor);\n }\n\n if (rf & 2) {\n const _r1 = i0.ɵɵreference(2);\n\n i0.ɵɵproperty(\"ngIf\", ctx.fullScreen)(\"ngIfElse\", _r1);\n }\n },\n directives: function () {\n return [i2.NgIf, i2.NgClass, GalleriaContent, i2.NgStyle];\n },\n styles: [\".p-galleria-content{display:flex;flex-direction:column}.p-galleria-item-wrapper{display:flex;flex-direction:column;position:relative}.p-galleria-item-container{position:relative;display:flex;height:100%}.p-galleria-item-nav{position:absolute;top:50%;margin-top:-.5rem;display:inline-flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-item-prev{left:0;border-top-left-radius:0;border-bottom-left-radius:0}.p-galleria-item-next{right:0;border-top-right-radius:0;border-bottom-right-radius:0}.p-galleria-item{display:flex;justify-content:center;align-items:center;height:100%;width:100%}.p-galleria-item-nav-onhover .p-galleria-item-nav{pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav{pointer-events:all;opacity:1}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled{pointer-events:none}.p-galleria-caption{position:absolute;bottom:0;left:0;width:100%}.p-galleria-thumbnail-wrapper{display:flex;flex-direction:column;overflow:auto;flex-shrink:0}.p-galleria-thumbnail-prev,.p-galleria-thumbnail-next{align-self:center;flex:0 0 auto;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-galleria-thumbnail-prev span,.p-galleria-thumbnail-next span{display:flex;justify-content:center;align-items:center}.p-galleria-thumbnail-container{display:flex;flex-direction:row}.p-galleria-thumbnail-items-container{overflow:hidden;width:100%}.p-galleria-thumbnail-items{display:flex}.p-galleria-thumbnail-item{overflow:auto;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.5}.p-galleria-thumbnail-item:hover{opacity:1;transition:opacity .3s}.p-galleria-thumbnail-item-current{opacity:1}.p-galleria-thumbnails-left .p-galleria-content,.p-galleria-thumbnails-right .p-galleria-content,.p-galleria-thumbnails-left .p-galleria-item-wrapper,.p-galleria-thumbnails-right .p-galleria-item-wrapper{flex-direction:row}.p-galleria-thumbnails-left p-galleriaitem,.p-galleria-thumbnails-top p-galleriaitem{order:2}.p-galleria-thumbnails-left p-galleriathumbnails,.p-galleria-thumbnails-top p-galleriathumbnails{order:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-container,.p-galleria-thumbnails-right .p-galleria-thumbnail-container{flex-direction:column;flex-grow:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-items,.p-galleria-thumbnails-right .p-galleria-thumbnail-items{flex-direction:column;height:100%}.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,.p-galleria-thumbnails-right .p-galleria-thumbnail-wrapper{height:100%}.p-galleria-indicators{display:flex;align-items:center;justify-content:center}.p-galleria-indicator>button{display:inline-flex;align-items:center}.p-galleria-indicators-left .p-galleria-item-wrapper,.p-galleria-indicators-right .p-galleria-item-wrapper{flex-direction:row;align-items:center}.p-galleria-indicators-left .p-galleria-item-container,.p-galleria-indicators-top .p-galleria-item-container{order:2}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-top .p-galleria-indicators{order:1}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-right .p-galleria-indicators{flex-direction:column}.p-galleria-indicator-onitem .p-galleria-indicators{position:absolute;display:flex;z-index:1}.p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators{top:0;left:0;width:100%;align-items:flex-start}.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators{right:0;top:0;height:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators{bottom:0;left:0;width:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators{left:0;top:0;height:100%;align-items:flex-start}.p-galleria-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:transparent;transition-property:background-color}.p-galleria-close{position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-mask .p-galleria-item-nav{position:fixed;top:50%;margin-top:-.5rem}.p-galleria-mask.p-galleria-mask-leave{background-color:transparent}.p-items-hidden .p-galleria-thumbnail-item{visibility:hidden}.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active{visibility:visible}\\n\"],\n encapsulation: 2,\n data: {\n animation: [trigger('animation', [transition('void => visible', [style({\n transform: 'scale(0.7)',\n opacity: 0\n }), animate('{{showTransitionParams}}')]), transition('visible => void', [animate('{{hideTransitionParams}}', style({\n transform: 'scale(0.7)',\n opacity: 0\n }))])])]\n },\n changeDetection: 0\n});\n\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(Galleria, [{\n type: Component,\n args: [{\n selector: 'p-galleria',\n template: `\n <div *ngIf=\"fullScreen;else windowed\">\n <div *ngIf=\"maskVisible\" #mask [ngClass]=\"{'p-galleria-mask p-component-overlay p-component-overlay-enter':true, 'p-galleria-visible': this.visible}\" [class]=\"maskClass\">\n <p-galleriaContent *ngIf=\"visible\" [@animation]=\"{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}\" (@animation.start)=\"onAnimationStart($event)\" (@animation.done)=\"onAnimationEnd($event)\"\n [value]=\"value\" [activeIndex]=\"activeIndex\" [numVisible]=\"numVisible\" (maskHide)=\"onMaskHide()\" (activeItemChange)=\"onActiveItemChange($event)\" [ngStyle]=\"containerStyle\"></p-galleriaContent>\n </div>\n </div>\n\n <ng-template #windowed>\n <p-galleriaContent [value]=\"value\" [activeIndex]=\"activeIndex\" [numVisible]=\"numVisible\" (activeItemChange)=\"onActiveItemChange($event)\"></p-galleriaContent>\n </ng-template>\n `,\n animations: [trigger('animation', [transition('void => visible', [style({\n transform: 'scale(0.7)',\n opacity: 0\n }), animate('{{showTransitionParams}}')]), transition('visible => void', [animate('{{hideTransitionParams}}', style({\n transform: 'scale(0.7)',\n opacity: 0\n }))])])],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'class': 'p-element'\n },\n styles: [\".p-galleria-content{display:flex;flex-direction:column}.p-galleria-item-wrapper{display:flex;flex-direction:column;position:relative}.p-galleria-item-container{position:relative;display:flex;height:100%}.p-galleria-item-nav{position:absolute;top:50%;margin-top:-.5rem;display:inline-flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-item-prev{left:0;border-top-left-radius:0;border-bottom-left-radius:0}.p-galleria-item-next{right:0;border-top-right-radius:0;border-bottom-right-radius:0}.p-galleria-item{display:flex;justify-content:center;align-items:center;height:100%;width:100%}.p-galleria-item-nav-onhover .p-galleria-item-nav{pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav{pointer-events:all;opacity:1}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled{pointer-events:none}.p-galleria-caption{position:absolute;bottom:0;left:0;width:100%}.p-galleria-thumbnail-wrapper{display:flex;flex-direction:column;overflow:auto;flex-shrink:0}.p-galleria-thumbnail-prev,.p-galleria-thumbnail-next{align-self:center;flex:0 0 auto;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-galleria-thumbnail-prev span,.p-galleria-thumbnail-next span{display:flex;justify-content:center;align-items:center}.p-galleria-thumbnail-container{display:flex;flex-direction:row}.p-galleria-thumbnail-items-container{overflow:hidden;width:100%}.p-galleria-thumbnail-items{display:flex}.p-galleria-thumbnail-item{overflow:auto;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.5}.p-galleria-thumbnail-item:hover{opacity:1;transition:opacity .3s}.p-galleria-thumbnail-item-current{opacity:1}.p-galleria-thumbnails-left .p-galleria-content,.p-galleria-thumbnails-right .p-galleria-content,.p-galleria-thumbnails-left .p-galleria-item-wrapper,.p-galleria-thumbnails-right .p-galleria-item-wrapper{flex-direction:row}.p-galleria-thumbnails-left p-galleriaitem,.p-galleria-thumbnails-top p-galleriaitem{order:2}.p-galleria-thumbnails-left p-galleriathumbnails,.p-galleria-thumbnails-top p-galleriathumbnails{order:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-container,.p-galleria-thumbnails-right .p-galleria-thumbnail-container{flex-direction:column;flex-grow:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-items,.p-galleria-thumbnails-right .p-galleria-thumbnail-items{flex-direction:column;height:100%}.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,.p-galleria-thumbnails-right .p-galleria-thumbnail-wrapper{height:100%}.p-galleria-indicators{display:flex;align-items:center;justify-content:center}.p-galleria-indicator>button{display:inline-flex;align-items:center}.p-galleria-indicators-left .p-galleria-item-wrapper,.p-galleria-indicators-right .p-galleria-item-wrapper{flex-direction:row;align-items:center}.p-galleria-indicators-left .p-galleria-item-container,.p-galleria-indicators-top .p-galleria-item-container{order:2}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-top .p-galleria-indicators{order:1}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-right .p-galleria-indicators{flex-direction:column}.p-galleria-indicator-onitem .p-galleria-indicators{position:absolute;display:flex;z-index:1}.p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators{top:0;left:0;width:100%;align-items:flex-start}.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators{right:0;top:0;height:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators{bottom:0;left:0;width:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators{left:0;top:0;height:100%;align-items:flex-start}.p-galleria-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:transparent;transition-property:background-color}.p-galleria-close{position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-mask .p-galleria-item-nav{position:fixed;top:50%;margin-top:-.5rem}.p-galleria-mask.p-galleria-mask-leave{background-color:transparent}.p-items-hidden .p-galleria-thumbnail-item{visibility:hidden}.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active{visibility:visible}\\n\"]\n }]\n }], function () {\n return [{\n type: i0.ElementRef\n }, {\n type: i0.ChangeDetectorRef\n }, {\n type: i1.PrimeNGConfig\n }];\n }, {\n activeIndex: [{\n type: Input\n }],\n fullScreen: [{\n type: Input\n }],\n id: [{\n type: Input\n }],\n value: [{\n type: Input\n }],\n numVisible: [{\n type: Input\n }],\n responsiveOptions: [{\n type: Input\n }],\n showItemNavigators: [{\n type: Input\n }],\n showThumbnailNavigators: [{\n type: Input\n }],\n showItemNavigatorsOnHover: [{\n type: Input\n }],\n changeItemOnIndicatorHover: [{\n type: Input\n }],\n circular: [{\n type: Input\n }],\n autoPlay: [{\n type: Input\n }],\n transitionInterval: [{\n type: Input\n }],\n showThumbnails: [{\n type: Input\n }],\n thumbnailsPosition: [{\n type: Input\n }],\n verticalThumbnailViewPortHeight: [{\n type: Input\n }],\n showIndicators: [{\n type: Input\n }],\n showIndicatorsOnItem: [{\n type: Input\n }],\n indicatorsPosition: [{\n type: Input\n }],\n baseZIndex: [{\n type: Input\n }],\n maskClass: [{\n type: Input\n }],\n containerClass: [{\n type: Input\n }],\n containerStyle: [{\n type: Input\n }],\n showTransitionOptions: [{\n type: Input\n }],\n hideTransitionOptions: [{\n type: Input\n }],\n mask: [{\n type: ViewChild,\n args: ['mask']\n }],\n visible: [{\n type: Input\n }],\n activeIndexChange: [{\n type: Output\n }],\n visibleChange: [{\n type: Output\n }],\n templates: [{\n type: ContentChildren,\n args: [PrimeTemplate]\n }]\n });\n})();\n\nclass GalleriaContent {\n constructor(galleria, cd) {\n this.galleria = galleria;\n this.cd = cd;\n this.value = [];\n this.maskHide = new EventEmitter();\n this.activeItemChange = new EventEmitter();\n this.id = this.galleria.id || UniqueComponentId();\n this.slideShowActicve = false;\n this._activeIndex = 0;\n this.slideShowActive = true;\n }\n\n get activeIndex() {\n return this._activeIndex;\n }\n\n set activeIndex(activeIndex) {\n this._activeIndex = activeIndex;\n }\n\n galleriaClass() {\n const thumbnailsPosClass = this.galleria.showThumbnails && this.getPositionClass('p-galleria-thumbnails', this.galleria.thumbnailsPosition);\n const indicatorPosClass = this.galleria.showIndicators && this.getPositionClass('p-galleria-indicators', this.galleria.indicatorsPosition);\n return (this.galleria.containerClass ? this.galleria.containerClass + \" \" : '') + (thumbnailsPosClass ? thumbnailsPosClass + \" \" : '') + (indicatorPosClass ? indicatorPosClass + \" \" : '');\n }\n\n startSlideShow() {\n this.interval = setInterval(() => {\n let activeIndex = this.galleria.circular && this.value.length - 1 === this.activeIndex ? 0 : this.activeIndex + 1;\n this.onActiveIndexChange(activeIndex);\n this.activeIndex = activeIndex;\n }, this.galleria.transitionInterval);\n this.slideShowActive = true;\n }\n\n stopSlideShow() {\n if (this.interval) {\n clearInterval(this.interval);\n }\n\n this.slideShowActive = false;\n }\n\n getPositionClass(preClassName, position) {\n const positions = ['top', 'left', 'bottom', 'right'];\n const pos = positions.find(item => item === position);\n return pos ? `${preClassName}-${pos}` : '';\n }\n\n isVertical() {\n return this.galleria.thumbnailsPosition === 'left' || this.galleria.thumbnailsPosition === 'right';\n }\n\n onActiveIndexChange(index) {\n if (this.activeIndex !== index) {\n this.activeIndex = index;\n this.activeItemChange.emit(this.activeIndex);\n }\n }\n\n}\n\nGalleriaContent.ɵfac = function GalleriaContent_Factory(t) {\n return new (t || GalleriaContent)(i0.ɵɵdirectiveInject(Galleria), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\n\nGalleriaContent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: GalleriaContent,\n selectors: [[\"p-galleriaContent\"]],\n inputs: {\n activeIndex: \"activeIndex\",\n value: \"value\",\n numVisible: \"numVisible\"\n },\n outputs: {\n maskHide: \"maskHide\",\n activeItemChange: \"activeItemChange\"\n },\n decls: 1,\n vars: 1,\n consts: [[3, \"ngClass\", \"ngStyle\", \"class\", 4, \"ngIf\"], [3, \"ngClass\", \"ngStyle\"], [\"type\", \"button\", \"class\", \"p-galleria-close p-link\", \"pRipple\", \"\", 3, \"click\", 4, \"ngIf\"], [\"class\", \"p-galleria-header\", 4, \"ngIf\"], [1, \"p-galleria-content\"], [3, \"value\", \"activeIndex\", \"circular\", \"templates\", \"showIndicators\", \"changeItemOnIndicatorHover\", \"indicatorFacet\", \"captionFacet\", \"showItemNavigators\", \"autoPlay\", \"slideShowActive\", \"onActiveIndexChange\", \"startSlideShow\", \"stopSlideShow\"], [3, \"containerId\", \"value\", \"activeIndex\", \"templates\", \"numVisible\", \"responsiveOptions\", \"circular\", \"isVertical\", \"contentHeight\", \"showThumbnailNavigators\", \"slideShowActive\", \"onActiveIndexChange\", \"stopSlideShow\", 4, \"ngIf\"], [\"class\", \"p-galleria-footer\", 4, \"ngIf\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-galleria-close\", \"p-link\", 3, \"click\"], [1, \"p-galleria-close-icon\", \"pi\", \"pi-times\"], [1, \"p-galleria-header\"], [\"type\", \"header\", 3, \"templates\"], [3, \"containerId\", \"value\", \"activeIndex\", \"templates\", \"numVisible\", \"responsiveOptions\", \"circular\", \"isVertical\", \"contentHeight\", \"showThumbnailNavigators\", \"slideShowActive\", \"onActiveIndexChange\", \"stopSlideShow\"], [1, \"p-galleria-footer\"], [\"type\", \"footer\", 3, \"templates\"]],\n template: function GalleriaContent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, GalleriaContent_div_0_Template, 7, 25, \"div\", 0);\n }\n\n if (rf & 2) {\n i0.ɵɵproperty(\"ngIf\", ctx.value && ctx.value.length > 0);\n }\n },\n directives: function () {\n return [i2.NgIf, i2.NgClass, i2.NgStyle, GalleriaItem, i3.Ripple, GalleriaItemSlot, GalleriaThumbnails];\n },\n encapsulation: 2,\n changeDetection: 0\n});\n\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(GalleriaContent, [{\n type: Component,\n args: [{\n selector: 'p-galleriaContent',\n template: `\n <div [attr.id]=\"id\" *ngIf=\"value && value.length > 0\" [ngClass]=\"{'p-galleria p-component': true, 'p-galleria-fullscreen': this.galleria.fullScreen,\n 'p-galleria-indicator-onitem': this.galleria.showIndicatorsOnItem, 'p-galleria-item-nav-onhover': this.galleria.showItemNavigatorsOnHover && !this.galleria.fullScreen}\"\n [ngStyle]=\"!galleria.fullScreen ? galleria.containerStyle : {}\" [class]=\"galleriaClass()\">\n <button *ngIf=\"galleria.fullScreen\" type=\"button\" class=\"p-galleria-close p-link\" (click)=\"maskHide.emit()\" pRipple>\n <span class=\"p-galleria-close-icon pi pi-times\"></span>\n </button>\n <div *ngIf=\"galleria.templates && galleria.headerFacet\" class=\"p-galleria-header\">\n <p-galleriaItemSlot type=\"header\" [templates]=\"galleria.templates\"></p-galleriaItemSlot>\n </div>\n <div class=\"p-galleria-content\">\n <p-galleriaItem [value]=\"value\" [activeIndex]=\"activeIndex\" [circular]=\"galleria.circular\" [templates]=\"galleria.templates\" (onActiveIndexChange)=\"onActiveIndexChange($event)\"\n [showIndicators]=\"galleria.showIndicators\" [changeItemOnIndicatorHover]=\"galleria.changeItemOnIndicatorHover\" [indicatorFacet]=\"galleria.indicatorFacet\"\n [captionFacet]=\"galleria.captionFacet\" [showItemNavigators]=\"galleria.showItemNavigators\" [autoPlay]=\"galleria.autoPlay\" [slideShowActive]=\"slideShowActive\"\n (startSlideShow)=\"startSlideShow()\" (stopSlideShow)=\"stopSlideShow()\"></p-galleriaItem>\n\n <p-galleriaThumbnails *ngIf=\"galleria.showThumbnails\" [containerId]=\"id\" [value]=\"value\" (onActiveIndexChange)=\"onActiveIndexChange($event)\" [activeIndex]=\"activeIndex\" [templates]=\"galleria.templates\"\n [numVisible]=\"numVisible\" [responsiveOptions]=\"galleria.responsiveOptions\" [circular]=\"galleria.circular\"\n [isVertical]=\"isVertical()\" [contentHeight]=\"galleria.verticalThumbnailViewPortHeight\" [showThumbnailNavigators]=\"galleria.showThumbnailNavigators\"\n [slideShowActive]=\"slideShowActive\" (stopSlideShow)=\"stopSlideShow()\"></p-galleriaThumbnails>\n </div>\n <div *ngIf=\"galleria.templates && galleria.footerFacet\" class=\"p-galleria-footer\">\n <p-galleriaItemSlot type=\"footer\" [templates]=\"galleria.templates\"></p-galleriaItemSlot>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n }]\n }], function () {\n return [{\n type: Galleria\n }, {\n type: i0.ChangeDetectorRef\n }];\n }, {\n activeIndex: [{\n type: Input\n }],\n value: [{\n type: Input\n }],\n numVisible: [{\n type: Input\n }],\n maskHide: [{\n type: Output\n }],\n activeItemChange: [{\n type: Output\n }]\n });\n})();\n\nclass GalleriaItemSlot {\n get item() {\n return this._item;\n }\n\n set item(item) {\n this._item = item;\n\n if (this.templates) {\n this.templates.forEach(item => {\n if (item.getType() === this.type) {\n switch (this.type) {\n case 'item':\n case 'caption':\n case 'thumbnail':\n this.context = {\n $implicit: this.item\n };\n this.contentTemplate = item.template;\n break;\n }\n }\n });\n }\n }\n\n ngAfterContentInit() {\n this.templates.forEach(item => {\n if (item.getType() === this.type) {\n switch (this.type) {\n case 'item':\n case 'caption':\n case 'thumbnail':\n this.context = {\n $implicit: this.item\n };\n this.contentTemplate = item.template;\n break;\n\n case 'indicator':\n this.context = {\n $implicit: this.index\n };\n this.contentTemplate = item.template;\n break;\n\n default:\n this.context = {};\n this.contentTemplate = item.template;\n break;\n }\n }\n });\n }\n\n}\n\nGalleriaItemSlot.ɵfac = function GalleriaItemSlot_Factory(t) {\n return new (t || GalleriaItemSlot)();\n};\n\nGalleriaItemSlot.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: GalleriaItemSlot,\n selectors: [[\"p-galleriaItemSlot\"]],\n inputs: {\n templates: \"templates\",\n index: \"index\",\n item: \"item\",\n type: \"type\"\n },\n decls: 1,\n vars: 1,\n consts: [[4, \"ngIf\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"]],\n template: function GalleriaItemSlot_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, GalleriaItemSlot_ng_container_0_Template, 2, 2, \"ng-container\", 0);\n }\n\n if (rf & 2) {\n i0.ɵɵproperty(\"ngIf\", ctx.contentTemplate);\n }\n },\n directives: [i2.NgIf, i2.NgTemplateOutlet],\n encapsulation: 2,\n changeDetection: 0\n});\n\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(GalleriaItemSlot, [{\n type: Component,\n args: [{\n selector: 'p-galleriaItemSlot',\n template: `\n <ng-container *ngIf=\"contentTemplate\">\n <ng-container *ngTemplateOutlet=\"contentTemplate; context: context\"></ng-container>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n }]\n }], null, {\n templates: [{\n type: Input\n }],\n index: [{\n type: Input\n }],\n item: [{\n type: Input\n }],\n type: [{\n type: Input\n }]\n });\n})();\n\nclass GalleriaItem {\n constructor() {\n this.circular = false;\n this.showItemNavigators = false;\n this.showIndicators = true;\n this.slideShowActive = true;\n this.changeItemOnIndicatorHover = true;\n this.autoPlay = false;\n this.startSlideShow = new EventEmitter();\n this.stopSlideShow = new EventEmitter();\n this.onActiveIndexChange = new EventEmitter();\n this._activeIndex = 0;\n }\n\n get activeIndex() {\n return this._activeIndex;\n }\n\n set activeIndex(activeIndex) {\n this._activeIndex = activeIndex;\n this.activeItem = this.value[this._activeIndex];\n }\n\n ngOnInit() {\n if (this.autoPlay) {\n this.startSlideShow.emit();\n }\n }\n\n next() {\n let nextItemIndex = this.activeIndex + 1;\n let activeIndex = this.circular && this.value.length - 1 === this.activeIndex ? 0 : nextItemIndex;\n this.onActiveIndexChange.emit(activeIndex);\n }\n\n prev() {\n let prevItemIndex = this.activeIndex !== 0 ? this.activeIndex - 1 : 0;\n let activeIndex = this.circular && this.activeIndex === 0 ? this.value.length - 1 : prevItemIndex;\n this.onActiveIndexChange.emit(activeIndex);\n }\n\n stopTheSlideShow() {\n if (this.slideShowActive && this.stopSlideShow) {\n this.stopSlideShow.emit();\n }\n }\n\n navForward(e) {\n this.stopTheSlideShow();\n this.next();\n\n if (e && e.cancelable) {\n e.preventDefault();\n }\n }\n\n navBackward(e) {\n this.stopTheSlideShow();\n this.prev();\n\n if (e && e.cancelable) {\n e.preventDefault();\n }\n }\n\n onIndicatorClick(index) {\n this.stopTheSlideShow();\n this.onActiveIndexChange.emit(index);\n }\n\n onIndicatorMouseEnter(index) {\n if (this.changeItemOnIndicatorHover) {\n this.stopTheSlideShow();\n this.onActiveIndexChange.emit(index);\n }\n }\n\n onIndicatorKeyDown(index) {\n this.stopTheSlideShow();\n this.onActiveIndexChange.emit(index);\n }\n\n isNavForwardDisabled() {\n return !this.circular && this.activeIndex === this.value.length - 1;\n }\n\n isNavBackwardDisabled() {\n return !this.circular && this.activeIndex === 0;\n }\n\n isIndicatorItemActive(index) {\n return this.activeIndex === index;\n }\n\n}\n\nGalleriaItem.ɵfac = function GalleriaItem_Factory(t) {\n return new (t || GalleriaItem)();\n};\n\nGalleriaItem.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: GalleriaItem,\n selectors: [[\"p-galleriaItem\"]],\n inputs: {\n circular: \"circular\",\n value: \"value\",\n showItemNavigators: \"showItemNavigators\",\n showIndicators: \"showIndicators\",\n slideShowActive: \"slideShowActive\",\n changeItemOnIndicatorHover: \"changeItemOnIndicatorHover\",\n autoPlay: \"autoPlay\",\n templates: \"templates\",\n indicatorFacet: \"indicatorFacet\",\n captionFacet: \"captionFacet\",\n activeIndex: \"activeIndex\"\n },\n outputs: {\n startSlideShow: \"startSlideShow\",\n stopSlideShow: \"stopSlideShow\",\n onActiveIndexChange: \"onActiveIndexChange\"\n },\n decls: 7,\n vars: 6,\n consts: [[1, \"p-galleria-item-wrapper\"], [1, \"p-galleria-item-container\"], [\"type\", \"button\", \"pRipple\", \"\", 3, \"ngClass\", \"disabled\", \"click\", 4, \"ngIf\"], [\"type\", \"item\", 1, \"p-galleria-item\", 3, \"item\", \"templates\"], [\"class\", \"p-galleria-caption\", 4, \"ngIf\"], [\"class\", \"p-galleria-indicators p-reset\", 4, \"ngIf\"], [\"type\", \"button\", \"pRipple\", \"\", 3, \"ngClass\", \"disabled\", \"click\"], [1, \"p-galleria-item-prev-icon\", \"pi\", \"pi-chevron-left\"], [1, \"p-galleria-item-next-icon\", \"pi\", \"pi-chevron-right\"], [1, \"p-galleria-caption\"], [\"type\", \"caption\", 3, \"item\", \"templates\"], [1, \"p-galleria-indicators\", \"p-reset\"], [\"tabindex\", \"0\", 3, \"ngClass\", \"click\", \"mouseenter\", \"keydown.enter\", 4, \"ngFor\", \"ngForOf\"], [\"tabindex\", \"0\", 3, \"ngClass\", \"click\", \"mouseenter\", \"keydown.enter\"], [\"type\", \"button\", \"tabIndex\", \"-1\", \"class\", \"p-link\", 4, \"ngIf\"], [\"type\", \"indicator\", 3, \"index\", \"templates\"], [\"type\", \"button\", \"tabIndex\", \"-1\", 1, \"p-link\"]],\n template: function GalleriaItem_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 0);\n i0.ɵɵelementStart(1, \"div\", 1);\n i0.ɵɵtemplate(2, GalleriaItem_button_2_Template, 2, 4, \"button\", 2);\n i0.ɵɵelement(3, \"p-galleriaItemSlot\", 3);\n i0.ɵɵtemplate(4, GalleriaItem_button_4_Template, 2, 4, \"button\", 2);\n i0.ɵɵtemplate(5, GalleriaItem_div_5_Template, 2, 2, \"div\", 4);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(6, GalleriaItem_ul_6_Template, 2, 1, \"ul\", 5);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx.showItemNavigators);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"item\", ctx.activeItem)(\"templates\", ctx.templates);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.showItemNavigators);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.captionFacet);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.showIndicators);\n }\n },\n directives: [i2.NgIf, GalleriaItemSlot, i3.Ripple, i2.NgClass, i2.NgForOf],\n encapsulation: 2,\n changeDetection: 0\n});\n\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(GalleriaItem, [{\n type: Component,\n args: [{\n selector: 'p-galleriaItem',\n template: `\n <div class=\"p-galleria-item-wrapper\">\n <div class=\"p-galleria-item-container\">\n <button *ngIf=\"showItemNavigators\" type=\"button\" [ngClass]=\"{'p-galleria-item-prev p-galleria-item-nav p-link': true, 'p-disabled': this.isNavBackwardDisabled()}\" (click)=\"navBackward($event)\" [disabled]=\"isNavBackwardDisabled()\" pRipple>\n <span class=\"p-galleria-item-prev-icon pi pi-chevron-left\"></span>\n </button>\n <p-galleriaItemSlot type=\"item\" [item]=\"activeItem\" [templates]=\"templates\" class=\"p-galleria-item\"></p-galleriaItemSlot>\n <button *ngIf=\"showItemNavigators\" type=\"button\" [ngClass]=\"{'p-galleria-item-next p-galleria-item-nav p-link': true,'p-disabled': this.isNavForwardDisabled()}\" (click)=\"navForward($event)\" [disabled]=\"isNavForwardDisabled()\" pRipple>\n <span class=\"p-galleria-item-next-icon pi pi-chevron-right\"></span>\n </button>\n <div class=\"p-galleria-caption\" *ngIf=\"captionFacet\">\n <p-galleriaItemSlot type=\"caption\" [item]=\"activeItem\" [templates]=\"templates\"></p-galleriaItemSlot>\n </div>\n </div>\n <ul *ngIf=\"showIndicators\" class=\"p-galleria-indicators p-reset\">\n <li *ngFor=\"let item of value; let index = index;\" tabindex=\"0\"\n (click)=\"onIndicatorClick(index)\" (mouseenter)=\"onIndicatorMouseEnter(index)\" (keydown.enter)=\"onIndicatorKeyDown(index)\"\n [ngClass]=\"{'p-galleria-indicator': true,'p-highlight': isIndicatorItemActive(index)}\">\n <button type=\"button\" tabIndex=\"-1\" class=\"p-link\" *ngIf=\"!indicatorFacet\">\n </button>\n <p-galleriaItemSlot type=\"indicator\" [index]=\"index\" [templates]=\"templates\"></p-galleriaItemSlot>\n </li>\n </ul>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n }]\n }], null, {\n circular: [{\n type: Input\n }],\n value: [{\n type: Input\n }],\n showItemNavigators: [{\n type: Input\n }],\n showIndicators: [{\n type: Input\n }],\n slideShowActive: [{\n type: Input\n }],\n changeItemOnIndicatorHover: [{\n type: Input\n }],\n autoPlay: [{\n type: Input\n }],\n templates: [{\n type: Input\n }],\n indicatorFacet: [{\n type: Input\n }],\n captionFacet: [{\n type: Input\n }],\n startSlideShow: [{\n type: Output\n }],\n stopSlideShow: [{\n type: Output\n }],\n onActiveIndexChange: [{\n type: Output\n }],\n activeIndex: [{\n type: Input\n }]\n });\n})();\n\nclass GalleriaThumbnails {\n constructor(cd) {\n this.cd = cd;\n this.isVertical = false;\n this.slideShowActive = false;\n this.circular = false;\n this.contentHeight = \"300px\";\n this.showThumbnailNavigators = true;\n this.onActiveIndexChange = new EventEmitter();\n this.stopSlideShow = new EventEmitter();\n this.startPos = null;\n this.thumbnailsStyle = null;\n this.sortedResponsiveOptions = null;\n this.totalShiftedItems = 0;\n this.page = 0;\n this._numVisible = 0;\n this.d_numVisible = 0;\n this._oldNumVisible = 0;\n this._activeIndex = 0;\n this._oldactiveIndex = 0;\n }\n\n get numVisible() {\n return this._numVisible;\n }\n\n set numVisible(numVisible) {\n this._numVisible = numVisible;\n this._oldNumVisible = this.d_numVisible;\n this.d_numVisible = numVisible;\n }\n\n get activeIndex() {\n return this._activeIndex;\n }\n\n set activeIndex(activeIndex) {\n this._oldactiveIndex = this._activeIndex;\n this._activeIndex = activeIndex;\n }\n\n ngOnInit() {\n this.createStyle();\n\n if (this.responsiveOptions) {\n this.bindDocumentListeners();\n }\n }\n\n ngAfterContentChecked() {\n let totalShiftedItems = this.totalShiftedItems;\n\n if ((this._oldNumVisible !== this.d_numVisible || this._oldactiveIndex !== this._activeIndex) && this.itemsContainer) {\n if (this._activeIndex <= this.getMedianItemIndex()) {\n totalShiftedItems = 0;\n } else if (this.value.length - this.d_numVisible + this.getMedianItemIndex() < this._activeIndex) {\n totalShiftedItems = this.d_numVisible - this.value.length;\n } else if (this.value.length - this.d_numVisible < this._activeIndex && this.d_numVisible % 2 === 0) {\n totalShiftedItems = this._activeIndex * -1 + this.getMedianItemIndex() + 1;\n } else {\n totalShiftedItems = this._activeIndex * -1 + this.getMedianItemIndex();\n }\n\n if (totalShiftedItems !== this.totalShiftedItems) {\n this.totalShiftedItems = totalShiftedItems;\n }\n\n if (this.itemsContainer && this.itemsContainer.nativeElement) {\n this.itemsContainer.nativeElement.style.transform = this.isVertical ? `translate3d(0, ${totalShiftedItems * (100 / this.d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this.d_numVisible)}%, 0, 0)`;\n }\n\n if (this._oldactiveIndex !== this._activeIndex) {\n DomHandler.removeClass(this.itemsContainer.nativeElement, 'p-items-hidden');\n this.itemsContainer.nativeElement.style.transition = 'transform 500ms ease 0s';\n }\n\n this._oldactiveIndex = this._activeIndex;\n this._oldNumVisible = this.d_numVisible;\n }\n }\n\n ngAfterViewInit() {\n this.calculatePosition();\n }\n\n createStyle() {\n if (!this.thumbnailsStyle) {\n this.thumbnailsStyle = document.createElement('style');\n this.thumbnailsStyle.type = 'text/css';\n document.body.appendChild(this.thumbnailsStyle);\n }\n\n let innerHTML = `\n #${this.containerId} .p-galleria-thumbnail-item {\n flex: 1 0 ${100 / this.d_numVisible}%\n }\n `;\n\n if (this.responsiveOptions) {\n this.sortedResponsiveOptions = [...this.responsiveOptions];\n this.sortedResponsiveOptions.sort((data1, data2) => {\n const value1 = data1.breakpoint;\n const value2 = data2.breakpoint;\n let result = null;\n if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, {\n numeric: true\n });else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;\n return -1 * result;\n });\n\n for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {\n let res = this.sortedResponsiveOptions[i];\n innerHTML += `\n @media screen and (max-width: ${res.breakpoint}) {\n #${this.containerId} .p-galleria-thumbnail-item {\n flex: 1 0 ${100 / res.numVisible}%\n }\n }\n `;\n }\n }\n\n this.thumbnailsStyle.innerHTML = innerHTML;\n }\n\n calculatePosition() {\n if (this.itemsContainer && this.sortedResponsiveOptions) {\n let windowWidth = window.innerWidth;\n let matchedResponsiveData = {\n numVisible: this._numVisible\n };\n\n for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {\n let res = this.sortedResponsiveOptions[i];\n\n if (parseInt(res.breakpoint, 10) >= windowWidth) {\n matchedResponsiveData = res;\n }\n }\n\n if (this.d_numVisible !== matchedResponsiveData.numVisible) {\n this.d_numVisible = matchedResponsiveData.numVisible;\n this.cd.markForCheck();\n }\n }\n }\n\n getTabIndex(index) {\n return this.isItemActive(index) ? 0 : null;\n }\n\n navForward(e) {\n this.stopTheSlideShow();\n let nextItemIndex = this._activeIndex + 1;\n\n if (nextItemIndex + this.totalShiftedItems > this.getMedianItemIndex() && (-1 * this.totalShiftedItems < this.getTotalPageNumber() - 1 || this.circular)) {\n this.step(-1);\n }\n\n let activeIndex = this.circular && this.value.length - 1 === this._activeIndex ? 0 : nextItemIndex;\n this.onActiveIndexChange.emit(activeIndex);\n\n if (e.cancelable) {\n e.preventDefault();\n }\n }\n\n navBackward(e) {\n this.stopTheSlideShow();\n let prevItemIndex = this._activeIndex !== 0 ? this._activeIndex - 1 : 0;\n let diff = prevItemIndex + this.totalShiftedItems;\n\n if (this.d_numVisible - diff - 1 > this.getMedianItemIndex() && (-1 * this.totalShiftedItems !== 0 || this.circular)) {\n this.step(1);\n }\n\n let activeIndex = this.circular && this._activeIndex === 0 ? this.value.length - 1 : prevItemIndex;\n this.onActiveIndexChange.emit(activeIndex);\n\n if (e.cancelable) {\n e.preventDefault();\n }\n }\n\n onItemClick(index) {\n this.stopTheSlideShow();\n let selectedItemIndex = index;\n\n if (selectedItemIndex !== this._activeIndex) {\n const diff = selectedItemIndex + this.totalShiftedItems;\n let dir = 0;\n\n if (selectedItemIndex < this._activeIndex) {\n dir = this.d_numVisible - diff - 1 - this.getMedianItemIndex();\n\n if (dir > 0 && -1 * this.totalShiftedItems !== 0) {\n this.step(dir);\n }\n } else {\n dir = this.getMedianItemIndex() - diff;\n\n if (dir < 0 && -1 * this.totalShiftedItems < this.getTotalPageNumber() - 1) {\n this.step(dir);\n }\n }\n\n this.activeIndex = selectedItemIndex;\n this.onActiveIndexChange.emit(this.activeIndex);\n }\n }\n\n step(dir) {\n let totalShiftedItems = this.totalShiftedItems + dir;\n\n if (dir < 0 && -1 * totalShiftedItems + this.d_numVisible > this.value.length - 1) {\n totalShiftedItems = this.d_numVisible - this.value.length;\n } else if (dir > 0 && totalShiftedItems > 0) {\n totalShiftedItems = 0;\n }\n\n if (this.circular) {\n if (dir < 0 && this.value.length - 1 === this._activeIndex) {\n totalShiftedItems = 0;\n } else if (dir > 0 && this._activeIndex === 0) {\n totalShiftedItems = this.d_numVisible - this.value.length;\n }\n }\n\n if (this.itemsContainer) {\n DomHandler.removeClass(this.itemsContainer.nativeElement, 'p-items-hidden');\n this.itemsContainer.nativeElement.style.transform = this.isVertical ? `translate3d(0, ${totalShiftedItems * (100 / this.d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this.d_numVisible)}%, 0, 0)`;\n this.itemsContainer.nativeElement.style.transition = 'transform 500ms ease 0s';\n }\n\n this.totalShiftedItems = totalShiftedItems;\n }\n\n stopTheSlideShow() {\n if (this.slideShowActive && this.stopSlideShow) {\n this.stopSlideShow.emit();\n }\n }\n\n changePageOnTouch(e, diff) {\n if (diff < 0) {\n // left\n this.navForward(e);\n } else {\n // right\n this.navBackward(e);\n }\n }\n\n getTotalPageNumber() {\n return this.value.length > this.d_numVisible ? this.value.length - this.d_numVisible + 1 : 0;\n }\n\n getMedianItemIndex() {\n let index = Math.floor(this.d_numVisible / 2);\n return this.d_numVisible % 2 ? index : index - 1;\n }\n\n onTransitionEnd() {\n if (this.itemsContainer && this.itemsContainer.nativeElement) {\n DomHandler.addClass(this.itemsContainer.nativeElement, 'p-items-hidden');\n this.itemsContainer.nativeElement.style.transition = '';\n }\n }\n\n onTouchEnd(e) {\n let touchobj = e.changedTouches[0];\n\n if (this.isVertical) {\n this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);\n } else {\n this.changePageOnTouch(e, touchobj.pageX - this.startPos.x);\n }\n }\n\n onTouchMove(e) {\n if (e.cancelable) {\n e.preventDefault();\n }\n }\n\n onTouchStart(e) {\n let touchobj = e.changedTouches[0];\n this.startPos = {\n x: touchobj.pageX,\n y: touchobj.pageY\n };\n }\n\n isNavBackwardDisabled() {\n return !this.circular && this._activeIndex === 0 || this.value.length <= this.d_numVisible;\n }\n\n isNavForwardDisabled() {\n return !this.circular && this._activeIndex === this.value.length - 1 || this.value.length <= this.d_numVisible;\n }\n\n firstItemAciveIndex() {\n return this.totalShiftedItems * -1;\n }\n\n lastItemActiveIndex() {\n return this.firstItemAciveIndex() + this.d_numVisible - 1;\n }\n\n isItemActive(index) {\n return this.firstItemAciveIndex() <= index && this.lastItemActiveIndex() >= index;\n }\n\n bindDocumentListeners() {\n if (!this.documentResizeListener) {\n this.documentResizeListener = () => {\n this.calculatePosition();\n };\n\n window.addEventListener('resize', this.documentResizeListener);\n }\n }\n\n unbindDocumentListeners() {\n if (this.documentResizeListener) {\n window.removeEventListener('resize', this.documentResizeListener);\n this.documentResizeListener = null;\n }\n }\n\n ngOnDestroy() {\n if (this.responsiveOptions) {\n this.unbindDocumentListeners();\n }\n\n if (this.thumbnailsStyle) {\n this.thumbnailsStyle.parentNode.removeChild(this.thumbnailsStyle);\n }\n }\n\n}\n\nGalleriaThumbnails.ɵfac = function GalleriaThumbnails_Factory(t) {\n return new (t || GalleriaThumbnails)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\n\nGalleriaThumbnails.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: GalleriaThumbnails,\n selectors: [[\"p-galleriaThumbnails\"]],\n viewQuery: function GalleriaThumbnails_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c9, 5);\n }\n\n if (rf & 2) {\n let _t;\n\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemsContainer = _t.first);\n }\n },\n inputs: {\n containerId: \"containerId\",\n value: \"value\",\n isVertical: \"isVertical\",\n slideShowActive: \"slideShowActive\",\n circular: \"circular\",\n responsiveOptions: \"responsiveOptions\",\n contentHeight: \"contentHeight\",\n showThumbnailNavigators: \"showThumbnailNavigators\",\n templates: \"templates\",\n numVisible: \"numVisible\",\n activeIndex: \"activeIndex\"\n },\n outputs: {\n onActiveIndexChange: \"onActiveIndexChange\",\n stopSlideShow: \"stopSlideShow\"\n },\n decls: 8,\n vars: 6,\n consts: [[1, \"p-galleria-thumbnail-wrapper\"], [1, \"p-galleria-thumbnail-container\"], [\"type\", \"button\", \"pRipple\", \"\", 3, \"ngClass\", \"disabled\", \"click\", 4, \"ngIf\"], [1, \"p-galleria-thumbnail-items-container\", 3, \"ngStyle\"], [1, \"p-galleria-thumbnail-items\", 3, \"transitionend\", \"touchstart\", \"touchmove\", \"touchend\"], [\"itemsContainer\", \"\"], [3, \"ngClass\", 4, \"ngFor\", \"ngForOf\"], [\"type\", \"button\", \"pRipple\", \"\", 3, \"ngClass\", \"disabled\", \"click\"], [3, \"ngClass\"], [1, \"p-galleria-thumbnail-item-content\", 3, \"click\", \"keydown.enter\"], [\"type\", \"thumbnail\", 3, \"item\", \"templates\"]],\n template: function GalleriaThumbnails_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 0);\n i0.ɵɵelementStart(1, \"div\", 1);\n i0.ɵɵtemplate(2, GalleriaThumbnails_button_2_Template, 2, 8, \"button\", 2);\n i0.ɵɵelementStart(3, \"div\", 3);\n i0.ɵɵelementStart(4, \"div\", 4, 5);\n i0.ɵɵlistener(\"transitionend\", function GalleriaThumbnails_Template_div_transitionend_4_listener() {\n return ctx.onTransitionEnd();\n })(\"touchstart\", function GalleriaThumbnails_Template_div_touchstart_4_listener($event) {\n return ctx.onTouchStart($event);\n })(\"touchmove\", function GalleriaThumbnails_Template_div_touchmove_4_listener($event) {\n return ctx.onTouchMove($event);\n })(\"touchend\", function GalleriaThumbnails_Template_div_touchend_4_listener($event) {\n return ctx.onTouchEnd($event);\n });\n i0.ɵɵtemplate(6, GalleriaThumbnails_div_6_Template, 3, 9, \"div\", 6);\n i0.ɵɵelementEnd();\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(7, GalleriaThumbnails_button_7_Template, 2, 8, \"button\", 2);\n i0.ɵɵelementEnd();\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx.showThumbnailNavigators);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction1(4, _c15, ctx.isVertical ? ctx.contentHeight : \"\"));\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"ngForOf\", ctx.value);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.showThumbnailNavigators);\n }\n },\n directives: [i2.NgIf, i2.NgStyle, i2.NgForOf, i3.Ripple, i2.NgClass, GalleriaItemSlot],\n encapsulation: 2,\n changeDetection: 0\n});\n\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(GalleriaThumbnails, [{\n type: Component,\n args: [{\n selector: 'p-galleriaThumbnails',\n template: `\n <div class=\"p-galleria-thumbnail-wrapper\">\n <div class=\"p-galleria-thumbnail-container\">\n <button *ngIf=\"showThumbnailNavigators\" type=\"button\" [ngClass]=\"{'p-galleria-thumbnail-prev p-link': true, 'p-disabled': this.isNavBackwardDisabled()}\" (click)=\"navBackward($event)\" [disabled]=\"isNavBackwardDisabled()\" pRipple>\n <span [ngClass]=\"{'p-galleria-thumbnail-prev-icon pi': true, 'pi-chevron-left': !this.isVertical, 'pi-chevron-up': this.isVertical}\"></span>\n </button>\n <div class=\"p-galleria-thumbnail-items-container\" [ngStyle]=\"{'height': isVertical ? contentHeight : ''}\">\n <div #itemsContainer class=\"p-galleria-thumbnail-items\" (transitionend)=\"onTransitionEnd()\"\n (touchstart)=\"onTouchStart($event)\" (touchmove)=\"onTouchMove($event)\" (touchend)=\"onTouchEnd($event)\">\n <div *ngFor=\"let item of value; let index = index;\" [ngClass]=\"{'p-galleria-thumbnail-item': true, 'p-galleria-thumbnail-item-current': activeIndex === index, 'p-galleria-thumbnail-item-active': isItemActive(index),\n 'p-galleria-thumbnail-item-start': firstItemAciveIndex() === index, 'p-galleria-thumbnail-item-end': lastItemActiveIndex() === index }\">\n <div class=\"p-galleria-thumbnail-item-content\" [attr.tabindex]=\"getTabIndex(index)\" (click)=\"onItemClick(index)\" (keydown.enter)=\"onItemClick(index)\">\n <p-galleriaItemSlot type=\"thumbnail\" [item]=\"item\" [templates]=\"templates\"></p-galleriaItemSlot>\n </div>\n </div>\n </div>\n </div>\n <button *ngIf=\"showThumbnailNavigators\" type=\"button\" [ngClass]=\"{'p-galleria-thumbnail-next p-link': true, 'p-disabled': this.isNavForwardDisabled()}\" (click)=\"navForward($event)\" [disabled]=\"isNavForwardDisabled()\" pRipple>\n <span [ngClass]=\"{'p-galleria-thumbnail-next-icon pi': true, 'pi-chevron-right': !this.isVertical, 'pi-chevron-down': this.isVertical}\"></span>\n </button>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n }]\n }], function () {\n return [{\n type: i0.ChangeDetectorRef\n }];\n }, {\n containerId: [{\n type: Input\n }],\n value: [{\n type: Input\n }],\n isVertical: [{\n type: Input\n }],\n slideShowActive: [{\n type: Input\n }],\n circular: [{\n type: Input\n }],\n responsiveOptions: [{\n type: Input\n }],\n contentHeight: [{\n type: Input\n }],\n showThumbnailNavigators: [{\n type: Input\n }],\n templates: [{\n type: Input\n }],\n onActiveIndexChange: [{\n type: Output\n }],\n stopSlideShow: [{\n type: Output\n }],\n itemsContainer: [{\n type: ViewChild,\n args: ['itemsContainer']\n }],\n numVisible: [{\n type: Input\n }],\n activeIndex: [{\n type: Input\n }]\n });\n})();\n\nclass GalleriaModule {}\n\nGalleriaModule.ɵfac = function GalleriaModule_Factory(t) {\n return new (t || GalleriaModule)();\n};\n\nGalleriaModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: GalleriaModule\n});\nGalleriaModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, SharedModule, RippleModule], CommonModule, SharedModule]\n});\n\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(GalleriaModule, [{\n type: NgModule,\n args: [{\n imports: [CommonModule, SharedModule, RippleModule],\n exports: [CommonModule, Galleria, GalleriaContent, GalleriaItemSlot, GalleriaItem, GalleriaThumbnails, SharedModule],\n declarations: [Galleria, GalleriaContent, GalleriaItemSlot, GalleriaItem, GalleriaThumbnails]\n }]\n }], null, null);\n})();\n/**\n * Generated bundle index. Do not edit.\n */\n\n\nexport { Galleria, GalleriaContent, GalleriaItem, GalleriaItemSlot, GalleriaModule, GalleriaThumbnails };","map":{"version":3,"sources":["C:/Users/DELL/Desktop/bachelor-thesis/trip-planner-front/node_modules/primeng/fesm2020/primeng-galleria.mjs"],"names":["i0","EventEmitter","Component","ChangeDetectionStrategy","ViewEncapsulation","Input","ViewChild","Output","ContentChildren","NgModule","i2","CommonModule","i1","PrimeTemplate","SharedModule","ZIndexUtils","UniqueComponentId","DomHandler","i3","RippleModule","trigger","transition","style","animate","Galleria","constructor","element","cd","config","fullScreen","numVisible","showItemNavigators","showThumbnailNavigators","showItemNavigatorsOnHover","changeItemOnIndicatorHover","circular","autoPlay","transitionInterval","showThumbnails","thumbnailsPosition","verticalThumbnailViewPortHeight","showIndicators","showIndicatorsOnItem","indicatorsPosition","baseZIndex","showTransitionOptions","hideTransitionOptions","activeIndexChange","visibleChange","_visible","_activeIndex","maskVisible","activeIndex","visible","ngAfterContentInit","templates","forEach","item","getType","headerFacet","template","footerFacet","indicatorFacet","captionFacet","ngOnChanges","simpleChanges","value","currentValue","length","onMaskHide","emit","onActiveItemChange","index","onAnimationStart","event","toState","enableModality","addClass","mask","nativeElement","onAnimationEnd","disableModality","document","body","markForCheck","set","zIndex","modal","removeClass","clear","ngOnDestroy","ɵfac","ElementRef","ChangeDetectorRef","PrimeNGConfig","ɵcmp","NgIf","NgClass","GalleriaContent","NgStyle","transform","opacity","type","args","selector","animations","changeDetection","OnPush","encapsulation","None","host","styles","id","responsiveOptions","maskClass","containerClass","containerStyle","galleria","maskHide","activeItemChange","slideShowActicve","slideShowActive","galleriaClass","thumbnailsPosClass","getPositionClass","indicatorPosClass","startSlideShow","interval","setInterval","onActiveIndexChange","stopSlideShow","clearInterval","preClassName","position","positions","pos","find","isVertical","GalleriaItem","Ripple","GalleriaItemSlot","GalleriaThumbnails","_item","context","$implicit","contentTemplate","NgTemplateOutlet","activeItem","ngOnInit","next","nextItemIndex","prev","prevItemIndex","stopTheSlideShow","navForward","e","cancelable","preventDefault","navBackward","onIndicatorClick","onIndicatorMouseEnter","onIndicatorKeyDown","isNavForwardDisabled","isNavBackwardDisabled","isIndicatorItemActive","NgForOf","contentHeight","startPos","thumbnailsStyle","sortedResponsiveOptions","totalShiftedItems","page","_numVisible","d_numVisible","_oldNumVisible","_oldactiveIndex","createStyle","bindDocumentListeners","ngAfterContentChecked","itemsContainer","getMedianItemIndex","ngAfterViewInit","calculatePosition","createElement","appendChild","innerHTML","containerId","sort","data1","data2","value1","breakpoint","value2","result","localeCompare","undefined","numeric","i","res","windowWidth","window","innerWidth","matchedResponsiveData","parseInt","getTabIndex","isItemActive","getTotalPageNumber","step","diff","onItemClick","selectedItemIndex","dir","changePageOnTouch","Math","floor","onTransitionEnd","onTouchEnd","touchobj","changedTouches","pageY","y","pageX","x","onTouchMove","onTouchStart","firstItemAciveIndex","lastItemActiveIndex","documentResizeListener","addEventListener","unbindDocumentListeners","removeEventListener","parentNode","removeChild","GalleriaModule","ɵmod","ɵinj","imports","exports","declarations"],"mappings":"AAAA,OAAO,KAAKA,EAAZ,MAAoB,eAApB;AACA,SAASC,YAAT,EAAuBC,SAAvB,EAAkCC,uBAAlC,EAA2DC,iBAA3D,EAA8EC,KAA9E,EAAqFC,SAArF,EAAgGC,MAAhG,EAAwGC,eAAxG,EAAyHC,QAAzH,QAAyI,eAAzI;AACA,OAAO,KAAKC,EAAZ,MAAoB,iBAApB;AACA,SAASC,YAAT,QAA6B,iBAA7B;AACA,OAAO,KAAKC,EAAZ,MAAoB,aAApB;AACA,SAASC,aAAT,EAAwBC,YAAxB,QAA4C,aAA5C;AACA,SAASC,WAAT,EAAsBC,iBAAtB,QAA+C,eAA/C;AACA,SAASC,UAAT,QAA2B,aAA3B;AACA,OAAO,KAAKC,EAAZ,MAAoB,gBAApB;AACA,SAASC,YAAT,QAA6B,gBAA7B;AACA,SAASC,OAAT,EAAkBC,UAAlB,EAA8BC,KAA9B,E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Af,EAAyB0E,eAAzB,EAA0C0C,gBAA1C,EAA4DF,YAA5D,EAA0EG,kBAA1E,EAA8F/H,YAA9F,CAFV;AAGCgO,MAAAA,YAAY,EAAE,CAACtN,QAAD,EAAW0E,eAAX,EAA4B0C,gBAA5B,EAA8CF,YAA9C,EAA4DG,kBAA5D;AAHf,KAAD;AAFsG,GAAD,CAAvH;AAAA;AASA;AACA;AACA;;;AAEA,SAASrH,QAAT,EAAmB0E,eAAnB,EAAoCwC,YAApC,EAAkDE,gBAAlD,EAAoE6F,cAApE,EAAoF5F,kBAApF","sourcesContent":["import * as i0 from '@angular/core';\nimport { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ViewChild, Output, ContentChildren, NgModule } from '@angular/core';\nimport * as i2 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i1 from 'primeng/api';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\nimport { ZIndexUtils, UniqueComponentId } from 'primeng/utils';\nimport { DomHandler } from 'primeng/dom';\nimport * as i3 from 'primeng/ripple';\nimport { RippleModule } from 'primeng/ripple';\nimport { trigger, transition, style, animate } from '@angular/animations';\n\nclass Galleria {\n constructor(element, cd, config) {\n this.element = element;\n this.cd = cd;\n this.config = config;\n this.fullScreen = false;\n this.numVisible = 3;\n this.showItemNavigators = false;\n this.showThumbnailNavigators = true;\n this.showItemNavigatorsOnHover = false;\n this.changeItemOnIndicatorHover = false;\n this.circular = false;\n this.autoPlay = false;\n this.transitionInterval = 4000;\n this.showThumbnails = true;\n this.thumbnailsPosition = \"bottom\";\n this.verticalThumbnailViewPortHeight = \"300px\";\n this.showIndicators = false;\n this.showIndicatorsOnItem = false;\n this.indicatorsPosition = \"bottom\";\n this.baseZIndex = 0;\n this.showTransitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';\n this.hideTransitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';\n this.activeIndexChange = new EventEmitter();\n this.visibleChange = new EventEmitter();\n this._visible = false;\n this._activeIndex = 0;\n this.maskVisible = false;\n }\n get activeIndex() {\n return this._activeIndex;\n }\n ;\n set activeIndex(activeIndex) {\n this._activeIndex = activeIndex;\n }\n get visible() {\n return this._visible;\n }\n ;\n set visible(visible) {\n this._visible = visible;\n if (this._visible && !this.maskVisible) {\n this.maskVisible = true;\n }\n }\n ngAfterContentInit() {\n this.templates.forEach((item) => {\n switch (item.getType()) {\n case 'header':\n this.headerFacet = item.template;\n break;\n case 'footer':\n this.footerFacet = item.template;\n break;\n case 'indicator':\n this.indicatorFacet = item.template;\n break;\n case 'caption':\n this.captionFacet = item.template;\n break;\n }\n });\n }\n ngOnChanges(simpleChanges) {\n if (simpleChanges.value && simpleChanges.value.currentValue?.length < this.numVisible) {\n this.numVisible = simpleChanges.value.currentValue.length;\n }\n }\n onMaskHide() {\n this.visible = false;\n this.visibleChange.emit(false);\n }\n onActiveItemChange(index) {\n if (this.activeIndex !== index) {\n this.activeIndex = index;\n this.activeIndexChange.emit(index);\n }\n }\n onAnimationStart(event) {\n switch (event.toState) {\n case 'visible':\n this.enableModality();\n break;\n case 'void':\n DomHandler.addClass(this.mask.nativeElement, 'p-component-overlay-leave');\n break;\n }\n }\n onAnimationEnd(event) {\n switch (event.toState) {\n case 'void':\n this.disableModality();\n break;\n }\n }\n enableModality() {\n DomHandler.addClass(document.body, 'p-overflow-hidden');\n this.cd.markForCheck();\n if (this.mask) {\n ZIndexUtils.set('modal', this.mask.nativeElement, this.baseZIndex || this.config.zIndex.modal);\n }\n }\n disableModality() {\n DomHandler.removeClass(document.body, 'p-overflow-hidden');\n this.maskVisible = false;\n this.cd.markForCheck();\n if (this.mask) {\n ZIndexUtils.clear(this.mask.nativeElement);\n }\n }\n ngOnDestroy() {\n if (this.fullScreen) {\n DomHandler.removeClass(document.body, 'p-overflow-hidden');\n }\n if (this.mask) {\n this.disableModality();\n }\n }\n}\nGalleria.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: Galleria, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.PrimeNGConfig }], target: i0.ɵɵFactoryTarget.Component });\nGalleria.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.0\", type: Galleria, selector: \"p-galleria\", inputs: { activeIndex: \"activeIndex\", fullScreen: \"fullScreen\", id: \"id\", value: \"value\", numVisible: \"numVisible\", responsiveOptions: \"responsiveOptions\", showItemNavigators: \"showItemNavigators\", showThumbnailNavigators: \"showThumbnailNavigators\", showItemNavigatorsOnHover: \"showItemNavigatorsOnHover\", changeItemOnIndicatorHover: \"changeItemOnIndicatorHover\", circular: \"circular\", autoPlay: \"autoPlay\", transitionInterval: \"transitionInterval\", showThumbnails: \"showThumbnails\", thumbnailsPosition: \"thumbnailsPosition\", verticalThumbnailViewPortHeight: \"verticalThumbnailViewPortHeight\", showIndicators: \"showIndicators\", showIndicatorsOnItem: \"showIndicatorsOnItem\", indicatorsPosition: \"indicatorsPosition\", baseZIndex: \"baseZIndex\", maskClass: \"maskClass\", containerClass: \"containerClass\", containerStyle: \"containerStyle\", showTransitionOptions: \"showTransitionOptions\", hideTransitionOptions: \"hideTransitionOptions\", visible: \"visible\" }, outputs: { activeIndexChange: \"activeIndexChange\", visibleChange: \"visibleChange\" }, host: { classAttribute: \"p-element\" }, queries: [{ propertyName: \"templates\", predicate: PrimeTemplate }], viewQueries: [{ propertyName: \"mask\", first: true, predicate: [\"mask\"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `\n <div *ngIf=\"fullScreen;else windowed\">\n <div *ngIf=\"maskVisible\" #mask [ngClass]=\"{'p-galleria-mask p-component-overlay p-component-overlay-enter':true, 'p-galleria-visible': this.visible}\" [class]=\"maskClass\">\n <p-galleriaContent *ngIf=\"visible\" [@animation]=\"{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}\" (@animation.start)=\"onAnimationStart($event)\" (@animation.done)=\"onAnimationEnd($event)\"\n [value]=\"value\" [activeIndex]=\"activeIndex\" [numVisible]=\"numVisible\" (maskHide)=\"onMaskHide()\" (activeItemChange)=\"onActiveItemChange($event)\" [ngStyle]=\"containerStyle\"></p-galleriaContent>\n </div>\n </div>\n\n <ng-template #windowed>\n <p-galleriaContent [value]=\"value\" [activeIndex]=\"activeIndex\" [numVisible]=\"numVisible\" (activeItemChange)=\"onActiveItemChange($event)\"></p-galleriaContent>\n </ng-template>\n `, isInline: true, styles: [\".p-galleria-content{display:flex;flex-direction:column}.p-galleria-item-wrapper{display:flex;flex-direction:column;position:relative}.p-galleria-item-container{position:relative;display:flex;height:100%}.p-galleria-item-nav{position:absolute;top:50%;margin-top:-.5rem;display:inline-flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-item-prev{left:0;border-top-left-radius:0;border-bottom-left-radius:0}.p-galleria-item-next{right:0;border-top-right-radius:0;border-bottom-right-radius:0}.p-galleria-item{display:flex;justify-content:center;align-items:center;height:100%;width:100%}.p-galleria-item-nav-onhover .p-galleria-item-nav{pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav{pointer-events:all;opacity:1}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled{pointer-events:none}.p-galleria-caption{position:absolute;bottom:0;left:0;width:100%}.p-galleria-thumbnail-wrapper{display:flex;flex-direction:column;overflow:auto;flex-shrink:0}.p-galleria-thumbnail-prev,.p-galleria-thumbnail-next{align-self:center;flex:0 0 auto;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-galleria-thumbnail-prev span,.p-galleria-thumbnail-next span{display:flex;justify-content:center;align-items:center}.p-galleria-thumbnail-container{display:flex;flex-direction:row}.p-galleria-thumbnail-items-container{overflow:hidden;width:100%}.p-galleria-thumbnail-items{display:flex}.p-galleria-thumbnail-item{overflow:auto;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.5}.p-galleria-thumbnail-item:hover{opacity:1;transition:opacity .3s}.p-galleria-thumbnail-item-current{opacity:1}.p-galleria-thumbnails-left .p-galleria-content,.p-galleria-thumbnails-right .p-galleria-content,.p-galleria-thumbnails-left .p-galleria-item-wrapper,.p-galleria-thumbnails-right .p-galleria-item-wrapper{flex-direction:row}.p-galleria-thumbnails-left p-galleriaitem,.p-galleria-thumbnails-top p-galleriaitem{order:2}.p-galleria-thumbnails-left p-galleriathumbnails,.p-galleria-thumbnails-top p-galleriathumbnails{order:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-container,.p-galleria-thumbnails-right .p-galleria-thumbnail-container{flex-direction:column;flex-grow:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-items,.p-galleria-thumbnails-right .p-galleria-thumbnail-items{flex-direction:column;height:100%}.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,.p-galleria-thumbnails-right .p-galleria-thumbnail-wrapper{height:100%}.p-galleria-indicators{display:flex;align-items:center;justify-content:center}.p-galleria-indicator>button{display:inline-flex;align-items:center}.p-galleria-indicators-left .p-galleria-item-wrapper,.p-galleria-indicators-right .p-galleria-item-wrapper{flex-direction:row;align-items:center}.p-galleria-indicators-left .p-galleria-item-container,.p-galleria-indicators-top .p-galleria-item-container{order:2}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-top .p-galleria-indicators{order:1}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-right .p-galleria-indicators{flex-direction:column}.p-galleria-indicator-onitem .p-galleria-indicators{position:absolute;display:flex;z-index:1}.p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators{top:0;left:0;width:100%;align-items:flex-start}.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators{right:0;top:0;height:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators{bottom:0;left:0;width:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators{left:0;top:0;height:100%;align-items:flex-start}.p-galleria-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:transparent;transition-property:background-color}.p-galleria-close{position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-mask .p-galleria-item-nav{position:fixed;top:50%;margin-top:-.5rem}.p-galleria-mask.p-galleria-mask-leave{background-color:transparent}.p-items-hidden .p-galleria-thumbnail-item{visibility:hidden}.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active{visibility:visible}\\n\"], components: [{ type: i0.forwardRef(function () { return GalleriaContent; }), selector: \"p-galleriaContent\", inputs: [\"activeIndex\", \"value\", \"numVisible\"], outputs: [\"maskHide\", \"activeItemChange\"] }], directives: [{ type: i0.forwardRef(function () { return i2.NgIf; }), selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i0.forwardRef(function () { return i2.NgClass; }), selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { type: i0.forwardRef(function () { return i2.NgStyle; }), selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }], animations: [\n trigger('animation', [\n transition('void => visible', [\n style({ transform: 'scale(0.7)', opacity: 0 }),\n animate('{{showTransitionParams}}')\n ]),\n transition('visible => void', [\n animate('{{hideTransitionParams}}', style({ transform: 'scale(0.7)', opacity: 0 }))\n ])\n ])\n ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: Galleria, decorators: [{\n type: Component,\n args: [{ selector: 'p-galleria', template: `\n <div *ngIf=\"fullScreen;else windowed\">\n <div *ngIf=\"maskVisible\" #mask [ngClass]=\"{'p-galleria-mask p-component-overlay p-component-overlay-enter':true, 'p-galleria-visible': this.visible}\" [class]=\"maskClass\">\n <p-galleriaContent *ngIf=\"visible\" [@animation]=\"{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}\" (@animation.start)=\"onAnimationStart($event)\" (@animation.done)=\"onAnimationEnd($event)\"\n [value]=\"value\" [activeIndex]=\"activeIndex\" [numVisible]=\"numVisible\" (maskHide)=\"onMaskHide()\" (activeItemChange)=\"onActiveItemChange($event)\" [ngStyle]=\"containerStyle\"></p-galleriaContent>\n </div>\n </div>\n\n <ng-template #windowed>\n <p-galleriaContent [value]=\"value\" [activeIndex]=\"activeIndex\" [numVisible]=\"numVisible\" (activeItemChange)=\"onActiveItemChange($event)\"></p-galleriaContent>\n </ng-template>\n `, animations: [\n trigger('animation', [\n transition('void => visible', [\n style({ transform: 'scale(0.7)', opacity: 0 }),\n animate('{{showTransitionParams}}')\n ]),\n transition('visible => void', [\n animate('{{hideTransitionParams}}', style({ transform: 'scale(0.7)', opacity: 0 }))\n ])\n ])\n ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {\n 'class': 'p-element'\n }, styles: [\".p-galleria-content{display:flex;flex-direction:column}.p-galleria-item-wrapper{display:flex;flex-direction:column;position:relative}.p-galleria-item-container{position:relative;display:flex;height:100%}.p-galleria-item-nav{position:absolute;top:50%;margin-top:-.5rem;display:inline-flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-item-prev{left:0;border-top-left-radius:0;border-bottom-left-radius:0}.p-galleria-item-next{right:0;border-top-right-radius:0;border-bottom-right-radius:0}.p-galleria-item{display:flex;justify-content:center;align-items:center;height:100%;width:100%}.p-galleria-item-nav-onhover .p-galleria-item-nav{pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav{pointer-events:all;opacity:1}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled{pointer-events:none}.p-galleria-caption{position:absolute;bottom:0;left:0;width:100%}.p-galleria-thumbnail-wrapper{display:flex;flex-direction:column;overflow:auto;flex-shrink:0}.p-galleria-thumbnail-prev,.p-galleria-thumbnail-next{align-self:center;flex:0 0 auto;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-galleria-thumbnail-prev span,.p-galleria-thumbnail-next span{display:flex;justify-content:center;align-items:center}.p-galleria-thumbnail-container{display:flex;flex-direction:row}.p-galleria-thumbnail-items-container{overflow:hidden;width:100%}.p-galleria-thumbnail-items{display:flex}.p-galleria-thumbnail-item{overflow:auto;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.5}.p-galleria-thumbnail-item:hover{opacity:1;transition:opacity .3s}.p-galleria-thumbnail-item-current{opacity:1}.p-galleria-thumbnails-left .p-galleria-content,.p-galleria-thumbnails-right .p-galleria-content,.p-galleria-thumbnails-left .p-galleria-item-wrapper,.p-galleria-thumbnails-right .p-galleria-item-wrapper{flex-direction:row}.p-galleria-thumbnails-left p-galleriaitem,.p-galleria-thumbnails-top p-galleriaitem{order:2}.p-galleria-thumbnails-left p-galleriathumbnails,.p-galleria-thumbnails-top p-galleriathumbnails{order:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-container,.p-galleria-thumbnails-right .p-galleria-thumbnail-container{flex-direction:column;flex-grow:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-items,.p-galleria-thumbnails-right .p-galleria-thumbnail-items{flex-direction:column;height:100%}.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,.p-galleria-thumbnails-right .p-galleria-thumbnail-wrapper{height:100%}.p-galleria-indicators{display:flex;align-items:center;justify-content:center}.p-galleria-indicator>button{display:inline-flex;align-items:center}.p-galleria-indicators-left .p-galleria-item-wrapper,.p-galleria-indicators-right .p-galleria-item-wrapper{flex-direction:row;align-items:center}.p-galleria-indicators-left .p-galleria-item-container,.p-galleria-indicators-top .p-galleria-item-container{order:2}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-top .p-galleria-indicators{order:1}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-right .p-galleria-indicators{flex-direction:column}.p-galleria-indicator-onitem .p-galleria-indicators{position:absolute;display:flex;z-index:1}.p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators{top:0;left:0;width:100%;align-items:flex-start}.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators{right:0;top:0;height:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators{bottom:0;left:0;width:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators{left:0;top:0;height:100%;align-items:flex-start}.p-galleria-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:transparent;transition-property:background-color}.p-galleria-close{position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-mask .p-galleria-item-nav{position:fixed;top:50%;margin-top:-.5rem}.p-galleria-mask.p-galleria-mask-leave{background-color:transparent}.p-items-hidden .p-galleria-thumbnail-item{visibility:hidden}.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active{visibility:visible}\\n\"] }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.PrimeNGConfig }]; }, propDecorators: { activeIndex: [{\n type: Input\n }], fullScreen: [{\n type: Input\n }], id: [{\n type: Input\n }], value: [{\n type: Input\n }], numVisible: [{\n type: Input\n }], responsiveOptions: [{\n type: Input\n }], showItemNavigators: [{\n type: Input\n }], showThumbnailNavigators: [{\n type: Input\n }], showItemNavigatorsOnHover: [{\n type: Input\n }], changeItemOnIndicatorHover: [{\n type: Input\n }], circular: [{\n type: Input\n }], autoPlay: [{\n type: Input\n }], transitionInterval: [{\n type: Input\n }], showThumbnails: [{\n type: Input\n }], thumbnailsPosition: [{\n type: Input\n }], verticalThumbnailViewPortHeight: [{\n type: Input\n }], showIndicators: [{\n type: Input\n }], showIndicatorsOnItem: [{\n type: Input\n }], indicatorsPosition: [{\n type: Input\n }], baseZIndex: [{\n type: Input\n }], maskClass: [{\n type: Input\n }], containerClass: [{\n type: Input\n }], containerStyle: [{\n type: Input\n }], showTransitionOptions: [{\n type: Input\n }], hideTransitionOptions: [{\n type: Input\n }], mask: [{\n type: ViewChild,\n args: ['mask']\n }], visible: [{\n type: Input\n }], activeIndexChange: [{\n type: Output\n }], visibleChange: [{\n type: Output\n }], templates: [{\n type: ContentChildren,\n args: [PrimeTemplate]\n }] } });\nclass GalleriaContent {\n constructor(galleria, cd) {\n this.galleria = galleria;\n this.cd = cd;\n this.value = [];\n this.maskHide = new EventEmitter();\n this.activeItemChange = new EventEmitter();\n this.id = this.galleria.id || UniqueComponentId();\n this.slideShowActicve = false;\n this._activeIndex = 0;\n this.slideShowActive = true;\n }\n get activeIndex() {\n return this._activeIndex;\n }\n ;\n set activeIndex(activeIndex) {\n this._activeIndex = activeIndex;\n }\n galleriaClass() {\n const thumbnailsPosClass = this.galleria.showThumbnails && this.getPositionClass('p-galleria-thumbnails', this.galleria.thumbnailsPosition);\n const indicatorPosClass = this.galleria.showIndicators && this.getPositionClass('p-galleria-indicators', this.galleria.indicatorsPosition);\n return (this.galleria.containerClass ? this.galleria.containerClass + \" \" : '') + (thumbnailsPosClass ? thumbnailsPosClass + \" \" : '') + (indicatorPosClass ? indicatorPosClass + \" \" : '');\n }\n startSlideShow() {\n this.interval = setInterval(() => {\n let activeIndex = (this.galleria.circular && (this.value.length - 1) === this.activeIndex) ? 0 : (this.activeIndex + 1);\n this.onActiveIndexChange(activeIndex);\n this.activeIndex = activeIndex;\n }, this.galleria.transitionInterval);\n this.slideShowActive = true;\n }\n stopSlideShow() {\n if (this.interval) {\n clearInterval(this.interval);\n }\n this.slideShowActive = false;\n }\n getPositionClass(preClassName, position) {\n const positions = ['top', 'left', 'bottom', 'right'];\n const pos = positions.find(item => item === position);\n return pos ? `${preClassName}-${pos}` : '';\n }\n isVertical() {\n return this.galleria.thumbnailsPosition === 'left' || this.galleria.thumbnailsPosition === 'right';\n }\n onActiveIndexChange(index) {\n if (this.activeIndex !== index) {\n this.activeIndex = index;\n this.activeItemChange.emit(this.activeIndex);\n }\n }\n}\nGalleriaContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: GalleriaContent, deps: [{ token: Galleria }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\nGalleriaContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.0\", type: GalleriaContent, selector: \"p-galleriaContent\", inputs: { activeIndex: \"activeIndex\", value: \"value\", numVisible: \"numVisible\" }, outputs: { maskHide: \"maskHide\", activeItemChange: \"activeItemChange\" }, ngImport: i0, template: `\n <div [attr.id]=\"id\" *ngIf=\"value && value.length > 0\" [ngClass]=\"{'p-galleria p-component': true, 'p-galleria-fullscreen': this.galleria.fullScreen,\n 'p-galleria-indicator-onitem': this.galleria.showIndicatorsOnItem, 'p-galleria-item-nav-onhover': this.galleria.showItemNavigatorsOnHover && !this.galleria.fullScreen}\"\n [ngStyle]=\"!galleria.fullScreen ? galleria.containerStyle : {}\" [class]=\"galleriaClass()\">\n <button *ngIf=\"galleria.fullScreen\" type=\"button\" class=\"p-galleria-close p-link\" (click)=\"maskHide.emit()\" pRipple>\n <span class=\"p-galleria-close-icon pi pi-times\"></span>\n </button>\n <div *ngIf=\"galleria.templates && galleria.headerFacet\" class=\"p-galleria-header\">\n <p-galleriaItemSlot type=\"header\" [templates]=\"galleria.templates\"></p-galleriaItemSlot>\n </div>\n <div class=\"p-galleria-content\">\n <p-galleriaItem [value]=\"value\" [activeIndex]=\"activeIndex\" [circular]=\"galleria.circular\" [templates]=\"galleria.templates\" (onActiveIndexChange)=\"onActiveIndexChange($event)\"\n [showIndicators]=\"galleria.showIndicators\" [changeItemOnIndicatorHover]=\"galleria.changeItemOnIndicatorHover\" [indicatorFacet]=\"galleria.indicatorFacet\"\n [captionFacet]=\"galleria.captionFacet\" [showItemNavigators]=\"galleria.showItemNavigators\" [autoPlay]=\"galleria.autoPlay\" [slideShowActive]=\"slideShowActive\"\n (startSlideShow)=\"startSlideShow()\" (stopSlideShow)=\"stopSlideShow()\"></p-galleriaItem>\n\n <p-galleriaThumbnails *ngIf=\"galleria.showThumbnails\" [containerId]=\"id\" [value]=\"value\" (onActiveIndexChange)=\"onActiveIndexChange($event)\" [activeIndex]=\"activeIndex\" [templates]=\"galleria.templates\"\n [numVisible]=\"numVisible\" [responsiveOptions]=\"galleria.responsiveOptions\" [circular]=\"galleria.circular\"\n [isVertical]=\"isVertical()\" [contentHeight]=\"galleria.verticalThumbnailViewPortHeight\" [showThumbnailNavigators]=\"galleria.showThumbnailNavigators\"\n [slideShowActive]=\"slideShowActive\" (stopSlideShow)=\"stopSlideShow()\"></p-galleriaThumbnails>\n </div>\n <div *ngIf=\"galleria.templates && galleria.footerFacet\" class=\"p-galleria-footer\">\n <p-galleriaItemSlot type=\"footer\" [templates]=\"galleria.templates\"></p-galleriaItemSlot>\n </div>\n </div>\n `, isInline: true, components: [{ type: i0.forwardRef(function () { return GalleriaItemSlot; }), selector: \"p-galleriaItemSlot\", inputs: [\"templates\", \"index\", \"item\", \"type\"] }, { type: i0.forwardRef(function () { return GalleriaItem; }), selector: \"p-galleriaItem\", inputs: [\"circular\", \"value\", \"showItemNavigators\", \"showIndicators\", \"slideShowActive\", \"changeItemOnIndicatorHover\", \"autoPlay\", \"templates\", \"indicatorFacet\", \"captionFacet\", \"activeIndex\"], outputs: [\"startSlideShow\", \"stopSlideShow\", \"onActiveIndexChange\"] }, { type: i0.forwardRef(function () { return GalleriaThumbnails; }), selector: \"p-galleriaThumbnails\", inputs: [\"containerId\", \"value\", \"isVertical\", \"slideShowActive\", \"circular\", \"responsiveOptions\", \"contentHeight\", \"showThumbnailNavigators\", \"templates\", \"numVisible\", \"activeIndex\"], outputs: [\"onActiveIndexChange\", \"stopSlideShow\"] }], directives: [{ type: i0.forwardRef(function () { return i2.NgIf; }), selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i0.forwardRef(function () { return i2.NgClass; }), selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { type: i0.forwardRef(function () { return i2.NgStyle; }), selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { type: i0.forwardRef(function () { return i3.Ripple; }), selector: \"[pRipple]\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: GalleriaContent, decorators: [{\n type: Component,\n args: [{\n selector: 'p-galleriaContent',\n template: `\n <div [attr.id]=\"id\" *ngIf=\"value && value.length > 0\" [ngClass]=\"{'p-galleria p-component': true, 'p-galleria-fullscreen': this.galleria.fullScreen,\n 'p-galleria-indicator-onitem': this.galleria.showIndicatorsOnItem, 'p-galleria-item-nav-onhover': this.galleria.showItemNavigatorsOnHover && !this.galleria.fullScreen}\"\n [ngStyle]=\"!galleria.fullScreen ? galleria.containerStyle : {}\" [class]=\"galleriaClass()\">\n <button *ngIf=\"galleria.fullScreen\" type=\"button\" class=\"p-galleria-close p-link\" (click)=\"maskHide.emit()\" pRipple>\n <span class=\"p-galleria-close-icon pi pi-times\"></span>\n </button>\n <div *ngIf=\"galleria.templates && galleria.headerFacet\" class=\"p-galleria-header\">\n <p-galleriaItemSlot type=\"header\" [templates]=\"galleria.templates\"></p-galleriaItemSlot>\n </div>\n <div class=\"p-galleria-content\">\n <p-galleriaItem [value]=\"value\" [activeIndex]=\"activeIndex\" [circular]=\"galleria.circular\" [templates]=\"galleria.templates\" (onActiveIndexChange)=\"onActiveIndexChange($event)\"\n [showIndicators]=\"galleria.showIndicators\" [changeItemOnIndicatorHover]=\"galleria.changeItemOnIndicatorHover\" [indicatorFacet]=\"galleria.indicatorFacet\"\n [captionFacet]=\"galleria.captionFacet\" [showItemNavigators]=\"galleria.showItemNavigators\" [autoPlay]=\"galleria.autoPlay\" [slideShowActive]=\"slideShowActive\"\n (startSlideShow)=\"startSlideShow()\" (stopSlideShow)=\"stopSlideShow()\"></p-galleriaItem>\n\n <p-galleriaThumbnails *ngIf=\"galleria.showThumbnails\" [containerId]=\"id\" [value]=\"value\" (onActiveIndexChange)=\"onActiveIndexChange($event)\" [activeIndex]=\"activeIndex\" [templates]=\"galleria.templates\"\n [numVisible]=\"numVisible\" [responsiveOptions]=\"galleria.responsiveOptions\" [circular]=\"galleria.circular\"\n [isVertical]=\"isVertical()\" [contentHeight]=\"galleria.verticalThumbnailViewPortHeight\" [showThumbnailNavigators]=\"galleria.showThumbnailNavigators\"\n [slideShowActive]=\"slideShowActive\" (stopSlideShow)=\"stopSlideShow()\"></p-galleriaThumbnails>\n </div>\n <div *ngIf=\"galleria.templates && galleria.footerFacet\" class=\"p-galleria-footer\">\n <p-galleriaItemSlot type=\"footer\" [templates]=\"galleria.templates\"></p-galleriaItemSlot>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n }]\n }], ctorParameters: function () { return [{ type: Galleria }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { activeIndex: [{\n type: Input\n }], value: [{\n type: Input\n }], numVisible: [{\n type: Input\n }], maskHide: [{\n type: Output\n }], activeItemChange: [{\n type: Output\n }] } });\nclass GalleriaItemSlot {\n get item() {\n return this._item;\n }\n ;\n set item(item) {\n this._item = item;\n if (this.templates) {\n this.templates.forEach((item) => {\n if (item.getType() === this.type) {\n switch (this.type) {\n case 'item':\n case 'caption':\n case 'thumbnail':\n this.context = { $implicit: this.item };\n this.contentTemplate = item.template;\n break;\n }\n }\n });\n }\n }\n ngAfterContentInit() {\n this.templates.forEach((item) => {\n if (item.getType() === this.type) {\n switch (this.type) {\n case 'item':\n case 'caption':\n case 'thumbnail':\n this.context = { $implicit: this.item };\n this.contentTemplate = item.template;\n break;\n case 'indicator':\n this.context = { $implicit: this.index };\n this.contentTemplate = item.template;\n break;\n default:\n this.context = {};\n this.contentTemplate = item.template;\n break;\n }\n }\n });\n }\n}\nGalleriaItemSlot.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: GalleriaItemSlot, deps: [], target: i0.ɵɵFactoryTarget.Component });\nGalleriaItemSlot.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.0\", type: GalleriaItemSlot, selector: \"p-galleriaItemSlot\", inputs: { templates: \"templates\", index: \"index\", item: \"item\", type: \"type\" }, ngImport: i0, template: `\n <ng-container *ngIf=\"contentTemplate\">\n <ng-container *ngTemplateOutlet=\"contentTemplate; context: context\"></ng-container>\n </ng-container>\n `, isInline: true, directives: [{ type: i2.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i2.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: GalleriaItemSlot, decorators: [{\n type: Component,\n args: [{\n selector: 'p-galleriaItemSlot',\n template: `\n <ng-container *ngIf=\"contentTemplate\">\n <ng-container *ngTemplateOutlet=\"contentTemplate; context: context\"></ng-container>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n }]\n }], propDecorators: { templates: [{\n type: Input\n }], index: [{\n type: Input\n }], item: [{\n type: Input\n }], type: [{\n type: Input\n }] } });\nclass GalleriaItem {\n constructor() {\n this.circular = false;\n this.showItemNavigators = false;\n this.showIndicators = true;\n this.slideShowActive = true;\n this.changeItemOnIndicatorHover = true;\n this.autoPlay = false;\n this.startSlideShow = new EventEmitter();\n this.stopSlideShow = new EventEmitter();\n this.onActiveIndexChange = new EventEmitter();\n this._activeIndex = 0;\n }\n get activeIndex() {\n return this._activeIndex;\n }\n ;\n set activeIndex(activeIndex) {\n this._activeIndex = activeIndex;\n this.activeItem = this.value[this._activeIndex];\n }\n ngOnInit() {\n if (this.autoPlay) {\n this.startSlideShow.emit();\n }\n }\n next() {\n let nextItemIndex = this.activeIndex + 1;\n let activeIndex = this.circular && this.value.length - 1 === this.activeIndex\n ? 0\n : nextItemIndex;\n this.onActiveIndexChange.emit(activeIndex);\n }\n prev() {\n let prevItemIndex = this.activeIndex !== 0 ? this.activeIndex - 1 : 0;\n let activeIndex = this.circular && this.activeIndex === 0\n ? this.value.length - 1\n : prevItemIndex;\n this.onActiveIndexChange.emit(activeIndex);\n }\n stopTheSlideShow() {\n if (this.slideShowActive && this.stopSlideShow) {\n this.stopSlideShow.emit();\n }\n }\n navForward(e) {\n this.stopTheSlideShow();\n this.next();\n if (e && e.cancelable) {\n e.preventDefault();\n }\n }\n navBackward(e) {\n this.stopTheSlideShow();\n this.prev();\n if (e && e.cancelable) {\n e.preventDefault();\n }\n }\n onIndicatorClick(index) {\n this.stopTheSlideShow();\n this.onActiveIndexChange.emit(index);\n }\n onIndicatorMouseEnter(index) {\n if (this.changeItemOnIndicatorHover) {\n this.stopTheSlideShow();\n this.onActiveIndexChange.emit(index);\n }\n }\n onIndicatorKeyDown(index) {\n this.stopTheSlideShow();\n this.onActiveIndexChange.emit(index);\n }\n isNavForwardDisabled() {\n return !this.circular && this.activeIndex === (this.value.length - 1);\n }\n isNavBackwardDisabled() {\n return !this.circular && this.activeIndex === 0;\n }\n isIndicatorItemActive(index) {\n return this.activeIndex === index;\n }\n}\nGalleriaItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: GalleriaItem, deps: [], target: i0.ɵɵFactoryTarget.Component });\nGalleriaItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.0\", type: GalleriaItem, selector: \"p-galleriaItem\", inputs: { circular: \"circular\", value: \"value\", showItemNavigators: \"showItemNavigators\", showIndicators: \"showIndicators\", slideShowActive: \"slideShowActive\", changeItemOnIndicatorHover: \"changeItemOnIndicatorHover\", autoPlay: \"autoPlay\", templates: \"templates\", indicatorFacet: \"indicatorFacet\", captionFacet: \"captionFacet\", activeIndex: \"activeIndex\" }, outputs: { startSlideShow: \"startSlideShow\", stopSlideShow: \"stopSlideShow\", onActiveIndexChange: \"onActiveIndexChange\" }, ngImport: i0, template: `\n <div class=\"p-galleria-item-wrapper\">\n <div class=\"p-galleria-item-container\">\n <button *ngIf=\"showItemNavigators\" type=\"button\" [ngClass]=\"{'p-galleria-item-prev p-galleria-item-nav p-link': true, 'p-disabled': this.isNavBackwardDisabled()}\" (click)=\"navBackward($event)\" [disabled]=\"isNavBackwardDisabled()\" pRipple>\n <span class=\"p-galleria-item-prev-icon pi pi-chevron-left\"></span>\n </button>\n <p-galleriaItemSlot type=\"item\" [item]=\"activeItem\" [templates]=\"templates\" class=\"p-galleria-item\"></p-galleriaItemSlot>\n <button *ngIf=\"showItemNavigators\" type=\"button\" [ngClass]=\"{'p-galleria-item-next p-galleria-item-nav p-link': true,'p-disabled': this.isNavForwardDisabled()}\" (click)=\"navForward($event)\" [disabled]=\"isNavForwardDisabled()\" pRipple>\n <span class=\"p-galleria-item-next-icon pi pi-chevron-right\"></span>\n </button>\n <div class=\"p-galleria-caption\" *ngIf=\"captionFacet\">\n <p-galleriaItemSlot type=\"caption\" [item]=\"activeItem\" [templates]=\"templates\"></p-galleriaItemSlot>\n </div>\n </div>\n <ul *ngIf=\"showIndicators\" class=\"p-galleria-indicators p-reset\">\n <li *ngFor=\"let item of value; let index = index;\" tabindex=\"0\"\n (click)=\"onIndicatorClick(index)\" (mouseenter)=\"onIndicatorMouseEnter(index)\" (keydown.enter)=\"onIndicatorKeyDown(index)\"\n [ngClass]=\"{'p-galleria-indicator': true,'p-highlight': isIndicatorItemActive(index)}\">\n <button type=\"button\" tabIndex=\"-1\" class=\"p-link\" *ngIf=\"!indicatorFacet\">\n </button>\n <p-galleriaItemSlot type=\"indicator\" [index]=\"index\" [templates]=\"templates\"></p-galleriaItemSlot>\n </li>\n </ul>\n </div>\n `, isInline: true, components: [{ type: GalleriaItemSlot, selector: \"p-galleriaItemSlot\", inputs: [\"templates\", \"index\", \"item\", \"type\"] }], directives: [{ type: i2.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i3.Ripple, selector: \"[pRipple]\" }, { type: i2.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { type: i2.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: GalleriaItem, decorators: [{\n type: Component,\n args: [{\n selector: 'p-galleriaItem',\n template: `\n <div class=\"p-galleria-item-wrapper\">\n <div class=\"p-galleria-item-container\">\n <button *ngIf=\"showItemNavigators\" type=\"button\" [ngClass]=\"{'p-galleria-item-prev p-galleria-item-nav p-link': true, 'p-disabled': this.isNavBackwardDisabled()}\" (click)=\"navBackward($event)\" [disabled]=\"isNavBackwardDisabled()\" pRipple>\n <span class=\"p-galleria-item-prev-icon pi pi-chevron-left\"></span>\n </button>\n <p-galleriaItemSlot type=\"item\" [item]=\"activeItem\" [templates]=\"templates\" class=\"p-galleria-item\"></p-galleriaItemSlot>\n <button *ngIf=\"showItemNavigators\" type=\"button\" [ngClass]=\"{'p-galleria-item-next p-galleria-item-nav p-link': true,'p-disabled': this.isNavForwardDisabled()}\" (click)=\"navForward($event)\" [disabled]=\"isNavForwardDisabled()\" pRipple>\n <span class=\"p-galleria-item-next-icon pi pi-chevron-right\"></span>\n </button>\n <div class=\"p-galleria-caption\" *ngIf=\"captionFacet\">\n <p-galleriaItemSlot type=\"caption\" [item]=\"activeItem\" [templates]=\"templates\"></p-galleriaItemSlot>\n </div>\n </div>\n <ul *ngIf=\"showIndicators\" class=\"p-galleria-indicators p-reset\">\n <li *ngFor=\"let item of value; let index = index;\" tabindex=\"0\"\n (click)=\"onIndicatorClick(index)\" (mouseenter)=\"onIndicatorMouseEnter(index)\" (keydown.enter)=\"onIndicatorKeyDown(index)\"\n [ngClass]=\"{'p-galleria-indicator': true,'p-highlight': isIndicatorItemActive(index)}\">\n <button type=\"button\" tabIndex=\"-1\" class=\"p-link\" *ngIf=\"!indicatorFacet\">\n </button>\n <p-galleriaItemSlot type=\"indicator\" [index]=\"index\" [templates]=\"templates\"></p-galleriaItemSlot>\n </li>\n </ul>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n }]\n }], propDecorators: { circular: [{\n type: Input\n }], value: [{\n type: Input\n }], showItemNavigators: [{\n type: Input\n }], showIndicators: [{\n type: Input\n }], slideShowActive: [{\n type: Input\n }], changeItemOnIndicatorHover: [{\n type: Input\n }], autoPlay: [{\n type: Input\n }], templates: [{\n type: Input\n }], indicatorFacet: [{\n type: Input\n }], captionFacet: [{\n type: Input\n }], startSlideShow: [{\n type: Output\n }], stopSlideShow: [{\n type: Output\n }], onActiveIndexChange: [{\n type: Output\n }], activeIndex: [{\n type: Input\n }] } });\nclass GalleriaThumbnails {\n constructor(cd) {\n this.cd = cd;\n this.isVertical = false;\n this.slideShowActive = false;\n this.circular = false;\n this.contentHeight = \"300px\";\n this.showThumbnailNavigators = true;\n this.onActiveIndexChange = new EventEmitter();\n this.stopSlideShow = new EventEmitter();\n this.startPos = null;\n this.thumbnailsStyle = null;\n this.sortedResponsiveOptions = null;\n this.totalShiftedItems = 0;\n this.page = 0;\n this._numVisible = 0;\n this.d_numVisible = 0;\n this._oldNumVisible = 0;\n this._activeIndex = 0;\n this._oldactiveIndex = 0;\n }\n get numVisible() {\n return this._numVisible;\n }\n ;\n set numVisible(numVisible) {\n this._numVisible = numVisible;\n this._oldNumVisible = this.d_numVisible;\n this.d_numVisible = numVisible;\n }\n get activeIndex() {\n return this._activeIndex;\n }\n ;\n set activeIndex(activeIndex) {\n this._oldactiveIndex = this._activeIndex;\n this._activeIndex = activeIndex;\n }\n ngOnInit() {\n this.createStyle();\n if (this.responsiveOptions) {\n this.bindDocumentListeners();\n }\n }\n ngAfterContentChecked() {\n let totalShiftedItems = this.totalShiftedItems;\n if ((this._oldNumVisible !== this.d_numVisible || this._oldactiveIndex !== this._activeIndex) && this.itemsContainer) {\n if (this._activeIndex <= this.getMedianItemIndex()) {\n totalShiftedItems = 0;\n }\n else if (this.value.length - this.d_numVisible + this.getMedianItemIndex() < this._activeIndex) {\n totalShiftedItems = this.d_numVisible - this.value.length;\n }\n else if (this.value.length - this.d_numVisible < this._activeIndex && this.d_numVisible % 2 === 0) {\n totalShiftedItems = (this._activeIndex * -1) + this.getMedianItemIndex() + 1;\n }\n else {\n totalShiftedItems = (this._activeIndex * -1) + this.getMedianItemIndex();\n }\n if (totalShiftedItems !== this.totalShiftedItems) {\n this.totalShiftedItems = totalShiftedItems;\n }\n if (this.itemsContainer && this.itemsContainer.nativeElement) {\n this.itemsContainer.nativeElement.style.transform = this.isVertical ? `translate3d(0, ${totalShiftedItems * (100 / this.d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this.d_numVisible)}%, 0, 0)`;\n }\n if (this._oldactiveIndex !== this._activeIndex) {\n DomHandler.removeClass(this.itemsContainer.nativeElement, 'p-items-hidden');\n this.itemsContainer.nativeElement.style.transition = 'transform 500ms ease 0s';\n }\n this._oldactiveIndex = this._activeIndex;\n this._oldNumVisible = this.d_numVisible;\n }\n }\n ngAfterViewInit() {\n this.calculatePosition();\n }\n createStyle() {\n if (!this.thumbnailsStyle) {\n this.thumbnailsStyle = document.createElement('style');\n this.thumbnailsStyle.type = 'text/css';\n document.body.appendChild(this.thumbnailsStyle);\n }\n let innerHTML = `\n #${this.containerId} .p-galleria-thumbnail-item {\n flex: 1 0 ${(100 / this.d_numVisible)}%\n }\n `;\n if (this.responsiveOptions) {\n this.sortedResponsiveOptions = [...this.responsiveOptions];\n this.sortedResponsiveOptions.sort((data1, data2) => {\n const value1 = data1.breakpoint;\n const value2 = data2.breakpoint;\n let result = null;\n if (value1 == null && value2 != null)\n result = -1;\n else if (value1 != null && value2 == null)\n result = 1;\n else if (value1 == null && value2 == null)\n result = 0;\n else if (typeof value1 === 'string' && typeof value2 === 'string')\n result = value1.localeCompare(value2, undefined, { numeric: true });\n else\n result = (value1 < value2) ? -1 : (value1 > value2) ? 1 : 0;\n return -1 * result;\n });\n for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {\n let res = this.sortedResponsiveOptions[i];\n innerHTML += `\n @media screen and (max-width: ${res.breakpoint}) {\n #${this.containerId} .p-galleria-thumbnail-item {\n flex: 1 0 ${(100 / res.numVisible)}%\n }\n }\n `;\n }\n }\n this.thumbnailsStyle.innerHTML = innerHTML;\n }\n calculatePosition() {\n if (this.itemsContainer && this.sortedResponsiveOptions) {\n let windowWidth = window.innerWidth;\n let matchedResponsiveData = {\n numVisible: this._numVisible\n };\n for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {\n let res = this.sortedResponsiveOptions[i];\n if (parseInt(res.breakpoint, 10) >= windowWidth) {\n matchedResponsiveData = res;\n }\n }\n if (this.d_numVisible !== matchedResponsiveData.numVisible) {\n this.d_numVisible = matchedResponsiveData.numVisible;\n this.cd.markForCheck();\n }\n }\n }\n getTabIndex(index) {\n return this.isItemActive(index) ? 0 : null;\n }\n navForward(e) {\n this.stopTheSlideShow();\n let nextItemIndex = this._activeIndex + 1;\n if (nextItemIndex + this.totalShiftedItems > this.getMedianItemIndex() && ((-1 * this.totalShiftedItems) < this.getTotalPageNumber() - 1 || this.circular)) {\n this.step(-1);\n }\n let activeIndex = this.circular && (this.value.length - 1) === this._activeIndex ? 0 : nextItemIndex;\n this.onActiveIndexChange.emit(activeIndex);\n if (e.cancelable) {\n e.preventDefault();\n }\n }\n navBackward(e) {\n this.stopTheSlideShow();\n let prevItemIndex = this._activeIndex !== 0 ? this._activeIndex - 1 : 0;\n let diff = prevItemIndex + this.totalShiftedItems;\n if ((this.d_numVisible - diff - 1) > this.getMedianItemIndex() && ((-1 * this.totalShiftedItems) !== 0 || this.circular)) {\n this.step(1);\n }\n let activeIndex = this.circular && this._activeIndex === 0 ? this.value.length - 1 : prevItemIndex;\n this.onActiveIndexChange.emit(activeIndex);\n if (e.cancelable) {\n e.preventDefault();\n }\n }\n onItemClick(index) {\n this.stopTheSlideShow();\n let selectedItemIndex = index;\n if (selectedItemIndex !== this._activeIndex) {\n const diff = selectedItemIndex + this.totalShiftedItems;\n let dir = 0;\n if (selectedItemIndex < this._activeIndex) {\n dir = (this.d_numVisible - diff - 1) - this.getMedianItemIndex();\n if (dir > 0 && (-1 * this.totalShiftedItems) !== 0) {\n this.step(dir);\n }\n }\n else {\n dir = this.getMedianItemIndex() - diff;\n if (dir < 0 && (-1 * this.totalShiftedItems) < this.getTotalPageNumber() - 1) {\n this.step(dir);\n }\n }\n this.activeIndex = selectedItemIndex;\n this.onActiveIndexChange.emit(this.activeIndex);\n }\n }\n step(dir) {\n let totalShiftedItems = this.totalShiftedItems + dir;\n if (dir < 0 && (-1 * totalShiftedItems) + this.d_numVisible > (this.value.length - 1)) {\n totalShiftedItems = this.d_numVisible - this.value.length;\n }\n else if (dir > 0 && totalShiftedItems > 0) {\n totalShiftedItems = 0;\n }\n if (this.circular) {\n if (dir < 0 && this.value.length - 1 === this._activeIndex) {\n totalShiftedItems = 0;\n }\n else if (dir > 0 && this._activeIndex === 0) {\n totalShiftedItems = this.d_numVisible - this.value.length;\n }\n }\n if (this.itemsContainer) {\n DomHandler.removeClass(this.itemsContainer.nativeElement, 'p-items-hidden');\n this.itemsContainer.nativeElement.style.transform = this.isVertical ? `translate3d(0, ${totalShiftedItems * (100 / this.d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this.d_numVisible)}%, 0, 0)`;\n this.itemsContainer.nativeElement.style.transition = 'transform 500ms ease 0s';\n }\n this.totalShiftedItems = totalShiftedItems;\n }\n stopTheSlideShow() {\n if (this.slideShowActive && this.stopSlideShow) {\n this.stopSlideShow.emit();\n }\n }\n changePageOnTouch(e, diff) {\n if (diff < 0) { // left\n this.navForward(e);\n }\n else { // right\n this.navBackward(e);\n }\n }\n getTotalPageNumber() {\n return this.value.length > this.d_numVisible ? (this.value.length - this.d_numVisible) + 1 : 0;\n }\n getMedianItemIndex() {\n let index = Math.floor(this.d_numVisible / 2);\n return (this.d_numVisible % 2) ? index : index - 1;\n }\n onTransitionEnd() {\n if (this.itemsContainer && this.itemsContainer.nativeElement) {\n DomHandler.addClass(this.itemsContainer.nativeElement, 'p-items-hidden');\n this.itemsContainer.nativeElement.style.transition = '';\n }\n }\n onTouchEnd(e) {\n let touchobj = e.changedTouches[0];\n if (this.isVertical) {\n this.changePageOnTouch(e, (touchobj.pageY - this.startPos.y));\n }\n else {\n this.changePageOnTouch(e, (touchobj.pageX - this.startPos.x));\n }\n }\n onTouchMove(e) {\n if (e.cancelable) {\n e.preventDefault();\n }\n }\n onTouchStart(e) {\n let touchobj = e.changedTouches[0];\n this.startPos = {\n x: touchobj.pageX,\n y: touchobj.pageY\n };\n }\n isNavBackwardDisabled() {\n return (!this.circular && this._activeIndex === 0) || (this.value.length <= this.d_numVisible);\n }\n isNavForwardDisabled() {\n return (!this.circular && this._activeIndex === (this.value.length - 1)) || (this.value.length <= this.d_numVisible);\n }\n firstItemAciveIndex() {\n return this.totalShiftedItems * -1;\n }\n lastItemActiveIndex() {\n return this.firstItemAciveIndex() + this.d_numVisible - 1;\n }\n isItemActive(index) {\n return this.firstItemAciveIndex() <= index && this.lastItemActiveIndex() >= index;\n }\n bindDocumentListeners() {\n if (!this.documentResizeListener) {\n this.documentResizeListener = () => {\n this.calculatePosition();\n };\n window.addEventListener('resize', this.documentResizeListener);\n }\n }\n unbindDocumentListeners() {\n if (this.documentResizeListener) {\n window.removeEventListener('resize', this.documentResizeListener);\n this.documentResizeListener = null;\n }\n }\n ngOnDestroy() {\n if (this.responsiveOptions) {\n this.unbindDocumentListeners();\n }\n if (this.thumbnailsStyle) {\n this.thumbnailsStyle.parentNode.removeChild(this.thumbnailsStyle);\n }\n }\n}\nGalleriaThumbnails.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: GalleriaThumbnails, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\nGalleriaThumbnails.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.0\", type: GalleriaThumbnails, selector: \"p-galleriaThumbnails\", inputs: { containerId: \"containerId\", value: \"value\", isVertical: \"isVertical\", slideShowActive: \"slideShowActive\", circular: \"circular\", responsiveOptions: \"responsiveOptions\", contentHeight: \"contentHeight\", showThumbnailNavigators: \"showThumbnailNavigators\", templates: \"templates\", numVisible: \"numVisible\", activeIndex: \"activeIndex\" }, outputs: { onActiveIndexChange: \"onActiveIndexChange\", stopSlideShow: \"stopSlideShow\" }, viewQueries: [{ propertyName: \"itemsContainer\", first: true, predicate: [\"itemsContainer\"], descendants: true }], ngImport: i0, template: `\n <div class=\"p-galleria-thumbnail-wrapper\">\n <div class=\"p-galleria-thumbnail-container\">\n <button *ngIf=\"showThumbnailNavigators\" type=\"button\" [ngClass]=\"{'p-galleria-thumbnail-prev p-link': true, 'p-disabled': this.isNavBackwardDisabled()}\" (click)=\"navBackward($event)\" [disabled]=\"isNavBackwardDisabled()\" pRipple>\n <span [ngClass]=\"{'p-galleria-thumbnail-prev-icon pi': true, 'pi-chevron-left': !this.isVertical, 'pi-chevron-up': this.isVertical}\"></span>\n </button>\n <div class=\"p-galleria-thumbnail-items-container\" [ngStyle]=\"{'height': isVertical ? contentHeight : ''}\">\n <div #itemsContainer class=\"p-galleria-thumbnail-items\" (transitionend)=\"onTransitionEnd()\"\n (touchstart)=\"onTouchStart($event)\" (touchmove)=\"onTouchMove($event)\" (touchend)=\"onTouchEnd($event)\">\n <div *ngFor=\"let item of value; let index = index;\" [ngClass]=\"{'p-galleria-thumbnail-item': true, 'p-galleria-thumbnail-item-current': activeIndex === index, 'p-galleria-thumbnail-item-active': isItemActive(index),\n 'p-galleria-thumbnail-item-start': firstItemAciveIndex() === index, 'p-galleria-thumbnail-item-end': lastItemActiveIndex() === index }\">\n <div class=\"p-galleria-thumbnail-item-content\" [attr.tabindex]=\"getTabIndex(index)\" (click)=\"onItemClick(index)\" (keydown.enter)=\"onItemClick(index)\">\n <p-galleriaItemSlot type=\"thumbnail\" [item]=\"item\" [templates]=\"templates\"></p-galleriaItemSlot>\n </div>\n </div>\n </div>\n </div>\n <button *ngIf=\"showThumbnailNavigators\" type=\"button\" [ngClass]=\"{'p-galleria-thumbnail-next p-link': true, 'p-disabled': this.isNavForwardDisabled()}\" (click)=\"navForward($event)\" [disabled]=\"isNavForwardDisabled()\" pRipple>\n <span [ngClass]=\"{'p-galleria-thumbnail-next-icon pi': true, 'pi-chevron-right': !this.isVertical, 'pi-chevron-down': this.isVertical}\"></span>\n </button>\n </div>\n </div>\n `, isInline: true, components: [{ type: GalleriaItemSlot, selector: \"p-galleriaItemSlot\", inputs: [\"templates\", \"index\", \"item\", \"type\"] }], directives: [{ type: i2.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i3.Ripple, selector: \"[pRipple]\" }, { type: i2.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { type: i2.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { type: i2.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: GalleriaThumbnails, decorators: [{\n type: Component,\n args: [{\n selector: 'p-galleriaThumbnails',\n template: `\n <div class=\"p-galleria-thumbnail-wrapper\">\n <div class=\"p-galleria-thumbnail-container\">\n <button *ngIf=\"showThumbnailNavigators\" type=\"button\" [ngClass]=\"{'p-galleria-thumbnail-prev p-link': true, 'p-disabled': this.isNavBackwardDisabled()}\" (click)=\"navBackward($event)\" [disabled]=\"isNavBackwardDisabled()\" pRipple>\n <span [ngClass]=\"{'p-galleria-thumbnail-prev-icon pi': true, 'pi-chevron-left': !this.isVertical, 'pi-chevron-up': this.isVertical}\"></span>\n </button>\n <div class=\"p-galleria-thumbnail-items-container\" [ngStyle]=\"{'height': isVertical ? contentHeight : ''}\">\n <div #itemsContainer class=\"p-galleria-thumbnail-items\" (transitionend)=\"onTransitionEnd()\"\n (touchstart)=\"onTouchStart($event)\" (touchmove)=\"onTouchMove($event)\" (touchend)=\"onTouchEnd($event)\">\n <div *ngFor=\"let item of value; let index = index;\" [ngClass]=\"{'p-galleria-thumbnail-item': true, 'p-galleria-thumbnail-item-current': activeIndex === index, 'p-galleria-thumbnail-item-active': isItemActive(index),\n 'p-galleria-thumbnail-item-start': firstItemAciveIndex() === index, 'p-galleria-thumbnail-item-end': lastItemActiveIndex() === index }\">\n <div class=\"p-galleria-thumbnail-item-content\" [attr.tabindex]=\"getTabIndex(index)\" (click)=\"onItemClick(index)\" (keydown.enter)=\"onItemClick(index)\">\n <p-galleriaItemSlot type=\"thumbnail\" [item]=\"item\" [templates]=\"templates\"></p-galleriaItemSlot>\n </div>\n </div>\n </div>\n </div>\n <button *ngIf=\"showThumbnailNavigators\" type=\"button\" [ngClass]=\"{'p-galleria-thumbnail-next p-link': true, 'p-disabled': this.isNavForwardDisabled()}\" (click)=\"navForward($event)\" [disabled]=\"isNavForwardDisabled()\" pRipple>\n <span [ngClass]=\"{'p-galleria-thumbnail-next-icon pi': true, 'pi-chevron-right': !this.isVertical, 'pi-chevron-down': this.isVertical}\"></span>\n </button>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n }]\n }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { containerId: [{\n type: Input\n }], value: [{\n type: Input\n }], isVertical: [{\n type: Input\n }], slideShowActive: [{\n type: Input\n }], circular: [{\n type: Input\n }], responsiveOptions: [{\n type: Input\n }], contentHeight: [{\n type: Input\n }], showThumbnailNavigators: [{\n type: Input\n }], templates: [{\n type: Input\n }], onActiveIndexChange: [{\n type: Output\n }], stopSlideShow: [{\n type: Output\n }], itemsContainer: [{\n type: ViewChild,\n args: ['itemsContainer']\n }], numVisible: [{\n type: Input\n }], activeIndex: [{\n type: Input\n }] } });\nclass GalleriaModule {\n}\nGalleriaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: GalleriaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nGalleriaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: GalleriaModule, declarations: [Galleria, GalleriaContent, GalleriaItemSlot, GalleriaItem, GalleriaThumbnails], imports: [CommonModule, SharedModule, RippleModule], exports: [CommonModule, Galleria, GalleriaContent, GalleriaItemSlot, GalleriaItem, GalleriaThumbnails, SharedModule] });\nGalleriaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: GalleriaModule, imports: [[CommonModule, SharedModule, RippleModule], CommonModule, SharedModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: GalleriaModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule, SharedModule, RippleModule],\n exports: [CommonModule, Galleria, GalleriaContent, GalleriaItemSlot, GalleriaItem, GalleriaThumbnails, SharedModule],\n declarations: [Galleria, GalleriaContent, GalleriaItemSlot, GalleriaItem, GalleriaThumbnails]\n }]\n }] });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Galleria, GalleriaContent, GalleriaItem, GalleriaItemSlot, GalleriaModule, GalleriaThumbnails };\n"]},"metadata":{},"sourceType":"module"}
Note: See TracBrowser for help on using the repository browser.