try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},d=(new e.Error).stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="15cc242c-8fde-4aab-800c-a0ec96481a18",e._sentryDebugIdIdentifier="sentry-dbid-15cc242c-8fde-4aab-800c-a0ec96481a18")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"f4547e36230aa8f74486618baff2f1a6f3242a7f"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[6333],{96333:(e,d,o)=>{o.r(d),o.d(d,{default:()=>g});var n=o(96540),a=o(88934),s=o(86177),t=o(29022),l=o(79748),f=o(61841),c=o(81391),i=o(19186),r=o(37617),u=o(99728),b=o(82213),h=o(25962),p=o(74848);const g=()=>{const[e,d]=(0,f.Ay)(),{path:o}=(0,r.A)(),g=(0,c.n)("id"),w=(0,i.wz)(g,"loaded"),y=(0,i.wz)(g,"nodeCount"),A=(0,a.Zp)();(0,n.useEffect)((()=>{w&&0===y&&A(o,{replace:!0})}),[w,y,o,A]);const m=(0,u.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,p.jsxs)(t.A,{title:"Empty room",children:[(0,p.jsx)(s.Text,{children:"This room has no nodes."}),m&&(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:`/spaces/${e}/settings/rooms/${d}?tab=nodes`,children:"room settings"})," ","and add some nodes."]})}),!N.untouchable&&(0,p.jsx)(b.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}}}]);