!function(e){function t(t){for(var r,o,i=t[0],a=t[1],s=0,c=[];s{const{help:e,args:t}=s;return{name:"metric",aliases:[],type:"render",inputTypes:["number","string","null"],help:e,args:{label:{types:["string"],aliases:["_","text","description"],help:t.label,default:'""'},labelFont:{types:["style"],help:t.labelFont,default:`{font size=14 family="${o.openSans.value}" color="#000000" align=center}`},metricFont:{types:["style"],help:t.metricFont,default:`{font size=48 family="${o.openSans.value}" color="#000000" align=center lHeight=48}`},metricFormat:{types:["string"],aliases:["format"],help:t.metricFormat}},fn:(e,{label:t,labelFont:r,metricFont:n,metricFormat:o})=>({type:"render",as:"metric",value:{metric:null===e?"?":e,label:t,labelFont:r,metricFont:n,metricFormat:o}})}};r(7);var c=r(3),u=r(4),p=r(5),f=r(6),m=r(1);const d=(e=f.defaultTheme$)=>()=>({name:"metric",displayName:n.i18n.translate("expressionMetric.renderer.metric.displayName",{defaultMessage:"Metric"}),help:n.i18n.translate("expressionMetric.renderer.metric.helpDescription",{defaultMessage:"Render a number over a label"}),reuseDomNode:!0,render:async(t,n,o)=>{const{MetricComponent:i}=await r.e(1).then(r.bind(null,12));o.onDestroy((()=>{Object(c.unmountComponentAtNode)(t)})),Object(c.render)(Object(m.jsx)(u.EuiErrorBoundary,null,Object(m.jsx)(p.KibanaThemeProvider,{theme$:e},Object(m.jsx)(i,{label:n.label,labelFont:n.labelFont?n.labelFont.spec:{},metric:n.metric,metricFont:n.metricFont?n.metricFont.spec:{},metricFormat:n.metricFormat}))),t,(()=>o.done()))}}),b=e=>d(e.theme.theme$);class plugin_ExpressionMetricPlugin{setup(e,{expressions:t}){t.registerFunction(l),t.registerRenderer(b(e))}start(e){}stop(){}}function _(){return new plugin_ExpressionMetricPlugin}},function(e,t){e.exports=__kbnSharedDeps__.ElasticNumeral}]);