@x-edu/live-player 0.0.38 → 0.0.39
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 +293 -634
- package/package.json +1 -1
|
@@ -2764,13 +2764,14 @@ ___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}", ""]);
|
|
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}", ""]);
|
|
2768
2768
|
// Exports
|
|
2769
2769
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2770
2770
|
"container": "index-module_container_y+him",
|
|
2771
2771
|
"mobile": "index-module_mobile_fjd59",
|
|
2772
2772
|
"list": "index-module_list_KQnlU",
|
|
2773
|
-
"mobileLoadMore": "index-module_mobileLoadMore_43-yu"
|
|
2773
|
+
"mobileLoadMore": "index-module_mobileLoadMore_43-yu",
|
|
2774
|
+
"padList": "index-module_padList_YQpXl"
|
|
2774
2775
|
};
|
|
2775
2776
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2776
2777
|
|
|
@@ -25734,13 +25735,6 @@ module.exports = styleTagTransform;
|
|
|
25734
25735
|
|
|
25735
25736
|
/***/ }),
|
|
25736
25737
|
|
|
25737
|
-
/***/ 5273:
|
|
25738
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25739
|
-
|
|
25740
|
-
module.exports = __webpack_require__(5666);
|
|
25741
|
-
|
|
25742
|
-
/***/ }),
|
|
25743
|
-
|
|
25744
25738
|
/***/ 3006:
|
|
25745
25739
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25746
25740
|
|
|
@@ -26779,18 +26773,20 @@ var config = {
|
|
|
26779
26773
|
/* harmony export */ "GF": function() { return /* binding */ isInWX; },
|
|
26780
26774
|
/* harmony export */ "uJ": function() { return /* binding */ xElectron; },
|
|
26781
26775
|
/* harmony export */ "IC": function() { return /* binding */ isInElectron; },
|
|
26782
|
-
/* harmony export */ "Df": function() { return /* binding */ isInMobile; }
|
|
26776
|
+
/* harmony export */ "Df": function() { return /* binding */ isInMobile; },
|
|
26777
|
+
/* harmony export */ "Td": function() { return /* binding */ isPadMode; }
|
|
26783
26778
|
/* harmony export */ });
|
|
26784
|
-
/* unused harmony
|
|
26779
|
+
/* unused harmony exports inIpad, isHarmonyOS, isHarmonyOSTablet, isHdDevice, detectDeviceType, detectDeviceTypes, isDeviceTablet */
|
|
26785
26780
|
var ua = window.navigator.userAgent.toLowerCase();
|
|
26786
26781
|
function isInWX() {
|
|
26787
26782
|
return ua.indexOf('micromessenger') > -1;
|
|
26788
26783
|
} // 判断是否在electron环境中
|
|
26789
26784
|
|
|
26790
|
-
var
|
|
26791
|
-
|
|
26785
|
+
var global = window.rawWindow || window;
|
|
26786
|
+
var xElectron = global.xElectron;
|
|
26787
|
+
|
|
26788
|
+
var isInElectron = !!xElectron; // export const isInElectron = true
|
|
26792
26789
|
|
|
26793
|
-
var isInElectron = !!xElectron;
|
|
26794
26790
|
function inIpad() {
|
|
26795
26791
|
var _window$navigator;
|
|
26796
26792
|
|
|
@@ -26805,6 +26801,68 @@ function inIpad() {
|
|
|
26805
26801
|
function isInMobile() {
|
|
26806
26802
|
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);
|
|
26807
26803
|
}
|
|
26804
|
+
function isHarmonyOS() {
|
|
26805
|
+
return /arkweb/.test(ua) || /framecubeapp/.test(ua);
|
|
26806
|
+
} // 是否是鸿蒙平板
|
|
26807
|
+
|
|
26808
|
+
function isHarmonyOSTablet() {
|
|
26809
|
+
var screenWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.screen.width;
|
|
26810
|
+
return isHarmonyOS() && screenWidth >= 768;
|
|
26811
|
+
} // 是否是平板
|
|
26812
|
+
|
|
26813
|
+
var isHdDevice = function isHdDevice() {
|
|
26814
|
+
var userAgent = navigator.userAgent.toLowerCase();
|
|
26815
|
+
return /.hd./.test(userAgent);
|
|
26816
|
+
}; // 为了提高准确性,可以结合多种方法来检测设备类型。
|
|
26817
|
+
|
|
26818
|
+
function detectDeviceType() {
|
|
26819
|
+
var userAgent = navigator.userAgent.toLowerCase();
|
|
26820
|
+
console.log('userAgent_________', userAgent);
|
|
26821
|
+
var isHd = isHdDevice();
|
|
26822
|
+
var isTabletUA = /ipad|tablet|playbook|silk/.test(userAgent) && !/mobile/.test(userAgent);
|
|
26823
|
+
var isMobileUA = /iphone|android|windows phone|ipod|blackberry|iemobile|opera mini/.test(userAgent);
|
|
26824
|
+
var screenWidth = window.screen.width;
|
|
26825
|
+
var screenHeight = window.screen.height;
|
|
26826
|
+
console.log('screenWidth_____', screenWidth);
|
|
26827
|
+
console.log('screenHeight________', screenHeight);
|
|
26828
|
+
var isTabletSize = screenWidth >= 768 && screenWidth <= 1024 && screenHeight >= 768 && screenHeight <= 1024;
|
|
26829
|
+
var isMobileSize = window.innerWidth <= 800 && window.innerHeight <= 600;
|
|
26830
|
+
var touchPoints = navigator.maxTouchPoints || 0;
|
|
26831
|
+
|
|
26832
|
+
if (isHd || isTabletUA || isTabletSize && touchPoints > 2) {
|
|
26833
|
+
return 'tablet';
|
|
26834
|
+
} else if (isMobileUA || isMobileSize && touchPoints <= 2) {
|
|
26835
|
+
return 'mobile';
|
|
26836
|
+
} else if (inIpad()) {
|
|
26837
|
+
return 'tablet';
|
|
26838
|
+
} else {
|
|
26839
|
+
return 'other';
|
|
26840
|
+
}
|
|
26841
|
+
} // 设备类型
|
|
26842
|
+
|
|
26843
|
+
var detectDeviceTypes = {
|
|
26844
|
+
tablet: 'tablet',
|
|
26845
|
+
// 平板
|
|
26846
|
+
mobile: 'mobile',
|
|
26847
|
+
// 手机
|
|
26848
|
+
other: 'other' // 其他
|
|
26849
|
+
|
|
26850
|
+
}; // 是否是平板
|
|
26851
|
+
|
|
26852
|
+
function isDeviceTablet() {
|
|
26853
|
+
var device = detectDeviceType();
|
|
26854
|
+
console.log('device____________', device);
|
|
26855
|
+
return device === detectDeviceTypes.tablet;
|
|
26856
|
+
}
|
|
26857
|
+
function isPadMode() {
|
|
26858
|
+
var width = window.innerWidth;
|
|
26859
|
+
var padMode = isHarmonyOSTablet(width) || isDeviceTablet(); // 如果不在 app 中,宽度>=768时,也显示平板样式
|
|
26860
|
+
// if (!SMARTCAN && width >= 768) {
|
|
26861
|
+
// padMode = true
|
|
26862
|
+
// }
|
|
26863
|
+
|
|
26864
|
+
return padMode;
|
|
26865
|
+
}
|
|
26808
26866
|
|
|
26809
26867
|
/***/ }),
|
|
26810
26868
|
|
|
@@ -27221,7 +27279,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAFgCAYAAABn
|
|
|
27221
27279
|
/***/ (function(module) {
|
|
27222
27280
|
|
|
27223
27281
|
"use strict";
|
|
27224
|
-
module.exports = JSON.parse('{"_args":[["axios@0.21.4","
|
|
27282
|
+
module.exports = JSON.parse('{"_args":[["axios@0.21.4","/Users/githoniel/Desktop/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":"/Users/githoniel/Desktop/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"}');
|
|
27225
27283
|
|
|
27226
27284
|
/***/ })
|
|
27227
27285
|
|
|
@@ -34359,129 +34417,6 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34359
34417
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34360
34418
|
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34361
34419
|
}
|
|
34362
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34363
|
-
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
34364
|
-
if (!(instance instanceof Constructor)) {
|
|
34365
|
-
throw new TypeError("Cannot call a class as a function");
|
|
34366
|
-
}
|
|
34367
|
-
}
|
|
34368
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
34369
|
-
function createClass_defineProperties(target, props) {
|
|
34370
|
-
for (var i = 0; i < props.length; i++) {
|
|
34371
|
-
var descriptor = props[i];
|
|
34372
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
34373
|
-
descriptor.configurable = true;
|
|
34374
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34375
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34376
|
-
}
|
|
34377
|
-
}
|
|
34378
|
-
|
|
34379
|
-
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
34380
|
-
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
34381
|
-
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
34382
|
-
return Constructor;
|
|
34383
|
-
}
|
|
34384
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
34385
|
-
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
34386
|
-
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
34387
|
-
o.__proto__ = p;
|
|
34388
|
-
return o;
|
|
34389
|
-
};
|
|
34390
|
-
|
|
34391
|
-
return setPrototypeOf_setPrototypeOf(o, p);
|
|
34392
|
-
}
|
|
34393
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
34394
|
-
|
|
34395
|
-
function inherits_inherits(subClass, superClass) {
|
|
34396
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
34397
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
34398
|
-
}
|
|
34399
|
-
|
|
34400
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
34401
|
-
constructor: {
|
|
34402
|
-
value: subClass,
|
|
34403
|
-
writable: true,
|
|
34404
|
-
configurable: true
|
|
34405
|
-
}
|
|
34406
|
-
});
|
|
34407
|
-
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
34408
|
-
}
|
|
34409
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
34410
|
-
function getPrototypeOf_getPrototypeOf(o) {
|
|
34411
|
-
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
34412
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
34413
|
-
};
|
|
34414
|
-
return getPrototypeOf_getPrototypeOf(o);
|
|
34415
|
-
}
|
|
34416
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
34417
|
-
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
34418
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
34419
|
-
if (Reflect.construct.sham) return false;
|
|
34420
|
-
if (typeof Proxy === "function") return true;
|
|
34421
|
-
|
|
34422
|
-
try {
|
|
34423
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
34424
|
-
return true;
|
|
34425
|
-
} catch (e) {
|
|
34426
|
-
return false;
|
|
34427
|
-
}
|
|
34428
|
-
}
|
|
34429
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
34430
|
-
function esm_typeof_typeof(obj) {
|
|
34431
|
-
"@babel/helpers - typeof";
|
|
34432
|
-
|
|
34433
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
34434
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
34435
|
-
return typeof obj;
|
|
34436
|
-
};
|
|
34437
|
-
} else {
|
|
34438
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
34439
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
34440
|
-
};
|
|
34441
|
-
}
|
|
34442
|
-
|
|
34443
|
-
return esm_typeof_typeof(obj);
|
|
34444
|
-
}
|
|
34445
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
34446
|
-
function assertThisInitialized_assertThisInitialized(self) {
|
|
34447
|
-
if (self === void 0) {
|
|
34448
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34449
|
-
}
|
|
34450
|
-
|
|
34451
|
-
return self;
|
|
34452
|
-
}
|
|
34453
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
34454
|
-
|
|
34455
|
-
|
|
34456
|
-
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
34457
|
-
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
34458
|
-
return call;
|
|
34459
|
-
} else if (call !== void 0) {
|
|
34460
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
34461
|
-
}
|
|
34462
|
-
|
|
34463
|
-
return assertThisInitialized_assertThisInitialized(self);
|
|
34464
|
-
}
|
|
34465
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
34466
|
-
|
|
34467
|
-
|
|
34468
|
-
|
|
34469
|
-
function createSuper_createSuper(Derived) {
|
|
34470
|
-
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
34471
|
-
return function _createSuperInternal() {
|
|
34472
|
-
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
34473
|
-
result;
|
|
34474
|
-
|
|
34475
|
-
if (hasNativeReflectConstruct) {
|
|
34476
|
-
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
34477
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
34478
|
-
} else {
|
|
34479
|
-
result = Super.apply(this, arguments);
|
|
34480
|
-
}
|
|
34481
|
-
|
|
34482
|
-
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
34483
|
-
};
|
|
34484
|
-
}
|
|
34485
34420
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34486
34421
|
var raf = function raf(callback) {
|
|
34487
34422
|
return +setTimeout(callback, 16);
|
|
@@ -34707,47 +34642,6 @@ var cacheStyle = {};
|
|
|
34707
34642
|
}
|
|
34708
34643
|
}
|
|
34709
34644
|
});
|
|
34710
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34711
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34712
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
34713
|
-
|
|
34714
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34715
|
-
arr2[i] = arr[i];
|
|
34716
|
-
}
|
|
34717
|
-
|
|
34718
|
-
return arr2;
|
|
34719
|
-
}
|
|
34720
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34721
|
-
|
|
34722
|
-
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34723
|
-
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34724
|
-
}
|
|
34725
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34726
|
-
function iterableToArray_iterableToArray(iter) {
|
|
34727
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34728
|
-
}
|
|
34729
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34730
|
-
|
|
34731
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34732
|
-
if (!o) return;
|
|
34733
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34734
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34735
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34736
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34737
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34738
|
-
}
|
|
34739
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34740
|
-
function nonIterableSpread_nonIterableSpread() {
|
|
34741
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34742
|
-
}
|
|
34743
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34744
|
-
|
|
34745
|
-
|
|
34746
|
-
|
|
34747
|
-
|
|
34748
|
-
function toConsumableArray_toConsumableArray(arr) {
|
|
34749
|
-
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34750
|
-
}
|
|
34751
34645
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34752
34646
|
|
|
34753
34647
|
|
|
@@ -34764,7 +34658,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34764
34658
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34765
34659
|
var _this = this;
|
|
34766
34660
|
|
|
34767
|
-
|
|
34661
|
+
_classCallCheck(this, ScrollLocker);
|
|
34768
34662
|
|
|
34769
34663
|
this.lockTarget = void 0;
|
|
34770
34664
|
this.options = void 0;
|
|
@@ -34812,7 +34706,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34812
34706
|
var options = _ref3.options;
|
|
34813
34707
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34814
34708
|
})) {
|
|
34815
|
-
locks = [].concat(
|
|
34709
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34816
34710
|
target: _this.lockTarget,
|
|
34817
34711
|
options: _this.options
|
|
34818
34712
|
}]);
|
|
@@ -34850,7 +34744,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34850
34744
|
container.className = addClassName.trim();
|
|
34851
34745
|
}
|
|
34852
34746
|
|
|
34853
|
-
locks = [].concat(
|
|
34747
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34854
34748
|
target: _this.lockTarget,
|
|
34855
34749
|
options: _this.options
|
|
34856
34750
|
}]);
|
|
@@ -34934,7 +34828,7 @@ var getParent = function getParent(getContainer) {
|
|
|
34934
34828
|
return getContainer();
|
|
34935
34829
|
}
|
|
34936
34830
|
|
|
34937
|
-
if (
|
|
34831
|
+
if (typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
34938
34832
|
return getContainer;
|
|
34939
34833
|
}
|
|
34940
34834
|
}
|
|
@@ -34943,14 +34837,14 @@ var getParent = function getParent(getContainer) {
|
|
|
34943
34837
|
};
|
|
34944
34838
|
|
|
34945
34839
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
34946
|
-
|
|
34840
|
+
_inherits(PortalWrapper, _React$Component);
|
|
34947
34841
|
|
|
34948
|
-
var _super =
|
|
34842
|
+
var _super = _createSuper(PortalWrapper);
|
|
34949
34843
|
|
|
34950
34844
|
function PortalWrapper(props) {
|
|
34951
34845
|
var _this;
|
|
34952
34846
|
|
|
34953
|
-
|
|
34847
|
+
_classCallCheck(this, PortalWrapper);
|
|
34954
34848
|
|
|
34955
34849
|
_this = _super.call(this, props);
|
|
34956
34850
|
_this.container = void 0;
|
|
@@ -35070,7 +34964,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35070
34964
|
return _this;
|
|
35071
34965
|
}
|
|
35072
34966
|
|
|
35073
|
-
|
|
34967
|
+
_createClass(PortalWrapper, [{
|
|
35074
34968
|
key: "componentDidMount",
|
|
35075
34969
|
value: function componentDidMount() {
|
|
35076
34970
|
var _this2 = this;
|
|
@@ -35138,125 +35032,6 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35138
35032
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
35139
35033
|
|
|
35140
35034
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
35141
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
35142
|
-
function esm_extends_extends() {
|
|
35143
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
35144
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
35145
|
-
var source = arguments[i];
|
|
35146
|
-
|
|
35147
|
-
for (var key in source) {
|
|
35148
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
35149
|
-
target[key] = source[key];
|
|
35150
|
-
}
|
|
35151
|
-
}
|
|
35152
|
-
}
|
|
35153
|
-
|
|
35154
|
-
return target;
|
|
35155
|
-
};
|
|
35156
|
-
|
|
35157
|
-
return esm_extends_extends.apply(this, arguments);
|
|
35158
|
-
}
|
|
35159
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
35160
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
35161
|
-
if (key in obj) {
|
|
35162
|
-
Object.defineProperty(obj, key, {
|
|
35163
|
-
value: value,
|
|
35164
|
-
enumerable: true,
|
|
35165
|
-
configurable: true,
|
|
35166
|
-
writable: true
|
|
35167
|
-
});
|
|
35168
|
-
} else {
|
|
35169
|
-
obj[key] = value;
|
|
35170
|
-
}
|
|
35171
|
-
|
|
35172
|
-
return obj;
|
|
35173
|
-
}
|
|
35174
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
35175
|
-
|
|
35176
|
-
|
|
35177
|
-
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
35178
|
-
var keys = Object.keys(object);
|
|
35179
|
-
|
|
35180
|
-
if (Object.getOwnPropertySymbols) {
|
|
35181
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
35182
|
-
|
|
35183
|
-
if (enumerableOnly) {
|
|
35184
|
-
symbols = symbols.filter(function (sym) {
|
|
35185
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
35186
|
-
});
|
|
35187
|
-
}
|
|
35188
|
-
|
|
35189
|
-
keys.push.apply(keys, symbols);
|
|
35190
|
-
}
|
|
35191
|
-
|
|
35192
|
-
return keys;
|
|
35193
|
-
}
|
|
35194
|
-
|
|
35195
|
-
function objectSpread2_objectSpread2(target) {
|
|
35196
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
35197
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
35198
|
-
|
|
35199
|
-
if (i % 2) {
|
|
35200
|
-
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
35201
|
-
defineProperty_defineProperty(target, key, source[key]);
|
|
35202
|
-
});
|
|
35203
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
35204
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
35205
|
-
} else {
|
|
35206
|
-
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
35207
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
35208
|
-
});
|
|
35209
|
-
}
|
|
35210
|
-
}
|
|
35211
|
-
|
|
35212
|
-
return target;
|
|
35213
|
-
}
|
|
35214
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
35215
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
35216
|
-
if (Array.isArray(arr)) return arr;
|
|
35217
|
-
}
|
|
35218
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
35219
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
35220
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
35221
|
-
|
|
35222
|
-
if (_i == null) return;
|
|
35223
|
-
var _arr = [];
|
|
35224
|
-
var _n = true;
|
|
35225
|
-
var _d = false;
|
|
35226
|
-
|
|
35227
|
-
var _s, _e;
|
|
35228
|
-
|
|
35229
|
-
try {
|
|
35230
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
35231
|
-
_arr.push(_s.value);
|
|
35232
|
-
|
|
35233
|
-
if (i && _arr.length === i) break;
|
|
35234
|
-
}
|
|
35235
|
-
} catch (err) {
|
|
35236
|
-
_d = true;
|
|
35237
|
-
_e = err;
|
|
35238
|
-
} finally {
|
|
35239
|
-
try {
|
|
35240
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
35241
|
-
} finally {
|
|
35242
|
-
if (_d) throw _e;
|
|
35243
|
-
}
|
|
35244
|
-
}
|
|
35245
|
-
|
|
35246
|
-
return _arr;
|
|
35247
|
-
}
|
|
35248
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
35249
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
35250
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
35251
|
-
}
|
|
35252
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
35253
|
-
|
|
35254
|
-
|
|
35255
|
-
|
|
35256
|
-
|
|
35257
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
35258
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
35259
|
-
}
|
|
35260
35035
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
35261
35036
|
/**
|
|
35262
35037
|
* @ignore
|
|
@@ -36906,8 +36681,8 @@ function Mask(props) {
|
|
|
36906
36681
|
}, function (_ref) {
|
|
36907
36682
|
var motionClassName = _ref.className,
|
|
36908
36683
|
motionStyle = _ref.style;
|
|
36909
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36910
|
-
style:
|
|
36684
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36685
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), style),
|
|
36911
36686
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36912
36687
|
}, maskProps));
|
|
36913
36688
|
});
|
|
@@ -37032,7 +36807,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
37032
36807
|
}); // ============================= Style ==============================
|
|
37033
36808
|
|
|
37034
36809
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
37035
|
-
_React$useState2 =
|
|
36810
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
37036
36811
|
transformOrigin = _React$useState2[0],
|
|
37037
36812
|
setTransformOrigin = _React$useState2[1];
|
|
37038
36813
|
|
|
@@ -37090,7 +36865,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
37090
36865
|
|
|
37091
36866
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
37092
36867
|
className: "".concat(prefixCls, "-content")
|
|
37093
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36868
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37094
36869
|
className: "".concat(prefixCls, "-body"),
|
|
37095
36870
|
style: bodyStyle
|
|
37096
36871
|
}, bodyProps), children), footerNode);
|
|
@@ -37110,7 +36885,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
37110
36885
|
key: "dialog-element",
|
|
37111
36886
|
role: "document",
|
|
37112
36887
|
ref: motionRef,
|
|
37113
|
-
style:
|
|
36888
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionStyle), style), contentStyle),
|
|
37114
36889
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
37115
36890
|
onMouseDown: onMouseDown,
|
|
37116
36891
|
onMouseUp: onMouseUp
|
|
@@ -37178,7 +36953,7 @@ function Dialog(props) {
|
|
|
37178
36953
|
var contentRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
37179
36954
|
|
|
37180
36955
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(visible),
|
|
37181
|
-
_React$useState2 =
|
|
36956
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
37182
36957
|
animatedVisible = _React$useState2[0],
|
|
37183
36958
|
setAnimatedVisible = _React$useState2[1]; // ========================== Init ==========================
|
|
37184
36959
|
|
|
@@ -37292,7 +37067,7 @@ function Dialog(props) {
|
|
|
37292
37067
|
return function () {};
|
|
37293
37068
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
37294
37069
|
|
|
37295
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37070
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37296
37071
|
className: "".concat(prefixCls, "-root")
|
|
37297
37072
|
}, pickAttrs(props, {
|
|
37298
37073
|
data: true
|
|
@@ -37300,11 +37075,11 @@ function Dialog(props) {
|
|
|
37300
37075
|
prefixCls: prefixCls,
|
|
37301
37076
|
visible: mask && visible,
|
|
37302
37077
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
37303
|
-
style:
|
|
37078
|
+
style: _objectSpread2({
|
|
37304
37079
|
zIndex: zIndex
|
|
37305
37080
|
}, maskStyle),
|
|
37306
37081
|
maskProps: maskProps
|
|
37307
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37082
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37308
37083
|
tabIndex: -1,
|
|
37309
37084
|
onKeyDown: onWrapperKeyDown,
|
|
37310
37085
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -37312,12 +37087,12 @@ function Dialog(props) {
|
|
|
37312
37087
|
onClick: onWrapperClick,
|
|
37313
37088
|
role: "dialog",
|
|
37314
37089
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
37315
|
-
style:
|
|
37090
|
+
style: _objectSpread2(_objectSpread2({
|
|
37316
37091
|
zIndex: zIndex
|
|
37317
37092
|
}, wrapStyle), {}, {
|
|
37318
37093
|
display: !animatedVisible ? 'none' : null
|
|
37319
37094
|
})
|
|
37320
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
37095
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, extends_extends({}, props, {
|
|
37321
37096
|
onMouseDown: onContentMouseDown,
|
|
37322
37097
|
onMouseUp: onContentMouseUp,
|
|
37323
37098
|
ref: contentRef,
|
|
@@ -44951,44 +44726,40 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
44951
44726
|
|
|
44952
44727
|
|
|
44953
44728
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
44954
|
-
function
|
|
44955
|
-
|
|
44729
|
+
function esm_extends_extends() {
|
|
44730
|
+
esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
44956
44731
|
for (var i = 1; i < arguments.length; i++) {
|
|
44957
44732
|
var source = arguments[i];
|
|
44958
|
-
|
|
44959
44733
|
for (var key in source) {
|
|
44960
44734
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44961
44735
|
target[key] = source[key];
|
|
44962
44736
|
}
|
|
44963
44737
|
}
|
|
44964
44738
|
}
|
|
44965
|
-
|
|
44966
44739
|
return target;
|
|
44967
44740
|
};
|
|
44968
|
-
return
|
|
44741
|
+
return esm_extends_extends.apply(this, arguments);
|
|
44969
44742
|
}
|
|
44970
44743
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
44971
|
-
function
|
|
44744
|
+
function esm_typeof_typeof(obj) {
|
|
44972
44745
|
"@babel/helpers - typeof";
|
|
44973
44746
|
|
|
44974
|
-
return
|
|
44747
|
+
return esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44975
44748
|
return typeof obj;
|
|
44976
44749
|
} : function (obj) {
|
|
44977
44750
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44978
|
-
},
|
|
44751
|
+
}, esm_typeof_typeof(obj);
|
|
44979
44752
|
}
|
|
44980
44753
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
44981
44754
|
|
|
44982
44755
|
function _toPrimitive(input, hint) {
|
|
44983
|
-
if (
|
|
44756
|
+
if (esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
44984
44757
|
var prim = input[Symbol.toPrimitive];
|
|
44985
|
-
|
|
44986
44758
|
if (prim !== undefined) {
|
|
44987
44759
|
var res = prim.call(input, hint || "default");
|
|
44988
|
-
if (
|
|
44760
|
+
if (esm_typeof_typeof(res) !== "object") return res;
|
|
44989
44761
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44990
44762
|
}
|
|
44991
|
-
|
|
44992
44763
|
return (hint === "string" ? String : Number)(input);
|
|
44993
44764
|
}
|
|
44994
44765
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -44996,13 +44767,12 @@ function _toPrimitive(input, hint) {
|
|
|
44996
44767
|
|
|
44997
44768
|
function _toPropertyKey(arg) {
|
|
44998
44769
|
var key = _toPrimitive(arg, "string");
|
|
44999
|
-
return
|
|
44770
|
+
return esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
45000
44771
|
}
|
|
45001
44772
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
45002
44773
|
|
|
45003
|
-
function
|
|
44774
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
45004
44775
|
key = _toPropertyKey(key);
|
|
45005
|
-
|
|
45006
44776
|
if (key in obj) {
|
|
45007
44777
|
Object.defineProperty(obj, key, {
|
|
45008
44778
|
value: value,
|
|
@@ -45013,61 +44783,51 @@ function esm_defineProperty_defineProperty(obj, key, value) {
|
|
|
45013
44783
|
} else {
|
|
45014
44784
|
obj[key] = value;
|
|
45015
44785
|
}
|
|
45016
|
-
|
|
45017
44786
|
return obj;
|
|
45018
44787
|
}
|
|
45019
44788
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
45020
44789
|
|
|
45021
|
-
|
|
45022
|
-
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44790
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
45023
44791
|
var keys = Object.keys(object);
|
|
45024
|
-
|
|
45025
44792
|
if (Object.getOwnPropertySymbols) {
|
|
45026
44793
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
45027
44794
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
45028
44795
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
45029
44796
|
})), keys.push.apply(keys, symbols);
|
|
45030
44797
|
}
|
|
45031
|
-
|
|
45032
44798
|
return keys;
|
|
45033
44799
|
}
|
|
45034
|
-
|
|
45035
|
-
function esm_objectSpread2_objectSpread2(target) {
|
|
44800
|
+
function objectSpread2_objectSpread2(target) {
|
|
45036
44801
|
for (var i = 1; i < arguments.length; i++) {
|
|
45037
44802
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
45038
|
-
i % 2 ?
|
|
45039
|
-
|
|
45040
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
44803
|
+
i % 2 ? objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
44804
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
44805
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
45041
44806
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
45042
44807
|
});
|
|
45043
44808
|
}
|
|
45044
|
-
|
|
45045
44809
|
return target;
|
|
45046
44810
|
}
|
|
45047
44811
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
45048
|
-
function
|
|
44812
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
45049
44813
|
if (Array.isArray(arr)) return arr;
|
|
45050
44814
|
}
|
|
45051
44815
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
45052
|
-
function
|
|
44816
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
45053
44817
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
45054
|
-
|
|
45055
44818
|
if (null != _i) {
|
|
45056
44819
|
var _s,
|
|
45057
|
-
|
|
45058
|
-
|
|
45059
|
-
|
|
45060
|
-
|
|
45061
|
-
|
|
45062
|
-
|
|
45063
|
-
|
|
44820
|
+
_e,
|
|
44821
|
+
_x,
|
|
44822
|
+
_r,
|
|
44823
|
+
_arr = [],
|
|
44824
|
+
_n = !0,
|
|
44825
|
+
_d = !1;
|
|
45064
44826
|
try {
|
|
45065
44827
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
45066
44828
|
if (Object(_i) !== _i) return;
|
|
45067
44829
|
_n = !1;
|
|
45068
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
45069
|
-
;
|
|
45070
|
-
}
|
|
44830
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
45071
44831
|
} catch (err) {
|
|
45072
44832
|
_d = !0, _e = err;
|
|
45073
44833
|
} finally {
|
|
@@ -45077,32 +44837,27 @@ function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
45077
44837
|
if (_d) throw _e;
|
|
45078
44838
|
}
|
|
45079
44839
|
}
|
|
45080
|
-
|
|
45081
44840
|
return _arr;
|
|
45082
44841
|
}
|
|
45083
44842
|
}
|
|
45084
44843
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
45085
|
-
function
|
|
44844
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
45086
44845
|
if (len == null || len > arr.length) len = arr.length;
|
|
45087
|
-
|
|
45088
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
45089
|
-
arr2[i] = arr[i];
|
|
45090
|
-
}
|
|
45091
|
-
|
|
44846
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
45092
44847
|
return arr2;
|
|
45093
44848
|
}
|
|
45094
44849
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
45095
44850
|
|
|
45096
|
-
function
|
|
44851
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
45097
44852
|
if (!o) return;
|
|
45098
|
-
if (typeof o === "string") return
|
|
44853
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
45099
44854
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
45100
44855
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
45101
44856
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
45102
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
44857
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
45103
44858
|
}
|
|
45104
44859
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
45105
|
-
function
|
|
44860
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
45106
44861
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
45107
44862
|
}
|
|
45108
44863
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -45110,8 +44865,8 @@ function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
|
45110
44865
|
|
|
45111
44866
|
|
|
45112
44867
|
|
|
45113
|
-
function
|
|
45114
|
-
return
|
|
44868
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
44869
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
45115
44870
|
}
|
|
45116
44871
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
45117
44872
|
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -45119,13 +44874,11 @@ function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, exclu
|
|
|
45119
44874
|
var target = {};
|
|
45120
44875
|
var sourceKeys = Object.keys(source);
|
|
45121
44876
|
var key, i;
|
|
45122
|
-
|
|
45123
44877
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
45124
44878
|
key = sourceKeys[i];
|
|
45125
44879
|
if (excluded.indexOf(key) >= 0) continue;
|
|
45126
44880
|
target[key] = source[key];
|
|
45127
44881
|
}
|
|
45128
|
-
|
|
45129
44882
|
return target;
|
|
45130
44883
|
}
|
|
45131
44884
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
@@ -45134,10 +44887,8 @@ function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
45134
44887
|
if (source == null) return {};
|
|
45135
44888
|
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
45136
44889
|
var key, i;
|
|
45137
|
-
|
|
45138
44890
|
if (Object.getOwnPropertySymbols) {
|
|
45139
44891
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
45140
|
-
|
|
45141
44892
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
45142
44893
|
key = sourceSymbolKeys[i];
|
|
45143
44894
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -45145,7 +44896,6 @@ function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
45145
44896
|
target[key] = source[key];
|
|
45146
44897
|
}
|
|
45147
44898
|
}
|
|
45148
|
-
|
|
45149
44899
|
return target;
|
|
45150
44900
|
}
|
|
45151
44901
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -46093,14 +45843,14 @@ var index = (function () {
|
|
|
46093
45843
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
46094
45844
|
|
|
46095
45845
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
46096
|
-
|
|
45846
|
+
_inherits(ReactResizeObserver, _React$Component);
|
|
46097
45847
|
|
|
46098
|
-
var _super =
|
|
45848
|
+
var _super = _createSuper(ReactResizeObserver);
|
|
46099
45849
|
|
|
46100
45850
|
function ReactResizeObserver() {
|
|
46101
45851
|
var _this;
|
|
46102
45852
|
|
|
46103
|
-
|
|
45853
|
+
_classCallCheck(this, ReactResizeObserver);
|
|
46104
45854
|
|
|
46105
45855
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46106
45856
|
args[_key] = arguments[_key];
|
|
@@ -46151,7 +45901,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46151
45901
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
46152
45902
|
|
|
46153
45903
|
Promise.resolve().then(function () {
|
|
46154
|
-
onResize(
|
|
45904
|
+
onResize(_objectSpread2(_objectSpread2({}, size), {}, {
|
|
46155
45905
|
offsetWidth: mergedOffsetWidth,
|
|
46156
45906
|
offsetHeight: mergedOffsetHeight
|
|
46157
45907
|
}), target);
|
|
@@ -46167,7 +45917,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46167
45917
|
return _this;
|
|
46168
45918
|
}
|
|
46169
45919
|
|
|
46170
|
-
|
|
45920
|
+
_createClass(ReactResizeObserver, [{
|
|
46171
45921
|
key: "componentDidMount",
|
|
46172
45922
|
value: function componentDidMount() {
|
|
46173
45923
|
this.onComponentUpdated();
|
|
@@ -46281,7 +46031,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46281
46031
|
position: 'relative',
|
|
46282
46032
|
overflow: 'hidden'
|
|
46283
46033
|
};
|
|
46284
|
-
innerStyle =
|
|
46034
|
+
innerStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
46285
46035
|
transform: "translateY(".concat(offset, "px)"),
|
|
46286
46036
|
position: 'absolute',
|
|
46287
46037
|
left: 0,
|
|
@@ -46298,24 +46048,23 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46298
46048
|
onInnerResize();
|
|
46299
46049
|
}
|
|
46300
46050
|
}
|
|
46301
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
46051
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
46302
46052
|
style: innerStyle,
|
|
46303
|
-
className: classnames_default()(
|
|
46053
|
+
className: classnames_default()(defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
46304
46054
|
ref: ref
|
|
46305
46055
|
}, innerProps), children)));
|
|
46306
46056
|
});
|
|
46307
46057
|
Filler.displayName = 'Filler';
|
|
46308
46058
|
/* harmony default export */ var es_Filler = (Filler);
|
|
46309
46059
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
46310
|
-
function
|
|
46060
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
46311
46061
|
if (!(instance instanceof Constructor)) {
|
|
46312
46062
|
throw new TypeError("Cannot call a class as a function");
|
|
46313
46063
|
}
|
|
46314
46064
|
}
|
|
46315
46065
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
46316
46066
|
|
|
46317
|
-
|
|
46318
|
-
function esm_createClass_defineProperties(target, props) {
|
|
46067
|
+
function createClass_defineProperties(target, props) {
|
|
46319
46068
|
for (var i = 0; i < props.length; i++) {
|
|
46320
46069
|
var descriptor = props[i];
|
|
46321
46070
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -46324,30 +46073,28 @@ function esm_createClass_defineProperties(target, props) {
|
|
|
46324
46073
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
46325
46074
|
}
|
|
46326
46075
|
}
|
|
46327
|
-
|
|
46328
|
-
|
|
46329
|
-
if (
|
|
46330
|
-
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
46076
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
46077
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
46078
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
46331
46079
|
Object.defineProperty(Constructor, "prototype", {
|
|
46332
46080
|
writable: false
|
|
46333
46081
|
});
|
|
46334
46082
|
return Constructor;
|
|
46335
46083
|
}
|
|
46336
46084
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
46337
|
-
function
|
|
46338
|
-
|
|
46085
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
46086
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
46339
46087
|
o.__proto__ = p;
|
|
46340
46088
|
return o;
|
|
46341
46089
|
};
|
|
46342
|
-
return
|
|
46090
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
46343
46091
|
}
|
|
46344
46092
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
46345
46093
|
|
|
46346
|
-
function
|
|
46094
|
+
function inherits_inherits(subClass, superClass) {
|
|
46347
46095
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
46348
46096
|
throw new TypeError("Super expression must either be null or a function");
|
|
46349
46097
|
}
|
|
46350
|
-
|
|
46351
46098
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
46352
46099
|
constructor: {
|
|
46353
46100
|
value: subClass,
|
|
@@ -46358,21 +46105,20 @@ function esm_inherits_inherits(subClass, superClass) {
|
|
|
46358
46105
|
Object.defineProperty(subClass, "prototype", {
|
|
46359
46106
|
writable: false
|
|
46360
46107
|
});
|
|
46361
|
-
if (superClass)
|
|
46108
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
46362
46109
|
}
|
|
46363
46110
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
46364
|
-
function
|
|
46365
|
-
|
|
46111
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
46112
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
46366
46113
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46367
46114
|
};
|
|
46368
|
-
return
|
|
46115
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
46369
46116
|
}
|
|
46370
46117
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
46371
|
-
function
|
|
46118
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
46372
46119
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
46373
46120
|
if (Reflect.construct.sham) return false;
|
|
46374
46121
|
if (typeof Proxy === "function") return true;
|
|
46375
|
-
|
|
46376
46122
|
try {
|
|
46377
46123
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
46378
46124
|
return true;
|
|
@@ -46381,43 +46127,39 @@ function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
46381
46127
|
}
|
|
46382
46128
|
}
|
|
46383
46129
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
46384
|
-
function
|
|
46130
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
46385
46131
|
if (self === void 0) {
|
|
46386
46132
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46387
46133
|
}
|
|
46388
|
-
|
|
46389
46134
|
return self;
|
|
46390
46135
|
}
|
|
46391
46136
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
46392
46137
|
|
|
46393
46138
|
|
|
46394
|
-
function
|
|
46395
|
-
if (call && (
|
|
46139
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
46140
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
46396
46141
|
return call;
|
|
46397
46142
|
} else if (call !== void 0) {
|
|
46398
46143
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
46399
46144
|
}
|
|
46400
|
-
|
|
46401
|
-
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
46145
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
46402
46146
|
}
|
|
46403
46147
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
46404
46148
|
|
|
46405
46149
|
|
|
46406
46150
|
|
|
46407
|
-
function
|
|
46408
|
-
var hasNativeReflectConstruct =
|
|
46151
|
+
function createSuper_createSuper(Derived) {
|
|
46152
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
46409
46153
|
return function _createSuperInternal() {
|
|
46410
|
-
var Super =
|
|
46411
|
-
|
|
46412
|
-
|
|
46154
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
46155
|
+
result;
|
|
46413
46156
|
if (hasNativeReflectConstruct) {
|
|
46414
|
-
var NewTarget =
|
|
46157
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
46415
46158
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
46416
46159
|
} else {
|
|
46417
46160
|
result = Super.apply(this, arguments);
|
|
46418
46161
|
}
|
|
46419
|
-
|
|
46420
|
-
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46162
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46421
46163
|
};
|
|
46422
46164
|
}
|
|
46423
46165
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -46492,11 +46234,11 @@ function getPageY(e) {
|
|
|
46492
46234
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
46493
46235
|
}
|
|
46494
46236
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
46495
|
-
|
|
46496
|
-
var _super =
|
|
46237
|
+
inherits_inherits(ScrollBar, _React$Component);
|
|
46238
|
+
var _super = createSuper_createSuper(ScrollBar);
|
|
46497
46239
|
function ScrollBar() {
|
|
46498
46240
|
var _this;
|
|
46499
|
-
|
|
46241
|
+
classCallCheck_classCallCheck(this, ScrollBar);
|
|
46500
46242
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46501
46243
|
args[_key] = arguments[_key];
|
|
46502
46244
|
}
|
|
@@ -46624,7 +46366,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46624
46366
|
};
|
|
46625
46367
|
return _this;
|
|
46626
46368
|
}
|
|
46627
|
-
|
|
46369
|
+
createClass_createClass(ScrollBar, [{
|
|
46628
46370
|
key: "componentDidMount",
|
|
46629
46371
|
value: function componentDidMount() {
|
|
46630
46372
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -46658,7 +46400,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46658
46400
|
var mergedVisible = canScroll && visible;
|
|
46659
46401
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46660
46402
|
ref: this.scrollbarRef,
|
|
46661
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46403
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46662
46404
|
style: {
|
|
46663
46405
|
width: 8,
|
|
46664
46406
|
top: 0,
|
|
@@ -46671,7 +46413,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46671
46413
|
onMouseMove: this.delayHidden
|
|
46672
46414
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46673
46415
|
ref: this.thumbRef,
|
|
46674
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46416
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46675
46417
|
style: {
|
|
46676
46418
|
width: '100%',
|
|
46677
46419
|
height: spinHeight,
|
|
@@ -46750,11 +46492,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46750
46492
|
// Firefox has low performance of map.
|
|
46751
46493
|
var CacheMap = /*#__PURE__*/function () {
|
|
46752
46494
|
function CacheMap() {
|
|
46753
|
-
|
|
46495
|
+
classCallCheck_classCallCheck(this, CacheMap);
|
|
46754
46496
|
this.maps = void 0;
|
|
46755
46497
|
this.maps = Object.create(null);
|
|
46756
46498
|
}
|
|
46757
|
-
|
|
46499
|
+
createClass_createClass(CacheMap, [{
|
|
46758
46500
|
key: "set",
|
|
46759
46501
|
value: function set(key, value) {
|
|
46760
46502
|
this.maps[key] = value;
|
|
@@ -46777,7 +46519,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46777
46519
|
|
|
46778
46520
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46779
46521
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46780
|
-
_React$useState2 =
|
|
46522
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46781
46523
|
updatedMark = _React$useState2[0],
|
|
46782
46524
|
setUpdatedMark = _React$useState2[1];
|
|
46783
46525
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46844,7 +46586,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46844
46586
|
es_raf.cancel(scrollRef.current);
|
|
46845
46587
|
if (typeof arg === 'number') {
|
|
46846
46588
|
syncScrollTop(arg);
|
|
46847
|
-
} else if (arg &&
|
|
46589
|
+
} else if (arg && esm_typeof_typeof(arg) === 'object') {
|
|
46848
46590
|
var index;
|
|
46849
46591
|
var align = arg.align;
|
|
46850
46592
|
if ('index' in arg) {
|
|
@@ -47000,11 +46742,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
47000
46742
|
|
|
47001
46743
|
function useDiffItem(data, getKey, onDiff) {
|
|
47002
46744
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
47003
|
-
_React$useState2 =
|
|
46745
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
47004
46746
|
prevData = _React$useState2[0],
|
|
47005
46747
|
setPrevData = _React$useState2[1];
|
|
47006
46748
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
47007
|
-
_React$useState4 =
|
|
46749
|
+
_React$useState4 = esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
47008
46750
|
diffItem = _React$useState4[0],
|
|
47009
46751
|
setDiffItem = _React$useState4[1];
|
|
47010
46752
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -47019,7 +46761,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
47019
46761
|
}
|
|
47020
46762
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
47021
46763
|
|
|
47022
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
46764
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
47023
46765
|
/* harmony default export */ var isFirefox = (isFF);
|
|
47024
46766
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
47025
46767
|
|
|
@@ -47243,11 +46985,11 @@ function RawList(props, ref) {
|
|
|
47243
46985
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
47244
46986
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
47245
46987
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
47246
|
-
_useState2 =
|
|
46988
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
47247
46989
|
scrollTop = _useState2[0],
|
|
47248
46990
|
setScrollTop = _useState2[1];
|
|
47249
46991
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
47250
|
-
_useState4 =
|
|
46992
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
47251
46993
|
scrollMoving = _useState4[0],
|
|
47252
46994
|
setScrollMoving = _useState4[1];
|
|
47253
46995
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -47287,12 +47029,12 @@ function RawList(props, ref) {
|
|
|
47287
47029
|
});
|
|
47288
47030
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
47289
47031
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
47290
|
-
_useDiffItem2 =
|
|
47032
|
+
_useDiffItem2 = esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
47291
47033
|
diffItem = _useDiffItem2[0];
|
|
47292
47034
|
diffItemRef.current = diffItem;
|
|
47293
47035
|
// ================================ Height ================================
|
|
47294
47036
|
var _useHeights = useHeights(getKey, null, null),
|
|
47295
|
-
_useHeights2 =
|
|
47037
|
+
_useHeights2 = esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
47296
47038
|
setInstanceRef = _useHeights2[0],
|
|
47297
47039
|
collectHeight = _useHeights2[1],
|
|
47298
47040
|
heights = _useHeights2[2],
|
|
@@ -47398,7 +47140,7 @@ function RawList(props, ref) {
|
|
|
47398
47140
|
return newTop;
|
|
47399
47141
|
});
|
|
47400
47142
|
}),
|
|
47401
|
-
_useFrameWheel2 =
|
|
47143
|
+
_useFrameWheel2 = esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
47402
47144
|
onRawWheel = _useFrameWheel2[0],
|
|
47403
47145
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
47404
47146
|
// Mobile touch move
|
|
@@ -47452,7 +47194,7 @@ function RawList(props, ref) {
|
|
|
47452
47194
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
47453
47195
|
var componentStyle = null;
|
|
47454
47196
|
if (height) {
|
|
47455
|
-
componentStyle =
|
|
47197
|
+
componentStyle = objectSpread2_objectSpread2(defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
47456
47198
|
if (useVirtual) {
|
|
47457
47199
|
componentStyle.overflowY = 'hidden';
|
|
47458
47200
|
if (scrollMoving) {
|
|
@@ -47460,8 +47202,8 @@ function RawList(props, ref) {
|
|
|
47460
47202
|
}
|
|
47461
47203
|
}
|
|
47462
47204
|
}
|
|
47463
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47464
|
-
style:
|
|
47205
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
47206
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
47465
47207
|
position: 'relative'
|
|
47466
47208
|
}),
|
|
47467
47209
|
className: mergedClassName
|
|
@@ -48437,41 +48179,6 @@ function useControlledState(defaultStateValue, option) {
|
|
|
48437
48179
|
}, [value]);
|
|
48438
48180
|
return [mergedValue, triggerChange];
|
|
48439
48181
|
}
|
|
48440
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
48441
|
-
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
48442
|
-
if (source == null) return {};
|
|
48443
|
-
var target = {};
|
|
48444
|
-
var sourceKeys = Object.keys(source);
|
|
48445
|
-
var key, i;
|
|
48446
|
-
|
|
48447
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
48448
|
-
key = sourceKeys[i];
|
|
48449
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
48450
|
-
target[key] = source[key];
|
|
48451
|
-
}
|
|
48452
|
-
|
|
48453
|
-
return target;
|
|
48454
|
-
}
|
|
48455
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
48456
|
-
|
|
48457
|
-
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
48458
|
-
if (source == null) return {};
|
|
48459
|
-
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
48460
|
-
var key, i;
|
|
48461
|
-
|
|
48462
|
-
if (Object.getOwnPropertySymbols) {
|
|
48463
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
48464
|
-
|
|
48465
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
48466
|
-
key = sourceSymbolKeys[i];
|
|
48467
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
48468
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
48469
|
-
target[key] = source[key];
|
|
48470
|
-
}
|
|
48471
|
-
}
|
|
48472
|
-
|
|
48473
|
-
return target;
|
|
48474
|
-
}
|
|
48475
48182
|
;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/Item.js
|
|
48476
48183
|
|
|
48477
48184
|
|
|
@@ -48497,7 +48204,7 @@ function InternalItem(props, ref) {
|
|
|
48497
48204
|
order = props.order,
|
|
48498
48205
|
_props$component = props.component,
|
|
48499
48206
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48500
|
-
restProps =
|
|
48207
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48501
48208
|
|
|
48502
48209
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48503
48210
|
|
|
@@ -48531,9 +48238,9 @@ function InternalItem(props, ref) {
|
|
|
48531
48238
|
overflowProps['aria-hidden'] = true;
|
|
48532
48239
|
}
|
|
48533
48240
|
|
|
48534
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48241
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48535
48242
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48536
|
-
style:
|
|
48243
|
+
style: _objectSpread2(_objectSpread2({}, overflowStyle), style)
|
|
48537
48244
|
}, overflowProps, restProps, {
|
|
48538
48245
|
ref: ref
|
|
48539
48246
|
}), childNode);
|
|
@@ -48564,7 +48271,7 @@ Item_Item.displayName = 'Item';
|
|
|
48564
48271
|
|
|
48565
48272
|
function useBatchFrameState() {
|
|
48566
48273
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
48567
|
-
_useState2 =
|
|
48274
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
48568
48275
|
forceUpdate = _useState2[1];
|
|
48569
48276
|
|
|
48570
48277
|
var statesRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)([]);
|
|
@@ -48618,23 +48325,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48618
48325
|
if (!context) {
|
|
48619
48326
|
var _props$component = props.component,
|
|
48620
48327
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48621
|
-
_restProps =
|
|
48328
|
+
_restProps = _objectWithoutProperties(props, ["component"]);
|
|
48622
48329
|
|
|
48623
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48330
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, _restProps, {
|
|
48624
48331
|
ref: ref
|
|
48625
48332
|
}));
|
|
48626
48333
|
}
|
|
48627
48334
|
|
|
48628
48335
|
var contextClassName = context.className,
|
|
48629
|
-
restContext =
|
|
48336
|
+
restContext = _objectWithoutProperties(context, ["className"]);
|
|
48630
48337
|
|
|
48631
48338
|
var className = props.className,
|
|
48632
|
-
restProps =
|
|
48339
|
+
restProps = _objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48633
48340
|
|
|
48634
48341
|
|
|
48635
48342
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48636
48343
|
value: null
|
|
48637
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48344
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({
|
|
48638
48345
|
ref: ref,
|
|
48639
48346
|
className: classnames_default()(contextClassName, className)
|
|
48640
48347
|
}, restContext, restProps)));
|
|
@@ -48684,45 +48391,45 @@ function Overflow(props, ref) {
|
|
|
48684
48391
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48685
48392
|
itemComponent = props.itemComponent,
|
|
48686
48393
|
onVisibleChange = props.onVisibleChange,
|
|
48687
|
-
restProps =
|
|
48394
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48688
48395
|
|
|
48689
48396
|
var createUseState = useBatchFrameState();
|
|
48690
48397
|
var fullySSR = ssr === 'full';
|
|
48691
48398
|
|
|
48692
48399
|
var _createUseState = createUseState(null),
|
|
48693
|
-
_createUseState2 =
|
|
48400
|
+
_createUseState2 = slicedToArray_slicedToArray(_createUseState, 2),
|
|
48694
48401
|
containerWidth = _createUseState2[0],
|
|
48695
48402
|
setContainerWidth = _createUseState2[1];
|
|
48696
48403
|
|
|
48697
48404
|
var mergedContainerWidth = containerWidth || 0;
|
|
48698
48405
|
|
|
48699
48406
|
var _createUseState3 = createUseState(new Map()),
|
|
48700
|
-
_createUseState4 =
|
|
48407
|
+
_createUseState4 = slicedToArray_slicedToArray(_createUseState3, 2),
|
|
48701
48408
|
itemWidths = _createUseState4[0],
|
|
48702
48409
|
setItemWidths = _createUseState4[1];
|
|
48703
48410
|
|
|
48704
48411
|
var _createUseState5 = createUseState(0),
|
|
48705
|
-
_createUseState6 =
|
|
48412
|
+
_createUseState6 = slicedToArray_slicedToArray(_createUseState5, 2),
|
|
48706
48413
|
prevRestWidth = _createUseState6[0],
|
|
48707
48414
|
setPrevRestWidth = _createUseState6[1];
|
|
48708
48415
|
|
|
48709
48416
|
var _createUseState7 = createUseState(0),
|
|
48710
|
-
_createUseState8 =
|
|
48417
|
+
_createUseState8 = slicedToArray_slicedToArray(_createUseState7, 2),
|
|
48711
48418
|
restWidth = _createUseState8[0],
|
|
48712
48419
|
setRestWidth = _createUseState8[1];
|
|
48713
48420
|
|
|
48714
48421
|
var _createUseState9 = createUseState(0),
|
|
48715
|
-
_createUseState10 =
|
|
48422
|
+
_createUseState10 = slicedToArray_slicedToArray(_createUseState9, 2),
|
|
48716
48423
|
suffixWidth = _createUseState10[0],
|
|
48717
48424
|
setSuffixWidth = _createUseState10[1];
|
|
48718
48425
|
|
|
48719
48426
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48720
|
-
_useState2 =
|
|
48427
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
48721
48428
|
suffixFixedStart = _useState2[0],
|
|
48722
48429
|
setSuffixFixedStart = _useState2[1];
|
|
48723
48430
|
|
|
48724
48431
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48725
|
-
_useState4 =
|
|
48432
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
48726
48433
|
displayCount = _useState4[0],
|
|
48727
48434
|
setDisplayCount = _useState4[1];
|
|
48728
48435
|
|
|
@@ -48735,7 +48442,7 @@ function Overflow(props, ref) {
|
|
|
48735
48442
|
}, [displayCount, containerWidth]);
|
|
48736
48443
|
|
|
48737
48444
|
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
48738
|
-
_useState6 =
|
|
48445
|
+
_useState6 = slicedToArray_slicedToArray(_useState5, 2),
|
|
48739
48446
|
restReady = _useState6[0],
|
|
48740
48447
|
setRestReady = _useState6[1];
|
|
48741
48448
|
|
|
@@ -48894,7 +48601,7 @@ function Overflow(props, ref) {
|
|
|
48894
48601
|
var key = getKey(item, index);
|
|
48895
48602
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48896
48603
|
key: key,
|
|
48897
|
-
value:
|
|
48604
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
|
|
48898
48605
|
order: index,
|
|
48899
48606
|
item: item,
|
|
48900
48607
|
itemKey: key,
|
|
@@ -48904,7 +48611,7 @@ function Overflow(props, ref) {
|
|
|
48904
48611
|
}, renderRawItem(item, index));
|
|
48905
48612
|
} : function (item, index) {
|
|
48906
48613
|
var key = getKey(item, index);
|
|
48907
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48614
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48908
48615
|
order: index,
|
|
48909
48616
|
key: key,
|
|
48910
48617
|
item: item,
|
|
@@ -48925,18 +48632,18 @@ function Overflow(props, ref) {
|
|
|
48925
48632
|
|
|
48926
48633
|
if (!renderRawRest) {
|
|
48927
48634
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48928
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48635
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48929
48636
|
} else if (renderRawRest) {
|
|
48930
48637
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48931
|
-
value:
|
|
48638
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48932
48639
|
}, renderRawRest(omittedItems));
|
|
48933
48640
|
}
|
|
48934
48641
|
|
|
48935
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48642
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48936
48643
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48937
48644
|
style: style,
|
|
48938
48645
|
ref: ref
|
|
48939
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48646
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48940
48647
|
order: mergedDisplayCount,
|
|
48941
48648
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
48942
48649
|
registerSize: registerSuffixSize,
|
|
@@ -49618,7 +49325,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
49618
49325
|
|
|
49619
49326
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
49620
49327
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
49621
|
-
return
|
|
49328
|
+
return _objectSpread2(_objectSpread2({}, baseAlign), align);
|
|
49622
49329
|
}
|
|
49623
49330
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
49624
49331
|
var points = align.points;
|
|
@@ -49682,7 +49389,7 @@ function Mask_Mask(props) {
|
|
|
49682
49389
|
var motion = {};
|
|
49683
49390
|
|
|
49684
49391
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49685
|
-
motion =
|
|
49392
|
+
motion = _objectSpread2({
|
|
49686
49393
|
motionAppear: true
|
|
49687
49394
|
}, getMotion({
|
|
49688
49395
|
motion: maskMotion,
|
|
@@ -49692,7 +49399,7 @@ function Mask_Mask(props) {
|
|
|
49692
49399
|
}));
|
|
49693
49400
|
}
|
|
49694
49401
|
|
|
49695
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49402
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({}, motion, {
|
|
49696
49403
|
visible: visible,
|
|
49697
49404
|
removeOnLeave: true
|
|
49698
49405
|
}), function (_ref) {
|
|
@@ -51109,7 +50816,7 @@ function monitorResize(element, callback) {
|
|
|
51109
50816
|
var prevHeight = null;
|
|
51110
50817
|
|
|
51111
50818
|
function onResize(_ref) {
|
|
51112
|
-
var _ref2 =
|
|
50819
|
+
var _ref2 = slicedToArray_slicedToArray(_ref, 1),
|
|
51113
50820
|
target = _ref2[0].target;
|
|
51114
50821
|
|
|
51115
50822
|
if (!document.documentElement.contains(target)) return;
|
|
@@ -51204,7 +50911,7 @@ function getElement(func) {
|
|
|
51204
50911
|
}
|
|
51205
50912
|
|
|
51206
50913
|
function getPoint(point) {
|
|
51207
|
-
if (
|
|
50914
|
+
if (typeof_typeof(point) !== 'object' || !point) return null;
|
|
51208
50915
|
return point;
|
|
51209
50916
|
}
|
|
51210
50917
|
|
|
@@ -51268,7 +50975,7 @@ var Align = function Align(_ref, ref) {
|
|
|
51268
50975
|
|
|
51269
50976
|
return false;
|
|
51270
50977
|
}, monitorBufferTime),
|
|
51271
|
-
_useBuffer2 =
|
|
50978
|
+
_useBuffer2 = slicedToArray_slicedToArray(_useBuffer, 2),
|
|
51272
50979
|
_forceAlign = _useBuffer2[0],
|
|
51273
50980
|
cancelForceAlign = _useBuffer2[1]; // ===================== Effect =====================
|
|
51274
50981
|
// Listen for target updated
|
|
@@ -51356,45 +51063,6 @@ RcAlign.displayName = 'Align';
|
|
|
51356
51063
|
// export this package's api
|
|
51357
51064
|
|
|
51358
51065
|
/* harmony default export */ var rc_align_es = (es_Align);
|
|
51359
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
51360
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
51361
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
51362
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
51363
|
-
function esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
51364
|
-
try {
|
|
51365
|
-
var info = gen[key](arg);
|
|
51366
|
-
var value = info.value;
|
|
51367
|
-
} catch (error) {
|
|
51368
|
-
reject(error);
|
|
51369
|
-
return;
|
|
51370
|
-
}
|
|
51371
|
-
|
|
51372
|
-
if (info.done) {
|
|
51373
|
-
resolve(value);
|
|
51374
|
-
} else {
|
|
51375
|
-
Promise.resolve(value).then(_next, _throw);
|
|
51376
|
-
}
|
|
51377
|
-
}
|
|
51378
|
-
|
|
51379
|
-
function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
51380
|
-
return function () {
|
|
51381
|
-
var self = this,
|
|
51382
|
-
args = arguments;
|
|
51383
|
-
return new Promise(function (resolve, reject) {
|
|
51384
|
-
var gen = fn.apply(self, args);
|
|
51385
|
-
|
|
51386
|
-
function _next(value) {
|
|
51387
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
51388
|
-
}
|
|
51389
|
-
|
|
51390
|
-
function _throw(err) {
|
|
51391
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
51392
|
-
}
|
|
51393
|
-
|
|
51394
|
-
_next(undefined);
|
|
51395
|
-
});
|
|
51396
|
-
};
|
|
51397
|
-
}
|
|
51398
51066
|
;// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/useVisibleStatus.js
|
|
51399
51067
|
|
|
51400
51068
|
|
|
@@ -51404,7 +51072,7 @@ function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
|
51404
51072
|
var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
51405
51073
|
/* harmony default export */ var useVisibleStatus = (function (visible, doMeasure) {
|
|
51406
51074
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
51407
|
-
_useState2 =
|
|
51075
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
51408
51076
|
status = _useState2[0],
|
|
51409
51077
|
setInternalStatus = _useState2[1];
|
|
51410
51078
|
|
|
@@ -51457,9 +51125,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51457
51125
|
}
|
|
51458
51126
|
|
|
51459
51127
|
if (status) {
|
|
51460
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/
|
|
51128
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
51461
51129
|
var index, nextStatus;
|
|
51462
|
-
return
|
|
51130
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
51463
51131
|
while (1) {
|
|
51464
51132
|
switch (_context.prev = _context.next) {
|
|
51465
51133
|
case 0:
|
|
@@ -51495,7 +51163,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51495
51163
|
width: 0,
|
|
51496
51164
|
height: 0
|
|
51497
51165
|
}),
|
|
51498
|
-
_React$useState2 =
|
|
51166
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
51499
51167
|
targetSize = _React$useState2[0],
|
|
51500
51168
|
setTargetSize = _React$useState2[1];
|
|
51501
51169
|
|
|
@@ -51566,13 +51234,13 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51566
51234
|
var elementRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
51567
51235
|
|
|
51568
51236
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
51569
|
-
_useState2 =
|
|
51237
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
51570
51238
|
alignedClassName = _useState2[0],
|
|
51571
51239
|
setAlignedClassName = _useState2[1]; // ======================= Measure ========================
|
|
51572
51240
|
|
|
51573
51241
|
|
|
51574
51242
|
var _useStretchStyle = useStretchStyle(stretch),
|
|
51575
|
-
_useStretchStyle2 =
|
|
51243
|
+
_useStretchStyle2 = slicedToArray_slicedToArray(_useStretchStyle, 2),
|
|
51576
51244
|
stretchStyle = _useStretchStyle2[0],
|
|
51577
51245
|
measureStretchStyle = _useStretchStyle2[1];
|
|
51578
51246
|
|
|
@@ -51584,7 +51252,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51584
51252
|
|
|
51585
51253
|
|
|
51586
51254
|
var _useVisibleStatus = useVisibleStatus(visible, doMeasure),
|
|
51587
|
-
_useVisibleStatus2 =
|
|
51255
|
+
_useVisibleStatus2 = slicedToArray_slicedToArray(_useVisibleStatus, 2),
|
|
51588
51256
|
status = _useVisibleStatus2[0],
|
|
51589
51257
|
goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
|
|
51590
51258
|
|
|
@@ -51632,7 +51300,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51632
51300
|
} // ======================== Motion ========================
|
|
51633
51301
|
|
|
51634
51302
|
|
|
51635
|
-
var motion =
|
|
51303
|
+
var motion = _objectSpread2({}, getMotion(props));
|
|
51636
51304
|
|
|
51637
51305
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
51638
51306
|
var originHandler = motion[eventName];
|
|
@@ -51665,7 +51333,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51665
51333
|
};
|
|
51666
51334
|
}); // ======================== Render ========================
|
|
51667
51335
|
|
|
51668
|
-
var mergedStyle =
|
|
51336
|
+
var mergedStyle = _objectSpread2(_objectSpread2({}, stretchStyle), {}, {
|
|
51669
51337
|
zIndex: zIndex,
|
|
51670
51338
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
51671
51339
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -51686,7 +51354,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51686
51354
|
}, children);
|
|
51687
51355
|
}
|
|
51688
51356
|
|
|
51689
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51357
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51690
51358
|
visible: visible,
|
|
51691
51359
|
ref: elementRef,
|
|
51692
51360
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51714,7 +51382,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51714
51382
|
onMouseLeave: onMouseLeave,
|
|
51715
51383
|
onMouseDownCapture: onMouseDown,
|
|
51716
51384
|
onTouchStartCapture: onTouchStart,
|
|
51717
|
-
style:
|
|
51385
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51718
51386
|
}, childNode));
|
|
51719
51387
|
});
|
|
51720
51388
|
});
|
|
@@ -51749,7 +51417,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51749
51417
|
};
|
|
51750
51418
|
}); // ======================== Render ========================
|
|
51751
51419
|
|
|
51752
|
-
var mergedStyle =
|
|
51420
|
+
var mergedStyle = _objectSpread2({
|
|
51753
51421
|
zIndex: zIndex
|
|
51754
51422
|
}, popupStyle);
|
|
51755
51423
|
|
|
@@ -51766,7 +51434,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51766
51434
|
childNode = popupRender(childNode);
|
|
51767
51435
|
}
|
|
51768
51436
|
|
|
51769
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51437
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51770
51438
|
visible: visible,
|
|
51771
51439
|
ref: elementRef,
|
|
51772
51440
|
removeOnLeave: true
|
|
@@ -51777,7 +51445,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51777
51445
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51778
51446
|
ref: motionRef,
|
|
51779
51447
|
className: mergedClassName,
|
|
51780
|
-
style:
|
|
51448
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51781
51449
|
}, childNode);
|
|
51782
51450
|
});
|
|
51783
51451
|
});
|
|
@@ -51798,19 +51466,19 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51798
51466
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51799
51467
|
var visible = _ref.visible,
|
|
51800
51468
|
mobile = _ref.mobile,
|
|
51801
|
-
props =
|
|
51469
|
+
props = _objectWithoutProperties(_ref, Popup_excluded);
|
|
51802
51470
|
|
|
51803
51471
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51804
|
-
_useState2 =
|
|
51472
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
51805
51473
|
innerVisible = _useState2[0],
|
|
51806
51474
|
serInnerVisible = _useState2[1];
|
|
51807
51475
|
|
|
51808
51476
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
51809
|
-
_useState4 =
|
|
51477
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
51810
51478
|
inMobile = _useState4[0],
|
|
51811
51479
|
setInMobile = _useState4[1];
|
|
51812
51480
|
|
|
51813
|
-
var cloneProps =
|
|
51481
|
+
var cloneProps = _objectSpread2(_objectSpread2({}, props), {}, {
|
|
51814
51482
|
visible: innerVisible
|
|
51815
51483
|
}); // We check mobile in visible changed here.
|
|
51816
51484
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51823,10 +51491,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51823
51491
|
setInMobile(isMobile());
|
|
51824
51492
|
}
|
|
51825
51493
|
}, [visible, mobile]);
|
|
51826
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51494
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, extends_extends({}, cloneProps, {
|
|
51827
51495
|
mobile: mobile,
|
|
51828
51496
|
ref: ref
|
|
51829
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51497
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, extends_extends({}, cloneProps, {
|
|
51830
51498
|
ref: ref
|
|
51831
51499
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51832
51500
|
|
|
@@ -56515,7 +56183,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56515
56183
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56516
56184
|
|
|
56517
56185
|
function mergeProps(origin, target) {
|
|
56518
|
-
var clone =
|
|
56186
|
+
var clone = _objectSpread2({}, origin);
|
|
56519
56187
|
|
|
56520
56188
|
Object.keys(target).forEach(function (key) {
|
|
56521
56189
|
var value = target[key];
|
|
@@ -56530,7 +56198,7 @@ function mergeProps(origin, target) {
|
|
|
56530
56198
|
function InheritableContextProvider(_ref) {
|
|
56531
56199
|
var children = _ref.children,
|
|
56532
56200
|
locked = _ref.locked,
|
|
56533
|
-
restProps =
|
|
56201
|
+
restProps = _objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56534
56202
|
|
|
56535
56203
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56536
56204
|
var inheritableContext = useMemo(function () {
|
|
@@ -56586,7 +56254,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56586
56254
|
|
|
56587
56255
|
function warnItemProp(_ref) {
|
|
56588
56256
|
var item = _ref.item,
|
|
56589
|
-
restInfo =
|
|
56257
|
+
restInfo = _objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56590
56258
|
|
|
56591
56259
|
Object.defineProperty(restInfo, 'item', {
|
|
56592
56260
|
get: function get() {
|
|
@@ -56606,7 +56274,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56606
56274
|
var iconNode;
|
|
56607
56275
|
|
|
56608
56276
|
if (typeof icon === 'function') {
|
|
56609
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
56277
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, _objectSpread2({}, props));
|
|
56610
56278
|
} else {
|
|
56611
56279
|
// Compatible for origin definition
|
|
56612
56280
|
iconNode = icon;
|
|
@@ -56647,7 +56315,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56647
56315
|
function useFullPath(eventKey) {
|
|
56648
56316
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56649
56317
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56650
|
-
return eventKey !== undefined ? [].concat(
|
|
56318
|
+
return eventKey !== undefined ? [].concat(_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56651
56319
|
}, [parentKeyPath, eventKey]);
|
|
56652
56320
|
}
|
|
56653
56321
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56704,28 +56372,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56704
56372
|
// This should be removed from doc & api in future.
|
|
56705
56373
|
|
|
56706
56374
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56707
|
-
|
|
56375
|
+
_inherits(LegacyMenuItem, _React$Component);
|
|
56708
56376
|
|
|
56709
|
-
var _super =
|
|
56377
|
+
var _super = _createSuper(LegacyMenuItem);
|
|
56710
56378
|
|
|
56711
56379
|
function LegacyMenuItem() {
|
|
56712
|
-
|
|
56380
|
+
_classCallCheck(this, LegacyMenuItem);
|
|
56713
56381
|
|
|
56714
56382
|
return _super.apply(this, arguments);
|
|
56715
56383
|
}
|
|
56716
56384
|
|
|
56717
|
-
|
|
56385
|
+
_createClass(LegacyMenuItem, [{
|
|
56718
56386
|
key: "render",
|
|
56719
56387
|
value: function render() {
|
|
56720
56388
|
var _this$props = this.props,
|
|
56721
56389
|
title = _this$props.title,
|
|
56722
56390
|
attribute = _this$props.attribute,
|
|
56723
56391
|
elementRef = _this$props.elementRef,
|
|
56724
|
-
restProps =
|
|
56392
|
+
restProps = _objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56725
56393
|
|
|
56726
56394
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56727
56395
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56728
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56396
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({}, attribute, {
|
|
56729
56397
|
title: typeof title === 'string' ? title : undefined
|
|
56730
56398
|
}, passedProps, {
|
|
56731
56399
|
ref: elementRef
|
|
@@ -56756,7 +56424,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56756
56424
|
onClick = props.onClick,
|
|
56757
56425
|
onKeyDown = props.onKeyDown,
|
|
56758
56426
|
onFocus = props.onFocus,
|
|
56759
|
-
restProps =
|
|
56427
|
+
restProps = _objectWithoutProperties(props, MenuItem_excluded2);
|
|
56760
56428
|
|
|
56761
56429
|
var domDataId = useMenuId(eventKey);
|
|
56762
56430
|
|
|
@@ -56785,7 +56453,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56785
56453
|
return {
|
|
56786
56454
|
key: eventKey,
|
|
56787
56455
|
// Note: For legacy code is reversed which not like other antd component
|
|
56788
|
-
keyPath:
|
|
56456
|
+
keyPath: _toConsumableArray(connectedKeys).reverse(),
|
|
56789
56457
|
item: legacyMenuItemRef.current,
|
|
56790
56458
|
domEvent: e
|
|
56791
56459
|
};
|
|
@@ -56796,7 +56464,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56796
56464
|
|
|
56797
56465
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56798
56466
|
active = _useActive.active,
|
|
56799
|
-
activeProps =
|
|
56467
|
+
activeProps = _objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56800
56468
|
|
|
56801
56469
|
|
|
56802
56470
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56841,7 +56509,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56841
56509
|
optionRoleProps['aria-selected'] = selected;
|
|
56842
56510
|
}
|
|
56843
56511
|
|
|
56844
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56512
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, extends_extends({
|
|
56845
56513
|
ref: legacyMenuItemRef,
|
|
56846
56514
|
elementRef: elementRef,
|
|
56847
56515
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56850,13 +56518,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56850
56518
|
}, restProps, activeProps, optionRoleProps, {
|
|
56851
56519
|
component: "li",
|
|
56852
56520
|
"aria-disabled": disabled,
|
|
56853
|
-
style:
|
|
56854
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56521
|
+
style: _objectSpread2(_objectSpread2({}, directionStyle), style),
|
|
56522
|
+
className: classnames_default()(itemCls, (_classNames = {}, _defineProperty(_classNames, "".concat(itemCls, "-active"), active), _defineProperty(_classNames, "".concat(itemCls, "-selected"), selected), _defineProperty(_classNames, "".concat(itemCls, "-disabled"), mergedDisabled), _classNames), className),
|
|
56855
56523
|
onClick: onInternalClick,
|
|
56856
56524
|
onKeyDown: onInternalKeyDown,
|
|
56857
56525
|
onFocus: onInternalFocus
|
|
56858
56526
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56859
|
-
props:
|
|
56527
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
56860
56528
|
isSelected: selected
|
|
56861
56529
|
}),
|
|
56862
56530
|
icon: mergedItemIcon
|
|
@@ -56909,7 +56577,7 @@ function parseChildren(children, keyPath) {
|
|
|
56909
56577
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56910
56578
|
|
|
56911
56579
|
if (emptyKey) {
|
|
56912
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56580
|
+
eventKey = "tmp_key-".concat([].concat(_toConsumableArray(keyPath), [index]).join('-'));
|
|
56913
56581
|
}
|
|
56914
56582
|
|
|
56915
56583
|
var cloneProps = {
|
|
@@ -56957,14 +56625,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56957
56625
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56958
56626
|
var className = _ref.className,
|
|
56959
56627
|
children = _ref.children,
|
|
56960
|
-
restProps =
|
|
56628
|
+
restProps = _objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56961
56629
|
|
|
56962
56630
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56963
56631
|
prefixCls = _React$useContext.prefixCls,
|
|
56964
56632
|
mode = _React$useContext.mode,
|
|
56965
56633
|
rtl = _React$useContext.rtl;
|
|
56966
56634
|
|
|
56967
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
56635
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", extends_extends({
|
|
56968
56636
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56969
56637
|
}, restProps, {
|
|
56970
56638
|
"data-menu-list": true,
|
|
@@ -57077,15 +56745,15 @@ function PopupTrigger(_ref) {
|
|
|
57077
56745
|
defaultMotions = _React$useContext.defaultMotions;
|
|
57078
56746
|
|
|
57079
56747
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
57080
|
-
_React$useState2 =
|
|
56748
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57081
56749
|
innerVisible = _React$useState2[0],
|
|
57082
56750
|
setInnerVisible = _React$useState2[1];
|
|
57083
56751
|
|
|
57084
|
-
var placement = rtl ?
|
|
56752
|
+
var placement = rtl ? _objectSpread2(_objectSpread2({}, placementsRtl), builtinPlacements) : _objectSpread2(_objectSpread2({}, placements), builtinPlacements);
|
|
57085
56753
|
var popupPlacement = popupPlacementMap[mode];
|
|
57086
56754
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
57087
56755
|
|
|
57088
|
-
var mergedMotion =
|
|
56756
|
+
var mergedMotion = _objectSpread2(_objectSpread2({}, targetMotion), {}, {
|
|
57089
56757
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
57090
56758
|
removeOnLeave: false,
|
|
57091
56759
|
motionAppear: true
|
|
@@ -57103,7 +56771,7 @@ function PopupTrigger(_ref) {
|
|
|
57103
56771
|
}, [visible]);
|
|
57104
56772
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
57105
56773
|
prefixCls: prefixCls,
|
|
57106
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
56774
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), _defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
57107
56775
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
57108
56776
|
getPopupContainer: getPopupContainer,
|
|
57109
56777
|
builtinPlacements: placement,
|
|
@@ -57150,7 +56818,7 @@ function InlineSubMenuList(_ref) {
|
|
|
57150
56818
|
// The inline list should remove when motion end.
|
|
57151
56819
|
|
|
57152
56820
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(!sameModeRef.current),
|
|
57153
|
-
_React$useState2 =
|
|
56821
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57154
56822
|
destroy = _React$useState2[0],
|
|
57155
56823
|
setDestroy = _React$useState2[1];
|
|
57156
56824
|
|
|
@@ -57163,7 +56831,7 @@ function InlineSubMenuList(_ref) {
|
|
|
57163
56831
|
}
|
|
57164
56832
|
}, [mode]); // ================================= Render =================================
|
|
57165
56833
|
|
|
57166
|
-
var mergedMotion =
|
|
56834
|
+
var mergedMotion = _objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
57167
56835
|
|
|
57168
56836
|
|
|
57169
56837
|
if (keyPath.length > 1) {
|
|
@@ -57188,7 +56856,7 @@ function InlineSubMenuList(_ref) {
|
|
|
57188
56856
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
57189
56857
|
mode: fixedMode,
|
|
57190
56858
|
locked: !sameModeRef.current
|
|
57191
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
56859
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
57192
56860
|
visible: mergedOpen
|
|
57193
56861
|
}, mergedMotion, {
|
|
57194
56862
|
forceRender: forceSubMenuRender,
|
|
@@ -57251,7 +56919,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57251
56919
|
onTitleClick = props.onTitleClick,
|
|
57252
56920
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
57253
56921
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
57254
|
-
restProps =
|
|
56922
|
+
restProps = _objectWithoutProperties(props, SubMenu_excluded);
|
|
57255
56923
|
|
|
57256
56924
|
var domDataId = useMenuId(eventKey);
|
|
57257
56925
|
|
|
@@ -57294,11 +56962,11 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57294
56962
|
|
|
57295
56963
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
57296
56964
|
active = _useActive.active,
|
|
57297
|
-
activeProps =
|
|
56965
|
+
activeProps = _objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
57298
56966
|
|
|
57299
56967
|
|
|
57300
56968
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
57301
|
-
_React$useState2 =
|
|
56969
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57302
56970
|
childrenActive = _React$useState2[0],
|
|
57303
56971
|
setChildrenActive = _React$useState2[1];
|
|
57304
56972
|
|
|
@@ -57379,7 +57047,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57379
57047
|
|
|
57380
57048
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
57381
57049
|
|
|
57382
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
57050
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
57383
57051
|
role: "menuitem",
|
|
57384
57052
|
style: directionStyle,
|
|
57385
57053
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -57395,7 +57063,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57395
57063
|
onFocus: onInternalFocus
|
|
57396
57064
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
57397
57065
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
57398
|
-
props:
|
|
57066
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
57399
57067
|
isOpen: open,
|
|
57400
57068
|
// [Legacy] Not sure why need this mark
|
|
57401
57069
|
isSubMenu: true
|
|
@@ -57433,12 +57101,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57433
57101
|
} // >>>>> List node
|
|
57434
57102
|
|
|
57435
57103
|
|
|
57436
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
57104
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({
|
|
57437
57105
|
role: "none"
|
|
57438
57106
|
}, restProps, {
|
|
57439
57107
|
component: "li",
|
|
57440
57108
|
style: style,
|
|
57441
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
57109
|
+
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {}, _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-open"), open), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-active"), mergedActive), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-selected"), childrenSelected), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-disabled"), mergedDisabled), _classNames)),
|
|
57442
57110
|
onMouseEnter: onInternalMouseEnter,
|
|
57443
57111
|
onMouseLeave: onInternalMouseLeave
|
|
57444
57112
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -57531,7 +57199,7 @@ function focusable(node) {
|
|
|
57531
57199
|
function getFocusNodeList(node) {
|
|
57532
57200
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
57533
57201
|
|
|
57534
|
-
var res =
|
|
57202
|
+
var res = _toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
57535
57203
|
return focusable(child, includePositive);
|
|
57536
57204
|
});
|
|
57537
57205
|
|
|
@@ -57611,9 +57279,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
57611
57279
|
};
|
|
57612
57280
|
}
|
|
57613
57281
|
|
|
57614
|
-
var inline = (_inline = {},
|
|
57615
|
-
var horizontal = (_horizontal = {},
|
|
57616
|
-
var vertical = (_vertical = {},
|
|
57282
|
+
var inline = (_inline = {}, _defineProperty(_inline, UP, prev), _defineProperty(_inline, DOWN, next), _inline);
|
|
57283
|
+
var horizontal = (_horizontal = {}, _defineProperty(_horizontal, useAccessibility_LEFT, isRtl ? next : prev), _defineProperty(_horizontal, RIGHT, isRtl ? prev : next), _defineProperty(_horizontal, DOWN, children), _defineProperty(_horizontal, ENTER, children), _horizontal);
|
|
57284
|
+
var vertical = (_vertical = {}, _defineProperty(_vertical, UP, prev), _defineProperty(_vertical, DOWN, next), _defineProperty(_vertical, ENTER, children), _defineProperty(_vertical, ESC, parent), _defineProperty(_vertical, useAccessibility_LEFT, isRtl ? children : parent), _defineProperty(_vertical, RIGHT, isRtl ? parent : children), _vertical);
|
|
57617
57285
|
var offsets = {
|
|
57618
57286
|
inline: inline,
|
|
57619
57287
|
horizontal: horizontal,
|
|
@@ -57879,7 +57547,7 @@ function useUUID(id) {
|
|
|
57879
57547
|
var _useMergedState = useControlledState(id, {
|
|
57880
57548
|
value: id
|
|
57881
57549
|
}),
|
|
57882
|
-
_useMergedState2 =
|
|
57550
|
+
_useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
|
|
57883
57551
|
uuid = _useMergedState2[0],
|
|
57884
57552
|
setUUID = _useMergedState2[1];
|
|
57885
57553
|
|
|
@@ -57915,14 +57583,14 @@ var getPathKeys = function getPathKeys(keyPathStr) {
|
|
|
57915
57583
|
var OVERFLOW_KEY = 'rc-menu-more';
|
|
57916
57584
|
function useKeyRecords() {
|
|
57917
57585
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState({}),
|
|
57918
|
-
_React$useState2 =
|
|
57586
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57919
57587
|
internalForceUpdate = _React$useState2[1];
|
|
57920
57588
|
|
|
57921
57589
|
var key2pathRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57922
57590
|
var path2keyRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57923
57591
|
|
|
57924
57592
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
57925
|
-
_React$useState4 =
|
|
57593
|
+
_React$useState4 = slicedToArray_slicedToArray(_React$useState3, 2),
|
|
57926
57594
|
overflowKeys = _React$useState4[0],
|
|
57927
57595
|
setOverflowKeys = _React$useState4[1];
|
|
57928
57596
|
|
|
@@ -57977,7 +57645,7 @@ function useKeyRecords() {
|
|
|
57977
57645
|
}, [getKeyPath]);
|
|
57978
57646
|
|
|
57979
57647
|
var getKeys = function getKeys() {
|
|
57980
|
-
var keys =
|
|
57648
|
+
var keys = _toConsumableArray(key2pathRef.current.keys());
|
|
57981
57649
|
|
|
57982
57650
|
if (overflowKeys.length) {
|
|
57983
57651
|
keys.push(OVERFLOW_KEY);
|
|
@@ -57994,7 +57662,7 @@ function useKeyRecords() {
|
|
|
57994
57662
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
57995
57663
|
var pathKeys = new Set();
|
|
57996
57664
|
|
|
57997
|
-
|
|
57665
|
+
_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
57998
57666
|
if (pathKey.startsWith(connectedPath)) {
|
|
57999
57667
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
58000
57668
|
}
|
|
@@ -58115,12 +57783,12 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58115
57783
|
openTransitionName = props.openTransitionName,
|
|
58116
57784
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
58117
57785
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
58118
|
-
restProps =
|
|
57786
|
+
restProps = _objectWithoutProperties(props, Menu_excluded);
|
|
58119
57787
|
|
|
58120
57788
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
58121
57789
|
|
|
58122
57790
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
58123
|
-
_React$useState2 =
|
|
57791
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
58124
57792
|
mounted = _React$useState2[0],
|
|
58125
57793
|
setMounted = _React$useState2[1];
|
|
58126
57794
|
|
|
@@ -58139,13 +57807,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58139
57807
|
|
|
58140
57808
|
return [mode, false];
|
|
58141
57809
|
}, [mode, inlineCollapsed]),
|
|
58142
|
-
_React$useMemo2 =
|
|
57810
|
+
_React$useMemo2 = slicedToArray_slicedToArray(_React$useMemo, 2),
|
|
58143
57811
|
mergedMode = _React$useMemo2[0],
|
|
58144
57812
|
mergedInlineCollapsed = _React$useMemo2[1]; // ====================== Responsive ======================
|
|
58145
57813
|
|
|
58146
57814
|
|
|
58147
57815
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
58148
|
-
_React$useState4 =
|
|
57816
|
+
_React$useState4 = slicedToArray_slicedToArray(_React$useState3, 2),
|
|
58149
57817
|
lastVisibleIndex = _React$useState4[0],
|
|
58150
57818
|
setLastVisibleIndex = _React$useState4[1];
|
|
58151
57819
|
|
|
@@ -58157,7 +57825,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58157
57825
|
return keys || EMPTY_LIST;
|
|
58158
57826
|
}
|
|
58159
57827
|
}),
|
|
58160
|
-
_useMergedState2 =
|
|
57828
|
+
_useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
|
|
58161
57829
|
mergedOpenKeys = _useMergedState2[0],
|
|
58162
57830
|
setMergedOpenKeys = _useMergedState2[1];
|
|
58163
57831
|
|
|
@@ -58168,7 +57836,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58168
57836
|
|
|
58169
57837
|
|
|
58170
57838
|
var _React$useState5 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(mergedOpenKeys),
|
|
58171
|
-
_React$useState6 =
|
|
57839
|
+
_React$useState6 = slicedToArray_slicedToArray(_React$useState5, 2),
|
|
58172
57840
|
inlineCacheOpenKeys = _React$useState6[0],
|
|
58173
57841
|
setInlineCacheOpenKeys = _React$useState6[1];
|
|
58174
57842
|
|
|
@@ -58224,7 +57892,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58224
57892
|
var _useMergedState3 = useControlledState(activeKey || defaultActiveFirst && ((_childList$ = childList[0]) === null || _childList$ === void 0 ? void 0 : _childList$.key), {
|
|
58225
57893
|
value: activeKey
|
|
58226
57894
|
}),
|
|
58227
|
-
_useMergedState4 =
|
|
57895
|
+
_useMergedState4 = slicedToArray_slicedToArray(_useMergedState3, 2),
|
|
58228
57896
|
mergedActiveKey = _useMergedState4[0],
|
|
58229
57897
|
setMergedActiveKey = _useMergedState4[1];
|
|
58230
57898
|
|
|
@@ -58251,7 +57919,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58251
57919
|
return [keys];
|
|
58252
57920
|
}
|
|
58253
57921
|
}),
|
|
58254
|
-
_useMergedState6 =
|
|
57922
|
+
_useMergedState6 = slicedToArray_slicedToArray(_useMergedState5, 2),
|
|
58255
57923
|
mergedSelectKeys = _useMergedState6[0],
|
|
58256
57924
|
setMergedSelectKeys = _useMergedState6[1]; // >>>>> Trigger select
|
|
58257
57925
|
|
|
@@ -58269,7 +57937,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58269
57937
|
return key !== targetKey;
|
|
58270
57938
|
});
|
|
58271
57939
|
} else {
|
|
58272
|
-
newSelectKeys = [].concat(
|
|
57940
|
+
newSelectKeys = [].concat(_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
58273
57941
|
}
|
|
58274
57942
|
} else {
|
|
58275
57943
|
newSelectKeys = [targetKey];
|
|
@@ -58277,7 +57945,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58277
57945
|
|
|
58278
57946
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
58279
57947
|
|
|
58280
|
-
var selectInfo =
|
|
57948
|
+
var selectInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
58281
57949
|
selectedKeys: newSelectKeys
|
|
58282
57950
|
});
|
|
58283
57951
|
|
|
@@ -58355,13 +58023,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58355
58023
|
);
|
|
58356
58024
|
}); // >>>>> Container
|
|
58357
58025
|
|
|
58358
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
58026
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, extends_extends({
|
|
58359
58027
|
id: id,
|
|
58360
58028
|
ref: mergedRef,
|
|
58361
58029
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
58362
58030
|
component: "ul",
|
|
58363
58031
|
itemComponent: es_MenuItem,
|
|
58364
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
58032
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-inline-collapsed"), mergedInlineCollapsed), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), isRtl), _classNames)),
|
|
58365
58033
|
dir: direction,
|
|
58366
58034
|
style: style,
|
|
58367
58035
|
role: "menu",
|
|
@@ -58455,13 +58123,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58455
58123
|
title = _ref.title,
|
|
58456
58124
|
eventKey = _ref.eventKey,
|
|
58457
58125
|
children = _ref.children,
|
|
58458
|
-
restProps =
|
|
58126
|
+
restProps = _objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58459
58127
|
|
|
58460
58128
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58461
58129
|
prefixCls = _React$useContext.prefixCls;
|
|
58462
58130
|
|
|
58463
58131
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58464
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
58132
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", extends_extends({}, restProps, {
|
|
58465
58133
|
onClick: function onClick(e) {
|
|
58466
58134
|
return e.stopPropagation();
|
|
58467
58135
|
},
|
|
@@ -58476,7 +58144,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58476
58144
|
|
|
58477
58145
|
function MenuItemGroup(_ref2) {
|
|
58478
58146
|
var children = _ref2.children,
|
|
58479
|
-
props =
|
|
58147
|
+
props = _objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58480
58148
|
|
|
58481
58149
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58482
58150
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58604,10 +58272,10 @@ function Dropdown(props, ref) {
|
|
|
58604
58272
|
visible = props.visible,
|
|
58605
58273
|
_props$trigger = props.trigger,
|
|
58606
58274
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58607
|
-
otherProps =
|
|
58275
|
+
otherProps = _objectWithoutProperties(props, Dropdown_excluded);
|
|
58608
58276
|
|
|
58609
58277
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58610
|
-
_React$useState2 =
|
|
58278
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
58611
58279
|
triggerVisible = _React$useState2[0],
|
|
58612
58280
|
setTriggerVisible = _React$useState2[1];
|
|
58613
58281
|
|
|
@@ -58715,12 +58383,12 @@ function Dropdown(props, ref) {
|
|
|
58715
58383
|
triggerHideAction = ['click'];
|
|
58716
58384
|
}
|
|
58717
58385
|
|
|
58718
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58386
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, _objectSpread2(_objectSpread2({
|
|
58719
58387
|
builtinPlacements: placements
|
|
58720
58388
|
}, otherProps), {}, {
|
|
58721
58389
|
prefixCls: prefixCls,
|
|
58722
58390
|
ref: triggerRef,
|
|
58723
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58391
|
+
popupClassName: classnames_default()(overlayClassName, _defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58724
58392
|
popupStyle: overlayStyle,
|
|
58725
58393
|
action: trigger,
|
|
58726
58394
|
showAction: showAction,
|
|
@@ -62206,17 +61874,7 @@ function ListItem(_ref) {
|
|
|
62206
61874
|
alt: ""
|
|
62207
61875
|
}), formatLikesCount(liveExt.like_count || 0))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62208
61876
|
className: list_ListItem_index_module.mobileAction
|
|
62209
|
-
}
|
|
62210
|
-
data: data,
|
|
62211
|
-
subscription: subscription,
|
|
62212
|
-
onActionDetailClick: handleDetailClick,
|
|
62213
|
-
handleLogin: handleLogin,
|
|
62214
|
-
isLogin: isLogin,
|
|
62215
|
-
onSubscribe: onSubscribe,
|
|
62216
|
-
setIsSubscribe: setIsSubscribe,
|
|
62217
|
-
status: status,
|
|
62218
|
-
isMobile: true
|
|
62219
|
-
}))));
|
|
61877
|
+
})));
|
|
62220
61878
|
}
|
|
62221
61879
|
|
|
62222
61880
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
@@ -62383,6 +62041,7 @@ function PublicLiveList(_ref) {
|
|
|
62383
62041
|
}
|
|
62384
62042
|
|
|
62385
62043
|
var isMobile = (0,util_env/* isInMobile */.Df)();
|
|
62044
|
+
var isPad = (0,util_env/* isPadMode */.Td)();
|
|
62386
62045
|
|
|
62387
62046
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)([]),
|
|
62388
62047
|
_useState2 = list_slicedToArray(_useState, 2),
|
|
@@ -62633,7 +62292,7 @@ function PublicLiveList(_ref) {
|
|
|
62633
62292
|
loading: loading,
|
|
62634
62293
|
delay: 500
|
|
62635
62294
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62636
|
-
className: src_list_index_module.list
|
|
62295
|
+
className: classnames_default()(src_list_index_module.list, list_defineProperty({}, src_list_index_module.padList, isPad))
|
|
62637
62296
|
}, loading ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, !loading && list.length ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, list.map(function (listItem) {
|
|
62638
62297
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(ListItem, {
|
|
62639
62298
|
themeName: themeName,
|