@x-edu/live-player 0.0.37 → 0.0.38
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 +701 -247
- package/package.json +1 -1
|
@@ -2764,12 +2764,13 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2764
2764
|
|
|
2765
2765
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2766
2766
|
// Module
|
|
2767
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_y\\+him{max-width:1300px;margin:0 auto;padding:24px 24px 0 24px;width:956px}.index-module_container_y\\+him .fish-tabs-nav{margin-bottom:24px}.index-module_container_y\\+him .fish-tabs-nav:before{display:none}.index-module_container_y\\+him .fish-tabs-ink-bar{display:none}.index-module_container_y\\+him .fish-tabs-tab+.fish-tabs-tab{margin-left:0}.index-module_container_y\\+him .fish-tabs-tab{padding:9px 20px}.index-module_container_y\\+him .fish-tabs-tab-btn{font-size:14px;line-height:14px;color:#666}.index-module_container_y\\+him .fish-tabs-tab-active{border-radius:16px;background:var(--f-3-f-7-ff,#f3f7ff)}.index-module_container_y\\+him .fish-tabs-tab-active .fish-tabs-tab-btn{color:#1e62ec}.index-module_container_y\\+him.index-module_mobile_fjd59{width:100%;padding:12px 12px 0 12px}.index-module_list_KQnlU{min-height:500px}", ""]);
|
|
2767
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_y\\+him{max-width:1300px;margin:0 auto;padding:24px 24px 0 24px;width:956px}.index-module_container_y\\+him .fish-tabs-nav{margin-bottom:24px}.index-module_container_y\\+him .fish-tabs-nav:before{display:none}.index-module_container_y\\+him .fish-tabs-ink-bar{display:none}.index-module_container_y\\+him .fish-tabs-tab+.fish-tabs-tab{margin-left:0}.index-module_container_y\\+him .fish-tabs-tab{padding:9px 20px}.index-module_container_y\\+him .fish-tabs-tab-btn{font-size:14px;line-height:14px;color:#666}.index-module_container_y\\+him .fish-tabs-tab-active{border-radius:16px;background:var(--f-3-f-7-ff,#f3f7ff)}.index-module_container_y\\+him .fish-tabs-tab-active .fish-tabs-tab-btn{color:#1e62ec}.index-module_container_y\\+him.index-module_mobile_fjd59{width:100%;padding:12px 12px 0 12px}.index-module_list_KQnlU{min-height:500px}.index-module_mobileLoadMore_43-yu{text-align:center;color:#999;font-size:12px;line-height:18px;padding:12px 0 24px 0}", ""]);
|
|
2768
2768
|
// Exports
|
|
2769
2769
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2770
2770
|
"container": "index-module_container_y+him",
|
|
2771
2771
|
"mobile": "index-module_mobile_fjd59",
|
|
2772
|
-
"list": "index-module_list_KQnlU"
|
|
2772
|
+
"list": "index-module_list_KQnlU",
|
|
2773
|
+
"mobileLoadMore": "index-module_mobileLoadMore_43-yu"
|
|
2773
2774
|
};
|
|
2774
2775
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2775
2776
|
|
|
@@ -25733,6 +25734,13 @@ module.exports = styleTagTransform;
|
|
|
25733
25734
|
|
|
25734
25735
|
/***/ }),
|
|
25735
25736
|
|
|
25737
|
+
/***/ 5273:
|
|
25738
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25739
|
+
|
|
25740
|
+
module.exports = __webpack_require__(5666);
|
|
25741
|
+
|
|
25742
|
+
/***/ }),
|
|
25743
|
+
|
|
25736
25744
|
/***/ 3006:
|
|
25737
25745
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25738
25746
|
|
|
@@ -34351,6 +34359,129 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34351
34359
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34352
34360
|
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34353
34361
|
}
|
|
34362
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34363
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
34364
|
+
if (!(instance instanceof Constructor)) {
|
|
34365
|
+
throw new TypeError("Cannot call a class as a function");
|
|
34366
|
+
}
|
|
34367
|
+
}
|
|
34368
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
34369
|
+
function createClass_defineProperties(target, props) {
|
|
34370
|
+
for (var i = 0; i < props.length; i++) {
|
|
34371
|
+
var descriptor = props[i];
|
|
34372
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
34373
|
+
descriptor.configurable = true;
|
|
34374
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
34375
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34376
|
+
}
|
|
34377
|
+
}
|
|
34378
|
+
|
|
34379
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
34380
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
34381
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
34382
|
+
return Constructor;
|
|
34383
|
+
}
|
|
34384
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
34385
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
34386
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
34387
|
+
o.__proto__ = p;
|
|
34388
|
+
return o;
|
|
34389
|
+
};
|
|
34390
|
+
|
|
34391
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
34392
|
+
}
|
|
34393
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
34394
|
+
|
|
34395
|
+
function inherits_inherits(subClass, superClass) {
|
|
34396
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
34397
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
34398
|
+
}
|
|
34399
|
+
|
|
34400
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
34401
|
+
constructor: {
|
|
34402
|
+
value: subClass,
|
|
34403
|
+
writable: true,
|
|
34404
|
+
configurable: true
|
|
34405
|
+
}
|
|
34406
|
+
});
|
|
34407
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
34408
|
+
}
|
|
34409
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
34410
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
34411
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
34412
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
34413
|
+
};
|
|
34414
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
34415
|
+
}
|
|
34416
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
34417
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
34418
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
34419
|
+
if (Reflect.construct.sham) return false;
|
|
34420
|
+
if (typeof Proxy === "function") return true;
|
|
34421
|
+
|
|
34422
|
+
try {
|
|
34423
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
34424
|
+
return true;
|
|
34425
|
+
} catch (e) {
|
|
34426
|
+
return false;
|
|
34427
|
+
}
|
|
34428
|
+
}
|
|
34429
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
34430
|
+
function esm_typeof_typeof(obj) {
|
|
34431
|
+
"@babel/helpers - typeof";
|
|
34432
|
+
|
|
34433
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
34434
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
34435
|
+
return typeof obj;
|
|
34436
|
+
};
|
|
34437
|
+
} else {
|
|
34438
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
34439
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
34440
|
+
};
|
|
34441
|
+
}
|
|
34442
|
+
|
|
34443
|
+
return esm_typeof_typeof(obj);
|
|
34444
|
+
}
|
|
34445
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
34446
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
34447
|
+
if (self === void 0) {
|
|
34448
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34449
|
+
}
|
|
34450
|
+
|
|
34451
|
+
return self;
|
|
34452
|
+
}
|
|
34453
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
34454
|
+
|
|
34455
|
+
|
|
34456
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
34457
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
34458
|
+
return call;
|
|
34459
|
+
} else if (call !== void 0) {
|
|
34460
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
34461
|
+
}
|
|
34462
|
+
|
|
34463
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
34464
|
+
}
|
|
34465
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
34466
|
+
|
|
34467
|
+
|
|
34468
|
+
|
|
34469
|
+
function createSuper_createSuper(Derived) {
|
|
34470
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
34471
|
+
return function _createSuperInternal() {
|
|
34472
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
34473
|
+
result;
|
|
34474
|
+
|
|
34475
|
+
if (hasNativeReflectConstruct) {
|
|
34476
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
34477
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
34478
|
+
} else {
|
|
34479
|
+
result = Super.apply(this, arguments);
|
|
34480
|
+
}
|
|
34481
|
+
|
|
34482
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
34483
|
+
};
|
|
34484
|
+
}
|
|
34354
34485
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34355
34486
|
var raf = function raf(callback) {
|
|
34356
34487
|
return +setTimeout(callback, 16);
|
|
@@ -34576,6 +34707,47 @@ var cacheStyle = {};
|
|
|
34576
34707
|
}
|
|
34577
34708
|
}
|
|
34578
34709
|
});
|
|
34710
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34711
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34712
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
34713
|
+
|
|
34714
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34715
|
+
arr2[i] = arr[i];
|
|
34716
|
+
}
|
|
34717
|
+
|
|
34718
|
+
return arr2;
|
|
34719
|
+
}
|
|
34720
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34721
|
+
|
|
34722
|
+
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34723
|
+
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34724
|
+
}
|
|
34725
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34726
|
+
function iterableToArray_iterableToArray(iter) {
|
|
34727
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34728
|
+
}
|
|
34729
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34730
|
+
|
|
34731
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34732
|
+
if (!o) return;
|
|
34733
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34734
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34735
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34736
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34737
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34738
|
+
}
|
|
34739
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34740
|
+
function nonIterableSpread_nonIterableSpread() {
|
|
34741
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34742
|
+
}
|
|
34743
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34744
|
+
|
|
34745
|
+
|
|
34746
|
+
|
|
34747
|
+
|
|
34748
|
+
function toConsumableArray_toConsumableArray(arr) {
|
|
34749
|
+
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34750
|
+
}
|
|
34579
34751
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34580
34752
|
|
|
34581
34753
|
|
|
@@ -34592,7 +34764,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34592
34764
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34593
34765
|
var _this = this;
|
|
34594
34766
|
|
|
34595
|
-
|
|
34767
|
+
classCallCheck_classCallCheck(this, ScrollLocker);
|
|
34596
34768
|
|
|
34597
34769
|
this.lockTarget = void 0;
|
|
34598
34770
|
this.options = void 0;
|
|
@@ -34640,7 +34812,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34640
34812
|
var options = _ref3.options;
|
|
34641
34813
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34642
34814
|
})) {
|
|
34643
|
-
locks = [].concat(
|
|
34815
|
+
locks = [].concat(toConsumableArray_toConsumableArray(locks), [{
|
|
34644
34816
|
target: _this.lockTarget,
|
|
34645
34817
|
options: _this.options
|
|
34646
34818
|
}]);
|
|
@@ -34678,7 +34850,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34678
34850
|
container.className = addClassName.trim();
|
|
34679
34851
|
}
|
|
34680
34852
|
|
|
34681
|
-
locks = [].concat(
|
|
34853
|
+
locks = [].concat(toConsumableArray_toConsumableArray(locks), [{
|
|
34682
34854
|
target: _this.lockTarget,
|
|
34683
34855
|
options: _this.options
|
|
34684
34856
|
}]);
|
|
@@ -34762,7 +34934,7 @@ var getParent = function getParent(getContainer) {
|
|
|
34762
34934
|
return getContainer();
|
|
34763
34935
|
}
|
|
34764
34936
|
|
|
34765
|
-
if (
|
|
34937
|
+
if (esm_typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
34766
34938
|
return getContainer;
|
|
34767
34939
|
}
|
|
34768
34940
|
}
|
|
@@ -34771,14 +34943,14 @@ var getParent = function getParent(getContainer) {
|
|
|
34771
34943
|
};
|
|
34772
34944
|
|
|
34773
34945
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
34774
|
-
|
|
34946
|
+
inherits_inherits(PortalWrapper, _React$Component);
|
|
34775
34947
|
|
|
34776
|
-
var _super =
|
|
34948
|
+
var _super = createSuper_createSuper(PortalWrapper);
|
|
34777
34949
|
|
|
34778
34950
|
function PortalWrapper(props) {
|
|
34779
34951
|
var _this;
|
|
34780
34952
|
|
|
34781
|
-
|
|
34953
|
+
classCallCheck_classCallCheck(this, PortalWrapper);
|
|
34782
34954
|
|
|
34783
34955
|
_this = _super.call(this, props);
|
|
34784
34956
|
_this.container = void 0;
|
|
@@ -34898,7 +35070,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34898
35070
|
return _this;
|
|
34899
35071
|
}
|
|
34900
35072
|
|
|
34901
|
-
|
|
35073
|
+
createClass_createClass(PortalWrapper, [{
|
|
34902
35074
|
key: "componentDidMount",
|
|
34903
35075
|
value: function componentDidMount() {
|
|
34904
35076
|
var _this2 = this;
|
|
@@ -34966,6 +35138,125 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34966
35138
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
34967
35139
|
|
|
34968
35140
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
35141
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
35142
|
+
function esm_extends_extends() {
|
|
35143
|
+
esm_extends_extends = Object.assign || function (target) {
|
|
35144
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
35145
|
+
var source = arguments[i];
|
|
35146
|
+
|
|
35147
|
+
for (var key in source) {
|
|
35148
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
35149
|
+
target[key] = source[key];
|
|
35150
|
+
}
|
|
35151
|
+
}
|
|
35152
|
+
}
|
|
35153
|
+
|
|
35154
|
+
return target;
|
|
35155
|
+
};
|
|
35156
|
+
|
|
35157
|
+
return esm_extends_extends.apply(this, arguments);
|
|
35158
|
+
}
|
|
35159
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
35160
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
35161
|
+
if (key in obj) {
|
|
35162
|
+
Object.defineProperty(obj, key, {
|
|
35163
|
+
value: value,
|
|
35164
|
+
enumerable: true,
|
|
35165
|
+
configurable: true,
|
|
35166
|
+
writable: true
|
|
35167
|
+
});
|
|
35168
|
+
} else {
|
|
35169
|
+
obj[key] = value;
|
|
35170
|
+
}
|
|
35171
|
+
|
|
35172
|
+
return obj;
|
|
35173
|
+
}
|
|
35174
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
35175
|
+
|
|
35176
|
+
|
|
35177
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
35178
|
+
var keys = Object.keys(object);
|
|
35179
|
+
|
|
35180
|
+
if (Object.getOwnPropertySymbols) {
|
|
35181
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
35182
|
+
|
|
35183
|
+
if (enumerableOnly) {
|
|
35184
|
+
symbols = symbols.filter(function (sym) {
|
|
35185
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
35186
|
+
});
|
|
35187
|
+
}
|
|
35188
|
+
|
|
35189
|
+
keys.push.apply(keys, symbols);
|
|
35190
|
+
}
|
|
35191
|
+
|
|
35192
|
+
return keys;
|
|
35193
|
+
}
|
|
35194
|
+
|
|
35195
|
+
function objectSpread2_objectSpread2(target) {
|
|
35196
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
35197
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
35198
|
+
|
|
35199
|
+
if (i % 2) {
|
|
35200
|
+
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
35201
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
35202
|
+
});
|
|
35203
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
35204
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
35205
|
+
} else {
|
|
35206
|
+
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
35207
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
35208
|
+
});
|
|
35209
|
+
}
|
|
35210
|
+
}
|
|
35211
|
+
|
|
35212
|
+
return target;
|
|
35213
|
+
}
|
|
35214
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
35215
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
35216
|
+
if (Array.isArray(arr)) return arr;
|
|
35217
|
+
}
|
|
35218
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
35219
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
35220
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
35221
|
+
|
|
35222
|
+
if (_i == null) return;
|
|
35223
|
+
var _arr = [];
|
|
35224
|
+
var _n = true;
|
|
35225
|
+
var _d = false;
|
|
35226
|
+
|
|
35227
|
+
var _s, _e;
|
|
35228
|
+
|
|
35229
|
+
try {
|
|
35230
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
35231
|
+
_arr.push(_s.value);
|
|
35232
|
+
|
|
35233
|
+
if (i && _arr.length === i) break;
|
|
35234
|
+
}
|
|
35235
|
+
} catch (err) {
|
|
35236
|
+
_d = true;
|
|
35237
|
+
_e = err;
|
|
35238
|
+
} finally {
|
|
35239
|
+
try {
|
|
35240
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
35241
|
+
} finally {
|
|
35242
|
+
if (_d) throw _e;
|
|
35243
|
+
}
|
|
35244
|
+
}
|
|
35245
|
+
|
|
35246
|
+
return _arr;
|
|
35247
|
+
}
|
|
35248
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
35249
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
35250
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
35251
|
+
}
|
|
35252
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
35253
|
+
|
|
35254
|
+
|
|
35255
|
+
|
|
35256
|
+
|
|
35257
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
35258
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
35259
|
+
}
|
|
34969
35260
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
34970
35261
|
/**
|
|
34971
35262
|
* @ignore
|
|
@@ -36615,8 +36906,8 @@ function Mask(props) {
|
|
|
36615
36906
|
}, function (_ref) {
|
|
36616
36907
|
var motionClassName = _ref.className,
|
|
36617
36908
|
motionStyle = _ref.style;
|
|
36618
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36619
|
-
style:
|
|
36909
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36910
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), style),
|
|
36620
36911
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36621
36912
|
}, maskProps));
|
|
36622
36913
|
});
|
|
@@ -36741,7 +37032,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36741
37032
|
}); // ============================= Style ==============================
|
|
36742
37033
|
|
|
36743
37034
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
36744
|
-
_React$useState2 =
|
|
37035
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
36745
37036
|
transformOrigin = _React$useState2[0],
|
|
36746
37037
|
setTransformOrigin = _React$useState2[1];
|
|
36747
37038
|
|
|
@@ -36799,7 +37090,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36799
37090
|
|
|
36800
37091
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
36801
37092
|
className: "".concat(prefixCls, "-content")
|
|
36802
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37093
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36803
37094
|
className: "".concat(prefixCls, "-body"),
|
|
36804
37095
|
style: bodyStyle
|
|
36805
37096
|
}, bodyProps), children), footerNode);
|
|
@@ -36819,7 +37110,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36819
37110
|
key: "dialog-element",
|
|
36820
37111
|
role: "document",
|
|
36821
37112
|
ref: motionRef,
|
|
36822
|
-
style:
|
|
37113
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), style), contentStyle),
|
|
36823
37114
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
36824
37115
|
onMouseDown: onMouseDown,
|
|
36825
37116
|
onMouseUp: onMouseUp
|
|
@@ -36887,7 +37178,7 @@ function Dialog(props) {
|
|
|
36887
37178
|
var contentRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
36888
37179
|
|
|
36889
37180
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(visible),
|
|
36890
|
-
_React$useState2 =
|
|
37181
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
36891
37182
|
animatedVisible = _React$useState2[0],
|
|
36892
37183
|
setAnimatedVisible = _React$useState2[1]; // ========================== Init ==========================
|
|
36893
37184
|
|
|
@@ -37001,7 +37292,7 @@ function Dialog(props) {
|
|
|
37001
37292
|
return function () {};
|
|
37002
37293
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
37003
37294
|
|
|
37004
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37295
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
37005
37296
|
className: "".concat(prefixCls, "-root")
|
|
37006
37297
|
}, pickAttrs(props, {
|
|
37007
37298
|
data: true
|
|
@@ -37009,11 +37300,11 @@ function Dialog(props) {
|
|
|
37009
37300
|
prefixCls: prefixCls,
|
|
37010
37301
|
visible: mask && visible,
|
|
37011
37302
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
37012
|
-
style:
|
|
37303
|
+
style: objectSpread2_objectSpread2({
|
|
37013
37304
|
zIndex: zIndex
|
|
37014
37305
|
}, maskStyle),
|
|
37015
37306
|
maskProps: maskProps
|
|
37016
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37307
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
37017
37308
|
tabIndex: -1,
|
|
37018
37309
|
onKeyDown: onWrapperKeyDown,
|
|
37019
37310
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -37021,12 +37312,12 @@ function Dialog(props) {
|
|
|
37021
37312
|
onClick: onWrapperClick,
|
|
37022
37313
|
role: "dialog",
|
|
37023
37314
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
37024
|
-
style:
|
|
37315
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
37025
37316
|
zIndex: zIndex
|
|
37026
37317
|
}, wrapStyle), {}, {
|
|
37027
37318
|
display: !animatedVisible ? 'none' : null
|
|
37028
37319
|
})
|
|
37029
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
37320
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, esm_extends_extends({}, props, {
|
|
37030
37321
|
onMouseDown: onContentMouseDown,
|
|
37031
37322
|
onMouseUp: onContentMouseUp,
|
|
37032
37323
|
ref: contentRef,
|
|
@@ -44660,40 +44951,44 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
44660
44951
|
|
|
44661
44952
|
|
|
44662
44953
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
44663
|
-
function
|
|
44664
|
-
|
|
44954
|
+
function helpers_esm_extends_extends() {
|
|
44955
|
+
helpers_esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
44665
44956
|
for (var i = 1; i < arguments.length; i++) {
|
|
44666
44957
|
var source = arguments[i];
|
|
44958
|
+
|
|
44667
44959
|
for (var key in source) {
|
|
44668
44960
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44669
44961
|
target[key] = source[key];
|
|
44670
44962
|
}
|
|
44671
44963
|
}
|
|
44672
44964
|
}
|
|
44965
|
+
|
|
44673
44966
|
return target;
|
|
44674
44967
|
};
|
|
44675
|
-
return
|
|
44968
|
+
return helpers_esm_extends_extends.apply(this, arguments);
|
|
44676
44969
|
}
|
|
44677
44970
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
44678
|
-
function
|
|
44971
|
+
function helpers_esm_typeof_typeof(obj) {
|
|
44679
44972
|
"@babel/helpers - typeof";
|
|
44680
44973
|
|
|
44681
|
-
return
|
|
44974
|
+
return helpers_esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44682
44975
|
return typeof obj;
|
|
44683
44976
|
} : function (obj) {
|
|
44684
44977
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44685
|
-
},
|
|
44978
|
+
}, helpers_esm_typeof_typeof(obj);
|
|
44686
44979
|
}
|
|
44687
44980
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
44688
44981
|
|
|
44689
44982
|
function _toPrimitive(input, hint) {
|
|
44690
|
-
if (
|
|
44983
|
+
if (helpers_esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
44691
44984
|
var prim = input[Symbol.toPrimitive];
|
|
44985
|
+
|
|
44692
44986
|
if (prim !== undefined) {
|
|
44693
44987
|
var res = prim.call(input, hint || "default");
|
|
44694
|
-
if (
|
|
44988
|
+
if (helpers_esm_typeof_typeof(res) !== "object") return res;
|
|
44695
44989
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44696
44990
|
}
|
|
44991
|
+
|
|
44697
44992
|
return (hint === "string" ? String : Number)(input);
|
|
44698
44993
|
}
|
|
44699
44994
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -44701,12 +44996,13 @@ function _toPrimitive(input, hint) {
|
|
|
44701
44996
|
|
|
44702
44997
|
function _toPropertyKey(arg) {
|
|
44703
44998
|
var key = _toPrimitive(arg, "string");
|
|
44704
|
-
return
|
|
44999
|
+
return helpers_esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
44705
45000
|
}
|
|
44706
45001
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
44707
45002
|
|
|
44708
|
-
function
|
|
45003
|
+
function esm_defineProperty_defineProperty(obj, key, value) {
|
|
44709
45004
|
key = _toPropertyKey(key);
|
|
45005
|
+
|
|
44710
45006
|
if (key in obj) {
|
|
44711
45007
|
Object.defineProperty(obj, key, {
|
|
44712
45008
|
value: value,
|
|
@@ -44717,51 +45013,61 @@ function defineProperty_defineProperty(obj, key, value) {
|
|
|
44717
45013
|
} else {
|
|
44718
45014
|
obj[key] = value;
|
|
44719
45015
|
}
|
|
45016
|
+
|
|
44720
45017
|
return obj;
|
|
44721
45018
|
}
|
|
44722
45019
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
44723
45020
|
|
|
44724
|
-
|
|
45021
|
+
|
|
45022
|
+
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44725
45023
|
var keys = Object.keys(object);
|
|
45024
|
+
|
|
44726
45025
|
if (Object.getOwnPropertySymbols) {
|
|
44727
45026
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
44728
45027
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
44729
45028
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
44730
45029
|
})), keys.push.apply(keys, symbols);
|
|
44731
45030
|
}
|
|
45031
|
+
|
|
44732
45032
|
return keys;
|
|
44733
45033
|
}
|
|
44734
|
-
|
|
45034
|
+
|
|
45035
|
+
function esm_objectSpread2_objectSpread2(target) {
|
|
44735
45036
|
for (var i = 1; i < arguments.length; i++) {
|
|
44736
45037
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
44737
|
-
i % 2 ?
|
|
44738
|
-
|
|
44739
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
45038
|
+
i % 2 ? esm_objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
45039
|
+
esm_defineProperty_defineProperty(target, key, source[key]);
|
|
45040
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : esm_objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
44740
45041
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44741
45042
|
});
|
|
44742
45043
|
}
|
|
45044
|
+
|
|
44743
45045
|
return target;
|
|
44744
45046
|
}
|
|
44745
45047
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
44746
|
-
function
|
|
45048
|
+
function helpers_esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
44747
45049
|
if (Array.isArray(arr)) return arr;
|
|
44748
45050
|
}
|
|
44749
45051
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
44750
|
-
function
|
|
45052
|
+
function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
44751
45053
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
45054
|
+
|
|
44752
45055
|
if (null != _i) {
|
|
44753
45056
|
var _s,
|
|
44754
|
-
|
|
44755
|
-
|
|
44756
|
-
|
|
44757
|
-
|
|
44758
|
-
|
|
44759
|
-
|
|
45057
|
+
_e,
|
|
45058
|
+
_x,
|
|
45059
|
+
_r,
|
|
45060
|
+
_arr = [],
|
|
45061
|
+
_n = !0,
|
|
45062
|
+
_d = !1;
|
|
45063
|
+
|
|
44760
45064
|
try {
|
|
44761
45065
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
44762
45066
|
if (Object(_i) !== _i) return;
|
|
44763
45067
|
_n = !1;
|
|
44764
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
45068
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
|
45069
|
+
;
|
|
45070
|
+
}
|
|
44765
45071
|
} catch (err) {
|
|
44766
45072
|
_d = !0, _e = err;
|
|
44767
45073
|
} finally {
|
|
@@ -44771,27 +45077,32 @@ function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
44771
45077
|
if (_d) throw _e;
|
|
44772
45078
|
}
|
|
44773
45079
|
}
|
|
45080
|
+
|
|
44774
45081
|
return _arr;
|
|
44775
45082
|
}
|
|
44776
45083
|
}
|
|
44777
45084
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
44778
|
-
function
|
|
45085
|
+
function esm_arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
44779
45086
|
if (len == null || len > arr.length) len = arr.length;
|
|
44780
|
-
|
|
45087
|
+
|
|
45088
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
45089
|
+
arr2[i] = arr[i];
|
|
45090
|
+
}
|
|
45091
|
+
|
|
44781
45092
|
return arr2;
|
|
44782
45093
|
}
|
|
44783
45094
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
44784
45095
|
|
|
44785
|
-
function
|
|
45096
|
+
function esm_unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
44786
45097
|
if (!o) return;
|
|
44787
|
-
if (typeof o === "string") return
|
|
45098
|
+
if (typeof o === "string") return esm_arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44788
45099
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
44789
45100
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
44790
45101
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44791
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
45102
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return esm_arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44792
45103
|
}
|
|
44793
45104
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
44794
|
-
function
|
|
45105
|
+
function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
44795
45106
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44796
45107
|
}
|
|
44797
45108
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -44799,8 +45110,8 @@ function esm_nonIterableRest_nonIterableRest() {
|
|
|
44799
45110
|
|
|
44800
45111
|
|
|
44801
45112
|
|
|
44802
|
-
function
|
|
44803
|
-
return
|
|
45113
|
+
function helpers_esm_slicedToArray_slicedToArray(arr, i) {
|
|
45114
|
+
return helpers_esm_arrayWithHoles_arrayWithHoles(arr) || helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || esm_unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || helpers_esm_nonIterableRest_nonIterableRest();
|
|
44804
45115
|
}
|
|
44805
45116
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
44806
45117
|
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -44808,11 +45119,13 @@ function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, exclu
|
|
|
44808
45119
|
var target = {};
|
|
44809
45120
|
var sourceKeys = Object.keys(source);
|
|
44810
45121
|
var key, i;
|
|
45122
|
+
|
|
44811
45123
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
44812
45124
|
key = sourceKeys[i];
|
|
44813
45125
|
if (excluded.indexOf(key) >= 0) continue;
|
|
44814
45126
|
target[key] = source[key];
|
|
44815
45127
|
}
|
|
45128
|
+
|
|
44816
45129
|
return target;
|
|
44817
45130
|
}
|
|
44818
45131
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
@@ -44821,8 +45134,10 @@ function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
44821
45134
|
if (source == null) return {};
|
|
44822
45135
|
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
44823
45136
|
var key, i;
|
|
45137
|
+
|
|
44824
45138
|
if (Object.getOwnPropertySymbols) {
|
|
44825
45139
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
45140
|
+
|
|
44826
45141
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
44827
45142
|
key = sourceSymbolKeys[i];
|
|
44828
45143
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -44830,6 +45145,7 @@ function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
44830
45145
|
target[key] = source[key];
|
|
44831
45146
|
}
|
|
44832
45147
|
}
|
|
45148
|
+
|
|
44833
45149
|
return target;
|
|
44834
45150
|
}
|
|
44835
45151
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -45777,14 +46093,14 @@ var index = (function () {
|
|
|
45777
46093
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
45778
46094
|
|
|
45779
46095
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
45780
|
-
|
|
46096
|
+
inherits_inherits(ReactResizeObserver, _React$Component);
|
|
45781
46097
|
|
|
45782
|
-
var _super =
|
|
46098
|
+
var _super = createSuper_createSuper(ReactResizeObserver);
|
|
45783
46099
|
|
|
45784
46100
|
function ReactResizeObserver() {
|
|
45785
46101
|
var _this;
|
|
45786
46102
|
|
|
45787
|
-
|
|
46103
|
+
classCallCheck_classCallCheck(this, ReactResizeObserver);
|
|
45788
46104
|
|
|
45789
46105
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45790
46106
|
args[_key] = arguments[_key];
|
|
@@ -45835,7 +46151,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45835
46151
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
45836
46152
|
|
|
45837
46153
|
Promise.resolve().then(function () {
|
|
45838
|
-
onResize(
|
|
46154
|
+
onResize(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, size), {}, {
|
|
45839
46155
|
offsetWidth: mergedOffsetWidth,
|
|
45840
46156
|
offsetHeight: mergedOffsetHeight
|
|
45841
46157
|
}), target);
|
|
@@ -45851,7 +46167,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45851
46167
|
return _this;
|
|
45852
46168
|
}
|
|
45853
46169
|
|
|
45854
|
-
|
|
46170
|
+
createClass_createClass(ReactResizeObserver, [{
|
|
45855
46171
|
key: "componentDidMount",
|
|
45856
46172
|
value: function componentDidMount() {
|
|
45857
46173
|
this.onComponentUpdated();
|
|
@@ -45965,7 +46281,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
45965
46281
|
position: 'relative',
|
|
45966
46282
|
overflow: 'hidden'
|
|
45967
46283
|
};
|
|
45968
|
-
innerStyle =
|
|
46284
|
+
innerStyle = esm_objectSpread2_objectSpread2(esm_objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
45969
46285
|
transform: "translateY(".concat(offset, "px)"),
|
|
45970
46286
|
position: 'absolute',
|
|
45971
46287
|
left: 0,
|
|
@@ -45982,23 +46298,24 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
45982
46298
|
onInnerResize();
|
|
45983
46299
|
}
|
|
45984
46300
|
}
|
|
45985
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
46301
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", helpers_esm_extends_extends({
|
|
45986
46302
|
style: innerStyle,
|
|
45987
|
-
className: classnames_default()(
|
|
46303
|
+
className: classnames_default()(esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
45988
46304
|
ref: ref
|
|
45989
46305
|
}, innerProps), children)));
|
|
45990
46306
|
});
|
|
45991
46307
|
Filler.displayName = 'Filler';
|
|
45992
46308
|
/* harmony default export */ var es_Filler = (Filler);
|
|
45993
46309
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
45994
|
-
function
|
|
46310
|
+
function esm_classCallCheck_classCallCheck(instance, Constructor) {
|
|
45995
46311
|
if (!(instance instanceof Constructor)) {
|
|
45996
46312
|
throw new TypeError("Cannot call a class as a function");
|
|
45997
46313
|
}
|
|
45998
46314
|
}
|
|
45999
46315
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
46000
46316
|
|
|
46001
|
-
|
|
46317
|
+
|
|
46318
|
+
function esm_createClass_defineProperties(target, props) {
|
|
46002
46319
|
for (var i = 0; i < props.length; i++) {
|
|
46003
46320
|
var descriptor = props[i];
|
|
46004
46321
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -46007,28 +46324,30 @@ function createClass_defineProperties(target, props) {
|
|
|
46007
46324
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
46008
46325
|
}
|
|
46009
46326
|
}
|
|
46010
|
-
|
|
46011
|
-
|
|
46012
|
-
if (
|
|
46327
|
+
|
|
46328
|
+
function esm_createClass_createClass(Constructor, protoProps, staticProps) {
|
|
46329
|
+
if (protoProps) esm_createClass_defineProperties(Constructor.prototype, protoProps);
|
|
46330
|
+
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
46013
46331
|
Object.defineProperty(Constructor, "prototype", {
|
|
46014
46332
|
writable: false
|
|
46015
46333
|
});
|
|
46016
46334
|
return Constructor;
|
|
46017
46335
|
}
|
|
46018
46336
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
46019
|
-
function
|
|
46020
|
-
|
|
46337
|
+
function esm_setPrototypeOf_setPrototypeOf(o, p) {
|
|
46338
|
+
esm_setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
46021
46339
|
o.__proto__ = p;
|
|
46022
46340
|
return o;
|
|
46023
46341
|
};
|
|
46024
|
-
return
|
|
46342
|
+
return esm_setPrototypeOf_setPrototypeOf(o, p);
|
|
46025
46343
|
}
|
|
46026
46344
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
46027
46345
|
|
|
46028
|
-
function
|
|
46346
|
+
function esm_inherits_inherits(subClass, superClass) {
|
|
46029
46347
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
46030
46348
|
throw new TypeError("Super expression must either be null or a function");
|
|
46031
46349
|
}
|
|
46350
|
+
|
|
46032
46351
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
46033
46352
|
constructor: {
|
|
46034
46353
|
value: subClass,
|
|
@@ -46039,20 +46358,21 @@ function inherits_inherits(subClass, superClass) {
|
|
|
46039
46358
|
Object.defineProperty(subClass, "prototype", {
|
|
46040
46359
|
writable: false
|
|
46041
46360
|
});
|
|
46042
|
-
if (superClass)
|
|
46361
|
+
if (superClass) esm_setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
46043
46362
|
}
|
|
46044
46363
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
46045
|
-
function
|
|
46046
|
-
|
|
46364
|
+
function esm_getPrototypeOf_getPrototypeOf(o) {
|
|
46365
|
+
esm_getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
46047
46366
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46048
46367
|
};
|
|
46049
|
-
return
|
|
46368
|
+
return esm_getPrototypeOf_getPrototypeOf(o);
|
|
46050
46369
|
}
|
|
46051
46370
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
46052
|
-
function
|
|
46371
|
+
function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
46053
46372
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
46054
46373
|
if (Reflect.construct.sham) return false;
|
|
46055
46374
|
if (typeof Proxy === "function") return true;
|
|
46375
|
+
|
|
46056
46376
|
try {
|
|
46057
46377
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
46058
46378
|
return true;
|
|
@@ -46061,39 +46381,43 @@ function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
46061
46381
|
}
|
|
46062
46382
|
}
|
|
46063
46383
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
46064
|
-
function
|
|
46384
|
+
function esm_assertThisInitialized_assertThisInitialized(self) {
|
|
46065
46385
|
if (self === void 0) {
|
|
46066
46386
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46067
46387
|
}
|
|
46388
|
+
|
|
46068
46389
|
return self;
|
|
46069
46390
|
}
|
|
46070
46391
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
46071
46392
|
|
|
46072
46393
|
|
|
46073
|
-
function
|
|
46074
|
-
if (call && (
|
|
46394
|
+
function esm_possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
46395
|
+
if (call && (helpers_esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
46075
46396
|
return call;
|
|
46076
46397
|
} else if (call !== void 0) {
|
|
46077
46398
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
46078
46399
|
}
|
|
46079
|
-
|
|
46400
|
+
|
|
46401
|
+
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
46080
46402
|
}
|
|
46081
46403
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
46082
46404
|
|
|
46083
46405
|
|
|
46084
46406
|
|
|
46085
|
-
function
|
|
46086
|
-
var hasNativeReflectConstruct =
|
|
46407
|
+
function esm_createSuper_createSuper(Derived) {
|
|
46408
|
+
var hasNativeReflectConstruct = esm_isNativeReflectConstruct_isNativeReflectConstruct();
|
|
46087
46409
|
return function _createSuperInternal() {
|
|
46088
|
-
var Super =
|
|
46089
|
-
|
|
46410
|
+
var Super = esm_getPrototypeOf_getPrototypeOf(Derived),
|
|
46411
|
+
result;
|
|
46412
|
+
|
|
46090
46413
|
if (hasNativeReflectConstruct) {
|
|
46091
|
-
var NewTarget =
|
|
46414
|
+
var NewTarget = esm_getPrototypeOf_getPrototypeOf(this).constructor;
|
|
46092
46415
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
46093
46416
|
} else {
|
|
46094
46417
|
result = Super.apply(this, arguments);
|
|
46095
46418
|
}
|
|
46096
|
-
|
|
46419
|
+
|
|
46420
|
+
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46097
46421
|
};
|
|
46098
46422
|
}
|
|
46099
46423
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -46168,11 +46492,11 @@ function getPageY(e) {
|
|
|
46168
46492
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
46169
46493
|
}
|
|
46170
46494
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
46171
|
-
|
|
46172
|
-
var _super =
|
|
46495
|
+
esm_inherits_inherits(ScrollBar, _React$Component);
|
|
46496
|
+
var _super = esm_createSuper_createSuper(ScrollBar);
|
|
46173
46497
|
function ScrollBar() {
|
|
46174
46498
|
var _this;
|
|
46175
|
-
|
|
46499
|
+
esm_classCallCheck_classCallCheck(this, ScrollBar);
|
|
46176
46500
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46177
46501
|
args[_key] = arguments[_key];
|
|
46178
46502
|
}
|
|
@@ -46300,7 +46624,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46300
46624
|
};
|
|
46301
46625
|
return _this;
|
|
46302
46626
|
}
|
|
46303
|
-
|
|
46627
|
+
esm_createClass_createClass(ScrollBar, [{
|
|
46304
46628
|
key: "componentDidMount",
|
|
46305
46629
|
value: function componentDidMount() {
|
|
46306
46630
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -46334,7 +46658,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46334
46658
|
var mergedVisible = canScroll && visible;
|
|
46335
46659
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46336
46660
|
ref: this.scrollbarRef,
|
|
46337
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46661
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46338
46662
|
style: {
|
|
46339
46663
|
width: 8,
|
|
46340
46664
|
top: 0,
|
|
@@ -46347,7 +46671,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46347
46671
|
onMouseMove: this.delayHidden
|
|
46348
46672
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46349
46673
|
ref: this.thumbRef,
|
|
46350
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46674
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46351
46675
|
style: {
|
|
46352
46676
|
width: '100%',
|
|
46353
46677
|
height: spinHeight,
|
|
@@ -46426,11 +46750,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46426
46750
|
// Firefox has low performance of map.
|
|
46427
46751
|
var CacheMap = /*#__PURE__*/function () {
|
|
46428
46752
|
function CacheMap() {
|
|
46429
|
-
|
|
46753
|
+
esm_classCallCheck_classCallCheck(this, CacheMap);
|
|
46430
46754
|
this.maps = void 0;
|
|
46431
46755
|
this.maps = Object.create(null);
|
|
46432
46756
|
}
|
|
46433
|
-
|
|
46757
|
+
esm_createClass_createClass(CacheMap, [{
|
|
46434
46758
|
key: "set",
|
|
46435
46759
|
value: function set(key, value) {
|
|
46436
46760
|
this.maps[key] = value;
|
|
@@ -46453,7 +46777,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46453
46777
|
|
|
46454
46778
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46455
46779
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46456
|
-
_React$useState2 =
|
|
46780
|
+
_React$useState2 = helpers_esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46457
46781
|
updatedMark = _React$useState2[0],
|
|
46458
46782
|
setUpdatedMark = _React$useState2[1];
|
|
46459
46783
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46520,7 +46844,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46520
46844
|
es_raf.cancel(scrollRef.current);
|
|
46521
46845
|
if (typeof arg === 'number') {
|
|
46522
46846
|
syncScrollTop(arg);
|
|
46523
|
-
} else if (arg &&
|
|
46847
|
+
} else if (arg && helpers_esm_typeof_typeof(arg) === 'object') {
|
|
46524
46848
|
var index;
|
|
46525
46849
|
var align = arg.align;
|
|
46526
46850
|
if ('index' in arg) {
|
|
@@ -46676,11 +47000,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
46676
47000
|
|
|
46677
47001
|
function useDiffItem(data, getKey, onDiff) {
|
|
46678
47002
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
46679
|
-
_React$useState2 =
|
|
47003
|
+
_React$useState2 = helpers_esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46680
47004
|
prevData = _React$useState2[0],
|
|
46681
47005
|
setPrevData = _React$useState2[1];
|
|
46682
47006
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
46683
|
-
_React$useState4 =
|
|
47007
|
+
_React$useState4 = helpers_esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
46684
47008
|
diffItem = _React$useState4[0],
|
|
46685
47009
|
setDiffItem = _React$useState4[1];
|
|
46686
47010
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -46695,7 +47019,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
46695
47019
|
}
|
|
46696
47020
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
46697
47021
|
|
|
46698
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
47022
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : helpers_esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
46699
47023
|
/* harmony default export */ var isFirefox = (isFF);
|
|
46700
47024
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
46701
47025
|
|
|
@@ -46919,11 +47243,11 @@ function RawList(props, ref) {
|
|
|
46919
47243
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
46920
47244
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
46921
47245
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
46922
|
-
_useState2 =
|
|
47246
|
+
_useState2 = helpers_esm_slicedToArray_slicedToArray(_useState, 2),
|
|
46923
47247
|
scrollTop = _useState2[0],
|
|
46924
47248
|
setScrollTop = _useState2[1];
|
|
46925
47249
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
46926
|
-
_useState4 =
|
|
47250
|
+
_useState4 = helpers_esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
46927
47251
|
scrollMoving = _useState4[0],
|
|
46928
47252
|
setScrollMoving = _useState4[1];
|
|
46929
47253
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -46963,12 +47287,12 @@ function RawList(props, ref) {
|
|
|
46963
47287
|
});
|
|
46964
47288
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
46965
47289
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
46966
|
-
_useDiffItem2 =
|
|
47290
|
+
_useDiffItem2 = helpers_esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
46967
47291
|
diffItem = _useDiffItem2[0];
|
|
46968
47292
|
diffItemRef.current = diffItem;
|
|
46969
47293
|
// ================================ Height ================================
|
|
46970
47294
|
var _useHeights = useHeights(getKey, null, null),
|
|
46971
|
-
_useHeights2 =
|
|
47295
|
+
_useHeights2 = helpers_esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
46972
47296
|
setInstanceRef = _useHeights2[0],
|
|
46973
47297
|
collectHeight = _useHeights2[1],
|
|
46974
47298
|
heights = _useHeights2[2],
|
|
@@ -47074,7 +47398,7 @@ function RawList(props, ref) {
|
|
|
47074
47398
|
return newTop;
|
|
47075
47399
|
});
|
|
47076
47400
|
}),
|
|
47077
|
-
_useFrameWheel2 =
|
|
47401
|
+
_useFrameWheel2 = helpers_esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
47078
47402
|
onRawWheel = _useFrameWheel2[0],
|
|
47079
47403
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
47080
47404
|
// Mobile touch move
|
|
@@ -47128,7 +47452,7 @@ function RawList(props, ref) {
|
|
|
47128
47452
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
47129
47453
|
var componentStyle = null;
|
|
47130
47454
|
if (height) {
|
|
47131
|
-
componentStyle =
|
|
47455
|
+
componentStyle = esm_objectSpread2_objectSpread2(esm_defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
47132
47456
|
if (useVirtual) {
|
|
47133
47457
|
componentStyle.overflowY = 'hidden';
|
|
47134
47458
|
if (scrollMoving) {
|
|
@@ -47136,8 +47460,8 @@ function RawList(props, ref) {
|
|
|
47136
47460
|
}
|
|
47137
47461
|
}
|
|
47138
47462
|
}
|
|
47139
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47140
|
-
style:
|
|
47463
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", helpers_esm_extends_extends({
|
|
47464
|
+
style: esm_objectSpread2_objectSpread2(esm_objectSpread2_objectSpread2({}, style), {}, {
|
|
47141
47465
|
position: 'relative'
|
|
47142
47466
|
}),
|
|
47143
47467
|
className: mergedClassName
|
|
@@ -48113,6 +48437,41 @@ function useControlledState(defaultStateValue, option) {
|
|
|
48113
48437
|
}, [value]);
|
|
48114
48438
|
return [mergedValue, triggerChange];
|
|
48115
48439
|
}
|
|
48440
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
48441
|
+
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
48442
|
+
if (source == null) return {};
|
|
48443
|
+
var target = {};
|
|
48444
|
+
var sourceKeys = Object.keys(source);
|
|
48445
|
+
var key, i;
|
|
48446
|
+
|
|
48447
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
48448
|
+
key = sourceKeys[i];
|
|
48449
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
48450
|
+
target[key] = source[key];
|
|
48451
|
+
}
|
|
48452
|
+
|
|
48453
|
+
return target;
|
|
48454
|
+
}
|
|
48455
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
48456
|
+
|
|
48457
|
+
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
48458
|
+
if (source == null) return {};
|
|
48459
|
+
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
48460
|
+
var key, i;
|
|
48461
|
+
|
|
48462
|
+
if (Object.getOwnPropertySymbols) {
|
|
48463
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
48464
|
+
|
|
48465
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
48466
|
+
key = sourceSymbolKeys[i];
|
|
48467
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
48468
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
48469
|
+
target[key] = source[key];
|
|
48470
|
+
}
|
|
48471
|
+
}
|
|
48472
|
+
|
|
48473
|
+
return target;
|
|
48474
|
+
}
|
|
48116
48475
|
;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/Item.js
|
|
48117
48476
|
|
|
48118
48477
|
|
|
@@ -48138,7 +48497,7 @@ function InternalItem(props, ref) {
|
|
|
48138
48497
|
order = props.order,
|
|
48139
48498
|
_props$component = props.component,
|
|
48140
48499
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48141
|
-
restProps =
|
|
48500
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48142
48501
|
|
|
48143
48502
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48144
48503
|
|
|
@@ -48172,9 +48531,9 @@ function InternalItem(props, ref) {
|
|
|
48172
48531
|
overflowProps['aria-hidden'] = true;
|
|
48173
48532
|
}
|
|
48174
48533
|
|
|
48175
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48534
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({
|
|
48176
48535
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48177
|
-
style:
|
|
48536
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, overflowStyle), style)
|
|
48178
48537
|
}, overflowProps, restProps, {
|
|
48179
48538
|
ref: ref
|
|
48180
48539
|
}), childNode);
|
|
@@ -48205,7 +48564,7 @@ Item_Item.displayName = 'Item';
|
|
|
48205
48564
|
|
|
48206
48565
|
function useBatchFrameState() {
|
|
48207
48566
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
48208
|
-
_useState2 =
|
|
48567
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
48209
48568
|
forceUpdate = _useState2[1];
|
|
48210
48569
|
|
|
48211
48570
|
var statesRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)([]);
|
|
@@ -48259,23 +48618,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48259
48618
|
if (!context) {
|
|
48260
48619
|
var _props$component = props.component,
|
|
48261
48620
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48262
|
-
_restProps =
|
|
48621
|
+
_restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["component"]);
|
|
48263
48622
|
|
|
48264
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48623
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, _restProps, {
|
|
48265
48624
|
ref: ref
|
|
48266
48625
|
}));
|
|
48267
48626
|
}
|
|
48268
48627
|
|
|
48269
48628
|
var contextClassName = context.className,
|
|
48270
|
-
restContext =
|
|
48629
|
+
restContext = esm_objectWithoutProperties_objectWithoutProperties(context, ["className"]);
|
|
48271
48630
|
|
|
48272
48631
|
var className = props.className,
|
|
48273
|
-
restProps =
|
|
48632
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48274
48633
|
|
|
48275
48634
|
|
|
48276
48635
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48277
48636
|
value: null
|
|
48278
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48637
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({
|
|
48279
48638
|
ref: ref,
|
|
48280
48639
|
className: classnames_default()(contextClassName, className)
|
|
48281
48640
|
}, restContext, restProps)));
|
|
@@ -48325,45 +48684,45 @@ function Overflow(props, ref) {
|
|
|
48325
48684
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48326
48685
|
itemComponent = props.itemComponent,
|
|
48327
48686
|
onVisibleChange = props.onVisibleChange,
|
|
48328
|
-
restProps =
|
|
48687
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48329
48688
|
|
|
48330
48689
|
var createUseState = useBatchFrameState();
|
|
48331
48690
|
var fullySSR = ssr === 'full';
|
|
48332
48691
|
|
|
48333
48692
|
var _createUseState = createUseState(null),
|
|
48334
|
-
_createUseState2 =
|
|
48693
|
+
_createUseState2 = esm_slicedToArray_slicedToArray(_createUseState, 2),
|
|
48335
48694
|
containerWidth = _createUseState2[0],
|
|
48336
48695
|
setContainerWidth = _createUseState2[1];
|
|
48337
48696
|
|
|
48338
48697
|
var mergedContainerWidth = containerWidth || 0;
|
|
48339
48698
|
|
|
48340
48699
|
var _createUseState3 = createUseState(new Map()),
|
|
48341
|
-
_createUseState4 =
|
|
48700
|
+
_createUseState4 = esm_slicedToArray_slicedToArray(_createUseState3, 2),
|
|
48342
48701
|
itemWidths = _createUseState4[0],
|
|
48343
48702
|
setItemWidths = _createUseState4[1];
|
|
48344
48703
|
|
|
48345
48704
|
var _createUseState5 = createUseState(0),
|
|
48346
|
-
_createUseState6 =
|
|
48705
|
+
_createUseState6 = esm_slicedToArray_slicedToArray(_createUseState5, 2),
|
|
48347
48706
|
prevRestWidth = _createUseState6[0],
|
|
48348
48707
|
setPrevRestWidth = _createUseState6[1];
|
|
48349
48708
|
|
|
48350
48709
|
var _createUseState7 = createUseState(0),
|
|
48351
|
-
_createUseState8 =
|
|
48710
|
+
_createUseState8 = esm_slicedToArray_slicedToArray(_createUseState7, 2),
|
|
48352
48711
|
restWidth = _createUseState8[0],
|
|
48353
48712
|
setRestWidth = _createUseState8[1];
|
|
48354
48713
|
|
|
48355
48714
|
var _createUseState9 = createUseState(0),
|
|
48356
|
-
_createUseState10 =
|
|
48715
|
+
_createUseState10 = esm_slicedToArray_slicedToArray(_createUseState9, 2),
|
|
48357
48716
|
suffixWidth = _createUseState10[0],
|
|
48358
48717
|
setSuffixWidth = _createUseState10[1];
|
|
48359
48718
|
|
|
48360
48719
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48361
|
-
_useState2 =
|
|
48720
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
48362
48721
|
suffixFixedStart = _useState2[0],
|
|
48363
48722
|
setSuffixFixedStart = _useState2[1];
|
|
48364
48723
|
|
|
48365
48724
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48366
|
-
_useState4 =
|
|
48725
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
48367
48726
|
displayCount = _useState4[0],
|
|
48368
48727
|
setDisplayCount = _useState4[1];
|
|
48369
48728
|
|
|
@@ -48376,7 +48735,7 @@ function Overflow(props, ref) {
|
|
|
48376
48735
|
}, [displayCount, containerWidth]);
|
|
48377
48736
|
|
|
48378
48737
|
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
48379
|
-
_useState6 =
|
|
48738
|
+
_useState6 = esm_slicedToArray_slicedToArray(_useState5, 2),
|
|
48380
48739
|
restReady = _useState6[0],
|
|
48381
48740
|
setRestReady = _useState6[1];
|
|
48382
48741
|
|
|
@@ -48535,7 +48894,7 @@ function Overflow(props, ref) {
|
|
|
48535
48894
|
var key = getKey(item, index);
|
|
48536
48895
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48537
48896
|
key: key,
|
|
48538
|
-
value:
|
|
48897
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, itemSharedProps), {}, {
|
|
48539
48898
|
order: index,
|
|
48540
48899
|
item: item,
|
|
48541
48900
|
itemKey: key,
|
|
@@ -48545,7 +48904,7 @@ function Overflow(props, ref) {
|
|
|
48545
48904
|
}, renderRawItem(item, index));
|
|
48546
48905
|
} : function (item, index) {
|
|
48547
48906
|
var key = getKey(item, index);
|
|
48548
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48907
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, {
|
|
48549
48908
|
order: index,
|
|
48550
48909
|
key: key,
|
|
48551
48910
|
item: item,
|
|
@@ -48566,18 +48925,18 @@ function Overflow(props, ref) {
|
|
|
48566
48925
|
|
|
48567
48926
|
if (!renderRawRest) {
|
|
48568
48927
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48569
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48928
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48570
48929
|
} else if (renderRawRest) {
|
|
48571
48930
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48572
|
-
value:
|
|
48931
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48573
48932
|
}, renderRawRest(omittedItems));
|
|
48574
48933
|
}
|
|
48575
48934
|
|
|
48576
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48935
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({
|
|
48577
48936
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48578
48937
|
style: style,
|
|
48579
48938
|
ref: ref
|
|
48580
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48939
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, {
|
|
48581
48940
|
order: mergedDisplayCount,
|
|
48582
48941
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
48583
48942
|
registerSize: registerSuffixSize,
|
|
@@ -49259,7 +49618,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
49259
49618
|
|
|
49260
49619
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
49261
49620
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
49262
|
-
return
|
|
49621
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, baseAlign), align);
|
|
49263
49622
|
}
|
|
49264
49623
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
49265
49624
|
var points = align.points;
|
|
@@ -49323,7 +49682,7 @@ function Mask_Mask(props) {
|
|
|
49323
49682
|
var motion = {};
|
|
49324
49683
|
|
|
49325
49684
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49326
|
-
motion =
|
|
49685
|
+
motion = objectSpread2_objectSpread2({
|
|
49327
49686
|
motionAppear: true
|
|
49328
49687
|
}, getMotion({
|
|
49329
49688
|
motion: maskMotion,
|
|
@@ -49333,7 +49692,7 @@ function Mask_Mask(props) {
|
|
|
49333
49692
|
}));
|
|
49334
49693
|
}
|
|
49335
49694
|
|
|
49336
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49695
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({}, motion, {
|
|
49337
49696
|
visible: visible,
|
|
49338
49697
|
removeOnLeave: true
|
|
49339
49698
|
}), function (_ref) {
|
|
@@ -50750,7 +51109,7 @@ function monitorResize(element, callback) {
|
|
|
50750
51109
|
var prevHeight = null;
|
|
50751
51110
|
|
|
50752
51111
|
function onResize(_ref) {
|
|
50753
|
-
var _ref2 =
|
|
51112
|
+
var _ref2 = esm_slicedToArray_slicedToArray(_ref, 1),
|
|
50754
51113
|
target = _ref2[0].target;
|
|
50755
51114
|
|
|
50756
51115
|
if (!document.documentElement.contains(target)) return;
|
|
@@ -50845,7 +51204,7 @@ function getElement(func) {
|
|
|
50845
51204
|
}
|
|
50846
51205
|
|
|
50847
51206
|
function getPoint(point) {
|
|
50848
|
-
if (
|
|
51207
|
+
if (esm_typeof_typeof(point) !== 'object' || !point) return null;
|
|
50849
51208
|
return point;
|
|
50850
51209
|
}
|
|
50851
51210
|
|
|
@@ -50909,7 +51268,7 @@ var Align = function Align(_ref, ref) {
|
|
|
50909
51268
|
|
|
50910
51269
|
return false;
|
|
50911
51270
|
}, monitorBufferTime),
|
|
50912
|
-
_useBuffer2 =
|
|
51271
|
+
_useBuffer2 = esm_slicedToArray_slicedToArray(_useBuffer, 2),
|
|
50913
51272
|
_forceAlign = _useBuffer2[0],
|
|
50914
51273
|
cancelForceAlign = _useBuffer2[1]; // ===================== Effect =====================
|
|
50915
51274
|
// Listen for target updated
|
|
@@ -50997,6 +51356,45 @@ RcAlign.displayName = 'Align';
|
|
|
50997
51356
|
// export this package's api
|
|
50998
51357
|
|
|
50999
51358
|
/* harmony default export */ var rc_align_es = (es_Align);
|
|
51359
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
51360
|
+
var runtime_regenerator = __webpack_require__(5273);
|
|
51361
|
+
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
51362
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
51363
|
+
function esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
51364
|
+
try {
|
|
51365
|
+
var info = gen[key](arg);
|
|
51366
|
+
var value = info.value;
|
|
51367
|
+
} catch (error) {
|
|
51368
|
+
reject(error);
|
|
51369
|
+
return;
|
|
51370
|
+
}
|
|
51371
|
+
|
|
51372
|
+
if (info.done) {
|
|
51373
|
+
resolve(value);
|
|
51374
|
+
} else {
|
|
51375
|
+
Promise.resolve(value).then(_next, _throw);
|
|
51376
|
+
}
|
|
51377
|
+
}
|
|
51378
|
+
|
|
51379
|
+
function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
51380
|
+
return function () {
|
|
51381
|
+
var self = this,
|
|
51382
|
+
args = arguments;
|
|
51383
|
+
return new Promise(function (resolve, reject) {
|
|
51384
|
+
var gen = fn.apply(self, args);
|
|
51385
|
+
|
|
51386
|
+
function _next(value) {
|
|
51387
|
+
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
51388
|
+
}
|
|
51389
|
+
|
|
51390
|
+
function _throw(err) {
|
|
51391
|
+
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
51392
|
+
}
|
|
51393
|
+
|
|
51394
|
+
_next(undefined);
|
|
51395
|
+
});
|
|
51396
|
+
};
|
|
51397
|
+
}
|
|
51000
51398
|
;// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/useVisibleStatus.js
|
|
51001
51399
|
|
|
51002
51400
|
|
|
@@ -51006,7 +51404,7 @@ RcAlign.displayName = 'Align';
|
|
|
51006
51404
|
var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
51007
51405
|
/* harmony default export */ var useVisibleStatus = (function (visible, doMeasure) {
|
|
51008
51406
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
51009
|
-
_useState2 =
|
|
51407
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
51010
51408
|
status = _useState2[0],
|
|
51011
51409
|
setInternalStatus = _useState2[1];
|
|
51012
51410
|
|
|
@@ -51059,9 +51457,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51059
51457
|
}
|
|
51060
51458
|
|
|
51061
51459
|
if (status) {
|
|
51062
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/
|
|
51460
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/esm_asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
51063
51461
|
var index, nextStatus;
|
|
51064
|
-
return
|
|
51462
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
51065
51463
|
while (1) {
|
|
51066
51464
|
switch (_context.prev = _context.next) {
|
|
51067
51465
|
case 0:
|
|
@@ -51097,7 +51495,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51097
51495
|
width: 0,
|
|
51098
51496
|
height: 0
|
|
51099
51497
|
}),
|
|
51100
|
-
_React$useState2 =
|
|
51498
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
51101
51499
|
targetSize = _React$useState2[0],
|
|
51102
51500
|
setTargetSize = _React$useState2[1];
|
|
51103
51501
|
|
|
@@ -51168,13 +51566,13 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51168
51566
|
var elementRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
51169
51567
|
|
|
51170
51568
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
51171
|
-
_useState2 =
|
|
51569
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
51172
51570
|
alignedClassName = _useState2[0],
|
|
51173
51571
|
setAlignedClassName = _useState2[1]; // ======================= Measure ========================
|
|
51174
51572
|
|
|
51175
51573
|
|
|
51176
51574
|
var _useStretchStyle = useStretchStyle(stretch),
|
|
51177
|
-
_useStretchStyle2 =
|
|
51575
|
+
_useStretchStyle2 = esm_slicedToArray_slicedToArray(_useStretchStyle, 2),
|
|
51178
51576
|
stretchStyle = _useStretchStyle2[0],
|
|
51179
51577
|
measureStretchStyle = _useStretchStyle2[1];
|
|
51180
51578
|
|
|
@@ -51186,7 +51584,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51186
51584
|
|
|
51187
51585
|
|
|
51188
51586
|
var _useVisibleStatus = useVisibleStatus(visible, doMeasure),
|
|
51189
|
-
_useVisibleStatus2 =
|
|
51587
|
+
_useVisibleStatus2 = esm_slicedToArray_slicedToArray(_useVisibleStatus, 2),
|
|
51190
51588
|
status = _useVisibleStatus2[0],
|
|
51191
51589
|
goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
|
|
51192
51590
|
|
|
@@ -51234,7 +51632,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51234
51632
|
} // ======================== Motion ========================
|
|
51235
51633
|
|
|
51236
51634
|
|
|
51237
|
-
var motion =
|
|
51635
|
+
var motion = objectSpread2_objectSpread2({}, getMotion(props));
|
|
51238
51636
|
|
|
51239
51637
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
51240
51638
|
var originHandler = motion[eventName];
|
|
@@ -51267,7 +51665,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51267
51665
|
};
|
|
51268
51666
|
}); // ======================== Render ========================
|
|
51269
51667
|
|
|
51270
|
-
var mergedStyle =
|
|
51668
|
+
var mergedStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, stretchStyle), {}, {
|
|
51271
51669
|
zIndex: zIndex,
|
|
51272
51670
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
51273
51671
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -51288,7 +51686,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51288
51686
|
}, children);
|
|
51289
51687
|
}
|
|
51290
51688
|
|
|
51291
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51689
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
51292
51690
|
visible: visible,
|
|
51293
51691
|
ref: elementRef,
|
|
51294
51692
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51316,7 +51714,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51316
51714
|
onMouseLeave: onMouseLeave,
|
|
51317
51715
|
onMouseDownCapture: onMouseDown,
|
|
51318
51716
|
onTouchStartCapture: onTouchStart,
|
|
51319
|
-
style:
|
|
51717
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), mergedStyle)
|
|
51320
51718
|
}, childNode));
|
|
51321
51719
|
});
|
|
51322
51720
|
});
|
|
@@ -51351,7 +51749,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51351
51749
|
};
|
|
51352
51750
|
}); // ======================== Render ========================
|
|
51353
51751
|
|
|
51354
|
-
var mergedStyle =
|
|
51752
|
+
var mergedStyle = objectSpread2_objectSpread2({
|
|
51355
51753
|
zIndex: zIndex
|
|
51356
51754
|
}, popupStyle);
|
|
51357
51755
|
|
|
@@ -51368,7 +51766,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51368
51766
|
childNode = popupRender(childNode);
|
|
51369
51767
|
}
|
|
51370
51768
|
|
|
51371
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51769
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
51372
51770
|
visible: visible,
|
|
51373
51771
|
ref: elementRef,
|
|
51374
51772
|
removeOnLeave: true
|
|
@@ -51379,7 +51777,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51379
51777
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51380
51778
|
ref: motionRef,
|
|
51381
51779
|
className: mergedClassName,
|
|
51382
|
-
style:
|
|
51780
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), mergedStyle)
|
|
51383
51781
|
}, childNode);
|
|
51384
51782
|
});
|
|
51385
51783
|
});
|
|
@@ -51400,19 +51798,19 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51400
51798
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51401
51799
|
var visible = _ref.visible,
|
|
51402
51800
|
mobile = _ref.mobile,
|
|
51403
|
-
props =
|
|
51801
|
+
props = esm_objectWithoutProperties_objectWithoutProperties(_ref, Popup_excluded);
|
|
51404
51802
|
|
|
51405
51803
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51406
|
-
_useState2 =
|
|
51804
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
51407
51805
|
innerVisible = _useState2[0],
|
|
51408
51806
|
serInnerVisible = _useState2[1];
|
|
51409
51807
|
|
|
51410
51808
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
51411
|
-
_useState4 =
|
|
51809
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
51412
51810
|
inMobile = _useState4[0],
|
|
51413
51811
|
setInMobile = _useState4[1];
|
|
51414
51812
|
|
|
51415
|
-
var cloneProps =
|
|
51813
|
+
var cloneProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
51416
51814
|
visible: innerVisible
|
|
51417
51815
|
}); // We check mobile in visible changed here.
|
|
51418
51816
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51425,10 +51823,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51425
51823
|
setInMobile(isMobile());
|
|
51426
51824
|
}
|
|
51427
51825
|
}, [visible, mobile]);
|
|
51428
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51826
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, esm_extends_extends({}, cloneProps, {
|
|
51429
51827
|
mobile: mobile,
|
|
51430
51828
|
ref: ref
|
|
51431
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51829
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, esm_extends_extends({}, cloneProps, {
|
|
51432
51830
|
ref: ref
|
|
51433
51831
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51434
51832
|
|
|
@@ -56117,7 +56515,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56117
56515
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56118
56516
|
|
|
56119
56517
|
function mergeProps(origin, target) {
|
|
56120
|
-
var clone =
|
|
56518
|
+
var clone = objectSpread2_objectSpread2({}, origin);
|
|
56121
56519
|
|
|
56122
56520
|
Object.keys(target).forEach(function (key) {
|
|
56123
56521
|
var value = target[key];
|
|
@@ -56132,7 +56530,7 @@ function mergeProps(origin, target) {
|
|
|
56132
56530
|
function InheritableContextProvider(_ref) {
|
|
56133
56531
|
var children = _ref.children,
|
|
56134
56532
|
locked = _ref.locked,
|
|
56135
|
-
restProps =
|
|
56533
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56136
56534
|
|
|
56137
56535
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56138
56536
|
var inheritableContext = useMemo(function () {
|
|
@@ -56188,7 +56586,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56188
56586
|
|
|
56189
56587
|
function warnItemProp(_ref) {
|
|
56190
56588
|
var item = _ref.item,
|
|
56191
|
-
restInfo =
|
|
56589
|
+
restInfo = esm_objectWithoutProperties_objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56192
56590
|
|
|
56193
56591
|
Object.defineProperty(restInfo, 'item', {
|
|
56194
56592
|
get: function get() {
|
|
@@ -56208,7 +56606,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56208
56606
|
var iconNode;
|
|
56209
56607
|
|
|
56210
56608
|
if (typeof icon === 'function') {
|
|
56211
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
56609
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, objectSpread2_objectSpread2({}, props));
|
|
56212
56610
|
} else {
|
|
56213
56611
|
// Compatible for origin definition
|
|
56214
56612
|
iconNode = icon;
|
|
@@ -56249,7 +56647,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56249
56647
|
function useFullPath(eventKey) {
|
|
56250
56648
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56251
56649
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56252
|
-
return eventKey !== undefined ? [].concat(
|
|
56650
|
+
return eventKey !== undefined ? [].concat(toConsumableArray_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56253
56651
|
}, [parentKeyPath, eventKey]);
|
|
56254
56652
|
}
|
|
56255
56653
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56306,28 +56704,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56306
56704
|
// This should be removed from doc & api in future.
|
|
56307
56705
|
|
|
56308
56706
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56309
|
-
|
|
56707
|
+
inherits_inherits(LegacyMenuItem, _React$Component);
|
|
56310
56708
|
|
|
56311
|
-
var _super =
|
|
56709
|
+
var _super = createSuper_createSuper(LegacyMenuItem);
|
|
56312
56710
|
|
|
56313
56711
|
function LegacyMenuItem() {
|
|
56314
|
-
|
|
56712
|
+
classCallCheck_classCallCheck(this, LegacyMenuItem);
|
|
56315
56713
|
|
|
56316
56714
|
return _super.apply(this, arguments);
|
|
56317
56715
|
}
|
|
56318
56716
|
|
|
56319
|
-
|
|
56717
|
+
createClass_createClass(LegacyMenuItem, [{
|
|
56320
56718
|
key: "render",
|
|
56321
56719
|
value: function render() {
|
|
56322
56720
|
var _this$props = this.props,
|
|
56323
56721
|
title = _this$props.title,
|
|
56324
56722
|
attribute = _this$props.attribute,
|
|
56325
56723
|
elementRef = _this$props.elementRef,
|
|
56326
|
-
restProps =
|
|
56724
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56327
56725
|
|
|
56328
56726
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56329
56727
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56330
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56728
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, esm_extends_extends({}, attribute, {
|
|
56331
56729
|
title: typeof title === 'string' ? title : undefined
|
|
56332
56730
|
}, passedProps, {
|
|
56333
56731
|
ref: elementRef
|
|
@@ -56358,7 +56756,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56358
56756
|
onClick = props.onClick,
|
|
56359
56757
|
onKeyDown = props.onKeyDown,
|
|
56360
56758
|
onFocus = props.onFocus,
|
|
56361
|
-
restProps =
|
|
56759
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, MenuItem_excluded2);
|
|
56362
56760
|
|
|
56363
56761
|
var domDataId = useMenuId(eventKey);
|
|
56364
56762
|
|
|
@@ -56387,7 +56785,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56387
56785
|
return {
|
|
56388
56786
|
key: eventKey,
|
|
56389
56787
|
// Note: For legacy code is reversed which not like other antd component
|
|
56390
|
-
keyPath:
|
|
56788
|
+
keyPath: toConsumableArray_toConsumableArray(connectedKeys).reverse(),
|
|
56391
56789
|
item: legacyMenuItemRef.current,
|
|
56392
56790
|
domEvent: e
|
|
56393
56791
|
};
|
|
@@ -56398,7 +56796,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56398
56796
|
|
|
56399
56797
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56400
56798
|
active = _useActive.active,
|
|
56401
|
-
activeProps =
|
|
56799
|
+
activeProps = esm_objectWithoutProperties_objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56402
56800
|
|
|
56403
56801
|
|
|
56404
56802
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56443,7 +56841,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56443
56841
|
optionRoleProps['aria-selected'] = selected;
|
|
56444
56842
|
}
|
|
56445
56843
|
|
|
56446
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56844
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, esm_extends_extends({
|
|
56447
56845
|
ref: legacyMenuItemRef,
|
|
56448
56846
|
elementRef: elementRef,
|
|
56449
56847
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56452,13 +56850,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56452
56850
|
}, restProps, activeProps, optionRoleProps, {
|
|
56453
56851
|
component: "li",
|
|
56454
56852
|
"aria-disabled": disabled,
|
|
56455
|
-
style:
|
|
56456
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56853
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, directionStyle), style),
|
|
56854
|
+
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),
|
|
56457
56855
|
onClick: onInternalClick,
|
|
56458
56856
|
onKeyDown: onInternalKeyDown,
|
|
56459
56857
|
onFocus: onInternalFocus
|
|
56460
56858
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56461
|
-
props:
|
|
56859
|
+
props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
56462
56860
|
isSelected: selected
|
|
56463
56861
|
}),
|
|
56464
56862
|
icon: mergedItemIcon
|
|
@@ -56511,7 +56909,7 @@ function parseChildren(children, keyPath) {
|
|
|
56511
56909
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56512
56910
|
|
|
56513
56911
|
if (emptyKey) {
|
|
56514
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56912
|
+
eventKey = "tmp_key-".concat([].concat(toConsumableArray_toConsumableArray(keyPath), [index]).join('-'));
|
|
56515
56913
|
}
|
|
56516
56914
|
|
|
56517
56915
|
var cloneProps = {
|
|
@@ -56559,14 +56957,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56559
56957
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56560
56958
|
var className = _ref.className,
|
|
56561
56959
|
children = _ref.children,
|
|
56562
|
-
restProps =
|
|
56960
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56563
56961
|
|
|
56564
56962
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56565
56963
|
prefixCls = _React$useContext.prefixCls,
|
|
56566
56964
|
mode = _React$useContext.mode,
|
|
56567
56965
|
rtl = _React$useContext.rtl;
|
|
56568
56966
|
|
|
56569
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
56967
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", esm_extends_extends({
|
|
56570
56968
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56571
56969
|
}, restProps, {
|
|
56572
56970
|
"data-menu-list": true,
|
|
@@ -56679,15 +57077,15 @@ function PopupTrigger(_ref) {
|
|
|
56679
57077
|
defaultMotions = _React$useContext.defaultMotions;
|
|
56680
57078
|
|
|
56681
57079
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
56682
|
-
_React$useState2 =
|
|
57080
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
56683
57081
|
innerVisible = _React$useState2[0],
|
|
56684
57082
|
setInnerVisible = _React$useState2[1];
|
|
56685
57083
|
|
|
56686
|
-
var placement = rtl ?
|
|
57084
|
+
var placement = rtl ? objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, placementsRtl), builtinPlacements) : objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, placements), builtinPlacements);
|
|
56687
57085
|
var popupPlacement = popupPlacementMap[mode];
|
|
56688
57086
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
56689
57087
|
|
|
56690
|
-
var mergedMotion =
|
|
57088
|
+
var mergedMotion = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, targetMotion), {}, {
|
|
56691
57089
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
56692
57090
|
removeOnLeave: false,
|
|
56693
57091
|
motionAppear: true
|
|
@@ -56705,7 +57103,7 @@ function PopupTrigger(_ref) {
|
|
|
56705
57103
|
}, [visible]);
|
|
56706
57104
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
56707
57105
|
prefixCls: prefixCls,
|
|
56708
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
57106
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), defineProperty_defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
56709
57107
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
56710
57108
|
getPopupContainer: getPopupContainer,
|
|
56711
57109
|
builtinPlacements: placement,
|
|
@@ -56752,7 +57150,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56752
57150
|
// The inline list should remove when motion end.
|
|
56753
57151
|
|
|
56754
57152
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(!sameModeRef.current),
|
|
56755
|
-
_React$useState2 =
|
|
57153
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
56756
57154
|
destroy = _React$useState2[0],
|
|
56757
57155
|
setDestroy = _React$useState2[1];
|
|
56758
57156
|
|
|
@@ -56765,7 +57163,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56765
57163
|
}
|
|
56766
57164
|
}, [mode]); // ================================= Render =================================
|
|
56767
57165
|
|
|
56768
|
-
var mergedMotion =
|
|
57166
|
+
var mergedMotion = objectSpread2_objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
56769
57167
|
|
|
56770
57168
|
|
|
56771
57169
|
if (keyPath.length > 1) {
|
|
@@ -56790,7 +57188,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56790
57188
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
56791
57189
|
mode: fixedMode,
|
|
56792
57190
|
locked: !sameModeRef.current
|
|
56793
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
57191
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
56794
57192
|
visible: mergedOpen
|
|
56795
57193
|
}, mergedMotion, {
|
|
56796
57194
|
forceRender: forceSubMenuRender,
|
|
@@ -56853,7 +57251,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56853
57251
|
onTitleClick = props.onTitleClick,
|
|
56854
57252
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
56855
57253
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
56856
|
-
restProps =
|
|
57254
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, SubMenu_excluded);
|
|
56857
57255
|
|
|
56858
57256
|
var domDataId = useMenuId(eventKey);
|
|
56859
57257
|
|
|
@@ -56896,11 +57294,11 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56896
57294
|
|
|
56897
57295
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
56898
57296
|
active = _useActive.active,
|
|
56899
|
-
activeProps =
|
|
57297
|
+
activeProps = esm_objectWithoutProperties_objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
56900
57298
|
|
|
56901
57299
|
|
|
56902
57300
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
56903
|
-
_React$useState2 =
|
|
57301
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
56904
57302
|
childrenActive = _React$useState2[0],
|
|
56905
57303
|
setChildrenActive = _React$useState2[1];
|
|
56906
57304
|
|
|
@@ -56981,7 +57379,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56981
57379
|
|
|
56982
57380
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
56983
57381
|
|
|
56984
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
57382
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
56985
57383
|
role: "menuitem",
|
|
56986
57384
|
style: directionStyle,
|
|
56987
57385
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -56997,7 +57395,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56997
57395
|
onFocus: onInternalFocus
|
|
56998
57396
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56999
57397
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
57000
|
-
props:
|
|
57398
|
+
props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
57001
57399
|
isOpen: open,
|
|
57002
57400
|
// [Legacy] Not sure why need this mark
|
|
57003
57401
|
isSubMenu: true
|
|
@@ -57035,12 +57433,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57035
57433
|
} // >>>>> List node
|
|
57036
57434
|
|
|
57037
57435
|
|
|
57038
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
57436
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, esm_extends_extends({
|
|
57039
57437
|
role: "none"
|
|
57040
57438
|
}, restProps, {
|
|
57041
57439
|
component: "li",
|
|
57042
57440
|
style: style,
|
|
57043
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
57441
|
+
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)),
|
|
57044
57442
|
onMouseEnter: onInternalMouseEnter,
|
|
57045
57443
|
onMouseLeave: onInternalMouseLeave
|
|
57046
57444
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -57133,7 +57531,7 @@ function focusable(node) {
|
|
|
57133
57531
|
function getFocusNodeList(node) {
|
|
57134
57532
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
57135
57533
|
|
|
57136
|
-
var res =
|
|
57534
|
+
var res = toConsumableArray_toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
57137
57535
|
return focusable(child, includePositive);
|
|
57138
57536
|
});
|
|
57139
57537
|
|
|
@@ -57213,9 +57611,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
57213
57611
|
};
|
|
57214
57612
|
}
|
|
57215
57613
|
|
|
57216
|
-
var inline = (_inline = {},
|
|
57217
|
-
var horizontal = (_horizontal = {},
|
|
57218
|
-
var vertical = (_vertical = {},
|
|
57614
|
+
var inline = (_inline = {}, defineProperty_defineProperty(_inline, UP, prev), defineProperty_defineProperty(_inline, DOWN, next), _inline);
|
|
57615
|
+
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);
|
|
57616
|
+
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);
|
|
57219
57617
|
var offsets = {
|
|
57220
57618
|
inline: inline,
|
|
57221
57619
|
horizontal: horizontal,
|
|
@@ -57481,7 +57879,7 @@ function useUUID(id) {
|
|
|
57481
57879
|
var _useMergedState = useControlledState(id, {
|
|
57482
57880
|
value: id
|
|
57483
57881
|
}),
|
|
57484
|
-
_useMergedState2 =
|
|
57882
|
+
_useMergedState2 = esm_slicedToArray_slicedToArray(_useMergedState, 2),
|
|
57485
57883
|
uuid = _useMergedState2[0],
|
|
57486
57884
|
setUUID = _useMergedState2[1];
|
|
57487
57885
|
|
|
@@ -57517,14 +57915,14 @@ var getPathKeys = function getPathKeys(keyPathStr) {
|
|
|
57517
57915
|
var OVERFLOW_KEY = 'rc-menu-more';
|
|
57518
57916
|
function useKeyRecords() {
|
|
57519
57917
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState({}),
|
|
57520
|
-
_React$useState2 =
|
|
57918
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
57521
57919
|
internalForceUpdate = _React$useState2[1];
|
|
57522
57920
|
|
|
57523
57921
|
var key2pathRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57524
57922
|
var path2keyRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57525
57923
|
|
|
57526
57924
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
57527
|
-
_React$useState4 =
|
|
57925
|
+
_React$useState4 = esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
57528
57926
|
overflowKeys = _React$useState4[0],
|
|
57529
57927
|
setOverflowKeys = _React$useState4[1];
|
|
57530
57928
|
|
|
@@ -57579,7 +57977,7 @@ function useKeyRecords() {
|
|
|
57579
57977
|
}, [getKeyPath]);
|
|
57580
57978
|
|
|
57581
57979
|
var getKeys = function getKeys() {
|
|
57582
|
-
var keys =
|
|
57980
|
+
var keys = toConsumableArray_toConsumableArray(key2pathRef.current.keys());
|
|
57583
57981
|
|
|
57584
57982
|
if (overflowKeys.length) {
|
|
57585
57983
|
keys.push(OVERFLOW_KEY);
|
|
@@ -57596,7 +57994,7 @@ function useKeyRecords() {
|
|
|
57596
57994
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
57597
57995
|
var pathKeys = new Set();
|
|
57598
57996
|
|
|
57599
|
-
|
|
57997
|
+
toConsumableArray_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
57600
57998
|
if (pathKey.startsWith(connectedPath)) {
|
|
57601
57999
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
57602
58000
|
}
|
|
@@ -57717,12 +58115,12 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57717
58115
|
openTransitionName = props.openTransitionName,
|
|
57718
58116
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
57719
58117
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
57720
|
-
restProps =
|
|
58118
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, Menu_excluded);
|
|
57721
58119
|
|
|
57722
58120
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
57723
58121
|
|
|
57724
58122
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
57725
|
-
_React$useState2 =
|
|
58123
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
57726
58124
|
mounted = _React$useState2[0],
|
|
57727
58125
|
setMounted = _React$useState2[1];
|
|
57728
58126
|
|
|
@@ -57741,13 +58139,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57741
58139
|
|
|
57742
58140
|
return [mode, false];
|
|
57743
58141
|
}, [mode, inlineCollapsed]),
|
|
57744
|
-
_React$useMemo2 =
|
|
58142
|
+
_React$useMemo2 = esm_slicedToArray_slicedToArray(_React$useMemo, 2),
|
|
57745
58143
|
mergedMode = _React$useMemo2[0],
|
|
57746
58144
|
mergedInlineCollapsed = _React$useMemo2[1]; // ====================== Responsive ======================
|
|
57747
58145
|
|
|
57748
58146
|
|
|
57749
58147
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
57750
|
-
_React$useState4 =
|
|
58148
|
+
_React$useState4 = esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
57751
58149
|
lastVisibleIndex = _React$useState4[0],
|
|
57752
58150
|
setLastVisibleIndex = _React$useState4[1];
|
|
57753
58151
|
|
|
@@ -57759,7 +58157,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57759
58157
|
return keys || EMPTY_LIST;
|
|
57760
58158
|
}
|
|
57761
58159
|
}),
|
|
57762
|
-
_useMergedState2 =
|
|
58160
|
+
_useMergedState2 = esm_slicedToArray_slicedToArray(_useMergedState, 2),
|
|
57763
58161
|
mergedOpenKeys = _useMergedState2[0],
|
|
57764
58162
|
setMergedOpenKeys = _useMergedState2[1];
|
|
57765
58163
|
|
|
@@ -57770,7 +58168,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57770
58168
|
|
|
57771
58169
|
|
|
57772
58170
|
var _React$useState5 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(mergedOpenKeys),
|
|
57773
|
-
_React$useState6 =
|
|
58171
|
+
_React$useState6 = esm_slicedToArray_slicedToArray(_React$useState5, 2),
|
|
57774
58172
|
inlineCacheOpenKeys = _React$useState6[0],
|
|
57775
58173
|
setInlineCacheOpenKeys = _React$useState6[1];
|
|
57776
58174
|
|
|
@@ -57826,7 +58224,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57826
58224
|
var _useMergedState3 = useControlledState(activeKey || defaultActiveFirst && ((_childList$ = childList[0]) === null || _childList$ === void 0 ? void 0 : _childList$.key), {
|
|
57827
58225
|
value: activeKey
|
|
57828
58226
|
}),
|
|
57829
|
-
_useMergedState4 =
|
|
58227
|
+
_useMergedState4 = esm_slicedToArray_slicedToArray(_useMergedState3, 2),
|
|
57830
58228
|
mergedActiveKey = _useMergedState4[0],
|
|
57831
58229
|
setMergedActiveKey = _useMergedState4[1];
|
|
57832
58230
|
|
|
@@ -57853,7 +58251,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57853
58251
|
return [keys];
|
|
57854
58252
|
}
|
|
57855
58253
|
}),
|
|
57856
|
-
_useMergedState6 =
|
|
58254
|
+
_useMergedState6 = esm_slicedToArray_slicedToArray(_useMergedState5, 2),
|
|
57857
58255
|
mergedSelectKeys = _useMergedState6[0],
|
|
57858
58256
|
setMergedSelectKeys = _useMergedState6[1]; // >>>>> Trigger select
|
|
57859
58257
|
|
|
@@ -57871,7 +58269,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57871
58269
|
return key !== targetKey;
|
|
57872
58270
|
});
|
|
57873
58271
|
} else {
|
|
57874
|
-
newSelectKeys = [].concat(
|
|
58272
|
+
newSelectKeys = [].concat(toConsumableArray_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
57875
58273
|
}
|
|
57876
58274
|
} else {
|
|
57877
58275
|
newSelectKeys = [targetKey];
|
|
@@ -57879,7 +58277,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57879
58277
|
|
|
57880
58278
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
57881
58279
|
|
|
57882
|
-
var selectInfo =
|
|
58280
|
+
var selectInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
57883
58281
|
selectedKeys: newSelectKeys
|
|
57884
58282
|
});
|
|
57885
58283
|
|
|
@@ -57957,13 +58355,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57957
58355
|
);
|
|
57958
58356
|
}); // >>>>> Container
|
|
57959
58357
|
|
|
57960
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
58358
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, esm_extends_extends({
|
|
57961
58359
|
id: id,
|
|
57962
58360
|
ref: mergedRef,
|
|
57963
58361
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
57964
58362
|
component: "ul",
|
|
57965
58363
|
itemComponent: es_MenuItem,
|
|
57966
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
58364
|
+
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)),
|
|
57967
58365
|
dir: direction,
|
|
57968
58366
|
style: style,
|
|
57969
58367
|
role: "menu",
|
|
@@ -58057,13 +58455,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58057
58455
|
title = _ref.title,
|
|
58058
58456
|
eventKey = _ref.eventKey,
|
|
58059
58457
|
children = _ref.children,
|
|
58060
|
-
restProps =
|
|
58458
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58061
58459
|
|
|
58062
58460
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58063
58461
|
prefixCls = _React$useContext.prefixCls;
|
|
58064
58462
|
|
|
58065
58463
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58066
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
58464
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", esm_extends_extends({}, restProps, {
|
|
58067
58465
|
onClick: function onClick(e) {
|
|
58068
58466
|
return e.stopPropagation();
|
|
58069
58467
|
},
|
|
@@ -58078,7 +58476,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58078
58476
|
|
|
58079
58477
|
function MenuItemGroup(_ref2) {
|
|
58080
58478
|
var children = _ref2.children,
|
|
58081
|
-
props =
|
|
58479
|
+
props = esm_objectWithoutProperties_objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58082
58480
|
|
|
58083
58481
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58084
58482
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58206,10 +58604,10 @@ function Dropdown(props, ref) {
|
|
|
58206
58604
|
visible = props.visible,
|
|
58207
58605
|
_props$trigger = props.trigger,
|
|
58208
58606
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58209
|
-
otherProps =
|
|
58607
|
+
otherProps = esm_objectWithoutProperties_objectWithoutProperties(props, Dropdown_excluded);
|
|
58210
58608
|
|
|
58211
58609
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58212
|
-
_React$useState2 =
|
|
58610
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
58213
58611
|
triggerVisible = _React$useState2[0],
|
|
58214
58612
|
setTriggerVisible = _React$useState2[1];
|
|
58215
58613
|
|
|
@@ -58317,12 +58715,12 @@ function Dropdown(props, ref) {
|
|
|
58317
58715
|
triggerHideAction = ['click'];
|
|
58318
58716
|
}
|
|
58319
58717
|
|
|
58320
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58718
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
58321
58719
|
builtinPlacements: placements
|
|
58322
58720
|
}, otherProps), {}, {
|
|
58323
58721
|
prefixCls: prefixCls,
|
|
58324
58722
|
ref: triggerRef,
|
|
58325
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58723
|
+
popupClassName: classnames_default()(overlayClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58326
58724
|
popupStyle: overlayStyle,
|
|
58327
58725
|
action: trigger,
|
|
58328
58726
|
showAction: showAction,
|
|
@@ -61912,6 +62310,14 @@ function list_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
|
|
|
61912
62310
|
|
|
61913
62311
|
|
|
61914
62312
|
|
|
62313
|
+
function list_toConsumableArray(arr) { return list_arrayWithoutHoles(arr) || list_iterableToArray(arr) || list_unsupportedIterableToArray(arr) || list_nonIterableSpread(); }
|
|
62314
|
+
|
|
62315
|
+
function list_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
62316
|
+
|
|
62317
|
+
function list_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
62318
|
+
|
|
62319
|
+
function list_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return list_arrayLikeToArray(arr); }
|
|
62320
|
+
|
|
61915
62321
|
function list_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
61916
62322
|
|
|
61917
62323
|
function list_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { list_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { list_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
@@ -61928,6 +62334,7 @@ function list_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeo
|
|
|
61928
62334
|
|
|
61929
62335
|
function list_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
61930
62336
|
|
|
62337
|
+
/* eslint-disable no-nested-ternary */
|
|
61931
62338
|
|
|
61932
62339
|
|
|
61933
62340
|
|
|
@@ -61975,6 +62382,8 @@ function PublicLiveList(_ref) {
|
|
|
61975
62382
|
window._propSdpAppId = propSdpAppId;
|
|
61976
62383
|
}
|
|
61977
62384
|
|
|
62385
|
+
var isMobile = (0,util_env/* isInMobile */.Df)();
|
|
62386
|
+
|
|
61978
62387
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)([]),
|
|
61979
62388
|
_useState2 = list_slicedToArray(_useState, 2),
|
|
61980
62389
|
list = _useState2[0],
|
|
@@ -61990,29 +62399,36 @@ function PublicLiveList(_ref) {
|
|
|
61990
62399
|
loading = _useState6[0],
|
|
61991
62400
|
setLoading = _useState6[1];
|
|
61992
62401
|
|
|
61993
|
-
var _useState7 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(
|
|
62402
|
+
var _useState7 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
61994
62403
|
_useState8 = list_slicedToArray(_useState7, 2),
|
|
61995
|
-
|
|
61996
|
-
|
|
62404
|
+
loadingMore = _useState8[0],
|
|
62405
|
+
setLoadingMore = _useState8[1];
|
|
61997
62406
|
|
|
61998
|
-
var _useState9 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(
|
|
62407
|
+
var _useState9 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(1),
|
|
61999
62408
|
_useState10 = list_slicedToArray(_useState9, 2),
|
|
62000
|
-
|
|
62001
|
-
|
|
62409
|
+
page = _useState10[0],
|
|
62410
|
+
setPage = _useState10[1];
|
|
62002
62411
|
|
|
62003
|
-
var _useState11 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(
|
|
62412
|
+
var _useState11 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)('all'),
|
|
62004
62413
|
_useState12 = list_slicedToArray(_useState11, 2),
|
|
62005
|
-
|
|
62006
|
-
|
|
62414
|
+
status = _useState12[0],
|
|
62415
|
+
setStatus = _useState12[1];
|
|
62007
62416
|
|
|
62008
|
-
var _useState13 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(
|
|
62417
|
+
var _useState13 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)([]),
|
|
62009
62418
|
_useState14 = list_slicedToArray(_useState13, 2),
|
|
62010
|
-
|
|
62011
|
-
|
|
62419
|
+
subscription = _useState14[0],
|
|
62420
|
+
setSubscription = _useState14[1];
|
|
62421
|
+
|
|
62422
|
+
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
62423
|
+
_useState16 = list_slicedToArray(_useState15, 2),
|
|
62424
|
+
isLogin = _useState16[0],
|
|
62425
|
+
setIsLogin = _useState16[1];
|
|
62012
62426
|
|
|
62013
62427
|
var handleTabChange = function handleTabChange(value) {
|
|
62014
62428
|
setStatus(value);
|
|
62015
62429
|
setPage(1);
|
|
62430
|
+
setList([]);
|
|
62431
|
+
setTotal(0);
|
|
62016
62432
|
};
|
|
62017
62433
|
|
|
62018
62434
|
var handlePageChange = function handlePageChange(value) {
|
|
@@ -62027,13 +62443,21 @@ function PublicLiveList(_ref) {
|
|
|
62027
62443
|
|
|
62028
62444
|
function _getList() {
|
|
62029
62445
|
_getList = list_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
62030
|
-
var data, items, count, curIsLogin, curSubscription;
|
|
62446
|
+
var isFirstPage, data, items, count, curIsLogin, curSubscription;
|
|
62031
62447
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
62032
62448
|
while (1) {
|
|
62033
62449
|
switch (_context.prev = _context.next) {
|
|
62034
62450
|
case 0:
|
|
62035
|
-
|
|
62036
|
-
|
|
62451
|
+
isFirstPage = page === 1;
|
|
62452
|
+
|
|
62453
|
+
if (isFirstPage) {
|
|
62454
|
+
setLoading(true);
|
|
62455
|
+
setLoadingMore(false);
|
|
62456
|
+
} else {
|
|
62457
|
+
setLoadingMore(true);
|
|
62458
|
+
}
|
|
62459
|
+
|
|
62460
|
+
_context.next = 4;
|
|
62037
62461
|
return OpenLiveSearchFront({
|
|
62038
62462
|
status: status,
|
|
62039
62463
|
scopeType: scopeType,
|
|
@@ -62042,38 +62466,46 @@ function PublicLiveList(_ref) {
|
|
|
62042
62466
|
limit: PageSize
|
|
62043
62467
|
});
|
|
62044
62468
|
|
|
62045
|
-
case
|
|
62469
|
+
case 4:
|
|
62046
62470
|
data = _context.sent;
|
|
62047
62471
|
items = data.items, count = data.count;
|
|
62048
62472
|
|
|
62049
62473
|
if (!uc) {
|
|
62050
|
-
_context.next =
|
|
62474
|
+
_context.next = 16;
|
|
62051
62475
|
break;
|
|
62052
62476
|
}
|
|
62053
62477
|
|
|
62054
|
-
_context.next =
|
|
62478
|
+
_context.next = 9;
|
|
62055
62479
|
return uc.isLogin();
|
|
62056
62480
|
|
|
62057
|
-
case
|
|
62481
|
+
case 9:
|
|
62058
62482
|
curIsLogin = _context.sent;
|
|
62059
62483
|
|
|
62060
62484
|
if (!curIsLogin) {
|
|
62061
|
-
_context.next =
|
|
62485
|
+
_context.next = 16;
|
|
62062
62486
|
break;
|
|
62063
62487
|
}
|
|
62064
62488
|
|
|
62065
|
-
_context.next =
|
|
62489
|
+
_context.next = 13;
|
|
62066
62490
|
return getSubscription();
|
|
62067
62491
|
|
|
62068
|
-
case
|
|
62492
|
+
case 13:
|
|
62069
62493
|
curSubscription = _context.sent;
|
|
62070
62494
|
setSubscription(curSubscription);
|
|
62071
62495
|
setIsLogin(true);
|
|
62072
62496
|
|
|
62073
|
-
case
|
|
62074
|
-
|
|
62497
|
+
case 16:
|
|
62498
|
+
if (isMobile && page > 1) {
|
|
62499
|
+
setList(function (prev) {
|
|
62500
|
+
return [].concat(list_toConsumableArray(prev), list_toConsumableArray(items || []));
|
|
62501
|
+
});
|
|
62502
|
+
} else {
|
|
62503
|
+
setList(items || []);
|
|
62504
|
+
}
|
|
62505
|
+
|
|
62075
62506
|
setTotal(count || 0);
|
|
62076
|
-
setLoading(false);
|
|
62507
|
+
setLoading(false);
|
|
62508
|
+
setLoadingMore(false); // setList([
|
|
62077
62509
|
// {
|
|
62078
62510
|
// live_id: 'ac56674a-81cc-4401-8895-ccf1896fcfa0',
|
|
62079
62511
|
// live_name: '推进整本书阅读课程化建设,打造书香教室111111',
|
|
@@ -62154,7 +62586,7 @@ function PublicLiveList(_ref) {
|
|
|
62154
62586
|
// setTotal(1)
|
|
62155
62587
|
// setLoading(false)
|
|
62156
62588
|
|
|
62157
|
-
case
|
|
62589
|
+
case 20:
|
|
62158
62590
|
case "end":
|
|
62159
62591
|
return _context.stop();
|
|
62160
62592
|
}
|
|
@@ -62167,7 +62599,27 @@ function PublicLiveList(_ref) {
|
|
|
62167
62599
|
getList();
|
|
62168
62600
|
}, [page, status, refreshPage]);
|
|
62169
62601
|
var themeName = (0,cjs/* getXEduThemeName */.gV)();
|
|
62170
|
-
var
|
|
62602
|
+
var hasMore = list.length < total;
|
|
62603
|
+
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
62604
|
+
if (!isMobile) return undefined;
|
|
62605
|
+
|
|
62606
|
+
var handleScroll = function handleScroll() {
|
|
62607
|
+
var scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
|
|
62608
|
+
var viewportHeight = window.innerHeight || document.documentElement.clientHeight;
|
|
62609
|
+
var docHeight = document.documentElement.scrollHeight;
|
|
62610
|
+
|
|
62611
|
+
if (docHeight - (scrollTop + viewportHeight) < 120 && !loading && !loadingMore && hasMore) {
|
|
62612
|
+
setPage(function (prev) {
|
|
62613
|
+
return prev + 1;
|
|
62614
|
+
});
|
|
62615
|
+
}
|
|
62616
|
+
};
|
|
62617
|
+
|
|
62618
|
+
window.addEventListener('scroll', handleScroll);
|
|
62619
|
+
return function () {
|
|
62620
|
+
window.removeEventListener('scroll', handleScroll);
|
|
62621
|
+
};
|
|
62622
|
+
}, [isMobile, loading, loadingMore, hasMore]);
|
|
62171
62623
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62172
62624
|
className: classnames_default()(containerClassName, src_list_index_module.container, themeName, list_defineProperty({}, src_list_index_module.mobile, isMobile))
|
|
62173
62625
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(tabs, {
|
|
@@ -62194,7 +62646,9 @@ function PublicLiveList(_ref) {
|
|
|
62194
62646
|
isLogin: isLogin,
|
|
62195
62647
|
onSubscribe: onSubscribe
|
|
62196
62648
|
});
|
|
62197
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(
|
|
62649
|
+
}), isMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62650
|
+
className: src_list_index_module.mobileLoadMore
|
|
62651
|
+
}, loadingMore ? '加载中...' : hasMore ? '下拉加载更多' : '没有更多了') : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(component_Pagination_Pagination, {
|
|
62198
62652
|
total: total,
|
|
62199
62653
|
pageSize: PageSize,
|
|
62200
62654
|
current: page,
|