import{d as T,aP as V,a1 as D,ak as G,a0 as i,o as f,a as N,w as _,h as q,p as n,l as g,n as p,K as s,R as A,b,A as K,q as P,G as S,i as j,_ as J}from"./main-DtyiNRRn.js";const O={class:"horizontal-banner-fi__text-container"},Q={key:0,class:"fi-text-size-df-30"},U={class:"horizontal-banner-fi__banner-image"},W=["srcset"],X=["srcset"],Y=["src","alt"],Z=["innerHTML"],ee=T({__name:"HorizontalBannerFi",props:{fields:{default:()=>({})}},setup(F){const l=F,{getProxySrc:c,appendParams:m}=V(),z=D(!1);G(()=>{z.value=!0});const k=i(()=>{var e,a;return((a=(e=l.fields)==null?void 0:e.mode)==null?void 0:a.value)==="dark"}),H=i(()=>{var e,a;return((a=(e=l.fields)==null?void 0:e.mode)==null?void 0:a.value)==="light"}),h=i(()=>{var a,o,t,r,d,u;const e=((t=(o=(a=l.fields)==null?void 0:a.link)==null?void 0:o.value)==null?void 0:t.href)||((u=(d=(r=l.fields)==null?void 0:r.link)==null?void 0:d.value)==null?void 0:u.url);return e&&e!==""?e:null}),M=i(()=>{var e,a;return!!((a=(e=l.fields)==null?void 0:e.doNotModifyImage)!=null&&a.value)}),v=i(()=>{var e,a;return(e=l.fields)!=null&&e.doNotModifyImage&&((a=l.fields)!=null&&a.doNotModifyImage.value)?"":k.value?"&colorize=black":"&colorize=white"}),R=i(()=>`h=480&aspect_ratio=16:4&func=crop&org_if_sml=0${v.value}`),x=i(()=>`h=720&aspect_ratio=16:6&func=crop&org_if_sml=0${v.value}`),L=i(()=>`h=767&aspect_ratio=16:14&func=crop&org_if_sml=0&gravity=north${v.value}`);return(e,a)=>{var o,t;return f(),N(j,{class:p({"horizontal-banner-fi":!0,"horizontal-banner-fi--exp":e.isEditMode,"horizontal-banner-fi--exp-has-image":e.isEditMode&&!((t=(o=e.fields.image)==null?void 0:o.value)!=null&&t.src.includes("default_image.svg")),"horizontal-banner-fi--exp-dark":e.isEditMode&&k.value&&!M.value,"horizontal-banner-fi--exp-light":e.isEditMode&&H.value&&!M.value})},{default:_(()=>[(f(),N(q(h.value?"a":"div"),{href:h.value},{default:_(()=>{var r,d,u,y,B,C;return[n("div",O,[g(S,{class:"horizontal-banner-fi__text-container__grid"},{default:_(()=>{var I,$,w,E;return[n("div",{class:p({"horizontal-banner-fi__right-banner-text":!!((I=e.fields.textRight)!=null&&I.value),"horizontal-banner-fi__banner-text":!(($=e.fields.textRight)!=null&&$.value)})},[g(s(A),{"is-theme-light":((w=e.fields.mode)==null?void 0:w.value)==="dark","html-content":e.fields.content},null,8,["is-theme-light","html-content"]),h.value?(f(),b("span",Q,[g(s(K),{class:p({"horizontal-banner-fi__banner-text__arrow":!0,"horizontal-banner-fi__banner-text__arrow--dark":((E=e.fields.mode)==null?void 0:E.value)==="light"})},null,8,["class"])])):P("",!0)],2)]}),_:1})]),n("div",U,[!e.isEditMode&&((d=(r=e.fields.image)==null?void 0:r.value)!=null&&d.src)?(f(),b("picture",{key:z.value?"dom":"ssr"},[n("source",{media:"(max-width: 767px)",srcset:s(m)(`${s(c)(((y=(u=e.fields.imageMobile)==null?void 0:u.value)==null?void 0:y.src)||e.fields.image.value.src)}`,L.value)},null,8,W),n("source",{media:"(max-width: 1439px)",srcset:s(m)(`${s(c)(((C=(B=e.fields.imageTablet)==null?void 0:B.value)==null?void 0:C.src)||e.fields.image.value.src)}`,x.value)},null,8,X),n("img",{src:s(m)(`${s(c)(e.fields.image.value.src)}`,R.value),alt:e.fields.image.value.alt||null},null,8,Y)])):e.isEditMode?(f(),b("div",{key:1,innerHTML:e.fields.image.editable},null,8,Z)):P("",!0)])]}),_:1},8,["href"]))]),_:1},8,["class"])}}}),ie=J(ee,[["__scopeId","data-v-ec2ece6d"]]);export{ie as default};