const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FileSaver.min-Dm6Tr4KD.js","assets/main-DHoZdmBw.js"])))=>i.map(i=>d[i]);
import{_ as A,C as P,R as S,k,r as c,o as a,a as y,w as u,u as w,v,p as g,b as l,l as d,q as p,F as T,e as L,A as G,a7 as E,a8 as M,m as z,N as Z,n as D,O,I as F,aS as V,a6 as R,aE as K,ap as H,M as W,J as U}from"./main-DHoZdmBw.js";import{A as I}from"./AccordionItemFi-DoGTBc3p.js";import{_ as x,a as $}from"./catalogMixin-uYMILN5M.js";import{G as N}from"./GridColumnsFi-Bcnm7nEF.js";import{D as j}from"./DocumentDownloadItemsFi-BPzfw43E.js";import{L as Y}from"./LoadingIndicatorWrapper-pVDcX3Dw.js";import q from"./ProductTeasersFi-CBJ4bzF4.js";const J={name:"AccordionApplicationAuthorisationFi",components:{AccordionItemFi:I,CloudImageFi:P,RichtextFi:S},mixins:[k,x],props:{catalogData:{type:Object,default:()=>({})}},computed:{textList(){var e;return(e=this.catalogData)==null?void 0:e.TextList},hasTextList(){return this.textListValue(this.textList,"KAT_ANWENDUNG_GEN")||this.textListValue(this.textList,"KAT_BAUSTOFF_GEN")},materialDisclaimer(){return this.$dict.get("product-Catalog.Block-Labels.Application-and-Permission.Materials-Disclaimer",[this.$fischer.pages.downloadCenter().url]).replace("{url}",this.$fischer.pages.downloadCenter().url)},approvals(){var i,s;const e=[];return(s=(i=this.catalogData)==null?void 0:i.Documents)!=null&&s.Approvals&&(this.catalogData.Documents.Approvals.forEach(n=>{n.nr&&e.push(n.nr)}),e.length)?e:null},icons(){var s;const e=(s=this.catalogData)==null?void 0:s.Media;if(!e)return null;const i=e.filter(n=>n.OutputType==="PR"&&(n.Type==="Icon"||n.Type==="Logo"));return i.length?i:null}}},Q={class:"accordion-application-authorisation-fi__content"},X={key:0,class:"accordion-application-authorisation-fi__column accordion-application-authorisation-fi--application"},ee={key:1,class:"accordion-application-authorisation-fi__column accordion-application-authorisation-fi--material"},te=["innerHTML"],ie={key:2,class:"accordion-application-authorisation-fi__column accordion-application-authorisation-fi--approval"},se={class:"accordion-application-authorisation-fi__text"},ae={class:"h10"},oe={key:3,class:"accordion-application-authorisation-fi__column accordion-application-authorisation-fi--icons"};function ne(e,i,s,n,o,t){const r=c("richtext-fi"),_=c("cloud-image-fi"),b=c("accordion-item-fi");return t.hasTextList||t.approvals||t.icons?(a(),y(b,{key:0,class:"accordion-application-authorisation-fi","header-tag":"h3","ignore-others":"","scroll-to":""},{header:u(()=>[w(v(e.$dict.get("product-Catalog.Accordions.Application-And-Authorisation")),1)]),content:u(()=>[g("div",Q,[e.textListValue(t.textList,"KAT_ANWENDUNG_GEN")?(a(),l("div",X,[d(r,{class:"accordion-application-authorisation-fi__text","html-content":{value:e.textListValue(t.textList,"KAT_ANWENDUNG_GEN")}},null,8,["html-content"])])):p("",!0),e.textListValue(t.textList,"KAT_BAUSTOFF_GEN")?(a(),l("div",ee,[d(r,{class:"accordion-application-authorisation-fi__text","html-content":{value:e.textListValue(t.textList,"KAT_BAUSTOFF_GEN")}},null,8,["html-content"]),g("span",{class:"accordion-application-authorisation-fi__material-disclaimer",innerHTML:t.materialDisclaimer},null,8,te)])):p("",!0),t.approvals?(a(),l("div",ie,[g("div",se,[g("div",ae,v(e.$dict.get("product-Catalog.Accordions.Authorisation")),1),d(r,null,{default:u(()=>[g("ul",null,[(a(!0),l(T,null,L(t.approvals,m=>(a(),l("li",{key:m},v(m),1))),128))])]),_:1})])])):p("",!0),t.icons?(a(),l("div",oe,[(a(!0),l(T,null,L(t.icons,m=>(a(),l("div",{key:m.Url,class:"accordion-application-authorisation-fi__icon"},[d(_,{src:m.Url,alt:m.Label,height:"45",params:"func=bound","do-not-replace-url":""},null,8,["src","alt"])]))),128))])):p("",!0)])]),_:1})):p("",!0)}const dt=A(J,[["render",ne]]),le={name:"AssemblyInstructionsMediaSliderFi",components:{ArrowIcon:G,CarouselFi:E,CarouselSlideFi:M,CloudImageFi:P},mixins:[k],props:{mediaItems:{type:Array,default:()=>[]}},data(){return{isSlider:!1,isFirstSlide:!0,isLastSlide:!1,visibleCount:1,visibleItems:1,slideGapInPixels:24}},computed:{...z({windowDimensions:"layout/getWindowDimensions"}),sliderSettings(){return{drag:this.isSlider,autoWidth:!0,rewind:!1,pagination:!1,perPage:this.visibleItems,perMove:1,gap:this.slideGapInPixels}}},watch:{windowDimensions:{deep:!0,handler(){var e,i;this.determineVisibleItems((i=(e=this.$refs.carousel)==null?void 0:e.$el)==null?void 0:i.offsetWidth)}}},methods:{onIntersect(){var e,i;this.determineVisibleItems((i=(e=this.$refs.carousel)==null?void 0:e.$el)==null?void 0:i.offsetWidth)},determineVisibleItems(e){if(!e)return;const i=this.$refs.carousel.$refs.carousel.splide.Components.Elements.slides;let s=0;i.every((n,o)=>(s+=n.offsetWidth,o<i.length-1&&(s+=this.slideGapInPixels),this.isSlider=s>e,this.visibleItems=o,!this.isSlider)),this.isLG||this.updateCurrentItemCount()},updateCurrentItemCount(){const e=(o,t)=>o.reduce((r,_,b)=>{const m=Math.abs(_-t),h=Math.abs(o[r]-t);return m<h?b:r},0),s=this.$refs.carousel.$refs.carousel.splide.Components.Elements.slides.map(o=>o.getBoundingClientRect().right),n=this.$refs.carousel.$el.getBoundingClientRect().right;this.visibleCount=e(s,n)+1},nextSlide(){this.$refs.carousel&&this.$refs.carousel.next()},prevSlide(){this.$refs.carousel&&this.$refs.carousel.prev()},onAfterChange(){const e=this.$refs.carousel.$refs.carousel.splide;this.isFirstSlide=(e==null?void 0:e.index)===0,this.isLastSlide=(e==null?void 0:e.index)+this.visibleItems===this.mediaItems.length,this.updateCurrentItemCount()}}},re={class:"assembly-instructions-media-slider-fi"},ce={class:"assembly-instructions-media-slider-fi__slider-controls"},de=["set"],ue=["aria-disabled"],me=["aria-disabled"],he={key:1,class:"assembly-instructions-media-slider-fi__indication"},fe={class:"assembly-instructions-media-slider-fi__indication--current"},_e={class:"assembly-instructions-media-slider-fi__indication--total"},ge={class:"assembly-instructions-media-slider-fi__badge"};function pe(e,i,s,n,o,t){const r=c("arrow-icon"),_=c("cloud-image-fi"),b=c("carousel-slide-fi"),m=c("carousel-fi"),h=Z("intersect");return a(),l("div",re,[g("div",ce,[e.isLG?(a(),l("div",{key:0,set:e.sliders={forwardDisabled:o.isFirstSlide,backDisabled:o.isLastSlide},class:"assembly-instructions-media-slider-fi__slider-arrows"},[o.isSlider?(a(),l(T,{key:0},[g("span",{class:D({"assembly-instructions-media-slider-fi__slider-prev":!0,"assembly-instructions-media-slider-fi__slider--inactive":e.sliders.forwardDisabled}),"aria-disabled":e.sliders.forwardDisabled,role:"button",onClick:i[0]||(i[0]=(...f)=>t.prevSlide&&t.prevSlide(...f))},[d(r)],10,ue),g("span",{class:D({"assembly-instructions-media-slider-fi__slider-next":!0,"assembly-instructions-media-slider-fi__slider--inactive":e.sliders.backDisabled}),"aria-disabled":e.sliders.backDisabled,role:"button",onClick:i[1]||(i[1]=(...f)=>t.nextSlide&&t.nextSlide(...f))},[d(r)],10,me)],64)):p("",!0)],8,de)):(a(),l("div",he,[g("span",fe,v(o.visibleCount),1),g("span",_e," / "+v(s.mediaItems.length),1)]))]),s.mediaItems.length?O((a(),y(m,{key:0,ref:"carousel",class:"assembly-instructions-media-slider-fi__slider",settings:t.sliderSettings,"no-arrows":"",onAfterChange:t.onAfterChange},{default:u(()=>[(a(!0),l(T,null,L(s.mediaItems,(f,C)=>(a(),y(b,{key:f.Url,class:"fi-relative"},{default:u(()=>[g("span",ge,v(C+1),1),d(_,{src:f.Url,alt:f.label,sizes:{xxs:{h:115},xs:{h:115},sm:{h:125},md:{h:142},lg:{h:142},xl:{h:142}},params:"func=bound","do-not-replace-url":""},null,8,["src","alt"])]),_:2},1024))),128))]),_:1},8,["settings","onAfterChange"])),[[h,t.onIntersect,void 0,{once:!0}]]):p("",!0)])}const be=A(le,[["render",pe],["__scopeId","data-v-5aabad28"]]),ye={name:"AccordionAssemblyInstructionsFi",components:{AccordionItemFi:I,GridColumnsFi:N,IconFi:F,RichtextFi:S,AssemblyInstructionsMediaSliderFi:be},mixins:[k,x],props:{catalogData:{type:Object,default:()=>({})}},computed:{textList(){var e;return(e=this.catalogData)==null?void 0:e.TextList},hasTextList(){return this.textListValue(this.textList,"KAT_FUNKTION")},assemblyMedia(){var i;if(!((i=this.catalogData)!=null&&i.AssemblyMedia))return null;const e=this.catalogData.AssemblyMedia.filter(s=>{var n;return(n=s.media)==null?void 0:n.length});return e.length?e:null},instructionPdf(){var e,i;if((i=(e=this.catalogData)==null?void 0:e.documents)!=null&&i.length){const s=this.catalogData.documents.find(n=>n.Type==="Installation Instructions");if(s)return s}return null}},methods:{triggerResize(e){e&&window.dispatchEvent(new Event("resize"))},assemblyMediaTitle(e){if(e)return this.textListValue(e.media[0].TextList,"KAT_NEU_PRODBILD")}}},ve={class:"fi-col-span-12 md:fi-col-span-8 lg:fi-col-span-6 md:fi-pr-24"},Te={key:0,class:"fi-col-span-12 md:fi-col-span-4 accordion-assembly-instructions-fi__download"},De={key:0,class:"accordion-assembly-instructions-fi__assembly-media"},we={key:0,class:"accordion-assembly-instructions-fi__assembly-media-title"};function Le(e,i,s,n,o,t){const r=c("richtext-fi"),_=c("icon-fi"),b=c("button-fi"),m=c("grid-columns-fi"),h=c("assembly-instructions-media-slider-fi"),f=c("accordion-item-fi");return t.hasTextList||t.assemblyMedia||t.instructionPdf?(a(),y(f,{key:0,class:"accordion-assembly-instructions-fi","header-tag":"h3","ignore-others":"","scroll-to":"",onAccordionItemToggle:t.triggerResize},{header:u(()=>[e.isFite?(a(),l(T,{key:1},[w(v(e.$dict.get("product-Catalog.Accordions.Assembly-Instructions-Fite")),1)],64)):(a(),l(T,{key:0},[w(v(e.$dict.get("product-Catalog.Accordions.Assembly-Instructions")),1)],64))]),content:u(()=>[d(m,{columns:12,"grid-class":"lg:fi-grid-cols-10"},{default:u(()=>[g("div",ve,[e.textListValue(t.textList,"KAT_FUNKTION")?(a(),y(r,{key:0,class:"accordion-assembly-instructions-fi__text","html-content":{value:e.textListValue(t.textList,"KAT_FUNKTION")}},null,8,["html-content"])):p("",!0)]),t.instructionPdf?(a(),l("div",Te,[d(b,{href:t.instructionPdf.Url,target:"_blank",rel:"noopener noreferrer",class:"accordion-assembly-instructions-fi__download-button button-fi__primary button-fi--small"},{default:u(()=>[d(_,{icon:"download"}),e.isFite?(a(),l(T,{key:1},[w(v(e.$dict.get("product-Catalog.Accordions.Assembly-Instructions-PDF-Button-Fite")),1)],64)):(a(),l(T,{key:0},[w(v(e.$dict.get("product-Catalog.Accordions.Assembly-Instructions-PDF-Button")),1)],64))]),_:1},8,["href"])])):p("",!0)]),_:1}),t.assemblyMedia?(a(),l("div",De,[(a(!0),l(T,null,L(t.assemblyMedia,(C,B)=>(a(),l("div",{key:C.Name,class:"accordion-assembly-instructions-fi__assembly-media--group"},[t.assemblyMediaTitle(C)?(a(),l("div",we,v(t.assemblyMediaTitle(C)),1)):p("",!0),d(h,{"media-items":C.media,class:D({"accordion-assembly-instructions-fi__assembly-media-slider":!0,"accordion-assembly-instructions-fi__assembly-media-slider--no-media-title":!t.assemblyMediaTitle(C)&&B!==0})},null,8,["media-items","class"])]))),128))])):p("",!0)]),_:1},8,["onAccordionItemToggle"])):p("",!0)}const ut=A(ye,[["render",Le]]),Ae={name:"AccordionBenefitsDescriptionFi",components:{GridColumnsFi:N,RichtextFi:S,AccordionItemFi:I,VideoPlayerFi:V},mixins:[k,x],props:{catalogData:{type:Object,default:()=>({})},isDetailPage:{type:Boolean,default:!1}},computed:{overlayBreakpoints(){return[{mediaWidth:320,imageWidth:443},{mediaWidth:480,imageWidth:731},{mediaWidth:768,imageWidth:963},{mediaWidth:1024,imageWidth:428}]},textList(){var e;return(e=this.catalogData)==null?void 0:e.TextList},hasTextList(){return this.textListValue(this.textList,"KAT_VORTEILNUTZEN")||this.textListValue(this.textList,"EIGENSCHAFTENGEN")||this.isFite&&this.textListValue(this.textList,"DOKBSTMARKDESCR")},videoFields(){var e,i;if((i=(e=this.catalogData)==null?void 0:e.Media)!=null&&i.length){const s=this.catalogData.Media.find(n=>n.videoId&&n.Type==="Video"&&n.Url);if(s)return{videoYoutubeLink:{value:{href:`https://www.youtube.com/watch?v=${s.videoId}`,url:`https://www.youtube.com/watch?v=${s.videoId}`,text:"Youtube Video",altTitle:"Youtube Video"}},image:{value:{src:s.Url,alt:"Youtube Video"}}}}return null}}},Ce={key:0,class:"accordion-benefits-description-fi__text accordion-benefits-description-fi__text--claim"},ke={key:3,class:"accordion-benefits-description-fi__video fi-mt-48"},Se={key:0,class:"fi-col-span-12 md:fi-col-span-4 accordion-benefits-description-fi__video"};function Ie(e,i,s,n,o,t){const r=c("richtext-fi"),_=c("video-player-fi"),b=c("grid-columns-fi"),m=c("accordion-item-fi");return t.hasTextList||t.videoFields?(a(),y(m,{key:0,class:D({"accordion-benefits-description-fi":!0,"accordion-benefits-description-fi--is-detail-page":s.isDetailPage}),"header-tag":"h3","ignore-others":"","scroll-to":""},{header:u(()=>[e.isFite?(a(),l(T,{key:0},[w(v(e.$dict.get("product-Catalog.Accordions.Product-Description")),1)],64)):(a(),l(T,{key:1},[w(v(e.$dict.get("product-Catalog.Accordions.Benefits-And-Description")),1)],64))]),content:u(()=>[d(b,{columns:12,"grid-class":"lg:fi-grid-cols-10"},{default:u(()=>[g("div",{class:D({"fi-col-span-12 md:fi-col-span-8 lg:fi-col-span-6 md:fi-pr-24":t.videoFields,"fi-col-span-12 lg:fi-col-span-10":!t.videoFields})},[s.isDetailPage&&!e.isFite?(a(),l("div",Ce,v(e.textListValue(t.textList,"DOKBSTMARKCLAIM")),1)):p("",!0),e.textListValue(t.textList,"KAT_VORTEILNUTZEN")?(a(),y(r,{key:1,class:D({"accordion-benefits-description-fi__text":!0,"accordion-benefits-description-fi__text--no-spacings":s.isDetailPage}),"html-content":{value:e.textListValue(t.textList,"KAT_VORTEILNUTZEN")}},null,8,["class","html-content"])):p("",!0),e.textListValue(t.textList,"DOKBSTMARKDESCR")&&s.isDetailPage?(a(),y(r,{key:2,class:D({"accordion-benefits-description-fi__text":!0}),"html-content":{value:e.textListValue(t.textList,"DOKBSTMARKDESCR")}},null,8,["html-content"])):p("",!0),!e.isSM&&t.videoFields?(a(),l("div",ke,[d(_,{fields:t.videoFields,"overlay-breakpoints":t.overlayBreakpoints,unlimited:585,"aspect-ratio":16/9,"do-not-replace-url":"","no-youku-player":""},null,8,["fields","overlay-breakpoints"])])):p("",!0),e.textListValue(t.textList,"EIGENSCHAFTENGEN")?(a(),y(r,{key:4,class:"accordion-benefits-description-fi__text","html-content":{value:e.textListValue(t.textList,"EIGENSCHAFTENGEN")}},null,8,["html-content"])):p("",!0)],2),e.isSM&&t.videoFields?(a(),l("div",Se,[d(_,{fields:t.videoFields,"overlay-breakpoints":t.overlayBreakpoints,unlimited:585,"aspect-ratio":16/9,"do-not-replace-url":"","no-youku-player":""},null,8,["fields","overlay-breakpoints"])])):p("",!0)]),_:1})]),_:1},8,["class"])):p("",!0)}const mt=A(Ae,[["render",Ie]]),xe={name:"AccordionDocumentDownloadsFi",components:{GridColumnsFi:N,AccordionItemFi:I,TabNavigationFi:R,DocumentDownloadItemsFi:j},inject:["fields"],props:{catalogData:{type:Object,default:()=>({})}},data(){return{accordionToggled:!1}},computed:{enableCategoryTabs(){var e,i;return(i=(e=this.fields)==null?void 0:e.enableDocumentTabs)==null?void 0:i.value},enableGroupedListView(){var e;return!!((e=this.fields.enableGroupedListView)!=null&&e.value)},approvals(){var n;if(!((n=this.catalogData)!=null&&n.Documents))return null;let e=[];const i=this.catalogData.Documents.Approvals,s=this.catalogData.Documents.AdditionalDocuments;if(i&&e.push(...i),s&&e.push(...s),!e.length)return null;if(this.enableGroupedListView){const o=new Set;return e=e.map(t=>{const r=t.ChildDocumentIds;if(r&&r.length>0){const _=[];r.forEach(m=>{const h=e.find(f=>f.DocumentId===m&&f.ParentDocumentId);h&&(_.push(h),o.add(m))});const b=_.sort((m,h)=>new Date(h.ValidFrom)-new Date(m.ValidFrom));return{...t,Subitems:b}}else return t}),e.filter(t=>!o.has(t.DocumentId))}return e},tabNavigation(){const e={};let i=0;this.approvals.forEach(n=>{var t,r;const o=((t=n.Group)==null?void 0:t.Value)||this.$dict.get("product-Catalog.No-Document-Group");if(e[o]){e[o].documents.push(n);return}e[o]={id:i,text:o,documents:[n],rank:(r=n.Group)==null?void 0:r.GroupRank},i+=1});const s=Object.values(e).sort((n,o)=>n.rank-o.rank);return s.forEach(n=>n.documents.sort((o,t)=>o.DocumentRank-t.DocumentRank)),s}},methods:{getTabName(e){return`tab-content-${e}`}}},Fe={class:"fi-col-span-12 lg:fi-col-span-10"},Ne={class:"accordion-document-downloads-fi__approval-list"},Pe={key:1,class:"accordion-document-downloads-fi__approval-list"};function Ee(e,i,s,n,o,t){const r=c("document-download-items-fi"),_=c("tab-navigation-fi"),b=c("grid-columns-fi"),m=c("accordion-item-fi");return t.approvals?(a(),y(m,{key:0,class:D({"accordion-document-downloads-fi":!0,"accordion-document-downloads-fi--no-hierarchy":!t.enableGroupedListView}),"header-tag":"h3","ignore-others":"","scroll-to":"",onAccordionItemToggle:i[0]||(i[0]=h=>o.accordionToggled=!o.accordionToggled)},{header:u(()=>[w(v(e.$dict.get("product-Catalog.Accordions.Document-Downloads.Label")),1)]),content:u(({isOpen:h})=>[d(b,{columns:12,"grid-class":"lg:fi-grid-cols-10"},{default:u(()=>[g("div",Fe,[t.enableCategoryTabs?(a(),y(_,{key:0,"tab-navigation":t.tabNavigation,"refresh-tabs":o.accordionToggled,"is-slider":!0,"line-hidden":!0},K({_:2},[L(t.tabNavigation,f=>({name:t.getTabName(f.id),fn:u(()=>[g("div",Ne,[d(r,{documents:f.documents,"is-focusable":h,theme:"category-tabs"},null,8,["documents","is-focusable"])])])}))]),1032,["tab-navigation","refresh-tabs"])):(a(),l("div",Pe,[d(r,{documents:t.approvals,"is-focusable":h},null,8,["documents","is-focusable"])]))])]),_:2},1024)]),_:1},8,["class"])):p("",!0)}const ht=A(xe,[["render",Ee],["__scopeId","data-v-1783bc2a"]]),Me={name:"CatalogSliderItemFi",components:{VideoPlayerFi:V,IconFi:F,SsrCloudImageFi:H},props:{item:{type:Object,default:()=>({})},isThumbnail:{type:Boolean,default:!1},slideChanged:{type:Boolean,default:!1},itemName:{type:String,default:null},zoomable:Boolean,isZoom:Boolean,eager:Boolean},emits:["zoom"],computed:{isProductPicture(){const e=this.item.Type==="Product Category Picture"||this.item.Type==="Product Picture"||this.item.Type==="Packaging";return this.isFite?e||this.item.Type==="Application Picture":e},cloudImageParams(){return this.isProductPicture?"func=fit&bg_colour=fff&org_if_sml=0":"func=crop&org_if_sml=0"},paddingMd(){return this.isProductPicture?2*60:0},paddingLg(){return this.isProductPicture?2*80:0},breakpoints(){return this.isThumbnail?[{mediaWidth:480,imageWidth:444/3,imageHeight:444/3/16*9},{mediaWidth:767,imageWidth:731/3,imageHeight:731/3/16*9},{mediaWidth:768,imageWidth:708/3,imageHeight:708/3/16*9},{mediaWidth:1023,imageWidth:963/3,imageHeight:963/3/16*9},{mediaWidth:1440,imageWidth:534/3,imageHeight:534/3/16*9}]:this.isZoom?[{mediaWidth:1440,imageWidth:1380-this.paddingLg,imageHeight:1380/16*9}]:[{mediaWidth:480,imageWidth:444,imageHeight:444/16*9},{mediaWidth:767,imageWidth:731,imageHeight:731/16*9},{mediaWidth:768,imageWidth:708,imageHeight:708/16*9},{mediaWidth:1023,imageWidth:963-this.paddingMd,imageHeight:963/16*9},{mediaWidth:1440,imageWidth:534-this.paddingLg,imageHeight:534/16*9}]},unlimited(){return this.isThumbnail?798/3:this.isZoom?1860-this.paddingLg:798-this.paddingLg},unlimitedHeight(){return this.isThumbnail?798/3*9/16:this.isZoom?1860*9/16:798*9/16}},methods:{onSwipe(){var e;(e=this.$refs.video)!=null&&e.isPlaying&&this.$refs.video.videoEnded()},onZoom(){this.zoomable&&this.$emit("zoom")},getYoutubeVideoFields(e,i){return{videoYoutubeLink:{value:{href:`https://www.youtube.com/watch?v=${e}`,url:`https://www.youtube.com/watch?v=${e}`,text:"Youtube Video",altTitle:"Youtube Video"}},image:{value:{src:i,alt:"Youtube Video"}}}}}},Ve={key:1,class:"catalog-slider-item-fi__image-container","data-test":"catalog-slider-item-image-container"},We={key:0,class:"catalog-slider-item-fi__zoom fi-hidden md:fi-block"};function Be(e,i,s,n,o,t){const r=c("video-player-fi"),_=c("icon-fi"),b=c("ssr-cloud-image-fi");return a(),l("div",{class:D({"catalog-slider-item-fi":!0,"catalog-slider-item-fi--is-thumbnail":s.isThumbnail}),onClick:i[0]||(i[0]=(...m)=>t.onZoom&&t.onZoom(...m))},[s.item.videoId?(a(),y(r,{key:0,ref:"video",fields:t.getYoutubeVideoFields(s.item.videoId,s.item.Url),"show-hide-delay":1e3,"reset-video":s.slideChanged,"aspect-ratio":16/9,"overlay-breakpoints":t.breakpoints,unlimited:t.unlimited,"unlimited-height":t.unlimitedHeight,"small-play-button":s.isThumbnail,"is-thumbnail":s.isThumbnail,"preview-params":"func=crop&org_if_sml=0","do-not-replace-url":"","no-youku-player":""},null,8,["fields","reset-video","overlay-breakpoints","unlimited","unlimited-height","small-play-button","is-thumbnail"])):(a(),l("div",Ve,[s.zoomable?(a(),l("div",We,[d(_,{icon:"zoom-in"}),w(" "+v(e.$dict.get("product-Catalog.Zoom")),1)])):p("",!0),g("div",{class:D({"catalog-slider-item-fi__image-wrapper":!0,"catalog-slider-item-fi__image-wrapper--product-picture":!s.isThumbnail&&t.isProductPicture})},[d(b,{class:"thumbnail-slider-item-fi__image",src:s.item.Url,params:t.cloudImageParams,trim:s.item.Type==="Product Category Picture"||s.item.Type==="Product Picture",breakpoints:t.breakpoints,unlimited:t.unlimited,"unlimited-height":t.unlimitedHeight,alt:t.isProductPicture&&s.itemName?`${s.item.altText}: "${s.itemName}"`:s.item.altText,eager:s.eager},null,8,["src","params","trim","breakpoints","unlimited","unlimited-height","alt","eager"])],2)]))],2)}const Ge=A(Me,[["render",Be]]),ze={name:"CatalogSliderFi",components:{CarouselFi:E,CarouselSlideFi:M,CatalogSliderItemFi:Ge,DialogModalFi:W},mixins:[x,$,k],inject:["fields"],props:{catalogData:{type:Object,default:null},itemName:{type:String,default:null}},data(){return{thumbnailCarouselRef:null,mainSettings:{rewind:!0,pagination:!0,gap:"24px"},mainSettingsMD:{rewind:!0,pagination:!0,type:"fade",gap:"24px"},refreshCount:0,isMounted:!1}},computed:{isZoomable(){var e;return this.isMD&&((e=this.fields.enableZoom)==null?void 0:e.value)},thumbnails(){return this.getFamilyThumbnails(this.catalogData)},headerSubtitle(){var i;const e=((i=this.catalogData)==null?void 0:i.ProductId)&&Number(this.catalogData.ProductId);return e?`${this.$dict.get("product-List.Table.Article-Number")} ${e}`:this.textListValue(this.catalogData.TextList,"KAT_POS")},headerTitle(){var i;const e=this.textListValue((i=this.catalogData)==null?void 0:i.TextList,"ECOMLANG");return e||this.textListValue(this.catalogData.TextList,"BEZEICHNUNG")},carouselThumbnails(){if(this.isMounted||this.thumbnails.length<3)return this.thumbnails;const e=this.thumbnails.slice();return e.unshift(e.pop()),e},thumbnailSettings(){const e={type:"loop",isNavigation:!0,perPage:3,perMove:1,focus:"center"},{length:i}=this.thumbnails;return i<3&&(i===1?(e.padding={right:"33.33%",left:"33.33%"},e.gap="100%"):e.gap="33.33%",e.perPage=i,e.focus=0),e},thumbnailSettingsZoom(){return{...this.thumbnailSettings,type:"slide",padding:void 0,autoWidth:!0,rewind:!1,focus:this.carouselThumbnails.length>4?"center":0}}},watch:{isMD(){this.refresh()},thumbnails(){this.refresh()}},mounted(){this.isMounted=!0,!(!this.$refs.carousel||!this.$refs.thumbnails)&&(this.syncCarousels(),setTimeout(()=>this.$refs.thumbnails.refresh(),500))},methods:{notifySwipeToCatalogSlides(e){this.$refs.catalogItem.forEach(i=>i.onSwipe(e))},notifySwipeToZoomCatalogSlides(e){this.$refs.zoomCatalogItem.forEach(i=>i.onSwipe(e))},async destroyZoom(){setTimeout(()=>this.$refs.zoom.hasBeenOpened=!1,300)},async openZoom(){this.$refs.zoom.open(),await this.$nextTick(),this.$refs.carouselZoom.$refs.carousel.sync(this.$refs.thumbnailsZoom.$refs.carousel.splide),this.$refs.carouselZoom.go(this.$refs.carousel.getIndex())},syncCarousels(){this.thumbnailCarouselRef=this.$refs.thumbnails,this.$refs.carousel.$refs.carousel.sync(this.$refs.thumbnails.$refs.carousel.splide)},async refresh(){this.refreshCount+=1,await this.$nextTick(),this.syncCarousels()}}},Ze={class:"catalog-slider-fi"},Oe={class:"catalog-slider-fi__thumbnail-wrapper"},Re={class:"catalog-slider-fi__carousel-zoom__header"},Ke={class:"catalog-slider-fi__carousel-zoom__header__subtitle"},He={class:"catalog-slider-fi__carousel-zoom__header__title"},Ue={class:"catalog-slider-fi__carousel-zoom-wrapper"},$e={class:"catalog-slider-fi__thumbnail-wrapper catalog-slider-fi__zoom-thumbnail-wrapper"};function je(e,i,s,n,o,t){const r=c("catalog-slider-item-fi"),_=c("carousel-slide-fi"),b=c("carousel-fi"),m=c("dialog-modal-fi");return a(),l("div",Ze,[(a(),l("div",{key:o.refreshCount,class:D({"catalog-slider-fi__container":!0,"catalog-slider-fi__container--visible":!0,"catalog-slider-fi__container--single-slide":t.thumbnails.length===1,"catalog-slider-fi__container--duo-slide":t.thumbnails.length===2})},[d(b,{ref:"carousel",class:"catalog-slider-fi__carousel",settings:e.isMD?o.mainSettingsMD:o.mainSettings,items:t.thumbnails,"no-arrows":!e.isMD,"thumbnail-carousel-ref":o.thumbnailCarouselRef,theme:"catalog-slider",onSwipe:t.notifySwipeToCatalogSlides},{default:u(()=>[(a(!0),l(T,null,L(t.thumbnails,(h,f)=>(a(),y(_,{key:f,theme:"catalog-slider"},{default:u(()=>[d(r,{ref_for:!0,ref:"catalogItem",item:h,"item-name":s.itemName,zoomable:t.isZoomable&&!h.videoId,eager:f===0,onZoom:t.openZoom},null,8,["item","item-name","zoomable","eager","onZoom"])]),_:2},1024))),128))]),_:1},8,["settings","items","no-arrows","thumbnail-carousel-ref","onSwipe"]),g("div",Oe,[d(b,{ref:"thumbnails",class:"catalog-slider-fi__carousel catalog-slider-fi__carousel--thumbnail",settings:t.thumbnailSettings,theme:"catalog-slider-thumbnail","no-arrows":""},{default:u(()=>[(a(!0),l(T,null,L(t.carouselThumbnails,(h,f)=>(a(),y(_,{key:f,theme:"catalog-slider-thumbnail"},{default:u(()=>[d(r,{item:h,"is-thumbnail":!0,eager:f===0},null,8,["item","eager"])]),_:2},1024))),128))]),_:1},8,["settings"])])],2)),t.isZoomable?(a(),y(m,{key:0,ref:"zoom",class:"catalog-slider-fi__carousel-zoom",lazy:"","full-screen":"",onClose:t.destroyZoom},{header:u(()=>[g("div",Re,[g("div",Ke,v(t.headerSubtitle),1),g("div",He,v(t.headerTitle),1)])]),body:u(()=>[g("div",Ue,[d(b,{ref:"carouselZoom",class:"catalog-slider-fi__carousel catalog-slider-fi__carousel-zoom",settings:{...e.isMD?o.mainSettingsMD:o.mainSettings,autoHeight:!0},items:t.thumbnails,"no-arrows":!e.isMD,theme:"catalog-slider",onSwipe:t.notifySwipeToZoomCatalogSlides},{default:u(()=>[(a(!0),l(T,null,L(t.thumbnails,(h,f)=>(a(),y(_,{key:f,theme:"catalog-slider"},{default:u(()=>[d(r,{ref_for:!0,ref:"zoomCatalogItem",item:h,"item-name":s.itemName,"is-zoom":""},null,8,["item","item-name"])]),_:2},1024))),128))]),_:1},8,["settings","items","no-arrows","onSwipe"])]),g("div",$e,[d(b,{ref:"thumbnailsZoom",class:D({"catalog-slider-fi__carousel":!0,"catalog-slider-fi__carousel--thumbnail":!0,"catalog-slider-fi__carousel--thumbnail-zoom":!0,"catalog-slider-fi__carousel--single":t.carouselThumbnails.length===1}),settings:t.thumbnailSettingsZoom,theme:"catalog-slider-thumbnail","no-arrows":""},{default:u(()=>[(a(!0),l(T,null,L(t.carouselThumbnails,(h,f)=>(a(),y(_,{key:f,theme:"catalog-slider-thumbnail"},{default:u(()=>[d(r,{item:h,"is-thumbnail":!0},null,8,["item"])]),_:2},1024))),128))]),_:1},8,["class","settings"])])]),_:1},8,["onClose"])):p("",!0)])}const ft=A(ze,[["render",je],["__scopeId","data-v-e8d8a02f"]]),Ye=()=>U(()=>import("./FileSaver.min-Dm6Tr4KD.js").then(e=>e.F),__vite__mapDeps([0,1])),qe={name:"MediaDownloadDialogFi",components:{DialogModalFi:W,IconFi:F,LoadingIndicatorWrapper:Y,RichtextFi:S},props:{fields:{type:Object,default:()=>({})},mediaDownloadLink:{type:String,default:null},fileName:{type:String,default:""}},data(){return{isLoading:!1,timer:null,attempts:0}},methods:{show(){this.$refs.dialog.open()},beforeClose(){this.isLoading=!1,this.timer&&this.clearTimer()},close(){this.$refs.dialog.close()},async downloadMedia(e){this.isLoading=!0;const[i,s]=await Promise.all([fetch(e),Ye()]);if((i==null?void 0:i.status)===200){this.isLoading=!1;const n=`media-${this.fileName.replace(/\s+/g,"-")}.zip`;s.default.saveAs(await i.blob(),n)}else this.timoutAndTryAgain()},timoutAndTryAgain(){this.attempts<9?this.timer=setTimeout(()=>{this.attempts+=1,this.downloadMedia(this.mediaDownloadLink)},1e3):this.handleErrorNotification()},clearTimer(){clearTimeout(this.timer),this.timer=null,this.attempts=0},handleErrorNotification(){this.isLoading=!1,this.close(),this.$store.dispatch("notifications/openToastNotification",{message:this.fields.mediaDownloadDialogErrorText,type:"error",icon:"alert-triangle",persist:!0})}}},Je={class:"media-download-dialog-fi__button"},Qe=["disabled"];function Xe(e,i,s,n,o,t){const r=c("richtext-fi"),_=c("icon-fi"),b=c("loading-indicator-wrapper"),m=c("dialog-modal-fi");return a(),y(m,{ref:"dialog",class:"media-download-dialog-fi modal-fi--content-width-sm modal-fi--action-buttons modal-fi--mobile-fullscreen",lazy:"",onBeforeClose:t.beforeClose},{header:u(()=>[s.fields.mediaDownloadDialogText?(a(),y(r,{key:0,class:"media-download-dialog-fi__text","html-content":s.fields.mediaDownloadDialogText},null,8,["html-content"])):p("",!0)]),footer:u(()=>[g("div",Je,[d(b,{loading:o.isLoading,variant:"spinnerLocal",spinoff:"in-relative-centered"},{default:u(()=>{var h;return[g("a",{download:"",disabled:o.isLoading,class:"button-fi__tertiary--large button-fi--icon button-fi__xs-streched",onClick:i[0]||(i[0]=f=>t.downloadMedia(s.mediaDownloadLink))},[d(_,{icon:"download"}),w(" "+v((h=s.fields.mediaDownloadDialogButton)==null?void 0:h.value),1)],8,Qe)]}),_:1},8,["loading"])])]),_:1},8,["onBeforeClose"])}const _t=A(qe,[["render",Xe]]),et={name:"ProductItemsSliderFi",components:{ProductTeasersFi:q},props:{productItems:{type:Array,default:()=>[]},sliderHeadline:{type:String,default:""},isFamily:{type:Boolean,default:!1},isLight:{type:Boolean,default:!1}},computed:{customFields(){const e={headline:{value:this.sliderHeadline},hideContent:{value:!0}};return this.isFamily?e.familyList=this.productListValue:e.productList=this.productListValue,e},productListValue(){var e;return{value:(e=this.productItems)==null?void 0:e.map(({ProductId:i})=>i).join("|")}}}},tt={class:"product-items-slider-fi"};function it(e,i,s,n,o,t){const r=c("product-teasers-fi");return a(),l("div",tt,[d(r,{"custom-fields":t.customFields,light:s.isLight,"is-guided-recommandation":""},null,8,["custom-fields","light"])])}const gt=A(et,[["render",it],["__scopeId","data-v-7ac57627"]]);export{mt as A,ft as C,_t as M,gt as P,dt as a,ut as b,ht as c};