!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"161df38a3ce485b0993d5667ea290f6097b8818b"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ea43f49a-6ab0-45cb-82f9-d2ce8e38976a",e._sentryDebugIdIdentifier="sentry-dbid-ea43f49a-6ab0-45cb-82f9-d2ce8e38976a")}catch(e){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[8723],{78723(e,t,n){n.r(t),n.d(t,{default:()=>r});n(98992),n(54520),n(81454),n(25509),n(65223),n(60321),n(41927),n(11632),n(64377),n(66771),n(12516),n(68931),n(52514),n(35694),n(52774),n(49536),n(21926),n(94483),n(16215);var o=n(96540),s=n(38429),d=n(85660),a=n(82276),l=n(25219),i=n(74848);const r=(0,o.memo)(e=>{let{topologyGraph:t,topologyActorRows:n,presentation:r,filterKey:f}=e;const[c,u]=(0,o.useState)(null),[g,h]=(0,o.useState)(""),[b,p]=(0,o.useState)(""),[k,{height:y}]=(0,d.A)(),x=Math.max(300,y-8),{nodes:w=[],links:m=[],aggregatedLinks:I}=t||{},L=(0,o.useMemo)(()=>new Set((n||[]).map(e=>e.id)),[n]),S=(0,o.useMemo)(()=>n?w.filter(e=>L.has(e.id)):w,[w,L,n]),_=(0,o.useMemo)(()=>n?m.filter(e=>L.has(e.source)&&L.has(e.target)):m,[m,L,n]);return S.length?(0,i.jsxs)(s.Flex,{ref:k,flex:!0,column:!0,overflow:"hidden",children:[(0,i.jsx)(a.A,{nodes:S,links:_,portStateLinks:m,selectedNodeId:g,selectedLinkId:b,height:x,filterKey:f,presentation:r,onNodeClick:e=>{h(e.id),p(""),u(e.id)},onLinkClick:e=>{p(e.id),h("")}}),!!c&&(0,i.jsx)(l.A,{actorId:c,graphNodes:w,graphLinks:m,aggregatedLinks:I,allLinks:m,presentation:r,onClose:()=>u(null)})]}):(0,i.jsx)(s.Flex,{flex:!0,alignItems:"center",justifyContent:"center",children:(0,i.jsx)(s.Text,{color:"textLite",children:"No topology data"})})})}}]);