1import{p as o,a as u,b as d,j as e,n as i,L as a}from"./index-CnqIWqrO.js";import{l as c}from"./journal-public.functions-hbzIncz5.js";function p(){const{subdomain:t}=o.useParams(),l=u(c),{data:r,isLoading:n}=d({queryKey:["public-journal",t],queryFn:()=>l({data:{subdomain:t}})});if(n)return e.jsx("main",{className:"mx-auto max-w-3xl px-6 py-16 text-sm text-muted-foreground",children:"Chargementâ¦"});if(!r)throw i();return e.jsxs("main",{className:"mx-auto max-w-3xl px-6 py-16",children:[e.jsxs(a,{to:"/s/$subdomain",params:{subdomain:t},className:"text-xs text-muted-foreground hover:text-foreground",children:["â ",r.brand_name]}),e.jsx("h1",{className:"text-display mt-4 text-5xl",children:"Journal"}),e.jsxs("ul",{className:"mt-10 space-y-6",children:[r.articles.map(s=>e.jsx("li",{className:"border-b border-border pb-6",children:e.jsxs(a,{to:"/s/$subdomain/journal/$slug",params:{subdomain:t,slug:s.slug},className:"block hover:opacity-80",children:[e.jsxs("p",{className:"text-xs uppercase tracking-widest text-muted-foreground",children:[s.language," · ",s.published_at&&new Date(s.published_at).toLocaleDateString("fr-FR")]}),e.jsx("h2",{className:"mt-2 text-2xl",children:s.title}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s.excerpt})]})},s.slug)),r.articles.length===0&&e.jsx("li",{className:"rounded-2xl border border-dashed border-border p-12 text-center text-sm text-muted-foreground",children:"Aucun article publié pour l'instant."})]})]})}export{p 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.