!function(){try{var d="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};d.SENTRY_RELEASE={id:"d1c7ac46f068d62cb709fcb0a5f45d31b06ca6ae"};var e=(new d.Error).stack;e&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[e]="d1b6a1bb-1dff-4140-a36e-b865953a1910",d._sentryDebugIdIdentifier="sentry-dbid-d1b6a1bb-1dff-4140-a36e-b865953a1910")}catch(d){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[5297],{95297(d,e,a){a.r(e),a.d(e,{DashboardContent:()=>A,default:()=>m});a(33110);var o=a(96540),t=a(5981),s=a(96243);const n=d=>{const{dashboardSlug:e=d}=(0,t.g)(),a=(0,s.Xv)(),n=(0,s.Tf)();return(0,o.useEffect)(()=>{n!==e&&a(e)},[n,e]),(0,o.useEffect)(()=>()=>a(null),[]),e};a.dn(n);var r=a(93933),i=a(24609),l=a(19186),b=a(41579),u=a(67294),f=a(96957),c=a(44245),h=a(88314),g=a(1623),p=a(41388),y=a(12407),I=a(60908),v=a(74848);const A=d=>{let{id:e}=d;const a=(0,i.vt)(),o=(0,i.bq)(),t=(0,l.ID)(),s=(0,l.QW)(),n=(0,f.oj)("state"),r=(0,h.A)(e,{spaceId:a,spaceSlug:o,roomId:t,roomSlug:s});return r?(0,v.jsx)(g.A,{}):(0,v.jsx)(I.Ay,{feature:"Dashboard",dashboardId:e,children:"notAvailable"===n?(0,v.jsx)(y.A,{flavour:"dashboard"}):(0,v.jsx)(p.A,{id:e},JSON.stringify({id:e,loading:r}))})},m=(0,o.memo)(d=>{let{customDashboardId:e}=d;(0,b.A)(),n(e),(0,r.z1)(e);const a=(0,f.zi)(e),o=(0,f.oj)("slug");(0,c.ZB)({title:o,id:a,destination:o,type:"dashboards",droppable:!0,droppableProps:{dashboardId:a,dropArea:!0},tooltip:{title:o,description:"Custom dashboard with personalized visualizations and metrics tailored to your monitoring requirements."}});const t=(0,u.RQ)();return(0,v.jsx)(A,{id:t?a:null})})},1623(d,e,a){a.d(e,{A:()=>s});var o=a(63474),t=a(74848);const s=()=>(0,t.jsx)(o.O2,{"data-testid":"dashboardLoading"})}}]);