const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OidcLoginCallback-Cv9yMWyx.js","assets/workspaceStore-DKz_ZGR-.js","assets/jwt-decode.esm-hSyeFKIL.js","assets/jwt-decode-D9e-DIPp.css","assets/userStore-DlHh7shO.js","assets/runnerData-Dx49KApG.js","assets/url-DTAzfkDe.js","assets/colorHelpers-BJr2g_c6.js","assets/OidcLogoutCallback-CFAdMqY-.js","assets/Login-Dh0ONVVB.js","assets/Login.vue_vue_type_script_setup_true_lang-CO68M3aq.js","assets/OTPInput-CjwA2ztj.js","assets/OTPInput-DkitIIgo.css","assets/Logo-D6xfsXh_.js","assets/Logo-D2kepPyK.css","assets/string-jJ6EbKQI.js","assets/CircularLoading-Cs8L9IVw.js","assets/CircularLoading-BiyobKo3.css","assets/index-CM1KiM_O.js","assets/Login-BYf3W3mQ.css","assets/Login-C1k-SC0u.css","assets/Main-CRG6a17e.js","assets/PlayerNavbar-mg8zL7hk.js","assets/metadata-B5Dn7sdV.js","assets/PhMagnifyingGlass.vue-DPPUdjHR.js","assets/PhWebhooksLogo.vue-CR1XIoSA.js","assets/LoadingOutlined-DoXug9lw.js","assets/PhSignOut.vue-DW8GI5Ag.js","assets/index-Dx8Km87P.js","assets/PlayerNavbar-VlEtzX8f.css","assets/Main-DqPmGmnC.css","assets/Home-CPmPlN2F.js","assets/Watermark-DxsyEul7.js","assets/constants-zO-p900V.js","assets/Watermark-DMbnzHiR.css","assets/PhArrowSquareOut.vue-au-lmNHu.js","assets/index-DUJP5Kos.js","assets/Home-B6UGln4L.css","assets/Error-D-rNNqIz.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang-D1-c7un-.js","assets/logo-BiWG9_W5.js","assets/Error-CIbhyrKS.css","assets/Form-DBEeKCHO.js","assets/FormRunner-BV7OZ_mi.js","assets/Steps-CJX6au4y.js","assets/index-B2IJy6ql.js","assets/Steps-DqO_G9S3.css","assets/FormRunner-Fkp92u0R.css","assets/redirect-uSy8rdhu.js","assets/asyncComputed-Cb5wd5Zz.js","assets/uuid-DTy8KIl9.js","assets/Form-CshGBPDC.css"])))=>i.map(i=>d[i]);
import{al as m,am as u,_ as t,an as l}from"./jwt-decode.esm-hSyeFKIL.js";import{u as p}from"./userStore-DlHh7shO.js";import{a as _}from"./workspaceStore-DKz_ZGR-.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]="97d818b9-888e-41c8-af6f-93e55464076f",e._sentryDebugIdIdentifier="sentry-dbid-97d818b9-888e-41c8-af6f-93e55464076f")}catch{}})();const E=async()=>{try{const e=await fetch("/_editor/api/workspace/version");return e.ok&&(await e.json()).version||"d05247871f5a36e62cd38f3391ebc805f728a7e8"}catch(e){return console.error("Failed to fetch Abstra version:",e),"d05247871f5a36e62cd38f3391ebc805f728a7e8"}},f=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback-Cv9yMWyx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback-CFAdMqY-.js"),__vite__mapDeps([8,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login-Dh0ONVVB.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-CRG6a17e.js"),__vite__mapDeps([21,22,4,2,3,1,5,6,7,23,24,25,26,27,28,29,30])),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>t(()=>import("./Home-CPmPlN2F.js"),__vite__mapDeps([31,23,2,3,24,25,32,1,4,5,6,7,33,34,35,36,26,37])),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>t(()=>import("./Error-D-rNNqIz.js"),__vite__mapDeps([38,39,40,13,2,3,14,33,1,4,5,6,7,36,41])),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>t(()=>import("./Form-DBEeKCHO.js"),__vite__mapDeps([42,4,2,3,43,10,1,5,6,7,11,12,13,14,15,16,17,18,19,44,45,46,32,33,34,47,48,49,50,51])),meta:{hideLogin:!0}}]}],i=m({history:u("/"),routes:f,scrollBehavior(e){if(e.hash)return{el:e.hash}}}),h=e=>async(a,o)=>{if(l(a,o),a.meta.allowUnauthenticated)return;const r=p();r.loadJWT();const s=await _(a.path),{redirect:c,...d}=a.query;switch(s.status){case"ALLOWED":break;case"UNAUTHORIZED":{const n=r.email;r.removeJWT(),await e.push({name:"playerLogin",query:{...d,redirect:c||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(h(i));export{f as a,h as b,E as g,i as r};
//# sourceMappingURL=router-BhJsd86p.js.map
