@x-edu/live-player 0.0.41 → 0.0.43
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 +195 -592
- package/package.json +1 -1
|
@@ -2666,7 +2666,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2666
2666
|
|
|
2667
2667
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2668
2668
|
// Module
|
|
2669
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_empty-wrap_c-bx5{margin-top:100px}.index-module_empty-wrap_c-bx5 .index-module_img-wrap_PLB8h{padding:16px;display:flex;align-items:center;justify-content:center;flex-direction:column}.index-module_empty-wrap_c-bx5 .index-module_img-wrap_PLB8h img{width:260px;height:182px}.index-module_empty-wrap_c-bx5 .index-module_tip_eskLk{font-size:16px;color:#666;line-height:24px;margin-top:32px}", ""]);
|
|
2669
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_empty-wrap_c-bx5{margin-top:100px;flex:0 0 100%!important}.index-module_empty-wrap_c-bx5 .index-module_img-wrap_PLB8h{padding:16px;display:flex;align-items:center;justify-content:center;flex-direction:column}.index-module_empty-wrap_c-bx5 .index-module_img-wrap_PLB8h img{width:260px;height:182px}.index-module_empty-wrap_c-bx5 .index-module_tip_eskLk{font-size:16px;color:#666;line-height:24px;margin-top:32px}", ""]);
|
|
2670
2670
|
// Exports
|
|
2671
2671
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2672
2672
|
"empty-wrap": "index-module_empty-wrap_c-bx5",
|
|
@@ -2764,7 +2764,7 @@ ___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}.index-module_mobileLoadMore_43-yu{flex:0 0 100%!important;text-align:center;color:#999;font-size:12px;line-height:18px;padding:12px 0 24px 0}.index-module_padList_YQpXl{display:flex;flex-wrap:wrap;gap:24px}.index-module_padList_YQpXl>*{flex:0 0 calc(33.33333% - 16px);box-sizing:border-box}", ""]);
|
|
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{flex:0 0 100%!important;text-align:center;color:#999;font-size:12px;line-height:18px;padding:12px 0 24px 0}.index-module_padList_YQpXl{display:flex;flex-wrap:wrap;gap:24px}.index-module_padList_YQpXl>*{flex:0 0 calc(33.33333% - 16px);box-sizing:border-box;overflow:hidden}", ""]);
|
|
2768
2768
|
// Exports
|
|
2769
2769
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2770
2770
|
"container": "index-module_container_y+him",
|
|
@@ -25735,13 +25735,6 @@ module.exports = styleTagTransform;
|
|
|
25735
25735
|
|
|
25736
25736
|
/***/ }),
|
|
25737
25737
|
|
|
25738
|
-
/***/ 5273:
|
|
25739
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25740
|
-
|
|
25741
|
-
module.exports = __webpack_require__(5666);
|
|
25742
|
-
|
|
25743
|
-
/***/ }),
|
|
25744
|
-
|
|
25745
25738
|
/***/ 3006:
|
|
25746
25739
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25747
25740
|
|
|
@@ -34424,129 +34417,6 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34424
34417
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34425
34418
|
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34426
34419
|
}
|
|
34427
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34428
|
-
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
34429
|
-
if (!(instance instanceof Constructor)) {
|
|
34430
|
-
throw new TypeError("Cannot call a class as a function");
|
|
34431
|
-
}
|
|
34432
|
-
}
|
|
34433
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
34434
|
-
function createClass_defineProperties(target, props) {
|
|
34435
|
-
for (var i = 0; i < props.length; i++) {
|
|
34436
|
-
var descriptor = props[i];
|
|
34437
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
34438
|
-
descriptor.configurable = true;
|
|
34439
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34440
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34441
|
-
}
|
|
34442
|
-
}
|
|
34443
|
-
|
|
34444
|
-
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
34445
|
-
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
34446
|
-
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
34447
|
-
return Constructor;
|
|
34448
|
-
}
|
|
34449
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
34450
|
-
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
34451
|
-
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
34452
|
-
o.__proto__ = p;
|
|
34453
|
-
return o;
|
|
34454
|
-
};
|
|
34455
|
-
|
|
34456
|
-
return setPrototypeOf_setPrototypeOf(o, p);
|
|
34457
|
-
}
|
|
34458
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
34459
|
-
|
|
34460
|
-
function inherits_inherits(subClass, superClass) {
|
|
34461
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
34462
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
34463
|
-
}
|
|
34464
|
-
|
|
34465
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
34466
|
-
constructor: {
|
|
34467
|
-
value: subClass,
|
|
34468
|
-
writable: true,
|
|
34469
|
-
configurable: true
|
|
34470
|
-
}
|
|
34471
|
-
});
|
|
34472
|
-
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
34473
|
-
}
|
|
34474
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
34475
|
-
function getPrototypeOf_getPrototypeOf(o) {
|
|
34476
|
-
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
34477
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
34478
|
-
};
|
|
34479
|
-
return getPrototypeOf_getPrototypeOf(o);
|
|
34480
|
-
}
|
|
34481
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
34482
|
-
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
34483
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
34484
|
-
if (Reflect.construct.sham) return false;
|
|
34485
|
-
if (typeof Proxy === "function") return true;
|
|
34486
|
-
|
|
34487
|
-
try {
|
|
34488
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
34489
|
-
return true;
|
|
34490
|
-
} catch (e) {
|
|
34491
|
-
return false;
|
|
34492
|
-
}
|
|
34493
|
-
}
|
|
34494
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
34495
|
-
function esm_typeof_typeof(obj) {
|
|
34496
|
-
"@babel/helpers - typeof";
|
|
34497
|
-
|
|
34498
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
34499
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
34500
|
-
return typeof obj;
|
|
34501
|
-
};
|
|
34502
|
-
} else {
|
|
34503
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
34504
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
34505
|
-
};
|
|
34506
|
-
}
|
|
34507
|
-
|
|
34508
|
-
return esm_typeof_typeof(obj);
|
|
34509
|
-
}
|
|
34510
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
34511
|
-
function assertThisInitialized_assertThisInitialized(self) {
|
|
34512
|
-
if (self === void 0) {
|
|
34513
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34514
|
-
}
|
|
34515
|
-
|
|
34516
|
-
return self;
|
|
34517
|
-
}
|
|
34518
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
34519
|
-
|
|
34520
|
-
|
|
34521
|
-
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
34522
|
-
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
34523
|
-
return call;
|
|
34524
|
-
} else if (call !== void 0) {
|
|
34525
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
34526
|
-
}
|
|
34527
|
-
|
|
34528
|
-
return assertThisInitialized_assertThisInitialized(self);
|
|
34529
|
-
}
|
|
34530
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
34531
|
-
|
|
34532
|
-
|
|
34533
|
-
|
|
34534
|
-
function createSuper_createSuper(Derived) {
|
|
34535
|
-
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
34536
|
-
return function _createSuperInternal() {
|
|
34537
|
-
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
34538
|
-
result;
|
|
34539
|
-
|
|
34540
|
-
if (hasNativeReflectConstruct) {
|
|
34541
|
-
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
34542
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
34543
|
-
} else {
|
|
34544
|
-
result = Super.apply(this, arguments);
|
|
34545
|
-
}
|
|
34546
|
-
|
|
34547
|
-
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
34548
|
-
};
|
|
34549
|
-
}
|
|
34550
34420
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34551
34421
|
var raf = function raf(callback) {
|
|
34552
34422
|
return +setTimeout(callback, 16);
|
|
@@ -34772,47 +34642,6 @@ var cacheStyle = {};
|
|
|
34772
34642
|
}
|
|
34773
34643
|
}
|
|
34774
34644
|
});
|
|
34775
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34776
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34777
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
34778
|
-
|
|
34779
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34780
|
-
arr2[i] = arr[i];
|
|
34781
|
-
}
|
|
34782
|
-
|
|
34783
|
-
return arr2;
|
|
34784
|
-
}
|
|
34785
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34786
|
-
|
|
34787
|
-
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34788
|
-
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34789
|
-
}
|
|
34790
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34791
|
-
function iterableToArray_iterableToArray(iter) {
|
|
34792
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34793
|
-
}
|
|
34794
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34795
|
-
|
|
34796
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34797
|
-
if (!o) return;
|
|
34798
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34799
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34800
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34801
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34802
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34803
|
-
}
|
|
34804
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34805
|
-
function nonIterableSpread_nonIterableSpread() {
|
|
34806
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34807
|
-
}
|
|
34808
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34809
|
-
|
|
34810
|
-
|
|
34811
|
-
|
|
34812
|
-
|
|
34813
|
-
function toConsumableArray_toConsumableArray(arr) {
|
|
34814
|
-
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34815
|
-
}
|
|
34816
34645
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34817
34646
|
|
|
34818
34647
|
|
|
@@ -34829,7 +34658,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34829
34658
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34830
34659
|
var _this = this;
|
|
34831
34660
|
|
|
34832
|
-
|
|
34661
|
+
_classCallCheck(this, ScrollLocker);
|
|
34833
34662
|
|
|
34834
34663
|
this.lockTarget = void 0;
|
|
34835
34664
|
this.options = void 0;
|
|
@@ -34877,7 +34706,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34877
34706
|
var options = _ref3.options;
|
|
34878
34707
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34879
34708
|
})) {
|
|
34880
|
-
locks = [].concat(
|
|
34709
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34881
34710
|
target: _this.lockTarget,
|
|
34882
34711
|
options: _this.options
|
|
34883
34712
|
}]);
|
|
@@ -34915,7 +34744,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34915
34744
|
container.className = addClassName.trim();
|
|
34916
34745
|
}
|
|
34917
34746
|
|
|
34918
|
-
locks = [].concat(
|
|
34747
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34919
34748
|
target: _this.lockTarget,
|
|
34920
34749
|
options: _this.options
|
|
34921
34750
|
}]);
|
|
@@ -34999,7 +34828,7 @@ var getParent = function getParent(getContainer) {
|
|
|
34999
34828
|
return getContainer();
|
|
35000
34829
|
}
|
|
35001
34830
|
|
|
35002
|
-
if (
|
|
34831
|
+
if (typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
35003
34832
|
return getContainer;
|
|
35004
34833
|
}
|
|
35005
34834
|
}
|
|
@@ -35008,14 +34837,14 @@ var getParent = function getParent(getContainer) {
|
|
|
35008
34837
|
};
|
|
35009
34838
|
|
|
35010
34839
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
35011
|
-
|
|
34840
|
+
_inherits(PortalWrapper, _React$Component);
|
|
35012
34841
|
|
|
35013
|
-
var _super =
|
|
34842
|
+
var _super = _createSuper(PortalWrapper);
|
|
35014
34843
|
|
|
35015
34844
|
function PortalWrapper(props) {
|
|
35016
34845
|
var _this;
|
|
35017
34846
|
|
|
35018
|
-
|
|
34847
|
+
_classCallCheck(this, PortalWrapper);
|
|
35019
34848
|
|
|
35020
34849
|
_this = _super.call(this, props);
|
|
35021
34850
|
_this.container = void 0;
|
|
@@ -35135,7 +34964,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35135
34964
|
return _this;
|
|
35136
34965
|
}
|
|
35137
34966
|
|
|
35138
|
-
|
|
34967
|
+
_createClass(PortalWrapper, [{
|
|
35139
34968
|
key: "componentDidMount",
|
|
35140
34969
|
value: function componentDidMount() {
|
|
35141
34970
|
var _this2 = this;
|
|
@@ -35203,125 +35032,6 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35203
35032
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
35204
35033
|
|
|
35205
35034
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
35206
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
35207
|
-
function esm_extends_extends() {
|
|
35208
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
35209
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
35210
|
-
var source = arguments[i];
|
|
35211
|
-
|
|
35212
|
-
for (var key in source) {
|
|
35213
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
35214
|
-
target[key] = source[key];
|
|
35215
|
-
}
|
|
35216
|
-
}
|
|
35217
|
-
}
|
|
35218
|
-
|
|
35219
|
-
return target;
|
|
35220
|
-
};
|
|
35221
|
-
|
|
35222
|
-
return esm_extends_extends.apply(this, arguments);
|
|
35223
|
-
}
|
|
35224
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
35225
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
35226
|
-
if (key in obj) {
|
|
35227
|
-
Object.defineProperty(obj, key, {
|
|
35228
|
-
value: value,
|
|
35229
|
-
enumerable: true,
|
|
35230
|
-
configurable: true,
|
|
35231
|
-
writable: true
|
|
35232
|
-
});
|
|
35233
|
-
} else {
|
|
35234
|
-
obj[key] = value;
|
|
35235
|
-
}
|
|
35236
|
-
|
|
35237
|
-
return obj;
|
|
35238
|
-
}
|
|
35239
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
35240
|
-
|
|
35241
|
-
|
|
35242
|
-
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
35243
|
-
var keys = Object.keys(object);
|
|
35244
|
-
|
|
35245
|
-
if (Object.getOwnPropertySymbols) {
|
|
35246
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
35247
|
-
|
|
35248
|
-
if (enumerableOnly) {
|
|
35249
|
-
symbols = symbols.filter(function (sym) {
|
|
35250
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
35251
|
-
});
|
|
35252
|
-
}
|
|
35253
|
-
|
|
35254
|
-
keys.push.apply(keys, symbols);
|
|
35255
|
-
}
|
|
35256
|
-
|
|
35257
|
-
return keys;
|
|
35258
|
-
}
|
|
35259
|
-
|
|
35260
|
-
function objectSpread2_objectSpread2(target) {
|
|
35261
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
35262
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
35263
|
-
|
|
35264
|
-
if (i % 2) {
|
|
35265
|
-
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
35266
|
-
defineProperty_defineProperty(target, key, source[key]);
|
|
35267
|
-
});
|
|
35268
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
35269
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
35270
|
-
} else {
|
|
35271
|
-
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
35272
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
35273
|
-
});
|
|
35274
|
-
}
|
|
35275
|
-
}
|
|
35276
|
-
|
|
35277
|
-
return target;
|
|
35278
|
-
}
|
|
35279
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
35280
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
35281
|
-
if (Array.isArray(arr)) return arr;
|
|
35282
|
-
}
|
|
35283
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
35284
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
35285
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
35286
|
-
|
|
35287
|
-
if (_i == null) return;
|
|
35288
|
-
var _arr = [];
|
|
35289
|
-
var _n = true;
|
|
35290
|
-
var _d = false;
|
|
35291
|
-
|
|
35292
|
-
var _s, _e;
|
|
35293
|
-
|
|
35294
|
-
try {
|
|
35295
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
35296
|
-
_arr.push(_s.value);
|
|
35297
|
-
|
|
35298
|
-
if (i && _arr.length === i) break;
|
|
35299
|
-
}
|
|
35300
|
-
} catch (err) {
|
|
35301
|
-
_d = true;
|
|
35302
|
-
_e = err;
|
|
35303
|
-
} finally {
|
|
35304
|
-
try {
|
|
35305
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
35306
|
-
} finally {
|
|
35307
|
-
if (_d) throw _e;
|
|
35308
|
-
}
|
|
35309
|
-
}
|
|
35310
|
-
|
|
35311
|
-
return _arr;
|
|
35312
|
-
}
|
|
35313
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
35314
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
35315
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
35316
|
-
}
|
|
35317
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
35318
|
-
|
|
35319
|
-
|
|
35320
|
-
|
|
35321
|
-
|
|
35322
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
35323
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
35324
|
-
}
|
|
35325
35035
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
35326
35036
|
/**
|
|
35327
35037
|
* @ignore
|
|
@@ -36971,8 +36681,8 @@ function Mask(props) {
|
|
|
36971
36681
|
}, function (_ref) {
|
|
36972
36682
|
var motionClassName = _ref.className,
|
|
36973
36683
|
motionStyle = _ref.style;
|
|
36974
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36975
|
-
style:
|
|
36684
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36685
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), style),
|
|
36976
36686
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36977
36687
|
}, maskProps));
|
|
36978
36688
|
});
|
|
@@ -37097,7 +36807,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
37097
36807
|
}); // ============================= Style ==============================
|
|
37098
36808
|
|
|
37099
36809
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
37100
|
-
_React$useState2 =
|
|
36810
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
37101
36811
|
transformOrigin = _React$useState2[0],
|
|
37102
36812
|
setTransformOrigin = _React$useState2[1];
|
|
37103
36813
|
|
|
@@ -37155,7 +36865,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
37155
36865
|
|
|
37156
36866
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
37157
36867
|
className: "".concat(prefixCls, "-content")
|
|
37158
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36868
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37159
36869
|
className: "".concat(prefixCls, "-body"),
|
|
37160
36870
|
style: bodyStyle
|
|
37161
36871
|
}, bodyProps), children), footerNode);
|
|
@@ -37175,7 +36885,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
37175
36885
|
key: "dialog-element",
|
|
37176
36886
|
role: "document",
|
|
37177
36887
|
ref: motionRef,
|
|
37178
|
-
style:
|
|
36888
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionStyle), style), contentStyle),
|
|
37179
36889
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
37180
36890
|
onMouseDown: onMouseDown,
|
|
37181
36891
|
onMouseUp: onMouseUp
|
|
@@ -37243,7 +36953,7 @@ function Dialog(props) {
|
|
|
37243
36953
|
var contentRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
37244
36954
|
|
|
37245
36955
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(visible),
|
|
37246
|
-
_React$useState2 =
|
|
36956
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
37247
36957
|
animatedVisible = _React$useState2[0],
|
|
37248
36958
|
setAnimatedVisible = _React$useState2[1]; // ========================== Init ==========================
|
|
37249
36959
|
|
|
@@ -37357,7 +37067,7 @@ function Dialog(props) {
|
|
|
37357
37067
|
return function () {};
|
|
37358
37068
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
37359
37069
|
|
|
37360
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37070
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37361
37071
|
className: "".concat(prefixCls, "-root")
|
|
37362
37072
|
}, pickAttrs(props, {
|
|
37363
37073
|
data: true
|
|
@@ -37365,11 +37075,11 @@ function Dialog(props) {
|
|
|
37365
37075
|
prefixCls: prefixCls,
|
|
37366
37076
|
visible: mask && visible,
|
|
37367
37077
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
37368
|
-
style:
|
|
37078
|
+
style: _objectSpread2({
|
|
37369
37079
|
zIndex: zIndex
|
|
37370
37080
|
}, maskStyle),
|
|
37371
37081
|
maskProps: maskProps
|
|
37372
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37082
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37373
37083
|
tabIndex: -1,
|
|
37374
37084
|
onKeyDown: onWrapperKeyDown,
|
|
37375
37085
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -37377,12 +37087,12 @@ function Dialog(props) {
|
|
|
37377
37087
|
onClick: onWrapperClick,
|
|
37378
37088
|
role: "dialog",
|
|
37379
37089
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
37380
|
-
style:
|
|
37090
|
+
style: _objectSpread2(_objectSpread2({
|
|
37381
37091
|
zIndex: zIndex
|
|
37382
37092
|
}, wrapStyle), {}, {
|
|
37383
37093
|
display: !animatedVisible ? 'none' : null
|
|
37384
37094
|
})
|
|
37385
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
37095
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, extends_extends({}, props, {
|
|
37386
37096
|
onMouseDown: onContentMouseDown,
|
|
37387
37097
|
onMouseUp: onContentMouseUp,
|
|
37388
37098
|
ref: contentRef,
|
|
@@ -45016,44 +44726,40 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
45016
44726
|
|
|
45017
44727
|
|
|
45018
44728
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
45019
|
-
function
|
|
45020
|
-
|
|
44729
|
+
function esm_extends_extends() {
|
|
44730
|
+
esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
45021
44731
|
for (var i = 1; i < arguments.length; i++) {
|
|
45022
44732
|
var source = arguments[i];
|
|
45023
|
-
|
|
45024
44733
|
for (var key in source) {
|
|
45025
44734
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
45026
44735
|
target[key] = source[key];
|
|
45027
44736
|
}
|
|
45028
44737
|
}
|
|
45029
44738
|
}
|
|
45030
|
-
|
|
45031
44739
|
return target;
|
|
45032
44740
|
};
|
|
45033
|
-
return
|
|
44741
|
+
return esm_extends_extends.apply(this, arguments);
|
|
45034
44742
|
}
|
|
45035
44743
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
45036
|
-
function
|
|
44744
|
+
function esm_typeof_typeof(obj) {
|
|
45037
44745
|
"@babel/helpers - typeof";
|
|
45038
44746
|
|
|
45039
|
-
return
|
|
44747
|
+
return esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
45040
44748
|
return typeof obj;
|
|
45041
44749
|
} : function (obj) {
|
|
45042
44750
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
45043
|
-
},
|
|
44751
|
+
}, esm_typeof_typeof(obj);
|
|
45044
44752
|
}
|
|
45045
44753
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
45046
44754
|
|
|
45047
44755
|
function _toPrimitive(input, hint) {
|
|
45048
|
-
if (
|
|
44756
|
+
if (esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
45049
44757
|
var prim = input[Symbol.toPrimitive];
|
|
45050
|
-
|
|
45051
44758
|
if (prim !== undefined) {
|
|
45052
44759
|
var res = prim.call(input, hint || "default");
|
|
45053
|
-
if (
|
|
44760
|
+
if (esm_typeof_typeof(res) !== "object") return res;
|
|
45054
44761
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45055
44762
|
}
|
|
45056
|
-
|
|
45057
44763
|
return (hint === "string" ? String : Number)(input);
|
|
45058
44764
|
}
|
|
45059
44765
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -45061,13 +44767,12 @@ function _toPrimitive(input, hint) {
|
|
|
45061
44767
|
|
|
45062
44768
|
function _toPropertyKey(arg) {
|
|
45063
44769
|
var key = _toPrimitive(arg, "string");
|
|
45064
|
-
return
|
|
44770
|
+
return esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
45065
44771
|
}
|
|
45066
44772
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
45067
44773
|
|
|
45068
|
-
function
|
|
44774
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
45069
44775
|
key = _toPropertyKey(key);
|
|
45070
|
-
|
|
45071
44776
|
if (key in obj) {
|
|
45072
44777
|
Object.defineProperty(obj, key, {
|
|
45073
44778
|
value: value,
|
|
@@ -45078,61 +44783,51 @@ function esm_defineProperty_defineProperty(obj, key, value) {
|
|
|
45078
44783
|
} else {
|
|
45079
44784
|
obj[key] = value;
|
|
45080
44785
|
}
|
|
45081
|
-
|
|
45082
44786
|
return obj;
|
|
45083
44787
|
}
|
|
45084
44788
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
45085
44789
|
|
|
45086
|
-
|
|
45087
|
-
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44790
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
45088
44791
|
var keys = Object.keys(object);
|
|
45089
|
-
|
|
45090
44792
|
if (Object.getOwnPropertySymbols) {
|
|
45091
44793
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
45092
44794
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
45093
44795
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
45094
44796
|
})), keys.push.apply(keys, symbols);
|
|
45095
44797
|
}
|
|
45096
|
-
|
|
45097
44798
|
return keys;
|
|
45098
44799
|
}
|
|
45099
|
-
|
|
45100
|
-
function esm_objectSpread2_objectSpread2(target) {
|
|
44800
|
+
function objectSpread2_objectSpread2(target) {
|
|
45101
44801
|
for (var i = 1; i < arguments.length; i++) {
|
|
45102
44802
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
45103
|
-
i % 2 ?
|
|
45104
|
-
|
|
45105
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
44803
|
+
i % 2 ? objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
44804
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
44805
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
45106
44806
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
45107
44807
|
});
|
|
45108
44808
|
}
|
|
45109
|
-
|
|
45110
44809
|
return target;
|
|
45111
44810
|
}
|
|
45112
44811
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
45113
|
-
function
|
|
44812
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
45114
44813
|
if (Array.isArray(arr)) return arr;
|
|
45115
44814
|
}
|
|
45116
44815
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
45117
|
-
function
|
|
44816
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
45118
44817
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
45119
|
-
|
|
45120
44818
|
if (null != _i) {
|
|
45121
44819
|
var _s,
|
|
45122
|
-
|
|
45123
|
-
|
|
45124
|
-
|
|
45125
|
-
|
|
45126
|
-
|
|
45127
|
-
|
|
45128
|
-
|
|
44820
|
+
_e,
|
|
44821
|
+
_x,
|
|
44822
|
+
_r,
|
|
44823
|
+
_arr = [],
|
|
44824
|
+
_n = !0,
|
|
44825
|
+
_d = !1;
|
|
45129
44826
|
try {
|
|
45130
44827
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
45131
44828
|
if (Object(_i) !== _i) return;
|
|
45132
44829
|
_n = !1;
|
|
45133
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
45134
|
-
;
|
|
45135
|
-
}
|
|
44830
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
45136
44831
|
} catch (err) {
|
|
45137
44832
|
_d = !0, _e = err;
|
|
45138
44833
|
} finally {
|
|
@@ -45142,32 +44837,27 @@ function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
45142
44837
|
if (_d) throw _e;
|
|
45143
44838
|
}
|
|
45144
44839
|
}
|
|
45145
|
-
|
|
45146
44840
|
return _arr;
|
|
45147
44841
|
}
|
|
45148
44842
|
}
|
|
45149
44843
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
45150
|
-
function
|
|
44844
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
45151
44845
|
if (len == null || len > arr.length) len = arr.length;
|
|
45152
|
-
|
|
45153
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
45154
|
-
arr2[i] = arr[i];
|
|
45155
|
-
}
|
|
45156
|
-
|
|
44846
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
45157
44847
|
return arr2;
|
|
45158
44848
|
}
|
|
45159
44849
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
45160
44850
|
|
|
45161
|
-
function
|
|
44851
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
45162
44852
|
if (!o) return;
|
|
45163
|
-
if (typeof o === "string") return
|
|
44853
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
45164
44854
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
45165
44855
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
45166
44856
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
45167
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
44857
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
45168
44858
|
}
|
|
45169
44859
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
45170
|
-
function
|
|
44860
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
45171
44861
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
45172
44862
|
}
|
|
45173
44863
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -45175,8 +44865,8 @@ function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
|
45175
44865
|
|
|
45176
44866
|
|
|
45177
44867
|
|
|
45178
|
-
function
|
|
45179
|
-
return
|
|
44868
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
44869
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
45180
44870
|
}
|
|
45181
44871
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
45182
44872
|
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -45184,13 +44874,11 @@ function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, exclu
|
|
|
45184
44874
|
var target = {};
|
|
45185
44875
|
var sourceKeys = Object.keys(source);
|
|
45186
44876
|
var key, i;
|
|
45187
|
-
|
|
45188
44877
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
45189
44878
|
key = sourceKeys[i];
|
|
45190
44879
|
if (excluded.indexOf(key) >= 0) continue;
|
|
45191
44880
|
target[key] = source[key];
|
|
45192
44881
|
}
|
|
45193
|
-
|
|
45194
44882
|
return target;
|
|
45195
44883
|
}
|
|
45196
44884
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
@@ -45199,10 +44887,8 @@ function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
45199
44887
|
if (source == null) return {};
|
|
45200
44888
|
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
45201
44889
|
var key, i;
|
|
45202
|
-
|
|
45203
44890
|
if (Object.getOwnPropertySymbols) {
|
|
45204
44891
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
45205
|
-
|
|
45206
44892
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
45207
44893
|
key = sourceSymbolKeys[i];
|
|
45208
44894
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -45210,7 +44896,6 @@ function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
45210
44896
|
target[key] = source[key];
|
|
45211
44897
|
}
|
|
45212
44898
|
}
|
|
45213
|
-
|
|
45214
44899
|
return target;
|
|
45215
44900
|
}
|
|
45216
44901
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -46346,7 +46031,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46346
46031
|
position: 'relative',
|
|
46347
46032
|
overflow: 'hidden'
|
|
46348
46033
|
};
|
|
46349
|
-
innerStyle =
|
|
46034
|
+
innerStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
46350
46035
|
transform: "translateY(".concat(offset, "px)"),
|
|
46351
46036
|
position: 'absolute',
|
|
46352
46037
|
left: 0,
|
|
@@ -46363,24 +46048,23 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46363
46048
|
onInnerResize();
|
|
46364
46049
|
}
|
|
46365
46050
|
}
|
|
46366
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
46051
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
46367
46052
|
style: innerStyle,
|
|
46368
|
-
className: classnames_default()(
|
|
46053
|
+
className: classnames_default()(defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
46369
46054
|
ref: ref
|
|
46370
46055
|
}, innerProps), children)));
|
|
46371
46056
|
});
|
|
46372
46057
|
Filler.displayName = 'Filler';
|
|
46373
46058
|
/* harmony default export */ var es_Filler = (Filler);
|
|
46374
46059
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
46375
|
-
function
|
|
46060
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
46376
46061
|
if (!(instance instanceof Constructor)) {
|
|
46377
46062
|
throw new TypeError("Cannot call a class as a function");
|
|
46378
46063
|
}
|
|
46379
46064
|
}
|
|
46380
46065
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
46381
46066
|
|
|
46382
|
-
|
|
46383
|
-
function esm_createClass_defineProperties(target, props) {
|
|
46067
|
+
function createClass_defineProperties(target, props) {
|
|
46384
46068
|
for (var i = 0; i < props.length; i++) {
|
|
46385
46069
|
var descriptor = props[i];
|
|
46386
46070
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -46389,30 +46073,28 @@ function esm_createClass_defineProperties(target, props) {
|
|
|
46389
46073
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
46390
46074
|
}
|
|
46391
46075
|
}
|
|
46392
|
-
|
|
46393
|
-
|
|
46394
|
-
if (
|
|
46395
|
-
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
46076
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
46077
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
46078
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
46396
46079
|
Object.defineProperty(Constructor, "prototype", {
|
|
46397
46080
|
writable: false
|
|
46398
46081
|
});
|
|
46399
46082
|
return Constructor;
|
|
46400
46083
|
}
|
|
46401
46084
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
46402
|
-
function
|
|
46403
|
-
|
|
46085
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
46086
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
46404
46087
|
o.__proto__ = p;
|
|
46405
46088
|
return o;
|
|
46406
46089
|
};
|
|
46407
|
-
return
|
|
46090
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
46408
46091
|
}
|
|
46409
46092
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
46410
46093
|
|
|
46411
|
-
function
|
|
46094
|
+
function inherits_inherits(subClass, superClass) {
|
|
46412
46095
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
46413
46096
|
throw new TypeError("Super expression must either be null or a function");
|
|
46414
46097
|
}
|
|
46415
|
-
|
|
46416
46098
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
46417
46099
|
constructor: {
|
|
46418
46100
|
value: subClass,
|
|
@@ -46423,21 +46105,20 @@ function esm_inherits_inherits(subClass, superClass) {
|
|
|
46423
46105
|
Object.defineProperty(subClass, "prototype", {
|
|
46424
46106
|
writable: false
|
|
46425
46107
|
});
|
|
46426
|
-
if (superClass)
|
|
46108
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
46427
46109
|
}
|
|
46428
46110
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
46429
|
-
function
|
|
46430
|
-
|
|
46111
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
46112
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
46431
46113
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46432
46114
|
};
|
|
46433
|
-
return
|
|
46115
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
46434
46116
|
}
|
|
46435
46117
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
46436
|
-
function
|
|
46118
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
46437
46119
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
46438
46120
|
if (Reflect.construct.sham) return false;
|
|
46439
46121
|
if (typeof Proxy === "function") return true;
|
|
46440
|
-
|
|
46441
46122
|
try {
|
|
46442
46123
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
46443
46124
|
return true;
|
|
@@ -46446,43 +46127,39 @@ function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
46446
46127
|
}
|
|
46447
46128
|
}
|
|
46448
46129
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
46449
|
-
function
|
|
46130
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
46450
46131
|
if (self === void 0) {
|
|
46451
46132
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46452
46133
|
}
|
|
46453
|
-
|
|
46454
46134
|
return self;
|
|
46455
46135
|
}
|
|
46456
46136
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
46457
46137
|
|
|
46458
46138
|
|
|
46459
|
-
function
|
|
46460
|
-
if (call && (
|
|
46139
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
46140
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
46461
46141
|
return call;
|
|
46462
46142
|
} else if (call !== void 0) {
|
|
46463
46143
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
46464
46144
|
}
|
|
46465
|
-
|
|
46466
|
-
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
46145
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
46467
46146
|
}
|
|
46468
46147
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
46469
46148
|
|
|
46470
46149
|
|
|
46471
46150
|
|
|
46472
|
-
function
|
|
46473
|
-
var hasNativeReflectConstruct =
|
|
46151
|
+
function createSuper_createSuper(Derived) {
|
|
46152
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
46474
46153
|
return function _createSuperInternal() {
|
|
46475
|
-
var Super =
|
|
46476
|
-
|
|
46477
|
-
|
|
46154
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
46155
|
+
result;
|
|
46478
46156
|
if (hasNativeReflectConstruct) {
|
|
46479
|
-
var NewTarget =
|
|
46157
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
46480
46158
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
46481
46159
|
} else {
|
|
46482
46160
|
result = Super.apply(this, arguments);
|
|
46483
46161
|
}
|
|
46484
|
-
|
|
46485
|
-
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46162
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46486
46163
|
};
|
|
46487
46164
|
}
|
|
46488
46165
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -46557,11 +46234,11 @@ function getPageY(e) {
|
|
|
46557
46234
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
46558
46235
|
}
|
|
46559
46236
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
46560
|
-
|
|
46561
|
-
var _super =
|
|
46237
|
+
inherits_inherits(ScrollBar, _React$Component);
|
|
46238
|
+
var _super = createSuper_createSuper(ScrollBar);
|
|
46562
46239
|
function ScrollBar() {
|
|
46563
46240
|
var _this;
|
|
46564
|
-
|
|
46241
|
+
classCallCheck_classCallCheck(this, ScrollBar);
|
|
46565
46242
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46566
46243
|
args[_key] = arguments[_key];
|
|
46567
46244
|
}
|
|
@@ -46689,7 +46366,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46689
46366
|
};
|
|
46690
46367
|
return _this;
|
|
46691
46368
|
}
|
|
46692
|
-
|
|
46369
|
+
createClass_createClass(ScrollBar, [{
|
|
46693
46370
|
key: "componentDidMount",
|
|
46694
46371
|
value: function componentDidMount() {
|
|
46695
46372
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -46723,7 +46400,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46723
46400
|
var mergedVisible = canScroll && visible;
|
|
46724
46401
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46725
46402
|
ref: this.scrollbarRef,
|
|
46726
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46403
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46727
46404
|
style: {
|
|
46728
46405
|
width: 8,
|
|
46729
46406
|
top: 0,
|
|
@@ -46736,7 +46413,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46736
46413
|
onMouseMove: this.delayHidden
|
|
46737
46414
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46738
46415
|
ref: this.thumbRef,
|
|
46739
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46416
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46740
46417
|
style: {
|
|
46741
46418
|
width: '100%',
|
|
46742
46419
|
height: spinHeight,
|
|
@@ -46815,11 +46492,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46815
46492
|
// Firefox has low performance of map.
|
|
46816
46493
|
var CacheMap = /*#__PURE__*/function () {
|
|
46817
46494
|
function CacheMap() {
|
|
46818
|
-
|
|
46495
|
+
classCallCheck_classCallCheck(this, CacheMap);
|
|
46819
46496
|
this.maps = void 0;
|
|
46820
46497
|
this.maps = Object.create(null);
|
|
46821
46498
|
}
|
|
46822
|
-
|
|
46499
|
+
createClass_createClass(CacheMap, [{
|
|
46823
46500
|
key: "set",
|
|
46824
46501
|
value: function set(key, value) {
|
|
46825
46502
|
this.maps[key] = value;
|
|
@@ -46842,7 +46519,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46842
46519
|
|
|
46843
46520
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46844
46521
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46845
|
-
_React$useState2 =
|
|
46522
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46846
46523
|
updatedMark = _React$useState2[0],
|
|
46847
46524
|
setUpdatedMark = _React$useState2[1];
|
|
46848
46525
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46909,7 +46586,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46909
46586
|
es_raf.cancel(scrollRef.current);
|
|
46910
46587
|
if (typeof arg === 'number') {
|
|
46911
46588
|
syncScrollTop(arg);
|
|
46912
|
-
} else if (arg &&
|
|
46589
|
+
} else if (arg && esm_typeof_typeof(arg) === 'object') {
|
|
46913
46590
|
var index;
|
|
46914
46591
|
var align = arg.align;
|
|
46915
46592
|
if ('index' in arg) {
|
|
@@ -47065,11 +46742,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
47065
46742
|
|
|
47066
46743
|
function useDiffItem(data, getKey, onDiff) {
|
|
47067
46744
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
47068
|
-
_React$useState2 =
|
|
46745
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
47069
46746
|
prevData = _React$useState2[0],
|
|
47070
46747
|
setPrevData = _React$useState2[1];
|
|
47071
46748
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
47072
|
-
_React$useState4 =
|
|
46749
|
+
_React$useState4 = esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
47073
46750
|
diffItem = _React$useState4[0],
|
|
47074
46751
|
setDiffItem = _React$useState4[1];
|
|
47075
46752
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -47084,7 +46761,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
47084
46761
|
}
|
|
47085
46762
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
47086
46763
|
|
|
47087
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
46764
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
47088
46765
|
/* harmony default export */ var isFirefox = (isFF);
|
|
47089
46766
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
47090
46767
|
|
|
@@ -47308,11 +46985,11 @@ function RawList(props, ref) {
|
|
|
47308
46985
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
47309
46986
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
47310
46987
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
47311
|
-
_useState2 =
|
|
46988
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
47312
46989
|
scrollTop = _useState2[0],
|
|
47313
46990
|
setScrollTop = _useState2[1];
|
|
47314
46991
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
47315
|
-
_useState4 =
|
|
46992
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
47316
46993
|
scrollMoving = _useState4[0],
|
|
47317
46994
|
setScrollMoving = _useState4[1];
|
|
47318
46995
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -47352,12 +47029,12 @@ function RawList(props, ref) {
|
|
|
47352
47029
|
});
|
|
47353
47030
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
47354
47031
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
47355
|
-
_useDiffItem2 =
|
|
47032
|
+
_useDiffItem2 = esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
47356
47033
|
diffItem = _useDiffItem2[0];
|
|
47357
47034
|
diffItemRef.current = diffItem;
|
|
47358
47035
|
// ================================ Height ================================
|
|
47359
47036
|
var _useHeights = useHeights(getKey, null, null),
|
|
47360
|
-
_useHeights2 =
|
|
47037
|
+
_useHeights2 = esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
47361
47038
|
setInstanceRef = _useHeights2[0],
|
|
47362
47039
|
collectHeight = _useHeights2[1],
|
|
47363
47040
|
heights = _useHeights2[2],
|
|
@@ -47463,7 +47140,7 @@ function RawList(props, ref) {
|
|
|
47463
47140
|
return newTop;
|
|
47464
47141
|
});
|
|
47465
47142
|
}),
|
|
47466
|
-
_useFrameWheel2 =
|
|
47143
|
+
_useFrameWheel2 = esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
47467
47144
|
onRawWheel = _useFrameWheel2[0],
|
|
47468
47145
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
47469
47146
|
// Mobile touch move
|
|
@@ -47517,7 +47194,7 @@ function RawList(props, ref) {
|
|
|
47517
47194
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
47518
47195
|
var componentStyle = null;
|
|
47519
47196
|
if (height) {
|
|
47520
|
-
componentStyle =
|
|
47197
|
+
componentStyle = objectSpread2_objectSpread2(defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
47521
47198
|
if (useVirtual) {
|
|
47522
47199
|
componentStyle.overflowY = 'hidden';
|
|
47523
47200
|
if (scrollMoving) {
|
|
@@ -47525,8 +47202,8 @@ function RawList(props, ref) {
|
|
|
47525
47202
|
}
|
|
47526
47203
|
}
|
|
47527
47204
|
}
|
|
47528
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47529
|
-
style:
|
|
47205
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
47206
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
47530
47207
|
position: 'relative'
|
|
47531
47208
|
}),
|
|
47532
47209
|
className: mergedClassName
|
|
@@ -48502,41 +48179,6 @@ function useControlledState(defaultStateValue, option) {
|
|
|
48502
48179
|
}, [value]);
|
|
48503
48180
|
return [mergedValue, triggerChange];
|
|
48504
48181
|
}
|
|
48505
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
48506
|
-
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
48507
|
-
if (source == null) return {};
|
|
48508
|
-
var target = {};
|
|
48509
|
-
var sourceKeys = Object.keys(source);
|
|
48510
|
-
var key, i;
|
|
48511
|
-
|
|
48512
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
48513
|
-
key = sourceKeys[i];
|
|
48514
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
48515
|
-
target[key] = source[key];
|
|
48516
|
-
}
|
|
48517
|
-
|
|
48518
|
-
return target;
|
|
48519
|
-
}
|
|
48520
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
48521
|
-
|
|
48522
|
-
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
48523
|
-
if (source == null) return {};
|
|
48524
|
-
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
48525
|
-
var key, i;
|
|
48526
|
-
|
|
48527
|
-
if (Object.getOwnPropertySymbols) {
|
|
48528
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
48529
|
-
|
|
48530
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
48531
|
-
key = sourceSymbolKeys[i];
|
|
48532
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
48533
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
48534
|
-
target[key] = source[key];
|
|
48535
|
-
}
|
|
48536
|
-
}
|
|
48537
|
-
|
|
48538
|
-
return target;
|
|
48539
|
-
}
|
|
48540
48182
|
;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/Item.js
|
|
48541
48183
|
|
|
48542
48184
|
|
|
@@ -48562,7 +48204,7 @@ function InternalItem(props, ref) {
|
|
|
48562
48204
|
order = props.order,
|
|
48563
48205
|
_props$component = props.component,
|
|
48564
48206
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48565
|
-
restProps =
|
|
48207
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48566
48208
|
|
|
48567
48209
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48568
48210
|
|
|
@@ -48596,9 +48238,9 @@ function InternalItem(props, ref) {
|
|
|
48596
48238
|
overflowProps['aria-hidden'] = true;
|
|
48597
48239
|
}
|
|
48598
48240
|
|
|
48599
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48241
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48600
48242
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48601
|
-
style:
|
|
48243
|
+
style: _objectSpread2(_objectSpread2({}, overflowStyle), style)
|
|
48602
48244
|
}, overflowProps, restProps, {
|
|
48603
48245
|
ref: ref
|
|
48604
48246
|
}), childNode);
|
|
@@ -48629,7 +48271,7 @@ Item_Item.displayName = 'Item';
|
|
|
48629
48271
|
|
|
48630
48272
|
function useBatchFrameState() {
|
|
48631
48273
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
48632
|
-
_useState2 =
|
|
48274
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
48633
48275
|
forceUpdate = _useState2[1];
|
|
48634
48276
|
|
|
48635
48277
|
var statesRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)([]);
|
|
@@ -48683,23 +48325,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48683
48325
|
if (!context) {
|
|
48684
48326
|
var _props$component = props.component,
|
|
48685
48327
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48686
|
-
_restProps =
|
|
48328
|
+
_restProps = _objectWithoutProperties(props, ["component"]);
|
|
48687
48329
|
|
|
48688
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48330
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, _restProps, {
|
|
48689
48331
|
ref: ref
|
|
48690
48332
|
}));
|
|
48691
48333
|
}
|
|
48692
48334
|
|
|
48693
48335
|
var contextClassName = context.className,
|
|
48694
|
-
restContext =
|
|
48336
|
+
restContext = _objectWithoutProperties(context, ["className"]);
|
|
48695
48337
|
|
|
48696
48338
|
var className = props.className,
|
|
48697
|
-
restProps =
|
|
48339
|
+
restProps = _objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48698
48340
|
|
|
48699
48341
|
|
|
48700
48342
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48701
48343
|
value: null
|
|
48702
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48344
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({
|
|
48703
48345
|
ref: ref,
|
|
48704
48346
|
className: classnames_default()(contextClassName, className)
|
|
48705
48347
|
}, restContext, restProps)));
|
|
@@ -48749,45 +48391,45 @@ function Overflow(props, ref) {
|
|
|
48749
48391
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48750
48392
|
itemComponent = props.itemComponent,
|
|
48751
48393
|
onVisibleChange = props.onVisibleChange,
|
|
48752
|
-
restProps =
|
|
48394
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48753
48395
|
|
|
48754
48396
|
var createUseState = useBatchFrameState();
|
|
48755
48397
|
var fullySSR = ssr === 'full';
|
|
48756
48398
|
|
|
48757
48399
|
var _createUseState = createUseState(null),
|
|
48758
|
-
_createUseState2 =
|
|
48400
|
+
_createUseState2 = slicedToArray_slicedToArray(_createUseState, 2),
|
|
48759
48401
|
containerWidth = _createUseState2[0],
|
|
48760
48402
|
setContainerWidth = _createUseState2[1];
|
|
48761
48403
|
|
|
48762
48404
|
var mergedContainerWidth = containerWidth || 0;
|
|
48763
48405
|
|
|
48764
48406
|
var _createUseState3 = createUseState(new Map()),
|
|
48765
|
-
_createUseState4 =
|
|
48407
|
+
_createUseState4 = slicedToArray_slicedToArray(_createUseState3, 2),
|
|
48766
48408
|
itemWidths = _createUseState4[0],
|
|
48767
48409
|
setItemWidths = _createUseState4[1];
|
|
48768
48410
|
|
|
48769
48411
|
var _createUseState5 = createUseState(0),
|
|
48770
|
-
_createUseState6 =
|
|
48412
|
+
_createUseState6 = slicedToArray_slicedToArray(_createUseState5, 2),
|
|
48771
48413
|
prevRestWidth = _createUseState6[0],
|
|
48772
48414
|
setPrevRestWidth = _createUseState6[1];
|
|
48773
48415
|
|
|
48774
48416
|
var _createUseState7 = createUseState(0),
|
|
48775
|
-
_createUseState8 =
|
|
48417
|
+
_createUseState8 = slicedToArray_slicedToArray(_createUseState7, 2),
|
|
48776
48418
|
restWidth = _createUseState8[0],
|
|
48777
48419
|
setRestWidth = _createUseState8[1];
|
|
48778
48420
|
|
|
48779
48421
|
var _createUseState9 = createUseState(0),
|
|
48780
|
-
_createUseState10 =
|
|
48422
|
+
_createUseState10 = slicedToArray_slicedToArray(_createUseState9, 2),
|
|
48781
48423
|
suffixWidth = _createUseState10[0],
|
|
48782
48424
|
setSuffixWidth = _createUseState10[1];
|
|
48783
48425
|
|
|
48784
48426
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48785
|
-
_useState2 =
|
|
48427
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
48786
48428
|
suffixFixedStart = _useState2[0],
|
|
48787
48429
|
setSuffixFixedStart = _useState2[1];
|
|
48788
48430
|
|
|
48789
48431
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48790
|
-
_useState4 =
|
|
48432
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
48791
48433
|
displayCount = _useState4[0],
|
|
48792
48434
|
setDisplayCount = _useState4[1];
|
|
48793
48435
|
|
|
@@ -48800,7 +48442,7 @@ function Overflow(props, ref) {
|
|
|
48800
48442
|
}, [displayCount, containerWidth]);
|
|
48801
48443
|
|
|
48802
48444
|
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
48803
|
-
_useState6 =
|
|
48445
|
+
_useState6 = slicedToArray_slicedToArray(_useState5, 2),
|
|
48804
48446
|
restReady = _useState6[0],
|
|
48805
48447
|
setRestReady = _useState6[1];
|
|
48806
48448
|
|
|
@@ -48959,7 +48601,7 @@ function Overflow(props, ref) {
|
|
|
48959
48601
|
var key = getKey(item, index);
|
|
48960
48602
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48961
48603
|
key: key,
|
|
48962
|
-
value:
|
|
48604
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
|
|
48963
48605
|
order: index,
|
|
48964
48606
|
item: item,
|
|
48965
48607
|
itemKey: key,
|
|
@@ -48969,7 +48611,7 @@ function Overflow(props, ref) {
|
|
|
48969
48611
|
}, renderRawItem(item, index));
|
|
48970
48612
|
} : function (item, index) {
|
|
48971
48613
|
var key = getKey(item, index);
|
|
48972
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48614
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48973
48615
|
order: index,
|
|
48974
48616
|
key: key,
|
|
48975
48617
|
item: item,
|
|
@@ -48990,18 +48632,18 @@ function Overflow(props, ref) {
|
|
|
48990
48632
|
|
|
48991
48633
|
if (!renderRawRest) {
|
|
48992
48634
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48993
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48635
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48994
48636
|
} else if (renderRawRest) {
|
|
48995
48637
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48996
|
-
value:
|
|
48638
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48997
48639
|
}, renderRawRest(omittedItems));
|
|
48998
48640
|
}
|
|
48999
48641
|
|
|
49000
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48642
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
49001
48643
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
49002
48644
|
style: style,
|
|
49003
48645
|
ref: ref
|
|
49004
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48646
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
49005
48647
|
order: mergedDisplayCount,
|
|
49006
48648
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
49007
48649
|
registerSize: registerSuffixSize,
|
|
@@ -49066,7 +48708,7 @@ var Input = function Input(_ref, ref) {
|
|
|
49066
48708
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
49067
48709
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
49068
48710
|
style = _inputNode$props.style;
|
|
49069
|
-
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode,
|
|
48711
|
+
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode, _objectSpread2(_objectSpread2({
|
|
49070
48712
|
id: id,
|
|
49071
48713
|
ref: composeRef(ref, originRef),
|
|
49072
48714
|
disabled: disabled,
|
|
@@ -49075,7 +48717,7 @@ var Input = function Input(_ref, ref) {
|
|
|
49075
48717
|
type: 'search',
|
|
49076
48718
|
autoFocus: autoFocus,
|
|
49077
48719
|
className: classnames_default()("".concat(prefixCls, "-selection-search-input"), (_inputNode2 = inputNode) === null || _inputNode2 === void 0 ? void 0 : (_inputNode2$props = _inputNode2.props) === null || _inputNode2$props === void 0 ? void 0 : _inputNode2$props.className),
|
|
49078
|
-
style:
|
|
48720
|
+
style: _objectSpread2(_objectSpread2({}, style), {}, {
|
|
49079
48721
|
opacity: editable ? null : 0
|
|
49080
48722
|
}),
|
|
49081
48723
|
role: 'combobox',
|
|
@@ -49683,7 +49325,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
49683
49325
|
|
|
49684
49326
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
49685
49327
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
49686
|
-
return
|
|
49328
|
+
return _objectSpread2(_objectSpread2({}, baseAlign), align);
|
|
49687
49329
|
}
|
|
49688
49330
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
49689
49331
|
var points = align.points;
|
|
@@ -49747,7 +49389,7 @@ function Mask_Mask(props) {
|
|
|
49747
49389
|
var motion = {};
|
|
49748
49390
|
|
|
49749
49391
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49750
|
-
motion =
|
|
49392
|
+
motion = _objectSpread2({
|
|
49751
49393
|
motionAppear: true
|
|
49752
49394
|
}, getMotion({
|
|
49753
49395
|
motion: maskMotion,
|
|
@@ -49757,7 +49399,7 @@ function Mask_Mask(props) {
|
|
|
49757
49399
|
}));
|
|
49758
49400
|
}
|
|
49759
49401
|
|
|
49760
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49402
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({}, motion, {
|
|
49761
49403
|
visible: visible,
|
|
49762
49404
|
removeOnLeave: true
|
|
49763
49405
|
}), function (_ref) {
|
|
@@ -51174,7 +50816,7 @@ function monitorResize(element, callback) {
|
|
|
51174
50816
|
var prevHeight = null;
|
|
51175
50817
|
|
|
51176
50818
|
function onResize(_ref) {
|
|
51177
|
-
var _ref2 =
|
|
50819
|
+
var _ref2 = slicedToArray_slicedToArray(_ref, 1),
|
|
51178
50820
|
target = _ref2[0].target;
|
|
51179
50821
|
|
|
51180
50822
|
if (!document.documentElement.contains(target)) return;
|
|
@@ -51269,7 +50911,7 @@ function getElement(func) {
|
|
|
51269
50911
|
}
|
|
51270
50912
|
|
|
51271
50913
|
function getPoint(point) {
|
|
51272
|
-
if (
|
|
50914
|
+
if (typeof_typeof(point) !== 'object' || !point) return null;
|
|
51273
50915
|
return point;
|
|
51274
50916
|
}
|
|
51275
50917
|
|
|
@@ -51333,7 +50975,7 @@ var Align = function Align(_ref, ref) {
|
|
|
51333
50975
|
|
|
51334
50976
|
return false;
|
|
51335
50977
|
}, monitorBufferTime),
|
|
51336
|
-
_useBuffer2 =
|
|
50978
|
+
_useBuffer2 = slicedToArray_slicedToArray(_useBuffer, 2),
|
|
51337
50979
|
_forceAlign = _useBuffer2[0],
|
|
51338
50980
|
cancelForceAlign = _useBuffer2[1]; // ===================== Effect =====================
|
|
51339
50981
|
// Listen for target updated
|
|
@@ -51421,45 +51063,6 @@ RcAlign.displayName = 'Align';
|
|
|
51421
51063
|
// export this package's api
|
|
51422
51064
|
|
|
51423
51065
|
/* harmony default export */ var rc_align_es = (es_Align);
|
|
51424
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
51425
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
51426
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
51427
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
51428
|
-
function esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
51429
|
-
try {
|
|
51430
|
-
var info = gen[key](arg);
|
|
51431
|
-
var value = info.value;
|
|
51432
|
-
} catch (error) {
|
|
51433
|
-
reject(error);
|
|
51434
|
-
return;
|
|
51435
|
-
}
|
|
51436
|
-
|
|
51437
|
-
if (info.done) {
|
|
51438
|
-
resolve(value);
|
|
51439
|
-
} else {
|
|
51440
|
-
Promise.resolve(value).then(_next, _throw);
|
|
51441
|
-
}
|
|
51442
|
-
}
|
|
51443
|
-
|
|
51444
|
-
function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
51445
|
-
return function () {
|
|
51446
|
-
var self = this,
|
|
51447
|
-
args = arguments;
|
|
51448
|
-
return new Promise(function (resolve, reject) {
|
|
51449
|
-
var gen = fn.apply(self, args);
|
|
51450
|
-
|
|
51451
|
-
function _next(value) {
|
|
51452
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
51453
|
-
}
|
|
51454
|
-
|
|
51455
|
-
function _throw(err) {
|
|
51456
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
51457
|
-
}
|
|
51458
|
-
|
|
51459
|
-
_next(undefined);
|
|
51460
|
-
});
|
|
51461
|
-
};
|
|
51462
|
-
}
|
|
51463
51066
|
;// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/useVisibleStatus.js
|
|
51464
51067
|
|
|
51465
51068
|
|
|
@@ -51469,7 +51072,7 @@ function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
|
51469
51072
|
var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
51470
51073
|
/* harmony default export */ var useVisibleStatus = (function (visible, doMeasure) {
|
|
51471
51074
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
51472
|
-
_useState2 =
|
|
51075
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
51473
51076
|
status = _useState2[0],
|
|
51474
51077
|
setInternalStatus = _useState2[1];
|
|
51475
51078
|
|
|
@@ -51522,9 +51125,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51522
51125
|
}
|
|
51523
51126
|
|
|
51524
51127
|
if (status) {
|
|
51525
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/
|
|
51128
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
51526
51129
|
var index, nextStatus;
|
|
51527
|
-
return
|
|
51130
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
51528
51131
|
while (1) {
|
|
51529
51132
|
switch (_context.prev = _context.next) {
|
|
51530
51133
|
case 0:
|
|
@@ -51560,7 +51163,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51560
51163
|
width: 0,
|
|
51561
51164
|
height: 0
|
|
51562
51165
|
}),
|
|
51563
|
-
_React$useState2 =
|
|
51166
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
51564
51167
|
targetSize = _React$useState2[0],
|
|
51565
51168
|
setTargetSize = _React$useState2[1];
|
|
51566
51169
|
|
|
@@ -51631,13 +51234,13 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51631
51234
|
var elementRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
51632
51235
|
|
|
51633
51236
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
51634
|
-
_useState2 =
|
|
51237
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
51635
51238
|
alignedClassName = _useState2[0],
|
|
51636
51239
|
setAlignedClassName = _useState2[1]; // ======================= Measure ========================
|
|
51637
51240
|
|
|
51638
51241
|
|
|
51639
51242
|
var _useStretchStyle = useStretchStyle(stretch),
|
|
51640
|
-
_useStretchStyle2 =
|
|
51243
|
+
_useStretchStyle2 = slicedToArray_slicedToArray(_useStretchStyle, 2),
|
|
51641
51244
|
stretchStyle = _useStretchStyle2[0],
|
|
51642
51245
|
measureStretchStyle = _useStretchStyle2[1];
|
|
51643
51246
|
|
|
@@ -51649,7 +51252,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51649
51252
|
|
|
51650
51253
|
|
|
51651
51254
|
var _useVisibleStatus = useVisibleStatus(visible, doMeasure),
|
|
51652
|
-
_useVisibleStatus2 =
|
|
51255
|
+
_useVisibleStatus2 = slicedToArray_slicedToArray(_useVisibleStatus, 2),
|
|
51653
51256
|
status = _useVisibleStatus2[0],
|
|
51654
51257
|
goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
|
|
51655
51258
|
|
|
@@ -51697,7 +51300,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51697
51300
|
} // ======================== Motion ========================
|
|
51698
51301
|
|
|
51699
51302
|
|
|
51700
|
-
var motion =
|
|
51303
|
+
var motion = _objectSpread2({}, getMotion(props));
|
|
51701
51304
|
|
|
51702
51305
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
51703
51306
|
var originHandler = motion[eventName];
|
|
@@ -51730,7 +51333,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51730
51333
|
};
|
|
51731
51334
|
}); // ======================== Render ========================
|
|
51732
51335
|
|
|
51733
|
-
var mergedStyle =
|
|
51336
|
+
var mergedStyle = _objectSpread2(_objectSpread2({}, stretchStyle), {}, {
|
|
51734
51337
|
zIndex: zIndex,
|
|
51735
51338
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
51736
51339
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -51751,7 +51354,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51751
51354
|
}, children);
|
|
51752
51355
|
}
|
|
51753
51356
|
|
|
51754
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51357
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51755
51358
|
visible: visible,
|
|
51756
51359
|
ref: elementRef,
|
|
51757
51360
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51779,7 +51382,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51779
51382
|
onMouseLeave: onMouseLeave,
|
|
51780
51383
|
onMouseDownCapture: onMouseDown,
|
|
51781
51384
|
onTouchStartCapture: onTouchStart,
|
|
51782
|
-
style:
|
|
51385
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51783
51386
|
}, childNode));
|
|
51784
51387
|
});
|
|
51785
51388
|
});
|
|
@@ -51814,7 +51417,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51814
51417
|
};
|
|
51815
51418
|
}); // ======================== Render ========================
|
|
51816
51419
|
|
|
51817
|
-
var mergedStyle =
|
|
51420
|
+
var mergedStyle = _objectSpread2({
|
|
51818
51421
|
zIndex: zIndex
|
|
51819
51422
|
}, popupStyle);
|
|
51820
51423
|
|
|
@@ -51831,7 +51434,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51831
51434
|
childNode = popupRender(childNode);
|
|
51832
51435
|
}
|
|
51833
51436
|
|
|
51834
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51437
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51835
51438
|
visible: visible,
|
|
51836
51439
|
ref: elementRef,
|
|
51837
51440
|
removeOnLeave: true
|
|
@@ -51842,7 +51445,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51842
51445
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51843
51446
|
ref: motionRef,
|
|
51844
51447
|
className: mergedClassName,
|
|
51845
|
-
style:
|
|
51448
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51846
51449
|
}, childNode);
|
|
51847
51450
|
});
|
|
51848
51451
|
});
|
|
@@ -51863,19 +51466,19 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51863
51466
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51864
51467
|
var visible = _ref.visible,
|
|
51865
51468
|
mobile = _ref.mobile,
|
|
51866
|
-
props =
|
|
51469
|
+
props = _objectWithoutProperties(_ref, Popup_excluded);
|
|
51867
51470
|
|
|
51868
51471
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51869
|
-
_useState2 =
|
|
51472
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
51870
51473
|
innerVisible = _useState2[0],
|
|
51871
51474
|
serInnerVisible = _useState2[1];
|
|
51872
51475
|
|
|
51873
51476
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
51874
|
-
_useState4 =
|
|
51477
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
51875
51478
|
inMobile = _useState4[0],
|
|
51876
51479
|
setInMobile = _useState4[1];
|
|
51877
51480
|
|
|
51878
|
-
var cloneProps =
|
|
51481
|
+
var cloneProps = _objectSpread2(_objectSpread2({}, props), {}, {
|
|
51879
51482
|
visible: innerVisible
|
|
51880
51483
|
}); // We check mobile in visible changed here.
|
|
51881
51484
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51888,10 +51491,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51888
51491
|
setInMobile(isMobile());
|
|
51889
51492
|
}
|
|
51890
51493
|
}, [visible, mobile]);
|
|
51891
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51494
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, extends_extends({}, cloneProps, {
|
|
51892
51495
|
mobile: mobile,
|
|
51893
51496
|
ref: ref
|
|
51894
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51497
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, extends_extends({}, cloneProps, {
|
|
51895
51498
|
ref: ref
|
|
51896
51499
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51897
51500
|
|
|
@@ -51945,14 +51548,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51945
51548
|
|
|
51946
51549
|
function generateTrigger(PortalComponent) {
|
|
51947
51550
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51948
|
-
|
|
51551
|
+
_inherits(Trigger, _React$Component);
|
|
51949
51552
|
|
|
51950
|
-
var _super =
|
|
51553
|
+
var _super = _createSuper(Trigger);
|
|
51951
51554
|
|
|
51952
51555
|
function Trigger(props) {
|
|
51953
51556
|
var _this;
|
|
51954
51557
|
|
|
51955
|
-
|
|
51558
|
+
_classCallCheck(this, Trigger);
|
|
51956
51559
|
|
|
51957
51560
|
_this = _super.call(this, props);
|
|
51958
51561
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -52140,7 +51743,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52140
51743
|
} catch (err) {// Do nothing
|
|
52141
51744
|
}
|
|
52142
51745
|
|
|
52143
|
-
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(
|
|
51746
|
+
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(_assertThisInitialized(_this));
|
|
52144
51747
|
};
|
|
52145
51748
|
|
|
52146
51749
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -52201,7 +51804,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52201
51804
|
|
|
52202
51805
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
52203
51806
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
52204
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup,
|
|
51807
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup, extends_extends({
|
|
52205
51808
|
prefixCls: prefixCls,
|
|
52206
51809
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
52207
51810
|
visible: popupVisible,
|
|
@@ -52314,7 +51917,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52314
51917
|
return _this;
|
|
52315
51918
|
}
|
|
52316
51919
|
|
|
52317
|
-
|
|
51920
|
+
_createClass(Trigger, [{
|
|
52318
51921
|
key: "componentDidMount",
|
|
52319
51922
|
value: function componentDidMount() {
|
|
52320
51923
|
this.componentDidUpdate();
|
|
@@ -52639,7 +52242,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52639
52242
|
newChildProps.className = childrenClassName;
|
|
52640
52243
|
}
|
|
52641
52244
|
|
|
52642
|
-
var cloneProps =
|
|
52245
|
+
var cloneProps = _objectSpread2({}, newChildProps);
|
|
52643
52246
|
|
|
52644
52247
|
if (supportRef(child)) {
|
|
52645
52248
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -56580,7 +56183,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56580
56183
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56581
56184
|
|
|
56582
56185
|
function mergeProps(origin, target) {
|
|
56583
|
-
var clone =
|
|
56186
|
+
var clone = _objectSpread2({}, origin);
|
|
56584
56187
|
|
|
56585
56188
|
Object.keys(target).forEach(function (key) {
|
|
56586
56189
|
var value = target[key];
|
|
@@ -56595,7 +56198,7 @@ function mergeProps(origin, target) {
|
|
|
56595
56198
|
function InheritableContextProvider(_ref) {
|
|
56596
56199
|
var children = _ref.children,
|
|
56597
56200
|
locked = _ref.locked,
|
|
56598
|
-
restProps =
|
|
56201
|
+
restProps = _objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56599
56202
|
|
|
56600
56203
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56601
56204
|
var inheritableContext = useMemo(function () {
|
|
@@ -56651,7 +56254,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56651
56254
|
|
|
56652
56255
|
function warnItemProp(_ref) {
|
|
56653
56256
|
var item = _ref.item,
|
|
56654
|
-
restInfo =
|
|
56257
|
+
restInfo = _objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56655
56258
|
|
|
56656
56259
|
Object.defineProperty(restInfo, 'item', {
|
|
56657
56260
|
get: function get() {
|
|
@@ -56671,7 +56274,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56671
56274
|
var iconNode;
|
|
56672
56275
|
|
|
56673
56276
|
if (typeof icon === 'function') {
|
|
56674
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
56277
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, _objectSpread2({}, props));
|
|
56675
56278
|
} else {
|
|
56676
56279
|
// Compatible for origin definition
|
|
56677
56280
|
iconNode = icon;
|
|
@@ -56712,7 +56315,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56712
56315
|
function useFullPath(eventKey) {
|
|
56713
56316
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56714
56317
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56715
|
-
return eventKey !== undefined ? [].concat(
|
|
56318
|
+
return eventKey !== undefined ? [].concat(_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56716
56319
|
}, [parentKeyPath, eventKey]);
|
|
56717
56320
|
}
|
|
56718
56321
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56974,7 +56577,7 @@ function parseChildren(children, keyPath) {
|
|
|
56974
56577
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56975
56578
|
|
|
56976
56579
|
if (emptyKey) {
|
|
56977
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56580
|
+
eventKey = "tmp_key-".concat([].concat(_toConsumableArray(keyPath), [index]).join('-'));
|
|
56978
56581
|
}
|
|
56979
56582
|
|
|
56980
56583
|
var cloneProps = {
|
|
@@ -57022,14 +56625,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
57022
56625
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
57023
56626
|
var className = _ref.className,
|
|
57024
56627
|
children = _ref.children,
|
|
57025
|
-
restProps =
|
|
56628
|
+
restProps = _objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
57026
56629
|
|
|
57027
56630
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
57028
56631
|
prefixCls = _React$useContext.prefixCls,
|
|
57029
56632
|
mode = _React$useContext.mode,
|
|
57030
56633
|
rtl = _React$useContext.rtl;
|
|
57031
56634
|
|
|
57032
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
56635
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", extends_extends({
|
|
57033
56636
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
57034
56637
|
}, restProps, {
|
|
57035
56638
|
"data-menu-list": true,
|
|
@@ -57142,15 +56745,15 @@ function PopupTrigger(_ref) {
|
|
|
57142
56745
|
defaultMotions = _React$useContext.defaultMotions;
|
|
57143
56746
|
|
|
57144
56747
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
57145
|
-
_React$useState2 =
|
|
56748
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57146
56749
|
innerVisible = _React$useState2[0],
|
|
57147
56750
|
setInnerVisible = _React$useState2[1];
|
|
57148
56751
|
|
|
57149
|
-
var placement = rtl ?
|
|
56752
|
+
var placement = rtl ? _objectSpread2(_objectSpread2({}, placementsRtl), builtinPlacements) : _objectSpread2(_objectSpread2({}, placements), builtinPlacements);
|
|
57150
56753
|
var popupPlacement = popupPlacementMap[mode];
|
|
57151
56754
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
57152
56755
|
|
|
57153
|
-
var mergedMotion =
|
|
56756
|
+
var mergedMotion = _objectSpread2(_objectSpread2({}, targetMotion), {}, {
|
|
57154
56757
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
57155
56758
|
removeOnLeave: false,
|
|
57156
56759
|
motionAppear: true
|
|
@@ -57168,7 +56771,7 @@ function PopupTrigger(_ref) {
|
|
|
57168
56771
|
}, [visible]);
|
|
57169
56772
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
57170
56773
|
prefixCls: prefixCls,
|
|
57171
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
56774
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), _defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
57172
56775
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
57173
56776
|
getPopupContainer: getPopupContainer,
|
|
57174
56777
|
builtinPlacements: placement,
|
|
@@ -57215,7 +56818,7 @@ function InlineSubMenuList(_ref) {
|
|
|
57215
56818
|
// The inline list should remove when motion end.
|
|
57216
56819
|
|
|
57217
56820
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(!sameModeRef.current),
|
|
57218
|
-
_React$useState2 =
|
|
56821
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57219
56822
|
destroy = _React$useState2[0],
|
|
57220
56823
|
setDestroy = _React$useState2[1];
|
|
57221
56824
|
|
|
@@ -57228,7 +56831,7 @@ function InlineSubMenuList(_ref) {
|
|
|
57228
56831
|
}
|
|
57229
56832
|
}, [mode]); // ================================= Render =================================
|
|
57230
56833
|
|
|
57231
|
-
var mergedMotion =
|
|
56834
|
+
var mergedMotion = _objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
57232
56835
|
|
|
57233
56836
|
|
|
57234
56837
|
if (keyPath.length > 1) {
|
|
@@ -57253,7 +56856,7 @@ function InlineSubMenuList(_ref) {
|
|
|
57253
56856
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
57254
56857
|
mode: fixedMode,
|
|
57255
56858
|
locked: !sameModeRef.current
|
|
57256
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
56859
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
57257
56860
|
visible: mergedOpen
|
|
57258
56861
|
}, mergedMotion, {
|
|
57259
56862
|
forceRender: forceSubMenuRender,
|
|
@@ -57316,7 +56919,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57316
56919
|
onTitleClick = props.onTitleClick,
|
|
57317
56920
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
57318
56921
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
57319
|
-
restProps =
|
|
56922
|
+
restProps = _objectWithoutProperties(props, SubMenu_excluded);
|
|
57320
56923
|
|
|
57321
56924
|
var domDataId = useMenuId(eventKey);
|
|
57322
56925
|
|
|
@@ -57359,11 +56962,11 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57359
56962
|
|
|
57360
56963
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
57361
56964
|
active = _useActive.active,
|
|
57362
|
-
activeProps =
|
|
56965
|
+
activeProps = _objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
57363
56966
|
|
|
57364
56967
|
|
|
57365
56968
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
57366
|
-
_React$useState2 =
|
|
56969
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57367
56970
|
childrenActive = _React$useState2[0],
|
|
57368
56971
|
setChildrenActive = _React$useState2[1];
|
|
57369
56972
|
|
|
@@ -57444,7 +57047,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57444
57047
|
|
|
57445
57048
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
57446
57049
|
|
|
57447
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
57050
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
57448
57051
|
role: "menuitem",
|
|
57449
57052
|
style: directionStyle,
|
|
57450
57053
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -57460,7 +57063,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57460
57063
|
onFocus: onInternalFocus
|
|
57461
57064
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
57462
57065
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
57463
|
-
props:
|
|
57066
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
57464
57067
|
isOpen: open,
|
|
57465
57068
|
// [Legacy] Not sure why need this mark
|
|
57466
57069
|
isSubMenu: true
|
|
@@ -57498,12 +57101,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57498
57101
|
} // >>>>> List node
|
|
57499
57102
|
|
|
57500
57103
|
|
|
57501
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
57104
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({
|
|
57502
57105
|
role: "none"
|
|
57503
57106
|
}, restProps, {
|
|
57504
57107
|
component: "li",
|
|
57505
57108
|
style: style,
|
|
57506
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
57109
|
+
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {}, _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-open"), open), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-active"), mergedActive), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-selected"), childrenSelected), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-disabled"), mergedDisabled), _classNames)),
|
|
57507
57110
|
onMouseEnter: onInternalMouseEnter,
|
|
57508
57111
|
onMouseLeave: onInternalMouseLeave
|
|
57509
57112
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -57596,7 +57199,7 @@ function focusable(node) {
|
|
|
57596
57199
|
function getFocusNodeList(node) {
|
|
57597
57200
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
57598
57201
|
|
|
57599
|
-
var res =
|
|
57202
|
+
var res = _toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
57600
57203
|
return focusable(child, includePositive);
|
|
57601
57204
|
});
|
|
57602
57205
|
|
|
@@ -57676,9 +57279,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
57676
57279
|
};
|
|
57677
57280
|
}
|
|
57678
57281
|
|
|
57679
|
-
var inline = (_inline = {},
|
|
57680
|
-
var horizontal = (_horizontal = {},
|
|
57681
|
-
var vertical = (_vertical = {},
|
|
57282
|
+
var inline = (_inline = {}, _defineProperty(_inline, UP, prev), _defineProperty(_inline, DOWN, next), _inline);
|
|
57283
|
+
var horizontal = (_horizontal = {}, _defineProperty(_horizontal, useAccessibility_LEFT, isRtl ? next : prev), _defineProperty(_horizontal, RIGHT, isRtl ? prev : next), _defineProperty(_horizontal, DOWN, children), _defineProperty(_horizontal, ENTER, children), _horizontal);
|
|
57284
|
+
var vertical = (_vertical = {}, _defineProperty(_vertical, UP, prev), _defineProperty(_vertical, DOWN, next), _defineProperty(_vertical, ENTER, children), _defineProperty(_vertical, ESC, parent), _defineProperty(_vertical, useAccessibility_LEFT, isRtl ? children : parent), _defineProperty(_vertical, RIGHT, isRtl ? parent : children), _vertical);
|
|
57682
57285
|
var offsets = {
|
|
57683
57286
|
inline: inline,
|
|
57684
57287
|
horizontal: horizontal,
|
|
@@ -57944,7 +57547,7 @@ function useUUID(id) {
|
|
|
57944
57547
|
var _useMergedState = useControlledState(id, {
|
|
57945
57548
|
value: id
|
|
57946
57549
|
}),
|
|
57947
|
-
_useMergedState2 =
|
|
57550
|
+
_useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
|
|
57948
57551
|
uuid = _useMergedState2[0],
|
|
57949
57552
|
setUUID = _useMergedState2[1];
|
|
57950
57553
|
|
|
@@ -57980,14 +57583,14 @@ var getPathKeys = function getPathKeys(keyPathStr) {
|
|
|
57980
57583
|
var OVERFLOW_KEY = 'rc-menu-more';
|
|
57981
57584
|
function useKeyRecords() {
|
|
57982
57585
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState({}),
|
|
57983
|
-
_React$useState2 =
|
|
57586
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57984
57587
|
internalForceUpdate = _React$useState2[1];
|
|
57985
57588
|
|
|
57986
57589
|
var key2pathRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57987
57590
|
var path2keyRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57988
57591
|
|
|
57989
57592
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
57990
|
-
_React$useState4 =
|
|
57593
|
+
_React$useState4 = slicedToArray_slicedToArray(_React$useState3, 2),
|
|
57991
57594
|
overflowKeys = _React$useState4[0],
|
|
57992
57595
|
setOverflowKeys = _React$useState4[1];
|
|
57993
57596
|
|
|
@@ -58042,7 +57645,7 @@ function useKeyRecords() {
|
|
|
58042
57645
|
}, [getKeyPath]);
|
|
58043
57646
|
|
|
58044
57647
|
var getKeys = function getKeys() {
|
|
58045
|
-
var keys =
|
|
57648
|
+
var keys = _toConsumableArray(key2pathRef.current.keys());
|
|
58046
57649
|
|
|
58047
57650
|
if (overflowKeys.length) {
|
|
58048
57651
|
keys.push(OVERFLOW_KEY);
|
|
@@ -58059,7 +57662,7 @@ function useKeyRecords() {
|
|
|
58059
57662
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
58060
57663
|
var pathKeys = new Set();
|
|
58061
57664
|
|
|
58062
|
-
|
|
57665
|
+
_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
58063
57666
|
if (pathKey.startsWith(connectedPath)) {
|
|
58064
57667
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
58065
57668
|
}
|
|
@@ -58669,10 +58272,10 @@ function Dropdown(props, ref) {
|
|
|
58669
58272
|
visible = props.visible,
|
|
58670
58273
|
_props$trigger = props.trigger,
|
|
58671
58274
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58672
|
-
otherProps =
|
|
58275
|
+
otherProps = _objectWithoutProperties(props, Dropdown_excluded);
|
|
58673
58276
|
|
|
58674
58277
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58675
|
-
_React$useState2 =
|
|
58278
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
58676
58279
|
triggerVisible = _React$useState2[0],
|
|
58677
58280
|
setTriggerVisible = _React$useState2[1];
|
|
58678
58281
|
|
|
@@ -58780,12 +58383,12 @@ function Dropdown(props, ref) {
|
|
|
58780
58383
|
triggerHideAction = ['click'];
|
|
58781
58384
|
}
|
|
58782
58385
|
|
|
58783
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58386
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, _objectSpread2(_objectSpread2({
|
|
58784
58387
|
builtinPlacements: placements
|
|
58785
58388
|
}, otherProps), {}, {
|
|
58786
58389
|
prefixCls: prefixCls,
|
|
58787
58390
|
ref: triggerRef,
|
|
58788
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58391
|
+
popupClassName: classnames_default()(overlayClassName, _defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58789
58392
|
popupStyle: overlayStyle,
|
|
58790
58393
|
action: trigger,
|
|
58791
58394
|
showAction: showAction,
|