wargerm 0.5.35 → 0.5.36

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/dist/index.js CHANGED
@@ -29,10 +29,13 @@ var _Spin = require('antd/es/spin');
29
29
  require('antd/es/tooltip/style');
30
30
  var _Tooltip = require('antd/es/tooltip');
31
31
  var classnames = require('classnames');
32
- require('antd/es/date-picker/style');
33
- var _DatePicker = require('antd/es/date-picker');
32
+ require('antd/es/space/style');
33
+ var _Space = require('antd/es/space');
34
34
  require('antd/es/radio/style');
35
35
  var _Radio = require('antd/es/radio');
36
+ require('antd/es/date-picker/style');
37
+ var _DatePicker = require('antd/es/date-picker');
38
+ var locale$1 = require('antd/lib/date-picker/locale/zh_CN');
36
39
  require('antd/es/checkbox/style');
37
40
  var _Checkbox = require('antd/es/checkbox');
38
41
  var uniqBy = require('lodash/uniqBy');
@@ -57,8 +60,6 @@ require('antd/es/breadcrumb/style');
57
60
  var _Breadcrumb = require('antd/es/breadcrumb');
58
61
  var ReactDOM = require('react-dom');
59
62
  var ProTable = require('@ant-design/pro-table');
60
- require('antd/es/space/style');
61
- var _Space = require('antd/es/space');
62
63
  var Player = require('xgplayer');
63
64
  var FlvPlayer = require('xgplayer-flv.js');
64
65
  var HlsJsPlayer = require('xgplayer-hls.js');
@@ -104,8 +105,10 @@ var _Pagination__default = /*#__PURE__*/_interopDefaultLegacy(_Pagination);
104
105
  var _Spin__default = /*#__PURE__*/_interopDefaultLegacy(_Spin);
105
106
  var _Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(_Tooltip);
106
107
  var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
107
- var _DatePicker__default = /*#__PURE__*/_interopDefaultLegacy(_DatePicker);
108
+ var _Space__default = /*#__PURE__*/_interopDefaultLegacy(_Space);
108
109
  var _Radio__default = /*#__PURE__*/_interopDefaultLegacy(_Radio);
110
+ var _DatePicker__default = /*#__PURE__*/_interopDefaultLegacy(_DatePicker);
111
+ var locale__default = /*#__PURE__*/_interopDefaultLegacy(locale$1);
109
112
  var _Checkbox__default = /*#__PURE__*/_interopDefaultLegacy(_Checkbox);
110
113
  var uniqBy__default = /*#__PURE__*/_interopDefaultLegacy(uniqBy);
111
114
  var _Row__default = /*#__PURE__*/_interopDefaultLegacy(_Row);
@@ -120,7 +123,6 @@ var SwiperCore__default = /*#__PURE__*/_interopDefaultLegacy(SwiperCore);
120
123
  var _Breadcrumb__default = /*#__PURE__*/_interopDefaultLegacy(_Breadcrumb);
121
124
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
122
125
  var ProTable__default = /*#__PURE__*/_interopDefaultLegacy(ProTable);
123
- var _Space__default = /*#__PURE__*/_interopDefaultLegacy(_Space);
124
126
  var Player__default = /*#__PURE__*/_interopDefaultLegacy(Player);
125
127
  var FlvPlayer__default = /*#__PURE__*/_interopDefaultLegacy(FlvPlayer);
126
128
  var HlsJsPlayer__default = /*#__PURE__*/_interopDefaultLegacy(HlsJsPlayer);
@@ -963,453 +965,260 @@ var WInputNumber = function WInputNumber(props) {
963
965
 
964
966
  WInputNumber.defaultProps = {};
965
967
 
966
- var WDatePicker = function WDatePicker(props) {
967
- var extraProps = _extends({}, props);
968
+ //! moment.js locale configuration
969
+ (function (global, factory) {
970
+ typeof exports === 'object' && typeof module !== 'undefined'
971
+ && typeof require === 'function' ? factory(require('../moment')) :
972
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
973
+ factory(global.moment);
974
+ }(undefined, (function (moment) {
975
+ //! moment.js locale configuration
976
+
977
+ var zhCn = moment.defineLocale('zh-cn', {
978
+ months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
979
+ '_'
980
+ ),
981
+ monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
982
+ '_'
983
+ ),
984
+ weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
985
+ weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
986
+ weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
987
+ longDateFormat: {
988
+ LT: 'HH:mm',
989
+ LTS: 'HH:mm:ss',
990
+ L: 'YYYY/MM/DD',
991
+ LL: 'YYYY年M月D日',
992
+ LLL: 'YYYY年M月D日Ah点mm分',
993
+ LLLL: 'YYYY年M月D日ddddAh点mm分',
994
+ l: 'YYYY/M/D',
995
+ ll: 'YYYY年M月D日',
996
+ lll: 'YYYY年M月D日 HH:mm',
997
+ llll: 'YYYY年M月D日dddd HH:mm',
998
+ },
999
+ meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
1000
+ meridiemHour: function (hour, meridiem) {
1001
+ if (hour === 12) {
1002
+ hour = 0;
1003
+ }
1004
+ if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
1005
+ return hour;
1006
+ } else if (meridiem === '下午' || meridiem === '晚上') {
1007
+ return hour + 12;
1008
+ } else {
1009
+ // '中午'
1010
+ return hour >= 11 ? hour : hour + 12;
1011
+ }
1012
+ },
1013
+ meridiem: function (hour, minute, isLower) {
1014
+ var hm = hour * 100 + minute;
1015
+ if (hm < 600) {
1016
+ return '凌晨';
1017
+ } else if (hm < 900) {
1018
+ return '早上';
1019
+ } else if (hm < 1130) {
1020
+ return '上午';
1021
+ } else if (hm < 1230) {
1022
+ return '中午';
1023
+ } else if (hm < 1800) {
1024
+ return '下午';
1025
+ } else {
1026
+ return '晚上';
1027
+ }
1028
+ },
1029
+ calendar: {
1030
+ sameDay: '[今天]LT',
1031
+ nextDay: '[明天]LT',
1032
+ nextWeek: function (now) {
1033
+ if (now.week() !== this.week()) {
1034
+ return '[下]dddLT';
1035
+ } else {
1036
+ return '[本]dddLT';
1037
+ }
1038
+ },
1039
+ lastDay: '[昨天]LT',
1040
+ lastWeek: function (now) {
1041
+ if (this.week() !== now.week()) {
1042
+ return '[上]dddLT';
1043
+ } else {
1044
+ return '[本]dddLT';
1045
+ }
1046
+ },
1047
+ sameElse: 'L',
1048
+ },
1049
+ dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
1050
+ ordinal: function (number, period) {
1051
+ switch (period) {
1052
+ case 'd':
1053
+ case 'D':
1054
+ case 'DDD':
1055
+ return number + '日';
1056
+ case 'M':
1057
+ return number + '月';
1058
+ case 'w':
1059
+ case 'W':
1060
+ return number + '周';
1061
+ default:
1062
+ return number;
1063
+ }
1064
+ },
1065
+ relativeTime: {
1066
+ future: '%s后',
1067
+ past: '%s前',
1068
+ s: '几秒',
1069
+ ss: '%d 秒',
1070
+ m: '1 分钟',
1071
+ mm: '%d 分钟',
1072
+ h: '1 小时',
1073
+ hh: '%d 小时',
1074
+ d: '1 天',
1075
+ dd: '%d 天',
1076
+ w: '1 周',
1077
+ ww: '%d 周',
1078
+ M: '1 个月',
1079
+ MM: '%d 个月',
1080
+ y: '1 年',
1081
+ yy: '%d 年',
1082
+ },
1083
+ week: {
1084
+ // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
1085
+ dow: 1, // Monday is the first day of the week.
1086
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
1087
+ },
1088
+ });
968
1089
 
969
- return /*#__PURE__*/React__default['default'].createElement(_DatePicker__default['default'], _objectSpread2({}, extraProps));
970
- };
1090
+ return zhCn;
971
1091
 
972
- WDatePicker.defaultProps = {};
1092
+ })));
973
1093
 
974
- var RangePicker = function RangePicker(props) {
975
- var extraProps = _extends({}, props);
1094
+ //! moment.js
1095
+ //! version : 2.29.1
1096
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
1097
+ //! license : MIT
1098
+ //! momentjs.com
976
1099
 
977
- return /*#__PURE__*/React__default['default'].createElement(_DatePicker__default['default'].RangePicker, _objectSpread2({}, extraProps));
978
- };
1100
+ var hookCallback;
979
1101
 
980
- RangePicker.defaultProps = {};
981
- var Index$2 = WDatePicker;
982
- Index$2.RangePicker = RangePicker;
1102
+ function hooks() {
1103
+ return hookCallback.apply(null, arguments);
1104
+ }
983
1105
 
984
- var WRadio = function WRadio(props) {
985
- var extraProps = _extends({}, props);
1106
+ // This is done to register the method called with moment()
1107
+ // without creating circular dependencies.
1108
+ function setHookCallback(callback) {
1109
+ hookCallback = callback;
1110
+ }
986
1111
 
987
- return /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'], _objectSpread2({}, extraProps));
988
- };
1112
+ function isArray(input) {
1113
+ return (
1114
+ input instanceof Array ||
1115
+ Object.prototype.toString.call(input) === '[object Array]'
1116
+ );
1117
+ }
989
1118
 
990
- var Index$3 = WRadio;
991
- Index$3.Group = _Radio__default['default'].Group;
992
- Index$3.Button = _Radio__default['default'].Button;
993
- WRadio.defaultProps = {};
1119
+ function isObject(input) {
1120
+ // IE8 will treat undefined and null as object if it wasn't for
1121
+ // input != null
1122
+ return (
1123
+ input != null &&
1124
+ Object.prototype.toString.call(input) === '[object Object]'
1125
+ );
1126
+ }
994
1127
 
995
- var WCheckbox = function WCheckbox(props) {
996
- var extraProps = _extends({}, props);
1128
+ function hasOwnProp(a, b) {
1129
+ return Object.prototype.hasOwnProperty.call(a, b);
1130
+ }
997
1131
 
998
- return /*#__PURE__*/React__default['default'].createElement(_Checkbox__default['default'], _objectSpread2({}, extraProps));
999
- };
1132
+ function isObjectEmpty(obj) {
1133
+ if (Object.getOwnPropertyNames) {
1134
+ return Object.getOwnPropertyNames(obj).length === 0;
1135
+ } else {
1136
+ var k;
1137
+ for (k in obj) {
1138
+ if (hasOwnProp(obj, k)) {
1139
+ return false;
1140
+ }
1141
+ }
1142
+ return true;
1143
+ }
1144
+ }
1000
1145
 
1001
- WCheckbox.defaultProps = {};
1002
- var Index$4 = WCheckbox;
1003
- Index$4.Group = _Checkbox__default['default'].Group;
1146
+ function isUndefined(input) {
1147
+ return input === void 0;
1148
+ }
1004
1149
 
1005
- /*
1006
- * @Author: lijin
1007
- * @Date: 2021-10-27 22:18:49
1008
- * @LastEditTime: 2022-08-11 10:57:14
1009
- * @LastEditors: lijin
1010
- * @Description:
1011
- * @FilePath: \wargerm-components\src\utils\index.ts
1012
- * 可以输入预定的版权声明、个性签名、空行等
1013
- */
1150
+ function isNumber(input) {
1151
+ return (
1152
+ typeof input === 'number' ||
1153
+ Object.prototype.toString.call(input) === '[object Number]'
1154
+ );
1155
+ }
1014
1156
 
