!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"6c5c4a21a2e48a657cc46560f5c18b469ebbf32c"};var d=(new e.Error).stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="f171587d-c4af-4b52-950a-223253a55700",e._sentryDebugIdIdentifier="sentry-dbid-f171587d-c4af-4b52-950a-223253a55700")}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),a=o(5981),s=o(32977),t=o(29022),l=o(79748),r=o(61841),c=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,r.Ay)(),{path:o}=(0,f.A)(),p=(0,c.n)("id"),w=(0,i.wz)(p,"loaded"),y=(0,i.wz)(p,"nodeCount"),A=(0,a.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)(s.Text,{children:"This room has no nodes."}),m&&(0,g.jsx)(s.Flex,{column:!0,gap:8,children:(0,g.jsxs)(s.Text,{children:["Go to"," ",(0,g.jsx)(l.A,{as:a.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}}}]);