PageSourceSearch

https://governances.app/assets/AttestationRegistryWidget-KWUbwtCj.js

js governances.app collected 2026-10-04 12:34:26 UTC 12,321 bytes, 1 lines download raw bytes

1import{r as l,j as e,a9 as d,o as x,m as z,c as E,a0 as F,ae as H,V as T,ai as M,aj as G,b as O,ak as q}from"./vendor-react-B3EYGvMK.js";import{c as L}from"./aiEngine-C1VRs414.js";import"./index-C0k5v2Pj.js";import"./vendor-firebase-Br6ongnW.js";import"./vendor-core-x-1-NXdt.js";import"./vendor-utils-LzlEokX_.js";import"./vendor-charts-7eHFXWK6.js";import"./vendor-markdown-Dvr4r0Go.js";import"./vendor-3d-h4bRncFc.js";import"./vendor-pdf-CyVEGhhA.js";const $=({title:D="eu.aiacts.app",showAdrExport:I=!1})=>{var w,y,k,S;const[i,_]=l.useState([]),[m,p]=l.useState(!0),[n,h]=l.useState(""),[u,f]=l.useState(!1),[c,j]=l.useState(null),[a,g]=l.useState(null),[b,N]=l.useState(!1),o=async(t=!1)=>{try{t||p(!0);const s=await L("eu","get_attestation_records",{});s.status==="success"&&_(s.records||[])}catch(s){console.error("[VOS_REGISTRY] Failed to fetch attestation records:",s)}finally{p(!1)}},V=async()=>{try{N(!0);const t=await L("system","generate_automated_adr",{nodeFamily:"EU_REGISTRY"});g(t)}catch(t){console.error("[VOS_ADR] Failed to generate ADR:",t)}finally{N(!1)}};l.useEffect(()=>{o();const t=setInterval(()=>o(!0),1e4);return()=>clearInterval(t)},[]);const v=()=>{n.trim()&&(f(!0),setTimeout(()=>{const t=i.filter(s=>{var r,C,A,R;return((C=(r=s.metadata)==null?void 0:r.entity)==null?void 0:C.toLowerCase().includes(n.toLowerCase()))||((A=s.action)==null?void 0:A.toLowerCase().includes(n.toLowerCase()))||((R=s.payloadHash)==null?void 0:R.toLowerCase().includes(n.toLowerCase()))});j(t),h(""),f(!1)},800))};return e.jsxs("div",{className:"w-full flex-grow flex flex-col font-sans text-slate-100 pb-20",children:[e.jsxs("section",{className:"py-16 px-4 border-b border-white/5 bg-gradient-to-b from-emerald-500/5 to-transparent",children:[e.jsxs("div",{className:"max-w-4xl mx-auto text-center mb-12",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold tracking-tight text-white mb-4",children:D}),e.jsx("p",{className:"text-slate-400 text-lg",children:"Forensic compliance database for verified AI entities and algorithmic attestations."}),I&&e.jsx("div",{className:"mt-8",children:e.jsxs("button",{onClick:V,disabled:b,className:"inline-flex items-center gap-2 px-6 py-3 bg-white/5 border border-white/10 hover:bg-white/10 text-white rounded-xl transition-all group",children:[b?e.jsx(d,{className:"animate-spin",size:18}):e.jsx(x,{size:18,className:"text-emerald-500"}),e.jsx("span",{className:"text-xs font-black uppercase tracking-widest",children:"Generate Automated ADR"})]})})]}),a&&e.jsxs(z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-3xl mx-auto mb-12 p-8 bg-slate-900 border-2 border-emerald-500/30 rounded-2xl relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 p-4 opacity-10",children:e.jsx(E,{size:120})}),e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("span",{className:"bg-emerald-500 text-black px-2 py-1 text-[10px] font-black uppercase tracking-widest rounded",children:a.status}),e.jsx("span",{className:"text-[10px] font-mono text-slate-500",children:a.date})]}),e.jsx("h2",{className:"text-2xl font-black italic uppercase tracking-tighter text-white mb-4",children:a.title}),e.jsxs("div",{className:"space-y-4 text-sm text-slate-300",children:[e.jsxs("p",{children:[e.jsx("strong",{className:"text-emerald-400 uppercase text-xs",children:"Context:"})," ",a.context]}),e.jsxs("p",{children:[e.jsx("strong",{className:"text-emerald-400 uppercase text-xs",children:"Decision:"})," ",a.decision]}),e.jsxs("p",{children:[e.jsx("strong",{className:"text-emerald-400 uppercase text-xs",children:"Consequences:"})," ",a.consequences]})]}),e.jsxs("div",{className:"mt-8 pt-6 border-t border-white/5 flex items-center justify-between",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"text-[8px] font-mono text-slate-500 uppercase tracking-widest",children:"Forensic Seal"}),e.jsx("span",{className:"text-xs font-mono text-emerald-500",children:a.forensicSeal})]}),e.jsx("button",{onClick:()=>g(null),className:"text-[10px] font-black uppercase text-slate-500 hover:text-white",children:"Close Record"})]})]})]}),e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsxs("div",{className:"relative group",children:[e.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-emerald-500/20 to-emerald-500/40 rounded-xl blur opacity-25 group-hover:opacity-50 transition duration-1000"}),e.jsxs("div",{className:"relative flex items-center bg-[#0a0a0a] border border-white/20 rounded-xl overflow-hidden focu
1s-within:border-emerald-500 transition-all shadow-2xl",children:[e.jsx("div",{className:"pl-5 text-slate-500",children:e.jsx(F,{size:24})}),e.jsx("input",{className:"w-full bg-transparent border-none focus:ring-0 text-white placeholder:text-slate-600 py-5 px-4 text-lg font-light outline-none",placeholder:"Search AI entities, certificate hashes, or SHA-256 attestations...",type:"text",value:n,onChange:t=>h(t.target.value),onKeyDown:t=>t.key==="Enter"&&v()}),e.jsx("div",{className:"pr-3",children:e.jsx("button",{onClick:v,disabled:u||!n.trim(),className:"bg-emerald-500 hover:bg-emerald-400 text-black font-bold py-2 px-6 rounded-lg transition-all text-sm uppercase tracking-wider flex items-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:u?e.jsx(d,{className:"animate-spin",size:16}):"Verify"})})]})]}),c!==null&&e.jsxs(z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"mt-6 space-y-4 text-left",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("h3",{className:"text-xs font-black text-emerald-500 uppercase tracking-widest flex items-center gap-2",children:[e.jsx(H,{size:16})," Verification Results"]}),e.jsx("button",{onClick:()=>j(null),className:"text-[10px] bg-white/5 hover:bg-white/10 px-3 py-1 rounded text-slate-400 hover:text-white uppercase tracking-widest transition-colors",children:"Clear"})]}),c.length===0?e.jsx("div",{className:"p-6 bg-[#0a0a0a] border border-white/5 rounded-xl text-center text-slate-500 italic text-sm",children:"No matching forensic records found for this query in the ledger."}):e.jsx("div",{className:"space-y-3",children:c.map((t,s)=>{var r;return e.jsxs("div",{className:"bg-[#0a0a0a] border border-emerald-500/30 p-5 rounded-xl flex flex-col md:flex-row md:items-center justify-between gap-4 shadow-[0_0_15px_rgba(16,185,129,0.1)]",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"bg-emerald-500/20 p-3 rounded-lg",children:e.jsx(x,{className:"text-emerald-500",size:24})}),e.jsxs("div",{children:[e.jsxs("h3",{className:"text-white font-semibold",children:[t.action||"Attestation Sync"," ",e.jsx("span",{className:"text-[10px] ml-2 text-emerald-400 font-mono border border-emerald-500/30 px-1 rounded bg-emerald-500/10",children:"VERIFIED MATCH"})]}),e.jsxs("p",{className:"text-slate-500 text-xs uppercase tracking-tight mt-1",children:["Entity: ",((r=t.metadata)==null?void 0:r.entity)||"Sovereign Mesh Node"]})]})]}),e.jsxs("div",{className:"flex flex-col md:items-end gap-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-[10px] text-slate-500 font-mono",children:"SEAL_HASH:"}),e.jsx("span",{className:"font-mono text-xs text-emerald-500 bg-emerald-500/5 px-2 py-1 rounded truncate max-w-[200px] md:max-w-full",children:t.payloadHash})]}),e.jsxs("p",{className:"text-[10px] text-slate-400",children:["Issued: ",new Date(t.timestamp).toLocaleString()]})]})]},s)})})]}),e.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-6 text-[11px] font-mono text-slate-500 uppercase tracking-widest",children:[e.jsxs("span",{children:["Recent: SHA-256: ",((y=(w=i[0])==null?void 0:w.payloadHash)==null?void 0:y.substring(0,10))||"..."]}),e.jsxs("span",{children:["Entity: ",((S=(k=i[0])==null?void 0:k.metadata)==null?void 0:S.entity)||"Orchestrator Mesh"]}),e.jsx("span",{children:"Status: Compliant"})]})]})]}),e.jsx("section",{className:"max-w-7xl w-full mx-auto px-4 py-12",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"bg-[#0a0a0a] border border-white/5 p-8 rounded-xl relative overflow-hidden group hover:border-emerald-500/30 transition-colors",children:[e.jsx("div",{className:"absolute top-0 right-0 p-4 opacity-10 group-hover:opacity-20 transition-opacity",children:e.jsx(E,{size:64})}),e.jsx("p",{className:"text-slate-500 text-xs font-bold uppercase tracking-widest mb-2",children:"Registry Records"}),e.jsx("p",{className:"text-3xl font-bold text-white",children:i.length}),e.jsxs("div",{className:"mt-4 flex items-center text-emerald-500 text-xs",children:[e.jsx(T,{size:14,className:"mr-1"}),e.jsx("span",{children:"+14.2% from last month"})]})]}),e.jsxs("div",{className:"bg-[#0a0a0a] border border-white/5 p-8 rounded-xl relative overflow-hidden group hover:border-emerald-500/30 transition-colors",children:[e.jsx("div",{className:"absolute top-0 right-0 p-4 opacity-10 group-hover:opacity-20 transition-opacity",children:e.jsx(M,{size:64})}),e.jsx("p",{className:"text-slate-500 text-xs font-bold uppercase tracking-widest mb-2",children:"Daily Attestations"}),e.jsx("p",{className:"text-3xl font-bold text-white",children:"491"}),e.jsxs("div",{className:"mt-4 flex items-center text-emerald-500 text-xs",children:[e.jsx(H,{size:14,className:"mr-1"}),e.jsx("span",{children:"Avg. latency: 142ms"})]})]}),e.jsxs("div",{className:"bg-[#0a0a0a] border border-white/5 p-8 rounded-xl relative overflow-hidden group hover:border-emerald-500/30 transition-colors",children:[e.jsx("div",{className:"absolute top-0 right-0 p-4 opacity-10 group-hover:opacity-20 transition-opacity",children:e.jsx(G,{size:64})}),e.jsx("p",{className:"text-slate-500 text-xs font-bold uppercase tracking-widest mb-2",children:"Mesh Integrity"}),e.jsx("p",{className:"text-3xl font-bold text-white",children:"100.00%"}),e.jsxs("div",{className:"mt-4 flex items-center text-emerald-500 text-xs",children:[e.jsx(O,{size:14,className:"mr-1"}),e.jsx("span",{children:"Consensus: Validated"})]})]})]})}),e.jsxs("section",{className:"max-w-7xl w-full mx-auto px-4 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8 border-b border-white/10 pb-4",children:[e.jsxs("h2",{className:"text-xl font-bold text-white flex items-center gap-2",children:[e.jsx(q,{className:"text-emerald-500",size:24}),"Recent Verified Certificates"]}),e.jsx("button",{onClick:()=>o(),className:"text-emerald-500 text-xs font-bold uppercase tracking-widest hover:underline",children:"Refresh Records"})]}),e.jsxs("div",{className:"space-y-4",children:[m&&i.length===0?e.jsx("div",{className:"py-20 flex justify-center",children:e.jsx(d,{className:"animate-spin text-emerald-500",size:40})}):i.map((t,s)=>{var r;return e.jsxs("div",{className:"bg-[#0a0a0a] border border-white/5 p-5 rounded-xl flex flex-col md:flex-row md:items-center justify-between gap-4 hover:bg-white/5 transition-colors group/item",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"bg-emerald-500/20 p-3 rounded-lg group-hover/item:bg-emerald-500/30 transition-colors",children:e.jsx(x,{className:"text-emerald-500",size:24})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold",children:t.action||"Attestation Sync"}),e.jsxs("p",{className:"text-slate-500 text-xs uppercase tracking-tight mt-1",children:["Entity: ",((r=t.metadata)==null?void 0:r.entity)||"Sovereign Me
1sh Node"]})]})]}),e.jsxs("div",{className:"flex flex-col md:items-end gap-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-[10px] text-slate-500 font-mono",children:"SEAL_HASH:"}),e.jsx("span",{className:"font-mono text-xs text-emerald-500 bg-emerald-500/5 px-2 py-1 rounded truncate max-w-[200px] md:max-w-full",children:t.payloadHash})]}),e.jsxs("p",{className:"text-[10px] text-slate-400",children:["Issued: ",new Date(t.timestamp).toLocaleString()]})]})]},s)}),!m&&i.length===0&&e.jsx("div",{className:"py-20 text-center text-slate-500 italic",children:"No recent forensic records found in HDFL."})]})]})]})};export{$ as AttestationRegistryWidget};

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.