!function(){try{var d="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};d.SENTRY_RELEASE={id:"95b7c22eb8a2502481fe65c08f3bb8d7c317f943"};var e=(new d.Error).stack;e&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[e]="aa6712f5-307c-4490-b5ad-94e9cafa6848",d._sentryDebugIdIdentifier="sentry-dbid-aa6712f5-307c-4490-b5ad-94e9cafa6848")}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),c=a(96957),f=a(44245),h=a(45706),g=a(1623),p=a(50529),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,c.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,c.zi)(e),o=(0,c.oj)("slug");(0,f.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"})}}]);