@x-edu/live-player 0.0.17 → 0.0.18
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.
|
@@ -25818,7 +25818,7 @@ module.exports = __webpack_require__(5666);
|
|
|
25818
25818
|
/***/ 3006:
|
|
25819
25819
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25820
25820
|
|
|
25821
|
-
var _regeneratorRuntime = __webpack_require__(
|
|
25821
|
+
var _regeneratorRuntime = __webpack_require__(5273);
|
|
25822
25822
|
|
|
25823
25823
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
25824
25824
|
|
|
@@ -29995,6 +29995,9 @@ var parseAdapter = function parseAdapter(option, dayjsClass) {
|
|
|
29995
29995
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
29996
29996
|
var regenerator = __webpack_require__(7757);
|
|
29997
29997
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
29998
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
29999
|
+
var runtime_regenerator = __webpack_require__(5273);
|
|
30000
|
+
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
29998
30001
|
// EXTERNAL MODULE: ./node_modules/axios/index.js
|
|
29999
30002
|
var axios = __webpack_require__(9669);
|
|
30000
30003
|
var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
|
|
@@ -30804,7 +30807,7 @@ function getServiceConfig(_x) {
|
|
|
30804
30807
|
}
|
|
30805
30808
|
|
|
30806
30809
|
function _getServiceConfig() {
|
|
30807
|
-
_getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/
|
|
30810
|
+
_getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(serviceName) {
|
|
30808
30811
|
var sdpAppId,
|
|
30809
30812
|
env,
|
|
30810
30813
|
key,
|
|
@@ -30816,7 +30819,7 @@ function _getServiceConfig() {
|
|
|
30816
30819
|
result,
|
|
30817
30820
|
ttl,
|
|
30818
30821
|
_args = arguments;
|
|
30819
|
-
return
|
|
30822
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
30820
30823
|
while (1) {
|
|
30821
30824
|
switch (_context.prev = _context.next) {
|
|
30822
30825
|
case 0:
|
|
@@ -31080,13 +31083,13 @@ function withOnce(fn) {
|
|
|
31080
31083
|
var lockPool = createLockPool();
|
|
31081
31084
|
|
|
31082
31085
|
var newFn = /*#__PURE__*/function () {
|
|
31083
|
-
var _ref3 = hof_asyncToGenerator( /*#__PURE__*/
|
|
31086
|
+
var _ref3 = hof_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2() {
|
|
31084
31087
|
var key,
|
|
31085
31088
|
lock,
|
|
31086
31089
|
lockId,
|
|
31087
31090
|
result,
|
|
31088
31091
|
_args2 = arguments;
|
|
31089
|
-
return
|
|
31092
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
31090
31093
|
while (1) {
|
|
31091
31094
|
switch (_context2.prev = _context2.next) {
|
|
31092
31095
|
case 0:
|
|
@@ -31592,9 +31595,9 @@ function _getLiveAPICache() {
|
|
|
31592
31595
|
}
|
|
31593
31596
|
|
|
31594
31597
|
function _getLiveAPICache2() {
|
|
31595
|
-
_getLiveAPICache2 = live_asyncToGenerator( /*#__PURE__*/
|
|
31598
|
+
_getLiveAPICache2 = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee11() {
|
|
31596
31599
|
var url, result, serverTime;
|
|
31597
|
-
return
|
|
31600
|
+
return runtime_regenerator_default().wrap(function _callee11$(_context11) {
|
|
31598
31601
|
while (1) {
|
|
31599
31602
|
switch (_context11.prev = _context11.next) {
|
|
31600
31603
|
case 0:
|
|
@@ -31634,9 +31637,9 @@ function getOpenClassWithCache(_x11) {
|
|
|
31634
31637
|
} // 公开直播详情变化部分,失败要降级处理
|
|
31635
31638
|
|
|
31636
31639
|
function _getOpenClassWithCache() {
|
|
31637
|
-
_getOpenClassWithCache = live_asyncToGenerator( /*#__PURE__*/
|
|
31640
|
+
_getOpenClassWithCache = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee12(url) {
|
|
31638
31641
|
var fullUrl, cacheInfo, cacheData, result, serverTime;
|
|
31639
|
-
return
|
|
31642
|
+
return runtime_regenerator_default().wrap(function _callee12$(_context12) {
|
|
31640
31643
|
while (1) {
|
|
31641
31644
|
switch (_context12.prev = _context12.next) {
|
|
31642
31645
|
case 0:
|
|
@@ -31708,9 +31711,9 @@ function getOpenClassLiveSimple(_x12) {
|
|
|
31708
31711
|
} // 公开直播详情拆分成两个接口
|
|
31709
31712
|
|
|
31710
31713
|
function _getOpenClassLiveSimple() {
|
|
31711
|
-
_getOpenClassLiveSimple = live_asyncToGenerator( /*#__PURE__*/
|
|
31714
|
+
_getOpenClassLiveSimple = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee13(liveInfo) {
|
|
31712
31715
|
var url, data;
|
|
31713
|
-
return
|
|
31716
|
+
return runtime_regenerator_default().wrap(function _callee13$(_context13) {
|
|
31714
31717
|
while (1) {
|
|
31715
31718
|
switch (_context13.prev = _context13.next) {
|
|
31716
31719
|
case 0:
|
|
@@ -31749,9 +31752,9 @@ function getOpenClassLiveBase(_x13) {
|
|
|
31749
31752
|
} // 公开实时直播-发起直播-公共直播邀请页使用,适配为班级直播数据
|
|
31750
31753
|
|
|
31751
31754
|
function _getOpenClassLiveBase() {
|
|
31752
|
-
_getOpenClassLiveBase = live_asyncToGenerator( /*#__PURE__*/
|
|
31755
|
+
_getOpenClassLiveBase = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee14(id) {
|
|
31753
31756
|
var url, data, subType, dynamicInfo;
|
|
31754
|
-
return
|
|
31757
|
+
return runtime_regenerator_default().wrap(function _callee14$(_context14) {
|
|
31755
31758
|
while (1) {
|
|
31756
31759
|
switch (_context14.prev = _context14.next) {
|
|
31757
31760
|
case 0:
|
|
@@ -31831,9 +31834,9 @@ function getOpenClassLive(_x15) {
|
|
|
31831
31834
|
}
|
|
31832
31835
|
|
|
31833
31836
|
function _getOpenClassLive() {
|
|
31834
|
-
_getOpenClassLive = live_asyncToGenerator( /*#__PURE__*/
|
|
31837
|
+
_getOpenClassLive = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee16(id) {
|
|
31835
31838
|
var serviceConfig, liveCloseLogin, data;
|
|
31836
|
-
return
|
|
31839
|
+
return runtime_regenerator_default().wrap(function _callee16$(_context16) {
|
|
31837
31840
|
while (1) {
|
|
31838
31841
|
switch (_context16.prev = _context16.next) {
|
|
31839
31842
|
case 0:
|
|
@@ -31946,9 +31949,9 @@ function OpenLiveSearchFront(_x18) {
|
|
|
31946
31949
|
*/
|
|
31947
31950
|
|
|
31948
31951
|
function _OpenLiveSearchFront() {
|
|
31949
|
-
_OpenLiveSearchFront = live_asyncToGenerator( /*#__PURE__*/
|
|
31952
|
+
_OpenLiveSearchFront = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee19(_ref2) {
|
|
31950
31953
|
var status, scopeType, scopeId, offset, limit, url, response;
|
|
31951
|
-
return
|
|
31954
|
+
return runtime_regenerator_default().wrap(function _callee19$(_context19) {
|
|
31952
31955
|
while (1) {
|
|
31953
31956
|
switch (_context19.prev = _context19.next) {
|
|
31954
31957
|
case 0:
|
|
@@ -31999,9 +32002,9 @@ function getSubscription() {
|
|
|
31999
32002
|
*/
|
|
32000
32003
|
|
|
32001
32004
|
function _getSubscription() {
|
|
32002
|
-
_getSubscription = live_asyncToGenerator( /*#__PURE__*/
|
|
32005
|
+
_getSubscription = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee20() {
|
|
32003
32006
|
var url, response;
|
|
32004
|
-
return
|
|
32007
|
+
return runtime_regenerator_default().wrap(function _callee20$(_context20) {
|
|
32005
32008
|
while (1) {
|
|
32006
32009
|
switch (_context20.prev = _context20.next) {
|
|
32007
32010
|
case 0:
|
|
@@ -32034,9 +32037,9 @@ function openLiveSubscribe(_x19) {
|
|
|
32034
32037
|
}
|
|
32035
32038
|
|
|
32036
32039
|
function _openLiveSubscribe() {
|
|
32037
|
-
_openLiveSubscribe = live_asyncToGenerator( /*#__PURE__*/
|
|
32040
|
+
_openLiveSubscribe = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee21(_ref3) {
|
|
32038
32041
|
var liveId, url, response;
|
|
32039
|
-
return
|
|
32042
|
+
return runtime_regenerator_default().wrap(function _callee21$(_context21) {
|
|
32040
32043
|
while (1) {
|
|
32041
32044
|
switch (_context21.prev = _context21.next) {
|
|
32042
32045
|
case 0:
|
|
@@ -32078,9 +32081,9 @@ function imBroadcasts_asyncToGenerator(fn) { return function () { var self = thi
|
|
|
32078
32081
|
// 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
|
|
32079
32082
|
|
|
32080
32083
|
var getIMLiveInfo = /*#__PURE__*/function () {
|
|
32081
|
-
var _ref = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
32084
|
+
var _ref = imBroadcasts_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(roomId) {
|
|
32082
32085
|
var url, response;
|
|
32083
|
-
return
|
|
32086
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
32084
32087
|
while (1) {
|
|
32085
32088
|
switch (_context.prev = _context.next) {
|
|
32086
32089
|
case 0:
|
|
@@ -32113,10 +32116,10 @@ var getIMLiveInfo = /*#__PURE__*/function () {
|
|
|
32113
32116
|
*/
|
|
32114
32117
|
|
|
32115
32118
|
var getGuestIMLiveInfoStatic = /*#__PURE__*/function () {
|
|
32116
|
-
var _ref2 = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
32119
|
+
var _ref2 = imBroadcasts_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(bId) {
|
|
32117
32120
|
var _yield$imBroadcastsSt, data;
|
|
32118
32121
|
|
|
32119
|
-
return
|
|
32122
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
32120
32123
|
while (1) {
|
|
32121
32124
|
switch (_context2.prev = _context2.next) {
|
|
32122
32125
|
case 0:
|
|
@@ -32143,10 +32146,10 @@ var getGuestIMLiveInfoStatic = /*#__PURE__*/function () {
|
|
|
32143
32146
|
// 访客获取直播接口
|
|
32144
32147
|
|
|
32145
32148
|
var getGuestIMLiveInfo = /*#__PURE__*/function () {
|
|
32146
|
-
var _ref3 = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
32149
|
+
var _ref3 = imBroadcasts_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(bId) {
|
|
32147
32150
|
var _yield$imBroadcastsAP, data;
|
|
32148
32151
|
|
|
32149
|
-
return
|
|
32152
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
32150
32153
|
while (1) {
|
|
32151
32154
|
switch (_context3.prev = _context3.next) {
|
|
32152
32155
|
case 0:
|
|
@@ -32214,6 +32217,162 @@ var spin_style_update = injectStylesIntoStyleTag_default()(spin_style/* default
|
|
|
32214
32217
|
;// CONCATENATED MODULE: ./node_modules/@sdp.nd/fish/es/spin/style/index.js
|
|
32215
32218
|
|
|
32216
32219
|
|
|
32220
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
32221
|
+
function esm_extends_extends() {
|
|
32222
|
+
esm_extends_extends = Object.assign || function (target) {
|
|
32223
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32224
|
+
var source = arguments[i];
|
|
32225
|
+
|
|
32226
|
+
for (var key in source) {
|
|
32227
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32228
|
+
target[key] = source[key];
|
|
32229
|
+
}
|
|
32230
|
+
}
|
|
32231
|
+
}
|
|
32232
|
+
|
|
32233
|
+
return target;
|
|
32234
|
+
};
|
|
32235
|
+
|
|
32236
|
+
return esm_extends_extends.apply(this, arguments);
|
|
32237
|
+
}
|
|
32238
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
32239
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
32240
|
+
if (key in obj) {
|
|
32241
|
+
Object.defineProperty(obj, key, {
|
|
32242
|
+
value: value,
|
|
32243
|
+
enumerable: true,
|
|
32244
|
+
configurable: true,
|
|
32245
|
+
writable: true
|
|
32246
|
+
});
|
|
32247
|
+
} else {
|
|
32248
|
+
obj[key] = value;
|
|
32249
|
+
}
|
|
32250
|
+
|
|
32251
|
+
return obj;
|
|
32252
|
+
}
|
|
32253
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
32254
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
32255
|
+
if (!(instance instanceof Constructor)) {
|
|
32256
|
+
throw new TypeError("Cannot call a class as a function");
|
|
32257
|
+
}
|
|
32258
|
+
}
|
|
32259
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
32260
|
+
function createClass_defineProperties(target, props) {
|
|
32261
|
+
for (var i = 0; i < props.length; i++) {
|
|
32262
|
+
var descriptor = props[i];
|
|
32263
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
32264
|
+
descriptor.configurable = true;
|
|
32265
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
32266
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
32267
|
+
}
|
|
32268
|
+
}
|
|
32269
|
+
|
|
32270
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
32271
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
32272
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
32273
|
+
return Constructor;
|
|
32274
|
+
}
|
|
32275
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
32276
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
32277
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
32278
|
+
o.__proto__ = p;
|
|
32279
|
+
return o;
|
|
32280
|
+
};
|
|
32281
|
+
|
|
32282
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
32283
|
+
}
|
|
32284
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
32285
|
+
|
|
32286
|
+
function inherits_inherits(subClass, superClass) {
|
|
32287
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
32288
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
32289
|
+
}
|
|
32290
|
+
|
|
32291
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
32292
|
+
constructor: {
|
|
32293
|
+
value: subClass,
|
|
32294
|
+
writable: true,
|
|
32295
|
+
configurable: true
|
|
32296
|
+
}
|
|
32297
|
+
});
|
|
32298
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
32299
|
+
}
|
|
32300
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
32301
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
32302
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
32303
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
32304
|
+
};
|
|
32305
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
32306
|
+
}
|
|
32307
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
32308
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
32309
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
32310
|
+
if (Reflect.construct.sham) return false;
|
|
32311
|
+
if (typeof Proxy === "function") return true;
|
|
32312
|
+
|
|
32313
|
+
try {
|
|
32314
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
32315
|
+
return true;
|
|
32316
|
+
} catch (e) {
|
|
32317
|
+
return false;
|
|
32318
|
+
}
|
|
32319
|
+
}
|
|
32320
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
32321
|
+
function esm_typeof_typeof(obj) {
|
|
32322
|
+
"@babel/helpers - typeof";
|
|
32323
|
+
|
|
32324
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
32325
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
32326
|
+
return typeof obj;
|
|
32327
|
+
};
|
|
32328
|
+
} else {
|
|
32329
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
32330
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
32331
|
+
};
|
|
32332
|
+
}
|
|
32333
|
+
|
|
32334
|
+
return esm_typeof_typeof(obj);
|
|
32335
|
+
}
|
|
32336
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
32337
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
32338
|
+
if (self === void 0) {
|
|
32339
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
32340
|
+
}
|
|
32341
|
+
|
|
32342
|
+
return self;
|
|
32343
|
+
}
|
|
32344
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
32345
|
+
|
|
32346
|
+
|
|
32347
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
32348
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
32349
|
+
return call;
|
|
32350
|
+
} else if (call !== void 0) {
|
|
32351
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
32352
|
+
}
|
|
32353
|
+
|
|
32354
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
32355
|
+
}
|
|
32356
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
32357
|
+
|
|
32358
|
+
|
|
32359
|
+
|
|
32360
|
+
function createSuper_createSuper(Derived) {
|
|
32361
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
32362
|
+
return function _createSuperInternal() {
|
|
32363
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
32364
|
+
result;
|
|
32365
|
+
|
|
32366
|
+
if (hasNativeReflectConstruct) {
|
|
32367
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
32368
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
32369
|
+
} else {
|
|
32370
|
+
result = Super.apply(this, arguments);
|
|
32371
|
+
}
|
|
32372
|
+
|
|
32373
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
32374
|
+
};
|
|
32375
|
+
}
|
|
32217
32376
|
// EXTERNAL MODULE: ./node_modules/lodash/debounce.js
|
|
32218
32377
|
var debounce = __webpack_require__(3279);
|
|
32219
32378
|
var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce);
|
|
@@ -32322,14 +32481,14 @@ function shouldDelay(spinning, delay) {
|
|
|
32322
32481
|
}
|
|
32323
32482
|
|
|
32324
32483
|
var Spin = /*#__PURE__*/function (_React$Component) {
|
|
32325
|
-
|
|
32484
|
+
inherits_inherits(Spin, _React$Component);
|
|
32326
32485
|
|
|
32327
|
-
var _super =
|
|
32486
|
+
var _super = createSuper_createSuper(Spin);
|
|
32328
32487
|
|
|
32329
32488
|
function Spin(props) {
|
|
32330
32489
|
var _this;
|
|
32331
32490
|
|
|
32332
|
-
|
|
32491
|
+
classCallCheck_classCallCheck(this, Spin);
|
|
32333
32492
|
|
|
32334
32493
|
_this = _super.call(this, props);
|
|
32335
32494
|
|
|
@@ -32372,10 +32531,10 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
32372
32531
|
|
|
32373
32532
|
var spinning = _this.state.spinning;
|
|
32374
32533
|
var prefixCls = getPrefixCls('spin', customizePrefixCls);
|
|
32375
|
-
var spinClassName = classnames_default()(prefixCls, (_classNames = {},
|
|
32534
|
+
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
|
|
32376
32535
|
|
|
32377
32536
|
var divProps = omit(restProps, ['spinning', 'delay', 'indicator']);
|
|
32378
|
-
var spinElement = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
32537
|
+
var spinElement = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, divProps, {
|
|
32379
32538
|
style: style,
|
|
32380
32539
|
className: spinClassName
|
|
32381
32540
|
}), renderIndicator(prefixCls, _this.props), tip ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -32383,8 +32542,8 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
32383
32542
|
}, tip) : null);
|
|
32384
32543
|
|
|
32385
32544
|
if (_this.isNestedPattern()) {
|
|
32386
|
-
var containerClassName = classnames_default()("".concat(prefixCls, "-container"),
|
|
32387
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
32545
|
+
var containerClassName = classnames_default()("".concat(prefixCls, "-container"), defineProperty_defineProperty({}, "".concat(prefixCls, "-blur"), spinning));
|
|
32546
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, divProps, {
|
|
32388
32547
|
className: classnames_default()("".concat(prefixCls, "-nested-loading"), wrapperClassName)
|
|
32389
32548
|
}), spinning && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
32390
32549
|
key: "loading"
|
|
@@ -32410,7 +32569,7 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
32410
32569
|
return _this;
|
|
32411
32570
|
}
|
|
32412
32571
|
|
|
32413
|
-
|
|
32572
|
+
createClass_createClass(Spin, [{
|
|
32414
32573
|
key: "componentDidMount",
|
|
32415
32574
|
value: function componentDidMount() {
|
|
32416
32575
|
this.updateSpinning();
|
|
@@ -32650,14 +32809,14 @@ var videoCdnPrefix = '//gcdncs.101.com/v0.1/static/share/fish/videoplayer';
|
|
|
32650
32809
|
var defaultVideoUrl = getVideoUrl(videoCdnPrefix, video_version);
|
|
32651
32810
|
|
|
32652
32811
|
var Video = /*#__PURE__*/function (_React$Component) {
|
|
32653
|
-
|
|
32812
|
+
inherits_inherits(Video, _React$Component);
|
|
32654
32813
|
|
|
32655
|
-
var _super =
|
|
32814
|
+
var _super = createSuper_createSuper(Video);
|
|
32656
32815
|
|
|
32657
32816
|
function Video() {
|
|
32658
32817
|
var _this;
|
|
32659
32818
|
|
|
32660
|
-
|
|
32819
|
+
classCallCheck_classCallCheck(this, Video);
|
|
32661
32820
|
|
|
32662
32821
|
_this = _super.apply(this, arguments);
|
|
32663
32822
|
_this.videoUrl = {}; // eslint-disable-next-line class-methods-use-this
|
|
@@ -32670,12 +32829,12 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
32670
32829
|
csOriginUrl = getVideoUrl(cdnPrefix, video_version);
|
|
32671
32830
|
}
|
|
32672
32831
|
|
|
32673
|
-
return
|
|
32832
|
+
return esm_extends_extends(esm_extends_extends({}, csOriginUrl), Video.url);
|
|
32674
32833
|
};
|
|
32675
32834
|
|
|
32676
32835
|
_this.loadVideoPlayer = function () {
|
|
32677
|
-
return __awaiter(
|
|
32678
|
-
return
|
|
32836
|
+
return __awaiter(assertThisInitialized_assertThisInitialized(_this), void 0, void 0, /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
32837
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
32679
32838
|
while (1) {
|
|
32680
32839
|
switch (_context.prev = _context.next) {
|
|
32681
32840
|
case 0:
|
|
@@ -32725,7 +32884,7 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
32725
32884
|
return _this;
|
|
32726
32885
|
}
|
|
32727
32886
|
|
|
32728
|
-
|
|
32887
|
+
createClass_createClass(Video, [{
|
|
32729
32888
|
key: "componentDidMount",
|
|
32730
32889
|
value: function componentDidMount() {
|
|
32731
32890
|
var _this2 = this;
|
|
@@ -33069,9 +33228,9 @@ function isSourceReady(_x) {
|
|
|
33069
33228
|
}
|
|
33070
33229
|
|
|
33071
33230
|
function _isSourceReady() {
|
|
33072
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33231
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(liveInfo) {
|
|
33073
33232
|
var newLiveInfo;
|
|
33074
|
-
return
|
|
33233
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33075
33234
|
while (1) {
|
|
33076
33235
|
switch (_context.prev = _context.next) {
|
|
33077
33236
|
case 0:
|
|
@@ -33248,12 +33407,12 @@ function usePullSource(_ref) {
|
|
|
33248
33407
|
}
|
|
33249
33408
|
|
|
33250
33409
|
function _checkLiveReadyInterval() {
|
|
33251
|
-
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33410
|
+
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
33252
33411
|
var i,
|
|
33253
33412
|
liveStatus,
|
|
33254
33413
|
isSourceReady,
|
|
33255
33414
|
_args = arguments;
|
|
33256
|
-
return
|
|
33415
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33257
33416
|
while (1) {
|
|
33258
33417
|
switch (_context.prev = _context.next) {
|
|
33259
33418
|
case 0:
|
|
@@ -33339,8 +33498,8 @@ function checkSourceReady(_x) {
|
|
|
33339
33498
|
}
|
|
33340
33499
|
|
|
33341
33500
|
function _checkSourceReady() {
|
|
33342
|
-
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33343
|
-
return
|
|
33501
|
+
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(url) {
|
|
33502
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
33344
33503
|
while (1) {
|
|
33345
33504
|
switch (_context2.prev = _context2.next) {
|
|
33346
33505
|
case 0:
|
|
@@ -33373,9 +33532,9 @@ function getLiveNewStatus(_x2) {
|
|
|
33373
33532
|
}
|
|
33374
33533
|
|
|
33375
33534
|
function _getLiveNewStatus() {
|
|
33376
|
-
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33535
|
+
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(liveInfo) {
|
|
33377
33536
|
var newLiveInfo;
|
|
33378
|
-
return
|
|
33537
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
33379
33538
|
while (1) {
|
|
33380
33539
|
switch (_context3.prev = _context3.next) {
|
|
33381
33540
|
case 0:
|
|
@@ -33899,8 +34058,8 @@ function AliPlayer(_ref) {
|
|
|
33899
34058
|
var aliPlayer;
|
|
33900
34059
|
|
|
33901
34060
|
var init = /*#__PURE__*/function () {
|
|
33902
|
-
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/
|
|
33903
|
-
return
|
|
34061
|
+
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
34062
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33904
34063
|
while (1) {
|
|
33905
34064
|
switch (_context.prev = _context.next) {
|
|
33906
34065
|
case 0:
|
|
@@ -34059,140 +34218,37 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
34059
34218
|
|
|
34060
34219
|
return _arr;
|
|
34061
34220
|
}
|
|
34062
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/
|
|
34063
|
-
function
|
|
34064
|
-
|
|
34065
|
-
}
|
|
34066
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
34067
|
-
|
|
34068
|
-
|
|
34069
|
-
|
|
34070
|
-
|
|
34071
|
-
function slicedToArray_slicedToArray(arr, i) {
|
|
34072
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34073
|
-
}
|
|
34074
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34075
|
-
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
34076
|
-
if (!(instance instanceof Constructor)) {
|
|
34077
|
-
throw new TypeError("Cannot call a class as a function");
|
|
34078
|
-
}
|
|
34079
|
-
}
|
|
34080
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
34081
|
-
function createClass_defineProperties(target, props) {
|
|
34082
|
-
for (var i = 0; i < props.length; i++) {
|
|
34083
|
-
var descriptor = props[i];
|
|
34084
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
34085
|
-
descriptor.configurable = true;
|
|
34086
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34087
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34088
|
-
}
|
|
34089
|
-
}
|
|
34090
|
-
|
|
34091
|
-
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
34092
|
-
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
34093
|
-
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
34094
|
-
return Constructor;
|
|
34095
|
-
}
|
|
34096
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
34097
|
-
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
34098
|
-
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
34099
|
-
o.__proto__ = p;
|
|
34100
|
-
return o;
|
|
34101
|
-
};
|
|
34102
|
-
|
|
34103
|
-
return setPrototypeOf_setPrototypeOf(o, p);
|
|
34104
|
-
}
|
|
34105
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
34106
|
-
|
|
34107
|
-
function inherits_inherits(subClass, superClass) {
|
|
34108
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
34109
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
34110
|
-
}
|
|
34111
|
-
|
|
34112
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
34113
|
-
constructor: {
|
|
34114
|
-
value: subClass,
|
|
34115
|
-
writable: true,
|
|
34116
|
-
configurable: true
|
|
34117
|
-
}
|
|
34118
|
-
});
|
|
34119
|
-
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
34120
|
-
}
|
|
34121
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
34122
|
-
function getPrototypeOf_getPrototypeOf(o) {
|
|
34123
|
-
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
34124
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
34125
|
-
};
|
|
34126
|
-
return getPrototypeOf_getPrototypeOf(o);
|
|
34127
|
-
}
|
|
34128
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
34129
|
-
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
34130
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
34131
|
-
if (Reflect.construct.sham) return false;
|
|
34132
|
-
if (typeof Proxy === "function") return true;
|
|
34133
|
-
|
|
34134
|
-
try {
|
|
34135
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
34136
|
-
return true;
|
|
34137
|
-
} catch (e) {
|
|
34138
|
-
return false;
|
|
34139
|
-
}
|
|
34140
|
-
}
|
|
34141
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
34142
|
-
function esm_typeof_typeof(obj) {
|
|
34143
|
-
"@babel/helpers - typeof";
|
|
34221
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34222
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34223
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
34144
34224
|
|
|
34145
|
-
|
|
34146
|
-
|
|
34147
|
-
return typeof obj;
|
|
34148
|
-
};
|
|
34149
|
-
} else {
|
|
34150
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
34151
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
34152
|
-
};
|
|
34225
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34226
|
+
arr2[i] = arr[i];
|
|
34153
34227
|
}
|
|
34154
34228
|
|
|
34155
|
-
return
|
|
34229
|
+
return arr2;
|
|
34156
34230
|
}
|
|
34157
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/
|
|
34158
|
-
function assertThisInitialized_assertThisInitialized(self) {
|
|
34159
|
-
if (self === void 0) {
|
|
34160
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34161
|
-
}
|
|
34231
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34162
34232
|
|
|
34163
|
-
|
|
34233
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34234
|
+
if (!o) return;
|
|
34235
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34236
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34237
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34238
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34239
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34164
34240
|
}
|
|
34165
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/
|
|
34166
|
-
|
|
34167
|
-
|
|
34168
|
-
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
34169
|
-
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
34170
|
-
return call;
|
|
34171
|
-
} else if (call !== void 0) {
|
|
34172
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
34173
|
-
}
|
|
34174
|
-
|
|
34175
|
-
return assertThisInitialized_assertThisInitialized(self);
|
|
34241
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34242
|
+
function nonIterableRest_nonIterableRest() {
|
|
34243
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34176
34244
|
}
|
|
34177
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/
|
|
34245
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
34178
34246
|
|
|
34179
34247
|
|
|
34180
34248
|
|
|
34181
|
-
function createSuper_createSuper(Derived) {
|
|
34182
|
-
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
34183
|
-
return function _createSuperInternal() {
|
|
34184
|
-
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
34185
|
-
result;
|
|
34186
34249
|
|
|
34187
|
-
|
|
34188
|
-
|
|
34189
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
34190
|
-
} else {
|
|
34191
|
-
result = Super.apply(this, arguments);
|
|
34192
|
-
}
|
|
34193
|
-
|
|
34194
|
-
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
34195
|
-
};
|
|
34250
|
+
function slicedToArray_slicedToArray(arr, i) {
|
|
34251
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34196
34252
|
}
|
|
34197
34253
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34198
34254
|
var raf = function raf(callback) {
|
|
@@ -34419,16 +34475,6 @@ var cacheStyle = {};
|
|
|
34419
34475
|
}
|
|
34420
34476
|
}
|
|
34421
34477
|
});
|
|
34422
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34423
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34424
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
34425
|
-
|
|
34426
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34427
|
-
arr2[i] = arr[i];
|
|
34428
|
-
}
|
|
34429
|
-
|
|
34430
|
-
return arr2;
|
|
34431
|
-
}
|
|
34432
34478
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34433
34479
|
|
|
34434
34480
|
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
@@ -34438,16 +34484,6 @@ function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
|
34438
34484
|
function iterableToArray_iterableToArray(iter) {
|
|
34439
34485
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34440
34486
|
}
|
|
34441
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34442
|
-
|
|
34443
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34444
|
-
if (!o) return;
|
|
34445
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34446
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34447
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34448
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34449
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34450
|
-
}
|
|
34451
34487
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34452
34488
|
function nonIterableSpread_nonIterableSpread() {
|
|
34453
34489
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34850,39 +34886,6 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34850
34886
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
34851
34887
|
|
|
34852
34888
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
34853
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
34854
|
-
function esm_extends_extends() {
|
|
34855
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
34856
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
34857
|
-
var source = arguments[i];
|
|
34858
|
-
|
|
34859
|
-
for (var key in source) {
|
|
34860
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34861
|
-
target[key] = source[key];
|
|
34862
|
-
}
|
|
34863
|
-
}
|
|
34864
|
-
}
|
|
34865
|
-
|
|
34866
|
-
return target;
|
|
34867
|
-
};
|
|
34868
|
-
|
|
34869
|
-
return esm_extends_extends.apply(this, arguments);
|
|
34870
|
-
}
|
|
34871
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
34872
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
34873
|
-
if (key in obj) {
|
|
34874
|
-
Object.defineProperty(obj, key, {
|
|
34875
|
-
value: value,
|
|
34876
|
-
enumerable: true,
|
|
34877
|
-
configurable: true,
|
|
34878
|
-
writable: true
|
|
34879
|
-
});
|
|
34880
|
-
} else {
|
|
34881
|
-
obj[key] = value;
|
|
34882
|
-
}
|
|
34883
|
-
|
|
34884
|
-
return obj;
|
|
34885
|
-
}
|
|
34886
34889
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
34887
34890
|
|
|
34888
34891
|
|
|
@@ -34923,52 +34926,6 @@ function objectSpread2_objectSpread2(target) {
|
|
|
34923
34926
|
|
|
34924
34927
|
return target;
|
|
34925
34928
|
}
|
|
34926
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
34927
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
34928
|
-
if (Array.isArray(arr)) return arr;
|
|
34929
|
-
}
|
|
34930
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
34931
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
34932
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
34933
|
-
|
|
34934
|
-
if (_i == null) return;
|
|
34935
|
-
var _arr = [];
|
|
34936
|
-
var _n = true;
|
|
34937
|
-
var _d = false;
|
|
34938
|
-
|
|
34939
|
-
var _s, _e;
|
|
34940
|
-
|
|
34941
|
-
try {
|
|
34942
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
34943
|
-
_arr.push(_s.value);
|
|
34944
|
-
|
|
34945
|
-
if (i && _arr.length === i) break;
|
|
34946
|
-
}
|
|
34947
|
-
} catch (err) {
|
|
34948
|
-
_d = true;
|
|
34949
|
-
_e = err;
|
|
34950
|
-
} finally {
|
|
34951
|
-
try {
|
|
34952
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
34953
|
-
} finally {
|
|
34954
|
-
if (_d) throw _e;
|
|
34955
|
-
}
|
|
34956
|
-
}
|
|
34957
|
-
|
|
34958
|
-
return _arr;
|
|
34959
|
-
}
|
|
34960
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34961
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
34962
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34963
|
-
}
|
|
34964
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
34965
|
-
|
|
34966
|
-
|
|
34967
|
-
|
|
34968
|
-
|
|
34969
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
34970
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
34971
|
-
}
|
|
34972
34929
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
34973
34930
|
/**
|
|
34974
34931
|
* @ignore
|
|
@@ -35635,7 +35592,7 @@ function pickAttrs(props) {
|
|
|
35635
35592
|
aria: true
|
|
35636
35593
|
};
|
|
35637
35594
|
} else {
|
|
35638
|
-
mergedConfig =
|
|
35595
|
+
mergedConfig = objectSpread2_objectSpread2({}, ariaOnly);
|
|
35639
35596
|
}
|
|
35640
35597
|
|
|
35641
35598
|
var attrs = {};
|
|
@@ -35668,7 +35625,7 @@ var react_is = __webpack_require__(9864);
|
|
|
35668
35625
|
function fillRef(ref, node) {
|
|
35669
35626
|
if (typeof ref === 'function') {
|
|
35670
35627
|
ref(node);
|
|
35671
|
-
} else if (
|
|
35628
|
+
} else if (esm_typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
35672
35629
|
ref.current = node;
|
|
35673
35630
|
}
|
|
35674
35631
|
}
|
|
@@ -35778,7 +35735,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
35778
35735
|
function getTransitionName(transitionName, transitionType) {
|
|
35779
35736
|
if (!transitionName) return null;
|
|
35780
35737
|
|
|
35781
|
-
if (
|
|
35738
|
+
if (esm_typeof_typeof(transitionName) === 'object') {
|
|
35782
35739
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
35783
35740
|
return match[1].toUpperCase();
|
|
35784
35741
|
});
|
|
@@ -36071,13 +36028,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36071
36028
|
|
|
36072
36029
|
switch (status) {
|
|
36073
36030
|
case 'appear':
|
|
36074
|
-
return _ref2 = {},
|
|
36031
|
+
return _ref2 = {}, defineProperty_defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), defineProperty_defineProperty(_ref2, STEP_START, onAppearStart), defineProperty_defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
36075
36032
|
|
|
36076
36033
|
case 'enter':
|
|
36077
|
-
return _ref3 = {},
|
|
36034
|
+
return _ref3 = {}, defineProperty_defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), defineProperty_defineProperty(_ref3, STEP_START, onEnterStart), defineProperty_defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
36078
36035
|
|
|
36079
36036
|
case 'leave':
|
|
36080
|
-
return _ref4 = {},
|
|
36037
|
+
return _ref4 = {}, defineProperty_defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), defineProperty_defineProperty(_ref4, STEP_START, onLeaveStart), defineProperty_defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
36081
36038
|
|
|
36082
36039
|
default:
|
|
36083
36040
|
return {};
|
|
@@ -36185,7 +36142,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36185
36142
|
var mergedStyle = style;
|
|
36186
36143
|
|
|
36187
36144
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
36188
|
-
mergedStyle =
|
|
36145
|
+
mergedStyle = objectSpread2_objectSpread2({
|
|
36189
36146
|
transition: 'none'
|
|
36190
36147
|
}, mergedStyle);
|
|
36191
36148
|
}
|
|
@@ -36200,17 +36157,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36200
36157
|
|
|
36201
36158
|
|
|
36202
36159
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
36203
|
-
|
|
36160
|
+
inherits_inherits(DomWrapper, _React$Component);
|
|
36204
36161
|
|
|
36205
|
-
var _super =
|
|
36162
|
+
var _super = createSuper_createSuper(DomWrapper);
|
|
36206
36163
|
|
|
36207
36164
|
function DomWrapper() {
|
|
36208
|
-
|
|
36165
|
+
classCallCheck_classCallCheck(this, DomWrapper);
|
|
36209
36166
|
|
|
36210
36167
|
return _super.apply(this, arguments);
|
|
36211
36168
|
}
|
|
36212
36169
|
|
|
36213
|
-
|
|
36170
|
+
createClass_createClass(DomWrapper, [{
|
|
36214
36171
|
key: "render",
|
|
36215
36172
|
value: function render() {
|
|
36216
36173
|
return this.props.children;
|
|
@@ -36246,7 +36203,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
36246
36203
|
function genCSSMotion(config) {
|
|
36247
36204
|
var transitionSupport = config;
|
|
36248
36205
|
|
|
36249
|
-
if (
|
|
36206
|
+
if (esm_typeof_typeof(config) === 'object') {
|
|
36250
36207
|
transitionSupport = config.transitionSupport;
|
|
36251
36208
|
}
|
|
36252
36209
|
|
|
@@ -36304,7 +36261,7 @@ function genCSSMotion(config) {
|
|
|
36304
36261
|
|
|
36305
36262
|
var motionChildren;
|
|
36306
36263
|
|
|
36307
|
-
var mergedProps =
|
|
36264
|
+
var mergedProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, eventProps), {}, {
|
|
36308
36265
|
visible: visible
|
|
36309
36266
|
});
|
|
36310
36267
|
|
|
@@ -36314,13 +36271,13 @@ function genCSSMotion(config) {
|
|
|
36314
36271
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
36315
36272
|
// Stable children
|
|
36316
36273
|
if (mergedVisible) {
|
|
36317
|
-
motionChildren = children(
|
|
36274
|
+
motionChildren = children(objectSpread2_objectSpread2({}, mergedProps), setNodeRef);
|
|
36318
36275
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
36319
|
-
motionChildren = children(
|
|
36276
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36320
36277
|
className: leavedClassName
|
|
36321
36278
|
}), setNodeRef);
|
|
36322
36279
|
} else if (forceRender) {
|
|
36323
|
-
motionChildren = children(
|
|
36280
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36324
36281
|
style: {
|
|
36325
36282
|
display: 'none'
|
|
36326
36283
|
}
|
|
@@ -36342,8 +36299,8 @@ function genCSSMotion(config) {
|
|
|
36342
36299
|
statusSuffix = 'start';
|
|
36343
36300
|
}
|
|
36344
36301
|
|
|
36345
|
-
motionChildren = children(
|
|
36346
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
36302
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36303
|
+
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)),
|
|
36347
36304
|
style: statusStyle
|
|
36348
36305
|
}), setNodeRef);
|
|
36349
36306
|
}
|
|
@@ -36356,6 +36313,41 @@ function genCSSMotion(config) {
|
|
|
36356
36313
|
return CSSMotion;
|
|
36357
36314
|
}
|
|
36358
36315
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36316
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36317
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36318
|
+
if (source == null) return {};
|
|
36319
|
+
var target = {};
|
|
36320
|
+
var sourceKeys = Object.keys(source);
|
|
36321
|
+
var key, i;
|
|
36322
|
+
|
|
36323
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
36324
|
+
key = sourceKeys[i];
|
|
36325
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36326
|
+
target[key] = source[key];
|
|
36327
|
+
}
|
|
36328
|
+
|
|
36329
|
+
return target;
|
|
36330
|
+
}
|
|
36331
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36332
|
+
|
|
36333
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36334
|
+
if (source == null) return {};
|
|
36335
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36336
|
+
var key, i;
|
|
36337
|
+
|
|
36338
|
+
if (Object.getOwnPropertySymbols) {
|
|
36339
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36340
|
+
|
|
36341
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36342
|
+
key = sourceSymbolKeys[i];
|
|
36343
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36344
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36345
|
+
target[key] = source[key];
|
|
36346
|
+
}
|
|
36347
|
+
}
|
|
36348
|
+
|
|
36349
|
+
return target;
|
|
36350
|
+
}
|
|
36359
36351
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
36360
36352
|
|
|
36361
36353
|
|
|
@@ -36366,7 +36358,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
36366
36358
|
function wrapKeyToObject(key) {
|
|
36367
36359
|
var keyObj;
|
|
36368
36360
|
|
|
36369
|
-
if (key &&
|
|
36361
|
+
if (key && esm_typeof_typeof(key) === 'object' && 'key' in key) {
|
|
36370
36362
|
keyObj = key;
|
|
36371
36363
|
} else {
|
|
36372
36364
|
keyObj = {
|
|
@@ -36374,7 +36366,7 @@ function wrapKeyToObject(key) {
|
|
|
36374
36366
|
};
|
|
36375
36367
|
}
|
|
36376
36368
|
|
|
36377
|
-
return
|
|
36369
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
36378
36370
|
key: String(keyObj.key)
|
|
36379
36371
|
});
|
|
36380
36372
|
}
|
|
@@ -36401,14 +36393,14 @@ function diffKeys() {
|
|
|
36401
36393
|
// New added keys should add before current key
|
|
36402
36394
|
if (currentIndex < i) {
|
|
36403
36395
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
36404
|
-
return
|
|
36396
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
36405
36397
|
status: STATUS_ADD
|
|
36406
36398
|
});
|
|
36407
36399
|
}));
|
|
36408
36400
|
currentIndex = i;
|
|
36409
36401
|
}
|
|
36410
36402
|
|
|
36411
|
-
list.push(
|
|
36403
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentKeyObj), {}, {
|
|
36412
36404
|
status: STATUS_KEEP
|
|
36413
36405
|
}));
|
|
36414
36406
|
currentIndex += 1;
|
|
@@ -36419,7 +36411,7 @@ function diffKeys() {
|
|
|
36419
36411
|
|
|
36420
36412
|
|
|
36421
36413
|
if (!hit) {
|
|
36422
|
-
list.push(
|
|
36414
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
36423
36415
|
status: STATUS_REMOVE
|
|
36424
36416
|
}));
|
|
36425
36417
|
}
|
|
@@ -36427,7 +36419,7 @@ function diffKeys() {
|
|
|
36427
36419
|
|
|
36428
36420
|
if (currentIndex < currentLen) {
|
|
36429
36421
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36430
|
-
return
|
|
36422
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
36431
36423
|
status: STATUS_ADD
|
|
36432
36424
|
});
|
|
36433
36425
|
}));
|
|
@@ -36488,14 +36480,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36488
36480
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36489
36481
|
|
|
36490
36482
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36491
|
-
|
|
36483
|
+
inherits_inherits(CSSMotionList, _React$Component);
|
|
36492
36484
|
|
|
36493
|
-
var _super =
|
|
36485
|
+
var _super = createSuper_createSuper(CSSMotionList);
|
|
36494
36486
|
|
|
36495
36487
|
function CSSMotionList() {
|
|
36496
36488
|
var _this;
|
|
36497
36489
|
|
|
36498
|
-
|
|
36490
|
+
classCallCheck_classCallCheck(this, CSSMotionList);
|
|
36499
36491
|
|
|
36500
36492
|
_this = _super.apply(this, arguments);
|
|
36501
36493
|
_this.state = {
|
|
@@ -36508,7 +36500,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36508
36500
|
return {
|
|
36509
36501
|
keyEntities: keyEntities.map(function (entity) {
|
|
36510
36502
|
if (entity.key !== removeKey) return entity;
|
|
36511
|
-
return
|
|
36503
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, entity), {}, {
|
|
36512
36504
|
status: STATUS_REMOVED
|
|
36513
36505
|
});
|
|
36514
36506
|
})
|
|
@@ -36519,7 +36511,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36519
36511
|
return _this;
|
|
36520
36512
|
}
|
|
36521
36513
|
|
|
36522
|
-
|
|
36514
|
+
createClass_createClass(CSSMotionList, [{
|
|
36523
36515
|
key: "render",
|
|
36524
36516
|
value: function render() {
|
|
36525
36517
|
var _this2 = this;
|
|
@@ -36530,7 +36522,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36530
36522
|
component = _this$props.component,
|
|
36531
36523
|
children = _this$props.children,
|
|
36532
36524
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36533
|
-
restProps =
|
|
36525
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36534
36526
|
|
|
36535
36527
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36536
36528
|
var motionProps = {};
|
|
@@ -36541,10 +36533,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36541
36533
|
delete restProps.keys;
|
|
36542
36534
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36543
36535
|
var status = _ref2.status,
|
|
36544
|
-
eventProps =
|
|
36536
|
+
eventProps = objectWithoutProperties_objectWithoutProperties(_ref2, ["status"]);
|
|
36545
36537
|
|
|
36546
36538
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36547
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
36539
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, esm_extends_extends({}, motionProps, {
|
|
36548
36540
|
key: eventProps.key,
|
|
36549
36541
|
visible: visible,
|
|
36550
36542
|
eventProps: eventProps,
|
|
@@ -36744,7 +36736,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36744
36736
|
}); // ============================= Style ==============================
|
|
36745
36737
|
|
|
36746
36738
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
36747
|
-
_React$useState2 =
|
|
36739
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
36748
36740
|
transformOrigin = _React$useState2[0],
|
|
36749
36741
|
setTransformOrigin = _React$useState2[1];
|
|
36750
36742
|
|
|
@@ -36890,7 +36882,7 @@ function Dialog(props) {
|
|
|
36890
36882
|
var contentRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
36891
36883
|
|
|
36892
36884
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(visible),
|
|
36893
|
-
_React$useState2 =
|
|
36885
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
36894
36886
|
animatedVisible = _React$useState2[0],
|
|
36895
36887
|
setAnimatedVisible = _React$useState2[1]; // ========================== Init ==========================
|
|
36896
36888
|
|
|
@@ -37077,7 +37069,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37077
37069
|
}, [visible]); // 渲染在当前 dom 里;
|
|
37078
37070
|
|
|
37079
37071
|
if (getContainer === false) {
|
|
37080
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37072
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
37081
37073
|
getOpenCount: function getOpenCount() {
|
|
37082
37074
|
return 2;
|
|
37083
37075
|
} // 不对 body 做任何操作。。
|
|
@@ -37095,7 +37087,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37095
37087
|
forceRender: forceRender,
|
|
37096
37088
|
getContainer: getContainer
|
|
37097
37089
|
}, function (childProps) {
|
|
37098
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37090
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
37099
37091
|
destroyOnClose: destroyOnClose,
|
|
37100
37092
|
afterClose: function afterClose() {
|
|
37101
37093
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -37130,8 +37122,8 @@ function getConfirmLocale() {
|
|
|
37130
37122
|
|
|
37131
37123
|
|
|
37132
37124
|
|
|
37133
|
-
var UnreachableException = /*#__PURE__*/
|
|
37134
|
-
|
|
37125
|
+
var UnreachableException = /*#__PURE__*/createClass_createClass(function UnreachableException(value) {
|
|
37126
|
+
classCallCheck_classCallCheck(this, UnreachableException);
|
|
37135
37127
|
|
|
37136
37128
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
37137
37129
|
});
|
|
@@ -37194,8 +37186,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
37194
37186
|
console.warn(new UnreachableException(size).error);
|
|
37195
37187
|
}
|
|
37196
37188
|
|
|
37197
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37198
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37189
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37190
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, others, {
|
|
37199
37191
|
className: classes
|
|
37200
37192
|
}));
|
|
37201
37193
|
});
|
|
@@ -37266,14 +37258,14 @@ function isNotGrey(color) {
|
|
|
37266
37258
|
}
|
|
37267
37259
|
|
|
37268
37260
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
37269
|
-
|
|
37261
|
+
inherits_inherits(Wave, _React$Component);
|
|
37270
37262
|
|
|
37271
|
-
var _super =
|
|
37263
|
+
var _super = createSuper_createSuper(Wave);
|
|
37272
37264
|
|
|
37273
37265
|
function Wave() {
|
|
37274
37266
|
var _this;
|
|
37275
37267
|
|
|
37276
|
-
|
|
37268
|
+
classCallCheck_classCallCheck(this, Wave);
|
|
37277
37269
|
|
|
37278
37270
|
_this = _super.apply(this, arguments);
|
|
37279
37271
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -37293,7 +37285,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37293
37285
|
|
|
37294
37286
|
_this.extraNode = document.createElement('div');
|
|
37295
37287
|
|
|
37296
|
-
var _assertThisInitialize =
|
|
37288
|
+
var _assertThisInitialize = assertThisInitialized_assertThisInitialized(_this),
|
|
37297
37289
|
extraNode = _assertThisInitialize.extraNode;
|
|
37298
37290
|
|
|
37299
37291
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -37400,7 +37392,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37400
37392
|
return _this;
|
|
37401
37393
|
}
|
|
37402
37394
|
|
|
37403
|
-
|
|
37395
|
+
createClass_createClass(Wave, [{
|
|
37404
37396
|
key: "componentDidMount",
|
|
37405
37397
|
value: function componentDidMount() {
|
|
37406
37398
|
var node = this.containerRef.current;
|
|
@@ -37627,7 +37619,7 @@ function spaceChildren(children, needInserted) {
|
|
|
37627
37619
|
var isPrevChildPure = false;
|
|
37628
37620
|
var childList = [];
|
|
37629
37621
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
37630
|
-
var type =
|
|
37622
|
+
var type = esm_typeof_typeof(child);
|
|
37631
37623
|
|
|
37632
37624
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
37633
37625
|
|
|
@@ -37727,7 +37719,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37727
37719
|
}; // =============== Update Loading ===============
|
|
37728
37720
|
|
|
37729
37721
|
|
|
37730
|
-
var loadingOrDelay =
|
|
37722
|
+
var loadingOrDelay = esm_typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
37731
37723
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
37732
37724
|
clearTimeout(delayTimeoutRef.current);
|
|
37733
37725
|
|
|
@@ -37767,7 +37759,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37767
37759
|
var sizeFullname = customizeSize || size;
|
|
37768
37760
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
37769
37761
|
var iconType = innerLoading ? 'loading' : icon;
|
|
37770
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37762
|
+
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);
|
|
37771
37763
|
var iconNode;
|
|
37772
37764
|
|
|
37773
37765
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -37786,14 +37778,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37786
37778
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
37787
37779
|
|
|
37788
37780
|
if (linkButtonRestProps.href !== undefined) {
|
|
37789
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
37781
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", esm_extends_extends({}, linkButtonRestProps, {
|
|
37790
37782
|
className: classes,
|
|
37791
37783
|
onClick: handleClick,
|
|
37792
37784
|
ref: buttonRef
|
|
37793
37785
|
}), iconNode, kids);
|
|
37794
37786
|
}
|
|
37795
37787
|
|
|
37796
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
37788
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", esm_extends_extends({}, rest, {
|
|
37797
37789
|
type: htmlType,
|
|
37798
37790
|
className: classes,
|
|
37799
37791
|
onClick: handleClick,
|
|
@@ -37971,9 +37963,9 @@ var Modal = function Modal(props) {
|
|
|
37971
37963
|
okType = props.okType,
|
|
37972
37964
|
cancelText = props.cancelText,
|
|
37973
37965
|
confirmLoading = props.confirmLoading;
|
|
37974
|
-
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,
|
|
37966
|
+
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({
|
|
37975
37967
|
onClick: handleCancel
|
|
37976
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
37968
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, esm_extends_extends({}, convertLegacyProps(okType), {
|
|
37977
37969
|
loading: confirmLoading,
|
|
37978
37970
|
onClick: handleOk
|
|
37979
37971
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -38008,8 +38000,8 @@ var Modal = function Modal(props) {
|
|
|
38008
38000
|
type: "close",
|
|
38009
38001
|
className: "".concat(prefixCls, "-close-icon")
|
|
38010
38002
|
}));
|
|
38011
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
38012
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
38003
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
38004
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, esm_extends_extends({}, restProps, {
|
|
38013
38005
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
38014
38006
|
prefixCls: prefixCls,
|
|
38015
38007
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -38135,7 +38127,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
38135
38127
|
children = props.children,
|
|
38136
38128
|
prefixCls = props.prefixCls,
|
|
38137
38129
|
buttonProps = props.buttonProps;
|
|
38138
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
38130
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, esm_extends_extends({}, convertLegacyProps(type), {
|
|
38139
38131
|
onClick: onClick,
|
|
38140
38132
|
loading: loading,
|
|
38141
38133
|
prefixCls: prefixCls
|
|
@@ -39652,7 +39644,7 @@ function get(entity, path) {
|
|
|
39652
39644
|
|
|
39653
39645
|
|
|
39654
39646
|
function _toArray(arr) {
|
|
39655
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
39647
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
39656
39648
|
}
|
|
39657
39649
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
39658
39650
|
|
|
@@ -39674,9 +39666,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
39674
39666
|
if (!entity && typeof path === 'number') {
|
|
39675
39667
|
clone = [];
|
|
39676
39668
|
} else if (Array.isArray(entity)) {
|
|
39677
|
-
clone =
|
|
39669
|
+
clone = toConsumableArray_toConsumableArray(entity);
|
|
39678
39670
|
} else {
|
|
39679
|
-
clone =
|
|
39671
|
+
clone = objectSpread2_objectSpread2({}, entity);
|
|
39680
39672
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
39681
39673
|
|
|
39682
39674
|
|
|
@@ -39740,7 +39732,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
39740
39732
|
}
|
|
39741
39733
|
|
|
39742
39734
|
function isObject(obj) {
|
|
39743
|
-
return
|
|
39735
|
+
return esm_typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
39744
39736
|
}
|
|
39745
39737
|
/**
|
|
39746
39738
|
* Copy values into store and return a new values object
|
|
@@ -39749,7 +39741,7 @@ function isObject(obj) {
|
|
|
39749
39741
|
|
|
39750
39742
|
|
|
39751
39743
|
function internalSetValues(store, values) {
|
|
39752
|
-
var newStore = Array.isArray(store) ?
|
|
39744
|
+
var newStore = Array.isArray(store) ? toConsumableArray_toConsumableArray(store) : objectSpread2_objectSpread2({}, store);
|
|
39753
39745
|
|
|
39754
39746
|
if (!values) {
|
|
39755
39747
|
return newStore;
|
|
@@ -39792,14 +39784,14 @@ function isSimilar(source, target) {
|
|
|
39792
39784
|
return false;
|
|
39793
39785
|
}
|
|
39794
39786
|
|
|
39795
|
-
if (!source || !target ||
|
|
39787
|
+
if (!source || !target || esm_typeof_typeof(source) !== 'object' || esm_typeof_typeof(target) !== 'object') {
|
|
39796
39788
|
return false;
|
|
39797
39789
|
}
|
|
39798
39790
|
|
|
39799
39791
|
var sourceKeys = Object.keys(source);
|
|
39800
39792
|
var targetKeys = Object.keys(target);
|
|
39801
|
-
var keys = new Set([].concat(
|
|
39802
|
-
return
|
|
39793
|
+
var keys = new Set([].concat(toConsumableArray_toConsumableArray(sourceKeys), toConsumableArray_toConsumableArray(targetKeys)));
|
|
39794
|
+
return toConsumableArray_toConsumableArray(keys).every(function (key) {
|
|
39803
39795
|
var sourceValue = source[key];
|
|
39804
39796
|
var targetValue = target[key];
|
|
39805
39797
|
|
|
@@ -39842,12 +39834,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
39842
39834
|
|
|
39843
39835
|
if (diff > 0) {
|
|
39844
39836
|
// move left
|
|
39845
|
-
return [].concat(
|
|
39837
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, toIndex)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
39846
39838
|
}
|
|
39847
39839
|
|
|
39848
39840
|
if (diff < 0) {
|
|
39849
39841
|
// move right
|
|
39850
|
-
return [].concat(
|
|
39842
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex + 1, length)));
|
|
39851
39843
|
}
|
|
39852
39844
|
|
|
39853
39845
|
return array;
|
|
@@ -39887,13 +39879,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
39887
39879
|
|
|
39888
39880
|
|
|
39889
39881
|
function _validateRule() {
|
|
39890
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39882
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
39891
39883
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
39892
|
-
return
|
|
39884
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
39893
39885
|
while (1) {
|
|
39894
39886
|
switch (_context2.prev = _context2.next) {
|
|
39895
39887
|
case 0:
|
|
39896
|
-
cloneRule =
|
|
39888
|
+
cloneRule = objectSpread2_objectSpread2({}, rule); // Bug of `async-validator`
|
|
39897
39889
|
// https://github.com/react-component/field-form/issues/316
|
|
39898
39890
|
// https://github.com/react-component/field-form/issues/313
|
|
39899
39891
|
|
|
@@ -39906,13 +39898,13 @@ function _validateRule() {
|
|
|
39906
39898
|
delete cloneRule.defaultField;
|
|
39907
39899
|
}
|
|
39908
39900
|
|
|
39909
|
-
validator = new AsyncValidator(
|
|
39901
|
+
validator = new AsyncValidator(defineProperty_defineProperty({}, name, [cloneRule]));
|
|
39910
39902
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
39911
39903
|
validator.messages(messages);
|
|
39912
39904
|
result = [];
|
|
39913
39905
|
_context2.prev = 8;
|
|
39914
39906
|
_context2.next = 11;
|
|
39915
|
-
return Promise.resolve(validator.validate(
|
|
39907
|
+
return Promise.resolve(validator.validate(defineProperty_defineProperty({}, name, value), objectSpread2_objectSpread2({}, options)));
|
|
39916
39908
|
|
|
39917
39909
|
case 11:
|
|
39918
39910
|
_context2.next = 16;
|
|
@@ -39952,12 +39944,12 @@ function _validateRule() {
|
|
|
39952
39944
|
case 19:
|
|
39953
39945
|
subResults = _context2.sent;
|
|
39954
39946
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
39955
|
-
return [].concat(
|
|
39947
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), toConsumableArray_toConsumableArray(errors));
|
|
39956
39948
|
}, []));
|
|
39957
39949
|
|
|
39958
39950
|
case 21:
|
|
39959
39951
|
// Replace message with variables
|
|
39960
|
-
kv =
|
|
39952
|
+
kv = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rule), {}, {
|
|
39961
39953
|
name: name,
|
|
39962
39954
|
enum: (rule.enum || []).join(', ')
|
|
39963
39955
|
}, messageVariables);
|
|
@@ -39986,7 +39978,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
39986
39978
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
39987
39979
|
var originValidatorFunc = currentRule.validator;
|
|
39988
39980
|
|
|
39989
|
-
var cloneRule =
|
|
39981
|
+
var cloneRule = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentRule), {}, {
|
|
39990
39982
|
ruleIndex: ruleIndex
|
|
39991
39983
|
}); // Replace validator if needed
|
|
39992
39984
|
|
|
@@ -40054,9 +40046,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40054
40046
|
if (validateFirst === true) {
|
|
40055
40047
|
// >>>>> Validate by serialization
|
|
40056
40048
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
40057
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40049
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(resolve, reject) {
|
|
40058
40050
|
var i, rule, errors;
|
|
40059
|
-
return
|
|
40051
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
40060
40052
|
while (1) {
|
|
40061
40053
|
switch (_context.prev = _context.next) {
|
|
40062
40054
|
case 0:
|
|
@@ -40135,15 +40127,15 @@ function finishOnAllFailed(_x8) {
|
|
|
40135
40127
|
}
|
|
40136
40128
|
|
|
40137
40129
|
function _finishOnAllFailed() {
|
|
40138
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40139
|
-
return
|
|
40130
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(rulePromises) {
|
|
40131
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
40140
40132
|
while (1) {
|
|
40141
40133
|
switch (_context3.prev = _context3.next) {
|
|
40142
40134
|
case 0:
|
|
40143
40135
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
40144
40136
|
var _ref5;
|
|
40145
40137
|
|
|
40146
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
40138
|
+
var errors = (_ref5 = []).concat.apply(_ref5, toConsumableArray_toConsumableArray(errorsList));
|
|
40147
40139
|
|
|
40148
40140
|
return errors;
|
|
40149
40141
|
}));
|
|
@@ -40163,9 +40155,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
40163
40155
|
}
|
|
40164
40156
|
|
|
40165
40157
|
function _finishOnFirstFailed() {
|
|
40166
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40158
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee4(rulePromises) {
|
|
40167
40159
|
var count;
|
|
40168
|
-
return
|
|
40160
|
+
return runtime_regenerator_default().wrap(function _callee4$(_context4) {
|
|
40169
40161
|
while (1) {
|
|
40170
40162
|
switch (_context4.prev = _context4.next) {
|
|
40171
40163
|
case 0:
|
|
@@ -40228,9 +40220,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
40228
40220
|
|
|
40229
40221
|
|
|
40230
40222
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
40231
|
-
|
|
40223
|
+
inherits_inherits(Field, _React$Component);
|
|
40232
40224
|
|
|
40233
|
-
var _super =
|
|
40225
|
+
var _super = createSuper_createSuper(Field);
|
|
40234
40226
|
|
|
40235
40227
|
/**
|
|
40236
40228
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -40246,7 +40238,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40246
40238
|
function Field(props) {
|
|
40247
40239
|
var _this;
|
|
40248
40240
|
|
|
40249
|
-
|
|
40241
|
+
classCallCheck_classCallCheck(this, Field);
|
|
40250
40242
|
|
|
40251
40243
|
_this = _super.call(this, props); // Register on init
|
|
40252
40244
|
|
|
@@ -40281,7 +40273,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40281
40273
|
fieldContext = _this$props2.fieldContext;
|
|
40282
40274
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
40283
40275
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
40284
|
-
return name !== undefined ? [].concat(
|
|
40276
|
+
return name !== undefined ? [].concat(toConsumableArray_toConsumableArray(prefixName), toConsumableArray_toConsumableArray(name)) : [];
|
|
40285
40277
|
};
|
|
40286
40278
|
|
|
40287
40279
|
_this.getRules = function () {
|
|
@@ -40314,7 +40306,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40314
40306
|
|
|
40315
40307
|
_this.triggerMetaEvent = function (destroy) {
|
|
40316
40308
|
var onMetaChange = _this.props.onMetaChange;
|
|
40317
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
40309
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getMeta()), {}, {
|
|
40318
40310
|
destroy: destroy
|
|
40319
40311
|
}));
|
|
40320
40312
|
};
|
|
@@ -40503,9 +40495,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40503
40495
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
40504
40496
|
|
|
40505
40497
|
if (warningOnly) {
|
|
40506
|
-
nextWarnings.push.apply(nextWarnings,
|
|
40498
|
+
nextWarnings.push.apply(nextWarnings, toConsumableArray_toConsumableArray(errors));
|
|
40507
40499
|
} else {
|
|
40508
|
-
nextErrors.push.apply(nextErrors,
|
|
40500
|
+
nextErrors.push.apply(nextErrors, toConsumableArray_toConsumableArray(errors));
|
|
40509
40501
|
}
|
|
40510
40502
|
});
|
|
40511
40503
|
_this.errors = nextErrors;
|
|
@@ -40596,7 +40588,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40596
40588
|
if (typeof children === 'function') {
|
|
40597
40589
|
var meta = _this.getMeta();
|
|
40598
40590
|
|
|
40599
|
-
return
|
|
40591
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
40600
40592
|
isFunction: true
|
|
40601
40593
|
});
|
|
40602
40594
|
} // Filed element only
|
|
@@ -40648,13 +40640,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40648
40640
|
var value = _this.getValue();
|
|
40649
40641
|
|
|
40650
40642
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
40651
|
-
return
|
|
40643
|
+
return defineProperty_defineProperty({}, valuePropName, val);
|
|
40652
40644
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40653
40645
|
|
|
40654
40646
|
|
|
40655
40647
|
var originTriggerFunc = childProps[trigger];
|
|
40656
40648
|
|
|
40657
|
-
var control =
|
|
40649
|
+
var control = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
40658
40650
|
|
|
40659
40651
|
|
|
40660
40652
|
control[trigger] = function () {
|
|
@@ -40725,13 +40717,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40725
40717
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
40726
40718
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
40727
40719
|
|
|
40728
|
-
initEntityValue(
|
|
40720
|
+
initEntityValue(assertThisInitialized_assertThisInitialized(_this));
|
|
40729
40721
|
}
|
|
40730
40722
|
|
|
40731
40723
|
return _this;
|
|
40732
40724
|
}
|
|
40733
40725
|
|
|
40734
|
-
|
|
40726
|
+
createClass_createClass(Field, [{
|
|
40735
40727
|
key: "componentDidMount",
|
|
40736
40728
|
value: function componentDidMount() {
|
|
40737
40729
|
var _this$props7 = this.props,
|
|
@@ -40805,7 +40797,7 @@ Field.defaultProps = {
|
|
|
40805
40797
|
|
|
40806
40798
|
function WrapperField(_ref5) {
|
|
40807
40799
|
var name = _ref5.name,
|
|
40808
|
-
restProps =
|
|
40800
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref5, Field_excluded);
|
|
40809
40801
|
|
|
40810
40802
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
40811
40803
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -40819,7 +40811,7 @@ function WrapperField(_ref5) {
|
|
|
40819
40811
|
|
|
40820
40812
|
if (false) {}
|
|
40821
40813
|
|
|
40822
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
40814
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, esm_extends_extends({
|
|
40823
40815
|
key: key,
|
|
40824
40816
|
name: namePath
|
|
40825
40817
|
}, restProps, {
|
|
@@ -40856,7 +40848,7 @@ var List = function List(_ref) {
|
|
|
40856
40848
|
}
|
|
40857
40849
|
|
|
40858
40850
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
40859
|
-
var prefixName = [].concat(
|
|
40851
|
+
var prefixName = [].concat(toConsumableArray_toConsumableArray(parentPrefixName), toConsumableArray_toConsumableArray(getNamePath(name)));
|
|
40860
40852
|
|
|
40861
40853
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
40862
40854
|
var source = _ref2.source;
|
|
@@ -40869,7 +40861,7 @@ var List = function List(_ref) {
|
|
|
40869
40861
|
};
|
|
40870
40862
|
|
|
40871
40863
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
40872
|
-
value:
|
|
40864
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, context), {}, {
|
|
40873
40865
|
prefixName: prefixName
|
|
40874
40866
|
})
|
|
40875
40867
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -40900,13 +40892,13 @@ var List = function List(_ref) {
|
|
|
40900
40892
|
var newValue = getNewValue();
|
|
40901
40893
|
|
|
40902
40894
|
if (index >= 0 && index <= newValue.length) {
|
|
40903
|
-
keyManager.keys = [].concat(
|
|
40904
|
-
onChange([].concat(
|
|
40895
|
+
keyManager.keys = [].concat(toConsumableArray_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], toConsumableArray_toConsumableArray(keyManager.keys.slice(index)));
|
|
40896
|
+
onChange([].concat(toConsumableArray_toConsumableArray(newValue.slice(0, index)), [defaultValue], toConsumableArray_toConsumableArray(newValue.slice(index))));
|
|
40905
40897
|
} else {
|
|
40906
40898
|
if (false) {}
|
|
40907
40899
|
|
|
40908
|
-
keyManager.keys = [].concat(
|
|
40909
|
-
onChange([].concat(
|
|
40900
|
+
keyManager.keys = [].concat(toConsumableArray_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
40901
|
+
onChange([].concat(toConsumableArray_toConsumableArray(newValue), [defaultValue]));
|
|
40910
40902
|
}
|
|
40911
40903
|
|
|
40912
40904
|
keyManager.id += 1;
|
|
@@ -41015,7 +41007,7 @@ var SPLIT = '__@field_split__';
|
|
|
41015
41007
|
|
|
41016
41008
|
function normalize(namePath) {
|
|
41017
41009
|
return namePath.map(function (cell) {
|
|
41018
|
-
return "".concat(
|
|
41010
|
+
return "".concat(esm_typeof_typeof(cell), ":").concat(cell);
|
|
41019
41011
|
}) // Magic split
|
|
41020
41012
|
.join(SPLIT);
|
|
41021
41013
|
}
|
|
@@ -41026,12 +41018,12 @@ function normalize(namePath) {
|
|
|
41026
41018
|
|
|
41027
41019
|
var NameMap = /*#__PURE__*/function () {
|
|
41028
41020
|
function NameMap() {
|
|
41029
|
-
|
|
41021
|
+
classCallCheck_classCallCheck(this, NameMap);
|
|
41030
41022
|
|
|
41031
41023
|
this.kvs = new Map();
|
|
41032
41024
|
}
|
|
41033
41025
|
|
|
41034
|
-
|
|
41026
|
+
createClass_createClass(NameMap, [{
|
|
41035
41027
|
key: "set",
|
|
41036
41028
|
value: function set(key, value) {
|
|
41037
41029
|
this.kvs.set(normalize(key), value);
|
|
@@ -41062,7 +41054,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
41062
41054
|
}, {
|
|
41063
41055
|
key: "map",
|
|
41064
41056
|
value: function map(callback) {
|
|
41065
|
-
return
|
|
41057
|
+
return toConsumableArray_toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
41066
41058
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
41067
41059
|
key = _ref2[0],
|
|
41068
41060
|
value = _ref2[1];
|
|
@@ -41116,7 +41108,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
41116
41108
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
41117
41109
|
var _this = this;
|
|
41118
41110
|
|
|
41119
|
-
|
|
41111
|
+
classCallCheck_classCallCheck(this, FormStore);
|
|
41120
41112
|
|
|
41121
41113
|
this.formHooked = false;
|
|
41122
41114
|
this.forceRootUpdate = void 0;
|
|
@@ -41376,7 +41368,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41376
41368
|
return fieldNamePath[i] === nameUnit;
|
|
41377
41369
|
})) {
|
|
41378
41370
|
map.update(shortNamePath, function (list) {
|
|
41379
|
-
return [].concat(
|
|
41371
|
+
return [].concat(toConsumableArray_toConsumableArray(list), [field]);
|
|
41380
41372
|
});
|
|
41381
41373
|
}
|
|
41382
41374
|
});
|
|
@@ -41467,7 +41459,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41467
41459
|
|
|
41468
41460
|
|
|
41469
41461
|
if (!info.skipExist || originValue === undefined) {
|
|
41470
|
-
_this.store = setValue(_this.store, namePath,
|
|
41462
|
+
_this.store = setValue(_this.store, namePath, toConsumableArray_toConsumableArray(records)[0].value);
|
|
41471
41463
|
}
|
|
41472
41464
|
}
|
|
41473
41465
|
}
|
|
@@ -41487,7 +41479,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41487
41479
|
if (records) {
|
|
41488
41480
|
var _requiredFieldEntitie;
|
|
41489
41481
|
|
|
41490
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
41482
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, toConsumableArray_toConsumableArray(toConsumableArray_toConsumableArray(records).map(function (r) {
|
|
41491
41483
|
return r.entity;
|
|
41492
41484
|
})));
|
|
41493
41485
|
}
|
|
@@ -41540,7 +41532,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41540
41532
|
fields.forEach(function (fieldData) {
|
|
41541
41533
|
var name = fieldData.name,
|
|
41542
41534
|
errors = fieldData.errors,
|
|
41543
|
-
data =
|
|
41535
|
+
data = objectWithoutProperties_objectWithoutProperties(fieldData, useForm_excluded);
|
|
41544
41536
|
|
|
41545
41537
|
var namePath = getNamePath(name); // Value
|
|
41546
41538
|
|
|
@@ -41562,7 +41554,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41562
41554
|
var namePath = field.getNamePath();
|
|
41563
41555
|
var meta = field.getMeta();
|
|
41564
41556
|
|
|
41565
|
-
var fieldData =
|
|
41557
|
+
var fieldData = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, meta), {}, {
|
|
41566
41558
|
name: namePath,
|
|
41567
41559
|
value: _this.getFieldValue(namePath)
|
|
41568
41560
|
});
|
|
@@ -41661,7 +41653,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41661
41653
|
|
|
41662
41654
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
41663
41655
|
if (_this.subscribable) {
|
|
41664
|
-
var mergedInfo =
|
|
41656
|
+
var mergedInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
41665
41657
|
store: _this.getFieldsValue(true)
|
|
41666
41658
|
});
|
|
41667
41659
|
|
|
@@ -41694,7 +41686,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41694
41686
|
|
|
41695
41687
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
41696
41688
|
type: 'dependenciesUpdate',
|
|
41697
|
-
relatedFields: [namePath].concat(
|
|
41689
|
+
relatedFields: [namePath].concat(toConsumableArray_toConsumableArray(childrenFields))
|
|
41698
41690
|
}); // trigger callback function
|
|
41699
41691
|
|
|
41700
41692
|
|
|
@@ -41705,7 +41697,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41705
41697
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
41706
41698
|
}
|
|
41707
41699
|
|
|
41708
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
41700
|
+
_this.triggerOnFieldsChange([namePath].concat(toConsumableArray_toConsumableArray(childrenFields)));
|
|
41709
41701
|
};
|
|
41710
41702
|
|
|
41711
41703
|
this.setFieldsValue = function (store) {
|
|
@@ -41833,8 +41825,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41833
41825
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
41834
41826
|
|
|
41835
41827
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
41836
|
-
var promise = field.validateRules(
|
|
41837
|
-
validateMessages:
|
|
41828
|
+
var promise = field.validateRules(objectSpread2_objectSpread2({
|
|
41829
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
41838
41830
|
}, options)); // Wrap promise with field
|
|
41839
41831
|
|
|
41840
41832
|
promiseList.push(promise.then(function () {
|
|
@@ -41851,9 +41843,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41851
41843
|
errors = _ref5.errors;
|
|
41852
41844
|
|
|
41853
41845
|
if (warningOnly) {
|
|
41854
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
41846
|
+
mergedWarnings.push.apply(mergedWarnings, toConsumableArray_toConsumableArray(errors));
|
|
41855
41847
|
} else {
|
|
41856
|
-
mergedErrors.push.apply(mergedErrors,
|
|
41848
|
+
mergedErrors.push.apply(mergedErrors, toConsumableArray_toConsumableArray(errors));
|
|
41857
41849
|
}
|
|
41858
41850
|
});
|
|
41859
41851
|
|
|
@@ -41984,8 +41976,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
41984
41976
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
41985
41977
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
41986
41978
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
41987
|
-
value:
|
|
41988
|
-
validateMessages:
|
|
41979
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext), {}, {
|
|
41980
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
41989
41981
|
// =========================================================
|
|
41990
41982
|
// = Global Form Control =
|
|
41991
41983
|
// =========================================================
|
|
@@ -42011,13 +42003,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
42011
42003
|
},
|
|
42012
42004
|
registerForm: function registerForm(name, form) {
|
|
42013
42005
|
if (name) {
|
|
42014
|
-
formsRef.current =
|
|
42006
|
+
formsRef.current = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formsRef.current), {}, defineProperty_defineProperty({}, name, form));
|
|
42015
42007
|
}
|
|
42016
42008
|
|
|
42017
42009
|
formContext.registerForm(name, form);
|
|
42018
42010
|
},
|
|
42019
42011
|
unregisterForm: function unregisterForm(name) {
|
|
42020
|
-
var newForms =
|
|
42012
|
+
var newForms = objectSpread2_objectSpread2({}, formsRef.current);
|
|
42021
42013
|
|
|
42022
42014
|
delete newForms[name];
|
|
42023
42015
|
formsRef.current = newForms;
|
|
@@ -42057,7 +42049,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42057
42049
|
_onFieldsChange = _ref.onFieldsChange,
|
|
42058
42050
|
_onFinish = _ref.onFinish,
|
|
42059
42051
|
onFinishFailed = _ref.onFinishFailed,
|
|
42060
|
-
restProps =
|
|
42052
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, Form_excluded);
|
|
42061
42053
|
|
|
42062
42054
|
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:
|
|
42063
42055
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -42085,7 +42077,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42085
42077
|
};
|
|
42086
42078
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
42087
42079
|
|
|
42088
|
-
setValidateMessages(
|
|
42080
|
+
setValidateMessages(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
42089
42081
|
setCallbacks({
|
|
42090
42082
|
onValuesChange: onValuesChange,
|
|
42091
42083
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -42138,7 +42130,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42138
42130
|
prevFieldsRef.current = fields;
|
|
42139
42131
|
}, [fields, formInstance]);
|
|
42140
42132
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
42141
|
-
return
|
|
42133
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formInstance), {}, {
|
|
42142
42134
|
validateTrigger: validateTrigger
|
|
42143
42135
|
});
|
|
42144
42136
|
}, [formInstance, validateTrigger]);
|
|
@@ -42150,7 +42142,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42150
42142
|
return wrapperNode;
|
|
42151
42143
|
}
|
|
42152
42144
|
|
|
42153
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
42145
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, restProps, {
|
|
42154
42146
|
onSubmit: function onSubmit(event) {
|
|
42155
42147
|
event.preventDefault();
|
|
42156
42148
|
event.stopPropagation();
|
|
@@ -42332,14 +42324,14 @@ LocaleProvider.defaultProps = {
|
|
|
42332
42324
|
|
|
42333
42325
|
|
|
42334
42326
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
42335
|
-
|
|
42327
|
+
inherits_inherits(Notice, _Component);
|
|
42336
42328
|
|
|
42337
|
-
var _super =
|
|
42329
|
+
var _super = createSuper_createSuper(Notice);
|
|
42338
42330
|
|
|
42339
42331
|
function Notice() {
|
|
42340
42332
|
var _this;
|
|
42341
42333
|
|
|
42342
|
-
|
|
42334
|
+
classCallCheck_classCallCheck(this, Notice);
|
|
42343
42335
|
|
|
42344
42336
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42345
42337
|
args[_key] = arguments[_key];
|
|
@@ -42382,7 +42374,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42382
42374
|
return _this;
|
|
42383
42375
|
}
|
|
42384
42376
|
|
|
42385
|
-
|
|
42377
|
+
createClass_createClass(Notice, [{
|
|
42386
42378
|
key: "componentDidMount",
|
|
42387
42379
|
value: function componentDidMount() {
|
|
42388
42380
|
this.startCloseTimer();
|
|
@@ -42428,8 +42420,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42428
42420
|
|
|
42429
42421
|
return acc;
|
|
42430
42422
|
}, {});
|
|
42431
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
42432
|
-
className: classnames_default()(componentClass, className,
|
|
42423
|
+
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
42424
|
+
className: classnames_default()(componentClass, className, defineProperty_defineProperty({}, "".concat(componentClass, "-closable"), closable)),
|
|
42433
42425
|
style: style,
|
|
42434
42426
|
onMouseEnter: this.clearCloseTimer,
|
|
42435
42427
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -42460,6 +42452,52 @@ Notice.defaultProps = {
|
|
|
42460
42452
|
duration: 1.5
|
|
42461
42453
|
};
|
|
42462
42454
|
|
|
42455
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
42456
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
42457
|
+
if (Array.isArray(arr)) return arr;
|
|
42458
|
+
}
|
|
42459
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
42460
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
42461
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42462
|
+
|
|
42463
|
+
if (_i == null) return;
|
|
42464
|
+
var _arr = [];
|
|
42465
|
+
var _n = true;
|
|
42466
|
+
var _d = false;
|
|
42467
|
+
|
|
42468
|
+
var _s, _e;
|
|
42469
|
+
|
|
42470
|
+
try {
|
|
42471
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
42472
|
+
_arr.push(_s.value);
|
|
42473
|
+
|
|
42474
|
+
if (i && _arr.length === i) break;
|
|
42475
|
+
}
|
|
42476
|
+
} catch (err) {
|
|
42477
|
+
_d = true;
|
|
42478
|
+
_e = err;
|
|
42479
|
+
} finally {
|
|
42480
|
+
try {
|
|
42481
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
42482
|
+
} finally {
|
|
42483
|
+
if (_d) throw _e;
|
|
42484
|
+
}
|
|
42485
|
+
}
|
|
42486
|
+
|
|
42487
|
+
return _arr;
|
|
42488
|
+
}
|
|
42489
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
42490
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
42491
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
42492
|
+
}
|
|
42493
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
42494
|
+
|
|
42495
|
+
|
|
42496
|
+
|
|
42497
|
+
|
|
42498
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
42499
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
42500
|
+
}
|
|
42463
42501
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
42464
42502
|
|
|
42465
42503
|
|
|
@@ -42470,7 +42508,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42470
42508
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42471
42509
|
|
|
42472
42510
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42473
|
-
_React$useState2 =
|
|
42511
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
42474
42512
|
elements = _React$useState2[0],
|
|
42475
42513
|
setElements = _React$useState2[1];
|
|
42476
42514
|
|
|
@@ -42531,14 +42569,14 @@ function getUuid() {
|
|
|
42531
42569
|
}
|
|
42532
42570
|
|
|
42533
42571
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
42534
|
-
|
|
42572
|
+
inherits_inherits(Notification, _Component);
|
|
42535
42573
|
|
|
42536
|
-
var _super =
|
|
42574
|
+
var _super = createSuper_createSuper(Notification);
|
|
42537
42575
|
|
|
42538
42576
|
function Notification() {
|
|
42539
42577
|
var _this;
|
|
42540
42578
|
|
|
42541
|
-
|
|
42579
|
+
classCallCheck_classCallCheck(this, Notification);
|
|
42542
42580
|
|
|
42543
42581
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42544
42582
|
args[_key] = arguments[_key];
|
|
@@ -42553,7 +42591,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42553
42591
|
_this.add = function (originNotice, holderCallback) {
|
|
42554
42592
|
var key = originNotice.key || getUuid();
|
|
42555
42593
|
|
|
42556
|
-
var notice =
|
|
42594
|
+
var notice = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, originNotice), {}, {
|
|
42557
42595
|
key: key
|
|
42558
42596
|
});
|
|
42559
42597
|
|
|
@@ -42620,7 +42658,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42620
42658
|
return _this;
|
|
42621
42659
|
}
|
|
42622
42660
|
|
|
42623
|
-
|
|
42661
|
+
createClass_createClass(Notification, [{
|
|
42624
42662
|
key: "getTransitionName",
|
|
42625
42663
|
value: function getTransitionName() {
|
|
42626
42664
|
var _this$props = this.props,
|
|
@@ -42653,7 +42691,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42653
42691
|
var key = notice.key,
|
|
42654
42692
|
userPassKey = notice.userPassKey;
|
|
42655
42693
|
|
|
42656
|
-
var noticeProps =
|
|
42694
|
+
var noticeProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
42657
42695
|
prefixCls: prefixCls,
|
|
42658
42696
|
closeIcon: closeIcon
|
|
42659
42697
|
}, notice), notice.props), {}, {
|
|
@@ -42704,7 +42742,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42704
42742
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
42705
42743
|
key: key,
|
|
42706
42744
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
42707
|
-
style:
|
|
42745
|
+
style: objectSpread2_objectSpread2({}, motionStyle),
|
|
42708
42746
|
ref: function ref(div) {
|
|
42709
42747
|
if (typeof key === 'undefined') {
|
|
42710
42748
|
return;
|
|
@@ -42721,9 +42759,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42721
42759
|
});
|
|
42722
42760
|
}
|
|
42723
42761
|
|
|
42724
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
42762
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, esm_extends_extends({}, noticeProps, {
|
|
42725
42763
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
42726
|
-
style:
|
|
42764
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
42727
42765
|
visible: visible
|
|
42728
42766
|
}));
|
|
42729
42767
|
}));
|
|
@@ -42746,7 +42784,7 @@ Notification.defaultProps = {
|
|
|
42746
42784
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
42747
42785
|
var _ref6 = properties || {},
|
|
42748
42786
|
getContainer = _ref6.getContainer,
|
|
42749
|
-
props =
|
|
42787
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref6, ["getContainer"]);
|
|
42750
42788
|
|
|
42751
42789
|
var div = document.createElement('div');
|
|
42752
42790
|
|
|
@@ -42790,7 +42828,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
42790
42828
|
|
|
42791
42829
|
if (false) {}
|
|
42792
42830
|
|
|
42793
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
42831
|
+
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, {
|
|
42794
42832
|
ref: ref
|
|
42795
42833
|
})), div);
|
|
42796
42834
|
};
|
|
@@ -42820,7 +42858,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
42820
42858
|
};
|
|
42821
42859
|
|
|
42822
42860
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
42823
|
-
_useRCNotification2 =
|
|
42861
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
42824
42862
|
hookNotify = _useRCNotification2[0],
|
|
42825
42863
|
holder = _useRCNotification2[1];
|
|
42826
42864
|
|
|
@@ -43149,7 +43187,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
43149
43187
|
};
|
|
43150
43188
|
|
|
43151
43189
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43152
|
-
_useRCNotification2 =
|
|
43190
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43153
43191
|
hookNotify = _useRCNotification2[0],
|
|
43154
43192
|
holder = _useRCNotification2[1];
|
|
43155
43193
|
|
|
@@ -43776,7 +43814,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43776
43814
|
|
|
43777
43815
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
43778
43816
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
43779
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
43817
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
43780
43818
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
43781
43819
|
actionFn: onCancel,
|
|
43782
43820
|
close: close,
|
|
@@ -43794,7 +43832,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43794
43832
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
43795
43833
|
prefixCls: prefixCls,
|
|
43796
43834
|
className: classString,
|
|
43797
|
-
wrapClassName: classnames_default()(
|
|
43835
|
+
wrapClassName: classnames_default()(defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
43798
43836
|
onCancel: function onCancel() {
|
|
43799
43837
|
return close({
|
|
43800
43838
|
triggerCancel: true
|
|
@@ -43878,7 +43916,7 @@ function getRootPrefixCls() {
|
|
|
43878
43916
|
function confirm_confirm(config) {
|
|
43879
43917
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
43880
43918
|
|
|
43881
|
-
var currentConfig =
|
|
43919
|
+
var currentConfig = esm_extends_extends(esm_extends_extends({}, config), {
|
|
43882
43920
|
close: close,
|
|
43883
43921
|
visible: true
|
|
43884
43922
|
});
|
|
@@ -43931,7 +43969,7 @@ function confirm_confirm(config) {
|
|
|
43931
43969
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
43932
43970
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
43933
43971
|
var iconPrefixCls = getIconPrefixCls();
|
|
43934
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43972
|
+
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, {
|
|
43935
43973
|
prefixCls: prefixCls,
|
|
43936
43974
|
rootPrefixCls: rootPrefixCls,
|
|
43937
43975
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -43948,7 +43986,7 @@ function confirm_confirm(config) {
|
|
|
43948
43986
|
args[_key2] = arguments[_key2];
|
|
43949
43987
|
}
|
|
43950
43988
|
|
|
43951
|
-
currentConfig =
|
|
43989
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), {
|
|
43952
43990
|
visible: false,
|
|
43953
43991
|
afterClose: function afterClose() {
|
|
43954
43992
|
if (typeof config.afterClose === 'function') {
|
|
@@ -43965,7 +44003,7 @@ function confirm_confirm(config) {
|
|
|
43965
44003
|
if (typeof configUpdate === 'function') {
|
|
43966
44004
|
currentConfig = configUpdate(currentConfig);
|
|
43967
44005
|
} else {
|
|
43968
|
-
currentConfig =
|
|
44006
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), configUpdate);
|
|
43969
44007
|
}
|
|
43970
44008
|
|
|
43971
44009
|
render(currentConfig);
|
|
@@ -43979,7 +44017,7 @@ function confirm_confirm(config) {
|
|
|
43979
44017
|
};
|
|
43980
44018
|
}
|
|
43981
44019
|
function withWarn(props) {
|
|
43982
|
-
return
|
|
44020
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43983
44021
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43984
44022
|
type: "exclamation-circle"
|
|
43985
44023
|
}),
|
|
@@ -43989,7 +44027,7 @@ function withWarn(props) {
|
|
|
43989
44027
|
});
|
|
43990
44028
|
}
|
|
43991
44029
|
function withInfo(props) {
|
|
43992
|
-
return
|
|
44030
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43993
44031
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43994
44032
|
type: "exclamation-circle"
|
|
43995
44033
|
}),
|
|
@@ -43999,7 +44037,7 @@ function withInfo(props) {
|
|
|
43999
44037
|
});
|
|
44000
44038
|
}
|
|
44001
44039
|
function withSuccess(props) {
|
|
44002
|
-
return
|
|
44040
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44003
44041
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44004
44042
|
type: "check-circle"
|
|
44005
44043
|
}),
|
|
@@ -44009,7 +44047,7 @@ function withSuccess(props) {
|
|
|
44009
44047
|
});
|
|
44010
44048
|
}
|
|
44011
44049
|
function withError(props) {
|
|
44012
|
-
return
|
|
44050
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44013
44051
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44014
44052
|
type: "close-circle"
|
|
44015
44053
|
}),
|
|
@@ -44019,7 +44057,7 @@ function withError(props) {
|
|
|
44019
44057
|
});
|
|
44020
44058
|
}
|
|
44021
44059
|
function withConfirm(props) {
|
|
44022
|
-
return
|
|
44060
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44023
44061
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44024
44062
|
type: "question-circle"
|
|
44025
44063
|
}),
|
|
@@ -44046,7 +44084,7 @@ function usePatchElement() {
|
|
|
44046
44084
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
44047
44085
|
// append a new element to elements (and create a new ref)
|
|
44048
44086
|
setElements(function (originElements) {
|
|
44049
|
-
return [].concat(
|
|
44087
|
+
return [].concat(toConsumableArray_toConsumableArray(originElements), [element]);
|
|
44050
44088
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
44051
44089
|
// it works a little like useEffect
|
|
44052
44090
|
|
|
@@ -44111,7 +44149,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44111
44149
|
destroy: close,
|
|
44112
44150
|
update: function update(newConfig) {
|
|
44113
44151
|
setInnerConfig(function (originConfig) {
|
|
44114
|
-
return
|
|
44152
|
+
return esm_extends_extends(esm_extends_extends({}, originConfig), newConfig);
|
|
44115
44153
|
});
|
|
44116
44154
|
}
|
|
44117
44155
|
};
|
|
@@ -44120,7 +44158,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44120
44158
|
componentName: "Modal",
|
|
44121
44159
|
defaultLocale: locale_default.Modal
|
|
44122
44160
|
}, function (modalLocale) {
|
|
44123
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
44161
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, esm_extends_extends({
|
|
44124
44162
|
prefixCls: prefixCls,
|
|
44125
44163
|
rootPrefixCls: rootPrefixCls
|
|
44126
44164
|
}, innerConfig, {
|
|
@@ -44167,7 +44205,7 @@ function useModal() {
|
|
|
44167
44205
|
|
|
44168
44206
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
44169
44207
|
if (actionQueue.length) {
|
|
44170
|
-
var cloneQueue =
|
|
44208
|
+
var cloneQueue = toConsumableArray_toConsumableArray(actionQueue);
|
|
44171
44209
|
|
|
44172
44210
|
cloneQueue.forEach(function (action) {
|
|
44173
44211
|
action();
|
|
@@ -44204,7 +44242,7 @@ function useModal() {
|
|
|
44204
44242
|
destroyAction();
|
|
44205
44243
|
} else {
|
|
44206
44244
|
setActionQueue(function (prev) {
|
|
44207
|
-
return [].concat(
|
|
44245
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [destroyAction]);
|
|
44208
44246
|
});
|
|
44209
44247
|
}
|
|
44210
44248
|
},
|
|
@@ -44219,7 +44257,7 @@ function useModal() {
|
|
|
44219
44257
|
updateAction();
|
|
44220
44258
|
} else {
|
|
44221
44259
|
setActionQueue(function (prev) {
|
|
44222
|
-
return [].concat(
|
|
44260
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [updateAction]);
|
|
44223
44261
|
});
|
|
44224
44262
|
}
|
|
44225
44263
|
}
|
|
@@ -44827,7 +44865,7 @@ function helpers_esm_slicedToArray_slicedToArray(arr, i) {
|
|
|
44827
44865
|
return helpers_esm_arrayWithHoles_arrayWithHoles(arr) || helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || esm_unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || helpers_esm_nonIterableRest_nonIterableRest();
|
|
44828
44866
|
}
|
|
44829
44867
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
44830
|
-
function
|
|
44868
|
+
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
44831
44869
|
if (source == null) return {};
|
|
44832
44870
|
var target = {};
|
|
44833
44871
|
var sourceKeys = Object.keys(source);
|
|
@@ -44843,9 +44881,9 @@ function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, exclu
|
|
|
44843
44881
|
}
|
|
44844
44882
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
44845
44883
|
|
|
44846
|
-
function
|
|
44884
|
+
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
44847
44885
|
if (source == null) return {};
|
|
44848
|
-
var target =
|
|
44886
|
+
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
44849
44887
|
var key, i;
|
|
44850
44888
|
|
|
44851
44889
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45806,14 +45844,14 @@ var index = (function () {
|
|
|
45806
45844
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
45807
45845
|
|
|
45808
45846
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
45809
|
-
|
|
45847
|
+
inherits_inherits(ReactResizeObserver, _React$Component);
|
|
45810
45848
|
|
|
45811
|
-
var _super =
|
|
45849
|
+
var _super = createSuper_createSuper(ReactResizeObserver);
|
|
45812
45850
|
|
|
45813
45851
|
function ReactResizeObserver() {
|
|
45814
45852
|
var _this;
|
|
45815
45853
|
|
|
45816
|
-
|
|
45854
|
+
classCallCheck_classCallCheck(this, ReactResizeObserver);
|
|
45817
45855
|
|
|
45818
45856
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45819
45857
|
args[_key] = arguments[_key];
|
|
@@ -45864,7 +45902,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45864
45902
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
45865
45903
|
|
|
45866
45904
|
Promise.resolve().then(function () {
|
|
45867
|
-
onResize(
|
|
45905
|
+
onResize(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, size), {}, {
|
|
45868
45906
|
offsetWidth: mergedOffsetWidth,
|
|
45869
45907
|
offsetHeight: mergedOffsetHeight
|
|
45870
45908
|
}), target);
|
|
@@ -45880,7 +45918,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45880
45918
|
return _this;
|
|
45881
45919
|
}
|
|
45882
45920
|
|
|
45883
|
-
|
|
45921
|
+
createClass_createClass(ReactResizeObserver, [{
|
|
45884
45922
|
key: "componentDidMount",
|
|
45885
45923
|
value: function componentDidMount() {
|
|
45886
45924
|
this.onComponentUpdated();
|
|
@@ -46951,7 +46989,7 @@ function RawList(props, ref) {
|
|
|
46951
46989
|
onScroll = props.onScroll,
|
|
46952
46990
|
onVisibleChange = props.onVisibleChange,
|
|
46953
46991
|
innerProps = props.innerProps,
|
|
46954
|
-
restProps =
|
|
46992
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
46955
46993
|
// ================================= MISC =================================
|
|
46956
46994
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
46957
46995
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
@@ -47320,7 +47358,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
47320
47358
|
return values;
|
|
47321
47359
|
}
|
|
47322
47360
|
function removeLastEnabledValue(measureValues, values) {
|
|
47323
|
-
var newValues =
|
|
47361
|
+
var newValues = toConsumableArray_toConsumableArray(values);
|
|
47324
47362
|
|
|
47325
47363
|
var removeIndex;
|
|
47326
47364
|
|
|
@@ -47454,7 +47492,7 @@ function flattenOptions(options) {
|
|
|
47454
47492
|
*/
|
|
47455
47493
|
|
|
47456
47494
|
function injectPropsWithOption(option) {
|
|
47457
|
-
var newOption =
|
|
47495
|
+
var newOption = objectSpread2_objectSpread2({}, option);
|
|
47458
47496
|
|
|
47459
47497
|
if (!('props' in newOption)) {
|
|
47460
47498
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47488,7 +47526,7 @@ function findValueOption(values, options) {
|
|
|
47488
47526
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47489
47527
|
|
|
47490
47528
|
if (!option) {
|
|
47491
|
-
option =
|
|
47529
|
+
option = objectSpread2_objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47492
47530
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47493
47531
|
}));
|
|
47494
47532
|
}
|
|
@@ -47507,7 +47545,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47507
47545
|
};
|
|
47508
47546
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47509
47547
|
|
|
47510
|
-
if (prevValItem &&
|
|
47548
|
+
if (prevValItem && esm_typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47511
47549
|
result.label = prevValItem.label;
|
|
47512
47550
|
|
|
47513
47551
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -47555,7 +47593,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47555
47593
|
var filterFunc;
|
|
47556
47594
|
|
|
47557
47595
|
if (filterOption === false) {
|
|
47558
|
-
return
|
|
47596
|
+
return toConsumableArray_toConsumableArray(options);
|
|
47559
47597
|
}
|
|
47560
47598
|
|
|
47561
47599
|
if (typeof filterOption === 'function') {
|
|
@@ -47579,7 +47617,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47579
47617
|
});
|
|
47580
47618
|
|
|
47581
47619
|
if (subOptions.length) {
|
|
47582
|
-
filteredOptions.push(
|
|
47620
|
+
filteredOptions.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
47583
47621
|
options: subOptions
|
|
47584
47622
|
}));
|
|
47585
47623
|
}
|
|
@@ -47613,7 +47651,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
47613
47651
|
var list = str.split(token);
|
|
47614
47652
|
match = match || list.length > 1;
|
|
47615
47653
|
return list.reduce(function (prevList, unitStr) {
|
|
47616
|
-
return [].concat(
|
|
47654
|
+
return [].concat(toConsumableArray_toConsumableArray(prevList), toConsumableArray_toConsumableArray(separate(unitStr, restTokens)));
|
|
47617
47655
|
}, []).filter(function (unit) {
|
|
47618
47656
|
return unit;
|
|
47619
47657
|
});
|
|
@@ -47633,7 +47671,7 @@ function isValueDisabled(value, options) {
|
|
|
47633
47671
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
47634
47672
|
var values = commonUtil_toArray(value).slice().sort();
|
|
47635
47673
|
|
|
47636
|
-
var cloneOptions =
|
|
47674
|
+
var cloneOptions = toConsumableArray_toConsumableArray(options); // Convert options value to set
|
|
47637
47675
|
|
|
47638
47676
|
|
|
47639
47677
|
var optionValues = new Set();
|
|
@@ -47653,7 +47691,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
47653
47691
|
if (!optionValues.has(val)) {
|
|
47654
47692
|
var _ref9;
|
|
47655
47693
|
|
|
47656
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
47694
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, defineProperty_defineProperty(_ref9, optionLabelProp, item.label), defineProperty_defineProperty(_ref9, "value", val), _ref9) : {
|
|
47657
47695
|
value: val
|
|
47658
47696
|
});
|
|
47659
47697
|
}
|
|
@@ -47919,7 +47957,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47919
47957
|
children = itemData.children;
|
|
47920
47958
|
var attrs = pickAttrs(itemData, true);
|
|
47921
47959
|
var mergedLabel = childrenAsData ? children : label;
|
|
47922
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47960
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
47923
47961
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
47924
47962
|
}, attrs, {
|
|
47925
47963
|
key: index,
|
|
@@ -47969,13 +48007,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47969
48007
|
children = data.children,
|
|
47970
48008
|
style = data.style,
|
|
47971
48009
|
className = data.className,
|
|
47972
|
-
otherProps =
|
|
48010
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(data, OptionList_excluded);
|
|
47973
48011
|
|
|
47974
48012
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
47975
48013
|
|
|
47976
48014
|
var selected = values.has(value);
|
|
47977
48015
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
47978
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
48016
|
+
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));
|
|
47979
48017
|
var mergedLabel = childrenAsData ? children : label;
|
|
47980
48018
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
47981
48019
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -47986,7 +48024,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47986
48024
|
optionTitle = title;
|
|
47987
48025
|
}
|
|
47988
48026
|
|
|
47989
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
48027
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, passedProps, {
|
|
47990
48028
|
"aria-selected": selected,
|
|
47991
48029
|
className: optionClassName,
|
|
47992
48030
|
title: optionTitle,
|
|
@@ -48047,9 +48085,9 @@ function convertNodeToOption(node) {
|
|
|
48047
48085
|
_node$props = node.props,
|
|
48048
48086
|
children = _node$props.children,
|
|
48049
48087
|
value = _node$props.value,
|
|
48050
|
-
restProps =
|
|
48088
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
48051
48089
|
|
|
48052
|
-
return
|
|
48090
|
+
return objectSpread2_objectSpread2({
|
|
48053
48091
|
key: key,
|
|
48054
48092
|
value: value !== undefined ? value : key,
|
|
48055
48093
|
children: children
|
|
@@ -48067,13 +48105,13 @@ function convertChildrenToData(nodes) {
|
|
|
48067
48105
|
key = node.key,
|
|
48068
48106
|
_node$props2 = node.props,
|
|
48069
48107
|
children = _node$props2.children,
|
|
48070
|
-
restProps =
|
|
48108
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props2, _excluded2);
|
|
48071
48109
|
|
|
48072
48110
|
if (optionOnly || !isSelectOptGroup) {
|
|
48073
48111
|
return convertNodeToOption(node);
|
|
48074
48112
|
}
|
|
48075
48113
|
|
|
48076
|
-
return
|
|
48114
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
48077
48115
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
48078
48116
|
label: key
|
|
48079
48117
|
}, restProps), {}, {
|
|
@@ -48150,41 +48188,6 @@ function useControlledState(defaultStateValue, option) {
|
|
|
48150
48188
|
}, [value]);
|
|
48151
48189
|
return [mergedValue, triggerChange];
|
|
48152
48190
|
}
|
|
48153
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
48154
|
-
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
48155
|
-
if (source == null) return {};
|
|
48156
|
-
var target = {};
|
|
48157
|
-
var sourceKeys = Object.keys(source);
|
|
48158
|
-
var key, i;
|
|
48159
|
-
|
|
48160
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
48161
|
-
key = sourceKeys[i];
|
|
48162
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
48163
|
-
target[key] = source[key];
|
|
48164
|
-
}
|
|
48165
|
-
|
|
48166
|
-
return target;
|
|
48167
|
-
}
|
|
48168
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
48169
|
-
|
|
48170
|
-
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
48171
|
-
if (source == null) return {};
|
|
48172
|
-
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
48173
|
-
var key, i;
|
|
48174
|
-
|
|
48175
|
-
if (Object.getOwnPropertySymbols) {
|
|
48176
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
48177
|
-
|
|
48178
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
48179
|
-
key = sourceSymbolKeys[i];
|
|
48180
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
48181
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
48182
|
-
target[key] = source[key];
|
|
48183
|
-
}
|
|
48184
|
-
}
|
|
48185
|
-
|
|
48186
|
-
return target;
|
|
48187
|
-
}
|
|
48188
48191
|
;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/Item.js
|
|
48189
48192
|
|
|
48190
48193
|
|
|
@@ -48210,7 +48213,7 @@ function InternalItem(props, ref) {
|
|
|
48210
48213
|
order = props.order,
|
|
48211
48214
|
_props$component = props.component,
|
|
48212
48215
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48213
|
-
restProps =
|
|
48216
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48214
48217
|
|
|
48215
48218
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48216
48219
|
|
|
@@ -48277,7 +48280,7 @@ Item_Item.displayName = 'Item';
|
|
|
48277
48280
|
|
|
48278
48281
|
function useBatchFrameState() {
|
|
48279
48282
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
48280
|
-
_useState2 =
|
|
48283
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
48281
48284
|
forceUpdate = _useState2[1];
|
|
48282
48285
|
|
|
48283
48286
|
var statesRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)([]);
|
|
@@ -48331,7 +48334,7 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48331
48334
|
if (!context) {
|
|
48332
48335
|
var _props$component = props.component,
|
|
48333
48336
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48334
|
-
_restProps =
|
|
48337
|
+
_restProps = objectWithoutProperties_objectWithoutProperties(props, ["component"]);
|
|
48335
48338
|
|
|
48336
48339
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, _restProps, {
|
|
48337
48340
|
ref: ref
|
|
@@ -48339,10 +48342,10 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48339
48342
|
}
|
|
48340
48343
|
|
|
48341
48344
|
var contextClassName = context.className,
|
|
48342
|
-
restContext =
|
|
48345
|
+
restContext = objectWithoutProperties_objectWithoutProperties(context, ["className"]);
|
|
48343
48346
|
|
|
48344
48347
|
var className = props.className,
|
|
48345
|
-
restProps =
|
|
48348
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48346
48349
|
|
|
48347
48350
|
|
|
48348
48351
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
@@ -48397,45 +48400,45 @@ function Overflow(props, ref) {
|
|
|
48397
48400
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48398
48401
|
itemComponent = props.itemComponent,
|
|
48399
48402
|
onVisibleChange = props.onVisibleChange,
|
|
48400
|
-
restProps =
|
|
48403
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48401
48404
|
|
|
48402
48405
|
var createUseState = useBatchFrameState();
|
|
48403
48406
|
var fullySSR = ssr === 'full';
|
|
48404
48407
|
|
|
48405
48408
|
var _createUseState = createUseState(null),
|
|
48406
|
-
_createUseState2 =
|
|
48409
|
+
_createUseState2 = slicedToArray_slicedToArray(_createUseState, 2),
|
|
48407
48410
|
containerWidth = _createUseState2[0],
|
|
48408
48411
|
setContainerWidth = _createUseState2[1];
|
|
48409
48412
|
|
|
48410
48413
|
var mergedContainerWidth = containerWidth || 0;
|
|
48411
48414
|
|
|
48412
48415
|
var _createUseState3 = createUseState(new Map()),
|
|
48413
|
-
_createUseState4 =
|
|
48416
|
+
_createUseState4 = slicedToArray_slicedToArray(_createUseState3, 2),
|
|
48414
48417
|
itemWidths = _createUseState4[0],
|
|
48415
48418
|
setItemWidths = _createUseState4[1];
|
|
48416
48419
|
|
|
48417
48420
|
var _createUseState5 = createUseState(0),
|
|
48418
|
-
_createUseState6 =
|
|
48421
|
+
_createUseState6 = slicedToArray_slicedToArray(_createUseState5, 2),
|
|
48419
48422
|
prevRestWidth = _createUseState6[0],
|
|
48420
48423
|
setPrevRestWidth = _createUseState6[1];
|
|
48421
48424
|
|
|
48422
48425
|
var _createUseState7 = createUseState(0),
|
|
48423
|
-
_createUseState8 =
|
|
48426
|
+
_createUseState8 = slicedToArray_slicedToArray(_createUseState7, 2),
|
|
48424
48427
|
restWidth = _createUseState8[0],
|
|
48425
48428
|
setRestWidth = _createUseState8[1];
|
|
48426
48429
|
|
|
48427
48430
|
var _createUseState9 = createUseState(0),
|
|
48428
|
-
_createUseState10 =
|
|
48431
|
+
_createUseState10 = slicedToArray_slicedToArray(_createUseState9, 2),
|
|
48429
48432
|
suffixWidth = _createUseState10[0],
|
|
48430
48433
|
setSuffixWidth = _createUseState10[1];
|
|
48431
48434
|
|
|
48432
48435
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48433
|
-
_useState2 =
|
|
48436
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
48434
48437
|
suffixFixedStart = _useState2[0],
|
|
48435
48438
|
setSuffixFixedStart = _useState2[1];
|
|
48436
48439
|
|
|
48437
48440
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48438
|
-
_useState4 =
|
|
48441
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
48439
48442
|
displayCount = _useState4[0],
|
|
48440
48443
|
setDisplayCount = _useState4[1];
|
|
48441
48444
|
|
|
@@ -48448,7 +48451,7 @@ function Overflow(props, ref) {
|
|
|
48448
48451
|
}, [displayCount, containerWidth]);
|
|
48449
48452
|
|
|
48450
48453
|
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
48451
|
-
_useState6 =
|
|
48454
|
+
_useState6 = slicedToArray_slicedToArray(_useState5, 2),
|
|
48452
48455
|
restReady = _useState6[0],
|
|
48453
48456
|
setRestReady = _useState6[1];
|
|
48454
48457
|
|
|
@@ -48871,7 +48874,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
48871
48874
|
|
|
48872
48875
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
48873
48876
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48874
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
48877
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), defineProperty_defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
48875
48878
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
48876
48879
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48877
48880
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -49286,7 +49289,7 @@ var Selector = function Selector(props, ref) {
|
|
|
49286
49289
|
onInputCompositionStart: onInputCompositionStart,
|
|
49287
49290
|
onInputCompositionEnd: onInputCompositionEnd
|
|
49288
49291
|
};
|
|
49289
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
49292
|
+
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));
|
|
49290
49293
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
49291
49294
|
ref: domRef,
|
|
49292
49295
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -50822,7 +50825,7 @@ function monitorResize(element, callback) {
|
|
|
50822
50825
|
var prevHeight = null;
|
|
50823
50826
|
|
|
50824
50827
|
function onResize(_ref) {
|
|
50825
|
-
var _ref2 =
|
|
50828
|
+
var _ref2 = slicedToArray_slicedToArray(_ref, 1),
|
|
50826
50829
|
target = _ref2[0].target;
|
|
50827
50830
|
|
|
50828
50831
|
if (!document.documentElement.contains(target)) return;
|
|
@@ -50981,7 +50984,7 @@ var Align = function Align(_ref, ref) {
|
|
|
50981
50984
|
|
|
50982
50985
|
return false;
|
|
50983
50986
|
}, monitorBufferTime),
|
|
50984
|
-
_useBuffer2 =
|
|
50987
|
+
_useBuffer2 = slicedToArray_slicedToArray(_useBuffer, 2),
|
|
50985
50988
|
_forceAlign = _useBuffer2[0],
|
|
50986
50989
|
cancelForceAlign = _useBuffer2[1]; // ===================== Effect =====================
|
|
50987
50990
|
// Listen for target updated
|
|
@@ -51069,45 +51072,6 @@ RcAlign.displayName = 'Align';
|
|
|
51069
51072
|
// export this package's api
|
|
51070
51073
|
|
|
51071
51074
|
/* harmony default export */ var rc_align_es = (es_Align);
|
|
51072
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
51073
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
51074
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
51075
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
51076
|
-
function esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
51077
|
-
try {
|
|
51078
|
-
var info = gen[key](arg);
|
|
51079
|
-
var value = info.value;
|
|
51080
|
-
} catch (error) {
|
|
51081
|
-
reject(error);
|
|
51082
|
-
return;
|
|
51083
|
-
}
|
|
51084
|
-
|
|
51085
|
-
if (info.done) {
|
|
51086
|
-
resolve(value);
|
|
51087
|
-
} else {
|
|
51088
|
-
Promise.resolve(value).then(_next, _throw);
|
|
51089
|
-
}
|
|
51090
|
-
}
|
|
51091
|
-
|
|
51092
|
-
function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
51093
|
-
return function () {
|
|
51094
|
-
var self = this,
|
|
51095
|
-
args = arguments;
|
|
51096
|
-
return new Promise(function (resolve, reject) {
|
|
51097
|
-
var gen = fn.apply(self, args);
|
|
51098
|
-
|
|
51099
|
-
function _next(value) {
|
|
51100
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
51101
|
-
}
|
|
51102
|
-
|
|
51103
|
-
function _throw(err) {
|
|
51104
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
51105
|
-
}
|
|
51106
|
-
|
|
51107
|
-
_next(undefined);
|
|
51108
|
-
});
|
|
51109
|
-
};
|
|
51110
|
-
}
|
|
51111
51075
|
;// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/useVisibleStatus.js
|
|
51112
51076
|
|
|
51113
51077
|
|
|
@@ -51117,7 +51081,7 @@ function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
|
51117
51081
|
var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
51118
51082
|
/* harmony default export */ var useVisibleStatus = (function (visible, doMeasure) {
|
|
51119
51083
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
51120
|
-
_useState2 =
|
|
51084
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
51121
51085
|
status = _useState2[0],
|
|
51122
51086
|
setInternalStatus = _useState2[1];
|
|
51123
51087
|
|
|
@@ -51170,7 +51134,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51170
51134
|
}
|
|
51171
51135
|
|
|
51172
51136
|
if (status) {
|
|
51173
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/
|
|
51137
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
51174
51138
|
var index, nextStatus;
|
|
51175
51139
|
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
51176
51140
|
while (1) {
|
|
@@ -51208,7 +51172,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51208
51172
|
width: 0,
|
|
51209
51173
|
height: 0
|
|
51210
51174
|
}),
|
|
51211
|
-
_React$useState2 =
|
|
51175
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
51212
51176
|
targetSize = _React$useState2[0],
|
|
51213
51177
|
setTargetSize = _React$useState2[1];
|
|
51214
51178
|
|
|
@@ -51279,13 +51243,13 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51279
51243
|
var elementRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
51280
51244
|
|
|
51281
51245
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
51282
|
-
_useState2 =
|
|
51246
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
51283
51247
|
alignedClassName = _useState2[0],
|
|
51284
51248
|
setAlignedClassName = _useState2[1]; // ======================= Measure ========================
|
|
51285
51249
|
|
|
51286
51250
|
|
|
51287
51251
|
var _useStretchStyle = useStretchStyle(stretch),
|
|
51288
|
-
_useStretchStyle2 =
|
|
51252
|
+
_useStretchStyle2 = slicedToArray_slicedToArray(_useStretchStyle, 2),
|
|
51289
51253
|
stretchStyle = _useStretchStyle2[0],
|
|
51290
51254
|
measureStretchStyle = _useStretchStyle2[1];
|
|
51291
51255
|
|
|
@@ -51297,7 +51261,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51297
51261
|
|
|
51298
51262
|
|
|
51299
51263
|
var _useVisibleStatus = useVisibleStatus(visible, doMeasure),
|
|
51300
|
-
_useVisibleStatus2 =
|
|
51264
|
+
_useVisibleStatus2 = slicedToArray_slicedToArray(_useVisibleStatus, 2),
|
|
51301
51265
|
status = _useVisibleStatus2[0],
|
|
51302
51266
|
goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
|
|
51303
51267
|
|
|
@@ -51511,15 +51475,15 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51511
51475
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51512
51476
|
var visible = _ref.visible,
|
|
51513
51477
|
mobile = _ref.mobile,
|
|
51514
|
-
props =
|
|
51478
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref, Popup_excluded);
|
|
51515
51479
|
|
|
51516
51480
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51517
|
-
_useState2 =
|
|
51481
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
51518
51482
|
innerVisible = _useState2[0],
|
|
51519
51483
|
serInnerVisible = _useState2[1];
|
|
51520
51484
|
|
|
51521
51485
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
51522
|
-
_useState4 =
|
|
51486
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
51523
51487
|
inMobile = _useState4[0],
|
|
51524
51488
|
setInMobile = _useState4[1];
|
|
51525
51489
|
|
|
@@ -52428,7 +52392,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52428
52392
|
empty = props.empty,
|
|
52429
52393
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
52430
52394
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
52431
|
-
restProps =
|
|
52395
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SelectTrigger_excluded);
|
|
52432
52396
|
|
|
52433
52397
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
52434
52398
|
var popupNode = popupElement;
|
|
@@ -52452,7 +52416,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52452
52416
|
};
|
|
52453
52417
|
});
|
|
52454
52418
|
|
|
52455
|
-
var popupStyle =
|
|
52419
|
+
var popupStyle = objectSpread2_objectSpread2({
|
|
52456
52420
|
minWidth: containerWidth
|
|
52457
52421
|
}, dropdownStyle);
|
|
52458
52422
|
|
|
@@ -52462,7 +52426,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52462
52426
|
popupStyle.width = containerWidth;
|
|
52463
52427
|
}
|
|
52464
52428
|
|
|
52465
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
52429
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, esm_extends_extends({}, restProps, {
|
|
52466
52430
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
52467
52431
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
52468
52432
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -52475,7 +52439,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52475
52439
|
popupAlign: dropdownAlign,
|
|
52476
52440
|
popupVisible: visible,
|
|
52477
52441
|
getPopupContainer: getPopupContainer,
|
|
52478
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52442
|
+
popupClassName: classnames_default()(dropdownClassName, defineProperty_defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
52479
52443
|
popupStyle: popupStyle,
|
|
52480
52444
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
52481
52445
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52578,7 +52542,7 @@ function useCacheDisplayValue(values) {
|
|
|
52578
52542
|
var cacheLabel = valueLabels.get(item.value);
|
|
52579
52543
|
|
|
52580
52544
|
if (item.isCacheable && cacheLabel) {
|
|
52581
|
-
return
|
|
52545
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
52582
52546
|
label: cacheLabel
|
|
52583
52547
|
});
|
|
52584
52548
|
}
|
|
@@ -52740,7 +52704,7 @@ function generateSelector(config) {
|
|
|
52740
52704
|
onClear = props.onClear,
|
|
52741
52705
|
_props$internalProps = props.internalProps,
|
|
52742
52706
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
52743
|
-
restProps =
|
|
52707
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, generate_excluded);
|
|
52744
52708
|
|
|
52745
52709
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
52746
52710
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -52878,7 +52842,7 @@ function generateSelector(config) {
|
|
|
52878
52842
|
|
|
52879
52843
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
52880
52844
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
52881
|
-
return
|
|
52845
|
+
return toConsumableArray_toConsumableArray(mergedOptions);
|
|
52882
52846
|
}
|
|
52883
52847
|
|
|
52884
52848
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -52899,7 +52863,7 @@ function generateSelector(config) {
|
|
|
52899
52863
|
}
|
|
52900
52864
|
|
|
52901
52865
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
52902
|
-
return
|
|
52866
|
+
return toConsumableArray_toConsumableArray(filteredOptions).sort(filterSort);
|
|
52903
52867
|
}
|
|
52904
52868
|
|
|
52905
52869
|
return filteredOptions;
|
|
@@ -52922,7 +52886,7 @@ function generateSelector(config) {
|
|
|
52922
52886
|
labelInValue: mergedLabelInValue,
|
|
52923
52887
|
optionLabelProp: mergedOptionLabelProp
|
|
52924
52888
|
});
|
|
52925
|
-
return
|
|
52889
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, displayValue), {}, {
|
|
52926
52890
|
disabled: isValueDisabled(val, valueOptions)
|
|
52927
52891
|
});
|
|
52928
52892
|
});
|
|
@@ -52996,7 +52960,7 @@ function generateSelector(config) {
|
|
|
52996
52960
|
}); // We will cache option in case it removed by ajax
|
|
52997
52961
|
|
|
52998
52962
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
52999
|
-
var clone =
|
|
52963
|
+
var clone = objectSpread2_objectSpread2({}, option);
|
|
53000
52964
|
|
|
53001
52965
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
53002
52966
|
get: function get() {
|
|
@@ -53052,13 +53016,13 @@ function generateSelector(config) {
|
|
|
53052
53016
|
};
|
|
53053
53017
|
|
|
53054
53018
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
53055
|
-
onInternalSelect(newValue,
|
|
53019
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
53056
53020
|
source: 'option'
|
|
53057
53021
|
}));
|
|
53058
53022
|
};
|
|
53059
53023
|
|
|
53060
53024
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
53061
|
-
onInternalSelect(newValue,
|
|
53025
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
53062
53026
|
source: 'selection'
|
|
53063
53027
|
}));
|
|
53064
53028
|
}; // ============================= Input ==============================
|
|
@@ -53142,7 +53106,7 @@ function generateSelector(config) {
|
|
|
53142
53106
|
});
|
|
53143
53107
|
}
|
|
53144
53108
|
|
|
53145
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53109
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), toConsumableArray_toConsumableArray(patchRawValues))));
|
|
53146
53110
|
triggerChange(newRawValues);
|
|
53147
53111
|
newRawValues.forEach(function (newRawValue) {
|
|
53148
53112
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53171,7 +53135,7 @@ function generateSelector(config) {
|
|
|
53171
53135
|
return;
|
|
53172
53136
|
}
|
|
53173
53137
|
|
|
53174
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53138
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [searchText])));
|
|
53175
53139
|
triggerChange(newRawValues);
|
|
53176
53140
|
newRawValues.forEach(function (newRawValue) {
|
|
53177
53141
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53304,7 +53268,7 @@ function generateSelector(config) {
|
|
|
53304
53268
|
// `tags` mode should move `searchValue` into values
|
|
53305
53269
|
if (mode === 'tags') {
|
|
53306
53270
|
triggerSearch('', false, false);
|
|
53307
|
-
triggerChange(Array.from(new Set([].concat(
|
|
53271
|
+
triggerChange(Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
53308
53272
|
} else if (mode === 'multiple') {
|
|
53309
53273
|
// `multiple` mode only clean the search value but not trigger event
|
|
53310
53274
|
setInnerSearchValue('');
|
|
@@ -53462,7 +53426,7 @@ function generateSelector(config) {
|
|
|
53462
53426
|
|
|
53463
53427
|
if (mergedShowArrow) {
|
|
53464
53428
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
53465
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53429
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), defineProperty_defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
53466
53430
|
customizeIcon: inputIcon,
|
|
53467
53431
|
customizeIconProps: {
|
|
53468
53432
|
loading: loading,
|
|
@@ -53478,7 +53442,7 @@ function generateSelector(config) {
|
|
|
53478
53442
|
if (false) {} // ============================= Render =============================
|
|
53479
53443
|
|
|
53480
53444
|
|
|
53481
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
53445
|
+
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));
|
|
53482
53446
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
53483
53447
|
ref: triggerRef,
|
|
53484
53448
|
disabled: disabled,
|
|
@@ -53503,7 +53467,7 @@ function generateSelector(config) {
|
|
|
53503
53467
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
53504
53468
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
53505
53469
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
53506
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
53470
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, esm_extends_extends({}, props, {
|
|
53507
53471
|
domRef: selectorDomRef,
|
|
53508
53472
|
prefixCls: prefixCls,
|
|
53509
53473
|
inputElement: customizeInputElement,
|
|
@@ -53529,7 +53493,7 @@ function generateSelector(config) {
|
|
|
53529
53493
|
return selectorNode;
|
|
53530
53494
|
}
|
|
53531
53495
|
|
|
53532
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
53496
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
53533
53497
|
className: mergedClassName
|
|
53534
53498
|
}, domProps, {
|
|
53535
53499
|
ref: containerRef,
|
|
@@ -53616,7 +53580,7 @@ function warningProps(props) {
|
|
|
53616
53580
|
if (value !== undefined && value !== null) {
|
|
53617
53581
|
var values = commonUtil_toArray(value);
|
|
53618
53582
|
es_warning(!labelInValue || values.every(function (val) {
|
|
53619
|
-
return
|
|
53583
|
+
return esm_typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
53620
53584
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
53621
53585
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
53622
53586
|
} // Syntactic sugar should use correct children type
|
|
@@ -53730,14 +53694,14 @@ var RefSelect = generateSelector({
|
|
|
53730
53694
|
*/
|
|
53731
53695
|
|
|
53732
53696
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
53733
|
-
|
|
53697
|
+
inherits_inherits(Select, _React$Component);
|
|
53734
53698
|
|
|
53735
|
-
var _super =
|
|
53699
|
+
var _super = createSuper_createSuper(Select);
|
|
53736
53700
|
|
|
53737
53701
|
function Select() {
|
|
53738
53702
|
var _this;
|
|
53739
53703
|
|
|
53740
|
-
|
|
53704
|
+
classCallCheck_classCallCheck(this, Select);
|
|
53741
53705
|
|
|
53742
53706
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53743
53707
|
args[_key] = arguments[_key];
|
|
@@ -53757,10 +53721,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
53757
53721
|
return _this;
|
|
53758
53722
|
}
|
|
53759
53723
|
|
|
53760
|
-
|
|
53724
|
+
createClass_createClass(Select, [{
|
|
53761
53725
|
key: "render",
|
|
53762
53726
|
value: function render() {
|
|
53763
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
53727
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, esm_extends_extends({
|
|
53764
53728
|
ref: this.selectRef
|
|
53765
53729
|
}, this.props));
|
|
53766
53730
|
}
|
|
@@ -53941,7 +53905,7 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
53941
53905
|
} // ===================== Icons =====================
|
|
53942
53906
|
|
|
53943
53907
|
|
|
53944
|
-
var _getIcons = getIcons(
|
|
53908
|
+
var _getIcons = getIcons(esm_extends_extends(esm_extends_extends({}, props), {
|
|
53945
53909
|
multiple: isMultiple,
|
|
53946
53910
|
prefixCls: prefixCls
|
|
53947
53911
|
})),
|
|
@@ -53951,10 +53915,10 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
53951
53915
|
clearIcon = _getIcons.clearIcon;
|
|
53952
53916
|
|
|
53953
53917
|
var selectProps = omit(props, ['suffixIcon', 'itemIcon']);
|
|
53954
|
-
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName,
|
|
53918
|
+
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
|
|
53955
53919
|
var mergedSize = customizeSize || size;
|
|
53956
|
-
var mergedClassName = classnames_default()((_classNames2 = {},
|
|
53957
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es,
|
|
53920
|
+
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);
|
|
53921
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es, esm_extends_extends({
|
|
53958
53922
|
ref: ref,
|
|
53959
53923
|
virtual: virtual,
|
|
53960
53924
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth
|
|
@@ -55246,9 +55210,9 @@ function LiveOnlineCount(_ref) {
|
|
|
55246
55210
|
};
|
|
55247
55211
|
|
|
55248
55212
|
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
55249
|
-
LiveOnlineCount_asyncToGenerator( /*#__PURE__*/
|
|
55213
|
+
LiveOnlineCount_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
55250
55214
|
var count, likesData, currentCount;
|
|
55251
|
-
return
|
|
55215
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
55252
55216
|
while (1) {
|
|
55253
55217
|
switch (_context.prev = _context.next) {
|
|
55254
55218
|
case 0:
|
|
@@ -55840,6 +55804,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55840
55804
|
className: src_detail_index_module["live-wrap"]
|
|
55841
55805
|
}, // eslint-disable-next-line no-nested-ternary
|
|
55842
55806
|
isReplayMode ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(ReplayVideo, {
|
|
55807
|
+
userInfo: userInfo,
|
|
55843
55808
|
handleLogin: handleLogin,
|
|
55844
55809
|
liveInfo: liveInfo,
|
|
55845
55810
|
autoplay: isLiveToReplay,
|
|
@@ -56069,7 +56034,7 @@ function TabNode(_ref, ref) {
|
|
|
56069
56034
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
56070
56035
|
key: key,
|
|
56071
56036
|
ref: ref,
|
|
56072
|
-
className: classnames_default()(tabPrefix, (_classNames = {},
|
|
56037
|
+
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)),
|
|
56073
56038
|
style: style,
|
|
56074
56039
|
onClick: onInternalClick
|
|
56075
56040
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -56132,7 +56097,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
56132
56097
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
56133
56098
|
}
|
|
56134
56099
|
|
|
56135
|
-
var entity = map.get(key) ||
|
|
56100
|
+
var entity = map.get(key) || objectSpread2_objectSpread2({}, data); // Right
|
|
56136
56101
|
|
|
56137
56102
|
|
|
56138
56103
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -56227,7 +56192,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56227
56192
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56228
56193
|
|
|
56229
56194
|
function mergeProps(origin, target) {
|
|
56230
|
-
var clone =
|
|
56195
|
+
var clone = objectSpread2_objectSpread2({}, origin);
|
|
56231
56196
|
|
|
56232
56197
|
Object.keys(target).forEach(function (key) {
|
|
56233
56198
|
var value = target[key];
|
|
@@ -56242,7 +56207,7 @@ function mergeProps(origin, target) {
|
|
|
56242
56207
|
function InheritableContextProvider(_ref) {
|
|
56243
56208
|
var children = _ref.children,
|
|
56244
56209
|
locked = _ref.locked,
|
|
56245
|
-
restProps =
|
|
56210
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56246
56211
|
|
|
56247
56212
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56248
56213
|
var inheritableContext = useMemo(function () {
|
|
@@ -56298,7 +56263,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56298
56263
|
|
|
56299
56264
|
function warnItemProp(_ref) {
|
|
56300
56265
|
var item = _ref.item,
|
|
56301
|
-
restInfo =
|
|
56266
|
+
restInfo = objectWithoutProperties_objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56302
56267
|
|
|
56303
56268
|
Object.defineProperty(restInfo, 'item', {
|
|
56304
56269
|
get: function get() {
|
|
@@ -56318,7 +56283,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56318
56283
|
var iconNode;
|
|
56319
56284
|
|
|
56320
56285
|
if (typeof icon === 'function') {
|
|
56321
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
56286
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, objectSpread2_objectSpread2({}, props));
|
|
56322
56287
|
} else {
|
|
56323
56288
|
// Compatible for origin definition
|
|
56324
56289
|
iconNode = icon;
|
|
@@ -56359,7 +56324,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56359
56324
|
function useFullPath(eventKey) {
|
|
56360
56325
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56361
56326
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56362
|
-
return eventKey !== undefined ? [].concat(
|
|
56327
|
+
return eventKey !== undefined ? [].concat(toConsumableArray_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56363
56328
|
}, [parentKeyPath, eventKey]);
|
|
56364
56329
|
}
|
|
56365
56330
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56416,28 +56381,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56416
56381
|
// This should be removed from doc & api in future.
|
|
56417
56382
|
|
|
56418
56383
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56419
|
-
|
|
56384
|
+
inherits_inherits(LegacyMenuItem, _React$Component);
|
|
56420
56385
|
|
|
56421
|
-
var _super =
|
|
56386
|
+
var _super = createSuper_createSuper(LegacyMenuItem);
|
|
56422
56387
|
|
|
56423
56388
|
function LegacyMenuItem() {
|
|
56424
|
-
|
|
56389
|
+
classCallCheck_classCallCheck(this, LegacyMenuItem);
|
|
56425
56390
|
|
|
56426
56391
|
return _super.apply(this, arguments);
|
|
56427
56392
|
}
|
|
56428
56393
|
|
|
56429
|
-
|
|
56394
|
+
createClass_createClass(LegacyMenuItem, [{
|
|
56430
56395
|
key: "render",
|
|
56431
56396
|
value: function render() {
|
|
56432
56397
|
var _this$props = this.props,
|
|
56433
56398
|
title = _this$props.title,
|
|
56434
56399
|
attribute = _this$props.attribute,
|
|
56435
56400
|
elementRef = _this$props.elementRef,
|
|
56436
|
-
restProps =
|
|
56401
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56437
56402
|
|
|
56438
56403
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56439
56404
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56440
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56405
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, esm_extends_extends({}, attribute, {
|
|
56441
56406
|
title: typeof title === 'string' ? title : undefined
|
|
56442
56407
|
}, passedProps, {
|
|
56443
56408
|
ref: elementRef
|
|
@@ -56468,7 +56433,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56468
56433
|
onClick = props.onClick,
|
|
56469
56434
|
onKeyDown = props.onKeyDown,
|
|
56470
56435
|
onFocus = props.onFocus,
|
|
56471
|
-
restProps =
|
|
56436
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, MenuItem_excluded2);
|
|
56472
56437
|
|
|
56473
56438
|
var domDataId = useMenuId(eventKey);
|
|
56474
56439
|
|
|
@@ -56497,7 +56462,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56497
56462
|
return {
|
|
56498
56463
|
key: eventKey,
|
|
56499
56464
|
// Note: For legacy code is reversed which not like other antd component
|
|
56500
|
-
keyPath:
|
|
56465
|
+
keyPath: toConsumableArray_toConsumableArray(connectedKeys).reverse(),
|
|
56501
56466
|
item: legacyMenuItemRef.current,
|
|
56502
56467
|
domEvent: e
|
|
56503
56468
|
};
|
|
@@ -56508,7 +56473,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56508
56473
|
|
|
56509
56474
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56510
56475
|
active = _useActive.active,
|
|
56511
|
-
activeProps =
|
|
56476
|
+
activeProps = objectWithoutProperties_objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56512
56477
|
|
|
56513
56478
|
|
|
56514
56479
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56553,7 +56518,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56553
56518
|
optionRoleProps['aria-selected'] = selected;
|
|
56554
56519
|
}
|
|
56555
56520
|
|
|
56556
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56521
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, esm_extends_extends({
|
|
56557
56522
|
ref: legacyMenuItemRef,
|
|
56558
56523
|
elementRef: elementRef,
|
|
56559
56524
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56562,13 +56527,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56562
56527
|
}, restProps, activeProps, optionRoleProps, {
|
|
56563
56528
|
component: "li",
|
|
56564
56529
|
"aria-disabled": disabled,
|
|
56565
|
-
style:
|
|
56566
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56530
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, directionStyle), style),
|
|
56531
|
+
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),
|
|
56567
56532
|
onClick: onInternalClick,
|
|
56568
56533
|
onKeyDown: onInternalKeyDown,
|
|
56569
56534
|
onFocus: onInternalFocus
|
|
56570
56535
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56571
|
-
props:
|
|
56536
|
+
props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
56572
56537
|
isSelected: selected
|
|
56573
56538
|
}),
|
|
56574
56539
|
icon: mergedItemIcon
|
|
@@ -56669,7 +56634,7 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56669
56634
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56670
56635
|
var className = _ref.className,
|
|
56671
56636
|
children = _ref.children,
|
|
56672
|
-
restProps =
|
|
56637
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56673
56638
|
|
|
56674
56639
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56675
56640
|
prefixCls = _React$useContext.prefixCls,
|
|
@@ -56789,7 +56754,7 @@ function PopupTrigger(_ref) {
|
|
|
56789
56754
|
defaultMotions = _React$useContext.defaultMotions;
|
|
56790
56755
|
|
|
56791
56756
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
56792
|
-
_React$useState2 =
|
|
56757
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
56793
56758
|
innerVisible = _React$useState2[0],
|
|
56794
56759
|
setInnerVisible = _React$useState2[1];
|
|
56795
56760
|
|
|
@@ -56862,7 +56827,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56862
56827
|
// The inline list should remove when motion end.
|
|
56863
56828
|
|
|
56864
56829
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(!sameModeRef.current),
|
|
56865
|
-
_React$useState2 =
|
|
56830
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
56866
56831
|
destroy = _React$useState2[0],
|
|
56867
56832
|
setDestroy = _React$useState2[1];
|
|
56868
56833
|
|
|
@@ -56963,7 +56928,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56963
56928
|
onTitleClick = props.onTitleClick,
|
|
56964
56929
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
56965
56930
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
56966
|
-
restProps =
|
|
56931
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SubMenu_excluded);
|
|
56967
56932
|
|
|
56968
56933
|
var domDataId = useMenuId(eventKey);
|
|
56969
56934
|
|
|
@@ -57006,11 +56971,11 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57006
56971
|
|
|
57007
56972
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
57008
56973
|
active = _useActive.active,
|
|
57009
|
-
activeProps =
|
|
56974
|
+
activeProps = objectWithoutProperties_objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
57010
56975
|
|
|
57011
56976
|
|
|
57012
56977
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
57013
|
-
_React$useState2 =
|
|
56978
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57014
56979
|
childrenActive = _React$useState2[0],
|
|
57015
56980
|
setChildrenActive = _React$useState2[1];
|
|
57016
56981
|
|
|
@@ -57591,7 +57556,7 @@ function useUUID(id) {
|
|
|
57591
57556
|
var _useMergedState = useControlledState(id, {
|
|
57592
57557
|
value: id
|
|
57593
57558
|
}),
|
|
57594
|
-
_useMergedState2 =
|
|
57559
|
+
_useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
|
|
57595
57560
|
uuid = _useMergedState2[0],
|
|
57596
57561
|
setUUID = _useMergedState2[1];
|
|
57597
57562
|
|
|
@@ -57627,14 +57592,14 @@ var getPathKeys = function getPathKeys(keyPathStr) {
|
|
|
57627
57592
|
var OVERFLOW_KEY = 'rc-menu-more';
|
|
57628
57593
|
function useKeyRecords() {
|
|
57629
57594
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState({}),
|
|
57630
|
-
_React$useState2 =
|
|
57595
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57631
57596
|
internalForceUpdate = _React$useState2[1];
|
|
57632
57597
|
|
|
57633
57598
|
var key2pathRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57634
57599
|
var path2keyRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57635
57600
|
|
|
57636
57601
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
57637
|
-
_React$useState4 =
|
|
57602
|
+
_React$useState4 = slicedToArray_slicedToArray(_React$useState3, 2),
|
|
57638
57603
|
overflowKeys = _React$useState4[0],
|
|
57639
57604
|
setOverflowKeys = _React$useState4[1];
|
|
57640
57605
|
|
|
@@ -57827,7 +57792,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57827
57792
|
openTransitionName = props.openTransitionName,
|
|
57828
57793
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
57829
57794
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
57830
|
-
restProps =
|
|
57795
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, Menu_excluded);
|
|
57831
57796
|
|
|
57832
57797
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
57833
57798
|
|
|
@@ -57981,7 +57946,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57981
57946
|
return key !== targetKey;
|
|
57982
57947
|
});
|
|
57983
57948
|
} else {
|
|
57984
|
-
newSelectKeys = [].concat(
|
|
57949
|
+
newSelectKeys = [].concat(toConsumableArray_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
57985
57950
|
}
|
|
57986
57951
|
} else {
|
|
57987
57952
|
newSelectKeys = [targetKey];
|
|
@@ -57989,7 +57954,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57989
57954
|
|
|
57990
57955
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
57991
57956
|
|
|
57992
|
-
var selectInfo =
|
|
57957
|
+
var selectInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
57993
57958
|
selectedKeys: newSelectKeys
|
|
57994
57959
|
});
|
|
57995
57960
|
|
|
@@ -58067,13 +58032,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58067
58032
|
);
|
|
58068
58033
|
}); // >>>>> Container
|
|
58069
58034
|
|
|
58070
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
58035
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, esm_extends_extends({
|
|
58071
58036
|
id: id,
|
|
58072
58037
|
ref: mergedRef,
|
|
58073
58038
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
58074
58039
|
component: "ul",
|
|
58075
58040
|
itemComponent: es_MenuItem,
|
|
58076
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
58041
|
+
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)),
|
|
58077
58042
|
dir: direction,
|
|
58078
58043
|
style: style,
|
|
58079
58044
|
role: "menu",
|
|
@@ -58167,13 +58132,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58167
58132
|
title = _ref.title,
|
|
58168
58133
|
eventKey = _ref.eventKey,
|
|
58169
58134
|
children = _ref.children,
|
|
58170
|
-
restProps =
|
|
58135
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58171
58136
|
|
|
58172
58137
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58173
58138
|
prefixCls = _React$useContext.prefixCls;
|
|
58174
58139
|
|
|
58175
58140
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58176
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
58141
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", esm_extends_extends({}, restProps, {
|
|
58177
58142
|
onClick: function onClick(e) {
|
|
58178
58143
|
return e.stopPropagation();
|
|
58179
58144
|
},
|
|
@@ -58188,7 +58153,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58188
58153
|
|
|
58189
58154
|
function MenuItemGroup(_ref2) {
|
|
58190
58155
|
var children = _ref2.children,
|
|
58191
|
-
props =
|
|
58156
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58192
58157
|
|
|
58193
58158
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58194
58159
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58316,10 +58281,10 @@ function Dropdown(props, ref) {
|
|
|
58316
58281
|
visible = props.visible,
|
|
58317
58282
|
_props$trigger = props.trigger,
|
|
58318
58283
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58319
|
-
otherProps =
|
|
58284
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(props, Dropdown_excluded);
|
|
58320
58285
|
|
|
58321
58286
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58322
|
-
_React$useState2 =
|
|
58287
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
58323
58288
|
triggerVisible = _React$useState2[0],
|
|
58324
58289
|
setTriggerVisible = _React$useState2[1];
|
|
58325
58290
|
|
|
@@ -58636,14 +58601,14 @@ function OperationNode(_ref, ref) {
|
|
|
58636
58601
|
}
|
|
58637
58602
|
}, [open]); // ========================= Render =========================
|
|
58638
58603
|
|
|
58639
|
-
var moreStyle =
|
|
58604
|
+
var moreStyle = defineProperty_defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
58640
58605
|
|
|
58641
58606
|
if (!tabs.length) {
|
|
58642
58607
|
moreStyle.visibility = 'hidden';
|
|
58643
58608
|
moreStyle.order = 1;
|
|
58644
58609
|
}
|
|
58645
58610
|
|
|
58646
|
-
var overlayClassName = classnames_default()(
|
|
58611
|
+
var overlayClassName = classnames_default()(defineProperty_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
58647
58612
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
58648
58613
|
prefixCls: dropdownPrefix,
|
|
58649
58614
|
overlay: menu,
|
|
@@ -58922,7 +58887,7 @@ var ExtraContent = function ExtraContent(_ref) {
|
|
|
58922
58887
|
|
|
58923
58888
|
var assertExtra = {};
|
|
58924
58889
|
|
|
58925
|
-
if (extra &&
|
|
58890
|
+
if (extra && esm_typeof_typeof(extra) === 'object' && ! /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(extra)) {
|
|
58926
58891
|
assertExtra = extra;
|
|
58927
58892
|
} else {
|
|
58928
58893
|
assertExtra.right = extra;
|
|
@@ -59172,7 +59137,7 @@ function TabNavList(props, ref) {
|
|
|
59172
59137
|
}, {
|
|
59173
59138
|
width: addWidth,
|
|
59174
59139
|
height: addHeight
|
|
59175
|
-
},
|
|
59140
|
+
}, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
59176
59141
|
tabs: tabs
|
|
59177
59142
|
})),
|
|
59178
59143
|
_useVisibleRange2 = slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
@@ -59264,7 +59229,7 @@ function TabNavList(props, ref) {
|
|
|
59264
59229
|
|
|
59265
59230
|
var startHiddenTabs = tabs.slice(0, visibleStart);
|
|
59266
59231
|
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
|
59267
|
-
var hiddenTabs = [].concat(
|
|
59232
|
+
var hiddenTabs = [].concat(toConsumableArray_toConsumableArray(startHiddenTabs), toConsumableArray_toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
59268
59233
|
|
|
59269
59234
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59270
59235
|
_useState16 = slicedToArray_slicedToArray(_useState15, 2),
|
|
@@ -59350,7 +59315,7 @@ function TabNavList(props, ref) {
|
|
|
59350
59315
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59351
59316
|
onResize: onListHolderResize
|
|
59352
59317
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59353
|
-
className: classnames_default()(wrapPrefix, (_classNames = {},
|
|
59318
|
+
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)),
|
|
59354
59319
|
ref: tabsWrapperRef
|
|
59355
59320
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59356
59321
|
onResize: onListHolderResize
|
|
@@ -59366,13 +59331,13 @@ function TabNavList(props, ref) {
|
|
|
59366
59331
|
prefixCls: prefixCls,
|
|
59367
59332
|
locale: locale,
|
|
59368
59333
|
editable: editable,
|
|
59369
|
-
style:
|
|
59334
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {
|
|
59370
59335
|
visibility: hasDropdown ? 'hidden' : null
|
|
59371
59336
|
})
|
|
59372
59337
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59373
|
-
className: classnames_default()("".concat(prefixCls, "-ink-bar"),
|
|
59338
|
+
className: classnames_default()("".concat(prefixCls, "-ink-bar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
|
59374
59339
|
style: inkStyle
|
|
59375
|
-
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode,
|
|
59340
|
+
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode, esm_extends_extends({}, props, {
|
|
59376
59341
|
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
|
59377
59342
|
ref: operationsRef,
|
|
59378
59343
|
prefixCls: prefixCls,
|
|
@@ -59412,8 +59377,8 @@ function TabPanelList(_ref) {
|
|
|
59412
59377
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59413
59378
|
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
|
59414
59379
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59415
|
-
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition),
|
|
59416
|
-
style: activeIndex && tabPaneAnimated ?
|
|
59380
|
+
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), defineProperty_defineProperty({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated)),
|
|
59381
|
+
style: activeIndex && tabPaneAnimated ? defineProperty_defineProperty({}, rtl ? 'marginRight' : 'marginLeft', "-".concat(activeIndex, "00%")) : null
|
|
59417
59382
|
}, tabs.map(function (tab) {
|
|
59418
59383
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(tab.node, {
|
|
59419
59384
|
key: tab.key,
|
|
@@ -59473,7 +59438,7 @@ function TabPane(_ref) {
|
|
|
59473
59438
|
tabIndex: active ? 0 : -1,
|
|
59474
59439
|
"aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
|
|
59475
59440
|
"aria-hidden": !active,
|
|
59476
|
-
style:
|
|
59441
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedStyle), style),
|
|
59477
59442
|
className: classnames_default()("".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), className)
|
|
59478
59443
|
}, (active || visited || forceRender) && children);
|
|
59479
59444
|
}
|
|
@@ -59513,7 +59478,7 @@ function parseTabList(children) {
|
|
|
59513
59478
|
return toArray(children).map(function (node) {
|
|
59514
59479
|
if ( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(node)) {
|
|
59515
59480
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
59516
|
-
return
|
|
59481
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
59517
59482
|
key: key
|
|
59518
59483
|
}, node.props), {}, {
|
|
59519
59484
|
node: node
|
|
@@ -59556,7 +59521,7 @@ function Tabs(_ref, ref) {
|
|
|
59556
59521
|
onChange = _ref.onChange,
|
|
59557
59522
|
onTabClick = _ref.onTabClick,
|
|
59558
59523
|
onTabScroll = _ref.onTabScroll,
|
|
59559
|
-
restProps =
|
|
59524
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, Tabs_excluded);
|
|
59560
59525
|
|
|
59561
59526
|
var tabs = parseTabList(children);
|
|
59562
59527
|
var rtl = direction === 'rtl';
|
|
@@ -59573,10 +59538,10 @@ function Tabs(_ref, ref) {
|
|
|
59573
59538
|
tabPane: true
|
|
59574
59539
|
};
|
|
59575
59540
|
} else {
|
|
59576
|
-
mergedAnimated =
|
|
59541
|
+
mergedAnimated = objectSpread2_objectSpread2({
|
|
59577
59542
|
inkBar: true,
|
|
59578
59543
|
tabPane: false
|
|
59579
|
-
},
|
|
59544
|
+
}, esm_typeof_typeof(animated) === 'object' ? animated : {});
|
|
59580
59545
|
} // ======================== Mobile ========================
|
|
59581
59546
|
|
|
59582
59547
|
|
|
@@ -59671,7 +59636,7 @@ function Tabs(_ref, ref) {
|
|
|
59671
59636
|
};
|
|
59672
59637
|
var tabNavBar;
|
|
59673
59638
|
|
|
59674
|
-
var tabNavBarProps =
|
|
59639
|
+
var tabNavBarProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, sharedProps), {}, {
|
|
59675
59640
|
editable: editable,
|
|
59676
59641
|
locale: locale,
|
|
59677
59642
|
moreIcon: moreIcon,
|
|
@@ -59695,11 +59660,11 @@ function Tabs(_ref, ref) {
|
|
|
59695
59660
|
tabs: tabs,
|
|
59696
59661
|
prefixCls: prefixCls
|
|
59697
59662
|
}
|
|
59698
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
59663
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
59699
59664
|
ref: ref,
|
|
59700
59665
|
id: id,
|
|
59701
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {},
|
|
59702
|
-
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList,
|
|
59666
|
+
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)
|
|
59667
|
+
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList, esm_extends_extends({
|
|
59703
59668
|
destroyInactiveTabPane: destroyInactiveTabPane
|
|
59704
59669
|
}, sharedProps, {
|
|
59705
59670
|
animated: mergedAnimated
|
|
@@ -59785,11 +59750,11 @@ function tabs_Tabs(_a) {
|
|
|
59785
59750
|
var _classNames;
|
|
59786
59751
|
|
|
59787
59752
|
var size = propSize !== undefined ? propSize : contextSize;
|
|
59788
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es,
|
|
59753
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es, esm_extends_extends({
|
|
59789
59754
|
direction: direction,
|
|
59790
59755
|
moreTransitionName: "".concat(rootPrefixCls, "-slide-up")
|
|
59791
59756
|
}, props, {
|
|
59792
|
-
className: classnames_default()((_classNames = {},
|
|
59757
|
+
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),
|
|
59793
59758
|
editable: editable,
|
|
59794
59759
|
moreIcon: moreIcon,
|
|
59795
59760
|
prefixCls: prefixCls
|
|
@@ -59897,7 +59862,7 @@ var Pager = function Pager(props) {
|
|
|
59897
59862
|
var _classNames;
|
|
59898
59863
|
|
|
59899
59864
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
59900
|
-
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {},
|
|
59865
|
+
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));
|
|
59901
59866
|
|
|
59902
59867
|
var handleClick = function handleClick() {
|
|
59903
59868
|
props.onClick(props.page);
|
|
@@ -59942,14 +59907,14 @@ var Pager = function Pager(props) {
|
|
|
59942
59907
|
|
|
59943
59908
|
|
|
59944
59909
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
59945
|
-
|
|
59910
|
+
inherits_inherits(Options, _React$Component);
|
|
59946
59911
|
|
|
59947
|
-
var _super =
|
|
59912
|
+
var _super = createSuper_createSuper(Options);
|
|
59948
59913
|
|
|
59949
59914
|
function Options() {
|
|
59950
59915
|
var _this;
|
|
59951
59916
|
|
|
59952
|
-
|
|
59917
|
+
classCallCheck_classCallCheck(this, Options);
|
|
59953
59918
|
|
|
59954
59919
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59955
59920
|
args[_key] = arguments[_key];
|
|
@@ -60015,7 +59980,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
60015
59980
|
return _this;
|
|
60016
59981
|
}
|
|
60017
59982
|
|
|
60018
|
-
|
|
59983
|
+
createClass_createClass(Options, [{
|
|
60019
59984
|
key: "getValidValue",
|
|
60020
59985
|
value: function getValidValue() {
|
|
60021
59986
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -60172,14 +60137,14 @@ function calculatePage(p, state, props) {
|
|
|
60172
60137
|
}
|
|
60173
60138
|
|
|
60174
60139
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
60175
|
-
|
|
60140
|
+
inherits_inherits(Pagination, _React$Component);
|
|
60176
60141
|
|
|
60177
|
-
var _super =
|
|
60142
|
+
var _super = createSuper_createSuper(Pagination);
|
|
60178
60143
|
|
|
60179
60144
|
function Pagination(props) {
|
|
60180
60145
|
var _this;
|
|
60181
60146
|
|
|
60182
|
-
|
|
60147
|
+
classCallCheck_classCallCheck(this, Pagination);
|
|
60183
60148
|
|
|
60184
60149
|
_this = _super.call(this, props);
|
|
60185
60150
|
|
|
@@ -60200,7 +60165,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60200
60165
|
});
|
|
60201
60166
|
|
|
60202
60167
|
if (typeof icon === 'function') {
|
|
60203
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon,
|
|
60168
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon, objectSpread2_objectSpread2({}, _this.props));
|
|
60204
60169
|
}
|
|
60205
60170
|
|
|
60206
60171
|
return iconNode;
|
|
@@ -60422,7 +60387,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60422
60387
|
return _this;
|
|
60423
60388
|
}
|
|
60424
60389
|
|
|
60425
|
-
|
|
60390
|
+
createClass_createClass(Pagination, [{
|
|
60426
60391
|
key: "componentDidUpdate",
|
|
60427
60392
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
60428
60393
|
// When current page change, fix focused style of prev item
|
|
@@ -60570,8 +60535,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60570
60535
|
}, gotoButton);
|
|
60571
60536
|
}
|
|
60572
60537
|
|
|
60573
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60574
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"),
|
|
60538
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", esm_extends_extends({
|
|
60539
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
60575
60540
|
style: style,
|
|
60576
60541
|
ref: this.savePaginationNode
|
|
60577
60542
|
}, dataOrAriaAttributeProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
@@ -60579,7 +60544,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60579
60544
|
onClick: this.prev,
|
|
60580
60545
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60581
60546
|
onKeyPress: this.runIfEnterPrev,
|
|
60582
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60547
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
60583
60548
|
"aria-disabled": !this.hasPrev()
|
|
60584
60549
|
}, this.renderPrev(prevPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60585
60550
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
@@ -60600,7 +60565,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60600
60565
|
onClick: this.next,
|
|
60601
60566
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60602
60567
|
onKeyPress: this.runIfEnterNext,
|
|
60603
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60568
|
+
className: classnames_default()("".concat(prefixCls, "-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
60604
60569
|
"aria-disabled": !this.hasNext()
|
|
60605
60570
|
}, this.renderNext(nextPage)), gotoButton);
|
|
60606
60571
|
}
|
|
@@ -60616,7 +60581,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60616
60581
|
};
|
|
60617
60582
|
|
|
60618
60583
|
if (!allPages) {
|
|
60619
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60584
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, esm_extends_extends({}, pagerProps, {
|
|
60620
60585
|
key: "noPager",
|
|
60621
60586
|
page: 1,
|
|
60622
60587
|
className: "".concat(prefixCls, "-item-disabled")
|
|
@@ -60625,7 +60590,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60625
60590
|
|
|
60626
60591
|
for (var i = 1; i <= allPages; i += 1) {
|
|
60627
60592
|
var active = current === i;
|
|
60628
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60593
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, esm_extends_extends({}, pagerProps, {
|
|
60629
60594
|
key: i,
|
|
60630
60595
|
page: i,
|
|
60631
60596
|
active: active
|
|
@@ -60642,7 +60607,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60642
60607
|
onClick: this.jumpPrev,
|
|
60643
60608
|
tabIndex: "0",
|
|
60644
60609
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
60645
|
-
className: classnames_default()("".concat(prefixCls, "-jump-prev"),
|
|
60610
|
+
className: classnames_default()("".concat(prefixCls, "-jump-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
60646
60611
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
60647
60612
|
jumpNext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60648
60613
|
title: showTitle ? nextItemTitle : null,
|
|
@@ -60650,7 +60615,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60650
60615
|
tabIndex: "0",
|
|
60651
60616
|
onClick: this.jumpNext,
|
|
60652
60617
|
onKeyPress: this.runIfEnterJumpNext,
|
|
60653
|
-
className: classnames_default()("".concat(prefixCls, "-jump-next"),
|
|
60618
|
+
className: classnames_default()("".concat(prefixCls, "-jump-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
60654
60619
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
60655
60620
|
}
|
|
60656
60621
|
|
|
@@ -60737,8 +60702,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60737
60702
|
|
|
60738
60703
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
60739
60704
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
60740
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60741
|
-
className: classnames_default()(prefixCls, className,
|
|
60705
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", esm_extends_extends({
|
|
60706
|
+
className: classnames_default()(prefixCls, className, defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), disabled)),
|
|
60742
60707
|
style: style,
|
|
60743
60708
|
unselectable: "unselectable",
|
|
60744
60709
|
ref: this.savePaginationNode
|
|
@@ -60747,14 +60712,14 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60747
60712
|
onClick: this.prev,
|
|
60748
60713
|
tabIndex: prevDisabled ? null : 0,
|
|
60749
60714
|
onKeyPress: this.runIfEnterPrev,
|
|
60750
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60715
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
60751
60716
|
"aria-disabled": prevDisabled
|
|
60752
60717
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60753
60718
|
title: showTitle ? locale.next_page : null,
|
|
60754
60719
|
onClick: this.next,
|
|
60755
60720
|
tabIndex: nextDisabled ? null : 0,
|
|
60756
60721
|
onKeyPress: this.runIfEnterNext,
|
|
60757
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60722
|
+
className: classnames_default()("".concat(prefixCls, "-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
60758
60723
|
"aria-disabled": nextDisabled
|
|
60759
60724
|
}, this.renderNext(nextPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Options, {
|
|
60760
60725
|
disabled: disabled,
|
|
@@ -60832,7 +60797,7 @@ Pagination.defaultProps = {
|
|
|
60832
60797
|
|
|
60833
60798
|
|
|
60834
60799
|
var MiniSelect = function MiniSelect(props) {
|
|
60835
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select,
|
|
60800
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select, esm_extends_extends({
|
|
60836
60801
|
size: "small"
|
|
60837
60802
|
}, props));
|
|
60838
60803
|
};
|
|
@@ -60893,7 +60858,7 @@ var responsiveObserve = {
|
|
|
60893
60858
|
var listener = function listener(_ref) {
|
|
60894
60859
|
var matches = _ref.matches;
|
|
60895
60860
|
|
|
60896
|
-
_this2.dispatch(
|
|
60861
|
+
_this2.dispatch(esm_extends_extends(esm_extends_extends({}, screens), defineProperty_defineProperty({}, screen, matches)));
|
|
60897
60862
|
};
|
|
60898
60863
|
|
|
60899
60864
|
var mql = window.matchMedia(matchMediaQuery);
|
|
@@ -61034,13 +60999,13 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61034
60999
|
var renderPagination = function renderPagination(contextLocale) {
|
|
61035
61000
|
var _classNames;
|
|
61036
61001
|
|
|
61037
|
-
var locale =
|
|
61002
|
+
var locale = esm_extends_extends(esm_extends_extends({}, contextLocale), customLocale);
|
|
61038
61003
|
|
|
61039
61004
|
var isSmall = size === 'small' || !!(xs && !size && restProps.responsive);
|
|
61040
61005
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
61041
61006
|
var extendedClassName = classnames_default()((_classNames = {
|
|
61042
61007
|
mini: isSmall
|
|
61043
|
-
},
|
|
61008
|
+
}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames, "minimalistic", minimalistic), _classNames), className); // 文本式分页
|
|
61044
61009
|
|
|
61045
61010
|
if (minimalistic) {
|
|
61046
61011
|
paginationProps.itemRender = function (_current, type, originalElement) {
|
|
@@ -61077,7 +61042,7 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61077
61042
|
paginationProps.showQuickJumper = showQuickJumper;
|
|
61078
61043
|
}
|
|
61079
61044
|
|
|
61080
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination,
|
|
61045
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination, esm_extends_extends({}, paginationProps, getIconsProps(), restProps, {
|
|
61081
61046
|
prefixCls: prefixCls,
|
|
61082
61047
|
selectPrefixCls: selectPrefixCls,
|
|
61083
61048
|
className: extendedClassName,
|
|
@@ -61449,10 +61414,10 @@ function Action(_ref) {
|
|
|
61449
61414
|
setCurAction = _useState2[1];
|
|
61450
61415
|
|
|
61451
61416
|
var handleBtnClick = /*#__PURE__*/function () {
|
|
61452
|
-
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/
|
|
61417
|
+
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(e) {
|
|
61453
61418
|
var now, begin, _error$response, _error$response$data, _error$response2, _error$response2$data;
|
|
61454
61419
|
|
|
61455
|
-
return
|
|
61420
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
61456
61421
|
while (1) {
|
|
61457
61422
|
switch (_context.prev = _context.next) {
|
|
61458
61423
|
case 0:
|
|
@@ -61651,8 +61616,8 @@ function ListItem(_ref) {
|
|
|
61651
61616
|
status = data.status;
|
|
61652
61617
|
|
|
61653
61618
|
var handleDetailClick = /*#__PURE__*/function () {
|
|
61654
|
-
var _ref2 = ListItem_asyncToGenerator( /*#__PURE__*/
|
|
61655
|
-
return
|
|
61619
|
+
var _ref2 = ListItem_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
61620
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
61656
61621
|
while (1) {
|
|
61657
61622
|
switch (_context.prev = _context.next) {
|
|
61658
61623
|
case 0:
|