const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OidcLoginCallback-Di4tPDDe.js","assets/workspaceStore-Cfj0QEiY.js","assets/jwt-decode.esm-Js5I4FhF.js","assets/jwt-decode-D2XcxCrM.css","assets/userStore-a9BelNZP.js","assets/runnerData-B8DXXSqp.js","assets/url-zOF2wl62.js","assets/colorHelpers-b6dDhoc4.js","assets/OidcLogoutCallback-BLTPbQWT.js","assets/Login-BDi03yN7.js","assets/Login.vue_vue_type_script_setup_true_lang-fkyWlWIl.js","assets/OTPInput-B2JUX423.js","assets/OTPInput-DkitIIgo.css","assets/Logo-ByRd2tOe.js","assets/Logo-D2kepPyK.css","assets/string-nFtklTH2.js","assets/CircularLoading-ugioziq0.js","assets/CircularLoading-BiyobKo3.css","assets/index-qsCC1AGy.js","assets/Login-CfTVNGsW.css","assets/Login-ChYgW3Ij.css","assets/Main-DbC92Ktp.js","assets/PlayerNavbar-4dXhfV2u.js","assets/metadata-C27zvcqa.js","assets/PhCursorClick.vue-B7QOyk02.js","assets/PhHouse.vue-DQf0M90S.js","assets/PhMagnifyingGlass.vue-BVuOwXuj.js","assets/PhWebhooksLogo.vue-Cc3rjgfC.js","assets/LoadingOutlined-DDKp-mcK.js","assets/PhSignOut.vue-COmG32Vz.js","assets/index-CJ-w8seO.js","assets/PlayerNavbar-DAUZYUrK.css","assets/Main-q9PQMe3g.css","assets/Home-DsEXCqrZ.js","assets/Watermark-CgQTvoYV.js","assets/constants-lpdjcJFu.js","assets/Watermark-o-wolLMc.css","assets/PageStageView-r39m4HFI.js","assets/consoleCapture-gnCt6BAA.js","assets/PageStageView-DszuJO9h.css","assets/PhArrowSquareOut.vue-BOuJrjiZ.js","assets/index-D-wSJBrc.js","assets/Home-DoQD4uFs.css","assets/Error-BsSsGWB8.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang-BniL30gp.js","assets/logo-BiWG9_W5.js","assets/Error-CIbhyrKS.css","assets/Form-oG5EiROb.js","assets/FormRunner-BgRzXdV_.js","assets/Steps-CK7ITZV5.js","assets/index-BOQ-plvE.js","assets/Steps-C-jqXtQm.css","assets/FormRunner-BzLbFxEW.css","assets/redirect-DJn93J_9.js","assets/asyncComputed-CYB9Y313.js","assets/uuid-DHsdivOz.js","assets/Form-TwePofFo.css"])))=>i.map(i=>d[i]);
import{c as u,a as d,_ as t,u as l}from"./jwt-decode.esm-Js5I4FhF.js";import{u as p}from"./userStore-a9BelNZP.js";import{a as _}from"./workspaceStore-Cfj0QEiY.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-Di4tPDDe.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback-BLTPbQWT.js"),__vite__mapDeps([8,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login-BDi03yN7.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-DbC92Ktp.js"),__vite__mapDeps([21,22,4,2,3,1,5,6,7,23,24,25,26,27,28,29,30,31,32])),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>t(()=>import("./Home-DsEXCqrZ.js"),__vite__mapDeps([33,23,24,2,3,25,26,27,34,1,4,5,6,7,35,36,37,16,17,38,39,40,41,28,42])),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>t(()=>import("./Error-BsSsGWB8.js"),__vite__mapDeps([43,44,45,13,2,3,14,35,1,4,5,6,7,41,46])),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>t(()=>import("./Form-oG5EiROb.js"),__vite__mapDeps([47,4,2,3,37,16,17,34,1,5,6,7,35,36,38,39,48,10,11,12,13,14,15,18,19,49,50,51,52,53,54,55,56])),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-t0rZsR9u.js.map
