try{let 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]="18412638-6135-4d73-9ff9-4f3e178929b4",e._sentryDebugIdIdentifier="sentry-dbid-18412638-6135-4d73-9ff9-4f3e178929b4")}catch(e){}("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{}).SENTRY_RELEASE={id:"a34c67398217da8f13771210ac9af709452b2a25"};(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[5297],{95297:(e,d,o)=>{o.r(d),o.d(d,{DashboardContent:()=>I,default:()=>A});var n=o(96540),s=o(15920),a=o(96243);var t=o(93933),l=o(24609),f=o(19186),r=o(41579),i=o(67294),u=o(92726),b=o(44245),c=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,l.vt)(),n=(0,l.bq)(),s=(0,f.ID)(),a=(0,f.QW)(),t=(0,u.oj)("state"),r=(0,c.A)(d,{spaceId:o,spaceSlug:n,roomId:s,roomSlug:a});return r?(0,w.jsx)(p.A,{}):(0,w.jsx)(y.Ay,{feature:"Dashboard",dashboardId:d,children:"notAvailable"===t?(0,w.jsx)(h.A,{flavour:"dashboard"}):(0,w.jsx)(g.A,{id:d},JSON.stringify({id:d,loading:r}))})},A=(0,n.memo)((e=>{let{customDashboardId:d}=e;(0,r.A)(),(e=>{const{dashboardSlug:d=e}=(0,s.g)(),o=(0,a.Xv)(),t=(0,a.Tf)();(0,n.useEffect)((()=>{t!==d&&o(d)}),[t,d]),(0,n.useEffect)((()=>()=>o(null)),[])})(d),(0,t.z1)(d);const o=(0,u.zi)(d),l=(0,u.oj)("slug");(0,b.ZB)({title:l,id:o,destination:l,type:"dashboards",droppable:!0,droppableProps:{dashboardId:o,dropArea:!0}});const f=(0,i.RQ)();return(0,w.jsx)(I,{id:f?o:null})}))}}]);