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]="6f8e5cdc-cff8-477d-9ec5-3acf7d0a1cee",e._sentryDebugIdIdentifier="sentry-dbid-6f8e5cdc-cff8-477d-9ec5-3acf7d0a1cee")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"dd305b9a707fe1fc2ae01eb09726abafb220e121"}}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(3322),a=o(96243);var s=o(93933),i=o(24609),r=o(19186),l=o(41579),f=o(67294),c=o(92726),u=o(44245),b=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,c.oj)("state"),l=(0,b.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,c.zi)(d),i=(0,c.oj)("slug");(0,u.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})}))}}]);