import{r as v,k as t}from"./index-BVfpSx5Q.js";import{L as j}from"./layout-NiehYZnq.js";import{P as N,K as c,C as y}from"./ui-DGkmnhL-.js";const l=[{id:"pulse",name:"Pulse",vertical:"Founder Ops",status:"live",tier:"platform",x:250,y:250,color:"#8a8a8a",icon:"◉"},{id:"lyte",name:"Lyte",vertical:"Revenue",status:"live",tier:"enterprise",x:390,y:180,color:"#c9b787",icon:"◆"},{id:"vessels",name:"Vessels",vertical:"Maritime",status:"live",tier:"enterprise",x:420,y:300,color:"#8a8a8a",icon:"⚓"},{id:"counsel",name:"Counsel",vertical:"Legal",status:"live",tier:"enterprise",x:350,y:380,color:"#c9b787",icon:"⚖"},{id:"terra",name:"Terra",vertical:"Real Estate",status:"live",tier:"enterprise",x:160,y:370,color:"#8a8a8a",icon:"▣"},{id:"aegis",name:"Aegis",vertical:"Defense",status:"live",tier:"sovereign",x:110,y:260,color:"#f5f5f5",icon:"⬡"},{id:"sentra",name:"Sentra",vertical:"Cyber",status:"live",tier:"enterprise",x:130,y:160,color:"#c9b787",icon:"⬡"},{id:"carlota-jo",name:"Carlota Jo",vertical:"Consulting",status:"live",tier:"professional",x:390,y:430,color:"#c9b787",icon:"◎"},{id:"nuro-forge",name:"NuroForge",vertical:"AI Infra",status:"beta",tier:"platform",x:250,y:120,color:"#5e5e5e",icon:"⬟"},{id:"meridian",name:"Meridian",vertical:"Infra",status:"beta",tier:"enterprise",x:460,y:210,color:"#5e5e5e",icon:"⬡"},{id:"firestorm",name:"Firestorm",vertical:"Operations",status:"roadmap",tier:"sovereign",x:160,y:460,color:"#5e5e5e",icon:"⬢"},{id:"constellation",name:"Constellation",vertical:"Graph Intel",status:"roadmap",tier:"platform",x:250,y:460,color:"#5e5e5e",icon:"✦"}],x=[{source:"pulse",target:"vessels",relation:"signal_feed",label:"Signal Feed"},{source:"pulse",target:"counsel",relation:"signal_feed",label:"Signal Feed"},{source:"pulse",target:"terra",relation:"signal_feed",label:"Signal Feed"},{source:"pulse",target:"lyte",relation:"signal_feed",label:"Signal Feed"},{source:"aegis",target:"sentra",relation:"threat_share",label:"Threat Share"},{source:"vessels",target:"firestorm",relation:"crisis_escalation",label:"Crisis Escalation"},{source:"lyte",target:"counsel",relation:"contract_reference",label:"Contract Reference"},{source:"terra",target:"counsel",relation:"matter_reference",label:"Matter Reference"},{source:"nuro-forge",target:"vessels",relation:"agent_supply",label:"Agent Supply"},{source:"nuro-forge",target:"aegis",relation:"agent_supply",label:"Agent Supply"},{source:"constellation",target:"pulse",relation:"graph_feed",label:"Graph Feed"},{source:"constellation",target:"lyte",relation:"graph_feed",label:"Graph Feed"},{source:"carlota-jo",target:"counsel",relation:"matter_reference",label:"Matter Reference"},{source:"meridian",target:"nuro-forge",relation:"infra_support",label:"Infra Support"}];function m(s){return l.find(i=>i.id===s)}const d={live:"#c9b787",beta:"#8a8a8a",roadmap:"#5e5e5e"};function E(){const[s,i]=v.useState(null),[h,p]=v.useState(null),a=s?l.find(e=>e.id===s):null,n=s?x.filter(e=>e.source===s||e.target===s):[],f=new Set(n.flatMap(e=>[e.source,e.target]));return t.jsxs(j,{children:[t.jsx(N,{label:"CONSTELLATION MAP",title:"12-Vertical Constellation",subtitle:"The A11oy constellation — 12 governed applications connected by the signal mesh, proof chain, and MCP gateway. Every edge is a governed data flow.",status:"LIVE"}),t.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 mb-6",children:[t.jsx(c,{label:"APPLICATIONS",value:l.length,sub:"in constellation",accent:"#c9b787"}),t.jsx(c,{label:"LIVE",value:l.filter(e=>e.status==="live").length,sub:"operational",accent:"#c9b787"}),t.jsx(c,{label:"CONNECTIONS",value:x.length,sub:"governed edges",accent:"#8a8a8a"}),t.jsx(c,{label:"VERTICALS",value:new Set(l.map(e=>e.vertical)).size,sub:"domains covered",accent:"#c9b787"})]}),t.jsxs("div",{className:"grid lg:grid-cols-3 gap-6 mb-6",children:[t.jsxs("div",{className:"lg:col-span-2 rounded-lg border overflow-hidden",style:{backgroundColor:"var(--color-a11oy-card)",borderColor:"var(--color-a11oy-border)",minHeight:520},children:[t.jsxs("div",{className:"p-3 border-b text-xs font-mono flex items-center justify-between",style:{borderColor:"var(--color-a11oy-border)",color:"var(--color-a11oy-text-ghost)"},children:[t.jsx("span",{children:"CONSTELLATION GRAPH — Click a node to explore connections"}),s&&t.jsx("button",{onClick:()=>i(null),style:{color:"#c9b787"},children:"Clear"})]}),t.jsx("div",{className:"relative",style:{height:480},children:t.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 560 500",style:{overflow:"visible"},children:[x.map((e,o)=>{const r=m(e.source),u=m(e.target);if(!r||!u)return null;const b=s?e.source===s||e.target===s:!0,g=h===`${e.source}-${e.target}`;return t.jsx("line",{x1:r.x,y1:r.y,x2:u.x,y2:u.y,stroke:g?"#c9b787":b?"rgba(255,255,255,0.15)":"rgba(255,255,255,0.03)",strokeWidth:g?1.5:.75,strokeDasharray:e.relation==="signal_feed"?"none":"4,4",onMouseEnter:()=>p(`${e.source}-${e.target}`),onMouseLeave:()=>p(null),style:{cursor:"pointer",transition:"stroke 0.2s"}},o)}),l.map(e=>{const o=s&&!f.has(e.id)&&e.id!==s,r=e.id===s;return t.jsxs("g",{transform:`translate(${e.x}, ${e.y})`,onClick:()=>i(r?null:e.id),style:{cursor:"pointer"},children:[t.jsx("circle",{r:r?22:16,fill:r?`${e.color}25`:"rgba(255,255,255,0.04)",stroke:r?e.color:e.status==="roadmap"?"rgba(255,255,255,0.08)":"rgba(255,255,255,0.15)",strokeWidth:r?2:1,opacity:o?.25:1,style:{transition:"all 0.2s"}}),t.jsx("text",{textAnchor:"middle",dominantBaseline:"central",fontSize:e.status==="roadmap"?11:13,fill:o?"#3a3a3a":e.color,opacity:o?.3:e.status==="roadmap"?.4:.9,children:e.icon}),t.jsx("text",{y:26,textAnchor:"middle",fontSize:9,fontFamily:"ui-monospace, monospace",fill:o?"#3a3a3a":d[e.status],opacity:o?.3:e.status==="roadmap"?.4:.7,children:e.name})]},e.id)})]})})]}),t.jsx("div",{className:"flex flex-col gap-3",children:a?t.jsxs(t.Fragment,{children:[t.jsxs(y,{children:[t.jsxs("div",{className:"flex items-start gap-3 mb-3",children:[t.jsx("span",{style:{fontSize:"1.5rem",color:a.color},children:a.icon}),t.jsxs("div",{children:[t.jsx("div",{className:"font-semibold",style:{color:"var(--color-a11oy-text)"},children:a.name}),t.jsxs("div",{className:"text-xs font-mono",style:{color:"var(--color-a11oy-text-ghost)"},children:[a.vertical," · ",a.tier]}),t.jsx("span",{className:"text-xs font-mono px-2 py-0.5 rounded mt-1 inline-block",style:{background:"rgba(201,183,135,0.12)",color:d[a.status]},children:a.status.toUpperCase()})]})]}),t.jsxs("div",{className:"text-xs",style:{color:"var(--color-a11oy-text-sub)"},children:[n.length," connection",n.length!==1?"s":""]})]}),t.jsx("div",{className:"text-xs font-mono uppercase tracking-widest mb-1",style:{color:"var(--color-a11oy-text-ghost)"},children:"Connections"}),n.map((e,o)=>{const r=m(e.source===a.id?e.target:e.source);return r?t.jsxs(y,{className:"text-xs cursor-pointer",style:{cursor:"pointer"},onClick:()=>i(r.id),children:[t.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[t.jsx("span",{style:{color:r.color},children:r.icon}),t.jsx("span",{className:"font-medium",style:{color:"var(--color-a11oy-text)"},children:r.name}),t.jsx("span",{className:"ml-auto font-mono text-xs",style:{color:d[r.status]},children:r.status})]}),t.jsxs("div",{className:"font-mono",style:{color:"var(--color-a11oy-text-ghost)"},children:[e.source===a.id?"→":"←"," ",e.label]})]},o):null})]}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"text-xs font-mono uppercase tracking-widest mb-1",style:{color:"var(--color-a11oy-text-ghost)"},children:"All Nodes"}),l.map(e=>t.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded cursor-pointer transition-all",style:{background:"rgba(255,255,255,0.025)",border:"1px solid rgba(255,255,255,0.06)"},onClick:()=>i(e.id),children:[t.jsx("span",{style:{color:e.color,fontSize:"1rem"},children:e.icon}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-xs font-medium",style:{color:"var(--color-a11oy-text)"},children:e.name}),t.jsx("div",{className:"text-xs",style:{color:"var(--color-a11oy-text-ghost)"},children:e.vertical})]}),t.jsx("span",{className:"text-xs font-mono",style:{color:d[e.status]},children:e.status})]},e.id))]})})]})]})}export{E as ConstellationGraph};