!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"e1389b29a88a178b657c7ee0929bea19c58ceb8c"};var d=(new e.Error).stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="c56b494e-07cf-4edf-a2b1-dfd359fa07c9",e._sentryDebugIdIdentifier="sentry-dbid-c56b494e-07cf-4edf-a2b1-dfd359fa07c9")}catch(e){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[6333],{96333(e,d,o){o.r(d),o.d(d,{default:()=>p});var n=o(96540),s=o(76667),a=o(73777),t=o(29022),l=o(79748),c=o(61841),r=o(81391),i=o(19186),f=o(37617),b=o(99728),u=o(82213),h=o(25962),g=o(74848);const p=()=>{const[e,d]=(0,c.Ay)(),{path:o}=(0,f.A)(),p=(0,r.n)("id"),w=(0,i.wz)(p,"loaded"),y=(0,i.wz)(p,"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,i.XA)(),T=(0,i.pr)(),N=x?.loaded?x:T,_=N?.id,[E,{onAddNodes:j,selectedNodes:k}]=(0,h.A)(_);return w?(0,g.jsxs)(t.A,{title:"Empty room",children:[(0,g.jsx)(a.Text,{children:"This room has no nodes."}),m&&(0,g.jsx)(a.Flex,{column:!0,gap:8,children:(0,g.jsxs)(a.Text,{children:["Go to"," ",(0,g.jsx)(l.A,{as:s.N_,to:`/spaces/${e}/settings/rooms/${d}?tab=nodes`,children:"room settings"})," ","and add some nodes."]})}),!N.untouchable&&(0,g.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}}}]);