import{r as x,k as e}from"./index-BVfpSx5Q.js";import{L as A}from"./layout-NiehYZnq.js";import{K as p}from"./ui-DGkmnhL-.js";import{A as a}from"./blueprint-DinkKOc6.js";import{m as z}from"./proxy-Dwi19u3x.js";const d={operational:{label:"Operational",bg:"rgba(201,183,135,0.12)",color:"#c9b787",desc:"Fully operational with live data"},"in-development":{label:"In Development",bg:"rgba(138,138,138,0.12)",color:"#8a8a8a",desc:"Active build — preview available"},planned:{label:"Planned",bg:"rgba(94,94,94,0.12)",color:"#5e5e5e",desc:"On the roadmap — not yet started"}},b=["operational","in-development","planned"],F=[.22,1,.36,1],t={bg:"#0a0a0a",border:"rgba(255,255,255,0.08)",text:"#f5f5f5",textDim:"#8a8a8a",textMuted:"#5e5e5e",accent:"#c9b787",mono:"ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace",serif:"Georgia, 'Times New Roman', Times, serif"};function u({app:o,i:g}){const l=d[o.status];return e.jsxs(z.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.1},transition:{duration:.45,delay:g*.04,ease:F},style:{padding:"1.75rem",background:t.bg,borderTop:`2px solid ${o.color}`,display:"flex",flexDirection:"column",gap:"0.875rem"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"0.5rem"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.625rem"},children:[e.jsx("span",{style:{fontSize:"1.25rem",color:o.color},children:o.icon}),e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:"0.9375rem",fontWeight:600,color:t.text,letterSpacing:"-0.015em"},children:o.name}),e.jsx("div",{style:{fontSize:"0.625rem",fontFamily:t.mono,color:t.textMuted,marginTop:"0.125rem"},children:o.vertical})]})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"0.25rem",flexShrink:0},children:[e.jsx("span",{style:{fontSize:"0.5625rem",fontFamily:t.mono,fontWeight:600,letterSpacing:"0.12em",textTransform:"uppercase",padding:"0.2rem 0.5rem",borderRadius:4,color:l.color,background:l.bg},children:l.label}),e.jsx("span",{style:{fontSize:"0.5625rem",color:t.textMuted,fontFamily:t.mono},children:o.tier})]})]}),e.jsx("p",{style:{fontSize:"0.8125rem",lineHeight:1.65,color:t.textDim,margin:0},children:o.description}),e.jsxs("div",{style:{display:"flex",gap:"0.3rem",flexWrap:"wrap",paddingTop:"0.25rem",borderTop:"1px solid rgba(255,255,255,0.06)"},children:[o.principles.map(m=>e.jsx("span",{style:{fontSize:"0.5625rem",fontFamily:t.mono,fontWeight:500,padding:"0.15rem 0.45rem",borderRadius:4,color:t.accent,background:"rgba(201,183,135,0.08)",border:"1px solid rgba(201,183,135,0.18)"},children:m},m)),"registryProfileId"in o&&o.registryProfileId&&e.jsxs("span",{style:{fontSize:"0.5625rem",fontFamily:t.mono,padding:"0.15rem 0.45rem",borderRadius:4,color:t.textMuted,background:"rgba(255,255,255,0.04)",border:`1px solid ${t.border}`},children:["registry:",o.registryProfileId]})]})]})}function D(){const[o,g]=x.useState("maturity"),[l,m]=x.useState("all"),f=l==="all"?a:a.filter(r=>r.status===l),y=a.filter(r=>r.status==="operational").length,h=a.filter(r=>r.status==="in-development").length,v=a.filter(r=>r.status==="planned").length,j=b.map(r=>({key:r,label:d[r].label,meta:d[r],items:f.filter(i=>i.status===r)})).filter(r=>r.items.length>0),S=Array.from(new Set(f.map(r=>r.sector))).map(r=>({key:r,label:r,items:f.filter(i=>i.sector===r)})).filter(r=>r.items.length>0);return e.jsx(A,{children:e.jsxs("div",{style:{paddingBottom:"4rem"},children:[e.jsxs("div",{style:{padding:"3rem 0 2.5rem",borderBottom:`1px solid ${t.border}`,marginBottom:"2.5rem"},children:[e.jsx("p",{style:{fontSize:"0.625rem",fontFamily:t.mono,fontWeight:500,letterSpacing:"0.2em",textTransform:"uppercase",color:t.textMuted,margin:"0 0 1.25rem"},children:"Applications"}),e.jsx("h1",{style:{fontSize:"clamp(2rem, 4vw, 3rem)",fontFamily:t.serif,fontWeight:400,letterSpacing:"-0.03em",color:t.text,lineHeight:1.1,margin:"0 0 1rem"},children:"Constellation of Governed Applications"}),e.jsx("p",{style:{fontSize:"1.0625rem",lineHeight:1.7,color:t.textDim,maxWidth:"64ch",margin:0},children:"All 12 applications governed by the A11oy agentic layer — each running the same seven governing principles with honest status for every domain. Six registered in the AEEP domain profile registry."})]}),e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"1px",background:t.border,borderRadius:12,overflow:"hidden",border:`1px solid ${t.border}`,marginBottom:"2rem"},children:[e.jsx(p,{label:"TOTAL APPLICATIONS",value:a.length,sub:"in constellation",accent:"#c9b787"}),e.jsx(p,{label:"OPERATIONAL",value:y,sub:"fully live",accent:"#c9b787"}),e.jsx(p,{label:"IN DEVELOPMENT",value:h,sub:"active build",accent:"#8a8a8a"}),e.jsx(p,{label:"PLANNED",value:v,sub:"on roadmap",accent:"#5e5e5e"})]}),e.jsxs("div",{style:{display:"flex",gap:"0.75rem",alignItems:"center",flexWrap:"wrap",marginBottom:"2rem"},children:[e.jsx("div",{style:{display:"flex",gap:"0.25rem",background:"rgba(255,255,255,0.04)",borderRadius:8,padding:"0.25rem",border:`1px solid ${t.border}`},children:["maturity","domain"].map(r=>e.jsx("button",{onClick:()=>g(r),style:{padding:"0.35rem 0.75rem",borderRadius:6,fontSize:"0.75rem",fontFamily:t.mono,fontWeight:500,border:"none",background:o===r?"rgba(201,183,135,0.15)":"transparent",color:o===r?t.accent:t.textDim,cursor:"pointer"},children:r==="maturity"?"Group by Maturity":"Group by Domain"},r))}),o==="maturity"&&e.jsx("div",{style:{display:"flex",gap:"0.375rem"},children:["all",...b].map(r=>{const i=r!=="all"?d[r]:null,n=l===r;return e.jsx("button",{onClick:()=>m(r),style:{padding:"0.4rem 0.875rem",borderRadius:6,fontSize:"0.75rem",fontFamily:t.mono,fontWeight:500,border:`1px solid ${n?(i==null?void 0:i.color)??"rgba(201,183,135,0.3)":t.border}`,background:n?`${(i==null?void 0:i.color)??"#c9b787"}12`:"rgba(255,255,255,0.03)",color:n?(i==null?void 0:i.color)??"#c9b787":t.textDim,cursor:"pointer"},children:r==="all"?"ALL":d[r].label.toUpperCase()},r)})})]}),o==="maturity"?j.map(({key:r,label:i,meta:n,items:s})=>e.jsxs("div",{style:{marginBottom:"3rem"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1.25rem"},children:[e.jsx("span",{style:{fontSize:"0.625rem",fontFamily:t.mono,fontWeight:600,letterSpacing:"0.16em",textTransform:"uppercase",color:n.color},children:i}),e.jsx("span",{style:{fontSize:"0.625rem",fontFamily:t.mono,color:t.textMuted},children:n.desc}),e.jsx("span",{style:{fontSize:"0.625rem",fontFamily:t.mono,fontWeight:600,padding:"0.15rem 0.5rem",borderRadius:4,color:n.color,background:n.bg},children:s.length})]}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"1px",background:t.border,borderRadius:12,overflow:"hidden",border:`1px solid ${t.border}`,opacity:r==="planned"?.75:1},children:s.map((c,T)=>e.jsx(u,{app:c,i:T},c.id))})]},r)):S.map(({key:r,label:i,items:n})=>e.jsxs("div",{style:{marginBottom:"3rem"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1.25rem"},children:[e.jsx("span",{style:{fontSize:"0.625rem",fontFamily:t.mono,fontWeight:600,letterSpacing:"0.16em",textTransform:"uppercase",color:t.textMuted},children:"Domain"}),e.jsx("span",{style:{fontSize:"0.9375rem",fontWeight:600,color:t.text,letterSpacing:"-0.015em"},children:i}),e.jsx("span",{style:{fontSize:"0.625rem",fontFamily:t.mono,fontWeight:600,padding:"0.15rem 0.5rem",borderRadius:4,color:t.textDim,background:"rgba(255,255,255,0.06)"},children:n.length})]}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"1px",background:t.border,borderRadius:12,overflow:"hidden",border:`1px solid ${t.border}`},children:n.map((s,c)=>e.jsx(u,{app:s,i:c},s.id))})]},r))]})})}export{D as ApplicationsCatalog};