@x-edu/live-player 0.0.35 → 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 +621 -1056
- package/package.json +2 -5
- package/dist/XEduLivePlayerPre.common.js +0 -62328
|
@@ -1295,7 +1295,6 @@ module.exports = function transformData(data, headers, fns) {
|
|
|
1295
1295
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1296
1296
|
|
|
1297
1297
|
"use strict";
|
|
1298
|
-
/* provided dependency */ var process = __webpack_require__(4155);
|
|
1299
1298
|
|
|
1300
1299
|
|
|
1301
1300
|
var utils = __webpack_require__(4867);
|
|
@@ -2689,10 +2688,11 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2689
2688
|
|
|
2690
2689
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2691
2690
|
// Module
|
|
2692
|
-
___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}", ""]);
|
|
2693
2692
|
// Exports
|
|
2694
2693
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2695
2694
|
"action": "index-module_action_DHsbc",
|
|
2695
|
+
"action-mobile": "index-module_action-mobile_vR7Cq",
|
|
2696
2696
|
"action-has-subscribe": "index-module_action-has-subscribe_LYNor"
|
|
2697
2697
|
};
|
|
2698
2698
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
@@ -2710,7 +2710,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2710
2710
|
|
|
2711
2711
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2712
2712
|
// Module
|
|
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}", ""]);
|
|
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}", ""]);
|
|
2714
2714
|
// Exports
|
|
2715
2715
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2716
2716
|
"container": "index-module_container_2HydZ",
|
|
@@ -2730,7 +2730,24 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2730
2730
|
"like_sty": "index-module_like_sty_Z780C",
|
|
2731
2731
|
"icon_bottom": "index-module_icon_bottom_jcWZ1",
|
|
2732
2732
|
"action": "index-module_action_MHhqt",
|
|
2733
|
-
"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"
|
|
2734
2751
|
};
|
|
2735
2752
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2736
2753
|
|
|
@@ -2747,10 +2764,11 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2747
2764
|
|
|
2748
2765
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2749
2766
|
// Module
|
|
2750
|
-
___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}", ""]);
|
|
2751
2768
|
// Exports
|
|
2752
2769
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2753
2770
|
"container": "index-module_container_y+him",
|
|
2771
|
+
"mobile": "index-module_mobile_fjd59",
|
|
2754
2772
|
"list": "index-module_list_KQnlU"
|
|
2755
2773
|
};
|
|
2756
2774
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
@@ -24076,197 +24094,6 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
|
24076
24094
|
};
|
|
24077
24095
|
|
|
24078
24096
|
|
|
24079
|
-
/***/ }),
|
|
24080
|
-
|
|
24081
|
-
/***/ 4155:
|
|
24082
|
-
/***/ (function(module) {
|
|
24083
|
-
|
|
24084
|
-
// shim for using process in browser
|
|
24085
|
-
var process = module.exports = {};
|
|
24086
|
-
|
|
24087
|
-
// cached from whatever global is present so that test runners that stub it
|
|
24088
|
-
// don't break things. But we need to wrap it in a try catch in case it is
|
|
24089
|
-
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
24090
|
-
// function because try/catches deoptimize in certain engines.
|
|
24091
|
-
|
|
24092
|
-
var cachedSetTimeout;
|
|
24093
|
-
var cachedClearTimeout;
|
|
24094
|
-
|
|
24095
|
-
function defaultSetTimout() {
|
|
24096
|
-
throw new Error('setTimeout has not been defined');
|
|
24097
|
-
}
|
|
24098
|
-
function defaultClearTimeout () {
|
|
24099
|
-
throw new Error('clearTimeout has not been defined');
|
|
24100
|
-
}
|
|
24101
|
-
(function () {
|
|
24102
|
-
try {
|
|
24103
|
-
if (typeof setTimeout === 'function') {
|
|
24104
|
-
cachedSetTimeout = setTimeout;
|
|
24105
|
-
} else {
|
|
24106
|
-
cachedSetTimeout = defaultSetTimout;
|
|
24107
|
-
}
|
|
24108
|
-
} catch (e) {
|
|
24109
|
-
cachedSetTimeout = defaultSetTimout;
|
|
24110
|
-
}
|
|
24111
|
-
try {
|
|
24112
|
-
if (typeof clearTimeout === 'function') {
|
|
24113
|
-
cachedClearTimeout = clearTimeout;
|
|
24114
|
-
} else {
|
|
24115
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
24116
|
-
}
|
|
24117
|
-
} catch (e) {
|
|
24118
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
24119
|
-
}
|
|
24120
|
-
} ())
|
|
24121
|
-
function runTimeout(fun) {
|
|
24122
|
-
if (cachedSetTimeout === setTimeout) {
|
|
24123
|
-
//normal enviroments in sane situations
|
|
24124
|
-
return setTimeout(fun, 0);
|
|
24125
|
-
}
|
|
24126
|
-
// if setTimeout wasn't available but was latter defined
|
|
24127
|
-
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
24128
|
-
cachedSetTimeout = setTimeout;
|
|
24129
|
-
return setTimeout(fun, 0);
|
|
24130
|
-
}
|
|
24131
|
-
try {
|
|
24132
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
24133
|
-
return cachedSetTimeout(fun, 0);
|
|
24134
|
-
} catch(e){
|
|
24135
|
-
try {
|
|
24136
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
24137
|
-
return cachedSetTimeout.call(null, fun, 0);
|
|
24138
|
-
} catch(e){
|
|
24139
|
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
24140
|
-
return cachedSetTimeout.call(this, fun, 0);
|
|
24141
|
-
}
|
|
24142
|
-
}
|
|
24143
|
-
|
|
24144
|
-
|
|
24145
|
-
}
|
|
24146
|
-
function runClearTimeout(marker) {
|
|
24147
|
-
if (cachedClearTimeout === clearTimeout) {
|
|
24148
|
-
//normal enviroments in sane situations
|
|
24149
|
-
return clearTimeout(marker);
|
|
24150
|
-
}
|
|
24151
|
-
// if clearTimeout wasn't available but was latter defined
|
|
24152
|
-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
24153
|
-
cachedClearTimeout = clearTimeout;
|
|
24154
|
-
return clearTimeout(marker);
|
|
24155
|
-
}
|
|
24156
|
-
try {
|
|
24157
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
24158
|
-
return cachedClearTimeout(marker);
|
|
24159
|
-
} catch (e){
|
|
24160
|
-
try {
|
|
24161
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
24162
|
-
return cachedClearTimeout.call(null, marker);
|
|
24163
|
-
} catch (e){
|
|
24164
|
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
24165
|
-
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
24166
|
-
return cachedClearTimeout.call(this, marker);
|
|
24167
|
-
}
|
|
24168
|
-
}
|
|
24169
|
-
|
|
24170
|
-
|
|
24171
|
-
|
|
24172
|
-
}
|
|
24173
|
-
var queue = [];
|
|
24174
|
-
var draining = false;
|
|
24175
|
-
var currentQueue;
|
|
24176
|
-
var queueIndex = -1;
|
|
24177
|
-
|
|
24178
|
-
function cleanUpNextTick() {
|
|
24179
|
-
if (!draining || !currentQueue) {
|
|
24180
|
-
return;
|
|
24181
|
-
}
|
|
24182
|
-
draining = false;
|
|
24183
|
-
if (currentQueue.length) {
|
|
24184
|
-
queue = currentQueue.concat(queue);
|
|
24185
|
-
} else {
|
|
24186
|
-
queueIndex = -1;
|
|
24187
|
-
}
|
|
24188
|
-
if (queue.length) {
|
|
24189
|
-
drainQueue();
|
|
24190
|
-
}
|
|
24191
|
-
}
|
|
24192
|
-
|
|
24193
|
-
function drainQueue() {
|
|
24194
|
-
if (draining) {
|
|
24195
|
-
return;
|
|
24196
|
-
}
|
|
24197
|
-
var timeout = runTimeout(cleanUpNextTick);
|
|
24198
|
-
draining = true;
|
|
24199
|
-
|
|
24200
|
-
var len = queue.length;
|
|
24201
|
-
while(len) {
|
|
24202
|
-
currentQueue = queue;
|
|
24203
|
-
queue = [];
|
|
24204
|
-
while (++queueIndex < len) {
|
|
24205
|
-
if (currentQueue) {
|
|
24206
|
-
currentQueue[queueIndex].run();
|
|
24207
|
-
}
|
|
24208
|
-
}
|
|
24209
|
-
queueIndex = -1;
|
|
24210
|
-
len = queue.length;
|
|
24211
|
-
}
|
|
24212
|
-
currentQueue = null;
|
|
24213
|
-
draining = false;
|
|
24214
|
-
runClearTimeout(timeout);
|
|
24215
|
-
}
|
|
24216
|
-
|
|
24217
|
-
process.nextTick = function (fun) {
|
|
24218
|
-
var args = new Array(arguments.length - 1);
|
|
24219
|
-
if (arguments.length > 1) {
|
|
24220
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
24221
|
-
args[i - 1] = arguments[i];
|
|
24222
|
-
}
|
|
24223
|
-
}
|
|
24224
|
-
queue.push(new Item(fun, args));
|
|
24225
|
-
if (queue.length === 1 && !draining) {
|
|
24226
|
-
runTimeout(drainQueue);
|
|
24227
|
-
}
|
|
24228
|
-
};
|
|
24229
|
-
|
|
24230
|
-
// v8 likes predictible objects
|
|
24231
|
-
function Item(fun, array) {
|
|
24232
|
-
this.fun = fun;
|
|
24233
|
-
this.array = array;
|
|
24234
|
-
}
|
|
24235
|
-
Item.prototype.run = function () {
|
|
24236
|
-
this.fun.apply(null, this.array);
|
|
24237
|
-
};
|
|
24238
|
-
process.title = 'browser';
|
|
24239
|
-
process.browser = true;
|
|
24240
|
-
process.env = {};
|
|
24241
|
-
process.argv = [];
|
|
24242
|
-
process.version = ''; // empty string to avoid regexp issues
|
|
24243
|
-
process.versions = {};
|
|
24244
|
-
|
|
24245
|
-
function noop() {}
|
|
24246
|
-
|
|
24247
|
-
process.on = noop;
|
|
24248
|
-
process.addListener = noop;
|
|
24249
|
-
process.once = noop;
|
|
24250
|
-
process.off = noop;
|
|
24251
|
-
process.removeListener = noop;
|
|
24252
|
-
process.removeAllListeners = noop;
|
|
24253
|
-
process.emit = noop;
|
|
24254
|
-
process.prependListener = noop;
|
|
24255
|
-
process.prependOnceListener = noop;
|
|
24256
|
-
|
|
24257
|
-
process.listeners = function (name) { return [] }
|
|
24258
|
-
|
|
24259
|
-
process.binding = function (name) {
|
|
24260
|
-
throw new Error('process.binding is not supported');
|
|
24261
|
-
};
|
|
24262
|
-
|
|
24263
|
-
process.cwd = function () { return '/' };
|
|
24264
|
-
process.chdir = function (dir) {
|
|
24265
|
-
throw new Error('process.chdir is not supported');
|
|
24266
|
-
};
|
|
24267
|
-
process.umask = function() { return 0; };
|
|
24268
|
-
|
|
24269
|
-
|
|
24270
24097
|
/***/ }),
|
|
24271
24098
|
|
|
24272
24099
|
/***/ 2703:
|
|
@@ -25906,17 +25733,10 @@ module.exports = styleTagTransform;
|
|
|
25906
25733
|
|
|
25907
25734
|
/***/ }),
|
|
25908
25735
|
|
|
25909
|
-
/***/ 5273:
|
|
25910
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25911
|
-
|
|
25912
|
-
module.exports = __webpack_require__(5666);
|
|
25913
|
-
|
|
25914
|
-
/***/ }),
|
|
25915
|
-
|
|
25916
25736
|
/***/ 3006:
|
|
25917
25737
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25918
25738
|
|
|
25919
|
-
var _regeneratorRuntime = __webpack_require__(
|
|
25739
|
+
var _regeneratorRuntime = __webpack_require__(7757);
|
|
25920
25740
|
|
|
25921
25741
|
function 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); } }
|
|
25922
25742
|
|
|
@@ -26040,7 +25860,7 @@ module.exports = PromiseLock;
|
|
|
26040
25860
|
|
|
26041
25861
|
"use strict";
|
|
26042
25862
|
__webpack_require__.r(__webpack_exports__);
|
|
26043
|
-
var env = window.__global_env ||
|
|
25863
|
+
var env = window.__global_env || process.env.SDP_ENV;
|
|
26044
25864
|
console.log(env);
|
|
26045
25865
|
|
|
26046
25866
|
var config = __webpack_require__(2730)("./".concat(env)).default;
|
|
@@ -26211,7 +26031,7 @@ var config = {
|
|
|
26211
26031
|
// 百度私有环境, 课时活动临时获取习题的动态接口
|
|
26212
26032
|
'x-class-hour-activity': '//x-class-hour-activity.beta.gsmartedu.cn',
|
|
26213
26033
|
// 学校信息
|
|
26214
|
-
'edu-admin-public-base': '//edu-admin-public-base.
|
|
26034
|
+
'edu-admin-public-base': '//edu-admin-public-base.beta.gsmartedu.cn',
|
|
26215
26035
|
// uc s3优化接口, 主要用于头像上传
|
|
26216
26036
|
'uc-s3': '//x-cloud-web.beta.gsmartedu.cn',
|
|
26217
26037
|
// 聚合后台
|
|
@@ -26950,8 +26770,10 @@ var config = {
|
|
|
26950
26770
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26951
26771
|
/* harmony export */ "GF": function() { return /* binding */ isInWX; },
|
|
26952
26772
|
/* harmony export */ "uJ": function() { return /* binding */ xElectron; },
|
|
26953
|
-
/* harmony export */ "IC": function() { return /* binding */ isInElectron; }
|
|
26773
|
+
/* harmony export */ "IC": function() { return /* binding */ isInElectron; },
|
|
26774
|
+
/* harmony export */ "Df": function() { return /* binding */ isInMobile; }
|
|
26954
26775
|
/* harmony export */ });
|
|
26776
|
+
/* unused harmony export inIpad */
|
|
26955
26777
|
var ua = window.navigator.userAgent.toLowerCase();
|
|
26956
26778
|
function isInWX() {
|
|
26957
26779
|
return ua.indexOf('micromessenger') > -1;
|
|
@@ -26961,6 +26783,20 @@ var _window = window,
|
|
|
26961
26783
|
xElectron = _window.xElectron;
|
|
26962
26784
|
|
|
26963
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
|
+
}
|
|
26964
26800
|
|
|
26965
26801
|
/***/ }),
|
|
26966
26802
|
|
|
@@ -29170,7 +29006,6 @@ function alias(type) {
|
|
|
29170
29006
|
return newType;
|
|
29171
29007
|
}
|
|
29172
29008
|
;// CONCATENATED MODULE: ./node_modules/@sdp.nd/fish/es/icon/icon-react/utils.js
|
|
29173
|
-
/* provided dependency */ var process = __webpack_require__(4155);
|
|
29174
29009
|
|
|
29175
29010
|
|
|
29176
29011
|
|
|
@@ -29178,7 +29013,7 @@ function alias(type) {
|
|
|
29178
29013
|
|
|
29179
29014
|
|
|
29180
29015
|
function log(message) {
|
|
29181
|
-
if (!(process &&
|
|
29016
|
+
if (!(process && process.env && "production" === 'production')) {
|
|
29182
29017
|
// eslint-disable-next-line no-console
|
|
29183
29018
|
console.error("[fish/icons-react]: ".concat(message, "."));
|
|
29184
29019
|
}
|
|
@@ -30646,6 +30481,17 @@ var Request = /*#__PURE__*/function () {
|
|
|
30646
30481
|
}();
|
|
30647
30482
|
|
|
30648
30483
|
|
|
30484
|
+
;// CONCATENATED MODULE: ./src/util/getTimestamp.js
|
|
30485
|
+
/**
|
|
30486
|
+
* 获取时间戳
|
|
30487
|
+
* @param {number} second 时间间隔,以秒为单位,超过
|
|
30488
|
+
* @returns {string} 时间戳
|
|
30489
|
+
*/
|
|
30490
|
+
function getTimestamp(second) {
|
|
30491
|
+
// 转换毫秒
|
|
30492
|
+
var now = Math.floor(Date.now() / 1000);
|
|
30493
|
+
return Math.floor(now / second) * second;
|
|
30494
|
+
}
|
|
30649
30495
|
// EXTERNAL MODULE: ./src/util/env.js
|
|
30650
30496
|
var util_env = __webpack_require__(2983);
|
|
30651
30497
|
// EXTERNAL MODULE: ./src/util/url.js
|
|
@@ -30833,7 +30679,7 @@ function rawAPI(params) {
|
|
|
30833
30679
|
} // 本地构建请求禁用缓存
|
|
30834
30680
|
|
|
30835
30681
|
|
|
30836
|
-
if (
|
|
30682
|
+
if (process.env.DEV) {// headers['Cache-Control'] = 'no-cache'
|
|
30837
30683
|
}
|
|
30838
30684
|
}
|
|
30839
30685
|
|
|
@@ -30863,7 +30709,9 @@ function generateCommonAPI(params) {
|
|
|
30863
30709
|
case 0:
|
|
30864
30710
|
c.params = c.params || {};
|
|
30865
30711
|
|
|
30866
|
-
if (
|
|
30712
|
+
if (process.env.SDP_ENV !== 'ncet-xedu') {
|
|
30713
|
+
c.params.v = (_c$params$v = c.params.v) !== null && _c$params$v !== void 0 ? _c$params$v : getTimestamp(10 * 60);
|
|
30714
|
+
}
|
|
30867
30715
|
|
|
30868
30716
|
return _context.abrupt("return", c);
|
|
30869
30717
|
|
|
@@ -31056,7 +30904,10 @@ function generateAPIWithProxy(params) {
|
|
|
31056
30904
|
return _context6.abrupt("return", c);
|
|
31057
30905
|
|
|
31058
30906
|
case 2:
|
|
31059
|
-
if (
|
|
30907
|
+
if (!(process.env.SDP_ENV === 'ncet-xedu')) {
|
|
30908
|
+
_context6.next = 4;
|
|
30909
|
+
break;
|
|
30910
|
+
}
|
|
31060
30911
|
|
|
31061
30912
|
return _context6.abrupt("return", c);
|
|
31062
30913
|
|
|
@@ -31181,9 +31032,6 @@ var SUB_TYPE = {
|
|
|
31181
31032
|
OUTSIDE: 2,
|
|
31182
31033
|
REBROADCAST: 3
|
|
31183
31034
|
};
|
|
31184
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
31185
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
31186
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
31187
31035
|
// EXTERNAL MODULE: ./node_modules/mutex-lock/src/index.js
|
|
31188
31036
|
var src = __webpack_require__(3006);
|
|
31189
31037
|
var src_default = /*#__PURE__*/__webpack_require__.n(src);
|
|
@@ -31236,7 +31084,7 @@ function getServiceConfig(_x) {
|
|
|
31236
31084
|
}
|
|
31237
31085
|
|
|
31238
31086
|
function _getServiceConfig() {
|
|
31239
|
-
_getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/
|
|
31087
|
+
_getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(serviceName) {
|
|
31240
31088
|
var sdpAppId,
|
|
31241
31089
|
env,
|
|
31242
31090
|
key,
|
|
@@ -31248,7 +31096,7 @@ function _getServiceConfig() {
|
|
|
31248
31096
|
result,
|
|
31249
31097
|
ttl,
|
|
31250
31098
|
_args = arguments;
|
|
31251
|
-
return
|
|
31099
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
31252
31100
|
while (1) {
|
|
31253
31101
|
switch (_context.prev = _context.next) {
|
|
31254
31102
|
case 0:
|
|
@@ -31512,13 +31360,13 @@ function withOnce(fn) {
|
|
|
31512
31360
|
var lockPool = createLockPool();
|
|
31513
31361
|
|
|
31514
31362
|
var newFn = /*#__PURE__*/function () {
|
|
31515
|
-
var _ref3 = hof_asyncToGenerator( /*#__PURE__*/
|
|
31363
|
+
var _ref3 = hof_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
31516
31364
|
var key,
|
|
31517
31365
|
lock,
|
|
31518
31366
|
lockId,
|
|
31519
31367
|
result,
|
|
31520
31368
|
_args2 = arguments;
|
|
31521
|
-
return
|
|
31369
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
31522
31370
|
while (1) {
|
|
31523
31371
|
switch (_context2.prev = _context2.next) {
|
|
31524
31372
|
case 0:
|
|
@@ -33007,147 +32855,6 @@ var video_style_update = injectStylesIntoStyleTag_default()(video_style/* defaul
|
|
|
33007
32855
|
;// CONCATENATED MODULE: ./node_modules/@sdp.nd/fish/es/video/style/index.js
|
|
33008
32856
|
|
|
33009
32857
|
|
|
33010
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
33011
|
-
function esm_extends_extends() {
|
|
33012
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
33013
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
33014
|
-
var source = arguments[i];
|
|
33015
|
-
|
|
33016
|
-
for (var key in source) {
|
|
33017
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
33018
|
-
target[key] = source[key];
|
|
33019
|
-
}
|
|
33020
|
-
}
|
|
33021
|
-
}
|
|
33022
|
-
|
|
33023
|
-
return target;
|
|
33024
|
-
};
|
|
33025
|
-
|
|
33026
|
-
return esm_extends_extends.apply(this, arguments);
|
|
33027
|
-
}
|
|
33028
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
33029
|
-
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
33030
|
-
if (!(instance instanceof Constructor)) {
|
|
33031
|
-
throw new TypeError("Cannot call a class as a function");
|
|
33032
|
-
}
|
|
33033
|
-
}
|
|
33034
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
33035
|
-
function createClass_defineProperties(target, props) {
|
|
33036
|
-
for (var i = 0; i < props.length; i++) {
|
|
33037
|
-
var descriptor = props[i];
|
|
33038
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
33039
|
-
descriptor.configurable = true;
|
|
33040
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33041
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
33042
|
-
}
|
|
33043
|
-
}
|
|
33044
|
-
|
|
33045
|
-
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
33046
|
-
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
33047
|
-
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
33048
|
-
return Constructor;
|
|
33049
|
-
}
|
|
33050
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
33051
|
-
function assertThisInitialized_assertThisInitialized(self) {
|
|
33052
|
-
if (self === void 0) {
|
|
33053
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
33054
|
-
}
|
|
33055
|
-
|
|
33056
|
-
return self;
|
|
33057
|
-
}
|
|
33058
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
33059
|
-
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
33060
|
-
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
33061
|
-
o.__proto__ = p;
|
|
33062
|
-
return o;
|
|
33063
|
-
};
|
|
33064
|
-
|
|
33065
|
-
return setPrototypeOf_setPrototypeOf(o, p);
|
|
33066
|
-
}
|
|
33067
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
33068
|
-
|
|
33069
|
-
function inherits_inherits(subClass, superClass) {
|
|
33070
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
33071
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
33072
|
-
}
|
|
33073
|
-
|
|
33074
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
33075
|
-
constructor: {
|
|
33076
|
-
value: subClass,
|
|
33077
|
-
writable: true,
|
|
33078
|
-
configurable: true
|
|
33079
|
-
}
|
|
33080
|
-
});
|
|
33081
|
-
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
33082
|
-
}
|
|
33083
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
33084
|
-
function getPrototypeOf_getPrototypeOf(o) {
|
|
33085
|
-
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
33086
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
33087
|
-
};
|
|
33088
|
-
return getPrototypeOf_getPrototypeOf(o);
|
|
33089
|
-
}
|
|
33090
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
33091
|
-
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
33092
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
33093
|
-
if (Reflect.construct.sham) return false;
|
|
33094
|
-
if (typeof Proxy === "function") return true;
|
|
33095
|
-
|
|
33096
|
-
try {
|
|
33097
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
33098
|
-
return true;
|
|
33099
|
-
} catch (e) {
|
|
33100
|
-
return false;
|
|
33101
|
-
}
|
|
33102
|
-
}
|
|
33103
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
33104
|
-
function esm_typeof_typeof(obj) {
|
|
33105
|
-
"@babel/helpers - typeof";
|
|
33106
|
-
|
|
33107
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
33108
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
33109
|
-
return typeof obj;
|
|
33110
|
-
};
|
|
33111
|
-
} else {
|
|
33112
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
33113
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
33114
|
-
};
|
|
33115
|
-
}
|
|
33116
|
-
|
|
33117
|
-
return esm_typeof_typeof(obj);
|
|
33118
|
-
}
|
|
33119
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
33120
|
-
|
|
33121
|
-
|
|
33122
|
-
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
33123
|
-
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
33124
|
-
return call;
|
|
33125
|
-
} else if (call !== void 0) {
|
|
33126
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
33127
|
-
}
|
|
33128
|
-
|
|
33129
|
-
return assertThisInitialized_assertThisInitialized(self);
|
|
33130
|
-
}
|
|
33131
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
33132
|
-
|
|
33133
|
-
|
|
33134
|
-
|
|
33135
|
-
function createSuper_createSuper(Derived) {
|
|
33136
|
-
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
33137
|
-
return function _createSuperInternal() {
|
|
33138
|
-
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
33139
|
-
result;
|
|
33140
|
-
|
|
33141
|
-
if (hasNativeReflectConstruct) {
|
|
33142
|
-
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
33143
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
33144
|
-
} else {
|
|
33145
|
-
result = Super.apply(this, arguments);
|
|
33146
|
-
}
|
|
33147
|
-
|
|
33148
|
-
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
33149
|
-
};
|
|
33150
|
-
}
|
|
33151
32858
|
;// CONCATENATED MODULE: external {"commonjs":"react-dom","commonjs2":"react-dom","root":"ReactDOM"}
|
|
33152
32859
|
var external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject = require("react-dom");
|
|
33153
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);
|
|
@@ -33223,14 +32930,14 @@ var videoCdnPrefix = '//gcdncs.101.com/v0.1/static/share/fish/videoplayer';
|
|
|
33223
32930
|
var defaultVideoUrl = getVideoUrl(videoCdnPrefix, video_version);
|
|
33224
32931
|
|
|
33225
32932
|
var Video = /*#__PURE__*/function (_React$Component) {
|
|
33226
|
-
|
|
32933
|
+
_inherits(Video, _React$Component);
|
|
33227
32934
|
|
|
33228
|
-
var _super =
|
|
32935
|
+
var _super = _createSuper(Video);
|
|
33229
32936
|
|
|
33230
32937
|
function Video() {
|
|
33231
32938
|
var _this;
|
|
33232
32939
|
|
|
33233
|
-
|
|
32940
|
+
_classCallCheck(this, Video);
|
|
33234
32941
|
|
|
33235
32942
|
_this = _super.apply(this, arguments);
|
|
33236
32943
|
_this.videoUrl = {}; // eslint-disable-next-line class-methods-use-this
|
|
@@ -33243,12 +32950,12 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
33243
32950
|
csOriginUrl = getVideoUrl(cdnPrefix, video_version);
|
|
33244
32951
|
}
|
|
33245
32952
|
|
|
33246
|
-
return
|
|
32953
|
+
return extends_extends(extends_extends({}, csOriginUrl), Video.url);
|
|
33247
32954
|
};
|
|
33248
32955
|
|
|
33249
32956
|
_this.loadVideoPlayer = function () {
|
|
33250
|
-
return __awaiter(
|
|
33251
|
-
return
|
|
32957
|
+
return __awaiter(_assertThisInitialized(_this), void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
32958
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33252
32959
|
while (1) {
|
|
33253
32960
|
switch (_context.prev = _context.next) {
|
|
33254
32961
|
case 0:
|
|
@@ -33298,7 +33005,7 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
33298
33005
|
return _this;
|
|
33299
33006
|
}
|
|
33300
33007
|
|
|
33301
|
-
|
|
33008
|
+
_createClass(Video, [{
|
|
33302
33009
|
key: "componentDidMount",
|
|
33303
33010
|
value: function componentDidMount() {
|
|
33304
33011
|
var _this2 = this;
|
|
@@ -33642,9 +33349,9 @@ function isSourceReady(_x) {
|
|
|
33642
33349
|
}
|
|
33643
33350
|
|
|
33644
33351
|
function _isSourceReady() {
|
|
33645
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33352
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(liveInfo) {
|
|
33646
33353
|
var newLiveInfo;
|
|
33647
|
-
return
|
|
33354
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33648
33355
|
while (1) {
|
|
33649
33356
|
switch (_context.prev = _context.next) {
|
|
33650
33357
|
case 0:
|
|
@@ -33821,12 +33528,12 @@ function usePullSource(_ref) {
|
|
|
33821
33528
|
}
|
|
33822
33529
|
|
|
33823
33530
|
function _checkLiveReadyInterval() {
|
|
33824
|
-
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33531
|
+
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
33825
33532
|
var i,
|
|
33826
33533
|
liveStatus,
|
|
33827
33534
|
isSourceReady,
|
|
33828
33535
|
_args = arguments;
|
|
33829
|
-
return
|
|
33536
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33830
33537
|
while (1) {
|
|
33831
33538
|
switch (_context.prev = _context.next) {
|
|
33832
33539
|
case 0:
|
|
@@ -33912,8 +33619,8 @@ function checkSourceReady(_x) {
|
|
|
33912
33619
|
}
|
|
33913
33620
|
|
|
33914
33621
|
function _checkSourceReady() {
|
|
33915
|
-
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33916
|
-
return
|
|
33622
|
+
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(url) {
|
|
33623
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
33917
33624
|
while (1) {
|
|
33918
33625
|
switch (_context2.prev = _context2.next) {
|
|
33919
33626
|
case 0:
|
|
@@ -33946,9 +33653,9 @@ function getLiveNewStatus(_x2) {
|
|
|
33946
33653
|
}
|
|
33947
33654
|
|
|
33948
33655
|
function _getLiveNewStatus() {
|
|
33949
|
-
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33656
|
+
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(liveInfo) {
|
|
33950
33657
|
var newLiveInfo;
|
|
33951
|
-
return
|
|
33658
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
33952
33659
|
while (1) {
|
|
33953
33660
|
switch (_context3.prev = _context3.next) {
|
|
33954
33661
|
case 0:
|
|
@@ -34472,8 +34179,8 @@ function AliPlayer(_ref) {
|
|
|
34472
34179
|
var aliPlayer;
|
|
34473
34180
|
|
|
34474
34181
|
var init = /*#__PURE__*/function () {
|
|
34475
|
-
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/
|
|
34476
|
-
return
|
|
34182
|
+
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
34183
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
34477
34184
|
while (1) {
|
|
34478
34185
|
switch (_context.prev = _context.next) {
|
|
34479
34186
|
case 0:
|
|
@@ -34598,21 +34305,6 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
34598
34305
|
// style dependencies
|
|
34599
34306
|
|
|
34600
34307
|
|
|
34601
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
34602
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
34603
|
-
if (key in obj) {
|
|
34604
|
-
Object.defineProperty(obj, key, {
|
|
34605
|
-
value: value,
|
|
34606
|
-
enumerable: true,
|
|
34607
|
-
configurable: true,
|
|
34608
|
-
writable: true
|
|
34609
|
-
});
|
|
34610
|
-
} else {
|
|
34611
|
-
obj[key] = value;
|
|
34612
|
-
}
|
|
34613
|
-
|
|
34614
|
-
return obj;
|
|
34615
|
-
}
|
|
34616
34308
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
34617
34309
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
34618
34310
|
if (Array.isArray(arr)) return arr;
|
|
@@ -34647,26 +34339,6 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
34647
34339
|
|
|
34648
34340
|
return _arr;
|
|
34649
34341
|
}
|
|
34650
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34651
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34652
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
34653
|
-
|
|
34654
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34655
|
-
arr2[i] = arr[i];
|
|
34656
|
-
}
|
|
34657
|
-
|
|
34658
|
-
return arr2;
|
|
34659
|
-
}
|
|
34660
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34661
|
-
|
|
34662
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34663
|
-
if (!o) return;
|
|
34664
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34665
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34666
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34667
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34668
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34669
|
-
}
|
|
34670
34342
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34671
34343
|
function nonIterableRest_nonIterableRest() {
|
|
34672
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.");
|
|
@@ -34677,7 +34349,7 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34677
34349
|
|
|
34678
34350
|
|
|
34679
34351
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34680
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
34352
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34681
34353
|
}
|
|
34682
34354
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34683
34355
|
var raf = function raf(callback) {
|
|
@@ -34904,27 +34576,6 @@ var cacheStyle = {};
|
|
|
34904
34576
|
}
|
|
34905
34577
|
}
|
|
34906
34578
|
});
|
|
34907
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34908
|
-
|
|
34909
|
-
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34910
|
-
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34911
|
-
}
|
|
34912
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34913
|
-
function iterableToArray_iterableToArray(iter) {
|
|
34914
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34915
|
-
}
|
|
34916
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34917
|
-
function nonIterableSpread_nonIterableSpread() {
|
|
34918
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34919
|
-
}
|
|
34920
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34921
|
-
|
|
34922
|
-
|
|
34923
|
-
|
|
34924
|
-
|
|
34925
|
-
function toConsumableArray_toConsumableArray(arr) {
|
|
34926
|
-
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34927
|
-
}
|
|
34928
34579
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34929
34580
|
|
|
34930
34581
|
|
|
@@ -34941,7 +34592,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34941
34592
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34942
34593
|
var _this = this;
|
|
34943
34594
|
|
|
34944
|
-
|
|
34595
|
+
_classCallCheck(this, ScrollLocker);
|
|
34945
34596
|
|
|
34946
34597
|
this.lockTarget = void 0;
|
|
34947
34598
|
this.options = void 0;
|
|
@@ -34989,7 +34640,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34989
34640
|
var options = _ref3.options;
|
|
34990
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);
|
|
34991
34642
|
})) {
|
|
34992
|
-
locks = [].concat(
|
|
34643
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34993
34644
|
target: _this.lockTarget,
|
|
34994
34645
|
options: _this.options
|
|
34995
34646
|
}]);
|
|
@@ -35027,7 +34678,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
35027
34678
|
container.className = addClassName.trim();
|
|
35028
34679
|
}
|
|
35029
34680
|
|
|
35030
|
-
locks = [].concat(
|
|
34681
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
35031
34682
|
target: _this.lockTarget,
|
|
35032
34683
|
options: _this.options
|
|
35033
34684
|
}]);
|
|
@@ -35111,7 +34762,7 @@ var getParent = function getParent(getContainer) {
|
|
|
35111
34762
|
return getContainer();
|
|
35112
34763
|
}
|
|
35113
34764
|
|
|
35114
|
-
if (
|
|
34765
|
+
if (typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
35115
34766
|
return getContainer;
|
|
35116
34767
|
}
|
|
35117
34768
|
}
|
|
@@ -35120,14 +34771,14 @@ var getParent = function getParent(getContainer) {
|
|
|
35120
34771
|
};
|
|
35121
34772
|
|
|
35122
34773
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
35123
|
-
|
|
34774
|
+
_inherits(PortalWrapper, _React$Component);
|
|
35124
34775
|
|
|
35125
|
-
var _super =
|
|
34776
|
+
var _super = _createSuper(PortalWrapper);
|
|
35126
34777
|
|
|
35127
34778
|
function PortalWrapper(props) {
|
|
35128
34779
|
var _this;
|
|
35129
34780
|
|
|
35130
|
-
|
|
34781
|
+
_classCallCheck(this, PortalWrapper);
|
|
35131
34782
|
|
|
35132
34783
|
_this = _super.call(this, props);
|
|
35133
34784
|
_this.container = void 0;
|
|
@@ -35247,7 +34898,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35247
34898
|
return _this;
|
|
35248
34899
|
}
|
|
35249
34900
|
|
|
35250
|
-
|
|
34901
|
+
_createClass(PortalWrapper, [{
|
|
35251
34902
|
key: "componentDidMount",
|
|
35252
34903
|
value: function componentDidMount() {
|
|
35253
34904
|
var _this2 = this;
|
|
@@ -35315,46 +34966,6 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35315
34966
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
35316
34967
|
|
|
35317
34968
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
35318
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
35319
|
-
|
|
35320
|
-
|
|
35321
|
-
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
35322
|
-
var keys = Object.keys(object);
|
|
35323
|
-
|
|
35324
|
-
if (Object.getOwnPropertySymbols) {
|
|
35325
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
35326
|
-
|
|
35327
|
-
if (enumerableOnly) {
|
|
35328
|
-
symbols = symbols.filter(function (sym) {
|
|
35329
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
35330
|
-
});
|
|
35331
|
-
}
|
|
35332
|
-
|
|
35333
|
-
keys.push.apply(keys, symbols);
|
|
35334
|
-
}
|
|
35335
|
-
|
|
35336
|
-
return keys;
|
|
35337
|
-
}
|
|
35338
|
-
|
|
35339
|
-
function objectSpread2_objectSpread2(target) {
|
|
35340
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
35341
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
35342
|
-
|
|
35343
|
-
if (i % 2) {
|
|
35344
|
-
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
35345
|
-
defineProperty_defineProperty(target, key, source[key]);
|
|
35346
|
-
});
|
|
35347
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
35348
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
35349
|
-
} else {
|
|
35350
|
-
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
35351
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
35352
|
-
});
|
|
35353
|
-
}
|
|
35354
|
-
}
|
|
35355
|
-
|
|
35356
|
-
return target;
|
|
35357
|
-
}
|
|
35358
34969
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
35359
34970
|
/**
|
|
35360
34971
|
* @ignore
|
|
@@ -36021,7 +35632,7 @@ function pickAttrs(props) {
|
|
|
36021
35632
|
aria: true
|
|
36022
35633
|
};
|
|
36023
35634
|
} else {
|
|
36024
|
-
mergedConfig =
|
|
35635
|
+
mergedConfig = _objectSpread2({}, ariaOnly);
|
|
36025
35636
|
}
|
|
36026
35637
|
|
|
36027
35638
|
var attrs = {};
|
|
@@ -36054,7 +35665,7 @@ var react_is = __webpack_require__(9864);
|
|
|
36054
35665
|
function fillRef(ref, node) {
|
|
36055
35666
|
if (typeof ref === 'function') {
|
|
36056
35667
|
ref(node);
|
|
36057
|
-
} else if (
|
|
35668
|
+
} else if (typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
36058
35669
|
ref.current = node;
|
|
36059
35670
|
}
|
|
36060
35671
|
}
|
|
@@ -36164,7 +35775,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
36164
35775
|
function getTransitionName(transitionName, transitionType) {
|
|
36165
35776
|
if (!transitionName) return null;
|
|
36166
35777
|
|
|
36167
|
-
if (
|
|
35778
|
+
if (typeof_typeof(transitionName) === 'object') {
|
|
36168
35779
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
36169
35780
|
return match[1].toUpperCase();
|
|
36170
35781
|
});
|
|
@@ -36457,13 +36068,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36457
36068
|
|
|
36458
36069
|
switch (status) {
|
|
36459
36070
|
case 'appear':
|
|
36460
|
-
return _ref2 = {},
|
|
36071
|
+
return _ref2 = {}, _defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), _defineProperty(_ref2, STEP_START, onAppearStart), _defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
36461
36072
|
|
|
36462
36073
|
case 'enter':
|
|
36463
|
-
return _ref3 = {},
|
|
36074
|
+
return _ref3 = {}, _defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), _defineProperty(_ref3, STEP_START, onEnterStart), _defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
36464
36075
|
|
|
36465
36076
|
case 'leave':
|
|
36466
|
-
return _ref4 = {},
|
|
36077
|
+
return _ref4 = {}, _defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), _defineProperty(_ref4, STEP_START, onLeaveStart), _defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
36467
36078
|
|
|
36468
36079
|
default:
|
|
36469
36080
|
return {};
|
|
@@ -36571,7 +36182,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36571
36182
|
var mergedStyle = style;
|
|
36572
36183
|
|
|
36573
36184
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
36574
|
-
mergedStyle =
|
|
36185
|
+
mergedStyle = _objectSpread2({
|
|
36575
36186
|
transition: 'none'
|
|
36576
36187
|
}, mergedStyle);
|
|
36577
36188
|
}
|
|
@@ -36586,17 +36197,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36586
36197
|
|
|
36587
36198
|
|
|
36588
36199
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
36589
|
-
|
|
36200
|
+
_inherits(DomWrapper, _React$Component);
|
|
36590
36201
|
|
|
36591
|
-
var _super =
|
|
36202
|
+
var _super = _createSuper(DomWrapper);
|
|
36592
36203
|
|
|
36593
36204
|
function DomWrapper() {
|
|
36594
|
-
|
|
36205
|
+
_classCallCheck(this, DomWrapper);
|
|
36595
36206
|
|
|
36596
36207
|
return _super.apply(this, arguments);
|
|
36597
36208
|
}
|
|
36598
36209
|
|
|
36599
|
-
|
|
36210
|
+
_createClass(DomWrapper, [{
|
|
36600
36211
|
key: "render",
|
|
36601
36212
|
value: function render() {
|
|
36602
36213
|
return this.props.children;
|
|
@@ -36632,7 +36243,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
36632
36243
|
function genCSSMotion(config) {
|
|
36633
36244
|
var transitionSupport = config;
|
|
36634
36245
|
|
|
36635
|
-
if (
|
|
36246
|
+
if (typeof_typeof(config) === 'object') {
|
|
36636
36247
|
transitionSupport = config.transitionSupport;
|
|
36637
36248
|
}
|
|
36638
36249
|
|
|
@@ -36690,7 +36301,7 @@ function genCSSMotion(config) {
|
|
|
36690
36301
|
|
|
36691
36302
|
var motionChildren;
|
|
36692
36303
|
|
|
36693
|
-
var mergedProps =
|
|
36304
|
+
var mergedProps = _objectSpread2(_objectSpread2({}, eventProps), {}, {
|
|
36694
36305
|
visible: visible
|
|
36695
36306
|
});
|
|
36696
36307
|
|
|
@@ -36700,13 +36311,13 @@ function genCSSMotion(config) {
|
|
|
36700
36311
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
36701
36312
|
// Stable children
|
|
36702
36313
|
if (mergedVisible) {
|
|
36703
|
-
motionChildren = children(
|
|
36314
|
+
motionChildren = children(_objectSpread2({}, mergedProps), setNodeRef);
|
|
36704
36315
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
36705
|
-
motionChildren = children(
|
|
36316
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36706
36317
|
className: leavedClassName
|
|
36707
36318
|
}), setNodeRef);
|
|
36708
36319
|
} else if (forceRender) {
|
|
36709
|
-
motionChildren = children(
|
|
36320
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36710
36321
|
style: {
|
|
36711
36322
|
display: 'none'
|
|
36712
36323
|
}
|
|
@@ -36728,8 +36339,8 @@ function genCSSMotion(config) {
|
|
|
36728
36339
|
statusSuffix = 'start';
|
|
36729
36340
|
}
|
|
36730
36341
|
|
|
36731
|
-
motionChildren = children(
|
|
36732
|
-
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)),
|
|
36733
36344
|
style: statusStyle
|
|
36734
36345
|
}), setNodeRef);
|
|
36735
36346
|
}
|
|
@@ -36742,41 +36353,6 @@ function genCSSMotion(config) {
|
|
|
36742
36353
|
return CSSMotion;
|
|
36743
36354
|
}
|
|
36744
36355
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36745
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36746
|
-
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36747
|
-
if (source == null) return {};
|
|
36748
|
-
var target = {};
|
|
36749
|
-
var sourceKeys = Object.keys(source);
|
|
36750
|
-
var key, i;
|
|
36751
|
-
|
|
36752
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
36753
|
-
key = sourceKeys[i];
|
|
36754
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36755
|
-
target[key] = source[key];
|
|
36756
|
-
}
|
|
36757
|
-
|
|
36758
|
-
return target;
|
|
36759
|
-
}
|
|
36760
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36761
|
-
|
|
36762
|
-
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36763
|
-
if (source == null) return {};
|
|
36764
|
-
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36765
|
-
var key, i;
|
|
36766
|
-
|
|
36767
|
-
if (Object.getOwnPropertySymbols) {
|
|
36768
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36769
|
-
|
|
36770
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36771
|
-
key = sourceSymbolKeys[i];
|
|
36772
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36773
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36774
|
-
target[key] = source[key];
|
|
36775
|
-
}
|
|
36776
|
-
}
|
|
36777
|
-
|
|
36778
|
-
return target;
|
|
36779
|
-
}
|
|
36780
36356
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
36781
36357
|
|
|
36782
36358
|
|
|
@@ -36787,7 +36363,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
36787
36363
|
function wrapKeyToObject(key) {
|
|
36788
36364
|
var keyObj;
|
|
36789
36365
|
|
|
36790
|
-
if (key &&
|
|
36366
|
+
if (key && typeof_typeof(key) === 'object' && 'key' in key) {
|
|
36791
36367
|
keyObj = key;
|
|
36792
36368
|
} else {
|
|
36793
36369
|
keyObj = {
|
|
@@ -36795,7 +36371,7 @@ function wrapKeyToObject(key) {
|
|
|
36795
36371
|
};
|
|
36796
36372
|
}
|
|
36797
36373
|
|
|
36798
|
-
return
|
|
36374
|
+
return _objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36799
36375
|
key: String(keyObj.key)
|
|
36800
36376
|
});
|
|
36801
36377
|
}
|
|
@@ -36822,14 +36398,14 @@ function diffKeys() {
|
|
|
36822
36398
|
// New added keys should add before current key
|
|
36823
36399
|
if (currentIndex < i) {
|
|
36824
36400
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
36825
|
-
return
|
|
36401
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36826
36402
|
status: STATUS_ADD
|
|
36827
36403
|
});
|
|
36828
36404
|
}));
|
|
36829
36405
|
currentIndex = i;
|
|
36830
36406
|
}
|
|
36831
36407
|
|
|
36832
|
-
list.push(
|
|
36408
|
+
list.push(_objectSpread2(_objectSpread2({}, currentKeyObj), {}, {
|
|
36833
36409
|
status: STATUS_KEEP
|
|
36834
36410
|
}));
|
|
36835
36411
|
currentIndex += 1;
|
|
@@ -36840,7 +36416,7 @@ function diffKeys() {
|
|
|
36840
36416
|
|
|
36841
36417
|
|
|
36842
36418
|
if (!hit) {
|
|
36843
|
-
list.push(
|
|
36419
|
+
list.push(_objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36844
36420
|
status: STATUS_REMOVE
|
|
36845
36421
|
}));
|
|
36846
36422
|
}
|
|
@@ -36848,7 +36424,7 @@ function diffKeys() {
|
|
|
36848
36424
|
|
|
36849
36425
|
if (currentIndex < currentLen) {
|
|
36850
36426
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36851
|
-
return
|
|
36427
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36852
36428
|
status: STATUS_ADD
|
|
36853
36429
|
});
|
|
36854
36430
|
}));
|
|
@@ -36909,14 +36485,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36909
36485
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36910
36486
|
|
|
36911
36487
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36912
|
-
|
|
36488
|
+
_inherits(CSSMotionList, _React$Component);
|
|
36913
36489
|
|
|
36914
|
-
var _super =
|
|
36490
|
+
var _super = _createSuper(CSSMotionList);
|
|
36915
36491
|
|
|
36916
36492
|
function CSSMotionList() {
|
|
36917
36493
|
var _this;
|
|
36918
36494
|
|
|
36919
|
-
|
|
36495
|
+
_classCallCheck(this, CSSMotionList);
|
|
36920
36496
|
|
|
36921
36497
|
_this = _super.apply(this, arguments);
|
|
36922
36498
|
_this.state = {
|
|
@@ -36929,7 +36505,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36929
36505
|
return {
|
|
36930
36506
|
keyEntities: keyEntities.map(function (entity) {
|
|
36931
36507
|
if (entity.key !== removeKey) return entity;
|
|
36932
|
-
return
|
|
36508
|
+
return _objectSpread2(_objectSpread2({}, entity), {}, {
|
|
36933
36509
|
status: STATUS_REMOVED
|
|
36934
36510
|
});
|
|
36935
36511
|
})
|
|
@@ -36940,7 +36516,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36940
36516
|
return _this;
|
|
36941
36517
|
}
|
|
36942
36518
|
|
|
36943
|
-
|
|
36519
|
+
_createClass(CSSMotionList, [{
|
|
36944
36520
|
key: "render",
|
|
36945
36521
|
value: function render() {
|
|
36946
36522
|
var _this2 = this;
|
|
@@ -36951,7 +36527,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36951
36527
|
component = _this$props.component,
|
|
36952
36528
|
children = _this$props.children,
|
|
36953
36529
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36954
|
-
restProps =
|
|
36530
|
+
restProps = _objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36955
36531
|
|
|
36956
36532
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36957
36533
|
var motionProps = {};
|
|
@@ -36962,10 +36538,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36962
36538
|
delete restProps.keys;
|
|
36963
36539
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36964
36540
|
var status = _ref2.status,
|
|
36965
|
-
eventProps =
|
|
36541
|
+
eventProps = _objectWithoutProperties(_ref2, ["status"]);
|
|
36966
36542
|
|
|
36967
36543
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36968
|
-
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, {
|
|
36969
36545
|
key: eventProps.key,
|
|
36970
36546
|
visible: visible,
|
|
36971
36547
|
eventProps: eventProps,
|
|
@@ -37039,8 +36615,8 @@ function Mask(props) {
|
|
|
37039
36615
|
}, function (_ref) {
|
|
37040
36616
|
var motionClassName = _ref.className,
|
|
37041
36617
|
motionStyle = _ref.style;
|
|
37042
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37043
|
-
style:
|
|
36618
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36619
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), style),
|
|
37044
36620
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
37045
36621
|
}, maskProps));
|
|
37046
36622
|
});
|
|
@@ -37223,7 +36799,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
37223
36799
|
|
|
37224
36800
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
37225
36801
|
className: "".concat(prefixCls, "-content")
|
|
37226
|
-
}, 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({
|
|
37227
36803
|
className: "".concat(prefixCls, "-body"),
|
|
37228
36804
|
style: bodyStyle
|
|
37229
36805
|
}, bodyProps), children), footerNode);
|
|
@@ -37243,7 +36819,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
37243
36819
|
key: "dialog-element",
|
|
37244
36820
|
role: "document",
|
|
37245
36821
|
ref: motionRef,
|
|
37246
|
-
style:
|
|
36822
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionStyle), style), contentStyle),
|
|
37247
36823
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
37248
36824
|
onMouseDown: onMouseDown,
|
|
37249
36825
|
onMouseUp: onMouseUp
|
|
@@ -37425,7 +37001,7 @@ function Dialog(props) {
|
|
|
37425
37001
|
return function () {};
|
|
37426
37002
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
37427
37003
|
|
|
37428
|
-
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({
|
|
37429
37005
|
className: "".concat(prefixCls, "-root")
|
|
37430
37006
|
}, pickAttrs(props, {
|
|
37431
37007
|
data: true
|
|
@@ -37433,11 +37009,11 @@ function Dialog(props) {
|
|
|
37433
37009
|
prefixCls: prefixCls,
|
|
37434
37010
|
visible: mask && visible,
|
|
37435
37011
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
37436
|
-
style:
|
|
37012
|
+
style: _objectSpread2({
|
|
37437
37013
|
zIndex: zIndex
|
|
37438
37014
|
}, maskStyle),
|
|
37439
37015
|
maskProps: maskProps
|
|
37440
|
-
}), /*#__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({
|
|
37441
37017
|
tabIndex: -1,
|
|
37442
37018
|
onKeyDown: onWrapperKeyDown,
|
|
37443
37019
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -37445,12 +37021,12 @@ function Dialog(props) {
|
|
|
37445
37021
|
onClick: onWrapperClick,
|
|
37446
37022
|
role: "dialog",
|
|
37447
37023
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
37448
|
-
style:
|
|
37024
|
+
style: _objectSpread2(_objectSpread2({
|
|
37449
37025
|
zIndex: zIndex
|
|
37450
37026
|
}, wrapStyle), {}, {
|
|
37451
37027
|
display: !animatedVisible ? 'none' : null
|
|
37452
37028
|
})
|
|
37453
|
-
}, 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, {
|
|
37454
37030
|
onMouseDown: onContentMouseDown,
|
|
37455
37031
|
onMouseUp: onContentMouseUp,
|
|
37456
37032
|
ref: contentRef,
|
|
@@ -37498,7 +37074,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37498
37074
|
}, [visible]); // 渲染在当前 dom 里;
|
|
37499
37075
|
|
|
37500
37076
|
if (getContainer === false) {
|
|
37501
|
-
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, {
|
|
37502
37078
|
getOpenCount: function getOpenCount() {
|
|
37503
37079
|
return 2;
|
|
37504
37080
|
} // 不对 body 做任何操作。。
|
|
@@ -37516,7 +37092,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37516
37092
|
forceRender: forceRender,
|
|
37517
37093
|
getContainer: getContainer
|
|
37518
37094
|
}, function (childProps) {
|
|
37519
|
-
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, {
|
|
37520
37096
|
destroyOnClose: destroyOnClose,
|
|
37521
37097
|
afterClose: function afterClose() {
|
|
37522
37098
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -37551,8 +37127,8 @@ function getConfirmLocale() {
|
|
|
37551
37127
|
|
|
37552
37128
|
|
|
37553
37129
|
|
|
37554
|
-
var UnreachableException = /*#__PURE__*/
|
|
37555
|
-
|
|
37130
|
+
var UnreachableException = /*#__PURE__*/_createClass(function UnreachableException(value) {
|
|
37131
|
+
_classCallCheck(this, UnreachableException);
|
|
37556
37132
|
|
|
37557
37133
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
37558
37134
|
});
|
|
@@ -37615,8 +37191,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
37615
37191
|
console.warn(new UnreachableException(size).error);
|
|
37616
37192
|
}
|
|
37617
37193
|
|
|
37618
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37619
|
-
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, {
|
|
37620
37196
|
className: classes
|
|
37621
37197
|
}));
|
|
37622
37198
|
});
|
|
@@ -37687,14 +37263,14 @@ function isNotGrey(color) {
|
|
|
37687
37263
|
}
|
|
37688
37264
|
|
|
37689
37265
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
37690
|
-
|
|
37266
|
+
_inherits(Wave, _React$Component);
|
|
37691
37267
|
|
|
37692
|
-
var _super =
|
|
37268
|
+
var _super = _createSuper(Wave);
|
|
37693
37269
|
|
|
37694
37270
|
function Wave() {
|
|
37695
37271
|
var _this;
|
|
37696
37272
|
|
|
37697
|
-
|
|
37273
|
+
_classCallCheck(this, Wave);
|
|
37698
37274
|
|
|
37699
37275
|
_this = _super.apply(this, arguments);
|
|
37700
37276
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -37714,7 +37290,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37714
37290
|
|
|
37715
37291
|
_this.extraNode = document.createElement('div');
|
|
37716
37292
|
|
|
37717
|
-
var _assertThisInitialize =
|
|
37293
|
+
var _assertThisInitialize = _assertThisInitialized(_this),
|
|
37718
37294
|
extraNode = _assertThisInitialize.extraNode;
|
|
37719
37295
|
|
|
37720
37296
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -37821,7 +37397,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37821
37397
|
return _this;
|
|
37822
37398
|
}
|
|
37823
37399
|
|
|
37824
|
-
|
|
37400
|
+
_createClass(Wave, [{
|
|
37825
37401
|
key: "componentDidMount",
|
|
37826
37402
|
value: function componentDidMount() {
|
|
37827
37403
|
var node = this.containerRef.current;
|
|
@@ -38048,7 +37624,7 @@ function spaceChildren(children, needInserted) {
|
|
|
38048
37624
|
var isPrevChildPure = false;
|
|
38049
37625
|
var childList = [];
|
|
38050
37626
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
38051
|
-
var type =
|
|
37627
|
+
var type = typeof_typeof(child);
|
|
38052
37628
|
|
|
38053
37629
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
38054
37630
|
|
|
@@ -38148,7 +37724,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
38148
37724
|
}; // =============== Update Loading ===============
|
|
38149
37725
|
|
|
38150
37726
|
|
|
38151
|
-
var loadingOrDelay =
|
|
37727
|
+
var loadingOrDelay = typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
38152
37728
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
38153
37729
|
clearTimeout(delayTimeoutRef.current);
|
|
38154
37730
|
|
|
@@ -38188,7 +37764,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
38188
37764
|
var sizeFullname = customizeSize || size;
|
|
38189
37765
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
38190
37766
|
var iconType = innerLoading ? 'loading' : icon;
|
|
38191
|
-
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);
|
|
38192
37768
|
var iconNode;
|
|
38193
37769
|
|
|
38194
37770
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -38207,14 +37783,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
38207
37783
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
38208
37784
|
|
|
38209
37785
|
if (linkButtonRestProps.href !== undefined) {
|
|
38210
|
-
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, {
|
|
38211
37787
|
className: classes,
|
|
38212
37788
|
onClick: handleClick,
|
|
38213
37789
|
ref: buttonRef
|
|
38214
37790
|
}), iconNode, kids);
|
|
38215
37791
|
}
|
|
38216
37792
|
|
|
38217
|
-
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, {
|
|
38218
37794
|
type: htmlType,
|
|
38219
37795
|
className: classes,
|
|
38220
37796
|
onClick: handleClick,
|
|
@@ -38392,9 +37968,9 @@ var Modal = function Modal(props) {
|
|
|
38392
37968
|
okType = props.okType,
|
|
38393
37969
|
cancelText = props.cancelText,
|
|
38394
37970
|
confirmLoading = props.confirmLoading;
|
|
38395
|
-
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({
|
|
38396
37972
|
onClick: handleCancel
|
|
38397
|
-
}, 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), {
|
|
38398
37974
|
loading: confirmLoading,
|
|
38399
37975
|
onClick: handleOk
|
|
38400
37976
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -38429,8 +38005,8 @@ var Modal = function Modal(props) {
|
|
|
38429
38005
|
type: "close",
|
|
38430
38006
|
className: "".concat(prefixCls, "-close-icon")
|
|
38431
38007
|
}));
|
|
38432
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
38433
|
-
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, {
|
|
38434
38010
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
38435
38011
|
prefixCls: prefixCls,
|
|
38436
38012
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -38556,7 +38132,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
38556
38132
|
children = props.children,
|
|
38557
38133
|
prefixCls = props.prefixCls,
|
|
38558
38134
|
buttonProps = props.buttonProps;
|
|
38559
|
-
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), {
|
|
38560
38136
|
onClick: onClick,
|
|
38561
38137
|
loading: loading,
|
|
38562
38138
|
prefixCls: prefixCls
|
|
@@ -38673,7 +38249,6 @@ function asyncToGenerator_asyncToGenerator(fn) {
|
|
|
38673
38249
|
};
|
|
38674
38250
|
}
|
|
38675
38251
|
;// CONCATENATED MODULE: ./node_modules/async-validator/dist-web/index.js
|
|
38676
|
-
/* provided dependency */ var dist_web_process = __webpack_require__(4155);
|
|
38677
38252
|
function dist_web_extends() {
|
|
38678
38253
|
dist_web_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
38679
38254
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -38785,7 +38360,7 @@ function _wrapNativeSuper(Class) {
|
|
|
38785
38360
|
var formatRegExp = /%[sdj%]/g;
|
|
38786
38361
|
var dist_web_warning = function warning() {}; // don't print warning message when in production env or node runtime
|
|
38787
38362
|
|
|
38788
|
-
if (typeof
|
|
38363
|
+
if (typeof process !== 'undefined' && process.env && "production" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
|
|
38789
38364
|
dist_web_warning = function warning(type, errors) {
|
|
38790
38365
|
if (typeof console !== 'undefined' && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING === 'undefined') {
|
|
38791
38366
|
if (errors.every(function (e) {
|
|
@@ -40073,7 +39648,7 @@ function get(entity, path) {
|
|
|
40073
39648
|
|
|
40074
39649
|
|
|
40075
39650
|
function _toArray(arr) {
|
|
40076
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
39651
|
+
return arrayWithHoles_arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
40077
39652
|
}
|
|
40078
39653
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
40079
39654
|
|
|
@@ -40095,9 +39670,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
40095
39670
|
if (!entity && typeof path === 'number') {
|
|
40096
39671
|
clone = [];
|
|
40097
39672
|
} else if (Array.isArray(entity)) {
|
|
40098
|
-
clone =
|
|
39673
|
+
clone = _toConsumableArray(entity);
|
|
40099
39674
|
} else {
|
|
40100
|
-
clone =
|
|
39675
|
+
clone = _objectSpread2({}, entity);
|
|
40101
39676
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
40102
39677
|
|
|
40103
39678
|
|
|
@@ -40161,7 +39736,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
40161
39736
|
}
|
|
40162
39737
|
|
|
40163
39738
|
function isObject(obj) {
|
|
40164
|
-
return
|
|
39739
|
+
return typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
40165
39740
|
}
|
|
40166
39741
|
/**
|
|
40167
39742
|
* Copy values into store and return a new values object
|
|
@@ -40170,7 +39745,7 @@ function isObject(obj) {
|
|
|
40170
39745
|
|
|
40171
39746
|
|
|
40172
39747
|
function internalSetValues(store, values) {
|
|
40173
|
-
var newStore = Array.isArray(store) ?
|
|
39748
|
+
var newStore = Array.isArray(store) ? _toConsumableArray(store) : _objectSpread2({}, store);
|
|
40174
39749
|
|
|
40175
39750
|
if (!values) {
|
|
40176
39751
|
return newStore;
|
|
@@ -40213,14 +39788,14 @@ function isSimilar(source, target) {
|
|
|
40213
39788
|
return false;
|
|
40214
39789
|
}
|
|
40215
39790
|
|
|
40216
|
-
if (!source || !target ||
|
|
39791
|
+
if (!source || !target || typeof_typeof(source) !== 'object' || typeof_typeof(target) !== 'object') {
|
|
40217
39792
|
return false;
|
|
40218
39793
|
}
|
|
40219
39794
|
|
|
40220
39795
|
var sourceKeys = Object.keys(source);
|
|
40221
39796
|
var targetKeys = Object.keys(target);
|
|
40222
|
-
var keys = new Set([].concat(
|
|
40223
|
-
return
|
|
39797
|
+
var keys = new Set([].concat(_toConsumableArray(sourceKeys), _toConsumableArray(targetKeys)));
|
|
39798
|
+
return _toConsumableArray(keys).every(function (key) {
|
|
40224
39799
|
var sourceValue = source[key];
|
|
40225
39800
|
var targetValue = target[key];
|
|
40226
39801
|
|
|
@@ -40263,12 +39838,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
40263
39838
|
|
|
40264
39839
|
if (diff > 0) {
|
|
40265
39840
|
// move left
|
|
40266
|
-
return [].concat(
|
|
39841
|
+
return [].concat(_toConsumableArray(array.slice(0, toIndex)), [item], _toConsumableArray(array.slice(toIndex, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
40267
39842
|
}
|
|
40268
39843
|
|
|
40269
39844
|
if (diff < 0) {
|
|
40270
39845
|
// move right
|
|
40271
|
-
return [].concat(
|
|
39846
|
+
return [].concat(_toConsumableArray(array.slice(0, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], _toConsumableArray(array.slice(toIndex + 1, length)));
|
|
40272
39847
|
}
|
|
40273
39848
|
|
|
40274
39849
|
return array;
|
|
@@ -40308,13 +39883,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
40308
39883
|
|
|
40309
39884
|
|
|
40310
39885
|
function _validateRule() {
|
|
40311
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39886
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
40312
39887
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
40313
|
-
return
|
|
39888
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
40314
39889
|
while (1) {
|
|
40315
39890
|
switch (_context2.prev = _context2.next) {
|
|
40316
39891
|
case 0:
|
|
40317
|
-
cloneRule =
|
|
39892
|
+
cloneRule = _objectSpread2({}, rule); // Bug of `async-validator`
|
|
40318
39893
|
// https://github.com/react-component/field-form/issues/316
|
|
40319
39894
|
// https://github.com/react-component/field-form/issues/313
|
|
40320
39895
|
|
|
@@ -40327,13 +39902,13 @@ function _validateRule() {
|
|
|
40327
39902
|
delete cloneRule.defaultField;
|
|
40328
39903
|
}
|
|
40329
39904
|
|
|
40330
|
-
validator = new AsyncValidator(
|
|
39905
|
+
validator = new AsyncValidator(_defineProperty({}, name, [cloneRule]));
|
|
40331
39906
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
40332
39907
|
validator.messages(messages);
|
|
40333
39908
|
result = [];
|
|
40334
39909
|
_context2.prev = 8;
|
|
40335
39910
|
_context2.next = 11;
|
|
40336
|
-
return Promise.resolve(validator.validate(
|
|
39911
|
+
return Promise.resolve(validator.validate(_defineProperty({}, name, value), _objectSpread2({}, options)));
|
|
40337
39912
|
|
|
40338
39913
|
case 11:
|
|
40339
39914
|
_context2.next = 16;
|
|
@@ -40373,12 +39948,12 @@ function _validateRule() {
|
|
|
40373
39948
|
case 19:
|
|
40374
39949
|
subResults = _context2.sent;
|
|
40375
39950
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
40376
|
-
return [].concat(
|
|
39951
|
+
return [].concat(_toConsumableArray(prev), _toConsumableArray(errors));
|
|
40377
39952
|
}, []));
|
|
40378
39953
|
|
|
40379
39954
|
case 21:
|
|
40380
39955
|
// Replace message with variables
|
|
40381
|
-
kv =
|
|
39956
|
+
kv = _objectSpread2(_objectSpread2({}, rule), {}, {
|
|
40382
39957
|
name: name,
|
|
40383
39958
|
enum: (rule.enum || []).join(', ')
|
|
40384
39959
|
}, messageVariables);
|
|
@@ -40407,7 +39982,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40407
39982
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
40408
39983
|
var originValidatorFunc = currentRule.validator;
|
|
40409
39984
|
|
|
40410
|
-
var cloneRule =
|
|
39985
|
+
var cloneRule = _objectSpread2(_objectSpread2({}, currentRule), {}, {
|
|
40411
39986
|
ruleIndex: ruleIndex
|
|
40412
39987
|
}); // Replace validator if needed
|
|
40413
39988
|
|
|
@@ -40475,9 +40050,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40475
40050
|
if (validateFirst === true) {
|
|
40476
40051
|
// >>>>> Validate by serialization
|
|
40477
40052
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
40478
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40053
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(resolve, reject) {
|
|
40479
40054
|
var i, rule, errors;
|
|
40480
|
-
return
|
|
40055
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
40481
40056
|
while (1) {
|
|
40482
40057
|
switch (_context.prev = _context.next) {
|
|
40483
40058
|
case 0:
|
|
@@ -40556,15 +40131,15 @@ function finishOnAllFailed(_x8) {
|
|
|
40556
40131
|
}
|
|
40557
40132
|
|
|
40558
40133
|
function _finishOnAllFailed() {
|
|
40559
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40560
|
-
return
|
|
40134
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(rulePromises) {
|
|
40135
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
40561
40136
|
while (1) {
|
|
40562
40137
|
switch (_context3.prev = _context3.next) {
|
|
40563
40138
|
case 0:
|
|
40564
40139
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
40565
40140
|
var _ref5;
|
|
40566
40141
|
|
|
40567
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
40142
|
+
var errors = (_ref5 = []).concat.apply(_ref5, _toConsumableArray(errorsList));
|
|
40568
40143
|
|
|
40569
40144
|
return errors;
|
|
40570
40145
|
}));
|
|
@@ -40584,9 +40159,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
40584
40159
|
}
|
|
40585
40160
|
|
|
40586
40161
|
function _finishOnFirstFailed() {
|
|
40587
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40162
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(rulePromises) {
|
|
40588
40163
|
var count;
|
|
40589
|
-
return
|
|
40164
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
40590
40165
|
while (1) {
|
|
40591
40166
|
switch (_context4.prev = _context4.next) {
|
|
40592
40167
|
case 0:
|
|
@@ -40649,9 +40224,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
40649
40224
|
|
|
40650
40225
|
|
|
40651
40226
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
40652
|
-
|
|
40227
|
+
_inherits(Field, _React$Component);
|
|
40653
40228
|
|
|
40654
|
-
var _super =
|
|
40229
|
+
var _super = _createSuper(Field);
|
|
40655
40230
|
|
|
40656
40231
|
/**
|
|
40657
40232
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -40667,7 +40242,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40667
40242
|
function Field(props) {
|
|
40668
40243
|
var _this;
|
|
40669
40244
|
|
|
40670
|
-
|
|
40245
|
+
_classCallCheck(this, Field);
|
|
40671
40246
|
|
|
40672
40247
|
_this = _super.call(this, props); // Register on init
|
|
40673
40248
|
|
|
@@ -40702,7 +40277,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40702
40277
|
fieldContext = _this$props2.fieldContext;
|
|
40703
40278
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
40704
40279
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
40705
|
-
return name !== undefined ? [].concat(
|
|
40280
|
+
return name !== undefined ? [].concat(_toConsumableArray(prefixName), _toConsumableArray(name)) : [];
|
|
40706
40281
|
};
|
|
40707
40282
|
|
|
40708
40283
|
_this.getRules = function () {
|
|
@@ -40735,7 +40310,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40735
40310
|
|
|
40736
40311
|
_this.triggerMetaEvent = function (destroy) {
|
|
40737
40312
|
var onMetaChange = _this.props.onMetaChange;
|
|
40738
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
40313
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(_objectSpread2(_objectSpread2({}, _this.getMeta()), {}, {
|
|
40739
40314
|
destroy: destroy
|
|
40740
40315
|
}));
|
|
40741
40316
|
};
|
|
@@ -40924,9 +40499,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40924
40499
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
40925
40500
|
|
|
40926
40501
|
if (warningOnly) {
|
|
40927
|
-
nextWarnings.push.apply(nextWarnings,
|
|
40502
|
+
nextWarnings.push.apply(nextWarnings, _toConsumableArray(errors));
|
|
40928
40503
|
} else {
|
|
40929
|
-
nextErrors.push.apply(nextErrors,
|
|
40504
|
+
nextErrors.push.apply(nextErrors, _toConsumableArray(errors));
|
|
40930
40505
|
}
|
|
40931
40506
|
});
|
|
40932
40507
|
_this.errors = nextErrors;
|
|
@@ -41017,7 +40592,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
41017
40592
|
if (typeof children === 'function') {
|
|
41018
40593
|
var meta = _this.getMeta();
|
|
41019
40594
|
|
|
41020
|
-
return
|
|
40595
|
+
return _objectSpread2(_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
41021
40596
|
isFunction: true
|
|
41022
40597
|
});
|
|
41023
40598
|
} // Filed element only
|
|
@@ -41069,13 +40644,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
41069
40644
|
var value = _this.getValue();
|
|
41070
40645
|
|
|
41071
40646
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
41072
|
-
return
|
|
40647
|
+
return _defineProperty({}, valuePropName, val);
|
|
41073
40648
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
41074
40649
|
|
|
41075
40650
|
|
|
41076
40651
|
var originTriggerFunc = childProps[trigger];
|
|
41077
40652
|
|
|
41078
|
-
var control =
|
|
40653
|
+
var control = _objectSpread2(_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
41079
40654
|
|
|
41080
40655
|
|
|
41081
40656
|
control[trigger] = function () {
|
|
@@ -41146,13 +40721,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
41146
40721
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
41147
40722
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
41148
40723
|
|
|
41149
|
-
initEntityValue(
|
|
40724
|
+
initEntityValue(_assertThisInitialized(_this));
|
|
41150
40725
|
}
|
|
41151
40726
|
|
|
41152
40727
|
return _this;
|
|
41153
40728
|
}
|
|
41154
40729
|
|
|
41155
|
-
|
|
40730
|
+
_createClass(Field, [{
|
|
41156
40731
|
key: "componentDidMount",
|
|
41157
40732
|
value: function componentDidMount() {
|
|
41158
40733
|
var _this$props7 = this.props,
|
|
@@ -41226,7 +40801,7 @@ Field.defaultProps = {
|
|
|
41226
40801
|
|
|
41227
40802
|
function WrapperField(_ref5) {
|
|
41228
40803
|
var name = _ref5.name,
|
|
41229
|
-
restProps =
|
|
40804
|
+
restProps = _objectWithoutProperties(_ref5, Field_excluded);
|
|
41230
40805
|
|
|
41231
40806
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
41232
40807
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -41240,7 +40815,7 @@ function WrapperField(_ref5) {
|
|
|
41240
40815
|
|
|
41241
40816
|
if (false) {}
|
|
41242
40817
|
|
|
41243
|
-
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({
|
|
41244
40819
|
key: key,
|
|
41245
40820
|
name: namePath
|
|
41246
40821
|
}, restProps, {
|
|
@@ -41277,7 +40852,7 @@ var List = function List(_ref) {
|
|
|
41277
40852
|
}
|
|
41278
40853
|
|
|
41279
40854
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
41280
|
-
var prefixName = [].concat(
|
|
40855
|
+
var prefixName = [].concat(_toConsumableArray(parentPrefixName), _toConsumableArray(getNamePath(name)));
|
|
41281
40856
|
|
|
41282
40857
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
41283
40858
|
var source = _ref2.source;
|
|
@@ -41290,7 +40865,7 @@ var List = function List(_ref) {
|
|
|
41290
40865
|
};
|
|
41291
40866
|
|
|
41292
40867
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
41293
|
-
value:
|
|
40868
|
+
value: _objectSpread2(_objectSpread2({}, context), {}, {
|
|
41294
40869
|
prefixName: prefixName
|
|
41295
40870
|
})
|
|
41296
40871
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -41321,13 +40896,13 @@ var List = function List(_ref) {
|
|
|
41321
40896
|
var newValue = getNewValue();
|
|
41322
40897
|
|
|
41323
40898
|
if (index >= 0 && index <= newValue.length) {
|
|
41324
|
-
keyManager.keys = [].concat(
|
|
41325
|
-
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))));
|
|
41326
40901
|
} else {
|
|
41327
40902
|
if (false) {}
|
|
41328
40903
|
|
|
41329
|
-
keyManager.keys = [].concat(
|
|
41330
|
-
onChange([].concat(
|
|
40904
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
40905
|
+
onChange([].concat(_toConsumableArray(newValue), [defaultValue]));
|
|
41331
40906
|
}
|
|
41332
40907
|
|
|
41333
40908
|
keyManager.id += 1;
|
|
@@ -41436,7 +41011,7 @@ var SPLIT = '__@field_split__';
|
|
|
41436
41011
|
|
|
41437
41012
|
function normalize(namePath) {
|
|
41438
41013
|
return namePath.map(function (cell) {
|
|
41439
|
-
return "".concat(
|
|
41014
|
+
return "".concat(typeof_typeof(cell), ":").concat(cell);
|
|
41440
41015
|
}) // Magic split
|
|
41441
41016
|
.join(SPLIT);
|
|
41442
41017
|
}
|
|
@@ -41447,12 +41022,12 @@ function normalize(namePath) {
|
|
|
41447
41022
|
|
|
41448
41023
|
var NameMap = /*#__PURE__*/function () {
|
|
41449
41024
|
function NameMap() {
|
|
41450
|
-
|
|
41025
|
+
_classCallCheck(this, NameMap);
|
|
41451
41026
|
|
|
41452
41027
|
this.kvs = new Map();
|
|
41453
41028
|
}
|
|
41454
41029
|
|
|
41455
|
-
|
|
41030
|
+
_createClass(NameMap, [{
|
|
41456
41031
|
key: "set",
|
|
41457
41032
|
value: function set(key, value) {
|
|
41458
41033
|
this.kvs.set(normalize(key), value);
|
|
@@ -41483,7 +41058,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
41483
41058
|
}, {
|
|
41484
41059
|
key: "map",
|
|
41485
41060
|
value: function map(callback) {
|
|
41486
|
-
return
|
|
41061
|
+
return _toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
41487
41062
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
41488
41063
|
key = _ref2[0],
|
|
41489
41064
|
value = _ref2[1];
|
|
@@ -41537,7 +41112,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
41537
41112
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
41538
41113
|
var _this = this;
|
|
41539
41114
|
|
|
41540
|
-
|
|
41115
|
+
_classCallCheck(this, FormStore);
|
|
41541
41116
|
|
|
41542
41117
|
this.formHooked = false;
|
|
41543
41118
|
this.forceRootUpdate = void 0;
|
|
@@ -41797,7 +41372,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41797
41372
|
return fieldNamePath[i] === nameUnit;
|
|
41798
41373
|
})) {
|
|
41799
41374
|
map.update(shortNamePath, function (list) {
|
|
41800
|
-
return [].concat(
|
|
41375
|
+
return [].concat(_toConsumableArray(list), [field]);
|
|
41801
41376
|
});
|
|
41802
41377
|
}
|
|
41803
41378
|
});
|
|
@@ -41888,7 +41463,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41888
41463
|
|
|
41889
41464
|
|
|
41890
41465
|
if (!info.skipExist || originValue === undefined) {
|
|
41891
|
-
_this.store = setValue(_this.store, namePath,
|
|
41466
|
+
_this.store = setValue(_this.store, namePath, _toConsumableArray(records)[0].value);
|
|
41892
41467
|
}
|
|
41893
41468
|
}
|
|
41894
41469
|
}
|
|
@@ -41908,7 +41483,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41908
41483
|
if (records) {
|
|
41909
41484
|
var _requiredFieldEntitie;
|
|
41910
41485
|
|
|
41911
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
41486
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, _toConsumableArray(_toConsumableArray(records).map(function (r) {
|
|
41912
41487
|
return r.entity;
|
|
41913
41488
|
})));
|
|
41914
41489
|
}
|
|
@@ -41961,7 +41536,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41961
41536
|
fields.forEach(function (fieldData) {
|
|
41962
41537
|
var name = fieldData.name,
|
|
41963
41538
|
errors = fieldData.errors,
|
|
41964
|
-
data =
|
|
41539
|
+
data = _objectWithoutProperties(fieldData, useForm_excluded);
|
|
41965
41540
|
|
|
41966
41541
|
var namePath = getNamePath(name); // Value
|
|
41967
41542
|
|
|
@@ -41983,7 +41558,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41983
41558
|
var namePath = field.getNamePath();
|
|
41984
41559
|
var meta = field.getMeta();
|
|
41985
41560
|
|
|
41986
|
-
var fieldData =
|
|
41561
|
+
var fieldData = _objectSpread2(_objectSpread2({}, meta), {}, {
|
|
41987
41562
|
name: namePath,
|
|
41988
41563
|
value: _this.getFieldValue(namePath)
|
|
41989
41564
|
});
|
|
@@ -42082,7 +41657,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42082
41657
|
|
|
42083
41658
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
42084
41659
|
if (_this.subscribable) {
|
|
42085
|
-
var mergedInfo =
|
|
41660
|
+
var mergedInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
42086
41661
|
store: _this.getFieldsValue(true)
|
|
42087
41662
|
});
|
|
42088
41663
|
|
|
@@ -42115,7 +41690,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42115
41690
|
|
|
42116
41691
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
42117
41692
|
type: 'dependenciesUpdate',
|
|
42118
|
-
relatedFields: [namePath].concat(
|
|
41693
|
+
relatedFields: [namePath].concat(_toConsumableArray(childrenFields))
|
|
42119
41694
|
}); // trigger callback function
|
|
42120
41695
|
|
|
42121
41696
|
|
|
@@ -42126,7 +41701,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42126
41701
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
42127
41702
|
}
|
|
42128
41703
|
|
|
42129
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
41704
|
+
_this.triggerOnFieldsChange([namePath].concat(_toConsumableArray(childrenFields)));
|
|
42130
41705
|
};
|
|
42131
41706
|
|
|
42132
41707
|
this.setFieldsValue = function (store) {
|
|
@@ -42254,8 +41829,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42254
41829
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
42255
41830
|
|
|
42256
41831
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
42257
|
-
var promise = field.validateRules(
|
|
42258
|
-
validateMessages:
|
|
41832
|
+
var promise = field.validateRules(_objectSpread2({
|
|
41833
|
+
validateMessages: _objectSpread2(_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
42259
41834
|
}, options)); // Wrap promise with field
|
|
42260
41835
|
|
|
42261
41836
|
promiseList.push(promise.then(function () {
|
|
@@ -42272,9 +41847,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42272
41847
|
errors = _ref5.errors;
|
|
42273
41848
|
|
|
42274
41849
|
if (warningOnly) {
|
|
42275
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
41850
|
+
mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
|
|
42276
41851
|
} else {
|
|
42277
|
-
mergedErrors.push.apply(mergedErrors,
|
|
41852
|
+
mergedErrors.push.apply(mergedErrors, _toConsumableArray(errors));
|
|
42278
41853
|
}
|
|
42279
41854
|
});
|
|
42280
41855
|
|
|
@@ -42405,8 +41980,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
42405
41980
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
42406
41981
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42407
41982
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
42408
|
-
value:
|
|
42409
|
-
validateMessages:
|
|
41983
|
+
value: _objectSpread2(_objectSpread2({}, formContext), {}, {
|
|
41984
|
+
validateMessages: _objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
42410
41985
|
// =========================================================
|
|
42411
41986
|
// = Global Form Control =
|
|
42412
41987
|
// =========================================================
|
|
@@ -42432,13 +42007,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
42432
42007
|
},
|
|
42433
42008
|
registerForm: function registerForm(name, form) {
|
|
42434
42009
|
if (name) {
|
|
42435
|
-
formsRef.current =
|
|
42010
|
+
formsRef.current = _objectSpread2(_objectSpread2({}, formsRef.current), {}, _defineProperty({}, name, form));
|
|
42436
42011
|
}
|
|
42437
42012
|
|
|
42438
42013
|
formContext.registerForm(name, form);
|
|
42439
42014
|
},
|
|
42440
42015
|
unregisterForm: function unregisterForm(name) {
|
|
42441
|
-
var newForms =
|
|
42016
|
+
var newForms = _objectSpread2({}, formsRef.current);
|
|
42442
42017
|
|
|
42443
42018
|
delete newForms[name];
|
|
42444
42019
|
formsRef.current = newForms;
|
|
@@ -42478,7 +42053,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42478
42053
|
_onFieldsChange = _ref.onFieldsChange,
|
|
42479
42054
|
_onFinish = _ref.onFinish,
|
|
42480
42055
|
onFinishFailed = _ref.onFinishFailed,
|
|
42481
|
-
restProps =
|
|
42056
|
+
restProps = _objectWithoutProperties(_ref, Form_excluded);
|
|
42482
42057
|
|
|
42483
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:
|
|
42484
42059
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -42506,7 +42081,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42506
42081
|
};
|
|
42507
42082
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
42508
42083
|
|
|
42509
|
-
setValidateMessages(
|
|
42084
|
+
setValidateMessages(_objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
42510
42085
|
setCallbacks({
|
|
42511
42086
|
onValuesChange: onValuesChange,
|
|
42512
42087
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -42559,7 +42134,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42559
42134
|
prevFieldsRef.current = fields;
|
|
42560
42135
|
}, [fields, formInstance]);
|
|
42561
42136
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
42562
|
-
return
|
|
42137
|
+
return _objectSpread2(_objectSpread2({}, formInstance), {}, {
|
|
42563
42138
|
validateTrigger: validateTrigger
|
|
42564
42139
|
});
|
|
42565
42140
|
}, [formInstance, validateTrigger]);
|
|
@@ -42571,7 +42146,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42571
42146
|
return wrapperNode;
|
|
42572
42147
|
}
|
|
42573
42148
|
|
|
42574
|
-
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, {
|
|
42575
42150
|
onSubmit: function onSubmit(event) {
|
|
42576
42151
|
event.preventDefault();
|
|
42577
42152
|
event.stopPropagation();
|
|
@@ -42753,14 +42328,14 @@ LocaleProvider.defaultProps = {
|
|
|
42753
42328
|
|
|
42754
42329
|
|
|
42755
42330
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
42756
|
-
|
|
42331
|
+
_inherits(Notice, _Component);
|
|
42757
42332
|
|
|
42758
|
-
var _super =
|
|
42333
|
+
var _super = _createSuper(Notice);
|
|
42759
42334
|
|
|
42760
42335
|
function Notice() {
|
|
42761
42336
|
var _this;
|
|
42762
42337
|
|
|
42763
|
-
|
|
42338
|
+
_classCallCheck(this, Notice);
|
|
42764
42339
|
|
|
42765
42340
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42766
42341
|
args[_key] = arguments[_key];
|
|
@@ -42803,7 +42378,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42803
42378
|
return _this;
|
|
42804
42379
|
}
|
|
42805
42380
|
|
|
42806
|
-
|
|
42381
|
+
_createClass(Notice, [{
|
|
42807
42382
|
key: "componentDidMount",
|
|
42808
42383
|
value: function componentDidMount() {
|
|
42809
42384
|
this.startCloseTimer();
|
|
@@ -42849,8 +42424,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42849
42424
|
|
|
42850
42425
|
return acc;
|
|
42851
42426
|
}, {});
|
|
42852
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
42853
|
-
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)),
|
|
42854
42429
|
style: style,
|
|
42855
42430
|
onMouseEnter: this.clearCloseTimer,
|
|
42856
42431
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -42881,52 +42456,6 @@ Notice.defaultProps = {
|
|
|
42881
42456
|
duration: 1.5
|
|
42882
42457
|
};
|
|
42883
42458
|
|
|
42884
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
42885
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
42886
|
-
if (Array.isArray(arr)) return arr;
|
|
42887
|
-
}
|
|
42888
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
42889
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
42890
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42891
|
-
|
|
42892
|
-
if (_i == null) return;
|
|
42893
|
-
var _arr = [];
|
|
42894
|
-
var _n = true;
|
|
42895
|
-
var _d = false;
|
|
42896
|
-
|
|
42897
|
-
var _s, _e;
|
|
42898
|
-
|
|
42899
|
-
try {
|
|
42900
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
42901
|
-
_arr.push(_s.value);
|
|
42902
|
-
|
|
42903
|
-
if (i && _arr.length === i) break;
|
|
42904
|
-
}
|
|
42905
|
-
} catch (err) {
|
|
42906
|
-
_d = true;
|
|
42907
|
-
_e = err;
|
|
42908
|
-
} finally {
|
|
42909
|
-
try {
|
|
42910
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
42911
|
-
} finally {
|
|
42912
|
-
if (_d) throw _e;
|
|
42913
|
-
}
|
|
42914
|
-
}
|
|
42915
|
-
|
|
42916
|
-
return _arr;
|
|
42917
|
-
}
|
|
42918
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
42919
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
42920
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
42921
|
-
}
|
|
42922
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
42923
|
-
|
|
42924
|
-
|
|
42925
|
-
|
|
42926
|
-
|
|
42927
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
42928
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
42929
|
-
}
|
|
42930
42459
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
42931
42460
|
|
|
42932
42461
|
|
|
@@ -42937,7 +42466,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42937
42466
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42938
42467
|
|
|
42939
42468
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42940
|
-
_React$useState2 =
|
|
42469
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
42941
42470
|
elements = _React$useState2[0],
|
|
42942
42471
|
setElements = _React$useState2[1];
|
|
42943
42472
|
|
|
@@ -42998,14 +42527,14 @@ function getUuid() {
|
|
|
42998
42527
|
}
|
|
42999
42528
|
|
|
43000
42529
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
43001
|
-
|
|
42530
|
+
_inherits(Notification, _Component);
|
|
43002
42531
|
|
|
43003
|
-
var _super =
|
|
42532
|
+
var _super = _createSuper(Notification);
|
|
43004
42533
|
|
|
43005
42534
|
function Notification() {
|
|
43006
42535
|
var _this;
|
|
43007
42536
|
|
|
43008
|
-
|
|
42537
|
+
_classCallCheck(this, Notification);
|
|
43009
42538
|
|
|
43010
42539
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
43011
42540
|
args[_key] = arguments[_key];
|
|
@@ -43020,7 +42549,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
43020
42549
|
_this.add = function (originNotice, holderCallback) {
|
|
43021
42550
|
var key = originNotice.key || getUuid();
|
|
43022
42551
|
|
|
43023
|
-
var notice =
|
|
42552
|
+
var notice = _objectSpread2(_objectSpread2({}, originNotice), {}, {
|
|
43024
42553
|
key: key
|
|
43025
42554
|
});
|
|
43026
42555
|
|
|
@@ -43087,7 +42616,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
43087
42616
|
return _this;
|
|
43088
42617
|
}
|
|
43089
42618
|
|
|
43090
|
-
|
|
42619
|
+
_createClass(Notification, [{
|
|
43091
42620
|
key: "getTransitionName",
|
|
43092
42621
|
value: function getTransitionName() {
|
|
43093
42622
|
var _this$props = this.props,
|
|
@@ -43120,7 +42649,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
43120
42649
|
var key = notice.key,
|
|
43121
42650
|
userPassKey = notice.userPassKey;
|
|
43122
42651
|
|
|
43123
|
-
var noticeProps =
|
|
42652
|
+
var noticeProps = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
43124
42653
|
prefixCls: prefixCls,
|
|
43125
42654
|
closeIcon: closeIcon
|
|
43126
42655
|
}, notice), notice.props), {}, {
|
|
@@ -43171,7 +42700,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
43171
42700
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
43172
42701
|
key: key,
|
|
43173
42702
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
43174
|
-
style:
|
|
42703
|
+
style: _objectSpread2({}, motionStyle),
|
|
43175
42704
|
ref: function ref(div) {
|
|
43176
42705
|
if (typeof key === 'undefined') {
|
|
43177
42706
|
return;
|
|
@@ -43188,9 +42717,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
43188
42717
|
});
|
|
43189
42718
|
}
|
|
43190
42719
|
|
|
43191
|
-
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, {
|
|
43192
42721
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
43193
|
-
style:
|
|
42722
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
43194
42723
|
visible: visible
|
|
43195
42724
|
}));
|
|
43196
42725
|
}));
|
|
@@ -43213,7 +42742,7 @@ Notification.defaultProps = {
|
|
|
43213
42742
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
43214
42743
|
var _ref6 = properties || {},
|
|
43215
42744
|
getContainer = _ref6.getContainer,
|
|
43216
|
-
props =
|
|
42745
|
+
props = _objectWithoutProperties(_ref6, ["getContainer"]);
|
|
43217
42746
|
|
|
43218
42747
|
var div = document.createElement('div');
|
|
43219
42748
|
|
|
@@ -43257,7 +42786,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
43257
42786
|
|
|
43258
42787
|
if (false) {}
|
|
43259
42788
|
|
|
43260
|
-
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, {
|
|
43261
42790
|
ref: ref
|
|
43262
42791
|
})), div);
|
|
43263
42792
|
};
|
|
@@ -43287,7 +42816,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
43287
42816
|
};
|
|
43288
42817
|
|
|
43289
42818
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43290
|
-
_useRCNotification2 =
|
|
42819
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43291
42820
|
hookNotify = _useRCNotification2[0],
|
|
43292
42821
|
holder = _useRCNotification2[1];
|
|
43293
42822
|
|
|
@@ -43616,7 +43145,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
43616
43145
|
};
|
|
43617
43146
|
|
|
43618
43147
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43619
|
-
_useRCNotification2 =
|
|
43148
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43620
43149
|
hookNotify = _useRCNotification2[0],
|
|
43621
43150
|
holder = _useRCNotification2[1];
|
|
43622
43151
|
|
|
@@ -44243,7 +43772,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
44243
43772
|
|
|
44244
43773
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
44245
43774
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
44246
|
-
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);
|
|
44247
43776
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
44248
43777
|
actionFn: onCancel,
|
|
44249
43778
|
close: close,
|
|
@@ -44261,7 +43790,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
44261
43790
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
44262
43791
|
prefixCls: prefixCls,
|
|
44263
43792
|
className: classString,
|
|
44264
|
-
wrapClassName: classnames_default()(
|
|
43793
|
+
wrapClassName: classnames_default()(_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
44265
43794
|
onCancel: function onCancel() {
|
|
44266
43795
|
return close({
|
|
44267
43796
|
triggerCancel: true
|
|
@@ -44345,7 +43874,7 @@ function getRootPrefixCls() {
|
|
|
44345
43874
|
function confirm_confirm(config) {
|
|
44346
43875
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
44347
43876
|
|
|
44348
|
-
var currentConfig =
|
|
43877
|
+
var currentConfig = extends_extends(extends_extends({}, config), {
|
|
44349
43878
|
close: close,
|
|
44350
43879
|
visible: true
|
|
44351
43880
|
});
|
|
@@ -44398,7 +43927,7 @@ function confirm_confirm(config) {
|
|
|
44398
43927
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
44399
43928
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
44400
43929
|
var iconPrefixCls = getIconPrefixCls();
|
|
44401
|
-
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, {
|
|
44402
43931
|
prefixCls: prefixCls,
|
|
44403
43932
|
rootPrefixCls: rootPrefixCls,
|
|
44404
43933
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -44415,7 +43944,7 @@ function confirm_confirm(config) {
|
|
|
44415
43944
|
args[_key2] = arguments[_key2];
|
|
44416
43945
|
}
|
|
44417
43946
|
|
|
44418
|
-
currentConfig =
|
|
43947
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), {
|
|
44419
43948
|
visible: false,
|
|
44420
43949
|
afterClose: function afterClose() {
|
|
44421
43950
|
if (typeof config.afterClose === 'function') {
|
|
@@ -44432,7 +43961,7 @@ function confirm_confirm(config) {
|
|
|
44432
43961
|
if (typeof configUpdate === 'function') {
|
|
44433
43962
|
currentConfig = configUpdate(currentConfig);
|
|
44434
43963
|
} else {
|
|
44435
|
-
currentConfig =
|
|
43964
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), configUpdate);
|
|
44436
43965
|
}
|
|
44437
43966
|
|
|
44438
43967
|
render(currentConfig);
|
|
@@ -44446,7 +43975,7 @@ function confirm_confirm(config) {
|
|
|
44446
43975
|
};
|
|
44447
43976
|
}
|
|
44448
43977
|
function withWarn(props) {
|
|
44449
|
-
return
|
|
43978
|
+
return extends_extends(extends_extends({
|
|
44450
43979
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44451
43980
|
type: "exclamation-circle"
|
|
44452
43981
|
}),
|
|
@@ -44456,7 +43985,7 @@ function withWarn(props) {
|
|
|
44456
43985
|
});
|
|
44457
43986
|
}
|
|
44458
43987
|
function withInfo(props) {
|
|
44459
|
-
return
|
|
43988
|
+
return extends_extends(extends_extends({
|
|
44460
43989
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44461
43990
|
type: "exclamation-circle"
|
|
44462
43991
|
}),
|
|
@@ -44466,7 +43995,7 @@ function withInfo(props) {
|
|
|
44466
43995
|
});
|
|
44467
43996
|
}
|
|
44468
43997
|
function withSuccess(props) {
|
|
44469
|
-
return
|
|
43998
|
+
return extends_extends(extends_extends({
|
|
44470
43999
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44471
44000
|
type: "check-circle"
|
|
44472
44001
|
}),
|
|
@@ -44476,7 +44005,7 @@ function withSuccess(props) {
|
|
|
44476
44005
|
});
|
|
44477
44006
|
}
|
|
44478
44007
|
function withError(props) {
|
|
44479
|
-
return
|
|
44008
|
+
return extends_extends(extends_extends({
|
|
44480
44009
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44481
44010
|
type: "close-circle"
|
|
44482
44011
|
}),
|
|
@@ -44486,7 +44015,7 @@ function withError(props) {
|
|
|
44486
44015
|
});
|
|
44487
44016
|
}
|
|
44488
44017
|
function withConfirm(props) {
|
|
44489
|
-
return
|
|
44018
|
+
return extends_extends(extends_extends({
|
|
44490
44019
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44491
44020
|
type: "question-circle"
|
|
44492
44021
|
}),
|
|
@@ -44513,7 +44042,7 @@ function usePatchElement() {
|
|
|
44513
44042
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
44514
44043
|
// append a new element to elements (and create a new ref)
|
|
44515
44044
|
setElements(function (originElements) {
|
|
44516
|
-
return [].concat(
|
|
44045
|
+
return [].concat(_toConsumableArray(originElements), [element]);
|
|
44517
44046
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
44518
44047
|
// it works a little like useEffect
|
|
44519
44048
|
|
|
@@ -44578,7 +44107,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44578
44107
|
destroy: close,
|
|
44579
44108
|
update: function update(newConfig) {
|
|
44580
44109
|
setInnerConfig(function (originConfig) {
|
|
44581
|
-
return
|
|
44110
|
+
return extends_extends(extends_extends({}, originConfig), newConfig);
|
|
44582
44111
|
});
|
|
44583
44112
|
}
|
|
44584
44113
|
};
|
|
@@ -44587,7 +44116,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44587
44116
|
componentName: "Modal",
|
|
44588
44117
|
defaultLocale: locale_default.Modal
|
|
44589
44118
|
}, function (modalLocale) {
|
|
44590
|
-
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({
|
|
44591
44120
|
prefixCls: prefixCls,
|
|
44592
44121
|
rootPrefixCls: rootPrefixCls
|
|
44593
44122
|
}, innerConfig, {
|
|
@@ -44634,7 +44163,7 @@ function useModal() {
|
|
|
44634
44163
|
|
|
44635
44164
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
44636
44165
|
if (actionQueue.length) {
|
|
44637
|
-
var cloneQueue =
|
|
44166
|
+
var cloneQueue = _toConsumableArray(actionQueue);
|
|
44638
44167
|
|
|
44639
44168
|
cloneQueue.forEach(function (action) {
|
|
44640
44169
|
action();
|
|
@@ -44671,7 +44200,7 @@ function useModal() {
|
|
|
44671
44200
|
destroyAction();
|
|
44672
44201
|
} else {
|
|
44673
44202
|
setActionQueue(function (prev) {
|
|
44674
|
-
return [].concat(
|
|
44203
|
+
return [].concat(_toConsumableArray(prev), [destroyAction]);
|
|
44675
44204
|
});
|
|
44676
44205
|
}
|
|
44677
44206
|
},
|
|
@@ -44686,7 +44215,7 @@ function useModal() {
|
|
|
44686
44215
|
updateAction();
|
|
44687
44216
|
} else {
|
|
44688
44217
|
setActionQueue(function (prev) {
|
|
44689
|
-
return [].concat(
|
|
44218
|
+
return [].concat(_toConsumableArray(prev), [updateAction]);
|
|
44690
44219
|
});
|
|
44691
44220
|
}
|
|
44692
44221
|
}
|
|
@@ -45131,44 +44660,40 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
45131
44660
|
|
|
45132
44661
|
|
|
45133
44662
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
45134
|
-
function
|
|
45135
|
-
|
|
44663
|
+
function esm_extends_extends() {
|
|
44664
|
+
esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
45136
44665
|
for (var i = 1; i < arguments.length; i++) {
|
|
45137
44666
|
var source = arguments[i];
|
|
45138
|
-
|
|
45139
44667
|
for (var key in source) {
|
|
45140
44668
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
45141
44669
|
target[key] = source[key];
|
|
45142
44670
|
}
|
|
45143
44671
|
}
|
|
45144
44672
|
}
|
|
45145
|
-
|
|
45146
44673
|
return target;
|
|
45147
44674
|
};
|
|
45148
|
-
return
|
|
44675
|
+
return esm_extends_extends.apply(this, arguments);
|
|
45149
44676
|
}
|
|
45150
44677
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
45151
|
-
function
|
|
44678
|
+
function esm_typeof_typeof(obj) {
|
|
45152
44679
|
"@babel/helpers - typeof";
|
|
45153
44680
|
|
|
45154
|
-
return
|
|
44681
|
+
return esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
45155
44682
|
return typeof obj;
|
|
45156
44683
|
} : function (obj) {
|
|
45157
44684
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
45158
|
-
},
|
|
44685
|
+
}, esm_typeof_typeof(obj);
|
|
45159
44686
|
}
|
|
45160
44687
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
45161
44688
|
|
|
45162
44689
|
function _toPrimitive(input, hint) {
|
|
45163
|
-
if (
|
|
44690
|
+
if (esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
45164
44691
|
var prim = input[Symbol.toPrimitive];
|
|
45165
|
-
|
|
45166
44692
|
if (prim !== undefined) {
|
|
45167
44693
|
var res = prim.call(input, hint || "default");
|
|
45168
|
-
if (
|
|
44694
|
+
if (esm_typeof_typeof(res) !== "object") return res;
|
|
45169
44695
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45170
44696
|
}
|
|
45171
|
-
|
|
45172
44697
|
return (hint === "string" ? String : Number)(input);
|
|
45173
44698
|
}
|
|
45174
44699
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -45176,13 +44701,12 @@ function _toPrimitive(input, hint) {
|
|
|
45176
44701
|
|
|
45177
44702
|
function _toPropertyKey(arg) {
|
|
45178
44703
|
var key = _toPrimitive(arg, "string");
|
|
45179
|
-
return
|
|
44704
|
+
return esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
45180
44705
|
}
|
|
45181
44706
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
45182
44707
|
|
|
45183
|
-
function
|
|
44708
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
45184
44709
|
key = _toPropertyKey(key);
|
|
45185
|
-
|
|
45186
44710
|
if (key in obj) {
|
|
45187
44711
|
Object.defineProperty(obj, key, {
|
|
45188
44712
|
value: value,
|
|
@@ -45193,61 +44717,51 @@ function esm_defineProperty_defineProperty(obj, key, value) {
|
|
|
45193
44717
|
} else {
|
|
45194
44718
|
obj[key] = value;
|
|
45195
44719
|
}
|
|
45196
|
-
|
|
45197
44720
|
return obj;
|
|
45198
44721
|
}
|
|
45199
44722
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
45200
44723
|
|
|
45201
|
-
|
|
45202
|
-
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44724
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
45203
44725
|
var keys = Object.keys(object);
|
|
45204
|
-
|
|
45205
44726
|
if (Object.getOwnPropertySymbols) {
|
|
45206
44727
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
45207
44728
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
45208
44729
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
45209
44730
|
})), keys.push.apply(keys, symbols);
|
|
45210
44731
|
}
|
|
45211
|
-
|
|
45212
44732
|
return keys;
|
|
45213
44733
|
}
|
|
45214
|
-
|
|
45215
|
-
function esm_objectSpread2_objectSpread2(target) {
|
|
44734
|
+
function objectSpread2_objectSpread2(target) {
|
|
45216
44735
|
for (var i = 1; i < arguments.length; i++) {
|
|
45217
44736
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
45218
|
-
i % 2 ?
|
|
45219
|
-
|
|
45220
|
-
}) : 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) {
|
|
45221
44740
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
45222
44741
|
});
|
|
45223
44742
|
}
|
|
45224
|
-
|
|
45225
44743
|
return target;
|
|
45226
44744
|
}
|
|
45227
44745
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
45228
|
-
function
|
|
44746
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
45229
44747
|
if (Array.isArray(arr)) return arr;
|
|
45230
44748
|
}
|
|
45231
44749
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
45232
|
-
function
|
|
44750
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
45233
44751
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
45234
|
-
|
|
45235
44752
|
if (null != _i) {
|
|
45236
44753
|
var _s,
|
|
45237
|
-
|
|
45238
|
-
|
|
45239
|
-
|
|
45240
|
-
|
|
45241
|
-
|
|
45242
|
-
|
|
45243
|
-
|
|
44754
|
+
_e,
|
|
44755
|
+
_x,
|
|
44756
|
+
_r,
|
|
44757
|
+
_arr = [],
|
|
44758
|
+
_n = !0,
|
|
44759
|
+
_d = !1;
|
|
45244
44760
|
try {
|
|
45245
44761
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
45246
44762
|
if (Object(_i) !== _i) return;
|
|
45247
44763
|
_n = !1;
|
|
45248
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
45249
|
-
;
|
|
45250
|
-
}
|
|
44764
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
45251
44765
|
} catch (err) {
|
|
45252
44766
|
_d = !0, _e = err;
|
|
45253
44767
|
} finally {
|
|
@@ -45257,32 +44771,27 @@ function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
45257
44771
|
if (_d) throw _e;
|
|
45258
44772
|
}
|
|
45259
44773
|
}
|
|
45260
|
-
|
|
45261
44774
|
return _arr;
|
|
45262
44775
|
}
|
|
45263
44776
|
}
|
|
45264
44777
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
45265
|
-
function
|
|
44778
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
45266
44779
|
if (len == null || len > arr.length) len = arr.length;
|
|
45267
|
-
|
|
45268
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
45269
|
-
arr2[i] = arr[i];
|
|
45270
|
-
}
|
|
45271
|
-
|
|
44780
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
45272
44781
|
return arr2;
|
|
45273
44782
|
}
|
|
45274
44783
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
45275
44784
|
|
|
45276
|
-
function
|
|
44785
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
45277
44786
|
if (!o) return;
|
|
45278
|
-
if (typeof o === "string") return
|
|
44787
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
45279
44788
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
45280
44789
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
45281
44790
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
45282
|
-
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);
|
|
45283
44792
|
}
|
|
45284
44793
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
45285
|
-
function
|
|
44794
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
45286
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.");
|
|
45287
44796
|
}
|
|
45288
44797
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -45290,34 +44799,30 @@ function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
|
45290
44799
|
|
|
45291
44800
|
|
|
45292
44801
|
|
|
45293
|
-
function
|
|
45294
|
-
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();
|
|
45295
44804
|
}
|
|
45296
44805
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
45297
|
-
function
|
|
44806
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
45298
44807
|
if (source == null) return {};
|
|
45299
44808
|
var target = {};
|
|
45300
44809
|
var sourceKeys = Object.keys(source);
|
|
45301
44810
|
var key, i;
|
|
45302
|
-
|
|
45303
44811
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
45304
44812
|
key = sourceKeys[i];
|
|
45305
44813
|
if (excluded.indexOf(key) >= 0) continue;
|
|
45306
44814
|
target[key] = source[key];
|
|
45307
44815
|
}
|
|
45308
|
-
|
|
45309
44816
|
return target;
|
|
45310
44817
|
}
|
|
45311
44818
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
45312
44819
|
|
|
45313
|
-
function
|
|
44820
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
45314
44821
|
if (source == null) return {};
|
|
45315
|
-
var target =
|
|
44822
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
45316
44823
|
var key, i;
|
|
45317
|
-
|
|
45318
44824
|
if (Object.getOwnPropertySymbols) {
|
|
45319
44825
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
45320
|
-
|
|
45321
44826
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
45322
44827
|
key = sourceSymbolKeys[i];
|
|
45323
44828
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -45325,7 +44830,6 @@ function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
45325
44830
|
target[key] = source[key];
|
|
45326
44831
|
}
|
|
45327
44832
|
}
|
|
45328
|
-
|
|
45329
44833
|
return target;
|
|
45330
44834
|
}
|
|
45331
44835
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -46273,14 +45777,14 @@ var index = (function () {
|
|
|
46273
45777
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
46274
45778
|
|
|
46275
45779
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
46276
|
-
|
|
45780
|
+
_inherits(ReactResizeObserver, _React$Component);
|
|
46277
45781
|
|
|
46278
|
-
var _super =
|
|
45782
|
+
var _super = _createSuper(ReactResizeObserver);
|
|
46279
45783
|
|
|
46280
45784
|
function ReactResizeObserver() {
|
|
46281
45785
|
var _this;
|
|
46282
45786
|
|
|
46283
|
-
|
|
45787
|
+
_classCallCheck(this, ReactResizeObserver);
|
|
46284
45788
|
|
|
46285
45789
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46286
45790
|
args[_key] = arguments[_key];
|
|
@@ -46331,7 +45835,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46331
45835
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
46332
45836
|
|
|
46333
45837
|
Promise.resolve().then(function () {
|
|
46334
|
-
onResize(
|
|
45838
|
+
onResize(_objectSpread2(_objectSpread2({}, size), {}, {
|
|
46335
45839
|
offsetWidth: mergedOffsetWidth,
|
|
46336
45840
|
offsetHeight: mergedOffsetHeight
|
|
46337
45841
|
}), target);
|
|
@@ -46347,7 +45851,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46347
45851
|
return _this;
|
|
46348
45852
|
}
|
|
46349
45853
|
|
|
46350
|
-
|
|
45854
|
+
_createClass(ReactResizeObserver, [{
|
|
46351
45855
|
key: "componentDidMount",
|
|
46352
45856
|
value: function componentDidMount() {
|
|
46353
45857
|
this.onComponentUpdated();
|
|
@@ -46461,7 +45965,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46461
45965
|
position: 'relative',
|
|
46462
45966
|
overflow: 'hidden'
|
|
46463
45967
|
};
|
|
46464
|
-
innerStyle =
|
|
45968
|
+
innerStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
46465
45969
|
transform: "translateY(".concat(offset, "px)"),
|
|
46466
45970
|
position: 'absolute',
|
|
46467
45971
|
left: 0,
|
|
@@ -46478,24 +45982,23 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46478
45982
|
onInnerResize();
|
|
46479
45983
|
}
|
|
46480
45984
|
}
|
|
46481
|
-
}, /*#__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({
|
|
46482
45986
|
style: innerStyle,
|
|
46483
|
-
className: classnames_default()(
|
|
45987
|
+
className: classnames_default()(defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
46484
45988
|
ref: ref
|
|
46485
45989
|
}, innerProps), children)));
|
|
46486
45990
|
});
|
|
46487
45991
|
Filler.displayName = 'Filler';
|
|
46488
45992
|
/* harmony default export */ var es_Filler = (Filler);
|
|
46489
45993
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
46490
|
-
function
|
|
45994
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
46491
45995
|
if (!(instance instanceof Constructor)) {
|
|
46492
45996
|
throw new TypeError("Cannot call a class as a function");
|
|
46493
45997
|
}
|
|
46494
45998
|
}
|
|
46495
45999
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
46496
46000
|
|
|
46497
|
-
|
|
46498
|
-
function esm_createClass_defineProperties(target, props) {
|
|
46001
|
+
function createClass_defineProperties(target, props) {
|
|
46499
46002
|
for (var i = 0; i < props.length; i++) {
|
|
46500
46003
|
var descriptor = props[i];
|
|
46501
46004
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -46504,30 +46007,28 @@ function esm_createClass_defineProperties(target, props) {
|
|
|
46504
46007
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
46505
46008
|
}
|
|
46506
46009
|
}
|
|
46507
|
-
|
|
46508
|
-
|
|
46509
|
-
if (
|
|
46510
|
-
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);
|
|
46511
46013
|
Object.defineProperty(Constructor, "prototype", {
|
|
46512
46014
|
writable: false
|
|
46513
46015
|
});
|
|
46514
46016
|
return Constructor;
|
|
46515
46017
|
}
|
|
46516
46018
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
46517
|
-
function
|
|
46518
|
-
|
|
46019
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
46020
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
46519
46021
|
o.__proto__ = p;
|
|
46520
46022
|
return o;
|
|
46521
46023
|
};
|
|
46522
|
-
return
|
|
46024
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
46523
46025
|
}
|
|
46524
46026
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
46525
46027
|
|
|
46526
|
-
function
|
|
46028
|
+
function inherits_inherits(subClass, superClass) {
|
|
46527
46029
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
46528
46030
|
throw new TypeError("Super expression must either be null or a function");
|
|
46529
46031
|
}
|
|
46530
|
-
|
|
46531
46032
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
46532
46033
|
constructor: {
|
|
46533
46034
|
value: subClass,
|
|
@@ -46538,21 +46039,20 @@ function esm_inherits_inherits(subClass, superClass) {
|
|
|
46538
46039
|
Object.defineProperty(subClass, "prototype", {
|
|
46539
46040
|
writable: false
|
|
46540
46041
|
});
|
|
46541
|
-
if (superClass)
|
|
46042
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
46542
46043
|
}
|
|
46543
46044
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
46544
|
-
function
|
|
46545
|
-
|
|
46045
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
46046
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
46546
46047
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46547
46048
|
};
|
|
46548
|
-
return
|
|
46049
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
46549
46050
|
}
|
|
46550
46051
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
46551
|
-
function
|
|
46052
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
46552
46053
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
46553
46054
|
if (Reflect.construct.sham) return false;
|
|
46554
46055
|
if (typeof Proxy === "function") return true;
|
|
46555
|
-
|
|
46556
46056
|
try {
|
|
46557
46057
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
46558
46058
|
return true;
|
|
@@ -46561,43 +46061,39 @@ function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
46561
46061
|
}
|
|
46562
46062
|
}
|
|
46563
46063
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
46564
|
-
function
|
|
46064
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
46565
46065
|
if (self === void 0) {
|
|
46566
46066
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46567
46067
|
}
|
|
46568
|
-
|
|
46569
46068
|
return self;
|
|
46570
46069
|
}
|
|
46571
46070
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
46572
46071
|
|
|
46573
46072
|
|
|
46574
|
-
function
|
|
46575
|
-
if (call && (
|
|
46073
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
46074
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
46576
46075
|
return call;
|
|
46577
46076
|
} else if (call !== void 0) {
|
|
46578
46077
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
46579
46078
|
}
|
|
46580
|
-
|
|
46581
|
-
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
46079
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
46582
46080
|
}
|
|
46583
46081
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
46584
46082
|
|
|
46585
46083
|
|
|
46586
46084
|
|
|
46587
|
-
function
|
|
46588
|
-
var hasNativeReflectConstruct =
|
|
46085
|
+
function createSuper_createSuper(Derived) {
|
|
46086
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
46589
46087
|
return function _createSuperInternal() {
|
|
46590
|
-
var Super =
|
|
46591
|
-
|
|
46592
|
-
|
|
46088
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
46089
|
+
result;
|
|
46593
46090
|
if (hasNativeReflectConstruct) {
|
|
46594
|
-
var NewTarget =
|
|
46091
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
46595
46092
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
46596
46093
|
} else {
|
|
46597
46094
|
result = Super.apply(this, arguments);
|
|
46598
46095
|
}
|
|
46599
|
-
|
|
46600
|
-
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46096
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46601
46097
|
};
|
|
46602
46098
|
}
|
|
46603
46099
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -46672,11 +46168,11 @@ function getPageY(e) {
|
|
|
46672
46168
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
46673
46169
|
}
|
|
46674
46170
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
46675
|
-
|
|
46676
|
-
var _super =
|
|
46171
|
+
inherits_inherits(ScrollBar, _React$Component);
|
|
46172
|
+
var _super = createSuper_createSuper(ScrollBar);
|
|
46677
46173
|
function ScrollBar() {
|
|
46678
46174
|
var _this;
|
|
46679
|
-
|
|
46175
|
+
classCallCheck_classCallCheck(this, ScrollBar);
|
|
46680
46176
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46681
46177
|
args[_key] = arguments[_key];
|
|
46682
46178
|
}
|
|
@@ -46804,7 +46300,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46804
46300
|
};
|
|
46805
46301
|
return _this;
|
|
46806
46302
|
}
|
|
46807
|
-
|
|
46303
|
+
createClass_createClass(ScrollBar, [{
|
|
46808
46304
|
key: "componentDidMount",
|
|
46809
46305
|
value: function componentDidMount() {
|
|
46810
46306
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -46838,7 +46334,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46838
46334
|
var mergedVisible = canScroll && visible;
|
|
46839
46335
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46840
46336
|
ref: this.scrollbarRef,
|
|
46841
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46337
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46842
46338
|
style: {
|
|
46843
46339
|
width: 8,
|
|
46844
46340
|
top: 0,
|
|
@@ -46851,7 +46347,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46851
46347
|
onMouseMove: this.delayHidden
|
|
46852
46348
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46853
46349
|
ref: this.thumbRef,
|
|
46854
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46350
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46855
46351
|
style: {
|
|
46856
46352
|
width: '100%',
|
|
46857
46353
|
height: spinHeight,
|
|
@@ -46930,11 +46426,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46930
46426
|
// Firefox has low performance of map.
|
|
46931
46427
|
var CacheMap = /*#__PURE__*/function () {
|
|
46932
46428
|
function CacheMap() {
|
|
46933
|
-
|
|
46429
|
+
classCallCheck_classCallCheck(this, CacheMap);
|
|
46934
46430
|
this.maps = void 0;
|
|
46935
46431
|
this.maps = Object.create(null);
|
|
46936
46432
|
}
|
|
46937
|
-
|
|
46433
|
+
createClass_createClass(CacheMap, [{
|
|
46938
46434
|
key: "set",
|
|
46939
46435
|
value: function set(key, value) {
|
|
46940
46436
|
this.maps[key] = value;
|
|
@@ -46957,7 +46453,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46957
46453
|
|
|
46958
46454
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46959
46455
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46960
|
-
_React$useState2 =
|
|
46456
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46961
46457
|
updatedMark = _React$useState2[0],
|
|
46962
46458
|
setUpdatedMark = _React$useState2[1];
|
|
46963
46459
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -47024,7 +46520,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
47024
46520
|
es_raf.cancel(scrollRef.current);
|
|
47025
46521
|
if (typeof arg === 'number') {
|
|
47026
46522
|
syncScrollTop(arg);
|
|
47027
|
-
} else if (arg &&
|
|
46523
|
+
} else if (arg && esm_typeof_typeof(arg) === 'object') {
|
|
47028
46524
|
var index;
|
|
47029
46525
|
var align = arg.align;
|
|
47030
46526
|
if ('index' in arg) {
|
|
@@ -47180,11 +46676,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
47180
46676
|
|
|
47181
46677
|
function useDiffItem(data, getKey, onDiff) {
|
|
47182
46678
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
47183
|
-
_React$useState2 =
|
|
46679
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
47184
46680
|
prevData = _React$useState2[0],
|
|
47185
46681
|
setPrevData = _React$useState2[1];
|
|
47186
46682
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
47187
|
-
_React$useState4 =
|
|
46683
|
+
_React$useState4 = esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
47188
46684
|
diffItem = _React$useState4[0],
|
|
47189
46685
|
setDiffItem = _React$useState4[1];
|
|
47190
46686
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -47199,7 +46695,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
47199
46695
|
}
|
|
47200
46696
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
47201
46697
|
|
|
47202
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
46698
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
47203
46699
|
/* harmony default export */ var isFirefox = (isFF);
|
|
47204
46700
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
47205
46701
|
|
|
@@ -47418,16 +46914,16 @@ function RawList(props, ref) {
|
|
|
47418
46914
|
onScroll = props.onScroll,
|
|
47419
46915
|
onVisibleChange = props.onVisibleChange,
|
|
47420
46916
|
innerProps = props.innerProps,
|
|
47421
|
-
restProps =
|
|
46917
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
47422
46918
|
// ================================= MISC =================================
|
|
47423
46919
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
47424
46920
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
47425
46921
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
47426
|
-
_useState2 =
|
|
46922
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
47427
46923
|
scrollTop = _useState2[0],
|
|
47428
46924
|
setScrollTop = _useState2[1];
|
|
47429
46925
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
47430
|
-
_useState4 =
|
|
46926
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
47431
46927
|
scrollMoving = _useState4[0],
|
|
47432
46928
|
setScrollMoving = _useState4[1];
|
|
47433
46929
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -47467,12 +46963,12 @@ function RawList(props, ref) {
|
|
|
47467
46963
|
});
|
|
47468
46964
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
47469
46965
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
47470
|
-
_useDiffItem2 =
|
|
46966
|
+
_useDiffItem2 = esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
47471
46967
|
diffItem = _useDiffItem2[0];
|
|
47472
46968
|
diffItemRef.current = diffItem;
|
|
47473
46969
|
// ================================ Height ================================
|
|
47474
46970
|
var _useHeights = useHeights(getKey, null, null),
|
|
47475
|
-
_useHeights2 =
|
|
46971
|
+
_useHeights2 = esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
47476
46972
|
setInstanceRef = _useHeights2[0],
|
|
47477
46973
|
collectHeight = _useHeights2[1],
|
|
47478
46974
|
heights = _useHeights2[2],
|
|
@@ -47578,7 +47074,7 @@ function RawList(props, ref) {
|
|
|
47578
47074
|
return newTop;
|
|
47579
47075
|
});
|
|
47580
47076
|
}),
|
|
47581
|
-
_useFrameWheel2 =
|
|
47077
|
+
_useFrameWheel2 = esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
47582
47078
|
onRawWheel = _useFrameWheel2[0],
|
|
47583
47079
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
47584
47080
|
// Mobile touch move
|
|
@@ -47632,7 +47128,7 @@ function RawList(props, ref) {
|
|
|
47632
47128
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
47633
47129
|
var componentStyle = null;
|
|
47634
47130
|
if (height) {
|
|
47635
|
-
componentStyle =
|
|
47131
|
+
componentStyle = objectSpread2_objectSpread2(defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
47636
47132
|
if (useVirtual) {
|
|
47637
47133
|
componentStyle.overflowY = 'hidden';
|
|
47638
47134
|
if (scrollMoving) {
|
|
@@ -47640,8 +47136,8 @@ function RawList(props, ref) {
|
|
|
47640
47136
|
}
|
|
47641
47137
|
}
|
|
47642
47138
|
}
|
|
47643
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47644
|
-
style:
|
|
47139
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
47140
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
47645
47141
|
position: 'relative'
|
|
47646
47142
|
}),
|
|
47647
47143
|
className: mergedClassName
|
|
@@ -47787,7 +47283,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
47787
47283
|
return values;
|
|
47788
47284
|
}
|
|
47789
47285
|
function removeLastEnabledValue(measureValues, values) {
|
|
47790
|
-
var newValues =
|
|
47286
|
+
var newValues = _toConsumableArray(values);
|
|
47791
47287
|
|
|
47792
47288
|
var removeIndex;
|
|
47793
47289
|
|
|
@@ -47921,7 +47417,7 @@ function flattenOptions(options) {
|
|
|
47921
47417
|
*/
|
|
47922
47418
|
|
|
47923
47419
|
function injectPropsWithOption(option) {
|
|
47924
|
-
var newOption =
|
|
47420
|
+
var newOption = _objectSpread2({}, option);
|
|
47925
47421
|
|
|
47926
47422
|
if (!('props' in newOption)) {
|
|
47927
47423
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47955,7 +47451,7 @@ function findValueOption(values, options) {
|
|
|
47955
47451
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47956
47452
|
|
|
47957
47453
|
if (!option) {
|
|
47958
|
-
option =
|
|
47454
|
+
option = _objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47959
47455
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47960
47456
|
}));
|
|
47961
47457
|
}
|
|
@@ -47974,7 +47470,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47974
47470
|
};
|
|
47975
47471
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47976
47472
|
|
|
47977
|
-
if (prevValItem &&
|
|
47473
|
+
if (prevValItem && typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47978
47474
|
result.label = prevValItem.label;
|
|
47979
47475
|
|
|
47980
47476
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -48022,7 +47518,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
48022
47518
|
var filterFunc;
|
|
48023
47519
|
|
|
48024
47520
|
if (filterOption === false) {
|
|
48025
|
-
return
|
|
47521
|
+
return _toConsumableArray(options);
|
|
48026
47522
|
}
|
|
48027
47523
|
|
|
48028
47524
|
if (typeof filterOption === 'function') {
|
|
@@ -48046,7 +47542,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
48046
47542
|
});
|
|
48047
47543
|
|
|
48048
47544
|
if (subOptions.length) {
|
|
48049
|
-
filteredOptions.push(
|
|
47545
|
+
filteredOptions.push(_objectSpread2(_objectSpread2({}, item), {}, {
|
|
48050
47546
|
options: subOptions
|
|
48051
47547
|
}));
|
|
48052
47548
|
}
|
|
@@ -48080,7 +47576,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
48080
47576
|
var list = str.split(token);
|
|
48081
47577
|
match = match || list.length > 1;
|
|
48082
47578
|
return list.reduce(function (prevList, unitStr) {
|
|
48083
|
-
return [].concat(
|
|
47579
|
+
return [].concat(_toConsumableArray(prevList), _toConsumableArray(separate(unitStr, restTokens)));
|
|
48084
47580
|
}, []).filter(function (unit) {
|
|
48085
47581
|
return unit;
|
|
48086
47582
|
});
|
|
@@ -48100,7 +47596,7 @@ function isValueDisabled(value, options) {
|
|
|
48100
47596
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
48101
47597
|
var values = commonUtil_toArray(value).slice().sort();
|
|
48102
47598
|
|
|
48103
|
-
var cloneOptions =
|
|
47599
|
+
var cloneOptions = _toConsumableArray(options); // Convert options value to set
|
|
48104
47600
|
|
|
48105
47601
|
|
|
48106
47602
|
var optionValues = new Set();
|
|
@@ -48120,7 +47616,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
48120
47616
|
if (!optionValues.has(val)) {
|
|
48121
47617
|
var _ref9;
|
|
48122
47618
|
|
|
48123
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
47619
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, _defineProperty(_ref9, optionLabelProp, item.label), _defineProperty(_ref9, "value", val), _ref9) : {
|
|
48124
47620
|
value: val
|
|
48125
47621
|
});
|
|
48126
47622
|
}
|
|
@@ -48386,7 +47882,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48386
47882
|
children = itemData.children;
|
|
48387
47883
|
var attrs = pickAttrs(itemData, true);
|
|
48388
47884
|
var mergedLabel = childrenAsData ? children : label;
|
|
48389
|
-
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({
|
|
48390
47886
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
48391
47887
|
}, attrs, {
|
|
48392
47888
|
key: index,
|
|
@@ -48436,13 +47932,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48436
47932
|
children = data.children,
|
|
48437
47933
|
style = data.style,
|
|
48438
47934
|
className = data.className,
|
|
48439
|
-
otherProps =
|
|
47935
|
+
otherProps = _objectWithoutProperties(data, OptionList_excluded);
|
|
48440
47936
|
|
|
48441
47937
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
48442
47938
|
|
|
48443
47939
|
var selected = values.has(value);
|
|
48444
47940
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
48445
|
-
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));
|
|
48446
47942
|
var mergedLabel = childrenAsData ? children : label;
|
|
48447
47943
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
48448
47944
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -48453,7 +47949,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48453
47949
|
optionTitle = title;
|
|
48454
47950
|
}
|
|
48455
47951
|
|
|
48456
|
-
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, {
|
|
48457
47953
|
"aria-selected": selected,
|
|
48458
47954
|
className: optionClassName,
|
|
48459
47955
|
title: optionTitle,
|
|
@@ -48514,9 +48010,9 @@ function convertNodeToOption(node) {
|
|
|
48514
48010
|
_node$props = node.props,
|
|
48515
48011
|
children = _node$props.children,
|
|
48516
48012
|
value = _node$props.value,
|
|
48517
|
-
restProps =
|
|
48013
|
+
restProps = _objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
48518
48014
|
|
|
48519
|
-
return
|
|
48015
|
+
return _objectSpread2({
|
|
48520
48016
|
key: key,
|
|
48521
48017
|
value: value !== undefined ? value : key,
|
|
48522
48018
|
children: children
|
|
@@ -48534,13 +48030,13 @@ function convertChildrenToData(nodes) {
|
|
|
48534
48030
|
key = node.key,
|
|
48535
48031
|
_node$props2 = node.props,
|
|
48536
48032
|
children = _node$props2.children,
|
|
48537
|
-
restProps =
|
|
48033
|
+
restProps = _objectWithoutProperties(_node$props2, _excluded2);
|
|
48538
48034
|
|
|
48539
48035
|
if (optionOnly || !isSelectOptGroup) {
|
|
48540
48036
|
return convertNodeToOption(node);
|
|
48541
48037
|
}
|
|
48542
48038
|
|
|
48543
|
-
return
|
|
48039
|
+
return _objectSpread2(_objectSpread2({
|
|
48544
48040
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
48545
48041
|
label: key
|
|
48546
48042
|
}, restProps), {}, {
|
|
@@ -48642,7 +48138,7 @@ function InternalItem(props, ref) {
|
|
|
48642
48138
|
order = props.order,
|
|
48643
48139
|
_props$component = props.component,
|
|
48644
48140
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48645
|
-
restProps =
|
|
48141
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48646
48142
|
|
|
48647
48143
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48648
48144
|
|
|
@@ -48676,9 +48172,9 @@ function InternalItem(props, ref) {
|
|
|
48676
48172
|
overflowProps['aria-hidden'] = true;
|
|
48677
48173
|
}
|
|
48678
48174
|
|
|
48679
|
-
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({
|
|
48680
48176
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48681
|
-
style:
|
|
48177
|
+
style: _objectSpread2(_objectSpread2({}, overflowStyle), style)
|
|
48682
48178
|
}, overflowProps, restProps, {
|
|
48683
48179
|
ref: ref
|
|
48684
48180
|
}), childNode);
|
|
@@ -48763,23 +48259,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48763
48259
|
if (!context) {
|
|
48764
48260
|
var _props$component = props.component,
|
|
48765
48261
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48766
|
-
_restProps =
|
|
48262
|
+
_restProps = _objectWithoutProperties(props, ["component"]);
|
|
48767
48263
|
|
|
48768
|
-
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, {
|
|
48769
48265
|
ref: ref
|
|
48770
48266
|
}));
|
|
48771
48267
|
}
|
|
48772
48268
|
|
|
48773
48269
|
var contextClassName = context.className,
|
|
48774
|
-
restContext =
|
|
48270
|
+
restContext = _objectWithoutProperties(context, ["className"]);
|
|
48775
48271
|
|
|
48776
48272
|
var className = props.className,
|
|
48777
|
-
restProps =
|
|
48273
|
+
restProps = _objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48778
48274
|
|
|
48779
48275
|
|
|
48780
48276
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48781
48277
|
value: null
|
|
48782
|
-
}, /*#__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({
|
|
48783
48279
|
ref: ref,
|
|
48784
48280
|
className: classnames_default()(contextClassName, className)
|
|
48785
48281
|
}, restContext, restProps)));
|
|
@@ -48829,7 +48325,7 @@ function Overflow(props, ref) {
|
|
|
48829
48325
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48830
48326
|
itemComponent = props.itemComponent,
|
|
48831
48327
|
onVisibleChange = props.onVisibleChange,
|
|
48832
|
-
restProps =
|
|
48328
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48833
48329
|
|
|
48834
48330
|
var createUseState = useBatchFrameState();
|
|
48835
48331
|
var fullySSR = ssr === 'full';
|
|
@@ -49039,7 +48535,7 @@ function Overflow(props, ref) {
|
|
|
49039
48535
|
var key = getKey(item, index);
|
|
49040
48536
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
49041
48537
|
key: key,
|
|
49042
|
-
value:
|
|
48538
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
|
|
49043
48539
|
order: index,
|
|
49044
48540
|
item: item,
|
|
49045
48541
|
itemKey: key,
|
|
@@ -49049,7 +48545,7 @@ function Overflow(props, ref) {
|
|
|
49049
48545
|
}, renderRawItem(item, index));
|
|
49050
48546
|
} : function (item, index) {
|
|
49051
48547
|
var key = getKey(item, index);
|
|
49052
|
-
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, {
|
|
49053
48549
|
order: index,
|
|
49054
48550
|
key: key,
|
|
49055
48551
|
item: item,
|
|
@@ -49070,18 +48566,18 @@ function Overflow(props, ref) {
|
|
|
49070
48566
|
|
|
49071
48567
|
if (!renderRawRest) {
|
|
49072
48568
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
49073
|
-
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);
|
|
49074
48570
|
} else if (renderRawRest) {
|
|
49075
48571
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
49076
|
-
value:
|
|
48572
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), restContextProps)
|
|
49077
48573
|
}, renderRawRest(omittedItems));
|
|
49078
48574
|
}
|
|
49079
48575
|
|
|
49080
|
-
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({
|
|
49081
48577
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
49082
48578
|
style: style,
|
|
49083
48579
|
ref: ref
|
|
49084
|
-
}, 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, {
|
|
49085
48581
|
order: mergedDisplayCount,
|
|
49086
48582
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
49087
48583
|
registerSize: registerSuffixSize,
|
|
@@ -49146,7 +48642,7 @@ var Input = function Input(_ref, ref) {
|
|
|
49146
48642
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
49147
48643
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
49148
48644
|
style = _inputNode$props.style;
|
|
49149
|
-
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({
|
|
49150
48646
|
id: id,
|
|
49151
48647
|
ref: composeRef(ref, originRef),
|
|
49152
48648
|
disabled: disabled,
|
|
@@ -49155,7 +48651,7 @@ var Input = function Input(_ref, ref) {
|
|
|
49155
48651
|
type: 'search',
|
|
49156
48652
|
autoFocus: autoFocus,
|
|
49157
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),
|
|
49158
|
-
style:
|
|
48654
|
+
style: _objectSpread2(_objectSpread2({}, style), {}, {
|
|
49159
48655
|
opacity: editable ? null : 0
|
|
49160
48656
|
}),
|
|
49161
48657
|
role: 'combobox',
|
|
@@ -49303,7 +48799,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
49303
48799
|
|
|
49304
48800
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
49305
48801
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
49306
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
48802
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), _defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
49307
48803
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
49308
48804
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
49309
48805
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -49718,7 +49214,7 @@ var Selector = function Selector(props, ref) {
|
|
|
49718
49214
|
onInputCompositionStart: onInputCompositionStart,
|
|
49719
49215
|
onInputCompositionEnd: onInputCompositionEnd
|
|
49720
49216
|
};
|
|
49721
|
-
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));
|
|
49722
49218
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
49723
49219
|
ref: domRef,
|
|
49724
49220
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -49763,7 +49259,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
49763
49259
|
|
|
49764
49260
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
49765
49261
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
49766
|
-
return
|
|
49262
|
+
return _objectSpread2(_objectSpread2({}, baseAlign), align);
|
|
49767
49263
|
}
|
|
49768
49264
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
49769
49265
|
var points = align.points;
|
|
@@ -49827,7 +49323,7 @@ function Mask_Mask(props) {
|
|
|
49827
49323
|
var motion = {};
|
|
49828
49324
|
|
|
49829
49325
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49830
|
-
motion =
|
|
49326
|
+
motion = _objectSpread2({
|
|
49831
49327
|
motionAppear: true
|
|
49832
49328
|
}, getMotion({
|
|
49833
49329
|
motion: maskMotion,
|
|
@@ -49837,7 +49333,7 @@ function Mask_Mask(props) {
|
|
|
49837
49333
|
}));
|
|
49838
49334
|
}
|
|
49839
49335
|
|
|
49840
|
-
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, {
|
|
49841
49337
|
visible: visible,
|
|
49842
49338
|
removeOnLeave: true
|
|
49843
49339
|
}), function (_ref) {
|
|
@@ -51349,7 +50845,7 @@ function getElement(func) {
|
|
|
51349
50845
|
}
|
|
51350
50846
|
|
|
51351
50847
|
function getPoint(point) {
|
|
51352
|
-
if (
|
|
50848
|
+
if (typeof_typeof(point) !== 'object' || !point) return null;
|
|
51353
50849
|
return point;
|
|
51354
50850
|
}
|
|
51355
50851
|
|
|
@@ -51563,9 +51059,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51563
51059
|
}
|
|
51564
51060
|
|
|
51565
51061
|
if (status) {
|
|
51566
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
51062
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
51567
51063
|
var index, nextStatus;
|
|
51568
|
-
return
|
|
51064
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
51569
51065
|
while (1) {
|
|
51570
51066
|
switch (_context.prev = _context.next) {
|
|
51571
51067
|
case 0:
|
|
@@ -51738,7 +51234,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51738
51234
|
} // ======================== Motion ========================
|
|
51739
51235
|
|
|
51740
51236
|
|
|
51741
|
-
var motion =
|
|
51237
|
+
var motion = _objectSpread2({}, getMotion(props));
|
|
51742
51238
|
|
|
51743
51239
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
51744
51240
|
var originHandler = motion[eventName];
|
|
@@ -51771,7 +51267,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51771
51267
|
};
|
|
51772
51268
|
}); // ======================== Render ========================
|
|
51773
51269
|
|
|
51774
|
-
var mergedStyle =
|
|
51270
|
+
var mergedStyle = _objectSpread2(_objectSpread2({}, stretchStyle), {}, {
|
|
51775
51271
|
zIndex: zIndex,
|
|
51776
51272
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
51777
51273
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -51792,7 +51288,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51792
51288
|
}, children);
|
|
51793
51289
|
}
|
|
51794
51290
|
|
|
51795
|
-
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({
|
|
51796
51292
|
visible: visible,
|
|
51797
51293
|
ref: elementRef,
|
|
51798
51294
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51820,7 +51316,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51820
51316
|
onMouseLeave: onMouseLeave,
|
|
51821
51317
|
onMouseDownCapture: onMouseDown,
|
|
51822
51318
|
onTouchStartCapture: onTouchStart,
|
|
51823
|
-
style:
|
|
51319
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51824
51320
|
}, childNode));
|
|
51825
51321
|
});
|
|
51826
51322
|
});
|
|
@@ -51855,7 +51351,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51855
51351
|
};
|
|
51856
51352
|
}); // ======================== Render ========================
|
|
51857
51353
|
|
|
51858
|
-
var mergedStyle =
|
|
51354
|
+
var mergedStyle = _objectSpread2({
|
|
51859
51355
|
zIndex: zIndex
|
|
51860
51356
|
}, popupStyle);
|
|
51861
51357
|
|
|
@@ -51872,7 +51368,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51872
51368
|
childNode = popupRender(childNode);
|
|
51873
51369
|
}
|
|
51874
51370
|
|
|
51875
|
-
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({
|
|
51876
51372
|
visible: visible,
|
|
51877
51373
|
ref: elementRef,
|
|
51878
51374
|
removeOnLeave: true
|
|
@@ -51883,7 +51379,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51883
51379
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51884
51380
|
ref: motionRef,
|
|
51885
51381
|
className: mergedClassName,
|
|
51886
|
-
style:
|
|
51382
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51887
51383
|
}, childNode);
|
|
51888
51384
|
});
|
|
51889
51385
|
});
|
|
@@ -51904,7 +51400,7 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51904
51400
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51905
51401
|
var visible = _ref.visible,
|
|
51906
51402
|
mobile = _ref.mobile,
|
|
51907
|
-
props =
|
|
51403
|
+
props = _objectWithoutProperties(_ref, Popup_excluded);
|
|
51908
51404
|
|
|
51909
51405
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51910
51406
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
@@ -51916,7 +51412,7 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51916
51412
|
inMobile = _useState4[0],
|
|
51917
51413
|
setInMobile = _useState4[1];
|
|
51918
51414
|
|
|
51919
|
-
var cloneProps =
|
|
51415
|
+
var cloneProps = _objectSpread2(_objectSpread2({}, props), {}, {
|
|
51920
51416
|
visible: innerVisible
|
|
51921
51417
|
}); // We check mobile in visible changed here.
|
|
51922
51418
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51929,10 +51425,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51929
51425
|
setInMobile(isMobile());
|
|
51930
51426
|
}
|
|
51931
51427
|
}, [visible, mobile]);
|
|
51932
|
-
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, {
|
|
51933
51429
|
mobile: mobile,
|
|
51934
51430
|
ref: ref
|
|
51935
|
-
})) : /*#__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, {
|
|
51936
51432
|
ref: ref
|
|
51937
51433
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51938
51434
|
|
|
@@ -51986,14 +51482,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51986
51482
|
|
|
51987
51483
|
function generateTrigger(PortalComponent) {
|
|
51988
51484
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51989
|
-
|
|
51485
|
+
_inherits(Trigger, _React$Component);
|
|
51990
51486
|
|
|
51991
|
-
var _super =
|
|
51487
|
+
var _super = _createSuper(Trigger);
|
|
51992
51488
|
|
|
51993
51489
|
function Trigger(props) {
|
|
51994
51490
|
var _this;
|
|
51995
51491
|
|
|
51996
|
-
|
|
51492
|
+
_classCallCheck(this, Trigger);
|
|
51997
51493
|
|
|
51998
51494
|
_this = _super.call(this, props);
|
|
51999
51495
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -52181,7 +51677,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52181
51677
|
} catch (err) {// Do nothing
|
|
52182
51678
|
}
|
|
52183
51679
|
|
|
52184
|
-
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));
|
|
52185
51681
|
};
|
|
52186
51682
|
|
|
52187
51683
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -52242,7 +51738,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52242
51738
|
|
|
52243
51739
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
52244
51740
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
52245
|
-
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({
|
|
52246
51742
|
prefixCls: prefixCls,
|
|
52247
51743
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
52248
51744
|
visible: popupVisible,
|
|
@@ -52355,7 +51851,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52355
51851
|
return _this;
|
|
52356
51852
|
}
|
|
52357
51853
|
|
|
52358
|
-
|
|
51854
|
+
_createClass(Trigger, [{
|
|
52359
51855
|
key: "componentDidMount",
|
|
52360
51856
|
value: function componentDidMount() {
|
|
52361
51857
|
this.componentDidUpdate();
|
|
@@ -52680,7 +52176,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52680
52176
|
newChildProps.className = childrenClassName;
|
|
52681
52177
|
}
|
|
52682
52178
|
|
|
52683
|
-
var cloneProps =
|
|
52179
|
+
var cloneProps = _objectSpread2({}, newChildProps);
|
|
52684
52180
|
|
|
52685
52181
|
if (supportRef(child)) {
|
|
52686
52182
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -52821,7 +52317,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52821
52317
|
empty = props.empty,
|
|
52822
52318
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
52823
52319
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
52824
|
-
restProps =
|
|
52320
|
+
restProps = _objectWithoutProperties(props, SelectTrigger_excluded);
|
|
52825
52321
|
|
|
52826
52322
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
52827
52323
|
var popupNode = popupElement;
|
|
@@ -52845,7 +52341,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52845
52341
|
};
|
|
52846
52342
|
});
|
|
52847
52343
|
|
|
52848
|
-
var popupStyle =
|
|
52344
|
+
var popupStyle = _objectSpread2({
|
|
52849
52345
|
minWidth: containerWidth
|
|
52850
52346
|
}, dropdownStyle);
|
|
52851
52347
|
|
|
@@ -52855,7 +52351,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52855
52351
|
popupStyle.width = containerWidth;
|
|
52856
52352
|
}
|
|
52857
52353
|
|
|
52858
|
-
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, {
|
|
52859
52355
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
52860
52356
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
52861
52357
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -52868,7 +52364,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52868
52364
|
popupAlign: dropdownAlign,
|
|
52869
52365
|
popupVisible: visible,
|
|
52870
52366
|
getPopupContainer: getPopupContainer,
|
|
52871
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52367
|
+
popupClassName: classnames_default()(dropdownClassName, _defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
52872
52368
|
popupStyle: popupStyle,
|
|
52873
52369
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
52874
52370
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52971,7 +52467,7 @@ function useCacheDisplayValue(values) {
|
|
|
52971
52467
|
var cacheLabel = valueLabels.get(item.value);
|
|
52972
52468
|
|
|
52973
52469
|
if (item.isCacheable && cacheLabel) {
|
|
52974
|
-
return
|
|
52470
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
52975
52471
|
label: cacheLabel
|
|
52976
52472
|
});
|
|
52977
52473
|
}
|
|
@@ -53133,7 +52629,7 @@ function generateSelector(config) {
|
|
|
53133
52629
|
onClear = props.onClear,
|
|
53134
52630
|
_props$internalProps = props.internalProps,
|
|
53135
52631
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
53136
|
-
restProps =
|
|
52632
|
+
restProps = _objectWithoutProperties(props, generate_excluded);
|
|
53137
52633
|
|
|
53138
52634
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
53139
52635
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -53271,7 +52767,7 @@ function generateSelector(config) {
|
|
|
53271
52767
|
|
|
53272
52768
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
53273
52769
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
53274
|
-
return
|
|
52770
|
+
return _toConsumableArray(mergedOptions);
|
|
53275
52771
|
}
|
|
53276
52772
|
|
|
53277
52773
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -53292,7 +52788,7 @@ function generateSelector(config) {
|
|
|
53292
52788
|
}
|
|
53293
52789
|
|
|
53294
52790
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
53295
|
-
return
|
|
52791
|
+
return _toConsumableArray(filteredOptions).sort(filterSort);
|
|
53296
52792
|
}
|
|
53297
52793
|
|
|
53298
52794
|
return filteredOptions;
|
|
@@ -53315,7 +52811,7 @@ function generateSelector(config) {
|
|
|
53315
52811
|
labelInValue: mergedLabelInValue,
|
|
53316
52812
|
optionLabelProp: mergedOptionLabelProp
|
|
53317
52813
|
});
|
|
53318
|
-
return
|
|
52814
|
+
return _objectSpread2(_objectSpread2({}, displayValue), {}, {
|
|
53319
52815
|
disabled: isValueDisabled(val, valueOptions)
|
|
53320
52816
|
});
|
|
53321
52817
|
});
|
|
@@ -53389,7 +52885,7 @@ function generateSelector(config) {
|
|
|
53389
52885
|
}); // We will cache option in case it removed by ajax
|
|
53390
52886
|
|
|
53391
52887
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
53392
|
-
var clone =
|
|
52888
|
+
var clone = _objectSpread2({}, option);
|
|
53393
52889
|
|
|
53394
52890
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
53395
52891
|
get: function get() {
|
|
@@ -53445,13 +52941,13 @@ function generateSelector(config) {
|
|
|
53445
52941
|
};
|
|
53446
52942
|
|
|
53447
52943
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
53448
|
-
onInternalSelect(newValue,
|
|
52944
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53449
52945
|
source: 'option'
|
|
53450
52946
|
}));
|
|
53451
52947
|
};
|
|
53452
52948
|
|
|
53453
52949
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
53454
|
-
onInternalSelect(newValue,
|
|
52950
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53455
52951
|
source: 'selection'
|
|
53456
52952
|
}));
|
|
53457
52953
|
}; // ============================= Input ==============================
|
|
@@ -53535,7 +53031,7 @@ function generateSelector(config) {
|
|
|
53535
53031
|
});
|
|
53536
53032
|
}
|
|
53537
53033
|
|
|
53538
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53034
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), _toConsumableArray(patchRawValues))));
|
|
53539
53035
|
triggerChange(newRawValues);
|
|
53540
53036
|
newRawValues.forEach(function (newRawValue) {
|
|
53541
53037
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53564,7 +53060,7 @@ function generateSelector(config) {
|
|
|
53564
53060
|
return;
|
|
53565
53061
|
}
|
|
53566
53062
|
|
|
53567
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53063
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [searchText])));
|
|
53568
53064
|
triggerChange(newRawValues);
|
|
53569
53065
|
newRawValues.forEach(function (newRawValue) {
|
|
53570
53066
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53697,7 +53193,7 @@ function generateSelector(config) {
|
|
|
53697
53193
|
// `tags` mode should move `searchValue` into values
|
|
53698
53194
|
if (mode === 'tags') {
|
|
53699
53195
|
triggerSearch('', false, false);
|
|
53700
|
-
triggerChange(Array.from(new Set([].concat(
|
|
53196
|
+
triggerChange(Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
53701
53197
|
} else if (mode === 'multiple') {
|
|
53702
53198
|
// `multiple` mode only clean the search value but not trigger event
|
|
53703
53199
|
setInnerSearchValue('');
|
|
@@ -53855,7 +53351,7 @@ function generateSelector(config) {
|
|
|
53855
53351
|
|
|
53856
53352
|
if (mergedShowArrow) {
|
|
53857
53353
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
53858
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53354
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), _defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
53859
53355
|
customizeIcon: inputIcon,
|
|
53860
53356
|
customizeIconProps: {
|
|
53861
53357
|
loading: loading,
|
|
@@ -53871,7 +53367,7 @@ function generateSelector(config) {
|
|
|
53871
53367
|
if (false) {} // ============================= Render =============================
|
|
53872
53368
|
|
|
53873
53369
|
|
|
53874
|
-
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));
|
|
53875
53371
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
53876
53372
|
ref: triggerRef,
|
|
53877
53373
|
disabled: disabled,
|
|
@@ -53896,7 +53392,7 @@ function generateSelector(config) {
|
|
|
53896
53392
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
53897
53393
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
53898
53394
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
53899
|
-
}) : /*#__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, {
|
|
53900
53396
|
domRef: selectorDomRef,
|
|
53901
53397
|
prefixCls: prefixCls,
|
|
53902
53398
|
inputElement: customizeInputElement,
|
|
@@ -53922,7 +53418,7 @@ function generateSelector(config) {
|
|
|
53922
53418
|
return selectorNode;
|
|
53923
53419
|
}
|
|
53924
53420
|
|
|
53925
|
-
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({
|
|
53926
53422
|
className: mergedClassName
|
|
53927
53423
|
}, domProps, {
|
|
53928
53424
|
ref: containerRef,
|
|
@@ -54009,7 +53505,7 @@ function warningProps(props) {
|
|
|
54009
53505
|
if (value !== undefined && value !== null) {
|
|
54010
53506
|
var values = commonUtil_toArray(value);
|
|
54011
53507
|
es_warning(!labelInValue || values.every(function (val) {
|
|
54012
|
-
return
|
|
53508
|
+
return typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
54013
53509
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
54014
53510
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
54015
53511
|
} // Syntactic sugar should use correct children type
|
|
@@ -54123,14 +53619,14 @@ var RefSelect = generateSelector({
|
|
|
54123
53619
|
*/
|
|
54124
53620
|
|
|
54125
53621
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
54126
|
-
|
|
53622
|
+
_inherits(Select, _React$Component);
|
|
54127
53623
|
|
|
54128
|
-
var _super =
|
|
53624
|
+
var _super = _createSuper(Select);
|
|
54129
53625
|
|
|
54130
53626
|
function Select() {
|
|
54131
53627
|
var _this;
|
|
54132
53628
|
|
|
54133
|
-
|
|
53629
|
+
_classCallCheck(this, Select);
|
|
54134
53630
|
|
|
54135
53631
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
54136
53632
|
args[_key] = arguments[_key];
|
|
@@ -54150,10 +53646,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
54150
53646
|
return _this;
|
|
54151
53647
|
}
|
|
54152
53648
|
|
|
54153
|
-
|
|
53649
|
+
_createClass(Select, [{
|
|
54154
53650
|
key: "render",
|
|
54155
53651
|
value: function render() {
|
|
54156
|
-
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({
|
|
54157
53653
|
ref: this.selectRef
|
|
54158
53654
|
}, this.props));
|
|
54159
53655
|
}
|
|
@@ -54334,7 +53830,7 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
54334
53830
|
} // ===================== Icons =====================
|
|
54335
53831
|
|
|
54336
53832
|
|
|
54337
|
-
var _getIcons = getIcons(
|
|
53833
|
+
var _getIcons = getIcons(extends_extends(extends_extends({}, props), {
|
|
54338
53834
|
multiple: isMultiple,
|
|
54339
53835
|
prefixCls: prefixCls
|
|
54340
53836
|
})),
|
|
@@ -54344,10 +53840,10 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
54344
53840
|
clearIcon = _getIcons.clearIcon;
|
|
54345
53841
|
|
|
54346
53842
|
var selectProps = omit(props, ['suffixIcon', 'itemIcon']);
|
|
54347
|
-
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName,
|
|
53843
|
+
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName, _defineProperty({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
|
|
54348
53844
|
var mergedSize = customizeSize || size;
|
|
54349
|
-
var mergedClassName = classnames_default()((_classNames2 = {},
|
|
54350
|
-
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({
|
|
54351
53847
|
ref: ref,
|
|
54352
53848
|
virtual: virtual,
|
|
54353
53849
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth
|
|
@@ -55148,7 +54644,7 @@ var apiCommon = generateCommonAPI({
|
|
|
55148
54644
|
});
|
|
55149
54645
|
;// CONCATENATED MODULE: ./src/config/request/assessments.js
|
|
55150
54646
|
|
|
55151
|
-
var assessments_env =
|
|
54647
|
+
var assessments_env = process.env.SDP_ENV;
|
|
55152
54648
|
var assessments_assessmentApi = generateCommonAPIWithUC({
|
|
55153
54649
|
hostKey: 'e-assessment-api',
|
|
55154
54650
|
prefix: '/v1'
|
|
@@ -56463,7 +55959,7 @@ function TabNode(_ref, ref) {
|
|
|
56463
55959
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
56464
55960
|
key: key,
|
|
56465
55961
|
ref: ref,
|
|
56466
|
-
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)),
|
|
56467
55963
|
style: style,
|
|
56468
55964
|
onClick: onInternalClick
|
|
56469
55965
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -56526,7 +56022,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
56526
56022
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
56527
56023
|
}
|
|
56528
56024
|
|
|
56529
|
-
var entity = map.get(key) ||
|
|
56025
|
+
var entity = map.get(key) || _objectSpread2({}, data); // Right
|
|
56530
56026
|
|
|
56531
56027
|
|
|
56532
56028
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -56621,7 +56117,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56621
56117
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56622
56118
|
|
|
56623
56119
|
function mergeProps(origin, target) {
|
|
56624
|
-
var clone =
|
|
56120
|
+
var clone = _objectSpread2({}, origin);
|
|
56625
56121
|
|
|
56626
56122
|
Object.keys(target).forEach(function (key) {
|
|
56627
56123
|
var value = target[key];
|
|
@@ -56636,7 +56132,7 @@ function mergeProps(origin, target) {
|
|
|
56636
56132
|
function InheritableContextProvider(_ref) {
|
|
56637
56133
|
var children = _ref.children,
|
|
56638
56134
|
locked = _ref.locked,
|
|
56639
|
-
restProps =
|
|
56135
|
+
restProps = _objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56640
56136
|
|
|
56641
56137
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56642
56138
|
var inheritableContext = useMemo(function () {
|
|
@@ -56692,7 +56188,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56692
56188
|
|
|
56693
56189
|
function warnItemProp(_ref) {
|
|
56694
56190
|
var item = _ref.item,
|
|
56695
|
-
restInfo =
|
|
56191
|
+
restInfo = _objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56696
56192
|
|
|
56697
56193
|
Object.defineProperty(restInfo, 'item', {
|
|
56698
56194
|
get: function get() {
|
|
@@ -56712,7 +56208,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56712
56208
|
var iconNode;
|
|
56713
56209
|
|
|
56714
56210
|
if (typeof icon === 'function') {
|
|
56715
|
-
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));
|
|
56716
56212
|
} else {
|
|
56717
56213
|
// Compatible for origin definition
|
|
56718
56214
|
iconNode = icon;
|
|
@@ -56753,7 +56249,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56753
56249
|
function useFullPath(eventKey) {
|
|
56754
56250
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56755
56251
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56756
|
-
return eventKey !== undefined ? [].concat(
|
|
56252
|
+
return eventKey !== undefined ? [].concat(_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56757
56253
|
}, [parentKeyPath, eventKey]);
|
|
56758
56254
|
}
|
|
56759
56255
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56810,28 +56306,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56810
56306
|
// This should be removed from doc & api in future.
|
|
56811
56307
|
|
|
56812
56308
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56813
|
-
|
|
56309
|
+
_inherits(LegacyMenuItem, _React$Component);
|
|
56814
56310
|
|
|
56815
|
-
var _super =
|
|
56311
|
+
var _super = _createSuper(LegacyMenuItem);
|
|
56816
56312
|
|
|
56817
56313
|
function LegacyMenuItem() {
|
|
56818
|
-
|
|
56314
|
+
_classCallCheck(this, LegacyMenuItem);
|
|
56819
56315
|
|
|
56820
56316
|
return _super.apply(this, arguments);
|
|
56821
56317
|
}
|
|
56822
56318
|
|
|
56823
|
-
|
|
56319
|
+
_createClass(LegacyMenuItem, [{
|
|
56824
56320
|
key: "render",
|
|
56825
56321
|
value: function render() {
|
|
56826
56322
|
var _this$props = this.props,
|
|
56827
56323
|
title = _this$props.title,
|
|
56828
56324
|
attribute = _this$props.attribute,
|
|
56829
56325
|
elementRef = _this$props.elementRef,
|
|
56830
|
-
restProps =
|
|
56326
|
+
restProps = _objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56831
56327
|
|
|
56832
56328
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56833
56329
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56834
|
-
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, {
|
|
56835
56331
|
title: typeof title === 'string' ? title : undefined
|
|
56836
56332
|
}, passedProps, {
|
|
56837
56333
|
ref: elementRef
|
|
@@ -56862,7 +56358,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56862
56358
|
onClick = props.onClick,
|
|
56863
56359
|
onKeyDown = props.onKeyDown,
|
|
56864
56360
|
onFocus = props.onFocus,
|
|
56865
|
-
restProps =
|
|
56361
|
+
restProps = _objectWithoutProperties(props, MenuItem_excluded2);
|
|
56866
56362
|
|
|
56867
56363
|
var domDataId = useMenuId(eventKey);
|
|
56868
56364
|
|
|
@@ -56891,7 +56387,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56891
56387
|
return {
|
|
56892
56388
|
key: eventKey,
|
|
56893
56389
|
// Note: For legacy code is reversed which not like other antd component
|
|
56894
|
-
keyPath:
|
|
56390
|
+
keyPath: _toConsumableArray(connectedKeys).reverse(),
|
|
56895
56391
|
item: legacyMenuItemRef.current,
|
|
56896
56392
|
domEvent: e
|
|
56897
56393
|
};
|
|
@@ -56902,7 +56398,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56902
56398
|
|
|
56903
56399
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56904
56400
|
active = _useActive.active,
|
|
56905
|
-
activeProps =
|
|
56401
|
+
activeProps = _objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56906
56402
|
|
|
56907
56403
|
|
|
56908
56404
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56947,7 +56443,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56947
56443
|
optionRoleProps['aria-selected'] = selected;
|
|
56948
56444
|
}
|
|
56949
56445
|
|
|
56950
|
-
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({
|
|
56951
56447
|
ref: legacyMenuItemRef,
|
|
56952
56448
|
elementRef: elementRef,
|
|
56953
56449
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56956,13 +56452,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56956
56452
|
}, restProps, activeProps, optionRoleProps, {
|
|
56957
56453
|
component: "li",
|
|
56958
56454
|
"aria-disabled": disabled,
|
|
56959
|
-
style:
|
|
56960
|
-
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),
|
|
56961
56457
|
onClick: onInternalClick,
|
|
56962
56458
|
onKeyDown: onInternalKeyDown,
|
|
56963
56459
|
onFocus: onInternalFocus
|
|
56964
56460
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56965
|
-
props:
|
|
56461
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
56966
56462
|
isSelected: selected
|
|
56967
56463
|
}),
|
|
56968
56464
|
icon: mergedItemIcon
|
|
@@ -57015,7 +56511,7 @@ function parseChildren(children, keyPath) {
|
|
|
57015
56511
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
57016
56512
|
|
|
57017
56513
|
if (emptyKey) {
|
|
57018
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56514
|
+
eventKey = "tmp_key-".concat([].concat(_toConsumableArray(keyPath), [index]).join('-'));
|
|
57019
56515
|
}
|
|
57020
56516
|
|
|
57021
56517
|
var cloneProps = {
|
|
@@ -57063,14 +56559,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
57063
56559
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
57064
56560
|
var className = _ref.className,
|
|
57065
56561
|
children = _ref.children,
|
|
57066
|
-
restProps =
|
|
56562
|
+
restProps = _objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
57067
56563
|
|
|
57068
56564
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
57069
56565
|
prefixCls = _React$useContext.prefixCls,
|
|
57070
56566
|
mode = _React$useContext.mode,
|
|
57071
56567
|
rtl = _React$useContext.rtl;
|
|
57072
56568
|
|
|
57073
|
-
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({
|
|
57074
56570
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
57075
56571
|
}, restProps, {
|
|
57076
56572
|
"data-menu-list": true,
|
|
@@ -57187,11 +56683,11 @@ function PopupTrigger(_ref) {
|
|
|
57187
56683
|
innerVisible = _React$useState2[0],
|
|
57188
56684
|
setInnerVisible = _React$useState2[1];
|
|
57189
56685
|
|
|
57190
|
-
var placement = rtl ?
|
|
56686
|
+
var placement = rtl ? _objectSpread2(_objectSpread2({}, placementsRtl), builtinPlacements) : _objectSpread2(_objectSpread2({}, placements), builtinPlacements);
|
|
57191
56687
|
var popupPlacement = popupPlacementMap[mode];
|
|
57192
56688
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
57193
56689
|
|
|
57194
|
-
var mergedMotion =
|
|
56690
|
+
var mergedMotion = _objectSpread2(_objectSpread2({}, targetMotion), {}, {
|
|
57195
56691
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
57196
56692
|
removeOnLeave: false,
|
|
57197
56693
|
motionAppear: true
|
|
@@ -57209,7 +56705,7 @@ function PopupTrigger(_ref) {
|
|
|
57209
56705
|
}, [visible]);
|
|
57210
56706
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
57211
56707
|
prefixCls: prefixCls,
|
|
57212
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
56708
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), _defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
57213
56709
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
57214
56710
|
getPopupContainer: getPopupContainer,
|
|
57215
56711
|
builtinPlacements: placement,
|
|
@@ -57269,7 +56765,7 @@ function InlineSubMenuList(_ref) {
|
|
|
57269
56765
|
}
|
|
57270
56766
|
}, [mode]); // ================================= Render =================================
|
|
57271
56767
|
|
|
57272
|
-
var mergedMotion =
|
|
56768
|
+
var mergedMotion = _objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
57273
56769
|
|
|
57274
56770
|
|
|
57275
56771
|
if (keyPath.length > 1) {
|
|
@@ -57294,7 +56790,7 @@ function InlineSubMenuList(_ref) {
|
|
|
57294
56790
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
57295
56791
|
mode: fixedMode,
|
|
57296
56792
|
locked: !sameModeRef.current
|
|
57297
|
-
}, /*#__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({
|
|
57298
56794
|
visible: mergedOpen
|
|
57299
56795
|
}, mergedMotion, {
|
|
57300
56796
|
forceRender: forceSubMenuRender,
|
|
@@ -57357,7 +56853,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57357
56853
|
onTitleClick = props.onTitleClick,
|
|
57358
56854
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
57359
56855
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
57360
|
-
restProps =
|
|
56856
|
+
restProps = _objectWithoutProperties(props, SubMenu_excluded);
|
|
57361
56857
|
|
|
57362
56858
|
var domDataId = useMenuId(eventKey);
|
|
57363
56859
|
|
|
@@ -57400,7 +56896,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57400
56896
|
|
|
57401
56897
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
57402
56898
|
active = _useActive.active,
|
|
57403
|
-
activeProps =
|
|
56899
|
+
activeProps = _objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
57404
56900
|
|
|
57405
56901
|
|
|
57406
56902
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
@@ -57485,7 +56981,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57485
56981
|
|
|
57486
56982
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
57487
56983
|
|
|
57488
|
-
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({
|
|
57489
56985
|
role: "menuitem",
|
|
57490
56986
|
style: directionStyle,
|
|
57491
56987
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -57501,7 +56997,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57501
56997
|
onFocus: onInternalFocus
|
|
57502
56998
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
57503
56999
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
57504
|
-
props:
|
|
57000
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
57505
57001
|
isOpen: open,
|
|
57506
57002
|
// [Legacy] Not sure why need this mark
|
|
57507
57003
|
isSubMenu: true
|
|
@@ -57539,12 +57035,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57539
57035
|
} // >>>>> List node
|
|
57540
57036
|
|
|
57541
57037
|
|
|
57542
|
-
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({
|
|
57543
57039
|
role: "none"
|
|
57544
57040
|
}, restProps, {
|
|
57545
57041
|
component: "li",
|
|
57546
57042
|
style: style,
|
|
57547
|
-
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)),
|
|
57548
57044
|
onMouseEnter: onInternalMouseEnter,
|
|
57549
57045
|
onMouseLeave: onInternalMouseLeave
|
|
57550
57046
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -57637,7 +57133,7 @@ function focusable(node) {
|
|
|
57637
57133
|
function getFocusNodeList(node) {
|
|
57638
57134
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
57639
57135
|
|
|
57640
|
-
var res =
|
|
57136
|
+
var res = _toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
57641
57137
|
return focusable(child, includePositive);
|
|
57642
57138
|
});
|
|
57643
57139
|
|
|
@@ -57717,9 +57213,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
57717
57213
|
};
|
|
57718
57214
|
}
|
|
57719
57215
|
|
|
57720
|
-
var inline = (_inline = {},
|
|
57721
|
-
var horizontal = (_horizontal = {},
|
|
57722
|
-
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);
|
|
57723
57219
|
var offsets = {
|
|
57724
57220
|
inline: inline,
|
|
57725
57221
|
horizontal: horizontal,
|
|
@@ -58083,7 +57579,7 @@ function useKeyRecords() {
|
|
|
58083
57579
|
}, [getKeyPath]);
|
|
58084
57580
|
|
|
58085
57581
|
var getKeys = function getKeys() {
|
|
58086
|
-
var keys =
|
|
57582
|
+
var keys = _toConsumableArray(key2pathRef.current.keys());
|
|
58087
57583
|
|
|
58088
57584
|
if (overflowKeys.length) {
|
|
58089
57585
|
keys.push(OVERFLOW_KEY);
|
|
@@ -58100,7 +57596,7 @@ function useKeyRecords() {
|
|
|
58100
57596
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
58101
57597
|
var pathKeys = new Set();
|
|
58102
57598
|
|
|
58103
|
-
|
|
57599
|
+
_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
58104
57600
|
if (pathKey.startsWith(connectedPath)) {
|
|
58105
57601
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
58106
57602
|
}
|
|
@@ -58221,7 +57717,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58221
57717
|
openTransitionName = props.openTransitionName,
|
|
58222
57718
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
58223
57719
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
58224
|
-
restProps =
|
|
57720
|
+
restProps = _objectWithoutProperties(props, Menu_excluded);
|
|
58225
57721
|
|
|
58226
57722
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
58227
57723
|
|
|
@@ -58375,7 +57871,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58375
57871
|
return key !== targetKey;
|
|
58376
57872
|
});
|
|
58377
57873
|
} else {
|
|
58378
|
-
newSelectKeys = [].concat(
|
|
57874
|
+
newSelectKeys = [].concat(_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
58379
57875
|
}
|
|
58380
57876
|
} else {
|
|
58381
57877
|
newSelectKeys = [targetKey];
|
|
@@ -58383,7 +57879,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58383
57879
|
|
|
58384
57880
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
58385
57881
|
|
|
58386
|
-
var selectInfo =
|
|
57882
|
+
var selectInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
58387
57883
|
selectedKeys: newSelectKeys
|
|
58388
57884
|
});
|
|
58389
57885
|
|
|
@@ -58461,13 +57957,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58461
57957
|
);
|
|
58462
57958
|
}); // >>>>> Container
|
|
58463
57959
|
|
|
58464
|
-
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({
|
|
58465
57961
|
id: id,
|
|
58466
57962
|
ref: mergedRef,
|
|
58467
57963
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
58468
57964
|
component: "ul",
|
|
58469
57965
|
itemComponent: es_MenuItem,
|
|
58470
|
-
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)),
|
|
58471
57967
|
dir: direction,
|
|
58472
57968
|
style: style,
|
|
58473
57969
|
role: "menu",
|
|
@@ -58561,13 +58057,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58561
58057
|
title = _ref.title,
|
|
58562
58058
|
eventKey = _ref.eventKey,
|
|
58563
58059
|
children = _ref.children,
|
|
58564
|
-
restProps =
|
|
58060
|
+
restProps = _objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58565
58061
|
|
|
58566
58062
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58567
58063
|
prefixCls = _React$useContext.prefixCls;
|
|
58568
58064
|
|
|
58569
58065
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58570
|
-
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, {
|
|
58571
58067
|
onClick: function onClick(e) {
|
|
58572
58068
|
return e.stopPropagation();
|
|
58573
58069
|
},
|
|
@@ -58582,7 +58078,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58582
58078
|
|
|
58583
58079
|
function MenuItemGroup(_ref2) {
|
|
58584
58080
|
var children = _ref2.children,
|
|
58585
|
-
props =
|
|
58081
|
+
props = _objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58586
58082
|
|
|
58587
58083
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58588
58084
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58710,7 +58206,7 @@ function Dropdown(props, ref) {
|
|
|
58710
58206
|
visible = props.visible,
|
|
58711
58207
|
_props$trigger = props.trigger,
|
|
58712
58208
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58713
|
-
otherProps =
|
|
58209
|
+
otherProps = _objectWithoutProperties(props, Dropdown_excluded);
|
|
58714
58210
|
|
|
58715
58211
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58716
58212
|
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
@@ -58821,12 +58317,12 @@ function Dropdown(props, ref) {
|
|
|
58821
58317
|
triggerHideAction = ['click'];
|
|
58822
58318
|
}
|
|
58823
58319
|
|
|
58824
|
-
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({
|
|
58825
58321
|
builtinPlacements: placements
|
|
58826
58322
|
}, otherProps), {}, {
|
|
58827
58323
|
prefixCls: prefixCls,
|
|
58828
58324
|
ref: triggerRef,
|
|
58829
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58325
|
+
popupClassName: classnames_default()(overlayClassName, _defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58830
58326
|
popupStyle: overlayStyle,
|
|
58831
58327
|
action: trigger,
|
|
58832
58328
|
showAction: showAction,
|
|
@@ -59030,14 +58526,14 @@ function OperationNode(_ref, ref) {
|
|
|
59030
58526
|
}
|
|
59031
58527
|
}, [open]); // ========================= Render =========================
|
|
59032
58528
|
|
|
59033
|
-
var moreStyle =
|
|
58529
|
+
var moreStyle = _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
59034
58530
|
|
|
59035
58531
|
if (!tabs.length) {
|
|
59036
58532
|
moreStyle.visibility = 'hidden';
|
|
59037
58533
|
moreStyle.order = 1;
|
|
59038
58534
|
}
|
|
59039
58535
|
|
|
59040
|
-
var overlayClassName = classnames_default()(
|
|
58536
|
+
var overlayClassName = classnames_default()(_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
59041
58537
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
59042
58538
|
prefixCls: dropdownPrefix,
|
|
59043
58539
|
overlay: menu,
|
|
@@ -59316,7 +58812,7 @@ var ExtraContent = function ExtraContent(_ref) {
|
|
|
59316
58812
|
|
|
59317
58813
|
var assertExtra = {};
|
|
59318
58814
|
|
|
59319
|
-
if (extra &&
|
|
58815
|
+
if (extra && typeof_typeof(extra) === 'object' && ! /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(extra)) {
|
|
59320
58816
|
assertExtra = extra;
|
|
59321
58817
|
} else {
|
|
59322
58818
|
assertExtra.right = extra;
|
|
@@ -59566,7 +59062,7 @@ function TabNavList(props, ref) {
|
|
|
59566
59062
|
}, {
|
|
59567
59063
|
width: addWidth,
|
|
59568
59064
|
height: addHeight
|
|
59569
|
-
},
|
|
59065
|
+
}, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
59570
59066
|
tabs: tabs
|
|
59571
59067
|
})),
|
|
59572
59068
|
_useVisibleRange2 = slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
@@ -59658,7 +59154,7 @@ function TabNavList(props, ref) {
|
|
|
59658
59154
|
|
|
59659
59155
|
var startHiddenTabs = tabs.slice(0, visibleStart);
|
|
59660
59156
|
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
|
59661
|
-
var hiddenTabs = [].concat(
|
|
59157
|
+
var hiddenTabs = [].concat(_toConsumableArray(startHiddenTabs), _toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
59662
59158
|
|
|
59663
59159
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59664
59160
|
_useState16 = slicedToArray_slicedToArray(_useState15, 2),
|
|
@@ -59744,7 +59240,7 @@ function TabNavList(props, ref) {
|
|
|
59744
59240
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59745
59241
|
onResize: onListHolderResize
|
|
59746
59242
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59747
|
-
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)),
|
|
59748
59244
|
ref: tabsWrapperRef
|
|
59749
59245
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59750
59246
|
onResize: onListHolderResize
|
|
@@ -59760,13 +59256,13 @@ function TabNavList(props, ref) {
|
|
|
59760
59256
|
prefixCls: prefixCls,
|
|
59761
59257
|
locale: locale,
|
|
59762
59258
|
editable: editable,
|
|
59763
|
-
style:
|
|
59259
|
+
style: _objectSpread2(_objectSpread2({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {
|
|
59764
59260
|
visibility: hasDropdown ? 'hidden' : null
|
|
59765
59261
|
})
|
|
59766
59262
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59767
|
-
className: classnames_default()("".concat(prefixCls, "-ink-bar"),
|
|
59263
|
+
className: classnames_default()("".concat(prefixCls, "-ink-bar"), _defineProperty({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
|
59768
59264
|
style: inkStyle
|
|
59769
|
-
}))))), /*#__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, {
|
|
59770
59266
|
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
|
59771
59267
|
ref: operationsRef,
|
|
59772
59268
|
prefixCls: prefixCls,
|
|
@@ -59806,8 +59302,8 @@ function TabPanelList(_ref) {
|
|
|
59806
59302
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59807
59303
|
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
|
59808
59304
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59809
|
-
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition),
|
|
59810
|
-
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
|
|
59811
59307
|
}, tabs.map(function (tab) {
|
|
59812
59308
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(tab.node, {
|
|
59813
59309
|
key: tab.key,
|
|
@@ -59867,7 +59363,7 @@ function TabPane(_ref) {
|
|
|
59867
59363
|
tabIndex: active ? 0 : -1,
|
|
59868
59364
|
"aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
|
|
59869
59365
|
"aria-hidden": !active,
|
|
59870
|
-
style:
|
|
59366
|
+
style: _objectSpread2(_objectSpread2({}, mergedStyle), style),
|
|
59871
59367
|
className: classnames_default()("".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), className)
|
|
59872
59368
|
}, (active || visited || forceRender) && children);
|
|
59873
59369
|
}
|
|
@@ -59907,7 +59403,7 @@ function parseTabList(children) {
|
|
|
59907
59403
|
return toArray(children).map(function (node) {
|
|
59908
59404
|
if ( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(node)) {
|
|
59909
59405
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
59910
|
-
return
|
|
59406
|
+
return _objectSpread2(_objectSpread2({
|
|
59911
59407
|
key: key
|
|
59912
59408
|
}, node.props), {}, {
|
|
59913
59409
|
node: node
|
|
@@ -59950,7 +59446,7 @@ function Tabs(_ref, ref) {
|
|
|
59950
59446
|
onChange = _ref.onChange,
|
|
59951
59447
|
onTabClick = _ref.onTabClick,
|
|
59952
59448
|
onTabScroll = _ref.onTabScroll,
|
|
59953
|
-
restProps =
|
|
59449
|
+
restProps = _objectWithoutProperties(_ref, Tabs_excluded);
|
|
59954
59450
|
|
|
59955
59451
|
var tabs = parseTabList(children);
|
|
59956
59452
|
var rtl = direction === 'rtl';
|
|
@@ -59967,10 +59463,10 @@ function Tabs(_ref, ref) {
|
|
|
59967
59463
|
tabPane: true
|
|
59968
59464
|
};
|
|
59969
59465
|
} else {
|
|
59970
|
-
mergedAnimated =
|
|
59466
|
+
mergedAnimated = _objectSpread2({
|
|
59971
59467
|
inkBar: true,
|
|
59972
59468
|
tabPane: false
|
|
59973
|
-
},
|
|
59469
|
+
}, typeof_typeof(animated) === 'object' ? animated : {});
|
|
59974
59470
|
} // ======================== Mobile ========================
|
|
59975
59471
|
|
|
59976
59472
|
|
|
@@ -60065,7 +59561,7 @@ function Tabs(_ref, ref) {
|
|
|
60065
59561
|
};
|
|
60066
59562
|
var tabNavBar;
|
|
60067
59563
|
|
|
60068
|
-
var tabNavBarProps =
|
|
59564
|
+
var tabNavBarProps = _objectSpread2(_objectSpread2({}, sharedProps), {}, {
|
|
60069
59565
|
editable: editable,
|
|
60070
59566
|
locale: locale,
|
|
60071
59567
|
moreIcon: moreIcon,
|
|
@@ -60089,11 +59585,11 @@ function Tabs(_ref, ref) {
|
|
|
60089
59585
|
tabs: tabs,
|
|
60090
59586
|
prefixCls: prefixCls
|
|
60091
59587
|
}
|
|
60092
|
-
}, /*#__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({
|
|
60093
59589
|
ref: ref,
|
|
60094
59590
|
id: id,
|
|
60095
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {},
|
|
60096
|
-
}, 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({
|
|
60097
59593
|
destroyInactiveTabPane: destroyInactiveTabPane
|
|
60098
59594
|
}, sharedProps, {
|
|
60099
59595
|
animated: mergedAnimated
|
|
@@ -60179,11 +59675,11 @@ function tabs_Tabs(_a) {
|
|
|
60179
59675
|
var _classNames;
|
|
60180
59676
|
|
|
60181
59677
|
var size = propSize !== undefined ? propSize : contextSize;
|
|
60182
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es,
|
|
59678
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es, extends_extends({
|
|
60183
59679
|
direction: direction,
|
|
60184
59680
|
moreTransitionName: "".concat(rootPrefixCls, "-slide-up")
|
|
60185
59681
|
}, props, {
|
|
60186
|
-
className: classnames_default()((_classNames = {},
|
|
59682
|
+
className: classnames_default()((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(size), size), _defineProperty(_classNames, "".concat(prefixCls, "-card"), ['card', 'editable-card'].includes(type)), _defineProperty(_classNames, "".concat(prefixCls, "-editable-card"), type === 'editable-card'), _defineProperty(_classNames, "".concat(prefixCls, "-centered"), centered), _classNames), className),
|
|
60187
59683
|
editable: editable,
|
|
60188
59684
|
moreIcon: moreIcon,
|
|
60189
59685
|
prefixCls: prefixCls
|
|
@@ -60243,7 +59739,7 @@ var Pager = function Pager(props) {
|
|
|
60243
59739
|
var _classNames;
|
|
60244
59740
|
|
|
60245
59741
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
60246
|
-
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));
|
|
60247
59743
|
|
|
60248
59744
|
var handleClick = function handleClick() {
|
|
60249
59745
|
props.onClick(props.page);
|
|
@@ -60288,14 +59784,14 @@ var Pager = function Pager(props) {
|
|
|
60288
59784
|
|
|
60289
59785
|
|
|
60290
59786
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
60291
|
-
|
|
59787
|
+
_inherits(Options, _React$Component);
|
|
60292
59788
|
|
|
60293
|
-
var _super =
|
|
59789
|
+
var _super = _createSuper(Options);
|
|
60294
59790
|
|
|
60295
59791
|
function Options() {
|
|
60296
59792
|
var _this;
|
|
60297
59793
|
|
|
60298
|
-
|
|
59794
|
+
_classCallCheck(this, Options);
|
|
60299
59795
|
|
|
60300
59796
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
60301
59797
|
args[_key] = arguments[_key];
|
|
@@ -60361,7 +59857,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
60361
59857
|
return _this;
|
|
60362
59858
|
}
|
|
60363
59859
|
|
|
60364
|
-
|
|
59860
|
+
_createClass(Options, [{
|
|
60365
59861
|
key: "getValidValue",
|
|
60366
59862
|
value: function getValidValue() {
|
|
60367
59863
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -60518,14 +60014,14 @@ function calculatePage(p, state, props) {
|
|
|
60518
60014
|
}
|
|
60519
60015
|
|
|
60520
60016
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
60521
|
-
|
|
60017
|
+
_inherits(Pagination, _React$Component);
|
|
60522
60018
|
|
|
60523
|
-
var _super =
|
|
60019
|
+
var _super = _createSuper(Pagination);
|
|
60524
60020
|
|
|
60525
60021
|
function Pagination(props) {
|
|
60526
60022
|
var _this;
|
|
60527
60023
|
|
|
60528
|
-
|
|
60024
|
+
_classCallCheck(this, Pagination);
|
|
60529
60025
|
|
|
60530
60026
|
_this = _super.call(this, props);
|
|
60531
60027
|
|
|
@@ -60546,7 +60042,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60546
60042
|
});
|
|
60547
60043
|
|
|
60548
60044
|
if (typeof icon === 'function') {
|
|
60549
|
-
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));
|
|
60550
60046
|
}
|
|
60551
60047
|
|
|
60552
60048
|
return iconNode;
|
|
@@ -60768,7 +60264,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60768
60264
|
return _this;
|
|
60769
60265
|
}
|
|
60770
60266
|
|
|
60771
|
-
|
|
60267
|
+
_createClass(Pagination, [{
|
|
60772
60268
|
key: "componentDidUpdate",
|
|
60773
60269
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
60774
60270
|
// When current page change, fix focused style of prev item
|
|
@@ -60916,8 +60412,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60916
60412
|
}, gotoButton);
|
|
60917
60413
|
}
|
|
60918
60414
|
|
|
60919
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60920
|
-
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),
|
|
60921
60417
|
style: style,
|
|
60922
60418
|
ref: this.savePaginationNode
|
|
60923
60419
|
}, dataOrAriaAttributeProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
@@ -60925,7 +60421,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60925
60421
|
onClick: this.prev,
|
|
60926
60422
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60927
60423
|
onKeyPress: this.runIfEnterPrev,
|
|
60928
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60424
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
60929
60425
|
"aria-disabled": !this.hasPrev()
|
|
60930
60426
|
}, this.renderPrev(prevPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60931
60427
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
@@ -60946,7 +60442,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60946
60442
|
onClick: this.next,
|
|
60947
60443
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60948
60444
|
onKeyPress: this.runIfEnterNext,
|
|
60949
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60445
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
60950
60446
|
"aria-disabled": !this.hasNext()
|
|
60951
60447
|
}, this.renderNext(nextPage)), gotoButton);
|
|
60952
60448
|
}
|
|
@@ -60962,7 +60458,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60962
60458
|
};
|
|
60963
60459
|
|
|
60964
60460
|
if (!allPages) {
|
|
60965
|
-
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, {
|
|
60966
60462
|
key: "noPager",
|
|
60967
60463
|
page: 1,
|
|
60968
60464
|
className: "".concat(prefixCls, "-item-disabled")
|
|
@@ -60971,7 +60467,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60971
60467
|
|
|
60972
60468
|
for (var i = 1; i <= allPages; i += 1) {
|
|
60973
60469
|
var active = current === i;
|
|
60974
|
-
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, {
|
|
60975
60471
|
key: i,
|
|
60976
60472
|
page: i,
|
|
60977
60473
|
active: active
|
|
@@ -60988,7 +60484,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60988
60484
|
onClick: this.jumpPrev,
|
|
60989
60485
|
tabIndex: "0",
|
|
60990
60486
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
60991
|
-
className: classnames_default()("".concat(prefixCls, "-jump-prev"),
|
|
60487
|
+
className: classnames_default()("".concat(prefixCls, "-jump-prev"), _defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
60992
60488
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
60993
60489
|
jumpNext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60994
60490
|
title: showTitle ? nextItemTitle : null,
|
|
@@ -60996,7 +60492,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60996
60492
|
tabIndex: "0",
|
|
60997
60493
|
onClick: this.jumpNext,
|
|
60998
60494
|
onKeyPress: this.runIfEnterJumpNext,
|
|
60999
|
-
className: classnames_default()("".concat(prefixCls, "-jump-next"),
|
|
60495
|
+
className: classnames_default()("".concat(prefixCls, "-jump-next"), _defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
61000
60496
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
61001
60497
|
}
|
|
61002
60498
|
|
|
@@ -61083,8 +60579,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
61083
60579
|
|
|
61084
60580
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
61085
60581
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
61086
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
61087
|
-
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)),
|
|
61088
60584
|
style: style,
|
|
61089
60585
|
unselectable: "unselectable",
|
|
61090
60586
|
ref: this.savePaginationNode
|
|
@@ -61093,14 +60589,14 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
61093
60589
|
onClick: this.prev,
|
|
61094
60590
|
tabIndex: prevDisabled ? null : 0,
|
|
61095
60591
|
onKeyPress: this.runIfEnterPrev,
|
|
61096
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60592
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
61097
60593
|
"aria-disabled": prevDisabled
|
|
61098
60594
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
61099
60595
|
title: showTitle ? locale.next_page : null,
|
|
61100
60596
|
onClick: this.next,
|
|
61101
60597
|
tabIndex: nextDisabled ? null : 0,
|
|
61102
60598
|
onKeyPress: this.runIfEnterNext,
|
|
61103
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60599
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
61104
60600
|
"aria-disabled": nextDisabled
|
|
61105
60601
|
}, this.renderNext(nextPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Options, {
|
|
61106
60602
|
disabled: disabled,
|
|
@@ -61178,7 +60674,7 @@ Pagination.defaultProps = {
|
|
|
61178
60674
|
|
|
61179
60675
|
|
|
61180
60676
|
var MiniSelect = function MiniSelect(props) {
|
|
61181
|
-
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({
|
|
61182
60678
|
size: "small"
|
|
61183
60679
|
}, props));
|
|
61184
60680
|
};
|
|
@@ -61239,7 +60735,7 @@ var responsiveObserve = {
|
|
|
61239
60735
|
var listener = function listener(_ref) {
|
|
61240
60736
|
var matches = _ref.matches;
|
|
61241
60737
|
|
|
61242
|
-
_this2.dispatch(
|
|
60738
|
+
_this2.dispatch(extends_extends(extends_extends({}, screens), _defineProperty({}, screen, matches)));
|
|
61243
60739
|
};
|
|
61244
60740
|
|
|
61245
60741
|
var mql = window.matchMedia(matchMediaQuery);
|
|
@@ -61380,13 +60876,13 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61380
60876
|
var renderPagination = function renderPagination(contextLocale) {
|
|
61381
60877
|
var _classNames;
|
|
61382
60878
|
|
|
61383
|
-
var locale =
|
|
60879
|
+
var locale = extends_extends(extends_extends({}, contextLocale), customLocale);
|
|
61384
60880
|
|
|
61385
60881
|
var isSmall = size === 'small' || !!(xs && !size && restProps.responsive);
|
|
61386
60882
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
61387
60883
|
var extendedClassName = classnames_default()((_classNames = {
|
|
61388
60884
|
mini: isSmall
|
|
61389
|
-
},
|
|
60885
|
+
}, _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames, "minimalistic", minimalistic), _classNames), className); // 文本式分页
|
|
61390
60886
|
|
|
61391
60887
|
if (minimalistic) {
|
|
61392
60888
|
paginationProps.itemRender = function (_current, type, originalElement) {
|
|
@@ -61423,7 +60919,7 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61423
60919
|
paginationProps.showQuickJumper = showQuickJumper;
|
|
61424
60920
|
}
|
|
61425
60921
|
|
|
61426
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination,
|
|
60922
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination, extends_extends({}, paginationProps, getIconsProps(), restProps, {
|
|
61427
60923
|
prefixCls: prefixCls,
|
|
61428
60924
|
selectPrefixCls: selectPrefixCls,
|
|
61429
60925
|
className: extendedClassName,
|
|
@@ -61842,7 +61338,9 @@ function Action(_ref) {
|
|
|
61842
61338
|
isLogin = _ref.isLogin,
|
|
61843
61339
|
onSubscribe = _ref.onSubscribe,
|
|
61844
61340
|
setIsSubscribe = _ref.setIsSubscribe,
|
|
61845
|
-
status = _ref.status
|
|
61341
|
+
status = _ref.status,
|
|
61342
|
+
_ref$isMobile = _ref.isMobile,
|
|
61343
|
+
isMobile = _ref$isMobile === void 0 ? false : _ref$isMobile;
|
|
61846
61344
|
var liveId = data.live_id,
|
|
61847
61345
|
beginTime = data.begin_time;
|
|
61848
61346
|
|
|
@@ -61893,10 +61391,10 @@ function Action(_ref) {
|
|
|
61893
61391
|
setCurAction = _useState2[1];
|
|
61894
61392
|
|
|
61895
61393
|
var handleBtnClick = /*#__PURE__*/function () {
|
|
61896
|
-
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/
|
|
61394
|
+
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(e) {
|
|
61897
61395
|
var now, begin, _error$response, _error$response$data, _error$response2, _error$response2$data;
|
|
61898
61396
|
|
|
61899
|
-
return
|
|
61397
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
61900
61398
|
while (1) {
|
|
61901
61399
|
switch (_context.prev = _context.next) {
|
|
61902
61400
|
case 0:
|
|
@@ -61976,7 +61474,7 @@ function Action(_ref) {
|
|
|
61976
61474
|
}();
|
|
61977
61475
|
|
|
61978
61476
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61979
|
-
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)),
|
|
61980
61478
|
onClick: handleBtnClick
|
|
61981
61479
|
}, Actions[curAction]);
|
|
61982
61480
|
}
|
|
@@ -62165,6 +61663,7 @@ var TagName = {
|
|
|
62165
61663
|
};
|
|
62166
61664
|
function ListItem(_ref) {
|
|
62167
61665
|
var data = _ref.data,
|
|
61666
|
+
isMobile = _ref.isMobile,
|
|
62168
61667
|
themeName = _ref.themeName,
|
|
62169
61668
|
subscription = _ref.subscription,
|
|
62170
61669
|
onDetailClick = _ref.onDetailClick,
|
|
@@ -62176,6 +61675,7 @@ function ListItem(_ref) {
|
|
|
62176
61675
|
beginTime = data.begin_time,
|
|
62177
61676
|
coverUrl = data.cover_url,
|
|
62178
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");
|
|
62179
61679
|
|
|
62180
61680
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
62181
61681
|
_useState2 = ListItem_slicedToArray(_useState, 2),
|
|
@@ -62205,9 +61705,9 @@ function ListItem(_ref) {
|
|
|
62205
61705
|
setIsSubscribe = _useState4[1];
|
|
62206
61706
|
|
|
62207
61707
|
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
62208
|
-
ListItem_asyncToGenerator( /*#__PURE__*/
|
|
61708
|
+
ListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
62209
61709
|
var res;
|
|
62210
|
-
return
|
|
61710
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
62211
61711
|
while (1) {
|
|
62212
61712
|
switch (_context.prev = _context.next) {
|
|
62213
61713
|
case 0:
|
|
@@ -62228,8 +61728,8 @@ function ListItem(_ref) {
|
|
|
62228
61728
|
}, []);
|
|
62229
61729
|
|
|
62230
61730
|
var handleDetailClick = /*#__PURE__*/function () {
|
|
62231
|
-
var _ref3 = ListItem_asyncToGenerator( /*#__PURE__*/
|
|
62232
|
-
return
|
|
61731
|
+
var _ref3 = ListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
61732
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
62233
61733
|
while (1) {
|
|
62234
61734
|
switch (_context2.prev = _context2.next) {
|
|
62235
61735
|
case 0:
|
|
@@ -62262,6 +61762,65 @@ function ListItem(_ref) {
|
|
|
62262
61762
|
};
|
|
62263
61763
|
}();
|
|
62264
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
|
+
|
|
62265
61824
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62266
61825
|
className: classnames_default()(list_ListItem_index_module.container, themeName),
|
|
62267
61826
|
onClick: handleDetailClick
|
|
@@ -62281,7 +61840,7 @@ function ListItem(_ref) {
|
|
|
62281
61840
|
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62282
61841
|
src: video,
|
|
62283
61842
|
className: list_ListItem_index_module["time-icon"]
|
|
62284
|
-
}),
|
|
61843
|
+
}), timeLabel, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62285
61844
|
className: list_ListItem_index_module.like_sty
|
|
62286
61845
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62287
61846
|
className: list_ListItem_index_module.icon_bottom
|
|
@@ -62349,6 +61908,9 @@ var list_index_module_update = injectStylesIntoStyleTag_default()(list_index_mod
|
|
|
62349
61908
|
|
|
62350
61909
|
|
|
62351
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
|
+
|
|
62352
61914
|
|
|
62353
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); } }
|
|
62354
61916
|
|
|
@@ -62377,6 +61939,7 @@ function list_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
62377
61939
|
|
|
62378
61940
|
|
|
62379
61941
|
|
|
61942
|
+
|
|
62380
61943
|
var PageSize = 7;
|
|
62381
61944
|
var StatusEnum = [{
|
|
62382
61945
|
label: '全部',
|
|
@@ -62604,8 +62167,9 @@ function PublicLiveList(_ref) {
|
|
|
62604
62167
|
getList();
|
|
62605
62168
|
}, [page, status, refreshPage]);
|
|
62606
62169
|
var themeName = (0,cjs/* getXEduThemeName */.gV)();
|
|
62170
|
+
var isMobile = (0,util_env/* isInMobile */.Df)();
|
|
62607
62171
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62608
|
-
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))
|
|
62609
62173
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(tabs, {
|
|
62610
62174
|
accessKey: status,
|
|
62611
62175
|
onChange: handleTabChange
|
|
@@ -62621,6 +62185,7 @@ function PublicLiveList(_ref) {
|
|
|
62621
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) {
|
|
62622
62186
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(ListItem, {
|
|
62623
62187
|
themeName: themeName,
|
|
62188
|
+
isMobile: isMobile,
|
|
62624
62189
|
data: listItem,
|
|
62625
62190
|
key: listItem.live_id,
|
|
62626
62191
|
subscription: subscription,
|