1import{j as r}from"./vendor-ui-xWtzFnYJ.js";import{u as o}from"./useAuth-D1_kHrQ3.js";import{L as s}from"./loader-circle-CAbvT4Ju.js";import{N as e}from"./vendor-react-BYG5h24f.js";import"./client-CbQ2TZRS.js";import"./vendor-supabase-Ie832fIu.js";import"./index-Cxy_Kcsa.js";import"./vendor-motion-ujrZ6gTJ.js";function j({children:t}){const{user:i,isAdmin:m,loading:n}=o();return n?r.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:r.jsx(s,{className:"h-8 w-8 animate-spin text-primary"})}):i?m?r.jsx(r.Fragment,{children:t}):r.jsx(e,{to:"/admin/login",replace:!0}):r.jsx(e,{to:"/admin/login",replace:!0})}export{j 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.