!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"b822131a7726f932fb1cd592a409834835333014"};var d=(new e.Error).stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="ab7b80b3-be5a-4fb8-ad8f-0110397457af",e._sentryDebugIdIdentifier="sentry-dbid-ab7b80b3-be5a-4fb8-ad8f-0110397457af")}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(56327),t=o(29022),l=o(79748),r=o(61841),i=o(81391),b=o(19186),c=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,c.A)(),A=(0,i.n)("id"),y=(0,b.wz)(A,"loaded"),m=(0,b.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,b.XA)(),_=(0,b.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}}}]);