1import"../chunks/disclose-version.CWj6FrbW.js";import{o as X}from"../chunks/index-client.DE9v3pLa.js";import{c as Y,p as Z,m as B,q as E,u as aa,k as S,f as g,s as n,l as o,t as _,a as m,b as ea,d as x,e as i,h as ta,n as $,r as s,g as C,o as ra}from"../chunks/custom-element.6WVsMxX9.js";import{i as w}from"../chunks/if.BF0OPaKU.js";import{e as sa,i as ia}from"../chunks/each.Eyf53n4L.js";import{h as z}from"../chunks/html.B7g-e6l7.js";import{a as oa}from"../chunks/css.B7GY7jC8.js";import{a as A,b as pa}from"../chunks/attributes.CUCYEKt0.js";import{p as da}from"../chunks/props.BUK3oH8J.js";import{p as h}from"../chunks/index.CpiRjlEZ.js";import{g as D,q as F,w as G,a as H,d as I}from"../chunks/firebase.D0qMFv0g.js";import"../chunks/ProductsDynamic.D_HO3Cvw.js";import{m as na}from"../chunks/meta.store.D-2N9AwB.js";var ma=x('<div class="swiper-slide"><div class="tag-card flex flex-col items-center"><a><img alt="Main slide" class="object-cover w-full h-[380px]"/></a> <p> </p></div></div>'),ca=x("<pb-products-dynamic></pb-products-dynamic>",2),va=x('<!> <section class="section"><div class="max-w-[1200px] mx-auto"><div class="swiper main-swiper h-[70%]"><div class="swiper-wrapper"></div> <div class="swiper-pagination"></div></div> <p class="max-w-[500px] mx-auto my-[50px] text-center"> </p></div> <!></section> <!>',1);const la={hash:"svelte-17y9ji1",code:""};function fa(y,b){Z(b,!0),oa(y,la);let p=da(b,"data",7),k=B(E([])),c=B(E({id:""})),v;async function J(e){const a=await D(F(H(I,"product-categories"),G("url","==",e))).then(d=>d.docs.map(r=>({...r.data(),id:r.id}))[0]),t=await D(F(H(I,"tags"),G("categories","array-contains",a.id))).then(d=>d.docs.map(r=>r.data()));return na.set({title:(a==null?void 0:a.name)||"Category",description:(a==null?void 0:a.description)||"Browse products in this category on Move & Meet."}),{category:a,tags:t}}X(()=>{v=new window.Swiper(".tags-swiper",{loop:!0,spaceBetween:20,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{el:".swiper-pagination",clickable:!0},breakpoints:{500:{slidesPerView:1},900:{slidesPerView:2},1024:{slidesPerView:3},1280:{slidesPerView:4}}})}),aa(()=>{h.params.id&&J(h.params.id).then(({category:e,tags:a})=>{S(c,e||{id:""},!0),S(k,a,!0),v==null||v.update()})});var K={get data(){return p()},set data(e){p(e),ta()}},M=va(),P=g(M);{var L=e=>{var a=$(),t=g(a);z(t,()=>p().header),m(e,a)};w(P,e=>{p().header&&e(L)})}var l=n(P,2),f=i(l),u=i(f),V=i(u);sa(V,21,()=>o(k),ia,(e,a)=>{var t=ma(),d=i(t),r=i(d),U=i(r);s(r);var q=n(r,2),W=i(q,!0);s(q),s(d),s(t),_(()=>{A(r,"href",`/categories/${h.params.id}/${o(a).url}`),A(U,"src",o(a).image||"/images/dummy-img.jpg"),C(W,o(a).name)}),m(e,t)}),s(V),ra(2),s(u);var j=n(u,2),N=i(j,!0);s(j),s(f);var O=n(f,2);{var Q=e=>{var a=ca();_(()=>pa(a,"category",o(c).id)),m(e,a)};w(O,e=>{var a;(a=o(c))!=null&&a.id&&e(Q)})}s(l);var R=n(l,2);{var T=e=>{var a=$(),t=g(a);z(t,()=>p().footer),m(e,a)};w(R,e=>{p().footer&&e(T)})}return _(()=>C(N,o(c).description)),m(y,M),ea(K)}Y(fa,{data:{}},[],[],{mode:"open"});export{fa as component};
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.