@x-edu/live-player 0.0.50 → 0.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/XEduLivePlayer.common.js +771 -384
- package/package.json +1 -1
|
@@ -2781,7 +2781,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2781
2781
|
|
|
2782
2782
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2783
2783
|
// Module
|
|
2784
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_timeBar_w1L71{display:flex;align-items:center;gap:
|
|
2784
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_timeBar_w1L71{display:flex;align-items:center;gap:4px}.index-module_cardTimeBar_7u8GK{justify-content:space-between}.index-module_statusText_\\+RyAK,.index-module_viewer_J8lJp{display:flex;gap:4px;font-size:12px;color:#666}.index-module_countdown_Ve6aF{display:flex}.index-module_countdownBox_Vvek-{display:flex;align-items:center;gap:4px;font-size:14px;color:#666}", ""]);
|
|
2785
2785
|
// Exports
|
|
2786
2786
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2787
2787
|
"timeBar": "index-module_timeBar_w1L71",
|
|
@@ -25839,6 +25839,13 @@ module.exports = styleTagTransform;
|
|
|
25839
25839
|
|
|
25840
25840
|
/***/ }),
|
|
25841
25841
|
|
|
25842
|
+
/***/ 5273:
|
|
25843
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25844
|
+
|
|
25845
|
+
module.exports = __webpack_require__(5666);
|
|
25846
|
+
|
|
25847
|
+
/***/ }),
|
|
25848
|
+
|
|
25842
25849
|
/***/ 3006:
|
|
25843
25850
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25844
25851
|
|
|
@@ -33438,6 +33445,9 @@ var index_module_update = injectStylesIntoStyleTag_default()(index_module/* defa
|
|
|
33438
33445
|
|
|
33439
33446
|
/* harmony default export */ var LiveCountDown_index_module = (index_module/* default */.Z && index_module/* default.locals */.Z.locals ? index_module/* default.locals */.Z.locals : undefined);
|
|
33440
33447
|
|
|
33448
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
33449
|
+
var runtime_regenerator = __webpack_require__(5273);
|
|
33450
|
+
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
33441
33451
|
;// CONCATENATED MODULE: ./src/hook/useIsMounted.js
|
|
33442
33452
|
|
|
33443
33453
|
|
|
@@ -33504,9 +33514,9 @@ function isSourceReady(_x) {
|
|
|
33504
33514
|
}
|
|
33505
33515
|
|
|
33506
33516
|
function _isSourceReady() {
|
|
33507
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33517
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(liveInfo) {
|
|
33508
33518
|
var newLiveInfo;
|
|
33509
|
-
return
|
|
33519
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33510
33520
|
while (1) {
|
|
33511
33521
|
switch (_context.prev = _context.next) {
|
|
33512
33522
|
case 0:
|
|
@@ -33683,12 +33693,12 @@ function usePullSource(_ref) {
|
|
|
33683
33693
|
}
|
|
33684
33694
|
|
|
33685
33695
|
function _checkLiveReadyInterval() {
|
|
33686
|
-
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33696
|
+
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
33687
33697
|
var i,
|
|
33688
33698
|
liveStatus,
|
|
33689
33699
|
isSourceReady,
|
|
33690
33700
|
_args = arguments;
|
|
33691
|
-
return
|
|
33701
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33692
33702
|
while (1) {
|
|
33693
33703
|
switch (_context.prev = _context.next) {
|
|
33694
33704
|
case 0:
|
|
@@ -33774,8 +33784,8 @@ function checkSourceReady(_x) {
|
|
|
33774
33784
|
}
|
|
33775
33785
|
|
|
33776
33786
|
function _checkSourceReady() {
|
|
33777
|
-
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33778
|
-
return
|
|
33787
|
+
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(url) {
|
|
33788
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
33779
33789
|
while (1) {
|
|
33780
33790
|
switch (_context2.prev = _context2.next) {
|
|
33781
33791
|
case 0:
|
|
@@ -33808,9 +33818,9 @@ function getLiveNewStatus(_x2) {
|
|
|
33808
33818
|
}
|
|
33809
33819
|
|
|
33810
33820
|
function _getLiveNewStatus() {
|
|
33811
|
-
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33821
|
+
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(liveInfo) {
|
|
33812
33822
|
var newLiveInfo;
|
|
33813
|
-
return
|
|
33823
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
33814
33824
|
while (1) {
|
|
33815
33825
|
switch (_context3.prev = _context3.next) {
|
|
33816
33826
|
case 0:
|
|
@@ -34460,6 +34470,39 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
34460
34470
|
// style dependencies
|
|
34461
34471
|
|
|
34462
34472
|
|
|
34473
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
34474
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
34475
|
+
if (key in obj) {
|
|
34476
|
+
Object.defineProperty(obj, key, {
|
|
34477
|
+
value: value,
|
|
34478
|
+
enumerable: true,
|
|
34479
|
+
configurable: true,
|
|
34480
|
+
writable: true
|
|
34481
|
+
});
|
|
34482
|
+
} else {
|
|
34483
|
+
obj[key] = value;
|
|
34484
|
+
}
|
|
34485
|
+
|
|
34486
|
+
return obj;
|
|
34487
|
+
}
|
|
34488
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
34489
|
+
function esm_extends_extends() {
|
|
34490
|
+
esm_extends_extends = Object.assign || function (target) {
|
|
34491
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
34492
|
+
var source = arguments[i];
|
|
34493
|
+
|
|
34494
|
+
for (var key in source) {
|
|
34495
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34496
|
+
target[key] = source[key];
|
|
34497
|
+
}
|
|
34498
|
+
}
|
|
34499
|
+
}
|
|
34500
|
+
|
|
34501
|
+
return target;
|
|
34502
|
+
};
|
|
34503
|
+
|
|
34504
|
+
return esm_extends_extends.apply(this, arguments);
|
|
34505
|
+
}
|
|
34463
34506
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
34464
34507
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
34465
34508
|
if (Array.isArray(arr)) return arr;
|
|
@@ -34494,6 +34537,26 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
34494
34537
|
|
|
34495
34538
|
return _arr;
|
|
34496
34539
|
}
|
|
34540
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34541
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34542
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
34543
|
+
|
|
34544
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34545
|
+
arr2[i] = arr[i];
|
|
34546
|
+
}
|
|
34547
|
+
|
|
34548
|
+
return arr2;
|
|
34549
|
+
}
|
|
34550
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34551
|
+
|
|
34552
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34553
|
+
if (!o) return;
|
|
34554
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34555
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34556
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34557
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34558
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34559
|
+
}
|
|
34497
34560
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34498
34561
|
function nonIterableRest_nonIterableRest() {
|
|
34499
34562
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34504,7 +34567,130 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34504
34567
|
|
|
34505
34568
|
|
|
34506
34569
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34507
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
34570
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34571
|
+
}
|
|
34572
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34573
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
34574
|
+
if (!(instance instanceof Constructor)) {
|
|
34575
|
+
throw new TypeError("Cannot call a class as a function");
|
|
34576
|
+
}
|
|
34577
|
+
}
|
|
34578
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
34579
|
+
function createClass_defineProperties(target, props) {
|
|
34580
|
+
for (var i = 0; i < props.length; i++) {
|
|
34581
|
+
var descriptor = props[i];
|
|
34582
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
34583
|
+
descriptor.configurable = true;
|
|
34584
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
34585
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34586
|
+
}
|
|
34587
|
+
}
|
|
34588
|
+
|
|
34589
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
34590
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
34591
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
34592
|
+
return Constructor;
|
|
34593
|
+
}
|
|
34594
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
34595
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
34596
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
34597
|
+
o.__proto__ = p;
|
|
34598
|
+
return o;
|
|
34599
|
+
};
|
|
34600
|
+
|
|
34601
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
34602
|
+
}
|
|
34603
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
34604
|
+
|
|
34605
|
+
function inherits_inherits(subClass, superClass) {
|
|
34606
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
34607
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
34608
|
+
}
|
|
34609
|
+
|
|
34610
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
34611
|
+
constructor: {
|
|
34612
|
+
value: subClass,
|
|
34613
|
+
writable: true,
|
|
34614
|
+
configurable: true
|
|
34615
|
+
}
|
|
34616
|
+
});
|
|
34617
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
34618
|
+
}
|
|
34619
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
34620
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
34621
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
34622
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
34623
|
+
};
|
|
34624
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
34625
|
+
}
|
|
34626
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
34627
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
34628
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
34629
|
+
if (Reflect.construct.sham) return false;
|
|
34630
|
+
if (typeof Proxy === "function") return true;
|
|
34631
|
+
|
|
34632
|
+
try {
|
|
34633
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
34634
|
+
return true;
|
|
34635
|
+
} catch (e) {
|
|
34636
|
+
return false;
|
|
34637
|
+
}
|
|
34638
|
+
}
|
|
34639
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
34640
|
+
function esm_typeof_typeof(obj) {
|
|
34641
|
+
"@babel/helpers - typeof";
|
|
34642
|
+
|
|
34643
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
34644
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
34645
|
+
return typeof obj;
|
|
34646
|
+
};
|
|
34647
|
+
} else {
|
|
34648
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
34649
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
34650
|
+
};
|
|
34651
|
+
}
|
|
34652
|
+
|
|
34653
|
+
return esm_typeof_typeof(obj);
|
|
34654
|
+
}
|
|
34655
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
34656
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
34657
|
+
if (self === void 0) {
|
|
34658
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34659
|
+
}
|
|
34660
|
+
|
|
34661
|
+
return self;
|
|
34662
|
+
}
|
|
34663
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
34664
|
+
|
|
34665
|
+
|
|
34666
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
34667
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
34668
|
+
return call;
|
|
34669
|
+
} else if (call !== void 0) {
|
|
34670
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
34671
|
+
}
|
|
34672
|
+
|
|
34673
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
34674
|
+
}
|
|
34675
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
34676
|
+
|
|
34677
|
+
|
|
34678
|
+
|
|
34679
|
+
function createSuper_createSuper(Derived) {
|
|
34680
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
34681
|
+
return function _createSuperInternal() {
|
|
34682
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
34683
|
+
result;
|
|
34684
|
+
|
|
34685
|
+
if (hasNativeReflectConstruct) {
|
|
34686
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
34687
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
34688
|
+
} else {
|
|
34689
|
+
result = Super.apply(this, arguments);
|
|
34690
|
+
}
|
|
34691
|
+
|
|
34692
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
34693
|
+
};
|
|
34508
34694
|
}
|
|
34509
34695
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34510
34696
|
var raf = function raf(callback) {
|
|
@@ -34731,6 +34917,27 @@ var cacheStyle = {};
|
|
|
34731
34917
|
}
|
|
34732
34918
|
}
|
|
34733
34919
|
});
|
|
34920
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34921
|
+
|
|
34922
|
+
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34923
|
+
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34924
|
+
}
|
|
34925
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34926
|
+
function iterableToArray_iterableToArray(iter) {
|
|
34927
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34928
|
+
}
|
|
34929
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34930
|
+
function nonIterableSpread_nonIterableSpread() {
|
|
34931
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34932
|
+
}
|
|
34933
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34934
|
+
|
|
34935
|
+
|
|
34936
|
+
|
|
34937
|
+
|
|
34938
|
+
function toConsumableArray_toConsumableArray(arr) {
|
|
34939
|
+
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34940
|
+
}
|
|
34734
34941
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34735
34942
|
|
|
34736
34943
|
|
|
@@ -34747,7 +34954,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34747
34954
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34748
34955
|
var _this = this;
|
|
34749
34956
|
|
|
34750
|
-
|
|
34957
|
+
classCallCheck_classCallCheck(this, ScrollLocker);
|
|
34751
34958
|
|
|
34752
34959
|
this.lockTarget = void 0;
|
|
34753
34960
|
this.options = void 0;
|
|
@@ -34795,7 +35002,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34795
35002
|
var options = _ref3.options;
|
|
34796
35003
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34797
35004
|
})) {
|
|
34798
|
-
locks = [].concat(
|
|
35005
|
+
locks = [].concat(toConsumableArray_toConsumableArray(locks), [{
|
|
34799
35006
|
target: _this.lockTarget,
|
|
34800
35007
|
options: _this.options
|
|
34801
35008
|
}]);
|
|
@@ -34833,7 +35040,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34833
35040
|
container.className = addClassName.trim();
|
|
34834
35041
|
}
|
|
34835
35042
|
|
|
34836
|
-
locks = [].concat(
|
|
35043
|
+
locks = [].concat(toConsumableArray_toConsumableArray(locks), [{
|
|
34837
35044
|
target: _this.lockTarget,
|
|
34838
35045
|
options: _this.options
|
|
34839
35046
|
}]);
|
|
@@ -34917,7 +35124,7 @@ var getParent = function getParent(getContainer) {
|
|
|
34917
35124
|
return getContainer();
|
|
34918
35125
|
}
|
|
34919
35126
|
|
|
34920
|
-
if (
|
|
35127
|
+
if (esm_typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
34921
35128
|
return getContainer;
|
|
34922
35129
|
}
|
|
34923
35130
|
}
|
|
@@ -34926,14 +35133,14 @@ var getParent = function getParent(getContainer) {
|
|
|
34926
35133
|
};
|
|
34927
35134
|
|
|
34928
35135
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
34929
|
-
|
|
35136
|
+
inherits_inherits(PortalWrapper, _React$Component);
|
|
34930
35137
|
|
|
34931
|
-
var _super =
|
|
35138
|
+
var _super = createSuper_createSuper(PortalWrapper);
|
|
34932
35139
|
|
|
34933
35140
|
function PortalWrapper(props) {
|
|
34934
35141
|
var _this;
|
|
34935
35142
|
|
|
34936
|
-
|
|
35143
|
+
classCallCheck_classCallCheck(this, PortalWrapper);
|
|
34937
35144
|
|
|
34938
35145
|
_this = _super.call(this, props);
|
|
34939
35146
|
_this.container = void 0;
|
|
@@ -35053,7 +35260,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35053
35260
|
return _this;
|
|
35054
35261
|
}
|
|
35055
35262
|
|
|
35056
|
-
|
|
35263
|
+
createClass_createClass(PortalWrapper, [{
|
|
35057
35264
|
key: "componentDidMount",
|
|
35058
35265
|
value: function componentDidMount() {
|
|
35059
35266
|
var _this2 = this;
|
|
@@ -35121,6 +35328,46 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35121
35328
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
35122
35329
|
|
|
35123
35330
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
35331
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
35332
|
+
|
|
35333
|
+
|
|
35334
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
35335
|
+
var keys = Object.keys(object);
|
|
35336
|
+
|
|
35337
|
+
if (Object.getOwnPropertySymbols) {
|
|
35338
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
35339
|
+
|
|
35340
|
+
if (enumerableOnly) {
|
|
35341
|
+
symbols = symbols.filter(function (sym) {
|
|
35342
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
35343
|
+
});
|
|
35344
|
+
}
|
|
35345
|
+
|
|
35346
|
+
keys.push.apply(keys, symbols);
|
|
35347
|
+
}
|
|
35348
|
+
|
|
35349
|
+
return keys;
|
|
35350
|
+
}
|
|
35351
|
+
|
|
35352
|
+
function objectSpread2_objectSpread2(target) {
|
|
35353
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
35354
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
35355
|
+
|
|
35356
|
+
if (i % 2) {
|
|
35357
|
+
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
35358
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
35359
|
+
});
|
|
35360
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
35361
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
35362
|
+
} else {
|
|
35363
|
+
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
35364
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
35365
|
+
});
|
|
35366
|
+
}
|
|
35367
|
+
}
|
|
35368
|
+
|
|
35369
|
+
return target;
|
|
35370
|
+
}
|
|
35124
35371
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
35125
35372
|
/**
|
|
35126
35373
|
* @ignore
|
|
@@ -35787,7 +36034,7 @@ function pickAttrs(props) {
|
|
|
35787
36034
|
aria: true
|
|
35788
36035
|
};
|
|
35789
36036
|
} else {
|
|
35790
|
-
mergedConfig =
|
|
36037
|
+
mergedConfig = objectSpread2_objectSpread2({}, ariaOnly);
|
|
35791
36038
|
}
|
|
35792
36039
|
|
|
35793
36040
|
var attrs = {};
|
|
@@ -35820,7 +36067,7 @@ var react_is = __webpack_require__(9864);
|
|
|
35820
36067
|
function fillRef(ref, node) {
|
|
35821
36068
|
if (typeof ref === 'function') {
|
|
35822
36069
|
ref(node);
|
|
35823
|
-
} else if (
|
|
36070
|
+
} else if (esm_typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
35824
36071
|
ref.current = node;
|
|
35825
36072
|
}
|
|
35826
36073
|
}
|
|
@@ -35930,7 +36177,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
35930
36177
|
function getTransitionName(transitionName, transitionType) {
|
|
35931
36178
|
if (!transitionName) return null;
|
|
35932
36179
|
|
|
35933
|
-
if (
|
|
36180
|
+
if (esm_typeof_typeof(transitionName) === 'object') {
|
|
35934
36181
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
35935
36182
|
return match[1].toUpperCase();
|
|
35936
36183
|
});
|
|
@@ -36223,13 +36470,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36223
36470
|
|
|
36224
36471
|
switch (status) {
|
|
36225
36472
|
case 'appear':
|
|
36226
|
-
return _ref2 = {},
|
|
36473
|
+
return _ref2 = {}, defineProperty_defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), defineProperty_defineProperty(_ref2, STEP_START, onAppearStart), defineProperty_defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
36227
36474
|
|
|
36228
36475
|
case 'enter':
|
|
36229
|
-
return _ref3 = {},
|
|
36476
|
+
return _ref3 = {}, defineProperty_defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), defineProperty_defineProperty(_ref3, STEP_START, onEnterStart), defineProperty_defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
36230
36477
|
|
|
36231
36478
|
case 'leave':
|
|
36232
|
-
return _ref4 = {},
|
|
36479
|
+
return _ref4 = {}, defineProperty_defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), defineProperty_defineProperty(_ref4, STEP_START, onLeaveStart), defineProperty_defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
36233
36480
|
|
|
36234
36481
|
default:
|
|
36235
36482
|
return {};
|
|
@@ -36337,7 +36584,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36337
36584
|
var mergedStyle = style;
|
|
36338
36585
|
|
|
36339
36586
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
36340
|
-
mergedStyle =
|
|
36587
|
+
mergedStyle = objectSpread2_objectSpread2({
|
|
36341
36588
|
transition: 'none'
|
|
36342
36589
|
}, mergedStyle);
|
|
36343
36590
|
}
|
|
@@ -36352,17 +36599,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36352
36599
|
|
|
36353
36600
|
|
|
36354
36601
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
36355
|
-
|
|
36602
|
+
inherits_inherits(DomWrapper, _React$Component);
|
|
36356
36603
|
|
|
36357
|
-
var _super =
|
|
36604
|
+
var _super = createSuper_createSuper(DomWrapper);
|
|
36358
36605
|
|
|
36359
36606
|
function DomWrapper() {
|
|
36360
|
-
|
|
36607
|
+
classCallCheck_classCallCheck(this, DomWrapper);
|
|
36361
36608
|
|
|
36362
36609
|
return _super.apply(this, arguments);
|
|
36363
36610
|
}
|
|
36364
36611
|
|
|
36365
|
-
|
|
36612
|
+
createClass_createClass(DomWrapper, [{
|
|
36366
36613
|
key: "render",
|
|
36367
36614
|
value: function render() {
|
|
36368
36615
|
return this.props.children;
|
|
@@ -36398,7 +36645,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
36398
36645
|
function genCSSMotion(config) {
|
|
36399
36646
|
var transitionSupport = config;
|
|
36400
36647
|
|
|
36401
|
-
if (
|
|
36648
|
+
if (esm_typeof_typeof(config) === 'object') {
|
|
36402
36649
|
transitionSupport = config.transitionSupport;
|
|
36403
36650
|
}
|
|
36404
36651
|
|
|
@@ -36456,7 +36703,7 @@ function genCSSMotion(config) {
|
|
|
36456
36703
|
|
|
36457
36704
|
var motionChildren;
|
|
36458
36705
|
|
|
36459
|
-
var mergedProps =
|
|
36706
|
+
var mergedProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, eventProps), {}, {
|
|
36460
36707
|
visible: visible
|
|
36461
36708
|
});
|
|
36462
36709
|
|
|
@@ -36466,13 +36713,13 @@ function genCSSMotion(config) {
|
|
|
36466
36713
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
36467
36714
|
// Stable children
|
|
36468
36715
|
if (mergedVisible) {
|
|
36469
|
-
motionChildren = children(
|
|
36716
|
+
motionChildren = children(objectSpread2_objectSpread2({}, mergedProps), setNodeRef);
|
|
36470
36717
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
36471
|
-
motionChildren = children(
|
|
36718
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36472
36719
|
className: leavedClassName
|
|
36473
36720
|
}), setNodeRef);
|
|
36474
36721
|
} else if (forceRender) {
|
|
36475
|
-
motionChildren = children(
|
|
36722
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36476
36723
|
style: {
|
|
36477
36724
|
display: 'none'
|
|
36478
36725
|
}
|
|
@@ -36494,8 +36741,8 @@ function genCSSMotion(config) {
|
|
|
36494
36741
|
statusSuffix = 'start';
|
|
36495
36742
|
}
|
|
36496
36743
|
|
|
36497
|
-
motionChildren = children(
|
|
36498
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
36744
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36745
|
+
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {}, defineProperty_defineProperty(_classNames, getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix)), statusSuffix), defineProperty_defineProperty(_classNames, motionName, typeof motionName === 'string'), _classNames)),
|
|
36499
36746
|
style: statusStyle
|
|
36500
36747
|
}), setNodeRef);
|
|
36501
36748
|
}
|
|
@@ -36508,6 +36755,41 @@ function genCSSMotion(config) {
|
|
|
36508
36755
|
return CSSMotion;
|
|
36509
36756
|
}
|
|
36510
36757
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36758
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36759
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36760
|
+
if (source == null) return {};
|
|
36761
|
+
var target = {};
|
|
36762
|
+
var sourceKeys = Object.keys(source);
|
|
36763
|
+
var key, i;
|
|
36764
|
+
|
|
36765
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
36766
|
+
key = sourceKeys[i];
|
|
36767
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36768
|
+
target[key] = source[key];
|
|
36769
|
+
}
|
|
36770
|
+
|
|
36771
|
+
return target;
|
|
36772
|
+
}
|
|
36773
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36774
|
+
|
|
36775
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36776
|
+
if (source == null) return {};
|
|
36777
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36778
|
+
var key, i;
|
|
36779
|
+
|
|
36780
|
+
if (Object.getOwnPropertySymbols) {
|
|
36781
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36782
|
+
|
|
36783
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36784
|
+
key = sourceSymbolKeys[i];
|
|
36785
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36786
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36787
|
+
target[key] = source[key];
|
|
36788
|
+
}
|
|
36789
|
+
}
|
|
36790
|
+
|
|
36791
|
+
return target;
|
|
36792
|
+
}
|
|
36511
36793
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
36512
36794
|
|
|
36513
36795
|
|
|
@@ -36518,7 +36800,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
36518
36800
|
function wrapKeyToObject(key) {
|
|
36519
36801
|
var keyObj;
|
|
36520
36802
|
|
|
36521
|
-
if (key &&
|
|
36803
|
+
if (key && esm_typeof_typeof(key) === 'object' && 'key' in key) {
|
|
36522
36804
|
keyObj = key;
|
|
36523
36805
|
} else {
|
|
36524
36806
|
keyObj = {
|
|
@@ -36526,7 +36808,7 @@ function wrapKeyToObject(key) {
|
|
|
36526
36808
|
};
|
|
36527
36809
|
}
|
|
36528
36810
|
|
|
36529
|
-
return
|
|
36811
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
36530
36812
|
key: String(keyObj.key)
|
|
36531
36813
|
});
|
|
36532
36814
|
}
|
|
@@ -36553,14 +36835,14 @@ function diffKeys() {
|
|
|
36553
36835
|
// New added keys should add before current key
|
|
36554
36836
|
if (currentIndex < i) {
|
|
36555
36837
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
36556
|
-
return
|
|
36838
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
36557
36839
|
status: STATUS_ADD
|
|
36558
36840
|
});
|
|
36559
36841
|
}));
|
|
36560
36842
|
currentIndex = i;
|
|
36561
36843
|
}
|
|
36562
36844
|
|
|
36563
|
-
list.push(
|
|
36845
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentKeyObj), {}, {
|
|
36564
36846
|
status: STATUS_KEEP
|
|
36565
36847
|
}));
|
|
36566
36848
|
currentIndex += 1;
|
|
@@ -36571,7 +36853,7 @@ function diffKeys() {
|
|
|
36571
36853
|
|
|
36572
36854
|
|
|
36573
36855
|
if (!hit) {
|
|
36574
|
-
list.push(
|
|
36856
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
36575
36857
|
status: STATUS_REMOVE
|
|
36576
36858
|
}));
|
|
36577
36859
|
}
|
|
@@ -36579,7 +36861,7 @@ function diffKeys() {
|
|
|
36579
36861
|
|
|
36580
36862
|
if (currentIndex < currentLen) {
|
|
36581
36863
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36582
|
-
return
|
|
36864
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
36583
36865
|
status: STATUS_ADD
|
|
36584
36866
|
});
|
|
36585
36867
|
}));
|
|
@@ -36640,14 +36922,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36640
36922
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36641
36923
|
|
|
36642
36924
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36643
|
-
|
|
36925
|
+
inherits_inherits(CSSMotionList, _React$Component);
|
|
36644
36926
|
|
|
36645
|
-
var _super =
|
|
36927
|
+
var _super = createSuper_createSuper(CSSMotionList);
|
|
36646
36928
|
|
|
36647
36929
|
function CSSMotionList() {
|
|
36648
36930
|
var _this;
|
|
36649
36931
|
|
|
36650
|
-
|
|
36932
|
+
classCallCheck_classCallCheck(this, CSSMotionList);
|
|
36651
36933
|
|
|
36652
36934
|
_this = _super.apply(this, arguments);
|
|
36653
36935
|
_this.state = {
|
|
@@ -36660,7 +36942,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36660
36942
|
return {
|
|
36661
36943
|
keyEntities: keyEntities.map(function (entity) {
|
|
36662
36944
|
if (entity.key !== removeKey) return entity;
|
|
36663
|
-
return
|
|
36945
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, entity), {}, {
|
|
36664
36946
|
status: STATUS_REMOVED
|
|
36665
36947
|
});
|
|
36666
36948
|
})
|
|
@@ -36671,7 +36953,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36671
36953
|
return _this;
|
|
36672
36954
|
}
|
|
36673
36955
|
|
|
36674
|
-
|
|
36956
|
+
createClass_createClass(CSSMotionList, [{
|
|
36675
36957
|
key: "render",
|
|
36676
36958
|
value: function render() {
|
|
36677
36959
|
var _this2 = this;
|
|
@@ -36682,7 +36964,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36682
36964
|
component = _this$props.component,
|
|
36683
36965
|
children = _this$props.children,
|
|
36684
36966
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36685
|
-
restProps =
|
|
36967
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36686
36968
|
|
|
36687
36969
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36688
36970
|
var motionProps = {};
|
|
@@ -36693,10 +36975,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36693
36975
|
delete restProps.keys;
|
|
36694
36976
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36695
36977
|
var status = _ref2.status,
|
|
36696
|
-
eventProps =
|
|
36978
|
+
eventProps = objectWithoutProperties_objectWithoutProperties(_ref2, ["status"]);
|
|
36697
36979
|
|
|
36698
36980
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36699
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
36981
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, esm_extends_extends({}, motionProps, {
|
|
36700
36982
|
key: eventProps.key,
|
|
36701
36983
|
visible: visible,
|
|
36702
36984
|
eventProps: eventProps,
|
|
@@ -36770,8 +37052,8 @@ function Mask(props) {
|
|
|
36770
37052
|
}, function (_ref) {
|
|
36771
37053
|
var motionClassName = _ref.className,
|
|
36772
37054
|
motionStyle = _ref.style;
|
|
36773
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36774
|
-
style:
|
|
37055
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
37056
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), style),
|
|
36775
37057
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36776
37058
|
}, maskProps));
|
|
36777
37059
|
});
|
|
@@ -36954,7 +37236,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36954
37236
|
|
|
36955
37237
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
36956
37238
|
className: "".concat(prefixCls, "-content")
|
|
36957
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37239
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36958
37240
|
className: "".concat(prefixCls, "-body"),
|
|
36959
37241
|
style: bodyStyle
|
|
36960
37242
|
}, bodyProps), children), footerNode);
|
|
@@ -36974,7 +37256,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36974
37256
|
key: "dialog-element",
|
|
36975
37257
|
role: "document",
|
|
36976
37258
|
ref: motionRef,
|
|
36977
|
-
style:
|
|
37259
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), style), contentStyle),
|
|
36978
37260
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
36979
37261
|
onMouseDown: onMouseDown,
|
|
36980
37262
|
onMouseUp: onMouseUp
|
|
@@ -37156,7 +37438,7 @@ function Dialog(props) {
|
|
|
37156
37438
|
return function () {};
|
|
37157
37439
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
37158
37440
|
|
|
37159
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37441
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
37160
37442
|
className: "".concat(prefixCls, "-root")
|
|
37161
37443
|
}, pickAttrs(props, {
|
|
37162
37444
|
data: true
|
|
@@ -37164,11 +37446,11 @@ function Dialog(props) {
|
|
|
37164
37446
|
prefixCls: prefixCls,
|
|
37165
37447
|
visible: mask && visible,
|
|
37166
37448
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
37167
|
-
style:
|
|
37449
|
+
style: objectSpread2_objectSpread2({
|
|
37168
37450
|
zIndex: zIndex
|
|
37169
37451
|
}, maskStyle),
|
|
37170
37452
|
maskProps: maskProps
|
|
37171
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37453
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
37172
37454
|
tabIndex: -1,
|
|
37173
37455
|
onKeyDown: onWrapperKeyDown,
|
|
37174
37456
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -37176,12 +37458,12 @@ function Dialog(props) {
|
|
|
37176
37458
|
onClick: onWrapperClick,
|
|
37177
37459
|
role: "dialog",
|
|
37178
37460
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
37179
|
-
style:
|
|
37461
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
37180
37462
|
zIndex: zIndex
|
|
37181
37463
|
}, wrapStyle), {}, {
|
|
37182
37464
|
display: !animatedVisible ? 'none' : null
|
|
37183
37465
|
})
|
|
37184
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
37466
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, esm_extends_extends({}, props, {
|
|
37185
37467
|
onMouseDown: onContentMouseDown,
|
|
37186
37468
|
onMouseUp: onContentMouseUp,
|
|
37187
37469
|
ref: contentRef,
|
|
@@ -37229,7 +37511,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37229
37511
|
}, [visible]); // 渲染在当前 dom 里;
|
|
37230
37512
|
|
|
37231
37513
|
if (getContainer === false) {
|
|
37232
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37514
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
37233
37515
|
getOpenCount: function getOpenCount() {
|
|
37234
37516
|
return 2;
|
|
37235
37517
|
} // 不对 body 做任何操作。。
|
|
@@ -37247,7 +37529,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37247
37529
|
forceRender: forceRender,
|
|
37248
37530
|
getContainer: getContainer
|
|
37249
37531
|
}, function (childProps) {
|
|
37250
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37532
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
37251
37533
|
destroyOnClose: destroyOnClose,
|
|
37252
37534
|
afterClose: function afterClose() {
|
|
37253
37535
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -37282,8 +37564,8 @@ function getConfirmLocale() {
|
|
|
37282
37564
|
|
|
37283
37565
|
|
|
37284
37566
|
|
|
37285
|
-
var UnreachableException = /*#__PURE__*/
|
|
37286
|
-
|
|
37567
|
+
var UnreachableException = /*#__PURE__*/createClass_createClass(function UnreachableException(value) {
|
|
37568
|
+
classCallCheck_classCallCheck(this, UnreachableException);
|
|
37287
37569
|
|
|
37288
37570
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
37289
37571
|
});
|
|
@@ -37346,8 +37628,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
37346
37628
|
console.warn(new UnreachableException(size).error);
|
|
37347
37629
|
}
|
|
37348
37630
|
|
|
37349
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37350
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37631
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37632
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, others, {
|
|
37351
37633
|
className: classes
|
|
37352
37634
|
}));
|
|
37353
37635
|
});
|
|
@@ -37418,14 +37700,14 @@ function isNotGrey(color) {
|
|
|
37418
37700
|
}
|
|
37419
37701
|
|
|
37420
37702
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
37421
|
-
|
|
37703
|
+
inherits_inherits(Wave, _React$Component);
|
|
37422
37704
|
|
|
37423
|
-
var _super =
|
|
37705
|
+
var _super = createSuper_createSuper(Wave);
|
|
37424
37706
|
|
|
37425
37707
|
function Wave() {
|
|
37426
37708
|
var _this;
|
|
37427
37709
|
|
|
37428
|
-
|
|
37710
|
+
classCallCheck_classCallCheck(this, Wave);
|
|
37429
37711
|
|
|
37430
37712
|
_this = _super.apply(this, arguments);
|
|
37431
37713
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -37445,7 +37727,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37445
37727
|
|
|
37446
37728
|
_this.extraNode = document.createElement('div');
|
|
37447
37729
|
|
|
37448
|
-
var _assertThisInitialize =
|
|
37730
|
+
var _assertThisInitialize = assertThisInitialized_assertThisInitialized(_this),
|
|
37449
37731
|
extraNode = _assertThisInitialize.extraNode;
|
|
37450
37732
|
|
|
37451
37733
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -37552,7 +37834,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37552
37834
|
return _this;
|
|
37553
37835
|
}
|
|
37554
37836
|
|
|
37555
|
-
|
|
37837
|
+
createClass_createClass(Wave, [{
|
|
37556
37838
|
key: "componentDidMount",
|
|
37557
37839
|
value: function componentDidMount() {
|
|
37558
37840
|
var node = this.containerRef.current;
|
|
@@ -37779,7 +38061,7 @@ function spaceChildren(children, needInserted) {
|
|
|
37779
38061
|
var isPrevChildPure = false;
|
|
37780
38062
|
var childList = [];
|
|
37781
38063
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
37782
|
-
var type =
|
|
38064
|
+
var type = esm_typeof_typeof(child);
|
|
37783
38065
|
|
|
37784
38066
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
37785
38067
|
|
|
@@ -37879,7 +38161,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37879
38161
|
}; // =============== Update Loading ===============
|
|
37880
38162
|
|
|
37881
38163
|
|
|
37882
|
-
var loadingOrDelay =
|
|
38164
|
+
var loadingOrDelay = esm_typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
37883
38165
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
37884
38166
|
clearTimeout(delayTimeoutRef.current);
|
|
37885
38167
|
|
|
@@ -37919,7 +38201,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37919
38201
|
var sizeFullname = customizeSize || size;
|
|
37920
38202
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
37921
38203
|
var iconType = innerLoading ? 'loading' : icon;
|
|
37922
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
38204
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(type), type), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(shape), shape !== 'default' && shape), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-icon-only"), !children && children !== 0 && !!iconType), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-background-ghost"), ghost && !isUnborderedButtonType(type)), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-loading"), innerLoading), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-two-chinese-chars"), hasTwoCNChar && autoInsertSpace), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-block"), block), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-dangerous"), !!danger), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37923
38205
|
var iconNode;
|
|
37924
38206
|
|
|
37925
38207
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -37938,14 +38220,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37938
38220
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
37939
38221
|
|
|
37940
38222
|
if (linkButtonRestProps.href !== undefined) {
|
|
37941
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
38223
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", esm_extends_extends({}, linkButtonRestProps, {
|
|
37942
38224
|
className: classes,
|
|
37943
38225
|
onClick: handleClick,
|
|
37944
38226
|
ref: buttonRef
|
|
37945
38227
|
}), iconNode, kids);
|
|
37946
38228
|
}
|
|
37947
38229
|
|
|
37948
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
38230
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", esm_extends_extends({}, rest, {
|
|
37949
38231
|
type: htmlType,
|
|
37950
38232
|
className: classes,
|
|
37951
38233
|
onClick: handleClick,
|
|
@@ -38123,9 +38405,9 @@ var Modal = function Modal(props) {
|
|
|
38123
38405
|
okType = props.okType,
|
|
38124
38406
|
cancelText = props.cancelText,
|
|
38125
38407
|
confirmLoading = props.confirmLoading;
|
|
38126
|
-
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,
|
|
38408
|
+
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, esm_extends_extends({
|
|
38127
38409
|
onClick: handleCancel
|
|
38128
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
38410
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, esm_extends_extends({}, convertLegacyProps(okType), {
|
|
38129
38411
|
loading: confirmLoading,
|
|
38130
38412
|
onClick: handleOk
|
|
38131
38413
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -38160,8 +38442,8 @@ var Modal = function Modal(props) {
|
|
|
38160
38442
|
type: "close",
|
|
38161
38443
|
className: "".concat(prefixCls, "-close-icon")
|
|
38162
38444
|
}));
|
|
38163
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
38164
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
38445
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
38446
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, esm_extends_extends({}, restProps, {
|
|
38165
38447
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
38166
38448
|
prefixCls: prefixCls,
|
|
38167
38449
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -38287,7 +38569,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
38287
38569
|
children = props.children,
|
|
38288
38570
|
prefixCls = props.prefixCls,
|
|
38289
38571
|
buttonProps = props.buttonProps;
|
|
38290
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
38572
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, esm_extends_extends({}, convertLegacyProps(type), {
|
|
38291
38573
|
onClick: onClick,
|
|
38292
38574
|
loading: loading,
|
|
38293
38575
|
prefixCls: prefixCls
|
|
@@ -39803,7 +40085,7 @@ function get(entity, path) {
|
|
|
39803
40085
|
|
|
39804
40086
|
|
|
39805
40087
|
function _toArray(arr) {
|
|
39806
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
40088
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
39807
40089
|
}
|
|
39808
40090
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
39809
40091
|
|
|
@@ -39825,9 +40107,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
39825
40107
|
if (!entity && typeof path === 'number') {
|
|
39826
40108
|
clone = [];
|
|
39827
40109
|
} else if (Array.isArray(entity)) {
|
|
39828
|
-
clone =
|
|
40110
|
+
clone = toConsumableArray_toConsumableArray(entity);
|
|
39829
40111
|
} else {
|
|
39830
|
-
clone =
|
|
40112
|
+
clone = objectSpread2_objectSpread2({}, entity);
|
|
39831
40113
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
39832
40114
|
|
|
39833
40115
|
|
|
@@ -39891,7 +40173,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
39891
40173
|
}
|
|
39892
40174
|
|
|
39893
40175
|
function isObject(obj) {
|
|
39894
|
-
return
|
|
40176
|
+
return esm_typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
39895
40177
|
}
|
|
39896
40178
|
/**
|
|
39897
40179
|
* Copy values into store and return a new values object
|
|
@@ -39900,7 +40182,7 @@ function isObject(obj) {
|
|
|
39900
40182
|
|
|
39901
40183
|
|
|
39902
40184
|
function internalSetValues(store, values) {
|
|
39903
|
-
var newStore = Array.isArray(store) ?
|
|
40185
|
+
var newStore = Array.isArray(store) ? toConsumableArray_toConsumableArray(store) : objectSpread2_objectSpread2({}, store);
|
|
39904
40186
|
|
|
39905
40187
|
if (!values) {
|
|
39906
40188
|
return newStore;
|
|
@@ -39943,14 +40225,14 @@ function isSimilar(source, target) {
|
|
|
39943
40225
|
return false;
|
|
39944
40226
|
}
|
|
39945
40227
|
|
|
39946
|
-
if (!source || !target ||
|
|
40228
|
+
if (!source || !target || esm_typeof_typeof(source) !== 'object' || esm_typeof_typeof(target) !== 'object') {
|
|
39947
40229
|
return false;
|
|
39948
40230
|
}
|
|
39949
40231
|
|
|
39950
40232
|
var sourceKeys = Object.keys(source);
|
|
39951
40233
|
var targetKeys = Object.keys(target);
|
|
39952
|
-
var keys = new Set([].concat(
|
|
39953
|
-
return
|
|
40234
|
+
var keys = new Set([].concat(toConsumableArray_toConsumableArray(sourceKeys), toConsumableArray_toConsumableArray(targetKeys)));
|
|
40235
|
+
return toConsumableArray_toConsumableArray(keys).every(function (key) {
|
|
39954
40236
|
var sourceValue = source[key];
|
|
39955
40237
|
var targetValue = target[key];
|
|
39956
40238
|
|
|
@@ -39993,12 +40275,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
39993
40275
|
|
|
39994
40276
|
if (diff > 0) {
|
|
39995
40277
|
// move left
|
|
39996
|
-
return [].concat(
|
|
40278
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, toIndex)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
39997
40279
|
}
|
|
39998
40280
|
|
|
39999
40281
|
if (diff < 0) {
|
|
40000
40282
|
// move right
|
|
40001
|
-
return [].concat(
|
|
40283
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex + 1, length)));
|
|
40002
40284
|
}
|
|
40003
40285
|
|
|
40004
40286
|
return array;
|
|
@@ -40038,13 +40320,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
40038
40320
|
|
|
40039
40321
|
|
|
40040
40322
|
function _validateRule() {
|
|
40041
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40323
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
40042
40324
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
40043
|
-
return
|
|
40325
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
40044
40326
|
while (1) {
|
|
40045
40327
|
switch (_context2.prev = _context2.next) {
|
|
40046
40328
|
case 0:
|
|
40047
|
-
cloneRule =
|
|
40329
|
+
cloneRule = objectSpread2_objectSpread2({}, rule); // Bug of `async-validator`
|
|
40048
40330
|
// https://github.com/react-component/field-form/issues/316
|
|
40049
40331
|
// https://github.com/react-component/field-form/issues/313
|
|
40050
40332
|
|
|
@@ -40057,13 +40339,13 @@ function _validateRule() {
|
|
|
40057
40339
|
delete cloneRule.defaultField;
|
|
40058
40340
|
}
|
|
40059
40341
|
|
|
40060
|
-
validator = new AsyncValidator(
|
|
40342
|
+
validator = new AsyncValidator(defineProperty_defineProperty({}, name, [cloneRule]));
|
|
40061
40343
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
40062
40344
|
validator.messages(messages);
|
|
40063
40345
|
result = [];
|
|
40064
40346
|
_context2.prev = 8;
|
|
40065
40347
|
_context2.next = 11;
|
|
40066
|
-
return Promise.resolve(validator.validate(
|
|
40348
|
+
return Promise.resolve(validator.validate(defineProperty_defineProperty({}, name, value), objectSpread2_objectSpread2({}, options)));
|
|
40067
40349
|
|
|
40068
40350
|
case 11:
|
|
40069
40351
|
_context2.next = 16;
|
|
@@ -40103,12 +40385,12 @@ function _validateRule() {
|
|
|
40103
40385
|
case 19:
|
|
40104
40386
|
subResults = _context2.sent;
|
|
40105
40387
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
40106
|
-
return [].concat(
|
|
40388
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), toConsumableArray_toConsumableArray(errors));
|
|
40107
40389
|
}, []));
|
|
40108
40390
|
|
|
40109
40391
|
case 21:
|
|
40110
40392
|
// Replace message with variables
|
|
40111
|
-
kv =
|
|
40393
|
+
kv = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rule), {}, {
|
|
40112
40394
|
name: name,
|
|
40113
40395
|
enum: (rule.enum || []).join(', ')
|
|
40114
40396
|
}, messageVariables);
|
|
@@ -40137,7 +40419,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40137
40419
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
40138
40420
|
var originValidatorFunc = currentRule.validator;
|
|
40139
40421
|
|
|
40140
|
-
var cloneRule =
|
|
40422
|
+
var cloneRule = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentRule), {}, {
|
|
40141
40423
|
ruleIndex: ruleIndex
|
|
40142
40424
|
}); // Replace validator if needed
|
|
40143
40425
|
|
|
@@ -40205,9 +40487,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40205
40487
|
if (validateFirst === true) {
|
|
40206
40488
|
// >>>>> Validate by serialization
|
|
40207
40489
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
40208
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40490
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(resolve, reject) {
|
|
40209
40491
|
var i, rule, errors;
|
|
40210
|
-
return
|
|
40492
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
40211
40493
|
while (1) {
|
|
40212
40494
|
switch (_context.prev = _context.next) {
|
|
40213
40495
|
case 0:
|
|
@@ -40286,15 +40568,15 @@ function finishOnAllFailed(_x8) {
|
|
|
40286
40568
|
}
|
|
40287
40569
|
|
|
40288
40570
|
function _finishOnAllFailed() {
|
|
40289
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40290
|
-
return
|
|
40571
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(rulePromises) {
|
|
40572
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
40291
40573
|
while (1) {
|
|
40292
40574
|
switch (_context3.prev = _context3.next) {
|
|
40293
40575
|
case 0:
|
|
40294
40576
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
40295
40577
|
var _ref5;
|
|
40296
40578
|
|
|
40297
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
40579
|
+
var errors = (_ref5 = []).concat.apply(_ref5, toConsumableArray_toConsumableArray(errorsList));
|
|
40298
40580
|
|
|
40299
40581
|
return errors;
|
|
40300
40582
|
}));
|
|
@@ -40314,9 +40596,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
40314
40596
|
}
|
|
40315
40597
|
|
|
40316
40598
|
function _finishOnFirstFailed() {
|
|
40317
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40599
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee4(rulePromises) {
|
|
40318
40600
|
var count;
|
|
40319
|
-
return
|
|
40601
|
+
return runtime_regenerator_default().wrap(function _callee4$(_context4) {
|
|
40320
40602
|
while (1) {
|
|
40321
40603
|
switch (_context4.prev = _context4.next) {
|
|
40322
40604
|
case 0:
|
|
@@ -41121,6 +41403,52 @@ var List = function List(_ref) {
|
|
|
41121
41403
|
};
|
|
41122
41404
|
|
|
41123
41405
|
/* harmony default export */ var es_List = (List);
|
|
41406
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
41407
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
41408
|
+
if (Array.isArray(arr)) return arr;
|
|
41409
|
+
}
|
|
41410
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
41411
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
41412
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
41413
|
+
|
|
41414
|
+
if (_i == null) return;
|
|
41415
|
+
var _arr = [];
|
|
41416
|
+
var _n = true;
|
|
41417
|
+
var _d = false;
|
|
41418
|
+
|
|
41419
|
+
var _s, _e;
|
|
41420
|
+
|
|
41421
|
+
try {
|
|
41422
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
41423
|
+
_arr.push(_s.value);
|
|
41424
|
+
|
|
41425
|
+
if (i && _arr.length === i) break;
|
|
41426
|
+
}
|
|
41427
|
+
} catch (err) {
|
|
41428
|
+
_d = true;
|
|
41429
|
+
_e = err;
|
|
41430
|
+
} finally {
|
|
41431
|
+
try {
|
|
41432
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
41433
|
+
} finally {
|
|
41434
|
+
if (_d) throw _e;
|
|
41435
|
+
}
|
|
41436
|
+
}
|
|
41437
|
+
|
|
41438
|
+
return _arr;
|
|
41439
|
+
}
|
|
41440
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
41441
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
41442
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
41443
|
+
}
|
|
41444
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
41445
|
+
|
|
41446
|
+
|
|
41447
|
+
|
|
41448
|
+
|
|
41449
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
41450
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
41451
|
+
}
|
|
41124
41452
|
;// CONCATENATED MODULE: ./node_modules/rc-field-form/es/utils/asyncUtil.js
|
|
41125
41453
|
function allPromiseFinish(promiseList) {
|
|
41126
41454
|
var hasError = false;
|
|
@@ -41166,7 +41494,7 @@ var SPLIT = '__@field_split__';
|
|
|
41166
41494
|
|
|
41167
41495
|
function normalize(namePath) {
|
|
41168
41496
|
return namePath.map(function (cell) {
|
|
41169
|
-
return "".concat(
|
|
41497
|
+
return "".concat(esm_typeof_typeof(cell), ":").concat(cell);
|
|
41170
41498
|
}) // Magic split
|
|
41171
41499
|
.join(SPLIT);
|
|
41172
41500
|
}
|
|
@@ -41177,12 +41505,12 @@ function normalize(namePath) {
|
|
|
41177
41505
|
|
|
41178
41506
|
var NameMap = /*#__PURE__*/function () {
|
|
41179
41507
|
function NameMap() {
|
|
41180
|
-
|
|
41508
|
+
classCallCheck_classCallCheck(this, NameMap);
|
|
41181
41509
|
|
|
41182
41510
|
this.kvs = new Map();
|
|
41183
41511
|
}
|
|
41184
41512
|
|
|
41185
|
-
|
|
41513
|
+
createClass_createClass(NameMap, [{
|
|
41186
41514
|
key: "set",
|
|
41187
41515
|
value: function set(key, value) {
|
|
41188
41516
|
this.kvs.set(normalize(key), value);
|
|
@@ -41213,7 +41541,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
41213
41541
|
}, {
|
|
41214
41542
|
key: "map",
|
|
41215
41543
|
value: function map(callback) {
|
|
41216
|
-
return
|
|
41544
|
+
return toConsumableArray_toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
41217
41545
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
41218
41546
|
key = _ref2[0],
|
|
41219
41547
|
value = _ref2[1];
|
|
@@ -42095,7 +42423,7 @@ function useForm(form) {
|
|
|
42095
42423
|
var formRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef();
|
|
42096
42424
|
|
|
42097
42425
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState({}),
|
|
42098
|
-
_React$useState2 =
|
|
42426
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
42099
42427
|
forceUpdate = _React$useState2[1];
|
|
42100
42428
|
|
|
42101
42429
|
if (!formRef.current) {
|
|
@@ -42214,7 +42542,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42214
42542
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
42215
42543
|
|
|
42216
42544
|
var _useForm = es_useForm(form),
|
|
42217
|
-
_useForm2 =
|
|
42545
|
+
_useForm2 = esm_slicedToArray_slicedToArray(_useForm, 1),
|
|
42218
42546
|
formInstance = _useForm2[0];
|
|
42219
42547
|
|
|
42220
42548
|
var _formInstance$getInte = formInstance.getInternalHooks(HOOK_MARK),
|
|
@@ -42621,7 +42949,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42621
42949
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42622
42950
|
|
|
42623
42951
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42624
|
-
_React$useState2 =
|
|
42952
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
42625
42953
|
elements = _React$useState2[0],
|
|
42626
42954
|
setElements = _React$useState2[1];
|
|
42627
42955
|
|
|
@@ -42971,7 +43299,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
42971
43299
|
};
|
|
42972
43300
|
|
|
42973
43301
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
42974
|
-
_useRCNotification2 =
|
|
43302
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
42975
43303
|
hookNotify = _useRCNotification2[0],
|
|
42976
43304
|
holder = _useRCNotification2[1];
|
|
42977
43305
|
|
|
@@ -43300,7 +43628,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
43300
43628
|
};
|
|
43301
43629
|
|
|
43302
43630
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43303
|
-
_useRCNotification2 =
|
|
43631
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43304
43632
|
hookNotify = _useRCNotification2[0],
|
|
43305
43633
|
holder = _useRCNotification2[1];
|
|
43306
43634
|
|
|
@@ -43927,7 +44255,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43927
44255
|
|
|
43928
44256
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
43929
44257
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
43930
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
44258
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
43931
44259
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
43932
44260
|
actionFn: onCancel,
|
|
43933
44261
|
close: close,
|
|
@@ -43945,7 +44273,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43945
44273
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
43946
44274
|
prefixCls: prefixCls,
|
|
43947
44275
|
className: classString,
|
|
43948
|
-
wrapClassName: classnames_default()(
|
|
44276
|
+
wrapClassName: classnames_default()(defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
43949
44277
|
onCancel: function onCancel() {
|
|
43950
44278
|
return close({
|
|
43951
44279
|
triggerCancel: true
|
|
@@ -44029,7 +44357,7 @@ function getRootPrefixCls() {
|
|
|
44029
44357
|
function confirm_confirm(config) {
|
|
44030
44358
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
44031
44359
|
|
|
44032
|
-
var currentConfig =
|
|
44360
|
+
var currentConfig = esm_extends_extends(esm_extends_extends({}, config), {
|
|
44033
44361
|
close: close,
|
|
44034
44362
|
visible: true
|
|
44035
44363
|
});
|
|
@@ -44082,7 +44410,7 @@ function confirm_confirm(config) {
|
|
|
44082
44410
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
44083
44411
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
44084
44412
|
var iconPrefixCls = getIconPrefixCls();
|
|
44085
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
44413
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, esm_extends_extends({}, props, {
|
|
44086
44414
|
prefixCls: prefixCls,
|
|
44087
44415
|
rootPrefixCls: rootPrefixCls,
|
|
44088
44416
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -44099,7 +44427,7 @@ function confirm_confirm(config) {
|
|
|
44099
44427
|
args[_key2] = arguments[_key2];
|
|
44100
44428
|
}
|
|
44101
44429
|
|
|
44102
|
-
currentConfig =
|
|
44430
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), {
|
|
44103
44431
|
visible: false,
|
|
44104
44432
|
afterClose: function afterClose() {
|
|
44105
44433
|
if (typeof config.afterClose === 'function') {
|
|
@@ -44116,7 +44444,7 @@ function confirm_confirm(config) {
|
|
|
44116
44444
|
if (typeof configUpdate === 'function') {
|
|
44117
44445
|
currentConfig = configUpdate(currentConfig);
|
|
44118
44446
|
} else {
|
|
44119
|
-
currentConfig =
|
|
44447
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), configUpdate);
|
|
44120
44448
|
}
|
|
44121
44449
|
|
|
44122
44450
|
render(currentConfig);
|
|
@@ -44130,7 +44458,7 @@ function confirm_confirm(config) {
|
|
|
44130
44458
|
};
|
|
44131
44459
|
}
|
|
44132
44460
|
function withWarn(props) {
|
|
44133
|
-
return
|
|
44461
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44134
44462
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44135
44463
|
type: "exclamation-circle"
|
|
44136
44464
|
}),
|
|
@@ -44140,7 +44468,7 @@ function withWarn(props) {
|
|
|
44140
44468
|
});
|
|
44141
44469
|
}
|
|
44142
44470
|
function withInfo(props) {
|
|
44143
|
-
return
|
|
44471
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44144
44472
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44145
44473
|
type: "exclamation-circle"
|
|
44146
44474
|
}),
|
|
@@ -44150,7 +44478,7 @@ function withInfo(props) {
|
|
|
44150
44478
|
});
|
|
44151
44479
|
}
|
|
44152
44480
|
function withSuccess(props) {
|
|
44153
|
-
return
|
|
44481
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44154
44482
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44155
44483
|
type: "check-circle"
|
|
44156
44484
|
}),
|
|
@@ -44160,7 +44488,7 @@ function withSuccess(props) {
|
|
|
44160
44488
|
});
|
|
44161
44489
|
}
|
|
44162
44490
|
function withError(props) {
|
|
44163
|
-
return
|
|
44491
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44164
44492
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44165
44493
|
type: "close-circle"
|
|
44166
44494
|
}),
|
|
@@ -44170,7 +44498,7 @@ function withError(props) {
|
|
|
44170
44498
|
});
|
|
44171
44499
|
}
|
|
44172
44500
|
function withConfirm(props) {
|
|
44173
|
-
return
|
|
44501
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44174
44502
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44175
44503
|
type: "question-circle"
|
|
44176
44504
|
}),
|
|
@@ -44197,7 +44525,7 @@ function usePatchElement() {
|
|
|
44197
44525
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
44198
44526
|
// append a new element to elements (and create a new ref)
|
|
44199
44527
|
setElements(function (originElements) {
|
|
44200
|
-
return [].concat(
|
|
44528
|
+
return [].concat(toConsumableArray_toConsumableArray(originElements), [element]);
|
|
44201
44529
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
44202
44530
|
// it works a little like useEffect
|
|
44203
44531
|
|
|
@@ -44262,7 +44590,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44262
44590
|
destroy: close,
|
|
44263
44591
|
update: function update(newConfig) {
|
|
44264
44592
|
setInnerConfig(function (originConfig) {
|
|
44265
|
-
return
|
|
44593
|
+
return esm_extends_extends(esm_extends_extends({}, originConfig), newConfig);
|
|
44266
44594
|
});
|
|
44267
44595
|
}
|
|
44268
44596
|
};
|
|
@@ -44271,7 +44599,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44271
44599
|
componentName: "Modal",
|
|
44272
44600
|
defaultLocale: locale_default.Modal
|
|
44273
44601
|
}, function (modalLocale) {
|
|
44274
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
44602
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, esm_extends_extends({
|
|
44275
44603
|
prefixCls: prefixCls,
|
|
44276
44604
|
rootPrefixCls: rootPrefixCls
|
|
44277
44605
|
}, innerConfig, {
|
|
@@ -44318,7 +44646,7 @@ function useModal() {
|
|
|
44318
44646
|
|
|
44319
44647
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
44320
44648
|
if (actionQueue.length) {
|
|
44321
|
-
var cloneQueue =
|
|
44649
|
+
var cloneQueue = toConsumableArray_toConsumableArray(actionQueue);
|
|
44322
44650
|
|
|
44323
44651
|
cloneQueue.forEach(function (action) {
|
|
44324
44652
|
action();
|
|
@@ -44355,7 +44683,7 @@ function useModal() {
|
|
|
44355
44683
|
destroyAction();
|
|
44356
44684
|
} else {
|
|
44357
44685
|
setActionQueue(function (prev) {
|
|
44358
|
-
return [].concat(
|
|
44686
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [destroyAction]);
|
|
44359
44687
|
});
|
|
44360
44688
|
}
|
|
44361
44689
|
},
|
|
@@ -44370,7 +44698,7 @@ function useModal() {
|
|
|
44370
44698
|
updateAction();
|
|
44371
44699
|
} else {
|
|
44372
44700
|
setActionQueue(function (prev) {
|
|
44373
|
-
return [].concat(
|
|
44701
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [updateAction]);
|
|
44374
44702
|
});
|
|
44375
44703
|
}
|
|
44376
44704
|
}
|
|
@@ -44815,40 +45143,44 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
44815
45143
|
|
|
44816
45144
|
|
|
44817
45145
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
44818
|
-
function
|
|
44819
|
-
|
|
45146
|
+
function helpers_esm_extends_extends() {
|
|
45147
|
+
helpers_esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
44820
45148
|
for (var i = 1; i < arguments.length; i++) {
|
|
44821
45149
|
var source = arguments[i];
|
|
45150
|
+
|
|
44822
45151
|
for (var key in source) {
|
|
44823
45152
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44824
45153
|
target[key] = source[key];
|
|
44825
45154
|
}
|
|
44826
45155
|
}
|
|
44827
45156
|
}
|
|
45157
|
+
|
|
44828
45158
|
return target;
|
|
44829
45159
|
};
|
|
44830
|
-
return
|
|
45160
|
+
return helpers_esm_extends_extends.apply(this, arguments);
|
|
44831
45161
|
}
|
|
44832
45162
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
44833
|
-
function
|
|
45163
|
+
function helpers_esm_typeof_typeof(obj) {
|
|
44834
45164
|
"@babel/helpers - typeof";
|
|
44835
45165
|
|
|
44836
|
-
return
|
|
45166
|
+
return helpers_esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44837
45167
|
return typeof obj;
|
|
44838
45168
|
} : function (obj) {
|
|
44839
45169
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44840
|
-
},
|
|
45170
|
+
}, helpers_esm_typeof_typeof(obj);
|
|
44841
45171
|
}
|
|
44842
45172
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
44843
45173
|
|
|
44844
45174
|
function _toPrimitive(input, hint) {
|
|
44845
|
-
if (
|
|
45175
|
+
if (helpers_esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
44846
45176
|
var prim = input[Symbol.toPrimitive];
|
|
45177
|
+
|
|
44847
45178
|
if (prim !== undefined) {
|
|
44848
45179
|
var res = prim.call(input, hint || "default");
|
|
44849
|
-
if (
|
|
45180
|
+
if (helpers_esm_typeof_typeof(res) !== "object") return res;
|
|
44850
45181
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44851
45182
|
}
|
|
45183
|
+
|
|
44852
45184
|
return (hint === "string" ? String : Number)(input);
|
|
44853
45185
|
}
|
|
44854
45186
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -44856,12 +45188,13 @@ function _toPrimitive(input, hint) {
|
|
|
44856
45188
|
|
|
44857
45189
|
function _toPropertyKey(arg) {
|
|
44858
45190
|
var key = _toPrimitive(arg, "string");
|
|
44859
|
-
return
|
|
45191
|
+
return helpers_esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
44860
45192
|
}
|
|
44861
45193
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
44862
45194
|
|
|
44863
|
-
function
|
|
45195
|
+
function esm_defineProperty_defineProperty(obj, key, value) {
|
|
44864
45196
|
key = _toPropertyKey(key);
|
|
45197
|
+
|
|
44865
45198
|
if (key in obj) {
|
|
44866
45199
|
Object.defineProperty(obj, key, {
|
|
44867
45200
|
value: value,
|
|
@@ -44872,51 +45205,61 @@ function defineProperty_defineProperty(obj, key, value) {
|
|
|
44872
45205
|
} else {
|
|
44873
45206
|
obj[key] = value;
|
|
44874
45207
|
}
|
|
45208
|
+
|
|
44875
45209
|
return obj;
|
|
44876
45210
|
}
|
|
44877
45211
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
44878
45212
|
|
|
44879
|
-
|
|
45213
|
+
|
|
45214
|
+
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44880
45215
|
var keys = Object.keys(object);
|
|
45216
|
+
|
|
44881
45217
|
if (Object.getOwnPropertySymbols) {
|
|
44882
45218
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
44883
45219
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
44884
45220
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
44885
45221
|
})), keys.push.apply(keys, symbols);
|
|
44886
45222
|
}
|
|
45223
|
+
|
|
44887
45224
|
return keys;
|
|
44888
45225
|
}
|
|
44889
|
-
|
|
45226
|
+
|
|
45227
|
+
function esm_objectSpread2_objectSpread2(target) {
|
|
44890
45228
|
for (var i = 1; i < arguments.length; i++) {
|
|
44891
45229
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
44892
|
-
i % 2 ?
|
|
44893
|
-
|
|
44894
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
45230
|
+
i % 2 ? esm_objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
45231
|
+
esm_defineProperty_defineProperty(target, key, source[key]);
|
|
45232
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : esm_objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
44895
45233
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44896
45234
|
});
|
|
44897
45235
|
}
|
|
45236
|
+
|
|
44898
45237
|
return target;
|
|
44899
45238
|
}
|
|
44900
45239
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
44901
|
-
function
|
|
45240
|
+
function helpers_esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
44902
45241
|
if (Array.isArray(arr)) return arr;
|
|
44903
45242
|
}
|
|
44904
45243
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
44905
|
-
function
|
|
45244
|
+
function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
44906
45245
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
45246
|
+
|
|
44907
45247
|
if (null != _i) {
|
|
44908
45248
|
var _s,
|
|
44909
|
-
|
|
44910
|
-
|
|
44911
|
-
|
|
44912
|
-
|
|
44913
|
-
|
|
44914
|
-
|
|
45249
|
+
_e,
|
|
45250
|
+
_x,
|
|
45251
|
+
_r,
|
|
45252
|
+
_arr = [],
|
|
45253
|
+
_n = !0,
|
|
45254
|
+
_d = !1;
|
|
45255
|
+
|
|
44915
45256
|
try {
|
|
44916
45257
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
44917
45258
|
if (Object(_i) !== _i) return;
|
|
44918
45259
|
_n = !1;
|
|
44919
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
45260
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
|
45261
|
+
;
|
|
45262
|
+
}
|
|
44920
45263
|
} catch (err) {
|
|
44921
45264
|
_d = !0, _e = err;
|
|
44922
45265
|
} finally {
|
|
@@ -44926,27 +45269,32 @@ function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
44926
45269
|
if (_d) throw _e;
|
|
44927
45270
|
}
|
|
44928
45271
|
}
|
|
45272
|
+
|
|
44929
45273
|
return _arr;
|
|
44930
45274
|
}
|
|
44931
45275
|
}
|
|
44932
45276
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
44933
|
-
function
|
|
45277
|
+
function esm_arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
44934
45278
|
if (len == null || len > arr.length) len = arr.length;
|
|
44935
|
-
|
|
45279
|
+
|
|
45280
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
45281
|
+
arr2[i] = arr[i];
|
|
45282
|
+
}
|
|
45283
|
+
|
|
44936
45284
|
return arr2;
|
|
44937
45285
|
}
|
|
44938
45286
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
44939
45287
|
|
|
44940
|
-
function
|
|
45288
|
+
function esm_unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
44941
45289
|
if (!o) return;
|
|
44942
|
-
if (typeof o === "string") return
|
|
45290
|
+
if (typeof o === "string") return esm_arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44943
45291
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
44944
45292
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
44945
45293
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44946
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
45294
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return esm_arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44947
45295
|
}
|
|
44948
45296
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
44949
|
-
function
|
|
45297
|
+
function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
44950
45298
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44951
45299
|
}
|
|
44952
45300
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -44954,30 +45302,34 @@ function esm_nonIterableRest_nonIterableRest() {
|
|
|
44954
45302
|
|
|
44955
45303
|
|
|
44956
45304
|
|
|
44957
|
-
function
|
|
44958
|
-
return
|
|
45305
|
+
function helpers_esm_slicedToArray_slicedToArray(arr, i) {
|
|
45306
|
+
return helpers_esm_arrayWithHoles_arrayWithHoles(arr) || helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || esm_unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || helpers_esm_nonIterableRest_nonIterableRest();
|
|
44959
45307
|
}
|
|
44960
45308
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
44961
|
-
function
|
|
45309
|
+
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
44962
45310
|
if (source == null) return {};
|
|
44963
45311
|
var target = {};
|
|
44964
45312
|
var sourceKeys = Object.keys(source);
|
|
44965
45313
|
var key, i;
|
|
45314
|
+
|
|
44966
45315
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
44967
45316
|
key = sourceKeys[i];
|
|
44968
45317
|
if (excluded.indexOf(key) >= 0) continue;
|
|
44969
45318
|
target[key] = source[key];
|
|
44970
45319
|
}
|
|
45320
|
+
|
|
44971
45321
|
return target;
|
|
44972
45322
|
}
|
|
44973
45323
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
44974
45324
|
|
|
44975
|
-
function
|
|
45325
|
+
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
44976
45326
|
if (source == null) return {};
|
|
44977
|
-
var target =
|
|
45327
|
+
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
44978
45328
|
var key, i;
|
|
45329
|
+
|
|
44979
45330
|
if (Object.getOwnPropertySymbols) {
|
|
44980
45331
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
45332
|
+
|
|
44981
45333
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
44982
45334
|
key = sourceSymbolKeys[i];
|
|
44983
45335
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -44985,6 +45337,7 @@ function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
44985
45337
|
target[key] = source[key];
|
|
44986
45338
|
}
|
|
44987
45339
|
}
|
|
45340
|
+
|
|
44988
45341
|
return target;
|
|
44989
45342
|
}
|
|
44990
45343
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -45932,14 +46285,14 @@ var index = (function () {
|
|
|
45932
46285
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
45933
46286
|
|
|
45934
46287
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
45935
|
-
|
|
46288
|
+
inherits_inherits(ReactResizeObserver, _React$Component);
|
|
45936
46289
|
|
|
45937
|
-
var _super =
|
|
46290
|
+
var _super = createSuper_createSuper(ReactResizeObserver);
|
|
45938
46291
|
|
|
45939
46292
|
function ReactResizeObserver() {
|
|
45940
46293
|
var _this;
|
|
45941
46294
|
|
|
45942
|
-
|
|
46295
|
+
classCallCheck_classCallCheck(this, ReactResizeObserver);
|
|
45943
46296
|
|
|
45944
46297
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45945
46298
|
args[_key] = arguments[_key];
|
|
@@ -45990,7 +46343,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45990
46343
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
45991
46344
|
|
|
45992
46345
|
Promise.resolve().then(function () {
|
|
45993
|
-
onResize(
|
|
46346
|
+
onResize(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, size), {}, {
|
|
45994
46347
|
offsetWidth: mergedOffsetWidth,
|
|
45995
46348
|
offsetHeight: mergedOffsetHeight
|
|
45996
46349
|
}), target);
|
|
@@ -46006,7 +46359,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46006
46359
|
return _this;
|
|
46007
46360
|
}
|
|
46008
46361
|
|
|
46009
|
-
|
|
46362
|
+
createClass_createClass(ReactResizeObserver, [{
|
|
46010
46363
|
key: "componentDidMount",
|
|
46011
46364
|
value: function componentDidMount() {
|
|
46012
46365
|
this.onComponentUpdated();
|
|
@@ -46120,7 +46473,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46120
46473
|
position: 'relative',
|
|
46121
46474
|
overflow: 'hidden'
|
|
46122
46475
|
};
|
|
46123
|
-
innerStyle =
|
|
46476
|
+
innerStyle = esm_objectSpread2_objectSpread2(esm_objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
46124
46477
|
transform: "translateY(".concat(offset, "px)"),
|
|
46125
46478
|
position: 'absolute',
|
|
46126
46479
|
left: 0,
|
|
@@ -46137,23 +46490,24 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46137
46490
|
onInnerResize();
|
|
46138
46491
|
}
|
|
46139
46492
|
}
|
|
46140
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
46493
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", helpers_esm_extends_extends({
|
|
46141
46494
|
style: innerStyle,
|
|
46142
|
-
className: classnames_default()(
|
|
46495
|
+
className: classnames_default()(esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
46143
46496
|
ref: ref
|
|
46144
46497
|
}, innerProps), children)));
|
|
46145
46498
|
});
|
|
46146
46499
|
Filler.displayName = 'Filler';
|
|
46147
46500
|
/* harmony default export */ var es_Filler = (Filler);
|
|
46148
46501
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
46149
|
-
function
|
|
46502
|
+
function esm_classCallCheck_classCallCheck(instance, Constructor) {
|
|
46150
46503
|
if (!(instance instanceof Constructor)) {
|
|
46151
46504
|
throw new TypeError("Cannot call a class as a function");
|
|
46152
46505
|
}
|
|
46153
46506
|
}
|
|
46154
46507
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
46155
46508
|
|
|
46156
|
-
|
|
46509
|
+
|
|
46510
|
+
function esm_createClass_defineProperties(target, props) {
|
|
46157
46511
|
for (var i = 0; i < props.length; i++) {
|
|
46158
46512
|
var descriptor = props[i];
|
|
46159
46513
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -46162,28 +46516,30 @@ function createClass_defineProperties(target, props) {
|
|
|
46162
46516
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
46163
46517
|
}
|
|
46164
46518
|
}
|
|
46165
|
-
|
|
46166
|
-
|
|
46167
|
-
if (
|
|
46519
|
+
|
|
46520
|
+
function esm_createClass_createClass(Constructor, protoProps, staticProps) {
|
|
46521
|
+
if (protoProps) esm_createClass_defineProperties(Constructor.prototype, protoProps);
|
|
46522
|
+
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
46168
46523
|
Object.defineProperty(Constructor, "prototype", {
|
|
46169
46524
|
writable: false
|
|
46170
46525
|
});
|
|
46171
46526
|
return Constructor;
|
|
46172
46527
|
}
|
|
46173
46528
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
46174
|
-
function
|
|
46175
|
-
|
|
46529
|
+
function esm_setPrototypeOf_setPrototypeOf(o, p) {
|
|
46530
|
+
esm_setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
46176
46531
|
o.__proto__ = p;
|
|
46177
46532
|
return o;
|
|
46178
46533
|
};
|
|
46179
|
-
return
|
|
46534
|
+
return esm_setPrototypeOf_setPrototypeOf(o, p);
|
|
46180
46535
|
}
|
|
46181
46536
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
46182
46537
|
|
|
46183
|
-
function
|
|
46538
|
+
function esm_inherits_inherits(subClass, superClass) {
|
|
46184
46539
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
46185
46540
|
throw new TypeError("Super expression must either be null or a function");
|
|
46186
46541
|
}
|
|
46542
|
+
|
|
46187
46543
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
46188
46544
|
constructor: {
|
|
46189
46545
|
value: subClass,
|
|
@@ -46194,20 +46550,21 @@ function inherits_inherits(subClass, superClass) {
|
|
|
46194
46550
|
Object.defineProperty(subClass, "prototype", {
|
|
46195
46551
|
writable: false
|
|
46196
46552
|
});
|
|
46197
|
-
if (superClass)
|
|
46553
|
+
if (superClass) esm_setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
46198
46554
|
}
|
|
46199
46555
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
46200
|
-
function
|
|
46201
|
-
|
|
46556
|
+
function esm_getPrototypeOf_getPrototypeOf(o) {
|
|
46557
|
+
esm_getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
46202
46558
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46203
46559
|
};
|
|
46204
|
-
return
|
|
46560
|
+
return esm_getPrototypeOf_getPrototypeOf(o);
|
|
46205
46561
|
}
|
|
46206
46562
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
46207
|
-
function
|
|
46563
|
+
function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
46208
46564
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
46209
46565
|
if (Reflect.construct.sham) return false;
|
|
46210
46566
|
if (typeof Proxy === "function") return true;
|
|
46567
|
+
|
|
46211
46568
|
try {
|
|
46212
46569
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
46213
46570
|
return true;
|
|
@@ -46216,39 +46573,43 @@ function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
46216
46573
|
}
|
|
46217
46574
|
}
|
|
46218
46575
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
46219
|
-
function
|
|
46576
|
+
function esm_assertThisInitialized_assertThisInitialized(self) {
|
|
46220
46577
|
if (self === void 0) {
|
|
46221
46578
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46222
46579
|
}
|
|
46580
|
+
|
|
46223
46581
|
return self;
|
|
46224
46582
|
}
|
|
46225
46583
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
46226
46584
|
|
|
46227
46585
|
|
|
46228
|
-
function
|
|
46229
|
-
if (call && (
|
|
46586
|
+
function esm_possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
46587
|
+
if (call && (helpers_esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
46230
46588
|
return call;
|
|
46231
46589
|
} else if (call !== void 0) {
|
|
46232
46590
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
46233
46591
|
}
|
|
46234
|
-
|
|
46592
|
+
|
|
46593
|
+
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
46235
46594
|
}
|
|
46236
46595
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
46237
46596
|
|
|
46238
46597
|
|
|
46239
46598
|
|
|
46240
|
-
function
|
|
46241
|
-
var hasNativeReflectConstruct =
|
|
46599
|
+
function esm_createSuper_createSuper(Derived) {
|
|
46600
|
+
var hasNativeReflectConstruct = esm_isNativeReflectConstruct_isNativeReflectConstruct();
|
|
46242
46601
|
return function _createSuperInternal() {
|
|
46243
|
-
var Super =
|
|
46244
|
-
|
|
46602
|
+
var Super = esm_getPrototypeOf_getPrototypeOf(Derived),
|
|
46603
|
+
result;
|
|
46604
|
+
|
|
46245
46605
|
if (hasNativeReflectConstruct) {
|
|
46246
|
-
var NewTarget =
|
|
46606
|
+
var NewTarget = esm_getPrototypeOf_getPrototypeOf(this).constructor;
|
|
46247
46607
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
46248
46608
|
} else {
|
|
46249
46609
|
result = Super.apply(this, arguments);
|
|
46250
46610
|
}
|
|
46251
|
-
|
|
46611
|
+
|
|
46612
|
+
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46252
46613
|
};
|
|
46253
46614
|
}
|
|
46254
46615
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -46323,11 +46684,11 @@ function getPageY(e) {
|
|
|
46323
46684
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
46324
46685
|
}
|
|
46325
46686
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
46326
|
-
|
|
46327
|
-
var _super =
|
|
46687
|
+
esm_inherits_inherits(ScrollBar, _React$Component);
|
|
46688
|
+
var _super = esm_createSuper_createSuper(ScrollBar);
|
|
46328
46689
|
function ScrollBar() {
|
|
46329
46690
|
var _this;
|
|
46330
|
-
|
|
46691
|
+
esm_classCallCheck_classCallCheck(this, ScrollBar);
|
|
46331
46692
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46332
46693
|
args[_key] = arguments[_key];
|
|
46333
46694
|
}
|
|
@@ -46455,7 +46816,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46455
46816
|
};
|
|
46456
46817
|
return _this;
|
|
46457
46818
|
}
|
|
46458
|
-
|
|
46819
|
+
esm_createClass_createClass(ScrollBar, [{
|
|
46459
46820
|
key: "componentDidMount",
|
|
46460
46821
|
value: function componentDidMount() {
|
|
46461
46822
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -46489,7 +46850,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46489
46850
|
var mergedVisible = canScroll && visible;
|
|
46490
46851
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46491
46852
|
ref: this.scrollbarRef,
|
|
46492
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46853
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46493
46854
|
style: {
|
|
46494
46855
|
width: 8,
|
|
46495
46856
|
top: 0,
|
|
@@ -46502,7 +46863,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46502
46863
|
onMouseMove: this.delayHidden
|
|
46503
46864
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46504
46865
|
ref: this.thumbRef,
|
|
46505
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46866
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46506
46867
|
style: {
|
|
46507
46868
|
width: '100%',
|
|
46508
46869
|
height: spinHeight,
|
|
@@ -46581,11 +46942,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46581
46942
|
// Firefox has low performance of map.
|
|
46582
46943
|
var CacheMap = /*#__PURE__*/function () {
|
|
46583
46944
|
function CacheMap() {
|
|
46584
|
-
|
|
46945
|
+
esm_classCallCheck_classCallCheck(this, CacheMap);
|
|
46585
46946
|
this.maps = void 0;
|
|
46586
46947
|
this.maps = Object.create(null);
|
|
46587
46948
|
}
|
|
46588
|
-
|
|
46949
|
+
esm_createClass_createClass(CacheMap, [{
|
|
46589
46950
|
key: "set",
|
|
46590
46951
|
value: function set(key, value) {
|
|
46591
46952
|
this.maps[key] = value;
|
|
@@ -46608,7 +46969,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46608
46969
|
|
|
46609
46970
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46610
46971
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46611
|
-
_React$useState2 =
|
|
46972
|
+
_React$useState2 = helpers_esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46612
46973
|
updatedMark = _React$useState2[0],
|
|
46613
46974
|
setUpdatedMark = _React$useState2[1];
|
|
46614
46975
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46675,7 +47036,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46675
47036
|
es_raf.cancel(scrollRef.current);
|
|
46676
47037
|
if (typeof arg === 'number') {
|
|
46677
47038
|
syncScrollTop(arg);
|
|
46678
|
-
} else if (arg &&
|
|
47039
|
+
} else if (arg && helpers_esm_typeof_typeof(arg) === 'object') {
|
|
46679
47040
|
var index;
|
|
46680
47041
|
var align = arg.align;
|
|
46681
47042
|
if ('index' in arg) {
|
|
@@ -46831,11 +47192,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
46831
47192
|
|
|
46832
47193
|
function useDiffItem(data, getKey, onDiff) {
|
|
46833
47194
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
46834
|
-
_React$useState2 =
|
|
47195
|
+
_React$useState2 = helpers_esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46835
47196
|
prevData = _React$useState2[0],
|
|
46836
47197
|
setPrevData = _React$useState2[1];
|
|
46837
47198
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
46838
|
-
_React$useState4 =
|
|
47199
|
+
_React$useState4 = helpers_esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
46839
47200
|
diffItem = _React$useState4[0],
|
|
46840
47201
|
setDiffItem = _React$useState4[1];
|
|
46841
47202
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -46850,7 +47211,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
46850
47211
|
}
|
|
46851
47212
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
46852
47213
|
|
|
46853
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
47214
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : helpers_esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
46854
47215
|
/* harmony default export */ var isFirefox = (isFF);
|
|
46855
47216
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
46856
47217
|
|
|
@@ -47069,16 +47430,16 @@ function RawList(props, ref) {
|
|
|
47069
47430
|
onScroll = props.onScroll,
|
|
47070
47431
|
onVisibleChange = props.onVisibleChange,
|
|
47071
47432
|
innerProps = props.innerProps,
|
|
47072
|
-
restProps =
|
|
47433
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
47073
47434
|
// ================================= MISC =================================
|
|
47074
47435
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
47075
47436
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
47076
47437
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
47077
|
-
_useState2 =
|
|
47438
|
+
_useState2 = helpers_esm_slicedToArray_slicedToArray(_useState, 2),
|
|
47078
47439
|
scrollTop = _useState2[0],
|
|
47079
47440
|
setScrollTop = _useState2[1];
|
|
47080
47441
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
47081
|
-
_useState4 =
|
|
47442
|
+
_useState4 = helpers_esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
47082
47443
|
scrollMoving = _useState4[0],
|
|
47083
47444
|
setScrollMoving = _useState4[1];
|
|
47084
47445
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -47118,12 +47479,12 @@ function RawList(props, ref) {
|
|
|
47118
47479
|
});
|
|
47119
47480
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
47120
47481
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
47121
|
-
_useDiffItem2 =
|
|
47482
|
+
_useDiffItem2 = helpers_esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
47122
47483
|
diffItem = _useDiffItem2[0];
|
|
47123
47484
|
diffItemRef.current = diffItem;
|
|
47124
47485
|
// ================================ Height ================================
|
|
47125
47486
|
var _useHeights = useHeights(getKey, null, null),
|
|
47126
|
-
_useHeights2 =
|
|
47487
|
+
_useHeights2 = helpers_esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
47127
47488
|
setInstanceRef = _useHeights2[0],
|
|
47128
47489
|
collectHeight = _useHeights2[1],
|
|
47129
47490
|
heights = _useHeights2[2],
|
|
@@ -47229,7 +47590,7 @@ function RawList(props, ref) {
|
|
|
47229
47590
|
return newTop;
|
|
47230
47591
|
});
|
|
47231
47592
|
}),
|
|
47232
|
-
_useFrameWheel2 =
|
|
47593
|
+
_useFrameWheel2 = helpers_esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
47233
47594
|
onRawWheel = _useFrameWheel2[0],
|
|
47234
47595
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
47235
47596
|
// Mobile touch move
|
|
@@ -47283,7 +47644,7 @@ function RawList(props, ref) {
|
|
|
47283
47644
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
47284
47645
|
var componentStyle = null;
|
|
47285
47646
|
if (height) {
|
|
47286
|
-
componentStyle =
|
|
47647
|
+
componentStyle = esm_objectSpread2_objectSpread2(esm_defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
47287
47648
|
if (useVirtual) {
|
|
47288
47649
|
componentStyle.overflowY = 'hidden';
|
|
47289
47650
|
if (scrollMoving) {
|
|
@@ -47291,8 +47652,8 @@ function RawList(props, ref) {
|
|
|
47291
47652
|
}
|
|
47292
47653
|
}
|
|
47293
47654
|
}
|
|
47294
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47295
|
-
style:
|
|
47655
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", helpers_esm_extends_extends({
|
|
47656
|
+
style: esm_objectSpread2_objectSpread2(esm_objectSpread2_objectSpread2({}, style), {}, {
|
|
47296
47657
|
position: 'relative'
|
|
47297
47658
|
}),
|
|
47298
47659
|
className: mergedClassName
|
|
@@ -47438,7 +47799,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
47438
47799
|
return values;
|
|
47439
47800
|
}
|
|
47440
47801
|
function removeLastEnabledValue(measureValues, values) {
|
|
47441
|
-
var newValues =
|
|
47802
|
+
var newValues = toConsumableArray_toConsumableArray(values);
|
|
47442
47803
|
|
|
47443
47804
|
var removeIndex;
|
|
47444
47805
|
|
|
@@ -47572,7 +47933,7 @@ function flattenOptions(options) {
|
|
|
47572
47933
|
*/
|
|
47573
47934
|
|
|
47574
47935
|
function injectPropsWithOption(option) {
|
|
47575
|
-
var newOption =
|
|
47936
|
+
var newOption = objectSpread2_objectSpread2({}, option);
|
|
47576
47937
|
|
|
47577
47938
|
if (!('props' in newOption)) {
|
|
47578
47939
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47606,7 +47967,7 @@ function findValueOption(values, options) {
|
|
|
47606
47967
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47607
47968
|
|
|
47608
47969
|
if (!option) {
|
|
47609
|
-
option =
|
|
47970
|
+
option = objectSpread2_objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47610
47971
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47611
47972
|
}));
|
|
47612
47973
|
}
|
|
@@ -47625,7 +47986,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47625
47986
|
};
|
|
47626
47987
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47627
47988
|
|
|
47628
|
-
if (prevValItem &&
|
|
47989
|
+
if (prevValItem && esm_typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47629
47990
|
result.label = prevValItem.label;
|
|
47630
47991
|
|
|
47631
47992
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -47673,7 +48034,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47673
48034
|
var filterFunc;
|
|
47674
48035
|
|
|
47675
48036
|
if (filterOption === false) {
|
|
47676
|
-
return
|
|
48037
|
+
return toConsumableArray_toConsumableArray(options);
|
|
47677
48038
|
}
|
|
47678
48039
|
|
|
47679
48040
|
if (typeof filterOption === 'function') {
|
|
@@ -47697,7 +48058,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47697
48058
|
});
|
|
47698
48059
|
|
|
47699
48060
|
if (subOptions.length) {
|
|
47700
|
-
filteredOptions.push(
|
|
48061
|
+
filteredOptions.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
47701
48062
|
options: subOptions
|
|
47702
48063
|
}));
|
|
47703
48064
|
}
|
|
@@ -47731,7 +48092,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
47731
48092
|
var list = str.split(token);
|
|
47732
48093
|
match = match || list.length > 1;
|
|
47733
48094
|
return list.reduce(function (prevList, unitStr) {
|
|
47734
|
-
return [].concat(
|
|
48095
|
+
return [].concat(toConsumableArray_toConsumableArray(prevList), toConsumableArray_toConsumableArray(separate(unitStr, restTokens)));
|
|
47735
48096
|
}, []).filter(function (unit) {
|
|
47736
48097
|
return unit;
|
|
47737
48098
|
});
|
|
@@ -47751,7 +48112,7 @@ function isValueDisabled(value, options) {
|
|
|
47751
48112
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
47752
48113
|
var values = commonUtil_toArray(value).slice().sort();
|
|
47753
48114
|
|
|
47754
|
-
var cloneOptions =
|
|
48115
|
+
var cloneOptions = toConsumableArray_toConsumableArray(options); // Convert options value to set
|
|
47755
48116
|
|
|
47756
48117
|
|
|
47757
48118
|
var optionValues = new Set();
|
|
@@ -47771,7 +48132,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
47771
48132
|
if (!optionValues.has(val)) {
|
|
47772
48133
|
var _ref9;
|
|
47773
48134
|
|
|
47774
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
48135
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, defineProperty_defineProperty(_ref9, optionLabelProp, item.label), defineProperty_defineProperty(_ref9, "value", val), _ref9) : {
|
|
47775
48136
|
value: val
|
|
47776
48137
|
});
|
|
47777
48138
|
}
|
|
@@ -48037,7 +48398,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48037
48398
|
children = itemData.children;
|
|
48038
48399
|
var attrs = pickAttrs(itemData, true);
|
|
48039
48400
|
var mergedLabel = childrenAsData ? children : label;
|
|
48040
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
48401
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
48041
48402
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
48042
48403
|
}, attrs, {
|
|
48043
48404
|
key: index,
|
|
@@ -48087,13 +48448,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48087
48448
|
children = data.children,
|
|
48088
48449
|
style = data.style,
|
|
48089
48450
|
className = data.className,
|
|
48090
|
-
otherProps =
|
|
48451
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(data, OptionList_excluded);
|
|
48091
48452
|
|
|
48092
48453
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
48093
48454
|
|
|
48094
48455
|
var selected = values.has(value);
|
|
48095
48456
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
48096
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
48457
|
+
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
|
|
48097
48458
|
var mergedLabel = childrenAsData ? children : label;
|
|
48098
48459
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
48099
48460
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -48104,7 +48465,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48104
48465
|
optionTitle = title;
|
|
48105
48466
|
}
|
|
48106
48467
|
|
|
48107
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
48468
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, passedProps, {
|
|
48108
48469
|
"aria-selected": selected,
|
|
48109
48470
|
className: optionClassName,
|
|
48110
48471
|
title: optionTitle,
|
|
@@ -48165,9 +48526,9 @@ function convertNodeToOption(node) {
|
|
|
48165
48526
|
_node$props = node.props,
|
|
48166
48527
|
children = _node$props.children,
|
|
48167
48528
|
value = _node$props.value,
|
|
48168
|
-
restProps =
|
|
48529
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
48169
48530
|
|
|
48170
|
-
return
|
|
48531
|
+
return objectSpread2_objectSpread2({
|
|
48171
48532
|
key: key,
|
|
48172
48533
|
value: value !== undefined ? value : key,
|
|
48173
48534
|
children: children
|
|
@@ -48185,13 +48546,13 @@ function convertChildrenToData(nodes) {
|
|
|
48185
48546
|
key = node.key,
|
|
48186
48547
|
_node$props2 = node.props,
|
|
48187
48548
|
children = _node$props2.children,
|
|
48188
|
-
restProps =
|
|
48549
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props2, _excluded2);
|
|
48189
48550
|
|
|
48190
48551
|
if (optionOnly || !isSelectOptGroup) {
|
|
48191
48552
|
return convertNodeToOption(node);
|
|
48192
48553
|
}
|
|
48193
48554
|
|
|
48194
|
-
return
|
|
48555
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
48195
48556
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
48196
48557
|
label: key
|
|
48197
48558
|
}, restProps), {}, {
|
|
@@ -48236,7 +48597,7 @@ function useControlledState(defaultStateValue, option) {
|
|
|
48236
48597
|
|
|
48237
48598
|
return typeof defaultStateValue === 'function' ? defaultStateValue() : defaultStateValue;
|
|
48238
48599
|
}),
|
|
48239
|
-
_React$useState2 =
|
|
48600
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
48240
48601
|
innerValue = _React$useState2[0],
|
|
48241
48602
|
setInnerValue = _React$useState2[1];
|
|
48242
48603
|
|
|
@@ -48293,7 +48654,7 @@ function InternalItem(props, ref) {
|
|
|
48293
48654
|
order = props.order,
|
|
48294
48655
|
_props$component = props.component,
|
|
48295
48656
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48296
|
-
restProps =
|
|
48657
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48297
48658
|
|
|
48298
48659
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48299
48660
|
|
|
@@ -48327,9 +48688,9 @@ function InternalItem(props, ref) {
|
|
|
48327
48688
|
overflowProps['aria-hidden'] = true;
|
|
48328
48689
|
}
|
|
48329
48690
|
|
|
48330
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48691
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({
|
|
48331
48692
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48332
|
-
style:
|
|
48693
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, overflowStyle), style)
|
|
48333
48694
|
}, overflowProps, restProps, {
|
|
48334
48695
|
ref: ref
|
|
48335
48696
|
}), childNode);
|
|
@@ -48414,23 +48775,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48414
48775
|
if (!context) {
|
|
48415
48776
|
var _props$component = props.component,
|
|
48416
48777
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48417
|
-
_restProps =
|
|
48778
|
+
_restProps = objectWithoutProperties_objectWithoutProperties(props, ["component"]);
|
|
48418
48779
|
|
|
48419
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48780
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, _restProps, {
|
|
48420
48781
|
ref: ref
|
|
48421
48782
|
}));
|
|
48422
48783
|
}
|
|
48423
48784
|
|
|
48424
48785
|
var contextClassName = context.className,
|
|
48425
|
-
restContext =
|
|
48786
|
+
restContext = objectWithoutProperties_objectWithoutProperties(context, ["className"]);
|
|
48426
48787
|
|
|
48427
48788
|
var className = props.className,
|
|
48428
|
-
restProps =
|
|
48789
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48429
48790
|
|
|
48430
48791
|
|
|
48431
48792
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48432
48793
|
value: null
|
|
48433
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48794
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({
|
|
48434
48795
|
ref: ref,
|
|
48435
48796
|
className: classnames_default()(contextClassName, className)
|
|
48436
48797
|
}, restContext, restProps)));
|
|
@@ -48480,7 +48841,7 @@ function Overflow(props, ref) {
|
|
|
48480
48841
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48481
48842
|
itemComponent = props.itemComponent,
|
|
48482
48843
|
onVisibleChange = props.onVisibleChange,
|
|
48483
|
-
restProps =
|
|
48844
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48484
48845
|
|
|
48485
48846
|
var createUseState = useBatchFrameState();
|
|
48486
48847
|
var fullySSR = ssr === 'full';
|
|
@@ -48690,7 +49051,7 @@ function Overflow(props, ref) {
|
|
|
48690
49051
|
var key = getKey(item, index);
|
|
48691
49052
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48692
49053
|
key: key,
|
|
48693
|
-
value:
|
|
49054
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, itemSharedProps), {}, {
|
|
48694
49055
|
order: index,
|
|
48695
49056
|
item: item,
|
|
48696
49057
|
itemKey: key,
|
|
@@ -48700,7 +49061,7 @@ function Overflow(props, ref) {
|
|
|
48700
49061
|
}, renderRawItem(item, index));
|
|
48701
49062
|
} : function (item, index) {
|
|
48702
49063
|
var key = getKey(item, index);
|
|
48703
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
49064
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, {
|
|
48704
49065
|
order: index,
|
|
48705
49066
|
key: key,
|
|
48706
49067
|
item: item,
|
|
@@ -48721,18 +49082,18 @@ function Overflow(props, ref) {
|
|
|
48721
49082
|
|
|
48722
49083
|
if (!renderRawRest) {
|
|
48723
49084
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48724
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
49085
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48725
49086
|
} else if (renderRawRest) {
|
|
48726
49087
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48727
|
-
value:
|
|
49088
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48728
49089
|
}, renderRawRest(omittedItems));
|
|
48729
49090
|
}
|
|
48730
49091
|
|
|
48731
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
49092
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({
|
|
48732
49093
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48733
49094
|
style: style,
|
|
48734
49095
|
ref: ref
|
|
48735
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
49096
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, {
|
|
48736
49097
|
order: mergedDisplayCount,
|
|
48737
49098
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
48738
49099
|
registerSize: registerSuffixSize,
|
|
@@ -48797,7 +49158,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48797
49158
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
48798
49159
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
48799
49160
|
style = _inputNode$props.style;
|
|
48800
|
-
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode,
|
|
49161
|
+
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
48801
49162
|
id: id,
|
|
48802
49163
|
ref: composeRef(ref, originRef),
|
|
48803
49164
|
disabled: disabled,
|
|
@@ -48806,7 +49167,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48806
49167
|
type: 'search',
|
|
48807
49168
|
autoFocus: autoFocus,
|
|
48808
49169
|
className: classnames_default()("".concat(prefixCls, "-selection-search-input"), (_inputNode2 = inputNode) === null || _inputNode2 === void 0 ? void 0 : (_inputNode2$props = _inputNode2.props) === null || _inputNode2$props === void 0 ? void 0 : _inputNode2$props.className),
|
|
48809
|
-
style:
|
|
49170
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
48810
49171
|
opacity: editable ? null : 0
|
|
48811
49172
|
}),
|
|
48812
49173
|
role: 'combobox',
|
|
@@ -48954,7 +49315,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
48954
49315
|
|
|
48955
49316
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
48956
49317
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48957
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
49318
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), defineProperty_defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
48958
49319
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
48959
49320
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48960
49321
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -49369,7 +49730,7 @@ var Selector = function Selector(props, ref) {
|
|
|
49369
49730
|
onInputCompositionStart: onInputCompositionStart,
|
|
49370
49731
|
onInputCompositionEnd: onInputCompositionEnd
|
|
49371
49732
|
};
|
|
49372
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
49733
|
+
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector, esm_extends_extends({}, props, sharedProps)) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Selector_SingleSelector, esm_extends_extends({}, props, sharedProps));
|
|
49373
49734
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
49374
49735
|
ref: domRef,
|
|
49375
49736
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -49414,7 +49775,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
49414
49775
|
|
|
49415
49776
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
49416
49777
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
49417
|
-
return
|
|
49778
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, baseAlign), align);
|
|
49418
49779
|
}
|
|
49419
49780
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
49420
49781
|
var points = align.points;
|
|
@@ -49478,7 +49839,7 @@ function Mask_Mask(props) {
|
|
|
49478
49839
|
var motion = {};
|
|
49479
49840
|
|
|
49480
49841
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49481
|
-
motion =
|
|
49842
|
+
motion = objectSpread2_objectSpread2({
|
|
49482
49843
|
motionAppear: true
|
|
49483
49844
|
}, getMotion({
|
|
49484
49845
|
motion: maskMotion,
|
|
@@ -49488,7 +49849,7 @@ function Mask_Mask(props) {
|
|
|
49488
49849
|
}));
|
|
49489
49850
|
}
|
|
49490
49851
|
|
|
49491
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49852
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({}, motion, {
|
|
49492
49853
|
visible: visible,
|
|
49493
49854
|
removeOnLeave: true
|
|
49494
49855
|
}), function (_ref) {
|
|
@@ -51000,7 +51361,7 @@ function getElement(func) {
|
|
|
51000
51361
|
}
|
|
51001
51362
|
|
|
51002
51363
|
function getPoint(point) {
|
|
51003
|
-
if (
|
|
51364
|
+
if (esm_typeof_typeof(point) !== 'object' || !point) return null;
|
|
51004
51365
|
return point;
|
|
51005
51366
|
}
|
|
51006
51367
|
|
|
@@ -51214,9 +51575,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51214
51575
|
}
|
|
51215
51576
|
|
|
51216
51577
|
if (status) {
|
|
51217
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
51578
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
51218
51579
|
var index, nextStatus;
|
|
51219
|
-
return
|
|
51580
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
51220
51581
|
while (1) {
|
|
51221
51582
|
switch (_context.prev = _context.next) {
|
|
51222
51583
|
case 0:
|
|
@@ -51389,7 +51750,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51389
51750
|
} // ======================== Motion ========================
|
|
51390
51751
|
|
|
51391
51752
|
|
|
51392
|
-
var motion =
|
|
51753
|
+
var motion = objectSpread2_objectSpread2({}, getMotion(props));
|
|
51393
51754
|
|
|
51394
51755
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
51395
51756
|
var originHandler = motion[eventName];
|
|
@@ -51422,7 +51783,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51422
51783
|
};
|
|
51423
51784
|
}); // ======================== Render ========================
|
|
51424
51785
|
|
|
51425
|
-
var mergedStyle =
|
|
51786
|
+
var mergedStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, stretchStyle), {}, {
|
|
51426
51787
|
zIndex: zIndex,
|
|
51427
51788
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
51428
51789
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -51443,7 +51804,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51443
51804
|
}, children);
|
|
51444
51805
|
}
|
|
51445
51806
|
|
|
51446
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51807
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
51447
51808
|
visible: visible,
|
|
51448
51809
|
ref: elementRef,
|
|
51449
51810
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51471,7 +51832,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51471
51832
|
onMouseLeave: onMouseLeave,
|
|
51472
51833
|
onMouseDownCapture: onMouseDown,
|
|
51473
51834
|
onTouchStartCapture: onTouchStart,
|
|
51474
|
-
style:
|
|
51835
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), mergedStyle)
|
|
51475
51836
|
}, childNode));
|
|
51476
51837
|
});
|
|
51477
51838
|
});
|
|
@@ -51506,7 +51867,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51506
51867
|
};
|
|
51507
51868
|
}); // ======================== Render ========================
|
|
51508
51869
|
|
|
51509
|
-
var mergedStyle =
|
|
51870
|
+
var mergedStyle = objectSpread2_objectSpread2({
|
|
51510
51871
|
zIndex: zIndex
|
|
51511
51872
|
}, popupStyle);
|
|
51512
51873
|
|
|
@@ -51523,7 +51884,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51523
51884
|
childNode = popupRender(childNode);
|
|
51524
51885
|
}
|
|
51525
51886
|
|
|
51526
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51887
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
51527
51888
|
visible: visible,
|
|
51528
51889
|
ref: elementRef,
|
|
51529
51890
|
removeOnLeave: true
|
|
@@ -51534,7 +51895,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51534
51895
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51535
51896
|
ref: motionRef,
|
|
51536
51897
|
className: mergedClassName,
|
|
51537
|
-
style:
|
|
51898
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), mergedStyle)
|
|
51538
51899
|
}, childNode);
|
|
51539
51900
|
});
|
|
51540
51901
|
});
|
|
@@ -51555,7 +51916,7 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51555
51916
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51556
51917
|
var visible = _ref.visible,
|
|
51557
51918
|
mobile = _ref.mobile,
|
|
51558
|
-
props =
|
|
51919
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref, Popup_excluded);
|
|
51559
51920
|
|
|
51560
51921
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51561
51922
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
@@ -51567,7 +51928,7 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51567
51928
|
inMobile = _useState4[0],
|
|
51568
51929
|
setInMobile = _useState4[1];
|
|
51569
51930
|
|
|
51570
|
-
var cloneProps =
|
|
51931
|
+
var cloneProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
51571
51932
|
visible: innerVisible
|
|
51572
51933
|
}); // We check mobile in visible changed here.
|
|
51573
51934
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51580,10 +51941,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51580
51941
|
setInMobile(isMobile());
|
|
51581
51942
|
}
|
|
51582
51943
|
}, [visible, mobile]);
|
|
51583
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51944
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, esm_extends_extends({}, cloneProps, {
|
|
51584
51945
|
mobile: mobile,
|
|
51585
51946
|
ref: ref
|
|
51586
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51947
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, esm_extends_extends({}, cloneProps, {
|
|
51587
51948
|
ref: ref
|
|
51588
51949
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51589
51950
|
|
|
@@ -51637,14 +51998,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51637
51998
|
|
|
51638
51999
|
function generateTrigger(PortalComponent) {
|
|
51639
52000
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51640
|
-
|
|
52001
|
+
inherits_inherits(Trigger, _React$Component);
|
|
51641
52002
|
|
|
51642
|
-
var _super =
|
|
52003
|
+
var _super = createSuper_createSuper(Trigger);
|
|
51643
52004
|
|
|
51644
52005
|
function Trigger(props) {
|
|
51645
52006
|
var _this;
|
|
51646
52007
|
|
|
51647
|
-
|
|
52008
|
+
classCallCheck_classCallCheck(this, Trigger);
|
|
51648
52009
|
|
|
51649
52010
|
_this = _super.call(this, props);
|
|
51650
52011
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -51832,7 +52193,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51832
52193
|
} catch (err) {// Do nothing
|
|
51833
52194
|
}
|
|
51834
52195
|
|
|
51835
|
-
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(
|
|
52196
|
+
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(assertThisInitialized_assertThisInitialized(_this));
|
|
51836
52197
|
};
|
|
51837
52198
|
|
|
51838
52199
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -51893,7 +52254,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51893
52254
|
|
|
51894
52255
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
51895
52256
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
51896
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup,
|
|
52257
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup, esm_extends_extends({
|
|
51897
52258
|
prefixCls: prefixCls,
|
|
51898
52259
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
51899
52260
|
visible: popupVisible,
|
|
@@ -52006,7 +52367,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52006
52367
|
return _this;
|
|
52007
52368
|
}
|
|
52008
52369
|
|
|
52009
|
-
|
|
52370
|
+
createClass_createClass(Trigger, [{
|
|
52010
52371
|
key: "componentDidMount",
|
|
52011
52372
|
value: function componentDidMount() {
|
|
52012
52373
|
this.componentDidUpdate();
|
|
@@ -52331,7 +52692,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52331
52692
|
newChildProps.className = childrenClassName;
|
|
52332
52693
|
}
|
|
52333
52694
|
|
|
52334
|
-
var cloneProps =
|
|
52695
|
+
var cloneProps = objectSpread2_objectSpread2({}, newChildProps);
|
|
52335
52696
|
|
|
52336
52697
|
if (supportRef(child)) {
|
|
52337
52698
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -52472,7 +52833,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52472
52833
|
empty = props.empty,
|
|
52473
52834
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
52474
52835
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
52475
|
-
restProps =
|
|
52836
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SelectTrigger_excluded);
|
|
52476
52837
|
|
|
52477
52838
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
52478
52839
|
var popupNode = popupElement;
|
|
@@ -52496,7 +52857,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52496
52857
|
};
|
|
52497
52858
|
});
|
|
52498
52859
|
|
|
52499
|
-
var popupStyle =
|
|
52860
|
+
var popupStyle = objectSpread2_objectSpread2({
|
|
52500
52861
|
minWidth: containerWidth
|
|
52501
52862
|
}, dropdownStyle);
|
|
52502
52863
|
|
|
@@ -52506,7 +52867,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52506
52867
|
popupStyle.width = containerWidth;
|
|
52507
52868
|
}
|
|
52508
52869
|
|
|
52509
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
52870
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, esm_extends_extends({}, restProps, {
|
|
52510
52871
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
52511
52872
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
52512
52873
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -52519,7 +52880,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52519
52880
|
popupAlign: dropdownAlign,
|
|
52520
52881
|
popupVisible: visible,
|
|
52521
52882
|
getPopupContainer: getPopupContainer,
|
|
52522
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52883
|
+
popupClassName: classnames_default()(dropdownClassName, defineProperty_defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
52523
52884
|
popupStyle: popupStyle,
|
|
52524
52885
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
52525
52886
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52622,7 +52983,7 @@ function useCacheDisplayValue(values) {
|
|
|
52622
52983
|
var cacheLabel = valueLabels.get(item.value);
|
|
52623
52984
|
|
|
52624
52985
|
if (item.isCacheable && cacheLabel) {
|
|
52625
|
-
return
|
|
52986
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
52626
52987
|
label: cacheLabel
|
|
52627
52988
|
});
|
|
52628
52989
|
}
|
|
@@ -52784,7 +53145,7 @@ function generateSelector(config) {
|
|
|
52784
53145
|
onClear = props.onClear,
|
|
52785
53146
|
_props$internalProps = props.internalProps,
|
|
52786
53147
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
52787
|
-
restProps =
|
|
53148
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, generate_excluded);
|
|
52788
53149
|
|
|
52789
53150
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
52790
53151
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -52922,7 +53283,7 @@ function generateSelector(config) {
|
|
|
52922
53283
|
|
|
52923
53284
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
52924
53285
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
52925
|
-
return
|
|
53286
|
+
return toConsumableArray_toConsumableArray(mergedOptions);
|
|
52926
53287
|
}
|
|
52927
53288
|
|
|
52928
53289
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -52943,7 +53304,7 @@ function generateSelector(config) {
|
|
|
52943
53304
|
}
|
|
52944
53305
|
|
|
52945
53306
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
52946
|
-
return
|
|
53307
|
+
return toConsumableArray_toConsumableArray(filteredOptions).sort(filterSort);
|
|
52947
53308
|
}
|
|
52948
53309
|
|
|
52949
53310
|
return filteredOptions;
|
|
@@ -52966,7 +53327,7 @@ function generateSelector(config) {
|
|
|
52966
53327
|
labelInValue: mergedLabelInValue,
|
|
52967
53328
|
optionLabelProp: mergedOptionLabelProp
|
|
52968
53329
|
});
|
|
52969
|
-
return
|
|
53330
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, displayValue), {}, {
|
|
52970
53331
|
disabled: isValueDisabled(val, valueOptions)
|
|
52971
53332
|
});
|
|
52972
53333
|
});
|
|
@@ -53040,7 +53401,7 @@ function generateSelector(config) {
|
|
|
53040
53401
|
}); // We will cache option in case it removed by ajax
|
|
53041
53402
|
|
|
53042
53403
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
53043
|
-
var clone =
|
|
53404
|
+
var clone = objectSpread2_objectSpread2({}, option);
|
|
53044
53405
|
|
|
53045
53406
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
53046
53407
|
get: function get() {
|
|
@@ -53096,13 +53457,13 @@ function generateSelector(config) {
|
|
|
53096
53457
|
};
|
|
53097
53458
|
|
|
53098
53459
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
53099
|
-
onInternalSelect(newValue,
|
|
53460
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
53100
53461
|
source: 'option'
|
|
53101
53462
|
}));
|
|
53102
53463
|
};
|
|
53103
53464
|
|
|
53104
53465
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
53105
|
-
onInternalSelect(newValue,
|
|
53466
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
53106
53467
|
source: 'selection'
|
|
53107
53468
|
}));
|
|
53108
53469
|
}; // ============================= Input ==============================
|
|
@@ -53186,7 +53547,7 @@ function generateSelector(config) {
|
|
|
53186
53547
|
});
|
|
53187
53548
|
}
|
|
53188
53549
|
|
|
53189
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53550
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), toConsumableArray_toConsumableArray(patchRawValues))));
|
|
53190
53551
|
triggerChange(newRawValues);
|
|
53191
53552
|
newRawValues.forEach(function (newRawValue) {
|
|
53192
53553
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53215,7 +53576,7 @@ function generateSelector(config) {
|
|
|
53215
53576
|
return;
|
|
53216
53577
|
}
|
|
53217
53578
|
|
|
53218
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53579
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [searchText])));
|
|
53219
53580
|
triggerChange(newRawValues);
|
|
53220
53581
|
newRawValues.forEach(function (newRawValue) {
|
|
53221
53582
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53348,7 +53709,7 @@ function generateSelector(config) {
|
|
|
53348
53709
|
// `tags` mode should move `searchValue` into values
|
|
53349
53710
|
if (mode === 'tags') {
|
|
53350
53711
|
triggerSearch('', false, false);
|
|
53351
|
-
triggerChange(Array.from(new Set([].concat(
|
|
53712
|
+
triggerChange(Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
53352
53713
|
} else if (mode === 'multiple') {
|
|
53353
53714
|
// `multiple` mode only clean the search value but not trigger event
|
|
53354
53715
|
setInnerSearchValue('');
|
|
@@ -53506,7 +53867,7 @@ function generateSelector(config) {
|
|
|
53506
53867
|
|
|
53507
53868
|
if (mergedShowArrow) {
|
|
53508
53869
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
53509
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53870
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), defineProperty_defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
53510
53871
|
customizeIcon: inputIcon,
|
|
53511
53872
|
customizeIconProps: {
|
|
53512
53873
|
loading: loading,
|
|
@@ -53522,7 +53883,7 @@ function generateSelector(config) {
|
|
|
53522
53883
|
if (false) {} // ============================= Render =============================
|
|
53523
53884
|
|
|
53524
53885
|
|
|
53525
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
53886
|
+
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {}, defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-focused"), mockFocused), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-multiple"), isMultiple), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-single"), !isMultiple), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-show-arrow"), mergedShowArrow), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-loading"), loading), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-open"), mergedOpen), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch), _classNames2));
|
|
53526
53887
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
53527
53888
|
ref: triggerRef,
|
|
53528
53889
|
disabled: disabled,
|
|
@@ -53547,7 +53908,7 @@ function generateSelector(config) {
|
|
|
53547
53908
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
53548
53909
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
53549
53910
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
53550
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
53911
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, esm_extends_extends({}, props, {
|
|
53551
53912
|
domRef: selectorDomRef,
|
|
53552
53913
|
prefixCls: prefixCls,
|
|
53553
53914
|
inputElement: customizeInputElement,
|
|
@@ -53573,7 +53934,7 @@ function generateSelector(config) {
|
|
|
53573
53934
|
return selectorNode;
|
|
53574
53935
|
}
|
|
53575
53936
|
|
|
53576
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
53937
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
53577
53938
|
className: mergedClassName
|
|
53578
53939
|
}, domProps, {
|
|
53579
53940
|
ref: containerRef,
|
|
@@ -53660,7 +54021,7 @@ function warningProps(props) {
|
|
|
53660
54021
|
if (value !== undefined && value !== null) {
|
|
53661
54022
|
var values = commonUtil_toArray(value);
|
|
53662
54023
|
es_warning(!labelInValue || values.every(function (val) {
|
|
53663
|
-
return
|
|
54024
|
+
return esm_typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
53664
54025
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
53665
54026
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
53666
54027
|
} // Syntactic sugar should use correct children type
|
|
@@ -53774,14 +54135,14 @@ var RefSelect = generateSelector({
|
|
|
53774
54135
|
*/
|
|
53775
54136
|
|
|
53776
54137
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
53777
|
-
|
|
54138
|
+
inherits_inherits(Select, _React$Component);
|
|
53778
54139
|
|
|
53779
|
-
var _super =
|
|
54140
|
+
var _super = createSuper_createSuper(Select);
|
|
53780
54141
|
|
|
53781
54142
|
function Select() {
|
|
53782
54143
|
var _this;
|
|
53783
54144
|
|
|
53784
|
-
|
|
54145
|
+
classCallCheck_classCallCheck(this, Select);
|
|
53785
54146
|
|
|
53786
54147
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53787
54148
|
args[_key] = arguments[_key];
|
|
@@ -53801,10 +54162,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
53801
54162
|
return _this;
|
|
53802
54163
|
}
|
|
53803
54164
|
|
|
53804
|
-
|
|
54165
|
+
createClass_createClass(Select, [{
|
|
53805
54166
|
key: "render",
|
|
53806
54167
|
value: function render() {
|
|
53807
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
54168
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, esm_extends_extends({
|
|
53808
54169
|
ref: this.selectRef
|
|
53809
54170
|
}, this.props));
|
|
53810
54171
|
}
|
|
@@ -56114,7 +56475,7 @@ function TabNode(_ref, ref) {
|
|
|
56114
56475
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
56115
56476
|
key: key,
|
|
56116
56477
|
ref: ref,
|
|
56117
|
-
className: classnames_default()(tabPrefix, (_classNames = {},
|
|
56478
|
+
className: classnames_default()(tabPrefix, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(tabPrefix, "-with-remove"), removable), defineProperty_defineProperty(_classNames, "".concat(tabPrefix, "-active"), active), defineProperty_defineProperty(_classNames, "".concat(tabPrefix, "-disabled"), disabled), _classNames)),
|
|
56118
56479
|
style: style,
|
|
56119
56480
|
onClick: onInternalClick
|
|
56120
56481
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -56177,7 +56538,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
56177
56538
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
56178
56539
|
}
|
|
56179
56540
|
|
|
56180
|
-
var entity = map.get(key) ||
|
|
56541
|
+
var entity = map.get(key) || objectSpread2_objectSpread2({}, data); // Right
|
|
56181
56542
|
|
|
56182
56543
|
|
|
56183
56544
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -56272,7 +56633,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56272
56633
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56273
56634
|
|
|
56274
56635
|
function mergeProps(origin, target) {
|
|
56275
|
-
var clone =
|
|
56636
|
+
var clone = objectSpread2_objectSpread2({}, origin);
|
|
56276
56637
|
|
|
56277
56638
|
Object.keys(target).forEach(function (key) {
|
|
56278
56639
|
var value = target[key];
|
|
@@ -56287,7 +56648,7 @@ function mergeProps(origin, target) {
|
|
|
56287
56648
|
function InheritableContextProvider(_ref) {
|
|
56288
56649
|
var children = _ref.children,
|
|
56289
56650
|
locked = _ref.locked,
|
|
56290
|
-
restProps =
|
|
56651
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56291
56652
|
|
|
56292
56653
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56293
56654
|
var inheritableContext = useMemo(function () {
|
|
@@ -56343,7 +56704,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56343
56704
|
|
|
56344
56705
|
function warnItemProp(_ref) {
|
|
56345
56706
|
var item = _ref.item,
|
|
56346
|
-
restInfo =
|
|
56707
|
+
restInfo = objectWithoutProperties_objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56347
56708
|
|
|
56348
56709
|
Object.defineProperty(restInfo, 'item', {
|
|
56349
56710
|
get: function get() {
|
|
@@ -56363,7 +56724,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56363
56724
|
var iconNode;
|
|
56364
56725
|
|
|
56365
56726
|
if (typeof icon === 'function') {
|
|
56366
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
56727
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, objectSpread2_objectSpread2({}, props));
|
|
56367
56728
|
} else {
|
|
56368
56729
|
// Compatible for origin definition
|
|
56369
56730
|
iconNode = icon;
|
|
@@ -56404,7 +56765,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56404
56765
|
function useFullPath(eventKey) {
|
|
56405
56766
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56406
56767
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56407
|
-
return eventKey !== undefined ? [].concat(
|
|
56768
|
+
return eventKey !== undefined ? [].concat(toConsumableArray_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56408
56769
|
}, [parentKeyPath, eventKey]);
|
|
56409
56770
|
}
|
|
56410
56771
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56461,28 +56822,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56461
56822
|
// This should be removed from doc & api in future.
|
|
56462
56823
|
|
|
56463
56824
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56464
|
-
|
|
56825
|
+
inherits_inherits(LegacyMenuItem, _React$Component);
|
|
56465
56826
|
|
|
56466
|
-
var _super =
|
|
56827
|
+
var _super = createSuper_createSuper(LegacyMenuItem);
|
|
56467
56828
|
|
|
56468
56829
|
function LegacyMenuItem() {
|
|
56469
|
-
|
|
56830
|
+
classCallCheck_classCallCheck(this, LegacyMenuItem);
|
|
56470
56831
|
|
|
56471
56832
|
return _super.apply(this, arguments);
|
|
56472
56833
|
}
|
|
56473
56834
|
|
|
56474
|
-
|
|
56835
|
+
createClass_createClass(LegacyMenuItem, [{
|
|
56475
56836
|
key: "render",
|
|
56476
56837
|
value: function render() {
|
|
56477
56838
|
var _this$props = this.props,
|
|
56478
56839
|
title = _this$props.title,
|
|
56479
56840
|
attribute = _this$props.attribute,
|
|
56480
56841
|
elementRef = _this$props.elementRef,
|
|
56481
|
-
restProps =
|
|
56842
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56482
56843
|
|
|
56483
56844
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56484
56845
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56485
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56846
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, esm_extends_extends({}, attribute, {
|
|
56486
56847
|
title: typeof title === 'string' ? title : undefined
|
|
56487
56848
|
}, passedProps, {
|
|
56488
56849
|
ref: elementRef
|
|
@@ -56513,7 +56874,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56513
56874
|
onClick = props.onClick,
|
|
56514
56875
|
onKeyDown = props.onKeyDown,
|
|
56515
56876
|
onFocus = props.onFocus,
|
|
56516
|
-
restProps =
|
|
56877
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, MenuItem_excluded2);
|
|
56517
56878
|
|
|
56518
56879
|
var domDataId = useMenuId(eventKey);
|
|
56519
56880
|
|
|
@@ -56542,7 +56903,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56542
56903
|
return {
|
|
56543
56904
|
key: eventKey,
|
|
56544
56905
|
// Note: For legacy code is reversed which not like other antd component
|
|
56545
|
-
keyPath:
|
|
56906
|
+
keyPath: toConsumableArray_toConsumableArray(connectedKeys).reverse(),
|
|
56546
56907
|
item: legacyMenuItemRef.current,
|
|
56547
56908
|
domEvent: e
|
|
56548
56909
|
};
|
|
@@ -56553,7 +56914,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56553
56914
|
|
|
56554
56915
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56555
56916
|
active = _useActive.active,
|
|
56556
|
-
activeProps =
|
|
56917
|
+
activeProps = objectWithoutProperties_objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56557
56918
|
|
|
56558
56919
|
|
|
56559
56920
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56598,7 +56959,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56598
56959
|
optionRoleProps['aria-selected'] = selected;
|
|
56599
56960
|
}
|
|
56600
56961
|
|
|
56601
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56962
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, esm_extends_extends({
|
|
56602
56963
|
ref: legacyMenuItemRef,
|
|
56603
56964
|
elementRef: elementRef,
|
|
56604
56965
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56607,13 +56968,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56607
56968
|
}, restProps, activeProps, optionRoleProps, {
|
|
56608
56969
|
component: "li",
|
|
56609
56970
|
"aria-disabled": disabled,
|
|
56610
|
-
style:
|
|
56611
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56971
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, directionStyle), style),
|
|
56972
|
+
className: classnames_default()(itemCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(itemCls, "-active"), active), defineProperty_defineProperty(_classNames, "".concat(itemCls, "-selected"), selected), defineProperty_defineProperty(_classNames, "".concat(itemCls, "-disabled"), mergedDisabled), _classNames), className),
|
|
56612
56973
|
onClick: onInternalClick,
|
|
56613
56974
|
onKeyDown: onInternalKeyDown,
|
|
56614
56975
|
onFocus: onInternalFocus
|
|
56615
56976
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56616
|
-
props:
|
|
56977
|
+
props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
56617
56978
|
isSelected: selected
|
|
56618
56979
|
}),
|
|
56619
56980
|
icon: mergedItemIcon
|
|
@@ -56666,7 +57027,7 @@ function parseChildren(children, keyPath) {
|
|
|
56666
57027
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56667
57028
|
|
|
56668
57029
|
if (emptyKey) {
|
|
56669
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
57030
|
+
eventKey = "tmp_key-".concat([].concat(toConsumableArray_toConsumableArray(keyPath), [index]).join('-'));
|
|
56670
57031
|
}
|
|
56671
57032
|
|
|
56672
57033
|
var cloneProps = {
|
|
@@ -56714,14 +57075,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56714
57075
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56715
57076
|
var className = _ref.className,
|
|
56716
57077
|
children = _ref.children,
|
|
56717
|
-
restProps =
|
|
57078
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56718
57079
|
|
|
56719
57080
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56720
57081
|
prefixCls = _React$useContext.prefixCls,
|
|
56721
57082
|
mode = _React$useContext.mode,
|
|
56722
57083
|
rtl = _React$useContext.rtl;
|
|
56723
57084
|
|
|
56724
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
57085
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", esm_extends_extends({
|
|
56725
57086
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56726
57087
|
}, restProps, {
|
|
56727
57088
|
"data-menu-list": true,
|
|
@@ -56838,11 +57199,11 @@ function PopupTrigger(_ref) {
|
|
|
56838
57199
|
innerVisible = _React$useState2[0],
|
|
56839
57200
|
setInnerVisible = _React$useState2[1];
|
|
56840
57201
|
|
|
56841
|
-
var placement = rtl ?
|
|
57202
|
+
var placement = rtl ? objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, placementsRtl), builtinPlacements) : objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, placements), builtinPlacements);
|
|
56842
57203
|
var popupPlacement = popupPlacementMap[mode];
|
|
56843
57204
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
56844
57205
|
|
|
56845
|
-
var mergedMotion =
|
|
57206
|
+
var mergedMotion = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, targetMotion), {}, {
|
|
56846
57207
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
56847
57208
|
removeOnLeave: false,
|
|
56848
57209
|
motionAppear: true
|
|
@@ -56860,7 +57221,7 @@ function PopupTrigger(_ref) {
|
|
|
56860
57221
|
}, [visible]);
|
|
56861
57222
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
56862
57223
|
prefixCls: prefixCls,
|
|
56863
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
57224
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), defineProperty_defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
56864
57225
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
56865
57226
|
getPopupContainer: getPopupContainer,
|
|
56866
57227
|
builtinPlacements: placement,
|
|
@@ -56920,7 +57281,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56920
57281
|
}
|
|
56921
57282
|
}, [mode]); // ================================= Render =================================
|
|
56922
57283
|
|
|
56923
|
-
var mergedMotion =
|
|
57284
|
+
var mergedMotion = objectSpread2_objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
56924
57285
|
|
|
56925
57286
|
|
|
56926
57287
|
if (keyPath.length > 1) {
|
|
@@ -56945,7 +57306,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56945
57306
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
56946
57307
|
mode: fixedMode,
|
|
56947
57308
|
locked: !sameModeRef.current
|
|
56948
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
57309
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
56949
57310
|
visible: mergedOpen
|
|
56950
57311
|
}, mergedMotion, {
|
|
56951
57312
|
forceRender: forceSubMenuRender,
|
|
@@ -57008,7 +57369,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57008
57369
|
onTitleClick = props.onTitleClick,
|
|
57009
57370
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
57010
57371
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
57011
|
-
restProps =
|
|
57372
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SubMenu_excluded);
|
|
57012
57373
|
|
|
57013
57374
|
var domDataId = useMenuId(eventKey);
|
|
57014
57375
|
|
|
@@ -57051,7 +57412,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57051
57412
|
|
|
57052
57413
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
57053
57414
|
active = _useActive.active,
|
|
57054
|
-
activeProps =
|
|
57415
|
+
activeProps = objectWithoutProperties_objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
57055
57416
|
|
|
57056
57417
|
|
|
57057
57418
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
@@ -57136,7 +57497,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57136
57497
|
|
|
57137
57498
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
57138
57499
|
|
|
57139
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
57500
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
57140
57501
|
role: "menuitem",
|
|
57141
57502
|
style: directionStyle,
|
|
57142
57503
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -57152,7 +57513,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57152
57513
|
onFocus: onInternalFocus
|
|
57153
57514
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
57154
57515
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
57155
|
-
props:
|
|
57516
|
+
props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
57156
57517
|
isOpen: open,
|
|
57157
57518
|
// [Legacy] Not sure why need this mark
|
|
57158
57519
|
isSubMenu: true
|
|
@@ -57190,12 +57551,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57190
57551
|
} // >>>>> List node
|
|
57191
57552
|
|
|
57192
57553
|
|
|
57193
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
57554
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, esm_extends_extends({
|
|
57194
57555
|
role: "none"
|
|
57195
57556
|
}, restProps, {
|
|
57196
57557
|
component: "li",
|
|
57197
57558
|
style: style,
|
|
57198
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
57559
|
+
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-open"), open), defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-active"), mergedActive), defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-selected"), childrenSelected), defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-disabled"), mergedDisabled), _classNames)),
|
|
57199
57560
|
onMouseEnter: onInternalMouseEnter,
|
|
57200
57561
|
onMouseLeave: onInternalMouseLeave
|
|
57201
57562
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -57288,7 +57649,7 @@ function focusable(node) {
|
|
|
57288
57649
|
function getFocusNodeList(node) {
|
|
57289
57650
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
57290
57651
|
|
|
57291
|
-
var res =
|
|
57652
|
+
var res = toConsumableArray_toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
57292
57653
|
return focusable(child, includePositive);
|
|
57293
57654
|
});
|
|
57294
57655
|
|
|
@@ -57368,9 +57729,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
57368
57729
|
};
|
|
57369
57730
|
}
|
|
57370
57731
|
|
|
57371
|
-
var inline = (_inline = {},
|
|
57372
|
-
var horizontal = (_horizontal = {},
|
|
57373
|
-
var vertical = (_vertical = {},
|
|
57732
|
+
var inline = (_inline = {}, defineProperty_defineProperty(_inline, UP, prev), defineProperty_defineProperty(_inline, DOWN, next), _inline);
|
|
57733
|
+
var horizontal = (_horizontal = {}, defineProperty_defineProperty(_horizontal, useAccessibility_LEFT, isRtl ? next : prev), defineProperty_defineProperty(_horizontal, RIGHT, isRtl ? prev : next), defineProperty_defineProperty(_horizontal, DOWN, children), defineProperty_defineProperty(_horizontal, ENTER, children), _horizontal);
|
|
57734
|
+
var vertical = (_vertical = {}, defineProperty_defineProperty(_vertical, UP, prev), defineProperty_defineProperty(_vertical, DOWN, next), defineProperty_defineProperty(_vertical, ENTER, children), defineProperty_defineProperty(_vertical, ESC, parent), defineProperty_defineProperty(_vertical, useAccessibility_LEFT, isRtl ? children : parent), defineProperty_defineProperty(_vertical, RIGHT, isRtl ? parent : children), _vertical);
|
|
57374
57735
|
var offsets = {
|
|
57375
57736
|
inline: inline,
|
|
57376
57737
|
horizontal: horizontal,
|
|
@@ -57734,7 +58095,7 @@ function useKeyRecords() {
|
|
|
57734
58095
|
}, [getKeyPath]);
|
|
57735
58096
|
|
|
57736
58097
|
var getKeys = function getKeys() {
|
|
57737
|
-
var keys =
|
|
58098
|
+
var keys = toConsumableArray_toConsumableArray(key2pathRef.current.keys());
|
|
57738
58099
|
|
|
57739
58100
|
if (overflowKeys.length) {
|
|
57740
58101
|
keys.push(OVERFLOW_KEY);
|
|
@@ -57751,7 +58112,7 @@ function useKeyRecords() {
|
|
|
57751
58112
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
57752
58113
|
var pathKeys = new Set();
|
|
57753
58114
|
|
|
57754
|
-
|
|
58115
|
+
toConsumableArray_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
57755
58116
|
if (pathKey.startsWith(connectedPath)) {
|
|
57756
58117
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
57757
58118
|
}
|
|
@@ -57872,7 +58233,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57872
58233
|
openTransitionName = props.openTransitionName,
|
|
57873
58234
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
57874
58235
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
57875
|
-
restProps =
|
|
58236
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, Menu_excluded);
|
|
57876
58237
|
|
|
57877
58238
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
57878
58239
|
|
|
@@ -58026,7 +58387,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58026
58387
|
return key !== targetKey;
|
|
58027
58388
|
});
|
|
58028
58389
|
} else {
|
|
58029
|
-
newSelectKeys = [].concat(
|
|
58390
|
+
newSelectKeys = [].concat(toConsumableArray_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
58030
58391
|
}
|
|
58031
58392
|
} else {
|
|
58032
58393
|
newSelectKeys = [targetKey];
|
|
@@ -58034,7 +58395,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58034
58395
|
|
|
58035
58396
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
58036
58397
|
|
|
58037
|
-
var selectInfo =
|
|
58398
|
+
var selectInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
58038
58399
|
selectedKeys: newSelectKeys
|
|
58039
58400
|
});
|
|
58040
58401
|
|
|
@@ -58112,13 +58473,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58112
58473
|
);
|
|
58113
58474
|
}); // >>>>> Container
|
|
58114
58475
|
|
|
58115
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
58476
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, esm_extends_extends({
|
|
58116
58477
|
id: id,
|
|
58117
58478
|
ref: mergedRef,
|
|
58118
58479
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
58119
58480
|
component: "ul",
|
|
58120
58481
|
itemComponent: es_MenuItem,
|
|
58121
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
58482
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-inline-collapsed"), mergedInlineCollapsed), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), isRtl), _classNames)),
|
|
58122
58483
|
dir: direction,
|
|
58123
58484
|
style: style,
|
|
58124
58485
|
role: "menu",
|
|
@@ -58212,13 +58573,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58212
58573
|
title = _ref.title,
|
|
58213
58574
|
eventKey = _ref.eventKey,
|
|
58214
58575
|
children = _ref.children,
|
|
58215
|
-
restProps =
|
|
58576
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58216
58577
|
|
|
58217
58578
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58218
58579
|
prefixCls = _React$useContext.prefixCls;
|
|
58219
58580
|
|
|
58220
58581
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58221
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
58582
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", esm_extends_extends({}, restProps, {
|
|
58222
58583
|
onClick: function onClick(e) {
|
|
58223
58584
|
return e.stopPropagation();
|
|
58224
58585
|
},
|
|
@@ -58233,7 +58594,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58233
58594
|
|
|
58234
58595
|
function MenuItemGroup(_ref2) {
|
|
58235
58596
|
var children = _ref2.children,
|
|
58236
|
-
props =
|
|
58597
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58237
58598
|
|
|
58238
58599
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58239
58600
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58361,7 +58722,7 @@ function Dropdown(props, ref) {
|
|
|
58361
58722
|
visible = props.visible,
|
|
58362
58723
|
_props$trigger = props.trigger,
|
|
58363
58724
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58364
|
-
otherProps =
|
|
58725
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(props, Dropdown_excluded);
|
|
58365
58726
|
|
|
58366
58727
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58367
58728
|
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
@@ -58472,12 +58833,12 @@ function Dropdown(props, ref) {
|
|
|
58472
58833
|
triggerHideAction = ['click'];
|
|
58473
58834
|
}
|
|
58474
58835
|
|
|
58475
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58836
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
58476
58837
|
builtinPlacements: placements
|
|
58477
58838
|
}, otherProps), {}, {
|
|
58478
58839
|
prefixCls: prefixCls,
|
|
58479
58840
|
ref: triggerRef,
|
|
58480
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58841
|
+
popupClassName: classnames_default()(overlayClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58481
58842
|
popupStyle: overlayStyle,
|
|
58482
58843
|
action: trigger,
|
|
58483
58844
|
showAction: showAction,
|
|
@@ -58681,14 +59042,14 @@ function OperationNode(_ref, ref) {
|
|
|
58681
59042
|
}
|
|
58682
59043
|
}, [open]); // ========================= Render =========================
|
|
58683
59044
|
|
|
58684
|
-
var moreStyle =
|
|
59045
|
+
var moreStyle = defineProperty_defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
58685
59046
|
|
|
58686
59047
|
if (!tabs.length) {
|
|
58687
59048
|
moreStyle.visibility = 'hidden';
|
|
58688
59049
|
moreStyle.order = 1;
|
|
58689
59050
|
}
|
|
58690
59051
|
|
|
58691
|
-
var overlayClassName = classnames_default()(
|
|
59052
|
+
var overlayClassName = classnames_default()(defineProperty_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
58692
59053
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
58693
59054
|
prefixCls: dropdownPrefix,
|
|
58694
59055
|
overlay: menu,
|
|
@@ -59013,7 +59374,7 @@ function TabNavList(props, ref) {
|
|
|
59013
59374
|
var innerAddButtonRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
59014
59375
|
|
|
59015
59376
|
var _useRefs = useRefs(),
|
|
59016
|
-
_useRefs2 =
|
|
59377
|
+
_useRefs2 = esm_slicedToArray_slicedToArray(_useRefs, 2),
|
|
59017
59378
|
getBtnRef = _useRefs2[0],
|
|
59018
59379
|
removeBtnRef = _useRefs2[1];
|
|
59019
59380
|
|
|
@@ -59026,7 +59387,7 @@ function TabNavList(props, ref) {
|
|
|
59026
59387
|
});
|
|
59027
59388
|
}
|
|
59028
59389
|
}),
|
|
59029
|
-
_useSyncState2 =
|
|
59390
|
+
_useSyncState2 = esm_slicedToArray_slicedToArray(_useSyncState, 2),
|
|
59030
59391
|
transformLeft = _useSyncState2[0],
|
|
59031
59392
|
setTransformLeft = _useSyncState2[1];
|
|
59032
59393
|
|
|
@@ -59037,42 +59398,42 @@ function TabNavList(props, ref) {
|
|
|
59037
59398
|
});
|
|
59038
59399
|
}
|
|
59039
59400
|
}),
|
|
59040
|
-
_useSyncState4 =
|
|
59401
|
+
_useSyncState4 = esm_slicedToArray_slicedToArray(_useSyncState3, 2),
|
|
59041
59402
|
transformTop = _useSyncState4[0],
|
|
59042
59403
|
setTransformTop = _useSyncState4[1];
|
|
59043
59404
|
|
|
59044
59405
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
59045
|
-
_useState2 =
|
|
59406
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
59046
59407
|
wrapperScrollWidth = _useState2[0],
|
|
59047
59408
|
setWrapperScrollWidth = _useState2[1];
|
|
59048
59409
|
|
|
59049
59410
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
59050
|
-
_useState4 =
|
|
59411
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
59051
59412
|
wrapperScrollHeight = _useState4[0],
|
|
59052
59413
|
setWrapperScrollHeight = _useState4[1];
|
|
59053
59414
|
|
|
59054
59415
|
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
59055
|
-
_useState6 =
|
|
59416
|
+
_useState6 = esm_slicedToArray_slicedToArray(_useState5, 2),
|
|
59056
59417
|
wrapperWidth = _useState6[0],
|
|
59057
59418
|
setWrapperWidth = _useState6[1];
|
|
59058
59419
|
|
|
59059
59420
|
var _useState7 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
59060
|
-
_useState8 =
|
|
59421
|
+
_useState8 = esm_slicedToArray_slicedToArray(_useState7, 2),
|
|
59061
59422
|
wrapperHeight = _useState8[0],
|
|
59062
59423
|
setWrapperHeight = _useState8[1];
|
|
59063
59424
|
|
|
59064
59425
|
var _useState9 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
59065
|
-
_useState10 =
|
|
59426
|
+
_useState10 = esm_slicedToArray_slicedToArray(_useState9, 2),
|
|
59066
59427
|
addWidth = _useState10[0],
|
|
59067
59428
|
setAddWidth = _useState10[1];
|
|
59068
59429
|
|
|
59069
59430
|
var _useState11 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
59070
|
-
_useState12 =
|
|
59431
|
+
_useState12 = esm_slicedToArray_slicedToArray(_useState11, 2),
|
|
59071
59432
|
addHeight = _useState12[0],
|
|
59072
59433
|
setAddHeight = _useState12[1];
|
|
59073
59434
|
|
|
59074
59435
|
var _useRafState = useRafState(new Map()),
|
|
59075
|
-
_useRafState2 =
|
|
59436
|
+
_useRafState2 = esm_slicedToArray_slicedToArray(_useRafState, 2),
|
|
59076
59437
|
tabSizes = _useRafState2[0],
|
|
59077
59438
|
setTabSizes = _useRafState2[1];
|
|
59078
59439
|
|
|
@@ -59109,7 +59470,7 @@ function TabNavList(props, ref) {
|
|
|
59109
59470
|
var touchMovingRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
59110
59471
|
|
|
59111
59472
|
var _useState13 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59112
|
-
_useState14 =
|
|
59473
|
+
_useState14 = esm_slicedToArray_slicedToArray(_useState13, 2),
|
|
59113
59474
|
lockAnimation = _useState14[0],
|
|
59114
59475
|
setLockAnimation = _useState14[1];
|
|
59115
59476
|
|
|
@@ -59220,7 +59581,7 @@ function TabNavList(props, ref) {
|
|
|
59220
59581
|
}, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
59221
59582
|
tabs: tabs
|
|
59222
59583
|
})),
|
|
59223
|
-
_useVisibleRange2 =
|
|
59584
|
+
_useVisibleRange2 = esm_slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
59224
59585
|
visibleStart = _useVisibleRange2[0],
|
|
59225
59586
|
visibleEnd = _useVisibleRange2[1];
|
|
59226
59587
|
|
|
@@ -59312,7 +59673,7 @@ function TabNavList(props, ref) {
|
|
|
59312
59673
|
var hiddenTabs = [].concat(_toConsumableArray(startHiddenTabs), _toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
59313
59674
|
|
|
59314
59675
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59315
|
-
_useState16 =
|
|
59676
|
+
_useState16 = esm_slicedToArray_slicedToArray(_useState15, 2),
|
|
59316
59677
|
inkStyle = _useState16[0],
|
|
59317
59678
|
setInkStyle = _useState16[1];
|
|
59318
59679
|
|
|
@@ -59489,7 +59850,7 @@ function TabPane(_ref) {
|
|
|
59489
59850
|
children = _ref.children;
|
|
59490
59851
|
|
|
59491
59852
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(forceRender),
|
|
59492
|
-
_React$useState2 =
|
|
59853
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
59493
59854
|
visited = _React$useState2[0],
|
|
59494
59855
|
setVisited = _React$useState2[1];
|
|
59495
59856
|
|
|
@@ -59626,7 +59987,7 @@ function Tabs(_ref, ref) {
|
|
|
59626
59987
|
|
|
59627
59988
|
|
|
59628
59989
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
59629
|
-
_useState2 =
|
|
59990
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
59630
59991
|
mobile = _useState2[0],
|
|
59631
59992
|
setMobile = _useState2[1];
|
|
59632
59993
|
|
|
@@ -59643,7 +60004,7 @@ function Tabs(_ref, ref) {
|
|
|
59643
60004
|
value: activeKey,
|
|
59644
60005
|
defaultValue: defaultActiveKey
|
|
59645
60006
|
}),
|
|
59646
|
-
_useMergedState2 =
|
|
60007
|
+
_useMergedState2 = esm_slicedToArray_slicedToArray(_useMergedState, 2),
|
|
59647
60008
|
mergedActiveKey = _useMergedState2[0],
|
|
59648
60009
|
setMergedActiveKey = _useMergedState2[1];
|
|
59649
60010
|
|
|
@@ -59652,7 +60013,7 @@ function Tabs(_ref, ref) {
|
|
|
59652
60013
|
return tab.key === mergedActiveKey;
|
|
59653
60014
|
});
|
|
59654
60015
|
}),
|
|
59655
|
-
_useState4 =
|
|
60016
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
59656
60017
|
activeIndex = _useState4[0],
|
|
59657
60018
|
setActiveIndex = _useState4[1]; // Reset active key if not exist anymore
|
|
59658
60019
|
|
|
@@ -59677,7 +60038,7 @@ function Tabs(_ref, ref) {
|
|
|
59677
60038
|
var _useMergedState3 = useControlledState(null, {
|
|
59678
60039
|
value: id
|
|
59679
60040
|
}),
|
|
59680
|
-
_useMergedState4 =
|
|
60041
|
+
_useMergedState4 = esm_slicedToArray_slicedToArray(_useMergedState3, 2),
|
|
59681
60042
|
mergedId = _useMergedState4[0],
|
|
59682
60043
|
setMergedId = _useMergedState4[1];
|
|
59683
60044
|
|
|
@@ -59894,7 +60255,7 @@ var Pager = function Pager(props) {
|
|
|
59894
60255
|
var _classNames;
|
|
59895
60256
|
|
|
59896
60257
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
59897
|
-
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {},
|
|
60258
|
+
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-active"), props.active), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-disabled"), !props.page), defineProperty_defineProperty(_classNames, props.className, !!props.className), _classNames));
|
|
59898
60259
|
|
|
59899
60260
|
var handleClick = function handleClick() {
|
|
59900
60261
|
props.onClick(props.page);
|
|
@@ -59939,14 +60300,14 @@ var Pager = function Pager(props) {
|
|
|
59939
60300
|
|
|
59940
60301
|
|
|
59941
60302
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
59942
|
-
|
|
60303
|
+
inherits_inherits(Options, _React$Component);
|
|
59943
60304
|
|
|
59944
|
-
var _super =
|
|
60305
|
+
var _super = createSuper_createSuper(Options);
|
|
59945
60306
|
|
|
59946
60307
|
function Options() {
|
|
59947
60308
|
var _this;
|
|
59948
60309
|
|
|
59949
|
-
|
|
60310
|
+
classCallCheck_classCallCheck(this, Options);
|
|
59950
60311
|
|
|
59951
60312
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59952
60313
|
args[_key] = arguments[_key];
|
|
@@ -60012,7 +60373,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
60012
60373
|
return _this;
|
|
60013
60374
|
}
|
|
60014
60375
|
|
|
60015
|
-
|
|
60376
|
+
createClass_createClass(Options, [{
|
|
60016
60377
|
key: "getValidValue",
|
|
60017
60378
|
value: function getValidValue() {
|
|
60018
60379
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -60911,7 +61272,7 @@ var responsiveObserve = {
|
|
|
60911
61272
|
|
|
60912
61273
|
function useBreakpoint() {
|
|
60913
61274
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
60914
|
-
_useState2 =
|
|
61275
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
60915
61276
|
screens = _useState2[0],
|
|
60916
61277
|
setScreens = _useState2[1];
|
|
60917
61278
|
|
|
@@ -61782,6 +62143,7 @@ function Action(_ref) {
|
|
|
61782
62143
|
|
|
61783
62144
|
var data = _ref.data,
|
|
61784
62145
|
subscription = _ref.subscription,
|
|
62146
|
+
less15Minutes = _ref.less15Minutes,
|
|
61785
62147
|
onActionDetailClick = _ref.onActionDetailClick,
|
|
61786
62148
|
handleLogin = _ref.handleLogin,
|
|
61787
62149
|
isLogin = _ref.isLogin,
|
|
@@ -61802,6 +62164,12 @@ function Action(_ref) {
|
|
|
61802
62164
|
actionNum = 2;
|
|
61803
62165
|
} else {
|
|
61804
62166
|
// status = 0
|
|
62167
|
+
if (less15Minutes) {
|
|
62168
|
+
actionNum = 1;
|
|
62169
|
+
return actionNum;
|
|
62170
|
+
} // 如果超过了开播时间,不管有没有预约,都直接进入直播
|
|
62171
|
+
|
|
62172
|
+
|
|
61805
62173
|
// 如果超过了开播时间,不管有没有预约,都直接进入直播
|
|
61806
62174
|
var now = new Date().getTime();
|
|
61807
62175
|
var begin = new Date(beginTime).getTime();
|
|
@@ -62036,6 +62404,11 @@ function MobileListItem(_ref2) {
|
|
|
62036
62404
|
};
|
|
62037
62405
|
}();
|
|
62038
62406
|
|
|
62407
|
+
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(dayjs_min_default()(data.begin_time).diff(dayjs_min_default()(), 'minute') < 15 && dayjs_min_default()(data.begin_time).diff(dayjs_min_default()(), 'minute') > 0),
|
|
62408
|
+
_useState6 = MobileListItem_slicedToArray(_useState5, 2),
|
|
62409
|
+
less15Minutes = _useState6[0],
|
|
62410
|
+
setLess15Minutes = _useState6[1];
|
|
62411
|
+
|
|
62039
62412
|
var handleDetailClick = /*#__PURE__*/function () {
|
|
62040
62413
|
var _ref4 = MobileListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
62041
62414
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
@@ -62091,6 +62464,9 @@ function MobileListItem(_ref2) {
|
|
|
62091
62464
|
key: data.live_id,
|
|
62092
62465
|
endTime: dayjs_min_default()(data.begin_time).valueOf(),
|
|
62093
62466
|
onFinish: handleCountDownFinish,
|
|
62467
|
+
onLess15Minutes: function onLess15Minutes() {
|
|
62468
|
+
return setLess15Minutes(true);
|
|
62469
|
+
},
|
|
62094
62470
|
className: mobile_MobileListItem_module.countDown
|
|
62095
62471
|
}));
|
|
62096
62472
|
}
|
|
@@ -62128,6 +62504,7 @@ function MobileListItem(_ref2) {
|
|
|
62128
62504
|
className: mobile_MobileListItem_module.mobileAction
|
|
62129
62505
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(Action, {
|
|
62130
62506
|
data: data,
|
|
62507
|
+
less15Minutes: less15Minutes,
|
|
62131
62508
|
subscription: subscription,
|
|
62132
62509
|
onActionDetailClick: handleDetailClick,
|
|
62133
62510
|
handleLogin: handleLogin,
|
|
@@ -62538,7 +62915,17 @@ function ListItem(_ref2) {
|
|
|
62538
62915
|
setData = _useState2[1];
|
|
62539
62916
|
|
|
62540
62917
|
var liveId = data.live_id,
|
|
62541
|
-
liveName = data.live_name;
|
|
62918
|
+
liveName = data.live_name; // // mock
|
|
62919
|
+
// if (!data._xxx) {
|
|
62920
|
+
// data.begin_time = dayjs()
|
|
62921
|
+
// // .add(15, 'minute')
|
|
62922
|
+
// .add(15, 'second')
|
|
62923
|
+
// .valueOf()
|
|
62924
|
+
// data.end_time = dayjs()
|
|
62925
|
+
// .add(1, 'hour')
|
|
62926
|
+
// .valueOf()
|
|
62927
|
+
// }
|
|
62928
|
+
|
|
62542
62929
|
var coverUrl = (data === null || data === void 0 ? void 0 : data.cover_url) || live;
|
|
62543
62930
|
var liveStatus = ListItem_getLiveStatus(data);
|
|
62544
62931
|
|