@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
|
|
|
@@ -29987,6 +29994,9 @@ var parseAdapter = function parseAdapter(option, dayjsClass) {
|
|
|
29987
29994
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
29988
29995
|
var regenerator = __webpack_require__(7757);
|
|
29989
29996
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
29997
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
29998
|
+
var runtime_regenerator = __webpack_require__(5273);
|
|
29999
|
+
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
29990
30000
|
// EXTERNAL MODULE: ./node_modules/axios/index.js
|
|
29991
30001
|
var axios = __webpack_require__(9669);
|
|
29992
30002
|
var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
|
|
@@ -30755,7 +30765,7 @@ var LIVING_CLOSE_LOGIN = {
|
|
|
30755
30765
|
CLOSE: '1'
|
|
30756
30766
|
}; // 子类型 1 网龙会议 2 外部推流 3 转播
|
|
30757
30767
|
|
|
30758
|
-
var
|
|
30768
|
+
var publicLive_SUB_TYPE = {
|
|
30759
30769
|
NET_DRAGON: 1,
|
|
30760
30770
|
OUTSIDE: 2,
|
|
30761
30771
|
REBROADCAST: 3
|
|
@@ -30812,7 +30822,7 @@ function getServiceConfig(_x) {
|
|
|
30812
30822
|
}
|
|
30813
30823
|
|
|
30814
30824
|
function _getServiceConfig() {
|
|
30815
|
-
_getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/
|
|
30825
|
+
_getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(serviceName) {
|
|
30816
30826
|
var sdpAppId,
|
|
30817
30827
|
env,
|
|
30818
30828
|
key,
|
|
@@ -30824,7 +30834,7 @@ function _getServiceConfig() {
|
|
|
30824
30834
|
result,
|
|
30825
30835
|
ttl,
|
|
30826
30836
|
_args = arguments;
|
|
30827
|
-
return
|
|
30837
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
30828
30838
|
while (1) {
|
|
30829
30839
|
switch (_context.prev = _context.next) {
|
|
30830
30840
|
case 0:
|
|
@@ -31088,13 +31098,13 @@ function withOnce(fn) {
|
|
|
31088
31098
|
var lockPool = createLockPool();
|
|
31089
31099
|
|
|
31090
31100
|
var newFn = /*#__PURE__*/function () {
|
|
31091
|
-
var _ref3 = hof_asyncToGenerator( /*#__PURE__*/
|
|
31101
|
+
var _ref3 = hof_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2() {
|
|
31092
31102
|
var key,
|
|
31093
31103
|
lock,
|
|
31094
31104
|
lockId,
|
|
31095
31105
|
result,
|
|
31096
31106
|
_args2 = arguments;
|
|
31097
|
-
return
|
|
31107
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
31098
31108
|
while (1) {
|
|
31099
31109
|
switch (_context2.prev = _context2.next) {
|
|
31100
31110
|
case 0:
|
|
@@ -31600,9 +31610,9 @@ function _getLiveAPICache() {
|
|
|
31600
31610
|
}
|
|
31601
31611
|
|
|
31602
31612
|
function _getLiveAPICache2() {
|
|
31603
|
-
_getLiveAPICache2 = live_asyncToGenerator( /*#__PURE__*/
|
|
31613
|
+
_getLiveAPICache2 = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee11() {
|
|
31604
31614
|
var url, result, serverTime;
|
|
31605
|
-
return
|
|
31615
|
+
return runtime_regenerator_default().wrap(function _callee11$(_context11) {
|
|
31606
31616
|
while (1) {
|
|
31607
31617
|
switch (_context11.prev = _context11.next) {
|
|
31608
31618
|
case 0:
|
|
@@ -31642,9 +31652,9 @@ function getOpenClassWithCache(_x11) {
|
|
|
31642
31652
|
} // 公开直播详情变化部分,失败要降级处理
|
|
31643
31653
|
|
|
31644
31654
|
function _getOpenClassWithCache() {
|
|
31645
|
-
_getOpenClassWithCache = live_asyncToGenerator( /*#__PURE__*/
|
|
31655
|
+
_getOpenClassWithCache = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee12(url) {
|
|
31646
31656
|
var fullUrl, cacheInfo, cacheData, result, serverTime;
|
|
31647
|
-
return
|
|
31657
|
+
return runtime_regenerator_default().wrap(function _callee12$(_context12) {
|
|
31648
31658
|
while (1) {
|
|
31649
31659
|
switch (_context12.prev = _context12.next) {
|
|
31650
31660
|
case 0:
|
|
@@ -31716,9 +31726,9 @@ function getOpenClassLiveSimple(_x12) {
|
|
|
31716
31726
|
} // 公开直播详情拆分成两个接口
|
|
31717
31727
|
|
|
31718
31728
|
function _getOpenClassLiveSimple() {
|
|
31719
|
-
_getOpenClassLiveSimple = live_asyncToGenerator( /*#__PURE__*/
|
|
31729
|
+
_getOpenClassLiveSimple = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee13(liveInfo) {
|
|
31720
31730
|
var url, data;
|
|
31721
|
-
return
|
|
31731
|
+
return runtime_regenerator_default().wrap(function _callee13$(_context13) {
|
|
31722
31732
|
while (1) {
|
|
31723
31733
|
switch (_context13.prev = _context13.next) {
|
|
31724
31734
|
case 0:
|
|
@@ -31757,9 +31767,9 @@ function getOpenClassLiveBase(_x13) {
|
|
|
31757
31767
|
} // 公开实时直播-发起直播-公共直播邀请页使用,适配为班级直播数据
|
|
31758
31768
|
|
|
31759
31769
|
function _getOpenClassLiveBase() {
|
|
31760
|
-
_getOpenClassLiveBase = live_asyncToGenerator( /*#__PURE__*/
|
|
31770
|
+
_getOpenClassLiveBase = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee14(id) {
|
|
31761
31771
|
var url, data, subType, dynamicInfo;
|
|
31762
|
-
return
|
|
31772
|
+
return runtime_regenerator_default().wrap(function _callee14$(_context14) {
|
|
31763
31773
|
while (1) {
|
|
31764
31774
|
switch (_context14.prev = _context14.next) {
|
|
31765
31775
|
case 0:
|
|
@@ -31771,7 +31781,7 @@ function _getOpenClassLiveBase() {
|
|
|
31771
31781
|
data = _context14.sent;
|
|
31772
31782
|
subType = data.sub_type; // 外部推流则直接返回, 不去请求兼容接口
|
|
31773
31783
|
|
|
31774
|
-
if (!(subType ===
|
|
31784
|
+
if (!(subType === publicLive_SUB_TYPE.OUTSIDE)) {
|
|
31775
31785
|
_context14.next = 7;
|
|
31776
31786
|
break;
|
|
31777
31787
|
}
|
|
@@ -31839,9 +31849,9 @@ function getOpenClassLive(_x15) {
|
|
|
31839
31849
|
}
|
|
31840
31850
|
|
|
31841
31851
|
function _getOpenClassLive() {
|
|
31842
|
-
_getOpenClassLive = live_asyncToGenerator( /*#__PURE__*/
|
|
31852
|
+
_getOpenClassLive = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee16(id) {
|
|
31843
31853
|
var serviceConfig, liveCloseLogin, data;
|
|
31844
|
-
return
|
|
31854
|
+
return runtime_regenerator_default().wrap(function _callee16$(_context16) {
|
|
31845
31855
|
while (1) {
|
|
31846
31856
|
switch (_context16.prev = _context16.next) {
|
|
31847
31857
|
case 0:
|
|
@@ -31954,9 +31964,9 @@ function OpenLiveSearchFront(_x18) {
|
|
|
31954
31964
|
*/
|
|
31955
31965
|
|
|
31956
31966
|
function _OpenLiveSearchFront() {
|
|
31957
|
-
_OpenLiveSearchFront = live_asyncToGenerator( /*#__PURE__*/
|
|
31967
|
+
_OpenLiveSearchFront = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee19(_ref2) {
|
|
31958
31968
|
var status, scopeType, scopeId, offset, limit, url, response;
|
|
31959
|
-
return
|
|
31969
|
+
return runtime_regenerator_default().wrap(function _callee19$(_context19) {
|
|
31960
31970
|
while (1) {
|
|
31961
31971
|
switch (_context19.prev = _context19.next) {
|
|
31962
31972
|
case 0:
|
|
@@ -32007,9 +32017,9 @@ function getSubscription() {
|
|
|
32007
32017
|
*/
|
|
32008
32018
|
|
|
32009
32019
|
function _getSubscription() {
|
|
32010
|
-
_getSubscription = live_asyncToGenerator( /*#__PURE__*/
|
|
32020
|
+
_getSubscription = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee20() {
|
|
32011
32021
|
var url, response;
|
|
32012
|
-
return
|
|
32022
|
+
return runtime_regenerator_default().wrap(function _callee20$(_context20) {
|
|
32013
32023
|
while (1) {
|
|
32014
32024
|
switch (_context20.prev = _context20.next) {
|
|
32015
32025
|
case 0:
|
|
@@ -32042,9 +32052,9 @@ function openLiveSubscribe(_x19) {
|
|
|
32042
32052
|
}
|
|
32043
32053
|
|
|
32044
32054
|
function _openLiveSubscribe() {
|
|
32045
|
-
_openLiveSubscribe = live_asyncToGenerator( /*#__PURE__*/
|
|
32055
|
+
_openLiveSubscribe = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee21(_ref3) {
|
|
32046
32056
|
var liveId, url, response;
|
|
32047
|
-
return
|
|
32057
|
+
return runtime_regenerator_default().wrap(function _callee21$(_context21) {
|
|
32048
32058
|
while (1) {
|
|
32049
32059
|
switch (_context21.prev = _context21.next) {
|
|
32050
32060
|
case 0:
|
|
@@ -32086,9 +32096,9 @@ function imBroadcasts_asyncToGenerator(fn) { return function () { var self = thi
|
|
|
32086
32096
|
// https://wiki.doc.101.com/index.php?title=IM%E7%9B%B4%E6%92%ADv2#.5BGET.5D_.2Fapis.2Fbroadcasts.2F.7BroomId.7D_.E6.A0.B9.E6.8D.AEroomId_.E8.8E.B7.E5.8F.96.E7.9B.B4.E6.92.AD.E4.BF.A1.E6.81.AF
|
|
32087
32097
|
|
|
32088
32098
|
var getIMLiveInfo = /*#__PURE__*/function () {
|
|
32089
|
-
var _ref = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
32099
|
+
var _ref = imBroadcasts_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(roomId) {
|
|
32090
32100
|
var url, response;
|
|
32091
|
-
return
|
|
32101
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
32092
32102
|
while (1) {
|
|
32093
32103
|
switch (_context.prev = _context.next) {
|
|
32094
32104
|
case 0:
|
|
@@ -32121,10 +32131,10 @@ var getIMLiveInfo = /*#__PURE__*/function () {
|
|
|
32121
32131
|
*/
|
|
32122
32132
|
|
|
32123
32133
|
var getGuestIMLiveInfoStatic = /*#__PURE__*/function () {
|
|
32124
|
-
var _ref2 = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
32134
|
+
var _ref2 = imBroadcasts_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(bId) {
|
|
32125
32135
|
var _yield$imBroadcastsSt, data;
|
|
32126
32136
|
|
|
32127
|
-
return
|
|
32137
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
32128
32138
|
while (1) {
|
|
32129
32139
|
switch (_context2.prev = _context2.next) {
|
|
32130
32140
|
case 0:
|
|
@@ -32151,10 +32161,10 @@ var getGuestIMLiveInfoStatic = /*#__PURE__*/function () {
|
|
|
32151
32161
|
// 访客获取直播接口
|
|
32152
32162
|
|
|
32153
32163
|
var getGuestIMLiveInfo = /*#__PURE__*/function () {
|
|
32154
|
-
var _ref3 = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
32164
|
+
var _ref3 = imBroadcasts_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(bId) {
|
|
32155
32165
|
var _yield$imBroadcastsAP, data;
|
|
32156
32166
|
|
|
32157
|
-
return
|
|
32167
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
32158
32168
|
while (1) {
|
|
32159
32169
|
switch (_context3.prev = _context3.next) {
|
|
32160
32170
|
case 0:
|
|
@@ -32222,6 +32232,162 @@ var spin_style_update = injectStylesIntoStyleTag_default()(spin_style/* default
|
|
|
32222
32232
|
;// CONCATENATED MODULE: ./node_modules/@sdp.nd/fish/es/spin/style/index.js
|
|
32223
32233
|
|
|
32224
32234
|
|
|
32235
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
32236
|
+
function esm_extends_extends() {
|
|
32237
|
+
esm_extends_extends = Object.assign || function (target) {
|
|
32238
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32239
|
+
var source = arguments[i];
|
|
32240
|
+
|
|
32241
|
+
for (var key in source) {
|
|
32242
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32243
|
+
target[key] = source[key];
|
|
32244
|
+
}
|
|
32245
|
+
}
|
|
32246
|
+
}
|
|
32247
|
+
|
|
32248
|
+
return target;
|
|
32249
|
+
};
|
|
32250
|
+
|
|
32251
|
+
return esm_extends_extends.apply(this, arguments);
|
|
32252
|
+
}
|
|
32253
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
32254
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
32255
|
+
if (key in obj) {
|
|
32256
|
+
Object.defineProperty(obj, key, {
|
|
32257
|
+
value: value,
|
|
32258
|
+
enumerable: true,
|
|
32259
|
+
configurable: true,
|
|
32260
|
+
writable: true
|
|
32261
|
+
});
|
|
32262
|
+
} else {
|
|
32263
|
+
obj[key] = value;
|
|
32264
|
+
}
|
|
32265
|
+
|
|
32266
|
+
return obj;
|
|
32267
|
+
}
|
|
32268
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
32269
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
32270
|
+
if (!(instance instanceof Constructor)) {
|
|
32271
|
+
throw new TypeError("Cannot call a class as a function");
|
|
32272
|
+
}
|
|
32273
|
+
}
|
|
32274
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
32275
|
+
function createClass_defineProperties(target, props) {
|
|
32276
|
+
for (var i = 0; i < props.length; i++) {
|
|
32277
|
+
var descriptor = props[i];
|
|
32278
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
32279
|
+
descriptor.configurable = true;
|
|
32280
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
32281
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
32282
|
+
}
|
|
32283
|
+
}
|
|
32284
|
+
|
|
32285
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
32286
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
32287
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
32288
|
+
return Constructor;
|
|
32289
|
+
}
|
|
32290
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
32291
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
32292
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
32293
|
+
o.__proto__ = p;
|
|
32294
|
+
return o;
|
|
32295
|
+
};
|
|
32296
|
+
|
|
32297
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
32298
|
+
}
|
|
32299
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
32300
|
+
|
|
32301
|
+
function inherits_inherits(subClass, superClass) {
|
|
32302
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
32303
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
32304
|
+
}
|
|
32305
|
+
|
|
32306
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
32307
|
+
constructor: {
|
|
32308
|
+
value: subClass,
|
|
32309
|
+
writable: true,
|
|
32310
|
+
configurable: true
|
|
32311
|
+
}
|
|
32312
|
+
});
|
|
32313
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
32314
|
+
}
|
|
32315
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
32316
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
32317
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
32318
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
32319
|
+
};
|
|
32320
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
32321
|
+
}
|
|
32322
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
32323
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
32324
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
32325
|
+
if (Reflect.construct.sham) return false;
|
|
32326
|
+
if (typeof Proxy === "function") return true;
|
|
32327
|
+
|
|
32328
|
+
try {
|
|
32329
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
32330
|
+
return true;
|
|
32331
|
+
} catch (e) {
|
|
32332
|
+
return false;
|
|
32333
|
+
}
|
|
32334
|
+
}
|
|
32335
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
32336
|
+
function esm_typeof_typeof(obj) {
|
|
32337
|
+
"@babel/helpers - typeof";
|
|
32338
|
+
|
|
32339
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
32340
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
32341
|
+
return typeof obj;
|
|
32342
|
+
};
|
|
32343
|
+
} else {
|
|
32344
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
32345
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
32346
|
+
};
|
|
32347
|
+
}
|
|
32348
|
+
|
|
32349
|
+
return esm_typeof_typeof(obj);
|
|
32350
|
+
}
|
|
32351
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
32352
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
32353
|
+
if (self === void 0) {
|
|
32354
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
32355
|
+
}
|
|
32356
|
+
|
|
32357
|
+
return self;
|
|
32358
|
+
}
|
|
32359
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
32360
|
+
|
|
32361
|
+
|
|
32362
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
32363
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
32364
|
+
return call;
|
|
32365
|
+
} else if (call !== void 0) {
|
|
32366
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
32367
|
+
}
|
|
32368
|
+
|
|
32369
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
32370
|
+
}
|
|
32371
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
32372
|
+
|
|
32373
|
+
|
|
32374
|
+
|
|
32375
|
+
function createSuper_createSuper(Derived) {
|
|
32376
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
32377
|
+
return function _createSuperInternal() {
|
|
32378
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
32379
|
+
result;
|
|
32380
|
+
|
|
32381
|
+
if (hasNativeReflectConstruct) {
|
|
32382
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
32383
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
32384
|
+
} else {
|
|
32385
|
+
result = Super.apply(this, arguments);
|
|
32386
|
+
}
|
|
32387
|
+
|
|
32388
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
32389
|
+
};
|
|
32390
|
+
}
|
|
32225
32391
|
// EXTERNAL MODULE: ./node_modules/lodash/debounce.js
|
|
32226
32392
|
var debounce = __webpack_require__(3279);
|
|
32227
32393
|
var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce);
|
|
@@ -32330,14 +32496,14 @@ function shouldDelay(spinning, delay) {
|
|
|
32330
32496
|
}
|
|
32331
32497
|
|
|
32332
32498
|
var Spin = /*#__PURE__*/function (_React$Component) {
|
|
32333
|
-
|
|
32499
|
+
inherits_inherits(Spin, _React$Component);
|
|
32334
32500
|
|
|
32335
|
-
var _super =
|
|
32501
|
+
var _super = createSuper_createSuper(Spin);
|
|
32336
32502
|
|
|
32337
32503
|
function Spin(props) {
|
|
32338
32504
|
var _this;
|
|
32339
32505
|
|
|
32340
|
-
|
|
32506
|
+
classCallCheck_classCallCheck(this, Spin);
|
|
32341
32507
|
|
|
32342
32508
|
_this = _super.call(this, props);
|
|
32343
32509
|
|
|
@@ -32380,10 +32546,10 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
32380
32546
|
|
|
32381
32547
|
var spinning = _this.state.spinning;
|
|
32382
32548
|
var prefixCls = getPrefixCls('spin', customizePrefixCls);
|
|
32383
|
-
var spinClassName = classnames_default()(prefixCls, (_classNames = {},
|
|
32549
|
+
var spinClassName = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-sm"), size === 'small'), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-lg"), size === 'large'), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-spinning"), spinning), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-show-text"), !!tip), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className); // fix https://fb.me/react-unknown-prop
|
|
32384
32550
|
|
|
32385
32551
|
var divProps = omit(restProps, ['spinning', 'delay', 'indicator']);
|
|
32386
|
-
var spinElement = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
32552
|
+
var spinElement = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, divProps, {
|
|
32387
32553
|
style: style,
|
|
32388
32554
|
className: spinClassName
|
|
32389
32555
|
}), renderIndicator(prefixCls, _this.props), tip ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -32391,8 +32557,8 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
32391
32557
|
}, tip) : null);
|
|
32392
32558
|
|
|
32393
32559
|
if (_this.isNestedPattern()) {
|
|
32394
|
-
var containerClassName = classnames_default()("".concat(prefixCls, "-container"),
|
|
32395
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
32560
|
+
var containerClassName = classnames_default()("".concat(prefixCls, "-container"), defineProperty_defineProperty({}, "".concat(prefixCls, "-blur"), spinning));
|
|
32561
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, divProps, {
|
|
32396
32562
|
className: classnames_default()("".concat(prefixCls, "-nested-loading"), wrapperClassName)
|
|
32397
32563
|
}), spinning && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
32398
32564
|
key: "loading"
|
|
@@ -32418,7 +32584,7 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
32418
32584
|
return _this;
|
|
32419
32585
|
}
|
|
32420
32586
|
|
|
32421
|
-
|
|
32587
|
+
createClass_createClass(Spin, [{
|
|
32422
32588
|
key: "componentDidMount",
|
|
32423
32589
|
value: function componentDidMount() {
|
|
32424
32590
|
this.updateSpinning();
|
|
@@ -32532,6 +32698,119 @@ function Loading_Loading(_ref) {
|
|
|
32532
32698
|
wrapperClassName: classnames_default()('x-edu-nested-loading', wrapperClassName)
|
|
32533
32699
|
}, children);
|
|
32534
32700
|
}
|
|
32701
|
+
// EXTERNAL MODULE: ./node_modules/@sdp.nd/fish/es/loader/style/index.js
|
|
32702
|
+
var loader_style = __webpack_require__(4646);
|
|
32703
|
+
;// CONCATENATED MODULE: ./src/util/push/index.js
|
|
32704
|
+
|
|
32705
|
+
|
|
32706
|
+
|
|
32707
|
+
|
|
32708
|
+
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); } }
|
|
32709
|
+
|
|
32710
|
+
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); }); }; }
|
|
32711
|
+
|
|
32712
|
+
function push_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
32713
|
+
|
|
32714
|
+
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); } }
|
|
32715
|
+
|
|
32716
|
+
function push_createClass(Constructor, protoProps, staticProps) { if (protoProps) push_defineProperties(Constructor.prototype, protoProps); if (staticProps) push_defineProperties(Constructor, staticProps); return Constructor; }
|
|
32717
|
+
|
|
32718
|
+
|
|
32719
|
+
var push_url = '/3rd/im-web-push/index.umd.js';
|
|
32720
|
+
var push_loadJS = loader.loadJS;
|
|
32721
|
+
var instPromise; // http://git.sdp.nd/component-h5/web-im-push/-/tree/master
|
|
32722
|
+
|
|
32723
|
+
var ImPush = /*#__PURE__*/function () {
|
|
32724
|
+
function ImPush() {
|
|
32725
|
+
push_classCallCheck(this, ImPush);
|
|
32726
|
+
|
|
32727
|
+
this.listeners = [];
|
|
32728
|
+
}
|
|
32729
|
+
|
|
32730
|
+
push_createClass(ImPush, [{
|
|
32731
|
+
key: "init",
|
|
32732
|
+
value: function () {
|
|
32733
|
+
var _init = push_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
32734
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
32735
|
+
while (1) {
|
|
32736
|
+
switch (_context.prev = _context.next) {
|
|
32737
|
+
case 0:
|
|
32738
|
+
if (!instPromise) {
|
|
32739
|
+
_context.next = 2;
|
|
32740
|
+
break;
|
|
32741
|
+
}
|
|
32742
|
+
|
|
32743
|
+
return _context.abrupt("return", instPromise);
|
|
32744
|
+
|
|
32745
|
+
case 2:
|
|
32746
|
+
instPromise = push_loadJS(push_url, 'ndiot_push').then(function () {
|
|
32747
|
+
window.ndiot_push.open({
|
|
32748
|
+
url: env["default"].push.host,
|
|
32749
|
+
appId: env["default"].app.appid,
|
|
32750
|
+
disableSharedWorker: true
|
|
32751
|
+
});
|
|
32752
|
+
return window.ndiot_push;
|
|
32753
|
+
});
|
|
32754
|
+
return _context.abrupt("return", instPromise);
|
|
32755
|
+
|
|
32756
|
+
case 4:
|
|
32757
|
+
case "end":
|
|
32758
|
+
return _context.stop();
|
|
32759
|
+
}
|
|
32760
|
+
}
|
|
32761
|
+
}, _callee);
|
|
32762
|
+
}));
|
|
32763
|
+
|
|
32764
|
+
function init() {
|
|
32765
|
+
return _init.apply(this, arguments);
|
|
32766
|
+
}
|
|
32767
|
+
|
|
32768
|
+
return init;
|
|
32769
|
+
}()
|
|
32770
|
+
}, {
|
|
32771
|
+
key: "getInstance",
|
|
32772
|
+
value: function getInstance() {
|
|
32773
|
+
return window.ndiot_push;
|
|
32774
|
+
}
|
|
32775
|
+
}, {
|
|
32776
|
+
key: "addTopicListener",
|
|
32777
|
+
value: function addTopicListener(name, listener) {
|
|
32778
|
+
var inst = this.getInstance();
|
|
32779
|
+
this.listeners.push(listener);
|
|
32780
|
+
inst.subscribe(name);
|
|
32781
|
+
this.listen();
|
|
32782
|
+
}
|
|
32783
|
+
}, {
|
|
32784
|
+
key: "removeTopicListener",
|
|
32785
|
+
value: function removeTopicListener(name, listener) {
|
|
32786
|
+
var inst = this.getInstance();
|
|
32787
|
+
this.listeners = this.listeners.filter(function (l) {
|
|
32788
|
+
return l !== listener;
|
|
32789
|
+
});
|
|
32790
|
+
inst.unsubscribe(name);
|
|
32791
|
+
this.listen();
|
|
32792
|
+
}
|
|
32793
|
+
}, {
|
|
32794
|
+
key: "listen",
|
|
32795
|
+
value: function listen() {
|
|
32796
|
+
var _this = this;
|
|
32797
|
+
|
|
32798
|
+
var inst = this.getInstance();
|
|
32799
|
+
|
|
32800
|
+
inst.onNewMessage = function (data) {
|
|
32801
|
+
console.log('im-push', data);
|
|
32802
|
+
|
|
32803
|
+
_this.listeners.forEach(function (l) {
|
|
32804
|
+
l(data);
|
|
32805
|
+
});
|
|
32806
|
+
};
|
|
32807
|
+
}
|
|
32808
|
+
}]);
|
|
32809
|
+
|
|
32810
|
+
return ImPush;
|
|
32811
|
+
}();
|
|
32812
|
+
|
|
32813
|
+
/* harmony default export */ var push = (new ImPush());
|
|
32535
32814
|
;// CONCATENATED MODULE: ./src/util/object.js
|
|
32536
32815
|
function pick(obj, keys) {
|
|
32537
32816
|
if (!Array.isArray(keys)) {
|
|
@@ -32658,14 +32937,14 @@ var videoCdnPrefix = '//gcdncs.101.com/v0.1/static/share/fish/videoplayer';
|
|
|
32658
32937
|
var defaultVideoUrl = getVideoUrl(videoCdnPrefix, video_version);
|
|
32659
32938
|
|
|
32660
32939
|
var Video = /*#__PURE__*/function (_React$Component) {
|
|
32661
|
-
|
|
32940
|
+
inherits_inherits(Video, _React$Component);
|
|
32662
32941
|
|
|
32663
|
-
var _super =
|
|
32942
|
+
var _super = createSuper_createSuper(Video);
|
|
32664
32943
|
|
|
32665
32944
|
function Video() {
|
|
32666
32945
|
var _this;
|
|
32667
32946
|
|
|
32668
|
-
|
|
32947
|
+
classCallCheck_classCallCheck(this, Video);
|
|
32669
32948
|
|
|
32670
32949
|
_this = _super.apply(this, arguments);
|
|
32671
32950
|
_this.videoUrl = {}; // eslint-disable-next-line class-methods-use-this
|
|
@@ -32678,12 +32957,12 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
32678
32957
|
csOriginUrl = getVideoUrl(cdnPrefix, video_version);
|
|
32679
32958
|
}
|
|
32680
32959
|
|
|
32681
|
-
return
|
|
32960
|
+
return esm_extends_extends(esm_extends_extends({}, csOriginUrl), Video.url);
|
|
32682
32961
|
};
|
|
32683
32962
|
|
|
32684
32963
|
_this.loadVideoPlayer = function () {
|
|
32685
|
-
return __awaiter(
|
|
32686
|
-
return
|
|
32964
|
+
return __awaiter(assertThisInitialized_assertThisInitialized(_this), void 0, void 0, /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
32965
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
32687
32966
|
while (1) {
|
|
32688
32967
|
switch (_context.prev = _context.next) {
|
|
32689
32968
|
case 0:
|
|
@@ -32733,7 +33012,7 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
32733
33012
|
return _this;
|
|
32734
33013
|
}
|
|
32735
33014
|
|
|
32736
|
-
|
|
33015
|
+
createClass_createClass(Video, [{
|
|
32737
33016
|
key: "componentDidMount",
|
|
32738
33017
|
value: function componentDidMount() {
|
|
32739
33018
|
var _this2 = this;
|
|
@@ -33077,9 +33356,9 @@ function isSourceReady(_x) {
|
|
|
33077
33356
|
}
|
|
33078
33357
|
|
|
33079
33358
|
function _isSourceReady() {
|
|
33080
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33359
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(liveInfo) {
|
|
33081
33360
|
var newLiveInfo;
|
|
33082
|
-
return
|
|
33361
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33083
33362
|
while (1) {
|
|
33084
33363
|
switch (_context.prev = _context.next) {
|
|
33085
33364
|
case 0:
|
|
@@ -33270,8 +33549,8 @@ function usePullSource_isSourceReady(_x) {
|
|
|
33270
33549
|
}
|
|
33271
33550
|
|
|
33272
33551
|
function hook_usePullSource_isSourceReady() {
|
|
33273
|
-
hook_usePullSource_isSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33274
|
-
return
|
|
33552
|
+
hook_usePullSource_isSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(url) {
|
|
33553
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33275
33554
|
while (1) {
|
|
33276
33555
|
switch (_context.prev = _context.next) {
|
|
33277
33556
|
case 0:
|
|
@@ -33376,8 +33655,7 @@ function LiveStatus_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
33376
33655
|
|
|
33377
33656
|
|
|
33378
33657
|
function LiveStatus(_ref) {
|
|
33379
|
-
var
|
|
33380
|
-
handleLogin = _ref.handleLogin,
|
|
33658
|
+
var handleLogin = _ref.handleLogin,
|
|
33381
33659
|
userInfo = _ref.userInfo,
|
|
33382
33660
|
liveInfo = _ref.liveInfo,
|
|
33383
33661
|
hasPlayed = _ref.hasPlayed,
|
|
@@ -33408,7 +33686,8 @@ function LiveStatus(_ref) {
|
|
|
33408
33686
|
var isCompleted = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.COMPLETEED;
|
|
33409
33687
|
var isPaused = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.PASUED;
|
|
33410
33688
|
var isOffline = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.OFFLINE;
|
|
33411
|
-
var isRecordLive = liveInfo.type === PUBLIC_LIVE_MODE.RECORDED;
|
|
33689
|
+
var isRecordLive = liveInfo.type === PUBLIC_LIVE_MODE.RECORDED;
|
|
33690
|
+
var isStreamLive = liveInfo.type === PUBLIC_LIVE_MODE.LIVING && (liveInfo.sub_type === SUB_TYPE.OUTSIDE || liveInfo.sub_type === SUB_TYPE.REBROADCAST); // 当前时间是否在回放时间开始前, 如果没有回放开始时间, 则直接判断未回放还没生成
|
|
33412
33691
|
|
|
33413
33692
|
var isBeforeRecordTime = liveInfo.replay_begin_time ? dayjs_min_default()().isBefore(dayjs_min_default()(liveInfo.replay_begin_time)) : true;
|
|
33414
33693
|
var mustLogin = !userInfo && liveInfo.login;
|
|
@@ -33587,8 +33866,7 @@ function RecordVideo_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
33587
33866
|
|
|
33588
33867
|
|
|
33589
33868
|
function RecordVideo(_ref) {
|
|
33590
|
-
var
|
|
33591
|
-
userInfo = _ref.userInfo,
|
|
33869
|
+
var userInfo = _ref.userInfo,
|
|
33592
33870
|
liveInfo = _ref.liveInfo,
|
|
33593
33871
|
visitTime = _ref.visitTime,
|
|
33594
33872
|
diffTime = _ref.diffTime,
|
|
@@ -33729,7 +34007,6 @@ function RecordVideo(_ref) {
|
|
|
33729
34007
|
options: options,
|
|
33730
34008
|
onReady: handleVideoReady
|
|
33731
34009
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(detail_LiveStatus, {
|
|
33732
|
-
isStreamLive: isStreamLive,
|
|
33733
34010
|
userInfo: userInfo,
|
|
33734
34011
|
visitTime: visitTime,
|
|
33735
34012
|
diffTime: diffTime,
|
|
@@ -33741,8 +34018,6 @@ function RecordVideo(_ref) {
|
|
|
33741
34018
|
onReloadLive: handleVideoReload
|
|
33742
34019
|
}));
|
|
33743
34020
|
}
|
|
33744
|
-
// EXTERNAL MODULE: ./node_modules/@sdp.nd/fish/es/loader/style/index.js
|
|
33745
|
-
var loader_style = __webpack_require__(4646);
|
|
33746
34021
|
;// CONCATENATED MODULE: ./src/component/AliPlayer/index.jsx
|
|
33747
34022
|
|
|
33748
34023
|
|
|
@@ -33761,10 +34036,12 @@ function AliPlayer_asyncToGenerator(fn) { return function () { var self = this,
|
|
|
33761
34036
|
|
|
33762
34037
|
var AliPlayer_loadCSS = loader.loadCSS,
|
|
33763
34038
|
AliPlayer_loadJS = loader.loadJS;
|
|
33764
|
-
var
|
|
33765
|
-
var
|
|
33766
|
-
var
|
|
33767
|
-
var
|
|
34039
|
+
var global = window.rawWindow || window;
|
|
34040
|
+
var host = global.location.origin;
|
|
34041
|
+
var playerJS = "".concat(host, "/3rd/ali-player/aliplayer-min.js");
|
|
34042
|
+
var playerHLS = "".concat(host, "/3rd/ali-player/aliplayer-hls-min.js");
|
|
34043
|
+
var playerComponents = "".concat(host, "/3rd/ali-player/alipayercomponents-1.0.8.min.js");
|
|
34044
|
+
var playerCSS = "".concat(host, "/3rd/ali-player/aliplayer-min.css");
|
|
33768
34045
|
function AliPlayer(_ref) {
|
|
33769
34046
|
var className = _ref.className,
|
|
33770
34047
|
options = _ref.options,
|
|
@@ -33780,8 +34057,8 @@ function AliPlayer(_ref) {
|
|
|
33780
34057
|
var aliPlayer;
|
|
33781
34058
|
|
|
33782
34059
|
var init = /*#__PURE__*/function () {
|
|
33783
|
-
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/
|
|
33784
|
-
return
|
|
34060
|
+
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
34061
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33785
34062
|
while (1) {
|
|
33786
34063
|
switch (_context.prev = _context.next) {
|
|
33787
34064
|
case 0:
|
|
@@ -33940,6 +34217,26 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
33940
34217
|
|
|
33941
34218
|
return _arr;
|
|
33942
34219
|
}
|
|
34220
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34221
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34222
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
34223
|
+
|
|
34224
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34225
|
+
arr2[i] = arr[i];
|
|
34226
|
+
}
|
|
34227
|
+
|
|
34228
|
+
return arr2;
|
|
34229
|
+
}
|
|
34230
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34231
|
+
|
|
34232
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34233
|
+
if (!o) return;
|
|
34234
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34235
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34236
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34237
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34238
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34239
|
+
}
|
|
33943
34240
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
33944
34241
|
function nonIterableRest_nonIterableRest() {
|
|
33945
34242
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -33950,7 +34247,7 @@ function nonIterableRest_nonIterableRest() {
|
|
|
33950
34247
|
|
|
33951
34248
|
|
|
33952
34249
|
function slicedToArray_slicedToArray(arr, i) {
|
|
33953
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
34250
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
33954
34251
|
}
|
|
33955
34252
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
33956
34253
|
var raf = function raf(callback) {
|
|
@@ -34177,6 +34474,27 @@ var cacheStyle = {};
|
|
|
34177
34474
|
}
|
|
34178
34475
|
}
|
|
34179
34476
|
});
|
|
34477
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34478
|
+
|
|
34479
|
+
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34480
|
+
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34481
|
+
}
|
|
34482
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34483
|
+
function iterableToArray_iterableToArray(iter) {
|
|
34484
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34485
|
+
}
|
|
34486
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34487
|
+
function nonIterableSpread_nonIterableSpread() {
|
|
34488
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34489
|
+
}
|
|
34490
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34491
|
+
|
|
34492
|
+
|
|
34493
|
+
|
|
34494
|
+
|
|
34495
|
+
function toConsumableArray_toConsumableArray(arr) {
|
|
34496
|
+
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34497
|
+
}
|
|
34180
34498
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34181
34499
|
|
|
34182
34500
|
|
|
@@ -34193,7 +34511,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34193
34511
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34194
34512
|
var _this = this;
|
|
34195
34513
|
|
|
34196
|
-
|
|
34514
|
+
classCallCheck_classCallCheck(this, ScrollLocker);
|
|
34197
34515
|
|
|
34198
34516
|
this.lockTarget = void 0;
|
|
34199
34517
|
this.options = void 0;
|
|
@@ -34241,7 +34559,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34241
34559
|
var options = _ref3.options;
|
|
34242
34560
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34243
34561
|
})) {
|
|
34244
|
-
locks = [].concat(
|
|
34562
|
+
locks = [].concat(toConsumableArray_toConsumableArray(locks), [{
|
|
34245
34563
|
target: _this.lockTarget,
|
|
34246
34564
|
options: _this.options
|
|
34247
34565
|
}]);
|
|
@@ -34279,7 +34597,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34279
34597
|
container.className = addClassName.trim();
|
|
34280
34598
|
}
|
|
34281
34599
|
|
|
34282
|
-
locks = [].concat(
|
|
34600
|
+
locks = [].concat(toConsumableArray_toConsumableArray(locks), [{
|
|
34283
34601
|
target: _this.lockTarget,
|
|
34284
34602
|
options: _this.options
|
|
34285
34603
|
}]);
|
|
@@ -34363,7 +34681,7 @@ var getParent = function getParent(getContainer) {
|
|
|
34363
34681
|
return getContainer();
|
|
34364
34682
|
}
|
|
34365
34683
|
|
|
34366
|
-
if (
|
|
34684
|
+
if (esm_typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
34367
34685
|
return getContainer;
|
|
34368
34686
|
}
|
|
34369
34687
|
}
|
|
@@ -34372,14 +34690,14 @@ var getParent = function getParent(getContainer) {
|
|
|
34372
34690
|
};
|
|
34373
34691
|
|
|
34374
34692
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
34375
|
-
|
|
34693
|
+
inherits_inherits(PortalWrapper, _React$Component);
|
|
34376
34694
|
|
|
34377
|
-
var _super =
|
|
34695
|
+
var _super = createSuper_createSuper(PortalWrapper);
|
|
34378
34696
|
|
|
34379
34697
|
function PortalWrapper(props) {
|
|
34380
34698
|
var _this;
|
|
34381
34699
|
|
|
34382
|
-
|
|
34700
|
+
classCallCheck_classCallCheck(this, PortalWrapper);
|
|
34383
34701
|
|
|
34384
34702
|
_this = _super.call(this, props);
|
|
34385
34703
|
_this.container = void 0;
|
|
@@ -34499,7 +34817,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34499
34817
|
return _this;
|
|
34500
34818
|
}
|
|
34501
34819
|
|
|
34502
|
-
|
|
34820
|
+
createClass_createClass(PortalWrapper, [{
|
|
34503
34821
|
key: "componentDidMount",
|
|
34504
34822
|
value: function componentDidMount() {
|
|
34505
34823
|
var _this2 = this;
|
|
@@ -34567,6 +34885,46 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34567
34885
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
34568
34886
|
|
|
34569
34887
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
34888
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
34889
|
+
|
|
34890
|
+
|
|
34891
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
34892
|
+
var keys = Object.keys(object);
|
|
34893
|
+
|
|
34894
|
+
if (Object.getOwnPropertySymbols) {
|
|
34895
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
34896
|
+
|
|
34897
|
+
if (enumerableOnly) {
|
|
34898
|
+
symbols = symbols.filter(function (sym) {
|
|
34899
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
34900
|
+
});
|
|
34901
|
+
}
|
|
34902
|
+
|
|
34903
|
+
keys.push.apply(keys, symbols);
|
|
34904
|
+
}
|
|
34905
|
+
|
|
34906
|
+
return keys;
|
|
34907
|
+
}
|
|
34908
|
+
|
|
34909
|
+
function objectSpread2_objectSpread2(target) {
|
|
34910
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
34911
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
34912
|
+
|
|
34913
|
+
if (i % 2) {
|
|
34914
|
+
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
34915
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
34916
|
+
});
|
|
34917
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
34918
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
34919
|
+
} else {
|
|
34920
|
+
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
34921
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
34922
|
+
});
|
|
34923
|
+
}
|
|
34924
|
+
}
|
|
34925
|
+
|
|
34926
|
+
return target;
|
|
34927
|
+
}
|
|
34570
34928
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
34571
34929
|
/**
|
|
34572
34930
|
* @ignore
|
|
@@ -35233,7 +35591,7 @@ function pickAttrs(props) {
|
|
|
35233
35591
|
aria: true
|
|
35234
35592
|
};
|
|
35235
35593
|
} else {
|
|
35236
|
-
mergedConfig =
|
|
35594
|
+
mergedConfig = objectSpread2_objectSpread2({}, ariaOnly);
|
|
35237
35595
|
}
|
|
35238
35596
|
|
|
35239
35597
|
var attrs = {};
|
|
@@ -35266,7 +35624,7 @@ var react_is = __webpack_require__(9864);
|
|
|
35266
35624
|
function fillRef(ref, node) {
|
|
35267
35625
|
if (typeof ref === 'function') {
|
|
35268
35626
|
ref(node);
|
|
35269
|
-
} else if (
|
|
35627
|
+
} else if (esm_typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
35270
35628
|
ref.current = node;
|
|
35271
35629
|
}
|
|
35272
35630
|
}
|
|
@@ -35376,7 +35734,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
35376
35734
|
function getTransitionName(transitionName, transitionType) {
|
|
35377
35735
|
if (!transitionName) return null;
|
|
35378
35736
|
|
|
35379
|
-
if (
|
|
35737
|
+
if (esm_typeof_typeof(transitionName) === 'object') {
|
|
35380
35738
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
35381
35739
|
return match[1].toUpperCase();
|
|
35382
35740
|
});
|
|
@@ -35669,13 +36027,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
35669
36027
|
|
|
35670
36028
|
switch (status) {
|
|
35671
36029
|
case 'appear':
|
|
35672
|
-
return _ref2 = {},
|
|
36030
|
+
return _ref2 = {}, defineProperty_defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), defineProperty_defineProperty(_ref2, STEP_START, onAppearStart), defineProperty_defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
35673
36031
|
|
|
35674
36032
|
case 'enter':
|
|
35675
|
-
return _ref3 = {},
|
|
36033
|
+
return _ref3 = {}, defineProperty_defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), defineProperty_defineProperty(_ref3, STEP_START, onEnterStart), defineProperty_defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
35676
36034
|
|
|
35677
36035
|
case 'leave':
|
|
35678
|
-
return _ref4 = {},
|
|
36036
|
+
return _ref4 = {}, defineProperty_defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), defineProperty_defineProperty(_ref4, STEP_START, onLeaveStart), defineProperty_defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
35679
36037
|
|
|
35680
36038
|
default:
|
|
35681
36039
|
return {};
|
|
@@ -35783,7 +36141,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
35783
36141
|
var mergedStyle = style;
|
|
35784
36142
|
|
|
35785
36143
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
35786
|
-
mergedStyle =
|
|
36144
|
+
mergedStyle = objectSpread2_objectSpread2({
|
|
35787
36145
|
transition: 'none'
|
|
35788
36146
|
}, mergedStyle);
|
|
35789
36147
|
}
|
|
@@ -35798,17 +36156,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
35798
36156
|
|
|
35799
36157
|
|
|
35800
36158
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
35801
|
-
|
|
36159
|
+
inherits_inherits(DomWrapper, _React$Component);
|
|
35802
36160
|
|
|
35803
|
-
var _super =
|
|
36161
|
+
var _super = createSuper_createSuper(DomWrapper);
|
|
35804
36162
|
|
|
35805
36163
|
function DomWrapper() {
|
|
35806
|
-
|
|
36164
|
+
classCallCheck_classCallCheck(this, DomWrapper);
|
|
35807
36165
|
|
|
35808
36166
|
return _super.apply(this, arguments);
|
|
35809
36167
|
}
|
|
35810
36168
|
|
|
35811
|
-
|
|
36169
|
+
createClass_createClass(DomWrapper, [{
|
|
35812
36170
|
key: "render",
|
|
35813
36171
|
value: function render() {
|
|
35814
36172
|
return this.props.children;
|
|
@@ -35844,7 +36202,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35844
36202
|
function genCSSMotion(config) {
|
|
35845
36203
|
var transitionSupport = config;
|
|
35846
36204
|
|
|
35847
|
-
if (
|
|
36205
|
+
if (esm_typeof_typeof(config) === 'object') {
|
|
35848
36206
|
transitionSupport = config.transitionSupport;
|
|
35849
36207
|
}
|
|
35850
36208
|
|
|
@@ -35902,7 +36260,7 @@ function genCSSMotion(config) {
|
|
|
35902
36260
|
|
|
35903
36261
|
var motionChildren;
|
|
35904
36262
|
|
|
35905
|
-
var mergedProps =
|
|
36263
|
+
var mergedProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, eventProps), {}, {
|
|
35906
36264
|
visible: visible
|
|
35907
36265
|
});
|
|
35908
36266
|
|
|
@@ -35912,13 +36270,13 @@ function genCSSMotion(config) {
|
|
|
35912
36270
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
35913
36271
|
// Stable children
|
|
35914
36272
|
if (mergedVisible) {
|
|
35915
|
-
motionChildren = children(
|
|
36273
|
+
motionChildren = children(objectSpread2_objectSpread2({}, mergedProps), setNodeRef);
|
|
35916
36274
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
35917
|
-
motionChildren = children(
|
|
36275
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
35918
36276
|
className: leavedClassName
|
|
35919
36277
|
}), setNodeRef);
|
|
35920
36278
|
} else if (forceRender) {
|
|
35921
|
-
motionChildren = children(
|
|
36279
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
35922
36280
|
style: {
|
|
35923
36281
|
display: 'none'
|
|
35924
36282
|
}
|
|
@@ -35940,8 +36298,8 @@ function genCSSMotion(config) {
|
|
|
35940
36298
|
statusSuffix = 'start';
|
|
35941
36299
|
}
|
|
35942
36300
|
|
|
35943
|
-
motionChildren = children(
|
|
35944
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
36301
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36302
|
+
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)),
|
|
35945
36303
|
style: statusStyle
|
|
35946
36304
|
}), setNodeRef);
|
|
35947
36305
|
}
|
|
@@ -35954,6 +36312,41 @@ function genCSSMotion(config) {
|
|
|
35954
36312
|
return CSSMotion;
|
|
35955
36313
|
}
|
|
35956
36314
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36315
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36316
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36317
|
+
if (source == null) return {};
|
|
36318
|
+
var target = {};
|
|
36319
|
+
var sourceKeys = Object.keys(source);
|
|
36320
|
+
var key, i;
|
|
36321
|
+
|
|
36322
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
36323
|
+
key = sourceKeys[i];
|
|
36324
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36325
|
+
target[key] = source[key];
|
|
36326
|
+
}
|
|
36327
|
+
|
|
36328
|
+
return target;
|
|
36329
|
+
}
|
|
36330
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36331
|
+
|
|
36332
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36333
|
+
if (source == null) return {};
|
|
36334
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36335
|
+
var key, i;
|
|
36336
|
+
|
|
36337
|
+
if (Object.getOwnPropertySymbols) {
|
|
36338
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36339
|
+
|
|
36340
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36341
|
+
key = sourceSymbolKeys[i];
|
|
36342
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36343
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36344
|
+
target[key] = source[key];
|
|
36345
|
+
}
|
|
36346
|
+
}
|
|
36347
|
+
|
|
36348
|
+
return target;
|
|
36349
|
+
}
|
|
35957
36350
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
35958
36351
|
|
|
35959
36352
|
|
|
@@ -35964,7 +36357,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
35964
36357
|
function wrapKeyToObject(key) {
|
|
35965
36358
|
var keyObj;
|
|
35966
36359
|
|
|
35967
|
-
if (key &&
|
|
36360
|
+
if (key && esm_typeof_typeof(key) === 'object' && 'key' in key) {
|
|
35968
36361
|
keyObj = key;
|
|
35969
36362
|
} else {
|
|
35970
36363
|
keyObj = {
|
|
@@ -35972,7 +36365,7 @@ function wrapKeyToObject(key) {
|
|
|
35972
36365
|
};
|
|
35973
36366
|
}
|
|
35974
36367
|
|
|
35975
|
-
return
|
|
36368
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
35976
36369
|
key: String(keyObj.key)
|
|
35977
36370
|
});
|
|
35978
36371
|
}
|
|
@@ -35999,14 +36392,14 @@ function diffKeys() {
|
|
|
35999
36392
|
// New added keys should add before current key
|
|
36000
36393
|
if (currentIndex < i) {
|
|
36001
36394
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
36002
|
-
return
|
|
36395
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
36003
36396
|
status: STATUS_ADD
|
|
36004
36397
|
});
|
|
36005
36398
|
}));
|
|
36006
36399
|
currentIndex = i;
|
|
36007
36400
|
}
|
|
36008
36401
|
|
|
36009
|
-
list.push(
|
|
36402
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentKeyObj), {}, {
|
|
36010
36403
|
status: STATUS_KEEP
|
|
36011
36404
|
}));
|
|
36012
36405
|
currentIndex += 1;
|
|
@@ -36017,7 +36410,7 @@ function diffKeys() {
|
|
|
36017
36410
|
|
|
36018
36411
|
|
|
36019
36412
|
if (!hit) {
|
|
36020
|
-
list.push(
|
|
36413
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
36021
36414
|
status: STATUS_REMOVE
|
|
36022
36415
|
}));
|
|
36023
36416
|
}
|
|
@@ -36025,7 +36418,7 @@ function diffKeys() {
|
|
|
36025
36418
|
|
|
36026
36419
|
if (currentIndex < currentLen) {
|
|
36027
36420
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36028
|
-
return
|
|
36421
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
36029
36422
|
status: STATUS_ADD
|
|
36030
36423
|
});
|
|
36031
36424
|
}));
|
|
@@ -36086,14 +36479,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36086
36479
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36087
36480
|
|
|
36088
36481
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36089
|
-
|
|
36482
|
+
inherits_inherits(CSSMotionList, _React$Component);
|
|
36090
36483
|
|
|
36091
|
-
var _super =
|
|
36484
|
+
var _super = createSuper_createSuper(CSSMotionList);
|
|
36092
36485
|
|
|
36093
36486
|
function CSSMotionList() {
|
|
36094
36487
|
var _this;
|
|
36095
36488
|
|
|
36096
|
-
|
|
36489
|
+
classCallCheck_classCallCheck(this, CSSMotionList);
|
|
36097
36490
|
|
|
36098
36491
|
_this = _super.apply(this, arguments);
|
|
36099
36492
|
_this.state = {
|
|
@@ -36106,7 +36499,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36106
36499
|
return {
|
|
36107
36500
|
keyEntities: keyEntities.map(function (entity) {
|
|
36108
36501
|
if (entity.key !== removeKey) return entity;
|
|
36109
|
-
return
|
|
36502
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, entity), {}, {
|
|
36110
36503
|
status: STATUS_REMOVED
|
|
36111
36504
|
});
|
|
36112
36505
|
})
|
|
@@ -36117,7 +36510,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36117
36510
|
return _this;
|
|
36118
36511
|
}
|
|
36119
36512
|
|
|
36120
|
-
|
|
36513
|
+
createClass_createClass(CSSMotionList, [{
|
|
36121
36514
|
key: "render",
|
|
36122
36515
|
value: function render() {
|
|
36123
36516
|
var _this2 = this;
|
|
@@ -36128,7 +36521,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36128
36521
|
component = _this$props.component,
|
|
36129
36522
|
children = _this$props.children,
|
|
36130
36523
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36131
|
-
restProps =
|
|
36524
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36132
36525
|
|
|
36133
36526
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36134
36527
|
var motionProps = {};
|
|
@@ -36139,10 +36532,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36139
36532
|
delete restProps.keys;
|
|
36140
36533
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36141
36534
|
var status = _ref2.status,
|
|
36142
|
-
eventProps =
|
|
36535
|
+
eventProps = objectWithoutProperties_objectWithoutProperties(_ref2, ["status"]);
|
|
36143
36536
|
|
|
36144
36537
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36145
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
36538
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, esm_extends_extends({}, motionProps, {
|
|
36146
36539
|
key: eventProps.key,
|
|
36147
36540
|
visible: visible,
|
|
36148
36541
|
eventProps: eventProps,
|
|
@@ -36216,8 +36609,8 @@ function Mask(props) {
|
|
|
36216
36609
|
}, function (_ref) {
|
|
36217
36610
|
var motionClassName = _ref.className,
|
|
36218
36611
|
motionStyle = _ref.style;
|
|
36219
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36220
|
-
style:
|
|
36612
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36613
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), style),
|
|
36221
36614
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36222
36615
|
}, maskProps));
|
|
36223
36616
|
});
|
|
@@ -36400,7 +36793,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36400
36793
|
|
|
36401
36794
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
36402
36795
|
className: "".concat(prefixCls, "-content")
|
|
36403
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36796
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36404
36797
|
className: "".concat(prefixCls, "-body"),
|
|
36405
36798
|
style: bodyStyle
|
|
36406
36799
|
}, bodyProps), children), footerNode);
|
|
@@ -36420,7 +36813,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36420
36813
|
key: "dialog-element",
|
|
36421
36814
|
role: "document",
|
|
36422
36815
|
ref: motionRef,
|
|
36423
|
-
style:
|
|
36816
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), style), contentStyle),
|
|
36424
36817
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
36425
36818
|
onMouseDown: onMouseDown,
|
|
36426
36819
|
onMouseUp: onMouseUp
|
|
@@ -36602,7 +36995,7 @@ function Dialog(props) {
|
|
|
36602
36995
|
return function () {};
|
|
36603
36996
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
36604
36997
|
|
|
36605
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36998
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36606
36999
|
className: "".concat(prefixCls, "-root")
|
|
36607
37000
|
}, pickAttrs(props, {
|
|
36608
37001
|
data: true
|
|
@@ -36610,11 +37003,11 @@ function Dialog(props) {
|
|
|
36610
37003
|
prefixCls: prefixCls,
|
|
36611
37004
|
visible: mask && visible,
|
|
36612
37005
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
36613
|
-
style:
|
|
37006
|
+
style: objectSpread2_objectSpread2({
|
|
36614
37007
|
zIndex: zIndex
|
|
36615
37008
|
}, maskStyle),
|
|
36616
37009
|
maskProps: maskProps
|
|
36617
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37010
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36618
37011
|
tabIndex: -1,
|
|
36619
37012
|
onKeyDown: onWrapperKeyDown,
|
|
36620
37013
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -36622,12 +37015,12 @@ function Dialog(props) {
|
|
|
36622
37015
|
onClick: onWrapperClick,
|
|
36623
37016
|
role: "dialog",
|
|
36624
37017
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
36625
|
-
style:
|
|
37018
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
36626
37019
|
zIndex: zIndex
|
|
36627
37020
|
}, wrapStyle), {}, {
|
|
36628
37021
|
display: !animatedVisible ? 'none' : null
|
|
36629
37022
|
})
|
|
36630
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
37023
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, esm_extends_extends({}, props, {
|
|
36631
37024
|
onMouseDown: onContentMouseDown,
|
|
36632
37025
|
onMouseUp: onContentMouseUp,
|
|
36633
37026
|
ref: contentRef,
|
|
@@ -36675,7 +37068,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
36675
37068
|
}, [visible]); // 渲染在当前 dom 里;
|
|
36676
37069
|
|
|
36677
37070
|
if (getContainer === false) {
|
|
36678
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37071
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
36679
37072
|
getOpenCount: function getOpenCount() {
|
|
36680
37073
|
return 2;
|
|
36681
37074
|
} // 不对 body 做任何操作。。
|
|
@@ -36693,7 +37086,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
36693
37086
|
forceRender: forceRender,
|
|
36694
37087
|
getContainer: getContainer
|
|
36695
37088
|
}, function (childProps) {
|
|
36696
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37089
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
36697
37090
|
destroyOnClose: destroyOnClose,
|
|
36698
37091
|
afterClose: function afterClose() {
|
|
36699
37092
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -36728,8 +37121,8 @@ function getConfirmLocale() {
|
|
|
36728
37121
|
|
|
36729
37122
|
|
|
36730
37123
|
|
|
36731
|
-
var UnreachableException = /*#__PURE__*/
|
|
36732
|
-
|
|
37124
|
+
var UnreachableException = /*#__PURE__*/createClass_createClass(function UnreachableException(value) {
|
|
37125
|
+
classCallCheck_classCallCheck(this, UnreachableException);
|
|
36733
37126
|
|
|
36734
37127
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
36735
37128
|
});
|
|
@@ -36792,8 +37185,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
36792
37185
|
console.warn(new UnreachableException(size).error);
|
|
36793
37186
|
}
|
|
36794
37187
|
|
|
36795
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
36796
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37188
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37189
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, others, {
|
|
36797
37190
|
className: classes
|
|
36798
37191
|
}));
|
|
36799
37192
|
});
|
|
@@ -36864,14 +37257,14 @@ function isNotGrey(color) {
|
|
|
36864
37257
|
}
|
|
36865
37258
|
|
|
36866
37259
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
36867
|
-
|
|
37260
|
+
inherits_inherits(Wave, _React$Component);
|
|
36868
37261
|
|
|
36869
|
-
var _super =
|
|
37262
|
+
var _super = createSuper_createSuper(Wave);
|
|
36870
37263
|
|
|
36871
37264
|
function Wave() {
|
|
36872
37265
|
var _this;
|
|
36873
37266
|
|
|
36874
|
-
|
|
37267
|
+
classCallCheck_classCallCheck(this, Wave);
|
|
36875
37268
|
|
|
36876
37269
|
_this = _super.apply(this, arguments);
|
|
36877
37270
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -36891,7 +37284,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
36891
37284
|
|
|
36892
37285
|
_this.extraNode = document.createElement('div');
|
|
36893
37286
|
|
|
36894
|
-
var _assertThisInitialize =
|
|
37287
|
+
var _assertThisInitialize = assertThisInitialized_assertThisInitialized(_this),
|
|
36895
37288
|
extraNode = _assertThisInitialize.extraNode;
|
|
36896
37289
|
|
|
36897
37290
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -36998,7 +37391,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
36998
37391
|
return _this;
|
|
36999
37392
|
}
|
|
37000
37393
|
|
|
37001
|
-
|
|
37394
|
+
createClass_createClass(Wave, [{
|
|
37002
37395
|
key: "componentDidMount",
|
|
37003
37396
|
value: function componentDidMount() {
|
|
37004
37397
|
var node = this.containerRef.current;
|
|
@@ -37225,7 +37618,7 @@ function spaceChildren(children, needInserted) {
|
|
|
37225
37618
|
var isPrevChildPure = false;
|
|
37226
37619
|
var childList = [];
|
|
37227
37620
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
37228
|
-
var type =
|
|
37621
|
+
var type = esm_typeof_typeof(child);
|
|
37229
37622
|
|
|
37230
37623
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
37231
37624
|
|
|
@@ -37325,7 +37718,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37325
37718
|
}; // =============== Update Loading ===============
|
|
37326
37719
|
|
|
37327
37720
|
|
|
37328
|
-
var loadingOrDelay =
|
|
37721
|
+
var loadingOrDelay = esm_typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
37329
37722
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
37330
37723
|
clearTimeout(delayTimeoutRef.current);
|
|
37331
37724
|
|
|
@@ -37365,7 +37758,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37365
37758
|
var sizeFullname = customizeSize || size;
|
|
37366
37759
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
37367
37760
|
var iconType = innerLoading ? 'loading' : icon;
|
|
37368
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37761
|
+
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);
|
|
37369
37762
|
var iconNode;
|
|
37370
37763
|
|
|
37371
37764
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -37384,14 +37777,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37384
37777
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
37385
37778
|
|
|
37386
37779
|
if (linkButtonRestProps.href !== undefined) {
|
|
37387
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
37780
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", esm_extends_extends({}, linkButtonRestProps, {
|
|
37388
37781
|
className: classes,
|
|
37389
37782
|
onClick: handleClick,
|
|
37390
37783
|
ref: buttonRef
|
|
37391
37784
|
}), iconNode, kids);
|
|
37392
37785
|
}
|
|
37393
37786
|
|
|
37394
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
37787
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", esm_extends_extends({}, rest, {
|
|
37395
37788
|
type: htmlType,
|
|
37396
37789
|
className: classes,
|
|
37397
37790
|
onClick: handleClick,
|
|
@@ -37569,9 +37962,9 @@ var Modal = function Modal(props) {
|
|
|
37569
37962
|
okType = props.okType,
|
|
37570
37963
|
cancelText = props.cancelText,
|
|
37571
37964
|
confirmLoading = props.confirmLoading;
|
|
37572
|
-
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,
|
|
37965
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, esm_extends_extends({
|
|
37573
37966
|
onClick: handleCancel
|
|
37574
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
37967
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, esm_extends_extends({}, convertLegacyProps(okType), {
|
|
37575
37968
|
loading: confirmLoading,
|
|
37576
37969
|
onClick: handleOk
|
|
37577
37970
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -37606,8 +37999,8 @@ var Modal = function Modal(props) {
|
|
|
37606
37999
|
type: "close",
|
|
37607
38000
|
className: "".concat(prefixCls, "-close-icon")
|
|
37608
38001
|
}));
|
|
37609
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
37610
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
38002
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
38003
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, esm_extends_extends({}, restProps, {
|
|
37611
38004
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
37612
38005
|
prefixCls: prefixCls,
|
|
37613
38006
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -37733,7 +38126,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
37733
38126
|
children = props.children,
|
|
37734
38127
|
prefixCls = props.prefixCls,
|
|
37735
38128
|
buttonProps = props.buttonProps;
|
|
37736
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
38129
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, esm_extends_extends({}, convertLegacyProps(type), {
|
|
37737
38130
|
onClick: onClick,
|
|
37738
38131
|
loading: loading,
|
|
37739
38132
|
prefixCls: prefixCls
|
|
@@ -39250,7 +39643,7 @@ function get(entity, path) {
|
|
|
39250
39643
|
|
|
39251
39644
|
|
|
39252
39645
|
function _toArray(arr) {
|
|
39253
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
39646
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
39254
39647
|
}
|
|
39255
39648
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
39256
39649
|
|
|
@@ -39272,9 +39665,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
39272
39665
|
if (!entity && typeof path === 'number') {
|
|
39273
39666
|
clone = [];
|
|
39274
39667
|
} else if (Array.isArray(entity)) {
|
|
39275
|
-
clone =
|
|
39668
|
+
clone = toConsumableArray_toConsumableArray(entity);
|
|
39276
39669
|
} else {
|
|
39277
|
-
clone =
|
|
39670
|
+
clone = objectSpread2_objectSpread2({}, entity);
|
|
39278
39671
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
39279
39672
|
|
|
39280
39673
|
|
|
@@ -39338,7 +39731,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
39338
39731
|
}
|
|
39339
39732
|
|
|
39340
39733
|
function isObject(obj) {
|
|
39341
|
-
return
|
|
39734
|
+
return esm_typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
39342
39735
|
}
|
|
39343
39736
|
/**
|
|
39344
39737
|
* Copy values into store and return a new values object
|
|
@@ -39347,7 +39740,7 @@ function isObject(obj) {
|
|
|
39347
39740
|
|
|
39348
39741
|
|
|
39349
39742
|
function internalSetValues(store, values) {
|
|
39350
|
-
var newStore = Array.isArray(store) ?
|
|
39743
|
+
var newStore = Array.isArray(store) ? toConsumableArray_toConsumableArray(store) : objectSpread2_objectSpread2({}, store);
|
|
39351
39744
|
|
|
39352
39745
|
if (!values) {
|
|
39353
39746
|
return newStore;
|
|
@@ -39390,14 +39783,14 @@ function isSimilar(source, target) {
|
|
|
39390
39783
|
return false;
|
|
39391
39784
|
}
|
|
39392
39785
|
|
|
39393
|
-
if (!source || !target ||
|
|
39786
|
+
if (!source || !target || esm_typeof_typeof(source) !== 'object' || esm_typeof_typeof(target) !== 'object') {
|
|
39394
39787
|
return false;
|
|
39395
39788
|
}
|
|
39396
39789
|
|
|
39397
39790
|
var sourceKeys = Object.keys(source);
|
|
39398
39791
|
var targetKeys = Object.keys(target);
|
|
39399
|
-
var keys = new Set([].concat(
|
|
39400
|
-
return
|
|
39792
|
+
var keys = new Set([].concat(toConsumableArray_toConsumableArray(sourceKeys), toConsumableArray_toConsumableArray(targetKeys)));
|
|
39793
|
+
return toConsumableArray_toConsumableArray(keys).every(function (key) {
|
|
39401
39794
|
var sourceValue = source[key];
|
|
39402
39795
|
var targetValue = target[key];
|
|
39403
39796
|
|
|
@@ -39440,12 +39833,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
39440
39833
|
|
|
39441
39834
|
if (diff > 0) {
|
|
39442
39835
|
// move left
|
|
39443
|
-
return [].concat(
|
|
39836
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, toIndex)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
39444
39837
|
}
|
|
39445
39838
|
|
|
39446
39839
|
if (diff < 0) {
|
|
39447
39840
|
// move right
|
|
39448
|
-
return [].concat(
|
|
39841
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex + 1, length)));
|
|
39449
39842
|
}
|
|
39450
39843
|
|
|
39451
39844
|
return array;
|
|
@@ -39485,13 +39878,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
39485
39878
|
|
|
39486
39879
|
|
|
39487
39880
|
function _validateRule() {
|
|
39488
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39881
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
39489
39882
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
39490
|
-
return
|
|
39883
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
39491
39884
|
while (1) {
|
|
39492
39885
|
switch (_context2.prev = _context2.next) {
|
|
39493
39886
|
case 0:
|
|
39494
|
-
cloneRule =
|
|
39887
|
+
cloneRule = objectSpread2_objectSpread2({}, rule); // Bug of `async-validator`
|
|
39495
39888
|
// https://github.com/react-component/field-form/issues/316
|
|
39496
39889
|
// https://github.com/react-component/field-form/issues/313
|
|
39497
39890
|
|
|
@@ -39504,13 +39897,13 @@ function _validateRule() {
|
|
|
39504
39897
|
delete cloneRule.defaultField;
|
|
39505
39898
|
}
|
|
39506
39899
|
|
|
39507
|
-
validator = new AsyncValidator(
|
|
39900
|
+
validator = new AsyncValidator(defineProperty_defineProperty({}, name, [cloneRule]));
|
|
39508
39901
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
39509
39902
|
validator.messages(messages);
|
|
39510
39903
|
result = [];
|
|
39511
39904
|
_context2.prev = 8;
|
|
39512
39905
|
_context2.next = 11;
|
|
39513
|
-
return Promise.resolve(validator.validate(
|
|
39906
|
+
return Promise.resolve(validator.validate(defineProperty_defineProperty({}, name, value), objectSpread2_objectSpread2({}, options)));
|
|
39514
39907
|
|
|
39515
39908
|
case 11:
|
|
39516
39909
|
_context2.next = 16;
|
|
@@ -39550,12 +39943,12 @@ function _validateRule() {
|
|
|
39550
39943
|
case 19:
|
|
39551
39944
|
subResults = _context2.sent;
|
|
39552
39945
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
39553
|
-
return [].concat(
|
|
39946
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), toConsumableArray_toConsumableArray(errors));
|
|
39554
39947
|
}, []));
|
|
39555
39948
|
|
|
39556
39949
|
case 21:
|
|
39557
39950
|
// Replace message with variables
|
|
39558
|
-
kv =
|
|
39951
|
+
kv = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rule), {}, {
|
|
39559
39952
|
name: name,
|
|
39560
39953
|
enum: (rule.enum || []).join(', ')
|
|
39561
39954
|
}, messageVariables);
|
|
@@ -39584,7 +39977,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
39584
39977
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
39585
39978
|
var originValidatorFunc = currentRule.validator;
|
|
39586
39979
|
|
|
39587
|
-
var cloneRule =
|
|
39980
|
+
var cloneRule = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentRule), {}, {
|
|
39588
39981
|
ruleIndex: ruleIndex
|
|
39589
39982
|
}); // Replace validator if needed
|
|
39590
39983
|
|
|
@@ -39652,9 +40045,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
39652
40045
|
if (validateFirst === true) {
|
|
39653
40046
|
// >>>>> Validate by serialization
|
|
39654
40047
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
39655
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40048
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(resolve, reject) {
|
|
39656
40049
|
var i, rule, errors;
|
|
39657
|
-
return
|
|
40050
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
39658
40051
|
while (1) {
|
|
39659
40052
|
switch (_context.prev = _context.next) {
|
|
39660
40053
|
case 0:
|
|
@@ -39733,15 +40126,15 @@ function finishOnAllFailed(_x8) {
|
|
|
39733
40126
|
}
|
|
39734
40127
|
|
|
39735
40128
|
function _finishOnAllFailed() {
|
|
39736
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39737
|
-
return
|
|
40129
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(rulePromises) {
|
|
40130
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
39738
40131
|
while (1) {
|
|
39739
40132
|
switch (_context3.prev = _context3.next) {
|
|
39740
40133
|
case 0:
|
|
39741
40134
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
39742
40135
|
var _ref5;
|
|
39743
40136
|
|
|
39744
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
40137
|
+
var errors = (_ref5 = []).concat.apply(_ref5, toConsumableArray_toConsumableArray(errorsList));
|
|
39745
40138
|
|
|
39746
40139
|
return errors;
|
|
39747
40140
|
}));
|
|
@@ -39761,9 +40154,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
39761
40154
|
}
|
|
39762
40155
|
|
|
39763
40156
|
function _finishOnFirstFailed() {
|
|
39764
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40157
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee4(rulePromises) {
|
|
39765
40158
|
var count;
|
|
39766
|
-
return
|
|
40159
|
+
return runtime_regenerator_default().wrap(function _callee4$(_context4) {
|
|
39767
40160
|
while (1) {
|
|
39768
40161
|
switch (_context4.prev = _context4.next) {
|
|
39769
40162
|
case 0:
|
|
@@ -39826,9 +40219,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
39826
40219
|
|
|
39827
40220
|
|
|
39828
40221
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
39829
|
-
|
|
40222
|
+
inherits_inherits(Field, _React$Component);
|
|
39830
40223
|
|
|
39831
|
-
var _super =
|
|
40224
|
+
var _super = createSuper_createSuper(Field);
|
|
39832
40225
|
|
|
39833
40226
|
/**
|
|
39834
40227
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -39844,7 +40237,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
39844
40237
|
function Field(props) {
|
|
39845
40238
|
var _this;
|
|
39846
40239
|
|
|
39847
|
-
|
|
40240
|
+
classCallCheck_classCallCheck(this, Field);
|
|
39848
40241
|
|
|
39849
40242
|
_this = _super.call(this, props); // Register on init
|
|
39850
40243
|
|
|
@@ -39879,7 +40272,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
39879
40272
|
fieldContext = _this$props2.fieldContext;
|
|
39880
40273
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
39881
40274
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
39882
|
-
return name !== undefined ? [].concat(
|
|
40275
|
+
return name !== undefined ? [].concat(toConsumableArray_toConsumableArray(prefixName), toConsumableArray_toConsumableArray(name)) : [];
|
|
39883
40276
|
};
|
|
39884
40277
|
|
|
39885
40278
|
_this.getRules = function () {
|
|
@@ -39912,7 +40305,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
39912
40305
|
|
|
39913
40306
|
_this.triggerMetaEvent = function (destroy) {
|
|
39914
40307
|
var onMetaChange = _this.props.onMetaChange;
|
|
39915
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
40308
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getMeta()), {}, {
|
|
39916
40309
|
destroy: destroy
|
|
39917
40310
|
}));
|
|
39918
40311
|
};
|
|
@@ -40101,9 +40494,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40101
40494
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
40102
40495
|
|
|
40103
40496
|
if (warningOnly) {
|
|
40104
|
-
nextWarnings.push.apply(nextWarnings,
|
|
40497
|
+
nextWarnings.push.apply(nextWarnings, toConsumableArray_toConsumableArray(errors));
|
|
40105
40498
|
} else {
|
|
40106
|
-
nextErrors.push.apply(nextErrors,
|
|
40499
|
+
nextErrors.push.apply(nextErrors, toConsumableArray_toConsumableArray(errors));
|
|
40107
40500
|
}
|
|
40108
40501
|
});
|
|
40109
40502
|
_this.errors = nextErrors;
|
|
@@ -40194,7 +40587,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40194
40587
|
if (typeof children === 'function') {
|
|
40195
40588
|
var meta = _this.getMeta();
|
|
40196
40589
|
|
|
40197
|
-
return
|
|
40590
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
40198
40591
|
isFunction: true
|
|
40199
40592
|
});
|
|
40200
40593
|
} // Filed element only
|
|
@@ -40246,13 +40639,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40246
40639
|
var value = _this.getValue();
|
|
40247
40640
|
|
|
40248
40641
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
40249
|
-
return
|
|
40642
|
+
return defineProperty_defineProperty({}, valuePropName, val);
|
|
40250
40643
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40251
40644
|
|
|
40252
40645
|
|
|
40253
40646
|
var originTriggerFunc = childProps[trigger];
|
|
40254
40647
|
|
|
40255
|
-
var control =
|
|
40648
|
+
var control = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
40256
40649
|
|
|
40257
40650
|
|
|
40258
40651
|
control[trigger] = function () {
|
|
@@ -40323,13 +40716,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40323
40716
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
40324
40717
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
40325
40718
|
|
|
40326
|
-
initEntityValue(
|
|
40719
|
+
initEntityValue(assertThisInitialized_assertThisInitialized(_this));
|
|
40327
40720
|
}
|
|
40328
40721
|
|
|
40329
40722
|
return _this;
|
|
40330
40723
|
}
|
|
40331
40724
|
|
|
40332
|
-
|
|
40725
|
+
createClass_createClass(Field, [{
|
|
40333
40726
|
key: "componentDidMount",
|
|
40334
40727
|
value: function componentDidMount() {
|
|
40335
40728
|
var _this$props7 = this.props,
|
|
@@ -40403,7 +40796,7 @@ Field.defaultProps = {
|
|
|
40403
40796
|
|
|
40404
40797
|
function WrapperField(_ref5) {
|
|
40405
40798
|
var name = _ref5.name,
|
|
40406
|
-
restProps =
|
|
40799
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref5, Field_excluded);
|
|
40407
40800
|
|
|
40408
40801
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
40409
40802
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -40417,7 +40810,7 @@ function WrapperField(_ref5) {
|
|
|
40417
40810
|
|
|
40418
40811
|
if (false) {}
|
|
40419
40812
|
|
|
40420
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
40813
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, esm_extends_extends({
|
|
40421
40814
|
key: key,
|
|
40422
40815
|
name: namePath
|
|
40423
40816
|
}, restProps, {
|
|
@@ -40454,7 +40847,7 @@ var List = function List(_ref) {
|
|
|
40454
40847
|
}
|
|
40455
40848
|
|
|
40456
40849
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
40457
|
-
var prefixName = [].concat(
|
|
40850
|
+
var prefixName = [].concat(toConsumableArray_toConsumableArray(parentPrefixName), toConsumableArray_toConsumableArray(getNamePath(name)));
|
|
40458
40851
|
|
|
40459
40852
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
40460
40853
|
var source = _ref2.source;
|
|
@@ -40467,7 +40860,7 @@ var List = function List(_ref) {
|
|
|
40467
40860
|
};
|
|
40468
40861
|
|
|
40469
40862
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
40470
|
-
value:
|
|
40863
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, context), {}, {
|
|
40471
40864
|
prefixName: prefixName
|
|
40472
40865
|
})
|
|
40473
40866
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -40498,13 +40891,13 @@ var List = function List(_ref) {
|
|
|
40498
40891
|
var newValue = getNewValue();
|
|
40499
40892
|
|
|
40500
40893
|
if (index >= 0 && index <= newValue.length) {
|
|
40501
|
-
keyManager.keys = [].concat(
|
|
40502
|
-
onChange([].concat(
|
|
40894
|
+
keyManager.keys = [].concat(toConsumableArray_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], toConsumableArray_toConsumableArray(keyManager.keys.slice(index)));
|
|
40895
|
+
onChange([].concat(toConsumableArray_toConsumableArray(newValue.slice(0, index)), [defaultValue], toConsumableArray_toConsumableArray(newValue.slice(index))));
|
|
40503
40896
|
} else {
|
|
40504
40897
|
if (false) {}
|
|
40505
40898
|
|
|
40506
|
-
keyManager.keys = [].concat(
|
|
40507
|
-
onChange([].concat(
|
|
40899
|
+
keyManager.keys = [].concat(toConsumableArray_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
40900
|
+
onChange([].concat(toConsumableArray_toConsumableArray(newValue), [defaultValue]));
|
|
40508
40901
|
}
|
|
40509
40902
|
|
|
40510
40903
|
keyManager.id += 1;
|
|
@@ -40613,7 +41006,7 @@ var SPLIT = '__@field_split__';
|
|
|
40613
41006
|
|
|
40614
41007
|
function normalize(namePath) {
|
|
40615
41008
|
return namePath.map(function (cell) {
|
|
40616
|
-
return "".concat(
|
|
41009
|
+
return "".concat(esm_typeof_typeof(cell), ":").concat(cell);
|
|
40617
41010
|
}) // Magic split
|
|
40618
41011
|
.join(SPLIT);
|
|
40619
41012
|
}
|
|
@@ -40624,12 +41017,12 @@ function normalize(namePath) {
|
|
|
40624
41017
|
|
|
40625
41018
|
var NameMap = /*#__PURE__*/function () {
|
|
40626
41019
|
function NameMap() {
|
|
40627
|
-
|
|
41020
|
+
classCallCheck_classCallCheck(this, NameMap);
|
|
40628
41021
|
|
|
40629
41022
|
this.kvs = new Map();
|
|
40630
41023
|
}
|
|
40631
41024
|
|
|
40632
|
-
|
|
41025
|
+
createClass_createClass(NameMap, [{
|
|
40633
41026
|
key: "set",
|
|
40634
41027
|
value: function set(key, value) {
|
|
40635
41028
|
this.kvs.set(normalize(key), value);
|
|
@@ -40660,7 +41053,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
40660
41053
|
}, {
|
|
40661
41054
|
key: "map",
|
|
40662
41055
|
value: function map(callback) {
|
|
40663
|
-
return
|
|
41056
|
+
return toConsumableArray_toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
40664
41057
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
40665
41058
|
key = _ref2[0],
|
|
40666
41059
|
value = _ref2[1];
|
|
@@ -40714,7 +41107,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
40714
41107
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
40715
41108
|
var _this = this;
|
|
40716
41109
|
|
|
40717
|
-
|
|
41110
|
+
classCallCheck_classCallCheck(this, FormStore);
|
|
40718
41111
|
|
|
40719
41112
|
this.formHooked = false;
|
|
40720
41113
|
this.forceRootUpdate = void 0;
|
|
@@ -40974,7 +41367,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
40974
41367
|
return fieldNamePath[i] === nameUnit;
|
|
40975
41368
|
})) {
|
|
40976
41369
|
map.update(shortNamePath, function (list) {
|
|
40977
|
-
return [].concat(
|
|
41370
|
+
return [].concat(toConsumableArray_toConsumableArray(list), [field]);
|
|
40978
41371
|
});
|
|
40979
41372
|
}
|
|
40980
41373
|
});
|
|
@@ -41065,7 +41458,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41065
41458
|
|
|
41066
41459
|
|
|
41067
41460
|
if (!info.skipExist || originValue === undefined) {
|
|
41068
|
-
_this.store = setValue(_this.store, namePath,
|
|
41461
|
+
_this.store = setValue(_this.store, namePath, toConsumableArray_toConsumableArray(records)[0].value);
|
|
41069
41462
|
}
|
|
41070
41463
|
}
|
|
41071
41464
|
}
|
|
@@ -41085,7 +41478,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41085
41478
|
if (records) {
|
|
41086
41479
|
var _requiredFieldEntitie;
|
|
41087
41480
|
|
|
41088
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
41481
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, toConsumableArray_toConsumableArray(toConsumableArray_toConsumableArray(records).map(function (r) {
|
|
41089
41482
|
return r.entity;
|
|
41090
41483
|
})));
|
|
41091
41484
|
}
|
|
@@ -41138,7 +41531,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41138
41531
|
fields.forEach(function (fieldData) {
|
|
41139
41532
|
var name = fieldData.name,
|
|
41140
41533
|
errors = fieldData.errors,
|
|
41141
|
-
data =
|
|
41534
|
+
data = objectWithoutProperties_objectWithoutProperties(fieldData, useForm_excluded);
|
|
41142
41535
|
|
|
41143
41536
|
var namePath = getNamePath(name); // Value
|
|
41144
41537
|
|
|
@@ -41160,7 +41553,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41160
41553
|
var namePath = field.getNamePath();
|
|
41161
41554
|
var meta = field.getMeta();
|
|
41162
41555
|
|
|
41163
|
-
var fieldData =
|
|
41556
|
+
var fieldData = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, meta), {}, {
|
|
41164
41557
|
name: namePath,
|
|
41165
41558
|
value: _this.getFieldValue(namePath)
|
|
41166
41559
|
});
|
|
@@ -41259,7 +41652,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41259
41652
|
|
|
41260
41653
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
41261
41654
|
if (_this.subscribable) {
|
|
41262
|
-
var mergedInfo =
|
|
41655
|
+
var mergedInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
41263
41656
|
store: _this.getFieldsValue(true)
|
|
41264
41657
|
});
|
|
41265
41658
|
|
|
@@ -41292,7 +41685,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41292
41685
|
|
|
41293
41686
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
41294
41687
|
type: 'dependenciesUpdate',
|
|
41295
|
-
relatedFields: [namePath].concat(
|
|
41688
|
+
relatedFields: [namePath].concat(toConsumableArray_toConsumableArray(childrenFields))
|
|
41296
41689
|
}); // trigger callback function
|
|
41297
41690
|
|
|
41298
41691
|
|
|
@@ -41303,7 +41696,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41303
41696
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
41304
41697
|
}
|
|
41305
41698
|
|
|
41306
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
41699
|
+
_this.triggerOnFieldsChange([namePath].concat(toConsumableArray_toConsumableArray(childrenFields)));
|
|
41307
41700
|
};
|
|
41308
41701
|
|
|
41309
41702
|
this.setFieldsValue = function (store) {
|
|
@@ -41431,8 +41824,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41431
41824
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
41432
41825
|
|
|
41433
41826
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
41434
|
-
var promise = field.validateRules(
|
|
41435
|
-
validateMessages:
|
|
41827
|
+
var promise = field.validateRules(objectSpread2_objectSpread2({
|
|
41828
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
41436
41829
|
}, options)); // Wrap promise with field
|
|
41437
41830
|
|
|
41438
41831
|
promiseList.push(promise.then(function () {
|
|
@@ -41449,9 +41842,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41449
41842
|
errors = _ref5.errors;
|
|
41450
41843
|
|
|
41451
41844
|
if (warningOnly) {
|
|
41452
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
41845
|
+
mergedWarnings.push.apply(mergedWarnings, toConsumableArray_toConsumableArray(errors));
|
|
41453
41846
|
} else {
|
|
41454
|
-
mergedErrors.push.apply(mergedErrors,
|
|
41847
|
+
mergedErrors.push.apply(mergedErrors, toConsumableArray_toConsumableArray(errors));
|
|
41455
41848
|
}
|
|
41456
41849
|
});
|
|
41457
41850
|
|
|
@@ -41582,8 +41975,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
41582
41975
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
41583
41976
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
41584
41977
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
41585
|
-
value:
|
|
41586
|
-
validateMessages:
|
|
41978
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext), {}, {
|
|
41979
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
41587
41980
|
// =========================================================
|
|
41588
41981
|
// = Global Form Control =
|
|
41589
41982
|
// =========================================================
|
|
@@ -41609,13 +42002,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
41609
42002
|
},
|
|
41610
42003
|
registerForm: function registerForm(name, form) {
|
|
41611
42004
|
if (name) {
|
|
41612
|
-
formsRef.current =
|
|
42005
|
+
formsRef.current = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formsRef.current), {}, defineProperty_defineProperty({}, name, form));
|
|
41613
42006
|
}
|
|
41614
42007
|
|
|
41615
42008
|
formContext.registerForm(name, form);
|
|
41616
42009
|
},
|
|
41617
42010
|
unregisterForm: function unregisterForm(name) {
|
|
41618
|
-
var newForms =
|
|
42011
|
+
var newForms = objectSpread2_objectSpread2({}, formsRef.current);
|
|
41619
42012
|
|
|
41620
42013
|
delete newForms[name];
|
|
41621
42014
|
formsRef.current = newForms;
|
|
@@ -41655,7 +42048,7 @@ var Form = function Form(_ref, ref) {
|
|
|
41655
42048
|
_onFieldsChange = _ref.onFieldsChange,
|
|
41656
42049
|
_onFinish = _ref.onFinish,
|
|
41657
42050
|
onFinishFailed = _ref.onFinishFailed,
|
|
41658
|
-
restProps =
|
|
42051
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, Form_excluded);
|
|
41659
42052
|
|
|
41660
42053
|
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:
|
|
41661
42054
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -41683,7 +42076,7 @@ var Form = function Form(_ref, ref) {
|
|
|
41683
42076
|
};
|
|
41684
42077
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
41685
42078
|
|
|
41686
|
-
setValidateMessages(
|
|
42079
|
+
setValidateMessages(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
41687
42080
|
setCallbacks({
|
|
41688
42081
|
onValuesChange: onValuesChange,
|
|
41689
42082
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -41736,7 +42129,7 @@ var Form = function Form(_ref, ref) {
|
|
|
41736
42129
|
prevFieldsRef.current = fields;
|
|
41737
42130
|
}, [fields, formInstance]);
|
|
41738
42131
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
41739
|
-
return
|
|
42132
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formInstance), {}, {
|
|
41740
42133
|
validateTrigger: validateTrigger
|
|
41741
42134
|
});
|
|
41742
42135
|
}, [formInstance, validateTrigger]);
|
|
@@ -41748,7 +42141,7 @@ var Form = function Form(_ref, ref) {
|
|
|
41748
42141
|
return wrapperNode;
|
|
41749
42142
|
}
|
|
41750
42143
|
|
|
41751
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
42144
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, restProps, {
|
|
41752
42145
|
onSubmit: function onSubmit(event) {
|
|
41753
42146
|
event.preventDefault();
|
|
41754
42147
|
event.stopPropagation();
|
|
@@ -41930,14 +42323,14 @@ LocaleProvider.defaultProps = {
|
|
|
41930
42323
|
|
|
41931
42324
|
|
|
41932
42325
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
41933
|
-
|
|
42326
|
+
inherits_inherits(Notice, _Component);
|
|
41934
42327
|
|
|
41935
|
-
var _super =
|
|
42328
|
+
var _super = createSuper_createSuper(Notice);
|
|
41936
42329
|
|
|
41937
42330
|
function Notice() {
|
|
41938
42331
|
var _this;
|
|
41939
42332
|
|
|
41940
|
-
|
|
42333
|
+
classCallCheck_classCallCheck(this, Notice);
|
|
41941
42334
|
|
|
41942
42335
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
41943
42336
|
args[_key] = arguments[_key];
|
|
@@ -41980,7 +42373,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
41980
42373
|
return _this;
|
|
41981
42374
|
}
|
|
41982
42375
|
|
|
41983
|
-
|
|
42376
|
+
createClass_createClass(Notice, [{
|
|
41984
42377
|
key: "componentDidMount",
|
|
41985
42378
|
value: function componentDidMount() {
|
|
41986
42379
|
this.startCloseTimer();
|
|
@@ -42026,8 +42419,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42026
42419
|
|
|
42027
42420
|
return acc;
|
|
42028
42421
|
}, {});
|
|
42029
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
42030
|
-
className: classnames_default()(componentClass, className,
|
|
42422
|
+
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
42423
|
+
className: classnames_default()(componentClass, className, defineProperty_defineProperty({}, "".concat(componentClass, "-closable"), closable)),
|
|
42031
42424
|
style: style,
|
|
42032
42425
|
onMouseEnter: this.clearCloseTimer,
|
|
42033
42426
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -42058,6 +42451,52 @@ Notice.defaultProps = {
|
|
|
42058
42451
|
duration: 1.5
|
|
42059
42452
|
};
|
|
42060
42453
|
|
|
42454
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
42455
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
42456
|
+
if (Array.isArray(arr)) return arr;
|
|
42457
|
+
}
|
|
42458
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
42459
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
42460
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42461
|
+
|
|
42462
|
+
if (_i == null) return;
|
|
42463
|
+
var _arr = [];
|
|
42464
|
+
var _n = true;
|
|
42465
|
+
var _d = false;
|
|
42466
|
+
|
|
42467
|
+
var _s, _e;
|
|
42468
|
+
|
|
42469
|
+
try {
|
|
42470
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
42471
|
+
_arr.push(_s.value);
|
|
42472
|
+
|
|
42473
|
+
if (i && _arr.length === i) break;
|
|
42474
|
+
}
|
|
42475
|
+
} catch (err) {
|
|
42476
|
+
_d = true;
|
|
42477
|
+
_e = err;
|
|
42478
|
+
} finally {
|
|
42479
|
+
try {
|
|
42480
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
42481
|
+
} finally {
|
|
42482
|
+
if (_d) throw _e;
|
|
42483
|
+
}
|
|
42484
|
+
}
|
|
42485
|
+
|
|
42486
|
+
return _arr;
|
|
42487
|
+
}
|
|
42488
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
42489
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
42490
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
42491
|
+
}
|
|
42492
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
42493
|
+
|
|
42494
|
+
|
|
42495
|
+
|
|
42496
|
+
|
|
42497
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
42498
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
42499
|
+
}
|
|
42061
42500
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
42062
42501
|
|
|
42063
42502
|
|
|
@@ -42068,7 +42507,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42068
42507
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42069
42508
|
|
|
42070
42509
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42071
|
-
_React$useState2 =
|
|
42510
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
42072
42511
|
elements = _React$useState2[0],
|
|
42073
42512
|
setElements = _React$useState2[1];
|
|
42074
42513
|
|
|
@@ -42129,14 +42568,14 @@ function getUuid() {
|
|
|
42129
42568
|
}
|
|
42130
42569
|
|
|
42131
42570
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
42132
|
-
|
|
42571
|
+
inherits_inherits(Notification, _Component);
|
|
42133
42572
|
|
|
42134
|
-
var _super =
|
|
42573
|
+
var _super = createSuper_createSuper(Notification);
|
|
42135
42574
|
|
|
42136
42575
|
function Notification() {
|
|
42137
42576
|
var _this;
|
|
42138
42577
|
|
|
42139
|
-
|
|
42578
|
+
classCallCheck_classCallCheck(this, Notification);
|
|
42140
42579
|
|
|
42141
42580
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42142
42581
|
args[_key] = arguments[_key];
|
|
@@ -42151,7 +42590,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42151
42590
|
_this.add = function (originNotice, holderCallback) {
|
|
42152
42591
|
var key = originNotice.key || getUuid();
|
|
42153
42592
|
|
|
42154
|
-
var notice =
|
|
42593
|
+
var notice = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, originNotice), {}, {
|
|
42155
42594
|
key: key
|
|
42156
42595
|
});
|
|
42157
42596
|
|
|
@@ -42218,7 +42657,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42218
42657
|
return _this;
|
|
42219
42658
|
}
|
|
42220
42659
|
|
|
42221
|
-
|
|
42660
|
+
createClass_createClass(Notification, [{
|
|
42222
42661
|
key: "getTransitionName",
|
|
42223
42662
|
value: function getTransitionName() {
|
|
42224
42663
|
var _this$props = this.props,
|
|
@@ -42251,7 +42690,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42251
42690
|
var key = notice.key,
|
|
42252
42691
|
userPassKey = notice.userPassKey;
|
|
42253
42692
|
|
|
42254
|
-
var noticeProps =
|
|
42693
|
+
var noticeProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
42255
42694
|
prefixCls: prefixCls,
|
|
42256
42695
|
closeIcon: closeIcon
|
|
42257
42696
|
}, notice), notice.props), {}, {
|
|
@@ -42302,7 +42741,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42302
42741
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
42303
42742
|
key: key,
|
|
42304
42743
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
42305
|
-
style:
|
|
42744
|
+
style: objectSpread2_objectSpread2({}, motionStyle),
|
|
42306
42745
|
ref: function ref(div) {
|
|
42307
42746
|
if (typeof key === 'undefined') {
|
|
42308
42747
|
return;
|
|
@@ -42319,9 +42758,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42319
42758
|
});
|
|
42320
42759
|
}
|
|
42321
42760
|
|
|
42322
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
42761
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, esm_extends_extends({}, noticeProps, {
|
|
42323
42762
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
42324
|
-
style:
|
|
42763
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
42325
42764
|
visible: visible
|
|
42326
42765
|
}));
|
|
42327
42766
|
}));
|
|
@@ -42344,7 +42783,7 @@ Notification.defaultProps = {
|
|
|
42344
42783
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
42345
42784
|
var _ref6 = properties || {},
|
|
42346
42785
|
getContainer = _ref6.getContainer,
|
|
42347
|
-
props =
|
|
42786
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref6, ["getContainer"]);
|
|
42348
42787
|
|
|
42349
42788
|
var div = document.createElement('div');
|
|
42350
42789
|
|
|
@@ -42388,7 +42827,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
42388
42827
|
|
|
42389
42828
|
if (false) {}
|
|
42390
42829
|
|
|
42391
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
42830
|
+
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, {
|
|
42392
42831
|
ref: ref
|
|
42393
42832
|
})), div);
|
|
42394
42833
|
};
|
|
@@ -42418,7 +42857,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
42418
42857
|
};
|
|
42419
42858
|
|
|
42420
42859
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
42421
|
-
_useRCNotification2 =
|
|
42860
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
42422
42861
|
hookNotify = _useRCNotification2[0],
|
|
42423
42862
|
holder = _useRCNotification2[1];
|
|
42424
42863
|
|
|
@@ -42747,7 +43186,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
42747
43186
|
};
|
|
42748
43187
|
|
|
42749
43188
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
42750
|
-
_useRCNotification2 =
|
|
43189
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
42751
43190
|
hookNotify = _useRCNotification2[0],
|
|
42752
43191
|
holder = _useRCNotification2[1];
|
|
42753
43192
|
|
|
@@ -43374,7 +43813,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43374
43813
|
|
|
43375
43814
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
43376
43815
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
43377
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
43816
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
43378
43817
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
43379
43818
|
actionFn: onCancel,
|
|
43380
43819
|
close: close,
|
|
@@ -43392,7 +43831,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43392
43831
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
43393
43832
|
prefixCls: prefixCls,
|
|
43394
43833
|
className: classString,
|
|
43395
|
-
wrapClassName: classnames_default()(
|
|
43834
|
+
wrapClassName: classnames_default()(defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
43396
43835
|
onCancel: function onCancel() {
|
|
43397
43836
|
return close({
|
|
43398
43837
|
triggerCancel: true
|
|
@@ -43476,7 +43915,7 @@ function getRootPrefixCls() {
|
|
|
43476
43915
|
function confirm_confirm(config) {
|
|
43477
43916
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
43478
43917
|
|
|
43479
|
-
var currentConfig =
|
|
43918
|
+
var currentConfig = esm_extends_extends(esm_extends_extends({}, config), {
|
|
43480
43919
|
close: close,
|
|
43481
43920
|
visible: true
|
|
43482
43921
|
});
|
|
@@ -43529,7 +43968,7 @@ function confirm_confirm(config) {
|
|
|
43529
43968
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
43530
43969
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
43531
43970
|
var iconPrefixCls = getIconPrefixCls();
|
|
43532
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43971
|
+
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, {
|
|
43533
43972
|
prefixCls: prefixCls,
|
|
43534
43973
|
rootPrefixCls: rootPrefixCls,
|
|
43535
43974
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -43546,7 +43985,7 @@ function confirm_confirm(config) {
|
|
|
43546
43985
|
args[_key2] = arguments[_key2];
|
|
43547
43986
|
}
|
|
43548
43987
|
|
|
43549
|
-
currentConfig =
|
|
43988
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), {
|
|
43550
43989
|
visible: false,
|
|
43551
43990
|
afterClose: function afterClose() {
|
|
43552
43991
|
if (typeof config.afterClose === 'function') {
|
|
@@ -43563,7 +44002,7 @@ function confirm_confirm(config) {
|
|
|
43563
44002
|
if (typeof configUpdate === 'function') {
|
|
43564
44003
|
currentConfig = configUpdate(currentConfig);
|
|
43565
44004
|
} else {
|
|
43566
|
-
currentConfig =
|
|
44005
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), configUpdate);
|
|
43567
44006
|
}
|
|
43568
44007
|
|
|
43569
44008
|
render(currentConfig);
|
|
@@ -43577,7 +44016,7 @@ function confirm_confirm(config) {
|
|
|
43577
44016
|
};
|
|
43578
44017
|
}
|
|
43579
44018
|
function withWarn(props) {
|
|
43580
|
-
return
|
|
44019
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43581
44020
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43582
44021
|
type: "exclamation-circle"
|
|
43583
44022
|
}),
|
|
@@ -43587,7 +44026,7 @@ function withWarn(props) {
|
|
|
43587
44026
|
});
|
|
43588
44027
|
}
|
|
43589
44028
|
function withInfo(props) {
|
|
43590
|
-
return
|
|
44029
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43591
44030
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43592
44031
|
type: "exclamation-circle"
|
|
43593
44032
|
}),
|
|
@@ -43597,7 +44036,7 @@ function withInfo(props) {
|
|
|
43597
44036
|
});
|
|
43598
44037
|
}
|
|
43599
44038
|
function withSuccess(props) {
|
|
43600
|
-
return
|
|
44039
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43601
44040
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43602
44041
|
type: "check-circle"
|
|
43603
44042
|
}),
|
|
@@ -43607,7 +44046,7 @@ function withSuccess(props) {
|
|
|
43607
44046
|
});
|
|
43608
44047
|
}
|
|
43609
44048
|
function withError(props) {
|
|
43610
|
-
return
|
|
44049
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43611
44050
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43612
44051
|
type: "close-circle"
|
|
43613
44052
|
}),
|
|
@@ -43617,7 +44056,7 @@ function withError(props) {
|
|
|
43617
44056
|
});
|
|
43618
44057
|
}
|
|
43619
44058
|
function withConfirm(props) {
|
|
43620
|
-
return
|
|
44059
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43621
44060
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43622
44061
|
type: "question-circle"
|
|
43623
44062
|
}),
|
|
@@ -43644,7 +44083,7 @@ function usePatchElement() {
|
|
|
43644
44083
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
43645
44084
|
// append a new element to elements (and create a new ref)
|
|
43646
44085
|
setElements(function (originElements) {
|
|
43647
|
-
return [].concat(
|
|
44086
|
+
return [].concat(toConsumableArray_toConsumableArray(originElements), [element]);
|
|
43648
44087
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
43649
44088
|
// it works a little like useEffect
|
|
43650
44089
|
|
|
@@ -43709,7 +44148,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
43709
44148
|
destroy: close,
|
|
43710
44149
|
update: function update(newConfig) {
|
|
43711
44150
|
setInnerConfig(function (originConfig) {
|
|
43712
|
-
return
|
|
44151
|
+
return esm_extends_extends(esm_extends_extends({}, originConfig), newConfig);
|
|
43713
44152
|
});
|
|
43714
44153
|
}
|
|
43715
44154
|
};
|
|
@@ -43718,7 +44157,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
43718
44157
|
componentName: "Modal",
|
|
43719
44158
|
defaultLocale: locale_default.Modal
|
|
43720
44159
|
}, function (modalLocale) {
|
|
43721
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
44160
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, esm_extends_extends({
|
|
43722
44161
|
prefixCls: prefixCls,
|
|
43723
44162
|
rootPrefixCls: rootPrefixCls
|
|
43724
44163
|
}, innerConfig, {
|
|
@@ -43765,7 +44204,7 @@ function useModal() {
|
|
|
43765
44204
|
|
|
43766
44205
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
43767
44206
|
if (actionQueue.length) {
|
|
43768
|
-
var cloneQueue =
|
|
44207
|
+
var cloneQueue = toConsumableArray_toConsumableArray(actionQueue);
|
|
43769
44208
|
|
|
43770
44209
|
cloneQueue.forEach(function (action) {
|
|
43771
44210
|
action();
|
|
@@ -43802,7 +44241,7 @@ function useModal() {
|
|
|
43802
44241
|
destroyAction();
|
|
43803
44242
|
} else {
|
|
43804
44243
|
setActionQueue(function (prev) {
|
|
43805
|
-
return [].concat(
|
|
44244
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [destroyAction]);
|
|
43806
44245
|
});
|
|
43807
44246
|
}
|
|
43808
44247
|
},
|
|
@@ -43817,7 +44256,7 @@ function useModal() {
|
|
|
43817
44256
|
updateAction();
|
|
43818
44257
|
} else {
|
|
43819
44258
|
setActionQueue(function (prev) {
|
|
43820
|
-
return [].concat(
|
|
44259
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [updateAction]);
|
|
43821
44260
|
});
|
|
43822
44261
|
}
|
|
43823
44262
|
}
|
|
@@ -44042,8 +44481,7 @@ var shouldfixedLoading = window.navigator.userAgent.indexOf('iPad') > -1 || wind
|
|
|
44042
44481
|
function LiveVideo(_ref) {
|
|
44043
44482
|
var _liveInfo$imInfo9, _liveInfo$imInfo9$par;
|
|
44044
44483
|
|
|
44045
|
-
var
|
|
44046
|
-
handleLogin = _ref.handleLogin,
|
|
44484
|
+
var handleLogin = _ref.handleLogin,
|
|
44047
44485
|
userInfo = _ref.userInfo,
|
|
44048
44486
|
liveInfo = _ref.liveInfo,
|
|
44049
44487
|
visitTime = _ref.visitTime,
|
|
@@ -44177,7 +44615,6 @@ function LiveVideo(_ref) {
|
|
|
44177
44615
|
options: options,
|
|
44178
44616
|
onReady: handleVideoReady
|
|
44179
44617
|
}), supportM3u8 && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(detail_LiveStatus, {
|
|
44180
|
-
isStreamLive: isStreamLive,
|
|
44181
44618
|
handleLogin: handleLogin,
|
|
44182
44619
|
userInfo: userInfo,
|
|
44183
44620
|
visitTime: visitTime,
|
|
@@ -44262,40 +44699,44 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
44262
44699
|
|
|
44263
44700
|
|
|
44264
44701
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
44265
|
-
function
|
|
44266
|
-
|
|
44702
|
+
function helpers_esm_extends_extends() {
|
|
44703
|
+
helpers_esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
44267
44704
|
for (var i = 1; i < arguments.length; i++) {
|
|
44268
44705
|
var source = arguments[i];
|
|
44706
|
+
|
|
44269
44707
|
for (var key in source) {
|
|
44270
44708
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44271
44709
|
target[key] = source[key];
|
|
44272
44710
|
}
|
|
44273
44711
|
}
|
|
44274
44712
|
}
|
|
44713
|
+
|
|
44275
44714
|
return target;
|
|
44276
44715
|
};
|
|
44277
|
-
return
|
|
44716
|
+
return helpers_esm_extends_extends.apply(this, arguments);
|
|
44278
44717
|
}
|
|
44279
44718
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
44280
|
-
function
|
|
44719
|
+
function helpers_esm_typeof_typeof(obj) {
|
|
44281
44720
|
"@babel/helpers - typeof";
|
|
44282
44721
|
|
|
44283
|
-
return
|
|
44722
|
+
return helpers_esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44284
44723
|
return typeof obj;
|
|
44285
44724
|
} : function (obj) {
|
|
44286
44725
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44287
|
-
},
|
|
44726
|
+
}, helpers_esm_typeof_typeof(obj);
|
|
44288
44727
|
}
|
|
44289
44728
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
44290
44729
|
|
|
44291
44730
|
function _toPrimitive(input, hint) {
|
|
44292
|
-
if (
|
|
44731
|
+
if (helpers_esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
44293
44732
|
var prim = input[Symbol.toPrimitive];
|
|
44733
|
+
|
|
44294
44734
|
if (prim !== undefined) {
|
|
44295
44735
|
var res = prim.call(input, hint || "default");
|
|
44296
|
-
if (
|
|
44736
|
+
if (helpers_esm_typeof_typeof(res) !== "object") return res;
|
|
44297
44737
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44298
44738
|
}
|
|
44739
|
+
|
|
44299
44740
|
return (hint === "string" ? String : Number)(input);
|
|
44300
44741
|
}
|
|
44301
44742
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -44303,12 +44744,13 @@ function _toPrimitive(input, hint) {
|
|
|
44303
44744
|
|
|
44304
44745
|
function _toPropertyKey(arg) {
|
|
44305
44746
|
var key = _toPrimitive(arg, "string");
|
|
44306
|
-
return
|
|
44747
|
+
return helpers_esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
44307
44748
|
}
|
|
44308
44749
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
44309
44750
|
|
|
44310
|
-
function
|
|
44751
|
+
function esm_defineProperty_defineProperty(obj, key, value) {
|
|
44311
44752
|
key = _toPropertyKey(key);
|
|
44753
|
+
|
|
44312
44754
|
if (key in obj) {
|
|
44313
44755
|
Object.defineProperty(obj, key, {
|
|
44314
44756
|
value: value,
|
|
@@ -44319,51 +44761,61 @@ function defineProperty_defineProperty(obj, key, value) {
|
|
|
44319
44761
|
} else {
|
|
44320
44762
|
obj[key] = value;
|
|
44321
44763
|
}
|
|
44764
|
+
|
|
44322
44765
|
return obj;
|
|
44323
44766
|
}
|
|
44324
44767
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
44325
44768
|
|
|
44326
|
-
|
|
44769
|
+
|
|
44770
|
+
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44327
44771
|
var keys = Object.keys(object);
|
|
44772
|
+
|
|
44328
44773
|
if (Object.getOwnPropertySymbols) {
|
|
44329
44774
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
44330
44775
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
44331
44776
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
44332
44777
|
})), keys.push.apply(keys, symbols);
|
|
44333
44778
|
}
|
|
44779
|
+
|
|
44334
44780
|
return keys;
|
|
44335
44781
|
}
|
|
44336
|
-
|
|
44782
|
+
|
|
44783
|
+
function esm_objectSpread2_objectSpread2(target) {
|
|
44337
44784
|
for (var i = 1; i < arguments.length; i++) {
|
|
44338
44785
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
44339
|
-
i % 2 ?
|
|
44340
|
-
|
|
44341
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
44786
|
+
i % 2 ? esm_objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
44787
|
+
esm_defineProperty_defineProperty(target, key, source[key]);
|
|
44788
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : esm_objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
44342
44789
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44343
44790
|
});
|
|
44344
44791
|
}
|
|
44792
|
+
|
|
44345
44793
|
return target;
|
|
44346
44794
|
}
|
|
44347
44795
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
44348
|
-
function
|
|
44796
|
+
function helpers_esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
44349
44797
|
if (Array.isArray(arr)) return arr;
|
|
44350
44798
|
}
|
|
44351
44799
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
44352
|
-
function
|
|
44800
|
+
function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
44353
44801
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
44802
|
+
|
|
44354
44803
|
if (null != _i) {
|
|
44355
44804
|
var _s,
|
|
44356
|
-
|
|
44357
|
-
|
|
44358
|
-
|
|
44359
|
-
|
|
44360
|
-
|
|
44361
|
-
|
|
44805
|
+
_e,
|
|
44806
|
+
_x,
|
|
44807
|
+
_r,
|
|
44808
|
+
_arr = [],
|
|
44809
|
+
_n = !0,
|
|
44810
|
+
_d = !1;
|
|
44811
|
+
|
|
44362
44812
|
try {
|
|
44363
44813
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
44364
44814
|
if (Object(_i) !== _i) return;
|
|
44365
44815
|
_n = !1;
|
|
44366
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
44816
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
|
44817
|
+
;
|
|
44818
|
+
}
|
|
44367
44819
|
} catch (err) {
|
|
44368
44820
|
_d = !0, _e = err;
|
|
44369
44821
|
} finally {
|
|
@@ -44373,27 +44825,32 @@ function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
44373
44825
|
if (_d) throw _e;
|
|
44374
44826
|
}
|
|
44375
44827
|
}
|
|
44828
|
+
|
|
44376
44829
|
return _arr;
|
|
44377
44830
|
}
|
|
44378
44831
|
}
|
|
44379
44832
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
44380
|
-
function
|
|
44833
|
+
function esm_arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
44381
44834
|
if (len == null || len > arr.length) len = arr.length;
|
|
44382
|
-
|
|
44835
|
+
|
|
44836
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
44837
|
+
arr2[i] = arr[i];
|
|
44838
|
+
}
|
|
44839
|
+
|
|
44383
44840
|
return arr2;
|
|
44384
44841
|
}
|
|
44385
44842
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
44386
44843
|
|
|
44387
|
-
function
|
|
44844
|
+
function esm_unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
44388
44845
|
if (!o) return;
|
|
44389
|
-
if (typeof o === "string") return
|
|
44846
|
+
if (typeof o === "string") return esm_arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44390
44847
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
44391
44848
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
44392
44849
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44393
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
44850
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return esm_arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44394
44851
|
}
|
|
44395
44852
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
44396
|
-
function
|
|
44853
|
+
function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
44397
44854
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44398
44855
|
}
|
|
44399
44856
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -44401,30 +44858,34 @@ function esm_nonIterableRest_nonIterableRest() {
|
|
|
44401
44858
|
|
|
44402
44859
|
|
|
44403
44860
|
|
|
44404
|
-
function
|
|
44405
|
-
return
|
|
44861
|
+
function helpers_esm_slicedToArray_slicedToArray(arr, i) {
|
|
44862
|
+
return helpers_esm_arrayWithHoles_arrayWithHoles(arr) || helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || esm_unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || helpers_esm_nonIterableRest_nonIterableRest();
|
|
44406
44863
|
}
|
|
44407
44864
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
44408
|
-
function
|
|
44865
|
+
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
44409
44866
|
if (source == null) return {};
|
|
44410
44867
|
var target = {};
|
|
44411
44868
|
var sourceKeys = Object.keys(source);
|
|
44412
44869
|
var key, i;
|
|
44870
|
+
|
|
44413
44871
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
44414
44872
|
key = sourceKeys[i];
|
|
44415
44873
|
if (excluded.indexOf(key) >= 0) continue;
|
|
44416
44874
|
target[key] = source[key];
|
|
44417
44875
|
}
|
|
44876
|
+
|
|
44418
44877
|
return target;
|
|
44419
44878
|
}
|
|
44420
44879
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
44421
44880
|
|
|
44422
|
-
function
|
|
44881
|
+
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
44423
44882
|
if (source == null) return {};
|
|
44424
|
-
var target =
|
|
44883
|
+
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
44425
44884
|
var key, i;
|
|
44885
|
+
|
|
44426
44886
|
if (Object.getOwnPropertySymbols) {
|
|
44427
44887
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
44888
|
+
|
|
44428
44889
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
44429
44890
|
key = sourceSymbolKeys[i];
|
|
44430
44891
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -44432,6 +44893,7 @@ function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
44432
44893
|
target[key] = source[key];
|
|
44433
44894
|
}
|
|
44434
44895
|
}
|
|
44896
|
+
|
|
44435
44897
|
return target;
|
|
44436
44898
|
}
|
|
44437
44899
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -45379,14 +45841,14 @@ var index = (function () {
|
|
|
45379
45841
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
45380
45842
|
|
|
45381
45843
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
45382
|
-
|
|
45844
|
+
inherits_inherits(ReactResizeObserver, _React$Component);
|
|
45383
45845
|
|
|
45384
|
-
var _super =
|
|
45846
|
+
var _super = createSuper_createSuper(ReactResizeObserver);
|
|
45385
45847
|
|
|
45386
45848
|
function ReactResizeObserver() {
|
|
45387
45849
|
var _this;
|
|
45388
45850
|
|
|
45389
|
-
|
|
45851
|
+
classCallCheck_classCallCheck(this, ReactResizeObserver);
|
|
45390
45852
|
|
|
45391
45853
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45392
45854
|
args[_key] = arguments[_key];
|
|
@@ -45437,7 +45899,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45437
45899
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
45438
45900
|
|
|
45439
45901
|
Promise.resolve().then(function () {
|
|
45440
|
-
onResize(
|
|
45902
|
+
onResize(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, size), {}, {
|
|
45441
45903
|
offsetWidth: mergedOffsetWidth,
|
|
45442
45904
|
offsetHeight: mergedOffsetHeight
|
|
45443
45905
|
}), target);
|
|
@@ -45453,7 +45915,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45453
45915
|
return _this;
|
|
45454
45916
|
}
|
|
45455
45917
|
|
|
45456
|
-
|
|
45918
|
+
createClass_createClass(ReactResizeObserver, [{
|
|
45457
45919
|
key: "componentDidMount",
|
|
45458
45920
|
value: function componentDidMount() {
|
|
45459
45921
|
this.onComponentUpdated();
|
|
@@ -45567,7 +46029,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
45567
46029
|
position: 'relative',
|
|
45568
46030
|
overflow: 'hidden'
|
|
45569
46031
|
};
|
|
45570
|
-
innerStyle =
|
|
46032
|
+
innerStyle = esm_objectSpread2_objectSpread2(esm_objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
45571
46033
|
transform: "translateY(".concat(offset, "px)"),
|
|
45572
46034
|
position: 'absolute',
|
|
45573
46035
|
left: 0,
|
|
@@ -45584,23 +46046,24 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
45584
46046
|
onInnerResize();
|
|
45585
46047
|
}
|
|
45586
46048
|
}
|
|
45587
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
46049
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", helpers_esm_extends_extends({
|
|
45588
46050
|
style: innerStyle,
|
|
45589
|
-
className: classnames_default()(
|
|
46051
|
+
className: classnames_default()(esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
45590
46052
|
ref: ref
|
|
45591
46053
|
}, innerProps), children)));
|
|
45592
46054
|
});
|
|
45593
46055
|
Filler.displayName = 'Filler';
|
|
45594
46056
|
/* harmony default export */ var es_Filler = (Filler);
|
|
45595
46057
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
45596
|
-
function
|
|
46058
|
+
function esm_classCallCheck_classCallCheck(instance, Constructor) {
|
|
45597
46059
|
if (!(instance instanceof Constructor)) {
|
|
45598
46060
|
throw new TypeError("Cannot call a class as a function");
|
|
45599
46061
|
}
|
|
45600
46062
|
}
|
|
45601
46063
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
45602
46064
|
|
|
45603
|
-
|
|
46065
|
+
|
|
46066
|
+
function esm_createClass_defineProperties(target, props) {
|
|
45604
46067
|
for (var i = 0; i < props.length; i++) {
|
|
45605
46068
|
var descriptor = props[i];
|
|
45606
46069
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -45609,28 +46072,30 @@ function createClass_defineProperties(target, props) {
|
|
|
45609
46072
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
45610
46073
|
}
|
|
45611
46074
|
}
|
|
45612
|
-
|
|
45613
|
-
|
|
45614
|
-
if (
|
|
46075
|
+
|
|
46076
|
+
function esm_createClass_createClass(Constructor, protoProps, staticProps) {
|
|
46077
|
+
if (protoProps) esm_createClass_defineProperties(Constructor.prototype, protoProps);
|
|
46078
|
+
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
45615
46079
|
Object.defineProperty(Constructor, "prototype", {
|
|
45616
46080
|
writable: false
|
|
45617
46081
|
});
|
|
45618
46082
|
return Constructor;
|
|
45619
46083
|
}
|
|
45620
46084
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
45621
|
-
function
|
|
45622
|
-
|
|
46085
|
+
function esm_setPrototypeOf_setPrototypeOf(o, p) {
|
|
46086
|
+
esm_setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
45623
46087
|
o.__proto__ = p;
|
|
45624
46088
|
return o;
|
|
45625
46089
|
};
|
|
45626
|
-
return
|
|
46090
|
+
return esm_setPrototypeOf_setPrototypeOf(o, p);
|
|
45627
46091
|
}
|
|
45628
46092
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
45629
46093
|
|
|
45630
|
-
function
|
|
46094
|
+
function esm_inherits_inherits(subClass, superClass) {
|
|
45631
46095
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
45632
46096
|
throw new TypeError("Super expression must either be null or a function");
|
|
45633
46097
|
}
|
|
46098
|
+
|
|
45634
46099
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
45635
46100
|
constructor: {
|
|
45636
46101
|
value: subClass,
|
|
@@ -45641,20 +46106,21 @@ function inherits_inherits(subClass, superClass) {
|
|
|
45641
46106
|
Object.defineProperty(subClass, "prototype", {
|
|
45642
46107
|
writable: false
|
|
45643
46108
|
});
|
|
45644
|
-
if (superClass)
|
|
46109
|
+
if (superClass) esm_setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
45645
46110
|
}
|
|
45646
46111
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
45647
|
-
function
|
|
45648
|
-
|
|
46112
|
+
function esm_getPrototypeOf_getPrototypeOf(o) {
|
|
46113
|
+
esm_getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
45649
46114
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
45650
46115
|
};
|
|
45651
|
-
return
|
|
46116
|
+
return esm_getPrototypeOf_getPrototypeOf(o);
|
|
45652
46117
|
}
|
|
45653
46118
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
45654
|
-
function
|
|
46119
|
+
function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
45655
46120
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
45656
46121
|
if (Reflect.construct.sham) return false;
|
|
45657
46122
|
if (typeof Proxy === "function") return true;
|
|
46123
|
+
|
|
45658
46124
|
try {
|
|
45659
46125
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
45660
46126
|
return true;
|
|
@@ -45663,39 +46129,43 @@ function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
45663
46129
|
}
|
|
45664
46130
|
}
|
|
45665
46131
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
45666
|
-
function
|
|
46132
|
+
function esm_assertThisInitialized_assertThisInitialized(self) {
|
|
45667
46133
|
if (self === void 0) {
|
|
45668
46134
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
45669
46135
|
}
|
|
46136
|
+
|
|
45670
46137
|
return self;
|
|
45671
46138
|
}
|
|
45672
46139
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
45673
46140
|
|
|
45674
46141
|
|
|
45675
|
-
function
|
|
45676
|
-
if (call && (
|
|
46142
|
+
function esm_possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
46143
|
+
if (call && (helpers_esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
45677
46144
|
return call;
|
|
45678
46145
|
} else if (call !== void 0) {
|
|
45679
46146
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
45680
46147
|
}
|
|
45681
|
-
|
|
46148
|
+
|
|
46149
|
+
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
45682
46150
|
}
|
|
45683
46151
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
45684
46152
|
|
|
45685
46153
|
|
|
45686
46154
|
|
|
45687
|
-
function
|
|
45688
|
-
var hasNativeReflectConstruct =
|
|
46155
|
+
function esm_createSuper_createSuper(Derived) {
|
|
46156
|
+
var hasNativeReflectConstruct = esm_isNativeReflectConstruct_isNativeReflectConstruct();
|
|
45689
46157
|
return function _createSuperInternal() {
|
|
45690
|
-
var Super =
|
|
45691
|
-
|
|
46158
|
+
var Super = esm_getPrototypeOf_getPrototypeOf(Derived),
|
|
46159
|
+
result;
|
|
46160
|
+
|
|
45692
46161
|
if (hasNativeReflectConstruct) {
|
|
45693
|
-
var NewTarget =
|
|
46162
|
+
var NewTarget = esm_getPrototypeOf_getPrototypeOf(this).constructor;
|
|
45694
46163
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
45695
46164
|
} else {
|
|
45696
46165
|
result = Super.apply(this, arguments);
|
|
45697
46166
|
}
|
|
45698
|
-
|
|
46167
|
+
|
|
46168
|
+
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
45699
46169
|
};
|
|
45700
46170
|
}
|
|
45701
46171
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -45770,11 +46240,11 @@ function getPageY(e) {
|
|
|
45770
46240
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
45771
46241
|
}
|
|
45772
46242
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
45773
|
-
|
|
45774
|
-
var _super =
|
|
46243
|
+
esm_inherits_inherits(ScrollBar, _React$Component);
|
|
46244
|
+
var _super = esm_createSuper_createSuper(ScrollBar);
|
|
45775
46245
|
function ScrollBar() {
|
|
45776
46246
|
var _this;
|
|
45777
|
-
|
|
46247
|
+
esm_classCallCheck_classCallCheck(this, ScrollBar);
|
|
45778
46248
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45779
46249
|
args[_key] = arguments[_key];
|
|
45780
46250
|
}
|
|
@@ -45902,7 +46372,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
45902
46372
|
};
|
|
45903
46373
|
return _this;
|
|
45904
46374
|
}
|
|
45905
|
-
|
|
46375
|
+
esm_createClass_createClass(ScrollBar, [{
|
|
45906
46376
|
key: "componentDidMount",
|
|
45907
46377
|
value: function componentDidMount() {
|
|
45908
46378
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -45936,7 +46406,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
45936
46406
|
var mergedVisible = canScroll && visible;
|
|
45937
46407
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
45938
46408
|
ref: this.scrollbarRef,
|
|
45939
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46409
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
45940
46410
|
style: {
|
|
45941
46411
|
width: 8,
|
|
45942
46412
|
top: 0,
|
|
@@ -45949,7 +46419,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
45949
46419
|
onMouseMove: this.delayHidden
|
|
45950
46420
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
45951
46421
|
ref: this.thumbRef,
|
|
45952
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46422
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
45953
46423
|
style: {
|
|
45954
46424
|
width: '100%',
|
|
45955
46425
|
height: spinHeight,
|
|
@@ -46028,11 +46498,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46028
46498
|
// Firefox has low performance of map.
|
|
46029
46499
|
var CacheMap = /*#__PURE__*/function () {
|
|
46030
46500
|
function CacheMap() {
|
|
46031
|
-
|
|
46501
|
+
esm_classCallCheck_classCallCheck(this, CacheMap);
|
|
46032
46502
|
this.maps = void 0;
|
|
46033
46503
|
this.maps = Object.create(null);
|
|
46034
46504
|
}
|
|
46035
|
-
|
|
46505
|
+
esm_createClass_createClass(CacheMap, [{
|
|
46036
46506
|
key: "set",
|
|
46037
46507
|
value: function set(key, value) {
|
|
46038
46508
|
this.maps[key] = value;
|
|
@@ -46055,7 +46525,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46055
46525
|
|
|
46056
46526
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46057
46527
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46058
|
-
_React$useState2 =
|
|
46528
|
+
_React$useState2 = helpers_esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46059
46529
|
updatedMark = _React$useState2[0],
|
|
46060
46530
|
setUpdatedMark = _React$useState2[1];
|
|
46061
46531
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46122,7 +46592,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46122
46592
|
es_raf.cancel(scrollRef.current);
|
|
46123
46593
|
if (typeof arg === 'number') {
|
|
46124
46594
|
syncScrollTop(arg);
|
|
46125
|
-
} else if (arg &&
|
|
46595
|
+
} else if (arg && helpers_esm_typeof_typeof(arg) === 'object') {
|
|
46126
46596
|
var index;
|
|
46127
46597
|
var align = arg.align;
|
|
46128
46598
|
if ('index' in arg) {
|
|
@@ -46278,11 +46748,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
46278
46748
|
|
|
46279
46749
|
function useDiffItem(data, getKey, onDiff) {
|
|
46280
46750
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
46281
|
-
_React$useState2 =
|
|
46751
|
+
_React$useState2 = helpers_esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46282
46752
|
prevData = _React$useState2[0],
|
|
46283
46753
|
setPrevData = _React$useState2[1];
|
|
46284
46754
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
46285
|
-
_React$useState4 =
|
|
46755
|
+
_React$useState4 = helpers_esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
46286
46756
|
diffItem = _React$useState4[0],
|
|
46287
46757
|
setDiffItem = _React$useState4[1];
|
|
46288
46758
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -46297,7 +46767,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
46297
46767
|
}
|
|
46298
46768
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
46299
46769
|
|
|
46300
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
46770
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : helpers_esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
46301
46771
|
/* harmony default export */ var isFirefox = (isFF);
|
|
46302
46772
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
46303
46773
|
|
|
@@ -46516,16 +46986,16 @@ function RawList(props, ref) {
|
|
|
46516
46986
|
onScroll = props.onScroll,
|
|
46517
46987
|
onVisibleChange = props.onVisibleChange,
|
|
46518
46988
|
innerProps = props.innerProps,
|
|
46519
|
-
restProps =
|
|
46989
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
46520
46990
|
// ================================= MISC =================================
|
|
46521
46991
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
46522
46992
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
46523
46993
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
46524
|
-
_useState2 =
|
|
46994
|
+
_useState2 = helpers_esm_slicedToArray_slicedToArray(_useState, 2),
|
|
46525
46995
|
scrollTop = _useState2[0],
|
|
46526
46996
|
setScrollTop = _useState2[1];
|
|
46527
46997
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
46528
|
-
_useState4 =
|
|
46998
|
+
_useState4 = helpers_esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
46529
46999
|
scrollMoving = _useState4[0],
|
|
46530
47000
|
setScrollMoving = _useState4[1];
|
|
46531
47001
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -46565,12 +47035,12 @@ function RawList(props, ref) {
|
|
|
46565
47035
|
});
|
|
46566
47036
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
46567
47037
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
46568
|
-
_useDiffItem2 =
|
|
47038
|
+
_useDiffItem2 = helpers_esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
46569
47039
|
diffItem = _useDiffItem2[0];
|
|
46570
47040
|
diffItemRef.current = diffItem;
|
|
46571
47041
|
// ================================ Height ================================
|
|
46572
47042
|
var _useHeights = useHeights(getKey, null, null),
|
|
46573
|
-
_useHeights2 =
|
|
47043
|
+
_useHeights2 = helpers_esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
46574
47044
|
setInstanceRef = _useHeights2[0],
|
|
46575
47045
|
collectHeight = _useHeights2[1],
|
|
46576
47046
|
heights = _useHeights2[2],
|
|
@@ -46676,7 +47146,7 @@ function RawList(props, ref) {
|
|
|
46676
47146
|
return newTop;
|
|
46677
47147
|
});
|
|
46678
47148
|
}),
|
|
46679
|
-
_useFrameWheel2 =
|
|
47149
|
+
_useFrameWheel2 = helpers_esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
46680
47150
|
onRawWheel = _useFrameWheel2[0],
|
|
46681
47151
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
46682
47152
|
// Mobile touch move
|
|
@@ -46730,7 +47200,7 @@ function RawList(props, ref) {
|
|
|
46730
47200
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
46731
47201
|
var componentStyle = null;
|
|
46732
47202
|
if (height) {
|
|
46733
|
-
componentStyle =
|
|
47203
|
+
componentStyle = esm_objectSpread2_objectSpread2(esm_defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
46734
47204
|
if (useVirtual) {
|
|
46735
47205
|
componentStyle.overflowY = 'hidden';
|
|
46736
47206
|
if (scrollMoving) {
|
|
@@ -46738,8 +47208,8 @@ function RawList(props, ref) {
|
|
|
46738
47208
|
}
|
|
46739
47209
|
}
|
|
46740
47210
|
}
|
|
46741
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
46742
|
-
style:
|
|
47211
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", helpers_esm_extends_extends({
|
|
47212
|
+
style: esm_objectSpread2_objectSpread2(esm_objectSpread2_objectSpread2({}, style), {}, {
|
|
46743
47213
|
position: 'relative'
|
|
46744
47214
|
}),
|
|
46745
47215
|
className: mergedClassName
|
|
@@ -46885,7 +47355,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
46885
47355
|
return values;
|
|
46886
47356
|
}
|
|
46887
47357
|
function removeLastEnabledValue(measureValues, values) {
|
|
46888
|
-
var newValues =
|
|
47358
|
+
var newValues = toConsumableArray_toConsumableArray(values);
|
|
46889
47359
|
|
|
46890
47360
|
var removeIndex;
|
|
46891
47361
|
|
|
@@ -47019,7 +47489,7 @@ function flattenOptions(options) {
|
|
|
47019
47489
|
*/
|
|
47020
47490
|
|
|
47021
47491
|
function injectPropsWithOption(option) {
|
|
47022
|
-
var newOption =
|
|
47492
|
+
var newOption = objectSpread2_objectSpread2({}, option);
|
|
47023
47493
|
|
|
47024
47494
|
if (!('props' in newOption)) {
|
|
47025
47495
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47053,7 +47523,7 @@ function findValueOption(values, options) {
|
|
|
47053
47523
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47054
47524
|
|
|
47055
47525
|
if (!option) {
|
|
47056
|
-
option =
|
|
47526
|
+
option = objectSpread2_objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47057
47527
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47058
47528
|
}));
|
|
47059
47529
|
}
|
|
@@ -47072,7 +47542,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47072
47542
|
};
|
|
47073
47543
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47074
47544
|
|
|
47075
|
-
if (prevValItem &&
|
|
47545
|
+
if (prevValItem && esm_typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47076
47546
|
result.label = prevValItem.label;
|
|
47077
47547
|
|
|
47078
47548
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -47120,7 +47590,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47120
47590
|
var filterFunc;
|
|
47121
47591
|
|
|
47122
47592
|
if (filterOption === false) {
|
|
47123
|
-
return
|
|
47593
|
+
return toConsumableArray_toConsumableArray(options);
|
|
47124
47594
|
}
|
|
47125
47595
|
|
|
47126
47596
|
if (typeof filterOption === 'function') {
|
|
@@ -47144,7 +47614,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47144
47614
|
});
|
|
47145
47615
|
|
|
47146
47616
|
if (subOptions.length) {
|
|
47147
|
-
filteredOptions.push(
|
|
47617
|
+
filteredOptions.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
47148
47618
|
options: subOptions
|
|
47149
47619
|
}));
|
|
47150
47620
|
}
|
|
@@ -47178,7 +47648,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
47178
47648
|
var list = str.split(token);
|
|
47179
47649
|
match = match || list.length > 1;
|
|
47180
47650
|
return list.reduce(function (prevList, unitStr) {
|
|
47181
|
-
return [].concat(
|
|
47651
|
+
return [].concat(toConsumableArray_toConsumableArray(prevList), toConsumableArray_toConsumableArray(separate(unitStr, restTokens)));
|
|
47182
47652
|
}, []).filter(function (unit) {
|
|
47183
47653
|
return unit;
|
|
47184
47654
|
});
|
|
@@ -47198,7 +47668,7 @@ function isValueDisabled(value, options) {
|
|
|
47198
47668
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
47199
47669
|
var values = commonUtil_toArray(value).slice().sort();
|
|
47200
47670
|
|
|
47201
|
-
var cloneOptions =
|
|
47671
|
+
var cloneOptions = toConsumableArray_toConsumableArray(options); // Convert options value to set
|
|
47202
47672
|
|
|
47203
47673
|
|
|
47204
47674
|
var optionValues = new Set();
|
|
@@ -47218,7 +47688,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
47218
47688
|
if (!optionValues.has(val)) {
|
|
47219
47689
|
var _ref9;
|
|
47220
47690
|
|
|
47221
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
47691
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, defineProperty_defineProperty(_ref9, optionLabelProp, item.label), defineProperty_defineProperty(_ref9, "value", val), _ref9) : {
|
|
47222
47692
|
value: val
|
|
47223
47693
|
});
|
|
47224
47694
|
}
|
|
@@ -47484,7 +47954,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47484
47954
|
children = itemData.children;
|
|
47485
47955
|
var attrs = pickAttrs(itemData, true);
|
|
47486
47956
|
var mergedLabel = childrenAsData ? children : label;
|
|
47487
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47957
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
47488
47958
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
47489
47959
|
}, attrs, {
|
|
47490
47960
|
key: index,
|
|
@@ -47534,13 +48004,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47534
48004
|
children = data.children,
|
|
47535
48005
|
style = data.style,
|
|
47536
48006
|
className = data.className,
|
|
47537
|
-
otherProps =
|
|
48007
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(data, OptionList_excluded);
|
|
47538
48008
|
|
|
47539
48009
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
47540
48010
|
|
|
47541
48011
|
var selected = values.has(value);
|
|
47542
48012
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
47543
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
48013
|
+
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));
|
|
47544
48014
|
var mergedLabel = childrenAsData ? children : label;
|
|
47545
48015
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
47546
48016
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -47551,7 +48021,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47551
48021
|
optionTitle = title;
|
|
47552
48022
|
}
|
|
47553
48023
|
|
|
47554
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
48024
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, passedProps, {
|
|
47555
48025
|
"aria-selected": selected,
|
|
47556
48026
|
className: optionClassName,
|
|
47557
48027
|
title: optionTitle,
|
|
@@ -47612,9 +48082,9 @@ function convertNodeToOption(node) {
|
|
|
47612
48082
|
_node$props = node.props,
|
|
47613
48083
|
children = _node$props.children,
|
|
47614
48084
|
value = _node$props.value,
|
|
47615
|
-
restProps =
|
|
48085
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
47616
48086
|
|
|
47617
|
-
return
|
|
48087
|
+
return objectSpread2_objectSpread2({
|
|
47618
48088
|
key: key,
|
|
47619
48089
|
value: value !== undefined ? value : key,
|
|
47620
48090
|
children: children
|
|
@@ -47632,13 +48102,13 @@ function convertChildrenToData(nodes) {
|
|
|
47632
48102
|
key = node.key,
|
|
47633
48103
|
_node$props2 = node.props,
|
|
47634
48104
|
children = _node$props2.children,
|
|
47635
|
-
restProps =
|
|
48105
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props2, _excluded2);
|
|
47636
48106
|
|
|
47637
48107
|
if (optionOnly || !isSelectOptGroup) {
|
|
47638
48108
|
return convertNodeToOption(node);
|
|
47639
48109
|
}
|
|
47640
48110
|
|
|
47641
|
-
return
|
|
48111
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
47642
48112
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
47643
48113
|
label: key
|
|
47644
48114
|
}, restProps), {}, {
|
|
@@ -47740,7 +48210,7 @@ function InternalItem(props, ref) {
|
|
|
47740
48210
|
order = props.order,
|
|
47741
48211
|
_props$component = props.component,
|
|
47742
48212
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
47743
|
-
restProps =
|
|
48213
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
47744
48214
|
|
|
47745
48215
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
47746
48216
|
|
|
@@ -47774,9 +48244,9 @@ function InternalItem(props, ref) {
|
|
|
47774
48244
|
overflowProps['aria-hidden'] = true;
|
|
47775
48245
|
}
|
|
47776
48246
|
|
|
47777
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48247
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({
|
|
47778
48248
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
47779
|
-
style:
|
|
48249
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, overflowStyle), style)
|
|
47780
48250
|
}, overflowProps, restProps, {
|
|
47781
48251
|
ref: ref
|
|
47782
48252
|
}), childNode);
|
|
@@ -47861,23 +48331,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
47861
48331
|
if (!context) {
|
|
47862
48332
|
var _props$component = props.component,
|
|
47863
48333
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
47864
|
-
_restProps =
|
|
48334
|
+
_restProps = objectWithoutProperties_objectWithoutProperties(props, ["component"]);
|
|
47865
48335
|
|
|
47866
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48336
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, _restProps, {
|
|
47867
48337
|
ref: ref
|
|
47868
48338
|
}));
|
|
47869
48339
|
}
|
|
47870
48340
|
|
|
47871
48341
|
var contextClassName = context.className,
|
|
47872
|
-
restContext =
|
|
48342
|
+
restContext = objectWithoutProperties_objectWithoutProperties(context, ["className"]);
|
|
47873
48343
|
|
|
47874
48344
|
var className = props.className,
|
|
47875
|
-
restProps =
|
|
48345
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
47876
48346
|
|
|
47877
48347
|
|
|
47878
48348
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
47879
48349
|
value: null
|
|
47880
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48350
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({
|
|
47881
48351
|
ref: ref,
|
|
47882
48352
|
className: classnames_default()(contextClassName, className)
|
|
47883
48353
|
}, restContext, restProps)));
|
|
@@ -47927,7 +48397,7 @@ function Overflow(props, ref) {
|
|
|
47927
48397
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
47928
48398
|
itemComponent = props.itemComponent,
|
|
47929
48399
|
onVisibleChange = props.onVisibleChange,
|
|
47930
|
-
restProps =
|
|
48400
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
47931
48401
|
|
|
47932
48402
|
var createUseState = useBatchFrameState();
|
|
47933
48403
|
var fullySSR = ssr === 'full';
|
|
@@ -48137,7 +48607,7 @@ function Overflow(props, ref) {
|
|
|
48137
48607
|
var key = getKey(item, index);
|
|
48138
48608
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48139
48609
|
key: key,
|
|
48140
|
-
value:
|
|
48610
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, itemSharedProps), {}, {
|
|
48141
48611
|
order: index,
|
|
48142
48612
|
item: item,
|
|
48143
48613
|
itemKey: key,
|
|
@@ -48147,7 +48617,7 @@ function Overflow(props, ref) {
|
|
|
48147
48617
|
}, renderRawItem(item, index));
|
|
48148
48618
|
} : function (item, index) {
|
|
48149
48619
|
var key = getKey(item, index);
|
|
48150
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48620
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, {
|
|
48151
48621
|
order: index,
|
|
48152
48622
|
key: key,
|
|
48153
48623
|
item: item,
|
|
@@ -48168,18 +48638,18 @@ function Overflow(props, ref) {
|
|
|
48168
48638
|
|
|
48169
48639
|
if (!renderRawRest) {
|
|
48170
48640
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48171
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48641
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48172
48642
|
} else if (renderRawRest) {
|
|
48173
48643
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48174
|
-
value:
|
|
48644
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48175
48645
|
}, renderRawRest(omittedItems));
|
|
48176
48646
|
}
|
|
48177
48647
|
|
|
48178
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48648
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({
|
|
48179
48649
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48180
48650
|
style: style,
|
|
48181
48651
|
ref: ref
|
|
48182
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48652
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, {
|
|
48183
48653
|
order: mergedDisplayCount,
|
|
48184
48654
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
48185
48655
|
registerSize: registerSuffixSize,
|
|
@@ -48244,7 +48714,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48244
48714
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
48245
48715
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
48246
48716
|
style = _inputNode$props.style;
|
|
48247
|
-
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode,
|
|
48717
|
+
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
48248
48718
|
id: id,
|
|
48249
48719
|
ref: composeRef(ref, originRef),
|
|
48250
48720
|
disabled: disabled,
|
|
@@ -48253,7 +48723,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48253
48723
|
type: 'search',
|
|
48254
48724
|
autoFocus: autoFocus,
|
|
48255
48725
|
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),
|
|
48256
|
-
style:
|
|
48726
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
48257
48727
|
opacity: editable ? null : 0
|
|
48258
48728
|
}),
|
|
48259
48729
|
role: 'combobox',
|
|
@@ -48401,7 +48871,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
48401
48871
|
|
|
48402
48872
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
48403
48873
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48404
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
48874
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), defineProperty_defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
48405
48875
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
48406
48876
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48407
48877
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -48816,7 +49286,7 @@ var Selector = function Selector(props, ref) {
|
|
|
48816
49286
|
onInputCompositionStart: onInputCompositionStart,
|
|
48817
49287
|
onInputCompositionEnd: onInputCompositionEnd
|
|
48818
49288
|
};
|
|
48819
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
49289
|
+
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));
|
|
48820
49290
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
48821
49291
|
ref: domRef,
|
|
48822
49292
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -48861,7 +49331,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
48861
49331
|
|
|
48862
49332
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
48863
49333
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
48864
|
-
return
|
|
49334
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, baseAlign), align);
|
|
48865
49335
|
}
|
|
48866
49336
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
48867
49337
|
var points = align.points;
|
|
@@ -48925,7 +49395,7 @@ function Mask_Mask(props) {
|
|
|
48925
49395
|
var motion = {};
|
|
48926
49396
|
|
|
48927
49397
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
48928
|
-
motion =
|
|
49398
|
+
motion = objectSpread2_objectSpread2({
|
|
48929
49399
|
motionAppear: true
|
|
48930
49400
|
}, getMotion({
|
|
48931
49401
|
motion: maskMotion,
|
|
@@ -48935,7 +49405,7 @@ function Mask_Mask(props) {
|
|
|
48935
49405
|
}));
|
|
48936
49406
|
}
|
|
48937
49407
|
|
|
48938
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49408
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({}, motion, {
|
|
48939
49409
|
visible: visible,
|
|
48940
49410
|
removeOnLeave: true
|
|
48941
49411
|
}), function (_ref) {
|
|
@@ -50447,7 +50917,7 @@ function getElement(func) {
|
|
|
50447
50917
|
}
|
|
50448
50918
|
|
|
50449
50919
|
function getPoint(point) {
|
|
50450
|
-
if (
|
|
50920
|
+
if (esm_typeof_typeof(point) !== 'object' || !point) return null;
|
|
50451
50921
|
return point;
|
|
50452
50922
|
}
|
|
50453
50923
|
|
|
@@ -50661,9 +51131,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
50661
51131
|
}
|
|
50662
51132
|
|
|
50663
51133
|
if (status) {
|
|
50664
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
51134
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
50665
51135
|
var index, nextStatus;
|
|
50666
|
-
return
|
|
51136
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
50667
51137
|
while (1) {
|
|
50668
51138
|
switch (_context.prev = _context.next) {
|
|
50669
51139
|
case 0:
|
|
@@ -50836,7 +51306,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
50836
51306
|
} // ======================== Motion ========================
|
|
50837
51307
|
|
|
50838
51308
|
|
|
50839
|
-
var motion =
|
|
51309
|
+
var motion = objectSpread2_objectSpread2({}, getMotion(props));
|
|
50840
51310
|
|
|
50841
51311
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
50842
51312
|
var originHandler = motion[eventName];
|
|
@@ -50869,7 +51339,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
50869
51339
|
};
|
|
50870
51340
|
}); // ======================== Render ========================
|
|
50871
51341
|
|
|
50872
|
-
var mergedStyle =
|
|
51342
|
+
var mergedStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, stretchStyle), {}, {
|
|
50873
51343
|
zIndex: zIndex,
|
|
50874
51344
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
50875
51345
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -50890,7 +51360,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
50890
51360
|
}, children);
|
|
50891
51361
|
}
|
|
50892
51362
|
|
|
50893
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51363
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
50894
51364
|
visible: visible,
|
|
50895
51365
|
ref: elementRef,
|
|
50896
51366
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -50918,7 +51388,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
50918
51388
|
onMouseLeave: onMouseLeave,
|
|
50919
51389
|
onMouseDownCapture: onMouseDown,
|
|
50920
51390
|
onTouchStartCapture: onTouchStart,
|
|
50921
|
-
style:
|
|
51391
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), mergedStyle)
|
|
50922
51392
|
}, childNode));
|
|
50923
51393
|
});
|
|
50924
51394
|
});
|
|
@@ -50953,7 +51423,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
50953
51423
|
};
|
|
50954
51424
|
}); // ======================== Render ========================
|
|
50955
51425
|
|
|
50956
|
-
var mergedStyle =
|
|
51426
|
+
var mergedStyle = objectSpread2_objectSpread2({
|
|
50957
51427
|
zIndex: zIndex
|
|
50958
51428
|
}, popupStyle);
|
|
50959
51429
|
|
|
@@ -50970,7 +51440,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
50970
51440
|
childNode = popupRender(childNode);
|
|
50971
51441
|
}
|
|
50972
51442
|
|
|
50973
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51443
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
50974
51444
|
visible: visible,
|
|
50975
51445
|
ref: elementRef,
|
|
50976
51446
|
removeOnLeave: true
|
|
@@ -50981,7 +51451,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
50981
51451
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
50982
51452
|
ref: motionRef,
|
|
50983
51453
|
className: mergedClassName,
|
|
50984
|
-
style:
|
|
51454
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), mergedStyle)
|
|
50985
51455
|
}, childNode);
|
|
50986
51456
|
});
|
|
50987
51457
|
});
|
|
@@ -51002,7 +51472,7 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51002
51472
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51003
51473
|
var visible = _ref.visible,
|
|
51004
51474
|
mobile = _ref.mobile,
|
|
51005
|
-
props =
|
|
51475
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref, Popup_excluded);
|
|
51006
51476
|
|
|
51007
51477
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51008
51478
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
@@ -51014,7 +51484,7 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51014
51484
|
inMobile = _useState4[0],
|
|
51015
51485
|
setInMobile = _useState4[1];
|
|
51016
51486
|
|
|
51017
|
-
var cloneProps =
|
|
51487
|
+
var cloneProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
51018
51488
|
visible: innerVisible
|
|
51019
51489
|
}); // We check mobile in visible changed here.
|
|
51020
51490
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51027,10 +51497,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51027
51497
|
setInMobile(isMobile());
|
|
51028
51498
|
}
|
|
51029
51499
|
}, [visible, mobile]);
|
|
51030
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51500
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, esm_extends_extends({}, cloneProps, {
|
|
51031
51501
|
mobile: mobile,
|
|
51032
51502
|
ref: ref
|
|
51033
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51503
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, esm_extends_extends({}, cloneProps, {
|
|
51034
51504
|
ref: ref
|
|
51035
51505
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51036
51506
|
|
|
@@ -51084,14 +51554,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51084
51554
|
|
|
51085
51555
|
function generateTrigger(PortalComponent) {
|
|
51086
51556
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51087
|
-
|
|
51557
|
+
inherits_inherits(Trigger, _React$Component);
|
|
51088
51558
|
|
|
51089
|
-
var _super =
|
|
51559
|
+
var _super = createSuper_createSuper(Trigger);
|
|
51090
51560
|
|
|
51091
51561
|
function Trigger(props) {
|
|
51092
51562
|
var _this;
|
|
51093
51563
|
|
|
51094
|
-
|
|
51564
|
+
classCallCheck_classCallCheck(this, Trigger);
|
|
51095
51565
|
|
|
51096
51566
|
_this = _super.call(this, props);
|
|
51097
51567
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -51279,7 +51749,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51279
51749
|
} catch (err) {// Do nothing
|
|
51280
51750
|
}
|
|
51281
51751
|
|
|
51282
|
-
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(
|
|
51752
|
+
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(assertThisInitialized_assertThisInitialized(_this));
|
|
51283
51753
|
};
|
|
51284
51754
|
|
|
51285
51755
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -51340,7 +51810,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51340
51810
|
|
|
51341
51811
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
51342
51812
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
51343
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup,
|
|
51813
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup, esm_extends_extends({
|
|
51344
51814
|
prefixCls: prefixCls,
|
|
51345
51815
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
51346
51816
|
visible: popupVisible,
|
|
@@ -51453,7 +51923,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51453
51923
|
return _this;
|
|
51454
51924
|
}
|
|
51455
51925
|
|
|
51456
|
-
|
|
51926
|
+
createClass_createClass(Trigger, [{
|
|
51457
51927
|
key: "componentDidMount",
|
|
51458
51928
|
value: function componentDidMount() {
|
|
51459
51929
|
this.componentDidUpdate();
|
|
@@ -51778,7 +52248,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51778
52248
|
newChildProps.className = childrenClassName;
|
|
51779
52249
|
}
|
|
51780
52250
|
|
|
51781
|
-
var cloneProps =
|
|
52251
|
+
var cloneProps = objectSpread2_objectSpread2({}, newChildProps);
|
|
51782
52252
|
|
|
51783
52253
|
if (supportRef(child)) {
|
|
51784
52254
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -51919,7 +52389,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
51919
52389
|
empty = props.empty,
|
|
51920
52390
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
51921
52391
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
51922
|
-
restProps =
|
|
52392
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SelectTrigger_excluded);
|
|
51923
52393
|
|
|
51924
52394
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
51925
52395
|
var popupNode = popupElement;
|
|
@@ -51943,7 +52413,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
51943
52413
|
};
|
|
51944
52414
|
});
|
|
51945
52415
|
|
|
51946
|
-
var popupStyle =
|
|
52416
|
+
var popupStyle = objectSpread2_objectSpread2({
|
|
51947
52417
|
minWidth: containerWidth
|
|
51948
52418
|
}, dropdownStyle);
|
|
51949
52419
|
|
|
@@ -51953,7 +52423,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
51953
52423
|
popupStyle.width = containerWidth;
|
|
51954
52424
|
}
|
|
51955
52425
|
|
|
51956
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
52426
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, esm_extends_extends({}, restProps, {
|
|
51957
52427
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
51958
52428
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
51959
52429
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -51966,7 +52436,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
51966
52436
|
popupAlign: dropdownAlign,
|
|
51967
52437
|
popupVisible: visible,
|
|
51968
52438
|
getPopupContainer: getPopupContainer,
|
|
51969
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52439
|
+
popupClassName: classnames_default()(dropdownClassName, defineProperty_defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
51970
52440
|
popupStyle: popupStyle,
|
|
51971
52441
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
51972
52442
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52069,7 +52539,7 @@ function useCacheDisplayValue(values) {
|
|
|
52069
52539
|
var cacheLabel = valueLabels.get(item.value);
|
|
52070
52540
|
|
|
52071
52541
|
if (item.isCacheable && cacheLabel) {
|
|
52072
|
-
return
|
|
52542
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
52073
52543
|
label: cacheLabel
|
|
52074
52544
|
});
|
|
52075
52545
|
}
|
|
@@ -52231,7 +52701,7 @@ function generateSelector(config) {
|
|
|
52231
52701
|
onClear = props.onClear,
|
|
52232
52702
|
_props$internalProps = props.internalProps,
|
|
52233
52703
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
52234
|
-
restProps =
|
|
52704
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, generate_excluded);
|
|
52235
52705
|
|
|
52236
52706
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
52237
52707
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -52369,7 +52839,7 @@ function generateSelector(config) {
|
|
|
52369
52839
|
|
|
52370
52840
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
52371
52841
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
52372
|
-
return
|
|
52842
|
+
return toConsumableArray_toConsumableArray(mergedOptions);
|
|
52373
52843
|
}
|
|
52374
52844
|
|
|
52375
52845
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -52390,7 +52860,7 @@ function generateSelector(config) {
|
|
|
52390
52860
|
}
|
|
52391
52861
|
|
|
52392
52862
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
52393
|
-
return
|
|
52863
|
+
return toConsumableArray_toConsumableArray(filteredOptions).sort(filterSort);
|
|
52394
52864
|
}
|
|
52395
52865
|
|
|
52396
52866
|
return filteredOptions;
|
|
@@ -52413,7 +52883,7 @@ function generateSelector(config) {
|
|
|
52413
52883
|
labelInValue: mergedLabelInValue,
|
|
52414
52884
|
optionLabelProp: mergedOptionLabelProp
|
|
52415
52885
|
});
|
|
52416
|
-
return
|
|
52886
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, displayValue), {}, {
|
|
52417
52887
|
disabled: isValueDisabled(val, valueOptions)
|
|
52418
52888
|
});
|
|
52419
52889
|
});
|
|
@@ -52487,7 +52957,7 @@ function generateSelector(config) {
|
|
|
52487
52957
|
}); // We will cache option in case it removed by ajax
|
|
52488
52958
|
|
|
52489
52959
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
52490
|
-
var clone =
|
|
52960
|
+
var clone = objectSpread2_objectSpread2({}, option);
|
|
52491
52961
|
|
|
52492
52962
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
52493
52963
|
get: function get() {
|
|
@@ -52543,13 +53013,13 @@ function generateSelector(config) {
|
|
|
52543
53013
|
};
|
|
52544
53014
|
|
|
52545
53015
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
52546
|
-
onInternalSelect(newValue,
|
|
53016
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
52547
53017
|
source: 'option'
|
|
52548
53018
|
}));
|
|
52549
53019
|
};
|
|
52550
53020
|
|
|
52551
53021
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
52552
|
-
onInternalSelect(newValue,
|
|
53022
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
52553
53023
|
source: 'selection'
|
|
52554
53024
|
}));
|
|
52555
53025
|
}; // ============================= Input ==============================
|
|
@@ -52633,7 +53103,7 @@ function generateSelector(config) {
|
|
|
52633
53103
|
});
|
|
52634
53104
|
}
|
|
52635
53105
|
|
|
52636
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53106
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), toConsumableArray_toConsumableArray(patchRawValues))));
|
|
52637
53107
|
triggerChange(newRawValues);
|
|
52638
53108
|
newRawValues.forEach(function (newRawValue) {
|
|
52639
53109
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -52662,7 +53132,7 @@ function generateSelector(config) {
|
|
|
52662
53132
|
return;
|
|
52663
53133
|
}
|
|
52664
53134
|
|
|
52665
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53135
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [searchText])));
|
|
52666
53136
|
triggerChange(newRawValues);
|
|
52667
53137
|
newRawValues.forEach(function (newRawValue) {
|
|
52668
53138
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -52795,7 +53265,7 @@ function generateSelector(config) {
|
|
|
52795
53265
|
// `tags` mode should move `searchValue` into values
|
|
52796
53266
|
if (mode === 'tags') {
|
|
52797
53267
|
triggerSearch('', false, false);
|
|
52798
|
-
triggerChange(Array.from(new Set([].concat(
|
|
53268
|
+
triggerChange(Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
52799
53269
|
} else if (mode === 'multiple') {
|
|
52800
53270
|
// `multiple` mode only clean the search value but not trigger event
|
|
52801
53271
|
setInnerSearchValue('');
|
|
@@ -52953,7 +53423,7 @@ function generateSelector(config) {
|
|
|
52953
53423
|
|
|
52954
53424
|
if (mergedShowArrow) {
|
|
52955
53425
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
52956
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53426
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), defineProperty_defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
52957
53427
|
customizeIcon: inputIcon,
|
|
52958
53428
|
customizeIconProps: {
|
|
52959
53429
|
loading: loading,
|
|
@@ -52969,7 +53439,7 @@ function generateSelector(config) {
|
|
|
52969
53439
|
if (false) {} // ============================= Render =============================
|
|
52970
53440
|
|
|
52971
53441
|
|
|
52972
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
53442
|
+
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));
|
|
52973
53443
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
52974
53444
|
ref: triggerRef,
|
|
52975
53445
|
disabled: disabled,
|
|
@@ -52994,7 +53464,7 @@ function generateSelector(config) {
|
|
|
52994
53464
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
52995
53465
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
52996
53466
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
52997
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
53467
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, esm_extends_extends({}, props, {
|
|
52998
53468
|
domRef: selectorDomRef,
|
|
52999
53469
|
prefixCls: prefixCls,
|
|
53000
53470
|
inputElement: customizeInputElement,
|
|
@@ -53020,7 +53490,7 @@ function generateSelector(config) {
|
|
|
53020
53490
|
return selectorNode;
|
|
53021
53491
|
}
|
|
53022
53492
|
|
|
53023
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
53493
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
53024
53494
|
className: mergedClassName
|
|
53025
53495
|
}, domProps, {
|
|
53026
53496
|
ref: containerRef,
|
|
@@ -53107,7 +53577,7 @@ function warningProps(props) {
|
|
|
53107
53577
|
if (value !== undefined && value !== null) {
|
|
53108
53578
|
var values = commonUtil_toArray(value);
|
|
53109
53579
|
es_warning(!labelInValue || values.every(function (val) {
|
|
53110
|
-
return
|
|
53580
|
+
return esm_typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
53111
53581
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
53112
53582
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
53113
53583
|
} // Syntactic sugar should use correct children type
|
|
@@ -53221,14 +53691,14 @@ var RefSelect = generateSelector({
|
|
|
53221
53691
|
*/
|
|
53222
53692
|
|
|
53223
53693
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
53224
|
-
|
|
53694
|
+
inherits_inherits(Select, _React$Component);
|
|
53225
53695
|
|
|
53226
|
-
var _super =
|
|
53696
|
+
var _super = createSuper_createSuper(Select);
|
|
53227
53697
|
|
|
53228
53698
|
function Select() {
|
|
53229
53699
|
var _this;
|
|
53230
53700
|
|
|
53231
|
-
|
|
53701
|
+
classCallCheck_classCallCheck(this, Select);
|
|
53232
53702
|
|
|
53233
53703
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53234
53704
|
args[_key] = arguments[_key];
|
|
@@ -53248,10 +53718,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
53248
53718
|
return _this;
|
|
53249
53719
|
}
|
|
53250
53720
|
|
|
53251
|
-
|
|
53721
|
+
createClass_createClass(Select, [{
|
|
53252
53722
|
key: "render",
|
|
53253
53723
|
value: function render() {
|
|
53254
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
53724
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, esm_extends_extends({
|
|
53255
53725
|
ref: this.selectRef
|
|
53256
53726
|
}, this.props));
|
|
53257
53727
|
}
|
|
@@ -53432,7 +53902,7 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
53432
53902
|
} // ===================== Icons =====================
|
|
53433
53903
|
|
|
53434
53904
|
|
|
53435
|
-
var _getIcons = getIcons(
|
|
53905
|
+
var _getIcons = getIcons(esm_extends_extends(esm_extends_extends({}, props), {
|
|
53436
53906
|
multiple: isMultiple,
|
|
53437
53907
|
prefixCls: prefixCls
|
|
53438
53908
|
})),
|
|
@@ -53442,10 +53912,10 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
53442
53912
|
clearIcon = _getIcons.clearIcon;
|
|
53443
53913
|
|
|
53444
53914
|
var selectProps = omit(props, ['suffixIcon', 'itemIcon']);
|
|
53445
|
-
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName,
|
|
53915
|
+
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
|
|
53446
53916
|
var mergedSize = customizeSize || size;
|
|
53447
|
-
var mergedClassName = classnames_default()((_classNames2 = {},
|
|
53448
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es,
|
|
53917
|
+
var mergedClassName = classnames_default()((_classNames2 = {}, defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-lg"), mergedSize === 'large'), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-sm"), mergedSize === 'small'), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-borderless"), !bordered), _classNames2), className);
|
|
53918
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es, esm_extends_extends({
|
|
53449
53919
|
ref: ref,
|
|
53450
53920
|
virtual: virtual,
|
|
53451
53921
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth
|
|
@@ -54737,9 +55207,9 @@ function LiveOnlineCount(_ref) {
|
|
|
54737
55207
|
};
|
|
54738
55208
|
|
|
54739
55209
|
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
54740
|
-
LiveOnlineCount_asyncToGenerator( /*#__PURE__*/
|
|
55210
|
+
LiveOnlineCount_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
54741
55211
|
var count, likesData, currentCount;
|
|
54742
|
-
return
|
|
55212
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
54743
55213
|
while (1) {
|
|
54744
55214
|
switch (_context.prev = _context.next) {
|
|
54745
55215
|
case 0:
|
|
@@ -54915,6 +55385,7 @@ function detail_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
54915
55385
|
|
|
54916
55386
|
|
|
54917
55387
|
|
|
55388
|
+
|
|
54918
55389
|
// import IMChatroom from '@/component/IMChatroom'
|
|
54919
55390
|
|
|
54920
55391
|
|
|
@@ -55005,7 +55476,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55005
55476
|
userRole = loginInfo.userRole,
|
|
55006
55477
|
loginStatus = loginInfo.loginStatus;
|
|
55007
55478
|
var isLiveToReplay = !replay;
|
|
55008
|
-
var isStreamLive = liveInfo && liveInfo.type === PUBLIC_LIVE_MODE.LIVING;
|
|
55479
|
+
var isStreamLive = liveInfo && liveInfo.type === PUBLIC_LIVE_MODE.LIVING && (liveInfo.sub_type === publicLive_SUB_TYPE.OUTSIDE || liveInfo.sub_type === publicLive_SUB_TYPE.REBROADCAST);
|
|
55009
55480
|
|
|
55010
55481
|
var handleStatusChange = /*#__PURE__*/function () {
|
|
55011
55482
|
var _ref2 = detail_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(status) {
|
|
@@ -55030,7 +55501,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55030
55501
|
subType = liveInfo.sub_type, bid = liveInfo.bid, roomId = liveInfo.room_id;
|
|
55031
55502
|
imLiveInfoResp = {}; // 如果类型为外部推流, 则去请求新的直播详情接口
|
|
55032
55503
|
|
|
55033
|
-
if (!(subType ===
|
|
55504
|
+
if (!(subType === publicLive_SUB_TYPE.OUTSIDE || subType === publicLive_SUB_TYPE.REBROADCAST)) {
|
|
55034
55505
|
_context.next = 14;
|
|
55035
55506
|
break;
|
|
55036
55507
|
}
|
|
@@ -55151,7 +55622,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55151
55622
|
subType = data.sub_type, bid = data.bid, roomId = data.room_id;
|
|
55152
55623
|
imLiveInfoResp = {}; // 如果类型为外部推流, 则去请求新的直播详情接口
|
|
55153
55624
|
|
|
55154
|
-
if (!(subType ===
|
|
55625
|
+
if (!(subType === publicLive_SUB_TYPE.OUTSIDE || subType === publicLive_SUB_TYPE.REBROADCAST)) {
|
|
55155
55626
|
_context2.next = 26;
|
|
55156
55627
|
break;
|
|
55157
55628
|
}
|
|
@@ -55188,6 +55659,19 @@ function PublicLiveDetail(_ref) {
|
|
|
55188
55659
|
data.imInfo = imLiveInfoResp;
|
|
55189
55660
|
|
|
55190
55661
|
case 31:
|
|
55662
|
+
if (!(data.type === PUBLIC_LIVE_MODE.LIVING && data.sub_type === publicLive_SUB_TYPE.OUTSIDE)) {
|
|
55663
|
+
_context2.next = 34;
|
|
55664
|
+
break;
|
|
55665
|
+
}
|
|
55666
|
+
|
|
55667
|
+
_context2.next = 36;
|
|
55668
|
+
break;
|
|
55669
|
+
|
|
55670
|
+
case 34:
|
|
55671
|
+
_context2.next = 36;
|
|
55672
|
+
return push.init();
|
|
55673
|
+
|
|
55674
|
+
case 36:
|
|
55191
55675
|
// 如果是转播或者是推流 直接播放(用于调试模式)
|
|
55192
55676
|
_getUrlQuery2 = (0,url/* getUrlQuery */.pf)(), preview = _getUrlQuery2.preview; // 后台点预览会加这个参数
|
|
55193
55677
|
|
|
@@ -55196,7 +55680,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55196
55680
|
}) : data;
|
|
55197
55681
|
setLiveInfo(generateInfo);
|
|
55198
55682
|
|
|
55199
|
-
case
|
|
55683
|
+
case 39:
|
|
55200
55684
|
case "end":
|
|
55201
55685
|
return _context2.stop();
|
|
55202
55686
|
}
|
|
@@ -55211,6 +55695,31 @@ function PublicLiveDetail(_ref) {
|
|
|
55211
55695
|
|
|
55212
55696
|
init();
|
|
55213
55697
|
}, []);
|
|
55698
|
+
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
55699
|
+
if (!liveInfo || liveInfo.sub_type === publicLive_SUB_TYPE.OUTSIDE) {
|
|
55700
|
+
return;
|
|
55701
|
+
}
|
|
55702
|
+
|
|
55703
|
+
var handler = function handler(data) {
|
|
55704
|
+
var _data$extraFields = data.extraFields,
|
|
55705
|
+
extraFields = _data$extraFields === void 0 ? {} : _data$extraFields;
|
|
55706
|
+
console.log('public Live:', data);
|
|
55707
|
+
|
|
55708
|
+
if (extraFields.event === PUBLIC_LIVE_PUSH_EVENT.STATUS_CHANGE && extraFields.liveId === liveId) {
|
|
55709
|
+
console.log("public Live: receive push status ".concat(parseInt(extraFields.status, 10)));
|
|
55710
|
+
handleStatusChange(parseInt(extraFields.status, 10));
|
|
55711
|
+
}
|
|
55712
|
+
};
|
|
55713
|
+
|
|
55714
|
+
push.addTopicListener("".concat(PUBLIC_LIVE_PUSH_TOPIC, "_").concat(liveId), handler);
|
|
55715
|
+
return function () {
|
|
55716
|
+
if (!liveInfo || liveInfo.sub_type === publicLive_SUB_TYPE.OUTSIDE) {
|
|
55717
|
+
return;
|
|
55718
|
+
}
|
|
55719
|
+
|
|
55720
|
+
push.removeTopicListener("".concat(PUBLIC_LIVE_PUSH_TOPIC, "_").concat(liveId), handler);
|
|
55721
|
+
};
|
|
55722
|
+
}, [!!liveInfo]);
|
|
55214
55723
|
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
55215
55724
|
if (userInfo) {
|
|
55216
55725
|
onReportProgress();
|
|
@@ -55337,7 +55846,6 @@ function PublicLiveDetail(_ref) {
|
|
|
55337
55846
|
},
|
|
55338
55847
|
onRequestFullScreen: handleRequestFullScreen
|
|
55339
55848
|
}) : isRecordLive ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(RecordVideo, {
|
|
55340
|
-
isStreamLive: isStreamLive,
|
|
55341
55849
|
userInfo: userInfo,
|
|
55342
55850
|
liveInfo: liveInfo,
|
|
55343
55851
|
visitTime: visitTime,
|
|
@@ -55351,7 +55859,6 @@ function PublicLiveDetail(_ref) {
|
|
|
55351
55859
|
},
|
|
55352
55860
|
onRequestFullScreen: handleRequestFullScreen
|
|
55353
55861
|
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(LiveVideo, {
|
|
55354
|
-
isStreamLive: isStreamLive,
|
|
55355
55862
|
handleLogin: handleLogin,
|
|
55356
55863
|
userInfo: userInfo,
|
|
55357
55864
|
liveInfo: liveInfo,
|
|
@@ -55365,7 +55872,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55365
55872
|
handleVideoPlay(true);
|
|
55366
55873
|
},
|
|
55367
55874
|
onRequestFullScreen: handleRequestFullScreen
|
|
55368
|
-
})), !isReplayMode && !isRecordLive &&
|
|
55875
|
+
})), !isReplayMode && !isRecordLive && isStreamLive && liveInfo.status !== publicLive_PUBLIC_LIVE_STATUS.COMPLETEED && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(LineSwitch, {
|
|
55369
55876
|
className: src_detail_index_module["live-line-switch"],
|
|
55370
55877
|
liveInfo: liveInfo,
|
|
55371
55878
|
onChange: handleSelectChange
|
|
@@ -55558,7 +56065,7 @@ function TabNode(_ref, ref) {
|
|
|
55558
56065
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
55559
56066
|
key: key,
|
|
55560
56067
|
ref: ref,
|
|
55561
|
-
className: classnames_default()(tabPrefix, (_classNames = {},
|
|
56068
|
+
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)),
|
|
55562
56069
|
style: style,
|
|
55563
56070
|
onClick: onInternalClick
|
|
55564
56071
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -55621,7 +56128,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
55621
56128
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
55622
56129
|
}
|
|
55623
56130
|
|
|
55624
|
-
var entity = map.get(key) ||
|
|
56131
|
+
var entity = map.get(key) || objectSpread2_objectSpread2({}, data); // Right
|
|
55625
56132
|
|
|
55626
56133
|
|
|
55627
56134
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -55716,7 +56223,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
55716
56223
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
55717
56224
|
|
|
55718
56225
|
function mergeProps(origin, target) {
|
|
55719
|
-
var clone =
|
|
56226
|
+
var clone = objectSpread2_objectSpread2({}, origin);
|
|
55720
56227
|
|
|
55721
56228
|
Object.keys(target).forEach(function (key) {
|
|
55722
56229
|
var value = target[key];
|
|
@@ -55731,7 +56238,7 @@ function mergeProps(origin, target) {
|
|
|
55731
56238
|
function InheritableContextProvider(_ref) {
|
|
55732
56239
|
var children = _ref.children,
|
|
55733
56240
|
locked = _ref.locked,
|
|
55734
|
-
restProps =
|
|
56241
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, MenuContext_excluded);
|
|
55735
56242
|
|
|
55736
56243
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
55737
56244
|
var inheritableContext = useMemo(function () {
|
|
@@ -55787,7 +56294,7 @@ var warnUtil_excluded = ["item"];
|
|
|
55787
56294
|
|
|
55788
56295
|
function warnItemProp(_ref) {
|
|
55789
56296
|
var item = _ref.item,
|
|
55790
|
-
restInfo =
|
|
56297
|
+
restInfo = objectWithoutProperties_objectWithoutProperties(_ref, warnUtil_excluded);
|
|
55791
56298
|
|
|
55792
56299
|
Object.defineProperty(restInfo, 'item', {
|
|
55793
56300
|
get: function get() {
|
|
@@ -55807,7 +56314,7 @@ function es_Icon_Icon(_ref) {
|
|
|
55807
56314
|
var iconNode;
|
|
55808
56315
|
|
|
55809
56316
|
if (typeof icon === 'function') {
|
|
55810
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
56317
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, objectSpread2_objectSpread2({}, props));
|
|
55811
56318
|
} else {
|
|
55812
56319
|
// Compatible for origin definition
|
|
55813
56320
|
iconNode = icon;
|
|
@@ -55848,7 +56355,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
55848
56355
|
function useFullPath(eventKey) {
|
|
55849
56356
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
55850
56357
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
55851
|
-
return eventKey !== undefined ? [].concat(
|
|
56358
|
+
return eventKey !== undefined ? [].concat(toConsumableArray_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
55852
56359
|
}, [parentKeyPath, eventKey]);
|
|
55853
56360
|
}
|
|
55854
56361
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -55905,28 +56412,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
55905
56412
|
// This should be removed from doc & api in future.
|
|
55906
56413
|
|
|
55907
56414
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
55908
|
-
|
|
56415
|
+
inherits_inherits(LegacyMenuItem, _React$Component);
|
|
55909
56416
|
|
|
55910
|
-
var _super =
|
|
56417
|
+
var _super = createSuper_createSuper(LegacyMenuItem);
|
|
55911
56418
|
|
|
55912
56419
|
function LegacyMenuItem() {
|
|
55913
|
-
|
|
56420
|
+
classCallCheck_classCallCheck(this, LegacyMenuItem);
|
|
55914
56421
|
|
|
55915
56422
|
return _super.apply(this, arguments);
|
|
55916
56423
|
}
|
|
55917
56424
|
|
|
55918
|
-
|
|
56425
|
+
createClass_createClass(LegacyMenuItem, [{
|
|
55919
56426
|
key: "render",
|
|
55920
56427
|
value: function render() {
|
|
55921
56428
|
var _this$props = this.props,
|
|
55922
56429
|
title = _this$props.title,
|
|
55923
56430
|
attribute = _this$props.attribute,
|
|
55924
56431
|
elementRef = _this$props.elementRef,
|
|
55925
|
-
restProps =
|
|
56432
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
55926
56433
|
|
|
55927
56434
|
var passedProps = omit(restProps, ['eventKey']);
|
|
55928
56435
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
55929
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56436
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, esm_extends_extends({}, attribute, {
|
|
55930
56437
|
title: typeof title === 'string' ? title : undefined
|
|
55931
56438
|
}, passedProps, {
|
|
55932
56439
|
ref: elementRef
|
|
@@ -55957,7 +56464,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
55957
56464
|
onClick = props.onClick,
|
|
55958
56465
|
onKeyDown = props.onKeyDown,
|
|
55959
56466
|
onFocus = props.onFocus,
|
|
55960
|
-
restProps =
|
|
56467
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, MenuItem_excluded2);
|
|
55961
56468
|
|
|
55962
56469
|
var domDataId = useMenuId(eventKey);
|
|
55963
56470
|
|
|
@@ -55986,7 +56493,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
55986
56493
|
return {
|
|
55987
56494
|
key: eventKey,
|
|
55988
56495
|
// Note: For legacy code is reversed which not like other antd component
|
|
55989
|
-
keyPath:
|
|
56496
|
+
keyPath: toConsumableArray_toConsumableArray(connectedKeys).reverse(),
|
|
55990
56497
|
item: legacyMenuItemRef.current,
|
|
55991
56498
|
domEvent: e
|
|
55992
56499
|
};
|
|
@@ -55997,7 +56504,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
55997
56504
|
|
|
55998
56505
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
55999
56506
|
active = _useActive.active,
|
|
56000
|
-
activeProps =
|
|
56507
|
+
activeProps = objectWithoutProperties_objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56001
56508
|
|
|
56002
56509
|
|
|
56003
56510
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56042,7 +56549,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56042
56549
|
optionRoleProps['aria-selected'] = selected;
|
|
56043
56550
|
}
|
|
56044
56551
|
|
|
56045
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56552
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, esm_extends_extends({
|
|
56046
56553
|
ref: legacyMenuItemRef,
|
|
56047
56554
|
elementRef: elementRef,
|
|
56048
56555
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56051,13 +56558,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56051
56558
|
}, restProps, activeProps, optionRoleProps, {
|
|
56052
56559
|
component: "li",
|
|
56053
56560
|
"aria-disabled": disabled,
|
|
56054
|
-
style:
|
|
56055
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56561
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, directionStyle), style),
|
|
56562
|
+
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),
|
|
56056
56563
|
onClick: onInternalClick,
|
|
56057
56564
|
onKeyDown: onInternalKeyDown,
|
|
56058
56565
|
onFocus: onInternalFocus
|
|
56059
56566
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56060
|
-
props:
|
|
56567
|
+
props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
56061
56568
|
isSelected: selected
|
|
56062
56569
|
}),
|
|
56063
56570
|
icon: mergedItemIcon
|
|
@@ -56110,7 +56617,7 @@ function parseChildren(children, keyPath) {
|
|
|
56110
56617
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56111
56618
|
|
|
56112
56619
|
if (emptyKey) {
|
|
56113
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56620
|
+
eventKey = "tmp_key-".concat([].concat(toConsumableArray_toConsumableArray(keyPath), [index]).join('-'));
|
|
56114
56621
|
}
|
|
56115
56622
|
|
|
56116
56623
|
var cloneProps = {
|
|
@@ -56158,14 +56665,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56158
56665
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56159
56666
|
var className = _ref.className,
|
|
56160
56667
|
children = _ref.children,
|
|
56161
|
-
restProps =
|
|
56668
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56162
56669
|
|
|
56163
56670
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56164
56671
|
prefixCls = _React$useContext.prefixCls,
|
|
56165
56672
|
mode = _React$useContext.mode,
|
|
56166
56673
|
rtl = _React$useContext.rtl;
|
|
56167
56674
|
|
|
56168
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
56675
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", esm_extends_extends({
|
|
56169
56676
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56170
56677
|
}, restProps, {
|
|
56171
56678
|
"data-menu-list": true,
|
|
@@ -56282,11 +56789,11 @@ function PopupTrigger(_ref) {
|
|
|
56282
56789
|
innerVisible = _React$useState2[0],
|
|
56283
56790
|
setInnerVisible = _React$useState2[1];
|
|
56284
56791
|
|
|
56285
|
-
var placement = rtl ?
|
|
56792
|
+
var placement = rtl ? objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, placementsRtl), builtinPlacements) : objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, placements), builtinPlacements);
|
|
56286
56793
|
var popupPlacement = popupPlacementMap[mode];
|
|
56287
56794
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
56288
56795
|
|
|
56289
|
-
var mergedMotion =
|
|
56796
|
+
var mergedMotion = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, targetMotion), {}, {
|
|
56290
56797
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
56291
56798
|
removeOnLeave: false,
|
|
56292
56799
|
motionAppear: true
|
|
@@ -56304,7 +56811,7 @@ function PopupTrigger(_ref) {
|
|
|
56304
56811
|
}, [visible]);
|
|
56305
56812
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
56306
56813
|
prefixCls: prefixCls,
|
|
56307
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
56814
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), defineProperty_defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
56308
56815
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
56309
56816
|
getPopupContainer: getPopupContainer,
|
|
56310
56817
|
builtinPlacements: placement,
|
|
@@ -56364,7 +56871,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56364
56871
|
}
|
|
56365
56872
|
}, [mode]); // ================================= Render =================================
|
|
56366
56873
|
|
|
56367
|
-
var mergedMotion =
|
|
56874
|
+
var mergedMotion = objectSpread2_objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
56368
56875
|
|
|
56369
56876
|
|
|
56370
56877
|
if (keyPath.length > 1) {
|
|
@@ -56389,7 +56896,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56389
56896
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
56390
56897
|
mode: fixedMode,
|
|
56391
56898
|
locked: !sameModeRef.current
|
|
56392
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
56899
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
56393
56900
|
visible: mergedOpen
|
|
56394
56901
|
}, mergedMotion, {
|
|
56395
56902
|
forceRender: forceSubMenuRender,
|
|
@@ -56452,7 +56959,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56452
56959
|
onTitleClick = props.onTitleClick,
|
|
56453
56960
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
56454
56961
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
56455
|
-
restProps =
|
|
56962
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SubMenu_excluded);
|
|
56456
56963
|
|
|
56457
56964
|
var domDataId = useMenuId(eventKey);
|
|
56458
56965
|
|
|
@@ -56495,7 +57002,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56495
57002
|
|
|
56496
57003
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
56497
57004
|
active = _useActive.active,
|
|
56498
|
-
activeProps =
|
|
57005
|
+
activeProps = objectWithoutProperties_objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
56499
57006
|
|
|
56500
57007
|
|
|
56501
57008
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
@@ -56580,7 +57087,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56580
57087
|
|
|
56581
57088
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
56582
57089
|
|
|
56583
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
57090
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
56584
57091
|
role: "menuitem",
|
|
56585
57092
|
style: directionStyle,
|
|
56586
57093
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -56596,7 +57103,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56596
57103
|
onFocus: onInternalFocus
|
|
56597
57104
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56598
57105
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
56599
|
-
props:
|
|
57106
|
+
props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
56600
57107
|
isOpen: open,
|
|
56601
57108
|
// [Legacy] Not sure why need this mark
|
|
56602
57109
|
isSubMenu: true
|
|
@@ -56634,12 +57141,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56634
57141
|
} // >>>>> List node
|
|
56635
57142
|
|
|
56636
57143
|
|
|
56637
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
57144
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, esm_extends_extends({
|
|
56638
57145
|
role: "none"
|
|
56639
57146
|
}, restProps, {
|
|
56640
57147
|
component: "li",
|
|
56641
57148
|
style: style,
|
|
56642
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
57149
|
+
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)),
|
|
56643
57150
|
onMouseEnter: onInternalMouseEnter,
|
|
56644
57151
|
onMouseLeave: onInternalMouseLeave
|
|
56645
57152
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -56732,7 +57239,7 @@ function focusable(node) {
|
|
|
56732
57239
|
function getFocusNodeList(node) {
|
|
56733
57240
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
56734
57241
|
|
|
56735
|
-
var res =
|
|
57242
|
+
var res = toConsumableArray_toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
56736
57243
|
return focusable(child, includePositive);
|
|
56737
57244
|
});
|
|
56738
57245
|
|
|
@@ -56812,9 +57319,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
56812
57319
|
};
|
|
56813
57320
|
}
|
|
56814
57321
|
|
|
56815
|
-
var inline = (_inline = {},
|
|
56816
|
-
var horizontal = (_horizontal = {},
|
|
56817
|
-
var vertical = (_vertical = {},
|
|
57322
|
+
var inline = (_inline = {}, defineProperty_defineProperty(_inline, UP, prev), defineProperty_defineProperty(_inline, DOWN, next), _inline);
|
|
57323
|
+
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);
|
|
57324
|
+
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);
|
|
56818
57325
|
var offsets = {
|
|
56819
57326
|
inline: inline,
|
|
56820
57327
|
horizontal: horizontal,
|
|
@@ -57178,7 +57685,7 @@ function useKeyRecords() {
|
|
|
57178
57685
|
}, [getKeyPath]);
|
|
57179
57686
|
|
|
57180
57687
|
var getKeys = function getKeys() {
|
|
57181
|
-
var keys =
|
|
57688
|
+
var keys = toConsumableArray_toConsumableArray(key2pathRef.current.keys());
|
|
57182
57689
|
|
|
57183
57690
|
if (overflowKeys.length) {
|
|
57184
57691
|
keys.push(OVERFLOW_KEY);
|
|
@@ -57195,7 +57702,7 @@ function useKeyRecords() {
|
|
|
57195
57702
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
57196
57703
|
var pathKeys = new Set();
|
|
57197
57704
|
|
|
57198
|
-
|
|
57705
|
+
toConsumableArray_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
57199
57706
|
if (pathKey.startsWith(connectedPath)) {
|
|
57200
57707
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
57201
57708
|
}
|
|
@@ -57316,7 +57823,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57316
57823
|
openTransitionName = props.openTransitionName,
|
|
57317
57824
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
57318
57825
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
57319
|
-
restProps =
|
|
57826
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, Menu_excluded);
|
|
57320
57827
|
|
|
57321
57828
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
57322
57829
|
|
|
@@ -57470,7 +57977,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57470
57977
|
return key !== targetKey;
|
|
57471
57978
|
});
|
|
57472
57979
|
} else {
|
|
57473
|
-
newSelectKeys = [].concat(
|
|
57980
|
+
newSelectKeys = [].concat(toConsumableArray_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
57474
57981
|
}
|
|
57475
57982
|
} else {
|
|
57476
57983
|
newSelectKeys = [targetKey];
|
|
@@ -57478,7 +57985,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57478
57985
|
|
|
57479
57986
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
57480
57987
|
|
|
57481
|
-
var selectInfo =
|
|
57988
|
+
var selectInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
57482
57989
|
selectedKeys: newSelectKeys
|
|
57483
57990
|
});
|
|
57484
57991
|
|
|
@@ -57556,13 +58063,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57556
58063
|
);
|
|
57557
58064
|
}); // >>>>> Container
|
|
57558
58065
|
|
|
57559
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
58066
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, esm_extends_extends({
|
|
57560
58067
|
id: id,
|
|
57561
58068
|
ref: mergedRef,
|
|
57562
58069
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
57563
58070
|
component: "ul",
|
|
57564
58071
|
itemComponent: es_MenuItem,
|
|
57565
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
58072
|
+
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)),
|
|
57566
58073
|
dir: direction,
|
|
57567
58074
|
style: style,
|
|
57568
58075
|
role: "menu",
|
|
@@ -57656,13 +58163,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
57656
58163
|
title = _ref.title,
|
|
57657
58164
|
eventKey = _ref.eventKey,
|
|
57658
58165
|
children = _ref.children,
|
|
57659
|
-
restProps =
|
|
58166
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
57660
58167
|
|
|
57661
58168
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
57662
58169
|
prefixCls = _React$useContext.prefixCls;
|
|
57663
58170
|
|
|
57664
58171
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
57665
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
58172
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", esm_extends_extends({}, restProps, {
|
|
57666
58173
|
onClick: function onClick(e) {
|
|
57667
58174
|
return e.stopPropagation();
|
|
57668
58175
|
},
|
|
@@ -57677,7 +58184,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
57677
58184
|
|
|
57678
58185
|
function MenuItemGroup(_ref2) {
|
|
57679
58186
|
var children = _ref2.children,
|
|
57680
|
-
props =
|
|
58187
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
57681
58188
|
|
|
57682
58189
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
57683
58190
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -57805,7 +58312,7 @@ function Dropdown(props, ref) {
|
|
|
57805
58312
|
visible = props.visible,
|
|
57806
58313
|
_props$trigger = props.trigger,
|
|
57807
58314
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
57808
|
-
otherProps =
|
|
58315
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(props, Dropdown_excluded);
|
|
57809
58316
|
|
|
57810
58317
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
57811
58318
|
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
@@ -57916,12 +58423,12 @@ function Dropdown(props, ref) {
|
|
|
57916
58423
|
triggerHideAction = ['click'];
|
|
57917
58424
|
}
|
|
57918
58425
|
|
|
57919
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58426
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
57920
58427
|
builtinPlacements: placements
|
|
57921
58428
|
}, otherProps), {}, {
|
|
57922
58429
|
prefixCls: prefixCls,
|
|
57923
58430
|
ref: triggerRef,
|
|
57924
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58431
|
+
popupClassName: classnames_default()(overlayClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
57925
58432
|
popupStyle: overlayStyle,
|
|
57926
58433
|
action: trigger,
|
|
57927
58434
|
showAction: showAction,
|
|
@@ -58125,14 +58632,14 @@ function OperationNode(_ref, ref) {
|
|
|
58125
58632
|
}
|
|
58126
58633
|
}, [open]); // ========================= Render =========================
|
|
58127
58634
|
|
|
58128
|
-
var moreStyle =
|
|
58635
|
+
var moreStyle = defineProperty_defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
58129
58636
|
|
|
58130
58637
|
if (!tabs.length) {
|
|
58131
58638
|
moreStyle.visibility = 'hidden';
|
|
58132
58639
|
moreStyle.order = 1;
|
|
58133
58640
|
}
|
|
58134
58641
|
|
|
58135
|
-
var overlayClassName = classnames_default()(
|
|
58642
|
+
var overlayClassName = classnames_default()(defineProperty_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
58136
58643
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
58137
58644
|
prefixCls: dropdownPrefix,
|
|
58138
58645
|
overlay: menu,
|
|
@@ -58411,7 +58918,7 @@ var ExtraContent = function ExtraContent(_ref) {
|
|
|
58411
58918
|
|
|
58412
58919
|
var assertExtra = {};
|
|
58413
58920
|
|
|
58414
|
-
if (extra &&
|
|
58921
|
+
if (extra && esm_typeof_typeof(extra) === 'object' && ! /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(extra)) {
|
|
58415
58922
|
assertExtra = extra;
|
|
58416
58923
|
} else {
|
|
58417
58924
|
assertExtra.right = extra;
|
|
@@ -58661,7 +59168,7 @@ function TabNavList(props, ref) {
|
|
|
58661
59168
|
}, {
|
|
58662
59169
|
width: addWidth,
|
|
58663
59170
|
height: addHeight
|
|
58664
|
-
},
|
|
59171
|
+
}, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
58665
59172
|
tabs: tabs
|
|
58666
59173
|
})),
|
|
58667
59174
|
_useVisibleRange2 = slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
@@ -58753,7 +59260,7 @@ function TabNavList(props, ref) {
|
|
|
58753
59260
|
|
|
58754
59261
|
var startHiddenTabs = tabs.slice(0, visibleStart);
|
|
58755
59262
|
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
|
58756
|
-
var hiddenTabs = [].concat(
|
|
59263
|
+
var hiddenTabs = [].concat(toConsumableArray_toConsumableArray(startHiddenTabs), toConsumableArray_toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
58757
59264
|
|
|
58758
59265
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
58759
59266
|
_useState16 = slicedToArray_slicedToArray(_useState15, 2),
|
|
@@ -58839,7 +59346,7 @@ function TabNavList(props, ref) {
|
|
|
58839
59346
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
58840
59347
|
onResize: onListHolderResize
|
|
58841
59348
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
58842
|
-
className: classnames_default()(wrapPrefix, (_classNames = {},
|
|
59349
|
+
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)),
|
|
58843
59350
|
ref: tabsWrapperRef
|
|
58844
59351
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
58845
59352
|
onResize: onListHolderResize
|
|
@@ -58855,13 +59362,13 @@ function TabNavList(props, ref) {
|
|
|
58855
59362
|
prefixCls: prefixCls,
|
|
58856
59363
|
locale: locale,
|
|
58857
59364
|
editable: editable,
|
|
58858
|
-
style:
|
|
59365
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {
|
|
58859
59366
|
visibility: hasDropdown ? 'hidden' : null
|
|
58860
59367
|
})
|
|
58861
59368
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
58862
|
-
className: classnames_default()("".concat(prefixCls, "-ink-bar"),
|
|
59369
|
+
className: classnames_default()("".concat(prefixCls, "-ink-bar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
|
58863
59370
|
style: inkStyle
|
|
58864
|
-
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode,
|
|
59371
|
+
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode, esm_extends_extends({}, props, {
|
|
58865
59372
|
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
|
58866
59373
|
ref: operationsRef,
|
|
58867
59374
|
prefixCls: prefixCls,
|
|
@@ -58901,8 +59408,8 @@ function TabPanelList(_ref) {
|
|
|
58901
59408
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
58902
59409
|
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
|
58903
59410
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
58904
|
-
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition),
|
|
58905
|
-
style: activeIndex && tabPaneAnimated ?
|
|
59411
|
+
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), defineProperty_defineProperty({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated)),
|
|
59412
|
+
style: activeIndex && tabPaneAnimated ? defineProperty_defineProperty({}, rtl ? 'marginRight' : 'marginLeft', "-".concat(activeIndex, "00%")) : null
|
|
58906
59413
|
}, tabs.map(function (tab) {
|
|
58907
59414
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(tab.node, {
|
|
58908
59415
|
key: tab.key,
|
|
@@ -58962,7 +59469,7 @@ function TabPane(_ref) {
|
|
|
58962
59469
|
tabIndex: active ? 0 : -1,
|
|
58963
59470
|
"aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
|
|
58964
59471
|
"aria-hidden": !active,
|
|
58965
|
-
style:
|
|
59472
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedStyle), style),
|
|
58966
59473
|
className: classnames_default()("".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), className)
|
|
58967
59474
|
}, (active || visited || forceRender) && children);
|
|
58968
59475
|
}
|
|
@@ -59002,7 +59509,7 @@ function parseTabList(children) {
|
|
|
59002
59509
|
return toArray(children).map(function (node) {
|
|
59003
59510
|
if ( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(node)) {
|
|
59004
59511
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
59005
|
-
return
|
|
59512
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
59006
59513
|
key: key
|
|
59007
59514
|
}, node.props), {}, {
|
|
59008
59515
|
node: node
|
|
@@ -59045,7 +59552,7 @@ function Tabs(_ref, ref) {
|
|
|
59045
59552
|
onChange = _ref.onChange,
|
|
59046
59553
|
onTabClick = _ref.onTabClick,
|
|
59047
59554
|
onTabScroll = _ref.onTabScroll,
|
|
59048
|
-
restProps =
|
|
59555
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, Tabs_excluded);
|
|
59049
59556
|
|
|
59050
59557
|
var tabs = parseTabList(children);
|
|
59051
59558
|
var rtl = direction === 'rtl';
|
|
@@ -59062,10 +59569,10 @@ function Tabs(_ref, ref) {
|
|
|
59062
59569
|
tabPane: true
|
|
59063
59570
|
};
|
|
59064
59571
|
} else {
|
|
59065
|
-
mergedAnimated =
|
|
59572
|
+
mergedAnimated = objectSpread2_objectSpread2({
|
|
59066
59573
|
inkBar: true,
|
|
59067
59574
|
tabPane: false
|
|
59068
|
-
},
|
|
59575
|
+
}, esm_typeof_typeof(animated) === 'object' ? animated : {});
|
|
59069
59576
|
} // ======================== Mobile ========================
|
|
59070
59577
|
|
|
59071
59578
|
|
|
@@ -59160,7 +59667,7 @@ function Tabs(_ref, ref) {
|
|
|
59160
59667
|
};
|
|
59161
59668
|
var tabNavBar;
|
|
59162
59669
|
|
|
59163
|
-
var tabNavBarProps =
|
|
59670
|
+
var tabNavBarProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, sharedProps), {}, {
|
|
59164
59671
|
editable: editable,
|
|
59165
59672
|
locale: locale,
|
|
59166
59673
|
moreIcon: moreIcon,
|
|
@@ -59184,11 +59691,11 @@ function Tabs(_ref, ref) {
|
|
|
59184
59691
|
tabs: tabs,
|
|
59185
59692
|
prefixCls: prefixCls
|
|
59186
59693
|
}
|
|
59187
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
59694
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
59188
59695
|
ref: ref,
|
|
59189
59696
|
id: id,
|
|
59190
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {},
|
|
59191
|
-
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList,
|
|
59697
|
+
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)
|
|
59698
|
+
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList, esm_extends_extends({
|
|
59192
59699
|
destroyInactiveTabPane: destroyInactiveTabPane
|
|
59193
59700
|
}, sharedProps, {
|
|
59194
59701
|
animated: mergedAnimated
|
|
@@ -59274,11 +59781,11 @@ function tabs_Tabs(_a) {
|
|
|
59274
59781
|
var _classNames;
|
|
59275
59782
|
|
|
59276
59783
|
var size = propSize !== undefined ? propSize : contextSize;
|
|
59277
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es,
|
|
59784
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es, esm_extends_extends({
|
|
59278
59785
|
direction: direction,
|
|
59279
59786
|
moreTransitionName: "".concat(rootPrefixCls, "-slide-up")
|
|
59280
59787
|
}, props, {
|
|
59281
|
-
className: classnames_default()((_classNames = {},
|
|
59788
|
+
className: classnames_default()((_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(size), size), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-card"), ['card', 'editable-card'].includes(type)), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-editable-card"), type === 'editable-card'), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-centered"), centered), _classNames), className),
|
|
59282
59789
|
editable: editable,
|
|
59283
59790
|
moreIcon: moreIcon,
|
|
59284
59791
|
prefixCls: prefixCls
|
|
@@ -59386,7 +59893,7 @@ var Pager = function Pager(props) {
|
|
|
59386
59893
|
var _classNames;
|
|
59387
59894
|
|
|
59388
59895
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
59389
|
-
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {},
|
|
59896
|
+
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));
|
|
59390
59897
|
|
|
59391
59898
|
var handleClick = function handleClick() {
|
|
59392
59899
|
props.onClick(props.page);
|
|
@@ -59431,14 +59938,14 @@ var Pager = function Pager(props) {
|
|
|
59431
59938
|
|
|
59432
59939
|
|
|
59433
59940
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
59434
|
-
|
|
59941
|
+
inherits_inherits(Options, _React$Component);
|
|
59435
59942
|
|
|
59436
|
-
var _super =
|
|
59943
|
+
var _super = createSuper_createSuper(Options);
|
|
59437
59944
|
|
|
59438
59945
|
function Options() {
|
|
59439
59946
|
var _this;
|
|
59440
59947
|
|
|
59441
|
-
|
|
59948
|
+
classCallCheck_classCallCheck(this, Options);
|
|
59442
59949
|
|
|
59443
59950
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59444
59951
|
args[_key] = arguments[_key];
|
|
@@ -59504,7 +60011,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
59504
60011
|
return _this;
|
|
59505
60012
|
}
|
|
59506
60013
|
|
|
59507
|
-
|
|
60014
|
+
createClass_createClass(Options, [{
|
|
59508
60015
|
key: "getValidValue",
|
|
59509
60016
|
value: function getValidValue() {
|
|
59510
60017
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -59661,14 +60168,14 @@ function calculatePage(p, state, props) {
|
|
|
59661
60168
|
}
|
|
59662
60169
|
|
|
59663
60170
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
59664
|
-
|
|
60171
|
+
inherits_inherits(Pagination, _React$Component);
|
|
59665
60172
|
|
|
59666
|
-
var _super =
|
|
60173
|
+
var _super = createSuper_createSuper(Pagination);
|
|
59667
60174
|
|
|
59668
60175
|
function Pagination(props) {
|
|
59669
60176
|
var _this;
|
|
59670
60177
|
|
|
59671
|
-
|
|
60178
|
+
classCallCheck_classCallCheck(this, Pagination);
|
|
59672
60179
|
|
|
59673
60180
|
_this = _super.call(this, props);
|
|
59674
60181
|
|
|
@@ -59689,7 +60196,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
59689
60196
|
});
|
|
59690
60197
|
|
|
59691
60198
|
if (typeof icon === 'function') {
|
|
59692
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon,
|
|
60199
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon, objectSpread2_objectSpread2({}, _this.props));
|
|
59693
60200
|
}
|
|
59694
60201
|
|
|
59695
60202
|
return iconNode;
|
|
@@ -59911,7 +60418,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
59911
60418
|
return _this;
|
|
59912
60419
|
}
|
|
59913
60420
|
|
|
59914
|
-
|
|
60421
|
+
createClass_createClass(Pagination, [{
|
|
59915
60422
|
key: "componentDidUpdate",
|
|
59916
60423
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
59917
60424
|
// When current page change, fix focused style of prev item
|
|
@@ -60059,8 +60566,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60059
60566
|
}, gotoButton);
|
|
60060
60567
|
}
|
|
60061
60568
|
|
|
60062
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60063
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"),
|
|
60569
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", esm_extends_extends({
|
|
60570
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
60064
60571
|
style: style,
|
|
60065
60572
|
ref: this.savePaginationNode
|
|
60066
60573
|
}, dataOrAriaAttributeProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
@@ -60068,7 +60575,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60068
60575
|
onClick: this.prev,
|
|
60069
60576
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60070
60577
|
onKeyPress: this.runIfEnterPrev,
|
|
60071
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60578
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
60072
60579
|
"aria-disabled": !this.hasPrev()
|
|
60073
60580
|
}, this.renderPrev(prevPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60074
60581
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
@@ -60089,7 +60596,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60089
60596
|
onClick: this.next,
|
|
60090
60597
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60091
60598
|
onKeyPress: this.runIfEnterNext,
|
|
60092
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60599
|
+
className: classnames_default()("".concat(prefixCls, "-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
60093
60600
|
"aria-disabled": !this.hasNext()
|
|
60094
60601
|
}, this.renderNext(nextPage)), gotoButton);
|
|
60095
60602
|
}
|
|
@@ -60105,7 +60612,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60105
60612
|
};
|
|
60106
60613
|
|
|
60107
60614
|
if (!allPages) {
|
|
60108
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60615
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, esm_extends_extends({}, pagerProps, {
|
|
60109
60616
|
key: "noPager",
|
|
60110
60617
|
page: 1,
|
|
60111
60618
|
className: "".concat(prefixCls, "-item-disabled")
|
|
@@ -60114,7 +60621,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60114
60621
|
|
|
60115
60622
|
for (var i = 1; i <= allPages; i += 1) {
|
|
60116
60623
|
var active = current === i;
|
|
60117
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60624
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, esm_extends_extends({}, pagerProps, {
|
|
60118
60625
|
key: i,
|
|
60119
60626
|
page: i,
|
|
60120
60627
|
active: active
|
|
@@ -60131,7 +60638,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60131
60638
|
onClick: this.jumpPrev,
|
|
60132
60639
|
tabIndex: "0",
|
|
60133
60640
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
60134
|
-
className: classnames_default()("".concat(prefixCls, "-jump-prev"),
|
|
60641
|
+
className: classnames_default()("".concat(prefixCls, "-jump-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
60135
60642
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
60136
60643
|
jumpNext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60137
60644
|
title: showTitle ? nextItemTitle : null,
|
|
@@ -60139,7 +60646,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60139
60646
|
tabIndex: "0",
|
|
60140
60647
|
onClick: this.jumpNext,
|
|
60141
60648
|
onKeyPress: this.runIfEnterJumpNext,
|
|
60142
|
-
className: classnames_default()("".concat(prefixCls, "-jump-next"),
|
|
60649
|
+
className: classnames_default()("".concat(prefixCls, "-jump-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
60143
60650
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
60144
60651
|
}
|
|
60145
60652
|
|
|
@@ -60226,8 +60733,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60226
60733
|
|
|
60227
60734
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
60228
60735
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
60229
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60230
|
-
className: classnames_default()(prefixCls, className,
|
|
60736
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", esm_extends_extends({
|
|
60737
|
+
className: classnames_default()(prefixCls, className, defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), disabled)),
|
|
60231
60738
|
style: style,
|
|
60232
60739
|
unselectable: "unselectable",
|
|
60233
60740
|
ref: this.savePaginationNode
|
|
@@ -60236,14 +60743,14 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60236
60743
|
onClick: this.prev,
|
|
60237
60744
|
tabIndex: prevDisabled ? null : 0,
|
|
60238
60745
|
onKeyPress: this.runIfEnterPrev,
|
|
60239
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60746
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
60240
60747
|
"aria-disabled": prevDisabled
|
|
60241
60748
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60242
60749
|
title: showTitle ? locale.next_page : null,
|
|
60243
60750
|
onClick: this.next,
|
|
60244
60751
|
tabIndex: nextDisabled ? null : 0,
|
|
60245
60752
|
onKeyPress: this.runIfEnterNext,
|
|
60246
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60753
|
+
className: classnames_default()("".concat(prefixCls, "-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
60247
60754
|
"aria-disabled": nextDisabled
|
|
60248
60755
|
}, this.renderNext(nextPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Options, {
|
|
60249
60756
|
disabled: disabled,
|
|
@@ -60321,7 +60828,7 @@ Pagination.defaultProps = {
|
|
|
60321
60828
|
|
|
60322
60829
|
|
|
60323
60830
|
var MiniSelect = function MiniSelect(props) {
|
|
60324
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select,
|
|
60831
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select, esm_extends_extends({
|
|
60325
60832
|
size: "small"
|
|
60326
60833
|
}, props));
|
|
60327
60834
|
};
|
|
@@ -60382,7 +60889,7 @@ var responsiveObserve = {
|
|
|
60382
60889
|
var listener = function listener(_ref) {
|
|
60383
60890
|
var matches = _ref.matches;
|
|
60384
60891
|
|
|
60385
|
-
_this2.dispatch(
|
|
60892
|
+
_this2.dispatch(esm_extends_extends(esm_extends_extends({}, screens), defineProperty_defineProperty({}, screen, matches)));
|
|
60386
60893
|
};
|
|
60387
60894
|
|
|
60388
60895
|
var mql = window.matchMedia(matchMediaQuery);
|
|
@@ -60523,13 +61030,13 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
60523
61030
|
var renderPagination = function renderPagination(contextLocale) {
|
|
60524
61031
|
var _classNames;
|
|
60525
61032
|
|
|
60526
|
-
var locale =
|
|
61033
|
+
var locale = esm_extends_extends(esm_extends_extends({}, contextLocale), customLocale);
|
|
60527
61034
|
|
|
60528
61035
|
var isSmall = size === 'small' || !!(xs && !size && restProps.responsive);
|
|
60529
61036
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
60530
61037
|
var extendedClassName = classnames_default()((_classNames = {
|
|
60531
61038
|
mini: isSmall
|
|
60532
|
-
},
|
|
61039
|
+
}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames, "minimalistic", minimalistic), _classNames), className); // 文本式分页
|
|
60533
61040
|
|
|
60534
61041
|
if (minimalistic) {
|
|
60535
61042
|
paginationProps.itemRender = function (_current, type, originalElement) {
|
|
@@ -60566,7 +61073,7 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
60566
61073
|
paginationProps.showQuickJumper = showQuickJumper;
|
|
60567
61074
|
}
|
|
60568
61075
|
|
|
60569
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination,
|
|
61076
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination, esm_extends_extends({}, paginationProps, getIconsProps(), restProps, {
|
|
60570
61077
|
prefixCls: prefixCls,
|
|
60571
61078
|
selectPrefixCls: selectPrefixCls,
|
|
60572
61079
|
className: extendedClassName,
|
|
@@ -60938,10 +61445,10 @@ function Action(_ref) {
|
|
|
60938
61445
|
setCurAction = _useState2[1];
|
|
60939
61446
|
|
|
60940
61447
|
var handleBtnClick = /*#__PURE__*/function () {
|
|
60941
|
-
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/
|
|
61448
|
+
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(e) {
|
|
60942
61449
|
var now, begin, _error$response, _error$response$data, _error$response2, _error$response2$data;
|
|
60943
61450
|
|
|
60944
|
-
return
|
|
61451
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
60945
61452
|
while (1) {
|
|
60946
61453
|
switch (_context.prev = _context.next) {
|
|
60947
61454
|
case 0:
|
|
@@ -61138,8 +61645,8 @@ function ListItem(_ref) {
|
|
|
61138
61645
|
status = data.status;
|
|
61139
61646
|
|
|
61140
61647
|
var handleDetailClick = /*#__PURE__*/function () {
|
|
61141
|
-
var _ref2 = ListItem_asyncToGenerator( /*#__PURE__*/
|
|
61142
|
-
return
|
|
61648
|
+
var _ref2 = ListItem_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
61649
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
61143
61650
|
while (1) {
|
|
61144
61651
|
switch (_context.prev = _context.next) {
|
|
61145
61652
|
case 0:
|