The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
import{u as o,g as n,l as a,j as s}from"./BKFspo1J.js";import{p as g}from"./F6fhTWnB.js";import{a as u,p as h,i as c}from"./BrdmM8Kw.js";import{a as e}from"./h7yRWCtK.js";function d(i){return i==="/organization"||i.startsWith("/organization/")}function C(i,t){return`${i}?organizationId=${t}`}class z{#t=o(()=>d(g.url.pathname));get active(){return n(this.#t)}set active(t){a(this.#t,t)}#n=o(()=>{if(!this.active)return null;const t=Number(g.url.searchParams.get("organizationId"));return Number.isInteger(t)&&e.organizations.some(r=>r.id===t)?t:e.organizations[0]?.id??null});get organizationId(){return n(this.#n)}set organizationId(t){a(this.#n,t)}#a=o(()=>e.organizations.find(t=>t.id===this.organizationId)??null);get organization(){return n(this.#a)}set organization(t){a(this.#a,t)}#o=o(()=>this.organizationId===null?[]:h.projects.filter(t=>t.organizationId===this.organizationId));get projects(){return n(this.#o)}set projects(t){a(this.#o,t)}#i=o(()=>this.projects.some(t=>c(t.framework)));get hasBackendProjects(){return n(this.#i)}set hasBackendProjects(t){a(this.#i,t)}#r=o(()=>this.organizationId!==null&&e.canManageOrganization(this.organizationId));get canManage(){return n(this.#r)}set canManage(t){a(this.#r,t)}#e=s(0);get openPagesCount(){return n(this.#e)}set openPagesCount(t){a(this.#e,t,!0)}#s=s(0);get downMonitorsCount(){return n(this.#s)}set downMonitorsCount(t){a(this.#s,t,!0)}async refreshCounts(t){try{const r=await u.get(`/organizations/${t}/overview/counts`);if(this.organizationId!==t)return;this.openPagesCount=r.openPagesCount??0,this.downMonitorsCount=r.downMonitorsCount??0}catch{return}}}const I=new z;export{C as a,d as i,I as o};