1import{a as M,b as $,f as k,g as B,h as N,i as U}from"./chunk-7S5XNPBX.js";import{a as C}from"./chunk-OTVSHJOA.js";import{g as w}from"./chunk-LIB7VMNY.js";import"./chunk-R5M2FGLW.js";import"./chunk-UPBF4N2S.js";import{n as P}from"./chunk-6MZQVTP4.js";import"./chunk-6RZC52T6.js";import"./chunk-GE7A26O5.js";import{Xc as O}from"./chunk-WGYJ4VNB.js";import"./chunk-G6JVTTHL.js";import{e as E}from"./chunk-HTNLXQUD.js";import{W as z}from"./chunk-N56O2TJA.js";import{Bc as g,Cb as d,Cc as h,Dc as n,Ea as c,Ec as l,Fc as a,Fd as G,Gc as s,Ib as r,Nd as y,Od as f,V as S,_,ac as D,ad as p,gc as u,n as b,oa as I,qa as x,w as v,wc as T,yc as F}from"./chunk-WI74XH4H.js";import"./chunk-RFT5DLLE.js";var V=(t,i)=>i.media.url;function j(t,i){if(t&1&&(l(0,"div",9)(1,"picture"),s(2,"img",10),y(3,"foerchMediaUrl"),a()()),t&2){let e=p().$implicit;r(2),n("alt",e.media==null?null:e.media.altText)("src",f(3,2,e.media==null?null:e.media.url),d)}}function A(t,i){t&1&&u(0,j,4,4,"ng-template",3)}function L(t,i){if(t&1&&(l(0,"div",9)(1,"picture"),s(2,"img",10),y(3,"foerchMediaUrl"),a()()),t&2){let e=p().$implicit;r(2),n("alt",e.media==null?null:e.media.altText)("src",f(3,2,e.media==null?null:e.media.url),d)}}function R(t,i){t&1&&u(0,L,4,4,"ng-template",3)}function W(t,i){if(t&1&&(l(0,"div",1)(1,"swiper",2),g(2,A,1,0,null,3,V),a(),s(4,"div",4)(5,"div",5),l(6,"div",6)(7,"swiper",2),g(8,R,1,0,null,3,V),a(),s(10,"div",7)(11,"div",8),a()()),t&2){let e=p();r(),n("config",e.configGallery),r(),h(e.images()),r(2),n("ngClass",e.swiperID),r(),n("ngClass",e.swiperID),r(2),n("config",e.configGalleryThumbs),r(),h(e.images()),r(2),n("ngClass",e.swiperThumbID),r(),n("ngClass",e.swiperThumbID)}}M.use([$,k]);var J=class t{swiperID=w("swiper-button-");swiperThumbID=w("swiper-button-");component=c(P);cmsService=c(O);configGallery={init:!0,observer:!0,observeParents:!0,spaceBetween:48,slidesPerView:"auto",navigation:{nextEl:`.galleryCarousel-next.${this.swiperID}`,prevEl:`.galleryCarousel-prev.${this.swiperID}`},breakpoints:{767:{spaceBetween:16,slidesPerView:1.5},768:{spaceBetween:48,slidesPerView:"auto"}},thumbs:{autoScrollOffset:1},on:{afterInit:i=>{this.imagesSwiper=i,this._areImagesInitialized=!0,this.connectGalleries()}}};configGalleryThumbs={init:!0,observer:!0,observeParents:!0,observeSlideChildren:!0,resizeObserver:!0,spaceBetween:24,slidesPerView:"auto",freeMode:!0,watchSlidesProgress:!0,navigation:{nextEl:`.galleryCarousel-thumbs-next.${this.swiperThumbID}`,prevEl:`.galleryCarousel-thumbs-prev.${this.swiperThumbID}`},on:{afterInit:i=>{this.thumbsSwiper=i,this._areThumbsInitialized=!0,this.connectGalleries()}}};images=E(this.component.data$.pipe(_((i,e)=>JSON.stringify(i)===JSON.stringify(e)),x(i=>{if(typeof i.components>"u"||i.components==="")return b([]);{let e=i.components.trim().split(" "),m=e.length;return v(e.map(o=>this.cmsService.getComponentData(o))).pipe(I(o=>o.length!==m),S(1))}})),{initialValue:[]});imagesSwiper;thumbsSwiper;isInitialized=!1;_areThumbsInitialized=!1;_areImagesInitialized=!1;ngOnDestroy(){this.imagesSwiper&&this.imagesSwiper.destroy(),this.thumbsSwiper&&this.thumbsSwiper.destroy()}connectGalleries(){this._areThumbsInitialized&&this._areImagesInitialized&&this.thumbsSwiper&&this.imagesSwiper&&(this.imagesSwiper.thumbs.swiper=this.thumbsSwiper,this.imagesSwiper.thumbs.init(),this.imagesSwiper.thumbs.update(!0),this.thumbsSwiper.update(),this.imagesSwiper.update())}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=D({type:t,selectors:[["foerch-image-gallery"]],features:[G([C])],decls:2,vars:1,consts:[[1,"galleryCarousel"],[1,"container"],[1,"galleryCarousel-slider",3,"config"],["swiperSlide",""],[1,"swiper-button-next","galleryCarousel-next","d-none","d-xl-block",3,"ngClass"],[1,"swiper-button-prev","galleryCarousel-prev","d-none","d-xl-block",3,"ngClass"],[1,"galleryCarousel-thumbs","d-none","d-md-block"],[1,"swiper-button-next","galleryCarousel-thumbs-next",3,"ngClass"],[1,"swiper-button-prev","galleryCarousel-thumbs-prev",3,"ngClass"],[1,"galleryCarousel-item"],["loading","lazy",3,"alt","src"]],template:function(e,m){if(e&1&&(l(0,"div",0),T(1,W,12,6,"div",1),a()),e&2){let o;r(),F((o=m.images())!=null&&o.length?1:-1)}},dependencies:[z,U,N,B,C],encapsulation:2,changeDetection:0})};export{J as FoerchImageGalleryComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.