const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OidcLoginCallback-D0MyIz4S.js","assets/workspaceStore-CxI4z2Un.js","assets/jwt-decode.esm-YEVrUTAA.js","assets/jwt-decode-UwARlUKu.css","assets/userStore-CYU-uuhk.js","assets/url-CnY6-HxI.js","assets/colorHelpers-DZp9i1b6.js","assets/OidcLogoutCallback-BvRZy__s.js","assets/Login-DEIK11KQ.js","assets/Login.vue_vue_type_script_setup_true_lang-BG1a9nWa.js","assets/CircularLoading-Dmu9yJTK.js","assets/CircularLoading-C7OKHy4X.css","assets/Logo-yGDZGN0q.js","assets/Logo-D2kepPyK.css","assets/string-s2wjhytJ.js","assets/index-iMEvIcQh.js","assets/Login-cMuNqCbG.css","assets/Login-C1k-SC0u.css","assets/Main-DMQ44jz9.js","assets/PlayerNavbar-OecDw-7n.js","assets/metadata-Dyp8raN_.js","assets/PhWebhooksLogo.vue-Wj_CTmR0.js","assets/LoadingOutlined-DlQ6wPP-.js","assets/PhSignOut.vue-BJs0XyDe.js","assets/index-geemuUzM.js","assets/PlayerNavbar-VlEtzX8f.css","assets/Main-DqPmGmnC.css","assets/Home-CSTZMLiG.js","assets/Watermark-5h4Da2X6.js","assets/constants-CEaJrMPk.js","assets/Watermark-DMbnzHiR.css","assets/PhArrowSquareOut.vue-BxY7xUhR.js","assets/index-BE3s89un.js","assets/Home-B6UGln4L.css","assets/Error-DViDGRxs.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang-BeLnUXyC.js","assets/Error-CIbhyrKS.css","assets/Form-DIlW18_J.js","assets/FormRunner-DOz7ml7V.js","assets/Steps-C-ts0ULv.js","assets/index-fvgBKPlR.js","assets/Steps-DqO_G9S3.css","assets/FormRunner-61-wByB6.css","assets/redirect-BYVxjXyV.js","assets/asyncComputed-BhcJ4riO.js","assets/uuid-BDGDRyvL.js","assets/Form-BkLIfVj9.css"])))=>i.map(i=>d[i]);
import{af as c,ag as d,ah as t,ai as m}from"./jwt-decode.esm-YEVrUTAA.js";import{a as u}from"./workspaceStore-CxI4z2Un.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]="72c588c4-3ae1-4e25-af83-96ef48d43fed",e._sentryDebugIdIdentifier="sentry-dbid-72c588c4-3ae1-4e25-af83-96ef48d43fed")}catch{}})();const b=async()=>{try{const e=await fetch("/_editor/api/workspace/version");return e.ok&&(await e.json()).version||"ed56f14910763205624135eb67f7671aefbcab1e"}catch(e){return console.error("Failed to fetch Abstra version:",e),"ed56f14910763205624135eb67f7671aefbcab1e"}},p=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback-D0MyIz4S.js"),__vite__mapDeps([0,1,2,3,4,5,6])),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback-BvRZy__s.js"),__vite__mapDeps([7,1,2,3,4,5,6])),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login-DEIK11KQ.js"),__vite__mapDeps([8,9,2,3,1,4,5,6,10,11,12,13,14,15,16,17])),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>t(()=>import("./Main-DMQ44jz9.js"),__vite__mapDeps([18,19,4,2,3,1,5,6,20,21,22,23,24,25,26])),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>t(()=>import("./Home-CSTZMLiG.js"),__vite__mapDeps([27,20,2,3,21,28,1,4,5,6,29,30,31,32,22,33])),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>t(()=>import("./Error-DViDGRxs.js"),__vite__mapDeps([34,35,12,2,3,13,29,1,4,5,6,32,36])),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>t(()=>import("./Form-DIlW18_J.js"),__vite__mapDeps([37,4,2,3,38,9,1,5,6,10,11,12,13,14,15,16,39,40,41,28,29,30,42,43,44,45,46])),meta:{hideLogin:!0}}]}],o=c({history:d("/"),routes:p,scrollBehavior(e){if(e.hash)return{el:e.hash}}}),l=e=>async(a,r)=>{if(m(a,r),a.meta.allowUnauthenticated)return;const n=await u(a.path),{redirect:i,...s}=a.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await e.push({name:"playerLogin",query:{...s,redirect:i||a.path},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"}})}};o.beforeEach(l(o));export{p as a,l as b,b as g,o as r};
//# sourceMappingURL=router-BXeAin75.js.map