1015
- /**
1016
- * 过滤对象中为空的属性
1017
- * @param obj
1018
- * @returns {*}
1019
- */
1020
- function filterObj(obj) {
1021
- if (!(_typeof(obj) === 'object')) {
1022
- return;
1023
- }
1157
+ function isDate(input) {
1158
+ return (
1159
+ input instanceof Date ||
1160
+ Object.prototype.toString.call(input) === '[object Date]'
1161
+ );
1162
+ }
1024
1163
 
1025
- for (var key in obj) {
1026
- if (obj.hasOwnProperty(key) && (obj[key] == null || obj[key] == undefined || obj[key] === '')) {
1027
- delete obj[key];
1164
+ function map(arr, fn) {
1165
+ var res = [],
1166
+ i;
1167
+ for (i = 0; i < arr.length; ++i) {
1168
+ res.push(fn(arr[i], i));
1028
1169
  }
1029
- }
1030
-
1031
- return obj;
1170
+ return res;
1032
1171
  }
1033
- /**
1034
- * 求数组深度层级
1035
- * @param arr
1036
- * @param attr
1037
- * @param index
1038
- * @returns {*}
1039
- */
1040
-
1041
- function getArrayLayer(arr, attr) {
1042
- var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
1043
- var newIndex = index;
1044
-
1045
- var _iterator = _createForOfIteratorHelper(arr),
1046
- _step;
1047
1172
 
1048
- try {
1049
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
1050
- var iterator = _step.value;
1051
- var tempIndex = index;
1173
+ function extend(a, b) {
1174
+ for (var i in b) {
1175
+ if (hasOwnProp(b, i)) {
1176
+ a[i] = b[i];
1177
+ }
1178
+ }
1052
1179
 
1053
- if (iterator[attr]) {
1054
- tempIndex = getArrayLayer(iterator[attr], attr, index + 1);
1180
+ if (hasOwnProp(b, 'toString')) {
1181
+ a.toString = b.toString;
1182
+ }
1055
1183
 
1056
- if (tempIndex > newIndex) {
1057
- newIndex = tempIndex;
1058
- }
1059
- }
1184
+ if (hasOwnProp(b, 'valueOf')) {
1185
+ a.valueOf = b.valueOf;
1060
1186
  }
1061
- } catch (err) {
1062
- _iterator.e(err);
1063
- } finally {
1064
- _iterator.f();
1065
- }
1066
1187
 
1067
- return newIndex;
1188
+ return a;
1068
1189
  }
1069
- var calcWidth = function calcWidth(width) {
1070
- return document.body.clientWidth / 3840 * width;
1071
- };
1072
- var calcHeight = function calcHeight(height) {
1073
- return document.body.clientHeight / 2160 * height;
1074
- };
1075
- /* eslint-disable no-param-reassign */
1076
-
1077
- function deepCopy(target) {
1078
- if (Object.prototype.toString.call({}).slice(8, -1) == 'Object') {
1079
- var result = Array.isArray(target) ? [] : {}; // eslint-disable-next-line no-restricted-syntax
1080
1190
 
1081
- for (var key in target) {
1082
- if (_typeof(target[key]) === 'object') {
1083
- if (Object.prototype.toString.call(target).slice(8, -1) == 'Object') {
1084
- var _target$key, _target$key2;
1191
+ function createUTC(input, format, locale, strict) {
1192
+ return createLocalOrUTC(input, format, locale, strict, true).utc();
1193
+ }
1085
1194
 
1086
- if (((_target$key = target[key]) === null || _target$key === void 0 ? void 0 : _target$key['$$typeof']) || ((_target$key2 = target[key]) === null || _target$key2 === void 0 ? void 0 : _target$key2['_isAMomentObject'])) {
1087
- result[key] = target[key];
1088
- } else {
1089
- result[key] = deepCopy(target[key]);
1090
- }
1091
- } else if (Object.prototype.toString.call(target).slice(8, -1) == 'Array') {
1092
- var _target$key3, _target$key4;
1195
+ function defaultParsingFlags() {
1196
+ // We need to deep clone this object.
1197
+ return {
1198
+ empty: false,
1199
+ unusedTokens: [],
1200
+ unusedInput: [],
1201
+ overflow: -2,
1202
+ charsLeftOver: 0,
1203
+ nullInput: false,
1204
+ invalidEra: null,
1205
+ invalidMonth: null,
1206
+ invalidFormat: false,
1207
+ userInvalidated: false,
1208
+ iso: false,
1209
+ parsedDateParts: [],
1210
+ era: null,
1211
+ meridiem: null,
1212
+ rfc2822: false,
1213
+ weekdayMismatch: false,
1214
+ };
1215
+ }
1093
1216
 
1094
- if (((_target$key3 = target[key]) === null || _target$key3 === void 0 ? void 0 : _target$key3['$$typeof']) || ((_target$key4 = target[key]) === null || _target$key4 === void 0 ? void 0 : _target$key4['_isAMomentObject'])) {
1095
- result[key] = target[key];
1096
- } else {
1097
- result[key] = deepCopy(target[key]);
1098
- }
1099
- } else {
1100
- result[key] = target[key];
1101
- }
1102
- } else {
1103
- result[key] = target[key];
1104
- }
1217
+ function getParsingFlags(m) {
1218
+ if (m._pf == null) {
1219
+ m._pf = defaultParsingFlags();
1105
1220
  }
1106
-
1107
- return result;
1108
- }
1109
-
1110
- return target;
1111
- }
1112
-
1113
- var _excluded$2 = ["className", "frameStyle", "style", "direction", "children"];
1114
- function FrameBox(_ref) {
1115
- var _classnames;
1116
-
1117
- var className = _ref.className,
1118
- frameStyle = _ref.frameStyle,
1119
- style = _ref.style,
1120
- _ref$direction = _ref.direction,
1121
- direction = _ref$direction === void 0 ? 'in' : _ref$direction,
1122
- children = _ref.children,
1123
- props = _objectWithoutProperties(_ref, _excluded$2);
1124
-
1125
- return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread2({
1126
- className: classnames__default['default']((_classnames = {}, _defineProperty(_classnames, 'frame', true), _defineProperty(_classnames, className || '', true), _classnames)),
1127
- style: style
1128
- }, props), /*#__PURE__*/React__default['default'].createElement("div", {
1129
- className: 'framelt',
1130
- style: _objectSpread2({
1131
- transform: "translateY(".concat(direction == 'in' ? 0 : -100, "%)"),
1132
- left: "".concat(direction == 'in' ? 0 : -1, "px)")
1133
- }, frameStyle)
1134
- }), /*#__PURE__*/React__default['default'].createElement("div", {
1135
- className: 'framert',
1136
- style: _objectSpread2({
1137
- transform: "translateY(".concat(direction == 'in' ? 0 : -100, "%)"),
1138
- right: "".concat(direction == 'in' ? 0 : -1, "px)")
1139
- }, frameStyle)
1140
- }), /*#__PURE__*/React__default['default'].createElement("div", {
1141
- className: 'framelb',
1142
- style: _objectSpread2({
1143
- transform: "translateY(".concat(direction == 'in' ? 0 : 100, "%)"),
1144
- right: "".concat(direction == 'in' ? 0 : -1, "px)")
1145
- }, frameStyle)
1146
- }), /*#__PURE__*/React__default['default'].createElement("div", {
1147
- className: 'framerb',
1148
- style: _objectSpread2({
1149
- transform: "translateY(".concat(direction == 'in' ? 0 : 100, "%)"),
1150
- left: "".concat(direction == 'in' ? 0 : -1, "px)")
1151
- }, frameStyle)
1152
- }), children);
1153
- }
1154
-
1155
- var _excluded$3 = ["request", "valueEnum", "onLoad", "children", "params"],
1156
- _excluded2 = ["value", "label"],
1157
- _excluded3 = ["children"];
1158
-
1159
- var WSelect = function WSelect(props) {
1160
- var request = props.request,
1161
- valueEnum = props.valueEnum,
1162
- onLoad = props.onLoad,
1163
- children = props.children,
1164
- params = props.params,
1165
- extraProps = _objectWithoutProperties(props, _excluded$3);
1166
-
1167
- var _useState = React.useState([]),
1168
- _useState2 = _slicedToArray(_useState, 2),
1169
- childrenNode = _useState2[0],
1170
- setChildrenNode = _useState2[1];
1171
-
1172
- var _useState3 = React.useState([]),
1173
- _useState4 = _slicedToArray(_useState3, 2),
1174
- valueEnumList = _useState4[0],
1175
- setValueEnumList = _useState4[1];
1176
-
1177
- var _useState5 = React.useState(null),
1178
- _useState6 = _slicedToArray(_useState5, 2),
1179
- resList = _useState6[0],
1180
- setResList = _useState6[1];
1181
-
1182
- React.useEffect(function () {
1183
- var isUnmount = false;
1184
-
1185
- _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
1186
- var res, node;
1187
- return regeneratorRuntime.wrap(function _callee$(_context) {
1188
- while (1) {
1189
- switch (_context.prev = _context.next) {
1190
- case 0:
1191
- if (!request) {
1192
- _context.next = 10;
1193
- break;
1194
- }
1195
-
1196
- _context.next = 3;
1197
- return request();
1198
-
1199
- case 3:
1200
- res = _context.sent;
1201
-
1202
- if (!isUnmount) {
1203
- _context.next = 6;
1204
- break;
1205
- }
1206
-
1207
- return _context.abrupt("return");
1208
-
1209
- case 6:
1210
- setResList(res);
1211
- onLoad && onLoad(res);
1212
- node = res === null || res === void 0 ? void 0 : res.map(function (_ref2) {
1213
- var value = _ref2.value,
1214
- label = _ref2.label,
1215
- extraProps = _objectWithoutProperties(_ref2, _excluded2);
1216
-
1217
- return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'].Option, _objectSpread2({
1218
- key: value,
1219
- value: value
1220
- }, extraProps), label) || /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
1221
- });
1222
- setChildrenNode(node);
1223
-
1224
- case 10:
1225
- case "end":
1226
- return _context.stop();
1227
- }
1228
- }
1229
- }, _callee);
1230
- }))();
1231
-
1232
- var valueEnumNode = [];
1233
- var options = [];
1234
-
1235
- if (valueEnum) {
1236
- for (var key in valueEnum) {
1237
- var text = '';
1238
-
1239
- if (typeof valueEnum[key] === 'string') {
1240
- text = valueEnum[key];
1241
- } else {
1242
- var _valueEnum$key;
1243
-
1244
- text = (_valueEnum$key = valueEnum[key]) === null || _valueEnum$key === void 0 ? void 0 : _valueEnum$key.text;
1245
- }
1246
-
1247
- options.push({
1248
- label: text,
1249
- value: key
1250
- });
1251
- valueEnumNode.push( /*#__PURE__*/React__default['default'].createElement(_Select__default['default'].Option, {
1252
- key: key,
1253
- value: key
1254
- }, text));
1255
- }
1256
- }
1257
-
1258
- onLoad && onLoad(options);
1259
- setValueEnumList(valueEnumNode);
1260
- return function () {
1261
- isUnmount = true;
1262
- };
1263
- }, [JSON.stringify(params || {})]);
1264
- return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _objectSpread2({
1265
- showSearch: true,
1266
- filterOption: function filterOption(input, option) {
1267
- return option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
1268
- }
1269
- }, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
1270
- };
1271
-
1272
- WSelect.defaultProps = {};
1273
-
1274
- var Option = function Option(props) {
1275
- var children = props.children,
1276
- extraProps = _objectWithoutProperties(props, _excluded3);
1277
-
1278
- return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'].Option, _objectSpread2({}, extraProps), children);
1279
- };
1280
-
1281
- var Index$5 = WSelect;
1282
- Index$5.Option = Option;
1283
- var Select = /*#__PURE__*/React.memo(Index$5);
1284
-
1285
- //! moment.js
1286
- //! version : 2.29.1
1287
- //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
1288
- //! license : MIT
1289
- //! momentjs.com
1290
-
1291
- var hookCallback;
1292
-
1293
- function hooks() {
1294
- return hookCallback.apply(null, arguments);
1295
- }
1296
-
1297
- // This is done to register the method called with moment()
1298
- // without creating circular dependencies.
1299
- function setHookCallback(callback) {
1300
- hookCallback = callback;
1301
- }
1302
-
1303
- function isArray(input) {
1304
- return (
1305
- input instanceof Array ||
1306
- Object.prototype.toString.call(input) === '[object Array]'
1307
- );
1308
- }
1309
-
1310
- function isObject(input) {
1311
- // IE8 will treat undefined and null as object if it wasn't for
1312
- // input != null
1313
- return (
1314
- input != null &&
1315
- Object.prototype.toString.call(input) === '[object Object]'
1316
- );
1317
- }
1318
-
1319
- function hasOwnProp(a, b) {
1320
- return Object.prototype.hasOwnProperty.call(a, b);
1321
- }
1322
-
1323
- function isObjectEmpty(obj) {
1324
- if (Object.getOwnPropertyNames) {
1325
- return Object.getOwnPropertyNames(obj).length === 0;
1326
- } else {
1327
- var k;
1328
- for (k in obj) {
1329
- if (hasOwnProp(obj, k)) {
1330
- return false;
1331
- }
1332
- }
1333
- return true;
1334
- }
1335
- }
1336
-
1337
- function isUndefined(input) {
1338
- return input === void 0;
1339
- }
1340
-
1341
- function isNumber(input) {
1342
- return (
1343
- typeof input === 'number' ||
1344
- Object.prototype.toString.call(input) === '[object Number]'
1345
- );
1346
- }
1347
-
1348
- function isDate(input) {
1349
- return (
1350
- input instanceof Date ||
1351
- Object.prototype.toString.call(input) === '[object Date]'
1352
- );
1353
- }
1354
-
1355
- function map(arr, fn) {
1356
- var res = [],
1357
- i;
1358
- for (i = 0; i < arr.length; ++i) {
1359
- res.push(fn(arr[i], i));
1360
- }
1361
- return res;
1362
- }
1363
-
1364
- function extend(a, b) {
1365
- for (var i in b) {
1366
- if (hasOwnProp(b, i)) {
1367
- a[i] = b[i];
1368
- }
1369
- }
1370
-
1371
- if (hasOwnProp(b, 'toString')) {
1372
- a.toString = b.toString;
1373
- }
1374
-
1375
- if (hasOwnProp(b, 'valueOf')) {
1376
- a.valueOf = b.valueOf;
1377
- }
1378
-
1379
- return a;
1380
- }
1381
-
1382
- function createUTC(input, format, locale, strict) {
1383
- return createLocalOrUTC(input, format, locale, strict, true).utc();
1384
- }
1385
-
1386
- function defaultParsingFlags() {
1387
- // We need to deep clone this object.
1388
- return {
1389
- empty: false,
1390
- unusedTokens: [],
1391
- unusedInput: [],
1392
- overflow: -2,
1393
- charsLeftOver: 0,
1394
- nullInput: false,
1395
- invalidEra: null,
1396
- invalidMonth: null,
1397
- invalidFormat: false,
1398
- userInvalidated: false,
1399
- iso: false,
1400
- parsedDateParts: [],
1401
- era: null,
1402
- meridiem: null,
1403
- rfc2822: false,
1404
- weekdayMismatch: false,
1405
- };
1406
- }
1407
-
1408
- function getParsingFlags(m) {
1409
- if (m._pf == null) {
1410
- m._pf = defaultParsingFlags();
1411
- }
1412
- return m._pf;
1221
+ return m._pf;
1413
1222
  }
1414
1223
 
1415
1224
  var some;
@@ -5956,994 +5765,1436 @@ addUnitAlias('quarter', 'Q');
5956
5765
 
5957
5766
  // PRIORITY
5958
5767
 
5959
- addUnitPriority('quarter', 7);
5768
+ addUnitPriority('quarter', 7);
5769
+
5770
+ // PARSING
5771
+
5772
+ addRegexToken('Q', match1);
5773
+ addParseToken('Q', function (input, array) {
5774
+ array[MONTH] = (toInt(input) - 1) * 3;
5775
+ });
5776
+
5777
+ // MOMENTS
5778
+
5779
+ function getSetQuarter(input) {
5780
+ return input == null
5781
+ ? Math.ceil((this.month() + 1) / 3)
5782
+ : this.month((input - 1) * 3 + (this.month() % 3));
5783
+ }
5784
+
5785
+ // FORMATTING
5786
+
5787
+ addFormatToken('D', ['DD', 2], 'Do', 'date');
5788
+
5789
+ // ALIASES
5790
+
5791
+ addUnitAlias('date', 'D');
5792
+
5793
+ // PRIORITY
5794
+ addUnitPriority('date', 9);
5795
+
5796
+ // PARSING
5797
+
5798
+ addRegexToken('D', match1to2);
5799
+ addRegexToken('DD', match1to2, match2);
5800
+ addRegexToken('Do', function (isStrict, locale) {
5801
+ // TODO: Remove "ordinalParse" fallback in next major release.
5802
+ return isStrict
5803
+ ? locale._dayOfMonthOrdinalParse || locale._ordinalParse
5804
+ : locale._dayOfMonthOrdinalParseLenient;
5805
+ });
5806
+
5807
+ addParseToken(['D', 'DD'], DATE);
5808
+ addParseToken('Do', function (input, array) {
5809
+ array[DATE] = toInt(input.match(match1to2)[0]);
5810
+ });
5811
+
5812
+ // MOMENTS
5813
+
5814
+ var getSetDayOfMonth = makeGetSet('Date', true);
5815
+
5816
+ // FORMATTING
5817
+
5818
+ addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
5819
+
5820
+ // ALIASES
5821
+
5822
+ addUnitAlias('dayOfYear', 'DDD');
5823
+
5824
+ // PRIORITY
5825
+ addUnitPriority('dayOfYear', 4);
5826
+
5827
+ // PARSING
5828
+
5829
+ addRegexToken('DDD', match1to3);
5830
+ addRegexToken('DDDD', match3);
5831
+ addParseToken(['DDD', 'DDDD'], function (input, array, config) {
5832
+ config._dayOfYear = toInt(input);
5833
+ });
5834
+
5835
+ // HELPERS
5836
+
5837
+ // MOMENTS
5838
+
5839
+ function getSetDayOfYear(input) {
5840
+ var dayOfYear =
5841
+ Math.round(
5842
+ (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
5843
+ ) + 1;
5844
+ return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
5845
+ }
5846
+
5847
+ // FORMATTING
5848
+
5849
+ addFormatToken('m', ['mm', 2], 0, 'minute');
5850
+
5851
+ // ALIASES
5852
+
5853
+ addUnitAlias('minute', 'm');
5854
+
5855
+ // PRIORITY
5856
+
5857
+ addUnitPriority('minute', 14);
5858
+
5859
+ // PARSING
5860
+
5861
+ addRegexToken('m', match1to2);
5862
+ addRegexToken('mm', match1to2, match2);
5863
+ addParseToken(['m', 'mm'], MINUTE);
5864
+
5865
+ // MOMENTS
5866
+
5867
+ var getSetMinute = makeGetSet('Minutes', false);
5868
+
5869
+ // FORMATTING
5870
+
5871
+ addFormatToken('s', ['ss', 2], 0, 'second');
5872
+
5873
+ // ALIASES
5874
+
5875
+ addUnitAlias('second', 's');
5876
+
5877
+ // PRIORITY
5878
+
5879
+ addUnitPriority('second', 15);
5880
+
5881
+ // PARSING
5882
+
5883
+ addRegexToken('s', match1to2);
5884
+ addRegexToken('ss', match1to2, match2);
5885
+ addParseToken(['s', 'ss'], SECOND);
5886
+
5887
+ // MOMENTS
5888
+
5889
+ var getSetSecond = makeGetSet('Seconds', false);
5890
+
5891
+ // FORMATTING
5892
+
5893
+ addFormatToken('S', 0, 0, function () {
5894
+ return ~~(this.millisecond() / 100);
5895
+ });
5896
+
5897
+ addFormatToken(0, ['SS', 2], 0, function () {
5898
+ return ~~(this.millisecond() / 10);
5899
+ });
5900
+
5901
+ addFormatToken(0, ['SSS', 3], 0, 'millisecond');
5902
+ addFormatToken(0, ['SSSS', 4], 0, function () {
5903
+ return this.millisecond() * 10;
5904
+ });
5905
+ addFormatToken(0, ['SSSSS', 5], 0, function () {
5906
+ return this.millisecond() * 100;
5907
+ });
5908
+ addFormatToken(0, ['SSSSSS', 6], 0, function () {
5909
+ return this.millisecond() * 1000;
5910
+ });
5911
+ addFormatToken(0, ['SSSSSSS', 7], 0, function () {
5912
+ return this.millisecond() * 10000;
5913
+ });
5914
+ addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
5915
+ return this.millisecond() * 100000;
5916
+ });
5917
+ addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
5918
+ return this.millisecond() * 1000000;
5919
+ });
5920
+
5921
+ // ALIASES
5922
+
5923
+ addUnitAlias('millisecond', 'ms');
5924
+
5925
+ // PRIORITY
5926
+
5927
+ addUnitPriority('millisecond', 16);
5928
+
5929
+ // PARSING
5930
+
5931
+ addRegexToken('S', match1to3, match1);
5932
+ addRegexToken('SS', match1to3, match2);
5933
+ addRegexToken('SSS', match1to3, match3);
5934
+
5935
+ var token, getSetMillisecond;
5936
+ for (token = 'SSSS'; token.length <= 9; token += 'S') {
5937
+ addRegexToken(token, matchUnsigned);
5938
+ }
5939
+
5940
+ function parseMs(input, array) {
5941
+ array[MILLISECOND] = toInt(('0.' + input) * 1000);
5942
+ }
5943
+
5944
+ for (token = 'S'; token.length <= 9; token += 'S') {
5945
+ addParseToken(token, parseMs);
5946
+ }
5947
+
5948
+ getSetMillisecond = makeGetSet('Milliseconds', false);
5949
+
5950
+ // FORMATTING
5951
+
5952
+ addFormatToken('z', 0, 0, 'zoneAbbr');
5953
+ addFormatToken('zz', 0, 0, 'zoneName');
5954
+
5955
+ // MOMENTS
5956
+
5957
+ function getZoneAbbr() {
5958
+ return this._isUTC ? 'UTC' : '';
5959
+ }
5960
5960
 
5961
- // PARSING
5961
+ function getZoneName() {
5962
+ return this._isUTC ? 'Coordinated Universal Time' : '';
5963
+ }
5962
5964
 
5963
- addRegexToken('Q', match1);
5964
- addParseToken('Q', function (input, array) {
5965
- array[MONTH] = (toInt(input) - 1) * 3;
5966
- });
5965
+ var proto = Moment.prototype;
5967
5966
 
