"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[4679],{"./public/app/features/alerting/unified/RuleViewer.tsx":(e,t,s)=>{s.r(t),s.d(t,{RuleViewer:()=>F,default:()=>Z});var r=s("../../opt/drone/yarncache/react-npm-17.0.2-99ba37d931-b254cc17ce.zip/node_modules/react/index.js"),a=s("./.yarn/__virtual__/react-use-virtual-00326e70ba/3/opt/drone/yarncache/react-use-npm-17.3.2-a032cbeb01-7379460f51.zip/node_modules/react-use/esm/useObservable.js"),n=s("./.yarn/__virtual__/@emotion-css-virtual-72c314ddb1/3/opt/drone/yarncache/@emotion-css-npm-11.7.1-25ff8755a7-ac1f56656f.zip/node_modules/@emotion/css/dist/emotion-css.esm.js"),i=s("./packages/grafana-data/src/index.ts"),o=s("./packages/grafana-ui/src/index.ts"),c=s("./public/app/features/alerting/unified/state/AlertingQueryRunner.ts"),u=s("./public/app/features/alerting/unified/hooks/useCombinedRule.ts"),l=s("./public/app/features/alerting/unified/utils/datasource.ts"),d=s("./public/app/features/alerting/unified/utils/rules.ts");function p(e){if(!e)return[];const{namespace:t,rulerRule:s}=e,{rulesSource:r}=t;if((0,l.HY)(r)&&(0,d.Pc)(s))return s.grafana_alert.data;if((0,l.jq)(r)){const t=function(e,t){const s="A";switch(e.type){case"prometheus":return{refId:s,expr:t.query};case"loki":return{refId:s,expr:t.query};default:throw new Error(`Query for datasource type ${e.type} is currently not supported by cloud alert rules.`)}}(r,e);return[{refId:t.refId,datasourceUid:r.uid,queryType:"",model:t,relativeTimeRange:{from:360,to:0}}]}return[]}var f=s("./public/app/features/alerting/unified/components/rules/RuleState.tsx"),m=s("./public/app/features/alerting/unified/components/DetailsField.tsx"),g=s("./public/app/features/alerting/unified/components/rules/RuleHealth.tsx"),h=s("./packages/grafana-runtime/src/index.ts"),b=s("./public/app/features/expressions/guards.ts"),x=s("./.yarn/__virtual__/react-virtualized-auto-sizer-virtual-b5ab366cb0/3/opt/drone/yarncache/react-virtualized-auto-sizer-npm-1.0.6-50869b8392-81270e9d32.zip/node_modules/react-virtualized-auto-sizer/dist/index.esm.js"),j=s("./public/app/features/alerting/unified/components/PanelPluginsButtonGroup.tsx"),v=s("./public/app/features/alerting/unified/utils/constants.ts"),y=s("../../opt/drone/yarncache/react-npm-17.0.2-99ba37d931-b254cc17ce.zip/node_modules/react/jsx-runtime.js");const w=["refId"];var _;function R(e){var t;const s=(0,o.useTheme2)(),a=(0,o.useStyles2)(k),{data:n,query:c,onChangeQuery:u}=e,l=(0,b.j)(c.model)?v.Fe:v.GC,[d,p]=(0,r.useState)(l),f=(0,h.getDataSourceSrv)().getInstanceSettings(c.datasourceUid),m=c.relativeTimeRange,[g,w]=(0,r.useState)({frameIndex:0,showHeader:!0}),R=(0,r.useCallback)((e=>{const t=(0,i.dateTime)().unix()-e.unix();if(m){const e=m.from-m.to;u(Object.assign({},c,{relativeTimeRange:{from:t+e,to:t}}))}}),[u,c,m]),z=(0,r.useCallback)((e=>0===e?(0,i.dateTime)():(0,i.dateTime)().subtract(e,"seconds")),[]);return n?f?(0,y.jsx)("div",{className:a.content,children:(0,y.jsx)(x.Z,{children:e=>{let{width:r,height:i}=e;return(0,y.jsxs)("div",{style:{width:r,height:i},children:[(0,y.jsxs)("div",{className:a.header,children:[(0,y.jsxs)("div",{children:[`Query ${c.refId}`,(0,y.jsxs)("span",{className:a.dataSource,children:["(",f.name,")"]})]}),(0,y.jsxs)("div",{className:a.actions,children:[!(0,b.j)(c.model)&&m?(0,y.jsx)(o.DateTimePicker,{date:z(m.to),onChange:R,maxDate:new Date}):null,t||(t=(0,y.jsx)(j.j,{onChange:p,value:d,size:"md"})),!(0,b.j)(c.model)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:a.spacing}),(0,y.jsx)(o.LinkButton,{size:"md",variant:"secondary",icon:"compass",target:"_blank",href:S(f,c),children:"View in Explore"})]})]})]}),(0,y.jsx)(h.PanelRenderer,{height:i-4*s.spacing.gridSize,width:r,data:n,pluginId:d,title:"",onOptionsChange:w,options:g})]})}})}):(0,y.jsxs)("div",{className:a.content,children:[_||(_=(0,y.jsx)(o.Alert,{title:"Could not find datasource for query"})),(0,y.jsx)(o.CodeEditor,{width:"100%",height:"250px",language:"json",showLineNumbers:!1,showMiniMap:!1,value:JSON.stringify(c,null,"\t"),readOnly:!0})]}):null}function S(e,t){const{name:s}=e,r=function(e,t){if(null==e)return{};var s,r,a={},n=Object.keys(e);for(r=0;r<n.length;r++)s=n[r],t.indexOf(s)>=0||(a[s]=e[s]);return a}(t.model,w),a=Object.assign({},r,{datasource:s});return i.urlUtil.renderUrl(`${h.config.appSubUrl}/explore`,{left:JSON.stringify(["now-1h","now",s,a])})}const k=e=>({content:n.css`
      width: 100%;
      height: 250px;
    `,header:n.css`
      height: ${e.spacing(4)};
      display: flex;
      align-items: center;
      justify-content: space-between;
      white-space: nowrap;
    `,refId:n.css`
      font-weight: ${e.typography.fontWeightMedium};
      color: ${e.colors.text.link};
      overflow: hidden;
    `,dataSource:n.css`
      margin-left: ${e.spacing(1)};
      font-style: italic;
      color: ${e.colors.text.secondary};
    `,actions:n.css`
      display: flex;
      align-items: center;
    `,spacing:n.css`
      padding: ${e.spacing(0,1,0,0)};
    `,errorMessage:n.css`
      white-space: pre-wrap;
    `});var z=s("./public/app/features/alerting/unified/components/rules/RuleDetailsActionButtons.tsx"),C=s("./public/app/features/alerting/unified/components/rules/RuleDetailsMatchingInstances.tsx"),$=s("./public/app/features/alerting/unified/components/rules/RuleDetailsDataSources.tsx"),I=s("./public/app/features/alerting/unified/components/rule-viewer/RuleViewerLayout.tsx"),O=s("./public/app/features/alerting/unified/components/AlertLabels.tsx"),T=s("./public/app/features/alerting/unified/components/rules/RuleDetailsExpression.tsx"),q=s("./public/app/features/alerting/unified/components/rules/RuleDetailsAnnotations.tsx"),N=s("./public/app/features/alerting/unified/utils/rule-id.ts");const L=e=>{var t;let{group:s}=e;const r=null!==(t=s.source_tenants)&&void 0!==t?t:[];return(0,y.jsx)(m.C,{label:"Tenant sources",children:(0,y.jsx)(y.Fragment,{children:r.map((e=>(0,y.jsx)("div",{children:e},e)))})})};var D,U,M,P,A;const E="Could not find data source for rule",B="Could not view rule",Q="Alerting / View rule";function F(e){let{match:t}=e;const s=(0,o.useStyles2)(G),{id:n,sourceName:i}=t.params,h=N.OA(n,!0),{loading:b,error:x,result:j}=(0,u.H)(h,i),v=(0,r.useMemo)((()=>new c.v),[]),w=(0,a.Z)(v.get()),_=(0,r.useMemo)((()=>p(j)),[j]),[S,k]=(0,r.useState)([]),F=(0,r.useCallback)((()=>{S.length>0&&v.run(S)}),[S,v]);(0,r.useEffect)((()=>{k(_)}),[_]),(0,r.useEffect)((()=>{F()}),[F]),(0,r.useEffect)((()=>()=>v.destroy()),[v]);const Z=(0,r.useCallback)((e=>{k((t=>t.map((t=>t.refId===e.refId?e:t))))}),[]);if(!i)return(0,y.jsx)(I.$,{title:Q,children:(0,y.jsx)(o.Alert,{title:B,children:(0,y.jsx)("details",{className:s.errorMessage,children:E})})});const H=(0,l.o_)(i);if(b)return D||(D=(0,y.jsx)(I.$,{title:Q,children:(0,y.jsx)(o.LoadingPlaceholder,{text:"Loading rule..."})}));var J;if(x||!H)return(0,y.jsx)(I.$,{title:Q,children:(0,y.jsx)(o.Alert,{title:B,children:(0,y.jsxs)("details",{className:s.errorMessage,children:[null!==(J=null==x?void 0:x.message)&&void 0!==J?J:E,U||(U=(0,y.jsx)("br",{})),!(null==x||!x.stack)&&x.stack]})})});if(!j)return M||(M=(0,y.jsx)(I.$,{title:Q,children:(0,y.jsx)("span",{children:"Rule could not be found."})}));const W=Object.entries(j.annotations).filter((e=>{let[t,s]=e;return!!s.trim()})),K=(0,d.Jq)(j.group);return(0,y.jsxs)(I.$,{wrapInContent:!1,title:Q,children:[K&&(P||(P=(0,y.jsx)(o.Alert,{severity:"info",title:"This rule is part of a federated rule group.",children:(0,y.jsxs)(o.VerticalGroup,{children:["Federated rule groups are currently an experimental feature.",(0,y.jsx)(o.Button,{fill:"text",icon:"book",children:(0,y.jsx)("a",{href:"https://grafana.com/docs/metrics-enterprise/latest/tenant-management/tenant-federation/#cross-tenant-alerting-and-recording-rule-federation",children:"Read documentation"})})]})}))),(0,y.jsxs)(I.l,{children:[(0,y.jsxs)("div",{children:[(0,y.jsxs)("h4",{children:[A||(A=(0,y.jsx)(o.Icon,{name:"bell",size:"lg"}))," ",j.name]}),(0,y.jsx)(f.p,{rule:j,isCreating:!1,isDeleting:!1}),(0,y.jsx)(z.f,{rule:j,rulesSource:H})]}),(0,y.jsxs)("div",{className:s.details,children:[(0,y.jsxs)("div",{className:s.leftSide,children:[j.promRule&&(0,y.jsx)(m.C,{label:"Health",horizontal:!0,children:(0,y.jsx)(g.V,{rule:j.promRule})}),!!j.labels&&!!Object.keys(j.labels).length&&(0,y.jsx)(m.C,{label:"Labels",horizontal:!0,children:(0,y.jsx)(O.s,{labels:j.labels})}),(0,y.jsx)(T.C,{rulesSource:H,rule:j,annotations:W}),(0,y.jsx)(q.J,{annotations:W})]}),(0,y.jsxs)("div",{className:s.rightSide,children:[(0,y.jsx)($.C,{rule:j,rulesSource:H}),K&&(0,y.jsx)(L,{group:j.group}),(0,y.jsx)(m.C,{label:"Namespace / Group",children:`${j.namespace.name} / ${j.group.name}`})]})]}),(0,y.jsx)("div",{children:(0,y.jsx)(C.M,{promRule:j.promRule})})]}),!K&&w&&Object.keys(w).length>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:s.queriesTitle,children:["Query results ",(0,y.jsx)(o.PanelChromeLoadingIndicator,{loading:V(w),onCancel:()=>v.cancel()})]}),(0,y.jsx)(I.l,{padding:0,children:(0,y.jsx)("div",{className:s.queries,children:S.map((e=>(0,y.jsx)("div",{className:s.query,children:(0,y.jsx)(R,{query:e,data:w&&w[e.refId],onChangeQuery:Z})},e.refId)))})})]})]})}function V(e){return!!Object.values(e).find((e=>e.state===i.LoadingState.Loading))}const G=e=>({errorMessage:n.css`
      white-space: pre-wrap;
    `,queries:n.css`
      height: 100%;
      width: 100%;
    `,queriesTitle:n.css`
      padding: ${e.spacing(2,.5)};
      font-size: ${e.typography.h5.fontSize};
      font-weight: ${e.typography.fontWeightBold};
      font-family: ${e.typography.h5.fontFamily};
    `,query:n.css`
      border-bottom: 1px solid ${e.colors.border.medium};
      padding: ${e.spacing(2)};
    `,details:n.css`
      display: flex;
      flex-direction: row;
    `,leftSide:n.css`
      flex: 1;
    `,rightSide:n.css`
      padding-left: 90px;
      width: 300px;
    `}),Z=(0,o.withErrorBoundary)(F,{style:"page"})},"./public/app/features/alerting/unified/components/PanelPluginsButtonGroup.tsx":(e,t,s)=>{s.d(t,{j:()=>c});var r=s("./packages/grafana-runtime/src/index.ts"),a=s("./packages/grafana-ui/src/index.ts"),n=s("../../opt/drone/yarncache/react-npm-17.0.2-99ba37d931-b254cc17ce.zip/node_modules/react/index.js"),i=s("./public/app/features/alerting/unified/utils/constants.ts"),o=s("../../opt/drone/yarncache/react-npm-17.0.2-99ba37d931-b254cc17ce.zip/node_modules/react/jsx-runtime.js");function c(e){const{value:t,onChange:s,size:c="md"}=e,u=(0,n.useMemo)((()=>Object.values(r.config.panels).reduce(((e,t)=>(function(e){switch(e){case i.GC:case i.Fe:case i.Kd:return!0;default:return!1}}(t.id)&&e.push({value:t.id,label:t.name,imgUrl:t.info.logos.small}),e)),[])),[]);return(0,o.jsx)(a.RadioButtonGroup,{options:u,value:t,onChange:s,size:c})}},"./public/app/features/alerting/unified/components/rule-viewer/RuleViewerLayout.tsx":(e,t,s)=>{s.d(t,{$:()=>c,l:()=>u});s("../../opt/drone/yarncache/react-npm-17.0.2-99ba37d931-b254cc17ce.zip/node_modules/react/index.js");var r=s("./.yarn/__virtual__/@emotion-css-virtual-72c314ddb1/3/opt/drone/yarncache/@emotion-css-npm-11.7.1-25ff8755a7-ac1f56656f.zip/node_modules/@emotion/css/dist/emotion-css.esm.js"),a=s("./packages/grafana-runtime/src/index.ts"),n=s("./packages/grafana-ui/src/index.ts"),i=s("./public/app/core/components/Page/Page.tsx"),o=s("../../opt/drone/yarncache/react-npm-17.0.2-99ba37d931-b254cc17ce.zip/node_modules/react/jsx-runtime.js");function c(e){const{wrapInContent:t=!0,children:s,title:r}=e,c=(0,n.useStyles2)(l);return(0,o.jsxs)(i.T,{children:[(0,o.jsx)(n.PageToolbar,{title:r,pageIcon:"bell",onGoBack:()=>a.locationService.push("/alerting/list")}),(0,o.jsx)("div",{className:c.content,children:t?(0,o.jsx)(u,Object.assign({},e)):s})]})}function u(e){let{children:t,padding:s=2}=e;const r=(0,n.useStyles2)(d(s));return(0,o.jsx)("div",{className:r.wrapper,children:t})}const l=e=>({content:r.css`
      margin: ${e.spacing(0,2,2)};
      max-width: ${e.breakpoints.values.xxl}px;
    `}),d=e=>t=>({wrapper:r.css`
      background: ${t.colors.background.primary};
      border: 1px solid ${t.colors.border.weak};
      border-radius: ${t.shape.borderRadius()};
      padding: ${t.spacing(e)};
    `})},"./public/app/features/alerting/unified/hooks/useCombinedRule.ts":(e,t,s)=>{s.d(t,{H:()=>d,X:()=>p});var r=s("../../opt/drone/yarncache/react-npm-17.0.2-99ba37d931-b254cc17ce.zip/node_modules/react/index.js"),a=s("./.yarn/__virtual__/react-redux-virtual-7ad20a440e/3/opt/drone/yarncache/react-redux-npm-7.2.6-134f5ed64d-0bf142ce0d.zip/node_modules/react-redux/es/index.js"),n=s("./public/app/features/alerting/unified/utils/redux.ts"),i=s("./public/app/features/alerting/unified/hooks/useCombinedRuleNamespaces.ts"),o=s("./public/app/features/alerting/unified/hooks/useUnifiedAlertingSelector.ts"),c=s("./public/app/features/alerting/unified/state/actions.ts"),u=s("./public/app/features/alerting/unified/utils/rule-id.ts"),l=s("./public/app/features/alerting/unified/utils/rules.ts");function d(e,t){const s=f(t),a=(0,i.Z)(t),n=(0,r.useMemo)((()=>{if(e&&t&&0!==a.length)for(const s of a)for(const r of s.groups)for(const s of r.rules){const r=u.Yd(t,s);if(u.Dg(r,e))return s}}),[e,t,a]);return Object.assign({},s,{result:n})}function p(e,t){const s=f(t),a=(0,i.Z)(t),n=(0,r.useMemo)((()=>{if(!e||!t||0===a.length)return[];const s=[];for(const t of a)for(const r of t.groups)for(const t of r.rules)t.name===e&&s.push(t);return s}),[e,t,a]);return Object.assign({},s,{result:n})}function f(e){var t;const s=(0,a.useDispatch)(),n=(0,o._)((e=>e.promRules)),i=m(e,n),u=(0,o._)((e=>e.rulerRules)),d=m(e,u);return(0,r.useEffect)((()=>{e&&(s((0,c.y6)({rulesSourceName:e})),s((0,c.UR)({rulesSourceName:e})))}),[s,e]),{loading:i.loading||d.loading,error:(null!==(t=i.error)&&void 0!==t?t:(0,l.m$)(d))?void 0:d.error,dispatched:i.dispatched&&d.dispatched}}function m(e,t){if(!e)return n.oq;const s=t[e];return s||n.oq}},"./public/app/features/alerting/unified/state/AlertingQueryRunner.ts":(e,t,s)=>{s.d(t,{v:()=>R});var r=s("../../opt/drone/yarncache/rxjs-npm-7.5.1-ce59cbb6a3-78e3eecb16.zip/node_modules/rxjs/dist/esm5/internal/ReplaySubject.js"),a=s("../../opt/drone/yarncache/rxjs-npm-7.5.1-ce59cbb6a3-78e3eecb16.zip/node_modules/rxjs/dist/esm5/internal/observable/of.js"),n=s("../../opt/drone/yarncache/rxjs-npm-7.5.1-ce59cbb6a3-78e3eecb16.zip/node_modules/rxjs/dist/esm5/internal/operators/catchError.js"),i=s("../../opt/drone/yarncache/rxjs-npm-7.5.1-ce59cbb6a3-78e3eecb16.zip/node_modules/rxjs/dist/esm5/internal/operators/share.js"),o=s("../../opt/drone/yarncache/rxjs-npm-7.5.1-ce59cbb6a3-78e3eecb16.zip/node_modules/rxjs/dist/esm5/internal/operators/map.js"),c=s("../../opt/drone/yarncache/uuid-npm-8.3.2-eca0baba53-5575a8a75c.zip/node_modules/uuid/dist/esm-browser/v4.js"),u=s("./packages/grafana-data/src/index.ts"),l=s("./packages/grafana-runtime/src/index.ts"),d=s("./public/app/core/services/backend_srv.ts"),p=s("./public/app/features/query/state/runRequest.ts"),f=s("./public/app/features/expressions/types.ts");const m={from:21600,to:0},g=(e,t)=>{switch(e.type){case f.Us.classic:return h(e);case f.Us.math:return x(e,t);case f.Us.resample:case f.Us.reduce:return j(e)}},h=e=>{var t;return null===(t=e.conditions)||void 0===t?void 0:t.map((e=>e.query.params[0]))},b=(e,t)=>{let s=[],r=[m.to];for(const a of e){const e=t.find((e=>e.refId===a));e&&e.relativeTimeRange&&(s.push(e.relativeTimeRange.from),r.push(e.relativeTimeRange.to))}return{from:s,to:r}},x=(e,t)=>t.filter((t=>{var s;return"query"===t.queryType&&(null===(s=e.expression)||void 0===s?void 0:s.includes(t.refId))})).map((e=>e.refId)),j=e=>e.expression?[e.expression]:void 0;var v=s("./public/app/features/expressions/guards.ts"),y=s("./public/app/features/query/state/processing/revision.ts"),w=s("./public/app/features/query/state/processing/canceler.ts");function _(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class R{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,d.i)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,l.getDataSourceSrv)();_(this,"subject",void 0),_(this,"subscription",void 0),_(this,"lastResult",void 0),this.backendSrv=e,this.dataSourceSrv=t,this.subject=new r.t(1),this.lastResult={}}get(){return this.subject.asObservable()}async run(e){if(0===e.length){const t=k(e,u.LoadingState.Done);return this.subject.next(t)}for(const t of e)if(!(0,v.j)(t.model)){const s=await this.dataSourceSrv.get(t.datasourceUid);if(s.filterQuery&&!s.filterQuery(t.model)){const t=k(e,u.LoadingState.Done);return this.subject.next(t)}}this.subscription=S(this.backendSrv,e).subscribe({next:e=>{const t=I(e,((e,t)=>{const s=this.lastResult[e],r=(0,p.zR)(t,s);return(0,y.C)(r,s)}));this.lastResult=t,this.subject.next(this.lastResult)},error:e=>{this.lastResult=$(this.lastResult,e),this.subject.next(this.lastResult)}})}cancel(){if(!this.subscription)return;this.subscription.unsubscribe();let e=!1;const t=I(this.lastResult,((t,s)=>(s.state===u.LoadingState.Loading&&(e=!0),Object.assign({},s,{state:u.LoadingState.Done}))));e&&this.subject.next(t)}destroy(){this.subject&&this.subject.complete(),this.cancel()}}const S=(e,t)=>{const s=k(t,u.LoadingState.Loading),r={data:{data:t},url:"/api/v1/eval",method:"POST",requestId:(0,c.Z)()};return(0,u.withLoadingIndicator)({whileLoading:s,source:e.fetch(r).pipe(C(s),(0,n.K)((e=>(0,a.of)($(s,e)))),(0,w.V)(e,r.requestId),(0,i.B)())})},k=(e,t)=>e.reduce(((s,r)=>(s[r.refId]={state:t,series:[],timeRange:z(r,e)},s)),{}),z=(e,t)=>{if((0,v.j)(e.model)){const s=((e,t)=>{const s=g(e,t);if(!s)return m;const{from:r,to:a}=b(s,t);return r.length||a.length?{from:Math.max(...r),to:Math.min(...a)}:m})(e.model,t);return u.rangeUtil.relativeToTimeRange(s)}return e.relativeTimeRange?u.rangeUtil.relativeToTimeRange(e.relativeTimeRange):(console.warn(`Query with refId: ${e.refId} did not have any relative time range, using default.`),(0,u.getDefaultTimeRange)())},C=e=>(0,o.U)((t=>{const{data:s}=t,r={};for(const[t,a]of Object.entries(s.results))r[t]={timeRange:e[t].timeRange,state:u.LoadingState.Done,series:a.frames.map(u.dataFrameFromJSON)};return r})),$=(e,t)=>{const s=(0,l.toDataQueryError)(t);return I(e,((e,t)=>Object.assign({},t,{state:u.LoadingState.Error,error:s})))},I=(e,t)=>{const s={};for(const[r,a]of Object.entries(e))s[r]=t(r,a);return s}},"./public/app/features/expressions/guards.ts":(e,t,s)=>{s.d(t,{j:()=>n});var r=s("./packages/grafana-runtime/src/utils/DataSourceWithBackend.ts"),a=s("./public/app/features/expressions/types.ts");const n=e=>{if(!e)return!1;if((0,r.Pr)(e.datasource))return!0;const t=e;return"string"==typeof t.type&&Object.values(a.Us).includes(t.type)}},"./.yarn/__virtual__/react-use-virtual-00326e70ba/3/opt/drone/yarncache/react-use-npm-17.3.2-a032cbeb01-7379460f51.zip/node_modules/react-use/esm/useObservable.js":(e,t,s)=>{s.d(t,{Z:()=>n});var r=s("../../opt/drone/yarncache/react-npm-17.0.2-99ba37d931-b254cc17ce.zip/node_modules/react/index.js"),a=s("./.yarn/__virtual__/react-use-virtual-00326e70ba/3/opt/drone/yarncache/react-use-npm-17.3.2-a032cbeb01-7379460f51.zip/node_modules/react-use/esm/useIsomorphicLayoutEffect.js");const n=function(e,t){var s=(0,r.useState)(t),n=s[0],i=s[1];return(0,a.Z)((function(){var t=e.subscribe(i);return function(){return t.unsubscribe()}}),[e]),n}}}]);
//# sourceMappingURL=AlertingRule.cd4ada1146b53ad3284f.js.map