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