5968
- // MOMENTS
5967
+ proto.add = add;
5968
+ proto.calendar = calendar$1;
5969
+ proto.clone = clone;
5970
+ proto.diff = diff;
5971
+ proto.endOf = endOf;
5972
+ proto.format = format;
5973
+ proto.from = from;
5974
+ proto.fromNow = fromNow;
5975
+ proto.to = to;
5976
+ proto.toNow = toNow;
5977
+ proto.get = stringGet;
5978
+ proto.invalidAt = invalidAt;
5979
+ proto.isAfter = isAfter;
5980
+ proto.isBefore = isBefore;
5981
+ proto.isBetween = isBetween;
5982
+ proto.isSame = isSame;
5983
+ proto.isSameOrAfter = isSameOrAfter;
5984
+ proto.isSameOrBefore = isSameOrBefore;
5985
+ proto.isValid = isValid$2;
5986
+ proto.lang = lang;
5987
+ proto.locale = locale;
5988
+ proto.localeData = localeData;
5989
+ proto.max = prototypeMax;
5990
+ proto.min = prototypeMin;
5991
+ proto.parsingFlags = parsingFlags;
5992
+ proto.set = stringSet;
5993
+ proto.startOf = startOf;
5994
+ proto.subtract = subtract;
5995
+ proto.toArray = toArray;
5996
+ proto.toObject = toObject;
5997
+ proto.toDate = toDate;
5998
+ proto.toISOString = toISOString;
5999
+ proto.inspect = inspect;
6000
+ if (typeof Symbol !== 'undefined' && Symbol.for != null) {
6001
+ proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
6002
+ return 'Moment<' + this.format() + '>';
6003
+ };
6004
+ }
6005
+ proto.toJSON = toJSON;
6006
+ proto.toString = toString;
6007
+ proto.unix = unix;
6008
+ proto.valueOf = valueOf;
6009
+ proto.creationData = creationData;
6010
+ proto.eraName = getEraName;
6011
+ proto.eraNarrow = getEraNarrow;
6012
+ proto.eraAbbr = getEraAbbr;
6013
+ proto.eraYear = getEraYear;
6014
+ proto.year = getSetYear;
6015
+ proto.isLeapYear = getIsLeapYear;
6016
+ proto.weekYear = getSetWeekYear;
6017
+ proto.isoWeekYear = getSetISOWeekYear;
6018
+ proto.quarter = proto.quarters = getSetQuarter;
6019
+ proto.month = getSetMonth;
6020
+ proto.daysInMonth = getDaysInMonth;
6021
+ proto.week = proto.weeks = getSetWeek;
6022
+ proto.isoWeek = proto.isoWeeks = getSetISOWeek;
6023
+ proto.weeksInYear = getWeeksInYear;
6024
+ proto.weeksInWeekYear = getWeeksInWeekYear;
6025
+ proto.isoWeeksInYear = getISOWeeksInYear;
6026
+ proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
6027
+ proto.date = getSetDayOfMonth;
6028
+ proto.day = proto.days = getSetDayOfWeek;
6029
+ proto.weekday = getSetLocaleDayOfWeek;
6030
+ proto.isoWeekday = getSetISODayOfWeek;
6031
+ proto.dayOfYear = getSetDayOfYear;
6032
+ proto.hour = proto.hours = getSetHour;
6033
+ proto.minute = proto.minutes = getSetMinute;
6034
+ proto.second = proto.seconds = getSetSecond;
6035
+ proto.millisecond = proto.milliseconds = getSetMillisecond;
6036
+ proto.utcOffset = getSetOffset;
6037
+ proto.utc = setOffsetToUTC;
6038
+ proto.local = setOffsetToLocal;
6039
+ proto.parseZone = setOffsetToParsedOffset;
6040
+ proto.hasAlignedHourOffset = hasAlignedHourOffset;
6041
+ proto.isDST = isDaylightSavingTime;
6042
+ proto.isLocal = isLocal;
6043
+ proto.isUtcOffset = isUtcOffset;
6044
+ proto.isUtc = isUtc;
6045
+ proto.isUTC = isUtc;
6046
+ proto.zoneAbbr = getZoneAbbr;
6047
+ proto.zoneName = getZoneName;
6048
+ proto.dates = deprecate(
6049
+ 'dates accessor is deprecated. Use date instead.',
6050
+ getSetDayOfMonth
6051
+ );
6052
+ proto.months = deprecate(
6053
+ 'months accessor is deprecated. Use month instead',
6054
+ getSetMonth
6055
+ );
6056
+ proto.years = deprecate(
6057
+ 'years accessor is deprecated. Use year instead',
6058
+ getSetYear
6059
+ );
6060
+ proto.zone = deprecate(
6061
+ 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
6062
+ getSetZone
6063
+ );
6064
+ proto.isDSTShifted = deprecate(
6065
+ 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
6066
+ isDaylightSavingTimeShifted
6067
+ );
5969
6068
 
5970
- function getSetQuarter(input) {
5971
- return input == null
5972
- ? Math.ceil((this.month() + 1) / 3)
5973
- : this.month((input - 1) * 3 + (this.month() % 3));
6069
+ function createUnix(input) {
6070
+ return createLocal(input * 1000);
5974
6071
  }
5975
6072
 
5976
- // FORMATTING
6073
+ function createInZone() {
6074
+ return createLocal.apply(null, arguments).parseZone();
6075
+ }
5977
6076
 
5978
- addFormatToken('D', ['DD', 2], 'Do', 'date');
6077
+ function preParsePostFormat(string) {
6078
+ return string;
6079
+ }
5979
6080
 
5980
- // ALIASES
6081
+ var proto$1 = Locale.prototype;
5981
6082
 
5982
- addUnitAlias('date', 'D');
6083
+ proto$1.calendar = calendar;
6084
+ proto$1.longDateFormat = longDateFormat;
6085
+ proto$1.invalidDate = invalidDate;
6086
+ proto$1.ordinal = ordinal;
6087
+ proto$1.preparse = preParsePostFormat;
6088
+ proto$1.postformat = preParsePostFormat;
6089
+ proto$1.relativeTime = relativeTime;
6090
+ proto$1.pastFuture = pastFuture;
6091
+ proto$1.set = set;
6092
+ proto$1.eras = localeEras;
6093
+ proto$1.erasParse = localeErasParse;
6094
+ proto$1.erasConvertYear = localeErasConvertYear;
6095
+ proto$1.erasAbbrRegex = erasAbbrRegex;
6096
+ proto$1.erasNameRegex = erasNameRegex;
6097
+ proto$1.erasNarrowRegex = erasNarrowRegex;
5983
6098
 
5984
- // PRIORITY
5985
- addUnitPriority('date', 9);
6099
+ proto$1.months = localeMonths;
6100
+ proto$1.monthsShort = localeMonthsShort;
6101
+ proto$1.monthsParse = localeMonthsParse;
6102
+ proto$1.monthsRegex = monthsRegex;
6103
+ proto$1.monthsShortRegex = monthsShortRegex;
6104
+ proto$1.week = localeWeek;
6105
+ proto$1.firstDayOfYear = localeFirstDayOfYear;
6106
+ proto$1.firstDayOfWeek = localeFirstDayOfWeek;
5986
6107
 
5987
- // PARSING
6108
+ proto$1.weekdays = localeWeekdays;
6109
+ proto$1.weekdaysMin = localeWeekdaysMin;
6110
+ proto$1.weekdaysShort = localeWeekdaysShort;
6111
+ proto$1.weekdaysParse = localeWeekdaysParse;
5988
6112
 
5989
- addRegexToken('D', match1to2);
5990
- addRegexToken('DD', match1to2, match2);
5991
- addRegexToken('Do', function (isStrict, locale) {
5992
- // TODO: Remove "ordinalParse" fallback in next major release.
5993
- return isStrict
5994
- ? locale._dayOfMonthOrdinalParse || locale._ordinalParse
5995
- : locale._dayOfMonthOrdinalParseLenient;
5996
- });
6113
+ proto$1.weekdaysRegex = weekdaysRegex;
6114
+ proto$1.weekdaysShortRegex = weekdaysShortRegex;
6115
+ proto$1.weekdaysMinRegex = weekdaysMinRegex;
5997
6116
 
5998
- addParseToken(['D', 'DD'], DATE);
5999
- addParseToken('Do', function (input, array) {
6000
- array[DATE] = toInt(input.match(match1to2)[0]);
6001
- });
6117
+ proto$1.isPM = localeIsPM;
6118
+ proto$1.meridiem = localeMeridiem;
6002
6119
 
6003
- // MOMENTS
6120
+ function get$1(format, index, field, setter) {
6121
+ var locale = getLocale(),
6122
+ utc = createUTC().set(setter, index);
6123
+ return locale[field](utc, format);
6124
+ }
6004
6125
 
6005
- var getSetDayOfMonth = makeGetSet('Date', true);
6126
+ function listMonthsImpl(format, index, field) {
6127
+ if (isNumber(format)) {
6128
+ index = format;
6129
+ format = undefined;
6130
+ }
6006
6131
 
6007
- // FORMATTING
6132
+ format = format || '';
6008
6133
 
6009
- addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
6134
+ if (index != null) {
6135
+ return get$1(format, index, field, 'month');
6136
+ }
6010
6137
 
6011
- // ALIASES
6138
+ var i,
6139
+ out = [];
6140
+ for (i = 0; i < 12; i++) {
6141
+ out[i] = get$1(format, i, field, 'month');
6142
+ }
6143
+ return out;
6144
+ }
6012
6145
 
6013
- addUnitAlias('dayOfYear', 'DDD');
6146
+ // ()
6147
+ // (5)
6148
+ // (fmt, 5)
6149
+ // (fmt)
6150
+ // (true)
6151
+ // (true, 5)
6152
+ // (true, fmt, 5)
6153
+ // (true, fmt)
6154
+ function listWeekdaysImpl(localeSorted, format, index, field) {
6155
+ if (typeof localeSorted === 'boolean') {
6156
+ if (isNumber(format)) {
6157
+ index = format;
6158
+ format = undefined;
6159
+ }
6014
6160
 
6015
- // PRIORITY
6016
- addUnitPriority('dayOfYear', 4);
6161
+ format = format || '';
6162
+ } else {
6163
+ format = localeSorted;
6164
+ index = format;
6165
+ localeSorted = false;
6017
6166
 
6018
- // PARSING
6167
+ if (isNumber(format)) {
6168
+ index = format;
6169
+ format = undefined;
6170
+ }
6019
6171
 
6020
- addRegexToken('DDD', match1to3);
6021
- addRegexToken('DDDD', match3);
6022
- addParseToken(['DDD', 'DDDD'], function (input, array, config) {
6023
- config._dayOfYear = toInt(input);
6024
- });
6172
+ format = format || '';
6173
+ }
6025
6174
 
6026
- // HELPERS
6175
+ var locale = getLocale(),
6176
+ shift = localeSorted ? locale._week.dow : 0,
6177
+ i,
6178
+ out = [];
6027
6179
 
6028
- // MOMENTS
6180
+ if (index != null) {
6181
+ return get$1(format, (index + shift) % 7, field, 'day');
6182
+ }
6029
6183
 
6030
- function getSetDayOfYear(input) {
6031
- var dayOfYear =
6032
- Math.round(
6033
- (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
6034
- ) + 1;
6035
- return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
6184
+ for (i = 0; i < 7; i++) {
6185
+ out[i] = get$1(format, (i + shift) % 7, field, 'day');
6186
+ }
6187
+ return out;
6036
6188
  }
6037
6189
 
6038
- // FORMATTING
6190
+ function listMonths(format, index) {
6191
+ return listMonthsImpl(format, index, 'months');
6192
+ }
6039
6193
 
6040
- addFormatToken('m', ['mm', 2], 0, 'minute');
6194
+ function listMonthsShort(format, index) {
6195
+ return listMonthsImpl(format, index, 'monthsShort');
6196
+ }
6041
6197
 
6042
- // ALIASES
6198
+ function listWeekdays(localeSorted, format, index) {
6199
+ return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
6200
+ }
6043
6201
 
6044
- addUnitAlias('minute', 'm');
6202
+ function listWeekdaysShort(localeSorted, format, index) {
6203
+ return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
6204
+ }
6045
6205
 
6046
- // PRIORITY
6206
+ function listWeekdaysMin(localeSorted, format, index) {
6207
+ return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
6208
+ }
6047
6209
 
6048
- addUnitPriority('minute', 14);
6210
+ getSetGlobalLocale('en', {
6211
+ eras: [
6212
+ {
6213
+ since: '0001-01-01',
6214
+ until: +Infinity,
6215
+ offset: 1,
6216
+ name: 'Anno Domini',
6217
+ narrow: 'AD',
6218
+ abbr: 'AD',
6219
+ },
6220
+ {
6221
+ since: '0000-12-31',
6222
+ until: -Infinity,
6223
+ offset: 1,
6224
+ name: 'Before Christ',
6225
+ narrow: 'BC',
6226
+ abbr: 'BC',
6227
+ },
6228
+ ],
6229
+ dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
6230
+ ordinal: function (number) {
6231
+ var b = number % 10,
6232
+ output =
6233
+ toInt((number % 100) / 10) === 1
6234
+ ? 'th'
6235
+ : b === 1
6236
+ ? 'st'
6237
+ : b === 2
6238
+ ? 'nd'
6239
+ : b === 3
6240
+ ? 'rd'
6241
+ : 'th';
6242
+ return number + output;
6243
+ },
6244
+ });
6049
6245
 
6050
- // PARSING
6246
+ // Side effect imports
6051
6247
 
6052
- addRegexToken('m', match1to2);
6053
- addRegexToken('mm', match1to2, match2);
6054
- addParseToken(['m', 'mm'], MINUTE);
6248
+ hooks.lang = deprecate(
6249
+ 'moment.lang is deprecated. Use moment.locale instead.',
6250
+ getSetGlobalLocale
6251
+ );
6252
+ hooks.langData = deprecate(
6253
+ 'moment.langData is deprecated. Use moment.localeData instead.',
6254
+ getLocale
6255
+ );
6055
6256
 
6056
- // MOMENTS
6257
+ var mathAbs = Math.abs;
6057
6258
 
6058
- var getSetMinute = makeGetSet('Minutes', false);
6259
+ function abs() {
6260
+ var data = this._data;
6059
6261
 
6060
- // FORMATTING
6262
+ this._milliseconds = mathAbs(this._milliseconds);
6263
+ this._days = mathAbs(this._days);
6264
+ this._months = mathAbs(this._months);
6061
6265
 
6062
- addFormatToken('s', ['ss', 2], 0, 'second');
6266
+ data.milliseconds = mathAbs(data.milliseconds);
6267
+ data.seconds = mathAbs(data.seconds);
6268
+ data.minutes = mathAbs(data.minutes);
6269
+ data.hours = mathAbs(data.hours);
6270
+ data.months = mathAbs(data.months);
6271
+ data.years = mathAbs(data.years);
6063
6272
 
6064
- // ALIASES
6273
+ return this;
6274
+ }
6065
6275
 
6066
- addUnitAlias('second', 's');
6276
+ function addSubtract$1(duration, input, value, direction) {
6277
+ var other = createDuration(input, value);
6067
6278
 
6068
- // PRIORITY
6279
+ duration._milliseconds += direction * other._milliseconds;
6280
+ duration._days += direction * other._days;
6281
+ duration._months += direction * other._months;
6069
6282
 
6070
- addUnitPriority('second', 15);
6283
+ return duration._bubble();
6284
+ }
6071
6285
 
6072
- // PARSING
6286
+ // supports only 2.0-style add(1, 's') or add(duration)
6287
+ function add$1(input, value) {
6288
+ return addSubtract$1(this, input, value, 1);
6289
+ }
6073
6290
 
6074
- addRegexToken('s', match1to2);
6075
- addRegexToken('ss', match1to2, match2);
6076
- addParseToken(['s', 'ss'], SECOND);
6291
+ // supports only 2.0-style subtract(1, 's') or subtract(duration)
6292
+ function subtract$1(input, value) {
6293
+ return addSubtract$1(this, input, value, -1);
6294
+ }
6077
6295
 
6078
- // MOMENTS
6296
+ function absCeil(number) {
6297
+ if (number < 0) {
6298
+ return Math.floor(number);
6299
+ } else {
6300
+ return Math.ceil(number);
6301
+ }
6302
+ }
6079
6303
 
6080
- var getSetSecond = makeGetSet('Seconds', false);
6304
+ function bubble() {
6305
+ var milliseconds = this._milliseconds,
6306
+ days = this._days,
6307
+ months = this._months,
6308
+ data = this._data,
6309
+ seconds,
6310
+ minutes,
6311
+ hours,
6312
+ years,
6313
+ monthsFromDays;
6081
6314
 
6082
- // FORMATTING
6315
+ // if we have a mix of positive and negative values, bubble down first
6316
+ // check: https://github.com/moment/moment/issues/2166
6317
+ if (
6318
+ !(
6319
+ (milliseconds >= 0 && days >= 0 && months >= 0) ||
6320
+ (milliseconds <= 0 && days <= 0 && months <= 0)
6321
+ )
6322
+ ) {
6323
+ milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
6324
+ days = 0;
6325
+ months = 0;
6326
+ }
6083
6327
 
6084
- addFormatToken('S', 0, 0, function () {
6085
- return ~~(this.millisecond() / 100);
6086
- });
6328
+ // The following code bubbles up values, see the tests for
6329
+ // examples of what that means.
6330
+ data.milliseconds = milliseconds % 1000;
6087
6331
 
6088
- addFormatToken(0, ['SS', 2], 0, function () {
6089
- return ~~(this.millisecond() / 10);
6090
- });
6332
+ seconds = absFloor(milliseconds / 1000);
6333
+ data.seconds = seconds % 60;
6091
6334
 
6092
- addFormatToken(0, ['SSS', 3], 0, 'millisecond');
6093
- addFormatToken(0, ['SSSS', 4], 0, function () {
6094
- return this.millisecond() * 10;
6095
- });
6096
- addFormatToken(0, ['SSSSS', 5], 0, function () {
6097
- return this.millisecond() * 100;
6098
- });
6099
- addFormatToken(0, ['SSSSSS', 6], 0, function () {
6100
- return this.millisecond() * 1000;
6101
- });
6102
- addFormatToken(0, ['SSSSSSS', 7], 0, function () {
6103
- return this.millisecond() * 10000;
6104
- });
6105
- addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
6106
- return this.millisecond() * 100000;
6107
- });
6108
- addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
6109
- return this.millisecond() * 1000000;
6110
- });
6335
+ minutes = absFloor(seconds / 60);
6336
+ data.minutes = minutes % 60;
6111
6337
 
