import{o as e}from"./useStore-B9WcefOa.js";import{t}from"./link-CSxX31-N.js";import{a as n,i as r,n as i,t as a}from"./index-VYIssuI_.js";import{i as o,n as s,r as c,t as l}from"./Layout-uiA8q21U.js";import{n as u}from"./Collection-BGyZxlEk.js";var d=e();function f(){let{category:e,subcategory:f}=a.useParams(),p=r.find(t=>t.path===`/product-category/${e}/${f}`),m=n.filter(t=>t.category===e),h=r.filter(t=>t.path.startsWith(`/product-category/${e}/`));return(0,d.jsx)(o,{children:(0,d.jsxs)(l,{children:[(0,d.jsxs)(`nav`,{className:`mb-4 text-sm text-muted-foreground`,children:[(0,d.jsx)(t,{to:`/`,className:`hover:text-maroon`,children:`Home`}),` `,`/ `,(0,d.jsx)(t,{to:`/categories-of-our-catalog`,children:`Categories`}),` / `,i(e),` /`,` `,p?.name??i(f)]}),(0,d.jsx)(s,{children:p?.name??i(f)}),(0,d.jsx)(c,{children:(0,d.jsxs)(`p`,{children:[p?`There are ${p.count} items catalogued in this category.`:`Items in this category are being catalogued and added to the site regularly.`,` `,`Every piece is inspected in our Boulder gallery and guaranteed as described.`]})}),(0,d.jsxs)(`div`,{className:`mt-10 grid gap-10 lg:grid-cols-[260px_1fr]`,children:[(0,d.jsxs)(`aside`,{children:[(0,d.jsxs)(`h2`,{className:`font-display text-xl text-maroon`,children:[`More in `,i(e)]}),(0,d.jsx)(`ul`,{className:`mt-3 space-y-1.5 text-[15px]`,children:h.map(n=>{let r=n.path.split(`/`).pop()??``;return(0,d.jsx)(`li`,{children:(0,d.jsxs)(t,{to:`/product-category/$category/$subcategory`,params:{category:e,subcategory:r},className:`hover:text-maroon`,activeProps:{className:`text-maroon font-semibold`},children:[n.name,` (`,n.count,`)`]})},n.path)})})]}),(0,d.jsx)(`div`,{children:m.length?(0,d.jsx)(`div`,{className:`grid gap-6 sm:grid-cols-2 xl:grid-cols-3`,children:m.map(e=>(0,d.jsx)(u,{product:e},e.slug))}):(0,d.jsxs)(`p`,{className:`text-foreground/80`,children:[`These items are not online yet. Please use our`,` `,(0,d.jsx)(t,{to:`/request-an-item`,className:`text-maroon underline`,children:`request-an-item form`}),` `,`and we will search our inventory for you.`]})})]})]})})}export{f as component};