!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"e1389b29a88a178b657c7ee0929bea19c58ceb8c"};var o=(new e.Error).stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="9a76cf7b-f78e-40ae-979a-c91b07dc08a7",e._sentryDebugIdIdentifier="sentry-dbid-9a76cf7b-f78e-40ae-979a-c91b07dc08a7")}catch(e){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[8723],{78723(e,o,t){t.r(o),t.d(o,{default:()=>c});t(98992),t(54520),t(81454),t(25509),t(65223),t(60321),t(41927),t(11632),t(64377),t(66771),t(12516),t(68931),t(52514),t(35694),t(52774),t(49536),t(21926),t(94483),t(16215);var n=t(96540),l=t(73777),s=t(85660),a=t(26924),d=t(76815),i=t(65131),r=t(74848);const c=(0,n.memo)(e=>{let{topologyGraph:o,topologyActorRows:t,topologyMeta:c,topologyEvidence:g,topologyTables:u,topologyOverlays:p,presentation:y,filterKey:f}=e;const b=(0,n.useMemo)(()=>(0,i.yH)(c),[c])||y,h=(0,n.useMemo)(()=>(0,i.XG)(c?.portBulletsByActor),[c]),[k,m]=(0,n.useState)(null),[x,I]=(0,n.useState)(""),[v,w]=(0,n.useState)(""),[L,{height:M}]=(0,s.A)(),T=Math.max(300,M-8),{nodes:E=[],links:S=[],aggregatedLinks:_}=o||{},j=(0,n.useMemo)(()=>(0,i.cl)({nodes:E,topologyTables:u,presentation:b}),[E,u,b]),A=(0,n.useMemo)(()=>new Set((t||[]).map(e=>e.id)),[t]),C=(0,n.useMemo)(()=>t?j.filter(e=>A.has(e.id)):j,[j,A,t]),N=(0,n.useMemo)(()=>t?S.filter(e=>A.has(e.source)&&A.has(e.target)):S,[S,A,t]);return C.length?(0,r.jsxs)(l.Flex,{ref:L,flex:!0,column:!0,overflow:"hidden",children:[(0,r.jsx)(a.A,{nodes:C,links:N,portStateLinks:S,selectedNodeId:x,selectedLinkId:v,height:T,filterKey:f,presentation:b,portInventoryOverride:h,onNodeClick:e=>{I(e.id),w(""),m(e.id)},onLinkClick:e=>{w(e.id),I("")}}),!!k&&(0,r.jsx)(d.A,{actorId:k,graphNodes:j,graphLinks:S,aggregatedLinks:_,allLinks:S,presentation:b,topologyEvidence:g,topologyTables:u,topologyOverlays:p,topologyMeta:c,selectedLinkId:v,onClose:()=>m(null)})]}):(0,r.jsx)(l.Flex,{flex:!0,alignItems:"center",justifyContent:"center",children:(0,r.jsx)(l.Text,{color:"textLite",children:"No topology data"})})})}}]);