!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"d59f3e13055072acb481db3c59603d296982e8b2"};var d=(new e.Error).stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="07346799-68f0-484c-a6a0-3f81694d59b1",e._sentryDebugIdIdentifier="sentry-dbid-07346799-68f0-484c-a6a0-3f81694d59b1")}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(38429),t=o(29022),l=o(79748),r=o(61841),i=o(81391),c=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,i.n)("id"),w=(0,c.wz)(p,"loaded"),y=(0,c.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,c.XA)(),T=(0,c.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}}}]);