const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OidcLoginCallback-COw9MC2v.js","assets/workspaceStore-BFbr_c_Q.js","assets/jwt-decode.esm-TBTnMpAQ.js","assets/jwt-decode-D2NJgJx6.css","assets/userStore-CKr6VRns.js","assets/runnerData-5zbRPzoM.js","assets/url-qvab8xVu.js","assets/colorHelpers-BMn7fztv.js","assets/OidcLogoutCallback-IMW3zGOy.js","assets/Login-DumtvW0X.js","assets/Login.vue_vue_type_script_setup_true_lang-CqB4zQjs.js","assets/OTPInput-DpSgKdfx.js","assets/OTPInput-qNB7hs7A.css","assets/Logo-DSVZcRye.js","assets/Logo-D2kepPyK.css","assets/string-BWyWHyKB.js","assets/CircularLoading-BC1f3vav.js","assets/CircularLoading-BiyobKo3.css","assets/index-Cu4mrafg.js","assets/Login-160lG_Us.css","assets/Login-CCItdHMV.css","assets/Main-BbaUs4TQ.js","assets/PlayerNavbar-Dgn84Pnj.js","assets/metadata-B6qTvMyo.js","assets/PhWebhooksLogo.vue-Bq0BeCXb.js","assets/PhHouse.vue-cchLsjSO.js","assets/PhMagnifyingGlass.vue-DQLr_-6e.js","assets/LoadingOutlined-BqxBN2hi.js","assets/PhSignOut.vue-CEIxUeiN.js","assets/index-CycazgOp.js","assets/PlayerNavbar-DAUZYUrK.css","assets/Main-BUjGuAbV.css","assets/Home-Dxvgy8lC.js","assets/Watermark-Dxv3qtC3.js","assets/constants-B87hyFPv.js","assets/Watermark-C-v8lywQ.css","assets/PageStageView-BV5x0IDt.js","assets/consoleCapture-DbPX-cOo.js","assets/PageStageView-dZcfz7zQ.css","assets/PhArrowSquareOut.vue-BdQBIoxe.js","assets/index-rOmUqnMH.js","assets/Home-DoQD4uFs.css","assets/Error-CgT_KVp5.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang-CPoq8QfW.js","assets/logo-BiWG9_W5.js","assets/Error-CIbhyrKS.css","assets/Form-BCzBkk9z.js","assets/FormRunner-CaMoAGM6.js","assets/Steps-IxXuQn0c.js","assets/index-BsqwB0qP.js","assets/Steps-mRTkp5g4.css","assets/FormRunner-CnnhHAy4.css","assets/redirect-BoOc2PeC.js","assets/asyncComputed-Dh1a8MUs.js","assets/uuid-Cz_aOlHt.js","assets/Form-TwePofFo.css"])))=>i.map(i=>d[i]);
import{c as u,a as m,_ as t,u as l}from"./jwt-decode.esm-TBTnMpAQ.js";import{u as p}from"./userStore-CKr6VRns.js";import{a as _}from"./workspaceStore-BFbr_c_Q.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]="8f4d9a1d-5a16-40ee-823a-853917ba2d85",e._sentryDebugIdIdentifier="sentry-dbid-8f4d9a1d-5a16-40ee-823a-853917ba2d85")}catch{}})();function h(){if(typeof window>"u")return null;const e=window.location.hash.match(/[#&]jwt=([^&]+)/);if(!e)return null;const a=decodeURIComponent(e[1]);return window.history.replaceState(window.history.state,"",window.location.pathname+window.location.search),a}const D=h(),w=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback-COw9MC2v.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback-IMW3zGOy.js"),__vite__mapDeps([8,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login-DumtvW0X.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-BbaUs4TQ.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-Dxvgy8lC.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-CgT_KVp5.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-BCzBkk9z.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:m("/"),routes:w,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 s=await _(a.path),{redirect:d,...c}=a.query;switch(s.status){case"ALLOWED":break;case"UNAUTHORIZED":{const n=r.email;r.removeJWT(),await e.push({name:"playerLogin",query:{...c,redirect:d||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{w as a,f as g,i as r,D as s};
//# sourceMappingURL=router-Bt-fVezd.js.map
