1import{b3 as i,j as e,L as c,aQ as o,v as n}from"./index-BUm1srQw.js";import{S as x}from"./Breadcrumb-J95b1wjM.js";import{A as m}from"./ArticleCard-55xx11Bf.js";import"./arrow-right-eoTIPIjS.js";function h(){const{category:s,articles:r,parent:l}=i.useLoaderData(),a=s.subcategories.length>0;return e.jsxs(c,{children:[e.jsx(x,{items:[{label:"Support",to:"/support"},...l?[{label:l.name,to:"/support/category/$slug",params:{slug:l.slug}}]:[],{label:s.name}]}),e.jsxs("section",{className:"mx-auto max-w-6xl px-4 py-10 sm:px-6 sm:py-14",children:[e.jsxs("div",{className:"max-w-2xl",children:[e.jsx("div",{children:e.jsx(o,{name:s.icon,className:"h-8 w-8 text-neutral-900"})}),e.jsx("h1",{className:"mt-3 font-display text-3xl font-semibold tracking-[-1.2px] text-neutral-900 sm:text-4xl",children:s.name}),e.jsx("p",{className:"mt-3 text-[16px] leading-[1.6] text-neutral-600",children:s.description})]}),a&&e.jsx("div",{className:"mt-10 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:s.subcategories.map(t=>e.jsxs(n,{to:"/support/category/$slug",params:{slug:t.slug},className:"group rounded-3xl border border-neutral-200 bg-white p-6 transition hover:border-neutral-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#3A00E5]",children:[e.jsx("div",{className:"transition-transform group-hover:scale-110",children:e.jsx(o,{name:t.icon,className:"h-7 w-7 text-neutral-900"})}),e.jsx("h2",{className:"mt-4 font-display text-[18px] font-semibold text-neutral-900",children:t.name}),e.jsxs("p",{className:"mt-4 text-[13px] font-medium text-neutral-500",children:[t.totalArticleCount," ",t.totalArticleCount===1?"article":"articles"]})]},t.slug))}),r.length>0&&e.jsxs("div",{className:`${a?"mt-12":"mt-10"} flex flex-col gap-3`,children:[a&&e.jsx("h2",{className:"font-display text-xl font-semibold tracking-[-0.6px] text-neutral-900",children:"More articles"}),r.map(t=>e.jsx(m,{article:t},t.slug))]}),!a&&r.length===0&&e.jsxs("div",{className:"mt-10 rounded-3xl border border-dashed border-neutral-300 bg-white p-10 text-center",children:[e.jsx("p",{className:"text-[15px] text-neutral-600",children:"No articles in this category yet â check back soon."}),e.jsx(n,{to:"/support",className:"mt-4 inline-flex h-[44px] items-center rounded-full bg-neutral-900 px-5 text-[14px] font-semibold text-white",children:"Back to Support"})]})]})]})}export{h 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.