1import{C as x,B as m,D as p,r as b,j as e,L as r,O as u}from"./main-TafBZtzY.js";import{L as g}from"./layout-dashboard-D2Smi-2O.js";import{T as f}from"./trending-up-BfaumPes.js";import{C as j}from"./cpu-DH7LcwaE.js";import{S as v}from"./shield-BBdeYe5K.js";import{S as w}from"./satellite-DNul-_LV.js";import{c as N}from"./createLucideIcon-D2aCYdcL.js";const y=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],C=N("log-out",y),L=[{to:"/dashboard",label:"Overview",icon:g,exact:!0},{to:"/dashboard/apollo",label:"Apollo Insight",icon:f,badge:"Live"},{to:"/dashboard/orion",label:"Orion Edge",icon:j,badge:"Live"},{to:"/dashboard/shieldnet",label:"ShieldNet",icon:v,badge:"Live"},{to:"/dashboard/fusion",label:"Constellation Fusion",icon:w,badge:"Live"}],S=()=>{const{user:s,session:i,loading:o,signOut:l}=x(),n=m(),a=p();if(b.useEffect(()=>{!o&&!i&&n({to:"/login",search:{next:a.pathname}})},[o,i,n,a.pathname]),o)return e.jsx("div",{className:"min-h-screen bg-[#06080c] text-white flex items-center justify-center",children:e.jsx("div",{className:"text-white/50 text-sm",children:"Authenticatingâ¦"})});if(!i)return e.jsx("div",{className:"min-h-screen bg-[#06080c] text-white flex items-center justify-center",children:e.jsx("div",{className:"text-white/50 text-sm",children:"Redirecting to sign inâ¦"})});const c=s?.user_metadata?.full_name||s?.email?.split("@")[0]||"operator";return e.jsxs("div",{className:"min-h-screen bg-[#06080c] text-white flex",children:[e.jsxs("aside",{className:"w-64 border-r border-white/10 bg-black/40 flex flex-col",children:[e.jsxs("div",{className:"p-6 border-b border-white/10",children:[e.jsxs(r,{to:"/",className:"flex items-center gap-3 group",children:[e.jsx("div",{className:"w-9 h-9 flex items-center justify-center",children:e.jsx("img",{src:"/lovable-uploads/3dc04ec0-b9fa-4708-9367-d14eb814cf1d.png",alt:"SpaceDataAI",width:36,height:36,className:"w-full h-full object-contain select-none",draggable:!1})}),e.jsx("span",{className:"text-sm font-bold group-hover:text-yellow-400 transition-colors",children:"SpaceDataAI"})]}),e.jsx("div",{className:"mt-3 font-mono text-[10px] tracking-[0.3em] text-[#5CC8FF] uppercase",children:"Operator Console"})]}),e.jsx("nav",{className:"flex-1 px-3 py-4 space-y-1",children:L.map(t=>{const d=t.icon,h=t.exact?a.pathname===t.to:a.pathname.startsWith(t.to);return e.jsxs(r,{to:t.to,className:`flex items-center justify-between px-3 py-2 rounded-md text-sm transition-colors ${h?"bg-[#5CC8FF]/10 text-[#5CC8FF]":"text-white/70 hover:text-white hover:bg-white/5"}`,children:[e.jsxs("span",{className:"flex items-center gap-3",children:[e.jsx(d,{className:"w-4 h-4"}),t.label]}),t.badge&&e.jsx("span",{className:`text-[9px] tracking-wider uppercase px-1.5 py-0.5 rounded ${t.badge==="Live"?"bg-emerald-500/15 text-emerald-300":"bg-white/5 text-white/40"}`,children:t.badge})]},t.to)})}),e.jsxs("div",{className:"border-t border-white/10 p-4",children:[e.jsx("div",{className:"text-xs text-white/60 mb-1",children:"Signed in as"}),e.jsx("div",{className:"text-sm text-white truncate",children:c}),e.jsx("div",{className:"text-[10px] text-white/40 truncate",title:s?.email??"",children:s?.email}),e.jsxs("button",{type:"button",onClick:()=>{l()},className:"mt-3 w-full flex items-center justify-center gap-2 text-xs text-white/60 hover:text-white py-2 rounded-md border border-white/10 hover:border-white/30 transition-colors",children:[e.jsx(C,{className:"w-3 h-3"}),"Sign out"]})]})]}),e.jsx("main",{className:"flex-1 overflow-y-auto",children:e.jsx(u,{})})]})},_=S;export{_ 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.