PageSourceSearch

https://1pltfrm.com/assets/InvestorsListPage-Du9GuV4b.js

js 1pltfrm.com collected 2026-10-05 11:27:47 UTC 1,973 bytes, 1 lines download raw bytes

1import{A as j,r as n,j as e,B as p,G as u,D as g,H as S,J as l,M as i,L as f}from"./index-CoUR1NlL.js";import{A as b}from"./AdminLayout-2-S3-9jv.js";const v={display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"1.25rem"},E={fontSize:11,opacity:.5,fontWeight:400},L={...i,fontFamily:"ui-monospace, monospace",fontSize:13},A={...i,opacity:.7},w={display:"inline-block",borderRadius:9999,padding:"2px 8px",fontSize:12,background:"rgba(159,204,208,0.12)",color:"var(--brand-ice)"};function C(){const{client:o}=j(),[r,y]=n.useState([]),[h,m]=n.useState(0),[c,a]=n.useState(!0),[d,x]=n.useState(null);return n.useEffect(()=>{const t=new AbortController;return a(!0),o.listInvestors({limit:200,signal:t.signal}).then(s=>{y(s.items),m(s.total),a(!1)}).catch(s=>{s.name!=="AbortError"&&(x(s.message??"Failed to load investors."),a(!1))}),()=>t.abort()},[o]),e.jsxs(b,{children:[e.jsx("div",{style:v,children:e.jsxs("h1",{style:p,children:["Investors"," ",!c&&e.jsx("span",{style:E,children:h})]})}),d&&e.jsx("div",{style:u,children:d}),e.jsx("div",{style:g,children:c?e.jsx("p",{style:{opacity:.5,fontSize:14,margin:0},children:"Loading…"}):r.length===0?e.jsx("p",{style:{opacity:.5,fontSize:14,margin:0},children:"No investors yet."}):e.jsxs("table",{style:S,children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{style:l,children:"Email"}),e.jsx("th",{style:l,children:"Name"}),e.jsx("th",{style:l,children:"Entitlements"}),e.jsx("th",{style:l,children:"Joined"})]})}),e.jsx("tbody",{children:r.map(t=>e.jsxs("tr",{children:[e.jsx("td",{style:L,children:e.jsx(f,{to:`/admin/investors/${encodeURIComponent(t.user_id)}`,style:{color:"var(--brand-ice)"},children:t.email})}),e.jsx("td",{style:A,children:t.full_name??"—"}),e.jsx("td",{style:i,children:e.jsx("span",{style:w,children:t.entitlement_count})}),e.jsx("td",{style:i,children:new Date(t.created_at).toLocaleDateString()})]},t.user_id))})]})})]})}export{C as InvestorsListPage};

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.