diff options
Diffstat (limited to 'web/gui/v2/2773.36292453483e1b60ea2b.chunk.js')
-rw-r--r-- | web/gui/v2/2773.36292453483e1b60ea2b.chunk.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/web/gui/v2/2773.36292453483e1b60ea2b.chunk.js b/web/gui/v2/2773.36292453483e1b60ea2b.chunk.js deleted file mode 100644 index fda8228a..00000000 --- a/web/gui/v2/2773.36292453483e1b60ea2b.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]="4816fcfe-f671-4395-bf5b-8ed38ad8e09a",e._sentryDebugIdIdentifier="sentry-dbid-4816fcfe-f671-4395-bf5b-8ed38ad8e09a")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"8b7b01b6c705cf50f8050ce0fb8fc6b58fe68567"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[2773],{46742:function(e,t,n){n.d(t,{kI:function(){return C},om:function(){return E}});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(74916),n(77601),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)),u=n(50308),s=n.n(u),d=n(71893),m=n(4822),f=n(93416),p=n(39434),g=["item","onItemClick","itemProps"],v=["value","disabled","onClick","label","selected","excluded","indeterminate","textColor","iconName","count","level","stale"],h=["baseKey","extraKey","paramFlavour","param","Item","testIdPrefix","collection","getValue","getLabel","itemsProps","itemProps","capitalized","multi","merge"];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 y(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 x=function(e){return e?e[0].toUpperCase()+e.slice(1):"Unknown"},E=(0,d.default)(f.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,f.getRgbColor)(["green","green20"]):(0,f.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,f.getColor)("secondaryHighlight")({theme:r}),";\n }\n ")})),C=(0,d.default)(f.MenuDropdown).attrs((function(e){return y({background:"transparent",hideShadow:!0,height:{max:"300px"},width:{max:"600px"},overflow:"auto"},e)})).withConfig({displayName:"checkboxes__CheckboxesContainer",componentId:"sc-1vef46u-1"})([""]),I=(0,c.memo)((function(e){var t=e.baseKey,n=e.extraKey,l=e.paramFlavour,u=void 0===l?"arr":l,s=e.param,d=e.Item,f=e.testIdPrefix,p=e.collection,g=e.getValue,v=e.getLabel,b=e.itemsProps,x=e.itemProps,E=e.capitalized,I=void 0===E||E,O=e.multi,k=void 0===O||O,w=e.merge,P=void 0!==w&&w,Z=(0,i.Z)(e,h),S=(0,m.I0)(s,{defaultValue:[],key:t,extraKey:n,flavour:u,merge:P}),j=(0,r.Z)(S,2),F=j[0],N=j[1];(0,c.useEffect)((function(){if(p.length&&F.length){var e=F.filter((function(e){return p.some((function(t){return g(t)===e}))}));e.length!==F.length&&N(e)}}),[p.length,N]);var D=(0,c.useCallback)((function(e){var t=e.value,n=e.checked;N(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]:[]})}),[N]),M=(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,u=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:u})]:[])}({collection:p,selected:F,getValue:g,getLabel:v,itemsProps:b,multi:k})}),[F,p]);return c.createElement(C,(0,a.Z)({"data-testid":"".concat(f,"-filter-selections"),items:M,Item:d,onItemClick:D,value:F,"data-value":F.join(",")||"all-selected",hasSearch:p.length>5,searchMargin:[0,0,1],itemProps:y(y({},x),{},{testIdPrefix:f,capitalized:I,multi:k})},Z))})),O=function(e){return e};I.defaultProps={itemProps:{padding:[1,.5],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,g),l=t.value,u=t.disabled,d=t.onClick,m=t.label,h=t.selected,b=t.excluded,y=t.indeterminate,C=t.textColor,I=t.iconName,O=t.count,k=t.level,w=void 0===k?0:k,P=t.stale,Z=(0,i.Z)(t,v),S=r.capitalized,j=r.multi,F=u||!j&&h,N=function(e){u||(d&&d(e),n({value:l,label:m,checked:!h,item:t}))};return c.createElement(E,(0,a.Z)({"aria-selected":h,selected:h,disabled:F,stale:0===O||"0"===O||P||b},Z,o,r,{"data-testid":"".concat(r.testIdPrefix,"-filters-item")}),c.createElement(f.Flex,{gap:2,alignItems:"center",padding:[0,0,0,4*w],width:"100%"},j?c.createElement(f.Checkbox,{"data-testid":"".concat(r.testIdPrefix,"-filters-checkbox-").concat(m),checked:h,disabled:F,indeterminate:y,onChange:N,label:c.createElement(f.Flex,{gap:1,alignItems:"center",width:"100%"},I&&c.createElement(f.Icon,{name:I,size:"small",color:"textLite"}),c.createElement(p.default,{Component:f.TextSmall,text:"string"===typeof m&&S?x(m):m.toString(),color:C}))}):c.createElement(f.Flex,{flex:!0,gap:1,padding:[0,1],alignItems:"center",onClick:h?s():N,"data-testid":"".concat(r.testIdPrefix,"-filters-item-").concat(m)},c.createElement(p.default,{Component:f.TextSmall,text:"string"===typeof m&&S?x(m):m.toString(),color:C}))),(!isNaN(O)||/%/.test(O||""))&&c.createElement(f.Pill,{flavour:"neutral",hollow:!0,"data-testid":"".concat(r.testIdPrefix,"-filters-").concat(m,"-count"),size:"small"},O.toString()))},getValue:O,getLabel:O},t.ZP=I},8144:function(e,t,n){var r=n(87462),o=n(29439),a=n(45987),i=n(67294),l=n(93416),c=n(4822),u=n(46667),s=n(82351),d=["margin","title","testIdPrefix","baseKey","extraKey","param","paramFlavour","children","multi","defaultIsOpen","border","required","configElements","showCounter","help","collapsible","merge"];t.Z=function(e){var t=e.margin,n=e.title,m=e.testIdPrefix,f=e.baseKey,p=e.extraKey,g=e.param,v=e.paramFlavour,h=void 0===v?"arr":v,b=e.children,y=e.multi,x=void 0===y||y,E=e.defaultIsOpen,C=void 0===E||E,I=e.border,O=void 0===I?{side:"bottom",color:"borderSecondary"}:I,k=e.required,w=void 0!==k&&k,P=e.configElements,Z=e.showCounter,S=void 0===Z||Z,j=e.help,F=e.collapsible,N=void 0===F||F,D=e.merge,M=void 0!==D&&D,L=(0,a.Z)(e,d),_=(0,c.I0)(g,{key:f,extraKey:p,flavour:h,merge:M}),K=(0,o.Z)(_,2),A=K[0],T=K[1],B=(0,u.Z)(C||!(null===A||void 0===A||!A.length)),V=(0,o.Z)(B,2),z=V[0],G=V[1];return i.createElement(l.Flex,(0,r.Z)({"data-testid":"".concat(m,"-filter"),column:!0,padding:[2,0,0],border:O},L),i.createElement(l.Flex,{justifyContent:"between",margin:!N||z?t:[0],gap:2,onClick:N?G:void 0,cursor:"pointer"},i.createElement(l.Flex,{alignItems:"center",gap:2,height:4.5},i.createElement(l.Flex,{gap:2},w&&!(null!==A&&void 0!==A&&A.length)&&i.createElement(l.Icon,{color:"error",name:"error",size:"small"}),i.createElement(l.Flex,{alignItems:"center",gap:.5},i.createElement(l.TextSmall,{strong:!0},n),!!j&&i.createElement(s.Z,{align:"top",content:j},i.createElement(l.Flex,null,i.createElement(l.Icon,{name:"question",color:"textLite",width:"12px",height:"12px"})))),S&&!(null===A||void 0===A||!A.length)&&i.createElement(l.Pill,{flavour:"neutral",hollow:!0,"data-testid":"".concat(m,"-selected-count"),tiny:!0},null===A||void 0===A?void 0:A.length)),!w&&x&&!(null===A||void 0===A||!A.length)&&i.createElement(l.Button,{padding:[0],flavour:"borderless",onClick:function(e){e.stopPropagation(),T([])},"data-testid":"".concat(m,"-filter-resetAll"),label:"Reset",small:!0})),i.createElement(l.Flex,{gap:1,alignItems:"center"},"function"===typeof P?P({isOpen:z,collapsible:N}):P,N&&i.createElement(l.Icon,{name:"chevron_left",size:"small",color:"textLite",rotate:z?1:3}))),i.createElement(l.Collapsible,{open:!N||z,height:"100%"},b))}},97193:function(e,t,n){var r=n(4942),o=n(93433),a=n(87462),i=n(29439),l=n(45987),c=(n(92222),n(26699),n(32023),n(41539),n(39714),n(64211),n(2490),n(41874),n(85827),n(25387),n(72608),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(57327),n(88449),n(59849),n(47941),n(82526),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070),n(67294)),u=n(93416),s=n(91966),d=n.n(s),m=n(95062),f=n.n(m),p=n(79655),g=n(97945),v=n(96104),h=n(6308),b=n(39434),y=n(91008),x=n(72132),E=n(56001),C=n(46742),I=n(34735),O=["limitationsApplied"],k=["value","disabled","onClick","label","nodeId","selected","excluded","stale","status","indeterminate","textColor","iconName","hasAlerts","hasML","hasFn","showAlerts","showMl","showFn","requireML","requireFn","capabilities","count","multi","checkIsDisabled","onToggleHidden","itemsHidden","isParent","hasExtraInfo"],w=["item","onItemClick","itemProps","close"],P=["baseKey","extraKey","statusProps","multi","useFilteredIds","nodeCounts","checkIsDisabled"];function Z(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?Z(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j,F={Live:{head:{label:"Live nodes",textColor:"textFocus",iconName:"connectivityStatusLive",hasML:!0,hasAlerts:!0,hasFn:!0},node:{textColor:"text",showAlerts:!0,showMl:!0,showFn:!0}},Stale:{head:{label:"Stale nodes",textColor:"textFocus",iconName:"connectivityStatusStale"},node:{textColor:"text"}},Offline:{head:{label:"Offline nodes",textColor:"textFocus",iconName:"connectivityStatusOffline"},node:{textColor:"textLite"}}},N=function(e){var t=e.toggle,n=e.expanded;return c.createElement(u.Flex,{cursor:"pointer",role:"button",padding:[.5],gap:.5,onClick:function(e){e.preventDefault(),e.stopPropagation(),t(),setTimeout((function(){return e.target.scrollIntoView({behavior:"smooth",block:"nearest"})}))}},c.createElement(u.TextNano,{color:"textLite"},n?"Collapse":"Expand"),c.createElement(u.Icon,{name:"chevron_down",width:"10px",height:"10px",color:"textLite",rotate:n?2:null}))},D=function(e){var t=e.isParent,n=e.stale,r=e.selected,o=e.excluded,a=e.testIdPrefix,i=e.label;return t?null:c.createElement(u.Pill,{hollow:!0,flavour:o?"error":n&&!r?"warning":"success","data-testid":"".concat(a,"-filters-").concat(i,"-stale"),size:"small"},o?"Excluded":n&&!r?"Filtered out":"Included")},M=(j=function(e){var t=e.iconName,n=e.label,r=e.textColor,o=e.value,a=e.nodePath,i=e.nodeId,l=e.onAnchorClick,s=e.isStale,d=e.excluded,m=e.selected,f=e.isParent,g=e.itemProps,v=e.onToggleHidden,h=e.itemsHidden,x=e.status;return c.createElement(u.Flex,{gap:2,alignItems:"center"},t&&c.createElement(u.Icon,{name:t,size:"small",color:"textLite"}),c.createElement(b.default,{Component:u.TextSmall,text:n,color:r,truncate:!0}),"Offline"!==x&&!Array.isArray(o)&&c.createElement(y.Z,{as:p.rU,to:a,state:{nodeId:i},"data-testid":"filterNodes-item-gta",color:"textLite",hoverColor:"text",onClick:l},c.createElement(u.Icon,{name:"nav_arrow_goto",height:"10px",width:"10px"})),c.createElement(D,{stale:s,excluded:d,selected:m,isParent:f,label:n,testIdPrefix:g.testIdPrefix}),!!v&&c.createElement(N,{toggle:v,expanded:!h}))},function(e){var t=e.limitationsApplied,n=(0,l.Z)(e,O);return t&&Array.isArray(n.value)?c.createElement(j,n):c.createElement(u.Checkbox,{"data-testid":"filterNodes-checkbox-".concat(n.label),checked:n.selected,disabled:n.isDisabled,indeterminate:n.indeterminate,onChange:n.onSelect,label:c.createElement(j,n)})}),L=function(e){var t=e.item,n=t.value,r=t.disabled,o=t.onClick,s=t.label,d=t.nodeId,m=t.selected,v=t.excluded,O=t.stale,P=t.status,Z=t.indeterminate,S=t.textColor,j=t.iconName,F=t.hasAlerts,D=t.hasML,L=t.hasFn,_=t.showAlerts,K=t.showMl,A=t.showFn,T=t.requireML,B=t.requireFn,V=t.capabilities,z=t.count,G=t.multi,q=void 0===G||G,R=t.checkIsDisabled,W=void 0===R?f():R,H=t.onToggleHidden,U=t.itemsHidden,J=t.isParent,Q=t.hasExtraInfo,Y=(0,l.Z)(t,k),X=e.onItemClick,$=e.itemProps,ee=e.close,te=(0,l.Z)(e,w),ne=(0,h.Z)(),re=(0,i.Z)(ne,3)[2],oe=(0,g.m3)(d),ae=(0,I.Z)(),ie=ae.hasLimitations,le=ae.preferredNodes,ce=ae.maxNodes,ue=(0,c.useMemo)((function(){var e;return!A||!V||(null===(e=V.funcs)||void 0===e?void 0:e.enabled)}),[A]),se=(0,c.useMemo)((function(){var e;return!A||!V||(null===(e=V.ml)||void 0===e?void 0:e.enabled)}),[A]),de=ie&&!le.includes(d),me=!Array.isArray(n)&&de&&re>ce,fe=r||me||T&&!se||B&&!ue||!q&&m||W(d),pe=function(e){fe||(o&&o(e),X({value:n,checked:!m,status:P}))},ge=function(e){e.stopPropagation(),null===ee||void 0===ee||ee()},ve=v||O,he={status:P,limitationsApplied:de,iconName:j,isDisabled:fe,indeterminate:Z,label:s,textColor:S,value:n,nodePath:oe,nodeId:d,onAnchorClick:ge,onSelect:pe,isStale:ve,excluded:v,selected:m,isParent:J,itemProps:$,onToggleHidden:H,itemsHidden:U};return c.createElement(C.om,(0,a.Z)({"aria-selected":m,selected:m,disabled:fe,stale:ve||0===z||"0"===z},Y,te,$,{"data-testid":"filterNodes-item-".concat(s),multi:q}),c.createElement(u.Flex,{gap:2,alignItems:"center",flex:!0},q?c.createElement(M,(0,a.Z)({},he,me?{iconName:"padlock"}:{})):c.createElement(u.Flex,{gap:1,padding:[0,1],alignItems:"center",onClick:pe,"data-testid":"filterNodes-item-".concat(s),flex:!0},c.createElement(b.default,{Component:u.TextSmall,text:s,color:S}),"Offline"!==P&&!Array.isArray(n)&&c.createElement(y.Z,{as:p.rU,to:oe,state:{nodeId:d},"data-testid":"filterNodes-item-gta",color:"textLite",hoverColor:"text",onClick:ge},c.createElement(u.Icon,{name:"nav_arrow_goto",height:"10px",width:"10px"})),!!H&&c.createElement(N,{toggle:H,expanded:!U}))),Q&&c.createElement(u.Flex,{gap:1},_&&c.createElement(u.Flex,{gap:1,justifyContent:"center",width:17},c.createElement(E.Z,{id:n,isLive:!0,name:s})),K&&c.createElement(u.Flex,{gap:1,justifyContent:"center",width:10},c.createElement(x.Z,{badge:"ml","data-testid":"nodes-indicator-machine-learning",enabled:se,name:s})),A&&c.createElement(u.Flex,{gap:1,justifyContent:"center",width:10},c.createElement(x.Z,{badge:"fn","data-testid":"nodes-indicator-fn",enabled:ue,name:s})),F&&c.createElement(u.Flex,{gap:1,justifyContent:"center",width:17},c.createElement(u.Icon,{name:"alarm",size:"small",color:"textLite"}),c.createElement(u.TextSmall,{strong:!0,color:"textLite"},"Alerts")),D&&c.createElement(u.Flex,{gap:1,justifyContent:"center",width:10},c.createElement(u.Icon,{name:"anomaliesLens",size:"small",color:"textLite"}),c.createElement(u.TextSmall,{strong:!0,color:"textLite"},"ML")),L&&c.createElement(u.Flex,{gap:1,justifyContent:"center",width:10},c.createElement(u.Icon,{name:"functions",size:"small",color:"textLite"}),c.createElement(u.TextSmall,{strong:!0,color:"textLite"},"Fn")),!isNaN(z)&&c.createElement(u.Pill,{flavour:"neutral",hollow:!0,"data-testid":"".concat($.testIdPrefix,"-filters-").concat(s,"-count"),size:"small"},z.toString())))},_=function(e){var t=e.ids,n=e.status,a=e.selectedIds,i=e.excludedIds,l=e.filteredIds,c=e.nodesById,u=e.statusProps,s=e.multi,d=void 0===s||s,m=e.nodeCounts,f=e.checkIsDisabled,p=e.setHidden,g=e.hidden,v=e.extraKey;if(!t.length)return[];var h=d&&!t.some((function(e){return!a.includes(e)})),b=d&&a.length&&!h&&t.some((function(e){return a.includes(e)})),y=d&&!t.some((function(e){return!i.includes(e)})),x=d&&i.length&&!y&&t.some((function(e){return i.includes(e)}));return t.reduce((function(e,t){if(g[n])return e;var r=c[t],s=r.name,p=r.capabilities,h=a.includes(t),b=i.includes(t),y=!!l.length&&!l.includes(t);return[].concat((0,o.Z)(e),[S(S({value:t,label:s,nodeId:t,selected:h,excluded:b,stale:y,status:n,capabilities:p},u[n].node),{},{multi:d,checkIsDisabled:f,count:m?m[t]||0:NaN,hasExtraInfo:!v})])}),[S(S({value:t,selected:h,indeterminate:b,disabled:!d,status:n},u[n].head),{},{multi:d,onToggleHidden:function(){return p((function(e){return S(S({},e),{},(0,r.Z)({},n,!g[n]))}))},itemsHidden:g[n],excluded:y,someExcluded:x,isParent:!0,hasExtraInfo:!v})])},K=function(e){return e};t.Z=function(e){var t=e.baseKey,n=e.extraKey,r=e.statusProps,u=void 0===r?F:r,s=e.multi,m=void 0===s||s,f=e.useFilteredIds,p=void 0===f?K:f,h=e.nodeCounts,b=e.checkIsDisabled,y=(0,l.Z)(e,P),x=(0,c.useState)((function(){return{Stale:!0,Offline:!0}})),E=(0,i.Z)(x,2),I=E[0],O=E[1],k=(0,v.fX)({extraKey:n,omit:"selectedNodeIds",merge:!0,emptyIfAll:!1}),w=(0,v.fX)({extraKey:n,merge:!1}),Z=(0,v.aQ)({key:t,extraKey:n,merge:!1}),S=(0,i.Z)(Z,2),j=S[0],N=S[1],D=(0,v.Lr)({key:t,extraKey:n,merge:!1}),M=(0,i.Z)(D,2),A=M[0],T=M[1],B=p(k),V=(0,g.HZ)(n?B:void 0),z=(0,g.e5)(n?B:void 0),G=(0,g.mf)(n?B:void 0),q=(0,c.useCallback)((function(e){var t=e.value,n=e.checked;if("undefined"!==typeof e.excluded){if(!m)return void T((function(){return n?[t]:[]}));T((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(t)?n?(0,o.Z)(new Set([].concat((0,o.Z)(e),(0,o.Z)(t)))):d()(e,t):n?[].concat((0,o.Z)(e),[t]):e.filter((function(e){return e!==t}))}))}N(m?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(t)?n?(0,o.Z)(new Set([].concat((0,o.Z)(e),(0,o.Z)(t)))):d()(e,t):n?[].concat((0,o.Z)(e),[t]):e.filter((function(e){return e!==t}))}:function(){return n?[t]:[]})}),[j,N]),R=(0,g.d$)(),W=(0,c.useMemo)((function(){var e=_({ids:V,status:"Live",selectedIds:j,excludedIds:A,filteredIds:w,nodesById:R,statusProps:u,multi:m,nodeCounts:h,checkIsDisabled:b,setHidden:O,hidden:I,extraKey:n}),t=_({ids:z,status:"Stale",selectedIds:j,excludedIds:A,filteredIds:w,nodesById:R,statusProps:u,multi:m,nodeCounts:h,checkIsDisabled:b,setHidden:O,hidden:I,extraKey:n}),r=_({ids:G,status:"Offline",selectedIds:j,excludedIds:A,filteredIds:w,nodesById:R,statusProps:u,multi:m,nodeCounts:h,checkIsDisabled:b,setHidden:O,hidden:I,extraKey:n});return e.concat(t,r)}),[j,A.length,B.length,w.length,h,b,I]);return c.createElement(C.kI,(0,a.Z)({"data-testid":"filterNodes-drop",items:W,Item:L,onItemClick:q,value:j,"data-value":j.join(",")||"all-nodes",hasSearch:!0},y))}},42754:function(e,t,n){var r=n(87462),o=n(45987),a=n(67294),i=n(93416),l=n(62889),c=["onToggle","icon","isOpen","title"],u=function(e){var t=e.onToggle,n=e.icon,u=void 0===n?"node_hollow":n,s=e.isOpen,d=e.title,m=(0,o.Z)(e,c);return a.createElement(l.Z,(0,r.Z)({dataTestId:"collapsed-header",iconClose:s?"arrow_w_line_right":"arrow_w_line_left",onClick:t},m),s&&a.createElement(i.Flex,{gap:2,alignItems:"center","data-testid":"sidebar-nodeName"},a.createElement(i.Icon,{name:u,color:"text",size:"small"}),a.createElement(i.TextSmall,{strong:!0},d)))};t.Z=(0,a.memo)(u)},20777:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(87462),o=n(45987),a=(n(21249),n(57640),n(9924),n(67294)),i=n(93416),l=function(e){var t=e.iconName,n=e.label,o=e.onClick,l=e.containerStyles,c=e.textStyles;return a.createElement(i.Flex,(0,r.Z)({"data-testid":"sidebar-icon-item"},l,{column:!0,margin:[2,0],alignItems:"center"}),a.createElement(i.Flex,{"data-testid":"sidebar-icon-item-wrapper",margin:[0,0,.5,0],alignItems:"center",onClick:o,cursor:"pointer"},a.createElement(i.Icon,{name:t,color:"textLite",width:"18px",height:"18px"})),a.createElement(i.TextMicro,(0,r.Z)({color:"text"},c),n))},c=["onClickTab","availableTabs","tabsToShow"],u=function(e){var t=e.onClickTab,n=e.availableTabs,u=e.tabsToShow,s=(0,o.Z)(e,c);return a.createElement(i.Flex,(0,r.Z)({"data-testid":"collapsed-sidebar",column:!0,justifyContent:"center"},s),u.map((function(e,r){var o=n[e],i=o.iconName,c=o.label;return a.createElement(l,{containerStyles:{border:{size:"2px",type:"solid",color:"mainBackground",side:"left"}},textStyles:{color:"textLite"},key:i,onClick:function(){return t(r)},iconName:i,label:c})})))},s=(0,a.memo)(u)},21872:function(e,t,n){var r=n(87462),o=n(45987),a=n(67294),i=n(93416),l=["children","iconName","name","size","testId"];t.Z=function(e){var t=e.children,n=e.iconName,c=e.name,u=e.size,s=e.testId,d=void 0===s?"entry-line-text-container":s,m=(0,o.Z)(e,l),f="small"===u?i.TextSmall:i.Text,p="undefined"!==typeof t&&null!==t;return a.createElement(i.Flex,{alignItems:"start","data-testid":"entry-line"},n&&a.createElement(i.Flex,{"data-testid":"entry-line-icon-container",padding:[0,1,0,0]},a.createElement(i.Icon,{color:"textLite","data-testid":"entry-line-icon",name:n,width:"16px",height:"16px"})),a.createElement(i.Flex,(0,r.Z)({column:!0,alignItems:"start","data-testid":d,gap:.5},m),a.createElement(f,{"data-testid":"entry-line-text-label",whiteSpace:"nowrap",color:"textDescription"},c,p&&": "),p&&a.createElement(i.TextSmall,{color:"textDescription","data-testid":"entry-line-text-value",strong:!0},t)))}},46038:function(e,t,n){var r=n(87462),o=n(29439),a=n(45987),i=n(71893),l=n(67294),c=n(93416),u=n(46667),s=n(82351),d=["children","isEnabled","link","name","noDataLabel"],m=(0,i.default)(c.Icon).withConfig({displayName:"group__IconLink",componentId:"sc-9459pv-0"})(["&:hover{fill:",";}"],(0,c.getColor)("textDescription")),f=function(e){return e.stopPropagation()},p=function(e){var t=e.children,n=e.isEnabled,r=e.link,o=e.onClick,a=e.open;return l.createElement(c.Flex,{alignItems:"center",justifyContent:"between",height:8,onClick:n?o:null,cursor:n?"pointer":"default"},l.createElement(c.Flex,{gap:2,alignItems:"center"},l.createElement(c.TextSmall,{strong:!0},t),r&&l.createElement(c.Flex,{as:"a",href:r,target:"_blank",onClick:f},l.createElement(m,{height:"13px",width:"13px",name:"documentation",size:"small",color:"placeholder"}))),n&&l.createElement(c.Icon,{name:"chevron_left",size:"small",color:"textLite",rotate:a?1:3}))},g=(0,i.default)(c.Flex).withConfig({displayName:"group__StyledFlex",componentId:"sc-9459pv-1"})(["&:last-child{border:none;}"]);t.Z=function(e){var t=e.children,n=e.isEnabled,i=void 0===n||n,m=e.link,f=e.name,v=e.noDataLabel,h=(0,a.Z)(e,d),b=(0,u.Z)(!0),y=(0,o.Z)(b,2),x=y[0],E=y[1],C=i?null:v;return l.createElement(s.Z,{content:C,isBasic:!0},l.createElement(g,(0,r.Z)({column:!0,border:{side:"bottom",color:"borderSecondary"},padding:[1,0,x?2:1],isEnabled:i},h),l.createElement(p,{isEnabled:i,open:x,onClick:E,link:m},f),l.createElement(c.Collapsible,{column:!0,open:x,gap:1},t)))}},62889:function(e,t,n){var r=n(87462),o=n(45987),a=n(67294),i=n(93416),l=["children","onClick","iconClose","icon","dataTestId","title"];t.Z=function(e){var t=e.children,n=e.onClick,c=e.iconClose,u=void 0===c?"x":c,s=e.icon,d=e.dataTestId,m=e.title,f=(0,o.Z)(e,l);return a.createElement(i.Flex,(0,r.Z)({"data-testid":d,height:12,alignItems:"center",justifyContent:"between",border:{side:"bottom",color:"borderSecondary"},padding:[0,2],flex:!1},f),m?a.createElement(i.Flex,{gap:2,alignItems:"center","data-testid":"sidebar-nodeName"},a.createElement(i.Icon,{name:s,color:"text",size:"small"}),a.createElement(i.TextSmall,{strong:!0},m)):t,a.createElement(i.Icon,{"data-testid":"sidebarHeader-icon",name:u,color:"textLite",onClick:n,cursor:"pointer"}))}},96703:function(e,t,n){var r=n(87462),o=n(45987),a=n(67294),i=n(93416),l=["children","collapsedComponent","isOpen","header","width"],c=(0,a.memo)((function(e){var t=e.children,n=e.collapsedComponent,c=e.isOpen,u=e.header,s=e.width,d=void 0===s?90:s,m=(0,o.Z)(e,l),f=!!n;return a.createElement(i.Collapsible,(0,r.Z)({open:c,column:!0,closedValue:f?48:0,persist:f,direction:"horizontal",border:{side:"left",color:"borderSecondary"},width:d,flex:!0,basis:d},m),(function(e){return a.createElement(a.Fragment,null,u,e?t:n)}))}));t.ZP=c},61294:function(e,t,n){n.d(t,{Z:function(){return S}});var r=n(87462),o=n(29439),a=n(67294),i=n(61152),l=n(93416),c=n(12008),u=n(16645),s=n(7693),d=n(54244),m=n(32071),f=n(78266),p=n(92253),g=n(39840),v=(0,a.memo)((function(e){var t=e.id,n=(0,c.E5)(t),r=n.fullyLoaded,o=n.nodeId,i=n.instance,l=n.lastStatusChangeValue,u=n.lastStatusChange,s=n.units,d=n.context,m=n.value,f=n.lastUpdated,v=n.status,h=(0,g.pK)(m,s),b=(0,g.pK)(l,s);return a.createElement(p.Z,{instance:i,context:d,formattedLastValue:h,formattedLastStatusChangeValue:b,lastStatusChange:u,lastUpdated:f,isFormattedValueLoaded:"clear"===v||r,nodeId:o,status:v,testid:"alertDetailsModal"})})),h=(n(92222),n(41539),n(88674),n(17727),n(74059)),b=n(37518),y=n(89250),x=n(54005),E=function(e){var t=e.alertId,n=e.testid,r=(0,h.uk)(),o=(0,b.vf)(),i="/spaces/".concat(r,"/rooms/").concat(o,"/alerts/").concat(t),c=(0,y.s0)(),u=(0,x.Z)(),s=u.sendButtonClickedLog,d=u.isReady,m=(0,a.useCallback)((function(e){e.preventDefault(),s({dataGa:"".concat(n,"::view-alert-button")}).finally((function(){c(i)}))}),[c,i,d]);return a.createElement(l.Button,{as:"a","data-testid":"".concat(n,"-view-alert-button"),"data-ga":"".concat(n,"::view-alert-button"),href:i,onClick:m,label:"View alert page",width:"224px"})},C=n(80854),I=n(29876),O=n(50709),k=n(82210),w=n(34735),P=n(63346),Z=function(e){var t=e.alertId,n=e.onClose,r=(0,w.Z)().isNodeRestricted,o=(0,c.E5)(t),i=o.name,p=void 0===i?"unknown alert":i,g=o.status,h=o.fullyLoaded,b=o.info,y=o.nodeId;(0,c.yx)(t);var x=y&&r(y);return a.createElement(P.ZP,{mode:"AlertDetailsModal"},a.createElement(u.u6,{onClose:n},a.createElement(s.x,{onClose:n,title:p,"data-testid":"alertDetailsModal-alertName"},a.createElement(d.Z,{flavour:g,icon:"alarm_bell","data-testid":"alertDetailsModal-alertPill"},g)),h?x?a.createElement(k.Z,{flavour:"alert"}):a.createElement(a.Fragment,null,a.createElement(u.TZ,{overflow:{vertical:"auto"},hasModalTitle:!1,gap:2,hasFooter:!0},a.createElement(C.Z,{iconName:"monitoring",iconSize:"20px"},"Time Values"),a.createElement(I.Z,{alertId:t}),a.createElement(C.Z,{iconName:"documentation"},"Alert Description"),a.createElement(l.Text,{"data-testid":"alertDetailsModal-info"},b),a.createElement(O.Z,{alertId:t}),a.createElement(v,{id:t}),a.createElement(m.Z,{id:t})),a.createElement(u.ZW,null,a.createElement(E,{alertId:t,testid:"alertDetailsModal"}))):a.createElement(f.Z,{title:"Loading alert..."})))},S=function(){var e=(0,i.Z)("alertDetailsModal"),t=(0,o.Z)(e,5),n=t[0],l=t[2],c=t[3],u=t[4],s=(0,a.useCallback)((function(e){var t=e.alertId;l("",{alertId:t})}),[]),d=(0,a.useMemo)((function(){return a.createElement(Z,(0,r.Z)({onClose:c},u))}),[u]);return[n,s,c,d]}},597:function(e,t,n){n.d(t,{Kn:function(){return b},VP:function(){return g},tN:function(){return h}});n(82526),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070);var r=n(4942),o=n(29439),a=(n(26699),n(32023),n(92222),n(41539),n(64211),n(2490),n(41874),n(21249),n(57640),n(9924),n(47941),n(57327),n(88449),n(59849),n(4480)),i=n(4822),l=n(37518),c=n(96104),u=n(12008);function s(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m=function(e){return function(t,n){return!Array.isArray(n)||!n.length||n.includes(t[e])}},f={alertStatuses:m("status"),alertClasses:m("class"),alertRoles:m("recipient"),alertTypeComponents:function(e,t){return!Array.isArray(t)||!t.length||t.includes("".concat(e.type,"|").concat(e.component))},nodeIds:m("nodeId")},p=(0,a.CG)({key:"alertsFiltered",get:function(e){var t=e.extraKey,n=e.roomId,r=e.omit,a=e.keepAll;return function(e){var l=e.get,s=l((0,i.dz)({key:n,extraKey:t,flavour:"arr"})),m=Object.keys(s).map((function(e){return[e,r&&r.split(":::").includes(e)?l((0,i.dz)({key:n,flavour:"arr",param:e})):s[e]]}));if(!r||!r.includes("selectedNodeIds")){var p=l((0,c.WA)({key:n,extraKey:t,omit:r,keepAll:!1,merge:!1,scoped:!0}));null!==p&&void 0!==p&&p.length&&m.push(["nodeIds",p])}var g=l((0,u.E_)(n)),v=function(e){return function(t){return!e.some((function(e){var n=(0,o.Z)(e,2),r=n[0],a=n[1];return!!f[r]&&!f[r](t,a)}))}}(m);return a?g.map((function(e){return v(e)?e:d(d({},e),{},{hidden:!0})})):g.filter(v)}}}),g={alertStatuses:{critical:0,warning:0},alertClasses:{Errors:0,Latency:0,Utilization:0,Workload:0}},v={critical:0,warning:1},h={alertStatuses:function(e,t){return v[e.id]-v[t.id]},default:function(e,t){return e.id.localeCompare(t.id,void 0,{sensitivity:"accent",ignorePunctuation:!0})}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.extraKey,n=e.omit,r=e.keepAll,o=void 0!==r&&r,i=(0,l.UL)();return(0,a.sJ)(p({extraKey:t,roomId:i,omit:n,keepAll:o}))}},25517:function(e,t,n){n.d(t,{ZP:function(){return y},$B:function(){return v},bG:function(){return b}});var r=n(15861),o=n(29439),a=n(93433),i=n(64687),l=n.n(i),c=(n(91058),n(21249),n(57640),n(9924),n(2707),n(57327),n(41539),n(88449),n(2490),n(59849),n(92222),n(67294)),u=n(4822),s=n(2077),d=function(e){var t=e.after,n=e.before,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{offset:6e4,limit:Date.now()},o=r.offset,a=function(e,t){var n=t.offset,r=t.limit,o=n/2;return e+o<=r?o:r<e?0:r-e}(n,{offset:o,limit:r.limit});return[t-(o-a),n+a]},m=n(54005),f=n(16294),p=function(e,t){return e||t?d({after:parseInt(e),before:parseInt(t)},function(e){var t=Date.now();return{limit:t,offset:t-e<6e4?3e4:15e3}}(t)):g},g=[null,null],v=function(){var e=(0,u.by)(),t=e.after,n=e.before,r=e.highlight;if(!r.after||!r.before)return g;if(t<0){var o=Date.now();if(r.before<o+t)return g;if(r.after>o)return g}else{if(r.before<t)return g;if(r.after>n)return g}return[r.after,r.before]},h=function(e,t){if(e<0){var n=Date.now();e=1e3*Math.floor(n/1e3+e),t=1e3*Math.floor(n/1e3)}return{after:e,before:t}},b=function(e,t,n){var i=(0,c.useState)(),d=(0,o.Z)(i,2),g=d[0],b=d[1],y=(0,c.useState)(!1),x=(0,o.Z)(y,2),E=x[0],C=x[1],I=(0,m.Z)().sendLog,O=function(){var e=v();return(0,c.useMemo)((function(){return p.apply(void 0,(0,a.Z)(e))}),(0,a.Z)(e))}(),k=(0,o.Z)(O,2),w=k[0],P=k[1],Z=(0,u.by)(),S=Z.after,j=Z.before,F=(0,s.VG)({nodeIds:n,flavour:"rhs"},e,t),N=(0,o.Z)(F,1)[0],D=function(){var e=(0,r.Z)(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=h(S,j),C(!0),e.prev=2,e.next=5,N({flavour:"rhs",highlightAfter:w||t.after,highlightBefore:P||t.before,baselineAfter:w?t.after:null,baselineBefore:P?t.before:null,method:"anomaly-rate",aggregation:"avg",group:"average",nodeIds:n,options:["raw","null2zero"],groupBy:["context"]});case 5:C(!1),I({action:f.Nw.elementViewed,feature:"AnomalyRates-TOC",isSuccess:!0},!0),e.next=16;break;case 9:if(e.prev=9,e.t0=e.catch(2),!e.t0.isCancel){e.next=13;break}return e.abrupt("return");case 13:b(e.t0),C(!1),I({action:f.Nw.elementViewed,feature:"AnomalyRates-TOC",isFailure:!0},!0);case 16:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(){return e.apply(this,arguments)}}();return[D,E,g]},y=function(e,t,n){var r=function(){var e=(0,c.useState)(0),t=(0,o.Z)(e,2),n=t[0],r=t[1];return[n,(0,c.useCallback)((function(){return r((function(e){return e+1}))}),[])]}(),a=(0,o.Z)(r,2),i=a[0],l=a[1],d=(0,c.useState)(),f=(0,o.Z)(d,2),p=f[0],g=f[1],h=v(),b=(0,o.Z)(h,2),y=b[0],x=b[1],E=(0,u.by)(),C=E.after,I=E.before,O=(0,s.d5)({nodeIds:n,flavour:"anomaly"},e,t),k=O.contexts,w=O.metadata,P=O.getWeights,Z=O.loading,S=(0,m.Z)(),j=S.sendLog,F=S.isReady;return(0,c.useEffect)((function(){if(y&&x&&x&&y)try{j({feature:"AnomalyAdvisor",isStart:!0}),P({highlightAfter:y,highlightBefore:x,baselineAfter:C,baselineBefore:I,method:"anomaly-rate",aggregation:"avg",group:"average",nodeIds:n,options:["null2zero","raw"],groupBy:["context","dimension"]})}catch(e){if(j({feature:"AnomalyAdvisor",isFailure:!0}),e.isCancel)return;g(e)}}),[n.length,x,y,i,F]),[(0,c.useMemo)((function(){return k.filter((function(e){var t;return((null===(t=w[e])||void 0===t?void 0:t.weight)||0)>0})).sort((function(e,t){var n=w[e].weight||0,r=w[t].weight||0;return n!=r?n>r?-1:1:0})).map((function(e){var t=e.split(",");return t.length>1?"".concat(t[1],"::").concat(t[0]):e}))}),[k,w]),k,w,Z,p,l]}},44109:function(e,t,n){n.d(t,{e:function(){return r}});n(54678);var r=function(e){return function(e){return new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:e})}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:2).format(e)};t.Z=function(e){return e&&"0"!==e?"".concat(parseFloat(e).toFixed(2),"%"):"-"}},41481:function(e,t,n){n.d(t,{KR:function(){return y},T:function(){return b},J1:function(){return v},Np:function(){return x}});var r=n(4942),o=n(29439),a=(n(73210),n(57327),n(41539),n(88449),n(2490),n(59849),n(74916),n(23123),n(85827),n(25387),n(72608),n(64211),n(41874),n(47941),n(26699),n(32023),n(82526),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070),n(67294)),i=n(4480),l=n(89250),c=n(84147),u=n(97945),s=n(37518),d=n(4822),m=(0,i.xu)({key:"chartsFilterValue",default:{filteredChartsIds:[],filteredChartsCount:0,chartsCount:0}});function f(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?f(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=function(){var e=(0,s.UL)(),t=(0,u.pG)();return(0,a.useMemo)((function(){return{roomId:e,nodeId:t}}),[t,e])},v=function(){var e=g();return(0,i.sJ)(m(e))},h=function(){return[(0,s.UL)(),(0,l.UO)().nodeID||"overview"]},b=function(){var e=h(),t=(0,o.Z)(e,2),n=t[0],r=t[1];return(0,d.by)("tocSearch",{key:n,extraKey:r,defaultValue:"",flavour:"val"})},y=function(){var e=h(),t=(0,o.Z)(e,2),n=t[0],r=t[1];return(0,d.I0)("tocSearch",{key:n,extraKey:r,defaultValue:"",flavour:"val"})},x=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=r.shouldHide,u=void 0===l?function(){return!1}:l,s=r.force,f=void 0!==s&&s,v=r.cacheKey,h=(0,d.by)("after"),y=(0,d.by)("before"),x=function(){var e=b();return"string"!==typeof e?"":e.trim().toLowerCase()}(),E=(0,c.z3)(n),C=(0,a.useMemo)((function(){var n=0,r=0,o=Date.now()/1e3,a=x.split(/[\s,]+/).filter((function(e){return!!e}));return[e.reduce((function(e,t){if(!e[t])return e;var i=e[t],l=i.firstEntry,c=i.lastEntry,s=i.live,d=!f&&e[t].visible||(h<0?s||o+h<c:!(h>1e3*c||y<1e3*l)),m=!d||!Object.keys(e[t]).some((function(n){var r=e[t][n];return null===a||void 0===a||!a.length||a.some((function(e){return"string"===typeof r&&r.includes(e)}))})),g=!d||u(e[t]);return e[t]=p(p({},e[t]),{},{filteredOut:m,visible:d,hidden:g}),m||!d||g||(n+=1),g||(r+=1),e}),p({},t)),r,n]}),[x,e,h,y,f,v]),I=(0,o.Z)(C,3),O=I[0],k=I[1],w=I[2],P=function(){var e=g();return(0,i.Zl)(m(e))}();return(0,a.useEffect)((function(){E(O),P({filteredChartsCount:w,chartsCount:k})}),[O,k,w,n]),w}},5441:function(e,t,n){n.d(t,{E:function(){return p}});var r=n(29439),o=n(67294),a=n(93416),i=n(82351),l=n(97945),c=n(96104),u=n(37518),s=n(74059),d=n(25517),m=n(70459),f=n(54005),p=function(){var e=(0,l.pG)(),t=(0,c.fX)();return e?[e]:t};t.Z=function(e){return function(t){var n=(0,s.th)(),l=(0,u.UL)(),c=p(),g=(0,m.Z)().pause,v=(0,f.Z)().sendButtonClickedLog,h=(0,d.bG)(n,l,c),b=(0,r.Z)(h,2),y=b[0],x=b[1];return o.createElement(a.Flex,{alignItems:"center",justifyContent:"between",width:"100%"},o.createElement(i.Z,{content:"Overlay the maximum chart anomaly rate on each menu section.",align:"bottom",activateOn:"hover",isBasic:!0},o.createElement(a.Button,{tiny:!0,label:x?null:"AR%",isLoading:x,flavour:"hollow",onClick:function(){g(),y(),v({feature:"AnomalyRates-TOC",label:"AR%",isStart:!0},!0)},textTransform:"uppercase","data-track":"menu-anomaly-rates::click-ar-button"})),o.createElement(a.Flex,{column:!0},o.createElement(e,t)))}}},28989:function(e,t,n){n.d(t,{An:function(){return d},SF:function(){return s},xz:function(){return f},zE:function(){return m}});var r=n(29439),o=n(67294),a=n(44682),i=n(37682),l=(0,a.kr)(""),c=(0,a.kr)(""),u=(0,a.kr)(""),s=function(e){var t=e.menuGroupId,n=void 0===t?"":t,a=e.subMenuId,i=void 0===a?"":a,s=e.children,d=(0,o.useState)(n),m=(0,r.Z)(d,2),f=m[0],p=m[1],g=(0,o.useState)(i),v=(0,r.Z)(g,2),h=v[0],b=v[1],y=(0,o.useMemo)((function(){return{setMenuGroupId:p,setSubMenuId:b}}),[]);return o.createElement(l.Provider,{value:y},o.createElement(c.Provider,{value:f},o.createElement(u.Provider,{value:h},s)))},d=function(){return(0,i.Z)(l)},m=function(e){return t=function(t){return e===t},(0,i.Z)(c,t);var t},f=function(e){return(0,i.Z)(u,e)}},71824:function(e,t,n){n.d(t,{$b:function(){return f},At:function(){return v},MS:function(){return k},Q8:function(){return I},UY:function(){return E},mQ:function(){return y},nI:function(){return b},uK:function(){return x},uY:function(){return C},wJ:function(){return O}});var r=n(87462),o=n(45987),a=(n(21249),n(57640),n(9924),n(67294)),i=n(6557),l=n.n(i),c=n(44682),u=n(37682),s=["id"],d=a.createContext({}),m=(0,c.kr)({}),f=(0,c.kr)({}),p=(0,c.kr)([]),g=(0,c.kr)({}),v=function(e){var t=e.container,n=e.menuItemAttributesById,r=e.getObject,o=e.allElements,i=e.stickyIds,l=e.children;return a.createElement(d.Provider,{value:t},a.createElement(m.Provider,{value:r},a.createElement(f.Provider,{value:n},a.createElement(p.Provider,{value:o},a.createElement(g.Provider,{value:i},l)))))},h={},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l();return(0,u.Z)(f,(function(n){return t(n[e]||h)}))},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l();return(0,u.Z)(f,(function(n){return e.map((function(e){return t(n[e]||h,e)}))}))},x=function(){return a.useContext(d)},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l();return(0,u.Z)(p,e)},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l();return(0,u.Z)(g,e)},I=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:l())(k()(e))},O=function(e){return(0,a.forwardRef)((function(t,n){var i=t.id,l=(0,o.Z)(t,s),c=b(i),u=c.chartId,d=I(u);return a.createElement(e,(0,r.Z)({ref:n,id:i,chart:d,menuChartAttributes:c},l))}))},k=function(){return(0,u.Z)(m)}},45335:function(e,t,n){n.d(t,{Ze:function(){return l},sm:function(){return c},vH:function(){return u}});var r=n(29439),o=n(67294),a=(0,o.createContext)(),i=(0,o.createContext)(),l=function(e){var t=e.children,n=(0,o.useState)(),l=(0,r.Z)(n,2),c=l[0],u=l[1];return o.createElement(a.Provider,{value:c},o.createElement(i.Provider,{value:u},t))},c=function(){return(0,o.useContext)(a)},u=function(){return(0,o.useContext)(i)}},85993:function(e,t,n){n.d(t,{Lj:function(){return g},UG:function(){return f},VC:function(){return h},YE:function(){return d},fW:function(){return m},jj:function(){return b},nk:function(){return p}});var r=n(87462),o=n(45987),a=n(67294),i=n(6557),l=n.n(i),c=n(44682),u=n(37682),s=["id"],d=(0,c.kr)({}),m=function(e){var t=e.menuGroupById,n=e.children;return a.createElement(d.Provider,{value:t},n)},f=function(e){return(0,u.Z)(d,e)},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l();return f((function(n){return t((null===n||void 0===n?void 0:n[e])||{})}))},g=function(e,t){return function(n){var i=n.id,l=(0,o.Z)(n,s),c=p(i,t);return a.createElement(e,(0,r.Z)({id:i},c,l))}},v=(0,c.kr)([]),h=function(e){var t=e.ids,n=e.children;return a.createElement(v.Provider,{value:t},n)},b=function(e){return function(t){var n,o=(0,u.Z)(v,n);return a.createElement(e,(0,r.Z)({menuGroupIds:o},t))}}},62525:function(e,t,n){n.d(t,{Ji:function(){return g},N6:function(){return f},St:function(){return m},Yo:function(){return p},aJ:function(){return d}});var r=n(87462),o=n(45987),a=n(67294),i=n(6557),l=n.n(i),c=n(44682),u=n(37682),s=["id"],d=(0,c.kr)({}),m=function(e){var t=e.subMenuById,n=e.children;return a.createElement(d.Provider,{value:t},n)},f=function(e){return(0,u.Z)(d,e)},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l();return f((function(n){return t(null===n||void 0===n?void 0:n[e])}))},g=function(e,t){return function(n){var i=n.id,l=(0,o.Z)(n,s),c=p(i,t);return a.createElement(e,(0,r.Z)({id:i},c,l))}}},15394:function(e,t,n){n.d(t,{Z:function(){return v}});var r=n(67294),o=n(71824),a=n(45335),i=n(85993),l=n(62525),c=n(28989),u=n(4480),s=n(97945),d=n(37518),m=(0,u.xu)({key:"activeMenuGroupIdValue",default:""}),f=function(){var e=function(){var e=(0,d.UL)(),t=(0,s.pG)();return(0,r.useMemo)((function(){return{roomId:e,nodeId:t}}),[t,e])}();return(0,u.Zl)(m(e))},p=function(e){return function(t,n){var r=t.querySelector(n);r&&e(r)}},g="scrollIntoViewIfNeeded"in document.body?p((function(e){return e.scrollIntoViewIfNeeded()})):p((function(e){return e.scrollIntoView()})),v=function(e){var t=e.onMenuGroupClick,n=e.onSubMenuClick,u=e.onChartNameChange,s=e.initialChartName,d=e.linkToGo,m=e.contextToGo,p=e.loaded,v=void 0===p||p,h=(0,o.uK)(),b=(0,a.sm)(),y=(0,i.UG)(),x=(0,l.N6)(),E=(0,c.An)(),C=E.setMenuGroupId,I=E.setSubMenuId,O=f(),k=(0,r.useRef)(s);(0,r.useLayoutEffect)((function(){v&&b&&d&&!k.current&&b.goToLink(d)}),[b,d]),(0,r.useLayoutEffect)((function(){v&&b&&m&&!k.current&&b.goToElement(m)}),[b,m]);var w=(0,r.useCallback)((function(e){C(e),O(e),g(h,'[data-sidebar="true"] [data-sidebar-menugroupid="'.concat(e,'"]')),e&&y[e]&&u(y[e].link)}),[y]),P=(0,r.useCallback)((function(e){I(e),e in x&&(C(x[e].menuGroupId),g(h,'[data-sidebar="true"] [data-sidebar-submenuid="'.concat(e,'"]')),u(x[e].link))}),[x]);return(0,r.useLayoutEffect)((function(){v&&k.current&&b&&b.goToLink(s)&&(k.current=null)}),[b]),{setActiveMenuGroupId:w,setActiveSubMenuId:P,onMenuGroupClick:(0,r.useCallback)((function(e,n){n&&n.preventDefault(),b&&(b.goToElement(e),t(e))}),[b]),onSubMenuClick:(0,r.useCallback)((function(e,t,r){r&&r.preventDefault(),b&&(b.goToElement(t),n(e,t))}),[b])}}},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 u(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],s=(0,i.wC)().reset,d=(0,a.useCallback)((function(){s(),(0,l.xs)(u(u({},e),{},{integrationsModalOpen:"true"})),c("true")}),[s,e]);return{isIntegrationsVisible:r,hideIntegrations:(0,a.useCallback)((function(){(0,l.xs)(u(u({},e),{},{integrationsModalOpen:""})),c("")}),[e]),onIntegrationsClick:d}}},77796:function(e,t,n){n.d(t,{in:function(){return s},ev:function(){return f},rw:function(){return p}});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 u=[],s=(0,a.nZ)({key:"nodesAlertIdsState",get:function(e){return(0,e.get)(i)},set:function(e,t){return(0,e.set)(i,t)}}),d=(0,a.CG)({key:"nodeAlertIdsState",get:function(e){return function(t){return(0,t.get)(i)[e]||u}},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}))))}))}}}),m=(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"}}),f=function(e){return(0,a.sJ)(d(e))},p=function(e){return(0,a.sJ)(m(e))}},24093:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(87462),o=n(45987),a=n(67294),i=n(82351),l=n(71893),c=n(93416),u=(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")),s=["children"],d=function(e){var t=e.children,n=(0,o.Z)(e,s);return a.createElement(u,(0,r.Z)({"data-testid":"nodeInfoContent"},n),t)},m=n(22965),f=["align","badge","base","children","connectivityState","content","isBasic","status","nodeName","nodeType"],p=function(e){var t=e.align,n=void 0===t?"bottom":t,l=e.badge,c=e.base,u=void 0===c?{background:"main",padding:[2]}:c,s=e.children,p=e.connectivityState,g=e.content,v=e.isBasic,h=void 0===v||v,b=e.status,y=e.nodeName,x=e.nodeType,E=(0,o.Z)(e,f);return a.createElement(i.Z,(0,r.Z)({align:n,base:u,content:function(){return a.createElement(d,{"data-testid":"nodeInfoTooltip-tooltipContent"},g||(0,m.yK)(l,p,b,y,x))},"data-testid":"nodeInfoTooltip",isBasic:h},E),s)}},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(93416),c=n(12008),u=n(77796),s=n(22965),d=n(24093),m=["id","isLive","name","onClick"];function f(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?f(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(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,f=e.onClick,g=(0,a.Z)(e,m),v=(0,u.ev)(t),h=(0,c.n_)(v),b=h.critical,y=h.warning,x=p(p({},(null===g||void 0===g?void 0:g["data-testid"])&&{dataTestId:null===g||void 0===g?void 0:g["data-testid"]}),{},{isLive:n}),E=(0,s.kR)(p({count:b,type:"critical"},x)),C=(0,s.kR)(p({count:y,type:"warning"},x));return i.createElement(d.Z,(0,r.Z)({badge:"alerts","data-testid":"node-alerts",nodeName:o},g),i.createElement(l.AlertMasterCard,{onClick:E.text||C.text?f:null,pillLeft:E,pillRight:C,size:"small"}))}},72132:function(e,t,n){var r=n(87462),o=n(45987),a=n(67294),i=n(93416),l=n(22965),c=n(24093),u=["children","badge","enabled","name","onClick"];t.Z=function(e){var t=e.children,n=e.badge,s=e.enabled,d=e.name,m=e.onClick,f=(0,o.Z)(e,u),p=(0,l.Dy)(s);return a.createElement(c.Z,(0,r.Z)({badge:n,"data-testid":"node-".concat(n,"-status"),status:p.status,nodeName:d},f),a.createElement(i.Flex,{alignItems:"center",gap:1,onClick:s?m:void 0,cursor:s&&m?"pointer":"default","data-ga":"nodes-list::click-capability::".concat(p.label)},t,a.createElement(i.Pill,{flavour:p.flavour,size:"small"},p.label)))}},53030:function(e,t,n){var r,o=n(87462),a=n(67294),i=n(93416),l=n(24093),c=n(37518),u=n(74059),s=n(15418),d=(r=i.Button,function(e){var t=(0,c.Hm)(),n=(0,u.Q6)();return a.createElement(s.Z,{permission:"node:Create"},(function(c){var u=a.createElement(r,(0,o.Z)({disabled:!c},e));return c?u: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,u))}))});t.Z=d},2077:function(e,t,n){n.d(t,{mt:function(){return k},yp:function(){return O},VG:function(){return C},d5:function(){return w},$g:function(){return I}});n(82526),n(57327),n(88449),n(59849),n(38880),n(49337),n(33321),n(69070);var r=n(29439),o=n(4942),a=(n(92222),n(85827),n(41539),n(25387),n(2490),n(72608),n(47941),n(15581),n(34514),n(54747),n(82772),n(26699),n(32023),n(61874),n(9653),n(67294)),i=n(4480),l=n(4822),c=n(18761),u={byContext:{},loaded:!1,loading:!1,method:null,options:null,group:"average",totalDimensionsCount:0},s=(0,i.xu)({key:"weights",default:u});function d(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=(0,i.CG)({key:"weightsState",get:function(e){return function(t){return(0,t.get)(s(e))}},set:function(e){return function(t,n){return(0,t.set)(s(e),n)}},cachePolicy_UNSTABLE:{eviction:"most-recent"}}),p={ci:"context",ni:"node",ii:"instance",di:"dimension"},g=function(e,t){return function(n){return(0,o.Z)({},p[e.name],t[e.dictionary][n])}},v={ni:g,ii:function(e,t){return function(n,r,a){return(0,o.Z)({},p[e.name],t[e.dictionary][n]?"".concat(t[e.dictionary][n],"@").concat(t.nodes[r[a.ni]]):null)}},ci:g,di:g,row_type:function(e){return function(t){return{type:e.value[t]}}},weight:function(){return function(e){return{weight:e}}},timeframe:function(e){return function(t){return{highlight:e.labels.reduce((function(e,n,r){return m(m({},e),{},(0,o.Z)({},n,t[r]))}),{})}}},"baseline timeframe":function(e){return function(t){return{baseline:e.labels.reduce((function(e,n,r){return m(m({},e),{},(0,o.Z)({},n,t[r]))}),{})}}}},h={contexts:"ci",nodes:"ni",instances:"ii",dimensions:"di"},b={contexts:"id",nodes:"nodeId",instances:"id",dimensions:"id"},y=function(e,t){return null===e||e>t?t:e},x=function(e,t){return null===e||e<t?t:e},E=function(e){e.flavour;var t=e.data,n=e.aggregation,r=e.options,o={},a=0;if(t.v_schema){var i,l=(null===(i=t.v_schema)||void 0===i?void 0:i.items)||[];o=t.result.reduce((function(e,t){var r=t.id,o=t.v;return e[r]=l.reduce((function(e,t,r){var a=t.name,i=t.labels.indexOf(n);return e[a]=o[r][i],e}),{}),e}),{})}else{var c=function(e){var t=Object.keys(e.dictionaries).reduce((function(t,n){t[n]||(t[n]={});var r=b[n];return e.dictionaries[n].forEach((function(e){return t[n][e[h[n]]]="nodeId"===r?e.nd||e.mg:e[r]})),t}),{}),n={},r=e.schema.items.reduce((function(e,r,o){var a=(v[r.name]||v.default)(r,t);return e.push(a),n[r.name]=o,e}),[]);return function(e){return e.reduce((function(t,o,a){return m(m({},t),r[a](o,e,n))}),{})}}(t);o=t.result.reduce((function(e,t){var n=c(t),o=n.dimension,i=n.node,l=n.context,u=n.instance,s=n.type,d=n.weight,m=n.highlight,f=n.baseline;if("node"===s)return e;var p,g,v=(p=e,g=l,function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:y;n&&(n&&"undefined"===typeof p[g][t][n]&&(p[g][t][n]={}),"undefined"===typeof p[g][t][n][e]&&(p[g][t][n][e]=null),r&&(p[g][t][n][e]=a(p[g][t][n][e],o)))});e[l]||(e[l]={dimensions:{},instances:{},nodes:{},weight:null});var h=!!r&&r.includes("anomaly-bit");v("weight","dimensions",o,"dimension"===s,d,h?x:y),v("weight","instances",u,"instance"===s,d,h?x:y),v("weight","nodes",i,"node"===s,d,h?x:y);var b=m?100*m.anomaly_count/m.count:0;v("arHighlight","dimensions",o,"dimension"===s,b,x),v("arHighlight","instances",u,"instance"===s,b,x),v("arHighlight","nodes",i,"node"===s,b,x);var E=f?100*(f.anomaly_count-m.anomaly_count)/(f.count-m.count)===0?1:f.count-m.count:0;v("arBaseline","dimensions",o,"dimension"===s,E,x),v("arBaseline","instances",u,"instance"===s,E,x),v("arBaseline","nodes",i,"node"===s,E,x);var C=E?b/E:0;return v("score","dimensions",o,"dimension"===s,C,x),v("score","instances",u,"instance"===s,C,x),v("score","nodes",i,"node"===s,C,x),"context"===s?e[l].weight=null===e[l].weight||e[l].weight>d?d:e[l].weight:"dimension"===s&&(a+=1),e}),{})}return{byContext:o,totalDimensionsCount:a}},C=function(e,t,n){var r=(0,a.useRef)();return[(0,i._8)((function(o){var a=o.set;return function(o){var i=o.flavour,l=o.highlightAfter,s=o.highlightBefore,d=o.baselineAfter,p=o.baselineBefore,g=o.method,v=o.options,h=o.group,b=o.context,y=o.nodeIds,x=o.aggregation,C=o.groupBy;return a(f(e),m(m({},u),{},{loading:!0})),r.current&&r.current.cancel(),r.current=(0,c.B3)(t,n,{highlightAfter:l,highlightBefore:s,baselineAfter:d,baselineBefore:p,method:g,options:v,group:h,context:b,nodeIds:y,aggregation:x,groupBy:C}),r.current.then((function(t){var n=t.data,r=E({flavour:i,data:n,aggregation:x,options:v}),o=r.byContext,l=r.totalDimensionsCount;a(f(e),{loading:!1,loaded:!0,byContext:o,options:v,totalDimensionsCount:l,method:g,group:h,groupBy:C,error:null})})).catch((function(t){var n;if(!t.isCancel)throw a(f(e),m(m({},u),{},{error:(null===t||void 0===t||null===(n=t.response)||void 0===n?void 0:n.data)||t})),t}))}}),[e]),(0,i._8)((function(t){var n=t.reset;return function(){r.current&&r.current.cancel(),n(f(e))}}),[e])]},I=function(e){return(0,i.sJ)(f(e))},O=function(e){return(0,i.rb)(f(e))},k=.01,w=function(e,t,n){var o=C(e,t,n),i=(0,r.Z)(o,2),c=i[0],u=i[1],s=I(e),d=s.loaded,f=s.loading,p=s.byContext,g=s.totalDimensionsCount,v=s.options,h=s.groupBy,b=function(){var e=(0,l.by)("threshold");return e?Number.parseFloat(e):k}(),y=(0,a.useMemo)((function(){var e=0,t=null===v||void 0===v?void 0:v.includes("raw"),n=(h||[]).length?p:Object.keys(p).reduce((function(n,r){var o=Object.keys(p[r].dimensions).reduce((function(e,n){return!t&&p[r].dimensions[n].weight>b||(e[n]=p[r].dimensions[n]),e}),{}),a=Object.keys(o).length;return e+=a,a?(n[r]=m(m({},p[r]),{},{dimensions:o}),n):n}),{});return[n,Object.keys(n),e]}),[d,b]),x=(0,r.Z)(y,3),E=x[0],O=x[1],w=x[2];return{threshold:b,metadata:E,contexts:O,dimensionsCount:w,totalDimensionsCount:g,loaded:d,loading:f,getWeights:c,resetWeights:u}}},84147:function(e,t,n){n.d(t,{W2:function(){return g},Q7:function(){return w},PP:function(){return k},dA:function(){return I},Ni:function(){return j},pT:function(){return F},MS:function(){return S},If:function(){return N},jg:function(){return E},QX:function(){return C},YZ:function(){return b},Uq:function(){return h},hH:function(){return v},Cd:function(){return P},qU:function(){return y},z3:function(){return Z},w4:function(){return x}});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(4942),o=n(93433),a=(n(66992),n(41539),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(92222),n(47941),n(85827),n(25387),n(2490),n(72608),n(64211),n(41874),n(67294)),i=n(4480);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,r.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 u=c(c({},{loaded:!1,fullyLoaded:!1,loading:!1,id:"",name:"",chartType:"",context:"",family:"",firstEntry:0,lastEntry:0,module:"",plugin:"",priority:0,updateEvery:0,visible:!1,filteredOut:!1,hidden:!1}),{},{domain:"room"}),s=n(37518),d=n(41331),m={ids:(0,i.xu)({key:"roomChartIds",default:[]}),updatedAt:(0,i.xu)({key:"roomChartsUpdatedAt",default:""}),loaded:(0,i.xu)({key:"roomChartsLoaded",default:!1}),error:(0,i.xu)({key:"roomChartsError",default:null}),versions:(0,i.xu)({key:"versions",default:{}}),fetchedFor:(0,i.xu)({key:"fetchedFor",default:[]})};function f(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?f(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=(0,i.CG)({key:"roomChartState",get:function(e){var t=e.id,n=e.key;return function(e){return(0,e.get)(m[n](t))}},set:function(e){var t=e.id,n=e.key;return function(e,r){(0,e.set)(m[n](t),r)}}}),v=function(e){return!!(0,i.sJ)(g({id:e,key:"loaded"}))},h=function(e){return(0,i.sJ)(g({id:e,key:"fetchedFor"}))},b=function(e){return(0,i.sJ)(g({id:e,key:"error"}))},y=function(e){return(0,i.sJ)(g({id:e,key:"versions"}))},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,i.Zl)(g({id:e,key:"versions"}));return(0,a.useCallback)((function(e){return n((function(n){return e="function"===typeof e?e(n):e,t?e:(0,d.ZP)(n,e,{omit:["contextsSoftHash"]})?n:n.contextsHardHash&&"invalidating"!==n.contextsHardHash?e:n}))}),[])},E=function(e){return(0,i.sJ)(g({id:e,key:"ids"}))},C=function(e,t){return(0,i.sJ)(g({id:e,key:t}))},I=(0,i.CG)({key:"roomChartsState/ids",get:function(e){var t=e.roomId;return function(e){return(0,e.get)(m.ids(t))}},set:function(e){var t=e.roomId,n=e.merge,r=void 0===n||n;return function(e,n){(0,e.set)(m.ids(t),(function(e){var t=r?(0,o.Z)(new Set([].concat((0,o.Z)(n),(0,o.Z)(e)))):n;return r&&(0,d.ZP)(t,e)?e:t}))}}}),O=(0,i.xu)({key:"roomsChartBatchState",default:{}}),k=(0,i.CG)({key:"roomChartsState",get:function(e){var t=e.id,n=e.key;return function(e){var r=(0,e.get)(O(t))||u;return n?r[n]:r}},set:function(e){var t=e.id,n=e.key;return function(e,o){var a=e.set;"function"!==typeof o?Object.keys(o).length<1||a(O(t),(function(e){return p(p({},e),{},(0,r.Z)({},n,o))})):a(O(t),(function(e){return p(p({},e),{},(0,r.Z)({},n,o(e[n])))}))}}}),w=(0,i.CG)({key:"roomChartsState/initialize",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.merge,r=void 0===n||n,o=e.nodeIds;return function(e,n){var a=e.set,i=n.values,l=n.merge;a(g({id:t,key:"fetchedFor"}),o),a(O(t),(function(e){var t=Object.keys(i).reduce((function(t,n){var o=i[n].id;return t[o]=p(p(p(p({},u),(r||l)&&e[o]),i[n]),{},{loaded:!0}),t}),r?p({},e):{});return r&&(0,d.ZP)(t,e,{omit:["lastEntry","firstEntry","family"]})?e:t}))}}}),P=function(e,t){return(0,i.sJ)(k({id:e,key:t}))},Z=function(e){return(0,i._8)((function(t){var n=t.set;return function(t){return n(O(e),t)}}),[])},S=function(e,t){return(0,i._8)((function(n){var r=n.snapshot;return function(n){return p(p({},r.getLoadable(k({id:e,key:n})).contents),(null===t||void 0===t?void 0:t[n])||{})}}),[e,t])},j=function(e){var t,n,r,o=(0,s.UL)(),a=(0,i.sJ)(O(o));return(null===(t=a[e])||void 0===t?void 0:t.visible)&&!(null!==(n=a[e])&&void 0!==n&&n.filteredOut)&&!(null!==(r=a[e])&&void 0!==r&&r.hidden)},F=function(e){var t=(0,s.UL)(),n=(0,i.sJ)(O(t));return e.some((function(e){var t,r,o;return(null===(t=n[e])||void 0===t?void 0:t.visible)&&!(null!==(r=n[e])&&void 0!==r&&r.filteredOut)&&!(null!==(o=n[e])&&void 0!==o&&o.hidden)}))},N=function(){var e=(0,s.UL)(),t=(0,i.sJ)(O(e));return(0,a.useCallback)((function(e){return e.some((function(e){var n,r,o;return(null===(n=t[e])||void 0===n?void 0:n.visible)&&!(null!==(r=t[e])&&void 0!==r&&r.filteredOut)&&!(null!==(o=t[e])&&void 0!==o&&o.hidden)}))}),[e,t])},D=(0,i.xu)({key:"instancesByContextAtom",default:{}}),M=(0,i.CG)({key:"roomChartInstancesState",get:function(e){var t=e.id,n=e.context;return function(e){var r=(0,e.get)(D(t));return n?r[n]:r}},set:function(e){var t=e.id,n=e.context;return function(e,o){var a=e.set;"function"!==typeof o?Object.keys(o).length<1||a(D(t),(function(e){return p(p({},e),{},(0,r.Z)({},n,o))})):a(D(t),(function(e){return p(p({},e),{},(0,r.Z)({},n,o(e[n])))}))}}});(0,i.CG)({key:"roomChartInstances/initialize",set:function(e){return function(t,n){(0,t.set)(D(e),(function(e){return p(p({},e),n)}))}}}),(0,i.CG)({key:"roomChartsInstancesState",get:function(e){var t=e.id,n=e.contexts,r=void 0===n?[]:n;return function(e){var n=(0,e.get)(M({id:t}));return r.reduce((function(e,t){return n[t]&&(e[t]=n[t]),e}),{})}}})},71371:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(29439),o=(n(66992),n(41539),n(33948),n(21249),n(57640),n(9924),n(67294)),a=n(93416),i=n(97945),l=n(96104),c=function(e){var t=e.children;return o.createElement(a.Flex,{"data-testid":"selected-nodes-container",alignItems:"center",width:"100%"},o.createElement(a.Flex,{alignItems:"center"},o.createElement(a.TextSmall,{whiteSpace:"nowrap","data-testid":"selected-nodes-container-message",color:"primary"},"Selected filters:")),o.createElement(a.Flex,{overflow:"hidden",padding:[1],gap:1,alignItems:"center",flexWrap:!0},t))},u=(0,o.memo)(c),s=(n(92222),n(91008)),d=function(e){var t=e.onRemove;return o.createElement(a.Box,{"data-testid":"remove-button",as:a.Icon,name:"close_circle",onClick:t,cursor:"pointer",width:3,height:3,color:"textLite"})},m=(0,o.forwardRef)((function(e,t){var n=e.removeFilter,i=e.group,l=e.id,c=e.value,u=e.isAnchorDisabled,m=e.onClick,f=c.split("|"),p=(0,r.Z)(f,2),g=p[0],v=p[1],h=v?"".concat(g," > ").concat(v):g;return o.createElement(a.Flex,{width:"100%",ref:t,"data-testid":"selected-node-item-".concat(l)},o.createElement(a.Pill,{flavour:"neutral",hollow:!0},o.createElement(a.Flex,{position:"relative",gap:2,alignItems:"center"},m?o.createElement(s.Z,{Component:a.TextSmall,disabled:u,onClick:m,cursor:"pointer",color:"text",hoverColor:"primary",visitedColor:"accent",disabledColor:"textLite"},h):o.createElement(a.TextSmall,null,h),o.createElement(d,{onRemove:function(){return n({param:i,removedValue:l})},id:l}))))})),f=(0,o.memo)(m),p={selectedNodeIds:"Node",nodeStatuses:"Status",nodeLabels:"Host label",nodeCapabilities:"Capability",nodeVersions:"Version"},g=(0,o.forwardRef)((function(e,t){var n=e.group,r=e.values,i=e.hasUnion,l=e.union,c=void 0===l?"AND":l,u=e.removeFilter,s=e.Component,d=void 0===s?f:s,m=p[n];return null!==r&&void 0!==r&&r.length?o.createElement(o.Fragment,{key:"filter"},i&&o.createElement(a.TextSmall,{strong:!0},c),o.createElement(a.Pill,{flavour:"neutral",hollow:!0,gap:1,TextComponent:a.Flex,textProps:{alignItems:"center",gap:1},flexWrap:!0},o.createElement(a.TextNano,{strong:!0},m,":"),r.map((function(e,t){return o.createElement(o.Fragment,{key:e},t>0&&o.createElement(a.TextSmall,{strong:!0},"OR"),o.createElement(d,{removeFilter:u,id:e,value:e,group:n}))})))):null})),v=(0,o.forwardRef)((function(e,t){var n=e.removeFilter,r=e.value,a=(0,i.iy)(r,"name"),l=(0,i.iy)(r,"isOffline"),c=(0,i.WR)(r);return o.createElement(f,{ref:t,removeFilter:n,group:"selectedNodeIds",id:r,value:a,isAnchorDisabled:l,onClick:c})})),h=(0,o.memo)((function(e){var t=e.flavour,n=(0,l.wT)({extraKey:t,merge:!1}),i=(0,r.Z)(n,2),c=(0,r.Z)(i[0],2),s=c[0],d=c[1],m=void 0===d?[]:d,f=i[1];return s.length||m.length?o.createElement(a.Flex,{width:"100%",overflow:"hidden"},o.createElement(u,null,s.map((function(e,t){var n=(0,r.Z)(e,2),a=n[0],i=n[1];return o.createElement(g,{key:a,group:a,values:i,hasUnion:t>0,removeFilter:f})})),o.createElement(g,{group:"selectedNodeIds",values:m,hasUnion:!!s.length&&!!m.length,union:"OR",removeFilter:f,Component:v}))):o.createElement("div",null)}))},32356:function(e,t,n){var r=n(87462),o=n(45987),a=n(67294),i=n(97193),l=n(8144),c=["baseKey","extraKey","testIdPrefix","groupProps"];t.Z=function(e){var t=e.baseKey,n=e.extraKey,u=e.testIdPrefix,s=e.groupProps,d=(0,o.Z)(e,c);return a.createElement(l.Z,(0,r.Z)({title:"Nodes",testIdPrefix:u,baseKey:t,extraKey:n,param:"selectedIds",defaultIsOpen:!1,help:"Select nodes individually. By selecting nodes in this filter, you bypass the rest of the filters."},s),a.createElement(i.Z,(0,r.Z)({baseKey:t,extraKey:n,itemProps:{padding:[1,1,1,.5]},searchMargin:[0,0,1],height:{max:"300px"},testIdPrefix:u},d)))}},6015:function(e,t,n){n.d(t,{Xc:function(){return tn},ZP:function(){return cn}});n(82526),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070);var r=n(87462),o=n(29439),a=n(45987),i=n(4942),l=(n(57327),n(41539),n(88449),n(2490),n(59849),n(47941),n(26699),n(32023),n(34553),n(21249),n(57640),n(9924),n(67294)),c=n(71893),u=n(93416),s=n(4822),d=n(96703),m=n(20777),f=n(42754),p=n(62889),g=n(97945),v=n(46038),h=n(21872),b=n(22965),y=function(e){var t=e.node.labels||{},n=t._cloud_instance_region,r=t._cloud_instance_type,o=t._cloud_provider_type;return(0,b.O2)(n)&&(0,b.O2)(r)&&(0,b.O2)(o)?null:l.createElement(v.Z,{name:"Cloud Instance Info"},l.createElement(h.Z,{iconName:"ipNetworking",name:"Cloud provider",size:"small",testId:"sidebar-nodeInfoContent-cloudProvider"},(0,b.MC)(o)),l.createElement(h.Z,{iconName:"universe",name:"Cloud region",size:"small",testId:"sidebar-nodeInfoContent-cloudRegion"},(0,b.MC)(n)),l.createElement(h.Z,{iconName:"disk",name:"Instance type",size:"small",testId:"sidebar-nodeInfoContent-instanceType"},(0,b.MC)(r)))},x=n(83925),E=n(11389),C=function(e){var t=e.node,n=(0,b.Q5)(t.state);return l.createElement(v.Z,{link:"https://learn.netdata.cloud/docs/agent/aclk",name:"Connection"},l.createElement(h.Z,{size:"small",name:"Status",iconName:"integrations",testId:"sidebar-connectionGroup-connectionStatus"},l.createElement(E.Z,{rawState:n})),l.createElement(h.Z,{size:"small",name:"Netdata Agent",iconName:"netdata",testId:"sidebar-connectionGroup-agentVersion"},t.version),t.updateSeverity&&l.createElement(h.Z,{size:"small",name:"Update Status",iconName:"update",testId:"sidebar-connectionGroup-agentVersion"},l.createElement(x.Z,{name:t.name,os:t.os.id,container:t.hw.container,warningLevel:t.updateSeverity,labels:t.labels||{},version:t.version,text:t.updateSeverity})))};n(85827);function I(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 O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=[{name:"MySQL",title:"MySQL",iconName:"serviceMySQL",logoFilename:"mysql.svg",category:"Databases",collectors:["python.d.plugin:mysql","go.d.plugin:mysql"],contexts:["mysql.queries","mysql.net","mysql.connections"],priority:1},{name:"MariaDB",title:"MariaDB",iconName:"serviceMariaDB",logoFilename:"mariadb.svg",category:"Databases",collectors:["python.d.plugin:mysql","go.d.plugin:mysql"],contexts:["mysql.queries","mysql.net","mysql.connections"],priority:2},{name:"Oracle Database",title:"Oracle Database",iconName:"osOracle",logoFilename:"oracle.svg",category:"Databases",collectors:["python.d.plugin:oracledb"],contexts:["oracledb.session_count","oracledb.physical_disk_read_writes","oracledb.tablespace_usage_in_percent"],priority:3},{name:"PostgreSQL",title:"PostgreSQL",iconName:"servicePostgreSQL",logoFilename:"postgresql.svg",category:"Databases",collectors:["python.d.plugin:postgres"],contexts:["postgres.checkpointer","postgres.archive_wal","postgres.db_size"],priority:4},{name:"MongoDB",title:"MongoDB",iconName:"serviceMongoDB",logoFilename:"mongodb.svg",category:"Databases",collectors:["python.d.plugin:mongodb"],contexts:["mongodb.active_clients","mongodb.read_operations","mongodb.write_operations"],priority:5},{name:"ElasticSearch",title:"ElasticSearch",iconName:"serviceElasticSearch",logoFilename:"elasticsearch.svg",category:"Databases",collectors:["python.d.plugin:elasticsearch"],contexts:["elastic.search_performance_total","elastic.index_performance_total","elastic.index_segments_memory"],priority:6},{name:"CouchDB",title:"CouchDB",iconName:"serviceCouchDB",logoFilename:"couchdb.svg",category:"Databases",collectors:["python.d.plugin:couchdb"],contexts:["couchdb.activity","couchdb.response_codes"],priority:7},{name:"Proxy SQL",title:"Proxy SQL",iconName:"serviceProxySQL",logoFilename:"proxysql.svg",category:"Databases",collectors:["python.d.plugin:proxysql"],contexts:["proxysql.questions","proxysql.pool_status","proxysql.pool_overall_net"],priority:8},{name:"Redis",title:"Redis",iconName:"serviceRedis",logoFilename:"redis.svg",category:"Databases",collectors:["python.d.plugin:redis"],contexts:["redis.operations","redis.net","redis.connections"],priority:9},{name:"MemCached",title:"MemCached",iconName:"serviceMemCached",logoFilename:"memcached.svg",category:"Databases",collectors:["python.d.plugin:memcached"],contexts:["memcached.cache","memcached.net","memcached.connections"],priority:10},{name:"RethinkDB",title:"RethinkDB",iconName:"serviceRethinkDB",logoFilename:"rethinkdb.svg",category:"Databases",collectors:["python.d.plugin:rethinkdbs"],contexts:["rethinkdb.cluster_queries","rethinkdb.cluster_clients_active","rethinkdb.cluster_connected_servers"],priority:11},{name:"Solr",title:"Solr",iconName:"serviceSolr",logoFilename:"solr.svg",category:"Databases",collectors:["go.d.plugin:solr"],contexts:["solr.search_requests","solr.update_requests"],priority:12},{name:"RabbitMQ",title:"RabbitMQ",iconName:"serviceRabbitMQ",logoFilename:"rabbitmq.svg",category:"Messaging",collectors:["python.d.plugin:rabbitmq","go.d.plugin:rabbitmq"],contexts:["rabbitmq.queued_messages","rabbitmq.erlang_run_queue"],priority:1},{name:"Beanstalkd",title:"Beanstalkd",iconName:"serviceBeanstalk",logoFilename:"beanstalkd.svg",category:"Messaging",collectors:["python.d.plugin:beanstalk"],contexts:["beanstalk.total_jobs_rate","beanstalk.connections_rate","beanstalk.current_tubes"],priority:2},{name:"Apache",title:"Apache",iconName:"serviceApache",logoFilename:"apache.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:apache","go.d.plugin:apache"],contexts:["apache.requests","apache.connections","apache.net"],priority:1},{name:"nginx",title:"nginx",iconName:"serviceNginx",logoFilename:"nginx.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:nginx","go.d.plugin:nginx"],contexts:["nginx.requests","nginx.connections"],priority:2},{name:"nginx+",title:"nginx+",iconName:"serviceNginxPlus",logoFilename:"nginx-plus.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:nginx_plus"],contexts:["nginx_plus.requests_total","nginx_plus.connections_statistics"],priority:3},{name:"lighthttpd",title:"lighthttpd",iconName:"serviceLighthttpd",logoFilename:"lighthttpd.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:lighttpd","go.d.plugin:lighttp"],contexts:["lighttpd.requests","lighttpd.net"],priority:4},{name:"lighthttpd2",title:"lighthttpd2",iconName:"serviceLighthttpd2",logoFilename:"lighthttpd.svg",category:"Web, Proxies, LBs, Streaming",collectors:["go.d.plugin:lighttpd2"],contexts:["lighttpd2.requests","lighttpd2.traffic"],priority:5},{name:"LiteSpeed",title:"LiteSpeed",iconName:"serviceLiteSpeed",logoFilename:"litespeed.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:litespeed"],contexts:["litespeed.requests","litespeed.requests_processing"],priority:6},{name:"Tomcat",title:"Tomcat",iconName:"serviceApacheTomcat",logoFilename:"tomcat.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:tomcat"],contexts:["tomcat.accesses","tomcat.processing_time","tomcat.bandwidth"],priority:7},{name:"PHP FPM",title:"PHP FPM",iconName:"servicePhpFpm",logoFilename:"php-fpm.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:phpfm"],contexts:["phpfpm.performance","phpfpm.requests","phpfpm.connections"],priority:8},{name:"HAproxy",title:"HAproxy",iconName:"serviceHAProxy",logoFilename:"haproxy.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:haproxy"],contexts:["haproxy_f.scur","haproxy_f.bin","haproxy_f.bout"],priority:9},{name:"Squid",title:"Squid",iconName:"serviceSquid",logoFilename:"squid.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:squid"],contexts:["squid.clients_requests","squid.clients_net"],priority:10},{name:"Traefik",title:"Traefik",iconName:"serviceTraefik",logoFilename:"traefik.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:traefik"],contexts:["traefik.response_codes"],priority:11},{name:"Varnish",title:"Varnish",iconName:"serviceVarnish",logoFilename:"varnish.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:varnish"],contexts:["varnish.session_connection","varnish.client_requests"],priority:12},{name:"IPVS",title:"IPVS",iconName:"serviceIPVS",logoFilename:"load-balancer.svg",category:"Web, Proxies, LBs, Streaming",collectors:["proc.plugin:/proc/net/ip_vs_stats"],contexts:["ipvs.sockets","ipvs.packets","ipvs.net"],priority:13},{name:"Web Log",title:"Web Log",iconName:"serviceWebLog",logoFilename:"log-file.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:web_log","go.d.plugin:web_log"],contexts:["web_log.response_codes","web_log.bandwidth"],priority:14},{name:"IPFS",title:"IPFS",iconName:"serviceIPFS",logoFilename:"ipfs.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:ipfs"],contexts:["ipfs.bandwidth","ipfs.peers"],priority:15},{name:"IceCast Media Streaming",title:"IceCast Media Streaming",iconName:"serviceIceCast",logoFilename:"icecast.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:icecast"],contexts:["icecast.listeners"],priority:16},{name:"RetroShare",title:"RetroShare",iconName:"serviceRetroShare",logoFilename:"retroshare.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:retroshare"],contexts:["retroshare.bandwidth","retroshare.peers"],priority:17},{name:"HTTP Check",title:"HTTP Check",iconName:"serviceHTTPCheck",logoFilename:"server-connection.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:httpcheck","go.d.plugin:httpcheck"],contexts:["httpcheck.responsetime","httpcheck.status"],priority:18},{name:"x509 Check",title:"x509 Check",iconName:"serviceX509Check",logoFilename:"data-encryption.svg",category:"Web, Proxies, LBs, Streaming",collectors:["go.d.plugin:x509check"],contexts:["x509check.time_until_expiration"],priority:19}].reduce((function(e,t){return O(O({},e),{},(0,i.Z)({},t.name,t))}),{}),w=function(e){var t;return(null===(t=k[e])||void 0===t?void 0:t.iconName)||"services"},P=function(e){var t,n=e.node;return null!==(t=n.services)&&void 0!==t&&t.length?l.createElement(v.Z,{link:"https://learn.netdata.cloud/docs/agent/collectors/collectors#service-and-application-collectors",name:"Services"},n.services.map((function(e){return l.createElement(h.Z,{size:"small",key:e,iconName:w(e),name:e,testId:"sidebar-ServicesGroup-service-".concat(e)})}))):null},Z=(n(23157),function(e){var t=e.node,n=(void 0===t?{}:t).labels,r=void 0===n?{}:n,o=Object.keys(r).filter((function(e){return!e.startsWith("_")}));return l.createElement(v.Z,{link:"https://learn.netdata.cloud/guides/using-host-labels",name:"Host labels",isEnabled:o.length>0,noDataLabel:"No Data"},o.length>0&&o.map((function(e){return l.createElement(h.Z,{size:"small",key:e,name:e,testId:"sidebar-hostLabelsGroup-label"},r[e])})))}),S=(n(38862),n(52428)),j=function(e){var t=e.node;return l.createElement(v.Z,{name:"Files"},l.createElement(u.Flex,{gap:1,padding:[0,1],alignItems:"center"},l.createElement(u.Box,{sx:{fontWeight:"500",letterSpacing:"1px"},as:u.Text,color:"textLite"},"{;}"),l.createElement(u.TextSmall,null,"View node info in"),l.createElement(u.Flex,{cursor:"pointer",gap:1,onClick:(0,S.J)(JSON.stringify(t),{text:"JSON copied to clipboard"})},l.createElement(u.TextSmall,{color:"primary"},"json"),l.createElement(u.Icon,{color:"primary",size:"small",name:"copy"}))))},F=(0,l.memo)(j),N={},D=function(e){var t=e.nodeIds,n=e.flavour,r=(0,s.tk)("sidebarNodeId",{defaultValue:t[0],flavour:"val",extraKey:n}),o=(0,g.iy)(r),a=o.hw||N,i=o.os||N,c=(0,b.jo)(a.container,a.virtualization);return o.id?l.createElement(u.Flex,{column:!0,gap:1,overflow:{horizontal:"hidden",vertical:"auto"},padding:[2],width:"100%"},l.createElement(u.TextBig,{strong:!0},"Info"),l.createElement(u.Flex,{column:!0,padding:[2,0,3],border:{side:"bottom",color:"borderSecondary"}},false,l.createElement(u.TextSmall,{"data-testid":"sidebar-nodeInfoContent-hostname",strong:!0},"Hostname: ",o.name)),l.createElement(C,{node:o}),l.createElement(y,{node:o}),l.createElement(v.Z,{name:"System info"},l.createElement(h.Z,{size:"small",name:"Type",iconName:"virtualization",testId:"sidebar-nodeInfoContent-type"},l.createElement(u.Pill,{hollow:!0,icon:c.icon,flavour:"neutral"},c.label)),l.createElement(h.Z,{size:"small",name:"O/S version",iconName:"database",testId:"sidebar-nodeInfoContent-osVersions"},(0,b.cB)(i.nm,i.v,", ")),l.createElement(h.Z,{iconName:"viewSingleNode",name:"Architecture",size:"small",testId:"sidebar-nodeInfoContent-architecture"},(0,b.MC)(a.architecture)),!!i.kernel&&l.createElement(h.Z,{size:"small",name:"Kernel",iconName:"metrics_explorer",testId:"sidebar-nodeInfoContent-kernel"},(0,b.cB)(i.kernel.nm,i.kernel.v,", ")),l.createElement(h.Z,{size:"small",name:"CPU",iconName:"cpu",testId:"sidebar-nodeInfoContent-cpu"},(0,b.ys)(a.cpuFrequency)," (",(0,b.MC)(a.cpus,1===a.cpus?"Core":"Cores"),")"),l.createElement(h.Z,{size:"small",name:"Memory",iconName:"ram",testId:"sidebar-nodeInfoContent-ram"},(0,b.MC)((0,b.yo)(a.memory),"RAM")),l.createElement(h.Z,{size:"small",name:"Hard disk size",iconName:"disk",testId:"sidebar-nodeInfoContent-disk"},(0,b.yo)(a.diskSpace))),l.createElement(Z,{node:o}),l.createElement(P,{node:o}),l.createElement(F,{node:o})):l.createElement(u.Text,null,"Select a node to see its\u2019 info")},M=n(82351),L=n(93433),_=(n(2707),n(77796)),K=n(12008),A=n(91008),T=(n(92222),n(89250)),B=n(12599),V=n(89405),z=n(50358),G=(0,c.default)(u.Flex).withConfig({displayName:"alert__AlertContainer",componentId:"sc-ndxwzg-0"})(["transition:opacity 0.3s ease-in-out;&:hover{& ","{opacity:0.7;}}"],u.Text),q={overview:"overview",k8s:"kubernetes",singleNode:"nodes/:nodeId"},R=function(e){var t=e.alert,n=e.onAlertClick,r=e.flavour,o=t.value,a=t.instance,i=t.lastStatusChange,c=t.id,s=t.status,d=t.units,m=t.name,f=t.summary,p=t.nodeId,v=(0,g.iy)(p,"name"),h=(0,V.rA)(),b=h.localeTimeString,y=h.localeDateString,x=(0,l.useMemo)((function(){var e=new Date(1e3*i);return isNaN(e.valueOf())?"":"".concat(y(e,{long:!1})," ").concat(b(e,{secs:!1}))}),[i,b,y]),E=(0,l.useCallback)((function(){n({alertId:c})}),[]),C=(0,T.UO)(),I=(0,T.s0)();return l.createElement(G,{column:!0,padding:[4,0],gap:1,border:{color:"border",side:"bottom"},"data-testid":"alertItem","data-test-name":"alertItem-".concat(m)},l.createElement(u.Flex,{column:!0},l.createElement(M.Z,{plain:!0,content:f,isBasic:!0},l.createElement(u.Text,{strong:!0,"data-testid":"alertItem-alertName"},m)),l.createElement(u.TextSmall,{wordBreak:"break-all","data-testid":"alertItem-chartId"},a," @ ",v)),l.createElement(u.Flex,{alignItems:"center",justifyContent:"between"},l.createElement(z.Z,{loaded:!0,status:s,units:d,value:o,flex:!1,"data-testid":"alertItem-alertValuePill"}),l.createElement(u.TextMicro,{color:"textLite","data-testid":"alertItem-alertDate"},x)),l.createElement(u.Flex,{gap:1},!!q[r]&&l.createElement(l.Fragment,null,l.createElement(A.Z,{Component:u.TextMicro,onClick:function(){I((0,B.Gn)("/spaces/:spaceSlug/rooms/:roomSlug/".concat(q[r]),C),{replace:!0,state:{alertId:c}})}},"Plot on chart"),l.createElement(u.TextMicro,{color:"textLite"},"\u2022")),l.createElement(A.Z,{Component:u.TextMicro,onClick:E},"Show info")))},W=n(61294),H=function(e,t){return e.status===t.status?0:"critical"===e.status?-1:1},U={nodesView:!0},J=function(e){var t=e.nodeIds,n=e.flavour,r=(0,s.D0)("sidebarNodeId",{flavour:"val",extraKey:n}),a=(0,o.Z)(r,2),i=a[0],c=a[1],d=(0,g.iy)(i),m=(0,_.rw)(i?[i]:t),f=(0,K.ER)(m),p=(0,l.useMemo)((function(){return(0,L.Z)(f).sort(H)}),[f]),v=(0,W.Z)(),h=(0,o.Z)(v,4),b=h[0],y=h[1],x=h[3],E=f.length?"(".concat(f.length,")"):"";return l.createElement(u.Flex,{width:"100%",column:!0,overflow:"hidden"},l.createElement(u.Flex,{column:!0,gap:5,padding:[2]},l.createElement(u.Flex,{column:!0},l.createElement(M.Z,{content:"Currently Active alerts",align:"bottom"},l.createElement(u.TextBig,{strong:!0,"data-testid":"nodeAlertsView-activeAlerts-header"},"Alerts ",E)),!!U[n]&&l.createElement(u.TextMicro,null,"Showing ",d.id?l.createElement(u.TextMicro,{strong:!0},d.name):"room"," alerts"," ",!!d.id&&l.createElement(l.Fragment,null," ","-"," ",l.createElement(A.Z,{Component:u.TextMicro,onClick:function(){return c("")}},"Show all")))),!f.length&&l.createElement(u.Flex,{column:!0,gap:8,padding:[0,5],"data-testid":"nodesAlertsView-blankSlate",alignItems:"center"},l.createElement(u.Icon,{name:"checkmark",width:"90px",height:"90px"}),l.createElement(u.H4,{textAlign:"center"},1!==t.length?"No":"This node has no"," active alerts, you are all good!"))),l.createElement(u.Flex,{column:!0,overflow:{vertical:"auto"},padding:[0,2]},p.map((function(e){return l.createElement(R,{key:e.id,alert:e,onAlertClick:y,flavour:n})}))),b&&x)},Q=(n(74916),n(15306),n(85993)),Y=n(70982),X=n(28989),$=n(62525),ee=n(44109),te=(n(25387),n(72608),n(77601),n(5441)),ne=n(2077),re=["chartIds","weightKey","flavour"],oe=function(e){var t=e.chartIds,n=e.weightKey,i=e.flavour,c=void 0===i?"rhs":i,s=(0,a.Z)(e,re),d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.flavour,r=t.weightKey,a=void 0===r?"weight":r,i=(0,te.E)(),c=(0,ne.$g)({nodeIds:i,flavour:n}),u=c.loaded,s=c.byContext;return(0,l.useMemo)((function(){if(!u)return[!1,null,null];var t=null,n=e.reduce((function(e,n){var r;if(/::/.test(n)){var i=n.split("::");n=i[0],r=i[1]}var l=r?function(e,t,n,r){var o,a,i=r.max,l=r.maxWeightContext,c=r.weightKey,u="".concat(n,",").concat(t);return e[u]&&((null===(o=e[u])||void 0===o?void 0:o[c])||0)>i?[(null===(a=e[u])||void 0===a?void 0:a[c])||0,t]:[i,l]}(s,n,r,{max:e,maxWeightContext:t,weightKey:a}):function(e,t,n){var r=n.max,o=n.maxWeightContext,a=n.weightKey;return e[t]&&(e[t][a]||0)>r?[e[t][a]||0,t]:[r,o]}(s,n,{max:e,maxWeightContext:t,weightKey:a}),c=(0,o.Z)(l,2),u=c[0],d=c[1];return t=d,u}),0);return[!0,n,t]}),[e,s])}(t,{flavour:c,weightKey:n}),m=(0,o.Z)(d,3),f=m[0],p=m[1],g=m[2];return f?l.createElement(M.Z,{content:g,align:"top",enterDelay:200,activateOn:"hover"},l.createElement(u.Pill,(0,r.Z)({hollow:!0,flavour:"neutral",tiny:!0,cursor:s.onClick?"pointer":"auto"},s),(0,ee.Z)(p))):null};function ae(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}var ie=(0,c.default)(u.IconButton).attrs((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({flavour:"borderless",cursor:"pointer",width:"12px",height:"12px",iconColor:"textLite",padding:[0]},e)})).withConfig({displayName:"config__ConfigButton",componentId:"sc-1q0bfbp-0"})([""]),le=(0,c.default)(u.Flex).withConfig({displayName:"menuSettings__SettingsContainer",componentId:"sc-1nq4zzt-0"})(["display:",";"],(function(e){return e.active&&!e.hasSubmenuActive?"flex":"none"})),ce=(0,c.css)(["","{display:flex;"," .button-icon__color{fill:"," !important;}}"],le,ie,(0,u.getColor)("text")),ue=function(e){e.id;var t=e.chartIds,n=e.arFlavour,r=e.showAR,o=void 0===r||r,a=(e.showConfig,e.weightKey);e.active,e.hasSubmenuActive,e.extraKey;return l.createElement(u.Flex,{gap:1,alignItems:"center"},!1,o&&l.createElement(oe,{chartIds:t,flavour:n,weightKey:a}))},se=["active","id","name","link","children"],de=["active"],me=["id","useItemsAreVisible"],fe=["id"],pe=["id","onSubMenuClick"],ge=["id"];function ve(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 he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var be,ye=(0,c.default)(u.TextSmall).attrs((function(e){var t=e.active,n=e.id,r=e.name,o=e.link,i=e.children,l=(0,a.Z)(e,se);return he({strong:t,children:r||i||n,href:"#".concat(o),"data-sidebar-submenuid":n,truncate:!0,whiteSpace:"normal",color:"textLite",wordWrap:"break-word"},l)})).withConfig({displayName:"menuItem__MenuLabelWrapper",componentId:"sc-18613h0-0"})(["&&&{text-decoration:none;}"]),xe=(0,c.css)(["border-left:1px solid ",";","{color:",";}"],(0,u.getColor)("key"),ye,(0,u.getColor)("key")),Ee=(0,c.default)(u.Flex).attrs((function(e){var t=e.active;return he({width:"98%",padding:[.5,1,.5,4],role:"listitem",as:"a","aria-current":t,active:t},(0,a.Z)(e,de))})).withConfig({displayName:"menuItem__Container",componentId:"sc-18613h0-1"})(["&&&{border-left:1px solid transparent;"," "," text-decoration:none;cursor:pointer;&:hover{"," ","}}"],(function(e){return e.active&&xe}),(function(e){return e.active&&"".concat(ye," { font-weight: bold; }")}),xe,ce),Ce=(0,$.Ji)(ye,(function(e){var t=e.name,n=e.id;return{children:t||n}})),Ie=(0,l.forwardRef)((function(e,t){var n=e.id,o=e.useItemsAreVisible,i=(0,a.Z)(e,me),c=o(i.chartIds);return i.forceVisibility||c?l.createElement(Ee,(0,r.Z)({ref:t,as:"a",gap:2,alignItems:"center",justifyContent:"between","data-sidebar-menugroupid":n},i)):null})),Oe=(0,$.Ji)(Ie,(function(e){var t=e.id,n=e.link,r=e.chartIds,o=e.forceVisibility;return{id:t,href:"#".concat(n),chartIds:r,forceVisibility:o}})),ke=(0,$.Ji)(function(e){return function(t){var n=t.id,o=(0,a.Z)(t,ge),i=(0,X.xz)((function(e){return n===e}));return l.createElement(e,(0,r.Z)({active:i,id:n},o))}}((be=function(e){var t=e.id,n=(0,a.Z)(e,fe);return l.createElement(Oe,(0,r.Z)({id:t},n),l.createElement(Ce,{id:t}),l.createElement(ue,(0,r.Z)({},n,{id:t})))},function(e){var t=e.id,n=e.onSubMenuClick,o=(0,a.Z)(e,pe),i=(0,l.useMemo)((function(){return n&&function(e){return n(t,e)}}),[n,t]);return l.createElement(be,(0,r.Z)({onClick:i,id:t},o))}))),we=["id","subMenuChartIds","useItemsAreVisible"],Pe=["id"],Ze=["subMenuIds","onSubMenuClick","useItemsAreVisible"],Se=["id","onMenuGroupClick","onSubMenuClick"],je=["id","active","hasSubmenuActive","onMenuGroupClick","onSubMenuClick","showChildren","useItemsAreVisible"],Fe=["id"],Ne=(0,c.default)(u.Text).attrs({color:"textLite"}).withConfig({displayName:"menuGroup__MenuGroupLabelWrapper",componentId:"sc-1q9pvct-0"})(["font-weight:500;"]),De=(0,c.default)(u.Flex).attrs({flex:!1,color:"textLite",width:6,alignItems:"center",justifyContent:"center"}).withConfig({displayName:"menuGroup__FaIcon",componentId:"sc-1q9pvct-1"})([""]),Me=(0,c.css)(["border-left:2px solid ",";","{color:",";}"],(0,u.getColor)("text"),Ne,(0,u.getColor)("text")),Le=(0,c.default)(u.Flex).attrs({width:"98%"}).withConfig({displayName:"menuGroup__Container",componentId:"sc-1q9pvct-2"})(["&&&{border-left:2px solid transparent;"," "," text-decoration:none;cursor:pointer;&:hover{"," ","}}"],(function(e){return e.active&&Me}),(function(e){return e.active&&"".concat(Ne," { font-weight: bold; }")}),Me,ce),_e=(0,Q.Lj)(Ne,(function(e){var t=e.name,n=e.id;return{children:t||n}})),Ke=(0,Q.Lj)((function(e){var t=e.icon;return t?l.createElement(De,null,u.iconsList[t]?l.createElement(u.Icon,{name:t,size:"small",color:"text"}):l.createElement(Y.G,{icon:t})):null}),(function(e){return{icon:e.icon}})),Ae=(0,l.forwardRef)((function(e,t){var n=e.id,o=e.subMenuChartIds,i=e.useItemsAreVisible,c=(0,a.Z)(e,we),u=i(o);return c.forceVisibility||u?l.createElement(Le,(0,r.Z)({ref:t,as:"a",gap:2,padding:[1],alignItems:"center",justifyContent:"between","data-sidebar-menugroupid":n},c)):null})),Te=(0,Q.Lj)(Ae,(function(e){var t=e.id,n=e.link,r=e.subMenuChartIds,o=e.forceVisibility;return{id:t,href:"#".concat(n),subMenuChartIds:r,forceVisibility:o}})),Be=function(e){var t=e.id,n=(0,a.Z)(e,Pe);return l.createElement(Te,(0,r.Z)({id:t},n),l.createElement(u.Flex,null,l.createElement(Ke,{id:t}),l.createElement(_e,{id:t})),l.createElement(ue,(0,r.Z)({},n,{id:t})))},Ve=(0,Q.Lj)((function(e){var t=e.subMenuIds,n=e.onSubMenuClick,o=e.useItemsAreVisible,i=(0,a.Z)(e,Ze);return l.createElement(u.Flex,(0,r.Z)({column:!0,role:"list",padding:[0,0,2,0]},i),t.map((function(e){return l.createElement(ke,{key:e,id:e,onSubMenuClick:n,useItemsAreVisible:o})})))}),(function(e){return{subMenuIds:e.subMenuIds}})),ze=(0,l.forwardRef)((function(e,t){return l.createElement(u.Flex,(0,r.Z)({as:"li",column:!0,ref:t},e))})),Ge=function(e){return function(t){var n=t.id,o=(0,a.Z)(t,Fe),i=(0,X.zE)(n),c=(0,X.xz)((function(e){return!!e}));return l.createElement(e,(0,r.Z)({active:i,hasSubmenuActive:c,id:n},o))}}(function(e){return function(t){var n=t.id,o=t.onMenuGroupClick,i=t.onSubMenuClick,c=(0,a.Z)(t,Se),u=(0,l.useMemo)((function(){return o&&function(e){return o(n,e)}}),[o,n]),s=(0,l.useMemo)((function(){return i&&function(e,t){return i(n,e,t)}}),[i,n]);return l.createElement(e,(0,r.Z)({id:n,onMenuGroupClick:u,onSubMenuClick:s},c))}}((function(e){var t=e.id,n=e.active,o=e.hasSubmenuActive,i=e.onMenuGroupClick,c=e.onSubMenuClick,u=e.showChildren,s=void 0===u||u,d=e.useItemsAreVisible,m=(0,a.Z)(e,je),f=(0,Q.nk)(t);return f?l.createElement(ze,m,l.createElement(Be,(0,r.Z)({},f,{id:t,onClick:i,active:n,hasSubmenuActive:o,chartIds:f.subMenuChartIds,useItemsAreVisible:d})),s&&n&&l.createElement(Ve,{id:t,onSubMenuClick:c,useItemsAreVisible:d})):null}))),qe=["menuGroupIds","onMenuGroupClick","onSubMenuClick","menuGroupProps","useItemsAreVisible","extraKey"],Re=(0,l.forwardRef)((function(e,t){return l.createElement(u.Flex,(0,r.Z)({as:"ul",width:"100%",role:"complementary",column:!0,overflow:{vertical:"auto"},"data-sidebar":"true",ref:t},e))})),We=function(){return!0},He=(0,l.memo)((function(e){var t=e.menuGroupIds,n=e.onMenuGroupClick,o=e.onSubMenuClick,i=e.menuGroupProps,c=e.useItemsAreVisible,u=void 0===c?We:c,s=e.extraKey,d=(0,a.Z)(e,qe);return l.createElement(Re,d,t.map((function(e){return l.createElement(Ge,(0,r.Z)({key:e,id:e,onMenuGroupClick:n,onSubMenuClick:o,useItemsAreVisible:u,extraKey:s},i))})))})),Ue=(0,Q.jj)(He),Je=(0,l.memo)(Ue),Qe=n(15394),Ye=n(92432),Xe=n(27856),$e=n(41481),et=function(){var e=(0,$e.KR)(),t=(0,o.Z)(e,2),n=t[0],r=t[1],a=(0,l.useCallback)((0,Xe.D)(300,(function(e){r(e.target.value),(0,Ye.L)("toc-search","search-automatic-trigger","charts-view",e.target.value)})),[]),i=(0,u.useInputValue)({value:n,onChange:a}),c=(0,o.Z)(i,5),s=c[0],d=c[1],m=c[4].resetValue,f=(0,l.useCallback)((function(){r(""),m(),(0,Ye.L)("toc-search","clear-search-button","charts-view")}),[]);return l.createElement(u.TextInput,{value:s,onChange:d,size:"small",iconRight:s&&l.createElement(u.Icon,{name:"x",color:"textLite",cursor:"pointer",size:"small",onClick:f,"data-testid":"filterChartsInput-clearButton"}),placeholder:"Search charts",name:"Search charts","data-testid":"filterChartsInput",containerStyles:{width:"100%"}})},tt=(0,Xe.D)(300,(function(e,t){return(0,Ye.L)("toc-search","search-results","charts-view",e,"".concat(t," -- charts"))})),nt=function(){var e=(0,$e.T)(),t=(0,$e.J1)(),n=t.filteredChartsCount,r=t.chartsCount;return(0,l.useEffect)((function(){e&&tt(e,n)}),[e,n]),l.createElement(l.Fragment,null,l.createElement(u.TextMicro,{alignSelf:"end",color:"textLite",margin:[1,0,0],"data-testid":"numberOfChartsIndication"},"Showing"," ",l.createElement(u.TextMicro,{strong:!0,color:"textDescription","data-testid":"numberOfChartsIndication-filteredChartsCount"},n)," ","of total"," ",l.createElement(u.TextMicro,{strong:!0,color:"textDescription","data-testid":"numberOfChartsIndication-chartsCount"},r)," ","charts"),l.createElement(A.Z,{Component:u.TextMicro,alignSelf:"end","data-ga":"toc-search::click-link-collectors::".concat(name),href:"https://learn.netdata.cloud/docs/agent/collectors/",target:"_blank",rel:"noopener noreferrer"},"Add more charts"))},rt=function(){return(0,$e.J1)().filteredChartsCount?null:l.createElement(u.Flex,{width:"100%",gap:1,margin:[4,0,0],padding:[2],round:1,background:"disabledBackground",alignItems:"center","data-testid":"noResultsWereFound"},l.createElement(u.Icon,{name:"information",color:"textDescription"}),l.createElement(u.TextMicro,{strong:!0,color:"textDescription"},"No results were found"))},ot=(0,te.Z)(nt),at=function(){return l.createElement(u.Flex,{column:!0,alignItems:"center",height:{min:"65px"}},l.createElement(et,null),l.createElement(ot,null),l.createElement(rt,null))},it=n(84147),lt=n(45335),ct=n(46189),ut=n(46667),st=n(74059),dt=n(37518),mt=ct.Z.demoSlug,ft=ct.Z.demoFavourites,pt=(0,c.default)(u.Icon).attrs({size:"small",name:"chevron_left",color:"textLite"}).withConfig({displayName:"favourites__StyledChevron",componentId:"sc-mwcyj8-0"})(["transition:transform 0.2s ease-in-out;"]),gt={showChildren:!1},vt=function(e){var t,n=e.onMenuGroupClick,r=e.onSubMenuClick,a=e.initialChartName,i=e.flavour,c=(0,st.uk)(),s=(0,dt.vf)(),d=mt===c&&ft[s]||[],m=(0,Q.UG)((t=d,function(e){return t.reduce((function(t,n){return e[n]?[].concat((0,L.Z)(t),[n]):t}),[])})),f=(0,Qe.Z)({onMenuGroupClick:n,onSubMenuClick:r}),p=f.onMenuGroupClick,g=f.onSubMenuClick,v=(0,ut.Z)(!0),h=(0,o.Z)(v,2),b=h[0],y=h[1],x=(0,lt.sm)();return(0,l.useEffect)((function(){x&&!a&&m.length&&n(m[0])}),[x,a]),m.length?l.createElement(u.Flex,{column:!0,gap:1,border:{side:"bottom",color:"borderSecondary"},padding:[0,0,2]},l.createElement(u.Flex,{onClick:y,cursor:"pointer",alignItems:"center",justifyContent:"between"},l.createElement(u.Flex,{gap:1,alignItems:"center"},l.createElement("i",{className:"fa-regular fa-star"}),l.createElement(u.Text,{strong:!0,color:"textFocus"},"Favourites")),l.createElement(pt,{rotate:b?1:3,alignSelf:"end"})),l.createElement(u.Collapsible,{open:b,padding:[0,0,0,2]},l.createElement(He,{menuGroupIds:m,onMenuGroupClick:p,onSubMenuClick:g,menuGroupProps:gt,extraKey:i}))):null},ht={nodesView:function(){return!0},default:it.pT},bt=function(e){return(0,Ye.L)("metric-sidebar","click-".concat(xt(e)),"mn-overview")},yt=function(e){var t=xt(e);(0,Ye.L)("metric-sidebar","click-".concat(t),"mn-overview",t)},xt=function(e){return e.startsWith("Kubernetes")?"k8s":e.replace(/[^\w]/g,"-").toLowerCase()},Et=function(e){var t=e.initialChartName,n=e.loaded,r=e.hasSearch,o=void 0===r||r,a=e.flavour,i=(0,Qe.Z)({onMenuGroupClick:bt,onSubMenuClick:yt,loaded:n}),c=i.onMenuGroupClick,s=i.onSubMenuClick,d=ht[a]||ht.default;return l.createElement(l.Fragment,null,o&&l.createElement(u.Flex,{column:!0,position:"sticky",top:"0",gap:1,padding:[0,2]},l.createElement(u.Text,{strong:!0},"Sections and Charts"),l.createElement(at,null)),n&&l.createElement(l.Fragment,null,l.createElement(vt,{onMenuGroupClick:c,onSubMenuClick:s,initialChartName:t,useItemsAreVisible:d,flavour:a}),l.createElement(Je,{position:"relative",onMenuGroupClick:c,onSubMenuClick:s,width:"100%",useItemsAreVisible:d,extraKey:a})))},Ct=(n(69720),n(597)),It=n(8144),Ot=n(46742);function kt(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}var wt=function(e){var t=e.extraKey,n=e.param,r=e.paramKey,a=(0,Ct.Kn)({extraKey:t,omit:n,keepAll:!0}),c=(0,s.tk)(n,{extraKey:t,flavour:"arr"});return(0,l.useMemo)((function(){return Object.entries(a.reduce((function(e,t){return e[t[r]]=(e[t[r]]||0)+(t.hidden?0:1),e}),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Ct.VP[n]||{}))).map((function(e){var t=(0,o.Z)(e,2);return{id:t[0],count:t[1]}})).sort(Ct.tN[n]||Ct.tN.default)}),[a.filter((function(e){return e.hidden})).length,c])},Pt=function(e){return e.id},Zt=function(e){var t=e.baseKey,n=e.param,o=e.paramKey,a=e.extraKey,i=e.testIdPrefix,c=e.title,u=e.groupProps,s=wt({param:n,extraKey:a,paramKey:o});return s.length?l.createElement(It.Z,(0,r.Z)({title:c,testIdPrefix:i,baseKey:t,extraKey:a,param:n,help:"Filter the alerts. Count next to each item refer to the number of alerts that will be selected."},u),l.createElement(Ot.ZP,{param:n,baseKey:t,extraKey:a,testIdPrefix:i,collection:s,getValue:Pt,getLabel:Pt})):null},St=(n(86535),n(99244),n(74326),n(82499),n(64211),n(41874),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(91966)),jt=n.n(St),Ft=n(65565),Nt=["baseKey","extraKey","param","testIdPrefix","itemsProps","itemProps","groupProps"];function Dt(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 Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lt=function(e){var t=e.baseKey,n=e.extraKey,i=e.param,c=e.testIdPrefix,u=e.itemsProps,d=e.itemProps,m=e.groupProps,f=(0,a.Z)(e,Nt),p=function(e){var t=e.extraKey,n=e.param,r=(0,Ct.Kn)({extraKey:t,omit:n,keepAll:!0}),a=(0,s.tk)(n,{extraKey:t,flavour:"arr"});return(0,l.useMemo)((function(){return Object.entries(r.reduce((function(e,t){var n=t.type,r=t.component,o=t.hidden;return e[n]=e[n]||{count:0,children:{}},e[n].count=(e[n].count||0)+(o?0:1),e[n].children[r]=(e[n].children[r]||0)+(o?0:1),e}),{})).reduce((function(e,t){var n=(0,o.Z)(t,2),r=n[0],a=n[1],i=a.count,l=a.children;return e.push({id:r,count:i,children:Object.entries(l).map((function(e){var t=(0,o.Z)(e,2),n=t[0],a=t[1];return{value:"".concat(r,"|").concat(n),label:n,count:a,level:1}}))}),e}),[]).sort(Ct.tN[n]||Ct.tN.default)}),[r.filter((function(e){return e.hidden})).length,a])}({param:i,extraKey:n}),g=(0,s.I0)(i,{defaultValue:[],key:t,extraKey:n,flavour:"arr"}),v=(0,o.Z)(g,2),h=v[0],b=v[1];(0,Ft.Z)((function(){p.length&&h.length&&b((function(e){return e.filter((function(e){return p.some((function(t){return t.children.some((function(t){return t.value===e}))}))}))}))}),[p.length,b]);var y=(0,l.useCallback)((function(e){var t=e.value,n=e.checked;b((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(t)?n?(0,L.Z)(new Set([].concat((0,L.Z)(e),(0,L.Z)(t)))):jt()(e,t):n?[].concat((0,L.Z)(e),[t]):e.filter((function(e){return e!==t}))}))}),[b]),x=(0,l.useMemo)((function(){return function(e){var t=e.options,n=e.selected,r=e.itemsProps;if(!t.length)return[];var o=t.flatMap((function(e){return e.children.map((function(e){return e.value}))})),a=o.length===n.length,i=!a&&!!n.length;return[Mt(Mt({},r.head),{},{label:"Select all",value:o,selected:a,indeterminate:i})].concat((0,L.Z)(t.flatMap((function(e){var t=e.id,o=e.children,a=e.count,i=n.length&&!o.some((function(e){return!n.includes(e.value)})),l=!i&&n.length&&o.some((function(e){return n.includes(e.value)}));return o.reduce((function(e,t){var o=n.includes(t.value);return[].concat((0,L.Z)(e),[Mt(Mt(Mt({},r.row),t),{},{selected:o})])}),[Mt(Mt({},r.head),{},{label:t,value:o.map((function(e){return e.value})),selected:i,indeterminate:l,count:a})])}))))}({options:p,selected:h,itemsProps:u})}),[h,b,p]);return p.length?l.createElement(It.Z,(0,r.Z)({title:"Alert type & component",testIdPrefix:c,baseKey:t,extraKey:n,param:i,help:"Filter the alerts. Count next to each item refer to the number of alerts that will be selected."},m),l.createElement(Ot.kI,(0,r.Z)({"data-testid":"".concat(c,'-filter-selections"'),searchMargin:[0,0,1],items:x,onItemClick:y,value:h,"data-value":h.join(",")||"all-selected",hasSearch:p.length>5,itemProps:Mt({testIdPrefix:c},d)},f))):null};Lt.defaultProps=Ot.ZP.defaultProps;var _t=Lt,Kt=n(96104),At=["baseKey","param","paramKey","extraKey","testIdPrefix","title","groupProps"],Tt=function(e){return e.id},Bt=function(e){var t=e.baseKey,n=e.param,i=e.paramKey,c=e.extraKey,u=e.testIdPrefix,d=e.title,m=e.groupProps,f=(0,a.Z)(e,At),p=function(e){var t=e.extraKey,n=e.param,r=e.paramKey,a=(0,Kt.jo)({extraKey:t,omit:n,keepAll:!0,scoped:!!t}),i=(0,s.tk)(n,{extraKey:t,flavour:"arr"});return(0,l.useMemo)((function(){return Object.entries(a.reduce((function(e,t){return e[t[r]]=(e[t[r]]||0)+(t.hidden?0:1),e}),{})).map((function(e){var t=(0,o.Z)(e,2);return{id:t[0],count:t[1]}})).sort(Kt.tN[n]||Kt.tN.default)}),[a.filter((function(e){return e.hidden})).length,i])}({param:n,extraKey:c,paramKey:i});return p.length?l.createElement(It.Z,(0,r.Z)({title:d,testIdPrefix:u,baseKey:t,extraKey:c,param:n,help:"Filter your nodes for this page. Count next to each item refer to the number of nodes that will be selected and used across the page.",defaultIsOpen:!1},m),l.createElement(Ot.ZP,(0,r.Z)({param:n,baseKey:t,extraKey:c,testIdPrefix:u,collection:p,getValue:Tt,getLabel:Tt},f))):null},Vt=["baseKey","extraKey","param","testIdPrefix","itemsProps","itemProps","groupProps"];function zt(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 Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qt=function(e){var t=e.baseKey,n=e.extraKey,i=e.param,c=e.testIdPrefix,u=e.itemsProps,d=e.itemProps,m=e.groupProps,f=(0,a.Z)(e,Vt),p=function(e){var t=e.extraKey,n=e.param,r=(0,Kt.jo)({extraKey:t,omit:n,keepAll:!0,merge:!0}),a=(0,s.tk)(n,{extraKey:t,flavour:"arr"});return(0,l.useMemo)((function(){return Object.entries(r.reduce((function(e,t){var n=t.labels,r=t.hidden;return Object.keys(n).forEach((function(t){e[t]=e[t]||{count:0,children:{}},e[t].count=(e[t].count||0)+(r?0:1),e[t].children[n[t]]=(e[t].children[n[t]]||0)+(r?0:1)})),e}),{})).reduce((function(e,t){var n=(0,o.Z)(t,2),r=n[0],a=n[1],i=a.count,l=a.children;return e.push({id:r,count:i,children:Object.entries(l).map((function(e){var t=(0,o.Z)(e,2),n=t[0],a=t[1];return{value:"".concat(r,"|").concat(n),label:n,count:a,level:1}}))}),e}),[]).sort(Kt.tN[n]||Kt.tN.default)}),[r.filter((function(e){return e.hidden})).length,a])}({param:i,extraKey:n}),g=(0,s.I0)(i,{defaultValue:[],key:t,extraKey:n,flavour:"arr",merge:!1}),v=(0,o.Z)(g,2),h=v[0],b=v[1];(0,Ft.Z)((function(){p.length&&h.length&&b((function(e){return e.filter((function(e){return p.some((function(t){return t.children.some((function(t){return t.value===e}))}))}))}))}),[p.length,b]);var y=(0,l.useCallback)((function(e){var t=e.value,n=e.checked;b((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(t)?n?(0,L.Z)(new Set([].concat((0,L.Z)(e),(0,L.Z)(t)))):jt()(e,t):n?[].concat((0,L.Z)(e),[t]):e.filter((function(e){return e!==t}))}))}),[b]),x=(0,l.useMemo)((function(){return function(e){var t=e.options,n=e.selected,r=e.itemsProps;if(!t.length)return[];var o=t.flatMap((function(e){return e.children.map((function(e){return e.value}))})),a=o.length===n.length,i=!a&&!!n.length;return[Gt(Gt({},r.head),{},{label:"Select all",value:o,selected:a,indeterminate:i})].concat((0,L.Z)(t.flatMap((function(e){var t=e.id,o=e.children,a=e.count,i=n.length&&!o.some((function(e){return!n.includes(e.value)})),l=!i&&n.length&&o.some((function(e){return n.includes(e.value)}));return o.reduce((function(e,t){var o=n.includes(t.value);return[].concat((0,L.Z)(e),[Gt(Gt(Gt({},r.row),t),{},{selected:o})])}),[Gt(Gt({},r.head),{},{label:t,value:o.map((function(e){return e.value})),selected:i,indeterminate:l,count:a})])}))))}({options:p,selected:h,itemsProps:u})}),[h,b,p]);return p.length?l.createElement(It.Z,(0,r.Z)({title:"Host labels",testIdPrefix:c,baseKey:t,extraKey:n,param:i,help:"Filter your nodes for this page. Count next to each item refer to the number of nodes that will be selected and used across the page."},m),l.createElement(Ot.kI,(0,r.Z)({"data-testid":"".concat(c,'-filter-selections"'),searchMargin:[0,0,1],items:x,onItemClick:y,value:h,"data-value":h.join(",")||"all-selected",hasSearch:p.length>3,itemProps:Gt({testIdPrefix:c},d)},f))):null};qt.defaultProps=Ot.ZP.defaultProps;var Rt=qt,Wt=n(32356),Ht=["flavour","groupProps"];function Ut(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 Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qt=(0,l.memo)((function(e){var t=e.flavour,n=e.groupProps,o=(0,a.Z)(e,Ht),i=(0,dt.UL)();return l.createElement(u.Flex,(0,r.Z)({column:!0,overflow:{vertical:"auto"},padding:[0,2,30]},o),"alerts"===t&&l.createElement(l.Fragment,null,l.createElement(Zt,{title:"Alert status",testIdPrefix:"alert-status",baseKey:i,extraKey:t,param:"alertStatuses",paramKey:"status",groupProps:n}),l.createElement(Zt,{title:"Alert class",testIdPrefix:"alert-class",baseKey:i,extraKey:t,param:"alertClasses",paramKey:"class",groupProps:n}),l.createElement(_t,{testIdPrefix:"alert-type-component",baseKey:i,extraKey:t,param:"alertTypeComponents",groupProps:n}),l.createElement(Zt,{title:"Alert role",testIdPrefix:"alert-role",baseKey:i,extraKey:t,param:"alertRoles",paramKey:"recipient",groupProps:n})),"singleNode"!==t&&"anomalies"!==t&&l.createElement(l.Fragment,null,l.createElement(Rt,{testIdPrefix:"node-labels",baseKey:i,extraKey:t,param:"nodeLabels",groupProps:n}),l.createElement(Bt,{title:"Node status",testIdPrefix:"node-status",baseKey:i,extraKey:t,param:"nodeStatuses",paramKey:"nodeStatus",groupProps:n}),l.createElement(Bt,{title:"Netdata version",testIdPrefix:"node-version",baseKey:i,extraKey:t,param:"nodeVersions",paramKey:"version",groupProps:n})),!!t&&"singleNode"!==t&&l.createElement(Wt.Z,{testIdPrefix:"node-ids",baseKey:i,extraKey:t,groupProps:Jt({defaultIsOpen:"anomalies"===t},n)}))})),Yt=["tabs","hiddenTabs","includedTabs","title","nodeIds","onClose","baseWidth"],Xt=["iconName","Content","dataTestId","color","label"];function $t(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 en(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tn={color:{active:"success",notActive:"textLite"},minWidth:"auto"},nn={chartIndexing:en(en({},tn),{},{iconName:"charts_view",Content:Et,dataTestId:"nodeInfo-chartIndexing",label:"Charts"}),filters:en(en({},tn),{},{iconName:"filterList",Content:Qt,dataTestId:"nodeInfo-filters",label:"Filters"}),alerts:en(en({},tn),{},{iconName:"alarm_bell",Content:J,dataTestId:"nodeInfo-alertsTab",label:"Alerts"}),info:en(en({},tn),{},{iconName:"information",dataTestId:"nodeInfo-alertsTab",Content:D,label:"Info"})},rn=[],on=(0,c.default)(u.Tabs).withConfig({displayName:"sidebar__StyledTabs",componentId:"sc-1d5ify6-0"})(["overflow:hidden;height:100%;"]),an=function(e){e.flavour;var t=e.children;return l.createElement(l.Fragment,null,t)},ln=function(e){var t=e.isActive,n=e.color,r=e.name,o=e.label;return l.createElement(M.Z,{plain:!0,content:o},l.createElement(u.Icon,{name:r,color:t?n.active:n.notActive,height:"18px",width:"18px"}))},cn=function(e){var t=e.tabs,n=void 0===t?nn:t,i=e.hiddenTabs,c=void 0===i?rn:i,g=e.includedTabs,v=void 0===g?rn:g,h=e.title,b=e.nodeIds,y=void 0===b?rn:b,x=e.onClose,E=e.baseWidth,C=(0,a.Z)(e,Yt),I=(0,s.D0)("sidebarTab",{defaultValue:"",flavour:"val",extraKey:C.flavour}),O=(0,o.Z)(I,2),k=O[0],w=O[1],P=(0,l.useMemo)((function(){return Object.keys(n).filter((function(e){return(!v.length||v.includes(e))&&!c.includes(e)}))}),[c]),Z=(0,l.useMemo)((function(){var e=P.findIndex((function(e){return e===k}));return-1===e?0:e}),[k]),S=(0,s.D0)("sidebarOpen",{defaultValue:!0,flavour:"bool"}),j=(0,o.Z)(S,2),F=j[0],N=j[1],D=(0,l.useCallback)((function(e){w(P[e]),N(!0)}),[P]);return l.createElement(d.ZP,{collapsedComponent:C.flavour&&l.createElement(m.Z,{onClickTab:D,availableTabs:n,tabsToShow:P}),isOpen:F,header:C.flavour?l.createElement(f.Z,{isOpen:F,onToggle:function(){return N(!F)},title:h}):l.createElement(p.Z,{title:h,onClick:x}),width:E},l.createElement(u.Flex,{"data-testid":"sidebar-tabs",column:!0,overflow:"hidden",height:"100%"},l.createElement(on,{selected:Z,onChange:D,noDefaultBorder:!0,TabsHeader:(0,l.useMemo)((function(){return function(e){return l.createElement(an,(0,r.Z)({flavour:C.flavour},e))}}),[C.flavour])},P.map((function(e,t){var o=n[e],i=o.iconName,c=o.Content,s=o.dataTestId,d=o.color,m=o.label,f=(0,a.Z)(o,Xt);return l.createElement(u.Tab,(0,r.Z)({style:{display:1===P.length?"none":"inherit"},"data-testid":s,maxWidth:"100%",key:i,small:!0,label:l.createElement(ln,{isActive:k===t,name:i,color:d,label:m})},f),l.createElement(u.Flex,{column:!0,overflow:"hidden",height:"100%",position:"relative",gap:3,padding:[1,0]},l.createElement(c,(0,r.Z)({nodeIds:y},C))))})))))}},37682:function(e,t,n){var r=n(67294),o=n(6557),a=n.n(o),i=n(18446),l=n.n(i),c=n(44682);t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a(),n=(0,r.useRef)();return(0,c.Sz)(e,(function(e){var r=t(e);return l()(n.current,r)||(n.current=r),n.current}))}}}]);
\ No newline at end of file |