const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OidcLoginCallback-DvKunPnG.js","assets/workspaceStore-Db-XT-yY.js","assets/jwt-decode.esm-BC57ltPh.js","assets/jwt-decode-BQ_ruOuH.css","assets/userStore-uOyK2H8S.js","assets/runnerData-WE-STZsS.js","assets/url-OIQBeIrp.js","assets/colorHelpers-CBKaQ2Yp.js","assets/OidcLogoutCallback-C-JRV-r_.js","assets/Login-2DT-pvc9.js","assets/Login.vue_vue_type_script_setup_true_lang-ByMyhYsS.js","assets/OTPInput-h-70NUFH.js","assets/OTPInput-DkitIIgo.css","assets/Logo-KP1pfZdW.js","assets/Logo-D2kepPyK.css","assets/string-BNsylzuI.js","assets/CircularLoading-g_YjEabg.js","assets/CircularLoading-BiyobKo3.css","assets/index-BA7dyzE7.js","assets/Login-Cz1Eot-E.css","assets/Login-BZnMlYYz.css","assets/Main-Cxqw6wHy.js","assets/PlayerNavbar-ojCmspiE.js","assets/metadata-C6HRWWNS.js","assets/PhMagnifyingGlass.vue-DT0D-Pjp.js","assets/PhWebhooksLogo.vue-DfikF9aJ.js","assets/LoadingOutlined-Dff-MHHn.js","assets/PhSignOut.vue-ClXr8ySd.js","assets/index-8ZNnNjt5.js","assets/PlayerNavbar-CeGdx3sX.css","assets/Main-DqPmGmnC.css","assets/Home-DSKzpq35.js","assets/Watermark-C3TtqbH4.js","assets/constants-BO_fR1re.js","assets/Watermark-Kvo_3kQJ.css","assets/PhArrowSquareOut.vue-DSNchYT2.js","assets/index-Cwom_ZFW.js","assets/Home-C1q_HTgM.css","assets/Error-B26LvUF3.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang-IyFSG2kH.js","assets/logo-BiWG9_W5.js","assets/Error-CIbhyrKS.css","assets/Form-Bu8hMPEJ.js","assets/FormRunner-D3WHPRAA.js","assets/Steps-CeBVejW3.js","assets/index-B9U7vpMR.js","assets/Steps-Dd8Exugp.css","assets/FormRunner-CZyohe1i.css","assets/redirect-Nyj6fj4Y.js","assets/asyncComputed-Cw0vmYNO.js","assets/uuid-CIkYX2l7.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-BC57ltPh.js";import{u as p}from"./userStore-uOyK2H8S.js";import{a as _}from"./workspaceStore-Db-XT-yY.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-DvKunPnG.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback-C-JRV-r_.js"),__vite__mapDeps([8,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login-2DT-pvc9.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-Cxqw6wHy.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-DSKzpq35.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-B26LvUF3.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-Bu8hMPEJ.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-DT3qEfAV.js.map
