@x-edu/live-player 0.0.12 → 0.0.13
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 +170 -26
- package/dist/XEduLivePlayerPre.common.js +377 -233
- package/package.json +1 -1
- package/src/detail/LiveStatus/index.jsx +186 -186
- package/src/detail/LiveVideo/index.jsx +1 -3
- package/src/detail/RecordVideo/index.jsx +148 -150
- package/src/detail/index.jsx +501 -475
|
@@ -29994,6 +29994,9 @@ var parseAdapter = function parseAdapter(option, dayjsClass) {
|
|
|
29994
29994
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
29995
29995
|
var regenerator = __webpack_require__(7757);
|
|
29996
29996
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
29997
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
29998
|
+
var runtime_regenerator = __webpack_require__(5273);
|
|
29999
|
+
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
29997
30000
|
// EXTERNAL MODULE: ./node_modules/axios/index.js
|
|
29998
30001
|
var axios = __webpack_require__(9669);
|
|
29999
30002
|
var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
|
|
@@ -30762,7 +30765,7 @@ var LIVING_CLOSE_LOGIN = {
|
|
|
30762
30765
|
CLOSE: '1'
|
|
30763
30766
|
}; // 子类型 1 网龙会议 2 外部推流 3 转播
|
|
30764
30767
|
|
|
30765
|
-
var
|
|
30768
|
+
var publicLive_SUB_TYPE = {
|
|
30766
30769
|
NET_DRAGON: 1,
|
|
30767
30770
|
OUTSIDE: 2,
|
|
30768
30771
|
REBROADCAST: 3
|
|
@@ -30819,7 +30822,7 @@ function getServiceConfig(_x) {
|
|
|
30819
30822
|
}
|
|
30820
30823
|
|
|
30821
30824
|
function _getServiceConfig() {
|
|
30822
|
-
_getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/
|
|
30825
|
+
_getServiceConfig = getServiceConfig_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(serviceName) {
|
|
30823
30826
|
var sdpAppId,
|
|
30824
30827
|
env,
|
|
30825
30828
|
key,
|
|
@@ -30831,7 +30834,7 @@ function _getServiceConfig() {
|
|
|
30831
30834
|
result,
|
|
30832
30835
|
ttl,
|
|
30833
30836
|
_args = arguments;
|
|
30834
|
-
return
|
|
30837
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
30835
30838
|
while (1) {
|
|
30836
30839
|
switch (_context.prev = _context.next) {
|
|
30837
30840
|
case 0:
|
|
@@ -31095,13 +31098,13 @@ function withOnce(fn) {
|
|
|
31095
31098
|
var lockPool = createLockPool();
|
|
31096
31099
|
|
|
31097
31100
|
var newFn = /*#__PURE__*/function () {
|
|
31098
|
-
var _ref3 = hof_asyncToGenerator( /*#__PURE__*/
|
|
31101
|
+
var _ref3 = hof_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2() {
|
|
31099
31102
|
var key,
|
|
31100
31103
|
lock,
|
|
31101
31104
|
lockId,
|
|
31102
31105
|
result,
|
|
31103
31106
|
_args2 = arguments;
|
|
31104
|
-
return
|
|
31107
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
31105
31108
|
while (1) {
|
|
31106
31109
|
switch (_context2.prev = _context2.next) {
|
|
31107
31110
|
case 0:
|
|
@@ -31607,9 +31610,9 @@ function _getLiveAPICache() {
|
|
|
31607
31610
|
}
|
|
31608
31611
|
|
|
31609
31612
|
function _getLiveAPICache2() {
|
|
31610
|
-
_getLiveAPICache2 = live_asyncToGenerator( /*#__PURE__*/
|
|
31613
|
+
_getLiveAPICache2 = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee11() {
|
|
31611
31614
|
var url, result, serverTime;
|
|
31612
|
-
return
|
|
31615
|
+
return runtime_regenerator_default().wrap(function _callee11$(_context11) {
|
|
31613
31616
|
while (1) {
|
|
31614
31617
|
switch (_context11.prev = _context11.next) {
|
|
31615
31618
|
case 0:
|
|
@@ -31649,9 +31652,9 @@ function getOpenClassWithCache(_x11) {
|
|
|
31649
31652
|
} // 公开直播详情变化部分,失败要降级处理
|
|
31650
31653
|
|
|
31651
31654
|
function _getOpenClassWithCache() {
|
|
31652
|
-
_getOpenClassWithCache = live_asyncToGenerator( /*#__PURE__*/
|
|
31655
|
+
_getOpenClassWithCache = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee12(url) {
|
|
31653
31656
|
var fullUrl, cacheInfo, cacheData, result, serverTime;
|
|
31654
|
-
return
|
|
31657
|
+
return runtime_regenerator_default().wrap(function _callee12$(_context12) {
|
|
31655
31658
|
while (1) {
|
|
31656
31659
|
switch (_context12.prev = _context12.next) {
|
|
31657
31660
|
case 0:
|
|
@@ -31723,9 +31726,9 @@ function getOpenClassLiveSimple(_x12) {
|
|
|
31723
31726
|
} // 公开直播详情拆分成两个接口
|
|
31724
31727
|
|
|
31725
31728
|
function _getOpenClassLiveSimple() {
|
|
31726
|
-
_getOpenClassLiveSimple = live_asyncToGenerator( /*#__PURE__*/
|
|
31729
|
+
_getOpenClassLiveSimple = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee13(liveInfo) {
|
|
31727
31730
|
var url, data;
|
|
31728
|
-
return
|
|
31731
|
+
return runtime_regenerator_default().wrap(function _callee13$(_context13) {
|
|
31729
31732
|
while (1) {
|
|
31730
31733
|
switch (_context13.prev = _context13.next) {
|
|
31731
31734
|
case 0:
|
|
@@ -31764,9 +31767,9 @@ function getOpenClassLiveBase(_x13) {
|
|
|
31764
31767
|
} // 公开实时直播-发起直播-公共直播邀请页使用,适配为班级直播数据
|
|
31765
31768
|
|
|
31766
31769
|
function _getOpenClassLiveBase() {
|
|
31767
|
-
_getOpenClassLiveBase = live_asyncToGenerator( /*#__PURE__*/
|
|
31770
|
+
_getOpenClassLiveBase = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee14(id) {
|
|
31768
31771
|
var url, data, subType, dynamicInfo;
|
|
31769
|
-
return
|
|
31772
|
+
return runtime_regenerator_default().wrap(function _callee14$(_context14) {
|
|
31770
31773
|
while (1) {
|
|
31771
31774
|
switch (_context14.prev = _context14.next) {
|
|
31772
31775
|
case 0:
|
|
@@ -31778,7 +31781,7 @@ function _getOpenClassLiveBase() {
|
|
|
31778
31781
|
data = _context14.sent;
|
|
31779
31782
|
subType = data.sub_type; // 外部推流则直接返回, 不去请求兼容接口
|
|
31780
31783
|
|
|
31781
|
-
if (!(subType ===
|
|
31784
|
+
if (!(subType === publicLive_SUB_TYPE.OUTSIDE)) {
|
|
31782
31785
|
_context14.next = 7;
|
|
31783
31786
|
break;
|
|
31784
31787
|
}
|
|
@@ -31846,9 +31849,9 @@ function getOpenClassLive(_x15) {
|
|
|
31846
31849
|
}
|
|
31847
31850
|
|
|
31848
31851
|
function _getOpenClassLive() {
|
|
31849
|
-
_getOpenClassLive = live_asyncToGenerator( /*#__PURE__*/
|
|
31852
|
+
_getOpenClassLive = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee16(id) {
|
|
31850
31853
|
var serviceConfig, liveCloseLogin, data;
|
|
31851
|
-
return
|
|
31854
|
+
return runtime_regenerator_default().wrap(function _callee16$(_context16) {
|
|
31852
31855
|
while (1) {
|
|
31853
31856
|
switch (_context16.prev = _context16.next) {
|
|
31854
31857
|
case 0:
|
|
@@ -31961,9 +31964,9 @@ function OpenLiveSearchFront(_x18) {
|
|
|
31961
31964
|
*/
|
|
31962
31965
|
|
|
31963
31966
|
function _OpenLiveSearchFront() {
|
|
31964
|
-
_OpenLiveSearchFront = live_asyncToGenerator( /*#__PURE__*/
|
|
31967
|
+
_OpenLiveSearchFront = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee19(_ref2) {
|
|
31965
31968
|
var status, scopeType, scopeId, offset, limit, url, response;
|
|
31966
|
-
return
|
|
31969
|
+
return runtime_regenerator_default().wrap(function _callee19$(_context19) {
|
|
31967
31970
|
while (1) {
|
|
31968
31971
|
switch (_context19.prev = _context19.next) {
|
|
31969
31972
|
case 0:
|
|
@@ -32014,9 +32017,9 @@ function getSubscription() {
|
|
|
32014
32017
|
*/
|
|
32015
32018
|
|
|
32016
32019
|
function _getSubscription() {
|
|
32017
|
-
_getSubscription = live_asyncToGenerator( /*#__PURE__*/
|
|
32020
|
+
_getSubscription = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee20() {
|
|
32018
32021
|
var url, response;
|
|
32019
|
-
return
|
|
32022
|
+
return runtime_regenerator_default().wrap(function _callee20$(_context20) {
|
|
32020
32023
|
while (1) {
|
|
32021
32024
|
switch (_context20.prev = _context20.next) {
|
|
32022
32025
|
case 0:
|
|
@@ -32049,9 +32052,9 @@ function openLiveSubscribe(_x19) {
|
|
|
32049
32052
|
}
|
|
32050
32053
|
|
|
32051
32054
|
function _openLiveSubscribe() {
|
|
32052
|
-
_openLiveSubscribe = live_asyncToGenerator( /*#__PURE__*/
|
|
32055
|
+
_openLiveSubscribe = live_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee21(_ref3) {
|
|
32053
32056
|
var liveId, url, response;
|
|
32054
|
-
return
|
|
32057
|
+
return runtime_regenerator_default().wrap(function _callee21$(_context21) {
|
|
32055
32058
|
while (1) {
|
|
32056
32059
|
switch (_context21.prev = _context21.next) {
|
|
32057
32060
|
case 0:
|
|
@@ -32093,9 +32096,9 @@ function imBroadcasts_asyncToGenerator(fn) { return function () { var self = thi
|
|
|
32093
32096
|
// 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
|
|
32094
32097
|
|
|
32095
32098
|
var getIMLiveInfo = /*#__PURE__*/function () {
|
|
32096
|
-
var _ref = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
32099
|
+
var _ref = imBroadcasts_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(roomId) {
|
|
32097
32100
|
var url, response;
|
|
32098
|
-
return
|
|
32101
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
32099
32102
|
while (1) {
|
|
32100
32103
|
switch (_context.prev = _context.next) {
|
|
32101
32104
|
case 0:
|
|
@@ -32128,10 +32131,10 @@ var getIMLiveInfo = /*#__PURE__*/function () {
|
|
|
32128
32131
|
*/
|
|
32129
32132
|
|
|
32130
32133
|
var getGuestIMLiveInfoStatic = /*#__PURE__*/function () {
|
|
32131
|
-
var _ref2 = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
32134
|
+
var _ref2 = imBroadcasts_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(bId) {
|
|
32132
32135
|
var _yield$imBroadcastsSt, data;
|
|
32133
32136
|
|
|
32134
|
-
return
|
|
32137
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
32135
32138
|
while (1) {
|
|
32136
32139
|
switch (_context2.prev = _context2.next) {
|
|
32137
32140
|
case 0:
|
|
@@ -32158,10 +32161,10 @@ var getGuestIMLiveInfoStatic = /*#__PURE__*/function () {
|
|
|
32158
32161
|
// 访客获取直播接口
|
|
32159
32162
|
|
|
32160
32163
|
var getGuestIMLiveInfo = /*#__PURE__*/function () {
|
|
32161
|
-
var _ref3 = imBroadcasts_asyncToGenerator( /*#__PURE__*/
|
|
32164
|
+
var _ref3 = imBroadcasts_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(bId) {
|
|
32162
32165
|
var _yield$imBroadcastsAP, data;
|
|
32163
32166
|
|
|
32164
|
-
return
|
|
32167
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
32165
32168
|
while (1) {
|
|
32166
32169
|
switch (_context3.prev = _context3.next) {
|
|
32167
32170
|
case 0:
|
|
@@ -32229,6 +32232,162 @@ var spin_style_update = injectStylesIntoStyleTag_default()(spin_style/* default
|
|
|
32229
32232
|
;// CONCATENATED MODULE: ./node_modules/@sdp.nd/fish/es/spin/style/index.js
|
|
32230
32233
|
|
|
32231
32234
|
|
|
32235
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
32236
|
+
function esm_extends_extends() {
|
|
32237
|
+
esm_extends_extends = Object.assign || function (target) {
|
|
32238
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32239
|
+
var source = arguments[i];
|
|
32240
|
+
|
|
32241
|
+
for (var key in source) {
|
|
32242
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32243
|
+
target[key] = source[key];
|
|
32244
|
+
}
|
|
32245
|
+
}
|
|
32246
|
+
}
|
|
32247
|
+
|
|
32248
|
+
return target;
|
|
32249
|
+
};
|
|
32250
|
+
|
|
32251
|
+
return esm_extends_extends.apply(this, arguments);
|
|
32252
|
+
}
|
|
32253
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
32254
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
32255
|
+
if (key in obj) {
|
|
32256
|
+
Object.defineProperty(obj, key, {
|
|
32257
|
+
value: value,
|
|
32258
|
+
enumerable: true,
|
|
32259
|
+
configurable: true,
|
|
32260
|
+
writable: true
|
|
32261
|
+
});
|
|
32262
|
+
} else {
|
|
32263
|
+
obj[key] = value;
|
|
32264
|
+
}
|
|
32265
|
+
|
|
32266
|
+
return obj;
|
|
32267
|
+
}
|
|
32268
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
32269
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
32270
|
+
if (!(instance instanceof Constructor)) {
|
|
32271
|
+
throw new TypeError("Cannot call a class as a function");
|
|
32272
|
+
}
|
|
32273
|
+
}
|
|
32274
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
32275
|
+
function createClass_defineProperties(target, props) {
|
|
32276
|
+
for (var i = 0; i < props.length; i++) {
|
|
32277
|
+
var descriptor = props[i];
|
|
32278
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
32279
|
+
descriptor.configurable = true;
|
|
32280
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
32281
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
32282
|
+
}
|
|
32283
|
+
}
|
|
32284
|
+
|
|
32285
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
32286
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
32287
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
32288
|
+
return Constructor;
|
|
32289
|
+
}
|
|
32290
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
32291
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
32292
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
32293
|
+
o.__proto__ = p;
|
|
32294
|
+
return o;
|
|
32295
|
+
};
|
|
32296
|
+
|
|
32297
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
32298
|
+
}
|
|
32299
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
32300
|
+
|
|
32301
|
+
function inherits_inherits(subClass, superClass) {
|
|
32302
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
32303
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
32304
|
+
}
|
|
32305
|
+
|
|
32306
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
32307
|
+
constructor: {
|
|
32308
|
+
value: subClass,
|
|
32309
|
+
writable: true,
|
|
32310
|
+
configurable: true
|
|
32311
|
+
}
|
|
32312
|
+
});
|
|
32313
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
32314
|
+
}
|
|
32315
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
32316
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
32317
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
32318
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
32319
|
+
};
|
|
32320
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
32321
|
+
}
|
|
32322
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
32323
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
32324
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
32325
|
+
if (Reflect.construct.sham) return false;
|
|
32326
|
+
if (typeof Proxy === "function") return true;
|
|
32327
|
+
|
|
32328
|
+
try {
|
|
32329
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
32330
|
+
return true;
|
|
32331
|
+
} catch (e) {
|
|
32332
|
+
return false;
|
|
32333
|
+
}
|
|
32334
|
+
}
|
|
32335
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
32336
|
+
function esm_typeof_typeof(obj) {
|
|
32337
|
+
"@babel/helpers - typeof";
|
|
32338
|
+
|
|
32339
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
32340
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
32341
|
+
return typeof obj;
|
|
32342
|
+
};
|
|
32343
|
+
} else {
|
|
32344
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
32345
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
32346
|
+
};
|
|
32347
|
+
}
|
|
32348
|
+
|
|
32349
|
+
return esm_typeof_typeof(obj);
|
|
32350
|
+
}
|
|
32351
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
32352
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
32353
|
+
if (self === void 0) {
|
|
32354
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
32355
|
+
}
|
|
32356
|
+
|
|
32357
|
+
return self;
|
|
32358
|
+
}
|
|
32359
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
32360
|
+
|
|
32361
|
+
|
|
32362
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
32363
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
32364
|
+
return call;
|
|
32365
|
+
} else if (call !== void 0) {
|
|
32366
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
32367
|
+
}
|
|
32368
|
+
|
|
32369
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
32370
|
+
}
|
|
32371
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
32372
|
+
|
|
32373
|
+
|
|
32374
|
+
|
|
32375
|
+
function createSuper_createSuper(Derived) {
|
|
32376
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
32377
|
+
return function _createSuperInternal() {
|
|
32378
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
32379
|
+
result;
|
|
32380
|
+
|
|
32381
|
+
if (hasNativeReflectConstruct) {
|
|
32382
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
32383
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
32384
|
+
} else {
|
|
32385
|
+
result = Super.apply(this, arguments);
|
|
32386
|
+
}
|
|
32387
|
+
|
|
32388
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
32389
|
+
};
|
|
32390
|
+
}
|
|
32232
32391
|
// EXTERNAL MODULE: ./node_modules/lodash/debounce.js
|
|
32233
32392
|
var debounce = __webpack_require__(3279);
|
|
32234
32393
|
var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce);
|
|
@@ -32337,14 +32496,14 @@ function shouldDelay(spinning, delay) {
|
|
|
32337
32496
|
}
|
|
32338
32497
|
|
|
32339
32498
|
var Spin = /*#__PURE__*/function (_React$Component) {
|
|
32340
|
-
|
|
32499
|
+
inherits_inherits(Spin, _React$Component);
|
|
32341
32500
|
|
|
32342
|
-
var _super =
|
|
32501
|
+
var _super = createSuper_createSuper(Spin);
|
|
32343
32502
|
|
|
32344
32503
|
function Spin(props) {
|
|
32345
32504
|
var _this;
|
|
32346
32505
|
|
|
32347
|
-
|
|
32506
|
+
classCallCheck_classCallCheck(this, Spin);
|
|
32348
32507
|
|
|
32349
32508
|
_this = _super.call(this, props);
|
|
32350
32509
|
|
|
@@ -32387,10 +32546,10 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
32387
32546
|
|
|
32388
32547
|
var spinning = _this.state.spinning;
|
|
32389
32548
|
var prefixCls = getPrefixCls('spin', customizePrefixCls);
|
|
32390
|
-
var spinClassName = classnames_default()(prefixCls, (_classNames = {},
|
|
32549
|
+
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
|
|
32391
32550
|
|
|
32392
32551
|
var divProps = omit(restProps, ['spinning', 'delay', 'indicator']);
|
|
32393
|
-
var spinElement = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
32552
|
+
var spinElement = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, divProps, {
|
|
32394
32553
|
style: style,
|
|
32395
32554
|
className: spinClassName
|
|
32396
32555
|
}), renderIndicator(prefixCls, _this.props), tip ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -32398,8 +32557,8 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
32398
32557
|
}, tip) : null);
|
|
32399
32558
|
|
|
32400
32559
|
if (_this.isNestedPattern()) {
|
|
32401
|
-
var containerClassName = classnames_default()("".concat(prefixCls, "-container"),
|
|
32402
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
32560
|
+
var containerClassName = classnames_default()("".concat(prefixCls, "-container"), defineProperty_defineProperty({}, "".concat(prefixCls, "-blur"), spinning));
|
|
32561
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, divProps, {
|
|
32403
32562
|
className: classnames_default()("".concat(prefixCls, "-nested-loading"), wrapperClassName)
|
|
32404
32563
|
}), spinning && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
32405
32564
|
key: "loading"
|
|
@@ -32425,7 +32584,7 @@ var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
32425
32584
|
return _this;
|
|
32426
32585
|
}
|
|
32427
32586
|
|
|
32428
|
-
|
|
32587
|
+
createClass_createClass(Spin, [{
|
|
32429
32588
|
key: "componentDidMount",
|
|
32430
32589
|
value: function componentDidMount() {
|
|
32431
32590
|
this.updateSpinning();
|
|
@@ -32539,6 +32698,119 @@ function Loading_Loading(_ref) {
|
|
|
32539
32698
|
wrapperClassName: classnames_default()('x-edu-nested-loading', wrapperClassName)
|
|
32540
32699
|
}, children);
|
|
32541
32700
|
}
|
|
32701
|
+
// EXTERNAL MODULE: ./node_modules/@sdp.nd/fish/es/loader/style/index.js
|
|
32702
|
+
var loader_style = __webpack_require__(4646);
|
|
32703
|
+
;// CONCATENATED MODULE: ./src/util/push/index.js
|
|
32704
|
+
|
|
32705
|
+
|
|
32706
|
+
|
|
32707
|
+
|
|
32708
|
+
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); } }
|
|
32709
|
+
|
|
32710
|
+
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); }); }; }
|
|
32711
|
+
|
|
32712
|
+
function push_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
32713
|
+
|
|
32714
|
+
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); } }
|
|
32715
|
+
|
|
32716
|
+
function push_createClass(Constructor, protoProps, staticProps) { if (protoProps) push_defineProperties(Constructor.prototype, protoProps); if (staticProps) push_defineProperties(Constructor, staticProps); return Constructor; }
|
|
32717
|
+
|
|
32718
|
+
|
|
32719
|
+
var push_url = '/3rd/im-web-push/index.umd.js';
|
|
32720
|
+
var push_loadJS = loader.loadJS;
|
|
32721
|
+
var instPromise; // http://git.sdp.nd/component-h5/web-im-push/-/tree/master
|
|
32722
|
+
|
|
32723
|
+
var ImPush = /*#__PURE__*/function () {
|
|
32724
|
+
function ImPush() {
|
|
32725
|
+
push_classCallCheck(this, ImPush);
|
|
32726
|
+
|
|
32727
|
+
this.listeners = [];
|
|
32728
|
+
}
|
|
32729
|
+
|
|
32730
|
+
push_createClass(ImPush, [{
|
|
32731
|
+
key: "init",
|
|
32732
|
+
value: function () {
|
|
32733
|
+
var _init = push_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
32734
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
32735
|
+
while (1) {
|
|
32736
|
+
switch (_context.prev = _context.next) {
|
|
32737
|
+
case 0:
|
|
32738
|
+
if (!instPromise) {
|
|
32739
|
+
_context.next = 2;
|
|
32740
|
+
break;
|
|
32741
|
+
}
|
|
32742
|
+
|
|
32743
|
+
return _context.abrupt("return", instPromise);
|
|
32744
|
+
|
|
32745
|
+
case 2:
|
|
32746
|
+
instPromise = push_loadJS(push_url, 'ndiot_push').then(function () {
|
|
32747
|
+
window.ndiot_push.open({
|
|
32748
|
+
url: env["default"].push.host,
|
|
32749
|
+
appId: env["default"].app.appid,
|
|
32750
|
+
disableSharedWorker: true
|
|
32751
|
+
});
|
|
32752
|
+
return window.ndiot_push;
|
|
32753
|
+
});
|
|
32754
|
+
return _context.abrupt("return", instPromise);
|
|
32755
|
+
|
|
32756
|
+
case 4:
|
|
32757
|
+
case "end":
|
|
32758
|
+
return _context.stop();
|
|
32759
|
+
}
|
|
32760
|
+
}
|
|
32761
|
+
}, _callee);
|
|
32762
|
+
}));
|
|
32763
|
+
|
|
32764
|
+
function init() {
|
|
32765
|
+
return _init.apply(this, arguments);
|
|
32766
|
+
}
|
|
32767
|
+
|
|
32768
|
+
return init;
|
|
32769
|
+
}()
|
|
32770
|
+
}, {
|
|
32771
|
+
key: "getInstance",
|
|
32772
|
+
value: function getInstance() {
|
|
32773
|
+
return window.ndiot_push;
|
|
32774
|
+
}
|
|
32775
|
+
}, {
|
|
32776
|
+
key: "addTopicListener",
|
|
32777
|
+
value: function addTopicListener(name, listener) {
|
|
32778
|
+
var inst = this.getInstance();
|
|
32779
|
+
this.listeners.push(listener);
|
|
32780
|
+
inst.subscribe(name);
|
|
32781
|
+
this.listen();
|
|
32782
|
+
}
|
|
32783
|
+
}, {
|
|
32784
|
+
key: "removeTopicListener",
|
|
32785
|
+
value: function removeTopicListener(name, listener) {
|
|
32786
|
+
var inst = this.getInstance();
|
|
32787
|
+
this.listeners = this.listeners.filter(function (l) {
|
|
32788
|
+
return l !== listener;
|
|
32789
|
+
});
|
|
32790
|
+
inst.unsubscribe(name);
|
|
32791
|
+
this.listen();
|
|
32792
|
+
}
|
|
32793
|
+
}, {
|
|
32794
|
+
key: "listen",
|
|
32795
|
+
value: function listen() {
|
|
32796
|
+
var _this = this;
|
|
32797
|
+
|
|
32798
|
+
var inst = this.getInstance();
|
|
32799
|
+
|
|
32800
|
+
inst.onNewMessage = function (data) {
|
|
32801
|
+
console.log('im-push', data);
|
|
32802
|
+
|
|
32803
|
+
_this.listeners.forEach(function (l) {
|
|
32804
|
+
l(data);
|
|
32805
|
+
});
|
|
32806
|
+
};
|
|
32807
|
+
}
|
|
32808
|
+
}]);
|
|
32809
|
+
|
|
32810
|
+
return ImPush;
|
|
32811
|
+
}();
|
|
32812
|
+
|
|
32813
|
+
/* harmony default export */ var push = (new ImPush());
|
|
32542
32814
|
;// CONCATENATED MODULE: ./src/util/object.js
|
|
32543
32815
|
function pick(obj, keys) {
|
|
32544
32816
|
if (!Array.isArray(keys)) {
|
|
@@ -32665,14 +32937,14 @@ var videoCdnPrefix = '//gcdncs.101.com/v0.1/static/share/fish/videoplayer';
|
|
|
32665
32937
|
var defaultVideoUrl = getVideoUrl(videoCdnPrefix, video_version);
|
|
32666
32938
|
|
|
32667
32939
|
var Video = /*#__PURE__*/function (_React$Component) {
|
|
32668
|
-
|
|
32940
|
+
inherits_inherits(Video, _React$Component);
|
|
32669
32941
|
|
|
32670
|
-
var _super =
|
|
32942
|
+
var _super = createSuper_createSuper(Video);
|
|
32671
32943
|
|
|
32672
32944
|
function Video() {
|
|
32673
32945
|
var _this;
|
|
32674
32946
|
|
|
32675
|
-
|
|
32947
|
+
classCallCheck_classCallCheck(this, Video);
|
|
32676
32948
|
|
|
32677
32949
|
_this = _super.apply(this, arguments);
|
|
32678
32950
|
_this.videoUrl = {}; // eslint-disable-next-line class-methods-use-this
|
|
@@ -32685,12 +32957,12 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
32685
32957
|
csOriginUrl = getVideoUrl(cdnPrefix, video_version);
|
|
32686
32958
|
}
|
|
32687
32959
|
|
|
32688
|
-
return
|
|
32960
|
+
return esm_extends_extends(esm_extends_extends({}, csOriginUrl), Video.url);
|
|
32689
32961
|
};
|
|
32690
32962
|
|
|
32691
32963
|
_this.loadVideoPlayer = function () {
|
|
32692
|
-
return __awaiter(
|
|
32693
|
-
return
|
|
32964
|
+
return __awaiter(assertThisInitialized_assertThisInitialized(_this), void 0, void 0, /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
32965
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
32694
32966
|
while (1) {
|
|
32695
32967
|
switch (_context.prev = _context.next) {
|
|
32696
32968
|
case 0:
|
|
@@ -32740,7 +33012,7 @@ var Video = /*#__PURE__*/function (_React$Component) {
|
|
|
32740
33012
|
return _this;
|
|
32741
33013
|
}
|
|
32742
33014
|
|
|
32743
|
-
|
|
33015
|
+
createClass_createClass(Video, [{
|
|
32744
33016
|
key: "componentDidMount",
|
|
32745
33017
|
value: function componentDidMount() {
|
|
32746
33018
|
var _this2 = this;
|
|
@@ -33018,9 +33290,6 @@ var index_module_update = injectStylesIntoStyleTag_default()(index_module/* defa
|
|
|
33018
33290
|
|
|
33019
33291
|
/* harmony default export */ var LiveCountDown_index_module = (index_module/* default */.Z && index_module/* default.locals */.Z.locals ? index_module/* default.locals */.Z.locals : undefined);
|
|
33020
33292
|
|
|
33021
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
33022
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
33023
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
33024
33293
|
;// CONCATENATED MODULE: ./src/hook/useIsMounted.js
|
|
33025
33294
|
|
|
33026
33295
|
|
|
@@ -33386,8 +33655,7 @@ function LiveStatus_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
33386
33655
|
|
|
33387
33656
|
|
|
33388
33657
|
function LiveStatus(_ref) {
|
|
33389
|
-
var
|
|
33390
|
-
handleLogin = _ref.handleLogin,
|
|
33658
|
+
var handleLogin = _ref.handleLogin,
|
|
33391
33659
|
userInfo = _ref.userInfo,
|
|
33392
33660
|
liveInfo = _ref.liveInfo,
|
|
33393
33661
|
hasPlayed = _ref.hasPlayed,
|
|
@@ -33418,7 +33686,8 @@ function LiveStatus(_ref) {
|
|
|
33418
33686
|
var isCompleted = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.COMPLETEED;
|
|
33419
33687
|
var isPaused = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.PASUED;
|
|
33420
33688
|
var isOffline = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.OFFLINE;
|
|
33421
|
-
var isRecordLive = liveInfo.type === PUBLIC_LIVE_MODE.RECORDED;
|
|
33689
|
+
var isRecordLive = liveInfo.type === PUBLIC_LIVE_MODE.RECORDED;
|
|
33690
|
+
var isStreamLive = liveInfo.type === PUBLIC_LIVE_MODE.LIVING && (liveInfo.sub_type === SUB_TYPE.OUTSIDE || liveInfo.sub_type === SUB_TYPE.REBROADCAST); // 当前时间是否在回放时间开始前, 如果没有回放开始时间, 则直接判断未回放还没生成
|
|
33422
33691
|
|
|
33423
33692
|
var isBeforeRecordTime = liveInfo.replay_begin_time ? dayjs_min_default()().isBefore(dayjs_min_default()(liveInfo.replay_begin_time)) : true;
|
|
33424
33693
|
var mustLogin = !userInfo && liveInfo.login;
|
|
@@ -33597,8 +33866,7 @@ function RecordVideo_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
33597
33866
|
|
|
33598
33867
|
|
|
33599
33868
|
function RecordVideo(_ref) {
|
|
33600
|
-
var
|
|
33601
|
-
userInfo = _ref.userInfo,
|
|
33869
|
+
var userInfo = _ref.userInfo,
|
|
33602
33870
|
liveInfo = _ref.liveInfo,
|
|
33603
33871
|
visitTime = _ref.visitTime,
|
|
33604
33872
|
diffTime = _ref.diffTime,
|
|
@@ -33739,7 +34007,6 @@ function RecordVideo(_ref) {
|
|
|
33739
34007
|
options: options,
|
|
33740
34008
|
onReady: handleVideoReady
|
|
33741
34009
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(detail_LiveStatus, {
|
|
33742
|
-
isStreamLive: isStreamLive,
|
|
33743
34010
|
userInfo: userInfo,
|
|
33744
34011
|
visitTime: visitTime,
|
|
33745
34012
|
diffTime: diffTime,
|
|
@@ -33751,8 +34018,6 @@ function RecordVideo(_ref) {
|
|
|
33751
34018
|
onReloadLive: handleVideoReload
|
|
33752
34019
|
}));
|
|
33753
34020
|
}
|
|
33754
|
-
// EXTERNAL MODULE: ./node_modules/@sdp.nd/fish/es/loader/style/index.js
|
|
33755
|
-
var loader_style = __webpack_require__(4646);
|
|
33756
34021
|
;// CONCATENATED MODULE: ./src/component/AliPlayer/index.jsx
|
|
33757
34022
|
|
|
33758
34023
|
|
|
@@ -33792,8 +34057,8 @@ function AliPlayer(_ref) {
|
|
|
33792
34057
|
var aliPlayer;
|
|
33793
34058
|
|
|
33794
34059
|
var init = /*#__PURE__*/function () {
|
|
33795
|
-
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/
|
|
33796
|
-
return
|
|
34060
|
+
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
34061
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33797
34062
|
while (1) {
|
|
33798
34063
|
switch (_context.prev = _context.next) {
|
|
33799
34064
|
case 0:
|
|
@@ -33918,39 +34183,6 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
33918
34183
|
// style dependencies
|
|
33919
34184
|
|
|
33920
34185
|
|
|
33921
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
33922
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
33923
|
-
if (key in obj) {
|
|
33924
|
-
Object.defineProperty(obj, key, {
|
|
33925
|
-
value: value,
|
|
33926
|
-
enumerable: true,
|
|
33927
|
-
configurable: true,
|
|
33928
|
-
writable: true
|
|
33929
|
-
});
|
|
33930
|
-
} else {
|
|
33931
|
-
obj[key] = value;
|
|
33932
|
-
}
|
|
33933
|
-
|
|
33934
|
-
return obj;
|
|
33935
|
-
}
|
|
33936
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
33937
|
-
function esm_extends_extends() {
|
|
33938
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
33939
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
33940
|
-
var source = arguments[i];
|
|
33941
|
-
|
|
33942
|
-
for (var key in source) {
|
|
33943
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
33944
|
-
target[key] = source[key];
|
|
33945
|
-
}
|
|
33946
|
-
}
|
|
33947
|
-
}
|
|
33948
|
-
|
|
33949
|
-
return target;
|
|
33950
|
-
};
|
|
33951
|
-
|
|
33952
|
-
return esm_extends_extends.apply(this, arguments);
|
|
33953
|
-
}
|
|
33954
34186
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
33955
34187
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
33956
34188
|
if (Array.isArray(arr)) return arr;
|
|
@@ -34017,129 +34249,6 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34017
34249
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34018
34250
|
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34019
34251
|
}
|
|
34020
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34021
|
-
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
34022
|
-
if (!(instance instanceof Constructor)) {
|
|
34023
|
-
throw new TypeError("Cannot call a class as a function");
|
|
34024
|
-
}
|
|
34025
|
-
}
|
|
34026
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
34027
|
-
function createClass_defineProperties(target, props) {
|
|
34028
|
-
for (var i = 0; i < props.length; i++) {
|
|
34029
|
-
var descriptor = props[i];
|
|
34030
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
34031
|
-
descriptor.configurable = true;
|
|
34032
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34033
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34034
|
-
}
|
|
34035
|
-
}
|
|
34036
|
-
|
|
34037
|
-
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
34038
|
-
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
34039
|
-
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
34040
|
-
return Constructor;
|
|
34041
|
-
}
|
|
34042
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
34043
|
-
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
34044
|
-
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
34045
|
-
o.__proto__ = p;
|
|
34046
|
-
return o;
|
|
34047
|
-
};
|
|
34048
|
-
|
|
34049
|
-
return setPrototypeOf_setPrototypeOf(o, p);
|
|
34050
|
-
}
|
|
34051
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
34052
|
-
|
|
34053
|
-
function inherits_inherits(subClass, superClass) {
|
|
34054
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
34055
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
34056
|
-
}
|
|
34057
|
-
|
|
34058
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
34059
|
-
constructor: {
|
|
34060
|
-
value: subClass,
|
|
34061
|
-
writable: true,
|
|
34062
|
-
configurable: true
|
|
34063
|
-
}
|
|
34064
|
-
});
|
|
34065
|
-
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
34066
|
-
}
|
|
34067
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
34068
|
-
function getPrototypeOf_getPrototypeOf(o) {
|
|
34069
|
-
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
34070
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
34071
|
-
};
|
|
34072
|
-
return getPrototypeOf_getPrototypeOf(o);
|
|
34073
|
-
}
|
|
34074
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
34075
|
-
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
34076
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
34077
|
-
if (Reflect.construct.sham) return false;
|
|
34078
|
-
if (typeof Proxy === "function") return true;
|
|
34079
|
-
|
|
34080
|
-
try {
|
|
34081
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
34082
|
-
return true;
|
|
34083
|
-
} catch (e) {
|
|
34084
|
-
return false;
|
|
34085
|
-
}
|
|
34086
|
-
}
|
|
34087
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
34088
|
-
function esm_typeof_typeof(obj) {
|
|
34089
|
-
"@babel/helpers - typeof";
|
|
34090
|
-
|
|
34091
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
34092
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
34093
|
-
return typeof obj;
|
|
34094
|
-
};
|
|
34095
|
-
} else {
|
|
34096
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
34097
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
34098
|
-
};
|
|
34099
|
-
}
|
|
34100
|
-
|
|
34101
|
-
return esm_typeof_typeof(obj);
|
|
34102
|
-
}
|
|
34103
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
34104
|
-
function assertThisInitialized_assertThisInitialized(self) {
|
|
34105
|
-
if (self === void 0) {
|
|
34106
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34107
|
-
}
|
|
34108
|
-
|
|
34109
|
-
return self;
|
|
34110
|
-
}
|
|
34111
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
34112
|
-
|
|
34113
|
-
|
|
34114
|
-
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
34115
|
-
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
34116
|
-
return call;
|
|
34117
|
-
} else if (call !== void 0) {
|
|
34118
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
34119
|
-
}
|
|
34120
|
-
|
|
34121
|
-
return assertThisInitialized_assertThisInitialized(self);
|
|
34122
|
-
}
|
|
34123
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
34124
|
-
|
|
34125
|
-
|
|
34126
|
-
|
|
34127
|
-
function createSuper_createSuper(Derived) {
|
|
34128
|
-
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
34129
|
-
return function _createSuperInternal() {
|
|
34130
|
-
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
34131
|
-
result;
|
|
34132
|
-
|
|
34133
|
-
if (hasNativeReflectConstruct) {
|
|
34134
|
-
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
34135
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
34136
|
-
} else {
|
|
34137
|
-
result = Super.apply(this, arguments);
|
|
34138
|
-
}
|
|
34139
|
-
|
|
34140
|
-
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
34141
|
-
};
|
|
34142
|
-
}
|
|
34143
34252
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34144
34253
|
var raf = function raf(callback) {
|
|
34145
34254
|
return +setTimeout(callback, 16);
|
|
@@ -44372,8 +44481,7 @@ var shouldfixedLoading = window.navigator.userAgent.indexOf('iPad') > -1 || wind
|
|
|
44372
44481
|
function LiveVideo(_ref) {
|
|
44373
44482
|
var _liveInfo$imInfo9, _liveInfo$imInfo9$par;
|
|
44374
44483
|
|
|
44375
|
-
var
|
|
44376
|
-
handleLogin = _ref.handleLogin,
|
|
44484
|
+
var handleLogin = _ref.handleLogin,
|
|
44377
44485
|
userInfo = _ref.userInfo,
|
|
44378
44486
|
liveInfo = _ref.liveInfo,
|
|
44379
44487
|
visitTime = _ref.visitTime,
|
|
@@ -44471,7 +44579,7 @@ function LiveVideo(_ref) {
|
|
|
44471
44579
|
onRequestFullScreen();
|
|
44472
44580
|
});
|
|
44473
44581
|
aliPlayer.on('liveStreamStop', function (err) {
|
|
44474
|
-
|
|
44582
|
+
setIsLiveException(true);
|
|
44475
44583
|
console.warn("liveStreamStop: isOnline ".concat(window.navigator.onLine));
|
|
44476
44584
|
console.error('liveStreamStop', err);
|
|
44477
44585
|
});
|
|
@@ -44507,7 +44615,6 @@ function LiveVideo(_ref) {
|
|
|
44507
44615
|
options: options,
|
|
44508
44616
|
onReady: handleVideoReady
|
|
44509
44617
|
}), supportM3u8 && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(detail_LiveStatus, {
|
|
44510
|
-
isStreamLive: isStreamLive,
|
|
44511
44618
|
handleLogin: handleLogin,
|
|
44512
44619
|
userInfo: userInfo,
|
|
44513
44620
|
visitTime: visitTime,
|
|
@@ -53795,7 +53902,7 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
53795
53902
|
} // ===================== Icons =====================
|
|
53796
53903
|
|
|
53797
53904
|
|
|
53798
|
-
var _getIcons = getIcons(
|
|
53905
|
+
var _getIcons = getIcons(esm_extends_extends(esm_extends_extends({}, props), {
|
|
53799
53906
|
multiple: isMultiple,
|
|
53800
53907
|
prefixCls: prefixCls
|
|
53801
53908
|
})),
|
|
@@ -53805,10 +53912,10 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
53805
53912
|
clearIcon = _getIcons.clearIcon;
|
|
53806
53913
|
|
|
53807
53914
|
var selectProps = omit(props, ['suffixIcon', 'itemIcon']);
|
|
53808
|
-
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName,
|
|
53915
|
+
var rcSelectRtlDropDownClassName = classnames_default()(dropdownClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
|
|
53809
53916
|
var mergedSize = customizeSize || size;
|
|
53810
|
-
var mergedClassName = classnames_default()((_classNames2 = {},
|
|
53811
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es,
|
|
53917
|
+
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);
|
|
53918
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_select_es, esm_extends_extends({
|
|
53812
53919
|
ref: ref,
|
|
53813
53920
|
virtual: virtual,
|
|
53814
53921
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth
|
|
@@ -55100,9 +55207,9 @@ function LiveOnlineCount(_ref) {
|
|
|
55100
55207
|
};
|
|
55101
55208
|
|
|
55102
55209
|
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
55103
|
-
LiveOnlineCount_asyncToGenerator( /*#__PURE__*/
|
|
55210
|
+
LiveOnlineCount_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
55104
55211
|
var count, likesData, currentCount;
|
|
55105
|
-
return
|
|
55212
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
55106
55213
|
while (1) {
|
|
55107
55214
|
switch (_context.prev = _context.next) {
|
|
55108
55215
|
case 0:
|
|
@@ -55278,6 +55385,7 @@ function detail_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
55278
55385
|
|
|
55279
55386
|
|
|
55280
55387
|
|
|
55388
|
+
|
|
55281
55389
|
// import IMChatroom from '@/component/IMChatroom'
|
|
55282
55390
|
|
|
55283
55391
|
|
|
@@ -55368,7 +55476,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55368
55476
|
userRole = loginInfo.userRole,
|
|
55369
55477
|
loginStatus = loginInfo.loginStatus;
|
|
55370
55478
|
var isLiveToReplay = !replay;
|
|
55371
|
-
var isStreamLive = liveInfo && liveInfo.type === PUBLIC_LIVE_MODE.LIVING;
|
|
55479
|
+
var isStreamLive = liveInfo && liveInfo.type === PUBLIC_LIVE_MODE.LIVING && (liveInfo.sub_type === publicLive_SUB_TYPE.OUTSIDE || liveInfo.sub_type === publicLive_SUB_TYPE.REBROADCAST);
|
|
55372
55480
|
|
|
55373
55481
|
var handleStatusChange = /*#__PURE__*/function () {
|
|
55374
55482
|
var _ref2 = detail_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(status) {
|
|
@@ -55393,7 +55501,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55393
55501
|
subType = liveInfo.sub_type, bid = liveInfo.bid, roomId = liveInfo.room_id;
|
|
55394
55502
|
imLiveInfoResp = {}; // 如果类型为外部推流, 则去请求新的直播详情接口
|
|
55395
55503
|
|
|
55396
|
-
if (!(subType ===
|
|
55504
|
+
if (!(subType === publicLive_SUB_TYPE.OUTSIDE || subType === publicLive_SUB_TYPE.REBROADCAST)) {
|
|
55397
55505
|
_context.next = 14;
|
|
55398
55506
|
break;
|
|
55399
55507
|
}
|
|
@@ -55514,7 +55622,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55514
55622
|
subType = data.sub_type, bid = data.bid, roomId = data.room_id;
|
|
55515
55623
|
imLiveInfoResp = {}; // 如果类型为外部推流, 则去请求新的直播详情接口
|
|
55516
55624
|
|
|
55517
|
-
if (!(subType ===
|
|
55625
|
+
if (!(subType === publicLive_SUB_TYPE.OUTSIDE || subType === publicLive_SUB_TYPE.REBROADCAST)) {
|
|
55518
55626
|
_context2.next = 26;
|
|
55519
55627
|
break;
|
|
55520
55628
|
}
|
|
@@ -55551,6 +55659,19 @@ function PublicLiveDetail(_ref) {
|
|
|
55551
55659
|
data.imInfo = imLiveInfoResp;
|
|
55552
55660
|
|
|
55553
55661
|
case 31:
|
|
55662
|
+
if (!(data.type === PUBLIC_LIVE_MODE.LIVING && data.sub_type === publicLive_SUB_TYPE.OUTSIDE)) {
|
|
55663
|
+
_context2.next = 34;
|
|
55664
|
+
break;
|
|
55665
|
+
}
|
|
55666
|
+
|
|
55667
|
+
_context2.next = 36;
|
|
55668
|
+
break;
|
|
55669
|
+
|
|
55670
|
+
case 34:
|
|
55671
|
+
_context2.next = 36;
|
|
55672
|
+
return push.init();
|
|
55673
|
+
|
|
55674
|
+
case 36:
|
|
55554
55675
|
// 如果是转播或者是推流 直接播放(用于调试模式)
|
|
55555
55676
|
_getUrlQuery2 = (0,url/* getUrlQuery */.pf)(), preview = _getUrlQuery2.preview; // 后台点预览会加这个参数
|
|
55556
55677
|
|
|
@@ -55559,7 +55680,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55559
55680
|
}) : data;
|
|
55560
55681
|
setLiveInfo(generateInfo);
|
|
55561
55682
|
|
|
55562
|
-
case
|
|
55683
|
+
case 39:
|
|
55563
55684
|
case "end":
|
|
55564
55685
|
return _context2.stop();
|
|
55565
55686
|
}
|
|
@@ -55574,6 +55695,31 @@ function PublicLiveDetail(_ref) {
|
|
|
55574
55695
|
|
|
55575
55696
|
init();
|
|
55576
55697
|
}, []);
|
|
55698
|
+
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
55699
|
+
if (!liveInfo || liveInfo.sub_type === publicLive_SUB_TYPE.OUTSIDE) {
|
|
55700
|
+
return;
|
|
55701
|
+
}
|
|
55702
|
+
|
|
55703
|
+
var handler = function handler(data) {
|
|
55704
|
+
var _data$extraFields = data.extraFields,
|
|
55705
|
+
extraFields = _data$extraFields === void 0 ? {} : _data$extraFields;
|
|
55706
|
+
console.log('public Live:', data);
|
|
55707
|
+
|
|
55708
|
+
if (extraFields.event === PUBLIC_LIVE_PUSH_EVENT.STATUS_CHANGE && extraFields.liveId === liveId) {
|
|
55709
|
+
console.log("public Live: receive push status ".concat(parseInt(extraFields.status, 10)));
|
|
55710
|
+
handleStatusChange(parseInt(extraFields.status, 10));
|
|
55711
|
+
}
|
|
55712
|
+
};
|
|
55713
|
+
|
|
55714
|
+
push.addTopicListener("".concat(PUBLIC_LIVE_PUSH_TOPIC, "_").concat(liveId), handler);
|
|
55715
|
+
return function () {
|
|
55716
|
+
if (!liveInfo || liveInfo.sub_type === publicLive_SUB_TYPE.OUTSIDE) {
|
|
55717
|
+
return;
|
|
55718
|
+
}
|
|
55719
|
+
|
|
55720
|
+
push.removeTopicListener("".concat(PUBLIC_LIVE_PUSH_TOPIC, "_").concat(liveId), handler);
|
|
55721
|
+
};
|
|
55722
|
+
}, [!!liveInfo]);
|
|
55577
55723
|
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
55578
55724
|
if (userInfo) {
|
|
55579
55725
|
onReportProgress();
|
|
@@ -55700,7 +55846,6 @@ function PublicLiveDetail(_ref) {
|
|
|
55700
55846
|
},
|
|
55701
55847
|
onRequestFullScreen: handleRequestFullScreen
|
|
55702
55848
|
}) : isRecordLive ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(RecordVideo, {
|
|
55703
|
-
isStreamLive: isStreamLive,
|
|
55704
55849
|
userInfo: userInfo,
|
|
55705
55850
|
liveInfo: liveInfo,
|
|
55706
55851
|
visitTime: visitTime,
|
|
@@ -55714,7 +55859,6 @@ function PublicLiveDetail(_ref) {
|
|
|
55714
55859
|
},
|
|
55715
55860
|
onRequestFullScreen: handleRequestFullScreen
|
|
55716
55861
|
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(LiveVideo, {
|
|
55717
|
-
isStreamLive: isStreamLive,
|
|
55718
55862
|
handleLogin: handleLogin,
|
|
55719
55863
|
userInfo: userInfo,
|
|
55720
55864
|
liveInfo: liveInfo,
|
|
@@ -55728,7 +55872,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55728
55872
|
handleVideoPlay(true);
|
|
55729
55873
|
},
|
|
55730
55874
|
onRequestFullScreen: handleRequestFullScreen
|
|
55731
|
-
})), !isReplayMode && !isRecordLive &&
|
|
55875
|
+
})), !isReplayMode && !isRecordLive && isStreamLive && liveInfo.status !== publicLive_PUBLIC_LIVE_STATUS.COMPLETEED && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(LineSwitch, {
|
|
55732
55876
|
className: src_detail_index_module["live-line-switch"],
|
|
55733
55877
|
liveInfo: liveInfo,
|
|
55734
55878
|
onChange: handleSelectChange
|
|
@@ -59637,11 +59781,11 @@ function tabs_Tabs(_a) {
|
|
|
59637
59781
|
var _classNames;
|
|
59638
59782
|
|
|
59639
59783
|
var size = propSize !== undefined ? propSize : contextSize;
|
|
59640
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es,
|
|
59784
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_tabs_es, esm_extends_extends({
|
|
59641
59785
|
direction: direction,
|
|
59642
59786
|
moreTransitionName: "".concat(rootPrefixCls, "-slide-up")
|
|
59643
59787
|
}, props, {
|
|
59644
|
-
className: classnames_default()((_classNames = {},
|
|
59788
|
+
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),
|
|
59645
59789
|
editable: editable,
|
|
59646
59790
|
moreIcon: moreIcon,
|
|
59647
59791
|
prefixCls: prefixCls
|
|
@@ -61501,8 +61645,8 @@ function ListItem(_ref) {
|
|
|
61501
61645
|
status = data.status;
|
|
61502
61646
|
|
|
61503
61647
|
var handleDetailClick = /*#__PURE__*/function () {
|
|
61504
|
-
var _ref2 = ListItem_asyncToGenerator( /*#__PURE__*/
|
|
61505
|
-
return
|
|
61648
|
+
var _ref2 = ListItem_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
61649
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
61506
61650
|
while (1) {
|
|
61507
61651
|
switch (_context.prev = _context.next) {
|
|
61508
61652
|
case 0:
|