const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OidcLoginCallback-DzVSpKPY.js","assets/workspaceStore-DsextT5f.js","assets/jwt-decode.esm-CcQ3pRvv.js","assets/jwt-decode-D9e-DIPp.css","assets/userStore-C8pIzp5O.js","assets/runnerData-758W1Y4X.js","assets/url-CpkKDaxC.js","assets/colorHelpers-iX7tsD3g.js","assets/OidcLogoutCallback-7pzjDKR4.js","assets/Login-cZRcU6sD.js","assets/Login.vue_vue_type_script_setup_true_lang-C-Y0cPMJ.js","assets/OTPInput-_8yzLLM0.js","assets/OTPInput-DkitIIgo.css","assets/Logo-nfOvPJmH.js","assets/Logo-D2kepPyK.css","assets/string-Bh1XBwdI.js","assets/CircularLoading--v0rwskS.js","assets/CircularLoading-BiyobKo3.css","assets/index-DAyi3Wsy.js","assets/Login-BYf3W3mQ.css","assets/Login-C1k-SC0u.css","assets/Main-Bs698OQ-.js","assets/PlayerNavbar-D39jsXO7.js","assets/metadata-t0SN_H0H.js","assets/PhMagnifyingGlass.vue-B09ICh9t.js","assets/PhWebhooksLogo.vue-BNSvLsSK.js","assets/LoadingOutlined-V2SGROwZ.js","assets/PhSignOut.vue-DDAay6Lz.js","assets/index-B8Ao-sZZ.js","assets/PlayerNavbar-VlEtzX8f.css","assets/Main-DqPmGmnC.css","assets/Home-BI9RYhp6.js","assets/Watermark--okJ716T.js","assets/constants-peN43IX4.js","assets/Watermark-DMbnzHiR.css","assets/PhArrowSquareOut.vue-BD3fCMvK.js","assets/index-Dd5qxh4Q.js","assets/Home-B6UGln4L.css","assets/Error-BXBtt-K2.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang-DVBfpuSn.js","assets/logo-BiWG9_W5.js","assets/Error-CIbhyrKS.css","assets/Form-BlVyt35y.js","assets/FormRunner-DKzShMAS.js","assets/Steps-B9K9fwUV.js","assets/index-FHfOYoE5.js","assets/Steps-DqO_G9S3.css","assets/FormRunner-Fkp92u0R.css","assets/redirect-nJa2boxr.js","assets/asyncComputed-VbQnPyCS.js","assets/uuid-DbONSdcu.js","assets/Form-CshGBPDC.css"])))=>i.map(i=>d[i]);
import{al as d,am as u,_ as t,an as l}from"./jwt-decode.esm-CcQ3pRvv.js";import{u as p}from"./userStore-C8pIzp5O.js";import{a as b}from"./workspaceStore-DsextT5f.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="c0adc9b3-17f0-4946-b0cc-f8aa549acfaa",a._sentryDebugIdIdentifier="sentry-dbid-c0adc9b3-17f0-4946-b0cc-f8aa549acfaa")}catch{}})();const E=async()=>{try{const a=await fetch("/_editor/api/workspace/version");return a.ok&&(await a.json()).version||"54bbfc1022bc2b076f313bc6f155bf38b97b1a37"}catch(a){return console.error("Failed to fetch Abstra version:",a),"54bbfc1022bc2b076f313bc6f155bf38b97b1a37"}},_=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback-DzVSpKPY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback-7pzjDKR4.js"),__vite__mapDeps([8,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login-cZRcU6sD.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-Bs698OQ-.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-BI9RYhp6.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-BXBtt-K2.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-BlVyt35y.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}}]}],c=d({history:u("/"),routes:_,scrollBehavior(a){if(a.hash)return{el:a.hash}}}),f=a=>async(e,o)=>{if(l(e,o),e.meta.allowUnauthenticated)return;const r=p();r.loadJWT();const i=await b(e.path),{redirect:s,...m}=e.query;switch(i.status){case"ALLOWED":break;case"UNAUTHORIZED":{const n=r.email;r.removeJWT(),await a.push({name:"playerLogin",query:{...m,redirect:s||e.path,reauth:n?"true":void 0,email:n||void 0},params:e.params});break}case"NOT_FOUND":await a.push({name:"error",params:{status:"404"}});break;default:await a.push({name:"error",params:{status:"403"}})}};c.beforeEach(f(c));export{_ as a,f as b,E as g,c as r};
//# sourceMappingURL=router-BedxZkBB.js.map