6112
- // ALIASES
6338
+ hours = absFloor(minutes / 60);
6339
+ data.hours = hours % 24;
6113
6340
 
6114
- addUnitAlias('millisecond', 'ms');
6341
+ days += absFloor(hours / 24);
6115
6342
 
6116
- // PRIORITY
6343
+ // convert days to months
6344
+ monthsFromDays = absFloor(daysToMonths(days));
6345
+ months += monthsFromDays;
6346
+ days -= absCeil(monthsToDays(monthsFromDays));
6117
6347
 
6118
- addUnitPriority('millisecond', 16);
6348
+ // 12 months -> 1 year
6349
+ years = absFloor(months / 12);
6350
+ months %= 12;
6119
6351
 
6120
- // PARSING
6352
+ data.days = days;
6353
+ data.months = months;
6354
+ data.years = years;
6121
6355
 
6122
- addRegexToken('S', match1to3, match1);
6123
- addRegexToken('SS', match1to3, match2);
6124
- addRegexToken('SSS', match1to3, match3);
6356
+ return this;
6357
+ }
6125
6358
 
6126
- var token, getSetMillisecond;
6127
- for (token = 'SSSS'; token.length <= 9; token += 'S') {
6128
- addRegexToken(token, matchUnsigned);
6359
+ function daysToMonths(days) {
6360
+ // 400 years have 146097 days (taking into account leap year rules)
6361
+ // 400 years have 12 months === 4800
6362
+ return (days * 4800) / 146097;
6129
6363
  }
6130
6364
 
6131
- function parseMs(input, array) {
6132
- array[MILLISECOND] = toInt(('0.' + input) * 1000);
6365
+ function monthsToDays(months) {
6366
+ // the reverse of daysToMonths
6367
+ return (months * 146097) / 4800;
6133
6368
  }
6134
6369
 
6135
- for (token = 'S'; token.length <= 9; token += 'S') {
6136
- addParseToken(token, parseMs);
6370
+ function as(units) {
6371
+ if (!this.isValid()) {
6372
+ return NaN;
6373
+ }
6374
+ var days,
6375
+ months,
6376
+ milliseconds = this._milliseconds;
6377
+
6378
+ units = normalizeUnits(units);
6379
+
6380
+ if (units === 'month' || units === 'quarter' || units === 'year') {
6381
+ days = this._days + milliseconds / 864e5;
6382
+ months = this._months + daysToMonths(days);
6383
+ switch (units) {
6384
+ case 'month':
6385
+ return months;
6386
+ case 'quarter':
6387
+ return months / 3;
6388
+ case 'year':
6389
+ return months / 12;
6390
+ }
6391
+ } else {
6392
+ // handle milliseconds separately because of floating point math errors (issue #1867)
6393
+ days = this._days + Math.round(monthsToDays(this._months));
6394
+ switch (units) {
6395
+ case 'week':
6396
+ return days / 7 + milliseconds / 6048e5;
6397
+ case 'day':
6398
+ return days + milliseconds / 864e5;
6399
+ case 'hour':
6400
+ return days * 24 + milliseconds / 36e5;
6401
+ case 'minute':
6402
+ return days * 1440 + milliseconds / 6e4;
6403
+ case 'second':
6404
+ return days * 86400 + milliseconds / 1000;
6405
+ // Math.floor prevents floating point math errors here
6406
+ case 'millisecond':
6407
+ return Math.floor(days * 864e5) + milliseconds;
6408
+ default:
6409
+ throw new Error('Unknown unit ' + units);
6410
+ }
6411
+ }
6137
6412
  }
6138
6413
 
6139
- getSetMillisecond = makeGetSet('Milliseconds', false);
6140
-
6141
- // FORMATTING
6142
-
6143
- addFormatToken('z', 0, 0, 'zoneAbbr');
6144
- addFormatToken('zz', 0, 0, 'zoneName');
6145
-
6146
- // MOMENTS
6147
-
6148
- function getZoneAbbr() {
6149
- return this._isUTC ? 'UTC' : '';
6414
+ // TODO: Use this.as('ms')?
6415
+ function valueOf$1() {
6416
+ if (!this.isValid()) {
6417
+ return NaN;
6418
+ }
6419
+ return (
6420
+ this._milliseconds +
6421
+ this._days * 864e5 +
6422
+ (this._months % 12) * 2592e6 +
6423
+ toInt(this._months / 12) * 31536e6
6424
+ );
6150
6425
  }
6151
6426
 
6152
- function getZoneName() {
6153
- return this._isUTC ? 'Coordinated Universal Time' : '';
6427
+ function makeAs(alias) {
6428
+ return function () {
6429
+ return this.as(alias);
6430
+ };
6154
6431
  }
6155
6432
 
6156
- var proto = Moment.prototype;
6433
+ var asMilliseconds = makeAs('ms'),
6434
+ asSeconds = makeAs('s'),
6435
+ asMinutes = makeAs('m'),
6436
+ asHours = makeAs('h'),
6437
+ asDays = makeAs('d'),
6438
+ asWeeks = makeAs('w'),
6439
+ asMonths = makeAs('M'),
6440
+ asQuarters = makeAs('Q'),
6441
+ asYears = makeAs('y');
6157
6442
 
6158
- proto.add = add;
6159
- proto.calendar = calendar$1;
6160
- proto.clone = clone;
6161
- proto.diff = diff;
6162
- proto.endOf = endOf;
6163
- proto.format = format;
6164
- proto.from = from;
6165
- proto.fromNow = fromNow;
6166
- proto.to = to;
6167
- proto.toNow = toNow;
6168
- proto.get = stringGet;
6169
- proto.invalidAt = invalidAt;
6170
- proto.isAfter = isAfter;
6171
- proto.isBefore = isBefore;
6172
- proto.isBetween = isBetween;
6173
- proto.isSame = isSame;
6174
- proto.isSameOrAfter = isSameOrAfter;
6175
- proto.isSameOrBefore = isSameOrBefore;
6176
- proto.isValid = isValid$2;
6177
- proto.lang = lang;
6178
- proto.locale = locale;
6179
- proto.localeData = localeData;
6180
- proto.max = prototypeMax;
6181
- proto.min = prototypeMin;
6182
- proto.parsingFlags = parsingFlags;
6183
- proto.set = stringSet;
6184
- proto.startOf = startOf;
6185
- proto.subtract = subtract;
6186
- proto.toArray = toArray;
6187
- proto.toObject = toObject;
6188
- proto.toDate = toDate;
6189
- proto.toISOString = toISOString;
6190
- proto.inspect = inspect;
6191
- if (typeof Symbol !== 'undefined' && Symbol.for != null) {
6192
- proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
6193
- return 'Moment<' + this.format() + '>';
6194
- };
6443
+ function clone$1() {
6444
+ return createDuration(this);
6195
6445
  }
6196
- proto.toJSON = toJSON;
6197
- proto.toString = toString;
6198
- proto.unix = unix;
6199
- proto.valueOf = valueOf;
6200
- proto.creationData = creationData;
6201
- proto.eraName = getEraName;
6202
- proto.eraNarrow = getEraNarrow;
6203
- proto.eraAbbr = getEraAbbr;
6204
- proto.eraYear = getEraYear;
6205
- proto.year = getSetYear;
6206
- proto.isLeapYear = getIsLeapYear;
6207
- proto.weekYear = getSetWeekYear;
6208
- proto.isoWeekYear = getSetISOWeekYear;
6209
- proto.quarter = proto.quarters = getSetQuarter;
6210
- proto.month = getSetMonth;
6211
- proto.daysInMonth = getDaysInMonth;
6212
- proto.week = proto.weeks = getSetWeek;
6213
- proto.isoWeek = proto.isoWeeks = getSetISOWeek;
6214
- proto.weeksInYear = getWeeksInYear;
6215
- proto.weeksInWeekYear = getWeeksInWeekYear;
6216
- proto.isoWeeksInYear = getISOWeeksInYear;
6217
- proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
6218
- proto.date = getSetDayOfMonth;
6219
- proto.day = proto.days = getSetDayOfWeek;
6220
- proto.weekday = getSetLocaleDayOfWeek;
6221
- proto.isoWeekday = getSetISODayOfWeek;
6222
- proto.dayOfYear = getSetDayOfYear;
6223
- proto.hour = proto.hours = getSetHour;
6224
- proto.minute = proto.minutes = getSetMinute;
6225
- proto.second = proto.seconds = getSetSecond;
6226
- proto.millisecond = proto.milliseconds = getSetMillisecond;
6227
- proto.utcOffset = getSetOffset;
6228
- proto.utc = setOffsetToUTC;
6229
- proto.local = setOffsetToLocal;
6230
- proto.parseZone = setOffsetToParsedOffset;
6231
- proto.hasAlignedHourOffset = hasAlignedHourOffset;
6232
- proto.isDST = isDaylightSavingTime;
6233
- proto.isLocal = isLocal;
6234
- proto.isUtcOffset = isUtcOffset;
6235
- proto.isUtc = isUtc;
6236
- proto.isUTC = isUtc;
6237
- proto.zoneAbbr = getZoneAbbr;
6238
- proto.zoneName = getZoneName;
6239
- proto.dates = deprecate(
6240
- 'dates accessor is deprecated. Use date instead.',
6241
- getSetDayOfMonth
6242
- );
6243
- proto.months = deprecate(
6244
- 'months accessor is deprecated. Use month instead',
6245
- getSetMonth
6246
- );
6247
- proto.years = deprecate(
6248
- 'years accessor is deprecated. Use year instead',
6249
- getSetYear
6250
- );
6251
- proto.zone = deprecate(
6252
- 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
6253
- getSetZone
6254
- );
6255
- proto.isDSTShifted = deprecate(
6256
- 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
6257
- isDaylightSavingTimeShifted
6258
- );
6259
6446
 
6260
- function createUnix(input) {
6261
- return createLocal(input * 1000);
6447
+ function get$2(units) {
6448
+ units = normalizeUnits(units);
6449
+ return this.isValid() ? this[units + 's']() : NaN;
6262
6450
  }
6263
6451
 
6264
- function createInZone() {
6265
- return createLocal.apply(null, arguments).parseZone();
6452
+ function makeGetter(name) {
6453
+ return function () {
6454
+ return this.isValid() ? this._data[name] : NaN;
6455
+ };
6266
6456
  }
6267
6457
 
6268
- function preParsePostFormat(string) {
6269
- return string;
6270
- }
6458
+ var milliseconds = makeGetter('milliseconds'),
6459
+ seconds = makeGetter('seconds'),
6460
+ minutes = makeGetter('minutes'),
6461
+ hours = makeGetter('hours'),
6462
+ days = makeGetter('days'),
6463
+ months = makeGetter('months'),
6464
+ years = makeGetter('years');
6271
6465
 
6272
- var proto$1 = Locale.prototype;
6466
+ function weeks() {
6467
+ return absFloor(this.days() / 7);
6468
+ }
6273
6469
 
6274
- proto$1.calendar = calendar;
6275
- proto$1.longDateFormat = longDateFormat;
6276
- proto$1.invalidDate = invalidDate;
6277
- proto$1.ordinal = ordinal;
6278
- proto$1.preparse = preParsePostFormat;
6279
- proto$1.postformat = preParsePostFormat;
6280
- proto$1.relativeTime = relativeTime;
6281
- proto$1.pastFuture = pastFuture;
6282
- proto$1.set = set;
6283
- proto$1.eras = localeEras;
6284
- proto$1.erasParse = localeErasParse;
6285
- proto$1.erasConvertYear = localeErasConvertYear;
6286
- proto$1.erasAbbrRegex = erasAbbrRegex;
6287
- proto$1.erasNameRegex = erasNameRegex;
6288
- proto$1.erasNarrowRegex = erasNarrowRegex;
6470
+ var round = Math.round,
6471
+ thresholds = {
6472
+ ss: 44, // a few seconds to seconds
6473
+ s: 45, // seconds to minute
6474
+ m: 45, // minutes to hour
6475
+ h: 22, // hours to day
6476
+ d: 26, // days to month/week
6477
+ w: null, // weeks to month
6478
+ M: 11, // months to year
6479
+ };
6289
6480
 
6290
- proto$1.months = localeMonths;
6291
- proto$1.monthsShort = localeMonthsShort;
6292
- proto$1.monthsParse = localeMonthsParse;
6293
- proto$1.monthsRegex = monthsRegex;
6294
- proto$1.monthsShortRegex = monthsShortRegex;
6295
- proto$1.week = localeWeek;
6296
- proto$1.firstDayOfYear = localeFirstDayOfYear;
6297
- proto$1.firstDayOfWeek = localeFirstDayOfWeek;
6481
+ // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
6482
+ function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
6483
+ return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
6484
+ }
6298
6485
 
6299
- proto$1.weekdays = localeWeekdays;
6300
- proto$1.weekdaysMin = localeWeekdaysMin;
6301
- proto$1.weekdaysShort = localeWeekdaysShort;
6302
- proto$1.weekdaysParse = localeWeekdaysParse;
6486
+ function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
6487
+ var duration = createDuration(posNegDuration).abs(),
6488
+ seconds = round(duration.as('s')),
6489
+ minutes = round(duration.as('m')),
6490
+ hours = round(duration.as('h')),
6491
+ days = round(duration.as('d')),
6492
+ months = round(duration.as('M')),
6493
+ weeks = round(duration.as('w')),
6494
+ years = round(duration.as('y')),
6495
+ a =
6496
+ (seconds <= thresholds.ss && ['s', seconds]) ||
6497
+ (seconds < thresholds.s && ['ss', seconds]) ||
6498
+ (minutes <= 1 && ['m']) ||
6499
+ (minutes < thresholds.m && ['mm', minutes]) ||
6500
+ (hours <= 1 && ['h']) ||
6501
+ (hours < thresholds.h && ['hh', hours]) ||
6502
+ (days <= 1 && ['d']) ||
6503
+ (days < thresholds.d && ['dd', days]);
6303
6504
 
6304
- proto$1.weekdaysRegex = weekdaysRegex;
6305
- proto$1.weekdaysShortRegex = weekdaysShortRegex;
6306
- proto$1.weekdaysMinRegex = weekdaysMinRegex;
6505
+ if (thresholds.w != null) {
6506
+ a =
6507
+ a ||
6508
+ (weeks <= 1 && ['w']) ||
6509
+ (weeks < thresholds.w && ['ww', weeks]);
6510
+ }
6511
+ a = a ||
6512
+ (months <= 1 && ['M']) ||
6513
+ (months < thresholds.M && ['MM', months]) ||
6514
+ (years <= 1 && ['y']) || ['yy', years];
6307
6515
 
6308
- proto$1.isPM = localeIsPM;
6309
- proto$1.meridiem = localeMeridiem;
6516
+ a[2] = withoutSuffix;
6517
+ a[3] = +posNegDuration > 0;
6518
+ a[4] = locale;
6519
+ return substituteTimeAgo.apply(null, a);
6520
+ }
6310
6521
 
6311
- function get$1(format, index, field, setter) {
6312
- var locale = getLocale(),
6313
- utc = createUTC().set(setter, index);
6314
- return locale[field](utc, format);
6522
+ // This function allows you to set the rounding function for relative time strings
6523
+ function getSetRelativeTimeRounding(roundingFunction) {
6524
+ if (roundingFunction === undefined) {
6525
+ return round;
6526
+ }
6527
+ if (typeof roundingFunction === 'function') {
6528
+ round = roundingFunction;
6529
+ return true;
6530
+ }
6531
+ return false;
6315
6532
  }
6316
6533
 
6317
- function listMonthsImpl(format, index, field) {
6318
- if (isNumber(format)) {
6319
- index = format;
6320
- format = undefined;
6534
+ // This function allows you to set a threshold for relative time strings
6535
+ function getSetRelativeTimeThreshold(threshold, limit) {
6536
+ if (thresholds[threshold] === undefined) {
6537
+ return false;
6321
6538
  }
6322
-
6323
- format = format || '';
6324
-
6325
- if (index != null) {
6326
- return get$1(format, index, field, 'month');
6539
+ if (limit === undefined) {
6540
+ return thresholds[threshold];
6327
6541
  }
6328
-
6329
- var i,
6330
- out = [];
6331
- for (i = 0; i < 12; i++) {
6332
- out[i] = get$1(format, i, field, 'month');
6542
+ thresholds[threshold] = limit;
6543
+ if (threshold === 's') {
6544
+ thresholds.ss = limit - 1;
6333
6545
  }
6334
- return out;
6546
+ return true;
6335
6547
  }
6336
6548
 
6337
- // ()
6338
- // (5)
6339
- // (fmt, 5)
6340
- // (fmt)
6341
- // (true)
6342
- // (true, 5)
6343
- // (true, fmt, 5)
6344
- // (true, fmt)
6345
- function listWeekdaysImpl(localeSorted, format, index, field) {
6346
- if (typeof localeSorted === 'boolean') {
6347
- if (isNumber(format)) {
6348
- index = format;
6349
- format = undefined;
6350
- }
6351
-
6352
- format = format || '';
6353
- } else {
6354
- format = localeSorted;
6355
- index = format;
6356
- localeSorted = false;
6357
-
6358
- if (isNumber(format)) {
6359
- index = format;
6360
- format = undefined;
6361
- }
6362
-
6363
- format = format || '';
6549
+ function humanize(argWithSuffix, argThresholds) {
6550
+ if (!this.isValid()) {
6551
+ return this.localeData().invalidDate();
6364
6552
  }
6365
6553
 
6366
- var locale = getLocale(),
6367
- shift = localeSorted ? locale._week.dow : 0,
6368
- i,
6369
- out = [];
6554
+ var withSuffix = false,
6555
+ th = thresholds,
6556
+ locale,
6557
+ output;
6370
6558
 
6371
- if (index != null) {
6372
- return get$1(format, (index + shift) % 7, field, 'day');
6559
+ if (typeof argWithSuffix === 'object') {
6560
+ argThresholds = argWithSuffix;
6561
+ argWithSuffix = false;
6373
6562
  }
6374
-
6375
- for (i = 0; i < 7; i++) {
6376
- out[i] = get$1(format, (i + shift) % 7, field, 'day');
6563
+ if (typeof argWithSuffix === 'boolean') {
6564
+ withSuffix = argWithSuffix;
6565
+ }
6566
+ if (typeof argThresholds === 'object') {
6567
+ th = Object.assign({}, thresholds, argThresholds);
6568
+ if (argThresholds.s != null && argThresholds.ss == null) {
6569
+ th.ss = argThresholds.s - 1;
6570
+ }
6377
6571
  }
6378
- return out;
6379
- }
6380
6572
 
6381
- function listMonths(format, index) {
6382
- return listMonthsImpl(format, index, 'months');
6383
- }
6573
+ locale = this.localeData();
6574
+ output = relativeTime$1(this, !withSuffix, th, locale);
6384
6575
 
6385
- function listMonthsShort(format, index) {
6386
- return listMonthsImpl(format, index, 'monthsShort');
6387
- }
6576
+ if (withSuffix) {
6577
+ output = locale.pastFuture(+this, output);
6578
+ }
6388
6579
 
6389
- function listWeekdays(localeSorted, format, index) {
6390
- return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
6580
+ return locale.postformat(output);
6391
6581
  }
6392
6582
 
6393
- function listWeekdaysShort(localeSorted, format, index) {
6394
- return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
6395
- }
6583
+ var abs$1 = Math.abs;
6396
6584
 
6397
- function listWeekdaysMin(localeSorted, format, index) {
6398
- return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
6585
+ function sign(x) {
6586
+ return (x > 0) - (x < 0) || +x;
6399
6587
  }
6400
6588
 
6401
- getSetGlobalLocale('en', {
6402
- eras: [
6403
- {
6404
- since: '0001-01-01',
6405
- until: +Infinity,
6406
- offset: 1,
6407
- name: 'Anno Domini',
6408
- narrow: 'AD',
6409
- abbr: 'AD',
6410
- },
6411
- {
6412
- since: '0000-12-31',
6413
- until: -Infinity,
6414
- offset: 1,
6415
- name: 'Before Christ',
6416
- narrow: 'BC',
6417
- abbr: 'BC',
6418
- },
6419
- ],
6420
- dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
6421
- ordinal: function (number) {
6422
- var b = number % 10,
6423
- output =
6424
- toInt((number % 100) / 10) === 1
6425
- ? 'th'
6426
- : b === 1
6427
- ? 'st'
6428
- : b === 2
6429
- ? 'nd'
6430
- : b === 3
6431
- ? 'rd'
6432
- : 'th';
6433
- return number + output;
6434
- },
6435
- });
6589
+ function toISOString$1() {
6590
+ // for ISO strings we do not use the normal bubbling rules:
6591
+ // * milliseconds bubble up until they become hours
6592
+ // * days do not bubble at all
6593
+ // * months bubble up until they become years
6594
+ // This is because there is no context-free conversion between hours and days
6595
+ // (think of clock changes)
6596
+ // and also not between days and months (28-31 days per month)
6597
+ if (!this.isValid()) {
6598
+ return this.localeData().invalidDate();
6599
+ }
6436
6600
 
6437
- // Side effect imports
6601
+ var seconds = abs$1(this._milliseconds) / 1000,
6602
+ days = abs$1(this._days),
6603
+ months = abs$1(this._months),
6604
+ minutes,
6605
+ hours,
6606
+ years,
6607
+ s,
6608
+ total = this.asSeconds(),
6609
+ totalSign,
6610
+ ymSign,
6611
+ daysSign,
6612
+ hmsSign;
6438
6613
 
6439
- hooks.lang = deprecate(
6440
- 'moment.lang is deprecated. Use moment.locale instead.',
6441
- getSetGlobalLocale
6442
- );
6443
- hooks.langData = deprecate(
6444
- 'moment.langData is deprecated. Use moment.localeData instead.',
6445
- getLocale
6446
- );
6614
+ if (!total) {
6615
+ // this is the same as C#'s (Noda) and python (isodate)...
6616
+ // but not other JS (goog.date)
6617
+ return 'P0D';
6618
+ }
6447
6619
 
6448
- var mathAbs = Math.abs;
6620
+ // 3600 seconds -> 60 minutes -> 1 hour
6621
+ minutes = absFloor(seconds / 60);
6622
+ hours = absFloor(minutes / 60);
6623
+ seconds %= 60;
6624
+ minutes %= 60;
6449
6625
 
6450
- function abs() {
6451
- var data = this._data;
6626
+ // 12 months -> 1 year
6627
+ years = absFloor(months / 12);
6628
+ months %= 12;
6452
6629
 
6453
- this._milliseconds = mathAbs(this._milliseconds);
6454
- this._days = mathAbs(this._days);
6455
- this._months = mathAbs(this._months);
6630
+ // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
6631
+ s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
6456
6632
 
6457
- data.milliseconds = mathAbs(data.milliseconds);
6458
- data.seconds = mathAbs(data.seconds);
6459
- data.minutes = mathAbs(data.minutes);
6460
- data.hours = mathAbs(data.hours);
6461
- data.months = mathAbs(data.months);
6462
- data.years = mathAbs(data.years);
6633
+ totalSign = total < 0 ? '-' : '';
6634
+ ymSign = sign(this._months) !== sign(total) ? '-' : '';
6635
+ daysSign = sign(this._days) !== sign(total) ? '-' : '';
6636
+ hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
6463
6637
 
6464
- return this;
6638
+ return (
6639
+ totalSign +
6640
+ 'P' +
6641
+ (years ? ymSign + years + 'Y' : '') +
6642
+ (months ? ymSign + months + 'M' : '') +
6643
+ (days ? daysSign + days + 'D' : '') +
6644
+ (hours || minutes || seconds ? 'T' : '') +
6645
+ (hours ? hmsSign + hours + 'H' : '') +
6646
+ (minutes ? hmsSign + minutes + 'M' : '') +
6647
+ (seconds ? hmsSign + s + 'S' : '')
6648
+ );
6465
6649
  }
6466
6650
 
6467
- function addSubtract$1(duration, input, value, direction) {
6468
- var other = createDuration(input, value);
6469
-
6470
- duration._milliseconds += direction * other._milliseconds;
6471
- duration._days += direction * other._days;
6472
- duration._months += direction * other._months;
6473
-
6474
- return duration._bubble();
6475
- }
6651
+ var proto$2 = Duration.prototype;
6476
6652
 
6477
- // supports only 2.0-style add(1, 's') or add(duration)
6478
- function add$1(input, value) {
6479
- return addSubtract$1(this, input, value, 1);
6480
- }
6653
+ proto$2.isValid = isValid$1;
6654
+ proto$2.abs = abs;
6655
+ proto$2.add = add$1;
6656
+ proto$2.subtract = subtract$1;
6657
+ proto$2.as = as;
6658
+ proto$2.asMilliseconds = asMilliseconds;
6659
+ proto$2.asSeconds = asSeconds;
6660
+ proto$2.asMinutes = asMinutes;
6661
+ proto$2.asHours = asHours;
6662
+ proto$2.asDays = asDays;
6663
+ proto$2.asWeeks = asWeeks;
6664
+ proto$2.asMonths = asMonths;
6665
+ proto$2.asQuarters = asQuarters;
6666
+ proto$2.asYears = asYears;
6667
+ proto$2.valueOf = valueOf$1;
6668
+ proto$2._bubble = bubble;
6669
+ proto$2.clone = clone$1;
6670
+ proto$2.get = get$2;
6671
+ proto$2.milliseconds = milliseconds;
6672
+ proto$2.seconds = seconds;
6673
+ proto$2.minutes = minutes;
6674
+ proto$2.hours = hours;
6675
+ proto$2.days = days;
6676
+ proto$2.weeks = weeks;
6677
+ proto$2.months = months;
6678
+ proto$2.years = years;
6679
+ proto$2.humanize = humanize;
6680
+ proto$2.toISOString = toISOString$1;
6681
+ proto$2.toString = toISOString$1;
6682
+ proto$2.toJSON = toISOString$1;
6683
+ proto$2.locale = locale;
6684
+ proto$2.localeData = localeData;
6481
6685
 
6482
- // supports only 2.0-style subtract(1, 's') or subtract(duration)
6483
- function subtract$1(input, value) {
6484
- return addSubtract$1(this, input, value, -1);
6485
- }
6686
+ proto$2.toIsoString = deprecate(
6687
+ 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
6688
+ toISOString$1
6689
+ );
6690
+ proto$2.lang = lang;
6486
6691
 
6487
- function absCeil(number) {
6488
- if (number < 0) {
6489
- return Math.floor(number);
6490
- } else {
6491
- return Math.ceil(number);
6492
- }
6493
- }
6692
+ // FORMATTING
6494
6693
 
6495
- function bubble() {
6496
- var milliseconds = this._milliseconds,
6497
- days = this._days,
6498
- months = this._months,
6499
- data = this._data,
6500
- seconds,
6501
- minutes,
6502
- hours,
6503
- years,
6504
- monthsFromDays;
6694
+ addFormatToken('X', 0, 0, 'unix');
6695
+ addFormatToken('x', 0, 0, 'valueOf');
6505
6696
 
6506
- // if we have a mix of positive and negative values, bubble down first
6507
- // check: https://github.com/moment/moment/issues/2166
6508
- if (
6509
- !(
6510
- (milliseconds >= 0 && days >= 0 && months >= 0) ||
6511
- (milliseconds <= 0 && days <= 0 && months <= 0)
6512
- )
6513
- ) {
6514
- milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
6515
- days = 0;
6516
- months = 0;
6517
- }
6697
+ // PARSING
6518
6698
 
6519
- // The following code bubbles up values, see the tests for
6520
- // examples of what that means.
6521
- data.milliseconds = milliseconds % 1000;
6699
+ addRegexToken('x', matchSigned);
6700
+ addRegexToken('X', matchTimestamp);
6701
+ addParseToken('X', function (input, array, config) {
6702
+ config._d = new Date(parseFloat(input) * 1000);
6703
+ });
6704
+ addParseToken('x', function (input, array, config) {
6705
+ config._d = new Date(toInt(input));
6706
+ });
6522
6707
 
6523
- seconds = absFloor(milliseconds / 1000);
6524
- data.seconds = seconds % 60;
6708
+ //! moment.js
6525
6709
 
6526
- minutes = absFloor(seconds / 60);
6527
- data.minutes = minutes % 60;
6710
+ hooks.version = '2.29.1';
6528
6711
 
6529
- hours = absFloor(minutes / 60);
6530
- data.hours = hours % 24;
6712
+ setHookCallback(createLocal);
6531
6713
 
6532
- days += absFloor(hours / 24);
6714
+ hooks.fn = proto;
6715
+ hooks.min = min;
6716
+ hooks.max = max;
6717
+ hooks.now = now;
6718
+ hooks.utc = createUTC;
6719
+ hooks.unix = createUnix;
6720
+ hooks.months = listMonths;
6721
+ hooks.isDate = isDate;
6722
+ hooks.locale = getSetGlobalLocale;
6723
+ hooks.invalid = createInvalid;
6724
+ hooks.duration = createDuration;
6725
+ hooks.isMoment = isMoment;
6726
+ hooks.weekdays = listWeekdays;
6727
+ hooks.parseZone = createInZone;
6728
+ hooks.localeData = getLocale;
6729
+ hooks.isDuration = isDuration;
6730
+ hooks.monthsShort = listMonthsShort;
6731
+ hooks.weekdaysMin = listWeekdaysMin;
6732
+ hooks.defineLocale = defineLocale;
6733
+ hooks.updateLocale = updateLocale;
6734
+ hooks.locales = listLocales;
6735
+ hooks.weekdaysShort = listWeekdaysShort;
6736
+ hooks.normalizeUnits = normalizeUnits;
6737
+ hooks.relativeTimeRounding = getSetRelativeTimeRounding;
6738
+ hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
6739
+ hooks.calendarFormat = getCalendarFormat;
6740
+ hooks.prototype = proto;
6533
6741
 
6534
- // convert days to months
6535
- monthsFromDays = absFloor(daysToMonths(days));
6536
- months += monthsFromDays;
6537
- days -= absCeil(monthsToDays(monthsFromDays));
6742
+ // currently HTML5 input type only supports 24-hour formats
6743
+ hooks.HTML5_FMT = {
6744
+ DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
6745
+ DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
6746
+ DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
6747
+ DATE: 'YYYY-MM-DD', // <input type="date" />
6748
+ TIME: 'HH:mm', // <input type="time" />
6749
+ TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
6750
+ TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
6751
+ WEEK: 'GGGG-[W]WW', // <input type="week" />
6752
+ MONTH: 'YYYY-MM', // <input type="month" />
6753
+ };
6538
6754
 
6539
- // 12 months -> 1 year
6540
- years = absFloor(months / 12);
6541
- months %= 12;
6755
+ var _excluded$2 = ["getRangePickerValue", "panelType"];
6542
6756
 
6543
- data.days = days;
6544
- data.months = months;
6545
- data.years = years;
6757
+ var WDatePicker = function WDatePicker(props) {
6758
+ var extraProps = _extends({}, props);
6546
6759
 
6547
- return this;
6548
- }
6760
+ return /*#__PURE__*/React__default['default'].createElement(_DatePicker__default['default'], _objectSpread2({
6761
+ locale: locale__default['default']
6762
+ }, extraProps));
6763
+ };
6549
6764
 
6550
- function daysToMonths(days) {
6551
- // 400 years have 146097 days (taking into account leap year rules)
6552
- // 400 years have 12 months === 4800
6553
- return (days * 4800) / 146097;
6554
- }
6765
+ WDatePicker.defaultProps = {};
6555
6766
 
6556
- function monthsToDays(months) {
6557
- // the reverse of daysToMonths
6558
- return (months * 146097) / 4800;
6559
- }
6767
+ var RangePicker = function RangePicker(props) {
6768
+ var getRangePickerValue = props.getRangePickerValue,
6769
+ panelType = props.panelType,
6770
+ extraProps = _objectWithoutProperties(props, _excluded$2);
6560
6771
 
6561
- function as(units) {
6562
- if (!this.isValid()) {
6563
- return NaN;
6564
- }
6565
- var days,
6566
- months,
6567
- milliseconds = this._milliseconds;
6772
+ var _useState = React.useState([]),
6773
+ _useState2 = _slicedToArray(_useState, 2),
6774
+ rangePickerValue = _useState2[0],
6775
+ setRangePickerValue = _useState2[1];
6568
6776
 
6569
- units = normalizeUnits(units);
6777
+ var _useState3 = React.useState(''),
6778
+ _useState4 = _slicedToArray(_useState3, 2),
6779
+ radioValue = _useState4[0],
6780
+ setRadioValue = _useState4[1];
6570
6781
 
6571
- if (units === 'month' || units === 'quarter' || units === 'year') {
6572
- days = this._days + milliseconds / 864e5;
6573
- months = this._months + daysToMonths(days);
6574
- switch (units) {
6575
- case 'month':
6576
- return months;
6577
- case 'quarter':
6578
- return months / 3;
6579
- case 'year':
6580
- return months / 12;
6581
- }
6582
- } else {
6583
- // handle milliseconds separately because of floating point math errors (issue #1867)
6584
- days = this._days + Math.round(monthsToDays(this._months));
6585
- switch (units) {
6586
- case 'week':
6587
- return days / 7 + milliseconds / 6048e5;
6588
- case 'day':
6589
- return days + milliseconds / 864e5;
6590
- case 'hour':
6591
- return days * 24 + milliseconds / 36e5;
6592
- case 'minute':
6593
- return days * 1440 + milliseconds / 6e4;
6594
- case 'second':
6595
- return days * 86400 + milliseconds / 1000;
6596
- // Math.floor prevents floating point math errors here
6597
- case 'millisecond':
6598
- return Math.floor(days * 864e5) + milliseconds;
6599
- default:
6600
- throw new Error('Unknown unit ' + units);
6782
+ React.useEffect(function () {
6783
+ getRangePickerValue && getRangePickerValue(rangePickerValue);
6784
+ }, [rangePickerValue]);
6785
+
6786
+ if (panelType === 'within') {
6787
+ return /*#__PURE__*/React__default['default'].createElement(RangePicker, _objectSpread2({
6788
+ value: rangePickerValue,
6789
+ onChange: function onChange(date) {
6790
+ setRadioValue('');
6791
+ setRangePickerValue(date);
6792
+ },
6793
+ // showToday={false}
6794
+ // showNow={false}
6795
+ panelRender: function panelRender(originalPanel) {
6796
+ return /*#__PURE__*/React__default['default'].createElement("div", {
6797
+ style: {
6798
+ display: 'flex'
6799
+ }
6800
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
6801
+ style: {
6802
+ width: 100,
6803
+ margin: '10px 0',
6804
+ borderRight: '1px solid #bdd0e3',
6805
+ display: 'flex',
6806
+ justifyContent: 'center',
6807
+ alignItems: 'center'
6808
+ }
6809
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
6810
+ id: "withinDateNav"
6811
+ }, /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'].Group, {
6812
+ optionType: "button",
6813
+ buttonStyle: "solid",
6814
+ value: radioValue,
6815
+ onChange: function onChange(e) {
6816
+ setRadioValue(e.target.value);
6817
+ }
6818
+ }, /*#__PURE__*/React__default['default'].createElement(_Space__default['default'], {
6819
+ direction: "vertical",
6820
+ size: 'middle'
6821
+ }, /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'].Button, {
6822
+ value: '1',
6823
+ onClick: function onClick() {
6824
+ setRangePickerValue([hooks().startOf('day'), hooks().endOf('day')]);
6825
+ }
6826
+ }, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4ECA\u65E5")), /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'].Button, {
6827
+ value: '2',
6828
+ onClick: function onClick() {
6829
+ setRangePickerValue([hooks().startOf('week'), hooks().endOf('week')]);
6830
+ }
6831
+ }, /*#__PURE__*/React__default['default'].createElement("span", null, "\u672C\u5468")), /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'].Button, {
6832
+ value: '3',
6833
+ onClick: function onClick() {
6834
+ setRangePickerValue([hooks().startOf('month'), hooks().endOf('month')]);
6835
+ }
6836
+ }, /*#__PURE__*/React__default['default'].createElement("span", null, "\u672C\u6708")), /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'].Button, {
6837
+ value: '4',
6838
+ onClick: function onClick() {
6839
+ setRangePickerValue([hooks().startOf('year'), hooks().endOf('year')]);
6840
+ }
6841
+ }, /*#__PURE__*/React__default['default'].createElement("span", null, "\u672C\u5E74")))))), /*#__PURE__*/React__default['default'].createElement("div", null, originalPanel));
6842
+ }
6843
+ }, extraProps));
6844
+ } else if (panelType === 'outside') {
6845
+ return /*#__PURE__*/React__default['default'].createElement(_Space__default['default'], {
6846
+ split: /*#__PURE__*/React__default['default'].createElement("span", {
6847
+ style: {
6848
+ color: '#768CAD'
6601
6849
  }
6602
- }
6603
- }
6850
+ }, "\u2014\u2014")
6851
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
6852
+ id: "outsideNav"
6853
+ }, /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'].Group, {
6854
+ optionType: "button",
6855
+ buttonStyle: "solid",
6856
+ value: radioValue,
6857
+ onChange: function onChange(e) {
6858
+ setRadioValue(e.target.value);
6859
+ }
6860
+ }, /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'].Button, {
6861
+ value: '1',
6862
+ onClick: function onClick() {
6863
+ setRangePickerValue([hooks().startOf('year'), hooks().endOf('year')]);
6864
+ }
6865
+ }, /*#__PURE__*/React__default['default'].createElement("span", null, "\u5E74")), /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'].Button, {
6866
+ value: '2',
6867
+ onClick: function onClick() {
6868
+ setRangePickerValue([hooks().startOf('month'), hooks().endOf('month')]);
6869
+ }
6870
+ }, /*#__PURE__*/React__default['default'].createElement("span", null, "\u6708")), /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'].Button, {
6871
+ value: '3',
6872
+ onClick: function onClick() {
6873
+ setRangePickerValue([hooks().startOf('day'), hooks().endOf('day')]);
6874
+ }
6875
+ }, /*#__PURE__*/React__default['default'].createElement("span", null, "\u65E5")))), /*#__PURE__*/React__default['default'].createElement(RangePicker, _objectSpread2({
6876
+ value: rangePickerValue,
6877
+ onChange: function onChange(date) {
6878
+ setRadioValue('');
6879
+ setRangePickerValue(date);
6880
+ }
6881
+ }, extraProps)));
6882
+ }
6604
6883
 
