1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./qHtZRLid.js","./BRXzQv7U.js","./FXYoTY6c.js","./K1b_ijTh.js","./entry.DS4SEWKj.css","./BQguEG_I.js","./Zxf_Ata2.js","./Dce4Gtd0.js","./D6Z08Q7a.js","./CQoHp_LM.js","./Btc372en.js","./B1Fi2rw8.js","./XUID70n1.js","./Lq-xiNgK.js","./ByRi9xY1.js","./CKH0mVqp.js","./CklXwwFy.js","./BV8R5Bpk.js","./swiper.DcNqkbms.css","./CardSwiper.BlRuW1W2.css"])))=>i.map(i=>d[i]); 2import{y as vt,r as c,p as _,o,w as F,h as C,g as t,d as b,v as Ct,t as M,ar as Ft,c as f,F as z,q as te,z as Ae,b4 as bt,D as kt,f as m,j as A,e as we,_ as Se,i as xt,u as $e,b as At,b9 as wt,l as ke,B as R,m as St,n as $t,U as Pt,a as Ot,x as Mt,ba as qt,s as xe,C as Lt,H as Nt,I as Dt}from"./K1b_ijTh.js";import Et from"./Du9UN61w.js";import{_ as Tt}from"./2oJEumWn.js";import{_ as Bt,a as It,b as jt,c as Gt,d as Vt}from"./BlDvCEOt.js";import{u as Rt,_ as zt,a as Qt,b as Ut,i as ce,T as ee}from"./UjAsFdHi.js";import{S as Ht,M as Jt,b as Yt,g as Wt}from"./BDrMyIW0.js";import{_ as Kt}from"./BNmtTo9X.js";import Xt from"./5IlyA2yE.js";import{_ as Zt}from"./BrT219pD.js";import{a as ea}from"./D3CM0kaY.js";import{_ as ta}from"./BEh5WRWF.js";import{d as aa}from"./ClJUjObH.js";import{h as la}from"./XUID70n1.js";import"./Cd6vnrSW.js";import"./CQoHp_LM.js";import"./CZ-9ZaBF.js";import"./DWpN0MVY.js";import"./FXYoTY6c.js";import"./BQguEG_I.js";import"./Zxf_Ata2.js";import"./B8v8Rv4b.js";import"./EkJ2inYX.js";import"./Dce4Gtd0.js";import"./D6Z08Q7a.js";import"./Btc372en.js";import"./B1Fi2rw8.js";import"./Lq-xiNgK.js";import"./ByRi9xY1.js";import"./CKH0mVqp.js";import"./DB4jvIAF.js";import"./DoJpzkOO.js";import"./B-O1Rgn4.js";import"./CklXwwFy.js";import"./BV8R5Bpk.js";import"./F-cZlZ27.js";const ra={class:"flex items-center gap-2.5 font-medium w-full"},oa={class:"inline-block"},sa={class:"py-1"},na=["onClick"],ia={__name:"SortDropdown",props:{sortOptions:{type:Array,required:!0},ordering:{type:String,required:!1}},emits:["modifyData"],setup(w,{emit:g}){const $=w,{sortOptions:q,ordering:i}=vt($),h=g,k=c(i.value&&q.value.find(v=>v.query===i.value)?.name||""),N=v=>{k.value=v.name};return(v,n)=>{const s=Ct;return o(),_(t(Wt),{as:"div",class:"w-full lg:w-auto relative"},{default:F(()=>[C(t(Ht),{class:"group inline-flex w-full lg:w-auto border border-neutral-200 rounded-lg text-nowrap justify-start text-neutral-500 lg:hover:text-neutral-900 capitalize text-sm px-4 py-2 lg:hover:bg-neutral-100 transition","aria-label":v.$t("global.Sort")},{default:F(()=>[b("div",ra,[C(s,{name:"iconoir:sort-down",class:"w-4 h-4"}),b("span",oa,M(t(k)),1),C(s,{name:"iconoir:nav-arrow-down",class:"w-4 h-4 ms-auto lg:ms-0 text-neutral-400 lg:group-hover:text-neutral-500","aria-hidden":"true"})])]),_:1},8,["aria-label"]),C(Ft,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:F(()=>[C(t(Jt),{class:"absolute z-[20] mt-2 w-auto rounded-md bg-white shadow-2xl ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:F(()=>[b("div",sa,[(o(!0),f(z,null,te(t(q),u=>(o(),_(t(Yt),{key:u,onClick:y=>N(u)},{default:F(({active:y})=>[b("p",{onClick:S=>h("modifyData",u.query),class:Ae([y?"bg-primary text-white":"","block px-4 py-2 lg:hover:bg-neutral-100 text-neutral-900 lg:hover:text-black cursor-pointer transition"])},M(u.name),11,na)]),_:2},1032,["onClick"]))),128))])]),_:1})]),_:1})]),_:1})}}},ca={key:0,class:"flex flex-col gap-3 text-neutral-500 text-sm"},ua={class:"flex flex-row gap-2 overflow-x-auto pb-2"},da=["aria-label"],pa=["aria-checked","disabled","onClick"],ma={__name:"TypeFilterList",props:{typeFilters:{type:Array,required:!0},autotriggerRefresh:{type:Boolean,default:!0}},emits:["selectAttrFilter","modifyData"],setup(w,{emit:g}){const $=w,q=g,i=kt(),h=bt(),k=i.public.supportsNewsletterCodesCampaign,N=A(()=>$.typeFilters?.length>0||!!k),v=s=>s.slug?s.slug:s.name,n=(s,u)=>{if(u.count===0)return;const y=!u.checked;s.options.forEach(S=>{S.checked=y&&v(S)===v(u)}),q("selectAttrFilter",{filterCategory:s.name,name:v(u),checked:y}),$.autotriggerRefresh&&q("modifyData")};return(s,u)=>{const y=Se;return t(N)?(o(),f("div",ca,[b("div",ua,[t(k)?(o(),_(y,{key:0,to:t(h)("newsletter"),class:"type-filter-button is-secondary"},{default:F(()=>[we(M(s.$t("newsletter.Only_for_club_members")),1)]),_:1},8,["to"])):m("",!0),(o(!0),f(z,null,te(w.typeFilters,S=>(o(),f("div",{key:S.name,class:"flex flex-row gap-2",role:"radiogroup","aria-label":S.name},[(o(!0),f(z,null,te(S.options,L=>(o(),f("button",{key:L.slug||L.name,type:"button",role:"radio",class:Ae(["type-filter-button",{"is-checked":L.checked}]),"aria-checked":L.checked,disabled:L.count===0,onClick:p=>n(S,L)},M(L.name),11,pa))),128))],8,da))),128))])])):m("",!0)}}},_a={key:0,class:"gap-6 flex flex-col"},fa={class:"text-neutral-900 text-2xl leading-8 font-normal container"},ga={class:"flex flex-wrap flex-row gap-2"},ya=xt({__name:"SeeAlsoList",props:{linkedObjects:{}}
2,setup(w){const{t:g}=$e();return($,q)=>{const i=Se;return w.linkedObjects?(o(),f("div",_a,[b("h2",fa,M(t(g)("global.See_also")),1),b("div",ga,[(o(!0),f(z,null,te(w.linkedObjects,h=>(o(),_(i,{to:h.url,class:"bg-neutral-100 hover:bg-neutral-200 duration-300 p-3 leading-3 rounded text-neutral-500"},{default:F(()=>[b("span",null,M(h.name),1)]),_:2},1032,["to"]))),256))])])):m("",!0)}}}),ha=Nt(()=>Dt(()=>import("./qHtZRLid.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url).then(w=>w.default||w)),va={class:"min-h-screen"},Ca={key:0,class:"container"},Fa={class:"text-primary"},ba={key:0,class:"aside-section"},ka={class:"main-section"},xa={class:"flex flex-col lg:justify-between lg:flex-row flex-nowrap gap-2 w-full"},Aa={key:1,class:"font-xl font-medium font-['Albert_Sans'] text-neutral-500 italic"},wa={class:"lg:hidden col-span-12"},Sa={key:0,class:"container flex flex-col gap-16 pt-16"},$a={key:1,class:"category-faq"},Pa={class:"text-neutral-900 text-2xl leading-8 font-normal container"},Oa="Promotion",ml={__name:"collection",async setup(w){let g,$;const{t:q}=$e(),i=At(),h=c(!1),k=c(!1),N=c([]),v=c([]),n=c([]),s=c([]),u=c([]),y=c([]),S=c(!1),L=String(i.name??""),p=i.meta.type==="search"||L.startsWith("search"),Pe=ea(p),D=c(""),Q=c({min:null,max:null}),{clearSelectedAttrFilters:ue,clearSelectedCategoryFilter:Oe,clearAttrFilterGroup:Me,clearCategoryFilterGroup:qe,attrFiltersQuery:ae,categoryFiltersQuery:Le,changeAttrFilter:U,changeCategoryFilter:de,prepareFilters:Ne}=Rt(),le=()=>h.value=!h.value,re=()=>k.value=!k.value,De=aa("sort","");let H="";const pe=c([]);i.meta.type==="discount_code"?(H=`/discount_code/${i.params.slug}`,S.value=!0):p?(D.value=wt(i?.query?.query),H="/search_view",pe.value=[{name:q("search.Search_result")+" "+D.value,url:i.path+"?query="+D.value}]):H=`/collection/${i.params.slug}`;const E=c(""),T=c([]),J=c(""),j=c(null),G=c(null),Y=c(null),W=c(null),Ee=(e,a)=>{j.value=e,G.value=a},Te=(e,a)=>{Y.value=e,W.value=a},V=e=>{const a=e?.value;return Array.isArray(a)?a.flat(1).filter(Boolean):[]},me=A(()=>V(n).filter(e=>e.name!==ee)),Be=A(()=>{const e=V(n).find(a=>a.name===ee);return e?[e]:[]}),_e=e=>V(e).reduce((a,r)=>a+(Array.isArray(r?.options)?r.options.filter(d=>d?.checked).length:0),0),fe=A(()=>{const e=V(n).find(x=>x?.availablePrices?.min!=null&&x?.availablePrices?.max!=null);if(!e)return!1;const a=e.availablePrices?.min,r=e.availablePrices?.max;if(a==null||r==null)return!1;const d=j.value??a,O=G.value??r;return d!==a||O!==r}),Ie=e=>ce(e?.slug)||ce(e?.name),je=e=>V(e).reduce((a,r)=>r?.name===ee||!Array.isArray(r?.options)?a:a+r.options.filter(d=>d?.checked&&!Ie(d)).length,0),Ge=A(()=>_e(n)+(fe.value?1:0)),Ve=A(()=>je(n)+(fe.value?1:0)),ge=A(()=>_e(s)),Re=A(()=>Ge.value+ge.value),ze=A(()=>Re.value>0);Array.isArray(i.params.filters)&&i.params.filters.forEach(e=>{const a=e.split(":");let r="false",d,O;if(a.length===3?[r,d,O]=a:a.length===2&&([d,O]=a),d&&O){const x=r.replace(/\+/g," "),I=d.replace(/\+/g," ");O.split(",").forEach(ne=>{const ie=ne.replace(/\+/g," ");T.value.push(`${x}|${I}|${ie}`)})}});const{data:B,pending:Qe,refresh:Ue}=p?([g,$]=ke(()=>xe("/search_view",{query:{query:D.value,initialCache:!1,ordering:E,selected_attrs:T,selected_category:J},cache:!1},i.path)),g=await g,$(),g):([g,$]=ke(()=>xe(H,{query:{ordering:E,selected_attrs:T,selected_category:J,selected_price_min:j,selected_price_max:G},cache:!1},i.path)),g=await g,$(),g),l=A(()=>p?B.value?.products??null:B.value),ye=A(()=>Array.isArray(l.value?.types)?l.value.types.includes(Oa):!1),He=A(()=>S.value?l.value?.id:null);E.value=l.value?.ordering||"";const Je={...p?{}:{cj_page_type:"category"},pageType:p?"search":"category",products:l?.value?.products?.slice(0,4).map(e=>String(e.id))},K=e=>{if(e==null)return[];try{return JSON.parse(JSON.stringify(e))}catch(a){return console.error("[collection] Failed to clone filters",a),[]}},Ye=()=>{u.value=K(me.value),y.value=K(s.value)},oe=()=>{if(!l.value){n.value=[],s.value=[],Q.value.min=null,Q.value.max=null;return}Ne(l.value,n,s),n.value=K(n.value),s.value=K(s.value),Q.value.min=l.value?.available_prices?.min??null,Q.value.max=l.value?.available_prices?.max??null};oe(),!p&&l.value?.faq&&l.value?.faq?.length>
20&&l.value.faq.forEach(e=>{});const P=async(e="")=>{e&&(E.value=De.value=e),T.value=ae.value,J.value=Le.value,await Ue(),oe()},We=()=>{j.value=null,G.value=null,Y.value=null,W.value=null,ue(),P()},X=e=>e.slug?e.slug:e.name,Z=(e,a)=>{e.value.flat(1).forEach(r=>{(r.options||[]).forEach(d=>a(r,d))})},se=(e,a)=>e.value.flat(1).find(r=>r.name===a),Ke=(e,a)=>(e.options||[]).find(r=>X(r)===a),Xe=e=>e?.availablePrices?.min!=null&&e?.availablePrices?.max!=null,Ze=e=>e.value.flat(1).find(a=>Xe(a)),he=e=>{Z(e,(a,r)=>{r.checked=!1})},et=()=>{he(u),Y.value=null,W.value=null},tt=()=>{he(y)},ve=async({clearPrice:e=!1}={})=>{const a=e?[]:(Array.isArray(ae.value)?ae.value:[]).filter(x=>ce(x));ue();const r=Ze(u),d=r?.selectedPrices?.min??null,O=r?.selectedPrices?.max??null;j.value=e?null:Y.value??d,G.value=e?null:W.value??O,Z(u,(x,I)=>{I.checked&&U({filterCategory:x.name,name:X(I),checked:!0})}),a.forEach(x=>{U({filterCategory:ee,name:x,checked:!0})}),await P(),h.value&&le()},Ce=async()=>{Oe(),Z(y,(e,a)=>{a.checked&&de({filterCategory:e.name,name:X(a),checked:!0})}),await P(),k.value&&re()},at=()=>{et(),ve({clearPrice:!0})},lt=()=>{tt(),Ce()},rt=e=>{const a=se(u,e.filterCategory);if(!a)return;const r=Ke(a,e.name);r&&(r.checked=e.checked)},ot=e=>{Z(y,(a,r)=>{r.checked=e.checked&&X(r)===e.name})},st=e=>{const a=se(u,e);a&&(a.options||[]).forEach(r=>{r.checked=!1})},nt=e=>{const a=se(y,e);a&&(a.options||[]).forEach(r=>{r.checked=!1})},it=e=>{Me(e),P()},ct=e=>{qe(e),P()};if(R(l,()=>{oe()}),R([h,k],([e,a])=>{(e||a)&&Ye()}),R(n,()=>{n.value.flat(1)&&(N.value=n.value.flat(1).map(e=>e.options?.filter(a=>a.checked)).flat(1))}),R(s,()=>{s.value?.flat(1)&&(v.value=s.value.flat(1).map(e=>e.options?.filter(a=>a.checked)).flat(1))}),p&&R(()=>i.fullPath,()=>window.location.reload()),St(async()=>{await $t(),la("page_view",Je)}),Pt(()=>{T.value=[],s.value=[],n.value=[],N.value=[],v.value=[],t(h),t(k),t(N),t(v),t(n),t(s),t(E),t(T),t(J)}),p)Ot({title:D.value,meta:[{name:"robots",content:"noindex"}]});else{const{$setSeoMeta:e}=Mt();e({robots:"index,follow",title:B?.value?.seo_title||B?.value?.name,description:B?.value?.seo_description?.replace(/(<([^>]+)>)/gi,"")||B?.value?.description?.replace(/(<([^>]+)>)/gi,"").slice(0,160),image:"/images/og.png",canonical:i.fullPath})}return(e,a)=>{const r=Et,d=Tt,O=Gt,x=Vt,I=Qt,Fe=Ut,ne=ia,ie=It,ut=ma,dt=Kt,be=zt,pt=Lt,mt=ha,_t=Xt,ft=ya,gt=jt,yt=Zt,ht=Bt;return o(),f("div",va,[t(Qe)?(o(),_(r,{key:0})):(o(),_(ht,{key:1},qt({"content-header":F(()=>[t(p)?(o(),f("div",Ca,[C(d,{breadcrumbs:t(pe)},null,8,["breadcrumbs"]),C(O,null,{categoryName:F(()=>[we(M(t(l)?.products?.length>0?e.$t("search.Search_result"):e.$t("search.Search_not_found"))+" ",1),b("span",Fa,M(t(D)),1)]),_:1})])):t(l)?(o(),_(x,{key:1,category:t(l),isPromotion:t(ye),productsCount:t(l)?.products?.length},null,8,["category","isPromotion","productsCount"])):m("",!0)]),sidebar:F(()=>[t(l)&&t(n)&&t(n).length>0||t(s)&&t(s).length>0?(o(),f("div",ba,[t(l)&&t(l)?.children?.length?(o(),_(I,{key:0,children:t(l)?.children},null,8,["children"])):m("",!0),t(l)?(o(),_(Fe,{key:1,attrFilters:t(me),categoryFilters:t(s),autoExpandList:!0,isClearAllFiltersVisible:t(ze),onModifyData:P,onSelectAttrFilter:t(U),onSelectCategoryFilter:t(de),onClearAttrGroup:it,onClearCategoryGroup:ct,onUpdateSelectedPrice:Ee,onClearAllFilters:We},null,8,["attrFilters","categoryFilters","isClearAllFiltersVisible","onSelectAttrFilter","onSelectCategoryFilter"])):m("",!0)])):m("",!0)]),"content-footer":F(()=>[!t(p)&&t(l)?(o(),f("div",Sa,[t(l).last_viewed?(o(),_(mt,{key:0,class:"",text:t(q)("global.Last_viewed"),relatedProducts:t(l).last_viewed},null,8,["text","relatedProducts"])):m("",!0),t(l)&&t(l).posts?.length>0?(o(),_(_t,{key:1,posts:t(l).posts},null,8,["posts"])):m("",!0),t(l)?.linked_objects?.length?(o(),_(ft,{key:2,linkedObjects:t(l)?.linked_objects},null,8,["linkedObjects"])):m("",!0),C(gt,{category:t(l)},null,8,["category"])])):m("",!0),!t(p)&&t(l)&&t(l)?.faq?.length>0?(o(),f("div",$a,[b("h2",Pa,M(e.$t("faq.Frequently_asked_questions")),1),C(yt,{content:t(l)?.faq},null,8,["content"])])):m("",!0)]),_:2},[t(l)?{name:"content",fn:F(()=>[b("div",ka,[b("div",xa,[C(ne,{class:"lg:order-2 shrink-0",sortOptions:t(Pe),ordering:t(E),onModifyData:P},null,8,["sortOptions","ordering"]),t(l)?(o(),_(ie,{key:0,class:"lg:hidden",filtersCount:t(Ve),categoriesCount:t(ge),onChangeFilterIsOpen:le,onChangeCategoryIsOpen:re,isFiltersDisabled:!t(n)||t(n).length===0,hasCategories:t(s)?.length>0||t(l)?.children?.length>0}
2,null,8,["filtersCount","categoriesCount","isFiltersDisabled","hasCategories"])):m("",!0),t(ye)?(o(),_(ut,{key:1,typeFilters:t(Be),onSelectAttrFilter:t(U),onModifyData:P},null,8,["typeFilters","onSelectAttrFilter"])):m("",!0)]),t(l)?.products?.length?(o(),_(dt,{key:0,products:t(l).products,source:t(p)?"Search":t(l)?.name,source_id:t(p)?"":String(t(l)?.id),gridComponent:ta,discountCodeBundle:t(He)},null,8,["products","source","source_id","discountCodeBundle"])):(o(),f("span",Aa,M(e.$t("global.No_results")),1)),b("div",wa,[C(pt,null,{default:F(()=>[t(l)?(o(),f(z,{key:0},[C(be,{attrFilters:t(u),show:t(h),onChangeFilterIsOpen:le,onModifyData:P,onSelectAttrFilter:rt,onClearAttrGroup:st,onClearAllFilters:at,onApplyAllFilters:ve,onUpdateSelectedPrice:Te},null,8,["attrFilters","show"]),C(be,{title:e.$t("global.Categories"),categoryFilters:t(y),categoryChildren:t(l)?.children||[],show:t(k),onChangeFilterIsOpen:re,onModifyData:P,onSelectCategoryFilter:ot,onClearCategoryGroup:nt,onClearAllFilters:lt,onApplyAllFilters:Ce},null,8,["title","categoryFilters","categoryChildren","show"])],64)):m("",!0)]),_:1})])])]),key:"0"}:void 0]),1024))])}}};export{ml 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.