import{e as _,N as g,r as y,n as m,f as b,g as n,q as d,x as s,v as l,s as a,a1 as v,T as u,U as f,B as w,K as p,aO as x,aV as h,as as k}from"./jwt-decode.esm-TBTnMpAQ.js";import{u as R}from"./organizationSwitcher-CHU49qr2.js";import"./router-D3FyrFLh.js";import"./ts.worker-9cx-N_QF.js";import"./organization-c9JpfAmx.js";import"./tables-BnZZliwP.js";import"./string-BWyWHyKB.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]="66de32d3-06ef-49a0-91e7-584bbda76e43",e._sentryDebugIdIdentifier="sentry-dbid-66de32d3-06ef-49a0-91e7-584bbda76e43")}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=p.translate("i18n_projectsview_loading_error"),console.error("RootRedirector failed:",t)}}return m(c),(t,B)=>(n(),b("div",D,[o.value?(n(),d(a(x),{key:0,vertical:"",align:"center",gap:16},{default:s(()=>[l(a(v),{type:"danger"},{default:s(()=>[u(f(o.value),1)]),_:1}),l(a(w),{type:"primary",onClick:c},{default:s(()=>[u(f(a(p).translate("i18n_projectsview_retry")),1)]),_:1})]),_:1})):(n(),d(a(h),{key:1,size:"large"}))]))}}),j=k(I,[["__scopeId","data-v-c1eea334"]]);export{j as default};
//# sourceMappingURL=RootRedirector-C3OXCAiv.js.map
