const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OidcLoginCallback-ImJF6vXk.js","assets/workspaceStore-QlTT1mu8.js","assets/jwt-decode.esm-CX61wVx3.js","assets/jwt-decode-CdmGSo_w.css","assets/userStore-C3Z0vN5p.js","assets/runnerData-B4AKypWD.js","assets/url-D1jI6Lt8.js","assets/colorHelpers-Dde0Xcnl.js","assets/OidcLogoutCallback-DVf7cYG-.js","assets/Login-CsZ_y5Q1.js","assets/Login.vue_vue_type_script_setup_true_lang-n0L6Qcmz.js","assets/OTPInput-2Iwi2IQF.js","assets/OTPInput-qNB7hs7A.css","assets/Logo-Dr2w7cZG.js","assets/Logo-D2kepPyK.css","assets/string-BfaOmKtt.js","assets/CircularLoading-CjXNFRbA.js","assets/CircularLoading-BiyobKo3.css","assets/index-BOb0Rqlm.js","assets/Login-160lG_Us.css","assets/Login-CZk6til5.css","assets/Main-D6lmAl57.js","assets/PlayerNavbar-BcuQYvPw.js","assets/metadata-Dox04t5g.js","assets/PhWebhooksLogo.vue-CkLqDVcc.js","assets/PhHouse.vue-CqaxhGyx.js","assets/PhMagnifyingGlass.vue-C4JZlKTc.js","assets/LoadingOutlined-CVkBHrpy.js","assets/PhSignOut.vue-BJ-022M3.js","assets/index-DhpJ3FpU.js","assets/PlayerNavbar-DAUZYUrK.css","assets/Main-BUjGuAbV.css","assets/Home-_aY3wtod.js","assets/Watermark-D2zHvRKy.js","assets/constants-B5rys1IL.js","assets/Watermark-FpIQf6fA.css","assets/PageStageView-CnyrhD6f.js","assets/linkInterceptor-DeEo1UFM.js","assets/PageStageView-dZcfz7zQ.css","assets/PhArrowSquareOut.vue-B9YappLN.js","assets/index-GnIaed8S.js","assets/Home-DsecMB7k.css","assets/Error-BLJ5cCMo.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang-BP-78XpT.js","assets/logo-BiWG9_W5.js","assets/Error-CMMfmtHe.css","assets/Form-C45CCnAb.js","assets/FormRunner-NOflDnsh.js","assets/Steps-DIKAUVhl.js","assets/index-Bzb3KREU.js","assets/Steps-BkM3gtYI.css","assets/FormRunner-ByxKrXSo.css","assets/redirect-t55MhdYq.js","assets/asyncComputed-CygEe1bN.js","assets/uuid-DcrfRJI8.js","assets/Form-CrBgkN5S.css"])))=>i.map(i=>d[i]);
import{c as u,a as m,_ as t,u as l}from"./jwt-decode.esm-CX61wVx3.js";import{u as p}from"./userStore-C3Z0vN5p.js";import{a as _}from"./workspaceStore-QlTT1mu8.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-ImJF6vXk.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback-DVf7cYG-.js"),__vite__mapDeps([8,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login-CsZ_y5Q1.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-D6lmAl57.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-_aY3wtod.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-BLJ5cCMo.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-C45CCnAb.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-XYEQzGpi.js.map
