PageSourceSearch

https://brightarena.com/assets/foundation-pipeline-archive-DdI0hGKl.js

js brightarena.com collected 2026-10-09 03:51:01 UTC 3,806 bytes, 1 lines download raw bytes

1import{ag as g,Z as e,h as c,i as u,w as x,G as f}from"./index-BbzIpGd1.js";import{u as k}from"./use-load-BdR0LknS.js";import{L as y}from"./LoadError-CrC1Bnfx.js";const j={complete:{label:"Complete",chip:"bg-success text-success-fg"},passed:{label:"Passed",chip:"bg-surface-muted text-ink-secondary"},archived:{label:"Archived",chip:"bg-warning text-warning-fg"}},v={completed:{label:"Completed",chip:"bg-success text-success-fg"},closed:{label:"Closed",chip:"bg-danger text-danger-fg"},inactive:{label:"Inactive",chip:"bg-surface-muted text-ink-secondary"},passed:{label:"Passed",chip:"bg-surface-muted text-ink-secondary"},not_a_fit:{label:"Not a fit",chip:"bg-surface-muted text-ink-secondary"},duplicate:{label:"Duplicate",chip:"bg-surface-muted text-ink-secondary"},handed_off:{label:"Handed off",chip:"bg-blue-100 text-blue-800"},other:{label:"Other",chip:"bg-surface-muted text-ink-secondary"}},N=i=>i.reason&&v[i.reason]||j[i.stage];function P(){const[i,d]=g.useState(null),a=k(()=>x.getPipelineArchive("mine").then(s=>s.opportunities),[]),r=a.data,l=a.retry;async function m(s){d(s);try{await x.unarchivePursuit(s),l()}finally{d(null)}}return a.failed?e.jsx(c,{children:e.jsx(y,{what:"the archive",onRetry:l})}):r?e.jsxs(c,{children:[e.jsxs("header",{className:"mb-5",children:[e.jsx("nav",{className:"mb-3",children:e.jsx(u,{to:"/pipeline",className:"text-xs text-ink-muted hover:text-ink",children:"← Pipeline"})}),e.jsx("p",{className:"text-[10px] uppercase tracking-[0.15em] text-ink-muted mb-1",children:"Pipeline"}),e.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:"Archive"}),e.jsx("p",{className:"mt-2 text-sm text-ink-secondary max-w-2xl",children:"Completed and passed opportunities. They keep their full workspace - open one to review or keep adding to it, or reopen a passed opportunity back into the pipe."})]}),r.length===0?e.jsx("p",{className:"text-sm text-ink-muted italic",children:"Nothing archived yet."}):(()=>{const s=t=>t.stage==="complete"||t.reason==="completed",n=r.filter(s),o=r.filter(t=>!s(t)),p=t=>{const h=N(t),b=t.pursuit_id?`/pursuits/${t.pursuit_id}`:t.deal_id?`/deals/${t.deal_id}`:`/s/${t.project_id}`;return e.jsxs("li",{className:"flex items-center gap-3 py-3",children:[e.jsx("span",{className:"text-[10px] uppercase tracking-wider px-1.5 py-0.5 rounded shrink-0 "+h.chip,children:h.label}),e.jsx(u,{to:b,className:"min-w-0 flex-1 text-sm text-ink hover:underline truncate",children:t.project_title}),e.jsx("span",{className:"text-[11px] text-ink-muted tabular-nums shrink-0",children:f(t.value_cents)}),t.archived_at&&e.jsx("span",{className:"text-[11px] text-ink-faint shrink-0 hidden sm:inline",children:t.archived_at.slice(0,10)}),(t.stage==="passed"||t.stage==="archived")&&t.pursuit_id&&e.jsx("button",{onClick:()=>m(t.pursuit_id),disabled:i===t.pursuit_id,className:"text-[11px] px-2.5 py-1 rounded-md border border-border-strong text-ink-secondary hover:border-border-heavy disabled:opacity-50 shrink-0",children:i===t.pursuit_id?"…":t.stage==="archived"?"Unarchive":"Reopen"})]},`${t.pursuit_id??t.project_id}-${t.stage}`)};return e.jsxs(e.Fragment,{children:[n.length>0&&e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-sm font-medium text-ink-secondary mb-1",children:"Realized · your track record"}),e.jsx("ul",{className:"divide-y divide-border border-t border-b border-border",children:n.map(p)})]}),o.length>0&&e.jsxs("section",{children:[n.length>0&&e.jsx("h2",{className:"text-sm font-medium text-ink-secondary mb-1",children:"Passed & archived"}),e.jsx("ul",{className:"divide-y divide-border border-t border-b border-border",children:o.map(p)})]})]})})()]}):e.jsx(c,{children:e.jsx("p",{className:"text-sm text-ink-muted",children:"Loading…"})})}export{P as FoundationPipelineArchive};

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.