@x-edu/live-player 0.0.49 → 0.0.51
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 +946 -625
- package/package.json +1 -1
|
@@ -2700,41 +2700,6 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2700
2700
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2701
2701
|
|
|
2702
2702
|
|
|
2703
|
-
/***/ }),
|
|
2704
|
-
|
|
2705
|
-
/***/ 2429:
|
|
2706
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2707
|
-
|
|
2708
|
-
"use strict";
|
|
2709
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3645);
|
|
2710
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
2711
|
-
// Imports
|
|
2712
|
-
|
|
2713
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2714
|
-
// Module
|
|
2715
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".MobileListItem-module_mobileContainer_pKQh1{display:flex;flex-direction:column;background:#fff;border-radius:8px;overflow:hidden;height:100%}.MobileListItem-module_mobileCoverWrap_wkE2E{position:relative;width:100%;padding-top:56.25%;overflow:hidden;background:#f0f0f0}.MobileListItem-module_mobileCover_LFdCM{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;display:block}.MobileListItem-module_mobileContent_gMOFL{padding:12px;display:flex;flex-direction:column;flex:1}.MobileListItem-module_mobileTitleRow_GOyCv{margin-bottom:4px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:24px;font-size:16px;min-height:49px}.MobileListItem-module_mobileStatusTag_gy7Sz{margin-right:4px!important;flex-shrink:0;margin-top:2px;font-size:10px!important;height:16px!important;line-height:20px!important}.MobileListItem-module_mobileStatusTag_gy7Sz img{width:12px!important;height:12px!important}.MobileListItem-module_mobileTitle_uRghs{display:inline;color:#333;font-size:12px;font-style:normal;font-weight:500;line-height:18px}.MobileListItem-module_mobileMetaRow_e-nuZ{margin-bottom:12px}.MobileListItem-module_mobileMetaText_zGT4Y{display:flex;align-items:center;font-size:10px;color:#999;line-height:18px}.MobileListItem-module_mobileMetaIcon_dAPzw{width:16px;height:16px;opacity:.6}.MobileListItem-module_countDownLabel_tj8Bg,.MobileListItem-module_mobileMetaIcon_dAPzw{margin-right:4px}.MobileListItem-module_countDown_CsZ2j{display:inline-flex}.MobileListItem-module_mobileFooterRow_xOlHB{justify-content:flex-end;flex:1 1 auto}.MobileListItem-module_mobileFooterRow_xOlHB,.MobileListItem-module_mobileHeat_6t7My{display:flex;align-items:center}.MobileListItem-module_mobileHeat_6t7My{font-size:10px;color:#666;flex-shrink:0}.MobileListItem-module_mobileHeatIcon_ME2tA{width:14px;height:14px;margin-right:4px;padding-bottom:2px}.MobileListItem-module_mobileAction_5o8i4{margin-left:auto}", ""]);
|
|
2716
|
-
// Exports
|
|
2717
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
2718
|
-
"mobileContainer": "MobileListItem-module_mobileContainer_pKQh1",
|
|
2719
|
-
"mobileCoverWrap": "MobileListItem-module_mobileCoverWrap_wkE2E",
|
|
2720
|
-
"mobileCover": "MobileListItem-module_mobileCover_LFdCM",
|
|
2721
|
-
"mobileContent": "MobileListItem-module_mobileContent_gMOFL",
|
|
2722
|
-
"mobileTitleRow": "MobileListItem-module_mobileTitleRow_GOyCv",
|
|
2723
|
-
"mobileStatusTag": "MobileListItem-module_mobileStatusTag_gy7Sz",
|
|
2724
|
-
"mobileTitle": "MobileListItem-module_mobileTitle_uRghs",
|
|
2725
|
-
"mobileMetaRow": "MobileListItem-module_mobileMetaRow_e-nuZ",
|
|
2726
|
-
"mobileMetaText": "MobileListItem-module_mobileMetaText_zGT4Y",
|
|
2727
|
-
"mobileMetaIcon": "MobileListItem-module_mobileMetaIcon_dAPzw",
|
|
2728
|
-
"countDownLabel": "MobileListItem-module_countDownLabel_tj8Bg",
|
|
2729
|
-
"countDown": "MobileListItem-module_countDown_CsZ2j",
|
|
2730
|
-
"mobileFooterRow": "MobileListItem-module_mobileFooterRow_xOlHB",
|
|
2731
|
-
"mobileHeat": "MobileListItem-module_mobileHeat_6t7My",
|
|
2732
|
-
"mobileHeatIcon": "MobileListItem-module_mobileHeatIcon_ME2tA",
|
|
2733
|
-
"mobileAction": "MobileListItem-module_mobileAction_5o8i4"
|
|
2734
|
-
};
|
|
2735
|
-
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
2703
|
/***/ }),
|
|
2739
2704
|
|
|
2740
2705
|
/***/ 1631:
|
|
@@ -2816,7 +2781,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2816
2781
|
|
|
2817
2782
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2818
2783
|
// Module
|
|
2819
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_timeBar_w1L71{display:flex;align-items:center;gap:
|
|
2784
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_timeBar_w1L71{display:flex;align-items:center;gap:4px}.index-module_cardTimeBar_7u8GK{justify-content:space-between}.index-module_statusText_\\+RyAK,.index-module_viewer_J8lJp{display:flex;gap:4px;font-size:12px;color:#666}.index-module_countdown_Ve6aF{display:flex}.index-module_countdownBox_Vvek-{display:flex;align-items:center;gap:4px;font-size:14px;color:#666}", ""]);
|
|
2820
2785
|
// Exports
|
|
2821
2786
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2822
2787
|
"timeBar": "index-module_timeBar_w1L71",
|
|
@@ -2856,6 +2821,41 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2856
2821
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2857
2822
|
|
|
2858
2823
|
|
|
2824
|
+
/***/ }),
|
|
2825
|
+
|
|
2826
|
+
/***/ 4975:
|
|
2827
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2828
|
+
|
|
2829
|
+
"use strict";
|
|
2830
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3645);
|
|
2831
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
2832
|
+
// Imports
|
|
2833
|
+
|
|
2834
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2835
|
+
// Module
|
|
2836
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".MobileListItem-module_mobileContainer_wfLKG{display:flex;flex-direction:column;border-radius:8px;overflow:hidden;height:100%;background:linear-gradient(180deg,#fff,#fff 62.98%,rgba(0,247,255,.08));border:1px solid #eef4ff}.MobileListItem-module_mobileCoverWrap_271x\\+{position:relative;width:100%;padding-top:56.25%;overflow:hidden;background:#f0f0f0}.MobileListItem-module_mobileCover_LBJ85{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;display:block}.MobileListItem-module_mobileContent_zA7iL{padding:12px;display:flex;flex-direction:column;flex:1}.MobileListItem-module_mobileTitleRow_O\\+\\+oM{margin-bottom:4px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:24px;font-size:16px;min-height:49px}.MobileListItem-module_mobileStatusTag_ZDlxf{margin-right:4px!important;flex-shrink:0;margin-top:2px;font-size:10px!important;height:16px!important;line-height:20px!important}.MobileListItem-module_mobileStatusTag_ZDlxf img{width:12px!important;height:12px!important}.MobileListItem-module_mobileTitle_Qpabu{display:inline;color:#333;font-size:12px;font-style:normal;font-weight:500;line-height:18px}.MobileListItem-module_mobileMetaRow_P0gQ\\+{margin-bottom:12px}.MobileListItem-module_mobileMetaText_DNbQG{display:flex;align-items:center;font-size:10px;color:#999;line-height:18px}.MobileListItem-module_mobileMetaIcon_uoXZB{width:16px;height:16px;opacity:.6}.MobileListItem-module_countDownLabel_DV35Y,.MobileListItem-module_mobileMetaIcon_uoXZB{margin-right:4px}.MobileListItem-module_countDown_\\+eGzt{display:inline-flex}.MobileListItem-module_mobileFooterRow_ekYRA{justify-content:flex-end;flex:1 1 auto}.MobileListItem-module_mobileFooterRow_ekYRA,.MobileListItem-module_mobileHeat_V3\\+9A{display:flex;align-items:center}.MobileListItem-module_mobileHeat_V3\\+9A{font-size:10px;color:#666;flex-shrink:0}.MobileListItem-module_mobileHeatIcon_ZgirG{width:14px;height:14px;margin-right:4px;padding-bottom:2px}.MobileListItem-module_mobileAction_j\\+w5d{margin-left:auto}", ""]);
|
|
2837
|
+
// Exports
|
|
2838
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
2839
|
+
"mobileContainer": "MobileListItem-module_mobileContainer_wfLKG",
|
|
2840
|
+
"mobileCoverWrap": "MobileListItem-module_mobileCoverWrap_271x+",
|
|
2841
|
+
"mobileCover": "MobileListItem-module_mobileCover_LBJ85",
|
|
2842
|
+
"mobileContent": "MobileListItem-module_mobileContent_zA7iL",
|
|
2843
|
+
"mobileTitleRow": "MobileListItem-module_mobileTitleRow_O++oM",
|
|
2844
|
+
"mobileStatusTag": "MobileListItem-module_mobileStatusTag_ZDlxf",
|
|
2845
|
+
"mobileTitle": "MobileListItem-module_mobileTitle_Qpabu",
|
|
2846
|
+
"mobileMetaRow": "MobileListItem-module_mobileMetaRow_P0gQ+",
|
|
2847
|
+
"mobileMetaText": "MobileListItem-module_mobileMetaText_DNbQG",
|
|
2848
|
+
"mobileMetaIcon": "MobileListItem-module_mobileMetaIcon_uoXZB",
|
|
2849
|
+
"countDownLabel": "MobileListItem-module_countDownLabel_DV35Y",
|
|
2850
|
+
"countDown": "MobileListItem-module_countDown_+eGzt",
|
|
2851
|
+
"mobileFooterRow": "MobileListItem-module_mobileFooterRow_ekYRA",
|
|
2852
|
+
"mobileHeat": "MobileListItem-module_mobileHeat_V3+9A",
|
|
2853
|
+
"mobileHeatIcon": "MobileListItem-module_mobileHeatIcon_ZgirG",
|
|
2854
|
+
"mobileAction": "MobileListItem-module_mobileAction_j+w5d"
|
|
2855
|
+
};
|
|
2856
|
+
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2857
|
+
|
|
2858
|
+
|
|
2859
2859
|
/***/ }),
|
|
2860
2860
|
|
|
2861
2861
|
/***/ 4979:
|
|
@@ -25839,6 +25839,13 @@ module.exports = styleTagTransform;
|
|
|
25839
25839
|
|
|
25840
25840
|
/***/ }),
|
|
25841
25841
|
|
|
25842
|
+
/***/ 5273:
|
|
25843
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25844
|
+
|
|
25845
|
+
module.exports = __webpack_require__(5666);
|
|
25846
|
+
|
|
25847
|
+
/***/ }),
|
|
25848
|
+
|
|
25842
25849
|
/***/ 3006:
|
|
25843
25850
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25844
25851
|
|
|
@@ -30651,17 +30658,6 @@ var Request = /*#__PURE__*/function () {
|
|
|
30651
30658
|
}();
|
|
30652
30659
|
|
|
30653
30660
|
|
|
30654
|
-
;// CONCATENATED MODULE: ./src/util/getTimestamp.js
|
|
30655
|
-
/**
|
|
30656
|
-
* 获取时间戳
|
|
30657
|
-
* @param {number} second 时间间隔,以秒为单位,超过
|
|
30658
|
-
* @returns {string} 时间戳
|
|
30659
|
-
*/
|
|
30660
|
-
function getTimestamp(second) {
|
|
30661
|
-
// 转换毫秒
|
|
30662
|
-
var now = Math.floor(Date.now() / 1000);
|
|
30663
|
-
return Math.floor(now / second) * second;
|
|
30664
|
-
}
|
|
30665
30661
|
// EXTERNAL MODULE: ./src/util/env.js
|
|
30666
30662
|
var util_env = __webpack_require__(2983);
|
|
30667
30663
|
// EXTERNAL MODULE: ./src/util/url.js
|
|
@@ -30871,21 +30867,17 @@ function generateCommonAPI(params) {
|
|
|
30871
30867
|
var api = rawAPI(helper_objectSpread({}, params));
|
|
30872
30868
|
api.interceptors.request.use( /*#__PURE__*/function () {
|
|
30873
30869
|
var _ref = helper_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(c) {
|
|
30874
|
-
var _c$params$v;
|
|
30875
|
-
|
|
30876
30870
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
30877
30871
|
while (1) {
|
|
30878
30872
|
switch (_context.prev = _context.next) {
|
|
30879
30873
|
case 0:
|
|
30880
|
-
c.params = c.params || {};
|
|
30881
|
-
|
|
30882
|
-
|
|
30883
|
-
c.params.v = (_c$params$v = c.params.v) !== null && _c$params$v !== void 0 ? _c$params$v : getTimestamp(10 * 60);
|
|
30884
|
-
}
|
|
30874
|
+
c.params = c.params || {}; // if (process.env.SDP_ENV !== 'ncet-xedu') {
|
|
30875
|
+
// c.params.v = c.params.v ?? getTimestamp(10 * 60)
|
|
30876
|
+
// }
|
|
30885
30877
|
|
|
30886
30878
|
return _context.abrupt("return", c);
|
|
30887
30879
|
|
|
30888
|
-
case
|
|
30880
|
+
case 2:
|
|
30889
30881
|
case "end":
|
|
30890
30882
|
return _context.stop();
|
|
30891
30883
|
}
|
|
@@ -33453,6 +33445,9 @@ var index_module_update = injectStylesIntoStyleTag_default()(index_module/* defa
|
|
|
33453
33445
|
|
|
33454
33446
|
/* harmony default export */ var LiveCountDown_index_module = (index_module/* default */.Z && index_module/* default.locals */.Z.locals ? index_module/* default.locals */.Z.locals : undefined);
|
|
33455
33447
|
|
|
33448
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
33449
|
+
var runtime_regenerator = __webpack_require__(5273);
|
|
33450
|
+
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
33456
33451
|
;// CONCATENATED MODULE: ./src/hook/useIsMounted.js
|
|
33457
33452
|
|
|
33458
33453
|
|
|
@@ -33519,9 +33514,9 @@ function isSourceReady(_x) {
|
|
|
33519
33514
|
}
|
|
33520
33515
|
|
|
33521
33516
|
function _isSourceReady() {
|
|
33522
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33517
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(liveInfo) {
|
|
33523
33518
|
var newLiveInfo;
|
|
33524
|
-
return
|
|
33519
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33525
33520
|
while (1) {
|
|
33526
33521
|
switch (_context.prev = _context.next) {
|
|
33527
33522
|
case 0:
|
|
@@ -33698,12 +33693,12 @@ function usePullSource(_ref) {
|
|
|
33698
33693
|
}
|
|
33699
33694
|
|
|
33700
33695
|
function _checkLiveReadyInterval() {
|
|
33701
|
-
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33696
|
+
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
33702
33697
|
var i,
|
|
33703
33698
|
liveStatus,
|
|
33704
33699
|
isSourceReady,
|
|
33705
33700
|
_args = arguments;
|
|
33706
|
-
return
|
|
33701
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33707
33702
|
while (1) {
|
|
33708
33703
|
switch (_context.prev = _context.next) {
|
|
33709
33704
|
case 0:
|
|
@@ -33789,8 +33784,8 @@ function checkSourceReady(_x) {
|
|
|
33789
33784
|
}
|
|
33790
33785
|
|
|
33791
33786
|
function _checkSourceReady() {
|
|
33792
|
-
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33793
|
-
return
|
|
33787
|
+
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(url) {
|
|
33788
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
33794
33789
|
while (1) {
|
|
33795
33790
|
switch (_context2.prev = _context2.next) {
|
|
33796
33791
|
case 0:
|
|
@@ -33823,9 +33818,9 @@ function getLiveNewStatus(_x2) {
|
|
|
33823
33818
|
}
|
|
33824
33819
|
|
|
33825
33820
|
function _getLiveNewStatus() {
|
|
33826
|
-
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33821
|
+
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(liveInfo) {
|
|
33827
33822
|
var newLiveInfo;
|
|
33828
|
-
return
|
|
33823
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
33829
33824
|
while (1) {
|
|
33830
33825
|
switch (_context3.prev = _context3.next) {
|
|
33831
33826
|
case 0:
|
|
@@ -34475,6 +34470,39 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
34475
34470
|
// style dependencies
|
|
34476
34471
|
|
|
34477
34472
|
|
|
34473
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
34474
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
34475
|
+
if (key in obj) {
|
|
34476
|
+
Object.defineProperty(obj, key, {
|
|
34477
|
+
value: value,
|
|
34478
|
+
enumerable: true,
|
|
34479
|
+
configurable: true,
|
|
34480
|
+
writable: true
|
|
34481
|
+
});
|
|
34482
|
+
} else {
|
|
34483
|
+
obj[key] = value;
|
|
34484
|
+
}
|
|
34485
|
+
|
|
34486
|
+
return obj;
|
|
34487
|
+
}
|
|
34488
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
34489
|
+
function esm_extends_extends() {
|
|
34490
|
+
esm_extends_extends = Object.assign || function (target) {
|
|
34491
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
34492
|
+
var source = arguments[i];
|
|
34493
|
+
|
|
34494
|
+
for (var key in source) {
|
|
34495
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34496
|
+
target[key] = source[key];
|
|
34497
|
+
}
|
|
34498
|
+
}
|
|
34499
|
+
}
|
|
34500
|
+
|
|
34501
|
+
return target;
|
|
34502
|
+
};
|
|
34503
|
+
|
|
34504
|
+
return esm_extends_extends.apply(this, arguments);
|
|
34505
|
+
}
|
|
34478
34506
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
34479
34507
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
34480
34508
|
if (Array.isArray(arr)) return arr;
|
|
@@ -34509,6 +34537,26 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
34509
34537
|
|
|
34510
34538
|
return _arr;
|
|
34511
34539
|
}
|
|
34540
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34541
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34542
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
34543
|
+
|
|
34544
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34545
|
+
arr2[i] = arr[i];
|
|
34546
|
+
}
|
|
34547
|
+
|
|
34548
|
+
return arr2;
|
|
34549
|
+
}
|
|
34550
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34551
|
+
|
|
34552
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34553
|
+
if (!o) return;
|
|
34554
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34555
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34556
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34557
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34558
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34559
|
+
}
|
|
34512
34560
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34513
34561
|
function nonIterableRest_nonIterableRest() {
|
|
34514
34562
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34519,7 +34567,130 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34519
34567
|
|
|
34520
34568
|
|
|
34521
34569
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34522
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
34570
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34571
|
+
}
|
|
34572
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34573
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
34574
|
+
if (!(instance instanceof Constructor)) {
|
|
34575
|
+
throw new TypeError("Cannot call a class as a function");
|
|
34576
|
+
}
|
|
34577
|
+
}
|
|
34578
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
34579
|
+
function createClass_defineProperties(target, props) {
|
|
34580
|
+
for (var i = 0; i < props.length; i++) {
|
|
34581
|
+
var descriptor = props[i];
|
|
34582
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
34583
|
+
descriptor.configurable = true;
|
|
34584
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
34585
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34586
|
+
}
|
|
34587
|
+
}
|
|
34588
|
+
|
|
34589
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
34590
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
34591
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
34592
|
+
return Constructor;
|
|
34593
|
+
}
|
|
34594
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
34595
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
34596
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
34597
|
+
o.__proto__ = p;
|
|
34598
|
+
return o;
|
|
34599
|
+
};
|
|
34600
|
+
|
|
34601
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
34602
|
+
}
|
|
34603
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
34604
|
+
|
|
34605
|
+
function inherits_inherits(subClass, superClass) {
|
|
34606
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
34607
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
34608
|
+
}
|
|
34609
|
+
|
|
34610
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
34611
|
+
constructor: {
|
|
34612
|
+
value: subClass,
|
|
34613
|
+
writable: true,
|
|
34614
|
+
configurable: true
|
|
34615
|
+
}
|
|
34616
|
+
});
|
|
34617
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
34618
|
+
}
|
|
34619
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
34620
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
34621
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
34622
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
34623
|
+
};
|
|
34624
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
34625
|
+
}
|
|
34626
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
34627
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
34628
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
34629
|
+
if (Reflect.construct.sham) return false;
|
|
34630
|
+
if (typeof Proxy === "function") return true;
|
|
34631
|
+
|
|
34632
|
+
try {
|
|
34633
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
34634
|
+
return true;
|
|
34635
|
+
} catch (e) {
|
|
34636
|
+
return false;
|
|
34637
|
+
}
|
|
34638
|
+
}
|
|
34639
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
34640
|
+
function esm_typeof_typeof(obj) {
|
|
34641
|
+
"@babel/helpers - typeof";
|
|
34642
|
+
|
|
34643
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
34644
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
34645
|
+
return typeof obj;
|
|
34646
|
+
};
|
|
34647
|
+
} else {
|
|
34648
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
34649
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
34650
|
+
};
|
|
34651
|
+
}
|
|
34652
|
+
|
|
34653
|
+
return esm_typeof_typeof(obj);
|
|
34654
|
+
}
|
|
34655
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
34656
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
34657
|
+
if (self === void 0) {
|
|
34658
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34659
|
+
}
|
|
34660
|
+
|
|
34661
|
+
return self;
|
|
34662
|
+
}
|
|
34663
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
34664
|
+
|
|
34665
|
+
|
|
34666
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
34667
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
34668
|
+
return call;
|
|
34669
|
+
} else if (call !== void 0) {
|
|
34670
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
34671
|
+
}
|
|
34672
|
+
|
|
34673
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
34674
|
+
}
|
|
34675
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
34676
|
+
|
|
34677
|
+
|
|
34678
|
+
|
|
34679
|
+
function createSuper_createSuper(Derived) {
|
|
34680
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
34681
|
+
return function _createSuperInternal() {
|
|
34682
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
34683
|
+
result;
|
|
34684
|
+
|
|
34685
|
+
if (hasNativeReflectConstruct) {
|
|
34686
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
34687
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
34688
|
+
} else {
|
|
34689
|
+
result = Super.apply(this, arguments);
|
|
34690
|
+
}
|
|
34691
|
+
|
|
34692
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
34693
|
+
};
|
|
34523
34694
|
}
|
|
34524
34695
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34525
34696
|
var raf = function raf(callback) {
|
|
@@ -34746,6 +34917,27 @@ var cacheStyle = {};
|
|
|
34746
34917
|
}
|
|
34747
34918
|
}
|
|
34748
34919
|
});
|
|
34920
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34921
|
+
|
|
34922
|
+
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34923
|
+
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34924
|
+
}
|
|
34925
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34926
|
+
function iterableToArray_iterableToArray(iter) {
|
|
34927
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34928
|
+
}
|
|
34929
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34930
|
+
function nonIterableSpread_nonIterableSpread() {
|
|
34931
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34932
|
+
}
|
|
34933
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34934
|
+
|
|
34935
|
+
|
|
34936
|
+
|
|
34937
|
+
|
|
34938
|
+
function toConsumableArray_toConsumableArray(arr) {
|
|
34939
|
+
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34940
|
+
}
|
|
34749
34941
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34750
34942
|
|
|
34751
34943
|
|
|
@@ -34762,7 +34954,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34762
34954
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34763
34955
|
var _this = this;
|
|
34764
34956
|
|
|
34765
|
-
|
|
34957
|
+
classCallCheck_classCallCheck(this, ScrollLocker);
|
|
34766
34958
|
|
|
34767
34959
|
this.lockTarget = void 0;
|
|
34768
34960
|
this.options = void 0;
|
|
@@ -34810,7 +35002,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34810
35002
|
var options = _ref3.options;
|
|
34811
35003
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34812
35004
|
})) {
|
|
34813
|
-
locks = [].concat(
|
|
35005
|
+
locks = [].concat(toConsumableArray_toConsumableArray(locks), [{
|
|
34814
35006
|
target: _this.lockTarget,
|
|
34815
35007
|
options: _this.options
|
|
34816
35008
|
}]);
|
|
@@ -34848,7 +35040,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34848
35040
|
container.className = addClassName.trim();
|
|
34849
35041
|
}
|
|
34850
35042
|
|
|
34851
|
-
locks = [].concat(
|
|
35043
|
+
locks = [].concat(toConsumableArray_toConsumableArray(locks), [{
|
|
34852
35044
|
target: _this.lockTarget,
|
|
34853
35045
|
options: _this.options
|
|
34854
35046
|
}]);
|
|
@@ -34932,7 +35124,7 @@ var getParent = function getParent(getContainer) {
|
|
|
34932
35124
|
return getContainer();
|
|
34933
35125
|
}
|
|
34934
35126
|
|
|
34935
|
-
if (
|
|
35127
|
+
if (esm_typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
34936
35128
|
return getContainer;
|
|
34937
35129
|
}
|
|
34938
35130
|
}
|
|
@@ -34941,14 +35133,14 @@ var getParent = function getParent(getContainer) {
|
|
|
34941
35133
|
};
|
|
34942
35134
|
|
|
34943
35135
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
34944
|
-
|
|
35136
|
+
inherits_inherits(PortalWrapper, _React$Component);
|
|
34945
35137
|
|
|
34946
|
-
var _super =
|
|
35138
|
+
var _super = createSuper_createSuper(PortalWrapper);
|
|
34947
35139
|
|
|
34948
35140
|
function PortalWrapper(props) {
|
|
34949
35141
|
var _this;
|
|
34950
35142
|
|
|
34951
|
-
|
|
35143
|
+
classCallCheck_classCallCheck(this, PortalWrapper);
|
|
34952
35144
|
|
|
34953
35145
|
_this = _super.call(this, props);
|
|
34954
35146
|
_this.container = void 0;
|
|
@@ -35068,7 +35260,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35068
35260
|
return _this;
|
|
35069
35261
|
}
|
|
35070
35262
|
|
|
35071
|
-
|
|
35263
|
+
createClass_createClass(PortalWrapper, [{
|
|
35072
35264
|
key: "componentDidMount",
|
|
35073
35265
|
value: function componentDidMount() {
|
|
35074
35266
|
var _this2 = this;
|
|
@@ -35136,6 +35328,46 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35136
35328
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
35137
35329
|
|
|
35138
35330
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
35331
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
35332
|
+
|
|
35333
|
+
|
|
35334
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
35335
|
+
var keys = Object.keys(object);
|
|
35336
|
+
|
|
35337
|
+
if (Object.getOwnPropertySymbols) {
|
|
35338
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
35339
|
+
|
|
35340
|
+
if (enumerableOnly) {
|
|
35341
|
+
symbols = symbols.filter(function (sym) {
|
|
35342
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
35343
|
+
});
|
|
35344
|
+
}
|
|
35345
|
+
|
|
35346
|
+
keys.push.apply(keys, symbols);
|
|
35347
|
+
}
|
|
35348
|
+
|
|
35349
|
+
return keys;
|
|
35350
|
+
}
|
|
35351
|
+
|
|
35352
|
+
function objectSpread2_objectSpread2(target) {
|
|
35353
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
35354
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
35355
|
+
|
|
35356
|
+
if (i % 2) {
|
|
35357
|
+
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
35358
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
35359
|
+
});
|
|
35360
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
35361
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
35362
|
+
} else {
|
|
35363
|
+
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
35364
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
35365
|
+
});
|
|
35366
|
+
}
|
|
35367
|
+
}
|
|
35368
|
+
|
|
35369
|
+
return target;
|
|
35370
|
+
}
|
|
35139
35371
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
35140
35372
|
/**
|
|
35141
35373
|
* @ignore
|
|
@@ -35802,7 +36034,7 @@ function pickAttrs(props) {
|
|
|
35802
36034
|
aria: true
|
|
35803
36035
|
};
|
|
35804
36036
|
} else {
|
|
35805
|
-
mergedConfig =
|
|
36037
|
+
mergedConfig = objectSpread2_objectSpread2({}, ariaOnly);
|
|
35806
36038
|
}
|
|
35807
36039
|
|
|
35808
36040
|
var attrs = {};
|
|
@@ -35835,7 +36067,7 @@ var react_is = __webpack_require__(9864);
|
|
|
35835
36067
|
function fillRef(ref, node) {
|
|
35836
36068
|
if (typeof ref === 'function') {
|
|
35837
36069
|
ref(node);
|
|
35838
|
-
} else if (
|
|
36070
|
+
} else if (esm_typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
35839
36071
|
ref.current = node;
|
|
35840
36072
|
}
|
|
35841
36073
|
}
|
|
@@ -35945,7 +36177,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
35945
36177
|
function getTransitionName(transitionName, transitionType) {
|
|
35946
36178
|
if (!transitionName) return null;
|
|
35947
36179
|
|
|
35948
|
-
if (
|
|
36180
|
+
if (esm_typeof_typeof(transitionName) === 'object') {
|
|
35949
36181
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
35950
36182
|
return match[1].toUpperCase();
|
|
35951
36183
|
});
|
|
@@ -36238,13 +36470,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36238
36470
|
|
|
36239
36471
|
switch (status) {
|
|
36240
36472
|
case 'appear':
|
|
36241
|
-
return _ref2 = {},
|
|
36473
|
+
return _ref2 = {}, defineProperty_defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), defineProperty_defineProperty(_ref2, STEP_START, onAppearStart), defineProperty_defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
36242
36474
|
|
|
36243
36475
|
case 'enter':
|
|
36244
|
-
return _ref3 = {},
|
|
36476
|
+
return _ref3 = {}, defineProperty_defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), defineProperty_defineProperty(_ref3, STEP_START, onEnterStart), defineProperty_defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
36245
36477
|
|
|
36246
36478
|
case 'leave':
|
|
36247
|
-
return _ref4 = {},
|
|
36479
|
+
return _ref4 = {}, defineProperty_defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), defineProperty_defineProperty(_ref4, STEP_START, onLeaveStart), defineProperty_defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
36248
36480
|
|
|
36249
36481
|
default:
|
|
36250
36482
|
return {};
|
|
@@ -36352,7 +36584,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36352
36584
|
var mergedStyle = style;
|
|
36353
36585
|
|
|
36354
36586
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
36355
|
-
mergedStyle =
|
|
36587
|
+
mergedStyle = objectSpread2_objectSpread2({
|
|
36356
36588
|
transition: 'none'
|
|
36357
36589
|
}, mergedStyle);
|
|
36358
36590
|
}
|
|
@@ -36367,17 +36599,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36367
36599
|
|
|
36368
36600
|
|
|
36369
36601
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
36370
|
-
|
|
36602
|
+
inherits_inherits(DomWrapper, _React$Component);
|
|
36371
36603
|
|
|
36372
|
-
var _super =
|
|
36604
|
+
var _super = createSuper_createSuper(DomWrapper);
|
|
36373
36605
|
|
|
36374
36606
|
function DomWrapper() {
|
|
36375
|
-
|
|
36607
|
+
classCallCheck_classCallCheck(this, DomWrapper);
|
|
36376
36608
|
|
|
36377
36609
|
return _super.apply(this, arguments);
|
|
36378
36610
|
}
|
|
36379
36611
|
|
|
36380
|
-
|
|
36612
|
+
createClass_createClass(DomWrapper, [{
|
|
36381
36613
|
key: "render",
|
|
36382
36614
|
value: function render() {
|
|
36383
36615
|
return this.props.children;
|
|
@@ -36413,7 +36645,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
36413
36645
|
function genCSSMotion(config) {
|
|
36414
36646
|
var transitionSupport = config;
|
|
36415
36647
|
|
|
36416
|
-
if (
|
|
36648
|
+
if (esm_typeof_typeof(config) === 'object') {
|
|
36417
36649
|
transitionSupport = config.transitionSupport;
|
|
36418
36650
|
}
|
|
36419
36651
|
|
|
@@ -36471,7 +36703,7 @@ function genCSSMotion(config) {
|
|
|
36471
36703
|
|
|
36472
36704
|
var motionChildren;
|
|
36473
36705
|
|
|
36474
|
-
var mergedProps =
|
|
36706
|
+
var mergedProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, eventProps), {}, {
|
|
36475
36707
|
visible: visible
|
|
36476
36708
|
});
|
|
36477
36709
|
|
|
@@ -36481,13 +36713,13 @@ function genCSSMotion(config) {
|
|
|
36481
36713
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
36482
36714
|
// Stable children
|
|
36483
36715
|
if (mergedVisible) {
|
|
36484
|
-
motionChildren = children(
|
|
36716
|
+
motionChildren = children(objectSpread2_objectSpread2({}, mergedProps), setNodeRef);
|
|
36485
36717
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
36486
|
-
motionChildren = children(
|
|
36718
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36487
36719
|
className: leavedClassName
|
|
36488
36720
|
}), setNodeRef);
|
|
36489
36721
|
} else if (forceRender) {
|
|
36490
|
-
motionChildren = children(
|
|
36722
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36491
36723
|
style: {
|
|
36492
36724
|
display: 'none'
|
|
36493
36725
|
}
|
|
@@ -36509,8 +36741,8 @@ function genCSSMotion(config) {
|
|
|
36509
36741
|
statusSuffix = 'start';
|
|
36510
36742
|
}
|
|
36511
36743
|
|
|
36512
|
-
motionChildren = children(
|
|
36513
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
36744
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36745
|
+
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {}, defineProperty_defineProperty(_classNames, getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix)), statusSuffix), defineProperty_defineProperty(_classNames, motionName, typeof motionName === 'string'), _classNames)),
|
|
36514
36746
|
style: statusStyle
|
|
36515
36747
|
}), setNodeRef);
|
|
36516
36748
|
}
|
|
@@ -36523,6 +36755,41 @@ function genCSSMotion(config) {
|
|
|
36523
36755
|
return CSSMotion;
|
|
36524
36756
|
}
|
|
36525
36757
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36758
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36759
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36760
|
+
if (source == null) return {};
|
|
36761
|
+
var target = {};
|
|
36762
|
+
var sourceKeys = Object.keys(source);
|
|
36763
|
+
var key, i;
|
|
36764
|
+
|
|
36765
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
36766
|
+
key = sourceKeys[i];
|
|
36767
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36768
|
+
target[key] = source[key];
|
|
36769
|
+
}
|
|
36770
|
+
|
|
36771
|
+
return target;
|
|
36772
|
+
}
|
|
36773
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36774
|
+
|
|
36775
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36776
|
+
if (source == null) return {};
|
|
36777
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36778
|
+
var key, i;
|
|
36779
|
+
|
|
36780
|
+
if (Object.getOwnPropertySymbols) {
|
|
36781
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36782
|
+
|
|
36783
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36784
|
+
key = sourceSymbolKeys[i];
|
|
36785
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36786
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36787
|
+
target[key] = source[key];
|
|
36788
|
+
}
|
|
36789
|
+
}
|
|
36790
|
+
|
|
36791
|
+
return target;
|
|
36792
|
+
}
|
|
36526
36793
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
36527
36794
|
|
|
36528
36795
|
|
|
@@ -36533,7 +36800,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
36533
36800
|
function wrapKeyToObject(key) {
|
|
36534
36801
|
var keyObj;
|
|
36535
36802
|
|
|
36536
|
-
if (key &&
|
|
36803
|
+
if (key && esm_typeof_typeof(key) === 'object' && 'key' in key) {
|
|
36537
36804
|
keyObj = key;
|
|
36538
36805
|
} else {
|
|
36539
36806
|
keyObj = {
|
|
@@ -36541,7 +36808,7 @@ function wrapKeyToObject(key) {
|
|
|
36541
36808
|
};
|
|
36542
36809
|
}
|
|
36543
36810
|
|
|
36544
|
-
return
|
|
36811
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
36545
36812
|
key: String(keyObj.key)
|
|
36546
36813
|
});
|
|
36547
36814
|
}
|
|
@@ -36568,14 +36835,14 @@ function diffKeys() {
|
|
|
36568
36835
|
// New added keys should add before current key
|
|
36569
36836
|
if (currentIndex < i) {
|
|
36570
36837
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
36571
|
-
return
|
|
36838
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
36572
36839
|
status: STATUS_ADD
|
|
36573
36840
|
});
|
|
36574
36841
|
}));
|
|
36575
36842
|
currentIndex = i;
|
|
36576
36843
|
}
|
|
36577
36844
|
|
|
36578
|
-
list.push(
|
|
36845
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentKeyObj), {}, {
|
|
36579
36846
|
status: STATUS_KEEP
|
|
36580
36847
|
}));
|
|
36581
36848
|
currentIndex += 1;
|
|
@@ -36586,7 +36853,7 @@ function diffKeys() {
|
|
|
36586
36853
|
|
|
36587
36854
|
|
|
36588
36855
|
if (!hit) {
|
|
36589
|
-
list.push(
|
|
36856
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
36590
36857
|
status: STATUS_REMOVE
|
|
36591
36858
|
}));
|
|
36592
36859
|
}
|
|
@@ -36594,7 +36861,7 @@ function diffKeys() {
|
|
|
36594
36861
|
|
|
36595
36862
|
if (currentIndex < currentLen) {
|
|
36596
36863
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36597
|
-
return
|
|
36864
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
36598
36865
|
status: STATUS_ADD
|
|
36599
36866
|
});
|
|
36600
36867
|
}));
|
|
@@ -36655,14 +36922,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36655
36922
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36656
36923
|
|
|
36657
36924
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36658
|
-
|
|
36925
|
+
inherits_inherits(CSSMotionList, _React$Component);
|
|
36659
36926
|
|
|
36660
|
-
var _super =
|
|
36927
|
+
var _super = createSuper_createSuper(CSSMotionList);
|
|
36661
36928
|
|
|
36662
36929
|
function CSSMotionList() {
|
|
36663
36930
|
var _this;
|
|
36664
36931
|
|
|
36665
|
-
|
|
36932
|
+
classCallCheck_classCallCheck(this, CSSMotionList);
|
|
36666
36933
|
|
|
36667
36934
|
_this = _super.apply(this, arguments);
|
|
36668
36935
|
_this.state = {
|
|
@@ -36675,7 +36942,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36675
36942
|
return {
|
|
36676
36943
|
keyEntities: keyEntities.map(function (entity) {
|
|
36677
36944
|
if (entity.key !== removeKey) return entity;
|
|
36678
|
-
return
|
|
36945
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, entity), {}, {
|
|
36679
36946
|
status: STATUS_REMOVED
|
|
36680
36947
|
});
|
|
36681
36948
|
})
|
|
@@ -36686,7 +36953,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36686
36953
|
return _this;
|
|
36687
36954
|
}
|
|
36688
36955
|
|
|
36689
|
-
|
|
36956
|
+
createClass_createClass(CSSMotionList, [{
|
|
36690
36957
|
key: "render",
|
|
36691
36958
|
value: function render() {
|
|
36692
36959
|
var _this2 = this;
|
|
@@ -36697,7 +36964,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36697
36964
|
component = _this$props.component,
|
|
36698
36965
|
children = _this$props.children,
|
|
36699
36966
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36700
|
-
restProps =
|
|
36967
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36701
36968
|
|
|
36702
36969
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36703
36970
|
var motionProps = {};
|
|
@@ -36708,10 +36975,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36708
36975
|
delete restProps.keys;
|
|
36709
36976
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36710
36977
|
var status = _ref2.status,
|
|
36711
|
-
eventProps =
|
|
36978
|
+
eventProps = objectWithoutProperties_objectWithoutProperties(_ref2, ["status"]);
|
|
36712
36979
|
|
|
36713
36980
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36714
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
36981
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, esm_extends_extends({}, motionProps, {
|
|
36715
36982
|
key: eventProps.key,
|
|
36716
36983
|
visible: visible,
|
|
36717
36984
|
eventProps: eventProps,
|
|
@@ -36785,8 +37052,8 @@ function Mask(props) {
|
|
|
36785
37052
|
}, function (_ref) {
|
|
36786
37053
|
var motionClassName = _ref.className,
|
|
36787
37054
|
motionStyle = _ref.style;
|
|
36788
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36789
|
-
style:
|
|
37055
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
37056
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), style),
|
|
36790
37057
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36791
37058
|
}, maskProps));
|
|
36792
37059
|
});
|
|
@@ -36969,7 +37236,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36969
37236
|
|
|
36970
37237
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
36971
37238
|
className: "".concat(prefixCls, "-content")
|
|
36972
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37239
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36973
37240
|
className: "".concat(prefixCls, "-body"),
|
|
36974
37241
|
style: bodyStyle
|
|
36975
37242
|
}, bodyProps), children), footerNode);
|
|
@@ -36989,7 +37256,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36989
37256
|
key: "dialog-element",
|
|
36990
37257
|
role: "document",
|
|
36991
37258
|
ref: motionRef,
|
|
36992
|
-
style:
|
|
37259
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), style), contentStyle),
|
|
36993
37260
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
36994
37261
|
onMouseDown: onMouseDown,
|
|
36995
37262
|
onMouseUp: onMouseUp
|
|
@@ -37171,7 +37438,7 @@ function Dialog(props) {
|
|
|
37171
37438
|
return function () {};
|
|
37172
37439
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
37173
37440
|
|
|
37174
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37441
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
37175
37442
|
className: "".concat(prefixCls, "-root")
|
|
37176
37443
|
}, pickAttrs(props, {
|
|
37177
37444
|
data: true
|
|
@@ -37179,11 +37446,11 @@ function Dialog(props) {
|
|
|
37179
37446
|
prefixCls: prefixCls,
|
|
37180
37447
|
visible: mask && visible,
|
|
37181
37448
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
37182
|
-
style:
|
|
37449
|
+
style: objectSpread2_objectSpread2({
|
|
37183
37450
|
zIndex: zIndex
|
|
37184
37451
|
}, maskStyle),
|
|
37185
37452
|
maskProps: maskProps
|
|
37186
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37453
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
37187
37454
|
tabIndex: -1,
|
|
37188
37455
|
onKeyDown: onWrapperKeyDown,
|
|
37189
37456
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -37191,12 +37458,12 @@ function Dialog(props) {
|
|
|
37191
37458
|
onClick: onWrapperClick,
|
|
37192
37459
|
role: "dialog",
|
|
37193
37460
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
37194
|
-
style:
|
|
37461
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
37195
37462
|
zIndex: zIndex
|
|
37196
37463
|
}, wrapStyle), {}, {
|
|
37197
37464
|
display: !animatedVisible ? 'none' : null
|
|
37198
37465
|
})
|
|
37199
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
37466
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, esm_extends_extends({}, props, {
|
|
37200
37467
|
onMouseDown: onContentMouseDown,
|
|
37201
37468
|
onMouseUp: onContentMouseUp,
|
|
37202
37469
|
ref: contentRef,
|
|
@@ -37244,7 +37511,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37244
37511
|
}, [visible]); // 渲染在当前 dom 里;
|
|
37245
37512
|
|
|
37246
37513
|
if (getContainer === false) {
|
|
37247
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37514
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
37248
37515
|
getOpenCount: function getOpenCount() {
|
|
37249
37516
|
return 2;
|
|
37250
37517
|
} // 不对 body 做任何操作。。
|
|
@@ -37262,7 +37529,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37262
37529
|
forceRender: forceRender,
|
|
37263
37530
|
getContainer: getContainer
|
|
37264
37531
|
}, function (childProps) {
|
|
37265
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37532
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
37266
37533
|
destroyOnClose: destroyOnClose,
|
|
37267
37534
|
afterClose: function afterClose() {
|
|
37268
37535
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -37297,8 +37564,8 @@ function getConfirmLocale() {
|
|
|
37297
37564
|
|
|
37298
37565
|
|
|
37299
37566
|
|
|
37300
|
-
var UnreachableException = /*#__PURE__*/
|
|
37301
|
-
|
|
37567
|
+
var UnreachableException = /*#__PURE__*/createClass_createClass(function UnreachableException(value) {
|
|
37568
|
+
classCallCheck_classCallCheck(this, UnreachableException);
|
|
37302
37569
|
|
|
37303
37570
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
37304
37571
|
});
|
|
@@ -37361,8 +37628,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
37361
37628
|
console.warn(new UnreachableException(size).error);
|
|
37362
37629
|
}
|
|
37363
37630
|
|
|
37364
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37365
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37631
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37632
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, others, {
|
|
37366
37633
|
className: classes
|
|
37367
37634
|
}));
|
|
37368
37635
|
});
|
|
@@ -37433,14 +37700,14 @@ function isNotGrey(color) {
|
|
|
37433
37700
|
}
|
|
37434
37701
|
|
|
37435
37702
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
37436
|
-
|
|
37703
|
+
inherits_inherits(Wave, _React$Component);
|
|
37437
37704
|
|
|
37438
|
-
var _super =
|
|
37705
|
+
var _super = createSuper_createSuper(Wave);
|
|
37439
37706
|
|
|
37440
37707
|
function Wave() {
|
|
37441
37708
|
var _this;
|
|
37442
37709
|
|
|
37443
|
-
|
|
37710
|
+
classCallCheck_classCallCheck(this, Wave);
|
|
37444
37711
|
|
|
37445
37712
|
_this = _super.apply(this, arguments);
|
|
37446
37713
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -37460,7 +37727,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37460
37727
|
|
|
37461
37728
|
_this.extraNode = document.createElement('div');
|
|
37462
37729
|
|
|
37463
|
-
var _assertThisInitialize =
|
|
37730
|
+
var _assertThisInitialize = assertThisInitialized_assertThisInitialized(_this),
|
|
37464
37731
|
extraNode = _assertThisInitialize.extraNode;
|
|
37465
37732
|
|
|
37466
37733
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -37567,7 +37834,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37567
37834
|
return _this;
|
|
37568
37835
|
}
|
|
37569
37836
|
|
|
37570
|
-
|
|
37837
|
+
createClass_createClass(Wave, [{
|
|
37571
37838
|
key: "componentDidMount",
|
|
37572
37839
|
value: function componentDidMount() {
|
|
37573
37840
|
var node = this.containerRef.current;
|
|
@@ -37794,7 +38061,7 @@ function spaceChildren(children, needInserted) {
|
|
|
37794
38061
|
var isPrevChildPure = false;
|
|
37795
38062
|
var childList = [];
|
|
37796
38063
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
37797
|
-
var type =
|
|
38064
|
+
var type = esm_typeof_typeof(child);
|
|
37798
38065
|
|
|
37799
38066
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
37800
38067
|
|
|
@@ -37894,7 +38161,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37894
38161
|
}; // =============== Update Loading ===============
|
|
37895
38162
|
|
|
37896
38163
|
|
|
37897
|
-
var loadingOrDelay =
|
|
38164
|
+
var loadingOrDelay = esm_typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
37898
38165
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
37899
38166
|
clearTimeout(delayTimeoutRef.current);
|
|
37900
38167
|
|
|
@@ -37934,7 +38201,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37934
38201
|
var sizeFullname = customizeSize || size;
|
|
37935
38202
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
37936
38203
|
var iconType = innerLoading ? 'loading' : icon;
|
|
37937
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
38204
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(type), type), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(shape), shape !== 'default' && shape), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-icon-only"), !children && children !== 0 && !!iconType), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-background-ghost"), ghost && !isUnborderedButtonType(type)), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-loading"), innerLoading), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-two-chinese-chars"), hasTwoCNChar && autoInsertSpace), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-block"), block), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-dangerous"), !!danger), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37938
38205
|
var iconNode;
|
|
37939
38206
|
|
|
37940
38207
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -37953,14 +38220,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37953
38220
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
37954
38221
|
|
|
37955
38222
|
if (linkButtonRestProps.href !== undefined) {
|
|
37956
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
38223
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", esm_extends_extends({}, linkButtonRestProps, {
|
|
37957
38224
|
className: classes,
|
|
37958
38225
|
onClick: handleClick,
|
|
37959
38226
|
ref: buttonRef
|
|
37960
38227
|
}), iconNode, kids);
|
|
37961
38228
|
}
|
|
37962
38229
|
|
|
37963
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
38230
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", esm_extends_extends({}, rest, {
|
|
37964
38231
|
type: htmlType,
|
|
37965
38232
|
className: classes,
|
|
37966
38233
|
onClick: handleClick,
|
|
@@ -38138,9 +38405,9 @@ var Modal = function Modal(props) {
|
|
|
38138
38405
|
okType = props.okType,
|
|
38139
38406
|
cancelText = props.cancelText,
|
|
38140
38407
|
confirmLoading = props.confirmLoading;
|
|
38141
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
38408
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, esm_extends_extends({
|
|
38142
38409
|
onClick: handleCancel
|
|
38143
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
38410
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, esm_extends_extends({}, convertLegacyProps(okType), {
|
|
38144
38411
|
loading: confirmLoading,
|
|
38145
38412
|
onClick: handleOk
|
|
38146
38413
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -38175,8 +38442,8 @@ var Modal = function Modal(props) {
|
|
|
38175
38442
|
type: "close",
|
|
38176
38443
|
className: "".concat(prefixCls, "-close-icon")
|
|
38177
38444
|
}));
|
|
38178
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
38179
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
38445
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
38446
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, esm_extends_extends({}, restProps, {
|
|
38180
38447
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
38181
38448
|
prefixCls: prefixCls,
|
|
38182
38449
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -38302,7 +38569,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
38302
38569
|
children = props.children,
|
|
38303
38570
|
prefixCls = props.prefixCls,
|
|
38304
38571
|
buttonProps = props.buttonProps;
|
|
38305
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
38572
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, esm_extends_extends({}, convertLegacyProps(type), {
|
|
38306
38573
|
onClick: onClick,
|
|
38307
38574
|
loading: loading,
|
|
38308
38575
|
prefixCls: prefixCls
|
|
@@ -39818,7 +40085,7 @@ function get(entity, path) {
|
|
|
39818
40085
|
|
|
39819
40086
|
|
|
39820
40087
|
function _toArray(arr) {
|
|
39821
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
40088
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
39822
40089
|
}
|
|
39823
40090
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
39824
40091
|
|
|
@@ -39840,9 +40107,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
39840
40107
|
if (!entity && typeof path === 'number') {
|
|
39841
40108
|
clone = [];
|
|
39842
40109
|
} else if (Array.isArray(entity)) {
|
|
39843
|
-
clone =
|
|
40110
|
+
clone = toConsumableArray_toConsumableArray(entity);
|
|
39844
40111
|
} else {
|
|
39845
|
-
clone =
|
|
40112
|
+
clone = objectSpread2_objectSpread2({}, entity);
|
|
39846
40113
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
39847
40114
|
|
|
39848
40115
|
|
|
@@ -39906,7 +40173,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
39906
40173
|
}
|
|
39907
40174
|
|
|
39908
40175
|
function isObject(obj) {
|
|
39909
|
-
return
|
|
40176
|
+
return esm_typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
39910
40177
|
}
|
|
39911
40178
|
/**
|
|
39912
40179
|
* Copy values into store and return a new values object
|
|
@@ -39915,7 +40182,7 @@ function isObject(obj) {
|
|
|
39915
40182
|
|
|
39916
40183
|
|
|
39917
40184
|
function internalSetValues(store, values) {
|
|
39918
|
-
var newStore = Array.isArray(store) ?
|
|
40185
|
+
var newStore = Array.isArray(store) ? toConsumableArray_toConsumableArray(store) : objectSpread2_objectSpread2({}, store);
|
|
39919
40186
|
|
|
39920
40187
|
if (!values) {
|
|
39921
40188
|
return newStore;
|
|
@@ -39958,14 +40225,14 @@ function isSimilar(source, target) {
|
|
|
39958
40225
|
return false;
|
|
39959
40226
|
}
|
|
39960
40227
|
|
|
39961
|
-
if (!source || !target ||
|
|
40228
|
+
if (!source || !target || esm_typeof_typeof(source) !== 'object' || esm_typeof_typeof(target) !== 'object') {
|
|
39962
40229
|
return false;
|
|
39963
40230
|
}
|
|
39964
40231
|
|
|
39965
40232
|
var sourceKeys = Object.keys(source);
|
|
39966
40233
|
var targetKeys = Object.keys(target);
|
|
39967
|
-
var keys = new Set([].concat(
|
|
39968
|
-
return
|
|
40234
|
+
var keys = new Set([].concat(toConsumableArray_toConsumableArray(sourceKeys), toConsumableArray_toConsumableArray(targetKeys)));
|
|
40235
|
+
return toConsumableArray_toConsumableArray(keys).every(function (key) {
|
|
39969
40236
|
var sourceValue = source[key];
|
|
39970
40237
|
var targetValue = target[key];
|
|
39971
40238
|
|
|
@@ -40008,12 +40275,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
40008
40275
|
|
|
40009
40276
|
if (diff > 0) {
|
|
40010
40277
|
// move left
|
|
40011
|
-
return [].concat(
|
|
40278
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, toIndex)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
40012
40279
|
}
|
|
40013
40280
|
|
|
40014
40281
|
if (diff < 0) {
|
|
40015
40282
|
// move right
|
|
40016
|
-
return [].concat(
|
|
40283
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex + 1, length)));
|
|
40017
40284
|
}
|
|
40018
40285
|
|
|
40019
40286
|
return array;
|
|
@@ -40053,13 +40320,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
40053
40320
|
|
|
40054
40321
|
|
|
40055
40322
|
function _validateRule() {
|
|
40056
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40323
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
40057
40324
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
40058
|
-
return
|
|
40325
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
40059
40326
|
while (1) {
|
|
40060
40327
|
switch (_context2.prev = _context2.next) {
|
|
40061
40328
|
case 0:
|
|
40062
|
-
cloneRule =
|
|
40329
|
+
cloneRule = objectSpread2_objectSpread2({}, rule); // Bug of `async-validator`
|
|
40063
40330
|
// https://github.com/react-component/field-form/issues/316
|
|
40064
40331
|
// https://github.com/react-component/field-form/issues/313
|
|
40065
40332
|
|
|
@@ -40072,13 +40339,13 @@ function _validateRule() {
|
|
|
40072
40339
|
delete cloneRule.defaultField;
|
|
40073
40340
|
}
|
|
40074
40341
|
|
|
40075
|
-
validator = new AsyncValidator(
|
|
40342
|
+
validator = new AsyncValidator(defineProperty_defineProperty({}, name, [cloneRule]));
|
|
40076
40343
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
40077
40344
|
validator.messages(messages);
|
|
40078
40345
|
result = [];
|
|
40079
40346
|
_context2.prev = 8;
|
|
40080
40347
|
_context2.next = 11;
|
|
40081
|
-
return Promise.resolve(validator.validate(
|
|
40348
|
+
return Promise.resolve(validator.validate(defineProperty_defineProperty({}, name, value), objectSpread2_objectSpread2({}, options)));
|
|
40082
40349
|
|
|
40083
40350
|
case 11:
|
|
40084
40351
|
_context2.next = 16;
|
|
@@ -40118,12 +40385,12 @@ function _validateRule() {
|
|
|
40118
40385
|
case 19:
|
|
40119
40386
|
subResults = _context2.sent;
|
|
40120
40387
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
40121
|
-
return [].concat(
|
|
40388
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), toConsumableArray_toConsumableArray(errors));
|
|
40122
40389
|
}, []));
|
|
40123
40390
|
|
|
40124
40391
|
case 21:
|
|
40125
40392
|
// Replace message with variables
|
|
40126
|
-
kv =
|
|
40393
|
+
kv = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rule), {}, {
|
|
40127
40394
|
name: name,
|
|
40128
40395
|
enum: (rule.enum || []).join(', ')
|
|
40129
40396
|
}, messageVariables);
|
|
@@ -40152,7 +40419,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40152
40419
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
40153
40420
|
var originValidatorFunc = currentRule.validator;
|
|
40154
40421
|
|
|
40155
|
-
var cloneRule =
|
|
40422
|
+
var cloneRule = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentRule), {}, {
|
|
40156
40423
|
ruleIndex: ruleIndex
|
|
40157
40424
|
}); // Replace validator if needed
|
|
40158
40425
|
|
|
@@ -40220,9 +40487,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40220
40487
|
if (validateFirst === true) {
|
|
40221
40488
|
// >>>>> Validate by serialization
|
|
40222
40489
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
40223
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40490
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(resolve, reject) {
|
|
40224
40491
|
var i, rule, errors;
|
|
40225
|
-
return
|
|
40492
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
40226
40493
|
while (1) {
|
|
40227
40494
|
switch (_context.prev = _context.next) {
|
|
40228
40495
|
case 0:
|
|
@@ -40301,15 +40568,15 @@ function finishOnAllFailed(_x8) {
|
|
|
40301
40568
|
}
|
|
40302
40569
|
|
|
40303
40570
|
function _finishOnAllFailed() {
|
|
40304
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40305
|
-
return
|
|
40571
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(rulePromises) {
|
|
40572
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
40306
40573
|
while (1) {
|
|
40307
40574
|
switch (_context3.prev = _context3.next) {
|
|
40308
40575
|
case 0:
|
|
40309
40576
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
40310
40577
|
var _ref5;
|
|
40311
40578
|
|
|
40312
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
40579
|
+
var errors = (_ref5 = []).concat.apply(_ref5, toConsumableArray_toConsumableArray(errorsList));
|
|
40313
40580
|
|
|
40314
40581
|
return errors;
|
|
40315
40582
|
}));
|
|
@@ -40329,9 +40596,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
40329
40596
|
}
|
|
40330
40597
|
|
|
40331
40598
|
function _finishOnFirstFailed() {
|
|
40332
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40599
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee4(rulePromises) {
|
|
40333
40600
|
var count;
|
|
40334
|
-
return
|
|
40601
|
+
return runtime_regenerator_default().wrap(function _callee4$(_context4) {
|
|
40335
40602
|
while (1) {
|
|
40336
40603
|
switch (_context4.prev = _context4.next) {
|
|
40337
40604
|
case 0:
|
|
@@ -41136,6 +41403,52 @@ var List = function List(_ref) {
|
|
|
41136
41403
|
};
|
|
41137
41404
|
|
|
41138
41405
|
/* harmony default export */ var es_List = (List);
|
|
41406
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
41407
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
41408
|
+
if (Array.isArray(arr)) return arr;
|
|
41409
|
+
}
|
|
41410
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
41411
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
41412
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
41413
|
+
|
|
41414
|
+
if (_i == null) return;
|
|
41415
|
+
var _arr = [];
|
|
41416
|
+
var _n = true;
|
|
41417
|
+
var _d = false;
|
|
41418
|
+
|
|
41419
|
+
var _s, _e;
|
|
41420
|
+
|
|
41421
|
+
try {
|
|
41422
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
41423
|
+
_arr.push(_s.value);
|
|
41424
|
+
|
|
41425
|
+
if (i && _arr.length === i) break;
|
|
41426
|
+
}
|
|
41427
|
+
} catch (err) {
|
|
41428
|
+
_d = true;
|
|
41429
|
+
_e = err;
|
|
41430
|
+
} finally {
|
|
41431
|
+
try {
|
|
41432
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
41433
|
+
} finally {
|
|
41434
|
+
if (_d) throw _e;
|
|
41435
|
+
}
|
|
41436
|
+
}
|
|
41437
|
+
|
|
41438
|
+
return _arr;
|
|
41439
|
+
}
|
|
41440
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
41441
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
41442
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
41443
|
+
}
|
|
41444
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
41445
|
+
|
|
41446
|
+
|
|
41447
|
+
|
|
41448
|
+
|
|
41449
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
41450
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
41451
|
+
}
|
|
41139
41452
|
;// CONCATENATED MODULE: ./node_modules/rc-field-form/es/utils/asyncUtil.js
|
|
41140
41453
|
function allPromiseFinish(promiseList) {
|
|
41141
41454
|
var hasError = false;
|
|
@@ -41181,7 +41494,7 @@ var SPLIT = '__@field_split__';
|
|
|
41181
41494
|
|
|
41182
41495
|
function normalize(namePath) {
|
|
41183
41496
|
return namePath.map(function (cell) {
|
|
41184
|
-
return "".concat(
|
|
41497
|
+
return "".concat(esm_typeof_typeof(cell), ":").concat(cell);
|
|
41185
41498
|
}) // Magic split
|
|
41186
41499
|
.join(SPLIT);
|
|
41187
41500
|
}
|
|
@@ -41192,12 +41505,12 @@ function normalize(namePath) {
|
|
|
41192
41505
|
|
|
41193
41506
|
var NameMap = /*#__PURE__*/function () {
|
|
41194
41507
|
function NameMap() {
|
|
41195
|
-
|
|
41508
|
+
classCallCheck_classCallCheck(this, NameMap);
|
|
41196
41509
|
|
|
41197
41510
|
this.kvs = new Map();
|
|
41198
41511
|
}
|
|
41199
41512
|
|
|
41200
|
-
|
|
41513
|
+
createClass_createClass(NameMap, [{
|
|
41201
41514
|
key: "set",
|
|
41202
41515
|
value: function set(key, value) {
|
|
41203
41516
|
this.kvs.set(normalize(key), value);
|
|
@@ -41228,7 +41541,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
41228
41541
|
}, {
|
|
41229
41542
|
key: "map",
|
|
41230
41543
|
value: function map(callback) {
|
|
41231
|
-
return
|
|
41544
|
+
return toConsumableArray_toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
41232
41545
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
41233
41546
|
key = _ref2[0],
|
|
41234
41547
|
value = _ref2[1];
|
|
@@ -42110,7 +42423,7 @@ function useForm(form) {
|
|
|
42110
42423
|
var formRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef();
|
|
42111
42424
|
|
|
42112
42425
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState({}),
|
|
42113
|
-
_React$useState2 =
|
|
42426
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
42114
42427
|
forceUpdate = _React$useState2[1];
|
|
42115
42428
|
|
|
42116
42429
|
if (!formRef.current) {
|
|
@@ -42229,7 +42542,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42229
42542
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
42230
42543
|
|
|
42231
42544
|
var _useForm = es_useForm(form),
|
|
42232
|
-
_useForm2 =
|
|
42545
|
+
_useForm2 = esm_slicedToArray_slicedToArray(_useForm, 1),
|
|
42233
42546
|
formInstance = _useForm2[0];
|
|
42234
42547
|
|
|
42235
42548
|
var _formInstance$getInte = formInstance.getInternalHooks(HOOK_MARK),
|
|
@@ -42636,7 +42949,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42636
42949
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42637
42950
|
|
|
42638
42951
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42639
|
-
_React$useState2 =
|
|
42952
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
42640
42953
|
elements = _React$useState2[0],
|
|
42641
42954
|
setElements = _React$useState2[1];
|
|
42642
42955
|
|
|
@@ -42986,7 +43299,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
42986
43299
|
};
|
|
42987
43300
|
|
|
42988
43301
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
42989
|
-
_useRCNotification2 =
|
|
43302
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
42990
43303
|
hookNotify = _useRCNotification2[0],
|
|
42991
43304
|
holder = _useRCNotification2[1];
|
|
42992
43305
|
|
|
@@ -43315,7 +43628,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
43315
43628
|
};
|
|
43316
43629
|
|
|
43317
43630
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43318
|
-
_useRCNotification2 =
|
|
43631
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43319
43632
|
hookNotify = _useRCNotification2[0],
|
|
43320
43633
|
holder = _useRCNotification2[1];
|
|
43321
43634
|
|
|
@@ -43942,7 +44255,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43942
44255
|
|
|
43943
44256
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
43944
44257
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
43945
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
44258
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
43946
44259
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
43947
44260
|
actionFn: onCancel,
|
|
43948
44261
|
close: close,
|
|
@@ -43960,7 +44273,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43960
44273
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
43961
44274
|
prefixCls: prefixCls,
|
|
43962
44275
|
className: classString,
|
|
43963
|
-
wrapClassName: classnames_default()(
|
|
44276
|
+
wrapClassName: classnames_default()(defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
43964
44277
|
onCancel: function onCancel() {
|
|
43965
44278
|
return close({
|
|
43966
44279
|
triggerCancel: true
|
|
@@ -44044,7 +44357,7 @@ function getRootPrefixCls() {
|
|
|
44044
44357
|
function confirm_confirm(config) {
|
|
44045
44358
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
44046
44359
|
|
|
44047
|
-
var currentConfig =
|
|
44360
|
+
var currentConfig = esm_extends_extends(esm_extends_extends({}, config), {
|
|
44048
44361
|
close: close,
|
|
44049
44362
|
visible: true
|
|
44050
44363
|
});
|
|
@@ -44097,7 +44410,7 @@ function confirm_confirm(config) {
|
|
|
44097
44410
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
44098
44411
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
44099
44412
|
var iconPrefixCls = getIconPrefixCls();
|
|
44100
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
44413
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, esm_extends_extends({}, props, {
|
|
44101
44414
|
prefixCls: prefixCls,
|
|
44102
44415
|
rootPrefixCls: rootPrefixCls,
|
|
44103
44416
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -44114,7 +44427,7 @@ function confirm_confirm(config) {
|
|
|
44114
44427
|
args[_key2] = arguments[_key2];
|
|
44115
44428
|
}
|
|
44116
44429
|
|
|
44117
|
-
currentConfig =
|
|
44430
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), {
|
|
44118
44431
|
visible: false,
|
|
44119
44432
|
afterClose: function afterClose() {
|
|
44120
44433
|
if (typeof config.afterClose === 'function') {
|
|
@@ -44131,7 +44444,7 @@ function confirm_confirm(config) {
|
|
|
44131
44444
|
if (typeof configUpdate === 'function') {
|
|
44132
44445
|
currentConfig = configUpdate(currentConfig);
|
|
44133
44446
|
} else {
|
|
44134
|
-
currentConfig =
|
|
44447
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), configUpdate);
|
|
44135
44448
|
}
|
|
44136
44449
|
|
|
44137
44450
|
render(currentConfig);
|
|
@@ -44145,7 +44458,7 @@ function confirm_confirm(config) {
|
|
|
44145
44458
|
};
|
|
44146
44459
|
}
|
|
44147
44460
|
function withWarn(props) {
|
|
44148
|
-
return
|
|
44461
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44149
44462
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44150
44463
|
type: "exclamation-circle"
|
|
44151
44464
|
}),
|
|
@@ -44155,7 +44468,7 @@ function withWarn(props) {
|
|
|
44155
44468
|
});
|
|
44156
44469
|
}
|
|
44157
44470
|
function withInfo(props) {
|
|
44158
|
-
return
|
|
44471
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44159
44472
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44160
44473
|
type: "exclamation-circle"
|
|
44161
44474
|
}),
|
|
@@ -44165,7 +44478,7 @@ function withInfo(props) {
|
|
|
44165
44478
|
});
|
|
44166
44479
|
}
|
|
44167
44480
|
function withSuccess(props) {
|
|
44168
|
-
return
|
|
44481
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44169
44482
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44170
44483
|
type: "check-circle"
|
|
44171
44484
|
}),
|
|
@@ -44175,7 +44488,7 @@ function withSuccess(props) {
|
|
|
44175
44488
|
});
|
|
44176
44489
|
}
|
|
44177
44490
|
function withError(props) {
|
|
44178
|
-
return
|
|
44491
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44179
44492
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44180
44493
|
type: "close-circle"
|
|
44181
44494
|
}),
|
|
@@ -44185,7 +44498,7 @@ function withError(props) {
|
|
|
44185
44498
|
});
|
|
44186
44499
|
}
|
|
44187
44500
|
function withConfirm(props) {
|
|
44188
|
-
return
|
|
44501
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44189
44502
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44190
44503
|
type: "question-circle"
|
|
44191
44504
|
}),
|
|
@@ -44212,7 +44525,7 @@ function usePatchElement() {
|
|
|
44212
44525
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
44213
44526
|
// append a new element to elements (and create a new ref)
|
|
44214
44527
|
setElements(function (originElements) {
|
|
44215
|
-
return [].concat(
|
|
44528
|
+
return [].concat(toConsumableArray_toConsumableArray(originElements), [element]);
|
|
44216
44529
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
44217
44530
|
// it works a little like useEffect
|
|
44218
44531
|
|
|
@@ -44277,7 +44590,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44277
44590
|
destroy: close,
|
|
44278
44591
|
update: function update(newConfig) {
|
|
44279
44592
|
setInnerConfig(function (originConfig) {
|
|
44280
|
-
return
|
|
44593
|
+
return esm_extends_extends(esm_extends_extends({}, originConfig), newConfig);
|
|
44281
44594
|
});
|
|
44282
44595
|
}
|
|
44283
44596
|
};
|
|
@@ -44286,7 +44599,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44286
44599
|
componentName: "Modal",
|
|
44287
44600
|
defaultLocale: locale_default.Modal
|
|
44288
44601
|
}, function (modalLocale) {
|
|
44289
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
44602
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, esm_extends_extends({
|
|
44290
44603
|
prefixCls: prefixCls,
|
|
44291
44604
|
rootPrefixCls: rootPrefixCls
|
|
44292
44605
|
}, innerConfig, {
|
|
@@ -44333,7 +44646,7 @@ function useModal() {
|
|
|
44333
44646
|
|
|
44334
44647
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
44335
44648
|
if (actionQueue.length) {
|
|
44336
|
-
var cloneQueue =
|
|
44649
|
+
var cloneQueue = toConsumableArray_toConsumableArray(actionQueue);
|
|
44337
44650
|
|
|
44338
44651
|
cloneQueue.forEach(function (action) {
|
|
44339
44652
|
action();
|
|
@@ -44370,7 +44683,7 @@ function useModal() {
|
|
|
44370
44683
|
destroyAction();
|
|
44371
44684
|
} else {
|
|
44372
44685
|
setActionQueue(function (prev) {
|
|
44373
|
-
return [].concat(
|
|
44686
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [destroyAction]);
|
|
44374
44687
|
});
|
|
44375
44688
|
}
|
|
44376
44689
|
},
|
|
@@ -44385,7 +44698,7 @@ function useModal() {
|
|
|
44385
44698
|
updateAction();
|
|
44386
44699
|
} else {
|
|
44387
44700
|
setActionQueue(function (prev) {
|
|
44388
|
-
return [].concat(
|
|
44701
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [updateAction]);
|
|
44389
44702
|
});
|
|
44390
44703
|
}
|
|
44391
44704
|
}
|
|
@@ -44830,40 +45143,44 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
44830
45143
|
|
|
44831
45144
|
|
|
44832
45145
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
44833
|
-
function
|
|
44834
|
-
|
|
45146
|
+
function helpers_esm_extends_extends() {
|
|
45147
|
+
helpers_esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
44835
45148
|
for (var i = 1; i < arguments.length; i++) {
|
|
44836
45149
|
var source = arguments[i];
|
|
45150
|
+
|
|
44837
45151
|
for (var key in source) {
|
|
44838
45152
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44839
45153
|
target[key] = source[key];
|
|
44840
45154
|
}
|
|
44841
45155
|
}
|
|
44842
45156
|
}
|
|
45157
|
+
|
|
44843
45158
|
return target;
|
|
44844
45159
|
};
|
|
44845
|
-
return
|
|
45160
|
+
return helpers_esm_extends_extends.apply(this, arguments);
|
|
44846
45161
|
}
|
|
44847
45162
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
44848
|
-
function
|
|
45163
|
+
function helpers_esm_typeof_typeof(obj) {
|
|
44849
45164
|
"@babel/helpers - typeof";
|
|
44850
45165
|
|
|
44851
|
-
return
|
|
45166
|
+
return helpers_esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44852
45167
|
return typeof obj;
|
|
44853
45168
|
} : function (obj) {
|
|
44854
45169
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44855
|
-
},
|
|
45170
|
+
}, helpers_esm_typeof_typeof(obj);
|
|
44856
45171
|
}
|
|
44857
45172
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
44858
45173
|
|
|
44859
45174
|
function _toPrimitive(input, hint) {
|
|
44860
|
-
if (
|
|
45175
|
+
if (helpers_esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
44861
45176
|
var prim = input[Symbol.toPrimitive];
|
|
45177
|
+
|
|
44862
45178
|
if (prim !== undefined) {
|
|
44863
45179
|
var res = prim.call(input, hint || "default");
|
|
44864
|
-
if (
|
|
45180
|
+
if (helpers_esm_typeof_typeof(res) !== "object") return res;
|
|
44865
45181
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44866
45182
|
}
|
|
45183
|
+
|
|
44867
45184
|
return (hint === "string" ? String : Number)(input);
|
|
44868
45185
|
}
|
|
44869
45186
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -44871,12 +45188,13 @@ function _toPrimitive(input, hint) {
|
|
|
44871
45188
|
|
|
44872
45189
|
function _toPropertyKey(arg) {
|
|
44873
45190
|
var key = _toPrimitive(arg, "string");
|
|
44874
|
-
return
|
|
45191
|
+
return helpers_esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
44875
45192
|
}
|
|
44876
45193
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
44877
45194
|
|
|
44878
|
-
function
|
|
45195
|
+
function esm_defineProperty_defineProperty(obj, key, value) {
|
|
44879
45196
|
key = _toPropertyKey(key);
|
|
45197
|
+
|
|
44880
45198
|
if (key in obj) {
|
|
44881
45199
|
Object.defineProperty(obj, key, {
|
|
44882
45200
|
value: value,
|
|
@@ -44887,51 +45205,61 @@ function defineProperty_defineProperty(obj, key, value) {
|
|
|
44887
45205
|
} else {
|
|
44888
45206
|
obj[key] = value;
|
|
44889
45207
|
}
|
|
45208
|
+
|
|
44890
45209
|
return obj;
|
|
44891
45210
|
}
|
|
44892
45211
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
44893
45212
|
|
|
44894
|
-
|
|
45213
|
+
|
|
45214
|
+
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44895
45215
|
var keys = Object.keys(object);
|
|
45216
|
+
|
|
44896
45217
|
if (Object.getOwnPropertySymbols) {
|
|
44897
45218
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
44898
45219
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
44899
45220
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
44900
45221
|
})), keys.push.apply(keys, symbols);
|
|
44901
45222
|
}
|
|
45223
|
+
|
|
44902
45224
|
return keys;
|
|
44903
45225
|
}
|
|
44904
|
-
|
|
45226
|
+
|
|
45227
|
+
function esm_objectSpread2_objectSpread2(target) {
|
|
44905
45228
|
for (var i = 1; i < arguments.length; i++) {
|
|
44906
45229
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
44907
|
-
i % 2 ?
|
|
44908
|
-
|
|
44909
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
45230
|
+
i % 2 ? esm_objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
45231
|
+
esm_defineProperty_defineProperty(target, key, source[key]);
|
|
45232
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : esm_objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
44910
45233
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44911
45234
|
});
|
|
44912
45235
|
}
|
|
45236
|
+
|
|
44913
45237
|
return target;
|
|
44914
45238
|
}
|
|
44915
45239
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
44916
|
-
function
|
|
45240
|
+
function helpers_esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
44917
45241
|
if (Array.isArray(arr)) return arr;
|
|
44918
45242
|
}
|
|
44919
45243
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
44920
|
-
function
|
|
45244
|
+
function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
44921
45245
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
45246
|
+
|
|
44922
45247
|
if (null != _i) {
|
|
44923
45248
|
var _s,
|
|
44924
|
-
|
|
44925
|
-
|
|
44926
|
-
|
|
44927
|
-
|
|
44928
|
-
|
|
44929
|
-
|
|
45249
|
+
_e,
|
|
45250
|
+
_x,
|
|
45251
|
+
_r,
|
|
45252
|
+
_arr = [],
|
|
45253
|
+
_n = !0,
|
|
45254
|
+
_d = !1;
|
|
45255
|
+
|
|
44930
45256
|
try {
|
|
44931
45257
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
44932
45258
|
if (Object(_i) !== _i) return;
|
|
44933
45259
|
_n = !1;
|
|
44934
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
45260
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
|
45261
|
+
;
|
|
45262
|
+
}
|
|
44935
45263
|
} catch (err) {
|
|
44936
45264
|
_d = !0, _e = err;
|
|
44937
45265
|
} finally {
|
|
@@ -44941,27 +45269,32 @@ function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
44941
45269
|
if (_d) throw _e;
|
|
44942
45270
|
}
|
|
44943
45271
|
}
|
|
45272
|
+
|
|
44944
45273
|
return _arr;
|
|
44945
45274
|
}
|
|
44946
45275
|
}
|
|
44947
45276
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
44948
|
-
function
|
|
45277
|
+
function esm_arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
44949
45278
|
if (len == null || len > arr.length) len = arr.length;
|
|
44950
|
-
|
|
45279
|
+
|
|
45280
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
45281
|
+
arr2[i] = arr[i];
|
|
45282
|
+
}
|
|
45283
|
+
|
|
44951
45284
|
return arr2;
|
|
44952
45285
|
}
|
|
44953
45286
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
44954
45287
|
|
|
44955
|
-
function
|
|
45288
|
+
function esm_unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
44956
45289
|
if (!o) return;
|
|
44957
|
-
if (typeof o === "string") return
|
|
45290
|
+
if (typeof o === "string") return esm_arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44958
45291
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
44959
45292
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
44960
45293
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44961
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
45294
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return esm_arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44962
45295
|
}
|
|
44963
45296
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
44964
|
-
function
|
|
45297
|
+
function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
44965
45298
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44966
45299
|
}
|
|
44967
45300
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -44969,30 +45302,34 @@ function esm_nonIterableRest_nonIterableRest() {
|
|
|
44969
45302
|
|
|
44970
45303
|
|
|
44971
45304
|
|
|
44972
|
-
function
|
|
44973
|
-
return
|
|
45305
|
+
function helpers_esm_slicedToArray_slicedToArray(arr, i) {
|
|
45306
|
+
return helpers_esm_arrayWithHoles_arrayWithHoles(arr) || helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || esm_unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || helpers_esm_nonIterableRest_nonIterableRest();
|
|
44974
45307
|
}
|
|
44975
45308
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
44976
|
-
function
|
|
45309
|
+
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
44977
45310
|
if (source == null) return {};
|
|
44978
45311
|
var target = {};
|
|
44979
45312
|
var sourceKeys = Object.keys(source);
|
|
44980
45313
|
var key, i;
|
|
45314
|
+
|
|
44981
45315
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
44982
45316
|
key = sourceKeys[i];
|
|
44983
45317
|
if (excluded.indexOf(key) >= 0) continue;
|
|
44984
45318
|
target[key] = source[key];
|
|
44985
45319
|
}
|
|
45320
|
+
|
|
44986
45321
|
return target;
|
|
44987
45322
|
}
|
|
44988
45323
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
44989
45324
|
|
|
44990
|
-
function
|
|
45325
|
+
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
44991
45326
|
if (source == null) return {};
|
|
44992
|
-
var target =
|
|
45327
|
+
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
44993
45328
|
var key, i;
|
|
45329
|
+
|
|
44994
45330
|
if (Object.getOwnPropertySymbols) {
|
|
44995
45331
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
45332
|
+
|
|
44996
45333
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
44997
45334
|
key = sourceSymbolKeys[i];
|
|
44998
45335
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -45000,6 +45337,7 @@ function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
45000
45337
|
target[key] = source[key];
|
|
45001
45338
|
}
|
|
45002
45339
|
}
|
|
45340
|
+
|
|
45003
45341
|
return target;
|
|
45004
45342
|
}
|
|
45005
45343
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -45947,14 +46285,14 @@ var index = (function () {
|
|
|
45947
46285
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
45948
46286
|
|
|
45949
46287
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
45950
|
-
|
|
46288
|
+
inherits_inherits(ReactResizeObserver, _React$Component);
|
|
45951
46289
|
|
|
45952
|
-
var _super =
|
|
46290
|
+
var _super = createSuper_createSuper(ReactResizeObserver);
|
|
45953
46291
|
|
|
45954
46292
|
function ReactResizeObserver() {
|
|
45955
46293
|
var _this;
|
|
45956
46294
|
|
|
45957
|
-
|
|
46295
|
+
classCallCheck_classCallCheck(this, ReactResizeObserver);
|
|
45958
46296
|
|
|
45959
46297
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45960
46298
|
args[_key] = arguments[_key];
|
|
@@ -46005,7 +46343,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46005
46343
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
46006
46344
|
|
|
46007
46345
|
Promise.resolve().then(function () {
|
|
46008
|
-
onResize(
|
|
46346
|
+
onResize(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, size), {}, {
|
|
46009
46347
|
offsetWidth: mergedOffsetWidth,
|
|
46010
46348
|
offsetHeight: mergedOffsetHeight
|
|
46011
46349
|
}), target);
|
|
@@ -46021,7 +46359,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46021
46359
|
return _this;
|
|
46022
46360
|
}
|
|
46023
46361
|
|
|
46024
|
-
|
|
46362
|
+
createClass_createClass(ReactResizeObserver, [{
|
|
46025
46363
|
key: "componentDidMount",
|
|
46026
46364
|
value: function componentDidMount() {
|
|
46027
46365
|
this.onComponentUpdated();
|
|
@@ -46135,7 +46473,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46135
46473
|
position: 'relative',
|
|
46136
46474
|
overflow: 'hidden'
|
|
46137
46475
|
};
|
|
46138
|
-
innerStyle =
|
|
46476
|
+
innerStyle = esm_objectSpread2_objectSpread2(esm_objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
46139
46477
|
transform: "translateY(".concat(offset, "px)"),
|
|
46140
46478
|
position: 'absolute',
|
|
46141
46479
|
left: 0,
|
|
@@ -46152,23 +46490,24 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46152
46490
|
onInnerResize();
|
|
46153
46491
|
}
|
|
46154
46492
|
}
|
|
46155
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
46493
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", helpers_esm_extends_extends({
|
|
46156
46494
|
style: innerStyle,
|
|
46157
|
-
className: classnames_default()(
|
|
46495
|
+
className: classnames_default()(esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
46158
46496
|
ref: ref
|
|
46159
46497
|
}, innerProps), children)));
|
|
46160
46498
|
});
|
|
46161
46499
|
Filler.displayName = 'Filler';
|
|
46162
46500
|
/* harmony default export */ var es_Filler = (Filler);
|
|
46163
46501
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
46164
|
-
function
|
|
46502
|
+
function esm_classCallCheck_classCallCheck(instance, Constructor) {
|
|
46165
46503
|
if (!(instance instanceof Constructor)) {
|
|
46166
46504
|
throw new TypeError("Cannot call a class as a function");
|
|
46167
46505
|
}
|
|
46168
46506
|
}
|
|
46169
46507
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
46170
46508
|
|
|
46171
|
-
|
|
46509
|
+
|
|
46510
|
+
function esm_createClass_defineProperties(target, props) {
|
|
46172
46511
|
for (var i = 0; i < props.length; i++) {
|
|
46173
46512
|
var descriptor = props[i];
|
|
46174
46513
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -46177,28 +46516,30 @@ function createClass_defineProperties(target, props) {
|
|
|
46177
46516
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
46178
46517
|
}
|
|
46179
46518
|
}
|
|
46180
|
-
|
|
46181
|
-
|
|
46182
|
-
if (
|
|
46519
|
+
|
|
46520
|
+
function esm_createClass_createClass(Constructor, protoProps, staticProps) {
|
|
46521
|
+
if (protoProps) esm_createClass_defineProperties(Constructor.prototype, protoProps);
|
|
46522
|
+
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
46183
46523
|
Object.defineProperty(Constructor, "prototype", {
|
|
46184
46524
|
writable: false
|
|
46185
46525
|
});
|
|
46186
46526
|
return Constructor;
|
|
46187
46527
|
}
|
|
46188
46528
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
46189
|
-
function
|
|
46190
|
-
|
|
46529
|
+
function esm_setPrototypeOf_setPrototypeOf(o, p) {
|
|
46530
|
+
esm_setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
46191
46531
|
o.__proto__ = p;
|
|
46192
46532
|
return o;
|
|
46193
46533
|
};
|
|
46194
|
-
return
|
|
46534
|
+
return esm_setPrototypeOf_setPrototypeOf(o, p);
|
|
46195
46535
|
}
|
|
46196
46536
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
46197
46537
|
|
|
46198
|
-
function
|
|
46538
|
+
function esm_inherits_inherits(subClass, superClass) {
|
|
46199
46539
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
46200
46540
|
throw new TypeError("Super expression must either be null or a function");
|
|
46201
46541
|
}
|
|
46542
|
+
|
|
46202
46543
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
46203
46544
|
constructor: {
|
|
46204
46545
|
value: subClass,
|
|
@@ -46209,20 +46550,21 @@ function inherits_inherits(subClass, superClass) {
|
|
|
46209
46550
|
Object.defineProperty(subClass, "prototype", {
|
|
46210
46551
|
writable: false
|
|
46211
46552
|
});
|
|
46212
|
-
if (superClass)
|
|
46553
|
+
if (superClass) esm_setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
46213
46554
|
}
|
|
46214
46555
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
46215
|
-
function
|
|
46216
|
-
|
|
46556
|
+
function esm_getPrototypeOf_getPrototypeOf(o) {
|
|
46557
|
+
esm_getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
46217
46558
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46218
46559
|
};
|
|
46219
|
-
return
|
|
46560
|
+
return esm_getPrototypeOf_getPrototypeOf(o);
|
|
46220
46561
|
}
|
|
46221
46562
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
46222
|
-
function
|
|
46563
|
+
function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
46223
46564
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
46224
46565
|
if (Reflect.construct.sham) return false;
|
|
46225
46566
|
if (typeof Proxy === "function") return true;
|
|
46567
|
+
|
|
46226
46568
|
try {
|
|
46227
46569
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
46228
46570
|
return true;
|
|
@@ -46231,39 +46573,43 @@ function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
46231
46573
|
}
|
|
46232
46574
|
}
|
|
46233
46575
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
46234
|
-
function
|
|
46576
|
+
function esm_assertThisInitialized_assertThisInitialized(self) {
|
|
46235
46577
|
if (self === void 0) {
|
|
46236
46578
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46237
46579
|
}
|
|
46580
|
+
|
|
46238
46581
|
return self;
|
|
46239
46582
|
}
|
|
46240
46583
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
46241
46584
|
|
|
46242
46585
|
|
|
46243
|
-
function
|
|
46244
|
-
if (call && (
|
|
46586
|
+
function esm_possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
46587
|
+
if (call && (helpers_esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
46245
46588
|
return call;
|
|
46246
46589
|
} else if (call !== void 0) {
|
|
46247
46590
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
46248
46591
|
}
|
|
46249
|
-
|
|
46592
|
+
|
|
46593
|
+
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
46250
46594
|
}
|
|
46251
46595
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
46252
46596
|
|
|
46253
46597
|
|
|
46254
46598
|
|
|
46255
|
-
function
|
|
46256
|
-
var hasNativeReflectConstruct =
|
|
46599
|
+
function esm_createSuper_createSuper(Derived) {
|
|
46600
|
+
var hasNativeReflectConstruct = esm_isNativeReflectConstruct_isNativeReflectConstruct();
|
|
46257
46601
|
return function _createSuperInternal() {
|
|
46258
|
-
var Super =
|
|
46259
|
-
|
|
46602
|
+
var Super = esm_getPrototypeOf_getPrototypeOf(Derived),
|
|
46603
|
+
result;
|
|
46604
|
+
|
|
46260
46605
|
if (hasNativeReflectConstruct) {
|
|
46261
|
-
var NewTarget =
|
|
46606
|
+
var NewTarget = esm_getPrototypeOf_getPrototypeOf(this).constructor;
|
|
46262
46607
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
46263
46608
|
} else {
|
|
46264
46609
|
result = Super.apply(this, arguments);
|
|
46265
46610
|
}
|
|
46266
|
-
|
|
46611
|
+
|
|
46612
|
+
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46267
46613
|
};
|
|
46268
46614
|
}
|
|
46269
46615
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -46338,11 +46684,11 @@ function getPageY(e) {
|
|
|
46338
46684
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
46339
46685
|
}
|
|
46340
46686
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
46341
|
-
|
|
46342
|
-
var _super =
|
|
46687
|
+
esm_inherits_inherits(ScrollBar, _React$Component);
|
|
46688
|
+
var _super = esm_createSuper_createSuper(ScrollBar);
|
|
46343
46689
|
function ScrollBar() {
|
|
46344
46690
|
var _this;
|
|
46345
|
-
|
|
46691
|
+
esm_classCallCheck_classCallCheck(this, ScrollBar);
|
|
46346
46692
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46347
46693
|
args[_key] = arguments[_key];
|
|
46348
46694
|
}
|
|
@@ -46470,7 +46816,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46470
46816
|
};
|
|
46471
46817
|
return _this;
|
|
46472
46818
|
}
|
|
46473
|
-
|
|
46819
|
+
esm_createClass_createClass(ScrollBar, [{
|
|
46474
46820
|
key: "componentDidMount",
|
|
46475
46821
|
value: function componentDidMount() {
|
|
46476
46822
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -46504,7 +46850,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46504
46850
|
var mergedVisible = canScroll && visible;
|
|
46505
46851
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46506
46852
|
ref: this.scrollbarRef,
|
|
46507
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46853
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46508
46854
|
style: {
|
|
46509
46855
|
width: 8,
|
|
46510
46856
|
top: 0,
|
|
@@ -46517,7 +46863,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46517
46863
|
onMouseMove: this.delayHidden
|
|
46518
46864
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46519
46865
|
ref: this.thumbRef,
|
|
46520
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46866
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46521
46867
|
style: {
|
|
46522
46868
|
width: '100%',
|
|
46523
46869
|
height: spinHeight,
|
|
@@ -46596,11 +46942,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46596
46942
|
// Firefox has low performance of map.
|
|
46597
46943
|
var CacheMap = /*#__PURE__*/function () {
|
|
46598
46944
|
function CacheMap() {
|
|
46599
|
-
|
|
46945
|
+
esm_classCallCheck_classCallCheck(this, CacheMap);
|
|
46600
46946
|
this.maps = void 0;
|
|
46601
46947
|
this.maps = Object.create(null);
|
|
46602
46948
|
}
|
|
46603
|
-
|
|
46949
|
+
esm_createClass_createClass(CacheMap, [{
|
|
46604
46950
|
key: "set",
|
|
46605
46951
|
value: function set(key, value) {
|
|
46606
46952
|
this.maps[key] = value;
|
|
@@ -46623,7 +46969,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46623
46969
|
|
|
46624
46970
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46625
46971
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46626
|
-
_React$useState2 =
|
|
46972
|
+
_React$useState2 = helpers_esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46627
46973
|
updatedMark = _React$useState2[0],
|
|
46628
46974
|
setUpdatedMark = _React$useState2[1];
|
|
46629
46975
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46690,7 +47036,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46690
47036
|
es_raf.cancel(scrollRef.current);
|
|
46691
47037
|
if (typeof arg === 'number') {
|
|
46692
47038
|
syncScrollTop(arg);
|
|
46693
|
-
} else if (arg &&
|
|
47039
|
+
} else if (arg && helpers_esm_typeof_typeof(arg) === 'object') {
|
|
46694
47040
|
var index;
|
|
46695
47041
|
var align = arg.align;
|
|
46696
47042
|
if ('index' in arg) {
|
|
@@ -46846,11 +47192,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
46846
47192
|
|
|
46847
47193
|
function useDiffItem(data, getKey, onDiff) {
|
|
46848
47194
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
46849
|
-
_React$useState2 =
|
|
47195
|
+
_React$useState2 = helpers_esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46850
47196
|
prevData = _React$useState2[0],
|
|
46851
47197
|
setPrevData = _React$useState2[1];
|
|
46852
47198
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
46853
|
-
_React$useState4 =
|
|
47199
|
+
_React$useState4 = helpers_esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
46854
47200
|
diffItem = _React$useState4[0],
|
|
46855
47201
|
setDiffItem = _React$useState4[1];
|
|
46856
47202
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -46865,7 +47211,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
46865
47211
|
}
|
|
46866
47212
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
46867
47213
|
|
|
46868
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
47214
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : helpers_esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
46869
47215
|
/* harmony default export */ var isFirefox = (isFF);
|
|
46870
47216
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
46871
47217
|
|
|
@@ -47084,16 +47430,16 @@ function RawList(props, ref) {
|
|
|
47084
47430
|
onScroll = props.onScroll,
|
|
47085
47431
|
onVisibleChange = props.onVisibleChange,
|
|
47086
47432
|
innerProps = props.innerProps,
|
|
47087
|
-
restProps =
|
|
47433
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
47088
47434
|
// ================================= MISC =================================
|
|
47089
47435
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
47090
47436
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
47091
47437
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
47092
|
-
_useState2 =
|
|
47438
|
+
_useState2 = helpers_esm_slicedToArray_slicedToArray(_useState, 2),
|
|
47093
47439
|
scrollTop = _useState2[0],
|
|
47094
47440
|
setScrollTop = _useState2[1];
|
|
47095
47441
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
47096
|
-
_useState4 =
|
|
47442
|
+
_useState4 = helpers_esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
47097
47443
|
scrollMoving = _useState4[0],
|
|
47098
47444
|
setScrollMoving = _useState4[1];
|
|
47099
47445
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -47133,12 +47479,12 @@ function RawList(props, ref) {
|
|
|
47133
47479
|
});
|
|
47134
47480
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
47135
47481
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
47136
|
-
_useDiffItem2 =
|
|
47482
|
+
_useDiffItem2 = helpers_esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
47137
47483
|
diffItem = _useDiffItem2[0];
|
|
47138
47484
|
diffItemRef.current = diffItem;
|
|
47139
47485
|
// ================================ Height ================================
|
|
47140
47486
|
var _useHeights = useHeights(getKey, null, null),
|
|
47141
|
-
_useHeights2 =
|
|
47487
|
+
_useHeights2 = helpers_esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
47142
47488
|
setInstanceRef = _useHeights2[0],
|
|
47143
47489
|
collectHeight = _useHeights2[1],
|
|
47144
47490
|
heights = _useHeights2[2],
|
|
@@ -47244,7 +47590,7 @@ function RawList(props, ref) {
|
|
|
47244
47590
|
return newTop;
|
|
47245
47591
|
});
|
|
47246
47592
|
}),
|
|
47247
|
-
_useFrameWheel2 =
|
|
47593
|
+
_useFrameWheel2 = helpers_esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
47248
47594
|
onRawWheel = _useFrameWheel2[0],
|
|
47249
47595
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
47250
47596
|
// Mobile touch move
|
|
@@ -47298,7 +47644,7 @@ function RawList(props, ref) {
|
|
|
47298
47644
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
47299
47645
|
var componentStyle = null;
|
|
47300
47646
|
if (height) {
|
|
47301
|
-
componentStyle =
|
|
47647
|
+
componentStyle = esm_objectSpread2_objectSpread2(esm_defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
47302
47648
|
if (useVirtual) {
|
|
47303
47649
|
componentStyle.overflowY = 'hidden';
|
|
47304
47650
|
if (scrollMoving) {
|
|
@@ -47306,8 +47652,8 @@ function RawList(props, ref) {
|
|
|
47306
47652
|
}
|
|
47307
47653
|
}
|
|
47308
47654
|
}
|
|
47309
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47310
|
-
style:
|
|
47655
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", helpers_esm_extends_extends({
|
|
47656
|
+
style: esm_objectSpread2_objectSpread2(esm_objectSpread2_objectSpread2({}, style), {}, {
|
|
47311
47657
|
position: 'relative'
|
|
47312
47658
|
}),
|
|
47313
47659
|
className: mergedClassName
|
|
@@ -47453,7 +47799,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
47453
47799
|
return values;
|
|
47454
47800
|
}
|
|
47455
47801
|
function removeLastEnabledValue(measureValues, values) {
|
|
47456
|
-
var newValues =
|
|
47802
|
+
var newValues = toConsumableArray_toConsumableArray(values);
|
|
47457
47803
|
|
|
47458
47804
|
var removeIndex;
|
|
47459
47805
|
|
|
@@ -47587,7 +47933,7 @@ function flattenOptions(options) {
|
|
|
47587
47933
|
*/
|
|
47588
47934
|
|
|
47589
47935
|
function injectPropsWithOption(option) {
|
|
47590
|
-
var newOption =
|
|
47936
|
+
var newOption = objectSpread2_objectSpread2({}, option);
|
|
47591
47937
|
|
|
47592
47938
|
if (!('props' in newOption)) {
|
|
47593
47939
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47621,7 +47967,7 @@ function findValueOption(values, options) {
|
|
|
47621
47967
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47622
47968
|
|
|
47623
47969
|
if (!option) {
|
|
47624
|
-
option =
|
|
47970
|
+
option = objectSpread2_objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47625
47971
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47626
47972
|
}));
|
|
47627
47973
|
}
|
|
@@ -47640,7 +47986,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47640
47986
|
};
|
|
47641
47987
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47642
47988
|
|
|
47643
|
-
if (prevValItem &&
|
|
47989
|
+
if (prevValItem && esm_typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47644
47990
|
result.label = prevValItem.label;
|
|
47645
47991
|
|
|
47646
47992
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -47688,7 +48034,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47688
48034
|
var filterFunc;
|
|
47689
48035
|
|
|
47690
48036
|
if (filterOption === false) {
|
|
47691
|
-
return
|
|
48037
|
+
return toConsumableArray_toConsumableArray(options);
|
|
47692
48038
|
}
|
|
47693
48039
|
|
|
47694
48040
|
if (typeof filterOption === 'function') {
|
|
@@ -47712,7 +48058,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47712
48058
|
});
|
|
47713
48059
|
|
|
47714
48060
|
if (subOptions.length) {
|
|
47715
|
-
filteredOptions.push(
|
|
48061
|
+
filteredOptions.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
47716
48062
|
options: subOptions
|
|
47717
48063
|
}));
|
|
47718
48064
|
}
|
|
@@ -47746,7 +48092,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
47746
48092
|
var list = str.split(token);
|
|
47747
48093
|
match = match || list.length > 1;
|
|
47748
48094
|
return list.reduce(function (prevList, unitStr) {
|
|
47749
|
-
return [].concat(
|
|
48095
|
+
return [].concat(toConsumableArray_toConsumableArray(prevList), toConsumableArray_toConsumableArray(separate(unitStr, restTokens)));
|
|
47750
48096
|
}, []).filter(function (unit) {
|
|
47751
48097
|
return unit;
|
|
47752
48098
|
});
|
|
@@ -47766,7 +48112,7 @@ function isValueDisabled(value, options) {
|
|
|
47766
48112
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
47767
48113
|
var values = commonUtil_toArray(value).slice().sort();
|
|
47768
48114
|
|
|
47769
|
-
var cloneOptions =
|
|
48115
|
+
var cloneOptions = toConsumableArray_toConsumableArray(options); // Convert options value to set
|
|
47770
48116
|
|
|
47771
48117
|
|
|
47772
48118
|
var optionValues = new Set();
|
|
@@ -47786,7 +48132,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
47786
48132
|
if (!optionValues.has(val)) {
|
|
47787
48133
|
var _ref9;
|
|
47788
48134
|
|
|
47789
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
48135
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, defineProperty_defineProperty(_ref9, optionLabelProp, item.label), defineProperty_defineProperty(_ref9, "value", val), _ref9) : {
|
|
47790
48136
|
value: val
|
|
47791
48137
|
});
|
|
47792
48138
|
}
|
|
@@ -48052,7 +48398,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48052
48398
|
children = itemData.children;
|
|
48053
48399
|
var attrs = pickAttrs(itemData, true);
|
|
48054
48400
|
var mergedLabel = childrenAsData ? children : label;
|
|
48055
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
48401
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
48056
48402
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
48057
48403
|
}, attrs, {
|
|
48058
48404
|
key: index,
|
|
@@ -48102,13 +48448,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48102
48448
|
children = data.children,
|
|
48103
48449
|
style = data.style,
|
|
48104
48450
|
className = data.className,
|
|
48105
|
-
otherProps =
|
|
48451
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(data, OptionList_excluded);
|
|
48106
48452
|
|
|
48107
48453
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
48108
48454
|
|
|
48109
48455
|
var selected = values.has(value);
|
|
48110
48456
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
48111
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
48457
|
+
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
|
|
48112
48458
|
var mergedLabel = childrenAsData ? children : label;
|
|
48113
48459
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
48114
48460
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -48119,7 +48465,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48119
48465
|
optionTitle = title;
|
|
48120
48466
|
}
|
|
48121
48467
|
|
|
48122
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
48468
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, passedProps, {
|
|
48123
48469
|
"aria-selected": selected,
|
|
48124
48470
|
className: optionClassName,
|
|
48125
48471
|
title: optionTitle,
|
|
@@ -48180,9 +48526,9 @@ function convertNodeToOption(node) {
|
|
|
48180
48526
|
_node$props = node.props,
|
|
48181
48527
|
children = _node$props.children,
|
|
48182
48528
|
value = _node$props.value,
|
|
48183
|
-
restProps =
|
|
48529
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
48184
48530
|
|
|
48185
|
-
return
|
|
48531
|
+
return objectSpread2_objectSpread2({
|
|
48186
48532
|
key: key,
|
|
48187
48533
|
value: value !== undefined ? value : key,
|
|
48188
48534
|
children: children
|
|
@@ -48200,13 +48546,13 @@ function convertChildrenToData(nodes) {
|
|
|
48200
48546
|
key = node.key,
|
|
48201
48547
|
_node$props2 = node.props,
|
|
48202
48548
|
children = _node$props2.children,
|
|
48203
|
-
restProps =
|
|
48549
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props2, _excluded2);
|
|
48204
48550
|
|
|
48205
48551
|
if (optionOnly || !isSelectOptGroup) {
|
|
48206
48552
|
return convertNodeToOption(node);
|
|
48207
48553
|
}
|
|
48208
48554
|
|
|
48209
|
-
return
|
|
48555
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
48210
48556
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
48211
48557
|
label: key
|
|
48212
48558
|
}, restProps), {}, {
|
|
@@ -48251,7 +48597,7 @@ function useControlledState(defaultStateValue, option) {
|
|
|
48251
48597
|
|
|
48252
48598
|
return typeof defaultStateValue === 'function' ? defaultStateValue() : defaultStateValue;
|
|
48253
48599
|
}),
|
|
48254
|
-
_React$useState2 =
|
|
48600
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
48255
48601
|
innerValue = _React$useState2[0],
|
|
48256
48602
|
setInnerValue = _React$useState2[1];
|
|
48257
48603
|
|
|
@@ -48308,7 +48654,7 @@ function InternalItem(props, ref) {
|
|
|
48308
48654
|
order = props.order,
|
|
48309
48655
|
_props$component = props.component,
|
|
48310
48656
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48311
|
-
restProps =
|
|
48657
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48312
48658
|
|
|
48313
48659
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48314
48660
|
|
|
@@ -48342,9 +48688,9 @@ function InternalItem(props, ref) {
|
|
|
48342
48688
|
overflowProps['aria-hidden'] = true;
|
|
48343
48689
|
}
|
|
48344
48690
|
|
|
48345
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48691
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({
|
|
48346
48692
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48347
|
-
style:
|
|
48693
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, overflowStyle), style)
|
|
48348
48694
|
}, overflowProps, restProps, {
|
|
48349
48695
|
ref: ref
|
|
48350
48696
|
}), childNode);
|
|
@@ -48429,23 +48775,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48429
48775
|
if (!context) {
|
|
48430
48776
|
var _props$component = props.component,
|
|
48431
48777
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48432
|
-
_restProps =
|
|
48778
|
+
_restProps = objectWithoutProperties_objectWithoutProperties(props, ["component"]);
|
|
48433
48779
|
|
|
48434
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48780
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, _restProps, {
|
|
48435
48781
|
ref: ref
|
|
48436
48782
|
}));
|
|
48437
48783
|
}
|
|
48438
48784
|
|
|
48439
48785
|
var contextClassName = context.className,
|
|
48440
|
-
restContext =
|
|
48786
|
+
restContext = objectWithoutProperties_objectWithoutProperties(context, ["className"]);
|
|
48441
48787
|
|
|
48442
48788
|
var className = props.className,
|
|
48443
|
-
restProps =
|
|
48789
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48444
48790
|
|
|
48445
48791
|
|
|
48446
48792
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48447
48793
|
value: null
|
|
48448
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48794
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({
|
|
48449
48795
|
ref: ref,
|
|
48450
48796
|
className: classnames_default()(contextClassName, className)
|
|
48451
48797
|
}, restContext, restProps)));
|
|
@@ -48495,7 +48841,7 @@ function Overflow(props, ref) {
|
|
|
48495
48841
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48496
48842
|
itemComponent = props.itemComponent,
|
|
48497
48843
|
onVisibleChange = props.onVisibleChange,
|
|
48498
|
-
restProps =
|
|
48844
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48499
48845
|
|
|
48500
48846
|
var createUseState = useBatchFrameState();
|
|
48501
48847
|
var fullySSR = ssr === 'full';
|
|
@@ -48705,7 +49051,7 @@ function Overflow(props, ref) {
|
|
|
48705
49051
|
var key = getKey(item, index);
|
|
48706
49052
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48707
49053
|
key: key,
|
|
48708
|
-
value:
|
|
49054
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, itemSharedProps), {}, {
|
|
48709
49055
|
order: index,
|
|
48710
49056
|
item: item,
|
|
48711
49057
|
itemKey: key,
|
|
@@ -48715,7 +49061,7 @@ function Overflow(props, ref) {
|
|
|
48715
49061
|
}, renderRawItem(item, index));
|
|
48716
49062
|
} : function (item, index) {
|
|
48717
49063
|
var key = getKey(item, index);
|
|
48718
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
49064
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, {
|
|
48719
49065
|
order: index,
|
|
48720
49066
|
key: key,
|
|
48721
49067
|
item: item,
|
|
@@ -48736,18 +49082,18 @@ function Overflow(props, ref) {
|
|
|
48736
49082
|
|
|
48737
49083
|
if (!renderRawRest) {
|
|
48738
49084
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48739
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
49085
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48740
49086
|
} else if (renderRawRest) {
|
|
48741
49087
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48742
|
-
value:
|
|
49088
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48743
49089
|
}, renderRawRest(omittedItems));
|
|
48744
49090
|
}
|
|
48745
49091
|
|
|
48746
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
49092
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({
|
|
48747
49093
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48748
49094
|
style: style,
|
|
48749
49095
|
ref: ref
|
|
48750
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
49096
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, {
|
|
48751
49097
|
order: mergedDisplayCount,
|
|
48752
49098
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
48753
49099
|
registerSize: registerSuffixSize,
|
|
@@ -48812,7 +49158,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48812
49158
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
48813
49159
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
48814
49160
|
style = _inputNode$props.style;
|
|
48815
|
-
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode,
|
|
49161
|
+
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
48816
49162
|
id: id,
|
|
48817
49163
|
ref: composeRef(ref, originRef),
|
|
48818
49164
|
disabled: disabled,
|
|
@@ -48821,7 +49167,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48821
49167
|
type: 'search',
|
|
48822
49168
|
autoFocus: autoFocus,
|
|
48823
49169
|
className: classnames_default()("".concat(prefixCls, "-selection-search-input"), (_inputNode2 = inputNode) === null || _inputNode2 === void 0 ? void 0 : (_inputNode2$props = _inputNode2.props) === null || _inputNode2$props === void 0 ? void 0 : _inputNode2$props.className),
|
|
48824
|
-
style:
|
|
49170
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
48825
49171
|
opacity: editable ? null : 0
|
|
48826
49172
|
}),
|
|
48827
49173
|
role: 'combobox',
|
|
@@ -48969,7 +49315,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
48969
49315
|
|
|
48970
49316
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
48971
49317
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48972
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
49318
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), defineProperty_defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
48973
49319
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
48974
49320
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48975
49321
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -49384,7 +49730,7 @@ var Selector = function Selector(props, ref) {
|
|
|
49384
49730
|
onInputCompositionStart: onInputCompositionStart,
|
|
49385
49731
|
onInputCompositionEnd: onInputCompositionEnd
|
|
49386
49732
|
};
|
|
49387
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
49733
|
+
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector, esm_extends_extends({}, props, sharedProps)) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Selector_SingleSelector, esm_extends_extends({}, props, sharedProps));
|
|
49388
49734
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
49389
49735
|
ref: domRef,
|
|
49390
49736
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -49429,7 +49775,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
49429
49775
|
|
|
49430
49776
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
49431
49777
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
49432
|
-
return
|
|
49778
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, baseAlign), align);
|
|
49433
49779
|
}
|
|
49434
49780
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
49435
49781
|
var points = align.points;
|
|
@@ -49493,7 +49839,7 @@ function Mask_Mask(props) {
|
|
|
49493
49839
|
var motion = {};
|
|
49494
49840
|
|
|
49495
49841
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49496
|
-
motion =
|
|
49842
|
+
motion = objectSpread2_objectSpread2({
|
|
49497
49843
|
motionAppear: true
|
|
49498
49844
|
}, getMotion({
|
|
49499
49845
|
motion: maskMotion,
|
|
@@ -49503,7 +49849,7 @@ function Mask_Mask(props) {
|
|
|
49503
49849
|
}));
|
|
49504
49850
|
}
|
|
49505
49851
|
|
|
49506
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49852
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({}, motion, {
|
|
49507
49853
|
visible: visible,
|
|
49508
49854
|
removeOnLeave: true
|
|
49509
49855
|
}), function (_ref) {
|
|
@@ -51015,7 +51361,7 @@ function getElement(func) {
|
|
|
51015
51361
|
}
|
|
51016
51362
|
|
|
51017
51363
|
function getPoint(point) {
|
|
51018
|
-
if (
|
|
51364
|
+
if (esm_typeof_typeof(point) !== 'object' || !point) return null;
|
|
51019
51365
|
return point;
|
|
51020
51366
|
}
|
|
51021
51367
|
|
|
@@ -51229,9 +51575,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51229
51575
|
}
|
|
51230
51576
|
|
|
51231
51577
|
if (status) {
|
|
51232
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
51578
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
51233
51579
|
var index, nextStatus;
|
|
51234
|
-
return
|
|
51580
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
51235
51581
|
while (1) {
|
|
51236
51582
|
switch (_context.prev = _context.next) {
|
|
51237
51583
|
case 0:
|
|
@@ -51404,7 +51750,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51404
51750
|
} // ======================== Motion ========================
|
|
51405
51751
|
|
|
51406
51752
|
|
|
51407
|
-
var motion =
|
|
51753
|
+
var motion = objectSpread2_objectSpread2({}, getMotion(props));
|
|
51408
51754
|
|
|
51409
51755
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
51410
51756
|
var originHandler = motion[eventName];
|
|
@@ -51437,7 +51783,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51437
51783
|
};
|
|
51438
51784
|
}); // ======================== Render ========================
|
|
51439
51785
|
|
|
51440
|
-
var mergedStyle =
|
|
51786
|
+
var mergedStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, stretchStyle), {}, {
|
|
51441
51787
|
zIndex: zIndex,
|
|
51442
51788
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
51443
51789
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -51458,7 +51804,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51458
51804
|
}, children);
|
|
51459
51805
|
}
|
|
51460
51806
|
|
|
51461
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51807
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
51462
51808
|
visible: visible,
|
|
51463
51809
|
ref: elementRef,
|
|
51464
51810
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51486,7 +51832,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51486
51832
|
onMouseLeave: onMouseLeave,
|
|
51487
51833
|
onMouseDownCapture: onMouseDown,
|
|
51488
51834
|
onTouchStartCapture: onTouchStart,
|
|
51489
|
-
style:
|
|
51835
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), mergedStyle)
|
|
51490
51836
|
}, childNode));
|
|
51491
51837
|
});
|
|
51492
51838
|
});
|
|
@@ -51521,7 +51867,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51521
51867
|
};
|
|
51522
51868
|
}); // ======================== Render ========================
|
|
51523
51869
|
|
|
51524
|
-
var mergedStyle =
|
|
51870
|
+
var mergedStyle = objectSpread2_objectSpread2({
|
|
51525
51871
|
zIndex: zIndex
|
|
51526
51872
|
}, popupStyle);
|
|
51527
51873
|
|
|
@@ -51538,7 +51884,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51538
51884
|
childNode = popupRender(childNode);
|
|
51539
51885
|
}
|
|
51540
51886
|
|
|
51541
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51887
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
51542
51888
|
visible: visible,
|
|
51543
51889
|
ref: elementRef,
|
|
51544
51890
|
removeOnLeave: true
|
|
@@ -51549,7 +51895,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51549
51895
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51550
51896
|
ref: motionRef,
|
|
51551
51897
|
className: mergedClassName,
|
|
51552
|
-
style:
|
|
51898
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), mergedStyle)
|
|
51553
51899
|
}, childNode);
|
|
51554
51900
|
});
|
|
51555
51901
|
});
|
|
@@ -51570,7 +51916,7 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51570
51916
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51571
51917
|
var visible = _ref.visible,
|
|
51572
51918
|
mobile = _ref.mobile,
|
|
51573
|
-
props =
|
|
51919
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref, Popup_excluded);
|
|
51574
51920
|
|
|
51575
51921
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51576
51922
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
@@ -51582,7 +51928,7 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51582
51928
|
inMobile = _useState4[0],
|
|
51583
51929
|
setInMobile = _useState4[1];
|
|
51584
51930
|
|
|
51585
|
-
var cloneProps =
|
|
51931
|
+
var cloneProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
51586
51932
|
visible: innerVisible
|
|
51587
51933
|
}); // We check mobile in visible changed here.
|
|
51588
51934
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51595,10 +51941,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51595
51941
|
setInMobile(isMobile());
|
|
51596
51942
|
}
|
|
51597
51943
|
}, [visible, mobile]);
|
|
51598
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51944
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, esm_extends_extends({}, cloneProps, {
|
|
51599
51945
|
mobile: mobile,
|
|
51600
51946
|
ref: ref
|
|
51601
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51947
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, esm_extends_extends({}, cloneProps, {
|
|
51602
51948
|
ref: ref
|
|
51603
51949
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51604
51950
|
|
|
@@ -51652,14 +51998,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51652
51998
|
|
|
51653
51999
|
function generateTrigger(PortalComponent) {
|
|
51654
52000
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51655
|
-
|
|
52001
|
+
inherits_inherits(Trigger, _React$Component);
|
|
51656
52002
|
|
|
51657
|
-
var _super =
|
|
52003
|
+
var _super = createSuper_createSuper(Trigger);
|
|
51658
52004
|
|
|
51659
52005
|
function Trigger(props) {
|
|
51660
52006
|
var _this;
|
|
51661
52007
|
|
|
51662
|
-
|
|
52008
|
+
classCallCheck_classCallCheck(this, Trigger);
|
|
51663
52009
|
|
|
51664
52010
|
_this = _super.call(this, props);
|
|
51665
52011
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -51847,7 +52193,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51847
52193
|
} catch (err) {// Do nothing
|
|
51848
52194
|
}
|
|
51849
52195
|
|
|
51850
|
-
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(
|
|
52196
|
+
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(assertThisInitialized_assertThisInitialized(_this));
|
|
51851
52197
|
};
|
|
51852
52198
|
|
|
51853
52199
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -51908,7 +52254,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51908
52254
|
|
|
51909
52255
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
51910
52256
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
51911
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup,
|
|
52257
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup, esm_extends_extends({
|
|
51912
52258
|
prefixCls: prefixCls,
|
|
51913
52259
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
51914
52260
|
visible: popupVisible,
|
|
@@ -52021,7 +52367,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52021
52367
|
return _this;
|
|
52022
52368
|
}
|
|
52023
52369
|
|
|
52024
|
-
|
|
52370
|
+
createClass_createClass(Trigger, [{
|
|
52025
52371
|
key: "componentDidMount",
|
|
52026
52372
|
value: function componentDidMount() {
|
|
52027
52373
|
this.componentDidUpdate();
|
|
@@ -52346,7 +52692,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52346
52692
|
newChildProps.className = childrenClassName;
|
|
52347
52693
|
}
|
|
52348
52694
|
|
|
52349
|
-
var cloneProps =
|
|
52695
|
+
var cloneProps = objectSpread2_objectSpread2({}, newChildProps);
|
|
52350
52696
|
|
|
52351
52697
|
if (supportRef(child)) {
|
|
52352
52698
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -52487,7 +52833,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52487
52833
|
empty = props.empty,
|
|
52488
52834
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
52489
52835
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
52490
|
-
restProps =
|
|
52836
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SelectTrigger_excluded);
|
|
52491
52837
|
|
|
52492
52838
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
52493
52839
|
var popupNode = popupElement;
|
|
@@ -52511,7 +52857,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52511
52857
|
};
|
|
52512
52858
|
});
|
|
52513
52859
|
|
|
52514
|
-
var popupStyle =
|
|
52860
|
+
var popupStyle = objectSpread2_objectSpread2({
|
|
52515
52861
|
minWidth: containerWidth
|
|
52516
52862
|
}, dropdownStyle);
|
|
52517
52863
|
|
|
@@ -52521,7 +52867,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52521
52867
|
popupStyle.width = containerWidth;
|
|
52522
52868
|
}
|
|
52523
52869
|
|
|
52524
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
52870
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, esm_extends_extends({}, restProps, {
|
|
52525
52871
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
52526
52872
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
52527
52873
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -52534,7 +52880,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52534
52880
|
popupAlign: dropdownAlign,
|
|
52535
52881
|
popupVisible: visible,
|
|
52536
52882
|
getPopupContainer: getPopupContainer,
|
|
52537
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52883
|
+
popupClassName: classnames_default()(dropdownClassName, defineProperty_defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
52538
52884
|
popupStyle: popupStyle,
|
|
52539
52885
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
52540
52886
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52637,7 +52983,7 @@ function useCacheDisplayValue(values) {
|
|
|
52637
52983
|
var cacheLabel = valueLabels.get(item.value);
|
|
52638
52984
|
|
|
52639
52985
|
if (item.isCacheable && cacheLabel) {
|
|
52640
|
-
return
|
|
52986
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
52641
52987
|
label: cacheLabel
|
|
52642
52988
|
});
|
|
52643
52989
|
}
|
|
@@ -52799,7 +53145,7 @@ function generateSelector(config) {
|
|
|
52799
53145
|
onClear = props.onClear,
|
|
52800
53146
|
_props$internalProps = props.internalProps,
|
|
52801
53147
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
52802
|
-
restProps =
|
|
53148
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, generate_excluded);
|
|
52803
53149
|
|
|
52804
53150
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
52805
53151
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -52937,7 +53283,7 @@ function generateSelector(config) {
|
|
|
52937
53283
|
|
|
52938
53284
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
52939
53285
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
52940
|
-
return
|
|
53286
|
+
return toConsumableArray_toConsumableArray(mergedOptions);
|
|
52941
53287
|
}
|
|
52942
53288
|
|
|
52943
53289
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -52958,7 +53304,7 @@ function generateSelector(config) {
|
|
|
52958
53304
|
}
|
|
52959
53305
|
|
|
52960
53306
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
52961
|
-
return
|
|
53307
|
+
return toConsumableArray_toConsumableArray(filteredOptions).sort(filterSort);
|
|
52962
53308
|
}
|
|
52963
53309
|
|
|
52964
53310
|
return filteredOptions;
|
|
@@ -52981,7 +53327,7 @@ function generateSelector(config) {
|
|
|
52981
53327
|
labelInValue: mergedLabelInValue,
|
|
52982
53328
|
optionLabelProp: mergedOptionLabelProp
|
|
52983
53329
|
});
|
|
52984
|
-
return
|
|
53330
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, displayValue), {}, {
|
|
52985
53331
|
disabled: isValueDisabled(val, valueOptions)
|
|
52986
53332
|
});
|
|
52987
53333
|
});
|
|
@@ -53055,7 +53401,7 @@ function generateSelector(config) {
|
|
|
53055
53401
|
}); // We will cache option in case it removed by ajax
|
|
53056
53402
|
|
|
53057
53403
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
53058
|
-
var clone =
|
|
53404
|
+
var clone = objectSpread2_objectSpread2({}, option);
|
|
53059
53405
|
|
|
53060
53406
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
53061
53407
|
get: function get() {
|
|
@@ -53111,13 +53457,13 @@ function generateSelector(config) {
|
|
|
53111
53457
|
};
|
|
53112
53458
|
|
|
53113
53459
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
53114
|
-
onInternalSelect(newValue,
|
|
53460
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
53115
53461
|
source: 'option'
|
|
53116
53462
|
}));
|
|
53117
53463
|
};
|
|
53118
53464
|
|
|
53119
53465
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
53120
|
-
onInternalSelect(newValue,
|
|
53466
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
53121
53467
|
source: 'selection'
|
|
53122
53468
|
}));
|
|
53123
53469
|
}; // ============================= Input ==============================
|
|
@@ -53201,7 +53547,7 @@ function generateSelector(config) {
|
|
|
53201
53547
|
});
|
|
53202
53548
|
}
|
|
53203
53549
|
|
|
53204
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53550
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), toConsumableArray_toConsumableArray(patchRawValues))));
|
|
53205
53551
|
triggerChange(newRawValues);
|
|
53206
53552
|
newRawValues.forEach(function (newRawValue) {
|
|
53207
53553
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53230,7 +53576,7 @@ function generateSelector(config) {
|
|
|
53230
53576
|
return;
|
|
53231
53577
|
}
|
|
53232
53578
|
|
|
53233
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53579
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [searchText])));
|
|
53234
53580
|
triggerChange(newRawValues);
|
|
53235
53581
|
newRawValues.forEach(function (newRawValue) {
|
|
53236
53582
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53363,7 +53709,7 @@ function generateSelector(config) {
|
|
|
53363
53709
|
// `tags` mode should move `searchValue` into values
|
|
53364
53710
|
if (mode === 'tags') {
|
|
53365
53711
|
triggerSearch('', false, false);
|
|
53366
|
-
triggerChange(Array.from(new Set([].concat(
|
|
53712
|
+
triggerChange(Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
53367
53713
|
} else if (mode === 'multiple') {
|
|
53368
53714
|
// `multiple` mode only clean the search value but not trigger event
|
|
53369
53715
|
setInnerSearchValue('');
|
|
@@ -53521,7 +53867,7 @@ function generateSelector(config) {
|
|
|
53521
53867
|
|
|
53522
53868
|
if (mergedShowArrow) {
|
|
53523
53869
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
53524
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53870
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), defineProperty_defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
53525
53871
|
customizeIcon: inputIcon,
|
|
53526
53872
|
customizeIconProps: {
|
|
53527
53873
|
loading: loading,
|
|
@@ -53537,7 +53883,7 @@ function generateSelector(config) {
|
|
|
53537
53883
|
if (false) {} // ============================= Render =============================
|
|
53538
53884
|
|
|
53539
53885
|
|
|
53540
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
53886
|
+
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {}, defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-focused"), mockFocused), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-multiple"), isMultiple), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-single"), !isMultiple), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-show-arrow"), mergedShowArrow), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-loading"), loading), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-open"), mergedOpen), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch), _classNames2));
|
|
53541
53887
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
53542
53888
|
ref: triggerRef,
|
|
53543
53889
|
disabled: disabled,
|
|
@@ -53562,7 +53908,7 @@ function generateSelector(config) {
|
|
|
53562
53908
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
53563
53909
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
53564
53910
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
53565
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
53911
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, esm_extends_extends({}, props, {
|
|
53566
53912
|
domRef: selectorDomRef,
|
|
53567
53913
|
prefixCls: prefixCls,
|
|
53568
53914
|
inputElement: customizeInputElement,
|
|
@@ -53588,7 +53934,7 @@ function generateSelector(config) {
|
|
|
53588
53934
|
return selectorNode;
|
|
53589
53935
|
}
|
|
53590
53936
|
|
|
53591
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
53937
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
53592
53938
|
className: mergedClassName
|
|
53593
53939
|
}, domProps, {
|
|
53594
53940
|
ref: containerRef,
|
|
@@ -53675,7 +54021,7 @@ function warningProps(props) {
|
|
|
53675
54021
|
if (value !== undefined && value !== null) {
|
|
53676
54022
|
var values = commonUtil_toArray(value);
|
|
53677
54023
|
es_warning(!labelInValue || values.every(function (val) {
|
|
53678
|
-
return
|
|
54024
|
+
return esm_typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
53679
54025
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
53680
54026
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
53681
54027
|
} // Syntactic sugar should use correct children type
|
|
@@ -53789,14 +54135,14 @@ var RefSelect = generateSelector({
|
|
|
53789
54135
|
*/
|
|
53790
54136
|
|
|
53791
54137
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
53792
|
-
|
|
54138
|
+
inherits_inherits(Select, _React$Component);
|
|
53793
54139
|
|
|
53794
|
-
var _super =
|
|
54140
|
+
var _super = createSuper_createSuper(Select);
|
|
53795
54141
|
|
|
53796
54142
|
function Select() {
|
|
53797
54143
|
var _this;
|
|
53798
54144
|
|
|
53799
|
-
|
|
54145
|
+
classCallCheck_classCallCheck(this, Select);
|
|
53800
54146
|
|
|
53801
54147
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53802
54148
|
args[_key] = arguments[_key];
|
|
@@ -53816,10 +54162,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
53816
54162
|
return _this;
|
|
53817
54163
|
}
|
|
53818
54164
|
|
|
53819
|
-
|
|
54165
|
+
createClass_createClass(Select, [{
|
|
53820
54166
|
key: "render",
|
|
53821
54167
|
value: function render() {
|
|
53822
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
54168
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, esm_extends_extends({
|
|
53823
54169
|
ref: this.selectRef
|
|
53824
54170
|
}, this.props));
|
|
53825
54171
|
}
|
|
@@ -54846,15 +55192,15 @@ function getResourceLikes(_x, _x2) {
|
|
|
54846
55192
|
} // 获取资源点赞
|
|
54847
55193
|
|
|
54848
55194
|
function _getResourceLikes() {
|
|
54849
|
-
_getResourceLikes = like_asyncToGenerator( /*#__PURE__*/
|
|
55195
|
+
_getResourceLikes = like_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(resId, type) {
|
|
54850
55196
|
var _yield$xProxy$get, data;
|
|
54851
55197
|
|
|
54852
|
-
return
|
|
55198
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
54853
55199
|
while (1) {
|
|
54854
55200
|
switch (_context.prev = _context.next) {
|
|
54855
55201
|
case 0:
|
|
54856
55202
|
_context.next = 2;
|
|
54857
|
-
return
|
|
55203
|
+
return xProxy.get("/v1/res_stats/".concat(resId), {
|
|
54858
55204
|
params: {
|
|
54859
55205
|
type: type
|
|
54860
55206
|
}
|
|
@@ -54945,10 +55291,10 @@ function getStatByChunk(_x6, _x7) {
|
|
|
54945
55291
|
|
|
54946
55292
|
|
|
54947
55293
|
function _getStatByChunk() {
|
|
54948
|
-
_getStatByChunk = like_asyncToGenerator( /*#__PURE__*/
|
|
55294
|
+
_getStatByChunk = like_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5(resIds, requestFn) {
|
|
54949
55295
|
var chunkSize, _yield$requestFn, data, _ref2, chunkCount, result, t;
|
|
54950
55296
|
|
|
54951
|
-
return
|
|
55297
|
+
return regenerator_default().wrap(function _callee5$(_context5) {
|
|
54952
55298
|
while (1) {
|
|
54953
55299
|
switch (_context5.prev = _context5.next) {
|
|
54954
55300
|
case 0:
|
|
@@ -54973,10 +55319,10 @@ function _getStatByChunk() {
|
|
|
54973
55319
|
t = new Array(chunkCount).fill(0);
|
|
54974
55320
|
_context5.next = 14;
|
|
54975
55321
|
return Promise.all(t.map( /*#__PURE__*/function () {
|
|
54976
|
-
var _ref = like_asyncToGenerator( /*#__PURE__*/
|
|
55322
|
+
var _ref = like_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(v, i) {
|
|
54977
55323
|
var chunk, _yield$requestFn2, data;
|
|
54978
55324
|
|
|
54979
|
-
return
|
|
55325
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
54980
55326
|
while (1) {
|
|
54981
55327
|
switch (_context4.prev = _context4.next) {
|
|
54982
55328
|
case 0:
|
|
@@ -55020,18 +55366,18 @@ function getResourceStat(_x8) {
|
|
|
55020
55366
|
} // 批量获取评价统计
|
|
55021
55367
|
|
|
55022
55368
|
function _getResourceStat() {
|
|
55023
|
-
_getResourceStat = like_asyncToGenerator( /*#__PURE__*/
|
|
55024
|
-
return
|
|
55369
|
+
_getResourceStat = like_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee7(resIds) {
|
|
55370
|
+
return regenerator_default().wrap(function _callee7$(_context7) {
|
|
55025
55371
|
while (1) {
|
|
55026
55372
|
switch (_context7.prev = _context7.next) {
|
|
55027
55373
|
case 0:
|
|
55028
55374
|
return _context7.abrupt("return", getStatByChunk(resIds, /*#__PURE__*/function () {
|
|
55029
|
-
var _ref3 = like_asyncToGenerator( /*#__PURE__*/
|
|
55030
|
-
return
|
|
55375
|
+
var _ref3 = like_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee6(chunk) {
|
|
55376
|
+
return regenerator_default().wrap(function _callee6$(_context6) {
|
|
55031
55377
|
while (1) {
|
|
55032
55378
|
switch (_context6.prev = _context6.next) {
|
|
55033
55379
|
case 0:
|
|
55034
|
-
return _context6.abrupt("return",
|
|
55380
|
+
return _context6.abrupt("return", x_proxy.get("/v1/res_stats/actions/query?res_ids=".concat(chunk.join(','))));
|
|
55035
55381
|
|
|
55036
55382
|
case 1:
|
|
55037
55383
|
case "end":
|
|
@@ -56129,7 +56475,7 @@ function TabNode(_ref, ref) {
|
|
|
56129
56475
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
56130
56476
|
key: key,
|
|
56131
56477
|
ref: ref,
|
|
56132
|
-
className: classnames_default()(tabPrefix, (_classNames = {},
|
|
56478
|
+
className: classnames_default()(tabPrefix, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(tabPrefix, "-with-remove"), removable), defineProperty_defineProperty(_classNames, "".concat(tabPrefix, "-active"), active), defineProperty_defineProperty(_classNames, "".concat(tabPrefix, "-disabled"), disabled), _classNames)),
|
|
56133
56479
|
style: style,
|
|
56134
56480
|
onClick: onInternalClick
|
|
56135
56481
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -56192,7 +56538,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
56192
56538
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
56193
56539
|
}
|
|
56194
56540
|
|
|
56195
|
-
var entity = map.get(key) ||
|
|
56541
|
+
var entity = map.get(key) || objectSpread2_objectSpread2({}, data); // Right
|
|
56196
56542
|
|
|
56197
56543
|
|
|
56198
56544
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -56287,7 +56633,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56287
56633
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56288
56634
|
|
|
56289
56635
|
function mergeProps(origin, target) {
|
|
56290
|
-
var clone =
|
|
56636
|
+
var clone = objectSpread2_objectSpread2({}, origin);
|
|
56291
56637
|
|
|
56292
56638
|
Object.keys(target).forEach(function (key) {
|
|
56293
56639
|
var value = target[key];
|
|
@@ -56302,7 +56648,7 @@ function mergeProps(origin, target) {
|
|
|
56302
56648
|
function InheritableContextProvider(_ref) {
|
|
56303
56649
|
var children = _ref.children,
|
|
56304
56650
|
locked = _ref.locked,
|
|
56305
|
-
restProps =
|
|
56651
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56306
56652
|
|
|
56307
56653
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56308
56654
|
var inheritableContext = useMemo(function () {
|
|
@@ -56358,7 +56704,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56358
56704
|
|
|
56359
56705
|
function warnItemProp(_ref) {
|
|
56360
56706
|
var item = _ref.item,
|
|
56361
|
-
restInfo =
|
|
56707
|
+
restInfo = objectWithoutProperties_objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56362
56708
|
|
|
56363
56709
|
Object.defineProperty(restInfo, 'item', {
|
|
56364
56710
|
get: function get() {
|
|
@@ -56378,7 +56724,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56378
56724
|
var iconNode;
|
|
56379
56725
|
|
|
56380
56726
|
if (typeof icon === 'function') {
|
|
56381
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
56727
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, objectSpread2_objectSpread2({}, props));
|
|
56382
56728
|
} else {
|
|
56383
56729
|
// Compatible for origin definition
|
|
56384
56730
|
iconNode = icon;
|
|
@@ -56419,7 +56765,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56419
56765
|
function useFullPath(eventKey) {
|
|
56420
56766
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56421
56767
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56422
|
-
return eventKey !== undefined ? [].concat(
|
|
56768
|
+
return eventKey !== undefined ? [].concat(toConsumableArray_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56423
56769
|
}, [parentKeyPath, eventKey]);
|
|
56424
56770
|
}
|
|
56425
56771
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56476,28 +56822,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56476
56822
|
// This should be removed from doc & api in future.
|
|
56477
56823
|
|
|
56478
56824
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56479
|
-
|
|
56825
|
+
inherits_inherits(LegacyMenuItem, _React$Component);
|
|
56480
56826
|
|
|
56481
|
-
var _super =
|
|
56827
|
+
var _super = createSuper_createSuper(LegacyMenuItem);
|
|
56482
56828
|
|
|
56483
56829
|
function LegacyMenuItem() {
|
|
56484
|
-
|
|
56830
|
+
classCallCheck_classCallCheck(this, LegacyMenuItem);
|
|
56485
56831
|
|
|
56486
56832
|
return _super.apply(this, arguments);
|
|
56487
56833
|
}
|
|
56488
56834
|
|
|
56489
|
-
|
|
56835
|
+
createClass_createClass(LegacyMenuItem, [{
|
|
56490
56836
|
key: "render",
|
|
56491
56837
|
value: function render() {
|
|
56492
56838
|
var _this$props = this.props,
|
|
56493
56839
|
title = _this$props.title,
|
|
56494
56840
|
attribute = _this$props.attribute,
|
|
56495
56841
|
elementRef = _this$props.elementRef,
|
|
56496
|
-
restProps =
|
|
56842
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56497
56843
|
|
|
56498
56844
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56499
56845
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56500
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56846
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, esm_extends_extends({}, attribute, {
|
|
56501
56847
|
title: typeof title === 'string' ? title : undefined
|
|
56502
56848
|
}, passedProps, {
|
|
56503
56849
|
ref: elementRef
|
|
@@ -56528,7 +56874,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56528
56874
|
onClick = props.onClick,
|
|
56529
56875
|
onKeyDown = props.onKeyDown,
|
|
56530
56876
|
onFocus = props.onFocus,
|
|
56531
|
-
restProps =
|
|
56877
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, MenuItem_excluded2);
|
|
56532
56878
|
|
|
56533
56879
|
var domDataId = useMenuId(eventKey);
|
|
56534
56880
|
|
|
@@ -56557,7 +56903,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56557
56903
|
return {
|
|
56558
56904
|
key: eventKey,
|
|
56559
56905
|
// Note: For legacy code is reversed which not like other antd component
|
|
56560
|
-
keyPath:
|
|
56906
|
+
keyPath: toConsumableArray_toConsumableArray(connectedKeys).reverse(),
|
|
56561
56907
|
item: legacyMenuItemRef.current,
|
|
56562
56908
|
domEvent: e
|
|
56563
56909
|
};
|
|
@@ -56568,7 +56914,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56568
56914
|
|
|
56569
56915
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56570
56916
|
active = _useActive.active,
|
|
56571
|
-
activeProps =
|
|
56917
|
+
activeProps = objectWithoutProperties_objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56572
56918
|
|
|
56573
56919
|
|
|
56574
56920
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56613,7 +56959,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56613
56959
|
optionRoleProps['aria-selected'] = selected;
|
|
56614
56960
|
}
|
|
56615
56961
|
|
|
56616
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56962
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, esm_extends_extends({
|
|
56617
56963
|
ref: legacyMenuItemRef,
|
|
56618
56964
|
elementRef: elementRef,
|
|
56619
56965
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56622,13 +56968,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56622
56968
|
}, restProps, activeProps, optionRoleProps, {
|
|
56623
56969
|
component: "li",
|
|
56624
56970
|
"aria-disabled": disabled,
|
|
56625
|
-
style:
|
|
56626
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56971
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, directionStyle), style),
|
|
56972
|
+
className: classnames_default()(itemCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(itemCls, "-active"), active), defineProperty_defineProperty(_classNames, "".concat(itemCls, "-selected"), selected), defineProperty_defineProperty(_classNames, "".concat(itemCls, "-disabled"), mergedDisabled), _classNames), className),
|
|
56627
56973
|
onClick: onInternalClick,
|
|
56628
56974
|
onKeyDown: onInternalKeyDown,
|
|
56629
56975
|
onFocus: onInternalFocus
|
|
56630
56976
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56631
|
-
props:
|
|
56977
|
+
props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
56632
56978
|
isSelected: selected
|
|
56633
56979
|
}),
|
|
56634
56980
|
icon: mergedItemIcon
|
|
@@ -56681,7 +57027,7 @@ function parseChildren(children, keyPath) {
|
|
|
56681
57027
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56682
57028
|
|
|
56683
57029
|
if (emptyKey) {
|
|
56684
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
57030
|
+
eventKey = "tmp_key-".concat([].concat(toConsumableArray_toConsumableArray(keyPath), [index]).join('-'));
|
|
56685
57031
|
}
|
|
56686
57032
|
|
|
56687
57033
|
var cloneProps = {
|
|
@@ -56729,14 +57075,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56729
57075
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56730
57076
|
var className = _ref.className,
|
|
56731
57077
|
children = _ref.children,
|
|
56732
|
-
restProps =
|
|
57078
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56733
57079
|
|
|
56734
57080
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56735
57081
|
prefixCls = _React$useContext.prefixCls,
|
|
56736
57082
|
mode = _React$useContext.mode,
|
|
56737
57083
|
rtl = _React$useContext.rtl;
|
|
56738
57084
|
|
|
56739
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
57085
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", esm_extends_extends({
|
|
56740
57086
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56741
57087
|
}, restProps, {
|
|
56742
57088
|
"data-menu-list": true,
|
|
@@ -56853,11 +57199,11 @@ function PopupTrigger(_ref) {
|
|
|
56853
57199
|
innerVisible = _React$useState2[0],
|
|
56854
57200
|
setInnerVisible = _React$useState2[1];
|
|
56855
57201
|
|
|
56856
|
-
var placement = rtl ?
|
|
57202
|
+
var placement = rtl ? objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, placementsRtl), builtinPlacements) : objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, placements), builtinPlacements);
|
|
56857
57203
|
var popupPlacement = popupPlacementMap[mode];
|
|
56858
57204
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
56859
57205
|
|
|
56860
|
-
var mergedMotion =
|
|
57206
|
+
var mergedMotion = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, targetMotion), {}, {
|
|
56861
57207
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
56862
57208
|
removeOnLeave: false,
|
|
56863
57209
|
motionAppear: true
|
|
@@ -56875,7 +57221,7 @@ function PopupTrigger(_ref) {
|
|
|
56875
57221
|
}, [visible]);
|
|
56876
57222
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
56877
57223
|
prefixCls: prefixCls,
|
|
56878
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
57224
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), defineProperty_defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
56879
57225
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
56880
57226
|
getPopupContainer: getPopupContainer,
|
|
56881
57227
|
builtinPlacements: placement,
|
|
@@ -56935,7 +57281,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56935
57281
|
}
|
|
56936
57282
|
}, [mode]); // ================================= Render =================================
|
|
56937
57283
|
|
|
56938
|
-
var mergedMotion =
|
|
57284
|
+
var mergedMotion = objectSpread2_objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
56939
57285
|
|
|
56940
57286
|
|
|
56941
57287
|
if (keyPath.length > 1) {
|
|
@@ -56960,7 +57306,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56960
57306
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
56961
57307
|
mode: fixedMode,
|
|
56962
57308
|
locked: !sameModeRef.current
|
|
56963
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
57309
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
56964
57310
|
visible: mergedOpen
|
|
56965
57311
|
}, mergedMotion, {
|
|
56966
57312
|
forceRender: forceSubMenuRender,
|
|
@@ -57023,7 +57369,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57023
57369
|
onTitleClick = props.onTitleClick,
|
|
57024
57370
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
57025
57371
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
57026
|
-
restProps =
|
|
57372
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SubMenu_excluded);
|
|
57027
57373
|
|
|
57028
57374
|
var domDataId = useMenuId(eventKey);
|
|
57029
57375
|
|
|
@@ -57066,7 +57412,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57066
57412
|
|
|
57067
57413
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
57068
57414
|
active = _useActive.active,
|
|
57069
|
-
activeProps =
|
|
57415
|
+
activeProps = objectWithoutProperties_objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
57070
57416
|
|
|
57071
57417
|
|
|
57072
57418
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
@@ -57151,7 +57497,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57151
57497
|
|
|
57152
57498
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
57153
57499
|
|
|
57154
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
57500
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
57155
57501
|
role: "menuitem",
|
|
57156
57502
|
style: directionStyle,
|
|
57157
57503
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -57167,7 +57513,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57167
57513
|
onFocus: onInternalFocus
|
|
57168
57514
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
57169
57515
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
57170
|
-
props:
|
|
57516
|
+
props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
57171
57517
|
isOpen: open,
|
|
57172
57518
|
// [Legacy] Not sure why need this mark
|
|
57173
57519
|
isSubMenu: true
|
|
@@ -57205,12 +57551,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57205
57551
|
} // >>>>> List node
|
|
57206
57552
|
|
|
57207
57553
|
|
|
57208
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
57554
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, esm_extends_extends({
|
|
57209
57555
|
role: "none"
|
|
57210
57556
|
}, restProps, {
|
|
57211
57557
|
component: "li",
|
|
57212
57558
|
style: style,
|
|
57213
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
57559
|
+
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-open"), open), defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-active"), mergedActive), defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-selected"), childrenSelected), defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-disabled"), mergedDisabled), _classNames)),
|
|
57214
57560
|
onMouseEnter: onInternalMouseEnter,
|
|
57215
57561
|
onMouseLeave: onInternalMouseLeave
|
|
57216
57562
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -57303,7 +57649,7 @@ function focusable(node) {
|
|
|
57303
57649
|
function getFocusNodeList(node) {
|
|
57304
57650
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
57305
57651
|
|
|
57306
|
-
var res =
|
|
57652
|
+
var res = toConsumableArray_toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
57307
57653
|
return focusable(child, includePositive);
|
|
57308
57654
|
});
|
|
57309
57655
|
|
|
@@ -57383,9 +57729,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
57383
57729
|
};
|
|
57384
57730
|
}
|
|
57385
57731
|
|
|
57386
|
-
var inline = (_inline = {},
|
|
57387
|
-
var horizontal = (_horizontal = {},
|
|
57388
|
-
var vertical = (_vertical = {},
|
|
57732
|
+
var inline = (_inline = {}, defineProperty_defineProperty(_inline, UP, prev), defineProperty_defineProperty(_inline, DOWN, next), _inline);
|
|
57733
|
+
var horizontal = (_horizontal = {}, defineProperty_defineProperty(_horizontal, useAccessibility_LEFT, isRtl ? next : prev), defineProperty_defineProperty(_horizontal, RIGHT, isRtl ? prev : next), defineProperty_defineProperty(_horizontal, DOWN, children), defineProperty_defineProperty(_horizontal, ENTER, children), _horizontal);
|
|
57734
|
+
var vertical = (_vertical = {}, defineProperty_defineProperty(_vertical, UP, prev), defineProperty_defineProperty(_vertical, DOWN, next), defineProperty_defineProperty(_vertical, ENTER, children), defineProperty_defineProperty(_vertical, ESC, parent), defineProperty_defineProperty(_vertical, useAccessibility_LEFT, isRtl ? children : parent), defineProperty_defineProperty(_vertical, RIGHT, isRtl ? parent : children), _vertical);
|
|
57389
57735
|
var offsets = {
|
|
57390
57736
|
inline: inline,
|
|
57391
57737
|
horizontal: horizontal,
|
|
@@ -57749,7 +58095,7 @@ function useKeyRecords() {
|
|
|
57749
58095
|
}, [getKeyPath]);
|
|
57750
58096
|
|
|
57751
58097
|
var getKeys = function getKeys() {
|
|
57752
|
-
var keys =
|
|
58098
|
+
var keys = toConsumableArray_toConsumableArray(key2pathRef.current.keys());
|
|
57753
58099
|
|
|
57754
58100
|
if (overflowKeys.length) {
|
|
57755
58101
|
keys.push(OVERFLOW_KEY);
|
|
@@ -57766,7 +58112,7 @@ function useKeyRecords() {
|
|
|
57766
58112
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
57767
58113
|
var pathKeys = new Set();
|
|
57768
58114
|
|
|
57769
|
-
|
|
58115
|
+
toConsumableArray_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
57770
58116
|
if (pathKey.startsWith(connectedPath)) {
|
|
57771
58117
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
57772
58118
|
}
|
|
@@ -57887,7 +58233,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57887
58233
|
openTransitionName = props.openTransitionName,
|
|
57888
58234
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
57889
58235
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
57890
|
-
restProps =
|
|
58236
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, Menu_excluded);
|
|
57891
58237
|
|
|
57892
58238
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
57893
58239
|
|
|
@@ -58041,7 +58387,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58041
58387
|
return key !== targetKey;
|
|
58042
58388
|
});
|
|
58043
58389
|
} else {
|
|
58044
|
-
newSelectKeys = [].concat(
|
|
58390
|
+
newSelectKeys = [].concat(toConsumableArray_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
58045
58391
|
}
|
|
58046
58392
|
} else {
|
|
58047
58393
|
newSelectKeys = [targetKey];
|
|
@@ -58049,7 +58395,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58049
58395
|
|
|
58050
58396
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
58051
58397
|
|
|
58052
|
-
var selectInfo =
|
|
58398
|
+
var selectInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
58053
58399
|
selectedKeys: newSelectKeys
|
|
58054
58400
|
});
|
|
58055
58401
|
|
|
@@ -58127,13 +58473,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58127
58473
|
);
|
|
58128
58474
|
}); // >>>>> Container
|
|
58129
58475
|
|
|
58130
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
58476
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, esm_extends_extends({
|
|
58131
58477
|
id: id,
|
|
58132
58478
|
ref: mergedRef,
|
|
58133
58479
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
58134
58480
|
component: "ul",
|
|
58135
58481
|
itemComponent: es_MenuItem,
|
|
58136
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
58482
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-inline-collapsed"), mergedInlineCollapsed), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), isRtl), _classNames)),
|
|
58137
58483
|
dir: direction,
|
|
58138
58484
|
style: style,
|
|
58139
58485
|
role: "menu",
|
|
@@ -58227,13 +58573,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58227
58573
|
title = _ref.title,
|
|
58228
58574
|
eventKey = _ref.eventKey,
|
|
58229
58575
|
children = _ref.children,
|
|
58230
|
-
restProps =
|
|
58576
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58231
58577
|
|
|
58232
58578
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58233
58579
|
prefixCls = _React$useContext.prefixCls;
|
|
58234
58580
|
|
|
58235
58581
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58236
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
58582
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", esm_extends_extends({}, restProps, {
|
|
58237
58583
|
onClick: function onClick(e) {
|
|
58238
58584
|
return e.stopPropagation();
|
|
58239
58585
|
},
|
|
@@ -58248,7 +58594,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58248
58594
|
|
|
58249
58595
|
function MenuItemGroup(_ref2) {
|
|
58250
58596
|
var children = _ref2.children,
|
|
58251
|
-
props =
|
|
58597
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58252
58598
|
|
|
58253
58599
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58254
58600
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58376,7 +58722,7 @@ function Dropdown(props, ref) {
|
|
|
58376
58722
|
visible = props.visible,
|
|
58377
58723
|
_props$trigger = props.trigger,
|
|
58378
58724
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58379
|
-
otherProps =
|
|
58725
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(props, Dropdown_excluded);
|
|
58380
58726
|
|
|
58381
58727
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58382
58728
|
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
@@ -58487,12 +58833,12 @@ function Dropdown(props, ref) {
|
|
|
58487
58833
|
triggerHideAction = ['click'];
|
|
58488
58834
|
}
|
|
58489
58835
|
|
|
58490
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58836
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
58491
58837
|
builtinPlacements: placements
|
|
58492
58838
|
}, otherProps), {}, {
|
|
58493
58839
|
prefixCls: prefixCls,
|
|
58494
58840
|
ref: triggerRef,
|
|
58495
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58841
|
+
popupClassName: classnames_default()(overlayClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58496
58842
|
popupStyle: overlayStyle,
|
|
58497
58843
|
action: trigger,
|
|
58498
58844
|
showAction: showAction,
|
|
@@ -58696,14 +59042,14 @@ function OperationNode(_ref, ref) {
|
|
|
58696
59042
|
}
|
|
58697
59043
|
}, [open]); // ========================= Render =========================
|
|
58698
59044
|
|
|
58699
|
-
var moreStyle =
|
|
59045
|
+
var moreStyle = defineProperty_defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
58700
59046
|
|
|
58701
59047
|
if (!tabs.length) {
|
|
58702
59048
|
moreStyle.visibility = 'hidden';
|
|
58703
59049
|
moreStyle.order = 1;
|
|
58704
59050
|
}
|
|
58705
59051
|
|
|
58706
|
-
var overlayClassName = classnames_default()(
|
|
59052
|
+
var overlayClassName = classnames_default()(defineProperty_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
58707
59053
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
58708
59054
|
prefixCls: dropdownPrefix,
|
|
58709
59055
|
overlay: menu,
|
|
@@ -59028,7 +59374,7 @@ function TabNavList(props, ref) {
|
|
|
59028
59374
|
var innerAddButtonRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
59029
59375
|
|
|
59030
59376
|
var _useRefs = useRefs(),
|
|
59031
|
-
_useRefs2 =
|
|
59377
|
+
_useRefs2 = esm_slicedToArray_slicedToArray(_useRefs, 2),
|
|
59032
59378
|
getBtnRef = _useRefs2[0],
|
|
59033
59379
|
removeBtnRef = _useRefs2[1];
|
|
59034
59380
|
|
|
@@ -59041,7 +59387,7 @@ function TabNavList(props, ref) {
|
|
|
59041
59387
|
});
|
|
59042
59388
|
}
|
|
59043
59389
|
}),
|
|
59044
|
-
_useSyncState2 =
|
|
59390
|
+
_useSyncState2 = esm_slicedToArray_slicedToArray(_useSyncState, 2),
|
|
59045
59391
|
transformLeft = _useSyncState2[0],
|
|
59046
59392
|
setTransformLeft = _useSyncState2[1];
|
|
59047
59393
|
|
|
@@ -59052,42 +59398,42 @@ function TabNavList(props, ref) {
|
|
|
59052
59398
|
});
|
|
59053
59399
|
}
|
|
59054
59400
|
}),
|
|
59055
|
-
_useSyncState4 =
|
|
59401
|
+
_useSyncState4 = esm_slicedToArray_slicedToArray(_useSyncState3, 2),
|
|
59056
59402
|
transformTop = _useSyncState4[0],
|
|
59057
59403
|
setTransformTop = _useSyncState4[1];
|
|
59058
59404
|
|
|
59059
59405
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
59060
|
-
_useState2 =
|
|
59406
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
59061
59407
|
wrapperScrollWidth = _useState2[0],
|
|
59062
59408
|
setWrapperScrollWidth = _useState2[1];
|
|
59063
59409
|
|
|
59064
59410
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
59065
|
-
_useState4 =
|
|
59411
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
59066
59412
|
wrapperScrollHeight = _useState4[0],
|
|
59067
59413
|
setWrapperScrollHeight = _useState4[1];
|
|
59068
59414
|
|
|
59069
59415
|
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
59070
|
-
_useState6 =
|
|
59416
|
+
_useState6 = esm_slicedToArray_slicedToArray(_useState5, 2),
|
|
59071
59417
|
wrapperWidth = _useState6[0],
|
|
59072
59418
|
setWrapperWidth = _useState6[1];
|
|
59073
59419
|
|
|
59074
59420
|
var _useState7 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
59075
|
-
_useState8 =
|
|
59421
|
+
_useState8 = esm_slicedToArray_slicedToArray(_useState7, 2),
|
|
59076
59422
|
wrapperHeight = _useState8[0],
|
|
59077
59423
|
setWrapperHeight = _useState8[1];
|
|
59078
59424
|
|
|
59079
59425
|
var _useState9 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
59080
|
-
_useState10 =
|
|
59426
|
+
_useState10 = esm_slicedToArray_slicedToArray(_useState9, 2),
|
|
59081
59427
|
addWidth = _useState10[0],
|
|
59082
59428
|
setAddWidth = _useState10[1];
|
|
59083
59429
|
|
|
59084
59430
|
var _useState11 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
59085
|
-
_useState12 =
|
|
59431
|
+
_useState12 = esm_slicedToArray_slicedToArray(_useState11, 2),
|
|
59086
59432
|
addHeight = _useState12[0],
|
|
59087
59433
|
setAddHeight = _useState12[1];
|
|
59088
59434
|
|
|
59089
59435
|
var _useRafState = useRafState(new Map()),
|
|
59090
|
-
_useRafState2 =
|
|
59436
|
+
_useRafState2 = esm_slicedToArray_slicedToArray(_useRafState, 2),
|
|
59091
59437
|
tabSizes = _useRafState2[0],
|
|
59092
59438
|
setTabSizes = _useRafState2[1];
|
|
59093
59439
|
|
|
@@ -59124,7 +59470,7 @@ function TabNavList(props, ref) {
|
|
|
59124
59470
|
var touchMovingRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
59125
59471
|
|
|
59126
59472
|
var _useState13 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59127
|
-
_useState14 =
|
|
59473
|
+
_useState14 = esm_slicedToArray_slicedToArray(_useState13, 2),
|
|
59128
59474
|
lockAnimation = _useState14[0],
|
|
59129
59475
|
setLockAnimation = _useState14[1];
|
|
59130
59476
|
|
|
@@ -59235,7 +59581,7 @@ function TabNavList(props, ref) {
|
|
|
59235
59581
|
}, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
59236
59582
|
tabs: tabs
|
|
59237
59583
|
})),
|
|
59238
|
-
_useVisibleRange2 =
|
|
59584
|
+
_useVisibleRange2 = esm_slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
59239
59585
|
visibleStart = _useVisibleRange2[0],
|
|
59240
59586
|
visibleEnd = _useVisibleRange2[1];
|
|
59241
59587
|
|
|
@@ -59327,7 +59673,7 @@ function TabNavList(props, ref) {
|
|
|
59327
59673
|
var hiddenTabs = [].concat(_toConsumableArray(startHiddenTabs), _toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
59328
59674
|
|
|
59329
59675
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59330
|
-
_useState16 =
|
|
59676
|
+
_useState16 = esm_slicedToArray_slicedToArray(_useState15, 2),
|
|
59331
59677
|
inkStyle = _useState16[0],
|
|
59332
59678
|
setInkStyle = _useState16[1];
|
|
59333
59679
|
|
|
@@ -59504,7 +59850,7 @@ function TabPane(_ref) {
|
|
|
59504
59850
|
children = _ref.children;
|
|
59505
59851
|
|
|
59506
59852
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(forceRender),
|
|
59507
|
-
_React$useState2 =
|
|
59853
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
59508
59854
|
visited = _React$useState2[0],
|
|
59509
59855
|
setVisited = _React$useState2[1];
|
|
59510
59856
|
|
|
@@ -59641,7 +59987,7 @@ function Tabs(_ref, ref) {
|
|
|
59641
59987
|
|
|
59642
59988
|
|
|
59643
59989
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
59644
|
-
_useState2 =
|
|
59990
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
59645
59991
|
mobile = _useState2[0],
|
|
59646
59992
|
setMobile = _useState2[1];
|
|
59647
59993
|
|
|
@@ -59658,7 +60004,7 @@ function Tabs(_ref, ref) {
|
|
|
59658
60004
|
value: activeKey,
|
|
59659
60005
|
defaultValue: defaultActiveKey
|
|
59660
60006
|
}),
|
|
59661
|
-
_useMergedState2 =
|
|
60007
|
+
_useMergedState2 = esm_slicedToArray_slicedToArray(_useMergedState, 2),
|
|
59662
60008
|
mergedActiveKey = _useMergedState2[0],
|
|
59663
60009
|
setMergedActiveKey = _useMergedState2[1];
|
|
59664
60010
|
|
|
@@ -59667,7 +60013,7 @@ function Tabs(_ref, ref) {
|
|
|
59667
60013
|
return tab.key === mergedActiveKey;
|
|
59668
60014
|
});
|
|
59669
60015
|
}),
|
|
59670
|
-
_useState4 =
|
|
60016
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
59671
60017
|
activeIndex = _useState4[0],
|
|
59672
60018
|
setActiveIndex = _useState4[1]; // Reset active key if not exist anymore
|
|
59673
60019
|
|
|
@@ -59692,7 +60038,7 @@ function Tabs(_ref, ref) {
|
|
|
59692
60038
|
var _useMergedState3 = useControlledState(null, {
|
|
59693
60039
|
value: id
|
|
59694
60040
|
}),
|
|
59695
|
-
_useMergedState4 =
|
|
60041
|
+
_useMergedState4 = esm_slicedToArray_slicedToArray(_useMergedState3, 2),
|
|
59696
60042
|
mergedId = _useMergedState4[0],
|
|
59697
60043
|
setMergedId = _useMergedState4[1];
|
|
59698
60044
|
|
|
@@ -59909,7 +60255,7 @@ var Pager = function Pager(props) {
|
|
|
59909
60255
|
var _classNames;
|
|
59910
60256
|
|
|
59911
60257
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
59912
|
-
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {},
|
|
60258
|
+
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-active"), props.active), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-disabled"), !props.page), defineProperty_defineProperty(_classNames, props.className, !!props.className), _classNames));
|
|
59913
60259
|
|
|
59914
60260
|
var handleClick = function handleClick() {
|
|
59915
60261
|
props.onClick(props.page);
|
|
@@ -59954,14 +60300,14 @@ var Pager = function Pager(props) {
|
|
|
59954
60300
|
|
|
59955
60301
|
|
|
59956
60302
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
59957
|
-
|
|
60303
|
+
inherits_inherits(Options, _React$Component);
|
|
59958
60304
|
|
|
59959
|
-
var _super =
|
|
60305
|
+
var _super = createSuper_createSuper(Options);
|
|
59960
60306
|
|
|
59961
60307
|
function Options() {
|
|
59962
60308
|
var _this;
|
|
59963
60309
|
|
|
59964
|
-
|
|
60310
|
+
classCallCheck_classCallCheck(this, Options);
|
|
59965
60311
|
|
|
59966
60312
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59967
60313
|
args[_key] = arguments[_key];
|
|
@@ -60027,7 +60373,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
60027
60373
|
return _this;
|
|
60028
60374
|
}
|
|
60029
60375
|
|
|
60030
|
-
|
|
60376
|
+
createClass_createClass(Options, [{
|
|
60031
60377
|
key: "getValidValue",
|
|
60032
60378
|
value: function getValidValue() {
|
|
60033
60379
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -60926,7 +61272,7 @@ var responsiveObserve = {
|
|
|
60926
61272
|
|
|
60927
61273
|
function useBreakpoint() {
|
|
60928
61274
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
60929
|
-
_useState2 =
|
|
61275
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
60930
61276
|
screens = _useState2[0],
|
|
60931
61277
|
setScreens = _useState2[1];
|
|
60932
61278
|
|
|
@@ -61382,9 +61728,9 @@ var SvgVideoMobile = function SvgVideoMobile(props) {
|
|
|
61382
61728
|
};
|
|
61383
61729
|
|
|
61384
61730
|
/* harmony default export */ var video_mobile = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuMzMzOTggMi4zMzM5OEM5LjY1NjE2IDIuMzMzOTggOS45MTczMiAyLjU5NTE1IDkuOTE3MzIgMi45MTczMlY1LjM2NzMyTDEyLjk1ODQgMy4yMzg1N0MxMy4wOTA0IDMuMTQ2MTkgMTMuMjcyMiAzLjE3ODI4IDEzLjM2NDYgMy4zMTAyNUMxMy4zOTg5IDMuMzU5MjcgMTMuNDE3MyAzLjQxNzY3IDEzLjQxNzMgMy40Nzc1MVYxMC41MjM4QzEzLjQxNzMgMTAuNjg0OSAxMy4yODY3IDEwLjgxNTUgMTMuMTI1NyAxMC44MTU1QzEzLjA2NTggMTAuODE1NSAxMy4wMDc0IDEwLjc5NyAxMi45NTg0IDEwLjc2MjdMOS45MTczMiA4LjYzMzk4VjExLjA4NEM5LjkxNzMyIDExLjQwNjIgOS42NTYxNiAxMS42NjczIDkuMzMzOTggMTEuNjY3M0gxLjE2NzMyQzAuODQ1MTU0IDExLjY2NzMgMC41ODM5ODQgMTEuNDA2MiAwLjU4Mzk4NCAxMS4wODRWMi45MTczMkMwLjU4Mzk4NCAyLjU5NTE1IDAuODQ1MTU0IDIuMzMzOTggMS4xNjczMiAyLjMzMzk4SDkuMzMzOThaTTguNzUwNjUgMy41MDA2NUgxLjc1MDY1VjEwLjUwMDdIOC43NTA2NVYzLjUwMDY1Wk00LjMxNzMyIDUuMTUwNzFDNC4zNjE2OSA1LjE1MDcxIDQuNDA1MTUgNS4xNjMzNiA0LjQ0MjU5IDUuMTg3MThMNi45ODI5OCA2LjgwMzc4QzcuMDkxNzEgNi44NzI5NiA3LjEyMzczIDcuMDE3MjIgNy4wNTQ1NSA3LjEyNTk1QzcuMDM2MjMgNy4xNTQ3MSA3LjAxMTc5IDcuMTc5MTUgNi45ODI5OCA3LjE5NzUzTDQuNDQyNTkgOC44MTQxMkM0LjMzMzg3IDguODgzMyA0LjE4OTY1IDguODUxMjggNC4xMjA0NyA4Ljc0MjU0QzQuMDk2NjQgOC43MDUwOSA0LjA4Mzk4IDguNjYxNjMgNC4wODM5OCA4LjYxNzI0VjUuMzg0MDRDNC4wODM5OCA1LjI1NTE4IDQuMTg4NDUgNS4xNTA3MSA0LjMxNzMyIDUuMTUwNzFaTTEyLjI1MDcgNS4xNTgwOEw5LjkxNzMyIDYuNzkxMjNWNy4yMTAwN0wxMi4yNTA3IDguODQzMjNWNS4xNTgwOFoiIGZpbGw9IiM5OTk5OTkiLz4KPC9zdmc+Cg==");
|
|
61385
|
-
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[4]!./src/list/
|
|
61386
|
-
var MobileListItem_module = __webpack_require__(
|
|
61387
|
-
;// CONCATENATED MODULE: ./src/list/
|
|
61731
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[4]!./src/list/mobile/MobileListItem.module.less
|
|
61732
|
+
var MobileListItem_module = __webpack_require__(4975);
|
|
61733
|
+
;// CONCATENATED MODULE: ./src/list/mobile/MobileListItem.module.less
|
|
61388
61734
|
|
|
61389
61735
|
|
|
61390
61736
|
|
|
@@ -61411,7 +61757,7 @@ var MobileListItem_module_update = injectStylesIntoStyleTag_default()(MobileList
|
|
|
61411
61757
|
|
|
61412
61758
|
|
|
61413
61759
|
|
|
61414
|
-
/* harmony default export */ var
|
|
61760
|
+
/* harmony default export */ var mobile_MobileListItem_module = (MobileListItem_module/* default */.Z && MobileListItem_module/* default.locals */.Z.locals ? MobileListItem_module/* default.locals */.Z.locals : undefined);
|
|
61415
61761
|
|
|
61416
61762
|
;// CONCATENATED MODULE: ./src/list/ListItem/liveStatus/img/progress.svg
|
|
61417
61763
|
var progress_path, progress_path2, progress_path3;
|
|
@@ -61784,9 +62130,9 @@ function Action_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
61784
62130
|
|
|
61785
62131
|
|
|
61786
62132
|
var Actions = {
|
|
61787
|
-
1: '
|
|
62133
|
+
1: '进入',
|
|
61788
62134
|
// 直播中 或者开播前15min
|
|
61789
|
-
2: '
|
|
62135
|
+
2: '查看',
|
|
61790
62136
|
// 回放
|
|
61791
62137
|
3: '预约',
|
|
61792
62138
|
// 预告 且开播时间大于 15min
|
|
@@ -61797,6 +62143,7 @@ function Action(_ref) {
|
|
|
61797
62143
|
|
|
61798
62144
|
var data = _ref.data,
|
|
61799
62145
|
subscription = _ref.subscription,
|
|
62146
|
+
less15Minutes = _ref.less15Minutes,
|
|
61800
62147
|
onActionDetailClick = _ref.onActionDetailClick,
|
|
61801
62148
|
handleLogin = _ref.handleLogin,
|
|
61802
62149
|
isLogin = _ref.isLogin,
|
|
@@ -61817,6 +62164,12 @@ function Action(_ref) {
|
|
|
61817
62164
|
actionNum = 2;
|
|
61818
62165
|
} else {
|
|
61819
62166
|
// status = 0
|
|
62167
|
+
if (less15Minutes) {
|
|
62168
|
+
actionNum = 1;
|
|
62169
|
+
return actionNum;
|
|
62170
|
+
} // 如果超过了开播时间,不管有没有预约,都直接进入直播
|
|
62171
|
+
|
|
62172
|
+
|
|
61820
62173
|
// 如果超过了开播时间,不管有没有预约,都直接进入直播
|
|
61821
62174
|
var now = new Date().getTime();
|
|
61822
62175
|
var begin = new Date(beginTime).getTime();
|
|
@@ -61945,7 +62298,7 @@ function Action(_ref) {
|
|
|
61945
62298
|
onClick: handleBtnClick
|
|
61946
62299
|
}, Actions[curAction]);
|
|
61947
62300
|
}
|
|
61948
|
-
;// CONCATENATED MODULE: ./src/list/
|
|
62301
|
+
;// CONCATENATED MODULE: ./src/list/mobile/MobileListItem.jsx
|
|
61949
62302
|
|
|
61950
62303
|
|
|
61951
62304
|
function MobileListItem_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -61983,7 +62336,6 @@ function MobileListItem_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr
|
|
|
61983
62336
|
|
|
61984
62337
|
|
|
61985
62338
|
|
|
61986
|
-
|
|
61987
62339
|
var getLiveStatus = function getLiveStatus(item) {
|
|
61988
62340
|
var _ref = item || {},
|
|
61989
62341
|
startTime = _ref.begin_time,
|
|
@@ -62002,6 +62354,8 @@ var getLiveStatus = function getLiveStatus(item) {
|
|
|
62002
62354
|
|
|
62003
62355
|
function MobileListItem(_ref2) {
|
|
62004
62356
|
var propData = _ref2.data,
|
|
62357
|
+
_ref2$liveExt = _ref2.liveExt,
|
|
62358
|
+
liveExt = _ref2$liveExt === void 0 ? {} : _ref2$liveExt,
|
|
62005
62359
|
themeName = _ref2.themeName,
|
|
62006
62360
|
subscription = _ref2.subscription,
|
|
62007
62361
|
onDetailClick = _ref2.onDetailClick,
|
|
@@ -62050,47 +62404,24 @@ function MobileListItem(_ref2) {
|
|
|
62050
62404
|
};
|
|
62051
62405
|
}();
|
|
62052
62406
|
|
|
62053
|
-
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(
|
|
62407
|
+
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(dayjs_min_default()(data.begin_time).diff(dayjs_min_default()(), 'minute') < 15 && dayjs_min_default()(data.begin_time).diff(dayjs_min_default()(), 'minute') > 0),
|
|
62054
62408
|
_useState6 = MobileListItem_slicedToArray(_useState5, 2),
|
|
62055
|
-
|
|
62056
|
-
|
|
62409
|
+
less15Minutes = _useState6[0],
|
|
62410
|
+
setLess15Minutes = _useState6[1];
|
|
62057
62411
|
|
|
62058
|
-
|
|
62059
|
-
MobileListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
62060
|
-
var res;
|
|
62412
|
+
var handleDetailClick = /*#__PURE__*/function () {
|
|
62413
|
+
var _ref4 = MobileListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
62061
62414
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
62062
62415
|
while (1) {
|
|
62063
62416
|
switch (_context2.prev = _context2.next) {
|
|
62064
|
-
case 0:
|
|
62065
|
-
_context2.next = 2;
|
|
62066
|
-
return getResourceLikes(liveId);
|
|
62067
|
-
|
|
62068
|
-
case 2:
|
|
62069
|
-
res = _context2.sent;
|
|
62070
|
-
setLiveExt(res || {});
|
|
62071
|
-
|
|
62072
|
-
case 4:
|
|
62073
|
-
case "end":
|
|
62074
|
-
return _context2.stop();
|
|
62075
|
-
}
|
|
62076
|
-
}
|
|
62077
|
-
}, _callee2);
|
|
62078
|
-
}))();
|
|
62079
|
-
}, []);
|
|
62080
|
-
|
|
62081
|
-
var handleDetailClick = /*#__PURE__*/function () {
|
|
62082
|
-
var _ref5 = MobileListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3() {
|
|
62083
|
-
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
62084
|
-
while (1) {
|
|
62085
|
-
switch (_context3.prev = _context3.next) {
|
|
62086
62417
|
case 0:
|
|
62087
62418
|
if (!(data.login && !isLogin)) {
|
|
62088
|
-
|
|
62419
|
+
_context2.next = 3;
|
|
62089
62420
|
break;
|
|
62090
62421
|
}
|
|
62091
62422
|
|
|
62092
62423
|
handleLogin(data);
|
|
62093
|
-
return
|
|
62424
|
+
return _context2.abrupt("return");
|
|
62094
62425
|
|
|
62095
62426
|
case 3:
|
|
62096
62427
|
if (onDetailClick) {
|
|
@@ -62101,14 +62432,14 @@ function MobileListItem(_ref2) {
|
|
|
62101
62432
|
|
|
62102
62433
|
case 4:
|
|
62103
62434
|
case "end":
|
|
62104
|
-
return
|
|
62435
|
+
return _context2.stop();
|
|
62105
62436
|
}
|
|
62106
62437
|
}
|
|
62107
|
-
},
|
|
62438
|
+
}, _callee2);
|
|
62108
62439
|
}));
|
|
62109
62440
|
|
|
62110
62441
|
return function handleDetailClick() {
|
|
62111
|
-
return
|
|
62442
|
+
return _ref4.apply(this, arguments);
|
|
62112
62443
|
};
|
|
62113
62444
|
}();
|
|
62114
62445
|
|
|
@@ -62116,60 +62447,64 @@ function MobileListItem(_ref2) {
|
|
|
62116
62447
|
if (liveStatus === 2 || liveStatus === 3 || liveStatus === 1 || countDownFinish) {
|
|
62117
62448
|
var timeLabel = "".concat(beginAt.format('YYYY/MM/DD HH:mm'), " \u5F00\u64AD");
|
|
62118
62449
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62119
|
-
className:
|
|
62450
|
+
className: mobile_MobileListItem_module.mobileMetaText
|
|
62120
62451
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62121
62452
|
src: video_mobile,
|
|
62122
|
-
className:
|
|
62453
|
+
className: mobile_MobileListItem_module.mobileMetaIcon,
|
|
62123
62454
|
alt: ""
|
|
62124
62455
|
}), timeLabel);
|
|
62125
62456
|
}
|
|
62126
62457
|
|
|
62127
62458
|
if (liveStatus === 0) {
|
|
62128
62459
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62129
|
-
className:
|
|
62460
|
+
className: mobile_MobileListItem_module.mobileMetaText
|
|
62130
62461
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("span", {
|
|
62131
|
-
className:
|
|
62462
|
+
className: mobile_MobileListItem_module.countDownLabel
|
|
62132
62463
|
}, "\u8DDD\u5F00\u59CB:"), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(ListItem_LiveCountDown, {
|
|
62133
62464
|
key: data.live_id,
|
|
62134
62465
|
endTime: dayjs_min_default()(data.begin_time).valueOf(),
|
|
62135
62466
|
onFinish: handleCountDownFinish,
|
|
62136
|
-
|
|
62467
|
+
onLess15Minutes: function onLess15Minutes() {
|
|
62468
|
+
return setLess15Minutes(true);
|
|
62469
|
+
},
|
|
62470
|
+
className: mobile_MobileListItem_module.countDown
|
|
62137
62471
|
}));
|
|
62138
62472
|
}
|
|
62139
62473
|
};
|
|
62140
62474
|
|
|
62141
62475
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62142
|
-
className: classnames_default()(
|
|
62476
|
+
className: classnames_default()(mobile_MobileListItem_module.mobileContainer, themeName),
|
|
62143
62477
|
onClick: handleDetailClick
|
|
62144
62478
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62145
|
-
className:
|
|
62479
|
+
className: mobile_MobileListItem_module.mobileCoverWrap
|
|
62146
62480
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(component_Avatar, {
|
|
62147
62481
|
src: coverUrl || live,
|
|
62148
62482
|
errorImg: live,
|
|
62149
|
-
className:
|
|
62483
|
+
className: mobile_MobileListItem_module.mobileCover
|
|
62150
62484
|
})), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62151
|
-
className:
|
|
62485
|
+
className: mobile_MobileListItem_module.mobileContent
|
|
62152
62486
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62153
|
-
className:
|
|
62487
|
+
className: mobile_MobileListItem_module.mobileTitleRow
|
|
62154
62488
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(liveStatus_LiveStatus, {
|
|
62155
62489
|
status: liveStatus,
|
|
62156
|
-
className:
|
|
62490
|
+
className: mobile_MobileListItem_module.mobileStatusTag
|
|
62157
62491
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("span", {
|
|
62158
|
-
className:
|
|
62492
|
+
className: mobile_MobileListItem_module.mobileTitle
|
|
62159
62493
|
}, liveName)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62160
|
-
className:
|
|
62494
|
+
className: mobile_MobileListItem_module.mobileMetaRow
|
|
62161
62495
|
}, renderStatusText()), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62162
|
-
className:
|
|
62496
|
+
className: mobile_MobileListItem_module.mobileFooterRow
|
|
62163
62497
|
}, liveExt.total_uv ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62164
|
-
className:
|
|
62498
|
+
className: mobile_MobileListItem_module.mobileHeat
|
|
62165
62499
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62166
62500
|
src: fire_fill,
|
|
62167
|
-
className:
|
|
62501
|
+
className: mobile_MobileListItem_module.mobileHeatIcon,
|
|
62168
62502
|
alt: ""
|
|
62169
62503
|
}), formatUVCount(liveExt.total_uv || 0)) : null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62170
|
-
className:
|
|
62504
|
+
className: mobile_MobileListItem_module.mobileAction
|
|
62171
62505
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(Action, {
|
|
62172
62506
|
data: data,
|
|
62507
|
+
less15Minutes: less15Minutes,
|
|
62173
62508
|
subscription: subscription,
|
|
62174
62509
|
onActionDetailClick: handleDetailClick,
|
|
62175
62510
|
handleLogin: handleLogin,
|
|
@@ -62237,6 +62572,7 @@ function MobileLiveList(_ref) {
|
|
|
62237
62572
|
var loading = _ref.loading,
|
|
62238
62573
|
loadingMore = _ref.loadingMore,
|
|
62239
62574
|
list = _ref.list,
|
|
62575
|
+
liveExtMap = _ref.liveExtMap,
|
|
62240
62576
|
hasMore = _ref.hasMore,
|
|
62241
62577
|
onNextPage = _ref.onNextPage,
|
|
62242
62578
|
isPad = _ref.isPad,
|
|
@@ -62305,6 +62641,7 @@ function MobileLiveList(_ref) {
|
|
|
62305
62641
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(MobileListItem, {
|
|
62306
62642
|
themeName: themeName,
|
|
62307
62643
|
data: listItem,
|
|
62644
|
+
liveExt: liveExtMap[listItem.live_id] || {},
|
|
62308
62645
|
subscription: subscription,
|
|
62309
62646
|
onDetailClick: onDetailClick,
|
|
62310
62647
|
handleLogin: handleLogin,
|
|
@@ -62535,7 +62872,6 @@ function ListItem_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
62535
62872
|
|
|
62536
62873
|
|
|
62537
62874
|
|
|
62538
|
-
|
|
62539
62875
|
var ListItem_TagName = {
|
|
62540
62876
|
0: '直播预告',
|
|
62541
62877
|
1: '直播中',
|
|
@@ -62567,6 +62903,8 @@ function ListItem(_ref2) {
|
|
|
62567
62903
|
handleLogin = _ref2.handleLogin,
|
|
62568
62904
|
isLogin = _ref2.isLogin,
|
|
62569
62905
|
onSubscribe = _ref2.onSubscribe,
|
|
62906
|
+
_ref2$liveExt = _ref2.liveExt,
|
|
62907
|
+
liveExt = _ref2$liveExt === void 0 ? {} : _ref2$liveExt,
|
|
62570
62908
|
_ref2$viewMode = _ref2.viewMode,
|
|
62571
62909
|
viewMode = _ref2$viewMode === void 0 ? 'list' : _ref2$viewMode,
|
|
62572
62910
|
cardStyle = _ref2.cardStyle;
|
|
@@ -62577,51 +62915,33 @@ function ListItem(_ref2) {
|
|
|
62577
62915
|
setData = _useState2[1];
|
|
62578
62916
|
|
|
62579
62917
|
var liveId = data.live_id,
|
|
62580
|
-
liveName = data.live_name;
|
|
62918
|
+
liveName = data.live_name; // // mock
|
|
62919
|
+
// if (!data._xxx) {
|
|
62920
|
+
// data.begin_time = dayjs()
|
|
62921
|
+
// // .add(15, 'minute')
|
|
62922
|
+
// .add(15, 'second')
|
|
62923
|
+
// .valueOf()
|
|
62924
|
+
// data.end_time = dayjs()
|
|
62925
|
+
// .add(1, 'hour')
|
|
62926
|
+
// .valueOf()
|
|
62927
|
+
// }
|
|
62928
|
+
|
|
62581
62929
|
var coverUrl = (data === null || data === void 0 ? void 0 : data.cover_url) || live;
|
|
62582
62930
|
var liveStatus = ListItem_getLiveStatus(data);
|
|
62583
62931
|
|
|
62584
|
-
var
|
|
62585
|
-
|
|
62586
|
-
liveExt = _useState4[0],
|
|
62587
|
-
setLiveExt = _useState4[1];
|
|
62588
|
-
|
|
62589
|
-
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
62590
|
-
ListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
62591
|
-
var res;
|
|
62932
|
+
var handleDetailClick = /*#__PURE__*/function () {
|
|
62933
|
+
var _ref3 = ListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
62592
62934
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
62593
62935
|
while (1) {
|
|
62594
62936
|
switch (_context.prev = _context.next) {
|
|
62595
|
-
case 0:
|
|
62596
|
-
_context.next = 2;
|
|
62597
|
-
return getResourceLikes(liveId);
|
|
62598
|
-
|
|
62599
|
-
case 2:
|
|
62600
|
-
res = _context.sent;
|
|
62601
|
-
setLiveExt(res || {});
|
|
62602
|
-
|
|
62603
|
-
case 4:
|
|
62604
|
-
case "end":
|
|
62605
|
-
return _context.stop();
|
|
62606
|
-
}
|
|
62607
|
-
}
|
|
62608
|
-
}, _callee);
|
|
62609
|
-
}))();
|
|
62610
|
-
}, []);
|
|
62611
|
-
|
|
62612
|
-
var handleDetailClick = /*#__PURE__*/function () {
|
|
62613
|
-
var _ref4 = ListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
62614
|
-
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
62615
|
-
while (1) {
|
|
62616
|
-
switch (_context2.prev = _context2.next) {
|
|
62617
62937
|
case 0:
|
|
62618
62938
|
if (!(data.login && !isLogin)) {
|
|
62619
|
-
|
|
62939
|
+
_context.next = 3;
|
|
62620
62940
|
break;
|
|
62621
62941
|
}
|
|
62622
62942
|
|
|
62623
62943
|
handleLogin(data);
|
|
62624
|
-
return
|
|
62944
|
+
return _context.abrupt("return");
|
|
62625
62945
|
|
|
62626
62946
|
case 3:
|
|
62627
62947
|
if (onDetailClick) {
|
|
@@ -62633,14 +62953,14 @@ function ListItem(_ref2) {
|
|
|
62633
62953
|
|
|
62634
62954
|
case 4:
|
|
62635
62955
|
case "end":
|
|
62636
|
-
return
|
|
62956
|
+
return _context.stop();
|
|
62637
62957
|
}
|
|
62638
62958
|
}
|
|
62639
|
-
},
|
|
62959
|
+
}, _callee);
|
|
62640
62960
|
}));
|
|
62641
62961
|
|
|
62642
62962
|
return function handleDetailClick() {
|
|
62643
|
-
return
|
|
62963
|
+
return _ref3.apply(this, arguments);
|
|
62644
62964
|
};
|
|
62645
62965
|
}();
|
|
62646
62966
|
|
|
@@ -62834,6 +63154,7 @@ function list_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
62834
63154
|
|
|
62835
63155
|
|
|
62836
63156
|
|
|
63157
|
+
|
|
62837
63158
|
var PageSize = 12;
|
|
62838
63159
|
var ViewModes = {
|
|
62839
63160
|
LIST: 'list',
|
|
@@ -62920,6 +63241,11 @@ function PublicLiveList(_ref) {
|
|
|
62920
63241
|
viewMode = _useState18[0],
|
|
62921
63242
|
setViewMode = _useState18[1];
|
|
62922
63243
|
|
|
63244
|
+
var _useState19 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
63245
|
+
_useState20 = list_slicedToArray(_useState19, 2),
|
|
63246
|
+
liveExtMap = _useState20[0],
|
|
63247
|
+
setLiveExtMap = _useState20[1];
|
|
63248
|
+
|
|
62923
63249
|
var canSwitchView = !isMobile;
|
|
62924
63250
|
var effectiveViewMode = canSwitchView ? viewMode : ViewModes.LIST;
|
|
62925
63251
|
|
|
@@ -63014,86 +63340,7 @@ function PublicLiveList(_ref) {
|
|
|
63014
63340
|
|
|
63015
63341
|
setTotal(count || 0);
|
|
63016
63342
|
setLoading(false);
|
|
63017
|
-
setLoadingMore(false);
|
|
63018
|
-
// {
|
|
63019
|
-
// live_id: 'ac56674a-81cc-4401-8895-ccf1896fcfa0',
|
|
63020
|
-
// live_name: '推进整本书阅读课程化建设,打造书香教室111111',
|
|
63021
|
-
// lecture_user_id: 452641273747,
|
|
63022
|
-
// lecture_user_name: '李其',
|
|
63023
|
-
// begin_time: '2023-11-18T15:19:00.000+0800',
|
|
63024
|
-
// end_time: '2023-11-18T19:30:00.000+0800',
|
|
63025
|
-
// duration: null,
|
|
63026
|
-
// status:0,
|
|
63027
|
-
// type: 1,
|
|
63028
|
-
// view_replay: 1,
|
|
63029
|
-
// replay_url: 'https://cdncs.ykt.cbern.com.cn/v0.1/static/xedu_nd_meeting/live/64e8ccaacd42c00011712808/64e8ccaacd42c00011712808-1693377380963-upload-1.m3u8',
|
|
63030
|
-
// provide_record: 2,
|
|
63031
|
-
// conference_id: '807172129',
|
|
63032
|
-
// room_id: '64e8ccaacd42c00011712808',
|
|
63033
|
-
// chat_room_id: '6038005',
|
|
63034
|
-
// chat_room_convid: '4617293527729099756',
|
|
63035
|
-
// chat_enabled: false,
|
|
63036
|
-
// play_smart_link: 'https://x-link.ykt.eduyun.cn/smart_links/225041074225153?qrEventName=smartlink',
|
|
63037
|
-
// sub_type: 1,
|
|
63038
|
-
// video_url: 'https://cdncs.ykt.cbern.com.cn/v0.1/download?path=/xxuexiimbr/replays/25304756_1693380769228.mp4',
|
|
63039
|
-
// tenant_id: 416,
|
|
63040
|
-
// login: false,
|
|
63041
|
-
// description: null,
|
|
63042
|
-
// desc_pic_web_url: 'https://bdcs-file-1.ykt.cbern.com.cn/bd_x_live/%E5%AD%99%E7%8E%89%E7%BA%A2%E5%86%85%E5%AE%B9%E4%BB%8B%E7%BB%8D(6)_1692978325699.jpg',
|
|
63043
|
-
// desc_pic_mobile_url: 'https://bdcs-file-1.ykt.cbern.com.cn/bd_x_live/%E5%AD%99%E7%8E%89%E7%BA%A2%20%E6%89%8B%E6%9C%BA%E7%AB%AF_1692978330612.jpg',
|
|
63044
|
-
// cover_url: 'https://bdcs-file-1.ykt.cbern.com.cn/zxx/X-COURSE/416/1_1693400535645.jpg',
|
|
63045
|
-
// cover_pic_web_url: 'https://bdcs-file-1.ykt.cbern.com.cn/bd_x_live/%E5%AD%99%E7%8E%89%E7%BA%A2_1692978313015.jpg',
|
|
63046
|
-
// cover_pic_mobile_url: 'https://bdcs-file-1.ykt.cbern.com.cn/bd_x_live/%E5%AD%99%E7%8E%89%E7%BA%A2_1692978318463.jpg',
|
|
63047
|
-
// create_user_id: 452672293205,
|
|
63048
|
-
// create_time: '2023-08-25T23:45:47.000+0800',
|
|
63049
|
-
// first_begin_time: null,
|
|
63050
|
-
// scope_type: 'e_teacher_studio',
|
|
63051
|
-
// scope_id: '7294ef75-b01c-4a2e-af81-b32310dc8510',
|
|
63052
|
-
// scope_name: '孙玉红名师工作室',
|
|
63053
|
-
// scope_link: 'https://x-link.ykt.eduyun.cn/smart_links/146348054036481?qrEventName=smartlink',
|
|
63054
|
-
// scope_image: 'https://bdcs-file-2.ykt.cbern.com.cn/e_teacher_studio/b84ae1fb-9b36-441c-ba7f-5e739ca89669.jpg',
|
|
63055
|
-
// env: 'product',
|
|
63056
|
-
// chat_type: false,
|
|
63057
|
-
// discuss_chat_type: false,
|
|
63058
|
-
// comment_chat_room_id: null,
|
|
63059
|
-
// comment_chat_room_convid: null,
|
|
63060
|
-
// message_interval: 5,
|
|
63061
|
-
// bid: null,
|
|
63062
|
-
// replay_begin_time: '2023-08-31T10:00:00.000+0800',
|
|
63063
|
-
// replay_end_time: null,
|
|
63064
|
-
// view_replay_type: 0,
|
|
63065
|
-
// view_replay_name: null,
|
|
63066
|
-
// view_replay_url: null,
|
|
63067
|
-
// create_user_user_facade: {
|
|
63068
|
-
// user_id: 452672293205,
|
|
63069
|
-
// user_name: '康晓宇',
|
|
63070
|
-
// nick_name: null,
|
|
63071
|
-
// nick_name_full: null,
|
|
63072
|
-
// nick_name_short: null,
|
|
63073
|
-
// create_time: '2023-07-14T10:15:15.099+0800',
|
|
63074
|
-
// org_exinfo: {
|
|
63075
|
-
// node_id: 0,
|
|
63076
|
-
// node_name: '',
|
|
63077
|
-
// org_id: 594001860704,
|
|
63078
|
-
// org_name: null,
|
|
63079
|
-
// org_full_name: null,
|
|
63080
|
-
// org_user_code: '',
|
|
63081
|
-
// real_name: '康晓宇',
|
|
63082
|
-
// real_name_full: 'kangxiaoyu',
|
|
63083
|
-
// real_name_short: 'kxy'
|
|
63084
|
-
// },
|
|
63085
|
-
// email: null,
|
|
63086
|
-
// mobile: null,
|
|
63087
|
-
// avatar_url: 'http://uc-gateway.ykt.eduyun.cn/v1.1/users/452672293205/avatar_url?size=80&SDP-APP-ID=e5649925-441d-4a53-b525-51a2f1c4e0a8',
|
|
63088
|
-
// display_name: '康晓宇',
|
|
63089
|
-
// display_real_name: '康晓宇',
|
|
63090
|
-
// icon: 'http://uc-gateway.ykt.eduyun.cn/v1.1/users/452672293205/avatar_url?size=80&SDP-APP-ID=e5649925-441d-4a53-b525-51a2f1c4e0a8',
|
|
63091
|
-
// existed: true
|
|
63092
|
-
// }
|
|
63093
|
-
// }
|
|
63094
|
-
// ])
|
|
63095
|
-
// setTotal(1)
|
|
63096
|
-
// setLoading(false)
|
|
63343
|
+
setLoadingMore(false);
|
|
63097
63344
|
|
|
63098
63345
|
case 20:
|
|
63099
63346
|
case "end":
|
|
@@ -63106,7 +63353,79 @@ function PublicLiveList(_ref) {
|
|
|
63106
63353
|
}
|
|
63107
63354
|
|
|
63108
63355
|
getList();
|
|
63109
|
-
}, [page, status, refreshPage]);
|
|
63356
|
+
}, [page, status, refreshPage]); // 批量获取列表资源统计,按 item.live_id 建立映射供子项复用
|
|
63357
|
+
|
|
63358
|
+
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
63359
|
+
var ids = list_toConsumableArray(new Set((list || []).map(function (item) {
|
|
63360
|
+
return item === null || item === void 0 ? void 0 : item.live_id;
|
|
63361
|
+
}).filter(Boolean)));
|
|
63362
|
+
|
|
63363
|
+
if (!ids.length) {
|
|
63364
|
+
setLiveExtMap({});
|
|
63365
|
+
return;
|
|
63366
|
+
}
|
|
63367
|
+
|
|
63368
|
+
var canceled = false;
|
|
63369
|
+
|
|
63370
|
+
var loadStats = /*#__PURE__*/function () {
|
|
63371
|
+
var _ref2 = list_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
63372
|
+
var stats, nextMap, statList;
|
|
63373
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
63374
|
+
while (1) {
|
|
63375
|
+
switch (_context2.prev = _context2.next) {
|
|
63376
|
+
case 0:
|
|
63377
|
+
_context2.prev = 0;
|
|
63378
|
+
_context2.next = 3;
|
|
63379
|
+
return getResourceStat(ids);
|
|
63380
|
+
|
|
63381
|
+
case 3:
|
|
63382
|
+
stats = _context2.sent;
|
|
63383
|
+
|
|
63384
|
+
if (!canceled) {
|
|
63385
|
+
_context2.next = 6;
|
|
63386
|
+
break;
|
|
63387
|
+
}
|
|
63388
|
+
|
|
63389
|
+
return _context2.abrupt("return");
|
|
63390
|
+
|
|
63391
|
+
case 6:
|
|
63392
|
+
nextMap = {};
|
|
63393
|
+
statList = stats || [];
|
|
63394
|
+
statList.forEach(function (item) {
|
|
63395
|
+
if ((item === null || item === void 0 ? void 0 : item.id) !== undefined && (item === null || item === void 0 ? void 0 : item.id) !== null) {
|
|
63396
|
+
nextMap[item.id] = item;
|
|
63397
|
+
}
|
|
63398
|
+
});
|
|
63399
|
+
setLiveExtMap(nextMap);
|
|
63400
|
+
_context2.next = 15;
|
|
63401
|
+
break;
|
|
63402
|
+
|
|
63403
|
+
case 12:
|
|
63404
|
+
_context2.prev = 12;
|
|
63405
|
+
_context2.t0 = _context2["catch"](0);
|
|
63406
|
+
|
|
63407
|
+
if (!canceled) {
|
|
63408
|
+
setLiveExtMap({});
|
|
63409
|
+
}
|
|
63410
|
+
|
|
63411
|
+
case 15:
|
|
63412
|
+
case "end":
|
|
63413
|
+
return _context2.stop();
|
|
63414
|
+
}
|
|
63415
|
+
}
|
|
63416
|
+
}, _callee2, null, [[0, 12]]);
|
|
63417
|
+
}));
|
|
63418
|
+
|
|
63419
|
+
return function loadStats() {
|
|
63420
|
+
return _ref2.apply(this, arguments);
|
|
63421
|
+
};
|
|
63422
|
+
}();
|
|
63423
|
+
|
|
63424
|
+
loadStats();
|
|
63425
|
+
return function () {
|
|
63426
|
+
canceled = true;
|
|
63427
|
+
};
|
|
63428
|
+
}, [list]);
|
|
63110
63429
|
var themeName = (0,cjs/* getXEduThemeName */.gV)();
|
|
63111
63430
|
var hasMore = list.length < total;
|
|
63112
63431
|
|
|
@@ -63130,6 +63449,7 @@ function PublicLiveList(_ref) {
|
|
|
63130
63449
|
loading: loading,
|
|
63131
63450
|
loadingMore: loadingMore,
|
|
63132
63451
|
list: list,
|
|
63452
|
+
liveExtMap: liveExtMap,
|
|
63133
63453
|
hasMore: hasMore,
|
|
63134
63454
|
onNextPage: function onNextPage() {
|
|
63135
63455
|
return setPage(function (prev) {
|
|
@@ -63169,6 +63489,7 @@ function PublicLiveList(_ref) {
|
|
|
63169
63489
|
themeName: themeName,
|
|
63170
63490
|
isMobile: isMobile,
|
|
63171
63491
|
data: listItem,
|
|
63492
|
+
liveExt: liveExtMap[listItem.live_id] || {},
|
|
63172
63493
|
key: listItem.live_id,
|
|
63173
63494
|
subscription: subscription,
|
|
63174
63495
|
onDetailClick: onDetailClick,
|