@x-edu/live-player 0.0.11 → 0.0.13
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 +987 -480
- package/dist/XEduLivePlayerPre.common.js +1042 -535
- package/package.json +1 -1
- package/public/JsBridge.js +1602 -1602
- package/src/component/AliPlayer/index.jsx +7 -4
- package/src/detail/LiveStatus/index.jsx +186 -186
- package/src/detail/LiveVideo/index.jsx +0 -2
- package/src/detail/RecordVideo/index.jsx +148 -150
- package/src/detail/index.jsx +501 -475
|
@@ -25807,10 +25807,17 @@ module.exports = styleTagTransform;
|
|
|
25807
25807
|
|
|
25808
25808
|
/***/ }),
|
|
25809
25809
|
|
|
25810
|
+
/***/ 5273:
|
|
25811
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25812
|
+
|
|
25813
|
+
module.exports = __webpack_require__(5666);
|
|
25814
|
+
|
|
25815
|
+
/***/ }),
|
|
25816
|
+
|
|
25810
25817
|
/***/ 3006:
|
|
25811
25818
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25812
25819
|
|
|
25813
|
-
var _regeneratorRuntime = __webpack_require__(
|
|
25820
|
+
var _regeneratorRuntime = __webpack_require__(5273);
|
|
25814
25821
|
|
|
25815
25822
|
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); } }
|
|
25816
25823
|
|
|
@@ -27018,7 +27025,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAFgCAYAAABn
|
|
|
27018
27025
|
/***/ (function(module) {
|
|
27019
27026
|
|
|
27020
27027
|
"use strict";
|
|
27021
|
-
module.exports = JSON.parse('{"_args":[["axios@0.21.4","
|
|
27028
|
+
module.exports = JSON.parse('{"_args":[["axios@0.21.4","C:\\\\git\\\\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":"C:\\\\git\\\\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"}');
|
|
27022
27029
|
|
|
27023
27030
|
/***/ })
|
|
27024
27031
|
|
|
@@ -30739,7 +30746,7 @@ var LIVING_CLOSE_LOGIN = {
|
|
|
30739
30746
|
CLOSE: '1'
|
|
30740
30747
|
}; // 子类型 1 网龙会议 2 外部推流 3 转播
|
|
30741
30748
|
|
|
30742
|
-
var
|
|
30749
|
+
var publicLive_SUB_TYPE = {
|
|
30743
30750
|
NET_DRAGON: 1,
|
|
30744
30751
|
OUTSIDE: 2,
|
|
30745
30752
|
REBROADCAST: 3
|
|
@@ -31755,7 +31762,7 @@ function _getOpenClassLiveBase() {
|
|
|
31755
31762
|
data = _context14.sent;
|
|
31756
31763
|
subType = data.sub_type; // 外部推流则直接返回, 不去请求兼容接口
|
|
31757
31764
|
|
|
31758
|
-
if (!(subType ===
|
|
31765
|
+
if (!(subType === publicLive_SUB_TYPE.OUTSIDE)) {
|
|
31759
31766
|
_context14.next = 7;
|
|
31760
31767
|
break;
|
|
31761
31768
|
}
|
|
@@ -32516,6 +32523,119 @@ function Loading_Loading(_ref) {
|
|
|
32516
32523
|
wrapperClassName: classnames_default()('x-edu-nested-loading', wrapperClassName)
|
|
32517
32524
|
}, children);
|
|
32518
32525
|
}
|
|
32526
|
+
// EXTERNAL MODULE: ./node_modules/@sdp.nd/fish/es/loader/style/index.js
|
|
32527
|
+
var loader_style = __webpack_require__(4646);
|
|
32528
|
+
;// CONCATENATED MODULE: ./src/util/push/index.js
|
|
32529
|
+
|
|
32530
|
+
|
|
32531
|
+
|
|
32532
|
+
|
|
32533
|
+
function push_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); } }
|
|
32534
|
+
|
|
32535
|
+
function push_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { push_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { push_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
32536
|
+
|
|
32537
|
+
function push_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
32538
|
+
|
|
32539
|
+
function push_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
32540
|
+
|
|
32541
|
+
function push_createClass(Constructor, protoProps, staticProps) { if (protoProps) push_defineProperties(Constructor.prototype, protoProps); if (staticProps) push_defineProperties(Constructor, staticProps); return Constructor; }
|
|
32542
|
+
|
|
32543
|
+
|
|
32544
|
+
var push_url = '/3rd/im-web-push/index.umd.js';
|
|
32545
|
+
var push_loadJS = loader.loadJS;
|
|
32546
|
+
var instPromise; // http://git.sdp.nd/component-h5/web-im-push/-/tree/master
|
|
32547
|
+
|
|
32548
|
+
var ImPush = /*#__PURE__*/function () {
|
|
32549
|
+
function ImPush() {
|
|
32550
|
+
push_classCallCheck(this, ImPush);
|
|
32551
|
+
|
|
32552
|
+
this.listeners = [];
|
|
32553
|
+
}
|
|
32554
|
+
|
|
32555
|
+
push_createClass(ImPush, [{
|
|
32556
|
+
key: "init",
|
|
32557
|
+
value: function () {
|
|
32558
|
+
var _init = push_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
32559
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
32560
|
+
while (1) {
|
|
32561
|
+
switch (_context.prev = _context.next) {
|
|
32562
|
+
case 0:
|
|
32563
|
+
if (!instPromise) {
|
|
32564
|
+
_context.next = 2;
|
|
32565
|
+
break;
|
|
32566
|
+
}
|
|
32567
|
+
|
|
32568
|
+
return _context.abrupt("return", instPromise);
|
|
32569
|
+
|
|
32570
|
+
case 2:
|
|
32571
|
+
instPromise = push_loadJS(push_url, 'ndiot_push').then(function () {
|
|
32572
|
+
window.ndiot_push.open({
|
|
32573
|
+
url: env["default"].push.host,
|
|
32574
|
+
appId: env["default"].app.appid,
|
|
32575
|
+
disableSharedWorker: true
|
|
32576
|
+
});
|
|
32577
|
+
return window.ndiot_push;
|
|
32578
|
+
});
|
|
32579
|
+
return _context.abrupt("return", instPromise);
|
|
32580
|
+
|
|
32581
|
+
case 4:
|
|
32582
|
+
case "end":
|
|
32583
|
+
return _context.stop();
|
|
32584
|
+
}
|
|
32585
|
+
}
|
|
32586
|
+
}, _callee);
|
|
32587
|
+
}));
|
|
32588
|
+
|
|
32589
|
+
function init() {
|
|
32590
|
+
return _init.apply(this, arguments);
|
|
32591
|
+
}
|
|
32592
|
+
|
|
32593
|
+
return init;
|
|
32594
|
+
}()
|
|
32595
|
+
}, {
|
|
32596
|
+
key: "getInstance",
|
|
32597
|
+
value: function getInstance() {
|
|
32598
|
+
return window.ndiot_push;
|
|
32599
|
+
}
|
|
32600
|
+
}, {
|
|
32601
|
+
key: "addTopicListener",
|
|
32602
|
+
value: function addTopicListener(name, listener) {
|
|
32603
|
+
var inst = this.getInstance();
|
|
32604
|
+
this.listeners.push(listener);
|
|
32605
|
+
inst.subscribe(name);
|
|
32606
|
+
this.listen();
|
|
32607
|
+
}
|
|
32608
|
+
}, {
|
|
32609
|
+
key: "removeTopicListener",
|
|
32610
|
+
value: function removeTopicListener(name, listener) {
|
|
32611
|
+
var inst = this.getInstance();
|
|
32612
|
+
this.listeners = this.listeners.filter(function (l) {
|
|
32613
|
+
return l !== listener;
|
|
32614
|
+
});
|
|
32615
|
+
inst.unsubscribe(name);
|
|
32616
|
+
this.listen();
|
|
32617
|
+
}
|
|
32618
|
+
}, {
|
|
32619
|
+
key: "listen",
|
|
32620
|
+
value: function listen() {
|
|
32621
|
+
var _this = this;
|
|
32622
|
+
|
|
32623
|
+
var inst = this.getInstance();
|
|
32624
|
+
|
|
32625
|
+
inst.onNewMessage = function (data) {
|
|
32626
|
+
console.log('im-push', data);
|
|
32627
|
+
|
|
32628
|
+
_this.listeners.forEach(function (l) {
|
|
32629
|
+
l(data);
|
|
32630
|
+
});
|
|
32631
|
+
};
|
|
32632
|
+
}
|
|
32633
|
+
}]);
|
|
32634
|
+
|
|
32635
|
+
return ImPush;
|
|
32636
|
+
}();
|
|
32637
|
+
|
|
32638
|
+
/* harmony default export */ var push = (new ImPush());
|
|
32519
32639
|
;// CONCATENATED MODULE: ./src/util/object.js
|
|
32520
32640
|
function pick(obj, keys) {
|
|
32521
32641
|
if (!Array.isArray(keys)) {
|
|
@@ -32995,6 +33115,9 @@ var index_module_update = injectStylesIntoStyleTag_default()(index_module/* defa
|
|
|
32995
33115
|
|
|
32996
33116
|
/* harmony default export */ var LiveCountDown_index_module = (index_module/* default */.Z && index_module/* default.locals */.Z.locals ? index_module/* default.locals */.Z.locals : undefined);
|
|
32997
33117
|
|
|
33118
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
33119
|
+
var runtime_regenerator = __webpack_require__(5273);
|
|
33120
|
+
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
32998
33121
|
;// CONCATENATED MODULE: ./src/hook/useIsMounted.js
|
|
32999
33122
|
|
|
33000
33123
|
|
|
@@ -33061,9 +33184,9 @@ function isSourceReady(_x) {
|
|
|
33061
33184
|
}
|
|
33062
33185
|
|
|
33063
33186
|
function _isSourceReady() {
|
|
33064
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33187
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(liveInfo) {
|
|
33065
33188
|
var newLiveInfo;
|
|
33066
|
-
return
|
|
33189
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33067
33190
|
while (1) {
|
|
33068
33191
|
switch (_context.prev = _context.next) {
|
|
33069
33192
|
case 0:
|
|
@@ -33360,8 +33483,7 @@ function LiveStatus_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
33360
33483
|
|
|
33361
33484
|
|
|
33362
33485
|
function LiveStatus(_ref) {
|
|
33363
|
-
var
|
|
33364
|
-
handleLogin = _ref.handleLogin,
|
|
33486
|
+
var handleLogin = _ref.handleLogin,
|
|
33365
33487
|
userInfo = _ref.userInfo,
|
|
33366
33488
|
liveInfo = _ref.liveInfo,
|
|
33367
33489
|
hasPlayed = _ref.hasPlayed,
|
|
@@ -33392,7 +33514,8 @@ function LiveStatus(_ref) {
|
|
|
33392
33514
|
var isCompleted = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.COMPLETEED;
|
|
33393
33515
|
var isPaused = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.PASUED;
|
|
33394
33516
|
var isOffline = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.OFFLINE;
|
|
33395
|
-
var isRecordLive = liveInfo.type === PUBLIC_LIVE_MODE.RECORDED;
|
|
33517
|
+
var isRecordLive = liveInfo.type === PUBLIC_LIVE_MODE.RECORDED;
|
|
33518
|
+
var isStreamLive = liveInfo.type === PUBLIC_LIVE_MODE.LIVING && (liveInfo.sub_type === SUB_TYPE.OUTSIDE || liveInfo.sub_type === SUB_TYPE.REBROADCAST); // 当前时间是否在回放时间开始前, 如果没有回放开始时间, 则直接判断未回放还没生成
|
|
33396
33519
|
|
|
33397
33520
|
var isBeforeRecordTime = liveInfo.replay_begin_time ? dayjs_min_default()().isBefore(dayjs_min_default()(liveInfo.replay_begin_time)) : true;
|
|
33398
33521
|
var mustLogin = !userInfo && liveInfo.login;
|
|
@@ -33571,8 +33694,7 @@ function RecordVideo_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
33571
33694
|
|
|
33572
33695
|
|
|
33573
33696
|
function RecordVideo(_ref) {
|
|
33574
|
-
var
|
|
33575
|
-
userInfo = _ref.userInfo,
|
|
33697
|
+
var userInfo = _ref.userInfo,
|
|
33576
33698
|
liveInfo = _ref.liveInfo,
|
|
33577
33699
|
visitTime = _ref.visitTime,
|
|
33578
33700
|
diffTime = _ref.diffTime,
|
|
@@ -33713,7 +33835,6 @@ function RecordVideo(_ref) {
|
|
|
33713
33835
|
options: options,
|
|
33714
33836
|
onReady: handleVideoReady
|
|
33715
33837
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(detail_LiveStatus, {
|
|
33716
|
-
isStreamLive: isStreamLive,
|
|
33717
33838
|
userInfo: userInfo,
|
|
33718
33839
|
visitTime: visitTime,
|
|
33719
33840
|
diffTime: diffTime,
|
|
@@ -33725,8 +33846,6 @@ function RecordVideo(_ref) {
|
|
|
33725
33846
|
onReloadLive: handleVideoReload
|
|
33726
33847
|
}));
|
|
33727
33848
|
}
|
|
33728
|
-
// EXTERNAL MODULE: ./node_modules/@sdp.nd/fish/es/loader/style/index.js
|
|
33729
|
-
var loader_style = __webpack_require__(4646);
|
|
33730
33849
|
;// CONCATENATED MODULE: ./src/component/AliPlayer/index.jsx
|
|
33731
33850
|
|
|
33732
33851
|
|
|
@@ -33745,10 +33864,12 @@ function AliPlayer_asyncToGenerator(fn) { return function () { var self = this,
|
|
|
33745
33864
|
|
|
33746
33865
|
var AliPlayer_loadCSS = loader.loadCSS,
|
|
33747
33866
|
AliPlayer_loadJS = loader.loadJS;
|
|
33748
|
-
var
|
|
33749
|
-
var
|
|
33750
|
-
var
|
|
33751
|
-
var
|
|
33867
|
+
var global = window.rawWindow || window;
|
|
33868
|
+
var host = global.location.origin;
|
|
33869
|
+
var playerJS = "".concat(host, "/3rd/ali-player/aliplayer-min.js");
|
|
33870
|
+
var playerHLS = "".concat(host, "/3rd/ali-player/aliplayer-hls-min.js");
|
|
33871
|
+
var playerComponents = "".concat(host, "/3rd/ali-player/alipayercomponents-1.0.8.min.js");
|
|
33872
|
+
var playerCSS = "".concat(host, "/3rd/ali-player/aliplayer-min.css");
|
|
33752
33873
|
function AliPlayer(_ref) {
|
|
33753
33874
|
var className = _ref.className,
|
|
33754
33875
|
options = _ref.options,
|
|
@@ -33890,6 +34011,39 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
33890
34011
|
// style dependencies
|
|
33891
34012
|
|
|
33892
34013
|
|
|
34014
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
34015
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
34016
|
+
if (key in obj) {
|
|
34017
|
+
Object.defineProperty(obj, key, {
|
|
34018
|
+
value: value,
|
|
34019
|
+
enumerable: true,
|
|
34020
|
+
configurable: true,
|
|
34021
|
+
writable: true
|
|
34022
|
+
});
|
|
34023
|
+
} else {
|
|
34024
|
+
obj[key] = value;
|
|
34025
|
+
}
|
|
34026
|
+
|
|
34027
|
+
return obj;
|
|
34028
|
+
}
|
|
34029
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
34030
|
+
function esm_extends_extends() {
|
|
34031
|
+
esm_extends_extends = Object.assign || function (target) {
|
|
34032
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
34033
|
+
var source = arguments[i];
|
|
34034
|
+
|
|
34035
|
+
for (var key in source) {
|
|
34036
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34037
|
+
target[key] = source[key];
|
|
34038
|
+
}
|
|
34039
|
+
}
|
|
34040
|
+
}
|
|
34041
|
+
|
|
34042
|
+
return target;
|
|
34043
|
+
};
|
|
34044
|
+
|
|
34045
|
+
return esm_extends_extends.apply(this, arguments);
|
|
34046
|
+
}
|
|
33893
34047
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
33894
34048
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
33895
34049
|
if (Array.isArray(arr)) return arr;
|
|
@@ -33924,6 +34078,26 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
33924
34078
|
|
|
33925
34079
|
return _arr;
|
|
33926
34080
|
}
|
|
34081
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34082
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34083
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
34084
|
+
|
|
34085
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34086
|
+
arr2[i] = arr[i];
|
|
34087
|
+
}
|
|
34088
|
+
|
|
34089
|
+
return arr2;
|
|
34090
|
+
}
|
|
34091
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34092
|
+
|
|
34093
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34094
|
+
if (!o) return;
|
|
34095
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34096
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34097
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34098
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34099
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34100
|
+
}
|
|
33927
34101
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
33928
34102
|
function nonIterableRest_nonIterableRest() {
|
|
33929
34103
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -33934,7 +34108,130 @@ function nonIterableRest_nonIterableRest() {
|
|
|
33934
34108
|
|
|
33935
34109
|
|
|
33936
34110
|
function slicedToArray_slicedToArray(arr, i) {
|
|
33937
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
34111
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34112
|
+
}
|
|
34113
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34114
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
34115
|
+
if (!(instance instanceof Constructor)) {
|
|
34116
|
+
throw new TypeError("Cannot call a class as a function");
|
|
34117
|
+
}
|
|
34118
|
+
}
|
|
34119
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
34120
|
+
function createClass_defineProperties(target, props) {
|
|
34121
|
+
for (var i = 0; i < props.length; i++) {
|
|
34122
|
+
var descriptor = props[i];
|
|
34123
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
34124
|
+
descriptor.configurable = true;
|
|
34125
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
34126
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34127
|
+
}
|
|
34128
|
+
}
|
|
34129
|
+
|
|
34130
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
34131
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
34132
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
34133
|
+
return Constructor;
|
|
34134
|
+
}
|
|
34135
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
34136
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
34137
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
34138
|
+
o.__proto__ = p;
|
|
34139
|
+
return o;
|
|
34140
|
+
};
|
|
34141
|
+
|
|
34142
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
34143
|
+
}
|
|
34144
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
34145
|
+
|
|
34146
|
+
function inherits_inherits(subClass, superClass) {
|
|
34147
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
34148
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
34149
|
+
}
|
|
34150
|
+
|
|
34151
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
34152
|
+
constructor: {
|
|
34153
|
+
value: subClass,
|
|
34154
|
+
writable: true,
|
|
34155
|
+
configurable: true
|
|
34156
|
+
}
|
|
34157
|
+
});
|
|
34158
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
34159
|
+
}
|
|
34160
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
34161
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
34162
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
34163
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
34164
|
+
};
|
|
34165
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
34166
|
+
}
|
|
34167
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
34168
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
34169
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
34170
|
+
if (Reflect.construct.sham) return false;
|
|
34171
|
+
if (typeof Proxy === "function") return true;
|
|
34172
|
+
|
|
34173
|
+
try {
|
|
34174
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
34175
|
+
return true;
|
|
34176
|
+
} catch (e) {
|
|
34177
|
+
return false;
|
|
34178
|
+
}
|
|
34179
|
+
}
|
|
34180
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
34181
|
+
function esm_typeof_typeof(obj) {
|
|
34182
|
+
"@babel/helpers - typeof";
|
|
34183
|
+
|
|
34184
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
34185
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
34186
|
+
return typeof obj;
|
|
34187
|
+
};
|
|
34188
|
+
} else {
|
|
34189
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
34190
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
34191
|
+
};
|
|
34192
|
+
}
|
|
34193
|
+
|
|
34194
|
+
return esm_typeof_typeof(obj);
|
|
34195
|
+
}
|
|
34196
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
34197
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
34198
|
+
if (self === void 0) {
|
|
34199
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34200
|
+
}
|
|
34201
|
+
|
|
34202
|
+
return self;
|
|
34203
|
+
}
|
|
34204
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
34205
|
+
|
|
34206
|
+
|
|
34207
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
34208
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
34209
|
+
return call;
|
|
34210
|
+
} else if (call !== void 0) {
|
|
34211
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
34212
|
+
}
|
|
34213
|
+
|
|
34214
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
34215
|
+
}
|
|
34216
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
34217
|
+
|
|
34218
|
+
|
|
34219
|
+
|
|
34220
|
+
function createSuper_createSuper(Derived) {
|
|
34221
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
34222
|
+
return function _createSuperInternal() {
|
|
34223
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
34224
|
+
result;
|
|
34225
|
+
|
|
34226
|
+
if (hasNativeReflectConstruct) {
|
|
34227
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
34228
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
34229
|
+
} else {
|
|
34230
|
+
result = Super.apply(this, arguments);
|
|
34231
|
+
}
|
|
34232
|
+
|
|
34233
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
34234
|
+
};
|
|
33938
34235
|
}
|
|
33939
34236
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
33940
34237
|
var raf = function raf(callback) {
|
|
@@ -34161,6 +34458,27 @@ var cacheStyle = {};
|
|
|
34161
34458
|
}
|
|
34162
34459
|
}
|
|
34163
34460
|
});
|
|
34461
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34462
|
+
|
|
34463
|
+
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34464
|
+
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34465
|
+
}
|
|
34466
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34467
|
+
function iterableToArray_iterableToArray(iter) {
|
|
34468
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34469
|
+
}
|
|
34470
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34471
|
+
function nonIterableSpread_nonIterableSpread() {
|
|
34472
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34473
|
+
}
|
|
34474
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34475
|
+
|
|
34476
|
+
|
|
34477
|
+
|
|
34478
|
+
|
|
34479
|
+
function toConsumableArray_toConsumableArray(arr) {
|
|
34480
|
+
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34481
|
+
}
|
|
34164
34482
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34165
34483
|
|
|
34166
34484
|
|
|
@@ -34177,7 +34495,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34177
34495
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34178
34496
|
var _this = this;
|
|
34179
34497
|
|
|
34180
|
-
|
|
34498
|
+
classCallCheck_classCallCheck(this, ScrollLocker);
|
|
34181
34499
|
|
|
34182
34500
|
this.lockTarget = void 0;
|
|
34183
34501
|
this.options = void 0;
|
|
@@ -34225,7 +34543,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34225
34543
|
var options = _ref3.options;
|
|
34226
34544
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34227
34545
|
})) {
|
|
34228
|
-
locks = [].concat(
|
|
34546
|
+
locks = [].concat(toConsumableArray_toConsumableArray(locks), [{
|
|
34229
34547
|
target: _this.lockTarget,
|
|
34230
34548
|
options: _this.options
|
|
34231
34549
|
}]);
|
|
@@ -34263,7 +34581,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34263
34581
|
container.className = addClassName.trim();
|
|
34264
34582
|
}
|
|
34265
34583
|
|
|
34266
|
-
locks = [].concat(
|
|
34584
|
+
locks = [].concat(toConsumableArray_toConsumableArray(locks), [{
|
|
34267
34585
|
target: _this.lockTarget,
|
|
34268
34586
|
options: _this.options
|
|
34269
34587
|
}]);
|
|
@@ -34347,7 +34665,7 @@ var getParent = function getParent(getContainer) {
|
|
|
34347
34665
|
return getContainer();
|
|
34348
34666
|
}
|
|
34349
34667
|
|
|
34350
|
-
if (
|
|
34668
|
+
if (esm_typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
34351
34669
|
return getContainer;
|
|
34352
34670
|
}
|
|
34353
34671
|
}
|
|
@@ -34356,14 +34674,14 @@ var getParent = function getParent(getContainer) {
|
|
|
34356
34674
|
};
|
|
34357
34675
|
|
|
34358
34676
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
34359
|
-
|
|
34677
|
+
inherits_inherits(PortalWrapper, _React$Component);
|
|
34360
34678
|
|
|
34361
|
-
var _super =
|
|
34679
|
+
var _super = createSuper_createSuper(PortalWrapper);
|
|
34362
34680
|
|
|
34363
34681
|
function PortalWrapper(props) {
|
|
34364
34682
|
var _this;
|
|
34365
34683
|
|
|
34366
|
-
|
|
34684
|
+
classCallCheck_classCallCheck(this, PortalWrapper);
|
|
34367
34685
|
|
|
34368
34686
|
_this = _super.call(this, props);
|
|
34369
34687
|
_this.container = void 0;
|
|
@@ -34483,7 +34801,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34483
34801
|
return _this;
|
|
34484
34802
|
}
|
|
34485
34803
|
|
|
34486
|
-
|
|
34804
|
+
createClass_createClass(PortalWrapper, [{
|
|
34487
34805
|
key: "componentDidMount",
|
|
34488
34806
|
value: function componentDidMount() {
|
|
34489
34807
|
var _this2 = this;
|
|
@@ -34551,6 +34869,46 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34551
34869
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
34552
34870
|
|
|
34553
34871
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
34872
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
34873
|
+
|
|
34874
|
+
|
|
34875
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
34876
|
+
var keys = Object.keys(object);
|
|
34877
|
+
|
|
34878
|
+
if (Object.getOwnPropertySymbols) {
|
|
34879
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
34880
|
+
|
|
34881
|
+
if (enumerableOnly) {
|
|
34882
|
+
symbols = symbols.filter(function (sym) {
|
|
34883
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
34884
|
+
});
|
|
34885
|
+
}
|
|
34886
|
+
|
|
34887
|
+
keys.push.apply(keys, symbols);
|
|
34888
|
+
}
|
|
34889
|
+
|
|
34890
|
+
return keys;
|
|
34891
|
+
}
|
|
34892
|
+
|
|
34893
|
+
function objectSpread2_objectSpread2(target) {
|
|
34894
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
34895
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
34896
|
+
|
|
34897
|
+
if (i % 2) {
|
|
34898
|
+
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
34899
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
34900
|
+
});
|
|
34901
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
34902
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
34903
|
+
} else {
|
|
34904
|
+
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
34905
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
34906
|
+
});
|
|
34907
|
+
}
|
|
34908
|
+
}
|
|
34909
|
+
|
|
34910
|
+
return target;
|
|
34911
|
+
}
|
|
34554
34912
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
34555
34913
|
/**
|
|
34556
34914
|
* @ignore
|
|
@@ -35217,7 +35575,7 @@ function pickAttrs(props) {
|
|
|
35217
35575
|
aria: true
|
|
35218
35576
|
};
|
|
35219
35577
|
} else {
|
|
35220
|
-
mergedConfig =
|
|
35578
|
+
mergedConfig = objectSpread2_objectSpread2({}, ariaOnly);
|
|
35221
35579
|
}
|
|
35222
35580
|
|
|
35223
35581
|
var attrs = {};
|
|
@@ -35250,7 +35608,7 @@ var react_is = __webpack_require__(9864);
|
|
|
35250
35608
|
function fillRef(ref, node) {
|
|
35251
35609
|
if (typeof ref === 'function') {
|
|
35252
35610
|
ref(node);
|
|
35253
|
-
} else if (
|
|
35611
|
+
} else if (esm_typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
35254
35612
|
ref.current = node;
|
|
35255
35613
|
}
|
|
35256
35614
|
}
|
|
@@ -35360,7 +35718,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
35360
35718
|
function getTransitionName(transitionName, transitionType) {
|
|
35361
35719
|
if (!transitionName) return null;
|
|
35362
35720
|
|
|
35363
|
-
if (
|
|
35721
|
+
if (esm_typeof_typeof(transitionName) === 'object') {
|
|
35364
35722
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
35365
35723
|
return match[1].toUpperCase();
|
|
35366
35724
|
});
|
|
@@ -35653,13 +36011,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
35653
36011
|
|
|
35654
36012
|
switch (status) {
|
|
35655
36013
|
case 'appear':
|
|
35656
|
-
return _ref2 = {},
|
|
36014
|
+
return _ref2 = {}, defineProperty_defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), defineProperty_defineProperty(_ref2, STEP_START, onAppearStart), defineProperty_defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
35657
36015
|
|
|
35658
36016
|
case 'enter':
|
|
35659
|
-
return _ref3 = {},
|
|
36017
|
+
return _ref3 = {}, defineProperty_defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), defineProperty_defineProperty(_ref3, STEP_START, onEnterStart), defineProperty_defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
35660
36018
|
|
|
35661
36019
|
case 'leave':
|
|
35662
|
-
return _ref4 = {},
|
|
36020
|
+
return _ref4 = {}, defineProperty_defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), defineProperty_defineProperty(_ref4, STEP_START, onLeaveStart), defineProperty_defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
35663
36021
|
|
|
35664
36022
|
default:
|
|
35665
36023
|
return {};
|
|
@@ -35767,7 +36125,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
35767
36125
|
var mergedStyle = style;
|
|
35768
36126
|
|
|
35769
36127
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
35770
|
-
mergedStyle =
|
|
36128
|
+
mergedStyle = objectSpread2_objectSpread2({
|
|
35771
36129
|
transition: 'none'
|
|
35772
36130
|
}, mergedStyle);
|
|
35773
36131
|
}
|
|
@@ -35782,17 +36140,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
35782
36140
|
|
|
35783
36141
|
|
|
35784
36142
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
35785
|
-
|
|
36143
|
+
inherits_inherits(DomWrapper, _React$Component);
|
|
35786
36144
|
|
|
35787
|
-
var _super =
|
|
36145
|
+
var _super = createSuper_createSuper(DomWrapper);
|
|
35788
36146
|
|
|
35789
36147
|
function DomWrapper() {
|
|
35790
|
-
|
|
36148
|
+
classCallCheck_classCallCheck(this, DomWrapper);
|
|
35791
36149
|
|
|
35792
36150
|
return _super.apply(this, arguments);
|
|
35793
36151
|
}
|
|
35794
36152
|
|
|
35795
|
-
|
|
36153
|
+
createClass_createClass(DomWrapper, [{
|
|
35796
36154
|
key: "render",
|
|
35797
36155
|
value: function render() {
|
|
35798
36156
|
return this.props.children;
|
|
@@ -35828,7 +36186,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35828
36186
|
function genCSSMotion(config) {
|
|
35829
36187
|
var transitionSupport = config;
|
|
35830
36188
|
|
|
35831
|
-
if (
|
|
36189
|
+
if (esm_typeof_typeof(config) === 'object') {
|
|
35832
36190
|
transitionSupport = config.transitionSupport;
|
|
35833
36191
|
}
|
|
35834
36192
|
|
|
@@ -35886,7 +36244,7 @@ function genCSSMotion(config) {
|
|
|
35886
36244
|
|
|
35887
36245
|
var motionChildren;
|
|
35888
36246
|
|
|
35889
|
-
var mergedProps =
|
|
36247
|
+
var mergedProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, eventProps), {}, {
|
|
35890
36248
|
visible: visible
|
|
35891
36249
|
});
|
|
35892
36250
|
|
|
@@ -35896,13 +36254,13 @@ function genCSSMotion(config) {
|
|
|
35896
36254
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
35897
36255
|
// Stable children
|
|
35898
36256
|
if (mergedVisible) {
|
|
35899
|
-
motionChildren = children(
|
|
36257
|
+
motionChildren = children(objectSpread2_objectSpread2({}, mergedProps), setNodeRef);
|
|
35900
36258
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
35901
|
-
motionChildren = children(
|
|
36259
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
35902
36260
|
className: leavedClassName
|
|
35903
36261
|
}), setNodeRef);
|
|
35904
36262
|
} else if (forceRender) {
|
|
35905
|
-
motionChildren = children(
|
|
36263
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
35906
36264
|
style: {
|
|
35907
36265
|
display: 'none'
|
|
35908
36266
|
}
|
|
@@ -35924,8 +36282,8 @@ function genCSSMotion(config) {
|
|
|
35924
36282
|
statusSuffix = 'start';
|
|
35925
36283
|
}
|
|
35926
36284
|
|
|
35927
|
-
motionChildren = children(
|
|
35928
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
36285
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36286
|
+
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {}, defineProperty_defineProperty(_classNames, getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix)), statusSuffix), defineProperty_defineProperty(_classNames, motionName, typeof motionName === 'string'), _classNames)),
|
|
35929
36287
|
style: statusStyle
|
|
35930
36288
|
}), setNodeRef);
|
|
35931
36289
|
}
|
|
@@ -35938,6 +36296,41 @@ function genCSSMotion(config) {
|
|
|
35938
36296
|
return CSSMotion;
|
|
35939
36297
|
}
|
|
35940
36298
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36299
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36300
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36301
|
+
if (source == null) return {};
|
|
36302
|
+
var target = {};
|
|
36303
|
+
var sourceKeys = Object.keys(source);
|
|
36304
|
+
var key, i;
|
|
36305
|
+
|
|
36306
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
36307
|
+
key = sourceKeys[i];
|
|
36308
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36309
|
+
target[key] = source[key];
|
|
36310
|
+
}
|
|
36311
|
+
|
|
36312
|
+
return target;
|
|
36313
|
+
}
|
|
36314
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36315
|
+
|
|
36316
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36317
|
+
if (source == null) return {};
|
|
36318
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36319
|
+
var key, i;
|
|
36320
|
+
|
|
36321
|
+
if (Object.getOwnPropertySymbols) {
|
|
36322
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36323
|
+
|
|
36324
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36325
|
+
key = sourceSymbolKeys[i];
|
|
36326
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36327
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36328
|
+
target[key] = source[key];
|
|
36329
|
+
}
|
|
36330
|
+
}
|
|
36331
|
+
|
|
36332
|
+
return target;
|
|
36333
|
+
}
|
|
35941
36334
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
35942
36335
|
|
|
35943
36336
|
|
|
@@ -35948,7 +36341,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
35948
36341
|
function wrapKeyToObject(key) {
|
|
35949
36342
|
var keyObj;
|
|
35950
36343
|
|
|
35951
|
-
if (key &&
|
|
36344
|
+
if (key && esm_typeof_typeof(key) === 'object' && 'key' in key) {
|
|
35952
36345
|
keyObj = key;
|
|
35953
36346
|
} else {
|
|
35954
36347
|
keyObj = {
|
|
@@ -35956,7 +36349,7 @@ function wrapKeyToObject(key) {
|
|
|
35956
36349
|
};
|
|
35957
36350
|
}
|
|
35958
36351
|
|
|
35959
|
-
return
|
|
36352
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
35960
36353
|
key: String(keyObj.key)
|
|
35961
36354
|
});
|
|
35962
36355
|
}
|
|
@@ -35983,14 +36376,14 @@ function diffKeys() {
|
|
|
35983
36376
|
// New added keys should add before current key
|
|
35984
36377
|
if (currentIndex < i) {
|
|
35985
36378
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
35986
|
-
return
|
|
36379
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
35987
36380
|
status: STATUS_ADD
|
|
35988
36381
|
});
|
|
35989
36382
|
}));
|
|
35990
36383
|
currentIndex = i;
|
|
35991
36384
|
}
|
|
35992
36385
|
|
|
35993
|
-
list.push(
|
|
36386
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentKeyObj), {}, {
|
|
35994
36387
|
status: STATUS_KEEP
|
|
35995
36388
|
}));
|
|
35996
36389
|
currentIndex += 1;
|
|
@@ -36001,7 +36394,7 @@ function diffKeys() {
|
|
|
36001
36394
|
|
|
36002
36395
|
|
|
36003
36396
|
if (!hit) {
|
|
36004
|
-
list.push(
|
|
36397
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
36005
36398
|
status: STATUS_REMOVE
|
|
36006
36399
|
}));
|
|
36007
36400
|
}
|
|
@@ -36009,7 +36402,7 @@ function diffKeys() {
|
|
|
36009
36402
|
|
|
36010
36403
|
if (currentIndex < currentLen) {
|
|
36011
36404
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36012
|
-
return
|
|
36405
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
36013
36406
|
status: STATUS_ADD
|
|
36014
36407
|
});
|
|
36015
36408
|
}));
|
|
@@ -36070,14 +36463,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36070
36463
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36071
36464
|
|
|
36072
36465
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36073
|
-
|
|
36466
|
+
inherits_inherits(CSSMotionList, _React$Component);
|
|
36074
36467
|
|
|
36075
|
-
var _super =
|
|
36468
|
+
var _super = createSuper_createSuper(CSSMotionList);
|
|
36076
36469
|
|
|
36077
36470
|
function CSSMotionList() {
|
|
36078
36471
|
var _this;
|
|
36079
36472
|
|
|
36080
|
-
|
|
36473
|
+
classCallCheck_classCallCheck(this, CSSMotionList);
|
|
36081
36474
|
|
|
36082
36475
|
_this = _super.apply(this, arguments);
|
|
36083
36476
|
_this.state = {
|
|
@@ -36090,7 +36483,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36090
36483
|
return {
|
|
36091
36484
|
keyEntities: keyEntities.map(function (entity) {
|
|
36092
36485
|
if (entity.key !== removeKey) return entity;
|
|
36093
|
-
return
|
|
36486
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, entity), {}, {
|
|
36094
36487
|
status: STATUS_REMOVED
|
|
36095
36488
|
});
|
|
36096
36489
|
})
|
|
@@ -36101,7 +36494,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36101
36494
|
return _this;
|
|
36102
36495
|
}
|
|
36103
36496
|
|
|
36104
|
-
|
|
36497
|
+
createClass_createClass(CSSMotionList, [{
|
|
36105
36498
|
key: "render",
|
|
36106
36499
|
value: function render() {
|
|
36107
36500
|
var _this2 = this;
|
|
@@ -36112,7 +36505,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36112
36505
|
component = _this$props.component,
|
|
36113
36506
|
children = _this$props.children,
|
|
36114
36507
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36115
|
-
restProps =
|
|
36508
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36116
36509
|
|
|
36117
36510
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36118
36511
|
var motionProps = {};
|
|
@@ -36123,10 +36516,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36123
36516
|
delete restProps.keys;
|
|
36124
36517
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36125
36518
|
var status = _ref2.status,
|
|
36126
|
-
eventProps =
|
|
36519
|
+
eventProps = objectWithoutProperties_objectWithoutProperties(_ref2, ["status"]);
|
|
36127
36520
|
|
|
36128
36521
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36129
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
36522
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, esm_extends_extends({}, motionProps, {
|
|
36130
36523
|
key: eventProps.key,
|
|
36131
36524
|
visible: visible,
|
|
36132
36525
|
eventProps: eventProps,
|
|
@@ -36200,8 +36593,8 @@ function Mask(props) {
|
|
|
36200
36593
|
}, function (_ref) {
|
|
36201
36594
|
var motionClassName = _ref.className,
|
|
36202
36595
|
motionStyle = _ref.style;
|
|
36203
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36204
|
-
style:
|
|
36596
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36597
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), style),
|
|
36205
36598
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36206
36599
|
}, maskProps));
|
|
36207
36600
|
});
|
|
@@ -36384,7 +36777,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36384
36777
|
|
|
36385
36778
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
36386
36779
|
className: "".concat(prefixCls, "-content")
|
|
36387
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36780
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36388
36781
|
className: "".concat(prefixCls, "-body"),
|
|
36389
36782
|
style: bodyStyle
|
|
36390
36783
|
}, bodyProps), children), footerNode);
|
|
@@ -36404,7 +36797,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36404
36797
|
key: "dialog-element",
|
|
36405
36798
|
role: "document",
|
|
36406
36799
|
ref: motionRef,
|
|
36407
|
-
style:
|
|
36800
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), style), contentStyle),
|
|
36408
36801
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
36409
36802
|
onMouseDown: onMouseDown,
|
|
36410
36803
|
onMouseUp: onMouseUp
|
|
@@ -36586,7 +36979,7 @@ function Dialog(props) {
|
|
|
36586
36979
|
return function () {};
|
|
36587
36980
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
36588
36981
|
|
|
36589
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36982
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36590
36983
|
className: "".concat(prefixCls, "-root")
|
|
36591
36984
|
}, pickAttrs(props, {
|
|
36592
36985
|
data: true
|
|
@@ -36594,11 +36987,11 @@ function Dialog(props) {
|
|
|
36594
36987
|
prefixCls: prefixCls,
|
|
36595
36988
|
visible: mask && visible,
|
|
36596
36989
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
36597
|
-
style:
|
|
36990
|
+
style: objectSpread2_objectSpread2({
|
|
36598
36991
|
zIndex: zIndex
|
|
36599
36992
|
}, maskStyle),
|
|
36600
36993
|
maskProps: maskProps
|
|
36601
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36994
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36602
36995
|
tabIndex: -1,
|
|
36603
36996
|
onKeyDown: onWrapperKeyDown,
|
|
36604
36997
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -36606,12 +36999,12 @@ function Dialog(props) {
|
|
|
36606
36999
|
onClick: onWrapperClick,
|
|
36607
37000
|
role: "dialog",
|
|
36608
37001
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
36609
|
-
style:
|
|
37002
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
36610
37003
|
zIndex: zIndex
|
|
36611
37004
|
}, wrapStyle), {}, {
|
|
36612
37005
|
display: !animatedVisible ? 'none' : null
|
|
36613
37006
|
})
|
|
36614
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
37007
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, esm_extends_extends({}, props, {
|
|
36615
37008
|
onMouseDown: onContentMouseDown,
|
|
36616
37009
|
onMouseUp: onContentMouseUp,
|
|
36617
37010
|
ref: contentRef,
|
|
@@ -36659,7 +37052,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
36659
37052
|
}, [visible]); // 渲染在当前 dom 里;
|
|
36660
37053
|
|
|
36661
37054
|
if (getContainer === false) {
|
|
36662
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37055
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
36663
37056
|
getOpenCount: function getOpenCount() {
|
|
36664
37057
|
return 2;
|
|
36665
37058
|
} // 不对 body 做任何操作。。
|
|
@@ -36677,7 +37070,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
36677
37070
|
forceRender: forceRender,
|
|
36678
37071
|
getContainer: getContainer
|
|
36679
37072
|
}, function (childProps) {
|
|
36680
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37073
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
36681
37074
|
destroyOnClose: destroyOnClose,
|
|
36682
37075
|
afterClose: function afterClose() {
|
|
36683
37076
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -36712,8 +37105,8 @@ function getConfirmLocale() {
|
|
|
36712
37105
|
|
|
36713
37106
|
|
|
36714
37107
|
|
|
36715
|
-
var UnreachableException = /*#__PURE__*/
|
|
36716
|
-
|
|
37108
|
+
var UnreachableException = /*#__PURE__*/createClass_createClass(function UnreachableException(value) {
|
|
37109
|
+
classCallCheck_classCallCheck(this, UnreachableException);
|
|
36717
37110
|
|
|
36718
37111
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
36719
37112
|
});
|
|
@@ -36776,8 +37169,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
36776
37169
|
console.warn(new UnreachableException(size).error);
|
|
36777
37170
|
}
|
|
36778
37171
|
|
|
36779
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
36780
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37172
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37173
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, others, {
|
|
36781
37174
|
className: classes
|
|
36782
37175
|
}));
|
|
36783
37176
|
});
|
|
@@ -36848,14 +37241,14 @@ function isNotGrey(color) {
|
|
|
36848
37241
|
}
|
|
36849
37242
|
|
|
36850
37243
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
36851
|
-
|
|
37244
|
+
inherits_inherits(Wave, _React$Component);
|
|
36852
37245
|
|
|
36853
|
-
var _super =
|
|
37246
|
+
var _super = createSuper_createSuper(Wave);
|
|
36854
37247
|
|
|
36855
37248
|
function Wave() {
|
|
36856
37249
|
var _this;
|
|
36857
37250
|
|
|
36858
|
-
|
|
37251
|
+
classCallCheck_classCallCheck(this, Wave);
|
|
36859
37252
|
|
|
36860
37253
|
_this = _super.apply(this, arguments);
|
|
36861
37254
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -36875,7 +37268,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
36875
37268
|
|
|
36876
37269
|
_this.extraNode = document.createElement('div');
|
|
36877
37270
|
|
|
36878
|
-
var _assertThisInitialize =
|
|
37271
|
+
var _assertThisInitialize = assertThisInitialized_assertThisInitialized(_this),
|
|
36879
37272
|
extraNode = _assertThisInitialize.extraNode;
|
|
36880
37273
|
|
|
36881
37274
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -36982,7 +37375,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
36982
37375
|
return _this;
|
|
36983
37376
|
}
|
|
36984
37377
|
|
|
36985
|
-
|
|
37378
|
+
createClass_createClass(Wave, [{
|
|
36986
37379
|
key: "componentDidMount",
|
|
36987
37380
|
value: function componentDidMount() {
|
|
36988
37381
|
var node = this.containerRef.current;
|
|
@@ -37209,7 +37602,7 @@ function spaceChildren(children, needInserted) {
|
|
|
37209
37602
|
var isPrevChildPure = false;
|
|
37210
37603
|
var childList = [];
|
|
37211
37604
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
37212
|
-
var type =
|
|
37605
|
+
var type = esm_typeof_typeof(child);
|
|
37213
37606
|
|
|
37214
37607
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
37215
37608
|
|
|
@@ -37309,7 +37702,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37309
37702
|
}; // =============== Update Loading ===============
|
|
37310
37703
|
|
|
37311
37704
|
|
|
37312
|
-
var loadingOrDelay =
|
|
37705
|
+
var loadingOrDelay = esm_typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
37313
37706
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
37314
37707
|
clearTimeout(delayTimeoutRef.current);
|
|
37315
37708
|
|
|
@@ -37349,7 +37742,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37349
37742
|
var sizeFullname = customizeSize || size;
|
|
37350
37743
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
37351
37744
|
var iconType = innerLoading ? 'loading' : icon;
|
|
37352
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37745
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(type), type), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(shape), shape !== 'default' && shape), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-icon-only"), !children && children !== 0 && !!iconType), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-background-ghost"), ghost && !isUnborderedButtonType(type)), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-loading"), innerLoading), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-two-chinese-chars"), hasTwoCNChar && autoInsertSpace), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-block"), block), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-dangerous"), !!danger), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37353
37746
|
var iconNode;
|
|
37354
37747
|
|
|
37355
37748
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -37368,14 +37761,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37368
37761
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
37369
37762
|
|
|
37370
37763
|
if (linkButtonRestProps.href !== undefined) {
|
|
37371
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
37764
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", esm_extends_extends({}, linkButtonRestProps, {
|
|
37372
37765
|
className: classes,
|
|
37373
37766
|
onClick: handleClick,
|
|
37374
37767
|
ref: buttonRef
|
|
37375
37768
|
}), iconNode, kids);
|
|
37376
37769
|
}
|
|
37377
37770
|
|
|
37378
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
37771
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", esm_extends_extends({}, rest, {
|
|
37379
37772
|
type: htmlType,
|
|
37380
37773
|
className: classes,
|
|
37381
37774
|
onClick: handleClick,
|
|
@@ -37553,9 +37946,9 @@ var Modal = function Modal(props) {
|
|
|
37553
37946
|
okType = props.okType,
|
|
37554
37947
|
cancelText = props.cancelText,
|
|
37555
37948
|
confirmLoading = props.confirmLoading;
|
|
37556
|
-
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,
|
|
37949
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, esm_extends_extends({
|
|
37557
37950
|
onClick: handleCancel
|
|
37558
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
37951
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, esm_extends_extends({}, convertLegacyProps(okType), {
|
|
37559
37952
|
loading: confirmLoading,
|
|
37560
37953
|
onClick: handleOk
|
|
37561
37954
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -37590,8 +37983,8 @@ var Modal = function Modal(props) {
|
|
|
37590
37983
|
type: "close",
|
|
37591
37984
|
className: "".concat(prefixCls, "-close-icon")
|
|
37592
37985
|
}));
|
|
37593
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
37594
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
37986
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
37987
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, esm_extends_extends({}, restProps, {
|
|
37595
37988
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
37596
37989
|
prefixCls: prefixCls,
|
|
37597
37990
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -37717,7 +38110,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
37717
38110
|
children = props.children,
|
|
37718
38111
|
prefixCls = props.prefixCls,
|
|
37719
38112
|
buttonProps = props.buttonProps;
|
|
37720
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
38113
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, esm_extends_extends({}, convertLegacyProps(type), {
|
|
37721
38114
|
onClick: onClick,
|
|
37722
38115
|
loading: loading,
|
|
37723
38116
|
prefixCls: prefixCls
|
|
@@ -39234,7 +39627,7 @@ function get(entity, path) {
|
|
|
39234
39627
|
|
|
39235
39628
|
|
|
39236
39629
|
function _toArray(arr) {
|
|
39237
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
39630
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
39238
39631
|
}
|
|
39239
39632
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
39240
39633
|
|
|
@@ -39256,9 +39649,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
39256
39649
|
if (!entity && typeof path === 'number') {
|
|
39257
39650
|
clone = [];
|
|
39258
39651
|
} else if (Array.isArray(entity)) {
|
|
39259
|
-
clone =
|
|
39652
|
+
clone = toConsumableArray_toConsumableArray(entity);
|
|
39260
39653
|
} else {
|
|
39261
|
-
clone =
|
|
39654
|
+
clone = objectSpread2_objectSpread2({}, entity);
|
|
39262
39655
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
39263
39656
|
|
|
39264
39657
|
|
|
@@ -39322,7 +39715,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
39322
39715
|
}
|
|
39323
39716
|
|
|
39324
39717
|
function isObject(obj) {
|
|
39325
|
-
return
|
|
39718
|
+
return esm_typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
39326
39719
|
}
|
|
39327
39720
|
/**
|
|
39328
39721
|
* Copy values into store and return a new values object
|
|
@@ -39331,7 +39724,7 @@ function isObject(obj) {
|
|
|
39331
39724
|
|
|
39332
39725
|
|
|
39333
39726
|
function internalSetValues(store, values) {
|
|
39334
|
-
var newStore = Array.isArray(store) ?
|
|
39727
|
+
var newStore = Array.isArray(store) ? toConsumableArray_toConsumableArray(store) : objectSpread2_objectSpread2({}, store);
|
|
39335
39728
|
|
|
39336
39729
|
if (!values) {
|
|
39337
39730
|
return newStore;
|
|
@@ -39374,14 +39767,14 @@ function isSimilar(source, target) {
|
|
|
39374
39767
|
return false;
|
|
39375
39768
|
}
|
|
39376
39769
|
|
|
39377
|
-
if (!source || !target ||
|
|
39770
|
+
if (!source || !target || esm_typeof_typeof(source) !== 'object' || esm_typeof_typeof(target) !== 'object') {
|
|
39378
39771
|
return false;
|
|
39379
39772
|
}
|
|
39380
39773
|
|
|
39381
39774
|
var sourceKeys = Object.keys(source);
|
|
39382
39775
|
var targetKeys = Object.keys(target);
|
|
39383
|
-
var keys = new Set([].concat(
|
|
39384
|
-
return
|
|
39776
|
+
var keys = new Set([].concat(toConsumableArray_toConsumableArray(sourceKeys), toConsumableArray_toConsumableArray(targetKeys)));
|
|
39777
|
+
return toConsumableArray_toConsumableArray(keys).every(function (key) {
|
|
39385
39778
|
var sourceValue = source[key];
|
|
39386
39779
|
var targetValue = target[key];
|
|
39387
39780
|
|
|
@@ -39424,12 +39817,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
39424
39817
|
|
|
39425
39818
|
if (diff > 0) {
|
|
39426
39819
|
// move left
|
|
39427
|
-
return [].concat(
|
|
39820
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, toIndex)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
39428
39821
|
}
|
|
39429
39822
|
|
|
39430
39823
|
if (diff < 0) {
|
|
39431
39824
|
// move right
|
|
39432
|
-
return [].concat(
|
|
39825
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex + 1, length)));
|
|
39433
39826
|
}
|
|
39434
39827
|
|
|
39435
39828
|
return array;
|
|
@@ -39469,13 +39862,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
39469
39862
|
|
|
39470
39863
|
|
|
39471
39864
|
function _validateRule() {
|
|
39472
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39865
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
39473
39866
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
39474
|
-
return
|
|
39867
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
39475
39868
|
while (1) {
|
|
39476
39869
|
switch (_context2.prev = _context2.next) {
|
|
39477
39870
|
case 0:
|
|
39478
|
-
cloneRule =
|
|
39871
|
+
cloneRule = objectSpread2_objectSpread2({}, rule); // Bug of `async-validator`
|
|
39479
39872
|
// https://github.com/react-component/field-form/issues/316
|
|
39480
39873
|
// https://github.com/react-component/field-form/issues/313
|
|
39481
39874
|
|
|
@@ -39488,13 +39881,13 @@ function _validateRule() {
|
|
|
39488
39881
|
delete cloneRule.defaultField;
|
|
39489
39882
|
}
|
|
39490
39883
|
|
|
39491
|
-
validator = new AsyncValidator(
|
|
39884
|
+
validator = new AsyncValidator(defineProperty_defineProperty({}, name, [cloneRule]));
|
|
39492
39885
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
39493
39886
|
validator.messages(messages);
|
|
39494
39887
|
result = [];
|
|
39495
39888
|
_context2.prev = 8;
|
|
39496
39889
|
_context2.next = 11;
|
|
39497
|
-
return Promise.resolve(validator.validate(
|
|
39890
|
+
return Promise.resolve(validator.validate(defineProperty_defineProperty({}, name, value), objectSpread2_objectSpread2({}, options)));
|
|
39498
39891
|
|
|
39499
39892
|
case 11:
|
|
39500
39893
|
_context2.next = 16;
|
|
@@ -39534,12 +39927,12 @@ function _validateRule() {
|
|
|
39534
39927
|
case 19:
|
|
39535
39928
|
subResults = _context2.sent;
|
|
39536
39929
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
39537
|
-
return [].concat(
|
|
39930
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), toConsumableArray_toConsumableArray(errors));
|
|
39538
39931
|
}, []));
|
|
39539
39932
|
|
|
39540
39933
|
case 21:
|
|
39541
39934
|
// Replace message with variables
|
|
39542
|
-
kv =
|
|
39935
|
+
kv = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rule), {}, {
|
|
39543
39936
|
name: name,
|
|
39544
39937
|
enum: (rule.enum || []).join(', ')
|
|
39545
39938
|
}, messageVariables);
|
|
@@ -39568,7 +39961,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
39568
39961
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
39569
39962
|
var originValidatorFunc = currentRule.validator;
|
|
39570
39963
|
|
|
39571
|
-
var cloneRule =
|
|
39964
|
+
var cloneRule = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentRule), {}, {
|
|
39572
39965
|
ruleIndex: ruleIndex
|
|
39573
39966
|
}); // Replace validator if needed
|
|
39574
39967
|
|
|
@@ -39636,9 +40029,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
39636
40029
|
if (validateFirst === true) {
|
|
39637
40030
|
// >>>>> Validate by serialization
|
|
39638
40031
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
39639
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40032
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(resolve, reject) {
|
|
39640
40033
|
var i, rule, errors;
|
|
39641
|
-
return
|
|
40034
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
39642
40035
|
while (1) {
|
|
39643
40036
|
switch (_context.prev = _context.next) {
|
|
39644
40037
|
case 0:
|
|
@@ -39717,15 +40110,15 @@ function finishOnAllFailed(_x8) {
|
|
|
39717
40110
|
}
|
|
39718
40111
|
|
|
39719
40112
|
function _finishOnAllFailed() {
|
|
39720
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39721
|
-
return
|
|
40113
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(rulePromises) {
|
|
40114
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
39722
40115
|
while (1) {
|
|
39723
40116
|
switch (_context3.prev = _context3.next) {
|
|
39724
40117
|
case 0:
|
|
39725
40118
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
39726
40119
|
var _ref5;
|
|
39727
40120
|
|
|
39728
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
40121
|
+
var errors = (_ref5 = []).concat.apply(_ref5, toConsumableArray_toConsumableArray(errorsList));
|
|
39729
40122
|
|
|
39730
40123
|
return errors;
|
|
39731
40124
|
}));
|
|
@@ -39745,9 +40138,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
39745
40138
|
}
|
|
39746
40139
|
|
|
39747
40140
|
function _finishOnFirstFailed() {
|
|
39748
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40141
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee4(rulePromises) {
|
|
39749
40142
|
var count;
|
|
39750
|
-
return
|
|
40143
|
+
return runtime_regenerator_default().wrap(function _callee4$(_context4) {
|
|
39751
40144
|
while (1) {
|
|
39752
40145
|
switch (_context4.prev = _context4.next) {
|
|
39753
40146
|
case 0:
|
|
@@ -39810,9 +40203,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
39810
40203
|
|
|
39811
40204
|
|
|
39812
40205
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
39813
|
-
|
|
40206
|
+
inherits_inherits(Field, _React$Component);
|
|
39814
40207
|
|
|
39815
|
-
var _super =
|
|
40208
|
+
var _super = createSuper_createSuper(Field);
|
|
39816
40209
|
|
|
39817
40210
|
/**
|
|
39818
40211
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -39828,7 +40221,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
39828
40221
|
function Field(props) {
|
|
39829
40222
|
var _this;
|
|
39830
40223
|
|
|
39831
|
-
|
|
40224
|
+
classCallCheck_classCallCheck(this, Field);
|
|
39832
40225
|
|
|
39833
40226
|
_this = _super.call(this, props); // Register on init
|
|
39834
40227
|
|
|
@@ -39863,7 +40256,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
39863
40256
|
fieldContext = _this$props2.fieldContext;
|
|
39864
40257
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
39865
40258
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
39866
|
-
return name !== undefined ? [].concat(
|
|
40259
|
+
return name !== undefined ? [].concat(toConsumableArray_toConsumableArray(prefixName), toConsumableArray_toConsumableArray(name)) : [];
|
|
39867
40260
|
};
|
|
39868
40261
|
|
|
39869
40262
|
_this.getRules = function () {
|
|
@@ -39896,7 +40289,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
39896
40289
|
|
|
39897
40290
|
_this.triggerMetaEvent = function (destroy) {
|
|
39898
40291
|
var onMetaChange = _this.props.onMetaChange;
|
|
39899
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
40292
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getMeta()), {}, {
|
|
39900
40293
|
destroy: destroy
|
|
39901
40294
|
}));
|
|
39902
40295
|
};
|
|
@@ -40085,9 +40478,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40085
40478
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
40086
40479
|
|
|
40087
40480
|
if (warningOnly) {
|
|
40088
|
-
nextWarnings.push.apply(nextWarnings,
|
|
40481
|
+
nextWarnings.push.apply(nextWarnings, toConsumableArray_toConsumableArray(errors));
|
|
40089
40482
|
} else {
|
|
40090
|
-
nextErrors.push.apply(nextErrors,
|
|
40483
|
+
nextErrors.push.apply(nextErrors, toConsumableArray_toConsumableArray(errors));
|
|
40091
40484
|
}
|
|
40092
40485
|
});
|
|
40093
40486
|
_this.errors = nextErrors;
|
|
@@ -40178,7 +40571,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40178
40571
|
if (typeof children === 'function') {
|
|
40179
40572
|
var meta = _this.getMeta();
|
|
40180
40573
|
|
|
40181
|
-
return
|
|
40574
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
40182
40575
|
isFunction: true
|
|
40183
40576
|
});
|
|
40184
40577
|
} // Filed element only
|
|
@@ -40230,13 +40623,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40230
40623
|
var value = _this.getValue();
|
|
40231
40624
|
|
|
40232
40625
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
40233
|
-
return
|
|
40626
|
+
return defineProperty_defineProperty({}, valuePropName, val);
|
|
40234
40627
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40235
40628
|
|
|
40236
40629
|
|
|
40237
40630
|
var originTriggerFunc = childProps[trigger];
|
|
40238
40631
|
|
|
40239
|
-
var control =
|
|
40632
|
+
var control = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
40240
40633
|
|
|
40241
40634
|
|
|
40242
40635
|
control[trigger] = function () {
|
|
@@ -40307,13 +40700,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40307
40700
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
40308
40701
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
40309
40702
|
|
|
40310
|
-
initEntityValue(
|
|
40703
|
+
initEntityValue(assertThisInitialized_assertThisInitialized(_this));
|
|
40311
40704
|
}
|
|
40312
40705
|
|
|
40313
40706
|
return _this;
|
|
40314
40707
|
}
|
|
40315
40708
|
|
|
40316
|
-
|
|
40709
|
+
createClass_createClass(Field, [{
|
|
40317
40710
|
key: "componentDidMount",
|
|
40318
40711
|
value: function componentDidMount() {
|
|
40319
40712
|
var _this$props7 = this.props,
|
|
@@ -40387,7 +40780,7 @@ Field.defaultProps = {
|
|
|
40387
40780
|
|
|
40388
40781
|
function WrapperField(_ref5) {
|
|
40389
40782
|
var name = _ref5.name,
|
|
40390
|
-
restProps =
|
|
40783
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref5, Field_excluded);
|
|
40391
40784
|
|
|
40392
40785
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
40393
40786
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -40401,7 +40794,7 @@ function WrapperField(_ref5) {
|
|
|
40401
40794
|
|
|
40402
40795
|
if (false) {}
|
|
40403
40796
|
|
|
40404
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
40797
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, esm_extends_extends({
|
|
40405
40798
|
key: key,
|
|
40406
40799
|
name: namePath
|
|
40407
40800
|
}, restProps, {
|
|
@@ -40438,7 +40831,7 @@ var List = function List(_ref) {
|
|
|
40438
40831
|
}
|
|
40439
40832
|
|
|
40440
40833
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
40441
|
-
var prefixName = [].concat(
|
|
40834
|
+
var prefixName = [].concat(toConsumableArray_toConsumableArray(parentPrefixName), toConsumableArray_toConsumableArray(getNamePath(name)));
|
|
40442
40835
|
|
|
40443
40836
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
40444
40837
|
var source = _ref2.source;
|
|
@@ -40451,7 +40844,7 @@ var List = function List(_ref) {
|
|
|
40451
40844
|
};
|
|
40452
40845
|
|
|
40453
40846
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
40454
|
-
value:
|
|
40847
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, context), {}, {
|
|
40455
40848
|
prefixName: prefixName
|
|
40456
40849
|
})
|
|
40457
40850
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -40482,13 +40875,13 @@ var List = function List(_ref) {
|
|
|
40482
40875
|
var newValue = getNewValue();
|
|
40483
40876
|
|
|
40484
40877
|
if (index >= 0 && index <= newValue.length) {
|
|
40485
|
-
keyManager.keys = [].concat(
|
|
40486
|
-
onChange([].concat(
|
|
40878
|
+
keyManager.keys = [].concat(toConsumableArray_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], toConsumableArray_toConsumableArray(keyManager.keys.slice(index)));
|
|
40879
|
+
onChange([].concat(toConsumableArray_toConsumableArray(newValue.slice(0, index)), [defaultValue], toConsumableArray_toConsumableArray(newValue.slice(index))));
|
|
40487
40880
|
} else {
|
|
40488
40881
|
if (false) {}
|
|
40489
40882
|
|
|
40490
|
-
keyManager.keys = [].concat(
|
|
40491
|
-
onChange([].concat(
|
|
40883
|
+
keyManager.keys = [].concat(toConsumableArray_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
40884
|
+
onChange([].concat(toConsumableArray_toConsumableArray(newValue), [defaultValue]));
|
|
40492
40885
|
}
|
|
40493
40886
|
|
|
40494
40887
|
keyManager.id += 1;
|
|
@@ -40597,7 +40990,7 @@ var SPLIT = '__@field_split__';
|
|
|
40597
40990
|
|
|
40598
40991
|
function normalize(namePath) {
|
|
40599
40992
|
return namePath.map(function (cell) {
|
|
40600
|
-
return "".concat(
|
|
40993
|
+
return "".concat(esm_typeof_typeof(cell), ":").concat(cell);
|
|
40601
40994
|
}) // Magic split
|
|
40602
40995
|
.join(SPLIT);
|
|
40603
40996
|
}
|
|
@@ -40608,12 +41001,12 @@ function normalize(namePath) {
|
|
|
40608
41001
|
|
|
40609
41002
|
var NameMap = /*#__PURE__*/function () {
|
|
40610
41003
|
function NameMap() {
|
|
40611
|
-
|
|
41004
|
+
classCallCheck_classCallCheck(this, NameMap);
|
|
40612
41005
|
|
|
40613
41006
|
this.kvs = new Map();
|
|
40614
41007
|
}
|
|
40615
41008
|
|
|
40616
|
-
|
|
41009
|
+
createClass_createClass(NameMap, [{
|
|
40617
41010
|
key: "set",
|
|
40618
41011
|
value: function set(key, value) {
|
|
40619
41012
|
this.kvs.set(normalize(key), value);
|
|
@@ -40644,7 +41037,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
40644
41037
|
}, {
|
|
40645
41038
|
key: "map",
|
|
40646
41039
|
value: function map(callback) {
|
|
40647
|
-
return
|
|
41040
|
+
return toConsumableArray_toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
40648
41041
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
40649
41042
|
key = _ref2[0],
|
|
40650
41043
|
value = _ref2[1];
|
|
@@ -40698,7 +41091,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
40698
41091
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
40699
41092
|
var _this = this;
|
|
40700
41093
|
|
|
40701
|
-
|
|
41094
|
+
classCallCheck_classCallCheck(this, FormStore);
|
|
40702
41095
|
|
|
40703
41096
|
this.formHooked = false;
|
|
40704
41097
|
this.forceRootUpdate = void 0;
|
|
@@ -40958,7 +41351,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
40958
41351
|
return fieldNamePath[i] === nameUnit;
|
|
40959
41352
|
})) {
|
|
40960
41353
|
map.update(shortNamePath, function (list) {
|
|
40961
|
-
return [].concat(
|
|
41354
|
+
return [].concat(toConsumableArray_toConsumableArray(list), [field]);
|
|
40962
41355
|
});
|
|
40963
41356
|
}
|
|
40964
41357
|
});
|
|
@@ -41049,7 +41442,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41049
41442
|
|
|
41050
41443
|
|
|
41051
41444
|
if (!info.skipExist || originValue === undefined) {
|
|
41052
|
-
_this.store = setValue(_this.store, namePath,
|
|
41445
|
+
_this.store = setValue(_this.store, namePath, toConsumableArray_toConsumableArray(records)[0].value);
|
|
41053
41446
|
}
|
|
41054
41447
|
}
|
|
41055
41448
|
}
|
|
@@ -41069,7 +41462,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41069
41462
|
if (records) {
|
|
41070
41463
|
var _requiredFieldEntitie;
|
|
41071
41464
|
|
|
41072
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
41465
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, toConsumableArray_toConsumableArray(toConsumableArray_toConsumableArray(records).map(function (r) {
|
|
41073
41466
|
return r.entity;
|
|
41074
41467
|
})));
|
|
41075
41468
|
}
|
|
@@ -41122,7 +41515,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41122
41515
|
fields.forEach(function (fieldData) {
|
|
41123
41516
|
var name = fieldData.name,
|
|
41124
41517
|
errors = fieldData.errors,
|
|
41125
|
-
data =
|
|
41518
|
+
data = objectWithoutProperties_objectWithoutProperties(fieldData, useForm_excluded);
|
|
41126
41519
|
|
|
41127
41520
|
var namePath = getNamePath(name); // Value
|
|
41128
41521
|
|
|
@@ -41144,7 +41537,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41144
41537
|
var namePath = field.getNamePath();
|
|
41145
41538
|
var meta = field.getMeta();
|
|
41146
41539
|
|
|
41147
|
-
var fieldData =
|
|
41540
|
+
var fieldData = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, meta), {}, {
|
|
41148
41541
|
name: namePath,
|
|
41149
41542
|
value: _this.getFieldValue(namePath)
|
|
41150
41543
|
});
|
|
@@ -41243,7 +41636,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41243
41636
|
|
|
41244
41637
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
41245
41638
|
if (_this.subscribable) {
|
|
41246
|
-
var mergedInfo =
|
|
41639
|
+
var mergedInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
41247
41640
|
store: _this.getFieldsValue(true)
|
|
41248
41641
|
});
|
|
41249
41642
|
|
|
@@ -41276,7 +41669,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41276
41669
|
|
|
41277
41670
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
41278
41671
|
type: 'dependenciesUpdate',
|
|
41279
|
-
relatedFields: [namePath].concat(
|
|
41672
|
+
relatedFields: [namePath].concat(toConsumableArray_toConsumableArray(childrenFields))
|
|
41280
41673
|
}); // trigger callback function
|
|
41281
41674
|
|
|
41282
41675
|
|
|
@@ -41287,7 +41680,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41287
41680
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
41288
41681
|
}
|
|
41289
41682
|
|
|
41290
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
41683
|
+
_this.triggerOnFieldsChange([namePath].concat(toConsumableArray_toConsumableArray(childrenFields)));
|
|
41291
41684
|
};
|
|
41292
41685
|
|
|
41293
41686
|
this.setFieldsValue = function (store) {
|
|
@@ -41415,8 +41808,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41415
41808
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
41416
41809
|
|
|
41417
41810
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
41418
|
-
var promise = field.validateRules(
|
|
41419
|
-
validateMessages:
|
|
41811
|
+
var promise = field.validateRules(objectSpread2_objectSpread2({
|
|
41812
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
41420
41813
|
}, options)); // Wrap promise with field
|
|
41421
41814
|
|
|
41422
41815
|
promiseList.push(promise.then(function () {
|
|
@@ -41433,9 +41826,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41433
41826
|
errors = _ref5.errors;
|
|
41434
41827
|
|
|
41435
41828
|
if (warningOnly) {
|
|
41436
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
41829
|
+
mergedWarnings.push.apply(mergedWarnings, toConsumableArray_toConsumableArray(errors));
|
|
41437
41830
|
} else {
|
|
41438
|
-
mergedErrors.push.apply(mergedErrors,
|
|
41831
|
+
mergedErrors.push.apply(mergedErrors, toConsumableArray_toConsumableArray(errors));
|
|
41439
41832
|
}
|
|
41440
41833
|
});
|
|
41441
41834
|
|
|
@@ -41566,8 +41959,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
41566
41959
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
41567
41960
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
41568
41961
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
41569
|
-
value:
|
|
41570
|
-
validateMessages:
|
|
41962
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext), {}, {
|
|
41963
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
41571
41964
|
// =========================================================
|
|
41572
41965
|
// = Global Form Control =
|
|
41573
41966
|
// =========================================================
|
|
@@ -41593,13 +41986,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
41593
41986
|
},
|
|
41594
41987
|
registerForm: function registerForm(name, form) {
|
|
41595
41988
|
if (name) {
|
|
41596
|
-
formsRef.current =
|
|
41989
|
+
formsRef.current = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formsRef.current), {}, defineProperty_defineProperty({}, name, form));
|
|
41597
41990
|
}
|
|
41598
41991
|
|
|
41599
41992
|
formContext.registerForm(name, form);
|
|
41600
41993
|
},
|
|
41601
41994
|
unregisterForm: function unregisterForm(name) {
|
|
41602
|
-
var newForms =
|
|
41995
|
+
var newForms = objectSpread2_objectSpread2({}, formsRef.current);
|
|
41603
41996
|
|
|
41604
41997
|
delete newForms[name];
|
|
41605
41998
|
formsRef.current = newForms;
|
|
@@ -41639,7 +42032,7 @@ var Form = function Form(_ref, ref) {
|
|
|
41639
42032
|
_onFieldsChange = _ref.onFieldsChange,
|
|
41640
42033
|
_onFinish = _ref.onFinish,
|
|
41641
42034
|
onFinishFailed = _ref.onFinishFailed,
|
|
41642
|
-
restProps =
|
|
42035
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, Form_excluded);
|
|
41643
42036
|
|
|
41644
42037
|
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:
|
|
41645
42038
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -41667,7 +42060,7 @@ var Form = function Form(_ref, ref) {
|
|
|
41667
42060
|
};
|
|
41668
42061
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
41669
42062
|
|
|
41670
|
-
setValidateMessages(
|
|
42063
|
+
setValidateMessages(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
41671
42064
|
setCallbacks({
|
|
41672
42065
|
onValuesChange: onValuesChange,
|
|
41673
42066
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -41720,7 +42113,7 @@ var Form = function Form(_ref, ref) {
|
|
|
41720
42113
|
prevFieldsRef.current = fields;
|
|
41721
42114
|
}, [fields, formInstance]);
|
|
41722
42115
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
41723
|
-
return
|
|
42116
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formInstance), {}, {
|
|
41724
42117
|
validateTrigger: validateTrigger
|
|
41725
42118
|
});
|
|
41726
42119
|
}, [formInstance, validateTrigger]);
|
|
@@ -41732,7 +42125,7 @@ var Form = function Form(_ref, ref) {
|
|
|
41732
42125
|
return wrapperNode;
|
|
41733
42126
|
}
|
|
41734
42127
|
|
|
41735
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
42128
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, restProps, {
|
|
41736
42129
|
onSubmit: function onSubmit(event) {
|
|
41737
42130
|
event.preventDefault();
|
|
41738
42131
|
event.stopPropagation();
|
|
@@ -41914,14 +42307,14 @@ LocaleProvider.defaultProps = {
|
|
|
41914
42307
|
|
|
41915
42308
|
|
|
41916
42309
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
41917
|
-
|
|
42310
|
+
inherits_inherits(Notice, _Component);
|
|
41918
42311
|
|
|
41919
|
-
var _super =
|
|
42312
|
+
var _super = createSuper_createSuper(Notice);
|
|
41920
42313
|
|
|
41921
42314
|
function Notice() {
|
|
41922
42315
|
var _this;
|
|
41923
42316
|
|
|
41924
|
-
|
|
42317
|
+
classCallCheck_classCallCheck(this, Notice);
|
|
41925
42318
|
|
|
41926
42319
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
41927
42320
|
args[_key] = arguments[_key];
|
|
@@ -41964,7 +42357,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
41964
42357
|
return _this;
|
|
41965
42358
|
}
|
|
41966
42359
|
|
|
41967
|
-
|
|
42360
|
+
createClass_createClass(Notice, [{
|
|
41968
42361
|
key: "componentDidMount",
|
|
41969
42362
|
value: function componentDidMount() {
|
|
41970
42363
|
this.startCloseTimer();
|
|
@@ -42010,8 +42403,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42010
42403
|
|
|
42011
42404
|
return acc;
|
|
42012
42405
|
}, {});
|
|
42013
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
42014
|
-
className: classnames_default()(componentClass, className,
|
|
42406
|
+
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
42407
|
+
className: classnames_default()(componentClass, className, defineProperty_defineProperty({}, "".concat(componentClass, "-closable"), closable)),
|
|
42015
42408
|
style: style,
|
|
42016
42409
|
onMouseEnter: this.clearCloseTimer,
|
|
42017
42410
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -42042,6 +42435,52 @@ Notice.defaultProps = {
|
|
|
42042
42435
|
duration: 1.5
|
|
42043
42436
|
};
|
|
42044
42437
|
|
|
42438
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
42439
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
42440
|
+
if (Array.isArray(arr)) return arr;
|
|
42441
|
+
}
|
|
42442
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
42443
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
42444
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42445
|
+
|
|
42446
|
+
if (_i == null) return;
|
|
42447
|
+
var _arr = [];
|
|
42448
|
+
var _n = true;
|
|
42449
|
+
var _d = false;
|
|
42450
|
+
|
|
42451
|
+
var _s, _e;
|
|
42452
|
+
|
|
42453
|
+
try {
|
|
42454
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
42455
|
+
_arr.push(_s.value);
|
|
42456
|
+
|
|
42457
|
+
if (i && _arr.length === i) break;
|
|
42458
|
+
}
|
|
42459
|
+
} catch (err) {
|
|
42460
|
+
_d = true;
|
|
42461
|
+
_e = err;
|
|
42462
|
+
} finally {
|
|
42463
|
+
try {
|
|
42464
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
42465
|
+
} finally {
|
|
42466
|
+
if (_d) throw _e;
|
|
42467
|
+
}
|
|
42468
|
+
}
|
|
42469
|
+
|
|
42470
|
+
return _arr;
|
|
42471
|
+
}
|
|
42472
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
42473
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
42474
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
42475
|
+
}
|
|
42476
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
42477
|
+
|
|
42478
|
+
|
|
42479
|
+
|
|
42480
|
+
|
|
42481
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
42482
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
42483
|
+
}
|
|
42045
42484
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
42046
42485
|
|
|
42047
42486
|
|
|
@@ -42052,7 +42491,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42052
42491
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42053
42492
|
|
|
42054
42493
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42055
|
-
_React$useState2 =
|
|
42494
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
42056
42495
|
elements = _React$useState2[0],
|
|
42057
42496
|
setElements = _React$useState2[1];
|
|
42058
42497
|
|
|
@@ -42113,14 +42552,14 @@ function getUuid() {
|
|
|
42113
42552
|
}
|
|
42114
42553
|
|
|
42115
42554
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
42116
|
-
|
|
42555
|
+
inherits_inherits(Notification, _Component);
|
|
42117
42556
|
|
|
42118
|
-
var _super =
|
|
42557
|
+
var _super = createSuper_createSuper(Notification);
|
|
42119
42558
|
|
|
42120
42559
|
function Notification() {
|
|
42121
42560
|
var _this;
|
|
42122
42561
|
|
|
42123
|
-
|
|
42562
|
+
classCallCheck_classCallCheck(this, Notification);
|
|
42124
42563
|
|
|
42125
42564
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42126
42565
|
args[_key] = arguments[_key];
|
|
@@ -42135,7 +42574,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42135
42574
|
_this.add = function (originNotice, holderCallback) {
|
|
42136
42575
|
var key = originNotice.key || getUuid();
|
|
42137
42576
|
|
|
42138
|
-
var notice =
|
|
42577
|
+
var notice = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, originNotice), {}, {
|
|
42139
42578
|
key: key
|
|
42140
42579
|
});
|
|
42141
42580
|
|
|
@@ -42202,7 +42641,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42202
42641
|
return _this;
|
|
42203
42642
|
}
|
|
42204
42643
|
|
|
42205
|
-
|
|
42644
|
+
createClass_createClass(Notification, [{
|
|
42206
42645
|
key: "getTransitionName",
|
|
42207
42646
|
value: function getTransitionName() {
|
|
42208
42647
|
var _this$props = this.props,
|
|
@@ -42235,7 +42674,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42235
42674
|
var key = notice.key,
|
|
42236
42675
|
userPassKey = notice.userPassKey;
|
|
42237
42676
|
|
|
42238
|
-
var noticeProps =
|
|
42677
|
+
var noticeProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
42239
42678
|
prefixCls: prefixCls,
|
|
42240
42679
|
closeIcon: closeIcon
|
|
42241
42680
|
}, notice), notice.props), {}, {
|
|
@@ -42286,7 +42725,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42286
42725
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
42287
42726
|
key: key,
|
|
42288
42727
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
42289
|
-
style:
|
|
42728
|
+
style: objectSpread2_objectSpread2({}, motionStyle),
|
|
42290
42729
|
ref: function ref(div) {
|
|
42291
42730
|
if (typeof key === 'undefined') {
|
|
42292
42731
|
return;
|
|
@@ -42303,9 +42742,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42303
42742
|
});
|
|
42304
42743
|
}
|
|
42305
42744
|
|
|
42306
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
42745
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, esm_extends_extends({}, noticeProps, {
|
|
42307
42746
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
42308
|
-
style:
|
|
42747
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
42309
42748
|
visible: visible
|
|
42310
42749
|
}));
|
|
42311
42750
|
}));
|
|
@@ -42328,7 +42767,7 @@ Notification.defaultProps = {
|
|
|
42328
42767
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
42329
42768
|
var _ref6 = properties || {},
|
|
42330
42769
|
getContainer = _ref6.getContainer,
|
|
42331
|
-
props =
|
|
42770
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref6, ["getContainer"]);
|
|
42332
42771
|
|
|
42333
42772
|
var div = document.createElement('div');
|
|
42334
42773
|
|
|
@@ -42372,7 +42811,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
42372
42811
|
|
|
42373
42812
|
if (false) {}
|
|
42374
42813
|
|
|
42375
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
42814
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification, esm_extends_extends({}, props, {
|
|
42376
42815
|
ref: ref
|
|
42377
42816
|
})), div);
|
|
42378
42817
|
};
|
|
@@ -42402,7 +42841,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
42402
42841
|
};
|
|
42403
42842
|
|
|
42404
42843
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
42405
|
-
_useRCNotification2 =
|
|
42844
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
42406
42845
|
hookNotify = _useRCNotification2[0],
|
|
42407
42846
|
holder = _useRCNotification2[1];
|
|
42408
42847
|
|
|
@@ -42731,7 +43170,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
42731
43170
|
};
|
|
42732
43171
|
|
|
42733
43172
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
42734
|
-
_useRCNotification2 =
|
|
43173
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
42735
43174
|
hookNotify = _useRCNotification2[0],
|
|
42736
43175
|
holder = _useRCNotification2[1];
|
|
42737
43176
|
|
|
@@ -43358,7 +43797,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43358
43797
|
|
|
43359
43798
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
43360
43799
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
43361
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
43800
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
43362
43801
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
43363
43802
|
actionFn: onCancel,
|
|
43364
43803
|
close: close,
|
|
@@ -43376,7 +43815,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43376
43815
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
43377
43816
|
prefixCls: prefixCls,
|
|
43378
43817
|
className: classString,
|
|
43379
|
-
wrapClassName: classnames_default()(
|
|
43818
|
+
wrapClassName: classnames_default()(defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
43380
43819
|
onCancel: function onCancel() {
|
|
43381
43820
|
return close({
|
|
43382
43821
|
triggerCancel: true
|
|
@@ -43460,7 +43899,7 @@ function getRootPrefixCls() {
|
|
|
43460
43899
|
function confirm_confirm(config) {
|
|
43461
43900
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
43462
43901
|
|
|
43463
|
-
var currentConfig =
|
|
43902
|
+
var currentConfig = esm_extends_extends(esm_extends_extends({}, config), {
|
|
43464
43903
|
close: close,
|
|
43465
43904
|
visible: true
|
|
43466
43905
|
});
|
|
@@ -43513,7 +43952,7 @@ function confirm_confirm(config) {
|
|
|
43513
43952
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
43514
43953
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
43515
43954
|
var iconPrefixCls = getIconPrefixCls();
|
|
43516
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43955
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, esm_extends_extends({}, props, {
|
|
43517
43956
|
prefixCls: prefixCls,
|
|
43518
43957
|
rootPrefixCls: rootPrefixCls,
|
|
43519
43958
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -43530,7 +43969,7 @@ function confirm_confirm(config) {
|
|
|
43530
43969
|
args[_key2] = arguments[_key2];
|
|
43531
43970
|
}
|
|
43532
43971
|
|
|
43533
|
-
currentConfig =
|
|
43972
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), {
|
|
43534
43973
|
visible: false,
|
|
43535
43974
|
afterClose: function afterClose() {
|
|
43536
43975
|
if (typeof config.afterClose === 'function') {
|
|
@@ -43547,7 +43986,7 @@ function confirm_confirm(config) {
|
|
|
43547
43986
|
if (typeof configUpdate === 'function') {
|
|
43548
43987
|
currentConfig = configUpdate(currentConfig);
|
|
43549
43988
|
} else {
|
|
43550
|
-
currentConfig =
|
|
43989
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), configUpdate);
|
|
43551
43990
|
}
|
|
43552
43991
|
|
|
43553
43992
|
render(currentConfig);
|
|
@@ -43561,7 +44000,7 @@ function confirm_confirm(config) {
|
|
|
43561
44000
|
};
|
|
43562
44001
|
}
|
|
43563
44002
|
function withWarn(props) {
|
|
43564
|
-
return
|
|
44003
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43565
44004
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43566
44005
|
type: "exclamation-circle"
|
|
43567
44006
|
}),
|
|
@@ -43571,7 +44010,7 @@ function withWarn(props) {
|
|
|
43571
44010
|
});
|
|
43572
44011
|
}
|
|
43573
44012
|
function withInfo(props) {
|
|
43574
|
-
return
|
|
44013
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43575
44014
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43576
44015
|
type: "exclamation-circle"
|
|
43577
44016
|
}),
|
|
@@ -43581,7 +44020,7 @@ function withInfo(props) {
|
|
|
43581
44020
|
});
|
|
43582
44021
|
}
|
|
43583
44022
|
function withSuccess(props) {
|
|
43584
|
-
return
|
|
44023
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43585
44024
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43586
44025
|
type: "check-circle"
|
|
43587
44026
|
}),
|
|
@@ -43591,7 +44030,7 @@ function withSuccess(props) {
|
|
|
43591
44030
|
});
|
|
43592
44031
|
}
|
|
43593
44032
|
function withError(props) {
|
|
43594
|
-
return
|
|
44033
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43595
44034
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43596
44035
|
type: "close-circle"
|
|
43597
44036
|
}),
|
|
@@ -43601,7 +44040,7 @@ function withError(props) {
|
|
|
43601
44040
|
});
|
|
43602
44041
|
}
|
|
43603
44042
|
function withConfirm(props) {
|
|
43604
|
-
return
|
|
44043
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43605
44044
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43606
44045
|
type: "question-circle"
|
|
43607
44046
|
}),
|
|
@@ -43628,7 +44067,7 @@ function usePatchElement() {
|
|
|
43628
44067
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
43629
44068
|
// append a new element to elements (and create a new ref)
|
|
43630
44069
|
setElements(function (originElements) {
|
|
43631
|
-
return [].concat(
|
|
44070
|
+
return [].concat(toConsumableArray_toConsumableArray(originElements), [element]);
|
|
43632
44071
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
43633
44072
|
// it works a little like useEffect
|
|
43634
44073
|
|
|
@@ -43693,7 +44132,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
43693
44132
|
destroy: close,
|
|
43694
44133
|
update: function update(newConfig) {
|
|
43695
44134
|
setInnerConfig(function (originConfig) {
|
|
43696
|
-
return
|
|
44135
|
+
return esm_extends_extends(esm_extends_extends({}, originConfig), newConfig);
|
|
43697
44136
|
});
|
|
43698
44137
|
}
|
|
43699
44138
|
};
|
|
@@ -43702,7 +44141,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
43702
44141
|
componentName: "Modal",
|
|
43703
44142
|
defaultLocale: locale_default.Modal
|
|
43704
44143
|
}, function (modalLocale) {
|
|
43705
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
44144
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, esm_extends_extends({
|
|
43706
44145
|
prefixCls: prefixCls,
|
|
43707
44146
|
rootPrefixCls: rootPrefixCls
|
|
43708
44147
|
}, innerConfig, {
|
|
@@ -43749,7 +44188,7 @@ function useModal() {
|
|
|
43749
44188
|
|
|
43750
44189
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
43751
44190
|
if (actionQueue.length) {
|
|
43752
|
-
var cloneQueue =
|
|
44191
|
+
var cloneQueue = toConsumableArray_toConsumableArray(actionQueue);
|
|
43753
44192
|
|
|
43754
44193
|
cloneQueue.forEach(function (action) {
|
|
43755
44194
|
action();
|
|
@@ -43786,7 +44225,7 @@ function useModal() {
|
|
|
43786
44225
|
destroyAction();
|
|
43787
44226
|
} else {
|
|
43788
44227
|
setActionQueue(function (prev) {
|
|
43789
|
-
return [].concat(
|
|
44228
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [destroyAction]);
|
|
43790
44229
|
});
|
|
43791
44230
|
}
|
|
43792
44231
|
},
|
|
@@ -43801,7 +44240,7 @@ function useModal() {
|
|
|
43801
44240
|
updateAction();
|
|
43802
44241
|
} else {
|
|
43803
44242
|
setActionQueue(function (prev) {
|
|
43804
|
-
return [].concat(
|
|
44243
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [updateAction]);
|
|
43805
44244
|
});
|
|
43806
44245
|
}
|
|
43807
44246
|
}
|
|
@@ -44026,8 +44465,7 @@ var shouldfixedLoading = window.navigator.userAgent.indexOf('iPad') > -1 || wind
|
|
|
44026
44465
|
function LiveVideo(_ref) {
|
|
44027
44466
|
var _liveInfo$imInfo9, _liveInfo$imInfo9$par;
|
|
44028
44467
|
|
|
44029
|
-
var
|
|
44030
|
-
handleLogin = _ref.handleLogin,
|
|
44468
|
+
var handleLogin = _ref.handleLogin,
|
|
44031
44469
|
userInfo = _ref.userInfo,
|
|
44032
44470
|
liveInfo = _ref.liveInfo,
|
|
44033
44471
|
visitTime = _ref.visitTime,
|
|
@@ -44161,7 +44599,6 @@ function LiveVideo(_ref) {
|
|
|
44161
44599
|
options: options,
|
|
44162
44600
|
onReady: handleVideoReady
|
|
44163
44601
|
}), supportM3u8 && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(detail_LiveStatus, {
|
|
44164
|
-
isStreamLive: isStreamLive,
|
|
44165
44602
|
handleLogin: handleLogin,
|
|
44166
44603
|
userInfo: userInfo,
|
|
44167
44604
|
visitTime: visitTime,
|
|
@@ -44246,40 +44683,44 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
44246
44683
|
|
|
44247
44684
|
|
|
44248
44685
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
44249
|
-
function
|
|
44250
|
-
|
|
44686
|
+
function helpers_esm_extends_extends() {
|
|
44687
|
+
helpers_esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
44251
44688
|
for (var i = 1; i < arguments.length; i++) {
|
|
44252
44689
|
var source = arguments[i];
|
|
44690
|
+
|
|
44253
44691
|
for (var key in source) {
|
|
44254
44692
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44255
44693
|
target[key] = source[key];
|
|
44256
44694
|
}
|
|
44257
44695
|
}
|
|
44258
44696
|
}
|
|
44697
|
+
|
|
44259
44698
|
return target;
|
|
44260
44699
|
};
|
|
44261
|
-
return
|
|
44700
|
+
return helpers_esm_extends_extends.apply(this, arguments);
|
|
44262
44701
|
}
|
|
44263
44702
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
44264
|
-
function
|
|
44703
|
+
function helpers_esm_typeof_typeof(obj) {
|
|
44265
44704
|
"@babel/helpers - typeof";
|
|
44266
44705
|
|
|
44267
|
-
return
|
|
44706
|
+
return helpers_esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44268
44707
|
return typeof obj;
|
|
44269
44708
|
} : function (obj) {
|
|
44270
44709
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44271
|
-
},
|
|
44710
|
+
}, helpers_esm_typeof_typeof(obj);
|
|
44272
44711
|
}
|
|
44273
44712
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
44274
44713
|
|
|
44275
44714
|
function _toPrimitive(input, hint) {
|
|
44276
|
-
if (
|
|
44715
|
+
if (helpers_esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
44277
44716
|
var prim = input[Symbol.toPrimitive];
|
|
44717
|
+
|
|
44278
44718
|
if (prim !== undefined) {
|
|
44279
44719
|
var res = prim.call(input, hint || "default");
|
|
44280
|
-
if (
|
|
44720
|
+
if (helpers_esm_typeof_typeof(res) !== "object") return res;
|
|
44281
44721
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44282
44722
|
}
|
|
44723
|
+
|
|
44283
44724
|
return (hint === "string" ? String : Number)(input);
|
|
44284
44725
|
}
|
|
44285
44726
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -44287,12 +44728,13 @@ function _toPrimitive(input, hint) {
|
|
|
44287
44728
|
|
|
44288
44729
|
function _toPropertyKey(arg) {
|
|
44289
44730
|
var key = _toPrimitive(arg, "string");
|
|
44290
|
-
return
|
|
44731
|
+
return helpers_esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
44291
44732
|
}
|
|
44292
44733
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
44293
44734
|
|
|
44294
|
-
function
|
|
44735
|
+
function esm_defineProperty_defineProperty(obj, key, value) {
|
|
44295
44736
|
key = _toPropertyKey(key);
|
|
44737
|
+
|
|
44296
44738
|
if (key in obj) {
|
|
44297
44739
|
Object.defineProperty(obj, key, {
|
|
44298
44740
|
value: value,
|
|
@@ -44303,51 +44745,61 @@ function defineProperty_defineProperty(obj, key, value) {
|
|
|
44303
44745
|
} else {
|
|
44304
44746
|
obj[key] = value;
|
|
44305
44747
|
}
|
|
44748
|
+
|
|
44306
44749
|
return obj;
|
|
44307
44750
|
}
|
|
44308
44751
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
44309
44752
|
|
|
44310
|
-
|
|
44753
|
+
|
|
44754
|
+
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44311
44755
|
var keys = Object.keys(object);
|
|
44756
|
+
|
|
44312
44757
|
if (Object.getOwnPropertySymbols) {
|
|
44313
44758
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
44314
44759
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
44315
44760
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
44316
44761
|
})), keys.push.apply(keys, symbols);
|
|
44317
44762
|
}
|
|
44763
|
+
|
|
44318
44764
|
return keys;
|
|
44319
44765
|
}
|
|
44320
|
-
|
|
44766
|
+
|
|
44767
|
+
function esm_objectSpread2_objectSpread2(target) {
|
|
44321
44768
|
for (var i = 1; i < arguments.length; i++) {
|
|
44322
44769
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
44323
|
-
i % 2 ?
|
|
44324
|
-
|
|
44325
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
44770
|
+
i % 2 ? esm_objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
44771
|
+
esm_defineProperty_defineProperty(target, key, source[key]);
|
|
44772
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : esm_objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
44326
44773
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44327
44774
|
});
|
|
44328
44775
|
}
|
|
44776
|
+
|
|
44329
44777
|
return target;
|
|
44330
44778
|
}
|
|
44331
44779
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
44332
|
-
function
|
|
44780
|
+
function helpers_esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
44333
44781
|
if (Array.isArray(arr)) return arr;
|
|
44334
44782
|
}
|
|
44335
44783
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
44336
|
-
function
|
|
44784
|
+
function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
44337
44785
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
44786
|
+
|
|
44338
44787
|
if (null != _i) {
|
|
44339
44788
|
var _s,
|
|
44340
|
-
|
|
44341
|
-
|
|
44342
|
-
|
|
44343
|
-
|
|
44344
|
-
|
|
44345
|
-
|
|
44789
|
+
_e,
|
|
44790
|
+
_x,
|
|
44791
|
+
_r,
|
|
44792
|
+
_arr = [],
|
|
44793
|
+
_n = !0,
|
|
44794
|
+
_d = !1;
|
|
44795
|
+
|
|
44346
44796
|
try {
|
|
44347
44797
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
44348
44798
|
if (Object(_i) !== _i) return;
|
|
44349
44799
|
_n = !1;
|
|
44350
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
44800
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
|
44801
|
+
;
|
|
44802
|
+
}
|
|
44351
44803
|
} catch (err) {
|
|
44352
44804
|
_d = !0, _e = err;
|
|
44353
44805
|
} finally {
|
|
@@ -44357,27 +44809,32 @@ function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
44357
44809
|
if (_d) throw _e;
|
|
44358
44810
|
}
|
|
44359
44811
|
}
|
|
44812
|
+
|
|
44360
44813
|
return _arr;
|
|
44361
44814
|
}
|
|
44362
44815
|
}
|
|
44363
44816
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
44364
|
-
function
|
|
44817
|
+
function esm_arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
44365
44818
|
if (len == null || len > arr.length) len = arr.length;
|
|
44366
|
-
|
|
44819
|
+
|
|
44820
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
44821
|
+
arr2[i] = arr[i];
|
|
44822
|
+
}
|
|
44823
|
+
|
|
44367
44824
|
return arr2;
|
|
44368
44825
|
}
|
|
44369
44826
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
44370
44827
|
|
|
44371
|
-
function
|
|
44828
|
+
function esm_unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
44372
44829
|
if (!o) return;
|
|
44373
|
-
if (typeof o === "string") return
|
|
44830
|
+
if (typeof o === "string") return esm_arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44374
44831
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
44375
44832
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
44376
44833
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44377
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
44834
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return esm_arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44378
44835
|
}
|
|
44379
44836
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
44380
|
-
function
|
|
44837
|
+
function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
44381
44838
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44382
44839
|
}
|
|
44383
44840
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -44385,30 +44842,34 @@ function esm_nonIterableRest_nonIterableRest() {
|
|
|
44385
44842
|
|
|
44386
44843
|
|
|
44387
44844
|
|
|
44388
|
-
function
|
|
44389
|
-
return
|
|
44845
|
+
function helpers_esm_slicedToArray_slicedToArray(arr, i) {
|
|
44846
|
+
return helpers_esm_arrayWithHoles_arrayWithHoles(arr) || helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || esm_unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || helpers_esm_nonIterableRest_nonIterableRest();
|
|
44390
44847
|
}
|
|
44391
44848
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
44392
|
-
function
|
|
44849
|
+
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
44393
44850
|
if (source == null) return {};
|
|
44394
44851
|
var target = {};
|
|
44395
44852
|
var sourceKeys = Object.keys(source);
|
|
44396
44853
|
var key, i;
|
|
44854
|
+
|
|
44397
44855
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
44398
44856
|
key = sourceKeys[i];
|
|
44399
44857
|
if (excluded.indexOf(key) >= 0) continue;
|
|
44400
44858
|
target[key] = source[key];
|
|
44401
44859
|
}
|
|
44860
|
+
|
|
44402
44861
|
return target;
|
|
44403
44862
|
}
|
|
44404
44863
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
44405
44864
|
|
|
44406
|
-
function
|
|
44865
|
+
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
44407
44866
|
if (source == null) return {};
|
|
44408
|
-
var target =
|
|
44867
|
+
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
44409
44868
|
var key, i;
|
|
44869
|
+
|
|
44410
44870
|
if (Object.getOwnPropertySymbols) {
|
|
44411
44871
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
44872
|
+
|
|
44412
44873
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
44413
44874
|
key = sourceSymbolKeys[i];
|
|
44414
44875
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -44416,6 +44877,7 @@ function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
44416
44877
|
target[key] = source[key];
|
|
44417
44878
|
}
|
|
44418
44879
|
}
|
|
44880
|
+
|
|
44419
44881
|
return target;
|
|
44420
44882
|
}
|
|
44421
44883
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -45363,14 +45825,14 @@ var index = (function () {
|
|
|
45363
45825
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
45364
45826
|
|
|
45365
45827
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
45366
|
-
|
|
45828
|
+
inherits_inherits(ReactResizeObserver, _React$Component);
|
|
45367
45829
|
|
|
45368
|
-
var _super =
|
|
45830
|
+
var _super = createSuper_createSuper(ReactResizeObserver);
|
|
45369
45831
|
|
|
45370
45832
|
function ReactResizeObserver() {
|
|
45371
45833
|
var _this;
|
|
45372
45834
|
|
|
45373
|
-
|
|
45835
|
+
classCallCheck_classCallCheck(this, ReactResizeObserver);
|
|
45374
45836
|
|
|
45375
45837
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45376
45838
|
args[_key] = arguments[_key];
|
|
@@ -45421,7 +45883,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45421
45883
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
45422
45884
|
|
|
45423
45885
|
Promise.resolve().then(function () {
|
|
45424
|
-
onResize(
|
|
45886
|
+
onResize(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, size), {}, {
|
|
45425
45887
|
offsetWidth: mergedOffsetWidth,
|
|
45426
45888
|
offsetHeight: mergedOffsetHeight
|
|
45427
45889
|
}), target);
|
|
@@ -45437,7 +45899,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45437
45899
|
return _this;
|
|
45438
45900
|
}
|
|
45439
45901
|
|
|
45440
|
-
|
|
45902
|
+
createClass_createClass(ReactResizeObserver, [{
|
|
45441
45903
|
key: "componentDidMount",
|
|
45442
45904
|
value: function componentDidMount() {
|
|
45443
45905
|
this.onComponentUpdated();
|
|
@@ -45551,7 +46013,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
45551
46013
|
position: 'relative',
|
|
45552
46014
|
overflow: 'hidden'
|
|
45553
46015
|
};
|
|
45554
|
-
innerStyle =
|
|
46016
|
+
innerStyle = esm_objectSpread2_objectSpread2(esm_objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
45555
46017
|
transform: "translateY(".concat(offset, "px)"),
|
|
45556
46018
|
position: 'absolute',
|
|
45557
46019
|
left: 0,
|
|
@@ -45568,23 +46030,24 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
45568
46030
|
onInnerResize();
|
|
45569
46031
|
}
|
|
45570
46032
|
}
|
|
45571
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
46033
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", helpers_esm_extends_extends({
|
|
45572
46034
|
style: innerStyle,
|
|
45573
|
-
className: classnames_default()(
|
|
46035
|
+
className: classnames_default()(esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
45574
46036
|
ref: ref
|
|
45575
46037
|
}, innerProps), children)));
|
|
45576
46038
|
});
|
|
45577
46039
|
Filler.displayName = 'Filler';
|
|
45578
46040
|
/* harmony default export */ var es_Filler = (Filler);
|
|
45579
46041
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
45580
|
-
function
|
|
46042
|
+
function esm_classCallCheck_classCallCheck(instance, Constructor) {
|
|
45581
46043
|
if (!(instance instanceof Constructor)) {
|
|
45582
46044
|
throw new TypeError("Cannot call a class as a function");
|
|
45583
46045
|
}
|
|
45584
46046
|
}
|
|
45585
46047
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
45586
46048
|
|
|
45587
|
-
|
|
46049
|
+
|
|
46050
|
+
function esm_createClass_defineProperties(target, props) {
|
|
45588
46051
|
for (var i = 0; i < props.length; i++) {
|
|
45589
46052
|
var descriptor = props[i];
|
|
45590
46053
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -45593,28 +46056,30 @@ function createClass_defineProperties(target, props) {
|
|
|
45593
46056
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
45594
46057
|
}
|
|
45595
46058
|
}
|
|
45596
|
-
|
|
45597
|
-
|
|
45598
|
-
if (
|
|
46059
|
+
|
|
46060
|
+
function esm_createClass_createClass(Constructor, protoProps, staticProps) {
|
|
46061
|
+
if (protoProps) esm_createClass_defineProperties(Constructor.prototype, protoProps);
|
|
46062
|
+
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
45599
46063
|
Object.defineProperty(Constructor, "prototype", {
|
|
45600
46064
|
writable: false
|
|
45601
46065
|
});
|
|
45602
46066
|
return Constructor;
|
|
45603
46067
|
}
|
|
45604
46068
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
45605
|
-
function
|
|
45606
|
-
|
|
46069
|
+
function esm_setPrototypeOf_setPrototypeOf(o, p) {
|
|
46070
|
+
esm_setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
45607
46071
|
o.__proto__ = p;
|
|
45608
46072
|
return o;
|
|
45609
46073
|
};
|
|
45610
|
-
return
|
|
46074
|
+
return esm_setPrototypeOf_setPrototypeOf(o, p);
|
|
45611
46075
|
}
|
|
45612
46076
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
45613
46077
|
|
|
45614
|
-
function
|
|
46078
|
+
function esm_inherits_inherits(subClass, superClass) {
|
|
45615
46079
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
45616
46080
|
throw new TypeError("Super expression must either be null or a function");
|
|
45617
46081
|
}
|
|
46082
|
+
|
|
45618
46083
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
45619
46084
|
constructor: {
|
|
45620
46085
|
value: subClass,
|
|
@@ -45625,20 +46090,21 @@ function inherits_inherits(subClass, superClass) {
|
|
|
45625
46090
|
Object.defineProperty(subClass, "prototype", {
|
|
45626
46091
|
writable: false
|
|
45627
46092
|
});
|
|
45628
|
-
if (superClass)
|
|
46093
|
+
if (superClass) esm_setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
45629
46094
|
}
|
|
45630
46095
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
45631
|
-
function
|
|
45632
|
-
|
|
46096
|
+
function esm_getPrototypeOf_getPrototypeOf(o) {
|
|
46097
|
+
esm_getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
45633
46098
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
45634
46099
|
};
|
|
45635
|
-
return
|
|
46100
|
+
return esm_getPrototypeOf_getPrototypeOf(o);
|
|
45636
46101
|
}
|
|
45637
46102
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
45638
|
-
function
|
|
46103
|
+
function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
45639
46104
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
45640
46105
|
if (Reflect.construct.sham) return false;
|
|
45641
46106
|
if (typeof Proxy === "function") return true;
|
|
46107
|
+
|
|
45642
46108
|
try {
|
|
45643
46109
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
45644
46110
|
return true;
|
|
@@ -45647,39 +46113,43 @@ function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
45647
46113
|
}
|
|
45648
46114
|
}
|
|
45649
46115
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
45650
|
-
function
|
|
46116
|
+
function esm_assertThisInitialized_assertThisInitialized(self) {
|
|
45651
46117
|
if (self === void 0) {
|
|
45652
46118
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
45653
46119
|
}
|
|
46120
|
+
|
|
45654
46121
|
return self;
|
|
45655
46122
|
}
|
|
45656
46123
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
45657
46124
|
|
|
45658
46125
|
|
|
45659
|
-
function
|
|
45660
|
-
if (call && (
|
|
46126
|
+
function esm_possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
46127
|
+
if (call && (helpers_esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
45661
46128
|
return call;
|
|
45662
46129
|
} else if (call !== void 0) {
|
|
45663
46130
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
45664
46131
|
}
|
|
45665
|
-
|
|
46132
|
+
|
|
46133
|
+
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
45666
46134
|
}
|
|
45667
46135
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
45668
46136
|
|
|
45669
46137
|
|
|
45670
46138
|
|
|
45671
|
-
function
|
|
45672
|
-
var hasNativeReflectConstruct =
|
|
46139
|
+
function esm_createSuper_createSuper(Derived) {
|
|
46140
|
+
var hasNativeReflectConstruct = esm_isNativeReflectConstruct_isNativeReflectConstruct();
|
|
45673
46141
|
return function _createSuperInternal() {
|
|
45674
|
-
var Super =
|
|
45675
|
-
|
|
46142
|
+
var Super = esm_getPrototypeOf_getPrototypeOf(Derived),
|
|
46143
|
+
result;
|
|
46144
|
+
|
|
45676
46145
|
if (hasNativeReflectConstruct) {
|
|
45677
|
-
var NewTarget =
|
|
46146
|
+
var NewTarget = esm_getPrototypeOf_getPrototypeOf(this).constructor;
|
|
45678
46147
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
45679
46148
|
} else {
|
|
45680
46149
|
result = Super.apply(this, arguments);
|
|
45681
46150
|
}
|
|
45682
|
-
|
|
46151
|
+
|
|
46152
|
+
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
45683
46153
|
};
|
|
45684
46154
|
}
|
|
45685
46155
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -45754,11 +46224,11 @@ function getPageY(e) {
|
|
|
45754
46224
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
45755
46225
|
}
|
|
45756
46226
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
45757
|
-
|
|
45758
|
-
var _super =
|
|
46227
|
+
esm_inherits_inherits(ScrollBar, _React$Component);
|
|
46228
|
+
var _super = esm_createSuper_createSuper(ScrollBar);
|
|
45759
46229
|
function ScrollBar() {
|
|
45760
46230
|
var _this;
|
|
45761
|
-
|
|
46231
|
+
esm_classCallCheck_classCallCheck(this, ScrollBar);
|
|
45762
46232
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45763
46233
|
args[_key] = arguments[_key];
|
|
45764
46234
|
}
|
|
@@ -45886,7 +46356,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
45886
46356
|
};
|
|
45887
46357
|
return _this;
|
|
45888
46358
|
}
|
|
45889
|
-
|
|
46359
|
+
esm_createClass_createClass(ScrollBar, [{
|
|
45890
46360
|
key: "componentDidMount",
|
|
45891
46361
|
value: function componentDidMount() {
|
|
45892
46362
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -45920,7 +46390,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
45920
46390
|
var mergedVisible = canScroll && visible;
|
|
45921
46391
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
45922
46392
|
ref: this.scrollbarRef,
|
|
45923
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46393
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
45924
46394
|
style: {
|
|
45925
46395
|
width: 8,
|
|
45926
46396
|
top: 0,
|
|
@@ -45933,7 +46403,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
45933
46403
|
onMouseMove: this.delayHidden
|
|
45934
46404
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
45935
46405
|
ref: this.thumbRef,
|
|
45936
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46406
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
45937
46407
|
style: {
|
|
45938
46408
|
width: '100%',
|
|
45939
46409
|
height: spinHeight,
|
|
@@ -46012,11 +46482,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46012
46482
|
// Firefox has low performance of map.
|
|
46013
46483
|
var CacheMap = /*#__PURE__*/function () {
|
|
46014
46484
|
function CacheMap() {
|
|
46015
|
-
|
|
46485
|
+
esm_classCallCheck_classCallCheck(this, CacheMap);
|
|
46016
46486
|
this.maps = void 0;
|
|
46017
46487
|
this.maps = Object.create(null);
|
|
46018
46488
|
}
|
|
46019
|
-
|
|
46489
|
+
esm_createClass_createClass(CacheMap, [{
|
|
46020
46490
|
key: "set",
|
|
46021
46491
|
value: function set(key, value) {
|
|
46022
46492
|
this.maps[key] = value;
|
|
@@ -46039,7 +46509,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46039
46509
|
|
|
46040
46510
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46041
46511
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46042
|
-
_React$useState2 =
|
|
46512
|
+
_React$useState2 = helpers_esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46043
46513
|
updatedMark = _React$useState2[0],
|
|
46044
46514
|
setUpdatedMark = _React$useState2[1];
|
|
46045
46515
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46106,7 +46576,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46106
46576
|
es_raf.cancel(scrollRef.current);
|
|
46107
46577
|
if (typeof arg === 'number') {
|
|
46108
46578
|
syncScrollTop(arg);
|
|
46109
|
-
} else if (arg &&
|
|
46579
|
+
} else if (arg && helpers_esm_typeof_typeof(arg) === 'object') {
|
|
46110
46580
|
var index;
|
|
46111
46581
|
var align = arg.align;
|
|
46112
46582
|
if ('index' in arg) {
|
|
@@ -46262,11 +46732,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
46262
46732
|
|
|
46263
46733
|
function useDiffItem(data, getKey, onDiff) {
|
|
46264
46734
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
46265
|
-
_React$useState2 =
|
|
46735
|
+
_React$useState2 = helpers_esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46266
46736
|
prevData = _React$useState2[0],
|
|
46267
46737
|
setPrevData = _React$useState2[1];
|
|
46268
46738
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
46269
|
-
_React$useState4 =
|
|
46739
|
+
_React$useState4 = helpers_esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
46270
46740
|
diffItem = _React$useState4[0],
|
|
46271
46741
|
setDiffItem = _React$useState4[1];
|
|
46272
46742
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -46281,7 +46751,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
46281
46751
|
}
|
|
46282
46752
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
46283
46753
|
|
|
46284
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
46754
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : helpers_esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
46285
46755
|
/* harmony default export */ var isFirefox = (isFF);
|
|
46286
46756
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
46287
46757
|
|
|
@@ -46500,16 +46970,16 @@ function RawList(props, ref) {
|
|
|
46500
46970
|
onScroll = props.onScroll,
|
|
46501
46971
|
onVisibleChange = props.onVisibleChange,
|
|
46502
46972
|
innerProps = props.innerProps,
|
|
46503
|
-
restProps =
|
|
46973
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
46504
46974
|
// ================================= MISC =================================
|
|
46505
46975
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
46506
46976
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
46507
46977
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
46508
|
-
_useState2 =
|
|
46978
|
+
_useState2 = helpers_esm_slicedToArray_slicedToArray(_useState, 2),
|
|
46509
46979
|
scrollTop = _useState2[0],
|
|
46510
46980
|
setScrollTop = _useState2[1];
|
|
46511
46981
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
46512
|
-
_useState4 =
|
|
46982
|
+
_useState4 = helpers_esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
46513
46983
|
scrollMoving = _useState4[0],
|
|
46514
46984
|
setScrollMoving = _useState4[1];
|
|
46515
46985
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -46549,12 +47019,12 @@ function RawList(props, ref) {
|
|
|
46549
47019
|
});
|
|
46550
47020
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
46551
47021
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
46552
|
-
_useDiffItem2 =
|
|
47022
|
+
_useDiffItem2 = helpers_esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
46553
47023
|
diffItem = _useDiffItem2[0];
|
|
46554
47024
|
diffItemRef.current = diffItem;
|
|
46555
47025
|
// ================================ Height ================================
|
|
46556
47026
|
var _useHeights = useHeights(getKey, null, null),
|
|
46557
|
-
_useHeights2 =
|
|
47027
|
+
_useHeights2 = helpers_esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
46558
47028
|
setInstanceRef = _useHeights2[0],
|
|
46559
47029
|
collectHeight = _useHeights2[1],
|
|
46560
47030
|
heights = _useHeights2[2],
|
|
@@ -46660,7 +47130,7 @@ function RawList(props, ref) {
|
|
|
46660
47130
|
return newTop;
|
|
46661
47131
|
});
|
|
46662
47132
|
}),
|
|
46663
|
-
_useFrameWheel2 =
|
|
47133
|
+
_useFrameWheel2 = helpers_esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
46664
47134
|
onRawWheel = _useFrameWheel2[0],
|
|
46665
47135
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
46666
47136
|
// Mobile touch move
|
|
@@ -46714,7 +47184,7 @@ function RawList(props, ref) {
|
|
|
46714
47184
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
46715
47185
|
var componentStyle = null;
|
|
46716
47186
|
if (height) {
|
|
46717
|
-
componentStyle =
|
|
47187
|
+
componentStyle = esm_objectSpread2_objectSpread2(esm_defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
46718
47188
|
if (useVirtual) {
|
|
46719
47189
|
componentStyle.overflowY = 'hidden';
|
|
46720
47190
|
if (scrollMoving) {
|
|
@@ -46722,8 +47192,8 @@ function RawList(props, ref) {
|
|
|
46722
47192
|
}
|
|
46723
47193
|
}
|
|
46724
47194
|
}
|
|
46725
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
46726
|
-
style:
|
|
47195
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", helpers_esm_extends_extends({
|
|
47196
|
+
style: esm_objectSpread2_objectSpread2(esm_objectSpread2_objectSpread2({}, style), {}, {
|
|
46727
47197
|
position: 'relative'
|
|
46728
47198
|
}),
|
|
46729
47199
|
className: mergedClassName
|
|
@@ -46869,7 +47339,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
46869
47339
|
return values;
|
|
46870
47340
|
}
|
|
46871
47341
|
function removeLastEnabledValue(measureValues, values) {
|
|
46872
|
-
var newValues =
|
|
47342
|
+
var newValues = toConsumableArray_toConsumableArray(values);
|
|
46873
47343
|
|
|
46874
47344
|
var removeIndex;
|
|
46875
47345
|
|
|
@@ -47003,7 +47473,7 @@ function flattenOptions(options) {
|
|
|
47003
47473
|
*/
|
|
47004
47474
|
|
|
47005
47475
|
function injectPropsWithOption(option) {
|
|
47006
|
-
var newOption =
|
|
47476
|
+
var newOption = objectSpread2_objectSpread2({}, option);
|
|
47007
47477
|
|
|
47008
47478
|
if (!('props' in newOption)) {
|
|
47009
47479
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47037,7 +47507,7 @@ function findValueOption(values, options) {
|
|
|
47037
47507
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47038
47508
|
|
|
47039
47509
|
if (!option) {
|
|
47040
|
-
option =
|
|
47510
|
+
option = objectSpread2_objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47041
47511
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47042
47512
|
}));
|
|
47043
47513
|
}
|
|
@@ -47056,7 +47526,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47056
47526
|
};
|
|
47057
47527
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47058
47528
|
|
|
47059
|
-
if (prevValItem &&
|
|
47529
|
+
if (prevValItem && esm_typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47060
47530
|
result.label = prevValItem.label;
|
|
47061
47531
|
|
|
47062
47532
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -47104,7 +47574,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47104
47574
|
var filterFunc;
|
|
47105
47575
|
|
|
47106
47576
|
if (filterOption === false) {
|
|
47107
|
-
return
|
|
47577
|
+
return toConsumableArray_toConsumableArray(options);
|
|
47108
47578
|
}
|
|
47109
47579
|
|
|
47110
47580
|
if (typeof filterOption === 'function') {
|
|
@@ -47128,7 +47598,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47128
47598
|
});
|
|
47129
47599
|
|
|
47130
47600
|
if (subOptions.length) {
|
|
47131
|
-
filteredOptions.push(
|
|
47601
|
+
filteredOptions.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
47132
47602
|
options: subOptions
|
|
47133
47603
|
}));
|
|
47134
47604
|
}
|
|
@@ -47162,7 +47632,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
47162
47632
|
var list = str.split(token);
|
|
47163
47633
|
match = match || list.length > 1;
|
|
47164
47634
|
return list.reduce(function (prevList, unitStr) {
|
|
47165
|
-
return [].concat(
|
|
47635
|
+
return [].concat(toConsumableArray_toConsumableArray(prevList), toConsumableArray_toConsumableArray(separate(unitStr, restTokens)));
|
|
47166
47636
|
}, []).filter(function (unit) {
|
|
47167
47637
|
return unit;
|
|
47168
47638
|
});
|
|
@@ -47182,7 +47652,7 @@ function isValueDisabled(value, options) {
|
|
|
47182
47652
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
47183
47653
|
var values = commonUtil_toArray(value).slice().sort();
|
|
47184
47654
|
|
|
47185
|
-
var cloneOptions =
|
|
47655
|
+
var cloneOptions = toConsumableArray_toConsumableArray(options); // Convert options value to set
|
|
47186
47656
|
|
|
47187
47657
|
|
|
47188
47658
|
var optionValues = new Set();
|
|
@@ -47202,7 +47672,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
47202
47672
|
if (!optionValues.has(val)) {
|
|
47203
47673
|
var _ref9;
|
|
47204
47674
|
|
|
47205
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
47675
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, defineProperty_defineProperty(_ref9, optionLabelProp, item.label), defineProperty_defineProperty(_ref9, "value", val), _ref9) : {
|
|
47206
47676
|
value: val
|
|
47207
47677
|
});
|
|
47208
47678
|
}
|
|
@@ -47468,7 +47938,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47468
47938
|
children = itemData.children;
|
|
47469
47939
|
var attrs = pickAttrs(itemData, true);
|
|
47470
47940
|
var mergedLabel = childrenAsData ? children : label;
|
|
47471
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47941
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
47472
47942
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
47473
47943
|
}, attrs, {
|
|
47474
47944
|
key: index,
|
|
@@ -47518,13 +47988,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47518
47988
|
children = data.children,
|
|
47519
47989
|
style = data.style,
|
|
47520
47990
|
className = data.className,
|
|
47521
|
-
otherProps =
|
|
47991
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(data, OptionList_excluded);
|
|
47522
47992
|
|
|
47523
47993
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
47524
47994
|
|
|
47525
47995
|
var selected = values.has(value);
|
|
47526
47996
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
47527
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
47997
|
+
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
|
|
47528
47998
|
var mergedLabel = childrenAsData ? children : label;
|
|
47529
47999
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
47530
48000
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -47535,7 +48005,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47535
48005
|
optionTitle = title;
|
|
47536
48006
|
}
|
|
47537
48007
|
|
|
47538
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
48008
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, passedProps, {
|
|
47539
48009
|
"aria-selected": selected,
|
|
47540
48010
|
className: optionClassName,
|
|
47541
48011
|
title: optionTitle,
|
|
@@ -47596,9 +48066,9 @@ function convertNodeToOption(node) {
|
|
|
47596
48066
|
_node$props = node.props,
|
|
47597
48067
|
children = _node$props.children,
|
|
47598
48068
|
value = _node$props.value,
|
|
47599
|
-
restProps =
|
|
48069
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
47600
48070
|
|
|
47601
|
-
return
|
|
48071
|
+
return objectSpread2_objectSpread2({
|
|
47602
48072
|
key: key,
|
|
47603
48073
|
value: value !== undefined ? value : key,
|
|
47604
48074
|
children: children
|
|
@@ -47616,13 +48086,13 @@ function convertChildrenToData(nodes) {
|
|
|
47616
48086
|
key = node.key,
|
|
47617
48087
|
_node$props2 = node.props,
|
|
47618
48088
|
children = _node$props2.children,
|
|
47619
|
-
restProps =
|
|
48089
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props2, _excluded2);
|
|
47620
48090
|
|
|
47621
48091
|
if (optionOnly || !isSelectOptGroup) {
|
|
47622
48092
|
return convertNodeToOption(node);
|
|
47623
48093
|
}
|
|
47624
48094
|
|
|
47625
|
-
return
|
|
48095
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
47626
48096
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
47627
48097
|
label: key
|
|
47628
48098
|
}, restProps), {}, {
|
|
@@ -47724,7 +48194,7 @@ function InternalItem(props, ref) {
|
|
|
47724
48194
|
order = props.order,
|
|
47725
48195
|
_props$component = props.component,
|
|
47726
48196
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
47727
|
-
restProps =
|
|
48197
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
47728
48198
|
|
|
47729
48199
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
47730
48200
|
|
|
@@ -47758,9 +48228,9 @@ function InternalItem(props, ref) {
|
|
|
47758
48228
|
overflowProps['aria-hidden'] = true;
|
|
47759
48229
|
}
|
|
47760
48230
|
|
|
47761
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48231
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({
|
|
47762
48232
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
47763
|
-
style:
|
|
48233
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, overflowStyle), style)
|
|
47764
48234
|
}, overflowProps, restProps, {
|
|
47765
48235
|
ref: ref
|
|
47766
48236
|
}), childNode);
|
|
@@ -47845,23 +48315,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
47845
48315
|
if (!context) {
|
|
47846
48316
|
var _props$component = props.component,
|
|
47847
48317
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
47848
|
-
_restProps =
|
|
48318
|
+
_restProps = objectWithoutProperties_objectWithoutProperties(props, ["component"]);
|
|
47849
48319
|
|
|
47850
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48320
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, _restProps, {
|
|
47851
48321
|
ref: ref
|
|
47852
48322
|
}));
|
|
47853
48323
|
}
|
|
47854
48324
|
|
|
47855
48325
|
var contextClassName = context.className,
|
|
47856
|
-
restContext =
|
|
48326
|
+
restContext = objectWithoutProperties_objectWithoutProperties(context, ["className"]);
|
|
47857
48327
|
|
|
47858
48328
|
var className = props.className,
|
|
47859
|
-
restProps =
|
|
48329
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
47860
48330
|
|
|
47861
48331
|
|
|
47862
48332
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
47863
48333
|
value: null
|
|
47864
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48334
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({
|
|
47865
48335
|
ref: ref,
|
|
47866
48336
|
className: classnames_default()(contextClassName, className)
|
|
47867
48337
|
}, restContext, restProps)));
|
|
@@ -47911,7 +48381,7 @@ function Overflow(props, ref) {
|
|
|
47911
48381
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
47912
48382
|
itemComponent = props.itemComponent,
|
|
47913
48383
|
onVisibleChange = props.onVisibleChange,
|
|
47914
|
-
restProps =
|
|
48384
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
47915
48385
|
|
|
47916
48386
|
var createUseState = useBatchFrameState();
|
|
47917
48387
|
var fullySSR = ssr === 'full';
|
|
@@ -48121,7 +48591,7 @@ function Overflow(props, ref) {
|
|
|
48121
48591
|
var key = getKey(item, index);
|
|
48122
48592
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48123
48593
|
key: key,
|
|
48124
|
-
value:
|
|
48594
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, itemSharedProps), {}, {
|
|
48125
48595
|
order: index,
|
|
48126
48596
|
item: item,
|
|
48127
48597
|
itemKey: key,
|
|
@@ -48131,7 +48601,7 @@ function Overflow(props, ref) {
|
|
|
48131
48601
|
}, renderRawItem(item, index));
|
|
48132
48602
|
} : function (item, index) {
|
|
48133
48603
|
var key = getKey(item, index);
|
|
48134
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48604
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, {
|
|
48135
48605
|
order: index,
|
|
48136
48606
|
key: key,
|
|
48137
48607
|
item: item,
|
|
@@ -48152,18 +48622,18 @@ function Overflow(props, ref) {
|
|
|
48152
48622
|
|
|
48153
48623
|
if (!renderRawRest) {
|
|
48154
48624
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48155
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48625
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48156
48626
|
} else if (renderRawRest) {
|
|
48157
48627
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48158
|
-
value:
|
|
48628
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48159
48629
|
}, renderRawRest(omittedItems));
|
|
48160
48630
|
}
|
|
48161
48631
|
|
|
48162
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48632
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({
|
|
48163
48633
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48164
48634
|
style: style,
|
|
48165
48635
|
ref: ref
|
|
48166
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48636
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, {
|
|
48167
48637
|
order: mergedDisplayCount,
|
|
48168
48638
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
48169
48639
|
registerSize: registerSuffixSize,
|
|
@@ -48228,7 +48698,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48228
48698
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
48229
48699
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
48230
48700
|
style = _inputNode$props.style;
|
|
48231
|
-
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode,
|
|
48701
|
+
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
48232
48702
|
id: id,
|
|
48233
48703
|
ref: composeRef(ref, originRef),
|
|
48234
48704
|
disabled: disabled,
|
|
@@ -48237,7 +48707,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48237
48707
|
type: 'search',
|
|
48238
48708
|
autoFocus: autoFocus,
|
|
48239
48709
|
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),
|
|
48240
|
-
style:
|
|
48710
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
48241
48711
|
opacity: editable ? null : 0
|
|
48242
48712
|
}),
|
|
48243
48713
|
role: 'combobox',
|
|
@@ -48385,7 +48855,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
48385
48855
|
|
|
48386
48856
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
48387
48857
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48388
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
48858
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), defineProperty_defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
48389
48859
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
48390
48860
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48391
48861
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -48800,7 +49270,7 @@ var Selector = function Selector(props, ref) {
|
|
|
48800
49270
|
onInputCompositionStart: onInputCompositionStart,
|
|
48801
49271
|
onInputCompositionEnd: onInputCompositionEnd
|
|
48802
49272
|
};
|
|
48803
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
49273
|
+
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector, esm_extends_extends({}, props, sharedProps)) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Selector_SingleSelector, esm_extends_extends({}, props, sharedProps));
|
|
48804
49274
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
48805
49275
|
ref: domRef,
|
|
48806
49276
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -48845,7 +49315,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
48845
49315
|
|
|
48846
49316
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
48847
49317
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
48848
|
-
return
|
|
49318
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, baseAlign), align);
|
|
48849
49319
|
}
|
|
48850
49320
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
48851
49321
|
var points = align.points;
|
|
@@ -48909,7 +49379,7 @@ function Mask_Mask(props) {
|
|
|
48909
49379
|
var motion = {};
|
|
48910
49380
|
|
|
48911
49381
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
48912
|
-
motion =
|
|
49382
|
+
motion = objectSpread2_objectSpread2({
|
|
48913
49383
|
motionAppear: true
|
|
48914
49384
|
}, getMotion({
|
|
48915
49385
|
motion: maskMotion,
|
|
@@ -48919,7 +49389,7 @@ function Mask_Mask(props) {
|
|
|
48919
49389
|
}));
|
|
48920
49390
|
}
|
|
48921
49391
|
|
|
48922
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49392
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({}, motion, {
|
|
48923
49393
|
visible: visible,
|
|
48924
49394
|
removeOnLeave: true
|
|
48925
49395
|
}), function (_ref) {
|
|
@@ -50431,7 +50901,7 @@ function getElement(func) {
|
|
|
50431
50901
|
}
|
|
50432
50902
|
|
|
50433
50903
|
function getPoint(point) {
|
|
50434
|
-
if (
|
|
50904
|
+
if (esm_typeof_typeof(point) !== 'object' || !point) return null;
|
|
50435
50905
|
return point;
|
|
50436
50906
|
}
|
|
50437
50907
|
|
|
@@ -50645,9 +51115,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
50645
51115
|
}
|
|
50646
51116
|
|
|
50647
51117
|
if (status) {
|
|
50648
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
51118
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
50649
51119
|
var index, nextStatus;
|
|
50650
|
-
return
|
|
51120
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
50651
51121
|
while (1) {
|
|
50652
51122
|
switch (_context.prev = _context.next) {
|
|
50653
51123
|
case 0:
|
|
@@ -50820,7 +51290,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
50820
51290
|
} // ======================== Motion ========================
|
|
50821
51291
|
|
|
50822
51292
|
|
|
50823
|
-
var motion =
|
|
51293
|
+
var motion = objectSpread2_objectSpread2({}, getMotion(props));
|
|
50824
51294
|
|
|
50825
51295
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
50826
51296
|
var originHandler = motion[eventName];
|
|
@@ -50853,7 +51323,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
50853
51323
|
};
|
|
50854
51324
|
}); // ======================== Render ========================
|
|
50855
51325
|
|
|
50856
|
-
var mergedStyle =
|
|
51326
|
+
var mergedStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, stretchStyle), {}, {
|
|
50857
51327
|
zIndex: zIndex,
|
|
50858
51328
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
50859
51329
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -50874,7 +51344,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
50874
51344
|
}, children);
|
|
50875
51345
|
}
|
|
50876
51346
|
|
|
50877
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51347
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
50878
51348
|
visible: visible,
|
|
50879
51349
|
ref: elementRef,
|
|
50880
51350
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -50902,7 +51372,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
50902
51372
|
onMouseLeave: onMouseLeave,
|
|
50903
51373
|
onMouseDownCapture: onMouseDown,
|
|
50904
51374
|
onTouchStartCapture: onTouchStart,
|
|
50905
|
-
style:
|
|
51375
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), mergedStyle)
|
|
50906
51376
|
}, childNode));
|
|
50907
51377
|
});
|
|
50908
51378
|
});
|
|
@@ -50937,7 +51407,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
50937
51407
|
};
|
|
50938
51408
|
}); // ======================== Render ========================
|
|
50939
51409
|
|
|
50940
|
-
var mergedStyle =
|
|
51410
|
+
var mergedStyle = objectSpread2_objectSpread2({
|
|
50941
51411
|
zIndex: zIndex
|
|
50942
51412
|
}, popupStyle);
|
|
50943
51413
|
|
|
@@ -50954,7 +51424,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
50954
51424
|
childNode = popupRender(childNode);
|
|
50955
51425
|
}
|
|
50956
51426
|
|
|
50957
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51427
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
50958
51428
|
visible: visible,
|
|
50959
51429
|
ref: elementRef,
|
|
50960
51430
|
removeOnLeave: true
|
|
@@ -50965,7 +51435,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
50965
51435
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
50966
51436
|
ref: motionRef,
|
|
50967
51437
|
className: mergedClassName,
|
|
50968
|
-
style:
|
|
51438
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), mergedStyle)
|
|
50969
51439
|
}, childNode);
|
|
50970
51440
|
});
|
|
50971
51441
|
});
|
|
@@ -50986,7 +51456,7 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
50986
51456
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
50987
51457
|
var visible = _ref.visible,
|
|
50988
51458
|
mobile = _ref.mobile,
|
|
50989
|
-
props =
|
|
51459
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref, Popup_excluded);
|
|
50990
51460
|
|
|
50991
51461
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
50992
51462
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
@@ -50998,7 +51468,7 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
50998
51468
|
inMobile = _useState4[0],
|
|
50999
51469
|
setInMobile = _useState4[1];
|
|
51000
51470
|
|
|
51001
|
-
var cloneProps =
|
|
51471
|
+
var cloneProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
51002
51472
|
visible: innerVisible
|
|
51003
51473
|
}); // We check mobile in visible changed here.
|
|
51004
51474
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51011,10 +51481,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51011
51481
|
setInMobile(isMobile());
|
|
51012
51482
|
}
|
|
51013
51483
|
}, [visible, mobile]);
|
|
51014
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51484
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, esm_extends_extends({}, cloneProps, {
|
|
51015
51485
|
mobile: mobile,
|
|
51016
51486
|
ref: ref
|
|
51017
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51487
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, esm_extends_extends({}, cloneProps, {
|
|
51018
51488
|
ref: ref
|
|
51019
51489
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51020
51490
|
|
|
@@ -51068,14 +51538,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51068
51538
|
|
|
51069
51539
|
function generateTrigger(PortalComponent) {
|
|
51070
51540
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51071
|
-
|
|
51541
|
+
inherits_inherits(Trigger, _React$Component);
|
|
51072
51542
|
|
|
51073
|
-
var _super =
|
|
51543
|
+
var _super = createSuper_createSuper(Trigger);
|
|
51074
51544
|
|
|
51075
51545
|
function Trigger(props) {
|
|
51076
51546
|
var _this;
|
|
51077
51547
|
|
|
51078
|
-
|
|
51548
|
+
classCallCheck_classCallCheck(this, Trigger);
|
|
51079
51549
|
|
|
51080
51550
|
_this = _super.call(this, props);
|
|
51081
51551
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -51263,7 +51733,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51263
51733
|
} catch (err) {// Do nothing
|
|
51264
51734
|
}
|
|
51265
51735
|
|
|
51266
|
-
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(
|
|
51736
|
+
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(assertThisInitialized_assertThisInitialized(_this));
|
|
51267
51737
|
};
|
|
51268
51738
|
|
|
51269
51739
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -51324,7 +51794,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51324
51794
|
|
|
51325
51795
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
51326
51796
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
51327
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup,
|
|
51797
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup, esm_extends_extends({
|
|
51328
51798
|
prefixCls: prefixCls,
|
|
51329
51799
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
51330
51800
|
visible: popupVisible,
|
|
@@ -51437,7 +51907,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51437
51907
|
return _this;
|
|
51438
51908
|
}
|
|
51439
51909
|
|
|
51440
|
-
|
|
51910
|
+
createClass_createClass(Trigger, [{
|
|
51441
51911
|
key: "componentDidMount",
|
|
51442
51912
|
value: function componentDidMount() {
|
|
51443
51913
|
this.componentDidUpdate();
|
|
@@ -51762,7 +52232,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51762
52232
|
newChildProps.className = childrenClassName;
|
|
51763
52233
|
}
|
|
51764
52234
|
|
|
51765
|
-
var cloneProps =
|
|
52235
|
+
var cloneProps = objectSpread2_objectSpread2({}, newChildProps);
|
|
51766
52236
|
|
|
51767
52237
|
if (supportRef(child)) {
|
|
51768
52238
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -51903,7 +52373,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
51903
52373
|
empty = props.empty,
|
|
51904
52374
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
51905
52375
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
51906
|
-
restProps =
|
|
52376
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SelectTrigger_excluded);
|
|
51907
52377
|
|
|
51908
52378
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
51909
52379
|
var popupNode = popupElement;
|
|
@@ -51927,7 +52397,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
51927
52397
|
};
|
|
51928
52398
|
});
|
|
51929
52399
|
|
|
51930
|
-
var popupStyle =
|
|
52400
|
+
var popupStyle = objectSpread2_objectSpread2({
|
|
51931
52401
|
minWidth: containerWidth
|
|
51932
52402
|
}, dropdownStyle);
|
|
51933
52403
|
|
|
@@ -51937,7 +52407,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
51937
52407
|
popupStyle.width = containerWidth;
|
|
51938
52408
|
}
|
|
51939
52409
|
|
|
51940
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
52410
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, esm_extends_extends({}, restProps, {
|
|
51941
52411
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
51942
52412
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
51943
52413
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -51950,7 +52420,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
51950
52420
|
popupAlign: dropdownAlign,
|
|
51951
52421
|
popupVisible: visible,
|
|
51952
52422
|
getPopupContainer: getPopupContainer,
|
|
51953
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52423
|
+
popupClassName: classnames_default()(dropdownClassName, defineProperty_defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
51954
52424
|
popupStyle: popupStyle,
|
|
51955
52425
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
51956
52426
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52053,7 +52523,7 @@ function useCacheDisplayValue(values) {
|
|
|
52053
52523
|
var cacheLabel = valueLabels.get(item.value);
|
|
52054
52524
|
|
|
52055
52525
|
if (item.isCacheable && cacheLabel) {
|
|
52056
|
-
return
|
|
52526
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
52057
52527
|
label: cacheLabel
|
|
52058
52528
|
});
|
|
52059
52529
|
}
|
|
@@ -52215,7 +52685,7 @@ function generateSelector(config) {
|
|
|
52215
52685
|
onClear = props.onClear,
|
|
52216
52686
|
_props$internalProps = props.internalProps,
|
|
52217
52687
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
52218
|
-
restProps =
|
|
52688
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, generate_excluded);
|
|
52219
52689
|
|
|
52220
52690
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
52221
52691
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -52353,7 +52823,7 @@ function generateSelector(config) {
|
|
|
52353
52823
|
|
|
52354
52824
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
52355
52825
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
52356
|
-
return
|
|
52826
|
+
return toConsumableArray_toConsumableArray(mergedOptions);
|
|
52357
52827
|
}
|
|
52358
52828
|
|
|
52359
52829
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -52374,7 +52844,7 @@ function generateSelector(config) {
|
|
|
52374
52844
|
}
|
|
52375
52845
|
|
|
52376
52846
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
52377
|
-
return
|
|
52847
|
+
return toConsumableArray_toConsumableArray(filteredOptions).sort(filterSort);
|
|
52378
52848
|
}
|
|
52379
52849
|
|
|
52380
52850
|
return filteredOptions;
|
|
@@ -52397,7 +52867,7 @@ function generateSelector(config) {
|
|
|
52397
52867
|
labelInValue: mergedLabelInValue,
|
|
52398
52868
|
optionLabelProp: mergedOptionLabelProp
|
|
52399
52869
|
});
|
|
52400
|
-
return
|
|
52870
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, displayValue), {}, {
|
|
52401
52871
|
disabled: isValueDisabled(val, valueOptions)
|
|
52402
52872
|
});
|
|
52403
52873
|
});
|
|
@@ -52471,7 +52941,7 @@ function generateSelector(config) {
|
|
|
52471
52941
|
}); // We will cache option in case it removed by ajax
|
|
52472
52942
|
|
|
52473
52943
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
52474
|
-
var clone =
|
|
52944
|
+
var clone = objectSpread2_objectSpread2({}, option);
|
|
52475
52945
|
|
|
52476
52946
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
52477
52947
|
get: function get() {
|
|
@@ -52527,13 +52997,13 @@ function generateSelector(config) {
|
|
|
52527
52997
|
};
|
|
52528
52998
|
|
|
52529
52999
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
52530
|
-
onInternalSelect(newValue,
|
|
53000
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
52531
53001
|
source: 'option'
|
|
52532
53002
|
}));
|
|
52533
53003
|
};
|
|
52534
53004
|
|
|
52535
53005
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
52536
|
-
onInternalSelect(newValue,
|
|
53006
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
52537
53007
|
source: 'selection'
|
|
52538
53008
|
}));
|
|
52539
53009
|
}; // ============================= Input ==============================
|
|
@@ -52617,7 +53087,7 @@ function generateSelector(config) {
|
|
|
52617
53087
|
});
|
|
52618
53088
|
}
|
|
52619
53089
|
|
|
52620
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53090
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), toConsumableArray_toConsumableArray(patchRawValues))));
|
|
52621
53091
|
triggerChange(newRawValues);
|
|
52622
53092
|
newRawValues.forEach(function (newRawValue) {
|
|
52623
53093
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -52646,7 +53116,7 @@ function generateSelector(config) {
|
|
|
52646
53116
|
return;
|
|
52647
53117
|
}
|
|
52648
53118
|
|
|
52649
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53119
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [searchText])));
|
|
52650
53120
|
triggerChange(newRawValues);
|
|
52651
53121
|
newRawValues.forEach(function (newRawValue) {
|
|
52652
53122
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -52779,7 +53249,7 @@ function generateSelector(config) {
|
|
|
52779
53249
|
// `tags` mode should move `searchValue` into values
|
|
52780
53250
|
if (mode === 'tags') {
|
|
52781
53251
|
triggerSearch('', false, false);
|
|
52782
|
-
triggerChange(Array.from(new Set([].concat(
|
|
53252
|
+
triggerChange(Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
52783
53253
|
} else if (mode === 'multiple') {
|
|
52784
53254
|
// `multiple` mode only clean the search value but not trigger event
|
|
52785
53255
|
setInnerSearchValue('');
|
|
@@ -52937,7 +53407,7 @@ function generateSelector(config) {
|
|
|
52937
53407
|
|
|
52938
53408
|
if (mergedShowArrow) {
|
|
52939
53409
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
52940
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53410
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), defineProperty_defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
52941
53411
|
customizeIcon: inputIcon,
|
|
52942
53412
|
customizeIconProps: {
|
|
52943
53413
|
loading: loading,
|
|
@@ -52953,7 +53423,7 @@ function generateSelector(config) {
|
|
|
52953
53423
|
if (false) {} // ============================= Render =============================
|
|
52954
53424
|
|
|
52955
53425
|
|
|
52956
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
53426
|
+
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {}, defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-focused"), mockFocused), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-multiple"), isMultiple), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-single"), !isMultiple), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-show-arrow"), mergedShowArrow), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-loading"), loading), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-open"), mergedOpen), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch), _classNames2));
|
|
52957
53427
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
52958
53428
|
ref: triggerRef,
|
|
52959
53429
|
disabled: disabled,
|
|
@@ -52978,7 +53448,7 @@ function generateSelector(config) {
|
|
|
52978
53448
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
52979
53449
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
52980
53450
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
52981
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
53451
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, esm_extends_extends({}, props, {
|
|
52982
53452
|
domRef: selectorDomRef,
|
|
52983
53453
|
prefixCls: prefixCls,
|
|
52984
53454
|
inputElement: customizeInputElement,
|
|
@@ -53004,7 +53474,7 @@ function generateSelector(config) {
|
|
|
53004
53474
|
return selectorNode;
|
|
53005
53475
|
}
|
|
53006
53476
|
|
|
53007
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
53477
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
53008
53478
|
className: mergedClassName
|
|
53009
53479
|
}, domProps, {
|
|
53010
53480
|
ref: containerRef,
|
|
@@ -53091,7 +53561,7 @@ function warningProps(props) {
|
|
|
53091
53561
|
if (value !== undefined && value !== null) {
|
|
53092
53562
|
var values = commonUtil_toArray(value);
|
|
53093
53563
|
es_warning(!labelInValue || values.every(function (val) {
|
|
53094
|
-
return
|
|
53564
|
+
return esm_typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
53095
53565
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
53096
53566
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
53097
53567
|
} // Syntactic sugar should use correct children type
|
|
@@ -53205,14 +53675,14 @@ var RefSelect = generateSelector({
|
|
|
53205
53675
|
*/
|
|
53206
53676
|
|
|
53207
53677
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
53208
|
-
|
|
53678
|
+
inherits_inherits(Select, _React$Component);
|
|
53209
53679
|
|
|
53210
|
-
var _super =
|
|
53680
|
+
var _super = createSuper_createSuper(Select);
|
|
53211
53681
|
|
|
53212
53682
|
function Select() {
|
|
53213
53683
|
var _this;
|
|
53214
53684
|
|
|
53215
|
-
|
|
53685
|
+
classCallCheck_classCallCheck(this, Select);
|
|
53216
53686
|
|
|
53217
53687
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53218
53688
|
args[_key] = arguments[_key];
|
|
@@ -53232,10 +53702,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
53232
53702
|
return _this;
|
|
53233
53703
|
}
|
|
53234
53704
|
|
|
53235
|
-
|
|
53705
|
+
createClass_createClass(Select, [{
|
|
53236
53706
|
key: "render",
|
|
53237
53707
|
value: function render() {
|
|
53238
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
53708
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, esm_extends_extends({
|
|
53239
53709
|
ref: this.selectRef
|
|
53240
53710
|
}, this.props));
|
|
53241
53711
|
}
|
|
@@ -54899,6 +55369,7 @@ function detail_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
54899
55369
|
|
|
54900
55370
|
|
|
54901
55371
|
|
|
55372
|
+
|
|
54902
55373
|
// import IMChatroom from '@/component/IMChatroom'
|
|
54903
55374
|
|
|
54904
55375
|
|
|
@@ -54989,7 +55460,7 @@ function PublicLiveDetail(_ref) {
|
|
|
54989
55460
|
userRole = loginInfo.userRole,
|
|
54990
55461
|
loginStatus = loginInfo.loginStatus;
|
|
54991
55462
|
var isLiveToReplay = !replay;
|
|
54992
|
-
var isStreamLive = liveInfo && liveInfo.type === PUBLIC_LIVE_MODE.LIVING;
|
|
55463
|
+
var isStreamLive = liveInfo && liveInfo.type === PUBLIC_LIVE_MODE.LIVING && (liveInfo.sub_type === publicLive_SUB_TYPE.OUTSIDE || liveInfo.sub_type === publicLive_SUB_TYPE.REBROADCAST);
|
|
54993
55464
|
|
|
54994
55465
|
var handleStatusChange = /*#__PURE__*/function () {
|
|
54995
55466
|
var _ref2 = detail_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(status) {
|
|
@@ -55014,7 +55485,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55014
55485
|
subType = liveInfo.sub_type, bid = liveInfo.bid, roomId = liveInfo.room_id;
|
|
55015
55486
|
imLiveInfoResp = {}; // 如果类型为外部推流, 则去请求新的直播详情接口
|
|
55016
55487
|
|
|
55017
|
-
if (!(subType ===
|
|
55488
|
+
if (!(subType === publicLive_SUB_TYPE.OUTSIDE || subType === publicLive_SUB_TYPE.REBROADCAST)) {
|
|
55018
55489
|
_context.next = 14;
|
|
55019
55490
|
break;
|
|
55020
55491
|
}
|
|
@@ -55135,7 +55606,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55135
55606
|
subType = data.sub_type, bid = data.bid, roomId = data.room_id;
|
|
55136
55607
|
imLiveInfoResp = {}; // 如果类型为外部推流, 则去请求新的直播详情接口
|
|
55137
55608
|
|
|
55138
|
-
if (!(subType ===
|
|
55609
|
+
if (!(subType === publicLive_SUB_TYPE.OUTSIDE || subType === publicLive_SUB_TYPE.REBROADCAST)) {
|
|
55139
55610
|
_context2.next = 26;
|
|
55140
55611
|
break;
|
|
55141
55612
|
}
|
|
@@ -55172,6 +55643,19 @@ function PublicLiveDetail(_ref) {
|
|
|
55172
55643
|
data.imInfo = imLiveInfoResp;
|
|
55173
55644
|
|
|
55174
55645
|
case 31:
|
|
55646
|
+
if (!(data.type === PUBLIC_LIVE_MODE.LIVING && data.sub_type === publicLive_SUB_TYPE.OUTSIDE)) {
|
|
55647
|
+
_context2.next = 34;
|
|
55648
|
+
break;
|
|
55649
|
+
}
|
|
55650
|
+
|
|
55651
|
+
_context2.next = 36;
|
|
55652
|
+
break;
|
|
55653
|
+
|
|
55654
|
+
case 34:
|
|
55655
|
+
_context2.next = 36;
|
|
55656
|
+
return push.init();
|
|
55657
|
+
|
|
55658
|
+
case 36:
|
|
55175
55659
|
// 如果是转播或者是推流 直接播放(用于调试模式)
|
|
55176
55660
|
_getUrlQuery2 = (0,url/* getUrlQuery */.pf)(), preview = _getUrlQuery2.preview; // 后台点预览会加这个参数
|
|
55177
55661
|
|
|
@@ -55180,7 +55664,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55180
55664
|
}) : data;
|
|
55181
55665
|
setLiveInfo(generateInfo);
|
|
55182
55666
|
|
|
55183
|
-
case
|
|
55667
|
+
case 39:
|
|
55184
55668
|
case "end":
|
|
55185
55669
|
return _context2.stop();
|
|
55186
55670
|
}
|
|
@@ -55195,6 +55679,31 @@ function PublicLiveDetail(_ref) {
|
|
|
55195
55679
|
|
|
55196
55680
|
init();
|
|
55197
55681
|
}, []);
|
|
55682
|
+
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
55683
|
+
if (!liveInfo || liveInfo.sub_type === publicLive_SUB_TYPE.OUTSIDE) {
|
|
55684
|
+
return;
|
|
55685
|
+
}
|
|
55686
|
+
|
|
55687
|
+
var handler = function handler(data) {
|
|
55688
|
+
var _data$extraFields = data.extraFields,
|
|
55689
|
+
extraFields = _data$extraFields === void 0 ? {} : _data$extraFields;
|
|
55690
|
+
console.log('public Live:', data);
|
|
55691
|
+
|
|
55692
|
+
if (extraFields.event === PUBLIC_LIVE_PUSH_EVENT.STATUS_CHANGE && extraFields.liveId === liveId) {
|
|
55693
|
+
console.log("public Live: receive push status ".concat(parseInt(extraFields.status, 10)));
|
|
55694
|
+
handleStatusChange(parseInt(extraFields.status, 10));
|
|
55695
|
+
}
|
|
55696
|
+
};
|
|
55697
|
+
|
|
55698
|
+
push.addTopicListener("".concat(PUBLIC_LIVE_PUSH_TOPIC, "_").concat(liveId), handler);
|
|
55699
|
+
return function () {
|
|
55700
|
+
if (!liveInfo || liveInfo.sub_type === publicLive_SUB_TYPE.OUTSIDE) {
|
|
55701
|
+
return;
|
|
55702
|
+
}
|
|
55703
|
+
|
|
55704
|
+
push.removeTopicListener("".concat(PUBLIC_LIVE_PUSH_TOPIC, "_").concat(liveId), handler);
|
|
55705
|
+
};
|
|
55706
|
+
}, [!!liveInfo]);
|
|
55198
55707
|
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
55199
55708
|
if (userInfo) {
|
|
55200
55709
|
onReportProgress();
|
|
@@ -55321,7 +55830,6 @@ function PublicLiveDetail(_ref) {
|
|
|
55321
55830
|
},
|
|
55322
55831
|
onRequestFullScreen: handleRequestFullScreen
|
|
55323
55832
|
}) : isRecordLive ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(RecordVideo, {
|
|
55324
|
-
isStreamLive: isStreamLive,
|
|
55325
55833
|
userInfo: userInfo,
|
|
55326
55834
|
liveInfo: liveInfo,
|
|
55327
55835
|
visitTime: visitTime,
|
|
@@ -55335,7 +55843,6 @@ function PublicLiveDetail(_ref) {
|
|
|
55335
55843
|
},
|
|
55336
55844
|
onRequestFullScreen: handleRequestFullScreen
|
|
55337
55845
|
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(LiveVideo, {
|
|
55338
|
-
isStreamLive: isStreamLive,
|
|
55339
55846
|
handleLogin: handleLogin,
|
|
55340
55847
|
userInfo: userInfo,
|
|
55341
55848
|
liveInfo: liveInfo,
|
|
@@ -55349,7 +55856,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55349
55856
|
handleVideoPlay(true);
|
|
55350
55857
|
},
|
|
55351
55858
|
onRequestFullScreen: handleRequestFullScreen
|
|
55352
|
-
})), !isReplayMode && !isRecordLive &&
|
|
55859
|
+
})), !isReplayMode && !isRecordLive && isStreamLive && liveInfo.status !== publicLive_PUBLIC_LIVE_STATUS.COMPLETEED && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(LineSwitch, {
|
|
55353
55860
|
className: src_detail_index_module["live-line-switch"],
|
|
55354
55861
|
liveInfo: liveInfo,
|
|
55355
55862
|
onChange: handleSelectChange
|
|
@@ -55542,7 +56049,7 @@ function TabNode(_ref, ref) {
|
|
|
55542
56049
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
55543
56050
|
key: key,
|
|
55544
56051
|
ref: ref,
|
|
55545
|
-
className: classnames_default()(tabPrefix, (_classNames = {},
|
|
56052
|
+
className: classnames_default()(tabPrefix, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(tabPrefix, "-with-remove"), removable), defineProperty_defineProperty(_classNames, "".concat(tabPrefix, "-active"), active), defineProperty_defineProperty(_classNames, "".concat(tabPrefix, "-disabled"), disabled), _classNames)),
|
|
55546
56053
|
style: style,
|
|
55547
56054
|
onClick: onInternalClick
|
|
55548
56055
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -55605,7 +56112,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
55605
56112
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
55606
56113
|
}
|
|
55607
56114
|
|
|
55608
|
-
var entity = map.get(key) ||
|
|
56115
|
+
var entity = map.get(key) || objectSpread2_objectSpread2({}, data); // Right
|
|
55609
56116
|
|
|
55610
56117
|
|
|
55611
56118
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -55700,7 +56207,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
55700
56207
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
55701
56208
|
|
|
55702
56209
|
function mergeProps(origin, target) {
|
|
55703
|
-
var clone =
|
|
56210
|
+
var clone = objectSpread2_objectSpread2({}, origin);
|
|
55704
56211
|
|
|
55705
56212
|
Object.keys(target).forEach(function (key) {
|
|
55706
56213
|
var value = target[key];
|
|
@@ -55715,7 +56222,7 @@ function mergeProps(origin, target) {
|
|
|
55715
56222
|
function InheritableContextProvider(_ref) {
|
|
55716
56223
|
var children = _ref.children,
|
|
55717
56224
|
locked = _ref.locked,
|
|
55718
|
-
restProps =
|
|
56225
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, MenuContext_excluded);
|
|
55719
56226
|
|
|
55720
56227
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
55721
56228
|
var inheritableContext = useMemo(function () {
|
|
@@ -55771,7 +56278,7 @@ var warnUtil_excluded = ["item"];
|
|
|
55771
56278
|
|
|
55772
56279
|
function warnItemProp(_ref) {
|
|
55773
56280
|
var item = _ref.item,
|
|
55774
|
-
restInfo =
|
|
56281
|
+
restInfo = objectWithoutProperties_objectWithoutProperties(_ref, warnUtil_excluded);
|
|
55775
56282
|
|
|
55776
56283
|
Object.defineProperty(restInfo, 'item', {
|
|
55777
56284
|
get: function get() {
|
|
@@ -55791,7 +56298,7 @@ function es_Icon_Icon(_ref) {
|
|
|
55791
56298
|
var iconNode;
|
|
55792
56299
|
|
|
55793
56300
|
if (typeof icon === 'function') {
|
|
55794
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
56301
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, objectSpread2_objectSpread2({}, props));
|
|
55795
56302
|
} else {
|
|
55796
56303
|
// Compatible for origin definition
|
|
55797
56304
|
iconNode = icon;
|
|
@@ -55832,7 +56339,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
55832
56339
|
function useFullPath(eventKey) {
|
|
55833
56340
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
55834
56341
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
55835
|
-
return eventKey !== undefined ? [].concat(
|
|
56342
|
+
return eventKey !== undefined ? [].concat(toConsumableArray_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
55836
56343
|
}, [parentKeyPath, eventKey]);
|
|
55837
56344
|
}
|
|
55838
56345
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -55889,28 +56396,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
55889
56396
|
// This should be removed from doc & api in future.
|
|
55890
56397
|
|
|
55891
56398
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
55892
|
-
|
|
56399
|
+
inherits_inherits(LegacyMenuItem, _React$Component);
|
|
55893
56400
|
|
|
55894
|
-
var _super =
|
|
56401
|
+
var _super = createSuper_createSuper(LegacyMenuItem);
|
|
55895
56402
|
|
|
55896
56403
|
function LegacyMenuItem() {
|
|
55897
|
-
|
|
56404
|
+
classCallCheck_classCallCheck(this, LegacyMenuItem);
|
|
55898
56405
|
|
|
55899
56406
|
return _super.apply(this, arguments);
|
|
55900
56407
|
}
|
|
55901
56408
|
|
|
55902
|
-
|
|
56409
|
+
createClass_createClass(LegacyMenuItem, [{
|
|
55903
56410
|
key: "render",
|
|
55904
56411
|
value: function render() {
|
|
55905
56412
|
var _this$props = this.props,
|
|
55906
56413
|
title = _this$props.title,
|
|
55907
56414
|
attribute = _this$props.attribute,
|
|
55908
56415
|
elementRef = _this$props.elementRef,
|
|
55909
|
-
restProps =
|
|
56416
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
55910
56417
|
|
|
55911
56418
|
var passedProps = omit(restProps, ['eventKey']);
|
|
55912
56419
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
55913
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56420
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, esm_extends_extends({}, attribute, {
|
|
55914
56421
|
title: typeof title === 'string' ? title : undefined
|
|
55915
56422
|
}, passedProps, {
|
|
55916
56423
|
ref: elementRef
|
|
@@ -55941,7 +56448,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
55941
56448
|
onClick = props.onClick,
|
|
55942
56449
|
onKeyDown = props.onKeyDown,
|
|
55943
56450
|
onFocus = props.onFocus,
|
|
55944
|
-
restProps =
|
|
56451
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, MenuItem_excluded2);
|
|
55945
56452
|
|
|
55946
56453
|
var domDataId = useMenuId(eventKey);
|
|
55947
56454
|
|
|
@@ -55970,7 +56477,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
55970
56477
|
return {
|
|
55971
56478
|
key: eventKey,
|
|
55972
56479
|
// Note: For legacy code is reversed which not like other antd component
|
|
55973
|
-
keyPath:
|
|
56480
|
+
keyPath: toConsumableArray_toConsumableArray(connectedKeys).reverse(),
|
|
55974
56481
|
item: legacyMenuItemRef.current,
|
|
55975
56482
|
domEvent: e
|
|
55976
56483
|
};
|
|
@@ -55981,7 +56488,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
55981
56488
|
|
|
55982
56489
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
55983
56490
|
active = _useActive.active,
|
|
55984
|
-
activeProps =
|
|
56491
|
+
activeProps = objectWithoutProperties_objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
55985
56492
|
|
|
55986
56493
|
|
|
55987
56494
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56026,7 +56533,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56026
56533
|
optionRoleProps['aria-selected'] = selected;
|
|
56027
56534
|
}
|
|
56028
56535
|
|
|
56029
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56536
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, esm_extends_extends({
|
|
56030
56537
|
ref: legacyMenuItemRef,
|
|
56031
56538
|
elementRef: elementRef,
|
|
56032
56539
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56035,13 +56542,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56035
56542
|
}, restProps, activeProps, optionRoleProps, {
|
|
56036
56543
|
component: "li",
|
|
56037
56544
|
"aria-disabled": disabled,
|
|
56038
|
-
style:
|
|
56039
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56545
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, directionStyle), style),
|
|
56546
|
+
className: classnames_default()(itemCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(itemCls, "-active"), active), defineProperty_defineProperty(_classNames, "".concat(itemCls, "-selected"), selected), defineProperty_defineProperty(_classNames, "".concat(itemCls, "-disabled"), mergedDisabled), _classNames), className),
|
|
56040
56547
|
onClick: onInternalClick,
|
|
56041
56548
|
onKeyDown: onInternalKeyDown,
|
|
56042
56549
|
onFocus: onInternalFocus
|
|
56043
56550
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56044
|
-
props:
|
|
56551
|
+
props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
56045
56552
|
isSelected: selected
|
|
56046
56553
|
}),
|
|
56047
56554
|
icon: mergedItemIcon
|
|
@@ -56094,7 +56601,7 @@ function parseChildren(children, keyPath) {
|
|
|
56094
56601
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56095
56602
|
|
|
56096
56603
|
if (emptyKey) {
|
|
56097
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56604
|
+
eventKey = "tmp_key-".concat([].concat(toConsumableArray_toConsumableArray(keyPath), [index]).join('-'));
|
|
56098
56605
|
}
|
|
56099
56606
|
|
|
56100
56607
|
var cloneProps = {
|
|
@@ -56142,14 +56649,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56142
56649
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56143
56650
|
var className = _ref.className,
|
|
56144
56651
|
children = _ref.children,
|
|
56145
|
-
restProps =
|
|
56652
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56146
56653
|
|
|
56147
56654
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56148
56655
|
prefixCls = _React$useContext.prefixCls,
|
|
56149
56656
|
mode = _React$useContext.mode,
|
|
56150
56657
|
rtl = _React$useContext.rtl;
|
|
56151
56658
|
|
|
56152
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
56659
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", esm_extends_extends({
|
|
56153
56660
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56154
56661
|
}, restProps, {
|
|
56155
56662
|
"data-menu-list": true,
|
|
@@ -56266,11 +56773,11 @@ function PopupTrigger(_ref) {
|
|
|
56266
56773
|
innerVisible = _React$useState2[0],
|
|
56267
56774
|
setInnerVisible = _React$useState2[1];
|
|
56268
56775
|
|
|
56269
|
-
var placement = rtl ?
|
|
56776
|
+
var placement = rtl ? objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, placementsRtl), builtinPlacements) : objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, placements), builtinPlacements);
|
|
56270
56777
|
var popupPlacement = popupPlacementMap[mode];
|
|
56271
56778
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
56272
56779
|
|
|
56273
|
-
var mergedMotion =
|
|
56780
|
+
var mergedMotion = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, targetMotion), {}, {
|
|
56274
56781
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
56275
56782
|
removeOnLeave: false,
|
|
56276
56783
|
motionAppear: true
|
|
@@ -56288,7 +56795,7 @@ function PopupTrigger(_ref) {
|
|
|
56288
56795
|
}, [visible]);
|
|
56289
56796
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
56290
56797
|
prefixCls: prefixCls,
|
|
56291
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
56798
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), defineProperty_defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
56292
56799
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
56293
56800
|
getPopupContainer: getPopupContainer,
|
|
56294
56801
|
builtinPlacements: placement,
|
|
@@ -56348,7 +56855,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56348
56855
|
}
|
|
56349
56856
|
}, [mode]); // ================================= Render =================================
|
|
56350
56857
|
|
|
56351
|
-
var mergedMotion =
|
|
56858
|
+
var mergedMotion = objectSpread2_objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
56352
56859
|
|
|
56353
56860
|
|
|
56354
56861
|
if (keyPath.length > 1) {
|
|
@@ -56373,7 +56880,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56373
56880
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
56374
56881
|
mode: fixedMode,
|
|
56375
56882
|
locked: !sameModeRef.current
|
|
56376
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
56883
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
56377
56884
|
visible: mergedOpen
|
|
56378
56885
|
}, mergedMotion, {
|
|
56379
56886
|
forceRender: forceSubMenuRender,
|
|
@@ -56436,7 +56943,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56436
56943
|
onTitleClick = props.onTitleClick,
|
|
56437
56944
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
56438
56945
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
56439
|
-
restProps =
|
|
56946
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SubMenu_excluded);
|
|
56440
56947
|
|
|
56441
56948
|
var domDataId = useMenuId(eventKey);
|
|
56442
56949
|
|
|
@@ -56479,7 +56986,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56479
56986
|
|
|
56480
56987
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
56481
56988
|
active = _useActive.active,
|
|
56482
|
-
activeProps =
|
|
56989
|
+
activeProps = objectWithoutProperties_objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
56483
56990
|
|
|
56484
56991
|
|
|
56485
56992
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
@@ -56564,7 +57071,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56564
57071
|
|
|
56565
57072
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
56566
57073
|
|
|
56567
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
57074
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
56568
57075
|
role: "menuitem",
|
|
56569
57076
|
style: directionStyle,
|
|
56570
57077
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -56580,7 +57087,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56580
57087
|
onFocus: onInternalFocus
|
|
56581
57088
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56582
57089
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
56583
|
-
props:
|
|
57090
|
+
props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
56584
57091
|
isOpen: open,
|
|
56585
57092
|
// [Legacy] Not sure why need this mark
|
|
56586
57093
|
isSubMenu: true
|
|
@@ -56618,12 +57125,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56618
57125
|
} // >>>>> List node
|
|
56619
57126
|
|
|
56620
57127
|
|
|
56621
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
57128
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, esm_extends_extends({
|
|
56622
57129
|
role: "none"
|
|
56623
57130
|
}, restProps, {
|
|
56624
57131
|
component: "li",
|
|
56625
57132
|
style: style,
|
|
56626
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
57133
|
+
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-open"), open), defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-active"), mergedActive), defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-selected"), childrenSelected), defineProperty_defineProperty(_classNames, "".concat(subMenuPrefixCls, "-disabled"), mergedDisabled), _classNames)),
|
|
56627
57134
|
onMouseEnter: onInternalMouseEnter,
|
|
56628
57135
|
onMouseLeave: onInternalMouseLeave
|
|
56629
57136
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -56716,7 +57223,7 @@ function focusable(node) {
|
|
|
56716
57223
|
function getFocusNodeList(node) {
|
|
56717
57224
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
56718
57225
|
|
|
56719
|
-
var res =
|
|
57226
|
+
var res = toConsumableArray_toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
56720
57227
|
return focusable(child, includePositive);
|
|
56721
57228
|
});
|
|
56722
57229
|
|
|
@@ -56796,9 +57303,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
56796
57303
|
};
|
|
56797
57304
|
}
|
|
56798
57305
|
|
|
56799
|
-
var inline = (_inline = {},
|
|
56800
|
-
var horizontal = (_horizontal = {},
|
|
56801
|
-
var vertical = (_vertical = {},
|
|
57306
|
+
var inline = (_inline = {}, defineProperty_defineProperty(_inline, UP, prev), defineProperty_defineProperty(_inline, DOWN, next), _inline);
|
|
57307
|
+
var horizontal = (_horizontal = {}, defineProperty_defineProperty(_horizontal, useAccessibility_LEFT, isRtl ? next : prev), defineProperty_defineProperty(_horizontal, RIGHT, isRtl ? prev : next), defineProperty_defineProperty(_horizontal, DOWN, children), defineProperty_defineProperty(_horizontal, ENTER, children), _horizontal);
|
|
57308
|
+
var vertical = (_vertical = {}, defineProperty_defineProperty(_vertical, UP, prev), defineProperty_defineProperty(_vertical, DOWN, next), defineProperty_defineProperty(_vertical, ENTER, children), defineProperty_defineProperty(_vertical, ESC, parent), defineProperty_defineProperty(_vertical, useAccessibility_LEFT, isRtl ? children : parent), defineProperty_defineProperty(_vertical, RIGHT, isRtl ? parent : children), _vertical);
|
|
56802
57309
|
var offsets = {
|
|
56803
57310
|
inline: inline,
|
|
56804
57311
|
horizontal: horizontal,
|
|
@@ -57162,7 +57669,7 @@ function useKeyRecords() {
|
|
|
57162
57669
|
}, [getKeyPath]);
|
|
57163
57670
|
|
|
57164
57671
|
var getKeys = function getKeys() {
|
|
57165
|
-
var keys =
|
|
57672
|
+
var keys = toConsumableArray_toConsumableArray(key2pathRef.current.keys());
|
|
57166
57673
|
|
|
57167
57674
|
if (overflowKeys.length) {
|
|
57168
57675
|
keys.push(OVERFLOW_KEY);
|
|
@@ -57179,7 +57686,7 @@ function useKeyRecords() {
|
|
|
57179
57686
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
57180
57687
|
var pathKeys = new Set();
|
|
57181
57688
|
|
|
57182
|
-
|
|
57689
|
+
toConsumableArray_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
57183
57690
|
if (pathKey.startsWith(connectedPath)) {
|
|
57184
57691
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
57185
57692
|
}
|
|
@@ -57300,7 +57807,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57300
57807
|
openTransitionName = props.openTransitionName,
|
|
57301
57808
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
57302
57809
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
57303
|
-
restProps =
|
|
57810
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, Menu_excluded);
|
|
57304
57811
|
|
|
57305
57812
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
57306
57813
|
|
|
@@ -57454,7 +57961,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57454
57961
|
return key !== targetKey;
|
|
57455
57962
|
});
|
|
57456
57963
|
} else {
|
|
57457
|
-
newSelectKeys = [].concat(
|
|
57964
|
+
newSelectKeys = [].concat(toConsumableArray_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
57458
57965
|
}
|
|
57459
57966
|
} else {
|
|
57460
57967
|
newSelectKeys = [targetKey];
|
|
@@ -57462,7 +57969,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57462
57969
|
|
|
57463
57970
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
57464
57971
|
|
|
57465
|
-
var selectInfo =
|
|
57972
|
+
var selectInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
57466
57973
|
selectedKeys: newSelectKeys
|
|
57467
57974
|
});
|
|
57468
57975
|
|
|
@@ -57540,13 +58047,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57540
58047
|
);
|
|
57541
58048
|
}); // >>>>> Container
|
|
57542
58049
|
|
|
57543
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
58050
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, esm_extends_extends({
|
|
57544
58051
|
id: id,
|
|
57545
58052
|
ref: mergedRef,
|
|
57546
58053
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
57547
58054
|
component: "ul",
|
|
57548
58055
|
itemComponent: es_MenuItem,
|
|
57549
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
58056
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-inline-collapsed"), mergedInlineCollapsed), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), isRtl), _classNames)),
|
|
57550
58057
|
dir: direction,
|
|
57551
58058
|
style: style,
|
|
57552
58059
|
role: "menu",
|
|
@@ -57640,13 +58147,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
57640
58147
|
title = _ref.title,
|
|
57641
58148
|
eventKey = _ref.eventKey,
|
|
57642
58149
|
children = _ref.children,
|
|
57643
|
-
restProps =
|
|
58150
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
57644
58151
|
|
|
57645
58152
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
57646
58153
|
prefixCls = _React$useContext.prefixCls;
|
|
57647
58154
|
|
|
57648
58155
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
57649
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
58156
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", esm_extends_extends({}, restProps, {
|
|
57650
58157
|
onClick: function onClick(e) {
|
|
57651
58158
|
return e.stopPropagation();
|
|
57652
58159
|
},
|
|
@@ -57661,7 +58168,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
57661
58168
|
|
|
57662
58169
|
function MenuItemGroup(_ref2) {
|
|
57663
58170
|
var children = _ref2.children,
|
|
57664
|
-
props =
|
|
58171
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
57665
58172
|
|
|
57666
58173
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
57667
58174
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -57789,7 +58296,7 @@ function Dropdown(props, ref) {
|
|
|
57789
58296
|
visible = props.visible,
|
|
57790
58297
|
_props$trigger = props.trigger,
|
|
57791
58298
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
57792
|
-
otherProps =
|
|
58299
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(props, Dropdown_excluded);
|
|
57793
58300
|
|
|
57794
58301
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
57795
58302
|
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
@@ -57900,12 +58407,12 @@ function Dropdown(props, ref) {
|
|
|
57900
58407
|
triggerHideAction = ['click'];
|
|
57901
58408
|
}
|
|
57902
58409
|
|
|
57903
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58410
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
57904
58411
|
builtinPlacements: placements
|
|
57905
58412
|
}, otherProps), {}, {
|
|
57906
58413
|
prefixCls: prefixCls,
|
|
57907
58414
|
ref: triggerRef,
|
|
57908
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58415
|
+
popupClassName: classnames_default()(overlayClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
57909
58416
|
popupStyle: overlayStyle,
|
|
57910
58417
|
action: trigger,
|
|
57911
58418
|
showAction: showAction,
|
|
@@ -58109,14 +58616,14 @@ function OperationNode(_ref, ref) {
|
|
|
58109
58616
|
}
|
|
58110
58617
|
}, [open]); // ========================= Render =========================
|
|
58111
58618
|
|
|
58112
|
-
var moreStyle =
|
|
58619
|
+
var moreStyle = defineProperty_defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
58113
58620
|
|
|
58114
58621
|
if (!tabs.length) {
|
|
58115
58622
|
moreStyle.visibility = 'hidden';
|
|
58116
58623
|
moreStyle.order = 1;
|
|
58117
58624
|
}
|
|
58118
58625
|
|
|
58119
|
-
var overlayClassName = classnames_default()(
|
|
58626
|
+
var overlayClassName = classnames_default()(defineProperty_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
58120
58627
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
58121
58628
|
prefixCls: dropdownPrefix,
|
|
58122
58629
|
overlay: menu,
|
|
@@ -58395,7 +58902,7 @@ var ExtraContent = function ExtraContent(_ref) {
|
|
|
58395
58902
|
|
|
58396
58903
|
var assertExtra = {};
|
|
58397
58904
|
|
|
58398
|
-
if (extra &&
|
|
58905
|
+
if (extra && esm_typeof_typeof(extra) === 'object' && ! /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(extra)) {
|
|
58399
58906
|
assertExtra = extra;
|
|
58400
58907
|
} else {
|
|
58401
58908
|
assertExtra.right = extra;
|
|
@@ -58645,7 +59152,7 @@ function TabNavList(props, ref) {
|
|
|
58645
59152
|
}, {
|
|
58646
59153
|
width: addWidth,
|
|
58647
59154
|
height: addHeight
|
|
58648
|
-
},
|
|
59155
|
+
}, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
58649
59156
|
tabs: tabs
|
|
58650
59157
|
})),
|
|
58651
59158
|
_useVisibleRange2 = slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
@@ -58737,7 +59244,7 @@ function TabNavList(props, ref) {
|
|
|
58737
59244
|
|
|
58738
59245
|
var startHiddenTabs = tabs.slice(0, visibleStart);
|
|
58739
59246
|
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
|
58740
|
-
var hiddenTabs = [].concat(
|
|
59247
|
+
var hiddenTabs = [].concat(toConsumableArray_toConsumableArray(startHiddenTabs), toConsumableArray_toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
58741
59248
|
|
|
58742
59249
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
58743
59250
|
_useState16 = slicedToArray_slicedToArray(_useState15, 2),
|
|
@@ -58823,7 +59330,7 @@ function TabNavList(props, ref) {
|
|
|
58823
59330
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
58824
59331
|
onResize: onListHolderResize
|
|
58825
59332
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
58826
|
-
className: classnames_default()(wrapPrefix, (_classNames = {},
|
|
59333
|
+
className: classnames_default()(wrapPrefix, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(wrapPrefix, "-ping-left"), pingLeft), defineProperty_defineProperty(_classNames, "".concat(wrapPrefix, "-ping-right"), pingRight), defineProperty_defineProperty(_classNames, "".concat(wrapPrefix, "-ping-top"), pingTop), defineProperty_defineProperty(_classNames, "".concat(wrapPrefix, "-ping-bottom"), pingBottom), _classNames)),
|
|
58827
59334
|
ref: tabsWrapperRef
|
|
58828
59335
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
58829
59336
|
onResize: onListHolderResize
|
|
@@ -58839,13 +59346,13 @@ function TabNavList(props, ref) {
|
|
|
58839
59346
|
prefixCls: prefixCls,
|
|
58840
59347
|
locale: locale,
|
|
58841
59348
|
editable: editable,
|
|
58842
|
-
style:
|
|
59349
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {
|
|
58843
59350
|
visibility: hasDropdown ? 'hidden' : null
|
|
58844
59351
|
})
|
|
58845
59352
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
58846
|
-
className: classnames_default()("".concat(prefixCls, "-ink-bar"),
|
|
59353
|
+
className: classnames_default()("".concat(prefixCls, "-ink-bar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
|
58847
59354
|
style: inkStyle
|
|
58848
|
-
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode,
|
|
59355
|
+
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode, esm_extends_extends({}, props, {
|
|
58849
59356
|
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
|
58850
59357
|
ref: operationsRef,
|
|
58851
59358
|
prefixCls: prefixCls,
|
|
@@ -58885,8 +59392,8 @@ function TabPanelList(_ref) {
|
|
|
58885
59392
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
58886
59393
|
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
|
58887
59394
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
58888
|
-
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition),
|
|
58889
|
-
style: activeIndex && tabPaneAnimated ?
|
|
59395
|
+
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), defineProperty_defineProperty({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated)),
|
|
59396
|
+
style: activeIndex && tabPaneAnimated ? defineProperty_defineProperty({}, rtl ? 'marginRight' : 'marginLeft', "-".concat(activeIndex, "00%")) : null
|
|
58890
59397
|
}, tabs.map(function (tab) {
|
|
58891
59398
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(tab.node, {
|
|
58892
59399
|
key: tab.key,
|
|
@@ -58946,7 +59453,7 @@ function TabPane(_ref) {
|
|
|
58946
59453
|
tabIndex: active ? 0 : -1,
|
|
58947
59454
|
"aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
|
|
58948
59455
|
"aria-hidden": !active,
|
|
58949
|
-
style:
|
|
59456
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedStyle), style),
|
|
58950
59457
|
className: classnames_default()("".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), className)
|
|
58951
59458
|
}, (active || visited || forceRender) && children);
|
|
58952
59459
|
}
|
|
@@ -58986,7 +59493,7 @@ function parseTabList(children) {
|
|
|
58986
59493
|
return toArray(children).map(function (node) {
|
|
58987
59494
|
if ( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(node)) {
|
|
58988
59495
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
58989
|
-
return
|
|
59496
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
58990
59497
|
key: key
|
|
58991
59498
|
}, node.props), {}, {
|
|
58992
59499
|
node: node
|
|
@@ -59029,7 +59536,7 @@ function Tabs(_ref, ref) {
|
|
|
59029
59536
|
onChange = _ref.onChange,
|
|
59030
59537
|
onTabClick = _ref.onTabClick,
|
|
59031
59538
|
onTabScroll = _ref.onTabScroll,
|
|
59032
|
-
restProps =
|
|
59539
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, Tabs_excluded);
|
|
59033
59540
|
|
|
59034
59541
|
var tabs = parseTabList(children);
|
|
59035
59542
|
var rtl = direction === 'rtl';
|
|
@@ -59046,10 +59553,10 @@ function Tabs(_ref, ref) {
|
|
|
59046
59553
|
tabPane: true
|
|
59047
59554
|
};
|
|
59048
59555
|
} else {
|
|
59049
|
-
mergedAnimated =
|
|
59556
|
+
mergedAnimated = objectSpread2_objectSpread2({
|
|
59050
59557
|
inkBar: true,
|
|
59051
59558
|
tabPane: false
|
|
59052
|
-
},
|
|
59559
|
+
}, esm_typeof_typeof(animated) === 'object' ? animated : {});
|
|
59053
59560
|
} // ======================== Mobile ========================
|
|
59054
59561
|
|
|
59055
59562
|
|
|
@@ -59144,7 +59651,7 @@ function Tabs(_ref, ref) {
|
|
|
59144
59651
|
};
|
|
59145
59652
|
var tabNavBar;
|
|
59146
59653
|
|
|
59147
|
-
var tabNavBarProps =
|
|
59654
|
+
var tabNavBarProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, sharedProps), {}, {
|
|
59148
59655
|
editable: editable,
|
|
59149
59656
|
locale: locale,
|
|
59150
59657
|
moreIcon: moreIcon,
|
|
@@ -59168,11 +59675,11 @@ function Tabs(_ref, ref) {
|
|
|
59168
59675
|
tabs: tabs,
|
|
59169
59676
|
prefixCls: prefixCls
|
|
59170
59677
|
}
|
|
59171
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
59678
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
59172
59679
|
ref: ref,
|
|
59173
59680
|
id: id,
|
|
59174
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {},
|
|
59175
|
-
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList,
|
|
59681
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-mobile"), mobile), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-editable"), editable), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), rtl), _classNames), className)
|
|
59682
|
+
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList, esm_extends_extends({
|
|
59176
59683
|
destroyInactiveTabPane: destroyInactiveTabPane
|
|
59177
59684
|
}, sharedProps, {
|
|
59178
59685
|
animated: mergedAnimated
|
|
@@ -59370,7 +59877,7 @@ var Pager = function Pager(props) {
|
|
|
59370
59877
|
var _classNames;
|
|
59371
59878
|
|
|
59372
59879
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
59373
|
-
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {},
|
|
59880
|
+
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-active"), props.active), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-disabled"), !props.page), defineProperty_defineProperty(_classNames, props.className, !!props.className), _classNames));
|
|
59374
59881
|
|
|
59375
59882
|
var handleClick = function handleClick() {
|
|
59376
59883
|
props.onClick(props.page);
|
|
@@ -59415,14 +59922,14 @@ var Pager = function Pager(props) {
|
|
|
59415
59922
|
|
|
59416
59923
|
|
|
59417
59924
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
59418
|
-
|
|
59925
|
+
inherits_inherits(Options, _React$Component);
|
|
59419
59926
|
|
|
59420
|
-
var _super =
|
|
59927
|
+
var _super = createSuper_createSuper(Options);
|
|
59421
59928
|
|
|
59422
59929
|
function Options() {
|
|
59423
59930
|
var _this;
|
|
59424
59931
|
|
|
59425
|
-
|
|
59932
|
+
classCallCheck_classCallCheck(this, Options);
|
|
59426
59933
|
|
|
59427
59934
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59428
59935
|
args[_key] = arguments[_key];
|
|
@@ -59488,7 +59995,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
59488
59995
|
return _this;
|
|
59489
59996
|
}
|
|
59490
59997
|
|
|
59491
|
-
|
|
59998
|
+
createClass_createClass(Options, [{
|
|
59492
59999
|
key: "getValidValue",
|
|
59493
60000
|
value: function getValidValue() {
|
|
59494
60001
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -59645,14 +60152,14 @@ function calculatePage(p, state, props) {
|
|
|
59645
60152
|
}
|
|
59646
60153
|
|
|
59647
60154
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
59648
|
-
|
|
60155
|
+
inherits_inherits(Pagination, _React$Component);
|
|
59649
60156
|
|
|
59650
|
-
var _super =
|
|
60157
|
+
var _super = createSuper_createSuper(Pagination);
|
|
59651
60158
|
|
|
59652
60159
|
function Pagination(props) {
|
|
59653
60160
|
var _this;
|
|
59654
60161
|
|
|
59655
|
-
|
|
60162
|
+
classCallCheck_classCallCheck(this, Pagination);
|
|
59656
60163
|
|
|
59657
60164
|
_this = _super.call(this, props);
|
|
59658
60165
|
|
|
@@ -59673,7 +60180,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
59673
60180
|
});
|
|
59674
60181
|
|
|
59675
60182
|
if (typeof icon === 'function') {
|
|
59676
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon,
|
|
60183
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon, objectSpread2_objectSpread2({}, _this.props));
|
|
59677
60184
|
}
|
|
59678
60185
|
|
|
59679
60186
|
return iconNode;
|
|
@@ -59895,7 +60402,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
59895
60402
|
return _this;
|
|
59896
60403
|
}
|
|
59897
60404
|
|
|
59898
|
-
|
|
60405
|
+
createClass_createClass(Pagination, [{
|
|
59899
60406
|
key: "componentDidUpdate",
|
|
59900
60407
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
59901
60408
|
// When current page change, fix focused style of prev item
|
|
@@ -60043,8 +60550,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60043
60550
|
}, gotoButton);
|
|
60044
60551
|
}
|
|
60045
60552
|
|
|
60046
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60047
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"),
|
|
60553
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", esm_extends_extends({
|
|
60554
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
60048
60555
|
style: style,
|
|
60049
60556
|
ref: this.savePaginationNode
|
|
60050
60557
|
}, dataOrAriaAttributeProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
@@ -60052,7 +60559,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60052
60559
|
onClick: this.prev,
|
|
60053
60560
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60054
60561
|
onKeyPress: this.runIfEnterPrev,
|
|
60055
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60562
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
60056
60563
|
"aria-disabled": !this.hasPrev()
|
|
60057
60564
|
}, this.renderPrev(prevPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60058
60565
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
@@ -60073,7 +60580,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60073
60580
|
onClick: this.next,
|
|
60074
60581
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60075
60582
|
onKeyPress: this.runIfEnterNext,
|
|
60076
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60583
|
+
className: classnames_default()("".concat(prefixCls, "-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
60077
60584
|
"aria-disabled": !this.hasNext()
|
|
60078
60585
|
}, this.renderNext(nextPage)), gotoButton);
|
|
60079
60586
|
}
|
|
@@ -60089,7 +60596,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60089
60596
|
};
|
|
60090
60597
|
|
|
60091
60598
|
if (!allPages) {
|
|
60092
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60599
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, esm_extends_extends({}, pagerProps, {
|
|
60093
60600
|
key: "noPager",
|
|
60094
60601
|
page: 1,
|
|
60095
60602
|
className: "".concat(prefixCls, "-item-disabled")
|
|
@@ -60098,7 +60605,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60098
60605
|
|
|
60099
60606
|
for (var i = 1; i <= allPages; i += 1) {
|
|
60100
60607
|
var active = current === i;
|
|
60101
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60608
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, esm_extends_extends({}, pagerProps, {
|
|
60102
60609
|
key: i,
|
|
60103
60610
|
page: i,
|
|
60104
60611
|
active: active
|
|
@@ -60115,7 +60622,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60115
60622
|
onClick: this.jumpPrev,
|
|
60116
60623
|
tabIndex: "0",
|
|
60117
60624
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
60118
|
-
className: classnames_default()("".concat(prefixCls, "-jump-prev"),
|
|
60625
|
+
className: classnames_default()("".concat(prefixCls, "-jump-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
60119
60626
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
60120
60627
|
jumpNext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60121
60628
|
title: showTitle ? nextItemTitle : null,
|
|
@@ -60123,7 +60630,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60123
60630
|
tabIndex: "0",
|
|
60124
60631
|
onClick: this.jumpNext,
|
|
60125
60632
|
onKeyPress: this.runIfEnterJumpNext,
|
|
60126
|
-
className: classnames_default()("".concat(prefixCls, "-jump-next"),
|
|
60633
|
+
className: classnames_default()("".concat(prefixCls, "-jump-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
60127
60634
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
60128
60635
|
}
|
|
60129
60636
|
|
|
@@ -60210,8 +60717,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60210
60717
|
|
|
60211
60718
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
60212
60719
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
60213
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60214
|
-
className: classnames_default()(prefixCls, className,
|
|
60720
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", esm_extends_extends({
|
|
60721
|
+
className: classnames_default()(prefixCls, className, defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), disabled)),
|
|
60215
60722
|
style: style,
|
|
60216
60723
|
unselectable: "unselectable",
|
|
60217
60724
|
ref: this.savePaginationNode
|
|
@@ -60220,14 +60727,14 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60220
60727
|
onClick: this.prev,
|
|
60221
60728
|
tabIndex: prevDisabled ? null : 0,
|
|
60222
60729
|
onKeyPress: this.runIfEnterPrev,
|
|
60223
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60730
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
60224
60731
|
"aria-disabled": prevDisabled
|
|
60225
60732
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60226
60733
|
title: showTitle ? locale.next_page : null,
|
|
60227
60734
|
onClick: this.next,
|
|
60228
60735
|
tabIndex: nextDisabled ? null : 0,
|
|
60229
60736
|
onKeyPress: this.runIfEnterNext,
|
|
60230
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60737
|
+
className: classnames_default()("".concat(prefixCls, "-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
60231
60738
|
"aria-disabled": nextDisabled
|
|
60232
60739
|
}, this.renderNext(nextPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Options, {
|
|
60233
60740
|
disabled: disabled,
|
|
@@ -60305,7 +60812,7 @@ Pagination.defaultProps = {
|
|
|
60305
60812
|
|
|
60306
60813
|
|
|
60307
60814
|
var MiniSelect = function MiniSelect(props) {
|
|
60308
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select,
|
|
60815
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select, esm_extends_extends({
|
|
60309
60816
|
size: "small"
|
|
60310
60817
|
}, props));
|
|
60311
60818
|
};
|
|
@@ -60366,7 +60873,7 @@ var responsiveObserve = {
|
|
|
60366
60873
|
var listener = function listener(_ref) {
|
|
60367
60874
|
var matches = _ref.matches;
|
|
60368
60875
|
|
|
60369
|
-
_this2.dispatch(
|
|
60876
|
+
_this2.dispatch(esm_extends_extends(esm_extends_extends({}, screens), defineProperty_defineProperty({}, screen, matches)));
|
|
60370
60877
|
};
|
|
60371
60878
|
|
|
60372
60879
|
var mql = window.matchMedia(matchMediaQuery);
|
|
@@ -60507,13 +61014,13 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
60507
61014
|
var renderPagination = function renderPagination(contextLocale) {
|
|
60508
61015
|
var _classNames;
|
|
60509
61016
|
|
|
60510
|
-
var locale =
|
|
61017
|
+
var locale = esm_extends_extends(esm_extends_extends({}, contextLocale), customLocale);
|
|
60511
61018
|
|
|
60512
61019
|
var isSmall = size === 'small' || !!(xs && !size && restProps.responsive);
|
|
60513
61020
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
60514
61021
|
var extendedClassName = classnames_default()((_classNames = {
|
|
60515
61022
|
mini: isSmall
|
|
60516
|
-
},
|
|
61023
|
+
}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames, "minimalistic", minimalistic), _classNames), className); // 文本式分页
|
|
60517
61024
|
|
|
60518
61025
|
if (minimalistic) {
|
|
60519
61026
|
paginationProps.itemRender = function (_current, type, originalElement) {
|
|
@@ -60550,7 +61057,7 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
60550
61057
|
paginationProps.showQuickJumper = showQuickJumper;
|
|
60551
61058
|
}
|
|
60552
61059
|
|
|
60553
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination,
|
|
61060
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination, esm_extends_extends({}, paginationProps, getIconsProps(), restProps, {
|
|
60554
61061
|
prefixCls: prefixCls,
|
|
60555
61062
|
selectPrefixCls: selectPrefixCls,
|
|
60556
61063
|
className: extendedClassName,
|
|
@@ -60922,10 +61429,10 @@ function Action(_ref) {
|
|
|
60922
61429
|
setCurAction = _useState2[1];
|
|
60923
61430
|
|
|
60924
61431
|
var handleBtnClick = /*#__PURE__*/function () {
|
|
60925
|
-
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/
|
|
61432
|
+
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(e) {
|
|
60926
61433
|
var now, begin, _error$response, _error$response$data, _error$response2, _error$response2$data;
|
|
60927
61434
|
|
|
60928
|
-
return
|
|
61435
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
60929
61436
|
while (1) {
|
|
60930
61437
|
switch (_context.prev = _context.next) {
|
|
60931
61438
|
case 0:
|