1import{u as o,j as e,L as t,E as n,O as c,C as d,c as l,d as x,e as u,f as m,B as h}from"./main-DngGJsB2.js";function f(){const{data:s,isLoading:a,isFetching:i}=o();return a||i?e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background",children:e.jsx("div",{className:"text-muted-foreground",children:"Loading..."})}):s?.user?s.user.role!=="admin"?e.jsx(r,{reason:"authorization"}):e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("header",{className:"sticky top-0 z-10 border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:e.jsxs("div",{className:"container flex h-14 items-center gap-4 px-4",children:[e.jsxs(t,{to:"/internal",className:"flex items-center gap-2",children:[e.jsx(n,{className:"h-5 w-5 text-primary"}),e.jsx("span",{className:"font-semibold",children:"Internal Admin"})]}),e.jsxs("nav",{className:"flex items-center gap-4 text-sm",children:[e.jsx(t,{to:"/internal",className:"text-muted-foreground transition-colors hover:text-foreground [&.active]:text-foreground",activeOptions:{exact:!0},children:"Overview"}),e.jsx(t,{to:"/internal/interviews",className:"text-muted-foreground transition-colors hover:text-foreground [&.active]:text-foreground",children:"Interviews"}),e.jsx(t,{to:"/internal/demos",className:"text-muted-foreground transition-colors hover:text-foreground [&.active]:text-foreground",children:"Demos"}),e.jsx(t,{to:"/internal/organizations",className:"text-muted-foreground transition-colors hover:text-foreground [&.active]:text-foreground",children:"Organizations"}),e.jsx(t,{to:"/internal/settings",className:"text-muted-foreground transition-colors hover:text-foreground [&.active]:text-foreground",children:"Settings"})]}),e.jsx("div",{className:"ml-auto flex items-center gap-4",children:e.jsx("span",{className:"text-muted-foreground text-sm",children:s.user.email})})]})}),e.jsx("main",{className:"container px-4 py-6",children:e.jsx(c,{})})]}):e.jsx(r,{reason:"authentication"})}function r({reason:s}){return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background p-6",children:e.jsxs(d,{className:"w-full max-w-md",children:[e.jsxs(l,{className:"text-center",children:[e.jsx(n,{className:"mx-auto h-12 w-12 text-destructive"}),e.jsx(x,{children:"Access Denied"}),e.jsx(u,{children:s==="authentication"?"You need to sign in to access this area.":"You don't have permission to access the internal admin area."})]}),e.jsx(m,{className:"flex justify-center",children:e.jsx(h,{asChild:!0,children:e.jsx(t,{to:"/",children:"Return to Home"})})})]})})}export{f 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.