import{_ as p,R as E,ap as b,r as n,o as t,b as l,p as r,q as d,O as F,W as w,l as h,t as C,a as u,n as T,i as H,G as L,H as B,aq as z,w as v,e as I,F as D}from"./main-DtyiNRRn.js";const R={name:"ImageTextTileFi",components:{RichtextFi:E,SsrCloudImageFi:b},props:{fields:{type:Object,default:()=>({})},dark:{type:Boolean,default:!0}},computed:{breakpoints(){return[{mediaWidth:480,imageWidth:444},{mediaWidth:767,imageWidth:731},{mediaWidth:768,imageWidth:345},{mediaWidth:1023,imageWidth:473},{mediaWidth:1440,imageWidth:444},{mediaWidth:1920,imageWidth:604}]},unlimited(){return 395},imageRatio(){var i,a,e,o;return(a=(i=this.fields.image)==null?void 0:i.value)!=null&&a.width&&((o=(e=this.fields.image)==null?void 0:e.value)!=null&&o.height)?`aspect-ratio: ${this.fields.image.value.width} / ${this.fields.image.value.height}`:null}}},N=["innerHTML"],O={class:"image-text-tile-fi__content-wrapper"},S=["innerHTML"],V=["innerHTML"];function j(i,a,e,o,M,s){var m,c;const f=n("ssr-cloud-image-fi"),_=n("richtext-fi");return t(),l("div",{class:T({"image-text-tile-fi":!0,"image-text-tile-fi--xpe":i.isEditMode,"image-text-tile-fi--dark":e.dark})},[r("div",{class:"image-text-tile-fi__image-container",style:C(s.imageRatio)},[i.isEditMode&&e.fields.image?(t(),l("div",{key:0,class:"image-text-tile-fi__image-editor",innerHTML:e.fields.image.editable},null,8,N)):d("",!0),F(h(f,{field:e.fields.image,breakpoints:s.breakpoints,unlimited:s.unlimited,class:"image-fi__img"},null,8,["field","breakpoints","unlimited"]),[[w,!i.isEditMode]])],4),r("div",O,[i.isEditMode?(t(),l("h3",{key:0,class:"image-text-tile-fi__headline fi-text-size-df-18",innerHTML:e.fields.headline.editable},null,8,S)):(m=e.fields.headline)!=null&&m.value?(t(),l("h3",{key:1,class:"image-text-tile-fi__headline fi-text-size-df-18",innerHTML:e.fields.headline.value},null,8,V)):d("",!0),(c=e.fields.content)!=null&&c.value||i.isEditMode?(t(),u(_,{key:2,ref:"rteContent",class:"image-text-tile-fi__content","html-content":e.fields.content},null,8,["html-content"])):d("",!0)])],2)}const q=p(R,[["render",j]]),G={name:"ImageTextTilesFi",components:{ComponentWrapper:H,GridContainerFi:L,ImageTextTileFi:q,HeadlineFi:B},mixins:[z],props:{fields:{type:Object,default:()=>({})}},computed:{isDark(){var i,a;return!!((a=(i=this.fields)==null?void 0:i.dark)!=null&&a.value)}}},A={class:"fi-col-span-12 xl:fi-col-span-8 xl:fi-col-start-3 image-text-tiles-fi__tiles"},J={class:"fi-col-span-12 xl:fi-col-span-8 xl:fi-col-start-3 image-text-tiles-fi__tiles"},K={key:0,class:"fi-col-span-12"};function P(i,a,e,o,M,s){const f=n("headline-fi"),_=n("image-text-tile-fi"),m=n("grid-container-fi"),c=n("component-wrapper");return t(),u(c,null,{default:v(()=>[h(m,{class:T({"image-text-tiles-fi":!0,"image-text-tiles-fi--dark":s.isDark})},{default:v(()=>{var g,x,k;return[r("div",A,[i.isEditMode&&e.fields.headline||(g=e.fields.headline)!=null&&g.value?(t(),u(f,{key:0,tag:"h3",class:"image-text-tiles-fi__tile image-text-tiles-fi__tile--headline",size:36,"html-content":i.isEditMode?e.fields.headline.editable:(x=e.fields.headline)==null?void 0:x.value},null,8,["html-content"])):d("",!0)]),r("div",J,[(t(!0),l(D,null,I(e.fields.imageTextTileElements,(W,y)=>(t(),l("div",{key:y,class:"image-text-tiles-fi__tile"},[h(_,{fields:W.fields,dark:!s.isDark},null,8,["fields","dark"])]))),128)),i.isEditMode&&((k=e.fields.imageTextTileElements)==null?void 0:k.length)===0?(t(),l("div",K," no content ")):d("",!0)])]}),_:1},8,["class"])]),_:1})}const U=p(G,[["render",P]]);export{U as default};