6605
- // TODO: Use this.as('ms')?
6606
- function valueOf$1() {
6607
- if (!this.isValid()) {
6608
- return NaN;
6609
- }
6610
- return (
6611
- this._milliseconds +
6612
- this._days * 864e5 +
6613
- (this._months % 12) * 2592e6 +
6614
- toInt(this._months / 12) * 31536e6
6615
- );
6616
- }
6884
+ return /*#__PURE__*/React__default['default'].createElement(_DatePicker__default['default'].RangePicker, _objectSpread2({
6885
+ locale: locale__default['default']
6886
+ }, extraProps));
6887
+ };
6617
6888
 
6618
- function makeAs(alias) {
6619
- return function () {
6620
- return this.as(alias);
6621
- };
6622
- }
6889
+ RangePicker.defaultProps = {};
6890
+ var Index$2 = WDatePicker;
6891
+ Index$2.RangePicker = RangePicker;
6623
6892
 
6624
- var asMilliseconds = makeAs('ms'),
6625
- asSeconds = makeAs('s'),
6626
- asMinutes = makeAs('m'),
6627
- asHours = makeAs('h'),
6628
- asDays = makeAs('d'),
6629
- asWeeks = makeAs('w'),
6630
- asMonths = makeAs('M'),
6631
- asQuarters = makeAs('Q'),
6632
- asYears = makeAs('y');
6893
+ var _excluded$3 = ["sideButtonStyle"];
6633
6894
 
