UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 1.65 kB
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`n8n@2.13.4`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`83fbb12d-7a2b-46eb-aadb-8c43ec7ce2cc`,e._sentryDebugIdIdentifier=`sentry-dbid-83fbb12d-7a2b-46eb-aadb-8c43ec7ce2cc`)})()}catch{}import{$ as e,N as t,S as n,Wt as r,w as i}from"./vue.runtime.esm-bundler-D9KLAxvJ.js";import{C as a,bt as o}from"./_MapCache-CUJwh2qp.js";import"./merge-BqvKZ38d.js";import"./dateformat-CYfyw486.js";import{t as s}from"./insights.constants-BWd0PYhd.js";import{t as c}from"./dist-DCXTMsxp.js";import{t as l}from"./chartjs.utils-CB90P002.js";var u=t({__name:`InsightsChartTotal`,props:{data:{},type:{},granularity:{},startDate:{},endDate:{}},setup(t){let u=t,d=o(),f=a(`--color--primary`,document.body),p=n(()=>l({plugins:{tooltip:{itemSort:e=>e.dataset.label===d.baseText(`insights.chart.succeeded`)?-1:1}}})),m=n(()=>{let e=[],t=[],n=[];for(let r of u.data)e.push(s[u.granularity](r.date)),t.push(r.values.succeeded),n.push(r.values.failed);return{labels:e,datasets:[{label:d.baseText(`insights.chart.failed`),data:n,backgroundColor:f.value},{label:d.baseText(`insights.chart.succeeded`),data:t,backgroundColor:`#3E999F`}]}});return(t,n)=>(e(),i(r(c),{"data-test-id":`insights-chart-total`,data:m.value,options:p.value},null,8,[`data`,`options`]))}});export{u as default}; //# sourceMappingURL=InsightsChartTotal-YeubKP_n.js.map