UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 1.58 kB
(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.13.4`}}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]=`c0d484d5-1be1-4159-af5e-7df2431aa816`,e._sentryDebugIdIdentifier=`sentry-dbid-c0d484d5-1be1-4159-af5e-7df2431aa816`)})()}catch{}import{$ as e,N as t,S as n,Wt as r,w as i}from"./vue.runtime.esm-bundler-D9KLAxvJ.js";import{C as a,bt as o}from"./_MapCache-CUJwh2qp.js";import"./merge-BqvKZ38d.js";import"./dateformat-CYfyw486.js";import{t as s}from"./insights.constants-BWd0PYhd.js";import{t as c}from"./smartDecimal-CsR7Dvbd.js";import{t as l}from"./dist-DCXTMsxp.js";import{t as u}from"./chartjs.utils-CB90P002.js";var d=t({__name:`InsightsChartFailed`,props:{data:{},type:{},granularity:{},startDate:{},endDate:{}},setup(t){let d=t,f=o(),p=a(`--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-CzT2WHw6.js.map