UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 1.55 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.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]=`792b679e-a52c-4620-a2aa-bfdf1c12e580`,e._sentryDebugIdIdentifier=`sentry-dbid-792b679e-a52c-4620-a2aa-bfdf1c12e580`)})()}catch{}import{o as e}from"./chunk-CACdhNlC.js";import{t}from"./dateformat-Cs9X8ykY.js";var n=e(t(),1),r={TOTAL:`total`,FAILED:`failed`,FAILURE_RATE:`failureRate`,TIME_SAVED:`timeSaved`,AVERAGE_RUN_TIME:`averageRunTime`},i=[r.TOTAL,r.FAILED,r.FAILURE_RATE,r.TIME_SAVED,r.AVERAGE_RUN_TIME],a={total:()=>``,failed:()=>``,failureRate:()=>`%`,timeSaved:e=>Math.abs(e)<60?`m`:`h`,averageRunTime:()=>`s`},o={total:()=>`%`,failed:()=>`%`,failureRate:()=>`pp`,timeSaved:e=>Math.abs(e)<60?`m`:`h`,averageRunTime:()=>`s`},s={POSITIVE:`positive`,NEGATIVE:`negative`,NEUTRAL:`neutral`},c={total:s.POSITIVE,failed:s.NEGATIVE,failureRate:s.NEGATIVE,timeSaved:s.POSITIVE,averageRunTime:s.NEUTRAL},l={hour:e=>(0,n.default)(e,`HH:MM`),day:e=>(0,n.default)(e,`mmm d`),week:e=>{let t=new Date(e),r=new Date(t);r.setDate(t.getDate()+7);let i=t.getMonth()===r.getMonth()?`d`:`mmm d`;return[(0,n.default)(t,`mmm d`),(0,n.default)(r,i)].join(`-`)}};export{a,c as i,o as n,s as o,i as r,r as s,l as t}; //# sourceMappingURL=insights.constants-G43L9nIf.js.map