@x-edu/live-player 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/XEduLivePlayer.common.js +702 -683
- package/dist/XEduLivePlayerPre.common.js +197 -214
- package/package.json +1 -1
- package/src/detail/LiveStatus/AnchorOnTheWay.jsx +18 -8
- package/src/detail/LiveStatus/index.jsx +50 -34
- package/src/detail/LiveVideo/index.jsx +2 -0
- package/src/detail/RecordVideo/index.jsx +150 -148
- package/src/detail/hook/usePullSource.js +56 -24
- package/src/detail/index.jsx +13 -32
- package/src/util/object.js +1 -1
|
@@ -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__(7757);
|
|
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
|
|
|
@@ -32524,119 +32524,6 @@ function Loading_Loading(_ref) {
|
|
|
32524
32524
|
wrapperClassName: classnames_default()('x-edu-nested-loading', wrapperClassName)
|
|
32525
32525
|
}, children);
|
|
32526
32526
|
}
|
|
32527
|
-
// EXTERNAL MODULE: ./node_modules/@sdp.nd/fish/es/loader/style/index.js
|
|
32528
|
-
var loader_style = __webpack_require__(4646);
|
|
32529
|
-
;// CONCATENATED MODULE: ./src/util/push/index.js
|
|
32530
|
-
|
|
32531
|
-
|
|
32532
|
-
|
|
32533
|
-
|
|
32534
|
-
function push_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
32535
|
-
|
|
32536
|
-
function push_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { push_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { push_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
32537
|
-
|
|
32538
|
-
function push_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
32539
|
-
|
|
32540
|
-
function push_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
32541
|
-
|
|
32542
|
-
function push_createClass(Constructor, protoProps, staticProps) { if (protoProps) push_defineProperties(Constructor.prototype, protoProps); if (staticProps) push_defineProperties(Constructor, staticProps); return Constructor; }
|
|
32543
|
-
|
|
32544
|
-
|
|
32545
|
-
var push_url = '/3rd/im-web-push/index.umd.js';
|
|
32546
|
-
var push_loadJS = loader.loadJS;
|
|
32547
|
-
var instPromise; // http://git.sdp.nd/component-h5/web-im-push/-/tree/master
|
|
32548
|
-
|
|
32549
|
-
var ImPush = /*#__PURE__*/function () {
|
|
32550
|
-
function ImPush() {
|
|
32551
|
-
push_classCallCheck(this, ImPush);
|
|
32552
|
-
|
|
32553
|
-
this.listeners = [];
|
|
32554
|
-
}
|
|
32555
|
-
|
|
32556
|
-
push_createClass(ImPush, [{
|
|
32557
|
-
key: "init",
|
|
32558
|
-
value: function () {
|
|
32559
|
-
var _init = push_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
32560
|
-
return regenerator_default().wrap(function _callee$(_context) {
|
|
32561
|
-
while (1) {
|
|
32562
|
-
switch (_context.prev = _context.next) {
|
|
32563
|
-
case 0:
|
|
32564
|
-
if (!instPromise) {
|
|
32565
|
-
_context.next = 2;
|
|
32566
|
-
break;
|
|
32567
|
-
}
|
|
32568
|
-
|
|
32569
|
-
return _context.abrupt("return", instPromise);
|
|
32570
|
-
|
|
32571
|
-
case 2:
|
|
32572
|
-
instPromise = push_loadJS(push_url, 'ndiot_push').then(function () {
|
|
32573
|
-
window.ndiot_push.open({
|
|
32574
|
-
url: env["default"].push.host,
|
|
32575
|
-
appId: env["default"].app.appid,
|
|
32576
|
-
disableSharedWorker: true
|
|
32577
|
-
});
|
|
32578
|
-
return window.ndiot_push;
|
|
32579
|
-
});
|
|
32580
|
-
return _context.abrupt("return", instPromise);
|
|
32581
|
-
|
|
32582
|
-
case 4:
|
|
32583
|
-
case "end":
|
|
32584
|
-
return _context.stop();
|
|
32585
|
-
}
|
|
32586
|
-
}
|
|
32587
|
-
}, _callee);
|
|
32588
|
-
}));
|
|
32589
|
-
|
|
32590
|
-
function init() {
|
|
32591
|
-
return _init.apply(this, arguments);
|
|
32592
|
-
}
|
|
32593
|
-
|
|
32594
|
-
return init;
|
|
32595
|
-
}()
|
|
32596
|
-
}, {
|
|
32597
|
-
key: "getInstance",
|
|
32598
|
-
value: function getInstance() {
|
|
32599
|
-
return window.ndiot_push;
|
|
32600
|
-
}
|
|
32601
|
-
}, {
|
|
32602
|
-
key: "addTopicListener",
|
|
32603
|
-
value: function addTopicListener(name, listener) {
|
|
32604
|
-
var inst = this.getInstance();
|
|
32605
|
-
this.listeners.push(listener);
|
|
32606
|
-
inst.subscribe(name);
|
|
32607
|
-
this.listen();
|
|
32608
|
-
}
|
|
32609
|
-
}, {
|
|
32610
|
-
key: "removeTopicListener",
|
|
32611
|
-
value: function removeTopicListener(name, listener) {
|
|
32612
|
-
var inst = this.getInstance();
|
|
32613
|
-
this.listeners = this.listeners.filter(function (l) {
|
|
32614
|
-
return l !== listener;
|
|
32615
|
-
});
|
|
32616
|
-
inst.unsubscribe(name);
|
|
32617
|
-
this.listen();
|
|
32618
|
-
}
|
|
32619
|
-
}, {
|
|
32620
|
-
key: "listen",
|
|
32621
|
-
value: function listen() {
|
|
32622
|
-
var _this = this;
|
|
32623
|
-
|
|
32624
|
-
var inst = this.getInstance();
|
|
32625
|
-
|
|
32626
|
-
inst.onNewMessage = function (data) {
|
|
32627
|
-
console.log('im-push', data);
|
|
32628
|
-
|
|
32629
|
-
_this.listeners.forEach(function (l) {
|
|
32630
|
-
l(data);
|
|
32631
|
-
});
|
|
32632
|
-
};
|
|
32633
|
-
}
|
|
32634
|
-
}]);
|
|
32635
|
-
|
|
32636
|
-
return ImPush;
|
|
32637
|
-
}();
|
|
32638
|
-
|
|
32639
|
-
/* harmony default export */ var push = (new ImPush());
|
|
32640
32527
|
;// CONCATENATED MODULE: ./src/util/object.js
|
|
32641
32528
|
function pick(obj, keys) {
|
|
32642
32529
|
if (!Array.isArray(keys)) {
|
|
@@ -32652,7 +32539,7 @@ function pick(obj, keys) {
|
|
|
32652
32539
|
}, {});
|
|
32653
32540
|
}
|
|
32654
32541
|
var isEmpty = function isEmpty(obj) {
|
|
32655
|
-
return !obj || Object.keys(obj) === 0;
|
|
32542
|
+
return !obj || Object.keys(obj).length === 0;
|
|
32656
32543
|
};
|
|
32657
32544
|
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[1].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[1].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[1].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[1].use[4]!./node_modules/@sdp.nd/fish/es/video/style/index.less
|
|
32658
32545
|
var video_style = __webpack_require__(9018);
|
|
@@ -33116,9 +33003,6 @@ var index_module_update = injectStylesIntoStyleTag_default()(index_module/* defa
|
|
|
33116
33003
|
|
|
33117
33004
|
/* harmony default export */ var LiveCountDown_index_module = (index_module/* default */.Z && index_module/* default.locals */.Z.locals ? index_module/* default.locals */.Z.locals : undefined);
|
|
33118
33005
|
|
|
33119
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
33120
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
33121
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
33122
33006
|
;// CONCATENATED MODULE: ./src/hook/useIsMounted.js
|
|
33123
33007
|
|
|
33124
33008
|
|
|
@@ -33185,9 +33069,9 @@ function isSourceReady(_x) {
|
|
|
33185
33069
|
}
|
|
33186
33070
|
|
|
33187
33071
|
function _isSourceReady() {
|
|
33188
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33072
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(liveInfo) {
|
|
33189
33073
|
var newLiveInfo;
|
|
33190
|
-
return
|
|
33074
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33191
33075
|
while (1) {
|
|
33192
33076
|
switch (_context.prev = _context.next) {
|
|
33193
33077
|
case 0:
|
|
@@ -33337,64 +33221,179 @@ function usePullSource_asyncToGenerator(fn) { return function () { var self = th
|
|
|
33337
33221
|
|
|
33338
33222
|
|
|
33339
33223
|
|
|
33224
|
+
|
|
33225
|
+
|
|
33340
33226
|
var usePullSource_pullInterval = 10 * 1000;
|
|
33227
|
+
var pullStatusInterval = 30 * 1000;
|
|
33228
|
+
var pullMultiply = pullStatusInterval / usePullSource_pullInterval;
|
|
33341
33229
|
var pullTimeout = 10 * 1000;
|
|
33342
33230
|
function usePullSource(_ref) {
|
|
33343
|
-
var
|
|
33231
|
+
var _liveInfo$imInfo, _liveInfo$imInfo$para, _liveInfo$imInfo2, _liveInfo$imInfo2$par, _liveInfo$imInfo2$par2;
|
|
33232
|
+
|
|
33233
|
+
var liveInfo = _ref.liveInfo,
|
|
33344
33234
|
reload = _ref.reload,
|
|
33235
|
+
onStatusChange = _ref.onStatusChange,
|
|
33345
33236
|
shouldStartPull = _ref.shouldStartPull;
|
|
33237
|
+
var sourceSrc = (liveInfo === null || liveInfo === void 0 ? void 0 : (_liveInfo$imInfo = liveInfo.imInfo) === null || _liveInfo$imInfo === void 0 ? void 0 : (_liveInfo$imInfo$para = _liveInfo$imInfo.param) === null || _liveInfo$imInfo$para === void 0 ? void 0 : _liveInfo$imInfo$para.url) || (liveInfo === null || liveInfo === void 0 ? void 0 : (_liveInfo$imInfo2 = liveInfo.imInfo) === null || _liveInfo$imInfo2 === void 0 ? void 0 : (_liveInfo$imInfo2$par = _liveInfo$imInfo2.param) === null || _liveInfo$imInfo2$par === void 0 ? void 0 : (_liveInfo$imInfo2$par2 = _liveInfo$imInfo2$par.playurl) === null || _liveInfo$imInfo2$par2 === void 0 ? void 0 : _liveInfo$imInfo2$par2[0]);
|
|
33346
33238
|
var isMounted = hook_useIsMounted();
|
|
33347
33239
|
var counterIdRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
33240
|
+
var loopIndex = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
33348
33241
|
|
|
33349
|
-
function
|
|
33350
|
-
|
|
33351
|
-
|
|
33352
|
-
|
|
33353
|
-
|
|
33354
|
-
|
|
33355
|
-
|
|
33356
|
-
|
|
33357
|
-
|
|
33358
|
-
|
|
33359
|
-
|
|
33360
|
-
|
|
33242
|
+
var getIsCurrentLop = function getIsCurrentLop(index) {
|
|
33243
|
+
return index <= loopIndex.current;
|
|
33244
|
+
};
|
|
33245
|
+
|
|
33246
|
+
function checkLiveReadyInterval() {
|
|
33247
|
+
return _checkLiveReadyInterval.apply(this, arguments);
|
|
33248
|
+
}
|
|
33249
|
+
|
|
33250
|
+
function _checkLiveReadyInterval() {
|
|
33251
|
+
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
33252
|
+
var i,
|
|
33253
|
+
liveStatus,
|
|
33254
|
+
isSourceReady,
|
|
33255
|
+
_args = arguments;
|
|
33256
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33257
|
+
while (1) {
|
|
33258
|
+
switch (_context.prev = _context.next) {
|
|
33259
|
+
case 0:
|
|
33260
|
+
i = _args.length > 0 && _args[0] !== undefined ? _args[0] : 0;
|
|
33261
|
+
loopIndex.current = i;
|
|
33262
|
+
|
|
33263
|
+
if (!(i % pullMultiply === 0)) {
|
|
33264
|
+
_context.next = 7;
|
|
33265
|
+
break;
|
|
33266
|
+
}
|
|
33267
|
+
|
|
33268
|
+
_context.next = 5;
|
|
33269
|
+
return getLiveNewStatus(liveInfo);
|
|
33270
|
+
|
|
33271
|
+
case 5:
|
|
33272
|
+
liveStatus = _context.sent;
|
|
33273
|
+
|
|
33274
|
+
if (getIsCurrentLop(i)) {
|
|
33275
|
+
onStatusChange(liveStatus);
|
|
33276
|
+
}
|
|
33277
|
+
|
|
33278
|
+
case 7:
|
|
33279
|
+
if (!(liveStatus !== publicLive_PUBLIC_LIVE_STATUS.COMPLETEED && sourceSrc)) {
|
|
33280
|
+
_context.next = 15;
|
|
33281
|
+
break;
|
|
33282
|
+
}
|
|
33283
|
+
|
|
33284
|
+
_context.next = 10;
|
|
33285
|
+
return checkSourceReady(sourceSrc);
|
|
33286
|
+
|
|
33287
|
+
case 10:
|
|
33288
|
+
isSourceReady = _context.sent;
|
|
33289
|
+
|
|
33290
|
+
if (!getIsCurrentLop(i)) {
|
|
33291
|
+
_context.next = 15;
|
|
33292
|
+
break;
|
|
33293
|
+
}
|
|
33294
|
+
|
|
33295
|
+
if (!(isSourceReady && isMounted)) {
|
|
33296
|
+
_context.next = 15;
|
|
33297
|
+
break;
|
|
33298
|
+
}
|
|
33299
|
+
|
|
33300
|
+
reload();
|
|
33301
|
+
return _context.abrupt("return");
|
|
33302
|
+
|
|
33303
|
+
case 15:
|
|
33304
|
+
if (isMounted && getIsCurrentLop(i)) {
|
|
33305
|
+
counterIdRef.current = setTimeout(function () {
|
|
33306
|
+
checkLiveReadyInterval(i + 1);
|
|
33307
|
+
}, usePullSource_pullInterval);
|
|
33308
|
+
}
|
|
33309
|
+
|
|
33310
|
+
case 16:
|
|
33311
|
+
case "end":
|
|
33312
|
+
return _context.stop();
|
|
33313
|
+
}
|
|
33314
|
+
}
|
|
33315
|
+
}, _callee);
|
|
33316
|
+
}));
|
|
33317
|
+
return _checkLiveReadyInterval.apply(this, arguments);
|
|
33361
33318
|
}
|
|
33362
33319
|
|
|
33363
33320
|
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
33364
|
-
|
|
33365
|
-
|
|
33321
|
+
clearTimeout(counterIdRef.current);
|
|
33322
|
+
|
|
33323
|
+
if (shouldStartPull) {
|
|
33324
|
+
counterIdRef.current = setTimeout(function () {
|
|
33325
|
+
checkLiveReadyInterval(0);
|
|
33326
|
+
}, usePullSource_pullInterval);
|
|
33366
33327
|
}
|
|
33367
33328
|
|
|
33368
33329
|
return function () {
|
|
33369
|
-
if (
|
|
33330
|
+
if (shouldStartPull) {
|
|
33370
33331
|
clearTimeout(counterIdRef.current);
|
|
33371
33332
|
}
|
|
33372
33333
|
};
|
|
33373
|
-
}, [sourceSrc, shouldStartPull]);
|
|
33334
|
+
}, [sourceSrc, liveInfo.status, shouldStartPull]);
|
|
33374
33335
|
}
|
|
33375
33336
|
|
|
33376
|
-
function
|
|
33377
|
-
return
|
|
33337
|
+
function checkSourceReady(_x) {
|
|
33338
|
+
return _checkSourceReady.apply(this, arguments);
|
|
33378
33339
|
}
|
|
33379
33340
|
|
|
33380
|
-
function
|
|
33381
|
-
|
|
33382
|
-
return
|
|
33341
|
+
function _checkSourceReady() {
|
|
33342
|
+
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(url) {
|
|
33343
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
33383
33344
|
while (1) {
|
|
33384
|
-
switch (
|
|
33345
|
+
switch (_context2.prev = _context2.next) {
|
|
33385
33346
|
case 0:
|
|
33386
|
-
|
|
33347
|
+
_context2.prev = 0;
|
|
33348
|
+
_context2.next = 3;
|
|
33349
|
+
return axios_default().get(url, {
|
|
33387
33350
|
timeout: pullTimeout
|
|
33388
|
-
})
|
|
33351
|
+
});
|
|
33389
33352
|
|
|
33390
|
-
case
|
|
33353
|
+
case 3:
|
|
33354
|
+
return _context2.abrupt("return", true);
|
|
33355
|
+
|
|
33356
|
+
case 6:
|
|
33357
|
+
_context2.prev = 6;
|
|
33358
|
+
_context2.t0 = _context2["catch"](0);
|
|
33359
|
+
return _context2.abrupt("return", false);
|
|
33360
|
+
|
|
33361
|
+
case 9:
|
|
33391
33362
|
case "end":
|
|
33392
|
-
return
|
|
33363
|
+
return _context2.stop();
|
|
33393
33364
|
}
|
|
33394
33365
|
}
|
|
33395
|
-
},
|
|
33366
|
+
}, _callee2, null, [[0, 6]]);
|
|
33396
33367
|
}));
|
|
33397
|
-
return
|
|
33368
|
+
return _checkSourceReady.apply(this, arguments);
|
|
33369
|
+
}
|
|
33370
|
+
|
|
33371
|
+
function getLiveNewStatus(_x2) {
|
|
33372
|
+
return _getLiveNewStatus.apply(this, arguments);
|
|
33373
|
+
}
|
|
33374
|
+
|
|
33375
|
+
function _getLiveNewStatus() {
|
|
33376
|
+
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(liveInfo) {
|
|
33377
|
+
var newLiveInfo;
|
|
33378
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
33379
|
+
while (1) {
|
|
33380
|
+
switch (_context3.prev = _context3.next) {
|
|
33381
|
+
case 0:
|
|
33382
|
+
_context3.next = 2;
|
|
33383
|
+
return getOpenClassLiveSimple(liveInfo);
|
|
33384
|
+
|
|
33385
|
+
case 2:
|
|
33386
|
+
newLiveInfo = _context3.sent;
|
|
33387
|
+
return _context3.abrupt("return", newLiveInfo.status);
|
|
33388
|
+
|
|
33389
|
+
case 4:
|
|
33390
|
+
case "end":
|
|
33391
|
+
return _context3.stop();
|
|
33392
|
+
}
|
|
33393
|
+
}
|
|
33394
|
+
}, _callee3);
|
|
33395
|
+
}));
|
|
33396
|
+
return _getLiveNewStatus.apply(this, arguments);
|
|
33398
33397
|
}
|
|
33399
33398
|
;// CONCATENATED MODULE: ./src/detail/LiveStatus/AnchorOnTheWay.jsx
|
|
33400
33399
|
function AnchorOnTheWay_slicedToArray(arr, i) { return AnchorOnTheWay_arrayWithHoles(arr) || AnchorOnTheWay_iterableToArrayLimit(arr, i) || AnchorOnTheWay_unsupportedIterableToArray(arr, i) || AnchorOnTheWay_nonIterableRest(); }
|
|
@@ -33415,13 +33414,15 @@ function AnchorOnTheWay_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr
|
|
|
33415
33414
|
|
|
33416
33415
|
|
|
33417
33416
|
|
|
33417
|
+
|
|
33418
33418
|
function AnchorOnTheWay(_ref) {
|
|
33419
|
-
var _liveInfo$imInfo, _liveInfo$imInfo$para, _liveInfo$
|
|
33419
|
+
var _liveInfo$imInfo, _liveInfo$imInfo$para, _liveInfo$imInfo$para2;
|
|
33420
33420
|
|
|
33421
33421
|
var liveInfo = _ref.liveInfo,
|
|
33422
33422
|
isStreamLive = _ref.isStreamLive,
|
|
33423
33423
|
hasPlayed = _ref.hasPlayed,
|
|
33424
|
-
reload = _ref.reload
|
|
33424
|
+
reload = _ref.reload,
|
|
33425
|
+
onStatusChange = _ref.onStatusChange;
|
|
33425
33426
|
|
|
33426
33427
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(dayjs_min_default()().isAfter(dayjs_min_default()(liveInfo.end_time))),
|
|
33427
33428
|
_useState2 = AnchorOnTheWay_slicedToArray(_useState, 2),
|
|
@@ -33431,14 +33432,15 @@ function AnchorOnTheWay(_ref) {
|
|
|
33431
33432
|
hook_useInterval(function () {
|
|
33432
33433
|
setIsAfterEndTime(dayjs_min_default()().isAfter(dayjs_min_default()(liveInfo.end_time)));
|
|
33433
33434
|
}, 1000);
|
|
33434
|
-
var sourceSrc = liveInfo === null || liveInfo === void 0 ? void 0 : (_liveInfo$imInfo = liveInfo.imInfo) === null || _liveInfo$imInfo === void 0 ? void 0 : (_liveInfo$imInfo$para = _liveInfo$imInfo.param) === null || _liveInfo$imInfo$para === void 0 ? void 0 : _liveInfo$imInfo$para.url;
|
|
33435
|
-
var hasMultiLines = (liveInfo === null || liveInfo === void 0 ? void 0 : (_liveInfo$imInfo2 = liveInfo.imInfo) === null || _liveInfo$imInfo2 === void 0 ? void 0 : (_liveInfo$imInfo2$par = _liveInfo$imInfo2.param) === null || _liveInfo$imInfo2$par === void 0 ? void 0 : (_liveInfo$imInfo2$par2 = _liveInfo$imInfo2$par.lines) === null || _liveInfo$imInfo2$par2 === void 0 ? void 0 : _liveInfo$imInfo2$par2.length) > 1;
|
|
33436
33435
|
usePullSource({
|
|
33437
|
-
|
|
33436
|
+
liveInfo: liveInfo,
|
|
33438
33437
|
reload: reload,
|
|
33438
|
+
onStatusChange: onStatusChange,
|
|
33439
33439
|
shouldStartPull: isStreamLive
|
|
33440
33440
|
});
|
|
33441
|
-
|
|
33441
|
+
var hasMultiLines = (liveInfo === null || liveInfo === void 0 ? void 0 : (_liveInfo$imInfo = liveInfo.imInfo) === null || _liveInfo$imInfo === void 0 ? void 0 : (_liveInfo$imInfo$para = _liveInfo$imInfo.param) === null || _liveInfo$imInfo$para === void 0 ? void 0 : (_liveInfo$imInfo$para2 = _liveInfo$imInfo$para.lines) === null || _liveInfo$imInfo$para2 === void 0 ? void 0 : _liveInfo$imInfo$para2.length) > 1;
|
|
33442
|
+
var isNDMeeting = liveInfo.sub_type === SUB_TYPE.NET_DRAGON;
|
|
33443
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, isAfterEndTime && !isNDMeeting ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
33442
33444
|
className: detail_LiveStatus_index_module["status-completed"]
|
|
33443
33445
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
33444
33446
|
className: detail_LiveStatus_index_module.icon
|
|
@@ -33450,13 +33452,13 @@ function AnchorOnTheWay(_ref) {
|
|
|
33450
33452
|
className: detail_LiveStatus_index_module.icon
|
|
33451
33453
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
33452
33454
|
className: detail_LiveStatus_index_module.text
|
|
33453
|
-
}, isStreamLive ? hasPlayed ? /*#__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("div", null,
|
|
33455
|
+
}, isStreamLive ? hasPlayed ? /*#__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("div", null, isNDMeeting ? '主播正在赶来的路上...' : '加载中...'), hasMultiLines ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
33454
33456
|
style: {
|
|
33455
33457
|
fontSize: '20px',
|
|
33456
33458
|
fontWeight: 'normal',
|
|
33457
33459
|
margin: '10px 0'
|
|
33458
33460
|
}
|
|
33459
|
-
}, "\u5C1D\u8BD5\u5207\u6362\u7EBF\u8DEF\u770B\u770B\u5427~") : /*#__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((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", null,
|
|
33461
|
+
}, "\u5C1D\u8BD5\u5207\u6362\u7EBF\u8DEF\u770B\u770B\u5427~") : /*#__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((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", null, isNDMeeting ? '主播正在赶来的路上...' : '等待开播中...')) : '主播正在赶来的路上...')));
|
|
33460
33462
|
}
|
|
33461
33463
|
;// CONCATENATED MODULE: ./src/detail/LiveStatus/index.jsx
|
|
33462
33464
|
|
|
@@ -33476,6 +33478,7 @@ function LiveStatus_iterableToArrayLimit(arr, i) { var _i = arr == null ? null :
|
|
|
33476
33478
|
|
|
33477
33479
|
function LiveStatus_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
33478
33480
|
|
|
33481
|
+
/* eslint-disable no-nested-ternary */
|
|
33479
33482
|
|
|
33480
33483
|
|
|
33481
33484
|
|
|
@@ -33484,7 +33487,8 @@ function LiveStatus_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
33484
33487
|
|
|
33485
33488
|
|
|
33486
33489
|
function LiveStatus(_ref) {
|
|
33487
|
-
var
|
|
33490
|
+
var isStreamLive = _ref.isStreamLive,
|
|
33491
|
+
handleLogin = _ref.handleLogin,
|
|
33488
33492
|
userInfo = _ref.userInfo,
|
|
33489
33493
|
liveInfo = _ref.liveInfo,
|
|
33490
33494
|
hasPlayed = _ref.hasPlayed,
|
|
@@ -33505,6 +33509,8 @@ function LiveStatus(_ref) {
|
|
|
33505
33509
|
return undefined;
|
|
33506
33510
|
} : _ref$onReloadLive;
|
|
33507
33511
|
|
|
33512
|
+
// 调试代码 模拟倒计时2S
|
|
33513
|
+
// const [countDownTime, setCountDownTime] = useState(2000)
|
|
33508
33514
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(dayjs_min_default()(liveInfo.begin_time).valueOf() - visitTime),
|
|
33509
33515
|
_useState2 = LiveStatus_slicedToArray(_useState, 2),
|
|
33510
33516
|
countDownTime = _useState2[0],
|
|
@@ -33515,8 +33521,7 @@ function LiveStatus(_ref) {
|
|
|
33515
33521
|
var isCompleted = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.COMPLETEED;
|
|
33516
33522
|
var isPaused = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.PASUED;
|
|
33517
33523
|
var isOffline = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.OFFLINE;
|
|
33518
|
-
var isRecordLive = liveInfo.type === PUBLIC_LIVE_MODE.RECORDED;
|
|
33519
|
-
var isStreamLive = liveInfo.type === PUBLIC_LIVE_MODE.LIVING && (liveInfo.sub_type === SUB_TYPE.OUTSIDE || liveInfo.sub_type === SUB_TYPE.REBROADCAST); // 当前时间是否在回放时间开始前, 如果没有回放开始时间, 则直接判断未回放还没生成
|
|
33524
|
+
var isRecordLive = liveInfo.type === PUBLIC_LIVE_MODE.RECORDED; // 当前时间是否在回放时间开始前, 如果没有回放开始时间, 则直接判断未回放还没生成
|
|
33520
33525
|
|
|
33521
33526
|
var isBeforeRecordTime = liveInfo.replay_begin_time ? dayjs_min_default()().isBefore(dayjs_min_default()(liveInfo.replay_begin_time)) : true;
|
|
33522
33527
|
var mustLogin = !userInfo && liveInfo.login;
|
|
@@ -33529,6 +33534,7 @@ function LiveStatus(_ref) {
|
|
|
33529
33534
|
|
|
33530
33535
|
var startLiving = function startLiving() {
|
|
33531
33536
|
if (isRecordLive || isStreamLive) {
|
|
33537
|
+
setCountDownTime(0);
|
|
33532
33538
|
onStatusChange(publicLive_PUBLIC_LIVE_STATUS.LIVEING, {
|
|
33533
33539
|
play: !mustLogin
|
|
33534
33540
|
});
|
|
@@ -33543,19 +33549,25 @@ function LiveStatus(_ref) {
|
|
|
33543
33549
|
} else {
|
|
33544
33550
|
onPlayReplay();
|
|
33545
33551
|
}
|
|
33546
|
-
};
|
|
33547
|
-
|
|
33548
|
-
if (canLiveStart && !isLiveException && !isLiveLoading && !isLiveLoadError) {
|
|
33549
|
-
return null;
|
|
33550
|
-
} // 播放状态
|
|
33552
|
+
}; // 播放状态
|
|
33551
33553
|
|
|
33552
33554
|
|
|
33553
33555
|
if (canLiveStart) {
|
|
33556
|
+
if (!isLiveException && !isLiveLoading && !isLiveLoadError) {
|
|
33557
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null);
|
|
33558
|
+
}
|
|
33559
|
+
|
|
33554
33560
|
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("div", {
|
|
33555
33561
|
className: detail_LiveStatus_index_module["live-status-wrapper"]
|
|
33556
33562
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
33557
33563
|
className: detail_LiveStatus_index_module["live-status"]
|
|
33558
|
-
},
|
|
33564
|
+
}, isLiveException ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(AnchorOnTheWay, {
|
|
33565
|
+
liveInfo: liveInfo,
|
|
33566
|
+
isStreamLive: isStreamLive,
|
|
33567
|
+
hasPlayed: hasPlayed,
|
|
33568
|
+
reload: onReloadLive,
|
|
33569
|
+
onStatusChange: onStatusChange
|
|
33570
|
+
}) : isLiveLoadError ? /*#__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("div", {
|
|
33559
33571
|
className: detail_LiveStatus_index_module["status-load-error"]
|
|
33560
33572
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_icon, {
|
|
33561
33573
|
type: "exclamation-circle",
|
|
@@ -33565,12 +33577,7 @@ function LiveStatus(_ref) {
|
|
|
33565
33577
|
}, "\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("button", {
|
|
33566
33578
|
className: detail_LiveStatus_index_module["primary-btn"],
|
|
33567
33579
|
onClick: onReloadLive
|
|
33568
|
-
}, "\u91CD\u8BD5"))
|
|
33569
|
-
liveInfo: liveInfo,
|
|
33570
|
-
isStreamLive: isStreamLive,
|
|
33571
|
-
hasPlayed: hasPlayed,
|
|
33572
|
-
reload: onReloadLive
|
|
33573
|
-
}), !isLiveLoadError && !isLiveException && isLiveLoading && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
33580
|
+
}, "\u91CD\u8BD5")) : isLiveLoading ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
33574
33581
|
className: detail_LiveStatus_index_module["status-living-loading"]
|
|
33575
33582
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(spin, {
|
|
33576
33583
|
indicator: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_icon, {
|
|
@@ -33580,7 +33587,7 @@ function LiveStatus(_ref) {
|
|
|
33580
33587
|
})
|
|
33581
33588
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
33582
33589
|
className: detail_LiveStatus_index_module.text
|
|
33583
|
-
}, "\u52A0\u8F7D\u4E2D...")))), !isRecordLive && (isLiveLoadError || isLiveException) && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
33590
|
+
}, "\u52A0\u8F7D\u4E2D...")) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null))), !isRecordLive && (isLiveLoadError || isLiveException) && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
33584
33591
|
className: detail_LiveStatus_index_module["video-poster"],
|
|
33585
33592
|
style: coverBgStyle
|
|
33586
33593
|
}));
|
|
@@ -33600,7 +33607,8 @@ function LiveStatus(_ref) {
|
|
|
33600
33607
|
liveInfo: liveInfo,
|
|
33601
33608
|
isStreamLive: isStreamLive,
|
|
33602
33609
|
hasPlayed: hasPlayed,
|
|
33603
|
-
reload: onReloadLive
|
|
33610
|
+
reload: onReloadLive,
|
|
33611
|
+
onStatusChange: onStatusChange
|
|
33604
33612
|
})), isLiving && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
33605
33613
|
className: detail_LiveStatus_index_module["status-living"]
|
|
33606
33614
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
@@ -33617,7 +33625,8 @@ function LiveStatus(_ref) {
|
|
|
33617
33625
|
liveInfo: liveInfo,
|
|
33618
33626
|
isStreamLive: isStreamLive,
|
|
33619
33627
|
hasPlayed: hasPlayed,
|
|
33620
|
-
reload: onReloadLive
|
|
33628
|
+
reload: onReloadLive,
|
|
33629
|
+
onStatusChange: onStatusChange
|
|
33621
33630
|
}), isOffline && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
33622
33631
|
className: detail_LiveStatus_index_module["status-offline"]
|
|
33623
33632
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_icon, {
|
|
@@ -33695,7 +33704,8 @@ function RecordVideo_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
33695
33704
|
|
|
33696
33705
|
|
|
33697
33706
|
function RecordVideo(_ref) {
|
|
33698
|
-
var
|
|
33707
|
+
var isStreamLive = _ref.isStreamLive,
|
|
33708
|
+
userInfo = _ref.userInfo,
|
|
33699
33709
|
liveInfo = _ref.liveInfo,
|
|
33700
33710
|
visitTime = _ref.visitTime,
|
|
33701
33711
|
diffTime = _ref.diffTime,
|
|
@@ -33836,6 +33846,7 @@ function RecordVideo(_ref) {
|
|
|
33836
33846
|
options: options,
|
|
33837
33847
|
onReady: handleVideoReady
|
|
33838
33848
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(detail_LiveStatus, {
|
|
33849
|
+
isStreamLive: isStreamLive,
|
|
33839
33850
|
userInfo: userInfo,
|
|
33840
33851
|
visitTime: visitTime,
|
|
33841
33852
|
diffTime: diffTime,
|
|
@@ -33847,6 +33858,8 @@ function RecordVideo(_ref) {
|
|
|
33847
33858
|
onReloadLive: handleVideoReload
|
|
33848
33859
|
}));
|
|
33849
33860
|
}
|
|
33861
|
+
// EXTERNAL MODULE: ./node_modules/@sdp.nd/fish/es/loader/style/index.js
|
|
33862
|
+
var loader_style = __webpack_require__(4646);
|
|
33850
33863
|
;// CONCATENATED MODULE: ./src/component/AliPlayer/index.jsx
|
|
33851
33864
|
|
|
33852
33865
|
|
|
@@ -34012,39 +34025,6 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
34012
34025
|
// style dependencies
|
|
34013
34026
|
|
|
34014
34027
|
|
|
34015
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
34016
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
34017
|
-
if (key in obj) {
|
|
34018
|
-
Object.defineProperty(obj, key, {
|
|
34019
|
-
value: value,
|
|
34020
|
-
enumerable: true,
|
|
34021
|
-
configurable: true,
|
|
34022
|
-
writable: true
|
|
34023
|
-
});
|
|
34024
|
-
} else {
|
|
34025
|
-
obj[key] = value;
|
|
34026
|
-
}
|
|
34027
|
-
|
|
34028
|
-
return obj;
|
|
34029
|
-
}
|
|
34030
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
34031
|
-
function esm_extends_extends() {
|
|
34032
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
34033
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
34034
|
-
var source = arguments[i];
|
|
34035
|
-
|
|
34036
|
-
for (var key in source) {
|
|
34037
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34038
|
-
target[key] = source[key];
|
|
34039
|
-
}
|
|
34040
|
-
}
|
|
34041
|
-
}
|
|
34042
|
-
|
|
34043
|
-
return target;
|
|
34044
|
-
};
|
|
34045
|
-
|
|
34046
|
-
return esm_extends_extends.apply(this, arguments);
|
|
34047
|
-
}
|
|
34048
34028
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
34049
34029
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
34050
34030
|
if (Array.isArray(arr)) return arr;
|
|
@@ -34079,26 +34059,6 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
34079
34059
|
|
|
34080
34060
|
return _arr;
|
|
34081
34061
|
}
|
|
34082
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34083
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34084
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
34085
|
-
|
|
34086
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34087
|
-
arr2[i] = arr[i];
|
|
34088
|
-
}
|
|
34089
|
-
|
|
34090
|
-
return arr2;
|
|
34091
|
-
}
|
|
34092
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34093
|
-
|
|
34094
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34095
|
-
if (!o) return;
|
|
34096
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34097
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34098
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34099
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34100
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34101
|
-
}
|
|
34102
34062
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34103
34063
|
function nonIterableRest_nonIterableRest() {
|
|
34104
34064
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34109,7 +34069,7 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34109
34069
|
|
|
34110
34070
|
|
|
34111
34071
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34112
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
34072
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34113
34073
|
}
|
|
34114
34074
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34115
34075
|
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
@@ -34459,6 +34419,16 @@ var cacheStyle = {};
|
|
|
34459
34419
|
}
|
|
34460
34420
|
}
|
|
34461
34421
|
});
|
|
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
|
+
}
|
|
34462
34432
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34463
34433
|
|
|
34464
34434
|
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
@@ -34468,6 +34438,16 @@ function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
|
34468
34438
|
function iterableToArray_iterableToArray(iter) {
|
|
34469
34439
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34470
34440
|
}
|
|
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
|
+
}
|
|
34471
34451
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34472
34452
|
function nonIterableSpread_nonIterableSpread() {
|
|
34473
34453
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34870,6 +34850,39 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34870
34850
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
34871
34851
|
|
|
34872
34852
|
/* 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
|
+
}
|
|
34873
34886
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
34874
34887
|
|
|
34875
34888
|
|
|
@@ -34910,6 +34923,52 @@ function objectSpread2_objectSpread2(target) {
|
|
|
34910
34923
|
|
|
34911
34924
|
return target;
|
|
34912
34925
|
}
|
|
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
|
+
}
|
|
34913
34972
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
34914
34973
|
/**
|
|
34915
34974
|
* @ignore
|
|
@@ -35576,7 +35635,7 @@ function pickAttrs(props) {
|
|
|
35576
35635
|
aria: true
|
|
35577
35636
|
};
|
|
35578
35637
|
} else {
|
|
35579
|
-
mergedConfig =
|
|
35638
|
+
mergedConfig = _objectSpread2({}, ariaOnly);
|
|
35580
35639
|
}
|
|
35581
35640
|
|
|
35582
35641
|
var attrs = {};
|
|
@@ -35609,7 +35668,7 @@ var react_is = __webpack_require__(9864);
|
|
|
35609
35668
|
function fillRef(ref, node) {
|
|
35610
35669
|
if (typeof ref === 'function') {
|
|
35611
35670
|
ref(node);
|
|
35612
|
-
} else if (
|
|
35671
|
+
} else if (typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
35613
35672
|
ref.current = node;
|
|
35614
35673
|
}
|
|
35615
35674
|
}
|
|
@@ -35719,7 +35778,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
35719
35778
|
function getTransitionName(transitionName, transitionType) {
|
|
35720
35779
|
if (!transitionName) return null;
|
|
35721
35780
|
|
|
35722
|
-
if (
|
|
35781
|
+
if (typeof_typeof(transitionName) === 'object') {
|
|
35723
35782
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
35724
35783
|
return match[1].toUpperCase();
|
|
35725
35784
|
});
|
|
@@ -36012,13 +36071,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36012
36071
|
|
|
36013
36072
|
switch (status) {
|
|
36014
36073
|
case 'appear':
|
|
36015
|
-
return _ref2 = {},
|
|
36074
|
+
return _ref2 = {}, _defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), _defineProperty(_ref2, STEP_START, onAppearStart), _defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
36016
36075
|
|
|
36017
36076
|
case 'enter':
|
|
36018
|
-
return _ref3 = {},
|
|
36077
|
+
return _ref3 = {}, _defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), _defineProperty(_ref3, STEP_START, onEnterStart), _defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
36019
36078
|
|
|
36020
36079
|
case 'leave':
|
|
36021
|
-
return _ref4 = {},
|
|
36080
|
+
return _ref4 = {}, _defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), _defineProperty(_ref4, STEP_START, onLeaveStart), _defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
36022
36081
|
|
|
36023
36082
|
default:
|
|
36024
36083
|
return {};
|
|
@@ -36126,7 +36185,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36126
36185
|
var mergedStyle = style;
|
|
36127
36186
|
|
|
36128
36187
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
36129
|
-
mergedStyle =
|
|
36188
|
+
mergedStyle = _objectSpread2({
|
|
36130
36189
|
transition: 'none'
|
|
36131
36190
|
}, mergedStyle);
|
|
36132
36191
|
}
|
|
@@ -36141,17 +36200,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36141
36200
|
|
|
36142
36201
|
|
|
36143
36202
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
36144
|
-
|
|
36203
|
+
_inherits(DomWrapper, _React$Component);
|
|
36145
36204
|
|
|
36146
|
-
var _super =
|
|
36205
|
+
var _super = _createSuper(DomWrapper);
|
|
36147
36206
|
|
|
36148
36207
|
function DomWrapper() {
|
|
36149
|
-
|
|
36208
|
+
_classCallCheck(this, DomWrapper);
|
|
36150
36209
|
|
|
36151
36210
|
return _super.apply(this, arguments);
|
|
36152
36211
|
}
|
|
36153
36212
|
|
|
36154
|
-
|
|
36213
|
+
_createClass(DomWrapper, [{
|
|
36155
36214
|
key: "render",
|
|
36156
36215
|
value: function render() {
|
|
36157
36216
|
return this.props.children;
|
|
@@ -36187,7 +36246,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
36187
36246
|
function genCSSMotion(config) {
|
|
36188
36247
|
var transitionSupport = config;
|
|
36189
36248
|
|
|
36190
|
-
if (
|
|
36249
|
+
if (typeof_typeof(config) === 'object') {
|
|
36191
36250
|
transitionSupport = config.transitionSupport;
|
|
36192
36251
|
}
|
|
36193
36252
|
|
|
@@ -36245,7 +36304,7 @@ function genCSSMotion(config) {
|
|
|
36245
36304
|
|
|
36246
36305
|
var motionChildren;
|
|
36247
36306
|
|
|
36248
|
-
var mergedProps =
|
|
36307
|
+
var mergedProps = _objectSpread2(_objectSpread2({}, eventProps), {}, {
|
|
36249
36308
|
visible: visible
|
|
36250
36309
|
});
|
|
36251
36310
|
|
|
@@ -36255,13 +36314,13 @@ function genCSSMotion(config) {
|
|
|
36255
36314
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
36256
36315
|
// Stable children
|
|
36257
36316
|
if (mergedVisible) {
|
|
36258
|
-
motionChildren = children(
|
|
36317
|
+
motionChildren = children(_objectSpread2({}, mergedProps), setNodeRef);
|
|
36259
36318
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
36260
|
-
motionChildren = children(
|
|
36319
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36261
36320
|
className: leavedClassName
|
|
36262
36321
|
}), setNodeRef);
|
|
36263
36322
|
} else if (forceRender) {
|
|
36264
|
-
motionChildren = children(
|
|
36323
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36265
36324
|
style: {
|
|
36266
36325
|
display: 'none'
|
|
36267
36326
|
}
|
|
@@ -36283,8 +36342,8 @@ function genCSSMotion(config) {
|
|
|
36283
36342
|
statusSuffix = 'start';
|
|
36284
36343
|
}
|
|
36285
36344
|
|
|
36286
|
-
motionChildren = children(
|
|
36287
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
36345
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36346
|
+
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {}, _defineProperty(_classNames, getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix)), statusSuffix), _defineProperty(_classNames, motionName, typeof motionName === 'string'), _classNames)),
|
|
36288
36347
|
style: statusStyle
|
|
36289
36348
|
}), setNodeRef);
|
|
36290
36349
|
}
|
|
@@ -36297,41 +36356,6 @@ function genCSSMotion(config) {
|
|
|
36297
36356
|
return CSSMotion;
|
|
36298
36357
|
}
|
|
36299
36358
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36300
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36301
|
-
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36302
|
-
if (source == null) return {};
|
|
36303
|
-
var target = {};
|
|
36304
|
-
var sourceKeys = Object.keys(source);
|
|
36305
|
-
var key, i;
|
|
36306
|
-
|
|
36307
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
36308
|
-
key = sourceKeys[i];
|
|
36309
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36310
|
-
target[key] = source[key];
|
|
36311
|
-
}
|
|
36312
|
-
|
|
36313
|
-
return target;
|
|
36314
|
-
}
|
|
36315
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36316
|
-
|
|
36317
|
-
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36318
|
-
if (source == null) return {};
|
|
36319
|
-
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36320
|
-
var key, i;
|
|
36321
|
-
|
|
36322
|
-
if (Object.getOwnPropertySymbols) {
|
|
36323
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36324
|
-
|
|
36325
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36326
|
-
key = sourceSymbolKeys[i];
|
|
36327
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36328
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36329
|
-
target[key] = source[key];
|
|
36330
|
-
}
|
|
36331
|
-
}
|
|
36332
|
-
|
|
36333
|
-
return target;
|
|
36334
|
-
}
|
|
36335
36359
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
36336
36360
|
|
|
36337
36361
|
|
|
@@ -36342,7 +36366,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
36342
36366
|
function wrapKeyToObject(key) {
|
|
36343
36367
|
var keyObj;
|
|
36344
36368
|
|
|
36345
|
-
if (key &&
|
|
36369
|
+
if (key && typeof_typeof(key) === 'object' && 'key' in key) {
|
|
36346
36370
|
keyObj = key;
|
|
36347
36371
|
} else {
|
|
36348
36372
|
keyObj = {
|
|
@@ -36350,7 +36374,7 @@ function wrapKeyToObject(key) {
|
|
|
36350
36374
|
};
|
|
36351
36375
|
}
|
|
36352
36376
|
|
|
36353
|
-
return
|
|
36377
|
+
return _objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36354
36378
|
key: String(keyObj.key)
|
|
36355
36379
|
});
|
|
36356
36380
|
}
|
|
@@ -36377,14 +36401,14 @@ function diffKeys() {
|
|
|
36377
36401
|
// New added keys should add before current key
|
|
36378
36402
|
if (currentIndex < i) {
|
|
36379
36403
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
36380
|
-
return
|
|
36404
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36381
36405
|
status: STATUS_ADD
|
|
36382
36406
|
});
|
|
36383
36407
|
}));
|
|
36384
36408
|
currentIndex = i;
|
|
36385
36409
|
}
|
|
36386
36410
|
|
|
36387
|
-
list.push(
|
|
36411
|
+
list.push(_objectSpread2(_objectSpread2({}, currentKeyObj), {}, {
|
|
36388
36412
|
status: STATUS_KEEP
|
|
36389
36413
|
}));
|
|
36390
36414
|
currentIndex += 1;
|
|
@@ -36395,7 +36419,7 @@ function diffKeys() {
|
|
|
36395
36419
|
|
|
36396
36420
|
|
|
36397
36421
|
if (!hit) {
|
|
36398
|
-
list.push(
|
|
36422
|
+
list.push(_objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36399
36423
|
status: STATUS_REMOVE
|
|
36400
36424
|
}));
|
|
36401
36425
|
}
|
|
@@ -36403,7 +36427,7 @@ function diffKeys() {
|
|
|
36403
36427
|
|
|
36404
36428
|
if (currentIndex < currentLen) {
|
|
36405
36429
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36406
|
-
return
|
|
36430
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36407
36431
|
status: STATUS_ADD
|
|
36408
36432
|
});
|
|
36409
36433
|
}));
|
|
@@ -36464,14 +36488,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36464
36488
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36465
36489
|
|
|
36466
36490
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36467
|
-
|
|
36491
|
+
_inherits(CSSMotionList, _React$Component);
|
|
36468
36492
|
|
|
36469
|
-
var _super =
|
|
36493
|
+
var _super = _createSuper(CSSMotionList);
|
|
36470
36494
|
|
|
36471
36495
|
function CSSMotionList() {
|
|
36472
36496
|
var _this;
|
|
36473
36497
|
|
|
36474
|
-
|
|
36498
|
+
_classCallCheck(this, CSSMotionList);
|
|
36475
36499
|
|
|
36476
36500
|
_this = _super.apply(this, arguments);
|
|
36477
36501
|
_this.state = {
|
|
@@ -36484,7 +36508,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36484
36508
|
return {
|
|
36485
36509
|
keyEntities: keyEntities.map(function (entity) {
|
|
36486
36510
|
if (entity.key !== removeKey) return entity;
|
|
36487
|
-
return
|
|
36511
|
+
return _objectSpread2(_objectSpread2({}, entity), {}, {
|
|
36488
36512
|
status: STATUS_REMOVED
|
|
36489
36513
|
});
|
|
36490
36514
|
})
|
|
@@ -36495,7 +36519,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36495
36519
|
return _this;
|
|
36496
36520
|
}
|
|
36497
36521
|
|
|
36498
|
-
|
|
36522
|
+
_createClass(CSSMotionList, [{
|
|
36499
36523
|
key: "render",
|
|
36500
36524
|
value: function render() {
|
|
36501
36525
|
var _this2 = this;
|
|
@@ -36506,7 +36530,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36506
36530
|
component = _this$props.component,
|
|
36507
36531
|
children = _this$props.children,
|
|
36508
36532
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36509
|
-
restProps =
|
|
36533
|
+
restProps = _objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36510
36534
|
|
|
36511
36535
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36512
36536
|
var motionProps = {};
|
|
@@ -36517,10 +36541,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36517
36541
|
delete restProps.keys;
|
|
36518
36542
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36519
36543
|
var status = _ref2.status,
|
|
36520
|
-
eventProps =
|
|
36544
|
+
eventProps = _objectWithoutProperties(_ref2, ["status"]);
|
|
36521
36545
|
|
|
36522
36546
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36523
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
36547
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, extends_extends({}, motionProps, {
|
|
36524
36548
|
key: eventProps.key,
|
|
36525
36549
|
visible: visible,
|
|
36526
36550
|
eventProps: eventProps,
|
|
@@ -36720,7 +36744,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36720
36744
|
}); // ============================= Style ==============================
|
|
36721
36745
|
|
|
36722
36746
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
36723
|
-
_React$useState2 =
|
|
36747
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
36724
36748
|
transformOrigin = _React$useState2[0],
|
|
36725
36749
|
setTransformOrigin = _React$useState2[1];
|
|
36726
36750
|
|
|
@@ -36866,7 +36890,7 @@ function Dialog(props) {
|
|
|
36866
36890
|
var contentRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
36867
36891
|
|
|
36868
36892
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(visible),
|
|
36869
|
-
_React$useState2 =
|
|
36893
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
36870
36894
|
animatedVisible = _React$useState2[0],
|
|
36871
36895
|
setAnimatedVisible = _React$useState2[1]; // ========================== Init ==========================
|
|
36872
36896
|
|
|
@@ -37053,7 +37077,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37053
37077
|
}, [visible]); // 渲染在当前 dom 里;
|
|
37054
37078
|
|
|
37055
37079
|
if (getContainer === false) {
|
|
37056
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37080
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
37057
37081
|
getOpenCount: function getOpenCount() {
|
|
37058
37082
|
return 2;
|
|
37059
37083
|
} // 不对 body 做任何操作。。
|
|
@@ -37071,7 +37095,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37071
37095
|
forceRender: forceRender,
|
|
37072
37096
|
getContainer: getContainer
|
|
37073
37097
|
}, function (childProps) {
|
|
37074
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37098
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
37075
37099
|
destroyOnClose: destroyOnClose,
|
|
37076
37100
|
afterClose: function afterClose() {
|
|
37077
37101
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -37106,8 +37130,8 @@ function getConfirmLocale() {
|
|
|
37106
37130
|
|
|
37107
37131
|
|
|
37108
37132
|
|
|
37109
|
-
var UnreachableException = /*#__PURE__*/
|
|
37110
|
-
|
|
37133
|
+
var UnreachableException = /*#__PURE__*/_createClass(function UnreachableException(value) {
|
|
37134
|
+
_classCallCheck(this, UnreachableException);
|
|
37111
37135
|
|
|
37112
37136
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
37113
37137
|
});
|
|
@@ -37170,8 +37194,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
37170
37194
|
console.warn(new UnreachableException(size).error);
|
|
37171
37195
|
}
|
|
37172
37196
|
|
|
37173
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37174
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37197
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37198
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, others, {
|
|
37175
37199
|
className: classes
|
|
37176
37200
|
}));
|
|
37177
37201
|
});
|
|
@@ -37242,14 +37266,14 @@ function isNotGrey(color) {
|
|
|
37242
37266
|
}
|
|
37243
37267
|
|
|
37244
37268
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
37245
|
-
|
|
37269
|
+
_inherits(Wave, _React$Component);
|
|
37246
37270
|
|
|
37247
|
-
var _super =
|
|
37271
|
+
var _super = _createSuper(Wave);
|
|
37248
37272
|
|
|
37249
37273
|
function Wave() {
|
|
37250
37274
|
var _this;
|
|
37251
37275
|
|
|
37252
|
-
|
|
37276
|
+
_classCallCheck(this, Wave);
|
|
37253
37277
|
|
|
37254
37278
|
_this = _super.apply(this, arguments);
|
|
37255
37279
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -37269,7 +37293,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37269
37293
|
|
|
37270
37294
|
_this.extraNode = document.createElement('div');
|
|
37271
37295
|
|
|
37272
|
-
var _assertThisInitialize =
|
|
37296
|
+
var _assertThisInitialize = _assertThisInitialized(_this),
|
|
37273
37297
|
extraNode = _assertThisInitialize.extraNode;
|
|
37274
37298
|
|
|
37275
37299
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -37376,7 +37400,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37376
37400
|
return _this;
|
|
37377
37401
|
}
|
|
37378
37402
|
|
|
37379
|
-
|
|
37403
|
+
_createClass(Wave, [{
|
|
37380
37404
|
key: "componentDidMount",
|
|
37381
37405
|
value: function componentDidMount() {
|
|
37382
37406
|
var node = this.containerRef.current;
|
|
@@ -37603,7 +37627,7 @@ function spaceChildren(children, needInserted) {
|
|
|
37603
37627
|
var isPrevChildPure = false;
|
|
37604
37628
|
var childList = [];
|
|
37605
37629
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
37606
|
-
var type =
|
|
37630
|
+
var type = typeof_typeof(child);
|
|
37607
37631
|
|
|
37608
37632
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
37609
37633
|
|
|
@@ -37703,7 +37727,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37703
37727
|
}; // =============== Update Loading ===============
|
|
37704
37728
|
|
|
37705
37729
|
|
|
37706
|
-
var loadingOrDelay =
|
|
37730
|
+
var loadingOrDelay = typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
37707
37731
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
37708
37732
|
clearTimeout(delayTimeoutRef.current);
|
|
37709
37733
|
|
|
@@ -37743,7 +37767,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37743
37767
|
var sizeFullname = customizeSize || size;
|
|
37744
37768
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
37745
37769
|
var iconType = innerLoading ? 'loading' : icon;
|
|
37746
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37770
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(type), type), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(shape), shape !== 'default' && shape), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty(_classNames, "".concat(prefixCls, "-icon-only"), !children && children !== 0 && !!iconType), _defineProperty(_classNames, "".concat(prefixCls, "-background-ghost"), ghost && !isUnborderedButtonType(type)), _defineProperty(_classNames, "".concat(prefixCls, "-loading"), innerLoading), _defineProperty(_classNames, "".concat(prefixCls, "-two-chinese-chars"), hasTwoCNChar && autoInsertSpace), _defineProperty(_classNames, "".concat(prefixCls, "-block"), block), _defineProperty(_classNames, "".concat(prefixCls, "-dangerous"), !!danger), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37747
37771
|
var iconNode;
|
|
37748
37772
|
|
|
37749
37773
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -37762,14 +37786,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37762
37786
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
37763
37787
|
|
|
37764
37788
|
if (linkButtonRestProps.href !== undefined) {
|
|
37765
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
37789
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", extends_extends({}, linkButtonRestProps, {
|
|
37766
37790
|
className: classes,
|
|
37767
37791
|
onClick: handleClick,
|
|
37768
37792
|
ref: buttonRef
|
|
37769
37793
|
}), iconNode, kids);
|
|
37770
37794
|
}
|
|
37771
37795
|
|
|
37772
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
37796
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", extends_extends({}, rest, {
|
|
37773
37797
|
type: htmlType,
|
|
37774
37798
|
className: classes,
|
|
37775
37799
|
onClick: handleClick,
|
|
@@ -37947,9 +37971,9 @@ var Modal = function Modal(props) {
|
|
|
37947
37971
|
okType = props.okType,
|
|
37948
37972
|
cancelText = props.cancelText,
|
|
37949
37973
|
confirmLoading = props.confirmLoading;
|
|
37950
|
-
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,
|
|
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, extends_extends({
|
|
37951
37975
|
onClick: handleCancel
|
|
37952
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
37976
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, extends_extends({}, convertLegacyProps(okType), {
|
|
37953
37977
|
loading: confirmLoading,
|
|
37954
37978
|
onClick: handleOk
|
|
37955
37979
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -37984,8 +38008,8 @@ var Modal = function Modal(props) {
|
|
|
37984
38008
|
type: "close",
|
|
37985
38009
|
className: "".concat(prefixCls, "-close-icon")
|
|
37986
38010
|
}));
|
|
37987
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
37988
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
38011
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), _defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
38012
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, extends_extends({}, restProps, {
|
|
37989
38013
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
37990
38014
|
prefixCls: prefixCls,
|
|
37991
38015
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -38111,7 +38135,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
38111
38135
|
children = props.children,
|
|
38112
38136
|
prefixCls = props.prefixCls,
|
|
38113
38137
|
buttonProps = props.buttonProps;
|
|
38114
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
38138
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, extends_extends({}, convertLegacyProps(type), {
|
|
38115
38139
|
onClick: onClick,
|
|
38116
38140
|
loading: loading,
|
|
38117
38141
|
prefixCls: prefixCls
|
|
@@ -39628,7 +39652,7 @@ function get(entity, path) {
|
|
|
39628
39652
|
|
|
39629
39653
|
|
|
39630
39654
|
function _toArray(arr) {
|
|
39631
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
39655
|
+
return arrayWithHoles_arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
39632
39656
|
}
|
|
39633
39657
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
39634
39658
|
|
|
@@ -39650,9 +39674,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
39650
39674
|
if (!entity && typeof path === 'number') {
|
|
39651
39675
|
clone = [];
|
|
39652
39676
|
} else if (Array.isArray(entity)) {
|
|
39653
|
-
clone =
|
|
39677
|
+
clone = _toConsumableArray(entity);
|
|
39654
39678
|
} else {
|
|
39655
|
-
clone =
|
|
39679
|
+
clone = _objectSpread2({}, entity);
|
|
39656
39680
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
39657
39681
|
|
|
39658
39682
|
|
|
@@ -39716,7 +39740,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
39716
39740
|
}
|
|
39717
39741
|
|
|
39718
39742
|
function isObject(obj) {
|
|
39719
|
-
return
|
|
39743
|
+
return typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
39720
39744
|
}
|
|
39721
39745
|
/**
|
|
39722
39746
|
* Copy values into store and return a new values object
|
|
@@ -39725,7 +39749,7 @@ function isObject(obj) {
|
|
|
39725
39749
|
|
|
39726
39750
|
|
|
39727
39751
|
function internalSetValues(store, values) {
|
|
39728
|
-
var newStore = Array.isArray(store) ?
|
|
39752
|
+
var newStore = Array.isArray(store) ? _toConsumableArray(store) : _objectSpread2({}, store);
|
|
39729
39753
|
|
|
39730
39754
|
if (!values) {
|
|
39731
39755
|
return newStore;
|
|
@@ -39768,14 +39792,14 @@ function isSimilar(source, target) {
|
|
|
39768
39792
|
return false;
|
|
39769
39793
|
}
|
|
39770
39794
|
|
|
39771
|
-
if (!source || !target ||
|
|
39795
|
+
if (!source || !target || typeof_typeof(source) !== 'object' || typeof_typeof(target) !== 'object') {
|
|
39772
39796
|
return false;
|
|
39773
39797
|
}
|
|
39774
39798
|
|
|
39775
39799
|
var sourceKeys = Object.keys(source);
|
|
39776
39800
|
var targetKeys = Object.keys(target);
|
|
39777
|
-
var keys = new Set([].concat(
|
|
39778
|
-
return
|
|
39801
|
+
var keys = new Set([].concat(_toConsumableArray(sourceKeys), _toConsumableArray(targetKeys)));
|
|
39802
|
+
return _toConsumableArray(keys).every(function (key) {
|
|
39779
39803
|
var sourceValue = source[key];
|
|
39780
39804
|
var targetValue = target[key];
|
|
39781
39805
|
|
|
@@ -39818,12 +39842,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
39818
39842
|
|
|
39819
39843
|
if (diff > 0) {
|
|
39820
39844
|
// move left
|
|
39821
|
-
return [].concat(
|
|
39845
|
+
return [].concat(_toConsumableArray(array.slice(0, toIndex)), [item], _toConsumableArray(array.slice(toIndex, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
39822
39846
|
}
|
|
39823
39847
|
|
|
39824
39848
|
if (diff < 0) {
|
|
39825
39849
|
// move right
|
|
39826
|
-
return [].concat(
|
|
39850
|
+
return [].concat(_toConsumableArray(array.slice(0, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], _toConsumableArray(array.slice(toIndex + 1, length)));
|
|
39827
39851
|
}
|
|
39828
39852
|
|
|
39829
39853
|
return array;
|
|
@@ -39863,13 +39887,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
39863
39887
|
|
|
39864
39888
|
|
|
39865
39889
|
function _validateRule() {
|
|
39866
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39890
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
39867
39891
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
39868
|
-
return
|
|
39892
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
39869
39893
|
while (1) {
|
|
39870
39894
|
switch (_context2.prev = _context2.next) {
|
|
39871
39895
|
case 0:
|
|
39872
|
-
cloneRule =
|
|
39896
|
+
cloneRule = _objectSpread2({}, rule); // Bug of `async-validator`
|
|
39873
39897
|
// https://github.com/react-component/field-form/issues/316
|
|
39874
39898
|
// https://github.com/react-component/field-form/issues/313
|
|
39875
39899
|
|
|
@@ -39882,13 +39906,13 @@ function _validateRule() {
|
|
|
39882
39906
|
delete cloneRule.defaultField;
|
|
39883
39907
|
}
|
|
39884
39908
|
|
|
39885
|
-
validator = new AsyncValidator(
|
|
39909
|
+
validator = new AsyncValidator(_defineProperty({}, name, [cloneRule]));
|
|
39886
39910
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
39887
39911
|
validator.messages(messages);
|
|
39888
39912
|
result = [];
|
|
39889
39913
|
_context2.prev = 8;
|
|
39890
39914
|
_context2.next = 11;
|
|
39891
|
-
return Promise.resolve(validator.validate(
|
|
39915
|
+
return Promise.resolve(validator.validate(_defineProperty({}, name, value), _objectSpread2({}, options)));
|
|
39892
39916
|
|
|
39893
39917
|
case 11:
|
|
39894
39918
|
_context2.next = 16;
|
|
@@ -39928,12 +39952,12 @@ function _validateRule() {
|
|
|
39928
39952
|
case 19:
|
|
39929
39953
|
subResults = _context2.sent;
|
|
39930
39954
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
39931
|
-
return [].concat(
|
|
39955
|
+
return [].concat(_toConsumableArray(prev), _toConsumableArray(errors));
|
|
39932
39956
|
}, []));
|
|
39933
39957
|
|
|
39934
39958
|
case 21:
|
|
39935
39959
|
// Replace message with variables
|
|
39936
|
-
kv =
|
|
39960
|
+
kv = _objectSpread2(_objectSpread2({}, rule), {}, {
|
|
39937
39961
|
name: name,
|
|
39938
39962
|
enum: (rule.enum || []).join(', ')
|
|
39939
39963
|
}, messageVariables);
|
|
@@ -39962,7 +39986,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
39962
39986
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
39963
39987
|
var originValidatorFunc = currentRule.validator;
|
|
39964
39988
|
|
|
39965
|
-
var cloneRule =
|
|
39989
|
+
var cloneRule = _objectSpread2(_objectSpread2({}, currentRule), {}, {
|
|
39966
39990
|
ruleIndex: ruleIndex
|
|
39967
39991
|
}); // Replace validator if needed
|
|
39968
39992
|
|
|
@@ -40030,9 +40054,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40030
40054
|
if (validateFirst === true) {
|
|
40031
40055
|
// >>>>> Validate by serialization
|
|
40032
40056
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
40033
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40057
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(resolve, reject) {
|
|
40034
40058
|
var i, rule, errors;
|
|
40035
|
-
return
|
|
40059
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
40036
40060
|
while (1) {
|
|
40037
40061
|
switch (_context.prev = _context.next) {
|
|
40038
40062
|
case 0:
|
|
@@ -40111,15 +40135,15 @@ function finishOnAllFailed(_x8) {
|
|
|
40111
40135
|
}
|
|
40112
40136
|
|
|
40113
40137
|
function _finishOnAllFailed() {
|
|
40114
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40115
|
-
return
|
|
40138
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(rulePromises) {
|
|
40139
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
40116
40140
|
while (1) {
|
|
40117
40141
|
switch (_context3.prev = _context3.next) {
|
|
40118
40142
|
case 0:
|
|
40119
40143
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
40120
40144
|
var _ref5;
|
|
40121
40145
|
|
|
40122
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
40146
|
+
var errors = (_ref5 = []).concat.apply(_ref5, _toConsumableArray(errorsList));
|
|
40123
40147
|
|
|
40124
40148
|
return errors;
|
|
40125
40149
|
}));
|
|
@@ -40139,9 +40163,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
40139
40163
|
}
|
|
40140
40164
|
|
|
40141
40165
|
function _finishOnFirstFailed() {
|
|
40142
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40166
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(rulePromises) {
|
|
40143
40167
|
var count;
|
|
40144
|
-
return
|
|
40168
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
40145
40169
|
while (1) {
|
|
40146
40170
|
switch (_context4.prev = _context4.next) {
|
|
40147
40171
|
case 0:
|
|
@@ -40204,9 +40228,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
40204
40228
|
|
|
40205
40229
|
|
|
40206
40230
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
40207
|
-
|
|
40231
|
+
_inherits(Field, _React$Component);
|
|
40208
40232
|
|
|
40209
|
-
var _super =
|
|
40233
|
+
var _super = _createSuper(Field);
|
|
40210
40234
|
|
|
40211
40235
|
/**
|
|
40212
40236
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -40222,7 +40246,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40222
40246
|
function Field(props) {
|
|
40223
40247
|
var _this;
|
|
40224
40248
|
|
|
40225
|
-
|
|
40249
|
+
_classCallCheck(this, Field);
|
|
40226
40250
|
|
|
40227
40251
|
_this = _super.call(this, props); // Register on init
|
|
40228
40252
|
|
|
@@ -40257,7 +40281,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40257
40281
|
fieldContext = _this$props2.fieldContext;
|
|
40258
40282
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
40259
40283
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
40260
|
-
return name !== undefined ? [].concat(
|
|
40284
|
+
return name !== undefined ? [].concat(_toConsumableArray(prefixName), _toConsumableArray(name)) : [];
|
|
40261
40285
|
};
|
|
40262
40286
|
|
|
40263
40287
|
_this.getRules = function () {
|
|
@@ -40290,7 +40314,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40290
40314
|
|
|
40291
40315
|
_this.triggerMetaEvent = function (destroy) {
|
|
40292
40316
|
var onMetaChange = _this.props.onMetaChange;
|
|
40293
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
40317
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(_objectSpread2(_objectSpread2({}, _this.getMeta()), {}, {
|
|
40294
40318
|
destroy: destroy
|
|
40295
40319
|
}));
|
|
40296
40320
|
};
|
|
@@ -40479,9 +40503,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40479
40503
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
40480
40504
|
|
|
40481
40505
|
if (warningOnly) {
|
|
40482
|
-
nextWarnings.push.apply(nextWarnings,
|
|
40506
|
+
nextWarnings.push.apply(nextWarnings, _toConsumableArray(errors));
|
|
40483
40507
|
} else {
|
|
40484
|
-
nextErrors.push.apply(nextErrors,
|
|
40508
|
+
nextErrors.push.apply(nextErrors, _toConsumableArray(errors));
|
|
40485
40509
|
}
|
|
40486
40510
|
});
|
|
40487
40511
|
_this.errors = nextErrors;
|
|
@@ -40572,7 +40596,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40572
40596
|
if (typeof children === 'function') {
|
|
40573
40597
|
var meta = _this.getMeta();
|
|
40574
40598
|
|
|
40575
|
-
return
|
|
40599
|
+
return _objectSpread2(_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
40576
40600
|
isFunction: true
|
|
40577
40601
|
});
|
|
40578
40602
|
} // Filed element only
|
|
@@ -40624,13 +40648,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40624
40648
|
var value = _this.getValue();
|
|
40625
40649
|
|
|
40626
40650
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
40627
|
-
return
|
|
40651
|
+
return _defineProperty({}, valuePropName, val);
|
|
40628
40652
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40629
40653
|
|
|
40630
40654
|
|
|
40631
40655
|
var originTriggerFunc = childProps[trigger];
|
|
40632
40656
|
|
|
40633
|
-
var control =
|
|
40657
|
+
var control = _objectSpread2(_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
40634
40658
|
|
|
40635
40659
|
|
|
40636
40660
|
control[trigger] = function () {
|
|
@@ -40701,13 +40725,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40701
40725
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
40702
40726
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
40703
40727
|
|
|
40704
|
-
initEntityValue(
|
|
40728
|
+
initEntityValue(_assertThisInitialized(_this));
|
|
40705
40729
|
}
|
|
40706
40730
|
|
|
40707
40731
|
return _this;
|
|
40708
40732
|
}
|
|
40709
40733
|
|
|
40710
|
-
|
|
40734
|
+
_createClass(Field, [{
|
|
40711
40735
|
key: "componentDidMount",
|
|
40712
40736
|
value: function componentDidMount() {
|
|
40713
40737
|
var _this$props7 = this.props,
|
|
@@ -40781,7 +40805,7 @@ Field.defaultProps = {
|
|
|
40781
40805
|
|
|
40782
40806
|
function WrapperField(_ref5) {
|
|
40783
40807
|
var name = _ref5.name,
|
|
40784
|
-
restProps =
|
|
40808
|
+
restProps = _objectWithoutProperties(_ref5, Field_excluded);
|
|
40785
40809
|
|
|
40786
40810
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
40787
40811
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -40795,7 +40819,7 @@ function WrapperField(_ref5) {
|
|
|
40795
40819
|
|
|
40796
40820
|
if (false) {}
|
|
40797
40821
|
|
|
40798
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
40822
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, extends_extends({
|
|
40799
40823
|
key: key,
|
|
40800
40824
|
name: namePath
|
|
40801
40825
|
}, restProps, {
|
|
@@ -40832,7 +40856,7 @@ var List = function List(_ref) {
|
|
|
40832
40856
|
}
|
|
40833
40857
|
|
|
40834
40858
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
40835
|
-
var prefixName = [].concat(
|
|
40859
|
+
var prefixName = [].concat(_toConsumableArray(parentPrefixName), _toConsumableArray(getNamePath(name)));
|
|
40836
40860
|
|
|
40837
40861
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
40838
40862
|
var source = _ref2.source;
|
|
@@ -40845,7 +40869,7 @@ var List = function List(_ref) {
|
|
|
40845
40869
|
};
|
|
40846
40870
|
|
|
40847
40871
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
40848
|
-
value:
|
|
40872
|
+
value: _objectSpread2(_objectSpread2({}, context), {}, {
|
|
40849
40873
|
prefixName: prefixName
|
|
40850
40874
|
})
|
|
40851
40875
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -40876,13 +40900,13 @@ var List = function List(_ref) {
|
|
|
40876
40900
|
var newValue = getNewValue();
|
|
40877
40901
|
|
|
40878
40902
|
if (index >= 0 && index <= newValue.length) {
|
|
40879
|
-
keyManager.keys = [].concat(
|
|
40880
|
-
onChange([].concat(
|
|
40903
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], _toConsumableArray(keyManager.keys.slice(index)));
|
|
40904
|
+
onChange([].concat(_toConsumableArray(newValue.slice(0, index)), [defaultValue], _toConsumableArray(newValue.slice(index))));
|
|
40881
40905
|
} else {
|
|
40882
40906
|
if (false) {}
|
|
40883
40907
|
|
|
40884
|
-
keyManager.keys = [].concat(
|
|
40885
|
-
onChange([].concat(
|
|
40908
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
40909
|
+
onChange([].concat(_toConsumableArray(newValue), [defaultValue]));
|
|
40886
40910
|
}
|
|
40887
40911
|
|
|
40888
40912
|
keyManager.id += 1;
|
|
@@ -40991,7 +41015,7 @@ var SPLIT = '__@field_split__';
|
|
|
40991
41015
|
|
|
40992
41016
|
function normalize(namePath) {
|
|
40993
41017
|
return namePath.map(function (cell) {
|
|
40994
|
-
return "".concat(
|
|
41018
|
+
return "".concat(typeof_typeof(cell), ":").concat(cell);
|
|
40995
41019
|
}) // Magic split
|
|
40996
41020
|
.join(SPLIT);
|
|
40997
41021
|
}
|
|
@@ -41002,12 +41026,12 @@ function normalize(namePath) {
|
|
|
41002
41026
|
|
|
41003
41027
|
var NameMap = /*#__PURE__*/function () {
|
|
41004
41028
|
function NameMap() {
|
|
41005
|
-
|
|
41029
|
+
_classCallCheck(this, NameMap);
|
|
41006
41030
|
|
|
41007
41031
|
this.kvs = new Map();
|
|
41008
41032
|
}
|
|
41009
41033
|
|
|
41010
|
-
|
|
41034
|
+
_createClass(NameMap, [{
|
|
41011
41035
|
key: "set",
|
|
41012
41036
|
value: function set(key, value) {
|
|
41013
41037
|
this.kvs.set(normalize(key), value);
|
|
@@ -41038,7 +41062,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
41038
41062
|
}, {
|
|
41039
41063
|
key: "map",
|
|
41040
41064
|
value: function map(callback) {
|
|
41041
|
-
return
|
|
41065
|
+
return _toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
41042
41066
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
41043
41067
|
key = _ref2[0],
|
|
41044
41068
|
value = _ref2[1];
|
|
@@ -41092,7 +41116,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
41092
41116
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
41093
41117
|
var _this = this;
|
|
41094
41118
|
|
|
41095
|
-
|
|
41119
|
+
_classCallCheck(this, FormStore);
|
|
41096
41120
|
|
|
41097
41121
|
this.formHooked = false;
|
|
41098
41122
|
this.forceRootUpdate = void 0;
|
|
@@ -41352,7 +41376,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41352
41376
|
return fieldNamePath[i] === nameUnit;
|
|
41353
41377
|
})) {
|
|
41354
41378
|
map.update(shortNamePath, function (list) {
|
|
41355
|
-
return [].concat(
|
|
41379
|
+
return [].concat(_toConsumableArray(list), [field]);
|
|
41356
41380
|
});
|
|
41357
41381
|
}
|
|
41358
41382
|
});
|
|
@@ -41443,7 +41467,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41443
41467
|
|
|
41444
41468
|
|
|
41445
41469
|
if (!info.skipExist || originValue === undefined) {
|
|
41446
|
-
_this.store = setValue(_this.store, namePath,
|
|
41470
|
+
_this.store = setValue(_this.store, namePath, _toConsumableArray(records)[0].value);
|
|
41447
41471
|
}
|
|
41448
41472
|
}
|
|
41449
41473
|
}
|
|
@@ -41463,7 +41487,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41463
41487
|
if (records) {
|
|
41464
41488
|
var _requiredFieldEntitie;
|
|
41465
41489
|
|
|
41466
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
41490
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, _toConsumableArray(_toConsumableArray(records).map(function (r) {
|
|
41467
41491
|
return r.entity;
|
|
41468
41492
|
})));
|
|
41469
41493
|
}
|
|
@@ -41516,7 +41540,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41516
41540
|
fields.forEach(function (fieldData) {
|
|
41517
41541
|
var name = fieldData.name,
|
|
41518
41542
|
errors = fieldData.errors,
|
|
41519
|
-
data =
|
|
41543
|
+
data = _objectWithoutProperties(fieldData, useForm_excluded);
|
|
41520
41544
|
|
|
41521
41545
|
var namePath = getNamePath(name); // Value
|
|
41522
41546
|
|
|
@@ -41538,7 +41562,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41538
41562
|
var namePath = field.getNamePath();
|
|
41539
41563
|
var meta = field.getMeta();
|
|
41540
41564
|
|
|
41541
|
-
var fieldData =
|
|
41565
|
+
var fieldData = _objectSpread2(_objectSpread2({}, meta), {}, {
|
|
41542
41566
|
name: namePath,
|
|
41543
41567
|
value: _this.getFieldValue(namePath)
|
|
41544
41568
|
});
|
|
@@ -41637,7 +41661,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41637
41661
|
|
|
41638
41662
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
41639
41663
|
if (_this.subscribable) {
|
|
41640
|
-
var mergedInfo =
|
|
41664
|
+
var mergedInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
41641
41665
|
store: _this.getFieldsValue(true)
|
|
41642
41666
|
});
|
|
41643
41667
|
|
|
@@ -41670,7 +41694,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41670
41694
|
|
|
41671
41695
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
41672
41696
|
type: 'dependenciesUpdate',
|
|
41673
|
-
relatedFields: [namePath].concat(
|
|
41697
|
+
relatedFields: [namePath].concat(_toConsumableArray(childrenFields))
|
|
41674
41698
|
}); // trigger callback function
|
|
41675
41699
|
|
|
41676
41700
|
|
|
@@ -41681,7 +41705,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41681
41705
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
41682
41706
|
}
|
|
41683
41707
|
|
|
41684
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
41708
|
+
_this.triggerOnFieldsChange([namePath].concat(_toConsumableArray(childrenFields)));
|
|
41685
41709
|
};
|
|
41686
41710
|
|
|
41687
41711
|
this.setFieldsValue = function (store) {
|
|
@@ -41809,8 +41833,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41809
41833
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
41810
41834
|
|
|
41811
41835
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
41812
|
-
var promise = field.validateRules(
|
|
41813
|
-
validateMessages:
|
|
41836
|
+
var promise = field.validateRules(_objectSpread2({
|
|
41837
|
+
validateMessages: _objectSpread2(_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
41814
41838
|
}, options)); // Wrap promise with field
|
|
41815
41839
|
|
|
41816
41840
|
promiseList.push(promise.then(function () {
|
|
@@ -41827,9 +41851,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41827
41851
|
errors = _ref5.errors;
|
|
41828
41852
|
|
|
41829
41853
|
if (warningOnly) {
|
|
41830
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
41854
|
+
mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
|
|
41831
41855
|
} else {
|
|
41832
|
-
mergedErrors.push.apply(mergedErrors,
|
|
41856
|
+
mergedErrors.push.apply(mergedErrors, _toConsumableArray(errors));
|
|
41833
41857
|
}
|
|
41834
41858
|
});
|
|
41835
41859
|
|
|
@@ -41960,8 +41984,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
41960
41984
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
41961
41985
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
41962
41986
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
41963
|
-
value:
|
|
41964
|
-
validateMessages:
|
|
41987
|
+
value: _objectSpread2(_objectSpread2({}, formContext), {}, {
|
|
41988
|
+
validateMessages: _objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
41965
41989
|
// =========================================================
|
|
41966
41990
|
// = Global Form Control =
|
|
41967
41991
|
// =========================================================
|
|
@@ -41987,13 +42011,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
41987
42011
|
},
|
|
41988
42012
|
registerForm: function registerForm(name, form) {
|
|
41989
42013
|
if (name) {
|
|
41990
|
-
formsRef.current =
|
|
42014
|
+
formsRef.current = _objectSpread2(_objectSpread2({}, formsRef.current), {}, _defineProperty({}, name, form));
|
|
41991
42015
|
}
|
|
41992
42016
|
|
|
41993
42017
|
formContext.registerForm(name, form);
|
|
41994
42018
|
},
|
|
41995
42019
|
unregisterForm: function unregisterForm(name) {
|
|
41996
|
-
var newForms =
|
|
42020
|
+
var newForms = _objectSpread2({}, formsRef.current);
|
|
41997
42021
|
|
|
41998
42022
|
delete newForms[name];
|
|
41999
42023
|
formsRef.current = newForms;
|
|
@@ -42033,7 +42057,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42033
42057
|
_onFieldsChange = _ref.onFieldsChange,
|
|
42034
42058
|
_onFinish = _ref.onFinish,
|
|
42035
42059
|
onFinishFailed = _ref.onFinishFailed,
|
|
42036
|
-
restProps =
|
|
42060
|
+
restProps = _objectWithoutProperties(_ref, Form_excluded);
|
|
42037
42061
|
|
|
42038
42062
|
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:
|
|
42039
42063
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -42061,7 +42085,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42061
42085
|
};
|
|
42062
42086
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
42063
42087
|
|
|
42064
|
-
setValidateMessages(
|
|
42088
|
+
setValidateMessages(_objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
42065
42089
|
setCallbacks({
|
|
42066
42090
|
onValuesChange: onValuesChange,
|
|
42067
42091
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -42114,7 +42138,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42114
42138
|
prevFieldsRef.current = fields;
|
|
42115
42139
|
}, [fields, formInstance]);
|
|
42116
42140
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
42117
|
-
return
|
|
42141
|
+
return _objectSpread2(_objectSpread2({}, formInstance), {}, {
|
|
42118
42142
|
validateTrigger: validateTrigger
|
|
42119
42143
|
});
|
|
42120
42144
|
}, [formInstance, validateTrigger]);
|
|
@@ -42126,7 +42150,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42126
42150
|
return wrapperNode;
|
|
42127
42151
|
}
|
|
42128
42152
|
|
|
42129
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
42153
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, restProps, {
|
|
42130
42154
|
onSubmit: function onSubmit(event) {
|
|
42131
42155
|
event.preventDefault();
|
|
42132
42156
|
event.stopPropagation();
|
|
@@ -42308,14 +42332,14 @@ LocaleProvider.defaultProps = {
|
|
|
42308
42332
|
|
|
42309
42333
|
|
|
42310
42334
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
42311
|
-
|
|
42335
|
+
_inherits(Notice, _Component);
|
|
42312
42336
|
|
|
42313
|
-
var _super =
|
|
42337
|
+
var _super = _createSuper(Notice);
|
|
42314
42338
|
|
|
42315
42339
|
function Notice() {
|
|
42316
42340
|
var _this;
|
|
42317
42341
|
|
|
42318
|
-
|
|
42342
|
+
_classCallCheck(this, Notice);
|
|
42319
42343
|
|
|
42320
42344
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42321
42345
|
args[_key] = arguments[_key];
|
|
@@ -42358,7 +42382,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42358
42382
|
return _this;
|
|
42359
42383
|
}
|
|
42360
42384
|
|
|
42361
|
-
|
|
42385
|
+
_createClass(Notice, [{
|
|
42362
42386
|
key: "componentDidMount",
|
|
42363
42387
|
value: function componentDidMount() {
|
|
42364
42388
|
this.startCloseTimer();
|
|
@@ -42404,8 +42428,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42404
42428
|
|
|
42405
42429
|
return acc;
|
|
42406
42430
|
}, {});
|
|
42407
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
42408
|
-
className: classnames_default()(componentClass, className,
|
|
42431
|
+
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
42432
|
+
className: classnames_default()(componentClass, className, _defineProperty({}, "".concat(componentClass, "-closable"), closable)),
|
|
42409
42433
|
style: style,
|
|
42410
42434
|
onMouseEnter: this.clearCloseTimer,
|
|
42411
42435
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -42436,52 +42460,6 @@ Notice.defaultProps = {
|
|
|
42436
42460
|
duration: 1.5
|
|
42437
42461
|
};
|
|
42438
42462
|
|
|
42439
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
42440
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
42441
|
-
if (Array.isArray(arr)) return arr;
|
|
42442
|
-
}
|
|
42443
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
42444
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
42445
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42446
|
-
|
|
42447
|
-
if (_i == null) return;
|
|
42448
|
-
var _arr = [];
|
|
42449
|
-
var _n = true;
|
|
42450
|
-
var _d = false;
|
|
42451
|
-
|
|
42452
|
-
var _s, _e;
|
|
42453
|
-
|
|
42454
|
-
try {
|
|
42455
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
42456
|
-
_arr.push(_s.value);
|
|
42457
|
-
|
|
42458
|
-
if (i && _arr.length === i) break;
|
|
42459
|
-
}
|
|
42460
|
-
} catch (err) {
|
|
42461
|
-
_d = true;
|
|
42462
|
-
_e = err;
|
|
42463
|
-
} finally {
|
|
42464
|
-
try {
|
|
42465
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
42466
|
-
} finally {
|
|
42467
|
-
if (_d) throw _e;
|
|
42468
|
-
}
|
|
42469
|
-
}
|
|
42470
|
-
|
|
42471
|
-
return _arr;
|
|
42472
|
-
}
|
|
42473
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
42474
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
42475
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
42476
|
-
}
|
|
42477
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
42478
|
-
|
|
42479
|
-
|
|
42480
|
-
|
|
42481
|
-
|
|
42482
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
42483
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
42484
|
-
}
|
|
42485
42463
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
42486
42464
|
|
|
42487
42465
|
|
|
@@ -42492,7 +42470,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42492
42470
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42493
42471
|
|
|
42494
42472
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42495
|
-
_React$useState2 =
|
|
42473
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
42496
42474
|
elements = _React$useState2[0],
|
|
42497
42475
|
setElements = _React$useState2[1];
|
|
42498
42476
|
|
|
@@ -42553,14 +42531,14 @@ function getUuid() {
|
|
|
42553
42531
|
}
|
|
42554
42532
|
|
|
42555
42533
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
42556
|
-
|
|
42534
|
+
_inherits(Notification, _Component);
|
|
42557
42535
|
|
|
42558
|
-
var _super =
|
|
42536
|
+
var _super = _createSuper(Notification);
|
|
42559
42537
|
|
|
42560
42538
|
function Notification() {
|
|
42561
42539
|
var _this;
|
|
42562
42540
|
|
|
42563
|
-
|
|
42541
|
+
_classCallCheck(this, Notification);
|
|
42564
42542
|
|
|
42565
42543
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42566
42544
|
args[_key] = arguments[_key];
|
|
@@ -42575,7 +42553,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42575
42553
|
_this.add = function (originNotice, holderCallback) {
|
|
42576
42554
|
var key = originNotice.key || getUuid();
|
|
42577
42555
|
|
|
42578
|
-
var notice =
|
|
42556
|
+
var notice = _objectSpread2(_objectSpread2({}, originNotice), {}, {
|
|
42579
42557
|
key: key
|
|
42580
42558
|
});
|
|
42581
42559
|
|
|
@@ -42642,7 +42620,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42642
42620
|
return _this;
|
|
42643
42621
|
}
|
|
42644
42622
|
|
|
42645
|
-
|
|
42623
|
+
_createClass(Notification, [{
|
|
42646
42624
|
key: "getTransitionName",
|
|
42647
42625
|
value: function getTransitionName() {
|
|
42648
42626
|
var _this$props = this.props,
|
|
@@ -42675,7 +42653,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42675
42653
|
var key = notice.key,
|
|
42676
42654
|
userPassKey = notice.userPassKey;
|
|
42677
42655
|
|
|
42678
|
-
var noticeProps =
|
|
42656
|
+
var noticeProps = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
42679
42657
|
prefixCls: prefixCls,
|
|
42680
42658
|
closeIcon: closeIcon
|
|
42681
42659
|
}, notice), notice.props), {}, {
|
|
@@ -42726,7 +42704,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42726
42704
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
42727
42705
|
key: key,
|
|
42728
42706
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
42729
|
-
style:
|
|
42707
|
+
style: _objectSpread2({}, motionStyle),
|
|
42730
42708
|
ref: function ref(div) {
|
|
42731
42709
|
if (typeof key === 'undefined') {
|
|
42732
42710
|
return;
|
|
@@ -42743,9 +42721,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42743
42721
|
});
|
|
42744
42722
|
}
|
|
42745
42723
|
|
|
42746
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
42724
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, extends_extends({}, noticeProps, {
|
|
42747
42725
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
42748
|
-
style:
|
|
42726
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
42749
42727
|
visible: visible
|
|
42750
42728
|
}));
|
|
42751
42729
|
}));
|
|
@@ -42768,7 +42746,7 @@ Notification.defaultProps = {
|
|
|
42768
42746
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
42769
42747
|
var _ref6 = properties || {},
|
|
42770
42748
|
getContainer = _ref6.getContainer,
|
|
42771
|
-
props =
|
|
42749
|
+
props = _objectWithoutProperties(_ref6, ["getContainer"]);
|
|
42772
42750
|
|
|
42773
42751
|
var div = document.createElement('div');
|
|
42774
42752
|
|
|
@@ -42812,7 +42790,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
42812
42790
|
|
|
42813
42791
|
if (false) {}
|
|
42814
42792
|
|
|
42815
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
42793
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification, extends_extends({}, props, {
|
|
42816
42794
|
ref: ref
|
|
42817
42795
|
})), div);
|
|
42818
42796
|
};
|
|
@@ -42842,7 +42820,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
42842
42820
|
};
|
|
42843
42821
|
|
|
42844
42822
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
42845
|
-
_useRCNotification2 =
|
|
42823
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
42846
42824
|
hookNotify = _useRCNotification2[0],
|
|
42847
42825
|
holder = _useRCNotification2[1];
|
|
42848
42826
|
|
|
@@ -43171,7 +43149,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
43171
43149
|
};
|
|
43172
43150
|
|
|
43173
43151
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43174
|
-
_useRCNotification2 =
|
|
43152
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43175
43153
|
hookNotify = _useRCNotification2[0],
|
|
43176
43154
|
holder = _useRCNotification2[1];
|
|
43177
43155
|
|
|
@@ -43798,7 +43776,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43798
43776
|
|
|
43799
43777
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
43800
43778
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
43801
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
43779
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), _defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
43802
43780
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
43803
43781
|
actionFn: onCancel,
|
|
43804
43782
|
close: close,
|
|
@@ -43816,7 +43794,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43816
43794
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
43817
43795
|
prefixCls: prefixCls,
|
|
43818
43796
|
className: classString,
|
|
43819
|
-
wrapClassName: classnames_default()(
|
|
43797
|
+
wrapClassName: classnames_default()(_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
43820
43798
|
onCancel: function onCancel() {
|
|
43821
43799
|
return close({
|
|
43822
43800
|
triggerCancel: true
|
|
@@ -43900,7 +43878,7 @@ function getRootPrefixCls() {
|
|
|
43900
43878
|
function confirm_confirm(config) {
|
|
43901
43879
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
43902
43880
|
|
|
43903
|
-
var currentConfig =
|
|
43881
|
+
var currentConfig = extends_extends(extends_extends({}, config), {
|
|
43904
43882
|
close: close,
|
|
43905
43883
|
visible: true
|
|
43906
43884
|
});
|
|
@@ -43953,7 +43931,7 @@ function confirm_confirm(config) {
|
|
|
43953
43931
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
43954
43932
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
43955
43933
|
var iconPrefixCls = getIconPrefixCls();
|
|
43956
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43934
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, extends_extends({}, props, {
|
|
43957
43935
|
prefixCls: prefixCls,
|
|
43958
43936
|
rootPrefixCls: rootPrefixCls,
|
|
43959
43937
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -43970,7 +43948,7 @@ function confirm_confirm(config) {
|
|
|
43970
43948
|
args[_key2] = arguments[_key2];
|
|
43971
43949
|
}
|
|
43972
43950
|
|
|
43973
|
-
currentConfig =
|
|
43951
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), {
|
|
43974
43952
|
visible: false,
|
|
43975
43953
|
afterClose: function afterClose() {
|
|
43976
43954
|
if (typeof config.afterClose === 'function') {
|
|
@@ -43987,7 +43965,7 @@ function confirm_confirm(config) {
|
|
|
43987
43965
|
if (typeof configUpdate === 'function') {
|
|
43988
43966
|
currentConfig = configUpdate(currentConfig);
|
|
43989
43967
|
} else {
|
|
43990
|
-
currentConfig =
|
|
43968
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), configUpdate);
|
|
43991
43969
|
}
|
|
43992
43970
|
|
|
43993
43971
|
render(currentConfig);
|
|
@@ -44001,7 +43979,7 @@ function confirm_confirm(config) {
|
|
|
44001
43979
|
};
|
|
44002
43980
|
}
|
|
44003
43981
|
function withWarn(props) {
|
|
44004
|
-
return
|
|
43982
|
+
return extends_extends(extends_extends({
|
|
44005
43983
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44006
43984
|
type: "exclamation-circle"
|
|
44007
43985
|
}),
|
|
@@ -44011,7 +43989,7 @@ function withWarn(props) {
|
|
|
44011
43989
|
});
|
|
44012
43990
|
}
|
|
44013
43991
|
function withInfo(props) {
|
|
44014
|
-
return
|
|
43992
|
+
return extends_extends(extends_extends({
|
|
44015
43993
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44016
43994
|
type: "exclamation-circle"
|
|
44017
43995
|
}),
|
|
@@ -44021,7 +43999,7 @@ function withInfo(props) {
|
|
|
44021
43999
|
});
|
|
44022
44000
|
}
|
|
44023
44001
|
function withSuccess(props) {
|
|
44024
|
-
return
|
|
44002
|
+
return extends_extends(extends_extends({
|
|
44025
44003
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44026
44004
|
type: "check-circle"
|
|
44027
44005
|
}),
|
|
@@ -44031,7 +44009,7 @@ function withSuccess(props) {
|
|
|
44031
44009
|
});
|
|
44032
44010
|
}
|
|
44033
44011
|
function withError(props) {
|
|
44034
|
-
return
|
|
44012
|
+
return extends_extends(extends_extends({
|
|
44035
44013
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44036
44014
|
type: "close-circle"
|
|
44037
44015
|
}),
|
|
@@ -44041,7 +44019,7 @@ function withError(props) {
|
|
|
44041
44019
|
});
|
|
44042
44020
|
}
|
|
44043
44021
|
function withConfirm(props) {
|
|
44044
|
-
return
|
|
44022
|
+
return extends_extends(extends_extends({
|
|
44045
44023
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44046
44024
|
type: "question-circle"
|
|
44047
44025
|
}),
|
|
@@ -44068,7 +44046,7 @@ function usePatchElement() {
|
|
|
44068
44046
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
44069
44047
|
// append a new element to elements (and create a new ref)
|
|
44070
44048
|
setElements(function (originElements) {
|
|
44071
|
-
return [].concat(
|
|
44049
|
+
return [].concat(_toConsumableArray(originElements), [element]);
|
|
44072
44050
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
44073
44051
|
// it works a little like useEffect
|
|
44074
44052
|
|
|
@@ -44133,7 +44111,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44133
44111
|
destroy: close,
|
|
44134
44112
|
update: function update(newConfig) {
|
|
44135
44113
|
setInnerConfig(function (originConfig) {
|
|
44136
|
-
return
|
|
44114
|
+
return extends_extends(extends_extends({}, originConfig), newConfig);
|
|
44137
44115
|
});
|
|
44138
44116
|
}
|
|
44139
44117
|
};
|
|
@@ -44142,7 +44120,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44142
44120
|
componentName: "Modal",
|
|
44143
44121
|
defaultLocale: locale_default.Modal
|
|
44144
44122
|
}, function (modalLocale) {
|
|
44145
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
44123
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, extends_extends({
|
|
44146
44124
|
prefixCls: prefixCls,
|
|
44147
44125
|
rootPrefixCls: rootPrefixCls
|
|
44148
44126
|
}, innerConfig, {
|
|
@@ -44189,7 +44167,7 @@ function useModal() {
|
|
|
44189
44167
|
|
|
44190
44168
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
44191
44169
|
if (actionQueue.length) {
|
|
44192
|
-
var cloneQueue =
|
|
44170
|
+
var cloneQueue = _toConsumableArray(actionQueue);
|
|
44193
44171
|
|
|
44194
44172
|
cloneQueue.forEach(function (action) {
|
|
44195
44173
|
action();
|
|
@@ -44226,7 +44204,7 @@ function useModal() {
|
|
|
44226
44204
|
destroyAction();
|
|
44227
44205
|
} else {
|
|
44228
44206
|
setActionQueue(function (prev) {
|
|
44229
|
-
return [].concat(
|
|
44207
|
+
return [].concat(_toConsumableArray(prev), [destroyAction]);
|
|
44230
44208
|
});
|
|
44231
44209
|
}
|
|
44232
44210
|
},
|
|
@@ -44241,7 +44219,7 @@ function useModal() {
|
|
|
44241
44219
|
updateAction();
|
|
44242
44220
|
} else {
|
|
44243
44221
|
setActionQueue(function (prev) {
|
|
44244
|
-
return [].concat(
|
|
44222
|
+
return [].concat(_toConsumableArray(prev), [updateAction]);
|
|
44245
44223
|
});
|
|
44246
44224
|
}
|
|
44247
44225
|
}
|
|
@@ -44466,7 +44444,8 @@ var shouldfixedLoading = window.navigator.userAgent.indexOf('iPad') > -1 || wind
|
|
|
44466
44444
|
function LiveVideo(_ref) {
|
|
44467
44445
|
var _liveInfo$imInfo9, _liveInfo$imInfo9$par;
|
|
44468
44446
|
|
|
44469
|
-
var
|
|
44447
|
+
var isStreamLive = _ref.isStreamLive,
|
|
44448
|
+
handleLogin = _ref.handleLogin,
|
|
44470
44449
|
userInfo = _ref.userInfo,
|
|
44471
44450
|
liveInfo = _ref.liveInfo,
|
|
44472
44451
|
visitTime = _ref.visitTime,
|
|
@@ -44600,6 +44579,7 @@ function LiveVideo(_ref) {
|
|
|
44600
44579
|
options: options,
|
|
44601
44580
|
onReady: handleVideoReady
|
|
44602
44581
|
}), supportM3u8 && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(detail_LiveStatus, {
|
|
44582
|
+
isStreamLive: isStreamLive,
|
|
44603
44583
|
handleLogin: handleLogin,
|
|
44604
44584
|
userInfo: userInfo,
|
|
44605
44585
|
visitTime: visitTime,
|
|
@@ -44847,7 +44827,7 @@ function helpers_esm_slicedToArray_slicedToArray(arr, i) {
|
|
|
44847
44827
|
return helpers_esm_arrayWithHoles_arrayWithHoles(arr) || helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || esm_unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || helpers_esm_nonIterableRest_nonIterableRest();
|
|
44848
44828
|
}
|
|
44849
44829
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
44850
|
-
function
|
|
44830
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
44851
44831
|
if (source == null) return {};
|
|
44852
44832
|
var target = {};
|
|
44853
44833
|
var sourceKeys = Object.keys(source);
|
|
@@ -44863,9 +44843,9 @@ function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, e
|
|
|
44863
44843
|
}
|
|
44864
44844
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
44865
44845
|
|
|
44866
|
-
function
|
|
44846
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
44867
44847
|
if (source == null) return {};
|
|
44868
|
-
var target =
|
|
44848
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
44869
44849
|
var key, i;
|
|
44870
44850
|
|
|
44871
44851
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45826,14 +45806,14 @@ var index = (function () {
|
|
|
45826
45806
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
45827
45807
|
|
|
45828
45808
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
45829
|
-
|
|
45809
|
+
_inherits(ReactResizeObserver, _React$Component);
|
|
45830
45810
|
|
|
45831
|
-
var _super =
|
|
45811
|
+
var _super = _createSuper(ReactResizeObserver);
|
|
45832
45812
|
|
|
45833
45813
|
function ReactResizeObserver() {
|
|
45834
45814
|
var _this;
|
|
45835
45815
|
|
|
45836
|
-
|
|
45816
|
+
_classCallCheck(this, ReactResizeObserver);
|
|
45837
45817
|
|
|
45838
45818
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45839
45819
|
args[_key] = arguments[_key];
|
|
@@ -45884,7 +45864,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45884
45864
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
45885
45865
|
|
|
45886
45866
|
Promise.resolve().then(function () {
|
|
45887
|
-
onResize(
|
|
45867
|
+
onResize(_objectSpread2(_objectSpread2({}, size), {}, {
|
|
45888
45868
|
offsetWidth: mergedOffsetWidth,
|
|
45889
45869
|
offsetHeight: mergedOffsetHeight
|
|
45890
45870
|
}), target);
|
|
@@ -45900,7 +45880,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45900
45880
|
return _this;
|
|
45901
45881
|
}
|
|
45902
45882
|
|
|
45903
|
-
|
|
45883
|
+
_createClass(ReactResizeObserver, [{
|
|
45904
45884
|
key: "componentDidMount",
|
|
45905
45885
|
value: function componentDidMount() {
|
|
45906
45886
|
this.onComponentUpdated();
|
|
@@ -46971,7 +46951,7 @@ function RawList(props, ref) {
|
|
|
46971
46951
|
onScroll = props.onScroll,
|
|
46972
46952
|
onVisibleChange = props.onVisibleChange,
|
|
46973
46953
|
innerProps = props.innerProps,
|
|
46974
|
-
restProps =
|
|
46954
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
46975
46955
|
// ================================= MISC =================================
|
|
46976
46956
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
46977
46957
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
@@ -47340,7 +47320,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
47340
47320
|
return values;
|
|
47341
47321
|
}
|
|
47342
47322
|
function removeLastEnabledValue(measureValues, values) {
|
|
47343
|
-
var newValues =
|
|
47323
|
+
var newValues = _toConsumableArray(values);
|
|
47344
47324
|
|
|
47345
47325
|
var removeIndex;
|
|
47346
47326
|
|
|
@@ -47474,7 +47454,7 @@ function flattenOptions(options) {
|
|
|
47474
47454
|
*/
|
|
47475
47455
|
|
|
47476
47456
|
function injectPropsWithOption(option) {
|
|
47477
|
-
var newOption =
|
|
47457
|
+
var newOption = _objectSpread2({}, option);
|
|
47478
47458
|
|
|
47479
47459
|
if (!('props' in newOption)) {
|
|
47480
47460
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47508,7 +47488,7 @@ function findValueOption(values, options) {
|
|
|
47508
47488
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47509
47489
|
|
|
47510
47490
|
if (!option) {
|
|
47511
|
-
option =
|
|
47491
|
+
option = _objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47512
47492
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47513
47493
|
}));
|
|
47514
47494
|
}
|
|
@@ -47527,7 +47507,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47527
47507
|
};
|
|
47528
47508
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47529
47509
|
|
|
47530
|
-
if (prevValItem &&
|
|
47510
|
+
if (prevValItem && typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47531
47511
|
result.label = prevValItem.label;
|
|
47532
47512
|
|
|
47533
47513
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -47575,7 +47555,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47575
47555
|
var filterFunc;
|
|
47576
47556
|
|
|
47577
47557
|
if (filterOption === false) {
|
|
47578
|
-
return
|
|
47558
|
+
return _toConsumableArray(options);
|
|
47579
47559
|
}
|
|
47580
47560
|
|
|
47581
47561
|
if (typeof filterOption === 'function') {
|
|
@@ -47599,7 +47579,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47599
47579
|
});
|
|
47600
47580
|
|
|
47601
47581
|
if (subOptions.length) {
|
|
47602
|
-
filteredOptions.push(
|
|
47582
|
+
filteredOptions.push(_objectSpread2(_objectSpread2({}, item), {}, {
|
|
47603
47583
|
options: subOptions
|
|
47604
47584
|
}));
|
|
47605
47585
|
}
|
|
@@ -47633,7 +47613,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
47633
47613
|
var list = str.split(token);
|
|
47634
47614
|
match = match || list.length > 1;
|
|
47635
47615
|
return list.reduce(function (prevList, unitStr) {
|
|
47636
|
-
return [].concat(
|
|
47616
|
+
return [].concat(_toConsumableArray(prevList), _toConsumableArray(separate(unitStr, restTokens)));
|
|
47637
47617
|
}, []).filter(function (unit) {
|
|
47638
47618
|
return unit;
|
|
47639
47619
|
});
|
|
@@ -47653,7 +47633,7 @@ function isValueDisabled(value, options) {
|
|
|
47653
47633
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
47654
47634
|
var values = commonUtil_toArray(value).slice().sort();
|
|
47655
47635
|
|
|
47656
|
-
var cloneOptions =
|
|
47636
|
+
var cloneOptions = _toConsumableArray(options); // Convert options value to set
|
|
47657
47637
|
|
|
47658
47638
|
|
|
47659
47639
|
var optionValues = new Set();
|
|
@@ -47673,7 +47653,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
47673
47653
|
if (!optionValues.has(val)) {
|
|
47674
47654
|
var _ref9;
|
|
47675
47655
|
|
|
47676
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
47656
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, _defineProperty(_ref9, optionLabelProp, item.label), _defineProperty(_ref9, "value", val), _ref9) : {
|
|
47677
47657
|
value: val
|
|
47678
47658
|
});
|
|
47679
47659
|
}
|
|
@@ -47939,7 +47919,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47939
47919
|
children = itemData.children;
|
|
47940
47920
|
var attrs = pickAttrs(itemData, true);
|
|
47941
47921
|
var mergedLabel = childrenAsData ? children : label;
|
|
47942
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47922
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
47943
47923
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
47944
47924
|
}, attrs, {
|
|
47945
47925
|
key: index,
|
|
@@ -47989,13 +47969,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47989
47969
|
children = data.children,
|
|
47990
47970
|
style = data.style,
|
|
47991
47971
|
className = data.className,
|
|
47992
|
-
otherProps =
|
|
47972
|
+
otherProps = _objectWithoutProperties(data, OptionList_excluded);
|
|
47993
47973
|
|
|
47994
47974
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
47995
47975
|
|
|
47996
47976
|
var selected = values.has(value);
|
|
47997
47977
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
47998
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
47978
|
+
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), _defineProperty(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
|
|
47999
47979
|
var mergedLabel = childrenAsData ? children : label;
|
|
48000
47980
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
48001
47981
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -48006,7 +47986,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48006
47986
|
optionTitle = title;
|
|
48007
47987
|
}
|
|
48008
47988
|
|
|
48009
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47989
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, passedProps, {
|
|
48010
47990
|
"aria-selected": selected,
|
|
48011
47991
|
className: optionClassName,
|
|
48012
47992
|
title: optionTitle,
|
|
@@ -48067,9 +48047,9 @@ function convertNodeToOption(node) {
|
|
|
48067
48047
|
_node$props = node.props,
|
|
48068
48048
|
children = _node$props.children,
|
|
48069
48049
|
value = _node$props.value,
|
|
48070
|
-
restProps =
|
|
48050
|
+
restProps = _objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
48071
48051
|
|
|
48072
|
-
return
|
|
48052
|
+
return _objectSpread2({
|
|
48073
48053
|
key: key,
|
|
48074
48054
|
value: value !== undefined ? value : key,
|
|
48075
48055
|
children: children
|
|
@@ -48087,13 +48067,13 @@ function convertChildrenToData(nodes) {
|
|
|
48087
48067
|
key = node.key,
|
|
48088
48068
|
_node$props2 = node.props,
|
|
48089
48069
|
children = _node$props2.children,
|
|
48090
|
-
restProps =
|
|
48070
|
+
restProps = _objectWithoutProperties(_node$props2, _excluded2);
|
|
48091
48071
|
|
|
48092
48072
|
if (optionOnly || !isSelectOptGroup) {
|
|
48093
48073
|
return convertNodeToOption(node);
|
|
48094
48074
|
}
|
|
48095
48075
|
|
|
48096
|
-
return
|
|
48076
|
+
return _objectSpread2(_objectSpread2({
|
|
48097
48077
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
48098
48078
|
label: key
|
|
48099
48079
|
}, restProps), {}, {
|
|
@@ -48170,6 +48150,41 @@ function useControlledState(defaultStateValue, option) {
|
|
|
48170
48150
|
}, [value]);
|
|
48171
48151
|
return [mergedValue, triggerChange];
|
|
48172
48152
|
}
|
|
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
|
+
}
|
|
48173
48188
|
;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/Item.js
|
|
48174
48189
|
|
|
48175
48190
|
|
|
@@ -48195,7 +48210,7 @@ function InternalItem(props, ref) {
|
|
|
48195
48210
|
order = props.order,
|
|
48196
48211
|
_props$component = props.component,
|
|
48197
48212
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48198
|
-
restProps =
|
|
48213
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48199
48214
|
|
|
48200
48215
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48201
48216
|
|
|
@@ -48262,7 +48277,7 @@ Item_Item.displayName = 'Item';
|
|
|
48262
48277
|
|
|
48263
48278
|
function useBatchFrameState() {
|
|
48264
48279
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
48265
|
-
_useState2 =
|
|
48280
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
48266
48281
|
forceUpdate = _useState2[1];
|
|
48267
48282
|
|
|
48268
48283
|
var statesRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)([]);
|
|
@@ -48316,7 +48331,7 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48316
48331
|
if (!context) {
|
|
48317
48332
|
var _props$component = props.component,
|
|
48318
48333
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48319
|
-
_restProps =
|
|
48334
|
+
_restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["component"]);
|
|
48320
48335
|
|
|
48321
48336
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, _restProps, {
|
|
48322
48337
|
ref: ref
|
|
@@ -48324,10 +48339,10 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48324
48339
|
}
|
|
48325
48340
|
|
|
48326
48341
|
var contextClassName = context.className,
|
|
48327
|
-
restContext =
|
|
48342
|
+
restContext = esm_objectWithoutProperties_objectWithoutProperties(context, ["className"]);
|
|
48328
48343
|
|
|
48329
48344
|
var className = props.className,
|
|
48330
|
-
restProps =
|
|
48345
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48331
48346
|
|
|
48332
48347
|
|
|
48333
48348
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
@@ -48382,45 +48397,45 @@ function Overflow(props, ref) {
|
|
|
48382
48397
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48383
48398
|
itemComponent = props.itemComponent,
|
|
48384
48399
|
onVisibleChange = props.onVisibleChange,
|
|
48385
|
-
restProps =
|
|
48400
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48386
48401
|
|
|
48387
48402
|
var createUseState = useBatchFrameState();
|
|
48388
48403
|
var fullySSR = ssr === 'full';
|
|
48389
48404
|
|
|
48390
48405
|
var _createUseState = createUseState(null),
|
|
48391
|
-
_createUseState2 =
|
|
48406
|
+
_createUseState2 = esm_slicedToArray_slicedToArray(_createUseState, 2),
|
|
48392
48407
|
containerWidth = _createUseState2[0],
|
|
48393
48408
|
setContainerWidth = _createUseState2[1];
|
|
48394
48409
|
|
|
48395
48410
|
var mergedContainerWidth = containerWidth || 0;
|
|
48396
48411
|
|
|
48397
48412
|
var _createUseState3 = createUseState(new Map()),
|
|
48398
|
-
_createUseState4 =
|
|
48413
|
+
_createUseState4 = esm_slicedToArray_slicedToArray(_createUseState3, 2),
|
|
48399
48414
|
itemWidths = _createUseState4[0],
|
|
48400
48415
|
setItemWidths = _createUseState4[1];
|
|
48401
48416
|
|
|
48402
48417
|
var _createUseState5 = createUseState(0),
|
|
48403
|
-
_createUseState6 =
|
|
48418
|
+
_createUseState6 = esm_slicedToArray_slicedToArray(_createUseState5, 2),
|
|
48404
48419
|
prevRestWidth = _createUseState6[0],
|
|
48405
48420
|
setPrevRestWidth = _createUseState6[1];
|
|
48406
48421
|
|
|
48407
48422
|
var _createUseState7 = createUseState(0),
|
|
48408
|
-
_createUseState8 =
|
|
48423
|
+
_createUseState8 = esm_slicedToArray_slicedToArray(_createUseState7, 2),
|
|
48409
48424
|
restWidth = _createUseState8[0],
|
|
48410
48425
|
setRestWidth = _createUseState8[1];
|
|
48411
48426
|
|
|
48412
48427
|
var _createUseState9 = createUseState(0),
|
|
48413
|
-
_createUseState10 =
|
|
48428
|
+
_createUseState10 = esm_slicedToArray_slicedToArray(_createUseState9, 2),
|
|
48414
48429
|
suffixWidth = _createUseState10[0],
|
|
48415
48430
|
setSuffixWidth = _createUseState10[1];
|
|
48416
48431
|
|
|
48417
48432
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48418
|
-
_useState2 =
|
|
48433
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
48419
48434
|
suffixFixedStart = _useState2[0],
|
|
48420
48435
|
setSuffixFixedStart = _useState2[1];
|
|
48421
48436
|
|
|
48422
48437
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48423
|
-
_useState4 =
|
|
48438
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
48424
48439
|
displayCount = _useState4[0],
|
|
48425
48440
|
setDisplayCount = _useState4[1];
|
|
48426
48441
|
|
|
@@ -48433,7 +48448,7 @@ function Overflow(props, ref) {
|
|
|
48433
48448
|
}, [displayCount, containerWidth]);
|
|
48434
48449
|
|
|
48435
48450
|
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
48436
|
-
_useState6 =
|
|
48451
|
+
_useState6 = esm_slicedToArray_slicedToArray(_useState5, 2),
|
|
48437
48452
|
restReady = _useState6[0],
|
|
48438
48453
|
setRestReady = _useState6[1];
|
|
48439
48454
|
|
|
@@ -48856,7 +48871,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
48856
48871
|
|
|
48857
48872
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
48858
48873
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48859
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
48874
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), _defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
48860
48875
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
48861
48876
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48862
48877
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -49271,7 +49286,7 @@ var Selector = function Selector(props, ref) {
|
|
|
49271
49286
|
onInputCompositionStart: onInputCompositionStart,
|
|
49272
49287
|
onInputCompositionEnd: onInputCompositionEnd
|
|
49273
49288
|
};
|
|
49274
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
49289
|
+
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector, extends_extends({}, props, sharedProps)) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Selector_SingleSelector, extends_extends({}, props, sharedProps));
|
|
49275
49290
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
49276
49291
|
ref: domRef,
|
|
49277
49292
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -50807,7 +50822,7 @@ function monitorResize(element, callback) {
|
|
|
50807
50822
|
var prevHeight = null;
|
|
50808
50823
|
|
|
50809
50824
|
function onResize(_ref) {
|
|
50810
|
-
var _ref2 =
|
|
50825
|
+
var _ref2 = esm_slicedToArray_slicedToArray(_ref, 1),
|
|
50811
50826
|
target = _ref2[0].target;
|
|
50812
50827
|
|
|
50813
50828
|
if (!document.documentElement.contains(target)) return;
|
|
@@ -50966,7 +50981,7 @@ var Align = function Align(_ref, ref) {
|
|
|
50966
50981
|
|
|
50967
50982
|
return false;
|
|
50968
50983
|
}, monitorBufferTime),
|
|
50969
|
-
_useBuffer2 =
|
|
50984
|
+
_useBuffer2 = esm_slicedToArray_slicedToArray(_useBuffer, 2),
|
|
50970
50985
|
_forceAlign = _useBuffer2[0],
|
|
50971
50986
|
cancelForceAlign = _useBuffer2[1]; // ===================== Effect =====================
|
|
50972
50987
|
// Listen for target updated
|
|
@@ -51054,6 +51069,45 @@ RcAlign.displayName = 'Align';
|
|
|
51054
51069
|
// export this package's api
|
|
51055
51070
|
|
|
51056
51071
|
/* 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
|
+
}
|
|
51057
51111
|
;// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/useVisibleStatus.js
|
|
51058
51112
|
|
|
51059
51113
|
|
|
@@ -51063,7 +51117,7 @@ RcAlign.displayName = 'Align';
|
|
|
51063
51117
|
var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
51064
51118
|
/* harmony default export */ var useVisibleStatus = (function (visible, doMeasure) {
|
|
51065
51119
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
51066
|
-
_useState2 =
|
|
51120
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
51067
51121
|
status = _useState2[0],
|
|
51068
51122
|
setInternalStatus = _useState2[1];
|
|
51069
51123
|
|
|
@@ -51116,7 +51170,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51116
51170
|
}
|
|
51117
51171
|
|
|
51118
51172
|
if (status) {
|
|
51119
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/
|
|
51173
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/esm_asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
51120
51174
|
var index, nextStatus;
|
|
51121
51175
|
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
51122
51176
|
while (1) {
|
|
@@ -51154,7 +51208,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51154
51208
|
width: 0,
|
|
51155
51209
|
height: 0
|
|
51156
51210
|
}),
|
|
51157
|
-
_React$useState2 =
|
|
51211
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
51158
51212
|
targetSize = _React$useState2[0],
|
|
51159
51213
|
setTargetSize = _React$useState2[1];
|
|
51160
51214
|
|
|
@@ -51225,13 +51279,13 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51225
51279
|
var elementRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
51226
51280
|
|
|
51227
51281
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
51228
|
-
_useState2 =
|
|
51282
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
51229
51283
|
alignedClassName = _useState2[0],
|
|
51230
51284
|
setAlignedClassName = _useState2[1]; // ======================= Measure ========================
|
|
51231
51285
|
|
|
51232
51286
|
|
|
51233
51287
|
var _useStretchStyle = useStretchStyle(stretch),
|
|
51234
|
-
_useStretchStyle2 =
|
|
51288
|
+
_useStretchStyle2 = esm_slicedToArray_slicedToArray(_useStretchStyle, 2),
|
|
51235
51289
|
stretchStyle = _useStretchStyle2[0],
|
|
51236
51290
|
measureStretchStyle = _useStretchStyle2[1];
|
|
51237
51291
|
|
|
@@ -51243,7 +51297,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51243
51297
|
|
|
51244
51298
|
|
|
51245
51299
|
var _useVisibleStatus = useVisibleStatus(visible, doMeasure),
|
|
51246
|
-
_useVisibleStatus2 =
|
|
51300
|
+
_useVisibleStatus2 = esm_slicedToArray_slicedToArray(_useVisibleStatus, 2),
|
|
51247
51301
|
status = _useVisibleStatus2[0],
|
|
51248
51302
|
goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
|
|
51249
51303
|
|
|
@@ -51457,15 +51511,15 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51457
51511
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51458
51512
|
var visible = _ref.visible,
|
|
51459
51513
|
mobile = _ref.mobile,
|
|
51460
|
-
props =
|
|
51514
|
+
props = esm_objectWithoutProperties_objectWithoutProperties(_ref, Popup_excluded);
|
|
51461
51515
|
|
|
51462
51516
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51463
|
-
_useState2 =
|
|
51517
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
51464
51518
|
innerVisible = _useState2[0],
|
|
51465
51519
|
serInnerVisible = _useState2[1];
|
|
51466
51520
|
|
|
51467
51521
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
51468
|
-
_useState4 =
|
|
51522
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
51469
51523
|
inMobile = _useState4[0],
|
|
51470
51524
|
setInMobile = _useState4[1];
|
|
51471
51525
|
|
|
@@ -52374,7 +52428,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52374
52428
|
empty = props.empty,
|
|
52375
52429
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
52376
52430
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
52377
|
-
restProps =
|
|
52431
|
+
restProps = _objectWithoutProperties(props, SelectTrigger_excluded);
|
|
52378
52432
|
|
|
52379
52433
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
52380
52434
|
var popupNode = popupElement;
|
|
@@ -52398,7 +52452,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52398
52452
|
};
|
|
52399
52453
|
});
|
|
52400
52454
|
|
|
52401
|
-
var popupStyle =
|
|
52455
|
+
var popupStyle = _objectSpread2({
|
|
52402
52456
|
minWidth: containerWidth
|
|
52403
52457
|
}, dropdownStyle);
|
|
52404
52458
|
|
|
@@ -52408,7 +52462,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52408
52462
|
popupStyle.width = containerWidth;
|
|
52409
52463
|
}
|
|
52410
52464
|
|
|
52411
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
52465
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, extends_extends({}, restProps, {
|
|
52412
52466
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
52413
52467
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
52414
52468
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -52421,7 +52475,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52421
52475
|
popupAlign: dropdownAlign,
|
|
52422
52476
|
popupVisible: visible,
|
|
52423
52477
|
getPopupContainer: getPopupContainer,
|
|
52424
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52478
|
+
popupClassName: classnames_default()(dropdownClassName, _defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
52425
52479
|
popupStyle: popupStyle,
|
|
52426
52480
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
52427
52481
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52524,7 +52578,7 @@ function useCacheDisplayValue(values) {
|
|
|
52524
52578
|
var cacheLabel = valueLabels.get(item.value);
|
|
52525
52579
|
|
|
52526
52580
|
if (item.isCacheable && cacheLabel) {
|
|
52527
|
-
return
|
|
52581
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
52528
52582
|
label: cacheLabel
|
|
52529
52583
|
});
|
|
52530
52584
|
}
|
|
@@ -52686,7 +52740,7 @@ function generateSelector(config) {
|
|
|
52686
52740
|
onClear = props.onClear,
|
|
52687
52741
|
_props$internalProps = props.internalProps,
|
|
52688
52742
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
52689
|
-
restProps =
|
|
52743
|
+
restProps = _objectWithoutProperties(props, generate_excluded);
|
|
52690
52744
|
|
|
52691
52745
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
52692
52746
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -52824,7 +52878,7 @@ function generateSelector(config) {
|
|
|
52824
52878
|
|
|
52825
52879
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
52826
52880
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
52827
|
-
return
|
|
52881
|
+
return _toConsumableArray(mergedOptions);
|
|
52828
52882
|
}
|
|
52829
52883
|
|
|
52830
52884
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -52845,7 +52899,7 @@ function generateSelector(config) {
|
|
|
52845
52899
|
}
|
|
52846
52900
|
|
|
52847
52901
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
52848
|
-
return
|
|
52902
|
+
return _toConsumableArray(filteredOptions).sort(filterSort);
|
|
52849
52903
|
}
|
|
52850
52904
|
|
|
52851
52905
|
return filteredOptions;
|
|
@@ -52868,7 +52922,7 @@ function generateSelector(config) {
|
|
|
52868
52922
|
labelInValue: mergedLabelInValue,
|
|
52869
52923
|
optionLabelProp: mergedOptionLabelProp
|
|
52870
52924
|
});
|
|
52871
|
-
return
|
|
52925
|
+
return _objectSpread2(_objectSpread2({}, displayValue), {}, {
|
|
52872
52926
|
disabled: isValueDisabled(val, valueOptions)
|
|
52873
52927
|
});
|
|
52874
52928
|
});
|
|
@@ -52942,7 +52996,7 @@ function generateSelector(config) {
|
|
|
52942
52996
|
}); // We will cache option in case it removed by ajax
|
|
52943
52997
|
|
|
52944
52998
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
52945
|
-
var clone =
|
|
52999
|
+
var clone = _objectSpread2({}, option);
|
|
52946
53000
|
|
|
52947
53001
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
52948
53002
|
get: function get() {
|
|
@@ -52998,13 +53052,13 @@ function generateSelector(config) {
|
|
|
52998
53052
|
};
|
|
52999
53053
|
|
|
53000
53054
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
53001
|
-
onInternalSelect(newValue,
|
|
53055
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53002
53056
|
source: 'option'
|
|
53003
53057
|
}));
|
|
53004
53058
|
};
|
|
53005
53059
|
|
|
53006
53060
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
53007
|
-
onInternalSelect(newValue,
|
|
53061
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53008
53062
|
source: 'selection'
|
|
53009
53063
|
}));
|
|
53010
53064
|
}; // ============================= Input ==============================
|
|
@@ -53088,7 +53142,7 @@ function generateSelector(config) {
|
|
|
53088
53142
|
});
|
|
53089
53143
|
}
|
|
53090
53144
|
|
|
53091
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53145
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), _toConsumableArray(patchRawValues))));
|
|
53092
53146
|
triggerChange(newRawValues);
|
|
53093
53147
|
newRawValues.forEach(function (newRawValue) {
|
|
53094
53148
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53117,7 +53171,7 @@ function generateSelector(config) {
|
|
|
53117
53171
|
return;
|
|
53118
53172
|
}
|
|
53119
53173
|
|
|
53120
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53174
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [searchText])));
|
|
53121
53175
|
triggerChange(newRawValues);
|
|
53122
53176
|
newRawValues.forEach(function (newRawValue) {
|
|
53123
53177
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53250,7 +53304,7 @@ function generateSelector(config) {
|
|
|
53250
53304
|
// `tags` mode should move `searchValue` into values
|
|
53251
53305
|
if (mode === 'tags') {
|
|
53252
53306
|
triggerSearch('', false, false);
|
|
53253
|
-
triggerChange(Array.from(new Set([].concat(
|
|
53307
|
+
triggerChange(Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
53254
53308
|
} else if (mode === 'multiple') {
|
|
53255
53309
|
// `multiple` mode only clean the search value but not trigger event
|
|
53256
53310
|
setInnerSearchValue('');
|
|
@@ -53408,7 +53462,7 @@ function generateSelector(config) {
|
|
|
53408
53462
|
|
|
53409
53463
|
if (mergedShowArrow) {
|
|
53410
53464
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
53411
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53465
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), _defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
53412
53466
|
customizeIcon: inputIcon,
|
|
53413
53467
|
customizeIconProps: {
|
|
53414
53468
|
loading: loading,
|
|
@@ -53424,7 +53478,7 @@ function generateSelector(config) {
|
|
|
53424
53478
|
if (false) {} // ============================= Render =============================
|
|
53425
53479
|
|
|
53426
53480
|
|
|
53427
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
53481
|
+
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-focused"), mockFocused), _defineProperty(_classNames2, "".concat(prefixCls, "-multiple"), isMultiple), _defineProperty(_classNames2, "".concat(prefixCls, "-single"), !isMultiple), _defineProperty(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), _defineProperty(_classNames2, "".concat(prefixCls, "-show-arrow"), mergedShowArrow), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-loading"), loading), _defineProperty(_classNames2, "".concat(prefixCls, "-open"), mergedOpen), _defineProperty(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), _defineProperty(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch), _classNames2));
|
|
53428
53482
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
53429
53483
|
ref: triggerRef,
|
|
53430
53484
|
disabled: disabled,
|
|
@@ -53449,7 +53503,7 @@ function generateSelector(config) {
|
|
|
53449
53503
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
53450
53504
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
53451
53505
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
53452
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
53506
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, extends_extends({}, props, {
|
|
53453
53507
|
domRef: selectorDomRef,
|
|
53454
53508
|
prefixCls: prefixCls,
|
|
53455
53509
|
inputElement: customizeInputElement,
|
|
@@ -53475,7 +53529,7 @@ function generateSelector(config) {
|
|
|
53475
53529
|
return selectorNode;
|
|
53476
53530
|
}
|
|
53477
53531
|
|
|
53478
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
53532
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
53479
53533
|
className: mergedClassName
|
|
53480
53534
|
}, domProps, {
|
|
53481
53535
|
ref: containerRef,
|
|
@@ -53562,7 +53616,7 @@ function warningProps(props) {
|
|
|
53562
53616
|
if (value !== undefined && value !== null) {
|
|
53563
53617
|
var values = commonUtil_toArray(value);
|
|
53564
53618
|
es_warning(!labelInValue || values.every(function (val) {
|
|
53565
|
-
return
|
|
53619
|
+
return typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
53566
53620
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
53567
53621
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
53568
53622
|
} // Syntactic sugar should use correct children type
|
|
@@ -53676,14 +53730,14 @@ var RefSelect = generateSelector({
|
|
|
53676
53730
|
*/
|
|
53677
53731
|
|
|
53678
53732
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
53679
|
-
|
|
53733
|
+
_inherits(Select, _React$Component);
|
|
53680
53734
|
|
|
53681
|
-
var _super =
|
|
53735
|
+
var _super = _createSuper(Select);
|
|
53682
53736
|
|
|
53683
53737
|
function Select() {
|
|
53684
53738
|
var _this;
|
|
53685
53739
|
|
|
53686
|
-
|
|
53740
|
+
_classCallCheck(this, Select);
|
|
53687
53741
|
|
|
53688
53742
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53689
53743
|
args[_key] = arguments[_key];
|
|
@@ -53703,10 +53757,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
53703
53757
|
return _this;
|
|
53704
53758
|
}
|
|
53705
53759
|
|
|
53706
|
-
|
|
53760
|
+
_createClass(Select, [{
|
|
53707
53761
|
key: "render",
|
|
53708
53762
|
value: function render() {
|
|
53709
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
53763
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, extends_extends({
|
|
53710
53764
|
ref: this.selectRef
|
|
53711
53765
|
}, this.props));
|
|
53712
53766
|
}
|
|
@@ -55370,7 +55424,6 @@ function detail_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
55370
55424
|
|
|
55371
55425
|
|
|
55372
55426
|
|
|
55373
|
-
|
|
55374
55427
|
// import IMChatroom from '@/component/IMChatroom'
|
|
55375
55428
|
|
|
55376
55429
|
|
|
@@ -55461,7 +55514,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55461
55514
|
userRole = loginInfo.userRole,
|
|
55462
55515
|
loginStatus = loginInfo.loginStatus;
|
|
55463
55516
|
var isLiveToReplay = !replay;
|
|
55464
|
-
var isStreamLive = liveInfo && liveInfo.type === PUBLIC_LIVE_MODE.LIVING
|
|
55517
|
+
var isStreamLive = liveInfo && liveInfo.type === PUBLIC_LIVE_MODE.LIVING;
|
|
55465
55518
|
|
|
55466
55519
|
var handleStatusChange = /*#__PURE__*/function () {
|
|
55467
55520
|
var _ref2 = detail_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(status) {
|
|
@@ -55478,7 +55531,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55478
55531
|
onStateChange(newLiveInfo);
|
|
55479
55532
|
isRecordLive = liveInfo.type === PUBLIC_LIVE_MODE.RECORDED;
|
|
55480
55533
|
|
|
55481
|
-
if (!(!isRecordLive &&
|
|
55534
|
+
if (!(!isRecordLive && [publicLive_PUBLIC_LIVE_STATUS.NOSTARTED, publicLive_PUBLIC_LIVE_STATUS.LIVEING, publicLive_PUBLIC_LIVE_STATUS.PASUED].includes(status) && isEmpty(liveInfo.imInfo))) {
|
|
55482
55535
|
_context.next = 18;
|
|
55483
55536
|
break;
|
|
55484
55537
|
}
|
|
@@ -55581,6 +55634,8 @@ function PublicLiveDetail(_ref) {
|
|
|
55581
55634
|
return _context2.abrupt("return");
|
|
55582
55635
|
|
|
55583
55636
|
case 10:
|
|
55637
|
+
// 调试代码 模拟直播倒计时结束
|
|
55638
|
+
// data.status = PUBLIC_LIVE_STATUS.NOSTARTED
|
|
55584
55639
|
isRecordLive = data.type === PUBLIC_LIVE_MODE.RECORDED;
|
|
55585
55640
|
isNoStarted = data.status === publicLive_PUBLIC_LIVE_STATUS.NOSTARTED;
|
|
55586
55641
|
isCompleted = data.status === publicLive_PUBLIC_LIVE_STATUS.COMPLETEED;
|
|
@@ -55644,19 +55699,6 @@ function PublicLiveDetail(_ref) {
|
|
|
55644
55699
|
data.imInfo = imLiveInfoResp;
|
|
55645
55700
|
|
|
55646
55701
|
case 31:
|
|
55647
|
-
if (!(data.type === PUBLIC_LIVE_MODE.LIVING && data.sub_type === SUB_TYPE.OUTSIDE)) {
|
|
55648
|
-
_context2.next = 34;
|
|
55649
|
-
break;
|
|
55650
|
-
}
|
|
55651
|
-
|
|
55652
|
-
_context2.next = 36;
|
|
55653
|
-
break;
|
|
55654
|
-
|
|
55655
|
-
case 34:
|
|
55656
|
-
_context2.next = 36;
|
|
55657
|
-
return push.init();
|
|
55658
|
-
|
|
55659
|
-
case 36:
|
|
55660
55702
|
// 如果是转播或者是推流 直接播放(用于调试模式)
|
|
55661
55703
|
_getUrlQuery2 = (0,url/* getUrlQuery */.pf)(), preview = _getUrlQuery2.preview; // 后台点预览会加这个参数
|
|
55662
55704
|
|
|
@@ -55665,7 +55707,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55665
55707
|
}) : data;
|
|
55666
55708
|
setLiveInfo(generateInfo);
|
|
55667
55709
|
|
|
55668
|
-
case
|
|
55710
|
+
case 34:
|
|
55669
55711
|
case "end":
|
|
55670
55712
|
return _context2.stop();
|
|
55671
55713
|
}
|
|
@@ -55680,31 +55722,6 @@ function PublicLiveDetail(_ref) {
|
|
|
55680
55722
|
|
|
55681
55723
|
init();
|
|
55682
55724
|
}, []);
|
|
55683
|
-
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
55684
|
-
if (!liveInfo || liveInfo.sub_type === SUB_TYPE.OUTSIDE) {
|
|
55685
|
-
return;
|
|
55686
|
-
}
|
|
55687
|
-
|
|
55688
|
-
var handler = function handler(data) {
|
|
55689
|
-
var _data$extraFields = data.extraFields,
|
|
55690
|
-
extraFields = _data$extraFields === void 0 ? {} : _data$extraFields;
|
|
55691
|
-
console.log('public Live:', data);
|
|
55692
|
-
|
|
55693
|
-
if (extraFields.event === PUBLIC_LIVE_PUSH_EVENT.STATUS_CHANGE && extraFields.liveId === liveId) {
|
|
55694
|
-
console.log("public Live: receive push status ".concat(parseInt(extraFields.status, 10)));
|
|
55695
|
-
handleStatusChange(parseInt(extraFields.status, 10));
|
|
55696
|
-
}
|
|
55697
|
-
};
|
|
55698
|
-
|
|
55699
|
-
push.addTopicListener("".concat(PUBLIC_LIVE_PUSH_TOPIC, "_").concat(liveId), handler);
|
|
55700
|
-
return function () {
|
|
55701
|
-
if (!liveInfo || liveInfo.sub_type === SUB_TYPE.OUTSIDE) {
|
|
55702
|
-
return;
|
|
55703
|
-
}
|
|
55704
|
-
|
|
55705
|
-
push.removeTopicListener("".concat(PUBLIC_LIVE_PUSH_TOPIC, "_").concat(liveId), handler);
|
|
55706
|
-
};
|
|
55707
|
-
}, [!!liveInfo]);
|
|
55708
55725
|
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
55709
55726
|
if (userInfo) {
|
|
55710
55727
|
onReportProgress();
|
|
@@ -55831,6 +55848,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55831
55848
|
},
|
|
55832
55849
|
onRequestFullScreen: handleRequestFullScreen
|
|
55833
55850
|
}) : isRecordLive ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(RecordVideo, {
|
|
55851
|
+
isStreamLive: isStreamLive,
|
|
55834
55852
|
userInfo: userInfo,
|
|
55835
55853
|
liveInfo: liveInfo,
|
|
55836
55854
|
visitTime: visitTime,
|
|
@@ -55844,6 +55862,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55844
55862
|
},
|
|
55845
55863
|
onRequestFullScreen: handleRequestFullScreen
|
|
55846
55864
|
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(LiveVideo, {
|
|
55865
|
+
isStreamLive: isStreamLive,
|
|
55847
55866
|
handleLogin: handleLogin,
|
|
55848
55867
|
userInfo: userInfo,
|
|
55849
55868
|
liveInfo: liveInfo,
|
|
@@ -55857,7 +55876,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55857
55876
|
handleVideoPlay(true);
|
|
55858
55877
|
},
|
|
55859
55878
|
onRequestFullScreen: handleRequestFullScreen
|
|
55860
|
-
})), !isReplayMode && !isRecordLive &&
|
|
55879
|
+
})), !isReplayMode && !isRecordLive && liveInfo.sub_type !== SUB_TYPE.NET_DRAGON && liveInfo.status !== publicLive_PUBLIC_LIVE_STATUS.COMPLETEED && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(LineSwitch, {
|
|
55861
55880
|
className: src_detail_index_module["live-line-switch"],
|
|
55862
55881
|
liveInfo: liveInfo,
|
|
55863
55882
|
onChange: handleSelectChange
|
|
@@ -56050,7 +56069,7 @@ function TabNode(_ref, ref) {
|
|
|
56050
56069
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
56051
56070
|
key: key,
|
|
56052
56071
|
ref: ref,
|
|
56053
|
-
className: classnames_default()(tabPrefix, (_classNames = {},
|
|
56072
|
+
className: classnames_default()(tabPrefix, (_classNames = {}, _defineProperty(_classNames, "".concat(tabPrefix, "-with-remove"), removable), _defineProperty(_classNames, "".concat(tabPrefix, "-active"), active), _defineProperty(_classNames, "".concat(tabPrefix, "-disabled"), disabled), _classNames)),
|
|
56054
56073
|
style: style,
|
|
56055
56074
|
onClick: onInternalClick
|
|
56056
56075
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -56113,7 +56132,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
56113
56132
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
56114
56133
|
}
|
|
56115
56134
|
|
|
56116
|
-
var entity = map.get(key) ||
|
|
56135
|
+
var entity = map.get(key) || _objectSpread2({}, data); // Right
|
|
56117
56136
|
|
|
56118
56137
|
|
|
56119
56138
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -56208,7 +56227,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56208
56227
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56209
56228
|
|
|
56210
56229
|
function mergeProps(origin, target) {
|
|
56211
|
-
var clone =
|
|
56230
|
+
var clone = _objectSpread2({}, origin);
|
|
56212
56231
|
|
|
56213
56232
|
Object.keys(target).forEach(function (key) {
|
|
56214
56233
|
var value = target[key];
|
|
@@ -56223,7 +56242,7 @@ function mergeProps(origin, target) {
|
|
|
56223
56242
|
function InheritableContextProvider(_ref) {
|
|
56224
56243
|
var children = _ref.children,
|
|
56225
56244
|
locked = _ref.locked,
|
|
56226
|
-
restProps =
|
|
56245
|
+
restProps = _objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56227
56246
|
|
|
56228
56247
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56229
56248
|
var inheritableContext = useMemo(function () {
|
|
@@ -56279,7 +56298,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56279
56298
|
|
|
56280
56299
|
function warnItemProp(_ref) {
|
|
56281
56300
|
var item = _ref.item,
|
|
56282
|
-
restInfo =
|
|
56301
|
+
restInfo = esm_objectWithoutProperties_objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56283
56302
|
|
|
56284
56303
|
Object.defineProperty(restInfo, 'item', {
|
|
56285
56304
|
get: function get() {
|
|
@@ -56299,7 +56318,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56299
56318
|
var iconNode;
|
|
56300
56319
|
|
|
56301
56320
|
if (typeof icon === 'function') {
|
|
56302
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
56321
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, _objectSpread2({}, props));
|
|
56303
56322
|
} else {
|
|
56304
56323
|
// Compatible for origin definition
|
|
56305
56324
|
iconNode = icon;
|
|
@@ -56340,7 +56359,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56340
56359
|
function useFullPath(eventKey) {
|
|
56341
56360
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56342
56361
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56343
|
-
return eventKey !== undefined ? [].concat(
|
|
56362
|
+
return eventKey !== undefined ? [].concat(_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56344
56363
|
}, [parentKeyPath, eventKey]);
|
|
56345
56364
|
}
|
|
56346
56365
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56397,28 +56416,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56397
56416
|
// This should be removed from doc & api in future.
|
|
56398
56417
|
|
|
56399
56418
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56400
|
-
|
|
56419
|
+
_inherits(LegacyMenuItem, _React$Component);
|
|
56401
56420
|
|
|
56402
|
-
var _super =
|
|
56421
|
+
var _super = _createSuper(LegacyMenuItem);
|
|
56403
56422
|
|
|
56404
56423
|
function LegacyMenuItem() {
|
|
56405
|
-
|
|
56424
|
+
_classCallCheck(this, LegacyMenuItem);
|
|
56406
56425
|
|
|
56407
56426
|
return _super.apply(this, arguments);
|
|
56408
56427
|
}
|
|
56409
56428
|
|
|
56410
|
-
|
|
56429
|
+
_createClass(LegacyMenuItem, [{
|
|
56411
56430
|
key: "render",
|
|
56412
56431
|
value: function render() {
|
|
56413
56432
|
var _this$props = this.props,
|
|
56414
56433
|
title = _this$props.title,
|
|
56415
56434
|
attribute = _this$props.attribute,
|
|
56416
56435
|
elementRef = _this$props.elementRef,
|
|
56417
|
-
restProps =
|
|
56436
|
+
restProps = _objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56418
56437
|
|
|
56419
56438
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56420
56439
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56421
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56440
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({}, attribute, {
|
|
56422
56441
|
title: typeof title === 'string' ? title : undefined
|
|
56423
56442
|
}, passedProps, {
|
|
56424
56443
|
ref: elementRef
|
|
@@ -56449,7 +56468,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56449
56468
|
onClick = props.onClick,
|
|
56450
56469
|
onKeyDown = props.onKeyDown,
|
|
56451
56470
|
onFocus = props.onFocus,
|
|
56452
|
-
restProps =
|
|
56471
|
+
restProps = _objectWithoutProperties(props, MenuItem_excluded2);
|
|
56453
56472
|
|
|
56454
56473
|
var domDataId = useMenuId(eventKey);
|
|
56455
56474
|
|
|
@@ -56478,7 +56497,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56478
56497
|
return {
|
|
56479
56498
|
key: eventKey,
|
|
56480
56499
|
// Note: For legacy code is reversed which not like other antd component
|
|
56481
|
-
keyPath:
|
|
56500
|
+
keyPath: _toConsumableArray(connectedKeys).reverse(),
|
|
56482
56501
|
item: legacyMenuItemRef.current,
|
|
56483
56502
|
domEvent: e
|
|
56484
56503
|
};
|
|
@@ -56489,7 +56508,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56489
56508
|
|
|
56490
56509
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56491
56510
|
active = _useActive.active,
|
|
56492
|
-
activeProps =
|
|
56511
|
+
activeProps = _objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56493
56512
|
|
|
56494
56513
|
|
|
56495
56514
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56534,7 +56553,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56534
56553
|
optionRoleProps['aria-selected'] = selected;
|
|
56535
56554
|
}
|
|
56536
56555
|
|
|
56537
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56556
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, extends_extends({
|
|
56538
56557
|
ref: legacyMenuItemRef,
|
|
56539
56558
|
elementRef: elementRef,
|
|
56540
56559
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56543,13 +56562,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56543
56562
|
}, restProps, activeProps, optionRoleProps, {
|
|
56544
56563
|
component: "li",
|
|
56545
56564
|
"aria-disabled": disabled,
|
|
56546
|
-
style:
|
|
56547
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56565
|
+
style: _objectSpread2(_objectSpread2({}, directionStyle), style),
|
|
56566
|
+
className: classnames_default()(itemCls, (_classNames = {}, _defineProperty(_classNames, "".concat(itemCls, "-active"), active), _defineProperty(_classNames, "".concat(itemCls, "-selected"), selected), _defineProperty(_classNames, "".concat(itemCls, "-disabled"), mergedDisabled), _classNames), className),
|
|
56548
56567
|
onClick: onInternalClick,
|
|
56549
56568
|
onKeyDown: onInternalKeyDown,
|
|
56550
56569
|
onFocus: onInternalFocus
|
|
56551
56570
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56552
|
-
props:
|
|
56571
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
56553
56572
|
isSelected: selected
|
|
56554
56573
|
}),
|
|
56555
56574
|
icon: mergedItemIcon
|
|
@@ -56650,7 +56669,7 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56650
56669
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56651
56670
|
var className = _ref.className,
|
|
56652
56671
|
children = _ref.children,
|
|
56653
|
-
restProps =
|
|
56672
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56654
56673
|
|
|
56655
56674
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56656
56675
|
prefixCls = _React$useContext.prefixCls,
|
|
@@ -56770,7 +56789,7 @@ function PopupTrigger(_ref) {
|
|
|
56770
56789
|
defaultMotions = _React$useContext.defaultMotions;
|
|
56771
56790
|
|
|
56772
56791
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
56773
|
-
_React$useState2 =
|
|
56792
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
56774
56793
|
innerVisible = _React$useState2[0],
|
|
56775
56794
|
setInnerVisible = _React$useState2[1];
|
|
56776
56795
|
|
|
@@ -56843,7 +56862,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56843
56862
|
// The inline list should remove when motion end.
|
|
56844
56863
|
|
|
56845
56864
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(!sameModeRef.current),
|
|
56846
|
-
_React$useState2 =
|
|
56865
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
56847
56866
|
destroy = _React$useState2[0],
|
|
56848
56867
|
setDestroy = _React$useState2[1];
|
|
56849
56868
|
|
|
@@ -56944,7 +56963,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56944
56963
|
onTitleClick = props.onTitleClick,
|
|
56945
56964
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
56946
56965
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
56947
|
-
restProps =
|
|
56966
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, SubMenu_excluded);
|
|
56948
56967
|
|
|
56949
56968
|
var domDataId = useMenuId(eventKey);
|
|
56950
56969
|
|
|
@@ -56987,11 +57006,11 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56987
57006
|
|
|
56988
57007
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
56989
57008
|
active = _useActive.active,
|
|
56990
|
-
activeProps =
|
|
57009
|
+
activeProps = esm_objectWithoutProperties_objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
56991
57010
|
|
|
56992
57011
|
|
|
56993
57012
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
56994
|
-
_React$useState2 =
|
|
57013
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
56995
57014
|
childrenActive = _React$useState2[0],
|
|
56996
57015
|
setChildrenActive = _React$useState2[1];
|
|
56997
57016
|
|
|
@@ -57572,7 +57591,7 @@ function useUUID(id) {
|
|
|
57572
57591
|
var _useMergedState = useControlledState(id, {
|
|
57573
57592
|
value: id
|
|
57574
57593
|
}),
|
|
57575
|
-
_useMergedState2 =
|
|
57594
|
+
_useMergedState2 = esm_slicedToArray_slicedToArray(_useMergedState, 2),
|
|
57576
57595
|
uuid = _useMergedState2[0],
|
|
57577
57596
|
setUUID = _useMergedState2[1];
|
|
57578
57597
|
|
|
@@ -57608,14 +57627,14 @@ var getPathKeys = function getPathKeys(keyPathStr) {
|
|
|
57608
57627
|
var OVERFLOW_KEY = 'rc-menu-more';
|
|
57609
57628
|
function useKeyRecords() {
|
|
57610
57629
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState({}),
|
|
57611
|
-
_React$useState2 =
|
|
57630
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
57612
57631
|
internalForceUpdate = _React$useState2[1];
|
|
57613
57632
|
|
|
57614
57633
|
var key2pathRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57615
57634
|
var path2keyRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57616
57635
|
|
|
57617
57636
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
57618
|
-
_React$useState4 =
|
|
57637
|
+
_React$useState4 = esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
57619
57638
|
overflowKeys = _React$useState4[0],
|
|
57620
57639
|
setOverflowKeys = _React$useState4[1];
|
|
57621
57640
|
|
|
@@ -57808,7 +57827,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57808
57827
|
openTransitionName = props.openTransitionName,
|
|
57809
57828
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
57810
57829
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
57811
|
-
restProps =
|
|
57830
|
+
restProps = _objectWithoutProperties(props, Menu_excluded);
|
|
57812
57831
|
|
|
57813
57832
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
57814
57833
|
|
|
@@ -57962,7 +57981,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57962
57981
|
return key !== targetKey;
|
|
57963
57982
|
});
|
|
57964
57983
|
} else {
|
|
57965
|
-
newSelectKeys = [].concat(
|
|
57984
|
+
newSelectKeys = [].concat(_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
57966
57985
|
}
|
|
57967
57986
|
} else {
|
|
57968
57987
|
newSelectKeys = [targetKey];
|
|
@@ -57970,7 +57989,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57970
57989
|
|
|
57971
57990
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
57972
57991
|
|
|
57973
|
-
var selectInfo =
|
|
57992
|
+
var selectInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
57974
57993
|
selectedKeys: newSelectKeys
|
|
57975
57994
|
});
|
|
57976
57995
|
|
|
@@ -58048,13 +58067,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58048
58067
|
);
|
|
58049
58068
|
}); // >>>>> Container
|
|
58050
58069
|
|
|
58051
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
58070
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, extends_extends({
|
|
58052
58071
|
id: id,
|
|
58053
58072
|
ref: mergedRef,
|
|
58054
58073
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
58055
58074
|
component: "ul",
|
|
58056
58075
|
itemComponent: es_MenuItem,
|
|
58057
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
58076
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-inline-collapsed"), mergedInlineCollapsed), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), isRtl), _classNames)),
|
|
58058
58077
|
dir: direction,
|
|
58059
58078
|
style: style,
|
|
58060
58079
|
role: "menu",
|
|
@@ -58148,13 +58167,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58148
58167
|
title = _ref.title,
|
|
58149
58168
|
eventKey = _ref.eventKey,
|
|
58150
58169
|
children = _ref.children,
|
|
58151
|
-
restProps =
|
|
58170
|
+
restProps = _objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58152
58171
|
|
|
58153
58172
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58154
58173
|
prefixCls = _React$useContext.prefixCls;
|
|
58155
58174
|
|
|
58156
58175
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58157
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
58176
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", extends_extends({}, restProps, {
|
|
58158
58177
|
onClick: function onClick(e) {
|
|
58159
58178
|
return e.stopPropagation();
|
|
58160
58179
|
},
|
|
@@ -58169,7 +58188,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58169
58188
|
|
|
58170
58189
|
function MenuItemGroup(_ref2) {
|
|
58171
58190
|
var children = _ref2.children,
|
|
58172
|
-
props =
|
|
58191
|
+
props = _objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58173
58192
|
|
|
58174
58193
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58175
58194
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58297,10 +58316,10 @@ function Dropdown(props, ref) {
|
|
|
58297
58316
|
visible = props.visible,
|
|
58298
58317
|
_props$trigger = props.trigger,
|
|
58299
58318
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58300
|
-
otherProps =
|
|
58319
|
+
otherProps = esm_objectWithoutProperties_objectWithoutProperties(props, Dropdown_excluded);
|
|
58301
58320
|
|
|
58302
58321
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58303
|
-
_React$useState2 =
|
|
58322
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
58304
58323
|
triggerVisible = _React$useState2[0],
|
|
58305
58324
|
setTriggerVisible = _React$useState2[1];
|
|
58306
58325
|
|
|
@@ -58617,14 +58636,14 @@ function OperationNode(_ref, ref) {
|
|
|
58617
58636
|
}
|
|
58618
58637
|
}, [open]); // ========================= Render =========================
|
|
58619
58638
|
|
|
58620
|
-
var moreStyle =
|
|
58639
|
+
var moreStyle = _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
58621
58640
|
|
|
58622
58641
|
if (!tabs.length) {
|
|
58623
58642
|
moreStyle.visibility = 'hidden';
|
|
58624
58643
|
moreStyle.order = 1;
|
|
58625
58644
|
}
|
|
58626
58645
|
|
|
58627
|
-
var overlayClassName = classnames_default()(
|
|
58646
|
+
var overlayClassName = classnames_default()(_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
58628
58647
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
58629
58648
|
prefixCls: dropdownPrefix,
|
|
58630
58649
|
overlay: menu,
|
|
@@ -58903,7 +58922,7 @@ var ExtraContent = function ExtraContent(_ref) {
|
|
|
58903
58922
|
|
|
58904
58923
|
var assertExtra = {};
|
|
58905
58924
|
|
|
58906
|
-
if (extra &&
|
|
58925
|
+
if (extra && typeof_typeof(extra) === 'object' && ! /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(extra)) {
|
|
58907
58926
|
assertExtra = extra;
|
|
58908
58927
|
} else {
|
|
58909
58928
|
assertExtra.right = extra;
|
|
@@ -59153,7 +59172,7 @@ function TabNavList(props, ref) {
|
|
|
59153
59172
|
}, {
|
|
59154
59173
|
width: addWidth,
|
|
59155
59174
|
height: addHeight
|
|
59156
|
-
},
|
|
59175
|
+
}, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
59157
59176
|
tabs: tabs
|
|
59158
59177
|
})),
|
|
59159
59178
|
_useVisibleRange2 = slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
@@ -59245,7 +59264,7 @@ function TabNavList(props, ref) {
|
|
|
59245
59264
|
|
|
59246
59265
|
var startHiddenTabs = tabs.slice(0, visibleStart);
|
|
59247
59266
|
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
|
59248
|
-
var hiddenTabs = [].concat(
|
|
59267
|
+
var hiddenTabs = [].concat(_toConsumableArray(startHiddenTabs), _toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
59249
59268
|
|
|
59250
59269
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59251
59270
|
_useState16 = slicedToArray_slicedToArray(_useState15, 2),
|
|
@@ -59331,7 +59350,7 @@ function TabNavList(props, ref) {
|
|
|
59331
59350
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59332
59351
|
onResize: onListHolderResize
|
|
59333
59352
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59334
|
-
className: classnames_default()(wrapPrefix, (_classNames = {},
|
|
59353
|
+
className: classnames_default()(wrapPrefix, (_classNames = {}, _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-left"), pingLeft), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-right"), pingRight), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-top"), pingTop), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-bottom"), pingBottom), _classNames)),
|
|
59335
59354
|
ref: tabsWrapperRef
|
|
59336
59355
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59337
59356
|
onResize: onListHolderResize
|
|
@@ -59347,13 +59366,13 @@ function TabNavList(props, ref) {
|
|
|
59347
59366
|
prefixCls: prefixCls,
|
|
59348
59367
|
locale: locale,
|
|
59349
59368
|
editable: editable,
|
|
59350
|
-
style:
|
|
59369
|
+
style: _objectSpread2(_objectSpread2({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {
|
|
59351
59370
|
visibility: hasDropdown ? 'hidden' : null
|
|
59352
59371
|
})
|
|
59353
59372
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59354
|
-
className: classnames_default()("".concat(prefixCls, "-ink-bar"),
|
|
59373
|
+
className: classnames_default()("".concat(prefixCls, "-ink-bar"), _defineProperty({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
|
59355
59374
|
style: inkStyle
|
|
59356
|
-
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode,
|
|
59375
|
+
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode, extends_extends({}, props, {
|
|
59357
59376
|
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
|
59358
59377
|
ref: operationsRef,
|
|
59359
59378
|
prefixCls: prefixCls,
|
|
@@ -59393,8 +59412,8 @@ function TabPanelList(_ref) {
|
|
|
59393
59412
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59394
59413
|
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
|
59395
59414
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59396
|
-
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition),
|
|
59397
|
-
style: activeIndex && tabPaneAnimated ?
|
|
59415
|
+
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), _defineProperty({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated)),
|
|
59416
|
+
style: activeIndex && tabPaneAnimated ? _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', "-".concat(activeIndex, "00%")) : null
|
|
59398
59417
|
}, tabs.map(function (tab) {
|
|
59399
59418
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(tab.node, {
|
|
59400
59419
|
key: tab.key,
|
|
@@ -59454,7 +59473,7 @@ function TabPane(_ref) {
|
|
|
59454
59473
|
tabIndex: active ? 0 : -1,
|
|
59455
59474
|
"aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
|
|
59456
59475
|
"aria-hidden": !active,
|
|
59457
|
-
style:
|
|
59476
|
+
style: _objectSpread2(_objectSpread2({}, mergedStyle), style),
|
|
59458
59477
|
className: classnames_default()("".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), className)
|
|
59459
59478
|
}, (active || visited || forceRender) && children);
|
|
59460
59479
|
}
|
|
@@ -59494,7 +59513,7 @@ function parseTabList(children) {
|
|
|
59494
59513
|
return toArray(children).map(function (node) {
|
|
59495
59514
|
if ( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(node)) {
|
|
59496
59515
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
59497
|
-
return
|
|
59516
|
+
return _objectSpread2(_objectSpread2({
|
|
59498
59517
|
key: key
|
|
59499
59518
|
}, node.props), {}, {
|
|
59500
59519
|
node: node
|
|
@@ -59537,7 +59556,7 @@ function Tabs(_ref, ref) {
|
|
|
59537
59556
|
onChange = _ref.onChange,
|
|
59538
59557
|
onTabClick = _ref.onTabClick,
|
|
59539
59558
|
onTabScroll = _ref.onTabScroll,
|
|
59540
|
-
restProps =
|
|
59559
|
+
restProps = _objectWithoutProperties(_ref, Tabs_excluded);
|
|
59541
59560
|
|
|
59542
59561
|
var tabs = parseTabList(children);
|
|
59543
59562
|
var rtl = direction === 'rtl';
|
|
@@ -59554,10 +59573,10 @@ function Tabs(_ref, ref) {
|
|
|
59554
59573
|
tabPane: true
|
|
59555
59574
|
};
|
|
59556
59575
|
} else {
|
|
59557
|
-
mergedAnimated =
|
|
59576
|
+
mergedAnimated = _objectSpread2({
|
|
59558
59577
|
inkBar: true,
|
|
59559
59578
|
tabPane: false
|
|
59560
|
-
},
|
|
59579
|
+
}, typeof_typeof(animated) === 'object' ? animated : {});
|
|
59561
59580
|
} // ======================== Mobile ========================
|
|
59562
59581
|
|
|
59563
59582
|
|
|
@@ -59652,7 +59671,7 @@ function Tabs(_ref, ref) {
|
|
|
59652
59671
|
};
|
|
59653
59672
|
var tabNavBar;
|
|
59654
59673
|
|
|
59655
|
-
var tabNavBarProps =
|
|
59674
|
+
var tabNavBarProps = _objectSpread2(_objectSpread2({}, sharedProps), {}, {
|
|
59656
59675
|
editable: editable,
|
|
59657
59676
|
locale: locale,
|
|
59658
59677
|
moreIcon: moreIcon,
|
|
@@ -59676,11 +59695,11 @@ function Tabs(_ref, ref) {
|
|
|
59676
59695
|
tabs: tabs,
|
|
59677
59696
|
prefixCls: prefixCls
|
|
59678
59697
|
}
|
|
59679
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
59698
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
59680
59699
|
ref: ref,
|
|
59681
59700
|
id: id,
|
|
59682
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {},
|
|
59683
|
-
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList,
|
|
59701
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-mobile"), mobile), _defineProperty(_classNames, "".concat(prefixCls, "-editable"), editable), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), rtl), _classNames), className)
|
|
59702
|
+
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList, extends_extends({
|
|
59684
59703
|
destroyInactiveTabPane: destroyInactiveTabPane
|
|
59685
59704
|
}, sharedProps, {
|
|
59686
59705
|
animated: mergedAnimated
|
|
@@ -59878,7 +59897,7 @@ var Pager = function Pager(props) {
|
|
|
59878
59897
|
var _classNames;
|
|
59879
59898
|
|
|
59880
59899
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
59881
|
-
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {},
|
|
59900
|
+
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-active"), props.active), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), !props.page), _defineProperty(_classNames, props.className, !!props.className), _classNames));
|
|
59882
59901
|
|
|
59883
59902
|
var handleClick = function handleClick() {
|
|
59884
59903
|
props.onClick(props.page);
|
|
@@ -59923,14 +59942,14 @@ var Pager = function Pager(props) {
|
|
|
59923
59942
|
|
|
59924
59943
|
|
|
59925
59944
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
59926
|
-
|
|
59945
|
+
_inherits(Options, _React$Component);
|
|
59927
59946
|
|
|
59928
|
-
var _super =
|
|
59947
|
+
var _super = _createSuper(Options);
|
|
59929
59948
|
|
|
59930
59949
|
function Options() {
|
|
59931
59950
|
var _this;
|
|
59932
59951
|
|
|
59933
|
-
|
|
59952
|
+
_classCallCheck(this, Options);
|
|
59934
59953
|
|
|
59935
59954
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59936
59955
|
args[_key] = arguments[_key];
|
|
@@ -59996,7 +60015,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
59996
60015
|
return _this;
|
|
59997
60016
|
}
|
|
59998
60017
|
|
|
59999
|
-
|
|
60018
|
+
_createClass(Options, [{
|
|
60000
60019
|
key: "getValidValue",
|
|
60001
60020
|
value: function getValidValue() {
|
|
60002
60021
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -60153,14 +60172,14 @@ function calculatePage(p, state, props) {
|
|
|
60153
60172
|
}
|
|
60154
60173
|
|
|
60155
60174
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
60156
|
-
|
|
60175
|
+
_inherits(Pagination, _React$Component);
|
|
60157
60176
|
|
|
60158
|
-
var _super =
|
|
60177
|
+
var _super = _createSuper(Pagination);
|
|
60159
60178
|
|
|
60160
60179
|
function Pagination(props) {
|
|
60161
60180
|
var _this;
|
|
60162
60181
|
|
|
60163
|
-
|
|
60182
|
+
_classCallCheck(this, Pagination);
|
|
60164
60183
|
|
|
60165
60184
|
_this = _super.call(this, props);
|
|
60166
60185
|
|
|
@@ -60181,7 +60200,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60181
60200
|
});
|
|
60182
60201
|
|
|
60183
60202
|
if (typeof icon === 'function') {
|
|
60184
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon,
|
|
60203
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon, _objectSpread2({}, _this.props));
|
|
60185
60204
|
}
|
|
60186
60205
|
|
|
60187
60206
|
return iconNode;
|
|
@@ -60403,7 +60422,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60403
60422
|
return _this;
|
|
60404
60423
|
}
|
|
60405
60424
|
|
|
60406
|
-
|
|
60425
|
+
_createClass(Pagination, [{
|
|
60407
60426
|
key: "componentDidUpdate",
|
|
60408
60427
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
60409
60428
|
// When current page change, fix focused style of prev item
|
|
@@ -60551,8 +60570,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60551
60570
|
}, gotoButton);
|
|
60552
60571
|
}
|
|
60553
60572
|
|
|
60554
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60555
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"),
|
|
60573
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60574
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"), _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
60556
60575
|
style: style,
|
|
60557
60576
|
ref: this.savePaginationNode
|
|
60558
60577
|
}, dataOrAriaAttributeProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
@@ -60560,7 +60579,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60560
60579
|
onClick: this.prev,
|
|
60561
60580
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60562
60581
|
onKeyPress: this.runIfEnterPrev,
|
|
60563
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60582
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
60564
60583
|
"aria-disabled": !this.hasPrev()
|
|
60565
60584
|
}, this.renderPrev(prevPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60566
60585
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
@@ -60581,7 +60600,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60581
60600
|
onClick: this.next,
|
|
60582
60601
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60583
60602
|
onKeyPress: this.runIfEnterNext,
|
|
60584
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60603
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
60585
60604
|
"aria-disabled": !this.hasNext()
|
|
60586
60605
|
}, this.renderNext(nextPage)), gotoButton);
|
|
60587
60606
|
}
|
|
@@ -60597,7 +60616,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60597
60616
|
};
|
|
60598
60617
|
|
|
60599
60618
|
if (!allPages) {
|
|
60600
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60619
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60601
60620
|
key: "noPager",
|
|
60602
60621
|
page: 1,
|
|
60603
60622
|
className: "".concat(prefixCls, "-item-disabled")
|
|
@@ -60606,7 +60625,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60606
60625
|
|
|
60607
60626
|
for (var i = 1; i <= allPages; i += 1) {
|
|
60608
60627
|
var active = current === i;
|
|
60609
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60628
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60610
60629
|
key: i,
|
|
60611
60630
|
page: i,
|
|
60612
60631
|
active: active
|
|
@@ -60623,7 +60642,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60623
60642
|
onClick: this.jumpPrev,
|
|
60624
60643
|
tabIndex: "0",
|
|
60625
60644
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
60626
|
-
className: classnames_default()("".concat(prefixCls, "-jump-prev"),
|
|
60645
|
+
className: classnames_default()("".concat(prefixCls, "-jump-prev"), _defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
60627
60646
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
60628
60647
|
jumpNext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60629
60648
|
title: showTitle ? nextItemTitle : null,
|
|
@@ -60631,7 +60650,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60631
60650
|
tabIndex: "0",
|
|
60632
60651
|
onClick: this.jumpNext,
|
|
60633
60652
|
onKeyPress: this.runIfEnterJumpNext,
|
|
60634
|
-
className: classnames_default()("".concat(prefixCls, "-jump-next"),
|
|
60653
|
+
className: classnames_default()("".concat(prefixCls, "-jump-next"), _defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
60635
60654
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
60636
60655
|
}
|
|
60637
60656
|
|
|
@@ -60718,8 +60737,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60718
60737
|
|
|
60719
60738
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
60720
60739
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
60721
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60722
|
-
className: classnames_default()(prefixCls, className,
|
|
60740
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60741
|
+
className: classnames_default()(prefixCls, className, _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled)),
|
|
60723
60742
|
style: style,
|
|
60724
60743
|
unselectable: "unselectable",
|
|
60725
60744
|
ref: this.savePaginationNode
|
|
@@ -60728,14 +60747,14 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60728
60747
|
onClick: this.prev,
|
|
60729
60748
|
tabIndex: prevDisabled ? null : 0,
|
|
60730
60749
|
onKeyPress: this.runIfEnterPrev,
|
|
60731
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60750
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
60732
60751
|
"aria-disabled": prevDisabled
|
|
60733
60752
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60734
60753
|
title: showTitle ? locale.next_page : null,
|
|
60735
60754
|
onClick: this.next,
|
|
60736
60755
|
tabIndex: nextDisabled ? null : 0,
|
|
60737
60756
|
onKeyPress: this.runIfEnterNext,
|
|
60738
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60757
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
60739
60758
|
"aria-disabled": nextDisabled
|
|
60740
60759
|
}, this.renderNext(nextPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Options, {
|
|
60741
60760
|
disabled: disabled,
|
|
@@ -60813,7 +60832,7 @@ Pagination.defaultProps = {
|
|
|
60813
60832
|
|
|
60814
60833
|
|
|
60815
60834
|
var MiniSelect = function MiniSelect(props) {
|
|
60816
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select,
|
|
60835
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select, extends_extends({
|
|
60817
60836
|
size: "small"
|
|
60818
60837
|
}, props));
|
|
60819
60838
|
};
|
|
@@ -60874,7 +60893,7 @@ var responsiveObserve = {
|
|
|
60874
60893
|
var listener = function listener(_ref) {
|
|
60875
60894
|
var matches = _ref.matches;
|
|
60876
60895
|
|
|
60877
|
-
_this2.dispatch(
|
|
60896
|
+
_this2.dispatch(extends_extends(extends_extends({}, screens), _defineProperty({}, screen, matches)));
|
|
60878
60897
|
};
|
|
60879
60898
|
|
|
60880
60899
|
var mql = window.matchMedia(matchMediaQuery);
|
|
@@ -61015,13 +61034,13 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61015
61034
|
var renderPagination = function renderPagination(contextLocale) {
|
|
61016
61035
|
var _classNames;
|
|
61017
61036
|
|
|
61018
|
-
var locale =
|
|
61037
|
+
var locale = extends_extends(extends_extends({}, contextLocale), customLocale);
|
|
61019
61038
|
|
|
61020
61039
|
var isSmall = size === 'small' || !!(xs && !size && restProps.responsive);
|
|
61021
61040
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
61022
61041
|
var extendedClassName = classnames_default()((_classNames = {
|
|
61023
61042
|
mini: isSmall
|
|
61024
|
-
},
|
|
61043
|
+
}, _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames, "minimalistic", minimalistic), _classNames), className); // 文本式分页
|
|
61025
61044
|
|
|
61026
61045
|
if (minimalistic) {
|
|
61027
61046
|
paginationProps.itemRender = function (_current, type, originalElement) {
|
|
@@ -61058,7 +61077,7 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61058
61077
|
paginationProps.showQuickJumper = showQuickJumper;
|
|
61059
61078
|
}
|
|
61060
61079
|
|
|
61061
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination,
|
|
61080
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination, extends_extends({}, paginationProps, getIconsProps(), restProps, {
|
|
61062
61081
|
prefixCls: prefixCls,
|
|
61063
61082
|
selectPrefixCls: selectPrefixCls,
|
|
61064
61083
|
className: extendedClassName,
|
|
@@ -61430,10 +61449,10 @@ function Action(_ref) {
|
|
|
61430
61449
|
setCurAction = _useState2[1];
|
|
61431
61450
|
|
|
61432
61451
|
var handleBtnClick = /*#__PURE__*/function () {
|
|
61433
|
-
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/
|
|
61452
|
+
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(e) {
|
|
61434
61453
|
var now, begin, _error$response, _error$response$data, _error$response2, _error$response2$data;
|
|
61435
61454
|
|
|
61436
|
-
return
|
|
61455
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
61437
61456
|
while (1) {
|
|
61438
61457
|
switch (_context.prev = _context.next) {
|
|
61439
61458
|
case 0:
|