"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[8516],{18516:(l,n,e)=>{e.r(n),e.d(n,{default:()=>d});var t=e(39953),_=e(33155),r=e(18644),E=e(72401),a=e(328),P=e(50221);const d=({match:i})=>{const{selectedAlertmanager:o}=(0,a.ZA)(),{data:s,isLoading:f,error:m}=(0,E.W)(o),C=i?.params.name;return C?f&&!s?"loading...":m?t.createElement(_.b,{severity:"error",title:"Failed to fetch contact point"},String(m)):s?t.createElement(P.e,{alertManagerSourceName:o,config:s,receiverName:decodeURIComponent(C)}):null:t.createElement(r.j,{entity:"Contact point"})}},50221:(l,n,e)=>{e.d(n,{e:()=>P});var t=e(39953),_=e(33155),r=e(95712),E=e(37472),a=e(87035);const P=({config:c,receiverName:d,alertManagerSourceName:i})=>{const o=c.alertmanager_config.receivers?.find(({name:s})=>s===d);return o?i===r.GC?t.createElement(a.p,{config:c,alertManagerSourceName:i,existing:o}):t.createElement(E.m,{config:c,alertManagerSourceName:i,existing:o}):t.createElement(_.b,{severity:"error",title:"Receiver not found"},"Sorry, this receiver does not seem to exist.")}},72401:(l,n,e)=>{e.d(n,{W:()=>_});var t=e(37546);function _(r,E){const a=t.alertmanagerApi.endpoints.getAlertmanagerConfiguration.useQuery(r??"",{...E,skip:!r});return{...a,error:a.error}}}}]);

//# sourceMappingURL=8516.ef9bbfc2a8f9703b1de1.js.map