const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OidcLoginCallback-Bdp8MIuY.js","assets/workspaceStore-KCHQtpxL.js","assets/jwt-decode.esm-hjaWXwux.js","assets/jwt-decode-D2NJgJx6.css","assets/userStore-DBMdJVjc.js","assets/runnerData-CNJxazV0.js","assets/url-GnsHFl5k.js","assets/colorHelpers-am_R58n2.js","assets/OidcLogoutCallback-DVEpGDCg.js","assets/Login-DQ6RRYd6.js","assets/Login.vue_vue_type_script_setup_true_lang-BmsAHSat.js","assets/OTPInput-DeODd7XP.js","assets/OTPInput-DkitIIgo.css","assets/Logo-CkrwUnIg.js","assets/Logo-D2kepPyK.css","assets/string-RCvD6M5Y.js","assets/CircularLoading-Cuf2gNcE.js","assets/CircularLoading-BiyobKo3.css","assets/index-DiirI1XZ.js","assets/Login-CmviQBec.css","assets/Login-CSLF5y6q.css","assets/Main-DZV-Y1k4.js","assets/PlayerNavbar-CxMHUsoR.js","assets/metadata-B0WVDL4G.js","assets/PhWebhooksLogo.vue-DvpMRJ0K.js","assets/PhHouse.vue-DdPk45FD.js","assets/PhMagnifyingGlass.vue-DC_PSdn5.js","assets/LoadingOutlined-OcuhjR7d.js","assets/PhSignOut.vue-Djroadeo.js","assets/index-BSo54daG.js","assets/PlayerNavbar-DAUZYUrK.css","assets/Main-BUjGuAbV.css","assets/Home-CG1xM59d.js","assets/Watermark-B64-avh-.js","assets/constants-BjnPUTv3.js","assets/Watermark-C-v8lywQ.css","assets/PageStageView-iYco_AcY.js","assets/consoleCapture-DsXB_FCi.js","assets/PageStageView-dZcfz7zQ.css","assets/PhArrowSquareOut.vue-Bbi54w-N.js","assets/index-CI2rMmDi.js","assets/Home-DoQD4uFs.css","assets/Error-CnHU0nf9.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang-CufhdSQ7.js","assets/logo-BiWG9_W5.js","assets/Error-CIbhyrKS.css","assets/Form-DWejQZ4C.js","assets/FormRunner-BH9Z2Awr.js","assets/Steps-BocchZmV.js","assets/index-Dqh6yN2o.js","assets/Steps-mRTkp5g4.css","assets/FormRunner-CnnhHAy4.css","assets/redirect-U64Eqa1h.js","assets/asyncComputed-D_-SIG1g.js","assets/uuid-Do0lHHWb.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-hjaWXwux.js";import{u as p}from"./userStore-DBMdJVjc.js";import{a as _}from"./workspaceStore-KCHQtpxL.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-Bdp8MIuY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback-DVEpGDCg.js"),__vite__mapDeps([8,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login-DQ6RRYd6.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-DZV-Y1k4.js"),__vite__mapDeps([21,22,4,2,3,1,5,6,7,23,24,25,26,27,28,29,30,31])),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>t(()=>import("./Home-CG1xM59d.js"),__vite__mapDeps([32,23,24,2,3,25,26,33,1,4,5,6,7,34,35,36,16,17,37,38,39,40,27,41])),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>t(()=>import("./Error-CnHU0nf9.js"),__vite__mapDeps([42,43,44,13,2,3,14,34,1,4,5,6,7,40,45])),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>t(()=>import("./Form-DWejQZ4C.js"),__vite__mapDeps([46,4,2,3,36,16,17,33,1,5,6,7,34,35,37,38,47,10,11,12,13,14,15,18,19,48,49,50,51,52,53,54,55])),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-DMIQKrL-.js.map
