{"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