UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 1.87 kB
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.13.4"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./_MapCache-legacy-DwgdC8YO.js","./merge-legacy-uu1aGqHK.js","./dateformat-legacy-BxdD_OP7.js","./insights.constants-legacy-CEIQi13p.js","./dist-legacy-CCfDmF7R.js","./chartjs.utils-legacy-CcjxxyS2.js"],(function(e,t){var a,n,s,d,o,l,i,u,c,r;return{setters:[function(e){a=e.$,n=e.N,s=e.S,d=e.Wt,o=e.w},function(e){l=e.C,i=e.bt},function(e){},function(e){},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]="82fcaf8b-5ea3-4ceb-9dbe-81be5bba29c0",t._sentryDebugIdIdentifier="sentry-dbid-82fcaf8b-5ea3-4ceb-9dbe-81be5bba29c0")}catch(t){}var t,f;e("default",n({__name:"InsightsChartTotal",props:{data:{},type:{},granularity:{},startDate:{},endDate:{}},setup(e){const t=e,n=i(),f=l("--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(),o(d(c),{"data-test-id":"insights-chart-total",data:g.value,options:b.value},null,8,["data","options"]))}}))}}})); //# sourceMappingURL=InsightsChartTotal-legacy-DA4-VjGO.js.map