const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B8mQ4sSt.js","./BDl4c6dV.js","./DGQDO-VU.js","./swiper-vue.BV_8Ey50.css","./entry.B1ppywWU.css","./Ccrbh_Jl.js","./BTsg9mRw.js","./B9zcJ6At.js","./DuXmP_XX.js","./Dbgu37Rp.js","./D2mLcIx-.js","./DEi93yrj.js","./wYOeH903.js","./DLO9F3-k.js","./C45-_Pzp.js","./BJos1Nb2.js","./G_k4rOhO.js","./CggM3aGT.js","./DewCGe9j.js","./WU7YL9Lk.js","./DXXt2wMo.js","./DdLHI-PN.js"])))=>i.map(i=>d[i]); import{au as de,cl as yt,b0 as ke,cm as nt,R as ne,cn as oe,co as xt,d as Q,B as ot,Q as kt,a_ as wt,Z as Ct,C as $t,$ as at,aj as St,aB as At,v as je,bj as lt,a0 as Ne,u as it,i as ct,cp as jt,a6 as Re,aV as rt,aq as Nt,a3 as ut,at as Rt,cq as It,P as Lt,cr as Ce,cs as $e,c4 as Mt,ci as Tt,aZ as Bt,a8 as Ye,a as Pt,ct as Ot,a7 as zt,cu as Dt,as as Et,T as Ut,aG as qt,b as et,bq as Ft,g as Vt,cv as Ht,cw as Qt}from"./BDl4c6dV.js";import Wt from"./Ccrbh_Jl.js";import{j as N,k as O,L as r,O as g,H as Z,Y as G,V as x,a2 as Ie,P as t,U as E,I as i,W as I,R as se,S as $,a0 as me,u as o,a1 as xe,M as L,_ as H,a as B,b as Y,al as Kt,m as Zt,aw as Gt,ay as Jt,G as Xt,$ as Yt,Z as es,o as dt,z as we,C as ts,a6 as tt}from"./DGQDO-VU.js";import{_ as ss,u as ns,b as os,a as as}from"./BTsg9mRw.js";import Le from"./Dbgu37Rp.js";import mt from"./D2mLcIx-.js";import{_ as ls}from"./DEi93yrj.js";import{_ as ft}from"./CggM3aGT.js";import{a as is}from"./DewCGe9j.js";import cs from"./DuXmP_XX.js";import rs from"./DXXt2wMo.js";import{_ as us}from"./DdLHI-PN.js";function ds({params:e,key:u="search"}={}){const s=de(`${u}-data`,()=>{}),c=de(`${u}-searchQuery`,()=>""),l=de(`${u}-pending`,()=>!1),n=de(`${u}-error`,()=>{}),v=de(`${u}-error`,()=>"idle"),a=yt("searchProducts");return{data:s,pending:l,searchQuery:c,resetSearch:()=>{c.value="",s.value={suggestions:[]}},search:async({term:h,slug:f,productLimit:b})=>{if(l.value=!0,v.value="pending",!!h)try{s.value=await a({term:String(h),slug:f,with:e==null?void 0:e.with,productLimit:b})}catch(p){n.value=p}finally{l.value=!1,v.value=n.value?"error":"success"}}}}const ht=500,pt=3,Ae=6,ms=["href","onClick"],gt=N({__name:"NavigationLevel1",props:{categories:{type:[Array,Object],required:!0},fetching:{type:Boolean,required:!0},activeCategory:{type:Object,default:void 0},isCms:{type:Boolean,default:!1}},emits:["mouseenter:item"],setup(e,{emit:u}){const s=e,{xl:c}=ke(),l=u,n=O(()=>s.activeCategory!==void 0&&!s.isCms);function v(a,m,d){l("mouseenter:item",m),!c.value&&m.children||nt(d,{external:d.includes("http")})}return(a,m)=>{const d=ne;return e.fetching?I("",!0):(r(),g("div",{key:0,"data-test-id":"nav-categories",class:x(["flex h-[50px] whitespace-nowrap uppercase tracking-widest xl:flex-row xl:items-start xl:overflow-visible xl:border-0 xl:pb-0 xxl:gap-8",[n.value?"relative -mx-6 flex-row items-center gap-6 overflow-x-auto overflow-y-hidden border-b border-gray-200 px-6":"flex-col items-stretch gap-6 pt-10 xl:pt-0"]])},[(r(!0),g(Z,null,G(e.categories,h=>{var f,b;return r(),g("a",{key:`nav_link_${h.id}`,class:x(["relative flex items-center no-underline after:absolute after:bottom-0 after:left-1/2 after:h-0.5 after:w-8 after:-translate-x-1/2 hover:after:bg-black/25 xl:m-0 xl:text-base xl:uppercase xl:after:-bottom-2.5",[n.value?"h-[50px] p-0 text-sm":"mb-2 h-10 text-4xl xl:h-[50px]",n.value&&h.id===((f=e.activeCategory)==null?void 0:f.id)?"bg-transparent after:!bg-black hover:bg-transparent":"after:bg-white",h.id===((b=e.activeCategory)==null?void 0:b.id)?"hover:after:bg-black":""]]),href:`/c${h.path}`,onClick:Ie(p=>v(p,h,`/c${h.path}`),["prevent","stop"])},[t("span",null,E(h.name),1),i(d,{class:x(["ml-auto h-3 w-3.5 xl:hidden",{hidden:n.value}])},null,8,["class"])],10,ms)}),128))],2))}}}),fs={class:"inline-flex h-full w-full items-center justify-center"},hs=t("span",{class:"absolute -top-2 right-4 block h-4 w-4 -rotate-45 border border-transparent border-r-gray-200 border-t-gray-200 bg-white"},null,-1),ps={class:"overflow-y-auto overscroll-none"},gs=N({__name:"Popover",props:{isOpen:{type:Boolean,default:!1},disablePopoverContent:{type:Boolean,default:!1},contentWrapperClass:{type:[String,Object],default:""}},emits:["mouseenter","mouseleave"],setup(e,{emit:u}){const{isSideNavigationOpen:s}=oe(),c=u;return(l,n)=>{const v=xt;return r(),g("div",{class:"relative",onMouseenter:n[0]||(n[0]=a=>c("mouseenter")),onMouseleave:n[1]||(n[1]=a=>c("mouseleave"))},[t("div",fs,[se(l.$slots,"action")]),i(v,{appear:""},{default:$(()=>[me(t("div",{class:x(["absolute z-30 min-w-max pt-2.5",o(s)?"right-1/2 -mt-1 translate-x-1/2":"-right-2 mt-0 lg:-right-2 lg:mt-0 lg:transform-none"])},[t("div",{class:x(["relative bg-white shadow-lg",e.contentWrapperClass])},[se(l.$slots,"point",{},()=>[hs]),t("div",ps,[se(l.$slots,"content")])],2)],2),[[xe,!e.disablePopoverContent&&e.isOpen]])]),_:3})],32)}}}),vs=t("span",{class:"hidden"},null,-1),vt=N({__name:"AccountPopover",setup(e){const{md:u}=ke(),{openAccountFlyout:s,closeAccountFlyout:c,isAccountFlyoutOpen:l}=oe();function n(){l.value?c():s()}return(v,a)=>{const m=mt,d=Q,h=ls,f=ft,b=gs;return r(),L(b,{"is-open":o(l),onMouseenter:a[0]||(a[0]=p=>o(u)&&o(s)),onMouseleave:a[1]||(a[1]=p=>o(u)&&o(c))},{action:$(()=>[i(d,{"data-test-id":"account-link",to:{name:"account"},class:"mt-px hidden items-center justify-center md:flex"},{default:$(()=>[i(m,{class:"h-[16px] w-[17px]"})]),_:1}),t("button",{type:"button",class:"mt-px flex items-center justify-center md:hidden",onClick:n},[i(m,{class:"h-[16px] w-[17px]"})])]),point:$(()=>[vs]),content:$(()=>[i(f,null,{default:$(()=>[i(h,{location:"popup",onLinkClicked:n})]),_:1})]),_:1},8,["is-open"])}}}),_s={},bs={class:"flex h-full py-2"},ys={class:"flex-1 space-y-2"};function xs(e,u){const s=kt;return r(),g("div",bs,[t("div",ys,[(r(),g(Z,null,G(3,c=>t("div",{key:c,class:"mt-6 flex items-center"},[i(s,{class:"h-16","full-width":"",type:"headline"})])),64))])])}const ks=ot(_s,[["render",xs]]),ws=t("div",{class:"mb-2 text-lg font-bold"},"Merken",-1),Cs={class:"list-none"},$s={class:"border-b border-gray-300"},Ss=N({__name:"SearchResultBrands",props:{searchTerm:{type:String,default:""},label:{type:String,required:!0},items:{type:Array,default:()=>[]}},emits:["click:result"],setup(e,{emit:u}){const s=u;return(c,l)=>{const n=ne,v=Q;return r(),g("div",null,[ws,t("ul",Cs,[(r(!0),g(Z,null,G(e.items,a=>(r(),g("li",$s,[i(v,{class:"flex items-center py-3 text-base hover:underline",to:`/merken/${a==null?void 0:a.slug}`,onClick:m=>s("click:result",a)},{default:$(()=>[H(E(a.name)+" ",1),i(n,{class:"ml-auto h-3 w-3.5 flex-none"})]),_:2},1032,["to","onClick"])]))),256))])])}}}),As=t("div",{class:"mb-2 text-lg font-bold"},"Categorieën",-1),js={class:"list-none"},Ns={class:"border-b border-gray-300"},Rs={key:0},Is={key:1},Ls={key:2},Ms=N({__name:"SearchResultCategories",props:{searchTerm:{type:String,default:""},label:{type:String,required:!0},items:{type:Array,default:()=>[]}},emits:["click:result"],setup(e,{emit:u}){const s=u;return(c,l)=>{const n=ne,v=Q;return r(),g("div",null,[As,t("ul",js,[(r(!0),g(Z,null,G(e.items,a=>(r(),g("li",Ns,[i(v,{class:"flex items-center py-3 text-base hover:underline",to:a.path,onClick:m=>s("click:result",a)},{default:$(()=>[H(E(a.name)+" ",1),a.path.includes("dames")&&a.parentId?(r(),g("span",Rs," voor dames")):I("",!0),a.path.includes("heren")&&a.parentId?(r(),g("span",Is," voor heren")):I("",!0),a.path.includes("kids")&&a.parentId?(r(),g("span",Ls," voor kids")):I("",!0),i(n,{class:"ml-auto h-3 w-3.5 flex-none"})]),_:2},1032,["to","onClick"])]))),256))])])}}}),Ts=t("div",{class:"mb-2 text-lg font-bold"},"Pagina's",-1),Bs={class:"list-none"},Ps={class:"border-b border-gray-300"},Os=N({__name:"SearchResultContent",props:{searchTerm:{type:String,default:""},label:{type:String,required:!0},items:{type:Array,default:()=>[]}},emits:["click:result"],setup(e,{emit:u}){const s=u;return(c,l)=>{const n=ne,v=Q;return r(),g("div",null,[Ts,t("ul",Bs,[(r(!0),g(Z,null,G(e.items,a=>(r(),g("li",Ps,[i(v,{class:"flex items-center py-3 text-base hover:underline",to:a.slug,onClick:m=>s("click:result",a)},{default:$(()=>[H(E(a.title)+" ",1),i(n,{class:"ml-auto h-3 w-3.5 flex-none"})]),_:2},1032,["to","onClick"])]))),256))])])}}}),zs={class:"mb-6 md:flex md:items-center md:justify-between"},Ds={class:"whitespace-nowrap text-lg font-bold"},Es=t("span",{class:"!ml-0 !translate-x-0"},"Bekijk alle artikelen",-1),Us={class:"-mx-6 grid grid-cols-12 gap-2 md:mx-0 md:gap-x-6 md:gap-y-4"},qs=N({__name:"SearchResultProducts",props:{searchTerm:{type:String,default:""},label:{type:String,required:!0},itemCount:{type:Number,default:0},items:{type:Array,default:()=>[]},showImages:{type:Boolean,default:!1}},emits:["click:result"],setup(e,{emit:u}){const s=u;return(c,l)=>{const n=ne,v=Q,a=wt;return r(),g("div",null,[t("div",zs,[t("div",Ds,E(e.itemCount)+" artikelen ",1),i(v,{to:{name:"search",query:{term:e.searchTerm}},class:"btn btn-default w-full justify-between px-0 md:h-auto md:w-auto",onClick:l[0]||(l[0]=m=>s("close"))},{default:$(()=>[Es,i(n,{class:"h-3 w-3.5"})]),_:1},8,["to"])]),t("ul",Us,[(r(!0),g(Z,null,G(e.items,m=>(r(),g("li",{class:"col-span-6 md:col-span-4",key:m.id},[i(a,{"additional-styling":!1,product:m,"onClick:product":d=>s("click:result",m),"show-siblings":!0},null,8,["product","onClick:product"])]))),128))])])}}}),Fs={class:"flex flex-col md:flex-row md:gap-14"},Vs={class:"contents md:block md:w-[280px]"},Hs=N({__name:"SearchResults",props:{limit:{type:Number,default:Ae},term:{type:String,default:""},resultsCount:{type:Number,default:0},productCount:{type:Number,default:0},showLabels:{type:Boolean,default:!0},productSuggestions:{type:Array,default:()=>[]},categories:{type:Array,default:()=>[]},brands:{type:Array,default:()=>[]},content:{type:Array,default:()=>[]}},emits:["close","click:result"],setup(e,{emit:u}){const s=u;return(c,l)=>{const n=Ss,v=Ms,a=Os,m=qs;return r(),g("div",Fs,[t("div",Vs,[e.brands.length?(r(),L(n,{key:0,items:e.brands.slice(0,5),"search-term":e.term,label:e.showLabels?c.$t("search.brands"):"","onClick:result":l[0]||(l[0]=d=>s("click:result",d)),class:"order-1 mb-6"},null,8,["items","search-term","label"])):I("",!0),e.categories.length?(r(),L(v,{key:1,items:e.categories.slice(0,5),"search-term":e.term,label:e.showLabels?c.$t("search.categories"):"","onClick:result":l[1]||(l[1]=d=>s("click:result",d)),class:"order-2 mb-6"},null,8,["items","search-term","label"])):I("",!0),e.content.length?(r(),L(a,{key:2,items:e.content.slice(0,5),"search-term":e.term,label:e.showLabels?c.$t("search.content"):"","onClick:result":l[2]||(l[2]=d=>s("click:result",d)),class:"order-4 mb-6"},null,8,["items","search-term","label"])):I("",!0)]),e.productSuggestions.length?(r(),L(m,{key:0,class:"order-3 mb-6 md:m-0 md:flex-1","item-count":e.productCount,items:e.productSuggestions.slice(0,o(Ae)),"search-term":e.term,label:c.$t("search.product"),onClose:l[3]||(l[3]=d=>s("close")),"onClick:result":l[4]||(l[4]=d=>s("click:result",d))},null,8,["item-count","items","search-term","label"])):I("",!0)])}}}),Qs={id:"search-results"},Ws={key:1,class:"flex grow flex-col"},Ks={key:0,class:"mx-auto w-60 text-center text-sm font-normal leading-normal"},Zs=N({__name:"SearchResultsContainer",props:{fetching:{type:Boolean,default:!1},brands:{type:Array,default:()=>[]},content:{type:Array,default:()=>[]},productSuggestions:{type:Array,default:()=>[]},categories:{type:Array,default:()=>[]},searchTerm:{type:String,default:""},resultsCount:{type:Number,default:0},productCount:{type:Number,default:0}},emits:["close","click:result"],setup(e,{emit:u}){const s=u;return(c,l)=>{const n=ks,v=Hs,a=Ct;return r(),g("div",Qs,[i(a,null,{default:$(()=>[e.fetching?(r(),L(n,{key:0})):(r(),g("div",Ws,[i(v,{"results-count":e.resultsCount,"product-count":e.productCount,"product-suggestions":e.productSuggestions,categories:e.categories,brands:e.brands,content:e.content,term:e.searchTerm,onClose:l[0]||(l[0]=m=>s("close")),"onClick:result":l[1]||(l[1]=m=>s("click:result"))},null,8,["results-count","product-count","product-suggestions","categories","brands","content","term"]),!e.resultsCount&&e.searchTerm!==""?(r(),g("p",Ks," Sorry, dit kunnen we niet vinden. Controleer je zoekterm of probeer iets anders. ")):I("",!0)]))]),_:1})])}}}),Gs=()=>{const e=B({term:"empty",productLimit:0}),u=B(""),s=()=>{u.value="",c.value=null},{data:c,fetch:l,pending:n}=$t("searchSuggestions","searchSuggestions",e,{immediate:!1}),v=async({term:p,productLimit:A})=>{e.value={term:p,productLimit:A},await l()},a=O(()=>{var p;return((p=c.value)==null?void 0:p.productCount)||0}),m=O(()=>{var p;return((p=c.value)==null?void 0:p.products)||[]}),d=O(()=>{var p;return((p=c.value)==null?void 0:p.brands)||[]}),h=O(()=>{var p;return((p=c.value)==null?void 0:p.categories)||[]}),f=O(()=>{var p;return((p=c.value)==null?void 0:p.content)||[]}),b=O(()=>m.value.length+d.value.length+h.value.length+f.value.length);return{search:v,searchSuggestionsData:c,resetSearch:s,searchQuery:u,products:m,productCount:a,categories:h,brands:d,content:f,noSuggestions:O(()=>b.value===0),totalCount:b,pending:n}},Js=t("div",{class:"text-4xl"},"Zoeken",-1),Xs=["placeholder"],Ys=N({__name:"HeaderSearch",setup(e){const{toggle:u,isOpen:s}=at("Search"),{getSearchRoute:c}=St(),{search:l,searchQuery:n,resetSearch:v,pending:a,brands:m,content:d,products:h,productCount:f,categories:b,totalCount:p}=Gs(),A=At(),{trackSearchSuggestionClick:S,trackSearch:M}=je(),C=B(!1);Y(s,w=>{w||v()}),Y(n,w=>{n.value=w.toLowerCase()});const T=lt({delay:ht},function(w){w===""||w.length<pt?C.value=!1:(C.value=!0,l({term:n.value,productLimit:Ae}))});Y(n,()=>{const{value:w=""}=n;if(!w)return v();T(n.value)});const P=()=>{v(),s.value=!1,C.value=!1},q=w=>{S(n.value,w),P()},k=()=>{M({searchAction:"search_button",searchTerm:n.value,searchDestination:A(c(n.value))||""}),window.location.href=A(c(n.value))},_=O(()=>p.value),z=w=>{w.target.id==="search"||w.target.closest("#search")||document.activeElement.blur()};return(w,R)=>{const F=Ne,V=Le,W=Zs;return r(),g("div",{class:x(["",{"fixed inset-0 z-60 flex flex-col bg-white pb-0 lg:relative lg:py-0":o(s)}]),onTouchstart:z,onKeydown:Gt(P,["esc"])},[t("div",{class:x(["bg-gray-100 px-6 pb-4 pt-6",{"flex flex-row items-center lg:hidden":o(s),hidden:!o(s)}])},[Js,t("button",{type:"button",class:"-mr-1 ml-auto flex size-6 flex-none items-center justify-center",onClick:R[0]||(R[0]=(...D)=>o(u)&&o(u)(...D))},[i(F,{class:"size-3"})])],2),t("form",{class:x(["flex items-center justify-center",{"p-6 lg:border-none lg:p-0":o(s),"gap-2 lg:p-0":!o(s)}]),onSubmit:Ie(k,["prevent","stop"])},[t("label",{for:"search",class:x(["lg:hidden",{hidden:o(s)}])},[i(V,{class:"size-[16px]"})],2),t("div",{class:x({"relative w-full":o(s),"w-52 lg:w-full":!o(s)})},[me(t("input",{id:"search","onUpdate:modelValue":R[1]||(R[1]=D=>Zt(n)?n.value=D:null),type:"search",name:"term",enterkeyhint:"search",placeholder:w.$t("search.placeholder"),autocomplete:"off",class:x(["",{"h-10 border border-black text-left":o(s)}]),onFocusin:R[2]||(R[2]=D=>s.value=!0)},null,42,Xs),[[Kt,o(n)]]),t("button",{type:"submit",class:x(["absolute inset-y-0 right-2.5 my-auto size-6 items-center justify-center lg:flex",[o(n)?"":"pointer-events-none",o(s)?"flex":"hidden"]])},[i(V,{class:"size-4"})],2)],2)],34),o(s)&&C.value&&o(n)?(r(),L(W,{key:0,class:"flex grow flex-col overflow-y-auto overflow-x-hidden overscroll-contain bg-white px-6 py-2.5 md:max-h-[704px] md:px-6 lg:absolute lg:-right-24 lg:top-full lg:mt-1 lg:w-[964px] lg:pb-10 lg:pt-14 xl:right-0 xl:px-14",brands:o(m),content:o(d),categories:o(b),fetching:o(a),"product-suggestions":o(h),"results-count":_.value,"product-count":o(f),"search-term":o(n),onClose:P,"onClick:result":q},null,8,["brands","content","categories","fetching","product-suggestions","results-count","product-count","search-term"])):I("",!0)],34)}}}),en=Xt(()=>jt(()=>import("./B8mQ4sSt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url).then(e=>e.default||e)),tn=["href","onMouseenter","onClick"],_t=N({__name:"NavigationLevel2",props:{categories:{type:[Array],required:!0}},setup(e){const u=e,{xl:s}=ke(),c=it();ct();const l=B(void 0),n=B(void 0);Jt(()=>v()),Y(()=>c.fullPath,async()=>{await d()});function v(f=void 0){f||(f=u.categories.find(b=>c.path.includes(b.path))),f&&(l.value=f)}function a(f=void 0){n.value=f}function m(f){a(f)}function d(){n.value=void 0}function h(f,b,p){!s.value&&b.children||nt(p,{external:p.includes("http")})}return(f,b)=>{const p=ne,A=en;return r(),g("ul",{class:"container mb-0 flex flex-col max-xl:p-0 md:mb-0 xl:flex-row xl:items-center xl:gap-6",onMouseleave:b[0]||(b[0]=()=>{a()})},[(r(!0),g(Z,null,G(e.categories,S=>{var M,C,T,P,q,k;return r(),g("li",{key:S.path},[t("a",{href:S.path,class:x(["group relative mb-2 flex h-10 items-center justify-between text-4xl text-black xl:m-0 xl:h-12 xl:text-lg xl:after:absolute xl:after:-inset-x-1 xl:after:inset-y-3 xl:after:z-[-2] xl:hover:after:bg-gray-100",{"xl:after:bg-gray-100":S.id===((M=l.value)==null?void 0:M.id),"":S.id!==((C=l.value)==null?void 0:C.id)}]),onMouseenter:_=>m(S),onClick:Ie(_=>h(_,S,S.path),["prevent","stop"])},[H(E(S.name)+" ",1),i(p,{class:"ml-auto h-3 w-3.5 xl:hidden"})],42,tn),i(A,{class:x(["xl:after:block xl:after:h-screen xl:after:w-screen xl:after:bg-black/10",{"translate-x-full opacity-25":S.id!==((T=n.value)==null?void 0:T.id),"translate-x-0 opacity-100":S.id===((P=n.value)==null?void 0:P.id),"xl:hidden":S.id!==((q=n.value)==null?void 0:q.id),"xl:block":S.id===((k=n.value)==null?void 0:k.id)}]),category:S,onClose:d},null,8,["class","category"])])}),128))],32)}}}),sn=N({__name:"ServiceNavigation",emits:["close"],setup(e,{emit:u}){const{closeSideNavigation:s,isSideNavigationOpen:c,setMobileSearchIsActive:l,closeAccountFlyout:n}=oe(),v=u,a=()=>{v("close"),n(),s(),l(!1)};function m(d){const h=d.target;if((h==null?void 0:h.tagName)==="A"||h.closest("a")){const f=(h==null?void 0:h.tagName)==="A"?h:h.closest("a");if((f==null?void 0:f.getAttribute("data-test-id"))==="account-link"&&c)return!1;a()}}return(d,h)=>{const f=cs,b=Q,p=mt,A=rs;return r(),g("ul",{onClick:m,class:"mb-0 mt-auto flex flex-col gap-4 px-6 pb-10 pt-4"},[t("li",null,[i(b,{to:"/c/klantenservice",class:"flex h-6 items-center gap-3"},{default:$(()=>[i(f,{class:"h-4 w-4"}),t("span",null,E(d.$t("navigation.service")),1)]),_:1})]),t("li",null,[i(b,{to:"/account",class:"flex h-6 items-center gap-3"},{default:$(()=>[i(p,{class:"h-4 w-4"}),t("span",null,E(d.$t("navigation.account")),1)]),_:1})]),t("li",null,[i(b,{to:"/winkels",class:"flex h-6 items-center gap-3"},{default:$(()=>[i(A,{class:"h-4 w-4"}),t("span",null,E(d.$t("navigation.stores")),1)]),_:1})])])}}}),nn={};function on(e,u){return r(),L(Yt,{"enter-class":"-translate-y-full","enter-to-class":"translate-y-0","enter-active-class":"transform transition duration-500 ease-in-out","leave-class":"translate-y-0","leave-to-class":"-translate-y-full","leave-active-class":"transform transition duration-0 ease-in-out"},{default:$(()=>[se(e.$slots,"default")]),_:3})}const an=ot(nn,[["render",on]]),ln={class:"flex h-full flex-col bg-white clip-path-inset md:w-3/5 lg:w-6/12"},cn={class:"hidden"},rn={for:"search",class:"flex h-10 w-10 items-center justify-center"},un={class:"absolute inset-1/2 z-20 h-2 w-2 translate-x-[2px] translate-y-[-4px] rounded-full bg-brand-red"},dn={class:"flex grow flex-col"},mn={class:"grow px-6 pb-8 pt-0"},fn="header-search",hn=N({__name:"MobileNavigation",props:{rootCategories:{type:Array,default:()=>[]},fetching:{type:Boolean,required:!0},activeCategory:{type:Object,default:void 0},activeSubCategories:{type:Array,default:void 0},isCms:{type:Boolean,default:!1}},emits:["setActiveCategory","close"],setup(e,{emit:u}){const s=e,c=u,{xl:l}=ke(),n=O(()=>s.activeCategory!==void 0&&!s.isCms),{activeCategory:v,activeSubCategories:a}=es(s),m=k=>{c("setActiveCategory",k)},{closeSideNavigation:d,isSideNavigationOpen:h,setMobileSearchIsActive:f,closeAccountFlyout:b}=oe(),{search:p,searchQuery:A,resetSearch:S,pending:M}=ds({params:{with:{products:{attributes:{withKey:["color","brand","name"]}},categories:{parents:"all",children:10}}},key:fn}),{count:C}=Re(),T=()=>{c("close"),S(),b(),d(),f(!1)},P=O(()=>{var k;return(((k=A.value)==null?void 0:k.length)||0)>=pt}),q=lt({delay:ht},async()=>{if(!P.value)return M.value=!1;await p({term:A.value})});return dt(()=>{T()}),Y(A,()=>{M.value=!0,q()}),(k,_)=>{const z=Ne,w=Le,R=rt,F=Q,V=vt,W=gt,D=_t,ee=sn,J=an;return r(),L(J,null,{default:$(()=>[o(h)?(r(),g("nav",{key:0,class:x(["fixed inset-0 z-50 h-screen overflow-hidden overflow-y-auto overscroll-none bg-white text-base md:bg-black/5",{"animate-pulse":e.fetching}])},[t("div",ln,[t("div",{onClick:_[0]||(_[0]=(...te)=>k.click&&k.click(...te)),class:"container flex h-[50px] items-center justify-between border-b"},[t("button",{type:"button",class:"flex w-10 flex-col items-center justify-center lowercase",onClick:T},[i(z,{class:"h-4 w-4"}),t("span",cn,E(k.$t("global.close")),1)]),t("label",rn,[i(w,{class:"h-4 w-4"})]),i(F,{to:"/wishlist",class:"relative flex h-10 w-10 items-center justify-center",onClick:T},{default:$(()=>[i(R,{class:"h-[16px] w-[19px]"}),me(t("div",un,null,512),[[xe,o(C)]])]),_:1}),i(V,{class:"h-10 w-10"}),se(k.$slots,"basket")]),t("div",dn,[t("div",mn,[i(W,{"active-category":o(v),categories:e.rootCategories,fetching:e.fetching,isCms:e.isCms,class:"mb-4","onMouseenter:item":m},null,8,["active-category","categories","fetching","isCms"]),n.value?(r(),L(D,{key:0,"active-category":o(v),"root-categories":e.rootCategories,categories:o(a),"onMouseenter:item":m},null,8,["active-category","root-categories","categories"])):I("",!0)])]),o(l)?I("",!0):(r(),L(ee,{key:0}))])],2)):I("",!0)]),_:3})}}}),pn={class:"relative inline-flex translate-y-1 items-center justify-center justify-self-start"},gn={class:"normal-case leading-none"},vn={class:"contents items-center justify-self-end md:flex md:gap-6"},_n={class:"absolute bottom-[2px] right-0 z-20 h-2 w-2 rounded-full bg-brand-red"},bn={class:"relative hidden border-t border-gray-200 bg-white xl:block"},yn={class:"container"},xn={class:"ml-auto flex h-8 w-1/2 items-center justify-end gap-8 lg:gap-12"},kn="home-redirect",wn=N({__name:"AppHeader",props:{rootCategories:{type:[Array],default:()=>[]},fetchingCategories:{type:Boolean,default:()=>!1},headerData:{type:Object,default:()=>({})}},setup(e){const u=e,{count:s}=Re(),{isOpen:c}=at("Search"),l=ct(),{isSideNavigationOpen:n,closeSideNavigation:v,setMobileSearchIsActive:a,toggleSideNavigation:m,closeAccountFlyout:d}=oe(),h=B(!0),{isCms:f,activeCategory:b,activeSubCategories:p,setActiveCategory:A}=Nt(),{countWithoutSoldOutItems:S,data:M}=ut(),C=B(!1);function T(){document.body.scrollTop>32||document.documentElement.scrollTop>32?C.value=!0:C.value=!1}const P=Rt(kn,{path:"/",maxAge:100*60*60*24*365}),q=()=>{d(),v(),a(!1)};return we(()=>{var _;window.addEventListener("scroll",T);const k=P.value||"";b.value||(b.value=(_=u.rootCategories)==null?void 0:_.find(z=>k===z.path))}),ts(()=>{window.removeEventListener("scroll",T)}),l.beforeEach((k,_,z)=>{var R;(R=document.getElementById("header"))==null||R.focus(),d(),n.value&&m();const w=u.rootCategories.find(F=>k.fullPath.startsWith(F.path));w!=null&&w.path&&(P.value=w.path),k.fullPath==="/?home"&&(f.value=!0),k.matched[0].path==="/c/*"&&(f.value=!0),z()}),(k,_)=>{var ae,le,ie,ce,y,U,X,pe,ge,ve,_e,be,ye,re;const z=Ne,w=Wt,R=gt,F=ss,V=Le,W=rt,D=Q,ee=vt,J=is,te=Ys,fe=_t,he=hn;return r(),g("header",{id:"header",tabindex:"1",class:x(["sticky left-0 z-50 flex w-screen flex-none flex-col text-sm outline-none lg:shadow-sm xl:border-b xl:shadow-none",[h.value?"top-0":"top-0 md:-top-8"]])},[(ae=e.headerData)!=null&&ae.usps&&h.value&&!C.value?(r(),g("div",{key:0,class:x(["bg-gray-200",{"text-black":((ce=(ie=(le=e.headerData)==null?void 0:le.theme)==null?void 0:ie.fields)==null?void 0:ce.color)==="Light","text-white":((X=(U=(y=e.headerData)==null?void 0:y.theme)==null?void 0:U.fields)==null?void 0:X.color)!=="Light"}])},[i(It,{data:e.headerData.usps,class:"relative flex items-center"},{default:$(()=>[t("button",{type:"button",class:"btn btn-reset btn-icon absolute right-0 top-0 h-8 w-8 md:hidden",onClick:_[0]||(_[0]=j=>h.value=!1)},[i(z,{class:"h-3 w-3"})])]),_:1},8,["data"])],2)):I("",!0),t("div",{class:x(["relative md:bg-white",(C.value,"")])},[t("div",{class:x(["container items-center border-b border-gray-200 bg-white md:border-b-0",C.value?"flex justify-between py-3.5 shadow-sm md:grid md:grid-cols-3-justified md:gap-3 md:py-4":"grid grid-cols-3-justified gap-3 py-3.5"])},[t("div",pn,[t("button",{class:"btn-reset flex h-7 w-8 flex-col items-center justify-items-center gap-1 text-2xs xl:hidden",type:"button","data-test-id":"side-navigation-button",onClick:_[1]||(_[1]=(...j)=>o(m)&&o(m)(...j))},[o(n)?(r(),L(z,{key:0,class:"h-4 w-4"})):(r(),L(w,{key:1,class:"h-[9px] w-[15px]"})),t("span",gn,E(k.$t("navigation.navigation")),1)]),i(R,{class:"!hidden xl:!flex","active-category":o(b),categories:e.rootCategories,fetching:e.fetchingCategories,isCms:o(f),"onMouseenter:item":o(A)},null,8,["active-category","categories","fetching","isCms","onMouseenter:item"])]),t("div",{class:x(["flex items-center justify-center justify-self-center",C.value?"hidden md:flex":""])},[i(F,{class:"h-[21px] w-[155px] md:h-[31px] md:w-[227px]","link-to":"/?home"})],2),t("div",vn,[t("label",{for:"search",class:x(["items-center justify-center",C.value?"flex md:hidden":"hidden"])},[i(V,{class:"h-4 w-4"})],2),i(D,{to:"/wishlist",class:x(["relative items-center justify-center",C.value?"flex":"hidden md:flex"])},{default:$(()=>[i(W,{class:"h-[16px] w-[19px]"}),me(t("div",_n,null,512),[[xe,o(s)]])]),_:1},8,["class"]),i(ee,{class:x([C.value?"":"hidden md:block",o(n)?"hidden":""])},null,8,["class"]),i(J,{class:"justify-self-end",currency:(pe=o(M))==null?void 0:pe.currencyCode,cost:(ge=o(M))==null?void 0:ge.cost,count:o(S)||0},null,8,["currency","cost","count"])])],2),t("div",{class:x(["fixed inset-0 z-10 hidden bg-black/10",{"md:block":o(c)}]),onClick:_[2]||(_[2]=j=>c.value=!1)},null,2),t("div",{class:x(["block border-b border-gray-200 bg-white lg:container md:z-10 lg:pointer-events-none lg:absolute lg:inset-x-0 lg:top-1/2 lg:flex lg:-translate-y-1/2 lg:justify-end lg:border-none lg:bg-transparent lg:p-0 lg:pr-[144px]",C.value&&!o(c)?"opacity-0 overflow-hidden border-b-transparent md:opacity-100 md:block md:overflow-visible md:border-y md:border-gray-200":""])},[i(te,{class:x(["lg:pointer-events-auto lg:relative",(C.value&&!o(c),"")])},null,8,["class"])],2)],2),me(t("div",bn,[(ve=o(p))!=null&&ve.length?(r(),L(fe,{key:0,categories:o(p)},null,8,["categories"])):I("",!0)],512),[[xe,((_e=o(p))==null?void 0:_e.length)&&!(k._.provides[Lt]||k.$route).fullPath.includes("/?home")]]),t("div",{class:x(["pointer-events-none absolute right-0 top-0 hidden w-full",C.value?"xl:hidden":"xl:block"])},[t("div",yn,[t("div",xn,[(r(!0),g(Z,null,G((re=(ye=(be=e.headerData)==null?void 0:be.headerContentLinks)==null?void 0:ye.fields)==null?void 0:re.navigation,j=>{var K;return r(),L(D,{key:j.sys.id,to:(K=j==null?void 0:j.fields)==null?void 0:K.url,class:"link-no-underline pointer-events-auto"},{default:$(()=>{var ue;return[H(E((ue=j==null?void 0:j.fields)==null?void 0:ue.name),1)]}),_:2},1032,["to"])}),128))])])],2),i(he,{class:"xl:hidden",fetching:e.fetchingCategories,"root-categories":e.rootCategories,"active-category":o(b),"active-sub-categories":o(p),isCms:o(f),onSetActiveCategory:o(A)},{basket:$(()=>{var j,K;return[i(J,{class:"h-10 w-10",currency:(j=o(M))==null?void 0:j.currencyCode,cost:(K=o(M))==null?void 0:K.cost,count:o(S)||0,onClick:q},null,8,["currency","cost","count"])]}),_:1},8,["fetching","root-categories","active-category","active-sub-categories","isCms","onSetActiveCategory"])],2)}}}),Cn={class:"bg-white px-4 pb-4 pt-5 sm:p-6 sm:pb-4"},$n={class:"sm:flex sm:items-start"},Sn={class:"text-left"},An={id:"modal-title",class:"text-base font-bold"},jn={key:0},Nn={key:1},Rn={class:"mt-2 border-t border-gray-200 pt-2"},In={key:0,class:"block"},Ln={key:1},Mn=t("p",{class:"block"}," Je kunt jouw cookievoorkeuren hieronder aanpassen. Klik op bewaar en ga verder op onze webshop. Voor meer informatie verwijzen we u graag naar ons cookiebeleid. ",-1),Tn={class:"mt-8 grid space-y-3"},Bn={class:"relative flex items-start"},Pn={class:"mt-1 flex h-5 items-center"},On=["checked"],zn=t("span",{class:"block font-bold"},"Marketingcookies toestaan",-1),Dn=t("span",{id:"cookies-marketing-description",class:"block"}," Aanbevolen voor het optimaal functioneren van de site en het verbeteren van het gebruiksgemak. Deze cookies worden gebruikt om je op basis van interesses relevante informatie en advertentie aan te bieden op sites van derden. ",-1),En=[zn,Dn],Un={class:"relative flex items-start"},qn={class:"mt-1 flex h-5 items-center"},Fn=["checked"],Vn=t("span",{class:"block font-bold"},"Marketingcookies weigeren",-1),Hn=t("span",{id:"cookies-functional-description",class:"block"},"Je krijgt geen relevante aanbiedingen en producten te zien. Bovendien kunt u de functies van de site mogelijk niet optimaal benutten. ",-1),Qn=[Vn,Hn],Wn={class:"flex justify-between gap-4 bg-gray-50 p-4 md:justify-end md:p-6"},st="xsarusCookieMessage",Se="xsarusCookieSettings",Kn="has-cookie-consent",Zn=N({__name:"CookieModal",setup(e){const{trackCookiePreference:u}=je(),s=B(!1),c=B(!1),l=B("enabled"),n=B(!0),v=()=>{c.value=!0},a=()=>{l.value="enabled",n.value=!0},m=()=>{l.value="disabled",n.value=!1},d=()=>{s.value=!1,$e(st,"hide",100),$e(Se,l.value,100),$e(Kn,n.value,100),u(l.value)};return we(()=>{s.value=Ce(st)!=="hide"}),(h,f)=>{const b=Mt;return r(),g("div",{class:x([s.value?"block":"hidden","fixed bottom-0 z-50 m-4 overflow-hidden border border-solid bg-white text-left shadow-lg transition-all sm:w-full sm:max-w-lg md:m-8"])},[t("div",Cn,[t("div",$n,[t("div",Sn,[t("h3",An,[c.value?(r(),g("span",Nn,"Cookie voorkeuren Van Tilburg")):(r(),g("span",jn,"Van Tilburg maakt gebruik van cookies"))]),t("div",Rn,[c.value?(r(),g("div",Ln,[Mn,t("div",Tn,[t("div",Bn,[t("div",Pn,[t("input",{id:"cookies-marketing",name:"cookie_setting[]",type:"radio","aria-describedby":"cookies-marketing-description",checked:o(Ce)(Se)!=="disabled"},null,8,On)]),t("label",{for:"cookies-marketing",class:"ml-3",onClick:a},En)]),t("div",Un,[t("div",qn,[t("input",{id:"cookies-functional",name:"cookie_setting[]",type:"radio","aria-describedby":"cookies-functional-description",checked:o(Ce)(Se)==="disabled"},null,8,Fn)]),t("label",{for:"cookies-functional",class:"ml-3",onClick:m},Qn)])])])):(r(),g("p",In,[H(" Om je beter en persoonlijker te helpen, gebruiken wij cookies. Daarnaast maken we gebruik van cookies voor het verzamelen van informatie door derden voor marketing doeleinden. Door verder gebruik te maken van onze website ga je hiermee akkoord. Meer weten? "),i(b,{to:"/c/cookies/"},{default:$(()=>[H(" Bekijk ons cookiebeleid. ")]),_:1}),H(" Of pas de "),t("button",{type:"button",class:"underline underline-offset-4 hover:underline",onClick:f[0]||(f[0]=p=>v())}," instellingen "),H(" aan. ")]))])])])]),t("div",Wn,[t("button",{type:"button",class:"btn btn-cta btn-small",onClick:f[1]||(f[1]=p=>d())}," Ga verder ")])],2)}}}),Gn={class:"fixed bottom-1/2 right-0 z-20 -translate-y-1/2"},Jn=t("span",{class:"absolute right-0 top-0 my-auto h-2.5 w-2.5 rounded-full bg-green-400"},null,-1),Xn="robinhq-widget",Yn=N({__name:"CmRobin",setup(e){const{triggerChat:u,isOnline:s}=Tt(),c=B(""),l=B("");Y(u,a=>{a&&(v(),u.value=!1)}),we(()=>{n()}),dt(()=>{var a,m;(a=document==null?void 0:document.getElementById(Xn))==null||a.remove(),(m=document==null?void 0:document.getElementById("robin_tab"))==null||m.remove(),window.__robin&&delete window.__robin,window.robin_settings&&delete window.robin_settings});function n(){window.robin_settings={callback:(m,d)=>{m==="load"&&d&&setTimeout(()=>{s.value=d.presence.toLowerCase()==="online"},10),m==="user"&&d&&(c.value=d.name,l.value=d.avatar128)}};const a=document.createElement("script");a.async=!0,a.src="https://selfservice.robinhq.com/external/robin/ie85749n.js",document.body.appendChild(a)}function v(){window.__robin&&window.__robin.show()}return(a,m)=>{const d=Bt,h=Q;return r(),g("div",Gn,[o(s)?(r(),g("button",{key:0,id:"robin-button",type:"button",class:"absolute right-4 flex h-10 w-10 items-center justify-center rounded-full bg-gray-100 text-xs shadow",onClick:v},[Jn,i(d,{class:"h-[18px] w-[18px]"})])):o(s)?I("",!0):(r(),L(h,{key:1,class:"absolute right-4 flex h-10 w-10 items-center justify-center rounded-full bg-gray-100 text-xs shadow",to:"/c/klantenservice"},{default:$(()=>[i(d,{class:"h-[18px] w-[18px]"})]),_:1}))])}}}),bt=B(null);function eo(e){bt.value=e}function _o(e){var u,s;return(s=(u=bt.value)==null?void 0:u.fields.content.find(c=>c.fields.slug===e))==null?void 0:s.fields}const to={class:"flex min-h-screen flex-col font-body text-base/6 text-black antialiased anchor-scrolling-none"},so=t("div",{id:"backdrop"},null,-1),no=N({__name:"default",async setup(e){var R,F,V,W,D,ee,J,te,fe,he,ae,le,ie,ce;let u,s;[u,s]=tt(()=>Ye("data",async y=>{var U;(U=y==null?void 0:y.payload)==null||delete U.path})),await u,s();const{isSideNavigationOpen:c,isModalOpen:l}=oe(),{trackingEvents:n,listenToUserItemsChanges:v,listenToCustomerDataChanges:a}=je();v(),a();const{$config:m,$currentShop:d,$i18n:h}=Vt(),{handled:f,unhandled:b}=Pt(),{data:p,fetch:A,fetching:S}=Ot({params:{path:"/",children:3},key:"category-navigation"}),M=Re(),C=ut(),T=zt("layout"),{fullPath:P}=it(),q=Dt(Et([m.public.baseUrl,m.public.basePath||"",P].join("")));Ut(),[u,s]=tt(async()=>Ye(async()=>{await Promise.all([A(),b(()=>T.fetchBySlug("default",3))])},"$i9bCpVDU6M")),await u,s(),ns();const k=O(()=>{var y;return(y=p.value)==null?void 0:y.categories}),_=O(()=>T.data.value),z=((W=(V=(F=(R=_==null?void 0:_.fields)==null?void 0:R.footerNavigation1.fields.navigation.find(y=>{var U,X;return(X=(U=y==null?void 0:y.fields)==null?void 0:U.url)==null?void 0:X.includes("mailto:")}))==null?void 0:F.fields)==null?void 0:V.url)==null?void 0:W.replace("mailto:",""))||"",w=((ae=(he=(fe=(te=(J=(ee=(D=_==null?void 0:_.fields)==null?void 0:D.footerNavigation1)==null?void 0:ee.fields)==null?void 0:J.navigation)==null?void 0:te.find(y=>y==null?void 0:y.fields.url.includes("tel:")))==null?void 0:fe.fields)==null?void 0:he.url)==null?void 0:ae.replace("tel:",""))||"";return eo((le=_.value)==null?void 0:le.fields.navigationLevel2),we(async()=>{const y=[];C.data.value||y.push(f(()=>C.fetch())),M.data.value||y.push(f(()=>M.fetch())),y.length&&await Promise.all(y),n.trackShopInit()}),Y([c,l],()=>{et({htmlAttrs:{tagDuplicateStrategy:"replace",class:c.value||l.value?"overflow-hidden h-full":""},bodyAttrs:{tagDuplicateStrategy:"replace",class:c.value||l.value?"overflow-hidden h-full":""}})}),qt(()=>{const y=Ht({name:"Van Tilburg",url:m.public.baseUrl,logo:m.public.baseUrl+"/van-tilburg.svg",image:" ",email:z,telephone:w,address:{streetAddress:"Laar 8",addressLocality:"Nistelrode",addressCountry:"NL",addressRegion:" ",postalCode:"5388 HE"}}),U=Qt({url:m.public.baseUrl});return[y,U]}),et({titleTemplate:y=>y?h.t("global.title_template",{title:y}):h.t("global.title_default"),htmlAttrs:{lang:(ce=(ie=d==null?void 0:d.locale)==null?void 0:ie.split("-"))==null?void 0:ce[0]},link:[{rel:"preconnect",href:"//www.googletagmanager.com"},{rel:"canonical",hid:"canonical",href:q}]}),(y,U)=>{var re,j,K,ue,Me,Te;const X=wn,pe=us,ge=os,ve=Zn,_e=Yn,be=as,ye=ft;return r(),g("div",to,[i(X,{"fetching-categories":o(S),"root-categories":k.value,"header-data":{usps:(j=(re=_.value)==null?void 0:re.fields)==null?void 0:j.usps,theme:(ue=(K=_.value)==null?void 0:K.fields)==null?void 0:ue.theme,headerContentLinks:(Te=(Me=_.value)==null?void 0:Me.fields)==null?void 0:Te.headerContentLinks}},null,8,["fetching-categories","root-categories","header-data"]),i(pe),se(y.$slots,"default",{class:"min-h-screen flex-1"}),i(Ft,{class:"flex-none",ssr:""},{lazy:$(({visible:oo})=>{var Be,Pe,Oe,ze,De,Ee,Ue,qe,Fe,Ve,He,Qe,We,Ke,Ze,Ge,Je,Xe;return[i(ge,{data:{theme:(Pe=(Be=_.value)==null?void 0:Be.fields)==null?void 0:Pe.theme,socialMedia:(ze=(Oe=_.value)==null?void 0:Oe.fields)==null?void 0:ze.socialMedia,paymentMethods:(Ee=(De=_.value)==null?void 0:De.fields)==null?void 0:Ee.paymentMethods,legal:(qe=(Ue=_.value)==null?void 0:Ue.fields)==null?void 0:qe.legal,microcopy:(Ve=(Fe=_.value)==null?void 0:Fe.fields)==null?void 0:Ve.microcopy,footerNavigation1:(Qe=(He=_.value)==null?void 0:He.fields)==null?void 0:Qe.footerNavigation1,footerNavigation2:(Ke=(We=_.value)==null?void 0:We.fields)==null?void 0:Ke.footerNavigation2,footerNavigation3:(Ge=(Ze=_.value)==null?void 0:Ze.fields)==null?void 0:Ge.footerNavigation3,footerNavigation4:(Xe=(Je=_.value)==null?void 0:Je.fields)==null?void 0:Xe.footerNavigation4,checkout:!1}},null,8,["data"])]}),_:1}),i(ve),i(_e),i(ye,null,{default:$(()=>[i(be)]),_:1}),so])}}}),bo=Object.freeze(Object.defineProperty({__proto__:null,default:no},Symbol.toStringTag,{value:"Module"}));export{sn as _,bo as a,_o as g,ds as u};