const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Cco8IZEG.js","./DB-BdW1A.js","./DokyoHAC.js","./swiper-vue.BV_8Ey50.css","./entry.B1ppywWU.css","./1Kstsjnh.js","./CWZwcrWm.js","./Bz4IcuNm.js","./C53zYwgM.js","./BrLWTrvd.js","./BaUG_RPv.js","./DlAKrPhM.js","./BXHfLeI_.js","./DsfFFR8H.js","./CVWHaK2P.js","./DwSmQj2S.js","./BlE_Hled.js","./D7MfkRLW.js","./C2ORwYxZ.js","./CkhvV11h.js","./CPFhVfwX.js","./OqHy3vAx.js"])))=>i.map(i=>d[i]);
import{at as de,ci as _t,aY as ke,cj as tt,Q as ne,ck as oe,cl as bt,d as H,B as st,O as yt,aW as xt,Y as kt,C as wt,Z as nt,ai as Ct,aA as $t,v as je,bf as ot,$ as Ne,u as at,i as lt,cm as St,a5 as Re,aR as it,ap as At,a2 as ct,as as jt,cn as Nt,P as Rt,co as Ce,cp as $e,c1 as It,cf as Lt,aV as Mt,a as Tt,cq as Ot,a6 as Pt,cr as Bt,ar as zt,S as Dt,a7 as Et,bD as Ut,b as Xe,bm as Ft,g as qt,cs as Vt,ct as Ht}from"./DB-BdW1A.js";import Wt from"./1Kstsjnh.js";import{j as N,k as B,L as r,O as g,H as J,Y,V as y,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 V,a as O,b as X,al as Qt,m as Kt,aw as Jt,ay as Yt,G as Zt,$ as Gt,Z as Xt,o as rt,z as we,C as es,a4 as ts}from"./DokyoHAC.js";import{_ as ss,u as ns,b as os,a as as}from"./CWZwcrWm.js";import Le from"./BrLWTrvd.js";import ut from"./BaUG_RPv.js";import{_ as ls}from"./DlAKrPhM.js";import{_ as dt}from"./D7MfkRLW.js";import{a as is}from"./C2ORwYxZ.js";import cs from"./C53zYwgM.js";import rs from"./CPFhVfwX.js";import{_ as us}from"./OqHy3vAx.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=_t("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 mt=500,ft=3,Ae=6,ms=["href","onClick"],ht=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=B(()=>s.activeCategory!==void 0&&!s.isCms);function v(a,m,d){l("mouseenter:item",m),!c.value&&m.children||tt(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:y(["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(J,null,Y(e.categories,h=>{var f,b;return r(),g("a",{key:`nav_link_${h.id}`,class:y(["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:y(["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=bt;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:y(["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:y(["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),pt=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=ut,d=H,h=ls,f=dt,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=yt;return r(),g("div",bs,[t("div",ys,[(r(),g(J,null,Y(3,c=>t("div",{key:c,class:"mt-6 flex items-center"},[i(s,{class:"h-16","full-width":"",type:"headline"})])),64))])])}const ks=st(_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=H;return r(),g("div",null,[ws,t("ul",Cs,[(r(!0),g(J,null,Y(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:$(()=>[V(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=H;return r(),g("div",null,[As,t("ul",js,[(r(!0),g(J,null,Y(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:$(()=>[V(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),Os={class:"list-none"},Ps={class:"border-b border-gray-300"},Bs=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=H;return r(),g("div",null,[Ts,t("ul",Os,[(r(!0),g(J,null,Y(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:$(()=>[V(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"},Fs=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=H,a=xt;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(J,null,Y(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))])])}}}),qs={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=Bs,m=Fs;return r(),g("div",qs,[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)])}}}),Ws={id:"search-results"},Qs={key:1,class:"flex grow flex-col"},Ks={key:0,class:"mx-auto w-60 text-center text-sm font-normal leading-normal"},Js=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=kt;return r(),g("div",Ws,[i(a,null,{default:$(()=>[e.fetching?(r(),L(n,{key:0})):(r(),g("div",Qs,[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})])}}}),Ys=()=>{const e=O({term:"empty",productLimit:0}),u=O(""),s=()=>{u.value="",c.value=null},{data:c,fetch:l,pending:n}=wt("searchSuggestions","searchSuggestions",e,{immediate:!1}),v=async({term:p,productLimit:A})=>{e.value={term:p,productLimit:A},await l()},a=B(()=>{var p;return((p=c.value)==null?void 0:p.productCount)||0}),m=B(()=>{var p;return((p=c.value)==null?void 0:p.products)||[]}),d=B(()=>{var p;return((p=c.value)==null?void 0:p.brands)||[]}),h=B(()=>{var p;return((p=c.value)==null?void 0:p.categories)||[]}),f=B(()=>{var p;return((p=c.value)==null?void 0:p.content)||[]}),b=B(()=>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:B(()=>b.value===0),totalCount:b,pending:n}},Zs=t("div",{class:"text-4xl"},"Zoeken",-1),Gs=["placeholder"],Xs=N({__name:"HeaderSearch",setup(e){const{toggle:u,isOpen:s}=nt("Search"),{getSearchRoute:c}=Ct(),{search:l,searchQuery:n,resetSearch:v,pending:a,brands:m,content:d,products:h,productCount:f,categories:b,totalCount:p}=Ys(),A=$t(),{trackSearchSuggestionClick:S,trackSearch:M}=je(),w=O(!1);X(s,k=>{k||v()}),X(n,k=>{n.value=k.toLowerCase()});const T=ot({delay:mt},function(k){k===""||k.length<ft?w.value=!1:(w.value=!0,l({term:n.value,productLimit:Ae}))});X(n,()=>{const{value:k=""}=n;if(!k)return v();T(n.value)});const P=()=>{v(),s.value=!1,w.value=!1},U=k=>{S(n.value,k),P()},x=()=>{M({searchAction:"search_button",searchTerm:n.value,searchDestination:A(c(n.value))||""}),window.location.href=A(c(n.value))},_=B(()=>p.value),z=k=>{k.target.id==="search"||k.target.closest("#search")||document.activeElement.blur()};return(k,R)=>{const F=Ne,q=Le,W=Js;return r(),g("div",{class:y(["",{"fixed inset-0 z-60 flex flex-col bg-white pb-0 lg:relative lg:py-0":o(s)}]),onTouchstart:z,onKeydown:Jt(P,["esc"])},[t("div",{class:y(["bg-gray-100 px-6 pb-4 pt-6",{"flex flex-row items-center lg:hidden":o(s),hidden:!o(s)}])},[Zs,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:y(["flex items-center justify-center",{"p-6 lg:border-none lg:p-0":o(s),"gap-2 lg:p-0":!o(s)}]),onSubmit:Ie(x,["prevent","stop"])},[t("label",{for:"search",class:y(["lg:hidden",{hidden:o(s)}])},[i(q,{class:"size-[16px]"})],2),t("div",{class:y({"relative w-full":o(s),"w-52 lg:w-full":!o(s)})},[me(t("input",{id:"search","onUpdate:modelValue":R[1]||(R[1]=D=>Kt(n)?n.value=D:null),type:"search",name:"term",enterkeyhint:"search",placeholder:k.$t("search.placeholder"),autocomplete:"off",class:y(["",{"h-10 border border-black text-left":o(s)}]),onFocusin:R[2]||(R[2]=D=>s.value=!0)},null,42,Gs),[[Qt,o(n)]]),t("button",{type:"submit",class:y(["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(q,{class:"size-4"})],2)],2)],34),o(s)&&w.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":U},null,8,["brands","content","categories","fetching","product-suggestions","results-count","product-count","search-term"])):I("",!0)],34)}}}),en=Zt(()=>St(()=>import("./Cco8IZEG.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"],gt=N({__name:"NavigationLevel2",props:{categories:{type:[Array],required:!0}},setup(e){const u=e,{xl:s}=ke(),c=at();lt();const l=O(void 0),n=O(void 0);Yt(()=>v()),X(()=>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||tt(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(J,null,Y(e.categories,S=>{var M,w,T,P,U,x;return r(),g("li",{key:S.path},[t("a",{href:S.path,class:y(["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!==((w=l.value)==null?void 0:w.id)}]),onMouseenter:_=>m(S),onClick:Ie(_=>h(_,S,S.path),["prevent","stop"])},[V(E(S.name)+" ",1),i(p,{class:"ml-auto h-3 w-3.5 xl:hidden"})],42,tn),i(A,{class:y(["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!==((U=n.value)==null?void 0:U.id),"xl:block":S.id===((x=n.value)==null?void 0:x.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=H,p=ut,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(Gt,{"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=st(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=B(()=>s.activeCategory!==void 0&&!s.isCms),{activeCategory:v,activeSubCategories:a}=Xt(s),m=x=>{c("setActiveCategory",x)},{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:w}=Re(),T=()=>{c("close"),S(),b(),d(),f(!1)},P=B(()=>{var x;return(((x=A.value)==null?void 0:x.length)||0)>=ft}),U=ot({delay:mt},async()=>{if(!P.value)return M.value=!1;await p({term:A.value})});return rt(()=>{T()}),X(A,()=>{M.value=!0,U()}),(x,_)=>{const z=Ne,k=Le,R=it,F=H,q=pt,W=ht,D=gt,ee=sn,Z=an;return r(),L(Z,null,{default:$(()=>[o(h)?(r(),g("nav",{key:0,class:y(["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)=>x.click&&x.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(x.$t("global.close")),1)]),t("label",rn,[i(k,{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(w)]])]),_:1}),i(q,{class:"h-10 w-10"}),se(x.$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}=nt("Search"),l=lt(),{isSideNavigationOpen:n,closeSideNavigation:v,setMobileSearchIsActive:a,toggleSideNavigation:m,closeAccountFlyout:d}=oe(),h=O(!0),{isCms:f,activeCategory:b,activeSubCategories:p,setActiveCategory:A}=At(),{countWithoutSoldOutItems:S,data:M}=ct(),w=O(!1);function T(){document.body.scrollTop>32||document.documentElement.scrollTop>32?w.value=!0:w.value=!1}const P=jt(kn,{path:"/",maxAge:100*60*60*24*365}),U=()=>{d(),v(),a(!1)};return we(()=>{var _;window.addEventListener("scroll",T);const x=P.value||"";b.value||(b.value=(_=u.rootCategories)==null?void 0:_.find(z=>x===z.path))}),es(()=>{window.removeEventListener("scroll",T)}),l.beforeEach((x,_,z)=>{var R;(R=document.getElementById("header"))==null||R.focus(),d(),n.value&&m();const k=u.rootCategories.find(F=>x.fullPath.startsWith(F.path));k!=null&&k.path&&(P.value=k.path),x.fullPath==="/?home"&&(f.value=!0),x.matched[0].path==="/c/*"&&(f.value=!0),z()}),(x,_)=>{var ae,le,ie,ce,C,Q,G,pe,ge,ve,_e,be,ye,re;const z=Ne,k=Wt,R=ht,F=ss,q=Le,W=it,D=H,ee=pt,Z=is,te=Xs,fe=gt,he=hn;return r(),g("header",{id:"header",tabindex:"1",class:y(["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&&!w.value?(r(),g("div",{key:0,class:y(["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":((G=(Q=(C=e.headerData)==null?void 0:C.theme)==null?void 0:Q.fields)==null?void 0:G.color)!=="Light"}])},[i(Nt,{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:y(["relative md:bg-white",(w.value,"")])},[t("div",{class:y(["container items-center border-b border-gray-200 bg-white md:border-b-0",w.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(k,{key:1,class:"h-[9px] w-[15px]"})),t("span",gn,E(x.$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:y(["flex items-center justify-center justify-self-center",w.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:y(["items-center justify-center",w.value?"flex md:hidden":"hidden"])},[i(q,{class:"h-4 w-4"})],2),i(D,{to:"/wishlist",class:y(["relative items-center justify-center",w.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:y([w.value?"":"hidden md:block",o(n)?"hidden":""])},null,8,["class"]),i(Z,{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:y(["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:y(["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]",w.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:y(["lg:pointer-events-auto lg:relative",(w.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)&&!(x._.provides[Rt]||x.$route).fullPath.includes("/?home")]]),t("div",{class:y(["pointer-events-none absolute right-0 top-0 hidden w-full",w.value?"xl:hidden":"xl:block"])},[t("div",yn,[t("div",xn,[(r(!0),g(J,null,Y((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[V(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(Z,{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:U},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"},On={class:"relative flex items-start"},Pn={class:"mt-1 flex h-5 items-center"},Bn=["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"},Fn={class:"mt-1 flex h-5 items-center"},qn=["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),Wn=[Vn,Hn],Qn={class:"flex justify-between gap-4 bg-gray-50 p-4 md:justify-end md:p-6"},et="xsarusCookieMessage",Se="xsarusCookieSettings",Kn="has-cookie-consent",Jn=N({__name:"CookieModal",setup(e){const{trackCookiePreference:u}=je(),s=O(!1),c=O(!1),l=O("enabled"),n=O(!0),v=()=>{c.value=!0},a=()=>{l.value="enabled",n.value=!0},m=()=>{l.value="disabled",n.value=!1},d=()=>{s.value=!1,$e(et,"hide",100),$e(Se,l.value,100),$e(Kn,n.value,100),u(l.value)};return we(()=>{s.value=Ce(et)!=="hide"}),(h,f)=>{const b=It;return r(),g("div",{class:y([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",On,[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,Bn)]),t("label",{for:"cookies-marketing",class:"ml-3",onClick:a},En)]),t("div",Un,[t("div",Fn,[t("input",{id:"cookies-functional",name:"cookie_setting[]",type:"radio","aria-describedby":"cookies-functional-description",checked:o(Ce)(Se)==="disabled"},null,8,qn)]),t("label",{for:"cookies-functional",class:"ml-3",onClick:m},Wn)])])])):(r(),g("p",In,[V(" 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:$(()=>[V(" Bekijk ons cookiebeleid. ")]),_:1}),V(" Of pas de "),t("button",{type:"button",class:"underline underline-offset-4 hover:underline",onClick:f[0]||(f[0]=p=>v())}," instellingen "),V(" aan. ")]))])])])]),t("div",Qn,[t("button",{type:"button",class:"btn btn-cta btn-small",onClick:f[1]||(f[1]=p=>d())}," Ga verder ")])],2)}}}),Yn={class:"fixed bottom-1/2 right-0 z-20 -translate-y-1/2"},Zn=t("span",{class:"absolute right-0 top-0 my-auto h-2.5 w-2.5 rounded-full bg-green-400"},null,-1),Gn="robinhq-widget",Xn=N({__name:"CmRobin",setup(e){const{triggerChat:u,isOnline:s}=Lt(),c=O(""),l=O("");X(u,a=>{a&&(v(),u.value=!1)}),we(()=>{n()}),rt(()=>{var a,m;(a=document==null?void 0:document.getElementById(Gn))==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=Mt,h=H;return r(),g("div",Yn,[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},[Zn,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}))])}}}),vt=O(null);function eo(e){vt.value=e}function _o(e){var u,s;return(s=(u=vt.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,q,W,D,ee,Z,te,fe,he,ae,le,ie,ce;let u,s;const{isSideNavigationOpen:c,isModalOpen:l}=oe(),{trackingEvents:n,listenToUserItemsChanges:v,listenToCustomerDataChanges:a}=je();v(),a();const{$config:m,$currentShop:d,$i18n:h}=qt(),{handled:f,unhandled:b}=Tt(),{data:p,fetch:A,fetching:S}=Ot({params:{path:"/",children:3},key:"category-navigation"}),M=Re(),w=ct(),T=Pt("layout"),{fullPath:P}=at(),U=Bt(zt([m.public.baseUrl,m.public.basePath||"",P].join("")));Dt(),[u,s]=ts(async()=>Et(async()=>{await Promise.all([A(),b(()=>T.fetchBySlug("default",3))])},"$i9bCpVDU6M")),await u,s(),ns();const x=B(()=>{var C;return(C=p.value)==null?void 0:C.categories}),_=B(()=>T.data.value),z=((W=(q=(F=(R=_==null?void 0:_.fields)==null?void 0:R.footerNavigation1.fields.navigation.find(C=>{var Q,G;return(G=(Q=C==null?void 0:C.fields)==null?void 0:Q.url)==null?void 0:G.includes("mailto:")}))==null?void 0:F.fields)==null?void 0:q.url)==null?void 0:W.replace("mailto:",""))||"",k=((ae=(he=(fe=(te=(Z=(ee=(D=_==null?void 0:_.fields)==null?void 0:D.footerNavigation1)==null?void 0:ee.fields)==null?void 0:Z.navigation)==null?void 0:te.find(C=>C==null?void 0:C.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 C=[];w.data.value||C.push(f(()=>w.fetch())),M.data.value||C.push(f(()=>M.fetch())),C.length&&await Promise.all(C),n.trackShopInit()}),X([c,l],()=>{Xe({htmlAttrs:{tagDuplicateStrategy:"replace",class:c.value||l.value?"overflow-hidden h-full":""},bodyAttrs:{tagDuplicateStrategy:"replace",class:c.value||l.value?"overflow-hidden h-full":""}})}),Ut(()=>{const C=Vt({name:"Van Tilburg",url:m.public.baseUrl,logo:m.public.baseUrl+"/van-tilburg.svg",image:" ",email:z,telephone:k,address:{streetAddress:"Laar 8",addressLocality:"Nistelrode",addressCountry:"NL",addressRegion:" ",postalCode:"5388 HE"}}),Q=Ht({url:m.public.baseUrl});return[C,Q]}),Xe({titleTemplate:C=>C?h.t("global.title_template",{title:C}):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:U}]}),(C,Q)=>{var re,j,K,ue,Me,Te;const G=wn,pe=us,ge=os,ve=Jn,_e=Xn,be=as,ye=dt;return r(),g("div",to,[i(G,{"fetching-categories":o(S),"root-categories":x.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(C.$slots,"default",{class:"min-h-screen flex-1"}),i(Ft,{class:"flex-none",ssr:""},{lazy:$(({visible:oo})=>{var Oe,Pe,Be,ze,De,Ee,Ue,Fe,qe,Ve,He,We,Qe,Ke,Je,Ye,Ze,Ge;return[i(ge,{data:{theme:(Pe=(Oe=_.value)==null?void 0:Oe.fields)==null?void 0:Pe.theme,socialMedia:(ze=(Be=_.value)==null?void 0:Be.fields)==null?void 0:ze.socialMedia,paymentMethods:(Ee=(De=_.value)==null?void 0:De.fields)==null?void 0:Ee.paymentMethods,legal:(Fe=(Ue=_.value)==null?void 0:Ue.fields)==null?void 0:Fe.legal,microcopy:(Ve=(qe=_.value)==null?void 0:qe.fields)==null?void 0:Ve.microcopy,footerNavigation1:(We=(He=_.value)==null?void 0:He.fields)==null?void 0:We.footerNavigation1,footerNavigation2:(Ke=(Qe=_.value)==null?void 0:Qe.fields)==null?void 0:Ke.footerNavigation2,footerNavigation3:(Ye=(Je=_.value)==null?void 0:Je.fields)==null?void 0:Ye.footerNavigation3,footerNavigation4:(Ge=(Ze=_.value)==null?void 0:Ze.fields)==null?void 0:Ge.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};