1import{j as o}from"./client-CDaV10mu.js";import{u,bd as l,e as m,g as c,D as p,_ as g,bX as A,aV as x,S as d,N as b}from"./main-BS31kX8Y.js";import{a as j,c as e}from"./react-DAbPx6Pa.js";import"./sentry-Cw0q9Lja.js";import"./datadog-DQlHC2FE.js";import"./firebase-BnJFpJRs.js";const v=async()=>{if(!c().Authorization)throw new Error("Authorization header is missing");const{data:t,error:a}=await p.GET("/student_sso/associations",{headers:c()});if(a)throw a;return t??[]},y=(i=!0)=>{const t=u(l);return m({queryKey:["student-sso-associations",t],queryFn:v,enabled:i&&!!t,refetchOnWindowFocus:!1})},G=()=>{const i=j(),t=g(),a=u(A),r=b.currentLocale(),{data:n,isLoading:f,isError:h}=y(a);return x()?t?a?f?o.jsx(d,{}):h||!n?o.jsx(e,{to:`/${r}/dashboard`}):n.filter(s=>s.provider==="google"||s.provider==="microsoft").every(s=>s.associated)?o.jsx(e,{to:`/${r}/dashboard`}):n.filter(s=>s.provider==="google"||s.provider==="microsoft").some(s=>s.enabled&&!s.associated)?o.jsx(e,{to:`/${r}/settings/student_sso`}):o.jsx(e,{to:`/${r}/dashboard`}):o.jsx(e,{to:`/${r}/dashboard`}):o.jsx(d,{}):o.jsx(e,{to:{pathname:`/${r}/login`,state:{from:{pathname:i.pathname}}}})};export{G as default}; 2//# sourceMappingURL=PostRegistrationRedirect-DF7DVPYu.js.map
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.