@x-edu/live-player 0.0.13 → 0.0.14
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/.gem-mine +11 -11
- package/dist/XEduLivePlayer.common.js +464 -822
- package/dist/XEduLivePlayerPre.common.js +521 -879
- package/package.json +1 -1
- package/public/JsBridge.js +1602 -1602
- package/src/demo/List.jsx +16 -14
- package/src/detail/LiveStatus/index.jsx +186 -186
- package/src/detail/RecordVideo/index.jsx +148 -148
- package/src/detail/index.jsx +501 -501
- package/src/list/ListItem/Action/index.jsx +1 -1
- package/src/list/ListItem/index.jsx +3 -2
- package/src/list/ListItem/index.module.less +1 -1
- package/src/list/index.jsx +1 -1
|
@@ -2615,7 +2615,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2615
2615
|
|
|
2616
2616
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2617
2617
|
// Module
|
|
2618
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_2HydZ{padding:24px 0;margin:0 24px;display:flex;justify-content:flex-start;border-top:1px solid #eee;cursor:pointer}.index-module_container_2HydZ:first-child{border-top:none}.index-module_container_2HydZ .index-module_left_qKfes{margin-right:24px;border-radius:8px;position:relative}.index-module_container_2HydZ .index-module_left_qKfes .index-module_avatar_kO\\+gr{width:204px;height:120px;border-radius:4px;object-fit:cover}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag_6g0Vd{position:absolute;top:0;border-radius:4px 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{background-color:#1e62ec;padding:0 5px}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag1_1Mqse 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)}.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{display:flex;justify-content:space-between;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_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}", ""]);
|
|
2618
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_2HydZ{padding:24px 0;margin:0 24px;display:flex;justify-content:flex-start;border-top:1px solid #eee;cursor:pointer}.index-module_container_2HydZ:first-child{border-top:none}.index-module_container_2HydZ .index-module_left_qKfes{margin-right:24px;border-radius:8px;position:relative}.index-module_container_2HydZ .index-module_left_qKfes .index-module_avatar_kO\\+gr{width:204px;height:120px;border-radius:4px;object-fit:cover}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag_6g0Vd{position:absolute;top:0;border-radius:4px 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)}.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{display:flex;justify-content:space-between;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_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}", ""]);
|
|
2619
2619
|
// Exports
|
|
2620
2620
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2621
2621
|
"container": "index-module_container_2HydZ",
|
|
@@ -2624,6 +2624,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2624
2624
|
"tag": "index-module_tag_6g0Vd",
|
|
2625
2625
|
"tag0": "index-module_tag0_L-uaW",
|
|
2626
2626
|
"tag1": "index-module_tag1_1Mqse",
|
|
2627
|
+
"tag3": "index-module_tag3_8NDod",
|
|
2627
2628
|
"tag2": "index-module_tag2_sEPZA",
|
|
2628
2629
|
"right": "index-module_right_LjXan",
|
|
2629
2630
|
"right-top": "index-module_right-top_4Ry90",
|
|
@@ -25807,17 +25808,10 @@ module.exports = styleTagTransform;
|
|
|
25807
25808
|
|
|
25808
25809
|
/***/ }),
|
|
25809
25810
|
|
|
25810
|
-
/***/ 5273:
|
|
25811
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25812
|
-
|
|
25813
|
-
module.exports = __webpack_require__(5666);
|
|
25814
|
-
|
|
25815
|
-
/***/ }),
|
|
25816
|
-
|
|
25817
25811
|
/***/ 3006:
|
|
25818
25812
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25819
25813
|
|
|
25820
|
-
var _regeneratorRuntime = __webpack_require__(
|
|
25814
|
+
var _regeneratorRuntime = __webpack_require__(7757);
|
|
25821
25815
|
|
|
25822
25816
|
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); } }
|
|
25823
25817
|
|
|
@@ -27025,7 +27019,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAFgCAYAAABn
|
|
|
27025
27019
|
/***/ (function(module) {
|
|
27026
27020
|
|
|
27027
27021
|
"use strict";
|
|
27028
|
-
module.exports = JSON.parse('{"_args":[["axios@0.21.4","
|
|
27022
|
+
module.exports = JSON.parse('{"_args":[["axios@0.21.4","/Users/guoyanhao/Desktop/ND/x-cloud/x-edu-live-player"]],"_from":"axios@0.21.4","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha1-xnuQ3AVo5cHPKwuFjEO6KOLtpXU=","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.4","name":"axios","escapedName":"axios","rawSpec":"0.21.4","saveSpec":null,"fetchSpec":"0.21.4"},"_requiredBy":["/","/@gem-mine/request"],"_resolved":"http://registry.npm.sdp.nd/axios/download/axios-0.21.4.tgz","_spec":"0.21.4","_where":"/Users/guoyanhao/Desktop/ND/x-cloud/x-edu-live-player","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}');
|
|
27029
27023
|
|
|
27030
27024
|
/***/ })
|
|
27031
27025
|
|
|
@@ -29994,9 +29988,6 @@ var parseAdapter = function parseAdapter(option, dayjsClass) {
|
|
|
29994
29988
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
29995
29989
|
var regenerator = __webpack_require__(7757);
|
|
29996
29990
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
29997
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
29998
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
29999
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
30000
29991
|
// EXTERNAL MODULE: ./node_modules/axios/index.js
|
|
30001
29992
|
var axios = __webpack_require__(9669);
|
|
30002
29993
|
var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
|
|
@@ -30822,7 +30813,7 @@ function getServiceConfig(_x) {
|
|
|
30822
30813
|
}
|
|
30823
30814
|
|
|
30824
30815
|
function _getServiceConfig() {
|
|
30825
|
-
_getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/
|
|
30816
|
+
_getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(serviceName) {
|
|
30826
30817
|
var sdpAppId,
|
|
30827
30818
|
env,
|
|
30828
30819
|
key,
|
|
@@ -30834,7 +30825,7 @@ function _getServiceConfig() {
|
|
|
30834
30825
|
result,
|
|
30835
30826
|
ttl,
|
|
30836
30827
|
_args = arguments;
|
|
30837
|
-
return
|
|
30828
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
30838
30829
|
while (1) {
|
|
30839
30830
|
switch (_context.prev = _context.next) {
|
|
30840
30831
|
case 0:
|
|
@@ -31098,13 +31089,13 @@ function withOnce(fn) {
|
|
|
31098
31089
|
var lockPool = createLockPool();
|
|
31099
31090
|
|
|
31100
31091
|
var newFn = /*#__PURE__*/function () {
|
|
31101
|
-
var _ref3 = hof_asyncToGenerator( /*#__PURE__*/
|
|
31092
|
+
var _ref3 = hof_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
31102
31093
|
var key,
|
|
31103
31094
|
lock,
|
|
31104
31095
|
lockId,
|
|
31105
31096
|
result,
|
|
31106
31097
|
_args2 = arguments;
|
|
31107
|
-
return
|
|
31098
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
31108
31099
|
while (1) {
|
|
31109
31100
|
switch (_context2.prev = _context2.next) {
|
|
31110
31101
|
case 0:
|
|
@@ -31610,9 +31601,9 @@ function _getLiveAPICache() {
|
|
|
31610
31601
|
}
|
|
31611
31602
|
|
|
31612
31603
|
function _getLiveAPICache2() {
|
|
31613
|
-
_getLiveAPICache2 = live_asyncToGenerator( /*#__PURE__*/
|
|
31604
|
+
_getLiveAPICache2 = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee11() {
|
|
31614
31605
|
var url, result, serverTime;
|
|
31615
|
-
return
|
|
31606
|
+
return regenerator_default().wrap(function _callee11$(_context11) {
|
|
31616
31607
|
while (1) {
|
|
31617
31608
|
switch (_context11.prev = _context11.next) {
|
|
31618
31609
|
case 0:
|
|
@@ -31652,9 +31643,9 @@ function getOpenClassWithCache(_x11) {
|
|
|
31652
31643
|
} // 公开直播详情变化部分,失败要降级处理
|
|
31653
31644
|
|
|
31654
31645
|
function _getOpenClassWithCache() {
|
|
31655
|
-
_getOpenClassWithCache = live_asyncToGenerator( /*#__PURE__*/
|
|
31646
|
+
_getOpenClassWithCache = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee12(url) {
|
|
31656
31647
|
var fullUrl, cacheInfo, cacheData, result, serverTime;
|
|
31657
|
-
return
|
|
31648
|
+
return regenerator_default().wrap(function _callee12$(_context12) {
|
|
31658
31649
|
while (1) {
|
|
31659
31650
|
switch (_context12.prev = _context12.next) {
|
|
31660
31651
|
case 0:
|
|
@@ -31726,9 +31717,9 @@ function getOpenClassLiveSimple(_x12) {
|
|
|
31726
31717
|
} // 公开直播详情拆分成两个接口
|
|
31727
31718
|
|
|
31728
31719
|
function _getOpenClassLiveSimple() {
|
|
31729
|
-
_getOpenClassLiveSimple = live_asyncToGenerator( /*#__PURE__*/
|
|
31720
|
+
_getOpenClassLiveSimple = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee13(liveInfo) {
|
|
31730
31721
|
var url, data;
|
|
31731
|
-
return
|
|
31722
|
+
return regenerator_default().wrap(function _callee13$(_context13) {
|
|
31732
31723
|
while (1) {
|
|
31733
31724
|
switch (_context13.prev = _context13.next) {
|
|
31734
31725
|
case 0:
|
|
@@ -31767,9 +31758,9 @@ function getOpenClassLiveBase(_x13) {
|
|
|
31767
31758
|
} // 公开实时直播-发起直播-公共直播邀请页使用,适配为班级直播数据
|
|
31768
31759
|
|
|
31769
31760
|
function _getOpenClassLiveBase() {
|
|
31770
|
-
_getOpenClassLiveBase = live_asyncToGenerator( /*#__PURE__*/
|
|
31761
|
+
_getOpenClassLiveBase = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee14(id) {
|
|
31771
31762
|
var url, data, subType, dynamicInfo;
|
|
31772
|
-
return
|
|
31763
|
+
return regenerator_default().wrap(function _callee14$(_context14) {
|
|
31773
31764
|
while (1) {
|
|
31774
31765
|
switch (_context14.prev = _context14.next) {
|
|
31775
31766
|
case 0:
|
|
@@ -31849,9 +31840,9 @@ function getOpenClassLive(_x15) {
|
|
|
31849
31840
|
}
|
|
31850
31841
|
|
|
31851
31842
|
function _getOpenClassLive() {
|
|
31852
|
-
_getOpenClassLive = live_asyncToGenerator( /*#__PURE__*/
|
|
31843
|
+
_getOpenClassLive = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee16(id) {
|
|
31853
31844
|
var serviceConfig, liveCloseLogin, data;
|
|
31854
|
-
return
|
|
31845
|
+
return regenerator_default().wrap(function _callee16$(_context16) {
|
|
31855
31846
|
while (1) {
|
|
31856
31847
|
switch (_context16.prev = _context16.next) {
|
|
31857
31848
|
case 0:
|
|
@@ -31964,9 +31955,9 @@ function OpenLiveSearchFront(_x18) {
|
|
|
31964
31955
|
*/
|
|
31965
31956
|
|
|
31966
31957
|
function _OpenLiveSearchFront() {
|
|
31967
|
-
_OpenLiveSearchFront = live_asyncToGenerator( /*#__PURE__*/
|
|
31958
|
+
_OpenLiveSearchFront = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee19(_ref2) {
|
|
31968
31959
|
var status, scopeType, scopeId, offset, limit, url, response;
|
|
31969
|
-
return
|
|
31960
|
+
return regenerator_default().wrap(function _callee19$(_context19) {
|
|
31970
31961
|
while (1) {
|
|
31971
31962
|
switch (_context19.prev = _context19.next) {
|
|
31972
31963
|
case 0:
|
|
@@ -32017,9 +32008,9 @@ function getSubscription() {
|
|
|
32017
32008
|
*/
|
|
32018
32009
|
|
|
32019
32010
|
function _getSubscription() {
|
|
32020
|
-
_getSubscription = live_asyncToGenerator( /*#__PURE__*/
|
|
32011
|
+
_getSubscription = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee20() {
|
|
32021
32012
|
var url, response;
|
|
32022
|
-
return
|
|
32013
|
+
return regenerator_default().wrap(function _callee20$(_context20) {
|
|
32023
32014
|
while (1) {
|
|
32024
32015
|
switch (_context20.prev = _context20.next) {
|
|
32025
32016
|
case 0:
|
|
@@ -32052,9 +32043,9 @@ function openLiveSubscribe(_x19) {
|
|
|
32052
32043
|
}
|
|
32053
32044
|
|
|
32054
32045
|
function _openLiveSubscribe() {
|
|
32055
|
-
_openLiveSubscribe = live_asyncToGenerator( /*#__PURE__*/
|
|
32046
|
+
_openLiveSubscribe = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee21(_ref3) {
|
|
32056
32047
|
var liveId, url, response;
|
|
32057
|
-
return
|
|
32048
|
+
return regenerator_default().wrap(function _callee21$(_context21) {
|
|
32058
32049
|
while (1) {
|
|
32059
32050
|
switch (_context21.prev = _context21.next) {
|
|
32060
32051
|
case 0:
|
|
@@ -32096,9 +32087,9 @@ function imBroadcasts_asyncToGenerator(fn) { return function () { var self = thi
|
|
|
32096
32087
|
// https://wiki.doc.101.com/index.php?title=IM%E7%9B%B4%E6%92%ADv2#.5BGET.5D_.2Fapis.2Fbroadcasts.2F.7BroomId.7D_.E6.A0.B9.E6.8D.AEroomId_.E8.8E.B7.E5.8F.96.E7.9B.B4.E6.92.AD.E4.BF.A1.E6.81.AF
|
|
32097
32088
|
|
|
32098
32089
|
var getIMLiveInfo = /*#__PURE__*/function () {
|
|
32099
|
-
var _ref = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
32090
|
+
var _ref = imBroadcasts_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(roomId) {
|
|
32100
32091
|
var url, response;
|
|
32101
|
-
return
|
|
32092
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
32102
32093
|
while (1) {
|
|
32103
32094
|
switch (_context.prev = _context.next) {
|
|
32104
32095
|
case 0:
|
|
@@ -32131,10 +32122,10 @@ var getIMLiveInfo = /*#__PURE__*/function () {
|
|
|
32131
32122
|
*/
|
|
32132
32123
|
|
|
32133
32124
|
var getGuestIMLiveInfoStatic = /*#__PURE__*/function () {
|
|
32134
|
-
var _ref2 = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
32125
|
+
var _ref2 = imBroadcasts_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(bId) {
|
|
32135
32126
|
var _yield$imBroadcastsSt, data;
|
|
32136
32127
|
|
|
32137
|
-
return
|
|
32128
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
32138
32129
|
while (1) {
|
|
32139
32130
|
switch (_context2.prev = _context2.next) {
|
|
32140
32131
|
case 0:
|
|
@@ -32161,10 +32152,10 @@ var getGuestIMLiveInfoStatic = /*#__PURE__*/function () {
|
|
|
32161
32152
|
// 访客获取直播接口
|
|
32162
32153
|
|
|
32163
32154
|
var getGuestIMLiveInfo = /*#__PURE__*/function () {
|
|
32164
|
-
var _ref3 = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
32155
|
+
var _ref3 = imBroadcasts_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(bId) {
|
|
32165
32156
|
var _yield$imBroadcastsAP, data;
|
|
32166
32157
|
|
|
32167
|
-
return
|
|
32158
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
32168
32159
|
while (1) {
|
|
32169
32160
|
switch (_context3.prev = _context3.next) {
|
|
32170
32161
|
case 0:
|
|
@@ -32232,162 +32223,6 @@ var spin_style_update = injectStylesIntoStyleTag_default()(spin_style/* default
|
|
|
32232
32223
|
;// CONCATENATED MODULE: ./node_modules/@sdp.nd/fish/es/spin/style/index.js
|
|
32233
32224
|
|
|
32234
32225
|
|
|
32235
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
32236
|
-
function esm_extends_extends() {
|
|
32237
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
32238
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
32239
|
-
var source = arguments[i];
|
|
32240
|
-
|
|
32241
|
-
for (var key in source) {
|
|
32242
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32243
|
-
target[key] = source[key];
|
|
32244
|
-
}
|
|
32245
|
-
}
|
|
32246
|
-
}
|
|
32247
|
-
|
|
32248
|
-
return target;
|
|
32249
|
-
};
|
|
32250
|
-
|
|
32251
|
-
return esm_extends_extends.apply(this, arguments);
|
|
32252
|
-
}
|
|
32253
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
32254
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
32255
|
-
if (key in obj) {
|
|
32256
|
-
Object.defineProperty(obj, key, {
|
|
32257
|
-
value: value,
|
|
32258
|
-
enumerable: true,
|
|
32259
|
-
configurable: true,
|
|
32260
|
-
writable: true
|
|
32261
|
-
});
|
|
32262
|
-
} else {
|
|
32263
|
-
obj[key] = value;
|
|
32264
|
-
}
|
|
32265
|
-
|
|
32266
|
-
return obj;
|
|
32267
|
-
}
|
|
32268
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
32269
|
-
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
32270
|
-
if (!(instance instanceof Constructor)) {
|
|
32271
|
-
throw new TypeError("Cannot call a class as a function");
|
|
32272
|
-
}
|
|
32273
|
-
}
|
|
32274
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
32275
|
-
function createClass_defineProperties(target, props) {
|
|
32276
|
-
for (var i = 0; i < props.length; i++) {
|
|
32277
|
-
var descriptor = props[i];
|
|
32278
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32279
|
-
descriptor.configurable = true;
|
|
32280
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
32281
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
32282
|
-
}
|
|
32283
|
-
}
|
|
32284
|
-
|
|
32285
|
-
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
32286
|
-
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
32287
|
-
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
32288
|
-
return Constructor;
|
|
32289
|
-
}
|
|
32290
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
32291
|
-
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
32292
|
-
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
32293
|
-
o.__proto__ = p;
|
|
32294
|
-
return o;
|
|
32295
|
-
};
|
|
32296
|
-
|
|
32297
|
-
return setPrototypeOf_setPrototypeOf(o, p);
|
|
32298
|
-
}
|
|
32299
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
32300
|
-
|
|
32301
|
-
function inherits_inherits(subClass, superClass) {
|
|
32302
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
32303
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
32304
|
-
}
|
|
32305
|
-
|
|
32306
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
32307
|
-
constructor: {
|
|
32308
|
-
value: subClass,
|
|
32309
|
-
writable: true,
|
|
32310
|
-
configurable: true
|
|
32311
|
-
}
|
|
32312
|
-
});
|
|
32313
|
-
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
32314
|
-
}
|
|
32315
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
32316
|
-
function getPrototypeOf_getPrototypeOf(o) {
|
|
32317
|
-
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
32318
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
32319
|
-
};
|
|
32320
|
-
return getPrototypeOf_getPrototypeOf(o);
|
|
32321
|
-
}
|
|
32322
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
32323
|
-
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
32324
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
32325
|
-
if (Reflect.construct.sham) return false;
|
|
32326
|
-
if (typeof Proxy === "function") return true;
|
|
32327
|
-
|
|
32328
|
-
try {
|
|
32329
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
32330
|
-
return true;
|
|
32331
|
-
} catch (e) {
|
|
32332
|
-
return false;
|
|
32333
|
-
}
|
|
32334
|
-
}
|
|
32335
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
32336
|
-
function esm_typeof_typeof(obj) {
|
|
32337
|
-
"@babel/helpers - typeof";
|
|
32338
|
-
|
|
32339
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
32340
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
32341
|
-
return typeof obj;
|
|
32342
|
-
};
|
|
32343
|
-
} else {
|
|
32344
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
32345
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
32346
|
-
};
|
|
32347
|
-
}
|
|
32348
|
-
|
|
32349
|
-
return esm_typeof_typeof(obj);
|
|
32350
|
-
}
|
|
32351
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
32352
|
-
function assertThisInitialized_assertThisInitialized(self) {
|
|
32353
|
-
if (self === void 0) {
|
|
32354
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
32355
|
-
}
|
|
32356
|
-
|
|
32357
|
-
return self;
|
|
32358
|
-
}
|
|
32359
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
32360
|
-
|
|
32361
|
-
|
|
32362
|
-
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
32363
|
-
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
32364
|
-
return call;
|
|
32365
|
-
} else if (call !== void 0) {
|
|
32366
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
32367
|
-
}
|
|
32368
|
-
|
|
32369
|
-
return assertThisInitialized_assertThisInitialized(self);
|
|
32370
|
-
}
|
|
32371
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
32372
|
-
|
|
32373
|
-
|
|
32374
|
-
|
|
32375
|
-
function createSuper_createSuper(Derived) {
|
|
32376
|
-
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
32377
|
-
return function _createSuperInternal() {
|
|
32378
|
-
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
32379
|
-
result;
|
|
32380
|
-
|
|
32381
|
-
if (hasNativeReflectConstruct) {
|
|
32382
|
-
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
32383
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
32384
|
-
} else {
|
|
32385
|
-
result = Super.apply(this, arguments);
|
|
32386
|
-
}
|
|
32387
|
-
|
|
32388
|
-
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
32389
|
-
};
|
|
32390
|
-
}
|
|
32391
32226
|
// EXTERNAL MODULE: ./node_modules/lodash/debounce.js
|
|
32392
32227
|
var debounce = __webpack_require__(3279);
|
|
32393
32228
|
var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce);
|
|
@@ -32496,14 +32331,14 @@ function shouldDelay(spinning, delay) {
|
|
|
32496
32331
|
}
|
|
32497
32332
|
|
|
32498
32333
|
var Spin = /*#__PURE__*/function (_React$Component) {
|
|
32499
|
-
|
|
32334
|
+
_inherits(Spin, _React$Component);
|
|
32500
32335
|
|
|
32501
|
-
var _super =
|
|
32336
|
+
var _super = _createSuper(Spin);
|
|
32502
32337
|
|
|
32503
32338
|
function Spin(props) {
|
|
32504
32339
|
var _this;
|
|
32505
32340
|
|
|
32506
|
-
|
|
32341
|
+
_classCallCheck(this, Spin);
|
|
32507
32342
|
|
|
32508
32343
|
_this = _super.call(this, props);
|
|
32509
32344
|
|
|
@@ -32546,10 +32381,10 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
32546
32381
|
|
|
32547
32382
|
var spinning = _this.state.spinning;
|
|
32548
32383
|
var prefixCls = getPrefixCls('spin', customizePrefixCls);
|
|
32549
|
-
var spinClassName = classnames_default()(prefixCls, (_classNames = {},
|
|
32384
|
+
var spinClassName = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-sm"), size === 'small'), _defineProperty(_classNames, "".concat(prefixCls, "-lg"), size === 'large'), _defineProperty(_classNames, "".concat(prefixCls, "-spinning"), spinning), _defineProperty(_classNames, "".concat(prefixCls, "-show-text"), !!tip), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className); // fix https://fb.me/react-unknown-prop
|
|
32550
32385
|
|
|
32551
32386
|
var divProps = omit(restProps, ['spinning', 'delay', 'indicator']);
|
|
32552
|
-
var spinElement = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
32387
|
+
var spinElement = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, divProps, {
|
|
32553
32388
|
style: style,
|
|
32554
32389
|
className: spinClassName
|
|
32555
32390
|
}), renderIndicator(prefixCls, _this.props), tip ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -32557,8 +32392,8 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
32557
32392
|
}, tip) : null);
|
|
32558
32393
|
|
|
32559
32394
|
if (_this.isNestedPattern()) {
|
|
32560
|
-
var containerClassName = classnames_default()("".concat(prefixCls, "-container"),
|
|
32561
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
32395
|
+
var containerClassName = classnames_default()("".concat(prefixCls, "-container"), _defineProperty({}, "".concat(prefixCls, "-blur"), spinning));
|
|
32396
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, divProps, {
|
|
32562
32397
|
className: classnames_default()("".concat(prefixCls, "-nested-loading"), wrapperClassName)
|
|
32563
32398
|
}), spinning && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
32564
32399
|
key: "loading"
|
|
@@ -32584,7 +32419,7 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
32584
32419
|
return _this;
|
|
32585
32420
|
}
|
|
32586
32421
|
|
|
32587
|
-
|
|
32422
|
+
_createClass(Spin, [{
|
|
32588
32423
|
key: "componentDidMount",
|
|
32589
32424
|
value: function componentDidMount() {
|
|
32590
32425
|
this.updateSpinning();
|
|
@@ -32730,8 +32565,8 @@ var ImPush = /*#__PURE__*/function () {
|
|
|
32730
32565
|
push_createClass(ImPush, [{
|
|
32731
32566
|
key: "init",
|
|
32732
32567
|
value: function () {
|
|
32733
|
-
var _init = push_asyncToGenerator( /*#__PURE__*/
|
|
32734
|
-
return
|
|
32568
|
+
var _init = push_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
32569
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
32735
32570
|
while (1) {
|
|
32736
32571
|
switch (_context.prev = _context.next) {
|
|
32737
32572
|
case 0:
|
|
@@ -32937,14 +32772,14 @@ var videoCdnPrefix = '//gcdncs.101.com/v0.1/static/share/fish/videoplayer';
|
|
|
32937
32772
|
var defaultVideoUrl = getVideoUrl(videoCdnPrefix, video_version);
|
|
32938
32773
|
|
|
32939
32774
|
var Video = /*#__PURE__*/function (_React$Component) {
|
|
32940
|
-
|
|
32775
|
+
_inherits(Video, _React$Component);
|
|
32941
32776
|
|
|
32942
|
-
var _super =
|
|
32777
|
+
var _super = _createSuper(Video);
|
|
32943
32778
|
|
|
32944
32779
|
function Video() {
|
|
32945
32780
|
var _this;
|
|
32946
32781
|
|
|
32947
|
-
|
|
32782
|
+
_classCallCheck(this, Video);
|
|
32948
32783
|
|
|
32949
32784
|
_this = _super.apply(this, arguments);
|
|
32950
32785
|
_this.videoUrl = {}; // eslint-disable-next-line class-methods-use-this
|
|
@@ -32957,12 +32792,12 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
32957
32792
|
csOriginUrl = getVideoUrl(cdnPrefix, video_version);
|
|
32958
32793
|
}
|
|
32959
32794
|
|
|
32960
|
-
return
|
|
32795
|
+
return extends_extends(extends_extends({}, csOriginUrl), Video.url);
|
|
32961
32796
|
};
|
|
32962
32797
|
|
|
32963
32798
|
_this.loadVideoPlayer = function () {
|
|
32964
|
-
return __awaiter(
|
|
32965
|
-
return
|
|
32799
|
+
return __awaiter(_assertThisInitialized(_this), void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
32800
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
32966
32801
|
while (1) {
|
|
32967
32802
|
switch (_context.prev = _context.next) {
|
|
32968
32803
|
case 0:
|
|
@@ -33012,7 +32847,7 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
33012
32847
|
return _this;
|
|
33013
32848
|
}
|
|
33014
32849
|
|
|
33015
|
-
|
|
32850
|
+
_createClass(Video, [{
|
|
33016
32851
|
key: "componentDidMount",
|
|
33017
32852
|
value: function componentDidMount() {
|
|
33018
32853
|
var _this2 = this;
|
|
@@ -33356,9 +33191,9 @@ function isSourceReady(_x) {
|
|
|
33356
33191
|
}
|
|
33357
33192
|
|
|
33358
33193
|
function _isSourceReady() {
|
|
33359
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33194
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(liveInfo) {
|
|
33360
33195
|
var newLiveInfo;
|
|
33361
|
-
return
|
|
33196
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33362
33197
|
while (1) {
|
|
33363
33198
|
switch (_context.prev = _context.next) {
|
|
33364
33199
|
case 0:
|
|
@@ -33549,8 +33384,8 @@ function usePullSource_isSourceReady(_x) {
|
|
|
33549
33384
|
}
|
|
33550
33385
|
|
|
33551
33386
|
function hook_usePullSource_isSourceReady() {
|
|
33552
|
-
hook_usePullSource_isSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33553
|
-
return
|
|
33387
|
+
hook_usePullSource_isSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(url) {
|
|
33388
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33554
33389
|
while (1) {
|
|
33555
33390
|
switch (_context.prev = _context.next) {
|
|
33556
33391
|
case 0:
|
|
@@ -34057,8 +33892,8 @@ function AliPlayer(_ref) {
|
|
|
34057
33892
|
var aliPlayer;
|
|
34058
33893
|
|
|
34059
33894
|
var init = /*#__PURE__*/function () {
|
|
34060
|
-
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/
|
|
34061
|
-
return
|
|
33895
|
+
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
33896
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
34062
33897
|
while (1) {
|
|
34063
33898
|
switch (_context.prev = _context.next) {
|
|
34064
33899
|
case 0:
|
|
@@ -34217,26 +34052,6 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
34217
34052
|
|
|
34218
34053
|
return _arr;
|
|
34219
34054
|
}
|
|
34220
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34221
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34222
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
34223
|
-
|
|
34224
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34225
|
-
arr2[i] = arr[i];
|
|
34226
|
-
}
|
|
34227
|
-
|
|
34228
|
-
return arr2;
|
|
34229
|
-
}
|
|
34230
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34231
|
-
|
|
34232
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34233
|
-
if (!o) return;
|
|
34234
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34235
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34236
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34237
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34238
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34239
|
-
}
|
|
34240
34055
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34241
34056
|
function nonIterableRest_nonIterableRest() {
|
|
34242
34057
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34247,7 +34062,7 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34247
34062
|
|
|
34248
34063
|
|
|
34249
34064
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34250
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
34065
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34251
34066
|
}
|
|
34252
34067
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34253
34068
|
var raf = function raf(callback) {
|
|
@@ -34474,27 +34289,6 @@ var cacheStyle = {};
|
|
|
34474
34289
|
}
|
|
34475
34290
|
}
|
|
34476
34291
|
});
|
|
34477
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34478
|
-
|
|
34479
|
-
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34480
|
-
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34481
|
-
}
|
|
34482
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34483
|
-
function iterableToArray_iterableToArray(iter) {
|
|
34484
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34485
|
-
}
|
|
34486
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34487
|
-
function nonIterableSpread_nonIterableSpread() {
|
|
34488
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34489
|
-
}
|
|
34490
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34491
|
-
|
|
34492
|
-
|
|
34493
|
-
|
|
34494
|
-
|
|
34495
|
-
function toConsumableArray_toConsumableArray(arr) {
|
|
34496
|
-
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34497
|
-
}
|
|
34498
34292
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34499
34293
|
|
|
34500
34294
|
|
|
@@ -34511,7 +34305,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34511
34305
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34512
34306
|
var _this = this;
|
|
34513
34307
|
|
|
34514
|
-
|
|
34308
|
+
_classCallCheck(this, ScrollLocker);
|
|
34515
34309
|
|
|
34516
34310
|
this.lockTarget = void 0;
|
|
34517
34311
|
this.options = void 0;
|
|
@@ -34559,7 +34353,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34559
34353
|
var options = _ref3.options;
|
|
34560
34354
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34561
34355
|
})) {
|
|
34562
|
-
locks = [].concat(
|
|
34356
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34563
34357
|
target: _this.lockTarget,
|
|
34564
34358
|
options: _this.options
|
|
34565
34359
|
}]);
|
|
@@ -34597,7 +34391,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34597
34391
|
container.className = addClassName.trim();
|
|
34598
34392
|
}
|
|
34599
34393
|
|
|
34600
|
-
locks = [].concat(
|
|
34394
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34601
34395
|
target: _this.lockTarget,
|
|
34602
34396
|
options: _this.options
|
|
34603
34397
|
}]);
|
|
@@ -34681,7 +34475,7 @@ var getParent = function getParent(getContainer) {
|
|
|
34681
34475
|
return getContainer();
|
|
34682
34476
|
}
|
|
34683
34477
|
|
|
34684
|
-
if (
|
|
34478
|
+
if (typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
34685
34479
|
return getContainer;
|
|
34686
34480
|
}
|
|
34687
34481
|
}
|
|
@@ -34690,14 +34484,14 @@ var getParent = function getParent(getContainer) {
|
|
|
34690
34484
|
};
|
|
34691
34485
|
|
|
34692
34486
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
34693
|
-
|
|
34487
|
+
_inherits(PortalWrapper, _React$Component);
|
|
34694
34488
|
|
|
34695
|
-
var _super =
|
|
34489
|
+
var _super = _createSuper(PortalWrapper);
|
|
34696
34490
|
|
|
34697
34491
|
function PortalWrapper(props) {
|
|
34698
34492
|
var _this;
|
|
34699
34493
|
|
|
34700
|
-
|
|
34494
|
+
_classCallCheck(this, PortalWrapper);
|
|
34701
34495
|
|
|
34702
34496
|
_this = _super.call(this, props);
|
|
34703
34497
|
_this.container = void 0;
|
|
@@ -34817,7 +34611,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34817
34611
|
return _this;
|
|
34818
34612
|
}
|
|
34819
34613
|
|
|
34820
|
-
|
|
34614
|
+
_createClass(PortalWrapper, [{
|
|
34821
34615
|
key: "componentDidMount",
|
|
34822
34616
|
value: function componentDidMount() {
|
|
34823
34617
|
var _this2 = this;
|
|
@@ -34885,46 +34679,6 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34885
34679
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
34886
34680
|
|
|
34887
34681
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
34888
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
34889
|
-
|
|
34890
|
-
|
|
34891
|
-
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
34892
|
-
var keys = Object.keys(object);
|
|
34893
|
-
|
|
34894
|
-
if (Object.getOwnPropertySymbols) {
|
|
34895
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
34896
|
-
|
|
34897
|
-
if (enumerableOnly) {
|
|
34898
|
-
symbols = symbols.filter(function (sym) {
|
|
34899
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
34900
|
-
});
|
|
34901
|
-
}
|
|
34902
|
-
|
|
34903
|
-
keys.push.apply(keys, symbols);
|
|
34904
|
-
}
|
|
34905
|
-
|
|
34906
|
-
return keys;
|
|
34907
|
-
}
|
|
34908
|
-
|
|
34909
|
-
function objectSpread2_objectSpread2(target) {
|
|
34910
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
34911
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
34912
|
-
|
|
34913
|
-
if (i % 2) {
|
|
34914
|
-
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
34915
|
-
defineProperty_defineProperty(target, key, source[key]);
|
|
34916
|
-
});
|
|
34917
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
34918
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
34919
|
-
} else {
|
|
34920
|
-
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
34921
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
34922
|
-
});
|
|
34923
|
-
}
|
|
34924
|
-
}
|
|
34925
|
-
|
|
34926
|
-
return target;
|
|
34927
|
-
}
|
|
34928
34682
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
34929
34683
|
/**
|
|
34930
34684
|
* @ignore
|
|
@@ -35591,7 +35345,7 @@ function pickAttrs(props) {
|
|
|
35591
35345
|
aria: true
|
|
35592
35346
|
};
|
|
35593
35347
|
} else {
|
|
35594
|
-
mergedConfig =
|
|
35348
|
+
mergedConfig = _objectSpread2({}, ariaOnly);
|
|
35595
35349
|
}
|
|
35596
35350
|
|
|
35597
35351
|
var attrs = {};
|
|
@@ -35624,7 +35378,7 @@ var react_is = __webpack_require__(9864);
|
|
|
35624
35378
|
function fillRef(ref, node) {
|
|
35625
35379
|
if (typeof ref === 'function') {
|
|
35626
35380
|
ref(node);
|
|
35627
|
-
} else if (
|
|
35381
|
+
} else if (typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
35628
35382
|
ref.current = node;
|
|
35629
35383
|
}
|
|
35630
35384
|
}
|
|
@@ -35734,7 +35488,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
35734
35488
|
function getTransitionName(transitionName, transitionType) {
|
|
35735
35489
|
if (!transitionName) return null;
|
|
35736
35490
|
|
|
35737
|
-
if (
|
|
35491
|
+
if (typeof_typeof(transitionName) === 'object') {
|
|
35738
35492
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
35739
35493
|
return match[1].toUpperCase();
|
|
35740
35494
|
});
|
|
@@ -36027,13 +35781,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36027
35781
|
|
|
36028
35782
|
switch (status) {
|
|
36029
35783
|
case 'appear':
|
|
36030
|
-
return _ref2 = {},
|
|
35784
|
+
return _ref2 = {}, _defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), _defineProperty(_ref2, STEP_START, onAppearStart), _defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
36031
35785
|
|
|
36032
35786
|
case 'enter':
|
|
36033
|
-
return _ref3 = {},
|
|
35787
|
+
return _ref3 = {}, _defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), _defineProperty(_ref3, STEP_START, onEnterStart), _defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
36034
35788
|
|
|
36035
35789
|
case 'leave':
|
|
36036
|
-
return _ref4 = {},
|
|
35790
|
+
return _ref4 = {}, _defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), _defineProperty(_ref4, STEP_START, onLeaveStart), _defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
36037
35791
|
|
|
36038
35792
|
default:
|
|
36039
35793
|
return {};
|
|
@@ -36141,7 +35895,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36141
35895
|
var mergedStyle = style;
|
|
36142
35896
|
|
|
36143
35897
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
36144
|
-
mergedStyle =
|
|
35898
|
+
mergedStyle = _objectSpread2({
|
|
36145
35899
|
transition: 'none'
|
|
36146
35900
|
}, mergedStyle);
|
|
36147
35901
|
}
|
|
@@ -36156,17 +35910,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36156
35910
|
|
|
36157
35911
|
|
|
36158
35912
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
36159
|
-
|
|
35913
|
+
_inherits(DomWrapper, _React$Component);
|
|
36160
35914
|
|
|
36161
|
-
var _super =
|
|
35915
|
+
var _super = _createSuper(DomWrapper);
|
|
36162
35916
|
|
|
36163
35917
|
function DomWrapper() {
|
|
36164
|
-
|
|
35918
|
+
_classCallCheck(this, DomWrapper);
|
|
36165
35919
|
|
|
36166
35920
|
return _super.apply(this, arguments);
|
|
36167
35921
|
}
|
|
36168
35922
|
|
|
36169
|
-
|
|
35923
|
+
_createClass(DomWrapper, [{
|
|
36170
35924
|
key: "render",
|
|
36171
35925
|
value: function render() {
|
|
36172
35926
|
return this.props.children;
|
|
@@ -36202,7 +35956,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
36202
35956
|
function genCSSMotion(config) {
|
|
36203
35957
|
var transitionSupport = config;
|
|
36204
35958
|
|
|
36205
|
-
if (
|
|
35959
|
+
if (typeof_typeof(config) === 'object') {
|
|
36206
35960
|
transitionSupport = config.transitionSupport;
|
|
36207
35961
|
}
|
|
36208
35962
|
|
|
@@ -36260,7 +36014,7 @@ function genCSSMotion(config) {
|
|
|
36260
36014
|
|
|
36261
36015
|
var motionChildren;
|
|
36262
36016
|
|
|
36263
|
-
var mergedProps =
|
|
36017
|
+
var mergedProps = _objectSpread2(_objectSpread2({}, eventProps), {}, {
|
|
36264
36018
|
visible: visible
|
|
36265
36019
|
});
|
|
36266
36020
|
|
|
@@ -36270,13 +36024,13 @@ function genCSSMotion(config) {
|
|
|
36270
36024
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
36271
36025
|
// Stable children
|
|
36272
36026
|
if (mergedVisible) {
|
|
36273
|
-
motionChildren = children(
|
|
36027
|
+
motionChildren = children(_objectSpread2({}, mergedProps), setNodeRef);
|
|
36274
36028
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
36275
|
-
motionChildren = children(
|
|
36029
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36276
36030
|
className: leavedClassName
|
|
36277
36031
|
}), setNodeRef);
|
|
36278
36032
|
} else if (forceRender) {
|
|
36279
|
-
motionChildren = children(
|
|
36033
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36280
36034
|
style: {
|
|
36281
36035
|
display: 'none'
|
|
36282
36036
|
}
|
|
@@ -36298,8 +36052,8 @@ function genCSSMotion(config) {
|
|
|
36298
36052
|
statusSuffix = 'start';
|
|
36299
36053
|
}
|
|
36300
36054
|
|
|
36301
|
-
motionChildren = children(
|
|
36302
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
36055
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36056
|
+
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {}, _defineProperty(_classNames, getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix)), statusSuffix), _defineProperty(_classNames, motionName, typeof motionName === 'string'), _classNames)),
|
|
36303
36057
|
style: statusStyle
|
|
36304
36058
|
}), setNodeRef);
|
|
36305
36059
|
}
|
|
@@ -36312,41 +36066,6 @@ function genCSSMotion(config) {
|
|
|
36312
36066
|
return CSSMotion;
|
|
36313
36067
|
}
|
|
36314
36068
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36315
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36316
|
-
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36317
|
-
if (source == null) return {};
|
|
36318
|
-
var target = {};
|
|
36319
|
-
var sourceKeys = Object.keys(source);
|
|
36320
|
-
var key, i;
|
|
36321
|
-
|
|
36322
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
36323
|
-
key = sourceKeys[i];
|
|
36324
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36325
|
-
target[key] = source[key];
|
|
36326
|
-
}
|
|
36327
|
-
|
|
36328
|
-
return target;
|
|
36329
|
-
}
|
|
36330
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36331
|
-
|
|
36332
|
-
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36333
|
-
if (source == null) return {};
|
|
36334
|
-
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36335
|
-
var key, i;
|
|
36336
|
-
|
|
36337
|
-
if (Object.getOwnPropertySymbols) {
|
|
36338
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36339
|
-
|
|
36340
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36341
|
-
key = sourceSymbolKeys[i];
|
|
36342
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36343
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36344
|
-
target[key] = source[key];
|
|
36345
|
-
}
|
|
36346
|
-
}
|
|
36347
|
-
|
|
36348
|
-
return target;
|
|
36349
|
-
}
|
|
36350
36069
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
36351
36070
|
|
|
36352
36071
|
|
|
@@ -36357,7 +36076,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
36357
36076
|
function wrapKeyToObject(key) {
|
|
36358
36077
|
var keyObj;
|
|
36359
36078
|
|
|
36360
|
-
if (key &&
|
|
36079
|
+
if (key && typeof_typeof(key) === 'object' && 'key' in key) {
|
|
36361
36080
|
keyObj = key;
|
|
36362
36081
|
} else {
|
|
36363
36082
|
keyObj = {
|
|
@@ -36365,7 +36084,7 @@ function wrapKeyToObject(key) {
|
|
|
36365
36084
|
};
|
|
36366
36085
|
}
|
|
36367
36086
|
|
|
36368
|
-
return
|
|
36087
|
+
return _objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36369
36088
|
key: String(keyObj.key)
|
|
36370
36089
|
});
|
|
36371
36090
|
}
|
|
@@ -36392,14 +36111,14 @@ function diffKeys() {
|
|
|
36392
36111
|
// New added keys should add before current key
|
|
36393
36112
|
if (currentIndex < i) {
|
|
36394
36113
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
36395
|
-
return
|
|
36114
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36396
36115
|
status: STATUS_ADD
|
|
36397
36116
|
});
|
|
36398
36117
|
}));
|
|
36399
36118
|
currentIndex = i;
|
|
36400
36119
|
}
|
|
36401
36120
|
|
|
36402
|
-
list.push(
|
|
36121
|
+
list.push(_objectSpread2(_objectSpread2({}, currentKeyObj), {}, {
|
|
36403
36122
|
status: STATUS_KEEP
|
|
36404
36123
|
}));
|
|
36405
36124
|
currentIndex += 1;
|
|
@@ -36410,7 +36129,7 @@ function diffKeys() {
|
|
|
36410
36129
|
|
|
36411
36130
|
|
|
36412
36131
|
if (!hit) {
|
|
36413
|
-
list.push(
|
|
36132
|
+
list.push(_objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36414
36133
|
status: STATUS_REMOVE
|
|
36415
36134
|
}));
|
|
36416
36135
|
}
|
|
@@ -36418,7 +36137,7 @@ function diffKeys() {
|
|
|
36418
36137
|
|
|
36419
36138
|
if (currentIndex < currentLen) {
|
|
36420
36139
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36421
|
-
return
|
|
36140
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36422
36141
|
status: STATUS_ADD
|
|
36423
36142
|
});
|
|
36424
36143
|
}));
|
|
@@ -36479,14 +36198,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36479
36198
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36480
36199
|
|
|
36481
36200
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36482
|
-
|
|
36201
|
+
_inherits(CSSMotionList, _React$Component);
|
|
36483
36202
|
|
|
36484
|
-
var _super =
|
|
36203
|
+
var _super = _createSuper(CSSMotionList);
|
|
36485
36204
|
|
|
36486
36205
|
function CSSMotionList() {
|
|
36487
36206
|
var _this;
|
|
36488
36207
|
|
|
36489
|
-
|
|
36208
|
+
_classCallCheck(this, CSSMotionList);
|
|
36490
36209
|
|
|
36491
36210
|
_this = _super.apply(this, arguments);
|
|
36492
36211
|
_this.state = {
|
|
@@ -36499,7 +36218,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36499
36218
|
return {
|
|
36500
36219
|
keyEntities: keyEntities.map(function (entity) {
|
|
36501
36220
|
if (entity.key !== removeKey) return entity;
|
|
36502
|
-
return
|
|
36221
|
+
return _objectSpread2(_objectSpread2({}, entity), {}, {
|
|
36503
36222
|
status: STATUS_REMOVED
|
|
36504
36223
|
});
|
|
36505
36224
|
})
|
|
@@ -36510,7 +36229,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36510
36229
|
return _this;
|
|
36511
36230
|
}
|
|
36512
36231
|
|
|
36513
|
-
|
|
36232
|
+
_createClass(CSSMotionList, [{
|
|
36514
36233
|
key: "render",
|
|
36515
36234
|
value: function render() {
|
|
36516
36235
|
var _this2 = this;
|
|
@@ -36521,7 +36240,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36521
36240
|
component = _this$props.component,
|
|
36522
36241
|
children = _this$props.children,
|
|
36523
36242
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36524
|
-
restProps =
|
|
36243
|
+
restProps = _objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36525
36244
|
|
|
36526
36245
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36527
36246
|
var motionProps = {};
|
|
@@ -36532,10 +36251,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36532
36251
|
delete restProps.keys;
|
|
36533
36252
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36534
36253
|
var status = _ref2.status,
|
|
36535
|
-
eventProps =
|
|
36254
|
+
eventProps = _objectWithoutProperties(_ref2, ["status"]);
|
|
36536
36255
|
|
|
36537
36256
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36538
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
36257
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, extends_extends({}, motionProps, {
|
|
36539
36258
|
key: eventProps.key,
|
|
36540
36259
|
visible: visible,
|
|
36541
36260
|
eventProps: eventProps,
|
|
@@ -36609,8 +36328,8 @@ function Mask(props) {
|
|
|
36609
36328
|
}, function (_ref) {
|
|
36610
36329
|
var motionClassName = _ref.className,
|
|
36611
36330
|
motionStyle = _ref.style;
|
|
36612
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36613
|
-
style:
|
|
36331
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36332
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), style),
|
|
36614
36333
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36615
36334
|
}, maskProps));
|
|
36616
36335
|
});
|
|
@@ -36793,7 +36512,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36793
36512
|
|
|
36794
36513
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
36795
36514
|
className: "".concat(prefixCls, "-content")
|
|
36796
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36515
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36797
36516
|
className: "".concat(prefixCls, "-body"),
|
|
36798
36517
|
style: bodyStyle
|
|
36799
36518
|
}, bodyProps), children), footerNode);
|
|
@@ -36813,7 +36532,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36813
36532
|
key: "dialog-element",
|
|
36814
36533
|
role: "document",
|
|
36815
36534
|
ref: motionRef,
|
|
36816
|
-
style:
|
|
36535
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionStyle), style), contentStyle),
|
|
36817
36536
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
36818
36537
|
onMouseDown: onMouseDown,
|
|
36819
36538
|
onMouseUp: onMouseUp
|
|
@@ -36995,7 +36714,7 @@ function Dialog(props) {
|
|
|
36995
36714
|
return function () {};
|
|
36996
36715
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
36997
36716
|
|
|
36998
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36717
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36999
36718
|
className: "".concat(prefixCls, "-root")
|
|
37000
36719
|
}, pickAttrs(props, {
|
|
37001
36720
|
data: true
|
|
@@ -37003,11 +36722,11 @@ function Dialog(props) {
|
|
|
37003
36722
|
prefixCls: prefixCls,
|
|
37004
36723
|
visible: mask && visible,
|
|
37005
36724
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
37006
|
-
style:
|
|
36725
|
+
style: _objectSpread2({
|
|
37007
36726
|
zIndex: zIndex
|
|
37008
36727
|
}, maskStyle),
|
|
37009
36728
|
maskProps: maskProps
|
|
37010
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36729
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37011
36730
|
tabIndex: -1,
|
|
37012
36731
|
onKeyDown: onWrapperKeyDown,
|
|
37013
36732
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -37015,12 +36734,12 @@ function Dialog(props) {
|
|
|
37015
36734
|
onClick: onWrapperClick,
|
|
37016
36735
|
role: "dialog",
|
|
37017
36736
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
37018
|
-
style:
|
|
36737
|
+
style: _objectSpread2(_objectSpread2({
|
|
37019
36738
|
zIndex: zIndex
|
|
37020
36739
|
}, wrapStyle), {}, {
|
|
37021
36740
|
display: !animatedVisible ? 'none' : null
|
|
37022
36741
|
})
|
|
37023
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
36742
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, extends_extends({}, props, {
|
|
37024
36743
|
onMouseDown: onContentMouseDown,
|
|
37025
36744
|
onMouseUp: onContentMouseUp,
|
|
37026
36745
|
ref: contentRef,
|
|
@@ -37068,7 +36787,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37068
36787
|
}, [visible]); // 渲染在当前 dom 里;
|
|
37069
36788
|
|
|
37070
36789
|
if (getContainer === false) {
|
|
37071
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
36790
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
37072
36791
|
getOpenCount: function getOpenCount() {
|
|
37073
36792
|
return 2;
|
|
37074
36793
|
} // 不对 body 做任何操作。。
|
|
@@ -37086,7 +36805,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37086
36805
|
forceRender: forceRender,
|
|
37087
36806
|
getContainer: getContainer
|
|
37088
36807
|
}, function (childProps) {
|
|
37089
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
36808
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
37090
36809
|
destroyOnClose: destroyOnClose,
|
|
37091
36810
|
afterClose: function afterClose() {
|
|
37092
36811
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -37121,8 +36840,8 @@ function getConfirmLocale() {
|
|
|
37121
36840
|
|
|
37122
36841
|
|
|
37123
36842
|
|
|
37124
|
-
var UnreachableException = /*#__PURE__*/
|
|
37125
|
-
|
|
36843
|
+
var UnreachableException = /*#__PURE__*/_createClass(function UnreachableException(value) {
|
|
36844
|
+
_classCallCheck(this, UnreachableException);
|
|
37126
36845
|
|
|
37127
36846
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
37128
36847
|
});
|
|
@@ -37185,8 +36904,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
37185
36904
|
console.warn(new UnreachableException(size).error);
|
|
37186
36905
|
}
|
|
37187
36906
|
|
|
37188
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37189
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36907
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
36908
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, others, {
|
|
37190
36909
|
className: classes
|
|
37191
36910
|
}));
|
|
37192
36911
|
});
|
|
@@ -37257,14 +36976,14 @@ function isNotGrey(color) {
|
|
|
37257
36976
|
}
|
|
37258
36977
|
|
|
37259
36978
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
37260
|
-
|
|
36979
|
+
_inherits(Wave, _React$Component);
|
|
37261
36980
|
|
|
37262
|
-
var _super =
|
|
36981
|
+
var _super = _createSuper(Wave);
|
|
37263
36982
|
|
|
37264
36983
|
function Wave() {
|
|
37265
36984
|
var _this;
|
|
37266
36985
|
|
|
37267
|
-
|
|
36986
|
+
_classCallCheck(this, Wave);
|
|
37268
36987
|
|
|
37269
36988
|
_this = _super.apply(this, arguments);
|
|
37270
36989
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -37284,7 +37003,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37284
37003
|
|
|
37285
37004
|
_this.extraNode = document.createElement('div');
|
|
37286
37005
|
|
|
37287
|
-
var _assertThisInitialize =
|
|
37006
|
+
var _assertThisInitialize = _assertThisInitialized(_this),
|
|
37288
37007
|
extraNode = _assertThisInitialize.extraNode;
|
|
37289
37008
|
|
|
37290
37009
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -37391,7 +37110,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37391
37110
|
return _this;
|
|
37392
37111
|
}
|
|
37393
37112
|
|
|
37394
|
-
|
|
37113
|
+
_createClass(Wave, [{
|
|
37395
37114
|
key: "componentDidMount",
|
|
37396
37115
|
value: function componentDidMount() {
|
|
37397
37116
|
var node = this.containerRef.current;
|
|
@@ -37618,7 +37337,7 @@ function spaceChildren(children, needInserted) {
|
|
|
37618
37337
|
var isPrevChildPure = false;
|
|
37619
37338
|
var childList = [];
|
|
37620
37339
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
37621
|
-
var type =
|
|
37340
|
+
var type = typeof_typeof(child);
|
|
37622
37341
|
|
|
37623
37342
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
37624
37343
|
|
|
@@ -37718,7 +37437,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37718
37437
|
}; // =============== Update Loading ===============
|
|
37719
37438
|
|
|
37720
37439
|
|
|
37721
|
-
var loadingOrDelay =
|
|
37440
|
+
var loadingOrDelay = typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
37722
37441
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
37723
37442
|
clearTimeout(delayTimeoutRef.current);
|
|
37724
37443
|
|
|
@@ -37758,7 +37477,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37758
37477
|
var sizeFullname = customizeSize || size;
|
|
37759
37478
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
37760
37479
|
var iconType = innerLoading ? 'loading' : icon;
|
|
37761
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37480
|
+
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);
|
|
37762
37481
|
var iconNode;
|
|
37763
37482
|
|
|
37764
37483
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -37777,14 +37496,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37777
37496
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
37778
37497
|
|
|
37779
37498
|
if (linkButtonRestProps.href !== undefined) {
|
|
37780
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
37499
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", extends_extends({}, linkButtonRestProps, {
|
|
37781
37500
|
className: classes,
|
|
37782
37501
|
onClick: handleClick,
|
|
37783
37502
|
ref: buttonRef
|
|
37784
37503
|
}), iconNode, kids);
|
|
37785
37504
|
}
|
|
37786
37505
|
|
|
37787
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
37506
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", extends_extends({}, rest, {
|
|
37788
37507
|
type: htmlType,
|
|
37789
37508
|
className: classes,
|
|
37790
37509
|
onClick: handleClick,
|
|
@@ -37962,9 +37681,9 @@ var Modal = function Modal(props) {
|
|
|
37962
37681
|
okType = props.okType,
|
|
37963
37682
|
cancelText = props.cancelText,
|
|
37964
37683
|
confirmLoading = props.confirmLoading;
|
|
37965
|
-
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,
|
|
37684
|
+
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({
|
|
37966
37685
|
onClick: handleCancel
|
|
37967
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
37686
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, extends_extends({}, convertLegacyProps(okType), {
|
|
37968
37687
|
loading: confirmLoading,
|
|
37969
37688
|
onClick: handleOk
|
|
37970
37689
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -37999,8 +37718,8 @@ var Modal = function Modal(props) {
|
|
|
37999
37718
|
type: "close",
|
|
38000
37719
|
className: "".concat(prefixCls, "-close-icon")
|
|
38001
37720
|
}));
|
|
38002
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
38003
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
37721
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), _defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
37722
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, extends_extends({}, restProps, {
|
|
38004
37723
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
38005
37724
|
prefixCls: prefixCls,
|
|
38006
37725
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -38126,7 +37845,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
38126
37845
|
children = props.children,
|
|
38127
37846
|
prefixCls = props.prefixCls,
|
|
38128
37847
|
buttonProps = props.buttonProps;
|
|
38129
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
37848
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, extends_extends({}, convertLegacyProps(type), {
|
|
38130
37849
|
onClick: onClick,
|
|
38131
37850
|
loading: loading,
|
|
38132
37851
|
prefixCls: prefixCls
|
|
@@ -39643,7 +39362,7 @@ function get(entity, path) {
|
|
|
39643
39362
|
|
|
39644
39363
|
|
|
39645
39364
|
function _toArray(arr) {
|
|
39646
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
39365
|
+
return arrayWithHoles_arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
39647
39366
|
}
|
|
39648
39367
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
39649
39368
|
|
|
@@ -39665,9 +39384,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
39665
39384
|
if (!entity && typeof path === 'number') {
|
|
39666
39385
|
clone = [];
|
|
39667
39386
|
} else if (Array.isArray(entity)) {
|
|
39668
|
-
clone =
|
|
39387
|
+
clone = _toConsumableArray(entity);
|
|
39669
39388
|
} else {
|
|
39670
|
-
clone =
|
|
39389
|
+
clone = _objectSpread2({}, entity);
|
|
39671
39390
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
39672
39391
|
|
|
39673
39392
|
|
|
@@ -39731,7 +39450,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
39731
39450
|
}
|
|
39732
39451
|
|
|
39733
39452
|
function isObject(obj) {
|
|
39734
|
-
return
|
|
39453
|
+
return typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
39735
39454
|
}
|
|
39736
39455
|
/**
|
|
39737
39456
|
* Copy values into store and return a new values object
|
|
@@ -39740,7 +39459,7 @@ function isObject(obj) {
|
|
|
39740
39459
|
|
|
39741
39460
|
|
|
39742
39461
|
function internalSetValues(store, values) {
|
|
39743
|
-
var newStore = Array.isArray(store) ?
|
|
39462
|
+
var newStore = Array.isArray(store) ? _toConsumableArray(store) : _objectSpread2({}, store);
|
|
39744
39463
|
|
|
39745
39464
|
if (!values) {
|
|
39746
39465
|
return newStore;
|
|
@@ -39783,14 +39502,14 @@ function isSimilar(source, target) {
|
|
|
39783
39502
|
return false;
|
|
39784
39503
|
}
|
|
39785
39504
|
|
|
39786
|
-
if (!source || !target ||
|
|
39505
|
+
if (!source || !target || typeof_typeof(source) !== 'object' || typeof_typeof(target) !== 'object') {
|
|
39787
39506
|
return false;
|
|
39788
39507
|
}
|
|
39789
39508
|
|
|
39790
39509
|
var sourceKeys = Object.keys(source);
|
|
39791
39510
|
var targetKeys = Object.keys(target);
|
|
39792
|
-
var keys = new Set([].concat(
|
|
39793
|
-
return
|
|
39511
|
+
var keys = new Set([].concat(_toConsumableArray(sourceKeys), _toConsumableArray(targetKeys)));
|
|
39512
|
+
return _toConsumableArray(keys).every(function (key) {
|
|
39794
39513
|
var sourceValue = source[key];
|
|
39795
39514
|
var targetValue = target[key];
|
|
39796
39515
|
|
|
@@ -39833,12 +39552,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
39833
39552
|
|
|
39834
39553
|
if (diff > 0) {
|
|
39835
39554
|
// move left
|
|
39836
|
-
return [].concat(
|
|
39555
|
+
return [].concat(_toConsumableArray(array.slice(0, toIndex)), [item], _toConsumableArray(array.slice(toIndex, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
39837
39556
|
}
|
|
39838
39557
|
|
|
39839
39558
|
if (diff < 0) {
|
|
39840
39559
|
// move right
|
|
39841
|
-
return [].concat(
|
|
39560
|
+
return [].concat(_toConsumableArray(array.slice(0, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], _toConsumableArray(array.slice(toIndex + 1, length)));
|
|
39842
39561
|
}
|
|
39843
39562
|
|
|
39844
39563
|
return array;
|
|
@@ -39878,13 +39597,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
39878
39597
|
|
|
39879
39598
|
|
|
39880
39599
|
function _validateRule() {
|
|
39881
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39600
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
39882
39601
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
39883
|
-
return
|
|
39602
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
39884
39603
|
while (1) {
|
|
39885
39604
|
switch (_context2.prev = _context2.next) {
|
|
39886
39605
|
case 0:
|
|
39887
|
-
cloneRule =
|
|
39606
|
+
cloneRule = _objectSpread2({}, rule); // Bug of `async-validator`
|
|
39888
39607
|
// https://github.com/react-component/field-form/issues/316
|
|
39889
39608
|
// https://github.com/react-component/field-form/issues/313
|
|
39890
39609
|
|
|
@@ -39897,13 +39616,13 @@ function _validateRule() {
|
|
|
39897
39616
|
delete cloneRule.defaultField;
|
|
39898
39617
|
}
|
|
39899
39618
|
|
|
39900
|
-
validator = new AsyncValidator(
|
|
39619
|
+
validator = new AsyncValidator(_defineProperty({}, name, [cloneRule]));
|
|
39901
39620
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
39902
39621
|
validator.messages(messages);
|
|
39903
39622
|
result = [];
|
|
39904
39623
|
_context2.prev = 8;
|
|
39905
39624
|
_context2.next = 11;
|
|
39906
|
-
return Promise.resolve(validator.validate(
|
|
39625
|
+
return Promise.resolve(validator.validate(_defineProperty({}, name, value), _objectSpread2({}, options)));
|
|
39907
39626
|
|
|
39908
39627
|
case 11:
|
|
39909
39628
|
_context2.next = 16;
|
|
@@ -39943,12 +39662,12 @@ function _validateRule() {
|
|
|
39943
39662
|
case 19:
|
|
39944
39663
|
subResults = _context2.sent;
|
|
39945
39664
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
39946
|
-
return [].concat(
|
|
39665
|
+
return [].concat(_toConsumableArray(prev), _toConsumableArray(errors));
|
|
39947
39666
|
}, []));
|
|
39948
39667
|
|
|
39949
39668
|
case 21:
|
|
39950
39669
|
// Replace message with variables
|
|
39951
|
-
kv =
|
|
39670
|
+
kv = _objectSpread2(_objectSpread2({}, rule), {}, {
|
|
39952
39671
|
name: name,
|
|
39953
39672
|
enum: (rule.enum || []).join(', ')
|
|
39954
39673
|
}, messageVariables);
|
|
@@ -39977,7 +39696,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
39977
39696
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
39978
39697
|
var originValidatorFunc = currentRule.validator;
|
|
39979
39698
|
|
|
39980
|
-
var cloneRule =
|
|
39699
|
+
var cloneRule = _objectSpread2(_objectSpread2({}, currentRule), {}, {
|
|
39981
39700
|
ruleIndex: ruleIndex
|
|
39982
39701
|
}); // Replace validator if needed
|
|
39983
39702
|
|
|
@@ -40045,9 +39764,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40045
39764
|
if (validateFirst === true) {
|
|
40046
39765
|
// >>>>> Validate by serialization
|
|
40047
39766
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
40048
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39767
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(resolve, reject) {
|
|
40049
39768
|
var i, rule, errors;
|
|
40050
|
-
return
|
|
39769
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
40051
39770
|
while (1) {
|
|
40052
39771
|
switch (_context.prev = _context.next) {
|
|
40053
39772
|
case 0:
|
|
@@ -40126,15 +39845,15 @@ function finishOnAllFailed(_x8) {
|
|
|
40126
39845
|
}
|
|
40127
39846
|
|
|
40128
39847
|
function _finishOnAllFailed() {
|
|
40129
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40130
|
-
return
|
|
39848
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(rulePromises) {
|
|
39849
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
40131
39850
|
while (1) {
|
|
40132
39851
|
switch (_context3.prev = _context3.next) {
|
|
40133
39852
|
case 0:
|
|
40134
39853
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
40135
39854
|
var _ref5;
|
|
40136
39855
|
|
|
40137
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
39856
|
+
var errors = (_ref5 = []).concat.apply(_ref5, _toConsumableArray(errorsList));
|
|
40138
39857
|
|
|
40139
39858
|
return errors;
|
|
40140
39859
|
}));
|
|
@@ -40154,9 +39873,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
40154
39873
|
}
|
|
40155
39874
|
|
|
40156
39875
|
function _finishOnFirstFailed() {
|
|
40157
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39876
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(rulePromises) {
|
|
40158
39877
|
var count;
|
|
40159
|
-
return
|
|
39878
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
40160
39879
|
while (1) {
|
|
40161
39880
|
switch (_context4.prev = _context4.next) {
|
|
40162
39881
|
case 0:
|
|
@@ -40219,9 +39938,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
40219
39938
|
|
|
40220
39939
|
|
|
40221
39940
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
40222
|
-
|
|
39941
|
+
_inherits(Field, _React$Component);
|
|
40223
39942
|
|
|
40224
|
-
var _super =
|
|
39943
|
+
var _super = _createSuper(Field);
|
|
40225
39944
|
|
|
40226
39945
|
/**
|
|
40227
39946
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -40237,7 +39956,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40237
39956
|
function Field(props) {
|
|
40238
39957
|
var _this;
|
|
40239
39958
|
|
|
40240
|
-
|
|
39959
|
+
_classCallCheck(this, Field);
|
|
40241
39960
|
|
|
40242
39961
|
_this = _super.call(this, props); // Register on init
|
|
40243
39962
|
|
|
@@ -40272,7 +39991,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40272
39991
|
fieldContext = _this$props2.fieldContext;
|
|
40273
39992
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
40274
39993
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
40275
|
-
return name !== undefined ? [].concat(
|
|
39994
|
+
return name !== undefined ? [].concat(_toConsumableArray(prefixName), _toConsumableArray(name)) : [];
|
|
40276
39995
|
};
|
|
40277
39996
|
|
|
40278
39997
|
_this.getRules = function () {
|
|
@@ -40305,7 +40024,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40305
40024
|
|
|
40306
40025
|
_this.triggerMetaEvent = function (destroy) {
|
|
40307
40026
|
var onMetaChange = _this.props.onMetaChange;
|
|
40308
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
40027
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(_objectSpread2(_objectSpread2({}, _this.getMeta()), {}, {
|
|
40309
40028
|
destroy: destroy
|
|
40310
40029
|
}));
|
|
40311
40030
|
};
|
|
@@ -40494,9 +40213,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40494
40213
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
40495
40214
|
|
|
40496
40215
|
if (warningOnly) {
|
|
40497
|
-
nextWarnings.push.apply(nextWarnings,
|
|
40216
|
+
nextWarnings.push.apply(nextWarnings, _toConsumableArray(errors));
|
|
40498
40217
|
} else {
|
|
40499
|
-
nextErrors.push.apply(nextErrors,
|
|
40218
|
+
nextErrors.push.apply(nextErrors, _toConsumableArray(errors));
|
|
40500
40219
|
}
|
|
40501
40220
|
});
|
|
40502
40221
|
_this.errors = nextErrors;
|
|
@@ -40587,7 +40306,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40587
40306
|
if (typeof children === 'function') {
|
|
40588
40307
|
var meta = _this.getMeta();
|
|
40589
40308
|
|
|
40590
|
-
return
|
|
40309
|
+
return _objectSpread2(_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
40591
40310
|
isFunction: true
|
|
40592
40311
|
});
|
|
40593
40312
|
} // Filed element only
|
|
@@ -40639,13 +40358,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40639
40358
|
var value = _this.getValue();
|
|
40640
40359
|
|
|
40641
40360
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
40642
|
-
return
|
|
40361
|
+
return _defineProperty({}, valuePropName, val);
|
|
40643
40362
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40644
40363
|
|
|
40645
40364
|
|
|
40646
40365
|
var originTriggerFunc = childProps[trigger];
|
|
40647
40366
|
|
|
40648
|
-
var control =
|
|
40367
|
+
var control = _objectSpread2(_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
40649
40368
|
|
|
40650
40369
|
|
|
40651
40370
|
control[trigger] = function () {
|
|
@@ -40716,13 +40435,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40716
40435
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
40717
40436
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
40718
40437
|
|
|
40719
|
-
initEntityValue(
|
|
40438
|
+
initEntityValue(_assertThisInitialized(_this));
|
|
40720
40439
|
}
|
|
40721
40440
|
|
|
40722
40441
|
return _this;
|
|
40723
40442
|
}
|
|
40724
40443
|
|
|
40725
|
-
|
|
40444
|
+
_createClass(Field, [{
|
|
40726
40445
|
key: "componentDidMount",
|
|
40727
40446
|
value: function componentDidMount() {
|
|
40728
40447
|
var _this$props7 = this.props,
|
|
@@ -40796,7 +40515,7 @@ Field.defaultProps = {
|
|
|
40796
40515
|
|
|
40797
40516
|
function WrapperField(_ref5) {
|
|
40798
40517
|
var name = _ref5.name,
|
|
40799
|
-
restProps =
|
|
40518
|
+
restProps = _objectWithoutProperties(_ref5, Field_excluded);
|
|
40800
40519
|
|
|
40801
40520
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
40802
40521
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -40810,7 +40529,7 @@ function WrapperField(_ref5) {
|
|
|
40810
40529
|
|
|
40811
40530
|
if (false) {}
|
|
40812
40531
|
|
|
40813
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
40532
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, extends_extends({
|
|
40814
40533
|
key: key,
|
|
40815
40534
|
name: namePath
|
|
40816
40535
|
}, restProps, {
|
|
@@ -40847,7 +40566,7 @@ var List = function List(_ref) {
|
|
|
40847
40566
|
}
|
|
40848
40567
|
|
|
40849
40568
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
40850
|
-
var prefixName = [].concat(
|
|
40569
|
+
var prefixName = [].concat(_toConsumableArray(parentPrefixName), _toConsumableArray(getNamePath(name)));
|
|
40851
40570
|
|
|
40852
40571
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
40853
40572
|
var source = _ref2.source;
|
|
@@ -40860,7 +40579,7 @@ var List = function List(_ref) {
|
|
|
40860
40579
|
};
|
|
40861
40580
|
|
|
40862
40581
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
40863
|
-
value:
|
|
40582
|
+
value: _objectSpread2(_objectSpread2({}, context), {}, {
|
|
40864
40583
|
prefixName: prefixName
|
|
40865
40584
|
})
|
|
40866
40585
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -40891,13 +40610,13 @@ var List = function List(_ref) {
|
|
|
40891
40610
|
var newValue = getNewValue();
|
|
40892
40611
|
|
|
40893
40612
|
if (index >= 0 && index <= newValue.length) {
|
|
40894
|
-
keyManager.keys = [].concat(
|
|
40895
|
-
onChange([].concat(
|
|
40613
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], _toConsumableArray(keyManager.keys.slice(index)));
|
|
40614
|
+
onChange([].concat(_toConsumableArray(newValue.slice(0, index)), [defaultValue], _toConsumableArray(newValue.slice(index))));
|
|
40896
40615
|
} else {
|
|
40897
40616
|
if (false) {}
|
|
40898
40617
|
|
|
40899
|
-
keyManager.keys = [].concat(
|
|
40900
|
-
onChange([].concat(
|
|
40618
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
40619
|
+
onChange([].concat(_toConsumableArray(newValue), [defaultValue]));
|
|
40901
40620
|
}
|
|
40902
40621
|
|
|
40903
40622
|
keyManager.id += 1;
|
|
@@ -41006,7 +40725,7 @@ var SPLIT = '__@field_split__';
|
|
|
41006
40725
|
|
|
41007
40726
|
function normalize(namePath) {
|
|
41008
40727
|
return namePath.map(function (cell) {
|
|
41009
|
-
return "".concat(
|
|
40728
|
+
return "".concat(typeof_typeof(cell), ":").concat(cell);
|
|
41010
40729
|
}) // Magic split
|
|
41011
40730
|
.join(SPLIT);
|
|
41012
40731
|
}
|
|
@@ -41017,12 +40736,12 @@ function normalize(namePath) {
|
|
|
41017
40736
|
|
|
41018
40737
|
var NameMap = /*#__PURE__*/function () {
|
|
41019
40738
|
function NameMap() {
|
|
41020
|
-
|
|
40739
|
+
_classCallCheck(this, NameMap);
|
|
41021
40740
|
|
|
41022
40741
|
this.kvs = new Map();
|
|
41023
40742
|
}
|
|
41024
40743
|
|
|
41025
|
-
|
|
40744
|
+
_createClass(NameMap, [{
|
|
41026
40745
|
key: "set",
|
|
41027
40746
|
value: function set(key, value) {
|
|
41028
40747
|
this.kvs.set(normalize(key), value);
|
|
@@ -41053,7 +40772,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
41053
40772
|
}, {
|
|
41054
40773
|
key: "map",
|
|
41055
40774
|
value: function map(callback) {
|
|
41056
|
-
return
|
|
40775
|
+
return _toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
41057
40776
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
41058
40777
|
key = _ref2[0],
|
|
41059
40778
|
value = _ref2[1];
|
|
@@ -41107,7 +40826,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
41107
40826
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
41108
40827
|
var _this = this;
|
|
41109
40828
|
|
|
41110
|
-
|
|
40829
|
+
_classCallCheck(this, FormStore);
|
|
41111
40830
|
|
|
41112
40831
|
this.formHooked = false;
|
|
41113
40832
|
this.forceRootUpdate = void 0;
|
|
@@ -41367,7 +41086,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41367
41086
|
return fieldNamePath[i] === nameUnit;
|
|
41368
41087
|
})) {
|
|
41369
41088
|
map.update(shortNamePath, function (list) {
|
|
41370
|
-
return [].concat(
|
|
41089
|
+
return [].concat(_toConsumableArray(list), [field]);
|
|
41371
41090
|
});
|
|
41372
41091
|
}
|
|
41373
41092
|
});
|
|
@@ -41458,7 +41177,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41458
41177
|
|
|
41459
41178
|
|
|
41460
41179
|
if (!info.skipExist || originValue === undefined) {
|
|
41461
|
-
_this.store = setValue(_this.store, namePath,
|
|
41180
|
+
_this.store = setValue(_this.store, namePath, _toConsumableArray(records)[0].value);
|
|
41462
41181
|
}
|
|
41463
41182
|
}
|
|
41464
41183
|
}
|
|
@@ -41478,7 +41197,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41478
41197
|
if (records) {
|
|
41479
41198
|
var _requiredFieldEntitie;
|
|
41480
41199
|
|
|
41481
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
41200
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, _toConsumableArray(_toConsumableArray(records).map(function (r) {
|
|
41482
41201
|
return r.entity;
|
|
41483
41202
|
})));
|
|
41484
41203
|
}
|
|
@@ -41531,7 +41250,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41531
41250
|
fields.forEach(function (fieldData) {
|
|
41532
41251
|
var name = fieldData.name,
|
|
41533
41252
|
errors = fieldData.errors,
|
|
41534
|
-
data =
|
|
41253
|
+
data = _objectWithoutProperties(fieldData, useForm_excluded);
|
|
41535
41254
|
|
|
41536
41255
|
var namePath = getNamePath(name); // Value
|
|
41537
41256
|
|
|
@@ -41553,7 +41272,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41553
41272
|
var namePath = field.getNamePath();
|
|
41554
41273
|
var meta = field.getMeta();
|
|
41555
41274
|
|
|
41556
|
-
var fieldData =
|
|
41275
|
+
var fieldData = _objectSpread2(_objectSpread2({}, meta), {}, {
|
|
41557
41276
|
name: namePath,
|
|
41558
41277
|
value: _this.getFieldValue(namePath)
|
|
41559
41278
|
});
|
|
@@ -41652,7 +41371,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41652
41371
|
|
|
41653
41372
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
41654
41373
|
if (_this.subscribable) {
|
|
41655
|
-
var mergedInfo =
|
|
41374
|
+
var mergedInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
41656
41375
|
store: _this.getFieldsValue(true)
|
|
41657
41376
|
});
|
|
41658
41377
|
|
|
@@ -41685,7 +41404,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41685
41404
|
|
|
41686
41405
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
41687
41406
|
type: 'dependenciesUpdate',
|
|
41688
|
-
relatedFields: [namePath].concat(
|
|
41407
|
+
relatedFields: [namePath].concat(_toConsumableArray(childrenFields))
|
|
41689
41408
|
}); // trigger callback function
|
|
41690
41409
|
|
|
41691
41410
|
|
|
@@ -41696,7 +41415,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41696
41415
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
41697
41416
|
}
|
|
41698
41417
|
|
|
41699
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
41418
|
+
_this.triggerOnFieldsChange([namePath].concat(_toConsumableArray(childrenFields)));
|
|
41700
41419
|
};
|
|
41701
41420
|
|
|
41702
41421
|
this.setFieldsValue = function (store) {
|
|
@@ -41824,8 +41543,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41824
41543
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
41825
41544
|
|
|
41826
41545
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
41827
|
-
var promise = field.validateRules(
|
|
41828
|
-
validateMessages:
|
|
41546
|
+
var promise = field.validateRules(_objectSpread2({
|
|
41547
|
+
validateMessages: _objectSpread2(_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
41829
41548
|
}, options)); // Wrap promise with field
|
|
41830
41549
|
|
|
41831
41550
|
promiseList.push(promise.then(function () {
|
|
@@ -41842,9 +41561,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41842
41561
|
errors = _ref5.errors;
|
|
41843
41562
|
|
|
41844
41563
|
if (warningOnly) {
|
|
41845
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
41564
|
+
mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
|
|
41846
41565
|
} else {
|
|
41847
|
-
mergedErrors.push.apply(mergedErrors,
|
|
41566
|
+
mergedErrors.push.apply(mergedErrors, _toConsumableArray(errors));
|
|
41848
41567
|
}
|
|
41849
41568
|
});
|
|
41850
41569
|
|
|
@@ -41975,8 +41694,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
41975
41694
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
41976
41695
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
41977
41696
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
41978
|
-
value:
|
|
41979
|
-
validateMessages:
|
|
41697
|
+
value: _objectSpread2(_objectSpread2({}, formContext), {}, {
|
|
41698
|
+
validateMessages: _objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
41980
41699
|
// =========================================================
|
|
41981
41700
|
// = Global Form Control =
|
|
41982
41701
|
// =========================================================
|
|
@@ -42002,13 +41721,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
42002
41721
|
},
|
|
42003
41722
|
registerForm: function registerForm(name, form) {
|
|
42004
41723
|
if (name) {
|
|
42005
|
-
formsRef.current =
|
|
41724
|
+
formsRef.current = _objectSpread2(_objectSpread2({}, formsRef.current), {}, _defineProperty({}, name, form));
|
|
42006
41725
|
}
|
|
42007
41726
|
|
|
42008
41727
|
formContext.registerForm(name, form);
|
|
42009
41728
|
},
|
|
42010
41729
|
unregisterForm: function unregisterForm(name) {
|
|
42011
|
-
var newForms =
|
|
41730
|
+
var newForms = _objectSpread2({}, formsRef.current);
|
|
42012
41731
|
|
|
42013
41732
|
delete newForms[name];
|
|
42014
41733
|
formsRef.current = newForms;
|
|
@@ -42048,7 +41767,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42048
41767
|
_onFieldsChange = _ref.onFieldsChange,
|
|
42049
41768
|
_onFinish = _ref.onFinish,
|
|
42050
41769
|
onFinishFailed = _ref.onFinishFailed,
|
|
42051
|
-
restProps =
|
|
41770
|
+
restProps = _objectWithoutProperties(_ref, Form_excluded);
|
|
42052
41771
|
|
|
42053
41772
|
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:
|
|
42054
41773
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -42076,7 +41795,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42076
41795
|
};
|
|
42077
41796
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
42078
41797
|
|
|
42079
|
-
setValidateMessages(
|
|
41798
|
+
setValidateMessages(_objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
42080
41799
|
setCallbacks({
|
|
42081
41800
|
onValuesChange: onValuesChange,
|
|
42082
41801
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -42129,7 +41848,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42129
41848
|
prevFieldsRef.current = fields;
|
|
42130
41849
|
}, [fields, formInstance]);
|
|
42131
41850
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
42132
|
-
return
|
|
41851
|
+
return _objectSpread2(_objectSpread2({}, formInstance), {}, {
|
|
42133
41852
|
validateTrigger: validateTrigger
|
|
42134
41853
|
});
|
|
42135
41854
|
}, [formInstance, validateTrigger]);
|
|
@@ -42141,7 +41860,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42141
41860
|
return wrapperNode;
|
|
42142
41861
|
}
|
|
42143
41862
|
|
|
42144
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
41863
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, restProps, {
|
|
42145
41864
|
onSubmit: function onSubmit(event) {
|
|
42146
41865
|
event.preventDefault();
|
|
42147
41866
|
event.stopPropagation();
|
|
@@ -42323,14 +42042,14 @@ LocaleProvider.defaultProps = {
|
|
|
42323
42042
|
|
|
42324
42043
|
|
|
42325
42044
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
42326
|
-
|
|
42045
|
+
_inherits(Notice, _Component);
|
|
42327
42046
|
|
|
42328
|
-
var _super =
|
|
42047
|
+
var _super = _createSuper(Notice);
|
|
42329
42048
|
|
|
42330
42049
|
function Notice() {
|
|
42331
42050
|
var _this;
|
|
42332
42051
|
|
|
42333
|
-
|
|
42052
|
+
_classCallCheck(this, Notice);
|
|
42334
42053
|
|
|
42335
42054
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42336
42055
|
args[_key] = arguments[_key];
|
|
@@ -42373,7 +42092,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42373
42092
|
return _this;
|
|
42374
42093
|
}
|
|
42375
42094
|
|
|
42376
|
-
|
|
42095
|
+
_createClass(Notice, [{
|
|
42377
42096
|
key: "componentDidMount",
|
|
42378
42097
|
value: function componentDidMount() {
|
|
42379
42098
|
this.startCloseTimer();
|
|
@@ -42419,8 +42138,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42419
42138
|
|
|
42420
42139
|
return acc;
|
|
42421
42140
|
}, {});
|
|
42422
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
42423
|
-
className: classnames_default()(componentClass, className,
|
|
42141
|
+
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
42142
|
+
className: classnames_default()(componentClass, className, _defineProperty({}, "".concat(componentClass, "-closable"), closable)),
|
|
42424
42143
|
style: style,
|
|
42425
42144
|
onMouseEnter: this.clearCloseTimer,
|
|
42426
42145
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -42451,52 +42170,6 @@ Notice.defaultProps = {
|
|
|
42451
42170
|
duration: 1.5
|
|
42452
42171
|
};
|
|
42453
42172
|
|
|
42454
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
42455
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
42456
|
-
if (Array.isArray(arr)) return arr;
|
|
42457
|
-
}
|
|
42458
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
42459
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
42460
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42461
|
-
|
|
42462
|
-
if (_i == null) return;
|
|
42463
|
-
var _arr = [];
|
|
42464
|
-
var _n = true;
|
|
42465
|
-
var _d = false;
|
|
42466
|
-
|
|
42467
|
-
var _s, _e;
|
|
42468
|
-
|
|
42469
|
-
try {
|
|
42470
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
42471
|
-
_arr.push(_s.value);
|
|
42472
|
-
|
|
42473
|
-
if (i && _arr.length === i) break;
|
|
42474
|
-
}
|
|
42475
|
-
} catch (err) {
|
|
42476
|
-
_d = true;
|
|
42477
|
-
_e = err;
|
|
42478
|
-
} finally {
|
|
42479
|
-
try {
|
|
42480
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
42481
|
-
} finally {
|
|
42482
|
-
if (_d) throw _e;
|
|
42483
|
-
}
|
|
42484
|
-
}
|
|
42485
|
-
|
|
42486
|
-
return _arr;
|
|
42487
|
-
}
|
|
42488
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
42489
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
42490
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
42491
|
-
}
|
|
42492
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
42493
|
-
|
|
42494
|
-
|
|
42495
|
-
|
|
42496
|
-
|
|
42497
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
42498
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
42499
|
-
}
|
|
42500
42173
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
42501
42174
|
|
|
42502
42175
|
|
|
@@ -42507,7 +42180,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42507
42180
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42508
42181
|
|
|
42509
42182
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42510
|
-
_React$useState2 =
|
|
42183
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
42511
42184
|
elements = _React$useState2[0],
|
|
42512
42185
|
setElements = _React$useState2[1];
|
|
42513
42186
|
|
|
@@ -42568,14 +42241,14 @@ function getUuid() {
|
|
|
42568
42241
|
}
|
|
42569
42242
|
|
|
42570
42243
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
42571
|
-
|
|
42244
|
+
_inherits(Notification, _Component);
|
|
42572
42245
|
|
|
42573
|
-
var _super =
|
|
42246
|
+
var _super = _createSuper(Notification);
|
|
42574
42247
|
|
|
42575
42248
|
function Notification() {
|
|
42576
42249
|
var _this;
|
|
42577
42250
|
|
|
42578
|
-
|
|
42251
|
+
_classCallCheck(this, Notification);
|
|
42579
42252
|
|
|
42580
42253
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42581
42254
|
args[_key] = arguments[_key];
|
|
@@ -42590,7 +42263,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42590
42263
|
_this.add = function (originNotice, holderCallback) {
|
|
42591
42264
|
var key = originNotice.key || getUuid();
|
|
42592
42265
|
|
|
42593
|
-
var notice =
|
|
42266
|
+
var notice = _objectSpread2(_objectSpread2({}, originNotice), {}, {
|
|
42594
42267
|
key: key
|
|
42595
42268
|
});
|
|
42596
42269
|
|
|
@@ -42657,7 +42330,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42657
42330
|
return _this;
|
|
42658
42331
|
}
|
|
42659
42332
|
|
|
42660
|
-
|
|
42333
|
+
_createClass(Notification, [{
|
|
42661
42334
|
key: "getTransitionName",
|
|
42662
42335
|
value: function getTransitionName() {
|
|
42663
42336
|
var _this$props = this.props,
|
|
@@ -42690,7 +42363,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42690
42363
|
var key = notice.key,
|
|
42691
42364
|
userPassKey = notice.userPassKey;
|
|
42692
42365
|
|
|
42693
|
-
var noticeProps =
|
|
42366
|
+
var noticeProps = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
42694
42367
|
prefixCls: prefixCls,
|
|
42695
42368
|
closeIcon: closeIcon
|
|
42696
42369
|
}, notice), notice.props), {}, {
|
|
@@ -42741,7 +42414,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42741
42414
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
42742
42415
|
key: key,
|
|
42743
42416
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
42744
|
-
style:
|
|
42417
|
+
style: _objectSpread2({}, motionStyle),
|
|
42745
42418
|
ref: function ref(div) {
|
|
42746
42419
|
if (typeof key === 'undefined') {
|
|
42747
42420
|
return;
|
|
@@ -42758,9 +42431,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42758
42431
|
});
|
|
42759
42432
|
}
|
|
42760
42433
|
|
|
42761
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
42434
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, extends_extends({}, noticeProps, {
|
|
42762
42435
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
42763
|
-
style:
|
|
42436
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
42764
42437
|
visible: visible
|
|
42765
42438
|
}));
|
|
42766
42439
|
}));
|
|
@@ -42783,7 +42456,7 @@ Notification.defaultProps = {
|
|
|
42783
42456
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
42784
42457
|
var _ref6 = properties || {},
|
|
42785
42458
|
getContainer = _ref6.getContainer,
|
|
42786
|
-
props =
|
|
42459
|
+
props = _objectWithoutProperties(_ref6, ["getContainer"]);
|
|
42787
42460
|
|
|
42788
42461
|
var div = document.createElement('div');
|
|
42789
42462
|
|
|
@@ -42827,7 +42500,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
42827
42500
|
|
|
42828
42501
|
if (false) {}
|
|
42829
42502
|
|
|
42830
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
42503
|
+
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, {
|
|
42831
42504
|
ref: ref
|
|
42832
42505
|
})), div);
|
|
42833
42506
|
};
|
|
@@ -42857,7 +42530,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
42857
42530
|
};
|
|
42858
42531
|
|
|
42859
42532
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
42860
|
-
_useRCNotification2 =
|
|
42533
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
42861
42534
|
hookNotify = _useRCNotification2[0],
|
|
42862
42535
|
holder = _useRCNotification2[1];
|
|
42863
42536
|
|
|
@@ -43186,7 +42859,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
43186
42859
|
};
|
|
43187
42860
|
|
|
43188
42861
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43189
|
-
_useRCNotification2 =
|
|
42862
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43190
42863
|
hookNotify = _useRCNotification2[0],
|
|
43191
42864
|
holder = _useRCNotification2[1];
|
|
43192
42865
|
|
|
@@ -43813,7 +43486,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43813
43486
|
|
|
43814
43487
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
43815
43488
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
43816
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
43489
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), _defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
43817
43490
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
43818
43491
|
actionFn: onCancel,
|
|
43819
43492
|
close: close,
|
|
@@ -43831,7 +43504,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43831
43504
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
43832
43505
|
prefixCls: prefixCls,
|
|
43833
43506
|
className: classString,
|
|
43834
|
-
wrapClassName: classnames_default()(
|
|
43507
|
+
wrapClassName: classnames_default()(_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
43835
43508
|
onCancel: function onCancel() {
|
|
43836
43509
|
return close({
|
|
43837
43510
|
triggerCancel: true
|
|
@@ -43915,7 +43588,7 @@ function getRootPrefixCls() {
|
|
|
43915
43588
|
function confirm_confirm(config) {
|
|
43916
43589
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
43917
43590
|
|
|
43918
|
-
var currentConfig =
|
|
43591
|
+
var currentConfig = extends_extends(extends_extends({}, config), {
|
|
43919
43592
|
close: close,
|
|
43920
43593
|
visible: true
|
|
43921
43594
|
});
|
|
@@ -43968,7 +43641,7 @@ function confirm_confirm(config) {
|
|
|
43968
43641
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
43969
43642
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
43970
43643
|
var iconPrefixCls = getIconPrefixCls();
|
|
43971
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43644
|
+
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, {
|
|
43972
43645
|
prefixCls: prefixCls,
|
|
43973
43646
|
rootPrefixCls: rootPrefixCls,
|
|
43974
43647
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -43985,7 +43658,7 @@ function confirm_confirm(config) {
|
|
|
43985
43658
|
args[_key2] = arguments[_key2];
|
|
43986
43659
|
}
|
|
43987
43660
|
|
|
43988
|
-
currentConfig =
|
|
43661
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), {
|
|
43989
43662
|
visible: false,
|
|
43990
43663
|
afterClose: function afterClose() {
|
|
43991
43664
|
if (typeof config.afterClose === 'function') {
|
|
@@ -44002,7 +43675,7 @@ function confirm_confirm(config) {
|
|
|
44002
43675
|
if (typeof configUpdate === 'function') {
|
|
44003
43676
|
currentConfig = configUpdate(currentConfig);
|
|
44004
43677
|
} else {
|
|
44005
|
-
currentConfig =
|
|
43678
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), configUpdate);
|
|
44006
43679
|
}
|
|
44007
43680
|
|
|
44008
43681
|
render(currentConfig);
|
|
@@ -44016,7 +43689,7 @@ function confirm_confirm(config) {
|
|
|
44016
43689
|
};
|
|
44017
43690
|
}
|
|
44018
43691
|
function withWarn(props) {
|
|
44019
|
-
return
|
|
43692
|
+
return extends_extends(extends_extends({
|
|
44020
43693
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44021
43694
|
type: "exclamation-circle"
|
|
44022
43695
|
}),
|
|
@@ -44026,7 +43699,7 @@ function withWarn(props) {
|
|
|
44026
43699
|
});
|
|
44027
43700
|
}
|
|
44028
43701
|
function withInfo(props) {
|
|
44029
|
-
return
|
|
43702
|
+
return extends_extends(extends_extends({
|
|
44030
43703
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44031
43704
|
type: "exclamation-circle"
|
|
44032
43705
|
}),
|
|
@@ -44036,7 +43709,7 @@ function withInfo(props) {
|
|
|
44036
43709
|
});
|
|
44037
43710
|
}
|
|
44038
43711
|
function withSuccess(props) {
|
|
44039
|
-
return
|
|
43712
|
+
return extends_extends(extends_extends({
|
|
44040
43713
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44041
43714
|
type: "check-circle"
|
|
44042
43715
|
}),
|
|
@@ -44046,7 +43719,7 @@ function withSuccess(props) {
|
|
|
44046
43719
|
});
|
|
44047
43720
|
}
|
|
44048
43721
|
function withError(props) {
|
|
44049
|
-
return
|
|
43722
|
+
return extends_extends(extends_extends({
|
|
44050
43723
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44051
43724
|
type: "close-circle"
|
|
44052
43725
|
}),
|
|
@@ -44056,7 +43729,7 @@ function withError(props) {
|
|
|
44056
43729
|
});
|
|
44057
43730
|
}
|
|
44058
43731
|
function withConfirm(props) {
|
|
44059
|
-
return
|
|
43732
|
+
return extends_extends(extends_extends({
|
|
44060
43733
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44061
43734
|
type: "question-circle"
|
|
44062
43735
|
}),
|
|
@@ -44083,7 +43756,7 @@ function usePatchElement() {
|
|
|
44083
43756
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
44084
43757
|
// append a new element to elements (and create a new ref)
|
|
44085
43758
|
setElements(function (originElements) {
|
|
44086
|
-
return [].concat(
|
|
43759
|
+
return [].concat(_toConsumableArray(originElements), [element]);
|
|
44087
43760
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
44088
43761
|
// it works a little like useEffect
|
|
44089
43762
|
|
|
@@ -44148,7 +43821,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44148
43821
|
destroy: close,
|
|
44149
43822
|
update: function update(newConfig) {
|
|
44150
43823
|
setInnerConfig(function (originConfig) {
|
|
44151
|
-
return
|
|
43824
|
+
return extends_extends(extends_extends({}, originConfig), newConfig);
|
|
44152
43825
|
});
|
|
44153
43826
|
}
|
|
44154
43827
|
};
|
|
@@ -44157,7 +43830,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44157
43830
|
componentName: "Modal",
|
|
44158
43831
|
defaultLocale: locale_default.Modal
|
|
44159
43832
|
}, function (modalLocale) {
|
|
44160
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43833
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, extends_extends({
|
|
44161
43834
|
prefixCls: prefixCls,
|
|
44162
43835
|
rootPrefixCls: rootPrefixCls
|
|
44163
43836
|
}, innerConfig, {
|
|
@@ -44204,7 +43877,7 @@ function useModal() {
|
|
|
44204
43877
|
|
|
44205
43878
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
44206
43879
|
if (actionQueue.length) {
|
|
44207
|
-
var cloneQueue =
|
|
43880
|
+
var cloneQueue = _toConsumableArray(actionQueue);
|
|
44208
43881
|
|
|
44209
43882
|
cloneQueue.forEach(function (action) {
|
|
44210
43883
|
action();
|
|
@@ -44241,7 +43914,7 @@ function useModal() {
|
|
|
44241
43914
|
destroyAction();
|
|
44242
43915
|
} else {
|
|
44243
43916
|
setActionQueue(function (prev) {
|
|
44244
|
-
return [].concat(
|
|
43917
|
+
return [].concat(_toConsumableArray(prev), [destroyAction]);
|
|
44245
43918
|
});
|
|
44246
43919
|
}
|
|
44247
43920
|
},
|
|
@@ -44256,7 +43929,7 @@ function useModal() {
|
|
|
44256
43929
|
updateAction();
|
|
44257
43930
|
} else {
|
|
44258
43931
|
setActionQueue(function (prev) {
|
|
44259
|
-
return [].concat(
|
|
43932
|
+
return [].concat(_toConsumableArray(prev), [updateAction]);
|
|
44260
43933
|
});
|
|
44261
43934
|
}
|
|
44262
43935
|
}
|
|
@@ -44699,44 +44372,40 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
44699
44372
|
|
|
44700
44373
|
|
|
44701
44374
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
44702
|
-
function
|
|
44703
|
-
|
|
44375
|
+
function esm_extends_extends() {
|
|
44376
|
+
esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
44704
44377
|
for (var i = 1; i < arguments.length; i++) {
|
|
44705
44378
|
var source = arguments[i];
|
|
44706
|
-
|
|
44707
44379
|
for (var key in source) {
|
|
44708
44380
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44709
44381
|
target[key] = source[key];
|
|
44710
44382
|
}
|
|
44711
44383
|
}
|
|
44712
44384
|
}
|
|
44713
|
-
|
|
44714
44385
|
return target;
|
|
44715
44386
|
};
|
|
44716
|
-
return
|
|
44387
|
+
return esm_extends_extends.apply(this, arguments);
|
|
44717
44388
|
}
|
|
44718
44389
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
44719
|
-
function
|
|
44390
|
+
function esm_typeof_typeof(obj) {
|
|
44720
44391
|
"@babel/helpers - typeof";
|
|
44721
44392
|
|
|
44722
|
-
return
|
|
44393
|
+
return esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44723
44394
|
return typeof obj;
|
|
44724
44395
|
} : function (obj) {
|
|
44725
44396
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44726
|
-
},
|
|
44397
|
+
}, esm_typeof_typeof(obj);
|
|
44727
44398
|
}
|
|
44728
44399
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
44729
44400
|
|
|
44730
44401
|
function _toPrimitive(input, hint) {
|
|
44731
|
-
if (
|
|
44402
|
+
if (esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
44732
44403
|
var prim = input[Symbol.toPrimitive];
|
|
44733
|
-
|
|
44734
44404
|
if (prim !== undefined) {
|
|
44735
44405
|
var res = prim.call(input, hint || "default");
|
|
44736
|
-
if (
|
|
44406
|
+
if (esm_typeof_typeof(res) !== "object") return res;
|
|
44737
44407
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44738
44408
|
}
|
|
44739
|
-
|
|
44740
44409
|
return (hint === "string" ? String : Number)(input);
|
|
44741
44410
|
}
|
|
44742
44411
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -44744,13 +44413,12 @@ function _toPrimitive(input, hint) {
|
|
|
44744
44413
|
|
|
44745
44414
|
function _toPropertyKey(arg) {
|
|
44746
44415
|
var key = _toPrimitive(arg, "string");
|
|
44747
|
-
return
|
|
44416
|
+
return esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
44748
44417
|
}
|
|
44749
44418
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
44750
44419
|
|
|
44751
|
-
function
|
|
44420
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
44752
44421
|
key = _toPropertyKey(key);
|
|
44753
|
-
|
|
44754
44422
|
if (key in obj) {
|
|
44755
44423
|
Object.defineProperty(obj, key, {
|
|
44756
44424
|
value: value,
|
|
@@ -44761,61 +44429,51 @@ function esm_defineProperty_defineProperty(obj, key, value) {
|
|
|
44761
44429
|
} else {
|
|
44762
44430
|
obj[key] = value;
|
|
44763
44431
|
}
|
|
44764
|
-
|
|
44765
44432
|
return obj;
|
|
44766
44433
|
}
|
|
44767
44434
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
44768
44435
|
|
|
44769
|
-
|
|
44770
|
-
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44436
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44771
44437
|
var keys = Object.keys(object);
|
|
44772
|
-
|
|
44773
44438
|
if (Object.getOwnPropertySymbols) {
|
|
44774
44439
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
44775
44440
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
44776
44441
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
44777
44442
|
})), keys.push.apply(keys, symbols);
|
|
44778
44443
|
}
|
|
44779
|
-
|
|
44780
44444
|
return keys;
|
|
44781
44445
|
}
|
|
44782
|
-
|
|
44783
|
-
function esm_objectSpread2_objectSpread2(target) {
|
|
44446
|
+
function objectSpread2_objectSpread2(target) {
|
|
44784
44447
|
for (var i = 1; i < arguments.length; i++) {
|
|
44785
44448
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
44786
|
-
i % 2 ?
|
|
44787
|
-
|
|
44788
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
44449
|
+
i % 2 ? objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
44450
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
44451
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
44789
44452
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44790
44453
|
});
|
|
44791
44454
|
}
|
|
44792
|
-
|
|
44793
44455
|
return target;
|
|
44794
44456
|
}
|
|
44795
44457
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
44796
|
-
function
|
|
44458
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
44797
44459
|
if (Array.isArray(arr)) return arr;
|
|
44798
44460
|
}
|
|
44799
44461
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
44800
|
-
function
|
|
44462
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
44801
44463
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
44802
|
-
|
|
44803
44464
|
if (null != _i) {
|
|
44804
44465
|
var _s,
|
|
44805
|
-
|
|
44806
|
-
|
|
44807
|
-
|
|
44808
|
-
|
|
44809
|
-
|
|
44810
|
-
|
|
44811
|
-
|
|
44466
|
+
_e,
|
|
44467
|
+
_x,
|
|
44468
|
+
_r,
|
|
44469
|
+
_arr = [],
|
|
44470
|
+
_n = !0,
|
|
44471
|
+
_d = !1;
|
|
44812
44472
|
try {
|
|
44813
44473
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
44814
44474
|
if (Object(_i) !== _i) return;
|
|
44815
44475
|
_n = !1;
|
|
44816
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
44817
|
-
;
|
|
44818
|
-
}
|
|
44476
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
44819
44477
|
} catch (err) {
|
|
44820
44478
|
_d = !0, _e = err;
|
|
44821
44479
|
} finally {
|
|
@@ -44825,32 +44483,27 @@ function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
44825
44483
|
if (_d) throw _e;
|
|
44826
44484
|
}
|
|
44827
44485
|
}
|
|
44828
|
-
|
|
44829
44486
|
return _arr;
|
|
44830
44487
|
}
|
|
44831
44488
|
}
|
|
44832
44489
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
44833
|
-
function
|
|
44490
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
44834
44491
|
if (len == null || len > arr.length) len = arr.length;
|
|
44835
|
-
|
|
44836
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
44837
|
-
arr2[i] = arr[i];
|
|
44838
|
-
}
|
|
44839
|
-
|
|
44492
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
44840
44493
|
return arr2;
|
|
44841
44494
|
}
|
|
44842
44495
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
44843
44496
|
|
|
44844
|
-
function
|
|
44497
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
44845
44498
|
if (!o) return;
|
|
44846
|
-
if (typeof o === "string") return
|
|
44499
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44847
44500
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
44848
44501
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
44849
44502
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44850
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
44503
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44851
44504
|
}
|
|
44852
44505
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
44853
|
-
function
|
|
44506
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
44854
44507
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44855
44508
|
}
|
|
44856
44509
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -44858,34 +44511,30 @@ function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
|
44858
44511
|
|
|
44859
44512
|
|
|
44860
44513
|
|
|
44861
|
-
function
|
|
44862
|
-
return
|
|
44514
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
44515
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
44863
44516
|
}
|
|
44864
44517
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
44865
|
-
function
|
|
44518
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
44866
44519
|
if (source == null) return {};
|
|
44867
44520
|
var target = {};
|
|
44868
44521
|
var sourceKeys = Object.keys(source);
|
|
44869
44522
|
var key, i;
|
|
44870
|
-
|
|
44871
44523
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
44872
44524
|
key = sourceKeys[i];
|
|
44873
44525
|
if (excluded.indexOf(key) >= 0) continue;
|
|
44874
44526
|
target[key] = source[key];
|
|
44875
44527
|
}
|
|
44876
|
-
|
|
44877
44528
|
return target;
|
|
44878
44529
|
}
|
|
44879
44530
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
44880
44531
|
|
|
44881
|
-
function
|
|
44532
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
44882
44533
|
if (source == null) return {};
|
|
44883
|
-
var target =
|
|
44534
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
44884
44535
|
var key, i;
|
|
44885
|
-
|
|
44886
44536
|
if (Object.getOwnPropertySymbols) {
|
|
44887
44537
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
44888
|
-
|
|
44889
44538
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
44890
44539
|
key = sourceSymbolKeys[i];
|
|
44891
44540
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -44893,7 +44542,6 @@ function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
44893
44542
|
target[key] = source[key];
|
|
44894
44543
|
}
|
|
44895
44544
|
}
|
|
44896
|
-
|
|
44897
44545
|
return target;
|
|
44898
44546
|
}
|
|
44899
44547
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -45841,14 +45489,14 @@ var index = (function () {
|
|
|
45841
45489
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
45842
45490
|
|
|
45843
45491
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
45844
|
-
|
|
45492
|
+
_inherits(ReactResizeObserver, _React$Component);
|
|
45845
45493
|
|
|
45846
|
-
var _super =
|
|
45494
|
+
var _super = _createSuper(ReactResizeObserver);
|
|
45847
45495
|
|
|
45848
45496
|
function ReactResizeObserver() {
|
|
45849
45497
|
var _this;
|
|
45850
45498
|
|
|
45851
|
-
|
|
45499
|
+
_classCallCheck(this, ReactResizeObserver);
|
|
45852
45500
|
|
|
45853
45501
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45854
45502
|
args[_key] = arguments[_key];
|
|
@@ -45899,7 +45547,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45899
45547
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
45900
45548
|
|
|
45901
45549
|
Promise.resolve().then(function () {
|
|
45902
|
-
onResize(
|
|
45550
|
+
onResize(_objectSpread2(_objectSpread2({}, size), {}, {
|
|
45903
45551
|
offsetWidth: mergedOffsetWidth,
|
|
45904
45552
|
offsetHeight: mergedOffsetHeight
|
|
45905
45553
|
}), target);
|
|
@@ -45915,7 +45563,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45915
45563
|
return _this;
|
|
45916
45564
|
}
|
|
45917
45565
|
|
|
45918
|
-
|
|
45566
|
+
_createClass(ReactResizeObserver, [{
|
|
45919
45567
|
key: "componentDidMount",
|
|
45920
45568
|
value: function componentDidMount() {
|
|
45921
45569
|
this.onComponentUpdated();
|
|
@@ -46029,7 +45677,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46029
45677
|
position: 'relative',
|
|
46030
45678
|
overflow: 'hidden'
|
|
46031
45679
|
};
|
|
46032
|
-
innerStyle =
|
|
45680
|
+
innerStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
46033
45681
|
transform: "translateY(".concat(offset, "px)"),
|
|
46034
45682
|
position: 'absolute',
|
|
46035
45683
|
left: 0,
|
|
@@ -46046,24 +45694,23 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46046
45694
|
onInnerResize();
|
|
46047
45695
|
}
|
|
46048
45696
|
}
|
|
46049
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
45697
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
46050
45698
|
style: innerStyle,
|
|
46051
|
-
className: classnames_default()(
|
|
45699
|
+
className: classnames_default()(defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
46052
45700
|
ref: ref
|
|
46053
45701
|
}, innerProps), children)));
|
|
46054
45702
|
});
|
|
46055
45703
|
Filler.displayName = 'Filler';
|
|
46056
45704
|
/* harmony default export */ var es_Filler = (Filler);
|
|
46057
45705
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
46058
|
-
function
|
|
45706
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
46059
45707
|
if (!(instance instanceof Constructor)) {
|
|
46060
45708
|
throw new TypeError("Cannot call a class as a function");
|
|
46061
45709
|
}
|
|
46062
45710
|
}
|
|
46063
45711
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
46064
45712
|
|
|
46065
|
-
|
|
46066
|
-
function esm_createClass_defineProperties(target, props) {
|
|
45713
|
+
function createClass_defineProperties(target, props) {
|
|
46067
45714
|
for (var i = 0; i < props.length; i++) {
|
|
46068
45715
|
var descriptor = props[i];
|
|
46069
45716
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -46072,30 +45719,28 @@ function esm_createClass_defineProperties(target, props) {
|
|
|
46072
45719
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
46073
45720
|
}
|
|
46074
45721
|
}
|
|
46075
|
-
|
|
46076
|
-
|
|
46077
|
-
if (
|
|
46078
|
-
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
45722
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
45723
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
45724
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
46079
45725
|
Object.defineProperty(Constructor, "prototype", {
|
|
46080
45726
|
writable: false
|
|
46081
45727
|
});
|
|
46082
45728
|
return Constructor;
|
|
46083
45729
|
}
|
|
46084
45730
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
46085
|
-
function
|
|
46086
|
-
|
|
45731
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
45732
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
46087
45733
|
o.__proto__ = p;
|
|
46088
45734
|
return o;
|
|
46089
45735
|
};
|
|
46090
|
-
return
|
|
45736
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
46091
45737
|
}
|
|
46092
45738
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
46093
45739
|
|
|
46094
|
-
function
|
|
45740
|
+
function inherits_inherits(subClass, superClass) {
|
|
46095
45741
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
46096
45742
|
throw new TypeError("Super expression must either be null or a function");
|
|
46097
45743
|
}
|
|
46098
|
-
|
|
46099
45744
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
46100
45745
|
constructor: {
|
|
46101
45746
|
value: subClass,
|
|
@@ -46106,21 +45751,20 @@ function esm_inherits_inherits(subClass, superClass) {
|
|
|
46106
45751
|
Object.defineProperty(subClass, "prototype", {
|
|
46107
45752
|
writable: false
|
|
46108
45753
|
});
|
|
46109
|
-
if (superClass)
|
|
45754
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
46110
45755
|
}
|
|
46111
45756
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
46112
|
-
function
|
|
46113
|
-
|
|
45757
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
45758
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
46114
45759
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46115
45760
|
};
|
|
46116
|
-
return
|
|
45761
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
46117
45762
|
}
|
|
46118
45763
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
46119
|
-
function
|
|
45764
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
46120
45765
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
46121
45766
|
if (Reflect.construct.sham) return false;
|
|
46122
45767
|
if (typeof Proxy === "function") return true;
|
|
46123
|
-
|
|
46124
45768
|
try {
|
|
46125
45769
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
46126
45770
|
return true;
|
|
@@ -46129,43 +45773,39 @@ function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
46129
45773
|
}
|
|
46130
45774
|
}
|
|
46131
45775
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
46132
|
-
function
|
|
45776
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
46133
45777
|
if (self === void 0) {
|
|
46134
45778
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46135
45779
|
}
|
|
46136
|
-
|
|
46137
45780
|
return self;
|
|
46138
45781
|
}
|
|
46139
45782
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
46140
45783
|
|
|
46141
45784
|
|
|
46142
|
-
function
|
|
46143
|
-
if (call && (
|
|
45785
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
45786
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
46144
45787
|
return call;
|
|
46145
45788
|
} else if (call !== void 0) {
|
|
46146
45789
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
46147
45790
|
}
|
|
46148
|
-
|
|
46149
|
-
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
45791
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
46150
45792
|
}
|
|
46151
45793
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
46152
45794
|
|
|
46153
45795
|
|
|
46154
45796
|
|
|
46155
|
-
function
|
|
46156
|
-
var hasNativeReflectConstruct =
|
|
45797
|
+
function createSuper_createSuper(Derived) {
|
|
45798
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
46157
45799
|
return function _createSuperInternal() {
|
|
46158
|
-
var Super =
|
|
46159
|
-
|
|
46160
|
-
|
|
45800
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
45801
|
+
result;
|
|
46161
45802
|
if (hasNativeReflectConstruct) {
|
|
46162
|
-
var NewTarget =
|
|
45803
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
46163
45804
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
46164
45805
|
} else {
|
|
46165
45806
|
result = Super.apply(this, arguments);
|
|
46166
45807
|
}
|
|
46167
|
-
|
|
46168
|
-
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
45808
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46169
45809
|
};
|
|
46170
45810
|
}
|
|
46171
45811
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -46240,11 +45880,11 @@ function getPageY(e) {
|
|
|
46240
45880
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
46241
45881
|
}
|
|
46242
45882
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
46243
|
-
|
|
46244
|
-
var _super =
|
|
45883
|
+
inherits_inherits(ScrollBar, _React$Component);
|
|
45884
|
+
var _super = createSuper_createSuper(ScrollBar);
|
|
46245
45885
|
function ScrollBar() {
|
|
46246
45886
|
var _this;
|
|
46247
|
-
|
|
45887
|
+
classCallCheck_classCallCheck(this, ScrollBar);
|
|
46248
45888
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46249
45889
|
args[_key] = arguments[_key];
|
|
46250
45890
|
}
|
|
@@ -46372,7 +46012,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46372
46012
|
};
|
|
46373
46013
|
return _this;
|
|
46374
46014
|
}
|
|
46375
|
-
|
|
46015
|
+
createClass_createClass(ScrollBar, [{
|
|
46376
46016
|
key: "componentDidMount",
|
|
46377
46017
|
value: function componentDidMount() {
|
|
46378
46018
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -46406,7 +46046,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46406
46046
|
var mergedVisible = canScroll && visible;
|
|
46407
46047
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46408
46048
|
ref: this.scrollbarRef,
|
|
46409
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46049
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46410
46050
|
style: {
|
|
46411
46051
|
width: 8,
|
|
46412
46052
|
top: 0,
|
|
@@ -46419,7 +46059,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46419
46059
|
onMouseMove: this.delayHidden
|
|
46420
46060
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46421
46061
|
ref: this.thumbRef,
|
|
46422
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46062
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46423
46063
|
style: {
|
|
46424
46064
|
width: '100%',
|
|
46425
46065
|
height: spinHeight,
|
|
@@ -46498,11 +46138,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46498
46138
|
// Firefox has low performance of map.
|
|
46499
46139
|
var CacheMap = /*#__PURE__*/function () {
|
|
46500
46140
|
function CacheMap() {
|
|
46501
|
-
|
|
46141
|
+
classCallCheck_classCallCheck(this, CacheMap);
|
|
46502
46142
|
this.maps = void 0;
|
|
46503
46143
|
this.maps = Object.create(null);
|
|
46504
46144
|
}
|
|
46505
|
-
|
|
46145
|
+
createClass_createClass(CacheMap, [{
|
|
46506
46146
|
key: "set",
|
|
46507
46147
|
value: function set(key, value) {
|
|
46508
46148
|
this.maps[key] = value;
|
|
@@ -46525,7 +46165,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46525
46165
|
|
|
46526
46166
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46527
46167
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46528
|
-
_React$useState2 =
|
|
46168
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46529
46169
|
updatedMark = _React$useState2[0],
|
|
46530
46170
|
setUpdatedMark = _React$useState2[1];
|
|
46531
46171
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46592,7 +46232,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46592
46232
|
es_raf.cancel(scrollRef.current);
|
|
46593
46233
|
if (typeof arg === 'number') {
|
|
46594
46234
|
syncScrollTop(arg);
|
|
46595
|
-
} else if (arg &&
|
|
46235
|
+
} else if (arg && esm_typeof_typeof(arg) === 'object') {
|
|
46596
46236
|
var index;
|
|
46597
46237
|
var align = arg.align;
|
|
46598
46238
|
if ('index' in arg) {
|
|
@@ -46748,11 +46388,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
46748
46388
|
|
|
46749
46389
|
function useDiffItem(data, getKey, onDiff) {
|
|
46750
46390
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
46751
|
-
_React$useState2 =
|
|
46391
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46752
46392
|
prevData = _React$useState2[0],
|
|
46753
46393
|
setPrevData = _React$useState2[1];
|
|
46754
46394
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
46755
|
-
_React$useState4 =
|
|
46395
|
+
_React$useState4 = esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
46756
46396
|
diffItem = _React$useState4[0],
|
|
46757
46397
|
setDiffItem = _React$useState4[1];
|
|
46758
46398
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -46767,7 +46407,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
46767
46407
|
}
|
|
46768
46408
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
46769
46409
|
|
|
46770
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
46410
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
46771
46411
|
/* harmony default export */ var isFirefox = (isFF);
|
|
46772
46412
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
46773
46413
|
|
|
@@ -46986,16 +46626,16 @@ function RawList(props, ref) {
|
|
|
46986
46626
|
onScroll = props.onScroll,
|
|
46987
46627
|
onVisibleChange = props.onVisibleChange,
|
|
46988
46628
|
innerProps = props.innerProps,
|
|
46989
|
-
restProps =
|
|
46629
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
46990
46630
|
// ================================= MISC =================================
|
|
46991
46631
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
46992
46632
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
46993
46633
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
46994
|
-
_useState2 =
|
|
46634
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
46995
46635
|
scrollTop = _useState2[0],
|
|
46996
46636
|
setScrollTop = _useState2[1];
|
|
46997
46637
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
46998
|
-
_useState4 =
|
|
46638
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
46999
46639
|
scrollMoving = _useState4[0],
|
|
47000
46640
|
setScrollMoving = _useState4[1];
|
|
47001
46641
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -47035,12 +46675,12 @@ function RawList(props, ref) {
|
|
|
47035
46675
|
});
|
|
47036
46676
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
47037
46677
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
47038
|
-
_useDiffItem2 =
|
|
46678
|
+
_useDiffItem2 = esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
47039
46679
|
diffItem = _useDiffItem2[0];
|
|
47040
46680
|
diffItemRef.current = diffItem;
|
|
47041
46681
|
// ================================ Height ================================
|
|
47042
46682
|
var _useHeights = useHeights(getKey, null, null),
|
|
47043
|
-
_useHeights2 =
|
|
46683
|
+
_useHeights2 = esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
47044
46684
|
setInstanceRef = _useHeights2[0],
|
|
47045
46685
|
collectHeight = _useHeights2[1],
|
|
47046
46686
|
heights = _useHeights2[2],
|
|
@@ -47146,7 +46786,7 @@ function RawList(props, ref) {
|
|
|
47146
46786
|
return newTop;
|
|
47147
46787
|
});
|
|
47148
46788
|
}),
|
|
47149
|
-
_useFrameWheel2 =
|
|
46789
|
+
_useFrameWheel2 = esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
47150
46790
|
onRawWheel = _useFrameWheel2[0],
|
|
47151
46791
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
47152
46792
|
// Mobile touch move
|
|
@@ -47200,7 +46840,7 @@ function RawList(props, ref) {
|
|
|
47200
46840
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
47201
46841
|
var componentStyle = null;
|
|
47202
46842
|
if (height) {
|
|
47203
|
-
componentStyle =
|
|
46843
|
+
componentStyle = objectSpread2_objectSpread2(defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
47204
46844
|
if (useVirtual) {
|
|
47205
46845
|
componentStyle.overflowY = 'hidden';
|
|
47206
46846
|
if (scrollMoving) {
|
|
@@ -47208,8 +46848,8 @@ function RawList(props, ref) {
|
|
|
47208
46848
|
}
|
|
47209
46849
|
}
|
|
47210
46850
|
}
|
|
47211
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47212
|
-
style:
|
|
46851
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
46852
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
47213
46853
|
position: 'relative'
|
|
47214
46854
|
}),
|
|
47215
46855
|
className: mergedClassName
|
|
@@ -47355,7 +46995,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
47355
46995
|
return values;
|
|
47356
46996
|
}
|
|
47357
46997
|
function removeLastEnabledValue(measureValues, values) {
|
|
47358
|
-
var newValues =
|
|
46998
|
+
var newValues = _toConsumableArray(values);
|
|
47359
46999
|
|
|
47360
47000
|
var removeIndex;
|
|
47361
47001
|
|
|
@@ -47489,7 +47129,7 @@ function flattenOptions(options) {
|
|
|
47489
47129
|
*/
|
|
47490
47130
|
|
|
47491
47131
|
function injectPropsWithOption(option) {
|
|
47492
|
-
var newOption =
|
|
47132
|
+
var newOption = _objectSpread2({}, option);
|
|
47493
47133
|
|
|
47494
47134
|
if (!('props' in newOption)) {
|
|
47495
47135
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47523,7 +47163,7 @@ function findValueOption(values, options) {
|
|
|
47523
47163
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47524
47164
|
|
|
47525
47165
|
if (!option) {
|
|
47526
|
-
option =
|
|
47166
|
+
option = _objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47527
47167
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47528
47168
|
}));
|
|
47529
47169
|
}
|
|
@@ -47542,7 +47182,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47542
47182
|
};
|
|
47543
47183
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47544
47184
|
|
|
47545
|
-
if (prevValItem &&
|
|
47185
|
+
if (prevValItem && typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47546
47186
|
result.label = prevValItem.label;
|
|
47547
47187
|
|
|
47548
47188
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -47590,7 +47230,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47590
47230
|
var filterFunc;
|
|
47591
47231
|
|
|
47592
47232
|
if (filterOption === false) {
|
|
47593
|
-
return
|
|
47233
|
+
return _toConsumableArray(options);
|
|
47594
47234
|
}
|
|
47595
47235
|
|
|
47596
47236
|
if (typeof filterOption === 'function') {
|
|
@@ -47614,7 +47254,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47614
47254
|
});
|
|
47615
47255
|
|
|
47616
47256
|
if (subOptions.length) {
|
|
47617
|
-
filteredOptions.push(
|
|
47257
|
+
filteredOptions.push(_objectSpread2(_objectSpread2({}, item), {}, {
|
|
47618
47258
|
options: subOptions
|
|
47619
47259
|
}));
|
|
47620
47260
|
}
|
|
@@ -47648,7 +47288,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
47648
47288
|
var list = str.split(token);
|
|
47649
47289
|
match = match || list.length > 1;
|
|
47650
47290
|
return list.reduce(function (prevList, unitStr) {
|
|
47651
|
-
return [].concat(
|
|
47291
|
+
return [].concat(_toConsumableArray(prevList), _toConsumableArray(separate(unitStr, restTokens)));
|
|
47652
47292
|
}, []).filter(function (unit) {
|
|
47653
47293
|
return unit;
|
|
47654
47294
|
});
|
|
@@ -47668,7 +47308,7 @@ function isValueDisabled(value, options) {
|
|
|
47668
47308
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
47669
47309
|
var values = commonUtil_toArray(value).slice().sort();
|
|
47670
47310
|
|
|
47671
|
-
var cloneOptions =
|
|
47311
|
+
var cloneOptions = _toConsumableArray(options); // Convert options value to set
|
|
47672
47312
|
|
|
47673
47313
|
|
|
47674
47314
|
var optionValues = new Set();
|
|
@@ -47688,7 +47328,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
47688
47328
|
if (!optionValues.has(val)) {
|
|
47689
47329
|
var _ref9;
|
|
47690
47330
|
|
|
47691
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
47331
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, _defineProperty(_ref9, optionLabelProp, item.label), _defineProperty(_ref9, "value", val), _ref9) : {
|
|
47692
47332
|
value: val
|
|
47693
47333
|
});
|
|
47694
47334
|
}
|
|
@@ -47954,7 +47594,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47954
47594
|
children = itemData.children;
|
|
47955
47595
|
var attrs = pickAttrs(itemData, true);
|
|
47956
47596
|
var mergedLabel = childrenAsData ? children : label;
|
|
47957
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47597
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
47958
47598
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
47959
47599
|
}, attrs, {
|
|
47960
47600
|
key: index,
|
|
@@ -48004,13 +47644,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48004
47644
|
children = data.children,
|
|
48005
47645
|
style = data.style,
|
|
48006
47646
|
className = data.className,
|
|
48007
|
-
otherProps =
|
|
47647
|
+
otherProps = _objectWithoutProperties(data, OptionList_excluded);
|
|
48008
47648
|
|
|
48009
47649
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
48010
47650
|
|
|
48011
47651
|
var selected = values.has(value);
|
|
48012
47652
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
48013
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
47653
|
+
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));
|
|
48014
47654
|
var mergedLabel = childrenAsData ? children : label;
|
|
48015
47655
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
48016
47656
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -48021,7 +47661,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48021
47661
|
optionTitle = title;
|
|
48022
47662
|
}
|
|
48023
47663
|
|
|
48024
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47664
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, passedProps, {
|
|
48025
47665
|
"aria-selected": selected,
|
|
48026
47666
|
className: optionClassName,
|
|
48027
47667
|
title: optionTitle,
|
|
@@ -48082,9 +47722,9 @@ function convertNodeToOption(node) {
|
|
|
48082
47722
|
_node$props = node.props,
|
|
48083
47723
|
children = _node$props.children,
|
|
48084
47724
|
value = _node$props.value,
|
|
48085
|
-
restProps =
|
|
47725
|
+
restProps = _objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
48086
47726
|
|
|
48087
|
-
return
|
|
47727
|
+
return _objectSpread2({
|
|
48088
47728
|
key: key,
|
|
48089
47729
|
value: value !== undefined ? value : key,
|
|
48090
47730
|
children: children
|
|
@@ -48102,13 +47742,13 @@ function convertChildrenToData(nodes) {
|
|
|
48102
47742
|
key = node.key,
|
|
48103
47743
|
_node$props2 = node.props,
|
|
48104
47744
|
children = _node$props2.children,
|
|
48105
|
-
restProps =
|
|
47745
|
+
restProps = _objectWithoutProperties(_node$props2, _excluded2);
|
|
48106
47746
|
|
|
48107
47747
|
if (optionOnly || !isSelectOptGroup) {
|
|
48108
47748
|
return convertNodeToOption(node);
|
|
48109
47749
|
}
|
|
48110
47750
|
|
|
48111
|
-
return
|
|
47751
|
+
return _objectSpread2(_objectSpread2({
|
|
48112
47752
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
48113
47753
|
label: key
|
|
48114
47754
|
}, restProps), {}, {
|
|
@@ -48210,7 +47850,7 @@ function InternalItem(props, ref) {
|
|
|
48210
47850
|
order = props.order,
|
|
48211
47851
|
_props$component = props.component,
|
|
48212
47852
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48213
|
-
restProps =
|
|
47853
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48214
47854
|
|
|
48215
47855
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48216
47856
|
|
|
@@ -48244,9 +47884,9 @@ function InternalItem(props, ref) {
|
|
|
48244
47884
|
overflowProps['aria-hidden'] = true;
|
|
48245
47885
|
}
|
|
48246
47886
|
|
|
48247
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
47887
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48248
47888
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48249
|
-
style:
|
|
47889
|
+
style: _objectSpread2(_objectSpread2({}, overflowStyle), style)
|
|
48250
47890
|
}, overflowProps, restProps, {
|
|
48251
47891
|
ref: ref
|
|
48252
47892
|
}), childNode);
|
|
@@ -48331,23 +47971,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48331
47971
|
if (!context) {
|
|
48332
47972
|
var _props$component = props.component,
|
|
48333
47973
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48334
|
-
_restProps =
|
|
47974
|
+
_restProps = _objectWithoutProperties(props, ["component"]);
|
|
48335
47975
|
|
|
48336
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
47976
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, _restProps, {
|
|
48337
47977
|
ref: ref
|
|
48338
47978
|
}));
|
|
48339
47979
|
}
|
|
48340
47980
|
|
|
48341
47981
|
var contextClassName = context.className,
|
|
48342
|
-
restContext =
|
|
47982
|
+
restContext = _objectWithoutProperties(context, ["className"]);
|
|
48343
47983
|
|
|
48344
47984
|
var className = props.className,
|
|
48345
|
-
restProps =
|
|
47985
|
+
restProps = _objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48346
47986
|
|
|
48347
47987
|
|
|
48348
47988
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48349
47989
|
value: null
|
|
48350
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
47990
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({
|
|
48351
47991
|
ref: ref,
|
|
48352
47992
|
className: classnames_default()(contextClassName, className)
|
|
48353
47993
|
}, restContext, restProps)));
|
|
@@ -48397,7 +48037,7 @@ function Overflow(props, ref) {
|
|
|
48397
48037
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48398
48038
|
itemComponent = props.itemComponent,
|
|
48399
48039
|
onVisibleChange = props.onVisibleChange,
|
|
48400
|
-
restProps =
|
|
48040
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48401
48041
|
|
|
48402
48042
|
var createUseState = useBatchFrameState();
|
|
48403
48043
|
var fullySSR = ssr === 'full';
|
|
@@ -48607,7 +48247,7 @@ function Overflow(props, ref) {
|
|
|
48607
48247
|
var key = getKey(item, index);
|
|
48608
48248
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48609
48249
|
key: key,
|
|
48610
|
-
value:
|
|
48250
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
|
|
48611
48251
|
order: index,
|
|
48612
48252
|
item: item,
|
|
48613
48253
|
itemKey: key,
|
|
@@ -48617,7 +48257,7 @@ function Overflow(props, ref) {
|
|
|
48617
48257
|
}, renderRawItem(item, index));
|
|
48618
48258
|
} : function (item, index) {
|
|
48619
48259
|
var key = getKey(item, index);
|
|
48620
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48260
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48621
48261
|
order: index,
|
|
48622
48262
|
key: key,
|
|
48623
48263
|
item: item,
|
|
@@ -48638,18 +48278,18 @@ function Overflow(props, ref) {
|
|
|
48638
48278
|
|
|
48639
48279
|
if (!renderRawRest) {
|
|
48640
48280
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48641
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48281
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48642
48282
|
} else if (renderRawRest) {
|
|
48643
48283
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48644
|
-
value:
|
|
48284
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48645
48285
|
}, renderRawRest(omittedItems));
|
|
48646
48286
|
}
|
|
48647
48287
|
|
|
48648
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48288
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48649
48289
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48650
48290
|
style: style,
|
|
48651
48291
|
ref: ref
|
|
48652
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48292
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48653
48293
|
order: mergedDisplayCount,
|
|
48654
48294
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
48655
48295
|
registerSize: registerSuffixSize,
|
|
@@ -48714,7 +48354,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48714
48354
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
48715
48355
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
48716
48356
|
style = _inputNode$props.style;
|
|
48717
|
-
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode,
|
|
48357
|
+
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode, _objectSpread2(_objectSpread2({
|
|
48718
48358
|
id: id,
|
|
48719
48359
|
ref: composeRef(ref, originRef),
|
|
48720
48360
|
disabled: disabled,
|
|
@@ -48723,7 +48363,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48723
48363
|
type: 'search',
|
|
48724
48364
|
autoFocus: autoFocus,
|
|
48725
48365
|
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),
|
|
48726
|
-
style:
|
|
48366
|
+
style: _objectSpread2(_objectSpread2({}, style), {}, {
|
|
48727
48367
|
opacity: editable ? null : 0
|
|
48728
48368
|
}),
|
|
48729
48369
|
role: 'combobox',
|
|
@@ -48871,7 +48511,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
48871
48511
|
|
|
48872
48512
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
48873
48513
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48874
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
48514
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), _defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
48875
48515
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
48876
48516
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48877
48517
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -49286,7 +48926,7 @@ var Selector = function Selector(props, ref) {
|
|
|
49286
48926
|
onInputCompositionStart: onInputCompositionStart,
|
|
49287
48927
|
onInputCompositionEnd: onInputCompositionEnd
|
|
49288
48928
|
};
|
|
49289
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
48929
|
+
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));
|
|
49290
48930
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
49291
48931
|
ref: domRef,
|
|
49292
48932
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -49331,7 +48971,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
49331
48971
|
|
|
49332
48972
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
49333
48973
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
49334
|
-
return
|
|
48974
|
+
return _objectSpread2(_objectSpread2({}, baseAlign), align);
|
|
49335
48975
|
}
|
|
49336
48976
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
49337
48977
|
var points = align.points;
|
|
@@ -49395,7 +49035,7 @@ function Mask_Mask(props) {
|
|
|
49395
49035
|
var motion = {};
|
|
49396
49036
|
|
|
49397
49037
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49398
|
-
motion =
|
|
49038
|
+
motion = _objectSpread2({
|
|
49399
49039
|
motionAppear: true
|
|
49400
49040
|
}, getMotion({
|
|
49401
49041
|
motion: maskMotion,
|
|
@@ -49405,7 +49045,7 @@ function Mask_Mask(props) {
|
|
|
49405
49045
|
}));
|
|
49406
49046
|
}
|
|
49407
49047
|
|
|
49408
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49048
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({}, motion, {
|
|
49409
49049
|
visible: visible,
|
|
49410
49050
|
removeOnLeave: true
|
|
49411
49051
|
}), function (_ref) {
|
|
@@ -50917,7 +50557,7 @@ function getElement(func) {
|
|
|
50917
50557
|
}
|
|
50918
50558
|
|
|
50919
50559
|
function getPoint(point) {
|
|
50920
|
-
if (
|
|
50560
|
+
if (typeof_typeof(point) !== 'object' || !point) return null;
|
|
50921
50561
|
return point;
|
|
50922
50562
|
}
|
|
50923
50563
|
|
|
@@ -51131,9 +50771,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51131
50771
|
}
|
|
51132
50772
|
|
|
51133
50773
|
if (status) {
|
|
51134
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
50774
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
51135
50775
|
var index, nextStatus;
|
|
51136
|
-
return
|
|
50776
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
51137
50777
|
while (1) {
|
|
51138
50778
|
switch (_context.prev = _context.next) {
|
|
51139
50779
|
case 0:
|
|
@@ -51306,7 +50946,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51306
50946
|
} // ======================== Motion ========================
|
|
51307
50947
|
|
|
51308
50948
|
|
|
51309
|
-
var motion =
|
|
50949
|
+
var motion = _objectSpread2({}, getMotion(props));
|
|
51310
50950
|
|
|
51311
50951
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
51312
50952
|
var originHandler = motion[eventName];
|
|
@@ -51339,7 +50979,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51339
50979
|
};
|
|
51340
50980
|
}); // ======================== Render ========================
|
|
51341
50981
|
|
|
51342
|
-
var mergedStyle =
|
|
50982
|
+
var mergedStyle = _objectSpread2(_objectSpread2({}, stretchStyle), {}, {
|
|
51343
50983
|
zIndex: zIndex,
|
|
51344
50984
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
51345
50985
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -51360,7 +51000,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51360
51000
|
}, children);
|
|
51361
51001
|
}
|
|
51362
51002
|
|
|
51363
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51003
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51364
51004
|
visible: visible,
|
|
51365
51005
|
ref: elementRef,
|
|
51366
51006
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51388,7 +51028,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51388
51028
|
onMouseLeave: onMouseLeave,
|
|
51389
51029
|
onMouseDownCapture: onMouseDown,
|
|
51390
51030
|
onTouchStartCapture: onTouchStart,
|
|
51391
|
-
style:
|
|
51031
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51392
51032
|
}, childNode));
|
|
51393
51033
|
});
|
|
51394
51034
|
});
|
|
@@ -51423,7 +51063,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51423
51063
|
};
|
|
51424
51064
|
}); // ======================== Render ========================
|
|
51425
51065
|
|
|
51426
|
-
var mergedStyle =
|
|
51066
|
+
var mergedStyle = _objectSpread2({
|
|
51427
51067
|
zIndex: zIndex
|
|
51428
51068
|
}, popupStyle);
|
|
51429
51069
|
|
|
@@ -51440,7 +51080,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51440
51080
|
childNode = popupRender(childNode);
|
|
51441
51081
|
}
|
|
51442
51082
|
|
|
51443
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51083
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51444
51084
|
visible: visible,
|
|
51445
51085
|
ref: elementRef,
|
|
51446
51086
|
removeOnLeave: true
|
|
@@ -51451,7 +51091,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51451
51091
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51452
51092
|
ref: motionRef,
|
|
51453
51093
|
className: mergedClassName,
|
|
51454
|
-
style:
|
|
51094
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51455
51095
|
}, childNode);
|
|
51456
51096
|
});
|
|
51457
51097
|
});
|
|
@@ -51472,7 +51112,7 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51472
51112
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51473
51113
|
var visible = _ref.visible,
|
|
51474
51114
|
mobile = _ref.mobile,
|
|
51475
|
-
props =
|
|
51115
|
+
props = _objectWithoutProperties(_ref, Popup_excluded);
|
|
51476
51116
|
|
|
51477
51117
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51478
51118
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
@@ -51484,7 +51124,7 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51484
51124
|
inMobile = _useState4[0],
|
|
51485
51125
|
setInMobile = _useState4[1];
|
|
51486
51126
|
|
|
51487
|
-
var cloneProps =
|
|
51127
|
+
var cloneProps = _objectSpread2(_objectSpread2({}, props), {}, {
|
|
51488
51128
|
visible: innerVisible
|
|
51489
51129
|
}); // We check mobile in visible changed here.
|
|
51490
51130
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51497,10 +51137,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51497
51137
|
setInMobile(isMobile());
|
|
51498
51138
|
}
|
|
51499
51139
|
}, [visible, mobile]);
|
|
51500
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51140
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, extends_extends({}, cloneProps, {
|
|
51501
51141
|
mobile: mobile,
|
|
51502
51142
|
ref: ref
|
|
51503
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51143
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, extends_extends({}, cloneProps, {
|
|
51504
51144
|
ref: ref
|
|
51505
51145
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51506
51146
|
|
|
@@ -51554,14 +51194,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51554
51194
|
|
|
51555
51195
|
function generateTrigger(PortalComponent) {
|
|
51556
51196
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51557
|
-
|
|
51197
|
+
_inherits(Trigger, _React$Component);
|
|
51558
51198
|
|
|
51559
|
-
var _super =
|
|
51199
|
+
var _super = _createSuper(Trigger);
|
|
51560
51200
|
|
|
51561
51201
|
function Trigger(props) {
|
|
51562
51202
|
var _this;
|
|
51563
51203
|
|
|
51564
|
-
|
|
51204
|
+
_classCallCheck(this, Trigger);
|
|
51565
51205
|
|
|
51566
51206
|
_this = _super.call(this, props);
|
|
51567
51207
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -51749,7 +51389,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51749
51389
|
} catch (err) {// Do nothing
|
|
51750
51390
|
}
|
|
51751
51391
|
|
|
51752
|
-
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(
|
|
51392
|
+
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(_assertThisInitialized(_this));
|
|
51753
51393
|
};
|
|
51754
51394
|
|
|
51755
51395
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -51810,7 +51450,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51810
51450
|
|
|
51811
51451
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
51812
51452
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
51813
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup,
|
|
51453
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup, extends_extends({
|
|
51814
51454
|
prefixCls: prefixCls,
|
|
51815
51455
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
51816
51456
|
visible: popupVisible,
|
|
@@ -51923,7 +51563,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51923
51563
|
return _this;
|
|
51924
51564
|
}
|
|
51925
51565
|
|
|
51926
|
-
|
|
51566
|
+
_createClass(Trigger, [{
|
|
51927
51567
|
key: "componentDidMount",
|
|
51928
51568
|
value: function componentDidMount() {
|
|
51929
51569
|
this.componentDidUpdate();
|
|
@@ -52248,7 +51888,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52248
51888
|
newChildProps.className = childrenClassName;
|
|
52249
51889
|
}
|
|
52250
51890
|
|
|
52251
|
-
var cloneProps =
|
|
51891
|
+
var cloneProps = _objectSpread2({}, newChildProps);
|
|
52252
51892
|
|
|
52253
51893
|
if (supportRef(child)) {
|
|
52254
51894
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -52389,7 +52029,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52389
52029
|
empty = props.empty,
|
|
52390
52030
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
52391
52031
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
52392
|
-
restProps =
|
|
52032
|
+
restProps = _objectWithoutProperties(props, SelectTrigger_excluded);
|
|
52393
52033
|
|
|
52394
52034
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
52395
52035
|
var popupNode = popupElement;
|
|
@@ -52413,7 +52053,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52413
52053
|
};
|
|
52414
52054
|
});
|
|
52415
52055
|
|
|
52416
|
-
var popupStyle =
|
|
52056
|
+
var popupStyle = _objectSpread2({
|
|
52417
52057
|
minWidth: containerWidth
|
|
52418
52058
|
}, dropdownStyle);
|
|
52419
52059
|
|
|
@@ -52423,7 +52063,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52423
52063
|
popupStyle.width = containerWidth;
|
|
52424
52064
|
}
|
|
52425
52065
|
|
|
52426
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
52066
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, extends_extends({}, restProps, {
|
|
52427
52067
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
52428
52068
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
52429
52069
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -52436,7 +52076,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52436
52076
|
popupAlign: dropdownAlign,
|
|
52437
52077
|
popupVisible: visible,
|
|
52438
52078
|
getPopupContainer: getPopupContainer,
|
|
52439
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52079
|
+
popupClassName: classnames_default()(dropdownClassName, _defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
52440
52080
|
popupStyle: popupStyle,
|
|
52441
52081
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
52442
52082
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52539,7 +52179,7 @@ function useCacheDisplayValue(values) {
|
|
|
52539
52179
|
var cacheLabel = valueLabels.get(item.value);
|
|
52540
52180
|
|
|
52541
52181
|
if (item.isCacheable && cacheLabel) {
|
|
52542
|
-
return
|
|
52182
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
52543
52183
|
label: cacheLabel
|
|
52544
52184
|
});
|
|
52545
52185
|
}
|
|
@@ -52701,7 +52341,7 @@ function generateSelector(config) {
|
|
|
52701
52341
|
onClear = props.onClear,
|
|
52702
52342
|
_props$internalProps = props.internalProps,
|
|
52703
52343
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
52704
|
-
restProps =
|
|
52344
|
+
restProps = _objectWithoutProperties(props, generate_excluded);
|
|
52705
52345
|
|
|
52706
52346
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
52707
52347
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -52839,7 +52479,7 @@ function generateSelector(config) {
|
|
|
52839
52479
|
|
|
52840
52480
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
52841
52481
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
52842
|
-
return
|
|
52482
|
+
return _toConsumableArray(mergedOptions);
|
|
52843
52483
|
}
|
|
52844
52484
|
|
|
52845
52485
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -52860,7 +52500,7 @@ function generateSelector(config) {
|
|
|
52860
52500
|
}
|
|
52861
52501
|
|
|
52862
52502
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
52863
|
-
return
|
|
52503
|
+
return _toConsumableArray(filteredOptions).sort(filterSort);
|
|
52864
52504
|
}
|
|
52865
52505
|
|
|
52866
52506
|
return filteredOptions;
|
|
@@ -52883,7 +52523,7 @@ function generateSelector(config) {
|
|
|
52883
52523
|
labelInValue: mergedLabelInValue,
|
|
52884
52524
|
optionLabelProp: mergedOptionLabelProp
|
|
52885
52525
|
});
|
|
52886
|
-
return
|
|
52526
|
+
return _objectSpread2(_objectSpread2({}, displayValue), {}, {
|
|
52887
52527
|
disabled: isValueDisabled(val, valueOptions)
|
|
52888
52528
|
});
|
|
52889
52529
|
});
|
|
@@ -52957,7 +52597,7 @@ function generateSelector(config) {
|
|
|
52957
52597
|
}); // We will cache option in case it removed by ajax
|
|
52958
52598
|
|
|
52959
52599
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
52960
|
-
var clone =
|
|
52600
|
+
var clone = _objectSpread2({}, option);
|
|
52961
52601
|
|
|
52962
52602
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
52963
52603
|
get: function get() {
|
|
@@ -53013,13 +52653,13 @@ function generateSelector(config) {
|
|
|
53013
52653
|
};
|
|
53014
52654
|
|
|
53015
52655
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
53016
|
-
onInternalSelect(newValue,
|
|
52656
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53017
52657
|
source: 'option'
|
|
53018
52658
|
}));
|
|
53019
52659
|
};
|
|
53020
52660
|
|
|
53021
52661
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
53022
|
-
onInternalSelect(newValue,
|
|
52662
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53023
52663
|
source: 'selection'
|
|
53024
52664
|
}));
|
|
53025
52665
|
}; // ============================= Input ==============================
|
|
@@ -53103,7 +52743,7 @@ function generateSelector(config) {
|
|
|
53103
52743
|
});
|
|
53104
52744
|
}
|
|
53105
52745
|
|
|
53106
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
52746
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), _toConsumableArray(patchRawValues))));
|
|
53107
52747
|
triggerChange(newRawValues);
|
|
53108
52748
|
newRawValues.forEach(function (newRawValue) {
|
|
53109
52749
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53132,7 +52772,7 @@ function generateSelector(config) {
|
|
|
53132
52772
|
return;
|
|
53133
52773
|
}
|
|
53134
52774
|
|
|
53135
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
52775
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [searchText])));
|
|
53136
52776
|
triggerChange(newRawValues);
|
|
53137
52777
|
newRawValues.forEach(function (newRawValue) {
|
|
53138
52778
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53265,7 +52905,7 @@ function generateSelector(config) {
|
|
|
53265
52905
|
// `tags` mode should move `searchValue` into values
|
|
53266
52906
|
if (mode === 'tags') {
|
|
53267
52907
|
triggerSearch('', false, false);
|
|
53268
|
-
triggerChange(Array.from(new Set([].concat(
|
|
52908
|
+
triggerChange(Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
53269
52909
|
} else if (mode === 'multiple') {
|
|
53270
52910
|
// `multiple` mode only clean the search value but not trigger event
|
|
53271
52911
|
setInnerSearchValue('');
|
|
@@ -53423,7 +53063,7 @@ function generateSelector(config) {
|
|
|
53423
53063
|
|
|
53424
53064
|
if (mergedShowArrow) {
|
|
53425
53065
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
53426
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53066
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), _defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
53427
53067
|
customizeIcon: inputIcon,
|
|
53428
53068
|
customizeIconProps: {
|
|
53429
53069
|
loading: loading,
|
|
@@ -53439,7 +53079,7 @@ function generateSelector(config) {
|
|
|
53439
53079
|
if (false) {} // ============================= Render =============================
|
|
53440
53080
|
|
|
53441
53081
|
|
|
53442
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
53082
|
+
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));
|
|
53443
53083
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
53444
53084
|
ref: triggerRef,
|
|
53445
53085
|
disabled: disabled,
|
|
@@ -53464,7 +53104,7 @@ function generateSelector(config) {
|
|
|
53464
53104
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
53465
53105
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
53466
53106
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
53467
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
53107
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, extends_extends({}, props, {
|
|
53468
53108
|
domRef: selectorDomRef,
|
|
53469
53109
|
prefixCls: prefixCls,
|
|
53470
53110
|
inputElement: customizeInputElement,
|
|
@@ -53490,7 +53130,7 @@ function generateSelector(config) {
|
|
|
53490
53130
|
return selectorNode;
|
|
53491
53131
|
}
|
|
53492
53132
|
|
|
53493
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
53133
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
53494
53134
|
className: mergedClassName
|
|
53495
53135
|
}, domProps, {
|
|
53496
53136
|
ref: containerRef,
|
|
@@ -53577,7 +53217,7 @@ function warningProps(props) {
|
|
|
53577
53217
|
if (value !== undefined && value !== null) {
|
|
53578
53218
|
var values = commonUtil_toArray(value);
|
|
53579
53219
|
es_warning(!labelInValue || values.every(function (val) {
|
|
53580
|
-
return
|
|
53220
|
+
return typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
53581
53221
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
53582
53222
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
53583
53223
|
} // Syntactic sugar should use correct children type
|
|
@@ -53691,14 +53331,14 @@ var RefSelect = generateSelector({
|
|
|
53691
53331
|
*/
|
|
53692
53332
|
|
|
53693
53333
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
53694
|
-
|
|
53334
|
+
_inherits(Select, _React$Component);
|
|
53695
53335
|
|
|
53696
|
-
var _super =
|
|
53336
|
+
var _super = _createSuper(Select);
|
|
53697
53337
|
|
|
53698
53338
|
function Select() {
|
|
53699
53339
|
var _this;
|
|
53700
53340
|
|
|
53701
|
-
|
|
53341
|
+
_classCallCheck(this, Select);
|
|
53702
53342
|
|
|
53703
53343
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53704
53344
|
args[_key] = arguments[_key];
|
|
@@ -53718,10 +53358,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
53718
53358
|
return _this;
|
|
53719
53359
|
}
|
|
53720
53360
|
|
|
53721
|
-
|
|
53361
|
+
_createClass(Select, [{
|
|
53722
53362
|
key: "render",
|
|
53723
53363
|
value: function render() {
|
|
53724
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
53364
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, extends_extends({
|
|
53725
53365
|
ref: this.selectRef
|
|
53726
53366
|
}, this.props));
|
|
53727
53367
|
}
|
|
@@ -53902,7 +53542,7 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
53902
53542
|
} // ===================== Icons =====================
|
|
53903
53543
|
|
|
53904
53544
|
|
|
53905
|
-
var _getIcons = getIcons(
|
|
53545
|
+
var _getIcons = getIcons(extends_extends(extends_extends({}, props), {
|
|
53906
53546
|
multiple: isMultiple,
|
|
53907
53547
|
prefixCls: prefixCls
|
|
53908
53548
|
})),
|
|
@@ -53912,10 +53552,10 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
53912
53552
|
clearIcon = _getIcons.clearIcon;
|
|
53913
53553
|
|
|
53914
53554
|
var selectProps = omit(props, ['suffixIcon', 'itemIcon']);
|
|
53915
|
-
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName,
|
|
53555
|
+
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName, _defineProperty({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
|
|
53916
53556
|
var mergedSize = customizeSize || size;
|
|
53917
|
-
var mergedClassName = classnames_default()((_classNames2 = {},
|
|
53918
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es,
|
|
53557
|
+
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);
|
|
53558
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es, extends_extends({
|
|
53919
53559
|
ref: ref,
|
|
53920
53560
|
virtual: virtual,
|
|
53921
53561
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth
|
|
@@ -55207,9 +54847,9 @@ function LiveOnlineCount(_ref) {
|
|
|
55207
54847
|
};
|
|
55208
54848
|
|
|
55209
54849
|
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
55210
|
-
LiveOnlineCount_asyncToGenerator( /*#__PURE__*/
|
|
54850
|
+
LiveOnlineCount_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
55211
54851
|
var count, likesData, currentCount;
|
|
55212
|
-
return
|
|
54852
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
55213
54853
|
while (1) {
|
|
55214
54854
|
switch (_context.prev = _context.next) {
|
|
55215
54855
|
case 0:
|
|
@@ -56065,7 +55705,7 @@ function TabNode(_ref, ref) {
|
|
|
56065
55705
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
56066
55706
|
key: key,
|
|
56067
55707
|
ref: ref,
|
|
56068
|
-
className: classnames_default()(tabPrefix, (_classNames = {},
|
|
55708
|
+
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)),
|
|
56069
55709
|
style: style,
|
|
56070
55710
|
onClick: onInternalClick
|
|
56071
55711
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -56128,7 +55768,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
56128
55768
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
56129
55769
|
}
|
|
56130
55770
|
|
|
56131
|
-
var entity = map.get(key) ||
|
|
55771
|
+
var entity = map.get(key) || _objectSpread2({}, data); // Right
|
|
56132
55772
|
|
|
56133
55773
|
|
|
56134
55774
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -56223,7 +55863,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56223
55863
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56224
55864
|
|
|
56225
55865
|
function mergeProps(origin, target) {
|
|
56226
|
-
var clone =
|
|
55866
|
+
var clone = _objectSpread2({}, origin);
|
|
56227
55867
|
|
|
56228
55868
|
Object.keys(target).forEach(function (key) {
|
|
56229
55869
|
var value = target[key];
|
|
@@ -56238,7 +55878,7 @@ function mergeProps(origin, target) {
|
|
|
56238
55878
|
function InheritableContextProvider(_ref) {
|
|
56239
55879
|
var children = _ref.children,
|
|
56240
55880
|
locked = _ref.locked,
|
|
56241
|
-
restProps =
|
|
55881
|
+
restProps = _objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56242
55882
|
|
|
56243
55883
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56244
55884
|
var inheritableContext = useMemo(function () {
|
|
@@ -56294,7 +55934,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56294
55934
|
|
|
56295
55935
|
function warnItemProp(_ref) {
|
|
56296
55936
|
var item = _ref.item,
|
|
56297
|
-
restInfo =
|
|
55937
|
+
restInfo = _objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56298
55938
|
|
|
56299
55939
|
Object.defineProperty(restInfo, 'item', {
|
|
56300
55940
|
get: function get() {
|
|
@@ -56314,7 +55954,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56314
55954
|
var iconNode;
|
|
56315
55955
|
|
|
56316
55956
|
if (typeof icon === 'function') {
|
|
56317
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
55957
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, _objectSpread2({}, props));
|
|
56318
55958
|
} else {
|
|
56319
55959
|
// Compatible for origin definition
|
|
56320
55960
|
iconNode = icon;
|
|
@@ -56355,7 +55995,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56355
55995
|
function useFullPath(eventKey) {
|
|
56356
55996
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56357
55997
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56358
|
-
return eventKey !== undefined ? [].concat(
|
|
55998
|
+
return eventKey !== undefined ? [].concat(_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56359
55999
|
}, [parentKeyPath, eventKey]);
|
|
56360
56000
|
}
|
|
56361
56001
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56412,28 +56052,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56412
56052
|
// This should be removed from doc & api in future.
|
|
56413
56053
|
|
|
56414
56054
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56415
|
-
|
|
56055
|
+
_inherits(LegacyMenuItem, _React$Component);
|
|
56416
56056
|
|
|
56417
|
-
var _super =
|
|
56057
|
+
var _super = _createSuper(LegacyMenuItem);
|
|
56418
56058
|
|
|
56419
56059
|
function LegacyMenuItem() {
|
|
56420
|
-
|
|
56060
|
+
_classCallCheck(this, LegacyMenuItem);
|
|
56421
56061
|
|
|
56422
56062
|
return _super.apply(this, arguments);
|
|
56423
56063
|
}
|
|
56424
56064
|
|
|
56425
|
-
|
|
56065
|
+
_createClass(LegacyMenuItem, [{
|
|
56426
56066
|
key: "render",
|
|
56427
56067
|
value: function render() {
|
|
56428
56068
|
var _this$props = this.props,
|
|
56429
56069
|
title = _this$props.title,
|
|
56430
56070
|
attribute = _this$props.attribute,
|
|
56431
56071
|
elementRef = _this$props.elementRef,
|
|
56432
|
-
restProps =
|
|
56072
|
+
restProps = _objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56433
56073
|
|
|
56434
56074
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56435
56075
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56436
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56076
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({}, attribute, {
|
|
56437
56077
|
title: typeof title === 'string' ? title : undefined
|
|
56438
56078
|
}, passedProps, {
|
|
56439
56079
|
ref: elementRef
|
|
@@ -56464,7 +56104,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56464
56104
|
onClick = props.onClick,
|
|
56465
56105
|
onKeyDown = props.onKeyDown,
|
|
56466
56106
|
onFocus = props.onFocus,
|
|
56467
|
-
restProps =
|
|
56107
|
+
restProps = _objectWithoutProperties(props, MenuItem_excluded2);
|
|
56468
56108
|
|
|
56469
56109
|
var domDataId = useMenuId(eventKey);
|
|
56470
56110
|
|
|
@@ -56493,7 +56133,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56493
56133
|
return {
|
|
56494
56134
|
key: eventKey,
|
|
56495
56135
|
// Note: For legacy code is reversed which not like other antd component
|
|
56496
|
-
keyPath:
|
|
56136
|
+
keyPath: _toConsumableArray(connectedKeys).reverse(),
|
|
56497
56137
|
item: legacyMenuItemRef.current,
|
|
56498
56138
|
domEvent: e
|
|
56499
56139
|
};
|
|
@@ -56504,7 +56144,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56504
56144
|
|
|
56505
56145
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56506
56146
|
active = _useActive.active,
|
|
56507
|
-
activeProps =
|
|
56147
|
+
activeProps = _objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56508
56148
|
|
|
56509
56149
|
|
|
56510
56150
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56549,7 +56189,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56549
56189
|
optionRoleProps['aria-selected'] = selected;
|
|
56550
56190
|
}
|
|
56551
56191
|
|
|
56552
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56192
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, extends_extends({
|
|
56553
56193
|
ref: legacyMenuItemRef,
|
|
56554
56194
|
elementRef: elementRef,
|
|
56555
56195
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56558,13 +56198,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56558
56198
|
}, restProps, activeProps, optionRoleProps, {
|
|
56559
56199
|
component: "li",
|
|
56560
56200
|
"aria-disabled": disabled,
|
|
56561
|
-
style:
|
|
56562
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56201
|
+
style: _objectSpread2(_objectSpread2({}, directionStyle), style),
|
|
56202
|
+
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),
|
|
56563
56203
|
onClick: onInternalClick,
|
|
56564
56204
|
onKeyDown: onInternalKeyDown,
|
|
56565
56205
|
onFocus: onInternalFocus
|
|
56566
56206
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56567
|
-
props:
|
|
56207
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
56568
56208
|
isSelected: selected
|
|
56569
56209
|
}),
|
|
56570
56210
|
icon: mergedItemIcon
|
|
@@ -56617,7 +56257,7 @@ function parseChildren(children, keyPath) {
|
|
|
56617
56257
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56618
56258
|
|
|
56619
56259
|
if (emptyKey) {
|
|
56620
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56260
|
+
eventKey = "tmp_key-".concat([].concat(_toConsumableArray(keyPath), [index]).join('-'));
|
|
56621
56261
|
}
|
|
56622
56262
|
|
|
56623
56263
|
var cloneProps = {
|
|
@@ -56665,14 +56305,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56665
56305
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56666
56306
|
var className = _ref.className,
|
|
56667
56307
|
children = _ref.children,
|
|
56668
|
-
restProps =
|
|
56308
|
+
restProps = _objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56669
56309
|
|
|
56670
56310
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56671
56311
|
prefixCls = _React$useContext.prefixCls,
|
|
56672
56312
|
mode = _React$useContext.mode,
|
|
56673
56313
|
rtl = _React$useContext.rtl;
|
|
56674
56314
|
|
|
56675
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
56315
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", extends_extends({
|
|
56676
56316
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56677
56317
|
}, restProps, {
|
|
56678
56318
|
"data-menu-list": true,
|
|
@@ -56789,11 +56429,11 @@ function PopupTrigger(_ref) {
|
|
|
56789
56429
|
innerVisible = _React$useState2[0],
|
|
56790
56430
|
setInnerVisible = _React$useState2[1];
|
|
56791
56431
|
|
|
56792
|
-
var placement = rtl ?
|
|
56432
|
+
var placement = rtl ? _objectSpread2(_objectSpread2({}, placementsRtl), builtinPlacements) : _objectSpread2(_objectSpread2({}, placements), builtinPlacements);
|
|
56793
56433
|
var popupPlacement = popupPlacementMap[mode];
|
|
56794
56434
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
56795
56435
|
|
|
56796
|
-
var mergedMotion =
|
|
56436
|
+
var mergedMotion = _objectSpread2(_objectSpread2({}, targetMotion), {}, {
|
|
56797
56437
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
56798
56438
|
removeOnLeave: false,
|
|
56799
56439
|
motionAppear: true
|
|
@@ -56811,7 +56451,7 @@ function PopupTrigger(_ref) {
|
|
|
56811
56451
|
}, [visible]);
|
|
56812
56452
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
56813
56453
|
prefixCls: prefixCls,
|
|
56814
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
56454
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), _defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
56815
56455
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
56816
56456
|
getPopupContainer: getPopupContainer,
|
|
56817
56457
|
builtinPlacements: placement,
|
|
@@ -56871,7 +56511,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56871
56511
|
}
|
|
56872
56512
|
}, [mode]); // ================================= Render =================================
|
|
56873
56513
|
|
|
56874
|
-
var mergedMotion =
|
|
56514
|
+
var mergedMotion = _objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
56875
56515
|
|
|
56876
56516
|
|
|
56877
56517
|
if (keyPath.length > 1) {
|
|
@@ -56896,7 +56536,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56896
56536
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
56897
56537
|
mode: fixedMode,
|
|
56898
56538
|
locked: !sameModeRef.current
|
|
56899
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
56539
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
56900
56540
|
visible: mergedOpen
|
|
56901
56541
|
}, mergedMotion, {
|
|
56902
56542
|
forceRender: forceSubMenuRender,
|
|
@@ -56959,7 +56599,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56959
56599
|
onTitleClick = props.onTitleClick,
|
|
56960
56600
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
56961
56601
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
56962
|
-
restProps =
|
|
56602
|
+
restProps = _objectWithoutProperties(props, SubMenu_excluded);
|
|
56963
56603
|
|
|
56964
56604
|
var domDataId = useMenuId(eventKey);
|
|
56965
56605
|
|
|
@@ -57002,7 +56642,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57002
56642
|
|
|
57003
56643
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
57004
56644
|
active = _useActive.active,
|
|
57005
|
-
activeProps =
|
|
56645
|
+
activeProps = _objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
57006
56646
|
|
|
57007
56647
|
|
|
57008
56648
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
@@ -57087,7 +56727,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57087
56727
|
|
|
57088
56728
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
57089
56729
|
|
|
57090
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
56730
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
57091
56731
|
role: "menuitem",
|
|
57092
56732
|
style: directionStyle,
|
|
57093
56733
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -57103,7 +56743,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57103
56743
|
onFocus: onInternalFocus
|
|
57104
56744
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
57105
56745
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
57106
|
-
props:
|
|
56746
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
57107
56747
|
isOpen: open,
|
|
57108
56748
|
// [Legacy] Not sure why need this mark
|
|
57109
56749
|
isSubMenu: true
|
|
@@ -57141,12 +56781,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57141
56781
|
} // >>>>> List node
|
|
57142
56782
|
|
|
57143
56783
|
|
|
57144
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56784
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({
|
|
57145
56785
|
role: "none"
|
|
57146
56786
|
}, restProps, {
|
|
57147
56787
|
component: "li",
|
|
57148
56788
|
style: style,
|
|
57149
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
56789
|
+
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)),
|
|
57150
56790
|
onMouseEnter: onInternalMouseEnter,
|
|
57151
56791
|
onMouseLeave: onInternalMouseLeave
|
|
57152
56792
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -57239,7 +56879,7 @@ function focusable(node) {
|
|
|
57239
56879
|
function getFocusNodeList(node) {
|
|
57240
56880
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
57241
56881
|
|
|
57242
|
-
var res =
|
|
56882
|
+
var res = _toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
57243
56883
|
return focusable(child, includePositive);
|
|
57244
56884
|
});
|
|
57245
56885
|
|
|
@@ -57319,9 +56959,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
57319
56959
|
};
|
|
57320
56960
|
}
|
|
57321
56961
|
|
|
57322
|
-
var inline = (_inline = {},
|
|
57323
|
-
var horizontal = (_horizontal = {},
|
|
57324
|
-
var vertical = (_vertical = {},
|
|
56962
|
+
var inline = (_inline = {}, _defineProperty(_inline, UP, prev), _defineProperty(_inline, DOWN, next), _inline);
|
|
56963
|
+
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);
|
|
56964
|
+
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);
|
|
57325
56965
|
var offsets = {
|
|
57326
56966
|
inline: inline,
|
|
57327
56967
|
horizontal: horizontal,
|
|
@@ -57685,7 +57325,7 @@ function useKeyRecords() {
|
|
|
57685
57325
|
}, [getKeyPath]);
|
|
57686
57326
|
|
|
57687
57327
|
var getKeys = function getKeys() {
|
|
57688
|
-
var keys =
|
|
57328
|
+
var keys = _toConsumableArray(key2pathRef.current.keys());
|
|
57689
57329
|
|
|
57690
57330
|
if (overflowKeys.length) {
|
|
57691
57331
|
keys.push(OVERFLOW_KEY);
|
|
@@ -57702,7 +57342,7 @@ function useKeyRecords() {
|
|
|
57702
57342
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
57703
57343
|
var pathKeys = new Set();
|
|
57704
57344
|
|
|
57705
|
-
|
|
57345
|
+
_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
57706
57346
|
if (pathKey.startsWith(connectedPath)) {
|
|
57707
57347
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
57708
57348
|
}
|
|
@@ -57823,7 +57463,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57823
57463
|
openTransitionName = props.openTransitionName,
|
|
57824
57464
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
57825
57465
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
57826
|
-
restProps =
|
|
57466
|
+
restProps = _objectWithoutProperties(props, Menu_excluded);
|
|
57827
57467
|
|
|
57828
57468
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
57829
57469
|
|
|
@@ -57977,7 +57617,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57977
57617
|
return key !== targetKey;
|
|
57978
57618
|
});
|
|
57979
57619
|
} else {
|
|
57980
|
-
newSelectKeys = [].concat(
|
|
57620
|
+
newSelectKeys = [].concat(_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
57981
57621
|
}
|
|
57982
57622
|
} else {
|
|
57983
57623
|
newSelectKeys = [targetKey];
|
|
@@ -57985,7 +57625,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57985
57625
|
|
|
57986
57626
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
57987
57627
|
|
|
57988
|
-
var selectInfo =
|
|
57628
|
+
var selectInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
57989
57629
|
selectedKeys: newSelectKeys
|
|
57990
57630
|
});
|
|
57991
57631
|
|
|
@@ -58063,13 +57703,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58063
57703
|
);
|
|
58064
57704
|
}); // >>>>> Container
|
|
58065
57705
|
|
|
58066
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
57706
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, extends_extends({
|
|
58067
57707
|
id: id,
|
|
58068
57708
|
ref: mergedRef,
|
|
58069
57709
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
58070
57710
|
component: "ul",
|
|
58071
57711
|
itemComponent: es_MenuItem,
|
|
58072
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
57712
|
+
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)),
|
|
58073
57713
|
dir: direction,
|
|
58074
57714
|
style: style,
|
|
58075
57715
|
role: "menu",
|
|
@@ -58163,13 +57803,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58163
57803
|
title = _ref.title,
|
|
58164
57804
|
eventKey = _ref.eventKey,
|
|
58165
57805
|
children = _ref.children,
|
|
58166
|
-
restProps =
|
|
57806
|
+
restProps = _objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58167
57807
|
|
|
58168
57808
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58169
57809
|
prefixCls = _React$useContext.prefixCls;
|
|
58170
57810
|
|
|
58171
57811
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58172
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
57812
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", extends_extends({}, restProps, {
|
|
58173
57813
|
onClick: function onClick(e) {
|
|
58174
57814
|
return e.stopPropagation();
|
|
58175
57815
|
},
|
|
@@ -58184,7 +57824,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58184
57824
|
|
|
58185
57825
|
function MenuItemGroup(_ref2) {
|
|
58186
57826
|
var children = _ref2.children,
|
|
58187
|
-
props =
|
|
57827
|
+
props = _objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58188
57828
|
|
|
58189
57829
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58190
57830
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58312,7 +57952,7 @@ function Dropdown(props, ref) {
|
|
|
58312
57952
|
visible = props.visible,
|
|
58313
57953
|
_props$trigger = props.trigger,
|
|
58314
57954
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58315
|
-
otherProps =
|
|
57955
|
+
otherProps = _objectWithoutProperties(props, Dropdown_excluded);
|
|
58316
57956
|
|
|
58317
57957
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58318
57958
|
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
@@ -58423,12 +58063,12 @@ function Dropdown(props, ref) {
|
|
|
58423
58063
|
triggerHideAction = ['click'];
|
|
58424
58064
|
}
|
|
58425
58065
|
|
|
58426
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58066
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, _objectSpread2(_objectSpread2({
|
|
58427
58067
|
builtinPlacements: placements
|
|
58428
58068
|
}, otherProps), {}, {
|
|
58429
58069
|
prefixCls: prefixCls,
|
|
58430
58070
|
ref: triggerRef,
|
|
58431
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58071
|
+
popupClassName: classnames_default()(overlayClassName, _defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58432
58072
|
popupStyle: overlayStyle,
|
|
58433
58073
|
action: trigger,
|
|
58434
58074
|
showAction: showAction,
|
|
@@ -58632,14 +58272,14 @@ function OperationNode(_ref, ref) {
|
|
|
58632
58272
|
}
|
|
58633
58273
|
}, [open]); // ========================= Render =========================
|
|
58634
58274
|
|
|
58635
|
-
var moreStyle =
|
|
58275
|
+
var moreStyle = _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
58636
58276
|
|
|
58637
58277
|
if (!tabs.length) {
|
|
58638
58278
|
moreStyle.visibility = 'hidden';
|
|
58639
58279
|
moreStyle.order = 1;
|
|
58640
58280
|
}
|
|
58641
58281
|
|
|
58642
|
-
var overlayClassName = classnames_default()(
|
|
58282
|
+
var overlayClassName = classnames_default()(_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
58643
58283
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
58644
58284
|
prefixCls: dropdownPrefix,
|
|
58645
58285
|
overlay: menu,
|
|
@@ -58918,7 +58558,7 @@ var ExtraContent = function ExtraContent(_ref) {
|
|
|
58918
58558
|
|
|
58919
58559
|
var assertExtra = {};
|
|
58920
58560
|
|
|
58921
|
-
if (extra &&
|
|
58561
|
+
if (extra && typeof_typeof(extra) === 'object' && ! /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(extra)) {
|
|
58922
58562
|
assertExtra = extra;
|
|
58923
58563
|
} else {
|
|
58924
58564
|
assertExtra.right = extra;
|
|
@@ -59168,7 +58808,7 @@ function TabNavList(props, ref) {
|
|
|
59168
58808
|
}, {
|
|
59169
58809
|
width: addWidth,
|
|
59170
58810
|
height: addHeight
|
|
59171
|
-
},
|
|
58811
|
+
}, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
59172
58812
|
tabs: tabs
|
|
59173
58813
|
})),
|
|
59174
58814
|
_useVisibleRange2 = slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
@@ -59260,7 +58900,7 @@ function TabNavList(props, ref) {
|
|
|
59260
58900
|
|
|
59261
58901
|
var startHiddenTabs = tabs.slice(0, visibleStart);
|
|
59262
58902
|
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
|
59263
|
-
var hiddenTabs = [].concat(
|
|
58903
|
+
var hiddenTabs = [].concat(_toConsumableArray(startHiddenTabs), _toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
59264
58904
|
|
|
59265
58905
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59266
58906
|
_useState16 = slicedToArray_slicedToArray(_useState15, 2),
|
|
@@ -59346,7 +58986,7 @@ function TabNavList(props, ref) {
|
|
|
59346
58986
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59347
58987
|
onResize: onListHolderResize
|
|
59348
58988
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59349
|
-
className: classnames_default()(wrapPrefix, (_classNames = {},
|
|
58989
|
+
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)),
|
|
59350
58990
|
ref: tabsWrapperRef
|
|
59351
58991
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59352
58992
|
onResize: onListHolderResize
|
|
@@ -59362,13 +59002,13 @@ function TabNavList(props, ref) {
|
|
|
59362
59002
|
prefixCls: prefixCls,
|
|
59363
59003
|
locale: locale,
|
|
59364
59004
|
editable: editable,
|
|
59365
|
-
style:
|
|
59005
|
+
style: _objectSpread2(_objectSpread2({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {
|
|
59366
59006
|
visibility: hasDropdown ? 'hidden' : null
|
|
59367
59007
|
})
|
|
59368
59008
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59369
|
-
className: classnames_default()("".concat(prefixCls, "-ink-bar"),
|
|
59009
|
+
className: classnames_default()("".concat(prefixCls, "-ink-bar"), _defineProperty({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
|
59370
59010
|
style: inkStyle
|
|
59371
|
-
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode,
|
|
59011
|
+
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode, extends_extends({}, props, {
|
|
59372
59012
|
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
|
59373
59013
|
ref: operationsRef,
|
|
59374
59014
|
prefixCls: prefixCls,
|
|
@@ -59408,8 +59048,8 @@ function TabPanelList(_ref) {
|
|
|
59408
59048
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59409
59049
|
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
|
59410
59050
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59411
|
-
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition),
|
|
59412
|
-
style: activeIndex && tabPaneAnimated ?
|
|
59051
|
+
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), _defineProperty({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated)),
|
|
59052
|
+
style: activeIndex && tabPaneAnimated ? _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', "-".concat(activeIndex, "00%")) : null
|
|
59413
59053
|
}, tabs.map(function (tab) {
|
|
59414
59054
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(tab.node, {
|
|
59415
59055
|
key: tab.key,
|
|
@@ -59469,7 +59109,7 @@ function TabPane(_ref) {
|
|
|
59469
59109
|
tabIndex: active ? 0 : -1,
|
|
59470
59110
|
"aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
|
|
59471
59111
|
"aria-hidden": !active,
|
|
59472
|
-
style:
|
|
59112
|
+
style: _objectSpread2(_objectSpread2({}, mergedStyle), style),
|
|
59473
59113
|
className: classnames_default()("".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), className)
|
|
59474
59114
|
}, (active || visited || forceRender) && children);
|
|
59475
59115
|
}
|
|
@@ -59509,7 +59149,7 @@ function parseTabList(children) {
|
|
|
59509
59149
|
return toArray(children).map(function (node) {
|
|
59510
59150
|
if ( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(node)) {
|
|
59511
59151
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
59512
|
-
return
|
|
59152
|
+
return _objectSpread2(_objectSpread2({
|
|
59513
59153
|
key: key
|
|
59514
59154
|
}, node.props), {}, {
|
|
59515
59155
|
node: node
|
|
@@ -59552,7 +59192,7 @@ function Tabs(_ref, ref) {
|
|
|
59552
59192
|
onChange = _ref.onChange,
|
|
59553
59193
|
onTabClick = _ref.onTabClick,
|
|
59554
59194
|
onTabScroll = _ref.onTabScroll,
|
|
59555
|
-
restProps =
|
|
59195
|
+
restProps = _objectWithoutProperties(_ref, Tabs_excluded);
|
|
59556
59196
|
|
|
59557
59197
|
var tabs = parseTabList(children);
|
|
59558
59198
|
var rtl = direction === 'rtl';
|
|
@@ -59569,10 +59209,10 @@ function Tabs(_ref, ref) {
|
|
|
59569
59209
|
tabPane: true
|
|
59570
59210
|
};
|
|
59571
59211
|
} else {
|
|
59572
|
-
mergedAnimated =
|
|
59212
|
+
mergedAnimated = _objectSpread2({
|
|
59573
59213
|
inkBar: true,
|
|
59574
59214
|
tabPane: false
|
|
59575
|
-
},
|
|
59215
|
+
}, typeof_typeof(animated) === 'object' ? animated : {});
|
|
59576
59216
|
} // ======================== Mobile ========================
|
|
59577
59217
|
|
|
59578
59218
|
|
|
@@ -59667,7 +59307,7 @@ function Tabs(_ref, ref) {
|
|
|
59667
59307
|
};
|
|
59668
59308
|
var tabNavBar;
|
|
59669
59309
|
|
|
59670
|
-
var tabNavBarProps =
|
|
59310
|
+
var tabNavBarProps = _objectSpread2(_objectSpread2({}, sharedProps), {}, {
|
|
59671
59311
|
editable: editable,
|
|
59672
59312
|
locale: locale,
|
|
59673
59313
|
moreIcon: moreIcon,
|
|
@@ -59691,11 +59331,11 @@ function Tabs(_ref, ref) {
|
|
|
59691
59331
|
tabs: tabs,
|
|
59692
59332
|
prefixCls: prefixCls
|
|
59693
59333
|
}
|
|
59694
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
59334
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
59695
59335
|
ref: ref,
|
|
59696
59336
|
id: id,
|
|
59697
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {},
|
|
59698
|
-
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList,
|
|
59337
|
+
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)
|
|
59338
|
+
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList, extends_extends({
|
|
59699
59339
|
destroyInactiveTabPane: destroyInactiveTabPane
|
|
59700
59340
|
}, sharedProps, {
|
|
59701
59341
|
animated: mergedAnimated
|
|
@@ -59781,11 +59421,11 @@ function tabs_Tabs(_a) {
|
|
|
59781
59421
|
var _classNames;
|
|
59782
59422
|
|
|
59783
59423
|
var size = propSize !== undefined ? propSize : contextSize;
|
|
59784
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es,
|
|
59424
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es, extends_extends({
|
|
59785
59425
|
direction: direction,
|
|
59786
59426
|
moreTransitionName: "".concat(rootPrefixCls, "-slide-up")
|
|
59787
59427
|
}, props, {
|
|
59788
|
-
className: classnames_default()((_classNames = {},
|
|
59428
|
+
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),
|
|
59789
59429
|
editable: editable,
|
|
59790
59430
|
moreIcon: moreIcon,
|
|
59791
59431
|
prefixCls: prefixCls
|
|
@@ -59893,7 +59533,7 @@ var Pager = function Pager(props) {
|
|
|
59893
59533
|
var _classNames;
|
|
59894
59534
|
|
|
59895
59535
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
59896
|
-
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {},
|
|
59536
|
+
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));
|
|
59897
59537
|
|
|
59898
59538
|
var handleClick = function handleClick() {
|
|
59899
59539
|
props.onClick(props.page);
|
|
@@ -59938,14 +59578,14 @@ var Pager = function Pager(props) {
|
|
|
59938
59578
|
|
|
59939
59579
|
|
|
59940
59580
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
59941
|
-
|
|
59581
|
+
_inherits(Options, _React$Component);
|
|
59942
59582
|
|
|
59943
|
-
var _super =
|
|
59583
|
+
var _super = _createSuper(Options);
|
|
59944
59584
|
|
|
59945
59585
|
function Options() {
|
|
59946
59586
|
var _this;
|
|
59947
59587
|
|
|
59948
|
-
|
|
59588
|
+
_classCallCheck(this, Options);
|
|
59949
59589
|
|
|
59950
59590
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59951
59591
|
args[_key] = arguments[_key];
|
|
@@ -60011,7 +59651,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
60011
59651
|
return _this;
|
|
60012
59652
|
}
|
|
60013
59653
|
|
|
60014
|
-
|
|
59654
|
+
_createClass(Options, [{
|
|
60015
59655
|
key: "getValidValue",
|
|
60016
59656
|
value: function getValidValue() {
|
|
60017
59657
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -60168,14 +59808,14 @@ function calculatePage(p, state, props) {
|
|
|
60168
59808
|
}
|
|
60169
59809
|
|
|
60170
59810
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
60171
|
-
|
|
59811
|
+
_inherits(Pagination, _React$Component);
|
|
60172
59812
|
|
|
60173
|
-
var _super =
|
|
59813
|
+
var _super = _createSuper(Pagination);
|
|
60174
59814
|
|
|
60175
59815
|
function Pagination(props) {
|
|
60176
59816
|
var _this;
|
|
60177
59817
|
|
|
60178
|
-
|
|
59818
|
+
_classCallCheck(this, Pagination);
|
|
60179
59819
|
|
|
60180
59820
|
_this = _super.call(this, props);
|
|
60181
59821
|
|
|
@@ -60196,7 +59836,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60196
59836
|
});
|
|
60197
59837
|
|
|
60198
59838
|
if (typeof icon === 'function') {
|
|
60199
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon,
|
|
59839
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon, _objectSpread2({}, _this.props));
|
|
60200
59840
|
}
|
|
60201
59841
|
|
|
60202
59842
|
return iconNode;
|
|
@@ -60418,7 +60058,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60418
60058
|
return _this;
|
|
60419
60059
|
}
|
|
60420
60060
|
|
|
60421
|
-
|
|
60061
|
+
_createClass(Pagination, [{
|
|
60422
60062
|
key: "componentDidUpdate",
|
|
60423
60063
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
60424
60064
|
// When current page change, fix focused style of prev item
|
|
@@ -60566,8 +60206,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60566
60206
|
}, gotoButton);
|
|
60567
60207
|
}
|
|
60568
60208
|
|
|
60569
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60570
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"),
|
|
60209
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60210
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"), _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
60571
60211
|
style: style,
|
|
60572
60212
|
ref: this.savePaginationNode
|
|
60573
60213
|
}, dataOrAriaAttributeProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
@@ -60575,7 +60215,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60575
60215
|
onClick: this.prev,
|
|
60576
60216
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60577
60217
|
onKeyPress: this.runIfEnterPrev,
|
|
60578
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60218
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
60579
60219
|
"aria-disabled": !this.hasPrev()
|
|
60580
60220
|
}, this.renderPrev(prevPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60581
60221
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
@@ -60596,7 +60236,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60596
60236
|
onClick: this.next,
|
|
60597
60237
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60598
60238
|
onKeyPress: this.runIfEnterNext,
|
|
60599
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60239
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
60600
60240
|
"aria-disabled": !this.hasNext()
|
|
60601
60241
|
}, this.renderNext(nextPage)), gotoButton);
|
|
60602
60242
|
}
|
|
@@ -60612,7 +60252,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60612
60252
|
};
|
|
60613
60253
|
|
|
60614
60254
|
if (!allPages) {
|
|
60615
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60255
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60616
60256
|
key: "noPager",
|
|
60617
60257
|
page: 1,
|
|
60618
60258
|
className: "".concat(prefixCls, "-item-disabled")
|
|
@@ -60621,7 +60261,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60621
60261
|
|
|
60622
60262
|
for (var i = 1; i <= allPages; i += 1) {
|
|
60623
60263
|
var active = current === i;
|
|
60624
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60264
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60625
60265
|
key: i,
|
|
60626
60266
|
page: i,
|
|
60627
60267
|
active: active
|
|
@@ -60638,7 +60278,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60638
60278
|
onClick: this.jumpPrev,
|
|
60639
60279
|
tabIndex: "0",
|
|
60640
60280
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
60641
|
-
className: classnames_default()("".concat(prefixCls, "-jump-prev"),
|
|
60281
|
+
className: classnames_default()("".concat(prefixCls, "-jump-prev"), _defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
60642
60282
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
60643
60283
|
jumpNext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60644
60284
|
title: showTitle ? nextItemTitle : null,
|
|
@@ -60646,7 +60286,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60646
60286
|
tabIndex: "0",
|
|
60647
60287
|
onClick: this.jumpNext,
|
|
60648
60288
|
onKeyPress: this.runIfEnterJumpNext,
|
|
60649
|
-
className: classnames_default()("".concat(prefixCls, "-jump-next"),
|
|
60289
|
+
className: classnames_default()("".concat(prefixCls, "-jump-next"), _defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
60650
60290
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
60651
60291
|
}
|
|
60652
60292
|
|
|
@@ -60733,8 +60373,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60733
60373
|
|
|
60734
60374
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
60735
60375
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
60736
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60737
|
-
className: classnames_default()(prefixCls, className,
|
|
60376
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60377
|
+
className: classnames_default()(prefixCls, className, _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled)),
|
|
60738
60378
|
style: style,
|
|
60739
60379
|
unselectable: "unselectable",
|
|
60740
60380
|
ref: this.savePaginationNode
|
|
@@ -60743,14 +60383,14 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60743
60383
|
onClick: this.prev,
|
|
60744
60384
|
tabIndex: prevDisabled ? null : 0,
|
|
60745
60385
|
onKeyPress: this.runIfEnterPrev,
|
|
60746
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60386
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
60747
60387
|
"aria-disabled": prevDisabled
|
|
60748
60388
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60749
60389
|
title: showTitle ? locale.next_page : null,
|
|
60750
60390
|
onClick: this.next,
|
|
60751
60391
|
tabIndex: nextDisabled ? null : 0,
|
|
60752
60392
|
onKeyPress: this.runIfEnterNext,
|
|
60753
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60393
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
60754
60394
|
"aria-disabled": nextDisabled
|
|
60755
60395
|
}, this.renderNext(nextPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Options, {
|
|
60756
60396
|
disabled: disabled,
|
|
@@ -60828,7 +60468,7 @@ Pagination.defaultProps = {
|
|
|
60828
60468
|
|
|
60829
60469
|
|
|
60830
60470
|
var MiniSelect = function MiniSelect(props) {
|
|
60831
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select,
|
|
60471
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select, extends_extends({
|
|
60832
60472
|
size: "small"
|
|
60833
60473
|
}, props));
|
|
60834
60474
|
};
|
|
@@ -60889,7 +60529,7 @@ var responsiveObserve = {
|
|
|
60889
60529
|
var listener = function listener(_ref) {
|
|
60890
60530
|
var matches = _ref.matches;
|
|
60891
60531
|
|
|
60892
|
-
_this2.dispatch(
|
|
60532
|
+
_this2.dispatch(extends_extends(extends_extends({}, screens), _defineProperty({}, screen, matches)));
|
|
60893
60533
|
};
|
|
60894
60534
|
|
|
60895
60535
|
var mql = window.matchMedia(matchMediaQuery);
|
|
@@ -61030,13 +60670,13 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61030
60670
|
var renderPagination = function renderPagination(contextLocale) {
|
|
61031
60671
|
var _classNames;
|
|
61032
60672
|
|
|
61033
|
-
var locale =
|
|
60673
|
+
var locale = extends_extends(extends_extends({}, contextLocale), customLocale);
|
|
61034
60674
|
|
|
61035
60675
|
var isSmall = size === 'small' || !!(xs && !size && restProps.responsive);
|
|
61036
60676
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
61037
60677
|
var extendedClassName = classnames_default()((_classNames = {
|
|
61038
60678
|
mini: isSmall
|
|
61039
|
-
},
|
|
60679
|
+
}, _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames, "minimalistic", minimalistic), _classNames), className); // 文本式分页
|
|
61040
60680
|
|
|
61041
60681
|
if (minimalistic) {
|
|
61042
60682
|
paginationProps.itemRender = function (_current, type, originalElement) {
|
|
@@ -61073,7 +60713,7 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61073
60713
|
paginationProps.showQuickJumper = showQuickJumper;
|
|
61074
60714
|
}
|
|
61075
60715
|
|
|
61076
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination,
|
|
60716
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination, extends_extends({}, paginationProps, getIconsProps(), restProps, {
|
|
61077
60717
|
prefixCls: prefixCls,
|
|
61078
60718
|
selectPrefixCls: selectPrefixCls,
|
|
61079
60719
|
className: extendedClassName,
|
|
@@ -61401,7 +61041,7 @@ function Action(_ref) {
|
|
|
61401
61041
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(function () {
|
|
61402
61042
|
var actionNum;
|
|
61403
61043
|
|
|
61404
|
-
if (status === 1) {
|
|
61044
|
+
if (status === 1 || status === 3) {
|
|
61405
61045
|
actionNum = 1;
|
|
61406
61046
|
} else if (status === 2) {
|
|
61407
61047
|
actionNum = 2;
|
|
@@ -61445,10 +61085,10 @@ function Action(_ref) {
|
|
|
61445
61085
|
setCurAction = _useState2[1];
|
|
61446
61086
|
|
|
61447
61087
|
var handleBtnClick = /*#__PURE__*/function () {
|
|
61448
|
-
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/
|
|
61088
|
+
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(e) {
|
|
61449
61089
|
var now, begin, _error$response, _error$response$data, _error$response2, _error$response2$data;
|
|
61450
61090
|
|
|
61451
|
-
return
|
|
61091
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
61452
61092
|
while (1) {
|
|
61453
61093
|
switch (_context.prev = _context.next) {
|
|
61454
61094
|
case 0:
|
|
@@ -61628,7 +61268,9 @@ function ListItem_asyncToGenerator(fn) { return function () { var self = this, a
|
|
|
61628
61268
|
var TagName = {
|
|
61629
61269
|
0: '预告',
|
|
61630
61270
|
1: '直播中',
|
|
61631
|
-
2: '回放'
|
|
61271
|
+
2: '回放',
|
|
61272
|
+
3: '直播中' // 实际是暂停
|
|
61273
|
+
|
|
61632
61274
|
};
|
|
61633
61275
|
function ListItem(_ref) {
|
|
61634
61276
|
var data = _ref.data,
|
|
@@ -61645,8 +61287,8 @@ function ListItem(_ref) {
|
|
|
61645
61287
|
status = data.status;
|
|
61646
61288
|
|
|
61647
61289
|
var handleDetailClick = /*#__PURE__*/function () {
|
|
61648
|
-
var _ref2 = ListItem_asyncToGenerator( /*#__PURE__*/
|
|
61649
|
-
return
|
|
61290
|
+
var _ref2 = ListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
61291
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
61650
61292
|
while (1) {
|
|
61651
61293
|
switch (_context.prev = _context.next) {
|
|
61652
61294
|
case 0:
|
|
@@ -61690,7 +61332,7 @@ function ListItem(_ref) {
|
|
|
61690
61332
|
className: list_ListItem_index_module.avatar
|
|
61691
61333
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61692
61334
|
className: classnames_default()(list_ListItem_index_module.tag, list_ListItem_index_module["tag".concat(status)])
|
|
61693
|
-
}, status === 1 ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
61335
|
+
}, status === 1 || status === 3 ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
61694
61336
|
src: play,
|
|
61695
61337
|
alt: ""
|
|
61696
61338
|
}) : null, TagName[status])), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
@@ -61783,7 +61425,7 @@ var StatusEnum = [{
|
|
|
61783
61425
|
value: 'all'
|
|
61784
61426
|
}, {
|
|
61785
61427
|
label: '直播中',
|
|
61786
|
-
value: 1
|
|
61428
|
+
value: '1,3'
|
|
61787
61429
|
}, {
|
|
61788
61430
|
label: '预告',
|
|
61789
61431
|
value: 0
|