1import M from"./BYp-l5mR.js";import{l as N,u as A,N as $,b2 as W,b3 as z,b4 as G,b5 as B,b6 as Q,b7 as I,b8 as J,Q as Z,p as K,b9 as X,ba as Y,bb as ee,B as O}from"./BdEtjDPP.js";import{l as H,k as te,d as ae,F as re,o as ie,n as T,ak as j,m as y,q as ne,H as P,U as w,V as R,S as E,Z as oe,_ as le,ac as U,aj as se,ab as q,u as C,P as D,W as F}from"./BIaCPJ4S.js";import{_ as ce}from"./jF7OEmXB.js";import{_ as ue}from"./wNAPZBGV.js";import{_ as de}from"./BDYChrEW.js";import{u as fe}from"./CMaPeJi2.js";import"./B5bMgYaX.js";import"./9CDOetLG.js";import"./B1nZwSkp.js";import"./x_rD_Ya3.js";import"./BIBR4A3o.js";import"./6eayp8Te.js";import"./BHnmvJDY.js";import"./F8LLmIXN.js";import"./BqkM3HZi.js";import"./DPZheuZR.js";import"./2ETGskek.js";import"./DyiMnFEA.js";import"./IXAkiXkA.js";import"./Cuje0eO0.js";import"./ajtJ7bmp.js";import"./u8vHfhu3.js";import"./Dp8oxn1D.js";import"./Bu5X5MAI.js";import"./DeqwMKrs.js";import"./kbT8Xvgz.js";import"./CUy5n7s4.js";import"./zTi9molh.js";import"./CUI0nkzu.js";import"./Qbb7x8cy.js";import"./CwnazslD.js";import"./Cy-8cPKr.js";import"./AswKE_7D.js";import"./D4P9MC2A.js";import"./DBw95MvP.js";import"./CuHUpTHE.js";import"./Dfuw-lt0.js";import"./-X9hQ5Z6.js";import"./DEaG6J3T.js";import"./Dkkpr7DT.js";import"./BP4iYriR.js";import"./DBHF3KVk.js";import"./CuqkkyHx.js";import"./DGdkzdtY.js";const ve=(...a)=>a.find(t=>t!==void 0);function he(a){const t=a.componentName||"NuxtLink";function h(e){return typeof e=="string"&&e.startsWith("#")}function x(e,i,_){const r=_??a.trailingSlash;if(!e||r!=="append"&&r!=="remove")return e;if(typeof e=="string")return V(e,r);const c="path"in e&&e.path!==void 0?e.path:i(e).path;return{...e,name:void 0,path:V(c,r)}}function S(e){const i=N(),_=Z(),r=y(()=>!!e.target&&e.target!=="_self"),c=y(()=>{const d=e.to||e.href||"";return typeof d=="string"&&I(d,{acceptRelative:!0})}),g=j("RouterLink"),p=g&&typeof g!="string"?g.useLink:void 0,v=y(()=>{if(e.external)return!0;const d=e.to||e.href||"";return typeof d=="object"?!1:d===""||c.value}),n=y(()=>{const d=e.to||e.href||"";return v.value?d:x(d,i.resolve,e.trailingSlash)}),l=v.value||p==null?void 0:p({...e,to:n}),u=y(()=>{var k;const d=e.trailingSlash??a.trailingSlash;if(!n.value||c.value||h(n.value))return n.value;if(v.value){const b=typeof n.value=="object"&&"path"in n.value?B(n.value):n.value,o=typeof b=="object"?i.resolve(b).href:b;return V(o,d)}return typeof n.value=="object"?((k=i.resolve(n.value))==null?void 0:k.href)??null:V(J(_.app.baseURL,n.value),d)});return{to:n,hasTarget:r,isAbsoluteUrl:c,isExternal:v,href:u,isActive:(l==null?void 0:l.isActive)??y(()=>n.value===i.currentRoute.value.path),isExactActive:(l==null?void 0:l.isExactActive)??y(()=>n.value===i.currentRoute.value.path),route:(l==null?void 0:l.route)??y(()=>i.resolve(n.value)),async navigate(d){await K(u.value,{replace:e.replace,external:v.value||r.value})}}}return H({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:S,setup(e,{slots:i}){const _=N(),{to:r,href:c,navigate:g,isExternal:p,hasTarget:v,isAbsoluteUrl:n}=S(e),l=te(!1),u=ae(null),d=o=>{var f;u.value=e.custom?(f=o==null?void 0:o.$el)==null?void 0:f.nextElementSibling:o==null?void 0:o.$el};function k(o){var f,s;return!l.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===o:((f=e.prefetchOn)==null?void 0:f[o])??((s=a.prefetchOn)==null?void 0:s[o]))&&
1(e.prefetch??a.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!ge()}async function b(o=A()){if(l.value)return;l.value=!0;const f=typeof r.value=="string"?r.value:p.value?B(r.value):_.resolve(r.value).fullPath,s=p.value?new URL(f,window.location.href).href:f;await Promise.all([o.hooks.callHook("link:prefetch",s).catch(()=>{}),!p.value&&!v.value&&Q(r.value,_).catch(()=>{})])}if(k("visibility")){const o=A();let f,s=null;re(()=>{const m=me();$(()=>{f=W(()=>{var L;(L=u==null?void 0:u.value)!=null&&L.tagName&&(s=m.observe(u.value,async()=>{s==null||s(),s=null,await b(o)}))})})}),ie(()=>{f&&z(f),s==null||s(),s=null})}return()=>{var s;if(!p.value&&!v.value&&!h(r.value)){const m={ref:d,to:r.value,activeClass:e.activeClass||a.activeClass,exactActiveClass:e.exactActiveClass||a.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(k("interaction")&&(m.onPointerenter=b.bind(null,void 0),m.onFocus=b.bind(null,void 0)),l.value&&(m.class=e.prefetchedClass||a.prefetchedClass),m.rel=e.rel||void 0),T(j("RouterLink"),m,i.default)}const o=e.target||null,f=ve(e.noRel?"":e.rel,a.externalRelAttribute,n.value||v.value?"noopener noreferrer":"")||null;return e.custom?i.default?i.default({href:c.value,navigate:g,prefetch:b,get route(){if(!c.value)return;const m=new URL(c.value,window.location.href);return{path:m.pathname,fullPath:m.pathname,get query(){return G(m.search)},hash:m.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:f,target:o,isExternal:p.value||v.value,isActive:!1,isExactActive:!1}):null:T("a",{ref:u,href:c.value||null,rel:f,target:o},(s=i.default)==null?void 0:s.call(i))}}})}const pe=he(ee);function V(a,t){const h=t==="append"?X:Y;return I(a)&&!a.startsWith("http")?a:h(a,!0)}function me(){const a=A();if(a._observer)return a._observer;let t=null;const h=new Map,x=(e,i)=>(t||(t=new IntersectionObserver(_=>{for(const r of _){const c=h.get(r.target);(r.isIntersecting||r.intersectionRatio>0)&&c&&c()}})),h.set(e,i),t.observe(e),()=>{h.delete(e),t==null||t.unobserve(e),h.size===0&&(t==null||t.disconnect(),t=null)});return a._observer={observe:x}}const _e=/2g/;function ge(){const a=navigator.connection;return!!(a&&(a.saveData||_e.test(a.effectiveType)))}const be={class:"product-collection-2 wx-container wx-space-y"},ye={class:"grid grid-cols-12 gap-3"},xe={class:"col-span-12 top-bar"},we={class:"wx-heading"},Se={class:"col-span-12"},ke={key:1,class:"grid lg:grid-cols-5 grid-cols-2 gap-3 h-full"},mt=H({__name:"CollectionV2",props:["data"],setup(a){const t=a,{fetchProductSection:h}=fe(),{data:x,status:S}=h({collection_ids:t.data.collection,records:t.data.total_products});return ne(()=>JSON.stringify([t.data.collection,t.data.total_products]),()=>{h({collection_ids:t.data.collection,records:t.data.total_products})}),(e,i)=>{var p,v,n,l;const _=M,r=pe,c=ce,g=ue;return w(),P("div",be,[R("div",ye,[R("div",xe,[R("span",we,le(t.data.title),1),t.data.show_view_all?(w(),E(r,{key:0,class:"link flex items-center",to:(v=(p=C(x))==null?void 0:p.collections[0])==null?void 0:v.url},{default:U(()=>[i[0]||(i[0]=se(" View All ")),q(_,{name:"heroicons:chevron-right-20-solid",class:"w-6 h-6 text-gray-500"})]),_:1,__:[0]},8,["to"])):oe("",!0)]),R("div",Se,[C(S)==="success"?(w(),E(de,{key:0,items:((l=(n=C(x))==null?void 0:n.collections[0])==null?void 0:l.products)||[],data:t.data,slidesPerViewDesktop:C(O)(t.data,"slides_per_view_lg"),slidesPerViewMobile:C(O)(t.data,"slides_per_view_sm")},{default:U(({item:u,index:d})=>[q(c,{class:"w-full",product:u},null,8,["product"])]),_:1},8,["items","data","slidesPerViewDesktop","slidesPerViewMobile"])):(w(),P("div",ke,[(w(),P(D,null,F(5,u=>q(g,{class:"lg:block hidden",view_type:"1",key:u})),64)),(w(),P(D,null,F(2,u=>q(g,{class:"lg:hidden block",view_type:"1",key:u})),64))]))])])])}}});export{mt 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.