1import{r as n}from"./rolldown-runtime.C1f3BsDW.js";import"./inertia.BE4YqsTM.js";import"./http.DWpeO7Ui.js";import{Ln as o,Qr as c,Xt as m}from"./icons.ChOq_Y4q.js";import{t as l}from"./react-core.CAMe6Z4j.js";import"./utils.CgzVjNgC.js";import"./state.L8kQliOB.js";import{V as d,bt as a}from"./entry-client.DX3aUoe5.js";import{t as p}from"./SEO.gPDL2mFy.js";var x=n(c(),1),t=n(l(),1),h=e=>e&&e.startsWith("/")&&!e.startsWith("//")&&!e.startsWith("/\\")?e:"/dashboard";const f=({token:e=null,redirect:r})=>((0,x.useEffect)(()=>{(async()=>{if(e){a.setItem("auth_token",e);try{const i=a.getItem("auth-storage");if(i){const s=JSON.parse(i);s?.state&&(s.state.token=e,a.setItem("auth-storage",JSON.stringify(s)))}}catch{}try{await d.bootstrapSession()}catch{}}window.location.replace(h(r))})()},[e,r]),(0,t.jsxs)("main",{id:"main-content",className:"min-h-screen bg-background flex items-center justify-center p-6",children:[(0,t.jsx)(p,{title:"Switching session⦠- M Studio",noIndex:!0}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-6 animate-fade-in",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex h-11 w-11 items-center justify-center rounded-xl bg-gradient-to-br from-primary to-primary/80 shadow-lg shadow-primary/25",children:(0,t.jsx)(o,{className:"h-6 w-6 text-white","aria-hidden":"true"})}),(0,t.jsxs)("span",{className:"text-xl font-bold",children:[(0,t.jsx)("span",{className:"bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent",children:"M"}),(0,t.jsx)("span",{className:"text-foreground",children:" Studio"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3 text-center",children:[(0,t.jsx)(m,{className:"h-8 w-8 text-primary animate-spin","aria-hidden":"true"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"Switching sessionâ¦"})]})]})]}));var I=f;export{f as ImpersonateCallbackPage,I 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.