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]="fd24f258-54ac-48a3-8fdf-bd49e8d3d598",e._sentryDebugIdIdentifier="sentry-dbid-fd24f258-54ac-48a3-8fdf-bd49e8d3d598")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"211fba685705af0d3bd5f116a0eb09f7293a1656"}}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),f=o(61841),i=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,f.Ay)(),{path:o}=(0,c.A)(),g=(0,i.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}}}]);