1import{eX as h,eo as p,cy as y,eY as l,bN as r,da as m}from"./Bl3OJams.js";import{a as o,e as d,j as c,h as v,f as P}from"./Dn9cS6go.js";import{c as w,d as A}from"./DMX38L2a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="47574e86-4853-4102-82e5-74b298029f7d",e._sentryDebugIdIdentifier="sentry-dbid-47574e86-4853-4102-82e5-74b298029f7d")}catch{}})();const _=h(async e=>{let a,t;const{$user:s}=p(),{waitForAuthReady:f}=y();if([a,t]=l(()=>f()),await a,t(),!s.value)return r(o(e.fullPath));const{currentUser:i,isNewUser:b,isV1Creating:g}=m();if([a,t]=l(()=>i),await a,t(),i.error.value)return r(o(e.fullPath));if(!s.value.emailVerified){if(e.path==="/auth/email-verification")return;const u=d(e.query.redirect)??(c(e.fullPath)?null:e.fullPath);return r(v(u))}if(!e.path.includes("/onboarding/")&&(b.value||g.value)){const n=d(e.query.redirect),u=c(e.fullPath)?null:e.fullPath;return r(P(n??u))}if(localStorage.getItem("ressourcePublicURL")&&i.data.value){const n=localStorage.getItem("ressourcePublicURL");return localStorage.removeItem("ressourcePublicURL"),r(n)}if(!w(i.data.value)&&A(e.path))return r("/espace-enseignant")});export{_ 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.