1import{c as d,u as c,j as e,L as o,s as p,r as x,O as m}from"./index-CCj0ga3e.js";import{u}from"./use-auth-T_6qsAw_.js";import{u as h}from"./useLocation-BrbIy8vR.js";import{L as b,a as f}from"./log-out-DfqII8hz.js";import{C as g,W as j}from"./wallet-E6qsSzlK.js";import{C as y}from"./crown-ToUuRGjk.js";const N=[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],k=d("circle-user-round",N),v=[{to:"/app",label:"Dashboard",icon:f},{to:"/app/card",label:"Card",icon:g},{to:"/app/membership",label:"Status",icon:y},{to:"/app/benefits",label:"Benefits",icon:j},{to:"/app/account",label:"Account",icon:k}];function L({children:s}){const a=h(),r=c();async function n(){await p.auth.signOut(),r({to:"/auth"})}return e.jsxs("div",{className:"flex min-h-screen flex-col",children:[e.jsx("header",{className:"sticky top-0 z-30 border-b border-border/40 bg-charcoal/85 backdrop-blur",children:e.jsxs("div",{className:"mx-auto flex max-w-3xl items-center justify-between px-5 py-4",children:[e.jsxs(o,{to:"/app",className:"font-display text-xl tracking-wide text-cream",children:["Legacy ",e.jsx("span",{className:"text-gold",children:"Lounge"})]}),e.jsxs("button",{onClick:n,className:"flex items-center gap-1.5 rounded-sm border border-border/60 px-3 py-1.5 text-[0.65rem] uppercase tracking-[0.2em] text-muted-foreground hover:border-gold hover:text-gold",children:[e.jsx(b,{className:"h-3.5 w-3.5"}),"Sign out"]})]})}),e.jsx("main",{className:"mx-auto w-full max-w-3xl flex-1 px-5 pb-28 pt-6",children:s}),e.jsx("nav",{className:"fixed inset-x-0 bottom-0 z-30 border-t border-border/60 bg-charcoal/95 backdrop-blur",children:e.jsx("div",{className:"mx-auto grid max-w-3xl grid-cols-5",children:v.map(t=>{const l=t.to==="/app"?a.pathname==="/app"||a.pathname==="/app/":a.pathname.startsWith(t.to),i=t.icon;return e.jsxs(o,{to:t.to,className:`flex flex-col items-center gap-1 py-3 text-[0.65rem] uppercase tracking-[0.15em] ${l?"text-gold":"text-muted-foreground"}`,children:[e.jsx(i,{className:"h-5 w-5"}),t.label]},t.to)})})})]})}function W(){const{session:s,loading:a}=u(),r=c();return x.useEffect(()=>{!a&&!s&&r({to:"/auth",search:{redirect:"/app"}})},[s,a,r]),a||!s?e.jsx("div",{className:"flex min-h-screen items-center justify-center text-sm text-muted-foreground",children:"Loadingâ¦"}):e.jsx(L,{children:e.jsx(m,{})})}export{W 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.