"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[9739],{9739:(F,c,t)=>{t.r(c),t.d(c,{default:()=>y});var n=t(96540),d=t(42418),m=t(7392),f=t(51488),u=t(70383),l=t(19073),g=t(57220),C=t(776),E=t(17430);const h=({config:o,receiverName:a,alertManagerSourceName:e})=>{const[s,i]=(0,l.L7)(l.QI.UpdateContactPoint),r=o.alertmanager_config.receivers?.find(({name:A})=>A===a);if(!r)return n.createElement(d.F,{severity:"error",title:"Receiver not found"},"Sorry, this receiver does not seem to exist.");const v=!s||!i;return e===g.hY?n.createElement(E.a,{config:o,alertManagerSourceName:e,existing:r,readOnly:v}):n.createElement(C.B,{config:o,alertManagerSourceName:e,existing:r,readOnly:v})},y=({match:o})=>{const{selectedAlertmanager:a}=(0,u.VI)(),{data:e,isLoading:s,error:i}=(0,f.f)(a),r=o?.params.name;return r?s&&!e?"loading...":i?n.createElement(d.F,{severity:"error",title:"Failed to fetch contact point"},String(i)):e?n.createElement(h,{alertManagerSourceName:a,config:e,receiverName:decodeURIComponent(r)}):null:n.createElement(m.L,{entity:"Contact point"})}}}]);

//# sourceMappingURL=9739.5a801055fcf72bf4d06f.js.map