File: //opt/netdata/usr/local/share/netdata/web/v3/5297.57de440e5f6cefdb7040.chunk.js
!function(){try{var d="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};d.SENTRY_RELEASE={id:"2dc1ac04d42d5596a31408e611f22d6247611f89"};var e=(new d.Error).stack;e&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[e]="a9240fb4-b9bd-4e8a-99b1-9d6ffdfed042",d._sentryDebugIdIdentifier="sentry-dbid-a9240fb4-b9bd-4e8a-99b1-9d6ffdfed042")}catch(d){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[5297],{95297(d,e,o){o.r(e),o.d(e,{DashboardContent:()=>m,default:()=>v});o(33110);var t=o(96540),a=o(41344),s=o(96243);var n=o(93933),r=o(24609),i=o(19186),l=o(41579),f=o(67294),b=o(92726),u=o(44245),c=o(45706),p=o(1623),h=o(40910),g=o(12407),y=o(60908),I=o(74848);const m=d=>{let{id:e}=d;const o=(0,r.vt)(),t=(0,r.bq)(),a=(0,i.ID)(),s=(0,i.QW)(),n=(0,b.oj)("state"),l=(0,c.A)(e,{spaceId:o,spaceSlug:t,roomId:a,roomSlug:s});return l?(0,I.jsx)(p.A,{}):(0,I.jsx)(y.Ay,{feature:"Dashboard",dashboardId:e,children:"notAvailable"===n?(0,I.jsx)(g.A,{flavour:"dashboard"}):(0,I.jsx)(h.A,{id:e},JSON.stringify({id:e,loading:l}))})},v=(0,t.memo)((d=>{let{customDashboardId:e}=d;(0,l.A)(),(d=>{const{dashboardSlug:e=d}=(0,a.g)(),o=(0,s.Xv)(),n=(0,s.Tf)();(0,t.useEffect)((()=>{n!==e&&o(e)}),[n,e]),(0,t.useEffect)((()=>()=>o(null)),[])})(e),(0,n.z1)(e);const o=(0,b.zi)(e),r=(0,b.oj)("slug");(0,u.ZB)({title:r,id:o,destination:r,type:"dashboards",droppable:!0,droppableProps:{dashboardId:o,dropArea:!0},tooltip:{title:r,description:"Custom dashboard with personalized visualizations and metrics tailored to your monitoring requirements."}});const i=(0,f.RQ)();return(0,I.jsx)(m,{id:i?o:null})}))}}]);