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:"28cbc1dc66f9c0573859e5be6f73dc715ff77990"}}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),s=o(96243);var a=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)(),s=(0,r.QW)(),a=(0,b.oj)("state"),l=(0,u.A)(d,{spaceId:o,spaceSlug:t,roomId:n,roomSlug:s});return l?(0,w.jsx)(p.A,{}):(0,w.jsx)(y.Ay,{feature:"Dashboard",dashboardId:d,children:"notAvailable"===a?(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,s.Xv)(),a=(0,s.Tf)();(0,t.useEffect)((()=>{a!==d&&o(d)}),[a,d]),(0,t.useEffect)((()=>()=>o(null)),[])})(d),(0,a.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})}))}}]);