n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 1.51 kB
JavaScript
(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]=`bbfb1d21-fdf4-465b-80e7-936305d688c4`,e._sentryDebugIdIdentifier=`sentry-dbid-bbfb1d21-fdf4-465b-80e7-936305d688c4`)})()}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"./smartDecimal-DntD9qTh.js";import{t as l}from"./dist-DHUGszlM.js";import{t as u}from"./chartjs.utils-Bw-74clp.js";var d=t({__name:`InsightsChartFailed`,props:{data:{},type:{},granularity:{},startDate:{},endDate:{}},setup(t){let d=t,f=a(),p=o(`--color--primary`,document.body),m=n(()=>u({plugins:{tooltip:{callbacks:{label:e=>`${e.dataset.label??``} ${c(e.parsed.y)}`}}}})),h=n(()=>{let e=[],t=[];for(let n of d.data)e.push(s[d.granularity](n.date)),t.push(n.values.failed);return{labels:e,datasets:[{label:f.baseText(`insights.chart.failed`),data:t,backgroundColor:p.value}]}});return(t,n)=>(e(),i(r(l),{"data-test-id":`insights-chart-failed`,data:h.value,options:m.value},null,8,[`data`,`options`]))}});export{d as default};
//# sourceMappingURL=InsightsChartFailed-DN0QPpzv.js.map