import{r as i,k as e}from"./index-BVfpSx5Q.js";import{L as C}from"./layout-NiehYZnq.js";import{P as A,K as s,S as c,C as l}from"./ui-DGkmnhL-.js";const u={up:{color:"#c9b787",symbol:"▲"},down:{color:"#f5f5f5",symbol:"▼"},stable:{color:"#5e5e5e",symbol:"→"},mixed:{color:"#c9b787",symbol:"⟷"}},b={pass:"#c9b787",pass_with_warning:"#c9b787",needs_more_evidence:"#c9b787",requires_human_review:"#f5f5f5",blocked:"#f5f5f5"},g={summary:{totalPackets:5,tenantsServed:5,avgEvalComposite:.914},generationLatencyMs:1840,capabilities:["Multi-domain signal ingestion across 7 verticals","Automated synthesis from Workcells, Outcomes, and Proof Ledger","MirrorEval 2.0 scoring — 14-dimension composite","Human-approved before delivery (PCE gate)","Full proof chain — SHA-256 hash-verified","Narrative generation from structured evidence","Boardroom-ready PDF export (production posture)","Hatun Doctrine L8 — per-agent system cards, behavioral audit, alignment review","Glasswing distinction layer — CAVD coordinated disclosure, 90-day transparency reports, adversarial robustness wall, constitution-as-code DSL, welfare playbooks","Compliance Fabric L9 — EU AI Act, NIST AI RMF, ISO 42001, CSA Agentic mapped. Compass dashboard, Agent-BOM (CycloneDX), Delegation Chain governance, Trust Exchange, CARE engine"],packets:[{id:"bp-001",tenantId:"szl-holdings",tenantName:"SZL Holdings",domain:"Multi-Domain Enterprise",generatedAt:"2026-04-26T14:32:00Z",period:"Q2 2026",approvedBy:"CFO, SZL Holdings",executiveSummary:"Q2 2026 performance across maritime, legal, real estate, and revenue verticals remains strong despite geopolitical headwinds. Three critical signals resolved with governed autonomous action, five pending executive approval. Proof coverage at 94%. MirrorEval 2.0 composite: 94%.",kpis:[{label:"Revenue at Risk",value:"$2.4M",trend:"down",delta:"-12% vs prior period"},{label:"Signals Resolved",value:"47",trend:"up",delta:"+8 this week"},{label:"Proof Coverage",value:"94%",trend:"stable",delta:"+1% MoM"},{label:"Pending Approvals",value:"5",trend:"mixed",delta:"3 high priority"}],sections:[{title:"Maritime Operations",metric:"$2.4M/day",metricLabel:"Standby Cost Exposure",bullets:["VLCC Everest ETA deviation: 74 drift — reroute awaiting VP approval","Port Antwerp congestion index: ELEVATED — cost model executed","Fleet compliance: 100% — no flag-state violations","Environmental monitoring: NOMINAL"]},{title:"Legal & Compliance",metric:"3",metricLabel:"Active Matters",bullets:["SZL v. CrossBridge — motion filed, outcome projected favorable","EU Antitrust Review — privilege preservation active, firewall enforced","IP Licensing — review on track, no escalation"]},{title:"Revenue Intelligence",metric:"$180K ARR",metricLabel:"At-Risk Recovery",bullets:["3 mid-market accounts at churn risk — executive outreach initiated","Pipeline velocity: +12% QoQ","Q2 forecast: 98% of plan"]},{title:"Real Estate Portfolio",metric:"34%",metricLabel:"Wilshire Vacancy",bullets:["Wilshire covenant breach imminent — lease-up strategy approved","45 Park Ave occupancy stable at 89%","NorCal portfolio — 2 new LOIs received"]}],evalDisposition:"pass",evalComposite:.94,modelUsed:"gpt-4-turbo",approvalStatement:"This board packet has been reviewed by MirrorEval 2.0 (composite: 94%) and approved by CFO prior to distribution. Proof chain verified. All data sourced from governed A11oy signal mesh.",nextReviewDate:"2026-05-26T14:00:00Z",proofRef:"sha256:c9f2e5b8a1d3e6f9b2c5a8f1d4e7c2b9a6f3e0d1"},{id:"bp-002",tenantId:"acme-industries",tenantName:"Acme Industries",domain:"Manufacturing & Supply Chain",generatedAt:"2026-04-25T10:15:00Z",period:"Q2 2026",approvedBy:"VP Operations, Acme",executiveSummary:"Supply chain resilience posture improved after Q1 vendor consolidation. One critical procurement signal — Apex Supply SLA breach — resolved with renegotiation workcell. Revenue forecast revised upward by 3%. MirrorEval composite: 89%.",kpis:[{label:"Supply Chain Risk",value:"MEDIUM",trend:"down",delta:"from HIGH last period"},{label:"Vendor SLA Breaches",value:"1",trend:"down",delta:"-3 vs Q1"},{label:"Revenue Forecast",value:"+3%",trend:"up",delta:"Revision upward"},{label:"Open Workcells",value:"8",trend:"stable",delta:"2 pending approval"}],sections:[{title:"Procurement Risk",metric:"79",metricLabel:"Vendor Trust Score",bullets:["Apex Supply SLA breach: renegotiation workcell approved","Secondary vendor onboarded for critical component","Sanctions screening: 100% coverage maintained"]},{title:"Revenue Intelligence",metric:"$12.4M",metricLabel:"Q2 Revenue Projection",bullets:["Q2 forecast revised upward 3% — new contract wins","Pipeline conversion rate: +8% QoQ","2 enterprise deals in final negotiation"]}],evalDisposition:"pass",evalComposite:.89,modelUsed:"gpt-4-turbo",approvalStatement:"Approved by VP Operations. Eval composite: 89%. Proof chain verified.",nextReviewDate:"2026-05-25T10:00:00Z",proofRef:"sha256:e3a1d4f7b2c8e1a6d3f29a5b7c4e2f1a8d6b3c9"},{id:"bp-003",tenantId:"northwind-labs",tenantName:"Northwind Labs",domain:"Defense & Cybersecurity",generatedAt:"2026-04-24T09:00:00Z",period:"Q2 2026",approvedBy:"CISO, Northwind Labs",executiveSummary:"CVE-2025-4891 contained. Threat intelligence posture elevated to GUARDED. Zero trust boundary enforcement 100%. No unauthorized exfiltration events. Board notified per incident protocol. MirrorEval composite: 87%.",kpis:[{label:"Threat Level",value:"GUARDED",trend:"down",delta:"from ELEVATED"},{label:"CVEs Patched",value:"3",trend:"up",delta:"All critical resolved"},{label:"ZT Coverage",value:"100%",trend:"stable",delta:"Full boundary"},{label:"Incidents",value:"0",trend:"stable",delta:"This quarter"}],sections:[{title:"Cyber Threat Response",metric:"CONTAINED",metricLabel:"CVE-2025-4891 Status",bullets:["CVE-2025-4891 zero-day contained — patch applied across 847 endpoints","Threat actor attribution: nation-state TTPs — CISA notification filed","Zero trust boundary: 100% enforced — no lateral movement detected"]},{title:"Compliance Posture",metric:"98%",metricLabel:"CMMC Compliance Score",bullets:["CMMC Level 2 audit: 98% — 2 items in remediation","FedRAMP authorization package: in preparation","Insider threat monitoring: 0 anomalies"]}],evalDisposition:"pass",evalComposite:.87,modelUsed:"gpt-4-turbo",approvalStatement:"Approved by CISO. Eval composite: 87%. Proof chain verified. Classified appendix excluded from this version.",nextReviewDate:"2026-05-24T09:00:00Z",proofRef:"sha256:b8c3f9e2a4d1e7f3b6c2a5d8f1e4b7c3a9d2f6"},{id:"bp-004",tenantId:"crossbridge-capital",tenantName:"CrossBridge Capital",domain:"Investment & Finance",generatedAt:"2026-04-23T16:45:00Z",period:"Q2 2026",approvedBy:"CFO, CrossBridge Capital",executiveSummary:"Q2 portfolio performance: AUM stable, 2 new fund closes executed. Meridian acquisition process on track — legal review 80% complete. Regulatory reporting compliance: 100%. MirrorEval composite: 93%.",kpis:[{label:"AUM",value:"$4.2B",trend:"up",delta:"+2.3% QoQ"},{label:"Fund Closes",value:"2",trend:"up",delta:"Q2 target: 3"},{label:"Legal Review",value:"80%",trend:"up",delta:"Meridian acquisition"},{label:"Regulatory",value:"100%",trend:"stable",delta:"All filings current"}],sections:[{title:"Portfolio Performance",metric:"$4.2B",metricLabel:"Assets Under Management",bullets:["Q2 fund performance: +4.1% net of fees","Meridian acquisition: term sheet signed, due diligence 80% complete","LP capital call: $240M — fully subscribed"]},{title:"Regulatory & Legal",metric:"100%",metricLabel:"Compliance Coverage",bullets:["All SEC/FINRA filings current — no late filings","AML/KYC screening: 100% portfolio covered","CrossBridge v. SZL dispute: confidential settlement discussions ongoing"]}],evalDisposition:"pass",evalComposite:.93,modelUsed:"gpt-4-turbo",approvalStatement:"Approved by CFO. Eval composite: 93%. Proof chain verified. LP distribution version excludes exhibit B.",nextReviewDate:"2026-05-23T16:00:00Z",proofRef:"sha256:a2d7e1f4b9c3e6a8d2f5a1b6c9e3d7f2a5b8c1"},{id:"bp-005",tenantId:"meridian-group",tenantName:"Meridian Group",domain:"Multi-Industry Conglomerate",generatedAt:"2026-04-22T11:30:00Z",period:"Q2 2026",approvedBy:"CEO, Meridian Group",executiveSummary:"Strong cross-vertical performance. Real estate portfolio expanding in Pacific NW. Revenue friction in legacy division resolved via AI-governed outreach. Legal exposure contained. MirrorEval composite: 91%.",kpis:[{label:"Group Revenue",value:"$890M",trend:"up",delta:"+6% YoY"},{label:"Signals Resolved",value:"23",trend:"up",delta:"This quarter"},{label:"AI Actions Approved",value:"18",trend:"up",delta:"3 pending"},{label:"Proof Coverage",value:"91%",trend:"stable",delta:"Target: 95%"}],sections:[{title:"Executive Summary",metric:"$890M",metricLabel:"Q2 Revenue Forecast",bullets:["Cross-vertical revenue: +6% YoY — ahead of plan","A11oy fabric resolved 23 signals autonomously — 18 approved by humans","Board-level concerns: Pacific NW expansion timeline delayed 30 days"]},{title:"AI Governance Posture",metric:"91%",metricLabel:"Proof Coverage",bullets:["18 autonomous actions approved by humans this quarter","0 actions executed without approval above Tier 2","Proof chain integrity: 100%","MirrorEval 2.0 composite: 91% across all governed actions"]}],evalDisposition:"pass",evalComposite:.91,modelUsed:"gpt-4-turbo",approvalStatement:"Approved by CEO. Eval composite: 91%. Proof chain verified. Distributed to full board and A11oy governance team.",nextReviewDate:"2026-05-22T11:00:00Z",proofRef:"sha256:f1c6b3a8d5e2f7c1b4a9d3e8f2b7c4a1d6e9f3"}]};let S=6;function w(){const[r,x]=i.useState(g),[t,d]=i.useState(g.packets[0]),[n,p]=i.useState(!1),[m,v]=i.useState(null);function f(){p(!0),v(null),setTimeout(()=>{const a={id:`bp-gen-${S++}`,tenantId:"gen-tenant",tenantName:"Generated Enterprise Co.",domain:"Multi-Domain",generatedAt:new Date().toISOString(),period:"Q2 2026",approvedBy:"AI Governance Lead",evalDisposition:"pass",evalComposite:.91,modelUsed:"gpt-4-turbo",proofRef:`sha256:gen${Math.random().toString(36).slice(2,18)}`,nextReviewDate:new Date(Date.now()+2592e6).toISOString(),executiveSummary:"Synthesis complete. 12 signals ingested across 3 verticals. 4 workcells resolved. 1 pending human approval. Eval composite: 91%. Proof chain: intact.",kpis:[{label:"Signals Processed",value:"12",trend:"up",delta:"This period"},{label:"Actions Approved",value:"4",trend:"up",delta:"1 pending"},{label:"Eval Composite",value:"91%",trend:"stable",delta:"MirrorEval 2.0"},{label:"Proof Coverage",value:"94%",trend:"up",delta:"+2% vs last"}],sections:[{title:"Operational Summary",metric:"91%",metricLabel:"Eval Composite",bullets:["12 signals processed across revenue, legal, and operations verticals","4 governed actions approved and executed","1 action pending Tier 3 human approval","Zero policy violations — covenant enforced throughout"]}],approvalStatement:"Auto-generated via A11oy Boardroom Mode. MirrorEval 2.0 composite: 91%. Awaiting final human approval before distribution."};x(o=>({...o,packets:[a,...o.packets],summary:{...o.summary,totalPackets:o.summary.totalPackets+1}})),v(a),d(a),p(!1)},2200)}return e.jsxs(C,{children:[e.jsx(A,{label:"BOARDROOM MODE",title:"Board Packet Generation",subtitle:"Synthesize every running signal, Workcell, proof packet, and twin state into a single board-ready executive briefing — with MirrorEval 2.0 scoring and full proof chain.",status:"LIVE"}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6",children:[e.jsx(s,{label:"BOARD PACKETS",value:String(r.summary.totalPackets),sub:"Generated",accent:"#c9b787"}),e.jsx(s,{label:"TENANTS SERVED",value:String(r.summary.tenantsServed),sub:"Enterprises",accent:"#8a8a8a"}),e.jsx(s,{label:"AVG EVAL SCORE",value:`${Math.round(r.summary.avgEvalComposite*100)}%`,sub:"MirrorEval 2.0",accent:"#c9b787"}),e.jsx(s,{label:"GEN LATENCY",value:`${r.generationLatencyMs}ms`,sub:"Estimated",accent:"#b08d52"})]}),e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("button",{onClick:f,disabled:n,className:"text-xs px-4 py-2 rounded font-medium",style:{backgroundColor:"rgba(201,183,135,0.15)",color:"#c9b787",border:"1px solid rgba(201,183,135,0.3)",opacity:n?.6:1},children:n?"Generating board packet…":"+ Generate New Board Packet"}),m&&e.jsxs("span",{className:"text-xs",style:{color:"#c9b787"},children:["✓ Generated for ",m.tenantName]})]}),e.jsxs("div",{className:"grid lg:grid-cols-3 gap-4",children:[e.jsxs("div",{children:[e.jsxs(c,{children:["Board Packets (",r.packets.length,")"]}),e.jsx("div",{className:"flex flex-col gap-2 max-h-[600px] overflow-y-auto pr-1",children:r.packets.map(a=>e.jsxs(l,{className:`cursor-pointer hover:opacity-80 ${(t==null?void 0:t.id)===a.id?"ring-1 ring-pink-500/30":""}`,onClick:()=>d(a),children:[e.jsx("div",{className:"font-medium text-sm mb-0.5",style:{color:"var(--color-a11oy-text)"},children:a.tenantName}),e.jsxs("div",{className:"text-xs mb-2",style:{color:"var(--color-a11oy-text-ghost)"},children:[a.domain," · ",a.period]}),e.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[e.jsxs("span",{style:{color:b[a.evalDisposition]??"#5e5e5e"},children:[Math.round(a.evalComposite*100),"% eval"]}),e.jsx("span",{style:{color:"var(--color-a11oy-text-ghost)"},children:a.approvedBy})]})]},a.id))}),e.jsxs("div",{className:"mt-4",children:[e.jsx(c,{children:"Capabilities"}),e.jsx("div",{className:"space-y-1",children:r.capabilities.map(a=>e.jsxs("div",{className:"flex items-start gap-2 text-xs",children:[e.jsx("span",{style:{color:"#c9b787",flexShrink:0},children:"✓"}),e.jsx("span",{style:{color:"var(--color-a11oy-text-sub)"},children:a})]},a))})]})]}),e.jsx("div",{className:"lg:col-span-2",children:t?e.jsxs(e.Fragment,{children:[e.jsxs(c,{children:["Board Packet — ",t.tenantName]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs(l,{children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-sm",style:{color:"var(--color-a11oy-text)"},children:t.tenantName}),e.jsxs("div",{className:"text-xs",style:{color:"var(--color-a11oy-text-ghost)"},children:[t.domain," · ",t.period]})]}),e.jsxs("div",{className:"text-right text-xs",children:[e.jsxs("div",{style:{color:b[t.evalDisposition]??"#5e5e5e"},children:["Eval: ",Math.round(t.evalComposite*100),"%"]}),e.jsx("div",{style:{color:"var(--color-a11oy-text-ghost)"},children:t.approvedBy})]})]}),e.jsx("p",{className:"text-xs mb-3",style:{color:"var(--color-a11oy-text-sub)"},children:t.executiveSummary}),e.jsx("div",{className:"text-xs p-2 rounded",style:{backgroundColor:"rgba(176,141,82,0.08)",color:"#b08d52",border:"1px solid rgba(176,141,82,0.2)"},children:t.approvalStatement})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2",children:t.kpis.map(a=>{const o=u[a.trend]??u.stable;return e.jsxs(l,{children:[e.jsx("div",{className:"text-xs",style:{color:"var(--color-a11oy-text-ghost)"},children:a.label}),e.jsx("div",{className:"font-semibold mt-0.5",style:{color:"var(--color-a11oy-text)"},children:a.value}),e.jsxs("div",{className:"text-xs",style:{color:o.color},children:[o.symbol," ",a.delta]})]},a.label)})}),e.jsx("div",{className:"flex flex-col gap-3",children:t.sections.map((a,o)=>e.jsxs(l,{children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("div",{className:"text-sm font-medium",style:{color:"var(--color-a11oy-text)"},children:a.title}),a.metric&&e.jsxs("div",{className:"text-right",children:[e.jsx("div",{className:"text-lg font-bold font-mono",style:{color:"var(--color-a11oy-gold)"},children:a.metric}),a.metricLabel&&e.jsx("div",{className:"text-xs",style:{color:"var(--color-a11oy-text-ghost)"},children:a.metricLabel})]})]}),e.jsx("ul",{className:"space-y-1",children:a.bullets.map((h,y)=>e.jsxs("li",{className:"flex items-start gap-2 text-xs",children:[e.jsx("span",{style:{color:"var(--color-a11oy-gold)",flexShrink:0},children:"·"}),e.jsx("span",{style:{color:"var(--color-a11oy-text-sub)"},children:h})]},y))})]},o))}),e.jsxs("div",{className:"flex items-center gap-4 text-xs",style:{color:"var(--color-a11oy-text-ghost)"},children:[e.jsxs("span",{children:["◇ ",t.proofRef]}),e.jsxs("span",{children:["model: ",t.modelUsed]}),e.jsxs("span",{children:["next review: ",new Date(t.nextReviewDate).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]})]})]})]}):e.jsx("div",{className:"text-xs",style:{color:"var(--color-a11oy-text-ghost)"},children:"Select a board packet to view."})})]}),e.jsxs("div",{className:"mt-6 p-3 rounded-lg text-xs flex items-center gap-2",style:{backgroundColor:"rgba(201,183,135,0.06)",border:"1px solid rgba(201,183,135,0.2)",color:"var(--color-a11oy-text-ghost)"},children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-a11oy-blue)]"})," Governed Environment — board packets synthesized from live signal mesh. All packets proof-chained and eval-scored before approval."]})]})}export{w as BoardroomMode};