summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/6876.b74cba4369d8345b7f95.chunk.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/gui/v2/6876.b74cba4369d8345b7f95.chunk.js')
-rw-r--r--web/gui/v2/6876.b74cba4369d8345b7f95.chunk.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/web/gui/v2/6876.b74cba4369d8345b7f95.chunk.js b/web/gui/v2/6876.b74cba4369d8345b7f95.chunk.js
deleted file mode 100644
index af1bdf99d..000000000
--- a/web/gui/v2/6876.b74cba4369d8345b7f95.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]="968cce0a-983d-441e-a65d-771be2ee6432",e._sentryDebugIdIdentifier="sentry-dbid-968cce0a-983d-441e-a65d-771be2ee6432")}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([[6876],{51091:function(e,t,a){var n=a(87462),r=a(45987),l=(a(57327),a(41539),a(88449),a(2490),a(59849),a(21249),a(57640),a(9924),a(92222),a(71893)),c=a(10928),o=a.n(c),i=a(67294),s=a(93416),u=["items","isBig","showBackButton","testid"],d=(0,l.default)(s.Box).withConfig({displayName:"breadcrumbs__StyledItemContainer",componentId:"sc-3u39st-0"})([""]),m=(0,l.css)(["&:hover{color:",";}"],(function(e){var t=e.withHover,a=e.theme;return t&&(0,s.getColor)("success")({theme:a})})),f=(0,l.default)(s.Text).withConfig({displayName:"breadcrumbs__StyledText",componentId:"sc-3u39st-1"})(["",""],m),g=(0,l.default)(s.TextSmall).withConfig({displayName:"breadcrumbs__StyledTextSmall",componentId:"sc-3u39st-2"})(["",""],m);t.Z=function(e){var t=e.items,a=e.isBig,l=e.showBackButton,c=void 0===l||l,m=e.testid,v=void 0===m?"":m,b=(0,r.Z)(e,u),h=(0,i.useMemo)((function(){return null!==t&&void 0!==t&&t.length&&c?o()(t.filter((function(e){return!!e.onClick}))).onClick:null}),[t,c]);if(null===t||void 0===t||!t.length)return null;var p=a?f:g;return i.createElement(s.Flex,(0,n.Z)({gap:4},b),c&&i.createElement(s.Button,{onClick:h,icon:"chevron_left",label:"Back",neutral:!0,flavour:"hollow",small:!0,padding:[0,2,0,1],textTransform:"uppercase","data-testid":"".concat(v,"-breadcrumbs-backButton")}),i.createElement(s.Flex,{gap:2,alignItems:"center"},t.map((function(e,t){var a=e.isDisabled,r=e.name,l=e.onClick;return i.createElement(d,(0,n.Z)({key:t,alignItems:"center"},l&&{cursor:"pointer",onClick:l},{"data-testid":"".concat(v,"-breadcrumbs-level-").concat(t)}),i.createElement(p,{color:a&&"textLite","data-testid":"".concat(v,"-breadcrumbs-level-").concat(t),withHover:!!l},0!==t&&" / ",r))}))))}},26876:function(e,t,a){a.r(t),a.d(t,{default:function(){return ke}});var n=a(67294),r=a(4480),l=a(99322),c=a(91268),o=a(84074),i=a(6015),s=a(29439),u=a(93416),d=a(96929),m=a(36560),f=a(12008),g=a(597),v=a(78266),b=(a(21249),a(57640),a(9924),a(87462)),h=a(45987),p=a(71893),y=a(54244),E=["flavour","value"],C=(0,p.default)(u.Text).attrs({whiteSpace:"normal",wordBreak:"break-word"}).withConfig({displayName:"tableSchema__TextCell",componentId:"sc-u3gyvm-0"})([""]),w=function(e){return function(t){var a=t.getValue;return n.createElement(C,e,a())}},I=(0,p.default)(u.Icon).withConfig({displayName:"tableSchema__StyledIcon",componentId:"sc-u3gyvm-1"})(["vertical-align:middle;"]),x=function(e){var t=e.flavour,a=e.value,r=(0,h.Z)(e,E);return n.createElement(u.Flex,(0,b.Z)({padding:[0,2]},r,{justifyContent:"center"}),0===a?n.createElement(C,{textAlign:"center"},"-"):n.createElement(y.Z,{flavour:t,"data-testid":"alertView-alertPill-".concat(t)},a))},N={id:"chevron",header:"",cell:function(){return n.createElement(I,{rotate:2,name:"chevron_left",color:"textDescription"})}},T={displayName:!1},k=[{id:"summary",accessorKey:"summary",header:"Alert",cell:function(e){var t=e.getValue;return n.createElement(C,{"data-testid":"alertName"},t())},fullWidth:!0},{id:"nodesRunningAlert",accessorKey:"nodeCount",header:"Nodes Running Alert",cell:function(e){var t=e.getValue;return n.createElement(C,{textAlign:"center","data-testid":"nodesRunningAlert"},t())}},{id:"alertInstances",accessorKey:"instanceCount",header:"Alert Instances",cell:function(e){var t=e.getValue;return n.createElement(C,{textAlign:"center","data-testid":"alertInstances"},t())}},{id:"criticalNodes",accessorKey:"criticalCount",header:"Critical",cell:function(e){var t=e.getValue;return n.createElement(x,{flavour:"critical",value:t(),"data-testid":"criticalNodes"})}},{id:"warningNodes",accessorKey:"warningCount",header:"Warning",cell:function(e){var t=e.getValue;return n.createElement(x,{flavour:"warning",value:t(),"data-testid":"warningNodes"})}},{id:"clearNodes",accessorKey:"clearCount",header:"Clear",cell:function(e){var t=e.getValue;return n.createElement(x,{flavour:"clear",value:t(),"data-testid":"clearNodes"})}},{id:"errorNodes",accessorKey:"errorCount",header:"Error",cell:function(e){var t=e.getValue;return n.createElement(x,{flavour:"neutral",value:t(),"data-testid":"errorNodes"})}},{id:"uniqueConfigs",accessorKey:"configCount",header:"Configs",cell:function(e){var t=e.getValue;return n.createElement(C,{textAlign:"center","data-testid":"uniqueConfigs"},t())}},{id:"displayName",accessorKey:"displayName",header:"Name",cell:function(e){var t=e.getValue;return n.createElement(C,{"data-testid":"alertName"},t())}}],S=a(50358),Z=a(63860),A=(a(26699),a(32023),a(97945)),V=(0,p.default)(u.TextSmall).withConfig({displayName:"styled__StyledLinkText",componentId:"sc-1y769u1-0"})(["",""],"\n cursor: pointer;\n overflow-wrap: break-word;\n max-width: 140px;\n &:hover {\n opacity: 0.7;\n }\n"),_=(0,p.default)(u.TextSmall).withConfig({displayName:"styled__StyledText",componentId:"sc-1y769u1-1"})(["&:hover{color:",";text-decoration:underline;}"],(0,u.getColor)("accent")),K=a(38626),O=a(91008),P=a(82351),j=a(75691),R=a(6308),D=a(34735),F=a(14808),B=function(e){var t=e.row,a=e.value,r=e.openModal,l=t.original,c=l.id,o=l.info,i=(0,n.useCallback)((function(){r({alertId:c})}),[c]);return n.createElement(O.Z,{Component:u.TextSmall,flavour:"tableLink",cursor:"pointer",showToolTip:!0,content:o,onClick:i,"data-testid":"alertsTableSchema-alertName-".concat(a),"data-ga":"alerts-table::click-alert::alerts-view::".concat(a)},a)},L=function(e){var t=e.row,a=e.nodeId,r=t.original.id,l=(0,A.iy)(a,"name"),c=(0,A.WR)(a,{alertId:r}),o=(0,R.Z)(),i=(0,s.Z)(o,3)[2],d=(0,D.Z)(),m=d.hasLimitations,f=d.maxNodes,g=d.preferredNodes,v=F.Z3&&m&&i>f&&!g.includes(a);return n.createElement(u.Flex,{width:35,"data-testid":"alertsTableSchema-nodeName-".concat(l),"data-ga":"alerts-table::click-node::alerts-view::".concat(l)},v?n.createElement(P.Z,{content:n.createElement(j.V,{name:l}),align:"bottom",isBasic:!0},n.createElement(u.Flex,{gap:1},n.createElement(u.Icon,{name:"padlock",size:"small",color:"text"}),n.createElement(u.Text,null,n.createElement(K.Z,{text:l,TextComponent:u.Text})))):n.createElement(V,{onClick:c},n.createElement(K.Z,{text:l,TextComponent:_})))},M=function(e){var t=e.row,a=e.value,r=t.original,l=r.id,c=r.nodeId,o=r.instanceName,i=(0,A.WR)(c,{alertId:l});return n.createElement(u.Flex,{"data-testid":"alertsTableSchema-chart-id-".concat(a),"data-ga":"alerts-table::click-chartId::alerts-view::".concat(a)},n.createElement(V,{onClick:i},n.createElement(K.Z,{TextComponent:_,text:o})))},U={displayName:!1},W=function(e){var t=e.openModal;return[{id:"status",accessorKey:"status",header:"Status",cell:function(e){var t=e.getValue;return n.createElement(y.Z,{flavour:t(),"data-testid":"alertsTable-alertPill","data-ga":"alerts-table::click-status::alerts-view::".concat(t())},t())}},{id:"summary",accessorKey:"summary",header:"Alert",cell:function(e){var a=e.row,r=e.getValue;return n.createElement(B,{row:a,value:r(),openModal:t})},fullWidth:!0},{id:"instance",header:"Instance",accessorKey:"instance",cell:function(e){var t=e.row,a=e.getValue;return n.createElement(M,{row:t,value:a()})}},{id:"nodeName",header:"Node",accessorKey:"nodeId",cell:function(e){var t=e.row,a=e.getValue;return n.createElement(L,{row:t,nodeId:a()})}},{id:"value",header:"Latest value",accessorKey:"value",cell:function(e){var t=e.row,a=e.getValue,r=t.original,l=r.status,c=r.units;return n.createElement(S.Z,{loaded:!0,status:l,units:c,value:a(),"data-testid":"alertsTableSchema-alertValue","data-ga":"alerts-table::click-alert-value::alerts-view"})}},{id:"lastUpdated",header:"Updated at",accessorKey:"lastUpdated",cell:function(e){var t=e.getValue;return n.createElement(Z.Z,{rawTime:t(),secs:!0,"data-testid":"alertsTableSchema-latestUpdated"})}},{id:"lastStatusChangeValue",header:"Triggered value",accessorKey:"lastStatusChangeValue",cell:function(e){var t=e.row,a=e.getValue,r=t.original,l=r.status,c=r.units;return n.createElement(S.Z,{loaded:!0,status:l,units:c,value:a(),"data-testid":"alertsTableSchema-triggeredValue","data-ga":"alerts-table::click-triggered-value::alerts-view"})}},{id:"lastStatusChange",header:"Triggered at",accessorKey:"lastStatusChange",cell:function(e){var t=e.getValue;return n.createElement(Z.Z,{rawTime:t(),secs:!0,"data-testid":"alertsTableSchema-lastStatusChange"})}},{id:"displayName",accessorKey:"displayName",header:"Name",cell:function(e){var a=e.row,r=e.getValue;return n.createElement(B,{row:a,value:r(),openModal:t})}}]},z=[{id:"summary",accessorKey:"summary",header:"Alert",cell:w({"data-testid":"alertInstanceName"}),fullWidth:!0},{id:"instance",header:"Instance",accessorKey:"instance",cell:function(e){var t=e.row,a=e.getValue;return n.createElement(M,{row:t,value:a()})}},{id:"status",accessorKey:"status",header:"Status",cell:function(e){var t=e.getValue;return n.createElement(u.Flex,{padding:[0,2]},n.createElement(y.Z,{flavour:t(),"data-testid":"alertView-alertPill-value",border:void 0},t()))},size:80},{id:"lastStatusChangeValue",accessorKey:"lastStatusChangeValue",header:"Triggered value",cell:function(e){var t=e.getValue,a=e.row.original,r=a.status,l=a.units;return n.createElement(S.Z,{loaded:!0,status:r,units:l,value:t(),"data-testid":"alertsTableSchema-alertValue"})}},{id:"lastStatusChange",accessorKey:"lastStatusChange",header:"Triggered at",cell:function(e){var t=e.getValue;return n.createElement(Z.Z,{rawTime:t(),secs:!0,nowrap:!0})}},{id:"displayName",accessorKey:"displayName",header:"Name",cell:w({"data-testid":"alertInstanceName"})}],G=a(61294),H={right:["actions"]},J=function(){var e=(0,f.__)(),t=(0,s.Z)(e,1)[0],a=t.alertName,r=t.nodeId,l=(0,f.JU)(a,r),c=(0,G.Z)(),o=(0,s.Z)(c,4),i=o[0],d=o[1],m=o[3],g=(0,n.useCallback)((function(e){return d({alertId:e.data.id})}),[a,r]);return n.createElement(n.Fragment,null,n.createElement(u.Table,{data:l,dataColumns:z,onClickRow:g,enableSorting:!0,enableColumnVisibility:!0,enableResizing:!0,columnPinning:H}),i&&m)},q=(a(26833),a(85827),a(41539),a(25387),a(2490),a(72608),a(66992),a(70189),a(78783),a(88921),a(96248),a(13599),a(11477),a(64362),a(15389),a(90401),a(45164),a(91238),a(54837),a(87485),a(56767),a(76651),a(61437),a(35285),a(39865),a(33948),[{id:"nodeName",accessorKey:"nodeId",header:"Node",cell:function(e){var t=e.getValue,a=(0,A.iy)(t(),"name");return n.createElement(u.Flex,{width:35,"data-testid":"alertsTableSchema-nodeName-".concat(a),"data-ga":"alerts-table::click-node::alerts-view::".concat(a)},n.createElement(K.Z,{text:a}))}},{id:"nodes",accessorKey:"nodeCount",header:"Node Instances",cell:w({"data-testid":"nodes",textAlign:"center"})},{id:"instances",accessorKey:"instanceCount",header:"Alert Instances",cell:w({"data-testid":"instances",textAlign:"center"})},{id:"critical",accessorKey:"criticalCount",header:"Critical",cell:function(e){var t=e.getValue;return n.createElement(x,{flavour:"critical",value:t()})}},{id:"warning",accessorKey:"warningCount",header:"Warning",cell:function(e){var t=e.getValue;return n.createElement(x,{flavour:"warning",value:t()})}},{id:"clear",accessorKey:"clearCount",header:"Clear",cell:function(e){var t=e.getValue;return n.createElement(x,{flavour:"clear",value:t()})}},{id:"error",accessorKey:"errorCount",header:"Error",cell:function(e){var t=e.getValue;return n.createElement(x,{flavour:"neutral",value:t(),"data-testid":"errors"})}},{id:"configs",accessorKey:"configCount",header:"Configs",cell:w({"data-testid":"configs",textAlign:"center"})},N]),Q={right:["actions"]},$=function(){var e=(0,f.__)(),t=(0,s.Z)(e,2),a=t[0].alertName,r=t[1],l=(0,f.JU)(a),c=(0,n.useCallback)((function(e){r({alertName:a,nodeId:e.data.nodeId})}),[a,r]),o=(0,n.useMemo)((function(){return Object.values(l.reduce((function(e,t){switch(e[t.nodeId]||(e[t.nodeId]={nodeId:t.nodeId,nodeCount:1,instanceCount:0,criticalCount:0,warningCount:0,clearCount:0,errorCount:0,configCount:0,configs:new Set}),e[t.nodeId].instanceCount=e[t.nodeId].instanceCount+1,t.status){case"warning":e[t.nodeId].warningCount=e[t.nodeId].warningCount+1;break;case"critical":e[t.nodeId].criticalCount=e[t.nodeId].criticalCount+1;break;case"clear":e[t.nodeId].clearCount=e[t.nodeId].clearCount+1;break;default:t.value||(e[t.nodeId].errorCount=e[t.nodeId].errorCount+1)}return e[t.nodeId].configCount=e[t.nodeId].configs.add(t.aci).size,e}),{}))}),[l]);return n.createElement(u.Table,{data:o,dataColumns:q,onClickRow:c,enableSorting:!0,enableColumnVisibility:!0,enableResizing:!0,columnPinning:Q})},Y=a(51091),X=function(){var e,t=(0,f.__)(),a=(0,s.Z)(t,2),r=a[0],l=r.alertName,c=r.nodeId,o=a[1],i=(0,A.Ne)(c?[c]:[]),u=null===i||void 0===i||null===(e=i[0])||void 0===e?void 0:e.name,d=(0,n.useMemo)((function(){return u?[{name:"All Alert Configs",onClick:function(){o({alertName:null,nodeId:null})}},{name:l,onClick:function(){o({alertName:l,nodeId:null})}},{name:u}]:l?[{name:"All Alert Configs",onClick:function(){o({alertName:null,nodeId:null})}},{name:l}]:null}),[l,u,o]);return n.createElement(Y.Z,{padding:[2,0,0],items:d,testid:"alertConfigurations"})},ee=(a(47941),a(82526),a(57327),a(88449),a(59849),a(38880),a(15581),a(34514),a(54747),a(49337),a(33321),a(69070),a(4942)),te=a(74059),ae=a(37518),ne=a(12899);function re(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}var le=function(){var e=(0,ae.UL)(),t=(0,ne.R3)(),a=(0,s.Z)(t,2)[1],r=(0,f.__)(),l=(0,s.Z)(r,2)[1],c=(0,te.Q6)(),o=(0,n.useMemo)((function(){return function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?re(Object(a),!0).forEach((function(t){(0,ee.Z)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):re(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({goto:{handleAction:function(e){var t=e.name;return l({alertName:t})},icon:"chevron_right",tooltipText:"Show configuration"}},!c&&{info:{handleAction:function(t){return a({roomId:e,alert:t})},tooltipText:"Get some help from Netdata Assistant",icon:"netdataAssistant",iconColor:"primary",neutral:!1,dataGa:"alerts::click-assistant-icon::active-alerts-table"}})}),[c,a]);return{rowActions:o}},ce=function(){return n.createElement(u.Text,null,"Loading...")},oe={right:["actions"]},ie=(0,n.memo)((function(){var e=(0,f.w4)(),t=(0,f.__)(),a=(0,s.Z)(t,2),r=a[0],l=r.alertName,c=r.nodeId,o=a[1],i=(0,ne.Nu)(),d=(0,s.Z)(i,2)[1],m=(0,n.useCallback)((function(e){o({alertName:e.data.name})}),[]),g=le().rowActions;return(0,n.useEffect)((function(){var t=e.map((function(e){return{name:e.name}}));d(t)}),[e]),n.createElement(u.Flex,{column:!0,gap:4,height:"100%",overflow:"hidden"},n.createElement(X,null),c&&n.createElement(n.Suspense,{fallback:n.createElement(ce,null)},n.createElement(J,null)),!c&&l&&n.createElement(n.Suspense,{fallback:n.createElement(ce,null)},n.createElement($,null)),!c&&!l&&n.createElement(u.Table,{data:e,dataColumns:k,enableSorting:!0,enableColumnVisibility:!0,columnPinning:oe,enableColumnPinning:!0,enableResizing:!0,rowActions:g,onClickRow:m,columnVisibility:T}))})),se=ie,ue=a(89250),de=a(5312);function me(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function fe(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?me(Object(a),!0).forEach((function(t){(0,ee.Z)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):me(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var ge=[{id:"lastStatusChange",desc:!0}],ve={right:["actions"]},be=function(){var e=(0,g.Kn)({extraKey:"alerts"}),t=(0,ne.Nu)(),a=(0,s.Z)(t,2)[1],r=(0,G.Z)(),l=(0,s.Z)(r,4),c=l[0],o=l[1],i=l[3],d=function(){var e=(0,ue.s0)(),t=(0,te.uk)(),a=(0,ae.UL)(),r=(0,ne.R3)(),l=(0,s.Z)(r,2)[1],c=(0,te.Q6)(),o=(0,de.rJ)(),i=(0,s.Z)(o,2)[1];return{rowActions:(0,n.useMemo)((function(){return c?{}:fe(fe({},F.h2?{alertConfiguration:{handleAction:function(e){var t=e.id;i({alertId:t})},icon:"alarm_bell",tooltipText:"Alert configuration",confirmation:!1}}:{}),{},{goto:{handleAction:function(){e("/spaces/".concat(t,"/settings/notifications#notificationsActiveTab=1"))},tooltipText:"Go to silencing manager",icon:"alarm_off",dataGa:"alerts-table::click-link-to-manager::active-alerts-table"},info:{handleAction:function(e){return l({roomId:a,alert:e})},tooltipText:"Get some help from Netdata Assistant",icon:"netdataAssistant",iconColor:"primary",neutral:!1,dataGa:"alerts::click-assistant-icon::active-alerts-table"}})}),[c,l])}}().rowActions;return(0,n.useEffect)((function(){a(e)}),[e]),n.createElement(n.Fragment,null,n.createElement(u.Table,{enableSorting:!0,enableColumnVisibility:!0,columnVisibility:U,data:e,dataColumns:W({openModal:o}),rowActions:d,sortBy:ge,columnPinning:ve,enableColumnPinning:!0,enableResizing:!0}),c&&i)},he=(a(92222),a(89405)),pe=function(){var e=function(){var e=(0,he.rA)(),t=e.localeTimeString,a=e.localeDateString,r=(0,l.u)("updatedAt");return(0,n.useMemo)((function(){if(r){var e=new Date(r);return"".concat(a(e,{long:!0})," ").concat(t(e,{secs:!0}))}}),[r,t,a])}();return n.createElement(u.Flex,{column:!0,justifyContent:"center",alignItems:"center",gap:4},n.createElement(u.Icon,{name:"checkmark",width:"168px",height:"168px",margin:[13,0,0]}),n.createElement(u.H3,{margin:[10,0,0]},"This room has no active alerts, you are all good!"),n.createElement(u.Text,{margin:[2,0,0,0]},"Visit later or check your notifications"),n.createElement(u.TextSmall,{color:"textLite"},"Last updated at: ",e))},ye=(0,n.memo)(pe),Ee=a(46189),Ce=function(){return n.createElement(u.Flex,{column:!0,justifyContent:"center",alignItems:"center",margin:[12,0,0]},n.createElement("img",{src:"".concat(Ee.Z.assetsBaseURL,"/img/no-filter-results.png"),alt:"No Filter Results",title:"No Filter Results"}),n.createElement(u.H3,null,"There are no results for these filtering criteria"))},we=(0,n.memo)(Ce),Ie=a(63346),xe=function(e){var t=e.count,a=(0,l.u)("ids"),r=(0,l.u)("loaded"),c=(0,f.ER)(a).length;return r?c?t?n.createElement(Ie.ZP,{feature:"AlertsActive",mode:"AlertsTable"},n.createElement(be,null)):n.createElement(Ie.ZP,{feature:"AlertsActive",mode:"NoFilterResultsIndication"},n.createElement(we,null)):n.createElement(Ie.ZP,{feature:"AlertsActive",mode:"NoAlertsIndication"},n.createElement(ye,null)):n.createElement(v.Z,{title:"Loading alerts..."})},Ne=function(){var e=(0,r.FV)(o.p$),t=(0,s.Z)(e,2),a=t[0],l=t[1],c=(0,f.v3)(),i=(0,n.useCallback)((function(e){e===a&&c(),l(e)}),[a,l]),b=(0,g.Kn)({extraKey:"alerts"}).length,h=(0,f.sb)();return(0,d.fD)()&&!h.length?n.createElement(Ie.ZP,{feature:"Alerts",mode:"NoNodesView"},n.createElement(m.Z,null)):n.createElement(u.Tabs,{selected:a,onChange:i,height:"100%",padding:[4,4,0]},n.createElement(u.Tab,{label:n.createElement(u.Text,null,"Active (",b,")"),maxWidth:"100%","data-testid":"alertTabs-activeAlerts"},n.createElement(xe,{count:b})),n.createElement(u.Tab,{label:n.createElement(u.Text,null,"Alert Configurations"),maxWidth:"100%","data-testid":"alertTabs-configurations"},n.createElement(n.Suspense,{fallback:n.createElement(v.Z,{title:"Loading alert configurations..."})},n.createElement(Ie.ZP,{feature:"AlertsConfiguration"},n.createElement(se,null)))))},Te=["chartIndexing","alerts","info","config"],ke=function(){var e=(0,l.u)("ids"),t=(0,r.sJ)(o.p$),a=!!e.length&&1!==t;return n.createElement(c.Z,{sidebar:a&&n.createElement(i.ZP,{title:"Alerts",flavour:"alerts",loaded:!0,hasSearch:!1,hiddenTabs:Te})},n.createElement(Ne,null))}}}]); \ No newline at end of file