const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OidcLoginCallback-Bd58qv7X.js","assets/workspaceStore-g7UhQYIT.js","assets/jwt-decode.esm-CjsXexhM.js","assets/jwt-decode-D9e-DIPp.css","assets/userStore-Bw4MjpFm.js","assets/url-6twnY_Oj.js","assets/colorHelpers-D6hB-JW4.js","assets/OidcLogoutCallback-C12nXez_.js","assets/Login-DJxbEvsJ.js","assets/Login.vue_vue_type_script_setup_true_lang-DecbOnZp.js","assets/OTPInput-DUwRuFDh.js","assets/OTPInput-C8ldH5jb.css","assets/Logo-C4uT0XDi.js","assets/Logo-D2kepPyK.css","assets/string-PKHR07Rt.js","assets/CircularLoading-zJy7ueLT.js","assets/CircularLoading-BiyobKo3.css","assets/index-BxKOd4WM.js","assets/Login-cMuNqCbG.css","assets/Login-C1k-SC0u.css","assets/Main-DpQgat0M.js","assets/PlayerNavbar-DYn_u0f3.js","assets/metadata-Z2kAHTJF.js","assets/PhMagnifyingGlass.vue-B2zqQ3I2.js","assets/PhWebhooksLogo.vue-BznC6cpx.js","assets/LoadingOutlined-CYI0wBKB.js","assets/PhSignOut.vue-ow11Yx0B.js","assets/index-DhcmCLIc.js","assets/PlayerNavbar-VlEtzX8f.css","assets/Main-DqPmGmnC.css","assets/Home-DJpUHUrj.js","assets/Watermark-DUJN01-3.js","assets/constants-CRBI-LWn.js","assets/Watermark-DMbnzHiR.css","assets/PhArrowSquareOut.vue-CRJaFoXc.js","assets/index-B7C6hUp1.js","assets/Home-B6UGln4L.css","assets/Error-njl0IVnT.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang-CgOmdZab.js","assets/Error-CIbhyrKS.css","assets/Form-92caBqzC.js","assets/FormRunner-C4MDj_XX.js","assets/Steps-Clw940qx.js","assets/index-6EaiBm0y.js","assets/Steps-DqO_G9S3.css","assets/FormRunner-Fkp92u0R.css","assets/redirect-Cikoz8ND.js","assets/asyncComputed-DxomlZ1Y.js","assets/uuid-DlTHe-XI.js","assets/Form-CshGBPDC.css"])))=>i.map(i=>d[i]);
import{ag as s,ah as c,ad as t,ai as m}from"./jwt-decode.esm-CjsXexhM.js";import{a as u}from"./workspaceStore-g7UhQYIT.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]="9752f23f-f71f-40ea-82e5-65e7cde4a97b",e._sentryDebugIdIdentifier="sentry-dbid-9752f23f-f71f-40ea-82e5-65e7cde4a97b")}catch{}})();const b=async()=>{try{const e=await fetch("/_editor/api/workspace/version");return e.ok&&(await e.json()).version||"1adfdcfd99585deed19bdb3882023f1842ba9c28"}catch(e){return console.error("Failed to fetch Abstra version:",e),"1adfdcfd99585deed19bdb3882023f1842ba9c28"}},p=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback-Bd58qv7X.js"),__vite__mapDeps([0,1,2,3,4,5,6])),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback-C12nXez_.js"),__vite__mapDeps([7,1,2,3,4,5,6])),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login-DJxbEvsJ.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-DpQgat0M.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-DJpUHUrj.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-njl0IVnT.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-92caBqzC.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=s({history:c("/"),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,...d}=a.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await e.push({name:"playerLogin",query:{...d,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-B3Q0SIU0.js.map
