"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[44],{55759(K,i,a){a.r(i),a.d(i,{default:()=>T});var t=a(74848),_=a(22803),e=a(52358),E=a(64702),f=a(82147),o=a(62461),P=a(40954),c=a(74144),g=a(5195),v=a(49439),D=a(78911),O=a(19343),M=a(77628),d=a(25877),y=a(72768),C=(n=>(n.AlertEvents="alert_events",n.Notifications="notifications",n))(C||{});function h(){const n=(0,v.of)(A),[B,l]=(0,D.s)(),r=E.$.featureToggles.alertingNotificationHistoryGlobal,s=r&&B.tab==="notifications"?"notifications":"alert_events";return(0,t.jsxs)(d.d,{navId:"alerts-history",isLoading:!1,children:[r&&(0,t.jsxs)(f.U,{children:[(0,t.jsx)(o.o,{label:(0,e.t)("alerting.central-alert-history.tab.alert-events","Alert events"),active:s==="alert_events",onChangeTab:()=>l({tab:"alert_events"})}),(0,t.jsx)(o.o,{label:(0,e.t)("alerting.central-alert-history.tab.notifications","Notifications"),active:s==="notifications",onChangeTab:()=>l({tab:"notifications"})})]}),(0,t.jsxs)(P.J,{className:n.tabContent,children:[(0,t.jsx)(g.a,{paddingBottom:2,children:(0,t.jsx)(c.E,{color:"secondary",variant:"body",children:s==="alert_events"?(0,t.jsx)(e.x6,{i18nKey:"alerting.central-alert-history.description.alert-events",children:"View a history of all alert events generated by your Grafana-managed alert rules. All alert events are displayed regardless of whether silences or mute timings are set."}):(0,t.jsx)(e.x6,{i18nKey:"alerting.central-alert-history.description.notifications",children:"View a history of all notifications sent from your Grafana-managed alert rules."})})}),s==="alert_events"&&(0,t.jsx)(y.CentralAlertHistoryScene,{}),s==="notifications"&&r&&(0,t.jsx)(O.t,{})]})]})}const A=n=>({tabContent:(0,_.css)({marginTop:n.spacing(2)})}),T=(0,M.S)(h)}}]);

//# sourceMappingURL=HistoryPage.bbe67e7e08cf6e4b6d8a.js.map