n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.09 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.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","./insights.utils-legacy-uA0D6qm5.js","./chart-legacy-7cEBc73s.js","./dist-legacy-CCfDmF7R.js","./chartjs.utils-legacy-CcjxxyS2.js"],(function(e,t){var a,n,s,i,l,d,o,r,c,u,f,b,g;return{setters:[function(e){a=e.$,n=e.N,s=e.S,i=e.Wt,l=e.w},function(e){d=e.bt},function(e){},function(e){},function(e){o=e.a,r=e.t},function(e){c=e.l},function(e){u=e.l},function(e){f=e.r},function(e){b=e.n,g=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]="d6dfa4d0-75fa-4ba6-bbdd-a30da9ebc4ec",t._sentryDebugIdIdentifier="sentry-dbid-d6dfa4d0-75fa-4ba6-bbdd-a30da9ebc4ec")}catch(t){}var t,y;e("default",n({__name:"InsightsChartTimeSaved",props:{data:{},type:{},granularity:{},startDate:{},endDate:{}},setup(e){const t=e,n=d(),y=s((()=>b({plugins:{tooltip:{callbacks:{label:e=>{const a=e.dataset.label??"",n=Number(e.parsed.y);return`${a} ${c(n).toLocaleString("en-US")}${o[t.type](n)}`}}}},scales:{y:{ticks:{callback:e=>c(Number(e))}}}}))),p=s((()=>{const e=[],a=[];for(const n of t.data)e.push(r[t.granularity](n.date)),a.push(n.values.timeSaved);return{labels:e,datasets:[{label:n.baseText("insights.banner.title.timeSaved"),data:a,fill:"origin",cubicInterpolationMode:"monotone",backgroundColor:e=>g(e.chart.ctx,292),borderColor:"rgba(255, 64, 39, 1)"}]}}));return(e,t)=>(a(),l(i(f),{"data-test-id":"insights-chart-time-saved",data:p.value,options:y.value,plugins:[i(u)]},null,8,["data","options","plugins"]))}}))}}}));
//# sourceMappingURL=InsightsChartTimeSaved-legacy-DcXFQMGv.js.map