"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[8802],{89439:(j,A,a)=>{a.d(A,{q:()=>e});var r=a(27702),d=a(91368);const e=({actions:M,children:B,fallback:W=!0})=>M.some(C=>d.contextSrv.hasAccess(C,W))?r.createElement(r.Fragment,null,B):null},98802:(j,A,a)=>{a.r(A),a.d(A,{RuleViewer:()=>de,default:()=>et});var r=a(42844),d=a(11109),e=a(27702),M=a(73195),B=a(65217),W=a(53933),C=a(23852),E=a(34667),f=a(66310),R=a(63439),P=a(52419),I=a(64022),w=a(66670),m=a(73453),v=a(41640),$=a(67437),u=a(97957),L=a(75005),h=a(89949),K=a(25357),Q=a(97287),N=a(55692),S=a(65946),H=a(43609),ge=a(68525),Ee=a(95017),_=a(99633),pe=a(78968),fe=a(48419),ve=a(18771),ye=a(89439),Re=a(98445);const xe=4;function he({data:t,model:n,thresholds:l,dsSettings:c,relativeTimeRange:o,onTimeRangeChange:i,className:y}){const g=(0,f.wW)(De),s=(0,N.j)(n),D=(0,e.useCallback)(x=>{const O=(0,_.CQ)().unix()-x.unix();if(o){const U=o.from-o.to;i({from:O+U,to:O})}},[i,o]),p=(0,e.useCallback)(x=>x===0?(0,_.CQ)():(0,_.CQ)().subtract(x,"seconds"),[]);return t?e.createElement("div",{className:y},e.createElement("div",{className:g.header},e.createElement("div",{className:g.actions},!s&&o?e.createElement(fe.x,{date:p(o.to),onChange:D,maxDate:new Date}):null,e.createElement(ye.q,{actions:[ve.AccessControlAction.DataSourcesExplore]},!s&&e.createElement(w.Qj,{size:"md",variant:"secondary",icon:"compass",target:"_blank",href:Ce(c,n)},"View in Explore")))),e.createElement(Re.l,{data:t,thresholds:l?.config,thresholdsType:l?.mode})):null}function Ce(t,n){const{name:l}=t,{refId:c,...o}=n;return pe.Cj.renderUrl(`${E.config.appSubUrl}/explore`,{left:JSON.stringify({datasource:l,queries:[{refId:"A",...o}],range:{from:"now-1h",to:"now"}})})}const De=t=>({header:(0,r.css)`
      height: ${t.spacing(xe)};
      display: flex;
      align-items: center;
      justify-content: flex-end;
      white-space: nowrap;
      margin-bottom: ${t.spacing(2)};
    `,refId:(0,r.css)`
      font-weight: ${t.typography.fontWeightMedium};
      color: ${t.colors.text.link};
      overflow: hidden;
    `,dataSource:(0,r.css)`
      margin-left: ${t.spacing(1)};
      font-style: italic;
      color: ${t.colors.text.secondary};
    `,actions:(0,r.css)`
      display: flex;
      align-items: center;
    `,errorMessage:(0,r.css)`
      white-space: pre-wrap;
    `});function Me({queries:t,condition:n,evalDataByQuery:l={},evalTimeRanges:c={},onTimeRangeChange:o}){const i=(0,h.keyBy)(Object.values(E.config.datasources),p=>p.uid),y=t.filter(p=>!(0,N.j)(p.model)),g=t.filter(p=>(0,N.j)(p.model)),s=(0,f.wW)(ee),D=(0,Ee.Fu)(t);return e.createElement(C.K,{gap:2,direction:"column"},e.createElement("div",{className:s.maxWidthContainer},e.createElement(C.K,{gap:2},y.map(({model:p,relativeTimeRange:x,refId:O,datasourceUid:U},V)=>{const F=i[U];return e.createElement(ne,{key:V,refId:O,isAlertCondition:n===O,model:p,relativeTimeRange:x,evalTimeRange:c[O],dataSource:F,thresholds:D[O],queryData:l[O],onEvalTimeRangeChange:X=>o(O,X)})}))),e.createElement("div",{className:s.maxWidthContainer},e.createElement(C.K,{gap:1},g.map(({model:p,refId:x,datasourceUid:O},U)=>{const V=i[O];return(0,N.j)(p)&&e.createElement($e,{key:U,refId:x,isAlertCondition:n===x,model:p,dataSource:V,evalData:l[x]})}))))}function ne({refId:t,relativeTimeRange:n,thresholds:l,model:c,dataSource:o,queryData:i,evalTimeRange:y,onEvalTimeRangeChange:g}){const s=(0,f.wW)(Pe),D=[o?.name??"[[Data source not found]]"];return n&&D.push((0,Q.C_)(n).display),e.createElement(se,{refId:t,headerItems:D,className:s.contentBox},e.createElement("pre",{className:s.code},e.createElement("code",null,(0,L.$w)(c))),o&&e.createElement(he,{refId:t,dsSettings:o,model:c,data:i,thresholds:l,relativeTimeRange:y,onTimeRangeChange:g,className:s.visualization}))}const Pe=t=>({code:(0,r.css)`
    margin: ${t.spacing(1)};
  `,contentBox:(0,r.css)`
    flex: 1 0 100%;
  `,visualization:(0,r.css)`
    padding: ${t.spacing(1)};
  `});function $e({refId:t,model:n,evalData:l,isAlertCondition:c}){function o(){switch(n.type){case S.Us.math:return e.createElement(Se,{model:n});case S.Us.reduce:return e.createElement(Ie,{model:n});case S.Us.resample:return e.createElement(Ae,{model:n});case S.Us.classic:return e.createElement(Te,{model:n});case S.Us.threshold:return e.createElement(Ue,{model:n});default:return e.createElement(e.Fragment,null,"Expression not supported: ",n.type)}}return e.createElement(se,{refId:t,headerItems:[(0,h.startCase)(n.type)],isAlertCondition:c},o(),l&&e.createElement(ge.bw,{series:l.series,isAlertCondition:c}))}function se({refId:t,headerItems:n=[],children:l,isAlertCondition:c,className:o}){const i=(0,f.wW)(Oe);return e.createElement("div",{className:(0,r.cx)(i.container,o)},e.createElement("header",{className:i.header},e.createElement("span",{className:i.refId},t),n.map((y,g)=>e.createElement("span",{key:g,className:i.textBlock},y)),c&&e.createElement("div",{className:i.conditionIndicator},e.createElement(K.C,{color:"green",icon:"check",text:"Alert condition"}))),l)}const Oe=t=>({container:(0,r.css)`
    flex: 1 0 25%;
    border: 1px solid ${t.colors.border.strong};
    max-width: 100%;
  `,header:(0,r.css)`
    display: flex;
    align-items: center;
    gap: ${t.spacing(1)};
    padding: ${t.spacing(1)};
    background-color: ${t.colors.background.secondary};
  `,textBlock:(0,r.css)`
    border: 1px solid ${t.colors.border.weak};
    padding: ${t.spacing(.5,1)};
    background-color: ${t.colors.background.primary};
  `,refId:(0,r.css)`
    color: ${t.colors.text.link};
    padding: ${t.spacing(.5,1)};
    border: 1px solid ${t.colors.border.weak};
  `,conditionIndicator:(0,r.css)`
    margin-left: auto;
  `});function Te({model:t}){const n=(0,f.wW)(We),l=(0,h.keyBy)(H.Z.reducerTypes,i=>i.value),c=(0,h.keyBy)(H.Z.evalOperators,i=>i.value),o=(0,h.keyBy)(H.Z.evalFunctions,i=>i.value);return e.createElement("div",{className:n.container},t.conditions?.map(({query:i,operator:y,reducer:g,evaluator:s},D)=>{const p=re(s);return e.createElement(e.Fragment,{key:D},e.createElement("div",{className:n.blue},D===0?"WHEN":!!y?.type&&c[y?.type]?.text),e.createElement("div",{className:n.bold},g?.type&&l[g.type]?.text),e.createElement("div",{className:n.blue},"OF"),e.createElement("div",{className:n.bold},i.params[0]),e.createElement("div",{className:n.blue},o[s.type].text),e.createElement("div",{className:n.bold},p?`(${s.params[0]}; ${s.params[1]})`:s.params[0]))}))}const We=t=>({container:(0,r.css)`
    padding: ${t.spacing(1)};
    display: grid;
    grid-template-columns: max-content max-content max-content max-content max-content max-content;
    gap: ${t.spacing(0,1)};
  `,...G(t)});function Ie({model:t}){const n=(0,f.wW)(Ne),{reducer:l,expression:c,settings:o}=t,i=S.SQ.find(s=>s.value===l),y=o?.mode??S.kN.Strict,g=S.YM.find(s=>s.value===y);return e.createElement("div",{className:n.container},e.createElement("div",{className:n.label},"Function"),e.createElement("div",{className:n.value},i?.label),e.createElement("div",{className:n.label},"Input"),e.createElement("div",{className:n.value},c),e.createElement("div",{className:n.label},"Mode"),e.createElement("div",{className:n.value},g?.label))}const Ne=t=>({container:(0,r.css)`
    padding: ${t.spacing(1)};
    display: grid;
    gap: ${t.spacing(1)};
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr;

    > :nth-child(6) {
      grid-column: span 3;
    }
  `,...G(t)});function Ae({model:t}){const n=(0,f.wW)(Be),{expression:l,window:c,downsampler:o,upsampler:i}=t,y=S.Fr.find(s=>s.value===o),g=S.r8.find(s=>s.value===i);return e.createElement("div",{className:n.container},e.createElement("div",{className:n.label},"Input"),e.createElement("div",{className:n.value},l),e.createElement("div",{className:n.label},"Resample to"),e.createElement("div",{className:n.value},c),e.createElement("div",{className:n.label},"Downsample"),e.createElement("div",{className:n.value},y?.label),e.createElement("div",{className:n.label},"Upsample"),e.createElement("div",{className:n.value},g?.label))}const Be=t=>({container:(0,r.css)`
    padding: ${t.spacing(1)};
    display: grid;
    gap: ${t.spacing(1)};
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  `,...G(t)});function Ue({model:t}){const n=(0,f.wW)(ee),{expression:l,conditions:c}=t,o=c&&c[0]?.evaluator,i=S.Mi.find(g=>g.value===o?.type),y=o?re(o):!1;return e.createElement("div",{className:n.container},e.createElement("div",{className:n.label},"Input"),e.createElement("div",{className:n.value},l),o&&e.createElement(e.Fragment,null,e.createElement("div",{className:n.blue},i?.label),e.createElement("div",{className:n.bold},y?`(${o.params[0]}; ${o.params[1]})`:o.params[0])))}const ee=t=>{const{blue:n,bold:l,...c}=G(t);return{...c,maxWidthContainer:(0,r.css)`
      max-width: 100%;
    `,container:(0,r.css)`
      padding: ${t.spacing(1)};
      display: flex;
      gap: ${t.spacing(1)};
    `,blue:(0,r.css)`
      ${n};
      margin: auto 0;
    `,bold:(0,r.css)`
      ${l};
      margin: auto 0;
    `}};function Se({model:t}){const n=(0,f.wW)(ee),{expression:l}=t;return e.createElement("div",{className:n.container},e.createElement("div",{className:n.label},"Input"),e.createElement("div",{className:n.value},l))}const G=t=>({blue:(0,r.css)`
    color: ${t.colors.text.link};
  `,bold:(0,r.css)`
    font-weight: ${t.typography.fontWeightBold};
  `,label:(0,r.css)`
    display: flex;
    align-items: center;
    padding: ${t.spacing(.5,1)};
    background-color: ${t.colors.background.secondary};
    font-size: ${t.typography.bodySmall.fontSize};
    line-height: ${t.typography.bodySmall.lineHeight};
    font-weight: ${t.typography.fontWeightBold};
  `,value:(0,r.css)`
    padding: ${t.spacing(.5,1)};
    border: 1px solid ${t.colors.border.weak};
  `});function re(t){return t.type===H.$.IsWithinRange||t.type===H.$.IsOutsideRange}var be=a(2701),Le=a(19552),we=a(73475),Ke=a(95438),te=a(22513),z=a(22446);function le(t){if(!t)return[];const{namespace:n,rulerRule:l}=t,{rulesSource:c}=n;if((0,te.HY)(c)&&(0,z.Pc)(l))return l.grafana_alert.data;if((0,te.jq)(c)){const o=Ve(c,t);return[Qe(o,c.uid)]}return[]}function Qe(t,n){return{refId:t.refId,datasourceUid:n,queryType:"",model:t,relativeTimeRange:{from:360,to:0}}}function Ve(t,n){const l="A";switch(t.type){case"prometheus":return{refId:l,expr:n.query};case"loki":return{refId:l,expr:n.query};default:throw new Error(`Query for datasource type ${t.type} is currently not supported by cloud alert rules.`)}}var Fe=a(96437),ze=a(8254),Z=a(1333),oe=a(18629),Y=a(89462),je=a(8044),He=a(28542),Ze=a(673),Je=a(13932);const Ge=({group:t})=>{const n=t.source_tenants??[];return e.createElement(Z.C,{label:"Tenant sources"},e.createElement(e.Fragment,null,n.map(l=>e.createElement("div",{key:l},l))))};var Ye=a(33468),Xe=a(77982),ke=a(60087);const ce="Could not find data source for rule",ie="Could not view rule",ae="View rule";function de({match:t}){const n=(0,f.wW)(ue),[l,c]=(0,M.Z)(!1),{id:o}=t.params,i=Fe.OA(o,!0),{loading:y,error:g,result:s}=(0,Le.H)(i,i?.ruleSourceName),D=(0,e.useMemo)(()=>new we.v,[]),p=(0,B.Z)(D.get()),x=(0,e.useMemo)(()=>le(s),[s]),O=(0,Ke.$9)(s?.annotations||{}),[U,V]=(0,e.useState)({}),{allDataSourcesAvailable:F}=(0,be.S)(x),X=(0,e.useCallback)(()=>{if(x.length>0&&F){const T=x.map(b=>({...b,relativeTimeRange:U[b.refId]??b.relativeTimeRange}));D.run(T)}},[x,U,D,F]);(0,e.useEffect)(()=>{const T=le(s),b=Object.fromEntries(T.map(q=>[q.refId,q.relativeTimeRange??{from:0,to:0}]));V(b)},[s]),(0,e.useEffect)(()=>{F&&l&&X()},[X,F,l]),(0,e.useEffect)(()=>()=>D.destroy(),[D]);const me=(0,e.useCallback)((T,b)=>{const q=(0,d.Uy)(U,at=>{at[T]=b});V(q)},[U,V]);if(!i?.ruleSourceName)return e.createElement(Y.$,{title:ae},e.createElement(R.b,{title:ie},e.createElement("details",{className:n.errorMessage},ce)));const k=(0,te.o_)(i.ruleSourceName);if(y)return e.createElement(Y.$,{title:ae},e.createElement(P.u,{text:"Loading rule..."}));if(g||!k)return e.createElement(R.b,{title:ie},e.createElement("details",{className:n.errorMessage},g?.message??ce,e.createElement("br",null),!!g?.stack&&g.stack));if(!s)return e.createElement(Y.$,{title:ae},e.createElement("span",null,"Rule could not be found."));const J=(0,z.Jq)(s.group),tt=(0,z.Pc)(s.rulerRule)&&!!s.rulerRule.grafana_alert.provenance;return e.createElement(e.Fragment,null,J&&e.createElement(R.b,{severity:"info",title:"This rule is part of a federated rule group."},e.createElement(I.wc,null,"Federated rule groups are currently an experimental feature.",e.createElement(w.zx,{fill:"text",icon:"book"},e.createElement("a",{href:"https://grafana.com/docs/metrics-enterprise/latest/tenant-management/tenant-federation/#cross-tenant-alerting-and-recording-rule-federation"},"Read documentation")))),tt&&e.createElement(oe.Xq,{resource:oe.Uv.AlertRule}),e.createElement(Y.l,null,e.createElement("div",null,e.createElement(C.K,{direction:"row",alignItems:"center",wrap:!1,gap:1},e.createElement(m.J,{name:"bell",size:"lg"})," ",e.createElement("span",{className:n.title},s.name)),e.createElement(ke.p,{rule:s,isCreating:!1,isDeleting:!1}),e.createElement(je.f,{rule:s,rulesSource:k,isViewMode:!0})),e.createElement("div",{className:n.details},e.createElement("div",{className:n.leftSide},s.promRule&&e.createElement(Z.C,{label:"Health",horizontal:!0},e.createElement(Xe.V,{rule:s.promRule})),!!s.labels&&!!Object.keys(s.labels).length&&e.createElement(Z.C,{label:"Labels",horizontal:!0},e.createElement(ze.s,{labels:s.labels})),e.createElement(Je.C,{rulesSource:k,rule:s,annotations:O}),e.createElement(He.J,{annotations:O})),e.createElement("div",{className:n.rightSide},e.createElement(Ze.C,{rule:s,rulesSource:k}),J&&e.createElement(Ge,{group:s.group}),e.createElement(Z.C,{label:"Namespace / Group",className:n.rightSideDetails},s.namespace.name," / ",s.group.name),(0,z.Pc)(s.rulerRule)&&e.createElement(qe,{rule:s.rulerRule.grafana_alert}))),e.createElement("div",null,e.createElement(Ye.M,{rule:s,pagination:{itemsPerPage:u.gN},enableFiltering:!0}))),e.createElement(v.U,{label:"Query & Results",isOpen:l,onToggle:c,loading:p&&_e(p),collapsible:!0,className:n.collapse},(0,z.Pc)(s.rulerRule)&&!J&&e.createElement(Me,{condition:s.rulerRule.grafana_alert.condition,queries:x,evalDataByQuery:p,evalTimeRanges:U,onTimeRangeChange:me}),!(0,z.Pc)(s.rulerRule)&&!J&&p&&Object.keys(p).length>0&&e.createElement("div",{className:n.queries},x.map(T=>e.createElement(ne,{key:T.refId,refId:T.refId,model:T.model,dataSource:Object.values(E.config.datasources).find(b=>b.uid===T.datasourceUid),queryData:p[T.refId],relativeTimeRange:T.relativeTimeRange,evalTimeRange:U[T.refId],onEvalTimeRangeChange:b=>me(T.refId,b),isAlertCondition:!1}))),!J&&!F&&e.createElement(R.b,{title:"Query not available",severity:"warning",className:n.queryWarning},"Cannot display the query preview. Some of the data sources used in the queries are not available.")))}function qe({rule:t}){const n=(0,f.wW)(ue),l=()=>navigator.clipboard&&navigator.clipboard.writeText(t.uid);return e.createElement(Z.C,{label:"Rule UID",childrenWrapperClassName:n.ruleUid},t.uid," ",e.createElement($.h,{name:"copy",onClick:l,tooltip:"Copy rule"}))}function _e(t){return!!Object.values(t).find(n=>n.state===W.Gu.Loading)}const ue=t=>({errorMessage:(0,r.css)`
      white-space: pre-wrap;
    `,queries:(0,r.css)`
      height: 100%;
      width: 100%;
    `,collapse:(0,r.css)`
      margin-top: ${t.spacing(2)};
      border-color: ${t.colors.border.weak};
      border-radius: ${t.shape.borderRadius()};
    `,queriesTitle:(0,r.css)`
      padding: ${t.spacing(2,.5)};
      font-size: ${t.typography.h5.fontSize};
      font-weight: ${t.typography.fontWeightBold};
      font-family: ${t.typography.h5.fontFamily};
    `,query:(0,r.css)`
      border-bottom: 1px solid ${t.colors.border.medium};
      padding: ${t.spacing(2)};
    `,queryWarning:(0,r.css)`
      margin: ${t.spacing(4,0)};
    `,title:(0,r.css)`
      font-size: ${t.typography.h4.fontSize};
      font-weight: ${t.typography.fontWeightBold};
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    `,details:(0,r.css)`
      display: flex;
      flex-direction: row;
      gap: ${t.spacing(4)};
    `,leftSide:(0,r.css)`
      flex: 1;
      overflow: hidden;
    `,rightSide:(0,r.css)`
      padding-right: ${t.spacing(3)};

      max-width: 360px;
      word-break: break-all;
      overflow: hidden;
    `,rightSideDetails:(0,r.css)`
      & > div:first-child {
        width: auto;
      }
    `,labels:(0,r.css)`
      justify-content: flex-start;
    `,ruleUid:(0,r.css)`
      display: flex;
      align-items: center;
      gap: ${t.spacing(1)};
    `}),et=de},89462:(j,A,a)=>{a.d(A,{$:()=>W,l:()=>C});var r=a(42844),d=a(27702),e=a(66310),M=a(44644);const B={icon:"bell",id:"alert-rule-view"};function W(R){const{wrapInContent:P=!0,children:I,title:w}=R,m=(0,e.wW)(E);return d.createElement(M.T,{pageNav:{...B,text:w},navId:"alert-list"},d.createElement(M.T.Contents,null,d.createElement("div",{className:m.content},P?d.createElement(C,{...R}):I)))}function C({children:R,padding:P=2}){const I=(0,e.wW)(f(P));return d.createElement("div",{className:I.wrapper},R)}const E=R=>({content:(0,r.css)`
      max-width: ${R.breakpoints.values.xxl}px;
    `}),f=R=>P=>({wrapper:(0,r.css)`
      background: ${P.colors.background.primary};
      border: 1px solid ${P.colors.border.weak};
      border-radius: ${P.shape.borderRadius()};
      padding: ${P.spacing(R)};
    `})},77982:(j,A,a)=>{a.d(A,{V:()=>W});var r=a(42844),d=a(27702),e=a(66310),M=a(80011),B=a(73453);const W=({rule:E})=>{const f=(0,e.wW)(C);return E.health==="err"||E.health==="error"?d.createElement(M.u,{theme:"error",content:E.lastError||"No error message provided."},d.createElement("div",{className:f.warn},d.createElement(B.J,{name:"exclamation-triangle"}),d.createElement("span",null,"error"))):d.createElement(d.Fragment,null,E.health)},C=E=>({warn:(0,r.css)`
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: ${E.spacing(1)};

    color: ${E.colors.warning.text};
  `})},60087:(j,A,a)=>{a.d(A,{p:()=>R});var r=a(42844),d=a(27702),e=a(32082),M=a(23852),B=a(66310),W=a(62108),C=a(18447),E=a(22446),f=a(68614);const R=({rule:I,isDeleting:w,isCreating:m,isPaused:v})=>{const $=(0,B.wW)(P),{promRule:u}=I,L=(0,d.useMemo)(()=>{if(u&&(0,E.x_)(u)&&u.alerts?.length&&u.state!==C.x_.Inactive){const h=u.activeAt?new Date(u.activeAt):(0,E.ub)(u);if(h)return d.createElement("span",{title:String(h),className:$.for},"for"," ",(0,e.vT)({start:h,end:new Date},!1))}return null},[u,$]);return w?d.createElement(M.K,{gap:1},d.createElement(W.$,null),"Deleting"):m?d.createElement(M.K,{gap:1},d.createElement(W.$,null),"Creating"):u&&(0,E.x_)(u)?d.createElement(M.K,{gap:1},d.createElement(f.l,{state:u.state,isPaused:v}),L):u&&(0,E.OP)(u)?d.createElement(d.Fragment,null,"Recording rule"):d.createElement(d.Fragment,null,"n/a")},P=I=>({for:(0,r.css)`
    font-size: ${I.typography.bodySmall.fontSize};
    color: ${I.colors.text.secondary};
    white-space: nowrap;
    padding-top: 2px;
  `})},19552:(j,A,a)=>{a.d(A,{H:()=>R,X:()=>P});var r=a(27702),d=a(25111),e=a(18771),M=a(47702),B=a(84369),W=a(96437),C=a(22446),E=a(52467),f=a(10027);function R(m,v){const $=I(v,m),u=(0,E.Zo)(v),L=(0,r.useMemo)(()=>{if(!(!m||!v||u.length===0))for(const h of u)for(const K of h.groups)for(const Q of K.rules){const N=W.Yd(v,Q);if(W.Dg(N,m))return Q}},[m,v,u]);return{...$,result:L}}function P(m,v){const $=I(v),u=(0,E.Zo)(v),L=(0,r.useMemo)(()=>{if(!m||!v||u.length===0)return[];const h=[];for(const K of u)for(const Q of K.groups)for(const N of Q.rules)N.name===m&&h.push(N);return h},[m,v,u]);return{...$,result:L}}function I(m,v){const $=(0,e.useDispatch)(),u=(0,f._)(N=>N.promRules),L=w(m,u),h=(0,f._)(N=>N.rulerRules),K=w(m,h),{loading:Q}=(0,d.Z)(async()=>{m&&await $((0,M.dn)({rulesSourceName:m,identifier:v}))},[$,m]);return{loading:Q,error:L.error??(0,C.m$)(K)?void 0:K.error,dispatched:L.dispatched&&K.dispatched}}function w(m,v){if(!m)return B.oq;const $=v[m];return $||B.oq}}}]);

//# sourceMappingURL=8802.757f73ce06c24e5fb8d1.js.map