PageSourceSearch

https://advisorsclub.com/assets/admin.index-28aKtYkV.js

js advisorsclub.com collected 2026-10-04 06:36:54 UTC 3,197 bytes, 1 lines download raw bytes

1import{u as m,r as x,j as s,L as d}from"./index-B3LkCOOS.js";import{a as j}from"./platform-admin.functions-ZmCsXMwx.js";import{O as u}from"./contracts-CUpHHkMi.js";import{u as b}from"./use-platform-staff-DYElMy6f.js";import{u as v,E as N,K as g,P as r,a as t,f as y,C as f,s as w,b as c}from"./pieces-BoeW08zD.js";function C(){const o=m(j),i=b(),[l,h]=x.useState(30),{data:a,loading:p,error:n}=v(()=>o({data:{days:l}}),[l]);return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"pa-page-head",children:[s.jsxs("div",{children:[s.jsx("h2",{children:"Platform overview"}),s.jsx("p",{children:"Counted from live rows. Nothing on this page is estimated or sampled."})]}),s.jsx("span",{style:{flex:1}}),s.jsx("div",{className:"pa-range",role:"group","aria-label":"Date range",children:u.map(e=>s.jsx("button",{type:"button","aria-pressed":l===e.days,onClick:()=>h(e.days),children:e.label},e.days))})]}),n?s.jsx(N,{message:n}):null,p&&!a?s.jsx("div",{className:"pa-notice",children:"Loading…"}):null,a?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"pa-kpis",children:a.metrics.map(e=>s.jsx(g,{metric:e},e.key))}),s.jsx("div",{style:{marginBottom:16},children:s.jsx(r,{title:"Operational alerts",count:a.alerts.length,children:a.alerts.length===0?s.jsx(t,{children:"Nothing is flagged in this window. Alerts appear here only when real rows raise them."}):s.jsx("div",{className:"pa-panel-body",style:{display:"grid",gap:8},children:a.alerts.map(e=>s.jsxs("div",{className:"pa-notice","data-tone":"warn",children:[s.jsxs("h3",{children:[e.label,": ",y(e.value)]}),s.jsx("span",{className:"pa-prov",children:e.source})]},e.key))})})}),s.jsxs("div",{className:"pa-cols",children:[i.includes("platform.clubs.view")?s.jsx(r,{title:"Recent clubs",children:a.recent_clubs.length===0?s.jsx(t,{children:"No clubs yet."}):s.jsx("div",{className:"pa-table-wrap",children:s.jsxs("table",{className:"pa-table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Club"}),s.jsx("th",{children:"Owner"}),s.jsx("th",{children:"Status"}),s.jsx("th",{children:"Created"})]})}),s.jsx("tbody",{children:a.recent_clubs.map(e=>s.jsxs("tr",{children:[s.jsx("td",{children:s.jsx(d,{to:"/admin/clubs/$clubId",params:{clubId:e.id},children:e.name})}),s.jsx("td",{className:"pa-sub",children:e.owner_name}),s.jsx("td",{children:s.jsx(f,{tone:w(e.status),children:e.status})}),s.jsx("td",{className:"pa-sub",children:c(e.created_at)})]},e.id))})]})})}):null,i.includes("platform.users.view")?s.jsx(r,{title:"Recent people",children:a.recent_users.length===0?s.jsx(t,{children:"No accounts yet."}):s.jsx("div",{className:"pa-table-wrap",children:s.jsxs("table",{className:"pa-table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Person"}),s.jsx("th",{children:"Email"}),s.jsx("th",{children:"Joined"})]})}),s.jsx("tbody",{children:a.recent_users.map(e=>s.jsxs("tr",{children:[s.jsx("td",{children:s.jsx(d,{to:"/admin/users/$userId",params:{userId:e.id},children:e.name})}),s.jsx("td",{className:"pa-sub",children:e.email??"—"}),s.jsx("td",{className:"pa-sub",children:c(e.created_at)})]},e.id))})]})})}):null]})]}):null]})}const k=C;export{k 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.