1import{j as e}from"./app-C1iegf7Q.js";import{h as se,b as u,H as te,f as d}from"./inertia-BpyZy4w-.js";import{M as re}from"./markdown-renderer-CJUAlNY6.js";import{B as n}from"./button-BE4q1_FS.js";import{I as P}from"./input-DJt0nBB3.js";import{L as m}from"./label-Czc25Mye.js";import{S as F,e as B,f as O,a as U,c as M}from"./select-Bn8hgKYl.js";import{T as k}from"./textarea-CXLxrYIG.js";import{a as ae}from"./admin-layout-BhXWbUlP.js";import{a as E}from"./utils-BiuKVCuu.js";import{A as ie}from"./arrow-left-DCX0fhKH.js";import{R as V}from"./refresh-cw-Cog2DILh.js";import{S as I}from"./send-COySMMwK.js";import{E as H}from"./external-link-avvfS30C.js";import{C as le}from"./circle-check-big-AJlsIacq.js";import{C as ne}from"./circle-x-Bp6Mbpgt.js";import{S as de}from"./sparkles-C0aC1RHI.js";import{I as oe}from"./image-vCg-0Xge.js";import{D as ce}from"./download-CXbkSkxk.js";import{U as me}from"./upload-C1CGckSw.js";import{T as pe}from"./trash-2-CrI9a2Po.js";import{C as xe}from"./check-0O-UND6N.js";import{C as he}from"./copy-DmjhZUbe.js";/* empty css */import"./video-embed-XSCcqTy1.js";import"./index-DnOwzyLg.js";import"./index-CGXdj8xB.js";import"./index-DdRFMukF.js";import"./index-BdQq_4o_.js";import"./index-Dc_FVRD7.js";import"./index-B0NHTN87.js";import"./index-C48dRAib.js";import"./index-BDqbV96p.js";import"./index-Cja0wFUH.js";import"./index-CL12STDK.js";import"./Combination-Cr5kvm8y.js";import"./index-C_n-C52S.js";import"./index-D4vO54bj.js";import"./index-BRU_LjHB.js";import"./index-XydtsrKA.js";import"./index-Cs5D2gCo.js";import"./index-DyGg2PJd.js";import"./chevron-down-B1YaU0K5.js";import"./createLucideIcon-wqc1LSWg.js";import"./chevron-up-CLp5HMgA.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-check-BMWvzPMx.js";import"./x-DQSeRCcH.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";const ue=["headline","caption","image_direction","post","subject","body","message"];function J(r){if(!r)return"";const s=[];return typeof r.subject=="string"&&s.push(`Subject: ${r.subject}`),typeof r.headline=="string"&&s.push(r.headline),typeof r.post=="string"&&s.push(r.post),typeof r.message=="string"&&s.push(r.message),typeof r.caption=="string"&&s.push(r.caption),typeof r.body=="string"&&s.push(r.body),Array.isArray(r.slides)&&r.slides.forEach((o,g)=>{const p=o??{};s.push(`Slide ${g+1}: ${p.heading??""} 2${p.body??""}`)}),typeof r.image_direction=="string"&&s.push(`Image: ${r.image_direction}`),s.join(` 3 4`)}function ge({draft:r,updateUuid:s}){const o=r.effective_content??{},[g,p]=u.useState(!1),[j,b]=u.useState(!1),[x,N]=u.useState({}),w=ue.filter(a=>typeof o[a]=="string"),_=Array.isArray(o.slides),v=()=>{const a={};w.forEach(h=>{a[h]=String(o[h]??"")}),_&&(a.slides=JSON.stringify(o.slides,null,2)),N(a),p(!0)},C=()=>{const a={};Object.entries(x).forEach(([h,S])=>{if(h==="slides")try{a.slides=JSON.parse(S)}catch{a.slides=o.slides}else a[h]=S}),d.patch(`/admin/policy-updates/${s}/share-drafts/${r.id}`,{edited_content:a},{preserveScroll:!0,onSuccess:()=>p(!1)})},z=()=>{navigator.clipboard.writeText(J(o)),b(!0),window.setTimeout(()=>b(!1),1500)};return e.jsxs("div",{className:"rounded-lg border border-line p-4",children:[e.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm font-medium text-ink",children:r.format_label}),r.is_edited&&e.jsx("span",{className:"rounded-tag bg-bg-2 px-2 py-0.5 text-2xs font-bold text-ink-3",children:"Edited"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(n,{variant:"outline",size:"sm",onClick:z,children:[j?e.jsx(xe,{className:"mr-1 h-3.5 w-3.5"}):e.jsx(he,{className:"mr-1 h-3.5 w-3.5"}),j?"Copied":"Copy"]}),e.jsx(n,{variant:"outline",size:"sm",onClick:g?()=>p(!1):v,children:g?"Cancel":"Edit"})]})]}),g?e.jsxs("div",{className:"space-y-3",children:[w.map(a=>e.jsxs("div",{children:[e.jsx(m,{className:"text-2xs font-bold uppercase tracking-eyebrow text-ink-3 capitalize",children:a.replace("_"," ")}),e.jsx(k,{value:x[a]??"",onChange:h=>N({...x,[a]:h.target.value}),rows:a==="caption"||a==="body"?5:2})]},a)),_&&e.jsxs("div",{children:[e.jsx(m,{className:"text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:"Slides (JSON)"}),e.jsx(k,{value:x.slides??"",onChange:a=>N({...x,slides:a.target.value}),rows:8,className:"font-mono text-xs"})]}),e.jsx(n,{size:"sm",onClick:C,children:"Save draft"})]}):e.jsx("pre",{className:"whitespace-pre-wrap font-sans text-sm text-ink-2",children:J(o)||"No copy generated."})]})}const je={high:"bg-red/10 text-red",medium:"bg-amber/12 text-amber-ink",low:"bg-teal/10 text-teal",informational:"bg-bg-2 text-ink-3"},fe={fetched:"bg-bg-2 text-ink-3",summarizing:"bg-teal/10 text-teal",pending:"bg-amber/12 text-amber-ink",approved:"bg-green/10 text-green-ink",published:"bg-violet-50 text-violet-700",rejected:"bg-red/10 text-red",failed:"bg-red/10 text-red"};function ys(){const{props:r}=se(),{update:s,categories:o,impactLevels:g,visaTypes:p,shareDrafts:j,cardCredit:b,hasCustomCardBackgroun
4d:x,cardVersion:N,cardFormats:w,defaultCardFormat:_}=r,v=u.useRef(null),[C,z]=u.useState(_),a=`/admin/policy-updates/${s.uuid}/card.jpg?format=${C}`,h=()=>{d.post(`/admin/policy-updates/${s.uuid}/card/refresh`,{},{preserveScroll:!0})},S=t=>{const c=t.target.files?.[0];c&&d.post(`/admin/policy-updates/${s.uuid}/card-background`,{background:c},{forceFormData:!0,preserveScroll:!0,onFinish:()=>{v.current&&(v.current.value="")}})},G=()=>{d.delete(`/admin/policy-updates/${s.uuid}/card-background`,{preserveScroll:!0})},{flash:R}=r,[A,D]=u.useState(!1),[i,f]=u.useState({title:s.title||"",slug:s.slug||"",summary:s.summary||"",excerpt:s.excerpt||"",category:s.category,impact_level:s.impact_level,tags:s.tags||[],affected_visa_types:s.affected_visa_types||[]}),[y,K]=u.useState(""),$=t=>t?new Date(t).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"}):"-",q=()=>{d.patch(`/admin/policy-updates/${s.uuid}`,i,{preserveScroll:!0,onSuccess:()=>D(!1)})},X=()=>{d.post(`/admin/policy-updates/${s.uuid}/approve`,{notes:y},{preserveScroll:!0})},Q=()=>{d.post(`/admin/policy-updates/${s.uuid}/approve-and-publish`,{notes:y},{preserveScroll:!0})},W=()=>{if(!y.trim()){alert("Please provide rejection notes.");return}d.post(`/admin/policy-updates/${s.uuid}/reject`,{notes:y},{preserveScroll:!0})},L=()=>{confirm("Publish this update? It will become visible to all users.")&&d.post(`/admin/policy-updates/${s.uuid}/publish`,{},{preserveScroll:!0})},Y=()=>{const t=s.status==="published"?"Re-summarize this item? It will be taken offline and will need re-approving before going live again.":"Re-summarize this item?";confirm(t)&&d.post(`/admin/policy-updates/${s.uuid}/resummarize`,{},{preserveScroll:!0})},Z=()=>{d.post(`/admin/policy-updates/${s.uuid}/share-drafts/regenerate`,{},{preserveScroll:!0})},l="text-2xs font-bold uppercase tracking-eyebrow text-ink-3";return e.jsxs(ae,{children:[e.jsx(te,{title:`${s.title||s.original_title} · Admin`}),e.jsx("div",{className:"px-4 py-5 sm:px-6 sm:py-7",children:e.jsxs("div",{className:"mx-auto max-w-7xl",children:[e.jsxs("button",{type:"button",onClick:()=>d.get("/admin/policy-updates"),className:"mb-2 inline-flex items-center gap-1 text-xs font-medium text-ink-3 hover:text-ink",children:[e.jsx(ie,{className:"h-3.5 w-3.5"})," Back"]}),R.success&&e.jsx("div",{className:"mb-4 rounded-card border border-green/30 bg-green/10 px-4 py-3 text-sm text-green-ink",children:R.success}),R.error&&e.jsx("div",{className:"mb-4 rounded-card border border-red/30 bg-red/10 px-4 py-3 text-sm text-red",children:R.error}),e.jsxs("div",{className:"mb-6 flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"text-xl font-semibold text-ink",children:[s.country?.flag_emoji," ",s.title||s.original_title]}),e.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:E("rounded-tag px-2 py-0.5 text-2xs font-bold capitalize",fe[s.status]??"bg-bg-2 text-ink-3"),children:s.status}),e.jsx("span",{className:E("rounded-tag px-2 py-0.5 text-2xs font-bold capitalize",je[s.impact_level]??"bg-bg-2 text-ink-3"),children:s.impact_level}),e.jsx("span",{className:"rounded-tag border border-line bg-white px-2 py-0.5 text-2xs font-bold capitalize text-ink-2",children:s.category.replace("_"," ")})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(n,{variant:"outline",size:"sm",onClick:Y,children:[e.jsx(V,{className:"mr-1 h-4 w-4"}),"Re-summarize"]}),s.status==="approved"&&e.jsxs(n,{size:"sm",onClick:L,children:[e.jsx(I,{className:"mr-1 h-4 w-4"}),"Publish"]})]})]}),e.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[e.jsxs("div",{className:"rounded-card border border-line bg-white p-5",children:[e.jsx("h2",{className:"mb-4 text-base font-semibold text-ink",children:"Original Content"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:l,children:"Title"}),e.jsx("p",{className:"mt-1 font-medium text-ink",children:s.original_title})]}),s.source_url&&e.jsxs("div",{children:[e.jsx("p",{className:l,children:"Source"}),e.jsxs("a",{href:s.source_url,target:"_blank",rel:"noopener noreferrer",className:"mt-1 flex items-center gap-1 text-sm text-teal hover:underline",children:[e.jsx(H,{className:"h-3.5 w-3.5"}),s.source_url]}
4)]}),e.jsxs("div",{children:[e.jsx("p",{className:l,children:"Published"}),e.jsx("p",{className:"mt-1 text-sm text-ink",children:$(s.original_published_at)})]}),e.jsx("div",{className:"border-t border-line-2"}),e.jsxs("div",{children:[e.jsx("p",{className:l,children:"Content"}),e.jsx("div",{className:"prose prose-sm dark:prose-invert mt-2 max-h-[500px] max-w-none overflow-y-auto rounded-lg border border-line p-4",children:s.original_content?e.jsx("div",{dangerouslySetInnerHTML:{__html:s.original_content}}):e.jsx("p",{className:"text-ink-3",children:"No content available"})})]})]})]}),e.jsxs("div",{className:"rounded-card border border-line bg-white p-5",children:[e.jsxs("div",{className:"mb-4 flex flex-row items-center justify-between",children:[e.jsx("h2",{className:"text-base font-semibold text-ink",children:"AI Summary"}),e.jsx(n,{variant:"outline",size:"sm",onClick:()=>D(!A),children:A?"Cancel":"Edit"})]}),e.jsx("div",{className:"space-y-4",children:A?e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx(m,{children:"Title"}),e.jsx(P,{value:i.title,onChange:t=>f({...i,title:t.target.value})})]}),e.jsxs("div",{children:[e.jsx(m,{children:"Slug"}),e.jsx(P,{value:i.slug,onChange:t=>f({...i,slug:t.target.value})})]}),e.jsxs("div",{children:[e.jsx(m,{children:"Excerpt (max 300 chars)"}),e.jsx(k,{value:i.excerpt,onChange:t=>f({...i,excerpt:t.target.value}),maxLength:300,rows:2})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(m,{children:"Category"}),e.jsxs(F,{value:i.category,onValueChange:t=>f({...i,category:t}),children:[e.jsx(B,{children:e.jsx(O,{})}),e.jsx(U,{children:Object.entries(o).map(([t,c])=>e.jsx(M,{value:t,children:c},t))})]})]}),e.jsxs("div",{children:[e.jsx(m,{children:"Impact Level"}),e.jsxs(F,{value:i.impact_level,onValueChange:t=>f({...i,impact_level:t}),children:[e.jsx(B,{children:e.jsx(O,{})}),e.jsx(U,{children:Object.entries(g).map(([t,c])=>e.jsx(M,{value:t,children:c},t))})]})]})]}),e.jsxs("div",{children:[e.jsx(m,{children:"Affected Visa Types"}),e.jsx("p",{className:"mb-2 text-xs text-ink-3",children:"Select which visa holders this update applies to. Leave empty for all users."}),e.jsx("div",{className:"grid max-h-48 grid-cols-2 gap-2 overflow-y-auto rounded-lg border border-line p-3",children:p.map(t=>e.jsxs("label",{className:"flex cursor-pointer items-center gap-2 text-sm text-ink",children:[e.jsx("input",{type:"checkbox",checked:i.affected_visa_types.includes(t.value),onChange:c=>{const T=c.target.checked?[...i.affected_visa_types,t.value]:i.affected_visa_types.filter(ee=>ee!==t.value);f({...i,affected_visa_types:T})},className:"rounded border-line"}),t.label]},t.value))})]}),e.jsxs("div",{children:[e.jsx(m,{children:"Summary (Markdown)"}),e.jsx(k,{value:i.summary,onChange:t=>f({...i,summary:t.target.value}),rows:12})]}),e.jsx(n,{onClick:q,children:"Save Changes"})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("p",{className:l,children:"Title"}),e.jsx("p",{className:"mt-1 font-medium text-ink",children:s.title||"Not generated yet"})]}),e.jsxs("div",{children:[e.jsx("p",{className:l,children:"Excerpt"}),e.jsx("p",{className:"mt-1 text-sm text-ink",children:s.excerpt||"-"})]}),e.jsxs("div",{children:[e.jsx("p",{className:l,children:"Affected Visa Types"}),s.affected_visa_types&&s.affected_visa_types.length>0?e.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:s.affected_visa_types.map(t=>{const c=p.find(T=>T.value===t);return e.jsx("span",{className:"rounded-tag bg-bg-2 px-2 py-0.5 text-2xs font-bold text-ink-3",children:c?.label||t},t)})}):e.jsx("p",{className:"mt-1 text-sm text-ink-3",children:"All users (no targeting)"})]}),e.jsx("div",{className:"border-t border-line-2"}),e.jsxs("div",{children:[e.jsx("p",{className:l,children:"Summary"}),e.jsx("div",{className:"prose prose-sm dark:prose-invert mt-2 max-h-[500px] max-w-none overflow-y-auto rounded-lg border border-line p-4",children:s.summary?e.jsx(re,{content:s.summary}):e.jsx("p",{className:"text-ink-3",children:"Summary not generated yet"})})]})]})})]})]}),["pending","approved"].includes(s.status)&&e.jsxs("div",{className:"mt-6 rounded-card border border-line bg-white p-5",children:[e.jsx("h2",{className:"mb-4 text-base font-semibold text-ink",children:"Review"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(m,{children:"Review Notes"}),e.jsx(k,{value:y,onChange:t=>K(t.target.value),placeholder:"Add notes about this update...",rows:3})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.status==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",onClick:Q,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(I,{className:"h-4 w-4"}),"Approve and publish"]}),e.jsxs("button",{type:"button",onClick:X,className:"inline-flex items-center gap-1.5 rounded-lg border border-green/30 bg-green/10 px-4 py-2 text-sm font-medium text-green-ink hover:bg-green/14",children:[e.jsx(le,{className:"h-4 w-4"}),"Approve only"]}),e.jsxs("button",{type:"button",onClick:W,className:"inline-flex items-center gap-1.5 rounded-lg border border-red/30 bg-red/10 px-4 py-2 text-sm font-medium text-red hover:bg-red/14",children:[e.jsx(ne,{className:"h-4 w-4"}),"Reject"]})]}),s.status==="approved"&&e.jsxs(n,{onClick:L,children:[e.jsx(I,{className:"mr-1 h-4 w-4"}),"Publish"]})]})]})]}),(["approved","published"].includes(s.status)||j.length>0)&&e.jsxs("div",{className:"mt-6 rounded-card border border-line bg-white p-5",children:[e.jsxs("div",{className:"mb-4 flex flex-row items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-semibold text-ink",children:"Share copy"}),e.jsx("p",{className:"mt-1 text-sm text-ink-3",children:"AI drafts for review. Edit as needed, then copy into your channel. Nothing posts automatically."})]}),e.jsxs(n,{variant:"outline",size:"sm",onClick:Z,children:[e.jsx(de,{className:"mr-1 h-4 w-4"}),j.length>0?"Regenerate":"Generate"]})]}),j.length>0?e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:j.map(t=>e.jsx(ge,{draft:t,updateUuid:s.uuid},t.id))}):e.jsx("p",{className:"text-sm text-ink-3",children:"Drafts generate automatically on approval. If they have not appeared yet, the job may still be running: use Regenerate."})]}),["approved","published"].includes(s.status)&&e.jsxs("div",{className:"mt-6 rounded-card border border-line bg-white p-5",children:[e.jsxs("h2",{className:"flex items-center gap-2 text-base font-semibold text-ink",children:[e.jsx(oe,{className:"h-4 w-4"}),"Social card"]}),e.jsx("p",{className:"mt-1 text-sm text-ink-3",children:'A branded image built from the card copy above. Download it to post, or edit the "Social card" draft to change the words.'}),e.jsx("div",{className:"mb-4 mt-4 flex flex-wrap gap-1.5",children:w.map(t=>e.jsx("button",{type:"button",onClick:()=>
4z(t.key),className:E("rounded-full px-3 py-1 text-xs font-medium transition-colors",C===t.key?"bg-ink text-white":"bg-bg-2 text-ink-2 hover:bg-surface"),children:t.label},t.key))}),e.jsxs("div",{className:"flex flex-col items-start gap-4 sm:flex-row",children:[e.jsx("img",{src:`${a}&v=${N}`,alt:"Social card preview",className:"w-56 rounded-lg border border-line shadow-sm",loading:"lazy"}),e.jsxs("div",{className:"flex w-full flex-col gap-2 sm:w-60",children:[e.jsx("input",{ref:v,type:"file",accept:"image/jpeg,image/png,image/webp",className:"hidden",onChange:S}),e.jsx(n,{asChild:!0,variant:"outline",size:"sm",className:"w-full justify-start text-ink no-underline",children:e.jsxs("a",{href:`${a}&download=1`,children:[e.jsx(ce,{className:"mr-2 h-4 w-4"}),"Download card"]})}),e.jsx(n,{asChild:!0,variant:"outline",size:"sm",className:"w-full justify-start text-ink no-underline",children:e.jsxs("a",{href:a,target:"_blank",rel:"noreferrer",children:[e.jsx(H,{className:"mr-2 h-4 w-4"}),"Open full size"]})}),e.jsxs(n,{variant:"outline",size:"sm",className:"w-full justify-start",onClick:()=>v.current?.click(),children:[e.jsx(me,{className:"mr-2 h-4 w-4"}),x?"Replace background":"Upload background"]}),e.jsxs(n,{variant:"outline",size:"sm",className:"w-full justify-start",onClick:h,children:[e.jsx(V,{className:"mr-2 h-4 w-4"}),"Refresh card"]}),x&&e.jsxs(n,{variant:"ghost",size:"sm",className:"w-full justify-start text-red hover:text-red",onClick:G,children:[e.jsx(pe,{className:"mr-2 h-4 w-4"}),"Remove custom background"]}),b?.photographer&&!x&&e.jsxs("p",{className:"mt-1 text-xs text-ink-3",children:["Photo:"," ",e.jsx("a",{href:b.photographer_url??"#",target:"_blank",rel:"noreferrer",className:"underline",children:b.photographer})," ","on Unsplash. Credit when required."]})]})]})]}),e.jsxs("div",{className:"mt-6 rounded-card border border-line bg-white p-5",children:[e.jsx("h2",{className:"mb-4 text-base font-semibold text-ink",children:"Metadata"}),e.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm md:grid-cols-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:l,children:"External ID"}),e.jsx("p",{className:"mt-1 truncate text-ink",children:s.external_id})]}),e.jsxs("div",{children:[e.jsx("p",{className:l,children:"AI Model"}),e.jsx("p",{className:"mt-1 text-ink",children:s.ai_model||"-"})]}),e.jsxs("div",{children:[e.jsx("p",{className:l,children:"Tokens Used"}),e.jsx("p",{className:"mt-1 text-ink",children:s.tokens_used?.toLocaleString()||"-"})]}),e.jsxs("div",{children:[e.jsx("p",{className:l,children:"Processing Time"}),e.jsx("p",{className:"mt-1 text-ink",children:s.processing_time_ms?`${s.processing_time_ms}ms`:"-"})]}),e.jsxs("div",{children:[e.jsx("p",{className:l,children:"Reviewed By"}),e.jsx("p",{className:"mt-1 text-ink",children:s.reviewer?.name||"-"})]}),e.jsxs("div",{children:[e.jsx("p",{className:l,children:"Reviewed At"}),e.jsx("p",{className:"mt-1 text-ink",children:$(s.reviewed_at)})]}),e.jsxs("div",{children:[e.jsx("p",{className:l,children:"Published At"}),e.jsx("p",{className:"mt-1 text-ink",children:$(s.published_at)})]}),e.jsxs("div",{children:[e.jsx("p",{className:l,children:"Notifications"}),e.jsx("p",{className:"mt-1 text-ink",children:s.notifications_sent?`Sent ${$(s.notifications_sent_at)}`:"Not sent"})]})]}),s.tags&&s.tags.length>0&&e.jsxs("div",{className:"mt-4",children:[e.jsx("p",{className:l,children:"Tags"}),e.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:s.tags.map(t=>e.jsx("span",{className:"rounded-tag bg-bg-2 px-2 py-0.5 text-2xs font-bold text-ink-3",children:t},t))})]})]})]})})]})}export{ys 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.