"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[6877],{43935:(R,i,t)=>{t.r(i),t.d(i,{default:()=>F});var n=t(74848),v=t(54148),m=t(81876),d=t(37e3),f=t(35626),g=t(85651),u=t(13005),h=t(37104),x=t(32174),c=t(747),C=t(88214),P=t(77066),j=t(85946);const y=({contactPoint:o,alertmanagerName:a})=>{const[r,s]=(0,c.L7)(c.QI.UpdateContactPoint),e=!r||!s;return a===C.hY?(0,n.jsx)(j.a,{contactPoint:o,readOnly:e,editMode:!0}):(0,n.jsx)(P.B,{alertManagerSourceName:a,contactPoint:o,readOnly:e,editMode:!0})},A=()=>{const{selectedAlertmanager:o}=(0,u.VI)(),{name:a=""}=(0,v.g)(),r=decodeURIComponent(a),{isLoading:s,error:e,data:l}=(0,f.om)({name:r,alertmanager:o});return s?(0,n.jsx)(m._,{text:"Loading..."}):e?(0,n.jsx)(d.F,{severity:"error",title:"Failed to fetch contact point",children:(0,g.JZ)(e)}):l?(0,n.jsx)(y,{alertmanagerName:o,contactPoint:l}):(0,n.jsx)(d.F,{severity:"error",title:"Receiver not found",children:"Sorry, this contact point does not seem to exist."})};function E(){return(0,n.jsx)(x.y,{navId:"receivers",accessType:"notification",children:(0,n.jsx)(A,{})})}const F=(0,h.S)(E)}}]);

//# sourceMappingURL=EditContactPoint.10a415cc6a0e6b307db0.js.map