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","./dist-legacy-Cb1zKq2x.js","./chartjs.utils-legacy-DIImFE2r.js"],(function(e,t){var n,a,s,i,l,o,d,r,u,c,f,g,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){d=e.a,r=e.t},function(e){u=e.l},function(e){c=e.l},function(e){f=e.r},function(e){g=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:{},(y=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[y]="5248bb70-ed82-4a00-91d2-fd5594c14f37",t._sentryDebugIdIdentifier="sentry-dbid-5248bb70-ed82-4a00-91d2-fd5594c14f37")}catch(t){}var t,y;e("default",a({__name:"InsightsChartTimeSaved",props:{data:{},type:{},granularity:{},startDate:{},endDate:{}},setup(e){const t=e,a=o(),y=s((()=>g({plugins:{tooltip:{callbacks:{label:e=>{const n=e.dataset.label??"",a=Number(e.parsed.y);return`${n} ${u(a).toLocaleString("en-US")}${d[t.type](a)}`}}}},scales:{y:{ticks:{callback:e=>u(Number(e))}}}}))),p=s((()=>{const e=[],n=[];for(const a of t.data)e.push(r[t.granularity](a.date)),n.push(a.values.timeSaved);return{labels:e,datasets:[{label:a.baseText("insights.banner.title.timeSaved"),data:n,fill:"origin",cubicInterpolationMode:"monotone",backgroundColor:e=>b(e.chart.ctx,292),borderColor:"rgba(255, 64, 39, 1)"}]}}));return(e,t)=>(n(),l(i(f),{"data-test-id":"insights-chart-time-saved",data:p.value,options:y.value,plugins:[i(c)]},null,8,["data","options","plugins"]))}}))}}}));
//# sourceMappingURL=InsightsChartTimeSaved-legacy-D_peS0y1.js.map