summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/4915.6bc300ebfeff82fa9d92.chunk.js
blob: b005339fd4ac916d2ed305d51702e3ca09489ecb (plain)
1
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="28559c1c-7ad5-4bbb-a50f-6dbd8c502d72",e._sentryDebugIdIdentifier="sentry-dbid-28559c1c-7ad5-4bbb-a50f-6dbd8c502d72")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"0c0a7a41a0e7ecb4870dbce38dbd7d5e0913bb7f"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[4915],{46742:function(e,t,n){n.d(t,{lG:function(){return w},om:function(){return O}});var r=n(29439),o=n(93433),a=n(87462),i=n(45987),l=n(4942),c=(n(47042),n(92222),n(41539),n(39714),n(85827),n(25387),n(2490),n(72608),n(26699),n(32023),n(21249),n(57640),n(9924),n(57327),n(88449),n(59849),n(64211),n(41874),n(47941),n(82526),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070),n(67294)),s=n(50308),d=n.n(s),u=n(71893),f=n(4822),m=n(59978),g=n(39434),b=["item","onItemClick","itemProps"],p=["value","disabled","onClick","label","selected","indeterminate","textColor","iconName","count","level"],h=["baseKey","extraKey","paramFlavour","param","Item","testIdPrefix","collection","getValue","getLabel","itemsProps","itemProps","capitalized","multi"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=function(e){return e?e[0].toUpperCase()+e.slice(1):"Unknown"},O=(0,u.default)(m.Flex).attrs((function(e){return y({as:"li",role:"option",padding:[1,2],gap:1,justifyContent:"between",width:"100%"},e)})).withConfig({displayName:"checkboxes__ItemContainer",componentId:"sc-1vef46u-0"})(["cursor:",";opacity:",";align-items:",";"," ",""],(function(e){return e.disabled?"default":"pointer"}),(function(e){var t=e.stale,n=e.disabled;return(t||n)&!e.selected?.7:1}),(function(e){return e.alignItems||"center"}),(function(e){var t=e.multi,n=e.selected,r=e.theme;return!t&&n&&"\n    background-color: ".concat(function(e){var t=e.theme;return("Dark"===t.name?(0,m.getRgbColor)(["green","green20"]):(0,m.getRgbColor)(["green","green195"]))({theme:t})}({theme:r}),";\n  ")}),(function(e){var t=e.multi,n=e.selected,r=e.theme;return!t&&!n&&"\n    &:hover {\n      background-color: ".concat((0,m.getColor)("highlight")({theme:r}),";\n    }\n  ")})),w=(0,u.default)(m.Checkbox).withConfig({displayName:"checkboxes__FullWidthCheckbox",componentId:"sc-1vef46u-1"})(["width:100%;"]),C=(0,c.memo)((function(e){var t=e.baseKey,n=e.extraKey,l=e.paramFlavour,s=void 0===l?"arr":l,d=e.param,u=e.Item,g=e.testIdPrefix,b=e.collection,p=e.getValue,v=e.getLabel,x=e.itemsProps,O=e.itemProps,w=e.capitalized,C=void 0===w||w,I=e.multi,k=void 0===I||I,P=(0,i.Z)(e,h),E=(0,f.I0)(d,{defaultValue:[],key:t,extraKey:n,flavour:s}),j=(0,r.Z)(E,2),Z=j[0],L=void 0===Z?[]:Z,S=j[1];(0,c.useEffect)((function(){if(b.length&&L.length){var e=L.filter((function(e){return b.some((function(t){return p(t)===e}))}));e.length!==L.length&&S(e)}}),[b.length,S]);var D=(0,c.useCallback)((function(e){var t=e.value,n=e.checked;S(k?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(t)?n?t:[]:n?[].concat((0,o.Z)(e),[t]):e.filter((function(e){return e!==t}))}:function(){return n?[t]:[]})}),[S]),F=(0,c.useMemo)((function(){return function(e){var t=e.collection,n=e.selected,r=e.getValue,a=e.getLabel,i=e.itemsProps,l=e.multi;if(!t.length)return[];var c=l&&t.length<=n.length,s=l&&!c&&!!n.length;return t.reduce((function(e,t){var l=n.includes(r(t));return[].concat((0,o.Z)(e),[y(y(y({},i.row),t),{},{value:r(t),label:a(t),selected:l})])}),l?[y(y({},i.head),{},{label:"Select all",value:t.map(r),selected:c,indeterminate:s})]:[])}({collection:b,selected:L,getValue:p,getLabel:v,itemsProps:x,multi:k})}),[L,S,b]);return c.createElement(m.MenuDropdown,(0,a.Z)({hideShadow:!0,height:{max:"300px"},width:{max:"600px"},background:"mainBackground",overflow:"auto","data-testid":"".concat(g,'-filter-selections"'),searchMargin:[0,0,2],items:F,Item:u,onItemClick:D,value:L,"data-value":L.join(",")||"all-selected",hasSearch:b.length>5,itemProps:y(y({},O),{},{testIdPrefix:g,capitalized:C,multi:k})},P))})),I=function(e){return e};C.defaultProps={itemProps:{padding:[1,.5],maxLength:30,multi:!0},itemsProps:{head:{textColor:"textLite"},row:{textColor:"text"}},Item:function(e){var t=e.item,n=e.onItemClick,r=e.itemProps,o=(0,i.Z)(e,b),l=t.value,s=t.disabled,u=t.onClick,f=t.label,h=t.selected,v=t.indeterminate,y=t.textColor,C=t.iconName,I=t.count,k=t.level,P=void 0===k?0:k,E=(0,i.Z)(t,p),j=r.capitalized,Z=r.multi,L=s||!Z&&h,S=function(e){s||(u&&u(e),n({value:l,label:f,checked:!h,item:t}))};return c.createElement(O,(0,a.Z)({"aria-selected":h,selected:h,disabled:L,stale:0===I||"0"===I},E,o,r,{"data-testid":"".concat(r.testIdPrefix,"-filters-item")}),c.createElement(m.Flex,{gap:2,alignItems:"center",padding:[0,0,0,4*P],width:"100%"},Z?c.createElement(w,{"data-testid":"".concat(r.testIdPrefix,"-filters-checkbox-").concat(f),checked:h,disabled:L,indeterminate:v,onChange:S,label:c.createElement(m.Flex,{gap:1,alignItems:"center",width:"100%"},C&&c.createElement(m.Icon,{name:C,size:"small",color:"textLite"}),c.createElement(g.default,{Component:m.TextSmall,text:"string"===typeof f&&j?x(f):f.toString(),maxLength:r.maxLength||80,color:y}))}):c.createElement(m.Flex,{flex:!0,gap:1,padding:[0,1],alignItems:"center",onClick:h?d():S,"data-testid":"".concat(r.testIdPrefix,"-filters-item-").concat(f)},c.createElement(g.default,{Component:m.TextSmall,text:"string"===typeof f&&j?x(f):f.toString(),maxLength:r.maxLength||80,color:y}))),!isNaN(I)&&c.createElement(m.Pill,{flavour:"neutral",hollow:!0,"data-testid":"".concat(r.testIdPrefix,"-filters-").concat(f,"-count"),size:"default"},I.toString()))},getValue:I,getLabel:I},t.ZP=C},97193:function(e,t,n){n.d(t,{c:function(){return j}});var r=n(29439),o=n(4942),a=n(93433),i=n(87462),l=n(45987),c=(n(92222),n(41539),n(39714),n(64211),n(2490),n(41874),n(26699),n(32023),n(85827),n(25387),n(72608),n(57327),n(88449),n(59849),n(66992),n(70189),n(78783),n(88921),n(96248),n(13599),n(11477),n(64362),n(15389),n(90401),n(45164),n(91238),n(54837),n(87485),n(56767),n(76651),n(61437),n(35285),n(39865),n(33948),n(47941),n(82526),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070),n(67294)),s=n(91966),d=n.n(s),u=n(95062),f=n.n(u),m=n(79655),g=n(97945),b=n(4822),p=n(59978),h=n(39434),v=n(91008),y=n(72132),x=n(56001),O=n(46742),w=["value","disabled","onClick","label","nodeId","selected","status","indeterminate","textColor","iconName","hasAlerts","hasML","hasFn","showAlerts","showMl","showFn","requireML","requireFn","capabilities","count","multi","checkIsDisabled"],C=["item","onItemClick","itemProps","close"],I=["baseKey","extraKey","statusProps","multi","useFilteredIds","nodeCounts","checkIsDisabled"];function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E={Live:{head:{label:"Live nodes",textColor:"textLite",iconName:"connectivityStatusLive",hasML:!0,hasAlerts:!0,hasFn:!0},node:{textColor:"text",showAlerts:!0,showMl:!0,showFn:!0}},Stale:{head:{label:"Stale nodes",textColor:"textLite",iconName:"connectivityStatusStale",hasML:!0},node:{textColor:"text",showMl:!0}},Offline:{head:{label:"Offline nodes",textColor:"textLite",iconName:"connectivityStatusOffline"},node:{textColor:"textLite"}}},j=function(e){var t=e.item,n=t.value,r=t.disabled,o=t.onClick,a=t.label,s=t.nodeId,d=t.selected,u=t.status,b=t.indeterminate,I=t.textColor,k=t.iconName,P=t.hasAlerts,E=t.hasML,j=t.hasFn,Z=t.showAlerts,L=t.showMl,S=t.showFn,D=t.requireML,F=t.requireFn,N=t.capabilities,M=t.count,A=t.multi,_=void 0===A||A,T=t.checkIsDisabled,z=void 0===T?f():T,B=(0,l.Z)(t,w),K=e.onItemClick,V=e.itemProps,R=e.close,U=(0,l.Z)(e,C),q=(0,g.m3)(s),G=(0,c.useMemo)((function(){var e;return!S||!N||(null===(e=N.funcs)||void 0===e?void 0:e.enabled)}),[S]),H=(0,c.useMemo)((function(){var e;return!S||!N||(null===(e=N.ml)||void 0===e?void 0:e.enabled)}),[S]),J=r||D&&!H||F&&!G||!_&&d||z(s),Y=function(e){J||(o&&o(e),K({value:n,checked:!d,status:u}))},$=function(e){e.stopPropagation(),null===R||void 0===R||R()};return c.createElement(O.om,(0,i.Z)({"aria-selected":d,selected:d,disabled:J,stale:0===M||"0"===M},B,U,V,{"data-testid":"filterNodes-item-".concat(a),multi:_}),c.createElement(p.Flex,{gap:2,alignItems:"center",flex:!0},_?c.createElement(c.Fragment,null,c.createElement(O.lG,{"data-testid":"filterNodes-checkbox-".concat(a),checked:d,disabled:J,indeterminate:b,onChange:Y,label:c.createElement(p.Flex,{gap:1,alignItems:"center"},k&&c.createElement(p.Icon,{name:k,size:"small",color:"textLite"}),c.createElement(h.default,{Component:p.TextSmall,text:a,maxLength:(null===V||void 0===V?void 0:V.maxLength)||80,color:I,truncate:!0}),"Offline"!==u&&!Array.isArray(n)&&c.createElement(v.Z,{as:m.rU,to:q,state:{nodeId:s},"data-testid":"filterNodes-item-gta",color:"textLite",hoverColor:"text",onClick:$},c.createElement(p.Icon,{name:"nav_arrow_goto",height:"10px",width:"10px"})))})):c.createElement(p.Flex,{gap:1,padding:[0,1],alignItems:"center",onClick:Y,"data-testid":"filterNodes-item-".concat(a),flex:!0},c.createElement(h.default,{Component:p.TextSmall,text:a,maxLength:(null===V||void 0===V?void 0:V.maxLength)||80,color:I}),"Offline"!==u&&!Array.isArray(n)&&c.createElement(v.Z,{as:m.rU,to:q,state:{nodeId:s},"data-testid":"filterNodes-item-gta",color:"textLite",hoverColor:"text",onClick:$},c.createElement(p.Icon,{name:"nav_arrow_goto",height:"10px",width:"10px"})))),c.createElement(p.Flex,{gap:1},Z&&c.createElement(p.Flex,{gap:1,justifyContent:"center",width:17},c.createElement(x.Z,{id:n,isLive:!0,name:a})),L&&c.createElement(p.Flex,{gap:1,justifyContent:"center",width:10},c.createElement(y.Z,{badge:"ml","data-testid":"nodes-indicator-machine-learning",enabled:H,name:a})),S&&c.createElement(p.Flex,{gap:1,justifyContent:"center",width:10},c.createElement(y.Z,{badge:"fn","data-testid":"nodes-indicator-fn",enabled:G,name:a})),P&&c.createElement(p.Flex,{gap:1,justifyContent:"center",width:17},c.createElement(p.Icon,{name:"alarm",size:"small",color:"textLite"}),c.createElement(p.TextSmall,{strong:!0,color:"textLite"},"Alerts")),E&&c.createElement(p.Flex,{gap:1,justifyContent:"center",width:10},c.createElement(p.Icon,{name:"anomaliesLens",size:"small",color:"textLite"}),c.createElement(p.TextSmall,{strong:!0,color:"textLite"},"ML")),j&&c.createElement(p.Flex,{gap:1,justifyContent:"center",width:10},c.createElement(p.Icon,{name:"functions",size:"small",color:"textLite"}),c.createElement(p.TextSmall,{strong:!0,color:"textLite"},"Fn")),!isNaN(M)&&c.createElement(p.Pill,{flavour:"neutral",hollow:!0,"data-testid":"".concat(V.testIdPrefix,"-filters-").concat(a,"-count"),size:"default"},M.toString())))},Z=function(e){var t=e.ids,n=e.status,r=e.selectedIds,o=e.nodesById,i=e.statusProps,l=e.multi,c=void 0===l||l,s=e.nodeCounts,d=e.checkIsDisabled;if(!t.length)return[];var u=c&&!t.some((function(e){return!r.includes(e)})),f=c&&r.length&&!u&&t.some((function(e){return r.includes(e)}));return t.reduce((function(e,t){var l=o[t],u=l.name,f=l.capabilities,m=r.includes(t);return[].concat((0,a.Z)(e),[P(P({value:t,label:u,nodeId:t,selected:m,status:n,capabilities:f},i[n].node),{},{multi:c,checkIsDisabled:d,count:s?s[t]||0:NaN})])}),[P(P({value:t,selected:u,indeterminate:f,disabled:!c,status:n},i[n].head),{},{multi:c})])},L=function(e){return e};t.Z=function(e){var t=e.baseKey,n=e.extraKey,o=e.statusProps,s=void 0===o?E:o,u=e.multi,f=void 0===u||u,m=e.useFilteredIds,h=void 0===m?L:m,v=e.nodeCounts,y=e.checkIsDisabled,x=(0,l.Z)(e,I),O=h((0,b.H7)()),w=(0,b.wT)({defaultValue:[],key:t,extraKey:n}),C=(0,r.Z)(w,2),k=C[0],P=C[1];(0,c.useEffect)((function(){if(O.length&&k.length){var e=k.filter((function(e){return O.includes(e)}));e.length!==k.length&&P(e)}}),[O]);var S=(0,g.HZ)(O),D=(0,g.e5)(O),F=(0,g.mf)(O),N=(0,c.useCallback)((function(e){var t=e.value,n=e.checked;P(f?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(t)?n?(0,a.Z)(new Set([].concat((0,a.Z)(e),(0,a.Z)(t)))):d()(e,t):n?[].concat((0,a.Z)(e),[t]):e.filter((function(e){return e!==t}))}:function(){return n?[t]:[]})}),[P]),M=(0,g.d$)(),A=(0,c.useMemo)((function(){var e=Z({ids:S,status:"Live",selectedIds:k,nodesById:M,statusProps:s,multi:f,nodeCounts:v,checkIsDisabled:y}),t=Z({ids:D,status:"Stale",selectedIds:k,nodesById:M,statusProps:s,multi:f,nodeCounts:v,checkIsDisabled:y}),n=Z({ids:F,status:"Offline",selectedIds:k,nodesById:M,statusProps:s,multi:f,nodeCounts:v,checkIsDisabled:y});return e.concat(t,n)}),[k,S.length,D.length,F.length,v,y]);return c.createElement(p.MenuDropdown,(0,i.Z)({hideShadow:!0,height:{max:"60vh"},width:{max:"600px"},overflow:"auto","data-testid":"filterNodes-drop",searchMargin:[2],items:A,Item:j,onItemClick:N,value:k,"data-value":k.join(",")||"all-nodes",hasSearch:!0},x))}},38671:function(e,t,n){n(47941),n(82526),n(57327),n(41539),n(88449),n(2490),n(59849),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070);var r=n(4942),o=n(29439),a=n(67294),i=n(8641),l=n(58591);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(){var e=(0,l.m$)(),t=(0,i.Oi)(),n=(0,o.Z)(t,2),r=n[0],c=n[1],d=(0,i.wC)().reset,u=(0,a.useCallback)((function(){d(),(0,l.xs)(s(s({},e),{},{integrationsModalOpen:"true"})),c("true")}),[d,e]);return{isIntegrationsVisible:r,hideIntegrations:(0,a.useCallback)((function(){(0,l.xs)(s(s({},e),{},{integrationsModalOpen:""})),c("")}),[e]),onIntegrationsClick:u}}},77796:function(e,t,n){n.d(t,{in:function(){return d},ev:function(){return m},rw:function(){return g}});n(82526),n(57327),n(88449),n(59849),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070);var r=n(93433),o=n(4942),a=(n(2707),n(47941),n(85827),n(41539),n(25387),n(2490),n(72608),n(92222),n(4480)),i=(0,a.cn)({key:"alertIdsByNodeId",default:{}});function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s=[],d=(0,a.nZ)({key:"nodesAlertIdsState",get:function(e){return(0,e.get)(i)},set:function(e,t){return(0,e.set)(i,t)}}),u=(0,a.CG)({key:"nodeAlertIdsState",get:function(e){return function(t){return(0,t.get)(i)[e]||s}},set:function(e){return function(t,n){(0,t.set)(i,(function(t){return c(c({},t),{},(0,o.Z)({},e,(0,r.Z)(n).sort((function(e,t){return e.id-t.id}))))}))}}}),f=(0,a.CG)({key:"nodesAlertIdsState",get:function(e){return function(t){var n=(0,t.get)(i);return(e=e.length?e:Object.keys(n)).reduce((function(e,t){return[].concat((0,r.Z)(e),(0,r.Z)(n[t]||[]))}),[])}},cachePolicy_UNSTABLE:{eviction:"most-recent"}}),m=function(e){return(0,a.sJ)(u(e))},g=function(e){return(0,a.sJ)(f(e))}},24093:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(87462),o=n(45987),a=n(67294),i=n(82351),l=n(71893),c=n(59978),s=(0,l.default)(c.Flex).attrs((function(){return{width:{max:"315px"},overflow:"hidden"}})).withConfig({displayName:"styled__Container",componentId:"sc-t6teia-0"})(["color:",";"],(0,c.getColor)("bright")),d=["children"],u=function(e){var t=e.children,n=(0,o.Z)(e,d);return a.createElement(s,(0,r.Z)({"data-testid":"nodeInfoContent"},n),t)},f=n(22965),m=["align","badge","base","children","connectivityState","content","isBasic","status","nodeName","nodeType"],g=function(e){var t=e.align,n=void 0===t?"bottom":t,l=e.badge,c=e.base,s=void 0===c?{background:"main",padding:[2]}:c,d=e.children,g=e.connectivityState,b=e.content,p=e.isBasic,h=void 0===p||p,v=e.status,y=e.nodeName,x=e.nodeType,O=(0,o.Z)(e,m);return a.createElement(i.Z,(0,r.Z)({align:n,base:s,content:function(){return a.createElement(u,{"data-testid":"nodeInfoTooltip-tooltipContent"},b||(0,f.yK)(l,g,v,y,x))},"data-testid":"nodeInfoTooltip",isBasic:h},O),d)}},56001:function(e,t,n){n(47941),n(82526),n(57327),n(41539),n(88449),n(2490),n(59849),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070);var r=n(87462),o=n(4942),a=n(45987),i=n(67294),l=n(59978),c=n(12008),s=n(77796),d=n(22965),u=n(24093),f=["id","isLive","name","onClick"];function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.id,n=e.isLive,o=e.name,m=e.onClick,b=(0,a.Z)(e,f),p=(0,s.ev)(t),h=(0,c.n_)(p),v=h.critical,y=h.warning,x=g(g({},(null===b||void 0===b?void 0:b["data-testid"])&&{dataTestId:null===b||void 0===b?void 0:b["data-testid"]}),{},{isLive:n}),O=(0,d.kR)(g({count:v,type:"critical"},x)),w=(0,d.kR)(g({count:y,type:"warning"},x));return i.createElement(u.Z,(0,r.Z)({badge:"alerts","data-testid":"node-alerts",nodeName:o},b),i.createElement(l.AlertMasterCard,{onClick:O.text||w.text?m:null,pillLeft:O,pillRight:w}))}},72132:function(e,t,n){var r=n(87462),o=n(45987),a=n(67294),i=n(59978),l=n(22965),c=n(24093),s=["children","badge","enabled","name","onClick"];t.Z=function(e){var t=e.children,n=e.badge,d=e.enabled,u=e.name,f=e.onClick,m=(0,o.Z)(e,s),g=(0,l.Dy)(d);return a.createElement(c.Z,(0,r.Z)({badge:n,"data-testid":"node-".concat(n,"-status"),status:g.status,nodeName:u},m),a.createElement(i.Flex,{alignItems:"center",gap:1,onClick:d?f:void 0,cursor:d&&f?"pointer":"default","data-ga":"nodes-list::click-capability::".concat(g.label)},t,a.createElement(i.Pill,{background:g.background,borderColor:g.border,color:g.color,size:"small"},g.label)))}},53030:function(e,t,n){var r,o=n(87462),a=n(67294),i=n(59978),l=n(24093),c=n(37518),s=n(74059),d=n(15418),u=(r=i.Button,function(e){var t=(0,c.Hm)(),n=(0,s.Q6)();return a.createElement(d.Z,{permission:"node:Create"},(function(c){var s=a.createElement(r,(0,o.Z)({disabled:!c},e));return c?s:a.createElement(l.Z,{content:n?"You are viewing your local node, connect to cloud and connect multiple nodes to view at once":"Only admin users can add nodes to ".concat(t.name),"data-testid":"addNodeTooltipContainer"},a.createElement(i.Box,null,s))}))});t.Z=u}}]);