import{H as $,j as p,aj as T,V as c,J as o,W as d,ar as n,ad as l,K as _,a5 as v,b2 as O,Z as k,r as E,t as L,a6 as V,au as W,a9 as G,$ as I,a0 as B,bc as N,a3 as C,av as z,q as j,_ as Y,I as H}from"./CdfwBhtu.js";const X=["dir"],q={class:"h-header-two-cols__wrapper h-grid-item"},D={class:"h-header-two-cols__left-col"},F={class:"h-header-two-cols__right-col"},J=$({__name:"HHeaderTwoColumns",props:{backgroundColor:{type:String,default:"light-blue50"},isLargeGrid:{type:Boolean,default:!1},customSaleLayout:{type:Boolean,default:!1}},setup(e){const{direction:i}=p(),{isBannerVisible:t}=T();return(s,b)=>(o(),c("div",{class:l(["h-header-two-cols",{"h-header-two-cols--under-banner":_(t),[`h-header-two-cols--bg-${e.backgroundColor}`]:!!e.backgroundColor,"h-header-two-cols--large":e.isLargeGrid,"h-header-two-cols--custom-sale-layout":e.customSaleLayout}]),dir:_(i)},[d("div",{class:l(["h-grid h-grid--cols-m-1 h-grid--cols-t-1",{"h-grid--large":e.isLargeGrid}])},[d("div",q,[d("div",D,[n(s.$slots,"left-column",{},void 0,!0)]),d("div",F,[n(s.$slots,"right-column",{},void 0,!0)])])],2)],10,X))}}),ye=v(J,[["__scopeId","data-v-dac047ef"]]),K=["dir"],U={class:"h-grid h-grid--cols-m-1 h-grid--cols-t-1"},Z={key:0,class:"h-section-two-cols__header"},x={class:"h-section-two-cols__left-col"},A={class:"h-section-two-cols__right-col"},P=$({__name:"HSectionTwoColumns",props:{backgroundColor:{type:String,default:"neutral0"},reverse:Boolean,tabletScaling:{type:String,default:"horizontal",validator:O(["horizontal","vertical"])}},setup(e){const{direction:i}=p();return(t,s)=>(o(),c("div",{class:l(["h-section-two-cols",{[`h-section-two-cols--bg-${e.backgroundColor}`]:!!e.backgroundColor}]),dir:_(i)},[d("div",U,[t.$slots.header?(o(),c("div",Z,[n(t.$slots,"header",{},void 0,!0)])):k("",!0),d("div",{class:l(["h-section-two-cols__wrapper h-grid-item",{[`h-section-two-cols__wrapper--${e.tabletScaling}`]:!!e.tabletScaling,"h-section-two-cols__wrapper--reverse":e.reverse}])},[d("div",x,[n(t.$slots,"left-column",{},void 0,!0)]),d("div",A,[n(t.$slots,"right-column",{},void 0,!0)])],2),t.$slots["bottom-row"]?(o(),c("div",{key:1,class:l({"h-section-two-cols__bottom-row":!t.$slots.header})},[n(t.$slots,"bottom-row",{},void 0,!0)],2)):k("",!0)])],10,K))}}),Se=v(P,[["__scopeId","data-v-6aac6ee9"]]),Q={},R={class:"h-card-grid-wrapper"};function ee(e,i){return o(),c("div",R,[n(e.$slots,"card",{},void 0,!0)])}const M=v(Q,[["render",ee],["__scopeId","data-v-237a4ebf"]]),te=["id"],oe={class:"h-card-grid-section-track__indicator-wrapper"},se=["onClick"],ae=$({__name:"HCardGridSectionTrack",props:{cards:{type:Object,default:null}},setup(e){const i=e,t=N(),s=E(0),b=L(()=>document.getElementById(`grid-track-${t}`)),g=(a,h,r,u)=>Math.abs(u-r)>Math.abs(70)||Math.abs(h-a){var u,m,f;const h=((u=a.changedTouches[0])==null?void 0:u.clientX)||0,r=((m=a.changedTouches[0])==null?void 0:m.clientY)||0;(f=b.value)==null||f.addEventListener("touchend",w=>S(w,h,r),{once:!0,passive:!0})},S=(a,h,r)=>{var f,w;const u=((f=a.changedTouches[0])==null?void 0:f.clientX)||0,m=((w=a.changedTouches[0])==null?void 0:w.clientY)||0;g(h,u,r,m)||(hu&&(s.value=s.value===i.cards.length-1?0:s.value+1))};return V(()=>{var a;(a=b.value)==null||a.addEventListener("touchstart",y,{passive:!0})}),W(()=>{var a;(a=b.value)==null||a.removeEventListener("touchstart",y)}),(a,h)=>{const r=M;return o(),c("div",{id:`grid-track-${_(t)}`},[d("div",oe,[(o(!0),c(I,null,B(e.cards,(u,m)=>(o(),c("span",{key:`${_(t)}-${m}`,class:l(["h-card-grid-section-track__indicator",{"h-card-grid-section-track__indicator--active":m===s.value}]),onClick:f=>s.value=m},null,10,se))),128))]),G(r,null,{card:C(()=>[n(a.$slots,"default",{item:e.cards[s.value]},void 0,!0)]),_:3})],8,te)}}}),ce=v(ae,[["__scopeId","data-v-b24d9c78"]]),ne=["dir"],re={class:"h-grid-item"},de=$({__name:"HSectionOneColumn",props:{backgroundColor:{type:String,default:"neutral0"},columnMaxWidth:{type:String,default:""}},setup(e){const{direction:i}=p();return(t,s)=>(o(),c("div",{class:l(["h-section-one-col",{[`h-section-one-col--bg-${e.backgroundColor}`]:!!e.backgroundColor}]),dir:_(i)},[d("div",{class:l(["h-section-one-col__content h-grid h-grid--cols-m-1 h-grid--cols-t-1",{"h-section-one-col__content--max-width":!0}]),style:z({maxWidth:e.columnMaxWidth})},[d("div",re,[n(t.$slots,"default",{},void 0,!0)])],4)],10,ne))}}),ie=v(de,[["__scopeId","data-v-49f8e2d6"]]),le=["dir"],ue={key:0,class:"h-card-grid-section__info"},he={key:1,class:"h-card-grid-section__info"},_e=["innerHTML"],ge={key:0,class:"h-card-grid-section__text"},me={key:2,class:"h-card-grid-section__cta"},ve=$({__name:"HCardGridSection",props:{data:{type:Object,default:null},customTitle:{type:String,default:""},numberOfCards:{type:Number,default:0},desktopColumns:{type:Number,default:3},tabletColumns:{type:Number,default:2},withTrack:{type:Boolean,default:!1},backgroundColor:{type:String,default:"neutral0"}},setup(e){const{direction:i}=p(),{t}=j(),s=e,b=L(()=>[`h-card-grid-section--bg-${s.backgroundColor}`,{"u-generic-color-section":s.backgroundColor==="light-blue50"}]);return(g,y)=>{const S=ce,a=M,h=ie;return o(),c("section",{class:l(["h-card-grid",{"h-card-grid-section--neutral800":e.backgroundColor==="neutral800"}]),dir:_(i)},[G(h,{class:l(b.value),"background-color":e.backgroundColor},{default:C(()=>[g.$slots.customHeader?(o(),c("div",ue,[n(g.$slots,"customHeader",{},void 0,!0)])):k("",!0),e.data&&e.data.title?(o(),c("div",he,[d("h2",{innerHTML:e.data.title},null,8,_e),e.data&&e.data.description?(o(),c("p",ge,Y(_(t)(e.data.description)),1)):k("",!0)])):k("",!0),d("div",{class:l(`h-card-grid-section__container h-grid h-grid--cols-d-${e.desktopColumns} h-grid--cols-t-${e.tabletColumns} h-grid--cols-m-1`)},[e.withTrack?(o(),H(S,{key:0,cards:e.data.cards,class:"u-spacing-1"},{default:C(r=>[n(g.$slots,"items",{item:r==null?void 0:r.item},void 0,!0)]),_:3},8,["cards"])):e.numberOfCards?(o(!0),c(I,{key:1},B(e.numberOfCards,r=>(o(),H(a,{key:r},{card:C(()=>[n(g.$slots,`card_${r}`,{},void 0,!0)]),_:2},1024))),128)):(o(!0),c(I,{key:2},B(e.data.cards,(r,u)=>(o(),H(a,{key:u},{card:C(()=>[n(g.$slots,"items",{item:r},void 0,!0)]),_:2},1024))),128))],2),g.$slots.cta?(o(),c("div",me,[n(g.$slots,"cta",{},void 0,!0)])):k("",!0)]),_:3},8,["class","background-color"])],10,le)}}}),He=v(ve,[["__scopeId","data-v-5703dedc"]]),$e=["dir"],be={class:"h-header-one-col__content h-grid h-grid--cols-m-1 h-grid--cols-t-1"},fe={class:"h-grid-item"},ke=$({__name:"HHeaderOneColumn",props:{backgroundColor:{type:String,default:"light-blue50"}},setup(e){const{direction:i}=p();return(t,s)=>(o(),c("div",{class:l(["h-header-one-col",{[`h-header-one-col--bg-${e.backgroundColor}`]:!!e.backgroundColor}]),dir:_(i)},[d("div",be,[d("div",fe,[n(t.$slots,"default",{},void 0,!0)])])],10,$e))}}),Ie=v(ke,[["__scopeId","data-v-233e27fb"]]),Ce={class:"h-header-one-column-wide__container"},pe=$({__name:"HHeaderOneColumnWide",setup(e){const{isBannerVisible:i}=T();return(t,s)=>(o(),c("section",{class:l(["h-header-one-column-wide",{"h-header-one-column-wide--under-banner":_(i)}])},[d("div",Ce,[n(t.$slots,"main-content",{},void 0,!0),n(t.$slots,"image",{},void 0,!0)])],2))}}),Be=v(pe,[["__scopeId","data-v-8487e86c"]]);export{He as _,Se as a,ye as b,ie as c,Ie as d,Be as e};