const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OidcLoginCallback-s91t7kw_.js","assets/workspaceStore-B4xim6np.js","assets/jwt-decode.esm-og2W_mys.js","assets/jwt-decode-BQ_ruOuH.css","assets/userStore-TcL0Pw6I.js","assets/runnerData-DQlisCXz.js","assets/url-Di0QLUa5.js","assets/colorHelpers-BW0h5pOm.js","assets/OidcLogoutCallback-BO4bTkVL.js","assets/Login-Pnv-VEUf.js","assets/Login.vue_vue_type_script_setup_true_lang-CB1zAQVl.js","assets/OTPInput-D9Nx2wv0.js","assets/OTPInput-DkitIIgo.css","assets/Logo-BNNRtoA7.js","assets/Logo-D2kepPyK.css","assets/string-zda83L05.js","assets/CircularLoading-BECt85rQ.js","assets/CircularLoading-BiyobKo3.css","assets/index-4i4-_SMR.js","assets/Login-Cz1Eot-E.css","assets/Login-BZnMlYYz.css","assets/Main-CplmvsML.js","assets/PlayerNavbar-Dn9REkEc.js","assets/metadata-CaYBTvan.js","assets/PhMagnifyingGlass.vue-DnciAdl2.js","assets/PhWebhooksLogo.vue-CTgyFgt-.js","assets/LoadingOutlined-DaLTXg8d.js","assets/PhSignOut.vue-o3s0jLEA.js","assets/index-cU8xXDOD.js","assets/PlayerNavbar-CeGdx3sX.css","assets/Main-DqPmGmnC.css","assets/Home-BYEyXhwz.js","assets/Watermark-zg4f1k0t.js","assets/constants-DLqQBhqI.js","assets/Watermark-Kvo_3kQJ.css","assets/PhArrowSquareOut.vue-Ub8Bngcy.js","assets/index-F4m9QP88.js","assets/Home-C1q_HTgM.css","assets/Error-BStPlxSA.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang-CN5_Lk1n.js","assets/logo-BiWG9_W5.js","assets/Error-CIbhyrKS.css","assets/Form-j5PPzZ90.js","assets/FormRunner-vMDIAY90.js","assets/Steps-BPOVKknT.js","assets/index-BkDfVC2V.js","assets/Steps-Dd8Exugp.css","assets/FormRunner-CZyohe1i.css","assets/redirect-DvJhVRqP.js","assets/asyncComputed-Pl8A6UUZ.js","assets/uuid-B4idK4wa.js","assets/Form-CshGBPDC.css"])))=>i.map(i=>d[i]);
import{c as u,a as d,_ as t,u as l}from"./jwt-decode.esm-og2W_mys.js";import{u as p}from"./userStore-TcL0Pw6I.js";import{a as _}from"./workspaceStore-B4xim6np.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="cf5accf6-aeb8-4ec9-818d-b0c15c139299",e._sentryDebugIdIdentifier="sentry-dbid-cf5accf6-aeb8-4ec9-818d-b0c15c139299")}catch{}})();const h=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback-s91t7kw_.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback-BO4bTkVL.js"),__vite__mapDeps([8,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login-Pnv-VEUf.js"),__vite__mapDeps([9,10,2,3,1,4,5,6,7,11,12,13,14,15,16,17,18,19,20])),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>t(()=>import("./Main-CplmvsML.js"),__vite__mapDeps([21,22,4,2,3,1,5,6,7,23,24,25,26,27,28,29,30])),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>t(()=>import("./Home-BYEyXhwz.js"),__vite__mapDeps([31,23,2,3,24,25,32,1,4,5,6,7,33,34,35,36,26,37])),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>t(()=>import("./Error-BStPlxSA.js"),__vite__mapDeps([38,39,40,13,2,3,14,33,1,4,5,6,7,36,41])),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>t(()=>import("./Form-j5PPzZ90.js"),__vite__mapDeps([42,4,2,3,43,10,1,5,6,7,11,12,13,14,15,16,17,18,19,44,45,46,32,33,34,47,48,49,50,51])),meta:{hideLogin:!0}}]}],i=u({history:d("/"),routes:h,scrollBehavior(e){if(e.hash)return{el:e.hash}}}),f=e=>async(a,o)=>{if(l(a,o),a.meta.allowUnauthenticated)return;const r=p();r.loadJWT();const c=await _(a.path),{redirect:s,...m}=a.query;switch(c.status){case"ALLOWED":break;case"UNAUTHORIZED":{const n=r.email;r.removeJWT(),await e.push({name:"playerLogin",query:{...m,redirect:s||a.path,reauth:n?"true":void 0,email:n||void 0},params:a.params});break}case"NOT_FOUND":await e.push({name:"error",params:{status:"404"}});break;default:await e.push({name:"error",params:{status:"403"}})}};i.beforeEach(f(i));export{h as a,f as g,i as r};
//# sourceMappingURL=router-BWkupiLx.js.map
