1import{j as e}from"./ui-vendor-B6qDrwDU.js";import{l as s,a as t}from"./react-vendor-CWdWklYc.js";import{B as r,c as a,d as i}from"./BlogBreadcrumb-CeGeT-Ri.js";import{B as l,a as o}from"./BlogSidebar-B4iiUdtE.js";import{P as n}from"./PublicLayout-Dh9XVQfj.js";import{S as d}from"./SEO-CF7PDpYl.js";import{u as c}from"./index-lqK706Ou.js";import"./clerk-vendor-D3H2MyHf.js";import"./mode-toggle-D4o8gWHn.js";import"./loading-overlay-DqCJoqDT.js";import"./convex-vendor-CExL1t8U.js";function m(){const{category:m}=s(),{t:x,i18n:g}=c("blog"),[j,u]=t.useState([]),[p,h]=t.useState(null),[f,v]=t.useState(!0),N=g.language;if(t.useEffect(()=>{(async()=>{if(!m)return;v(!0);const[e,s]=await Promise.all([a(m),i(m,N)]);h(e),u(s),v(!1)})()},[m,N]),f)return e.jsx(n,{children:e.jsx("div",{className:"flex min-h-[60vh] items-center justify-center",children:e.jsxs("div",{className:"space-y-4 text-center",children:[e.jsx("div",{className:"mx-auto h-12 w-12 animate-spin rounded-full border-b-2 border-primary"}),e.jsx("p",{className:"text-muted-foreground",children:x("loading")})]})})});if(!p)return e.jsx(n,{children:e.jsx("div",{className:"flex min-h-[60vh] items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"mb-4 text-2xl font-bold",children:x("category.notFound")}),e.jsx("p",{className:"text-muted-foreground",children:x("category.notFoundDescription")})]})})});const b=p.name[N]||p.name.en,y=p.description[N]||p.description.en;return e.jsxs(n,{children:[e.jsx(d,{title:`${b} | ${x("list.title")}`,description:y,path:`/blog/category/${m}`}),e.jsx("div",{className:"bg-muted/30 px-4 py-12 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"container mx-auto max-w-7xl",children:[e.jsx(r,{items:[{label:b}]}),e.jsxs("div",{className:"mb-12 text-center",children:[e.jsx("h1",{className:"mb-4 text-4xl font-bold tracking-tight text-foreground md:text-5xl",children:b}),e.jsx("p",{className:"mx-auto max-w-2xl text-lg text-muted-foreground",children:y})]}),0===j.length?e.jsx("div",{className:"rounded-lg border bg-card p-12 text-center shadow-sm",children:e.jsx("p",{className:"text-muted-foreground",children:x("category.noPosts")})}):e.jsxs("div",{className:"grid gap-8 lg:grid-cols-4",children:[e.jsx("div",{className:"lg:col-span-3",children:e.jsx("div",{className:"grid gap-8 md:grid-cols-2 lg:grid-cols-2",children:j.map(s=>e.jsx(l,{post:s},s.slug))})}),e.jsx("div",{className:"hidden lg:block",children:e.jsx(o,{})})]})]})})]})}export{m as BlogCategoryPage}; 2//# sourceMappingURL=BlogCategoryPage-DakpNeIl.js.map
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.