@x-edu/live-player 0.0.36 → 0.0.37
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 +581 -838
- package/package.json +1 -1
|
@@ -2688,10 +2688,11 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2688
2688
|
|
|
2689
2689
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2690
2690
|
// Module
|
|
2691
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_action_DHsbc{font-size:14px;line-height:22px;color:#1e62ec;border-radius:144.889px;border:1px solid #1e62ec;width:88px;height:32px;display:flex;align-items:center;justify-content:center;margin-top:8px}.index-module_action_DHsbc:hover{color:#4079ef;border:1px solid #4079ef}.index-module_action-has-subscribe_LYNor{border:1px solid #b7ccf9!important;color:#b7ccf9!important}", ""]);
|
|
2691
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_action_DHsbc{font-size:14px;line-height:22px;color:#1e62ec;border-radius:144.889px;border:1px solid #1e62ec;width:88px;height:32px;display:flex;align-items:center;justify-content:center;margin-top:8px}.index-module_action_DHsbc:hover{color:#4079ef;border:1px solid #4079ef}.index-module_action-mobile_vR7Cq{width:72px;height:28px;font-size:12px;line-height:18px;border-radius:999px;margin-top:0}.index-module_action-has-subscribe_LYNor{border:1px solid #b7ccf9!important;color:#b7ccf9!important}", ""]);
|
|
2692
2692
|
// Exports
|
|
2693
2693
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2694
2694
|
"action": "index-module_action_DHsbc",
|
|
2695
|
+
"action-mobile": "index-module_action-mobile_vR7Cq",
|
|
2695
2696
|
"action-has-subscribe": "index-module_action-has-subscribe_LYNor"
|
|
2696
2697
|
};
|
|
2697
2698
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
@@ -2709,7 +2710,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2709
2710
|
|
|
2710
2711
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2711
2712
|
// Module
|
|
2712
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_2HydZ{padding:24px 0;margin:0 24px;display:flex;justify-content:flex-start;cursor:pointer}.index-module_container_2HydZ:first-child{border-top:none}.index-module_container_2HydZ .index-module_left_qKfes{border-radius:8px;position:relative}.index-module_container_2HydZ .index-module_left_qKfes .index-module_avatar_kO\\+gr{width:204px;height:120px;border-radius:8px;object-fit:cover;overflow:hidden}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag_6g0Vd{position:absolute;top:0;border-radius:8px 0;font-size:12px;line-height:12px;height:20px;padding:0 8px;display:flex;align-items:center;color:#fff}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag0_L-uaW{background-color:#ff7826}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag1_1Mqse,.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag3_8NDod{background-color:#1e62ec;padding:0 5px}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag1_1Mqse img,.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag3_8NDod img{transform:rotate(180deg);height:10px;width:10px;margin-right:5px}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag2_sEPZA{background-color:rgba(0,0,0,.6)}.index-module_container_2HydZ .index-module_right_LjXan{display:flex;flex-direction:column;justify-content:space-between;width:calc(100% - 228px);margin-right:24px}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_title_\\+g0nw{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;word-wrap:break-word;line-height:28px;-webkit-line-clamp:2;font-size:20px;font-weight:600;color:#333}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf{align-items:center}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_time_sEG7-{font-size:14px;color:#999;display:flex;align-items:center}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_time-icon_Rg1x0{width:16px;height:16px;color:#ccc;margin-right:4px}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_like_sty_Z780C{color:#999;display:flex;align-items:center;margin-left:40px}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_like_sty_Z780C .index-module_icon_bottom_jcWZ1{margin-right:30px;font-family:PingFang SC;font-size:14px;font-weight:400;line-height:22px;letter-spacing:0;text-align:left;display:flex;align-items:center}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_like_sty_Z780C .index-module_icon_bottom_jcWZ1 img{width:16px;height:16px;margin-right:5px;color:#ccc}.index-module_container_2HydZ.dark .index-module_title_\\+g0nw{color:#fff}.index-module_action_MHhqt,.index-module_container_2HydZ:hover .index-module_title_\\+g0nw{color:#1e62ec}.index-module_action_MHhqt{font-size:14px;line-height:22px;border-radius:144.889px;border:1px solid #1e62ec;width:88px;height:32px;display:flex;align-items:center;justify-content:center}.index-module_action-subscribe_CvlKL{background:#1e62ec;color:#fff}", ""]);
|
|
2713
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_2HydZ{padding:24px 0;margin:0 24px;display:flex;justify-content:flex-start;cursor:pointer}.index-module_container_2HydZ:first-child{border-top:none}.index-module_container_2HydZ .index-module_left_qKfes{border-radius:8px;position:relative}.index-module_container_2HydZ .index-module_left_qKfes .index-module_avatar_kO\\+gr{width:204px;height:120px;border-radius:8px;object-fit:cover;overflow:hidden}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag_6g0Vd{position:absolute;top:0;border-radius:8px 0;font-size:12px;line-height:12px;height:20px;padding:0 8px;display:flex;align-items:center;color:#fff}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag0_L-uaW{background-color:#ff7826}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag1_1Mqse,.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag3_8NDod{background-color:#1e62ec;padding:0 5px}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag1_1Mqse img,.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag3_8NDod img{transform:rotate(180deg);height:10px;width:10px;margin-right:5px}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag2_sEPZA{background-color:rgba(0,0,0,.6)}.index-module_container_2HydZ .index-module_right_LjXan{display:flex;flex-direction:column;justify-content:space-between;width:calc(100% - 228px);margin-right:24px}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_title_\\+g0nw{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;word-wrap:break-word;line-height:28px;-webkit-line-clamp:2;font-size:20px;font-weight:600;color:#333}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf{align-items:center}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_time_sEG7-{font-size:14px;color:#999;display:flex;align-items:center}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_time-icon_Rg1x0{width:16px;height:16px;color:#ccc;margin-right:4px}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_like_sty_Z780C{color:#999;display:flex;align-items:center;margin-left:40px}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_like_sty_Z780C .index-module_icon_bottom_jcWZ1{margin-right:30px;font-family:PingFang SC;font-size:14px;font-weight:400;line-height:22px;letter-spacing:0;text-align:left;display:flex;align-items:center}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_like_sty_Z780C .index-module_icon_bottom_jcWZ1 img{width:16px;height:16px;margin-right:5px;color:#ccc}.index-module_container_2HydZ.dark .index-module_title_\\+g0nw{color:#fff}.index-module_action_MHhqt,.index-module_container_2HydZ:hover .index-module_title_\\+g0nw{color:#1e62ec}.index-module_action_MHhqt{font-size:14px;line-height:22px;border-radius:144.889px;border:1px solid #1e62ec;width:88px;height:32px;display:flex;align-items:center;justify-content:center}.index-module_action-subscribe_CvlKL{background:#1e62ec;color:#fff}.index-module_mobileContainer_LgPFb{margin:0 0 12px 0;display:flex;flex-direction:column;gap:8px}.index-module_mobileContainer_LgPFb:last-child{border-bottom:none}.index-module_mobileTitle_uEAj9{font-size:16px;line-height:22px;font-weight:600;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.index-module_mobileCoverWrap_z0EDe{position:relative;width:100%;aspect-ratio:2;padding-top:50%;overflow:hidden}.index-module_mobileCover_eKVfP{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:8px;object-fit:cover;display:block}.index-module_mobileTag_7sgSF{position:absolute;top:8px;left:8px;border-radius:8px 0 8px 0;font-size:12px;line-height:20px;height:20px;padding:0 8px;display:flex;align-items:center;color:#fff}.index-module_mobileTag_7sgSF img{transform:rotate(180deg);height:10px;width:10px;margin-right:5px}.index-module_mobileTag0_j-\\+La{background-color:#ff7826}.index-module_mobileTag1_t66\\+f,.index-module_mobileTag3_Py0ta{background-color:#1e62ec}.index-module_mobileTag2_\\+57UZ{background-color:rgba(0,0,0,.6)}.index-module_mobileDescRow_TvOLE{display:flex;align-items:center;justify-content:space-between;gap:12px}.index-module_mobileMeta_zXJJe{flex-wrap:wrap;column-gap:12px;row-gap:4px;color:#666;font-size:12px;line-height:18px;flex:1}.index-module_mobileMeta_zXJJe,.index-module_mobileTime_ZiYD2{display:flex;align-items:center;min-width:0}.index-module_mobileTimeIcon_Z-jOL{width:14px;height:14px;margin-right:4px}.index-module_mobileTimeText_aBdDK{color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.index-module_mobileStat_kHrcC,.index-module_mobileTimeText_aBdDK{font-size:12px;line-height:18px}.index-module_mobileStat_kHrcC{display:flex;align-items:center;color:#999}.index-module_mobileStatIcon_yC\\+Ui{width:14px;height:14px;margin-right:4px}.index-module_mobileAction_sUU3p{flex-shrink:0}.index-module_mobileContainer_LgPFb.dark .index-module_mobileTitle_uEAj9{color:#fff}.index-module_mobileContainer_LgPFb.dark .index-module_mobileMeta_zXJJe,.index-module_mobileContainer_LgPFb.dark .index-module_mobileStat_kHrcC,.index-module_mobileContainer_LgPFb.dark .index-module_mobileTimeText_aBdDK{color:#ccc}", ""]);
|
|
2713
2714
|
// Exports
|
|
2714
2715
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2715
2716
|
"container": "index-module_container_2HydZ",
|
|
@@ -2729,7 +2730,24 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2729
2730
|
"like_sty": "index-module_like_sty_Z780C",
|
|
2730
2731
|
"icon_bottom": "index-module_icon_bottom_jcWZ1",
|
|
2731
2732
|
"action": "index-module_action_MHhqt",
|
|
2732
|
-
"action-subscribe": "index-module_action-subscribe_CvlKL"
|
|
2733
|
+
"action-subscribe": "index-module_action-subscribe_CvlKL",
|
|
2734
|
+
"mobileContainer": "index-module_mobileContainer_LgPFb",
|
|
2735
|
+
"mobileTitle": "index-module_mobileTitle_uEAj9",
|
|
2736
|
+
"mobileCoverWrap": "index-module_mobileCoverWrap_z0EDe",
|
|
2737
|
+
"mobileCover": "index-module_mobileCover_eKVfP",
|
|
2738
|
+
"mobileTag": "index-module_mobileTag_7sgSF",
|
|
2739
|
+
"mobileTag0": "index-module_mobileTag0_j-+La",
|
|
2740
|
+
"mobileTag1": "index-module_mobileTag1_t66+f",
|
|
2741
|
+
"mobileTag3": "index-module_mobileTag3_Py0ta",
|
|
2742
|
+
"mobileTag2": "index-module_mobileTag2_+57UZ",
|
|
2743
|
+
"mobileDescRow": "index-module_mobileDescRow_TvOLE",
|
|
2744
|
+
"mobileMeta": "index-module_mobileMeta_zXJJe",
|
|
2745
|
+
"mobileTime": "index-module_mobileTime_ZiYD2",
|
|
2746
|
+
"mobileTimeIcon": "index-module_mobileTimeIcon_Z-jOL",
|
|
2747
|
+
"mobileTimeText": "index-module_mobileTimeText_aBdDK",
|
|
2748
|
+
"mobileStat": "index-module_mobileStat_kHrcC",
|
|
2749
|
+
"mobileStatIcon": "index-module_mobileStatIcon_yC+Ui",
|
|
2750
|
+
"mobileAction": "index-module_mobileAction_sUU3p"
|
|
2733
2751
|
};
|
|
2734
2752
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2735
2753
|
|
|
@@ -2746,10 +2764,11 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2746
2764
|
|
|
2747
2765
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2748
2766
|
// Module
|
|
2749
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_y\\+him{max-width:1300px;margin:0 auto;padding:24px 24px 0 24px;width:956px}.index-module_container_y\\+him .fish-tabs-nav{margin-bottom:24px}.index-module_container_y\\+him .fish-tabs-nav:before{display:none}.index-module_container_y\\+him .fish-tabs-ink-bar{display:none}.index-module_container_y\\+him .fish-tabs-tab+.fish-tabs-tab{margin-left:0}.index-module_container_y\\+him .fish-tabs-tab{padding:9px 20px}.index-module_container_y\\+him .fish-tabs-tab-btn{font-size:14px;line-height:14px;color:#666}.index-module_container_y\\+him .fish-tabs-tab-active{border-radius:16px;background:var(--f-3-f-7-ff,#f3f7ff)}.index-module_container_y\\+him .fish-tabs-tab-active .fish-tabs-tab-btn{color:#1e62ec}.index-module_list_KQnlU{min-height:500px}", ""]);
|
|
2767
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_y\\+him{max-width:1300px;margin:0 auto;padding:24px 24px 0 24px;width:956px}.index-module_container_y\\+him .fish-tabs-nav{margin-bottom:24px}.index-module_container_y\\+him .fish-tabs-nav:before{display:none}.index-module_container_y\\+him .fish-tabs-ink-bar{display:none}.index-module_container_y\\+him .fish-tabs-tab+.fish-tabs-tab{margin-left:0}.index-module_container_y\\+him .fish-tabs-tab{padding:9px 20px}.index-module_container_y\\+him .fish-tabs-tab-btn{font-size:14px;line-height:14px;color:#666}.index-module_container_y\\+him .fish-tabs-tab-active{border-radius:16px;background:var(--f-3-f-7-ff,#f3f7ff)}.index-module_container_y\\+him .fish-tabs-tab-active .fish-tabs-tab-btn{color:#1e62ec}.index-module_container_y\\+him.index-module_mobile_fjd59{width:100%;padding:12px 12px 0 12px}.index-module_list_KQnlU{min-height:500px}", ""]);
|
|
2750
2768
|
// Exports
|
|
2751
2769
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2752
2770
|
"container": "index-module_container_y+him",
|
|
2771
|
+
"mobile": "index-module_mobile_fjd59",
|
|
2753
2772
|
"list": "index-module_list_KQnlU"
|
|
2754
2773
|
};
|
|
2755
2774
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
@@ -25714,13 +25733,6 @@ module.exports = styleTagTransform;
|
|
|
25714
25733
|
|
|
25715
25734
|
/***/ }),
|
|
25716
25735
|
|
|
25717
|
-
/***/ 5273:
|
|
25718
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25719
|
-
|
|
25720
|
-
module.exports = __webpack_require__(5666);
|
|
25721
|
-
|
|
25722
|
-
/***/ }),
|
|
25723
|
-
|
|
25724
25736
|
/***/ 3006:
|
|
25725
25737
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25726
25738
|
|
|
@@ -26758,8 +26770,10 @@ var config = {
|
|
|
26758
26770
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26759
26771
|
/* harmony export */ "GF": function() { return /* binding */ isInWX; },
|
|
26760
26772
|
/* harmony export */ "uJ": function() { return /* binding */ xElectron; },
|
|
26761
|
-
/* harmony export */ "IC": function() { return /* binding */ isInElectron; }
|
|
26773
|
+
/* harmony export */ "IC": function() { return /* binding */ isInElectron; },
|
|
26774
|
+
/* harmony export */ "Df": function() { return /* binding */ isInMobile; }
|
|
26762
26775
|
/* harmony export */ });
|
|
26776
|
+
/* unused harmony export inIpad */
|
|
26763
26777
|
var ua = window.navigator.userAgent.toLowerCase();
|
|
26764
26778
|
function isInWX() {
|
|
26765
26779
|
return ua.indexOf('micromessenger') > -1;
|
|
@@ -26769,6 +26783,20 @@ var _window = window,
|
|
|
26769
26783
|
xElectron = _window.xElectron;
|
|
26770
26784
|
|
|
26771
26785
|
var isInElectron = !!xElectron;
|
|
26786
|
+
function inIpad() {
|
|
26787
|
+
var _window$navigator;
|
|
26788
|
+
|
|
26789
|
+
var isIpad = navigator.userAgent.toLowerCase().indexOf('ipad') !== -1;
|
|
26790
|
+
|
|
26791
|
+
if (!isIpad && ua.match(/mac/) && ((_window$navigator = window.navigator) === null || _window$navigator === void 0 ? void 0 : _window$navigator.maxTouchPoints) > 2) {
|
|
26792
|
+
return true;
|
|
26793
|
+
}
|
|
26794
|
+
|
|
26795
|
+
return isIpad;
|
|
26796
|
+
}
|
|
26797
|
+
function isInMobile() {
|
|
26798
|
+
return inIpad() || window.navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
|
|
26799
|
+
}
|
|
26772
26800
|
|
|
26773
26801
|
/***/ }),
|
|
26774
26802
|
|
|
@@ -32827,150 +32855,6 @@ var video_style_update = injectStylesIntoStyleTag_default()(video_style/* defaul
|
|
|
32827
32855
|
;// CONCATENATED MODULE: ./node_modules/@sdp.nd/fish/es/video/style/index.js
|
|
32828
32856
|
|
|
32829
32857
|
|
|
32830
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
32831
|
-
function esm_extends_extends() {
|
|
32832
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
32833
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
32834
|
-
var source = arguments[i];
|
|
32835
|
-
|
|
32836
|
-
for (var key in source) {
|
|
32837
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32838
|
-
target[key] = source[key];
|
|
32839
|
-
}
|
|
32840
|
-
}
|
|
32841
|
-
}
|
|
32842
|
-
|
|
32843
|
-
return target;
|
|
32844
|
-
};
|
|
32845
|
-
|
|
32846
|
-
return esm_extends_extends.apply(this, arguments);
|
|
32847
|
-
}
|
|
32848
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
32849
|
-
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
32850
|
-
if (!(instance instanceof Constructor)) {
|
|
32851
|
-
throw new TypeError("Cannot call a class as a function");
|
|
32852
|
-
}
|
|
32853
|
-
}
|
|
32854
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
32855
|
-
function createClass_defineProperties(target, props) {
|
|
32856
|
-
for (var i = 0; i < props.length; i++) {
|
|
32857
|
-
var descriptor = props[i];
|
|
32858
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32859
|
-
descriptor.configurable = true;
|
|
32860
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
32861
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
32862
|
-
}
|
|
32863
|
-
}
|
|
32864
|
-
|
|
32865
|
-
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
32866
|
-
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
32867
|
-
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
32868
|
-
return Constructor;
|
|
32869
|
-
}
|
|
32870
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
32871
|
-
function assertThisInitialized_assertThisInitialized(self) {
|
|
32872
|
-
if (self === void 0) {
|
|
32873
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
32874
|
-
}
|
|
32875
|
-
|
|
32876
|
-
return self;
|
|
32877
|
-
}
|
|
32878
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
32879
|
-
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
32880
|
-
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
32881
|
-
o.__proto__ = p;
|
|
32882
|
-
return o;
|
|
32883
|
-
};
|
|
32884
|
-
|
|
32885
|
-
return setPrototypeOf_setPrototypeOf(o, p);
|
|
32886
|
-
}
|
|
32887
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
32888
|
-
|
|
32889
|
-
function inherits_inherits(subClass, superClass) {
|
|
32890
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
32891
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
32892
|
-
}
|
|
32893
|
-
|
|
32894
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
32895
|
-
constructor: {
|
|
32896
|
-
value: subClass,
|
|
32897
|
-
writable: true,
|
|
32898
|
-
configurable: true
|
|
32899
|
-
}
|
|
32900
|
-
});
|
|
32901
|
-
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
32902
|
-
}
|
|
32903
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
32904
|
-
function getPrototypeOf_getPrototypeOf(o) {
|
|
32905
|
-
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
32906
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
32907
|
-
};
|
|
32908
|
-
return getPrototypeOf_getPrototypeOf(o);
|
|
32909
|
-
}
|
|
32910
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
32911
|
-
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
32912
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
32913
|
-
if (Reflect.construct.sham) return false;
|
|
32914
|
-
if (typeof Proxy === "function") return true;
|
|
32915
|
-
|
|
32916
|
-
try {
|
|
32917
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
32918
|
-
return true;
|
|
32919
|
-
} catch (e) {
|
|
32920
|
-
return false;
|
|
32921
|
-
}
|
|
32922
|
-
}
|
|
32923
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
32924
|
-
function esm_typeof_typeof(obj) {
|
|
32925
|
-
"@babel/helpers - typeof";
|
|
32926
|
-
|
|
32927
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
32928
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
32929
|
-
return typeof obj;
|
|
32930
|
-
};
|
|
32931
|
-
} else {
|
|
32932
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
32933
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
32934
|
-
};
|
|
32935
|
-
}
|
|
32936
|
-
|
|
32937
|
-
return esm_typeof_typeof(obj);
|
|
32938
|
-
}
|
|
32939
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
32940
|
-
|
|
32941
|
-
|
|
32942
|
-
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
32943
|
-
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
32944
|
-
return call;
|
|
32945
|
-
} else if (call !== void 0) {
|
|
32946
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
32947
|
-
}
|
|
32948
|
-
|
|
32949
|
-
return assertThisInitialized_assertThisInitialized(self);
|
|
32950
|
-
}
|
|
32951
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
32952
|
-
|
|
32953
|
-
|
|
32954
|
-
|
|
32955
|
-
function createSuper_createSuper(Derived) {
|
|
32956
|
-
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
32957
|
-
return function _createSuperInternal() {
|
|
32958
|
-
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
32959
|
-
result;
|
|
32960
|
-
|
|
32961
|
-
if (hasNativeReflectConstruct) {
|
|
32962
|
-
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
32963
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
32964
|
-
} else {
|
|
32965
|
-
result = Super.apply(this, arguments);
|
|
32966
|
-
}
|
|
32967
|
-
|
|
32968
|
-
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
32969
|
-
};
|
|
32970
|
-
}
|
|
32971
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
32972
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
32973
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
32974
32858
|
;// CONCATENATED MODULE: external {"commonjs":"react-dom","commonjs2":"react-dom","root":"ReactDOM"}
|
|
32975
32859
|
var external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject = require("react-dom");
|
|
32976
32860
|
var external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject);
|
|
@@ -33046,14 +32930,14 @@ var videoCdnPrefix = '//gcdncs.101.com/v0.1/static/share/fish/videoplayer';
|
|
|
33046
32930
|
var defaultVideoUrl = getVideoUrl(videoCdnPrefix, video_version);
|
|
33047
32931
|
|
|
33048
32932
|
var Video = /*#__PURE__*/function (_React$Component) {
|
|
33049
|
-
|
|
32933
|
+
_inherits(Video, _React$Component);
|
|
33050
32934
|
|
|
33051
|
-
var _super =
|
|
32935
|
+
var _super = _createSuper(Video);
|
|
33052
32936
|
|
|
33053
32937
|
function Video() {
|
|
33054
32938
|
var _this;
|
|
33055
32939
|
|
|
33056
|
-
|
|
32940
|
+
_classCallCheck(this, Video);
|
|
33057
32941
|
|
|
33058
32942
|
_this = _super.apply(this, arguments);
|
|
33059
32943
|
_this.videoUrl = {}; // eslint-disable-next-line class-methods-use-this
|
|
@@ -33066,12 +32950,12 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
33066
32950
|
csOriginUrl = getVideoUrl(cdnPrefix, video_version);
|
|
33067
32951
|
}
|
|
33068
32952
|
|
|
33069
|
-
return
|
|
32953
|
+
return extends_extends(extends_extends({}, csOriginUrl), Video.url);
|
|
33070
32954
|
};
|
|
33071
32955
|
|
|
33072
32956
|
_this.loadVideoPlayer = function () {
|
|
33073
|
-
return __awaiter(
|
|
33074
|
-
return
|
|
32957
|
+
return __awaiter(_assertThisInitialized(_this), void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
32958
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33075
32959
|
while (1) {
|
|
33076
32960
|
switch (_context.prev = _context.next) {
|
|
33077
32961
|
case 0:
|
|
@@ -33121,7 +33005,7 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
33121
33005
|
return _this;
|
|
33122
33006
|
}
|
|
33123
33007
|
|
|
33124
|
-
|
|
33008
|
+
_createClass(Video, [{
|
|
33125
33009
|
key: "componentDidMount",
|
|
33126
33010
|
value: function componentDidMount() {
|
|
33127
33011
|
var _this2 = this;
|
|
@@ -33465,9 +33349,9 @@ function isSourceReady(_x) {
|
|
|
33465
33349
|
}
|
|
33466
33350
|
|
|
33467
33351
|
function _isSourceReady() {
|
|
33468
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33352
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(liveInfo) {
|
|
33469
33353
|
var newLiveInfo;
|
|
33470
|
-
return
|
|
33354
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33471
33355
|
while (1) {
|
|
33472
33356
|
switch (_context.prev = _context.next) {
|
|
33473
33357
|
case 0:
|
|
@@ -33644,12 +33528,12 @@ function usePullSource(_ref) {
|
|
|
33644
33528
|
}
|
|
33645
33529
|
|
|
33646
33530
|
function _checkLiveReadyInterval() {
|
|
33647
|
-
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33531
|
+
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
33648
33532
|
var i,
|
|
33649
33533
|
liveStatus,
|
|
33650
33534
|
isSourceReady,
|
|
33651
33535
|
_args = arguments;
|
|
33652
|
-
return
|
|
33536
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33653
33537
|
while (1) {
|
|
33654
33538
|
switch (_context.prev = _context.next) {
|
|
33655
33539
|
case 0:
|
|
@@ -33735,8 +33619,8 @@ function checkSourceReady(_x) {
|
|
|
33735
33619
|
}
|
|
33736
33620
|
|
|
33737
33621
|
function _checkSourceReady() {
|
|
33738
|
-
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33739
|
-
return
|
|
33622
|
+
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(url) {
|
|
33623
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
33740
33624
|
while (1) {
|
|
33741
33625
|
switch (_context2.prev = _context2.next) {
|
|
33742
33626
|
case 0:
|
|
@@ -33769,9 +33653,9 @@ function getLiveNewStatus(_x2) {
|
|
|
33769
33653
|
}
|
|
33770
33654
|
|
|
33771
33655
|
function _getLiveNewStatus() {
|
|
33772
|
-
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33656
|
+
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(liveInfo) {
|
|
33773
33657
|
var newLiveInfo;
|
|
33774
|
-
return
|
|
33658
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
33775
33659
|
while (1) {
|
|
33776
33660
|
switch (_context3.prev = _context3.next) {
|
|
33777
33661
|
case 0:
|
|
@@ -34295,8 +34179,8 @@ function AliPlayer(_ref) {
|
|
|
34295
34179
|
var aliPlayer;
|
|
34296
34180
|
|
|
34297
34181
|
var init = /*#__PURE__*/function () {
|
|
34298
|
-
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/
|
|
34299
|
-
return
|
|
34182
|
+
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
34183
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
34300
34184
|
while (1) {
|
|
34301
34185
|
switch (_context.prev = _context.next) {
|
|
34302
34186
|
case 0:
|
|
@@ -34421,21 +34305,6 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
34421
34305
|
// style dependencies
|
|
34422
34306
|
|
|
34423
34307
|
|
|
34424
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
34425
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
34426
|
-
if (key in obj) {
|
|
34427
|
-
Object.defineProperty(obj, key, {
|
|
34428
|
-
value: value,
|
|
34429
|
-
enumerable: true,
|
|
34430
|
-
configurable: true,
|
|
34431
|
-
writable: true
|
|
34432
|
-
});
|
|
34433
|
-
} else {
|
|
34434
|
-
obj[key] = value;
|
|
34435
|
-
}
|
|
34436
|
-
|
|
34437
|
-
return obj;
|
|
34438
|
-
}
|
|
34439
34308
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
34440
34309
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
34441
34310
|
if (Array.isArray(arr)) return arr;
|
|
@@ -34470,26 +34339,6 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
34470
34339
|
|
|
34471
34340
|
return _arr;
|
|
34472
34341
|
}
|
|
34473
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34474
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34475
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
34476
|
-
|
|
34477
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34478
|
-
arr2[i] = arr[i];
|
|
34479
|
-
}
|
|
34480
|
-
|
|
34481
|
-
return arr2;
|
|
34482
|
-
}
|
|
34483
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34484
|
-
|
|
34485
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34486
|
-
if (!o) return;
|
|
34487
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34488
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34489
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34490
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34491
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34492
|
-
}
|
|
34493
34342
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34494
34343
|
function nonIterableRest_nonIterableRest() {
|
|
34495
34344
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34500,7 +34349,7 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34500
34349
|
|
|
34501
34350
|
|
|
34502
34351
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34503
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
34352
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34504
34353
|
}
|
|
34505
34354
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34506
34355
|
var raf = function raf(callback) {
|
|
@@ -34727,27 +34576,6 @@ var cacheStyle = {};
|
|
|
34727
34576
|
}
|
|
34728
34577
|
}
|
|
34729
34578
|
});
|
|
34730
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34731
|
-
|
|
34732
|
-
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34733
|
-
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34734
|
-
}
|
|
34735
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34736
|
-
function iterableToArray_iterableToArray(iter) {
|
|
34737
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34738
|
-
}
|
|
34739
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34740
|
-
function nonIterableSpread_nonIterableSpread() {
|
|
34741
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34742
|
-
}
|
|
34743
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34744
|
-
|
|
34745
|
-
|
|
34746
|
-
|
|
34747
|
-
|
|
34748
|
-
function toConsumableArray_toConsumableArray(arr) {
|
|
34749
|
-
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34750
|
-
}
|
|
34751
34579
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34752
34580
|
|
|
34753
34581
|
|
|
@@ -34764,7 +34592,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34764
34592
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34765
34593
|
var _this = this;
|
|
34766
34594
|
|
|
34767
|
-
|
|
34595
|
+
_classCallCheck(this, ScrollLocker);
|
|
34768
34596
|
|
|
34769
34597
|
this.lockTarget = void 0;
|
|
34770
34598
|
this.options = void 0;
|
|
@@ -34812,7 +34640,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34812
34640
|
var options = _ref3.options;
|
|
34813
34641
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34814
34642
|
})) {
|
|
34815
|
-
locks = [].concat(
|
|
34643
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34816
34644
|
target: _this.lockTarget,
|
|
34817
34645
|
options: _this.options
|
|
34818
34646
|
}]);
|
|
@@ -34850,7 +34678,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34850
34678
|
container.className = addClassName.trim();
|
|
34851
34679
|
}
|
|
34852
34680
|
|
|
34853
|
-
locks = [].concat(
|
|
34681
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34854
34682
|
target: _this.lockTarget,
|
|
34855
34683
|
options: _this.options
|
|
34856
34684
|
}]);
|
|
@@ -34934,7 +34762,7 @@ var getParent = function getParent(getContainer) {
|
|
|
34934
34762
|
return getContainer();
|
|
34935
34763
|
}
|
|
34936
34764
|
|
|
34937
|
-
if (
|
|
34765
|
+
if (typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
34938
34766
|
return getContainer;
|
|
34939
34767
|
}
|
|
34940
34768
|
}
|
|
@@ -34943,14 +34771,14 @@ var getParent = function getParent(getContainer) {
|
|
|
34943
34771
|
};
|
|
34944
34772
|
|
|
34945
34773
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
34946
|
-
|
|
34774
|
+
_inherits(PortalWrapper, _React$Component);
|
|
34947
34775
|
|
|
34948
|
-
var _super =
|
|
34776
|
+
var _super = _createSuper(PortalWrapper);
|
|
34949
34777
|
|
|
34950
34778
|
function PortalWrapper(props) {
|
|
34951
34779
|
var _this;
|
|
34952
34780
|
|
|
34953
|
-
|
|
34781
|
+
_classCallCheck(this, PortalWrapper);
|
|
34954
34782
|
|
|
34955
34783
|
_this = _super.call(this, props);
|
|
34956
34784
|
_this.container = void 0;
|
|
@@ -35070,7 +34898,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35070
34898
|
return _this;
|
|
35071
34899
|
}
|
|
35072
34900
|
|
|
35073
|
-
|
|
34901
|
+
_createClass(PortalWrapper, [{
|
|
35074
34902
|
key: "componentDidMount",
|
|
35075
34903
|
value: function componentDidMount() {
|
|
35076
34904
|
var _this2 = this;
|
|
@@ -35138,46 +34966,6 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35138
34966
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
35139
34967
|
|
|
35140
34968
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
35141
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
35142
|
-
|
|
35143
|
-
|
|
35144
|
-
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
35145
|
-
var keys = Object.keys(object);
|
|
35146
|
-
|
|
35147
|
-
if (Object.getOwnPropertySymbols) {
|
|
35148
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
35149
|
-
|
|
35150
|
-
if (enumerableOnly) {
|
|
35151
|
-
symbols = symbols.filter(function (sym) {
|
|
35152
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
35153
|
-
});
|
|
35154
|
-
}
|
|
35155
|
-
|
|
35156
|
-
keys.push.apply(keys, symbols);
|
|
35157
|
-
}
|
|
35158
|
-
|
|
35159
|
-
return keys;
|
|
35160
|
-
}
|
|
35161
|
-
|
|
35162
|
-
function objectSpread2_objectSpread2(target) {
|
|
35163
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
35164
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
35165
|
-
|
|
35166
|
-
if (i % 2) {
|
|
35167
|
-
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
35168
|
-
defineProperty_defineProperty(target, key, source[key]);
|
|
35169
|
-
});
|
|
35170
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
35171
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
35172
|
-
} else {
|
|
35173
|
-
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
35174
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
35175
|
-
});
|
|
35176
|
-
}
|
|
35177
|
-
}
|
|
35178
|
-
|
|
35179
|
-
return target;
|
|
35180
|
-
}
|
|
35181
34969
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
35182
34970
|
/**
|
|
35183
34971
|
* @ignore
|
|
@@ -35844,7 +35632,7 @@ function pickAttrs(props) {
|
|
|
35844
35632
|
aria: true
|
|
35845
35633
|
};
|
|
35846
35634
|
} else {
|
|
35847
|
-
mergedConfig =
|
|
35635
|
+
mergedConfig = _objectSpread2({}, ariaOnly);
|
|
35848
35636
|
}
|
|
35849
35637
|
|
|
35850
35638
|
var attrs = {};
|
|
@@ -35877,7 +35665,7 @@ var react_is = __webpack_require__(9864);
|
|
|
35877
35665
|
function fillRef(ref, node) {
|
|
35878
35666
|
if (typeof ref === 'function') {
|
|
35879
35667
|
ref(node);
|
|
35880
|
-
} else if (
|
|
35668
|
+
} else if (typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
35881
35669
|
ref.current = node;
|
|
35882
35670
|
}
|
|
35883
35671
|
}
|
|
@@ -35987,7 +35775,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
35987
35775
|
function getTransitionName(transitionName, transitionType) {
|
|
35988
35776
|
if (!transitionName) return null;
|
|
35989
35777
|
|
|
35990
|
-
if (
|
|
35778
|
+
if (typeof_typeof(transitionName) === 'object') {
|
|
35991
35779
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
35992
35780
|
return match[1].toUpperCase();
|
|
35993
35781
|
});
|
|
@@ -36280,13 +36068,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36280
36068
|
|
|
36281
36069
|
switch (status) {
|
|
36282
36070
|
case 'appear':
|
|
36283
|
-
return _ref2 = {},
|
|
36071
|
+
return _ref2 = {}, _defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), _defineProperty(_ref2, STEP_START, onAppearStart), _defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
36284
36072
|
|
|
36285
36073
|
case 'enter':
|
|
36286
|
-
return _ref3 = {},
|
|
36074
|
+
return _ref3 = {}, _defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), _defineProperty(_ref3, STEP_START, onEnterStart), _defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
36287
36075
|
|
|
36288
36076
|
case 'leave':
|
|
36289
|
-
return _ref4 = {},
|
|
36077
|
+
return _ref4 = {}, _defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), _defineProperty(_ref4, STEP_START, onLeaveStart), _defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
36290
36078
|
|
|
36291
36079
|
default:
|
|
36292
36080
|
return {};
|
|
@@ -36394,7 +36182,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36394
36182
|
var mergedStyle = style;
|
|
36395
36183
|
|
|
36396
36184
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
36397
|
-
mergedStyle =
|
|
36185
|
+
mergedStyle = _objectSpread2({
|
|
36398
36186
|
transition: 'none'
|
|
36399
36187
|
}, mergedStyle);
|
|
36400
36188
|
}
|
|
@@ -36409,17 +36197,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36409
36197
|
|
|
36410
36198
|
|
|
36411
36199
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
36412
|
-
|
|
36200
|
+
_inherits(DomWrapper, _React$Component);
|
|
36413
36201
|
|
|
36414
|
-
var _super =
|
|
36202
|
+
var _super = _createSuper(DomWrapper);
|
|
36415
36203
|
|
|
36416
36204
|
function DomWrapper() {
|
|
36417
|
-
|
|
36205
|
+
_classCallCheck(this, DomWrapper);
|
|
36418
36206
|
|
|
36419
36207
|
return _super.apply(this, arguments);
|
|
36420
36208
|
}
|
|
36421
36209
|
|
|
36422
|
-
|
|
36210
|
+
_createClass(DomWrapper, [{
|
|
36423
36211
|
key: "render",
|
|
36424
36212
|
value: function render() {
|
|
36425
36213
|
return this.props.children;
|
|
@@ -36455,7 +36243,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
36455
36243
|
function genCSSMotion(config) {
|
|
36456
36244
|
var transitionSupport = config;
|
|
36457
36245
|
|
|
36458
|
-
if (
|
|
36246
|
+
if (typeof_typeof(config) === 'object') {
|
|
36459
36247
|
transitionSupport = config.transitionSupport;
|
|
36460
36248
|
}
|
|
36461
36249
|
|
|
@@ -36513,7 +36301,7 @@ function genCSSMotion(config) {
|
|
|
36513
36301
|
|
|
36514
36302
|
var motionChildren;
|
|
36515
36303
|
|
|
36516
|
-
var mergedProps =
|
|
36304
|
+
var mergedProps = _objectSpread2(_objectSpread2({}, eventProps), {}, {
|
|
36517
36305
|
visible: visible
|
|
36518
36306
|
});
|
|
36519
36307
|
|
|
@@ -36523,13 +36311,13 @@ function genCSSMotion(config) {
|
|
|
36523
36311
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
36524
36312
|
// Stable children
|
|
36525
36313
|
if (mergedVisible) {
|
|
36526
|
-
motionChildren = children(
|
|
36314
|
+
motionChildren = children(_objectSpread2({}, mergedProps), setNodeRef);
|
|
36527
36315
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
36528
|
-
motionChildren = children(
|
|
36316
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36529
36317
|
className: leavedClassName
|
|
36530
36318
|
}), setNodeRef);
|
|
36531
36319
|
} else if (forceRender) {
|
|
36532
|
-
motionChildren = children(
|
|
36320
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36533
36321
|
style: {
|
|
36534
36322
|
display: 'none'
|
|
36535
36323
|
}
|
|
@@ -36551,8 +36339,8 @@ function genCSSMotion(config) {
|
|
|
36551
36339
|
statusSuffix = 'start';
|
|
36552
36340
|
}
|
|
36553
36341
|
|
|
36554
|
-
motionChildren = children(
|
|
36555
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
36342
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36343
|
+
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {}, _defineProperty(_classNames, getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix)), statusSuffix), _defineProperty(_classNames, motionName, typeof motionName === 'string'), _classNames)),
|
|
36556
36344
|
style: statusStyle
|
|
36557
36345
|
}), setNodeRef);
|
|
36558
36346
|
}
|
|
@@ -36565,41 +36353,6 @@ function genCSSMotion(config) {
|
|
|
36565
36353
|
return CSSMotion;
|
|
36566
36354
|
}
|
|
36567
36355
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36568
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36569
|
-
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36570
|
-
if (source == null) return {};
|
|
36571
|
-
var target = {};
|
|
36572
|
-
var sourceKeys = Object.keys(source);
|
|
36573
|
-
var key, i;
|
|
36574
|
-
|
|
36575
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
36576
|
-
key = sourceKeys[i];
|
|
36577
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36578
|
-
target[key] = source[key];
|
|
36579
|
-
}
|
|
36580
|
-
|
|
36581
|
-
return target;
|
|
36582
|
-
}
|
|
36583
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36584
|
-
|
|
36585
|
-
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36586
|
-
if (source == null) return {};
|
|
36587
|
-
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36588
|
-
var key, i;
|
|
36589
|
-
|
|
36590
|
-
if (Object.getOwnPropertySymbols) {
|
|
36591
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36592
|
-
|
|
36593
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36594
|
-
key = sourceSymbolKeys[i];
|
|
36595
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36596
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36597
|
-
target[key] = source[key];
|
|
36598
|
-
}
|
|
36599
|
-
}
|
|
36600
|
-
|
|
36601
|
-
return target;
|
|
36602
|
-
}
|
|
36603
36356
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
36604
36357
|
|
|
36605
36358
|
|
|
@@ -36610,7 +36363,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
36610
36363
|
function wrapKeyToObject(key) {
|
|
36611
36364
|
var keyObj;
|
|
36612
36365
|
|
|
36613
|
-
if (key &&
|
|
36366
|
+
if (key && typeof_typeof(key) === 'object' && 'key' in key) {
|
|
36614
36367
|
keyObj = key;
|
|
36615
36368
|
} else {
|
|
36616
36369
|
keyObj = {
|
|
@@ -36618,7 +36371,7 @@ function wrapKeyToObject(key) {
|
|
|
36618
36371
|
};
|
|
36619
36372
|
}
|
|
36620
36373
|
|
|
36621
|
-
return
|
|
36374
|
+
return _objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36622
36375
|
key: String(keyObj.key)
|
|
36623
36376
|
});
|
|
36624
36377
|
}
|
|
@@ -36645,14 +36398,14 @@ function diffKeys() {
|
|
|
36645
36398
|
// New added keys should add before current key
|
|
36646
36399
|
if (currentIndex < i) {
|
|
36647
36400
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
36648
|
-
return
|
|
36401
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36649
36402
|
status: STATUS_ADD
|
|
36650
36403
|
});
|
|
36651
36404
|
}));
|
|
36652
36405
|
currentIndex = i;
|
|
36653
36406
|
}
|
|
36654
36407
|
|
|
36655
|
-
list.push(
|
|
36408
|
+
list.push(_objectSpread2(_objectSpread2({}, currentKeyObj), {}, {
|
|
36656
36409
|
status: STATUS_KEEP
|
|
36657
36410
|
}));
|
|
36658
36411
|
currentIndex += 1;
|
|
@@ -36663,7 +36416,7 @@ function diffKeys() {
|
|
|
36663
36416
|
|
|
36664
36417
|
|
|
36665
36418
|
if (!hit) {
|
|
36666
|
-
list.push(
|
|
36419
|
+
list.push(_objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36667
36420
|
status: STATUS_REMOVE
|
|
36668
36421
|
}));
|
|
36669
36422
|
}
|
|
@@ -36671,7 +36424,7 @@ function diffKeys() {
|
|
|
36671
36424
|
|
|
36672
36425
|
if (currentIndex < currentLen) {
|
|
36673
36426
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36674
|
-
return
|
|
36427
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36675
36428
|
status: STATUS_ADD
|
|
36676
36429
|
});
|
|
36677
36430
|
}));
|
|
@@ -36732,14 +36485,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36732
36485
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36733
36486
|
|
|
36734
36487
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36735
|
-
|
|
36488
|
+
_inherits(CSSMotionList, _React$Component);
|
|
36736
36489
|
|
|
36737
|
-
var _super =
|
|
36490
|
+
var _super = _createSuper(CSSMotionList);
|
|
36738
36491
|
|
|
36739
36492
|
function CSSMotionList() {
|
|
36740
36493
|
var _this;
|
|
36741
36494
|
|
|
36742
|
-
|
|
36495
|
+
_classCallCheck(this, CSSMotionList);
|
|
36743
36496
|
|
|
36744
36497
|
_this = _super.apply(this, arguments);
|
|
36745
36498
|
_this.state = {
|
|
@@ -36752,7 +36505,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36752
36505
|
return {
|
|
36753
36506
|
keyEntities: keyEntities.map(function (entity) {
|
|
36754
36507
|
if (entity.key !== removeKey) return entity;
|
|
36755
|
-
return
|
|
36508
|
+
return _objectSpread2(_objectSpread2({}, entity), {}, {
|
|
36756
36509
|
status: STATUS_REMOVED
|
|
36757
36510
|
});
|
|
36758
36511
|
})
|
|
@@ -36763,7 +36516,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36763
36516
|
return _this;
|
|
36764
36517
|
}
|
|
36765
36518
|
|
|
36766
|
-
|
|
36519
|
+
_createClass(CSSMotionList, [{
|
|
36767
36520
|
key: "render",
|
|
36768
36521
|
value: function render() {
|
|
36769
36522
|
var _this2 = this;
|
|
@@ -36774,7 +36527,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36774
36527
|
component = _this$props.component,
|
|
36775
36528
|
children = _this$props.children,
|
|
36776
36529
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36777
|
-
restProps =
|
|
36530
|
+
restProps = _objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36778
36531
|
|
|
36779
36532
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36780
36533
|
var motionProps = {};
|
|
@@ -36785,10 +36538,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36785
36538
|
delete restProps.keys;
|
|
36786
36539
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36787
36540
|
var status = _ref2.status,
|
|
36788
|
-
eventProps =
|
|
36541
|
+
eventProps = _objectWithoutProperties(_ref2, ["status"]);
|
|
36789
36542
|
|
|
36790
36543
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36791
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
36544
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, extends_extends({}, motionProps, {
|
|
36792
36545
|
key: eventProps.key,
|
|
36793
36546
|
visible: visible,
|
|
36794
36547
|
eventProps: eventProps,
|
|
@@ -36862,8 +36615,8 @@ function Mask(props) {
|
|
|
36862
36615
|
}, function (_ref) {
|
|
36863
36616
|
var motionClassName = _ref.className,
|
|
36864
36617
|
motionStyle = _ref.style;
|
|
36865
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36866
|
-
style:
|
|
36618
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36619
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), style),
|
|
36867
36620
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36868
36621
|
}, maskProps));
|
|
36869
36622
|
});
|
|
@@ -37046,7 +36799,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
37046
36799
|
|
|
37047
36800
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
37048
36801
|
className: "".concat(prefixCls, "-content")
|
|
37049
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36802
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37050
36803
|
className: "".concat(prefixCls, "-body"),
|
|
37051
36804
|
style: bodyStyle
|
|
37052
36805
|
}, bodyProps), children), footerNode);
|
|
@@ -37066,7 +36819,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
37066
36819
|
key: "dialog-element",
|
|
37067
36820
|
role: "document",
|
|
37068
36821
|
ref: motionRef,
|
|
37069
|
-
style:
|
|
36822
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionStyle), style), contentStyle),
|
|
37070
36823
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
37071
36824
|
onMouseDown: onMouseDown,
|
|
37072
36825
|
onMouseUp: onMouseUp
|
|
@@ -37248,7 +37001,7 @@ function Dialog(props) {
|
|
|
37248
37001
|
return function () {};
|
|
37249
37002
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
37250
37003
|
|
|
37251
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37004
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37252
37005
|
className: "".concat(prefixCls, "-root")
|
|
37253
37006
|
}, pickAttrs(props, {
|
|
37254
37007
|
data: true
|
|
@@ -37256,11 +37009,11 @@ function Dialog(props) {
|
|
|
37256
37009
|
prefixCls: prefixCls,
|
|
37257
37010
|
visible: mask && visible,
|
|
37258
37011
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
37259
|
-
style:
|
|
37012
|
+
style: _objectSpread2({
|
|
37260
37013
|
zIndex: zIndex
|
|
37261
37014
|
}, maskStyle),
|
|
37262
37015
|
maskProps: maskProps
|
|
37263
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37016
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37264
37017
|
tabIndex: -1,
|
|
37265
37018
|
onKeyDown: onWrapperKeyDown,
|
|
37266
37019
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -37268,12 +37021,12 @@ function Dialog(props) {
|
|
|
37268
37021
|
onClick: onWrapperClick,
|
|
37269
37022
|
role: "dialog",
|
|
37270
37023
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
37271
|
-
style:
|
|
37024
|
+
style: _objectSpread2(_objectSpread2({
|
|
37272
37025
|
zIndex: zIndex
|
|
37273
37026
|
}, wrapStyle), {}, {
|
|
37274
37027
|
display: !animatedVisible ? 'none' : null
|
|
37275
37028
|
})
|
|
37276
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
37029
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, extends_extends({}, props, {
|
|
37277
37030
|
onMouseDown: onContentMouseDown,
|
|
37278
37031
|
onMouseUp: onContentMouseUp,
|
|
37279
37032
|
ref: contentRef,
|
|
@@ -37321,7 +37074,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37321
37074
|
}, [visible]); // 渲染在当前 dom 里;
|
|
37322
37075
|
|
|
37323
37076
|
if (getContainer === false) {
|
|
37324
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37077
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
37325
37078
|
getOpenCount: function getOpenCount() {
|
|
37326
37079
|
return 2;
|
|
37327
37080
|
} // 不对 body 做任何操作。。
|
|
@@ -37339,7 +37092,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37339
37092
|
forceRender: forceRender,
|
|
37340
37093
|
getContainer: getContainer
|
|
37341
37094
|
}, function (childProps) {
|
|
37342
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37095
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
37343
37096
|
destroyOnClose: destroyOnClose,
|
|
37344
37097
|
afterClose: function afterClose() {
|
|
37345
37098
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -37374,8 +37127,8 @@ function getConfirmLocale() {
|
|
|
37374
37127
|
|
|
37375
37128
|
|
|
37376
37129
|
|
|
37377
|
-
var UnreachableException = /*#__PURE__*/
|
|
37378
|
-
|
|
37130
|
+
var UnreachableException = /*#__PURE__*/_createClass(function UnreachableException(value) {
|
|
37131
|
+
_classCallCheck(this, UnreachableException);
|
|
37379
37132
|
|
|
37380
37133
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
37381
37134
|
});
|
|
@@ -37438,8 +37191,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
37438
37191
|
console.warn(new UnreachableException(size).error);
|
|
37439
37192
|
}
|
|
37440
37193
|
|
|
37441
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37442
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37194
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37195
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, others, {
|
|
37443
37196
|
className: classes
|
|
37444
37197
|
}));
|
|
37445
37198
|
});
|
|
@@ -37510,14 +37263,14 @@ function isNotGrey(color) {
|
|
|
37510
37263
|
}
|
|
37511
37264
|
|
|
37512
37265
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
37513
|
-
|
|
37266
|
+
_inherits(Wave, _React$Component);
|
|
37514
37267
|
|
|
37515
|
-
var _super =
|
|
37268
|
+
var _super = _createSuper(Wave);
|
|
37516
37269
|
|
|
37517
37270
|
function Wave() {
|
|
37518
37271
|
var _this;
|
|
37519
37272
|
|
|
37520
|
-
|
|
37273
|
+
_classCallCheck(this, Wave);
|
|
37521
37274
|
|
|
37522
37275
|
_this = _super.apply(this, arguments);
|
|
37523
37276
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -37537,7 +37290,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37537
37290
|
|
|
37538
37291
|
_this.extraNode = document.createElement('div');
|
|
37539
37292
|
|
|
37540
|
-
var _assertThisInitialize =
|
|
37293
|
+
var _assertThisInitialize = _assertThisInitialized(_this),
|
|
37541
37294
|
extraNode = _assertThisInitialize.extraNode;
|
|
37542
37295
|
|
|
37543
37296
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -37644,7 +37397,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37644
37397
|
return _this;
|
|
37645
37398
|
}
|
|
37646
37399
|
|
|
37647
|
-
|
|
37400
|
+
_createClass(Wave, [{
|
|
37648
37401
|
key: "componentDidMount",
|
|
37649
37402
|
value: function componentDidMount() {
|
|
37650
37403
|
var node = this.containerRef.current;
|
|
@@ -37871,7 +37624,7 @@ function spaceChildren(children, needInserted) {
|
|
|
37871
37624
|
var isPrevChildPure = false;
|
|
37872
37625
|
var childList = [];
|
|
37873
37626
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
37874
|
-
var type =
|
|
37627
|
+
var type = typeof_typeof(child);
|
|
37875
37628
|
|
|
37876
37629
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
37877
37630
|
|
|
@@ -37971,7 +37724,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37971
37724
|
}; // =============== Update Loading ===============
|
|
37972
37725
|
|
|
37973
37726
|
|
|
37974
|
-
var loadingOrDelay =
|
|
37727
|
+
var loadingOrDelay = typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
37975
37728
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
37976
37729
|
clearTimeout(delayTimeoutRef.current);
|
|
37977
37730
|
|
|
@@ -38011,7 +37764,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
38011
37764
|
var sizeFullname = customizeSize || size;
|
|
38012
37765
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
38013
37766
|
var iconType = innerLoading ? 'loading' : icon;
|
|
38014
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37767
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(type), type), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(shape), shape !== 'default' && shape), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty(_classNames, "".concat(prefixCls, "-icon-only"), !children && children !== 0 && !!iconType), _defineProperty(_classNames, "".concat(prefixCls, "-background-ghost"), ghost && !isUnborderedButtonType(type)), _defineProperty(_classNames, "".concat(prefixCls, "-loading"), innerLoading), _defineProperty(_classNames, "".concat(prefixCls, "-two-chinese-chars"), hasTwoCNChar && autoInsertSpace), _defineProperty(_classNames, "".concat(prefixCls, "-block"), block), _defineProperty(_classNames, "".concat(prefixCls, "-dangerous"), !!danger), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
38015
37768
|
var iconNode;
|
|
38016
37769
|
|
|
38017
37770
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -38030,14 +37783,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
38030
37783
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
38031
37784
|
|
|
38032
37785
|
if (linkButtonRestProps.href !== undefined) {
|
|
38033
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
37786
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", extends_extends({}, linkButtonRestProps, {
|
|
38034
37787
|
className: classes,
|
|
38035
37788
|
onClick: handleClick,
|
|
38036
37789
|
ref: buttonRef
|
|
38037
37790
|
}), iconNode, kids);
|
|
38038
37791
|
}
|
|
38039
37792
|
|
|
38040
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
37793
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", extends_extends({}, rest, {
|
|
38041
37794
|
type: htmlType,
|
|
38042
37795
|
className: classes,
|
|
38043
37796
|
onClick: handleClick,
|
|
@@ -38215,9 +37968,9 @@ var Modal = function Modal(props) {
|
|
|
38215
37968
|
okType = props.okType,
|
|
38216
37969
|
cancelText = props.cancelText,
|
|
38217
37970
|
confirmLoading = props.confirmLoading;
|
|
38218
|
-
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,
|
|
37971
|
+
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, extends_extends({
|
|
38219
37972
|
onClick: handleCancel
|
|
38220
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
37973
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, extends_extends({}, convertLegacyProps(okType), {
|
|
38221
37974
|
loading: confirmLoading,
|
|
38222
37975
|
onClick: handleOk
|
|
38223
37976
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -38252,8 +38005,8 @@ var Modal = function Modal(props) {
|
|
|
38252
38005
|
type: "close",
|
|
38253
38006
|
className: "".concat(prefixCls, "-close-icon")
|
|
38254
38007
|
}));
|
|
38255
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
38256
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
38008
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), _defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
38009
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, extends_extends({}, restProps, {
|
|
38257
38010
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
38258
38011
|
prefixCls: prefixCls,
|
|
38259
38012
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -38379,7 +38132,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
38379
38132
|
children = props.children,
|
|
38380
38133
|
prefixCls = props.prefixCls,
|
|
38381
38134
|
buttonProps = props.buttonProps;
|
|
38382
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
38135
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, extends_extends({}, convertLegacyProps(type), {
|
|
38383
38136
|
onClick: onClick,
|
|
38384
38137
|
loading: loading,
|
|
38385
38138
|
prefixCls: prefixCls
|
|
@@ -39895,7 +39648,7 @@ function get(entity, path) {
|
|
|
39895
39648
|
|
|
39896
39649
|
|
|
39897
39650
|
function _toArray(arr) {
|
|
39898
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
39651
|
+
return arrayWithHoles_arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
39899
39652
|
}
|
|
39900
39653
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
39901
39654
|
|
|
@@ -39917,9 +39670,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
39917
39670
|
if (!entity && typeof path === 'number') {
|
|
39918
39671
|
clone = [];
|
|
39919
39672
|
} else if (Array.isArray(entity)) {
|
|
39920
|
-
clone =
|
|
39673
|
+
clone = _toConsumableArray(entity);
|
|
39921
39674
|
} else {
|
|
39922
|
-
clone =
|
|
39675
|
+
clone = _objectSpread2({}, entity);
|
|
39923
39676
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
39924
39677
|
|
|
39925
39678
|
|
|
@@ -39983,7 +39736,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
39983
39736
|
}
|
|
39984
39737
|
|
|
39985
39738
|
function isObject(obj) {
|
|
39986
|
-
return
|
|
39739
|
+
return typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
39987
39740
|
}
|
|
39988
39741
|
/**
|
|
39989
39742
|
* Copy values into store and return a new values object
|
|
@@ -39992,7 +39745,7 @@ function isObject(obj) {
|
|
|
39992
39745
|
|
|
39993
39746
|
|
|
39994
39747
|
function internalSetValues(store, values) {
|
|
39995
|
-
var newStore = Array.isArray(store) ?
|
|
39748
|
+
var newStore = Array.isArray(store) ? _toConsumableArray(store) : _objectSpread2({}, store);
|
|
39996
39749
|
|
|
39997
39750
|
if (!values) {
|
|
39998
39751
|
return newStore;
|
|
@@ -40035,14 +39788,14 @@ function isSimilar(source, target) {
|
|
|
40035
39788
|
return false;
|
|
40036
39789
|
}
|
|
40037
39790
|
|
|
40038
|
-
if (!source || !target ||
|
|
39791
|
+
if (!source || !target || typeof_typeof(source) !== 'object' || typeof_typeof(target) !== 'object') {
|
|
40039
39792
|
return false;
|
|
40040
39793
|
}
|
|
40041
39794
|
|
|
40042
39795
|
var sourceKeys = Object.keys(source);
|
|
40043
39796
|
var targetKeys = Object.keys(target);
|
|
40044
|
-
var keys = new Set([].concat(
|
|
40045
|
-
return
|
|
39797
|
+
var keys = new Set([].concat(_toConsumableArray(sourceKeys), _toConsumableArray(targetKeys)));
|
|
39798
|
+
return _toConsumableArray(keys).every(function (key) {
|
|
40046
39799
|
var sourceValue = source[key];
|
|
40047
39800
|
var targetValue = target[key];
|
|
40048
39801
|
|
|
@@ -40085,12 +39838,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
40085
39838
|
|
|
40086
39839
|
if (diff > 0) {
|
|
40087
39840
|
// move left
|
|
40088
|
-
return [].concat(
|
|
39841
|
+
return [].concat(_toConsumableArray(array.slice(0, toIndex)), [item], _toConsumableArray(array.slice(toIndex, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
40089
39842
|
}
|
|
40090
39843
|
|
|
40091
39844
|
if (diff < 0) {
|
|
40092
39845
|
// move right
|
|
40093
|
-
return [].concat(
|
|
39846
|
+
return [].concat(_toConsumableArray(array.slice(0, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], _toConsumableArray(array.slice(toIndex + 1, length)));
|
|
40094
39847
|
}
|
|
40095
39848
|
|
|
40096
39849
|
return array;
|
|
@@ -40130,13 +39883,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
40130
39883
|
|
|
40131
39884
|
|
|
40132
39885
|
function _validateRule() {
|
|
40133
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39886
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
40134
39887
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
40135
|
-
return
|
|
39888
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
40136
39889
|
while (1) {
|
|
40137
39890
|
switch (_context2.prev = _context2.next) {
|
|
40138
39891
|
case 0:
|
|
40139
|
-
cloneRule =
|
|
39892
|
+
cloneRule = _objectSpread2({}, rule); // Bug of `async-validator`
|
|
40140
39893
|
// https://github.com/react-component/field-form/issues/316
|
|
40141
39894
|
// https://github.com/react-component/field-form/issues/313
|
|
40142
39895
|
|
|
@@ -40149,13 +39902,13 @@ function _validateRule() {
|
|
|
40149
39902
|
delete cloneRule.defaultField;
|
|
40150
39903
|
}
|
|
40151
39904
|
|
|
40152
|
-
validator = new AsyncValidator(
|
|
39905
|
+
validator = new AsyncValidator(_defineProperty({}, name, [cloneRule]));
|
|
40153
39906
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
40154
39907
|
validator.messages(messages);
|
|
40155
39908
|
result = [];
|
|
40156
39909
|
_context2.prev = 8;
|
|
40157
39910
|
_context2.next = 11;
|
|
40158
|
-
return Promise.resolve(validator.validate(
|
|
39911
|
+
return Promise.resolve(validator.validate(_defineProperty({}, name, value), _objectSpread2({}, options)));
|
|
40159
39912
|
|
|
40160
39913
|
case 11:
|
|
40161
39914
|
_context2.next = 16;
|
|
@@ -40195,12 +39948,12 @@ function _validateRule() {
|
|
|
40195
39948
|
case 19:
|
|
40196
39949
|
subResults = _context2.sent;
|
|
40197
39950
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
40198
|
-
return [].concat(
|
|
39951
|
+
return [].concat(_toConsumableArray(prev), _toConsumableArray(errors));
|
|
40199
39952
|
}, []));
|
|
40200
39953
|
|
|
40201
39954
|
case 21:
|
|
40202
39955
|
// Replace message with variables
|
|
40203
|
-
kv =
|
|
39956
|
+
kv = _objectSpread2(_objectSpread2({}, rule), {}, {
|
|
40204
39957
|
name: name,
|
|
40205
39958
|
enum: (rule.enum || []).join(', ')
|
|
40206
39959
|
}, messageVariables);
|
|
@@ -40229,7 +39982,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40229
39982
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
40230
39983
|
var originValidatorFunc = currentRule.validator;
|
|
40231
39984
|
|
|
40232
|
-
var cloneRule =
|
|
39985
|
+
var cloneRule = _objectSpread2(_objectSpread2({}, currentRule), {}, {
|
|
40233
39986
|
ruleIndex: ruleIndex
|
|
40234
39987
|
}); // Replace validator if needed
|
|
40235
39988
|
|
|
@@ -40297,9 +40050,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40297
40050
|
if (validateFirst === true) {
|
|
40298
40051
|
// >>>>> Validate by serialization
|
|
40299
40052
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
40300
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40053
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(resolve, reject) {
|
|
40301
40054
|
var i, rule, errors;
|
|
40302
|
-
return
|
|
40055
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
40303
40056
|
while (1) {
|
|
40304
40057
|
switch (_context.prev = _context.next) {
|
|
40305
40058
|
case 0:
|
|
@@ -40378,15 +40131,15 @@ function finishOnAllFailed(_x8) {
|
|
|
40378
40131
|
}
|
|
40379
40132
|
|
|
40380
40133
|
function _finishOnAllFailed() {
|
|
40381
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40382
|
-
return
|
|
40134
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(rulePromises) {
|
|
40135
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
40383
40136
|
while (1) {
|
|
40384
40137
|
switch (_context3.prev = _context3.next) {
|
|
40385
40138
|
case 0:
|
|
40386
40139
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
40387
40140
|
var _ref5;
|
|
40388
40141
|
|
|
40389
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
40142
|
+
var errors = (_ref5 = []).concat.apply(_ref5, _toConsumableArray(errorsList));
|
|
40390
40143
|
|
|
40391
40144
|
return errors;
|
|
40392
40145
|
}));
|
|
@@ -40406,9 +40159,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
40406
40159
|
}
|
|
40407
40160
|
|
|
40408
40161
|
function _finishOnFirstFailed() {
|
|
40409
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40162
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(rulePromises) {
|
|
40410
40163
|
var count;
|
|
40411
|
-
return
|
|
40164
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
40412
40165
|
while (1) {
|
|
40413
40166
|
switch (_context4.prev = _context4.next) {
|
|
40414
40167
|
case 0:
|
|
@@ -40471,9 +40224,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
40471
40224
|
|
|
40472
40225
|
|
|
40473
40226
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
40474
|
-
|
|
40227
|
+
_inherits(Field, _React$Component);
|
|
40475
40228
|
|
|
40476
|
-
var _super =
|
|
40229
|
+
var _super = _createSuper(Field);
|
|
40477
40230
|
|
|
40478
40231
|
/**
|
|
40479
40232
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -40489,7 +40242,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40489
40242
|
function Field(props) {
|
|
40490
40243
|
var _this;
|
|
40491
40244
|
|
|
40492
|
-
|
|
40245
|
+
_classCallCheck(this, Field);
|
|
40493
40246
|
|
|
40494
40247
|
_this = _super.call(this, props); // Register on init
|
|
40495
40248
|
|
|
@@ -40524,7 +40277,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40524
40277
|
fieldContext = _this$props2.fieldContext;
|
|
40525
40278
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
40526
40279
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
40527
|
-
return name !== undefined ? [].concat(
|
|
40280
|
+
return name !== undefined ? [].concat(_toConsumableArray(prefixName), _toConsumableArray(name)) : [];
|
|
40528
40281
|
};
|
|
40529
40282
|
|
|
40530
40283
|
_this.getRules = function () {
|
|
@@ -40557,7 +40310,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40557
40310
|
|
|
40558
40311
|
_this.triggerMetaEvent = function (destroy) {
|
|
40559
40312
|
var onMetaChange = _this.props.onMetaChange;
|
|
40560
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
40313
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(_objectSpread2(_objectSpread2({}, _this.getMeta()), {}, {
|
|
40561
40314
|
destroy: destroy
|
|
40562
40315
|
}));
|
|
40563
40316
|
};
|
|
@@ -40746,9 +40499,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40746
40499
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
40747
40500
|
|
|
40748
40501
|
if (warningOnly) {
|
|
40749
|
-
nextWarnings.push.apply(nextWarnings,
|
|
40502
|
+
nextWarnings.push.apply(nextWarnings, _toConsumableArray(errors));
|
|
40750
40503
|
} else {
|
|
40751
|
-
nextErrors.push.apply(nextErrors,
|
|
40504
|
+
nextErrors.push.apply(nextErrors, _toConsumableArray(errors));
|
|
40752
40505
|
}
|
|
40753
40506
|
});
|
|
40754
40507
|
_this.errors = nextErrors;
|
|
@@ -40839,7 +40592,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40839
40592
|
if (typeof children === 'function') {
|
|
40840
40593
|
var meta = _this.getMeta();
|
|
40841
40594
|
|
|
40842
|
-
return
|
|
40595
|
+
return _objectSpread2(_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
40843
40596
|
isFunction: true
|
|
40844
40597
|
});
|
|
40845
40598
|
} // Filed element only
|
|
@@ -40891,13 +40644,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40891
40644
|
var value = _this.getValue();
|
|
40892
40645
|
|
|
40893
40646
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
40894
|
-
return
|
|
40647
|
+
return _defineProperty({}, valuePropName, val);
|
|
40895
40648
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40896
40649
|
|
|
40897
40650
|
|
|
40898
40651
|
var originTriggerFunc = childProps[trigger];
|
|
40899
40652
|
|
|
40900
|
-
var control =
|
|
40653
|
+
var control = _objectSpread2(_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
40901
40654
|
|
|
40902
40655
|
|
|
40903
40656
|
control[trigger] = function () {
|
|
@@ -40968,13 +40721,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40968
40721
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
40969
40722
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
40970
40723
|
|
|
40971
|
-
initEntityValue(
|
|
40724
|
+
initEntityValue(_assertThisInitialized(_this));
|
|
40972
40725
|
}
|
|
40973
40726
|
|
|
40974
40727
|
return _this;
|
|
40975
40728
|
}
|
|
40976
40729
|
|
|
40977
|
-
|
|
40730
|
+
_createClass(Field, [{
|
|
40978
40731
|
key: "componentDidMount",
|
|
40979
40732
|
value: function componentDidMount() {
|
|
40980
40733
|
var _this$props7 = this.props,
|
|
@@ -41048,7 +40801,7 @@ Field.defaultProps = {
|
|
|
41048
40801
|
|
|
41049
40802
|
function WrapperField(_ref5) {
|
|
41050
40803
|
var name = _ref5.name,
|
|
41051
|
-
restProps =
|
|
40804
|
+
restProps = _objectWithoutProperties(_ref5, Field_excluded);
|
|
41052
40805
|
|
|
41053
40806
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
41054
40807
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -41062,7 +40815,7 @@ function WrapperField(_ref5) {
|
|
|
41062
40815
|
|
|
41063
40816
|
if (false) {}
|
|
41064
40817
|
|
|
41065
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
40818
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, extends_extends({
|
|
41066
40819
|
key: key,
|
|
41067
40820
|
name: namePath
|
|
41068
40821
|
}, restProps, {
|
|
@@ -41099,7 +40852,7 @@ var List = function List(_ref) {
|
|
|
41099
40852
|
}
|
|
41100
40853
|
|
|
41101
40854
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
41102
|
-
var prefixName = [].concat(
|
|
40855
|
+
var prefixName = [].concat(_toConsumableArray(parentPrefixName), _toConsumableArray(getNamePath(name)));
|
|
41103
40856
|
|
|
41104
40857
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
41105
40858
|
var source = _ref2.source;
|
|
@@ -41112,7 +40865,7 @@ var List = function List(_ref) {
|
|
|
41112
40865
|
};
|
|
41113
40866
|
|
|
41114
40867
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
41115
|
-
value:
|
|
40868
|
+
value: _objectSpread2(_objectSpread2({}, context), {}, {
|
|
41116
40869
|
prefixName: prefixName
|
|
41117
40870
|
})
|
|
41118
40871
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -41143,13 +40896,13 @@ var List = function List(_ref) {
|
|
|
41143
40896
|
var newValue = getNewValue();
|
|
41144
40897
|
|
|
41145
40898
|
if (index >= 0 && index <= newValue.length) {
|
|
41146
|
-
keyManager.keys = [].concat(
|
|
41147
|
-
onChange([].concat(
|
|
40899
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], _toConsumableArray(keyManager.keys.slice(index)));
|
|
40900
|
+
onChange([].concat(_toConsumableArray(newValue.slice(0, index)), [defaultValue], _toConsumableArray(newValue.slice(index))));
|
|
41148
40901
|
} else {
|
|
41149
40902
|
if (false) {}
|
|
41150
40903
|
|
|
41151
|
-
keyManager.keys = [].concat(
|
|
41152
|
-
onChange([].concat(
|
|
40904
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
40905
|
+
onChange([].concat(_toConsumableArray(newValue), [defaultValue]));
|
|
41153
40906
|
}
|
|
41154
40907
|
|
|
41155
40908
|
keyManager.id += 1;
|
|
@@ -41258,7 +41011,7 @@ var SPLIT = '__@field_split__';
|
|
|
41258
41011
|
|
|
41259
41012
|
function normalize(namePath) {
|
|
41260
41013
|
return namePath.map(function (cell) {
|
|
41261
|
-
return "".concat(
|
|
41014
|
+
return "".concat(typeof_typeof(cell), ":").concat(cell);
|
|
41262
41015
|
}) // Magic split
|
|
41263
41016
|
.join(SPLIT);
|
|
41264
41017
|
}
|
|
@@ -41269,12 +41022,12 @@ function normalize(namePath) {
|
|
|
41269
41022
|
|
|
41270
41023
|
var NameMap = /*#__PURE__*/function () {
|
|
41271
41024
|
function NameMap() {
|
|
41272
|
-
|
|
41025
|
+
_classCallCheck(this, NameMap);
|
|
41273
41026
|
|
|
41274
41027
|
this.kvs = new Map();
|
|
41275
41028
|
}
|
|
41276
41029
|
|
|
41277
|
-
|
|
41030
|
+
_createClass(NameMap, [{
|
|
41278
41031
|
key: "set",
|
|
41279
41032
|
value: function set(key, value) {
|
|
41280
41033
|
this.kvs.set(normalize(key), value);
|
|
@@ -41305,7 +41058,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
41305
41058
|
}, {
|
|
41306
41059
|
key: "map",
|
|
41307
41060
|
value: function map(callback) {
|
|
41308
|
-
return
|
|
41061
|
+
return _toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
41309
41062
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
41310
41063
|
key = _ref2[0],
|
|
41311
41064
|
value = _ref2[1];
|
|
@@ -41359,7 +41112,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
41359
41112
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
41360
41113
|
var _this = this;
|
|
41361
41114
|
|
|
41362
|
-
|
|
41115
|
+
_classCallCheck(this, FormStore);
|
|
41363
41116
|
|
|
41364
41117
|
this.formHooked = false;
|
|
41365
41118
|
this.forceRootUpdate = void 0;
|
|
@@ -41619,7 +41372,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41619
41372
|
return fieldNamePath[i] === nameUnit;
|
|
41620
41373
|
})) {
|
|
41621
41374
|
map.update(shortNamePath, function (list) {
|
|
41622
|
-
return [].concat(
|
|
41375
|
+
return [].concat(_toConsumableArray(list), [field]);
|
|
41623
41376
|
});
|
|
41624
41377
|
}
|
|
41625
41378
|
});
|
|
@@ -41710,7 +41463,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41710
41463
|
|
|
41711
41464
|
|
|
41712
41465
|
if (!info.skipExist || originValue === undefined) {
|
|
41713
|
-
_this.store = setValue(_this.store, namePath,
|
|
41466
|
+
_this.store = setValue(_this.store, namePath, _toConsumableArray(records)[0].value);
|
|
41714
41467
|
}
|
|
41715
41468
|
}
|
|
41716
41469
|
}
|
|
@@ -41730,7 +41483,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41730
41483
|
if (records) {
|
|
41731
41484
|
var _requiredFieldEntitie;
|
|
41732
41485
|
|
|
41733
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
41486
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, _toConsumableArray(_toConsumableArray(records).map(function (r) {
|
|
41734
41487
|
return r.entity;
|
|
41735
41488
|
})));
|
|
41736
41489
|
}
|
|
@@ -41783,7 +41536,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41783
41536
|
fields.forEach(function (fieldData) {
|
|
41784
41537
|
var name = fieldData.name,
|
|
41785
41538
|
errors = fieldData.errors,
|
|
41786
|
-
data =
|
|
41539
|
+
data = _objectWithoutProperties(fieldData, useForm_excluded);
|
|
41787
41540
|
|
|
41788
41541
|
var namePath = getNamePath(name); // Value
|
|
41789
41542
|
|
|
@@ -41805,7 +41558,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41805
41558
|
var namePath = field.getNamePath();
|
|
41806
41559
|
var meta = field.getMeta();
|
|
41807
41560
|
|
|
41808
|
-
var fieldData =
|
|
41561
|
+
var fieldData = _objectSpread2(_objectSpread2({}, meta), {}, {
|
|
41809
41562
|
name: namePath,
|
|
41810
41563
|
value: _this.getFieldValue(namePath)
|
|
41811
41564
|
});
|
|
@@ -41904,7 +41657,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41904
41657
|
|
|
41905
41658
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
41906
41659
|
if (_this.subscribable) {
|
|
41907
|
-
var mergedInfo =
|
|
41660
|
+
var mergedInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
41908
41661
|
store: _this.getFieldsValue(true)
|
|
41909
41662
|
});
|
|
41910
41663
|
|
|
@@ -41937,7 +41690,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41937
41690
|
|
|
41938
41691
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
41939
41692
|
type: 'dependenciesUpdate',
|
|
41940
|
-
relatedFields: [namePath].concat(
|
|
41693
|
+
relatedFields: [namePath].concat(_toConsumableArray(childrenFields))
|
|
41941
41694
|
}); // trigger callback function
|
|
41942
41695
|
|
|
41943
41696
|
|
|
@@ -41948,7 +41701,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41948
41701
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
41949
41702
|
}
|
|
41950
41703
|
|
|
41951
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
41704
|
+
_this.triggerOnFieldsChange([namePath].concat(_toConsumableArray(childrenFields)));
|
|
41952
41705
|
};
|
|
41953
41706
|
|
|
41954
41707
|
this.setFieldsValue = function (store) {
|
|
@@ -42076,8 +41829,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42076
41829
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
42077
41830
|
|
|
42078
41831
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
42079
|
-
var promise = field.validateRules(
|
|
42080
|
-
validateMessages:
|
|
41832
|
+
var promise = field.validateRules(_objectSpread2({
|
|
41833
|
+
validateMessages: _objectSpread2(_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
42081
41834
|
}, options)); // Wrap promise with field
|
|
42082
41835
|
|
|
42083
41836
|
promiseList.push(promise.then(function () {
|
|
@@ -42094,9 +41847,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42094
41847
|
errors = _ref5.errors;
|
|
42095
41848
|
|
|
42096
41849
|
if (warningOnly) {
|
|
42097
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
41850
|
+
mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
|
|
42098
41851
|
} else {
|
|
42099
|
-
mergedErrors.push.apply(mergedErrors,
|
|
41852
|
+
mergedErrors.push.apply(mergedErrors, _toConsumableArray(errors));
|
|
42100
41853
|
}
|
|
42101
41854
|
});
|
|
42102
41855
|
|
|
@@ -42227,8 +41980,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
42227
41980
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
42228
41981
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42229
41982
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
42230
|
-
value:
|
|
42231
|
-
validateMessages:
|
|
41983
|
+
value: _objectSpread2(_objectSpread2({}, formContext), {}, {
|
|
41984
|
+
validateMessages: _objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
42232
41985
|
// =========================================================
|
|
42233
41986
|
// = Global Form Control =
|
|
42234
41987
|
// =========================================================
|
|
@@ -42254,13 +42007,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
42254
42007
|
},
|
|
42255
42008
|
registerForm: function registerForm(name, form) {
|
|
42256
42009
|
if (name) {
|
|
42257
|
-
formsRef.current =
|
|
42010
|
+
formsRef.current = _objectSpread2(_objectSpread2({}, formsRef.current), {}, _defineProperty({}, name, form));
|
|
42258
42011
|
}
|
|
42259
42012
|
|
|
42260
42013
|
formContext.registerForm(name, form);
|
|
42261
42014
|
},
|
|
42262
42015
|
unregisterForm: function unregisterForm(name) {
|
|
42263
|
-
var newForms =
|
|
42016
|
+
var newForms = _objectSpread2({}, formsRef.current);
|
|
42264
42017
|
|
|
42265
42018
|
delete newForms[name];
|
|
42266
42019
|
formsRef.current = newForms;
|
|
@@ -42300,7 +42053,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42300
42053
|
_onFieldsChange = _ref.onFieldsChange,
|
|
42301
42054
|
_onFinish = _ref.onFinish,
|
|
42302
42055
|
onFinishFailed = _ref.onFinishFailed,
|
|
42303
|
-
restProps =
|
|
42056
|
+
restProps = _objectWithoutProperties(_ref, Form_excluded);
|
|
42304
42057
|
|
|
42305
42058
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(es_FormContext); // We customize handle event since Context will makes all the consumer re-render:
|
|
42306
42059
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -42328,7 +42081,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42328
42081
|
};
|
|
42329
42082
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
42330
42083
|
|
|
42331
|
-
setValidateMessages(
|
|
42084
|
+
setValidateMessages(_objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
42332
42085
|
setCallbacks({
|
|
42333
42086
|
onValuesChange: onValuesChange,
|
|
42334
42087
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -42381,7 +42134,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42381
42134
|
prevFieldsRef.current = fields;
|
|
42382
42135
|
}, [fields, formInstance]);
|
|
42383
42136
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
42384
|
-
return
|
|
42137
|
+
return _objectSpread2(_objectSpread2({}, formInstance), {}, {
|
|
42385
42138
|
validateTrigger: validateTrigger
|
|
42386
42139
|
});
|
|
42387
42140
|
}, [formInstance, validateTrigger]);
|
|
@@ -42393,7 +42146,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42393
42146
|
return wrapperNode;
|
|
42394
42147
|
}
|
|
42395
42148
|
|
|
42396
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
42149
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, restProps, {
|
|
42397
42150
|
onSubmit: function onSubmit(event) {
|
|
42398
42151
|
event.preventDefault();
|
|
42399
42152
|
event.stopPropagation();
|
|
@@ -42575,14 +42328,14 @@ LocaleProvider.defaultProps = {
|
|
|
42575
42328
|
|
|
42576
42329
|
|
|
42577
42330
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
42578
|
-
|
|
42331
|
+
_inherits(Notice, _Component);
|
|
42579
42332
|
|
|
42580
|
-
var _super =
|
|
42333
|
+
var _super = _createSuper(Notice);
|
|
42581
42334
|
|
|
42582
42335
|
function Notice() {
|
|
42583
42336
|
var _this;
|
|
42584
42337
|
|
|
42585
|
-
|
|
42338
|
+
_classCallCheck(this, Notice);
|
|
42586
42339
|
|
|
42587
42340
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42588
42341
|
args[_key] = arguments[_key];
|
|
@@ -42625,7 +42378,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42625
42378
|
return _this;
|
|
42626
42379
|
}
|
|
42627
42380
|
|
|
42628
|
-
|
|
42381
|
+
_createClass(Notice, [{
|
|
42629
42382
|
key: "componentDidMount",
|
|
42630
42383
|
value: function componentDidMount() {
|
|
42631
42384
|
this.startCloseTimer();
|
|
@@ -42671,8 +42424,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42671
42424
|
|
|
42672
42425
|
return acc;
|
|
42673
42426
|
}, {});
|
|
42674
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
42675
|
-
className: classnames_default()(componentClass, className,
|
|
42427
|
+
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
42428
|
+
className: classnames_default()(componentClass, className, _defineProperty({}, "".concat(componentClass, "-closable"), closable)),
|
|
42676
42429
|
style: style,
|
|
42677
42430
|
onMouseEnter: this.clearCloseTimer,
|
|
42678
42431
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -42703,52 +42456,6 @@ Notice.defaultProps = {
|
|
|
42703
42456
|
duration: 1.5
|
|
42704
42457
|
};
|
|
42705
42458
|
|
|
42706
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
42707
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
42708
|
-
if (Array.isArray(arr)) return arr;
|
|
42709
|
-
}
|
|
42710
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
42711
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
42712
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42713
|
-
|
|
42714
|
-
if (_i == null) return;
|
|
42715
|
-
var _arr = [];
|
|
42716
|
-
var _n = true;
|
|
42717
|
-
var _d = false;
|
|
42718
|
-
|
|
42719
|
-
var _s, _e;
|
|
42720
|
-
|
|
42721
|
-
try {
|
|
42722
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
42723
|
-
_arr.push(_s.value);
|
|
42724
|
-
|
|
42725
|
-
if (i && _arr.length === i) break;
|
|
42726
|
-
}
|
|
42727
|
-
} catch (err) {
|
|
42728
|
-
_d = true;
|
|
42729
|
-
_e = err;
|
|
42730
|
-
} finally {
|
|
42731
|
-
try {
|
|
42732
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
42733
|
-
} finally {
|
|
42734
|
-
if (_d) throw _e;
|
|
42735
|
-
}
|
|
42736
|
-
}
|
|
42737
|
-
|
|
42738
|
-
return _arr;
|
|
42739
|
-
}
|
|
42740
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
42741
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
42742
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
42743
|
-
}
|
|
42744
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
42745
|
-
|
|
42746
|
-
|
|
42747
|
-
|
|
42748
|
-
|
|
42749
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
42750
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
42751
|
-
}
|
|
42752
42459
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
42753
42460
|
|
|
42754
42461
|
|
|
@@ -42759,7 +42466,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42759
42466
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42760
42467
|
|
|
42761
42468
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42762
|
-
_React$useState2 =
|
|
42469
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
42763
42470
|
elements = _React$useState2[0],
|
|
42764
42471
|
setElements = _React$useState2[1];
|
|
42765
42472
|
|
|
@@ -42820,14 +42527,14 @@ function getUuid() {
|
|
|
42820
42527
|
}
|
|
42821
42528
|
|
|
42822
42529
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
42823
|
-
|
|
42530
|
+
_inherits(Notification, _Component);
|
|
42824
42531
|
|
|
42825
|
-
var _super =
|
|
42532
|
+
var _super = _createSuper(Notification);
|
|
42826
42533
|
|
|
42827
42534
|
function Notification() {
|
|
42828
42535
|
var _this;
|
|
42829
42536
|
|
|
42830
|
-
|
|
42537
|
+
_classCallCheck(this, Notification);
|
|
42831
42538
|
|
|
42832
42539
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42833
42540
|
args[_key] = arguments[_key];
|
|
@@ -42842,7 +42549,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42842
42549
|
_this.add = function (originNotice, holderCallback) {
|
|
42843
42550
|
var key = originNotice.key || getUuid();
|
|
42844
42551
|
|
|
42845
|
-
var notice =
|
|
42552
|
+
var notice = _objectSpread2(_objectSpread2({}, originNotice), {}, {
|
|
42846
42553
|
key: key
|
|
42847
42554
|
});
|
|
42848
42555
|
|
|
@@ -42909,7 +42616,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42909
42616
|
return _this;
|
|
42910
42617
|
}
|
|
42911
42618
|
|
|
42912
|
-
|
|
42619
|
+
_createClass(Notification, [{
|
|
42913
42620
|
key: "getTransitionName",
|
|
42914
42621
|
value: function getTransitionName() {
|
|
42915
42622
|
var _this$props = this.props,
|
|
@@ -42942,7 +42649,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42942
42649
|
var key = notice.key,
|
|
42943
42650
|
userPassKey = notice.userPassKey;
|
|
42944
42651
|
|
|
42945
|
-
var noticeProps =
|
|
42652
|
+
var noticeProps = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
42946
42653
|
prefixCls: prefixCls,
|
|
42947
42654
|
closeIcon: closeIcon
|
|
42948
42655
|
}, notice), notice.props), {}, {
|
|
@@ -42993,7 +42700,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42993
42700
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
42994
42701
|
key: key,
|
|
42995
42702
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
42996
|
-
style:
|
|
42703
|
+
style: _objectSpread2({}, motionStyle),
|
|
42997
42704
|
ref: function ref(div) {
|
|
42998
42705
|
if (typeof key === 'undefined') {
|
|
42999
42706
|
return;
|
|
@@ -43010,9 +42717,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
43010
42717
|
});
|
|
43011
42718
|
}
|
|
43012
42719
|
|
|
43013
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
42720
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, extends_extends({}, noticeProps, {
|
|
43014
42721
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
43015
|
-
style:
|
|
42722
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
43016
42723
|
visible: visible
|
|
43017
42724
|
}));
|
|
43018
42725
|
}));
|
|
@@ -43035,7 +42742,7 @@ Notification.defaultProps = {
|
|
|
43035
42742
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
43036
42743
|
var _ref6 = properties || {},
|
|
43037
42744
|
getContainer = _ref6.getContainer,
|
|
43038
|
-
props =
|
|
42745
|
+
props = _objectWithoutProperties(_ref6, ["getContainer"]);
|
|
43039
42746
|
|
|
43040
42747
|
var div = document.createElement('div');
|
|
43041
42748
|
|
|
@@ -43079,7 +42786,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
43079
42786
|
|
|
43080
42787
|
if (false) {}
|
|
43081
42788
|
|
|
43082
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
42789
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification, extends_extends({}, props, {
|
|
43083
42790
|
ref: ref
|
|
43084
42791
|
})), div);
|
|
43085
42792
|
};
|
|
@@ -43109,7 +42816,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
43109
42816
|
};
|
|
43110
42817
|
|
|
43111
42818
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43112
|
-
_useRCNotification2 =
|
|
42819
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43113
42820
|
hookNotify = _useRCNotification2[0],
|
|
43114
42821
|
holder = _useRCNotification2[1];
|
|
43115
42822
|
|
|
@@ -43438,7 +43145,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
43438
43145
|
};
|
|
43439
43146
|
|
|
43440
43147
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43441
|
-
_useRCNotification2 =
|
|
43148
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43442
43149
|
hookNotify = _useRCNotification2[0],
|
|
43443
43150
|
holder = _useRCNotification2[1];
|
|
43444
43151
|
|
|
@@ -44065,7 +43772,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
44065
43772
|
|
|
44066
43773
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
44067
43774
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
44068
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
43775
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), _defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
44069
43776
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
44070
43777
|
actionFn: onCancel,
|
|
44071
43778
|
close: close,
|
|
@@ -44083,7 +43790,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
44083
43790
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
44084
43791
|
prefixCls: prefixCls,
|
|
44085
43792
|
className: classString,
|
|
44086
|
-
wrapClassName: classnames_default()(
|
|
43793
|
+
wrapClassName: classnames_default()(_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
44087
43794
|
onCancel: function onCancel() {
|
|
44088
43795
|
return close({
|
|
44089
43796
|
triggerCancel: true
|
|
@@ -44167,7 +43874,7 @@ function getRootPrefixCls() {
|
|
|
44167
43874
|
function confirm_confirm(config) {
|
|
44168
43875
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
44169
43876
|
|
|
44170
|
-
var currentConfig =
|
|
43877
|
+
var currentConfig = extends_extends(extends_extends({}, config), {
|
|
44171
43878
|
close: close,
|
|
44172
43879
|
visible: true
|
|
44173
43880
|
});
|
|
@@ -44220,7 +43927,7 @@ function confirm_confirm(config) {
|
|
|
44220
43927
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
44221
43928
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
44222
43929
|
var iconPrefixCls = getIconPrefixCls();
|
|
44223
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43930
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, extends_extends({}, props, {
|
|
44224
43931
|
prefixCls: prefixCls,
|
|
44225
43932
|
rootPrefixCls: rootPrefixCls,
|
|
44226
43933
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -44237,7 +43944,7 @@ function confirm_confirm(config) {
|
|
|
44237
43944
|
args[_key2] = arguments[_key2];
|
|
44238
43945
|
}
|
|
44239
43946
|
|
|
44240
|
-
currentConfig =
|
|
43947
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), {
|
|
44241
43948
|
visible: false,
|
|
44242
43949
|
afterClose: function afterClose() {
|
|
44243
43950
|
if (typeof config.afterClose === 'function') {
|
|
@@ -44254,7 +43961,7 @@ function confirm_confirm(config) {
|
|
|
44254
43961
|
if (typeof configUpdate === 'function') {
|
|
44255
43962
|
currentConfig = configUpdate(currentConfig);
|
|
44256
43963
|
} else {
|
|
44257
|
-
currentConfig =
|
|
43964
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), configUpdate);
|
|
44258
43965
|
}
|
|
44259
43966
|
|
|
44260
43967
|
render(currentConfig);
|
|
@@ -44268,7 +43975,7 @@ function confirm_confirm(config) {
|
|
|
44268
43975
|
};
|
|
44269
43976
|
}
|
|
44270
43977
|
function withWarn(props) {
|
|
44271
|
-
return
|
|
43978
|
+
return extends_extends(extends_extends({
|
|
44272
43979
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44273
43980
|
type: "exclamation-circle"
|
|
44274
43981
|
}),
|
|
@@ -44278,7 +43985,7 @@ function withWarn(props) {
|
|
|
44278
43985
|
});
|
|
44279
43986
|
}
|
|
44280
43987
|
function withInfo(props) {
|
|
44281
|
-
return
|
|
43988
|
+
return extends_extends(extends_extends({
|
|
44282
43989
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44283
43990
|
type: "exclamation-circle"
|
|
44284
43991
|
}),
|
|
@@ -44288,7 +43995,7 @@ function withInfo(props) {
|
|
|
44288
43995
|
});
|
|
44289
43996
|
}
|
|
44290
43997
|
function withSuccess(props) {
|
|
44291
|
-
return
|
|
43998
|
+
return extends_extends(extends_extends({
|
|
44292
43999
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44293
44000
|
type: "check-circle"
|
|
44294
44001
|
}),
|
|
@@ -44298,7 +44005,7 @@ function withSuccess(props) {
|
|
|
44298
44005
|
});
|
|
44299
44006
|
}
|
|
44300
44007
|
function withError(props) {
|
|
44301
|
-
return
|
|
44008
|
+
return extends_extends(extends_extends({
|
|
44302
44009
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44303
44010
|
type: "close-circle"
|
|
44304
44011
|
}),
|
|
@@ -44308,7 +44015,7 @@ function withError(props) {
|
|
|
44308
44015
|
});
|
|
44309
44016
|
}
|
|
44310
44017
|
function withConfirm(props) {
|
|
44311
|
-
return
|
|
44018
|
+
return extends_extends(extends_extends({
|
|
44312
44019
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44313
44020
|
type: "question-circle"
|
|
44314
44021
|
}),
|
|
@@ -44335,7 +44042,7 @@ function usePatchElement() {
|
|
|
44335
44042
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
44336
44043
|
// append a new element to elements (and create a new ref)
|
|
44337
44044
|
setElements(function (originElements) {
|
|
44338
|
-
return [].concat(
|
|
44045
|
+
return [].concat(_toConsumableArray(originElements), [element]);
|
|
44339
44046
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
44340
44047
|
// it works a little like useEffect
|
|
44341
44048
|
|
|
@@ -44400,7 +44107,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44400
44107
|
destroy: close,
|
|
44401
44108
|
update: function update(newConfig) {
|
|
44402
44109
|
setInnerConfig(function (originConfig) {
|
|
44403
|
-
return
|
|
44110
|
+
return extends_extends(extends_extends({}, originConfig), newConfig);
|
|
44404
44111
|
});
|
|
44405
44112
|
}
|
|
44406
44113
|
};
|
|
@@ -44409,7 +44116,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44409
44116
|
componentName: "Modal",
|
|
44410
44117
|
defaultLocale: locale_default.Modal
|
|
44411
44118
|
}, function (modalLocale) {
|
|
44412
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
44119
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, extends_extends({
|
|
44413
44120
|
prefixCls: prefixCls,
|
|
44414
44121
|
rootPrefixCls: rootPrefixCls
|
|
44415
44122
|
}, innerConfig, {
|
|
@@ -44456,7 +44163,7 @@ function useModal() {
|
|
|
44456
44163
|
|
|
44457
44164
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
44458
44165
|
if (actionQueue.length) {
|
|
44459
|
-
var cloneQueue =
|
|
44166
|
+
var cloneQueue = _toConsumableArray(actionQueue);
|
|
44460
44167
|
|
|
44461
44168
|
cloneQueue.forEach(function (action) {
|
|
44462
44169
|
action();
|
|
@@ -44493,7 +44200,7 @@ function useModal() {
|
|
|
44493
44200
|
destroyAction();
|
|
44494
44201
|
} else {
|
|
44495
44202
|
setActionQueue(function (prev) {
|
|
44496
|
-
return [].concat(
|
|
44203
|
+
return [].concat(_toConsumableArray(prev), [destroyAction]);
|
|
44497
44204
|
});
|
|
44498
44205
|
}
|
|
44499
44206
|
},
|
|
@@ -44508,7 +44215,7 @@ function useModal() {
|
|
|
44508
44215
|
updateAction();
|
|
44509
44216
|
} else {
|
|
44510
44217
|
setActionQueue(function (prev) {
|
|
44511
|
-
return [].concat(
|
|
44218
|
+
return [].concat(_toConsumableArray(prev), [updateAction]);
|
|
44512
44219
|
});
|
|
44513
44220
|
}
|
|
44514
44221
|
}
|
|
@@ -44953,44 +44660,40 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
44953
44660
|
|
|
44954
44661
|
|
|
44955
44662
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
44956
|
-
function
|
|
44957
|
-
|
|
44663
|
+
function esm_extends_extends() {
|
|
44664
|
+
esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
44958
44665
|
for (var i = 1; i < arguments.length; i++) {
|
|
44959
44666
|
var source = arguments[i];
|
|
44960
|
-
|
|
44961
44667
|
for (var key in source) {
|
|
44962
44668
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44963
44669
|
target[key] = source[key];
|
|
44964
44670
|
}
|
|
44965
44671
|
}
|
|
44966
44672
|
}
|
|
44967
|
-
|
|
44968
44673
|
return target;
|
|
44969
44674
|
};
|
|
44970
|
-
return
|
|
44675
|
+
return esm_extends_extends.apply(this, arguments);
|
|
44971
44676
|
}
|
|
44972
44677
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
44973
|
-
function
|
|
44678
|
+
function esm_typeof_typeof(obj) {
|
|
44974
44679
|
"@babel/helpers - typeof";
|
|
44975
44680
|
|
|
44976
|
-
return
|
|
44681
|
+
return esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44977
44682
|
return typeof obj;
|
|
44978
44683
|
} : function (obj) {
|
|
44979
44684
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44980
|
-
},
|
|
44685
|
+
}, esm_typeof_typeof(obj);
|
|
44981
44686
|
}
|
|
44982
44687
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
44983
44688
|
|
|
44984
44689
|
function _toPrimitive(input, hint) {
|
|
44985
|
-
if (
|
|
44690
|
+
if (esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
44986
44691
|
var prim = input[Symbol.toPrimitive];
|
|
44987
|
-
|
|
44988
44692
|
if (prim !== undefined) {
|
|
44989
44693
|
var res = prim.call(input, hint || "default");
|
|
44990
|
-
if (
|
|
44694
|
+
if (esm_typeof_typeof(res) !== "object") return res;
|
|
44991
44695
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44992
44696
|
}
|
|
44993
|
-
|
|
44994
44697
|
return (hint === "string" ? String : Number)(input);
|
|
44995
44698
|
}
|
|
44996
44699
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -44998,13 +44701,12 @@ function _toPrimitive(input, hint) {
|
|
|
44998
44701
|
|
|
44999
44702
|
function _toPropertyKey(arg) {
|
|
45000
44703
|
var key = _toPrimitive(arg, "string");
|
|
45001
|
-
return
|
|
44704
|
+
return esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
45002
44705
|
}
|
|
45003
44706
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
45004
44707
|
|
|
45005
|
-
function
|
|
44708
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
45006
44709
|
key = _toPropertyKey(key);
|
|
45007
|
-
|
|
45008
44710
|
if (key in obj) {
|
|
45009
44711
|
Object.defineProperty(obj, key, {
|
|
45010
44712
|
value: value,
|
|
@@ -45015,61 +44717,51 @@ function esm_defineProperty_defineProperty(obj, key, value) {
|
|
|
45015
44717
|
} else {
|
|
45016
44718
|
obj[key] = value;
|
|
45017
44719
|
}
|
|
45018
|
-
|
|
45019
44720
|
return obj;
|
|
45020
44721
|
}
|
|
45021
44722
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
45022
44723
|
|
|
45023
|
-
|
|
45024
|
-
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44724
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
45025
44725
|
var keys = Object.keys(object);
|
|
45026
|
-
|
|
45027
44726
|
if (Object.getOwnPropertySymbols) {
|
|
45028
44727
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
45029
44728
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
45030
44729
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
45031
44730
|
})), keys.push.apply(keys, symbols);
|
|
45032
44731
|
}
|
|
45033
|
-
|
|
45034
44732
|
return keys;
|
|
45035
44733
|
}
|
|
45036
|
-
|
|
45037
|
-
function esm_objectSpread2_objectSpread2(target) {
|
|
44734
|
+
function objectSpread2_objectSpread2(target) {
|
|
45038
44735
|
for (var i = 1; i < arguments.length; i++) {
|
|
45039
44736
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
45040
|
-
i % 2 ?
|
|
45041
|
-
|
|
45042
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
44737
|
+
i % 2 ? objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
44738
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
44739
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
45043
44740
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
45044
44741
|
});
|
|
45045
44742
|
}
|
|
45046
|
-
|
|
45047
44743
|
return target;
|
|
45048
44744
|
}
|
|
45049
44745
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
45050
|
-
function
|
|
44746
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
45051
44747
|
if (Array.isArray(arr)) return arr;
|
|
45052
44748
|
}
|
|
45053
44749
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
45054
|
-
function
|
|
44750
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
45055
44751
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
45056
|
-
|
|
45057
44752
|
if (null != _i) {
|
|
45058
44753
|
var _s,
|
|
45059
|
-
|
|
45060
|
-
|
|
45061
|
-
|
|
45062
|
-
|
|
45063
|
-
|
|
45064
|
-
|
|
45065
|
-
|
|
44754
|
+
_e,
|
|
44755
|
+
_x,
|
|
44756
|
+
_r,
|
|
44757
|
+
_arr = [],
|
|
44758
|
+
_n = !0,
|
|
44759
|
+
_d = !1;
|
|
45066
44760
|
try {
|
|
45067
44761
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
45068
44762
|
if (Object(_i) !== _i) return;
|
|
45069
44763
|
_n = !1;
|
|
45070
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
45071
|
-
;
|
|
45072
|
-
}
|
|
44764
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
45073
44765
|
} catch (err) {
|
|
45074
44766
|
_d = !0, _e = err;
|
|
45075
44767
|
} finally {
|
|
@@ -45079,32 +44771,27 @@ function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
45079
44771
|
if (_d) throw _e;
|
|
45080
44772
|
}
|
|
45081
44773
|
}
|
|
45082
|
-
|
|
45083
44774
|
return _arr;
|
|
45084
44775
|
}
|
|
45085
44776
|
}
|
|
45086
44777
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
45087
|
-
function
|
|
44778
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
45088
44779
|
if (len == null || len > arr.length) len = arr.length;
|
|
45089
|
-
|
|
45090
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
45091
|
-
arr2[i] = arr[i];
|
|
45092
|
-
}
|
|
45093
|
-
|
|
44780
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
45094
44781
|
return arr2;
|
|
45095
44782
|
}
|
|
45096
44783
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
45097
44784
|
|
|
45098
|
-
function
|
|
44785
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
45099
44786
|
if (!o) return;
|
|
45100
|
-
if (typeof o === "string") return
|
|
44787
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
45101
44788
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
45102
44789
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
45103
44790
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
45104
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
44791
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
45105
44792
|
}
|
|
45106
44793
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
45107
|
-
function
|
|
44794
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
45108
44795
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
45109
44796
|
}
|
|
45110
44797
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -45112,34 +44799,30 @@ function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
|
45112
44799
|
|
|
45113
44800
|
|
|
45114
44801
|
|
|
45115
|
-
function
|
|
45116
|
-
return
|
|
44802
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
44803
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
45117
44804
|
}
|
|
45118
44805
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
45119
|
-
function
|
|
44806
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
45120
44807
|
if (source == null) return {};
|
|
45121
44808
|
var target = {};
|
|
45122
44809
|
var sourceKeys = Object.keys(source);
|
|
45123
44810
|
var key, i;
|
|
45124
|
-
|
|
45125
44811
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
45126
44812
|
key = sourceKeys[i];
|
|
45127
44813
|
if (excluded.indexOf(key) >= 0) continue;
|
|
45128
44814
|
target[key] = source[key];
|
|
45129
44815
|
}
|
|
45130
|
-
|
|
45131
44816
|
return target;
|
|
45132
44817
|
}
|
|
45133
44818
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
45134
44819
|
|
|
45135
|
-
function
|
|
44820
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
45136
44821
|
if (source == null) return {};
|
|
45137
|
-
var target =
|
|
44822
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
45138
44823
|
var key, i;
|
|
45139
|
-
|
|
45140
44824
|
if (Object.getOwnPropertySymbols) {
|
|
45141
44825
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
45142
|
-
|
|
45143
44826
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
45144
44827
|
key = sourceSymbolKeys[i];
|
|
45145
44828
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -45147,7 +44830,6 @@ function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
45147
44830
|
target[key] = source[key];
|
|
45148
44831
|
}
|
|
45149
44832
|
}
|
|
45150
|
-
|
|
45151
44833
|
return target;
|
|
45152
44834
|
}
|
|
45153
44835
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -46095,14 +45777,14 @@ var index = (function () {
|
|
|
46095
45777
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
46096
45778
|
|
|
46097
45779
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
46098
|
-
|
|
45780
|
+
_inherits(ReactResizeObserver, _React$Component);
|
|
46099
45781
|
|
|
46100
|
-
var _super =
|
|
45782
|
+
var _super = _createSuper(ReactResizeObserver);
|
|
46101
45783
|
|
|
46102
45784
|
function ReactResizeObserver() {
|
|
46103
45785
|
var _this;
|
|
46104
45786
|
|
|
46105
|
-
|
|
45787
|
+
_classCallCheck(this, ReactResizeObserver);
|
|
46106
45788
|
|
|
46107
45789
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46108
45790
|
args[_key] = arguments[_key];
|
|
@@ -46153,7 +45835,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46153
45835
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
46154
45836
|
|
|
46155
45837
|
Promise.resolve().then(function () {
|
|
46156
|
-
onResize(
|
|
45838
|
+
onResize(_objectSpread2(_objectSpread2({}, size), {}, {
|
|
46157
45839
|
offsetWidth: mergedOffsetWidth,
|
|
46158
45840
|
offsetHeight: mergedOffsetHeight
|
|
46159
45841
|
}), target);
|
|
@@ -46169,7 +45851,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46169
45851
|
return _this;
|
|
46170
45852
|
}
|
|
46171
45853
|
|
|
46172
|
-
|
|
45854
|
+
_createClass(ReactResizeObserver, [{
|
|
46173
45855
|
key: "componentDidMount",
|
|
46174
45856
|
value: function componentDidMount() {
|
|
46175
45857
|
this.onComponentUpdated();
|
|
@@ -46283,7 +45965,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46283
45965
|
position: 'relative',
|
|
46284
45966
|
overflow: 'hidden'
|
|
46285
45967
|
};
|
|
46286
|
-
innerStyle =
|
|
45968
|
+
innerStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
46287
45969
|
transform: "translateY(".concat(offset, "px)"),
|
|
46288
45970
|
position: 'absolute',
|
|
46289
45971
|
left: 0,
|
|
@@ -46300,24 +45982,23 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46300
45982
|
onInnerResize();
|
|
46301
45983
|
}
|
|
46302
45984
|
}
|
|
46303
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
45985
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
46304
45986
|
style: innerStyle,
|
|
46305
|
-
className: classnames_default()(
|
|
45987
|
+
className: classnames_default()(defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
46306
45988
|
ref: ref
|
|
46307
45989
|
}, innerProps), children)));
|
|
46308
45990
|
});
|
|
46309
45991
|
Filler.displayName = 'Filler';
|
|
46310
45992
|
/* harmony default export */ var es_Filler = (Filler);
|
|
46311
45993
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
46312
|
-
function
|
|
45994
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
46313
45995
|
if (!(instance instanceof Constructor)) {
|
|
46314
45996
|
throw new TypeError("Cannot call a class as a function");
|
|
46315
45997
|
}
|
|
46316
45998
|
}
|
|
46317
45999
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
46318
46000
|
|
|
46319
|
-
|
|
46320
|
-
function esm_createClass_defineProperties(target, props) {
|
|
46001
|
+
function createClass_defineProperties(target, props) {
|
|
46321
46002
|
for (var i = 0; i < props.length; i++) {
|
|
46322
46003
|
var descriptor = props[i];
|
|
46323
46004
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -46326,30 +46007,28 @@ function esm_createClass_defineProperties(target, props) {
|
|
|
46326
46007
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
46327
46008
|
}
|
|
46328
46009
|
}
|
|
46329
|
-
|
|
46330
|
-
|
|
46331
|
-
if (
|
|
46332
|
-
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
46010
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
46011
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
46012
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
46333
46013
|
Object.defineProperty(Constructor, "prototype", {
|
|
46334
46014
|
writable: false
|
|
46335
46015
|
});
|
|
46336
46016
|
return Constructor;
|
|
46337
46017
|
}
|
|
46338
46018
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
46339
|
-
function
|
|
46340
|
-
|
|
46019
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
46020
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
46341
46021
|
o.__proto__ = p;
|
|
46342
46022
|
return o;
|
|
46343
46023
|
};
|
|
46344
|
-
return
|
|
46024
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
46345
46025
|
}
|
|
46346
46026
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
46347
46027
|
|
|
46348
|
-
function
|
|
46028
|
+
function inherits_inherits(subClass, superClass) {
|
|
46349
46029
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
46350
46030
|
throw new TypeError("Super expression must either be null or a function");
|
|
46351
46031
|
}
|
|
46352
|
-
|
|
46353
46032
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
46354
46033
|
constructor: {
|
|
46355
46034
|
value: subClass,
|
|
@@ -46360,21 +46039,20 @@ function esm_inherits_inherits(subClass, superClass) {
|
|
|
46360
46039
|
Object.defineProperty(subClass, "prototype", {
|
|
46361
46040
|
writable: false
|
|
46362
46041
|
});
|
|
46363
|
-
if (superClass)
|
|
46042
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
46364
46043
|
}
|
|
46365
46044
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
46366
|
-
function
|
|
46367
|
-
|
|
46045
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
46046
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
46368
46047
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46369
46048
|
};
|
|
46370
|
-
return
|
|
46049
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
46371
46050
|
}
|
|
46372
46051
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
46373
|
-
function
|
|
46052
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
46374
46053
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
46375
46054
|
if (Reflect.construct.sham) return false;
|
|
46376
46055
|
if (typeof Proxy === "function") return true;
|
|
46377
|
-
|
|
46378
46056
|
try {
|
|
46379
46057
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
46380
46058
|
return true;
|
|
@@ -46383,43 +46061,39 @@ function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
46383
46061
|
}
|
|
46384
46062
|
}
|
|
46385
46063
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
46386
|
-
function
|
|
46064
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
46387
46065
|
if (self === void 0) {
|
|
46388
46066
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46389
46067
|
}
|
|
46390
|
-
|
|
46391
46068
|
return self;
|
|
46392
46069
|
}
|
|
46393
46070
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
46394
46071
|
|
|
46395
46072
|
|
|
46396
|
-
function
|
|
46397
|
-
if (call && (
|
|
46073
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
46074
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
46398
46075
|
return call;
|
|
46399
46076
|
} else if (call !== void 0) {
|
|
46400
46077
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
46401
46078
|
}
|
|
46402
|
-
|
|
46403
|
-
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
46079
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
46404
46080
|
}
|
|
46405
46081
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
46406
46082
|
|
|
46407
46083
|
|
|
46408
46084
|
|
|
46409
|
-
function
|
|
46410
|
-
var hasNativeReflectConstruct =
|
|
46085
|
+
function createSuper_createSuper(Derived) {
|
|
46086
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
46411
46087
|
return function _createSuperInternal() {
|
|
46412
|
-
var Super =
|
|
46413
|
-
|
|
46414
|
-
|
|
46088
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
46089
|
+
result;
|
|
46415
46090
|
if (hasNativeReflectConstruct) {
|
|
46416
|
-
var NewTarget =
|
|
46091
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
46417
46092
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
46418
46093
|
} else {
|
|
46419
46094
|
result = Super.apply(this, arguments);
|
|
46420
46095
|
}
|
|
46421
|
-
|
|
46422
|
-
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46096
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46423
46097
|
};
|
|
46424
46098
|
}
|
|
46425
46099
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -46494,11 +46168,11 @@ function getPageY(e) {
|
|
|
46494
46168
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
46495
46169
|
}
|
|
46496
46170
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
46497
|
-
|
|
46498
|
-
var _super =
|
|
46171
|
+
inherits_inherits(ScrollBar, _React$Component);
|
|
46172
|
+
var _super = createSuper_createSuper(ScrollBar);
|
|
46499
46173
|
function ScrollBar() {
|
|
46500
46174
|
var _this;
|
|
46501
|
-
|
|
46175
|
+
classCallCheck_classCallCheck(this, ScrollBar);
|
|
46502
46176
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46503
46177
|
args[_key] = arguments[_key];
|
|
46504
46178
|
}
|
|
@@ -46626,7 +46300,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46626
46300
|
};
|
|
46627
46301
|
return _this;
|
|
46628
46302
|
}
|
|
46629
|
-
|
|
46303
|
+
createClass_createClass(ScrollBar, [{
|
|
46630
46304
|
key: "componentDidMount",
|
|
46631
46305
|
value: function componentDidMount() {
|
|
46632
46306
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -46660,7 +46334,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46660
46334
|
var mergedVisible = canScroll && visible;
|
|
46661
46335
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46662
46336
|
ref: this.scrollbarRef,
|
|
46663
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46337
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46664
46338
|
style: {
|
|
46665
46339
|
width: 8,
|
|
46666
46340
|
top: 0,
|
|
@@ -46673,7 +46347,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46673
46347
|
onMouseMove: this.delayHidden
|
|
46674
46348
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46675
46349
|
ref: this.thumbRef,
|
|
46676
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46350
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46677
46351
|
style: {
|
|
46678
46352
|
width: '100%',
|
|
46679
46353
|
height: spinHeight,
|
|
@@ -46752,11 +46426,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46752
46426
|
// Firefox has low performance of map.
|
|
46753
46427
|
var CacheMap = /*#__PURE__*/function () {
|
|
46754
46428
|
function CacheMap() {
|
|
46755
|
-
|
|
46429
|
+
classCallCheck_classCallCheck(this, CacheMap);
|
|
46756
46430
|
this.maps = void 0;
|
|
46757
46431
|
this.maps = Object.create(null);
|
|
46758
46432
|
}
|
|
46759
|
-
|
|
46433
|
+
createClass_createClass(CacheMap, [{
|
|
46760
46434
|
key: "set",
|
|
46761
46435
|
value: function set(key, value) {
|
|
46762
46436
|
this.maps[key] = value;
|
|
@@ -46779,7 +46453,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46779
46453
|
|
|
46780
46454
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46781
46455
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46782
|
-
_React$useState2 =
|
|
46456
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46783
46457
|
updatedMark = _React$useState2[0],
|
|
46784
46458
|
setUpdatedMark = _React$useState2[1];
|
|
46785
46459
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46846,7 +46520,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46846
46520
|
es_raf.cancel(scrollRef.current);
|
|
46847
46521
|
if (typeof arg === 'number') {
|
|
46848
46522
|
syncScrollTop(arg);
|
|
46849
|
-
} else if (arg &&
|
|
46523
|
+
} else if (arg && esm_typeof_typeof(arg) === 'object') {
|
|
46850
46524
|
var index;
|
|
46851
46525
|
var align = arg.align;
|
|
46852
46526
|
if ('index' in arg) {
|
|
@@ -47002,11 +46676,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
47002
46676
|
|
|
47003
46677
|
function useDiffItem(data, getKey, onDiff) {
|
|
47004
46678
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
47005
|
-
_React$useState2 =
|
|
46679
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
47006
46680
|
prevData = _React$useState2[0],
|
|
47007
46681
|
setPrevData = _React$useState2[1];
|
|
47008
46682
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
47009
|
-
_React$useState4 =
|
|
46683
|
+
_React$useState4 = esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
47010
46684
|
diffItem = _React$useState4[0],
|
|
47011
46685
|
setDiffItem = _React$useState4[1];
|
|
47012
46686
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -47021,7 +46695,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
47021
46695
|
}
|
|
47022
46696
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
47023
46697
|
|
|
47024
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
46698
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
47025
46699
|
/* harmony default export */ var isFirefox = (isFF);
|
|
47026
46700
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
47027
46701
|
|
|
@@ -47240,16 +46914,16 @@ function RawList(props, ref) {
|
|
|
47240
46914
|
onScroll = props.onScroll,
|
|
47241
46915
|
onVisibleChange = props.onVisibleChange,
|
|
47242
46916
|
innerProps = props.innerProps,
|
|
47243
|
-
restProps =
|
|
46917
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
47244
46918
|
// ================================= MISC =================================
|
|
47245
46919
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
47246
46920
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
47247
46921
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
47248
|
-
_useState2 =
|
|
46922
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
47249
46923
|
scrollTop = _useState2[0],
|
|
47250
46924
|
setScrollTop = _useState2[1];
|
|
47251
46925
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
47252
|
-
_useState4 =
|
|
46926
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
47253
46927
|
scrollMoving = _useState4[0],
|
|
47254
46928
|
setScrollMoving = _useState4[1];
|
|
47255
46929
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -47289,12 +46963,12 @@ function RawList(props, ref) {
|
|
|
47289
46963
|
});
|
|
47290
46964
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
47291
46965
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
47292
|
-
_useDiffItem2 =
|
|
46966
|
+
_useDiffItem2 = esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
47293
46967
|
diffItem = _useDiffItem2[0];
|
|
47294
46968
|
diffItemRef.current = diffItem;
|
|
47295
46969
|
// ================================ Height ================================
|
|
47296
46970
|
var _useHeights = useHeights(getKey, null, null),
|
|
47297
|
-
_useHeights2 =
|
|
46971
|
+
_useHeights2 = esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
47298
46972
|
setInstanceRef = _useHeights2[0],
|
|
47299
46973
|
collectHeight = _useHeights2[1],
|
|
47300
46974
|
heights = _useHeights2[2],
|
|
@@ -47400,7 +47074,7 @@ function RawList(props, ref) {
|
|
|
47400
47074
|
return newTop;
|
|
47401
47075
|
});
|
|
47402
47076
|
}),
|
|
47403
|
-
_useFrameWheel2 =
|
|
47077
|
+
_useFrameWheel2 = esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
47404
47078
|
onRawWheel = _useFrameWheel2[0],
|
|
47405
47079
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
47406
47080
|
// Mobile touch move
|
|
@@ -47454,7 +47128,7 @@ function RawList(props, ref) {
|
|
|
47454
47128
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
47455
47129
|
var componentStyle = null;
|
|
47456
47130
|
if (height) {
|
|
47457
|
-
componentStyle =
|
|
47131
|
+
componentStyle = objectSpread2_objectSpread2(defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
47458
47132
|
if (useVirtual) {
|
|
47459
47133
|
componentStyle.overflowY = 'hidden';
|
|
47460
47134
|
if (scrollMoving) {
|
|
@@ -47462,8 +47136,8 @@ function RawList(props, ref) {
|
|
|
47462
47136
|
}
|
|
47463
47137
|
}
|
|
47464
47138
|
}
|
|
47465
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47466
|
-
style:
|
|
47139
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
47140
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
47467
47141
|
position: 'relative'
|
|
47468
47142
|
}),
|
|
47469
47143
|
className: mergedClassName
|
|
@@ -47609,7 +47283,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
47609
47283
|
return values;
|
|
47610
47284
|
}
|
|
47611
47285
|
function removeLastEnabledValue(measureValues, values) {
|
|
47612
|
-
var newValues =
|
|
47286
|
+
var newValues = _toConsumableArray(values);
|
|
47613
47287
|
|
|
47614
47288
|
var removeIndex;
|
|
47615
47289
|
|
|
@@ -47743,7 +47417,7 @@ function flattenOptions(options) {
|
|
|
47743
47417
|
*/
|
|
47744
47418
|
|
|
47745
47419
|
function injectPropsWithOption(option) {
|
|
47746
|
-
var newOption =
|
|
47420
|
+
var newOption = _objectSpread2({}, option);
|
|
47747
47421
|
|
|
47748
47422
|
if (!('props' in newOption)) {
|
|
47749
47423
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47777,7 +47451,7 @@ function findValueOption(values, options) {
|
|
|
47777
47451
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47778
47452
|
|
|
47779
47453
|
if (!option) {
|
|
47780
|
-
option =
|
|
47454
|
+
option = _objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47781
47455
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47782
47456
|
}));
|
|
47783
47457
|
}
|
|
@@ -47796,7 +47470,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47796
47470
|
};
|
|
47797
47471
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47798
47472
|
|
|
47799
|
-
if (prevValItem &&
|
|
47473
|
+
if (prevValItem && typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47800
47474
|
result.label = prevValItem.label;
|
|
47801
47475
|
|
|
47802
47476
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -47844,7 +47518,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47844
47518
|
var filterFunc;
|
|
47845
47519
|
|
|
47846
47520
|
if (filterOption === false) {
|
|
47847
|
-
return
|
|
47521
|
+
return _toConsumableArray(options);
|
|
47848
47522
|
}
|
|
47849
47523
|
|
|
47850
47524
|
if (typeof filterOption === 'function') {
|
|
@@ -47868,7 +47542,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47868
47542
|
});
|
|
47869
47543
|
|
|
47870
47544
|
if (subOptions.length) {
|
|
47871
|
-
filteredOptions.push(
|
|
47545
|
+
filteredOptions.push(_objectSpread2(_objectSpread2({}, item), {}, {
|
|
47872
47546
|
options: subOptions
|
|
47873
47547
|
}));
|
|
47874
47548
|
}
|
|
@@ -47902,7 +47576,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
47902
47576
|
var list = str.split(token);
|
|
47903
47577
|
match = match || list.length > 1;
|
|
47904
47578
|
return list.reduce(function (prevList, unitStr) {
|
|
47905
|
-
return [].concat(
|
|
47579
|
+
return [].concat(_toConsumableArray(prevList), _toConsumableArray(separate(unitStr, restTokens)));
|
|
47906
47580
|
}, []).filter(function (unit) {
|
|
47907
47581
|
return unit;
|
|
47908
47582
|
});
|
|
@@ -47922,7 +47596,7 @@ function isValueDisabled(value, options) {
|
|
|
47922
47596
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
47923
47597
|
var values = commonUtil_toArray(value).slice().sort();
|
|
47924
47598
|
|
|
47925
|
-
var cloneOptions =
|
|
47599
|
+
var cloneOptions = _toConsumableArray(options); // Convert options value to set
|
|
47926
47600
|
|
|
47927
47601
|
|
|
47928
47602
|
var optionValues = new Set();
|
|
@@ -47942,7 +47616,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
47942
47616
|
if (!optionValues.has(val)) {
|
|
47943
47617
|
var _ref9;
|
|
47944
47618
|
|
|
47945
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
47619
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, _defineProperty(_ref9, optionLabelProp, item.label), _defineProperty(_ref9, "value", val), _ref9) : {
|
|
47946
47620
|
value: val
|
|
47947
47621
|
});
|
|
47948
47622
|
}
|
|
@@ -48208,7 +47882,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48208
47882
|
children = itemData.children;
|
|
48209
47883
|
var attrs = pickAttrs(itemData, true);
|
|
48210
47884
|
var mergedLabel = childrenAsData ? children : label;
|
|
48211
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47885
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
48212
47886
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
48213
47887
|
}, attrs, {
|
|
48214
47888
|
key: index,
|
|
@@ -48258,13 +47932,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48258
47932
|
children = data.children,
|
|
48259
47933
|
style = data.style,
|
|
48260
47934
|
className = data.className,
|
|
48261
|
-
otherProps =
|
|
47935
|
+
otherProps = _objectWithoutProperties(data, OptionList_excluded);
|
|
48262
47936
|
|
|
48263
47937
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
48264
47938
|
|
|
48265
47939
|
var selected = values.has(value);
|
|
48266
47940
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
48267
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
47941
|
+
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), _defineProperty(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
|
|
48268
47942
|
var mergedLabel = childrenAsData ? children : label;
|
|
48269
47943
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
48270
47944
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -48275,7 +47949,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48275
47949
|
optionTitle = title;
|
|
48276
47950
|
}
|
|
48277
47951
|
|
|
48278
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47952
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, passedProps, {
|
|
48279
47953
|
"aria-selected": selected,
|
|
48280
47954
|
className: optionClassName,
|
|
48281
47955
|
title: optionTitle,
|
|
@@ -48336,9 +48010,9 @@ function convertNodeToOption(node) {
|
|
|
48336
48010
|
_node$props = node.props,
|
|
48337
48011
|
children = _node$props.children,
|
|
48338
48012
|
value = _node$props.value,
|
|
48339
|
-
restProps =
|
|
48013
|
+
restProps = _objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
48340
48014
|
|
|
48341
|
-
return
|
|
48015
|
+
return _objectSpread2({
|
|
48342
48016
|
key: key,
|
|
48343
48017
|
value: value !== undefined ? value : key,
|
|
48344
48018
|
children: children
|
|
@@ -48356,13 +48030,13 @@ function convertChildrenToData(nodes) {
|
|
|
48356
48030
|
key = node.key,
|
|
48357
48031
|
_node$props2 = node.props,
|
|
48358
48032
|
children = _node$props2.children,
|
|
48359
|
-
restProps =
|
|
48033
|
+
restProps = _objectWithoutProperties(_node$props2, _excluded2);
|
|
48360
48034
|
|
|
48361
48035
|
if (optionOnly || !isSelectOptGroup) {
|
|
48362
48036
|
return convertNodeToOption(node);
|
|
48363
48037
|
}
|
|
48364
48038
|
|
|
48365
|
-
return
|
|
48039
|
+
return _objectSpread2(_objectSpread2({
|
|
48366
48040
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
48367
48041
|
label: key
|
|
48368
48042
|
}, restProps), {}, {
|
|
@@ -48464,7 +48138,7 @@ function InternalItem(props, ref) {
|
|
|
48464
48138
|
order = props.order,
|
|
48465
48139
|
_props$component = props.component,
|
|
48466
48140
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48467
|
-
restProps =
|
|
48141
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48468
48142
|
|
|
48469
48143
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48470
48144
|
|
|
@@ -48498,9 +48172,9 @@ function InternalItem(props, ref) {
|
|
|
48498
48172
|
overflowProps['aria-hidden'] = true;
|
|
48499
48173
|
}
|
|
48500
48174
|
|
|
48501
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48175
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48502
48176
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48503
|
-
style:
|
|
48177
|
+
style: _objectSpread2(_objectSpread2({}, overflowStyle), style)
|
|
48504
48178
|
}, overflowProps, restProps, {
|
|
48505
48179
|
ref: ref
|
|
48506
48180
|
}), childNode);
|
|
@@ -48585,23 +48259,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48585
48259
|
if (!context) {
|
|
48586
48260
|
var _props$component = props.component,
|
|
48587
48261
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48588
|
-
_restProps =
|
|
48262
|
+
_restProps = _objectWithoutProperties(props, ["component"]);
|
|
48589
48263
|
|
|
48590
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48264
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, _restProps, {
|
|
48591
48265
|
ref: ref
|
|
48592
48266
|
}));
|
|
48593
48267
|
}
|
|
48594
48268
|
|
|
48595
48269
|
var contextClassName = context.className,
|
|
48596
|
-
restContext =
|
|
48270
|
+
restContext = _objectWithoutProperties(context, ["className"]);
|
|
48597
48271
|
|
|
48598
48272
|
var className = props.className,
|
|
48599
|
-
restProps =
|
|
48273
|
+
restProps = _objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48600
48274
|
|
|
48601
48275
|
|
|
48602
48276
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48603
48277
|
value: null
|
|
48604
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48278
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({
|
|
48605
48279
|
ref: ref,
|
|
48606
48280
|
className: classnames_default()(contextClassName, className)
|
|
48607
48281
|
}, restContext, restProps)));
|
|
@@ -48651,7 +48325,7 @@ function Overflow(props, ref) {
|
|
|
48651
48325
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48652
48326
|
itemComponent = props.itemComponent,
|
|
48653
48327
|
onVisibleChange = props.onVisibleChange,
|
|
48654
|
-
restProps =
|
|
48328
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48655
48329
|
|
|
48656
48330
|
var createUseState = useBatchFrameState();
|
|
48657
48331
|
var fullySSR = ssr === 'full';
|
|
@@ -48861,7 +48535,7 @@ function Overflow(props, ref) {
|
|
|
48861
48535
|
var key = getKey(item, index);
|
|
48862
48536
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48863
48537
|
key: key,
|
|
48864
|
-
value:
|
|
48538
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
|
|
48865
48539
|
order: index,
|
|
48866
48540
|
item: item,
|
|
48867
48541
|
itemKey: key,
|
|
@@ -48871,7 +48545,7 @@ function Overflow(props, ref) {
|
|
|
48871
48545
|
}, renderRawItem(item, index));
|
|
48872
48546
|
} : function (item, index) {
|
|
48873
48547
|
var key = getKey(item, index);
|
|
48874
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48548
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48875
48549
|
order: index,
|
|
48876
48550
|
key: key,
|
|
48877
48551
|
item: item,
|
|
@@ -48892,18 +48566,18 @@ function Overflow(props, ref) {
|
|
|
48892
48566
|
|
|
48893
48567
|
if (!renderRawRest) {
|
|
48894
48568
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48895
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48569
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48896
48570
|
} else if (renderRawRest) {
|
|
48897
48571
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48898
|
-
value:
|
|
48572
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48899
48573
|
}, renderRawRest(omittedItems));
|
|
48900
48574
|
}
|
|
48901
48575
|
|
|
48902
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48576
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48903
48577
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48904
48578
|
style: style,
|
|
48905
48579
|
ref: ref
|
|
48906
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48580
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48907
48581
|
order: mergedDisplayCount,
|
|
48908
48582
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
48909
48583
|
registerSize: registerSuffixSize,
|
|
@@ -48968,7 +48642,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48968
48642
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
48969
48643
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
48970
48644
|
style = _inputNode$props.style;
|
|
48971
|
-
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode,
|
|
48645
|
+
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode, _objectSpread2(_objectSpread2({
|
|
48972
48646
|
id: id,
|
|
48973
48647
|
ref: composeRef(ref, originRef),
|
|
48974
48648
|
disabled: disabled,
|
|
@@ -48977,7 +48651,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48977
48651
|
type: 'search',
|
|
48978
48652
|
autoFocus: autoFocus,
|
|
48979
48653
|
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),
|
|
48980
|
-
style:
|
|
48654
|
+
style: _objectSpread2(_objectSpread2({}, style), {}, {
|
|
48981
48655
|
opacity: editable ? null : 0
|
|
48982
48656
|
}),
|
|
48983
48657
|
role: 'combobox',
|
|
@@ -49125,7 +48799,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
49125
48799
|
|
|
49126
48800
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
49127
48801
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
49128
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
48802
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), _defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
49129
48803
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
49130
48804
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
49131
48805
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -49540,7 +49214,7 @@ var Selector = function Selector(props, ref) {
|
|
|
49540
49214
|
onInputCompositionStart: onInputCompositionStart,
|
|
49541
49215
|
onInputCompositionEnd: onInputCompositionEnd
|
|
49542
49216
|
};
|
|
49543
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
49217
|
+
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector, extends_extends({}, props, sharedProps)) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Selector_SingleSelector, extends_extends({}, props, sharedProps));
|
|
49544
49218
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
49545
49219
|
ref: domRef,
|
|
49546
49220
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -49585,7 +49259,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
49585
49259
|
|
|
49586
49260
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
49587
49261
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
49588
|
-
return
|
|
49262
|
+
return _objectSpread2(_objectSpread2({}, baseAlign), align);
|
|
49589
49263
|
}
|
|
49590
49264
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
49591
49265
|
var points = align.points;
|
|
@@ -49649,7 +49323,7 @@ function Mask_Mask(props) {
|
|
|
49649
49323
|
var motion = {};
|
|
49650
49324
|
|
|
49651
49325
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49652
|
-
motion =
|
|
49326
|
+
motion = _objectSpread2({
|
|
49653
49327
|
motionAppear: true
|
|
49654
49328
|
}, getMotion({
|
|
49655
49329
|
motion: maskMotion,
|
|
@@ -49659,7 +49333,7 @@ function Mask_Mask(props) {
|
|
|
49659
49333
|
}));
|
|
49660
49334
|
}
|
|
49661
49335
|
|
|
49662
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49336
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({}, motion, {
|
|
49663
49337
|
visible: visible,
|
|
49664
49338
|
removeOnLeave: true
|
|
49665
49339
|
}), function (_ref) {
|
|
@@ -51171,7 +50845,7 @@ function getElement(func) {
|
|
|
51171
50845
|
}
|
|
51172
50846
|
|
|
51173
50847
|
function getPoint(point) {
|
|
51174
|
-
if (
|
|
50848
|
+
if (typeof_typeof(point) !== 'object' || !point) return null;
|
|
51175
50849
|
return point;
|
|
51176
50850
|
}
|
|
51177
50851
|
|
|
@@ -51385,9 +51059,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51385
51059
|
}
|
|
51386
51060
|
|
|
51387
51061
|
if (status) {
|
|
51388
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
51062
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
51389
51063
|
var index, nextStatus;
|
|
51390
|
-
return
|
|
51064
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
51391
51065
|
while (1) {
|
|
51392
51066
|
switch (_context.prev = _context.next) {
|
|
51393
51067
|
case 0:
|
|
@@ -51560,7 +51234,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51560
51234
|
} // ======================== Motion ========================
|
|
51561
51235
|
|
|
51562
51236
|
|
|
51563
|
-
var motion =
|
|
51237
|
+
var motion = _objectSpread2({}, getMotion(props));
|
|
51564
51238
|
|
|
51565
51239
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
51566
51240
|
var originHandler = motion[eventName];
|
|
@@ -51593,7 +51267,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51593
51267
|
};
|
|
51594
51268
|
}); // ======================== Render ========================
|
|
51595
51269
|
|
|
51596
|
-
var mergedStyle =
|
|
51270
|
+
var mergedStyle = _objectSpread2(_objectSpread2({}, stretchStyle), {}, {
|
|
51597
51271
|
zIndex: zIndex,
|
|
51598
51272
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
51599
51273
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -51614,7 +51288,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51614
51288
|
}, children);
|
|
51615
51289
|
}
|
|
51616
51290
|
|
|
51617
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51291
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51618
51292
|
visible: visible,
|
|
51619
51293
|
ref: elementRef,
|
|
51620
51294
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51642,7 +51316,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51642
51316
|
onMouseLeave: onMouseLeave,
|
|
51643
51317
|
onMouseDownCapture: onMouseDown,
|
|
51644
51318
|
onTouchStartCapture: onTouchStart,
|
|
51645
|
-
style:
|
|
51319
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51646
51320
|
}, childNode));
|
|
51647
51321
|
});
|
|
51648
51322
|
});
|
|
@@ -51677,7 +51351,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51677
51351
|
};
|
|
51678
51352
|
}); // ======================== Render ========================
|
|
51679
51353
|
|
|
51680
|
-
var mergedStyle =
|
|
51354
|
+
var mergedStyle = _objectSpread2({
|
|
51681
51355
|
zIndex: zIndex
|
|
51682
51356
|
}, popupStyle);
|
|
51683
51357
|
|
|
@@ -51694,7 +51368,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51694
51368
|
childNode = popupRender(childNode);
|
|
51695
51369
|
}
|
|
51696
51370
|
|
|
51697
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51371
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51698
51372
|
visible: visible,
|
|
51699
51373
|
ref: elementRef,
|
|
51700
51374
|
removeOnLeave: true
|
|
@@ -51705,7 +51379,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51705
51379
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51706
51380
|
ref: motionRef,
|
|
51707
51381
|
className: mergedClassName,
|
|
51708
|
-
style:
|
|
51382
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51709
51383
|
}, childNode);
|
|
51710
51384
|
});
|
|
51711
51385
|
});
|
|
@@ -51726,7 +51400,7 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51726
51400
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51727
51401
|
var visible = _ref.visible,
|
|
51728
51402
|
mobile = _ref.mobile,
|
|
51729
|
-
props =
|
|
51403
|
+
props = _objectWithoutProperties(_ref, Popup_excluded);
|
|
51730
51404
|
|
|
51731
51405
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51732
51406
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
@@ -51738,7 +51412,7 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51738
51412
|
inMobile = _useState4[0],
|
|
51739
51413
|
setInMobile = _useState4[1];
|
|
51740
51414
|
|
|
51741
|
-
var cloneProps =
|
|
51415
|
+
var cloneProps = _objectSpread2(_objectSpread2({}, props), {}, {
|
|
51742
51416
|
visible: innerVisible
|
|
51743
51417
|
}); // We check mobile in visible changed here.
|
|
51744
51418
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51751,10 +51425,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51751
51425
|
setInMobile(isMobile());
|
|
51752
51426
|
}
|
|
51753
51427
|
}, [visible, mobile]);
|
|
51754
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51428
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, extends_extends({}, cloneProps, {
|
|
51755
51429
|
mobile: mobile,
|
|
51756
51430
|
ref: ref
|
|
51757
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51431
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, extends_extends({}, cloneProps, {
|
|
51758
51432
|
ref: ref
|
|
51759
51433
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51760
51434
|
|
|
@@ -51808,14 +51482,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51808
51482
|
|
|
51809
51483
|
function generateTrigger(PortalComponent) {
|
|
51810
51484
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51811
|
-
|
|
51485
|
+
_inherits(Trigger, _React$Component);
|
|
51812
51486
|
|
|
51813
|
-
var _super =
|
|
51487
|
+
var _super = _createSuper(Trigger);
|
|
51814
51488
|
|
|
51815
51489
|
function Trigger(props) {
|
|
51816
51490
|
var _this;
|
|
51817
51491
|
|
|
51818
|
-
|
|
51492
|
+
_classCallCheck(this, Trigger);
|
|
51819
51493
|
|
|
51820
51494
|
_this = _super.call(this, props);
|
|
51821
51495
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -52003,7 +51677,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52003
51677
|
} catch (err) {// Do nothing
|
|
52004
51678
|
}
|
|
52005
51679
|
|
|
52006
|
-
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(
|
|
51680
|
+
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(_assertThisInitialized(_this));
|
|
52007
51681
|
};
|
|
52008
51682
|
|
|
52009
51683
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -52064,7 +51738,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52064
51738
|
|
|
52065
51739
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
52066
51740
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
52067
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup,
|
|
51741
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup, extends_extends({
|
|
52068
51742
|
prefixCls: prefixCls,
|
|
52069
51743
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
52070
51744
|
visible: popupVisible,
|
|
@@ -52177,7 +51851,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52177
51851
|
return _this;
|
|
52178
51852
|
}
|
|
52179
51853
|
|
|
52180
|
-
|
|
51854
|
+
_createClass(Trigger, [{
|
|
52181
51855
|
key: "componentDidMount",
|
|
52182
51856
|
value: function componentDidMount() {
|
|
52183
51857
|
this.componentDidUpdate();
|
|
@@ -52502,7 +52176,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52502
52176
|
newChildProps.className = childrenClassName;
|
|
52503
52177
|
}
|
|
52504
52178
|
|
|
52505
|
-
var cloneProps =
|
|
52179
|
+
var cloneProps = _objectSpread2({}, newChildProps);
|
|
52506
52180
|
|
|
52507
52181
|
if (supportRef(child)) {
|
|
52508
52182
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -52643,7 +52317,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52643
52317
|
empty = props.empty,
|
|
52644
52318
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
52645
52319
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
52646
|
-
restProps =
|
|
52320
|
+
restProps = _objectWithoutProperties(props, SelectTrigger_excluded);
|
|
52647
52321
|
|
|
52648
52322
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
52649
52323
|
var popupNode = popupElement;
|
|
@@ -52667,7 +52341,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52667
52341
|
};
|
|
52668
52342
|
});
|
|
52669
52343
|
|
|
52670
|
-
var popupStyle =
|
|
52344
|
+
var popupStyle = _objectSpread2({
|
|
52671
52345
|
minWidth: containerWidth
|
|
52672
52346
|
}, dropdownStyle);
|
|
52673
52347
|
|
|
@@ -52677,7 +52351,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52677
52351
|
popupStyle.width = containerWidth;
|
|
52678
52352
|
}
|
|
52679
52353
|
|
|
52680
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
52354
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, extends_extends({}, restProps, {
|
|
52681
52355
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
52682
52356
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
52683
52357
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -52690,7 +52364,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52690
52364
|
popupAlign: dropdownAlign,
|
|
52691
52365
|
popupVisible: visible,
|
|
52692
52366
|
getPopupContainer: getPopupContainer,
|
|
52693
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52367
|
+
popupClassName: classnames_default()(dropdownClassName, _defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
52694
52368
|
popupStyle: popupStyle,
|
|
52695
52369
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
52696
52370
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52793,7 +52467,7 @@ function useCacheDisplayValue(values) {
|
|
|
52793
52467
|
var cacheLabel = valueLabels.get(item.value);
|
|
52794
52468
|
|
|
52795
52469
|
if (item.isCacheable && cacheLabel) {
|
|
52796
|
-
return
|
|
52470
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
52797
52471
|
label: cacheLabel
|
|
52798
52472
|
});
|
|
52799
52473
|
}
|
|
@@ -52955,7 +52629,7 @@ function generateSelector(config) {
|
|
|
52955
52629
|
onClear = props.onClear,
|
|
52956
52630
|
_props$internalProps = props.internalProps,
|
|
52957
52631
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
52958
|
-
restProps =
|
|
52632
|
+
restProps = _objectWithoutProperties(props, generate_excluded);
|
|
52959
52633
|
|
|
52960
52634
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
52961
52635
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -53093,7 +52767,7 @@ function generateSelector(config) {
|
|
|
53093
52767
|
|
|
53094
52768
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
53095
52769
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
53096
|
-
return
|
|
52770
|
+
return _toConsumableArray(mergedOptions);
|
|
53097
52771
|
}
|
|
53098
52772
|
|
|
53099
52773
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -53114,7 +52788,7 @@ function generateSelector(config) {
|
|
|
53114
52788
|
}
|
|
53115
52789
|
|
|
53116
52790
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
53117
|
-
return
|
|
52791
|
+
return _toConsumableArray(filteredOptions).sort(filterSort);
|
|
53118
52792
|
}
|
|
53119
52793
|
|
|
53120
52794
|
return filteredOptions;
|
|
@@ -53137,7 +52811,7 @@ function generateSelector(config) {
|
|
|
53137
52811
|
labelInValue: mergedLabelInValue,
|
|
53138
52812
|
optionLabelProp: mergedOptionLabelProp
|
|
53139
52813
|
});
|
|
53140
|
-
return
|
|
52814
|
+
return _objectSpread2(_objectSpread2({}, displayValue), {}, {
|
|
53141
52815
|
disabled: isValueDisabled(val, valueOptions)
|
|
53142
52816
|
});
|
|
53143
52817
|
});
|
|
@@ -53211,7 +52885,7 @@ function generateSelector(config) {
|
|
|
53211
52885
|
}); // We will cache option in case it removed by ajax
|
|
53212
52886
|
|
|
53213
52887
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
53214
|
-
var clone =
|
|
52888
|
+
var clone = _objectSpread2({}, option);
|
|
53215
52889
|
|
|
53216
52890
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
53217
52891
|
get: function get() {
|
|
@@ -53267,13 +52941,13 @@ function generateSelector(config) {
|
|
|
53267
52941
|
};
|
|
53268
52942
|
|
|
53269
52943
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
53270
|
-
onInternalSelect(newValue,
|
|
52944
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53271
52945
|
source: 'option'
|
|
53272
52946
|
}));
|
|
53273
52947
|
};
|
|
53274
52948
|
|
|
53275
52949
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
53276
|
-
onInternalSelect(newValue,
|
|
52950
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53277
52951
|
source: 'selection'
|
|
53278
52952
|
}));
|
|
53279
52953
|
}; // ============================= Input ==============================
|
|
@@ -53357,7 +53031,7 @@ function generateSelector(config) {
|
|
|
53357
53031
|
});
|
|
53358
53032
|
}
|
|
53359
53033
|
|
|
53360
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53034
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), _toConsumableArray(patchRawValues))));
|
|
53361
53035
|
triggerChange(newRawValues);
|
|
53362
53036
|
newRawValues.forEach(function (newRawValue) {
|
|
53363
53037
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53386,7 +53060,7 @@ function generateSelector(config) {
|
|
|
53386
53060
|
return;
|
|
53387
53061
|
}
|
|
53388
53062
|
|
|
53389
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53063
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [searchText])));
|
|
53390
53064
|
triggerChange(newRawValues);
|
|
53391
53065
|
newRawValues.forEach(function (newRawValue) {
|
|
53392
53066
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53519,7 +53193,7 @@ function generateSelector(config) {
|
|
|
53519
53193
|
// `tags` mode should move `searchValue` into values
|
|
53520
53194
|
if (mode === 'tags') {
|
|
53521
53195
|
triggerSearch('', false, false);
|
|
53522
|
-
triggerChange(Array.from(new Set([].concat(
|
|
53196
|
+
triggerChange(Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
53523
53197
|
} else if (mode === 'multiple') {
|
|
53524
53198
|
// `multiple` mode only clean the search value but not trigger event
|
|
53525
53199
|
setInnerSearchValue('');
|
|
@@ -53677,7 +53351,7 @@ function generateSelector(config) {
|
|
|
53677
53351
|
|
|
53678
53352
|
if (mergedShowArrow) {
|
|
53679
53353
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
53680
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53354
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), _defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
53681
53355
|
customizeIcon: inputIcon,
|
|
53682
53356
|
customizeIconProps: {
|
|
53683
53357
|
loading: loading,
|
|
@@ -53693,7 +53367,7 @@ function generateSelector(config) {
|
|
|
53693
53367
|
if (false) {} // ============================= Render =============================
|
|
53694
53368
|
|
|
53695
53369
|
|
|
53696
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
53370
|
+
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-focused"), mockFocused), _defineProperty(_classNames2, "".concat(prefixCls, "-multiple"), isMultiple), _defineProperty(_classNames2, "".concat(prefixCls, "-single"), !isMultiple), _defineProperty(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), _defineProperty(_classNames2, "".concat(prefixCls, "-show-arrow"), mergedShowArrow), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-loading"), loading), _defineProperty(_classNames2, "".concat(prefixCls, "-open"), mergedOpen), _defineProperty(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), _defineProperty(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch), _classNames2));
|
|
53697
53371
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
53698
53372
|
ref: triggerRef,
|
|
53699
53373
|
disabled: disabled,
|
|
@@ -53718,7 +53392,7 @@ function generateSelector(config) {
|
|
|
53718
53392
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
53719
53393
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
53720
53394
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
53721
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
53395
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, extends_extends({}, props, {
|
|
53722
53396
|
domRef: selectorDomRef,
|
|
53723
53397
|
prefixCls: prefixCls,
|
|
53724
53398
|
inputElement: customizeInputElement,
|
|
@@ -53744,7 +53418,7 @@ function generateSelector(config) {
|
|
|
53744
53418
|
return selectorNode;
|
|
53745
53419
|
}
|
|
53746
53420
|
|
|
53747
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
53421
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
53748
53422
|
className: mergedClassName
|
|
53749
53423
|
}, domProps, {
|
|
53750
53424
|
ref: containerRef,
|
|
@@ -53831,7 +53505,7 @@ function warningProps(props) {
|
|
|
53831
53505
|
if (value !== undefined && value !== null) {
|
|
53832
53506
|
var values = commonUtil_toArray(value);
|
|
53833
53507
|
es_warning(!labelInValue || values.every(function (val) {
|
|
53834
|
-
return
|
|
53508
|
+
return typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
53835
53509
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
53836
53510
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
53837
53511
|
} // Syntactic sugar should use correct children type
|
|
@@ -53945,14 +53619,14 @@ var RefSelect = generateSelector({
|
|
|
53945
53619
|
*/
|
|
53946
53620
|
|
|
53947
53621
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
53948
|
-
|
|
53622
|
+
_inherits(Select, _React$Component);
|
|
53949
53623
|
|
|
53950
|
-
var _super =
|
|
53624
|
+
var _super = _createSuper(Select);
|
|
53951
53625
|
|
|
53952
53626
|
function Select() {
|
|
53953
53627
|
var _this;
|
|
53954
53628
|
|
|
53955
|
-
|
|
53629
|
+
_classCallCheck(this, Select);
|
|
53956
53630
|
|
|
53957
53631
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53958
53632
|
args[_key] = arguments[_key];
|
|
@@ -53972,10 +53646,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
53972
53646
|
return _this;
|
|
53973
53647
|
}
|
|
53974
53648
|
|
|
53975
|
-
|
|
53649
|
+
_createClass(Select, [{
|
|
53976
53650
|
key: "render",
|
|
53977
53651
|
value: function render() {
|
|
53978
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
53652
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, extends_extends({
|
|
53979
53653
|
ref: this.selectRef
|
|
53980
53654
|
}, this.props));
|
|
53981
53655
|
}
|
|
@@ -54156,7 +53830,7 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
54156
53830
|
} // ===================== Icons =====================
|
|
54157
53831
|
|
|
54158
53832
|
|
|
54159
|
-
var _getIcons = getIcons(
|
|
53833
|
+
var _getIcons = getIcons(extends_extends(extends_extends({}, props), {
|
|
54160
53834
|
multiple: isMultiple,
|
|
54161
53835
|
prefixCls: prefixCls
|
|
54162
53836
|
})),
|
|
@@ -54166,10 +53840,10 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
54166
53840
|
clearIcon = _getIcons.clearIcon;
|
|
54167
53841
|
|
|
54168
53842
|
var selectProps = omit(props, ['suffixIcon', 'itemIcon']);
|
|
54169
|
-
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName,
|
|
53843
|
+
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName, _defineProperty({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
|
|
54170
53844
|
var mergedSize = customizeSize || size;
|
|
54171
|
-
var mergedClassName = classnames_default()((_classNames2 = {},
|
|
54172
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es,
|
|
53845
|
+
var mergedClassName = classnames_default()((_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-lg"), mergedSize === 'large'), _defineProperty(_classNames2, "".concat(prefixCls, "-sm"), mergedSize === 'small'), _defineProperty(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames2, "".concat(prefixCls, "-borderless"), !bordered), _classNames2), className);
|
|
53846
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es, extends_extends({
|
|
54173
53847
|
ref: ref,
|
|
54174
53848
|
virtual: virtual,
|
|
54175
53849
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth
|
|
@@ -56285,7 +55959,7 @@ function TabNode(_ref, ref) {
|
|
|
56285
55959
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
56286
55960
|
key: key,
|
|
56287
55961
|
ref: ref,
|
|
56288
|
-
className: classnames_default()(tabPrefix, (_classNames = {},
|
|
55962
|
+
className: classnames_default()(tabPrefix, (_classNames = {}, _defineProperty(_classNames, "".concat(tabPrefix, "-with-remove"), removable), _defineProperty(_classNames, "".concat(tabPrefix, "-active"), active), _defineProperty(_classNames, "".concat(tabPrefix, "-disabled"), disabled), _classNames)),
|
|
56289
55963
|
style: style,
|
|
56290
55964
|
onClick: onInternalClick
|
|
56291
55965
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -56348,7 +56022,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
56348
56022
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
56349
56023
|
}
|
|
56350
56024
|
|
|
56351
|
-
var entity = map.get(key) ||
|
|
56025
|
+
var entity = map.get(key) || _objectSpread2({}, data); // Right
|
|
56352
56026
|
|
|
56353
56027
|
|
|
56354
56028
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -56443,7 +56117,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56443
56117
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56444
56118
|
|
|
56445
56119
|
function mergeProps(origin, target) {
|
|
56446
|
-
var clone =
|
|
56120
|
+
var clone = _objectSpread2({}, origin);
|
|
56447
56121
|
|
|
56448
56122
|
Object.keys(target).forEach(function (key) {
|
|
56449
56123
|
var value = target[key];
|
|
@@ -56458,7 +56132,7 @@ function mergeProps(origin, target) {
|
|
|
56458
56132
|
function InheritableContextProvider(_ref) {
|
|
56459
56133
|
var children = _ref.children,
|
|
56460
56134
|
locked = _ref.locked,
|
|
56461
|
-
restProps =
|
|
56135
|
+
restProps = _objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56462
56136
|
|
|
56463
56137
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56464
56138
|
var inheritableContext = useMemo(function () {
|
|
@@ -56514,7 +56188,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56514
56188
|
|
|
56515
56189
|
function warnItemProp(_ref) {
|
|
56516
56190
|
var item = _ref.item,
|
|
56517
|
-
restInfo =
|
|
56191
|
+
restInfo = _objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56518
56192
|
|
|
56519
56193
|
Object.defineProperty(restInfo, 'item', {
|
|
56520
56194
|
get: function get() {
|
|
@@ -56534,7 +56208,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56534
56208
|
var iconNode;
|
|
56535
56209
|
|
|
56536
56210
|
if (typeof icon === 'function') {
|
|
56537
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
56211
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, _objectSpread2({}, props));
|
|
56538
56212
|
} else {
|
|
56539
56213
|
// Compatible for origin definition
|
|
56540
56214
|
iconNode = icon;
|
|
@@ -56575,7 +56249,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56575
56249
|
function useFullPath(eventKey) {
|
|
56576
56250
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56577
56251
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56578
|
-
return eventKey !== undefined ? [].concat(
|
|
56252
|
+
return eventKey !== undefined ? [].concat(_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56579
56253
|
}, [parentKeyPath, eventKey]);
|
|
56580
56254
|
}
|
|
56581
56255
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56632,28 +56306,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56632
56306
|
// This should be removed from doc & api in future.
|
|
56633
56307
|
|
|
56634
56308
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56635
|
-
|
|
56309
|
+
_inherits(LegacyMenuItem, _React$Component);
|
|
56636
56310
|
|
|
56637
|
-
var _super =
|
|
56311
|
+
var _super = _createSuper(LegacyMenuItem);
|
|
56638
56312
|
|
|
56639
56313
|
function LegacyMenuItem() {
|
|
56640
|
-
|
|
56314
|
+
_classCallCheck(this, LegacyMenuItem);
|
|
56641
56315
|
|
|
56642
56316
|
return _super.apply(this, arguments);
|
|
56643
56317
|
}
|
|
56644
56318
|
|
|
56645
|
-
|
|
56319
|
+
_createClass(LegacyMenuItem, [{
|
|
56646
56320
|
key: "render",
|
|
56647
56321
|
value: function render() {
|
|
56648
56322
|
var _this$props = this.props,
|
|
56649
56323
|
title = _this$props.title,
|
|
56650
56324
|
attribute = _this$props.attribute,
|
|
56651
56325
|
elementRef = _this$props.elementRef,
|
|
56652
|
-
restProps =
|
|
56326
|
+
restProps = _objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56653
56327
|
|
|
56654
56328
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56655
56329
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56656
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56330
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({}, attribute, {
|
|
56657
56331
|
title: typeof title === 'string' ? title : undefined
|
|
56658
56332
|
}, passedProps, {
|
|
56659
56333
|
ref: elementRef
|
|
@@ -56684,7 +56358,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56684
56358
|
onClick = props.onClick,
|
|
56685
56359
|
onKeyDown = props.onKeyDown,
|
|
56686
56360
|
onFocus = props.onFocus,
|
|
56687
|
-
restProps =
|
|
56361
|
+
restProps = _objectWithoutProperties(props, MenuItem_excluded2);
|
|
56688
56362
|
|
|
56689
56363
|
var domDataId = useMenuId(eventKey);
|
|
56690
56364
|
|
|
@@ -56713,7 +56387,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56713
56387
|
return {
|
|
56714
56388
|
key: eventKey,
|
|
56715
56389
|
// Note: For legacy code is reversed which not like other antd component
|
|
56716
|
-
keyPath:
|
|
56390
|
+
keyPath: _toConsumableArray(connectedKeys).reverse(),
|
|
56717
56391
|
item: legacyMenuItemRef.current,
|
|
56718
56392
|
domEvent: e
|
|
56719
56393
|
};
|
|
@@ -56724,7 +56398,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56724
56398
|
|
|
56725
56399
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56726
56400
|
active = _useActive.active,
|
|
56727
|
-
activeProps =
|
|
56401
|
+
activeProps = _objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56728
56402
|
|
|
56729
56403
|
|
|
56730
56404
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56769,7 +56443,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56769
56443
|
optionRoleProps['aria-selected'] = selected;
|
|
56770
56444
|
}
|
|
56771
56445
|
|
|
56772
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56446
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, extends_extends({
|
|
56773
56447
|
ref: legacyMenuItemRef,
|
|
56774
56448
|
elementRef: elementRef,
|
|
56775
56449
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56778,13 +56452,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56778
56452
|
}, restProps, activeProps, optionRoleProps, {
|
|
56779
56453
|
component: "li",
|
|
56780
56454
|
"aria-disabled": disabled,
|
|
56781
|
-
style:
|
|
56782
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56455
|
+
style: _objectSpread2(_objectSpread2({}, directionStyle), style),
|
|
56456
|
+
className: classnames_default()(itemCls, (_classNames = {}, _defineProperty(_classNames, "".concat(itemCls, "-active"), active), _defineProperty(_classNames, "".concat(itemCls, "-selected"), selected), _defineProperty(_classNames, "".concat(itemCls, "-disabled"), mergedDisabled), _classNames), className),
|
|
56783
56457
|
onClick: onInternalClick,
|
|
56784
56458
|
onKeyDown: onInternalKeyDown,
|
|
56785
56459
|
onFocus: onInternalFocus
|
|
56786
56460
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56787
|
-
props:
|
|
56461
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
56788
56462
|
isSelected: selected
|
|
56789
56463
|
}),
|
|
56790
56464
|
icon: mergedItemIcon
|
|
@@ -56837,7 +56511,7 @@ function parseChildren(children, keyPath) {
|
|
|
56837
56511
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56838
56512
|
|
|
56839
56513
|
if (emptyKey) {
|
|
56840
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56514
|
+
eventKey = "tmp_key-".concat([].concat(_toConsumableArray(keyPath), [index]).join('-'));
|
|
56841
56515
|
}
|
|
56842
56516
|
|
|
56843
56517
|
var cloneProps = {
|
|
@@ -56885,14 +56559,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56885
56559
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56886
56560
|
var className = _ref.className,
|
|
56887
56561
|
children = _ref.children,
|
|
56888
|
-
restProps =
|
|
56562
|
+
restProps = _objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56889
56563
|
|
|
56890
56564
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56891
56565
|
prefixCls = _React$useContext.prefixCls,
|
|
56892
56566
|
mode = _React$useContext.mode,
|
|
56893
56567
|
rtl = _React$useContext.rtl;
|
|
56894
56568
|
|
|
56895
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
56569
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", extends_extends({
|
|
56896
56570
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56897
56571
|
}, restProps, {
|
|
56898
56572
|
"data-menu-list": true,
|
|
@@ -57009,11 +56683,11 @@ function PopupTrigger(_ref) {
|
|
|
57009
56683
|
innerVisible = _React$useState2[0],
|
|
57010
56684
|
setInnerVisible = _React$useState2[1];
|
|
57011
56685
|
|
|
57012
|
-
var placement = rtl ?
|
|
56686
|
+
var placement = rtl ? _objectSpread2(_objectSpread2({}, placementsRtl), builtinPlacements) : _objectSpread2(_objectSpread2({}, placements), builtinPlacements);
|
|
57013
56687
|
var popupPlacement = popupPlacementMap[mode];
|
|
57014
56688
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
57015
56689
|
|
|
57016
|
-
var mergedMotion =
|
|
56690
|
+
var mergedMotion = _objectSpread2(_objectSpread2({}, targetMotion), {}, {
|
|
57017
56691
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
57018
56692
|
removeOnLeave: false,
|
|
57019
56693
|
motionAppear: true
|
|
@@ -57031,7 +56705,7 @@ function PopupTrigger(_ref) {
|
|
|
57031
56705
|
}, [visible]);
|
|
57032
56706
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
57033
56707
|
prefixCls: prefixCls,
|
|
57034
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
56708
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), _defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
57035
56709
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
57036
56710
|
getPopupContainer: getPopupContainer,
|
|
57037
56711
|
builtinPlacements: placement,
|
|
@@ -57091,7 +56765,7 @@ function InlineSubMenuList(_ref) {
|
|
|
57091
56765
|
}
|
|
57092
56766
|
}, [mode]); // ================================= Render =================================
|
|
57093
56767
|
|
|
57094
|
-
var mergedMotion =
|
|
56768
|
+
var mergedMotion = _objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
57095
56769
|
|
|
57096
56770
|
|
|
57097
56771
|
if (keyPath.length > 1) {
|
|
@@ -57116,7 +56790,7 @@ function InlineSubMenuList(_ref) {
|
|
|
57116
56790
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
57117
56791
|
mode: fixedMode,
|
|
57118
56792
|
locked: !sameModeRef.current
|
|
57119
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
56793
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
57120
56794
|
visible: mergedOpen
|
|
57121
56795
|
}, mergedMotion, {
|
|
57122
56796
|
forceRender: forceSubMenuRender,
|
|
@@ -57179,7 +56853,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57179
56853
|
onTitleClick = props.onTitleClick,
|
|
57180
56854
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
57181
56855
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
57182
|
-
restProps =
|
|
56856
|
+
restProps = _objectWithoutProperties(props, SubMenu_excluded);
|
|
57183
56857
|
|
|
57184
56858
|
var domDataId = useMenuId(eventKey);
|
|
57185
56859
|
|
|
@@ -57222,7 +56896,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57222
56896
|
|
|
57223
56897
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
57224
56898
|
active = _useActive.active,
|
|
57225
|
-
activeProps =
|
|
56899
|
+
activeProps = _objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
57226
56900
|
|
|
57227
56901
|
|
|
57228
56902
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
@@ -57307,7 +56981,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57307
56981
|
|
|
57308
56982
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
57309
56983
|
|
|
57310
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
56984
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
57311
56985
|
role: "menuitem",
|
|
57312
56986
|
style: directionStyle,
|
|
57313
56987
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -57323,7 +56997,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57323
56997
|
onFocus: onInternalFocus
|
|
57324
56998
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
57325
56999
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
57326
|
-
props:
|
|
57000
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
57327
57001
|
isOpen: open,
|
|
57328
57002
|
// [Legacy] Not sure why need this mark
|
|
57329
57003
|
isSubMenu: true
|
|
@@ -57361,12 +57035,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57361
57035
|
} // >>>>> List node
|
|
57362
57036
|
|
|
57363
57037
|
|
|
57364
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
57038
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({
|
|
57365
57039
|
role: "none"
|
|
57366
57040
|
}, restProps, {
|
|
57367
57041
|
component: "li",
|
|
57368
57042
|
style: style,
|
|
57369
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
57043
|
+
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {}, _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-open"), open), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-active"), mergedActive), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-selected"), childrenSelected), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-disabled"), mergedDisabled), _classNames)),
|
|
57370
57044
|
onMouseEnter: onInternalMouseEnter,
|
|
57371
57045
|
onMouseLeave: onInternalMouseLeave
|
|
57372
57046
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -57459,7 +57133,7 @@ function focusable(node) {
|
|
|
57459
57133
|
function getFocusNodeList(node) {
|
|
57460
57134
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
57461
57135
|
|
|
57462
|
-
var res =
|
|
57136
|
+
var res = _toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
57463
57137
|
return focusable(child, includePositive);
|
|
57464
57138
|
});
|
|
57465
57139
|
|
|
@@ -57539,9 +57213,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
57539
57213
|
};
|
|
57540
57214
|
}
|
|
57541
57215
|
|
|
57542
|
-
var inline = (_inline = {},
|
|
57543
|
-
var horizontal = (_horizontal = {},
|
|
57544
|
-
var vertical = (_vertical = {},
|
|
57216
|
+
var inline = (_inline = {}, _defineProperty(_inline, UP, prev), _defineProperty(_inline, DOWN, next), _inline);
|
|
57217
|
+
var horizontal = (_horizontal = {}, _defineProperty(_horizontal, useAccessibility_LEFT, isRtl ? next : prev), _defineProperty(_horizontal, RIGHT, isRtl ? prev : next), _defineProperty(_horizontal, DOWN, children), _defineProperty(_horizontal, ENTER, children), _horizontal);
|
|
57218
|
+
var vertical = (_vertical = {}, _defineProperty(_vertical, UP, prev), _defineProperty(_vertical, DOWN, next), _defineProperty(_vertical, ENTER, children), _defineProperty(_vertical, ESC, parent), _defineProperty(_vertical, useAccessibility_LEFT, isRtl ? children : parent), _defineProperty(_vertical, RIGHT, isRtl ? parent : children), _vertical);
|
|
57545
57219
|
var offsets = {
|
|
57546
57220
|
inline: inline,
|
|
57547
57221
|
horizontal: horizontal,
|
|
@@ -57905,7 +57579,7 @@ function useKeyRecords() {
|
|
|
57905
57579
|
}, [getKeyPath]);
|
|
57906
57580
|
|
|
57907
57581
|
var getKeys = function getKeys() {
|
|
57908
|
-
var keys =
|
|
57582
|
+
var keys = _toConsumableArray(key2pathRef.current.keys());
|
|
57909
57583
|
|
|
57910
57584
|
if (overflowKeys.length) {
|
|
57911
57585
|
keys.push(OVERFLOW_KEY);
|
|
@@ -57922,7 +57596,7 @@ function useKeyRecords() {
|
|
|
57922
57596
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
57923
57597
|
var pathKeys = new Set();
|
|
57924
57598
|
|
|
57925
|
-
|
|
57599
|
+
_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
57926
57600
|
if (pathKey.startsWith(connectedPath)) {
|
|
57927
57601
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
57928
57602
|
}
|
|
@@ -58043,7 +57717,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58043
57717
|
openTransitionName = props.openTransitionName,
|
|
58044
57718
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
58045
57719
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
58046
|
-
restProps =
|
|
57720
|
+
restProps = _objectWithoutProperties(props, Menu_excluded);
|
|
58047
57721
|
|
|
58048
57722
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
58049
57723
|
|
|
@@ -58197,7 +57871,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58197
57871
|
return key !== targetKey;
|
|
58198
57872
|
});
|
|
58199
57873
|
} else {
|
|
58200
|
-
newSelectKeys = [].concat(
|
|
57874
|
+
newSelectKeys = [].concat(_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
58201
57875
|
}
|
|
58202
57876
|
} else {
|
|
58203
57877
|
newSelectKeys = [targetKey];
|
|
@@ -58205,7 +57879,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58205
57879
|
|
|
58206
57880
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
58207
57881
|
|
|
58208
|
-
var selectInfo =
|
|
57882
|
+
var selectInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
58209
57883
|
selectedKeys: newSelectKeys
|
|
58210
57884
|
});
|
|
58211
57885
|
|
|
@@ -58283,13 +57957,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58283
57957
|
);
|
|
58284
57958
|
}); // >>>>> Container
|
|
58285
57959
|
|
|
58286
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
57960
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, extends_extends({
|
|
58287
57961
|
id: id,
|
|
58288
57962
|
ref: mergedRef,
|
|
58289
57963
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
58290
57964
|
component: "ul",
|
|
58291
57965
|
itemComponent: es_MenuItem,
|
|
58292
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
57966
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-inline-collapsed"), mergedInlineCollapsed), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), isRtl), _classNames)),
|
|
58293
57967
|
dir: direction,
|
|
58294
57968
|
style: style,
|
|
58295
57969
|
role: "menu",
|
|
@@ -58383,13 +58057,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58383
58057
|
title = _ref.title,
|
|
58384
58058
|
eventKey = _ref.eventKey,
|
|
58385
58059
|
children = _ref.children,
|
|
58386
|
-
restProps =
|
|
58060
|
+
restProps = _objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58387
58061
|
|
|
58388
58062
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58389
58063
|
prefixCls = _React$useContext.prefixCls;
|
|
58390
58064
|
|
|
58391
58065
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58392
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
58066
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", extends_extends({}, restProps, {
|
|
58393
58067
|
onClick: function onClick(e) {
|
|
58394
58068
|
return e.stopPropagation();
|
|
58395
58069
|
},
|
|
@@ -58404,7 +58078,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58404
58078
|
|
|
58405
58079
|
function MenuItemGroup(_ref2) {
|
|
58406
58080
|
var children = _ref2.children,
|
|
58407
|
-
props =
|
|
58081
|
+
props = _objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58408
58082
|
|
|
58409
58083
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58410
58084
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58532,7 +58206,7 @@ function Dropdown(props, ref) {
|
|
|
58532
58206
|
visible = props.visible,
|
|
58533
58207
|
_props$trigger = props.trigger,
|
|
58534
58208
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58535
|
-
otherProps =
|
|
58209
|
+
otherProps = _objectWithoutProperties(props, Dropdown_excluded);
|
|
58536
58210
|
|
|
58537
58211
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58538
58212
|
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
@@ -58643,12 +58317,12 @@ function Dropdown(props, ref) {
|
|
|
58643
58317
|
triggerHideAction = ['click'];
|
|
58644
58318
|
}
|
|
58645
58319
|
|
|
58646
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58320
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, _objectSpread2(_objectSpread2({
|
|
58647
58321
|
builtinPlacements: placements
|
|
58648
58322
|
}, otherProps), {}, {
|
|
58649
58323
|
prefixCls: prefixCls,
|
|
58650
58324
|
ref: triggerRef,
|
|
58651
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58325
|
+
popupClassName: classnames_default()(overlayClassName, _defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58652
58326
|
popupStyle: overlayStyle,
|
|
58653
58327
|
action: trigger,
|
|
58654
58328
|
showAction: showAction,
|
|
@@ -58852,14 +58526,14 @@ function OperationNode(_ref, ref) {
|
|
|
58852
58526
|
}
|
|
58853
58527
|
}, [open]); // ========================= Render =========================
|
|
58854
58528
|
|
|
58855
|
-
var moreStyle =
|
|
58529
|
+
var moreStyle = _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
58856
58530
|
|
|
58857
58531
|
if (!tabs.length) {
|
|
58858
58532
|
moreStyle.visibility = 'hidden';
|
|
58859
58533
|
moreStyle.order = 1;
|
|
58860
58534
|
}
|
|
58861
58535
|
|
|
58862
|
-
var overlayClassName = classnames_default()(
|
|
58536
|
+
var overlayClassName = classnames_default()(_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
58863
58537
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
58864
58538
|
prefixCls: dropdownPrefix,
|
|
58865
58539
|
overlay: menu,
|
|
@@ -59138,7 +58812,7 @@ var ExtraContent = function ExtraContent(_ref) {
|
|
|
59138
58812
|
|
|
59139
58813
|
var assertExtra = {};
|
|
59140
58814
|
|
|
59141
|
-
if (extra &&
|
|
58815
|
+
if (extra && typeof_typeof(extra) === 'object' && ! /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(extra)) {
|
|
59142
58816
|
assertExtra = extra;
|
|
59143
58817
|
} else {
|
|
59144
58818
|
assertExtra.right = extra;
|
|
@@ -59388,7 +59062,7 @@ function TabNavList(props, ref) {
|
|
|
59388
59062
|
}, {
|
|
59389
59063
|
width: addWidth,
|
|
59390
59064
|
height: addHeight
|
|
59391
|
-
},
|
|
59065
|
+
}, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
59392
59066
|
tabs: tabs
|
|
59393
59067
|
})),
|
|
59394
59068
|
_useVisibleRange2 = slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
@@ -59480,7 +59154,7 @@ function TabNavList(props, ref) {
|
|
|
59480
59154
|
|
|
59481
59155
|
var startHiddenTabs = tabs.slice(0, visibleStart);
|
|
59482
59156
|
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
|
59483
|
-
var hiddenTabs = [].concat(
|
|
59157
|
+
var hiddenTabs = [].concat(_toConsumableArray(startHiddenTabs), _toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
59484
59158
|
|
|
59485
59159
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59486
59160
|
_useState16 = slicedToArray_slicedToArray(_useState15, 2),
|
|
@@ -59566,7 +59240,7 @@ function TabNavList(props, ref) {
|
|
|
59566
59240
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59567
59241
|
onResize: onListHolderResize
|
|
59568
59242
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59569
|
-
className: classnames_default()(wrapPrefix, (_classNames = {},
|
|
59243
|
+
className: classnames_default()(wrapPrefix, (_classNames = {}, _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-left"), pingLeft), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-right"), pingRight), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-top"), pingTop), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-bottom"), pingBottom), _classNames)),
|
|
59570
59244
|
ref: tabsWrapperRef
|
|
59571
59245
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59572
59246
|
onResize: onListHolderResize
|
|
@@ -59582,13 +59256,13 @@ function TabNavList(props, ref) {
|
|
|
59582
59256
|
prefixCls: prefixCls,
|
|
59583
59257
|
locale: locale,
|
|
59584
59258
|
editable: editable,
|
|
59585
|
-
style:
|
|
59259
|
+
style: _objectSpread2(_objectSpread2({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {
|
|
59586
59260
|
visibility: hasDropdown ? 'hidden' : null
|
|
59587
59261
|
})
|
|
59588
59262
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59589
|
-
className: classnames_default()("".concat(prefixCls, "-ink-bar"),
|
|
59263
|
+
className: classnames_default()("".concat(prefixCls, "-ink-bar"), _defineProperty({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
|
59590
59264
|
style: inkStyle
|
|
59591
|
-
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode,
|
|
59265
|
+
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode, extends_extends({}, props, {
|
|
59592
59266
|
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
|
59593
59267
|
ref: operationsRef,
|
|
59594
59268
|
prefixCls: prefixCls,
|
|
@@ -59628,8 +59302,8 @@ function TabPanelList(_ref) {
|
|
|
59628
59302
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59629
59303
|
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
|
59630
59304
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59631
|
-
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition),
|
|
59632
|
-
style: activeIndex && tabPaneAnimated ?
|
|
59305
|
+
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), _defineProperty({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated)),
|
|
59306
|
+
style: activeIndex && tabPaneAnimated ? _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', "-".concat(activeIndex, "00%")) : null
|
|
59633
59307
|
}, tabs.map(function (tab) {
|
|
59634
59308
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(tab.node, {
|
|
59635
59309
|
key: tab.key,
|
|
@@ -59689,7 +59363,7 @@ function TabPane(_ref) {
|
|
|
59689
59363
|
tabIndex: active ? 0 : -1,
|
|
59690
59364
|
"aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
|
|
59691
59365
|
"aria-hidden": !active,
|
|
59692
|
-
style:
|
|
59366
|
+
style: _objectSpread2(_objectSpread2({}, mergedStyle), style),
|
|
59693
59367
|
className: classnames_default()("".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), className)
|
|
59694
59368
|
}, (active || visited || forceRender) && children);
|
|
59695
59369
|
}
|
|
@@ -59729,7 +59403,7 @@ function parseTabList(children) {
|
|
|
59729
59403
|
return toArray(children).map(function (node) {
|
|
59730
59404
|
if ( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(node)) {
|
|
59731
59405
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
59732
|
-
return
|
|
59406
|
+
return _objectSpread2(_objectSpread2({
|
|
59733
59407
|
key: key
|
|
59734
59408
|
}, node.props), {}, {
|
|
59735
59409
|
node: node
|
|
@@ -59772,7 +59446,7 @@ function Tabs(_ref, ref) {
|
|
|
59772
59446
|
onChange = _ref.onChange,
|
|
59773
59447
|
onTabClick = _ref.onTabClick,
|
|
59774
59448
|
onTabScroll = _ref.onTabScroll,
|
|
59775
|
-
restProps =
|
|
59449
|
+
restProps = _objectWithoutProperties(_ref, Tabs_excluded);
|
|
59776
59450
|
|
|
59777
59451
|
var tabs = parseTabList(children);
|
|
59778
59452
|
var rtl = direction === 'rtl';
|
|
@@ -59789,10 +59463,10 @@ function Tabs(_ref, ref) {
|
|
|
59789
59463
|
tabPane: true
|
|
59790
59464
|
};
|
|
59791
59465
|
} else {
|
|
59792
|
-
mergedAnimated =
|
|
59466
|
+
mergedAnimated = _objectSpread2({
|
|
59793
59467
|
inkBar: true,
|
|
59794
59468
|
tabPane: false
|
|
59795
|
-
},
|
|
59469
|
+
}, typeof_typeof(animated) === 'object' ? animated : {});
|
|
59796
59470
|
} // ======================== Mobile ========================
|
|
59797
59471
|
|
|
59798
59472
|
|
|
@@ -59887,7 +59561,7 @@ function Tabs(_ref, ref) {
|
|
|
59887
59561
|
};
|
|
59888
59562
|
var tabNavBar;
|
|
59889
59563
|
|
|
59890
|
-
var tabNavBarProps =
|
|
59564
|
+
var tabNavBarProps = _objectSpread2(_objectSpread2({}, sharedProps), {}, {
|
|
59891
59565
|
editable: editable,
|
|
59892
59566
|
locale: locale,
|
|
59893
59567
|
moreIcon: moreIcon,
|
|
@@ -59911,11 +59585,11 @@ function Tabs(_ref, ref) {
|
|
|
59911
59585
|
tabs: tabs,
|
|
59912
59586
|
prefixCls: prefixCls
|
|
59913
59587
|
}
|
|
59914
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
59588
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
59915
59589
|
ref: ref,
|
|
59916
59590
|
id: id,
|
|
59917
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {},
|
|
59918
|
-
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList,
|
|
59591
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-mobile"), mobile), _defineProperty(_classNames, "".concat(prefixCls, "-editable"), editable), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), rtl), _classNames), className)
|
|
59592
|
+
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList, extends_extends({
|
|
59919
59593
|
destroyInactiveTabPane: destroyInactiveTabPane
|
|
59920
59594
|
}, sharedProps, {
|
|
59921
59595
|
animated: mergedAnimated
|
|
@@ -60065,7 +59739,7 @@ var Pager = function Pager(props) {
|
|
|
60065
59739
|
var _classNames;
|
|
60066
59740
|
|
|
60067
59741
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
60068
|
-
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {},
|
|
59742
|
+
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-active"), props.active), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), !props.page), _defineProperty(_classNames, props.className, !!props.className), _classNames));
|
|
60069
59743
|
|
|
60070
59744
|
var handleClick = function handleClick() {
|
|
60071
59745
|
props.onClick(props.page);
|
|
@@ -60110,14 +59784,14 @@ var Pager = function Pager(props) {
|
|
|
60110
59784
|
|
|
60111
59785
|
|
|
60112
59786
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
60113
|
-
|
|
59787
|
+
_inherits(Options, _React$Component);
|
|
60114
59788
|
|
|
60115
|
-
var _super =
|
|
59789
|
+
var _super = _createSuper(Options);
|
|
60116
59790
|
|
|
60117
59791
|
function Options() {
|
|
60118
59792
|
var _this;
|
|
60119
59793
|
|
|
60120
|
-
|
|
59794
|
+
_classCallCheck(this, Options);
|
|
60121
59795
|
|
|
60122
59796
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
60123
59797
|
args[_key] = arguments[_key];
|
|
@@ -60183,7 +59857,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
60183
59857
|
return _this;
|
|
60184
59858
|
}
|
|
60185
59859
|
|
|
60186
|
-
|
|
59860
|
+
_createClass(Options, [{
|
|
60187
59861
|
key: "getValidValue",
|
|
60188
59862
|
value: function getValidValue() {
|
|
60189
59863
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -60340,14 +60014,14 @@ function calculatePage(p, state, props) {
|
|
|
60340
60014
|
}
|
|
60341
60015
|
|
|
60342
60016
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
60343
|
-
|
|
60017
|
+
_inherits(Pagination, _React$Component);
|
|
60344
60018
|
|
|
60345
|
-
var _super =
|
|
60019
|
+
var _super = _createSuper(Pagination);
|
|
60346
60020
|
|
|
60347
60021
|
function Pagination(props) {
|
|
60348
60022
|
var _this;
|
|
60349
60023
|
|
|
60350
|
-
|
|
60024
|
+
_classCallCheck(this, Pagination);
|
|
60351
60025
|
|
|
60352
60026
|
_this = _super.call(this, props);
|
|
60353
60027
|
|
|
@@ -60368,7 +60042,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60368
60042
|
});
|
|
60369
60043
|
|
|
60370
60044
|
if (typeof icon === 'function') {
|
|
60371
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon,
|
|
60045
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon, _objectSpread2({}, _this.props));
|
|
60372
60046
|
}
|
|
60373
60047
|
|
|
60374
60048
|
return iconNode;
|
|
@@ -60590,7 +60264,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60590
60264
|
return _this;
|
|
60591
60265
|
}
|
|
60592
60266
|
|
|
60593
|
-
|
|
60267
|
+
_createClass(Pagination, [{
|
|
60594
60268
|
key: "componentDidUpdate",
|
|
60595
60269
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
60596
60270
|
// When current page change, fix focused style of prev item
|
|
@@ -60738,8 +60412,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60738
60412
|
}, gotoButton);
|
|
60739
60413
|
}
|
|
60740
60414
|
|
|
60741
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60742
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"),
|
|
60415
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60416
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"), _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
60743
60417
|
style: style,
|
|
60744
60418
|
ref: this.savePaginationNode
|
|
60745
60419
|
}, dataOrAriaAttributeProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
@@ -60747,7 +60421,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60747
60421
|
onClick: this.prev,
|
|
60748
60422
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60749
60423
|
onKeyPress: this.runIfEnterPrev,
|
|
60750
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60424
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
60751
60425
|
"aria-disabled": !this.hasPrev()
|
|
60752
60426
|
}, this.renderPrev(prevPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60753
60427
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
@@ -60768,7 +60442,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60768
60442
|
onClick: this.next,
|
|
60769
60443
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60770
60444
|
onKeyPress: this.runIfEnterNext,
|
|
60771
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60445
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
60772
60446
|
"aria-disabled": !this.hasNext()
|
|
60773
60447
|
}, this.renderNext(nextPage)), gotoButton);
|
|
60774
60448
|
}
|
|
@@ -60784,7 +60458,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60784
60458
|
};
|
|
60785
60459
|
|
|
60786
60460
|
if (!allPages) {
|
|
60787
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60461
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60788
60462
|
key: "noPager",
|
|
60789
60463
|
page: 1,
|
|
60790
60464
|
className: "".concat(prefixCls, "-item-disabled")
|
|
@@ -60793,7 +60467,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60793
60467
|
|
|
60794
60468
|
for (var i = 1; i <= allPages; i += 1) {
|
|
60795
60469
|
var active = current === i;
|
|
60796
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60470
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60797
60471
|
key: i,
|
|
60798
60472
|
page: i,
|
|
60799
60473
|
active: active
|
|
@@ -60810,7 +60484,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60810
60484
|
onClick: this.jumpPrev,
|
|
60811
60485
|
tabIndex: "0",
|
|
60812
60486
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
60813
|
-
className: classnames_default()("".concat(prefixCls, "-jump-prev"),
|
|
60487
|
+
className: classnames_default()("".concat(prefixCls, "-jump-prev"), _defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
60814
60488
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
60815
60489
|
jumpNext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60816
60490
|
title: showTitle ? nextItemTitle : null,
|
|
@@ -60818,7 +60492,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60818
60492
|
tabIndex: "0",
|
|
60819
60493
|
onClick: this.jumpNext,
|
|
60820
60494
|
onKeyPress: this.runIfEnterJumpNext,
|
|
60821
|
-
className: classnames_default()("".concat(prefixCls, "-jump-next"),
|
|
60495
|
+
className: classnames_default()("".concat(prefixCls, "-jump-next"), _defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
60822
60496
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
60823
60497
|
}
|
|
60824
60498
|
|
|
@@ -60905,8 +60579,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60905
60579
|
|
|
60906
60580
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
60907
60581
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
60908
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60909
|
-
className: classnames_default()(prefixCls, className,
|
|
60582
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60583
|
+
className: classnames_default()(prefixCls, className, _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled)),
|
|
60910
60584
|
style: style,
|
|
60911
60585
|
unselectable: "unselectable",
|
|
60912
60586
|
ref: this.savePaginationNode
|
|
@@ -60915,14 +60589,14 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60915
60589
|
onClick: this.prev,
|
|
60916
60590
|
tabIndex: prevDisabled ? null : 0,
|
|
60917
60591
|
onKeyPress: this.runIfEnterPrev,
|
|
60918
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60592
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
60919
60593
|
"aria-disabled": prevDisabled
|
|
60920
60594
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60921
60595
|
title: showTitle ? locale.next_page : null,
|
|
60922
60596
|
onClick: this.next,
|
|
60923
60597
|
tabIndex: nextDisabled ? null : 0,
|
|
60924
60598
|
onKeyPress: this.runIfEnterNext,
|
|
60925
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60599
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
60926
60600
|
"aria-disabled": nextDisabled
|
|
60927
60601
|
}, this.renderNext(nextPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Options, {
|
|
60928
60602
|
disabled: disabled,
|
|
@@ -61000,7 +60674,7 @@ Pagination.defaultProps = {
|
|
|
61000
60674
|
|
|
61001
60675
|
|
|
61002
60676
|
var MiniSelect = function MiniSelect(props) {
|
|
61003
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select,
|
|
60677
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select, extends_extends({
|
|
61004
60678
|
size: "small"
|
|
61005
60679
|
}, props));
|
|
61006
60680
|
};
|
|
@@ -61061,7 +60735,7 @@ var responsiveObserve = {
|
|
|
61061
60735
|
var listener = function listener(_ref) {
|
|
61062
60736
|
var matches = _ref.matches;
|
|
61063
60737
|
|
|
61064
|
-
_this2.dispatch(
|
|
60738
|
+
_this2.dispatch(extends_extends(extends_extends({}, screens), _defineProperty({}, screen, matches)));
|
|
61065
60739
|
};
|
|
61066
60740
|
|
|
61067
60741
|
var mql = window.matchMedia(matchMediaQuery);
|
|
@@ -61664,7 +61338,9 @@ function Action(_ref) {
|
|
|
61664
61338
|
isLogin = _ref.isLogin,
|
|
61665
61339
|
onSubscribe = _ref.onSubscribe,
|
|
61666
61340
|
setIsSubscribe = _ref.setIsSubscribe,
|
|
61667
|
-
status = _ref.status
|
|
61341
|
+
status = _ref.status,
|
|
61342
|
+
_ref$isMobile = _ref.isMobile,
|
|
61343
|
+
isMobile = _ref$isMobile === void 0 ? false : _ref$isMobile;
|
|
61668
61344
|
var liveId = data.live_id,
|
|
61669
61345
|
beginTime = data.begin_time;
|
|
61670
61346
|
|
|
@@ -61798,7 +61474,7 @@ function Action(_ref) {
|
|
|
61798
61474
|
}();
|
|
61799
61475
|
|
|
61800
61476
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61801
|
-
className: classnames_default()(ListItem_Action_index_module.action, (_classNames = {}, Action_defineProperty(_classNames, ListItem_Action_index_module["action-subscribe"], curAction === 3), Action_defineProperty(_classNames, ListItem_Action_index_module["action-has-subscribe"], curAction === 4), _classNames)),
|
|
61477
|
+
className: classnames_default()(ListItem_Action_index_module.action, (_classNames = {}, Action_defineProperty(_classNames, ListItem_Action_index_module["action-subscribe"], curAction === 3), Action_defineProperty(_classNames, ListItem_Action_index_module["action-has-subscribe"], curAction === 4), Action_defineProperty(_classNames, ListItem_Action_index_module["action-mobile"], isMobile), _classNames)),
|
|
61802
61478
|
onClick: handleBtnClick
|
|
61803
61479
|
}, Actions[curAction]);
|
|
61804
61480
|
}
|
|
@@ -61987,6 +61663,7 @@ var TagName = {
|
|
|
61987
61663
|
};
|
|
61988
61664
|
function ListItem(_ref) {
|
|
61989
61665
|
var data = _ref.data,
|
|
61666
|
+
isMobile = _ref.isMobile,
|
|
61990
61667
|
themeName = _ref.themeName,
|
|
61991
61668
|
subscription = _ref.subscription,
|
|
61992
61669
|
onDetailClick = _ref.onDetailClick,
|
|
@@ -61998,6 +61675,7 @@ function ListItem(_ref) {
|
|
|
61998
61675
|
beginTime = data.begin_time,
|
|
61999
61676
|
coverUrl = data.cover_url,
|
|
62000
61677
|
status = data.status;
|
|
61678
|
+
var timeLabel = status === 2 ? "".concat(dayjs_min_default()(beginTime).format('YYYY/MM/DD HH:mm')) : "".concat(dayjs_min_default()(beginTime).format('YYYY/MM/DD HH:mm'), " \u5F00\u59CB");
|
|
62001
61679
|
|
|
62002
61680
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
62003
61681
|
_useState2 = ListItem_slicedToArray(_useState, 2),
|
|
@@ -62084,6 +61762,65 @@ function ListItem(_ref) {
|
|
|
62084
61762
|
};
|
|
62085
61763
|
}();
|
|
62086
61764
|
|
|
61765
|
+
if (isMobile) {
|
|
61766
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61767
|
+
className: classnames_default()(list_ListItem_index_module.mobileContainer, themeName),
|
|
61768
|
+
onClick: handleDetailClick
|
|
61769
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61770
|
+
className: list_ListItem_index_module.mobileTitle
|
|
61771
|
+
}, liveName), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61772
|
+
className: list_ListItem_index_module.mobileCoverWrap
|
|
61773
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(component_Avatar, {
|
|
61774
|
+
src: coverUrl || live,
|
|
61775
|
+
errorImg: live,
|
|
61776
|
+
className: list_ListItem_index_module.mobileCover
|
|
61777
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61778
|
+
className: classnames_default()(list_ListItem_index_module.mobileTag, list_ListItem_index_module["mobileTag".concat(status)])
|
|
61779
|
+
}, status === 1 || status === 3 ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
61780
|
+
src: play,
|
|
61781
|
+
alt: ""
|
|
61782
|
+
}) : null, TagName[status])), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61783
|
+
className: list_ListItem_index_module.mobileDescRow
|
|
61784
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61785
|
+
className: list_ListItem_index_module.mobileMeta
|
|
61786
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("span", {
|
|
61787
|
+
className: list_ListItem_index_module.mobileTime
|
|
61788
|
+
}, isSubscribe ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(component_Icon_Icon, {
|
|
61789
|
+
type: "web_icon_shijian_fill",
|
|
61790
|
+
className: "".concat(list_ListItem_index_module.mobileTimeIcon, " checked-icon")
|
|
61791
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
61792
|
+
src: video,
|
|
61793
|
+
className: list_ListItem_index_module.mobileTimeIcon,
|
|
61794
|
+
alt: ""
|
|
61795
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("span", {
|
|
61796
|
+
className: list_ListItem_index_module.mobileTimeText
|
|
61797
|
+
}, timeLabel)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("span", {
|
|
61798
|
+
className: list_ListItem_index_module.mobileStat
|
|
61799
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
61800
|
+
src: view_fill,
|
|
61801
|
+
className: list_ListItem_index_module.mobileStatIcon,
|
|
61802
|
+
alt: ""
|
|
61803
|
+
}), formatUVCount(liveExt.total_uv || 0)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("span", {
|
|
61804
|
+
className: list_ListItem_index_module.mobileStat
|
|
61805
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
61806
|
+
src: like_fill,
|
|
61807
|
+
className: list_ListItem_index_module.mobileStatIcon,
|
|
61808
|
+
alt: ""
|
|
61809
|
+
}), formatLikesCount(liveExt.like_count || 0))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61810
|
+
className: list_ListItem_index_module.mobileAction
|
|
61811
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(Action, {
|
|
61812
|
+
data: data,
|
|
61813
|
+
subscription: subscription,
|
|
61814
|
+
onActionDetailClick: handleDetailClick,
|
|
61815
|
+
handleLogin: handleLogin,
|
|
61816
|
+
isLogin: isLogin,
|
|
61817
|
+
onSubscribe: onSubscribe,
|
|
61818
|
+
setIsSubscribe: setIsSubscribe,
|
|
61819
|
+
status: status,
|
|
61820
|
+
isMobile: true
|
|
61821
|
+
}))));
|
|
61822
|
+
}
|
|
61823
|
+
|
|
62087
61824
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62088
61825
|
className: classnames_default()(list_ListItem_index_module.container, themeName),
|
|
62089
61826
|
onClick: handleDetailClick
|
|
@@ -62103,7 +61840,7 @@ function ListItem(_ref) {
|
|
|
62103
61840
|
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62104
61841
|
src: video,
|
|
62105
61842
|
className: list_ListItem_index_module["time-icon"]
|
|
62106
|
-
}),
|
|
61843
|
+
}), timeLabel, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62107
61844
|
className: list_ListItem_index_module.like_sty
|
|
62108
61845
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62109
61846
|
className: list_ListItem_index_module.icon_bottom
|
|
@@ -62171,6 +61908,9 @@ var list_index_module_update = injectStylesIntoStyleTag_default()(list_index_mod
|
|
|
62171
61908
|
|
|
62172
61909
|
|
|
62173
61910
|
|
|
61911
|
+
function list_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
61912
|
+
|
|
61913
|
+
|
|
62174
61914
|
|
|
62175
61915
|
function list_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
62176
61916
|
|
|
@@ -62199,6 +61939,7 @@ function list_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
62199
61939
|
|
|
62200
61940
|
|
|
62201
61941
|
|
|
61942
|
+
|
|
62202
61943
|
var PageSize = 7;
|
|
62203
61944
|
var StatusEnum = [{
|
|
62204
61945
|
label: '全部',
|
|
@@ -62426,8 +62167,9 @@ function PublicLiveList(_ref) {
|
|
|
62426
62167
|
getList();
|
|
62427
62168
|
}, [page, status, refreshPage]);
|
|
62428
62169
|
var themeName = (0,cjs/* getXEduThemeName */.gV)();
|
|
62170
|
+
var isMobile = (0,util_env/* isInMobile */.Df)();
|
|
62429
62171
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62430
|
-
className: classnames_default()(containerClassName, src_list_index_module.container, themeName)
|
|
62172
|
+
className: classnames_default()(containerClassName, src_list_index_module.container, themeName, list_defineProperty({}, src_list_index_module.mobile, isMobile))
|
|
62431
62173
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(tabs, {
|
|
62432
62174
|
accessKey: status,
|
|
62433
62175
|
onChange: handleTabChange
|
|
@@ -62443,6 +62185,7 @@ function PublicLiveList(_ref) {
|
|
|
62443
62185
|
}, loading ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, !loading && list.length ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, list.map(function (listItem) {
|
|
62444
62186
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(ListItem, {
|
|
62445
62187
|
themeName: themeName,
|
|
62188
|
+
isMobile: isMobile,
|
|
62446
62189
|
data: listItem,
|
|
62447
62190
|
key: listItem.live_id,
|
|
62448
62191
|
subscription: subscription,
|