"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[9737],{19737:(v,s,e)=>{e.r(s),e.d(s,{default:()=>p});var n=e(96540),i=e(42418),c=e(7392),d=e(51488),f=e(70383),g=e(93407);const u=({config:a,templateName:t,alertManagerSourceName:r})=>{const o=a.template_files?.[t],l=a.template_file_provenances?.[t];return o?n.createElement(g.By,{alertManagerSourceName:r,config:a,existing:{name:t,content:o},provenance:l}):n.createElement(i.F,{severity:"error",title:"Template not found"},"Sorry, this template does not seem to exists.")},p=({match:a})=>{const{selectedAlertmanager:t}=(0,f.VI)(),{data:r,isLoading:o,error:l}=(0,d.f)(t),m=a?.params.name;return m?o&&!r?"loading...":l?n.createElement(i.F,{severity:"error",title:"Failed to fetch notification template"},String(l)):r?n.createElement(u,{alertManagerSourceName:t,config:r,templateName:decodeURIComponent(m)}):null:n.createElement(c.L,{entity:"Notification template"})}}}]);

//# sourceMappingURL=9737.3340c89ea96d33307cc7.js.map