@x-edu/live-player 0.0.6 → 0.0.7
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.
|
@@ -8384,7 +8384,7 @@ module.exports = __webpack_require__(5666);
|
|
|
8384
8384
|
/***/ 3006:
|
|
8385
8385
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
8386
8386
|
|
|
8387
|
-
var _regeneratorRuntime = __webpack_require__(
|
|
8387
|
+
var _regeneratorRuntime = __webpack_require__(7757);
|
|
8388
8388
|
|
|
8389
8389
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
8390
8390
|
|
|
@@ -9500,6 +9500,14 @@ module.exports = __webpack_require__.p + "img/reload.3cf8ef22.png?x-bce-process=
|
|
|
9500
9500
|
|
|
9501
9501
|
/***/ }),
|
|
9502
9502
|
|
|
9503
|
+
/***/ 7943:
|
|
9504
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9505
|
+
|
|
9506
|
+
"use strict";
|
|
9507
|
+
module.exports = __webpack_require__.p + "img/empty.f5848cfc.png";
|
|
9508
|
+
|
|
9509
|
+
/***/ }),
|
|
9510
|
+
|
|
9503
9511
|
/***/ 6996:
|
|
9504
9512
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9505
9513
|
|
|
@@ -12572,7 +12580,6 @@ var index_module_update = injectStylesIntoStyleTag_default()(index_module/* defa
|
|
|
12572
12580
|
|
|
12573
12581
|
|
|
12574
12582
|
|
|
12575
|
-
var emptyImg = '@/component/Empty/img/empty.png';
|
|
12576
12583
|
function Empty_Empty(_ref) {
|
|
12577
12584
|
var _ref$hideBack = _ref.hideBack,
|
|
12578
12585
|
hideBack = _ref$hideBack === void 0 ? false : _ref$hideBack,
|
|
@@ -12589,7 +12596,7 @@ function Empty_Empty(_ref) {
|
|
|
12589
12596
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
12590
12597
|
className: classnames_default()(Empty_index_module["empty-wrap"], className)
|
|
12591
12598
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
12592
|
-
src:
|
|
12599
|
+
src: __webpack_require__(7943),
|
|
12593
12600
|
alt: ""
|
|
12594
12601
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("p", null, tip), description, !hideBack && (buttonRender || /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("a", {
|
|
12595
12602
|
className: Empty_index_module["go-other"],
|
|
@@ -12602,9 +12609,6 @@ var axios = __webpack_require__(9669);
|
|
|
12602
12609
|
var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
|
|
12603
12610
|
// EXTERNAL MODULE: ./src/config/env/index.js
|
|
12604
12611
|
var env = __webpack_require__(6032);
|
|
12605
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
12606
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
12607
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
12608
12612
|
// EXTERNAL MODULE: ./node_modules/query-string/index.js
|
|
12609
12613
|
var query_string = __webpack_require__(7563);
|
|
12610
12614
|
;// CONCATENATED MODULE: ./src/util/type.js
|
|
@@ -13119,10 +13123,10 @@ function rawAPI(params) {
|
|
|
13119
13123
|
function generateCommonAPI(params) {
|
|
13120
13124
|
var api = rawAPI(helper_objectSpread({}, params));
|
|
13121
13125
|
api.interceptors.request.use( /*#__PURE__*/function () {
|
|
13122
|
-
var _ref = helper_asyncToGenerator( /*#__PURE__*/
|
|
13126
|
+
var _ref = helper_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(c) {
|
|
13123
13127
|
var _c$params$v;
|
|
13124
13128
|
|
|
13125
|
-
return
|
|
13129
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
13126
13130
|
while (1) {
|
|
13127
13131
|
switch (_context.prev = _context.next) {
|
|
13128
13132
|
case 0:
|
|
@@ -13156,9 +13160,9 @@ function generateCommonAPIWithUC(params) {
|
|
|
13156
13160
|
var throwError = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
13157
13161
|
var api = rawAPI(helper_objectSpread({}, params));
|
|
13158
13162
|
api.interceptors.request.use( /*#__PURE__*/function () {
|
|
13159
|
-
var _ref2 = helper_asyncToGenerator( /*#__PURE__*/
|
|
13163
|
+
var _ref2 = helper_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(c) {
|
|
13160
13164
|
var Authorization;
|
|
13161
|
-
return
|
|
13165
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
13162
13166
|
while (1) {
|
|
13163
13167
|
switch (_context2.prev = _context2.next) {
|
|
13164
13168
|
case 0:
|
|
@@ -15679,9 +15683,9 @@ function isSourceReady(_x) {
|
|
|
15679
15683
|
}
|
|
15680
15684
|
|
|
15681
15685
|
function _isSourceReady() {
|
|
15682
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
15686
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(liveInfo) {
|
|
15683
15687
|
var newLiveInfo;
|
|
15684
|
-
return
|
|
15688
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
15685
15689
|
while (1) {
|
|
15686
15690
|
switch (_context.prev = _context.next) {
|
|
15687
15691
|
case 0:
|
|
@@ -16378,8 +16382,8 @@ function AliPlayer(_ref) {
|
|
|
16378
16382
|
var aliPlayer;
|
|
16379
16383
|
|
|
16380
16384
|
var init = /*#__PURE__*/function () {
|
|
16381
|
-
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/
|
|
16382
|
-
return
|
|
16385
|
+
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
16386
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
16383
16387
|
while (1) {
|
|
16384
16388
|
switch (_context.prev = _context.next) {
|
|
16385
16389
|
case 0:
|
|
@@ -16504,39 +16508,6 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
16504
16508
|
// style dependencies
|
|
16505
16509
|
|
|
16506
16510
|
|
|
16507
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
16508
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
16509
|
-
if (key in obj) {
|
|
16510
|
-
Object.defineProperty(obj, key, {
|
|
16511
|
-
value: value,
|
|
16512
|
-
enumerable: true,
|
|
16513
|
-
configurable: true,
|
|
16514
|
-
writable: true
|
|
16515
|
-
});
|
|
16516
|
-
} else {
|
|
16517
|
-
obj[key] = value;
|
|
16518
|
-
}
|
|
16519
|
-
|
|
16520
|
-
return obj;
|
|
16521
|
-
}
|
|
16522
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
16523
|
-
function esm_extends_extends() {
|
|
16524
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
16525
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
16526
|
-
var source = arguments[i];
|
|
16527
|
-
|
|
16528
|
-
for (var key in source) {
|
|
16529
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
16530
|
-
target[key] = source[key];
|
|
16531
|
-
}
|
|
16532
|
-
}
|
|
16533
|
-
}
|
|
16534
|
-
|
|
16535
|
-
return target;
|
|
16536
|
-
};
|
|
16537
|
-
|
|
16538
|
-
return esm_extends_extends.apply(this, arguments);
|
|
16539
|
-
}
|
|
16540
16511
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
16541
16512
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
16542
16513
|
if (Array.isArray(arr)) return arr;
|
|
@@ -16571,26 +16542,6 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
16571
16542
|
|
|
16572
16543
|
return _arr;
|
|
16573
16544
|
}
|
|
16574
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
16575
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
16576
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
16577
|
-
|
|
16578
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
16579
|
-
arr2[i] = arr[i];
|
|
16580
|
-
}
|
|
16581
|
-
|
|
16582
|
-
return arr2;
|
|
16583
|
-
}
|
|
16584
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
16585
|
-
|
|
16586
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
16587
|
-
if (!o) return;
|
|
16588
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
16589
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
16590
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
16591
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
16592
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
16593
|
-
}
|
|
16594
16545
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
16595
16546
|
function nonIterableRest_nonIterableRest() {
|
|
16596
16547
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -16601,7 +16552,7 @@ function nonIterableRest_nonIterableRest() {
|
|
|
16601
16552
|
|
|
16602
16553
|
|
|
16603
16554
|
function slicedToArray_slicedToArray(arr, i) {
|
|
16604
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
16555
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
16605
16556
|
}
|
|
16606
16557
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
16607
16558
|
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
@@ -16951,6 +16902,16 @@ var cacheStyle = {};
|
|
|
16951
16902
|
}
|
|
16952
16903
|
}
|
|
16953
16904
|
});
|
|
16905
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
16906
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
16907
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
16908
|
+
|
|
16909
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
16910
|
+
arr2[i] = arr[i];
|
|
16911
|
+
}
|
|
16912
|
+
|
|
16913
|
+
return arr2;
|
|
16914
|
+
}
|
|
16954
16915
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
16955
16916
|
|
|
16956
16917
|
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
@@ -16960,6 +16921,16 @@ function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
|
16960
16921
|
function iterableToArray_iterableToArray(iter) {
|
|
16961
16922
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
16962
16923
|
}
|
|
16924
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
16925
|
+
|
|
16926
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
16927
|
+
if (!o) return;
|
|
16928
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
16929
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
16930
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
16931
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
16932
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
16933
|
+
}
|
|
16963
16934
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
16964
16935
|
function nonIterableSpread_nonIterableSpread() {
|
|
16965
16936
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -17362,6 +17333,39 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
17362
17333
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
17363
17334
|
|
|
17364
17335
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
17336
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
17337
|
+
function esm_extends_extends() {
|
|
17338
|
+
esm_extends_extends = Object.assign || function (target) {
|
|
17339
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
17340
|
+
var source = arguments[i];
|
|
17341
|
+
|
|
17342
|
+
for (var key in source) {
|
|
17343
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17344
|
+
target[key] = source[key];
|
|
17345
|
+
}
|
|
17346
|
+
}
|
|
17347
|
+
}
|
|
17348
|
+
|
|
17349
|
+
return target;
|
|
17350
|
+
};
|
|
17351
|
+
|
|
17352
|
+
return esm_extends_extends.apply(this, arguments);
|
|
17353
|
+
}
|
|
17354
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
17355
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
17356
|
+
if (key in obj) {
|
|
17357
|
+
Object.defineProperty(obj, key, {
|
|
17358
|
+
value: value,
|
|
17359
|
+
enumerable: true,
|
|
17360
|
+
configurable: true,
|
|
17361
|
+
writable: true
|
|
17362
|
+
});
|
|
17363
|
+
} else {
|
|
17364
|
+
obj[key] = value;
|
|
17365
|
+
}
|
|
17366
|
+
|
|
17367
|
+
return obj;
|
|
17368
|
+
}
|
|
17365
17369
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
17366
17370
|
|
|
17367
17371
|
|
|
@@ -17402,6 +17406,52 @@ function objectSpread2_objectSpread2(target) {
|
|
|
17402
17406
|
|
|
17403
17407
|
return target;
|
|
17404
17408
|
}
|
|
17409
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
17410
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
17411
|
+
if (Array.isArray(arr)) return arr;
|
|
17412
|
+
}
|
|
17413
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
17414
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
17415
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
17416
|
+
|
|
17417
|
+
if (_i == null) return;
|
|
17418
|
+
var _arr = [];
|
|
17419
|
+
var _n = true;
|
|
17420
|
+
var _d = false;
|
|
17421
|
+
|
|
17422
|
+
var _s, _e;
|
|
17423
|
+
|
|
17424
|
+
try {
|
|
17425
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
17426
|
+
_arr.push(_s.value);
|
|
17427
|
+
|
|
17428
|
+
if (i && _arr.length === i) break;
|
|
17429
|
+
}
|
|
17430
|
+
} catch (err) {
|
|
17431
|
+
_d = true;
|
|
17432
|
+
_e = err;
|
|
17433
|
+
} finally {
|
|
17434
|
+
try {
|
|
17435
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
17436
|
+
} finally {
|
|
17437
|
+
if (_d) throw _e;
|
|
17438
|
+
}
|
|
17439
|
+
}
|
|
17440
|
+
|
|
17441
|
+
return _arr;
|
|
17442
|
+
}
|
|
17443
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
17444
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
17445
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17446
|
+
}
|
|
17447
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
17448
|
+
|
|
17449
|
+
|
|
17450
|
+
|
|
17451
|
+
|
|
17452
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
17453
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
17454
|
+
}
|
|
17405
17455
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
17406
17456
|
/**
|
|
17407
17457
|
* @ignore
|
|
@@ -18068,7 +18118,7 @@ function pickAttrs(props) {
|
|
|
18068
18118
|
aria: true
|
|
18069
18119
|
};
|
|
18070
18120
|
} else {
|
|
18071
|
-
mergedConfig =
|
|
18121
|
+
mergedConfig = _objectSpread2({}, ariaOnly);
|
|
18072
18122
|
}
|
|
18073
18123
|
|
|
18074
18124
|
var attrs = {};
|
|
@@ -18101,7 +18151,7 @@ var react_is = __webpack_require__(9864);
|
|
|
18101
18151
|
function fillRef(ref, node) {
|
|
18102
18152
|
if (typeof ref === 'function') {
|
|
18103
18153
|
ref(node);
|
|
18104
|
-
} else if (
|
|
18154
|
+
} else if (typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
18105
18155
|
ref.current = node;
|
|
18106
18156
|
}
|
|
18107
18157
|
}
|
|
@@ -18211,7 +18261,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
18211
18261
|
function getTransitionName(transitionName, transitionType) {
|
|
18212
18262
|
if (!transitionName) return null;
|
|
18213
18263
|
|
|
18214
|
-
if (
|
|
18264
|
+
if (typeof_typeof(transitionName) === 'object') {
|
|
18215
18265
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
18216
18266
|
return match[1].toUpperCase();
|
|
18217
18267
|
});
|
|
@@ -18504,13 +18554,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
18504
18554
|
|
|
18505
18555
|
switch (status) {
|
|
18506
18556
|
case 'appear':
|
|
18507
|
-
return _ref2 = {},
|
|
18557
|
+
return _ref2 = {}, _defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), _defineProperty(_ref2, STEP_START, onAppearStart), _defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
18508
18558
|
|
|
18509
18559
|
case 'enter':
|
|
18510
|
-
return _ref3 = {},
|
|
18560
|
+
return _ref3 = {}, _defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), _defineProperty(_ref3, STEP_START, onEnterStart), _defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
18511
18561
|
|
|
18512
18562
|
case 'leave':
|
|
18513
|
-
return _ref4 = {},
|
|
18563
|
+
return _ref4 = {}, _defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), _defineProperty(_ref4, STEP_START, onLeaveStart), _defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
18514
18564
|
|
|
18515
18565
|
default:
|
|
18516
18566
|
return {};
|
|
@@ -18618,7 +18668,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
18618
18668
|
var mergedStyle = style;
|
|
18619
18669
|
|
|
18620
18670
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
18621
|
-
mergedStyle =
|
|
18671
|
+
mergedStyle = _objectSpread2({
|
|
18622
18672
|
transition: 'none'
|
|
18623
18673
|
}, mergedStyle);
|
|
18624
18674
|
}
|
|
@@ -18633,17 +18683,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
18633
18683
|
|
|
18634
18684
|
|
|
18635
18685
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
18636
|
-
|
|
18686
|
+
_inherits(DomWrapper, _React$Component);
|
|
18637
18687
|
|
|
18638
|
-
var _super =
|
|
18688
|
+
var _super = _createSuper(DomWrapper);
|
|
18639
18689
|
|
|
18640
18690
|
function DomWrapper() {
|
|
18641
|
-
|
|
18691
|
+
_classCallCheck(this, DomWrapper);
|
|
18642
18692
|
|
|
18643
18693
|
return _super.apply(this, arguments);
|
|
18644
18694
|
}
|
|
18645
18695
|
|
|
18646
|
-
|
|
18696
|
+
_createClass(DomWrapper, [{
|
|
18647
18697
|
key: "render",
|
|
18648
18698
|
value: function render() {
|
|
18649
18699
|
return this.props.children;
|
|
@@ -18679,7 +18729,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
18679
18729
|
function genCSSMotion(config) {
|
|
18680
18730
|
var transitionSupport = config;
|
|
18681
18731
|
|
|
18682
|
-
if (
|
|
18732
|
+
if (typeof_typeof(config) === 'object') {
|
|
18683
18733
|
transitionSupport = config.transitionSupport;
|
|
18684
18734
|
}
|
|
18685
18735
|
|
|
@@ -18737,7 +18787,7 @@ function genCSSMotion(config) {
|
|
|
18737
18787
|
|
|
18738
18788
|
var motionChildren;
|
|
18739
18789
|
|
|
18740
|
-
var mergedProps =
|
|
18790
|
+
var mergedProps = _objectSpread2(_objectSpread2({}, eventProps), {}, {
|
|
18741
18791
|
visible: visible
|
|
18742
18792
|
});
|
|
18743
18793
|
|
|
@@ -18747,13 +18797,13 @@ function genCSSMotion(config) {
|
|
|
18747
18797
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
18748
18798
|
// Stable children
|
|
18749
18799
|
if (mergedVisible) {
|
|
18750
|
-
motionChildren = children(
|
|
18800
|
+
motionChildren = children(_objectSpread2({}, mergedProps), setNodeRef);
|
|
18751
18801
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
18752
|
-
motionChildren = children(
|
|
18802
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
18753
18803
|
className: leavedClassName
|
|
18754
18804
|
}), setNodeRef);
|
|
18755
18805
|
} else if (forceRender) {
|
|
18756
|
-
motionChildren = children(
|
|
18806
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
18757
18807
|
style: {
|
|
18758
18808
|
display: 'none'
|
|
18759
18809
|
}
|
|
@@ -18775,8 +18825,8 @@ function genCSSMotion(config) {
|
|
|
18775
18825
|
statusSuffix = 'start';
|
|
18776
18826
|
}
|
|
18777
18827
|
|
|
18778
|
-
motionChildren = children(
|
|
18779
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
18828
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
18829
|
+
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {}, _defineProperty(_classNames, getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix)), statusSuffix), _defineProperty(_classNames, motionName, typeof motionName === 'string'), _classNames)),
|
|
18780
18830
|
style: statusStyle
|
|
18781
18831
|
}), setNodeRef);
|
|
18782
18832
|
}
|
|
@@ -18789,41 +18839,6 @@ function genCSSMotion(config) {
|
|
|
18789
18839
|
return CSSMotion;
|
|
18790
18840
|
}
|
|
18791
18841
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
18792
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
18793
|
-
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
18794
|
-
if (source == null) return {};
|
|
18795
|
-
var target = {};
|
|
18796
|
-
var sourceKeys = Object.keys(source);
|
|
18797
|
-
var key, i;
|
|
18798
|
-
|
|
18799
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
18800
|
-
key = sourceKeys[i];
|
|
18801
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
18802
|
-
target[key] = source[key];
|
|
18803
|
-
}
|
|
18804
|
-
|
|
18805
|
-
return target;
|
|
18806
|
-
}
|
|
18807
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
18808
|
-
|
|
18809
|
-
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
18810
|
-
if (source == null) return {};
|
|
18811
|
-
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
18812
|
-
var key, i;
|
|
18813
|
-
|
|
18814
|
-
if (Object.getOwnPropertySymbols) {
|
|
18815
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
18816
|
-
|
|
18817
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
18818
|
-
key = sourceSymbolKeys[i];
|
|
18819
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
18820
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
18821
|
-
target[key] = source[key];
|
|
18822
|
-
}
|
|
18823
|
-
}
|
|
18824
|
-
|
|
18825
|
-
return target;
|
|
18826
|
-
}
|
|
18827
18842
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
18828
18843
|
|
|
18829
18844
|
|
|
@@ -18834,7 +18849,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
18834
18849
|
function wrapKeyToObject(key) {
|
|
18835
18850
|
var keyObj;
|
|
18836
18851
|
|
|
18837
|
-
if (key &&
|
|
18852
|
+
if (key && typeof_typeof(key) === 'object' && 'key' in key) {
|
|
18838
18853
|
keyObj = key;
|
|
18839
18854
|
} else {
|
|
18840
18855
|
keyObj = {
|
|
@@ -18842,7 +18857,7 @@ function wrapKeyToObject(key) {
|
|
|
18842
18857
|
};
|
|
18843
18858
|
}
|
|
18844
18859
|
|
|
18845
|
-
return
|
|
18860
|
+
return _objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
18846
18861
|
key: String(keyObj.key)
|
|
18847
18862
|
});
|
|
18848
18863
|
}
|
|
@@ -18869,14 +18884,14 @@ function diffKeys() {
|
|
|
18869
18884
|
// New added keys should add before current key
|
|
18870
18885
|
if (currentIndex < i) {
|
|
18871
18886
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
18872
|
-
return
|
|
18887
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
18873
18888
|
status: STATUS_ADD
|
|
18874
18889
|
});
|
|
18875
18890
|
}));
|
|
18876
18891
|
currentIndex = i;
|
|
18877
18892
|
}
|
|
18878
18893
|
|
|
18879
|
-
list.push(
|
|
18894
|
+
list.push(_objectSpread2(_objectSpread2({}, currentKeyObj), {}, {
|
|
18880
18895
|
status: STATUS_KEEP
|
|
18881
18896
|
}));
|
|
18882
18897
|
currentIndex += 1;
|
|
@@ -18887,7 +18902,7 @@ function diffKeys() {
|
|
|
18887
18902
|
|
|
18888
18903
|
|
|
18889
18904
|
if (!hit) {
|
|
18890
|
-
list.push(
|
|
18905
|
+
list.push(_objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
18891
18906
|
status: STATUS_REMOVE
|
|
18892
18907
|
}));
|
|
18893
18908
|
}
|
|
@@ -18895,7 +18910,7 @@ function diffKeys() {
|
|
|
18895
18910
|
|
|
18896
18911
|
if (currentIndex < currentLen) {
|
|
18897
18912
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
18898
|
-
return
|
|
18913
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
18899
18914
|
status: STATUS_ADD
|
|
18900
18915
|
});
|
|
18901
18916
|
}));
|
|
@@ -18956,14 +18971,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
18956
18971
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
18957
18972
|
|
|
18958
18973
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
18959
|
-
|
|
18974
|
+
_inherits(CSSMotionList, _React$Component);
|
|
18960
18975
|
|
|
18961
|
-
var _super =
|
|
18976
|
+
var _super = _createSuper(CSSMotionList);
|
|
18962
18977
|
|
|
18963
18978
|
function CSSMotionList() {
|
|
18964
18979
|
var _this;
|
|
18965
18980
|
|
|
18966
|
-
|
|
18981
|
+
_classCallCheck(this, CSSMotionList);
|
|
18967
18982
|
|
|
18968
18983
|
_this = _super.apply(this, arguments);
|
|
18969
18984
|
_this.state = {
|
|
@@ -18976,7 +18991,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
18976
18991
|
return {
|
|
18977
18992
|
keyEntities: keyEntities.map(function (entity) {
|
|
18978
18993
|
if (entity.key !== removeKey) return entity;
|
|
18979
|
-
return
|
|
18994
|
+
return _objectSpread2(_objectSpread2({}, entity), {}, {
|
|
18980
18995
|
status: STATUS_REMOVED
|
|
18981
18996
|
});
|
|
18982
18997
|
})
|
|
@@ -18987,7 +19002,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
18987
19002
|
return _this;
|
|
18988
19003
|
}
|
|
18989
19004
|
|
|
18990
|
-
|
|
19005
|
+
_createClass(CSSMotionList, [{
|
|
18991
19006
|
key: "render",
|
|
18992
19007
|
value: function render() {
|
|
18993
19008
|
var _this2 = this;
|
|
@@ -18998,7 +19013,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
18998
19013
|
component = _this$props.component,
|
|
18999
19014
|
children = _this$props.children,
|
|
19000
19015
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
19001
|
-
restProps =
|
|
19016
|
+
restProps = _objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
19002
19017
|
|
|
19003
19018
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
19004
19019
|
var motionProps = {};
|
|
@@ -19009,10 +19024,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
19009
19024
|
delete restProps.keys;
|
|
19010
19025
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
19011
19026
|
var status = _ref2.status,
|
|
19012
|
-
eventProps =
|
|
19027
|
+
eventProps = _objectWithoutProperties(_ref2, ["status"]);
|
|
19013
19028
|
|
|
19014
19029
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
19015
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
19030
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, extends_extends({}, motionProps, {
|
|
19016
19031
|
key: eventProps.key,
|
|
19017
19032
|
visible: visible,
|
|
19018
19033
|
eventProps: eventProps,
|
|
@@ -19212,7 +19227,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
19212
19227
|
}); // ============================= Style ==============================
|
|
19213
19228
|
|
|
19214
19229
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
19215
|
-
_React$useState2 =
|
|
19230
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
19216
19231
|
transformOrigin = _React$useState2[0],
|
|
19217
19232
|
setTransformOrigin = _React$useState2[1];
|
|
19218
19233
|
|
|
@@ -19358,7 +19373,7 @@ function Dialog(props) {
|
|
|
19358
19373
|
var contentRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
19359
19374
|
|
|
19360
19375
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(visible),
|
|
19361
|
-
_React$useState2 =
|
|
19376
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
19362
19377
|
animatedVisible = _React$useState2[0],
|
|
19363
19378
|
setAnimatedVisible = _React$useState2[1]; // ========================== Init ==========================
|
|
19364
19379
|
|
|
@@ -19545,7 +19560,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
19545
19560
|
}, [visible]); // 渲染在当前 dom 里;
|
|
19546
19561
|
|
|
19547
19562
|
if (getContainer === false) {
|
|
19548
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
19563
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
19549
19564
|
getOpenCount: function getOpenCount() {
|
|
19550
19565
|
return 2;
|
|
19551
19566
|
} // 不对 body 做任何操作。。
|
|
@@ -19563,7 +19578,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
19563
19578
|
forceRender: forceRender,
|
|
19564
19579
|
getContainer: getContainer
|
|
19565
19580
|
}, function (childProps) {
|
|
19566
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
19581
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
19567
19582
|
destroyOnClose: destroyOnClose,
|
|
19568
19583
|
afterClose: function afterClose() {
|
|
19569
19584
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -19598,8 +19613,8 @@ function getConfirmLocale() {
|
|
|
19598
19613
|
|
|
19599
19614
|
|
|
19600
19615
|
|
|
19601
|
-
var UnreachableException = /*#__PURE__*/
|
|
19602
|
-
|
|
19616
|
+
var UnreachableException = /*#__PURE__*/_createClass(function UnreachableException(value) {
|
|
19617
|
+
_classCallCheck(this, UnreachableException);
|
|
19603
19618
|
|
|
19604
19619
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
19605
19620
|
});
|
|
@@ -19662,8 +19677,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
19662
19677
|
console.warn(new UnreachableException(size).error);
|
|
19663
19678
|
}
|
|
19664
19679
|
|
|
19665
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
19666
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
19680
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
19681
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, others, {
|
|
19667
19682
|
className: classes
|
|
19668
19683
|
}));
|
|
19669
19684
|
});
|
|
@@ -19734,14 +19749,14 @@ function isNotGrey(color) {
|
|
|
19734
19749
|
}
|
|
19735
19750
|
|
|
19736
19751
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
19737
|
-
|
|
19752
|
+
_inherits(Wave, _React$Component);
|
|
19738
19753
|
|
|
19739
|
-
var _super =
|
|
19754
|
+
var _super = _createSuper(Wave);
|
|
19740
19755
|
|
|
19741
19756
|
function Wave() {
|
|
19742
19757
|
var _this;
|
|
19743
19758
|
|
|
19744
|
-
|
|
19759
|
+
_classCallCheck(this, Wave);
|
|
19745
19760
|
|
|
19746
19761
|
_this = _super.apply(this, arguments);
|
|
19747
19762
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -19761,7 +19776,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
19761
19776
|
|
|
19762
19777
|
_this.extraNode = document.createElement('div');
|
|
19763
19778
|
|
|
19764
|
-
var _assertThisInitialize =
|
|
19779
|
+
var _assertThisInitialize = _assertThisInitialized(_this),
|
|
19765
19780
|
extraNode = _assertThisInitialize.extraNode;
|
|
19766
19781
|
|
|
19767
19782
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -19868,7 +19883,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
19868
19883
|
return _this;
|
|
19869
19884
|
}
|
|
19870
19885
|
|
|
19871
|
-
|
|
19886
|
+
_createClass(Wave, [{
|
|
19872
19887
|
key: "componentDidMount",
|
|
19873
19888
|
value: function componentDidMount() {
|
|
19874
19889
|
var node = this.containerRef.current;
|
|
@@ -20095,7 +20110,7 @@ function spaceChildren(children, needInserted) {
|
|
|
20095
20110
|
var isPrevChildPure = false;
|
|
20096
20111
|
var childList = [];
|
|
20097
20112
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
20098
|
-
var type =
|
|
20113
|
+
var type = typeof_typeof(child);
|
|
20099
20114
|
|
|
20100
20115
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
20101
20116
|
|
|
@@ -20195,7 +20210,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
20195
20210
|
}; // =============== Update Loading ===============
|
|
20196
20211
|
|
|
20197
20212
|
|
|
20198
|
-
var loadingOrDelay =
|
|
20213
|
+
var loadingOrDelay = typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
20199
20214
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
20200
20215
|
clearTimeout(delayTimeoutRef.current);
|
|
20201
20216
|
|
|
@@ -20235,7 +20250,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
20235
20250
|
var sizeFullname = customizeSize || size;
|
|
20236
20251
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
20237
20252
|
var iconType = innerLoading ? 'loading' : icon;
|
|
20238
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
20253
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(type), type), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(shape), shape !== 'default' && shape), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty(_classNames, "".concat(prefixCls, "-icon-only"), !children && children !== 0 && !!iconType), _defineProperty(_classNames, "".concat(prefixCls, "-background-ghost"), ghost && !isUnborderedButtonType(type)), _defineProperty(_classNames, "".concat(prefixCls, "-loading"), innerLoading), _defineProperty(_classNames, "".concat(prefixCls, "-two-chinese-chars"), hasTwoCNChar && autoInsertSpace), _defineProperty(_classNames, "".concat(prefixCls, "-block"), block), _defineProperty(_classNames, "".concat(prefixCls, "-dangerous"), !!danger), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
20239
20254
|
var iconNode;
|
|
20240
20255
|
|
|
20241
20256
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -20254,14 +20269,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
20254
20269
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
20255
20270
|
|
|
20256
20271
|
if (linkButtonRestProps.href !== undefined) {
|
|
20257
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
20272
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", extends_extends({}, linkButtonRestProps, {
|
|
20258
20273
|
className: classes,
|
|
20259
20274
|
onClick: handleClick,
|
|
20260
20275
|
ref: buttonRef
|
|
20261
20276
|
}), iconNode, kids);
|
|
20262
20277
|
}
|
|
20263
20278
|
|
|
20264
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
20279
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", extends_extends({}, rest, {
|
|
20265
20280
|
type: htmlType,
|
|
20266
20281
|
className: classes,
|
|
20267
20282
|
onClick: handleClick,
|
|
@@ -20439,9 +20454,9 @@ var Modal = function Modal(props) {
|
|
|
20439
20454
|
okType = props.okType,
|
|
20440
20455
|
cancelText = props.cancelText,
|
|
20441
20456
|
confirmLoading = props.confirmLoading;
|
|
20442
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
20457
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, extends_extends({
|
|
20443
20458
|
onClick: handleCancel
|
|
20444
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
20459
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, extends_extends({}, convertLegacyProps(okType), {
|
|
20445
20460
|
loading: confirmLoading,
|
|
20446
20461
|
onClick: handleOk
|
|
20447
20462
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -20476,8 +20491,8 @@ var Modal = function Modal(props) {
|
|
|
20476
20491
|
type: "close",
|
|
20477
20492
|
className: "".concat(prefixCls, "-close-icon")
|
|
20478
20493
|
}));
|
|
20479
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
20480
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
20494
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), _defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
20495
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, extends_extends({}, restProps, {
|
|
20481
20496
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
20482
20497
|
prefixCls: prefixCls,
|
|
20483
20498
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -20603,7 +20618,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
20603
20618
|
children = props.children,
|
|
20604
20619
|
prefixCls = props.prefixCls,
|
|
20605
20620
|
buttonProps = props.buttonProps;
|
|
20606
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
20621
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, extends_extends({}, convertLegacyProps(type), {
|
|
20607
20622
|
onClick: onClick,
|
|
20608
20623
|
loading: loading,
|
|
20609
20624
|
prefixCls: prefixCls
|
|
@@ -22120,7 +22135,7 @@ function get(entity, path) {
|
|
|
22120
22135
|
|
|
22121
22136
|
|
|
22122
22137
|
function _toArray(arr) {
|
|
22123
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
22138
|
+
return arrayWithHoles_arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
22124
22139
|
}
|
|
22125
22140
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
22126
22141
|
|
|
@@ -22142,9 +22157,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
22142
22157
|
if (!entity && typeof path === 'number') {
|
|
22143
22158
|
clone = [];
|
|
22144
22159
|
} else if (Array.isArray(entity)) {
|
|
22145
|
-
clone =
|
|
22160
|
+
clone = _toConsumableArray(entity);
|
|
22146
22161
|
} else {
|
|
22147
|
-
clone =
|
|
22162
|
+
clone = _objectSpread2({}, entity);
|
|
22148
22163
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
22149
22164
|
|
|
22150
22165
|
|
|
@@ -22208,7 +22223,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
22208
22223
|
}
|
|
22209
22224
|
|
|
22210
22225
|
function isObject(obj) {
|
|
22211
|
-
return
|
|
22226
|
+
return typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
22212
22227
|
}
|
|
22213
22228
|
/**
|
|
22214
22229
|
* Copy values into store and return a new values object
|
|
@@ -22217,7 +22232,7 @@ function isObject(obj) {
|
|
|
22217
22232
|
|
|
22218
22233
|
|
|
22219
22234
|
function internalSetValues(store, values) {
|
|
22220
|
-
var newStore = Array.isArray(store) ?
|
|
22235
|
+
var newStore = Array.isArray(store) ? _toConsumableArray(store) : _objectSpread2({}, store);
|
|
22221
22236
|
|
|
22222
22237
|
if (!values) {
|
|
22223
22238
|
return newStore;
|
|
@@ -22260,14 +22275,14 @@ function isSimilar(source, target) {
|
|
|
22260
22275
|
return false;
|
|
22261
22276
|
}
|
|
22262
22277
|
|
|
22263
|
-
if (!source || !target ||
|
|
22278
|
+
if (!source || !target || typeof_typeof(source) !== 'object' || typeof_typeof(target) !== 'object') {
|
|
22264
22279
|
return false;
|
|
22265
22280
|
}
|
|
22266
22281
|
|
|
22267
22282
|
var sourceKeys = Object.keys(source);
|
|
22268
22283
|
var targetKeys = Object.keys(target);
|
|
22269
|
-
var keys = new Set([].concat(
|
|
22270
|
-
return
|
|
22284
|
+
var keys = new Set([].concat(_toConsumableArray(sourceKeys), _toConsumableArray(targetKeys)));
|
|
22285
|
+
return _toConsumableArray(keys).every(function (key) {
|
|
22271
22286
|
var sourceValue = source[key];
|
|
22272
22287
|
var targetValue = target[key];
|
|
22273
22288
|
|
|
@@ -22310,12 +22325,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
22310
22325
|
|
|
22311
22326
|
if (diff > 0) {
|
|
22312
22327
|
// move left
|
|
22313
|
-
return [].concat(
|
|
22328
|
+
return [].concat(_toConsumableArray(array.slice(0, toIndex)), [item], _toConsumableArray(array.slice(toIndex, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
22314
22329
|
}
|
|
22315
22330
|
|
|
22316
22331
|
if (diff < 0) {
|
|
22317
22332
|
// move right
|
|
22318
|
-
return [].concat(
|
|
22333
|
+
return [].concat(_toConsumableArray(array.slice(0, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], _toConsumableArray(array.slice(toIndex + 1, length)));
|
|
22319
22334
|
}
|
|
22320
22335
|
|
|
22321
22336
|
return array;
|
|
@@ -22355,13 +22370,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
22355
22370
|
|
|
22356
22371
|
|
|
22357
22372
|
function _validateRule() {
|
|
22358
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
22373
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
22359
22374
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
22360
|
-
return
|
|
22375
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
22361
22376
|
while (1) {
|
|
22362
22377
|
switch (_context2.prev = _context2.next) {
|
|
22363
22378
|
case 0:
|
|
22364
|
-
cloneRule =
|
|
22379
|
+
cloneRule = _objectSpread2({}, rule); // Bug of `async-validator`
|
|
22365
22380
|
// https://github.com/react-component/field-form/issues/316
|
|
22366
22381
|
// https://github.com/react-component/field-form/issues/313
|
|
22367
22382
|
|
|
@@ -22374,13 +22389,13 @@ function _validateRule() {
|
|
|
22374
22389
|
delete cloneRule.defaultField;
|
|
22375
22390
|
}
|
|
22376
22391
|
|
|
22377
|
-
validator = new AsyncValidator(
|
|
22392
|
+
validator = new AsyncValidator(_defineProperty({}, name, [cloneRule]));
|
|
22378
22393
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
22379
22394
|
validator.messages(messages);
|
|
22380
22395
|
result = [];
|
|
22381
22396
|
_context2.prev = 8;
|
|
22382
22397
|
_context2.next = 11;
|
|
22383
|
-
return Promise.resolve(validator.validate(
|
|
22398
|
+
return Promise.resolve(validator.validate(_defineProperty({}, name, value), _objectSpread2({}, options)));
|
|
22384
22399
|
|
|
22385
22400
|
case 11:
|
|
22386
22401
|
_context2.next = 16;
|
|
@@ -22420,12 +22435,12 @@ function _validateRule() {
|
|
|
22420
22435
|
case 19:
|
|
22421
22436
|
subResults = _context2.sent;
|
|
22422
22437
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
22423
|
-
return [].concat(
|
|
22438
|
+
return [].concat(_toConsumableArray(prev), _toConsumableArray(errors));
|
|
22424
22439
|
}, []));
|
|
22425
22440
|
|
|
22426
22441
|
case 21:
|
|
22427
22442
|
// Replace message with variables
|
|
22428
|
-
kv =
|
|
22443
|
+
kv = _objectSpread2(_objectSpread2({}, rule), {}, {
|
|
22429
22444
|
name: name,
|
|
22430
22445
|
enum: (rule.enum || []).join(', ')
|
|
22431
22446
|
}, messageVariables);
|
|
@@ -22454,7 +22469,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
22454
22469
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
22455
22470
|
var originValidatorFunc = currentRule.validator;
|
|
22456
22471
|
|
|
22457
|
-
var cloneRule =
|
|
22472
|
+
var cloneRule = _objectSpread2(_objectSpread2({}, currentRule), {}, {
|
|
22458
22473
|
ruleIndex: ruleIndex
|
|
22459
22474
|
}); // Replace validator if needed
|
|
22460
22475
|
|
|
@@ -22522,9 +22537,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
22522
22537
|
if (validateFirst === true) {
|
|
22523
22538
|
// >>>>> Validate by serialization
|
|
22524
22539
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
22525
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
22540
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(resolve, reject) {
|
|
22526
22541
|
var i, rule, errors;
|
|
22527
|
-
return
|
|
22542
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
22528
22543
|
while (1) {
|
|
22529
22544
|
switch (_context.prev = _context.next) {
|
|
22530
22545
|
case 0:
|
|
@@ -22603,15 +22618,15 @@ function finishOnAllFailed(_x8) {
|
|
|
22603
22618
|
}
|
|
22604
22619
|
|
|
22605
22620
|
function _finishOnAllFailed() {
|
|
22606
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
22607
|
-
return
|
|
22621
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(rulePromises) {
|
|
22622
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
22608
22623
|
while (1) {
|
|
22609
22624
|
switch (_context3.prev = _context3.next) {
|
|
22610
22625
|
case 0:
|
|
22611
22626
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
22612
22627
|
var _ref5;
|
|
22613
22628
|
|
|
22614
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
22629
|
+
var errors = (_ref5 = []).concat.apply(_ref5, _toConsumableArray(errorsList));
|
|
22615
22630
|
|
|
22616
22631
|
return errors;
|
|
22617
22632
|
}));
|
|
@@ -22631,9 +22646,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
22631
22646
|
}
|
|
22632
22647
|
|
|
22633
22648
|
function _finishOnFirstFailed() {
|
|
22634
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
22649
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(rulePromises) {
|
|
22635
22650
|
var count;
|
|
22636
|
-
return
|
|
22651
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
22637
22652
|
while (1) {
|
|
22638
22653
|
switch (_context4.prev = _context4.next) {
|
|
22639
22654
|
case 0:
|
|
@@ -23438,52 +23453,6 @@ var List = function List(_ref) {
|
|
|
23438
23453
|
};
|
|
23439
23454
|
|
|
23440
23455
|
/* harmony default export */ var es_List = (List);
|
|
23441
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
23442
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
23443
|
-
if (Array.isArray(arr)) return arr;
|
|
23444
|
-
}
|
|
23445
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
23446
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
23447
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
23448
|
-
|
|
23449
|
-
if (_i == null) return;
|
|
23450
|
-
var _arr = [];
|
|
23451
|
-
var _n = true;
|
|
23452
|
-
var _d = false;
|
|
23453
|
-
|
|
23454
|
-
var _s, _e;
|
|
23455
|
-
|
|
23456
|
-
try {
|
|
23457
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
23458
|
-
_arr.push(_s.value);
|
|
23459
|
-
|
|
23460
|
-
if (i && _arr.length === i) break;
|
|
23461
|
-
}
|
|
23462
|
-
} catch (err) {
|
|
23463
|
-
_d = true;
|
|
23464
|
-
_e = err;
|
|
23465
|
-
} finally {
|
|
23466
|
-
try {
|
|
23467
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
23468
|
-
} finally {
|
|
23469
|
-
if (_d) throw _e;
|
|
23470
|
-
}
|
|
23471
|
-
}
|
|
23472
|
-
|
|
23473
|
-
return _arr;
|
|
23474
|
-
}
|
|
23475
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
23476
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
23477
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
23478
|
-
}
|
|
23479
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
23480
|
-
|
|
23481
|
-
|
|
23482
|
-
|
|
23483
|
-
|
|
23484
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
23485
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
23486
|
-
}
|
|
23487
23456
|
;// CONCATENATED MODULE: ./node_modules/rc-field-form/es/utils/asyncUtil.js
|
|
23488
23457
|
function allPromiseFinish(promiseList) {
|
|
23489
23458
|
var hasError = false;
|
|
@@ -23529,7 +23498,7 @@ var SPLIT = '__@field_split__';
|
|
|
23529
23498
|
|
|
23530
23499
|
function normalize(namePath) {
|
|
23531
23500
|
return namePath.map(function (cell) {
|
|
23532
|
-
return "".concat(
|
|
23501
|
+
return "".concat(typeof_typeof(cell), ":").concat(cell);
|
|
23533
23502
|
}) // Magic split
|
|
23534
23503
|
.join(SPLIT);
|
|
23535
23504
|
}
|
|
@@ -23540,12 +23509,12 @@ function normalize(namePath) {
|
|
|
23540
23509
|
|
|
23541
23510
|
var NameMap = /*#__PURE__*/function () {
|
|
23542
23511
|
function NameMap() {
|
|
23543
|
-
|
|
23512
|
+
_classCallCheck(this, NameMap);
|
|
23544
23513
|
|
|
23545
23514
|
this.kvs = new Map();
|
|
23546
23515
|
}
|
|
23547
23516
|
|
|
23548
|
-
|
|
23517
|
+
_createClass(NameMap, [{
|
|
23549
23518
|
key: "set",
|
|
23550
23519
|
value: function set(key, value) {
|
|
23551
23520
|
this.kvs.set(normalize(key), value);
|
|
@@ -23576,7 +23545,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
23576
23545
|
}, {
|
|
23577
23546
|
key: "map",
|
|
23578
23547
|
value: function map(callback) {
|
|
23579
|
-
return
|
|
23548
|
+
return _toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
23580
23549
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
23581
23550
|
key = _ref2[0],
|
|
23582
23551
|
value = _ref2[1];
|
|
@@ -24458,7 +24427,7 @@ function useForm(form) {
|
|
|
24458
24427
|
var formRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef();
|
|
24459
24428
|
|
|
24460
24429
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState({}),
|
|
24461
|
-
_React$useState2 =
|
|
24430
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
24462
24431
|
forceUpdate = _React$useState2[1];
|
|
24463
24432
|
|
|
24464
24433
|
if (!formRef.current) {
|
|
@@ -24577,7 +24546,7 @@ var Form = function Form(_ref, ref) {
|
|
|
24577
24546
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
24578
24547
|
|
|
24579
24548
|
var _useForm = es_useForm(form),
|
|
24580
|
-
_useForm2 =
|
|
24549
|
+
_useForm2 = slicedToArray_slicedToArray(_useForm, 1),
|
|
24581
24550
|
formInstance = _useForm2[0];
|
|
24582
24551
|
|
|
24583
24552
|
var _formInstance$getInte = formInstance.getInternalHooks(HOOK_MARK),
|
|
@@ -24984,7 +24953,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
24984
24953
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
24985
24954
|
|
|
24986
24955
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
24987
|
-
_React$useState2 =
|
|
24956
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
24988
24957
|
elements = _React$useState2[0],
|
|
24989
24958
|
setElements = _React$useState2[1];
|
|
24990
24959
|
|
|
@@ -25045,14 +25014,14 @@ function getUuid() {
|
|
|
25045
25014
|
}
|
|
25046
25015
|
|
|
25047
25016
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
25048
|
-
|
|
25017
|
+
_inherits(Notification, _Component);
|
|
25049
25018
|
|
|
25050
|
-
var _super =
|
|
25019
|
+
var _super = _createSuper(Notification);
|
|
25051
25020
|
|
|
25052
25021
|
function Notification() {
|
|
25053
25022
|
var _this;
|
|
25054
25023
|
|
|
25055
|
-
|
|
25024
|
+
_classCallCheck(this, Notification);
|
|
25056
25025
|
|
|
25057
25026
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
25058
25027
|
args[_key] = arguments[_key];
|
|
@@ -25067,7 +25036,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
25067
25036
|
_this.add = function (originNotice, holderCallback) {
|
|
25068
25037
|
var key = originNotice.key || getUuid();
|
|
25069
25038
|
|
|
25070
|
-
var notice =
|
|
25039
|
+
var notice = _objectSpread2(_objectSpread2({}, originNotice), {}, {
|
|
25071
25040
|
key: key
|
|
25072
25041
|
});
|
|
25073
25042
|
|
|
@@ -25134,7 +25103,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
25134
25103
|
return _this;
|
|
25135
25104
|
}
|
|
25136
25105
|
|
|
25137
|
-
|
|
25106
|
+
_createClass(Notification, [{
|
|
25138
25107
|
key: "getTransitionName",
|
|
25139
25108
|
value: function getTransitionName() {
|
|
25140
25109
|
var _this$props = this.props,
|
|
@@ -25167,7 +25136,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
25167
25136
|
var key = notice.key,
|
|
25168
25137
|
userPassKey = notice.userPassKey;
|
|
25169
25138
|
|
|
25170
|
-
var noticeProps =
|
|
25139
|
+
var noticeProps = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
25171
25140
|
prefixCls: prefixCls,
|
|
25172
25141
|
closeIcon: closeIcon
|
|
25173
25142
|
}, notice), notice.props), {}, {
|
|
@@ -25218,7 +25187,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
25218
25187
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
25219
25188
|
key: key,
|
|
25220
25189
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
25221
|
-
style:
|
|
25190
|
+
style: _objectSpread2({}, motionStyle),
|
|
25222
25191
|
ref: function ref(div) {
|
|
25223
25192
|
if (typeof key === 'undefined') {
|
|
25224
25193
|
return;
|
|
@@ -25235,9 +25204,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
25235
25204
|
});
|
|
25236
25205
|
}
|
|
25237
25206
|
|
|
25238
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
25207
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, extends_extends({}, noticeProps, {
|
|
25239
25208
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
25240
|
-
style:
|
|
25209
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
25241
25210
|
visible: visible
|
|
25242
25211
|
}));
|
|
25243
25212
|
}));
|
|
@@ -25260,7 +25229,7 @@ Notification.defaultProps = {
|
|
|
25260
25229
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
25261
25230
|
var _ref6 = properties || {},
|
|
25262
25231
|
getContainer = _ref6.getContainer,
|
|
25263
|
-
props =
|
|
25232
|
+
props = _objectWithoutProperties(_ref6, ["getContainer"]);
|
|
25264
25233
|
|
|
25265
25234
|
var div = document.createElement('div');
|
|
25266
25235
|
|
|
@@ -25304,7 +25273,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
25304
25273
|
|
|
25305
25274
|
if (false) {}
|
|
25306
25275
|
|
|
25307
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
25276
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification, extends_extends({}, props, {
|
|
25308
25277
|
ref: ref
|
|
25309
25278
|
})), div);
|
|
25310
25279
|
};
|
|
@@ -25334,7 +25303,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
25334
25303
|
};
|
|
25335
25304
|
|
|
25336
25305
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
25337
|
-
_useRCNotification2 =
|
|
25306
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
25338
25307
|
hookNotify = _useRCNotification2[0],
|
|
25339
25308
|
holder = _useRCNotification2[1];
|
|
25340
25309
|
|
|
@@ -25663,7 +25632,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
25663
25632
|
};
|
|
25664
25633
|
|
|
25665
25634
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
25666
|
-
_useRCNotification2 =
|
|
25635
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
25667
25636
|
hookNotify = _useRCNotification2[0],
|
|
25668
25637
|
holder = _useRCNotification2[1];
|
|
25669
25638
|
|
|
@@ -26290,7 +26259,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
26290
26259
|
|
|
26291
26260
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
26292
26261
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
26293
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
26262
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), _defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
26294
26263
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
26295
26264
|
actionFn: onCancel,
|
|
26296
26265
|
close: close,
|
|
@@ -26308,7 +26277,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
26308
26277
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
26309
26278
|
prefixCls: prefixCls,
|
|
26310
26279
|
className: classString,
|
|
26311
|
-
wrapClassName: classnames_default()(
|
|
26280
|
+
wrapClassName: classnames_default()(_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
26312
26281
|
onCancel: function onCancel() {
|
|
26313
26282
|
return close({
|
|
26314
26283
|
triggerCancel: true
|
|
@@ -26392,7 +26361,7 @@ function getRootPrefixCls() {
|
|
|
26392
26361
|
function confirm_confirm(config) {
|
|
26393
26362
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
26394
26363
|
|
|
26395
|
-
var currentConfig =
|
|
26364
|
+
var currentConfig = extends_extends(extends_extends({}, config), {
|
|
26396
26365
|
close: close,
|
|
26397
26366
|
visible: true
|
|
26398
26367
|
});
|
|
@@ -26445,7 +26414,7 @@ function confirm_confirm(config) {
|
|
|
26445
26414
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
26446
26415
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
26447
26416
|
var iconPrefixCls = getIconPrefixCls();
|
|
26448
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
26417
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, extends_extends({}, props, {
|
|
26449
26418
|
prefixCls: prefixCls,
|
|
26450
26419
|
rootPrefixCls: rootPrefixCls,
|
|
26451
26420
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -26462,7 +26431,7 @@ function confirm_confirm(config) {
|
|
|
26462
26431
|
args[_key2] = arguments[_key2];
|
|
26463
26432
|
}
|
|
26464
26433
|
|
|
26465
|
-
currentConfig =
|
|
26434
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), {
|
|
26466
26435
|
visible: false,
|
|
26467
26436
|
afterClose: function afterClose() {
|
|
26468
26437
|
if (typeof config.afterClose === 'function') {
|
|
@@ -26479,7 +26448,7 @@ function confirm_confirm(config) {
|
|
|
26479
26448
|
if (typeof configUpdate === 'function') {
|
|
26480
26449
|
currentConfig = configUpdate(currentConfig);
|
|
26481
26450
|
} else {
|
|
26482
|
-
currentConfig =
|
|
26451
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), configUpdate);
|
|
26483
26452
|
}
|
|
26484
26453
|
|
|
26485
26454
|
render(currentConfig);
|
|
@@ -26493,7 +26462,7 @@ function confirm_confirm(config) {
|
|
|
26493
26462
|
};
|
|
26494
26463
|
}
|
|
26495
26464
|
function withWarn(props) {
|
|
26496
|
-
return
|
|
26465
|
+
return extends_extends(extends_extends({
|
|
26497
26466
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
26498
26467
|
type: "exclamation-circle"
|
|
26499
26468
|
}),
|
|
@@ -26503,7 +26472,7 @@ function withWarn(props) {
|
|
|
26503
26472
|
});
|
|
26504
26473
|
}
|
|
26505
26474
|
function withInfo(props) {
|
|
26506
|
-
return
|
|
26475
|
+
return extends_extends(extends_extends({
|
|
26507
26476
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
26508
26477
|
type: "exclamation-circle"
|
|
26509
26478
|
}),
|
|
@@ -26513,7 +26482,7 @@ function withInfo(props) {
|
|
|
26513
26482
|
});
|
|
26514
26483
|
}
|
|
26515
26484
|
function withSuccess(props) {
|
|
26516
|
-
return
|
|
26485
|
+
return extends_extends(extends_extends({
|
|
26517
26486
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
26518
26487
|
type: "check-circle"
|
|
26519
26488
|
}),
|
|
@@ -26523,7 +26492,7 @@ function withSuccess(props) {
|
|
|
26523
26492
|
});
|
|
26524
26493
|
}
|
|
26525
26494
|
function withError(props) {
|
|
26526
|
-
return
|
|
26495
|
+
return extends_extends(extends_extends({
|
|
26527
26496
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
26528
26497
|
type: "close-circle"
|
|
26529
26498
|
}),
|
|
@@ -26533,7 +26502,7 @@ function withError(props) {
|
|
|
26533
26502
|
});
|
|
26534
26503
|
}
|
|
26535
26504
|
function withConfirm(props) {
|
|
26536
|
-
return
|
|
26505
|
+
return extends_extends(extends_extends({
|
|
26537
26506
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
26538
26507
|
type: "question-circle"
|
|
26539
26508
|
}),
|
|
@@ -26560,7 +26529,7 @@ function usePatchElement() {
|
|
|
26560
26529
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
26561
26530
|
// append a new element to elements (and create a new ref)
|
|
26562
26531
|
setElements(function (originElements) {
|
|
26563
|
-
return [].concat(
|
|
26532
|
+
return [].concat(_toConsumableArray(originElements), [element]);
|
|
26564
26533
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
26565
26534
|
// it works a little like useEffect
|
|
26566
26535
|
|
|
@@ -26625,7 +26594,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
26625
26594
|
destroy: close,
|
|
26626
26595
|
update: function update(newConfig) {
|
|
26627
26596
|
setInnerConfig(function (originConfig) {
|
|
26628
|
-
return
|
|
26597
|
+
return extends_extends(extends_extends({}, originConfig), newConfig);
|
|
26629
26598
|
});
|
|
26630
26599
|
}
|
|
26631
26600
|
};
|
|
@@ -26634,7 +26603,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
26634
26603
|
componentName: "Modal",
|
|
26635
26604
|
defaultLocale: locale_default.Modal
|
|
26636
26605
|
}, function (modalLocale) {
|
|
26637
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
26606
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, extends_extends({
|
|
26638
26607
|
prefixCls: prefixCls,
|
|
26639
26608
|
rootPrefixCls: rootPrefixCls
|
|
26640
26609
|
}, innerConfig, {
|
|
@@ -26681,7 +26650,7 @@ function useModal() {
|
|
|
26681
26650
|
|
|
26682
26651
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
26683
26652
|
if (actionQueue.length) {
|
|
26684
|
-
var cloneQueue =
|
|
26653
|
+
var cloneQueue = _toConsumableArray(actionQueue);
|
|
26685
26654
|
|
|
26686
26655
|
cloneQueue.forEach(function (action) {
|
|
26687
26656
|
action();
|
|
@@ -26718,7 +26687,7 @@ function useModal() {
|
|
|
26718
26687
|
destroyAction();
|
|
26719
26688
|
} else {
|
|
26720
26689
|
setActionQueue(function (prev) {
|
|
26721
|
-
return [].concat(
|
|
26690
|
+
return [].concat(_toConsumableArray(prev), [destroyAction]);
|
|
26722
26691
|
});
|
|
26723
26692
|
}
|
|
26724
26693
|
},
|
|
@@ -26733,7 +26702,7 @@ function useModal() {
|
|
|
26733
26702
|
updateAction();
|
|
26734
26703
|
} else {
|
|
26735
26704
|
setActionQueue(function (prev) {
|
|
26736
|
-
return [].concat(
|
|
26705
|
+
return [].concat(_toConsumableArray(prev), [updateAction]);
|
|
26737
26706
|
});
|
|
26738
26707
|
}
|
|
26739
26708
|
}
|
|
@@ -27339,7 +27308,7 @@ function helpers_esm_slicedToArray_slicedToArray(arr, i) {
|
|
|
27339
27308
|
return helpers_esm_arrayWithHoles_arrayWithHoles(arr) || helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || esm_unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || helpers_esm_nonIterableRest_nonIterableRest();
|
|
27340
27309
|
}
|
|
27341
27310
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
27342
|
-
function
|
|
27311
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
27343
27312
|
if (source == null) return {};
|
|
27344
27313
|
var target = {};
|
|
27345
27314
|
var sourceKeys = Object.keys(source);
|
|
@@ -27355,9 +27324,9 @@ function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, e
|
|
|
27355
27324
|
}
|
|
27356
27325
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
27357
27326
|
|
|
27358
|
-
function
|
|
27327
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
27359
27328
|
if (source == null) return {};
|
|
27360
|
-
var target =
|
|
27329
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
27361
27330
|
var key, i;
|
|
27362
27331
|
|
|
27363
27332
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -29463,7 +29432,7 @@ function RawList(props, ref) {
|
|
|
29463
29432
|
onScroll = props.onScroll,
|
|
29464
29433
|
onVisibleChange = props.onVisibleChange,
|
|
29465
29434
|
innerProps = props.innerProps,
|
|
29466
|
-
restProps =
|
|
29435
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
29467
29436
|
// ================================= MISC =================================
|
|
29468
29437
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
29469
29438
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
@@ -29832,7 +29801,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
29832
29801
|
return values;
|
|
29833
29802
|
}
|
|
29834
29803
|
function removeLastEnabledValue(measureValues, values) {
|
|
29835
|
-
var newValues =
|
|
29804
|
+
var newValues = _toConsumableArray(values);
|
|
29836
29805
|
|
|
29837
29806
|
var removeIndex;
|
|
29838
29807
|
|
|
@@ -29966,7 +29935,7 @@ function flattenOptions(options) {
|
|
|
29966
29935
|
*/
|
|
29967
29936
|
|
|
29968
29937
|
function injectPropsWithOption(option) {
|
|
29969
|
-
var newOption =
|
|
29938
|
+
var newOption = _objectSpread2({}, option);
|
|
29970
29939
|
|
|
29971
29940
|
if (!('props' in newOption)) {
|
|
29972
29941
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -30000,7 +29969,7 @@ function findValueOption(values, options) {
|
|
|
30000
29969
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
30001
29970
|
|
|
30002
29971
|
if (!option) {
|
|
30003
|
-
option =
|
|
29972
|
+
option = _objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
30004
29973
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
30005
29974
|
}));
|
|
30006
29975
|
}
|
|
@@ -30019,7 +29988,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
30019
29988
|
};
|
|
30020
29989
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
30021
29990
|
|
|
30022
|
-
if (prevValItem &&
|
|
29991
|
+
if (prevValItem && typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
30023
29992
|
result.label = prevValItem.label;
|
|
30024
29993
|
|
|
30025
29994
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -30067,7 +30036,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
30067
30036
|
var filterFunc;
|
|
30068
30037
|
|
|
30069
30038
|
if (filterOption === false) {
|
|
30070
|
-
return
|
|
30039
|
+
return _toConsumableArray(options);
|
|
30071
30040
|
}
|
|
30072
30041
|
|
|
30073
30042
|
if (typeof filterOption === 'function') {
|
|
@@ -30091,7 +30060,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
30091
30060
|
});
|
|
30092
30061
|
|
|
30093
30062
|
if (subOptions.length) {
|
|
30094
|
-
filteredOptions.push(
|
|
30063
|
+
filteredOptions.push(_objectSpread2(_objectSpread2({}, item), {}, {
|
|
30095
30064
|
options: subOptions
|
|
30096
30065
|
}));
|
|
30097
30066
|
}
|
|
@@ -30125,7 +30094,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
30125
30094
|
var list = str.split(token);
|
|
30126
30095
|
match = match || list.length > 1;
|
|
30127
30096
|
return list.reduce(function (prevList, unitStr) {
|
|
30128
|
-
return [].concat(
|
|
30097
|
+
return [].concat(_toConsumableArray(prevList), _toConsumableArray(separate(unitStr, restTokens)));
|
|
30129
30098
|
}, []).filter(function (unit) {
|
|
30130
30099
|
return unit;
|
|
30131
30100
|
});
|
|
@@ -30145,7 +30114,7 @@ function isValueDisabled(value, options) {
|
|
|
30145
30114
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
30146
30115
|
var values = commonUtil_toArray(value).slice().sort();
|
|
30147
30116
|
|
|
30148
|
-
var cloneOptions =
|
|
30117
|
+
var cloneOptions = _toConsumableArray(options); // Convert options value to set
|
|
30149
30118
|
|
|
30150
30119
|
|
|
30151
30120
|
var optionValues = new Set();
|
|
@@ -30165,7 +30134,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
30165
30134
|
if (!optionValues.has(val)) {
|
|
30166
30135
|
var _ref9;
|
|
30167
30136
|
|
|
30168
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
30137
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, _defineProperty(_ref9, optionLabelProp, item.label), _defineProperty(_ref9, "value", val), _ref9) : {
|
|
30169
30138
|
value: val
|
|
30170
30139
|
});
|
|
30171
30140
|
}
|
|
@@ -30431,7 +30400,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
30431
30400
|
children = itemData.children;
|
|
30432
30401
|
var attrs = pickAttrs(itemData, true);
|
|
30433
30402
|
var mergedLabel = childrenAsData ? children : label;
|
|
30434
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
30403
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
30435
30404
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
30436
30405
|
}, attrs, {
|
|
30437
30406
|
key: index,
|
|
@@ -30481,13 +30450,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
30481
30450
|
children = data.children,
|
|
30482
30451
|
style = data.style,
|
|
30483
30452
|
className = data.className,
|
|
30484
|
-
otherProps =
|
|
30453
|
+
otherProps = _objectWithoutProperties(data, OptionList_excluded);
|
|
30485
30454
|
|
|
30486
30455
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
30487
30456
|
|
|
30488
30457
|
var selected = values.has(value);
|
|
30489
30458
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
30490
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
30459
|
+
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), _defineProperty(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
|
|
30491
30460
|
var mergedLabel = childrenAsData ? children : label;
|
|
30492
30461
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
30493
30462
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -30498,7 +30467,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
30498
30467
|
optionTitle = title;
|
|
30499
30468
|
}
|
|
30500
30469
|
|
|
30501
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
30470
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, passedProps, {
|
|
30502
30471
|
"aria-selected": selected,
|
|
30503
30472
|
className: optionClassName,
|
|
30504
30473
|
title: optionTitle,
|
|
@@ -30559,9 +30528,9 @@ function convertNodeToOption(node) {
|
|
|
30559
30528
|
_node$props = node.props,
|
|
30560
30529
|
children = _node$props.children,
|
|
30561
30530
|
value = _node$props.value,
|
|
30562
|
-
restProps =
|
|
30531
|
+
restProps = _objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
30563
30532
|
|
|
30564
|
-
return
|
|
30533
|
+
return _objectSpread2({
|
|
30565
30534
|
key: key,
|
|
30566
30535
|
value: value !== undefined ? value : key,
|
|
30567
30536
|
children: children
|
|
@@ -30579,13 +30548,13 @@ function convertChildrenToData(nodes) {
|
|
|
30579
30548
|
key = node.key,
|
|
30580
30549
|
_node$props2 = node.props,
|
|
30581
30550
|
children = _node$props2.children,
|
|
30582
|
-
restProps =
|
|
30551
|
+
restProps = _objectWithoutProperties(_node$props2, _excluded2);
|
|
30583
30552
|
|
|
30584
30553
|
if (optionOnly || !isSelectOptGroup) {
|
|
30585
30554
|
return convertNodeToOption(node);
|
|
30586
30555
|
}
|
|
30587
30556
|
|
|
30588
|
-
return
|
|
30557
|
+
return _objectSpread2(_objectSpread2({
|
|
30589
30558
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
30590
30559
|
label: key
|
|
30591
30560
|
}, restProps), {}, {
|
|
@@ -30662,6 +30631,41 @@ function useControlledState(defaultStateValue, option) {
|
|
|
30662
30631
|
}, [value]);
|
|
30663
30632
|
return [mergedValue, triggerChange];
|
|
30664
30633
|
}
|
|
30634
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
30635
|
+
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
30636
|
+
if (source == null) return {};
|
|
30637
|
+
var target = {};
|
|
30638
|
+
var sourceKeys = Object.keys(source);
|
|
30639
|
+
var key, i;
|
|
30640
|
+
|
|
30641
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
30642
|
+
key = sourceKeys[i];
|
|
30643
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
30644
|
+
target[key] = source[key];
|
|
30645
|
+
}
|
|
30646
|
+
|
|
30647
|
+
return target;
|
|
30648
|
+
}
|
|
30649
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
30650
|
+
|
|
30651
|
+
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
30652
|
+
if (source == null) return {};
|
|
30653
|
+
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
30654
|
+
var key, i;
|
|
30655
|
+
|
|
30656
|
+
if (Object.getOwnPropertySymbols) {
|
|
30657
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
30658
|
+
|
|
30659
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
30660
|
+
key = sourceSymbolKeys[i];
|
|
30661
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
30662
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
30663
|
+
target[key] = source[key];
|
|
30664
|
+
}
|
|
30665
|
+
}
|
|
30666
|
+
|
|
30667
|
+
return target;
|
|
30668
|
+
}
|
|
30665
30669
|
;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/Item.js
|
|
30666
30670
|
|
|
30667
30671
|
|
|
@@ -30687,7 +30691,7 @@ function InternalItem(props, ref) {
|
|
|
30687
30691
|
order = props.order,
|
|
30688
30692
|
_props$component = props.component,
|
|
30689
30693
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
30690
|
-
restProps =
|
|
30694
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
30691
30695
|
|
|
30692
30696
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
30693
30697
|
|
|
@@ -30754,7 +30758,7 @@ Item_Item.displayName = 'Item';
|
|
|
30754
30758
|
|
|
30755
30759
|
function useBatchFrameState() {
|
|
30756
30760
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
30757
|
-
_useState2 =
|
|
30761
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
30758
30762
|
forceUpdate = _useState2[1];
|
|
30759
30763
|
|
|
30760
30764
|
var statesRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)([]);
|
|
@@ -30808,7 +30812,7 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
30808
30812
|
if (!context) {
|
|
30809
30813
|
var _props$component = props.component,
|
|
30810
30814
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
30811
|
-
_restProps =
|
|
30815
|
+
_restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["component"]);
|
|
30812
30816
|
|
|
30813
30817
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, _restProps, {
|
|
30814
30818
|
ref: ref
|
|
@@ -30816,10 +30820,10 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
30816
30820
|
}
|
|
30817
30821
|
|
|
30818
30822
|
var contextClassName = context.className,
|
|
30819
|
-
restContext =
|
|
30823
|
+
restContext = esm_objectWithoutProperties_objectWithoutProperties(context, ["className"]);
|
|
30820
30824
|
|
|
30821
30825
|
var className = props.className,
|
|
30822
|
-
restProps =
|
|
30826
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
30823
30827
|
|
|
30824
30828
|
|
|
30825
30829
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
@@ -30874,45 +30878,45 @@ function Overflow(props, ref) {
|
|
|
30874
30878
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
30875
30879
|
itemComponent = props.itemComponent,
|
|
30876
30880
|
onVisibleChange = props.onVisibleChange,
|
|
30877
|
-
restProps =
|
|
30881
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
30878
30882
|
|
|
30879
30883
|
var createUseState = useBatchFrameState();
|
|
30880
30884
|
var fullySSR = ssr === 'full';
|
|
30881
30885
|
|
|
30882
30886
|
var _createUseState = createUseState(null),
|
|
30883
|
-
_createUseState2 =
|
|
30887
|
+
_createUseState2 = esm_slicedToArray_slicedToArray(_createUseState, 2),
|
|
30884
30888
|
containerWidth = _createUseState2[0],
|
|
30885
30889
|
setContainerWidth = _createUseState2[1];
|
|
30886
30890
|
|
|
30887
30891
|
var mergedContainerWidth = containerWidth || 0;
|
|
30888
30892
|
|
|
30889
30893
|
var _createUseState3 = createUseState(new Map()),
|
|
30890
|
-
_createUseState4 =
|
|
30894
|
+
_createUseState4 = esm_slicedToArray_slicedToArray(_createUseState3, 2),
|
|
30891
30895
|
itemWidths = _createUseState4[0],
|
|
30892
30896
|
setItemWidths = _createUseState4[1];
|
|
30893
30897
|
|
|
30894
30898
|
var _createUseState5 = createUseState(0),
|
|
30895
|
-
_createUseState6 =
|
|
30899
|
+
_createUseState6 = esm_slicedToArray_slicedToArray(_createUseState5, 2),
|
|
30896
30900
|
prevRestWidth = _createUseState6[0],
|
|
30897
30901
|
setPrevRestWidth = _createUseState6[1];
|
|
30898
30902
|
|
|
30899
30903
|
var _createUseState7 = createUseState(0),
|
|
30900
|
-
_createUseState8 =
|
|
30904
|
+
_createUseState8 = esm_slicedToArray_slicedToArray(_createUseState7, 2),
|
|
30901
30905
|
restWidth = _createUseState8[0],
|
|
30902
30906
|
setRestWidth = _createUseState8[1];
|
|
30903
30907
|
|
|
30904
30908
|
var _createUseState9 = createUseState(0),
|
|
30905
|
-
_createUseState10 =
|
|
30909
|
+
_createUseState10 = esm_slicedToArray_slicedToArray(_createUseState9, 2),
|
|
30906
30910
|
suffixWidth = _createUseState10[0],
|
|
30907
30911
|
setSuffixWidth = _createUseState10[1];
|
|
30908
30912
|
|
|
30909
30913
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
30910
|
-
_useState2 =
|
|
30914
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
30911
30915
|
suffixFixedStart = _useState2[0],
|
|
30912
30916
|
setSuffixFixedStart = _useState2[1];
|
|
30913
30917
|
|
|
30914
30918
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
30915
|
-
_useState4 =
|
|
30919
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
30916
30920
|
displayCount = _useState4[0],
|
|
30917
30921
|
setDisplayCount = _useState4[1];
|
|
30918
30922
|
|
|
@@ -30925,7 +30929,7 @@ function Overflow(props, ref) {
|
|
|
30925
30929
|
}, [displayCount, containerWidth]);
|
|
30926
30930
|
|
|
30927
30931
|
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
30928
|
-
_useState6 =
|
|
30932
|
+
_useState6 = esm_slicedToArray_slicedToArray(_useState5, 2),
|
|
30929
30933
|
restReady = _useState6[0],
|
|
30930
30934
|
setRestReady = _useState6[1];
|
|
30931
30935
|
|
|
@@ -31348,7 +31352,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
31348
31352
|
|
|
31349
31353
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
31350
31354
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
31351
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
31355
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), _defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
31352
31356
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
31353
31357
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
31354
31358
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -31763,7 +31767,7 @@ var Selector = function Selector(props, ref) {
|
|
|
31763
31767
|
onInputCompositionStart: onInputCompositionStart,
|
|
31764
31768
|
onInputCompositionEnd: onInputCompositionEnd
|
|
31765
31769
|
};
|
|
31766
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
31770
|
+
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector, extends_extends({}, props, sharedProps)) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Selector_SingleSelector, extends_extends({}, props, sharedProps));
|
|
31767
31771
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
31768
31772
|
ref: domRef,
|
|
31769
31773
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -33299,7 +33303,7 @@ function monitorResize(element, callback) {
|
|
|
33299
33303
|
var prevHeight = null;
|
|
33300
33304
|
|
|
33301
33305
|
function onResize(_ref) {
|
|
33302
|
-
var _ref2 =
|
|
33306
|
+
var _ref2 = esm_slicedToArray_slicedToArray(_ref, 1),
|
|
33303
33307
|
target = _ref2[0].target;
|
|
33304
33308
|
|
|
33305
33309
|
if (!document.documentElement.contains(target)) return;
|
|
@@ -33458,7 +33462,7 @@ var Align = function Align(_ref, ref) {
|
|
|
33458
33462
|
|
|
33459
33463
|
return false;
|
|
33460
33464
|
}, monitorBufferTime),
|
|
33461
|
-
_useBuffer2 =
|
|
33465
|
+
_useBuffer2 = esm_slicedToArray_slicedToArray(_useBuffer, 2),
|
|
33462
33466
|
_forceAlign = _useBuffer2[0],
|
|
33463
33467
|
cancelForceAlign = _useBuffer2[1]; // ===================== Effect =====================
|
|
33464
33468
|
// Listen for target updated
|
|
@@ -33546,6 +33550,45 @@ RcAlign.displayName = 'Align';
|
|
|
33546
33550
|
// export this package's api
|
|
33547
33551
|
|
|
33548
33552
|
/* harmony default export */ var rc_align_es = (es_Align);
|
|
33553
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
33554
|
+
var runtime_regenerator = __webpack_require__(5273);
|
|
33555
|
+
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
33556
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
33557
|
+
function esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
33558
|
+
try {
|
|
33559
|
+
var info = gen[key](arg);
|
|
33560
|
+
var value = info.value;
|
|
33561
|
+
} catch (error) {
|
|
33562
|
+
reject(error);
|
|
33563
|
+
return;
|
|
33564
|
+
}
|
|
33565
|
+
|
|
33566
|
+
if (info.done) {
|
|
33567
|
+
resolve(value);
|
|
33568
|
+
} else {
|
|
33569
|
+
Promise.resolve(value).then(_next, _throw);
|
|
33570
|
+
}
|
|
33571
|
+
}
|
|
33572
|
+
|
|
33573
|
+
function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
33574
|
+
return function () {
|
|
33575
|
+
var self = this,
|
|
33576
|
+
args = arguments;
|
|
33577
|
+
return new Promise(function (resolve, reject) {
|
|
33578
|
+
var gen = fn.apply(self, args);
|
|
33579
|
+
|
|
33580
|
+
function _next(value) {
|
|
33581
|
+
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
33582
|
+
}
|
|
33583
|
+
|
|
33584
|
+
function _throw(err) {
|
|
33585
|
+
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
33586
|
+
}
|
|
33587
|
+
|
|
33588
|
+
_next(undefined);
|
|
33589
|
+
});
|
|
33590
|
+
};
|
|
33591
|
+
}
|
|
33549
33592
|
;// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/useVisibleStatus.js
|
|
33550
33593
|
|
|
33551
33594
|
|
|
@@ -33555,7 +33598,7 @@ RcAlign.displayName = 'Align';
|
|
|
33555
33598
|
var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
33556
33599
|
/* harmony default export */ var useVisibleStatus = (function (visible, doMeasure) {
|
|
33557
33600
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
33558
|
-
_useState2 =
|
|
33601
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
33559
33602
|
status = _useState2[0],
|
|
33560
33603
|
setInternalStatus = _useState2[1];
|
|
33561
33604
|
|
|
@@ -33608,7 +33651,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
33608
33651
|
}
|
|
33609
33652
|
|
|
33610
33653
|
if (status) {
|
|
33611
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/
|
|
33654
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/esm_asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
33612
33655
|
var index, nextStatus;
|
|
33613
33656
|
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33614
33657
|
while (1) {
|
|
@@ -33646,7 +33689,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
33646
33689
|
width: 0,
|
|
33647
33690
|
height: 0
|
|
33648
33691
|
}),
|
|
33649
|
-
_React$useState2 =
|
|
33692
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
33650
33693
|
targetSize = _React$useState2[0],
|
|
33651
33694
|
setTargetSize = _React$useState2[1];
|
|
33652
33695
|
|
|
@@ -33717,13 +33760,13 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
33717
33760
|
var elementRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
33718
33761
|
|
|
33719
33762
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
33720
|
-
_useState2 =
|
|
33763
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
33721
33764
|
alignedClassName = _useState2[0],
|
|
33722
33765
|
setAlignedClassName = _useState2[1]; // ======================= Measure ========================
|
|
33723
33766
|
|
|
33724
33767
|
|
|
33725
33768
|
var _useStretchStyle = useStretchStyle(stretch),
|
|
33726
|
-
_useStretchStyle2 =
|
|
33769
|
+
_useStretchStyle2 = esm_slicedToArray_slicedToArray(_useStretchStyle, 2),
|
|
33727
33770
|
stretchStyle = _useStretchStyle2[0],
|
|
33728
33771
|
measureStretchStyle = _useStretchStyle2[1];
|
|
33729
33772
|
|
|
@@ -33735,7 +33778,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
33735
33778
|
|
|
33736
33779
|
|
|
33737
33780
|
var _useVisibleStatus = useVisibleStatus(visible, doMeasure),
|
|
33738
|
-
_useVisibleStatus2 =
|
|
33781
|
+
_useVisibleStatus2 = esm_slicedToArray_slicedToArray(_useVisibleStatus, 2),
|
|
33739
33782
|
status = _useVisibleStatus2[0],
|
|
33740
33783
|
goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
|
|
33741
33784
|
|
|
@@ -33949,15 +33992,15 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
33949
33992
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
33950
33993
|
var visible = _ref.visible,
|
|
33951
33994
|
mobile = _ref.mobile,
|
|
33952
|
-
props =
|
|
33995
|
+
props = esm_objectWithoutProperties_objectWithoutProperties(_ref, Popup_excluded);
|
|
33953
33996
|
|
|
33954
33997
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
33955
|
-
_useState2 =
|
|
33998
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
33956
33999
|
innerVisible = _useState2[0],
|
|
33957
34000
|
serInnerVisible = _useState2[1];
|
|
33958
34001
|
|
|
33959
34002
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
33960
|
-
_useState4 =
|
|
34003
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
33961
34004
|
inMobile = _useState4[0],
|
|
33962
34005
|
setInMobile = _useState4[1];
|
|
33963
34006
|
|
|
@@ -34866,7 +34909,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
34866
34909
|
empty = props.empty,
|
|
34867
34910
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
34868
34911
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
34869
|
-
restProps =
|
|
34912
|
+
restProps = _objectWithoutProperties(props, SelectTrigger_excluded);
|
|
34870
34913
|
|
|
34871
34914
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
34872
34915
|
var popupNode = popupElement;
|
|
@@ -34890,7 +34933,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
34890
34933
|
};
|
|
34891
34934
|
});
|
|
34892
34935
|
|
|
34893
|
-
var popupStyle =
|
|
34936
|
+
var popupStyle = _objectSpread2({
|
|
34894
34937
|
minWidth: containerWidth
|
|
34895
34938
|
}, dropdownStyle);
|
|
34896
34939
|
|
|
@@ -34900,7 +34943,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
34900
34943
|
popupStyle.width = containerWidth;
|
|
34901
34944
|
}
|
|
34902
34945
|
|
|
34903
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
34946
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, extends_extends({}, restProps, {
|
|
34904
34947
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
34905
34948
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
34906
34949
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -34913,7 +34956,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
34913
34956
|
popupAlign: dropdownAlign,
|
|
34914
34957
|
popupVisible: visible,
|
|
34915
34958
|
getPopupContainer: getPopupContainer,
|
|
34916
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
34959
|
+
popupClassName: classnames_default()(dropdownClassName, _defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
34917
34960
|
popupStyle: popupStyle,
|
|
34918
34961
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
34919
34962
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -35016,7 +35059,7 @@ function useCacheDisplayValue(values) {
|
|
|
35016
35059
|
var cacheLabel = valueLabels.get(item.value);
|
|
35017
35060
|
|
|
35018
35061
|
if (item.isCacheable && cacheLabel) {
|
|
35019
|
-
return
|
|
35062
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
35020
35063
|
label: cacheLabel
|
|
35021
35064
|
});
|
|
35022
35065
|
}
|
|
@@ -35178,7 +35221,7 @@ function generateSelector(config) {
|
|
|
35178
35221
|
onClear = props.onClear,
|
|
35179
35222
|
_props$internalProps = props.internalProps,
|
|
35180
35223
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
35181
|
-
restProps =
|
|
35224
|
+
restProps = _objectWithoutProperties(props, generate_excluded);
|
|
35182
35225
|
|
|
35183
35226
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
35184
35227
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -35316,7 +35359,7 @@ function generateSelector(config) {
|
|
|
35316
35359
|
|
|
35317
35360
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
35318
35361
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
35319
|
-
return
|
|
35362
|
+
return _toConsumableArray(mergedOptions);
|
|
35320
35363
|
}
|
|
35321
35364
|
|
|
35322
35365
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -35337,7 +35380,7 @@ function generateSelector(config) {
|
|
|
35337
35380
|
}
|
|
35338
35381
|
|
|
35339
35382
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
35340
|
-
return
|
|
35383
|
+
return _toConsumableArray(filteredOptions).sort(filterSort);
|
|
35341
35384
|
}
|
|
35342
35385
|
|
|
35343
35386
|
return filteredOptions;
|
|
@@ -35360,7 +35403,7 @@ function generateSelector(config) {
|
|
|
35360
35403
|
labelInValue: mergedLabelInValue,
|
|
35361
35404
|
optionLabelProp: mergedOptionLabelProp
|
|
35362
35405
|
});
|
|
35363
|
-
return
|
|
35406
|
+
return _objectSpread2(_objectSpread2({}, displayValue), {}, {
|
|
35364
35407
|
disabled: isValueDisabled(val, valueOptions)
|
|
35365
35408
|
});
|
|
35366
35409
|
});
|
|
@@ -35434,7 +35477,7 @@ function generateSelector(config) {
|
|
|
35434
35477
|
}); // We will cache option in case it removed by ajax
|
|
35435
35478
|
|
|
35436
35479
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
35437
|
-
var clone =
|
|
35480
|
+
var clone = _objectSpread2({}, option);
|
|
35438
35481
|
|
|
35439
35482
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
35440
35483
|
get: function get() {
|
|
@@ -35490,13 +35533,13 @@ function generateSelector(config) {
|
|
|
35490
35533
|
};
|
|
35491
35534
|
|
|
35492
35535
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
35493
|
-
onInternalSelect(newValue,
|
|
35536
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
35494
35537
|
source: 'option'
|
|
35495
35538
|
}));
|
|
35496
35539
|
};
|
|
35497
35540
|
|
|
35498
35541
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
35499
|
-
onInternalSelect(newValue,
|
|
35542
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
35500
35543
|
source: 'selection'
|
|
35501
35544
|
}));
|
|
35502
35545
|
}; // ============================= Input ==============================
|
|
@@ -35580,7 +35623,7 @@ function generateSelector(config) {
|
|
|
35580
35623
|
});
|
|
35581
35624
|
}
|
|
35582
35625
|
|
|
35583
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
35626
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), _toConsumableArray(patchRawValues))));
|
|
35584
35627
|
triggerChange(newRawValues);
|
|
35585
35628
|
newRawValues.forEach(function (newRawValue) {
|
|
35586
35629
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -35609,7 +35652,7 @@ function generateSelector(config) {
|
|
|
35609
35652
|
return;
|
|
35610
35653
|
}
|
|
35611
35654
|
|
|
35612
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
35655
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [searchText])));
|
|
35613
35656
|
triggerChange(newRawValues);
|
|
35614
35657
|
newRawValues.forEach(function (newRawValue) {
|
|
35615
35658
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -35742,7 +35785,7 @@ function generateSelector(config) {
|
|
|
35742
35785
|
// `tags` mode should move `searchValue` into values
|
|
35743
35786
|
if (mode === 'tags') {
|
|
35744
35787
|
triggerSearch('', false, false);
|
|
35745
|
-
triggerChange(Array.from(new Set([].concat(
|
|
35788
|
+
triggerChange(Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
35746
35789
|
} else if (mode === 'multiple') {
|
|
35747
35790
|
// `multiple` mode only clean the search value but not trigger event
|
|
35748
35791
|
setInnerSearchValue('');
|
|
@@ -35900,7 +35943,7 @@ function generateSelector(config) {
|
|
|
35900
35943
|
|
|
35901
35944
|
if (mergedShowArrow) {
|
|
35902
35945
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
35903
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
35946
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), _defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
35904
35947
|
customizeIcon: inputIcon,
|
|
35905
35948
|
customizeIconProps: {
|
|
35906
35949
|
loading: loading,
|
|
@@ -35916,7 +35959,7 @@ function generateSelector(config) {
|
|
|
35916
35959
|
if (false) {} // ============================= Render =============================
|
|
35917
35960
|
|
|
35918
35961
|
|
|
35919
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
35962
|
+
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-focused"), mockFocused), _defineProperty(_classNames2, "".concat(prefixCls, "-multiple"), isMultiple), _defineProperty(_classNames2, "".concat(prefixCls, "-single"), !isMultiple), _defineProperty(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), _defineProperty(_classNames2, "".concat(prefixCls, "-show-arrow"), mergedShowArrow), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-loading"), loading), _defineProperty(_classNames2, "".concat(prefixCls, "-open"), mergedOpen), _defineProperty(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), _defineProperty(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch), _classNames2));
|
|
35920
35963
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
35921
35964
|
ref: triggerRef,
|
|
35922
35965
|
disabled: disabled,
|
|
@@ -35941,7 +35984,7 @@ function generateSelector(config) {
|
|
|
35941
35984
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
35942
35985
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
35943
35986
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
35944
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
35987
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, extends_extends({}, props, {
|
|
35945
35988
|
domRef: selectorDomRef,
|
|
35946
35989
|
prefixCls: prefixCls,
|
|
35947
35990
|
inputElement: customizeInputElement,
|
|
@@ -35967,7 +36010,7 @@ function generateSelector(config) {
|
|
|
35967
36010
|
return selectorNode;
|
|
35968
36011
|
}
|
|
35969
36012
|
|
|
35970
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36013
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
35971
36014
|
className: mergedClassName
|
|
35972
36015
|
}, domProps, {
|
|
35973
36016
|
ref: containerRef,
|
|
@@ -36054,7 +36097,7 @@ function warningProps(props) {
|
|
|
36054
36097
|
if (value !== undefined && value !== null) {
|
|
36055
36098
|
var values = commonUtil_toArray(value);
|
|
36056
36099
|
es_warning(!labelInValue || values.every(function (val) {
|
|
36057
|
-
return
|
|
36100
|
+
return typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
36058
36101
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
36059
36102
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
36060
36103
|
} // Syntactic sugar should use correct children type
|
|
@@ -36168,14 +36211,14 @@ var RefSelect = generateSelector({
|
|
|
36168
36211
|
*/
|
|
36169
36212
|
|
|
36170
36213
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
36171
|
-
|
|
36214
|
+
_inherits(Select, _React$Component);
|
|
36172
36215
|
|
|
36173
|
-
var _super =
|
|
36216
|
+
var _super = _createSuper(Select);
|
|
36174
36217
|
|
|
36175
36218
|
function Select() {
|
|
36176
36219
|
var _this;
|
|
36177
36220
|
|
|
36178
|
-
|
|
36221
|
+
_classCallCheck(this, Select);
|
|
36179
36222
|
|
|
36180
36223
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
36181
36224
|
args[_key] = arguments[_key];
|
|
@@ -36195,10 +36238,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
36195
36238
|
return _this;
|
|
36196
36239
|
}
|
|
36197
36240
|
|
|
36198
|
-
|
|
36241
|
+
_createClass(Select, [{
|
|
36199
36242
|
key: "render",
|
|
36200
36243
|
value: function render() {
|
|
36201
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
36244
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, extends_extends({
|
|
36202
36245
|
ref: this.selectRef
|
|
36203
36246
|
}, this.props));
|
|
36204
36247
|
}
|
|
@@ -36379,7 +36422,7 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
36379
36422
|
} // ===================== Icons =====================
|
|
36380
36423
|
|
|
36381
36424
|
|
|
36382
|
-
var _getIcons = getIcons(
|
|
36425
|
+
var _getIcons = getIcons(extends_extends(extends_extends({}, props), {
|
|
36383
36426
|
multiple: isMultiple,
|
|
36384
36427
|
prefixCls: prefixCls
|
|
36385
36428
|
})),
|
|
@@ -36389,10 +36432,10 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
36389
36432
|
clearIcon = _getIcons.clearIcon;
|
|
36390
36433
|
|
|
36391
36434
|
var selectProps = omit(props, ['suffixIcon', 'itemIcon']);
|
|
36392
|
-
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName,
|
|
36435
|
+
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName, _defineProperty({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
|
|
36393
36436
|
var mergedSize = customizeSize || size;
|
|
36394
|
-
var mergedClassName = classnames_default()((_classNames2 = {},
|
|
36395
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es,
|
|
36437
|
+
var mergedClassName = classnames_default()((_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-lg"), mergedSize === 'large'), _defineProperty(_classNames2, "".concat(prefixCls, "-sm"), mergedSize === 'small'), _defineProperty(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames2, "".concat(prefixCls, "-borderless"), !bordered), _classNames2), className);
|
|
36438
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es, extends_extends({
|
|
36396
36439
|
ref: ref,
|
|
36397
36440
|
virtual: virtual,
|
|
36398
36441
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth
|
|
@@ -38219,7 +38262,7 @@ function PublicLiveDetail(_ref) {
|
|
|
38219
38262
|
if (!isExist) {
|
|
38220
38263
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(Empty_Empty, {
|
|
38221
38264
|
hideBack: true,
|
|
38222
|
-
tip: "\
|
|
38265
|
+
tip: "\u5185\u5BB9\u5DF2\u5931\u6548",
|
|
38223
38266
|
className: src_detail_index_module["live-empty"]
|
|
38224
38267
|
});
|
|
38225
38268
|
}
|