PageSourceSearch

https://gradethread.com/assets/admin-route-BKTeQ6ka.js

js gradethread.com collected 2026-10-10 01:45:58 UTC 1,710 bytes, 1 lines download raw bytes

1import{k as a,j as r,a as n,O as p}from"./vendor-react-CowE5YCj.js";import{f as d}from"./use-auth-FaZySznk.js";import{cd as u}from"./index-BwzqfZRD.js";import{C as c}from"./confirm-dialog-D2URwbHy.js";import{V as f}from"./verify-email-gate-Bi_6QKyX.js";import"./support-reply-seen-BDrHZ8u4.js";import"./workspace-profiles-D9dKaE-w.js";import"./inventory-selection-gR-I3mZn.js";import"./idle-logout-DmhfCCf2.js";import"./auth-CcWyxVus.js";import"./autolister-session-idb-LDIUcsJC.js";import"./vendor-query-VEVGS95H.js";import"./vendor-supabase-Baxrk5fR.js";import"./alert-dialog-CBXLRcOn.js";import"./index-RUkvxMya.js";import"./index-DdfYGvON.js";import"./index-BbR4OEL_.js";import"./index-DTZTzW98.js";import"./index-uSK457ni.js";import"./index-clxdtWr2.js";import"./index-Da-lsaRy.js";import"./auth-error-DrjZhUfo.js";import"./toast-error-BDOwNR3J.js";import"./friendly-error-BmcA0avy.js";import"./mail-check-BqOI8V2_.js";function B(){const{session:t,user:i,profile:e,isLoading:o}=d(),m=a.useRef(!1),s=e?.role==="admin"||e?.role==="super_admin";return a.useEffect(()=>{!o&&t&&e&&!s&&!m.current&&(m.current=!0,u.error("Access denied"))},[o,t,e,s]),o?r.jsx("div",{className:"flex h-screen items-center justify-center",children:r.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"})}):t?i&&!i.email_confirmed_at?r.jsx(f,{email:i.email??null}):e?s?r.jsx(c,{children:r.jsx(p,{})}):r.jsx(n,{to:"/dashboard",replace:!0}):r.jsx("div",{className:"flex h-screen items-center justify-center",children:r.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"})}):r.jsx(n,{to:"/login",replace:!0})}export{B as AdminRoute};

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.