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:"9085f826cfdc1d75ddfbe898ad75a9c7a36a9da7"}}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),a=o(63766),t=o(29022),l=o(79748),i=o(61841),f=o(81391),r=o(19186),c=o(37617),u=o(99728),b=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,u.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)(t.A,{title:"Empty room",children:[(0,p.jsx)(a.Text,{children:"This room has no nodes."}),m&&(0,p.jsx)(a.Flex,{column:!0,gap:8,children:(0,p.jsxs)(a.Text,{children:["Go to"," ",(0,p.jsx)(l.A,{as:s.N_,to:`/spaces/${e}/settings/rooms/${d}?tab=nodes`,children:"room settings"})," ","and add some nodes."]})}),!N.untouchable&&(0,p.jsx)(b.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}}}]);