"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[7345],{7345:(i,n,t)=>{t.r(n),t.d(n,{default:()=>s});var e=t(39953),_=t(33155),r=t(72401),E=t(328),a=t(43005);const s=O=>{const{selectedAlertmanager:P}=(0,E.ZA)(),{data:l,isLoading:D,error:C}=(0,r.W)(P);return D&&!l?"loading...":C?e.createElement(_.b,{severity:"error",title:"Failed to fetch contact point"},String(C)):l?e.createElement(a.s,{config:l,alertManagerSourceName:P}):null}},43005:(i,n,t)=>{t.d(n,{s:()=>a});var e=t(39953),_=t(95712),r=t(37472),E=t(87035);const a=({alertManagerSourceName:o,config:s})=>o===_.GC?e.createElement(E.p,{alertManagerSourceName:o,config:s}):e.createElement(r.m,{alertManagerSourceName:o,config:s})},72401:(i,n,t)=>{t.d(n,{W:()=>_});var e=t(37546);function _(r,E){const a=e.alertmanagerApi.endpoints.getAlertmanagerConfiguration.useQuery(r??"",{...E,skip:!r});return{...a,error:a.error}}}}]);

//# sourceMappingURL=7345.4eb5c7c97923fe96c7b0.js.map