PageSourceSearch

https://chartmentor.io/assets/Admin-Di2B-pR9.js

js chartmentor.io collected 2026-10-02 01:57:31 UTC 3,982 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AdminOverview-CcQ-pByf.js","assets/react-vendor-CdbEkvHB.js","assets/tabs-BnaPPXWd.js","assets/radix-ui-CSxGpBRr.js","assets/supabase-CxM-nLeM.js","assets/index-D5ldX8nG.js","assets/icons-D5q0hyss.js","assets/index-BPzfH9ER.css","assets/card-heWL1pcs.js","assets/badge-CrK0__Ya.js","assets/input-CgvMgJmt.js","assets/table-DvEYLw_y.js","assets/label-BDZC01Zc.js","assets/switch-ftUvet5y.js","assets/UserManagement-CWCq_a48.js","assets/select-D6CUkacY.js","assets/deleteUser-DBSomy6X.js","assets/dialog-CyIoA-hH.js","assets/AdminAiOperations-D8VJp5xu.js","assets/checkbox-BekCOBCt.js","assets/sheet-DQC01caT.js","assets/textarea-B3bO-cSJ.js","assets/AdminFeedbackSupport-D_qvcUtW.js"])))=>i.map(i=>d[i]);
2import{u as f,W as b,N as g,X as o,_ as d}from"./index-D5ldX8nG.js";import{m as N,r as a,j as e}from"./react-vendor-CdbEkvHB.js";import{T as _,a as A,b as n,c as l}from"./tabs-BnaPPXWd.js";import{o as p,S as w,$ as T,G as k,ab as E,ac as S}from"./icons-D5q0hyss.js";import"./radix-ui-CSxGpBRr.js";import"./supabase-CxM-nLeM.js";const y=o(()=>d(()=>import("./AdminOverview-CcQ-pByf.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])).then(s=>({default:s.AdminOverview}))),L=o(()=>d(()=>import("./UserManagement-CWCq_a48.js"),__vite__mapDeps([14,1,5,3,4,6,7,8,10,9,11,15,16,17,12])).then(s=>({default:s.UserManagement}))),O=o(()=>d(()=>import("./AdminAiOperations-D8VJp5xu.js"),__vite__mapDeps([18,1,2,3,4,5,6,7,8,10,12,13,15,9,11,19,20,21])).then(s=>({default:s.AdminAiOperations}))),R=o(()=>d(()=>import("./AdminFeedbackSupport-D_qvcUtW.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,9,8,11,15,20,21])).then(s=>({default:s.AdminFeedbackSupport}))),c=()=>e.jsx("div",{className:"flex items-center justify-center py-12",children:e.jsx(p,{className:"h-6 w-6 animate-spin text-primary"})}),M=()=>{const{user:s,loading:m}=f(),{isAdmin:u,loading:x}=b(),t=N(),[r,j]=a.useState("overview"),[i,v]=a.useState({overview:!0});return a.useEffect(()=>{v(h=>h[r]?h:{...h,[r]:!0})},[r]),a.useEffect(()=>{!m&&!s&&t("/auth?mode=login")},[s,m,t]),a.useEffect(()=>{!x&&!u&&s&&t("/account")},[u,x,s,t]),m||x?e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:e.jsx(p,{className:"h-8 w-8 animate-spin text-primary"})}):u?e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(g,{}),e.jsxs("div",{className:"container mx-auto px-4 py-8 pt-24",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[e.jsx("div",{className:"p-2 bg-primary/10 rounded-lg",children:e.jsx(w,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"Dashboard Admin"}),e.jsx("p",{className:"text-muted-foreground",children:"Manage platform operations, routing, health, and user support"})]})]}),e.jsxs(_,{value:r,onValueChange:j,className:"space-y-6",children:[e.jsx("div",{className:"overflow-x-auto -mx-4 px-4 sm:mx-0 sm:px-0",children:e.jsxs(A,{className:"w-max",children:[e.jsxs(n,{value:"overview",className:"gap-2",children:[e.jsx(T,{className:"h-4 w-4"}),"Overview"]}),e.jsxs(n,{value:"users",className:"gap-2",children:[e.jsx(k,{className:"h-4 w-4"}),"Users"]}),e.jsxs(n,{value:"ai-health",className:"gap-2",children:[e.jsx(E,{className:"h-4 w-4"}),"AI & Health"]}),e.jsxs(n,{value:"feedback-support",className:"gap-2",children:[e.jsx(S,{className:"h-4 w-4"}),"Feedback / Support"]})]})}),e.jsx(l,{value:"overview",children:i.overview?e.jsx(a.Suspense,{fallback:e.jsx(c,{}),children:e.jsx(y,{})}):null}),e.jsx(l,{value:"users",children:i.users?e.jsx(a.Suspense,{fallback:e.jsx(c,{}),children:e.jsx(L,{})}):null}),e.jsx(l,{value:"ai-health",children:i["ai-health"]?e.jsx(a.Suspense,{fallback:e.jsx(c,{}),children:e.jsx(O,{})}):null}),e.jsx(l,{value:"feedback-support",children:i["feedback-support"]?e.jsx(a.Suspense,{fallback:e.jsx(c,{}),children:e.jsx(R,{})}):null})]})]})]}):null};export{M as default};

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.