summaryrefslogtreecommitdiffstats
path: root/src/web/gui/v2/8059.4fdc76bb2cac1f74b41b.chunk.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:23 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:44 +0000
commit836b47cb7e99a977c5a23b059ca1d0b5065d310e (patch)
tree1604da8f482d02effa033c94a84be42bc0c848c3 /src/web/gui/v2/8059.4fdc76bb2cac1f74b41b.chunk.js
parentReleasing debian version 1.44.3-2. (diff)
downloadnetdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.tar.xz
netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.zip
Merging upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/web/gui/v2/8059.4fdc76bb2cac1f74b41b.chunk.js')
-rw-r--r--src/web/gui/v2/8059.4fdc76bb2cac1f74b41b.chunk.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/web/gui/v2/8059.4fdc76bb2cac1f74b41b.chunk.js b/src/web/gui/v2/8059.4fdc76bb2cac1f74b41b.chunk.js
new file mode 100644
index 000000000..f86454512
--- /dev/null
+++ b/src/web/gui/v2/8059.4fdc76bb2cac1f74b41b.chunk.js
@@ -0,0 +1 @@
+!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b3079749-081a-4019-8834-624f6596c442",e._sentryDebugIdIdentifier="sentry-dbid-b3079749-081a-4019-8834-624f6596c442")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"30b1ba65cc8722be7e184f4a401fb43e6b21634d"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[8059],{62232:(e,t,a)=>{a.d(t,{A:()=>g});var n=a(58168),l=(a(17333),a(41393),a(98992),a(54520),a(81454),a(8711)),r=a(68090),o=a.n(r),c=a(96540),i=a(83199);const s=(0,l.default)(i.Box).withConfig({displayName:"breadcrumbs__StyledItemContainer",componentId:"sc-3u39st-0"})([""]),d=(0,l.css)(["&:hover{color:",";}"],(e=>{let{withHover:t,theme:a}=e;return t&&(0,i.getColor)("success")({theme:a})})),u=(0,l.default)(i.Text).withConfig({displayName:"breadcrumbs__StyledText",componentId:"sc-3u39st-1"})(["",""],d),m=(0,l.default)(i.TextSmall).withConfig({displayName:"breadcrumbs__StyledTextSmall",componentId:"sc-3u39st-2"})(["",""],d),g=e=>{let{items:t,isBig:a,showBackButton:l=!0,testid:r="",...d}=e;const g=(0,c.useMemo)((()=>{if(null===t||void 0===t||!t.length||!l)return null;return o()(t.filter((e=>{let{onClick:t}=e;return!!t}))).onClick}),[t,l]);if(null===t||void 0===t||!t.length)return null;const h=a?u:m;return c.createElement(i.Flex,(0,n.A)({gap:4},d),l&&c.createElement(i.Button,{onClick:g,icon:"chevron_left",label:"Back",neutral:!0,flavour:"hollow",small:!0,padding:[0,2,0,1],textTransform:"uppercase","data-testid":"".concat(r,"-breadcrumbs-backButton")}),c.createElement(i.Flex,{gap:2,alignItems:"center"},t.map(((e,t)=>{let{isDisabled:a,name:l,onClick:o}=e;return c.createElement(s,(0,n.A)({key:t,alignItems:"center"},o&&{cursor:"pointer",onClick:o},{"data-testid":"".concat(r,"-breadcrumbs-level-").concat(t)}),c.createElement(h,{color:a&&"textLite","data-testid":"".concat(r,"-breadcrumbs-level-").concat(t),withHover:!!o},0!==t&&" / ",l))}))))}},88059:(e,t,a)=>{a.r(t),a.d(t,{default:()=>Ve});var n=a(96540),l=a(47444),r=a(51074),o=a(83084),c=a(96935),i=a(99292),s=a(83199),d=a(67990),u=a(99739),m=a(23452),g=a(64118),h=a(28738),f=(a(41393),a(81454),a(62953),a(63950)),b=a.n(f),C=a(58168),E=a(8711),y=a(40267),p=a(33195),v=a(47130);const w=(0,E.default)(s.Text).attrs({whiteSpace:"normal",wordBreak:"break-word"}).withConfig({displayName:"tableSchema__TextCell",componentId:"sc-u3gyvm-0"})(["",""],(e=>{let{monospace:t}=e;return t?"font-family: monospace;":""})),A=e=>t=>{let{getValue:a}=t;return n.createElement(w,e,a())},x=(0,E.default)(s.Icon).withConfig({displayName:"tableSchema__StyledIcon",componentId:"sc-u3gyvm-1"})(["vertical-align:middle;"]),I=e=>{let{flavour:t,value:a,...l}=e;return n.createElement(s.Flex,(0,C.A)({padding:[0,2]},l,{justifyContent:"center"}),0===a?n.createElement(w,{textAlign:"center"},"-"):n.createElement(y.A,{flavour:t,"data-testid":"alertView-alertPill-".concat(t)},a))},T={id:"chevron",header:"",cell:()=>n.createElement(x,{rotate:2,name:"chevron_left",color:"textDescription"})},N={displayName:!1},S=(0,v.A)(w),k=[{id:"summary",accessorKey:"summary",header:"Alert",cell:e=>{let{getValue:t,row:a}=e;const l=t(),{name:r}=(null===a||void 0===a?void 0:a.original)||{},o=l!=r?l:null;return n.createElement(S,{monospace:!0,strong:!0,"data-testid":"alertName",tooltip:o},r)},fullWidth:!0},{id:"nodesRunningAlert",accessorKey:"nodeCount",header:"Nodes Running Alert",cell:e=>{let{getValue:t}=e;return n.createElement(w,{textAlign:"center","data-testid":"nodesRunningAlert"},t())}},{id:"alertInstances",accessorKey:"instanceCount",header:"Alert Instances",cell:e=>{let{getValue:t}=e;return n.createElement(w,{textAlign:"center","data-testid":"alertInstances"},t())}},{id:"criticalNodes",accessorKey:"criticalCount",header:"Critical",cell:e=>{let{getValue:t}=e;return n.createElement(I,{flavour:"critical",value:t(),"data-testid":"criticalNodes"})}},{id:"warningNodes",accessorKey:"warningCount",header:"Warning",cell:e=>{let{getValue:t}=e;return n.createElement(I,{flavour:"warning",value:t(),"data-testid":"warningNodes"})}},{id:"clearNodes",accessorKey:"clearCount",header:"Clear",cell:e=>{let{getValue:t}=e;return n.createElement(I,{flavour:"clear",value:t(),"data-testid":"clearNodes"})}},{id:"errorNodes",accessorKey:"errorCount",header:"Error",cell:e=>{let{getValue:t}=e;return n.createElement(I,{flavour:"neutral",value:t(),"data-testid":"errorNodes"})}},{id:"uniqueConfigs",accessorKey:"configCount",header:"Configs",cell:e=>{let{getValue:t}=e;return n.createElement(w,{textAlign:"center","data-testid":"uniqueConfigs"},t())}},{id:"silencing",accessorKey:"silencing",header:"Silencing",cell:e=>{let{getValue:t}=e;return n.createElement(p.A,{silencing:t()})}},{id:"displayName",accessorKey:"displayName",header:"Name",cell:e=>{let{getValue:t}=e;return n.createElement(w,{"data-testid":"alertName"},t())}}];var V=a(45976),K=a(87815),_=a(47767),R=a(97054),D=a(47762);const L=(0,E.default)(s.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"),F=(0,E.default)(s.TextSmall).withConfig({displayName:"styled__StyledText",componentId:"sc-1y769u1-1"})(["&:hover{color:",";text-decoration:underline;}"],(0,s.getColor)("accent"));var B=a(75793),M=a(4659),P=a(29217),W=a(63119),z=a(69418),G=a(73865),j=a(13271),q=a(93155);const U=e=>{let{row:t,value:a,openModal:l}=e;const{id:r,info:o}=t.original,c=(0,n.useCallback)((()=>{l({alertId:r})}),[r]);return n.createElement(M.A,{Component:s.TextSmall,flavour:"tableLink",cursor:"pointer",showToolTip:!0,content:o,onClick:c,"data-testid":"alertsTableSchema-alertName-".concat(a),"data-ga":"alerts-table::click-alert::alerts-view::".concat(a)},a)},H=e=>{let{getValue:t}=e;const a=(0,_.Zp)(),l=t(),[,r]=(0,j.sK)(),o="Go to ".concat(l," context in charts overview"),[c,i]=(0,R.Ay)(),d=(0,n.useCallback)((()=>{r(l),a("/spaces/".concat(c,"/rooms/").concat(i,"/overview"))}),[l,r,a,c,i]);return n.createElement(M.A,{Component:s.TextSmall,flavour:"tableLink",cursor:"pointer",showToolTip:!0,content:o,onClick:d,"data-testid":"alertsTableSchema-alertContext-".concat(l)},l)},O=e=>{let{row:t,nodeId:a}=e;const{id:l}=t.original,r=(0,D.xY)(a,"name"),o=(0,D.d3)(a,{alertId:l}),[,,c]=(0,z.A)(),{hasLimitations:i,maxNodes:d,preferredNodes:u}=(0,G.A)(),m=q.bO&&i&&c>d&&!u.includes(a);return n.createElement(s.Flex,{width:35,"data-testid":"alertsTableSchema-nodeName-".concat(r),"data-ga":"alerts-table::click-node::alerts-view::".concat(r)},m?n.createElement(P.A,{content:n.createElement(W.u,{name:r}),align:"bottom",isBasic:!0},n.createElement(s.Flex,{gap:1},n.createElement(s.Icon,{name:"padlock",size:"small",color:"text"}),n.createElement(s.Text,null,n.createElement(B.A,{text:r,TextComponent:s.Text})))):n.createElement(L,{onClick:o},n.createElement(B.A,{text:r,TextComponent:F})))},Y=e=>{let{row:t,value:a}=e;const{id:l,nodeId:r,instanceName:o}=t.original,c=(0,D.d3)(r,{alertId:l});return n.createElement(s.Flex,{"data-testid":"alertsTableSchema-chart-id-".concat(a),"data-ga":"alerts-table::click-chartId::alerts-view::".concat(a)},n.createElement(L,{onClick:c},n.createElement(B.A,{TextComponent:F,text:o})))},J={},Q=e=>{let{openModal:t}=e;return[{id:"status",accessorKey:"status",header:"Status",cell:e=>{let{getValue:t}=e;return n.createElement(y.A,{flavour:t(),"data-testid":"alertsTable-alertPill","data-ga":"alerts-table::click-status::alerts-view::".concat(t())},t())}},{id:"summary",accessorKey:"summary",header:"Alert",cell:e=>{let{row:a,getValue:l}=e;return n.createElement(U,{row:a,value:l(),openModal:t})},fullWidth:!0},{id:"displayName",accessorKey:"displayName",header:"Name",cell:e=>{let{row:a,getValue:l}=e;return n.createElement(U,{row:a,value:l(),openModal:t})}},{id:"context",accessorKey:"context",header:"Context",cell:H},{id:"instance",header:"Instance",accessorKey:"instance",cell:e=>{let{row:t,getValue:a}=e;return n.createElement(Y,{row:t,value:a()})}},{id:"nodeName",header:"Node",accessorKey:"nodeId",cell:e=>{let{row:t,getValue:a}=e;return n.createElement(O,{row:t,nodeId:a()})}},{id:"value",header:"Latest value",accessorKey:"value",cell:e=>{let{row:t,getValue:a}=e;const{status:l,units:r}=t.original;return n.createElement(V.A,{loaded:!0,status:l,units:r,value:a(),"data-testid":"alertsTableSchema-alertValue","data-ga":"alerts-table::click-alert-value::alerts-view"})}},{id:"lastUpdated",header:"Updated at",accessorKey:"lastUpdated",cell:e=>{let{getValue:t}=e;return n.createElement(K.A,{rawTime:t(),secs:!0,"data-testid":"alertsTableSchema-latestUpdated"})}},{id:"lastStatusChangeValue",header:"Triggered value",accessorKey:"lastStatusChangeValue",cell:e=>{let{row:t,getValue:a}=e;const{status:l,units:r}=t.original;return n.createElement(V.A,{loaded:!0,status:l,units:r,value:a(),"data-testid":"alertsTableSchema-triggeredValue","data-ga":"alerts-table::click-triggered-value::alerts-view"})}},{id:"lastStatusChange",header:"Triggered at",accessorKey:"lastStatusChange",cell:e=>{let{getValue:t}=e;return n.createElement(K.A,{rawTime:t(),secs:!0,"data-testid":"alertsTableSchema-lastStatusChange"})}},{id:"silencing",accessorKey:"silencing",header:"Silencing",cell:e=>{let{getValue:t}=e;return n.createElement(p.A,{silencing:t()})}}]},Z=[{id:"summary",accessorKey:"summary",header:"Alert",cell:A({"data-testid":"alertInstanceName"}),fullWidth:!0},{id:"instance",header:"Instance",accessorKey:"instance",cell:e=>{let{row:t,getValue:a}=e;return n.createElement(Y,{row:t,value:a()})}},{id:"status",accessorKey:"status",header:"Status",cell:e=>{let{getValue:t}=e;return n.createElement(s.Flex,{padding:[0,2]},n.createElement(y.A,{flavour:t(),"data-testid":"alertView-alertPill-value",border:void 0},t()))},size:80},{id:"lastStatusChangeValue",accessorKey:"lastStatusChangeValue",header:"Triggered value",cell:e=>{let{getValue:t,row:a}=e;const{status:l,units:r}=a.original;return n.createElement(V.A,{loaded:!0,status:l,units:r,value:t(),"data-testid":"alertsTableSchema-alertValue"})}},{id:"lastStatusChange",accessorKey:"lastStatusChange",header:"Triggered at",cell:e=>{let{getValue:t}=e;return n.createElement(K.A,{rawTime:t(),secs:!0,nowrap:!0})}},{id:"displayName",accessorKey:"displayName",header:"Name",cell:A({"data-testid":"alertInstanceName"})}];var $=a(92136),X=a(3914),ee=a(69765),te=a(51913),ae=a(8239);const ne=()=>{const e=(0,_.Zp)(),t=(0,X.bq)(),a=(0,ee.ID)(),[,l]=(0,te.bg)(),r=(0,X.dg)(),{setState:o}=(0,ae.L5)();return{rowActions:(0,n.useMemo)((()=>r?{}:{alertConfiguration:{handleAction:a=>{let{nd:n,name:l}=a;o({nodeId:n,alertName:l,isAlert:!0}),e("/spaces/".concat(t,"/settings/configurations"),{replace:!0})},icon:"pencilOutline",tooltipText:"Edit this alert configuration",confirmation:!1},goto:{handleAction:a=>{const{name:n,nodeId:l,context:r,instance:o}=a,c={alertName:n,context:r,instance:o,nodeId:l};e("/spaces/".concat(t,"/settings/notifications#notificationsActiveTab=1&silencingRulePrefill=").concat(JSON.stringify(c)))},tooltipText:"Add new silencing rule",icon:"alarm_off",dataGa:"alerts-table::click-link-to-manager::active-alerts-table"},info:{handleAction:e=>l({roomId:a,alert:e}),tooltipText:"Get some help from Netdata Assistant",icon:"netdataAssistant",dataGa:"alerts::click-assistant-icon::active-alerts-table"}}),[r,l])}},le={right:["actions"]},re=()=>{const[{alertName:e,nodeId:t}]=(0,g.DV)(),a=(0,g.q1)(e,t),[l,r,,o]=(0,$.A)(),{rowActions:c}=ne(),i=(0,n.useCallback)((e=>r({alertId:e.data.id})),[e,t]);return n.createElement(n.Fragment,null,n.createElement(s.Table,{data:a,dataColumns:Z,onClickRow:i,enableSorting:!0,enableColumnVisibility:!0,enableResizing:!0,columnPinning:le,rowActions:c}),l&&o)};a(14905),a(98992),a(8872),a(25509),a(65223),a(60321),a(41927),a(11632),a(64377),a(66771),a(12516),a(68931),a(52514),a(35694),a(52774),a(49536),a(21926),a(94483),a(16215);var oe=a(54830);const ce=[{id:"nodeName",accessorKey:"nodeId",header:"Node",cell:e=>{let{getValue:t,row:a}=e;const[,,l]=(0,z.A)(),{hasLimitations:r,maxNodes:o,preferredNodes:c}=(0,G.A)(),i=r&&l>o,s=(0,D.xY)(t(),"name");return n.createElement(oe.A,{nodeId:a.original.nodeId,name:s,preferredNodes:c,showLockedNodes:i})}},{id:"nodes",accessorKey:"nodeCount",header:"Node Instances",cell:A({"data-testid":"nodes",textAlign:"center"})},{id:"instances",accessorKey:"instanceCount",header:"Alert Instances",cell:A({"data-testid":"instances",textAlign:"center"})},{id:"critical",accessorKey:"criticalCount",header:"Critical",cell:e=>{let{getValue:t}=e;return n.createElement(I,{flavour:"critical",value:t()})}},{id:"warning",accessorKey:"warningCount",header:"Warning",cell:e=>{let{getValue:t}=e;return n.createElement(I,{flavour:"warning",value:t()})}},{id:"clear",accessorKey:"clearCount",header:"Clear",cell:e=>{let{getValue:t}=e;return n.createElement(I,{flavour:"clear",value:t()})}},{id:"error",accessorKey:"errorCount",header:"Error",cell:e=>{let{getValue:t}=e;return n.createElement(I,{flavour:"neutral",value:t(),"data-testid":"errors"})}},{id:"configs",accessorKey:"configCount",header:"Configs",cell:A({"data-testid":"configs",textAlign:"center"})},T],ie={right:["actions"]},se=()=>{const[{alertName:e},t]=(0,g.DV)(),a=(0,g.q1)(e),l=(0,n.useCallback)((a=>{t({alertName:e,nodeId:a.data.nodeId})}),[e,t]),r=(0,n.useMemo)((()=>Object.values(a.reduce(((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}),{}))),[a]);return n.createElement(s.Table,{data:r,dataColumns:ce,onClickRow:l,enableSorting:!0,enableColumnVisibility:!0,enableResizing:!0,columnPinning:ie})};var de=a(62232);const ue=()=>{var e;const[{alertName:t,nodeId:a},l]=(0,g.DV)(),r=(0,D.Gt)(a?[a]:[]),o=null===r||void 0===r||null===(e=r[0])||void 0===e?void 0:e.name,c=(0,n.useMemo)((()=>o?[{name:"All Alert Configs",onClick:()=>{l({alertName:null,nodeId:null})}},{name:t,onClick:()=>{l({alertName:t,nodeId:null})}},{name:o}]:t?[{name:"All Alert Configs",onClick:()=>{l({alertName:null,nodeId:null})}},{name:t}]:null),[t,o,l]);return n.createElement(de.A,{padding:[2,0,0],items:c,testid:"alertConfigurations"})},me=()=>n.createElement(s.Text,null,"Loading..."),ge={right:["actions"]},he=(0,n.memo)((()=>{const e=(0,g.oU)(),[{alertName:t,nodeId:a},l]=(0,g.DV)(),[,r]=(0,te.Ws)(),o=(0,n.useCallback)((e=>{l({alertName:e.data.name})}),[]),{rowActions:c}=(()=>{const e=(0,ee.ID)(),[,t]=(0,te.bg)(),[,a]=(0,g.DV)(),l=(0,X.dg)();return{rowActions:(0,n.useMemo)((()=>({goto:{handleAction:e=>{let{name:t}=e;return a({alertName:t})},icon:"chevron_right",tooltipText:"Show configuration"},...!l&&{info:{handleAction:a=>t({roomId:e,alert:a}),tooltipText:"Get some help from Netdata Assistant",icon:"netdataAssistant",iconColor:"primary",neutral:!1,dataGa:"alerts::click-assistant-icon::active-alerts-table"}}})),[l,t])}})();return(0,n.useEffect)((()=>{const t=e.map((e=>{let{name:t}=e;return{name:t}}));r(t)}),[e]),n.createElement(s.Flex,{column:!0,gap:4,height:"calc(100% - 100px)",overflow:"hidden"},n.createElement(ue,null),a&&n.createElement(n.Suspense,{fallback:n.createElement(me,null)},n.createElement(re,null)),!a&&t&&n.createElement(n.Suspense,{fallback:n.createElement(me,null)},n.createElement(se,null)),!a&&!t&&n.createElement(s.Table,{data:e,dataColumns:k,enableSorting:!0,enableColumnVisibility:!0,columnPinning:ge,enableColumnPinning:!0,enableResizing:!0,rowActions:c,onClickRow:o,columnVisibility:N,onSearch:b(),meta:{searchStyles:{width:"350px"}}}))})),fe=he,be=[{id:"lastStatusChange",desc:!0}],Ce={right:["actions"]},Ee=()=>{const e=(0,m.QD)({extraKey:"alerts"}),[,t]=(0,te.Ws)(),[a,l,,r]=(0,$.A)(),{rowActions:o}=ne();return(0,n.useEffect)((()=>{t(e)}),[e]),n.createElement(n.Fragment,null,n.createElement(s.Table,{enableSorting:!0,enableColumnVisibility:!0,columnVisibility:J,data:e,dataColumns:Q({openModal:l}),rowActions:o,sortBy:be,columnPinning:Ce,onSearch:b(),enableColumnPinning:!0,enableResizing:!0,meta:{searchStyles:{width:"350px"}}}),a&&r)};var ye=a(21290);const pe=()=>{const e=(()=>{const{localeTimeString:e,localeDateString:t}=(0,ye.$j)(),a=(0,r.s)("updatedAt");return(0,n.useMemo)((()=>{if(!a)return;const n=new Date(a);return"".concat(t(n,{long:!0})," ").concat(e(n,{secs:!0}))}),[a,e,t])})();return n.createElement(s.Flex,{column:!0,justifyContent:"center",alignItems:"center",gap:4},n.createElement(s.Icon,{name:"checkmark",width:"168px",height:"168px",margin:[13,0,0]}),n.createElement(s.H3,{margin:[10,0,0]},"This room has no active alerts, you are all good!"),n.createElement(s.Text,{margin:[2,0,0,0]},"Visit later or check your notifications"),n.createElement(s.TextSmall,{color:"textLite"},"Last updated at: ",e))},ve=(0,n.memo)(pe);var we=a(68831);const Ae=()=>n.createElement(s.Flex,{column:!0,justifyContent:"center",alignItems:"center",margin:[12,0,0]},n.createElement("img",{src:"".concat(we.A.assetsBaseURL,"/img/no-filter-results.png"),alt:"No Filter Results",title:"No Filter Results"}),n.createElement(s.H3,null,"There are no results for these filtering criteria")),xe=(0,n.memo)(Ae);var Ie=a(63314);const Te=e=>{let{count:t}=e;const a=(0,r.s)("ids"),l=(0,r.s)("loaded"),o=(0,g.Gq)(a).length;return l?o?t?n.createElement(Ie.Ay,{feature:"AlertsActive",mode:"AlertsTable"},n.createElement(Ee,null)):n.createElement(Ie.Ay,{feature:"AlertsActive",mode:"NoFilterResultsIndication"},n.createElement(xe,null)):n.createElement(Ie.Ay,{feature:"AlertsActive",mode:"NoAlertsIndication"},n.createElement(ve,null)):n.createElement(h.A,{title:"Loading alerts..."})};var Ne=a(90204);const Se=()=>{const{selectedTab:e,handleTabChange:t}=(0,Ne.A)(),a=(0,m.QD)({extraKey:"alerts"}).length,l=(0,g.zu)();return(0,d.nj)()&&!l.length?n.createElement(Ie.Ay,{feature:"Alerts",mode:"NoNodesView"},n.createElement(u.A,null)):n.createElement(s.Tabs,{selected:e,onChange:t,height:"100%",padding:[4,4,0]},n.createElement(s.Tab,{label:n.createElement(s.Text,null,"Raised (",a,")"),maxWidth:"100%","data-testid":"alertTabs-activeAlerts"},n.createElement(Te,{count:a})),n.createElement(s.Tab,{label:n.createElement(s.Text,null,"Alert Configurations"),maxWidth:"100%","data-testid":"alertTabs-configurations"},n.createElement(n.Suspense,{fallback:n.createElement(h.A,{title:"Loading alert configurations..."})},n.createElement(Ie.Ay,{feature:"AlertsConfiguration"},n.createElement(fe,null)))))},ke=["chartIndexing","alerts","info","config"],Ve=()=>{const e=(0,r.s)("ids"),t=(0,l.vc)(c.J7),a=!!e.length&&1!==t;return n.createElement(o.A,{sidebar:a&&n.createElement(i.Ay,{title:"Alerts",flavour:"alerts",loaded:!0,hasSearch:!1,hiddenTabs:ke})},n.createElement(Se,null))}}}]); \ No newline at end of file