n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2 kB
JavaScript
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.16.1"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-BW6xDdqj.js","./core-legacy-VD8c7QJ-.js","./insights.constants-legacy-DtPF8E1N.js","./insights.utils-legacy-DBZPnldI.js","./chart-legacy-BmBDDYdO.js","./smartDecimal-legacy-BR48v4M7.js","./dist-legacy-Cb1zKq2x.js","./chartjs.utils-legacy-DIImFE2r.js"],(function(e,t){var n,a,s,i,l,o,r,u,d,c,f,g,y,b;return{setters:[function(e){n=e.$,a=e.N,s=e.S,i=e.Wt,l=e.w},function(e){o=e.at},function(e){r=e.a,u=e.t},function(e){d=e.o},function(e){c=e.l},function(e){f=e.t},function(e){g=e.r},function(e){y=e.n,b=e.r}],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(p=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[p]="4905b597-7f06-412d-9e57-eccc724b2a77",t._sentryDebugIdIdentifier="sentry-dbid-4905b597-7f06-412d-9e57-eccc724b2a77")}catch(t){}var t,p;e("default",a({__name:"InsightsChartAverageRuntime",props:{data:{},type:{},granularity:{},startDate:{},endDate:{}},setup(e){const t=e,a=o(),p=s((()=>y({plugins:{tooltip:{callbacks:{label:e=>`${e.dataset.label??""} ${f(e.parsed.y)}${r[t.type](e.parsed.y)}`}}}}))),h=s((()=>{const e=[],n=[];for(const a of t.data){e.push(u[t.granularity](a.date));const s=d(a.values.averageRunTime);n.push(s)}return{labels:e,datasets:[{label:a.baseText("insights.banner.title.averageRunTime"),data:n,cubicInterpolationMode:"monotone",fill:"origin",backgroundColor:e=>b(e.chart.ctx,292),borderColor:"rgba(255, 64, 39, 1)"}]}}));return(e,t)=>(n(),l(i(g),{"data-test-id":"insights-chart-average-runtime",data:h.value,options:p.value,plugins:[i(c)]},null,8,["data","options","plugins"]))}}))}}}));
//# sourceMappingURL=InsightsChartAverageRuntime-legacy-DBXcOu6x.js.map