UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 1.84 kB
!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","./smartDecimal-legacy-BR48v4M7.js","./dist-legacy-Cb1zKq2x.js","./chartjs.utils-legacy-DIImFE2r.js"],(function(e,t){var a,n,s,l,i,o,u,r,d,f,c,b,y;return{setters:[function(e){a=e.$,n=e.N,s=e.S,l=e.Wt,i=e.w},function(e){o=e.at,u=e.l},function(e){r=e.a,d=e.t},function(e){f=e.s},function(e){c=e.t},function(e){b=e.t},function(e){y=e.t}],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(g=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[g]="b7fa6f8e-31ab-427b-94e0-3fea900146b4",t._sentryDebugIdIdentifier="sentry-dbid-b7fa6f8e-31ab-427b-94e0-3fea900146b4")}catch(t){}var t,g;e("default",n({__name:"InsightsChartFailureRate",props:{data:{},type:{},granularity:{},startDate:{},endDate:{}},setup(e){const t=e,n=o(),g=u("--color--primary",document.body),p=s((()=>y({plugins:{tooltip:{callbacks:{label:e=>`${e.dataset.label??""} ${c(e.parsed.y)}${r[t.type](e.parsed.y)}`}}}}))),h=s((()=>{const e=[],a=[];for(const n of t.data)e.push(d[t.granularity](n.date)),a.push(f(n.values.failureRate));return{labels:e,datasets:[{label:n.baseText("insights.banner.title.failureRate"),data:a,backgroundColor:g.value}]}}));return(e,t)=>(a(),i(l(b),{"data-test-id":"insights-chart-failure-rate",data:h.value,options:p.value},null,8,["data","options"]))}}))}}})); //# sourceMappingURL=InsightsChartFailureRate-legacy-D3zx5psr.js.map