1import{r as a,j as e}from"./index-kHDiDAnq.js";function ie({networkId:o,nodeId:u,instanceId:i,agentName:p}){if(!o||!u||!i||!p)throw new Error("mkCopAddr: missing component(s)");return`cop://${o}/${u}/${i}/${p}`}function te({networkId:o,nodeId:u,instanceId:i,channelId:p}){if(!o||!u||!i||!p)throw new Error("mkChanAddr: missing component(s)");return`copchan://${o}/${u}/${i}/${p}`}function le(){return crypto.randomUUID?crypto.randomUUID():String(Date.now())+"-"+Math.random().toString(16).slice(2)}function he(){const[o,u]=a.useState("localnet"),[i,p]=a.useState("localnode"),[b,B]=a.useState("default"),[C,_]=a.useState("echo"),[y,R]=a.useState("echo.request"),[r,N]=a.useState("test-channel"),[v,T]=a.useState('{"text": "Hello COP"}'),[c,J]=a.useState(!1),[g,s]=a.useState(null),[l,x]=a.useState(null),[f,S]=a.useState(null),[O,P]=a.useState("test-channel"),[w,$]=a.useState([]),[k,H]=a.useState(!1),E=a.useRef(null),z=a.useRef(null),[U,W]=a.useState(null),[q,M]=a.useState(null),[V,F]=a.useState(null),[G,Z]=a.useState(!1),[se,K]=a.useState(""),[A,ce]=a.useState(null),[Q,ue]=a.useState(!1),[X,pe]=a.useState(null),ne=a.useCallback(async n=>{n.preventDefault(),S(null),x(null);let h;try{h=v.trim()?JSON.parse(v):{}}catch(j){S("Payload JSON invalide : "+j.message);return}let m,d;try{m=ie({networkId:o,nodeId:i,instanceId:b,agentName:C}),d=te({networkId:o,nodeId:i,instanceId:b,channelId:r})}catch(j){S("Erreur d'adresse COP : "+j.message);return}const I={cop_version:"0.2.0",message_id:le(),correlation_id:null,from:m,to:m,intent:y,payload:h,channel:d,metadata:{test:!0,ui:"CopAdmin"},auth:null};s(I),J(!0);try{const j=await fetch("/cop",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(I)}),ee=await j.text();let L=null;try{L=JSON.parse(ee)}catch{L=ee}x({status:j.status,body:L})}catch(j){S("Erreur réseau /cop : "+j.message)}finally{J(!1)}},[o,i,b,C,y,r,v]),re=a.useCallback(()=>{if(k)return;let n;try{n=te({networkId:o,nodeId:i,instanceId:b,channelId:O})}catch(d){alert("Erreur d'adresse de canal: "+d.message);return}const h=new URLSearchParams;h.set("channel",n),z.current!=null&&h.set("since_id",String(z.current));const m=new EventSource(`/cop-stream?${h.toString()}`);m.onopen=()=>{H(!0)},m.onmessage=d=>{let D;try{D=JSON.parse(d.data)}catch{D=d.data}const I=d.lastEventId?Number(d.lastEventId):null;I!=null&&(z.current=I),$(j=>[{id:I,type:d.type||"message",rawType:d.type,data:D,timestamp:new Date().toISOString()},...j])},m.onerror=()=>{m.close(),H(!1)},E.current=m},[k,o,i,b,O]),ae=a.useCallback(()=>{E.current&&(E.current.close(),E.current=null),H(!1)},[]);a.useEffect(()=>()=>{E.current&&E.current.close()},[]);const Y=a.useCallback(async n=>{F(null),Z(!0);try{const h=await fetch(`/cop-admin-registry?resource=${n}`),m=await h.text();let d;try{d=JSON.parse(m)}catch{d=m}if(!h.ok||d.status==="error"){F(`Erreur ${n}: `+(d.error?.message||`HTTP ${h.status}`)),n==="nodes"&&W(null),n==="agents"&&M(null);return}n==="nodes"&&W(d),n==="agents"&&M(d)}catch(h){F(`Erreur réseau (${n}) : `+h.message)}finally{Z(!1)}},[]);return e.jsxs("div",{style:t.page,children:[e.jsx("h1",{style:t.title,children:"COP Admin / Test"}),e.jsxs("section",{style:t.section,children:[e.jsx("h2",{style:t.sectionTitle,children:"1. Envoi de COP_MESSAGE"}),e.jsxs("form",{onSubmit:ne,style:t.form,children:[e.jsxs("div",{style:t.row,children:[e.jsx("label",{style:t.label,children:"networkId"}),e.jsx("input",{style:t.input,value:o,onChange:n=>u(n.target.value)})]}),e.jsxs("div",{style:t.row,children:[e.jsx("label",{style:t.label,children:"nodeId"}),e.jsx("input",{style:t.input,value:i,onChange:n=>p(n.target.value)})]}),e.jsxs("div",{style:t.row,children:[e.jsx("label",{style:t.label,children:"instanceId"}),e.jsx("input",{style:t.input,value:b,onChange:n=>B(n.target.value)})]}),e.jsxs("div",{style:t.row,children:[e.jsx("label",{style:t.label,children:"agentName"}),e.jsx("input",{style:t.input,value:C,onChange:n=>_(n.target.value)})]}),e.jsxs("div",{style:t.row,children:[e.jsx("label",{style:t.label,children:"intent"}),e.jsx("input",{style:t.input,value:y,onChange:n=>R(n.target.value)})]}),e.jsxs("div",{style:t.row,children:[e.jsx("label",{style:t.label,children:"channelId"}),e.jsx("input",{style:t.input,value:r,onChange:n=>N(n.target.value)})]}),e.jsxs("div",{style:t.row,children:[e.jsx("label",{style:t.label,children:"payload (JSON)"}
1),e.jsx("textarea",{style:t.textarea,rows:4,value:v,onChange:n=>T(n.target.value)})]}),e.jsx("div",{style:t.row,children:e.jsx("button",{type:"submit",style:t.button,disabled:c,children:c?"Envoi en coursâ¦":"Envoyer /cop"})})]}),f&&e.jsxs("div",{style:t.error,children:["Erreur d'envoi : ",f]}),e.jsxs("div",{style:t.subSection,children:[e.jsx("h3",{style:t.subTitle,children:"Dernier message envoyé"}),e.jsx("pre",{style:t.pre,children:g?JSON.stringify(g,null,2):"(aucun)"})]}),e.jsxs("div",{style:t.subSection,children:[e.jsxs("h3",{style:t.subTitle,children:["Dernier message envoyé"," ",g&&e.jsx("button",{type:"button",style:{...t.buttonSecondary,padding:"2px 6px",fontSize:"11px",marginLeft:"8px"},onClick:()=>K(g.correlation_id||g.message_id),children:"Utiliser comme correlation_id"})]}),e.jsx("pre",{style:t.pre,children:g?JSON.stringify(g,null,2):"(aucun)"})]}),e.jsxs("div",{style:t.subSection,children:[e.jsx("h3",{style:t.subTitle,children:"Dernière réponse /cop"}),e.jsx("pre",{style:t.pre,children:l?JSON.str
1ingify(l,null,2):"(aucune)"})]})]}),e.jsxs("section",{style:t.section,children:[e.jsx("h2",{style:t.sectionTitle,children:"2. Streaming COP_EVENT (/cop-stream)"}),e.jsxs("div",{style:t.row,children:[e.jsx("label",{style:t.label,children:"stream channelId"}),e.jsx("input",{style:t.input,value:O,onChange:n=>P(n.target.value)})]}),e.jsx("div",{style:t.row,children:k?e.jsx("button",{style:t.buttonSecondary,onClick:ae,children:"Arrêter le streaming"}):e.jsx("button",{style:t.button,onClick:re,children:"Démarrer le streaming"})}),e.jsxs("div",{style:t.subSection,children:[e.jsx("h3",{style:t.subTitle,children:"Ãvénements reçus (dernier en premier)"}),e.jsx("div",{style:t.eventsContainer,children:w.length===0?e.jsx("div",{style:t.empty,children:"Aucun événement reçu pour lâinstant."}):w.map(n=>e.jsxs("div",{style:t.eventCard,children:[e.jsxs("div",{style:t.eventHeader,children:[e.jsx("span",{style:t.eventType,children:n.data.event_type||n.type}),e.jsx("span",{style:t.eventTime,children:n.timestamp})]}),e.jsx("pre",{style:t.preSmall,children:JSON.stringify(n.data,null,2)})]},n.timestamp+"-"+n.id))})]})]}),e.jsxs("section",{style:t.section,children:[e.jsx("h2",{style:t.sectionTitle,children:"3. Registry COP (cop_nodes / cop_agents)"}),e.jsxs("div",{style:t.row,children:[e.jsx("button",{style:t.button,onClick:()=>Y("nodes"),disabled:G,children:"Charger cop_nodes"}),e.jsx("button",{style:{...t.buttonSecondary,marginLeft:8},onClick:()=>Y("agents"),disabled:G,children:"Charger cop_agents"})]}),V&&e.jsxs("div",{style:t.error,children:["Erreur registre : ",V]}),e.jsxs("div",{style:t.subSection,children:[e.jsx("h3",{style:t.subTitle,children:"cop_nodes"}),e.jsx("pre",{style:t.pre,children:U?JSON.stringify(U,null,2):"(non chargé)"})]}),e.jsxs("div",{style:t.subSection,children:[e.jsx("h3",{style:t.subTitle,children:"cop_agents"}),e.jsx("pre",{style:t.pre,children:q?JSON.stringify(q,null,2):"(non chargé)"})]})]}),e.jsxs("section",{style:t.section,children:[e.jsx("h2",{style:t.sectionTitle,children:"4. Trace COP (cop_debug_logs)"}),e.jsxs("div",{style:t.row,children:[e.jsx("label",{style:t.label,children:"correlation_id"}),e.jsx("input",{style:t.input,placeholder:"UUID (correlation_id ou message_id)",value:se,onChange:n=>K(n.target.value)})]}),e.jsx("div",{style:t.row,children:e.jsx("button",{style:t.button,onClick:oe,disabled:Q,children:Q?"Chargementâ¦":"Charger la trace"})}),X&&e.jsxs("div",{style:t.error,children:["Erreur trace : ",X]}),A&&e.jsxs("div",{style:t.subSection,children:[e.jsxs("h3",{style:t.subTitle,children:["Résultats (",A.count," entrées)"]}),A.count===0?e.jsx("div",{style:t.empty,children:"Aucune entrée pour ce correlation_id."}):e.jsx("div",{style:t.eventsContainer,children:A.items.map(n=>e.jsxs("div",{style:t.eventCard,children:[e.jsxs("div",{style:t.eventHeader,children:[e.jsxs("span",{style:t.eventType,children:[n.location," / ",n.stage]}),e.jsx("span",{style:t.eventTime,children:n.created_at})]}),e.jsxs("div",{style:{fontSize:"11px",marginBottom:"4px",color:"#6b7280"},children:["correlation_id: ",n.correlation_id||"â
"," | message_id:"," ",n.message_id||"â
"," | event_id: ",n.event_id||"â
"," | direction:"," ",n.direction||"â
"]}),e.jsx("pre",{style:t.preSmall,children:JSON.stringify(n.metadata,null,2)})]},n.id))})]})]}),e.jsx(de,{})]})}const oe=a.useCallback(async()=>{setTraceError(null),setTraceData(null);const o=traceCorrelationId.trim();if(!o){setTraceError("Veuillez saisir un correlation_id.");return}setTraceLoading(!0);try{const u=await fetch(`/cop-admin-registry?resource=trace&correlation_id=${encodeURIComponent(o)}`),i=await u.text();let p;try{p=JSON.parse(i)}catch{p=i}if(!u.ok||p.status==="error"){setTraceError("Erreur trace : "+(p.error?.message||`HTTP ${u.status}`));return}setTraceData(p)}catch(u){setTraceError("Erreur réseau (trace) : "+u.message)}finally{setTraceLoading(!1)}},[traceCorrelationId]);function de(){const[o,u]=a.useState([]),[i,p]=a.useState(""),[b,B]=a.useState(!1),[C,_]=a.useState(null),[y,R]=a.useState(null),[r,N]=a.useState({agent_id:"",agent_name:"",agent_class:"",description:"",owner_human_id:"",owner_group_id:"",operator_id:"",domains:"[]",permissions:"{}",constraints:"{}",issued_by:"",valid_until:"",profile:"{}",status:"active",metadata:"{}"});a.useEffect(()=>
1{v()},[i]);async function v(){B(!0),_(null);try{const s=new URL("/cop-agent-identity",window.location.origin);i&&s.searchParams.set("status",i);const l=await fetch(s.toString());if(!l.ok){const f=await l.text();throw new Error(`HTTP ${l.status} â ${f.slice(0,200)}`)}const x=await l.json();u(Array.isArray(x)?x:[])}catch(s){_(s.message||String(s))}finally{B(!1)}}function T(s){if(R(s||null),!s){N({agent_id:"",agent_name:"",agent_class:"",description:"",owner_human_id:"",owner_group_id:"",operator_id:"",domains:"[]",permissions:"{}",constraints:"{}",issued_by:"",valid_until:"",profile:"{}",status:"active",metadata:"{}"});return}N({agent_id:s.agent_id||"",agent_name:s.agent_name||"",agent_class:s.agent_class||"",description:s.description||"",owner_human_id:s.owner_human_id||"",owner_group_id:s.owner_group_id||"",operator_id:s.operator_id||"",domains:JSON.stringify(s.domains||[],null,2),permissions:JSON.stringify(s.permissions||{},null,2),constraints:JSON.stringify(s.constraints||{},null,2),issued_by:s.issued_by||"",valid_until:s.valid_until||"",profile:JSON.stringify(s.profile||{},null,2),status:s.status||"active",metadata:JSON.stringify(s.metadata||{},null,2)})}function c(s,l){N(x=>({...x,[s]:l}))}async function J(s){s.preventDefault(),_(null);try{let l=[],x={},f={},S={},O={};r.domains.trim()&&(l=JSON.parse(r.domains)),r.permissions.trim()&&(x=JSON.parse(r.permissions)),r.constraints.trim()&&(f=JSON.parse(r.constraints)),r.profile.trim()&&(S=JSON.parse(r.profile)),r.metadata.trim()&&(O=JSON.parse(r.metadata));const P={action:"upsert",agent_id:r.agent_id||void 0,agent_name:r.agent_name,agent_class:r.agent_class,description:r.description||void 0,owner_human_id:r.owner_human_id||void 0,owner_group_id:r.owner_group_id||void 0,operator_id:r.operator_id||void 0,domains:l,permissions:x,constraints:f,issued_by:r.issued_by||void 0,valid_until:r.valid_until||void 0,profile:S,status:r.status||void 0,metadata:O},w=await fetch("/cop-agent-identity",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(P)});if(!w.ok){const k=await w.text();throw new Error(`HTTP ${w.status} â ${k.slice(0,200)}`)}const $=await w.json();await v(),T($)}catch(l){_(l.message||String(l))}}async function g(s){if(!(!y||!y.agent_id)){_(null);try{const l={action:"status",agent_id:y.agent_id,status:s},x=await fetch("/cop-agent-identity",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!x.ok){const S=await x.text();throw new Error(`HTTP ${x.status} â ${S.slice(0,200)}`)}const f=await x.json();await v(),T(f)}catch(l){_(l.message||String(l))}}}return e.jsxs("div",{style:{border:"1px solid #ccc",padding:"1rem",marginTop:"1rem"},children:[e.jsx("h2",{children:"Agent Identities (état civil)"}),e.jsxs("div",{style:{marginBottom:"0.5rem"},children:[e.jsxs("label",{children:["Status filter: ",e.jsxs("select",{value:i,onChange:s=>p(s.target.value),children:[e.jsx("option",{value:"",children:"(all)"}),e.jsx("option",{value:"active",children:"active"}),e.jsx("option",{value:"suspended",children:"suspended"}),e.jsx("option",{value:"revoked",children:"revoked"}),e.jsx("option",{value:"expired",children:"expired"})]})]}),e.jsx("button",{type:"button",onClick:v,style:{marginLeft:"0.5rem"},children:"Refresh"})]}),b&&e.jsx("div",{children:"Loading identitiesâ¦"}),C&&e.jsx("div",{style:{color:"red",marginBottom:"0.5rem"},children:C}),e.jsxs("div",{style:{display:"flex",gap:"1rem",alignItems:"flex-start"},children:[e.jsxs("div",{style:{flex:1,maxHeight:"300px",overflow:"auto"},children:[e.jsxs("table",{style:{width:"100%",borderCollapse:"collapse"},children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{style:{borderBottom:"1px solid #ccc",textAlign:"left"},children:"Name"}),e.jsx("th",{style:{borderBottom:"1px solid #ccc",textAlign:"left"},children:"Class"}),e.jsx("th",{style:{borderBottom:"1px solid #ccc",textAlign:"left"},children:"Status"}),e.jsx("th",{style:{borderBottom:"1px solid #ccc",textAlign:"left"},children:"Issued by"})]})}),e.jsxs("tbody",{children:[o.map(s=>e.jsxs("tr",{style:{cursor:"pointer",backgroundColor:y&&y.agent_id===s.agent_id?"#eef":"transparent"},onClick:()=>T(s),children:[e.jsx("td",{style:{borderBottom:"1px solid #eee"},children:s.agent_name}),e.jsx("td",{style:{borderBottom:"1px solid #eee"},children:s.agent_class}),e.jsx("td",{style:{borderBottom:"1px solid #eee"},children:s.status}),e.jsx("td",{style:{borderBottom:"1px solid #eee"},children:s.issued_by||""})]},s.agent_id)),o.length===0&&!b&&e.jsx("tr",{children:e.jsx("td",{colSpan:4,style:{padding:"0.5rem"},children:"No identities found."})})]})]}),e.jsx("button",{type:"button",style:{marginTop:"0.5rem"},onClick:()=>T(null),children:"New identity"})]}),e.jsxs("div",{style:{flex:1},children:[e.jsx("h3",{children:r.agent_id?"Edit identity":"New identity"}),e.jsxs("form",{onSubmit:J,children:[e.jsx("div",{style:{marginBottom:"0.5rem"},children:e.jsxs("label",{children:["Agent ID (read-only):",e.jsx("br",{}),e.jsx("input",{type:"text",value:r.agent_id,readOnly:!0,style:{width:"100%"}})]})}),e.jsx("div",{style:{marginBottom:"0.5rem"},children:e.jsxs("label",{children:["Agent name:",e.jsx("br",{}),e.jsx("input",{type:"text",value:r.agent_name,onChange:s=>c("agent_name",s.target.value),style:{width:"100%"},required:!0})]})}),e.jsx("div",{style:{marginBottom:"0.5rem"},children:e.jsxs("label",{children:["Agent class:",e.jsx("br",{}),e.jsx("input",{type:"text",value:r.agent_class,onChange:s=>c("agent_class",s.target.value),style:{width:"100%"},required:!0})]})}),e.jsx("div",{style:{marginBottom:"0.5rem"}
1,children:e.jsxs("label",{children:["Description:",e.jsx("br",{}),e.jsx("textarea",{value:r.description,onChange:s=>c("description",s.target.value),style:{width:"100%",minHeight:"60px"}})]})}),e.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[e.jsx("div",{style:{flex:1},children:e.jsxs("label",{children:["Owner human ID:",e.jsx("br",{}),e.jsx("input",{type:"text",value:r.owner_human_id,onChange:s=>c("owner_human_id",s.target.value),style:{width:"100%"}})]})}),e.jsx("div",{style:{flex:1},children:e.jsxs("label",{children:["Owner group ID:",e.jsx("br",{}),e.jsx("input",{type:"text",value:r.owner_group_id,onChange:s=>c("owner_group_id",s.target.value),style:{width:"100%"}})]})})]}),e.jsx("div",{style:{marginBottom:"0.5rem",marginTop:"0.5rem"},children:e.jsxs("label",{children:["Operator ID:",e.jsx("br",{}),e.jsx("input",{type:"text",value:r.operator_id,onChange:s=>c("operator_id",s.target.value),style:{width:"100%"}})]})}),e.jsx("div",{style:{marginBottom:"0.5rem"},children:e.jsxs("label",{children:["Domains (JSON array):",e.jsx("br",{}),e.jsx("textarea",{value:r.domains,onChange:s=>c("domains",s.target.value),style:{width:"100%",minHeight:"60px",fontFamily:"monospace"}})]})}),e.jsx("div",{style:{marginBottom:"0.5rem"},children:e.jsxs("label",{children:["Permissions (JSON object):",e.jsx("br",{}),e.jsx("textarea",{value:r.permissions,onChange:s=>c("permissions",s.target.value),style:{width:"100%",minHeight:"60px",fontFamily:"monospace"}})]})}),e.jsx("div",{style:{marginBottom:"0.5rem"},children:e.jsxs("label",{children:["Constraints (JSON object):",e.jsx("br",{}),e.jsx("textarea",{value:r.constraints,onChange:s=>c("constraints",s.target.value),style:{width:"100%",minHeight:"60px",fontFamily:"monospace"}})]})}),e.jsx("div",{style:{marginBottom:"0.5rem"},children:e.jsxs("label",{children:["Issued by:",e.jsx("br",{}),e.jsx("input",{type:"text",value:r.issued_by,onChange:s=>c("issued_by",s.target.value),style:{width:"100%"}})]})}),e.jsx("div",{style:{marginBottom:"0.5rem"},children:e.jsxs("label",{children:["Valid until (ISO):",e.jsx("br",{}),e.jsx("input",{type:"text",value:r.valid_until,onChange:s=>c("valid_until",s.target.value),style:{width:"100%"},placeholder:"2026-12-31T23:59:59Z"})]})}),e.jsx("div",{style:{marginBottom:"0.5rem"},children:e.jsxs("label",{children:["Profile (JSON object):",e.jsx("br",{}),e.jsx("textarea",{value:r.profile,onChange:s=>c("profile",s.target.value),style:{width:"100%",minHeight:"60px",fontFamily:"monospace"}})]})}),e.jsx("div",{style:{marginBottom:"0.5rem"},children:e.jsxs("label",{children:["Status:",e.jsx("br",{}),e.jsxs("select",{value:r.status,onChange:s=>c("status",s.target.value),style:{width:"100%"},children:[e.jsx("option",{value:"active",children:"active"}),e.jsx("option",{value:"suspended",children:"suspended"}),e.jsx("option",{value:"revoked",children:"revoked"}),e.jsx("option",{value:"expired",children:"expired"})]})]})}),e.jsx("div",{style:{marginBottom:"0.5rem"},children:e.jsxs("label",{children:["Metadata (JSON object):",e.jsx("br",{}),e.jsx("textarea",{value:r.metadata,onChange:s=>c("metadata",s.target.value),style:{width:"100%",minHeight:"60px",fontFamily:"monospace"}})]})}),e.jsxs("div",{style:{display:"flex",gap:"0.5rem",marginTop:"0.5rem"},children:[e.jsx("button",{type:"submit",children:"Save / Upsert"}),y&&e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",onClick:()=>g("active"),children:"Set active"}),e.jsx("button",{type:"button",onClick:()=>g("suspended"),children:"Suspend"}),e.jsx("button",{type:"button",onClick:()=>g("revoked"),children:"Revoke"})]})]})]})]})]})]})}const t={page:{padding:"24px",maxWidth:"960px",margin:"0 auto",fontFamily:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",color:"#111827"},title:{fontSize:"28px",fontWeight:700,marginBottom:"24px"},section:{border:"1px solid #e5e7eb",borderRadius:"8px",padding:"16px 20px",marginBottom:"24px",background:"#f9fafb"},sectionTitle:{fontSize:"20px",fontWeight:600,marginBottom:"12px"},form:{display:"flex",flexDirection:"column",gap:"8px"},row:{display:"flex",flexDirection:"column",marginBottom:"8px"},label:{fontSize:"13px",fontWeight:500,marginBottom:"2px"},input:{fontSize:"14px",padding:"6px 8px",borderRadius:"4px",border:"1px solid #d1d5db",fontFamily:"inherit"},textarea:{fontSize:"14px",padding:"6px 8px",borderRadius:"4px",border:"1px solid #d1d5db",fontFamily:"monospace"},button:{padding:"8px 12px",borderRadius:"6px",border:"none",backgroundColor:"#2563eb",color:"white",fontSize:"14px",fontWeight:500,cursor:"pointer",alignSelf:"flex-start"},buttonSecondary:{padding:"8px 12px",borderRadius:"6px",border:"none",backgroundColor:"#6b7280",color:"white",fontSize:"14px",fontWeight:500,cursor:"pointer",alignSelf:"flex-start"},error:{marginTop:"8px",padding:"8px",borderRadius:"4px",backgroundColor:"#fee2e2",color:"#b91c1c",fontSize:"13px"},subSection:{marginTop:"16px"},subTitle:{fontSize:"15px",fontWeight:600,marginBottom:"4px"},pre:{fontSize:"12px",background:"#111827",color:"#e5e7eb",padding:"8px",borderRadius:"4px",maxHeight:"260px",overflow:"auto"},preSmall:{fontSize:"11px",background:"#111827",color:"#e5e7eb",padding:"6px",borderRadius:"4px",maxHeight:"160px",overflow:"auto"},eventsContainer:{marginTop:"8px",maxHeight:"400px",overflow:"auto",display:"flex",flexDirection:"column",gap:"8px"},eventCard:{borderRadius:"6px",border:"1px solid #e5e7eb",background:"white",padding:"8px"},eventHeader:{display:"flex",justifyContent:"space-between",marginBottom:"4px",fontSize:"11px",color:"#6b7280"},eventType:{fontWeight:600},eventTime:{fontFamily:"monospace"},empty:{fontSize:"13px",color:"#6b7280"}};
1export{he as default}; 2//# sourceMappingURL=CopAdmin-BuyTsfwX.js.map
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.