@x-edu/live-player 0.0.18 → 0.0.19
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 +521 -881
- package/dist/XEduLivePlayerPre.common.js +521 -881
- package/package.json +1 -1
- package/public/JsBridge.js +1602 -1602
- package/src/demo/List.jsx +1 -1
- package/src/detail/index.jsx +0 -1
- package/src/list/index.jsx +5 -3
|
@@ -25808,17 +25808,10 @@ module.exports = styleTagTransform;
|
|
|
25808
25808
|
|
|
25809
25809
|
/***/ }),
|
|
25810
25810
|
|
|
25811
|
-
/***/ 5273:
|
|
25812
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25813
|
-
|
|
25814
|
-
module.exports = __webpack_require__(5666);
|
|
25815
|
-
|
|
25816
|
-
/***/ }),
|
|
25817
|
-
|
|
25818
25811
|
/***/ 3006:
|
|
25819
25812
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25820
25813
|
|
|
25821
|
-
var _regeneratorRuntime = __webpack_require__(
|
|
25814
|
+
var _regeneratorRuntime = __webpack_require__(7757);
|
|
25822
25815
|
|
|
25823
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); } }
|
|
25824
25817
|
|
|
@@ -27026,7 +27019,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAFgCAYAAABn
|
|
|
27026
27019
|
/***/ (function(module) {
|
|
27027
27020
|
|
|
27028
27021
|
"use strict";
|
|
27029
|
-
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"}');
|
|
27030
27023
|
|
|
27031
27024
|
/***/ })
|
|
27032
27025
|
|
|
@@ -29995,9 +29988,6 @@ var parseAdapter = function parseAdapter(option, dayjsClass) {
|
|
|
29995
29988
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
29996
29989
|
var regenerator = __webpack_require__(7757);
|
|
29997
29990
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
29998
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
29999
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
30000
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
30001
29991
|
// EXTERNAL MODULE: ./node_modules/axios/index.js
|
|
30002
29992
|
var axios = __webpack_require__(9669);
|
|
30003
29993
|
var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
|
|
@@ -30823,7 +30813,7 @@ function getServiceConfig(_x) {
|
|
|
30823
30813
|
}
|
|
30824
30814
|
|
|
30825
30815
|
function _getServiceConfig() {
|
|
30826
|
-
_getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/
|
|
30816
|
+
_getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(serviceName) {
|
|
30827
30817
|
var sdpAppId,
|
|
30828
30818
|
env,
|
|
30829
30819
|
key,
|
|
@@ -30835,7 +30825,7 @@ function _getServiceConfig() {
|
|
|
30835
30825
|
result,
|
|
30836
30826
|
ttl,
|
|
30837
30827
|
_args = arguments;
|
|
30838
|
-
return
|
|
30828
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
30839
30829
|
while (1) {
|
|
30840
30830
|
switch (_context.prev = _context.next) {
|
|
30841
30831
|
case 0:
|
|
@@ -31099,13 +31089,13 @@ function withOnce(fn) {
|
|
|
31099
31089
|
var lockPool = createLockPool();
|
|
31100
31090
|
|
|
31101
31091
|
var newFn = /*#__PURE__*/function () {
|
|
31102
|
-
var _ref3 = hof_asyncToGenerator( /*#__PURE__*/
|
|
31092
|
+
var _ref3 = hof_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
31103
31093
|
var key,
|
|
31104
31094
|
lock,
|
|
31105
31095
|
lockId,
|
|
31106
31096
|
result,
|
|
31107
31097
|
_args2 = arguments;
|
|
31108
|
-
return
|
|
31098
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
31109
31099
|
while (1) {
|
|
31110
31100
|
switch (_context2.prev = _context2.next) {
|
|
31111
31101
|
case 0:
|
|
@@ -31611,9 +31601,9 @@ function _getLiveAPICache() {
|
|
|
31611
31601
|
}
|
|
31612
31602
|
|
|
31613
31603
|
function _getLiveAPICache2() {
|
|
31614
|
-
_getLiveAPICache2 = live_asyncToGenerator( /*#__PURE__*/
|
|
31604
|
+
_getLiveAPICache2 = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee11() {
|
|
31615
31605
|
var url, result, serverTime;
|
|
31616
|
-
return
|
|
31606
|
+
return regenerator_default().wrap(function _callee11$(_context11) {
|
|
31617
31607
|
while (1) {
|
|
31618
31608
|
switch (_context11.prev = _context11.next) {
|
|
31619
31609
|
case 0:
|
|
@@ -31653,9 +31643,9 @@ function getOpenClassWithCache(_x11) {
|
|
|
31653
31643
|
} // 公开直播详情变化部分,失败要降级处理
|
|
31654
31644
|
|
|
31655
31645
|
function _getOpenClassWithCache() {
|
|
31656
|
-
_getOpenClassWithCache = live_asyncToGenerator( /*#__PURE__*/
|
|
31646
|
+
_getOpenClassWithCache = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee12(url) {
|
|
31657
31647
|
var fullUrl, cacheInfo, cacheData, result, serverTime;
|
|
31658
|
-
return
|
|
31648
|
+
return regenerator_default().wrap(function _callee12$(_context12) {
|
|
31659
31649
|
while (1) {
|
|
31660
31650
|
switch (_context12.prev = _context12.next) {
|
|
31661
31651
|
case 0:
|
|
@@ -31727,9 +31717,9 @@ function getOpenClassLiveSimple(_x12) {
|
|
|
31727
31717
|
} // 公开直播详情拆分成两个接口
|
|
31728
31718
|
|
|
31729
31719
|
function _getOpenClassLiveSimple() {
|
|
31730
|
-
_getOpenClassLiveSimple = live_asyncToGenerator( /*#__PURE__*/
|
|
31720
|
+
_getOpenClassLiveSimple = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee13(liveInfo) {
|
|
31731
31721
|
var url, data;
|
|
31732
|
-
return
|
|
31722
|
+
return regenerator_default().wrap(function _callee13$(_context13) {
|
|
31733
31723
|
while (1) {
|
|
31734
31724
|
switch (_context13.prev = _context13.next) {
|
|
31735
31725
|
case 0:
|
|
@@ -31768,9 +31758,9 @@ function getOpenClassLiveBase(_x13) {
|
|
|
31768
31758
|
} // 公开实时直播-发起直播-公共直播邀请页使用,适配为班级直播数据
|
|
31769
31759
|
|
|
31770
31760
|
function _getOpenClassLiveBase() {
|
|
31771
|
-
_getOpenClassLiveBase = live_asyncToGenerator( /*#__PURE__*/
|
|
31761
|
+
_getOpenClassLiveBase = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee14(id) {
|
|
31772
31762
|
var url, data, subType, dynamicInfo;
|
|
31773
|
-
return
|
|
31763
|
+
return regenerator_default().wrap(function _callee14$(_context14) {
|
|
31774
31764
|
while (1) {
|
|
31775
31765
|
switch (_context14.prev = _context14.next) {
|
|
31776
31766
|
case 0:
|
|
@@ -31850,9 +31840,9 @@ function getOpenClassLive(_x15) {
|
|
|
31850
31840
|
}
|
|
31851
31841
|
|
|
31852
31842
|
function _getOpenClassLive() {
|
|
31853
|
-
_getOpenClassLive = live_asyncToGenerator( /*#__PURE__*/
|
|
31843
|
+
_getOpenClassLive = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee16(id) {
|
|
31854
31844
|
var serviceConfig, liveCloseLogin, data;
|
|
31855
|
-
return
|
|
31845
|
+
return regenerator_default().wrap(function _callee16$(_context16) {
|
|
31856
31846
|
while (1) {
|
|
31857
31847
|
switch (_context16.prev = _context16.next) {
|
|
31858
31848
|
case 0:
|
|
@@ -31965,9 +31955,9 @@ function OpenLiveSearchFront(_x18) {
|
|
|
31965
31955
|
*/
|
|
31966
31956
|
|
|
31967
31957
|
function _OpenLiveSearchFront() {
|
|
31968
|
-
_OpenLiveSearchFront = live_asyncToGenerator( /*#__PURE__*/
|
|
31958
|
+
_OpenLiveSearchFront = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee19(_ref2) {
|
|
31969
31959
|
var status, scopeType, scopeId, offset, limit, url, response;
|
|
31970
|
-
return
|
|
31960
|
+
return regenerator_default().wrap(function _callee19$(_context19) {
|
|
31971
31961
|
while (1) {
|
|
31972
31962
|
switch (_context19.prev = _context19.next) {
|
|
31973
31963
|
case 0:
|
|
@@ -32018,9 +32008,9 @@ function getSubscription() {
|
|
|
32018
32008
|
*/
|
|
32019
32009
|
|
|
32020
32010
|
function _getSubscription() {
|
|
32021
|
-
_getSubscription = live_asyncToGenerator( /*#__PURE__*/
|
|
32011
|
+
_getSubscription = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee20() {
|
|
32022
32012
|
var url, response;
|
|
32023
|
-
return
|
|
32013
|
+
return regenerator_default().wrap(function _callee20$(_context20) {
|
|
32024
32014
|
while (1) {
|
|
32025
32015
|
switch (_context20.prev = _context20.next) {
|
|
32026
32016
|
case 0:
|
|
@@ -32053,9 +32043,9 @@ function openLiveSubscribe(_x19) {
|
|
|
32053
32043
|
}
|
|
32054
32044
|
|
|
32055
32045
|
function _openLiveSubscribe() {
|
|
32056
|
-
_openLiveSubscribe = live_asyncToGenerator( /*#__PURE__*/
|
|
32046
|
+
_openLiveSubscribe = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee21(_ref3) {
|
|
32057
32047
|
var liveId, url, response;
|
|
32058
|
-
return
|
|
32048
|
+
return regenerator_default().wrap(function _callee21$(_context21) {
|
|
32059
32049
|
while (1) {
|
|
32060
32050
|
switch (_context21.prev = _context21.next) {
|
|
32061
32051
|
case 0:
|
|
@@ -32097,9 +32087,9 @@ function imBroadcasts_asyncToGenerator(fn) { return function () { var self = thi
|
|
|
32097
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
|
|
32098
32088
|
|
|
32099
32089
|
var getIMLiveInfo = /*#__PURE__*/function () {
|
|
32100
|
-
var _ref = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
32090
|
+
var _ref = imBroadcasts_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(roomId) {
|
|
32101
32091
|
var url, response;
|
|
32102
|
-
return
|
|
32092
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
32103
32093
|
while (1) {
|
|
32104
32094
|
switch (_context.prev = _context.next) {
|
|
32105
32095
|
case 0:
|
|
@@ -32132,10 +32122,10 @@ var getIMLiveInfo = /*#__PURE__*/function () {
|
|
|
32132
32122
|
*/
|
|
32133
32123
|
|
|
32134
32124
|
var getGuestIMLiveInfoStatic = /*#__PURE__*/function () {
|
|
32135
|
-
var _ref2 = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
32125
|
+
var _ref2 = imBroadcasts_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(bId) {
|
|
32136
32126
|
var _yield$imBroadcastsSt, data;
|
|
32137
32127
|
|
|
32138
|
-
return
|
|
32128
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
32139
32129
|
while (1) {
|
|
32140
32130
|
switch (_context2.prev = _context2.next) {
|
|
32141
32131
|
case 0:
|
|
@@ -32162,10 +32152,10 @@ var getGuestIMLiveInfoStatic = /*#__PURE__*/function () {
|
|
|
32162
32152
|
// 访客获取直播接口
|
|
32163
32153
|
|
|
32164
32154
|
var getGuestIMLiveInfo = /*#__PURE__*/function () {
|
|
32165
|
-
var _ref3 = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
32155
|
+
var _ref3 = imBroadcasts_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(bId) {
|
|
32166
32156
|
var _yield$imBroadcastsAP, data;
|
|
32167
32157
|
|
|
32168
|
-
return
|
|
32158
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
32169
32159
|
while (1) {
|
|
32170
32160
|
switch (_context3.prev = _context3.next) {
|
|
32171
32161
|
case 0:
|
|
@@ -32233,162 +32223,6 @@ var spin_style_update = injectStylesIntoStyleTag_default()(spin_style/* default
|
|
|
32233
32223
|
;// CONCATENATED MODULE: ./node_modules/@sdp.nd/fish/es/spin/style/index.js
|
|
32234
32224
|
|
|
32235
32225
|
|
|
32236
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
32237
|
-
function esm_extends_extends() {
|
|
32238
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
32239
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
32240
|
-
var source = arguments[i];
|
|
32241
|
-
|
|
32242
|
-
for (var key in source) {
|
|
32243
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32244
|
-
target[key] = source[key];
|
|
32245
|
-
}
|
|
32246
|
-
}
|
|
32247
|
-
}
|
|
32248
|
-
|
|
32249
|
-
return target;
|
|
32250
|
-
};
|
|
32251
|
-
|
|
32252
|
-
return esm_extends_extends.apply(this, arguments);
|
|
32253
|
-
}
|
|
32254
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
32255
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
32256
|
-
if (key in obj) {
|
|
32257
|
-
Object.defineProperty(obj, key, {
|
|
32258
|
-
value: value,
|
|
32259
|
-
enumerable: true,
|
|
32260
|
-
configurable: true,
|
|
32261
|
-
writable: true
|
|
32262
|
-
});
|
|
32263
|
-
} else {
|
|
32264
|
-
obj[key] = value;
|
|
32265
|
-
}
|
|
32266
|
-
|
|
32267
|
-
return obj;
|
|
32268
|
-
}
|
|
32269
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
32270
|
-
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
32271
|
-
if (!(instance instanceof Constructor)) {
|
|
32272
|
-
throw new TypeError("Cannot call a class as a function");
|
|
32273
|
-
}
|
|
32274
|
-
}
|
|
32275
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
32276
|
-
function createClass_defineProperties(target, props) {
|
|
32277
|
-
for (var i = 0; i < props.length; i++) {
|
|
32278
|
-
var descriptor = props[i];
|
|
32279
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32280
|
-
descriptor.configurable = true;
|
|
32281
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
32282
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
32283
|
-
}
|
|
32284
|
-
}
|
|
32285
|
-
|
|
32286
|
-
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
32287
|
-
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
32288
|
-
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
32289
|
-
return Constructor;
|
|
32290
|
-
}
|
|
32291
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
32292
|
-
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
32293
|
-
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
32294
|
-
o.__proto__ = p;
|
|
32295
|
-
return o;
|
|
32296
|
-
};
|
|
32297
|
-
|
|
32298
|
-
return setPrototypeOf_setPrototypeOf(o, p);
|
|
32299
|
-
}
|
|
32300
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
32301
|
-
|
|
32302
|
-
function inherits_inherits(subClass, superClass) {
|
|
32303
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
32304
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
32305
|
-
}
|
|
32306
|
-
|
|
32307
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
32308
|
-
constructor: {
|
|
32309
|
-
value: subClass,
|
|
32310
|
-
writable: true,
|
|
32311
|
-
configurable: true
|
|
32312
|
-
}
|
|
32313
|
-
});
|
|
32314
|
-
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
32315
|
-
}
|
|
32316
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
32317
|
-
function getPrototypeOf_getPrototypeOf(o) {
|
|
32318
|
-
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
32319
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
32320
|
-
};
|
|
32321
|
-
return getPrototypeOf_getPrototypeOf(o);
|
|
32322
|
-
}
|
|
32323
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
32324
|
-
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
32325
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
32326
|
-
if (Reflect.construct.sham) return false;
|
|
32327
|
-
if (typeof Proxy === "function") return true;
|
|
32328
|
-
|
|
32329
|
-
try {
|
|
32330
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
32331
|
-
return true;
|
|
32332
|
-
} catch (e) {
|
|
32333
|
-
return false;
|
|
32334
|
-
}
|
|
32335
|
-
}
|
|
32336
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
32337
|
-
function esm_typeof_typeof(obj) {
|
|
32338
|
-
"@babel/helpers - typeof";
|
|
32339
|
-
|
|
32340
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
32341
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
32342
|
-
return typeof obj;
|
|
32343
|
-
};
|
|
32344
|
-
} else {
|
|
32345
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
32346
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
32347
|
-
};
|
|
32348
|
-
}
|
|
32349
|
-
|
|
32350
|
-
return esm_typeof_typeof(obj);
|
|
32351
|
-
}
|
|
32352
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
32353
|
-
function assertThisInitialized_assertThisInitialized(self) {
|
|
32354
|
-
if (self === void 0) {
|
|
32355
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
32356
|
-
}
|
|
32357
|
-
|
|
32358
|
-
return self;
|
|
32359
|
-
}
|
|
32360
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
32361
|
-
|
|
32362
|
-
|
|
32363
|
-
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
32364
|
-
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
32365
|
-
return call;
|
|
32366
|
-
} else if (call !== void 0) {
|
|
32367
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
32368
|
-
}
|
|
32369
|
-
|
|
32370
|
-
return assertThisInitialized_assertThisInitialized(self);
|
|
32371
|
-
}
|
|
32372
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
32373
|
-
|
|
32374
|
-
|
|
32375
|
-
|
|
32376
|
-
function createSuper_createSuper(Derived) {
|
|
32377
|
-
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
32378
|
-
return function _createSuperInternal() {
|
|
32379
|
-
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
32380
|
-
result;
|
|
32381
|
-
|
|
32382
|
-
if (hasNativeReflectConstruct) {
|
|
32383
|
-
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
32384
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
32385
|
-
} else {
|
|
32386
|
-
result = Super.apply(this, arguments);
|
|
32387
|
-
}
|
|
32388
|
-
|
|
32389
|
-
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
32390
|
-
};
|
|
32391
|
-
}
|
|
32392
32226
|
// EXTERNAL MODULE: ./node_modules/lodash/debounce.js
|
|
32393
32227
|
var debounce = __webpack_require__(3279);
|
|
32394
32228
|
var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce);
|
|
@@ -32497,14 +32331,14 @@ function shouldDelay(spinning, delay) {
|
|
|
32497
32331
|
}
|
|
32498
32332
|
|
|
32499
32333
|
var Spin = /*#__PURE__*/function (_React$Component) {
|
|
32500
|
-
|
|
32334
|
+
_inherits(Spin, _React$Component);
|
|
32501
32335
|
|
|
32502
|
-
var _super =
|
|
32336
|
+
var _super = _createSuper(Spin);
|
|
32503
32337
|
|
|
32504
32338
|
function Spin(props) {
|
|
32505
32339
|
var _this;
|
|
32506
32340
|
|
|
32507
|
-
|
|
32341
|
+
_classCallCheck(this, Spin);
|
|
32508
32342
|
|
|
32509
32343
|
_this = _super.call(this, props);
|
|
32510
32344
|
|
|
@@ -32547,10 +32381,10 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
32547
32381
|
|
|
32548
32382
|
var spinning = _this.state.spinning;
|
|
32549
32383
|
var prefixCls = getPrefixCls('spin', customizePrefixCls);
|
|
32550
|
-
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
|
|
32551
32385
|
|
|
32552
32386
|
var divProps = omit(restProps, ['spinning', 'delay', 'indicator']);
|
|
32553
|
-
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, {
|
|
32554
32388
|
style: style,
|
|
32555
32389
|
className: spinClassName
|
|
32556
32390
|
}), renderIndicator(prefixCls, _this.props), tip ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -32558,8 +32392,8 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
32558
32392
|
}, tip) : null);
|
|
32559
32393
|
|
|
32560
32394
|
if (_this.isNestedPattern()) {
|
|
32561
|
-
var containerClassName = classnames_default()("".concat(prefixCls, "-container"),
|
|
32562
|
-
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, {
|
|
32563
32397
|
className: classnames_default()("".concat(prefixCls, "-nested-loading"), wrapperClassName)
|
|
32564
32398
|
}), spinning && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
32565
32399
|
key: "loading"
|
|
@@ -32585,7 +32419,7 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
32585
32419
|
return _this;
|
|
32586
32420
|
}
|
|
32587
32421
|
|
|
32588
|
-
|
|
32422
|
+
_createClass(Spin, [{
|
|
32589
32423
|
key: "componentDidMount",
|
|
32590
32424
|
value: function componentDidMount() {
|
|
32591
32425
|
this.updateSpinning();
|
|
@@ -32825,14 +32659,14 @@ var videoCdnPrefix = '//gcdncs.101.com/v0.1/static/share/fish/videoplayer';
|
|
|
32825
32659
|
var defaultVideoUrl = getVideoUrl(videoCdnPrefix, video_version);
|
|
32826
32660
|
|
|
32827
32661
|
var Video = /*#__PURE__*/function (_React$Component) {
|
|
32828
|
-
|
|
32662
|
+
_inherits(Video, _React$Component);
|
|
32829
32663
|
|
|
32830
|
-
var _super =
|
|
32664
|
+
var _super = _createSuper(Video);
|
|
32831
32665
|
|
|
32832
32666
|
function Video() {
|
|
32833
32667
|
var _this;
|
|
32834
32668
|
|
|
32835
|
-
|
|
32669
|
+
_classCallCheck(this, Video);
|
|
32836
32670
|
|
|
32837
32671
|
_this = _super.apply(this, arguments);
|
|
32838
32672
|
_this.videoUrl = {}; // eslint-disable-next-line class-methods-use-this
|
|
@@ -32845,12 +32679,12 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
32845
32679
|
csOriginUrl = getVideoUrl(cdnPrefix, video_version);
|
|
32846
32680
|
}
|
|
32847
32681
|
|
|
32848
|
-
return
|
|
32682
|
+
return extends_extends(extends_extends({}, csOriginUrl), Video.url);
|
|
32849
32683
|
};
|
|
32850
32684
|
|
|
32851
32685
|
_this.loadVideoPlayer = function () {
|
|
32852
|
-
return __awaiter(
|
|
32853
|
-
return
|
|
32686
|
+
return __awaiter(_assertThisInitialized(_this), void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
32687
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
32854
32688
|
while (1) {
|
|
32855
32689
|
switch (_context.prev = _context.next) {
|
|
32856
32690
|
case 0:
|
|
@@ -32900,7 +32734,7 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
32900
32734
|
return _this;
|
|
32901
32735
|
}
|
|
32902
32736
|
|
|
32903
|
-
|
|
32737
|
+
_createClass(Video, [{
|
|
32904
32738
|
key: "componentDidMount",
|
|
32905
32739
|
value: function componentDidMount() {
|
|
32906
32740
|
var _this2 = this;
|
|
@@ -33244,9 +33078,9 @@ function isSourceReady(_x) {
|
|
|
33244
33078
|
}
|
|
33245
33079
|
|
|
33246
33080
|
function _isSourceReady() {
|
|
33247
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33081
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(liveInfo) {
|
|
33248
33082
|
var newLiveInfo;
|
|
33249
|
-
return
|
|
33083
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33250
33084
|
while (1) {
|
|
33251
33085
|
switch (_context.prev = _context.next) {
|
|
33252
33086
|
case 0:
|
|
@@ -33423,12 +33257,12 @@ function usePullSource(_ref) {
|
|
|
33423
33257
|
}
|
|
33424
33258
|
|
|
33425
33259
|
function _checkLiveReadyInterval() {
|
|
33426
|
-
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33260
|
+
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
33427
33261
|
var i,
|
|
33428
33262
|
liveStatus,
|
|
33429
33263
|
isSourceReady,
|
|
33430
33264
|
_args = arguments;
|
|
33431
|
-
return
|
|
33265
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33432
33266
|
while (1) {
|
|
33433
33267
|
switch (_context.prev = _context.next) {
|
|
33434
33268
|
case 0:
|
|
@@ -33514,8 +33348,8 @@ function checkSourceReady(_x) {
|
|
|
33514
33348
|
}
|
|
33515
33349
|
|
|
33516
33350
|
function _checkSourceReady() {
|
|
33517
|
-
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33518
|
-
return
|
|
33351
|
+
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(url) {
|
|
33352
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
33519
33353
|
while (1) {
|
|
33520
33354
|
switch (_context2.prev = _context2.next) {
|
|
33521
33355
|
case 0:
|
|
@@ -33548,9 +33382,9 @@ function getLiveNewStatus(_x2) {
|
|
|
33548
33382
|
}
|
|
33549
33383
|
|
|
33550
33384
|
function _getLiveNewStatus() {
|
|
33551
|
-
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33385
|
+
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(liveInfo) {
|
|
33552
33386
|
var newLiveInfo;
|
|
33553
|
-
return
|
|
33387
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
33554
33388
|
while (1) {
|
|
33555
33389
|
switch (_context3.prev = _context3.next) {
|
|
33556
33390
|
case 0:
|
|
@@ -34074,8 +33908,8 @@ function AliPlayer(_ref) {
|
|
|
34074
33908
|
var aliPlayer;
|
|
34075
33909
|
|
|
34076
33910
|
var init = /*#__PURE__*/function () {
|
|
34077
|
-
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/
|
|
34078
|
-
return
|
|
33911
|
+
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
33912
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
34079
33913
|
while (1) {
|
|
34080
33914
|
switch (_context.prev = _context.next) {
|
|
34081
33915
|
case 0:
|
|
@@ -34234,26 +34068,6 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
34234
34068
|
|
|
34235
34069
|
return _arr;
|
|
34236
34070
|
}
|
|
34237
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34238
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34239
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
34240
|
-
|
|
34241
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34242
|
-
arr2[i] = arr[i];
|
|
34243
|
-
}
|
|
34244
|
-
|
|
34245
|
-
return arr2;
|
|
34246
|
-
}
|
|
34247
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34248
|
-
|
|
34249
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34250
|
-
if (!o) return;
|
|
34251
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34252
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34253
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34254
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34255
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34256
|
-
}
|
|
34257
34071
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34258
34072
|
function nonIterableRest_nonIterableRest() {
|
|
34259
34073
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34264,7 +34078,7 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34264
34078
|
|
|
34265
34079
|
|
|
34266
34080
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34267
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
34081
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34268
34082
|
}
|
|
34269
34083
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34270
34084
|
var raf = function raf(callback) {
|
|
@@ -34491,27 +34305,6 @@ var cacheStyle = {};
|
|
|
34491
34305
|
}
|
|
34492
34306
|
}
|
|
34493
34307
|
});
|
|
34494
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34495
|
-
|
|
34496
|
-
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34497
|
-
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34498
|
-
}
|
|
34499
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34500
|
-
function iterableToArray_iterableToArray(iter) {
|
|
34501
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34502
|
-
}
|
|
34503
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34504
|
-
function nonIterableSpread_nonIterableSpread() {
|
|
34505
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34506
|
-
}
|
|
34507
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34508
|
-
|
|
34509
|
-
|
|
34510
|
-
|
|
34511
|
-
|
|
34512
|
-
function toConsumableArray_toConsumableArray(arr) {
|
|
34513
|
-
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34514
|
-
}
|
|
34515
34308
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34516
34309
|
|
|
34517
34310
|
|
|
@@ -34528,7 +34321,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34528
34321
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34529
34322
|
var _this = this;
|
|
34530
34323
|
|
|
34531
|
-
|
|
34324
|
+
_classCallCheck(this, ScrollLocker);
|
|
34532
34325
|
|
|
34533
34326
|
this.lockTarget = void 0;
|
|
34534
34327
|
this.options = void 0;
|
|
@@ -34576,7 +34369,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34576
34369
|
var options = _ref3.options;
|
|
34577
34370
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34578
34371
|
})) {
|
|
34579
|
-
locks = [].concat(
|
|
34372
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34580
34373
|
target: _this.lockTarget,
|
|
34581
34374
|
options: _this.options
|
|
34582
34375
|
}]);
|
|
@@ -34614,7 +34407,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34614
34407
|
container.className = addClassName.trim();
|
|
34615
34408
|
}
|
|
34616
34409
|
|
|
34617
|
-
locks = [].concat(
|
|
34410
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34618
34411
|
target: _this.lockTarget,
|
|
34619
34412
|
options: _this.options
|
|
34620
34413
|
}]);
|
|
@@ -34698,7 +34491,7 @@ var getParent = function getParent(getContainer) {
|
|
|
34698
34491
|
return getContainer();
|
|
34699
34492
|
}
|
|
34700
34493
|
|
|
34701
|
-
if (
|
|
34494
|
+
if (typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
34702
34495
|
return getContainer;
|
|
34703
34496
|
}
|
|
34704
34497
|
}
|
|
@@ -34707,14 +34500,14 @@ var getParent = function getParent(getContainer) {
|
|
|
34707
34500
|
};
|
|
34708
34501
|
|
|
34709
34502
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
34710
|
-
|
|
34503
|
+
_inherits(PortalWrapper, _React$Component);
|
|
34711
34504
|
|
|
34712
|
-
var _super =
|
|
34505
|
+
var _super = _createSuper(PortalWrapper);
|
|
34713
34506
|
|
|
34714
34507
|
function PortalWrapper(props) {
|
|
34715
34508
|
var _this;
|
|
34716
34509
|
|
|
34717
|
-
|
|
34510
|
+
_classCallCheck(this, PortalWrapper);
|
|
34718
34511
|
|
|
34719
34512
|
_this = _super.call(this, props);
|
|
34720
34513
|
_this.container = void 0;
|
|
@@ -34834,7 +34627,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34834
34627
|
return _this;
|
|
34835
34628
|
}
|
|
34836
34629
|
|
|
34837
|
-
|
|
34630
|
+
_createClass(PortalWrapper, [{
|
|
34838
34631
|
key: "componentDidMount",
|
|
34839
34632
|
value: function componentDidMount() {
|
|
34840
34633
|
var _this2 = this;
|
|
@@ -34902,46 +34695,6 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34902
34695
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
34903
34696
|
|
|
34904
34697
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
34905
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
34906
|
-
|
|
34907
|
-
|
|
34908
|
-
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
34909
|
-
var keys = Object.keys(object);
|
|
34910
|
-
|
|
34911
|
-
if (Object.getOwnPropertySymbols) {
|
|
34912
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
34913
|
-
|
|
34914
|
-
if (enumerableOnly) {
|
|
34915
|
-
symbols = symbols.filter(function (sym) {
|
|
34916
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
34917
|
-
});
|
|
34918
|
-
}
|
|
34919
|
-
|
|
34920
|
-
keys.push.apply(keys, symbols);
|
|
34921
|
-
}
|
|
34922
|
-
|
|
34923
|
-
return keys;
|
|
34924
|
-
}
|
|
34925
|
-
|
|
34926
|
-
function objectSpread2_objectSpread2(target) {
|
|
34927
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
34928
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
34929
|
-
|
|
34930
|
-
if (i % 2) {
|
|
34931
|
-
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
34932
|
-
defineProperty_defineProperty(target, key, source[key]);
|
|
34933
|
-
});
|
|
34934
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
34935
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
34936
|
-
} else {
|
|
34937
|
-
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
34938
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
34939
|
-
});
|
|
34940
|
-
}
|
|
34941
|
-
}
|
|
34942
|
-
|
|
34943
|
-
return target;
|
|
34944
|
-
}
|
|
34945
34698
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
34946
34699
|
/**
|
|
34947
34700
|
* @ignore
|
|
@@ -35608,7 +35361,7 @@ function pickAttrs(props) {
|
|
|
35608
35361
|
aria: true
|
|
35609
35362
|
};
|
|
35610
35363
|
} else {
|
|
35611
|
-
mergedConfig =
|
|
35364
|
+
mergedConfig = _objectSpread2({}, ariaOnly);
|
|
35612
35365
|
}
|
|
35613
35366
|
|
|
35614
35367
|
var attrs = {};
|
|
@@ -35641,7 +35394,7 @@ var react_is = __webpack_require__(9864);
|
|
|
35641
35394
|
function fillRef(ref, node) {
|
|
35642
35395
|
if (typeof ref === 'function') {
|
|
35643
35396
|
ref(node);
|
|
35644
|
-
} else if (
|
|
35397
|
+
} else if (typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
35645
35398
|
ref.current = node;
|
|
35646
35399
|
}
|
|
35647
35400
|
}
|
|
@@ -35751,7 +35504,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
35751
35504
|
function getTransitionName(transitionName, transitionType) {
|
|
35752
35505
|
if (!transitionName) return null;
|
|
35753
35506
|
|
|
35754
|
-
if (
|
|
35507
|
+
if (typeof_typeof(transitionName) === 'object') {
|
|
35755
35508
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
35756
35509
|
return match[1].toUpperCase();
|
|
35757
35510
|
});
|
|
@@ -36044,13 +35797,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36044
35797
|
|
|
36045
35798
|
switch (status) {
|
|
36046
35799
|
case 'appear':
|
|
36047
|
-
return _ref2 = {},
|
|
35800
|
+
return _ref2 = {}, _defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), _defineProperty(_ref2, STEP_START, onAppearStart), _defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
36048
35801
|
|
|
36049
35802
|
case 'enter':
|
|
36050
|
-
return _ref3 = {},
|
|
35803
|
+
return _ref3 = {}, _defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), _defineProperty(_ref3, STEP_START, onEnterStart), _defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
36051
35804
|
|
|
36052
35805
|
case 'leave':
|
|
36053
|
-
return _ref4 = {},
|
|
35806
|
+
return _ref4 = {}, _defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), _defineProperty(_ref4, STEP_START, onLeaveStart), _defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
36054
35807
|
|
|
36055
35808
|
default:
|
|
36056
35809
|
return {};
|
|
@@ -36158,7 +35911,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36158
35911
|
var mergedStyle = style;
|
|
36159
35912
|
|
|
36160
35913
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
36161
|
-
mergedStyle =
|
|
35914
|
+
mergedStyle = _objectSpread2({
|
|
36162
35915
|
transition: 'none'
|
|
36163
35916
|
}, mergedStyle);
|
|
36164
35917
|
}
|
|
@@ -36173,17 +35926,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36173
35926
|
|
|
36174
35927
|
|
|
36175
35928
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
36176
|
-
|
|
35929
|
+
_inherits(DomWrapper, _React$Component);
|
|
36177
35930
|
|
|
36178
|
-
var _super =
|
|
35931
|
+
var _super = _createSuper(DomWrapper);
|
|
36179
35932
|
|
|
36180
35933
|
function DomWrapper() {
|
|
36181
|
-
|
|
35934
|
+
_classCallCheck(this, DomWrapper);
|
|
36182
35935
|
|
|
36183
35936
|
return _super.apply(this, arguments);
|
|
36184
35937
|
}
|
|
36185
35938
|
|
|
36186
|
-
|
|
35939
|
+
_createClass(DomWrapper, [{
|
|
36187
35940
|
key: "render",
|
|
36188
35941
|
value: function render() {
|
|
36189
35942
|
return this.props.children;
|
|
@@ -36219,7 +35972,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
36219
35972
|
function genCSSMotion(config) {
|
|
36220
35973
|
var transitionSupport = config;
|
|
36221
35974
|
|
|
36222
|
-
if (
|
|
35975
|
+
if (typeof_typeof(config) === 'object') {
|
|
36223
35976
|
transitionSupport = config.transitionSupport;
|
|
36224
35977
|
}
|
|
36225
35978
|
|
|
@@ -36277,7 +36030,7 @@ function genCSSMotion(config) {
|
|
|
36277
36030
|
|
|
36278
36031
|
var motionChildren;
|
|
36279
36032
|
|
|
36280
|
-
var mergedProps =
|
|
36033
|
+
var mergedProps = _objectSpread2(_objectSpread2({}, eventProps), {}, {
|
|
36281
36034
|
visible: visible
|
|
36282
36035
|
});
|
|
36283
36036
|
|
|
@@ -36287,13 +36040,13 @@ function genCSSMotion(config) {
|
|
|
36287
36040
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
36288
36041
|
// Stable children
|
|
36289
36042
|
if (mergedVisible) {
|
|
36290
|
-
motionChildren = children(
|
|
36043
|
+
motionChildren = children(_objectSpread2({}, mergedProps), setNodeRef);
|
|
36291
36044
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
36292
|
-
motionChildren = children(
|
|
36045
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36293
36046
|
className: leavedClassName
|
|
36294
36047
|
}), setNodeRef);
|
|
36295
36048
|
} else if (forceRender) {
|
|
36296
|
-
motionChildren = children(
|
|
36049
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36297
36050
|
style: {
|
|
36298
36051
|
display: 'none'
|
|
36299
36052
|
}
|
|
@@ -36315,8 +36068,8 @@ function genCSSMotion(config) {
|
|
|
36315
36068
|
statusSuffix = 'start';
|
|
36316
36069
|
}
|
|
36317
36070
|
|
|
36318
|
-
motionChildren = children(
|
|
36319
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
36071
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36072
|
+
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {}, _defineProperty(_classNames, getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix)), statusSuffix), _defineProperty(_classNames, motionName, typeof motionName === 'string'), _classNames)),
|
|
36320
36073
|
style: statusStyle
|
|
36321
36074
|
}), setNodeRef);
|
|
36322
36075
|
}
|
|
@@ -36329,41 +36082,6 @@ function genCSSMotion(config) {
|
|
|
36329
36082
|
return CSSMotion;
|
|
36330
36083
|
}
|
|
36331
36084
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36332
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36333
|
-
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36334
|
-
if (source == null) return {};
|
|
36335
|
-
var target = {};
|
|
36336
|
-
var sourceKeys = Object.keys(source);
|
|
36337
|
-
var key, i;
|
|
36338
|
-
|
|
36339
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
36340
|
-
key = sourceKeys[i];
|
|
36341
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36342
|
-
target[key] = source[key];
|
|
36343
|
-
}
|
|
36344
|
-
|
|
36345
|
-
return target;
|
|
36346
|
-
}
|
|
36347
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36348
|
-
|
|
36349
|
-
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36350
|
-
if (source == null) return {};
|
|
36351
|
-
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36352
|
-
var key, i;
|
|
36353
|
-
|
|
36354
|
-
if (Object.getOwnPropertySymbols) {
|
|
36355
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36356
|
-
|
|
36357
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36358
|
-
key = sourceSymbolKeys[i];
|
|
36359
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36360
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36361
|
-
target[key] = source[key];
|
|
36362
|
-
}
|
|
36363
|
-
}
|
|
36364
|
-
|
|
36365
|
-
return target;
|
|
36366
|
-
}
|
|
36367
36085
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
36368
36086
|
|
|
36369
36087
|
|
|
@@ -36374,7 +36092,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
36374
36092
|
function wrapKeyToObject(key) {
|
|
36375
36093
|
var keyObj;
|
|
36376
36094
|
|
|
36377
|
-
if (key &&
|
|
36095
|
+
if (key && typeof_typeof(key) === 'object' && 'key' in key) {
|
|
36378
36096
|
keyObj = key;
|
|
36379
36097
|
} else {
|
|
36380
36098
|
keyObj = {
|
|
@@ -36382,7 +36100,7 @@ function wrapKeyToObject(key) {
|
|
|
36382
36100
|
};
|
|
36383
36101
|
}
|
|
36384
36102
|
|
|
36385
|
-
return
|
|
36103
|
+
return _objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36386
36104
|
key: String(keyObj.key)
|
|
36387
36105
|
});
|
|
36388
36106
|
}
|
|
@@ -36409,14 +36127,14 @@ function diffKeys() {
|
|
|
36409
36127
|
// New added keys should add before current key
|
|
36410
36128
|
if (currentIndex < i) {
|
|
36411
36129
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
36412
|
-
return
|
|
36130
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36413
36131
|
status: STATUS_ADD
|
|
36414
36132
|
});
|
|
36415
36133
|
}));
|
|
36416
36134
|
currentIndex = i;
|
|
36417
36135
|
}
|
|
36418
36136
|
|
|
36419
|
-
list.push(
|
|
36137
|
+
list.push(_objectSpread2(_objectSpread2({}, currentKeyObj), {}, {
|
|
36420
36138
|
status: STATUS_KEEP
|
|
36421
36139
|
}));
|
|
36422
36140
|
currentIndex += 1;
|
|
@@ -36427,7 +36145,7 @@ function diffKeys() {
|
|
|
36427
36145
|
|
|
36428
36146
|
|
|
36429
36147
|
if (!hit) {
|
|
36430
|
-
list.push(
|
|
36148
|
+
list.push(_objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36431
36149
|
status: STATUS_REMOVE
|
|
36432
36150
|
}));
|
|
36433
36151
|
}
|
|
@@ -36435,7 +36153,7 @@ function diffKeys() {
|
|
|
36435
36153
|
|
|
36436
36154
|
if (currentIndex < currentLen) {
|
|
36437
36155
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36438
|
-
return
|
|
36156
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36439
36157
|
status: STATUS_ADD
|
|
36440
36158
|
});
|
|
36441
36159
|
}));
|
|
@@ -36496,14 +36214,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36496
36214
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36497
36215
|
|
|
36498
36216
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36499
|
-
|
|
36217
|
+
_inherits(CSSMotionList, _React$Component);
|
|
36500
36218
|
|
|
36501
|
-
var _super =
|
|
36219
|
+
var _super = _createSuper(CSSMotionList);
|
|
36502
36220
|
|
|
36503
36221
|
function CSSMotionList() {
|
|
36504
36222
|
var _this;
|
|
36505
36223
|
|
|
36506
|
-
|
|
36224
|
+
_classCallCheck(this, CSSMotionList);
|
|
36507
36225
|
|
|
36508
36226
|
_this = _super.apply(this, arguments);
|
|
36509
36227
|
_this.state = {
|
|
@@ -36516,7 +36234,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36516
36234
|
return {
|
|
36517
36235
|
keyEntities: keyEntities.map(function (entity) {
|
|
36518
36236
|
if (entity.key !== removeKey) return entity;
|
|
36519
|
-
return
|
|
36237
|
+
return _objectSpread2(_objectSpread2({}, entity), {}, {
|
|
36520
36238
|
status: STATUS_REMOVED
|
|
36521
36239
|
});
|
|
36522
36240
|
})
|
|
@@ -36527,7 +36245,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36527
36245
|
return _this;
|
|
36528
36246
|
}
|
|
36529
36247
|
|
|
36530
|
-
|
|
36248
|
+
_createClass(CSSMotionList, [{
|
|
36531
36249
|
key: "render",
|
|
36532
36250
|
value: function render() {
|
|
36533
36251
|
var _this2 = this;
|
|
@@ -36538,7 +36256,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36538
36256
|
component = _this$props.component,
|
|
36539
36257
|
children = _this$props.children,
|
|
36540
36258
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36541
|
-
restProps =
|
|
36259
|
+
restProps = _objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36542
36260
|
|
|
36543
36261
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36544
36262
|
var motionProps = {};
|
|
@@ -36549,10 +36267,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36549
36267
|
delete restProps.keys;
|
|
36550
36268
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36551
36269
|
var status = _ref2.status,
|
|
36552
|
-
eventProps =
|
|
36270
|
+
eventProps = _objectWithoutProperties(_ref2, ["status"]);
|
|
36553
36271
|
|
|
36554
36272
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36555
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
36273
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, extends_extends({}, motionProps, {
|
|
36556
36274
|
key: eventProps.key,
|
|
36557
36275
|
visible: visible,
|
|
36558
36276
|
eventProps: eventProps,
|
|
@@ -36626,8 +36344,8 @@ function Mask(props) {
|
|
|
36626
36344
|
}, function (_ref) {
|
|
36627
36345
|
var motionClassName = _ref.className,
|
|
36628
36346
|
motionStyle = _ref.style;
|
|
36629
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36630
|
-
style:
|
|
36347
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36348
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), style),
|
|
36631
36349
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36632
36350
|
}, maskProps));
|
|
36633
36351
|
});
|
|
@@ -36810,7 +36528,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36810
36528
|
|
|
36811
36529
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
36812
36530
|
className: "".concat(prefixCls, "-content")
|
|
36813
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36531
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36814
36532
|
className: "".concat(prefixCls, "-body"),
|
|
36815
36533
|
style: bodyStyle
|
|
36816
36534
|
}, bodyProps), children), footerNode);
|
|
@@ -36830,7 +36548,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36830
36548
|
key: "dialog-element",
|
|
36831
36549
|
role: "document",
|
|
36832
36550
|
ref: motionRef,
|
|
36833
|
-
style:
|
|
36551
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionStyle), style), contentStyle),
|
|
36834
36552
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
36835
36553
|
onMouseDown: onMouseDown,
|
|
36836
36554
|
onMouseUp: onMouseUp
|
|
@@ -37012,7 +36730,7 @@ function Dialog(props) {
|
|
|
37012
36730
|
return function () {};
|
|
37013
36731
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
37014
36732
|
|
|
37015
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36733
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37016
36734
|
className: "".concat(prefixCls, "-root")
|
|
37017
36735
|
}, pickAttrs(props, {
|
|
37018
36736
|
data: true
|
|
@@ -37020,11 +36738,11 @@ function Dialog(props) {
|
|
|
37020
36738
|
prefixCls: prefixCls,
|
|
37021
36739
|
visible: mask && visible,
|
|
37022
36740
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
37023
|
-
style:
|
|
36741
|
+
style: _objectSpread2({
|
|
37024
36742
|
zIndex: zIndex
|
|
37025
36743
|
}, maskStyle),
|
|
37026
36744
|
maskProps: maskProps
|
|
37027
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36745
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37028
36746
|
tabIndex: -1,
|
|
37029
36747
|
onKeyDown: onWrapperKeyDown,
|
|
37030
36748
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -37032,12 +36750,12 @@ function Dialog(props) {
|
|
|
37032
36750
|
onClick: onWrapperClick,
|
|
37033
36751
|
role: "dialog",
|
|
37034
36752
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
37035
|
-
style:
|
|
36753
|
+
style: _objectSpread2(_objectSpread2({
|
|
37036
36754
|
zIndex: zIndex
|
|
37037
36755
|
}, wrapStyle), {}, {
|
|
37038
36756
|
display: !animatedVisible ? 'none' : null
|
|
37039
36757
|
})
|
|
37040
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
36758
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, extends_extends({}, props, {
|
|
37041
36759
|
onMouseDown: onContentMouseDown,
|
|
37042
36760
|
onMouseUp: onContentMouseUp,
|
|
37043
36761
|
ref: contentRef,
|
|
@@ -37085,7 +36803,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37085
36803
|
}, [visible]); // 渲染在当前 dom 里;
|
|
37086
36804
|
|
|
37087
36805
|
if (getContainer === false) {
|
|
37088
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
36806
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
37089
36807
|
getOpenCount: function getOpenCount() {
|
|
37090
36808
|
return 2;
|
|
37091
36809
|
} // 不对 body 做任何操作。。
|
|
@@ -37103,7 +36821,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37103
36821
|
forceRender: forceRender,
|
|
37104
36822
|
getContainer: getContainer
|
|
37105
36823
|
}, function (childProps) {
|
|
37106
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
36824
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
37107
36825
|
destroyOnClose: destroyOnClose,
|
|
37108
36826
|
afterClose: function afterClose() {
|
|
37109
36827
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -37138,8 +36856,8 @@ function getConfirmLocale() {
|
|
|
37138
36856
|
|
|
37139
36857
|
|
|
37140
36858
|
|
|
37141
|
-
var UnreachableException = /*#__PURE__*/
|
|
37142
|
-
|
|
36859
|
+
var UnreachableException = /*#__PURE__*/_createClass(function UnreachableException(value) {
|
|
36860
|
+
_classCallCheck(this, UnreachableException);
|
|
37143
36861
|
|
|
37144
36862
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
37145
36863
|
});
|
|
@@ -37202,8 +36920,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
37202
36920
|
console.warn(new UnreachableException(size).error);
|
|
37203
36921
|
}
|
|
37204
36922
|
|
|
37205
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37206
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36923
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
36924
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, others, {
|
|
37207
36925
|
className: classes
|
|
37208
36926
|
}));
|
|
37209
36927
|
});
|
|
@@ -37274,14 +36992,14 @@ function isNotGrey(color) {
|
|
|
37274
36992
|
}
|
|
37275
36993
|
|
|
37276
36994
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
37277
|
-
|
|
36995
|
+
_inherits(Wave, _React$Component);
|
|
37278
36996
|
|
|
37279
|
-
var _super =
|
|
36997
|
+
var _super = _createSuper(Wave);
|
|
37280
36998
|
|
|
37281
36999
|
function Wave() {
|
|
37282
37000
|
var _this;
|
|
37283
37001
|
|
|
37284
|
-
|
|
37002
|
+
_classCallCheck(this, Wave);
|
|
37285
37003
|
|
|
37286
37004
|
_this = _super.apply(this, arguments);
|
|
37287
37005
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -37301,7 +37019,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37301
37019
|
|
|
37302
37020
|
_this.extraNode = document.createElement('div');
|
|
37303
37021
|
|
|
37304
|
-
var _assertThisInitialize =
|
|
37022
|
+
var _assertThisInitialize = _assertThisInitialized(_this),
|
|
37305
37023
|
extraNode = _assertThisInitialize.extraNode;
|
|
37306
37024
|
|
|
37307
37025
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -37408,7 +37126,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37408
37126
|
return _this;
|
|
37409
37127
|
}
|
|
37410
37128
|
|
|
37411
|
-
|
|
37129
|
+
_createClass(Wave, [{
|
|
37412
37130
|
key: "componentDidMount",
|
|
37413
37131
|
value: function componentDidMount() {
|
|
37414
37132
|
var node = this.containerRef.current;
|
|
@@ -37635,7 +37353,7 @@ function spaceChildren(children, needInserted) {
|
|
|
37635
37353
|
var isPrevChildPure = false;
|
|
37636
37354
|
var childList = [];
|
|
37637
37355
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
37638
|
-
var type =
|
|
37356
|
+
var type = typeof_typeof(child);
|
|
37639
37357
|
|
|
37640
37358
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
37641
37359
|
|
|
@@ -37735,7 +37453,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37735
37453
|
}; // =============== Update Loading ===============
|
|
37736
37454
|
|
|
37737
37455
|
|
|
37738
|
-
var loadingOrDelay =
|
|
37456
|
+
var loadingOrDelay = typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
37739
37457
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
37740
37458
|
clearTimeout(delayTimeoutRef.current);
|
|
37741
37459
|
|
|
@@ -37775,7 +37493,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37775
37493
|
var sizeFullname = customizeSize || size;
|
|
37776
37494
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
37777
37495
|
var iconType = innerLoading ? 'loading' : icon;
|
|
37778
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37496
|
+
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);
|
|
37779
37497
|
var iconNode;
|
|
37780
37498
|
|
|
37781
37499
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -37794,14 +37512,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37794
37512
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
37795
37513
|
|
|
37796
37514
|
if (linkButtonRestProps.href !== undefined) {
|
|
37797
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
37515
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", extends_extends({}, linkButtonRestProps, {
|
|
37798
37516
|
className: classes,
|
|
37799
37517
|
onClick: handleClick,
|
|
37800
37518
|
ref: buttonRef
|
|
37801
37519
|
}), iconNode, kids);
|
|
37802
37520
|
}
|
|
37803
37521
|
|
|
37804
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
37522
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", extends_extends({}, rest, {
|
|
37805
37523
|
type: htmlType,
|
|
37806
37524
|
className: classes,
|
|
37807
37525
|
onClick: handleClick,
|
|
@@ -37979,9 +37697,9 @@ var Modal = function Modal(props) {
|
|
|
37979
37697
|
okType = props.okType,
|
|
37980
37698
|
cancelText = props.cancelText,
|
|
37981
37699
|
confirmLoading = props.confirmLoading;
|
|
37982
|
-
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,
|
|
37700
|
+
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({
|
|
37983
37701
|
onClick: handleCancel
|
|
37984
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
37702
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, extends_extends({}, convertLegacyProps(okType), {
|
|
37985
37703
|
loading: confirmLoading,
|
|
37986
37704
|
onClick: handleOk
|
|
37987
37705
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -38016,8 +37734,8 @@ var Modal = function Modal(props) {
|
|
|
38016
37734
|
type: "close",
|
|
38017
37735
|
className: "".concat(prefixCls, "-close-icon")
|
|
38018
37736
|
}));
|
|
38019
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
38020
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
37737
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), _defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
37738
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, extends_extends({}, restProps, {
|
|
38021
37739
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
38022
37740
|
prefixCls: prefixCls,
|
|
38023
37741
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -38143,7 +37861,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
38143
37861
|
children = props.children,
|
|
38144
37862
|
prefixCls = props.prefixCls,
|
|
38145
37863
|
buttonProps = props.buttonProps;
|
|
38146
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
37864
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, extends_extends({}, convertLegacyProps(type), {
|
|
38147
37865
|
onClick: onClick,
|
|
38148
37866
|
loading: loading,
|
|
38149
37867
|
prefixCls: prefixCls
|
|
@@ -39660,7 +39378,7 @@ function get(entity, path) {
|
|
|
39660
39378
|
|
|
39661
39379
|
|
|
39662
39380
|
function _toArray(arr) {
|
|
39663
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
39381
|
+
return arrayWithHoles_arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
39664
39382
|
}
|
|
39665
39383
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
39666
39384
|
|
|
@@ -39682,9 +39400,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
39682
39400
|
if (!entity && typeof path === 'number') {
|
|
39683
39401
|
clone = [];
|
|
39684
39402
|
} else if (Array.isArray(entity)) {
|
|
39685
|
-
clone =
|
|
39403
|
+
clone = _toConsumableArray(entity);
|
|
39686
39404
|
} else {
|
|
39687
|
-
clone =
|
|
39405
|
+
clone = _objectSpread2({}, entity);
|
|
39688
39406
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
39689
39407
|
|
|
39690
39408
|
|
|
@@ -39748,7 +39466,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
39748
39466
|
}
|
|
39749
39467
|
|
|
39750
39468
|
function isObject(obj) {
|
|
39751
|
-
return
|
|
39469
|
+
return typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
39752
39470
|
}
|
|
39753
39471
|
/**
|
|
39754
39472
|
* Copy values into store and return a new values object
|
|
@@ -39757,7 +39475,7 @@ function isObject(obj) {
|
|
|
39757
39475
|
|
|
39758
39476
|
|
|
39759
39477
|
function internalSetValues(store, values) {
|
|
39760
|
-
var newStore = Array.isArray(store) ?
|
|
39478
|
+
var newStore = Array.isArray(store) ? _toConsumableArray(store) : _objectSpread2({}, store);
|
|
39761
39479
|
|
|
39762
39480
|
if (!values) {
|
|
39763
39481
|
return newStore;
|
|
@@ -39800,14 +39518,14 @@ function isSimilar(source, target) {
|
|
|
39800
39518
|
return false;
|
|
39801
39519
|
}
|
|
39802
39520
|
|
|
39803
|
-
if (!source || !target ||
|
|
39521
|
+
if (!source || !target || typeof_typeof(source) !== 'object' || typeof_typeof(target) !== 'object') {
|
|
39804
39522
|
return false;
|
|
39805
39523
|
}
|
|
39806
39524
|
|
|
39807
39525
|
var sourceKeys = Object.keys(source);
|
|
39808
39526
|
var targetKeys = Object.keys(target);
|
|
39809
|
-
var keys = new Set([].concat(
|
|
39810
|
-
return
|
|
39527
|
+
var keys = new Set([].concat(_toConsumableArray(sourceKeys), _toConsumableArray(targetKeys)));
|
|
39528
|
+
return _toConsumableArray(keys).every(function (key) {
|
|
39811
39529
|
var sourceValue = source[key];
|
|
39812
39530
|
var targetValue = target[key];
|
|
39813
39531
|
|
|
@@ -39850,12 +39568,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
39850
39568
|
|
|
39851
39569
|
if (diff > 0) {
|
|
39852
39570
|
// move left
|
|
39853
|
-
return [].concat(
|
|
39571
|
+
return [].concat(_toConsumableArray(array.slice(0, toIndex)), [item], _toConsumableArray(array.slice(toIndex, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
39854
39572
|
}
|
|
39855
39573
|
|
|
39856
39574
|
if (diff < 0) {
|
|
39857
39575
|
// move right
|
|
39858
|
-
return [].concat(
|
|
39576
|
+
return [].concat(_toConsumableArray(array.slice(0, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], _toConsumableArray(array.slice(toIndex + 1, length)));
|
|
39859
39577
|
}
|
|
39860
39578
|
|
|
39861
39579
|
return array;
|
|
@@ -39895,13 +39613,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
39895
39613
|
|
|
39896
39614
|
|
|
39897
39615
|
function _validateRule() {
|
|
39898
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39616
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
39899
39617
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
39900
|
-
return
|
|
39618
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
39901
39619
|
while (1) {
|
|
39902
39620
|
switch (_context2.prev = _context2.next) {
|
|
39903
39621
|
case 0:
|
|
39904
|
-
cloneRule =
|
|
39622
|
+
cloneRule = _objectSpread2({}, rule); // Bug of `async-validator`
|
|
39905
39623
|
// https://github.com/react-component/field-form/issues/316
|
|
39906
39624
|
// https://github.com/react-component/field-form/issues/313
|
|
39907
39625
|
|
|
@@ -39914,13 +39632,13 @@ function _validateRule() {
|
|
|
39914
39632
|
delete cloneRule.defaultField;
|
|
39915
39633
|
}
|
|
39916
39634
|
|
|
39917
|
-
validator = new AsyncValidator(
|
|
39635
|
+
validator = new AsyncValidator(_defineProperty({}, name, [cloneRule]));
|
|
39918
39636
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
39919
39637
|
validator.messages(messages);
|
|
39920
39638
|
result = [];
|
|
39921
39639
|
_context2.prev = 8;
|
|
39922
39640
|
_context2.next = 11;
|
|
39923
|
-
return Promise.resolve(validator.validate(
|
|
39641
|
+
return Promise.resolve(validator.validate(_defineProperty({}, name, value), _objectSpread2({}, options)));
|
|
39924
39642
|
|
|
39925
39643
|
case 11:
|
|
39926
39644
|
_context2.next = 16;
|
|
@@ -39960,12 +39678,12 @@ function _validateRule() {
|
|
|
39960
39678
|
case 19:
|
|
39961
39679
|
subResults = _context2.sent;
|
|
39962
39680
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
39963
|
-
return [].concat(
|
|
39681
|
+
return [].concat(_toConsumableArray(prev), _toConsumableArray(errors));
|
|
39964
39682
|
}, []));
|
|
39965
39683
|
|
|
39966
39684
|
case 21:
|
|
39967
39685
|
// Replace message with variables
|
|
39968
|
-
kv =
|
|
39686
|
+
kv = _objectSpread2(_objectSpread2({}, rule), {}, {
|
|
39969
39687
|
name: name,
|
|
39970
39688
|
enum: (rule.enum || []).join(', ')
|
|
39971
39689
|
}, messageVariables);
|
|
@@ -39994,7 +39712,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
39994
39712
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
39995
39713
|
var originValidatorFunc = currentRule.validator;
|
|
39996
39714
|
|
|
39997
|
-
var cloneRule =
|
|
39715
|
+
var cloneRule = _objectSpread2(_objectSpread2({}, currentRule), {}, {
|
|
39998
39716
|
ruleIndex: ruleIndex
|
|
39999
39717
|
}); // Replace validator if needed
|
|
40000
39718
|
|
|
@@ -40062,9 +39780,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40062
39780
|
if (validateFirst === true) {
|
|
40063
39781
|
// >>>>> Validate by serialization
|
|
40064
39782
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
40065
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39783
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(resolve, reject) {
|
|
40066
39784
|
var i, rule, errors;
|
|
40067
|
-
return
|
|
39785
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
40068
39786
|
while (1) {
|
|
40069
39787
|
switch (_context.prev = _context.next) {
|
|
40070
39788
|
case 0:
|
|
@@ -40143,15 +39861,15 @@ function finishOnAllFailed(_x8) {
|
|
|
40143
39861
|
}
|
|
40144
39862
|
|
|
40145
39863
|
function _finishOnAllFailed() {
|
|
40146
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40147
|
-
return
|
|
39864
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(rulePromises) {
|
|
39865
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
40148
39866
|
while (1) {
|
|
40149
39867
|
switch (_context3.prev = _context3.next) {
|
|
40150
39868
|
case 0:
|
|
40151
39869
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
40152
39870
|
var _ref5;
|
|
40153
39871
|
|
|
40154
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
39872
|
+
var errors = (_ref5 = []).concat.apply(_ref5, _toConsumableArray(errorsList));
|
|
40155
39873
|
|
|
40156
39874
|
return errors;
|
|
40157
39875
|
}));
|
|
@@ -40171,9 +39889,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
40171
39889
|
}
|
|
40172
39890
|
|
|
40173
39891
|
function _finishOnFirstFailed() {
|
|
40174
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39892
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(rulePromises) {
|
|
40175
39893
|
var count;
|
|
40176
|
-
return
|
|
39894
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
40177
39895
|
while (1) {
|
|
40178
39896
|
switch (_context4.prev = _context4.next) {
|
|
40179
39897
|
case 0:
|
|
@@ -40236,9 +39954,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
40236
39954
|
|
|
40237
39955
|
|
|
40238
39956
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
40239
|
-
|
|
39957
|
+
_inherits(Field, _React$Component);
|
|
40240
39958
|
|
|
40241
|
-
var _super =
|
|
39959
|
+
var _super = _createSuper(Field);
|
|
40242
39960
|
|
|
40243
39961
|
/**
|
|
40244
39962
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -40254,7 +39972,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40254
39972
|
function Field(props) {
|
|
40255
39973
|
var _this;
|
|
40256
39974
|
|
|
40257
|
-
|
|
39975
|
+
_classCallCheck(this, Field);
|
|
40258
39976
|
|
|
40259
39977
|
_this = _super.call(this, props); // Register on init
|
|
40260
39978
|
|
|
@@ -40289,7 +40007,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40289
40007
|
fieldContext = _this$props2.fieldContext;
|
|
40290
40008
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
40291
40009
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
40292
|
-
return name !== undefined ? [].concat(
|
|
40010
|
+
return name !== undefined ? [].concat(_toConsumableArray(prefixName), _toConsumableArray(name)) : [];
|
|
40293
40011
|
};
|
|
40294
40012
|
|
|
40295
40013
|
_this.getRules = function () {
|
|
@@ -40322,7 +40040,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40322
40040
|
|
|
40323
40041
|
_this.triggerMetaEvent = function (destroy) {
|
|
40324
40042
|
var onMetaChange = _this.props.onMetaChange;
|
|
40325
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
40043
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(_objectSpread2(_objectSpread2({}, _this.getMeta()), {}, {
|
|
40326
40044
|
destroy: destroy
|
|
40327
40045
|
}));
|
|
40328
40046
|
};
|
|
@@ -40511,9 +40229,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40511
40229
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
40512
40230
|
|
|
40513
40231
|
if (warningOnly) {
|
|
40514
|
-
nextWarnings.push.apply(nextWarnings,
|
|
40232
|
+
nextWarnings.push.apply(nextWarnings, _toConsumableArray(errors));
|
|
40515
40233
|
} else {
|
|
40516
|
-
nextErrors.push.apply(nextErrors,
|
|
40234
|
+
nextErrors.push.apply(nextErrors, _toConsumableArray(errors));
|
|
40517
40235
|
}
|
|
40518
40236
|
});
|
|
40519
40237
|
_this.errors = nextErrors;
|
|
@@ -40604,7 +40322,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40604
40322
|
if (typeof children === 'function') {
|
|
40605
40323
|
var meta = _this.getMeta();
|
|
40606
40324
|
|
|
40607
|
-
return
|
|
40325
|
+
return _objectSpread2(_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
40608
40326
|
isFunction: true
|
|
40609
40327
|
});
|
|
40610
40328
|
} // Filed element only
|
|
@@ -40656,13 +40374,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40656
40374
|
var value = _this.getValue();
|
|
40657
40375
|
|
|
40658
40376
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
40659
|
-
return
|
|
40377
|
+
return _defineProperty({}, valuePropName, val);
|
|
40660
40378
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40661
40379
|
|
|
40662
40380
|
|
|
40663
40381
|
var originTriggerFunc = childProps[trigger];
|
|
40664
40382
|
|
|
40665
|
-
var control =
|
|
40383
|
+
var control = _objectSpread2(_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
40666
40384
|
|
|
40667
40385
|
|
|
40668
40386
|
control[trigger] = function () {
|
|
@@ -40733,13 +40451,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40733
40451
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
40734
40452
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
40735
40453
|
|
|
40736
|
-
initEntityValue(
|
|
40454
|
+
initEntityValue(_assertThisInitialized(_this));
|
|
40737
40455
|
}
|
|
40738
40456
|
|
|
40739
40457
|
return _this;
|
|
40740
40458
|
}
|
|
40741
40459
|
|
|
40742
|
-
|
|
40460
|
+
_createClass(Field, [{
|
|
40743
40461
|
key: "componentDidMount",
|
|
40744
40462
|
value: function componentDidMount() {
|
|
40745
40463
|
var _this$props7 = this.props,
|
|
@@ -40813,7 +40531,7 @@ Field.defaultProps = {
|
|
|
40813
40531
|
|
|
40814
40532
|
function WrapperField(_ref5) {
|
|
40815
40533
|
var name = _ref5.name,
|
|
40816
|
-
restProps =
|
|
40534
|
+
restProps = _objectWithoutProperties(_ref5, Field_excluded);
|
|
40817
40535
|
|
|
40818
40536
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
40819
40537
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -40827,7 +40545,7 @@ function WrapperField(_ref5) {
|
|
|
40827
40545
|
|
|
40828
40546
|
if (false) {}
|
|
40829
40547
|
|
|
40830
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
40548
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, extends_extends({
|
|
40831
40549
|
key: key,
|
|
40832
40550
|
name: namePath
|
|
40833
40551
|
}, restProps, {
|
|
@@ -40864,7 +40582,7 @@ var List = function List(_ref) {
|
|
|
40864
40582
|
}
|
|
40865
40583
|
|
|
40866
40584
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
40867
|
-
var prefixName = [].concat(
|
|
40585
|
+
var prefixName = [].concat(_toConsumableArray(parentPrefixName), _toConsumableArray(getNamePath(name)));
|
|
40868
40586
|
|
|
40869
40587
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
40870
40588
|
var source = _ref2.source;
|
|
@@ -40877,7 +40595,7 @@ var List = function List(_ref) {
|
|
|
40877
40595
|
};
|
|
40878
40596
|
|
|
40879
40597
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
40880
|
-
value:
|
|
40598
|
+
value: _objectSpread2(_objectSpread2({}, context), {}, {
|
|
40881
40599
|
prefixName: prefixName
|
|
40882
40600
|
})
|
|
40883
40601
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -40908,13 +40626,13 @@ var List = function List(_ref) {
|
|
|
40908
40626
|
var newValue = getNewValue();
|
|
40909
40627
|
|
|
40910
40628
|
if (index >= 0 && index <= newValue.length) {
|
|
40911
|
-
keyManager.keys = [].concat(
|
|
40912
|
-
onChange([].concat(
|
|
40629
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], _toConsumableArray(keyManager.keys.slice(index)));
|
|
40630
|
+
onChange([].concat(_toConsumableArray(newValue.slice(0, index)), [defaultValue], _toConsumableArray(newValue.slice(index))));
|
|
40913
40631
|
} else {
|
|
40914
40632
|
if (false) {}
|
|
40915
40633
|
|
|
40916
|
-
keyManager.keys = [].concat(
|
|
40917
|
-
onChange([].concat(
|
|
40634
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
40635
|
+
onChange([].concat(_toConsumableArray(newValue), [defaultValue]));
|
|
40918
40636
|
}
|
|
40919
40637
|
|
|
40920
40638
|
keyManager.id += 1;
|
|
@@ -41023,7 +40741,7 @@ var SPLIT = '__@field_split__';
|
|
|
41023
40741
|
|
|
41024
40742
|
function normalize(namePath) {
|
|
41025
40743
|
return namePath.map(function (cell) {
|
|
41026
|
-
return "".concat(
|
|
40744
|
+
return "".concat(typeof_typeof(cell), ":").concat(cell);
|
|
41027
40745
|
}) // Magic split
|
|
41028
40746
|
.join(SPLIT);
|
|
41029
40747
|
}
|
|
@@ -41034,12 +40752,12 @@ function normalize(namePath) {
|
|
|
41034
40752
|
|
|
41035
40753
|
var NameMap = /*#__PURE__*/function () {
|
|
41036
40754
|
function NameMap() {
|
|
41037
|
-
|
|
40755
|
+
_classCallCheck(this, NameMap);
|
|
41038
40756
|
|
|
41039
40757
|
this.kvs = new Map();
|
|
41040
40758
|
}
|
|
41041
40759
|
|
|
41042
|
-
|
|
40760
|
+
_createClass(NameMap, [{
|
|
41043
40761
|
key: "set",
|
|
41044
40762
|
value: function set(key, value) {
|
|
41045
40763
|
this.kvs.set(normalize(key), value);
|
|
@@ -41070,7 +40788,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
41070
40788
|
}, {
|
|
41071
40789
|
key: "map",
|
|
41072
40790
|
value: function map(callback) {
|
|
41073
|
-
return
|
|
40791
|
+
return _toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
41074
40792
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
41075
40793
|
key = _ref2[0],
|
|
41076
40794
|
value = _ref2[1];
|
|
@@ -41124,7 +40842,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
41124
40842
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
41125
40843
|
var _this = this;
|
|
41126
40844
|
|
|
41127
|
-
|
|
40845
|
+
_classCallCheck(this, FormStore);
|
|
41128
40846
|
|
|
41129
40847
|
this.formHooked = false;
|
|
41130
40848
|
this.forceRootUpdate = void 0;
|
|
@@ -41384,7 +41102,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41384
41102
|
return fieldNamePath[i] === nameUnit;
|
|
41385
41103
|
})) {
|
|
41386
41104
|
map.update(shortNamePath, function (list) {
|
|
41387
|
-
return [].concat(
|
|
41105
|
+
return [].concat(_toConsumableArray(list), [field]);
|
|
41388
41106
|
});
|
|
41389
41107
|
}
|
|
41390
41108
|
});
|
|
@@ -41475,7 +41193,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41475
41193
|
|
|
41476
41194
|
|
|
41477
41195
|
if (!info.skipExist || originValue === undefined) {
|
|
41478
|
-
_this.store = setValue(_this.store, namePath,
|
|
41196
|
+
_this.store = setValue(_this.store, namePath, _toConsumableArray(records)[0].value);
|
|
41479
41197
|
}
|
|
41480
41198
|
}
|
|
41481
41199
|
}
|
|
@@ -41495,7 +41213,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41495
41213
|
if (records) {
|
|
41496
41214
|
var _requiredFieldEntitie;
|
|
41497
41215
|
|
|
41498
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
41216
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, _toConsumableArray(_toConsumableArray(records).map(function (r) {
|
|
41499
41217
|
return r.entity;
|
|
41500
41218
|
})));
|
|
41501
41219
|
}
|
|
@@ -41548,7 +41266,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41548
41266
|
fields.forEach(function (fieldData) {
|
|
41549
41267
|
var name = fieldData.name,
|
|
41550
41268
|
errors = fieldData.errors,
|
|
41551
|
-
data =
|
|
41269
|
+
data = _objectWithoutProperties(fieldData, useForm_excluded);
|
|
41552
41270
|
|
|
41553
41271
|
var namePath = getNamePath(name); // Value
|
|
41554
41272
|
|
|
@@ -41570,7 +41288,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41570
41288
|
var namePath = field.getNamePath();
|
|
41571
41289
|
var meta = field.getMeta();
|
|
41572
41290
|
|
|
41573
|
-
var fieldData =
|
|
41291
|
+
var fieldData = _objectSpread2(_objectSpread2({}, meta), {}, {
|
|
41574
41292
|
name: namePath,
|
|
41575
41293
|
value: _this.getFieldValue(namePath)
|
|
41576
41294
|
});
|
|
@@ -41669,7 +41387,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41669
41387
|
|
|
41670
41388
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
41671
41389
|
if (_this.subscribable) {
|
|
41672
|
-
var mergedInfo =
|
|
41390
|
+
var mergedInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
41673
41391
|
store: _this.getFieldsValue(true)
|
|
41674
41392
|
});
|
|
41675
41393
|
|
|
@@ -41702,7 +41420,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41702
41420
|
|
|
41703
41421
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
41704
41422
|
type: 'dependenciesUpdate',
|
|
41705
|
-
relatedFields: [namePath].concat(
|
|
41423
|
+
relatedFields: [namePath].concat(_toConsumableArray(childrenFields))
|
|
41706
41424
|
}); // trigger callback function
|
|
41707
41425
|
|
|
41708
41426
|
|
|
@@ -41713,7 +41431,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41713
41431
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
41714
41432
|
}
|
|
41715
41433
|
|
|
41716
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
41434
|
+
_this.triggerOnFieldsChange([namePath].concat(_toConsumableArray(childrenFields)));
|
|
41717
41435
|
};
|
|
41718
41436
|
|
|
41719
41437
|
this.setFieldsValue = function (store) {
|
|
@@ -41841,8 +41559,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41841
41559
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
41842
41560
|
|
|
41843
41561
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
41844
|
-
var promise = field.validateRules(
|
|
41845
|
-
validateMessages:
|
|
41562
|
+
var promise = field.validateRules(_objectSpread2({
|
|
41563
|
+
validateMessages: _objectSpread2(_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
41846
41564
|
}, options)); // Wrap promise with field
|
|
41847
41565
|
|
|
41848
41566
|
promiseList.push(promise.then(function () {
|
|
@@ -41859,9 +41577,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41859
41577
|
errors = _ref5.errors;
|
|
41860
41578
|
|
|
41861
41579
|
if (warningOnly) {
|
|
41862
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
41580
|
+
mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
|
|
41863
41581
|
} else {
|
|
41864
|
-
mergedErrors.push.apply(mergedErrors,
|
|
41582
|
+
mergedErrors.push.apply(mergedErrors, _toConsumableArray(errors));
|
|
41865
41583
|
}
|
|
41866
41584
|
});
|
|
41867
41585
|
|
|
@@ -41992,8 +41710,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
41992
41710
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
41993
41711
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
41994
41712
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
41995
|
-
value:
|
|
41996
|
-
validateMessages:
|
|
41713
|
+
value: _objectSpread2(_objectSpread2({}, formContext), {}, {
|
|
41714
|
+
validateMessages: _objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
41997
41715
|
// =========================================================
|
|
41998
41716
|
// = Global Form Control =
|
|
41999
41717
|
// =========================================================
|
|
@@ -42019,13 +41737,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
42019
41737
|
},
|
|
42020
41738
|
registerForm: function registerForm(name, form) {
|
|
42021
41739
|
if (name) {
|
|
42022
|
-
formsRef.current =
|
|
41740
|
+
formsRef.current = _objectSpread2(_objectSpread2({}, formsRef.current), {}, _defineProperty({}, name, form));
|
|
42023
41741
|
}
|
|
42024
41742
|
|
|
42025
41743
|
formContext.registerForm(name, form);
|
|
42026
41744
|
},
|
|
42027
41745
|
unregisterForm: function unregisterForm(name) {
|
|
42028
|
-
var newForms =
|
|
41746
|
+
var newForms = _objectSpread2({}, formsRef.current);
|
|
42029
41747
|
|
|
42030
41748
|
delete newForms[name];
|
|
42031
41749
|
formsRef.current = newForms;
|
|
@@ -42065,7 +41783,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42065
41783
|
_onFieldsChange = _ref.onFieldsChange,
|
|
42066
41784
|
_onFinish = _ref.onFinish,
|
|
42067
41785
|
onFinishFailed = _ref.onFinishFailed,
|
|
42068
|
-
restProps =
|
|
41786
|
+
restProps = _objectWithoutProperties(_ref, Form_excluded);
|
|
42069
41787
|
|
|
42070
41788
|
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:
|
|
42071
41789
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -42093,7 +41811,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42093
41811
|
};
|
|
42094
41812
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
42095
41813
|
|
|
42096
|
-
setValidateMessages(
|
|
41814
|
+
setValidateMessages(_objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
42097
41815
|
setCallbacks({
|
|
42098
41816
|
onValuesChange: onValuesChange,
|
|
42099
41817
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -42146,7 +41864,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42146
41864
|
prevFieldsRef.current = fields;
|
|
42147
41865
|
}, [fields, formInstance]);
|
|
42148
41866
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
42149
|
-
return
|
|
41867
|
+
return _objectSpread2(_objectSpread2({}, formInstance), {}, {
|
|
42150
41868
|
validateTrigger: validateTrigger
|
|
42151
41869
|
});
|
|
42152
41870
|
}, [formInstance, validateTrigger]);
|
|
@@ -42158,7 +41876,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42158
41876
|
return wrapperNode;
|
|
42159
41877
|
}
|
|
42160
41878
|
|
|
42161
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
41879
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, restProps, {
|
|
42162
41880
|
onSubmit: function onSubmit(event) {
|
|
42163
41881
|
event.preventDefault();
|
|
42164
41882
|
event.stopPropagation();
|
|
@@ -42340,14 +42058,14 @@ LocaleProvider.defaultProps = {
|
|
|
42340
42058
|
|
|
42341
42059
|
|
|
42342
42060
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
42343
|
-
|
|
42061
|
+
_inherits(Notice, _Component);
|
|
42344
42062
|
|
|
42345
|
-
var _super =
|
|
42063
|
+
var _super = _createSuper(Notice);
|
|
42346
42064
|
|
|
42347
42065
|
function Notice() {
|
|
42348
42066
|
var _this;
|
|
42349
42067
|
|
|
42350
|
-
|
|
42068
|
+
_classCallCheck(this, Notice);
|
|
42351
42069
|
|
|
42352
42070
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42353
42071
|
args[_key] = arguments[_key];
|
|
@@ -42390,7 +42108,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42390
42108
|
return _this;
|
|
42391
42109
|
}
|
|
42392
42110
|
|
|
42393
|
-
|
|
42111
|
+
_createClass(Notice, [{
|
|
42394
42112
|
key: "componentDidMount",
|
|
42395
42113
|
value: function componentDidMount() {
|
|
42396
42114
|
this.startCloseTimer();
|
|
@@ -42436,8 +42154,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42436
42154
|
|
|
42437
42155
|
return acc;
|
|
42438
42156
|
}, {});
|
|
42439
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
42440
|
-
className: classnames_default()(componentClass, className,
|
|
42157
|
+
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
42158
|
+
className: classnames_default()(componentClass, className, _defineProperty({}, "".concat(componentClass, "-closable"), closable)),
|
|
42441
42159
|
style: style,
|
|
42442
42160
|
onMouseEnter: this.clearCloseTimer,
|
|
42443
42161
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -42468,52 +42186,6 @@ Notice.defaultProps = {
|
|
|
42468
42186
|
duration: 1.5
|
|
42469
42187
|
};
|
|
42470
42188
|
|
|
42471
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
42472
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
42473
|
-
if (Array.isArray(arr)) return arr;
|
|
42474
|
-
}
|
|
42475
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
42476
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
42477
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42478
|
-
|
|
42479
|
-
if (_i == null) return;
|
|
42480
|
-
var _arr = [];
|
|
42481
|
-
var _n = true;
|
|
42482
|
-
var _d = false;
|
|
42483
|
-
|
|
42484
|
-
var _s, _e;
|
|
42485
|
-
|
|
42486
|
-
try {
|
|
42487
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
42488
|
-
_arr.push(_s.value);
|
|
42489
|
-
|
|
42490
|
-
if (i && _arr.length === i) break;
|
|
42491
|
-
}
|
|
42492
|
-
} catch (err) {
|
|
42493
|
-
_d = true;
|
|
42494
|
-
_e = err;
|
|
42495
|
-
} finally {
|
|
42496
|
-
try {
|
|
42497
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
42498
|
-
} finally {
|
|
42499
|
-
if (_d) throw _e;
|
|
42500
|
-
}
|
|
42501
|
-
}
|
|
42502
|
-
|
|
42503
|
-
return _arr;
|
|
42504
|
-
}
|
|
42505
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
42506
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
42507
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
42508
|
-
}
|
|
42509
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
42510
|
-
|
|
42511
|
-
|
|
42512
|
-
|
|
42513
|
-
|
|
42514
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
42515
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
42516
|
-
}
|
|
42517
42189
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
42518
42190
|
|
|
42519
42191
|
|
|
@@ -42524,7 +42196,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42524
42196
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42525
42197
|
|
|
42526
42198
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42527
|
-
_React$useState2 =
|
|
42199
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
42528
42200
|
elements = _React$useState2[0],
|
|
42529
42201
|
setElements = _React$useState2[1];
|
|
42530
42202
|
|
|
@@ -42585,14 +42257,14 @@ function getUuid() {
|
|
|
42585
42257
|
}
|
|
42586
42258
|
|
|
42587
42259
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
42588
|
-
|
|
42260
|
+
_inherits(Notification, _Component);
|
|
42589
42261
|
|
|
42590
|
-
var _super =
|
|
42262
|
+
var _super = _createSuper(Notification);
|
|
42591
42263
|
|
|
42592
42264
|
function Notification() {
|
|
42593
42265
|
var _this;
|
|
42594
42266
|
|
|
42595
|
-
|
|
42267
|
+
_classCallCheck(this, Notification);
|
|
42596
42268
|
|
|
42597
42269
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42598
42270
|
args[_key] = arguments[_key];
|
|
@@ -42607,7 +42279,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42607
42279
|
_this.add = function (originNotice, holderCallback) {
|
|
42608
42280
|
var key = originNotice.key || getUuid();
|
|
42609
42281
|
|
|
42610
|
-
var notice =
|
|
42282
|
+
var notice = _objectSpread2(_objectSpread2({}, originNotice), {}, {
|
|
42611
42283
|
key: key
|
|
42612
42284
|
});
|
|
42613
42285
|
|
|
@@ -42674,7 +42346,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42674
42346
|
return _this;
|
|
42675
42347
|
}
|
|
42676
42348
|
|
|
42677
|
-
|
|
42349
|
+
_createClass(Notification, [{
|
|
42678
42350
|
key: "getTransitionName",
|
|
42679
42351
|
value: function getTransitionName() {
|
|
42680
42352
|
var _this$props = this.props,
|
|
@@ -42707,7 +42379,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42707
42379
|
var key = notice.key,
|
|
42708
42380
|
userPassKey = notice.userPassKey;
|
|
42709
42381
|
|
|
42710
|
-
var noticeProps =
|
|
42382
|
+
var noticeProps = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
42711
42383
|
prefixCls: prefixCls,
|
|
42712
42384
|
closeIcon: closeIcon
|
|
42713
42385
|
}, notice), notice.props), {}, {
|
|
@@ -42758,7 +42430,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42758
42430
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
42759
42431
|
key: key,
|
|
42760
42432
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
42761
|
-
style:
|
|
42433
|
+
style: _objectSpread2({}, motionStyle),
|
|
42762
42434
|
ref: function ref(div) {
|
|
42763
42435
|
if (typeof key === 'undefined') {
|
|
42764
42436
|
return;
|
|
@@ -42775,9 +42447,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42775
42447
|
});
|
|
42776
42448
|
}
|
|
42777
42449
|
|
|
42778
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
42450
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, extends_extends({}, noticeProps, {
|
|
42779
42451
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
42780
|
-
style:
|
|
42452
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
42781
42453
|
visible: visible
|
|
42782
42454
|
}));
|
|
42783
42455
|
}));
|
|
@@ -42800,7 +42472,7 @@ Notification.defaultProps = {
|
|
|
42800
42472
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
42801
42473
|
var _ref6 = properties || {},
|
|
42802
42474
|
getContainer = _ref6.getContainer,
|
|
42803
|
-
props =
|
|
42475
|
+
props = _objectWithoutProperties(_ref6, ["getContainer"]);
|
|
42804
42476
|
|
|
42805
42477
|
var div = document.createElement('div');
|
|
42806
42478
|
|
|
@@ -42844,7 +42516,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
42844
42516
|
|
|
42845
42517
|
if (false) {}
|
|
42846
42518
|
|
|
42847
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
42519
|
+
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, {
|
|
42848
42520
|
ref: ref
|
|
42849
42521
|
})), div);
|
|
42850
42522
|
};
|
|
@@ -42874,7 +42546,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
42874
42546
|
};
|
|
42875
42547
|
|
|
42876
42548
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
42877
|
-
_useRCNotification2 =
|
|
42549
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
42878
42550
|
hookNotify = _useRCNotification2[0],
|
|
42879
42551
|
holder = _useRCNotification2[1];
|
|
42880
42552
|
|
|
@@ -43203,7 +42875,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
43203
42875
|
};
|
|
43204
42876
|
|
|
43205
42877
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43206
|
-
_useRCNotification2 =
|
|
42878
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43207
42879
|
hookNotify = _useRCNotification2[0],
|
|
43208
42880
|
holder = _useRCNotification2[1];
|
|
43209
42881
|
|
|
@@ -43830,7 +43502,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43830
43502
|
|
|
43831
43503
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
43832
43504
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
43833
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
43505
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), _defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
43834
43506
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
43835
43507
|
actionFn: onCancel,
|
|
43836
43508
|
close: close,
|
|
@@ -43848,7 +43520,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43848
43520
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
43849
43521
|
prefixCls: prefixCls,
|
|
43850
43522
|
className: classString,
|
|
43851
|
-
wrapClassName: classnames_default()(
|
|
43523
|
+
wrapClassName: classnames_default()(_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
43852
43524
|
onCancel: function onCancel() {
|
|
43853
43525
|
return close({
|
|
43854
43526
|
triggerCancel: true
|
|
@@ -43932,7 +43604,7 @@ function getRootPrefixCls() {
|
|
|
43932
43604
|
function confirm_confirm(config) {
|
|
43933
43605
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
43934
43606
|
|
|
43935
|
-
var currentConfig =
|
|
43607
|
+
var currentConfig = extends_extends(extends_extends({}, config), {
|
|
43936
43608
|
close: close,
|
|
43937
43609
|
visible: true
|
|
43938
43610
|
});
|
|
@@ -43985,7 +43657,7 @@ function confirm_confirm(config) {
|
|
|
43985
43657
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
43986
43658
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
43987
43659
|
var iconPrefixCls = getIconPrefixCls();
|
|
43988
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43660
|
+
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, {
|
|
43989
43661
|
prefixCls: prefixCls,
|
|
43990
43662
|
rootPrefixCls: rootPrefixCls,
|
|
43991
43663
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -44002,7 +43674,7 @@ function confirm_confirm(config) {
|
|
|
44002
43674
|
args[_key2] = arguments[_key2];
|
|
44003
43675
|
}
|
|
44004
43676
|
|
|
44005
|
-
currentConfig =
|
|
43677
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), {
|
|
44006
43678
|
visible: false,
|
|
44007
43679
|
afterClose: function afterClose() {
|
|
44008
43680
|
if (typeof config.afterClose === 'function') {
|
|
@@ -44019,7 +43691,7 @@ function confirm_confirm(config) {
|
|
|
44019
43691
|
if (typeof configUpdate === 'function') {
|
|
44020
43692
|
currentConfig = configUpdate(currentConfig);
|
|
44021
43693
|
} else {
|
|
44022
|
-
currentConfig =
|
|
43694
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), configUpdate);
|
|
44023
43695
|
}
|
|
44024
43696
|
|
|
44025
43697
|
render(currentConfig);
|
|
@@ -44033,7 +43705,7 @@ function confirm_confirm(config) {
|
|
|
44033
43705
|
};
|
|
44034
43706
|
}
|
|
44035
43707
|
function withWarn(props) {
|
|
44036
|
-
return
|
|
43708
|
+
return extends_extends(extends_extends({
|
|
44037
43709
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44038
43710
|
type: "exclamation-circle"
|
|
44039
43711
|
}),
|
|
@@ -44043,7 +43715,7 @@ function withWarn(props) {
|
|
|
44043
43715
|
});
|
|
44044
43716
|
}
|
|
44045
43717
|
function withInfo(props) {
|
|
44046
|
-
return
|
|
43718
|
+
return extends_extends(extends_extends({
|
|
44047
43719
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44048
43720
|
type: "exclamation-circle"
|
|
44049
43721
|
}),
|
|
@@ -44053,7 +43725,7 @@ function withInfo(props) {
|
|
|
44053
43725
|
});
|
|
44054
43726
|
}
|
|
44055
43727
|
function withSuccess(props) {
|
|
44056
|
-
return
|
|
43728
|
+
return extends_extends(extends_extends({
|
|
44057
43729
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44058
43730
|
type: "check-circle"
|
|
44059
43731
|
}),
|
|
@@ -44063,7 +43735,7 @@ function withSuccess(props) {
|
|
|
44063
43735
|
});
|
|
44064
43736
|
}
|
|
44065
43737
|
function withError(props) {
|
|
44066
|
-
return
|
|
43738
|
+
return extends_extends(extends_extends({
|
|
44067
43739
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44068
43740
|
type: "close-circle"
|
|
44069
43741
|
}),
|
|
@@ -44073,7 +43745,7 @@ function withError(props) {
|
|
|
44073
43745
|
});
|
|
44074
43746
|
}
|
|
44075
43747
|
function withConfirm(props) {
|
|
44076
|
-
return
|
|
43748
|
+
return extends_extends(extends_extends({
|
|
44077
43749
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44078
43750
|
type: "question-circle"
|
|
44079
43751
|
}),
|
|
@@ -44100,7 +43772,7 @@ function usePatchElement() {
|
|
|
44100
43772
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
44101
43773
|
// append a new element to elements (and create a new ref)
|
|
44102
43774
|
setElements(function (originElements) {
|
|
44103
|
-
return [].concat(
|
|
43775
|
+
return [].concat(_toConsumableArray(originElements), [element]);
|
|
44104
43776
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
44105
43777
|
// it works a little like useEffect
|
|
44106
43778
|
|
|
@@ -44165,7 +43837,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44165
43837
|
destroy: close,
|
|
44166
43838
|
update: function update(newConfig) {
|
|
44167
43839
|
setInnerConfig(function (originConfig) {
|
|
44168
|
-
return
|
|
43840
|
+
return extends_extends(extends_extends({}, originConfig), newConfig);
|
|
44169
43841
|
});
|
|
44170
43842
|
}
|
|
44171
43843
|
};
|
|
@@ -44174,7 +43846,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44174
43846
|
componentName: "Modal",
|
|
44175
43847
|
defaultLocale: locale_default.Modal
|
|
44176
43848
|
}, function (modalLocale) {
|
|
44177
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43849
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, extends_extends({
|
|
44178
43850
|
prefixCls: prefixCls,
|
|
44179
43851
|
rootPrefixCls: rootPrefixCls
|
|
44180
43852
|
}, innerConfig, {
|
|
@@ -44221,7 +43893,7 @@ function useModal() {
|
|
|
44221
43893
|
|
|
44222
43894
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
44223
43895
|
if (actionQueue.length) {
|
|
44224
|
-
var cloneQueue =
|
|
43896
|
+
var cloneQueue = _toConsumableArray(actionQueue);
|
|
44225
43897
|
|
|
44226
43898
|
cloneQueue.forEach(function (action) {
|
|
44227
43899
|
action();
|
|
@@ -44258,7 +43930,7 @@ function useModal() {
|
|
|
44258
43930
|
destroyAction();
|
|
44259
43931
|
} else {
|
|
44260
43932
|
setActionQueue(function (prev) {
|
|
44261
|
-
return [].concat(
|
|
43933
|
+
return [].concat(_toConsumableArray(prev), [destroyAction]);
|
|
44262
43934
|
});
|
|
44263
43935
|
}
|
|
44264
43936
|
},
|
|
@@ -44273,7 +43945,7 @@ function useModal() {
|
|
|
44273
43945
|
updateAction();
|
|
44274
43946
|
} else {
|
|
44275
43947
|
setActionQueue(function (prev) {
|
|
44276
|
-
return [].concat(
|
|
43948
|
+
return [].concat(_toConsumableArray(prev), [updateAction]);
|
|
44277
43949
|
});
|
|
44278
43950
|
}
|
|
44279
43951
|
}
|
|
@@ -44718,44 +44390,40 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
44718
44390
|
|
|
44719
44391
|
|
|
44720
44392
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
44721
|
-
function
|
|
44722
|
-
|
|
44393
|
+
function esm_extends_extends() {
|
|
44394
|
+
esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
44723
44395
|
for (var i = 1; i < arguments.length; i++) {
|
|
44724
44396
|
var source = arguments[i];
|
|
44725
|
-
|
|
44726
44397
|
for (var key in source) {
|
|
44727
44398
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44728
44399
|
target[key] = source[key];
|
|
44729
44400
|
}
|
|
44730
44401
|
}
|
|
44731
44402
|
}
|
|
44732
|
-
|
|
44733
44403
|
return target;
|
|
44734
44404
|
};
|
|
44735
|
-
return
|
|
44405
|
+
return esm_extends_extends.apply(this, arguments);
|
|
44736
44406
|
}
|
|
44737
44407
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
44738
|
-
function
|
|
44408
|
+
function esm_typeof_typeof(obj) {
|
|
44739
44409
|
"@babel/helpers - typeof";
|
|
44740
44410
|
|
|
44741
|
-
return
|
|
44411
|
+
return esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44742
44412
|
return typeof obj;
|
|
44743
44413
|
} : function (obj) {
|
|
44744
44414
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44745
|
-
},
|
|
44415
|
+
}, esm_typeof_typeof(obj);
|
|
44746
44416
|
}
|
|
44747
44417
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
44748
44418
|
|
|
44749
44419
|
function _toPrimitive(input, hint) {
|
|
44750
|
-
if (
|
|
44420
|
+
if (esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
44751
44421
|
var prim = input[Symbol.toPrimitive];
|
|
44752
|
-
|
|
44753
44422
|
if (prim !== undefined) {
|
|
44754
44423
|
var res = prim.call(input, hint || "default");
|
|
44755
|
-
if (
|
|
44424
|
+
if (esm_typeof_typeof(res) !== "object") return res;
|
|
44756
44425
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44757
44426
|
}
|
|
44758
|
-
|
|
44759
44427
|
return (hint === "string" ? String : Number)(input);
|
|
44760
44428
|
}
|
|
44761
44429
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -44763,13 +44431,12 @@ function _toPrimitive(input, hint) {
|
|
|
44763
44431
|
|
|
44764
44432
|
function _toPropertyKey(arg) {
|
|
44765
44433
|
var key = _toPrimitive(arg, "string");
|
|
44766
|
-
return
|
|
44434
|
+
return esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
44767
44435
|
}
|
|
44768
44436
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
44769
44437
|
|
|
44770
|
-
function
|
|
44438
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
44771
44439
|
key = _toPropertyKey(key);
|
|
44772
|
-
|
|
44773
44440
|
if (key in obj) {
|
|
44774
44441
|
Object.defineProperty(obj, key, {
|
|
44775
44442
|
value: value,
|
|
@@ -44780,61 +44447,51 @@ function esm_defineProperty_defineProperty(obj, key, value) {
|
|
|
44780
44447
|
} else {
|
|
44781
44448
|
obj[key] = value;
|
|
44782
44449
|
}
|
|
44783
|
-
|
|
44784
44450
|
return obj;
|
|
44785
44451
|
}
|
|
44786
44452
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
44787
44453
|
|
|
44788
|
-
|
|
44789
|
-
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44454
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44790
44455
|
var keys = Object.keys(object);
|
|
44791
|
-
|
|
44792
44456
|
if (Object.getOwnPropertySymbols) {
|
|
44793
44457
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
44794
44458
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
44795
44459
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
44796
44460
|
})), keys.push.apply(keys, symbols);
|
|
44797
44461
|
}
|
|
44798
|
-
|
|
44799
44462
|
return keys;
|
|
44800
44463
|
}
|
|
44801
|
-
|
|
44802
|
-
function esm_objectSpread2_objectSpread2(target) {
|
|
44464
|
+
function objectSpread2_objectSpread2(target) {
|
|
44803
44465
|
for (var i = 1; i < arguments.length; i++) {
|
|
44804
44466
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
44805
|
-
i % 2 ?
|
|
44806
|
-
|
|
44807
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
44467
|
+
i % 2 ? objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
44468
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
44469
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
44808
44470
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44809
44471
|
});
|
|
44810
44472
|
}
|
|
44811
|
-
|
|
44812
44473
|
return target;
|
|
44813
44474
|
}
|
|
44814
44475
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
44815
|
-
function
|
|
44476
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
44816
44477
|
if (Array.isArray(arr)) return arr;
|
|
44817
44478
|
}
|
|
44818
44479
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
44819
|
-
function
|
|
44480
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
44820
44481
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
44821
|
-
|
|
44822
44482
|
if (null != _i) {
|
|
44823
44483
|
var _s,
|
|
44824
|
-
|
|
44825
|
-
|
|
44826
|
-
|
|
44827
|
-
|
|
44828
|
-
|
|
44829
|
-
|
|
44830
|
-
|
|
44484
|
+
_e,
|
|
44485
|
+
_x,
|
|
44486
|
+
_r,
|
|
44487
|
+
_arr = [],
|
|
44488
|
+
_n = !0,
|
|
44489
|
+
_d = !1;
|
|
44831
44490
|
try {
|
|
44832
44491
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
44833
44492
|
if (Object(_i) !== _i) return;
|
|
44834
44493
|
_n = !1;
|
|
44835
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
44836
|
-
;
|
|
44837
|
-
}
|
|
44494
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
44838
44495
|
} catch (err) {
|
|
44839
44496
|
_d = !0, _e = err;
|
|
44840
44497
|
} finally {
|
|
@@ -44844,32 +44501,27 @@ function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
44844
44501
|
if (_d) throw _e;
|
|
44845
44502
|
}
|
|
44846
44503
|
}
|
|
44847
|
-
|
|
44848
44504
|
return _arr;
|
|
44849
44505
|
}
|
|
44850
44506
|
}
|
|
44851
44507
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
44852
|
-
function
|
|
44508
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
44853
44509
|
if (len == null || len > arr.length) len = arr.length;
|
|
44854
|
-
|
|
44855
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
44856
|
-
arr2[i] = arr[i];
|
|
44857
|
-
}
|
|
44858
|
-
|
|
44510
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
44859
44511
|
return arr2;
|
|
44860
44512
|
}
|
|
44861
44513
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
44862
44514
|
|
|
44863
|
-
function
|
|
44515
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
44864
44516
|
if (!o) return;
|
|
44865
|
-
if (typeof o === "string") return
|
|
44517
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44866
44518
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
44867
44519
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
44868
44520
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44869
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
44521
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44870
44522
|
}
|
|
44871
44523
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
44872
|
-
function
|
|
44524
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
44873
44525
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44874
44526
|
}
|
|
44875
44527
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -44877,34 +44529,30 @@ function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
|
44877
44529
|
|
|
44878
44530
|
|
|
44879
44531
|
|
|
44880
|
-
function
|
|
44881
|
-
return
|
|
44532
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
44533
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
44882
44534
|
}
|
|
44883
44535
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
44884
|
-
function
|
|
44536
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
44885
44537
|
if (source == null) return {};
|
|
44886
44538
|
var target = {};
|
|
44887
44539
|
var sourceKeys = Object.keys(source);
|
|
44888
44540
|
var key, i;
|
|
44889
|
-
|
|
44890
44541
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
44891
44542
|
key = sourceKeys[i];
|
|
44892
44543
|
if (excluded.indexOf(key) >= 0) continue;
|
|
44893
44544
|
target[key] = source[key];
|
|
44894
44545
|
}
|
|
44895
|
-
|
|
44896
44546
|
return target;
|
|
44897
44547
|
}
|
|
44898
44548
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
44899
44549
|
|
|
44900
|
-
function
|
|
44550
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
44901
44551
|
if (source == null) return {};
|
|
44902
|
-
var target =
|
|
44552
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
44903
44553
|
var key, i;
|
|
44904
|
-
|
|
44905
44554
|
if (Object.getOwnPropertySymbols) {
|
|
44906
44555
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
44907
|
-
|
|
44908
44556
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
44909
44557
|
key = sourceSymbolKeys[i];
|
|
44910
44558
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -44912,7 +44560,6 @@ function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
44912
44560
|
target[key] = source[key];
|
|
44913
44561
|
}
|
|
44914
44562
|
}
|
|
44915
|
-
|
|
44916
44563
|
return target;
|
|
44917
44564
|
}
|
|
44918
44565
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -45860,14 +45507,14 @@ var index = (function () {
|
|
|
45860
45507
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
45861
45508
|
|
|
45862
45509
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
45863
|
-
|
|
45510
|
+
_inherits(ReactResizeObserver, _React$Component);
|
|
45864
45511
|
|
|
45865
|
-
var _super =
|
|
45512
|
+
var _super = _createSuper(ReactResizeObserver);
|
|
45866
45513
|
|
|
45867
45514
|
function ReactResizeObserver() {
|
|
45868
45515
|
var _this;
|
|
45869
45516
|
|
|
45870
|
-
|
|
45517
|
+
_classCallCheck(this, ReactResizeObserver);
|
|
45871
45518
|
|
|
45872
45519
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45873
45520
|
args[_key] = arguments[_key];
|
|
@@ -45918,7 +45565,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45918
45565
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
45919
45566
|
|
|
45920
45567
|
Promise.resolve().then(function () {
|
|
45921
|
-
onResize(
|
|
45568
|
+
onResize(_objectSpread2(_objectSpread2({}, size), {}, {
|
|
45922
45569
|
offsetWidth: mergedOffsetWidth,
|
|
45923
45570
|
offsetHeight: mergedOffsetHeight
|
|
45924
45571
|
}), target);
|
|
@@ -45934,7 +45581,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45934
45581
|
return _this;
|
|
45935
45582
|
}
|
|
45936
45583
|
|
|
45937
|
-
|
|
45584
|
+
_createClass(ReactResizeObserver, [{
|
|
45938
45585
|
key: "componentDidMount",
|
|
45939
45586
|
value: function componentDidMount() {
|
|
45940
45587
|
this.onComponentUpdated();
|
|
@@ -46048,7 +45695,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46048
45695
|
position: 'relative',
|
|
46049
45696
|
overflow: 'hidden'
|
|
46050
45697
|
};
|
|
46051
|
-
innerStyle =
|
|
45698
|
+
innerStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
46052
45699
|
transform: "translateY(".concat(offset, "px)"),
|
|
46053
45700
|
position: 'absolute',
|
|
46054
45701
|
left: 0,
|
|
@@ -46065,24 +45712,23 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46065
45712
|
onInnerResize();
|
|
46066
45713
|
}
|
|
46067
45714
|
}
|
|
46068
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
45715
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
46069
45716
|
style: innerStyle,
|
|
46070
|
-
className: classnames_default()(
|
|
45717
|
+
className: classnames_default()(defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
46071
45718
|
ref: ref
|
|
46072
45719
|
}, innerProps), children)));
|
|
46073
45720
|
});
|
|
46074
45721
|
Filler.displayName = 'Filler';
|
|
46075
45722
|
/* harmony default export */ var es_Filler = (Filler);
|
|
46076
45723
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
46077
|
-
function
|
|
45724
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
46078
45725
|
if (!(instance instanceof Constructor)) {
|
|
46079
45726
|
throw new TypeError("Cannot call a class as a function");
|
|
46080
45727
|
}
|
|
46081
45728
|
}
|
|
46082
45729
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
46083
45730
|
|
|
46084
|
-
|
|
46085
|
-
function esm_createClass_defineProperties(target, props) {
|
|
45731
|
+
function createClass_defineProperties(target, props) {
|
|
46086
45732
|
for (var i = 0; i < props.length; i++) {
|
|
46087
45733
|
var descriptor = props[i];
|
|
46088
45734
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -46091,30 +45737,28 @@ function esm_createClass_defineProperties(target, props) {
|
|
|
46091
45737
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
46092
45738
|
}
|
|
46093
45739
|
}
|
|
46094
|
-
|
|
46095
|
-
|
|
46096
|
-
if (
|
|
46097
|
-
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
45740
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
45741
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
45742
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
46098
45743
|
Object.defineProperty(Constructor, "prototype", {
|
|
46099
45744
|
writable: false
|
|
46100
45745
|
});
|
|
46101
45746
|
return Constructor;
|
|
46102
45747
|
}
|
|
46103
45748
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
46104
|
-
function
|
|
46105
|
-
|
|
45749
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
45750
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
46106
45751
|
o.__proto__ = p;
|
|
46107
45752
|
return o;
|
|
46108
45753
|
};
|
|
46109
|
-
return
|
|
45754
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
46110
45755
|
}
|
|
46111
45756
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
46112
45757
|
|
|
46113
|
-
function
|
|
45758
|
+
function inherits_inherits(subClass, superClass) {
|
|
46114
45759
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
46115
45760
|
throw new TypeError("Super expression must either be null or a function");
|
|
46116
45761
|
}
|
|
46117
|
-
|
|
46118
45762
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
46119
45763
|
constructor: {
|
|
46120
45764
|
value: subClass,
|
|
@@ -46125,21 +45769,20 @@ function esm_inherits_inherits(subClass, superClass) {
|
|
|
46125
45769
|
Object.defineProperty(subClass, "prototype", {
|
|
46126
45770
|
writable: false
|
|
46127
45771
|
});
|
|
46128
|
-
if (superClass)
|
|
45772
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
46129
45773
|
}
|
|
46130
45774
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
46131
|
-
function
|
|
46132
|
-
|
|
45775
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
45776
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
46133
45777
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46134
45778
|
};
|
|
46135
|
-
return
|
|
45779
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
46136
45780
|
}
|
|
46137
45781
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
46138
|
-
function
|
|
45782
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
46139
45783
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
46140
45784
|
if (Reflect.construct.sham) return false;
|
|
46141
45785
|
if (typeof Proxy === "function") return true;
|
|
46142
|
-
|
|
46143
45786
|
try {
|
|
46144
45787
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
46145
45788
|
return true;
|
|
@@ -46148,43 +45791,39 @@ function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
46148
45791
|
}
|
|
46149
45792
|
}
|
|
46150
45793
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
46151
|
-
function
|
|
45794
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
46152
45795
|
if (self === void 0) {
|
|
46153
45796
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46154
45797
|
}
|
|
46155
|
-
|
|
46156
45798
|
return self;
|
|
46157
45799
|
}
|
|
46158
45800
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
46159
45801
|
|
|
46160
45802
|
|
|
46161
|
-
function
|
|
46162
|
-
if (call && (
|
|
45803
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
45804
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
46163
45805
|
return call;
|
|
46164
45806
|
} else if (call !== void 0) {
|
|
46165
45807
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
46166
45808
|
}
|
|
46167
|
-
|
|
46168
|
-
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
45809
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
46169
45810
|
}
|
|
46170
45811
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
46171
45812
|
|
|
46172
45813
|
|
|
46173
45814
|
|
|
46174
|
-
function
|
|
46175
|
-
var hasNativeReflectConstruct =
|
|
45815
|
+
function createSuper_createSuper(Derived) {
|
|
45816
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
46176
45817
|
return function _createSuperInternal() {
|
|
46177
|
-
var Super =
|
|
46178
|
-
|
|
46179
|
-
|
|
45818
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
45819
|
+
result;
|
|
46180
45820
|
if (hasNativeReflectConstruct) {
|
|
46181
|
-
var NewTarget =
|
|
45821
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
46182
45822
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
46183
45823
|
} else {
|
|
46184
45824
|
result = Super.apply(this, arguments);
|
|
46185
45825
|
}
|
|
46186
|
-
|
|
46187
|
-
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
45826
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46188
45827
|
};
|
|
46189
45828
|
}
|
|
46190
45829
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -46259,11 +45898,11 @@ function getPageY(e) {
|
|
|
46259
45898
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
46260
45899
|
}
|
|
46261
45900
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
46262
|
-
|
|
46263
|
-
var _super =
|
|
45901
|
+
inherits_inherits(ScrollBar, _React$Component);
|
|
45902
|
+
var _super = createSuper_createSuper(ScrollBar);
|
|
46264
45903
|
function ScrollBar() {
|
|
46265
45904
|
var _this;
|
|
46266
|
-
|
|
45905
|
+
classCallCheck_classCallCheck(this, ScrollBar);
|
|
46267
45906
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46268
45907
|
args[_key] = arguments[_key];
|
|
46269
45908
|
}
|
|
@@ -46391,7 +46030,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46391
46030
|
};
|
|
46392
46031
|
return _this;
|
|
46393
46032
|
}
|
|
46394
|
-
|
|
46033
|
+
createClass_createClass(ScrollBar, [{
|
|
46395
46034
|
key: "componentDidMount",
|
|
46396
46035
|
value: function componentDidMount() {
|
|
46397
46036
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -46425,7 +46064,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46425
46064
|
var mergedVisible = canScroll && visible;
|
|
46426
46065
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46427
46066
|
ref: this.scrollbarRef,
|
|
46428
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46067
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46429
46068
|
style: {
|
|
46430
46069
|
width: 8,
|
|
46431
46070
|
top: 0,
|
|
@@ -46438,7 +46077,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46438
46077
|
onMouseMove: this.delayHidden
|
|
46439
46078
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46440
46079
|
ref: this.thumbRef,
|
|
46441
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46080
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46442
46081
|
style: {
|
|
46443
46082
|
width: '100%',
|
|
46444
46083
|
height: spinHeight,
|
|
@@ -46517,11 +46156,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46517
46156
|
// Firefox has low performance of map.
|
|
46518
46157
|
var CacheMap = /*#__PURE__*/function () {
|
|
46519
46158
|
function CacheMap() {
|
|
46520
|
-
|
|
46159
|
+
classCallCheck_classCallCheck(this, CacheMap);
|
|
46521
46160
|
this.maps = void 0;
|
|
46522
46161
|
this.maps = Object.create(null);
|
|
46523
46162
|
}
|
|
46524
|
-
|
|
46163
|
+
createClass_createClass(CacheMap, [{
|
|
46525
46164
|
key: "set",
|
|
46526
46165
|
value: function set(key, value) {
|
|
46527
46166
|
this.maps[key] = value;
|
|
@@ -46544,7 +46183,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46544
46183
|
|
|
46545
46184
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46546
46185
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46547
|
-
_React$useState2 =
|
|
46186
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46548
46187
|
updatedMark = _React$useState2[0],
|
|
46549
46188
|
setUpdatedMark = _React$useState2[1];
|
|
46550
46189
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46611,7 +46250,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46611
46250
|
es_raf.cancel(scrollRef.current);
|
|
46612
46251
|
if (typeof arg === 'number') {
|
|
46613
46252
|
syncScrollTop(arg);
|
|
46614
|
-
} else if (arg &&
|
|
46253
|
+
} else if (arg && esm_typeof_typeof(arg) === 'object') {
|
|
46615
46254
|
var index;
|
|
46616
46255
|
var align = arg.align;
|
|
46617
46256
|
if ('index' in arg) {
|
|
@@ -46767,11 +46406,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
46767
46406
|
|
|
46768
46407
|
function useDiffItem(data, getKey, onDiff) {
|
|
46769
46408
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
46770
|
-
_React$useState2 =
|
|
46409
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46771
46410
|
prevData = _React$useState2[0],
|
|
46772
46411
|
setPrevData = _React$useState2[1];
|
|
46773
46412
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
46774
|
-
_React$useState4 =
|
|
46413
|
+
_React$useState4 = esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
46775
46414
|
diffItem = _React$useState4[0],
|
|
46776
46415
|
setDiffItem = _React$useState4[1];
|
|
46777
46416
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -46786,7 +46425,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
46786
46425
|
}
|
|
46787
46426
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
46788
46427
|
|
|
46789
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
46428
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
46790
46429
|
/* harmony default export */ var isFirefox = (isFF);
|
|
46791
46430
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
46792
46431
|
|
|
@@ -47005,16 +46644,16 @@ function RawList(props, ref) {
|
|
|
47005
46644
|
onScroll = props.onScroll,
|
|
47006
46645
|
onVisibleChange = props.onVisibleChange,
|
|
47007
46646
|
innerProps = props.innerProps,
|
|
47008
|
-
restProps =
|
|
46647
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
47009
46648
|
// ================================= MISC =================================
|
|
47010
46649
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
47011
46650
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
47012
46651
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
47013
|
-
_useState2 =
|
|
46652
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
47014
46653
|
scrollTop = _useState2[0],
|
|
47015
46654
|
setScrollTop = _useState2[1];
|
|
47016
46655
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
47017
|
-
_useState4 =
|
|
46656
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
47018
46657
|
scrollMoving = _useState4[0],
|
|
47019
46658
|
setScrollMoving = _useState4[1];
|
|
47020
46659
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -47054,12 +46693,12 @@ function RawList(props, ref) {
|
|
|
47054
46693
|
});
|
|
47055
46694
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
47056
46695
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
47057
|
-
_useDiffItem2 =
|
|
46696
|
+
_useDiffItem2 = esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
47058
46697
|
diffItem = _useDiffItem2[0];
|
|
47059
46698
|
diffItemRef.current = diffItem;
|
|
47060
46699
|
// ================================ Height ================================
|
|
47061
46700
|
var _useHeights = useHeights(getKey, null, null),
|
|
47062
|
-
_useHeights2 =
|
|
46701
|
+
_useHeights2 = esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
47063
46702
|
setInstanceRef = _useHeights2[0],
|
|
47064
46703
|
collectHeight = _useHeights2[1],
|
|
47065
46704
|
heights = _useHeights2[2],
|
|
@@ -47165,7 +46804,7 @@ function RawList(props, ref) {
|
|
|
47165
46804
|
return newTop;
|
|
47166
46805
|
});
|
|
47167
46806
|
}),
|
|
47168
|
-
_useFrameWheel2 =
|
|
46807
|
+
_useFrameWheel2 = esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
47169
46808
|
onRawWheel = _useFrameWheel2[0],
|
|
47170
46809
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
47171
46810
|
// Mobile touch move
|
|
@@ -47219,7 +46858,7 @@ function RawList(props, ref) {
|
|
|
47219
46858
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
47220
46859
|
var componentStyle = null;
|
|
47221
46860
|
if (height) {
|
|
47222
|
-
componentStyle =
|
|
46861
|
+
componentStyle = objectSpread2_objectSpread2(defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
47223
46862
|
if (useVirtual) {
|
|
47224
46863
|
componentStyle.overflowY = 'hidden';
|
|
47225
46864
|
if (scrollMoving) {
|
|
@@ -47227,8 +46866,8 @@ function RawList(props, ref) {
|
|
|
47227
46866
|
}
|
|
47228
46867
|
}
|
|
47229
46868
|
}
|
|
47230
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47231
|
-
style:
|
|
46869
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
46870
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
47232
46871
|
position: 'relative'
|
|
47233
46872
|
}),
|
|
47234
46873
|
className: mergedClassName
|
|
@@ -47374,7 +47013,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
47374
47013
|
return values;
|
|
47375
47014
|
}
|
|
47376
47015
|
function removeLastEnabledValue(measureValues, values) {
|
|
47377
|
-
var newValues =
|
|
47016
|
+
var newValues = _toConsumableArray(values);
|
|
47378
47017
|
|
|
47379
47018
|
var removeIndex;
|
|
47380
47019
|
|
|
@@ -47508,7 +47147,7 @@ function flattenOptions(options) {
|
|
|
47508
47147
|
*/
|
|
47509
47148
|
|
|
47510
47149
|
function injectPropsWithOption(option) {
|
|
47511
|
-
var newOption =
|
|
47150
|
+
var newOption = _objectSpread2({}, option);
|
|
47512
47151
|
|
|
47513
47152
|
if (!('props' in newOption)) {
|
|
47514
47153
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47542,7 +47181,7 @@ function findValueOption(values, options) {
|
|
|
47542
47181
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47543
47182
|
|
|
47544
47183
|
if (!option) {
|
|
47545
|
-
option =
|
|
47184
|
+
option = _objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47546
47185
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47547
47186
|
}));
|
|
47548
47187
|
}
|
|
@@ -47561,7 +47200,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47561
47200
|
};
|
|
47562
47201
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47563
47202
|
|
|
47564
|
-
if (prevValItem &&
|
|
47203
|
+
if (prevValItem && typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47565
47204
|
result.label = prevValItem.label;
|
|
47566
47205
|
|
|
47567
47206
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -47609,7 +47248,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47609
47248
|
var filterFunc;
|
|
47610
47249
|
|
|
47611
47250
|
if (filterOption === false) {
|
|
47612
|
-
return
|
|
47251
|
+
return _toConsumableArray(options);
|
|
47613
47252
|
}
|
|
47614
47253
|
|
|
47615
47254
|
if (typeof filterOption === 'function') {
|
|
@@ -47633,7 +47272,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47633
47272
|
});
|
|
47634
47273
|
|
|
47635
47274
|
if (subOptions.length) {
|
|
47636
|
-
filteredOptions.push(
|
|
47275
|
+
filteredOptions.push(_objectSpread2(_objectSpread2({}, item), {}, {
|
|
47637
47276
|
options: subOptions
|
|
47638
47277
|
}));
|
|
47639
47278
|
}
|
|
@@ -47667,7 +47306,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
47667
47306
|
var list = str.split(token);
|
|
47668
47307
|
match = match || list.length > 1;
|
|
47669
47308
|
return list.reduce(function (prevList, unitStr) {
|
|
47670
|
-
return [].concat(
|
|
47309
|
+
return [].concat(_toConsumableArray(prevList), _toConsumableArray(separate(unitStr, restTokens)));
|
|
47671
47310
|
}, []).filter(function (unit) {
|
|
47672
47311
|
return unit;
|
|
47673
47312
|
});
|
|
@@ -47687,7 +47326,7 @@ function isValueDisabled(value, options) {
|
|
|
47687
47326
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
47688
47327
|
var values = commonUtil_toArray(value).slice().sort();
|
|
47689
47328
|
|
|
47690
|
-
var cloneOptions =
|
|
47329
|
+
var cloneOptions = _toConsumableArray(options); // Convert options value to set
|
|
47691
47330
|
|
|
47692
47331
|
|
|
47693
47332
|
var optionValues = new Set();
|
|
@@ -47707,7 +47346,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
47707
47346
|
if (!optionValues.has(val)) {
|
|
47708
47347
|
var _ref9;
|
|
47709
47348
|
|
|
47710
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
47349
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, _defineProperty(_ref9, optionLabelProp, item.label), _defineProperty(_ref9, "value", val), _ref9) : {
|
|
47711
47350
|
value: val
|
|
47712
47351
|
});
|
|
47713
47352
|
}
|
|
@@ -47973,7 +47612,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47973
47612
|
children = itemData.children;
|
|
47974
47613
|
var attrs = pickAttrs(itemData, true);
|
|
47975
47614
|
var mergedLabel = childrenAsData ? children : label;
|
|
47976
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47615
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
47977
47616
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
47978
47617
|
}, attrs, {
|
|
47979
47618
|
key: index,
|
|
@@ -48023,13 +47662,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48023
47662
|
children = data.children,
|
|
48024
47663
|
style = data.style,
|
|
48025
47664
|
className = data.className,
|
|
48026
|
-
otherProps =
|
|
47665
|
+
otherProps = _objectWithoutProperties(data, OptionList_excluded);
|
|
48027
47666
|
|
|
48028
47667
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
48029
47668
|
|
|
48030
47669
|
var selected = values.has(value);
|
|
48031
47670
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
48032
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
47671
|
+
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));
|
|
48033
47672
|
var mergedLabel = childrenAsData ? children : label;
|
|
48034
47673
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
48035
47674
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -48040,7 +47679,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48040
47679
|
optionTitle = title;
|
|
48041
47680
|
}
|
|
48042
47681
|
|
|
48043
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47682
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, passedProps, {
|
|
48044
47683
|
"aria-selected": selected,
|
|
48045
47684
|
className: optionClassName,
|
|
48046
47685
|
title: optionTitle,
|
|
@@ -48101,9 +47740,9 @@ function convertNodeToOption(node) {
|
|
|
48101
47740
|
_node$props = node.props,
|
|
48102
47741
|
children = _node$props.children,
|
|
48103
47742
|
value = _node$props.value,
|
|
48104
|
-
restProps =
|
|
47743
|
+
restProps = _objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
48105
47744
|
|
|
48106
|
-
return
|
|
47745
|
+
return _objectSpread2({
|
|
48107
47746
|
key: key,
|
|
48108
47747
|
value: value !== undefined ? value : key,
|
|
48109
47748
|
children: children
|
|
@@ -48121,13 +47760,13 @@ function convertChildrenToData(nodes) {
|
|
|
48121
47760
|
key = node.key,
|
|
48122
47761
|
_node$props2 = node.props,
|
|
48123
47762
|
children = _node$props2.children,
|
|
48124
|
-
restProps =
|
|
47763
|
+
restProps = _objectWithoutProperties(_node$props2, _excluded2);
|
|
48125
47764
|
|
|
48126
47765
|
if (optionOnly || !isSelectOptGroup) {
|
|
48127
47766
|
return convertNodeToOption(node);
|
|
48128
47767
|
}
|
|
48129
47768
|
|
|
48130
|
-
return
|
|
47769
|
+
return _objectSpread2(_objectSpread2({
|
|
48131
47770
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
48132
47771
|
label: key
|
|
48133
47772
|
}, restProps), {}, {
|
|
@@ -48229,7 +47868,7 @@ function InternalItem(props, ref) {
|
|
|
48229
47868
|
order = props.order,
|
|
48230
47869
|
_props$component = props.component,
|
|
48231
47870
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48232
|
-
restProps =
|
|
47871
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48233
47872
|
|
|
48234
47873
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48235
47874
|
|
|
@@ -48263,9 +47902,9 @@ function InternalItem(props, ref) {
|
|
|
48263
47902
|
overflowProps['aria-hidden'] = true;
|
|
48264
47903
|
}
|
|
48265
47904
|
|
|
48266
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
47905
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48267
47906
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48268
|
-
style:
|
|
47907
|
+
style: _objectSpread2(_objectSpread2({}, overflowStyle), style)
|
|
48269
47908
|
}, overflowProps, restProps, {
|
|
48270
47909
|
ref: ref
|
|
48271
47910
|
}), childNode);
|
|
@@ -48350,23 +47989,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48350
47989
|
if (!context) {
|
|
48351
47990
|
var _props$component = props.component,
|
|
48352
47991
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48353
|
-
_restProps =
|
|
47992
|
+
_restProps = _objectWithoutProperties(props, ["component"]);
|
|
48354
47993
|
|
|
48355
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
47994
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, _restProps, {
|
|
48356
47995
|
ref: ref
|
|
48357
47996
|
}));
|
|
48358
47997
|
}
|
|
48359
47998
|
|
|
48360
47999
|
var contextClassName = context.className,
|
|
48361
|
-
restContext =
|
|
48000
|
+
restContext = _objectWithoutProperties(context, ["className"]);
|
|
48362
48001
|
|
|
48363
48002
|
var className = props.className,
|
|
48364
|
-
restProps =
|
|
48003
|
+
restProps = _objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48365
48004
|
|
|
48366
48005
|
|
|
48367
48006
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48368
48007
|
value: null
|
|
48369
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48008
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({
|
|
48370
48009
|
ref: ref,
|
|
48371
48010
|
className: classnames_default()(contextClassName, className)
|
|
48372
48011
|
}, restContext, restProps)));
|
|
@@ -48416,7 +48055,7 @@ function Overflow(props, ref) {
|
|
|
48416
48055
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48417
48056
|
itemComponent = props.itemComponent,
|
|
48418
48057
|
onVisibleChange = props.onVisibleChange,
|
|
48419
|
-
restProps =
|
|
48058
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48420
48059
|
|
|
48421
48060
|
var createUseState = useBatchFrameState();
|
|
48422
48061
|
var fullySSR = ssr === 'full';
|
|
@@ -48626,7 +48265,7 @@ function Overflow(props, ref) {
|
|
|
48626
48265
|
var key = getKey(item, index);
|
|
48627
48266
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48628
48267
|
key: key,
|
|
48629
|
-
value:
|
|
48268
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
|
|
48630
48269
|
order: index,
|
|
48631
48270
|
item: item,
|
|
48632
48271
|
itemKey: key,
|
|
@@ -48636,7 +48275,7 @@ function Overflow(props, ref) {
|
|
|
48636
48275
|
}, renderRawItem(item, index));
|
|
48637
48276
|
} : function (item, index) {
|
|
48638
48277
|
var key = getKey(item, index);
|
|
48639
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48278
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48640
48279
|
order: index,
|
|
48641
48280
|
key: key,
|
|
48642
48281
|
item: item,
|
|
@@ -48657,18 +48296,18 @@ function Overflow(props, ref) {
|
|
|
48657
48296
|
|
|
48658
48297
|
if (!renderRawRest) {
|
|
48659
48298
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48660
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48299
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48661
48300
|
} else if (renderRawRest) {
|
|
48662
48301
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48663
|
-
value:
|
|
48302
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48664
48303
|
}, renderRawRest(omittedItems));
|
|
48665
48304
|
}
|
|
48666
48305
|
|
|
48667
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48306
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48668
48307
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48669
48308
|
style: style,
|
|
48670
48309
|
ref: ref
|
|
48671
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48310
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48672
48311
|
order: mergedDisplayCount,
|
|
48673
48312
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
48674
48313
|
registerSize: registerSuffixSize,
|
|
@@ -48733,7 +48372,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48733
48372
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
48734
48373
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
48735
48374
|
style = _inputNode$props.style;
|
|
48736
|
-
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode,
|
|
48375
|
+
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode, _objectSpread2(_objectSpread2({
|
|
48737
48376
|
id: id,
|
|
48738
48377
|
ref: composeRef(ref, originRef),
|
|
48739
48378
|
disabled: disabled,
|
|
@@ -48742,7 +48381,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48742
48381
|
type: 'search',
|
|
48743
48382
|
autoFocus: autoFocus,
|
|
48744
48383
|
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),
|
|
48745
|
-
style:
|
|
48384
|
+
style: _objectSpread2(_objectSpread2({}, style), {}, {
|
|
48746
48385
|
opacity: editable ? null : 0
|
|
48747
48386
|
}),
|
|
48748
48387
|
role: 'combobox',
|
|
@@ -48890,7 +48529,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
48890
48529
|
|
|
48891
48530
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
48892
48531
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48893
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
48532
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), _defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
48894
48533
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
48895
48534
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48896
48535
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -49305,7 +48944,7 @@ var Selector = function Selector(props, ref) {
|
|
|
49305
48944
|
onInputCompositionStart: onInputCompositionStart,
|
|
49306
48945
|
onInputCompositionEnd: onInputCompositionEnd
|
|
49307
48946
|
};
|
|
49308
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
48947
|
+
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));
|
|
49309
48948
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
49310
48949
|
ref: domRef,
|
|
49311
48950
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -49350,7 +48989,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
49350
48989
|
|
|
49351
48990
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
49352
48991
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
49353
|
-
return
|
|
48992
|
+
return _objectSpread2(_objectSpread2({}, baseAlign), align);
|
|
49354
48993
|
}
|
|
49355
48994
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
49356
48995
|
var points = align.points;
|
|
@@ -49414,7 +49053,7 @@ function Mask_Mask(props) {
|
|
|
49414
49053
|
var motion = {};
|
|
49415
49054
|
|
|
49416
49055
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49417
|
-
motion =
|
|
49056
|
+
motion = _objectSpread2({
|
|
49418
49057
|
motionAppear: true
|
|
49419
49058
|
}, getMotion({
|
|
49420
49059
|
motion: maskMotion,
|
|
@@ -49424,7 +49063,7 @@ function Mask_Mask(props) {
|
|
|
49424
49063
|
}));
|
|
49425
49064
|
}
|
|
49426
49065
|
|
|
49427
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49066
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({}, motion, {
|
|
49428
49067
|
visible: visible,
|
|
49429
49068
|
removeOnLeave: true
|
|
49430
49069
|
}), function (_ref) {
|
|
@@ -50936,7 +50575,7 @@ function getElement(func) {
|
|
|
50936
50575
|
}
|
|
50937
50576
|
|
|
50938
50577
|
function getPoint(point) {
|
|
50939
|
-
if (
|
|
50578
|
+
if (typeof_typeof(point) !== 'object' || !point) return null;
|
|
50940
50579
|
return point;
|
|
50941
50580
|
}
|
|
50942
50581
|
|
|
@@ -51150,9 +50789,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51150
50789
|
}
|
|
51151
50790
|
|
|
51152
50791
|
if (status) {
|
|
51153
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
50792
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
51154
50793
|
var index, nextStatus;
|
|
51155
|
-
return
|
|
50794
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
51156
50795
|
while (1) {
|
|
51157
50796
|
switch (_context.prev = _context.next) {
|
|
51158
50797
|
case 0:
|
|
@@ -51325,7 +50964,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51325
50964
|
} // ======================== Motion ========================
|
|
51326
50965
|
|
|
51327
50966
|
|
|
51328
|
-
var motion =
|
|
50967
|
+
var motion = _objectSpread2({}, getMotion(props));
|
|
51329
50968
|
|
|
51330
50969
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
51331
50970
|
var originHandler = motion[eventName];
|
|
@@ -51358,7 +50997,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51358
50997
|
};
|
|
51359
50998
|
}); // ======================== Render ========================
|
|
51360
50999
|
|
|
51361
|
-
var mergedStyle =
|
|
51000
|
+
var mergedStyle = _objectSpread2(_objectSpread2({}, stretchStyle), {}, {
|
|
51362
51001
|
zIndex: zIndex,
|
|
51363
51002
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
51364
51003
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -51379,7 +51018,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51379
51018
|
}, children);
|
|
51380
51019
|
}
|
|
51381
51020
|
|
|
51382
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51021
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51383
51022
|
visible: visible,
|
|
51384
51023
|
ref: elementRef,
|
|
51385
51024
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51407,7 +51046,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51407
51046
|
onMouseLeave: onMouseLeave,
|
|
51408
51047
|
onMouseDownCapture: onMouseDown,
|
|
51409
51048
|
onTouchStartCapture: onTouchStart,
|
|
51410
|
-
style:
|
|
51049
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51411
51050
|
}, childNode));
|
|
51412
51051
|
});
|
|
51413
51052
|
});
|
|
@@ -51442,7 +51081,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51442
51081
|
};
|
|
51443
51082
|
}); // ======================== Render ========================
|
|
51444
51083
|
|
|
51445
|
-
var mergedStyle =
|
|
51084
|
+
var mergedStyle = _objectSpread2({
|
|
51446
51085
|
zIndex: zIndex
|
|
51447
51086
|
}, popupStyle);
|
|
51448
51087
|
|
|
@@ -51459,7 +51098,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51459
51098
|
childNode = popupRender(childNode);
|
|
51460
51099
|
}
|
|
51461
51100
|
|
|
51462
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51101
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51463
51102
|
visible: visible,
|
|
51464
51103
|
ref: elementRef,
|
|
51465
51104
|
removeOnLeave: true
|
|
@@ -51470,7 +51109,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51470
51109
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51471
51110
|
ref: motionRef,
|
|
51472
51111
|
className: mergedClassName,
|
|
51473
|
-
style:
|
|
51112
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51474
51113
|
}, childNode);
|
|
51475
51114
|
});
|
|
51476
51115
|
});
|
|
@@ -51491,7 +51130,7 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51491
51130
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51492
51131
|
var visible = _ref.visible,
|
|
51493
51132
|
mobile = _ref.mobile,
|
|
51494
|
-
props =
|
|
51133
|
+
props = _objectWithoutProperties(_ref, Popup_excluded);
|
|
51495
51134
|
|
|
51496
51135
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51497
51136
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
@@ -51503,7 +51142,7 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51503
51142
|
inMobile = _useState4[0],
|
|
51504
51143
|
setInMobile = _useState4[1];
|
|
51505
51144
|
|
|
51506
|
-
var cloneProps =
|
|
51145
|
+
var cloneProps = _objectSpread2(_objectSpread2({}, props), {}, {
|
|
51507
51146
|
visible: innerVisible
|
|
51508
51147
|
}); // We check mobile in visible changed here.
|
|
51509
51148
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51516,10 +51155,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51516
51155
|
setInMobile(isMobile());
|
|
51517
51156
|
}
|
|
51518
51157
|
}, [visible, mobile]);
|
|
51519
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51158
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, extends_extends({}, cloneProps, {
|
|
51520
51159
|
mobile: mobile,
|
|
51521
51160
|
ref: ref
|
|
51522
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51161
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, extends_extends({}, cloneProps, {
|
|
51523
51162
|
ref: ref
|
|
51524
51163
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51525
51164
|
|
|
@@ -51573,14 +51212,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51573
51212
|
|
|
51574
51213
|
function generateTrigger(PortalComponent) {
|
|
51575
51214
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51576
|
-
|
|
51215
|
+
_inherits(Trigger, _React$Component);
|
|
51577
51216
|
|
|
51578
|
-
var _super =
|
|
51217
|
+
var _super = _createSuper(Trigger);
|
|
51579
51218
|
|
|
51580
51219
|
function Trigger(props) {
|
|
51581
51220
|
var _this;
|
|
51582
51221
|
|
|
51583
|
-
|
|
51222
|
+
_classCallCheck(this, Trigger);
|
|
51584
51223
|
|
|
51585
51224
|
_this = _super.call(this, props);
|
|
51586
51225
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -51768,7 +51407,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51768
51407
|
} catch (err) {// Do nothing
|
|
51769
51408
|
}
|
|
51770
51409
|
|
|
51771
|
-
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(
|
|
51410
|
+
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(_assertThisInitialized(_this));
|
|
51772
51411
|
};
|
|
51773
51412
|
|
|
51774
51413
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -51829,7 +51468,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51829
51468
|
|
|
51830
51469
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
51831
51470
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
51832
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup,
|
|
51471
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup, extends_extends({
|
|
51833
51472
|
prefixCls: prefixCls,
|
|
51834
51473
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
51835
51474
|
visible: popupVisible,
|
|
@@ -51942,7 +51581,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51942
51581
|
return _this;
|
|
51943
51582
|
}
|
|
51944
51583
|
|
|
51945
|
-
|
|
51584
|
+
_createClass(Trigger, [{
|
|
51946
51585
|
key: "componentDidMount",
|
|
51947
51586
|
value: function componentDidMount() {
|
|
51948
51587
|
this.componentDidUpdate();
|
|
@@ -52267,7 +51906,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52267
51906
|
newChildProps.className = childrenClassName;
|
|
52268
51907
|
}
|
|
52269
51908
|
|
|
52270
|
-
var cloneProps =
|
|
51909
|
+
var cloneProps = _objectSpread2({}, newChildProps);
|
|
52271
51910
|
|
|
52272
51911
|
if (supportRef(child)) {
|
|
52273
51912
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -52408,7 +52047,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52408
52047
|
empty = props.empty,
|
|
52409
52048
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
52410
52049
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
52411
|
-
restProps =
|
|
52050
|
+
restProps = _objectWithoutProperties(props, SelectTrigger_excluded);
|
|
52412
52051
|
|
|
52413
52052
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
52414
52053
|
var popupNode = popupElement;
|
|
@@ -52432,7 +52071,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52432
52071
|
};
|
|
52433
52072
|
});
|
|
52434
52073
|
|
|
52435
|
-
var popupStyle =
|
|
52074
|
+
var popupStyle = _objectSpread2({
|
|
52436
52075
|
minWidth: containerWidth
|
|
52437
52076
|
}, dropdownStyle);
|
|
52438
52077
|
|
|
@@ -52442,7 +52081,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52442
52081
|
popupStyle.width = containerWidth;
|
|
52443
52082
|
}
|
|
52444
52083
|
|
|
52445
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
52084
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, extends_extends({}, restProps, {
|
|
52446
52085
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
52447
52086
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
52448
52087
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -52455,7 +52094,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52455
52094
|
popupAlign: dropdownAlign,
|
|
52456
52095
|
popupVisible: visible,
|
|
52457
52096
|
getPopupContainer: getPopupContainer,
|
|
52458
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52097
|
+
popupClassName: classnames_default()(dropdownClassName, _defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
52459
52098
|
popupStyle: popupStyle,
|
|
52460
52099
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
52461
52100
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52558,7 +52197,7 @@ function useCacheDisplayValue(values) {
|
|
|
52558
52197
|
var cacheLabel = valueLabels.get(item.value);
|
|
52559
52198
|
|
|
52560
52199
|
if (item.isCacheable && cacheLabel) {
|
|
52561
|
-
return
|
|
52200
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
52562
52201
|
label: cacheLabel
|
|
52563
52202
|
});
|
|
52564
52203
|
}
|
|
@@ -52720,7 +52359,7 @@ function generateSelector(config) {
|
|
|
52720
52359
|
onClear = props.onClear,
|
|
52721
52360
|
_props$internalProps = props.internalProps,
|
|
52722
52361
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
52723
|
-
restProps =
|
|
52362
|
+
restProps = _objectWithoutProperties(props, generate_excluded);
|
|
52724
52363
|
|
|
52725
52364
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
52726
52365
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -52858,7 +52497,7 @@ function generateSelector(config) {
|
|
|
52858
52497
|
|
|
52859
52498
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
52860
52499
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
52861
|
-
return
|
|
52500
|
+
return _toConsumableArray(mergedOptions);
|
|
52862
52501
|
}
|
|
52863
52502
|
|
|
52864
52503
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -52879,7 +52518,7 @@ function generateSelector(config) {
|
|
|
52879
52518
|
}
|
|
52880
52519
|
|
|
52881
52520
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
52882
|
-
return
|
|
52521
|
+
return _toConsumableArray(filteredOptions).sort(filterSort);
|
|
52883
52522
|
}
|
|
52884
52523
|
|
|
52885
52524
|
return filteredOptions;
|
|
@@ -52902,7 +52541,7 @@ function generateSelector(config) {
|
|
|
52902
52541
|
labelInValue: mergedLabelInValue,
|
|
52903
52542
|
optionLabelProp: mergedOptionLabelProp
|
|
52904
52543
|
});
|
|
52905
|
-
return
|
|
52544
|
+
return _objectSpread2(_objectSpread2({}, displayValue), {}, {
|
|
52906
52545
|
disabled: isValueDisabled(val, valueOptions)
|
|
52907
52546
|
});
|
|
52908
52547
|
});
|
|
@@ -52976,7 +52615,7 @@ function generateSelector(config) {
|
|
|
52976
52615
|
}); // We will cache option in case it removed by ajax
|
|
52977
52616
|
|
|
52978
52617
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
52979
|
-
var clone =
|
|
52618
|
+
var clone = _objectSpread2({}, option);
|
|
52980
52619
|
|
|
52981
52620
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
52982
52621
|
get: function get() {
|
|
@@ -53032,13 +52671,13 @@ function generateSelector(config) {
|
|
|
53032
52671
|
};
|
|
53033
52672
|
|
|
53034
52673
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
53035
|
-
onInternalSelect(newValue,
|
|
52674
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53036
52675
|
source: 'option'
|
|
53037
52676
|
}));
|
|
53038
52677
|
};
|
|
53039
52678
|
|
|
53040
52679
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
53041
|
-
onInternalSelect(newValue,
|
|
52680
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53042
52681
|
source: 'selection'
|
|
53043
52682
|
}));
|
|
53044
52683
|
}; // ============================= Input ==============================
|
|
@@ -53122,7 +52761,7 @@ function generateSelector(config) {
|
|
|
53122
52761
|
});
|
|
53123
52762
|
}
|
|
53124
52763
|
|
|
53125
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
52764
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), _toConsumableArray(patchRawValues))));
|
|
53126
52765
|
triggerChange(newRawValues);
|
|
53127
52766
|
newRawValues.forEach(function (newRawValue) {
|
|
53128
52767
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53151,7 +52790,7 @@ function generateSelector(config) {
|
|
|
53151
52790
|
return;
|
|
53152
52791
|
}
|
|
53153
52792
|
|
|
53154
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
52793
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [searchText])));
|
|
53155
52794
|
triggerChange(newRawValues);
|
|
53156
52795
|
newRawValues.forEach(function (newRawValue) {
|
|
53157
52796
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53284,7 +52923,7 @@ function generateSelector(config) {
|
|
|
53284
52923
|
// `tags` mode should move `searchValue` into values
|
|
53285
52924
|
if (mode === 'tags') {
|
|
53286
52925
|
triggerSearch('', false, false);
|
|
53287
|
-
triggerChange(Array.from(new Set([].concat(
|
|
52926
|
+
triggerChange(Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
53288
52927
|
} else if (mode === 'multiple') {
|
|
53289
52928
|
// `multiple` mode only clean the search value but not trigger event
|
|
53290
52929
|
setInnerSearchValue('');
|
|
@@ -53442,7 +53081,7 @@ function generateSelector(config) {
|
|
|
53442
53081
|
|
|
53443
53082
|
if (mergedShowArrow) {
|
|
53444
53083
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
53445
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53084
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), _defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
53446
53085
|
customizeIcon: inputIcon,
|
|
53447
53086
|
customizeIconProps: {
|
|
53448
53087
|
loading: loading,
|
|
@@ -53458,7 +53097,7 @@ function generateSelector(config) {
|
|
|
53458
53097
|
if (false) {} // ============================= Render =============================
|
|
53459
53098
|
|
|
53460
53099
|
|
|
53461
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
53100
|
+
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));
|
|
53462
53101
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
53463
53102
|
ref: triggerRef,
|
|
53464
53103
|
disabled: disabled,
|
|
@@ -53483,7 +53122,7 @@ function generateSelector(config) {
|
|
|
53483
53122
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
53484
53123
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
53485
53124
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
53486
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
53125
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, extends_extends({}, props, {
|
|
53487
53126
|
domRef: selectorDomRef,
|
|
53488
53127
|
prefixCls: prefixCls,
|
|
53489
53128
|
inputElement: customizeInputElement,
|
|
@@ -53509,7 +53148,7 @@ function generateSelector(config) {
|
|
|
53509
53148
|
return selectorNode;
|
|
53510
53149
|
}
|
|
53511
53150
|
|
|
53512
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
53151
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
53513
53152
|
className: mergedClassName
|
|
53514
53153
|
}, domProps, {
|
|
53515
53154
|
ref: containerRef,
|
|
@@ -53596,7 +53235,7 @@ function warningProps(props) {
|
|
|
53596
53235
|
if (value !== undefined && value !== null) {
|
|
53597
53236
|
var values = commonUtil_toArray(value);
|
|
53598
53237
|
es_warning(!labelInValue || values.every(function (val) {
|
|
53599
|
-
return
|
|
53238
|
+
return typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
53600
53239
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
53601
53240
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
53602
53241
|
} // Syntactic sugar should use correct children type
|
|
@@ -53710,14 +53349,14 @@ var RefSelect = generateSelector({
|
|
|
53710
53349
|
*/
|
|
53711
53350
|
|
|
53712
53351
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
53713
|
-
|
|
53352
|
+
_inherits(Select, _React$Component);
|
|
53714
53353
|
|
|
53715
|
-
var _super =
|
|
53354
|
+
var _super = _createSuper(Select);
|
|
53716
53355
|
|
|
53717
53356
|
function Select() {
|
|
53718
53357
|
var _this;
|
|
53719
53358
|
|
|
53720
|
-
|
|
53359
|
+
_classCallCheck(this, Select);
|
|
53721
53360
|
|
|
53722
53361
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53723
53362
|
args[_key] = arguments[_key];
|
|
@@ -53737,10 +53376,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
53737
53376
|
return _this;
|
|
53738
53377
|
}
|
|
53739
53378
|
|
|
53740
|
-
|
|
53379
|
+
_createClass(Select, [{
|
|
53741
53380
|
key: "render",
|
|
53742
53381
|
value: function render() {
|
|
53743
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
53382
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, extends_extends({
|
|
53744
53383
|
ref: this.selectRef
|
|
53745
53384
|
}, this.props));
|
|
53746
53385
|
}
|
|
@@ -53921,7 +53560,7 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
53921
53560
|
} // ===================== Icons =====================
|
|
53922
53561
|
|
|
53923
53562
|
|
|
53924
|
-
var _getIcons = getIcons(
|
|
53563
|
+
var _getIcons = getIcons(extends_extends(extends_extends({}, props), {
|
|
53925
53564
|
multiple: isMultiple,
|
|
53926
53565
|
prefixCls: prefixCls
|
|
53927
53566
|
})),
|
|
@@ -53931,10 +53570,10 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
53931
53570
|
clearIcon = _getIcons.clearIcon;
|
|
53932
53571
|
|
|
53933
53572
|
var selectProps = omit(props, ['suffixIcon', 'itemIcon']);
|
|
53934
|
-
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName,
|
|
53573
|
+
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName, _defineProperty({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
|
|
53935
53574
|
var mergedSize = customizeSize || size;
|
|
53936
|
-
var mergedClassName = classnames_default()((_classNames2 = {},
|
|
53937
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es,
|
|
53575
|
+
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);
|
|
53576
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es, extends_extends({
|
|
53938
53577
|
ref: ref,
|
|
53939
53578
|
virtual: virtual,
|
|
53940
53579
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth
|
|
@@ -55226,9 +54865,9 @@ function LiveOnlineCount(_ref) {
|
|
|
55226
54865
|
};
|
|
55227
54866
|
|
|
55228
54867
|
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
55229
|
-
LiveOnlineCount_asyncToGenerator( /*#__PURE__*/
|
|
54868
|
+
LiveOnlineCount_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
55230
54869
|
var count, likesData, currentCount;
|
|
55231
|
-
return
|
|
54870
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
55232
54871
|
while (1) {
|
|
55233
54872
|
switch (_context.prev = _context.next) {
|
|
55234
54873
|
case 0:
|
|
@@ -55820,7 +55459,6 @@ function PublicLiveDetail(_ref) {
|
|
|
55820
55459
|
className: src_detail_index_module["live-wrap"]
|
|
55821
55460
|
}, // eslint-disable-next-line no-nested-ternary
|
|
55822
55461
|
isReplayMode ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(ReplayVideo, {
|
|
55823
|
-
userInfo: userInfo,
|
|
55824
55462
|
handleLogin: handleLogin,
|
|
55825
55463
|
liveInfo: liveInfo,
|
|
55826
55464
|
autoplay: isLiveToReplay,
|
|
@@ -56050,7 +55688,7 @@ function TabNode(_ref, ref) {
|
|
|
56050
55688
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
56051
55689
|
key: key,
|
|
56052
55690
|
ref: ref,
|
|
56053
|
-
className: classnames_default()(tabPrefix, (_classNames = {},
|
|
55691
|
+
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)),
|
|
56054
55692
|
style: style,
|
|
56055
55693
|
onClick: onInternalClick
|
|
56056
55694
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -56113,7 +55751,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
56113
55751
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
56114
55752
|
}
|
|
56115
55753
|
|
|
56116
|
-
var entity = map.get(key) ||
|
|
55754
|
+
var entity = map.get(key) || _objectSpread2({}, data); // Right
|
|
56117
55755
|
|
|
56118
55756
|
|
|
56119
55757
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -56208,7 +55846,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56208
55846
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56209
55847
|
|
|
56210
55848
|
function mergeProps(origin, target) {
|
|
56211
|
-
var clone =
|
|
55849
|
+
var clone = _objectSpread2({}, origin);
|
|
56212
55850
|
|
|
56213
55851
|
Object.keys(target).forEach(function (key) {
|
|
56214
55852
|
var value = target[key];
|
|
@@ -56223,7 +55861,7 @@ function mergeProps(origin, target) {
|
|
|
56223
55861
|
function InheritableContextProvider(_ref) {
|
|
56224
55862
|
var children = _ref.children,
|
|
56225
55863
|
locked = _ref.locked,
|
|
56226
|
-
restProps =
|
|
55864
|
+
restProps = _objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56227
55865
|
|
|
56228
55866
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56229
55867
|
var inheritableContext = useMemo(function () {
|
|
@@ -56279,7 +55917,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56279
55917
|
|
|
56280
55918
|
function warnItemProp(_ref) {
|
|
56281
55919
|
var item = _ref.item,
|
|
56282
|
-
restInfo =
|
|
55920
|
+
restInfo = _objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56283
55921
|
|
|
56284
55922
|
Object.defineProperty(restInfo, 'item', {
|
|
56285
55923
|
get: function get() {
|
|
@@ -56299,7 +55937,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56299
55937
|
var iconNode;
|
|
56300
55938
|
|
|
56301
55939
|
if (typeof icon === 'function') {
|
|
56302
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
55940
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, _objectSpread2({}, props));
|
|
56303
55941
|
} else {
|
|
56304
55942
|
// Compatible for origin definition
|
|
56305
55943
|
iconNode = icon;
|
|
@@ -56340,7 +55978,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56340
55978
|
function useFullPath(eventKey) {
|
|
56341
55979
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56342
55980
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56343
|
-
return eventKey !== undefined ? [].concat(
|
|
55981
|
+
return eventKey !== undefined ? [].concat(_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56344
55982
|
}, [parentKeyPath, eventKey]);
|
|
56345
55983
|
}
|
|
56346
55984
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56397,28 +56035,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56397
56035
|
// This should be removed from doc & api in future.
|
|
56398
56036
|
|
|
56399
56037
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56400
|
-
|
|
56038
|
+
_inherits(LegacyMenuItem, _React$Component);
|
|
56401
56039
|
|
|
56402
|
-
var _super =
|
|
56040
|
+
var _super = _createSuper(LegacyMenuItem);
|
|
56403
56041
|
|
|
56404
56042
|
function LegacyMenuItem() {
|
|
56405
|
-
|
|
56043
|
+
_classCallCheck(this, LegacyMenuItem);
|
|
56406
56044
|
|
|
56407
56045
|
return _super.apply(this, arguments);
|
|
56408
56046
|
}
|
|
56409
56047
|
|
|
56410
|
-
|
|
56048
|
+
_createClass(LegacyMenuItem, [{
|
|
56411
56049
|
key: "render",
|
|
56412
56050
|
value: function render() {
|
|
56413
56051
|
var _this$props = this.props,
|
|
56414
56052
|
title = _this$props.title,
|
|
56415
56053
|
attribute = _this$props.attribute,
|
|
56416
56054
|
elementRef = _this$props.elementRef,
|
|
56417
|
-
restProps =
|
|
56055
|
+
restProps = _objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56418
56056
|
|
|
56419
56057
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56420
56058
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56421
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56059
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({}, attribute, {
|
|
56422
56060
|
title: typeof title === 'string' ? title : undefined
|
|
56423
56061
|
}, passedProps, {
|
|
56424
56062
|
ref: elementRef
|
|
@@ -56449,7 +56087,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56449
56087
|
onClick = props.onClick,
|
|
56450
56088
|
onKeyDown = props.onKeyDown,
|
|
56451
56089
|
onFocus = props.onFocus,
|
|
56452
|
-
restProps =
|
|
56090
|
+
restProps = _objectWithoutProperties(props, MenuItem_excluded2);
|
|
56453
56091
|
|
|
56454
56092
|
var domDataId = useMenuId(eventKey);
|
|
56455
56093
|
|
|
@@ -56478,7 +56116,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56478
56116
|
return {
|
|
56479
56117
|
key: eventKey,
|
|
56480
56118
|
// Note: For legacy code is reversed which not like other antd component
|
|
56481
|
-
keyPath:
|
|
56119
|
+
keyPath: _toConsumableArray(connectedKeys).reverse(),
|
|
56482
56120
|
item: legacyMenuItemRef.current,
|
|
56483
56121
|
domEvent: e
|
|
56484
56122
|
};
|
|
@@ -56489,7 +56127,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56489
56127
|
|
|
56490
56128
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56491
56129
|
active = _useActive.active,
|
|
56492
|
-
activeProps =
|
|
56130
|
+
activeProps = _objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56493
56131
|
|
|
56494
56132
|
|
|
56495
56133
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56534,7 +56172,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56534
56172
|
optionRoleProps['aria-selected'] = selected;
|
|
56535
56173
|
}
|
|
56536
56174
|
|
|
56537
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56175
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, extends_extends({
|
|
56538
56176
|
ref: legacyMenuItemRef,
|
|
56539
56177
|
elementRef: elementRef,
|
|
56540
56178
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56543,13 +56181,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56543
56181
|
}, restProps, activeProps, optionRoleProps, {
|
|
56544
56182
|
component: "li",
|
|
56545
56183
|
"aria-disabled": disabled,
|
|
56546
|
-
style:
|
|
56547
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56184
|
+
style: _objectSpread2(_objectSpread2({}, directionStyle), style),
|
|
56185
|
+
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),
|
|
56548
56186
|
onClick: onInternalClick,
|
|
56549
56187
|
onKeyDown: onInternalKeyDown,
|
|
56550
56188
|
onFocus: onInternalFocus
|
|
56551
56189
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56552
|
-
props:
|
|
56190
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
56553
56191
|
isSelected: selected
|
|
56554
56192
|
}),
|
|
56555
56193
|
icon: mergedItemIcon
|
|
@@ -56602,7 +56240,7 @@ function parseChildren(children, keyPath) {
|
|
|
56602
56240
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56603
56241
|
|
|
56604
56242
|
if (emptyKey) {
|
|
56605
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56243
|
+
eventKey = "tmp_key-".concat([].concat(_toConsumableArray(keyPath), [index]).join('-'));
|
|
56606
56244
|
}
|
|
56607
56245
|
|
|
56608
56246
|
var cloneProps = {
|
|
@@ -56650,14 +56288,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56650
56288
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56651
56289
|
var className = _ref.className,
|
|
56652
56290
|
children = _ref.children,
|
|
56653
|
-
restProps =
|
|
56291
|
+
restProps = _objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56654
56292
|
|
|
56655
56293
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56656
56294
|
prefixCls = _React$useContext.prefixCls,
|
|
56657
56295
|
mode = _React$useContext.mode,
|
|
56658
56296
|
rtl = _React$useContext.rtl;
|
|
56659
56297
|
|
|
56660
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
56298
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", extends_extends({
|
|
56661
56299
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56662
56300
|
}, restProps, {
|
|
56663
56301
|
"data-menu-list": true,
|
|
@@ -56774,11 +56412,11 @@ function PopupTrigger(_ref) {
|
|
|
56774
56412
|
innerVisible = _React$useState2[0],
|
|
56775
56413
|
setInnerVisible = _React$useState2[1];
|
|
56776
56414
|
|
|
56777
|
-
var placement = rtl ?
|
|
56415
|
+
var placement = rtl ? _objectSpread2(_objectSpread2({}, placementsRtl), builtinPlacements) : _objectSpread2(_objectSpread2({}, placements), builtinPlacements);
|
|
56778
56416
|
var popupPlacement = popupPlacementMap[mode];
|
|
56779
56417
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
56780
56418
|
|
|
56781
|
-
var mergedMotion =
|
|
56419
|
+
var mergedMotion = _objectSpread2(_objectSpread2({}, targetMotion), {}, {
|
|
56782
56420
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
56783
56421
|
removeOnLeave: false,
|
|
56784
56422
|
motionAppear: true
|
|
@@ -56796,7 +56434,7 @@ function PopupTrigger(_ref) {
|
|
|
56796
56434
|
}, [visible]);
|
|
56797
56435
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
56798
56436
|
prefixCls: prefixCls,
|
|
56799
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
56437
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), _defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
56800
56438
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
56801
56439
|
getPopupContainer: getPopupContainer,
|
|
56802
56440
|
builtinPlacements: placement,
|
|
@@ -56856,7 +56494,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56856
56494
|
}
|
|
56857
56495
|
}, [mode]); // ================================= Render =================================
|
|
56858
56496
|
|
|
56859
|
-
var mergedMotion =
|
|
56497
|
+
var mergedMotion = _objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
56860
56498
|
|
|
56861
56499
|
|
|
56862
56500
|
if (keyPath.length > 1) {
|
|
@@ -56881,7 +56519,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56881
56519
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
56882
56520
|
mode: fixedMode,
|
|
56883
56521
|
locked: !sameModeRef.current
|
|
56884
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
56522
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
56885
56523
|
visible: mergedOpen
|
|
56886
56524
|
}, mergedMotion, {
|
|
56887
56525
|
forceRender: forceSubMenuRender,
|
|
@@ -56944,7 +56582,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56944
56582
|
onTitleClick = props.onTitleClick,
|
|
56945
56583
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
56946
56584
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
56947
|
-
restProps =
|
|
56585
|
+
restProps = _objectWithoutProperties(props, SubMenu_excluded);
|
|
56948
56586
|
|
|
56949
56587
|
var domDataId = useMenuId(eventKey);
|
|
56950
56588
|
|
|
@@ -56987,7 +56625,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56987
56625
|
|
|
56988
56626
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
56989
56627
|
active = _useActive.active,
|
|
56990
|
-
activeProps =
|
|
56628
|
+
activeProps = _objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
56991
56629
|
|
|
56992
56630
|
|
|
56993
56631
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
@@ -57072,7 +56710,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57072
56710
|
|
|
57073
56711
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
57074
56712
|
|
|
57075
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
56713
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
57076
56714
|
role: "menuitem",
|
|
57077
56715
|
style: directionStyle,
|
|
57078
56716
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -57088,7 +56726,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57088
56726
|
onFocus: onInternalFocus
|
|
57089
56727
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
57090
56728
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
57091
|
-
props:
|
|
56729
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
57092
56730
|
isOpen: open,
|
|
57093
56731
|
// [Legacy] Not sure why need this mark
|
|
57094
56732
|
isSubMenu: true
|
|
@@ -57126,12 +56764,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57126
56764
|
} // >>>>> List node
|
|
57127
56765
|
|
|
57128
56766
|
|
|
57129
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56767
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({
|
|
57130
56768
|
role: "none"
|
|
57131
56769
|
}, restProps, {
|
|
57132
56770
|
component: "li",
|
|
57133
56771
|
style: style,
|
|
57134
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
56772
|
+
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)),
|
|
57135
56773
|
onMouseEnter: onInternalMouseEnter,
|
|
57136
56774
|
onMouseLeave: onInternalMouseLeave
|
|
57137
56775
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -57224,7 +56862,7 @@ function focusable(node) {
|
|
|
57224
56862
|
function getFocusNodeList(node) {
|
|
57225
56863
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
57226
56864
|
|
|
57227
|
-
var res =
|
|
56865
|
+
var res = _toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
57228
56866
|
return focusable(child, includePositive);
|
|
57229
56867
|
});
|
|
57230
56868
|
|
|
@@ -57304,9 +56942,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
57304
56942
|
};
|
|
57305
56943
|
}
|
|
57306
56944
|
|
|
57307
|
-
var inline = (_inline = {},
|
|
57308
|
-
var horizontal = (_horizontal = {},
|
|
57309
|
-
var vertical = (_vertical = {},
|
|
56945
|
+
var inline = (_inline = {}, _defineProperty(_inline, UP, prev), _defineProperty(_inline, DOWN, next), _inline);
|
|
56946
|
+
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);
|
|
56947
|
+
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);
|
|
57310
56948
|
var offsets = {
|
|
57311
56949
|
inline: inline,
|
|
57312
56950
|
horizontal: horizontal,
|
|
@@ -57670,7 +57308,7 @@ function useKeyRecords() {
|
|
|
57670
57308
|
}, [getKeyPath]);
|
|
57671
57309
|
|
|
57672
57310
|
var getKeys = function getKeys() {
|
|
57673
|
-
var keys =
|
|
57311
|
+
var keys = _toConsumableArray(key2pathRef.current.keys());
|
|
57674
57312
|
|
|
57675
57313
|
if (overflowKeys.length) {
|
|
57676
57314
|
keys.push(OVERFLOW_KEY);
|
|
@@ -57687,7 +57325,7 @@ function useKeyRecords() {
|
|
|
57687
57325
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
57688
57326
|
var pathKeys = new Set();
|
|
57689
57327
|
|
|
57690
|
-
|
|
57328
|
+
_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
57691
57329
|
if (pathKey.startsWith(connectedPath)) {
|
|
57692
57330
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
57693
57331
|
}
|
|
@@ -57808,7 +57446,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57808
57446
|
openTransitionName = props.openTransitionName,
|
|
57809
57447
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
57810
57448
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
57811
|
-
restProps =
|
|
57449
|
+
restProps = _objectWithoutProperties(props, Menu_excluded);
|
|
57812
57450
|
|
|
57813
57451
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
57814
57452
|
|
|
@@ -57962,7 +57600,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57962
57600
|
return key !== targetKey;
|
|
57963
57601
|
});
|
|
57964
57602
|
} else {
|
|
57965
|
-
newSelectKeys = [].concat(
|
|
57603
|
+
newSelectKeys = [].concat(_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
57966
57604
|
}
|
|
57967
57605
|
} else {
|
|
57968
57606
|
newSelectKeys = [targetKey];
|
|
@@ -57970,7 +57608,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57970
57608
|
|
|
57971
57609
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
57972
57610
|
|
|
57973
|
-
var selectInfo =
|
|
57611
|
+
var selectInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
57974
57612
|
selectedKeys: newSelectKeys
|
|
57975
57613
|
});
|
|
57976
57614
|
|
|
@@ -58048,13 +57686,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58048
57686
|
);
|
|
58049
57687
|
}); // >>>>> Container
|
|
58050
57688
|
|
|
58051
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
57689
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, extends_extends({
|
|
58052
57690
|
id: id,
|
|
58053
57691
|
ref: mergedRef,
|
|
58054
57692
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
58055
57693
|
component: "ul",
|
|
58056
57694
|
itemComponent: es_MenuItem,
|
|
58057
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
57695
|
+
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)),
|
|
58058
57696
|
dir: direction,
|
|
58059
57697
|
style: style,
|
|
58060
57698
|
role: "menu",
|
|
@@ -58148,13 +57786,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58148
57786
|
title = _ref.title,
|
|
58149
57787
|
eventKey = _ref.eventKey,
|
|
58150
57788
|
children = _ref.children,
|
|
58151
|
-
restProps =
|
|
57789
|
+
restProps = _objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58152
57790
|
|
|
58153
57791
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58154
57792
|
prefixCls = _React$useContext.prefixCls;
|
|
58155
57793
|
|
|
58156
57794
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58157
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
57795
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", extends_extends({}, restProps, {
|
|
58158
57796
|
onClick: function onClick(e) {
|
|
58159
57797
|
return e.stopPropagation();
|
|
58160
57798
|
},
|
|
@@ -58169,7 +57807,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58169
57807
|
|
|
58170
57808
|
function MenuItemGroup(_ref2) {
|
|
58171
57809
|
var children = _ref2.children,
|
|
58172
|
-
props =
|
|
57810
|
+
props = _objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58173
57811
|
|
|
58174
57812
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58175
57813
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58297,7 +57935,7 @@ function Dropdown(props, ref) {
|
|
|
58297
57935
|
visible = props.visible,
|
|
58298
57936
|
_props$trigger = props.trigger,
|
|
58299
57937
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58300
|
-
otherProps =
|
|
57938
|
+
otherProps = _objectWithoutProperties(props, Dropdown_excluded);
|
|
58301
57939
|
|
|
58302
57940
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58303
57941
|
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
@@ -58408,12 +58046,12 @@ function Dropdown(props, ref) {
|
|
|
58408
58046
|
triggerHideAction = ['click'];
|
|
58409
58047
|
}
|
|
58410
58048
|
|
|
58411
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58049
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, _objectSpread2(_objectSpread2({
|
|
58412
58050
|
builtinPlacements: placements
|
|
58413
58051
|
}, otherProps), {}, {
|
|
58414
58052
|
prefixCls: prefixCls,
|
|
58415
58053
|
ref: triggerRef,
|
|
58416
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58054
|
+
popupClassName: classnames_default()(overlayClassName, _defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58417
58055
|
popupStyle: overlayStyle,
|
|
58418
58056
|
action: trigger,
|
|
58419
58057
|
showAction: showAction,
|
|
@@ -58617,14 +58255,14 @@ function OperationNode(_ref, ref) {
|
|
|
58617
58255
|
}
|
|
58618
58256
|
}, [open]); // ========================= Render =========================
|
|
58619
58257
|
|
|
58620
|
-
var moreStyle =
|
|
58258
|
+
var moreStyle = _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
58621
58259
|
|
|
58622
58260
|
if (!tabs.length) {
|
|
58623
58261
|
moreStyle.visibility = 'hidden';
|
|
58624
58262
|
moreStyle.order = 1;
|
|
58625
58263
|
}
|
|
58626
58264
|
|
|
58627
|
-
var overlayClassName = classnames_default()(
|
|
58265
|
+
var overlayClassName = classnames_default()(_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
58628
58266
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
58629
58267
|
prefixCls: dropdownPrefix,
|
|
58630
58268
|
overlay: menu,
|
|
@@ -58903,7 +58541,7 @@ var ExtraContent = function ExtraContent(_ref) {
|
|
|
58903
58541
|
|
|
58904
58542
|
var assertExtra = {};
|
|
58905
58543
|
|
|
58906
|
-
if (extra &&
|
|
58544
|
+
if (extra && typeof_typeof(extra) === 'object' && ! /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(extra)) {
|
|
58907
58545
|
assertExtra = extra;
|
|
58908
58546
|
} else {
|
|
58909
58547
|
assertExtra.right = extra;
|
|
@@ -59153,7 +58791,7 @@ function TabNavList(props, ref) {
|
|
|
59153
58791
|
}, {
|
|
59154
58792
|
width: addWidth,
|
|
59155
58793
|
height: addHeight
|
|
59156
|
-
},
|
|
58794
|
+
}, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
59157
58795
|
tabs: tabs
|
|
59158
58796
|
})),
|
|
59159
58797
|
_useVisibleRange2 = slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
@@ -59245,7 +58883,7 @@ function TabNavList(props, ref) {
|
|
|
59245
58883
|
|
|
59246
58884
|
var startHiddenTabs = tabs.slice(0, visibleStart);
|
|
59247
58885
|
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
|
59248
|
-
var hiddenTabs = [].concat(
|
|
58886
|
+
var hiddenTabs = [].concat(_toConsumableArray(startHiddenTabs), _toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
59249
58887
|
|
|
59250
58888
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59251
58889
|
_useState16 = slicedToArray_slicedToArray(_useState15, 2),
|
|
@@ -59331,7 +58969,7 @@ function TabNavList(props, ref) {
|
|
|
59331
58969
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59332
58970
|
onResize: onListHolderResize
|
|
59333
58971
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59334
|
-
className: classnames_default()(wrapPrefix, (_classNames = {},
|
|
58972
|
+
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)),
|
|
59335
58973
|
ref: tabsWrapperRef
|
|
59336
58974
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59337
58975
|
onResize: onListHolderResize
|
|
@@ -59347,13 +58985,13 @@ function TabNavList(props, ref) {
|
|
|
59347
58985
|
prefixCls: prefixCls,
|
|
59348
58986
|
locale: locale,
|
|
59349
58987
|
editable: editable,
|
|
59350
|
-
style:
|
|
58988
|
+
style: _objectSpread2(_objectSpread2({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {
|
|
59351
58989
|
visibility: hasDropdown ? 'hidden' : null
|
|
59352
58990
|
})
|
|
59353
58991
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59354
|
-
className: classnames_default()("".concat(prefixCls, "-ink-bar"),
|
|
58992
|
+
className: classnames_default()("".concat(prefixCls, "-ink-bar"), _defineProperty({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
|
59355
58993
|
style: inkStyle
|
|
59356
|
-
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode,
|
|
58994
|
+
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode, extends_extends({}, props, {
|
|
59357
58995
|
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
|
59358
58996
|
ref: operationsRef,
|
|
59359
58997
|
prefixCls: prefixCls,
|
|
@@ -59393,8 +59031,8 @@ function TabPanelList(_ref) {
|
|
|
59393
59031
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59394
59032
|
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
|
59395
59033
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59396
|
-
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition),
|
|
59397
|
-
style: activeIndex && tabPaneAnimated ?
|
|
59034
|
+
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), _defineProperty({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated)),
|
|
59035
|
+
style: activeIndex && tabPaneAnimated ? _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', "-".concat(activeIndex, "00%")) : null
|
|
59398
59036
|
}, tabs.map(function (tab) {
|
|
59399
59037
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(tab.node, {
|
|
59400
59038
|
key: tab.key,
|
|
@@ -59454,7 +59092,7 @@ function TabPane(_ref) {
|
|
|
59454
59092
|
tabIndex: active ? 0 : -1,
|
|
59455
59093
|
"aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
|
|
59456
59094
|
"aria-hidden": !active,
|
|
59457
|
-
style:
|
|
59095
|
+
style: _objectSpread2(_objectSpread2({}, mergedStyle), style),
|
|
59458
59096
|
className: classnames_default()("".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), className)
|
|
59459
59097
|
}, (active || visited || forceRender) && children);
|
|
59460
59098
|
}
|
|
@@ -59494,7 +59132,7 @@ function parseTabList(children) {
|
|
|
59494
59132
|
return toArray(children).map(function (node) {
|
|
59495
59133
|
if ( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(node)) {
|
|
59496
59134
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
59497
|
-
return
|
|
59135
|
+
return _objectSpread2(_objectSpread2({
|
|
59498
59136
|
key: key
|
|
59499
59137
|
}, node.props), {}, {
|
|
59500
59138
|
node: node
|
|
@@ -59537,7 +59175,7 @@ function Tabs(_ref, ref) {
|
|
|
59537
59175
|
onChange = _ref.onChange,
|
|
59538
59176
|
onTabClick = _ref.onTabClick,
|
|
59539
59177
|
onTabScroll = _ref.onTabScroll,
|
|
59540
|
-
restProps =
|
|
59178
|
+
restProps = _objectWithoutProperties(_ref, Tabs_excluded);
|
|
59541
59179
|
|
|
59542
59180
|
var tabs = parseTabList(children);
|
|
59543
59181
|
var rtl = direction === 'rtl';
|
|
@@ -59554,10 +59192,10 @@ function Tabs(_ref, ref) {
|
|
|
59554
59192
|
tabPane: true
|
|
59555
59193
|
};
|
|
59556
59194
|
} else {
|
|
59557
|
-
mergedAnimated =
|
|
59195
|
+
mergedAnimated = _objectSpread2({
|
|
59558
59196
|
inkBar: true,
|
|
59559
59197
|
tabPane: false
|
|
59560
|
-
},
|
|
59198
|
+
}, typeof_typeof(animated) === 'object' ? animated : {});
|
|
59561
59199
|
} // ======================== Mobile ========================
|
|
59562
59200
|
|
|
59563
59201
|
|
|
@@ -59652,7 +59290,7 @@ function Tabs(_ref, ref) {
|
|
|
59652
59290
|
};
|
|
59653
59291
|
var tabNavBar;
|
|
59654
59292
|
|
|
59655
|
-
var tabNavBarProps =
|
|
59293
|
+
var tabNavBarProps = _objectSpread2(_objectSpread2({}, sharedProps), {}, {
|
|
59656
59294
|
editable: editable,
|
|
59657
59295
|
locale: locale,
|
|
59658
59296
|
moreIcon: moreIcon,
|
|
@@ -59676,11 +59314,11 @@ function Tabs(_ref, ref) {
|
|
|
59676
59314
|
tabs: tabs,
|
|
59677
59315
|
prefixCls: prefixCls
|
|
59678
59316
|
}
|
|
59679
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
59317
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
59680
59318
|
ref: ref,
|
|
59681
59319
|
id: id,
|
|
59682
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {},
|
|
59683
|
-
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList,
|
|
59320
|
+
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)
|
|
59321
|
+
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList, extends_extends({
|
|
59684
59322
|
destroyInactiveTabPane: destroyInactiveTabPane
|
|
59685
59323
|
}, sharedProps, {
|
|
59686
59324
|
animated: mergedAnimated
|
|
@@ -59766,11 +59404,11 @@ function tabs_Tabs(_a) {
|
|
|
59766
59404
|
var _classNames;
|
|
59767
59405
|
|
|
59768
59406
|
var size = propSize !== undefined ? propSize : contextSize;
|
|
59769
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es,
|
|
59407
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es, extends_extends({
|
|
59770
59408
|
direction: direction,
|
|
59771
59409
|
moreTransitionName: "".concat(rootPrefixCls, "-slide-up")
|
|
59772
59410
|
}, props, {
|
|
59773
|
-
className: classnames_default()((_classNames = {},
|
|
59411
|
+
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),
|
|
59774
59412
|
editable: editable,
|
|
59775
59413
|
moreIcon: moreIcon,
|
|
59776
59414
|
prefixCls: prefixCls
|
|
@@ -59878,7 +59516,7 @@ var Pager = function Pager(props) {
|
|
|
59878
59516
|
var _classNames;
|
|
59879
59517
|
|
|
59880
59518
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
59881
|
-
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {},
|
|
59519
|
+
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));
|
|
59882
59520
|
|
|
59883
59521
|
var handleClick = function handleClick() {
|
|
59884
59522
|
props.onClick(props.page);
|
|
@@ -59923,14 +59561,14 @@ var Pager = function Pager(props) {
|
|
|
59923
59561
|
|
|
59924
59562
|
|
|
59925
59563
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
59926
|
-
|
|
59564
|
+
_inherits(Options, _React$Component);
|
|
59927
59565
|
|
|
59928
|
-
var _super =
|
|
59566
|
+
var _super = _createSuper(Options);
|
|
59929
59567
|
|
|
59930
59568
|
function Options() {
|
|
59931
59569
|
var _this;
|
|
59932
59570
|
|
|
59933
|
-
|
|
59571
|
+
_classCallCheck(this, Options);
|
|
59934
59572
|
|
|
59935
59573
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59936
59574
|
args[_key] = arguments[_key];
|
|
@@ -59996,7 +59634,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
59996
59634
|
return _this;
|
|
59997
59635
|
}
|
|
59998
59636
|
|
|
59999
|
-
|
|
59637
|
+
_createClass(Options, [{
|
|
60000
59638
|
key: "getValidValue",
|
|
60001
59639
|
value: function getValidValue() {
|
|
60002
59640
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -60153,14 +59791,14 @@ function calculatePage(p, state, props) {
|
|
|
60153
59791
|
}
|
|
60154
59792
|
|
|
60155
59793
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
60156
|
-
|
|
59794
|
+
_inherits(Pagination, _React$Component);
|
|
60157
59795
|
|
|
60158
|
-
var _super =
|
|
59796
|
+
var _super = _createSuper(Pagination);
|
|
60159
59797
|
|
|
60160
59798
|
function Pagination(props) {
|
|
60161
59799
|
var _this;
|
|
60162
59800
|
|
|
60163
|
-
|
|
59801
|
+
_classCallCheck(this, Pagination);
|
|
60164
59802
|
|
|
60165
59803
|
_this = _super.call(this, props);
|
|
60166
59804
|
|
|
@@ -60181,7 +59819,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60181
59819
|
});
|
|
60182
59820
|
|
|
60183
59821
|
if (typeof icon === 'function') {
|
|
60184
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon,
|
|
59822
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon, _objectSpread2({}, _this.props));
|
|
60185
59823
|
}
|
|
60186
59824
|
|
|
60187
59825
|
return iconNode;
|
|
@@ -60403,7 +60041,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60403
60041
|
return _this;
|
|
60404
60042
|
}
|
|
60405
60043
|
|
|
60406
|
-
|
|
60044
|
+
_createClass(Pagination, [{
|
|
60407
60045
|
key: "componentDidUpdate",
|
|
60408
60046
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
60409
60047
|
// When current page change, fix focused style of prev item
|
|
@@ -60551,8 +60189,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60551
60189
|
}, gotoButton);
|
|
60552
60190
|
}
|
|
60553
60191
|
|
|
60554
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60555
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"),
|
|
60192
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60193
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"), _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
60556
60194
|
style: style,
|
|
60557
60195
|
ref: this.savePaginationNode
|
|
60558
60196
|
}, dataOrAriaAttributeProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
@@ -60560,7 +60198,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60560
60198
|
onClick: this.prev,
|
|
60561
60199
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60562
60200
|
onKeyPress: this.runIfEnterPrev,
|
|
60563
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60201
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
60564
60202
|
"aria-disabled": !this.hasPrev()
|
|
60565
60203
|
}, this.renderPrev(prevPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60566
60204
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
@@ -60581,7 +60219,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60581
60219
|
onClick: this.next,
|
|
60582
60220
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60583
60221
|
onKeyPress: this.runIfEnterNext,
|
|
60584
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60222
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
60585
60223
|
"aria-disabled": !this.hasNext()
|
|
60586
60224
|
}, this.renderNext(nextPage)), gotoButton);
|
|
60587
60225
|
}
|
|
@@ -60597,7 +60235,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60597
60235
|
};
|
|
60598
60236
|
|
|
60599
60237
|
if (!allPages) {
|
|
60600
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60238
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60601
60239
|
key: "noPager",
|
|
60602
60240
|
page: 1,
|
|
60603
60241
|
className: "".concat(prefixCls, "-item-disabled")
|
|
@@ -60606,7 +60244,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60606
60244
|
|
|
60607
60245
|
for (var i = 1; i <= allPages; i += 1) {
|
|
60608
60246
|
var active = current === i;
|
|
60609
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60247
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60610
60248
|
key: i,
|
|
60611
60249
|
page: i,
|
|
60612
60250
|
active: active
|
|
@@ -60623,7 +60261,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60623
60261
|
onClick: this.jumpPrev,
|
|
60624
60262
|
tabIndex: "0",
|
|
60625
60263
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
60626
|
-
className: classnames_default()("".concat(prefixCls, "-jump-prev"),
|
|
60264
|
+
className: classnames_default()("".concat(prefixCls, "-jump-prev"), _defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
60627
60265
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
60628
60266
|
jumpNext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60629
60267
|
title: showTitle ? nextItemTitle : null,
|
|
@@ -60631,7 +60269,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60631
60269
|
tabIndex: "0",
|
|
60632
60270
|
onClick: this.jumpNext,
|
|
60633
60271
|
onKeyPress: this.runIfEnterJumpNext,
|
|
60634
|
-
className: classnames_default()("".concat(prefixCls, "-jump-next"),
|
|
60272
|
+
className: classnames_default()("".concat(prefixCls, "-jump-next"), _defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
60635
60273
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
60636
60274
|
}
|
|
60637
60275
|
|
|
@@ -60718,8 +60356,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60718
60356
|
|
|
60719
60357
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
60720
60358
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
60721
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60722
|
-
className: classnames_default()(prefixCls, className,
|
|
60359
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60360
|
+
className: classnames_default()(prefixCls, className, _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled)),
|
|
60723
60361
|
style: style,
|
|
60724
60362
|
unselectable: "unselectable",
|
|
60725
60363
|
ref: this.savePaginationNode
|
|
@@ -60728,14 +60366,14 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60728
60366
|
onClick: this.prev,
|
|
60729
60367
|
tabIndex: prevDisabled ? null : 0,
|
|
60730
60368
|
onKeyPress: this.runIfEnterPrev,
|
|
60731
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60369
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
60732
60370
|
"aria-disabled": prevDisabled
|
|
60733
60371
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60734
60372
|
title: showTitle ? locale.next_page : null,
|
|
60735
60373
|
onClick: this.next,
|
|
60736
60374
|
tabIndex: nextDisabled ? null : 0,
|
|
60737
60375
|
onKeyPress: this.runIfEnterNext,
|
|
60738
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60376
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
60739
60377
|
"aria-disabled": nextDisabled
|
|
60740
60378
|
}, this.renderNext(nextPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Options, {
|
|
60741
60379
|
disabled: disabled,
|
|
@@ -60813,7 +60451,7 @@ Pagination.defaultProps = {
|
|
|
60813
60451
|
|
|
60814
60452
|
|
|
60815
60453
|
var MiniSelect = function MiniSelect(props) {
|
|
60816
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select,
|
|
60454
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select, extends_extends({
|
|
60817
60455
|
size: "small"
|
|
60818
60456
|
}, props));
|
|
60819
60457
|
};
|
|
@@ -60874,7 +60512,7 @@ var responsiveObserve = {
|
|
|
60874
60512
|
var listener = function listener(_ref) {
|
|
60875
60513
|
var matches = _ref.matches;
|
|
60876
60514
|
|
|
60877
|
-
_this2.dispatch(
|
|
60515
|
+
_this2.dispatch(extends_extends(extends_extends({}, screens), _defineProperty({}, screen, matches)));
|
|
60878
60516
|
};
|
|
60879
60517
|
|
|
60880
60518
|
var mql = window.matchMedia(matchMediaQuery);
|
|
@@ -61015,13 +60653,13 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61015
60653
|
var renderPagination = function renderPagination(contextLocale) {
|
|
61016
60654
|
var _classNames;
|
|
61017
60655
|
|
|
61018
|
-
var locale =
|
|
60656
|
+
var locale = extends_extends(extends_extends({}, contextLocale), customLocale);
|
|
61019
60657
|
|
|
61020
60658
|
var isSmall = size === 'small' || !!(xs && !size && restProps.responsive);
|
|
61021
60659
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
61022
60660
|
var extendedClassName = classnames_default()((_classNames = {
|
|
61023
60661
|
mini: isSmall
|
|
61024
|
-
},
|
|
60662
|
+
}, _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames, "minimalistic", minimalistic), _classNames), className); // 文本式分页
|
|
61025
60663
|
|
|
61026
60664
|
if (minimalistic) {
|
|
61027
60665
|
paginationProps.itemRender = function (_current, type, originalElement) {
|
|
@@ -61058,7 +60696,7 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61058
60696
|
paginationProps.showQuickJumper = showQuickJumper;
|
|
61059
60697
|
}
|
|
61060
60698
|
|
|
61061
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination,
|
|
60699
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination, extends_extends({}, paginationProps, getIconsProps(), restProps, {
|
|
61062
60700
|
prefixCls: prefixCls,
|
|
61063
60701
|
selectPrefixCls: selectPrefixCls,
|
|
61064
60702
|
className: extendedClassName,
|
|
@@ -61430,10 +61068,10 @@ function Action(_ref) {
|
|
|
61430
61068
|
setCurAction = _useState2[1];
|
|
61431
61069
|
|
|
61432
61070
|
var handleBtnClick = /*#__PURE__*/function () {
|
|
61433
|
-
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/
|
|
61071
|
+
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(e) {
|
|
61434
61072
|
var now, begin, _error$response, _error$response$data, _error$response2, _error$response2$data;
|
|
61435
61073
|
|
|
61436
|
-
return
|
|
61074
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
61437
61075
|
while (1) {
|
|
61438
61076
|
switch (_context.prev = _context.next) {
|
|
61439
61077
|
case 0:
|
|
@@ -61632,8 +61270,8 @@ function ListItem(_ref) {
|
|
|
61632
61270
|
status = data.status;
|
|
61633
61271
|
|
|
61634
61272
|
var handleDetailClick = /*#__PURE__*/function () {
|
|
61635
|
-
var _ref2 = ListItem_asyncToGenerator( /*#__PURE__*/
|
|
61636
|
-
return
|
|
61273
|
+
var _ref2 = ListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
61274
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
61637
61275
|
while (1) {
|
|
61638
61276
|
switch (_context.prev = _context.next) {
|
|
61639
61277
|
case 0:
|
|
@@ -61789,7 +61427,8 @@ function PublicLiveList(_ref) {
|
|
|
61789
61427
|
_ref$handleLogin = _ref.handleLogin,
|
|
61790
61428
|
handleLogin = _ref$handleLogin === void 0 ? function () {} : _ref$handleLogin,
|
|
61791
61429
|
_ref$onSubscribe = _ref.onSubscribe,
|
|
61792
|
-
onSubscribe = _ref$onSubscribe === void 0 ? function () {} : _ref$onSubscribe
|
|
61430
|
+
onSubscribe = _ref$onSubscribe === void 0 ? function () {} : _ref$onSubscribe,
|
|
61431
|
+
emptyClassName = _ref.emptyClassName;
|
|
61793
61432
|
setUC(uc, loginInfo === null || loginInfo === void 0 ? void 0 : loginInfo.userInfo);
|
|
61794
61433
|
|
|
61795
61434
|
if (propSdpAppId) {
|
|
@@ -61892,8 +61531,8 @@ function PublicLiveList(_ref) {
|
|
|
61892
61531
|
setIsLogin(true);
|
|
61893
61532
|
|
|
61894
61533
|
case 15:
|
|
61895
|
-
setList(items);
|
|
61896
|
-
setTotal(count);
|
|
61534
|
+
setList(items || []);
|
|
61535
|
+
setTotal(count || 0);
|
|
61897
61536
|
setLoading(false);
|
|
61898
61537
|
|
|
61899
61538
|
case 18:
|
|
@@ -61937,7 +61576,8 @@ function PublicLiveList(_ref) {
|
|
|
61937
61576
|
current: page,
|
|
61938
61577
|
onChange: handlePageChange
|
|
61939
61578
|
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(Empty_Empty, {
|
|
61940
|
-
tip: "\u6682\u65E0\u5185\u5BB9"
|
|
61579
|
+
tip: "\u6682\u65E0\u5185\u5BB9",
|
|
61580
|
+
className: emptyClassName
|
|
61941
61581
|
})))));
|
|
61942
61582
|
})));
|
|
61943
61583
|
}
|