1import{j as e}from"./index-iAVlVxvB.js";import{A as o,P as p,L as l,E as d,a as n,S as c}from"./primitives-B-PYiOq8.js";import{C as x}from"./CandidatePicker-D8_1LnRX.js";import{u as m}from"./usePhaseZero-DYXhC0Em.js";import"./Sidebar-BstMbomz.js";const g={high:"#A8C979",medium:"#D6B25A",low:"#8A8F86"};function h(){const a=m();return e.jsxs(o,{title:"Evidence",loading:a.candidatesLoading||a.detailLoading,children:[e.jsx(p,{eyebrow:"Evidence Graph",title:"Evidence",subtitle:"What evidence supports the thesis? Offline graph connecting opportunities, domains, agents, and signals so reviewers can inspect source coverage and central claims."}),a.candidatesLoading&&e.jsx(l,{label:"Loading candidates"}),a.candidatesError&&!a.candidatesLoading&&e.jsx(d,{}),a.candidates&&e.jsxs(e.Fragment,{children:[e.jsx(x,{candidates:a.candidates,selectedId:a.selectedId,onSelect:a.setSelectedId}),a.detailLoading&&e.jsx(l,{label:"Building evidence graph"}),a.detailError&&!a.detailLoading&&e.jsx(d,{}),a.detail&&e.jsxs("div",{className:"mt-6 flex flex-col gap-5",children:[e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[e.jsx(t,{label:"Graph Nodes",value:a.detail.evidence_graph.node_count}),e.jsx(t,{label:"Graph Edges",value:a.detail.evidence_graph.edge_count}),e.jsx(t,{label:"High-Quality Signals",value:a.detail.evidence_graph.quality_counts.high??0}),e.jsx(t,{label:"Domains Covered",value:Object.keys(a.detail.evidence_graph.domain_counts).length})]}),e.jsxs(n,{children:[e.jsx(c,{children:"Top Signals by Centrality"}),e.jsx("ul",{className:"mt-4 flex flex-col",children:a.detail.evidence_graph.top_signals.map((s,i)=>e.jsx("li",{className:"border-t pz-border py-3 first:border-t-0",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 rounded-full shrink-0",style:{background:g[s.quality]??"#8A8F86"}}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-[12.5px] leading-snug text-pz-soft font-light",children:s.signal}),e.jsxs("div",{className:"mt-1 font-mono-pz text-[9px] tracking-[0.14em] uppercase text-pz-muted",children:[s.source," · ",s.quality," · centrality ",s.centrality]})]})]})},i))})]}),e.jsxs(n,{children:[e.jsx(c,{children:"Agent Findings"}),e.jsx("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-5",children:a.detail.agents.map(s=>e.jsxs("div",{className:"border-t pz-border pt-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[12.5px] text-pz-text",children:s.name}),e.jsxs("span",{className:"font-mono-pz text-[9px] tracking-[0.16em] uppercase text-pz-accent",children:[s.confidence,"%"]})]}),e.jsx("ul",{className:"mt-2 flex flex-col gap-1.5",children:s.findings.map((i,r)=>e.jsxs("li",{className:"flex gap-2 text-[11.5px] leading-snug text-pz-soft font-light",children:[e.jsx("span",{className:"text-pz-accent text-[7px] pt-1.5",children:"â"}),e.jsx("span",{children:i})]},r))})]},s.name))})]})]})]})]})}function t({label:a,value:s}){return e.jsxs(n,{children:[e.jsx("div",{className:"font-serif-display text-[32px] leading-none text-pz-text",children:s}),e.jsx("div",{className:"mt-2 font-mono-pz text-[9px] tracking-[0.18em] uppercase text-pz-muted",children:a})]})}const b=h;export{b as component};
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.