const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OidcLoginCallback-K94YYU8V.js","assets/workspaceStore-CeNiHwH_.js","assets/jwt-decode.esm-Dw_OlTCW.js","assets/jwt-decode-D9e-DIPp.css","assets/userStore-4FpRPoeM.js","assets/runnerData-DZ54UJZ3.js","assets/url-vGC2YsRB.js","assets/colorHelpers-Chvd75S3.js","assets/OidcLogoutCallback-lkyK9RaC.js","assets/Login-DV9E_0mO.js","assets/Login.vue_vue_type_script_setup_true_lang-BhhCxcTK.js","assets/OTPInput-BNXizKEV.js","assets/OTPInput-DkitIIgo.css","assets/Logo-CecBL509.js","assets/Logo-D2kepPyK.css","assets/string-BuQ9zSDy.js","assets/CircularLoading-KIKDgvZr.js","assets/CircularLoading-BiyobKo3.css","assets/index-4hy9Zjs6.js","assets/Login-BYf3W3mQ.css","assets/Login-C1k-SC0u.css","assets/Main-BEbOTCZd.js","assets/PlayerNavbar-D7ITQOqs.js","assets/metadata-vgMtKcWz.js","assets/PhMagnifyingGlass.vue-7kNaqZFQ.js","assets/PhWebhooksLogo.vue-BZ5oEMJy.js","assets/LoadingOutlined-Du0iiSbv.js","assets/PhSignOut.vue-DXIoBRl-.js","assets/index-CKBppVEa.js","assets/PlayerNavbar-VlEtzX8f.css","assets/Main-DqPmGmnC.css","assets/Home-DjUOJR__.js","assets/Watermark-Bo0Yk0E7.js","assets/constants-DtajWhvQ.js","assets/Watermark-DMbnzHiR.css","assets/PhArrowSquareOut.vue-B__lN4s3.js","assets/index-FhuFwKwr.js","assets/Home-B6UGln4L.css","assets/Error-kRSRWfUb.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang--TrSji4U.js","assets/logo-BiWG9_W5.js","assets/Error-CIbhyrKS.css","assets/Form-IBZYXdAi.js","assets/FormRunner-DxuG_5gW.js","assets/Steps-BcOsmBCT.js","assets/index--PNRck0c.js","assets/Steps-DqO_G9S3.css","assets/FormRunner-Fkp92u0R.css","assets/redirect-BlXxmFll.js","assets/asyncComputed-3zrnCYug.js","assets/uuid-uY6ajUFo.js","assets/Form-CshGBPDC.css"])))=>i.map(i=>d[i]);
import{ah as m,ai as u,_ as t,aj as l}from"./jwt-decode.esm-Dw_OlTCW.js";import{u as p}from"./userStore-4FpRPoeM.js";import{a as _}from"./workspaceStore-CeNiHwH_.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]="3fc51496-49dd-40a4-b6c4-b3f580cb4624",e._sentryDebugIdIdentifier="sentry-dbid-3fc51496-49dd-40a4-b6c4-b3f580cb4624")}catch{}})();const E=async()=>{try{const e=await fetch("/_editor/api/workspace/version");return e.ok&&(await e.json()).version||"dc5c5a98c51e41440f1affe4334b0332cfbcc866"}catch(e){return console.error("Failed to fetch Abstra version:",e),"dc5c5a98c51e41440f1affe4334b0332cfbcc866"}},f=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback-K94YYU8V.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback-lkyK9RaC.js"),__vite__mapDeps([8,1,2,3,4,5,6,7])),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login-DV9E_0mO.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-BEbOTCZd.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-DjUOJR__.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-kRSRWfUb.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-IBZYXdAi.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=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 i=await _(a.path),{redirect:s,...d}=a.query;switch(i.status){case"ALLOWED":break;case"UNAUTHORIZED":{const n=r.email;r.removeJWT(),await e.push({name:"playerLogin",query:{...d,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"}})}};c.beforeEach(h(c));export{f as a,h as b,E as g,c as r};
//# sourceMappingURL=router-EePVc0Jw.js.map
