@bigbinary/neetoui 5.1.19 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/formik.cjs.js +2 -2
- package/formik.cjs.js.map +1 -1
- package/formik.js +2 -2
- package/formik.js.map +1 -1
- package/index.cjs.js +26 -308
- package/index.cjs.js.map +1 -1
- package/index.css +1 -1
- package/index.js +25 -307
- package/index.js.map +1 -1
- package/layouts.cjs.js +2 -2
- package/layouts.cjs.js.map +1 -1
- package/layouts.js +2 -2
- package/layouts.js.map +1 -1
- package/package.json +11 -11
package/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import React__default, { createContext, useContext, useRef, useEffect, useLayout
|
|
|
3
3
|
import { Right, Down, Close, Info, Focus, Left, Calendar, Check, MenuHorizontal, Clock, CheckCircle, Warning, CloseCircle } from '@bigbinary/neeto-icons';
|
|
4
4
|
import { Link, NavLink, useHistory } from 'react-router-dom';
|
|
5
5
|
import ReactDOM, { createPortal } from 'react-dom';
|
|
6
|
-
import
|
|
6
|
+
import _DatePicker from 'antd/lib/date-picker';
|
|
7
7
|
import _Table from 'antd/lib/table';
|
|
8
8
|
import require$$0 from 'util';
|
|
9
9
|
import { t as t$1 } from 'i18next';
|
|
@@ -10578,50 +10578,50 @@ function _createClass$3(Constructor, protoProps, staticProps) {
|
|
|
10578
10578
|
return Constructor;
|
|
10579
10579
|
}
|
|
10580
10580
|
|
|
10581
|
-
var dayjs_min
|
|
10581
|
+
var dayjs_min = {exports: {}};
|
|
10582
10582
|
|
|
10583
10583
|
(function (module, exports) {
|
|
10584
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",
|
|
10585
|
-
} (dayjs_min
|
|
10584
|
+
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
|
|
10585
|
+
} (dayjs_min));
|
|
10586
10586
|
|
|
10587
|
-
var dayjs
|
|
10587
|
+
var dayjs = dayjs_min.exports;
|
|
10588
10588
|
|
|
10589
|
-
var localeData$
|
|
10589
|
+
var localeData$1 = {exports: {}};
|
|
10590
10590
|
|
|
10591
10591
|
(function (module, exports) {
|
|
10592
10592
|
!function(n,e){module.exports=e();}(commonjsGlobal,(function(){return function(n,e,t){var r=e.prototype,o=function(n){return n&&(n.indexOf?n:n.s)},u=function(n,e,t,r,u){var i=n.name?n:n.$locale(),a=o(i[e]),s=o(i[t]),f=a||s.map((function(n){return n.slice(0,r)}));if(!u)return f;var d=i.weekStart;return f.map((function(n,e){return f[(e+(d||0))%7]}))},i=function(){return t.Ls[t.locale()]},a=function(n,e){return n.formats[e]||function(n){return n.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(n,e,t){return e||t.slice(1)}))}(n.formats[e.toUpperCase()])},s=function(){var n=this;return {months:function(e){return e?e.format("MMMM"):u(n,"months")},monthsShort:function(e){return e?e.format("MMM"):u(n,"monthsShort","months",3)},firstDayOfWeek:function(){return n.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):u(n,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):u(n,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):u(n,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return a(n.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s.bind(this)()},t.localeData=function(){var n=i();return {firstDayOfWeek:function(){return n.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(e){return a(n,e)},meridiem:n.meridiem,ordinal:n.ordinal}},t.months=function(){return u(i(),"months")},t.monthsShort=function(){return u(i(),"monthsShort","months",3)},t.weekdays=function(n){return u(i(),"weekdays",null,null,n)},t.weekdaysShort=function(n){return u(i(),"weekdaysShort","weekdays",3,n)},t.weekdaysMin=function(n){return u(i(),"weekdaysMin","weekdays",2,n)};}}));
|
|
10593
|
-
} (localeData$
|
|
10593
|
+
} (localeData$1));
|
|
10594
10594
|
|
|
10595
|
-
var localeData
|
|
10595
|
+
var localeData = localeData$1.exports;
|
|
10596
10596
|
|
|
10597
10597
|
var utc$1 = {exports: {}};
|
|
10598
10598
|
|
|
10599
10599
|
(function (module, exports) {
|
|
10600
|
-
!function(t,i){module.exports=i();}(commonjsGlobal,(function(){var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:!0,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:!0});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t);};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds();}else r.call(this);};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof s&&(s=function(t){void 0===t&&(t="");var s=t.match(i);if(!s)return null;var f=(""+s[0]).match(e)||["-",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:"+"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r;}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||
|
|
10600
|
+
!function(t,i){module.exports=i();}(commonjsGlobal,(function(){var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:!0,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:!0});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t);};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds();}else r.call(this);};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof s&&(s=function(t){void 0===t&&(t="");var s=t.match(i);if(!s)return null;var f=(""+s[0]).match(e)||["-",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:"+"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r;}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return !!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return "s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)};}}));
|
|
10601
10601
|
} (utc$1));
|
|
10602
10602
|
|
|
10603
10603
|
var utc = utc$1.exports;
|
|
10604
10604
|
|
|
10605
|
-
var weekday$
|
|
10605
|
+
var weekday$1 = {exports: {}};
|
|
10606
10606
|
|
|
10607
10607
|
(function (module, exports) {
|
|
10608
10608
|
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,i=this.$W,n=(i<t?i+7:i)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")};}}));
|
|
10609
|
-
} (weekday$
|
|
10609
|
+
} (weekday$1));
|
|
10610
10610
|
|
|
10611
|
-
var weekday
|
|
10611
|
+
var weekday = weekday$1.exports;
|
|
10612
10612
|
|
|
10613
|
-
var weekOfYear$
|
|
10613
|
+
var weekOfYear$1 = {exports: {}};
|
|
10614
10614
|
|
|
10615
10615
|
(function (module, exports) {
|
|
10616
10616
|
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){var e="week",t="year";return function(i,n,r){var f=n.prototype;f.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var f=r(this).startOf(t).add(1,t).date(n),s=r(this).endOf(e);if(f.isBefore(s))return 1}var a=r(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),o=this.diff(a,e,!0);return o<0?r(this).startOf("week").week():Math.ceil(o)},f.weeks=function(e){return void 0===e&&(e=null),this.week(e)};}}));
|
|
10617
|
-
} (weekOfYear$
|
|
10617
|
+
} (weekOfYear$1));
|
|
10618
10618
|
|
|
10619
|
-
var weekOfYear
|
|
10619
|
+
var weekOfYear = weekOfYear$1.exports;
|
|
10620
10620
|
|
|
10621
|
-
dayjs
|
|
10622
|
-
dayjs
|
|
10623
|
-
dayjs
|
|
10624
|
-
dayjs
|
|
10621
|
+
dayjs.extend(weekOfYear);
|
|
10622
|
+
dayjs.extend(weekday);
|
|
10623
|
+
dayjs.extend(localeData);
|
|
10624
|
+
dayjs.extend(utc);
|
|
10625
10625
|
var getScrollbarWidth = function getScrollbarWidth() {
|
|
10626
10626
|
var _parentDiv$parentNode;
|
|
10627
10627
|
var parentDiv = document.createElement("div");
|
|
@@ -10644,8 +10644,8 @@ var hyphenize = function hyphenize(string) {
|
|
|
10644
10644
|
};
|
|
10645
10645
|
var convertToDayjsObjects = function convertToDayjsObjects(value) {
|
|
10646
10646
|
return value instanceof Array ? value.map(function (date) {
|
|
10647
|
-
return date ? dayjs
|
|
10648
|
-
}) : value && dayjs
|
|
10647
|
+
return date ? dayjs(date) : date;
|
|
10648
|
+
}) : value && dayjs(value);
|
|
10649
10649
|
};
|
|
10650
10650
|
var UniqueArray = /*#__PURE__*/function () {
|
|
10651
10651
|
function UniqueArray() {
|
|
@@ -19976,297 +19976,16 @@ var ColorPicker = function ColorPicker(_ref) {
|
|
|
19976
19976
|
}, /*#__PURE__*/React__default.createElement(Palette, colorPaletteProps))));
|
|
19977
19977
|
};
|
|
19978
19978
|
|
|
19979
|
-
var dayjs_min = {exports: {}};
|
|
19980
|
-
|
|
19981
|
-
(function (module, exports) {
|
|
19982
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case c:return r?l(1,0):l(31,11);case f:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),l=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,l=this;r=Number(r);var $=O.p(h),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===f)return this.set(f,this.$M+r);if($===c)return this.set(c,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||$[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,v=this-M,g=O.m(this,M);return g=($={},$[c]=g/12,$[f]=g,$[h]=g/3,$[o]=(v-m)/6048e5,$[a]=(v-m)/864e5,$[u]=v/n,$[s]=v/e,$[i]=v/t,$)[y]||v,l?g:O.a(g)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
|
|
19983
|
-
} (dayjs_min));
|
|
19984
|
-
|
|
19985
|
-
var dayjs = dayjs_min.exports;
|
|
19986
|
-
|
|
19987
|
-
/* eslint-disable no-console */
|
|
19988
|
-
var warned = {};
|
|
19989
|
-
function note(valid, message) {
|
|
19990
|
-
}
|
|
19991
|
-
function call(method, valid, message) {
|
|
19992
|
-
if (!valid && !warned[message]) {
|
|
19993
|
-
method(false, message);
|
|
19994
|
-
warned[message] = true;
|
|
19995
|
-
}
|
|
19996
|
-
}
|
|
19997
|
-
function noteOnce(valid, message) {
|
|
19998
|
-
call(note, valid, message);
|
|
19999
|
-
}
|
|
20000
|
-
/* eslint-enable */
|
|
20001
|
-
|
|
20002
|
-
var weekday$1 = {exports: {}};
|
|
20003
|
-
|
|
20004
|
-
(function (module, exports) {
|
|
20005
|
-
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,i=this.$W,n=(i<t?i+7:i)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")};}}));
|
|
20006
|
-
} (weekday$1));
|
|
20007
|
-
|
|
20008
|
-
var weekday = weekday$1.exports;
|
|
20009
|
-
|
|
20010
|
-
var localeData$1 = {exports: {}};
|
|
20011
|
-
|
|
20012
|
-
(function (module, exports) {
|
|
20013
|
-
!function(n,e){module.exports=e();}(commonjsGlobal,(function(){return function(n,e,t){var r=e.prototype,o=function(n){return n&&(n.indexOf?n:n.s)},u=function(n,e,t,r,u){var i=n.name?n:n.$locale(),a=o(i[e]),s=o(i[t]),f=a||s.map((function(n){return n.slice(0,r)}));if(!u)return f;var d=i.weekStart;return f.map((function(n,e){return f[(e+(d||0))%7]}))},i=function(){return t.Ls[t.locale()]},a=function(n,e){return n.formats[e]||function(n){return n.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(n,e,t){return e||t.slice(1)}))}(n.formats[e.toUpperCase()])},s=function(){var n=this;return {months:function(e){return e?e.format("MMMM"):u(n,"months")},monthsShort:function(e){return e?e.format("MMM"):u(n,"monthsShort","months",3)},firstDayOfWeek:function(){return n.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):u(n,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):u(n,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):u(n,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return a(n.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s.bind(this)()},t.localeData=function(){var n=i();return {firstDayOfWeek:function(){return n.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(e){return a(n,e)},meridiem:n.meridiem,ordinal:n.ordinal}},t.months=function(){return u(i(),"months")},t.monthsShort=function(){return u(i(),"monthsShort","months",3)},t.weekdays=function(n){return u(i(),"weekdays",null,null,n)},t.weekdaysShort=function(n){return u(i(),"weekdaysShort","weekdays",3,n)},t.weekdaysMin=function(n){return u(i(),"weekdaysMin","weekdays",2,n)};}}));
|
|
20014
|
-
} (localeData$1));
|
|
20015
|
-
|
|
20016
|
-
var localeData = localeData$1.exports;
|
|
20017
|
-
|
|
20018
|
-
var weekOfYear$1 = {exports: {}};
|
|
20019
|
-
|
|
20020
|
-
(function (module, exports) {
|
|
20021
|
-
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){var e="week",t="year";return function(i,n,r){var f=n.prototype;f.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var f=r(this).startOf(t).add(1,t).date(n),s=r(this).endOf(e);if(f.isBefore(s))return 1}var a=r(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),o=this.diff(a,e,!0);return o<0?r(this).startOf("week").week():Math.ceil(o)},f.weeks=function(e){return void 0===e&&(e=null),this.week(e)};}}));
|
|
20022
|
-
} (weekOfYear$1));
|
|
20023
|
-
|
|
20024
|
-
var weekOfYear = weekOfYear$1.exports;
|
|
20025
|
-
|
|
20026
|
-
var weekYear$1 = {exports: {}};
|
|
20027
|
-
|
|
20028
|
-
(function (module, exports) {
|
|
20029
|
-
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n};}}));
|
|
20030
|
-
} (weekYear$1));
|
|
20031
|
-
|
|
20032
|
-
var weekYear = weekYear$1.exports;
|
|
20033
|
-
|
|
20034
|
-
var advancedFormat$1 = {exports: {}};
|
|
20035
|
-
|
|
20036
|
-
(function (module, exports) {
|
|
20037
|
-
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){return function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return n.bind(this)(e);var s=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return r.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return r.ordinal(t.week(),"W");case"w":case"ww":return s.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return s.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return s.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return "["+t.offsetName()+"]";case"zzz":return "["+t.offsetName("long")+"]";default:return e}}));return n.bind(this)(a)};}}));
|
|
20038
|
-
} (advancedFormat$1));
|
|
20039
|
-
|
|
20040
|
-
var advancedFormat = advancedFormat$1.exports;
|
|
20041
|
-
|
|
20042
|
-
var customParseFormat$1 = {exports: {}};
|
|
20043
|
-
|
|
20044
|
-
(function (module, exports) {
|
|
20045
|
-
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return (e=+e)+(e>68?1900:2e3)};var a=function(e){return function(t){this[e]=+t;}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e);}],h=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1);}],a:[i,function(e){this.afternoon=u(e,!0);}],S:[/\d/,function(e){this.milliseconds=100*+e;}],SS:[n,function(e){this.milliseconds=10*+e;}],SSS:[/\d{3}/,function(e){this.milliseconds=+e;}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r);}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(e){var t=h("months"),n=(h("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n;}],MMMM:[i,function(e){var t=h("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t;}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e);}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=s.length,f=0;f<a;f+=1){var h=s[f],u=d[h],c=u&&u[0],l=u&&u[1];s[f]=l?{regex:c,parser:l}:h.replace(/^\[|\]$/g,"");}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else {var o=i.regex,f=i.parser,h=e.slice(r),u=o.exec(h)[0];f.call(t,u),e=e.replace(u,"");}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon;}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,s=e.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=!0===s[2],h=!0===s[3],u=f||h,d=s[2];h&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=c(t)(e),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,h=r.seconds,u=r.milliseconds,d=r.zone,l=new Date,m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=h||0,g=u||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g)}catch(e){return new Date("")}}(t,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),o={};}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l&&(this.$d=new Date(""));}else i.call(this,e);};}}));
|
|
20046
|
-
} (customParseFormat$1));
|
|
20047
|
-
|
|
20048
|
-
var customParseFormat = customParseFormat$1.exports;
|
|
20049
|
-
|
|
20050
|
-
dayjs.extend(customParseFormat);
|
|
20051
|
-
dayjs.extend(advancedFormat);
|
|
20052
|
-
dayjs.extend(weekday);
|
|
20053
|
-
dayjs.extend(localeData);
|
|
20054
|
-
dayjs.extend(weekOfYear);
|
|
20055
|
-
dayjs.extend(weekYear);
|
|
20056
|
-
dayjs.extend(function (o, c) {
|
|
20057
|
-
// todo support Wo (ISO week)
|
|
20058
|
-
var proto = c.prototype;
|
|
20059
|
-
var oldFormat = proto.format;
|
|
20060
|
-
proto.format = function f(formatStr) {
|
|
20061
|
-
var str = (formatStr || '').replace('Wo', 'wo');
|
|
20062
|
-
return oldFormat.bind(this)(str);
|
|
20063
|
-
};
|
|
20064
|
-
});
|
|
20065
|
-
var localeMap = {
|
|
20066
|
-
// ar_EG:
|
|
20067
|
-
// az_AZ:
|
|
20068
|
-
// bg_BG:
|
|
20069
|
-
bn_BD: 'bn-bd',
|
|
20070
|
-
by_BY: 'be',
|
|
20071
|
-
// ca_ES:
|
|
20072
|
-
// cs_CZ:
|
|
20073
|
-
// da_DK:
|
|
20074
|
-
// de_DE:
|
|
20075
|
-
// el_GR:
|
|
20076
|
-
en_GB: 'en-gb',
|
|
20077
|
-
en_US: 'en',
|
|
20078
|
-
// es_ES:
|
|
20079
|
-
// et_EE:
|
|
20080
|
-
// fa_IR:
|
|
20081
|
-
// fi_FI:
|
|
20082
|
-
fr_BE: 'fr',
|
|
20083
|
-
fr_CA: 'fr-ca',
|
|
20084
|
-
// fr_FR:
|
|
20085
|
-
// ga_IE:
|
|
20086
|
-
// gl_ES:
|
|
20087
|
-
// he_IL:
|
|
20088
|
-
// hi_IN:
|
|
20089
|
-
// hr_HR:
|
|
20090
|
-
// hu_HU:
|
|
20091
|
-
hy_AM: 'hy-am',
|
|
20092
|
-
// id_ID:
|
|
20093
|
-
// is_IS:
|
|
20094
|
-
// it_IT:
|
|
20095
|
-
// ja_JP:
|
|
20096
|
-
// ka_GE:
|
|
20097
|
-
// kk_KZ:
|
|
20098
|
-
// km_KH:
|
|
20099
|
-
kmr_IQ: 'ku',
|
|
20100
|
-
// kn_IN:
|
|
20101
|
-
// ko_KR:
|
|
20102
|
-
// ku_IQ: // previous ku in antd
|
|
20103
|
-
// lt_LT:
|
|
20104
|
-
// lv_LV:
|
|
20105
|
-
// mk_MK:
|
|
20106
|
-
// ml_IN:
|
|
20107
|
-
// mn_MN:
|
|
20108
|
-
// ms_MY:
|
|
20109
|
-
// nb_NO:
|
|
20110
|
-
// ne_NP:
|
|
20111
|
-
nl_BE: 'nl-be',
|
|
20112
|
-
// nl_NL:
|
|
20113
|
-
// pl_PL:
|
|
20114
|
-
pt_BR: 'pt-br',
|
|
20115
|
-
// pt_PT:
|
|
20116
|
-
// ro_RO:
|
|
20117
|
-
// ru_RU:
|
|
20118
|
-
// sk_SK:
|
|
20119
|
-
// sl_SI:
|
|
20120
|
-
// sr_RS:
|
|
20121
|
-
// sv_SE:
|
|
20122
|
-
// ta_IN:
|
|
20123
|
-
// th_TH:
|
|
20124
|
-
// tr_TR:
|
|
20125
|
-
// uk_UA:
|
|
20126
|
-
// ur_PK:
|
|
20127
|
-
// vi_VN:
|
|
20128
|
-
zh_CN: 'zh-cn',
|
|
20129
|
-
zh_HK: 'zh-hk',
|
|
20130
|
-
zh_TW: 'zh-tw'
|
|
20131
|
-
};
|
|
20132
|
-
var parseLocale = function parseLocale(locale) {
|
|
20133
|
-
var mapLocale = localeMap[locale];
|
|
20134
|
-
return mapLocale || locale.split('_')[0];
|
|
20135
|
-
};
|
|
20136
|
-
var parseNoMatchNotice = function parseNoMatchNotice() {
|
|
20137
|
-
/* istanbul ignore next */
|
|
20138
|
-
noteOnce(false, 'Not match any format. Please help to fire a issue about this.');
|
|
20139
|
-
};
|
|
20140
|
-
var generateConfig = {
|
|
20141
|
-
// get
|
|
20142
|
-
getNow: function getNow() {
|
|
20143
|
-
return dayjs();
|
|
20144
|
-
},
|
|
20145
|
-
getFixedDate: function getFixedDate(string) {
|
|
20146
|
-
return dayjs(string, ['YYYY-M-DD', 'YYYY-MM-DD']);
|
|
20147
|
-
},
|
|
20148
|
-
getEndDate: function getEndDate(date) {
|
|
20149
|
-
return date.endOf('month');
|
|
20150
|
-
},
|
|
20151
|
-
getWeekDay: function getWeekDay(date) {
|
|
20152
|
-
var clone = date.locale('en');
|
|
20153
|
-
return clone.weekday() + clone.localeData().firstDayOfWeek();
|
|
20154
|
-
},
|
|
20155
|
-
getYear: function getYear(date) {
|
|
20156
|
-
return date.year();
|
|
20157
|
-
},
|
|
20158
|
-
getMonth: function getMonth(date) {
|
|
20159
|
-
return date.month();
|
|
20160
|
-
},
|
|
20161
|
-
getDate: function getDate(date) {
|
|
20162
|
-
return date.date();
|
|
20163
|
-
},
|
|
20164
|
-
getHour: function getHour(date) {
|
|
20165
|
-
return date.hour();
|
|
20166
|
-
},
|
|
20167
|
-
getMinute: function getMinute(date) {
|
|
20168
|
-
return date.minute();
|
|
20169
|
-
},
|
|
20170
|
-
getSecond: function getSecond(date) {
|
|
20171
|
-
return date.second();
|
|
20172
|
-
},
|
|
20173
|
-
// set
|
|
20174
|
-
addYear: function addYear(date, diff) {
|
|
20175
|
-
return date.add(diff, 'year');
|
|
20176
|
-
},
|
|
20177
|
-
addMonth: function addMonth(date, diff) {
|
|
20178
|
-
return date.add(diff, 'month');
|
|
20179
|
-
},
|
|
20180
|
-
addDate: function addDate(date, diff) {
|
|
20181
|
-
return date.add(diff, 'day');
|
|
20182
|
-
},
|
|
20183
|
-
setYear: function setYear(date, year) {
|
|
20184
|
-
return date.year(year);
|
|
20185
|
-
},
|
|
20186
|
-
setMonth: function setMonth(date, month) {
|
|
20187
|
-
return date.month(month);
|
|
20188
|
-
},
|
|
20189
|
-
setDate: function setDate(date, num) {
|
|
20190
|
-
return date.date(num);
|
|
20191
|
-
},
|
|
20192
|
-
setHour: function setHour(date, hour) {
|
|
20193
|
-
return date.hour(hour);
|
|
20194
|
-
},
|
|
20195
|
-
setMinute: function setMinute(date, minute) {
|
|
20196
|
-
return date.minute(minute);
|
|
20197
|
-
},
|
|
20198
|
-
setSecond: function setSecond(date, second) {
|
|
20199
|
-
return date.second(second);
|
|
20200
|
-
},
|
|
20201
|
-
// Compare
|
|
20202
|
-
isAfter: function isAfter(date1, date2) {
|
|
20203
|
-
return date1.isAfter(date2);
|
|
20204
|
-
},
|
|
20205
|
-
isValidate: function isValidate(date) {
|
|
20206
|
-
return date.isValid();
|
|
20207
|
-
},
|
|
20208
|
-
locale: {
|
|
20209
|
-
getWeekFirstDay: function getWeekFirstDay(locale) {
|
|
20210
|
-
return dayjs().locale(parseLocale(locale)).localeData().firstDayOfWeek();
|
|
20211
|
-
},
|
|
20212
|
-
getWeekFirstDate: function getWeekFirstDate(locale, date) {
|
|
20213
|
-
return date.locale(parseLocale(locale)).weekday(0);
|
|
20214
|
-
},
|
|
20215
|
-
getWeek: function getWeek(locale, date) {
|
|
20216
|
-
return date.locale(parseLocale(locale)).week();
|
|
20217
|
-
},
|
|
20218
|
-
getShortWeekDays: function getShortWeekDays(locale) {
|
|
20219
|
-
return dayjs().locale(parseLocale(locale)).localeData().weekdaysMin();
|
|
20220
|
-
},
|
|
20221
|
-
getShortMonths: function getShortMonths(locale) {
|
|
20222
|
-
return dayjs().locale(parseLocale(locale)).localeData().monthsShort();
|
|
20223
|
-
},
|
|
20224
|
-
format: function format(locale, date, _format) {
|
|
20225
|
-
return date.locale(parseLocale(locale)).format(_format);
|
|
20226
|
-
},
|
|
20227
|
-
parse: function parse(locale, text, formats) {
|
|
20228
|
-
var localeStr = parseLocale(locale);
|
|
20229
|
-
for (var i = 0; i < formats.length; i += 1) {
|
|
20230
|
-
var format = formats[i];
|
|
20231
|
-
var formatText = text;
|
|
20232
|
-
if (format.includes('wo') || format.includes('Wo')) {
|
|
20233
|
-
// parse Wo
|
|
20234
|
-
var year = formatText.split('-')[0];
|
|
20235
|
-
var weekStr = formatText.split('-')[1];
|
|
20236
|
-
var firstWeek = dayjs(year, 'YYYY').startOf('year').locale(localeStr);
|
|
20237
|
-
for (var j = 0; j <= 52; j += 1) {
|
|
20238
|
-
var nextWeek = firstWeek.add(j, 'week');
|
|
20239
|
-
if (nextWeek.format('Wo') === weekStr) {
|
|
20240
|
-
return nextWeek;
|
|
20241
|
-
}
|
|
20242
|
-
}
|
|
20243
|
-
parseNoMatchNotice();
|
|
20244
|
-
return null;
|
|
20245
|
-
}
|
|
20246
|
-
var date = dayjs(formatText, format).locale(localeStr);
|
|
20247
|
-
if (date.isValid()) {
|
|
20248
|
-
return date;
|
|
20249
|
-
}
|
|
20250
|
-
}
|
|
20251
|
-
if (text) {
|
|
20252
|
-
parseNoMatchNotice();
|
|
20253
|
-
}
|
|
20254
|
-
return null;
|
|
20255
|
-
}
|
|
20256
|
-
}
|
|
20257
|
-
};
|
|
20258
|
-
|
|
20259
19979
|
var _excluded$q = ["className", "label", "size", "dropdownClassName", "popupClassName", "dateFormat", "timeFormat", "onChange", "onOk", "picker", "showTime", "type", "nakedInput", "error", "defaultValue", "value", "labelProps"];
|
|
20260
19980
|
var INPUT_SIZES$1 = {
|
|
20261
19981
|
small: "small",
|
|
20262
19982
|
medium: "medium",
|
|
20263
19983
|
large: "large"
|
|
20264
19984
|
};
|
|
20265
|
-
var
|
|
20266
|
-
var RangePicker$1 = AntDatePicker.RangePicker;
|
|
19985
|
+
var RangePicker$1 = _DatePicker.RangePicker;
|
|
20267
19986
|
var datePickerTypes = {
|
|
20268
19987
|
range: RangePicker$1,
|
|
20269
|
-
date:
|
|
19988
|
+
date: _DatePicker
|
|
20270
19989
|
};
|
|
20271
19990
|
var IconOverride = function IconOverride(_ref) {
|
|
20272
19991
|
var Icon = _ref.icon;
|
|
@@ -35155,11 +34874,10 @@ var Textarea = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
|
35155
34874
|
});
|
|
35156
34875
|
Textarea.displayName = "Textarea";
|
|
35157
34876
|
|
|
35158
|
-
var
|
|
35159
|
-
var RangePicker = AntTimePicker.RangePicker;
|
|
34877
|
+
var RangePicker = _DatePicker.RangePicker;
|
|
35160
34878
|
var TIME_PICKER_TYPES = {
|
|
35161
34879
|
range: RangePicker,
|
|
35162
|
-
time:
|
|
34880
|
+
time: _DatePicker
|
|
35163
34881
|
};
|
|
35164
34882
|
|
|
35165
34883
|
var _excluded$1 = ["className", "label", "size", "dropdownClassName", "popupClassName", "format", "interval", "onChange", "type", "nakedInput", "disabled", "error", "defaultValue", "value", "labelProps"];
|