const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OidcLoginCallback-C453914F.js","assets/workspaceStore-BD3CXmHX.js","assets/jwt-decode.esm-Deqn1Ux5.js","assets/jwt-decode-D2XcxCrM.css","assets/userStore-OC9axl7X.js","assets/runnerData-CnbGOZtt.js","assets/url-DyLJf7vL.js","assets/colorHelpers-COoxDMTZ.js","assets/OidcLogoutCallback-B6OVAJXv.js","assets/Login-B9ImFUiR.js","assets/Login.vue_vue_type_script_setup_true_lang-CB1IZdn2.js","assets/OTPInput-DT2voBqF.js","assets/OTPInput-DkitIIgo.css","assets/Logo-5HoZd2ZY.js","assets/Logo-D2kepPyK.css","assets/string-_-d9aetX.js","assets/CircularLoading-CCsNhy_-.js","assets/CircularLoading-BiyobKo3.css","assets/index-CvKDsf1Q.js","assets/Login-CfTVNGsW.css","assets/Login-ChYgW3Ij.css","assets/Main-B7jzSIqn.js","assets/PlayerNavbar-CzUz1bof.js","assets/metadata-Y8UTj2yO.js","assets/PhCursorClick.vue-B9ZZeev5.js","assets/PhHouse.vue-DDjkigXs.js","assets/PhMagnifyingGlass.vue-D32sd6_i.js","assets/PhWebhooksLogo.vue-a_TPoSh3.js","assets/LoadingOutlined-CGY7Meij.js","assets/PhSignOut.vue-CRpT_Mbi.js","assets/index-CN7ciqgj.js","assets/PlayerNavbar-DAUZYUrK.css","assets/Main-DkTZQwuz.css","assets/Home-CM1zXTDK.js","assets/Watermark-D8lueKpq.js","assets/constants-CFVrVo2U.js","assets/Watermark-o-wolLMc.css","assets/PageStageView-DN2-hlzc.js","assets/consoleCapture-sIGZ3iyd.js","assets/PageStageView-DszuJO9h.css","assets/PhArrowSquareOut.vue-Cxyqlvnx.js","assets/index-DtGCYegL.js","assets/Home-DoQD4uFs.css","assets/Error-adPtBiaQ.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang-_qtVmj1B.js","assets/logo-BiWG9_W5.js","assets/Error-CIbhyrKS.css","assets/Form-ChlyopuE.js","assets/FormRunner-BgyVGb7R.js","assets/Steps-De_EefJu.js","assets/index-Dy3aqpyh.js","assets/Steps-C-jqXtQm.css","assets/FormRunner-BzLbFxEW.css","assets/redirect-D-X0wnsB.js","assets/asyncComputed-C9n_SFEN.js","assets/uuid-VLRqNiD5.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-Deqn1Ux5.js";import{u as p}from"./userStore-OC9axl7X.js";import{a as _}from"./workspaceStore-BD3CXmHX.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-C453914F.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback-B6OVAJXv.js"),__vite__mapDeps([8,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login-B9ImFUiR.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-B7jzSIqn.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-CM1zXTDK.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-adPtBiaQ.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-ChlyopuE.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-CYDK1Pxy.js.map