6634
- function clone$1() {
6635
- return createDuration(this);
6636
- }
6895
+ var WRadio = function WRadio(props) {
6896
+ var sideButtonStyle = props.sideButtonStyle,
6897
+ extraProps = _objectWithoutProperties(props, _excluded$3);
6637
6898
 
6638
- function get$2(units) {
6639
- units = normalizeUnits(units);
6640
- return this.isValid() ? this[units + 's']() : NaN;
6641
- }
6899
+ return /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'], _objectSpread2({}, extraProps));
6900
+ };
6642
6901
 
6643
- function makeGetter(name) {
6644
- return function () {
6645
- return this.isValid() ? this._data[name] : NaN;
6646
- };
6647
- }
6902
+ var Index$3 = WRadio;
6903
+ Index$3.Group = _Radio__default['default'].Group;
6904
+ Index$3.Button = _Radio__default['default'].Button;
6905
+ WRadio.defaultProps = {};
6648
6906
 
6649
- var milliseconds = makeGetter('milliseconds'),
6650
- seconds = makeGetter('seconds'),
6651
- minutes = makeGetter('minutes'),
6652
- hours = makeGetter('hours'),
6653
- days = makeGetter('days'),
6654
- months = makeGetter('months'),
6655
- years = makeGetter('years');
6907
+ var WCheckbox = function WCheckbox(props) {
6908
+ var extraProps = _extends({}, props);
6656
6909
 
6657
- function weeks() {
6658
- return absFloor(this.days() / 7);
6659
- }
6910
+ return /*#__PURE__*/React__default['default'].createElement(_Checkbox__default['default'], _objectSpread2({}, extraProps));
6911
+ };
6660
6912
 
6661
- var round = Math.round,
6662
- thresholds = {
6663
- ss: 44, // a few seconds to seconds
6664
- s: 45, // seconds to minute
6665
- m: 45, // minutes to hour
6666
- h: 22, // hours to day
6667
- d: 26, // days to month/week
6668
- w: null, // weeks to month
6669
- M: 11, // months to year
6670
- };
6913
+ WCheckbox.defaultProps = {};
6914
+ var Index$4 = WCheckbox;
6915
+ Index$4.Group = _Checkbox__default['default'].Group;
6671
6916
 
6672
- // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
6673
- function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
6674
- return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
6675
- }
6917
+ /*
6918
+ * @Author: lijin
6919
+ * @Date: 2021-10-27 22:18:49
6920
+ * @LastEditTime: 2022-08-11 10:57:14
6921
+ * @LastEditors: lijin
6922
+ * @Description:
6923
+ * @FilePath: \wargerm-components\src\utils\index.ts
6924
+ * 可以输入预定的版权声明、个性签名、空行等
6925
+ */
6676
6926
 
6677
- function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
6678
- var duration = createDuration(posNegDuration).abs(),
6679
- seconds = round(duration.as('s')),
6680
- minutes = round(duration.as('m')),
6681
- hours = round(duration.as('h')),
6682
- days = round(duration.as('d')),
6683
- months = round(duration.as('M')),
6684
- weeks = round(duration.as('w')),
6685
- years = round(duration.as('y')),
6686
- a =
6687
- (seconds <= thresholds.ss && ['s', seconds]) ||
6688
- (seconds < thresholds.s && ['ss', seconds]) ||
6689
- (minutes <= 1 && ['m']) ||
6690
- (minutes < thresholds.m && ['mm', minutes]) ||
6691
- (hours <= 1 && ['h']) ||
6692
- (hours < thresholds.h && ['hh', hours]) ||
6693
- (days <= 1 && ['d']) ||
6694
- (days < thresholds.d && ['dd', days]);
6927
+ /**
6928
+ * 过滤对象中为空的属性
6929
+ * @param obj
6930
+ * @returns {*}
6931
+ */
6932
+ function filterObj(obj) {
6933
+ if (!(_typeof(obj) === 'object')) {
6934
+ return;
6935
+ }
6695
6936
 
6696
- if (thresholds.w != null) {
6697
- a =
6698
- a ||
6699
- (weeks <= 1 && ['w']) ||
6700
- (weeks < thresholds.w && ['ww', weeks]);
6937
+ for (var key in obj) {
6938
+ if (obj.hasOwnProperty(key) && (obj[key] == null || obj[key] == undefined || obj[key] === '')) {
6939
+ delete obj[key];
6701
6940
  }
6702
- a = a ||
6703
- (months <= 1 && ['M']) ||
6704
- (months < thresholds.M && ['MM', months]) ||
6705
- (years <= 1 && ['y']) || ['yy', years];
6941
+ }
6706
6942
 
6707
- a[2] = withoutSuffix;
6708
- a[3] = +posNegDuration > 0;
6709
- a[4] = locale;
6710
- return substituteTimeAgo.apply(null, a);
6943
+ return obj;
6711
6944
  }
6945
+ /**
6946
+ * 求数组深度层级
6947
+ * @param arr
6948
+ * @param attr
6949
+ * @param index
6950
+ * @returns {*}
6951
+ */
6712
6952
 
6713
- // This function allows you to set the rounding function for relative time strings
6714
- function getSetRelativeTimeRounding(roundingFunction) {
6715
- if (roundingFunction === undefined) {
6716
- return round;
6717
- }
6718
- if (typeof roundingFunction === 'function') {
6719
- round = roundingFunction;
6720
- return true;
6721
- }
6722
- return false;
6723
- }
6953
+ function getArrayLayer(arr, attr) {
6954
+ var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
6955
+ var newIndex = index;
6724
6956
 
6725
- // This function allows you to set a threshold for relative time strings
6726
- function getSetRelativeTimeThreshold(threshold, limit) {
6727
- if (thresholds[threshold] === undefined) {
6728
- return false;
6729
- }
6730
- if (limit === undefined) {
6731
- return thresholds[threshold];
6732
- }
6733
- thresholds[threshold] = limit;
6734
- if (threshold === 's') {
6735
- thresholds.ss = limit - 1;
6736
- }
6737
- return true;
6738
- }
6957
+ var _iterator = _createForOfIteratorHelper(arr),
6958
+ _step;
6739
6959
 
6740
- function humanize(argWithSuffix, argThresholds) {
6741
- if (!this.isValid()) {
6742
- return this.localeData().invalidDate();
6743
- }
6960
+ try {
6961
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
6962
+ var iterator = _step.value;
6963
+ var tempIndex = index;
6744
6964
 
6745
- var withSuffix = false,
6746
- th = thresholds,
6747
- locale,
6748
- output;
6965
+ if (iterator[attr]) {
6966
+ tempIndex = getArrayLayer(iterator[attr], attr, index + 1);
6749
6967
 
6750
- if (typeof argWithSuffix === 'object') {
6751
- argThresholds = argWithSuffix;
6752
- argWithSuffix = false;
6753
- }
6754
- if (typeof argWithSuffix === 'boolean') {
6755
- withSuffix = argWithSuffix;
6756
- }
6757
- if (typeof argThresholds === 'object') {
6758
- th = Object.assign({}, thresholds, argThresholds);
6759
- if (argThresholds.s != null && argThresholds.ss == null) {
6760
- th.ss = argThresholds.s - 1;
6968
+ if (tempIndex > newIndex) {
6969
+ newIndex = tempIndex;
6761
6970
  }
6971
+ }
6762
6972
  }
6973
+ } catch (err) {
6974
+ _iterator.e(err);
6975
+ } finally {
6976
+ _iterator.f();
6977
+ }
6763
6978
 
6764
- locale = this.localeData();
6765
- output = relativeTime$1(this, !withSuffix, th, locale);
6979
+ return newIndex;
6980
+ }
6981
+ var calcWidth = function calcWidth(width) {
6982
+ return document.body.clientWidth / 3840 * width;
6983
+ };
6984
+ var calcHeight = function calcHeight(height) {
6985
+ return document.body.clientHeight / 2160 * height;
6986
+ };
6987
+ /* eslint-disable no-param-reassign */
6766
6988
 
6767
- if (withSuffix) {
6768
- output = locale.pastFuture(+this, output);
6989
+ function deepCopy(target) {
6990
+ if (Object.prototype.toString.call({}).slice(8, -1) == 'Object') {
6991
+ var result = Array.isArray(target) ? [] : {}; // eslint-disable-next-line no-restricted-syntax
6992
+
6993
+ for (var key in target) {
6994
+ if (_typeof(target[key]) === 'object') {
6995
+ if (Object.prototype.toString.call(target).slice(8, -1) == 'Object') {
6996
+ var _target$key, _target$key2;
6997
+
6998
+ if (((_target$key = target[key]) === null || _target$key === void 0 ? void 0 : _target$key['$$typeof']) || ((_target$key2 = target[key]) === null || _target$key2 === void 0 ? void 0 : _target$key2['_isAMomentObject'])) {
6999
+ result[key] = target[key];
7000
+ } else {
7001
+ result[key] = deepCopy(target[key]);
7002
+ }
7003
+ } else if (Object.prototype.toString.call(target).slice(8, -1) == 'Array') {
7004
+ var _target$key3, _target$key4;
7005
+
7006
+ if (((_target$key3 = target[key]) === null || _target$key3 === void 0 ? void 0 : _target$key3['$$typeof']) || ((_target$key4 = target[key]) === null || _target$key4 === void 0 ? void 0 : _target$key4['_isAMomentObject'])) {
7007
+ result[key] = target[key];
7008
+ } else {
7009
+ result[key] = deepCopy(target[key]);
7010
+ }
7011
+ } else {
7012
+ result[key] = target[key];
7013
+ }
7014
+ } else {
7015
+ result[key] = target[key];
7016
+ }
6769
7017
  }
6770
7018
 
6771
- return locale.postformat(output);
7019
+ return result;
7020
+ }
7021
+
7022
+ return target;
6772
7023
  }
6773
7024
 
6774
- var abs$1 = Math.abs;
7025
+ var _excluded$4 = ["className", "frameStyle", "style", "direction", "children"];
7026
+ function FrameBox(_ref) {
7027
+ var _classnames;
6775
7028
 
6776
- function sign(x) {
6777
- return (x > 0) - (x < 0) || +x;
7029
+ var className = _ref.className,
7030
+ frameStyle = _ref.frameStyle,
7031
+ style = _ref.style,
7032
+ _ref$direction = _ref.direction,
7033
+ direction = _ref$direction === void 0 ? 'in' : _ref$direction,
7034
+ children = _ref.children,
7035
+ props = _objectWithoutProperties(_ref, _excluded$4);
7036
+
7037
+ return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread2({
7038
+ className: classnames__default['default']((_classnames = {}, _defineProperty(_classnames, 'frame', true), _defineProperty(_classnames, className || '', true), _classnames)),
7039
+ style: style
7040
+ }, props), /*#__PURE__*/React__default['default'].createElement("div", {
7041
+ className: 'framelt',
7042
+ style: _objectSpread2({
7043
+ transform: "translateY(".concat(direction == 'in' ? 0 : -100, "%)"),
7044
+ left: "".concat(direction == 'in' ? 0 : -1, "px)")
7045
+ }, frameStyle)
7046
+ }), /*#__PURE__*/React__default['default'].createElement("div", {
7047
+ className: 'framert',
7048
+ style: _objectSpread2({
7049
+ transform: "translateY(".concat(direction == 'in' ? 0 : -100, "%)"),
7050
+ right: "".concat(direction == 'in' ? 0 : -1, "px)")
7051
+ }, frameStyle)
7052
+ }), /*#__PURE__*/React__default['default'].createElement("div", {
7053
+ className: 'framelb',
7054
+ style: _objectSpread2({
7055
+ transform: "translateY(".concat(direction == 'in' ? 0 : 100, "%)"),
7056
+ right: "".concat(direction == 'in' ? 0 : -1, "px)")
7057
+ }, frameStyle)
7058
+ }), /*#__PURE__*/React__default['default'].createElement("div", {
7059
+ className: 'framerb',
7060
+ style: _objectSpread2({
7061
+ transform: "translateY(".concat(direction == 'in' ? 0 : 100, "%)"),
7062
+ left: "".concat(direction == 'in' ? 0 : -1, "px)")
7063
+ }, frameStyle)
7064
+ }), children);
6778
7065
  }
6779
7066
 
6780
- function toISOString$1() {
6781
- // for ISO strings we do not use the normal bubbling rules:
6782
- // * milliseconds bubble up until they become hours
6783
- // * days do not bubble at all
6784
- // * months bubble up until they become years
6785
- // This is because there is no context-free conversion between hours and days
6786
- // (think of clock changes)
6787
- // and also not between days and months (28-31 days per month)
6788
- if (!this.isValid()) {
6789
- return this.localeData().invalidDate();
6790
- }
7067
+ var _excluded$5 = ["request", "valueEnum", "onLoad", "children", "params"],
7068
+ _excluded2 = ["value", "label"],
7069
+ _excluded3 = ["children"];
7070
+
7071
+ var WSelect = function WSelect(props) {
7072
+ var request = props.request,
7073
+ valueEnum = props.valueEnum,
7074
+ onLoad = props.onLoad,
7075
+ children = props.children,
7076
+ params = props.params,
7077
+ extraProps = _objectWithoutProperties(props, _excluded$5);
7078
+
7079
+ var _useState = React.useState([]),
7080
+ _useState2 = _slicedToArray(_useState, 2),
7081
+ childrenNode = _useState2[0],
7082
+ setChildrenNode = _useState2[1];
7083
+
7084
+ var _useState3 = React.useState([]),
7085
+ _useState4 = _slicedToArray(_useState3, 2),
7086
+ valueEnumList = _useState4[0],
7087
+ setValueEnumList = _useState4[1];
6791
7088
 
6792
- var seconds = abs$1(this._milliseconds) / 1000,
6793
- days = abs$1(this._days),
6794
- months = abs$1(this._months),
6795
- minutes,
6796
- hours,
6797
- years,
6798
- s,
6799
- total = this.asSeconds(),
6800
- totalSign,
6801
- ymSign,
6802
- daysSign,
6803
- hmsSign;
7089
+ var _useState5 = React.useState(null),
7090
+ _useState6 = _slicedToArray(_useState5, 2),
7091
+ resList = _useState6[0],
7092
+ setResList = _useState6[1];
6804
7093
 
6805
- if (!total) {
6806
- // this is the same as C#'s (Noda) and python (isodate)...
6807
- // but not other JS (goog.date)
6808
- return 'P0D';
6809
- }
7094
+ React.useEffect(function () {
7095
+ var isUnmount = false;
6810
7096
 
6811
- // 3600 seconds -> 60 minutes -> 1 hour
6812
- minutes = absFloor(seconds / 60);
6813
- hours = absFloor(minutes / 60);
6814
- seconds %= 60;
6815
- minutes %= 60;
7097
+ _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
7098
+ var res, node;
7099
+ return regeneratorRuntime.wrap(function _callee$(_context) {
7100
+ while (1) {
7101
+ switch (_context.prev = _context.next) {
7102
+ case 0:
7103
+ if (!request) {
7104
+ _context.next = 10;
7105
+ break;
7106
+ }
6816
7107
 
6817
- // 12 months -> 1 year
6818
- years = absFloor(months / 12);
6819
- months %= 12;
7108
+ _context.next = 3;
7109
+ return request();
6820
7110
 
6821
- // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
6822
- s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
7111
+ case 3:
7112
+ res = _context.sent;
6823
7113
 
6824
- totalSign = total < 0 ? '-' : '';
6825
- ymSign = sign(this._months) !== sign(total) ? '-' : '';
6826
- daysSign = sign(this._days) !== sign(total) ? '-' : '';
6827
- hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
7114
+ if (!isUnmount) {
7115
+ _context.next = 6;
7116
+ break;
7117
+ }
6828
7118
 
6829
- return (
6830
- totalSign +
6831
- 'P' +
6832
- (years ? ymSign + years + 'Y' : '') +
6833
- (months ? ymSign + months + 'M' : '') +
6834
- (days ? daysSign + days + 'D' : '') +
6835
- (hours || minutes || seconds ? 'T' : '') +
6836
- (hours ? hmsSign + hours + 'H' : '') +
6837
- (minutes ? hmsSign + minutes + 'M' : '') +
6838
- (seconds ? hmsSign + s + 'S' : '')
6839
- );
6840
- }
7119
+ return _context.abrupt("return");
6841
7120
 
6842
- var proto$2 = Duration.prototype;
7121
+ case 6:
7122
+ setResList(res);
7123
+ onLoad && onLoad(res);
7124
+ node = res === null || res === void 0 ? void 0 : res.map(function (_ref2) {
7125
+ var value = _ref2.value,
7126
+ label = _ref2.label,
7127
+ extraProps = _objectWithoutProperties(_ref2, _excluded2);
6843
7128
 
6844
- proto$2.isValid = isValid$1;
6845
- proto$2.abs = abs;
6846
- proto$2.add = add$1;
6847
- proto$2.subtract = subtract$1;
6848
- proto$2.as = as;
6849
- proto$2.asMilliseconds = asMilliseconds;
6850
- proto$2.asSeconds = asSeconds;
6851
- proto$2.asMinutes = asMinutes;
6852
- proto$2.asHours = asHours;
6853
- proto$2.asDays = asDays;
6854
- proto$2.asWeeks = asWeeks;
6855
- proto$2.asMonths = asMonths;
6856
- proto$2.asQuarters = asQuarters;
6857
- proto$2.asYears = asYears;
6858
- proto$2.valueOf = valueOf$1;
6859
- proto$2._bubble = bubble;
6860
- proto$2.clone = clone$1;
6861
- proto$2.get = get$2;
6862
- proto$2.milliseconds = milliseconds;
6863
- proto$2.seconds = seconds;
6864
- proto$2.minutes = minutes;
6865
- proto$2.hours = hours;
6866
- proto$2.days = days;
6867
- proto$2.weeks = weeks;
6868
- proto$2.months = months;
6869
- proto$2.years = years;
6870
- proto$2.humanize = humanize;
6871
- proto$2.toISOString = toISOString$1;
6872
- proto$2.toString = toISOString$1;
6873
- proto$2.toJSON = toISOString$1;
6874
- proto$2.locale = locale;
6875
- proto$2.localeData = localeData;
7129
+ return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'].Option, _objectSpread2({
7130
+ key: value,
7131
+ value: value
7132
+ }, extraProps), label) || /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
7133
+ });
7134
+ setChildrenNode(node);
6876
7135
 
6877
- proto$2.toIsoString = deprecate(
6878
- 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
6879
- toISOString$1
6880
- );
6881
- proto$2.lang = lang;
7136
+ case 10:
7137
+ case "end":
7138
+ return _context.stop();
7139
+ }
7140
+ }
7141
+ }, _callee);
7142
+ }))();
6882
7143
 
6883
- // FORMATTING
7144
+ var valueEnumNode = [];
7145
+ var options = [];
6884
7146
 
6885
- addFormatToken('X', 0, 0, 'unix');
6886
- addFormatToken('x', 0, 0, 'valueOf');
7147
+ if (valueEnum) {
7148
+ for (var key in valueEnum) {
7149
+ var text = '';
6887
7150
 
6888
- // PARSING
7151
+ if (typeof valueEnum[key] === 'string') {
7152
+ text = valueEnum[key];
7153
+ } else {
7154
+ var _valueEnum$key;
6889
7155
 
6890
- addRegexToken('x', matchSigned);
6891
- addRegexToken('X', matchTimestamp);
6892
- addParseToken('X', function (input, array, config) {
6893
- config._d = new Date(parseFloat(input) * 1000);
6894
- });
6895
- addParseToken('x', function (input, array, config) {
6896
- config._d = new Date(toInt(input));
6897
- });
7156
+ text = (_valueEnum$key = valueEnum[key]) === null || _valueEnum$key === void 0 ? void 0 : _valueEnum$key.text;
7157
+ }
6898
7158
 
6899
- //! moment.js
7159
+ options.push({
7160
+ label: text,
7161
+ value: key
7162
+ });
7163
+ valueEnumNode.push( /*#__PURE__*/React__default['default'].createElement(_Select__default['default'].Option, {
7164
+ key: key,
7165
+ value: key
7166
+ }, text));
7167
+ }
7168
+ }
6900
7169
 
6901
- hooks.version = '2.29.1';
7170
+ onLoad && onLoad(options);
7171
+ setValueEnumList(valueEnumNode);
7172
+ return function () {
7173
+ isUnmount = true;
7174
+ };
7175
+ }, [JSON.stringify(params || {})]);
7176
+ return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _objectSpread2({
7177
+ showSearch: true,
7178
+ filterOption: function filterOption(input, option) {
7179
+ return option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
7180
+ }
7181
+ }, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
7182
+ };
6902
7183
 
