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:"9d662ef6f51428cedd2ad1624c18a68882fcbb5b"};(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),t=o(96243);var a=o(93933),l=o(24609),f=o(19186),r=o(41579),i=o(67294),b=o(92726),u=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)(),t=(0,f.QW)(),a=(0,b.oj)("state"),r=(0,c.A)(d,{spaceId:o,spaceSlug:n,roomId:s,roomSlug:t});return r?(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:r}))})},A=(0,n.memo)((e=>{let{customDashboardId:d}=e;(0,r.A)(),(e=>{const{dashboardSlug:d=e}=(0,s.g)(),o=(0,t.Xv)(),a=(0,t.Tf)();(0,n.useEffect)((()=>{a!==d&&o(d)}),[a,d]),(0,n.useEffect)((()=>()=>o(null)),[])})(d),(0,a.z1)(d);const o=(0,b.zi)(d),l=(0,b.oj)("slug");(0,u.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})}))}}]);