@x-edu/live-player 0.0.25 → 0.0.27
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 +288 -348
- package/dist/XEduLivePlayerPre.common.js +293 -706
- package/package.json +1 -1
- package/src/list/ListItem/Action/index.jsx +4 -4
- package/src/list/ListItem/index.jsx +14 -25
- package/src/list/index.jsx +2 -1
|
@@ -25293,12 +25293,36 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbkAAAFBCAYAAADq
|
|
|
25293
25293
|
|
|
25294
25294
|
/***/ }),
|
|
25295
25295
|
|
|
25296
|
-
/***/
|
|
25296
|
+
/***/ 4687:
|
|
25297
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25298
|
+
|
|
25299
|
+
// TODO(Babel 8): Remove this file.
|
|
25300
|
+
|
|
25301
|
+
var runtime = __webpack_require__(9240)();
|
|
25302
|
+
module.exports = runtime;
|
|
25303
|
+
|
|
25304
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
25305
|
+
try {
|
|
25306
|
+
regeneratorRuntime = runtime;
|
|
25307
|
+
} catch (accidentalStrictMode) {
|
|
25308
|
+
if (typeof globalThis === "object") {
|
|
25309
|
+
globalThis.regeneratorRuntime = runtime;
|
|
25310
|
+
} else {
|
|
25311
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
25312
|
+
}
|
|
25313
|
+
}
|
|
25314
|
+
|
|
25315
|
+
|
|
25316
|
+
/***/ }),
|
|
25317
|
+
|
|
25318
|
+
/***/ 9240:
|
|
25297
25319
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25298
25320
|
|
|
25299
|
-
var _typeof = (__webpack_require__(
|
|
25321
|
+
var _typeof = (__webpack_require__(5934)["default"]);
|
|
25300
25322
|
function _regeneratorRuntime() {
|
|
25301
|
-
"use strict";
|
|
25323
|
+
"use strict";
|
|
25324
|
+
|
|
25325
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
25302
25326
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
25303
25327
|
return e;
|
|
25304
25328
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
@@ -25603,7 +25627,7 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
|
25603
25627
|
|
|
25604
25628
|
/***/ }),
|
|
25605
25629
|
|
|
25606
|
-
/***/
|
|
25630
|
+
/***/ 5934:
|
|
25607
25631
|
/***/ (function(module) {
|
|
25608
25632
|
|
|
25609
25633
|
function _typeof(o) {
|
|
@@ -25619,26 +25643,26 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
|
|
|
25619
25643
|
|
|
25620
25644
|
/***/ }),
|
|
25621
25645
|
|
|
25622
|
-
/***/
|
|
25646
|
+
/***/ 6979:
|
|
25623
25647
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25624
25648
|
|
|
25649
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
25625
25650
|
// TODO(Babel 8): Remove this file.
|
|
25626
25651
|
|
|
25627
|
-
var runtime = __webpack_require__(
|
|
25652
|
+
var runtime = __webpack_require__(9240)();
|
|
25628
25653
|
module.exports = runtime;
|
|
25629
25654
|
|
|
25630
25655
|
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
25631
25656
|
try {
|
|
25632
25657
|
regeneratorRuntime = runtime;
|
|
25633
25658
|
} catch (accidentalStrictMode) {
|
|
25634
|
-
if (typeof globalThis === "object") {
|
|
25659
|
+
if ((typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis)) === "object") {
|
|
25635
25660
|
globalThis.regeneratorRuntime = runtime;
|
|
25636
25661
|
} else {
|
|
25637
25662
|
Function("r", "regeneratorRuntime = r")(runtime);
|
|
25638
25663
|
}
|
|
25639
25664
|
}
|
|
25640
25665
|
|
|
25641
|
-
|
|
25642
25666
|
/***/ }),
|
|
25643
25667
|
|
|
25644
25668
|
/***/ 8593:
|
|
@@ -30926,8 +30950,158 @@ var video_style_update = injectStylesIntoStyleTag_default()(video_style/* defaul
|
|
|
30926
30950
|
;// CONCATENATED MODULE: ./node_modules/@sdp.nd/fish/es/video/style/index.js
|
|
30927
30951
|
|
|
30928
30952
|
|
|
30953
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
30954
|
+
function esm_extends_extends() {
|
|
30955
|
+
esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
30956
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
30957
|
+
var source = arguments[i];
|
|
30958
|
+
for (var key in source) {
|
|
30959
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
30960
|
+
target[key] = source[key];
|
|
30961
|
+
}
|
|
30962
|
+
}
|
|
30963
|
+
}
|
|
30964
|
+
return target;
|
|
30965
|
+
};
|
|
30966
|
+
return esm_extends_extends.apply(this, arguments);
|
|
30967
|
+
}
|
|
30968
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
30969
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
30970
|
+
if (!(instance instanceof Constructor)) {
|
|
30971
|
+
throw new TypeError("Cannot call a class as a function");
|
|
30972
|
+
}
|
|
30973
|
+
}
|
|
30974
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
30975
|
+
function esm_typeof_typeof(o) {
|
|
30976
|
+
"@babel/helpers - typeof";
|
|
30977
|
+
|
|
30978
|
+
return esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
30979
|
+
return typeof o;
|
|
30980
|
+
} : function (o) {
|
|
30981
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
30982
|
+
}, esm_typeof_typeof(o);
|
|
30983
|
+
}
|
|
30984
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
30985
|
+
|
|
30986
|
+
function toPrimitive_toPrimitive(input, hint) {
|
|
30987
|
+
if (esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
30988
|
+
var prim = input[Symbol.toPrimitive];
|
|
30989
|
+
if (prim !== undefined) {
|
|
30990
|
+
var res = prim.call(input, hint || "default");
|
|
30991
|
+
if (esm_typeof_typeof(res) !== "object") return res;
|
|
30992
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
30993
|
+
}
|
|
30994
|
+
return (hint === "string" ? String : Number)(input);
|
|
30995
|
+
}
|
|
30996
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
30997
|
+
|
|
30998
|
+
|
|
30999
|
+
function toPropertyKey_toPropertyKey(arg) {
|
|
31000
|
+
var key = toPrimitive_toPrimitive(arg, "string");
|
|
31001
|
+
return esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
31002
|
+
}
|
|
31003
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
31004
|
+
|
|
31005
|
+
function createClass_defineProperties(target, props) {
|
|
31006
|
+
for (var i = 0; i < props.length; i++) {
|
|
31007
|
+
var descriptor = props[i];
|
|
31008
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
31009
|
+
descriptor.configurable = true;
|
|
31010
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
31011
|
+
Object.defineProperty(target, toPropertyKey_toPropertyKey(descriptor.key), descriptor);
|
|
31012
|
+
}
|
|
31013
|
+
}
|
|
31014
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
31015
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
31016
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
31017
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
31018
|
+
writable: false
|
|
31019
|
+
});
|
|
31020
|
+
return Constructor;
|
|
31021
|
+
}
|
|
31022
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
31023
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
31024
|
+
if (self === void 0) {
|
|
31025
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
31026
|
+
}
|
|
31027
|
+
return self;
|
|
31028
|
+
}
|
|
31029
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
31030
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
31031
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
31032
|
+
o.__proto__ = p;
|
|
31033
|
+
return o;
|
|
31034
|
+
};
|
|
31035
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
31036
|
+
}
|
|
31037
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
31038
|
+
|
|
31039
|
+
function inherits_inherits(subClass, superClass) {
|
|
31040
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
31041
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
31042
|
+
}
|
|
31043
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
31044
|
+
constructor: {
|
|
31045
|
+
value: subClass,
|
|
31046
|
+
writable: true,
|
|
31047
|
+
configurable: true
|
|
31048
|
+
}
|
|
31049
|
+
});
|
|
31050
|
+
Object.defineProperty(subClass, "prototype", {
|
|
31051
|
+
writable: false
|
|
31052
|
+
});
|
|
31053
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
31054
|
+
}
|
|
31055
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
31056
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
31057
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
31058
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
31059
|
+
};
|
|
31060
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
31061
|
+
}
|
|
31062
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
31063
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
31064
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
31065
|
+
if (Reflect.construct.sham) return false;
|
|
31066
|
+
if (typeof Proxy === "function") return true;
|
|
31067
|
+
try {
|
|
31068
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
31069
|
+
return true;
|
|
31070
|
+
} catch (e) {
|
|
31071
|
+
return false;
|
|
31072
|
+
}
|
|
31073
|
+
}
|
|
31074
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
31075
|
+
|
|
31076
|
+
|
|
31077
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
31078
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
31079
|
+
return call;
|
|
31080
|
+
} else if (call !== void 0) {
|
|
31081
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
31082
|
+
}
|
|
31083
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
31084
|
+
}
|
|
31085
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
31086
|
+
|
|
31087
|
+
|
|
31088
|
+
|
|
31089
|
+
function createSuper_createSuper(Derived) {
|
|
31090
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
31091
|
+
return function _createSuperInternal() {
|
|
31092
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
31093
|
+
result;
|
|
31094
|
+
if (hasNativeReflectConstruct) {
|
|
31095
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
31096
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
31097
|
+
} else {
|
|
31098
|
+
result = Super.apply(this, arguments);
|
|
31099
|
+
}
|
|
31100
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
31101
|
+
};
|
|
31102
|
+
}
|
|
30929
31103
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
30930
|
-
var regenerator = __webpack_require__(
|
|
31104
|
+
var regenerator = __webpack_require__(6979);
|
|
30931
31105
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
30932
31106
|
;// CONCATENATED MODULE: external {"commonjs":"react-dom","commonjs2":"react-dom","root":"ReactDOM"}
|
|
30933
31107
|
var external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject = require("react-dom");
|
|
@@ -31004,14 +31178,14 @@ var videoCdnPrefix = '//gcdncs.101.com/v0.1/static/share/fish/videoplayer';
|
|
|
31004
31178
|
var defaultVideoUrl = getVideoUrl(videoCdnPrefix, video_version);
|
|
31005
31179
|
|
|
31006
31180
|
var Video = /*#__PURE__*/function (_React$Component) {
|
|
31007
|
-
|
|
31181
|
+
inherits_inherits(Video, _React$Component);
|
|
31008
31182
|
|
|
31009
|
-
var _super =
|
|
31183
|
+
var _super = createSuper_createSuper(Video);
|
|
31010
31184
|
|
|
31011
31185
|
function Video() {
|
|
31012
31186
|
var _this;
|
|
31013
31187
|
|
|
31014
|
-
|
|
31188
|
+
classCallCheck_classCallCheck(this, Video);
|
|
31015
31189
|
|
|
31016
31190
|
_this = _super.apply(this, arguments);
|
|
31017
31191
|
_this.videoUrl = {}; // eslint-disable-next-line class-methods-use-this
|
|
@@ -31024,11 +31198,11 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
31024
31198
|
csOriginUrl = getVideoUrl(cdnPrefix, video_version);
|
|
31025
31199
|
}
|
|
31026
31200
|
|
|
31027
|
-
return
|
|
31201
|
+
return esm_extends_extends(esm_extends_extends({}, csOriginUrl), Video.url);
|
|
31028
31202
|
};
|
|
31029
31203
|
|
|
31030
31204
|
_this.loadVideoPlayer = function () {
|
|
31031
|
-
return __awaiter(
|
|
31205
|
+
return __awaiter(assertThisInitialized_assertThisInitialized(_this), void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
31032
31206
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
31033
31207
|
while (1) {
|
|
31034
31208
|
switch (_context.prev = _context.next) {
|
|
@@ -31079,7 +31253,7 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
31079
31253
|
return _this;
|
|
31080
31254
|
}
|
|
31081
31255
|
|
|
31082
|
-
|
|
31256
|
+
createClass_createClass(Video, [{
|
|
31083
31257
|
key: "componentDidMount",
|
|
31084
31258
|
value: function componentDidMount() {
|
|
31085
31259
|
var _this2 = this;
|
|
@@ -32258,35 +32432,6 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
32258
32432
|
// style dependencies
|
|
32259
32433
|
|
|
32260
32434
|
|
|
32261
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
32262
|
-
function esm_typeof_typeof(o) {
|
|
32263
|
-
"@babel/helpers - typeof";
|
|
32264
|
-
|
|
32265
|
-
return esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
32266
|
-
return typeof o;
|
|
32267
|
-
} : function (o) {
|
|
32268
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
32269
|
-
}, esm_typeof_typeof(o);
|
|
32270
|
-
}
|
|
32271
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
32272
|
-
|
|
32273
|
-
function toPrimitive_toPrimitive(input, hint) {
|
|
32274
|
-
if (esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
32275
|
-
var prim = input[Symbol.toPrimitive];
|
|
32276
|
-
if (prim !== undefined) {
|
|
32277
|
-
var res = prim.call(input, hint || "default");
|
|
32278
|
-
if (esm_typeof_typeof(res) !== "object") return res;
|
|
32279
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
32280
|
-
}
|
|
32281
|
-
return (hint === "string" ? String : Number)(input);
|
|
32282
|
-
}
|
|
32283
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
32284
|
-
|
|
32285
|
-
|
|
32286
|
-
function toPropertyKey_toPropertyKey(arg) {
|
|
32287
|
-
var key = toPrimitive_toPrimitive(arg, "string");
|
|
32288
|
-
return esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
32289
|
-
}
|
|
32290
32435
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
32291
32436
|
|
|
32292
32437
|
function defineProperty_defineProperty(obj, key, value) {
|
|
@@ -32303,21 +32448,6 @@ function defineProperty_defineProperty(obj, key, value) {
|
|
|
32303
32448
|
}
|
|
32304
32449
|
return obj;
|
|
32305
32450
|
}
|
|
32306
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
32307
|
-
function esm_extends_extends() {
|
|
32308
|
-
esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
32309
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
32310
|
-
var source = arguments[i];
|
|
32311
|
-
for (var key in source) {
|
|
32312
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32313
|
-
target[key] = source[key];
|
|
32314
|
-
}
|
|
32315
|
-
}
|
|
32316
|
-
}
|
|
32317
|
-
return target;
|
|
32318
|
-
};
|
|
32319
|
-
return esm_extends_extends.apply(this, arguments);
|
|
32320
|
-
}
|
|
32321
32451
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
32322
32452
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
32323
32453
|
if (Array.isArray(arr)) return arr;
|
|
@@ -32378,112 +32508,6 @@ function nonIterableRest_nonIterableRest() {
|
|
|
32378
32508
|
function slicedToArray_slicedToArray(arr, i) {
|
|
32379
32509
|
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
32380
32510
|
}
|
|
32381
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
32382
|
-
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
32383
|
-
if (!(instance instanceof Constructor)) {
|
|
32384
|
-
throw new TypeError("Cannot call a class as a function");
|
|
32385
|
-
}
|
|
32386
|
-
}
|
|
32387
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
32388
|
-
|
|
32389
|
-
function createClass_defineProperties(target, props) {
|
|
32390
|
-
for (var i = 0; i < props.length; i++) {
|
|
32391
|
-
var descriptor = props[i];
|
|
32392
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32393
|
-
descriptor.configurable = true;
|
|
32394
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
32395
|
-
Object.defineProperty(target, toPropertyKey_toPropertyKey(descriptor.key), descriptor);
|
|
32396
|
-
}
|
|
32397
|
-
}
|
|
32398
|
-
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
32399
|
-
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
32400
|
-
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
32401
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
32402
|
-
writable: false
|
|
32403
|
-
});
|
|
32404
|
-
return Constructor;
|
|
32405
|
-
}
|
|
32406
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
32407
|
-
function assertThisInitialized_assertThisInitialized(self) {
|
|
32408
|
-
if (self === void 0) {
|
|
32409
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
32410
|
-
}
|
|
32411
|
-
return self;
|
|
32412
|
-
}
|
|
32413
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
32414
|
-
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
32415
|
-
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
32416
|
-
o.__proto__ = p;
|
|
32417
|
-
return o;
|
|
32418
|
-
};
|
|
32419
|
-
return setPrototypeOf_setPrototypeOf(o, p);
|
|
32420
|
-
}
|
|
32421
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
32422
|
-
|
|
32423
|
-
function inherits_inherits(subClass, superClass) {
|
|
32424
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
32425
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
32426
|
-
}
|
|
32427
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
32428
|
-
constructor: {
|
|
32429
|
-
value: subClass,
|
|
32430
|
-
writable: true,
|
|
32431
|
-
configurable: true
|
|
32432
|
-
}
|
|
32433
|
-
});
|
|
32434
|
-
Object.defineProperty(subClass, "prototype", {
|
|
32435
|
-
writable: false
|
|
32436
|
-
});
|
|
32437
|
-
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
32438
|
-
}
|
|
32439
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
32440
|
-
function getPrototypeOf_getPrototypeOf(o) {
|
|
32441
|
-
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
32442
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
32443
|
-
};
|
|
32444
|
-
return getPrototypeOf_getPrototypeOf(o);
|
|
32445
|
-
}
|
|
32446
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
32447
|
-
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
32448
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
32449
|
-
if (Reflect.construct.sham) return false;
|
|
32450
|
-
if (typeof Proxy === "function") return true;
|
|
32451
|
-
try {
|
|
32452
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
32453
|
-
return true;
|
|
32454
|
-
} catch (e) {
|
|
32455
|
-
return false;
|
|
32456
|
-
}
|
|
32457
|
-
}
|
|
32458
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
32459
|
-
|
|
32460
|
-
|
|
32461
|
-
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
32462
|
-
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
32463
|
-
return call;
|
|
32464
|
-
} else if (call !== void 0) {
|
|
32465
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
32466
|
-
}
|
|
32467
|
-
return assertThisInitialized_assertThisInitialized(self);
|
|
32468
|
-
}
|
|
32469
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
32470
|
-
|
|
32471
|
-
|
|
32472
|
-
|
|
32473
|
-
function createSuper_createSuper(Derived) {
|
|
32474
|
-
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
32475
|
-
return function _createSuperInternal() {
|
|
32476
|
-
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
32477
|
-
result;
|
|
32478
|
-
if (hasNativeReflectConstruct) {
|
|
32479
|
-
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
32480
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
32481
|
-
} else {
|
|
32482
|
-
result = Super.apply(this, arguments);
|
|
32483
|
-
}
|
|
32484
|
-
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
32485
|
-
};
|
|
32486
|
-
}
|
|
32487
32511
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
32488
32512
|
var raf = function raf(callback) {
|
|
32489
32513
|
return +setTimeout(callback, 16);
|
|
@@ -37869,7 +37893,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
37869
37893
|
}
|
|
37870
37894
|
|
|
37871
37895
|
function valueUtil_isObject(obj) {
|
|
37872
|
-
return
|
|
37896
|
+
return esm_typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
37873
37897
|
}
|
|
37874
37898
|
/**
|
|
37875
37899
|
* Copy values into store and return a new values object
|
|
@@ -37878,7 +37902,7 @@ function valueUtil_isObject(obj) {
|
|
|
37878
37902
|
|
|
37879
37903
|
|
|
37880
37904
|
function internalSetValues(store, values) {
|
|
37881
|
-
var newStore = Array.isArray(store) ?
|
|
37905
|
+
var newStore = Array.isArray(store) ? esm_toConsumableArray_toConsumableArray(store) : objectSpread2_objectSpread2({}, store);
|
|
37882
37906
|
|
|
37883
37907
|
if (!values) {
|
|
37884
37908
|
return newStore;
|
|
@@ -37921,14 +37945,14 @@ function isSimilar(source, target) {
|
|
|
37921
37945
|
return false;
|
|
37922
37946
|
}
|
|
37923
37947
|
|
|
37924
|
-
if (!source || !target ||
|
|
37948
|
+
if (!source || !target || esm_typeof_typeof(source) !== 'object' || esm_typeof_typeof(target) !== 'object') {
|
|
37925
37949
|
return false;
|
|
37926
37950
|
}
|
|
37927
37951
|
|
|
37928
37952
|
var sourceKeys = Object.keys(source);
|
|
37929
37953
|
var targetKeys = Object.keys(target);
|
|
37930
|
-
var keys = new Set([].concat(
|
|
37931
|
-
return
|
|
37954
|
+
var keys = new Set([].concat(esm_toConsumableArray_toConsumableArray(sourceKeys), esm_toConsumableArray_toConsumableArray(targetKeys)));
|
|
37955
|
+
return esm_toConsumableArray_toConsumableArray(keys).every(function (key) {
|
|
37932
37956
|
var sourceValue = source[key];
|
|
37933
37957
|
var targetValue = target[key];
|
|
37934
37958
|
|
|
@@ -37971,12 +37995,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
37971
37995
|
|
|
37972
37996
|
if (diff > 0) {
|
|
37973
37997
|
// move left
|
|
37974
|
-
return [].concat(
|
|
37998
|
+
return [].concat(esm_toConsumableArray_toConsumableArray(array.slice(0, toIndex)), [item], esm_toConsumableArray_toConsumableArray(array.slice(toIndex, moveIndex)), esm_toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
37975
37999
|
}
|
|
37976
38000
|
|
|
37977
38001
|
if (diff < 0) {
|
|
37978
38002
|
// move right
|
|
37979
|
-
return [].concat(
|
|
38003
|
+
return [].concat(esm_toConsumableArray_toConsumableArray(array.slice(0, moveIndex)), esm_toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], esm_toConsumableArray_toConsumableArray(array.slice(toIndex + 1, length)));
|
|
37980
38004
|
}
|
|
37981
38005
|
|
|
37982
38006
|
return array;
|
|
@@ -38022,7 +38046,7 @@ function _validateRule() {
|
|
|
38022
38046
|
while (1) {
|
|
38023
38047
|
switch (_context2.prev = _context2.next) {
|
|
38024
38048
|
case 0:
|
|
38025
|
-
cloneRule =
|
|
38049
|
+
cloneRule = objectSpread2_objectSpread2({}, rule); // Bug of `async-validator`
|
|
38026
38050
|
// https://github.com/react-component/field-form/issues/316
|
|
38027
38051
|
// https://github.com/react-component/field-form/issues/313
|
|
38028
38052
|
|
|
@@ -38035,13 +38059,13 @@ function _validateRule() {
|
|
|
38035
38059
|
delete cloneRule.defaultField;
|
|
38036
38060
|
}
|
|
38037
38061
|
|
|
38038
|
-
validator = new AsyncValidator(
|
|
38062
|
+
validator = new AsyncValidator(defineProperty_defineProperty({}, name, [cloneRule]));
|
|
38039
38063
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
38040
38064
|
validator.messages(messages);
|
|
38041
38065
|
result = [];
|
|
38042
38066
|
_context2.prev = 8;
|
|
38043
38067
|
_context2.next = 11;
|
|
38044
|
-
return Promise.resolve(validator.validate(
|
|
38068
|
+
return Promise.resolve(validator.validate(defineProperty_defineProperty({}, name, value), objectSpread2_objectSpread2({}, options)));
|
|
38045
38069
|
|
|
38046
38070
|
case 11:
|
|
38047
38071
|
_context2.next = 16;
|
|
@@ -38081,12 +38105,12 @@ function _validateRule() {
|
|
|
38081
38105
|
case 19:
|
|
38082
38106
|
subResults = _context2.sent;
|
|
38083
38107
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
38084
|
-
return [].concat(
|
|
38108
|
+
return [].concat(esm_toConsumableArray_toConsumableArray(prev), esm_toConsumableArray_toConsumableArray(errors));
|
|
38085
38109
|
}, []));
|
|
38086
38110
|
|
|
38087
38111
|
case 21:
|
|
38088
38112
|
// Replace message with variables
|
|
38089
|
-
kv =
|
|
38113
|
+
kv = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rule), {}, {
|
|
38090
38114
|
name: name,
|
|
38091
38115
|
enum: (rule.enum || []).join(', ')
|
|
38092
38116
|
}, messageVariables);
|
|
@@ -38115,7 +38139,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
38115
38139
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
38116
38140
|
var originValidatorFunc = currentRule.validator;
|
|
38117
38141
|
|
|
38118
|
-
var cloneRule =
|
|
38142
|
+
var cloneRule = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentRule), {}, {
|
|
38119
38143
|
ruleIndex: ruleIndex
|
|
38120
38144
|
}); // Replace validator if needed
|
|
38121
38145
|
|
|
@@ -38272,7 +38296,7 @@ function _finishOnAllFailed() {
|
|
|
38272
38296
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
38273
38297
|
var _ref5;
|
|
38274
38298
|
|
|
38275
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
38299
|
+
var errors = (_ref5 = []).concat.apply(_ref5, esm_toConsumableArray_toConsumableArray(errorsList));
|
|
38276
38300
|
|
|
38277
38301
|
return errors;
|
|
38278
38302
|
}));
|
|
@@ -38357,9 +38381,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
38357
38381
|
|
|
38358
38382
|
|
|
38359
38383
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
38360
|
-
|
|
38384
|
+
inherits_inherits(Field, _React$Component);
|
|
38361
38385
|
|
|
38362
|
-
var _super =
|
|
38386
|
+
var _super = createSuper_createSuper(Field);
|
|
38363
38387
|
|
|
38364
38388
|
/**
|
|
38365
38389
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -38375,7 +38399,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
38375
38399
|
function Field(props) {
|
|
38376
38400
|
var _this;
|
|
38377
38401
|
|
|
38378
|
-
|
|
38402
|
+
classCallCheck_classCallCheck(this, Field);
|
|
38379
38403
|
|
|
38380
38404
|
_this = _super.call(this, props); // Register on init
|
|
38381
38405
|
|
|
@@ -38410,7 +38434,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
38410
38434
|
fieldContext = _this$props2.fieldContext;
|
|
38411
38435
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
38412
38436
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
38413
|
-
return name !== undefined ? [].concat(
|
|
38437
|
+
return name !== undefined ? [].concat(esm_toConsumableArray_toConsumableArray(prefixName), esm_toConsumableArray_toConsumableArray(name)) : [];
|
|
38414
38438
|
};
|
|
38415
38439
|
|
|
38416
38440
|
_this.getRules = function () {
|
|
@@ -38443,7 +38467,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
38443
38467
|
|
|
38444
38468
|
_this.triggerMetaEvent = function (destroy) {
|
|
38445
38469
|
var onMetaChange = _this.props.onMetaChange;
|
|
38446
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
38470
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getMeta()), {}, {
|
|
38447
38471
|
destroy: destroy
|
|
38448
38472
|
}));
|
|
38449
38473
|
};
|
|
@@ -38632,9 +38656,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
38632
38656
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
38633
38657
|
|
|
38634
38658
|
if (warningOnly) {
|
|
38635
|
-
nextWarnings.push.apply(nextWarnings,
|
|
38659
|
+
nextWarnings.push.apply(nextWarnings, esm_toConsumableArray_toConsumableArray(errors));
|
|
38636
38660
|
} else {
|
|
38637
|
-
nextErrors.push.apply(nextErrors,
|
|
38661
|
+
nextErrors.push.apply(nextErrors, esm_toConsumableArray_toConsumableArray(errors));
|
|
38638
38662
|
}
|
|
38639
38663
|
});
|
|
38640
38664
|
_this.errors = nextErrors;
|
|
@@ -38725,7 +38749,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
38725
38749
|
if (typeof children === 'function') {
|
|
38726
38750
|
var meta = _this.getMeta();
|
|
38727
38751
|
|
|
38728
|
-
return
|
|
38752
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
38729
38753
|
isFunction: true
|
|
38730
38754
|
});
|
|
38731
38755
|
} // Filed element only
|
|
@@ -38777,13 +38801,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
38777
38801
|
var value = _this.getValue();
|
|
38778
38802
|
|
|
38779
38803
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
38780
|
-
return
|
|
38804
|
+
return defineProperty_defineProperty({}, valuePropName, val);
|
|
38781
38805
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
38782
38806
|
|
|
38783
38807
|
|
|
38784
38808
|
var originTriggerFunc = childProps[trigger];
|
|
38785
38809
|
|
|
38786
|
-
var control =
|
|
38810
|
+
var control = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
38787
38811
|
|
|
38788
38812
|
|
|
38789
38813
|
control[trigger] = function () {
|
|
@@ -38854,13 +38878,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
38854
38878
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
38855
38879
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
38856
38880
|
|
|
38857
|
-
initEntityValue(
|
|
38881
|
+
initEntityValue(assertThisInitialized_assertThisInitialized(_this));
|
|
38858
38882
|
}
|
|
38859
38883
|
|
|
38860
38884
|
return _this;
|
|
38861
38885
|
}
|
|
38862
38886
|
|
|
38863
|
-
|
|
38887
|
+
createClass_createClass(Field, [{
|
|
38864
38888
|
key: "componentDidMount",
|
|
38865
38889
|
value: function componentDidMount() {
|
|
38866
38890
|
var _this$props7 = this.props,
|
|
@@ -38934,7 +38958,7 @@ Field.defaultProps = {
|
|
|
38934
38958
|
|
|
38935
38959
|
function WrapperField(_ref5) {
|
|
38936
38960
|
var name = _ref5.name,
|
|
38937
|
-
restProps =
|
|
38961
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(_ref5, Field_excluded);
|
|
38938
38962
|
|
|
38939
38963
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
38940
38964
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -38948,7 +38972,7 @@ function WrapperField(_ref5) {
|
|
|
38948
38972
|
|
|
38949
38973
|
if (false) {}
|
|
38950
38974
|
|
|
38951
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
38975
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, esm_extends_extends({
|
|
38952
38976
|
key: key,
|
|
38953
38977
|
name: namePath
|
|
38954
38978
|
}, restProps, {
|
|
@@ -38985,7 +39009,7 @@ var List = function List(_ref) {
|
|
|
38985
39009
|
}
|
|
38986
39010
|
|
|
38987
39011
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
38988
|
-
var prefixName = [].concat(
|
|
39012
|
+
var prefixName = [].concat(esm_toConsumableArray_toConsumableArray(parentPrefixName), esm_toConsumableArray_toConsumableArray(getNamePath(name)));
|
|
38989
39013
|
|
|
38990
39014
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
38991
39015
|
var source = _ref2.source;
|
|
@@ -38998,7 +39022,7 @@ var List = function List(_ref) {
|
|
|
38998
39022
|
};
|
|
38999
39023
|
|
|
39000
39024
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
39001
|
-
value:
|
|
39025
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, context), {}, {
|
|
39002
39026
|
prefixName: prefixName
|
|
39003
39027
|
})
|
|
39004
39028
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -39029,13 +39053,13 @@ var List = function List(_ref) {
|
|
|
39029
39053
|
var newValue = getNewValue();
|
|
39030
39054
|
|
|
39031
39055
|
if (index >= 0 && index <= newValue.length) {
|
|
39032
|
-
keyManager.keys = [].concat(
|
|
39033
|
-
onChange([].concat(
|
|
39056
|
+
keyManager.keys = [].concat(esm_toConsumableArray_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], esm_toConsumableArray_toConsumableArray(keyManager.keys.slice(index)));
|
|
39057
|
+
onChange([].concat(esm_toConsumableArray_toConsumableArray(newValue.slice(0, index)), [defaultValue], esm_toConsumableArray_toConsumableArray(newValue.slice(index))));
|
|
39034
39058
|
} else {
|
|
39035
39059
|
if (false) {}
|
|
39036
39060
|
|
|
39037
|
-
keyManager.keys = [].concat(
|
|
39038
|
-
onChange([].concat(
|
|
39061
|
+
keyManager.keys = [].concat(esm_toConsumableArray_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
39062
|
+
onChange([].concat(esm_toConsumableArray_toConsumableArray(newValue), [defaultValue]));
|
|
39039
39063
|
}
|
|
39040
39064
|
|
|
39041
39065
|
keyManager.id += 1;
|
|
@@ -39099,50 +39123,6 @@ var List = function List(_ref) {
|
|
|
39099
39123
|
};
|
|
39100
39124
|
|
|
39101
39125
|
/* harmony default export */ var es_List = (List);
|
|
39102
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
39103
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
39104
|
-
if (Array.isArray(arr)) return arr;
|
|
39105
|
-
}
|
|
39106
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
39107
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(r, l) {
|
|
39108
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
39109
|
-
if (null != t) {
|
|
39110
|
-
var e,
|
|
39111
|
-
n,
|
|
39112
|
-
i,
|
|
39113
|
-
u,
|
|
39114
|
-
a = [],
|
|
39115
|
-
f = !0,
|
|
39116
|
-
o = !1;
|
|
39117
|
-
try {
|
|
39118
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
39119
|
-
if (Object(t) !== t) return;
|
|
39120
|
-
f = !1;
|
|
39121
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
39122
|
-
} catch (r) {
|
|
39123
|
-
o = !0, n = r;
|
|
39124
|
-
} finally {
|
|
39125
|
-
try {
|
|
39126
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
39127
|
-
} finally {
|
|
39128
|
-
if (o) throw n;
|
|
39129
|
-
}
|
|
39130
|
-
}
|
|
39131
|
-
return a;
|
|
39132
|
-
}
|
|
39133
|
-
}
|
|
39134
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
39135
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
39136
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
39137
|
-
}
|
|
39138
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
39139
|
-
|
|
39140
|
-
|
|
39141
|
-
|
|
39142
|
-
|
|
39143
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
39144
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
39145
|
-
}
|
|
39146
39126
|
;// CONCATENATED MODULE: ./node_modules/rc-field-form/es/utils/asyncUtil.js
|
|
39147
39127
|
function allPromiseFinish(promiseList) {
|
|
39148
39128
|
var hasError = false;
|
|
@@ -39188,7 +39168,7 @@ var SPLIT = '__@field_split__';
|
|
|
39188
39168
|
|
|
39189
39169
|
function normalize(namePath) {
|
|
39190
39170
|
return namePath.map(function (cell) {
|
|
39191
|
-
return "".concat(
|
|
39171
|
+
return "".concat(esm_typeof_typeof(cell), ":").concat(cell);
|
|
39192
39172
|
}) // Magic split
|
|
39193
39173
|
.join(SPLIT);
|
|
39194
39174
|
}
|
|
@@ -39199,12 +39179,12 @@ function normalize(namePath) {
|
|
|
39199
39179
|
|
|
39200
39180
|
var NameMap = /*#__PURE__*/function () {
|
|
39201
39181
|
function NameMap() {
|
|
39202
|
-
|
|
39182
|
+
classCallCheck_classCallCheck(this, NameMap);
|
|
39203
39183
|
|
|
39204
39184
|
this.kvs = new Map();
|
|
39205
39185
|
}
|
|
39206
39186
|
|
|
39207
|
-
|
|
39187
|
+
createClass_createClass(NameMap, [{
|
|
39208
39188
|
key: "set",
|
|
39209
39189
|
value: function set(key, value) {
|
|
39210
39190
|
this.kvs.set(normalize(key), value);
|
|
@@ -39235,8 +39215,8 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
39235
39215
|
}, {
|
|
39236
39216
|
key: "map",
|
|
39237
39217
|
value: function map(callback) {
|
|
39238
|
-
return
|
|
39239
|
-
var _ref2 =
|
|
39218
|
+
return esm_toConsumableArray_toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
39219
|
+
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
39240
39220
|
key = _ref2[0],
|
|
39241
39221
|
value = _ref2[1];
|
|
39242
39222
|
|
|
@@ -39244,7 +39224,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
39244
39224
|
return callback({
|
|
39245
39225
|
key: cells.map(function (cell) {
|
|
39246
39226
|
var _cell$match = cell.match(/^([^:]*):(.*)$/),
|
|
39247
|
-
_cell$match2 =
|
|
39227
|
+
_cell$match2 = slicedToArray_slicedToArray(_cell$match, 3),
|
|
39248
39228
|
type = _cell$match2[1],
|
|
39249
39229
|
unit = _cell$match2[2];
|
|
39250
39230
|
|
|
@@ -39289,7 +39269,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
39289
39269
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
39290
39270
|
var _this = this;
|
|
39291
39271
|
|
|
39292
|
-
|
|
39272
|
+
classCallCheck_classCallCheck(this, FormStore);
|
|
39293
39273
|
|
|
39294
39274
|
this.formHooked = false;
|
|
39295
39275
|
this.forceRootUpdate = void 0;
|
|
@@ -39549,7 +39529,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
39549
39529
|
return fieldNamePath[i] === nameUnit;
|
|
39550
39530
|
})) {
|
|
39551
39531
|
map.update(shortNamePath, function (list) {
|
|
39552
|
-
return [].concat(
|
|
39532
|
+
return [].concat(esm_toConsumableArray_toConsumableArray(list), [field]);
|
|
39553
39533
|
});
|
|
39554
39534
|
}
|
|
39555
39535
|
});
|
|
@@ -39640,7 +39620,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
39640
39620
|
|
|
39641
39621
|
|
|
39642
39622
|
if (!info.skipExist || originValue === undefined) {
|
|
39643
|
-
_this.store = setValue(_this.store, namePath,
|
|
39623
|
+
_this.store = setValue(_this.store, namePath, esm_toConsumableArray_toConsumableArray(records)[0].value);
|
|
39644
39624
|
}
|
|
39645
39625
|
}
|
|
39646
39626
|
}
|
|
@@ -39660,7 +39640,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
39660
39640
|
if (records) {
|
|
39661
39641
|
var _requiredFieldEntitie;
|
|
39662
39642
|
|
|
39663
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
39643
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, esm_toConsumableArray_toConsumableArray(esm_toConsumableArray_toConsumableArray(records).map(function (r) {
|
|
39664
39644
|
return r.entity;
|
|
39665
39645
|
})));
|
|
39666
39646
|
}
|
|
@@ -39713,7 +39693,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
39713
39693
|
fields.forEach(function (fieldData) {
|
|
39714
39694
|
var name = fieldData.name,
|
|
39715
39695
|
errors = fieldData.errors,
|
|
39716
|
-
data =
|
|
39696
|
+
data = esm_objectWithoutProperties_objectWithoutProperties(fieldData, useForm_excluded);
|
|
39717
39697
|
|
|
39718
39698
|
var namePath = getNamePath(name); // Value
|
|
39719
39699
|
|
|
@@ -39735,7 +39715,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
39735
39715
|
var namePath = field.getNamePath();
|
|
39736
39716
|
var meta = field.getMeta();
|
|
39737
39717
|
|
|
39738
|
-
var fieldData =
|
|
39718
|
+
var fieldData = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, meta), {}, {
|
|
39739
39719
|
name: namePath,
|
|
39740
39720
|
value: _this.getFieldValue(namePath)
|
|
39741
39721
|
});
|
|
@@ -39834,7 +39814,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
39834
39814
|
|
|
39835
39815
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
39836
39816
|
if (_this.subscribable) {
|
|
39837
|
-
var mergedInfo =
|
|
39817
|
+
var mergedInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
39838
39818
|
store: _this.getFieldsValue(true)
|
|
39839
39819
|
});
|
|
39840
39820
|
|
|
@@ -39867,7 +39847,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
39867
39847
|
|
|
39868
39848
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
39869
39849
|
type: 'dependenciesUpdate',
|
|
39870
|
-
relatedFields: [namePath].concat(
|
|
39850
|
+
relatedFields: [namePath].concat(esm_toConsumableArray_toConsumableArray(childrenFields))
|
|
39871
39851
|
}); // trigger callback function
|
|
39872
39852
|
|
|
39873
39853
|
|
|
@@ -39878,7 +39858,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
39878
39858
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
39879
39859
|
}
|
|
39880
39860
|
|
|
39881
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
39861
|
+
_this.triggerOnFieldsChange([namePath].concat(esm_toConsumableArray_toConsumableArray(childrenFields)));
|
|
39882
39862
|
};
|
|
39883
39863
|
|
|
39884
39864
|
this.setFieldsValue = function (store) {
|
|
@@ -40006,8 +39986,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
40006
39986
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
40007
39987
|
|
|
40008
39988
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
40009
|
-
var promise = field.validateRules(
|
|
40010
|
-
validateMessages:
|
|
39989
|
+
var promise = field.validateRules(objectSpread2_objectSpread2({
|
|
39990
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
40011
39991
|
}, options)); // Wrap promise with field
|
|
40012
39992
|
|
|
40013
39993
|
promiseList.push(promise.then(function () {
|
|
@@ -40024,9 +40004,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
40024
40004
|
errors = _ref5.errors;
|
|
40025
40005
|
|
|
40026
40006
|
if (warningOnly) {
|
|
40027
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
40007
|
+
mergedWarnings.push.apply(mergedWarnings, esm_toConsumableArray_toConsumableArray(errors));
|
|
40028
40008
|
} else {
|
|
40029
|
-
mergedErrors.push.apply(mergedErrors,
|
|
40009
|
+
mergedErrors.push.apply(mergedErrors, esm_toConsumableArray_toConsumableArray(errors));
|
|
40030
40010
|
}
|
|
40031
40011
|
});
|
|
40032
40012
|
|
|
@@ -40117,7 +40097,7 @@ function useForm(form) {
|
|
|
40117
40097
|
var formRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef();
|
|
40118
40098
|
|
|
40119
40099
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState({}),
|
|
40120
|
-
_React$useState2 =
|
|
40100
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
40121
40101
|
forceUpdate = _React$useState2[1];
|
|
40122
40102
|
|
|
40123
40103
|
if (!formRef.current) {
|
|
@@ -40157,8 +40137,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
40157
40137
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
40158
40138
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
40159
40139
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
40160
|
-
value:
|
|
40161
|
-
validateMessages:
|
|
40140
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext), {}, {
|
|
40141
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
40162
40142
|
// =========================================================
|
|
40163
40143
|
// = Global Form Control =
|
|
40164
40144
|
// =========================================================
|
|
@@ -40184,13 +40164,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
40184
40164
|
},
|
|
40185
40165
|
registerForm: function registerForm(name, form) {
|
|
40186
40166
|
if (name) {
|
|
40187
|
-
formsRef.current =
|
|
40167
|
+
formsRef.current = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formsRef.current), {}, defineProperty_defineProperty({}, name, form));
|
|
40188
40168
|
}
|
|
40189
40169
|
|
|
40190
40170
|
formContext.registerForm(name, form);
|
|
40191
40171
|
},
|
|
40192
40172
|
unregisterForm: function unregisterForm(name) {
|
|
40193
|
-
var newForms =
|
|
40173
|
+
var newForms = objectSpread2_objectSpread2({}, formsRef.current);
|
|
40194
40174
|
|
|
40195
40175
|
delete newForms[name];
|
|
40196
40176
|
formsRef.current = newForms;
|
|
@@ -40230,13 +40210,13 @@ var Form = function Form(_ref, ref) {
|
|
|
40230
40210
|
_onFieldsChange = _ref.onFieldsChange,
|
|
40231
40211
|
_onFinish = _ref.onFinish,
|
|
40232
40212
|
onFinishFailed = _ref.onFinishFailed,
|
|
40233
|
-
restProps =
|
|
40213
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(_ref, Form_excluded);
|
|
40234
40214
|
|
|
40235
40215
|
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:
|
|
40236
40216
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
40237
40217
|
|
|
40238
40218
|
var _useForm = es_useForm(form),
|
|
40239
|
-
_useForm2 =
|
|
40219
|
+
_useForm2 = slicedToArray_slicedToArray(_useForm, 1),
|
|
40240
40220
|
formInstance = _useForm2[0];
|
|
40241
40221
|
|
|
40242
40222
|
var _formInstance$getInte = formInstance.getInternalHooks(HOOK_MARK),
|
|
@@ -40258,7 +40238,7 @@ var Form = function Form(_ref, ref) {
|
|
|
40258
40238
|
};
|
|
40259
40239
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
40260
40240
|
|
|
40261
|
-
setValidateMessages(
|
|
40241
|
+
setValidateMessages(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
40262
40242
|
setCallbacks({
|
|
40263
40243
|
onValuesChange: onValuesChange,
|
|
40264
40244
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -40311,7 +40291,7 @@ var Form = function Form(_ref, ref) {
|
|
|
40311
40291
|
prevFieldsRef.current = fields;
|
|
40312
40292
|
}, [fields, formInstance]);
|
|
40313
40293
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
40314
|
-
return
|
|
40294
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formInstance), {}, {
|
|
40315
40295
|
validateTrigger: validateTrigger
|
|
40316
40296
|
});
|
|
40317
40297
|
}, [formInstance, validateTrigger]);
|
|
@@ -40323,7 +40303,7 @@ var Form = function Form(_ref, ref) {
|
|
|
40323
40303
|
return wrapperNode;
|
|
40324
40304
|
}
|
|
40325
40305
|
|
|
40326
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
40306
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, restProps, {
|
|
40327
40307
|
onSubmit: function onSubmit(event) {
|
|
40328
40308
|
event.preventDefault();
|
|
40329
40309
|
event.stopPropagation();
|
|
@@ -40631,7 +40611,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
40631
40611
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
40632
40612
|
|
|
40633
40613
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
40634
|
-
_React$useState2 =
|
|
40614
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
40635
40615
|
elements = _React$useState2[0],
|
|
40636
40616
|
setElements = _React$useState2[1];
|
|
40637
40617
|
|
|
@@ -40641,7 +40621,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
40641
40621
|
var key = props.key;
|
|
40642
40622
|
|
|
40643
40623
|
if (div && (!createdRef.current[key] || firstMount)) {
|
|
40644
|
-
var noticeEle = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
40624
|
+
var noticeEle = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, esm_extends_extends({}, props, {
|
|
40645
40625
|
holder: div
|
|
40646
40626
|
}));
|
|
40647
40627
|
createdRef.current[key] = noticeEle;
|
|
@@ -40651,10 +40631,10 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
40651
40631
|
});
|
|
40652
40632
|
|
|
40653
40633
|
if (index === -1) {
|
|
40654
|
-
return [].concat(
|
|
40634
|
+
return [].concat(esm_toConsumableArray_toConsumableArray(originElements), [noticeEle]);
|
|
40655
40635
|
}
|
|
40656
40636
|
|
|
40657
|
-
var cloneList =
|
|
40637
|
+
var cloneList = esm_toConsumableArray_toConsumableArray(originElements);
|
|
40658
40638
|
|
|
40659
40639
|
cloneList[index] = noticeEle;
|
|
40660
40640
|
return cloneList;
|
|
@@ -40981,7 +40961,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
40981
40961
|
};
|
|
40982
40962
|
|
|
40983
40963
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
40984
|
-
_useRCNotification2 =
|
|
40964
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
40985
40965
|
hookNotify = _useRCNotification2[0],
|
|
40986
40966
|
holder = _useRCNotification2[1];
|
|
40987
40967
|
|
|
@@ -40999,7 +40979,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
40999
40979
|
return resolve(true);
|
|
41000
40980
|
};
|
|
41001
40981
|
|
|
41002
|
-
getRcNotificationInstance(
|
|
40982
|
+
getRcNotificationInstance(esm_extends_extends(esm_extends_extends({}, args), {
|
|
41003
40983
|
prefixCls: mergedPrefixCls,
|
|
41004
40984
|
rootPrefixCls: rootPrefixCls,
|
|
41005
40985
|
getPopupContainer: getPopupContainer
|
|
@@ -41007,7 +40987,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
41007
40987
|
var prefixCls = _ref.prefixCls,
|
|
41008
40988
|
instance = _ref.instance;
|
|
41009
40989
|
innerInstance = instance;
|
|
41010
|
-
hookNotify(getRCNoticeProps(
|
|
40990
|
+
hookNotify(getRCNoticeProps(esm_extends_extends(esm_extends_extends({}, args), {
|
|
41011
40991
|
key: target,
|
|
41012
40992
|
onClose: callback
|
|
41013
40993
|
}), prefixCls));
|
|
@@ -41291,6 +41271,8 @@ var getInstance = function getInstance() {
|
|
|
41291
41271
|
return false ? 0 : null;
|
|
41292
41272
|
};
|
|
41293
41273
|
/* harmony default export */ var message = (message_api);
|
|
41274
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
41275
|
+
var runtime_regenerator = __webpack_require__(4687);
|
|
41294
41276
|
;// CONCATENATED MODULE: ./node_modules/@sdp.nd/fish/es/notification/hooks/useNotification.js
|
|
41295
41277
|
|
|
41296
41278
|
|
|
@@ -41310,14 +41292,14 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
41310
41292
|
};
|
|
41311
41293
|
|
|
41312
41294
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
41313
|
-
_useRCNotification2 =
|
|
41295
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
41314
41296
|
hookNotify = _useRCNotification2[0],
|
|
41315
41297
|
holder = _useRCNotification2[1];
|
|
41316
41298
|
|
|
41317
41299
|
function notify(args) {
|
|
41318
41300
|
var customizePrefixCls = args.prefixCls;
|
|
41319
41301
|
var mergedPrefixCls = getPrefixCls('notification', customizePrefixCls);
|
|
41320
|
-
getNotificationInstance(
|
|
41302
|
+
getNotificationInstance(esm_extends_extends(esm_extends_extends({}, args), {
|
|
41321
41303
|
prefixCls: mergedPrefixCls
|
|
41322
41304
|
}), function (_ref) {
|
|
41323
41305
|
var prefixCls = _ref.prefixCls,
|
|
@@ -41332,7 +41314,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
41332
41314
|
hookApiRef.current.open = notify;
|
|
41333
41315
|
['success', 'info', 'warning', 'error'].forEach(function (type) {
|
|
41334
41316
|
hookApiRef.current[type] = function (args) {
|
|
41335
|
-
return hookApiRef.current.open(
|
|
41317
|
+
return hookApiRef.current.open(esm_extends_extends(esm_extends_extends({}, args), {
|
|
41336
41318
|
type: type
|
|
41337
41319
|
}));
|
|
41338
41320
|
};
|
|
@@ -49346,37 +49328,6 @@ function regeneratorRuntime_regeneratorRuntime() {
|
|
|
49346
49328
|
}
|
|
49347
49329
|
}, e;
|
|
49348
49330
|
}
|
|
49349
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
49350
|
-
function esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
49351
|
-
try {
|
|
49352
|
-
var info = gen[key](arg);
|
|
49353
|
-
var value = info.value;
|
|
49354
|
-
} catch (error) {
|
|
49355
|
-
reject(error);
|
|
49356
|
-
return;
|
|
49357
|
-
}
|
|
49358
|
-
if (info.done) {
|
|
49359
|
-
resolve(value);
|
|
49360
|
-
} else {
|
|
49361
|
-
Promise.resolve(value).then(_next, _throw);
|
|
49362
|
-
}
|
|
49363
|
-
}
|
|
49364
|
-
function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
49365
|
-
return function () {
|
|
49366
|
-
var self = this,
|
|
49367
|
-
args = arguments;
|
|
49368
|
-
return new Promise(function (resolve, reject) {
|
|
49369
|
-
var gen = fn.apply(self, args);
|
|
49370
|
-
function _next(value) {
|
|
49371
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
49372
|
-
}
|
|
49373
|
-
function _throw(err) {
|
|
49374
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
49375
|
-
}
|
|
49376
|
-
_next(undefined);
|
|
49377
|
-
});
|
|
49378
|
-
};
|
|
49379
|
-
}
|
|
49380
49331
|
;// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/useVisibleStatus.js
|
|
49381
49332
|
|
|
49382
49333
|
|
|
@@ -49448,7 +49399,7 @@ var StatusQueue = ['measure', 'alignPre', 'align', null, 'motion'];
|
|
|
49448
49399
|
}
|
|
49449
49400
|
|
|
49450
49401
|
if (status) {
|
|
49451
|
-
rafRef.current = es_raf( /*#__PURE__*/
|
|
49402
|
+
rafRef.current = es_raf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/regeneratorRuntime_regeneratorRuntime().mark(function _callee() {
|
|
49452
49403
|
var index, nextStatus;
|
|
49453
49404
|
return regeneratorRuntime_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
49454
49405
|
while (1) {
|
|
@@ -52298,7 +52249,7 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
52298
52249
|
} // ===================== Icons =====================
|
|
52299
52250
|
|
|
52300
52251
|
|
|
52301
|
-
var _getIcons = getIcons(
|
|
52252
|
+
var _getIcons = getIcons(extends_extends(extends_extends({}, props), {
|
|
52302
52253
|
multiple: isMultiple,
|
|
52303
52254
|
prefixCls: prefixCls
|
|
52304
52255
|
})),
|
|
@@ -52308,10 +52259,10 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
52308
52259
|
clearIcon = _getIcons.clearIcon;
|
|
52309
52260
|
|
|
52310
52261
|
var selectProps = omit(props, ['suffixIcon', 'itemIcon']);
|
|
52311
|
-
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName,
|
|
52262
|
+
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName, _defineProperty({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
|
|
52312
52263
|
var mergedSize = customizeSize || size;
|
|
52313
|
-
var mergedClassName = classnames_default()((_classNames2 = {},
|
|
52314
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es,
|
|
52264
|
+
var mergedClassName = classnames_default()((_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-lg"), mergedSize === 'large'), _defineProperty(_classNames2, "".concat(prefixCls, "-sm"), mergedSize === 'small'), _defineProperty(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames2, "".concat(prefixCls, "-borderless"), !bordered), _classNames2), className);
|
|
52265
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es, extends_extends({
|
|
52315
52266
|
ref: ref,
|
|
52316
52267
|
virtual: virtual,
|
|
52317
52268
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth
|
|
@@ -58025,11 +57976,11 @@ function tabs_Tabs(_a) {
|
|
|
58025
57976
|
var _classNames;
|
|
58026
57977
|
|
|
58027
57978
|
var size = propSize !== undefined ? propSize : contextSize;
|
|
58028
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es,
|
|
57979
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es, esm_extends_extends({
|
|
58029
57980
|
direction: direction,
|
|
58030
57981
|
moreTransitionName: "".concat(rootPrefixCls, "-slide-up")
|
|
58031
57982
|
}, props, {
|
|
58032
|
-
className: classnames_default()((_classNames = {},
|
|
57983
|
+
className: classnames_default()((_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(size), size), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-card"), ['card', 'editable-card'].includes(type)), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-editable-card"), type === 'editable-card'), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-centered"), centered), _classNames), className),
|
|
58033
57984
|
editable: editable,
|
|
58034
57985
|
moreIcon: moreIcon,
|
|
58035
57986
|
prefixCls: prefixCls
|
|
@@ -59668,10 +59619,10 @@ function Action(_ref) {
|
|
|
59668
59619
|
// 如果超过了开播时间,不管有没有预约,都直接进入直播
|
|
59669
59620
|
var now = new Date().getTime();
|
|
59670
59621
|
var begin = new Date(beginTime).getTime();
|
|
59671
|
-
|
|
59672
|
-
|
|
59673
|
-
|
|
59674
|
-
|
|
59622
|
+
if (now > begin) {
|
|
59623
|
+
actionNum = 1;
|
|
59624
|
+
return actionNum;
|
|
59625
|
+
}
|
|
59675
59626
|
// 开播前15分钟,只提供进入直播按钮
|
|
59676
59627
|
if (begin > now && begin - now < 15 * 60 * 1000) {
|
|
59677
59628
|
actionNum = 1;
|
|
@@ -59943,24 +59894,13 @@ function ListItem(_ref) {
|
|
|
59943
59894
|
var liveId = data.live_id,
|
|
59944
59895
|
liveName = data.live_name,
|
|
59945
59896
|
beginTime = data.begin_time,
|
|
59946
|
-
|
|
59947
|
-
|
|
59948
|
-
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(
|
|
59949
|
-
|
|
59950
|
-
|
|
59951
|
-
|
|
59952
|
-
|
|
59953
|
-
return 1;
|
|
59954
|
-
}
|
|
59955
|
-
return 2;
|
|
59956
|
-
}),
|
|
59957
|
-
_useState2 = ListItem_slicedToArray(_useState, 1),
|
|
59958
|
-
status = _useState2[0];
|
|
59959
|
-
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
59960
|
-
_useState4 = ListItem_slicedToArray(_useState3, 2),
|
|
59961
|
-
liveExt = _useState4[0],
|
|
59962
|
-
setLiveExt = _useState4[1];
|
|
59963
|
-
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(function () {
|
|
59897
|
+
coverUrl = data.cover_url,
|
|
59898
|
+
status = data.status;
|
|
59899
|
+
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
59900
|
+
_useState2 = ListItem_slicedToArray(_useState, 2),
|
|
59901
|
+
liveExt = _useState2[0],
|
|
59902
|
+
setLiveExt = _useState2[1];
|
|
59903
|
+
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(function () {
|
|
59964
59904
|
if (status === 0) {
|
|
59965
59905
|
// 开播前15分钟之外
|
|
59966
59906
|
var subscriptionItem = (0,lodash.find)(subscription, {
|
|
@@ -59977,9 +59917,9 @@ function ListItem(_ref) {
|
|
|
59977
59917
|
return false;
|
|
59978
59918
|
}
|
|
59979
59919
|
}),
|
|
59980
|
-
|
|
59981
|
-
isSubscribe =
|
|
59982
|
-
setIsSubscribe =
|
|
59920
|
+
_useState4 = ListItem_slicedToArray(_useState3, 2),
|
|
59921
|
+
isSubscribe = _useState4[0],
|
|
59922
|
+
setIsSubscribe = _useState4[1];
|
|
59983
59923
|
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
59984
59924
|
ListItem_asyncToGenerator( /*#__PURE__*/ListItem_regeneratorRuntime().mark(function _callee() {
|
|
59985
59925
|
var res;
|
|
@@ -60056,7 +59996,7 @@ function ListItem(_ref) {
|
|
|
60056
59996
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
60057
59997
|
src: dianzan,
|
|
60058
59998
|
alt: ""
|
|
60059
|
-
}), formatLikesCount(liveExt.like_count || 0)))),
|
|
59999
|
+
}), formatLikesCount(liveExt.like_count || 0)))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(Action, {
|
|
60060
60000
|
data: data,
|
|
60061
60001
|
subscription: subscription,
|
|
60062
60002
|
onActionDetailClick: handleDetailClick,
|
|
@@ -60065,7 +60005,7 @@ function ListItem(_ref) {
|
|
|
60065
60005
|
onSubscribe: onSubscribe,
|
|
60066
60006
|
setIsSubscribe: setIsSubscribe,
|
|
60067
60007
|
status: status
|
|
60068
|
-
})
|
|
60008
|
+
}))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
60069
60009
|
className: list_ListItem_index_module.left
|
|
60070
60010
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
60071
60011
|
className: classnames_default()(list_ListItem_index_module.tag, list_ListItem_index_module["tag".concat(status)])
|
|
@@ -60346,7 +60286,7 @@ function PublicLiveList(_ref) {
|
|
|
60346
60286
|
tab: item.label
|
|
60347
60287
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(Loading_Loading, {
|
|
60348
60288
|
loading: loading,
|
|
60349
|
-
delay:
|
|
60289
|
+
delay: 500
|
|
60350
60290
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
60351
60291
|
className: src_list_index_module.list
|
|
60352
60292
|
}, loading ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, !loading && list.length ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, list.map(function (listItem) {
|