1import{h as m,k as x,c,j as e,L as l}from"./index-C1BHCXLM.js";import{S as g}from"./SiteLayout-Ztky19Gu.js";import"./createLucideIcon-BpVpLA-x.js";import"./x-D65dtNlm.js";function b(){const{siteConfig:t}=m({from:"__root__"}),d=x(),n=[...c].sort((s,a)=>s.name.localeCompare(a.name)),i=Array.from(new Set(n.map(s=>s.name.charAt(0).toUpperCase()))).sort();return e.jsxs(g,{children:[e.jsx("section",{className:"border-b border-border bg-surface",children:e.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-12 sm:px-6 lg:px-8",children:[e.jsxs("nav",{className:"text-sm text-muted-foreground","aria-label":"Breadcrumb",children:[e.jsx(l,{to:"/",className:"hover:text-foreground",children:"Home"}),e.jsx("span",{className:"mx-2",children:"/"}),e.jsx("span",{className:"text-foreground",children:"Categories"})]}),e.jsxs("h1",{className:"mt-3 font-display text-3xl font-semibold tracking-tight sm:text-4xl",children:["Browse All Business Categories",t.city?` in ${t.city}`:""]}),e.jsxs("p",{className:"mt-2 max-w-2xl text-muted-foreground",children:[c.length," top-level categories spanning every kind of local business",t.city?` in ${t.city}`:"","."]}),e.jsx("div",{className:"mt-5 flex flex-wrap gap-1.5",children:i.map(s=>e.jsx("a",{href:`#letter-${s}`,className:"inline-flex h-8 min-w-8 items-center justify-center rounded-full border border-border bg-card px-2 text-xs font-semibold text-foreground hover:border-accent",children:s},s))})]})}),e.jsx("section",{className:"mx-auto max-w-7xl px-4 py-12 sm:px-6 lg:px-8",children:e.jsx("div",{className:"space-y-10",children:i.map(s=>{const a=n.filter(r=>r.name.charAt(0).toUpperCase()===s);return e.jsxs("div",{id:`letter-${s}`,children:[e.jsx("h2",{className:"mb-4 inline-flex h-9 w-9 items-center justify-center rounded-full bg-primary font-display text-base font-bold text-primary-foreground",children:s}),e.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:a.map(r=>e.jsxs("div",{className:"rounded-2xl border border-border bg-card p-5 shadow-card",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"grid h-10 w-10 place-items-center rounded-lg text-lg",style:{backgroundColor:`${r.color}1a`,color:r.color},"aria-hidden":!0,children:r.icon}),e.jsxs("div",{children:[e.jsx(l,{to:"/category/$slug",params:{slug:r.slug},className:"font-display text-base font-semibold text-foreground hover:text-primary",children:r.name}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[d[r.slug]??0," businesses"]})]})]}),r.subcategories.length>0&&e.jsx("ul",{className:"mt-4 space-y-1.5 pl-1",children:r.subcategories.map(o=>e.jsx("li",{children:e.jsxs(l,{to:"/directory",search:{cat:o.slug},className:"text-sm text-muted-foreground hover:text-primary",children:["â ",o.name]})},o.slug))})]},r.slug))})]},s)})})})]})}export{b 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.