import{d as M,p as k,N as ,ドルba as F,bb as y,ap as v,A as l,o as a,c as n,a as c,v as _,f as e,t as w,bc as x,b,e as I,g as u,ag as C,G}from"./bdrFovXZ.js";import{_ as Y}from"./BiR6V5Nf.js";import{t as q}from"./D02Qc_ax.js";import{u as T}from"./BmWKwbjH.js";import"./BPt2aNzB.js";import"./C2QcOXje.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalthis:typeof self<"u"?self:{};o.sentry_release={id:"dcd43fef1e4af7f7614a43abf36301348c5fce67"}}catch{}})();try{(function(){var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalthis:typeof self<"u"?self:{},s=new o.Error().stack;s&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[s]="075d0096-845c-452b-8bf3-d3228f325b60",o._sentryDebugIdIdentifier="sentry-dbid-075d0096-845c-452b-8bf3-d3228f325b60")})()}catch{}const J={class:"relative z-10 flex flex-col space-y-6 sm:space-y-8 md:w-2/5 md:gap-6 md:space-y-0 lg:w-1/2"},K={class:"text-left sm:w-9/12 sm:pl-7 md:w-auto md:px-0 lg:pl-0"},Q={class:"mb-2 text-h3 sm:mb-6 sm:text-h2 md:text-h3"},U={class:"text-body-2 sm:text-body-1"},X={key:1,class:"h-full pl-16 lg:pl-10"},ne=M({__name:"FeatureBanner",props:{blok:{}},setup(o){const s=o,m=k(null),f=k(null),{isDesktop:g,isTablet:B}=$(),{height:p}=F(),{top:E,height:j}=y(m),{top:R,height:D}=y(f),N=v(m),P=v(f),h=l(()=>{var r;return((r=s.blok.ctaButton)==null?void 0:r[0])??null}),t=l(()=>q(s.blok.image)),d=l(()=>!!s.blok.hasParallaxEffect),V=l(()=>B.value?.15:.2),H=T({elementTop:E,elementHeight:j,viewportHeight:p,maxOffsetRatio:V,disabled:l(()=>!d.value||g.value||!N.value)}),S=T({elementTop:R,elementHeight:D,viewportHeight:p,maxOffsetRatio:.15,disabled:l(()=>!d.value||!g.value||!P.value)}),z=C("relative mx-auto flex flex-col overflow-hidden md:block md:w-11/12 md:rounded-md xl:rounded-2md md:p-24 lg:w-full lg:px-24 lg:py-14 xl:py-28",{variants:{backgroundColor:{gray:"md:bg-grey",green:"md:bg-bt-green"}}}),A=C("overflow-hidden relative rounded-sm sm:rounded-md md:hidden h-48 sm:h-62",{variants:{backgroundColor:{gray:"bg-grey",green:"bg-bt-green"}}}),O=l(()=>z({backgroundColor:s.blok.backgroundColor})),W=l(()=>A({backgroundColor:s.blok.backgroundColor}));return(r,Z)=>{const i=G,L=Y;return a(),n("div",{class:w(e(O))},[c("div",J,[c("div",K,[c("h3",Q,_(r.blok.title),1),c("p",U,_(r.blok.description),1)]),e(t).src?(a(),n("div",{key:0,ref_key:"mobileImageContainerRef",ref:m,class:w(e(W))},[e(d)?(a(),n("div",{key:0,style:x({transform:e(H)}),class:"absolute inset-x-0 -top-[20%] h-[140%] transform-gpu sm:-top-[15%] sm:h-[130%]"},[b(i,{src:e(t).src,alt:e(t).alt,provider:"storyblok",class:"h-full w-full rounded-md object-cover object-left sm:mx-auto sm:w-3/4 sm:object-contain sm:object-center"},null,8,["src","alt"])],4)):(a(),I(i,{key:1,src:e(t).src,alt:e(t).alt,provider:"storyblok",class:"h-full w-full rounded-md object-contain sm:mx-auto sm:w-3/4"},null,8,["src","alt"]))],2)):u("",!0),e(h)?(a(),I(L,{key:1,blok:e(h),"full-width-on-tablet":"",class:"h-12 md:h-auto xl:h-12"},null,8,["blok"])):u("",!0)]),e(t).src?(a(),n("div",{key:0,ref_key:"desktopImageContainerRef",ref:f,"aria-hidden":"true",class:"pointer-events-none absolute inset-y-0 right-0 hidden w-3/5 md:block lg:w-1/2"},[e(d)?(a(),n("div",{key:0,style:x({transform:e(S)}),class:"absolute inset-y-0 -top-[15%] left-16 right-0 h-[130%] transform-gpu"},[b(i,{src:e(t).src,alt:e(t).alt,provider:"storyblok",class:"h-full w-full object-cover object-left"},null,8,["src","alt"])],4)):(a(),n("div",X,[b(i,{src:e(t).src,alt:e(t).alt,provider:"storyblok",class:"h-full w-full object-cover object-left"},null,8,["src","alt"])]))],512)):u("",!0)],2)}}});export{ne as default}; //# sourceMappingURL=ChIerBxE.js.map