import{_ as u,r as s,o as t,b as d,l as r,I as E,G as S,i as T,a7 as F,a8 as N,k as y,a as o,w as l,p as m,u as f,q as _,e as O,F as x,v as D,n as L}from"./main-DtyiNRRn.js";import{T as P}from"./TeaserBigImageElementFi-Dvg2Y453.js";const w={name:"TeaserBigImageSliderElementFi",components:{TeaserBigImageElementFi:P},props:{fields:{type:Object,default:()=>({})},slideChanged:{type:Boolean,default:!1}}},R={class:"teaser-big-image-slider-element-fi"};function M(e,g,a,h,c,i){const n=s("teaser-big-image-element-fi");return t(),d("div",R,[r(n,{fields:a.fields,"is-slider-element":!0,"pause-video":a.slideChanged},null,8,["fields","pause-video"])])}const V=u(w,[["render",M]]),z={name:"TeaserBigImageSliderFi",components:{IconFi:E,GridContainerFi:S,ComponentWrapper:T,TeaserBigImageSliderElementFi:V,CarouselFi:F,CarouselSlideFi:N},mixins:[y],props:{fields:{type:Object,default:()=>({})}},data(){return{slideIsChanging:!1}},computed:{isDarkBackground(){var e;return(e=this.fields.darkBackground)==null?void 0:e.value},isLightBackground(){var e;return(e=this.fields.lightBackground)==null?void 0:e.value},isBigImage(){var e;return(e=this.fields.bigImageSize)==null?void 0:e.value},isImagePosRight(){var e;return(e=this.fields.imagePosRight)==null?void 0:e.value}},methods:{beforeSlideChanged(){this.slideIsChanging=!0},afterSlideChanged(){this.slideIsChanging=!1}}},A={key:0,class:"teaser-big-image-slider-fi__exp-info"},j={class:"fi-col-start-1 fi-col-span-12"},G={key:1,class:"teaser-big-image-slider-fi__xpe-hint"};function q(e,g,a,h,c,i){const n=s("icon-fi"),B=s("teaser-big-image-slider-element-fi"),p=s("carousel-slide-fi"),I=s("carousel-fi"),k=s("grid-container-fi"),C=s("component-wrapper");return t(),o(C,null,{default:l(()=>[m("div",{class:L({"teaser-big-image-slider-fi":!0,"teaser-big-image-slider-fi--exp":e.isEditMode,"teaser-big-image-slider-fi--dark":i.isDarkBackground,"teaser-big-image-slider-fi--light":i.isLightBackground})},[e.isEditMode?(t(),d("div",A,[r(n,{icon:"alert-triangle"}),g[0]||(g[0]=f(" COMPONENT ONLY EDITABLE IN CONTENT EDITOR "))])):_("",!0),r(k,{container:!1},{default:l(()=>[m("div",j,[a.fields.teaserBigImageSliderElements&&a.fields.teaserBigImageSliderElements.length>1?(t(),o(I,{key:0,ref:"carousel",theme:"teaser-big-image",onBeforeChange:i.beforeSlideChanged,onAfterChange:i.afterSlideChanged},{default:l(()=>[(t(!0),d(x,null,O(a.fields.teaserBigImageSliderElements,(b,v)=>(t(),o(p,{key:"teaser-big-image-slider-fi__slide--"+v},{default:l(()=>[r(B,{class:"teaser-big-image-slider-fi__slide","slide-changed":c.slideIsChanging,fields:{...b.fields,darkBackground:{value:i.isDarkBackground},lightBackground:{value:i.isLightBackground},imagePosRight:{value:i.isImagePosRight},bigImageSize:{value:i.isBigImage}}},null,8,["slide-changed","fields"])]),_:2},1024))),128))]),_:1},8,["onBeforeChange","onAfterChange"])):(!a.fields.teaserBigImageSliderElements||a.fields.teaserBigImageSliderElements.length<2)&&e.isEditMode?(t(),d("div",G,[r(n,{icon:"alert-triangle"}),f(" "+D(e.$options.name)+": Please add at least two slides to this slider ",1)])):_("",!0)])]),_:1})],2)]),_:1})}const H=u(z,[["render",q],["__scopeId","data-v-1a3df0e7"]]);export{H as default};