import{e2 as n,n as o,r as c,e,e3 as i,e4 as u,e5 as d}from"./index-_6SmYgWK.js";const f=()=>{const t=n(),s=o();return c.useEffect(()=>{(async()=>{const r=new URLSearchParams(t.search).get("token");if(r)try{const a=await i.ssoSuccess(r);a&&a.status===200?(u.dispatch(d(a.data)),s("/")):s("/login")}catch{s("/login")}})()},[t.search]),e.jsxs("div",{children:[e.jsx("h1",{children:"Loading dashboard..."}),e.jsx("p",{children:"Loading data..."})]})};export{f as default};
