"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[567],{20567:(O,r,e)=>{e.r(r),e.d(r,{default:()=>s});var t=e(39953),E=e(33155),_=e(18644),o=e(72401),a=e(328),n=e(13747);const s=({match:l})=>{const{selectedAlertmanager:i}=(0,a.ZA)(),{data:m,isLoading:D,error:M}=(0,o.W)(i),P=l?.params.name;return P?D&&!m?"loading...":M?t.createElement(E.b,{severity:"error",title:"Failed to fetch message template"},String(M)):m?t.createElement(n.C,{alertManagerSourceName:i,config:m,templateName:decodeURIComponent(P)}):null:t.createElement(_.j,{entity:"Message template"})}},13747:(O,r,e)=>{e.d(r,{C:()=>o});var t=e(39953),E=e(33155),_=e(9853);const o=({config:a,templateName:n,alertManagerSourceName:d})=>{const s=a.template_files?.[n],l=a.template_file_provenances?.[n];return s?t.createElement(_.OZ,{alertManagerSourceName:d,config:a,existing:{name:n,content:s},provenance:l}):t.createElement(E.b,{severity:"error",title:"Template not found"},"Sorry, this template does not seem to exists.")}}}]);

//# sourceMappingURL=567.ce11404f4b38b2321d44.js.map