try{!function(){var 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]="5d56194d-5312-4bb9-a3a9-742bd9457ef4",e._sentryDebugIdIdentifier="sentry-dbid-5d56194d-5312-4bb9-a3a9-742bd9457ef4")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"28cbc1dc66f9c0573859e5be6f73dc715ff77990"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[6333],{96333:(e,d,o)=>{o.r(d),o.d(d,{default:()=>g});var n=o(96540),s=o(88934),t=o(63766),l=o(29022),a=o(79748),i=o(61841),f=o(81391),r=o(19186),c=o(37617),b=o(99728),u=o(82213),h=o(25962),p=o(74848);const g=()=>{const[e,d]=(0,i.Ay)(),{path:o}=(0,c.A)(),g=(0,f.n)("id"),w=(0,r.wz)(g,"loaded"),y=(0,r.wz)(g,"nodeCount"),A=(0,s.Zp)();(0,n.useEffect)((()=>{w&&0===y&&A(o,{replace:!0})}),[w,y,o,A]);const m=(0,b.JT)("node:Create"),x=(0,r.XA)(),T=(0,r.pr)(),N=x?.loaded?x:T,_=N?.id,[E,{onAddNodes:j,selectedNodes:k}]=(0,h.A)(_);return w?(0,p.jsxs)(l.A,{title:"Empty room",children:[(0,p.jsx)(t.Text,{children:"This room has no nodes."}),m&&(0,p.jsx)(t.Flex,{column:!0,gap:8,children:(0,p.jsxs)(t.Text,{children:["Go to"," ",(0,p.jsx)(a.A,{as:s.N_,to:`/spaces/${e}/settings/rooms/${d}?tab=nodes`,children:"room settings"})," ","and add some nodes."]})}),!N.untouchable&&(0,p.jsx)(u.A,{"data-testid":"addRoomModal-availableNodes",overflow:"hidden",showHeader:!0,roomId:_,...E,onAddNodes:j,canAddNodes:!!k.length,addNodesGA:"add-war-room-modal::click-add-node::global-view"})]}):null}}}]);