1import{j as e}from"./app-C1iegf7Q.js";import{H as n,L as s,f as a}from"./inertia-BpyZy4w-.js";import{a as o}from"./admin-layout-BhXWbUlP.js";import{a as d}from"./utils-BiuKVCuu.js";import{P as m}from"./plus-BJl-aJiX.js";import{S as l}from"./square-pen-DgHxGDPS.js";import{T as x}from"./trash-2-CrI9a2Po.js";/* empty css */import"./app-logo-Dz0wogSq.js";import"./logo-light-DU4bWymm.js";import"./flash-toast-C6O0iVL1.js";import"./createLucideIcon-wqc1LSWg.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 S({exemplars:i}){const r=t=>{confirm("Delete this exemplar? This cannot be undone.")&&a.delete(`/admin/exemplars/${t}`)};return e.jsxs(o,{children:[e.jsx(n,{title:"Exemplars · Admin"}),e.jsxs("div",{className:"px-4 py-5 sm:px-6 sm:py-7",children:[e.jsxs("div",{className:"mb-5 flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl font-semibold text-ink",children:"Exemplars"}),e.jsx("p",{className:"mt-0.5 text-sm text-ink-3",children:"The AI quality-bar corpus, matched to templates by criterion."})]}),e.jsxs(s,{href:"/admin/exemplars/create",className:"inline-flex items-center gap-1.5 rounded-lg bg-ink px-4 py-2 text-sm font-medium text-white hover:bg-ink/90",children:[e.jsx(m,{className:"h-3.5 w-3.5"}),"New exemplar"]})]}),i.length===0?e.jsx("div",{className:"rounded-card border border-line bg-white px-4 py-10 text-center text-sm text-ink-3",children:"No exemplars yet. Add one to raise the quality bar for a criterion."}):e.jsx("div",{className:"overflow-hidden rounded-card border border-line bg-white",children:i.map(t=>e.jsxs("div",{className:"flex items-start gap-4 border-b border-line-2 px-4 py-3.5 last:border-0 hover:bg-bg-2",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 mb-1",children:[t.criterion_code&&e.jsx("span",{className:"rounded-tag bg-bg-2 px-2 py-0.5 text-2xs font-bold text-ink-3",children:t.criterion_code}),e.jsx("span",{className:"rounded-tag bg-bg-2 px-2 py-0.5 text-2xs font-bold capitalize text-ink-3",children:t.visibility}),!t.is_active&&e.jsx("span",{className:"rounded-tag bg-red/10 px-2 py-0.5 text-2xs font-bold text-red",children:"Inactive"})]}),e.jsx("p",{className:d("text-sm font-semibold",t.is_active?"text-ink":"text-ink-3"),children:t.title}),e.jsxs("p",{className:"mt-0.5 text-xs text-ink-3",children:[t.why_count," teaching point",t.why_count===1?"":"s"]})]}),e.jsxs("div",{className:"flex shrink-0 gap-1.5",children:[e.jsx(s,{href:`/admin/exemplars/${t.uuid}/edit`,className:"flex h-7 w-7 items-center justify-center rounded-md border border-line bg-white text-ink-3 hover:bg-bg-2 hover:text-ink",children:e.jsx(l,{className:"h-3.5 w-3.5"})}),e.jsx("button",{type:"button",onClick:()=>r(t.uuid),className:"flex h-7 w-7 items-center justify-center rounded-md border border-line bg-white text-ink-3 hover:border-red/30 hover:bg-red/10 hover:text-red",children:e.jsx(x,{className:"h-3.5 w-3.5"})})]})]},t.uuid))})]})]})}export{S 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.