@x-edu/live-player 0.0.1-0.beta.3 → 0.0.1-0.beta.5
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.
|
@@ -2593,7 +2593,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2593
2593
|
|
|
2594
2594
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2595
2595
|
// Module
|
|
2596
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_action_DHsbc{font-size:14px;line-height:22px;color:#1e62ec;border-radius:144.889px;border:1px solid #1e62ec;width:88px;height:32px;display:flex;align-items:center;justify-content:center}.index-module_action-subscribe_1N-KN{background:#1e62ec;color:#fff}.index-module_action-has-subscribe_LYNor{border:
|
|
2596
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_action_DHsbc{font-size:14px;line-height:22px;color:#1e62ec;border-radius:144.889px;border:1px solid #1e62ec;width:88px;height:32px;display:flex;align-items:center;justify-content:center}.index-module_action-subscribe_1N-KN{background:#1e62ec;color:#fff}.index-module_action-has-subscribe_LYNor{border:1px solid #b7ccf9;color:#b7ccf9}", ""]);
|
|
2597
2597
|
// Exports
|
|
2598
2598
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2599
2599
|
"action": "index-module_action_DHsbc",
|
|
@@ -25807,13 +25807,6 @@ module.exports = styleTagTransform;
|
|
|
25807
25807
|
|
|
25808
25808
|
/***/ }),
|
|
25809
25809
|
|
|
25810
|
-
/***/ 5273:
|
|
25811
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25812
|
-
|
|
25813
|
-
module.exports = __webpack_require__(5666);
|
|
25814
|
-
|
|
25815
|
-
/***/ }),
|
|
25816
|
-
|
|
25817
25810
|
/***/ 3006:
|
|
25818
25811
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25819
25812
|
|
|
@@ -34277,53 +34270,6 @@ var cacheStyle = {};
|
|
|
34277
34270
|
}
|
|
34278
34271
|
}
|
|
34279
34272
|
});
|
|
34280
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34281
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34282
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
34283
|
-
|
|
34284
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34285
|
-
arr2[i] = arr[i];
|
|
34286
|
-
}
|
|
34287
|
-
|
|
34288
|
-
return arr2;
|
|
34289
|
-
}
|
|
34290
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34291
|
-
|
|
34292
|
-
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34293
|
-
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34294
|
-
}
|
|
34295
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34296
|
-
function iterableToArray_iterableToArray(iter) {
|
|
34297
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34298
|
-
}
|
|
34299
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34300
|
-
|
|
34301
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34302
|
-
if (!o) return;
|
|
34303
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34304
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34305
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34306
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34307
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34308
|
-
}
|
|
34309
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34310
|
-
function nonIterableSpread_nonIterableSpread() {
|
|
34311
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34312
|
-
}
|
|
34313
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34314
|
-
|
|
34315
|
-
|
|
34316
|
-
|
|
34317
|
-
|
|
34318
|
-
function toConsumableArray_toConsumableArray(arr) {
|
|
34319
|
-
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34320
|
-
}
|
|
34321
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34322
|
-
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
34323
|
-
if (!(instance instanceof Constructor)) {
|
|
34324
|
-
throw new TypeError("Cannot call a class as a function");
|
|
34325
|
-
}
|
|
34326
|
-
}
|
|
34327
34273
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34328
34274
|
|
|
34329
34275
|
|
|
@@ -34340,7 +34286,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34340
34286
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34341
34287
|
var _this = this;
|
|
34342
34288
|
|
|
34343
|
-
|
|
34289
|
+
_classCallCheck(this, ScrollLocker);
|
|
34344
34290
|
|
|
34345
34291
|
this.lockTarget = void 0;
|
|
34346
34292
|
this.options = void 0;
|
|
@@ -34388,7 +34334,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34388
34334
|
var options = _ref3.options;
|
|
34389
34335
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34390
34336
|
})) {
|
|
34391
|
-
locks = [].concat(
|
|
34337
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34392
34338
|
target: _this.lockTarget,
|
|
34393
34339
|
options: _this.options
|
|
34394
34340
|
}]);
|
|
@@ -34426,7 +34372,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34426
34372
|
container.className = addClassName.trim();
|
|
34427
34373
|
}
|
|
34428
34374
|
|
|
34429
|
-
locks = [].concat(
|
|
34375
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34430
34376
|
target: _this.lockTarget,
|
|
34431
34377
|
options: _this.options
|
|
34432
34378
|
}]);
|
|
@@ -34714,125 +34660,6 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34714
34660
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
34715
34661
|
|
|
34716
34662
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
34717
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
34718
|
-
function esm_extends_extends() {
|
|
34719
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
34720
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
34721
|
-
var source = arguments[i];
|
|
34722
|
-
|
|
34723
|
-
for (var key in source) {
|
|
34724
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34725
|
-
target[key] = source[key];
|
|
34726
|
-
}
|
|
34727
|
-
}
|
|
34728
|
-
}
|
|
34729
|
-
|
|
34730
|
-
return target;
|
|
34731
|
-
};
|
|
34732
|
-
|
|
34733
|
-
return esm_extends_extends.apply(this, arguments);
|
|
34734
|
-
}
|
|
34735
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
34736
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
34737
|
-
if (key in obj) {
|
|
34738
|
-
Object.defineProperty(obj, key, {
|
|
34739
|
-
value: value,
|
|
34740
|
-
enumerable: true,
|
|
34741
|
-
configurable: true,
|
|
34742
|
-
writable: true
|
|
34743
|
-
});
|
|
34744
|
-
} else {
|
|
34745
|
-
obj[key] = value;
|
|
34746
|
-
}
|
|
34747
|
-
|
|
34748
|
-
return obj;
|
|
34749
|
-
}
|
|
34750
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
34751
|
-
|
|
34752
|
-
|
|
34753
|
-
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
34754
|
-
var keys = Object.keys(object);
|
|
34755
|
-
|
|
34756
|
-
if (Object.getOwnPropertySymbols) {
|
|
34757
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
34758
|
-
|
|
34759
|
-
if (enumerableOnly) {
|
|
34760
|
-
symbols = symbols.filter(function (sym) {
|
|
34761
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
34762
|
-
});
|
|
34763
|
-
}
|
|
34764
|
-
|
|
34765
|
-
keys.push.apply(keys, symbols);
|
|
34766
|
-
}
|
|
34767
|
-
|
|
34768
|
-
return keys;
|
|
34769
|
-
}
|
|
34770
|
-
|
|
34771
|
-
function objectSpread2_objectSpread2(target) {
|
|
34772
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
34773
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
34774
|
-
|
|
34775
|
-
if (i % 2) {
|
|
34776
|
-
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
34777
|
-
defineProperty_defineProperty(target, key, source[key]);
|
|
34778
|
-
});
|
|
34779
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
34780
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
34781
|
-
} else {
|
|
34782
|
-
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
34783
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
34784
|
-
});
|
|
34785
|
-
}
|
|
34786
|
-
}
|
|
34787
|
-
|
|
34788
|
-
return target;
|
|
34789
|
-
}
|
|
34790
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
34791
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
34792
|
-
if (Array.isArray(arr)) return arr;
|
|
34793
|
-
}
|
|
34794
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
34795
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
34796
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
34797
|
-
|
|
34798
|
-
if (_i == null) return;
|
|
34799
|
-
var _arr = [];
|
|
34800
|
-
var _n = true;
|
|
34801
|
-
var _d = false;
|
|
34802
|
-
|
|
34803
|
-
var _s, _e;
|
|
34804
|
-
|
|
34805
|
-
try {
|
|
34806
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
34807
|
-
_arr.push(_s.value);
|
|
34808
|
-
|
|
34809
|
-
if (i && _arr.length === i) break;
|
|
34810
|
-
}
|
|
34811
|
-
} catch (err) {
|
|
34812
|
-
_d = true;
|
|
34813
|
-
_e = err;
|
|
34814
|
-
} finally {
|
|
34815
|
-
try {
|
|
34816
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
34817
|
-
} finally {
|
|
34818
|
-
if (_d) throw _e;
|
|
34819
|
-
}
|
|
34820
|
-
}
|
|
34821
|
-
|
|
34822
|
-
return _arr;
|
|
34823
|
-
}
|
|
34824
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34825
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
34826
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34827
|
-
}
|
|
34828
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
34829
|
-
|
|
34830
|
-
|
|
34831
|
-
|
|
34832
|
-
|
|
34833
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
34834
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
34835
|
-
}
|
|
34836
34663
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
34837
34664
|
/**
|
|
34838
34665
|
* @ignore
|
|
@@ -36482,8 +36309,8 @@ function Mask(props) {
|
|
|
36482
36309
|
}, function (_ref) {
|
|
36483
36310
|
var motionClassName = _ref.className,
|
|
36484
36311
|
motionStyle = _ref.style;
|
|
36485
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36486
|
-
style:
|
|
36312
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36313
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), style),
|
|
36487
36314
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36488
36315
|
}, maskProps));
|
|
36489
36316
|
});
|
|
@@ -36608,7 +36435,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36608
36435
|
}); // ============================= Style ==============================
|
|
36609
36436
|
|
|
36610
36437
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
36611
|
-
_React$useState2 =
|
|
36438
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
36612
36439
|
transformOrigin = _React$useState2[0],
|
|
36613
36440
|
setTransformOrigin = _React$useState2[1];
|
|
36614
36441
|
|
|
@@ -36666,7 +36493,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36666
36493
|
|
|
36667
36494
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
36668
36495
|
className: "".concat(prefixCls, "-content")
|
|
36669
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36496
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36670
36497
|
className: "".concat(prefixCls, "-body"),
|
|
36671
36498
|
style: bodyStyle
|
|
36672
36499
|
}, bodyProps), children), footerNode);
|
|
@@ -36686,7 +36513,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36686
36513
|
key: "dialog-element",
|
|
36687
36514
|
role: "document",
|
|
36688
36515
|
ref: motionRef,
|
|
36689
|
-
style:
|
|
36516
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionStyle), style), contentStyle),
|
|
36690
36517
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
36691
36518
|
onMouseDown: onMouseDown,
|
|
36692
36519
|
onMouseUp: onMouseUp
|
|
@@ -36754,7 +36581,7 @@ function Dialog(props) {
|
|
|
36754
36581
|
var contentRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
36755
36582
|
|
|
36756
36583
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(visible),
|
|
36757
|
-
_React$useState2 =
|
|
36584
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
36758
36585
|
animatedVisible = _React$useState2[0],
|
|
36759
36586
|
setAnimatedVisible = _React$useState2[1]; // ========================== Init ==========================
|
|
36760
36587
|
|
|
@@ -36868,7 +36695,7 @@ function Dialog(props) {
|
|
|
36868
36695
|
return function () {};
|
|
36869
36696
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
36870
36697
|
|
|
36871
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36698
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36872
36699
|
className: "".concat(prefixCls, "-root")
|
|
36873
36700
|
}, pickAttrs(props, {
|
|
36874
36701
|
data: true
|
|
@@ -36876,11 +36703,11 @@ function Dialog(props) {
|
|
|
36876
36703
|
prefixCls: prefixCls,
|
|
36877
36704
|
visible: mask && visible,
|
|
36878
36705
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
36879
|
-
style:
|
|
36706
|
+
style: _objectSpread2({
|
|
36880
36707
|
zIndex: zIndex
|
|
36881
36708
|
}, maskStyle),
|
|
36882
36709
|
maskProps: maskProps
|
|
36883
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36710
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36884
36711
|
tabIndex: -1,
|
|
36885
36712
|
onKeyDown: onWrapperKeyDown,
|
|
36886
36713
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -36888,12 +36715,12 @@ function Dialog(props) {
|
|
|
36888
36715
|
onClick: onWrapperClick,
|
|
36889
36716
|
role: "dialog",
|
|
36890
36717
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
36891
|
-
style:
|
|
36718
|
+
style: _objectSpread2(_objectSpread2({
|
|
36892
36719
|
zIndex: zIndex
|
|
36893
36720
|
}, wrapStyle), {}, {
|
|
36894
36721
|
display: !animatedVisible ? 'none' : null
|
|
36895
36722
|
})
|
|
36896
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
36723
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, extends_extends({}, props, {
|
|
36897
36724
|
onMouseDown: onContentMouseDown,
|
|
36898
36725
|
onMouseUp: onContentMouseUp,
|
|
36899
36726
|
ref: contentRef,
|
|
@@ -44526,21 +44353,19 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
44526
44353
|
|
|
44527
44354
|
|
|
44528
44355
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
44529
|
-
function
|
|
44530
|
-
|
|
44356
|
+
function esm_extends_extends() {
|
|
44357
|
+
esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
44531
44358
|
for (var i = 1; i < arguments.length; i++) {
|
|
44532
44359
|
var source = arguments[i];
|
|
44533
|
-
|
|
44534
44360
|
for (var key in source) {
|
|
44535
44361
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44536
44362
|
target[key] = source[key];
|
|
44537
44363
|
}
|
|
44538
44364
|
}
|
|
44539
44365
|
}
|
|
44540
|
-
|
|
44541
44366
|
return target;
|
|
44542
44367
|
};
|
|
44543
|
-
return
|
|
44368
|
+
return esm_extends_extends.apply(this, arguments);
|
|
44544
44369
|
}
|
|
44545
44370
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
44546
44371
|
function esm_typeof_typeof(obj) {
|
|
@@ -44557,13 +44382,11 @@ function esm_typeof_typeof(obj) {
|
|
|
44557
44382
|
function _toPrimitive(input, hint) {
|
|
44558
44383
|
if (esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
44559
44384
|
var prim = input[Symbol.toPrimitive];
|
|
44560
|
-
|
|
44561
44385
|
if (prim !== undefined) {
|
|
44562
44386
|
var res = prim.call(input, hint || "default");
|
|
44563
44387
|
if (esm_typeof_typeof(res) !== "object") return res;
|
|
44564
44388
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44565
44389
|
}
|
|
44566
|
-
|
|
44567
44390
|
return (hint === "string" ? String : Number)(input);
|
|
44568
44391
|
}
|
|
44569
44392
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -44575,9 +44398,8 @@ function _toPropertyKey(arg) {
|
|
|
44575
44398
|
}
|
|
44576
44399
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
44577
44400
|
|
|
44578
|
-
function
|
|
44401
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
44579
44402
|
key = _toPropertyKey(key);
|
|
44580
|
-
|
|
44581
44403
|
if (key in obj) {
|
|
44582
44404
|
Object.defineProperty(obj, key, {
|
|
44583
44405
|
value: value,
|
|
@@ -44588,61 +44410,51 @@ function esm_defineProperty_defineProperty(obj, key, value) {
|
|
|
44588
44410
|
} else {
|
|
44589
44411
|
obj[key] = value;
|
|
44590
44412
|
}
|
|
44591
|
-
|
|
44592
44413
|
return obj;
|
|
44593
44414
|
}
|
|
44594
44415
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
44595
44416
|
|
|
44596
|
-
|
|
44597
|
-
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44417
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44598
44418
|
var keys = Object.keys(object);
|
|
44599
|
-
|
|
44600
44419
|
if (Object.getOwnPropertySymbols) {
|
|
44601
44420
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
44602
44421
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
44603
44422
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
44604
44423
|
})), keys.push.apply(keys, symbols);
|
|
44605
44424
|
}
|
|
44606
|
-
|
|
44607
44425
|
return keys;
|
|
44608
44426
|
}
|
|
44609
|
-
|
|
44610
|
-
function esm_objectSpread2_objectSpread2(target) {
|
|
44427
|
+
function objectSpread2_objectSpread2(target) {
|
|
44611
44428
|
for (var i = 1; i < arguments.length; i++) {
|
|
44612
44429
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
44613
|
-
i % 2 ?
|
|
44614
|
-
|
|
44615
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
44430
|
+
i % 2 ? objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
44431
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
44432
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
44616
44433
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44617
44434
|
});
|
|
44618
44435
|
}
|
|
44619
|
-
|
|
44620
44436
|
return target;
|
|
44621
44437
|
}
|
|
44622
44438
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
44623
|
-
function
|
|
44439
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
44624
44440
|
if (Array.isArray(arr)) return arr;
|
|
44625
44441
|
}
|
|
44626
44442
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
44627
|
-
function
|
|
44443
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
44628
44444
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
44629
|
-
|
|
44630
44445
|
if (null != _i) {
|
|
44631
44446
|
var _s,
|
|
44632
|
-
|
|
44633
|
-
|
|
44634
|
-
|
|
44635
|
-
|
|
44636
|
-
|
|
44637
|
-
|
|
44638
|
-
|
|
44447
|
+
_e,
|
|
44448
|
+
_x,
|
|
44449
|
+
_r,
|
|
44450
|
+
_arr = [],
|
|
44451
|
+
_n = !0,
|
|
44452
|
+
_d = !1;
|
|
44639
44453
|
try {
|
|
44640
44454
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
44641
44455
|
if (Object(_i) !== _i) return;
|
|
44642
44456
|
_n = !1;
|
|
44643
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
44644
|
-
;
|
|
44645
|
-
}
|
|
44457
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
44646
44458
|
} catch (err) {
|
|
44647
44459
|
_d = !0, _e = err;
|
|
44648
44460
|
} finally {
|
|
@@ -44652,32 +44464,27 @@ function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
44652
44464
|
if (_d) throw _e;
|
|
44653
44465
|
}
|
|
44654
44466
|
}
|
|
44655
|
-
|
|
44656
44467
|
return _arr;
|
|
44657
44468
|
}
|
|
44658
44469
|
}
|
|
44659
44470
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
44660
|
-
function
|
|
44471
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
44661
44472
|
if (len == null || len > arr.length) len = arr.length;
|
|
44662
|
-
|
|
44663
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
44664
|
-
arr2[i] = arr[i];
|
|
44665
|
-
}
|
|
44666
|
-
|
|
44473
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
44667
44474
|
return arr2;
|
|
44668
44475
|
}
|
|
44669
44476
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
44670
44477
|
|
|
44671
|
-
function
|
|
44478
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
44672
44479
|
if (!o) return;
|
|
44673
|
-
if (typeof o === "string") return
|
|
44480
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44674
44481
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
44675
44482
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
44676
44483
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44677
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
44484
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44678
44485
|
}
|
|
44679
44486
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
44680
|
-
function
|
|
44487
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
44681
44488
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44682
44489
|
}
|
|
44683
44490
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -44685,8 +44492,8 @@ function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
|
44685
44492
|
|
|
44686
44493
|
|
|
44687
44494
|
|
|
44688
|
-
function
|
|
44689
|
-
return
|
|
44495
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
44496
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
44690
44497
|
}
|
|
44691
44498
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
44692
44499
|
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -44694,13 +44501,11 @@ function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, exclu
|
|
|
44694
44501
|
var target = {};
|
|
44695
44502
|
var sourceKeys = Object.keys(source);
|
|
44696
44503
|
var key, i;
|
|
44697
|
-
|
|
44698
44504
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
44699
44505
|
key = sourceKeys[i];
|
|
44700
44506
|
if (excluded.indexOf(key) >= 0) continue;
|
|
44701
44507
|
target[key] = source[key];
|
|
44702
44508
|
}
|
|
44703
|
-
|
|
44704
44509
|
return target;
|
|
44705
44510
|
}
|
|
44706
44511
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
@@ -44709,10 +44514,8 @@ function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
44709
44514
|
if (source == null) return {};
|
|
44710
44515
|
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
44711
44516
|
var key, i;
|
|
44712
|
-
|
|
44713
44517
|
if (Object.getOwnPropertySymbols) {
|
|
44714
44518
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
44715
|
-
|
|
44716
44519
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
44717
44520
|
key = sourceSymbolKeys[i];
|
|
44718
44521
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -44720,7 +44523,6 @@ function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
44720
44523
|
target[key] = source[key];
|
|
44721
44524
|
}
|
|
44722
44525
|
}
|
|
44723
|
-
|
|
44724
44526
|
return target;
|
|
44725
44527
|
}
|
|
44726
44528
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -45856,7 +45658,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
45856
45658
|
position: 'relative',
|
|
45857
45659
|
overflow: 'hidden'
|
|
45858
45660
|
};
|
|
45859
|
-
innerStyle =
|
|
45661
|
+
innerStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
45860
45662
|
transform: "translateY(".concat(offset, "px)"),
|
|
45861
45663
|
position: 'absolute',
|
|
45862
45664
|
left: 0,
|
|
@@ -45873,23 +45675,22 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
45873
45675
|
onInnerResize();
|
|
45874
45676
|
}
|
|
45875
45677
|
}
|
|
45876
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
45678
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
45877
45679
|
style: innerStyle,
|
|
45878
|
-
className: classnames_default()(
|
|
45680
|
+
className: classnames_default()(defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
45879
45681
|
ref: ref
|
|
45880
45682
|
}, innerProps), children)));
|
|
45881
45683
|
});
|
|
45882
45684
|
Filler.displayName = 'Filler';
|
|
45883
45685
|
/* harmony default export */ var es_Filler = (Filler);
|
|
45884
45686
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
45885
|
-
function
|
|
45687
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
45886
45688
|
if (!(instance instanceof Constructor)) {
|
|
45887
45689
|
throw new TypeError("Cannot call a class as a function");
|
|
45888
45690
|
}
|
|
45889
45691
|
}
|
|
45890
45692
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
45891
45693
|
|
|
45892
|
-
|
|
45893
45694
|
function createClass_defineProperties(target, props) {
|
|
45894
45695
|
for (var i = 0; i < props.length; i++) {
|
|
45895
45696
|
var descriptor = props[i];
|
|
@@ -45899,7 +45700,6 @@ function createClass_defineProperties(target, props) {
|
|
|
45899
45700
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
45900
45701
|
}
|
|
45901
45702
|
}
|
|
45902
|
-
|
|
45903
45703
|
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
45904
45704
|
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
45905
45705
|
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
@@ -45922,7 +45722,6 @@ function inherits_inherits(subClass, superClass) {
|
|
|
45922
45722
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
45923
45723
|
throw new TypeError("Super expression must either be null or a function");
|
|
45924
45724
|
}
|
|
45925
|
-
|
|
45926
45725
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
45927
45726
|
constructor: {
|
|
45928
45727
|
value: subClass,
|
|
@@ -45947,7 +45746,6 @@ function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
45947
45746
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
45948
45747
|
if (Reflect.construct.sham) return false;
|
|
45949
45748
|
if (typeof Proxy === "function") return true;
|
|
45950
|
-
|
|
45951
45749
|
try {
|
|
45952
45750
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
45953
45751
|
return true;
|
|
@@ -45960,7 +45758,6 @@ function assertThisInitialized_assertThisInitialized(self) {
|
|
|
45960
45758
|
if (self === void 0) {
|
|
45961
45759
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
45962
45760
|
}
|
|
45963
|
-
|
|
45964
45761
|
return self;
|
|
45965
45762
|
}
|
|
45966
45763
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
@@ -45972,7 +45769,6 @@ function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
|
45972
45769
|
} else if (call !== void 0) {
|
|
45973
45770
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
45974
45771
|
}
|
|
45975
|
-
|
|
45976
45772
|
return assertThisInitialized_assertThisInitialized(self);
|
|
45977
45773
|
}
|
|
45978
45774
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
@@ -45983,15 +45779,13 @@ function createSuper_createSuper(Derived) {
|
|
|
45983
45779
|
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
45984
45780
|
return function _createSuperInternal() {
|
|
45985
45781
|
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
45986
|
-
|
|
45987
|
-
|
|
45782
|
+
result;
|
|
45988
45783
|
if (hasNativeReflectConstruct) {
|
|
45989
45784
|
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
45990
45785
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
45991
45786
|
} else {
|
|
45992
45787
|
result = Super.apply(this, arguments);
|
|
45993
45788
|
}
|
|
45994
|
-
|
|
45995
45789
|
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
45996
45790
|
};
|
|
45997
45791
|
}
|
|
@@ -46071,7 +45865,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46071
45865
|
var _super = createSuper_createSuper(ScrollBar);
|
|
46072
45866
|
function ScrollBar() {
|
|
46073
45867
|
var _this;
|
|
46074
|
-
|
|
45868
|
+
classCallCheck_classCallCheck(this, ScrollBar);
|
|
46075
45869
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46076
45870
|
args[_key] = arguments[_key];
|
|
46077
45871
|
}
|
|
@@ -46233,7 +46027,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46233
46027
|
var mergedVisible = canScroll && visible;
|
|
46234
46028
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46235
46029
|
ref: this.scrollbarRef,
|
|
46236
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46030
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46237
46031
|
style: {
|
|
46238
46032
|
width: 8,
|
|
46239
46033
|
top: 0,
|
|
@@ -46246,7 +46040,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46246
46040
|
onMouseMove: this.delayHidden
|
|
46247
46041
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46248
46042
|
ref: this.thumbRef,
|
|
46249
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46043
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46250
46044
|
style: {
|
|
46251
46045
|
width: '100%',
|
|
46252
46046
|
height: spinHeight,
|
|
@@ -46325,7 +46119,7 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46325
46119
|
// Firefox has low performance of map.
|
|
46326
46120
|
var CacheMap = /*#__PURE__*/function () {
|
|
46327
46121
|
function CacheMap() {
|
|
46328
|
-
|
|
46122
|
+
classCallCheck_classCallCheck(this, CacheMap);
|
|
46329
46123
|
this.maps = void 0;
|
|
46330
46124
|
this.maps = Object.create(null);
|
|
46331
46125
|
}
|
|
@@ -46352,7 +46146,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46352
46146
|
|
|
46353
46147
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46354
46148
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46355
|
-
_React$useState2 =
|
|
46149
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46356
46150
|
updatedMark = _React$useState2[0],
|
|
46357
46151
|
setUpdatedMark = _React$useState2[1];
|
|
46358
46152
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46575,11 +46369,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
46575
46369
|
|
|
46576
46370
|
function useDiffItem(data, getKey, onDiff) {
|
|
46577
46371
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
46578
|
-
_React$useState2 =
|
|
46372
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46579
46373
|
prevData = _React$useState2[0],
|
|
46580
46374
|
setPrevData = _React$useState2[1];
|
|
46581
46375
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
46582
|
-
_React$useState4 =
|
|
46376
|
+
_React$useState4 = esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
46583
46377
|
diffItem = _React$useState4[0],
|
|
46584
46378
|
setDiffItem = _React$useState4[1];
|
|
46585
46379
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -46818,11 +46612,11 @@ function RawList(props, ref) {
|
|
|
46818
46612
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
46819
46613
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
46820
46614
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
46821
|
-
_useState2 =
|
|
46615
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
46822
46616
|
scrollTop = _useState2[0],
|
|
46823
46617
|
setScrollTop = _useState2[1];
|
|
46824
46618
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
46825
|
-
_useState4 =
|
|
46619
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
46826
46620
|
scrollMoving = _useState4[0],
|
|
46827
46621
|
setScrollMoving = _useState4[1];
|
|
46828
46622
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -46862,12 +46656,12 @@ function RawList(props, ref) {
|
|
|
46862
46656
|
});
|
|
46863
46657
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
46864
46658
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
46865
|
-
_useDiffItem2 =
|
|
46659
|
+
_useDiffItem2 = esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
46866
46660
|
diffItem = _useDiffItem2[0];
|
|
46867
46661
|
diffItemRef.current = diffItem;
|
|
46868
46662
|
// ================================ Height ================================
|
|
46869
46663
|
var _useHeights = useHeights(getKey, null, null),
|
|
46870
|
-
_useHeights2 =
|
|
46664
|
+
_useHeights2 = esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
46871
46665
|
setInstanceRef = _useHeights2[0],
|
|
46872
46666
|
collectHeight = _useHeights2[1],
|
|
46873
46667
|
heights = _useHeights2[2],
|
|
@@ -46973,7 +46767,7 @@ function RawList(props, ref) {
|
|
|
46973
46767
|
return newTop;
|
|
46974
46768
|
});
|
|
46975
46769
|
}),
|
|
46976
|
-
_useFrameWheel2 =
|
|
46770
|
+
_useFrameWheel2 = esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
46977
46771
|
onRawWheel = _useFrameWheel2[0],
|
|
46978
46772
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
46979
46773
|
// Mobile touch move
|
|
@@ -47027,7 +46821,7 @@ function RawList(props, ref) {
|
|
|
47027
46821
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
47028
46822
|
var componentStyle = null;
|
|
47029
46823
|
if (height) {
|
|
47030
|
-
componentStyle =
|
|
46824
|
+
componentStyle = objectSpread2_objectSpread2(defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
47031
46825
|
if (useVirtual) {
|
|
47032
46826
|
componentStyle.overflowY = 'hidden';
|
|
47033
46827
|
if (scrollMoving) {
|
|
@@ -47035,8 +46829,8 @@ function RawList(props, ref) {
|
|
|
47035
46829
|
}
|
|
47036
46830
|
}
|
|
47037
46831
|
}
|
|
47038
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47039
|
-
style:
|
|
46832
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
46833
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
47040
46834
|
position: 'relative'
|
|
47041
46835
|
}),
|
|
47042
46836
|
className: mergedClassName
|
|
@@ -48012,41 +47806,6 @@ function useControlledState(defaultStateValue, option) {
|
|
|
48012
47806
|
}, [value]);
|
|
48013
47807
|
return [mergedValue, triggerChange];
|
|
48014
47808
|
}
|
|
48015
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
48016
|
-
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
48017
|
-
if (source == null) return {};
|
|
48018
|
-
var target = {};
|
|
48019
|
-
var sourceKeys = Object.keys(source);
|
|
48020
|
-
var key, i;
|
|
48021
|
-
|
|
48022
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
48023
|
-
key = sourceKeys[i];
|
|
48024
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
48025
|
-
target[key] = source[key];
|
|
48026
|
-
}
|
|
48027
|
-
|
|
48028
|
-
return target;
|
|
48029
|
-
}
|
|
48030
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
48031
|
-
|
|
48032
|
-
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
48033
|
-
if (source == null) return {};
|
|
48034
|
-
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
48035
|
-
var key, i;
|
|
48036
|
-
|
|
48037
|
-
if (Object.getOwnPropertySymbols) {
|
|
48038
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
48039
|
-
|
|
48040
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
48041
|
-
key = sourceSymbolKeys[i];
|
|
48042
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
48043
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
48044
|
-
target[key] = source[key];
|
|
48045
|
-
}
|
|
48046
|
-
}
|
|
48047
|
-
|
|
48048
|
-
return target;
|
|
48049
|
-
}
|
|
48050
47809
|
;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/Item.js
|
|
48051
47810
|
|
|
48052
47811
|
|
|
@@ -48072,7 +47831,7 @@ function InternalItem(props, ref) {
|
|
|
48072
47831
|
order = props.order,
|
|
48073
47832
|
_props$component = props.component,
|
|
48074
47833
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48075
|
-
restProps =
|
|
47834
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48076
47835
|
|
|
48077
47836
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48078
47837
|
|
|
@@ -48106,9 +47865,9 @@ function InternalItem(props, ref) {
|
|
|
48106
47865
|
overflowProps['aria-hidden'] = true;
|
|
48107
47866
|
}
|
|
48108
47867
|
|
|
48109
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
47868
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48110
47869
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48111
|
-
style:
|
|
47870
|
+
style: _objectSpread2(_objectSpread2({}, overflowStyle), style)
|
|
48112
47871
|
}, overflowProps, restProps, {
|
|
48113
47872
|
ref: ref
|
|
48114
47873
|
}), childNode);
|
|
@@ -48139,7 +47898,7 @@ Item_Item.displayName = 'Item';
|
|
|
48139
47898
|
|
|
48140
47899
|
function useBatchFrameState() {
|
|
48141
47900
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
48142
|
-
_useState2 =
|
|
47901
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
48143
47902
|
forceUpdate = _useState2[1];
|
|
48144
47903
|
|
|
48145
47904
|
var statesRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)([]);
|
|
@@ -48193,23 +47952,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48193
47952
|
if (!context) {
|
|
48194
47953
|
var _props$component = props.component,
|
|
48195
47954
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48196
|
-
_restProps =
|
|
47955
|
+
_restProps = _objectWithoutProperties(props, ["component"]);
|
|
48197
47956
|
|
|
48198
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
47957
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, _restProps, {
|
|
48199
47958
|
ref: ref
|
|
48200
47959
|
}));
|
|
48201
47960
|
}
|
|
48202
47961
|
|
|
48203
47962
|
var contextClassName = context.className,
|
|
48204
|
-
restContext =
|
|
47963
|
+
restContext = _objectWithoutProperties(context, ["className"]);
|
|
48205
47964
|
|
|
48206
47965
|
var className = props.className,
|
|
48207
|
-
restProps =
|
|
47966
|
+
restProps = _objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48208
47967
|
|
|
48209
47968
|
|
|
48210
47969
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48211
47970
|
value: null
|
|
48212
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
47971
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({
|
|
48213
47972
|
ref: ref,
|
|
48214
47973
|
className: classnames_default()(contextClassName, className)
|
|
48215
47974
|
}, restContext, restProps)));
|
|
@@ -48259,45 +48018,45 @@ function Overflow(props, ref) {
|
|
|
48259
48018
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48260
48019
|
itemComponent = props.itemComponent,
|
|
48261
48020
|
onVisibleChange = props.onVisibleChange,
|
|
48262
|
-
restProps =
|
|
48021
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48263
48022
|
|
|
48264
48023
|
var createUseState = useBatchFrameState();
|
|
48265
48024
|
var fullySSR = ssr === 'full';
|
|
48266
48025
|
|
|
48267
48026
|
var _createUseState = createUseState(null),
|
|
48268
|
-
_createUseState2 =
|
|
48027
|
+
_createUseState2 = slicedToArray_slicedToArray(_createUseState, 2),
|
|
48269
48028
|
containerWidth = _createUseState2[0],
|
|
48270
48029
|
setContainerWidth = _createUseState2[1];
|
|
48271
48030
|
|
|
48272
48031
|
var mergedContainerWidth = containerWidth || 0;
|
|
48273
48032
|
|
|
48274
48033
|
var _createUseState3 = createUseState(new Map()),
|
|
48275
|
-
_createUseState4 =
|
|
48034
|
+
_createUseState4 = slicedToArray_slicedToArray(_createUseState3, 2),
|
|
48276
48035
|
itemWidths = _createUseState4[0],
|
|
48277
48036
|
setItemWidths = _createUseState4[1];
|
|
48278
48037
|
|
|
48279
48038
|
var _createUseState5 = createUseState(0),
|
|
48280
|
-
_createUseState6 =
|
|
48039
|
+
_createUseState6 = slicedToArray_slicedToArray(_createUseState5, 2),
|
|
48281
48040
|
prevRestWidth = _createUseState6[0],
|
|
48282
48041
|
setPrevRestWidth = _createUseState6[1];
|
|
48283
48042
|
|
|
48284
48043
|
var _createUseState7 = createUseState(0),
|
|
48285
|
-
_createUseState8 =
|
|
48044
|
+
_createUseState8 = slicedToArray_slicedToArray(_createUseState7, 2),
|
|
48286
48045
|
restWidth = _createUseState8[0],
|
|
48287
48046
|
setRestWidth = _createUseState8[1];
|
|
48288
48047
|
|
|
48289
48048
|
var _createUseState9 = createUseState(0),
|
|
48290
|
-
_createUseState10 =
|
|
48049
|
+
_createUseState10 = slicedToArray_slicedToArray(_createUseState9, 2),
|
|
48291
48050
|
suffixWidth = _createUseState10[0],
|
|
48292
48051
|
setSuffixWidth = _createUseState10[1];
|
|
48293
48052
|
|
|
48294
48053
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48295
|
-
_useState2 =
|
|
48054
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
48296
48055
|
suffixFixedStart = _useState2[0],
|
|
48297
48056
|
setSuffixFixedStart = _useState2[1];
|
|
48298
48057
|
|
|
48299
48058
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48300
|
-
_useState4 =
|
|
48059
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
48301
48060
|
displayCount = _useState4[0],
|
|
48302
48061
|
setDisplayCount = _useState4[1];
|
|
48303
48062
|
|
|
@@ -48310,7 +48069,7 @@ function Overflow(props, ref) {
|
|
|
48310
48069
|
}, [displayCount, containerWidth]);
|
|
48311
48070
|
|
|
48312
48071
|
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
48313
|
-
_useState6 =
|
|
48072
|
+
_useState6 = slicedToArray_slicedToArray(_useState5, 2),
|
|
48314
48073
|
restReady = _useState6[0],
|
|
48315
48074
|
setRestReady = _useState6[1];
|
|
48316
48075
|
|
|
@@ -48469,7 +48228,7 @@ function Overflow(props, ref) {
|
|
|
48469
48228
|
var key = getKey(item, index);
|
|
48470
48229
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48471
48230
|
key: key,
|
|
48472
|
-
value:
|
|
48231
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
|
|
48473
48232
|
order: index,
|
|
48474
48233
|
item: item,
|
|
48475
48234
|
itemKey: key,
|
|
@@ -48479,7 +48238,7 @@ function Overflow(props, ref) {
|
|
|
48479
48238
|
}, renderRawItem(item, index));
|
|
48480
48239
|
} : function (item, index) {
|
|
48481
48240
|
var key = getKey(item, index);
|
|
48482
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48241
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48483
48242
|
order: index,
|
|
48484
48243
|
key: key,
|
|
48485
48244
|
item: item,
|
|
@@ -48500,18 +48259,18 @@ function Overflow(props, ref) {
|
|
|
48500
48259
|
|
|
48501
48260
|
if (!renderRawRest) {
|
|
48502
48261
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48503
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48262
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48504
48263
|
} else if (renderRawRest) {
|
|
48505
48264
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48506
|
-
value:
|
|
48265
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48507
48266
|
}, renderRawRest(omittedItems));
|
|
48508
48267
|
}
|
|
48509
48268
|
|
|
48510
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48269
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48511
48270
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48512
48271
|
style: style,
|
|
48513
48272
|
ref: ref
|
|
48514
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48273
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48515
48274
|
order: mergedDisplayCount,
|
|
48516
48275
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
48517
48276
|
registerSize: registerSuffixSize,
|
|
@@ -49257,7 +49016,7 @@ function Mask_Mask(props) {
|
|
|
49257
49016
|
var motion = {};
|
|
49258
49017
|
|
|
49259
49018
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49260
|
-
motion =
|
|
49019
|
+
motion = _objectSpread2({
|
|
49261
49020
|
motionAppear: true
|
|
49262
49021
|
}, getMotion({
|
|
49263
49022
|
motion: maskMotion,
|
|
@@ -49267,7 +49026,7 @@ function Mask_Mask(props) {
|
|
|
49267
49026
|
}));
|
|
49268
49027
|
}
|
|
49269
49028
|
|
|
49270
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49029
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({}, motion, {
|
|
49271
49030
|
visible: visible,
|
|
49272
49031
|
removeOnLeave: true
|
|
49273
49032
|
}), function (_ref) {
|
|
@@ -49280,22 +49039,6 @@ function Mask_Mask(props) {
|
|
|
49280
49039
|
});
|
|
49281
49040
|
});
|
|
49282
49041
|
}
|
|
49283
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
49284
|
-
function helpers_esm_typeof_typeof(obj) {
|
|
49285
|
-
"@babel/helpers - typeof";
|
|
49286
|
-
|
|
49287
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
49288
|
-
helpers_esm_typeof_typeof = function _typeof(obj) {
|
|
49289
|
-
return typeof obj;
|
|
49290
|
-
};
|
|
49291
|
-
} else {
|
|
49292
|
-
helpers_esm_typeof_typeof = function _typeof(obj) {
|
|
49293
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
49294
|
-
};
|
|
49295
|
-
}
|
|
49296
|
-
|
|
49297
|
-
return helpers_esm_typeof_typeof(obj);
|
|
49298
|
-
}
|
|
49299
49042
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/isVisible.js
|
|
49300
49043
|
/* harmony default export */ var isVisible = (function (element) {
|
|
49301
49044
|
if (!element) {
|
|
@@ -50700,7 +50443,7 @@ function monitorResize(element, callback) {
|
|
|
50700
50443
|
var prevHeight = null;
|
|
50701
50444
|
|
|
50702
50445
|
function onResize(_ref) {
|
|
50703
|
-
var _ref2 =
|
|
50446
|
+
var _ref2 = slicedToArray_slicedToArray(_ref, 1),
|
|
50704
50447
|
target = _ref2[0].target;
|
|
50705
50448
|
|
|
50706
50449
|
if (!document.documentElement.contains(target)) return;
|
|
@@ -50795,7 +50538,7 @@ function getElement(func) {
|
|
|
50795
50538
|
}
|
|
50796
50539
|
|
|
50797
50540
|
function getPoint(point) {
|
|
50798
|
-
if (
|
|
50541
|
+
if (typeof_typeof(point) !== 'object' || !point) return null;
|
|
50799
50542
|
return point;
|
|
50800
50543
|
}
|
|
50801
50544
|
|
|
@@ -50859,7 +50602,7 @@ var Align = function Align(_ref, ref) {
|
|
|
50859
50602
|
|
|
50860
50603
|
return false;
|
|
50861
50604
|
}, monitorBufferTime),
|
|
50862
|
-
_useBuffer2 =
|
|
50605
|
+
_useBuffer2 = slicedToArray_slicedToArray(_useBuffer, 2),
|
|
50863
50606
|
_forceAlign = _useBuffer2[0],
|
|
50864
50607
|
cancelForceAlign = _useBuffer2[1]; // ===================== Effect =====================
|
|
50865
50608
|
// Listen for target updated
|
|
@@ -50947,45 +50690,6 @@ RcAlign.displayName = 'Align';
|
|
|
50947
50690
|
// export this package's api
|
|
50948
50691
|
|
|
50949
50692
|
/* harmony default export */ var rc_align_es = (es_Align);
|
|
50950
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
50951
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
50952
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
50953
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
50954
|
-
function esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
50955
|
-
try {
|
|
50956
|
-
var info = gen[key](arg);
|
|
50957
|
-
var value = info.value;
|
|
50958
|
-
} catch (error) {
|
|
50959
|
-
reject(error);
|
|
50960
|
-
return;
|
|
50961
|
-
}
|
|
50962
|
-
|
|
50963
|
-
if (info.done) {
|
|
50964
|
-
resolve(value);
|
|
50965
|
-
} else {
|
|
50966
|
-
Promise.resolve(value).then(_next, _throw);
|
|
50967
|
-
}
|
|
50968
|
-
}
|
|
50969
|
-
|
|
50970
|
-
function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
50971
|
-
return function () {
|
|
50972
|
-
var self = this,
|
|
50973
|
-
args = arguments;
|
|
50974
|
-
return new Promise(function (resolve, reject) {
|
|
50975
|
-
var gen = fn.apply(self, args);
|
|
50976
|
-
|
|
50977
|
-
function _next(value) {
|
|
50978
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
50979
|
-
}
|
|
50980
|
-
|
|
50981
|
-
function _throw(err) {
|
|
50982
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
50983
|
-
}
|
|
50984
|
-
|
|
50985
|
-
_next(undefined);
|
|
50986
|
-
});
|
|
50987
|
-
};
|
|
50988
|
-
}
|
|
50989
50693
|
;// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/useVisibleStatus.js
|
|
50990
50694
|
|
|
50991
50695
|
|
|
@@ -50995,7 +50699,7 @@ function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
|
50995
50699
|
var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
50996
50700
|
/* harmony default export */ var useVisibleStatus = (function (visible, doMeasure) {
|
|
50997
50701
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
50998
|
-
_useState2 =
|
|
50702
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
50999
50703
|
status = _useState2[0],
|
|
51000
50704
|
setInternalStatus = _useState2[1];
|
|
51001
50705
|
|
|
@@ -51048,9 +50752,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51048
50752
|
}
|
|
51049
50753
|
|
|
51050
50754
|
if (status) {
|
|
51051
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/
|
|
50755
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
51052
50756
|
var index, nextStatus;
|
|
51053
|
-
return
|
|
50757
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
51054
50758
|
while (1) {
|
|
51055
50759
|
switch (_context.prev = _context.next) {
|
|
51056
50760
|
case 0:
|
|
@@ -51086,7 +50790,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51086
50790
|
width: 0,
|
|
51087
50791
|
height: 0
|
|
51088
50792
|
}),
|
|
51089
|
-
_React$useState2 =
|
|
50793
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
51090
50794
|
targetSize = _React$useState2[0],
|
|
51091
50795
|
setTargetSize = _React$useState2[1];
|
|
51092
50796
|
|
|
@@ -51157,13 +50861,13 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51157
50861
|
var elementRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
51158
50862
|
|
|
51159
50863
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
51160
|
-
_useState2 =
|
|
50864
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
51161
50865
|
alignedClassName = _useState2[0],
|
|
51162
50866
|
setAlignedClassName = _useState2[1]; // ======================= Measure ========================
|
|
51163
50867
|
|
|
51164
50868
|
|
|
51165
50869
|
var _useStretchStyle = useStretchStyle(stretch),
|
|
51166
|
-
_useStretchStyle2 =
|
|
50870
|
+
_useStretchStyle2 = slicedToArray_slicedToArray(_useStretchStyle, 2),
|
|
51167
50871
|
stretchStyle = _useStretchStyle2[0],
|
|
51168
50872
|
measureStretchStyle = _useStretchStyle2[1];
|
|
51169
50873
|
|
|
@@ -51175,7 +50879,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51175
50879
|
|
|
51176
50880
|
|
|
51177
50881
|
var _useVisibleStatus = useVisibleStatus(visible, doMeasure),
|
|
51178
|
-
_useVisibleStatus2 =
|
|
50882
|
+
_useVisibleStatus2 = slicedToArray_slicedToArray(_useVisibleStatus, 2),
|
|
51179
50883
|
status = _useVisibleStatus2[0],
|
|
51180
50884
|
goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
|
|
51181
50885
|
|
|
@@ -51223,7 +50927,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51223
50927
|
} // ======================== Motion ========================
|
|
51224
50928
|
|
|
51225
50929
|
|
|
51226
|
-
var motion =
|
|
50930
|
+
var motion = _objectSpread2({}, getMotion(props));
|
|
51227
50931
|
|
|
51228
50932
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
51229
50933
|
var originHandler = motion[eventName];
|
|
@@ -51256,7 +50960,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51256
50960
|
};
|
|
51257
50961
|
}); // ======================== Render ========================
|
|
51258
50962
|
|
|
51259
|
-
var mergedStyle =
|
|
50963
|
+
var mergedStyle = _objectSpread2(_objectSpread2({}, stretchStyle), {}, {
|
|
51260
50964
|
zIndex: zIndex,
|
|
51261
50965
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
51262
50966
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -51277,7 +50981,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51277
50981
|
}, children);
|
|
51278
50982
|
}
|
|
51279
50983
|
|
|
51280
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
50984
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51281
50985
|
visible: visible,
|
|
51282
50986
|
ref: elementRef,
|
|
51283
50987
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51305,7 +51009,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51305
51009
|
onMouseLeave: onMouseLeave,
|
|
51306
51010
|
onMouseDownCapture: onMouseDown,
|
|
51307
51011
|
onTouchStartCapture: onTouchStart,
|
|
51308
|
-
style:
|
|
51012
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51309
51013
|
}, childNode));
|
|
51310
51014
|
});
|
|
51311
51015
|
});
|
|
@@ -51340,7 +51044,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51340
51044
|
};
|
|
51341
51045
|
}); // ======================== Render ========================
|
|
51342
51046
|
|
|
51343
|
-
var mergedStyle =
|
|
51047
|
+
var mergedStyle = _objectSpread2({
|
|
51344
51048
|
zIndex: zIndex
|
|
51345
51049
|
}, popupStyle);
|
|
51346
51050
|
|
|
@@ -51357,7 +51061,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51357
51061
|
childNode = popupRender(childNode);
|
|
51358
51062
|
}
|
|
51359
51063
|
|
|
51360
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51064
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51361
51065
|
visible: visible,
|
|
51362
51066
|
ref: elementRef,
|
|
51363
51067
|
removeOnLeave: true
|
|
@@ -51368,7 +51072,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51368
51072
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51369
51073
|
ref: motionRef,
|
|
51370
51074
|
className: mergedClassName,
|
|
51371
|
-
style:
|
|
51075
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51372
51076
|
}, childNode);
|
|
51373
51077
|
});
|
|
51374
51078
|
});
|
|
@@ -51389,19 +51093,19 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51389
51093
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51390
51094
|
var visible = _ref.visible,
|
|
51391
51095
|
mobile = _ref.mobile,
|
|
51392
|
-
props =
|
|
51096
|
+
props = _objectWithoutProperties(_ref, Popup_excluded);
|
|
51393
51097
|
|
|
51394
51098
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51395
|
-
_useState2 =
|
|
51099
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
51396
51100
|
innerVisible = _useState2[0],
|
|
51397
51101
|
serInnerVisible = _useState2[1];
|
|
51398
51102
|
|
|
51399
51103
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
51400
|
-
_useState4 =
|
|
51104
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
51401
51105
|
inMobile = _useState4[0],
|
|
51402
51106
|
setInMobile = _useState4[1];
|
|
51403
51107
|
|
|
51404
|
-
var cloneProps =
|
|
51108
|
+
var cloneProps = _objectSpread2(_objectSpread2({}, props), {}, {
|
|
51405
51109
|
visible: innerVisible
|
|
51406
51110
|
}); // We check mobile in visible changed here.
|
|
51407
51111
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51414,10 +51118,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51414
51118
|
setInMobile(isMobile());
|
|
51415
51119
|
}
|
|
51416
51120
|
}, [visible, mobile]);
|
|
51417
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51121
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, extends_extends({}, cloneProps, {
|
|
51418
51122
|
mobile: mobile,
|
|
51419
51123
|
ref: ref
|
|
51420
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51124
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, extends_extends({}, cloneProps, {
|
|
51421
51125
|
ref: ref
|
|
51422
51126
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51423
51127
|
|
|
@@ -56140,7 +55844,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56140
55844
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56141
55845
|
|
|
56142
55846
|
function mergeProps(origin, target) {
|
|
56143
|
-
var clone =
|
|
55847
|
+
var clone = _objectSpread2({}, origin);
|
|
56144
55848
|
|
|
56145
55849
|
Object.keys(target).forEach(function (key) {
|
|
56146
55850
|
var value = target[key];
|
|
@@ -56155,7 +55859,7 @@ function mergeProps(origin, target) {
|
|
|
56155
55859
|
function InheritableContextProvider(_ref) {
|
|
56156
55860
|
var children = _ref.children,
|
|
56157
55861
|
locked = _ref.locked,
|
|
56158
|
-
restProps =
|
|
55862
|
+
restProps = _objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56159
55863
|
|
|
56160
55864
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56161
55865
|
var inheritableContext = useMemo(function () {
|
|
@@ -56211,7 +55915,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56211
55915
|
|
|
56212
55916
|
function warnItemProp(_ref) {
|
|
56213
55917
|
var item = _ref.item,
|
|
56214
|
-
restInfo =
|
|
55918
|
+
restInfo = _objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56215
55919
|
|
|
56216
55920
|
Object.defineProperty(restInfo, 'item', {
|
|
56217
55921
|
get: function get() {
|
|
@@ -56231,7 +55935,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56231
55935
|
var iconNode;
|
|
56232
55936
|
|
|
56233
55937
|
if (typeof icon === 'function') {
|
|
56234
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
55938
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, _objectSpread2({}, props));
|
|
56235
55939
|
} else {
|
|
56236
55940
|
// Compatible for origin definition
|
|
56237
55941
|
iconNode = icon;
|
|
@@ -56534,7 +56238,7 @@ function parseChildren(children, keyPath) {
|
|
|
56534
56238
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56535
56239
|
|
|
56536
56240
|
if (emptyKey) {
|
|
56537
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56241
|
+
eventKey = "tmp_key-".concat([].concat(_toConsumableArray(keyPath), [index]).join('-'));
|
|
56538
56242
|
}
|
|
56539
56243
|
|
|
56540
56244
|
var cloneProps = {
|
|
@@ -56582,14 +56286,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56582
56286
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56583
56287
|
var className = _ref.className,
|
|
56584
56288
|
children = _ref.children,
|
|
56585
|
-
restProps =
|
|
56289
|
+
restProps = _objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56586
56290
|
|
|
56587
56291
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56588
56292
|
prefixCls = _React$useContext.prefixCls,
|
|
56589
56293
|
mode = _React$useContext.mode,
|
|
56590
56294
|
rtl = _React$useContext.rtl;
|
|
56591
56295
|
|
|
56592
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
56296
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", extends_extends({
|
|
56593
56297
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56594
56298
|
}, restProps, {
|
|
56595
56299
|
"data-menu-list": true,
|
|
@@ -56702,15 +56406,15 @@ function PopupTrigger(_ref) {
|
|
|
56702
56406
|
defaultMotions = _React$useContext.defaultMotions;
|
|
56703
56407
|
|
|
56704
56408
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
56705
|
-
_React$useState2 =
|
|
56409
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
56706
56410
|
innerVisible = _React$useState2[0],
|
|
56707
56411
|
setInnerVisible = _React$useState2[1];
|
|
56708
56412
|
|
|
56709
|
-
var placement = rtl ?
|
|
56413
|
+
var placement = rtl ? _objectSpread2(_objectSpread2({}, placementsRtl), builtinPlacements) : _objectSpread2(_objectSpread2({}, placements), builtinPlacements);
|
|
56710
56414
|
var popupPlacement = popupPlacementMap[mode];
|
|
56711
56415
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
56712
56416
|
|
|
56713
|
-
var mergedMotion =
|
|
56417
|
+
var mergedMotion = _objectSpread2(_objectSpread2({}, targetMotion), {}, {
|
|
56714
56418
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
56715
56419
|
removeOnLeave: false,
|
|
56716
56420
|
motionAppear: true
|
|
@@ -56728,7 +56432,7 @@ function PopupTrigger(_ref) {
|
|
|
56728
56432
|
}, [visible]);
|
|
56729
56433
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
56730
56434
|
prefixCls: prefixCls,
|
|
56731
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
56435
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), _defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
56732
56436
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
56733
56437
|
getPopupContainer: getPopupContainer,
|
|
56734
56438
|
builtinPlacements: placement,
|
|
@@ -56775,7 +56479,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56775
56479
|
// The inline list should remove when motion end.
|
|
56776
56480
|
|
|
56777
56481
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(!sameModeRef.current),
|
|
56778
|
-
_React$useState2 =
|
|
56482
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
56779
56483
|
destroy = _React$useState2[0],
|
|
56780
56484
|
setDestroy = _React$useState2[1];
|
|
56781
56485
|
|
|
@@ -56788,7 +56492,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56788
56492
|
}
|
|
56789
56493
|
}, [mode]); // ================================= Render =================================
|
|
56790
56494
|
|
|
56791
|
-
var mergedMotion =
|
|
56495
|
+
var mergedMotion = _objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
56792
56496
|
|
|
56793
56497
|
|
|
56794
56498
|
if (keyPath.length > 1) {
|
|
@@ -56813,7 +56517,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56813
56517
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
56814
56518
|
mode: fixedMode,
|
|
56815
56519
|
locked: !sameModeRef.current
|
|
56816
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
56520
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
56817
56521
|
visible: mergedOpen
|
|
56818
56522
|
}, mergedMotion, {
|
|
56819
56523
|
forceRender: forceSubMenuRender,
|
|
@@ -56876,7 +56580,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56876
56580
|
onTitleClick = props.onTitleClick,
|
|
56877
56581
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
56878
56582
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
56879
|
-
restProps =
|
|
56583
|
+
restProps = _objectWithoutProperties(props, SubMenu_excluded);
|
|
56880
56584
|
|
|
56881
56585
|
var domDataId = useMenuId(eventKey);
|
|
56882
56586
|
|
|
@@ -56919,11 +56623,11 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56919
56623
|
|
|
56920
56624
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
56921
56625
|
active = _useActive.active,
|
|
56922
|
-
activeProps =
|
|
56626
|
+
activeProps = _objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
56923
56627
|
|
|
56924
56628
|
|
|
56925
56629
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
56926
|
-
_React$useState2 =
|
|
56630
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
56927
56631
|
childrenActive = _React$useState2[0],
|
|
56928
56632
|
setChildrenActive = _React$useState2[1];
|
|
56929
56633
|
|
|
@@ -57004,7 +56708,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57004
56708
|
|
|
57005
56709
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
57006
56710
|
|
|
57007
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
56711
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
57008
56712
|
role: "menuitem",
|
|
57009
56713
|
style: directionStyle,
|
|
57010
56714
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -57020,7 +56724,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57020
56724
|
onFocus: onInternalFocus
|
|
57021
56725
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
57022
56726
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
57023
|
-
props:
|
|
56727
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
57024
56728
|
isOpen: open,
|
|
57025
56729
|
// [Legacy] Not sure why need this mark
|
|
57026
56730
|
isSubMenu: true
|
|
@@ -57058,12 +56762,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57058
56762
|
} // >>>>> List node
|
|
57059
56763
|
|
|
57060
56764
|
|
|
57061
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56765
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({
|
|
57062
56766
|
role: "none"
|
|
57063
56767
|
}, restProps, {
|
|
57064
56768
|
component: "li",
|
|
57065
56769
|
style: style,
|
|
57066
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
56770
|
+
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {}, _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-open"), open), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-active"), mergedActive), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-selected"), childrenSelected), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-disabled"), mergedDisabled), _classNames)),
|
|
57067
56771
|
onMouseEnter: onInternalMouseEnter,
|
|
57068
56772
|
onMouseLeave: onInternalMouseLeave
|
|
57069
56773
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -57156,7 +56860,7 @@ function focusable(node) {
|
|
|
57156
56860
|
function getFocusNodeList(node) {
|
|
57157
56861
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
57158
56862
|
|
|
57159
|
-
var res =
|
|
56863
|
+
var res = _toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
57160
56864
|
return focusable(child, includePositive);
|
|
57161
56865
|
});
|
|
57162
56866
|
|
|
@@ -57236,9 +56940,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
57236
56940
|
};
|
|
57237
56941
|
}
|
|
57238
56942
|
|
|
57239
|
-
var inline = (_inline = {},
|
|
57240
|
-
var horizontal = (_horizontal = {},
|
|
57241
|
-
var vertical = (_vertical = {},
|
|
56943
|
+
var inline = (_inline = {}, _defineProperty(_inline, UP, prev), _defineProperty(_inline, DOWN, next), _inline);
|
|
56944
|
+
var horizontal = (_horizontal = {}, _defineProperty(_horizontal, useAccessibility_LEFT, isRtl ? next : prev), _defineProperty(_horizontal, RIGHT, isRtl ? prev : next), _defineProperty(_horizontal, DOWN, children), _defineProperty(_horizontal, ENTER, children), _horizontal);
|
|
56945
|
+
var vertical = (_vertical = {}, _defineProperty(_vertical, UP, prev), _defineProperty(_vertical, DOWN, next), _defineProperty(_vertical, ENTER, children), _defineProperty(_vertical, ESC, parent), _defineProperty(_vertical, useAccessibility_LEFT, isRtl ? children : parent), _defineProperty(_vertical, RIGHT, isRtl ? parent : children), _vertical);
|
|
57242
56946
|
var offsets = {
|
|
57243
56947
|
inline: inline,
|
|
57244
56948
|
horizontal: horizontal,
|
|
@@ -57504,7 +57208,7 @@ function useUUID(id) {
|
|
|
57504
57208
|
var _useMergedState = useControlledState(id, {
|
|
57505
57209
|
value: id
|
|
57506
57210
|
}),
|
|
57507
|
-
_useMergedState2 =
|
|
57211
|
+
_useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
|
|
57508
57212
|
uuid = _useMergedState2[0],
|
|
57509
57213
|
setUUID = _useMergedState2[1];
|
|
57510
57214
|
|
|
@@ -57540,14 +57244,14 @@ var getPathKeys = function getPathKeys(keyPathStr) {
|
|
|
57540
57244
|
var OVERFLOW_KEY = 'rc-menu-more';
|
|
57541
57245
|
function useKeyRecords() {
|
|
57542
57246
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState({}),
|
|
57543
|
-
_React$useState2 =
|
|
57247
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57544
57248
|
internalForceUpdate = _React$useState2[1];
|
|
57545
57249
|
|
|
57546
57250
|
var key2pathRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57547
57251
|
var path2keyRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57548
57252
|
|
|
57549
57253
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
57550
|
-
_React$useState4 =
|
|
57254
|
+
_React$useState4 = slicedToArray_slicedToArray(_React$useState3, 2),
|
|
57551
57255
|
overflowKeys = _React$useState4[0],
|
|
57552
57256
|
setOverflowKeys = _React$useState4[1];
|
|
57553
57257
|
|
|
@@ -57602,7 +57306,7 @@ function useKeyRecords() {
|
|
|
57602
57306
|
}, [getKeyPath]);
|
|
57603
57307
|
|
|
57604
57308
|
var getKeys = function getKeys() {
|
|
57605
|
-
var keys =
|
|
57309
|
+
var keys = _toConsumableArray(key2pathRef.current.keys());
|
|
57606
57310
|
|
|
57607
57311
|
if (overflowKeys.length) {
|
|
57608
57312
|
keys.push(OVERFLOW_KEY);
|
|
@@ -57619,7 +57323,7 @@ function useKeyRecords() {
|
|
|
57619
57323
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
57620
57324
|
var pathKeys = new Set();
|
|
57621
57325
|
|
|
57622
|
-
|
|
57326
|
+
_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
57623
57327
|
if (pathKey.startsWith(connectedPath)) {
|
|
57624
57328
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
57625
57329
|
}
|
|
@@ -58229,10 +57933,10 @@ function Dropdown(props, ref) {
|
|
|
58229
57933
|
visible = props.visible,
|
|
58230
57934
|
_props$trigger = props.trigger,
|
|
58231
57935
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58232
|
-
otherProps =
|
|
57936
|
+
otherProps = _objectWithoutProperties(props, Dropdown_excluded);
|
|
58233
57937
|
|
|
58234
57938
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58235
|
-
_React$useState2 =
|
|
57939
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
58236
57940
|
triggerVisible = _React$useState2[0],
|
|
58237
57941
|
setTriggerVisible = _React$useState2[1];
|
|
58238
57942
|
|
|
@@ -58340,12 +58044,12 @@ function Dropdown(props, ref) {
|
|
|
58340
58044
|
triggerHideAction = ['click'];
|
|
58341
58045
|
}
|
|
58342
58046
|
|
|
58343
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58047
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, _objectSpread2(_objectSpread2({
|
|
58344
58048
|
builtinPlacements: placements
|
|
58345
58049
|
}, otherProps), {}, {
|
|
58346
58050
|
prefixCls: prefixCls,
|
|
58347
58051
|
ref: triggerRef,
|
|
58348
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58052
|
+
popupClassName: classnames_default()(overlayClassName, _defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58349
58053
|
popupStyle: overlayStyle,
|
|
58350
58054
|
action: trigger,
|
|
58351
58055
|
showAction: showAction,
|
|
@@ -61363,7 +61067,7 @@ function Action(_ref) {
|
|
|
61363
61067
|
|
|
61364
61068
|
var handleBtnClick = /*#__PURE__*/function () {
|
|
61365
61069
|
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(e) {
|
|
61366
|
-
var _error$response, _error$response$data;
|
|
61070
|
+
var now, begin, _error$response, _error$response$data, _error$response2, _error$response2$data;
|
|
61367
61071
|
|
|
61368
61072
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
61369
61073
|
while (1) {
|
|
@@ -61372,7 +61076,7 @@ function Action(_ref) {
|
|
|
61372
61076
|
e.stopPropagation();
|
|
61373
61077
|
|
|
61374
61078
|
if (!(curAction === 3)) {
|
|
61375
|
-
_context.next =
|
|
61079
|
+
_context.next = 21;
|
|
61376
61080
|
break;
|
|
61377
61081
|
}
|
|
61378
61082
|
|
|
@@ -61396,29 +61100,41 @@ function Action(_ref) {
|
|
|
61396
61100
|
case 9:
|
|
61397
61101
|
message.success('预约成功');
|
|
61398
61102
|
|
|
61399
|
-
|
|
61400
|
-
|
|
61103
|
+
now = new Date().getTime();
|
|
61104
|
+
begin = new Date(beginTime).getTime();
|
|
61105
|
+
|
|
61106
|
+
if (begin > now && begin - now < 15 * 60 * 1000) {
|
|
61107
|
+
setCurAction(1);
|
|
61108
|
+
} else {
|
|
61109
|
+
setCurAction(4);
|
|
61110
|
+
}
|
|
61111
|
+
|
|
61112
|
+
_context.next = 19;
|
|
61401
61113
|
break;
|
|
61402
61114
|
|
|
61403
|
-
case
|
|
61404
|
-
_context.prev =
|
|
61115
|
+
case 15:
|
|
61116
|
+
_context.prev = 15;
|
|
61405
61117
|
_context.t0 = _context["catch"](2);
|
|
61406
61118
|
|
|
61407
|
-
|
|
61119
|
+
if ((_context.t0 === null || _context.t0 === void 0 ? void 0 : (_error$response = _context.t0.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : _error$response$data.message) === '直播开始前15分钟无法预约') {
|
|
61120
|
+
setCurAction(1);
|
|
61121
|
+
}
|
|
61408
61122
|
|
|
61409
|
-
|
|
61410
|
-
|
|
61123
|
+
message.error((_context.t0 === null || _context.t0 === void 0 ? void 0 : (_error$response2 = _context.t0.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : _error$response2$data.message) || '预约失败,请稍后重试');
|
|
61124
|
+
|
|
61125
|
+
case 19:
|
|
61126
|
+
_context.next = 22;
|
|
61411
61127
|
break;
|
|
61412
61128
|
|
|
61413
|
-
case
|
|
61129
|
+
case 21:
|
|
61414
61130
|
onActionDetailClick();
|
|
61415
61131
|
|
|
61416
|
-
case
|
|
61132
|
+
case 22:
|
|
61417
61133
|
case "end":
|
|
61418
61134
|
return _context.stop();
|
|
61419
61135
|
}
|
|
61420
61136
|
}
|
|
61421
|
-
}, _callee, null, [[2,
|
|
61137
|
+
}, _callee, null, [[2, 15]]);
|
|
61422
61138
|
}));
|
|
61423
61139
|
|
|
61424
61140
|
return function handleBtnClick(_x) {
|