1import{j as e}from"./app-C1iegf7Q.js";import{H as c}from"./inertia-BpyZy4w-.js";import{A as p}from"./admin-badge-CnLlmTcA.js";import{A as n}from"./admin-card-CGRnBfIW.js";import{H as d}from"./hub-tab-bar-frTrnkQy.js";import{a as x,P as i}from"./pulse-strip-CiQuA-On.js";import{R as m}from"./record-row-B2CaTgsm.js";import{a as h}from"./admin-layout-BhXWbUlP.js";/* empty css */import"./chevron-right-ymZwGCJO.js";import"./createLucideIcon-wqc1LSWg.js";import"./app-logo-Dz0wogSq.js";import"./logo-light-DU4bWymm.js";import"./flash-toast-C6O0iVL1.js";import"./info-D2ZN_yLm.js";import"./triangle-alert-C7AVwNi-.js";import"./circle-x-Bp6Mbpgt.js";import"./circle-check-BMWvzPMx.js";import"./x-DQSeRCcH.js";import"./arrow-left-DCX0fhKH.js";import"./menu-BR3Nc3Gr.js";import"./users-BCcupCXV.js";import"./folder-open-I72SPUVk.js";import"./pound-sterling-D16GLaAZ.js";import"./book-open-DVFlG_9t.js";function f({day:r,month:s}){return e.jsxs("div",{className:"flex w-9 shrink-0 flex-col items-center rounded-md border border-line bg-bg-2 p-1 text-center",children:[e.jsx("span",{className:"text-sm font-bold leading-none text-ink",children:r}),e.jsx("span",{className:"mt-0.5 text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:s})]})}function T({events:r,resources:s,exemplars:o,reports:a}){return e.jsxs(h,{children:[e.jsx(c,{title:"Content â Admin"}),e.jsx(d,{tabs:[{label:"Overview",href:"/admin/content",active:!0},{label:"Events",href:"/admin/events"},{label:"Resources",href:"/admin/resources"},{label:"Exemplars",href:"/admin/exemplars"},{label:"Reports",href:"/admin/content-reports"}]}),e.jsxs("div",{className:"px-4 py-5 sm:px-7 sm:py-6",children:[e.jsx("h1",{className:"mb-5 text-base font-semibold text-ink",children:"Content"}),e.jsxs(x,{cols:4,children:[e.jsx(i,{label:"Upcoming events",value:r.upcoming,delta:"next 30 days"}),e.jsx(i,{label:"Resources",value:s.total,delta:`${s.published} published`}),e.jsx(i,{label:"Exemplars",value:o.total,delta:"AI quality corpus"}),e.jsx(i,{label:"Open reports",value:a.open,delta:a.open>0?"needs review":"All clear",deltaAlert:a.open>0})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-3.5 items-start lg:grid-cols-[1fr_300px]",children:[e.jsxs("div",{className:"flex flex-col gap-3.5",children:[e.jsx(n,{label:"Upcoming events",createHref:"/admin/events/create",seeAll:{href:"/admin/events",label:"All events"},children:r.recent.length===0?e.jsx("p",{className:"px-4 py-4 text-sm text-ink-3",children:"No upcoming events"}):r.recent.map((t,l)=>e.jsx(m,{href:t.href,leading:e.jsx(f,{day:t.day,month:t.month}),name:t.title,meta:`${t.registrations} registered`},l))}),e.jsx(n,{label:"Recent resources",createHref:"/admin/resources/create",seeAll:{href:"/admin/resources",label:"All resources"},children:s.recent.length===0?e.jsx("p",{className:"px-4 py-4 text-sm text-ink-3",children:"No resources yet"}):s.recent.map((t,l)=>e.jsx(m,{name:t.title,emphasis:"plain",href:t.href,right:e.jsx(p,{variant:t.status_badge,children:t.status})},l))})]}),e.jsxs("div",{className:"flex flex-col gap-3.5",children:[e.jsx(n,{label:"Recent exemplars",seeAll:{href:"/admin/exemplars",label:"All"},children:o.recent.length===0?e.jsx("p",{className:"px-4 py-4 text-sm text-ink-3",children:"No exemplars yet"}):o.recent.map((t,l)=>e.jsx(m,{name:t.title,emphasis:"plain",href:t.href,right:t.journey?e.jsx(p,{variant:"neutral",children:t.journey}):null},l))}),e.jsx(n,{label:"Open reports",seeAll:{href:"/admin/content-reports",label:"All reports"},children:a.recent.length===0?e.jsx("p",{className:"px-4 py-4 text-sm text-ink-3",children:"No open reports"}):a.recent.map((t,l)=>e.jsx(m,{name:t.title,emphasis:"plain",href:t.href,meta:`${t.type} · ${t.flagged_ago}`,right:e.jsx(p,{variant:"amber",children:"Open"})},l))})]})]})]})]})}export{T as default};
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.