import{f as nt,x as Oe,k as ue,l as $e,_ as oe,e as _e,u as xe,o as Le,w as Ie,b as He,N as ae,p as ve,a as Pe,d as ot,ak as st,g as at,$ as it,n as lt}from"./Cfh3kXIQ.js";import{l as T,r as rt,z as Me,E as i,P as h,V as k,Q as M,u as n,b as Y,k as L,al as ct,a2 as pe,a3 as ut,F as $,N as b,R as V,L as C,M as Ce,O as X,a4 as Ee,U as x,D as dt,a0 as Z,J as U,Z as Q,H as j,G as Ue,aa as me,ab as Re,a5 as pt,as as mt,ai as ft,m as ze,a1 as gt,ah as ht,q as fe,ar as yt,w as _t,c as ge,a7 as De}from"./DEIzhR9A.js";import{_ as vt}from"./ZgO-5V25.js";import{_ as ke}from"./Cmn_vM4N.js";import{i as ce}from"./BNS08PCs.js";import{_ as de}from"./CZjMpD9W.js";import{_ as Ct}from"./BruexLpw.js";import{_ as je}from"./CAQNniay.js";import{u as he,M as ye,r as kt}from"./DiIdhs-Z.js";import{u as Ve}from"./CzEXYf9D.js";import{b as Se,u as be}from"./wx5q-daT.js";import{u as qe}from"./CI0YNt9a.js";import{u as Ne}from"./BQKfvuZz.js";import{u as We}from"./CzfcOsM0.js";import{_ as Ze}from"./C5qvglTP.js";import{c as bt,o as wt}from"./ArJcqVXA.js";import{u as Ae}from"./CSqzEET8.js";import{r as St}from"./DAoAjQ1Z.js";import{_ as $t}from"./Cy7kFlWT.js";import{_ as xt}from"./BkZi-A8e.js";import{_ as Lt}from"./D7-ZWS-e.js";import{_ as It}from"./BpNfYv6v.js";import{a as Mt}from"./BXBuiWbS.js";import{u as Nt}from"./DObx2S2v.js";import{a as At}from"./DrWK9Uaw.js";import{u as Tt}from"./C_YNEQWT.js";import{d as Ft}from"./DW-wVgF4.js";import"./DpUJxqoL.js";import"./_ECBCnJP.js";import"./BrvZKvXP.js";import"./AQgvJZua.js";import"./APZTHeFf.js";import"./DdY_a9Gh.js";import"./Cn5bykuR.js";import"./Dvss8IH7.js";import"./DGPHl70G.js";import"./B8i0axnd.js";const zt=window.setInterval,Dt={class:"flex justify-around space-x-2 text-sm"},Bt=T({__name:"Countdown",props:{until:{type:String,required:!0}},setup(t){const e=t,o=rt({total:0,days:0,hours:0,minutes:0,seconds:0}),s=a=>{const p=new Date,u=Date.parse(a.toString())-Date.parse(p.toString()),v=Math.floor(u/1e3%60),f=Math.floor(u/1e3/60%60),d=Math.floor(u/(1e3*60*60)%24),_=Math.floor(u/(1e3*60*60*24));return{total:u,seconds:v,minutes:f,hours:d,days:_}},c=a=>{const{days:p,hours:u,seconds:v,minutes:f}=a;o.days=p,o.hours=u,o.minutes=f,o.seconds=v};return Me(()=>{const a=new Date(e.until),p=zt(()=>{const u=s(a);c(u),u.total===0&&clearInterval(p)},1e3)}),(a,p)=>(i(),h("div",Dt,[k("div",null,M(n(o).days)+" Days",1),k("div",null,M(n(o).hours)+" Hours",1),k("div",null,M(n(o).minutes)+" Minutes",1),k("div",null,M(n(o).seconds)+" Seconds",1)]))}}),Ot=()=>{const t=Y(!0),e=nt("bannerLastCloseAt");return{shouldBeVisible:c=>c&&e.value?Date.parse(c)>parseInt(e.value):!0,close:()=>{const c=Date.parse(new Date().toString());e.value=c.toString(),t.value=!1},isOpen:t}},Ht={class:"block md:flex"},Pt=["innerHTML"],Et=T({__name:"Banner",props:{blok:{type:Object,required:!0},publishedAt:{type:String,required:!0},type:{type:String,default:"",validator:t=>["info","sale","dark","alert",""].includes(t)}},setup(t){const e=t,{close:o,isOpen:s,shouldBeVisible:c}=Ot(),a=l=>{var g;return e.type&&l.includes(e.type)||l.includes(((g=e.blok)==null?void 0:g.type)||"")},p=()=>{var l,g,w,N;return((g=(l=e.blok)==null?void 0:l.background_color)==null?void 0:g.color)&&((N=(w=e.blok)==null?void 0:w.font_color)==null?void 0:N.color)},u=L(()=>{var l,g,w;if(p())return{"background-color":(g=(l=e.blok)==null?void 0:l.background_color)==null?void 0:g.color,color:(w=e==null?void 0:e.blok.font_color)==null?void 0:w.color}}),v=L(()=>{if(!p())return{"bg-tertiary-3-500 text-black":a("info"),"bg-tertiary-2-500 text-white":a("sale"),"bg-tertiary-1-300 text-black":a("highlight"),"bg-[#4B68B0] text-white":a("womens_day"),"bg-black text-white":a("alert")}}),f=L(()=>{var g,w;const l=((w=(g=e.blok)==null?void 0:g.cta_url)==null?void 0:w.cached_url)||"";return l.startsWith("/")?l:"/"+l}),d=L(()=>ce(e.blok)?!0:e.blok.isActiveInWeb),_=L(()=>{var l,g;return(l=e.blok)!=null&&l.body?Oe((g=e.blok)==null?void 0:g.body):""}),m=L(()=>c(e.publishedAt)),y=L(()=>ce(e.blok)||!e.blok.countdown_until?!1:Date.parse(e.blok.countdown_until)-Date.now()>0),r=L(()=>!ce(e.blok)&&!ce(e.blok.links));return(l,g)=>{var P,D;const w=Bt,N=vt,O=ke,H=ct("editable");return n(d)?pe((i(),$(dt((D=(P=t.blok)==null?void 0:P.cta_url)!=null&&D.cached_url?"nuxt-link":"div"),{key:0,id:"banner",to:n(f),class:"sticky text-sm"},{default:b(()=>[V(l.$slots,"default",{close:n(o)},()=>[C(Ce,{"leave-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 -translate-y-4","leave-active-class":"transform transition ease-out duration-300 "},{default:b(()=>[n(s)?(i(),h("div",{key:0,class:X(["relative z-50 flex w-full items-center py-3",[{"py-6 sm:py-3":n(y),"py-4 sm:py-3":n(r)},n(v)]]),style:Ee(n(u))},[k("section",{class:X(["container flex flex-col items-center justify-center gap-2 text-center sm:relative sm:flex-row",{"sm:flex-col":n(r)}])},[V(l.$slots,"body",{},()=>{var q,W;return[k("div",Ht,[k("div",{innerHTML:n(_)},null,8,Pt),n(y)?(i(),$(w,{key:0,until:((q=t.blok)==null?void 0:q.countdown_until)||"",class:"md:ml-5"},null,8,["until"])):x("",!0),n(r)?(i(),$(N,{key:1,links:((W=t.blok)==null?void 0:W.links)||[]},null,8,["links"])):x("",!0)])]}),V(l.$slots,"action",{close:n(o)},()=>[C(O,{"no-padding":"",icon:"UiClose",size:"xs",class:"absolute right-6",onClick:n(o)},null,8,["onClick"])])],2)],6)):x("",!0)]),_:3})])]),_:3},8,["to"])),[[ut,n(m)],[H,t.blok]]):x("",!0)}}}),Ut=T({__name:"AppLogo",setup(t){const e=ue();return(o,s)=>{const c=$e;return i(),$(c,{class:"shrink-0",to:n(e)({name:"index"})},{default:b(()=>s[0]||(s[0]=[k("svg",{width:"88",height:"20",viewBox:"0 0 88 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[k("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.5083 0H10.3557C10.0034 0 1.31268 0 0.729223 0.029274C0.349833 0.058548 0.291527 0.32242 0.291527 0.644434C0.291527 0.644434 0 19.1578 0 19.3627C0 19.6262 0.0583054 19.8608 0.291527 19.9779C0.354549 20.0201 5.54212 19.9662 8.50909 19.9354L8.5105 19.9354L8.5124 19.9353L8.51272 19.9353L8.51903 19.9353C9.66421 19.9234 10.4762 19.9149 10.5306 19.9169C10.7156 19.9352 10.978 19.7973 10.978 19.5379C10.978 19.2655 10.7185 19.2436 10.5407 19.2448C10.5407 19.2448 4.08381 19.2749 4.08381 19.1578C4.08381 18.6304 4.14212 10.1353 4.17127 9.78401C4.46669 9.772 4.98755 9.75818 5.52029 9.74405C6.30329 9.72327 7.11196 9.70182 7.26834 9.6844C7.50156 9.65513 7.71656 9.5051 7.70077 9.2827C7.68579 9.07249 7.52626 9.02248 7.23433 9.02248C7.15269 9.02248 6.88295 9.03539 6.53559 9.05202L6.53552 9.05202C5.64078 9.09484 4.2311 9.16231 4.19435 9.09729C4.14819 9.01639 4.34659 0.849758 4.34659 0.849758C4.34659 0.585886 4.37574 0.585886 4.63812 0.585886C5.80504 0.585886 10.2006 0.579787 10.3682 0.570843C10.6768 0.563931 10.8104 0.444395 10.8169 0.289487C10.8238 0.127667 10.742 0 10.5083 0ZM70.0437 0.0674928H69.8915C69.5404 0.0674928 60.8788 0.0674928 60.2978 0.0967668C59.9192 0.126041 59.8617 0.388693 59.8617 0.709894C59.8617 0.709894 59.5706 19.1606 59.5706 19.3647C59.5706 19.6274 59.6289 19.8612 59.8617 19.9779C59.9255 20.0209 65.3153 19.9907 68.236 19.9743H68.2363H68.2366H68.2368H68.237L68.2385 19.9743C69.2856 19.9684 70.0149 19.9644 70.0664 19.9661C70.2502 19.9844 70.5118 19.8469 70.5118 19.5884C70.5118 19.3172 70.2534 19.2948 70.0761 19.296C70.0761 19.296 63.6406 19.2773 63.6406 19.1606C63.6406 18.6349 63.6989 10.1686 63.7281 9.81817C64.0195 9.80643 64.5315 9.79286 65.0571 9.77892L65.0572 9.77892C65.8422 9.75811 66.6577 9.73649 66.8146 9.71896C67.0474 9.68969 67.2612 9.54047 67.2454 9.31888C67.2305 9.10909 67.0713 9.05948 66.7806 9.05948C66.6994 9.05948 66.4307 9.07236 66.0845 9.08895C65.1928 9.13168 63.7875 9.19902 63.7508 9.13429C63.705 9.05338 63.9026 0.914405 63.9026 0.914405C63.9026 0.651346 63.9313 0.651346 64.1933 0.651346C65.3562 0.651346 69.7368 0.645247 69.904 0.636709C70.2113 0.62939 70.3445 0.510262 70.351 0.35576C70.3583 0.194347 70.2765 0.0674928 70.0437 0.0674928ZM81.1167 0.0289894C83.0643 0.0936361 84.8337 1.64353 85.452 2.21966C86.0452 2.77302 86.5132 3.66872 86.8732 4.43594C87.2465 5.41621 87.4534 6.53676 87.5356 7.29991C87.5488 7.51376 87.5654 7.73676 87.5829 7.97082L87.583 7.97229L87.5831 7.97247C87.6341 8.65699 87.6923 9.43615 87.6923 10.3578C87.6923 11.9931 87.2967 14.2378 87.1538 14.6737C86.8363 15.6881 86.3371 16.8615 86.0545 17.297C85.8492 17.6271 85.4346 18.1776 85.0333 18.5521C84.2426 19.3018 82.9125 19.7739 82.5489 19.7901C81.7751 19.8397 75.5773 20.0166 75.3745 19.8625L75.374 19.8623C75.2806 19.8156 75.1919 19.7712 75.2028 19.4014C75.2315 18.94 75.3465 0.807189 75.3174 0.461594C75.3174 0.259522 75.3174 0.0867242 75.5182 0.000121975H75.6049C75.7769 0.000121975 80.7434 0.0163853 81.1167 0.0289894ZM79.5376 0.634391C79.4222 0.634391 79.3368 0.663259 79.3656 0.807189C79.3656 0.807189 79.2793 14.2122 79.2793 14.4143L79.1356 18.9693C79.1356 19.142 79.3077 19.1709 79.5085 19.1709C79.7676 19.1709 81.088 19.1132 81.518 18.9977C81.9492 18.8826 82.265 18.5366 82.5521 18.2195C83.1546 17.5275 83.2327 16.4928 83.2765 15.5958C83.4417 12.187 83.4417 7.36456 83.3315 6.14522C83.3189 6.00597 83.3076 5.84143 83.2949 5.65794C83.2039 4.33807 83.0452 2.03828 81.8678 1.12839C81.1876 0.444924 79.5376 0.634391 79.5376 0.634391ZM37.6982 19.8994C37.9561 19.901 38.0618 19.7209 38.063 19.3651C38.063 19.3651 38.01 0.543967 38.01 0.370763C38.01 0.246349 37.933 0.09388 37.7229 0.0865615C37.5423 0.0812759 34.2436 0.0625731 34.0691 0.0686719C33.8573 0.066639 33.7897 0.201624 33.7897 0.374829V19.4911C33.7897 19.6928 33.8472 19.8945 34.1055 19.9237C34.1055 19.9237 37.422 19.8977 37.6982 19.8994ZM55.5927 0.0698916C55.8344 0.0674521 55.9652 0.280502 55.9652 0.413048C55.9652 0.564703 55.9037 0.804181 55.6202 0.821664L51.0007 0.912738C51.0007 0.912738 50.9866 19.4859 50.9003 19.6302C50.872 19.803 50.7574 19.9185 50.527 19.9185C50.3444 19.9445 47.951 19.9632 47.0477 19.9677C46.9582 19.9681 46.8246 19.8819 46.823 19.7205C46.8068 17.4769 46.9566 1.01642 47.0105 0.855003C47.0105 0.855003 42.6201 0.789137 42.5173 0.780192C42.2825 0.759456 42.1986 0.57934 42.1999 0.413454C42.2007 0.324819 42.2407 0.0955063 42.4549 0.0768035C42.627 0.0613534 55.5927 0.0698916 55.5927 0.0698916ZM25.9951 2.21966C25.3768 1.64353 23.6074 0.0936361 21.6599 0.0289894C21.287 0.0163853 16.3201 0.000121975 16.148 0.000121975H16.0617C15.8605 0.0867242 15.8605 0.259522 15.8605 0.461594C15.8896 0.807189 15.7747 18.94 15.7459 19.4014C15.7354 19.7716 15.8239 19.8157 15.9178 19.8624L15.918 19.8625C16.1208 20.0166 22.3182 19.8397 23.0924 19.7901C23.4556 19.7739 24.7857 19.3018 25.5765 18.5521C25.9781 18.1776 26.3927 17.6271 26.598 17.297C26.8802 16.8615 27.3795 15.6881 27.6973 14.6737C27.8398 14.2378 28.2358 11.9931 28.2358 10.3578C28.2358 9.43349 28.1773 8.65249 28.126 7.96654C28.1085 7.73404 28.0919 7.51245 28.0787 7.29991C27.9969 6.53676 27.7896 5.41621 27.4163 4.43594C27.0568 3.66872 26.5883 2.77302 25.9951 2.21966ZM19.9087 0.807189C19.8799 0.663259 19.9662 0.634391 20.0808 0.634391C20.0808 0.634391 21.7307 0.444924 22.4114 1.12839C23.5883 2.03825 23.747 4.33793 23.838 5.65783C23.8507 5.84136 23.8621 6.00595 23.8747 6.14522C23.9852 7.36456 23.9852 12.187 23.8196 15.5958C23.7759 16.4928 23.6981 17.5275 23.0952 18.2195C22.8082 18.5366 22.4923 18.8826 22.0615 18.9977C21.6311 19.1132 20.3107 19.1709 20.052 19.1709C19.8512 19.1709 19.6791 19.142 19.6791 18.9693L19.8224 14.4143C19.8224 14.2122 19.9087 0.807189 19.9087 0.807189Z",fill:"black"})],-1)])),_:1},8,["to"])}}}),Te=async(t="new-categories")=>{const{fetchDatasource:e}=he(),{data:o}=await Ve("new-categories",()=>e(t)),s=L(()=>{var p;const a={};return(p=o==null?void 0:o.value)==null||p.forEach(u=>a[u.value]=!0),a});return{getBadgeLabelByPath:a=>s.value[a]?"new":void 0}},Rt={id:"navigation-items-list",class:"relative hidden md:block"},jt={class:"inline-flex gap-5"},Vt=T({__name:"HeaderNavigation",props:{fetching:{type:Boolean,default:!1},items:{type:Array,default:()=>[]}},emits:["mouseenter:item"],async setup(t){let e,o;const{getBadgeLabelByPath:s}=([e,o]=Z(()=>Te()),e=await e,o(),e);return(c,a)=>{const p=oe,u=je;return i(),h("div",Rt,[C(u,{ssr:""},{default:b(()=>[k("nav",jt,[(i(!0),h(U,null,Q(t.items,(v,f)=>(i(),$(p,{key:f,to:v?v.path:"/",badge:v?n(s)(v.path):void 0,"badge-placement":"top",onMouseenter:d=>c.$emit("mouseenter:item",v)},{default:b(()=>[j(M(v.name),1)]),_:2},1032,["to","badge","onMouseenter"]))),128))])]),_:1}),a[0]||(a[0]=k("div",{id:"flyout-overscroll-container","aria-hidden":"true",class:"absolute h-4 w-full scale-125 bg-transparent"},null,-1))])}}}),qt={class:"flex items-center justify-end gap-7"},Wt={class:"hidden text-sm md:block"},Zt=T({__name:"HeaderMainMenu",emits:["click:open-search"],async setup(t){let e,o;const s=([e,o]=Z(()=>Se()),e=await e,o(),e),{countWithoutSoldOutItems:c}=([e,o]=Z(()=>qe()),e=await e,o(),e),{$helpers:a}=_e(),{user:p,isLoggedIn:u}=([e,o]=Z(()=>Ne()),e=await e,o(),e),v=ue(),{logout:f,isSubmitting:d}=([e,o]=Z(()=>We("logout")),e=await e,o(),e),{isExactActive:_}=xe({to:a.route.routes.checkout.path});return(m,y)=>{const r=ke,l=oe,g=de;return i(),h("div",qt,[C(r,{id:"searchFlyoutButton",icon:"UiSearch",size:"sm",type:"ghost",class:"hidden md:inline-flex","no-padding":"",onClick:y[0]||(y[0]=w=>m.$emit("click:open-search"))},{default:b(()=>[j(M(m.$t("search")),1)]),_:1}),C(g,null,{default:b(()=>[!n(u)&&!n(_)?(i(),$(l,{key:0,class:"hidden md:block",to:n(v)({name:n(a).route.routes.signin.name}),size:"sm"},{default:b(()=>[j(M(m.$t("sign_in")),1)]),_:1},8,["to"])):n(p)?(i(),h(U,{key:1},[k("span",Wt,M(m.$t("user_greeting",{name:n(p).firstName})),1),n(_)?x("",!0):(i(),$(l,{key:0,class:"hidden md:block",to:n(v)({name:n(a).route.routes.account.name}),size:"sm"},{default:b(()=>[j(M(m.$t("account")),1)]),_:1},8,["to"])),n(_)?x("",!0):(i(),h("a",{key:1,class:"hidden shrink-0 grow-0 cursor-pointer items-center gap-2 whitespace-nowrap text-md leading-none tracking-wide transition duration-200 ease-linear hover:text-shadow md:block",onClick:y[1]||(y[1]=w=>!n(d)&&n(f)())},M(m.$t("sign_out")),1))],64)):x("",!0),C(l,{to:n(v)({name:n(a).route.routes.wishlist.name}),icon:"UiWishlist",size:"sm",class:"relative -m-2 mr-0 block p-2",badge:n(s).count.value,"badge-class":"absolute left-full"},null,8,["to","badge"]),n(_)?x("",!0):(i(),$(l,{key:2,to:n(v)({name:n(a).route.routes.basket.name}),icon:"UiBasket",size:"sm",class:"relative -m-2 mr-0 block p-2",badge:n(c),"badge-class":"absolute left-full"},null,8,["to","badge"]))]),_:1})])}}}),Qt=T({__name:"TwoColumnsList",props:{items:{type:Array,required:!0}},setup(t){return(e,o)=>(i(),h("ul",{style:Ee(t.items.length>8?{columns:2,columnGap:"60px"}:{})},[(i(!0),h(U,null,Q(t.items,s=>(i(),h("li",{key:s.id},[V(e.$slots,"item",{item:s})]))),128))],4))}}),Gt={};function Kt(t,e){return i(),$(Ce,{"enter-class":"-translate-y-2","enter-to-class":"opacity-100 translate-y-0","enter-active-class":"transform transition duration-200 ease-in-out","leave-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 -translate-y-2","leave-active-class":"transform transition duration-200 ease-in-out"},{default:b(()=>[V(t.$slots,"default")]),_:3})}const Yt=Le(Gt,[["render",Kt]]),Qe=T({__name:"Flyout",props:{isOpen:{type:Boolean,default:!1}},setup(t){return(e,o)=>{const s=Ze,c=Yt;return i(),$(c,null,{default:b(()=>[t.isOpen?(i(),h("div",Ue({key:0,class:"absolute left-0 z-10 hidden w-full md:block"},e.$attrs),[C(s,null,{default:b(()=>[V(e.$slots,"default")]),_:3})],16)):x("",!0)]),_:3})}}}),Jt={id:"flyout-menu",class:"container flex flex-nowrap justify-between space-x-8 py-10"},Xt={class:"flex-1"},en=T({__name:"FlyoutMenu",props:{isOpen:{type:Boolean,default:!1}},setup(t){return(e,o)=>{const s=Qe;return i(),$(s,{"is-open":t.isOpen,class:"min-h-64 border-b bg-white"},{default:b(()=>[k("div",Jt,[k("div",Xt,[V(e.$slots,"default")]),V(e.$slots,"teaser")])]),_:3},8,["is-open"])}}}),tn={class:"container relative w-full"},nn={class:"relative flex w-full items-center"},on={class:"absolute top-0 mt-1 flex translate-y-2"},sn={class:"absolute right-0 top-0 mt-1"},an=["placeholder"],Ge=T({__name:"SearchInput",props:me({value:{type:String,default:""},focusOnVisible:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:me(["focus","blur","keydown:enter","click:close"],["update:modelValue"]),setup(t,{emit:e}){const o=t,s=e,c=Y(),a=Re(t,"modelValue");return o.focusOnVisible&&bt(c,{initialValue:!0}),(p,u)=>{const v=Ie,f=ke;return i(),h("div",tn,[k("label",nn,[k("span",on,[C(v,{icon:"UiSearch"})]),k("span",sn,[C(f,{type:"ghost",icon:"UiClose",size:"sm","no-padding":"",onClick:u[0]||(u[0]=d=>s("click:close"))})]),pe(k("input",{id:"search",ref_key:"input",ref:c,"onUpdate:modelValue":u[1]||(u[1]=d=>a.value=d),autocomplete:"off",class:"w-full border-0 border-b border-gray-500 px-5 pl-6 text-xl outline-0 ring-0 transition-colors duration-200 ease-linear focus:border-primary-500 focus:outline-none focus:ring-0 md:border-none",placeholder:p.$t("search_edited"),type:"text",onFocus:u[2]||(u[2]=d=>s("focus")),onBlur:u[3]||(u[3]=d=>s("blur")),onKeydown:u[4]||(u[4]=mt(ft(d=>s("keydown:enter"),["exact"]),["enter"]))},null,40,an),[[pt,a.value]])])])}}});var Ke={exports:{}};(function(t){t.exports=function(e){var o={};function s(c){if(o[c])return o[c].exports;var a=o[c]={exports:{},id:c,loaded:!1};return e[c].call(a.exports,a,a.exports,s),a.loaded=!0,a.exports}return s.m=e,s.c=o,s.p="",s(0)}([function(e,o,s){e.exports=s(1)},function(e,o,s){Object.defineProperty(o,"__esModule",{value:!0});var c=s(2);Object.defineProperty(o,"combineChunks",{enumerable:!0,get:function(){return c.combineChunks}}),Object.defineProperty(o,"fillInChunks",{enumerable:!0,get:function(){return c.fillInChunks}}),Object.defineProperty(o,"findAll",{enumerable:!0,get:function(){return c.findAll}}),Object.defineProperty(o,"findChunks",{enumerable:!0,get:function(){return c.findChunks}})},function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.findAll=function(f){var d=f.autoEscape,_=f.caseSensitive,m=_===void 0?!1:_,y=f.findChunks,r=y===void 0?c:y,l=f.sanitize,g=f.searchWords,w=f.textToHighlight;return a({chunksToHighlight:s({chunks:r({autoEscape:d,caseSensitive:m,sanitize:l,searchWords:g,textToHighlight:w})}),totalLength:w?w.length:0})};var s=o.combineChunks=function(f){var d=f.chunks;return d=d.sort(function(_,m){return _.start-m.start}).reduce(function(_,m){if(_.length===0)return[m];var y=_.pop();if(m.start<y.end){var r=Math.max(y.end,m.end);_.push({highlight:!1,start:y.start,end:r})}else _.push(y,m);return _},[]),d},c=function(f){var d=f.autoEscape,_=f.caseSensitive,m=f.sanitize,y=m===void 0?p:m,r=f.searchWords,l=f.textToHighlight;return l=y(l),r.filter(function(g){return g}).reduce(function(g,w){w=y(w),d&&(w=u(w));for(var N=new RegExp(w,_?"g":"gi"),O=void 0;O=N.exec(l);){var H=O.index,P=N.lastIndex;P>H&&g.push({highlight:!1,start:H,end:P}),O.index===N.lastIndex&&N.lastIndex++}return g},[])};o.findChunks=c;var a=o.fillInChunks=function(f){var d=f.chunksToHighlight,_=f.totalLength,m=[],y=function(g,w,N){w-g>0&&m.push({start:g,end:w,highlight:N})};if(d.length===0)y(0,_,!1);else{var r=0;d.forEach(function(l){y(r,l.start,!1),y(l.start,l.end,!0),r=l.end}),y(r,_,!1)}return m};function p(v){return v}function u(v){return v.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])})(Ke);var ln=Ke.exports;const Ye=(t,e)=>{const o=ln.findAll({autoEscape:t.autoEscape,caseSensitive:t.caseSensitive,findChunks:t.findChunks,sanitize:t.sanitize,searchWords:t.searchWords,textToHighlight:t.textToHighlight}),s=rn(t,o),c=e.slots;return c.default?c.default&&c.default(s):ze("span",{...e.attrs},s.map(({chunk:a,text:p,attrs:u})=>a.highlight?ze("mark",u,[p]):p))},Be={};function rn(t,e){let o=-1,s="",c={};const{textToHighlight:a,highlightClassName:p,highlightStyle:u=Be,activeIndex:v,activeClassName:f,activeStyle:d=Be}=t;return e.map((_,m)=>{const y=a.substr(_.start,_.end-_.start);if(_.highlight){o++;const r=o===+(v||-1);return s=`${p} ${r?f:""}`,c=r===!0&&d!=null?{...u,...d}:u,{chunk:_,text:y,attrs:{class:s,key:m,style:c,highlightIndex:o}}}else return{chunk:_,text:y}})}Ye.props={activeClassName:String,activeIndex:Number,activeStyle:Object,autoEscape:Boolean,caseSensitive:{type:Boolean,defualt:!1},findChunks:Function,custom:{type:Boolean,default:!1},highlightClassName:String,highlightStyle:Object,sanitize:Function,searchWords:{type:Array,validator(t){return t.every(e=>typeof e=="string")},required:!0},textToHighlight:{type:String,required:!0}};const cn=Ye,un=T({__name:"SearchResult",props:{label:{type:String,required:!0},to:{type:[Object,String],default:()=>{}},searchTerm:{type:String,default:void 0}},setup(t){const e=t,o=L(()=>{var s;return((s=e.searchTerm)==null?void 0:s.split(" "))||[]});return(s,c)=>{const a=$e;return i(),h("li",null,[C(a,{to:t.to,class:"text-sm"},{default:b(()=>[C(n(cn),{"search-words":n(o),"text-to-highlight":t.label.toString(),"highlight-class-name":"text__highlight"},null,8,["search-words","text-to-highlight"])]),_:1},8,["to"])])}}}),dn=(t,e=3)=>{const o=Y(!0),s=L(()=>o.value?t.value.slice(0,e):t),c=L(()=>t.value.length>e?t.value.length-e:0);return{isLimiting:o,itemsToShow:s,furtherItemsCount:c,toggleIsLimiting:()=>{o.value=!o.value}}},pn=T({__name:"ExpandableDataList",props:{items:{type:Array,default:()=>[]},limit:{type:Number,default:3}},setup(t){const e=t,{items:o}=gt(e),{itemsToShow:s,toggleIsLimiting:c,isLimiting:a,furtherItemsCount:p}=dn(o,e.limit);return(u,v)=>(i(),h("section",null,[V(u.$slots,"default",{items:n(s),furtherItemsCount:n(p),islimited:n(a),toggleLimiting:n(c)})]))}}),mn={class:"sticky left-0 top-0 mt-6 px-5"},fn={class:"w-full space-y-1"},gn=["innerHTML"],Je=T({__name:"SearchResults",props:{fetching:{type:Boolean,default:!1},limit:{type:Number,default:5},term:{type:String,default:""},productSuggestions:{type:Array,default:()=>[]}},emits:["after:click:all","after:click:result"],setup(t){const{getProductDetailRoute:e}=Ae(),o=ue();return(s,c)=>{const a=He,p=un,u=oe,v=pn;return i(),h("div",mn,[C(v,{items:t.productSuggestions,limit:t.limit},{default:b(({items:f})=>[k("ul",fn,[t.fetching?(i(!0),h(U,{key:0},Q(t.limit,d=>(i(),h("li",{key:`loading-${d}`},[C(a,{type:"link","is-full-width":""})]))),128)):f.length?(i(!0),h(U,{key:1},Q(f,d=>V(s.$slots,"item",Ue({ref_for:!0},{item:d}),()=>[d.productSuggestion&&d.productSuggestion.product?(i(),$(p,{key:`product-suggestion-${d.productSuggestion.product.id}`,"search-term":t.term,label:d.productSuggestion.suggestion,to:n(e)(d.productSuggestion.product),onClick:_=>s.$emit("after:click:result",d)},null,8,["search-term","label","to","onClick"])):x("",!0)])),256)):x("",!0)]),t.fetching?(i(),$(a,{key:0,class:"mt-6",type:"link","is-full-width":""})):x("",!0),!t.fetching&&f.length?(i(),$(u,{key:1,class:"mt-6",size:"sm",to:n(o)({name:s.$helpers.route.routes.search.name,query:{term:t.term}}),onClick:c[0]||(c[0]=d=>s.$emit("after:click:all"))},{default:b(()=>[k("span",{innerHTML:s.$t("search_results",{count:t.productSuggestions.length})},null,8,gn)]),_:1},8,["to"])):x("",!0)]),_:3},8,["items","limit"])])}}}),hn={class:"border-b bg-white py-8"},yn={class:"w-full"},_n={class:"container"},vn=T({__name:"SearchFlyout",props:me({isOpen:{type:Boolean,default:!1},fetching:{type:Boolean,required:!0},suggestions:{type:Array,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:me(["click:close","keydown:enter","click:result","click:all"],["update:modelValue"]),setup(t,{emit:e}){const o=Re(t,"modelValue"),s=e;return(c,a)=>{const p=Ge,u=Je,v=de,f=Qe;return i(),$(f,{"is-open":t.isOpen},{default:b(()=>[k("div",hn,[k("div",yn,[C(p,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=d=>o.value=d),"focus-on-visible":"","onClick:close":a[1]||(a[1]=d=>s("click:close")),"onKeydown:enter":a[2]||(a[2]=d=>s("keydown:enter"))},null,8,["modelValue"]),k("div",_n,[C(v,null,{default:b(()=>[C(u,{fetching:t.fetching,term:o.value,"product-suggestions":t.suggestions,"onAfter:click:result":a[3]||(a[3]=d=>s("click:result",d)),"onAfter:click:all":a[4]||(a[4]=d=>s("click:all"))},null,8,["fetching","term","product-suggestions"])]),_:1})])])])]),_:1},8,["is-open"])}}}),we=()=>{const t=ae("uiState",()=>({sideNavigationOpen:!1,flyoutMenuOpen:!1,flyoutMenuCategory:{name:"",path:"",slug:"",id:1,children:[]},searchFlyout:!1,mobileSearchIsActive:!1,selectedSideNavigationEntry:void 0})),e=L(()=>t.value.sideNavigationOpen),o=()=>{t.value.sideNavigationOpen=!1},s=()=>{t.value.sideNavigationOpen=!0},c=l=>{var g;t.value.selectedSideNavigationEntry=l,(l.depth>ye||((g=l.children)==null?void 0:g.length)===0)&&(t.value.sideNavigationOpen=!1)},a=L(()=>t.value.flyoutMenuOpen),p=L(()=>t.value.flyoutMenuCategory),u=(l,g=!1)=>{const w=l.relatedTarget;(!["flyout-menu","flyout-menu-items-container","flyout-overscroll-container","flyout-menu-items-container-content"].includes(w==null?void 0:w.id)||g)&&(t.value.flyoutMenuOpen=!1,t.value.flyoutMenuCategory={name:"",path:"",slug:"",id:1,children:[]})},v=({name:l,path:g,slug:w,id:N,children:O})=>{if((O==null?void 0:O.length)===0){t.value.flyoutMenuOpen=!1;return}t.value.flyoutMenuOpen=!0,t.value.flyoutMenuCategory={name:l,path:g,slug:w,id:N,children:O||[]}},f=L(()=>t.value.searchFlyout),d=()=>{t.value.searchFlyout=!0},_=()=>{t.value.searchFlyout=!1},m=L(()=>t.value.mobileSearchIsActive),y=l=>t.value.mobileSearchIsActive=l,r=L(()=>t.value.selectedSideNavigationEntry);return{isSideNavigationOpen:e,closeSideNavigation:o,openSideNavigation:s,selectSideNavigationEntry:c,isFlyoutMenuOpen:a,flyoutMenuCategory:p,closeFlyoutMenu:u,openFlyoutMenu:v,isSearchFlyoutOpen:f,closeSearchFlyout:_,openSearchFlyout:d,mobileSearchIsActive:m,setMobileSearchIsActive:y,selectedSideNavigationEntry:r}},Fe=({params:t,key:e="search"}={})=>{const o=ae(`${e}-data`,()=>{}),s=_e(),c=ae(`${e}-searchQuery`,()=>""),a=ae(`${e}-pending`,()=>!1),p=ae(`${e}-error`,()=>{}),u=ae(`${e}-error`,()=>"idle"),v=ve();return{data:o,pending:a,searchQuery:c,resetSearch:()=>{c.value="",o.value={suggestions:[]}},search:async({term:_,slug:m,productLimit:y})=>{if(a.value=!0,u.value="pending",!!_)try{o.value=await St(s,"searchProducts",ht(v))({term:String(_),slug:m,with:t==null?void 0:t.with,productLimit:y})}catch(r){p.value=r}finally{a.value=!1,u.value=p.value?"error":"success"}}}},Cn={id:"header",class:"sticky left-0 top-0 z-30"},kn={class:"relative z-20 flex h-14 items-center border-b border-gray-200 bg-white"},bn={class:"container flex items-center justify-between"},wn={class:"flex w-1/4 items-center md:hidden"},Sn={class:"flex w-2/4 items-center justify-center md:justify-start"},$n={class:"w-1/4"},xn={id:"flyout-menu-items-container",class:"flex space-x-20"},Ln=["id"],In=T({__name:"Header",props:{fetching:{type:Boolean,default:!1},categories:{type:Array,default:()=>[]},flyoutCategories:{type:Array,default:()=>[]}},emits:["click:open-side-navigation"],async setup(t){let e,o;const{isFlyoutMenuOpen:s,isSearchFlyoutOpen:c,openFlyoutMenu:a,closeFlyoutMenu:p,closeSearchFlyout:u,openSearchFlyout:v,flyoutMenuCategory:f}=we(),{$helpers:d}=_e(),{trackSearch:_}=be(),{getBadgeLabelByPath:m}=([e,o]=Z(()=>Te()),e=await e,o(),e),{resetSearch:y,pending:r,data:l,searchQuery:g}=Fe({key:"globalSearch"}),{getProductDetailRoute:w,getSearchRoute:N,localizedNavigateTo:O}=Ae(),H=ue(),P=Y(),D=(A,R=!1)=>{var I,F;const S=(I=A==null?void 0:A.productSuggestion)==null?void 0:I.product,B=(F=A==null?void 0:A.productSuggestion)==null?void 0:F.suggestion;_({searchTerm:g.value,suggestion:B,searchAction:R?"search_button":"suggested_product",searchDestination:H(S?w(S):N(g.value))}),y(),u()},q=()=>{_({searchTerm:g.value,searchAction:"search_hotkey",searchDestination:H(N(g.value))}),u(),O(N(g.value))},W=L(()=>{var A;return(A=f.value)==null?void 0:A.children.filter(R=>{var S;return((S=R.children)==null?void 0:S.length)===0})}),{isExactActive:te}=xe({to:d.route.routes.checkout.path}),ie=L(()=>{var A;return(A=l==null?void 0:l.value)==null?void 0:A.suggestions}),G=A=>p(A,!0);return wt(P,()=>D()),(A,R)=>{const S=ke,B=Ut,I=Vt,F=Zt,E=oe,K=Pe,J=Qt,le=en,re=vn;return i(),h("header",Cn,[k("div",kn,[k("div",bn,[k("div",wn,[C(S,{id:"sideNavigationButton","aria-label":"Navigation öffnen",icon:"UiBurger",type:"ghost","no-padding":"","onClick:stop":R[0]||(R[0]=z=>A.$emit("click:open-side-navigation"))})]),k("div",Sn,[C(B,{class:"md:mr-8"}),n(te)?x("",!0):(i(),$(I,{key:0,fetching:t.fetching,items:t.categories,onMouseleave:n(p),"onMouseenter:item":n(a)},null,8,["fetching","items","onMouseleave","onMouseenter:item"]))]),k("div",$n,[C(F,{"onClick:openSearch":n(v)},null,8,["onClick:openSearch"])])])]),C(le,{"is-open":n(s),onMouseleave:n(p)},{teaser:b(()=>[V(A.$slots,"flyout-teaser")]),default:b(()=>[k("div",xn,[n(W).length?(i(),h("div",{id:"flyout-menu-items-container-content",key:n(f).slug},[C(K,{tag:"p",type:"loud",size:"sm"},{default:b(()=>[C(E,{to:n(f).path,onClick:G},{default:b(()=>[j(M(n(f).name),1)]),_:1},8,["to"])]),_:1}),C(J,{class:"mt-4",items:n(W)},{item:b(({item:z})=>[z.children?(i(),$(E,{key:0,to:z.path,badge:n(m)(z.path),"badge-placement":"top","badge-size":"sm",onClick:G},{default:b(()=>[j(M(z.name),1)]),_:2},1032,["to","badge"])):x("",!0)]),_:1},8,["items"])])):x("",!0),(i(!0),h(U,null,Q(n(f).children,z=>{var se;return i(),h(U,null,[(se=z==null?void 0:z.children)!=null&&se.length?(i(),h("div",{id:"flyout-menu-items-container-content-"+z.slug,key:z.slug},[C(K,{tag:"p",type:"loud",size:"sm"},{default:b(()=>[C(E,{to:z.path,onClick:G},{default:b(()=>[j(M(z.name),1)]),_:2},1032,["to"])]),_:2},1024),C(J,{class:"mt-4",items:z.children},{item:b(({item:ne})=>[C(E,{to:ne.path,badge:n(m)(ne.path),"badge-placement":"top","badge-size":"sm",onClick:G},{default:b(()=>[j(M(ne.name),1)]),_:2},1032,["to","badge"])]),_:2},1032,["items"])],8,Ln)):x("",!0)],64)}),256))])]),_:3},8,["is-open","onMouseleave"]),C(re,{ref_key:"searchFlyout",ref:P,modelValue:n(g),"onUpdate:modelValue":R[1]||(R[1]=z=>fe(g)?g.value=z:null),"is-open":n(c),fetching:n(r),suggestions:n(ie),"onKeydown:enter":q,"onClick:close":D,"onClick:all":R[2]||(R[2]=z=>D(void 0,!0)),"onClick:result":D},null,8,["modelValue","is-open","fetching","suggestions"])])}}}),Xe=T({__name:"SideNavigationList",props:{categories:{type:Array,required:!0},hasMobileScrollableArea:{type:Boolean,default:!1},isSubCategory:{type:Boolean,default:!1}},emits:["select:entry"],async setup(t,{emit:e}){let o,s;const c=e,{selectedSideNavigationEntry:a}=we(),{getBadgeLabelByPath:p}=([o,s]=Z(()=>Te()),o=await o,s(),o),u=d=>{var _;return(((_=a.value)==null?void 0:_.rootlineIds)||[]).includes(d.id)},v=d=>d.depth>4,f=d=>{c("select:entry",d)};return(d,_)=>{const m=oe,y=Xe;return i(),h("ul",{class:X(["md:mb-0",{"pb-64":t.categories&&t.categories.length&&t.categories[0].depth<n(ye)&&t.hasMobileScrollableArea}])},[(i(!0),h(U,null,Q(t.categories,(r,l)=>(i(),h("li",{key:l,class:X({"mt-6":r.depth>n(ye)-1&&l===0,"mb-6":!t.isSubCategory,"mb-[25px]":t.isSubCategory})},[C(m,{to:r.path,badge:n(p)(r.path),"badge-placement":"top",size:t.isSubCategory?"lg":"xl",onClick:g=>c("select:entry",{entry:r,isLastChild:v(r)})},{default:b(()=>[j(M(r.name),1)]),_:2},1032,["to","badge","size","onClick"]),r.children&&r.children.length>0&&r.depth>2&&u(r)?(i(),$(y,{key:0,class:"ml-2","is-sub-category":"",categories:r.children,"onSelect:entry":f},null,8,["categories"])):x("",!0)],2))),128))],2)}}}),Mn=T({__name:"FadeInTransitionGroup",props:{tag:{type:String,default:"div"},mode:{type:String,default:"in-out"},classList:{type:String,default:""}},setup(t){return(e,o)=>(i(),$(yt,{tag:t.tag,mode:t.mode,class:X(t.classList),"enter-to-class":"opacity-100","enter-class":"opacity-0","enter-active-class":"transition duration-200 ease-linear","leave-to-class":"opacity-0","leave-class":"opacity-100","leave-active-class":"transition duration-200 ease-linear"},{default:b(()=>[V(e.$slots,"default")]),_:3},8,["tag","mode","class"]))}}),Nn={};function An(t,e){return i(),$(Ce,{"enter-class":"-translate-x-full","enter-to-class":"translate-x-0","enter-active-class":"transform transition duration-500 ease-in-out","leave-class":"translate-x-0","leave-to-class":"-translate-x-full","leave-active-class":"transform transition duration-500 ease-in-out"},{default:b(()=>[V(t.$slots,"default")]),_:3})}const Tn=Le(Nn,[["render",An]]),Fn={class:"sticky inset-x-0 top-0 z-50 bg-white py-3"},zn={class:"mt-4 h-full",style:{"max-height":"calc(100% - 80px)"}},Dn={class:"h-full",style:{"max-height":"calc(100% - 125px)"}},Bn={key:"categories",class:"container mt-8 flex h-full justify-between overflow-y-auto scrollbar-hide"},On={class:"w-1/2"},Hn={class:"mt-4 flex w-full flex-col space-y-2 text-xs text-gray-700"},Pn={class:"w-1/2"},En={key:0},Un={class:"mb-[25px]"},Rn={key:"search-results"},jn={key:"loading-categories",class:"space-y-3"},Vn=T({__name:"SideNavigation",props:{rootCategories:{type:[Array,Object],default:()=>[]},subCategories:{type:[Array,Object],default:()=>[]},fetching:{type:Boolean,required:!0}},async setup(t){let e,o;const{closeSideNavigation:s,isSideNavigationOpen:c,mobileSearchIsActive:a,setMobileSearchIsActive:p,selectSideNavigationEntry:u}=we(),{data:v,resetSearch:f,searchQuery:d,pending:_}=Fe({key:"globalSearch"}),{user:m,isLoggedIn:y}=([e,o]=Z(()=>Ne()),e=await e,o(),e),{trackSearch:r,trackContentView:l}=be(),g=ot(),{getProductDetailRoute:w,getSearchRoute:N,localizedNavigateTo:O}=Ae(),H=ue(),{logout:P,isSubmitting:D}=([e,o]=Z(()=>We("logout")),e=await e,o(),e);_t(()=>{var S;c.value&&l({contentName:g.fullPath,title:(document==null?void 0:document.title)||"",pageType:"offCanvas",pageTypeId:((S=g.params.pathMatch)==null?void 0:S.toString())??"",clickOrigin:g.fullPath})});const q=S=>{if(!ce(S==null?void 0:S.productSuggestion.product)){const B=S.productSuggestion.product,I=S.productSuggestion.suggestion;r({searchTerm:d.value,suggestion:I,searchAction:"suggested_product",searchDestination:H(w(B))})}f(),s(),p(!1)},W=(S=!1)=>{r({searchTerm:d.value,searchAction:"search_button",searchDestination:H(N(d.value))}),S&&O(N(d.value)),f(),s(),p(!1)},te=Y(null),ie=S=>{te.value=S.entry,u(S.entry)},G=S=>{u(S.entry),S.isLastChild&&s()},A=L(()=>{var S;return(S=v==null?void 0:v.value)==null?void 0:S.suggestions}),R=async()=>{D.value||(s(),await P())};return(S,B)=>{const I=Ge,F=xt,E=Ze,K=Xe,J=oe,le=Je,re=de,z=He,se=Mn,ne=Tn;return i(),$(ne,null,{default:b(()=>[n(c)?(i(),h("nav",{key:0,class:X(["fixed inset-0 z-50 overflow-hidden bg-white",{"animate-pulse":t.fetching}])},[k("div",Fn,[C(I,{modelValue:n(d),"onUpdate:modelValue":B[0]||(B[0]=ee=>fe(d)?d.value=ee:null),"focus-on-visible":!1,onFocus:B[1]||(B[1]=ee=>n(p)(!0)),"onClick:close":q,"onKeydown:enter":B[2]||(B[2]=ee=>W(!0))},null,8,["modelValue"])]),k("div",zn,[C(E,null,{default:b(()=>[n(a)?x("",!0):(i(),$(F,{key:0,"has-margins":!1,"onClick:close:sideNavigation":n(s)},null,8,["onClick:close:sideNavigation"]))]),_:1}),k("div",Dn,[C(se,{"class-list":"h-full pb-6"},{default:b(()=>[t.rootCategories&&!n(a)?(i(),h("div",Bn,[k("div",On,[C(K,{categories:t.rootCategories,"onSelect:entry":ie},null,8,["categories"]),k("div",Hn,[n(y)?n(m)?(i(),h(U,{key:1},[k("span",null,M(S.$t("user_greeting",{name:n(m).firstName})),1),C(J,{to:n(H)({name:S.$helpers.route.routes.account.name}),size:"xs",onClick:B[3]||(B[3]=ee=>n(s)())},{default:b(()=>[j(M(S.$t("account")),1)]),_:1},8,["to"]),k("a",{class:"inline-flex shrink-0 grow-0 items-center gap-2 whitespace-nowrap font-default text-md leading-none tracking-wide transition duration-200 ease-linear hover:text-shadow",onClick:B[4]||(B[4]=ee=>R())},M(S.$t("sign_out")),1)],64)):x("",!0):(i(),$(J,{key:0,to:n(H)({name:S.$helpers.route.routes.signin.name}),onClick:n(s)},{default:b(()=>[j(M(S.$t("sign_in")),1)]),_:1},8,["to","onClick"]))])]),k("div",Pn,[n(te)?(i(),h("ul",En,[k("li",Un,[C(J,{to:n(te).path,"only-exact-active":"",size:"lg",onClick:B[5]||(B[5]=()=>{G({entry:n(te)}),n(s)()})},{default:b(()=>[j(M(S.$t("show_all")),1)]),_:1},8,["to"])])])):x("",!0),t.subCategories?(i(),$(K,{key:1,"has-mobile-scrollable-area":"",categories:t.subCategories,"is-sub-category":"","onSelect:entry":G},null,8,["categories"])):x("",!0)])])):n(a)?(i(),h("div",Rn,[C(re,null,{default:b(()=>[C(le,{fetching:n(_),term:n(d),"product-suggestions":n(A),"onClick:close":q,"onAfter:click:all":W,"onAfter:click:result":q},null,8,["fetching","term","product-suggestions"])]),_:1})])):(i(),h("div",jn,[(i(),h(U,null,Q(5,ee=>C(z,{key:`category-loading-${ee}`,type:"link","is-full-width":""})),64))]))]),_:1})])])],2)):x("",!0)]),_:1})}}}),qn={class:"space-y-4"},Wn=["href"],Zn=["href"],Qn=T({__name:"FooterCategory",props:{footerCategory:{type:Object,default:()=>{}}},setup(t){return(e,o)=>{const s=Pe,c=oe,a=Ie;return i(),h("div",qn,[t.footerCategory.externalLink?(i(),h("a",{key:1,href:`${t.footerCategory.headlineLink}`,target:"_blank",rel:"noopener norefererr"},[(i(),$(s,{key:`footer-category-${t.footerCategory.headline}`,tag:"h6",size:"sm",type:"loud"},{default:b(()=>[j(M(t.footerCategory.headline),1)]),_:1}))],8,Wn)):(i(),$(c,{key:0,to:t.footerCategory.headlineLink},{default:b(()=>[(i(),$(s,{key:`footer-category-${t.footerCategory.headline}`,tag:"h6",size:"sm",type:"loud"},{default:b(()=>[j(M(t.footerCategory.headline),1)]),_:1}))]),_:1},8,["to"])),(i(),h("ul",{key:`footer-category-${t.footerCategory.headline}-list`,class:X(["grid",[t.footerCategory.gridClasses]])},[(i(!0),h(U,null,Q(t.footerCategory.links,(p,u)=>(i(),h("li",{key:`footer-category-link-${p.label}-${u}`,class:"mt-1"},[p.externalLink?(i(),h("a",{key:1,href:p.to,class:"text-md",target:"_blank",rel:"noopener norefererr"},[p.icon?(i(),$(a,{key:0,icon:p.icon,class:"mr-2","icon-size":"sm"},null,8,["icon"])):x("",!0),k("span",null,M(p.label),1)],8,Zn)):(i(),$(c,{key:0,to:p.to},{default:b(()=>[p.icon?(i(),$(a,{key:0,icon:p.icon},null,8,["icon"])):x("",!0),k("span",null,M(p.label),1)]),_:2},1032,["to"]))]))),128))],2))])}}}),Gn=["value"],Kn=["value"],Yn=T({__name:"LanguageSwitch",setup(t){var d,_;const e=ve(),o=st(),{trackShopChange:s}=be(),c=o.value.filter((m,y,r)=>r.findIndex(l=>l.internationalPrefix===m.internationalPrefix)===y||m.isActive).filter(m=>m.internationalPrefix!==e.value.internationalPrefix||m.shopId===e.value.shopId),a=Y((d=o.value.find(m=>m.isActive))==null?void 0:d.shopId),p=L(()=>{var y;const m=(y=o.value.find(r=>r.shopId===a.value))==null?void 0:y.internationalPrefix;return o.value.filter(r=>r.internationalPrefix===m)||[]}),u=Y((_=p.value.find(m=>m.isActive))==null?void 0:_.shopId);ge(a,()=>{p.value.length===1?u.value=a.value:u.value=p.value[0].shopId}),ge(u,()=>{v()});const v=()=>{if(u.value){const m=o.value.find(y=>y.shopId===u.value);if(!m)return;s(m),window.location.href="//"+m.domain}},f=(m,y)=>{const[r,l]=m.locale.split("-");return new Intl.DisplayNames([m.locale],{type:y}).of(y==="region"?l:r)};return(m,y)=>(i(),h("div",null,[pe(k("select",{"onUpdate:modelValue":y[0]||(y[0]=r=>fe(a)?a.value=r:null),class:"selection-appearance border-0 pl-0 pr-7 text-sm capitalize text-gray-700 focus:outline-none focus:ring-0"},[(i(!0),h(U,null,Q(n(c),r=>(i(),h("option",{key:r.shopId,value:r.shopId},M(f(r,"region")),9,Gn))),128))],512),[[De,n(a)]]),n(p).length>1?pe((i(),h("select",{key:0,"onUpdate:modelValue":y[1]||(y[1]=r=>fe(u)?u.value=r:null),class:"selection-appearance border-0 pl-0 pr-7 text-sm capitalize text-gray-700 focus:outline-none focus:ring-0"},[(i(!0),h(U,null,Q(n(p),r=>(i(),h("option",{key:r.shopId,value:r.shopId},M(f(r,"language")),9,Kn))),128))],512)),[[De,n(u)]]):x("",!0)]))}}),Jn=Le(Yn,[["__scopeId","data-v-07b64452"]]),Xn={class:"col-span-6 row-start-2 flex justify-center space-x-8 py-8 md:hidden"},eo=["href"],to=T({__name:"SocialLinks",props:{socialLinks:{type:Array,default:()=>[]}},setup(t){return(e,o)=>{const s=Ie;return i(),h("div",Xn,[(i(!0),h(U,null,Q(t.socialLinks,(c,a)=>(i(),h("a",{key:a,href:c.to,target:"_blank"},[C(s,{icon:c.icon,class:"size-8"},null,8,["icon"])],8,eo))),128))])}}}),no={class:"container"},oo={class:"mt-10 border-y border-black text-sm sm:mt-0"},so={class:"bg-white"},ao={class:"container grid grid-cols-6 gap-y-4 py-10"},io={key:0},lo={key:0,class:"text-xs text-gray-600"},ro={key:1,class:"mt-3 text-xs text-gray-600"},co={class:"mt-2"},uo=["href"],po={class:"col-span-6 row-start-1 space-y-1 break-words text-center sm:text-left md:col-span-2 md:row-start-auto md:pl-4"},mo={class:"text-md md:mt-1"},fo=["innerHTML"],go=T({__name:"Footer",setup(t){const{fetchByFolder:e,fetchBySlug:o}=he(),s=ve(),{formatCurrency:c}=Nt(),a=Y(),p=Y(),u=Y();Me(async()=>{a.value=await e("s/",void 0,"field"),p.value=await e("stores/stores",void 0,"field"),u.value=await o("newsletter")});const v=L(()=>{var r;return(r=a.value)==null?void 0:r.filter(({content:l})=>typeof l.headline<"u"&&l.headline!=="").map(l=>({label:l.content.headline,to:kt(l.full_slug,l.lang),externalLink:!1}))}),f=L(()=>{const r=Mt(p.value,"stores/stores");return r?At(r,g=>g.name).map(g=>({label:g.content.city,to:`/stores/${g.name}`})):void 0}),d=L(()=>{var r,l;return(l=(r=u.value)==null?void 0:r.content)==null?void 0:l.upper_text}),_=L(()=>{var r,l;return Oe((l=(r=u.value)==null?void 0:r.content)==null?void 0:l.lower_text)}),m=L(()=>[{headline:"About",headlineLink:"/s/about-us",externalLink:!1,sectionClasses:"col-span-3 md:col-span-2 ml-4 sm:ml-0",gridClasses:"md:grid md:grid-cols-2 justify-items-start",links:v.value},{headline:"Follow us",headlineLink:"https://www.instagram.com/editedofficial/",externalLink:!0,sectionClasses:"row-start-2 col-span-6 md:col-span-1 md:row-start-auto hidden md:block md:-ml-2",gridClasses:"",links:[{label:"Facebook",to:"https://www.facebook.com/EDITEDofficial/",icon:"UiSocialFacebook",externalLink:!0},{label:"Instagram",to:"https://www.instagram.com/editedofficial/",icon:"UiSocialInstagram",externalLink:!0},{label:"YouTube",to:"https://www.youtube.com/channel/UCc2Yrc7wH4-PzQ5iJyjBCKQ",icon:"UiSocialYoutube",externalLink:!0},{label:"Pinterest",to:"https://www.pinterest.de/editedofficial/",icon:"UiSocialPinterest",externalLink:!0},{label:"TikTok",to:"https://www.tiktok.com/@edited.official",icon:"UiSocialTiktok",externalLink:!0}]},{headline:"Stores & Retailer",headlineLink:"/stores",externalLink:!1,sectionClasses:"col-span-3 md:col-span-1 ml-3 md:-ml-2 text-right md:text-left",links:f.value}]),y=()=>{typeof window<"u"&&"Optanon"in window?window.Optanon.ToggleInfoDisplay():console.error("Privacy Policy was not initialized")};return(r,l)=>{const g=Lt,w=Qn,N=Jn,O=It,H=de,P=to;return i(),h("footer",no,[k("div",oo,[C(g,{type:"footer"})]),k("div",so,[k("div",ao,[(i(!0),h(U,null,Q(n(m),(D,q)=>(i(),h("div",{key:q,class:X(["flex flex-col justify-between",D.sectionClasses])},[C(w,{"footer-category":D},null,8,["footer-category"]),q===0?(i(),h("div",io,[k("a",{class:"mt-3 inline-flex shrink-0 grow-0 cursor-pointer items-center gap-2 whitespace-nowrap text-md leading-none tracking-wide transition duration-200 ease-linear hover:text-shadow",onClick:l[0]||(l[0]=W=>y())},M(r.$t("footer.cookie_details")),1),C(N),n(s).activeLpl?(i(),h("p",lo,M(r.$t("best_price_hint")),1)):x("",!0),n(s).enableShippingMinSpend?(i(),h("p",ro,M(r.$t("free_shipping_from_hint",{amount:n(c)(n(s).shippingMinSpend),shippingcost:n(c)(n(s).shippingPrice)})),1)):x("",!0),k("p",co,[n(s).ayUrl?(i(),h("a",{key:0,target:"_blank",class:"inline-flex shrink-0 grow-0 cursor-pointer items-center gap-2 whitespace-nowrap text-md leading-none tracking-wide transition duration-200 ease-linear hover:text-shadow",href:n(s).ayUrl}," ABOUT YOU shop ",8,uo)):x("",!0)])])):x("",!0)],2))),128)),k("div",po,[k("p",mo,M(n(d)),1),C(H,null,{default:b(()=>[C(O,{origin:"footer"})]),_:1}),k("div",{class:"footer-newsletter-info text-xs text-gray-600",innerHTML:n(_)},null,8,fo)]),n(m)?(i(),$(P,{key:0,"social-links":n(m)[1].links},null,8,["social-links"])):x("",!0)])])])}}}),ho={id:999999,path:"/c/responsibility",name:"Responsibility ",slug:"responsibility",description:"",parentId:99999,rootlineIds:[999999,999999],childrenIds:[999998,999997,999996,999995,999994,999993,999992],properties:[],isHidden:!1,depth:2,supportedFilter:[],shopLevelCustomData:{appCatName:[],appCatLocalizedConfig:[]},countryLevelCustomData:{appCatCountryName:[],appCatCountryLocalizedConfig:[]},children:[{id:99998,path:"/c/responsibility/product",name:"Product",slug:"product",description:"",parentId:999999,rootlineIds:[999999,99998],childrenIds:[],properties:[],isHidden:!1,depth:3,supportedFilter:[],shopLevelCustomData:{appCatName:[],appCatLocalizedConfig:[]},countryLevelCustomData:{appCatCountryName:[],appCatCountryLocalizedConfig:[]},children:[]},{id:999997,path:"/c/responsibility/production",name:"Production",slug:"production",description:"",parentId:999999,rootlineIds:[999999],childrenIds:[],properties:[],isHidden:!1,depth:3,supportedFilter:[],shopLevelCustomData:{appCatName:[],appCatLocalizedConfig:[]},countryLevelCustomData:{appCatCountryName:[],appCatCountryLocalizedConfig:[]},children:[]},{id:999996,path:"/c/responsibility/packaging",name:"Packaging",slug:"packaging",description:"",parentId:999999,rootlineIds:[999999],childrenIds:[],properties:[],isHidden:!1,depth:3,supportedFilter:[],shopLevelCustomData:{appCatName:[],appCatLocalizedConfig:[]},countryLevelCustomData:{appCatCountryName:[],appCatCountryLocalizedConfig:[]},children:[]},{id:999995,path:"/c/responsibility/people",name:"People",slug:"people",description:"",parentId:999999,rootlineIds:[999999],childrenIds:[],properties:[],isHidden:!1,depth:3,supportedFilter:[],shopLevelCustomData:{appCatName:[],appCatLocalizedConfig:[]},countryLevelCustomData:{appCatCountryName:[],appCatCountryLocalizedConfig:[]},children:[]},{id:999994,path:"/c/responsibility/materials",name:"Materials",slug:"materials",description:"",parentId:999999,rootlineIds:[999999],childrenIds:[],properties:[],isHidden:!1,depth:3,supportedFilter:[],shopLevelCustomData:{appCatName:[],appCatLocalizedConfig:[]},countryLevelCustomData:{appCatCountryName:[],appCatCountryLocalizedConfig:[]},children:[]},{id:999993,path:"/c/responsibility/certificates",name:"Certificates",slug:"certificates",description:"",parentId:999999,rootlineIds:[999999],childrenIds:[],properties:[],isHidden:!1,depth:3,supportedFilter:[],shopLevelCustomData:{appCatName:[],appCatLocalizedConfig:[]},countryLevelCustomData:{appCatCountryName:[],appCatCountryLocalizedConfig:[]},children:[]}]},yo=250,_o=3,vo=8,Co={class:"min-h-screen pb-0.5 font-default antialiased"},ko=["innerHTML"],bo={key:0,class:"w-1/3"},is=T({__name:"default",async setup(t){let e,o;const{$helpers:s}=_e(),c=ve(),{data:a,fetching:p}=([e,o]=Z(()=>Tt({params:{path:"/women",children:ye}})),e=await e,o(),e),{trackCustomerData:u,listenToUserItemsChanges:v,trackShopInit:f}=be(),{fetchBySlug:d}=he(),_=Y(),{openSideNavigation:m,flyoutMenuCategory:y,selectedSideNavigationEntry:r,isSideNavigationOpen:l}=we();[e,o]=Z(()=>Se()),await e,o();const{searchQuery:g,search:w}=Fe({key:"globalSearch"}),{user:N,isLoggedIn:O,customerType:H}=([e,o]=Z(()=>Ne()),e=await e,o(),e),P=()=>u({user:N.value,customerType:H.value,isLoggedIn:O.value}),D=L(()=>{var I,F;return["/women/new-in"].includes((I=y.value)==null?void 0:I.path)?(F=_.value)==null?void 0:F[0]:null}),q=L(()=>{var I;return(I=a.value)==null?void 0:I.categories}),W=L(()=>{var I,F;return(F=(I=q.value)==null?void 0:I.children)==null?void 0:F.concat(ho)}),te=L(()=>{var I;return(I=y.value)==null?void 0:I.children}),ie=Ft({delay:yo},I=>{I.length<_o||w({term:g.value,productLimit:vo})});f(),v(),P(),ge(N,P);const{data:G}=Ve("banner",()=>d("banner"));Me(async()=>{const{fetchByFolder:I}=he(),F=await Se(),E=await qe();await Promise.all([!F.data.value&&F.fetch(),!E.data.value&&E.fetch(),_.value=await I("lookbooks")].filter(Boolean))}),ge(g,ie);const{isExactActive:A}=xe({to:s.route.routes.basket.path}),R=L(()=>{var F,E,K;const I=((F=r.value)==null?void 0:F.rootlineIds)||[];return(K=(E=W.value)==null?void 0:E.find(J=>J.id===I[1]))==null?void 0:K.children}),S=L(()=>c.value.locale.split("-")[0]);at({bodyAttrs:{class:{"overflow-hidden":L(()=>l.value)}},htmlAttrs:{lang:S.value}});const B=I=>it(I);return(I,F)=>{const E=Et,K=de,J=Ct,le=$e,re=In,z=$t,se=Vn,ne=lt,ee=go,et=je;return i(),h("div",Co,[C(K,null,{default:b(()=>[C(Ce,{"enter-class":"opacity-0 -translate-y-4","enter-to-class":"opacity-100 translate-y-0","enter-active-class":"transform transition ease-out duration-300"},{default:b(()=>[n(G)?(i(),$(E,{key:0,blok:n(G).content,"published-at":n(G).published_at},null,8,["blok","published-at"])):x("",!0)]),_:1})]),_:1}),C(K,null,{default:b(()=>[I.$nuxt.isOffline?(i(),$(E,{key:0,blok:{},type:"alert"},{body:b(()=>[k("p",{innerHTML:I.$t("no_connection")},null,8,ko)]),_:1})):x("",!0)]),_:1}),C(re,{class:X({"hidden md:block":n(A)}),fetching:n(p),categories:n(W),"flyout-categories":n(te),"onClick:openSideNavigation":n(m)},{"flyout-teaser":b(()=>[n(D)?(i(),h("div",bo,[C(le,{to:`/women/lookbooks/${B(n(D).name)}`},{default:b(()=>[n(D).content&&n(D).content.teaser_image?(i(),$(J,{key:0,attrs:{src:n(D).content.teaser_image.filename,alt:n(D).content.teaser_image.alt,title:n(D).content.teaser_image.title}},null,8,["attrs"])):x("",!0)]),_:1},8,["to"])])):x("",!0)]),_:1},8,["class","fetching","categories","flyout-categories","onClick:openSideNavigation"]),C(z),C(se,{fetching:n(p),"root-categories":n(W),"sub-categories":n(R)},null,8,["fetching","root-categories","sub-categories"]),I.$slots.error?V(I.$slots,"error",{key:1}):(i(),$(ne,{key:0})),C(et,{ssr:""},{lazy:b(({visible:tt})=>[tt?(i(),$(ee,{key:0,class:X({"hidden md:block":n(A)})},null,8,["class"])):x("",!0)]),_:1}),F[0]||(F[0]=k("div",{id:"backdrop"},null,-1))])}}});export{is as default};