"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[2120],{9739:(P,i,t)=>{t.r(i),t.d(i,{default:()=>j});var n=t(74848),m=t(39558),d=t(42418),v=t(93667),u=t(78742),f=t(70383),c=t(19073),C=t(57220),g=t(776),h=t(17430);const x=({contactPoint:a,alertmanagerName:o})=>{const[r,s]=(0,c.L7)(c.QI.UpdateContactPoint),e=!r||!s;return o===C.hY?(0,n.jsx)(h.a,{contactPoint:a,readOnly:e,editMode:!0}):(0,n.jsx)(g.B,{alertManagerSourceName:o,contactPoint:a,readOnly:e,editMode:!0})},j=({match:a})=>{const{selectedAlertmanager:o}=(0,f.VI)(),r=decodeURIComponent(a?.params.name),{isLoading:s,error:e,data:l}=(0,v.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,u.JZ)(e)}):l?(0,n.jsx)(x,{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."})}}}]);

//# sourceMappingURL=2120.617214410a5cc92bef54.js.map