summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/4915.245eefea4f250bc84a58.chunk.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/gui/v2/4915.245eefea4f250bc84a58.chunk.js')
-rw-r--r--web/gui/v2/4915.245eefea4f250bc84a58.chunk.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/web/gui/v2/4915.245eefea4f250bc84a58.chunk.js b/web/gui/v2/4915.245eefea4f250bc84a58.chunk.js
deleted file mode 100644
index 184ba9f4c..000000000
--- a/web/gui/v2/4915.245eefea4f250bc84a58.chunk.js
+++ /dev/null
@@ -1 +0,0 @@
-!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]="d54b8015-d6e7-4f85-8393-efe39a64dcb5",e._sentryDebugIdIdentifier="sentry-dbid-d54b8015-d6e7-4f85-8393-efe39a64dcb5")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"6845f9ce010d5a446e5d4a40f17204cb8341a07a"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[4915],{46742:function(e,t,n){n.d(t,{lG:function(){return x},om:function(){return y}});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(71893),d=n(95248),u=n(64969),f=n(39434),m=["item","onItemClick","itemProps"],g=["value","disabled","onClick","label","selected","indeterminate","textColor","iconName","count","level"],p=["baseKey","extraKey","param","Item","testIdPrefix","collection","getValue","getLabel","itemsProps","itemProps","capitalized","multi"];function b(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){return e?e[0].toUpperCase()+e.slice(1):"Unknown"},y=(0,s.default)(u.Flex).attrs((function(e){return h({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,u.getRgbColor)(["green","green20"]):(0,u.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,u.getColor)("highlight")({theme:r}),";\n }\n ")})),x=(0,s.default)(u.Checkbox).withConfig({displayName:"checkboxes__FullWidthCheckbox",componentId:"sc-1vef46u-1"})(["width:100%;"]),O=function(e){var t=e.baseKey,n=e.extraKey,l=e.param,s=e.Item,f=e.testIdPrefix,m=e.collection,g=e.getValue,b=e.getLabel,v=e.itemsProps,y=e.itemProps,x=e.capitalized,O=void 0===x||x,w=e.multi,C=void 0===w||w,I=(0,i.Z)(e,p),k=(0,d.I0)(l,{defaultValue:[],key:t,extraKey:n}),P=(0,r.Z)(k,2),E=P[0],j=void 0===E?[]:E,Z=P[1];(0,c.useEffect)((function(){if(m.length&&j.length){var e=j.filter((function(e){return m.some((function(t){return g(t)===e}))}));e.length!==j.length&&Z(e)}}),[m.length,Z]);var L=(0,c.useCallback)((function(e){var t=e.value,n=e.checked;Z(C?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]:[]})}),[Z]),S=(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),[h(h(h({},i.row),t),{},{value:r(t),label:a(t),selected:l})])}),l?[h(h({},i.head),{},{label:"Select all",value:t.map(r),selected:c,indeterminate:s})]:[])}({collection:m,selected:j,getValue:g,getLabel:b,itemsProps:v,multi:C})}),[j,Z,m]);return c.createElement(u.MenuDropdown,(0,a.Z)({hideShadow:!0,height:{max:"300px"},width:{max:"600px"},background:"mainBackground",overflow:"auto","data-testid":"".concat(f,'-filter-selections"'),searchMargin:[0,0,2],items:S,Item:s,onItemClick:L,value:j,"data-value":j.join(",")||"all-selected",hasSearch:m.length>5,itemProps:h(h({},y),{},{testIdPrefix:f,capitalized:O,multi:C})},I))},w=function(e){return e};O.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,m),l=t.value,s=t.disabled,d=t.onClick,p=t.label,b=t.selected,h=t.indeterminate,O=t.textColor,w=t.iconName,C=t.count,I=t.level,k=void 0===I?0:I,P=(0,i.Z)(t,g),E=r.capitalized,j=r.multi,Z=s||!j&&b,L=function(e){s||(d&&d(e),n({value:l,label:p,checked:!b,item:t}))};return c.createElement(y,(0,a.Z)({"aria-selected":b,selected:b,disabled:Z,stale:0===C||"0"===C},P,o,r,{"data-testid":"".concat(r.testIdPrefix,"-filters-item")}),c.createElement(u.Flex,{gap:2,alignItems:"center",padding:[0,0,0,4*k],width:"100%"},j?c.createElement(x,{"data-testid":"".concat(r.testIdPrefix,"-filters-checkbox-").concat(p),checked:b,disabled:Z,indeterminate:h,onChange:L,label:c.createElement(u.Flex,{gap:1,alignItems:"center",width:"100%"},w&&c.createElement(u.Icon,{name:w,size:"small",color:"textLite"}),c.createElement(f.default,{Component:u.TextSmall,title:p,text:"string"===typeof p&&E?v(p):p.toString(),maxLength:r.maxLength||80,color:O}))}):c.createElement(u.Flex,{gap:1,padding:[0,1],alignItems:"center",onClick:L,"data-testid":"".concat(r.testIdPrefix,"-filters-item-").concat(p)},c.createElement(f.default,{Component:u.TextSmall,title:p,text:"string"===typeof p&&E?v(p):p.toString(),maxLength:r.maxLength||80,color:O}))),!isNaN(C)&&c.createElement(u.Pill,{flavour:"neutral",hollow:!0,"data-testid":"".concat(r.testIdPrefix,"-filters-").concat(p,"-count")},C.toString()))},getValue:w,getLabel:w},t.ZP=O},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),p=n(95248),b=n(64969),h=n(39434),v=n(91008),y=n(72233),x=n(39583),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,p=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,N=t.requireFn,F=t.capabilities,M=t.count,A=t.multi,_=void 0===A||A,T=t.checkIsDisabled,B=void 0===T?f():T,K=(0,l.Z)(t,w),z=e.onItemClick,V=e.itemProps,R=e.close,q=(0,l.Z)(e,C),U=(0,g.m3)(s),G=(0,c.useMemo)((function(){var e;return!S||!F||(null===(e=F.funcs)||void 0===e?void 0:e.enabled)}),[S]),H=(0,c.useMemo)((function(){var e;return!S||!F||(null===(e=F.ml)||void 0===e?void 0:e.enabled)}),[S]),J=r||D&&!H||N&&!G||!_&&d||B(s),Y=function(e){J||(o&&o(e),z({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},K,q,V,{"data-testid":"filterNodes-item-".concat(a),multi:_}),c.createElement(b.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:p,onChange:Y,label:c.createElement(b.Flex,{gap:1,alignItems:"center"},k&&c.createElement(b.Icon,{name:k,size:"small",color:"textLite"}),c.createElement(h.default,{Component:b.TextSmall,title:a,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:U,state:{nodeId:s},"data-testid":"filterNodes-item-gta",color:"textLite",hoverColor:"text",onClick:$},c.createElement(b.Icon,{name:"nav_arrow_goto",height:"10px",width:"10px"})))})):c.createElement(b.Flex,{gap:1,padding:[0,1],alignItems:"center",onClick:Y,"data-testid":"filterNodes-item-".concat(a),flex:!0},c.createElement(h.default,{Component:b.TextSmall,title:a,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:U,state:{nodeId:s},"data-testid":"filterNodes-item-gta",color:"textLite",hoverColor:"text",onClick:$},c.createElement(b.Icon,{name:"nav_arrow_goto",height:"10px",width:"10px"})))),c.createElement(b.Flex,{gap:1},Z&&c.createElement(b.Flex,{gap:1,justifyContent:"center",width:17},c.createElement(x.Z,{id:n,isLive:!0,name:a})),L&&c.createElement(b.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(b.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(b.Flex,{gap:1,justifyContent:"center",width:17},c.createElement(b.Icon,{name:"alarm",size:"small",color:"textLite"}),c.createElement(b.TextSmall,{strong:!0,color:"textLite"},"Alerts")),E&&c.createElement(b.Flex,{gap:1,justifyContent:"center",width:10},c.createElement(b.Icon,{name:"anomaliesLens",size:"small",color:"textLite"}),c.createElement(b.TextSmall,{strong:!0,color:"textLite"},"ML")),j&&c.createElement(b.Flex,{gap:1,justifyContent:"center",width:10},c.createElement(b.Icon,{name:"functions",size:"small",color:"textLite"}),c.createElement(b.TextSmall,{strong:!0,color:"textLite"},"Fn")),!isNaN(M)&&c.createElement(b.Pill,{flavour:"neutral",hollow:!0,"data-testid":"".concat(V.testIdPrefix,"-filters-").concat(a,"-count")},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,p.H7)()),w=(0,p.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),N=(0,g.mf)(O),F=(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:N,status:"Offline",selectedIds:k,nodesById:M,statusProps:s,multi:f,nodeCounts:v,checkIsDisabled:y});return e.concat(t,n)}),[k,S.length,D.length,N.length,v,y]);return c.createElement(b.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:F,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}});var r=n(93433),o=n(4942),a=(n(2707),n(85827),n(41539),n(25387),n(2490),n(72608),n(92222),n(47941),n(82526),n(57327),n(88449),n(59849),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070),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.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))}},4312: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(64969),s=(0,l.default)(c.Flex).attrs((function(){return{width:{max:"315px"},overflow:"hidden"}})).withConfig({displayName:"styled__Container",componentId:"sc-d9qxpb-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(89050),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,p=e.content,b=e.isBasic,h=void 0===b||b,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"},p||(0,f.yK)(l,g,v,y,x))},"data-testid":"nodeInfoTooltip",isBasic:h},O),d)}},39583: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(64969),c=n(12008),s=n(77796),d=n(89050),u=n(4312),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,p=(0,a.Z)(e,f),b=(0,s.ev)(t),h=(0,c.n_)(b),v=h.critical,y=h.warning,x=g(g({},(null===p||void 0===p?void 0:p["data-testid"])&&{dataTestId:null===p||void 0===p?void 0:p["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},p),i.createElement(l.AlertMasterCard,{onClick:O.text||w.text?m:null,pillLeft:O,pillRight:w}))}},72233:function(e,t,n){var r=n(87462),o=n(45987),a=n(67294),i=n(64969),l=n(89050),c=n(4312),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:2,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,padding:[1,2],textSize:"small"},g.label)))}},53030:function(e,t,n){var r,o=n(87462),a=n(67294),i=n(64969),l=n(4312),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}}]); \ No newline at end of file