UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 1.58 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.16.1`}}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]=`fed145fe-b2e2-41f4-9eca-23ffcd99a09b`,e._sentryDebugIdIdentifier=`sentry-dbid-fed145fe-b2e2-41f4-9eca-23ffcd99a09b`)})()}catch{}import{$ as e,N as t,S as n,Wt as r,w as i}from"./vue.runtime.esm-bundler-C3C09Zii.js";import{at as a,l as o}from"./core-Bz5WjPxS.js";import{t as s}from"./insights.constants-G43L9nIf.js";import{t as c}from"./dist-DHUGszlM.js";import{t as l}from"./chartjs.utils-Bw-74clp.js";var u=t({__name:`InsightsChartTotal`,props:{data:{},type:{},granularity:{},startDate:{},endDate:{}},setup(t){let u=t,d=a(),f=o(`--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-DnyIo9Bk.js.map