@x-edu/live-player 0.0.39 → 0.0.40
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 +575 -178
- package/package.json +1 -1
|
@@ -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{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}", ""]);
|
|
2768
2768
|
// Exports
|
|
2769
2769
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2770
2770
|
"container": "index-module_container_y+him",
|
|
@@ -25735,6 +25735,13 @@ 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
|
+
|
|
25738
25745
|
/***/ 3006:
|
|
25739
25746
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25740
25747
|
|
|
@@ -26802,7 +26809,7 @@ function isInMobile() {
|
|
|
26802
26809
|
return inIpad() || window.navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
|
|
26803
26810
|
}
|
|
26804
26811
|
function isHarmonyOS() {
|
|
26805
|
-
return /arkweb
|
|
26812
|
+
return /arkweb/i.test(ua) || /framecubeapp/i.test(ua) || /HarmonyOS/i.test(ua);
|
|
26806
26813
|
} // 是否是鸿蒙平板
|
|
26807
26814
|
|
|
26808
26815
|
function isHarmonyOSTablet() {
|
|
@@ -27279,7 +27286,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAFgCAYAAABn
|
|
|
27279
27286
|
/***/ (function(module) {
|
|
27280
27287
|
|
|
27281
27288
|
"use strict";
|
|
27282
|
-
module.exports = JSON.parse('{"_args":[["axios@0.21.4","
|
|
27289
|
+
module.exports = JSON.parse('{"_args":[["axios@0.21.4","C:\\\\git\\\\x-edu-live-player"]],"_from":"axios@0.21.4","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha1-xnuQ3AVo5cHPKwuFjEO6KOLtpXU=","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.4","name":"axios","escapedName":"axios","rawSpec":"0.21.4","saveSpec":null,"fetchSpec":"0.21.4"},"_requiredBy":["/","/@gem-mine/request"],"_resolved":"http://registry.npm.sdp.nd/axios/download/axios-0.21.4.tgz","_spec":"0.21.4","_where":"C:\\\\git\\\\x-edu-live-player","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}');
|
|
27283
27290
|
|
|
27284
27291
|
/***/ })
|
|
27285
27292
|
|
|
@@ -34417,6 +34424,129 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34417
34424
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34418
34425
|
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34419
34426
|
}
|
|
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
|
+
}
|
|
34420
34550
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34421
34551
|
var raf = function raf(callback) {
|
|
34422
34552
|
return +setTimeout(callback, 16);
|
|
@@ -34642,6 +34772,47 @@ var cacheStyle = {};
|
|
|
34642
34772
|
}
|
|
34643
34773
|
}
|
|
34644
34774
|
});
|
|
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
|
+
}
|
|
34645
34816
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34646
34817
|
|
|
34647
34818
|
|
|
@@ -34658,7 +34829,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34658
34829
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34659
34830
|
var _this = this;
|
|
34660
34831
|
|
|
34661
|
-
|
|
34832
|
+
classCallCheck_classCallCheck(this, ScrollLocker);
|
|
34662
34833
|
|
|
34663
34834
|
this.lockTarget = void 0;
|
|
34664
34835
|
this.options = void 0;
|
|
@@ -34706,7 +34877,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34706
34877
|
var options = _ref3.options;
|
|
34707
34878
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34708
34879
|
})) {
|
|
34709
|
-
locks = [].concat(
|
|
34880
|
+
locks = [].concat(toConsumableArray_toConsumableArray(locks), [{
|
|
34710
34881
|
target: _this.lockTarget,
|
|
34711
34882
|
options: _this.options
|
|
34712
34883
|
}]);
|
|
@@ -34744,7 +34915,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34744
34915
|
container.className = addClassName.trim();
|
|
34745
34916
|
}
|
|
34746
34917
|
|
|
34747
|
-
locks = [].concat(
|
|
34918
|
+
locks = [].concat(toConsumableArray_toConsumableArray(locks), [{
|
|
34748
34919
|
target: _this.lockTarget,
|
|
34749
34920
|
options: _this.options
|
|
34750
34921
|
}]);
|
|
@@ -34828,7 +34999,7 @@ var getParent = function getParent(getContainer) {
|
|
|
34828
34999
|
return getContainer();
|
|
34829
35000
|
}
|
|
34830
35001
|
|
|
34831
|
-
if (
|
|
35002
|
+
if (esm_typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
34832
35003
|
return getContainer;
|
|
34833
35004
|
}
|
|
34834
35005
|
}
|
|
@@ -34837,14 +35008,14 @@ var getParent = function getParent(getContainer) {
|
|
|
34837
35008
|
};
|
|
34838
35009
|
|
|
34839
35010
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
34840
|
-
|
|
35011
|
+
inherits_inherits(PortalWrapper, _React$Component);
|
|
34841
35012
|
|
|
34842
|
-
var _super =
|
|
35013
|
+
var _super = createSuper_createSuper(PortalWrapper);
|
|
34843
35014
|
|
|
34844
35015
|
function PortalWrapper(props) {
|
|
34845
35016
|
var _this;
|
|
34846
35017
|
|
|
34847
|
-
|
|
35018
|
+
classCallCheck_classCallCheck(this, PortalWrapper);
|
|
34848
35019
|
|
|
34849
35020
|
_this = _super.call(this, props);
|
|
34850
35021
|
_this.container = void 0;
|
|
@@ -34964,7 +35135,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34964
35135
|
return _this;
|
|
34965
35136
|
}
|
|
34966
35137
|
|
|
34967
|
-
|
|
35138
|
+
createClass_createClass(PortalWrapper, [{
|
|
34968
35139
|
key: "componentDidMount",
|
|
34969
35140
|
value: function componentDidMount() {
|
|
34970
35141
|
var _this2 = this;
|
|
@@ -35032,6 +35203,125 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35032
35203
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
35033
35204
|
|
|
35034
35205
|
/* 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
|
+
}
|
|
35035
35325
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
35036
35326
|
/**
|
|
35037
35327
|
* @ignore
|
|
@@ -36681,8 +36971,8 @@ function Mask(props) {
|
|
|
36681
36971
|
}, function (_ref) {
|
|
36682
36972
|
var motionClassName = _ref.className,
|
|
36683
36973
|
motionStyle = _ref.style;
|
|
36684
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36685
|
-
style:
|
|
36974
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36975
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), style),
|
|
36686
36976
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36687
36977
|
}, maskProps));
|
|
36688
36978
|
});
|
|
@@ -36807,7 +37097,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36807
37097
|
}); // ============================= Style ==============================
|
|
36808
37098
|
|
|
36809
37099
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
36810
|
-
_React$useState2 =
|
|
37100
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
36811
37101
|
transformOrigin = _React$useState2[0],
|
|
36812
37102
|
setTransformOrigin = _React$useState2[1];
|
|
36813
37103
|
|
|
@@ -36865,7 +37155,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36865
37155
|
|
|
36866
37156
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
36867
37157
|
className: "".concat(prefixCls, "-content")
|
|
36868
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37158
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36869
37159
|
className: "".concat(prefixCls, "-body"),
|
|
36870
37160
|
style: bodyStyle
|
|
36871
37161
|
}, bodyProps), children), footerNode);
|
|
@@ -36885,7 +37175,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36885
37175
|
key: "dialog-element",
|
|
36886
37176
|
role: "document",
|
|
36887
37177
|
ref: motionRef,
|
|
36888
|
-
style:
|
|
37178
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), style), contentStyle),
|
|
36889
37179
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
36890
37180
|
onMouseDown: onMouseDown,
|
|
36891
37181
|
onMouseUp: onMouseUp
|
|
@@ -36953,7 +37243,7 @@ function Dialog(props) {
|
|
|
36953
37243
|
var contentRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
36954
37244
|
|
|
36955
37245
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(visible),
|
|
36956
|
-
_React$useState2 =
|
|
37246
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
36957
37247
|
animatedVisible = _React$useState2[0],
|
|
36958
37248
|
setAnimatedVisible = _React$useState2[1]; // ========================== Init ==========================
|
|
36959
37249
|
|
|
@@ -37067,7 +37357,7 @@ function Dialog(props) {
|
|
|
37067
37357
|
return function () {};
|
|
37068
37358
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
37069
37359
|
|
|
37070
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37360
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
37071
37361
|
className: "".concat(prefixCls, "-root")
|
|
37072
37362
|
}, pickAttrs(props, {
|
|
37073
37363
|
data: true
|
|
@@ -37075,11 +37365,11 @@ function Dialog(props) {
|
|
|
37075
37365
|
prefixCls: prefixCls,
|
|
37076
37366
|
visible: mask && visible,
|
|
37077
37367
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
37078
|
-
style:
|
|
37368
|
+
style: objectSpread2_objectSpread2({
|
|
37079
37369
|
zIndex: zIndex
|
|
37080
37370
|
}, maskStyle),
|
|
37081
37371
|
maskProps: maskProps
|
|
37082
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37372
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
37083
37373
|
tabIndex: -1,
|
|
37084
37374
|
onKeyDown: onWrapperKeyDown,
|
|
37085
37375
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -37087,12 +37377,12 @@ function Dialog(props) {
|
|
|
37087
37377
|
onClick: onWrapperClick,
|
|
37088
37378
|
role: "dialog",
|
|
37089
37379
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
37090
|
-
style:
|
|
37380
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
37091
37381
|
zIndex: zIndex
|
|
37092
37382
|
}, wrapStyle), {}, {
|
|
37093
37383
|
display: !animatedVisible ? 'none' : null
|
|
37094
37384
|
})
|
|
37095
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
37385
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, esm_extends_extends({}, props, {
|
|
37096
37386
|
onMouseDown: onContentMouseDown,
|
|
37097
37387
|
onMouseUp: onContentMouseUp,
|
|
37098
37388
|
ref: contentRef,
|
|
@@ -44726,40 +45016,44 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
44726
45016
|
|
|
44727
45017
|
|
|
44728
45018
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
44729
|
-
function
|
|
44730
|
-
|
|
45019
|
+
function helpers_esm_extends_extends() {
|
|
45020
|
+
helpers_esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
44731
45021
|
for (var i = 1; i < arguments.length; i++) {
|
|
44732
45022
|
var source = arguments[i];
|
|
45023
|
+
|
|
44733
45024
|
for (var key in source) {
|
|
44734
45025
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44735
45026
|
target[key] = source[key];
|
|
44736
45027
|
}
|
|
44737
45028
|
}
|
|
44738
45029
|
}
|
|
45030
|
+
|
|
44739
45031
|
return target;
|
|
44740
45032
|
};
|
|
44741
|
-
return
|
|
45033
|
+
return helpers_esm_extends_extends.apply(this, arguments);
|
|
44742
45034
|
}
|
|
44743
45035
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
44744
|
-
function
|
|
45036
|
+
function helpers_esm_typeof_typeof(obj) {
|
|
44745
45037
|
"@babel/helpers - typeof";
|
|
44746
45038
|
|
|
44747
|
-
return
|
|
45039
|
+
return helpers_esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44748
45040
|
return typeof obj;
|
|
44749
45041
|
} : function (obj) {
|
|
44750
45042
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44751
|
-
},
|
|
45043
|
+
}, helpers_esm_typeof_typeof(obj);
|
|
44752
45044
|
}
|
|
44753
45045
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
44754
45046
|
|
|
44755
45047
|
function _toPrimitive(input, hint) {
|
|
44756
|
-
if (
|
|
45048
|
+
if (helpers_esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
44757
45049
|
var prim = input[Symbol.toPrimitive];
|
|
45050
|
+
|
|
44758
45051
|
if (prim !== undefined) {
|
|
44759
45052
|
var res = prim.call(input, hint || "default");
|
|
44760
|
-
if (
|
|
45053
|
+
if (helpers_esm_typeof_typeof(res) !== "object") return res;
|
|
44761
45054
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44762
45055
|
}
|
|
45056
|
+
|
|
44763
45057
|
return (hint === "string" ? String : Number)(input);
|
|
44764
45058
|
}
|
|
44765
45059
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -44767,12 +45061,13 @@ function _toPrimitive(input, hint) {
|
|
|
44767
45061
|
|
|
44768
45062
|
function _toPropertyKey(arg) {
|
|
44769
45063
|
var key = _toPrimitive(arg, "string");
|
|
44770
|
-
return
|
|
45064
|
+
return helpers_esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
44771
45065
|
}
|
|
44772
45066
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
44773
45067
|
|
|
44774
|
-
function
|
|
45068
|
+
function esm_defineProperty_defineProperty(obj, key, value) {
|
|
44775
45069
|
key = _toPropertyKey(key);
|
|
45070
|
+
|
|
44776
45071
|
if (key in obj) {
|
|
44777
45072
|
Object.defineProperty(obj, key, {
|
|
44778
45073
|
value: value,
|
|
@@ -44783,51 +45078,61 @@ function defineProperty_defineProperty(obj, key, value) {
|
|
|
44783
45078
|
} else {
|
|
44784
45079
|
obj[key] = value;
|
|
44785
45080
|
}
|
|
45081
|
+
|
|
44786
45082
|
return obj;
|
|
44787
45083
|
}
|
|
44788
45084
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
44789
45085
|
|
|
44790
|
-
|
|
45086
|
+
|
|
45087
|
+
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44791
45088
|
var keys = Object.keys(object);
|
|
45089
|
+
|
|
44792
45090
|
if (Object.getOwnPropertySymbols) {
|
|
44793
45091
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
44794
45092
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
44795
45093
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
44796
45094
|
})), keys.push.apply(keys, symbols);
|
|
44797
45095
|
}
|
|
45096
|
+
|
|
44798
45097
|
return keys;
|
|
44799
45098
|
}
|
|
44800
|
-
|
|
45099
|
+
|
|
45100
|
+
function esm_objectSpread2_objectSpread2(target) {
|
|
44801
45101
|
for (var i = 1; i < arguments.length; i++) {
|
|
44802
45102
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
44803
|
-
i % 2 ?
|
|
44804
|
-
|
|
44805
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
45103
|
+
i % 2 ? esm_objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
45104
|
+
esm_defineProperty_defineProperty(target, key, source[key]);
|
|
45105
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : esm_objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
44806
45106
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44807
45107
|
});
|
|
44808
45108
|
}
|
|
45109
|
+
|
|
44809
45110
|
return target;
|
|
44810
45111
|
}
|
|
44811
45112
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
44812
|
-
function
|
|
45113
|
+
function helpers_esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
44813
45114
|
if (Array.isArray(arr)) return arr;
|
|
44814
45115
|
}
|
|
44815
45116
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
44816
|
-
function
|
|
45117
|
+
function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
44817
45118
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
45119
|
+
|
|
44818
45120
|
if (null != _i) {
|
|
44819
45121
|
var _s,
|
|
44820
|
-
|
|
44821
|
-
|
|
44822
|
-
|
|
44823
|
-
|
|
44824
|
-
|
|
44825
|
-
|
|
45122
|
+
_e,
|
|
45123
|
+
_x,
|
|
45124
|
+
_r,
|
|
45125
|
+
_arr = [],
|
|
45126
|
+
_n = !0,
|
|
45127
|
+
_d = !1;
|
|
45128
|
+
|
|
44826
45129
|
try {
|
|
44827
45130
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
44828
45131
|
if (Object(_i) !== _i) return;
|
|
44829
45132
|
_n = !1;
|
|
44830
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
45133
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
|
45134
|
+
;
|
|
45135
|
+
}
|
|
44831
45136
|
} catch (err) {
|
|
44832
45137
|
_d = !0, _e = err;
|
|
44833
45138
|
} finally {
|
|
@@ -44837,27 +45142,32 @@ function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
44837
45142
|
if (_d) throw _e;
|
|
44838
45143
|
}
|
|
44839
45144
|
}
|
|
45145
|
+
|
|
44840
45146
|
return _arr;
|
|
44841
45147
|
}
|
|
44842
45148
|
}
|
|
44843
45149
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
44844
|
-
function
|
|
45150
|
+
function esm_arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
44845
45151
|
if (len == null || len > arr.length) len = arr.length;
|
|
44846
|
-
|
|
45152
|
+
|
|
45153
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
45154
|
+
arr2[i] = arr[i];
|
|
45155
|
+
}
|
|
45156
|
+
|
|
44847
45157
|
return arr2;
|
|
44848
45158
|
}
|
|
44849
45159
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
44850
45160
|
|
|
44851
|
-
function
|
|
45161
|
+
function esm_unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
44852
45162
|
if (!o) return;
|
|
44853
|
-
if (typeof o === "string") return
|
|
45163
|
+
if (typeof o === "string") return esm_arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44854
45164
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
44855
45165
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
44856
45166
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44857
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
45167
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return esm_arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44858
45168
|
}
|
|
44859
45169
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
44860
|
-
function
|
|
45170
|
+
function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
44861
45171
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44862
45172
|
}
|
|
44863
45173
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -44865,8 +45175,8 @@ function esm_nonIterableRest_nonIterableRest() {
|
|
|
44865
45175
|
|
|
44866
45176
|
|
|
44867
45177
|
|
|
44868
|
-
function
|
|
44869
|
-
return
|
|
45178
|
+
function helpers_esm_slicedToArray_slicedToArray(arr, i) {
|
|
45179
|
+
return helpers_esm_arrayWithHoles_arrayWithHoles(arr) || helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || esm_unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || helpers_esm_nonIterableRest_nonIterableRest();
|
|
44870
45180
|
}
|
|
44871
45181
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
44872
45182
|
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -44874,11 +45184,13 @@ function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, exclu
|
|
|
44874
45184
|
var target = {};
|
|
44875
45185
|
var sourceKeys = Object.keys(source);
|
|
44876
45186
|
var key, i;
|
|
45187
|
+
|
|
44877
45188
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
44878
45189
|
key = sourceKeys[i];
|
|
44879
45190
|
if (excluded.indexOf(key) >= 0) continue;
|
|
44880
45191
|
target[key] = source[key];
|
|
44881
45192
|
}
|
|
45193
|
+
|
|
44882
45194
|
return target;
|
|
44883
45195
|
}
|
|
44884
45196
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
@@ -44887,8 +45199,10 @@ function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
44887
45199
|
if (source == null) return {};
|
|
44888
45200
|
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
44889
45201
|
var key, i;
|
|
45202
|
+
|
|
44890
45203
|
if (Object.getOwnPropertySymbols) {
|
|
44891
45204
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
45205
|
+
|
|
44892
45206
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
44893
45207
|
key = sourceSymbolKeys[i];
|
|
44894
45208
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -44896,6 +45210,7 @@ function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
44896
45210
|
target[key] = source[key];
|
|
44897
45211
|
}
|
|
44898
45212
|
}
|
|
45213
|
+
|
|
44899
45214
|
return target;
|
|
44900
45215
|
}
|
|
44901
45216
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -46031,7 +46346,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46031
46346
|
position: 'relative',
|
|
46032
46347
|
overflow: 'hidden'
|
|
46033
46348
|
};
|
|
46034
|
-
innerStyle =
|
|
46349
|
+
innerStyle = esm_objectSpread2_objectSpread2(esm_objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
46035
46350
|
transform: "translateY(".concat(offset, "px)"),
|
|
46036
46351
|
position: 'absolute',
|
|
46037
46352
|
left: 0,
|
|
@@ -46048,23 +46363,24 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46048
46363
|
onInnerResize();
|
|
46049
46364
|
}
|
|
46050
46365
|
}
|
|
46051
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
46366
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", helpers_esm_extends_extends({
|
|
46052
46367
|
style: innerStyle,
|
|
46053
|
-
className: classnames_default()(
|
|
46368
|
+
className: classnames_default()(esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
46054
46369
|
ref: ref
|
|
46055
46370
|
}, innerProps), children)));
|
|
46056
46371
|
});
|
|
46057
46372
|
Filler.displayName = 'Filler';
|
|
46058
46373
|
/* harmony default export */ var es_Filler = (Filler);
|
|
46059
46374
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
46060
|
-
function
|
|
46375
|
+
function esm_classCallCheck_classCallCheck(instance, Constructor) {
|
|
46061
46376
|
if (!(instance instanceof Constructor)) {
|
|
46062
46377
|
throw new TypeError("Cannot call a class as a function");
|
|
46063
46378
|
}
|
|
46064
46379
|
}
|
|
46065
46380
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
46066
46381
|
|
|
46067
|
-
|
|
46382
|
+
|
|
46383
|
+
function esm_createClass_defineProperties(target, props) {
|
|
46068
46384
|
for (var i = 0; i < props.length; i++) {
|
|
46069
46385
|
var descriptor = props[i];
|
|
46070
46386
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -46073,28 +46389,30 @@ function createClass_defineProperties(target, props) {
|
|
|
46073
46389
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
46074
46390
|
}
|
|
46075
46391
|
}
|
|
46076
|
-
|
|
46077
|
-
|
|
46078
|
-
if (
|
|
46392
|
+
|
|
46393
|
+
function esm_createClass_createClass(Constructor, protoProps, staticProps) {
|
|
46394
|
+
if (protoProps) esm_createClass_defineProperties(Constructor.prototype, protoProps);
|
|
46395
|
+
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
46079
46396
|
Object.defineProperty(Constructor, "prototype", {
|
|
46080
46397
|
writable: false
|
|
46081
46398
|
});
|
|
46082
46399
|
return Constructor;
|
|
46083
46400
|
}
|
|
46084
46401
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
46085
|
-
function
|
|
46086
|
-
|
|
46402
|
+
function esm_setPrototypeOf_setPrototypeOf(o, p) {
|
|
46403
|
+
esm_setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
46087
46404
|
o.__proto__ = p;
|
|
46088
46405
|
return o;
|
|
46089
46406
|
};
|
|
46090
|
-
return
|
|
46407
|
+
return esm_setPrototypeOf_setPrototypeOf(o, p);
|
|
46091
46408
|
}
|
|
46092
46409
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
46093
46410
|
|
|
46094
|
-
function
|
|
46411
|
+
function esm_inherits_inherits(subClass, superClass) {
|
|
46095
46412
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
46096
46413
|
throw new TypeError("Super expression must either be null or a function");
|
|
46097
46414
|
}
|
|
46415
|
+
|
|
46098
46416
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
46099
46417
|
constructor: {
|
|
46100
46418
|
value: subClass,
|
|
@@ -46105,20 +46423,21 @@ function inherits_inherits(subClass, superClass) {
|
|
|
46105
46423
|
Object.defineProperty(subClass, "prototype", {
|
|
46106
46424
|
writable: false
|
|
46107
46425
|
});
|
|
46108
|
-
if (superClass)
|
|
46426
|
+
if (superClass) esm_setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
46109
46427
|
}
|
|
46110
46428
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
46111
|
-
function
|
|
46112
|
-
|
|
46429
|
+
function esm_getPrototypeOf_getPrototypeOf(o) {
|
|
46430
|
+
esm_getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
46113
46431
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46114
46432
|
};
|
|
46115
|
-
return
|
|
46433
|
+
return esm_getPrototypeOf_getPrototypeOf(o);
|
|
46116
46434
|
}
|
|
46117
46435
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
46118
|
-
function
|
|
46436
|
+
function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
46119
46437
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
46120
46438
|
if (Reflect.construct.sham) return false;
|
|
46121
46439
|
if (typeof Proxy === "function") return true;
|
|
46440
|
+
|
|
46122
46441
|
try {
|
|
46123
46442
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
46124
46443
|
return true;
|
|
@@ -46127,39 +46446,43 @@ function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
46127
46446
|
}
|
|
46128
46447
|
}
|
|
46129
46448
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
46130
|
-
function
|
|
46449
|
+
function esm_assertThisInitialized_assertThisInitialized(self) {
|
|
46131
46450
|
if (self === void 0) {
|
|
46132
46451
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46133
46452
|
}
|
|
46453
|
+
|
|
46134
46454
|
return self;
|
|
46135
46455
|
}
|
|
46136
46456
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
46137
46457
|
|
|
46138
46458
|
|
|
46139
|
-
function
|
|
46140
|
-
if (call && (
|
|
46459
|
+
function esm_possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
46460
|
+
if (call && (helpers_esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
46141
46461
|
return call;
|
|
46142
46462
|
} else if (call !== void 0) {
|
|
46143
46463
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
46144
46464
|
}
|
|
46145
|
-
|
|
46465
|
+
|
|
46466
|
+
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
46146
46467
|
}
|
|
46147
46468
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
46148
46469
|
|
|
46149
46470
|
|
|
46150
46471
|
|
|
46151
|
-
function
|
|
46152
|
-
var hasNativeReflectConstruct =
|
|
46472
|
+
function esm_createSuper_createSuper(Derived) {
|
|
46473
|
+
var hasNativeReflectConstruct = esm_isNativeReflectConstruct_isNativeReflectConstruct();
|
|
46153
46474
|
return function _createSuperInternal() {
|
|
46154
|
-
var Super =
|
|
46155
|
-
|
|
46475
|
+
var Super = esm_getPrototypeOf_getPrototypeOf(Derived),
|
|
46476
|
+
result;
|
|
46477
|
+
|
|
46156
46478
|
if (hasNativeReflectConstruct) {
|
|
46157
|
-
var NewTarget =
|
|
46479
|
+
var NewTarget = esm_getPrototypeOf_getPrototypeOf(this).constructor;
|
|
46158
46480
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
46159
46481
|
} else {
|
|
46160
46482
|
result = Super.apply(this, arguments);
|
|
46161
46483
|
}
|
|
46162
|
-
|
|
46484
|
+
|
|
46485
|
+
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46163
46486
|
};
|
|
46164
46487
|
}
|
|
46165
46488
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -46234,11 +46557,11 @@ function getPageY(e) {
|
|
|
46234
46557
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
46235
46558
|
}
|
|
46236
46559
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
46237
|
-
|
|
46238
|
-
var _super =
|
|
46560
|
+
esm_inherits_inherits(ScrollBar, _React$Component);
|
|
46561
|
+
var _super = esm_createSuper_createSuper(ScrollBar);
|
|
46239
46562
|
function ScrollBar() {
|
|
46240
46563
|
var _this;
|
|
46241
|
-
|
|
46564
|
+
esm_classCallCheck_classCallCheck(this, ScrollBar);
|
|
46242
46565
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46243
46566
|
args[_key] = arguments[_key];
|
|
46244
46567
|
}
|
|
@@ -46366,7 +46689,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46366
46689
|
};
|
|
46367
46690
|
return _this;
|
|
46368
46691
|
}
|
|
46369
|
-
|
|
46692
|
+
esm_createClass_createClass(ScrollBar, [{
|
|
46370
46693
|
key: "componentDidMount",
|
|
46371
46694
|
value: function componentDidMount() {
|
|
46372
46695
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -46400,7 +46723,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46400
46723
|
var mergedVisible = canScroll && visible;
|
|
46401
46724
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46402
46725
|
ref: this.scrollbarRef,
|
|
46403
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46726
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46404
46727
|
style: {
|
|
46405
46728
|
width: 8,
|
|
46406
46729
|
top: 0,
|
|
@@ -46413,7 +46736,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46413
46736
|
onMouseMove: this.delayHidden
|
|
46414
46737
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46415
46738
|
ref: this.thumbRef,
|
|
46416
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46739
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46417
46740
|
style: {
|
|
46418
46741
|
width: '100%',
|
|
46419
46742
|
height: spinHeight,
|
|
@@ -46492,11 +46815,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46492
46815
|
// Firefox has low performance of map.
|
|
46493
46816
|
var CacheMap = /*#__PURE__*/function () {
|
|
46494
46817
|
function CacheMap() {
|
|
46495
|
-
|
|
46818
|
+
esm_classCallCheck_classCallCheck(this, CacheMap);
|
|
46496
46819
|
this.maps = void 0;
|
|
46497
46820
|
this.maps = Object.create(null);
|
|
46498
46821
|
}
|
|
46499
|
-
|
|
46822
|
+
esm_createClass_createClass(CacheMap, [{
|
|
46500
46823
|
key: "set",
|
|
46501
46824
|
value: function set(key, value) {
|
|
46502
46825
|
this.maps[key] = value;
|
|
@@ -46519,7 +46842,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46519
46842
|
|
|
46520
46843
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46521
46844
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46522
|
-
_React$useState2 =
|
|
46845
|
+
_React$useState2 = helpers_esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46523
46846
|
updatedMark = _React$useState2[0],
|
|
46524
46847
|
setUpdatedMark = _React$useState2[1];
|
|
46525
46848
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46586,7 +46909,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46586
46909
|
es_raf.cancel(scrollRef.current);
|
|
46587
46910
|
if (typeof arg === 'number') {
|
|
46588
46911
|
syncScrollTop(arg);
|
|
46589
|
-
} else if (arg &&
|
|
46912
|
+
} else if (arg && helpers_esm_typeof_typeof(arg) === 'object') {
|
|
46590
46913
|
var index;
|
|
46591
46914
|
var align = arg.align;
|
|
46592
46915
|
if ('index' in arg) {
|
|
@@ -46742,11 +47065,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
46742
47065
|
|
|
46743
47066
|
function useDiffItem(data, getKey, onDiff) {
|
|
46744
47067
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
46745
|
-
_React$useState2 =
|
|
47068
|
+
_React$useState2 = helpers_esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46746
47069
|
prevData = _React$useState2[0],
|
|
46747
47070
|
setPrevData = _React$useState2[1];
|
|
46748
47071
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
46749
|
-
_React$useState4 =
|
|
47072
|
+
_React$useState4 = helpers_esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
46750
47073
|
diffItem = _React$useState4[0],
|
|
46751
47074
|
setDiffItem = _React$useState4[1];
|
|
46752
47075
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -46761,7 +47084,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
46761
47084
|
}
|
|
46762
47085
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
46763
47086
|
|
|
46764
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
47087
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : helpers_esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
46765
47088
|
/* harmony default export */ var isFirefox = (isFF);
|
|
46766
47089
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
46767
47090
|
|
|
@@ -46985,11 +47308,11 @@ function RawList(props, ref) {
|
|
|
46985
47308
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
46986
47309
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
46987
47310
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
46988
|
-
_useState2 =
|
|
47311
|
+
_useState2 = helpers_esm_slicedToArray_slicedToArray(_useState, 2),
|
|
46989
47312
|
scrollTop = _useState2[0],
|
|
46990
47313
|
setScrollTop = _useState2[1];
|
|
46991
47314
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
46992
|
-
_useState4 =
|
|
47315
|
+
_useState4 = helpers_esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
46993
47316
|
scrollMoving = _useState4[0],
|
|
46994
47317
|
setScrollMoving = _useState4[1];
|
|
46995
47318
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -47029,12 +47352,12 @@ function RawList(props, ref) {
|
|
|
47029
47352
|
});
|
|
47030
47353
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
47031
47354
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
47032
|
-
_useDiffItem2 =
|
|
47355
|
+
_useDiffItem2 = helpers_esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
47033
47356
|
diffItem = _useDiffItem2[0];
|
|
47034
47357
|
diffItemRef.current = diffItem;
|
|
47035
47358
|
// ================================ Height ================================
|
|
47036
47359
|
var _useHeights = useHeights(getKey, null, null),
|
|
47037
|
-
_useHeights2 =
|
|
47360
|
+
_useHeights2 = helpers_esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
47038
47361
|
setInstanceRef = _useHeights2[0],
|
|
47039
47362
|
collectHeight = _useHeights2[1],
|
|
47040
47363
|
heights = _useHeights2[2],
|
|
@@ -47140,7 +47463,7 @@ function RawList(props, ref) {
|
|
|
47140
47463
|
return newTop;
|
|
47141
47464
|
});
|
|
47142
47465
|
}),
|
|
47143
|
-
_useFrameWheel2 =
|
|
47466
|
+
_useFrameWheel2 = helpers_esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
47144
47467
|
onRawWheel = _useFrameWheel2[0],
|
|
47145
47468
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
47146
47469
|
// Mobile touch move
|
|
@@ -47194,7 +47517,7 @@ function RawList(props, ref) {
|
|
|
47194
47517
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
47195
47518
|
var componentStyle = null;
|
|
47196
47519
|
if (height) {
|
|
47197
|
-
componentStyle =
|
|
47520
|
+
componentStyle = esm_objectSpread2_objectSpread2(esm_defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
47198
47521
|
if (useVirtual) {
|
|
47199
47522
|
componentStyle.overflowY = 'hidden';
|
|
47200
47523
|
if (scrollMoving) {
|
|
@@ -47202,8 +47525,8 @@ function RawList(props, ref) {
|
|
|
47202
47525
|
}
|
|
47203
47526
|
}
|
|
47204
47527
|
}
|
|
47205
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47206
|
-
style:
|
|
47528
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", helpers_esm_extends_extends({
|
|
47529
|
+
style: esm_objectSpread2_objectSpread2(esm_objectSpread2_objectSpread2({}, style), {}, {
|
|
47207
47530
|
position: 'relative'
|
|
47208
47531
|
}),
|
|
47209
47532
|
className: mergedClassName
|
|
@@ -48179,6 +48502,41 @@ function useControlledState(defaultStateValue, option) {
|
|
|
48179
48502
|
}, [value]);
|
|
48180
48503
|
return [mergedValue, triggerChange];
|
|
48181
48504
|
}
|
|
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
|
+
}
|
|
48182
48540
|
;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/Item.js
|
|
48183
48541
|
|
|
48184
48542
|
|
|
@@ -48204,7 +48562,7 @@ function InternalItem(props, ref) {
|
|
|
48204
48562
|
order = props.order,
|
|
48205
48563
|
_props$component = props.component,
|
|
48206
48564
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48207
|
-
restProps =
|
|
48565
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48208
48566
|
|
|
48209
48567
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48210
48568
|
|
|
@@ -48238,9 +48596,9 @@ function InternalItem(props, ref) {
|
|
|
48238
48596
|
overflowProps['aria-hidden'] = true;
|
|
48239
48597
|
}
|
|
48240
48598
|
|
|
48241
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48599
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({
|
|
48242
48600
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48243
|
-
style:
|
|
48601
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, overflowStyle), style)
|
|
48244
48602
|
}, overflowProps, restProps, {
|
|
48245
48603
|
ref: ref
|
|
48246
48604
|
}), childNode);
|
|
@@ -48271,7 +48629,7 @@ Item_Item.displayName = 'Item';
|
|
|
48271
48629
|
|
|
48272
48630
|
function useBatchFrameState() {
|
|
48273
48631
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
48274
|
-
_useState2 =
|
|
48632
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
48275
48633
|
forceUpdate = _useState2[1];
|
|
48276
48634
|
|
|
48277
48635
|
var statesRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)([]);
|
|
@@ -48325,23 +48683,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48325
48683
|
if (!context) {
|
|
48326
48684
|
var _props$component = props.component,
|
|
48327
48685
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48328
|
-
_restProps =
|
|
48686
|
+
_restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["component"]);
|
|
48329
48687
|
|
|
48330
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48688
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, _restProps, {
|
|
48331
48689
|
ref: ref
|
|
48332
48690
|
}));
|
|
48333
48691
|
}
|
|
48334
48692
|
|
|
48335
48693
|
var contextClassName = context.className,
|
|
48336
|
-
restContext =
|
|
48694
|
+
restContext = esm_objectWithoutProperties_objectWithoutProperties(context, ["className"]);
|
|
48337
48695
|
|
|
48338
48696
|
var className = props.className,
|
|
48339
|
-
restProps =
|
|
48697
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48340
48698
|
|
|
48341
48699
|
|
|
48342
48700
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48343
48701
|
value: null
|
|
48344
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48702
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({
|
|
48345
48703
|
ref: ref,
|
|
48346
48704
|
className: classnames_default()(contextClassName, className)
|
|
48347
48705
|
}, restContext, restProps)));
|
|
@@ -48391,45 +48749,45 @@ function Overflow(props, ref) {
|
|
|
48391
48749
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48392
48750
|
itemComponent = props.itemComponent,
|
|
48393
48751
|
onVisibleChange = props.onVisibleChange,
|
|
48394
|
-
restProps =
|
|
48752
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48395
48753
|
|
|
48396
48754
|
var createUseState = useBatchFrameState();
|
|
48397
48755
|
var fullySSR = ssr === 'full';
|
|
48398
48756
|
|
|
48399
48757
|
var _createUseState = createUseState(null),
|
|
48400
|
-
_createUseState2 =
|
|
48758
|
+
_createUseState2 = esm_slicedToArray_slicedToArray(_createUseState, 2),
|
|
48401
48759
|
containerWidth = _createUseState2[0],
|
|
48402
48760
|
setContainerWidth = _createUseState2[1];
|
|
48403
48761
|
|
|
48404
48762
|
var mergedContainerWidth = containerWidth || 0;
|
|
48405
48763
|
|
|
48406
48764
|
var _createUseState3 = createUseState(new Map()),
|
|
48407
|
-
_createUseState4 =
|
|
48765
|
+
_createUseState4 = esm_slicedToArray_slicedToArray(_createUseState3, 2),
|
|
48408
48766
|
itemWidths = _createUseState4[0],
|
|
48409
48767
|
setItemWidths = _createUseState4[1];
|
|
48410
48768
|
|
|
48411
48769
|
var _createUseState5 = createUseState(0),
|
|
48412
|
-
_createUseState6 =
|
|
48770
|
+
_createUseState6 = esm_slicedToArray_slicedToArray(_createUseState5, 2),
|
|
48413
48771
|
prevRestWidth = _createUseState6[0],
|
|
48414
48772
|
setPrevRestWidth = _createUseState6[1];
|
|
48415
48773
|
|
|
48416
48774
|
var _createUseState7 = createUseState(0),
|
|
48417
|
-
_createUseState8 =
|
|
48775
|
+
_createUseState8 = esm_slicedToArray_slicedToArray(_createUseState7, 2),
|
|
48418
48776
|
restWidth = _createUseState8[0],
|
|
48419
48777
|
setRestWidth = _createUseState8[1];
|
|
48420
48778
|
|
|
48421
48779
|
var _createUseState9 = createUseState(0),
|
|
48422
|
-
_createUseState10 =
|
|
48780
|
+
_createUseState10 = esm_slicedToArray_slicedToArray(_createUseState9, 2),
|
|
48423
48781
|
suffixWidth = _createUseState10[0],
|
|
48424
48782
|
setSuffixWidth = _createUseState10[1];
|
|
48425
48783
|
|
|
48426
48784
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48427
|
-
_useState2 =
|
|
48785
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
48428
48786
|
suffixFixedStart = _useState2[0],
|
|
48429
48787
|
setSuffixFixedStart = _useState2[1];
|
|
48430
48788
|
|
|
48431
48789
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48432
|
-
_useState4 =
|
|
48790
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
48433
48791
|
displayCount = _useState4[0],
|
|
48434
48792
|
setDisplayCount = _useState4[1];
|
|
48435
48793
|
|
|
@@ -48442,7 +48800,7 @@ function Overflow(props, ref) {
|
|
|
48442
48800
|
}, [displayCount, containerWidth]);
|
|
48443
48801
|
|
|
48444
48802
|
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
48445
|
-
_useState6 =
|
|
48803
|
+
_useState6 = esm_slicedToArray_slicedToArray(_useState5, 2),
|
|
48446
48804
|
restReady = _useState6[0],
|
|
48447
48805
|
setRestReady = _useState6[1];
|
|
48448
48806
|
|
|
@@ -48601,7 +48959,7 @@ function Overflow(props, ref) {
|
|
|
48601
48959
|
var key = getKey(item, index);
|
|
48602
48960
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48603
48961
|
key: key,
|
|
48604
|
-
value:
|
|
48962
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, itemSharedProps), {}, {
|
|
48605
48963
|
order: index,
|
|
48606
48964
|
item: item,
|
|
48607
48965
|
itemKey: key,
|
|
@@ -48611,7 +48969,7 @@ function Overflow(props, ref) {
|
|
|
48611
48969
|
}, renderRawItem(item, index));
|
|
48612
48970
|
} : function (item, index) {
|
|
48613
48971
|
var key = getKey(item, index);
|
|
48614
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48972
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, {
|
|
48615
48973
|
order: index,
|
|
48616
48974
|
key: key,
|
|
48617
48975
|
item: item,
|
|
@@ -48632,18 +48990,18 @@ function Overflow(props, ref) {
|
|
|
48632
48990
|
|
|
48633
48991
|
if (!renderRawRest) {
|
|
48634
48992
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48635
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48993
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48636
48994
|
} else if (renderRawRest) {
|
|
48637
48995
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48638
|
-
value:
|
|
48996
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48639
48997
|
}, renderRawRest(omittedItems));
|
|
48640
48998
|
}
|
|
48641
48999
|
|
|
48642
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
49000
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({
|
|
48643
49001
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48644
49002
|
style: style,
|
|
48645
49003
|
ref: ref
|
|
48646
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
49004
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, {
|
|
48647
49005
|
order: mergedDisplayCount,
|
|
48648
49006
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
48649
49007
|
registerSize: registerSuffixSize,
|
|
@@ -48708,7 +49066,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48708
49066
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
48709
49067
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
48710
49068
|
style = _inputNode$props.style;
|
|
48711
|
-
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode,
|
|
49069
|
+
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
48712
49070
|
id: id,
|
|
48713
49071
|
ref: composeRef(ref, originRef),
|
|
48714
49072
|
disabled: disabled,
|
|
@@ -48717,7 +49075,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48717
49075
|
type: 'search',
|
|
48718
49076
|
autoFocus: autoFocus,
|
|
48719
49077
|
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),
|
|
48720
|
-
style:
|
|
49078
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
48721
49079
|
opacity: editable ? null : 0
|
|
48722
49080
|
}),
|
|
48723
49081
|
role: 'combobox',
|
|
@@ -49325,7 +49683,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
49325
49683
|
|
|
49326
49684
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
49327
49685
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
49328
|
-
return
|
|
49686
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, baseAlign), align);
|
|
49329
49687
|
}
|
|
49330
49688
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
49331
49689
|
var points = align.points;
|
|
@@ -49389,7 +49747,7 @@ function Mask_Mask(props) {
|
|
|
49389
49747
|
var motion = {};
|
|
49390
49748
|
|
|
49391
49749
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49392
|
-
motion =
|
|
49750
|
+
motion = objectSpread2_objectSpread2({
|
|
49393
49751
|
motionAppear: true
|
|
49394
49752
|
}, getMotion({
|
|
49395
49753
|
motion: maskMotion,
|
|
@@ -49399,7 +49757,7 @@ function Mask_Mask(props) {
|
|
|
49399
49757
|
}));
|
|
49400
49758
|
}
|
|
49401
49759
|
|
|
49402
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49760
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({}, motion, {
|
|
49403
49761
|
visible: visible,
|
|
49404
49762
|
removeOnLeave: true
|
|
49405
49763
|
}), function (_ref) {
|
|
@@ -50816,7 +51174,7 @@ function monitorResize(element, callback) {
|
|
|
50816
51174
|
var prevHeight = null;
|
|
50817
51175
|
|
|
50818
51176
|
function onResize(_ref) {
|
|
50819
|
-
var _ref2 =
|
|
51177
|
+
var _ref2 = esm_slicedToArray_slicedToArray(_ref, 1),
|
|
50820
51178
|
target = _ref2[0].target;
|
|
50821
51179
|
|
|
50822
51180
|
if (!document.documentElement.contains(target)) return;
|
|
@@ -50911,7 +51269,7 @@ function getElement(func) {
|
|
|
50911
51269
|
}
|
|
50912
51270
|
|
|
50913
51271
|
function getPoint(point) {
|
|
50914
|
-
if (
|
|
51272
|
+
if (esm_typeof_typeof(point) !== 'object' || !point) return null;
|
|
50915
51273
|
return point;
|
|
50916
51274
|
}
|
|
50917
51275
|
|
|
@@ -50975,7 +51333,7 @@ var Align = function Align(_ref, ref) {
|
|
|
50975
51333
|
|
|
50976
51334
|
return false;
|
|
50977
51335
|
}, monitorBufferTime),
|
|
50978
|
-
_useBuffer2 =
|
|
51336
|
+
_useBuffer2 = esm_slicedToArray_slicedToArray(_useBuffer, 2),
|
|
50979
51337
|
_forceAlign = _useBuffer2[0],
|
|
50980
51338
|
cancelForceAlign = _useBuffer2[1]; // ===================== Effect =====================
|
|
50981
51339
|
// Listen for target updated
|
|
@@ -51063,6 +51421,45 @@ RcAlign.displayName = 'Align';
|
|
|
51063
51421
|
// export this package's api
|
|
51064
51422
|
|
|
51065
51423
|
/* 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
|
+
}
|
|
51066
51463
|
;// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/useVisibleStatus.js
|
|
51067
51464
|
|
|
51068
51465
|
|
|
@@ -51072,7 +51469,7 @@ RcAlign.displayName = 'Align';
|
|
|
51072
51469
|
var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
51073
51470
|
/* harmony default export */ var useVisibleStatus = (function (visible, doMeasure) {
|
|
51074
51471
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
51075
|
-
_useState2 =
|
|
51472
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
51076
51473
|
status = _useState2[0],
|
|
51077
51474
|
setInternalStatus = _useState2[1];
|
|
51078
51475
|
|
|
@@ -51125,9 +51522,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51125
51522
|
}
|
|
51126
51523
|
|
|
51127
51524
|
if (status) {
|
|
51128
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/
|
|
51525
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/esm_asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
51129
51526
|
var index, nextStatus;
|
|
51130
|
-
return
|
|
51527
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
51131
51528
|
while (1) {
|
|
51132
51529
|
switch (_context.prev = _context.next) {
|
|
51133
51530
|
case 0:
|
|
@@ -51163,7 +51560,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51163
51560
|
width: 0,
|
|
51164
51561
|
height: 0
|
|
51165
51562
|
}),
|
|
51166
|
-
_React$useState2 =
|
|
51563
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
51167
51564
|
targetSize = _React$useState2[0],
|
|
51168
51565
|
setTargetSize = _React$useState2[1];
|
|
51169
51566
|
|
|
@@ -51234,13 +51631,13 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51234
51631
|
var elementRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
51235
51632
|
|
|
51236
51633
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
51237
|
-
_useState2 =
|
|
51634
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
51238
51635
|
alignedClassName = _useState2[0],
|
|
51239
51636
|
setAlignedClassName = _useState2[1]; // ======================= Measure ========================
|
|
51240
51637
|
|
|
51241
51638
|
|
|
51242
51639
|
var _useStretchStyle = useStretchStyle(stretch),
|
|
51243
|
-
_useStretchStyle2 =
|
|
51640
|
+
_useStretchStyle2 = esm_slicedToArray_slicedToArray(_useStretchStyle, 2),
|
|
51244
51641
|
stretchStyle = _useStretchStyle2[0],
|
|
51245
51642
|
measureStretchStyle = _useStretchStyle2[1];
|
|
51246
51643
|
|
|
@@ -51252,7 +51649,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51252
51649
|
|
|
51253
51650
|
|
|
51254
51651
|
var _useVisibleStatus = useVisibleStatus(visible, doMeasure),
|
|
51255
|
-
_useVisibleStatus2 =
|
|
51652
|
+
_useVisibleStatus2 = esm_slicedToArray_slicedToArray(_useVisibleStatus, 2),
|
|
51256
51653
|
status = _useVisibleStatus2[0],
|
|
51257
51654
|
goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
|
|
51258
51655
|
|
|
@@ -51300,7 +51697,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51300
51697
|
} // ======================== Motion ========================
|
|
51301
51698
|
|
|
51302
51699
|
|
|
51303
|
-
var motion =
|
|
51700
|
+
var motion = objectSpread2_objectSpread2({}, getMotion(props));
|
|
51304
51701
|
|
|
51305
51702
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
51306
51703
|
var originHandler = motion[eventName];
|
|
@@ -51333,7 +51730,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51333
51730
|
};
|
|
51334
51731
|
}); // ======================== Render ========================
|
|
51335
51732
|
|
|
51336
|
-
var mergedStyle =
|
|
51733
|
+
var mergedStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, stretchStyle), {}, {
|
|
51337
51734
|
zIndex: zIndex,
|
|
51338
51735
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
51339
51736
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -51354,7 +51751,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51354
51751
|
}, children);
|
|
51355
51752
|
}
|
|
51356
51753
|
|
|
51357
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51754
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
51358
51755
|
visible: visible,
|
|
51359
51756
|
ref: elementRef,
|
|
51360
51757
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51382,7 +51779,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51382
51779
|
onMouseLeave: onMouseLeave,
|
|
51383
51780
|
onMouseDownCapture: onMouseDown,
|
|
51384
51781
|
onTouchStartCapture: onTouchStart,
|
|
51385
|
-
style:
|
|
51782
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), mergedStyle)
|
|
51386
51783
|
}, childNode));
|
|
51387
51784
|
});
|
|
51388
51785
|
});
|
|
@@ -51417,7 +51814,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51417
51814
|
};
|
|
51418
51815
|
}); // ======================== Render ========================
|
|
51419
51816
|
|
|
51420
|
-
var mergedStyle =
|
|
51817
|
+
var mergedStyle = objectSpread2_objectSpread2({
|
|
51421
51818
|
zIndex: zIndex
|
|
51422
51819
|
}, popupStyle);
|
|
51423
51820
|
|
|
@@ -51434,7 +51831,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51434
51831
|
childNode = popupRender(childNode);
|
|
51435
51832
|
}
|
|
51436
51833
|
|
|
51437
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51834
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
51438
51835
|
visible: visible,
|
|
51439
51836
|
ref: elementRef,
|
|
51440
51837
|
removeOnLeave: true
|
|
@@ -51445,7 +51842,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51445
51842
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51446
51843
|
ref: motionRef,
|
|
51447
51844
|
className: mergedClassName,
|
|
51448
|
-
style:
|
|
51845
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), mergedStyle)
|
|
51449
51846
|
}, childNode);
|
|
51450
51847
|
});
|
|
51451
51848
|
});
|
|
@@ -51466,19 +51863,19 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51466
51863
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51467
51864
|
var visible = _ref.visible,
|
|
51468
51865
|
mobile = _ref.mobile,
|
|
51469
|
-
props =
|
|
51866
|
+
props = esm_objectWithoutProperties_objectWithoutProperties(_ref, Popup_excluded);
|
|
51470
51867
|
|
|
51471
51868
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51472
|
-
_useState2 =
|
|
51869
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
51473
51870
|
innerVisible = _useState2[0],
|
|
51474
51871
|
serInnerVisible = _useState2[1];
|
|
51475
51872
|
|
|
51476
51873
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
51477
|
-
_useState4 =
|
|
51874
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
51478
51875
|
inMobile = _useState4[0],
|
|
51479
51876
|
setInMobile = _useState4[1];
|
|
51480
51877
|
|
|
51481
|
-
var cloneProps =
|
|
51878
|
+
var cloneProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
51482
51879
|
visible: innerVisible
|
|
51483
51880
|
}); // We check mobile in visible changed here.
|
|
51484
51881
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51491,10 +51888,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51491
51888
|
setInMobile(isMobile());
|
|
51492
51889
|
}
|
|
51493
51890
|
}, [visible, mobile]);
|
|
51494
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51891
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, esm_extends_extends({}, cloneProps, {
|
|
51495
51892
|
mobile: mobile,
|
|
51496
51893
|
ref: ref
|
|
51497
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51894
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, esm_extends_extends({}, cloneProps, {
|
|
51498
51895
|
ref: ref
|
|
51499
51896
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51500
51897
|
|
|
@@ -51548,14 +51945,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51548
51945
|
|
|
51549
51946
|
function generateTrigger(PortalComponent) {
|
|
51550
51947
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51551
|
-
|
|
51948
|
+
inherits_inherits(Trigger, _React$Component);
|
|
51552
51949
|
|
|
51553
|
-
var _super =
|
|
51950
|
+
var _super = createSuper_createSuper(Trigger);
|
|
51554
51951
|
|
|
51555
51952
|
function Trigger(props) {
|
|
51556
51953
|
var _this;
|
|
51557
51954
|
|
|
51558
|
-
|
|
51955
|
+
classCallCheck_classCallCheck(this, Trigger);
|
|
51559
51956
|
|
|
51560
51957
|
_this = _super.call(this, props);
|
|
51561
51958
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -51743,7 +52140,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51743
52140
|
} catch (err) {// Do nothing
|
|
51744
52141
|
}
|
|
51745
52142
|
|
|
51746
|
-
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(
|
|
52143
|
+
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(assertThisInitialized_assertThisInitialized(_this));
|
|
51747
52144
|
};
|
|
51748
52145
|
|
|
51749
52146
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -51804,7 +52201,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51804
52201
|
|
|
51805
52202
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
51806
52203
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
51807
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup,
|
|
52204
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup, esm_extends_extends({
|
|
51808
52205
|
prefixCls: prefixCls,
|
|
51809
52206
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
51810
52207
|
visible: popupVisible,
|
|
@@ -51917,7 +52314,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51917
52314
|
return _this;
|
|
51918
52315
|
}
|
|
51919
52316
|
|
|
51920
|
-
|
|
52317
|
+
createClass_createClass(Trigger, [{
|
|
51921
52318
|
key: "componentDidMount",
|
|
51922
52319
|
value: function componentDidMount() {
|
|
51923
52320
|
this.componentDidUpdate();
|
|
@@ -52242,7 +52639,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52242
52639
|
newChildProps.className = childrenClassName;
|
|
52243
52640
|
}
|
|
52244
52641
|
|
|
52245
|
-
var cloneProps =
|
|
52642
|
+
var cloneProps = objectSpread2_objectSpread2({}, newChildProps);
|
|
52246
52643
|
|
|
52247
52644
|
if (supportRef(child)) {
|
|
52248
52645
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -56625,14 +57022,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56625
57022
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56626
57023
|
var className = _ref.className,
|
|
56627
57024
|
children = _ref.children,
|
|
56628
|
-
restProps =
|
|
57025
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56629
57026
|
|
|
56630
57027
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56631
57028
|
prefixCls = _React$useContext.prefixCls,
|
|
56632
57029
|
mode = _React$useContext.mode,
|
|
56633
57030
|
rtl = _React$useContext.rtl;
|
|
56634
57031
|
|
|
56635
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
57032
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", esm_extends_extends({
|
|
56636
57033
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56637
57034
|
}, restProps, {
|
|
56638
57035
|
"data-menu-list": true,
|
|
@@ -56745,15 +57142,15 @@ function PopupTrigger(_ref) {
|
|
|
56745
57142
|
defaultMotions = _React$useContext.defaultMotions;
|
|
56746
57143
|
|
|
56747
57144
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
56748
|
-
_React$useState2 =
|
|
57145
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
56749
57146
|
innerVisible = _React$useState2[0],
|
|
56750
57147
|
setInnerVisible = _React$useState2[1];
|
|
56751
57148
|
|
|
56752
|
-
var placement = rtl ?
|
|
57149
|
+
var placement = rtl ? objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, placementsRtl), builtinPlacements) : objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, placements), builtinPlacements);
|
|
56753
57150
|
var popupPlacement = popupPlacementMap[mode];
|
|
56754
57151
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
56755
57152
|
|
|
56756
|
-
var mergedMotion =
|
|
57153
|
+
var mergedMotion = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, targetMotion), {}, {
|
|
56757
57154
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
56758
57155
|
removeOnLeave: false,
|
|
56759
57156
|
motionAppear: true
|
|
@@ -56771,7 +57168,7 @@ function PopupTrigger(_ref) {
|
|
|
56771
57168
|
}, [visible]);
|
|
56772
57169
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
56773
57170
|
prefixCls: prefixCls,
|
|
56774
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
57171
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), defineProperty_defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
56775
57172
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
56776
57173
|
getPopupContainer: getPopupContainer,
|
|
56777
57174
|
builtinPlacements: placement,
|
|
@@ -56818,7 +57215,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56818
57215
|
// The inline list should remove when motion end.
|
|
56819
57216
|
|
|
56820
57217
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(!sameModeRef.current),
|
|
56821
|
-
_React$useState2 =
|
|
57218
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
56822
57219
|
destroy = _React$useState2[0],
|
|
56823
57220
|
setDestroy = _React$useState2[1];
|
|
56824
57221
|
|
|
@@ -56831,7 +57228,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56831
57228
|
}
|
|
56832
57229
|
}, [mode]); // ================================= Render =================================
|
|
56833
57230
|
|
|
56834
|
-
var mergedMotion =
|
|
57231
|
+
var mergedMotion = objectSpread2_objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
56835
57232
|
|
|
56836
57233
|
|
|
56837
57234
|
if (keyPath.length > 1) {
|
|
@@ -56856,7 +57253,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56856
57253
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
56857
57254
|
mode: fixedMode,
|
|
56858
57255
|
locked: !sameModeRef.current
|
|
56859
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
57256
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
56860
57257
|
visible: mergedOpen
|
|
56861
57258
|
}, mergedMotion, {
|
|
56862
57259
|
forceRender: forceSubMenuRender,
|
|
@@ -56919,7 +57316,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56919
57316
|
onTitleClick = props.onTitleClick,
|
|
56920
57317
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
56921
57318
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
56922
|
-
restProps =
|
|
57319
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, SubMenu_excluded);
|
|
56923
57320
|
|
|
56924
57321
|
var domDataId = useMenuId(eventKey);
|
|
56925
57322
|
|
|
@@ -56962,11 +57359,11 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56962
57359
|
|
|
56963
57360
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
56964
57361
|
active = _useActive.active,
|
|
56965
|
-
activeProps =
|
|
57362
|
+
activeProps = esm_objectWithoutProperties_objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
56966
57363
|
|
|
56967
57364
|
|
|
56968
57365
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
56969
|
-
_React$useState2 =
|
|
57366
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
56970
57367
|
childrenActive = _React$useState2[0],
|
|
56971
57368
|
setChildrenActive = _React$useState2[1];
|
|
56972
57369
|
|
|
@@ -57047,7 +57444,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57047
57444
|
|
|
57048
57445
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
57049
57446
|
|
|
57050
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
57447
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
57051
57448
|
role: "menuitem",
|
|
57052
57449
|
style: directionStyle,
|
|
57053
57450
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -57063,7 +57460,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57063
57460
|
onFocus: onInternalFocus
|
|
57064
57461
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
57065
57462
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
57066
|
-
props:
|
|
57463
|
+
props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
57067
57464
|
isOpen: open,
|
|
57068
57465
|
// [Legacy] Not sure why need this mark
|
|
57069
57466
|
isSubMenu: true
|
|
@@ -57101,12 +57498,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57101
57498
|
} // >>>>> List node
|
|
57102
57499
|
|
|
57103
57500
|
|
|
57104
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
57501
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, esm_extends_extends({
|
|
57105
57502
|
role: "none"
|
|
57106
57503
|
}, restProps, {
|
|
57107
57504
|
component: "li",
|
|
57108
57505
|
style: style,
|
|
57109
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
57506
|
+
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-open"), open), defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-active"), mergedActive), defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-selected"), childrenSelected), defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-disabled"), mergedDisabled), _classNames)),
|
|
57110
57507
|
onMouseEnter: onInternalMouseEnter,
|
|
57111
57508
|
onMouseLeave: onInternalMouseLeave
|
|
57112
57509
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -57199,7 +57596,7 @@ function focusable(node) {
|
|
|
57199
57596
|
function getFocusNodeList(node) {
|
|
57200
57597
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
57201
57598
|
|
|
57202
|
-
var res =
|
|
57599
|
+
var res = toConsumableArray_toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
57203
57600
|
return focusable(child, includePositive);
|
|
57204
57601
|
});
|
|
57205
57602
|
|