1import{f as T,d as M,i as A,b as V,n as q,a as O}from"./B5VZF1Z-.js";import{cm as D,c9 as P,u as L,co as R,q as E}from"./BEitN51j.js";import{u as F}from"./DNpA-FBB.js";import{e as U,p as B,h as W}from"./Bl6mH0yk.js";import{x as j,k as o,ak as m,p,m as S,a9 as i,aG as G,t as y,ab as x,ah as J,aq as N,aV as K,u as k,aU as w,aB as z,o as h,n as Q,au as X}from"./CXIEtJGx.js";import{_ as C}from"./DAxcpuIF.js";import{_ as Y}from"./BQBqSx1e.js";import{u as Z}from"./do0XmCrS.js";import{u as ee}from"./CV9nTpN9.js";import"./Dv4P_aoo.js";import"./22T9q3md.js";const te=j({name:"HeroImage",props:{source:{type:String,required:!0},optimiseDesktop:{type:Boolean,default:!1},quality:{type:Number,default:70},alt:{type:[String,void 0],default:void 0},title:{type:[String,void 0],default:void 0},noScale:{type:Boolean,default:!1},cover:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},highPriority:{type:Boolean,default:!1},media:{type:[String,void 0],default:"all"}},emits:["load"],setup(e){const t=D(),r=F(),c="storyblok",f={format:"webp",quality:e.quality},n=o(()=>{const a=e.source?.split("/")?.[5]?.split("x");if(!a)return null;const[v,u]=a;return!v||!u||parseInt(u,10)>4e3||parseInt(v,10)>4e3?null:[v,u]}),l=o(()=>n.value?n.value[0]:null),s=o(()=>n.value?n.value[1]:null),g=o(()=>{if(e.optimiseDesktop)return V;const a=l.value?parseInt(l.value,10):4e3;return q(a)}),b=o(()=>{const a={sizes:g.value,provider:c,modifiers:{quality:f.quality,width:B(l.value),height:B(s.value)}};return W(r,e.source,a).map(u=>(u.src=r(e.source,{...a.modifiers,width:u.width,height:950},a),u))}),d=o(()=>U(b.value)),$=o(()=>t.meta?.pageType==="home"),_=o(()=>$.value&&!e.highPriority),I=o(()=>{if(_.value||!e.source||A(e.source))return[];let a;return!e.media||e.media==="all"?a="all":e.media==="desktop"?a="(min-width: 640px)":a="(max-width: 639px)",[{hid:e.source,rel:"preload",as:"image",imagesrcset:d.value.srcset,imagesizes:d.value.sizes,media:a}]});return P({link:I.value}),{isSvg:A,provider:c,imageSizes:g,mainImageModifiers:f,defaultFallbackSizes:M,fallbackImageSettings:T,width:l,height:s,preload:I,sizes:d,img:r}}}),ae=["src","loading","width","height"],oe=["alt","src","loading","srcset","sizes","width","height","fetchpriority"];function ie(e,t,r,c,f,n){return m(),p("div",{class:i(["size-full overflow-hidden",{"absolute inset-0":e.cover,relative:!e.cover}]),style:x(e.cover?"":`width: ${e.width?`${e.width}px`:"100%"}`)},[S("img",{alt:"","aria-hidden":"true",decoding:"async",fetchpriority:"low",src:e.img(e.source,{width:50},"fallbackImageSettings"in e?e.fallbackImageSettings:G(T)),class:i(["relative inset-0 size-full",[e.noScale?"object-contain":"scale-125 object-cover object-top"]]),style:{filter:"blur(24px)"},loading:e.lazy?"lazy":"eager",width:Number(e.width),height:Number(e.height)},null,10,ae),t[1]||(t[1]=y()),S("img",{alt:e.alt,decoding:"async",src:e.sizes.src,loading:e.lazy?"lazy":"eager",srcset:e.sizes.srcset,sizes:e.sizes.sizes,class:i(["absolute inset-0 size-full",e.noScale?"object-contain":"object-cover object-top"]),width:Number(e.width),height:Number(e.height),fetchpriority:e.highPriority?"high":"auto",onLoad:t[0]||(t[0]=l=>e.$emit("load"))},null,42,oe)],6)}const H=Object.assign(L(te,[["render",ie]]),{__name:"HeroImage"}),ne=j({name:"HeroBanner",components:{HeroImage:H,Responsive:C},props:{blok:{type:Object,default:()=>{}},lazy:{type:Boolean,default:!1},index:{type:String,default:"1"}},emits:["load"],setup({blok:e,index:t}){const{trackPromotionSelect:r,trackPromotionView:c}=Z(),{toLocalePath:f}=R(),{isMobile:n}=ee(),l=N(!1),s=o(()=>n.value&&e.backgroundMobile?.filename?e.backgroundMobile.filename:e.background.filename),g=o(()=>n.value&&e.backgroundMobile?.filename&&e.backgroundMobileAlt?e.backgroundMobileAlt:e.backgroundAlt||""),b=N(!0),d=o(()=>f(e?.url?.cached_url||"").toString());return J(()=>l.value=!0),{url:d,backgroundImage:s,fetching:b,defaultSizes:O,mounted:l,isMobile:n,defaultLayout:!e.layout||e.layout==="default",leftAligned:e.layout==="left",bottomLeftAligned:e.layout==="bottom-left",altText:g,clickObserver:()=>{r({id:e.promotion_id||"hero_banner_promotion_id",name:e.promotion_name||"hero_banner_promotion_name",promoType:"herobanner",position:Number(t)+1,creativeNameSb:e.creative_name||""})},handleVisibility:()=>c({id:e.promotion_id||"hero_banner_promotion_id",name:e.promotion_name||"hero_banner_promotion_name",promoType:"herobanner",position:Number(t)+1,creativeNameSb:e.creative_name||""})}}}),le={class:"relative h-full"};function re(e,t,r,c,f,n){const l=H,s=C,g=E,b=Y,d=X("editable");return K((m(),p("section",le,[k(b,{threshold:.5,onEnterOnce:e.handleVisibility},{default:w(()=>[k(g,{to:e.url,class:i({"flex h-full flex-col bg-gold md:flex-row":e.leftAligned}),onClick:e.clickObserver},{default:w(()=>[k(l,{source:e.backgroundImage,cover:!e.leftAligned,lazy:e.lazy,"high-priority":!e.lazy,alt:e.altText,class:i({"!h-auto !w-auto basis-1/2 md:order-1 md:shrink-0":e.leftAligned}),onLoad:t[0]||(t[0]=$=>e.$emit("load"))},null,8,["source","cover","lazy","high-priority","alt","class"]),t[4]||(t[4]=y()),S("div",{class:i(["flex size-full flex-col flex-nowrap items-center justify-center text-center",{"absolute top-0":e.defaultLayout||e.bottomLeftAligned,"flex-1 p-4":e.leftAligned,"!items-start !justify-end p-8
1!text-left md:px-16 md:py-24 xl:w-3/5":e.bottomLeftAligned}])},[e.blok.headline&&e.blok.kicker?(m(),p("div",{key:0,class:i([{container:e.bottomLeftAligned},"w-full"])},[k(s,{"base-width":500,"initial-height":e.leftAligned?300:500,align:e.bottomLeftAligned?"bottom":"center"},{default:w(()=>[e.blok.kicker?(m(),p("h2",{key:0,class:i(["hero-banner__kicker mb-6 max-w-full break-words text-xl font-bold uppercase tracking-widest md:mb-7",{"text-black":e.blok.textColor==="black","text-white":e.blok.textColor!=="black"}])},z(e.blok.kicker),3)):h("",!0),t[1]||(t[1]=y()),e.blok.headline?(m(),p("h2",{key:1,class:i(["hero-banner__headline max-w-full break-words leading-[5rem] md:leading-[9rem]",{"text-black":e.blok.textColor==="black","text-white":e.blok.textColor!=="black","mb-6 font-handwritten text-banner md:mb-7 md:text-bannerLg":!e.blok.isRegularFont,"mb-10 text-4xl md:mb-12 md:text-banner":e.blok.isRegularFont,"!leading-[4rem] md:!leading-[6rem]":e.bottomLeftAligned}])},z(e.blok.headline),3)):h("",!0)]),_:1},8,["initial-height","align"]),t[2]||(t[2]=y()),e.blok.buttonText?(m(),p("button",{key:0,class:i(["hero-banner__btn bg-white px-3.5 py-2 text-sm leading-4 tracking-widest shadow-bannerButton transition hover:bg-gray md:px-5 md:py-3.5 md:text-base md:leading-[19px]",{"opacity-0":e.isMobile&&!e.mounted}]),type:"button"},z(e.blok.buttonText),3)):h("",!0),t[3]||(t[3]=y()),e.blok.campaignText?(m(),Q(s,{key:1,"base-width":500,"initial-height":50,align:"center",class:i({"opacity-0":e.isMobile&&!e.mounted})},{default:w(()=>[S("div",{class:i(["campaign-text--thick mt-10 text-4xl font-bold uppercase leading-tight md:mt-14 md:text-banner",`text-${e.blok.campaignTextColor||"gold"}`])},z(e.blok.campaignText),3)]),_:1},8,["class"])):h("",!0)],2)):h("",!0)],2)]),_:1},8,["to","class","onClick"])]),_:1},8,["onEnterOnce"])])),[[d,e.blok]])}const ve=Object.assign(L(ne,[["render",re],["__scopeId","data-v-b55383bc"]]),{__name:"HeroBanner"});export{ve as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.