@x-edu/live-player 0.0.16 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29995,6 +29995,9 @@ var parseAdapter = function parseAdapter(option, dayjsClass) {
29995
29995
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
29996
29996
  var regenerator = __webpack_require__(7757);
29997
29997
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
29998
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
29999
+ var runtime_regenerator = __webpack_require__(5273);
30000
+ var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
29998
30001
  // EXTERNAL MODULE: ./node_modules/axios/index.js
29999
30002
  var axios = __webpack_require__(9669);
30000
30003
  var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
@@ -30804,7 +30807,7 @@ function getServiceConfig(_x) {
30804
30807
  }
30805
30808
 
30806
30809
  function _getServiceConfig() {
30807
- _getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(serviceName) {
30810
+ _getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(serviceName) {
30808
30811
  var sdpAppId,
30809
30812
  env,
30810
30813
  key,
@@ -30816,7 +30819,7 @@ function _getServiceConfig() {
30816
30819
  result,
30817
30820
  ttl,
30818
30821
  _args = arguments;
30819
- return regenerator_default().wrap(function _callee$(_context) {
30822
+ return runtime_regenerator_default().wrap(function _callee$(_context) {
30820
30823
  while (1) {
30821
30824
  switch (_context.prev = _context.next) {
30822
30825
  case 0:
@@ -31080,13 +31083,13 @@ function withOnce(fn) {
31080
31083
  var lockPool = createLockPool();
31081
31084
 
31082
31085
  var newFn = /*#__PURE__*/function () {
31083
- var _ref3 = hof_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
31086
+ var _ref3 = hof_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2() {
31084
31087
  var key,
31085
31088
  lock,
31086
31089
  lockId,
31087
31090
  result,
31088
31091
  _args2 = arguments;
31089
- return regenerator_default().wrap(function _callee2$(_context2) {
31092
+ return runtime_regenerator_default().wrap(function _callee2$(_context2) {
31090
31093
  while (1) {
31091
31094
  switch (_context2.prev = _context2.next) {
31092
31095
  case 0:
@@ -31592,9 +31595,9 @@ function _getLiveAPICache() {
31592
31595
  }
31593
31596
 
31594
31597
  function _getLiveAPICache2() {
31595
- _getLiveAPICache2 = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee11() {
31598
+ _getLiveAPICache2 = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee11() {
31596
31599
  var url, result, serverTime;
31597
- return regenerator_default().wrap(function _callee11$(_context11) {
31600
+ return runtime_regenerator_default().wrap(function _callee11$(_context11) {
31598
31601
  while (1) {
31599
31602
  switch (_context11.prev = _context11.next) {
31600
31603
  case 0:
@@ -31634,9 +31637,9 @@ function getOpenClassWithCache(_x11) {
31634
31637
  } // 公开直播详情变化部分,失败要降级处理
31635
31638
 
31636
31639
  function _getOpenClassWithCache() {
31637
- _getOpenClassWithCache = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee12(url) {
31640
+ _getOpenClassWithCache = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee12(url) {
31638
31641
  var fullUrl, cacheInfo, cacheData, result, serverTime;
31639
- return regenerator_default().wrap(function _callee12$(_context12) {
31642
+ return runtime_regenerator_default().wrap(function _callee12$(_context12) {
31640
31643
  while (1) {
31641
31644
  switch (_context12.prev = _context12.next) {
31642
31645
  case 0:
@@ -31708,9 +31711,9 @@ function getOpenClassLiveSimple(_x12) {
31708
31711
  } // 公开直播详情拆分成两个接口
31709
31712
 
31710
31713
  function _getOpenClassLiveSimple() {
31711
- _getOpenClassLiveSimple = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee13(liveInfo) {
31714
+ _getOpenClassLiveSimple = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee13(liveInfo) {
31712
31715
  var url, data;
31713
- return regenerator_default().wrap(function _callee13$(_context13) {
31716
+ return runtime_regenerator_default().wrap(function _callee13$(_context13) {
31714
31717
  while (1) {
31715
31718
  switch (_context13.prev = _context13.next) {
31716
31719
  case 0:
@@ -31749,9 +31752,9 @@ function getOpenClassLiveBase(_x13) {
31749
31752
  } // 公开实时直播-发起直播-公共直播邀请页使用,适配为班级直播数据
31750
31753
 
31751
31754
  function _getOpenClassLiveBase() {
31752
- _getOpenClassLiveBase = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee14(id) {
31755
+ _getOpenClassLiveBase = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee14(id) {
31753
31756
  var url, data, subType, dynamicInfo;
31754
- return regenerator_default().wrap(function _callee14$(_context14) {
31757
+ return runtime_regenerator_default().wrap(function _callee14$(_context14) {
31755
31758
  while (1) {
31756
31759
  switch (_context14.prev = _context14.next) {
31757
31760
  case 0:
@@ -31831,9 +31834,9 @@ function getOpenClassLive(_x15) {
31831
31834
  }
31832
31835
 
31833
31836
  function _getOpenClassLive() {
31834
- _getOpenClassLive = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee16(id) {
31837
+ _getOpenClassLive = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee16(id) {
31835
31838
  var serviceConfig, liveCloseLogin, data;
31836
- return regenerator_default().wrap(function _callee16$(_context16) {
31839
+ return runtime_regenerator_default().wrap(function _callee16$(_context16) {
31837
31840
  while (1) {
31838
31841
  switch (_context16.prev = _context16.next) {
31839
31842
  case 0:
@@ -31946,9 +31949,9 @@ function OpenLiveSearchFront(_x18) {
31946
31949
  */
31947
31950
 
31948
31951
  function _OpenLiveSearchFront() {
31949
- _OpenLiveSearchFront = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee19(_ref2) {
31952
+ _OpenLiveSearchFront = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee19(_ref2) {
31950
31953
  var status, scopeType, scopeId, offset, limit, url, response;
31951
- return regenerator_default().wrap(function _callee19$(_context19) {
31954
+ return runtime_regenerator_default().wrap(function _callee19$(_context19) {
31952
31955
  while (1) {
31953
31956
  switch (_context19.prev = _context19.next) {
31954
31957
  case 0:
@@ -31999,9 +32002,9 @@ function getSubscription() {
31999
32002
  */
32000
32003
 
32001
32004
  function _getSubscription() {
32002
- _getSubscription = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee20() {
32005
+ _getSubscription = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee20() {
32003
32006
  var url, response;
32004
- return regenerator_default().wrap(function _callee20$(_context20) {
32007
+ return runtime_regenerator_default().wrap(function _callee20$(_context20) {
32005
32008
  while (1) {
32006
32009
  switch (_context20.prev = _context20.next) {
32007
32010
  case 0:
@@ -32034,9 +32037,9 @@ function openLiveSubscribe(_x19) {
32034
32037
  }
32035
32038
 
32036
32039
  function _openLiveSubscribe() {
32037
- _openLiveSubscribe = live_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee21(_ref3) {
32040
+ _openLiveSubscribe = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee21(_ref3) {
32038
32041
  var liveId, url, response;
32039
- return regenerator_default().wrap(function _callee21$(_context21) {
32042
+ return runtime_regenerator_default().wrap(function _callee21$(_context21) {
32040
32043
  while (1) {
32041
32044
  switch (_context21.prev = _context21.next) {
32042
32045
  case 0:
@@ -32078,9 +32081,9 @@ function imBroadcasts_asyncToGenerator(fn) { return function () { var self = thi
32078
32081
  // https://wiki.doc.101.com/index.php?title=IM%E7%9B%B4%E6%92%ADv2#.5BGET.5D_.2Fapis.2Fbroadcasts.2F.7BroomId.7D_.E6.A0.B9.E6.8D.AEroomId_.E8.8E.B7.E5.8F.96.E7.9B.B4.E6.92.AD.E4.BF.A1.E6.81.AF
32079
32082
 
32080
32083
  var getIMLiveInfo = /*#__PURE__*/function () {
32081
- var _ref = imBroadcasts_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(roomId) {
32084
+ var _ref = imBroadcasts_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(roomId) {
32082
32085
  var url, response;
32083
- return regenerator_default().wrap(function _callee$(_context) {
32086
+ return runtime_regenerator_default().wrap(function _callee$(_context) {
32084
32087
  while (1) {
32085
32088
  switch (_context.prev = _context.next) {
32086
32089
  case 0:
@@ -32113,10 +32116,10 @@ var getIMLiveInfo = /*#__PURE__*/function () {
32113
32116
  */
32114
32117
 
32115
32118
  var getGuestIMLiveInfoStatic = /*#__PURE__*/function () {
32116
- var _ref2 = imBroadcasts_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(bId) {
32119
+ var _ref2 = imBroadcasts_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(bId) {
32117
32120
  var _yield$imBroadcastsSt, data;
32118
32121
 
32119
- return regenerator_default().wrap(function _callee2$(_context2) {
32122
+ return runtime_regenerator_default().wrap(function _callee2$(_context2) {
32120
32123
  while (1) {
32121
32124
  switch (_context2.prev = _context2.next) {
32122
32125
  case 0:
@@ -32143,10 +32146,10 @@ var getGuestIMLiveInfoStatic = /*#__PURE__*/function () {
32143
32146
  // 访客获取直播接口
32144
32147
 
32145
32148
  var getGuestIMLiveInfo = /*#__PURE__*/function () {
32146
- var _ref3 = imBroadcasts_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(bId) {
32149
+ var _ref3 = imBroadcasts_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(bId) {
32147
32150
  var _yield$imBroadcastsAP, data;
32148
32151
 
32149
- return regenerator_default().wrap(function _callee3$(_context3) {
32152
+ return runtime_regenerator_default().wrap(function _callee3$(_context3) {
32150
32153
  while (1) {
32151
32154
  switch (_context3.prev = _context3.next) {
32152
32155
  case 0:
@@ -32214,6 +32217,162 @@ var spin_style_update = injectStylesIntoStyleTag_default()(spin_style/* default
32214
32217
  ;// CONCATENATED MODULE: ./node_modules/@sdp.nd/fish/es/spin/style/index.js
32215
32218
 
32216
32219
 
32220
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
32221
+ function esm_extends_extends() {
32222
+ esm_extends_extends = Object.assign || function (target) {
32223
+ for (var i = 1; i < arguments.length; i++) {
32224
+ var source = arguments[i];
32225
+
32226
+ for (var key in source) {
32227
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
32228
+ target[key] = source[key];
32229
+ }
32230
+ }
32231
+ }
32232
+
32233
+ return target;
32234
+ };
32235
+
32236
+ return esm_extends_extends.apply(this, arguments);
32237
+ }
32238
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
32239
+ function defineProperty_defineProperty(obj, key, value) {
32240
+ if (key in obj) {
32241
+ Object.defineProperty(obj, key, {
32242
+ value: value,
32243
+ enumerable: true,
32244
+ configurable: true,
32245
+ writable: true
32246
+ });
32247
+ } else {
32248
+ obj[key] = value;
32249
+ }
32250
+
32251
+ return obj;
32252
+ }
32253
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
32254
+ function classCallCheck_classCallCheck(instance, Constructor) {
32255
+ if (!(instance instanceof Constructor)) {
32256
+ throw new TypeError("Cannot call a class as a function");
32257
+ }
32258
+ }
32259
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
32260
+ function createClass_defineProperties(target, props) {
32261
+ for (var i = 0; i < props.length; i++) {
32262
+ var descriptor = props[i];
32263
+ descriptor.enumerable = descriptor.enumerable || false;
32264
+ descriptor.configurable = true;
32265
+ if ("value" in descriptor) descriptor.writable = true;
32266
+ Object.defineProperty(target, descriptor.key, descriptor);
32267
+ }
32268
+ }
32269
+
32270
+ function createClass_createClass(Constructor, protoProps, staticProps) {
32271
+ if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
32272
+ if (staticProps) createClass_defineProperties(Constructor, staticProps);
32273
+ return Constructor;
32274
+ }
32275
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
32276
+ function setPrototypeOf_setPrototypeOf(o, p) {
32277
+ setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
32278
+ o.__proto__ = p;
32279
+ return o;
32280
+ };
32281
+
32282
+ return setPrototypeOf_setPrototypeOf(o, p);
32283
+ }
32284
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
32285
+
32286
+ function inherits_inherits(subClass, superClass) {
32287
+ if (typeof superClass !== "function" && superClass !== null) {
32288
+ throw new TypeError("Super expression must either be null or a function");
32289
+ }
32290
+
32291
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
32292
+ constructor: {
32293
+ value: subClass,
32294
+ writable: true,
32295
+ configurable: true
32296
+ }
32297
+ });
32298
+ if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
32299
+ }
32300
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
32301
+ function getPrototypeOf_getPrototypeOf(o) {
32302
+ getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
32303
+ return o.__proto__ || Object.getPrototypeOf(o);
32304
+ };
32305
+ return getPrototypeOf_getPrototypeOf(o);
32306
+ }
32307
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
32308
+ function isNativeReflectConstruct_isNativeReflectConstruct() {
32309
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
32310
+ if (Reflect.construct.sham) return false;
32311
+ if (typeof Proxy === "function") return true;
32312
+
32313
+ try {
32314
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
32315
+ return true;
32316
+ } catch (e) {
32317
+ return false;
32318
+ }
32319
+ }
32320
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
32321
+ function esm_typeof_typeof(obj) {
32322
+ "@babel/helpers - typeof";
32323
+
32324
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
32325
+ esm_typeof_typeof = function _typeof(obj) {
32326
+ return typeof obj;
32327
+ };
32328
+ } else {
32329
+ esm_typeof_typeof = function _typeof(obj) {
32330
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
32331
+ };
32332
+ }
32333
+
32334
+ return esm_typeof_typeof(obj);
32335
+ }
32336
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
32337
+ function assertThisInitialized_assertThisInitialized(self) {
32338
+ if (self === void 0) {
32339
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
32340
+ }
32341
+
32342
+ return self;
32343
+ }
32344
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
32345
+
32346
+
32347
+ function possibleConstructorReturn_possibleConstructorReturn(self, call) {
32348
+ if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
32349
+ return call;
32350
+ } else if (call !== void 0) {
32351
+ throw new TypeError("Derived constructors may only return object or undefined");
32352
+ }
32353
+
32354
+ return assertThisInitialized_assertThisInitialized(self);
32355
+ }
32356
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
32357
+
32358
+
32359
+
32360
+ function createSuper_createSuper(Derived) {
32361
+ var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
32362
+ return function _createSuperInternal() {
32363
+ var Super = getPrototypeOf_getPrototypeOf(Derived),
32364
+ result;
32365
+
32366
+ if (hasNativeReflectConstruct) {
32367
+ var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
32368
+ result = Reflect.construct(Super, arguments, NewTarget);
32369
+ } else {
32370
+ result = Super.apply(this, arguments);
32371
+ }
32372
+
32373
+ return possibleConstructorReturn_possibleConstructorReturn(this, result);
32374
+ };
32375
+ }
32217
32376
  // EXTERNAL MODULE: ./node_modules/lodash/debounce.js
32218
32377
  var debounce = __webpack_require__(3279);
32219
32378
  var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce);
@@ -32322,14 +32481,14 @@ function shouldDelay(spinning, delay) {
32322
32481
  }
32323
32482
 
32324
32483
  var Spin = /*#__PURE__*/function (_React$Component) {
32325
- _inherits(Spin, _React$Component);
32484
+ inherits_inherits(Spin, _React$Component);
32326
32485
 
32327
- var _super = _createSuper(Spin);
32486
+ var _super = createSuper_createSuper(Spin);
32328
32487
 
32329
32488
  function Spin(props) {
32330
32489
  var _this;
32331
32490
 
32332
- _classCallCheck(this, Spin);
32491
+ classCallCheck_classCallCheck(this, Spin);
32333
32492
 
32334
32493
  _this = _super.call(this, props);
32335
32494
 
@@ -32372,10 +32531,10 @@ var Spin = /*#__PURE__*/function (_React$Component) {
32372
32531
 
32373
32532
  var spinning = _this.state.spinning;
32374
32533
  var prefixCls = getPrefixCls('spin', customizePrefixCls);
32375
- var spinClassName = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-sm"), size === 'small'), _defineProperty(_classNames, "".concat(prefixCls, "-lg"), size === 'large'), _defineProperty(_classNames, "".concat(prefixCls, "-spinning"), spinning), _defineProperty(_classNames, "".concat(prefixCls, "-show-text"), !!tip), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className); // fix https://fb.me/react-unknown-prop
32534
+ var spinClassName = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-sm"), size === 'small'), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-lg"), size === 'large'), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-spinning"), spinning), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-show-text"), !!tip), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className); // fix https://fb.me/react-unknown-prop
32376
32535
 
32377
32536
  var divProps = omit(restProps, ['spinning', 'delay', 'indicator']);
32378
- var spinElement = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, divProps, {
32537
+ var spinElement = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, divProps, {
32379
32538
  style: style,
32380
32539
  className: spinClassName
32381
32540
  }), renderIndicator(prefixCls, _this.props), tip ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
@@ -32383,8 +32542,8 @@ var Spin = /*#__PURE__*/function (_React$Component) {
32383
32542
  }, tip) : null);
32384
32543
 
32385
32544
  if (_this.isNestedPattern()) {
32386
- var containerClassName = classnames_default()("".concat(prefixCls, "-container"), _defineProperty({}, "".concat(prefixCls, "-blur"), spinning));
32387
- return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, divProps, {
32545
+ var containerClassName = classnames_default()("".concat(prefixCls, "-container"), defineProperty_defineProperty({}, "".concat(prefixCls, "-blur"), spinning));
32546
+ return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, divProps, {
32388
32547
  className: classnames_default()("".concat(prefixCls, "-nested-loading"), wrapperClassName)
32389
32548
  }), spinning && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
32390
32549
  key: "loading"
@@ -32410,7 +32569,7 @@ var Spin = /*#__PURE__*/function (_React$Component) {
32410
32569
  return _this;
32411
32570
  }
32412
32571
 
32413
- _createClass(Spin, [{
32572
+ createClass_createClass(Spin, [{
32414
32573
  key: "componentDidMount",
32415
32574
  value: function componentDidMount() {
32416
32575
  this.updateSpinning();
@@ -32524,119 +32683,6 @@ function Loading_Loading(_ref) {
32524
32683
  wrapperClassName: classnames_default()('x-edu-nested-loading', wrapperClassName)
32525
32684
  }, children);
32526
32685
  }
32527
- // EXTERNAL MODULE: ./node_modules/@sdp.nd/fish/es/loader/style/index.js
32528
- var loader_style = __webpack_require__(4646);
32529
- ;// CONCATENATED MODULE: ./src/util/push/index.js
32530
-
32531
-
32532
-
32533
-
32534
- function push_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
32535
-
32536
- function push_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { push_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { push_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
32537
-
32538
- function push_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
32539
-
32540
- function push_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
32541
-
32542
- function push_createClass(Constructor, protoProps, staticProps) { if (protoProps) push_defineProperties(Constructor.prototype, protoProps); if (staticProps) push_defineProperties(Constructor, staticProps); return Constructor; }
32543
-
32544
-
32545
- var push_url = '/3rd/im-web-push/index.umd.js';
32546
- var push_loadJS = loader.loadJS;
32547
- var instPromise; // http://git.sdp.nd/component-h5/web-im-push/-/tree/master
32548
-
32549
- var ImPush = /*#__PURE__*/function () {
32550
- function ImPush() {
32551
- push_classCallCheck(this, ImPush);
32552
-
32553
- this.listeners = [];
32554
- }
32555
-
32556
- push_createClass(ImPush, [{
32557
- key: "init",
32558
- value: function () {
32559
- var _init = push_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
32560
- return regenerator_default().wrap(function _callee$(_context) {
32561
- while (1) {
32562
- switch (_context.prev = _context.next) {
32563
- case 0:
32564
- if (!instPromise) {
32565
- _context.next = 2;
32566
- break;
32567
- }
32568
-
32569
- return _context.abrupt("return", instPromise);
32570
-
32571
- case 2:
32572
- instPromise = push_loadJS(push_url, 'ndiot_push').then(function () {
32573
- window.ndiot_push.open({
32574
- url: env["default"].push.host,
32575
- appId: env["default"].app.appid,
32576
- disableSharedWorker: true
32577
- });
32578
- return window.ndiot_push;
32579
- });
32580
- return _context.abrupt("return", instPromise);
32581
-
32582
- case 4:
32583
- case "end":
32584
- return _context.stop();
32585
- }
32586
- }
32587
- }, _callee);
32588
- }));
32589
-
32590
- function init() {
32591
- return _init.apply(this, arguments);
32592
- }
32593
-
32594
- return init;
32595
- }()
32596
- }, {
32597
- key: "getInstance",
32598
- value: function getInstance() {
32599
- return window.ndiot_push;
32600
- }
32601
- }, {
32602
- key: "addTopicListener",
32603
- value: function addTopicListener(name, listener) {
32604
- var inst = this.getInstance();
32605
- this.listeners.push(listener);
32606
- inst.subscribe(name);
32607
- this.listen();
32608
- }
32609
- }, {
32610
- key: "removeTopicListener",
32611
- value: function removeTopicListener(name, listener) {
32612
- var inst = this.getInstance();
32613
- this.listeners = this.listeners.filter(function (l) {
32614
- return l !== listener;
32615
- });
32616
- inst.unsubscribe(name);
32617
- this.listen();
32618
- }
32619
- }, {
32620
- key: "listen",
32621
- value: function listen() {
32622
- var _this = this;
32623
-
32624
- var inst = this.getInstance();
32625
-
32626
- inst.onNewMessage = function (data) {
32627
- console.log('im-push', data);
32628
-
32629
- _this.listeners.forEach(function (l) {
32630
- l(data);
32631
- });
32632
- };
32633
- }
32634
- }]);
32635
-
32636
- return ImPush;
32637
- }();
32638
-
32639
- /* harmony default export */ var push = (new ImPush());
32640
32686
  ;// CONCATENATED MODULE: ./src/util/object.js
32641
32687
  function pick(obj, keys) {
32642
32688
  if (!Array.isArray(keys)) {
@@ -32652,7 +32698,7 @@ function pick(obj, keys) {
32652
32698
  }, {});
32653
32699
  }
32654
32700
  var isEmpty = function isEmpty(obj) {
32655
- return !obj || Object.keys(obj) === 0;
32701
+ return !obj || Object.keys(obj).length === 0;
32656
32702
  };
32657
32703
  // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[1].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[1].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[1].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[1].use[4]!./node_modules/@sdp.nd/fish/es/video/style/index.less
32658
32704
  var video_style = __webpack_require__(9018);
@@ -32763,14 +32809,14 @@ var videoCdnPrefix = '//gcdncs.101.com/v0.1/static/share/fish/videoplayer';
32763
32809
  var defaultVideoUrl = getVideoUrl(videoCdnPrefix, video_version);
32764
32810
 
32765
32811
  var Video = /*#__PURE__*/function (_React$Component) {
32766
- _inherits(Video, _React$Component);
32812
+ inherits_inherits(Video, _React$Component);
32767
32813
 
32768
- var _super = _createSuper(Video);
32814
+ var _super = createSuper_createSuper(Video);
32769
32815
 
32770
32816
  function Video() {
32771
32817
  var _this;
32772
32818
 
32773
- _classCallCheck(this, Video);
32819
+ classCallCheck_classCallCheck(this, Video);
32774
32820
 
32775
32821
  _this = _super.apply(this, arguments);
32776
32822
  _this.videoUrl = {}; // eslint-disable-next-line class-methods-use-this
@@ -32783,12 +32829,12 @@ var Video = /*#__PURE__*/function (_React$Component) {
32783
32829
  csOriginUrl = getVideoUrl(cdnPrefix, video_version);
32784
32830
  }
32785
32831
 
32786
- return extends_extends(extends_extends({}, csOriginUrl), Video.url);
32832
+ return esm_extends_extends(esm_extends_extends({}, csOriginUrl), Video.url);
32787
32833
  };
32788
32834
 
32789
32835
  _this.loadVideoPlayer = function () {
32790
- return __awaiter(_assertThisInitialized(_this), void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee() {
32791
- return regenerator_default().wrap(function _callee$(_context) {
32836
+ return __awaiter(assertThisInitialized_assertThisInitialized(_this), void 0, void 0, /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
32837
+ return runtime_regenerator_default().wrap(function _callee$(_context) {
32792
32838
  while (1) {
32793
32839
  switch (_context.prev = _context.next) {
32794
32840
  case 0:
@@ -32838,7 +32884,7 @@ var Video = /*#__PURE__*/function (_React$Component) {
32838
32884
  return _this;
32839
32885
  }
32840
32886
 
32841
- _createClass(Video, [{
32887
+ createClass_createClass(Video, [{
32842
32888
  key: "componentDidMount",
32843
32889
  value: function componentDidMount() {
32844
32890
  var _this2 = this;
@@ -33116,9 +33162,6 @@ var index_module_update = injectStylesIntoStyleTag_default()(index_module/* defa
33116
33162
 
33117
33163
  /* harmony default export */ var LiveCountDown_index_module = (index_module/* default */.Z && index_module/* default.locals */.Z.locals ? index_module/* default.locals */.Z.locals : undefined);
33118
33164
 
33119
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
33120
- var runtime_regenerator = __webpack_require__(5273);
33121
- var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
33122
33165
  ;// CONCATENATED MODULE: ./src/hook/useIsMounted.js
33123
33166
 
33124
33167
 
@@ -33337,64 +33380,179 @@ function usePullSource_asyncToGenerator(fn) { return function () { var self = th
33337
33380
 
33338
33381
 
33339
33382
 
33383
+
33384
+
33340
33385
  var usePullSource_pullInterval = 10 * 1000;
33386
+ var pullStatusInterval = 30 * 1000;
33387
+ var pullMultiply = pullStatusInterval / usePullSource_pullInterval;
33341
33388
  var pullTimeout = 10 * 1000;
33342
33389
  function usePullSource(_ref) {
33343
- var sourceSrc = _ref.sourceSrc,
33390
+ var _liveInfo$imInfo, _liveInfo$imInfo$para, _liveInfo$imInfo2, _liveInfo$imInfo2$par, _liveInfo$imInfo2$par2;
33391
+
33392
+ var liveInfo = _ref.liveInfo,
33344
33393
  reload = _ref.reload,
33394
+ onStatusChange = _ref.onStatusChange,
33345
33395
  shouldStartPull = _ref.shouldStartPull;
33396
+ var sourceSrc = (liveInfo === null || liveInfo === void 0 ? void 0 : (_liveInfo$imInfo = liveInfo.imInfo) === null || _liveInfo$imInfo === void 0 ? void 0 : (_liveInfo$imInfo$para = _liveInfo$imInfo.param) === null || _liveInfo$imInfo$para === void 0 ? void 0 : _liveInfo$imInfo$para.url) || (liveInfo === null || liveInfo === void 0 ? void 0 : (_liveInfo$imInfo2 = liveInfo.imInfo) === null || _liveInfo$imInfo2 === void 0 ? void 0 : (_liveInfo$imInfo2$par = _liveInfo$imInfo2.param) === null || _liveInfo$imInfo2$par === void 0 ? void 0 : (_liveInfo$imInfo2$par2 = _liveInfo$imInfo2$par.playurl) === null || _liveInfo$imInfo2$par2 === void 0 ? void 0 : _liveInfo$imInfo2$par2[0]);
33346
33397
  var isMounted = hook_useIsMounted();
33347
33398
  var counterIdRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
33399
+ var loopIndex = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
33348
33400
 
33349
- function checkSourceReadyInterval() {
33350
- usePullSource_isSourceReady(sourceSrc).then(function () {
33351
- if (isMounted) {
33352
- reload();
33353
- }
33354
- }, function () {
33355
- if (isMounted) {
33356
- counterIdRef.current = setTimeout(function () {
33357
- checkSourceReadyInterval();
33358
- }, usePullSource_pullInterval);
33359
- }
33360
- });
33401
+ var getIsCurrentLop = function getIsCurrentLop(index) {
33402
+ return index <= loopIndex.current;
33403
+ };
33404
+
33405
+ function checkLiveReadyInterval() {
33406
+ return _checkLiveReadyInterval.apply(this, arguments);
33407
+ }
33408
+
33409
+ function _checkLiveReadyInterval() {
33410
+ _checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
33411
+ var i,
33412
+ liveStatus,
33413
+ isSourceReady,
33414
+ _args = arguments;
33415
+ return runtime_regenerator_default().wrap(function _callee$(_context) {
33416
+ while (1) {
33417
+ switch (_context.prev = _context.next) {
33418
+ case 0:
33419
+ i = _args.length > 0 && _args[0] !== undefined ? _args[0] : 0;
33420
+ loopIndex.current = i;
33421
+
33422
+ if (!(i % pullMultiply === 0)) {
33423
+ _context.next = 7;
33424
+ break;
33425
+ }
33426
+
33427
+ _context.next = 5;
33428
+ return getLiveNewStatus(liveInfo);
33429
+
33430
+ case 5:
33431
+ liveStatus = _context.sent;
33432
+
33433
+ if (getIsCurrentLop(i)) {
33434
+ onStatusChange(liveStatus);
33435
+ }
33436
+
33437
+ case 7:
33438
+ if (!(liveStatus !== publicLive_PUBLIC_LIVE_STATUS.COMPLETEED && sourceSrc)) {
33439
+ _context.next = 15;
33440
+ break;
33441
+ }
33442
+
33443
+ _context.next = 10;
33444
+ return checkSourceReady(sourceSrc);
33445
+
33446
+ case 10:
33447
+ isSourceReady = _context.sent;
33448
+
33449
+ if (!getIsCurrentLop(i)) {
33450
+ _context.next = 15;
33451
+ break;
33452
+ }
33453
+
33454
+ if (!(isSourceReady && isMounted)) {
33455
+ _context.next = 15;
33456
+ break;
33457
+ }
33458
+
33459
+ reload();
33460
+ return _context.abrupt("return");
33461
+
33462
+ case 15:
33463
+ if (isMounted && getIsCurrentLop(i)) {
33464
+ counterIdRef.current = setTimeout(function () {
33465
+ checkLiveReadyInterval(i + 1);
33466
+ }, usePullSource_pullInterval);
33467
+ }
33468
+
33469
+ case 16:
33470
+ case "end":
33471
+ return _context.stop();
33472
+ }
33473
+ }
33474
+ }, _callee);
33475
+ }));
33476
+ return _checkLiveReadyInterval.apply(this, arguments);
33361
33477
  }
33362
33478
 
33363
33479
  (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
33364
- if (sourceSrc && shouldStartPull) {
33365
- checkSourceReadyInterval();
33480
+ clearTimeout(counterIdRef.current);
33481
+
33482
+ if (shouldStartPull) {
33483
+ counterIdRef.current = setTimeout(function () {
33484
+ checkLiveReadyInterval(0);
33485
+ }, usePullSource_pullInterval);
33366
33486
  }
33367
33487
 
33368
33488
  return function () {
33369
- if (sourceSrc && shouldStartPull) {
33489
+ if (shouldStartPull) {
33370
33490
  clearTimeout(counterIdRef.current);
33371
33491
  }
33372
33492
  };
33373
- }, [sourceSrc, shouldStartPull]);
33493
+ }, [sourceSrc, liveInfo.status, shouldStartPull]);
33374
33494
  }
33375
33495
 
33376
- function usePullSource_isSourceReady(_x) {
33377
- return hook_usePullSource_isSourceReady.apply(this, arguments);
33496
+ function checkSourceReady(_x) {
33497
+ return _checkSourceReady.apply(this, arguments);
33378
33498
  }
33379
33499
 
33380
- function hook_usePullSource_isSourceReady() {
33381
- hook_usePullSource_isSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(url) {
33382
- return runtime_regenerator_default().wrap(function _callee$(_context) {
33500
+ function _checkSourceReady() {
33501
+ _checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(url) {
33502
+ return runtime_regenerator_default().wrap(function _callee2$(_context2) {
33383
33503
  while (1) {
33384
- switch (_context.prev = _context.next) {
33504
+ switch (_context2.prev = _context2.next) {
33385
33505
  case 0:
33386
- return _context.abrupt("return", axios_default().get(url, {
33506
+ _context2.prev = 0;
33507
+ _context2.next = 3;
33508
+ return axios_default().get(url, {
33387
33509
  timeout: pullTimeout
33388
- }));
33510
+ });
33389
33511
 
33390
- case 1:
33512
+ case 3:
33513
+ return _context2.abrupt("return", true);
33514
+
33515
+ case 6:
33516
+ _context2.prev = 6;
33517
+ _context2.t0 = _context2["catch"](0);
33518
+ return _context2.abrupt("return", false);
33519
+
33520
+ case 9:
33391
33521
  case "end":
33392
- return _context.stop();
33522
+ return _context2.stop();
33393
33523
  }
33394
33524
  }
33395
- }, _callee);
33525
+ }, _callee2, null, [[0, 6]]);
33526
+ }));
33527
+ return _checkSourceReady.apply(this, arguments);
33528
+ }
33529
+
33530
+ function getLiveNewStatus(_x2) {
33531
+ return _getLiveNewStatus.apply(this, arguments);
33532
+ }
33533
+
33534
+ function _getLiveNewStatus() {
33535
+ _getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(liveInfo) {
33536
+ var newLiveInfo;
33537
+ return runtime_regenerator_default().wrap(function _callee3$(_context3) {
33538
+ while (1) {
33539
+ switch (_context3.prev = _context3.next) {
33540
+ case 0:
33541
+ _context3.next = 2;
33542
+ return getOpenClassLiveSimple(liveInfo);
33543
+
33544
+ case 2:
33545
+ newLiveInfo = _context3.sent;
33546
+ return _context3.abrupt("return", newLiveInfo.status);
33547
+
33548
+ case 4:
33549
+ case "end":
33550
+ return _context3.stop();
33551
+ }
33552
+ }
33553
+ }, _callee3);
33396
33554
  }));
33397
- return hook_usePullSource_isSourceReady.apply(this, arguments);
33555
+ return _getLiveNewStatus.apply(this, arguments);
33398
33556
  }
33399
33557
  ;// CONCATENATED MODULE: ./src/detail/LiveStatus/AnchorOnTheWay.jsx
33400
33558
  function AnchorOnTheWay_slicedToArray(arr, i) { return AnchorOnTheWay_arrayWithHoles(arr) || AnchorOnTheWay_iterableToArrayLimit(arr, i) || AnchorOnTheWay_unsupportedIterableToArray(arr, i) || AnchorOnTheWay_nonIterableRest(); }
@@ -33415,13 +33573,15 @@ function AnchorOnTheWay_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr
33415
33573
 
33416
33574
 
33417
33575
 
33576
+
33418
33577
  function AnchorOnTheWay(_ref) {
33419
- var _liveInfo$imInfo, _liveInfo$imInfo$para, _liveInfo$imInfo2, _liveInfo$imInfo2$par, _liveInfo$imInfo2$par2;
33578
+ var _liveInfo$imInfo, _liveInfo$imInfo$para, _liveInfo$imInfo$para2;
33420
33579
 
33421
33580
  var liveInfo = _ref.liveInfo,
33422
33581
  isStreamLive = _ref.isStreamLive,
33423
33582
  hasPlayed = _ref.hasPlayed,
33424
- reload = _ref.reload;
33583
+ reload = _ref.reload,
33584
+ onStatusChange = _ref.onStatusChange;
33425
33585
 
33426
33586
  var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(dayjs_min_default()().isAfter(dayjs_min_default()(liveInfo.end_time))),
33427
33587
  _useState2 = AnchorOnTheWay_slicedToArray(_useState, 2),
@@ -33431,14 +33591,15 @@ function AnchorOnTheWay(_ref) {
33431
33591
  hook_useInterval(function () {
33432
33592
  setIsAfterEndTime(dayjs_min_default()().isAfter(dayjs_min_default()(liveInfo.end_time)));
33433
33593
  }, 1000);
33434
- var sourceSrc = liveInfo === null || liveInfo === void 0 ? void 0 : (_liveInfo$imInfo = liveInfo.imInfo) === null || _liveInfo$imInfo === void 0 ? void 0 : (_liveInfo$imInfo$para = _liveInfo$imInfo.param) === null || _liveInfo$imInfo$para === void 0 ? void 0 : _liveInfo$imInfo$para.url;
33435
- var hasMultiLines = (liveInfo === null || liveInfo === void 0 ? void 0 : (_liveInfo$imInfo2 = liveInfo.imInfo) === null || _liveInfo$imInfo2 === void 0 ? void 0 : (_liveInfo$imInfo2$par = _liveInfo$imInfo2.param) === null || _liveInfo$imInfo2$par === void 0 ? void 0 : (_liveInfo$imInfo2$par2 = _liveInfo$imInfo2$par.lines) === null || _liveInfo$imInfo2$par2 === void 0 ? void 0 : _liveInfo$imInfo2$par2.length) > 1;
33436
33594
  usePullSource({
33437
- sourceSrc: sourceSrc,
33595
+ liveInfo: liveInfo,
33438
33596
  reload: reload,
33597
+ onStatusChange: onStatusChange,
33439
33598
  shouldStartPull: isStreamLive
33440
33599
  });
33441
- return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, isAfterEndTime ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33600
+ var hasMultiLines = (liveInfo === null || liveInfo === void 0 ? void 0 : (_liveInfo$imInfo = liveInfo.imInfo) === null || _liveInfo$imInfo === void 0 ? void 0 : (_liveInfo$imInfo$para = _liveInfo$imInfo.param) === null || _liveInfo$imInfo$para === void 0 ? void 0 : (_liveInfo$imInfo$para2 = _liveInfo$imInfo$para.lines) === null || _liveInfo$imInfo$para2 === void 0 ? void 0 : _liveInfo$imInfo$para2.length) > 1;
33601
+ var isNDMeeting = liveInfo.sub_type === SUB_TYPE.NET_DRAGON;
33602
+ return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, isAfterEndTime && !isNDMeeting ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33442
33603
  className: detail_LiveStatus_index_module["status-completed"]
33443
33604
  }, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33444
33605
  className: detail_LiveStatus_index_module.icon
@@ -33450,13 +33611,13 @@ function AnchorOnTheWay(_ref) {
33450
33611
  className: detail_LiveStatus_index_module.icon
33451
33612
  }), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33452
33613
  className: detail_LiveStatus_index_module.text
33453
- }, isStreamLive ? hasPlayed ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", null, "\u52A0\u8F7D\u4E2D..."), hasMultiLines ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33614
+ }, isStreamLive ? hasPlayed ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", null, isNDMeeting ? '主播正在赶来的路上...' : '加载中...'), hasMultiLines ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33454
33615
  style: {
33455
33616
  fontSize: '20px',
33456
33617
  fontWeight: 'normal',
33457
33618
  margin: '10px 0'
33458
33619
  }
33459
- }, "\u5C1D\u8BD5\u5207\u6362\u7EBF\u8DEF\u770B\u770B\u5427~") : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null)) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", null, "\u7B49\u5F85\u5F00\u64AD\u4E2D...")) : '主播正在赶来的路上...')));
33620
+ }, "\u5C1D\u8BD5\u5207\u6362\u7EBF\u8DEF\u770B\u770B\u5427~") : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null)) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", null, isNDMeeting ? '主播正在赶来的路上...' : '等待开播中...')) : '主播正在赶来的路上...')));
33460
33621
  }
33461
33622
  ;// CONCATENATED MODULE: ./src/detail/LiveStatus/index.jsx
33462
33623
 
@@ -33476,6 +33637,7 @@ function LiveStatus_iterableToArrayLimit(arr, i) { var _i = arr == null ? null :
33476
33637
 
33477
33638
  function LiveStatus_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33478
33639
 
33640
+ /* eslint-disable no-nested-ternary */
33479
33641
 
33480
33642
 
33481
33643
 
@@ -33484,7 +33646,8 @@ function LiveStatus_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33484
33646
 
33485
33647
 
33486
33648
  function LiveStatus(_ref) {
33487
- var handleLogin = _ref.handleLogin,
33649
+ var isStreamLive = _ref.isStreamLive,
33650
+ handleLogin = _ref.handleLogin,
33488
33651
  userInfo = _ref.userInfo,
33489
33652
  liveInfo = _ref.liveInfo,
33490
33653
  hasPlayed = _ref.hasPlayed,
@@ -33505,6 +33668,8 @@ function LiveStatus(_ref) {
33505
33668
  return undefined;
33506
33669
  } : _ref$onReloadLive;
33507
33670
 
33671
+ // 调试代码 模拟倒计时2S
33672
+ // const [countDownTime, setCountDownTime] = useState(2000)
33508
33673
  var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(dayjs_min_default()(liveInfo.begin_time).valueOf() - visitTime),
33509
33674
  _useState2 = LiveStatus_slicedToArray(_useState, 2),
33510
33675
  countDownTime = _useState2[0],
@@ -33515,8 +33680,7 @@ function LiveStatus(_ref) {
33515
33680
  var isCompleted = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.COMPLETEED;
33516
33681
  var isPaused = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.PASUED;
33517
33682
  var isOffline = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.OFFLINE;
33518
- var isRecordLive = liveInfo.type === PUBLIC_LIVE_MODE.RECORDED;
33519
- var isStreamLive = liveInfo.type === PUBLIC_LIVE_MODE.LIVING && (liveInfo.sub_type === SUB_TYPE.OUTSIDE || liveInfo.sub_type === SUB_TYPE.REBROADCAST); // 当前时间是否在回放时间开始前, 如果没有回放开始时间, 则直接判断未回放还没生成
33683
+ var isRecordLive = liveInfo.type === PUBLIC_LIVE_MODE.RECORDED; // 当前时间是否在回放时间开始前, 如果没有回放开始时间, 则直接判断未回放还没生成
33520
33684
 
33521
33685
  var isBeforeRecordTime = liveInfo.replay_begin_time ? dayjs_min_default()().isBefore(dayjs_min_default()(liveInfo.replay_begin_time)) : true;
33522
33686
  var mustLogin = !userInfo && liveInfo.login;
@@ -33529,6 +33693,7 @@ function LiveStatus(_ref) {
33529
33693
 
33530
33694
  var startLiving = function startLiving() {
33531
33695
  if (isRecordLive || isStreamLive) {
33696
+ setCountDownTime(0);
33532
33697
  onStatusChange(publicLive_PUBLIC_LIVE_STATUS.LIVEING, {
33533
33698
  play: !mustLogin
33534
33699
  });
@@ -33543,19 +33708,25 @@ function LiveStatus(_ref) {
33543
33708
  } else {
33544
33709
  onPlayReplay();
33545
33710
  }
33546
- };
33547
-
33548
- if (canLiveStart && !isLiveException && !isLiveLoading && !isLiveLoadError) {
33549
- return null;
33550
- } // 播放状态
33711
+ }; // 播放状态
33551
33712
 
33552
33713
 
33553
33714
  if (canLiveStart) {
33715
+ if (!isLiveException && !isLiveLoading && !isLiveLoadError) {
33716
+ return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null);
33717
+ }
33718
+
33554
33719
  return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33555
33720
  className: detail_LiveStatus_index_module["live-status-wrapper"]
33556
33721
  }, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33557
33722
  className: detail_LiveStatus_index_module["live-status"]
33558
- }, isLiveLoadError && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33723
+ }, isLiveException ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(AnchorOnTheWay, {
33724
+ liveInfo: liveInfo,
33725
+ isStreamLive: isStreamLive,
33726
+ hasPlayed: hasPlayed,
33727
+ reload: onReloadLive,
33728
+ onStatusChange: onStatusChange
33729
+ }) : isLiveLoadError ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33559
33730
  className: detail_LiveStatus_index_module["status-load-error"]
33560
33731
  }, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_icon, {
33561
33732
  type: "exclamation-circle",
@@ -33565,12 +33736,7 @@ function LiveStatus(_ref) {
33565
33736
  }, "\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("button", {
33566
33737
  className: detail_LiveStatus_index_module["primary-btn"],
33567
33738
  onClick: onReloadLive
33568
- }, "\u91CD\u8BD5")), !isLiveLoadError && isLiveException && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(AnchorOnTheWay, {
33569
- liveInfo: liveInfo,
33570
- isStreamLive: isStreamLive,
33571
- hasPlayed: hasPlayed,
33572
- reload: onReloadLive
33573
- }), !isLiveLoadError && !isLiveException && isLiveLoading && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33739
+ }, "\u91CD\u8BD5")) : isLiveLoading ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33574
33740
  className: detail_LiveStatus_index_module["status-living-loading"]
33575
33741
  }, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(spin, {
33576
33742
  indicator: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_icon, {
@@ -33580,7 +33746,7 @@ function LiveStatus(_ref) {
33580
33746
  })
33581
33747
  }), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33582
33748
  className: detail_LiveStatus_index_module.text
33583
- }, "\u52A0\u8F7D\u4E2D...")))), !isRecordLive && (isLiveLoadError || isLiveException) && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33749
+ }, "\u52A0\u8F7D\u4E2D...")) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null))), !isRecordLive && (isLiveLoadError || isLiveException) && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33584
33750
  className: detail_LiveStatus_index_module["video-poster"],
33585
33751
  style: coverBgStyle
33586
33752
  }));
@@ -33600,7 +33766,8 @@ function LiveStatus(_ref) {
33600
33766
  liveInfo: liveInfo,
33601
33767
  isStreamLive: isStreamLive,
33602
33768
  hasPlayed: hasPlayed,
33603
- reload: onReloadLive
33769
+ reload: onReloadLive,
33770
+ onStatusChange: onStatusChange
33604
33771
  })), isLiving && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33605
33772
  className: detail_LiveStatus_index_module["status-living"]
33606
33773
  }, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
@@ -33617,7 +33784,8 @@ function LiveStatus(_ref) {
33617
33784
  liveInfo: liveInfo,
33618
33785
  isStreamLive: isStreamLive,
33619
33786
  hasPlayed: hasPlayed,
33620
- reload: onReloadLive
33787
+ reload: onReloadLive,
33788
+ onStatusChange: onStatusChange
33621
33789
  }), isOffline && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
33622
33790
  className: detail_LiveStatus_index_module["status-offline"]
33623
33791
  }, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_icon, {
@@ -33695,7 +33863,8 @@ function RecordVideo_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33695
33863
 
33696
33864
 
33697
33865
  function RecordVideo(_ref) {
33698
- var userInfo = _ref.userInfo,
33866
+ var isStreamLive = _ref.isStreamLive,
33867
+ userInfo = _ref.userInfo,
33699
33868
  liveInfo = _ref.liveInfo,
33700
33869
  visitTime = _ref.visitTime,
33701
33870
  diffTime = _ref.diffTime,
@@ -33836,6 +34005,7 @@ function RecordVideo(_ref) {
33836
34005
  options: options,
33837
34006
  onReady: handleVideoReady
33838
34007
  }), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(detail_LiveStatus, {
34008
+ isStreamLive: isStreamLive,
33839
34009
  userInfo: userInfo,
33840
34010
  visitTime: visitTime,
33841
34011
  diffTime: diffTime,
@@ -33847,6 +34017,8 @@ function RecordVideo(_ref) {
33847
34017
  onReloadLive: handleVideoReload
33848
34018
  }));
33849
34019
  }
34020
+ // EXTERNAL MODULE: ./node_modules/@sdp.nd/fish/es/loader/style/index.js
34021
+ var loader_style = __webpack_require__(4646);
33850
34022
  ;// CONCATENATED MODULE: ./src/component/AliPlayer/index.jsx
33851
34023
 
33852
34024
 
@@ -33886,8 +34058,8 @@ function AliPlayer(_ref) {
33886
34058
  var aliPlayer;
33887
34059
 
33888
34060
  var init = /*#__PURE__*/function () {
33889
- var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
33890
- return regenerator_default().wrap(function _callee$(_context) {
34061
+ var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
34062
+ return runtime_regenerator_default().wrap(function _callee$(_context) {
33891
34063
  while (1) {
33892
34064
  switch (_context.prev = _context.next) {
33893
34065
  case 0:
@@ -34012,39 +34184,6 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
34012
34184
  // style dependencies
34013
34185
 
34014
34186
 
34015
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
34016
- function defineProperty_defineProperty(obj, key, value) {
34017
- if (key in obj) {
34018
- Object.defineProperty(obj, key, {
34019
- value: value,
34020
- enumerable: true,
34021
- configurable: true,
34022
- writable: true
34023
- });
34024
- } else {
34025
- obj[key] = value;
34026
- }
34027
-
34028
- return obj;
34029
- }
34030
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
34031
- function esm_extends_extends() {
34032
- esm_extends_extends = Object.assign || function (target) {
34033
- for (var i = 1; i < arguments.length; i++) {
34034
- var source = arguments[i];
34035
-
34036
- for (var key in source) {
34037
- if (Object.prototype.hasOwnProperty.call(source, key)) {
34038
- target[key] = source[key];
34039
- }
34040
- }
34041
- }
34042
-
34043
- return target;
34044
- };
34045
-
34046
- return esm_extends_extends.apply(this, arguments);
34047
- }
34048
34187
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
34049
34188
  function arrayWithHoles_arrayWithHoles(arr) {
34050
34189
  if (Array.isArray(arr)) return arr;
@@ -34111,129 +34250,6 @@ function nonIterableRest_nonIterableRest() {
34111
34250
  function slicedToArray_slicedToArray(arr, i) {
34112
34251
  return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
34113
34252
  }
34114
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
34115
- function classCallCheck_classCallCheck(instance, Constructor) {
34116
- if (!(instance instanceof Constructor)) {
34117
- throw new TypeError("Cannot call a class as a function");
34118
- }
34119
- }
34120
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
34121
- function createClass_defineProperties(target, props) {
34122
- for (var i = 0; i < props.length; i++) {
34123
- var descriptor = props[i];
34124
- descriptor.enumerable = descriptor.enumerable || false;
34125
- descriptor.configurable = true;
34126
- if ("value" in descriptor) descriptor.writable = true;
34127
- Object.defineProperty(target, descriptor.key, descriptor);
34128
- }
34129
- }
34130
-
34131
- function createClass_createClass(Constructor, protoProps, staticProps) {
34132
- if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
34133
- if (staticProps) createClass_defineProperties(Constructor, staticProps);
34134
- return Constructor;
34135
- }
34136
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
34137
- function setPrototypeOf_setPrototypeOf(o, p) {
34138
- setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
34139
- o.__proto__ = p;
34140
- return o;
34141
- };
34142
-
34143
- return setPrototypeOf_setPrototypeOf(o, p);
34144
- }
34145
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
34146
-
34147
- function inherits_inherits(subClass, superClass) {
34148
- if (typeof superClass !== "function" && superClass !== null) {
34149
- throw new TypeError("Super expression must either be null or a function");
34150
- }
34151
-
34152
- subClass.prototype = Object.create(superClass && superClass.prototype, {
34153
- constructor: {
34154
- value: subClass,
34155
- writable: true,
34156
- configurable: true
34157
- }
34158
- });
34159
- if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
34160
- }
34161
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
34162
- function getPrototypeOf_getPrototypeOf(o) {
34163
- getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
34164
- return o.__proto__ || Object.getPrototypeOf(o);
34165
- };
34166
- return getPrototypeOf_getPrototypeOf(o);
34167
- }
34168
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
34169
- function isNativeReflectConstruct_isNativeReflectConstruct() {
34170
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
34171
- if (Reflect.construct.sham) return false;
34172
- if (typeof Proxy === "function") return true;
34173
-
34174
- try {
34175
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
34176
- return true;
34177
- } catch (e) {
34178
- return false;
34179
- }
34180
- }
34181
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
34182
- function esm_typeof_typeof(obj) {
34183
- "@babel/helpers - typeof";
34184
-
34185
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
34186
- esm_typeof_typeof = function _typeof(obj) {
34187
- return typeof obj;
34188
- };
34189
- } else {
34190
- esm_typeof_typeof = function _typeof(obj) {
34191
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
34192
- };
34193
- }
34194
-
34195
- return esm_typeof_typeof(obj);
34196
- }
34197
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
34198
- function assertThisInitialized_assertThisInitialized(self) {
34199
- if (self === void 0) {
34200
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
34201
- }
34202
-
34203
- return self;
34204
- }
34205
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
34206
-
34207
-
34208
- function possibleConstructorReturn_possibleConstructorReturn(self, call) {
34209
- if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
34210
- return call;
34211
- } else if (call !== void 0) {
34212
- throw new TypeError("Derived constructors may only return object or undefined");
34213
- }
34214
-
34215
- return assertThisInitialized_assertThisInitialized(self);
34216
- }
34217
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
34218
-
34219
-
34220
-
34221
- function createSuper_createSuper(Derived) {
34222
- var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
34223
- return function _createSuperInternal() {
34224
- var Super = getPrototypeOf_getPrototypeOf(Derived),
34225
- result;
34226
-
34227
- if (hasNativeReflectConstruct) {
34228
- var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
34229
- result = Reflect.construct(Super, arguments, NewTarget);
34230
- } else {
34231
- result = Super.apply(this, arguments);
34232
- }
34233
-
34234
- return possibleConstructorReturn_possibleConstructorReturn(this, result);
34235
- };
34236
- }
34237
34253
  ;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
34238
34254
  var raf = function raf(callback) {
34239
34255
  return +setTimeout(callback, 16);
@@ -44466,7 +44482,8 @@ var shouldfixedLoading = window.navigator.userAgent.indexOf('iPad') > -1 || wind
44466
44482
  function LiveVideo(_ref) {
44467
44483
  var _liveInfo$imInfo9, _liveInfo$imInfo9$par;
44468
44484
 
44469
- var handleLogin = _ref.handleLogin,
44485
+ var isStreamLive = _ref.isStreamLive,
44486
+ handleLogin = _ref.handleLogin,
44470
44487
  userInfo = _ref.userInfo,
44471
44488
  liveInfo = _ref.liveInfo,
44472
44489
  visitTime = _ref.visitTime,
@@ -44600,6 +44617,7 @@ function LiveVideo(_ref) {
44600
44617
  options: options,
44601
44618
  onReady: handleVideoReady
44602
44619
  }), supportM3u8 && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(detail_LiveStatus, {
44620
+ isStreamLive: isStreamLive,
44603
44621
  handleLogin: handleLogin,
44604
44622
  userInfo: userInfo,
44605
44623
  visitTime: visitTime,
@@ -53887,7 +53905,7 @@ var InternalSelect = function InternalSelect(_a, ref) {
53887
53905
  } // ===================== Icons =====================
53888
53906
 
53889
53907
 
53890
- var _getIcons = getIcons(extends_extends(extends_extends({}, props), {
53908
+ var _getIcons = getIcons(esm_extends_extends(esm_extends_extends({}, props), {
53891
53909
  multiple: isMultiple,
53892
53910
  prefixCls: prefixCls
53893
53911
  })),
@@ -53897,10 +53915,10 @@ var InternalSelect = function InternalSelect(_a, ref) {
53897
53915
  clearIcon = _getIcons.clearIcon;
53898
53916
 
53899
53917
  var selectProps = omit(props, ['suffixIcon', 'itemIcon']);
53900
- var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName, _defineProperty({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
53918
+ var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
53901
53919
  var mergedSize = customizeSize || size;
53902
- 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);
53903
- return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es, extends_extends({
53920
+ var mergedClassName = classnames_default()((_classNames2 = {}, defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-lg"), mergedSize === 'large'), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-sm"), mergedSize === 'small'), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-borderless"), !bordered), _classNames2), className);
53921
+ return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es, esm_extends_extends({
53904
53922
  ref: ref,
53905
53923
  virtual: virtual,
53906
53924
  dropdownMatchSelectWidth: dropdownMatchSelectWidth
@@ -55192,9 +55210,9 @@ function LiveOnlineCount(_ref) {
55192
55210
  };
55193
55211
 
55194
55212
  (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
55195
- LiveOnlineCount_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
55213
+ LiveOnlineCount_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
55196
55214
  var count, likesData, currentCount;
55197
- return regenerator_default().wrap(function _callee$(_context) {
55215
+ return runtime_regenerator_default().wrap(function _callee$(_context) {
55198
55216
  while (1) {
55199
55217
  switch (_context.prev = _context.next) {
55200
55218
  case 0:
@@ -55370,7 +55388,6 @@ function detail_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
55370
55388
 
55371
55389
 
55372
55390
 
55373
-
55374
55391
  // import IMChatroom from '@/component/IMChatroom'
55375
55392
 
55376
55393
 
@@ -55461,7 +55478,7 @@ function PublicLiveDetail(_ref) {
55461
55478
  userRole = loginInfo.userRole,
55462
55479
  loginStatus = loginInfo.loginStatus;
55463
55480
  var isLiveToReplay = !replay;
55464
- var isStreamLive = liveInfo && liveInfo.type === PUBLIC_LIVE_MODE.LIVING && (liveInfo.sub_type === SUB_TYPE.OUTSIDE || liveInfo.sub_type === SUB_TYPE.REBROADCAST);
55481
+ var isStreamLive = liveInfo && liveInfo.type === PUBLIC_LIVE_MODE.LIVING;
55465
55482
 
55466
55483
  var handleStatusChange = /*#__PURE__*/function () {
55467
55484
  var _ref2 = detail_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(status) {
@@ -55478,7 +55495,7 @@ function PublicLiveDetail(_ref) {
55478
55495
  onStateChange(newLiveInfo);
55479
55496
  isRecordLive = liveInfo.type === PUBLIC_LIVE_MODE.RECORDED;
55480
55497
 
55481
- if (!(!isRecordLive && status === publicLive_PUBLIC_LIVE_STATUS.LIVEING && isEmpty(liveInfo.imInfo))) {
55498
+ if (!(!isRecordLive && [publicLive_PUBLIC_LIVE_STATUS.NOSTARTED, publicLive_PUBLIC_LIVE_STATUS.LIVEING, publicLive_PUBLIC_LIVE_STATUS.PASUED].includes(status) && isEmpty(liveInfo.imInfo))) {
55482
55499
  _context.next = 18;
55483
55500
  break;
55484
55501
  }
@@ -55581,6 +55598,8 @@ function PublicLiveDetail(_ref) {
55581
55598
  return _context2.abrupt("return");
55582
55599
 
55583
55600
  case 10:
55601
+ // 调试代码 模拟直播倒计时结束
55602
+ // data.status = PUBLIC_LIVE_STATUS.NOSTARTED
55584
55603
  isRecordLive = data.type === PUBLIC_LIVE_MODE.RECORDED;
55585
55604
  isNoStarted = data.status === publicLive_PUBLIC_LIVE_STATUS.NOSTARTED;
55586
55605
  isCompleted = data.status === publicLive_PUBLIC_LIVE_STATUS.COMPLETEED;
@@ -55644,19 +55663,6 @@ function PublicLiveDetail(_ref) {
55644
55663
  data.imInfo = imLiveInfoResp;
55645
55664
 
55646
55665
  case 31:
55647
- if (!(data.type === PUBLIC_LIVE_MODE.LIVING && data.sub_type === SUB_TYPE.OUTSIDE)) {
55648
- _context2.next = 34;
55649
- break;
55650
- }
55651
-
55652
- _context2.next = 36;
55653
- break;
55654
-
55655
- case 34:
55656
- _context2.next = 36;
55657
- return push.init();
55658
-
55659
- case 36:
55660
55666
  // 如果是转播或者是推流 直接播放(用于调试模式)
55661
55667
  _getUrlQuery2 = (0,url/* getUrlQuery */.pf)(), preview = _getUrlQuery2.preview; // 后台点预览会加这个参数
55662
55668
 
@@ -55665,7 +55671,7 @@ function PublicLiveDetail(_ref) {
55665
55671
  }) : data;
55666
55672
  setLiveInfo(generateInfo);
55667
55673
 
55668
- case 39:
55674
+ case 34:
55669
55675
  case "end":
55670
55676
  return _context2.stop();
55671
55677
  }
@@ -55680,31 +55686,6 @@ function PublicLiveDetail(_ref) {
55680
55686
 
55681
55687
  init();
55682
55688
  }, []);
55683
- (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
55684
- if (!liveInfo || liveInfo.sub_type === SUB_TYPE.OUTSIDE) {
55685
- return;
55686
- }
55687
-
55688
- var handler = function handler(data) {
55689
- var _data$extraFields = data.extraFields,
55690
- extraFields = _data$extraFields === void 0 ? {} : _data$extraFields;
55691
- console.log('public Live:', data);
55692
-
55693
- if (extraFields.event === PUBLIC_LIVE_PUSH_EVENT.STATUS_CHANGE && extraFields.liveId === liveId) {
55694
- console.log("public Live: receive push status ".concat(parseInt(extraFields.status, 10)));
55695
- handleStatusChange(parseInt(extraFields.status, 10));
55696
- }
55697
- };
55698
-
55699
- push.addTopicListener("".concat(PUBLIC_LIVE_PUSH_TOPIC, "_").concat(liveId), handler);
55700
- return function () {
55701
- if (!liveInfo || liveInfo.sub_type === SUB_TYPE.OUTSIDE) {
55702
- return;
55703
- }
55704
-
55705
- push.removeTopicListener("".concat(PUBLIC_LIVE_PUSH_TOPIC, "_").concat(liveId), handler);
55706
- };
55707
- }, [!!liveInfo]);
55708
55689
  (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
55709
55690
  if (userInfo) {
55710
55691
  onReportProgress();
@@ -55823,6 +55804,7 @@ function PublicLiveDetail(_ref) {
55823
55804
  className: src_detail_index_module["live-wrap"]
55824
55805
  }, // eslint-disable-next-line no-nested-ternary
55825
55806
  isReplayMode ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(ReplayVideo, {
55807
+ userInfo: userInfo,
55826
55808
  handleLogin: handleLogin,
55827
55809
  liveInfo: liveInfo,
55828
55810
  autoplay: isLiveToReplay,
@@ -55831,6 +55813,7 @@ function PublicLiveDetail(_ref) {
55831
55813
  },
55832
55814
  onRequestFullScreen: handleRequestFullScreen
55833
55815
  }) : isRecordLive ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(RecordVideo, {
55816
+ isStreamLive: isStreamLive,
55834
55817
  userInfo: userInfo,
55835
55818
  liveInfo: liveInfo,
55836
55819
  visitTime: visitTime,
@@ -55844,6 +55827,7 @@ function PublicLiveDetail(_ref) {
55844
55827
  },
55845
55828
  onRequestFullScreen: handleRequestFullScreen
55846
55829
  }) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(LiveVideo, {
55830
+ isStreamLive: isStreamLive,
55847
55831
  handleLogin: handleLogin,
55848
55832
  userInfo: userInfo,
55849
55833
  liveInfo: liveInfo,
@@ -55857,7 +55841,7 @@ function PublicLiveDetail(_ref) {
55857
55841
  handleVideoPlay(true);
55858
55842
  },
55859
55843
  onRequestFullScreen: handleRequestFullScreen
55860
- })), !isReplayMode && !isRecordLive && isStreamLive && liveInfo.status !== publicLive_PUBLIC_LIVE_STATUS.COMPLETEED && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(LineSwitch, {
55844
+ })), !isReplayMode && !isRecordLive && liveInfo.sub_type !== SUB_TYPE.NET_DRAGON && liveInfo.status !== publicLive_PUBLIC_LIVE_STATUS.COMPLETEED && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(LineSwitch, {
55861
55845
  className: src_detail_index_module["live-line-switch"],
55862
55846
  liveInfo: liveInfo,
55863
55847
  onChange: handleSelectChange
@@ -59766,11 +59750,11 @@ function tabs_Tabs(_a) {
59766
59750
  var _classNames;
59767
59751
 
59768
59752
  var size = propSize !== undefined ? propSize : contextSize;
59769
- return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es, extends_extends({
59753
+ return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es, esm_extends_extends({
59770
59754
  direction: direction,
59771
59755
  moreTransitionName: "".concat(rootPrefixCls, "-slide-up")
59772
59756
  }, props, {
59773
- className: classnames_default()((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(size), size), _defineProperty(_classNames, "".concat(prefixCls, "-card"), ['card', 'editable-card'].includes(type)), _defineProperty(_classNames, "".concat(prefixCls, "-editable-card"), type === 'editable-card'), _defineProperty(_classNames, "".concat(prefixCls, "-centered"), centered), _classNames), className),
59757
+ className: classnames_default()((_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(size), size), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-card"), ['card', 'editable-card'].includes(type)), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-editable-card"), type === 'editable-card'), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-centered"), centered), _classNames), className),
59774
59758
  editable: editable,
59775
59759
  moreIcon: moreIcon,
59776
59760
  prefixCls: prefixCls
@@ -61632,8 +61616,8 @@ function ListItem(_ref) {
61632
61616
  status = data.status;
61633
61617
 
61634
61618
  var handleDetailClick = /*#__PURE__*/function () {
61635
- var _ref2 = ListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
61636
- return regenerator_default().wrap(function _callee$(_context) {
61619
+ var _ref2 = ListItem_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
61620
+ return runtime_regenerator_default().wrap(function _callee$(_context) {
61637
61621
  while (1) {
61638
61622
  switch (_context.prev = _context.next) {
61639
61623
  case 0: