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]="0d8de2c4-019c-4ca3-8a47-aae37a6ab9bc",e._sentryDebugIdIdentifier="sentry-dbid-0d8de2c4-019c-4ca3-8a47-aae37a6ab9bc")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"f4547e36230aa8f74486618baff2f1a6f3242a7f"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[5297],{95297:(e,d,a)=>{a.r(d),a.d(d,{DashboardContent:()=>I,default:()=>m});var o=a(96540),t=a(88934),n=a(96243);var s=a(93933),i=a(24609),r=a(19186),l=a(41579),f=a(67294),u=a(92726),b=a(44245),c=a(45706),p=a(1623),g=a(40910),h=a(12407),y=a(60908),w=a(74848);const I=e=>{let{id:d}=e;const a=(0,i.vt)(),o=(0,i.bq)(),t=(0,r.ID)(),n=(0,r.QW)(),s=(0,u.oj)("state"),l=(0,c.A)(d,{spaceId:a,spaceSlug:o,roomId:t,roomSlug:n});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,o.memo)((e=>{let{customDashboardId:d}=e;(0,l.A)(),(e=>{const{dashboardSlug:d=e}=(0,t.g)(),a=(0,n.Xv)(),s=(0,n.Tf)();(0,o.useEffect)((()=>{s!==d&&a(d)}),[s,d]),(0,o.useEffect)((()=>()=>a(null)),[])})(d),(0,s.z1)(d);const a=(0,u.zi)(d),i=(0,u.oj)("slug");(0,b.ZB)({title:i,id:a,destination:i,type:"dashboards",droppable:!0,droppableProps:{dashboardId:a,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?a:null})}))}}]);