UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 1.78 kB
!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","./dist-legacy-Cb1zKq2x.js","./chartjs.utils-legacy-DIImFE2r.js"],(function(e,t){var a,n,s,o,d,l,i,u,c,r;return{setters:[function(e){a=e.$,n=e.N,s=e.S,o=e.Wt,d=e.w},function(e){l=e.at,i=e.l},function(e){u=e.t},function(e){c=e.t},function(e){r=e.t}],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(f=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[f]="7306a506-79be-486c-b7e4-87c71c0c35b9",t._sentryDebugIdIdentifier="sentry-dbid-7306a506-79be-486c-b7e4-87c71c0c35b9")}catch(t){}var t,f;e("default",n({__name:"InsightsChartTotal",props:{data:{},type:{},granularity:{},startDate:{},endDate:{}},setup(e){const t=e,n=l(),f=i("--color--primary",document.body),b=s((()=>r({plugins:{tooltip:{itemSort:e=>e.dataset.label===n.baseText("insights.chart.succeeded")?-1:1}}}))),g=s((()=>{const e=[],a=[],s=[];for(const n of t.data)e.push(u[t.granularity](n.date)),a.push(n.values.succeeded),s.push(n.values.failed);return{labels:e,datasets:[{label:n.baseText("insights.chart.failed"),data:s,backgroundColor:f.value},{label:n.baseText("insights.chart.succeeded"),data:a,backgroundColor:"#3E999F"}]}}));return(e,t)=>(a(),d(o(c),{"data-test-id":"insights-chart-total",data:g.value,options:b.value},null,8,["data","options"]))}}))}}})); //# sourceMappingURL=InsightsChartTotal-legacy-TK_n7C5T.js.map