const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OidcLoginCallback-CqLzeNt6.js","assets/workspaceStore-H7tM6ZlW.js","assets/jwt-decode.esm-BUNoeFQb.js","assets/jwt-decode-UwARlUKu.css","assets/userStore-CjqST3bG.js","assets/url-Bb_9IDwT.js","assets/colorHelpers-DSfEQXub.js","assets/OidcLogoutCallback-BPWS8tBs.js","assets/Login-w3hQoTC8.js","assets/Login.vue_vue_type_script_setup_true_lang-B3zwOXIP.js","assets/CircularLoading-BAZBdPYG.js","assets/CircularLoading-C7OKHy4X.css","assets/Logo-BU2eUgbG.js","assets/Logo-D2kepPyK.css","assets/string-BfzpEcI5.js","assets/index-DiHMIDQK.js","assets/Login-cMuNqCbG.css","assets/Login-C1k-SC0u.css","assets/Main-BiLWJ4Zv.js","assets/PlayerNavbar-CII4m67i.js","assets/metadata-CykBNsw0.js","assets/PhWebhooksLogo.vue-msRLctt2.js","assets/LoadingOutlined-C0fSFaSO.js","assets/PhSignOut.vue-CCYo8py-.js","assets/index-BROuKhLS.js","assets/PlayerNavbar-VlEtzX8f.css","assets/Main-DqPmGmnC.css","assets/Home-vF8Ke3Kr.js","assets/Watermark-ZDgB7L1s.js","assets/constants-mZKqfvvE.js","assets/Watermark-DMbnzHiR.css","assets/PhArrowSquareOut.vue-DLcVaWG7.js","assets/index-D0-ndXtW.js","assets/Home-B6UGln4L.css","assets/Error-CX3LRhfn.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang-iXy0uO6n.js","assets/Error-CIbhyrKS.css","assets/Form-ClAfdjwm.js","assets/FormRunner-BE7ftWHs.js","assets/Steps-BL2GWt4w.js","assets/index-D6Z-YeHN.js","assets/Steps-DqO_G9S3.css","assets/FormRunner-61-wByB6.css","assets/redirect-C7yEFLL7.js","assets/asyncComputed-DgaL3uME.js","assets/uuid-tzkkQ6hu.js","assets/Form-BkLIfVj9.css"])))=>i.map(i=>d[i]);
import{af as s,ag as d,ah as t,ai as m}from"./jwt-decode.esm-BUNoeFQb.js";import{a as u}from"./workspaceStore-H7tM6ZlW.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]="ecc20a79-9e49-48d8-a8f8-7886e25fa30c",a._sentryDebugIdIdentifier="sentry-dbid-ecc20a79-9e49-48d8-a8f8-7886e25fa30c")}catch{}})();const b=async()=>{try{const a=await fetch("/_editor/api/workspace/version");return a.ok&&(await a.json()).version||"06a5c70a3603059b6dbca09ae6fd6a2a9cc39ff8"}catch(a){return console.error("Failed to fetch Abstra version:",a),"06a5c70a3603059b6dbca09ae6fd6a2a9cc39ff8"}},p=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback-CqLzeNt6.js"),__vite__mapDeps([0,1,2,3,4,5,6])),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback-BPWS8tBs.js"),__vite__mapDeps([7,1,2,3,4,5,6])),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login-w3hQoTC8.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-BiLWJ4Zv.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-vF8Ke3Kr.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-CX3LRhfn.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-ClAfdjwm.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=s({history:d("/"),routes:p,scrollBehavior(a){if(a.hash)return{el:a.hash}}}),l=a=>async(e,r)=>{if(m(e,r),e.meta.allowUnauthenticated)return;const n=await u(e.path),{redirect:c,...i}=e.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await a.push({name:"playerLogin",query:{...i,redirect:c||e.path},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"}})}};o.beforeEach(l(o));export{p as a,l as b,b as g,o as r};
//# sourceMappingURL=router-n2iijWe0.js.map
