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]="5f0996ed-a397-4354-a7b8-cd8241ee3ee2",e._sentryDebugIdIdentifier="sentry-dbid-5f0996ed-a397-4354-a7b8-cd8241ee3ee2")}catch(e){}("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{}).SENTRY_RELEASE={id:"5d649380d18bd074b7bbfcec2ab9936055a4607a"};(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[5297],{95297:(e,d,o)=>{o.r(d),o.d(d,{DashboardContent:()=>I,default:()=>A});var a=o(96540),n=o(31362),s=o(96243);var t=o(93933),l=o(24609),r=o(19186),f=o(41579),b=o(67294),u=o(92726),i=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)(),a=(0,l.bq)(),n=(0,r.ID)(),s=(0,r.QW)(),t=(0,u.oj)("state");return(0,c.A)(d,{spaceId:o,spaceSlug:a,roomId:n,roomSlug:s})?(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})})},A=(0,a.memo)((e=>{let{customDashboardId:d}=e;(0,f.A)(),(e=>{const{dashboardSlug:d=e}=(0,n.g)(),o=(0,s.Xv)(),t=(0,s.Tf)();(0,a.useEffect)((()=>{t!==d&&o(d)}),[t,d]),(0,a.useEffect)((()=>()=>o(null)),[])})(d),(0,t.z1)(d);const o=(0,u.zi)(d),l=(0,u.oj)("slug");(0,i.ZB)({title:l,id:o,destination:l,type:"dashboards",droppable:!0,droppableProps:{dashboardId:o,dropArea:!0}});const r=(0,b.RQ)();return(0,w.jsx)(I,{id:r?o:null})}))}}]);