1import{r as i,j as t}from"./react-runtime-BZYMbA0n.js";import{y as m}from"./index-B66or0X1.js";import{c as f}from"./routing-BJcY-oaB.js";import"./data-services-DGj08KhI.js";const c="auth:redirect",b=()=>{const s=f(),[e,a]=i.useState("loading"),l=r=>r&&r.startsWith("/")&&!r.startsWith("//")?r:"/orders";return i.useEffect(()=>{(async()=>{var n;const{data:d,error:o}=await m.auth.getSession();if(o){console.error("[AUTH] Callback session error:",o),a("error");return}const u=l(localStorage.getItem(c));if(localStorage.removeItem(c),(n=d.session)!=null&&n.user){s(u);return}a("done")})()},[s]),t.jsx("main",{className:"min-h-screen flex items-center justify-center bg-background",children:t.jsxs("div",{className:"text-center space-y-3",role:e==="error"?"alert":"status","aria-live":e==="error"?"assertive":"polite",children:[e==="loading"&&t.jsx("div",{className:"animate-spin w-10 h-10 border-2 border-cta border-t-transparent rounded-full mx-auto"}),t.jsxs("p",{className:"text-muted-foreground",children:[e==="error"&&"Unable to finish sign-in.",e==="loading"&&"Finishing sign-in...",e==="done"&&"Sign-in complete. You can close this tab."]})]})})};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.