1import{j as t}from"./index-iAVlVxvB.js";import{A as r,P as c,L as n,E as d,a as l}from"./primitives-B-PYiOq8.js";import{C as m}from"./CandidatePicker-D8_1LnRX.js";import{M as p}from"./Markdown-ByuwkzNG.js";import{u as x}from"./usePhaseZero-DYXhC0Em.js";import{c as u}from"./Sidebar-BstMbomz.js";const g=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],b=u("download",g);function h(){const e=x();return t.jsxs(r,{title:"Memos",loading:e.candidatesLoading||e.detailLoading,children:[t.jsx(c,{eyebrow:"Diligence Library",title:"Memos",subtitle:"BD-ready diligence memos generated by the engine. A structured input for human review: evidence, contradictions, model inference, stress test, and next best diligence actions."}),e.candidatesLoading&&t.jsx(n,{label:"Loading candidates"}),e.candidatesError&&!e.candidatesLoading&&t.jsx(d,{}),e.candidates&&t.jsxs(t.Fragment,{children:[t.jsx(m,{candidates:e.candidates,selectedId:e.selectedId,onSelect:e.setSelectedId}
1),e.detailLoading&&t.jsx(n,{label:"Generating memo"}),e.detailError&&!e.detailLoading&&t.jsx(d,{}),e.detail&&t.jsxs(l,{className:"mt-6",children:[t.jsxs("button",{type:"button",onClick:()=>j(e.detail.memo,e.detail.id),className:"mb-5 inline-flex items-center gap-2 rounded-sm border pz-border px-4 py-2 font-mono-pz text-[9.5px] tracking-[0.18em] uppercase text-pz-muted hover:border-pz-accent hover:text-pz-accent transition-colors",children:[t.jsx(b,{size:12}),"Download Markdown"]}),t.jsx(p,{source:e.detail.memo})]})]})]})}function j(e,i){const s=new Blob([e],{type:"text/markdown;charset=utf-8"}),o=URL.createObjectURL(s),a=document.createElement("a");a.href=o,a.download=`phasezero-${i}-diligence-memo.md`,document.body.appendChild(a),a.click(),a.remove(),URL.revokeObjectURL(o)}const v=h;export{v 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.