6903
- setHookCallback(createLocal);
7184
+ WSelect.defaultProps = {};
6904
7185
 
6905
- hooks.fn = proto;
6906
- hooks.min = min;
6907
- hooks.max = max;
6908
- hooks.now = now;
6909
- hooks.utc = createUTC;
6910
- hooks.unix = createUnix;
6911
- hooks.months = listMonths;
6912
- hooks.isDate = isDate;
6913
- hooks.locale = getSetGlobalLocale;
6914
- hooks.invalid = createInvalid;
6915
- hooks.duration = createDuration;
6916
- hooks.isMoment = isMoment;
6917
- hooks.weekdays = listWeekdays;
6918
- hooks.parseZone = createInZone;
6919
- hooks.localeData = getLocale;
6920
- hooks.isDuration = isDuration;
6921
- hooks.monthsShort = listMonthsShort;
6922
- hooks.weekdaysMin = listWeekdaysMin;
6923
- hooks.defineLocale = defineLocale;
6924
- hooks.updateLocale = updateLocale;
6925
- hooks.locales = listLocales;
6926
- hooks.weekdaysShort = listWeekdaysShort;
6927
- hooks.normalizeUnits = normalizeUnits;
6928
- hooks.relativeTimeRounding = getSetRelativeTimeRounding;
6929
- hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
6930
- hooks.calendarFormat = getCalendarFormat;
6931
- hooks.prototype = proto;
7186
+ var Option = function Option(props) {
7187
+ var children = props.children,
7188
+ extraProps = _objectWithoutProperties(props, _excluded3);
6932
7189
 
6933
- // currently HTML5 input type only supports 24-hour formats
6934
- hooks.HTML5_FMT = {
6935
- DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
6936
- DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
6937
- DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
6938
- DATE: 'YYYY-MM-DD', // <input type="date" />
6939
- TIME: 'HH:mm', // <input type="time" />
6940
- TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
6941
- TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
6942
- WEEK: 'GGGG-[W]WW', // <input type="week" />
6943
- MONTH: 'YYYY-MM', // <input type="month" />
7190
+ return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'].Option, _objectSpread2({}, extraProps), children);
6944
7191
  };
6945
7192
 
6946
- var _excluded$4 = ["defaultValue", "format", "value", "onChange"],
7193
+ var Index$5 = WSelect;
7194
+ Index$5.Option = Option;
7195
+ var Select = /*#__PURE__*/React.memo(Index$5);
7196
+
7197
+ var _excluded$6 = ["defaultValue", "format", "value", "onChange"],
6947
7198
  _excluded2$1 = ["defaultValue", "value", "format", "showTime", "onChange"];
6948
7199
 
6949
7200
  var momentValue = function momentValue(value) {
@@ -6959,7 +7210,7 @@ var WDatePicker$1 = function WDatePicker(props) {
6959
7210
  format = props.format,
6960
7211
  value = props.value,
6961
7212
  _onChange = props.onChange,
6962
- extraProps = _objectWithoutProperties(props, _excluded$4);
7213
+ extraProps = _objectWithoutProperties(props, _excluded$6);
6963
7214
 
6964
7215
  return /*#__PURE__*/React__default['default'].createElement(_DatePicker__default['default'], _objectSpread2({
6965
7216
  defaultValue: momentValue(defaultValue),
@@ -7096,7 +7347,7 @@ var NumericInput = /*#__PURE__*/function (_React$Component) {
7096
7347
  return NumericInput;
7097
7348
  }(React__default['default'].Component);
7098
7349
 
7099
- var _excluded$5 = ["treeNodeLabelProp", "treeNodeValueProp", "treeNodeChildrenProp", "request", "onLoad", "params", "treeData"];
7350
+ var _excluded$7 = ["treeNodeLabelProp", "treeNodeValueProp", "treeNodeChildrenProp", "request", "onLoad", "params", "treeData"];
7100
7351
 
7101
7352
  var TreeSelect = function TreeSelect(_ref) {
7102
7353
  var _ref$treeNodeLabelPro = _ref.treeNodeLabelProp,
@@ -7109,7 +7360,7 @@ var TreeSelect = function TreeSelect(_ref) {
7109
7360
  onLoad = _ref.onLoad,
7110
7361
  params = _ref.params,
7111
7362
  treePropsData = _ref.treeData,
7112
- props = _objectWithoutProperties(_ref, _excluded$5);
7363
+ props = _objectWithoutProperties(_ref, _excluded$7);
7113
7364
 
7114
7365
  var renderTree = function renderTree(data) {
7115
7366
  return data === null || data === void 0 ? void 0 : data.map(function (item) {
@@ -7174,17 +7425,19 @@ var TreeSelect = function TreeSelect(_ref) {
7174
7425
  isUnmount = true;
7175
7426
  };
7176
7427
  }, [JSON.stringify(params)]);
7177
- return /*#__PURE__*/React__default['default'].createElement(_TreeSelect__default['default'], _objectSpread2({
7428
+ return /*#__PURE__*/React__default['default'].createElement(_TreeSelect__default['default'], _objectSpread2(_objectSpread2({
7178
7429
  showSearch: true,
7179
7430
  treeNodeFilterProp: "title",
7180
7431
  treeDefaultExpandAll: true
7181
- }, props), !props.children ? renderTree(treeData) : props.children);
7432
+ }, props), {}, {
7433
+ dropdownStyle: {}
7434
+ }), !props.children ? renderTree(treeData) : props.children);
7182
7435
  };
7183
7436
 
7184
7437
  var Index$7 = TreeSelect;
7185
7438
  Index$7.TreeNode = _TreeSelect__default['default'].TreeNode;
7186
7439
 
7187
- var _excluded$6 = ["request", "options", "onLoad", "value", "onChange", "params"];
7440
+ var _excluded$8 = ["request", "options", "onLoad", "value", "onChange", "params"];
7188
7441
 
7189
7442
  var WCascader = function WCascader(props) {
7190
7443
  var request = props.request,
@@ -7193,7 +7446,7 @@ var WCascader = function WCascader(props) {
7193
7446
  value = props.value,
7194
7447
  _onChange = props.onChange,
7195
7448
  params = props.params,
7196
- extraProps = _objectWithoutProperties(props, _excluded$6);
7449
+ extraProps = _objectWithoutProperties(props, _excluded$8);
7197
7450
 
7198
7451
  var _useState = React.useState(null),
7199
7452
  _useState2 = _slicedToArray(_useState, 2),
@@ -7260,7 +7513,7 @@ var WCascader = function WCascader(props) {
7260
7513
  }, extraProps));
7261
7514
  };
7262
7515
 
7263
- var _excluded$7 = ["columns", "extraColumns", "className", "style", "search", "disabled", "disabledHideInSearch", "disabledRuler", "onFormChange", "onSubmit", "onReset", "setForm", "deps"];
7516
+ var _excluded$9 = ["columns", "extraColumns", "className", "style", "search", "disabled", "disabledHideInSearch", "disabledRuler", "onFormChange", "onSubmit", "onReset", "setForm", "deps"];
7264
7517
  var RangePicker$2 = Index$6.RangePicker;
7265
7518
 
7266
7519
  var WForm = function WForm(props, ref) {
@@ -7277,7 +7530,7 @@ var WForm = function WForm(props, ref) {
7277
7530
  onReset = props.onReset,
7278
7531
  setForm = props.setForm,
7279
7532
  deps = props.deps,
7280
- extraProps = _objectWithoutProperties(props, _excluded$7);
7533
+ extraProps = _objectWithoutProperties(props, _excluded$9);
7281
7534
 
7282
7535
  var _Form$useForm = _Form__default['default'].useForm(),
7283
7536
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
@@ -8055,7 +8308,7 @@ var WForm = function WForm(props, ref) {
8055
8308
 
8056
8309
  var WForm$1 = /*#__PURE__*/React__default['default'].forwardRef(WForm);
8057
8310
 
8058
- var _excluded$8 = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
8311
+ var _excluded$a = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
8059
8312
 
8060
8313
  function Table(_ref) {
8061
8314
  var _formSearchRef$curren4, _classnames2, _columns$, _columns$2;
@@ -8087,7 +8340,7 @@ function Table(_ref) {
8087
8340
  frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
8088
8341
  formRef = _ref.formRef,
8089
8342
  none = _ref.none,
8090
- props = _objectWithoutProperties(_ref, _excluded$8);
8343
+ props = _objectWithoutProperties(_ref, _excluded$a);
8091
8344
 
8092
8345
  var _useState = React.useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
8093
8346
  _useState2 = _slicedToArray(_useState, 2),
@@ -8627,7 +8880,7 @@ Table.defaultProps = {
8627
8880
  };
8628
8881
  var index$1 = /*#__PURE__*/React.memo(Table);
8629
8882
 
8630
- var _excluded$9 = ["height", "width", "count", "style", "numberStyle"],
8883
+ var _excluded$b = ["height", "width", "count", "style", "numberStyle"],
8631
8884
  _excluded2$2 = ["count", "numberCount", "width", "height", "marginRight"];
8632
8885
 
8633
8886
  var Number = function Number(_ref) {
@@ -8637,7 +8890,7 @@ var Number = function Number(_ref) {
8637
8890
  count = _ref$count === void 0 ? 0 : _ref$count,
8638
8891
  style = _ref.style,
8639
8892
  numberStyle = _ref.numberStyle,
8640
- props = _objectWithoutProperties(_ref, _excluded$9);
8893
+ props = _objectWithoutProperties(_ref, _excluded$b);
8641
8894
 
8642
8895
  // 上次的值
8643
8896
  var _useState = React.useState(0),
@@ -8801,12 +9054,12 @@ var Index$8 = function Index(props) {
8801
9054
  }));
8802
9055
  };
8803
9056
 
8804
- var _excluded$a = ["duration"];
9057
+ var _excluded$c = ["duration"];
8805
9058
 
8806
9059
  var Index$9 = function Index(props) {
8807
9060
  var _props$duration = props.duration,
8808
9061
  duration = _props$duration === void 0 ? 2.75 : _props$duration,
8809
- extraProps = _objectWithoutProperties(props, _excluded$a);
9062
+ extraProps = _objectWithoutProperties(props, _excluded$c);
8810
9063
  return /*#__PURE__*/React__default['default'].createElement(CountUp__default['default'], _objectSpread2({
8811
9064
  duration: duration
8812
9065
  }, extraProps));
@@ -8814,7 +9067,7 @@ var Index$9 = function Index(props) {
8814
9067
 
8815
9068
  Index$9.defaultProps = {};
8816
9069
 
8817
- var _excluded$b = ["list", "render", "none", "partSize"];
9070
+ var _excluded$d = ["list", "render", "none", "partSize"];
8818
9071
 
8819
9072
  function AutoScroll(props) {
8820
9073
  var inner1 = React.useRef();
@@ -8899,7 +9152,7 @@ var Index$a = function Index(_ref) {
8899
9152
  none = _ref.none,
8900
9153
  _ref$partSize = _ref.partSize,
8901
9154
  partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
8902
- otherProps = _objectWithoutProperties(_ref, _excluded$b);
9155
+ otherProps = _objectWithoutProperties(_ref, _excluded$d);
8903
9156
 
8904
9157
  var _useState = React.useState([]),
8905
9158
  _useState2 = _slicedToArray(_useState, 2),
@@ -8982,7 +9235,7 @@ var Index$a = function Index(_ref) {
8982
9235
  }, none || '暂无数据');
8983
9236
  };
8984
9237
 
8985
- var _excluded$c = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem"];
9238
+ var _excluded$e = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem"];
8986
9239
 
8987
9240
  SwiperCore__default['default'].use([SwiperCore.Pagination, SwiperCore.Navigation, SwiperCore.Autoplay, SwiperCore.Virtual]);
8988
9241
 
@@ -8994,7 +9247,7 @@ var Index$b = function Index(props) {
8994
9247
  rowKey = props.rowKey,
8995
9248
  onSwiperChange = props.onSwiperChange,
8996
9249
  renderItem = props.renderItem,
8997
- extraProps = _objectWithoutProperties(props, _excluded$c);
9250
+ extraProps = _objectWithoutProperties(props, _excluded$e);
8998
9251
 
8999
9252
  var _useState = React.useState(null),
9000
9253
  _useState2 = _slicedToArray(_useState, 2),
@@ -9645,7 +9898,7 @@ function createBrowserHistory(props) {
9645
9898
  return history;
9646
9899
  }
9647
9900
 
9648
- var _excluded$d = ["routes", "className"];
9901
+ var _excluded$f = ["routes", "className"];
9649
9902
  var history = createBrowserHistory();
9650
9903
 
9651
9904
  function itemRender(route, params, routes, paths) {
@@ -9663,7 +9916,7 @@ function itemRender(route, params, routes, paths) {
9663
9916
  var Index$c = function Index(_ref) {
9664
9917
  var routes = _ref.routes,
9665
9918
  className = _ref.className,
9666
- props = _objectWithoutProperties(_ref, _excluded$d);
9919
+ props = _objectWithoutProperties(_ref, _excluded$f);
9667
9920
 
9668
9921
  return /*#__PURE__*/React__default['default'].createElement(_Breadcrumb__default['default'], _objectSpread2({
9669
9922
  className: className || 'default',
@@ -9673,7 +9926,7 @@ var Index$c = function Index(_ref) {
9673
9926
  }, props));
9674
9927
  };
9675
9928
 
9676
- var _excluded$e = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
9929
+ var _excluded$g = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
9677
9930
 
9678
9931
  var Index$d = function Index(_ref, ref) {
9679
9932
  var _classNames, _sliderTabs$component, _sliderTabs$tabs;
@@ -9684,7 +9937,7 @@ var Index$d = function Index(_ref, ref) {
9684
9937
  headerTail = _ref.headerTail,
9685
9938
  headerCenter = _ref.headerCenter,
9686
9939
  sliderTabs = _ref.sliderTabs,
9687
- props = _objectWithoutProperties(_ref, _excluded$e);
9940
+ props = _objectWithoutProperties(_ref, _excluded$g);
9688
9941
 
9689
9942
  React.useImperativeHandle(ref, function () {
9690
9943
  return {
@@ -9928,7 +10181,7 @@ function DialogModel(props, ref) {
9928
10181
 
9929
10182
  var Dialog = /*#__PURE__*/React__default['default'].forwardRef(DialogModel);
9930
10183
 
9931
- var _excluded$f = ["visible", "width", "closeCb", "onClose", "className", "style"],
10184
+ var _excluded$h = ["visible", "width", "closeCb", "onClose", "className", "style"],
9932
10185
  _excluded2$3 = ["visible"];
9933
10186
 
9934
10187
  var Modal = /*#__PURE__*/function (_React$PureComponent) {
@@ -10046,7 +10299,7 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
10046
10299
  onClose = _this$props4.onClose,
10047
10300
  className = _this$props4.className,
10048
10301
  style = _this$props4.style,
10049
- other = _objectWithoutProperties(_this$props4, _excluded$f);
10302
+ other = _objectWithoutProperties(_this$props4, _excluded$h);
10050
10303
 
10051
10304
  return /*#__PURE__*/React__default['default'].createElement(Dialog, _objectSpread2({
10052
10305
  ref: this.containerRef,
@@ -10229,7 +10482,7 @@ function DialogModel$1(props) {
10229
10482
  return renderChildren;
10230
10483
  }
10231
10484
 
10232
- var _excluded$g = ["visible"];
10485
+ var _excluded$i = ["visible"];
10233
10486
 
10234
10487
  var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
10235
10488
  _inherits(Modal, _React$PureComponent);
@@ -10370,7 +10623,7 @@ Modal$1.show = function (config) {
10370
10623
  manager.setShow = setShow;
10371
10624
 
10372
10625
  var visible = props.visible,
10373
- trueProps = _objectWithoutProperties(props, _excluded$g);
10626
+ trueProps = _objectWithoutProperties(props, _excluded$i);
10374
10627
 
10375
10628
  React.useEffect(function () {
10376
10629
  manager.mounted = true;
@@ -10570,7 +10823,7 @@ function DragBox(_ref) {
10570
10823
  }, children)) : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
10571
10824
  }
10572
10825
 
10573
- var _excluded$h = ["columns", "extraColumns", "search", "visible", "setVisible", "modalFormOpend", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel", "modalHeaderSolt", "modalFooterSolt", "formProps"];
10826
+ var _excluded$j = ["columns", "extraColumns", "search", "visible", "setVisible", "modalFormOpend", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel", "modalHeaderSolt", "modalFooterSolt", "formProps"];
10574
10827
 
10575
10828
  var ModalForm = function ModalForm(props, ref) {
10576
10829
  var columns = props.columns,
@@ -10590,7 +10843,7 @@ var ModalForm = function ModalForm(props, ref) {
10590
10843
  modalHeaderSolt = props.modalHeaderSolt,
10591
10844
  modalFooterSolt = props.modalFooterSolt,
10592
10845
  formProps = props.formProps,
10593
- extraProps = _objectWithoutProperties(props, _excluded$h);
10846
+ extraProps = _objectWithoutProperties(props, _excluded$j);
10594
10847
 
10595
10848
  var formRef = React.useRef(null);
10596
10849
 
@@ -10736,7 +10989,7 @@ var ModalForm = function ModalForm(props, ref) {
10736
10989
 
10737
10990
  var ModalForm$1 = /*#__PURE__*/React__default['default'].forwardRef(ModalForm);
10738
10991
 
10739
- var _excluded$i = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "fliterAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "searchFormConfig", "optionColumnConfig", "pagination", "noBordered"];
10992
+ var _excluded$k = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "fliterAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "searchFormConfig", "optionColumnConfig", "pagination", "noBordered"];
10740
10993
 
10741
10994
  var TabelCard = function TabelCard(props, ref) {
10742
10995
  var columns = props.columns,
@@ -10755,7 +11008,7 @@ var TabelCard = function TabelCard(props, ref) {
10755
11008
  optionColumnConfig = props.optionColumnConfig,
10756
11009
  pagination = props.pagination,
10757
11010
  noBordered = props.noBordered,
10758
- extraProps = _objectWithoutProperties(props, _excluded$i);
11011
+ extraProps = _objectWithoutProperties(props, _excluded$k);
10759
11012
 
10760
11013
  var actionRef = React.useRef();
10761
11014
  var modalFormRef = React.useRef(null);
@@ -10967,7 +11220,7 @@ var TabelCard = function TabelCard(props, ref) {
10967
11220
  }, /*#__PURE__*/React__default['default'].createElement("a", {
10968
11221
  key: btn.key,
10969
11222
  onClick: function () {
10970
- var _onClick = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
11223
+ var _onClick = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(e) {
10971
11224
  var _actionHandler$item$t;
10972
11225
 
10973
11226
  var info;
@@ -10975,23 +11228,24 @@ var TabelCard = function TabelCard(props, ref) {
10975
11228
  while (1) {
10976
11229
  switch (_context5.prev = _context5.next) {
10977
11230
  case 0:
11231
+ e.stopPropagation();
10978
11232
  info = null;
10979
11233
 
10980
11234
  if (!item.fetchInfo) {
10981
- _context5.next = 5;
11235
+ _context5.next = 6;
10982
11236
  break;
10983
11237
  }
10984
11238
 
10985
- _context5.next = 4;
11239
+ _context5.next = 5;
10986
11240
  return item.fetchInfo(record);
10987
11241
 
10988
- case 4:
11242
+ case 5:
10989
11243
  info = _context5.sent;
10990
11244
 
10991
- case 5:
11245
+ case 6:
10992
11246
  (_actionHandler$item$t = actionHandler[item.type]) === null || _actionHandler$item$t === void 0 ? void 0 : _actionHandler$item$t.call(actionHandler, item, info || record, index);
10993
11247
 
10994
- case 6:
11248
+ case 7:
10995
11249
  case "end":
10996
11250
  return _context5.stop();
10997
11251
  }
@@ -10999,7 +11253,7 @@ var TabelCard = function TabelCard(props, ref) {
10999
11253
  }, _callee5);
11000
11254
  }));
11001
11255
 
11002
- function onClick() {
11256
+ function onClick(_x3) {
11003
11257
  return _onClick.apply(this, arguments);
11004
11258
  }
11005
11259
 
@@ -11024,7 +11278,7 @@ var TabelCard = function TabelCard(props, ref) {
11024
11278
  }, /*#__PURE__*/React__default['default'].createElement("a", {
11025
11279
  key: btn.key,
11026
11280
  onClick: function () {
11027
- var _onClick2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
11281
+ var _onClick2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(e) {
11028
11282
  var _actionHandler$item$t3;
11029
11283
 
11030
11284
  var info;
@@ -11032,23 +11286,24 @@ var TabelCard = function TabelCard(props, ref) {
11032
11286
  while (1) {
11033
11287
  switch (_context6.prev = _context6.next) {
11034
11288
  case 0:
11289
+ e.stopPropagation();
11035
11290
  info = null;
11036
11291
 
11037
11292
  if (!item.fetchInfo) {
11038
- _context6.next = 5;
11293
+ _context6.next = 6;
11039
11294
  break;
11040
11295
  }
11041
11296
 
11042
- _context6.next = 4;
11297
+ _context6.next = 5;
11043
11298
  return item.fetchInfo(record);
11044
11299
 
11045
- case 4:
11300
+ case 5:
11046
11301
  info = _context6.sent;
11047
11302
 
11048
- case 5:
11303
+ case 6:
11049
11304
  (_actionHandler$item$t3 = actionHandler[item.type]) === null || _actionHandler$item$t3 === void 0 ? void 0 : _actionHandler$item$t3.call(actionHandler, item, info || record, index);
11050
11305
 
11051
- case 6:
11306
+ case 7:
11052
11307
  case "end":
11053
11308
  return _context6.stop();
11054
11309
  }
@@ -11056,7 +11311,7 @@ var TabelCard = function TabelCard(props, ref) {
11056
11311
  }, _callee6);
11057
11312
  }));
11058
11313
 
11059
- function onClick() {
11314
+ function onClick(_x4) {
11060
11315
  return _onClick2.apply(this, arguments);
11061
11316
  }
11062
11317
 
@@ -11086,10 +11341,11 @@ var TabelCard = function TabelCard(props, ref) {
11086
11341
  key: i
11087
11342
  }, /*#__PURE__*/React__default['default'].createElement("a", {
11088
11343
  key: btn.key,
11089
- onClick: function onClick() {
11344
+ onClick: function onClick(e) {
11090
11345
  var _actionHandler$item$t5;
11091
11346
 
11092
- return (_actionHandler$item$t5 = actionHandler[item.type]) === null || _actionHandler$item$t5 === void 0 ? void 0 : _actionHandler$item$t5.call(actionHandler, item, record, index);
11347
+ e.stopPropagation();
11348
+ (_actionHandler$item$t5 = actionHandler[item.type]) === null || _actionHandler$item$t5 === void 0 ? void 0 : _actionHandler$item$t5.call(actionHandler, item, record, index);
11093
11349
  }
11094
11350
  }, btn.icon, " ", btn.title));
11095
11351
  }
@@ -11141,7 +11397,7 @@ var TabelCard = function TabelCard(props, ref) {
11141
11397
  }, _callee7);
11142
11398
  }));
11143
11399
 
11144
- function modalOnOk(_x3, _x4) {
11400
+ function modalOnOk(_x5, _x6) {
11145
11401
  return _modalOnOk3.apply(this, arguments);
11146
11402
  }
11147
11403
 
@@ -11223,7 +11479,7 @@ var TabelCard = function TabelCard(props, ref) {
11223
11479
  }, _callee8);
11224
11480
  }));
11225
11481
 
11226
- function submitMethod(_x5, _x6) {
11482
+ function submitMethod(_x7, _x8) {
11227
11483
  return _submitMethod.apply(this, arguments);
11228
11484
  }
11229
11485
 
@@ -11313,7 +11569,7 @@ var TabelCard = function TabelCard(props, ref) {
11313
11569
  }, _callee9);
11314
11570
  }));
11315
11571
 
11316
- function request(_x7) {
11572
+ function request(_x9) {
11317
11573
  return _request2.apply(this, arguments);
11318
11574
  }
11319
11575
 
@@ -12168,7 +12424,7 @@ function VideoPlayer(_ref, ref) {
12168
12424
 
12169
12425
  var index$5 = /*#__PURE__*/React.forwardRef(VideoPlayer);
12170
12426
 
12171
- var _excluded$j = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "visible", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
12427
+ var _excluded$l = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "visible", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
12172
12428
 
12173
12429
  var DEFAULT_PLAY_BACK_RATE = [0.5, 0.75, 1, 1.5, 2]; // 默认记忆提示文字展示时长(s)
12174
12430
 
@@ -12199,7 +12455,7 @@ var index$6 = (function (_ref) {
12199
12455
  enableMemory = _ref$enableMemory === void 0 ? false : _ref$enableMemory,
12200
12456
  _ref$lastPlayTimeHide = _ref.lastPlayTimeHideDelay,
12201
12457
  lastPlayTimeHideDelay = _ref$lastPlayTimeHide === void 0 ? DEFAULT_LAST_PLAY_TIME_DELAY : _ref$lastPlayTimeHide,
12202
- props = _objectWithoutProperties(_ref, _excluded$j);
12458
+ props = _objectWithoutProperties(_ref, _excluded$l);
12203
12459
 
12204
12460
  var player = React.useRef();
12205
12461
  var currentPlayerIndex = React.useRef(0); // 内置的 index 状态管理
@@ -13177,6 +13433,18 @@ function WaterLevelCharts(config) {
13177
13433
  });
13178
13434
  }
13179
13435
 
13436
+ /*
13437
+ * @Author: lijin
13438
+ * @Date: 2021-09-09 11:02:54
13439
+ * @LastEditTime: 2022-09-06 15:31:12
13440
+ * @LastEditors: lijin
13441
+ * @Description:
13442
+ * @FilePath: \wargerm-components\src\index.ts
13443
+ * 可以输入预定的版权声明、个性签名、空行等
13444
+ */
13445
+ var COLOR_ATTR_NAME = 'data-prefers-color';
13446
+ document.documentElement.setAttribute(COLOR_ATTR_NAME, 'nt');
13447
+
13180
13448
  exports.AutoScroll = Index$a;
13181
13449
  exports.Breadcrumb = Index$c;
13182
13450
  exports.Button = WButton;