@x-edu/live-player 0.0.5 → 0.0.6
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 +550 -586
- package/dist/XEduLivePlayerPre.common.js +346 -382
- package/doc/develop.md +18 -1
- package/package.json +1 -1
- package/src/detail/index.jsx +5 -5
- package/src/index.js +3 -1
|
@@ -8384,7 +8384,7 @@ module.exports = __webpack_require__(5666);
|
|
|
8384
8384
|
/***/ 3006:
|
|
8385
8385
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
8386
8386
|
|
|
8387
|
-
var _regeneratorRuntime = __webpack_require__(
|
|
8387
|
+
var _regeneratorRuntime = __webpack_require__(5273);
|
|
8388
8388
|
|
|
8389
8389
|
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); } }
|
|
8390
8390
|
|
|
@@ -12597,6 +12597,9 @@ function Empty_Empty(_ref) {
|
|
|
12597
12597
|
to: url
|
|
12598
12598
|
}, "\u770B\u770B\u5176\u5B83\u7684")));
|
|
12599
12599
|
}
|
|
12600
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
12601
|
+
var runtime_regenerator = __webpack_require__(5273);
|
|
12602
|
+
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
12600
12603
|
// EXTERNAL MODULE: ./node_modules/axios/index.js
|
|
12601
12604
|
var axios = __webpack_require__(9669);
|
|
12602
12605
|
var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
|
|
@@ -13406,7 +13409,7 @@ function getServiceConfig(_x) {
|
|
|
13406
13409
|
}
|
|
13407
13410
|
|
|
13408
13411
|
function _getServiceConfig() {
|
|
13409
|
-
_getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/
|
|
13412
|
+
_getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(serviceName) {
|
|
13410
13413
|
var sdpAppId,
|
|
13411
13414
|
env,
|
|
13412
13415
|
key,
|
|
@@ -13418,7 +13421,7 @@ function _getServiceConfig() {
|
|
|
13418
13421
|
result,
|
|
13419
13422
|
ttl,
|
|
13420
13423
|
_args = arguments;
|
|
13421
|
-
return
|
|
13424
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
13422
13425
|
while (1) {
|
|
13423
13426
|
switch (_context.prev = _context.next) {
|
|
13424
13427
|
case 0:
|
|
@@ -13682,13 +13685,13 @@ function withOnce(fn) {
|
|
|
13682
13685
|
var lockPool = createLockPool();
|
|
13683
13686
|
|
|
13684
13687
|
var newFn = /*#__PURE__*/function () {
|
|
13685
|
-
var _ref3 = hof_asyncToGenerator( /*#__PURE__*/
|
|
13688
|
+
var _ref3 = hof_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2() {
|
|
13686
13689
|
var key,
|
|
13687
13690
|
lock,
|
|
13688
13691
|
lockId,
|
|
13689
13692
|
result,
|
|
13690
13693
|
_args2 = arguments;
|
|
13691
|
-
return
|
|
13694
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
13692
13695
|
while (1) {
|
|
13693
13696
|
switch (_context2.prev = _context2.next) {
|
|
13694
13697
|
case 0:
|
|
@@ -14194,9 +14197,9 @@ function _getLiveAPICache() {
|
|
|
14194
14197
|
}
|
|
14195
14198
|
|
|
14196
14199
|
function _getLiveAPICache2() {
|
|
14197
|
-
_getLiveAPICache2 = live_asyncToGenerator( /*#__PURE__*/
|
|
14200
|
+
_getLiveAPICache2 = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee11() {
|
|
14198
14201
|
var url, result, serverTime;
|
|
14199
|
-
return
|
|
14202
|
+
return runtime_regenerator_default().wrap(function _callee11$(_context11) {
|
|
14200
14203
|
while (1) {
|
|
14201
14204
|
switch (_context11.prev = _context11.next) {
|
|
14202
14205
|
case 0:
|
|
@@ -14236,9 +14239,9 @@ function getOpenClassWithCache(_x11) {
|
|
|
14236
14239
|
} // 公开直播详情变化部分,失败要降级处理
|
|
14237
14240
|
|
|
14238
14241
|
function _getOpenClassWithCache() {
|
|
14239
|
-
_getOpenClassWithCache = live_asyncToGenerator( /*#__PURE__*/
|
|
14242
|
+
_getOpenClassWithCache = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee12(url) {
|
|
14240
14243
|
var fullUrl, cacheInfo, cacheData, result, serverTime;
|
|
14241
|
-
return
|
|
14244
|
+
return runtime_regenerator_default().wrap(function _callee12$(_context12) {
|
|
14242
14245
|
while (1) {
|
|
14243
14246
|
switch (_context12.prev = _context12.next) {
|
|
14244
14247
|
case 0:
|
|
@@ -14310,9 +14313,9 @@ function getOpenClassLiveSimple(_x12) {
|
|
|
14310
14313
|
} // 公开直播详情拆分成两个接口
|
|
14311
14314
|
|
|
14312
14315
|
function _getOpenClassLiveSimple() {
|
|
14313
|
-
_getOpenClassLiveSimple = live_asyncToGenerator( /*#__PURE__*/
|
|
14316
|
+
_getOpenClassLiveSimple = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee13(liveInfo) {
|
|
14314
14317
|
var url, data;
|
|
14315
|
-
return
|
|
14318
|
+
return runtime_regenerator_default().wrap(function _callee13$(_context13) {
|
|
14316
14319
|
while (1) {
|
|
14317
14320
|
switch (_context13.prev = _context13.next) {
|
|
14318
14321
|
case 0:
|
|
@@ -14351,9 +14354,9 @@ function getOpenClassLiveBase(_x13) {
|
|
|
14351
14354
|
} // 公开实时直播-发起直播-公共直播邀请页使用,适配为班级直播数据
|
|
14352
14355
|
|
|
14353
14356
|
function _getOpenClassLiveBase() {
|
|
14354
|
-
_getOpenClassLiveBase = live_asyncToGenerator( /*#__PURE__*/
|
|
14357
|
+
_getOpenClassLiveBase = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee14(id) {
|
|
14355
14358
|
var url, data, subType, dynamicInfo;
|
|
14356
|
-
return
|
|
14359
|
+
return runtime_regenerator_default().wrap(function _callee14$(_context14) {
|
|
14357
14360
|
while (1) {
|
|
14358
14361
|
switch (_context14.prev = _context14.next) {
|
|
14359
14362
|
case 0:
|
|
@@ -14433,9 +14436,9 @@ function getOpenClassLive(_x15) {
|
|
|
14433
14436
|
}
|
|
14434
14437
|
|
|
14435
14438
|
function _getOpenClassLive() {
|
|
14436
|
-
_getOpenClassLive = live_asyncToGenerator( /*#__PURE__*/
|
|
14439
|
+
_getOpenClassLive = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee16(id) {
|
|
14437
14440
|
var serviceConfig, liveCloseLogin, data;
|
|
14438
|
-
return
|
|
14441
|
+
return runtime_regenerator_default().wrap(function _callee16$(_context16) {
|
|
14439
14442
|
while (1) {
|
|
14440
14443
|
switch (_context16.prev = _context16.next) {
|
|
14441
14444
|
case 0:
|
|
@@ -14556,9 +14559,9 @@ function imBroadcasts_asyncToGenerator(fn) { return function () { var self = thi
|
|
|
14556
14559
|
// https://wiki.doc.101.com/index.php?title=IM%E7%9B%B4%E6%92%ADv2#.5BGET.5D_.2Fapis.2Fbroadcasts.2F.7BroomId.7D_.E6.A0.B9.E6.8D.AEroomId_.E8.8E.B7.E5.8F.96.E7.9B.B4.E6.92.AD.E4.BF.A1.E6.81.AF
|
|
14557
14560
|
|
|
14558
14561
|
var getIMLiveInfo = /*#__PURE__*/function () {
|
|
14559
|
-
var _ref = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
14562
|
+
var _ref = imBroadcasts_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(roomId) {
|
|
14560
14563
|
var url, response;
|
|
14561
|
-
return
|
|
14564
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
14562
14565
|
while (1) {
|
|
14563
14566
|
switch (_context.prev = _context.next) {
|
|
14564
14567
|
case 0:
|
|
@@ -14591,10 +14594,10 @@ var getIMLiveInfo = /*#__PURE__*/function () {
|
|
|
14591
14594
|
*/
|
|
14592
14595
|
|
|
14593
14596
|
var getGuestIMLiveInfoStatic = /*#__PURE__*/function () {
|
|
14594
|
-
var _ref2 = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
14597
|
+
var _ref2 = imBroadcasts_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(bId) {
|
|
14595
14598
|
var _yield$imBroadcastsSt, data;
|
|
14596
14599
|
|
|
14597
|
-
return
|
|
14600
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
14598
14601
|
while (1) {
|
|
14599
14602
|
switch (_context2.prev = _context2.next) {
|
|
14600
14603
|
case 0:
|
|
@@ -14621,10 +14624,10 @@ var getGuestIMLiveInfoStatic = /*#__PURE__*/function () {
|
|
|
14621
14624
|
// 访客获取直播接口
|
|
14622
14625
|
|
|
14623
14626
|
var getGuestIMLiveInfo = /*#__PURE__*/function () {
|
|
14624
|
-
var _ref3 = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
14627
|
+
var _ref3 = imBroadcasts_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(bId) {
|
|
14625
14628
|
var _yield$imBroadcastsAP, data;
|
|
14626
14629
|
|
|
14627
|
-
return
|
|
14630
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
14628
14631
|
while (1) {
|
|
14629
14632
|
switch (_context3.prev = _context3.next) {
|
|
14630
14633
|
case 0:
|
|
@@ -14692,6 +14695,162 @@ var spin_style_update = injectStylesIntoStyleTag_default()(spin_style/* default
|
|
|
14692
14695
|
;// CONCATENATED MODULE: ./node_modules/@sdp.nd/fish/es/spin/style/index.js
|
|
14693
14696
|
|
|
14694
14697
|
|
|
14698
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
14699
|
+
function esm_extends_extends() {
|
|
14700
|
+
esm_extends_extends = Object.assign || function (target) {
|
|
14701
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
14702
|
+
var source = arguments[i];
|
|
14703
|
+
|
|
14704
|
+
for (var key in source) {
|
|
14705
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
14706
|
+
target[key] = source[key];
|
|
14707
|
+
}
|
|
14708
|
+
}
|
|
14709
|
+
}
|
|
14710
|
+
|
|
14711
|
+
return target;
|
|
14712
|
+
};
|
|
14713
|
+
|
|
14714
|
+
return esm_extends_extends.apply(this, arguments);
|
|
14715
|
+
}
|
|
14716
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
14717
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
14718
|
+
if (key in obj) {
|
|
14719
|
+
Object.defineProperty(obj, key, {
|
|
14720
|
+
value: value,
|
|
14721
|
+
enumerable: true,
|
|
14722
|
+
configurable: true,
|
|
14723
|
+
writable: true
|
|
14724
|
+
});
|
|
14725
|
+
} else {
|
|
14726
|
+
obj[key] = value;
|
|
14727
|
+
}
|
|
14728
|
+
|
|
14729
|
+
return obj;
|
|
14730
|
+
}
|
|
14731
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
14732
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
14733
|
+
if (!(instance instanceof Constructor)) {
|
|
14734
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14735
|
+
}
|
|
14736
|
+
}
|
|
14737
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
14738
|
+
function createClass_defineProperties(target, props) {
|
|
14739
|
+
for (var i = 0; i < props.length; i++) {
|
|
14740
|
+
var descriptor = props[i];
|
|
14741
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
14742
|
+
descriptor.configurable = true;
|
|
14743
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
14744
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14745
|
+
}
|
|
14746
|
+
}
|
|
14747
|
+
|
|
14748
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
14749
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
14750
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
14751
|
+
return Constructor;
|
|
14752
|
+
}
|
|
14753
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
14754
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
14755
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
14756
|
+
o.__proto__ = p;
|
|
14757
|
+
return o;
|
|
14758
|
+
};
|
|
14759
|
+
|
|
14760
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
14761
|
+
}
|
|
14762
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
14763
|
+
|
|
14764
|
+
function inherits_inherits(subClass, superClass) {
|
|
14765
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
14766
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
14767
|
+
}
|
|
14768
|
+
|
|
14769
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
14770
|
+
constructor: {
|
|
14771
|
+
value: subClass,
|
|
14772
|
+
writable: true,
|
|
14773
|
+
configurable: true
|
|
14774
|
+
}
|
|
14775
|
+
});
|
|
14776
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
14777
|
+
}
|
|
14778
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
14779
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
14780
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
14781
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
14782
|
+
};
|
|
14783
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
14784
|
+
}
|
|
14785
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
14786
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
14787
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
14788
|
+
if (Reflect.construct.sham) return false;
|
|
14789
|
+
if (typeof Proxy === "function") return true;
|
|
14790
|
+
|
|
14791
|
+
try {
|
|
14792
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
14793
|
+
return true;
|
|
14794
|
+
} catch (e) {
|
|
14795
|
+
return false;
|
|
14796
|
+
}
|
|
14797
|
+
}
|
|
14798
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
14799
|
+
function esm_typeof_typeof(obj) {
|
|
14800
|
+
"@babel/helpers - typeof";
|
|
14801
|
+
|
|
14802
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
14803
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
14804
|
+
return typeof obj;
|
|
14805
|
+
};
|
|
14806
|
+
} else {
|
|
14807
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
14808
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
14809
|
+
};
|
|
14810
|
+
}
|
|
14811
|
+
|
|
14812
|
+
return esm_typeof_typeof(obj);
|
|
14813
|
+
}
|
|
14814
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
14815
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
14816
|
+
if (self === void 0) {
|
|
14817
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
14818
|
+
}
|
|
14819
|
+
|
|
14820
|
+
return self;
|
|
14821
|
+
}
|
|
14822
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
14823
|
+
|
|
14824
|
+
|
|
14825
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
14826
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
14827
|
+
return call;
|
|
14828
|
+
} else if (call !== void 0) {
|
|
14829
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
14830
|
+
}
|
|
14831
|
+
|
|
14832
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
14833
|
+
}
|
|
14834
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
14835
|
+
|
|
14836
|
+
|
|
14837
|
+
|
|
14838
|
+
function createSuper_createSuper(Derived) {
|
|
14839
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
14840
|
+
return function _createSuperInternal() {
|
|
14841
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
14842
|
+
result;
|
|
14843
|
+
|
|
14844
|
+
if (hasNativeReflectConstruct) {
|
|
14845
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
14846
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
14847
|
+
} else {
|
|
14848
|
+
result = Super.apply(this, arguments);
|
|
14849
|
+
}
|
|
14850
|
+
|
|
14851
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
14852
|
+
};
|
|
14853
|
+
}
|
|
14695
14854
|
// EXTERNAL MODULE: ./node_modules/lodash/debounce.js
|
|
14696
14855
|
var debounce = __webpack_require__(3279);
|
|
14697
14856
|
var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce);
|
|
@@ -14800,14 +14959,14 @@ function shouldDelay(spinning, delay) {
|
|
|
14800
14959
|
}
|
|
14801
14960
|
|
|
14802
14961
|
var Spin = /*#__PURE__*/function (_React$Component) {
|
|
14803
|
-
|
|
14962
|
+
inherits_inherits(Spin, _React$Component);
|
|
14804
14963
|
|
|
14805
|
-
var _super =
|
|
14964
|
+
var _super = createSuper_createSuper(Spin);
|
|
14806
14965
|
|
|
14807
14966
|
function Spin(props) {
|
|
14808
14967
|
var _this;
|
|
14809
14968
|
|
|
14810
|
-
|
|
14969
|
+
classCallCheck_classCallCheck(this, Spin);
|
|
14811
14970
|
|
|
14812
14971
|
_this = _super.call(this, props);
|
|
14813
14972
|
|
|
@@ -14850,10 +15009,10 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
14850
15009
|
|
|
14851
15010
|
var spinning = _this.state.spinning;
|
|
14852
15011
|
var prefixCls = getPrefixCls('spin', customizePrefixCls);
|
|
14853
|
-
var spinClassName = classnames_default()(prefixCls, (_classNames = {},
|
|
15012
|
+
var spinClassName = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-sm"), size === 'small'), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-lg"), size === 'large'), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-spinning"), spinning), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-show-text"), !!tip), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className); // fix https://fb.me/react-unknown-prop
|
|
14854
15013
|
|
|
14855
15014
|
var divProps = omit(restProps, ['spinning', 'delay', 'indicator']);
|
|
14856
|
-
var spinElement = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
15015
|
+
var spinElement = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, divProps, {
|
|
14857
15016
|
style: style,
|
|
14858
15017
|
className: spinClassName
|
|
14859
15018
|
}), renderIndicator(prefixCls, _this.props), tip ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -14861,8 +15020,8 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
14861
15020
|
}, tip) : null);
|
|
14862
15021
|
|
|
14863
15022
|
if (_this.isNestedPattern()) {
|
|
14864
|
-
var containerClassName = classnames_default()("".concat(prefixCls, "-container"),
|
|
14865
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
15023
|
+
var containerClassName = classnames_default()("".concat(prefixCls, "-container"), defineProperty_defineProperty({}, "".concat(prefixCls, "-blur"), spinning));
|
|
15024
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, divProps, {
|
|
14866
15025
|
className: classnames_default()("".concat(prefixCls, "-nested-loading"), wrapperClassName)
|
|
14867
15026
|
}), spinning && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
14868
15027
|
key: "loading"
|
|
@@ -14888,7 +15047,7 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
14888
15047
|
return _this;
|
|
14889
15048
|
}
|
|
14890
15049
|
|
|
14891
|
-
|
|
15050
|
+
createClass_createClass(Spin, [{
|
|
14892
15051
|
key: "componentDidMount",
|
|
14893
15052
|
value: function componentDidMount() {
|
|
14894
15053
|
this.updateSpinning();
|
|
@@ -15034,8 +15193,8 @@ var ImPush = /*#__PURE__*/function () {
|
|
|
15034
15193
|
push_createClass(ImPush, [{
|
|
15035
15194
|
key: "init",
|
|
15036
15195
|
value: function () {
|
|
15037
|
-
var _init = push_asyncToGenerator( /*#__PURE__*/
|
|
15038
|
-
return
|
|
15196
|
+
var _init = push_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
15197
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
15039
15198
|
while (1) {
|
|
15040
15199
|
switch (_context.prev = _context.next) {
|
|
15041
15200
|
case 0:
|
|
@@ -15241,14 +15400,14 @@ var videoCdnPrefix = '//gcdncs.101.com/v0.1/static/share/fish/videoplayer';
|
|
|
15241
15400
|
var defaultVideoUrl = getVideoUrl(videoCdnPrefix, video_version);
|
|
15242
15401
|
|
|
15243
15402
|
var Video = /*#__PURE__*/function (_React$Component) {
|
|
15244
|
-
|
|
15403
|
+
inherits_inherits(Video, _React$Component);
|
|
15245
15404
|
|
|
15246
|
-
var _super =
|
|
15405
|
+
var _super = createSuper_createSuper(Video);
|
|
15247
15406
|
|
|
15248
15407
|
function Video() {
|
|
15249
15408
|
var _this;
|
|
15250
15409
|
|
|
15251
|
-
|
|
15410
|
+
classCallCheck_classCallCheck(this, Video);
|
|
15252
15411
|
|
|
15253
15412
|
_this = _super.apply(this, arguments);
|
|
15254
15413
|
_this.videoUrl = {}; // eslint-disable-next-line class-methods-use-this
|
|
@@ -15261,12 +15420,12 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
15261
15420
|
csOriginUrl = getVideoUrl(cdnPrefix, video_version);
|
|
15262
15421
|
}
|
|
15263
15422
|
|
|
15264
|
-
return
|
|
15423
|
+
return esm_extends_extends(esm_extends_extends({}, csOriginUrl), Video.url);
|
|
15265
15424
|
};
|
|
15266
15425
|
|
|
15267
15426
|
_this.loadVideoPlayer = function () {
|
|
15268
|
-
return __awaiter(
|
|
15269
|
-
return
|
|
15427
|
+
return __awaiter(assertThisInitialized_assertThisInitialized(_this), void 0, void 0, /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
15428
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
15270
15429
|
while (1) {
|
|
15271
15430
|
switch (_context.prev = _context.next) {
|
|
15272
15431
|
case 0:
|
|
@@ -15316,7 +15475,7 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
15316
15475
|
return _this;
|
|
15317
15476
|
}
|
|
15318
15477
|
|
|
15319
|
-
|
|
15478
|
+
createClass_createClass(Video, [{
|
|
15320
15479
|
key: "componentDidMount",
|
|
15321
15480
|
value: function componentDidMount() {
|
|
15322
15481
|
var _this2 = this;
|
|
@@ -15660,9 +15819,9 @@ function isSourceReady(_x) {
|
|
|
15660
15819
|
}
|
|
15661
15820
|
|
|
15662
15821
|
function _isSourceReady() {
|
|
15663
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
15822
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(liveInfo) {
|
|
15664
15823
|
var newLiveInfo;
|
|
15665
|
-
return
|
|
15824
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
15666
15825
|
while (1) {
|
|
15667
15826
|
switch (_context.prev = _context.next) {
|
|
15668
15827
|
case 0:
|
|
@@ -15853,8 +16012,8 @@ function usePullSource_isSourceReady(_x) {
|
|
|
15853
16012
|
}
|
|
15854
16013
|
|
|
15855
16014
|
function hook_usePullSource_isSourceReady() {
|
|
15856
|
-
hook_usePullSource_isSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
15857
|
-
return
|
|
16015
|
+
hook_usePullSource_isSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(url) {
|
|
16016
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
15858
16017
|
while (1) {
|
|
15859
16018
|
switch (_context.prev = _context.next) {
|
|
15860
16019
|
case 0:
|
|
@@ -16359,8 +16518,8 @@ function AliPlayer(_ref) {
|
|
|
16359
16518
|
var aliPlayer;
|
|
16360
16519
|
|
|
16361
16520
|
var init = /*#__PURE__*/function () {
|
|
16362
|
-
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/
|
|
16363
|
-
return
|
|
16521
|
+
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
16522
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
16364
16523
|
while (1) {
|
|
16365
16524
|
switch (_context.prev = _context.next) {
|
|
16366
16525
|
case 0:
|
|
@@ -16519,140 +16678,37 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
16519
16678
|
|
|
16520
16679
|
return _arr;
|
|
16521
16680
|
}
|
|
16522
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/
|
|
16523
|
-
function
|
|
16524
|
-
|
|
16525
|
-
}
|
|
16526
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
16527
|
-
|
|
16528
|
-
|
|
16529
|
-
|
|
16530
|
-
|
|
16531
|
-
function slicedToArray_slicedToArray(arr, i) {
|
|
16532
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
16533
|
-
}
|
|
16534
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
16535
|
-
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
16536
|
-
if (!(instance instanceof Constructor)) {
|
|
16537
|
-
throw new TypeError("Cannot call a class as a function");
|
|
16538
|
-
}
|
|
16539
|
-
}
|
|
16540
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
16541
|
-
function createClass_defineProperties(target, props) {
|
|
16542
|
-
for (var i = 0; i < props.length; i++) {
|
|
16543
|
-
var descriptor = props[i];
|
|
16544
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
16545
|
-
descriptor.configurable = true;
|
|
16546
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
16547
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16548
|
-
}
|
|
16549
|
-
}
|
|
16550
|
-
|
|
16551
|
-
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
16552
|
-
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
16553
|
-
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
16554
|
-
return Constructor;
|
|
16555
|
-
}
|
|
16556
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
16557
|
-
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
16558
|
-
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
16559
|
-
o.__proto__ = p;
|
|
16560
|
-
return o;
|
|
16561
|
-
};
|
|
16562
|
-
|
|
16563
|
-
return setPrototypeOf_setPrototypeOf(o, p);
|
|
16564
|
-
}
|
|
16565
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
16566
|
-
|
|
16567
|
-
function inherits_inherits(subClass, superClass) {
|
|
16568
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
16569
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
16570
|
-
}
|
|
16571
|
-
|
|
16572
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
16573
|
-
constructor: {
|
|
16574
|
-
value: subClass,
|
|
16575
|
-
writable: true,
|
|
16576
|
-
configurable: true
|
|
16577
|
-
}
|
|
16578
|
-
});
|
|
16579
|
-
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
16580
|
-
}
|
|
16581
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
16582
|
-
function getPrototypeOf_getPrototypeOf(o) {
|
|
16583
|
-
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
16584
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
16585
|
-
};
|
|
16586
|
-
return getPrototypeOf_getPrototypeOf(o);
|
|
16587
|
-
}
|
|
16588
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
16589
|
-
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
16590
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
16591
|
-
if (Reflect.construct.sham) return false;
|
|
16592
|
-
if (typeof Proxy === "function") return true;
|
|
16593
|
-
|
|
16594
|
-
try {
|
|
16595
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
16596
|
-
return true;
|
|
16597
|
-
} catch (e) {
|
|
16598
|
-
return false;
|
|
16599
|
-
}
|
|
16600
|
-
}
|
|
16601
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
16602
|
-
function esm_typeof_typeof(obj) {
|
|
16603
|
-
"@babel/helpers - typeof";
|
|
16681
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
16682
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
16683
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
16604
16684
|
|
|
16605
|
-
|
|
16606
|
-
|
|
16607
|
-
return typeof obj;
|
|
16608
|
-
};
|
|
16609
|
-
} else {
|
|
16610
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
16611
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
16612
|
-
};
|
|
16685
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
16686
|
+
arr2[i] = arr[i];
|
|
16613
16687
|
}
|
|
16614
16688
|
|
|
16615
|
-
return
|
|
16689
|
+
return arr2;
|
|
16616
16690
|
}
|
|
16617
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/
|
|
16618
|
-
function assertThisInitialized_assertThisInitialized(self) {
|
|
16619
|
-
if (self === void 0) {
|
|
16620
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16621
|
-
}
|
|
16691
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
16622
16692
|
|
|
16623
|
-
|
|
16693
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
16694
|
+
if (!o) return;
|
|
16695
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
16696
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
16697
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
16698
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
16699
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
16624
16700
|
}
|
|
16625
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/
|
|
16626
|
-
|
|
16627
|
-
|
|
16628
|
-
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
16629
|
-
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
16630
|
-
return call;
|
|
16631
|
-
} else if (call !== void 0) {
|
|
16632
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
16633
|
-
}
|
|
16634
|
-
|
|
16635
|
-
return assertThisInitialized_assertThisInitialized(self);
|
|
16701
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
16702
|
+
function nonIterableRest_nonIterableRest() {
|
|
16703
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16636
16704
|
}
|
|
16637
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/
|
|
16705
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
16638
16706
|
|
|
16639
16707
|
|
|
16640
16708
|
|
|
16641
|
-
function createSuper_createSuper(Derived) {
|
|
16642
|
-
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
16643
|
-
return function _createSuperInternal() {
|
|
16644
|
-
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
16645
|
-
result;
|
|
16646
16709
|
|
|
16647
|
-
|
|
16648
|
-
|
|
16649
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
16650
|
-
} else {
|
|
16651
|
-
result = Super.apply(this, arguments);
|
|
16652
|
-
}
|
|
16653
|
-
|
|
16654
|
-
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
16655
|
-
};
|
|
16710
|
+
function slicedToArray_slicedToArray(arr, i) {
|
|
16711
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
16656
16712
|
}
|
|
16657
16713
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
16658
16714
|
var raf = function raf(callback) {
|
|
@@ -16879,16 +16935,6 @@ var cacheStyle = {};
|
|
|
16879
16935
|
}
|
|
16880
16936
|
}
|
|
16881
16937
|
});
|
|
16882
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
16883
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
16884
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
16885
|
-
|
|
16886
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
16887
|
-
arr2[i] = arr[i];
|
|
16888
|
-
}
|
|
16889
|
-
|
|
16890
|
-
return arr2;
|
|
16891
|
-
}
|
|
16892
16938
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
16893
16939
|
|
|
16894
16940
|
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
@@ -16898,16 +16944,6 @@ function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
|
16898
16944
|
function iterableToArray_iterableToArray(iter) {
|
|
16899
16945
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
16900
16946
|
}
|
|
16901
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
16902
|
-
|
|
16903
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
16904
|
-
if (!o) return;
|
|
16905
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
16906
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
16907
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
16908
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
16909
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
16910
|
-
}
|
|
16911
16947
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
16912
16948
|
function nonIterableSpread_nonIterableSpread() {
|
|
16913
16949
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -17310,39 +17346,6 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
17310
17346
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
17311
17347
|
|
|
17312
17348
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
17313
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
17314
|
-
function esm_extends_extends() {
|
|
17315
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
17316
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
17317
|
-
var source = arguments[i];
|
|
17318
|
-
|
|
17319
|
-
for (var key in source) {
|
|
17320
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17321
|
-
target[key] = source[key];
|
|
17322
|
-
}
|
|
17323
|
-
}
|
|
17324
|
-
}
|
|
17325
|
-
|
|
17326
|
-
return target;
|
|
17327
|
-
};
|
|
17328
|
-
|
|
17329
|
-
return esm_extends_extends.apply(this, arguments);
|
|
17330
|
-
}
|
|
17331
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
17332
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
17333
|
-
if (key in obj) {
|
|
17334
|
-
Object.defineProperty(obj, key, {
|
|
17335
|
-
value: value,
|
|
17336
|
-
enumerable: true,
|
|
17337
|
-
configurable: true,
|
|
17338
|
-
writable: true
|
|
17339
|
-
});
|
|
17340
|
-
} else {
|
|
17341
|
-
obj[key] = value;
|
|
17342
|
-
}
|
|
17343
|
-
|
|
17344
|
-
return obj;
|
|
17345
|
-
}
|
|
17346
17349
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
17347
17350
|
|
|
17348
17351
|
|
|
@@ -17383,52 +17386,6 @@ function objectSpread2_objectSpread2(target) {
|
|
|
17383
17386
|
|
|
17384
17387
|
return target;
|
|
17385
17388
|
}
|
|
17386
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
17387
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
17388
|
-
if (Array.isArray(arr)) return arr;
|
|
17389
|
-
}
|
|
17390
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
17391
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
17392
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
17393
|
-
|
|
17394
|
-
if (_i == null) return;
|
|
17395
|
-
var _arr = [];
|
|
17396
|
-
var _n = true;
|
|
17397
|
-
var _d = false;
|
|
17398
|
-
|
|
17399
|
-
var _s, _e;
|
|
17400
|
-
|
|
17401
|
-
try {
|
|
17402
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
17403
|
-
_arr.push(_s.value);
|
|
17404
|
-
|
|
17405
|
-
if (i && _arr.length === i) break;
|
|
17406
|
-
}
|
|
17407
|
-
} catch (err) {
|
|
17408
|
-
_d = true;
|
|
17409
|
-
_e = err;
|
|
17410
|
-
} finally {
|
|
17411
|
-
try {
|
|
17412
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
17413
|
-
} finally {
|
|
17414
|
-
if (_d) throw _e;
|
|
17415
|
-
}
|
|
17416
|
-
}
|
|
17417
|
-
|
|
17418
|
-
return _arr;
|
|
17419
|
-
}
|
|
17420
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
17421
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
17422
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17423
|
-
}
|
|
17424
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
17425
|
-
|
|
17426
|
-
|
|
17427
|
-
|
|
17428
|
-
|
|
17429
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
17430
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
17431
|
-
}
|
|
17432
17389
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
17433
17390
|
/**
|
|
17434
17391
|
* @ignore
|
|
@@ -18095,7 +18052,7 @@ function pickAttrs(props) {
|
|
|
18095
18052
|
aria: true
|
|
18096
18053
|
};
|
|
18097
18054
|
} else {
|
|
18098
|
-
mergedConfig =
|
|
18055
|
+
mergedConfig = objectSpread2_objectSpread2({}, ariaOnly);
|
|
18099
18056
|
}
|
|
18100
18057
|
|
|
18101
18058
|
var attrs = {};
|
|
@@ -18128,7 +18085,7 @@ var react_is = __webpack_require__(9864);
|
|
|
18128
18085
|
function fillRef(ref, node) {
|
|
18129
18086
|
if (typeof ref === 'function') {
|
|
18130
18087
|
ref(node);
|
|
18131
|
-
} else if (
|
|
18088
|
+
} else if (esm_typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
18132
18089
|
ref.current = node;
|
|
18133
18090
|
}
|
|
18134
18091
|
}
|
|
@@ -18238,7 +18195,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
18238
18195
|
function getTransitionName(transitionName, transitionType) {
|
|
18239
18196
|
if (!transitionName) return null;
|
|
18240
18197
|
|
|
18241
|
-
if (
|
|
18198
|
+
if (esm_typeof_typeof(transitionName) === 'object') {
|
|
18242
18199
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
18243
18200
|
return match[1].toUpperCase();
|
|
18244
18201
|
});
|
|
@@ -18531,13 +18488,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
18531
18488
|
|
|
18532
18489
|
switch (status) {
|
|
18533
18490
|
case 'appear':
|
|
18534
|
-
return _ref2 = {},
|
|
18491
|
+
return _ref2 = {}, defineProperty_defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), defineProperty_defineProperty(_ref2, STEP_START, onAppearStart), defineProperty_defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
18535
18492
|
|
|
18536
18493
|
case 'enter':
|
|
18537
|
-
return _ref3 = {},
|
|
18494
|
+
return _ref3 = {}, defineProperty_defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), defineProperty_defineProperty(_ref3, STEP_START, onEnterStart), defineProperty_defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
18538
18495
|
|
|
18539
18496
|
case 'leave':
|
|
18540
|
-
return _ref4 = {},
|
|
18497
|
+
return _ref4 = {}, defineProperty_defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), defineProperty_defineProperty(_ref4, STEP_START, onLeaveStart), defineProperty_defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
18541
18498
|
|
|
18542
18499
|
default:
|
|
18543
18500
|
return {};
|
|
@@ -18645,7 +18602,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
18645
18602
|
var mergedStyle = style;
|
|
18646
18603
|
|
|
18647
18604
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
18648
|
-
mergedStyle =
|
|
18605
|
+
mergedStyle = objectSpread2_objectSpread2({
|
|
18649
18606
|
transition: 'none'
|
|
18650
18607
|
}, mergedStyle);
|
|
18651
18608
|
}
|
|
@@ -18660,17 +18617,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
18660
18617
|
|
|
18661
18618
|
|
|
18662
18619
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
18663
|
-
|
|
18620
|
+
inherits_inherits(DomWrapper, _React$Component);
|
|
18664
18621
|
|
|
18665
|
-
var _super =
|
|
18622
|
+
var _super = createSuper_createSuper(DomWrapper);
|
|
18666
18623
|
|
|
18667
18624
|
function DomWrapper() {
|
|
18668
|
-
|
|
18625
|
+
classCallCheck_classCallCheck(this, DomWrapper);
|
|
18669
18626
|
|
|
18670
18627
|
return _super.apply(this, arguments);
|
|
18671
18628
|
}
|
|
18672
18629
|
|
|
18673
|
-
|
|
18630
|
+
createClass_createClass(DomWrapper, [{
|
|
18674
18631
|
key: "render",
|
|
18675
18632
|
value: function render() {
|
|
18676
18633
|
return this.props.children;
|
|
@@ -18706,7 +18663,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
18706
18663
|
function genCSSMotion(config) {
|
|
18707
18664
|
var transitionSupport = config;
|
|
18708
18665
|
|
|
18709
|
-
if (
|
|
18666
|
+
if (esm_typeof_typeof(config) === 'object') {
|
|
18710
18667
|
transitionSupport = config.transitionSupport;
|
|
18711
18668
|
}
|
|
18712
18669
|
|
|
@@ -18764,7 +18721,7 @@ function genCSSMotion(config) {
|
|
|
18764
18721
|
|
|
18765
18722
|
var motionChildren;
|
|
18766
18723
|
|
|
18767
|
-
var mergedProps =
|
|
18724
|
+
var mergedProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, eventProps), {}, {
|
|
18768
18725
|
visible: visible
|
|
18769
18726
|
});
|
|
18770
18727
|
|
|
@@ -18774,13 +18731,13 @@ function genCSSMotion(config) {
|
|
|
18774
18731
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
18775
18732
|
// Stable children
|
|
18776
18733
|
if (mergedVisible) {
|
|
18777
|
-
motionChildren = children(
|
|
18734
|
+
motionChildren = children(objectSpread2_objectSpread2({}, mergedProps), setNodeRef);
|
|
18778
18735
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
18779
|
-
motionChildren = children(
|
|
18736
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
18780
18737
|
className: leavedClassName
|
|
18781
18738
|
}), setNodeRef);
|
|
18782
18739
|
} else if (forceRender) {
|
|
18783
|
-
motionChildren = children(
|
|
18740
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
18784
18741
|
style: {
|
|
18785
18742
|
display: 'none'
|
|
18786
18743
|
}
|
|
@@ -18802,8 +18759,8 @@ function genCSSMotion(config) {
|
|
|
18802
18759
|
statusSuffix = 'start';
|
|
18803
18760
|
}
|
|
18804
18761
|
|
|
18805
|
-
motionChildren = children(
|
|
18806
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
18762
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
18763
|
+
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {}, defineProperty_defineProperty(_classNames, getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix)), statusSuffix), defineProperty_defineProperty(_classNames, motionName, typeof motionName === 'string'), _classNames)),
|
|
18807
18764
|
style: statusStyle
|
|
18808
18765
|
}), setNodeRef);
|
|
18809
18766
|
}
|
|
@@ -18816,6 +18773,41 @@ function genCSSMotion(config) {
|
|
|
18816
18773
|
return CSSMotion;
|
|
18817
18774
|
}
|
|
18818
18775
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
18776
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
18777
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
18778
|
+
if (source == null) return {};
|
|
18779
|
+
var target = {};
|
|
18780
|
+
var sourceKeys = Object.keys(source);
|
|
18781
|
+
var key, i;
|
|
18782
|
+
|
|
18783
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
18784
|
+
key = sourceKeys[i];
|
|
18785
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
18786
|
+
target[key] = source[key];
|
|
18787
|
+
}
|
|
18788
|
+
|
|
18789
|
+
return target;
|
|
18790
|
+
}
|
|
18791
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
18792
|
+
|
|
18793
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
18794
|
+
if (source == null) return {};
|
|
18795
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
18796
|
+
var key, i;
|
|
18797
|
+
|
|
18798
|
+
if (Object.getOwnPropertySymbols) {
|
|
18799
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
18800
|
+
|
|
18801
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
18802
|
+
key = sourceSymbolKeys[i];
|
|
18803
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
18804
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
18805
|
+
target[key] = source[key];
|
|
18806
|
+
}
|
|
18807
|
+
}
|
|
18808
|
+
|
|
18809
|
+
return target;
|
|
18810
|
+
}
|
|
18819
18811
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
18820
18812
|
|
|
18821
18813
|
|
|
@@ -18826,7 +18818,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
18826
18818
|
function wrapKeyToObject(key) {
|
|
18827
18819
|
var keyObj;
|
|
18828
18820
|
|
|
18829
|
-
if (key &&
|
|
18821
|
+
if (key && esm_typeof_typeof(key) === 'object' && 'key' in key) {
|
|
18830
18822
|
keyObj = key;
|
|
18831
18823
|
} else {
|
|
18832
18824
|
keyObj = {
|
|
@@ -18834,7 +18826,7 @@ function wrapKeyToObject(key) {
|
|
|
18834
18826
|
};
|
|
18835
18827
|
}
|
|
18836
18828
|
|
|
18837
|
-
return
|
|
18829
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
18838
18830
|
key: String(keyObj.key)
|
|
18839
18831
|
});
|
|
18840
18832
|
}
|
|
@@ -18861,14 +18853,14 @@ function diffKeys() {
|
|
|
18861
18853
|
// New added keys should add before current key
|
|
18862
18854
|
if (currentIndex < i) {
|
|
18863
18855
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
18864
|
-
return
|
|
18856
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
18865
18857
|
status: STATUS_ADD
|
|
18866
18858
|
});
|
|
18867
18859
|
}));
|
|
18868
18860
|
currentIndex = i;
|
|
18869
18861
|
}
|
|
18870
18862
|
|
|
18871
|
-
list.push(
|
|
18863
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentKeyObj), {}, {
|
|
18872
18864
|
status: STATUS_KEEP
|
|
18873
18865
|
}));
|
|
18874
18866
|
currentIndex += 1;
|
|
@@ -18879,7 +18871,7 @@ function diffKeys() {
|
|
|
18879
18871
|
|
|
18880
18872
|
|
|
18881
18873
|
if (!hit) {
|
|
18882
|
-
list.push(
|
|
18874
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
18883
18875
|
status: STATUS_REMOVE
|
|
18884
18876
|
}));
|
|
18885
18877
|
}
|
|
@@ -18887,7 +18879,7 @@ function diffKeys() {
|
|
|
18887
18879
|
|
|
18888
18880
|
if (currentIndex < currentLen) {
|
|
18889
18881
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
18890
|
-
return
|
|
18882
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
18891
18883
|
status: STATUS_ADD
|
|
18892
18884
|
});
|
|
18893
18885
|
}));
|
|
@@ -18948,14 +18940,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
18948
18940
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
18949
18941
|
|
|
18950
18942
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
18951
|
-
|
|
18943
|
+
inherits_inherits(CSSMotionList, _React$Component);
|
|
18952
18944
|
|
|
18953
|
-
var _super =
|
|
18945
|
+
var _super = createSuper_createSuper(CSSMotionList);
|
|
18954
18946
|
|
|
18955
18947
|
function CSSMotionList() {
|
|
18956
18948
|
var _this;
|
|
18957
18949
|
|
|
18958
|
-
|
|
18950
|
+
classCallCheck_classCallCheck(this, CSSMotionList);
|
|
18959
18951
|
|
|
18960
18952
|
_this = _super.apply(this, arguments);
|
|
18961
18953
|
_this.state = {
|
|
@@ -18968,7 +18960,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
18968
18960
|
return {
|
|
18969
18961
|
keyEntities: keyEntities.map(function (entity) {
|
|
18970
18962
|
if (entity.key !== removeKey) return entity;
|
|
18971
|
-
return
|
|
18963
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, entity), {}, {
|
|
18972
18964
|
status: STATUS_REMOVED
|
|
18973
18965
|
});
|
|
18974
18966
|
})
|
|
@@ -18979,7 +18971,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
18979
18971
|
return _this;
|
|
18980
18972
|
}
|
|
18981
18973
|
|
|
18982
|
-
|
|
18974
|
+
createClass_createClass(CSSMotionList, [{
|
|
18983
18975
|
key: "render",
|
|
18984
18976
|
value: function render() {
|
|
18985
18977
|
var _this2 = this;
|
|
@@ -18990,7 +18982,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
18990
18982
|
component = _this$props.component,
|
|
18991
18983
|
children = _this$props.children,
|
|
18992
18984
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
18993
|
-
restProps =
|
|
18985
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
18994
18986
|
|
|
18995
18987
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
18996
18988
|
var motionProps = {};
|
|
@@ -19001,10 +18993,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
19001
18993
|
delete restProps.keys;
|
|
19002
18994
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
19003
18995
|
var status = _ref2.status,
|
|
19004
|
-
eventProps =
|
|
18996
|
+
eventProps = objectWithoutProperties_objectWithoutProperties(_ref2, ["status"]);
|
|
19005
18997
|
|
|
19006
18998
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
19007
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
18999
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, esm_extends_extends({}, motionProps, {
|
|
19008
19000
|
key: eventProps.key,
|
|
19009
19001
|
visible: visible,
|
|
19010
19002
|
eventProps: eventProps,
|
|
@@ -19204,7 +19196,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
19204
19196
|
}); // ============================= Style ==============================
|
|
19205
19197
|
|
|
19206
19198
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
19207
|
-
_React$useState2 =
|
|
19199
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
19208
19200
|
transformOrigin = _React$useState2[0],
|
|
19209
19201
|
setTransformOrigin = _React$useState2[1];
|
|
19210
19202
|
|
|
@@ -19350,7 +19342,7 @@ function Dialog(props) {
|
|
|
19350
19342
|
var contentRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
19351
19343
|
|
|
19352
19344
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(visible),
|
|
19353
|
-
_React$useState2 =
|
|
19345
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
19354
19346
|
animatedVisible = _React$useState2[0],
|
|
19355
19347
|
setAnimatedVisible = _React$useState2[1]; // ========================== Init ==========================
|
|
19356
19348
|
|
|
@@ -19537,7 +19529,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
19537
19529
|
}, [visible]); // 渲染在当前 dom 里;
|
|
19538
19530
|
|
|
19539
19531
|
if (getContainer === false) {
|
|
19540
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
19532
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
19541
19533
|
getOpenCount: function getOpenCount() {
|
|
19542
19534
|
return 2;
|
|
19543
19535
|
} // 不对 body 做任何操作。。
|
|
@@ -19555,7 +19547,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
19555
19547
|
forceRender: forceRender,
|
|
19556
19548
|
getContainer: getContainer
|
|
19557
19549
|
}, function (childProps) {
|
|
19558
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
19550
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
19559
19551
|
destroyOnClose: destroyOnClose,
|
|
19560
19552
|
afterClose: function afterClose() {
|
|
19561
19553
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -19590,8 +19582,8 @@ function getConfirmLocale() {
|
|
|
19590
19582
|
|
|
19591
19583
|
|
|
19592
19584
|
|
|
19593
|
-
var UnreachableException = /*#__PURE__*/
|
|
19594
|
-
|
|
19585
|
+
var UnreachableException = /*#__PURE__*/createClass_createClass(function UnreachableException(value) {
|
|
19586
|
+
classCallCheck_classCallCheck(this, UnreachableException);
|
|
19595
19587
|
|
|
19596
19588
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
19597
19589
|
});
|
|
@@ -19654,8 +19646,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
19654
19646
|
console.warn(new UnreachableException(size).error);
|
|
19655
19647
|
}
|
|
19656
19648
|
|
|
19657
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
19658
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
19649
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
19650
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, others, {
|
|
19659
19651
|
className: classes
|
|
19660
19652
|
}));
|
|
19661
19653
|
});
|
|
@@ -19726,14 +19718,14 @@ function isNotGrey(color) {
|
|
|
19726
19718
|
}
|
|
19727
19719
|
|
|
19728
19720
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
19729
|
-
|
|
19721
|
+
inherits_inherits(Wave, _React$Component);
|
|
19730
19722
|
|
|
19731
|
-
var _super =
|
|
19723
|
+
var _super = createSuper_createSuper(Wave);
|
|
19732
19724
|
|
|
19733
19725
|
function Wave() {
|
|
19734
19726
|
var _this;
|
|
19735
19727
|
|
|
19736
|
-
|
|
19728
|
+
classCallCheck_classCallCheck(this, Wave);
|
|
19737
19729
|
|
|
19738
19730
|
_this = _super.apply(this, arguments);
|
|
19739
19731
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -19753,7 +19745,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
19753
19745
|
|
|
19754
19746
|
_this.extraNode = document.createElement('div');
|
|
19755
19747
|
|
|
19756
|
-
var _assertThisInitialize =
|
|
19748
|
+
var _assertThisInitialize = assertThisInitialized_assertThisInitialized(_this),
|
|
19757
19749
|
extraNode = _assertThisInitialize.extraNode;
|
|
19758
19750
|
|
|
19759
19751
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -19860,7 +19852,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
19860
19852
|
return _this;
|
|
19861
19853
|
}
|
|
19862
19854
|
|
|
19863
|
-
|
|
19855
|
+
createClass_createClass(Wave, [{
|
|
19864
19856
|
key: "componentDidMount",
|
|
19865
19857
|
value: function componentDidMount() {
|
|
19866
19858
|
var node = this.containerRef.current;
|
|
@@ -20087,7 +20079,7 @@ function spaceChildren(children, needInserted) {
|
|
|
20087
20079
|
var isPrevChildPure = false;
|
|
20088
20080
|
var childList = [];
|
|
20089
20081
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
20090
|
-
var type =
|
|
20082
|
+
var type = esm_typeof_typeof(child);
|
|
20091
20083
|
|
|
20092
20084
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
20093
20085
|
|
|
@@ -20187,7 +20179,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
20187
20179
|
}; // =============== Update Loading ===============
|
|
20188
20180
|
|
|
20189
20181
|
|
|
20190
|
-
var loadingOrDelay =
|
|
20182
|
+
var loadingOrDelay = esm_typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
20191
20183
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
20192
20184
|
clearTimeout(delayTimeoutRef.current);
|
|
20193
20185
|
|
|
@@ -20227,7 +20219,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
20227
20219
|
var sizeFullname = customizeSize || size;
|
|
20228
20220
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
20229
20221
|
var iconType = innerLoading ? 'loading' : icon;
|
|
20230
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
20222
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(type), type), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(shape), shape !== 'default' && shape), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-icon-only"), !children && children !== 0 && !!iconType), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-background-ghost"), ghost && !isUnborderedButtonType(type)), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-loading"), innerLoading), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-two-chinese-chars"), hasTwoCNChar && autoInsertSpace), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-block"), block), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-dangerous"), !!danger), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
20231
20223
|
var iconNode;
|
|
20232
20224
|
|
|
20233
20225
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -20246,14 +20238,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
20246
20238
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
20247
20239
|
|
|
20248
20240
|
if (linkButtonRestProps.href !== undefined) {
|
|
20249
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
20241
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", esm_extends_extends({}, linkButtonRestProps, {
|
|
20250
20242
|
className: classes,
|
|
20251
20243
|
onClick: handleClick,
|
|
20252
20244
|
ref: buttonRef
|
|
20253
20245
|
}), iconNode, kids);
|
|
20254
20246
|
}
|
|
20255
20247
|
|
|
20256
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
20248
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", esm_extends_extends({}, rest, {
|
|
20257
20249
|
type: htmlType,
|
|
20258
20250
|
className: classes,
|
|
20259
20251
|
onClick: handleClick,
|
|
@@ -20431,9 +20423,9 @@ var Modal = function Modal(props) {
|
|
|
20431
20423
|
okType = props.okType,
|
|
20432
20424
|
cancelText = props.cancelText,
|
|
20433
20425
|
confirmLoading = props.confirmLoading;
|
|
20434
|
-
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,
|
|
20426
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, esm_extends_extends({
|
|
20435
20427
|
onClick: handleCancel
|
|
20436
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
20428
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, esm_extends_extends({}, convertLegacyProps(okType), {
|
|
20437
20429
|
loading: confirmLoading,
|
|
20438
20430
|
onClick: handleOk
|
|
20439
20431
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -20468,8 +20460,8 @@ var Modal = function Modal(props) {
|
|
|
20468
20460
|
type: "close",
|
|
20469
20461
|
className: "".concat(prefixCls, "-close-icon")
|
|
20470
20462
|
}));
|
|
20471
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
20472
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
20463
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
20464
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, esm_extends_extends({}, restProps, {
|
|
20473
20465
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
20474
20466
|
prefixCls: prefixCls,
|
|
20475
20467
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -20595,7 +20587,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
20595
20587
|
children = props.children,
|
|
20596
20588
|
prefixCls = props.prefixCls,
|
|
20597
20589
|
buttonProps = props.buttonProps;
|
|
20598
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
20590
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, esm_extends_extends({}, convertLegacyProps(type), {
|
|
20599
20591
|
onClick: onClick,
|
|
20600
20592
|
loading: loading,
|
|
20601
20593
|
prefixCls: prefixCls
|
|
@@ -22112,7 +22104,7 @@ function get(entity, path) {
|
|
|
22112
22104
|
|
|
22113
22105
|
|
|
22114
22106
|
function _toArray(arr) {
|
|
22115
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
22107
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
22116
22108
|
}
|
|
22117
22109
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
22118
22110
|
|
|
@@ -22134,9 +22126,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
22134
22126
|
if (!entity && typeof path === 'number') {
|
|
22135
22127
|
clone = [];
|
|
22136
22128
|
} else if (Array.isArray(entity)) {
|
|
22137
|
-
clone =
|
|
22129
|
+
clone = toConsumableArray_toConsumableArray(entity);
|
|
22138
22130
|
} else {
|
|
22139
|
-
clone =
|
|
22131
|
+
clone = objectSpread2_objectSpread2({}, entity);
|
|
22140
22132
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
22141
22133
|
|
|
22142
22134
|
|
|
@@ -22200,7 +22192,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
22200
22192
|
}
|
|
22201
22193
|
|
|
22202
22194
|
function isObject(obj) {
|
|
22203
|
-
return
|
|
22195
|
+
return esm_typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
22204
22196
|
}
|
|
22205
22197
|
/**
|
|
22206
22198
|
* Copy values into store and return a new values object
|
|
@@ -22209,7 +22201,7 @@ function isObject(obj) {
|
|
|
22209
22201
|
|
|
22210
22202
|
|
|
22211
22203
|
function internalSetValues(store, values) {
|
|
22212
|
-
var newStore = Array.isArray(store) ?
|
|
22204
|
+
var newStore = Array.isArray(store) ? toConsumableArray_toConsumableArray(store) : objectSpread2_objectSpread2({}, store);
|
|
22213
22205
|
|
|
22214
22206
|
if (!values) {
|
|
22215
22207
|
return newStore;
|
|
@@ -22252,14 +22244,14 @@ function isSimilar(source, target) {
|
|
|
22252
22244
|
return false;
|
|
22253
22245
|
}
|
|
22254
22246
|
|
|
22255
|
-
if (!source || !target ||
|
|
22247
|
+
if (!source || !target || esm_typeof_typeof(source) !== 'object' || esm_typeof_typeof(target) !== 'object') {
|
|
22256
22248
|
return false;
|
|
22257
22249
|
}
|
|
22258
22250
|
|
|
22259
22251
|
var sourceKeys = Object.keys(source);
|
|
22260
22252
|
var targetKeys = Object.keys(target);
|
|
22261
|
-
var keys = new Set([].concat(
|
|
22262
|
-
return
|
|
22253
|
+
var keys = new Set([].concat(toConsumableArray_toConsumableArray(sourceKeys), toConsumableArray_toConsumableArray(targetKeys)));
|
|
22254
|
+
return toConsumableArray_toConsumableArray(keys).every(function (key) {
|
|
22263
22255
|
var sourceValue = source[key];
|
|
22264
22256
|
var targetValue = target[key];
|
|
22265
22257
|
|
|
@@ -22302,12 +22294,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
22302
22294
|
|
|
22303
22295
|
if (diff > 0) {
|
|
22304
22296
|
// move left
|
|
22305
|
-
return [].concat(
|
|
22297
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, toIndex)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
22306
22298
|
}
|
|
22307
22299
|
|
|
22308
22300
|
if (diff < 0) {
|
|
22309
22301
|
// move right
|
|
22310
|
-
return [].concat(
|
|
22302
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex + 1, length)));
|
|
22311
22303
|
}
|
|
22312
22304
|
|
|
22313
22305
|
return array;
|
|
@@ -22347,13 +22339,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
22347
22339
|
|
|
22348
22340
|
|
|
22349
22341
|
function _validateRule() {
|
|
22350
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
22342
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
22351
22343
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
22352
|
-
return
|
|
22344
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
22353
22345
|
while (1) {
|
|
22354
22346
|
switch (_context2.prev = _context2.next) {
|
|
22355
22347
|
case 0:
|
|
22356
|
-
cloneRule =
|
|
22348
|
+
cloneRule = objectSpread2_objectSpread2({}, rule); // Bug of `async-validator`
|
|
22357
22349
|
// https://github.com/react-component/field-form/issues/316
|
|
22358
22350
|
// https://github.com/react-component/field-form/issues/313
|
|
22359
22351
|
|
|
@@ -22366,13 +22358,13 @@ function _validateRule() {
|
|
|
22366
22358
|
delete cloneRule.defaultField;
|
|
22367
22359
|
}
|
|
22368
22360
|
|
|
22369
|
-
validator = new AsyncValidator(
|
|
22361
|
+
validator = new AsyncValidator(defineProperty_defineProperty({}, name, [cloneRule]));
|
|
22370
22362
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
22371
22363
|
validator.messages(messages);
|
|
22372
22364
|
result = [];
|
|
22373
22365
|
_context2.prev = 8;
|
|
22374
22366
|
_context2.next = 11;
|
|
22375
|
-
return Promise.resolve(validator.validate(
|
|
22367
|
+
return Promise.resolve(validator.validate(defineProperty_defineProperty({}, name, value), objectSpread2_objectSpread2({}, options)));
|
|
22376
22368
|
|
|
22377
22369
|
case 11:
|
|
22378
22370
|
_context2.next = 16;
|
|
@@ -22412,12 +22404,12 @@ function _validateRule() {
|
|
|
22412
22404
|
case 19:
|
|
22413
22405
|
subResults = _context2.sent;
|
|
22414
22406
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
22415
|
-
return [].concat(
|
|
22407
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), toConsumableArray_toConsumableArray(errors));
|
|
22416
22408
|
}, []));
|
|
22417
22409
|
|
|
22418
22410
|
case 21:
|
|
22419
22411
|
// Replace message with variables
|
|
22420
|
-
kv =
|
|
22412
|
+
kv = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rule), {}, {
|
|
22421
22413
|
name: name,
|
|
22422
22414
|
enum: (rule.enum || []).join(', ')
|
|
22423
22415
|
}, messageVariables);
|
|
@@ -22446,7 +22438,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
22446
22438
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
22447
22439
|
var originValidatorFunc = currentRule.validator;
|
|
22448
22440
|
|
|
22449
|
-
var cloneRule =
|
|
22441
|
+
var cloneRule = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentRule), {}, {
|
|
22450
22442
|
ruleIndex: ruleIndex
|
|
22451
22443
|
}); // Replace validator if needed
|
|
22452
22444
|
|
|
@@ -22514,9 +22506,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
22514
22506
|
if (validateFirst === true) {
|
|
22515
22507
|
// >>>>> Validate by serialization
|
|
22516
22508
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
22517
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
22509
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(resolve, reject) {
|
|
22518
22510
|
var i, rule, errors;
|
|
22519
|
-
return
|
|
22511
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
22520
22512
|
while (1) {
|
|
22521
22513
|
switch (_context.prev = _context.next) {
|
|
22522
22514
|
case 0:
|
|
@@ -22595,15 +22587,15 @@ function finishOnAllFailed(_x8) {
|
|
|
22595
22587
|
}
|
|
22596
22588
|
|
|
22597
22589
|
function _finishOnAllFailed() {
|
|
22598
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
22599
|
-
return
|
|
22590
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(rulePromises) {
|
|
22591
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
22600
22592
|
while (1) {
|
|
22601
22593
|
switch (_context3.prev = _context3.next) {
|
|
22602
22594
|
case 0:
|
|
22603
22595
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
22604
22596
|
var _ref5;
|
|
22605
22597
|
|
|
22606
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
22598
|
+
var errors = (_ref5 = []).concat.apply(_ref5, toConsumableArray_toConsumableArray(errorsList));
|
|
22607
22599
|
|
|
22608
22600
|
return errors;
|
|
22609
22601
|
}));
|
|
@@ -22623,9 +22615,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
22623
22615
|
}
|
|
22624
22616
|
|
|
22625
22617
|
function _finishOnFirstFailed() {
|
|
22626
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
22618
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee4(rulePromises) {
|
|
22627
22619
|
var count;
|
|
22628
|
-
return
|
|
22620
|
+
return runtime_regenerator_default().wrap(function _callee4$(_context4) {
|
|
22629
22621
|
while (1) {
|
|
22630
22622
|
switch (_context4.prev = _context4.next) {
|
|
22631
22623
|
case 0:
|
|
@@ -22688,9 +22680,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
22688
22680
|
|
|
22689
22681
|
|
|
22690
22682
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
22691
|
-
|
|
22683
|
+
inherits_inherits(Field, _React$Component);
|
|
22692
22684
|
|
|
22693
|
-
var _super =
|
|
22685
|
+
var _super = createSuper_createSuper(Field);
|
|
22694
22686
|
|
|
22695
22687
|
/**
|
|
22696
22688
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -22706,7 +22698,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
22706
22698
|
function Field(props) {
|
|
22707
22699
|
var _this;
|
|
22708
22700
|
|
|
22709
|
-
|
|
22701
|
+
classCallCheck_classCallCheck(this, Field);
|
|
22710
22702
|
|
|
22711
22703
|
_this = _super.call(this, props); // Register on init
|
|
22712
22704
|
|
|
@@ -22741,7 +22733,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
22741
22733
|
fieldContext = _this$props2.fieldContext;
|
|
22742
22734
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
22743
22735
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
22744
|
-
return name !== undefined ? [].concat(
|
|
22736
|
+
return name !== undefined ? [].concat(toConsumableArray_toConsumableArray(prefixName), toConsumableArray_toConsumableArray(name)) : [];
|
|
22745
22737
|
};
|
|
22746
22738
|
|
|
22747
22739
|
_this.getRules = function () {
|
|
@@ -22774,7 +22766,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
22774
22766
|
|
|
22775
22767
|
_this.triggerMetaEvent = function (destroy) {
|
|
22776
22768
|
var onMetaChange = _this.props.onMetaChange;
|
|
22777
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
22769
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getMeta()), {}, {
|
|
22778
22770
|
destroy: destroy
|
|
22779
22771
|
}));
|
|
22780
22772
|
};
|
|
@@ -22963,9 +22955,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
22963
22955
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
22964
22956
|
|
|
22965
22957
|
if (warningOnly) {
|
|
22966
|
-
nextWarnings.push.apply(nextWarnings,
|
|
22958
|
+
nextWarnings.push.apply(nextWarnings, toConsumableArray_toConsumableArray(errors));
|
|
22967
22959
|
} else {
|
|
22968
|
-
nextErrors.push.apply(nextErrors,
|
|
22960
|
+
nextErrors.push.apply(nextErrors, toConsumableArray_toConsumableArray(errors));
|
|
22969
22961
|
}
|
|
22970
22962
|
});
|
|
22971
22963
|
_this.errors = nextErrors;
|
|
@@ -23056,7 +23048,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
23056
23048
|
if (typeof children === 'function') {
|
|
23057
23049
|
var meta = _this.getMeta();
|
|
23058
23050
|
|
|
23059
|
-
return
|
|
23051
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
23060
23052
|
isFunction: true
|
|
23061
23053
|
});
|
|
23062
23054
|
} // Filed element only
|
|
@@ -23108,13 +23100,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
23108
23100
|
var value = _this.getValue();
|
|
23109
23101
|
|
|
23110
23102
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
23111
|
-
return
|
|
23103
|
+
return defineProperty_defineProperty({}, valuePropName, val);
|
|
23112
23104
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23113
23105
|
|
|
23114
23106
|
|
|
23115
23107
|
var originTriggerFunc = childProps[trigger];
|
|
23116
23108
|
|
|
23117
|
-
var control =
|
|
23109
|
+
var control = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
23118
23110
|
|
|
23119
23111
|
|
|
23120
23112
|
control[trigger] = function () {
|
|
@@ -23185,13 +23177,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
23185
23177
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
23186
23178
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
23187
23179
|
|
|
23188
|
-
initEntityValue(
|
|
23180
|
+
initEntityValue(assertThisInitialized_assertThisInitialized(_this));
|
|
23189
23181
|
}
|
|
23190
23182
|
|
|
23191
23183
|
return _this;
|
|
23192
23184
|
}
|
|
23193
23185
|
|
|
23194
|
-
|
|
23186
|
+
createClass_createClass(Field, [{
|
|
23195
23187
|
key: "componentDidMount",
|
|
23196
23188
|
value: function componentDidMount() {
|
|
23197
23189
|
var _this$props7 = this.props,
|
|
@@ -23265,7 +23257,7 @@ Field.defaultProps = {
|
|
|
23265
23257
|
|
|
23266
23258
|
function WrapperField(_ref5) {
|
|
23267
23259
|
var name = _ref5.name,
|
|
23268
|
-
restProps =
|
|
23260
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref5, Field_excluded);
|
|
23269
23261
|
|
|
23270
23262
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
23271
23263
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -23279,7 +23271,7 @@ function WrapperField(_ref5) {
|
|
|
23279
23271
|
|
|
23280
23272
|
if (false) {}
|
|
23281
23273
|
|
|
23282
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
23274
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, esm_extends_extends({
|
|
23283
23275
|
key: key,
|
|
23284
23276
|
name: namePath
|
|
23285
23277
|
}, restProps, {
|
|
@@ -23316,7 +23308,7 @@ var List = function List(_ref) {
|
|
|
23316
23308
|
}
|
|
23317
23309
|
|
|
23318
23310
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
23319
|
-
var prefixName = [].concat(
|
|
23311
|
+
var prefixName = [].concat(toConsumableArray_toConsumableArray(parentPrefixName), toConsumableArray_toConsumableArray(getNamePath(name)));
|
|
23320
23312
|
|
|
23321
23313
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
23322
23314
|
var source = _ref2.source;
|
|
@@ -23329,7 +23321,7 @@ var List = function List(_ref) {
|
|
|
23329
23321
|
};
|
|
23330
23322
|
|
|
23331
23323
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
23332
|
-
value:
|
|
23324
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, context), {}, {
|
|
23333
23325
|
prefixName: prefixName
|
|
23334
23326
|
})
|
|
23335
23327
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -23360,13 +23352,13 @@ var List = function List(_ref) {
|
|
|
23360
23352
|
var newValue = getNewValue();
|
|
23361
23353
|
|
|
23362
23354
|
if (index >= 0 && index <= newValue.length) {
|
|
23363
|
-
keyManager.keys = [].concat(
|
|
23364
|
-
onChange([].concat(
|
|
23355
|
+
keyManager.keys = [].concat(toConsumableArray_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], toConsumableArray_toConsumableArray(keyManager.keys.slice(index)));
|
|
23356
|
+
onChange([].concat(toConsumableArray_toConsumableArray(newValue.slice(0, index)), [defaultValue], toConsumableArray_toConsumableArray(newValue.slice(index))));
|
|
23365
23357
|
} else {
|
|
23366
23358
|
if (false) {}
|
|
23367
23359
|
|
|
23368
|
-
keyManager.keys = [].concat(
|
|
23369
|
-
onChange([].concat(
|
|
23360
|
+
keyManager.keys = [].concat(toConsumableArray_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
23361
|
+
onChange([].concat(toConsumableArray_toConsumableArray(newValue), [defaultValue]));
|
|
23370
23362
|
}
|
|
23371
23363
|
|
|
23372
23364
|
keyManager.id += 1;
|
|
@@ -23475,7 +23467,7 @@ var SPLIT = '__@field_split__';
|
|
|
23475
23467
|
|
|
23476
23468
|
function normalize(namePath) {
|
|
23477
23469
|
return namePath.map(function (cell) {
|
|
23478
|
-
return "".concat(
|
|
23470
|
+
return "".concat(esm_typeof_typeof(cell), ":").concat(cell);
|
|
23479
23471
|
}) // Magic split
|
|
23480
23472
|
.join(SPLIT);
|
|
23481
23473
|
}
|
|
@@ -23486,12 +23478,12 @@ function normalize(namePath) {
|
|
|
23486
23478
|
|
|
23487
23479
|
var NameMap = /*#__PURE__*/function () {
|
|
23488
23480
|
function NameMap() {
|
|
23489
|
-
|
|
23481
|
+
classCallCheck_classCallCheck(this, NameMap);
|
|
23490
23482
|
|
|
23491
23483
|
this.kvs = new Map();
|
|
23492
23484
|
}
|
|
23493
23485
|
|
|
23494
|
-
|
|
23486
|
+
createClass_createClass(NameMap, [{
|
|
23495
23487
|
key: "set",
|
|
23496
23488
|
value: function set(key, value) {
|
|
23497
23489
|
this.kvs.set(normalize(key), value);
|
|
@@ -23522,7 +23514,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
23522
23514
|
}, {
|
|
23523
23515
|
key: "map",
|
|
23524
23516
|
value: function map(callback) {
|
|
23525
|
-
return
|
|
23517
|
+
return toConsumableArray_toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
23526
23518
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
23527
23519
|
key = _ref2[0],
|
|
23528
23520
|
value = _ref2[1];
|
|
@@ -23576,7 +23568,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
23576
23568
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
23577
23569
|
var _this = this;
|
|
23578
23570
|
|
|
23579
|
-
|
|
23571
|
+
classCallCheck_classCallCheck(this, FormStore);
|
|
23580
23572
|
|
|
23581
23573
|
this.formHooked = false;
|
|
23582
23574
|
this.forceRootUpdate = void 0;
|
|
@@ -23836,7 +23828,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
23836
23828
|
return fieldNamePath[i] === nameUnit;
|
|
23837
23829
|
})) {
|
|
23838
23830
|
map.update(shortNamePath, function (list) {
|
|
23839
|
-
return [].concat(
|
|
23831
|
+
return [].concat(toConsumableArray_toConsumableArray(list), [field]);
|
|
23840
23832
|
});
|
|
23841
23833
|
}
|
|
23842
23834
|
});
|
|
@@ -23927,7 +23919,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
23927
23919
|
|
|
23928
23920
|
|
|
23929
23921
|
if (!info.skipExist || originValue === undefined) {
|
|
23930
|
-
_this.store = setValue(_this.store, namePath,
|
|
23922
|
+
_this.store = setValue(_this.store, namePath, toConsumableArray_toConsumableArray(records)[0].value);
|
|
23931
23923
|
}
|
|
23932
23924
|
}
|
|
23933
23925
|
}
|
|
@@ -23947,7 +23939,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
23947
23939
|
if (records) {
|
|
23948
23940
|
var _requiredFieldEntitie;
|
|
23949
23941
|
|
|
23950
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
23942
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, toConsumableArray_toConsumableArray(toConsumableArray_toConsumableArray(records).map(function (r) {
|
|
23951
23943
|
return r.entity;
|
|
23952
23944
|
})));
|
|
23953
23945
|
}
|
|
@@ -24000,7 +23992,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
24000
23992
|
fields.forEach(function (fieldData) {
|
|
24001
23993
|
var name = fieldData.name,
|
|
24002
23994
|
errors = fieldData.errors,
|
|
24003
|
-
data =
|
|
23995
|
+
data = objectWithoutProperties_objectWithoutProperties(fieldData, useForm_excluded);
|
|
24004
23996
|
|
|
24005
23997
|
var namePath = getNamePath(name); // Value
|
|
24006
23998
|
|
|
@@ -24022,7 +24014,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
24022
24014
|
var namePath = field.getNamePath();
|
|
24023
24015
|
var meta = field.getMeta();
|
|
24024
24016
|
|
|
24025
|
-
var fieldData =
|
|
24017
|
+
var fieldData = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, meta), {}, {
|
|
24026
24018
|
name: namePath,
|
|
24027
24019
|
value: _this.getFieldValue(namePath)
|
|
24028
24020
|
});
|
|
@@ -24121,7 +24113,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
24121
24113
|
|
|
24122
24114
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
24123
24115
|
if (_this.subscribable) {
|
|
24124
|
-
var mergedInfo =
|
|
24116
|
+
var mergedInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
24125
24117
|
store: _this.getFieldsValue(true)
|
|
24126
24118
|
});
|
|
24127
24119
|
|
|
@@ -24154,7 +24146,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
24154
24146
|
|
|
24155
24147
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
24156
24148
|
type: 'dependenciesUpdate',
|
|
24157
|
-
relatedFields: [namePath].concat(
|
|
24149
|
+
relatedFields: [namePath].concat(toConsumableArray_toConsumableArray(childrenFields))
|
|
24158
24150
|
}); // trigger callback function
|
|
24159
24151
|
|
|
24160
24152
|
|
|
@@ -24165,7 +24157,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
24165
24157
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
24166
24158
|
}
|
|
24167
24159
|
|
|
24168
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
24160
|
+
_this.triggerOnFieldsChange([namePath].concat(toConsumableArray_toConsumableArray(childrenFields)));
|
|
24169
24161
|
};
|
|
24170
24162
|
|
|
24171
24163
|
this.setFieldsValue = function (store) {
|
|
@@ -24293,8 +24285,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
24293
24285
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
24294
24286
|
|
|
24295
24287
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
24296
|
-
var promise = field.validateRules(
|
|
24297
|
-
validateMessages:
|
|
24288
|
+
var promise = field.validateRules(objectSpread2_objectSpread2({
|
|
24289
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
24298
24290
|
}, options)); // Wrap promise with field
|
|
24299
24291
|
|
|
24300
24292
|
promiseList.push(promise.then(function () {
|
|
@@ -24311,9 +24303,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
24311
24303
|
errors = _ref5.errors;
|
|
24312
24304
|
|
|
24313
24305
|
if (warningOnly) {
|
|
24314
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
24306
|
+
mergedWarnings.push.apply(mergedWarnings, toConsumableArray_toConsumableArray(errors));
|
|
24315
24307
|
} else {
|
|
24316
|
-
mergedErrors.push.apply(mergedErrors,
|
|
24308
|
+
mergedErrors.push.apply(mergedErrors, toConsumableArray_toConsumableArray(errors));
|
|
24317
24309
|
}
|
|
24318
24310
|
});
|
|
24319
24311
|
|
|
@@ -24444,8 +24436,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
24444
24436
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
24445
24437
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
24446
24438
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
24447
|
-
value:
|
|
24448
|
-
validateMessages:
|
|
24439
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext), {}, {
|
|
24440
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
24449
24441
|
// =========================================================
|
|
24450
24442
|
// = Global Form Control =
|
|
24451
24443
|
// =========================================================
|
|
@@ -24471,13 +24463,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
24471
24463
|
},
|
|
24472
24464
|
registerForm: function registerForm(name, form) {
|
|
24473
24465
|
if (name) {
|
|
24474
|
-
formsRef.current =
|
|
24466
|
+
formsRef.current = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formsRef.current), {}, defineProperty_defineProperty({}, name, form));
|
|
24475
24467
|
}
|
|
24476
24468
|
|
|
24477
24469
|
formContext.registerForm(name, form);
|
|
24478
24470
|
},
|
|
24479
24471
|
unregisterForm: function unregisterForm(name) {
|
|
24480
|
-
var newForms =
|
|
24472
|
+
var newForms = objectSpread2_objectSpread2({}, formsRef.current);
|
|
24481
24473
|
|
|
24482
24474
|
delete newForms[name];
|
|
24483
24475
|
formsRef.current = newForms;
|
|
@@ -24517,7 +24509,7 @@ var Form = function Form(_ref, ref) {
|
|
|
24517
24509
|
_onFieldsChange = _ref.onFieldsChange,
|
|
24518
24510
|
_onFinish = _ref.onFinish,
|
|
24519
24511
|
onFinishFailed = _ref.onFinishFailed,
|
|
24520
|
-
restProps =
|
|
24512
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, Form_excluded);
|
|
24521
24513
|
|
|
24522
24514
|
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:
|
|
24523
24515
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -24545,7 +24537,7 @@ var Form = function Form(_ref, ref) {
|
|
|
24545
24537
|
};
|
|
24546
24538
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
24547
24539
|
|
|
24548
|
-
setValidateMessages(
|
|
24540
|
+
setValidateMessages(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
24549
24541
|
setCallbacks({
|
|
24550
24542
|
onValuesChange: onValuesChange,
|
|
24551
24543
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -24598,7 +24590,7 @@ var Form = function Form(_ref, ref) {
|
|
|
24598
24590
|
prevFieldsRef.current = fields;
|
|
24599
24591
|
}, [fields, formInstance]);
|
|
24600
24592
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
24601
|
-
return
|
|
24593
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formInstance), {}, {
|
|
24602
24594
|
validateTrigger: validateTrigger
|
|
24603
24595
|
});
|
|
24604
24596
|
}, [formInstance, validateTrigger]);
|
|
@@ -24610,7 +24602,7 @@ var Form = function Form(_ref, ref) {
|
|
|
24610
24602
|
return wrapperNode;
|
|
24611
24603
|
}
|
|
24612
24604
|
|
|
24613
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
24605
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, restProps, {
|
|
24614
24606
|
onSubmit: function onSubmit(event) {
|
|
24615
24607
|
event.preventDefault();
|
|
24616
24608
|
event.stopPropagation();
|
|
@@ -24792,14 +24784,14 @@ LocaleProvider.defaultProps = {
|
|
|
24792
24784
|
|
|
24793
24785
|
|
|
24794
24786
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
24795
|
-
|
|
24787
|
+
inherits_inherits(Notice, _Component);
|
|
24796
24788
|
|
|
24797
|
-
var _super =
|
|
24789
|
+
var _super = createSuper_createSuper(Notice);
|
|
24798
24790
|
|
|
24799
24791
|
function Notice() {
|
|
24800
24792
|
var _this;
|
|
24801
24793
|
|
|
24802
|
-
|
|
24794
|
+
classCallCheck_classCallCheck(this, Notice);
|
|
24803
24795
|
|
|
24804
24796
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
24805
24797
|
args[_key] = arguments[_key];
|
|
@@ -24842,7 +24834,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
24842
24834
|
return _this;
|
|
24843
24835
|
}
|
|
24844
24836
|
|
|
24845
|
-
|
|
24837
|
+
createClass_createClass(Notice, [{
|
|
24846
24838
|
key: "componentDidMount",
|
|
24847
24839
|
value: function componentDidMount() {
|
|
24848
24840
|
this.startCloseTimer();
|
|
@@ -24888,8 +24880,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
24888
24880
|
|
|
24889
24881
|
return acc;
|
|
24890
24882
|
}, {});
|
|
24891
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
24892
|
-
className: classnames_default()(componentClass, className,
|
|
24883
|
+
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
24884
|
+
className: classnames_default()(componentClass, className, defineProperty_defineProperty({}, "".concat(componentClass, "-closable"), closable)),
|
|
24893
24885
|
style: style,
|
|
24894
24886
|
onMouseEnter: this.clearCloseTimer,
|
|
24895
24887
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -24920,6 +24912,52 @@ Notice.defaultProps = {
|
|
|
24920
24912
|
duration: 1.5
|
|
24921
24913
|
};
|
|
24922
24914
|
|
|
24915
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
24916
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
24917
|
+
if (Array.isArray(arr)) return arr;
|
|
24918
|
+
}
|
|
24919
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
24920
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
24921
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
24922
|
+
|
|
24923
|
+
if (_i == null) return;
|
|
24924
|
+
var _arr = [];
|
|
24925
|
+
var _n = true;
|
|
24926
|
+
var _d = false;
|
|
24927
|
+
|
|
24928
|
+
var _s, _e;
|
|
24929
|
+
|
|
24930
|
+
try {
|
|
24931
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
24932
|
+
_arr.push(_s.value);
|
|
24933
|
+
|
|
24934
|
+
if (i && _arr.length === i) break;
|
|
24935
|
+
}
|
|
24936
|
+
} catch (err) {
|
|
24937
|
+
_d = true;
|
|
24938
|
+
_e = err;
|
|
24939
|
+
} finally {
|
|
24940
|
+
try {
|
|
24941
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
24942
|
+
} finally {
|
|
24943
|
+
if (_d) throw _e;
|
|
24944
|
+
}
|
|
24945
|
+
}
|
|
24946
|
+
|
|
24947
|
+
return _arr;
|
|
24948
|
+
}
|
|
24949
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
24950
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
24951
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24952
|
+
}
|
|
24953
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
24954
|
+
|
|
24955
|
+
|
|
24956
|
+
|
|
24957
|
+
|
|
24958
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
24959
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
24960
|
+
}
|
|
24923
24961
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
24924
24962
|
|
|
24925
24963
|
|
|
@@ -24930,7 +24968,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
24930
24968
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
24931
24969
|
|
|
24932
24970
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
24933
|
-
_React$useState2 =
|
|
24971
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
24934
24972
|
elements = _React$useState2[0],
|
|
24935
24973
|
setElements = _React$useState2[1];
|
|
24936
24974
|
|
|
@@ -24991,14 +25029,14 @@ function getUuid() {
|
|
|
24991
25029
|
}
|
|
24992
25030
|
|
|
24993
25031
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
24994
|
-
|
|
25032
|
+
inherits_inherits(Notification, _Component);
|
|
24995
25033
|
|
|
24996
|
-
var _super =
|
|
25034
|
+
var _super = createSuper_createSuper(Notification);
|
|
24997
25035
|
|
|
24998
25036
|
function Notification() {
|
|
24999
25037
|
var _this;
|
|
25000
25038
|
|
|
25001
|
-
|
|
25039
|
+
classCallCheck_classCallCheck(this, Notification);
|
|
25002
25040
|
|
|
25003
25041
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
25004
25042
|
args[_key] = arguments[_key];
|
|
@@ -25013,7 +25051,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
25013
25051
|
_this.add = function (originNotice, holderCallback) {
|
|
25014
25052
|
var key = originNotice.key || getUuid();
|
|
25015
25053
|
|
|
25016
|
-
var notice =
|
|
25054
|
+
var notice = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, originNotice), {}, {
|
|
25017
25055
|
key: key
|
|
25018
25056
|
});
|
|
25019
25057
|
|
|
@@ -25080,7 +25118,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
25080
25118
|
return _this;
|
|
25081
25119
|
}
|
|
25082
25120
|
|
|
25083
|
-
|
|
25121
|
+
createClass_createClass(Notification, [{
|
|
25084
25122
|
key: "getTransitionName",
|
|
25085
25123
|
value: function getTransitionName() {
|
|
25086
25124
|
var _this$props = this.props,
|
|
@@ -25113,7 +25151,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
25113
25151
|
var key = notice.key,
|
|
25114
25152
|
userPassKey = notice.userPassKey;
|
|
25115
25153
|
|
|
25116
|
-
var noticeProps =
|
|
25154
|
+
var noticeProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
25117
25155
|
prefixCls: prefixCls,
|
|
25118
25156
|
closeIcon: closeIcon
|
|
25119
25157
|
}, notice), notice.props), {}, {
|
|
@@ -25164,7 +25202,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
25164
25202
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
25165
25203
|
key: key,
|
|
25166
25204
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
25167
|
-
style:
|
|
25205
|
+
style: objectSpread2_objectSpread2({}, motionStyle),
|
|
25168
25206
|
ref: function ref(div) {
|
|
25169
25207
|
if (typeof key === 'undefined') {
|
|
25170
25208
|
return;
|
|
@@ -25181,9 +25219,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
25181
25219
|
});
|
|
25182
25220
|
}
|
|
25183
25221
|
|
|
25184
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
25222
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, esm_extends_extends({}, noticeProps, {
|
|
25185
25223
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
25186
|
-
style:
|
|
25224
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
25187
25225
|
visible: visible
|
|
25188
25226
|
}));
|
|
25189
25227
|
}));
|
|
@@ -25206,7 +25244,7 @@ Notification.defaultProps = {
|
|
|
25206
25244
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
25207
25245
|
var _ref6 = properties || {},
|
|
25208
25246
|
getContainer = _ref6.getContainer,
|
|
25209
|
-
props =
|
|
25247
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref6, ["getContainer"]);
|
|
25210
25248
|
|
|
25211
25249
|
var div = document.createElement('div');
|
|
25212
25250
|
|
|
@@ -25250,7 +25288,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
25250
25288
|
|
|
25251
25289
|
if (false) {}
|
|
25252
25290
|
|
|
25253
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
25291
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification, esm_extends_extends({}, props, {
|
|
25254
25292
|
ref: ref
|
|
25255
25293
|
})), div);
|
|
25256
25294
|
};
|
|
@@ -25280,7 +25318,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
25280
25318
|
};
|
|
25281
25319
|
|
|
25282
25320
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
25283
|
-
_useRCNotification2 =
|
|
25321
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
25284
25322
|
hookNotify = _useRCNotification2[0],
|
|
25285
25323
|
holder = _useRCNotification2[1];
|
|
25286
25324
|
|
|
@@ -25609,7 +25647,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
25609
25647
|
};
|
|
25610
25648
|
|
|
25611
25649
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
25612
|
-
_useRCNotification2 =
|
|
25650
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
25613
25651
|
hookNotify = _useRCNotification2[0],
|
|
25614
25652
|
holder = _useRCNotification2[1];
|
|
25615
25653
|
|
|
@@ -26236,7 +26274,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
26236
26274
|
|
|
26237
26275
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
26238
26276
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
26239
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
26277
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
26240
26278
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
26241
26279
|
actionFn: onCancel,
|
|
26242
26280
|
close: close,
|
|
@@ -26254,7 +26292,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
26254
26292
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
26255
26293
|
prefixCls: prefixCls,
|
|
26256
26294
|
className: classString,
|
|
26257
|
-
wrapClassName: classnames_default()(
|
|
26295
|
+
wrapClassName: classnames_default()(defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
26258
26296
|
onCancel: function onCancel() {
|
|
26259
26297
|
return close({
|
|
26260
26298
|
triggerCancel: true
|
|
@@ -26338,7 +26376,7 @@ function getRootPrefixCls() {
|
|
|
26338
26376
|
function confirm_confirm(config) {
|
|
26339
26377
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
26340
26378
|
|
|
26341
|
-
var currentConfig =
|
|
26379
|
+
var currentConfig = esm_extends_extends(esm_extends_extends({}, config), {
|
|
26342
26380
|
close: close,
|
|
26343
26381
|
visible: true
|
|
26344
26382
|
});
|
|
@@ -26391,7 +26429,7 @@ function confirm_confirm(config) {
|
|
|
26391
26429
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
26392
26430
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
26393
26431
|
var iconPrefixCls = getIconPrefixCls();
|
|
26394
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
26432
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, esm_extends_extends({}, props, {
|
|
26395
26433
|
prefixCls: prefixCls,
|
|
26396
26434
|
rootPrefixCls: rootPrefixCls,
|
|
26397
26435
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -26408,7 +26446,7 @@ function confirm_confirm(config) {
|
|
|
26408
26446
|
args[_key2] = arguments[_key2];
|
|
26409
26447
|
}
|
|
26410
26448
|
|
|
26411
|
-
currentConfig =
|
|
26449
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), {
|
|
26412
26450
|
visible: false,
|
|
26413
26451
|
afterClose: function afterClose() {
|
|
26414
26452
|
if (typeof config.afterClose === 'function') {
|
|
@@ -26425,7 +26463,7 @@ function confirm_confirm(config) {
|
|
|
26425
26463
|
if (typeof configUpdate === 'function') {
|
|
26426
26464
|
currentConfig = configUpdate(currentConfig);
|
|
26427
26465
|
} else {
|
|
26428
|
-
currentConfig =
|
|
26466
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), configUpdate);
|
|
26429
26467
|
}
|
|
26430
26468
|
|
|
26431
26469
|
render(currentConfig);
|
|
@@ -26439,7 +26477,7 @@ function confirm_confirm(config) {
|
|
|
26439
26477
|
};
|
|
26440
26478
|
}
|
|
26441
26479
|
function withWarn(props) {
|
|
26442
|
-
return
|
|
26480
|
+
return esm_extends_extends(esm_extends_extends({
|
|
26443
26481
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
26444
26482
|
type: "exclamation-circle"
|
|
26445
26483
|
}),
|
|
@@ -26449,7 +26487,7 @@ function withWarn(props) {
|
|
|
26449
26487
|
});
|
|
26450
26488
|
}
|
|
26451
26489
|
function withInfo(props) {
|
|
26452
|
-
return
|
|
26490
|
+
return esm_extends_extends(esm_extends_extends({
|
|
26453
26491
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
26454
26492
|
type: "exclamation-circle"
|
|
26455
26493
|
}),
|
|
@@ -26459,7 +26497,7 @@ function withInfo(props) {
|
|
|
26459
26497
|
});
|
|
26460
26498
|
}
|
|
26461
26499
|
function withSuccess(props) {
|
|
26462
|
-
return
|
|
26500
|
+
return esm_extends_extends(esm_extends_extends({
|
|
26463
26501
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
26464
26502
|
type: "check-circle"
|
|
26465
26503
|
}),
|
|
@@ -26469,7 +26507,7 @@ function withSuccess(props) {
|
|
|
26469
26507
|
});
|
|
26470
26508
|
}
|
|
26471
26509
|
function withError(props) {
|
|
26472
|
-
return
|
|
26510
|
+
return esm_extends_extends(esm_extends_extends({
|
|
26473
26511
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
26474
26512
|
type: "close-circle"
|
|
26475
26513
|
}),
|
|
@@ -26479,7 +26517,7 @@ function withError(props) {
|
|
|
26479
26517
|
});
|
|
26480
26518
|
}
|
|
26481
26519
|
function withConfirm(props) {
|
|
26482
|
-
return
|
|
26520
|
+
return esm_extends_extends(esm_extends_extends({
|
|
26483
26521
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
26484
26522
|
type: "question-circle"
|
|
26485
26523
|
}),
|
|
@@ -26506,7 +26544,7 @@ function usePatchElement() {
|
|
|
26506
26544
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
26507
26545
|
// append a new element to elements (and create a new ref)
|
|
26508
26546
|
setElements(function (originElements) {
|
|
26509
|
-
return [].concat(
|
|
26547
|
+
return [].concat(toConsumableArray_toConsumableArray(originElements), [element]);
|
|
26510
26548
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
26511
26549
|
// it works a little like useEffect
|
|
26512
26550
|
|
|
@@ -26571,7 +26609,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
26571
26609
|
destroy: close,
|
|
26572
26610
|
update: function update(newConfig) {
|
|
26573
26611
|
setInnerConfig(function (originConfig) {
|
|
26574
|
-
return
|
|
26612
|
+
return esm_extends_extends(esm_extends_extends({}, originConfig), newConfig);
|
|
26575
26613
|
});
|
|
26576
26614
|
}
|
|
26577
26615
|
};
|
|
@@ -26580,7 +26618,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
26580
26618
|
componentName: "Modal",
|
|
26581
26619
|
defaultLocale: locale_default.Modal
|
|
26582
26620
|
}, function (modalLocale) {
|
|
26583
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
26621
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, esm_extends_extends({
|
|
26584
26622
|
prefixCls: prefixCls,
|
|
26585
26623
|
rootPrefixCls: rootPrefixCls
|
|
26586
26624
|
}, innerConfig, {
|
|
@@ -26627,7 +26665,7 @@ function useModal() {
|
|
|
26627
26665
|
|
|
26628
26666
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
26629
26667
|
if (actionQueue.length) {
|
|
26630
|
-
var cloneQueue =
|
|
26668
|
+
var cloneQueue = toConsumableArray_toConsumableArray(actionQueue);
|
|
26631
26669
|
|
|
26632
26670
|
cloneQueue.forEach(function (action) {
|
|
26633
26671
|
action();
|
|
@@ -26664,7 +26702,7 @@ function useModal() {
|
|
|
26664
26702
|
destroyAction();
|
|
26665
26703
|
} else {
|
|
26666
26704
|
setActionQueue(function (prev) {
|
|
26667
|
-
return [].concat(
|
|
26705
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [destroyAction]);
|
|
26668
26706
|
});
|
|
26669
26707
|
}
|
|
26670
26708
|
},
|
|
@@ -26679,7 +26717,7 @@ function useModal() {
|
|
|
26679
26717
|
updateAction();
|
|
26680
26718
|
} else {
|
|
26681
26719
|
setActionQueue(function (prev) {
|
|
26682
|
-
return [].concat(
|
|
26720
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [updateAction]);
|
|
26683
26721
|
});
|
|
26684
26722
|
}
|
|
26685
26723
|
}
|
|
@@ -27285,7 +27323,7 @@ function helpers_esm_slicedToArray_slicedToArray(arr, i) {
|
|
|
27285
27323
|
return helpers_esm_arrayWithHoles_arrayWithHoles(arr) || helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || esm_unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || helpers_esm_nonIterableRest_nonIterableRest();
|
|
27286
27324
|
}
|
|
27287
27325
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
27288
|
-
function
|
|
27326
|
+
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
27289
27327
|
if (source == null) return {};
|
|
27290
27328
|
var target = {};
|
|
27291
27329
|
var sourceKeys = Object.keys(source);
|
|
@@ -27301,9 +27339,9 @@ function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, exclu
|
|
|
27301
27339
|
}
|
|
27302
27340
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
27303
27341
|
|
|
27304
|
-
function
|
|
27342
|
+
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
27305
27343
|
if (source == null) return {};
|
|
27306
|
-
var target =
|
|
27344
|
+
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
27307
27345
|
var key, i;
|
|
27308
27346
|
|
|
27309
27347
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -29409,7 +29447,7 @@ function RawList(props, ref) {
|
|
|
29409
29447
|
onScroll = props.onScroll,
|
|
29410
29448
|
onVisibleChange = props.onVisibleChange,
|
|
29411
29449
|
innerProps = props.innerProps,
|
|
29412
|
-
restProps =
|
|
29450
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
29413
29451
|
// ================================= MISC =================================
|
|
29414
29452
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
29415
29453
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
@@ -29778,7 +29816,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
29778
29816
|
return values;
|
|
29779
29817
|
}
|
|
29780
29818
|
function removeLastEnabledValue(measureValues, values) {
|
|
29781
|
-
var newValues =
|
|
29819
|
+
var newValues = toConsumableArray_toConsumableArray(values);
|
|
29782
29820
|
|
|
29783
29821
|
var removeIndex;
|
|
29784
29822
|
|
|
@@ -29912,7 +29950,7 @@ function flattenOptions(options) {
|
|
|
29912
29950
|
*/
|
|
29913
29951
|
|
|
29914
29952
|
function injectPropsWithOption(option) {
|
|
29915
|
-
var newOption =
|
|
29953
|
+
var newOption = objectSpread2_objectSpread2({}, option);
|
|
29916
29954
|
|
|
29917
29955
|
if (!('props' in newOption)) {
|
|
29918
29956
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -29946,7 +29984,7 @@ function findValueOption(values, options) {
|
|
|
29946
29984
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
29947
29985
|
|
|
29948
29986
|
if (!option) {
|
|
29949
|
-
option =
|
|
29987
|
+
option = objectSpread2_objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
29950
29988
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
29951
29989
|
}));
|
|
29952
29990
|
}
|
|
@@ -29965,7 +30003,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
29965
30003
|
};
|
|
29966
30004
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
29967
30005
|
|
|
29968
|
-
if (prevValItem &&
|
|
30006
|
+
if (prevValItem && esm_typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
29969
30007
|
result.label = prevValItem.label;
|
|
29970
30008
|
|
|
29971
30009
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -30013,7 +30051,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
30013
30051
|
var filterFunc;
|
|
30014
30052
|
|
|
30015
30053
|
if (filterOption === false) {
|
|
30016
|
-
return
|
|
30054
|
+
return toConsumableArray_toConsumableArray(options);
|
|
30017
30055
|
}
|
|
30018
30056
|
|
|
30019
30057
|
if (typeof filterOption === 'function') {
|
|
@@ -30037,7 +30075,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
30037
30075
|
});
|
|
30038
30076
|
|
|
30039
30077
|
if (subOptions.length) {
|
|
30040
|
-
filteredOptions.push(
|
|
30078
|
+
filteredOptions.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
30041
30079
|
options: subOptions
|
|
30042
30080
|
}));
|
|
30043
30081
|
}
|
|
@@ -30071,7 +30109,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
30071
30109
|
var list = str.split(token);
|
|
30072
30110
|
match = match || list.length > 1;
|
|
30073
30111
|
return list.reduce(function (prevList, unitStr) {
|
|
30074
|
-
return [].concat(
|
|
30112
|
+
return [].concat(toConsumableArray_toConsumableArray(prevList), toConsumableArray_toConsumableArray(separate(unitStr, restTokens)));
|
|
30075
30113
|
}, []).filter(function (unit) {
|
|
30076
30114
|
return unit;
|
|
30077
30115
|
});
|
|
@@ -30091,7 +30129,7 @@ function isValueDisabled(value, options) {
|
|
|
30091
30129
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
30092
30130
|
var values = commonUtil_toArray(value).slice().sort();
|
|
30093
30131
|
|
|
30094
|
-
var cloneOptions =
|
|
30132
|
+
var cloneOptions = toConsumableArray_toConsumableArray(options); // Convert options value to set
|
|
30095
30133
|
|
|
30096
30134
|
|
|
30097
30135
|
var optionValues = new Set();
|
|
@@ -30111,7 +30149,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
30111
30149
|
if (!optionValues.has(val)) {
|
|
30112
30150
|
var _ref9;
|
|
30113
30151
|
|
|
30114
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
30152
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, defineProperty_defineProperty(_ref9, optionLabelProp, item.label), defineProperty_defineProperty(_ref9, "value", val), _ref9) : {
|
|
30115
30153
|
value: val
|
|
30116
30154
|
});
|
|
30117
30155
|
}
|
|
@@ -30377,7 +30415,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
30377
30415
|
children = itemData.children;
|
|
30378
30416
|
var attrs = pickAttrs(itemData, true);
|
|
30379
30417
|
var mergedLabel = childrenAsData ? children : label;
|
|
30380
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
30418
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
30381
30419
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
30382
30420
|
}, attrs, {
|
|
30383
30421
|
key: index,
|
|
@@ -30427,13 +30465,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
30427
30465
|
children = data.children,
|
|
30428
30466
|
style = data.style,
|
|
30429
30467
|
className = data.className,
|
|
30430
|
-
otherProps =
|
|
30468
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(data, OptionList_excluded);
|
|
30431
30469
|
|
|
30432
30470
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
30433
30471
|
|
|
30434
30472
|
var selected = values.has(value);
|
|
30435
30473
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
30436
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
30474
|
+
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), defineProperty_defineProperty(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
|
|
30437
30475
|
var mergedLabel = childrenAsData ? children : label;
|
|
30438
30476
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
30439
30477
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -30444,7 +30482,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
30444
30482
|
optionTitle = title;
|
|
30445
30483
|
}
|
|
30446
30484
|
|
|
30447
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
30485
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, passedProps, {
|
|
30448
30486
|
"aria-selected": selected,
|
|
30449
30487
|
className: optionClassName,
|
|
30450
30488
|
title: optionTitle,
|
|
@@ -30505,9 +30543,9 @@ function convertNodeToOption(node) {
|
|
|
30505
30543
|
_node$props = node.props,
|
|
30506
30544
|
children = _node$props.children,
|
|
30507
30545
|
value = _node$props.value,
|
|
30508
|
-
restProps =
|
|
30546
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
30509
30547
|
|
|
30510
|
-
return
|
|
30548
|
+
return objectSpread2_objectSpread2({
|
|
30511
30549
|
key: key,
|
|
30512
30550
|
value: value !== undefined ? value : key,
|
|
30513
30551
|
children: children
|
|
@@ -30525,13 +30563,13 @@ function convertChildrenToData(nodes) {
|
|
|
30525
30563
|
key = node.key,
|
|
30526
30564
|
_node$props2 = node.props,
|
|
30527
30565
|
children = _node$props2.children,
|
|
30528
|
-
restProps =
|
|
30566
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props2, _excluded2);
|
|
30529
30567
|
|
|
30530
30568
|
if (optionOnly || !isSelectOptGroup) {
|
|
30531
30569
|
return convertNodeToOption(node);
|
|
30532
30570
|
}
|
|
30533
30571
|
|
|
30534
|
-
return
|
|
30572
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
30535
30573
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
30536
30574
|
label: key
|
|
30537
30575
|
}, restProps), {}, {
|
|
@@ -30608,41 +30646,6 @@ function useControlledState(defaultStateValue, option) {
|
|
|
30608
30646
|
}, [value]);
|
|
30609
30647
|
return [mergedValue, triggerChange];
|
|
30610
30648
|
}
|
|
30611
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
30612
|
-
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
30613
|
-
if (source == null) return {};
|
|
30614
|
-
var target = {};
|
|
30615
|
-
var sourceKeys = Object.keys(source);
|
|
30616
|
-
var key, i;
|
|
30617
|
-
|
|
30618
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
30619
|
-
key = sourceKeys[i];
|
|
30620
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
30621
|
-
target[key] = source[key];
|
|
30622
|
-
}
|
|
30623
|
-
|
|
30624
|
-
return target;
|
|
30625
|
-
}
|
|
30626
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
30627
|
-
|
|
30628
|
-
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
30629
|
-
if (source == null) return {};
|
|
30630
|
-
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
30631
|
-
var key, i;
|
|
30632
|
-
|
|
30633
|
-
if (Object.getOwnPropertySymbols) {
|
|
30634
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
30635
|
-
|
|
30636
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
30637
|
-
key = sourceSymbolKeys[i];
|
|
30638
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
30639
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
30640
|
-
target[key] = source[key];
|
|
30641
|
-
}
|
|
30642
|
-
}
|
|
30643
|
-
|
|
30644
|
-
return target;
|
|
30645
|
-
}
|
|
30646
30649
|
;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/Item.js
|
|
30647
30650
|
|
|
30648
30651
|
|
|
@@ -30668,7 +30671,7 @@ function InternalItem(props, ref) {
|
|
|
30668
30671
|
order = props.order,
|
|
30669
30672
|
_props$component = props.component,
|
|
30670
30673
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
30671
|
-
restProps =
|
|
30674
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
30672
30675
|
|
|
30673
30676
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
30674
30677
|
|
|
@@ -30735,7 +30738,7 @@ Item_Item.displayName = 'Item';
|
|
|
30735
30738
|
|
|
30736
30739
|
function useBatchFrameState() {
|
|
30737
30740
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
30738
|
-
_useState2 =
|
|
30741
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
30739
30742
|
forceUpdate = _useState2[1];
|
|
30740
30743
|
|
|
30741
30744
|
var statesRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)([]);
|
|
@@ -30789,7 +30792,7 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
30789
30792
|
if (!context) {
|
|
30790
30793
|
var _props$component = props.component,
|
|
30791
30794
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
30792
|
-
_restProps =
|
|
30795
|
+
_restProps = objectWithoutProperties_objectWithoutProperties(props, ["component"]);
|
|
30793
30796
|
|
|
30794
30797
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, _restProps, {
|
|
30795
30798
|
ref: ref
|
|
@@ -30797,10 +30800,10 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
30797
30800
|
}
|
|
30798
30801
|
|
|
30799
30802
|
var contextClassName = context.className,
|
|
30800
|
-
restContext =
|
|
30803
|
+
restContext = objectWithoutProperties_objectWithoutProperties(context, ["className"]);
|
|
30801
30804
|
|
|
30802
30805
|
var className = props.className,
|
|
30803
|
-
restProps =
|
|
30806
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
30804
30807
|
|
|
30805
30808
|
|
|
30806
30809
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
@@ -30855,45 +30858,45 @@ function Overflow(props, ref) {
|
|
|
30855
30858
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
30856
30859
|
itemComponent = props.itemComponent,
|
|
30857
30860
|
onVisibleChange = props.onVisibleChange,
|
|
30858
|
-
restProps =
|
|
30861
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
30859
30862
|
|
|
30860
30863
|
var createUseState = useBatchFrameState();
|
|
30861
30864
|
var fullySSR = ssr === 'full';
|
|
30862
30865
|
|
|
30863
30866
|
var _createUseState = createUseState(null),
|
|
30864
|
-
_createUseState2 =
|
|
30867
|
+
_createUseState2 = slicedToArray_slicedToArray(_createUseState, 2),
|
|
30865
30868
|
containerWidth = _createUseState2[0],
|
|
30866
30869
|
setContainerWidth = _createUseState2[1];
|
|
30867
30870
|
|
|
30868
30871
|
var mergedContainerWidth = containerWidth || 0;
|
|
30869
30872
|
|
|
30870
30873
|
var _createUseState3 = createUseState(new Map()),
|
|
30871
|
-
_createUseState4 =
|
|
30874
|
+
_createUseState4 = slicedToArray_slicedToArray(_createUseState3, 2),
|
|
30872
30875
|
itemWidths = _createUseState4[0],
|
|
30873
30876
|
setItemWidths = _createUseState4[1];
|
|
30874
30877
|
|
|
30875
30878
|
var _createUseState5 = createUseState(0),
|
|
30876
|
-
_createUseState6 =
|
|
30879
|
+
_createUseState6 = slicedToArray_slicedToArray(_createUseState5, 2),
|
|
30877
30880
|
prevRestWidth = _createUseState6[0],
|
|
30878
30881
|
setPrevRestWidth = _createUseState6[1];
|
|
30879
30882
|
|
|
30880
30883
|
var _createUseState7 = createUseState(0),
|
|
30881
|
-
_createUseState8 =
|
|
30884
|
+
_createUseState8 = slicedToArray_slicedToArray(_createUseState7, 2),
|
|
30882
30885
|
restWidth = _createUseState8[0],
|
|
30883
30886
|
setRestWidth = _createUseState8[1];
|
|
30884
30887
|
|
|
30885
30888
|
var _createUseState9 = createUseState(0),
|
|
30886
|
-
_createUseState10 =
|
|
30889
|
+
_createUseState10 = slicedToArray_slicedToArray(_createUseState9, 2),
|
|
30887
30890
|
suffixWidth = _createUseState10[0],
|
|
30888
30891
|
setSuffixWidth = _createUseState10[1];
|
|
30889
30892
|
|
|
30890
30893
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
30891
|
-
_useState2 =
|
|
30894
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
30892
30895
|
suffixFixedStart = _useState2[0],
|
|
30893
30896
|
setSuffixFixedStart = _useState2[1];
|
|
30894
30897
|
|
|
30895
30898
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
30896
|
-
_useState4 =
|
|
30899
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
30897
30900
|
displayCount = _useState4[0],
|
|
30898
30901
|
setDisplayCount = _useState4[1];
|
|
30899
30902
|
|
|
@@ -30906,7 +30909,7 @@ function Overflow(props, ref) {
|
|
|
30906
30909
|
}, [displayCount, containerWidth]);
|
|
30907
30910
|
|
|
30908
30911
|
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
30909
|
-
_useState6 =
|
|
30912
|
+
_useState6 = slicedToArray_slicedToArray(_useState5, 2),
|
|
30910
30913
|
restReady = _useState6[0],
|
|
30911
30914
|
setRestReady = _useState6[1];
|
|
30912
30915
|
|
|
@@ -31329,7 +31332,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
31329
31332
|
|
|
31330
31333
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
31331
31334
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
31332
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
31335
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), defineProperty_defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
31333
31336
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
31334
31337
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
31335
31338
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -31744,7 +31747,7 @@ var Selector = function Selector(props, ref) {
|
|
|
31744
31747
|
onInputCompositionStart: onInputCompositionStart,
|
|
31745
31748
|
onInputCompositionEnd: onInputCompositionEnd
|
|
31746
31749
|
};
|
|
31747
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
31750
|
+
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector, esm_extends_extends({}, props, sharedProps)) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Selector_SingleSelector, esm_extends_extends({}, props, sharedProps));
|
|
31748
31751
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
31749
31752
|
ref: domRef,
|
|
31750
31753
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -33280,7 +33283,7 @@ function monitorResize(element, callback) {
|
|
|
33280
33283
|
var prevHeight = null;
|
|
33281
33284
|
|
|
33282
33285
|
function onResize(_ref) {
|
|
33283
|
-
var _ref2 =
|
|
33286
|
+
var _ref2 = slicedToArray_slicedToArray(_ref, 1),
|
|
33284
33287
|
target = _ref2[0].target;
|
|
33285
33288
|
|
|
33286
33289
|
if (!document.documentElement.contains(target)) return;
|
|
@@ -33439,7 +33442,7 @@ var Align = function Align(_ref, ref) {
|
|
|
33439
33442
|
|
|
33440
33443
|
return false;
|
|
33441
33444
|
}, monitorBufferTime),
|
|
33442
|
-
_useBuffer2 =
|
|
33445
|
+
_useBuffer2 = slicedToArray_slicedToArray(_useBuffer, 2),
|
|
33443
33446
|
_forceAlign = _useBuffer2[0],
|
|
33444
33447
|
cancelForceAlign = _useBuffer2[1]; // ===================== Effect =====================
|
|
33445
33448
|
// Listen for target updated
|
|
@@ -33527,45 +33530,6 @@ RcAlign.displayName = 'Align';
|
|
|
33527
33530
|
// export this package's api
|
|
33528
33531
|
|
|
33529
33532
|
/* harmony default export */ var rc_align_es = (es_Align);
|
|
33530
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
33531
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
33532
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
33533
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
33534
|
-
function esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
33535
|
-
try {
|
|
33536
|
-
var info = gen[key](arg);
|
|
33537
|
-
var value = info.value;
|
|
33538
|
-
} catch (error) {
|
|
33539
|
-
reject(error);
|
|
33540
|
-
return;
|
|
33541
|
-
}
|
|
33542
|
-
|
|
33543
|
-
if (info.done) {
|
|
33544
|
-
resolve(value);
|
|
33545
|
-
} else {
|
|
33546
|
-
Promise.resolve(value).then(_next, _throw);
|
|
33547
|
-
}
|
|
33548
|
-
}
|
|
33549
|
-
|
|
33550
|
-
function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
33551
|
-
return function () {
|
|
33552
|
-
var self = this,
|
|
33553
|
-
args = arguments;
|
|
33554
|
-
return new Promise(function (resolve, reject) {
|
|
33555
|
-
var gen = fn.apply(self, args);
|
|
33556
|
-
|
|
33557
|
-
function _next(value) {
|
|
33558
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
33559
|
-
}
|
|
33560
|
-
|
|
33561
|
-
function _throw(err) {
|
|
33562
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
33563
|
-
}
|
|
33564
|
-
|
|
33565
|
-
_next(undefined);
|
|
33566
|
-
});
|
|
33567
|
-
};
|
|
33568
|
-
}
|
|
33569
33533
|
;// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/useVisibleStatus.js
|
|
33570
33534
|
|
|
33571
33535
|
|
|
@@ -33575,7 +33539,7 @@ function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
|
33575
33539
|
var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
33576
33540
|
/* harmony default export */ var useVisibleStatus = (function (visible, doMeasure) {
|
|
33577
33541
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
33578
|
-
_useState2 =
|
|
33542
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
33579
33543
|
status = _useState2[0],
|
|
33580
33544
|
setInternalStatus = _useState2[1];
|
|
33581
33545
|
|
|
@@ -33628,7 +33592,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
33628
33592
|
}
|
|
33629
33593
|
|
|
33630
33594
|
if (status) {
|
|
33631
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/
|
|
33595
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
33632
33596
|
var index, nextStatus;
|
|
33633
33597
|
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33634
33598
|
while (1) {
|
|
@@ -33666,7 +33630,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
33666
33630
|
width: 0,
|
|
33667
33631
|
height: 0
|
|
33668
33632
|
}),
|
|
33669
|
-
_React$useState2 =
|
|
33633
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
33670
33634
|
targetSize = _React$useState2[0],
|
|
33671
33635
|
setTargetSize = _React$useState2[1];
|
|
33672
33636
|
|
|
@@ -33737,13 +33701,13 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
33737
33701
|
var elementRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
33738
33702
|
|
|
33739
33703
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
33740
|
-
_useState2 =
|
|
33704
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
33741
33705
|
alignedClassName = _useState2[0],
|
|
33742
33706
|
setAlignedClassName = _useState2[1]; // ======================= Measure ========================
|
|
33743
33707
|
|
|
33744
33708
|
|
|
33745
33709
|
var _useStretchStyle = useStretchStyle(stretch),
|
|
33746
|
-
_useStretchStyle2 =
|
|
33710
|
+
_useStretchStyle2 = slicedToArray_slicedToArray(_useStretchStyle, 2),
|
|
33747
33711
|
stretchStyle = _useStretchStyle2[0],
|
|
33748
33712
|
measureStretchStyle = _useStretchStyle2[1];
|
|
33749
33713
|
|
|
@@ -33755,7 +33719,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
33755
33719
|
|
|
33756
33720
|
|
|
33757
33721
|
var _useVisibleStatus = useVisibleStatus(visible, doMeasure),
|
|
33758
|
-
_useVisibleStatus2 =
|
|
33722
|
+
_useVisibleStatus2 = slicedToArray_slicedToArray(_useVisibleStatus, 2),
|
|
33759
33723
|
status = _useVisibleStatus2[0],
|
|
33760
33724
|
goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
|
|
33761
33725
|
|
|
@@ -33969,15 +33933,15 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
33969
33933
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
33970
33934
|
var visible = _ref.visible,
|
|
33971
33935
|
mobile = _ref.mobile,
|
|
33972
|
-
props =
|
|
33936
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref, Popup_excluded);
|
|
33973
33937
|
|
|
33974
33938
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
33975
|
-
_useState2 =
|
|
33939
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
33976
33940
|
innerVisible = _useState2[0],
|
|
33977
33941
|
serInnerVisible = _useState2[1];
|
|
33978
33942
|
|
|
33979
33943
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
33980
|
-
_useState4 =
|
|
33944
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
33981
33945
|
inMobile = _useState4[0],
|
|
33982
33946
|
setInMobile = _useState4[1];
|
|
33983
33947
|
|
|
@@ -34886,7 +34850,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
34886
34850
|
empty = props.empty,
|
|
34887
34851
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
34888
34852
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
34889
|
-
restProps =
|
|
34853
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SelectTrigger_excluded);
|
|
34890
34854
|
|
|
34891
34855
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
34892
34856
|
var popupNode = popupElement;
|
|
@@ -34910,7 +34874,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
34910
34874
|
};
|
|
34911
34875
|
});
|
|
34912
34876
|
|
|
34913
|
-
var popupStyle =
|
|
34877
|
+
var popupStyle = objectSpread2_objectSpread2({
|
|
34914
34878
|
minWidth: containerWidth
|
|
34915
34879
|
}, dropdownStyle);
|
|
34916
34880
|
|
|
@@ -34920,7 +34884,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
34920
34884
|
popupStyle.width = containerWidth;
|
|
34921
34885
|
}
|
|
34922
34886
|
|
|
34923
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
34887
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, esm_extends_extends({}, restProps, {
|
|
34924
34888
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
34925
34889
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
34926
34890
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -34933,7 +34897,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
34933
34897
|
popupAlign: dropdownAlign,
|
|
34934
34898
|
popupVisible: visible,
|
|
34935
34899
|
getPopupContainer: getPopupContainer,
|
|
34936
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
34900
|
+
popupClassName: classnames_default()(dropdownClassName, defineProperty_defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
34937
34901
|
popupStyle: popupStyle,
|
|
34938
34902
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
34939
34903
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -35036,7 +35000,7 @@ function useCacheDisplayValue(values) {
|
|
|
35036
35000
|
var cacheLabel = valueLabels.get(item.value);
|
|
35037
35001
|
|
|
35038
35002
|
if (item.isCacheable && cacheLabel) {
|
|
35039
|
-
return
|
|
35003
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
35040
35004
|
label: cacheLabel
|
|
35041
35005
|
});
|
|
35042
35006
|
}
|
|
@@ -35198,7 +35162,7 @@ function generateSelector(config) {
|
|
|
35198
35162
|
onClear = props.onClear,
|
|
35199
35163
|
_props$internalProps = props.internalProps,
|
|
35200
35164
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
35201
|
-
restProps =
|
|
35165
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, generate_excluded);
|
|
35202
35166
|
|
|
35203
35167
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
35204
35168
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -35336,7 +35300,7 @@ function generateSelector(config) {
|
|
|
35336
35300
|
|
|
35337
35301
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
35338
35302
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
35339
|
-
return
|
|
35303
|
+
return toConsumableArray_toConsumableArray(mergedOptions);
|
|
35340
35304
|
}
|
|
35341
35305
|
|
|
35342
35306
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -35357,7 +35321,7 @@ function generateSelector(config) {
|
|
|
35357
35321
|
}
|
|
35358
35322
|
|
|
35359
35323
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
35360
|
-
return
|
|
35324
|
+
return toConsumableArray_toConsumableArray(filteredOptions).sort(filterSort);
|
|
35361
35325
|
}
|
|
35362
35326
|
|
|
35363
35327
|
return filteredOptions;
|
|
@@ -35380,7 +35344,7 @@ function generateSelector(config) {
|
|
|
35380
35344
|
labelInValue: mergedLabelInValue,
|
|
35381
35345
|
optionLabelProp: mergedOptionLabelProp
|
|
35382
35346
|
});
|
|
35383
|
-
return
|
|
35347
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, displayValue), {}, {
|
|
35384
35348
|
disabled: isValueDisabled(val, valueOptions)
|
|
35385
35349
|
});
|
|
35386
35350
|
});
|
|
@@ -35454,7 +35418,7 @@ function generateSelector(config) {
|
|
|
35454
35418
|
}); // We will cache option in case it removed by ajax
|
|
35455
35419
|
|
|
35456
35420
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
35457
|
-
var clone =
|
|
35421
|
+
var clone = objectSpread2_objectSpread2({}, option);
|
|
35458
35422
|
|
|
35459
35423
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
35460
35424
|
get: function get() {
|
|
@@ -35510,13 +35474,13 @@ function generateSelector(config) {
|
|
|
35510
35474
|
};
|
|
35511
35475
|
|
|
35512
35476
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
35513
|
-
onInternalSelect(newValue,
|
|
35477
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
35514
35478
|
source: 'option'
|
|
35515
35479
|
}));
|
|
35516
35480
|
};
|
|
35517
35481
|
|
|
35518
35482
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
35519
|
-
onInternalSelect(newValue,
|
|
35483
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
35520
35484
|
source: 'selection'
|
|
35521
35485
|
}));
|
|
35522
35486
|
}; // ============================= Input ==============================
|
|
@@ -35600,7 +35564,7 @@ function generateSelector(config) {
|
|
|
35600
35564
|
});
|
|
35601
35565
|
}
|
|
35602
35566
|
|
|
35603
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
35567
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), toConsumableArray_toConsumableArray(patchRawValues))));
|
|
35604
35568
|
triggerChange(newRawValues);
|
|
35605
35569
|
newRawValues.forEach(function (newRawValue) {
|
|
35606
35570
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -35629,7 +35593,7 @@ function generateSelector(config) {
|
|
|
35629
35593
|
return;
|
|
35630
35594
|
}
|
|
35631
35595
|
|
|
35632
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
35596
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [searchText])));
|
|
35633
35597
|
triggerChange(newRawValues);
|
|
35634
35598
|
newRawValues.forEach(function (newRawValue) {
|
|
35635
35599
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -35762,7 +35726,7 @@ function generateSelector(config) {
|
|
|
35762
35726
|
// `tags` mode should move `searchValue` into values
|
|
35763
35727
|
if (mode === 'tags') {
|
|
35764
35728
|
triggerSearch('', false, false);
|
|
35765
|
-
triggerChange(Array.from(new Set([].concat(
|
|
35729
|
+
triggerChange(Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
35766
35730
|
} else if (mode === 'multiple') {
|
|
35767
35731
|
// `multiple` mode only clean the search value but not trigger event
|
|
35768
35732
|
setInnerSearchValue('');
|
|
@@ -35920,7 +35884,7 @@ function generateSelector(config) {
|
|
|
35920
35884
|
|
|
35921
35885
|
if (mergedShowArrow) {
|
|
35922
35886
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
35923
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
35887
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), defineProperty_defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
35924
35888
|
customizeIcon: inputIcon,
|
|
35925
35889
|
customizeIconProps: {
|
|
35926
35890
|
loading: loading,
|
|
@@ -35936,7 +35900,7 @@ function generateSelector(config) {
|
|
|
35936
35900
|
if (false) {} // ============================= Render =============================
|
|
35937
35901
|
|
|
35938
35902
|
|
|
35939
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
35903
|
+
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {}, defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-focused"), mockFocused), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-multiple"), isMultiple), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-single"), !isMultiple), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-show-arrow"), mergedShowArrow), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-loading"), loading), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-open"), mergedOpen), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch), _classNames2));
|
|
35940
35904
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
35941
35905
|
ref: triggerRef,
|
|
35942
35906
|
disabled: disabled,
|
|
@@ -35961,7 +35925,7 @@ function generateSelector(config) {
|
|
|
35961
35925
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
35962
35926
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
35963
35927
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
35964
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
35928
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, esm_extends_extends({}, props, {
|
|
35965
35929
|
domRef: selectorDomRef,
|
|
35966
35930
|
prefixCls: prefixCls,
|
|
35967
35931
|
inputElement: customizeInputElement,
|
|
@@ -35987,7 +35951,7 @@ function generateSelector(config) {
|
|
|
35987
35951
|
return selectorNode;
|
|
35988
35952
|
}
|
|
35989
35953
|
|
|
35990
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
35954
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
35991
35955
|
className: mergedClassName
|
|
35992
35956
|
}, domProps, {
|
|
35993
35957
|
ref: containerRef,
|
|
@@ -36074,7 +36038,7 @@ function warningProps(props) {
|
|
|
36074
36038
|
if (value !== undefined && value !== null) {
|
|
36075
36039
|
var values = commonUtil_toArray(value);
|
|
36076
36040
|
es_warning(!labelInValue || values.every(function (val) {
|
|
36077
|
-
return
|
|
36041
|
+
return esm_typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
36078
36042
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
36079
36043
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
36080
36044
|
} // Syntactic sugar should use correct children type
|
|
@@ -36188,14 +36152,14 @@ var RefSelect = generateSelector({
|
|
|
36188
36152
|
*/
|
|
36189
36153
|
|
|
36190
36154
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
36191
|
-
|
|
36155
|
+
inherits_inherits(Select, _React$Component);
|
|
36192
36156
|
|
|
36193
|
-
var _super =
|
|
36157
|
+
var _super = createSuper_createSuper(Select);
|
|
36194
36158
|
|
|
36195
36159
|
function Select() {
|
|
36196
36160
|
var _this;
|
|
36197
36161
|
|
|
36198
|
-
|
|
36162
|
+
classCallCheck_classCallCheck(this, Select);
|
|
36199
36163
|
|
|
36200
36164
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
36201
36165
|
args[_key] = arguments[_key];
|
|
@@ -36215,10 +36179,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
36215
36179
|
return _this;
|
|
36216
36180
|
}
|
|
36217
36181
|
|
|
36218
|
-
|
|
36182
|
+
createClass_createClass(Select, [{
|
|
36219
36183
|
key: "render",
|
|
36220
36184
|
value: function render() {
|
|
36221
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
36185
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, esm_extends_extends({
|
|
36222
36186
|
ref: this.selectRef
|
|
36223
36187
|
}, this.props));
|
|
36224
36188
|
}
|
|
@@ -36399,7 +36363,7 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
36399
36363
|
} // ===================== Icons =====================
|
|
36400
36364
|
|
|
36401
36365
|
|
|
36402
|
-
var _getIcons = getIcons(
|
|
36366
|
+
var _getIcons = getIcons(esm_extends_extends(esm_extends_extends({}, props), {
|
|
36403
36367
|
multiple: isMultiple,
|
|
36404
36368
|
prefixCls: prefixCls
|
|
36405
36369
|
})),
|
|
@@ -36409,10 +36373,10 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
36409
36373
|
clearIcon = _getIcons.clearIcon;
|
|
36410
36374
|
|
|
36411
36375
|
var selectProps = omit(props, ['suffixIcon', 'itemIcon']);
|
|
36412
|
-
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName,
|
|
36376
|
+
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
|
|
36413
36377
|
var mergedSize = customizeSize || size;
|
|
36414
|
-
var mergedClassName = classnames_default()((_classNames2 = {},
|
|
36415
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es,
|
|
36378
|
+
var mergedClassName = classnames_default()((_classNames2 = {}, defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-lg"), mergedSize === 'large'), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-sm"), mergedSize === 'small'), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-borderless"), !bordered), _classNames2), className);
|
|
36379
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es, esm_extends_extends({
|
|
36416
36380
|
ref: ref,
|
|
36417
36381
|
virtual: virtual,
|
|
36418
36382
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth
|
|
@@ -37704,9 +37668,9 @@ function LiveOnlineCount(_ref) {
|
|
|
37704
37668
|
};
|
|
37705
37669
|
|
|
37706
37670
|
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
37707
|
-
LiveOnlineCount_asyncToGenerator( /*#__PURE__*/
|
|
37671
|
+
LiveOnlineCount_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
37708
37672
|
var count, likesData, currentCount;
|
|
37709
|
-
return
|
|
37673
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
37710
37674
|
while (1) {
|
|
37711
37675
|
switch (_context.prev = _context.next) {
|
|
37712
37676
|
case 0:
|
|
@@ -37898,7 +37862,7 @@ function detail_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
37898
37862
|
|
|
37899
37863
|
|
|
37900
37864
|
|
|
37901
|
-
var TrackPageName = '
|
|
37865
|
+
var TrackPageName = 'edu_Platform_publiclive_detail_page';
|
|
37902
37866
|
function PublicLiveDetail(_ref) {
|
|
37903
37867
|
var containerClassName = _ref.containerClassName,
|
|
37904
37868
|
className = _ref.className,
|
|
@@ -38224,7 +38188,7 @@ function PublicLiveDetail(_ref) {
|
|
|
38224
38188
|
if (loginStatus !== LOGIN_STATUS.WAIT && liveInfo) {
|
|
38225
38189
|
onSendSensors({
|
|
38226
38190
|
pageName: TrackPageName,
|
|
38227
|
-
eventName: '
|
|
38191
|
+
eventName: 'edu_Platform_publiclive_detail_page',
|
|
38228
38192
|
params: {
|
|
38229
38193
|
publiclive_id: liveInfo.live_id,
|
|
38230
38194
|
publiclive_name: liveInfo.live_name,
|
|
@@ -38255,7 +38219,7 @@ function PublicLiveDetail(_ref) {
|
|
|
38255
38219
|
if (needReport) {
|
|
38256
38220
|
onSendSensors({
|
|
38257
38221
|
pageName: TrackPageName,
|
|
38258
|
-
eventName: '
|
|
38222
|
+
eventName: 'edu_Platform_publiclive_detail_replay_click',
|
|
38259
38223
|
params: {
|
|
38260
38224
|
publiclive_id: liveInfo.live_id,
|
|
38261
38225
|
publiclive_name: liveInfo.live_name,
|
|
@@ -38271,7 +38235,7 @@ function PublicLiveDetail(_ref) {
|
|
|
38271
38235
|
var handleRequestFullScreen = function handleRequestFullScreen() {
|
|
38272
38236
|
onSendSensors({
|
|
38273
38237
|
pageName: TrackPageName,
|
|
38274
|
-
eventName: '
|
|
38238
|
+
eventName: 'edu_Platform_publiclive_detail_fullscreen_click'
|
|
38275
38239
|
});
|
|
38276
38240
|
};
|
|
38277
38241
|
|
|
@@ -38279,7 +38243,7 @@ function PublicLiveDetail(_ref) {
|
|
|
38279
38243
|
if (needReport) {
|
|
38280
38244
|
onSendSensors({
|
|
38281
38245
|
pageName: TrackPageName,
|
|
38282
|
-
eventName: '
|
|
38246
|
+
eventName: 'edu_Platform_publiclive_detail_play_click',
|
|
38283
38247
|
params: {
|
|
38284
38248
|
publiclive_id: liveInfo.live_id,
|
|
38285
38249
|
publiclive_name: liveInfo.live_name,
|