1import{j as e}from"./vendor-radix-DK3xxFO5.js";import{u as j,r as a}from"./vendor-react-BosAocA3.js";import{u as p,H as l,C as m,c as d,F as x,b as g,f as N,s as b}from"./index-Dz21qnqg.js";import{B as v}from"./badge-D6uWAFB2.js";import{R as y,G as u,S as R}from"./vendor-icons-CVKWOx_N.js";import{m as w}from"./vendor-motion-C3PkMfQ1.js";import"./vendor-supabase-DHET8n-G.js";import"./vendor-charts-C6ZjoPMk.js";import"./vendor-query-D2k599xH.js";const B=()=>{const{user:s,loading:r}=p(),n=j(),[f,t]=a.useState(!1),[h,o]=a.useState(!0);return a.useEffect(()=>{r||(async()=>{if(!s){o(!1);return}try{const{data:i,error:c}=await b.rpc("has_role",{_user_id:s.id,_role:"admin"});c?(console.error("Error checking admin role:",c),t(!1)):t(i===!0)}catch(i){console.error("Error:",i),t(!1)}finally{o(!1)}})()},[s,r]),a.useEffect(()=>{!r&&!s&&n("/auth")},[s,r,n]),r||h?e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:e.jsx("div",{className:"animate-pulse text-muted-foreground",children:"Loading..."})}):f?e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(l,{}),e.jsx("main",{className:"flex-1 container mx-auto px-4 py-8",children:e.jsxs(w.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(u,{className:"h-8 w-8 text-primary"}),e.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"Resume Review Center"}),e.jsxs(v,{variant:"secondary",className:"ml-2",children:[e.jsx(R,{className:"h-3 w-3 mr-1"}),"Coming Soon"]})]}),e.jsxs(m,{className:"border-dashed border-2 border-muted",children:[e.jsx(g,{children:e.jsx(N,{className:"text-lg text-muted-foreground",children:"Placeholder"})}),e.jsx(d,{children:e.jsxs("div",{className:"text-center py-12",children:[e.jsx(u,{className:"h-16 w-16 text-muted-foreground/50 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-medium text-muted-foreground mb-2",children:"Resume Review Center"}),e.jsx("p",{className:"text-muted-foreground max-w-md mx-auto",children:"This feature is in development. It will allow you to upload a resume and receive section-by-section AI feedback based on proven resume criteria."})]})})]})]})}),e.jsx(x,{})]}):e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(l,{}),e.jsx("main",{className:"flex-1 flex items-center justify-center",children:e.jsx(m,{className:"max-w-md mx-4",children:e.jsxs(d,{className:"pt-6 text-center",children:[e.jsx(y,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Access Restricted"}),e.jsx("p",{className:"text-muted-foreground",children:"This feature is currently available to administrators only."})]})})}),e.jsx(x,{})]})};export{B 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.