n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 1.69 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.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]=`39280ae6-499e-4661-aea3-7e56055cc372`,e._sentryDebugIdIdentifier=`sentry-dbid-39280ae6-499e-4661-aea3-7e56055cc372`)})()}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{a as s,t as c}from"./insights.constants-BWd0PYhd.js";import{s as l}from"./insights.utils-BGXnT8rV.js";import{t as u}from"./smartDecimal-CsR7Dvbd.js";import{t as d}from"./dist-DCXTMsxp.js";import{t as f}from"./chartjs.utils-CB90P002.js";var p=t({__name:`InsightsChartFailureRate`,props:{data:{},type:{},granularity:{},startDate:{},endDate:{}},setup(t){let p=t,m=o(),h=a(`--color--primary`,document.body),g=n(()=>f({plugins:{tooltip:{callbacks:{label:e=>`${e.dataset.label??``} ${u(e.parsed.y)}${s[p.type](e.parsed.y)}`}}}})),_=n(()=>{let e=[],t=[];for(let n of p.data)e.push(c[p.granularity](n.date)),t.push(l(n.values.failureRate));return{labels:e,datasets:[{label:m.baseText(`insights.banner.title.failureRate`),data:t,backgroundColor:h.value}]}});return(t,n)=>(e(),i(r(d),{"data-test-id":`insights-chart-failure-rate`,data:_.value,options:g.value},null,8,[`data`,`options`]))}});export{p as default};
//# sourceMappingURL=InsightsChartFailureRate-CFaXEF4c.js.map