PageSourceSearch

https://brandjitsu.com/assets/ProtectedRoute-D1t65QFX.js

js brandjitsu.com collected 2026-10-04 06:19:07 UTC 665 bytes, 1 lines download raw bytes

1import{p as e,r,j as s,av as i}from"./vendor-DKpN-gn6.js";import{e as a}from"./index-CjqWG2Gu.js";import"./auth-D0Oxv0aP.js";import"./ui-DbiJ6HOd.js";const n=({children:n,requireAdmin:t=!0})=>{const{user:d,isAdmin:o,isLoading:m}=a(),c=e();return r.useEffect((()=>{}),[d,o,m]),m?s.jsx("div",{className:"flex items-center justify-center h-screen",children:s.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-brand-purple"})}):d?t&&!o?s.jsx(i,{to:"/admin/login",state:{from:c,message:"Admin access required"},replace:!0}):s.jsx(s.Fragment,{children:n}):s.jsx(i,{to:"/admin/login",state:{from:c},replace:!0})};export{n 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.