1import{u as r,a as c,r as l,j as e,w as o}from"./index-6puVifSu.js";import{S as m}from"./shield-check-B8J0zhuh.js";import{L as d}from"./log-in-Nfk4_5Qe.js";const n="wb_admin_session",x="[email protected]";function g(){const s=r(),{user:t,loading:i}=c(),a=(t==null?void 0:t.email)===x;return l.useEffect(()=>{i||(a?(localStorage.setItem(n,"true"),s("/admin",{replace:!0})):localStorage.removeItem(n))},[i,a,s]),e.jsx("div",{className:"min-h-screen bg-[#0e0d0b] flex items-center justify-center px-6",children:e.jsxs("div",{className:"w-full max-w-sm",children:[e.jsxs("div",{className:"flex items-center gap-2.5 justify-center mb-10",children:[e.jsx("img",{src:o,alt:"wb",className:"h-8 w-auto",style:{filter:"invert(1)"}}),e.jsx("span",{className:"font-serif text-white text-lg font-medium tracking-wide",children:"washboat"})]}),e.jsx("p",{className:"text-white/30 text-xs uppercase tracking-widest text-center mb-8",children:"Admin Access"}),i?e.jsx("div",{className:"flex items-center justify-center py-8",children:e.jsx("div",{className:"w-5 h-5 border-2 border-white/10 border-t-white/50 rounded-full animate-spin"})}):a?e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx("div",{className:"w-12 h-12 mx-auto rounded-full bg-green-900/30 border border-green-700/30 flex items-center justify-center",children:e.jsx(m,{className:"w-5 h-5 text-green-400"})}),e.jsx("p",{className:"text-white/70 text-sm",children:"Admin account verified. Opening adminâ¦"})]}):t?e.jsxs("div",{className:"space-y-5 text-center",children:[e.jsx("p",{className:"text-white/70 text-sm",children:"You are signed in as:"}),e.jsx("p",{className:"text-white/40 text-sm break-all",children:t.email}),e.jsx("p",{className:"text-red-300/70 text-sm leading-relaxed",children:"This account is not authorized for Washboat admin. Sign out, then sign in as the admin account."}),e.jsx("button",{onClick:()=>s("/account"),className:"w-full py-3 bg-white/10 hover:bg-white/15 border border-white/10 text-white font-sans text-sm font-medium rounded-xl transition-colors",children:"Go to Account"})]}):e.jsxs("div",{className:"space-y-5 text-center",children:[e.jsx("p",{className:"text-white/55 text-sm leading-relaxed",children:"Admin access uses your normal Washboat login. Sign in with the admin account to continue."}),e.jsxs("button",{onClick:()=>s("/login"),className:"w-full flex items-center justify-center gap-2 py-3 bg-white/10 hover:bg-white/15 border border-white/10 text-white font-sans text-sm font-medium rounded-xl transition-colors",children:[e.jsx(d,{className:"w-4 h-4"}),"Sign in"]})]})]})})}export{g 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.