!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"95b7c22eb8a2502481fe65c08f3bb8d7c317f943"};var d=(new e.Error).stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="4f96a2a2-7a07-4bb0-954e-ba572d45d0a8",e._sentryDebugIdIdentifier="sentry-dbid-4f96a2a2-7a07-4bb0-954e-ba572d45d0a8")}catch(e){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[6333],{96333(e,d,o){o.r(d),o.d(d,{default:()=>w});var n=o(96540),a=o(5981),s=o(11759),t=o(29022),l=o(79748),r=o(61841),i=o(81391),c=o(19186),b=o(37617),f=o(99728),u=o(82213),h=o(25962),g=o(15750),p=o(74848);const w=()=>{const[e,d]=(0,r.Ay)(),o=(0,g.A)(),{path:w}=(0,b.A)(),A=(0,i.n)("id"),y=(0,c.wz)(A,"loaded"),m=(0,c.wz)(A,"nodeCount"),x=(0,a.Zp)();(0,n.useEffect)(()=>{y&&0===m&&x(w,{replace:!0})},[y,m,w,x]);const T=(0,f.JT)("node:Create"),N=(0,c.XA)(),_=(0,c.pr)(),E=N?.loaded?N:_,j=E?.id,[k,{onAddNodes:v,selectedNodes:I}]=(0,h.A)(j);return y?(0,p.jsxs)(t.A,{title:"Empty room",children:[(0,p.jsx)(s.Text,{children:"This room has no nodes."}),T&&(0,p.jsx)(s.Flex,{column:!0,gap:8,children:(0,p.jsxs)(s.Text,{children:["Go to"," ",(0,p.jsx)(l.A,{as:a.N_,to:o(`/spaces/${e}/settings/rooms/${d}?tab=nodes`),children:"room settings"})," ","and add some nodes."]})}),!E.untouchable&&(0,p.jsx)(u.A,{"data-testid":"addRoomModal-availableNodes",overflow:"hidden",showHeader:!0,roomId:j,...k,onAddNodes:v,canAddNodes:!!I.length,addNodesGA:"add-war-room-modal::click-add-node::global-view"})]}):null}}}]);