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