PageSourceSearch

https://www.soliver.cz/_nuxt/DfepyJsS.js

js soliver.cz collected 2026-10-05 09:47:13 UTC 45,903 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./rCdJ3fcE.js","./B0_CeJP0.js","./CZBXTvxN.js","./xrfCUQOt.js","./TUkLJ_g4.js","./BmRWyRGW.js","./SPsjeQza.js","./YTl5g4f8.js","./DhMPrxip.js","./BUHvLbyF.js","./B3_RvCIJ.js","./rLA9F1ag.js","./D-sxmFGy.js","./CoAZPSLy.js","./4Mj-CLsO.js","./DHbIP2K3.js","./DKTcN4jl.js","./Rv35tDu0.js","./BNueOhZx.js","./CBhcl9Le.js","./FEtobf99.js","./YI6fcIFl.js","./Cyp0wVG3.js","./Bkz089NN.js","./CIj9XeOg.js","./HeEAX-BM.js","./LAUX0KMx.js","./CldV7oMG.js","./BmEdNW5z.js","./0tWAd29C.js","./CTA.JyAytGj1.css","./CkXAa3y2.js","./Cg5KXnJx.js","./BYkmcup5.js","./DnxvP3Uf.js","./YYNi3XvP.js","./DxkoZynS.js","./C49yoTAV.js","./CMkDdt4y.js","./cK3e363u.js","./BB8xtdhi.js","./aJWbfrca.js","./G2bVnOnS.js","./C-dp79UA.js","./BDIbgz-N.js","./BBrIw6lM.js","./DccpBUBN.js","./B-1cMaiJ.js","./Bsnuwepq.js","./DUIY8h7_.js","./DKUHA7MY.js","./SizeButton.BEhql8FM.css","./_8Kw-TqM.js","./DHwA9mnE.js","./DHpO1Lv8.js","./lL2oOlC6.js","./CuAGVNhp.js","./ZJgOSgxZ.js","./D5QhnIGK.js","./CDxI0d9Q.js","./DPrwvoSw.js","./BLtLIS2D.js","./dz0sHpRy.js","./Bphu4n65.js","./i1n8Szsh.js","./DCvABeYa.js","./pS1P2_Nd.js","./DYhPEbvc.js","./CIRhHyhs.js","./BjHLzTCN.js","./BmZUG8Bb.js","./0CsgLPMx.js","./BYzjy_Mr.js"])))=>i.map(i=>d[i]);
2import{_ as Z}from"./Bsnuwepq.js";import{r as ot,f as he,p as it,a as Zt,b as lt,n as Qt,t as ea,e as ta,g as aa,h as oa,i as sa,j as na,k as ra,l as ia,m as la,q as ca,s as ua,v as ct,w as da,x as pa,y as te,C as ga,z as Le,A as n,B as We,D as Ke,E as ut,F as oe,P as dt,G as ma,H as be,I as Ce,J as fa,K as W,L as Se,M as k,N as me,O as we,Q as va,R as qe,S as pt,d as V,o as i,T as C,U as G,V as ie,c as L,W as S,X as _,Y as fe,u as t,Z as se,$ as P,a0 as gt,a1 as ya,a2 as xe,a3 as K,a4 as ne,a5 as R,a6 as Ge,a7 as z,a8 as ha,a9 as ke,aa as Ca,ab as X,ac as Ue,ad as _a,ae as _e,af as st,ag as ba,ah as xa,ai as mt,aj as ka,ak as La,al as re,am as Sa,an as ft,ao as wa,ap as Pa,aq as $a,ar as Ta,as as Da,at as vt,au as za,av as nt,aw as Ia,ax as Ba,ay as Oa,az as Ra,aA as Pe,aB as $e,aC as Ea,aD as Fa,aE as Aa,aF as Ha,aG as Ma,aH as Na,aI as ja,aJ as Va}from"./B0_CeJP0.js";import qa from"./CIj9XeOg.js";import{g as Ua,u as Wa}from"./CdBURr3G.js";import Ka from"./DnxvP3Uf.js";import{_ as Ga}from"./DccpBUBN.js";import{_ as Ya}from"./_8Kw-TqM.js";import{u as Ja}from"./C-dp79UA.js";import{u as yt,a as Xa,_ as Za,b as Qa,c as eo}from"./rLA9F1ag.js";import to from"./qmw2ajXX.js";import{u as ao}from"./Bkz089NN.js";import{u as oo}from"./C26R0QwR.js";import{u as so,_ as no}from"./B7qJ-oUn.js";import{c as ro,u as io}from"./BmRWyRGW.js";import{p as lo}from"./DV7ztfcr.js";import{b as co}from"./TUkLJ_g4.js";import{g as uo,s as rt,b as po,u as go}from"./DtzSTALS.js";import{u as mo}from"./C49yoTAV.js";import{c as Me}from"./DGbUKGzm.js";import"./CZBXTvxN.js";import"./Cyp0wVG3.js";import"./R65Gaj1O.js";import"./B-1cMaiJ.js";import"./BDIbgz-N.js";import"./DUIY8h7_.js";import"./DKUHA7MY.js";import"./BBrIw6lM.js";import"./D-sxmFGy.js";import"./CoAZPSLy.js";import"./4Mj-CLsO.js";import"./DHbIP2K3.js";import"./DhMPrxip.js";import"./DKTcN4jl.js";import"./Rv35tDu0.js";import"./BNueOhZx.js";import"./CBhcl9Le.js";import"./FEtobf99.js";import"./YI6fcIFl.js";import"./HeEAX-BM.js";import"./LAUX0KMx.js";import"./CldV7oMG.js";import"./BmEdNW5z.js";import"./0tWAd29C.js";import"./CkXAa3y2.js";import"./Cg5KXnJx.js";import"./BYkmcup5.js";import"./YYNi3XvP.js";import"./DxkoZynS.js";import"./CMkDdt4y.js";import"./cK3e363u.js";import"./BB8xtdhi.js";import"./aJWbfrca.js";import"./G2bVnOnS.js";import"./DHwA9mnE.js";import"./DHpO1Lv8.js";import"./lL2oOlC6.js";import"./CuAGVNhp.js";import"./ZJgOSgxZ.js";import"./D5QhnIGK.js";import"./CDxI0d9Q.js";import"./DPrwvoSw.js";import"./BLtLIS2D.js";import"./dz0sHpRy.js";import"./Bphu4n65.js";import"./i1n8Szsh.js";import"./DCvABeYa.js";import"./DYhPEbvc.js";import"./CIRhHyhs.js";import"./pS1P2_Nd.js";function fo(e){vo(e);const s=da(e),{dispatch:a}=e,c=()=>e[pa],o=co(e,{responseIdSelector:ot,fetchProductsActionCreator:he,fetchMoreProductsActionCreator:ct,facetResponseSelector:ua,isFacetLoadingResponseSelector:ca,requestIdSelector:la,seri
2alizer:lo,parametersDefinition:ia,activeParametersSelector:ra,restoreActionCreator:na,isLoadingSelector:sa,errorSelector:oa,pageSelector:aa,perPageSelector:ta,totalEntriesSelector:ea,numberOfProductsSelector:Qt});return{...s,...o,get state(){const{products:r,error:l,isLoading:u,responseId:p}=c().productListing;return{products:r,error:l,isLoading:u,responseId:p}},promoteChildToParent(r){a(it({child:r}))},refresh:()=>a(he()),executeFirstRequest(){ot(c())===""&&a(he())}}}function vo(e){return e.addReducers({productListing:lt,commerceContext:Zt,configuration:ro}),!0}function yo(e){return e.addReducers({productListing:lt}),{fetchProductListing:he,fetchMoreProducts:ct,promoteChildToParent:it}}const Ne=["tagneckline","urlfiltercolor","filterdimensionssize","filterdimensionswidth","filterdimensionslength","materialfilter","filterpattern","ec_brand","ec_price","tagoccasion","taglength","fitdetails","tagmodell","tagrise","tagleg","subclass"];function ht(e){const s=te(),{activeFacetControllers:a}=yt(ga),{debugLog:c}=Le("seo"),o=n(()=>h("metaDescription")),r=n(()=>h("metaTitle")),l=n(()=>h("seoHeadline")),u=n(()=>h("seoDescription")),p=n(()=>h("seoCTAs")),f=n(()=>h("categoryBannerURL")),y=n(()=>o.value||r.value||l.value||u.value||p.value||f.value),b=n(()=>a.value?.length?a.value?.reduce((v,g)=>v+g.state.values.filter(m=>m.state==="selected").length,0)||0:Object.keys(s.query).reduce((v,g)=>{const m=g.startsWith("f-")?g.slice(2):g;return v+(Ne.includes(m)?1:0)},0)),$=n(()=>e.value?.countryLevelCustomData?.seoFilterOptions),B=n(()=>{if(b.value>1)return null;if(!a.value?.length||!b.value){for(const x in s.query){const I=x.startsWith("f-")?x.slice(2):x;if(Ne.includes(I)){const T=s.query[x];return`${I}:${T}`}}return null}const v=a.value[0].state.facetId,g=a.value[0].state.values.find(x=>x.state==="selected");if(v==="ec_price"||g==null)return null;const m=g.value?.toLowerCase(),w=Ne.find(x=>x===v);return w?`${w}:${m}`:null}),F=n(()=>
2{if(!B.value||!e.value||!$.value)return null;const v=I=>I.toLowerCase().replace(/^f-/,""),g=v(B.value),m=$.value;if(!g||!m)return null;const w=Object.keys(m).find(I=>v(I)===g),x=w?m[w]:null;return c({type:"filter-meta-data",key:g,matchedKey:w,options:m,result:x}),x});function h(v){return F.value?.[v]}return{categoryFilterMetaDescription:o,categoryFilterMetaTitle:r,categoryFilterSeoHeadline:l,categoryFilterSeoDescription:u,categoryFilterSeoCTAs:p,categoryFilterCategoryBannerURL:f,isCategoryFilterSeoAvailable:y,appliedFilterValueCount:b,categoryFilterMetaData:F,seoKey:B}}function Ct(e){const{$i18n:s}=We(),{debugLog:a}=Le("seo"),c=Ke(),o=ut(),r=te(),{categoryFilterSeoDescription:l,categoryFilterSeoHeadline:u,categoryFilterSeoCTAs:p,categoryFilterCategoryBannerURL:f,categoryFilterMetaDescription:y,categoryFilterMetaTitle:b,seoKey:$}=ht(e),B=ma(),{link:F,color:h}=mo(B),v=n(()=>e.value?.name),g=n(()=>{const A=v.value?.toLowerCase(),H=e.value?.countryLevelCustomData?.metaDescription,q=e.value?.shopLevelCustomData?.metaDescription;return y.value||H||q||s.t("plp.seo_description",{category:Me(A)})}),m=n(()=>{const A=e.value?.countryLevelCustomData?.metaTitle,H=e.value?.shopLevelCustomData?.metaTitle;return b.value||A||H||s.t("plp.seo_title",{category:Me(v.value)})}),w=n(()=>u.value||e.value?.countryLevelCustomData?.seoHeadline||e.value?.name),x=n(()=>l.value||e.value?.countryLevelCustomData?.seoDescription),I=n(()=>p.value||e.value?.countryLevelCustomData?.seoCTAs),T=n(()=>f.value||e.value?.countryLevelCustomData?.categoryBannerURL||e.value?.shopLevelCustomData?.categoryBannerURL),E=n(()=>{if(!e.value)return[];const A=c.value?.shopId;if(!A)return[];const H=Ua(e.value.path).map(q=>({...q,value:Me(q.value),to:o(`${be.category.path}${q.to}`)+"/"}));return H.splice(0,1,{value:"s.Oliver",to:o(`${be.home.path}`)}),uo(H,oe[A]??"")}),j=(A,H)=>{const q=A?.map((Q,Te)=>(B.value=Q,{"@type":"ListItem",position:Te+1+dt*(H??0),item:{"@type":"Product",name:Q.ec_description?`${Q.ec_description} - ${h.value}`:"",url:`https://${oe[c.value.shopId]}${F.value}`}}));return{"@context":"https://schema.org","@type":"ItemList",name:`${e.value?.name} ${H&&H>0?"- "+s.t("pagination.page",{number:H+1}):""}`,url:`https://${oe[c.value.shopId]}${r.fullPath}`,numberOfItems:A?.length||0,itemListElement:q}};return a({type:"category-seo-data",category:e.value,countryLevelCustomData:e.value?.countryLevelCustomData,metaTitle:m.value,metaDescription:g.value,pageHeadline:w.value,pageDescription:x.value,seoKey:$.value,seoFilterOptions:e.value?.countryLevelCustomData?.seoFilterOptions}),{title:m,metaDescription:g,categoryBreadcrumbSchema:E,pageHeadline:w,pageDescription:x,pageCTAs:I,pageCategoryBannerURL:T,generateCategoryProductsSchema:j}}function ho(e){const s=k(),a=k(),c=k(),o=k(0),r=k(0),l=k(0),u=k(0),p=k(!1),f=k(!1),y=n(()=>$.value?l.value<x.value:!0),b=me(()=>e.referenceElement?.value),$=me(()=>e.showOnlyBottom),B=me(()=>e.offset),F=n(()=>b.value),{height:h}=Ce(F),{height:v}=Ce(a),{top:g}=Ce(s),{y:m}=fa(window,{eventListenerOptions:{passive:!0}}),w=()=>F.value?h.value+(B.value||0):B.value||0,x=n(()=>$.value?v.value:0),I=()=>{const j=m.value,A=j-u.value,H=j>0&&o.value>0;if(s.value&&H){const q=r.value;f.value=Math.abs(g.value-q)<2}else f.value=!1;x.value&&(Math.abs(A)>0&&(p.value=A>0,$.value?(l.value+=A,l.value=Math.max(0,Math.min(l.value,x.value)),r.value=o.value-l.value):r.value=o.value),u.value=j)},T=()=>{o.value=w(),r.value=o.value,f.value=!1},E=()=>{r.value=o.value,l.value=0,f.value=!1};return W(m,()=>requestAnimationFrame(I)),W(h,()=>{o.value=w(),r.value=o.value}),W(v,()=>{$.value&&(l.value=Math.min(l.value,v.value),r.value=o.value-l.value)}),W($,j=>{j||E()}),Se(()=>{T(),u.value=m.value}),{wrapperRef:s,mainContentRef:a,bottomContentRef:c,dynamicTop:r,isScrollingDown:p,scrollDelta:l,isSticking:f,isMainVisible:y,resetPosition:E}}function Co(e){const{addTrailingSlash:s}=we(),{debugLog:a}=Le("seo"),{categoryFilterMetaData:c}=ht(e),o=te(),r=Ke(),l=n(()=>({categoryId:String(e.value?.id),shopIds:rt.map(v=>v.shopId)})),{data:u,execute:p}=va("getCategoryHreflang","category-hreflang",l,{immediate:!1}),f=async()=>(await p(),rt.reduce((v,{locale:g,shopId:m,isDefault:w},x)=>{const I=u.value?.[x];return I?[...v,{locale:po(g),href:s(`https://${oe[m]}${be.category.path}${I}`),default:w}]:v},[])),y=async()=>e.value?.id?(await f()||[]).flatMap(g=>{const m={rel:"alternate",hreflang:g.locale,href:g.href,key:`alternate-${g.locale}`};return g.locale==="en-GB"?[m,{...m,hreflang:"x-default",key:"alternate-x-default"}]:[m]}):[],b=n(()=>e.value&&o.path===`/c${e.value.path}/`),$=n(()=>!b.value||!e.value?null:h()),B=k([]),F=async()=>{b.value&&e.value?.id?B.value=await y():B.value=[]};qe(F),pt(()=>{if(!$.value)return{};const{canonical:v,robots:g}=$.value;return{meta:[{name:"robots",content:g}],link:v?[{rel:"canonical",key:"canonical",href:v},...B.value]:[...B.value]}});function h(){const v=o.query,g=new URLSearchParams,m=Object.entries(v).filter(([E])=>E.startsWith("f-"));m.forEach(([E,j])=>{g.append(E,j)});const w=g.toString(),x=[`https://${oe[r.value.shopId]}${o.path}
2`,w].filter(Boolean).join("?");let I=e.value?.countryLevelCustomData?.metaRobots||"index,follow";m.length>0&&!c.value&&(I="noindex,follow");const T=I.startsWith("index")?e.value?.shopLevelCustomData?.CanonicalUrl??x:null;return a({type:"category-meta-and-canonical",filtersCount:m.length,categoryFilterMetaData:c.value,customData:e.value?.countryLevelCustomData,robots:I,canonical:T}),{canonical:T,robots:I}}return{updateSeoData:async()=>{await F()}}}const _o={key:0},bo=V({__name:"CategoryPreListingContent",props:{blok:{}},setup(e){const s=(a,c)=>{const o=se(c);return o==="div"?o:`${a>=2?"Lazy":""}${o}`};return(a,c)=>(i(),C("section",null,[(i(!0),C(G,null,ie(e.blok,(o,r)=>(i(),L(t(Z),{key:o?._uid,appear:""},{default:S(()=>[o?._uid?(i(),C("div",_o,[_(qa,{blok:o,position:r,layout:"listing_page"},{default:S(()=>[(i(),L(fe(s(r,o.component)),{blok:o,important:r<2,"hydrate-on-visible":r>=2,preload:t(se)(o.component)==="CMSImage"&&r<2?!0:void 0,sizes:t(se)(o.component)==="CMSImage"?"xs:100vw sm:100vw md:100vw lg:100vw xl:80vw 2xl:80vw 3xl:1440px":void 0,position:r,layout:o?.fields?.tracking?.fields?.segment_layout||"listing_page"},null,8,["blok","important","hydrate-on-visible","preload","sizes","position","layout"]))]),_:2},1032,["blok","position"])])):P("",!0)]),_:2},1024))),128))]))}}),_t=Object.assign(bo,{__name:"CategoryPreListingContent"}),xo=V({__name:"CategoryBreadcrumbs",props:{category:{},parentCategory:{}},setup(e){const s=e,{smaller:a}=gt(),c=a("md"),o=ut(),r=k([]),{getBreadcrumbsFromCategory:l}=Wa(),u=async()=>{const f=(await l(s.category)).map(y=>({...y,to:y.to!=="/"?o(`${be.category.path}${y.to}`)+"/":o(y.to)}));return c.value?f.slice(-2):f};return Se(async()=>{r.value=await u()}),W(()=>s.category?.id,async()=>{r.value=await u()},{immediate:!0}),(p,f)=>(i(),L(t(ya),{items:t(r)},null,8,["items"]))}}),ko=Object.assign(xo,{__name:"CategoryBreadcrumbs"}),Lo=V({__name:"CategorySideNavigationItem",props:{category:{},isRoot:{type:Boolean},isActive:{type:Boolean}},setup(e){const s=e,{buildCategoryPath:a}=we();return(c,o)=>(i(),L(fe(e.isRoot?"span":t(Ge)),{class:R(["inline-block w-fit py-px text-lg text-black",{"font-bold":e.isActive}]),to:t(a)(s.category),raw:""},{default:S(()=>[xe(K(("getCategoryLabel"in c?c.getCategoryLabel:t(ne))(e.category)),1)]),_:1},8,["class","to"]))}}),bt=Object.assign(Lo,{__name:"CategorySideNavigationItem"}),So=["data-testid"],wo=V({__name:"CategorySideNavigationChildren",props:{subCategories:{},currentCategory:{},parentDataTestId:{}},setup(e){const s=e,a=o=>s.parentDataTestId?`${s.parentDataTestId}_${o}`:`sub-category-${o}`,c=o=>{const r=s.currentCategory?.path,l=o.path;return r?.startsWith(l)||!1};return(o,r)=>(i(),C("ul",null,[(i(!0),C(G,null,ie(e.subCategories,(l,u)=>(i(),C("li",{key:`category-navigation-item-${l.id}`,"data-testid":a(u),class:"my-2.5 flex"},[(i(),L(bt,{key:`category-navigation-item-${l.id}-${c(l)}-inner`,category:l,"is-active":c(l),class:"!text-md capitalize"},null,8,["category","is-active"]))],8,So))),128))]))}}),Po=Object.assign(wo,{__name:"CategorySideNavigationChildren"}),$o={class:"h-dvh pb-8"},To={key:0,class:"h-full overflow-y-scroll scrollbar-hide"},Do={class:"mb-5 mt-2 first:mt-0 last:mb-0"},zo=V({__name:"CategorySideNavigation",props:{rootCategories:{},currentCategory:{},fetchingCategories:{type:Boolean}},setup(e){const s=e,a=n(()=>{const c=s.currentCategory;return s.rootCategories.find(o=>c?.rootlineIds.some(r=>r===o.id))});return(c,o)=>(i(),C("div",$o,[e.currentCategory&&t(a)?(i(),C("div",To,[z("div",Do,[_(bt,{category:t(a),"is-active":t(a).id===e.currentCategory?.id,"is-root":"",class:"font-bold capitalize"},null,8,["category","is-active"]),t(a).children?.length?(i(),L(Po,{key:0,"current-category":e.currentCategory,"sub-categories":t(a).children},null,8,["current-category","sub-categories"])):P("",!0)])])):P("",!0)]))}}),Io=Object.assign(zo,{__name:"CategorySideNavigation"}),Bo={class:"w-full"},Oo={key:0,class:"whitespace-break-spaces break-word hyphens-auto"},Ro={key:1,class:"whitespace-break-spaces break-word hyphens-auto"},Eo=V({__name:"CategoryHorizontalNavigationImageLinks",props:{categories:{type:Array,default:()=>[]},currentCategory:{type:Object,default:null},rootCategories:{type:Array,default:()=>[]}},setup(e){const{getLocalizedCategoryRoute:s}=we(),a=te(),c=o=>s(o)===a.path;return(o,r)=>{const l=Ga;return i(!0),C(G,null,ie(e.categories,(u,p)=>(i(),L(t(Ge),{key:u.id,to:t(s)(u),class:"cursor-pointer shrink-0 flex flex-col !gap-2 w-[87px] md:w-[172px]","aria-label":p===0?o.$t("filter.all_label"):o.$t("accessibility.plp.productCardSibling",{name:t(ne)(u)}),"aria-current":c(u)?"page":void 0},{default:S(()=>[z("div",Bo,[_(l,{image:{hash:String(u.shopLevelCustomData?.categoryImageURL||"")},"image-loading":"lazy",alt:p===0?o.$t("filter.all_label"):t(ne)(u),fit:"cover",sizes:t(ha),"aspect-ratio":"3/4"},null,8,["image","alt","sizes"])]),z("p",{class:R(["uppercase text-sm lg:text-md w-full flex items-center",c(u)?"font-semibold":""])},[p===0?(i(),C("span",Oo,K(o.$t("filter.all_label")),1)):(i(),C("span",Ro,K(t(ne)(u)),1))],2)]),_:2},1032,["to","aria-label","aria-current"]))),128)}}}),Fo=Object.assign(Eo,{__name:"CategoryHorizontalNavigationImageLinks"}),Ao={key:0},Ho={key:1},Mo=V({__name:"CategoryHorizontalNavigationButtonLinks",props:{categories:{type:Array,default:()=>[]},currentCategory:{type:Object,default:null},rootCategories:{type:Array,default:()=>[]}},emits:["scroll-to-top"],setup(e){const s=te(),{getLocalizedCategoryRoute:a}=we(),c=o=>a(o)===s.path;return(o,r)=>(i(!0),C(G,null,ie(e.categories,(l,u)=>(i(),L(t(Ge),{key:l.id,class:R(["!text-sm lg:!text-md shrink-0 snap-start snap-always border-0 uppercase",{"!font-bold border-b border-b-black":c(l)}]),size:"md",to:t(a)(l),"accessibility-label":t(ne)(l),"aria-current":c(l)?"page":void 0,"data-testid":c(l)?"subcategory-slider-item-active":"subcategory-slider-item",onClick:r[0]||(r[0]=p=>o.$emit("scroll-to-top"))},{default:S(()=>[u===0?(i(),C("span",Ao,K(o.$t("filter.all_label")),1)):(i(),C("span",Ho,K(t(ne)(l)),1))]),_:2},1032,["class","to","accessibility-label","aria-current","data-testid"]))),128))}}),No=Object.assign(Mo,{__name:"CategoryHorizontalNavigationButtonLinks"}),jo=V({__name:"CategoryHorizontalNavigation",props:{categories:{type:Array,default:()=>[]},currentCategory:{type:Object,default:null},rootCategories:{type:Array,default:()=>[]},forceTextOnly:{type:Boolean,default:!1},classes:{type:String,default:""}},emits:["scroll-to-top"],setup(e){const s=e,a=n(()=>s.forceTextOnly?!1:!!s.categories?.[0]?.shopLevelCustomData?.categoryImageURL);return(c,o)=>{const r=Ka,l=Fo;return i(),C("div",{class:R(["group relative overflow-x-hidden",e.classes]),role:"navigation","data-testid":"subcategory-slider"},[_(t(Ya),{"with-arrows":"","spaced-items":!1,"hide-disabled-arrows":"",class:R(["overflow-x-auto overflow-y-hidden",{"py-1.5 md:py-2":!t(a)}]),"slides-to-move":3,"slider-class":`px-4 md:px-8 gap-4 ${t(a)?"!gap-1 md:px-0 md:!gap-2":"px-4"}`,"hide-scrollbar":"",snap:!1,role:"group"},{arrows:S(({isNextEnabled:u,isPrevEnabled:p,next:f,prev:y,isScrollable:b})=>[_(t(Z),{duration:100},{default:S(()=>[p&&b?(i(),C("div",{key:0,class:R({"after:absolute after:pointer-events-none after:top-1/2 after:-translate-y-1/2 after:left-0 after:z-[1] after:bg-gradient-to-r after:from-white after:to-transparent":p,"opacity-0":!p,"after:w-20 after:h-full":t(a),"after:size-20":!t(a)})},[_(t(ke),{"accessibility-label":c.$t("accessibility.sliders.prevCta"),type:"raw",class:R(["absolute p-1 top-1/2 left-4 md:left-8 -translate-y-1/2 size-6 md:size-7 backdrop-blur-sm bg-white/60 text-neutral-700 flex z-[4] border border-1 border-black/10",{"opacity-0":!p}]),onClick:y},{default:S(()=>[_(r,{class:"rotate-180"})]),_:1},8,["accessibility-label","class","onClick"])],2)):P("",!0)]),_:2},1024),_(t(Z),{duration:100},{default:S(()=>[u&&b?(i(),C("div",{key:0,class:R({"after:absolute after:pointer-events-none after:top-1/2 after:-translate-y-1/2 after:right-0 after:z-[1] after:bg-gradient-to-l after:from-white after:to-transparent":u,"opacity-0":!u,"after:w-20 after:h-full":t(a),"after:size-20":!t(a)})},[_(t(ke),{"accessibility-label":c.$t("accessibility.sliders.nextCta"),type:"raw",class:R(["absolute p-1 top-1/2 right-4 md:right-8 -translate-y-1/2 size-6 md:size-7 backdrop-blur-sm bg-white/60 text-neutral-700 flex z-[4] border border-1 border-black/10",{"opacity-0":!u}]),"data-testid":"subcategory-slider-next-button",onClick:f},{default:S(()=>[_(r)]),_:1},8,["accessibility-label","class","onClick"])],2)):P("",!0)]),_:2},1024)]),default:S(()=>[t(a)?(i(),L(l,{key:0,categories:e.categories,"current-category":e.currentCategory,"root-categories":e.rootCategories},null,8,["categories","current-category","root-categories"])):P("",!0),t(a)?P("",!0):(i(),L(No,{key:1,categories:e.categories,"current-category":e.currentCategory,"root-categories":e.rootCategories,onScrollToTop:o[0]||(o[0]=u=>c.$emit("scroll-to-top"))},null,8,["categories","current-category","root-categories"]))]),_:1},8,["class","slider-class"])],2)}}}),Vo=Object.assign(jo,{__name:"CategoryHorizontalNavigation"}),qo=["media","type","sizes","srcset"],Uo=["media","type","sizes","srcset"],Wo=["src","alt","loading","decoding","fetchpriority"],Ko=V({__name:"ResponsivePicture",props:{mobileSrc:{},desktopSrc:{},alt:{default:""},mobileSizes:{default:"100vw"},desktopSizes:{default:"100vw"},loading:{default:"eager"},decoding:{default:"async"},fetchpriority:{default:"high"},imgClass:{default:""},provider:{default:"soliver"},format:{default:""},breakpoint:{default:768},preload:{type:[Boolean,Object],default:!1}},emits:["load","error"],setup(e,{emit:s}){const a=e,c=s,o=k(),r=Ja(),l=n(()=>a.format?`image/${a.format}`:void 0),u=h=>h?r(h,{},{provider:a.provider}):"",p=n(()=>a.mobileSrc?r.getSizes(a.mobileSrc,{sizes:a.mobileSizes,modifiers:a.format?{fmt:a.format}:{},provider:a.provider}).srcset:""),f=n(()=>a.desktopSrc?r.getSizes(a.desktopSrc,{sizes:a.desktopSizes,modifiers:a.format?{fmt:a.format}:{},provider:a.provider}).srcset:""),y=n(()=>u(a.desktopSrc||a.mobileSrc)),b=h=>{c("load",h)},$=h=>{c("error",h)},F=We().isHydrating;return Se(()=>{o.value&&o.value.complete&&F&&(o.value.getAttribute("data-error")?c("error",new Event("error")):c("load",new Event("load")))}),(h,v)=>(i(),C("picture",null,[t(p)?(i(),C("source",{key:0,media:`(max-width: ${e.breakpoint-1}px)`,type:t(l),sizes:e.mobileSizes,srcset:t(p)},null,8,qo)):P("",!0),t(f)?(i(),C("source",{key:1,media:`(min-width: ${e.breakpoint}px)`,type:t(l),sizes:e.desktopSizes,srcset:t(f)},null,8,Uo)):P("",!0),z("img",{ref_key:"imgEl",ref:o,src:t(y),alt:e.alt,loading:e.loading,decoding:e.decoding,fetchpriority:e.fetchpriority,class:R(e.imgClass),onLoad:b,onError:$},null,42,Wo)]))}}),Go=Object.assign(Ko,{__name:"ResponsivePicture"}),Yo={class:"flex flex-col"},Jo={key:0},Xo=V({name:"CategoryHeaderBannerText",__name:"CategoryHeaderBannerText",props:{headline:{default:void 0},description:{default:void 0},count:{default:void 0},countKey:{default:void 0},seoCtas:{default:()=>[]},headlineTag:{default:"h1"},size:{default:"sm"},tone:{default:"dark"},testId:{default:void 0},descriptionClass:{default:""},ctaClass:{default:""},ctaWrapperClass:{default:""}},emits:["click:seo-cta"],setup(e,{emit:s}){const a=e,c=s,o=n(()=>a.tone==="light"),r=n(()=>[a.size==="lg"?"text-h4-sm md:text-h4-lg":"text-h5-sm md:text-h5-lg",o.value?"text-white":""]),l=n(()=>[a.size==="lg"?"text-sm":"text-xs md:text-sm",o.value?"text-white":""]),u=n(()=>
2["w-full md:w-[257px] h-[41px] !text-md md:!text-lg px-6 py-[10px] border transition-colors",o.value?"":"!border-black md:hover:bg-black md:hover:text-white",a.ctaClass]);return(p,f)=>(i(),C("div",Yo,[e.headline?(i(),L(t(Ca),{key:0,tag:e.headlineTag,"data-testid":e.testId,"is-uppercase":""},{default:S(()=>[z("p",{class:R(t(r))},[xe(K(e.headline)+" ",1),(i(),L(t(Z),{key:e.countKey},{default:S(()=>[e.count?(i(),C("span",Jo,"("+K(e.count)+")",1)):P("",!0)]),_:1}))],2)]),_:1},8,["tag","data-testid"])):P("",!0),e.description?(i(),C("p",{key:1,class:R(["pt-4 leading-normal md:leading-5",[t(l),e.descriptionClass]])},K(e.description),3)):P("",!0),e.seoCtas.length?(i(),C("div",{key:2,class:R(["flex flex-col md:flex-row gap-4 pt-4 md:pt-6",e.ctaWrapperClass])},[(i(!0),C(G,null,ie(e.seoCtas,(y,b)=>(i(),L(t(ke),{key:b,size:"md",type:"secondary",variant:t(o)?"inverted":"normal",class:R(t(u)),onClick:$=>c("click:seo-cta",y.href,b)},{default:S(()=>[xe(K(y.text),1)]),_:2},1032,["variant","class","onClick"]))),128))],2)):P("",!0)]))}}),ge=Object.assign(Xo,{__name:"CategoryHeaderBannerText"}),Zo=["data-header-banner-variant"],Qo={class:"basis-5/12"},es={class:"flex flex-col justify-center px-4 md:h-full md:px-8 md:py-6"},ts={class:"basis-7/12 md:flex md:items-center"},as={class:"relative w-full overflow-hidden aspect-[3/2] md:aspect-[21/9]"},os={class:"px-4 pb-5 md:hidden"},ss={class:"relative w-full overflow-hidden aspect-[3/2] md:aspect-[36/9]"},ns={class:"pointer-events-none absolute inset-y-0 left-0 hidden w-2/3 lg:w-1/2 p-8 lg:p-16 items-center md:flex"},rs={class:"w-full lg:p-6"},is={class:"basis-1/4"},ls={class:"sticky top-header flex flex-col px-4 md:px-8"},cs={class:"basis-3/4 min-w-0"},je="active-category-breadcrumb",Ve="max-md:hidden",us=V({name:"CategoryHeaderBanner",__name:"CategoryHeaderBanner",props:{variant:{},banner:{default:void 0},text:{default:()=>({})}},emits:["click:seo-cta"],setup(e,{emit:s}){const a=e,c=s,o=(f,y)=>c("click:seo-cta",f,y),r=n(()=>{switch(a.variant){case"imageText":return"flex flex-col gap-6 mb-6 md:flex-row md:mb-4";case"fullWidth":return"relative mb-6 md:mb-4";default:return"flex flex-col gap-5 mb-6 md:gap-6 md:mb-0.5 lg:flex-row lg:!gap-0"}}),l=n(()=>a.banner?.href?_a:"div"),u=n(()=>a.banner?.href?{to:a.banner.href}:{}),p=n(()=>({mobileSrc:a.banner?.mobileImageUrl??"",desktopSrc:a.banner?.desktopImageUrl??"",alt:a.banner?.alt??"",loading:"eager",decoding:"async",fetchpriority:"high",preload:{fetchPriority:"high"},provider:"soliver",imgClass:"block size-full object-cover"}));return(f,y)=>{const b=Go;return i(),C("section",{class:R(t(r)),"data-header-banner-variant":e.variant},[e.variant==="imageText"?(i(),C(G,{key:0},[z("div",Qo,[z("div",es,[_(ge,X(e.text,{"headline-tag":"h1",size:"sm","test-id":je,"description-class":Ve,"cta-wrapper-class":"md:!flex-col lg:!flex-row","onClick:seoCta":o}),null,16)])]),z("div",ts,[(i(),L(fe(t(l)),X(t(u),{class:"block w-full"}),{default:S(()=>[z("div",as,[_(b,X(t(p),{"mobile-sizes":"xs:100vw sm:100vw","desktop-sizes":"md:58.333vw lg:58.333vw xl:58.333vw xxl:58.333vw 2xl:58.333vw"}),null,16)])]),_:1},16))])],64)):e.variant==="fullWidth"?(i(),C(G,{key:1},[z("div",os,[_(ge,X(e.text,{description:void 0,"headline-tag":"p",size:"lg","onClick:seoCta":o}),null,16)]),(i(),L(fe(t(l)),X(t(u),{class:"block w-full"}),{default:S(()=>[z("div",ss,[_(b,X(t(p),{"mobile-sizes":"xs:100vw sm:100vw","desktop-sizes":"md:100vw lg:100vw xl:100vw xxl:100vw 2xl:100vw"}),null,16)])]),_:1},16)),y[0]||(y[0]=z("div",{class:"pointer-events-none absolute inset-0 hidden bg-gradient-to-t from-black/70 to-transparent md:block"},null,-1)),z("div",ns,[z("div",rs,[_(ge,X(e.text,{"headline-tag":"h1",size:"lg",tone:"light","test-id":je,"description-class":Ve,"cta-class":"pointer-events-auto","cta-wrapper-class":"md:!flex-col lg:!flex-row","onClick:seoCta":o}),null,16)])])],64)):(i(),C(G,{key:2},[z("div",is,[z("div",ls,[_(ge,X(e.text,{"headline-tag":"h1",size:"lg","test-id":je,"description-class":Ve,"cta-wrapper-class":"lg:!flex-col","onClick:seoCta":o}),null,16)])]),z("div",cs,[Ue(f.$slots,"subcategory")])],64))],10,Zo)}}}),ds=Object.assign(us,{__name:"CategoryHeaderBanner"}),ps=V({name:"DynamicStickyWrapper",__name:"DynamicStickyWrapper",props:{referenceElement:{default:void 0},showOnlyBottom:{type:Boolean,default:!1},offset:{default:0},zIndex:{default:3},stickyClass:{default:""},stickingClass:{default:"is-sticking"},mainVisibleClass:{default:"is-main-visible"}},setup(e,{expose:s}){const a=e,{wrapperRef:c,mainContentRef:o,bottomContentRef:r,dynamicTop:l,isSticking:u,isMainVisible:p}=ho({referenceElement:me(()=>a.referenceElement),showOnlyBottom:a.showOnlyBottom,offset:a.offset}),f=n(()=>{const y=[a.stickyClass];return u.value&&a.stickingClass&&y.push(a.stickingClass),p.value&&a.mainVisibleClass&&y.push(a.mainVisibleClass),y.filter(
2Boolean).join(" ")});return s({isSticking:u,isMainVisible:p}),(y,b)=>(i(),C("div",{ref_key:"wrapperRef",ref:c,class:R(["sticky w-full",f.value]),style:_e({top:`${t(l)}px`,zIndex:e.zIndex}),role:"banner"},[z("div",{ref_key:"mainContentRef",ref:o},[Ue(y.$slots,"default")],512),y.$slots.bottom?(i(),C("div",{key:0,ref_key:"bottomContentRef",ref:r},[Ue(y.$slots,"bottom")],512)):P("",!0)],6))}}),gs=Object.assign(ps,{__name:"DynamicStickyWrapper"}),ms=["inert"],fs={key:0},vs={key:0,class:"mt-8 flex justify-center"},ys=200,hs=V({__name:"CategoryPostListingContent",props:{blok:{},collapse:{type:Boolean},margin:{},backgroundColor:{},expanded:{type:Boolean}},setup(e){const s=e,a=k(s.expanded??!1),c=k(!1),o=k(),r=k(0),{headerHeight:l}=oo();W(()=>s.expanded,h=>{a.value=h??!1});const u=n(()=>s.collapse&&!a.value),p=n(()=>{if(s.collapse)return u.value?{maxHeight:`${ys}px`}:c.value&&r.value?{maxHeight:`${r.value}px`}:{maxHeight:"none"}}),f=(h,v)=>{const g=se(v);return g==="div"?g:`${h>=2?"Lazy":""}${g}`},{marginClasses:y}=ao(s.margin),b=n(()=>`linear-gradient(to top, ${s.backgroundColor??"#fff"}, transparent)`),$=()=>{o.value&&(r.value=o.value.scrollHeight)},B=h=>{h.target!==o.value||h.propertyName!=="max-height"||a.value&&(c.value=!1)},F=async()=>{const h=!a.value;$(),c.value=!0,h?(a.value=!0,await st(),o.value?.querySelector('a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])')?.focus({preventScroll:!0})):(await st(),requestAnimationFrame(()=>{a.value=!1;const v=window.scrollY+(o.value?.getBoundingClientRect().top??0)-l.value-200;window.scrollTo({top:v,behavior:"smooth"})}))};return(h,v)=>{const g=to;return i(),C("section",{class:"flow-root",style:_e({backgroundColor:e.backgroundColor})},[z("div",{class:R(t(y))},[z("div",{id:"post-listing-content",ref_key:"contentRef",ref:o,class:R(["transition-[max-height] duration-500 ease-in-out",{"overflow-hidden relative":t(u)||t(c)}]),style:_e(t(p)),inert:t(u),onTransitionend:B},[(i(!0),C(G,null,ie(e.blok,(m,w)=>(i(),L(t(Z),{key:m?._uid},{default:S(()=>[m?._uid?(i(),C("div",fs,[(i(),L(fe(f(w,m.component)),{blok:m,important:w<2,"hydrate-on-visible":w>=2,preload:t(se)(m.component)==="CMSImage"&&w<2?!0:void 0,sizes:t(se)(m.component)==="CMSImage"?"xs:100vw sm:100vw md:100vw lg:100vw xl:80vw 2xl:80vw 3xl:1440px":void 0},null,8,["blok","important","hydrate-on-visible","preload","sizes"]))])):P("",!0)]),_:2},1024))),128)),t(u)?(i(),C("div",{key:0,"aria-hidden":"true",class:"pointer-events-none absolute inset-x-0 bottom-0 h-32",style:_e({backgroundImage:t(b)})},null,4)):P("",!0)],46,ms),e.collapse?(i(),C("div",vs,[_(t(ke),{size:"sm","aria-expanded":t(a),"aria-controls":"post-listing-content",onClick:F},{icon:S(({_class:m})=>[_(g,{class:R([[m,{"rotate-180":t(a)}],"transition-transform duration-200"])},null,8,["class"])]),default:S(()=>[xe(" "+K(t(a)?h.$t("global.view_less"):h.$t("global.view_more")),1)]),_:1},8,["aria-expanded"])])):P("",!0)],2)],4)}}}),Cs=Object.assign(hs,{__name:"CategoryPostListingContent"}),_s=5;function bs(e={children:_s,properties:{withName:["sale"]},id:0}){const{id:s}=ba(e);return xa({params:e},`parent-category-${s}`)}const xs=Pe(()=>$e(()=>import("./rCdJ3fcE.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(e=>e.default||e)),ks=Pe(()=>$e(()=>import("./SPsjeQza.js").then(e=>e.C),__vite__mapDeps([6,1,2,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68]),import.meta.url).then(e=>e.default||e)),Ls=Pe(()=>$e(()=>import("./BjHLzTCN.js"),__vite__mapDeps([69,70,1,2,48]),import.meta.url).then(e=>e.default||e)),Ss=Pe(()=>$e(()=>import("./0CsgLPMx.js"),__vite__mapDeps([71,48,1,2,72]),import.meta.url).then(e=>e.default||e)),ws=["data-current-category-id"],Ps={class:"flex"},$s={key:1,class:"flex flex-col mb-4"},Ts={class:"sticky top-header flex flex-col px-4 md:px-8"},Ds={class:"contents"},zs=V({name:"ProductListingPage",__name:"ProductListingPage",props:{rootCategories:{default:()=>[]},fetchingCategories:{type:Boolean,default:!1},allCategories:{default:()=>[]},currentCategory:{default:void 0},disruptors:{default:()=>[]},preListingContent:{default:()=>[]},postListingContent:{default:()=>[]},collapsedPostListingContent:{type:Boolean,default:()=>!1},postListingBgColor:{default:""},postListingMargin:{default:""},postListingExpandedPageOne:{type:Boolean,default:!1},postListingOnlyPageOne:{type:Boolean,default:!1},showSideNav:{type:Boolean,default:!1},showTotalCount:{type:Boolean,default:!0},showPageDescription:{type:Boolean,default:!0}},async setup(e){let s,a;const c=e,o=me(c,"currentCategory"),r=te(),l=mt();We();const{setCoveoFacetControllers:u,hasAppliedFilters:p}=yt(),f=n(()=>p),y=n(()=>({total:Ie.value,perPage:M.value.perPage,page:M.value.page,current:M.value.current,first:M.value.first,prev:M.value.prev,next:M.value.next,last:M.value.last})),{pageState:b,setPageState:$,setProductItemListName:B}=ka(),{trackCoveoSelectItem:F,trackCoveoViewItemList:h}
2=La(),{pageDescription:v,pageHeadline:g,pageCTAs:m,pageCategoryBannerURL:w}=Ct(o),x=io(),I=n(()=>!1),T=re(`product-for-category-${r.path}`,()=>({source:"csr",products:[],pagination:void 0})),E=k([]),j=k([]),A=k(),H=k(),q=k(),Q=k(),Te=k(!1),De=k(!1),ve=re("coveo-product-fetching",()=>!1),Ye=k(""),ze=re("sync-coveo-params",()=>!1),Je=n(()=>I.value?Te.value:ve.value||!Ye.value),Ie=n(()=>T.value?.pagination?.totalEntries||0),Be=k(0),ye=n(()=>Q.value?.isSticking),xt=n(()=>Q.value?.isMainVisible),kt=Ke();oe[kt.value.shopId];const M=k((()=>{const d=T.value.pagination;return d?{current:d.page,total:d.totalEntries,perPage:d.pageSize,page:d.page,first:1,prev:d.page-1,next:d.page+1,last:d.totalPages}:{current:0,total:0,perPage:0,page:0,first:0,prev:0,next:0,last:0}})()),Xe=n(()=>(M.value.current??0)===0),Lt=d=>{try{const O=parseInt(d);D.pagination().selectPage(O-1)}catch(O){console.error(O)}};W(()=>r.query.page,(d,O)=>{d!==O&&Lt(d||"1")});let le;const St=()=>{const d=()=>{const N=Object.entries(r.query);return N.length===0?"":N.map(([J,ee])=>J==="page"&&ee?`${J}=${+ee-1}`:`${J}=${ee}`).join("&")},O=d();W(()=>r.query,()=>{if(ze.value){ze.value=!1;const N=d();U.synchronize(N)}},{deep:!1});const U=D.urlManager({initialState:{fragment:O},excludeDefaultParameters:!0});return Ra(document,"hashchange",()=>{U.synchronize(O)}),U.subscribe(()=>{const N=new URLSearchParams(U.state.fragment);N.get("page")&&N.set("page",String(Number(N.get("page"))+1));const J=Array.from(N.entries()).sort(([de],[pe])=>de.localeCompare(pe)),ee=Object.fromEntries(J.map(([de,pe])=>[de,pe?.toString().split(",").sort((Ae,He)=>Ae.localeCompare(He)).join(",")]));l.replace({query:ee})})},D=fo(x);D.pagination({options:{pageSize:dt}});const wt=n(()=>!!(o.value?.shopLevelCustomData?.isEditorialGridPerDefault||o.value?.countryLevelCustomData?.isEditorialGridPerDefault)),Ze=Xa(Be,p,wt),Pt=k(Ze.layoutModeChanged),$t=()=>{j.value=(D?.sort()?.state.availableSorts??[]).filter(d=>d.by===Da.Fields).map(d=>d.fields).flat(),D.sort().state.appliedSort&&(A.value=D.sort().state.appliedSort)},Tt=({page:d,totalPages:O,pageSize:U,totalEntries:Y})=>{M.value.current=d,M.value.total=Y,M.value.perPage=U,M.value.page=d,M.value.first=1,M.value.prev=d-1,M.value.next=d+1,M.value.last=O,u(E.value)},{smaller:Dt}=gt(),zt=Dt("md"),It=Ce(n(()=>q.value?.productListContainer)),ae=()=>{De.value||requestAnimationFrame(()=>{if(I.value||!q.value?.productListContainer||It.top.value>=0)return;De.value=!0;const O=q.value.productListContainer.offsetTop||0,U=H.value?.filtersContainer?.offsetHeight||0;window.scrollTo({top:O-U,behavior:"instant"});const Y=zt.value?O:O+U/2;requestAnimationFrame(()=>{window.scrollTo({top:Y,behavior:"instant"})}),setTimeout(()=>{De.value=!1},100)})},Oe=n(()=>c.currentCategory?.id),Bt=n(()=>D.facetGenerator()),Qe=()=>{throw vt({statusCode:404,statusMessage:"Category not found"})},Ot=yo(x).fetchProductListing(),Rt=D.subscribe(()=>{T.value?.source==="ssr"&&!D.state.responseId||(ve.value=D.state.isLoading,Ye.value=D.state.responseId,!ve.value&&(T.value?.source==="ssr"&&D.state.error?.statusCode===404&&Qe(),D.state.responseId&&(Be.value=D.state.products.length,T.value={source:"csr",products:D.state.products,pagination:D.pagination().state},E.value=Bt.value?.facets??[],$t(),Tt(D.pagination().state))))}),{rootCategories:ce,fetchingCategories:Et}=Sa(c),Ft=n(()=>o.value?.shopLevelCustomData?.trackingKey||""),At=n(()=>({id:o.value?.parentId??0,children:5})),{data:Re}=([s,a]=ft(()=>bs(At)),s=await s,a(),s),ue=n(()=>o.value?.children?.length?[o.value,...o.value.children]:Re.value?.children?.length?[Re.value,...Re.value.children]:[]),Ht=n(()=>!!ue.value?.[0]?.shopLevelCustomData?.categoryImageURL),Ee=n(()=>{const d=w.value;return d?d.fullWidthImage?"fullWidth":"imageText":Ht.value?"subcategory":void 0}),Fe=n(()=>Ee.value==="subcategory"),Mt=n(()=>!!o.value?.shopLevelCustomData.isOutfitCategory);Se(async()=>{le=St();const d=await x.dispatch(Ot);"error"in d&&d.payload?.statusCode===404&&Qe()});const Nt=d=>{if(!d){console.warn("trackProductClick called without product parameter");return}D&&d&&D.interactiveProduct({options:{product:d}}).select(),za({setProductItemListName:B,trackCoveoSelectItem:F,product:d,listingMetaData:nt,pageState:b,route:r})},jt=({items:d})=>{h({items:d,listingMetaData:nt,source:`category|${Oe.value}`,item_list_name:Ia({pageType:Ba(),listType:"list"})})};W(()=>Oe.value,(d,O)=>{O!==void 0&&d&&O!==d&&($("typeId",String(d)),ve.value=!0,T.value={source:"csr",products:[],pagination:T.value.pagination})},{immediate:!0}),W(()=>Ft.value,d=>$("categoryTrackingId",String(d)),{immediate:!0}),W(()=>r.query,()=>{ae()},{deep:!1});const Vt=so(),et=n(()=>m.value?.ctas??[]),tt=n(()=>({headline:c.preListingContent.length?void 0:g.value,description:c.showPageDescription&&!c.preListingContent.length?v.value:void 0,count:c.showTotalCount&&!Je.value&&Ie.value||void 0,countKey:Oe.value,seoCtas:et.value})),at=(d,O)=>{if(ze.value=!0,d){Oa(d);return}const Y=et.value?.[O]?.filterValue;if(!Y)return;const N=Y.split("=");N.length<2||l.push({query:{...r.query,[N[0]]:N[1]}})};return wa(()=>{le?.()}),Pa(()=>{Rt(),le&&typeof le=="function"&&le()}),(d,O)=>{const U=ko,Y=Io,N=_t,J=Vo,ee=ds,de=ge,pe=Za,Ae=gs,He=Qa,qt=eo,Ut=Cs,Wt=xs,Kt=no,Gt=ks,Yt=$a,Jt=Ls,Xt=Ss;return i(),C(G,null,[z("div",{class:"relative bg-white 2xl:mx-auto 2xl:w-full 2xl:max-w-[112.5rem] 2xl:pt-4","data-current-category-id":t(o)?.id},[_(t(Z),{appear:""},{default:S(()=>[t(o)?(i(),L(U,{key:0,class:"mx-4 md:mx-8 mt-4 mb-5 lg:mb-8 min-h-3",category:t(o),"parent-category":t(o)?.parent||void 0},null,8,["category","parent-category"])):P("",!0)]),_:1}),z("div",Ps,[e.showSideNav&&t(ce)?.length?(i(),L(Y,{key:0,class:"h-full pt-16 mx-4 md:mx-8 max-xl:hidden sm:min-w-40 md:min-w-[14.75rem] lg:min-w-[17rem]","root-categories":t(ce),"current-category":t(o),"fetching-categories":t(Et)},null,8,["root-categories","current-category","fetching-categories"])):P("",!0),z("div",{class:R(["w-full grow relative min-h-screen overflow-x-clip",{"xl:max-w-[calc(100%-272px)]":e.showSideNav}])},[t(Ee)?(i(),L(ee,{key:0,variant:t(Ee),banner:t(w),text:t(tt),"onClick:seoCta":at},{subcategory:S(()=>[_(t(Z),null,{default:S(()=>[e.preListingContent.length?(i(),L(N,{key:0,blok:e.preListingContent},null,8,["blok"])):P("",!0)]),_:1}),_(J,{categories:t(ue),"current-category":t(o)??void 0,"root-categories":t(ce),onScrollToTop:ae},null,8,["categories","current-category","root-categories"])]),_:1},8,["variant","banner","text"])):(i(),C("div",$s,[z("div",Ts,[_(de,X(t(tt),{"headline-tag":"h1","test-id":"active-category-breadcrumb","onClick:seoCta":at}),null,16)])])),_(t(Z),null,{default:S(()=>[!t(Fe)&&e.preListingContent.length?(i(),L(N,{key:0,blok:e.preListingContent,class:"mb-20"},null,8,["blok"])):P("",!0)]),_:1}),_(t(Z),{appear:""},{default:S(()=>[z("div",Ds,[t(Fe)?P("",!0):(i(),L(J,{key:0,categories:t(ue),"current-category":t(o)??void 0,"root-categories":t(ce),class:R({"!py-0 md:py-2.5 transition-all duration-100 ease-in-out-quad delay-100":!0,"opacity-0 invisible":t(ye)}),"force-text-only":"",onScrollToTop:ae},null,8,["categories","current-category","root-categories","class"])),_(Ae,{ref_key:"dynamicStickyWrapperRef",ref:Q,"sticky-class":"flex flex-col bg-secondary top-header","reference-element":t(Vt),"show-only-bottom":!0,offset:0},{bottom:S(()=>[_(pe,{ref_key:"filtersRef",ref:H,controller:t(D),"hide-quick-filters":t(Mt),pagination:t(y),"current-page-product-count":t(Be),"has-applied-filters":t(f),"is-sticking":t(ye),"is-main-visible":t(xt),"current-category":t(o),class:"px-4 md:px-8",onScrollToTop:ae},null,8,["controller","hide-quick-filters","pagination","current-page-product-count","has-applied-filters","is-sticking","is-main-visible","current-category"])]),default:S(()=>[t(ue).length?(i(),L(J,{key:0,categories:t(ue),"current-category":t(o)??void 0,"root-categories":t(ce),"force-text-only":!0,
2class:R({"transition-all duration-200 ease-in-out-quad":!0,"opacity-0 invisible":!t(ye),"-translate-y-9":!t(ye)&&!t(Fe)}),onScrollToTop:ae},null,8,["categories","current-category","root-categories","class"])):P("",!0)]),_:1},8,["reference-element"])])]),_:1}),_(He,{controller:t(D)},null,8,["controller"]),_(qt,{ref_key:"productListRef",ref:q,"coveo-products":t(T).products,loading:t(Je),pagination:t(M),"total-products-count":t(Ie),"current-category":t(o),disruptors:e.disruptors,"layout-mode":t(Ze).layoutMode,"enable-transitions":t(Pt),"onClick:product":Nt,"onIntersect:row":jt,"onClick:firstPage":O[0]||(O[0]=Hs=>t(D).pagination().selectPage(0)),onScrollToTop:ae},null,8,["coveo-products","loading","pagination","total-products-count","current-category","disruptors","layout-mode","enable-transitions"]),e.postListingContent.length&&(!e.postListingOnlyPageOne||t(Xe))?(i(),L(Ut,{key:2,class:"my-12","background-color":e.postListingBgColor,blok:e.postListingContent,collapse:e.collapsedPostListingContent,margin:e.postListingMargin,expanded:e.postListingExpandedPageOne&&t(Xe)},null,8,["background-color","blok","collapse","margin","expanded"])):P("",!0)],2)])],8,ws),_(Kt,{class:"px-4 md:px-8",optional:!0},{default:S(()=>[_(Wt)]),_:1}),_(Yt,null,{default:S(()=>[t(D)?(i(),L(Gt,{key:0,controller:t(D),"applied-sort-option":t(A),"sort-by-field-options":t(j),"sort-controller":t(D).sort()},null,8,["controller","applied-sort-option","sort-by-field-options","sort-controller"])):P("",!0)]),_:1}),(i(),L(Ta,{to:"#teleports"},[_(Xt,{class:"right-4"},{default:S(()=>[_(Jt)]),_:1})]))],64)}}}),Is=Object.assign(zs,{__name:"ProductListingPage"});function Bs(e){const s=re(`listingPageData-${e}`,()=>null);return{preListingContent:n(()=>s.value?.fields?.preListingContent?.map(a=>({...a,_uid:a?.sys.id||"",component:a?.sys.contentType.sys.id||""}))||[]),postListingContent:n(()=>s.value?.fields?.postListingContent?.map(a=>({...a,_uid:a?.sys.id||"",component:a?.sys.contentType.sys.id||""}))||[]),disruptors:n(()=>s.value?.fields.disruptor||[]),collapsedPostListingContent:n(()=>s.value?.fields?.collapsedPostListingContent),postListingBgColor:n(()=>s.value?.fields?.postListingBgColor),postListingMargin:n(()=>s.value?.fields?.postListingMargin),postListingExpandedPageOne:n(()=>s.value?.fields?.postListingExpandedPageOne),postListingOnlyPageOne:n(()=>s.value?.fields?.postListingOnlyPageOne)}}function Os(){const e=te(),{debugLog:s}=Le("plp"),{updateByCategory:a}=Ea(),{fetch:c}=Fa(e.path),o=n(()=>Ma(e.params)),r=n(()=>Na(e.params)),l=re("currentCategory",()=>null),u=n(()=>ja(e.path)),p=n(()=>`plp-contents-${e.path}`),f=re(`listingPageData-${p.value}`,()=>null),y=n(()=>l.value||null),{fetch:b}=Aa(p.value);s({type:"load-ssr-cms-contents",listingPageData:f.value});const{postListingContent:$,preListingContent:B,disruptors:F,collapsedPostListingContent:h,postListingBgColor:v,postListingMargin:g,postListingExpandedPageOne:m,postListingOnlyPageOne:w}=Bs(p.value);Ha(f);const x=async T=>{if(!T?.id){f.value=null;return}try{const E=await b({content_type:"listingPage","fields.slug":`c/c-${T.id}`});s({type:"fetch-cms-data",category:T,response:E}),f.value=E}catch(E){console.error("Error fetching CMS data:",E),f.value=null}};return{currentCategory:l,isGenderHomepage:u,categoryForSeo:y,preListingContent:B,postListingContent:$,disruptors:F,collapsedPostListingContent:h,postListingBgColor:v,postListingMargin:g,postListingExpandedPageOne:m,postListingOnlyPageOne:w,load:async()=>{s({type:"load-category",path:[r.value,o.value]});try{l.value=await c(r.value,o.value)}catch(T){s({type:"category-not-found",category:l.value,error:T})}if(l.value){a(l.value),s({type:"category-found",category:l.value}),await x(l.value);return}throw vt({statusCode:404,statusMessage:"Category not found"})}}}const Rs={class:"min-h-screen"},ar=V({name:"CategoryPage",__name:"[slug]",props:{rootCategories:{},fetchingCategories:{type:Boolean},allCategories:{}},async setup(e){let s,a;const c=mt(),o=!1,{currentCategory:r,isGenderHomepage:l,categoryForSeo:u,preListingContent:p,postListingContent:f,collapsedPostListingContent:y,postListingBgColor:b,disruptors:$,postListingMargin:B,postListingExpandedPageOne:F,postListingOnlyPageOne:h,load:v}=Os(),g=k(p.value),m=k(f.value);c.beforeEach((E,j)=>{E.path!==j.path&&(g.value=[],m.value=[])}),qe(()=>{g.value=p.value}),qe(()=>{m.value=f.value});const{title:w,metaDescription:x,categoryBreadcrumbSchema:I}=Ct(u);Co(u),go(()=>I.value),pt(()=>u.value?{title:w.value,meta:[{name:"description",content:x.value}]}:{});async function T(){const E=v();await Promise.race([E,Va(150)])}return[s,a]=ft(()=>T()),await s,a(),(E,j)=>{const A=_t,H=Is;return i(),C("div",Rs,[t(l)?(i(),L(A,{key:0,blok:t(g)},null,8,["blok"])):t(r)?(i(),L(H,{key:1,"current-category":t(r),"root-categories":e.rootCategories,"fetching-categories":e.fetchingCategories,"all-categories":e.allCategories,disruptors:t($)||[],"pre-listing-content":t(o)?t(p):t(g)||[],"post-listing-content":t(o)?t(f):t(m)||[],"collapsed-post-listing-content":t(y),"post-listing-bg
2-color":t(b),"post-listing-margin":t(B),"post-listing-expanded-page-one":t(F),"post-listing-only-page-one":t(h)},null,8,["current-category","root-categories","fetching-categories","all-categories","disruptors","pre-listing-content","post-listing-content","collapsed-post-listing-content","post-listing-bg-color","post-listing-margin","post-listing-expanded-page-one","post-listing-only-page-one"])):P("",!0)])}}});export{ar as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.