const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OidcLoginCallback-B0Vxdf-N.js","assets/workspaceStore-CdgowxsI.js","assets/jwt-decode.esm-X_JHyrHe.js","assets/jwt-decode-D9e-DIPp.css","assets/userStore-8KWLNEVR.js","assets/url-D2MDCvfR.js","assets/colorHelpers-D0fN4XGD.js","assets/OidcLogoutCallback-BT69t96k.js","assets/Login-BzeD7jwI.js","assets/Login.vue_vue_type_script_setup_true_lang-Deo0-Qn1.js","assets/OTPInput-DbTPNmN6.js","assets/OTPInput-C8ldH5jb.css","assets/Logo-BOGz_lsb.js","assets/Logo-D2kepPyK.css","assets/string-DXA1IHkK.js","assets/CircularLoading-BTQsHatp.js","assets/CircularLoading-BiyobKo3.css","assets/index-CpAGQ-Bl.js","assets/Login-cMuNqCbG.css","assets/Login-C1k-SC0u.css","assets/Main-DbL4zeBo.js","assets/PlayerNavbar-DHba4pN_.js","assets/metadata-BTn11SYm.js","assets/PhMagnifyingGlass.vue-BvuHcLVu.js","assets/PhWebhooksLogo.vue-7jG68_x7.js","assets/LoadingOutlined-CkwIdRXe.js","assets/PhSignOut.vue-B_gw-q_r.js","assets/index-pJ4VFbXY.js","assets/PlayerNavbar-VlEtzX8f.css","assets/Main-DqPmGmnC.css","assets/Home-w8QvIN02.js","assets/Watermark-DwCQYBZS.js","assets/constants-BpBRrK-g.js","assets/Watermark-DMbnzHiR.css","assets/PhArrowSquareOut.vue-fNcZrkRH.js","assets/index-DP71ioDC.js","assets/Home-B6UGln4L.css","assets/Error-CMWgqp1j.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang-1ypD3bda.js","assets/Error-CIbhyrKS.css","assets/Form-JLZ1at2F.js","assets/FormRunner-DbJ8vlb8.js","assets/Steps-D5sbEdud.js","assets/index-BfM2ALT1.js","assets/Steps-DqO_G9S3.css","assets/FormRunner-61-wByB6.css","assets/redirect-C2zxRBLB.js","assets/asyncComputed-CZ6DC1Cs.js","assets/uuid-D9z6_VWD.js","assets/Form-A1oa-Q46.css"])))=>i.map(i=>d[i]);
import{af as c,ag as d,ah as t,ai as m}from"./jwt-decode.esm-X_JHyrHe.js";import{a as u}from"./workspaceStore-CdgowxsI.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]="7bbb23b2-82f9-41ce-9974-7b87bbef8d04",a._sentryDebugIdIdentifier="sentry-dbid-7bbb23b2-82f9-41ce-9974-7b87bbef8d04")}catch{}})();const f=async()=>{try{const a=await fetch("/_editor/api/workspace/version");return a.ok&&(await a.json()).version||"af150eba1f6f0671b3b56452b5caa0dc66923011"}catch(a){return console.error("Failed to fetch Abstra version:",a),"af150eba1f6f0671b3b56452b5caa0dc66923011"}},p=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback-B0Vxdf-N.js"),__vite__mapDeps([0,1,2,3,4,5,6])),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback-BT69t96k.js"),__vite__mapDeps([7,1,2,3,4,5,6])),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login-BzeD7jwI.js"),__vite__mapDeps([8,9,2,3,1,4,5,6,10,11,12,13,14,15,16,17,18,19])),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>t(()=>import("./Main-DbL4zeBo.js"),__vite__mapDeps([20,21,4,2,3,1,5,6,22,23,24,25,26,27,28,29])),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>t(()=>import("./Home-w8QvIN02.js"),__vite__mapDeps([30,22,2,3,23,24,31,1,4,5,6,32,33,34,35,25,36])),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>t(()=>import("./Error-CMWgqp1j.js"),__vite__mapDeps([37,38,12,2,3,13,32,1,4,5,6,35,39])),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>t(()=>import("./Form-JLZ1at2F.js"),__vite__mapDeps([40,4,2,3,41,9,1,5,6,10,11,12,13,14,15,16,17,18,42,43,44,31,32,33,45,46,47,48,49])),meta:{hideLogin:!0}}]}],o=c({history:d("/"),routes:p,scrollBehavior(a){if(a.hash)return{el:a.hash}}}),b=a=>async(e,r)=>{if(m(e,r),e.meta.allowUnauthenticated)return;const n=await u(e.path),{redirect:i,...s}=e.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await a.push({name:"playerLogin",query:{...s,redirect:i||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(b(o));export{p as a,b,f as g,o as r};
//# sourceMappingURL=router-DRkTpj-W.js.map
