@bull-board/ui
Version:
A Dashboard UI built on top of bull or bullmq.
1 lines • 4.57 kB
JavaScript
;(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["45627"],{72231(t,e,r){r.d(e,{A:()=>n});let n=r(38444).A},66017(t,e,r){r.d(e,{q:()=>a});var n={};function a(){return n}},57641(t,e,r){r.d(e,{A:()=>n});function n(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}},81092(t,e,r){r.d(e,{A:()=>n});function n(t,e){if(e.length<t)throw TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}},47245(t,e,r){r.d(e,{A:()=>o});var n=r(95286),a=r(81092);function o(t,e){return(0,a.A)(2,arguments),(0,n.A)(t).getTime()-(0,n.A)(e).getTime()}},53846(t,e,r){r.d(e,{A:()=>m});var n=r(66017),a=r(95286),o=r(81092);function u(t,e){(0,o.A)(2,arguments);var r=(0,a.A)(t),n=(0,a.A)(e),u=r.getTime()-n.getTime();return u<0?-1:u>0?1:u}var s=r(47245),i={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},l=r(72231);function f(t,e){if(null==t)throw TypeError("assign requires that input parameter not be null or undefined");for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}var c=r(57641);function m(t,e,r){(0,o.A)(2,arguments);var m,d,g,h,A,b=(0,n.q)(),v=null!=(m=null!=(d=null==r?void 0:r.locale)?d:b.locale)?m:l.A;if(!v.formatDistance)throw RangeError("locale must contain formatDistance property");var D=u(t,e);if(isNaN(D))throw RangeError("Invalid time value");var p=f(f({},r),{addSuffix:!!(null==r?void 0:r.addSuffix),comparison:D});D>0?(g=(0,a.A)(e),h=(0,a.A)(t)):(g=(0,a.A)(t),h=(0,a.A)(e));var M=function(t,e,r){(0,o.A)(2,arguments);var n,a=(0,s.A)(t,e)/1e3;return((n=null==r?void 0:r.roundingMethod)?i[n]:i.trunc)(a)}(h,g),y=Math.round((M-((0,c.A)(h)-(0,c.A)(g))/1e3)/60);if(y<2)if(null!=r&&r.includeSeconds)if(M<5)return v.formatDistance("lessThanXSeconds",5,p);else if(M<10)return v.formatDistance("lessThanXSeconds",10,p);else if(M<20)return v.formatDistance("lessThanXSeconds",20,p);else if(M<40)return v.formatDistance("halfAMinute",0,p);else if(M<60)return v.formatDistance("lessThanXMinutes",1,p);else return v.formatDistance("xMinutes",1,p);else if(0===y)return v.formatDistance("lessThanXMinutes",1,p);else return v.formatDistance("xMinutes",y,p);if(y<45)return v.formatDistance("xMinutes",y,p);if(y<90)return v.formatDistance("aboutXHours",1,p);if(y<1440){var T=Math.round(y/60);return v.formatDistance("aboutXHours",T,p)}if(y<2520)return v.formatDistance("xDays",1,p);else if(y<43200){var S=Math.round(y/1440);return v.formatDistance("xDays",S,p)}else if(y<86400)return A=Math.round(y/43200),v.formatDistance("aboutXMonths",A,p);if((A=function(t,e){(0,o.A)(2,arguments);var r,n=(0,a.A)(t),s=(0,a.A)(e),i=u(n,s),l=Math.abs(function(t,e){(0,o.A)(2,arguments);var r=(0,a.A)(t),n=(0,a.A)(e);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(n,s));if(l<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*l);var f=u(n,s)===-i;(function(t){(0,o.A)(1,arguments);var e=(0,a.A)(t);return(function(t){(0,o.A)(1,arguments);var e=(0,a.A)(t);return e.setHours(23,59,59,999),e})(e).getTime()===(function(t){(0,o.A)(1,arguments);var e=(0,a.A)(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(23,59,59,999),e})(e).getTime()})((0,a.A)(t))&&1===l&&1===u(t,s)&&(f=!1),r=i*(l-Number(f))}return 0===r?0:r}(h,g))<12){var w=Math.round(y/43200);return v.formatDistance("xMonths",w,p)}var X=A%12,Y=Math.floor(A/12);return X<3?v.formatDistance("aboutXYears",Y,p):X<9?v.formatDistance("overXYears",Y,p):v.formatDistance("almostXYears",Y+1,p)}},95286(t,e,r){r.d(e,{A:()=>o});var n=r(17545),a=r(81092);function o(t){(0,a.A)(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===(0,n.A)(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):(("string"==typeof t||"[object String]"===e)&&"u">typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},17545(t,e,r){r.d(e,{A:()=>n});function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}}}]);