"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[617],{10153:(f,n,a)=>{a.r(n),a.d(n,{default:()=>O});var t=a(96540),o=a(16817),e=a(39558),_=a(31678),u=a(14618),D=a(9518),M=a(23770),r=a(55740),l=a(57220);function O({dashboardUid:P}){const E=(0,_.useDispatch)(),{loading:c}=(0,o.A)(async()=>{await E((0,M.Lc)({rulesSourceName:l.hY}))},[E]),C=(0,D.dy)(l.hY).flatMap(s=>s.groups).flatMap(s=>s.rules).filter(s=>s.annotations[r.YH.dashboardUID]===P),d=c;return t.createElement(t.Fragment,null,d?t.createElement(e._,{text:"Loading alert rules"}):t.createElement(u.s,{rules:C,showNextEvaluationColumn:!1,showGroupColumn:!1}))}}}]);

//# sourceMappingURL=alert-rules-drawer-content.fe2ad2261f5242667d26.js.map