<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import{m as M,i as g,j as a,F as u,d as f,l as b,bY as P,f as w,b$ as x}from"../../../chunk-19e1ba83.js";import{W as D}from"../../../chunk-0c2a0f3e.js";import{u as F}from"../../../chunk-7e8ccf70.js";import{a5 as I}from"../../../chunk-438c4642.js";import{r as O}from"../../../chunk-c12d4a4f.js";import"../../../chunk-06db561b.js";import"../../../chunk-5d6d9427.js";import"../../../chunk-8505b20b.js";import{u as R}from"../../../chunk-b230787e.js";import"../../../chunk-86e11248.js";import{S as j,M as v}from"../../../chunk-5998814f.js";import{C as V}from"../../../chunk-dc0f306a.js";import{C as B}from"../../../chunk-0991239e.js";import"../../../chunk-e4587ebd.js";import"../../../chunk-4b95c2fb.js";import"../../../chunk-0e07c050.js";import"../../../chunk-15eb9620.js";import"../../../chunk-3121838f.js";import"../../../chunk-23c0931f.js";import"../../../chunk-ca0b08d6.js";import"../../../chunk-2e39c522.js";function E(){const r=M(),t=g(r,"categories",[]),{containerRef:c,isVisible:s}=R({root:null,rootMargin:"50px",threshold:0}),n=(t==null?void 0:t.length)&gt;2;let e;return r&amp;&amp;(e=f("section",{className:"relative",id:"category-page",children:[n&amp;&amp;a(V,{}),a(B,{}),a(j,{isVisible:!s}),a(v,{})]})),a(u,{children:e})}function at(){const r=b(I),t=F(),{metaTitle:c=""}=r||{};return f(u,{children:[a(D,{children:a("title",{children:c||`${r==null?void 0:r.value} ${t!=null&amp;&amp;t.metaTitle?`| ${t==null?void 0:t.metaTitle}`:""}`})}),a(E,{})]})}async function it(r){var p;const{pageData:t,hostname:c,urlParsed:s}=r;if(!P())return;const{id:n}=r.routeParams,{store:e}=JSON.parse(t),i=(p=e.categories)==null?void 0:p.find(C=&gt;C.slug===n);i||await O(404,"Category not found",{pageData:t});const m=new URLSearchParams((s==null?void 0:s.searchOriginal)||"");m.set("category",n);const l=m.toString(),d=await w(x()+`/store/${e==null?void 0:e.id}/product-search-filter?${l}`),h={products:{activeCategory:i}},o=g(e,"storeSettings.seo"),{metaTitle:S="",metaDesc:T="",ogImage:y=""}=i,$={...o,metaTitle:S||`${i==null?void 0:i.value} ${o!=null&amp;&amp;o.metaTitle?`| ${o==null?void 0:o.metaTitle}`:""}`,metaDesc:T||(o==null?void 0:o.metaDesc),ogImage:y};return{pageContext:{storeState:h,documentProps:$,fallback:{["/store"]:{store:e},[`/store/${e==null?void 0:e.id}/product-search-filter?${l}`]:d}}}}export{at as Page,it as onBeforeRender};
</pre></body></html>