The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
import"../chunks/DsnmJJEf.js";import{p as B,b as C,g as f,u as T,c as i,f as c,d as s,a as Y,e as N,h as D,r as F,s as G}from"../chunks/BKFspo1J.js";import{i as g}from"../chunks/COK9M2N0.js";import{p as l}from"../chunks/F6fhTWnB.js";import{p}from"../chunks/BrdmM8Kw.js";import{o as n,a as _}from"../chunks/CEtbXsMu.js";import{g as j}from"../chunks/BHvJp7nu.js";import{L as K}from"../chunks/CN84UmjY.js";import{E as I}from"../chunks/Cyk_em_h.js";var O=N('<div class="flex h-48 items-center justify-center"><!></div>');function Z(S,u){B(u,!0);const d={overview:"/organization",issues:"/organization/issues",monitors:"/organization/monitors",projects:"/organization/projects"},b=new Set(["/organization","/organization/monitors"]),m=T(()=>{const a=n.organizationId;if(a===null||!p.loaded)return null;const r=n.projects;if(r.length===1)return`/?projectId=${r[0].id}`;const e=l.url.searchParams.get("tab");return e&&d[e]?_(d[e],a):r.length>0&&!n.hasBackendProjects&&b.has(l.url.pathname)?_("/organization/issues",a):null});C(()=>{const a=n.organizationId;if(a===null||!p.loaded)return;if(f(m)){j(f(m),{replaceState:!0});return}const r=l.url.searchParams;if(r.get("organizationId")===String(a)&&!r.has("projectId")&&!r.has("tab"))return;const e=new URL(l.url);e.searchParams.set("organizationId",String(a)),e.searchParams.delete("projectId"),e.searchParams.delete("tab"),j(e.pathname+e.search,{replaceState:!0,noScroll:!0,keepFocus:!0})});var h=i(),P=c(h);{var y=a=>{var r=O(),e=D(r);K(e,{size:"xlg"}),F(r),s(a,r)},L=a=>{var r=i(),e=c(r);{var x=t=>{I(t,{message:"You are not a member of any organization yet."})},A=t=>{var v=i(),E=c(v);{var H=o=>{I(o,{message:"This organization has no projects yet."})},k=o=>{var z=i(),w=c(z);G(w,()=>u.children),s(o,z)};g(E,o=>{n.projects.length===0?o(H):o(k,!1)},!0)}s(t,v)};g(e,t=>{n.organizationId===null?t(x):t(A,!1)},!0)}s(a,r)};g(P,a=>{!p.loaded||f(m)?a(y):a(L,!1)})}s(S,h),Y()}export{Z as component};