import{e as _,aj as g,r as y,W as m,f as w,g as n,n as d,w as s,v as l,p as a,T as b,q as u,t as p,B as v,l as f,H as h,bh as k,aQ as x}from"./jwt-decode.esm-Dwzi-xky.js";import{u as R}from"./organizationSwitcher-Dl5BkV4z.js";import"./router-CZGZsUNM.js";import"./ts.worker-BTEkdIk9.js";import"./organization-Bjr_5SWS.js";import"./tables-BzIobYTO.js";import"./string-D_xS1NtB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="142106a7-8990-403c-921b-d599912a9901",e._sentryDebugIdIdentifier="sentry-dbid-142106a7-8990-403c-921b-d599912a9901")}catch{}})();const D={class:"loading-container"},I=_({__name:"RootRedirector",setup(e){const r=R(),i=g(),o=y(null);async function c(){o.value=null;try{const t=await r.selectDefaultOrganization();t.name==="onboarding"?window.location.href="/onboarding":i.replace(t)}catch(t){o.value=f.translate("i18n_projectsview_loading_error"),console.error("RootRedirector failed:",t)}}return m(c),(t,B)=>(n(),w("div",D,[o.value?(n(),d(a(h),{key:0,vertical:"",align:"center",gap:16},{default:s(()=>[l(a(b),{type:"danger"},{default:s(()=>[u(p(o.value),1)]),_:1}),l(a(v),{type:"primary",onClick:c},{default:s(()=>[u(p(a(f).translate("i18n_projectsview_retry")),1)]),_:1})]),_:1})):(n(),d(a(k),{key:1,size:"large"}))]))}}),O=x(I,[["__scopeId","data-v-c1eea334"]]);export{O as default};
//# sourceMappingURL=RootRedirector-DcHkpDHM.js.map
