@ezuikit/player-theme 3.0.0-beta.5 → 3.0.1-beta.3
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/constant.js +11 -2
- package/dist/index.cjs +688 -225
- package/dist/index.esm.js +688 -225
- package/dist/index.umd.js +689 -226
- package/dist/style.css +3 -0
- package/dist/style.js +2 -2
- package/dist/types/index.d.ts +72 -30
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v3.0.
|
|
3
|
-
* Copyright (c) 2026-05-
|
|
2
|
+
* @ezuikit/player-theme v3.0.1-beta.3
|
|
3
|
+
* Copyright (c) 2026-05-13 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -145,6 +145,9 @@ var EVENTS = {
|
|
|
145
145
|
/** 麦克风音量变化 */ talkVolumeChange: 'talkVolumeChange',
|
|
146
146
|
/** 语音广播状态变化 */ broadcastChange: 'broadcastChange',
|
|
147
147
|
/** AI对话框状态变化 */ aichatChange: 'aichatChange',
|
|
148
|
+
/** 直播模式切换 */ liveChange: 'liveChange',
|
|
149
|
+
/** 回放下拉选择变化 */ recDropdownChange: 'recDropdownChange',
|
|
150
|
+
/** 告警消息面板状态变化 */ alarmMessageChange: 'alarmMessageChange',
|
|
148
151
|
/** 动态切换日志配置 */ setLoggerOptions: 'setLoggerOptions',
|
|
149
152
|
records: 'records',
|
|
150
153
|
ptzSpeedChange: 'ptzSpeedChange',
|
|
@@ -192,6 +195,12 @@ var EVENTS = {
|
|
|
192
195
|
/** 语音广播控件销毁 */ broadcastDestroy: 'Control.broadcastDestroy',
|
|
193
196
|
/** AI对话框状态变化 */ aichatChange: 'Control.aichatChange',
|
|
194
197
|
/** AI对话框控件销毁 */ aichatDestroy: 'Control.aichatDestroy',
|
|
198
|
+
/** 直播按钮点击 */ liveChange: 'Control.liveChange',
|
|
199
|
+
/** 直播控件销毁 */ liveDestroy: 'Control.liveDestroy',
|
|
200
|
+
/** 回放下拉选择变化 */ recDropdownChange: 'Control.recDropdownChange',
|
|
201
|
+
/** 回放下拉控件销毁 */ recDropdownDestroy: 'Control.recDropdownDestroy',
|
|
202
|
+
/** 告警消息面板开关 */ alarmMessageChange: 'Control.alarmMessageChange',
|
|
203
|
+
/** 告警消息面板销毁 */ alarmMessageDestroy: 'Control.alarmMessageDestroy',
|
|
195
204
|
/** 缩放比例改变 */ zoomChange: 'Control.zoomChange',
|
|
196
205
|
/** 音量调节面板 展示隐藏变换 */ zoomPanelOpenChange: 'Control.zoomPanelOpenChange',
|
|
197
206
|
/** 缩放控件销毁 */ zoomDestroy: 'Control.zoomDestroy',
|
|
@@ -243,7 +252,7 @@ function _create_class$9(Constructor, protoProps, staticProps) {
|
|
|
243
252
|
if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
|
|
244
253
|
return Constructor;
|
|
245
254
|
}
|
|
246
|
-
function _inherits$
|
|
255
|
+
function _inherits$w(subClass, superClass) {
|
|
247
256
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
248
257
|
throw new TypeError("Super expression must either be null or a function");
|
|
249
258
|
}
|
|
@@ -254,14 +263,14 @@ function _inherits$t(subClass, superClass) {
|
|
|
254
263
|
configurable: true
|
|
255
264
|
}
|
|
256
265
|
});
|
|
257
|
-
if (superClass) _set_prototype_of$
|
|
266
|
+
if (superClass) _set_prototype_of$w(subClass, superClass);
|
|
258
267
|
}
|
|
259
|
-
function _set_prototype_of$
|
|
260
|
-
_set_prototype_of$
|
|
268
|
+
function _set_prototype_of$w(o, p) {
|
|
269
|
+
_set_prototype_of$w = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
261
270
|
o.__proto__ = p;
|
|
262
271
|
return o;
|
|
263
272
|
};
|
|
264
|
-
return _set_prototype_of$
|
|
273
|
+
return _set_prototype_of$w(o, p);
|
|
265
274
|
}
|
|
266
275
|
/**
|
|
267
276
|
* 控件基类
|
|
@@ -275,7 +284,7 @@ function _set_prototype_of$t(o, p) {
|
|
|
275
284
|
* const myControl = new MyControl({})
|
|
276
285
|
* ```
|
|
277
286
|
*/ var Control = /*#__PURE__*/ function(EventEmitter) {
|
|
278
|
-
_inherits$
|
|
287
|
+
_inherits$w(Control, EventEmitter);
|
|
279
288
|
function Control(options) {
|
|
280
289
|
var _this;
|
|
281
290
|
var _this___options;
|
|
@@ -450,8 +459,8 @@ function _set_prototype_of$t(o, p) {
|
|
|
450
459
|
return Control;
|
|
451
460
|
}(EventEmitter);
|
|
452
461
|
|
|
453
|
-
function _extends$
|
|
454
|
-
_extends$
|
|
462
|
+
function _extends$v() {
|
|
463
|
+
_extends$v = Object.assign || function(target) {
|
|
455
464
|
for(var i = 1; i < arguments.length; i++){
|
|
456
465
|
var source = arguments[i];
|
|
457
466
|
for(var key in source){
|
|
@@ -462,9 +471,9 @@ function _extends$s() {
|
|
|
462
471
|
}
|
|
463
472
|
return target;
|
|
464
473
|
};
|
|
465
|
-
return _extends$
|
|
474
|
+
return _extends$v.apply(this, arguments);
|
|
466
475
|
}
|
|
467
|
-
function _inherits$
|
|
476
|
+
function _inherits$v(subClass, superClass) {
|
|
468
477
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
469
478
|
throw new TypeError("Super expression must either be null or a function");
|
|
470
479
|
}
|
|
@@ -475,25 +484,25 @@ function _inherits$s(subClass, superClass) {
|
|
|
475
484
|
configurable: true
|
|
476
485
|
}
|
|
477
486
|
});
|
|
478
|
-
if (superClass) _set_prototype_of$
|
|
487
|
+
if (superClass) _set_prototype_of$v(subClass, superClass);
|
|
479
488
|
}
|
|
480
|
-
function _set_prototype_of$
|
|
481
|
-
_set_prototype_of$
|
|
489
|
+
function _set_prototype_of$v(o, p) {
|
|
490
|
+
_set_prototype_of$v = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
482
491
|
o.__proto__ = p;
|
|
483
492
|
return o;
|
|
484
493
|
};
|
|
485
|
-
return _set_prototype_of$
|
|
494
|
+
return _set_prototype_of$v(o, p);
|
|
486
495
|
}
|
|
487
496
|
var LOADING_DEFAULT_OPTIONS = {};
|
|
488
497
|
/**
|
|
489
498
|
* 加载动画控件
|
|
490
499
|
* @category Control
|
|
491
500
|
*/ var Loading = /*#__PURE__*/ function(Control) {
|
|
492
|
-
_inherits$
|
|
501
|
+
_inherits$v(Loading, Control);
|
|
493
502
|
function Loading(options) {
|
|
494
503
|
if (options === void 0) options = {};
|
|
495
504
|
var _this;
|
|
496
|
-
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$
|
|
505
|
+
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$v({}, options, {
|
|
497
506
|
tagName: 'div',
|
|
498
507
|
controlType: 'block',
|
|
499
508
|
classNameSuffix: 'loading'
|
|
@@ -531,8 +540,8 @@ var LOADING_DEFAULT_OPTIONS = {};
|
|
|
531
540
|
return Loading;
|
|
532
541
|
}(Control);
|
|
533
542
|
|
|
534
|
-
function _extends$
|
|
535
|
-
_extends$
|
|
543
|
+
function _extends$u() {
|
|
544
|
+
_extends$u = Object.assign || function(target) {
|
|
536
545
|
for(var i = 1; i < arguments.length; i++){
|
|
537
546
|
var source = arguments[i];
|
|
538
547
|
for(var key in source){
|
|
@@ -543,9 +552,9 @@ function _extends$r() {
|
|
|
543
552
|
}
|
|
544
553
|
return target;
|
|
545
554
|
};
|
|
546
|
-
return _extends$
|
|
555
|
+
return _extends$u.apply(this, arguments);
|
|
547
556
|
}
|
|
548
|
-
function _inherits$
|
|
557
|
+
function _inherits$u(subClass, superClass) {
|
|
549
558
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
550
559
|
throw new TypeError("Super expression must either be null or a function");
|
|
551
560
|
}
|
|
@@ -556,14 +565,14 @@ function _inherits$r(subClass, superClass) {
|
|
|
556
565
|
configurable: true
|
|
557
566
|
}
|
|
558
567
|
});
|
|
559
|
-
if (superClass) _set_prototype_of$
|
|
568
|
+
if (superClass) _set_prototype_of$u(subClass, superClass);
|
|
560
569
|
}
|
|
561
|
-
function _set_prototype_of$
|
|
562
|
-
_set_prototype_of$
|
|
570
|
+
function _set_prototype_of$u(o, p) {
|
|
571
|
+
_set_prototype_of$u = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
563
572
|
o.__proto__ = p;
|
|
564
573
|
return o;
|
|
565
574
|
};
|
|
566
|
-
return _set_prototype_of$
|
|
575
|
+
return _set_prototype_of$u(o, p);
|
|
567
576
|
}
|
|
568
577
|
// 不放在服务器上 是因为有可能http加载失败
|
|
569
578
|
// prettier-ignore
|
|
@@ -575,11 +584,11 @@ var POSTER_OPTIONS = {
|
|
|
575
584
|
* 封面控件
|
|
576
585
|
* @category Control
|
|
577
586
|
*/ var Poster = /*#__PURE__*/ function(Control) {
|
|
578
|
-
_inherits$
|
|
587
|
+
_inherits$u(Poster, Control);
|
|
579
588
|
function Poster(options) {
|
|
580
589
|
if (options === void 0) options = {};
|
|
581
590
|
var _this;
|
|
582
|
-
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$
|
|
591
|
+
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$u({}, options, {
|
|
583
592
|
tagName: 'div',
|
|
584
593
|
controlType: 'block',
|
|
585
594
|
classNameSuffix: 'poster'
|
|
@@ -685,7 +694,10 @@ var Icons = {
|
|
|
685
694
|
warnCircleOutLined: '<svg width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" focusable="false" aria-hidden="true" data-icon="info-circle">\n <path d="M8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM7.5 8.875C7.5 8.94375 7.55625 9 7.625 9L8.375 9C8.44375 9 8.5 8.94375 8.5 8.875L8.5 4.625C8.5 4.55625 8.44375 4.5 8.375 4.5L7.625 4.5C7.55625 4.5 7.5 4.55625 7.5 4.625L7.5 8.875ZM7.25 10.75C7.25 11.1642 7.58579 11.5 8 11.5C8.41421 11.5 8.75 11.1642 8.75 10.75C8.75 10.3358 8.41421 10 8 10C7.58579 10 7.25 10.3358 7.25 10.75Z" fill-rule="evenodd" />\n </svg>',
|
|
686
695
|
date: '<svg width="1em" height="1em" viewBox="0 0 20 20" fill="currentColor" focusable="false" aria-hidden="true" data-icon="date">\n <g>\n <path d="m13.35,5.9c-0.3,0 -0.5,-0.2 -0.5,-0.5l0,-3.3c0,-0.3 0.2,-0.5 0.5,-0.5s0.5,0.2 0.5,0.5l0,3.3c0,0.3 -0.3,0.5 -0.5,0.5z" />\n <path d="m6.65,5.9c-0.3,0 -0.5,-0.2 -0.5,-0.5l0,-3.3c0,-0.3 0.2,-0.5 0.5,-0.5s0.5,0.2 0.5,0.5l0,3.3c0,0.3 -0.2,0.5 -0.5,0.5z" />\n <path d="m17.45,8.4l-15,0c-0.3,0 -0.5,-0.2 -0.5,-0.5s0.2,-0.5 0.5,-0.5l15,0c0.3,0 0.5,0.2 0.5,0.5s-0.2,0.5 -0.5,0.5z" />\n <path d="m15.85,18.4l-11.7,0c-1.2,0 -2.2,-1 -2.2,-2.2l0,-10.8c0,-1.2 1,-2.2 2.2,-2.2l11.7,0c1.2,0 2.2,1 2.2,2.2l0,10.8c-0.1,1.3 -1,2.2 -2.2,2.2zm-11.7,-14.1c-0.6,0 -1.2,0.5 -1.2,1.2l0,10.8c0,0.6 0.5,1.2 1.2,1.2l11.7,0c0.6,0 1.2,-0.5 1.2,-1.2l0,-10.9c0,-0.6 -0.5,-1.2 -1.2,-1.2l-11.7,0l0,0.1z" />\n <path d="m9.95,12c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5s0.3,-0.2 0.5,-0.2l0,0l0,0c0.4,0 0.7,0.3 0.7,0.7s-0.3,0.7 -0.7,0.7z" />\n <path d="m14.15,12c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5c0.1,-0.1 0.3,-0.2 0.5,-0.2c0.4,0 0.7,0.3 0.7,0.7s-0.3,0.7 -0.7,0.7zm0,-1c-0.2,0 -0.3,0.1 -0.3,0.3c0,0.2 0.3,0.4 0.5,0.2c0.1,-0.1 0.1,-0.1 0.1,-0.2c0,-0.2 -0.1,-0.3 -0.3,-0.3z" />\n <path d="m5.85,15.3c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5c0.1,-0.1 0.3,-0.2 0.5,-0.2l0,0l0,0c0.4,0 0.7,0.3 0.7,0.7c0,0.4 -0.3,0.7 -0.7,0.7z" />\n <path d="m9.95,15.3c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5c0.1,-0.1 0.3,-0.2 0.5,-0.2l0,0l0,0c0.4,0 0.7,0.3 0.7,0.7c0.1,0.4 -0.3,0.7 -0.7,0.7z" />\n </g>\n </svg>',
|
|
687
696
|
add: '<svg fill="currentColor" width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="add">\n <path d="M10.5859 2.96875L9.41406 2.96875C9.3099 2.96875 9.25781 3.02083 9.25781 3.125L9.25781 9.25781L3.4375 9.25781C3.38542 9.25781 3.34635 9.27083 3.32031 9.29688C3.29427 9.32292 3.28125 9.36198 3.28125 9.41406L3.28125 10.5859C3.28125 10.6901 3.33333 10.7422 3.4375 10.7422L9.25781 10.7422L9.25781 16.875C9.25781 16.9792 9.3099 17.0312 9.41406 17.0312L10.5859 17.0312C10.6901 17.0312 10.7422 16.9792 10.7422 16.875L10.7422 10.7422L16.5625 10.7422C16.6667 10.7422 16.7188 10.6901 16.7188 10.5859L16.7188 9.41406C16.7188 9.3099 16.6667 9.25781 16.5625 9.25781L10.7422 9.25781L10.7422 3.125C10.7422 3.07292 10.7292 3.03385 10.7031 3.00781C10.6771 2.98177 10.638 2.96875 10.5859 2.96875Z" fill-rule="evenodd" /></svg>',
|
|
688
|
-
reduce: '<svg fill="currentColor" width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="reduce">\n <path d="M3.4375 9.25781L16.5625 9.25781C16.6667 9.25781 16.7188 9.3099 16.7188 9.41406L16.7188 10.5859C16.7188 10.6901 16.6667 10.7422 16.5625 10.7422L3.4375 10.7422C3.33333 10.7422 3.28125 10.6901 3.28125 10.5859L3.28125 9.41406C3.28125 9.3099 3.33333 9.25781 3.4375 9.25781Z" fill-rule="evenodd" />\n </svg>'
|
|
697
|
+
reduce: '<svg fill="currentColor" width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="reduce">\n <path d="M3.4375 9.25781L16.5625 9.25781C16.6667 9.25781 16.7188 9.3099 16.7188 9.41406L16.7188 10.5859C16.7188 10.6901 16.6667 10.7422 16.5625 10.7422L3.4375 10.7422C3.33333 10.7422 3.28125 10.6901 3.28125 10.5859L3.28125 9.41406C3.28125 9.3099 3.33333 9.25781 3.4375 9.25781Z" fill-rule="evenodd" />\n </svg>',
|
|
698
|
+
/** 直播 */ live: '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="live">\n <rect width="18" height="13" x="3" y="7" rx="1.6" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M8.26636 4.8L10.466 7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M15.996 4.8L13.796 7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M9.8 17L15.4 13.354L9.8 10L9.8 17Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n </svg>',
|
|
699
|
+
/** 回放 */ recDropdown: '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="rec-dropdown">\n <path d="M9.168 2.556C9.168 2.556 12.51 4.445 12 4.445C7.306 4.445 3.5 8.251 3.5 12.945C3.5 17.64 7.306 21.445 12 21.445C16.695 21.445 20.5 17.64 20.5 12.945C20.5 10.622 19.568 8.517 18.058 6.982" stroke-linecap="round" stroke-width="1.5"/>\n <path d="M11.61 9.829L11.61 13.731L16.064 13.731" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n </svg>',
|
|
700
|
+
/** 消息/告警 */ alarmMessage: '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="alarm-message">\n <path d="M9.708 18.344L9.708 18.709C9.708 19.974 10.734 21 12 21C13.266 21 14.292 19.974 14.292 18.709L14.292 18.343" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M13.833 5.751L13.833 4.833C13.833 3.821 13.013 3 12 3C10.987 3 10.167 3.821 10.167 4.833L10.167 5.751" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M6.563 10.189C6.563 7.686 8.592 5.657 11.094 5.657L12.907 5.657C15.41 5.657 17.438 7.686 17.438 10.189L17.438 12.986C17.438 13.516 17.649 14.025 18.024 14.4L18.665 15.04C19.04 15.416 19.251 15.925 19.251 16.455C19.251 17.499 18.405 18.345 17.361 18.345L6.64 18.345C5.596 18.345 4.75 17.499 4.75 16.455C4.75 15.925 4.961 15.416 5.336 15.04L5.977 14.4C6.352 14.025 6.563 13.516 6.563 12.986L6.563 10.189Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n </svg>'
|
|
689
701
|
};
|
|
690
702
|
|
|
691
703
|
/**
|
|
@@ -843,11 +855,23 @@ var IconComponents = {
|
|
|
843
855
|
reduce: function(attr) {
|
|
844
856
|
if (attr === void 0) attr = {};
|
|
845
857
|
return createIcon(Icons.reduce, 'reduce', attr);
|
|
858
|
+
},
|
|
859
|
+
/** 直播 */ live: function(attr) {
|
|
860
|
+
if (attr === void 0) attr = {};
|
|
861
|
+
return createIcon(Icons.live, 'live', attr);
|
|
862
|
+
},
|
|
863
|
+
/** 回放 */ recDropdown: function(attr) {
|
|
864
|
+
if (attr === void 0) attr = {};
|
|
865
|
+
return createIcon(Icons.recDropdown, 'rec-dropdown', attr);
|
|
866
|
+
},
|
|
867
|
+
/** 消息 */ alarmMessage: function(attr) {
|
|
868
|
+
if (attr === void 0) attr = {};
|
|
869
|
+
return createIcon(Icons.alarmMessage, 'alarm-message', attr);
|
|
846
870
|
}
|
|
847
871
|
};
|
|
848
872
|
|
|
849
|
-
function _extends$
|
|
850
|
-
_extends$
|
|
873
|
+
function _extends$t() {
|
|
874
|
+
_extends$t = Object.assign || function(target) {
|
|
851
875
|
for(var i = 1; i < arguments.length; i++){
|
|
852
876
|
var source = arguments[i];
|
|
853
877
|
for(var key in source){
|
|
@@ -858,9 +882,9 @@ function _extends$q() {
|
|
|
858
882
|
}
|
|
859
883
|
return target;
|
|
860
884
|
};
|
|
861
|
-
return _extends$
|
|
885
|
+
return _extends$t.apply(this, arguments);
|
|
862
886
|
}
|
|
863
|
-
function _inherits$
|
|
887
|
+
function _inherits$t(subClass, superClass) {
|
|
864
888
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
865
889
|
throw new TypeError("Super expression must either be null or a function");
|
|
866
890
|
}
|
|
@@ -871,25 +895,25 @@ function _inherits$q(subClass, superClass) {
|
|
|
871
895
|
configurable: true
|
|
872
896
|
}
|
|
873
897
|
});
|
|
874
|
-
if (superClass) _set_prototype_of$
|
|
898
|
+
if (superClass) _set_prototype_of$t(subClass, superClass);
|
|
875
899
|
}
|
|
876
|
-
function _set_prototype_of$
|
|
877
|
-
_set_prototype_of$
|
|
900
|
+
function _set_prototype_of$t(o, p) {
|
|
901
|
+
_set_prototype_of$t = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
878
902
|
o.__proto__ = p;
|
|
879
903
|
return o;
|
|
880
904
|
};
|
|
881
|
-
return _set_prototype_of$
|
|
905
|
+
return _set_prototype_of$t(o, p);
|
|
882
906
|
}
|
|
883
907
|
var MESSAGE_DEFAULT_OPTIONS = {};
|
|
884
908
|
/**
|
|
885
909
|
* 消息控件
|
|
886
910
|
* @category Control
|
|
887
911
|
*/ var Message = /*#__PURE__*/ function(Control) {
|
|
888
|
-
_inherits$
|
|
912
|
+
_inherits$t(Message, Control);
|
|
889
913
|
function Message(options) {
|
|
890
914
|
if (options === void 0) options = {};
|
|
891
915
|
var _this;
|
|
892
|
-
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$
|
|
916
|
+
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$t({}, options, {
|
|
893
917
|
tagName: 'div',
|
|
894
918
|
controlType: 'block'
|
|
895
919
|
}))) || this, _this._$toast = null;
|
|
@@ -1042,8 +1066,8 @@ function _create_class$8(Constructor, protoProps, staticProps) {
|
|
|
1042
1066
|
if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
|
|
1043
1067
|
return Constructor;
|
|
1044
1068
|
}
|
|
1045
|
-
function _extends$
|
|
1046
|
-
_extends$
|
|
1069
|
+
function _extends$s() {
|
|
1070
|
+
_extends$s = Object.assign || function(target) {
|
|
1047
1071
|
for(var i = 1; i < arguments.length; i++){
|
|
1048
1072
|
var source = arguments[i];
|
|
1049
1073
|
for(var key in source){
|
|
@@ -1054,9 +1078,9 @@ function _extends$p() {
|
|
|
1054
1078
|
}
|
|
1055
1079
|
return target;
|
|
1056
1080
|
};
|
|
1057
|
-
return _extends$
|
|
1081
|
+
return _extends$s.apply(this, arguments);
|
|
1058
1082
|
}
|
|
1059
|
-
function _inherits$
|
|
1083
|
+
function _inherits$s(subClass, superClass) {
|
|
1060
1084
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1061
1085
|
throw new TypeError("Super expression must either be null or a function");
|
|
1062
1086
|
}
|
|
@@ -1067,23 +1091,23 @@ function _inherits$p(subClass, superClass) {
|
|
|
1067
1091
|
configurable: true
|
|
1068
1092
|
}
|
|
1069
1093
|
});
|
|
1070
|
-
if (superClass) _set_prototype_of$
|
|
1094
|
+
if (superClass) _set_prototype_of$s(subClass, superClass);
|
|
1071
1095
|
}
|
|
1072
|
-
function _set_prototype_of$
|
|
1073
|
-
_set_prototype_of$
|
|
1096
|
+
function _set_prototype_of$s(o, p) {
|
|
1097
|
+
_set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1074
1098
|
o.__proto__ = p;
|
|
1075
1099
|
return o;
|
|
1076
1100
|
};
|
|
1077
|
-
return _set_prototype_of$
|
|
1101
|
+
return _set_prototype_of$s(o, p);
|
|
1078
1102
|
}
|
|
1079
1103
|
/**
|
|
1080
1104
|
* 播放/暂停控件
|
|
1081
1105
|
* @category Control
|
|
1082
1106
|
*/ var Play = /*#__PURE__*/ function(Control) {
|
|
1083
|
-
_inherits$
|
|
1107
|
+
_inherits$s(Play, Control);
|
|
1084
1108
|
function Play(options) {
|
|
1085
1109
|
var _this;
|
|
1086
|
-
_this = Control.call(this, _extends$
|
|
1110
|
+
_this = Control.call(this, _extends$s({}, options, {
|
|
1087
1111
|
tagName: 'span',
|
|
1088
1112
|
controlType: 'button',
|
|
1089
1113
|
classNameSuffix: 'play'
|
|
@@ -1699,8 +1723,8 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
1699
1723
|
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
1700
1724
|
return Constructor;
|
|
1701
1725
|
}
|
|
1702
|
-
function _extends$
|
|
1703
|
-
_extends$
|
|
1726
|
+
function _extends$r() {
|
|
1727
|
+
_extends$r = Object.assign || function(target) {
|
|
1704
1728
|
for(var i = 1; i < arguments.length; i++){
|
|
1705
1729
|
var source = arguments[i];
|
|
1706
1730
|
for(var key in source){
|
|
@@ -1711,9 +1735,9 @@ function _extends$o() {
|
|
|
1711
1735
|
}
|
|
1712
1736
|
return target;
|
|
1713
1737
|
};
|
|
1714
|
-
return _extends$
|
|
1738
|
+
return _extends$r.apply(this, arguments);
|
|
1715
1739
|
}
|
|
1716
|
-
function _inherits$
|
|
1740
|
+
function _inherits$r(subClass, superClass) {
|
|
1717
1741
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1718
1742
|
throw new TypeError("Super expression must either be null or a function");
|
|
1719
1743
|
}
|
|
@@ -1724,14 +1748,14 @@ function _inherits$o(subClass, superClass) {
|
|
|
1724
1748
|
configurable: true
|
|
1725
1749
|
}
|
|
1726
1750
|
});
|
|
1727
|
-
if (superClass) _set_prototype_of$
|
|
1751
|
+
if (superClass) _set_prototype_of$r(subClass, superClass);
|
|
1728
1752
|
}
|
|
1729
|
-
function _set_prototype_of$
|
|
1730
|
-
_set_prototype_of$
|
|
1753
|
+
function _set_prototype_of$r(o, p) {
|
|
1754
|
+
_set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1731
1755
|
o.__proto__ = p;
|
|
1732
1756
|
return o;
|
|
1733
1757
|
};
|
|
1734
|
-
return _set_prototype_of$
|
|
1758
|
+
return _set_prototype_of$r(o, p);
|
|
1735
1759
|
}
|
|
1736
1760
|
var VOLUME_DEFAULT_OPTIONS = {
|
|
1737
1761
|
volume: 0.8,
|
|
@@ -1745,12 +1769,12 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1745
1769
|
* 音量调节控件
|
|
1746
1770
|
* @category Control
|
|
1747
1771
|
*/ var Volume = /*#__PURE__*/ function(Control) {
|
|
1748
|
-
_inherits$
|
|
1772
|
+
_inherits$r(Volume, Control);
|
|
1749
1773
|
function Volume(options) {
|
|
1750
1774
|
if (options === void 0) options = {};
|
|
1751
1775
|
var _this;
|
|
1752
1776
|
var _this__options_props, _this__options_props1, _this__options_props2, _this__options_props3;
|
|
1753
|
-
_this = Control.call(this, _extends$
|
|
1777
|
+
_this = Control.call(this, _extends$r({}, options, {
|
|
1754
1778
|
tagName: 'span',
|
|
1755
1779
|
classNameSuffix: 'volume',
|
|
1756
1780
|
controlType: 'button'
|
|
@@ -2410,8 +2434,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2410
2434
|
return Fullscreen;
|
|
2411
2435
|
}();
|
|
2412
2436
|
|
|
2413
|
-
function _extends$
|
|
2414
|
-
_extends$
|
|
2437
|
+
function _extends$q() {
|
|
2438
|
+
_extends$q = Object.assign || function(target) {
|
|
2415
2439
|
for(var i = 1; i < arguments.length; i++){
|
|
2416
2440
|
var source = arguments[i];
|
|
2417
2441
|
for(var key in source){
|
|
@@ -2422,9 +2446,9 @@ function _extends$n() {
|
|
|
2422
2446
|
}
|
|
2423
2447
|
return target;
|
|
2424
2448
|
};
|
|
2425
|
-
return _extends$
|
|
2449
|
+
return _extends$q.apply(this, arguments);
|
|
2426
2450
|
}
|
|
2427
|
-
function _inherits$
|
|
2451
|
+
function _inherits$q(subClass, superClass) {
|
|
2428
2452
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2429
2453
|
throw new TypeError("Super expression must either be null or a function");
|
|
2430
2454
|
}
|
|
@@ -2435,24 +2459,24 @@ function _inherits$n(subClass, superClass) {
|
|
|
2435
2459
|
configurable: true
|
|
2436
2460
|
}
|
|
2437
2461
|
});
|
|
2438
|
-
if (superClass) _set_prototype_of$
|
|
2462
|
+
if (superClass) _set_prototype_of$q(subClass, superClass);
|
|
2439
2463
|
}
|
|
2440
|
-
function _set_prototype_of$
|
|
2441
|
-
_set_prototype_of$
|
|
2464
|
+
function _set_prototype_of$q(o, p) {
|
|
2465
|
+
_set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2442
2466
|
o.__proto__ = p;
|
|
2443
2467
|
return o;
|
|
2444
2468
|
};
|
|
2445
|
-
return _set_prototype_of$
|
|
2469
|
+
return _set_prototype_of$q(o, p);
|
|
2446
2470
|
}
|
|
2447
2471
|
/**
|
|
2448
2472
|
* 全屏控件
|
|
2449
2473
|
* @category Control
|
|
2450
2474
|
*/ var Fullscreen = /*#__PURE__*/ function(Control) {
|
|
2451
|
-
_inherits$
|
|
2475
|
+
_inherits$q(Fullscreen, Control);
|
|
2452
2476
|
function Fullscreen(options) {
|
|
2453
2477
|
var _this;
|
|
2454
2478
|
var _options_props, _this_options;
|
|
2455
|
-
_this = Control.call(this, _extends$
|
|
2479
|
+
_this = Control.call(this, _extends$q({
|
|
2456
2480
|
tagName: 'span',
|
|
2457
2481
|
classNameSuffix: 'fullscreen',
|
|
2458
2482
|
controlType: 'button'
|
|
@@ -2517,8 +2541,8 @@ function _set_prototype_of$n(o, p) {
|
|
|
2517
2541
|
return Fullscreen;
|
|
2518
2542
|
}(Control);
|
|
2519
2543
|
|
|
2520
|
-
function _extends$
|
|
2521
|
-
_extends$
|
|
2544
|
+
function _extends$p() {
|
|
2545
|
+
_extends$p = Object.assign || function(target) {
|
|
2522
2546
|
for(var i = 1; i < arguments.length; i++){
|
|
2523
2547
|
var source = arguments[i];
|
|
2524
2548
|
for(var key in source){
|
|
@@ -2529,9 +2553,9 @@ function _extends$m() {
|
|
|
2529
2553
|
}
|
|
2530
2554
|
return target;
|
|
2531
2555
|
};
|
|
2532
|
-
return _extends$
|
|
2556
|
+
return _extends$p.apply(this, arguments);
|
|
2533
2557
|
}
|
|
2534
|
-
function _inherits$
|
|
2558
|
+
function _inherits$p(subClass, superClass) {
|
|
2535
2559
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2536
2560
|
throw new TypeError("Super expression must either be null or a function");
|
|
2537
2561
|
}
|
|
@@ -2542,24 +2566,24 @@ function _inherits$m(subClass, superClass) {
|
|
|
2542
2566
|
configurable: true
|
|
2543
2567
|
}
|
|
2544
2568
|
});
|
|
2545
|
-
if (superClass) _set_prototype_of$
|
|
2569
|
+
if (superClass) _set_prototype_of$p(subClass, superClass);
|
|
2546
2570
|
}
|
|
2547
|
-
function _set_prototype_of$
|
|
2548
|
-
_set_prototype_of$
|
|
2571
|
+
function _set_prototype_of$p(o, p) {
|
|
2572
|
+
_set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2549
2573
|
o.__proto__ = p;
|
|
2550
2574
|
return o;
|
|
2551
2575
|
};
|
|
2552
|
-
return _set_prototype_of$
|
|
2576
|
+
return _set_prototype_of$p(o, p);
|
|
2553
2577
|
}
|
|
2554
2578
|
/**
|
|
2555
2579
|
* 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
|
|
2556
2580
|
* @category Control
|
|
2557
2581
|
*/ var Rec = /*#__PURE__*/ function(Control) {
|
|
2558
|
-
_inherits$
|
|
2582
|
+
_inherits$p(Rec, Control);
|
|
2559
2583
|
function Rec(options) {
|
|
2560
2584
|
var _this;
|
|
2561
2585
|
var _options_props;
|
|
2562
|
-
_this = Control.call(this, _extends$
|
|
2586
|
+
_this = Control.call(this, _extends$p({}, options, {
|
|
2563
2587
|
tagName: 'div',
|
|
2564
2588
|
controlType: 'block',
|
|
2565
2589
|
classNameSuffix: 'rec'
|
|
@@ -2836,6 +2860,12 @@ var zh = {
|
|
|
2836
2860
|
BTN_TALK: '对讲',
|
|
2837
2861
|
BTN_BROADCAST: '语音广播',
|
|
2838
2862
|
BTN_AICHAT: 'AI对话',
|
|
2863
|
+
BTN_LIVE: '直播',
|
|
2864
|
+
BTN_REC_DROPDOWN: '回放',
|
|
2865
|
+
BTN_ALARM_MESSAGE: '消息',
|
|
2866
|
+
REC_DROPDOWN_CLOUD_REC: '云存储',
|
|
2867
|
+
REC_DROPDOWN_CLOUD_RECORD: '云录制',
|
|
2868
|
+
REC_DROPDOWN_LOCAL_REC: '本地回放',
|
|
2839
2869
|
BTN_ZOOM: '电子放大',
|
|
2840
2870
|
BTN_3D_ZOOM: '3D定位',
|
|
2841
2871
|
BTN_PTZ: '云台控制',
|
|
@@ -3108,6 +3138,12 @@ var en = {
|
|
|
3108
3138
|
BTN_TALK: 'Intercom',
|
|
3109
3139
|
BTN_BROADCAST: 'Voice broadcast',
|
|
3110
3140
|
BTN_AICHAT: 'AI Chat',
|
|
3141
|
+
BTN_LIVE: 'Live',
|
|
3142
|
+
BTN_REC_DROPDOWN: 'Playback',
|
|
3143
|
+
BTN_ALARM_MESSAGE: 'Messages',
|
|
3144
|
+
REC_DROPDOWN_CLOUD_REC: 'Cloud Storage',
|
|
3145
|
+
REC_DROPDOWN_CLOUD_RECORD: 'Cloud Recording',
|
|
3146
|
+
REC_DROPDOWN_LOCAL_REC: 'Local Playback',
|
|
3111
3147
|
BTN_ZOOM: 'Electronic zoom',
|
|
3112
3148
|
BTN_3D_ZOOM: '3D positioning',
|
|
3113
3149
|
BTN_PTZ: 'PTZ control',
|
|
@@ -3297,6 +3333,21 @@ var en = {
|
|
|
3297
3333
|
iconId: 'deviceName',
|
|
3298
3334
|
part: 'left',
|
|
3299
3335
|
isrender: 1
|
|
3336
|
+
},
|
|
3337
|
+
{
|
|
3338
|
+
iconId: 'live',
|
|
3339
|
+
part: 'right',
|
|
3340
|
+
isrender: 1
|
|
3341
|
+
},
|
|
3342
|
+
{
|
|
3343
|
+
iconId: 'recDropdown',
|
|
3344
|
+
part: 'right',
|
|
3345
|
+
isrender: 1
|
|
3346
|
+
},
|
|
3347
|
+
{
|
|
3348
|
+
iconId: 'alarmMessage',
|
|
3349
|
+
part: 'right',
|
|
3350
|
+
isrender: 1
|
|
3300
3351
|
}
|
|
3301
3352
|
]
|
|
3302
3353
|
},
|
|
@@ -3384,19 +3435,19 @@ var en = {
|
|
|
3384
3435
|
isrender: 1
|
|
3385
3436
|
},
|
|
3386
3437
|
{
|
|
3387
|
-
iconId: '
|
|
3438
|
+
iconId: 'live',
|
|
3388
3439
|
part: 'right',
|
|
3389
3440
|
defaultActive: 0,
|
|
3390
3441
|
isrender: 1
|
|
3391
3442
|
},
|
|
3392
3443
|
{
|
|
3393
|
-
iconId: '
|
|
3444
|
+
iconId: 'recDropdown',
|
|
3394
3445
|
part: 'right',
|
|
3395
3446
|
defaultActive: 0,
|
|
3396
3447
|
isrender: 1
|
|
3397
3448
|
},
|
|
3398
3449
|
{
|
|
3399
|
-
iconId: '
|
|
3450
|
+
iconId: 'alarmMessage',
|
|
3400
3451
|
part: 'right',
|
|
3401
3452
|
defaultActive: 0,
|
|
3402
3453
|
isrender: 1
|
|
@@ -3799,7 +3850,7 @@ var en = {
|
|
|
3799
3850
|
voice: voice
|
|
3800
3851
|
};
|
|
3801
3852
|
|
|
3802
|
-
function _inherits$
|
|
3853
|
+
function _inherits$o(subClass, superClass) {
|
|
3803
3854
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3804
3855
|
throw new TypeError("Super expression must either be null or a function");
|
|
3805
3856
|
}
|
|
@@ -3810,20 +3861,20 @@ function _inherits$l(subClass, superClass) {
|
|
|
3810
3861
|
configurable: true
|
|
3811
3862
|
}
|
|
3812
3863
|
});
|
|
3813
|
-
if (superClass) _set_prototype_of$
|
|
3864
|
+
if (superClass) _set_prototype_of$o(subClass, superClass);
|
|
3814
3865
|
}
|
|
3815
|
-
function _set_prototype_of$
|
|
3816
|
-
_set_prototype_of$
|
|
3866
|
+
function _set_prototype_of$o(o, p) {
|
|
3867
|
+
_set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3817
3868
|
o.__proto__ = p;
|
|
3818
3869
|
return o;
|
|
3819
3870
|
};
|
|
3820
|
-
return _set_prototype_of$
|
|
3871
|
+
return _set_prototype_of$o(o, p);
|
|
3821
3872
|
}
|
|
3822
3873
|
/**
|
|
3823
3874
|
* 截图控件
|
|
3824
3875
|
* @category Content
|
|
3825
3876
|
*/ var Content = /*#__PURE__*/ function(EventEmitter) {
|
|
3826
|
-
_inherits$
|
|
3877
|
+
_inherits$o(Content, EventEmitter);
|
|
3827
3878
|
function Content(options) {
|
|
3828
3879
|
var _this;
|
|
3829
3880
|
_this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
|
|
@@ -3938,8 +3989,8 @@ function _set_prototype_of$l(o, p) {
|
|
|
3938
3989
|
return Content;
|
|
3939
3990
|
}(EventEmitter);
|
|
3940
3991
|
|
|
3941
|
-
function _extends$
|
|
3942
|
-
_extends$
|
|
3992
|
+
function _extends$o() {
|
|
3993
|
+
_extends$o = Object.assign || function(target) {
|
|
3943
3994
|
for(var i = 1; i < arguments.length; i++){
|
|
3944
3995
|
var source = arguments[i];
|
|
3945
3996
|
for(var key in source){
|
|
@@ -3950,9 +4001,9 @@ function _extends$l() {
|
|
|
3950
4001
|
}
|
|
3951
4002
|
return target;
|
|
3952
4003
|
};
|
|
3953
|
-
return _extends$
|
|
4004
|
+
return _extends$o.apply(this, arguments);
|
|
3954
4005
|
}
|
|
3955
|
-
function _inherits$
|
|
4006
|
+
function _inherits$n(subClass, superClass) {
|
|
3956
4007
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3957
4008
|
throw new TypeError("Super expression must either be null or a function");
|
|
3958
4009
|
}
|
|
@@ -3963,23 +4014,23 @@ function _inherits$k(subClass, superClass) {
|
|
|
3963
4014
|
configurable: true
|
|
3964
4015
|
}
|
|
3965
4016
|
});
|
|
3966
|
-
if (superClass) _set_prototype_of$
|
|
4017
|
+
if (superClass) _set_prototype_of$n(subClass, superClass);
|
|
3967
4018
|
}
|
|
3968
|
-
function _set_prototype_of$
|
|
3969
|
-
_set_prototype_of$
|
|
4019
|
+
function _set_prototype_of$n(o, p) {
|
|
4020
|
+
_set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3970
4021
|
o.__proto__ = p;
|
|
3971
4022
|
return o;
|
|
3972
4023
|
};
|
|
3973
|
-
return _set_prototype_of$
|
|
4024
|
+
return _set_prototype_of$n(o, p);
|
|
3974
4025
|
}
|
|
3975
4026
|
/**
|
|
3976
4027
|
* 更多控件
|
|
3977
4028
|
* @category Control
|
|
3978
4029
|
*/ var More = /*#__PURE__*/ function(Control) {
|
|
3979
|
-
_inherits$
|
|
4030
|
+
_inherits$n(More, Control);
|
|
3980
4031
|
function More(options) {
|
|
3981
4032
|
var _this;
|
|
3982
|
-
_this = Control.call(this, _extends$
|
|
4033
|
+
_this = Control.call(this, _extends$o({}, options, {
|
|
3983
4034
|
tagName: 'span',
|
|
3984
4035
|
controlType: 'button',
|
|
3985
4036
|
classNameSuffix: 'more'
|
|
@@ -4195,6 +4246,15 @@ function debounce(func, wait) {
|
|
|
4195
4246
|
}
|
|
4196
4247
|
});
|
|
4197
4248
|
// =======================================================
|
|
4249
|
+
// 告警消息
|
|
4250
|
+
// =======================================================
|
|
4251
|
+
theme.on(EVENTS.alarmMessageChange, function(active) {
|
|
4252
|
+
var _theme_controls;
|
|
4253
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.alarmMessageControl) {
|
|
4254
|
+
theme.controls.alarmMessageControl._panelOpen = active;
|
|
4255
|
+
}
|
|
4256
|
+
});
|
|
4257
|
+
// =======================================================
|
|
4198
4258
|
// 录制
|
|
4199
4259
|
// =======================================================
|
|
4200
4260
|
theme.on(EVENTS.recordingChange, function(recording) {
|
|
@@ -4290,7 +4350,7 @@ function debounce(func, wait) {
|
|
|
4290
4350
|
*
|
|
4291
4351
|
* @param theme - Theme
|
|
4292
4352
|
*/ function _controlEventemitter(theme) {
|
|
4293
|
-
var _theme_controls, _theme_controls1, _theme_controls2, _theme_controls3, _theme_controls4, _theme_controls5, _theme_controls6, _theme_controls7, _theme_controls8, _theme_controls9, _theme_controls10, _theme_controls11, _theme_controls12, _theme_controls13, _theme_controls14, _theme_controls15, _theme_controls16;
|
|
4353
|
+
var _theme_controls, _theme_controls1, _theme_controls2, _theme_controls3, _theme_controls4, _theme_controls5, _theme_controls6, _theme_controls7, _theme_controls8, _theme_controls9, _theme_controls10, _theme_controls11, _theme_controls12, _theme_controls13, _theme_controls14, _theme_controls15, _theme_controls16, _theme_controls17, _theme_controls18, _theme_controls19, _theme_controls20, _theme_controls21;
|
|
4294
4354
|
// Controls
|
|
4295
4355
|
if (theme._recFooter) {
|
|
4296
4356
|
theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
|
|
@@ -4401,8 +4461,50 @@ function debounce(func, wait) {
|
|
|
4401
4461
|
theme.emit(EVENTS.control.aichatDestroy);
|
|
4402
4462
|
});
|
|
4403
4463
|
}
|
|
4464
|
+
// 直播按钮
|
|
4465
|
+
if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.liveControl) {
|
|
4466
|
+
theme.controls.liveControl.on(EVENTS.control.liveChange, function() {
|
|
4467
|
+
var _theme_controls;
|
|
4468
|
+
// 直接设置回放下拉控件为非激活状态
|
|
4469
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.recDropdownControl) {
|
|
4470
|
+
theme.controls.recDropdownControl.active = false;
|
|
4471
|
+
}
|
|
4472
|
+
theme.emit(EVENTS.control.liveChange);
|
|
4473
|
+
});
|
|
4474
|
+
}
|
|
4475
|
+
// 回放下拉
|
|
4476
|
+
if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.recDropdownControl) {
|
|
4477
|
+
theme.controls.recDropdownControl.on(EVENTS.control.recDropdownChange, function(type) {
|
|
4478
|
+
var _theme_controls;
|
|
4479
|
+
// 直接设置直播控件为非激活状态
|
|
4480
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.liveControl) {
|
|
4481
|
+
theme.controls.liveControl.active = false;
|
|
4482
|
+
}
|
|
4483
|
+
theme.emit(EVENTS.control.recDropdownChange, type);
|
|
4484
|
+
});
|
|
4485
|
+
}
|
|
4486
|
+
// 告警消息
|
|
4487
|
+
if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.alarmMessageControl) {
|
|
4488
|
+
theme.controls.alarmMessageControl.on(EVENTS.control.alarmMessageChange, function(active) {
|
|
4489
|
+
theme.emit(EVENTS.control.alarmMessageChange, active);
|
|
4490
|
+
});
|
|
4491
|
+
}
|
|
4492
|
+
// 播放地址切换后同步 Live/RecDropdown 激活状态
|
|
4493
|
+
// changePlayUrl 后 urlInfo 已更新,firstFrameDisplay 表示新地址播放成功
|
|
4494
|
+
if (((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.liveControl) || ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.recDropdownControl)) {
|
|
4495
|
+
theme.on(EVENTS.firstFrameDisplay, function() {
|
|
4496
|
+
var _theme_controls, _theme_controls1;
|
|
4497
|
+
var urlInfo = theme.urlInfo;
|
|
4498
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.liveControl) {
|
|
4499
|
+
theme.controls.liveControl._syncActiveByUrlInfo(urlInfo);
|
|
4500
|
+
}
|
|
4501
|
+
if ((_theme_controls1 = theme.controls) == null ? void 0 : _theme_controls1.recDropdownControl) {
|
|
4502
|
+
theme.controls.recDropdownControl._syncActiveByUrlInfo(urlInfo);
|
|
4503
|
+
}
|
|
4504
|
+
});
|
|
4505
|
+
}
|
|
4404
4506
|
// 缩放控件
|
|
4405
|
-
if ((
|
|
4507
|
+
if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.zoomControl) {
|
|
4406
4508
|
theme.controls.zoomControl.on(EVENTS.control.zoomChange, function(value, _percent, _range) {
|
|
4407
4509
|
if (theme.zoom !== value) {
|
|
4408
4510
|
theme.zoom = value;
|
|
@@ -4424,7 +4526,7 @@ function debounce(func, wait) {
|
|
|
4424
4526
|
});
|
|
4425
4527
|
}
|
|
4426
4528
|
// 清晰度控件
|
|
4427
|
-
if ((
|
|
4529
|
+
if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.definitionControl) {
|
|
4428
4530
|
theme.controls.definitionControl.on(EVENTS.control.definitionPanelOpenChange, function(open, definition, item) {
|
|
4429
4531
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, definition);
|
|
4430
4532
|
theme.emit(EVENTS.control.definitionPanelOpenChange, open, definition, item);
|
|
@@ -4437,7 +4539,7 @@ function debounce(func, wait) {
|
|
|
4437
4539
|
});
|
|
4438
4540
|
}
|
|
4439
4541
|
// 倍速控件
|
|
4440
|
-
if ((
|
|
4542
|
+
if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.speedControl) {
|
|
4441
4543
|
theme.controls.speedControl.on(EVENTS.control.speedPanelOpenChange, function(open, speed, item) {
|
|
4442
4544
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, speed);
|
|
4443
4545
|
theme.emit(EVENTS.control.speedPanelOpenChange, open, speed, item);
|
|
@@ -4450,7 +4552,7 @@ function debounce(func, wait) {
|
|
|
4450
4552
|
});
|
|
4451
4553
|
}
|
|
4452
4554
|
// 截图控件
|
|
4453
|
-
if ((
|
|
4555
|
+
if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.capturePictureControl) {
|
|
4454
4556
|
theme.controls.capturePictureControl.on(EVENTS.control.capturePicture, function(options) {
|
|
4455
4557
|
theme.emit(EVENTS.control.capturePicture, options);
|
|
4456
4558
|
});
|
|
@@ -4459,25 +4561,25 @@ function debounce(func, wait) {
|
|
|
4459
4561
|
});
|
|
4460
4562
|
}
|
|
4461
4563
|
// 全屏控件
|
|
4462
|
-
if ((
|
|
4564
|
+
if ((_theme_controls16 = theme.controls) == null ? void 0 : _theme_controls16.fullscreenControl) {
|
|
4463
4565
|
theme.controls.fullscreenControl.on(EVENTS.control.fullscreenDestroy, function() {
|
|
4464
4566
|
theme.emit(EVENTS.control.fullscreenDestroy);
|
|
4465
4567
|
});
|
|
4466
4568
|
}
|
|
4467
4569
|
// 全局全屏控件
|
|
4468
|
-
if ((
|
|
4570
|
+
if ((_theme_controls17 = theme.controls) == null ? void 0 : _theme_controls17.globalFullscreenControl) {
|
|
4469
4571
|
theme.controls.globalFullscreenControl.on(EVENTS.control.globalFullscreenDestroy, function() {
|
|
4470
4572
|
theme.emit(EVENTS.control.globalFullscreenDestroy);
|
|
4471
4573
|
});
|
|
4472
4574
|
}
|
|
4473
4575
|
// 设备信息控件
|
|
4474
|
-
if ((
|
|
4576
|
+
if ((_theme_controls18 = theme.controls) == null ? void 0 : _theme_controls18.deviceControl) {
|
|
4475
4577
|
theme.controls.deviceControl.on(EVENTS.control.deviceDestroy, function() {
|
|
4476
4578
|
theme.emit(EVENTS.control.deviceDestroy);
|
|
4477
4579
|
});
|
|
4478
4580
|
}
|
|
4479
4581
|
// 回放类型切换控件
|
|
4480
|
-
if ((
|
|
4582
|
+
if ((_theme_controls19 = theme.controls) == null ? void 0 : _theme_controls19.recControl) {
|
|
4481
4583
|
// prettier-ignore
|
|
4482
4584
|
theme.controls.recControl.on(EVENTS.control.recTypeChange, function(type) {
|
|
4483
4585
|
if (theme.recType !== type) {
|
|
@@ -4498,7 +4600,7 @@ function debounce(func, wait) {
|
|
|
4498
4600
|
});
|
|
4499
4601
|
}
|
|
4500
4602
|
// 时间轴控件
|
|
4501
|
-
if ((
|
|
4603
|
+
if ((_theme_controls20 = theme.controls) == null ? void 0 : _theme_controls20.timeLineControl) {
|
|
4502
4604
|
theme.controls.timeLineControl.on(EVENTS.control.timeLineChange, function(date) {
|
|
4503
4605
|
theme.emit(EVENTS.control.timeLineChange, date);
|
|
4504
4606
|
});
|
|
@@ -4515,7 +4617,7 @@ function debounce(func, wait) {
|
|
|
4515
4617
|
});
|
|
4516
4618
|
}
|
|
4517
4619
|
// 日历控件
|
|
4518
|
-
if ((
|
|
4620
|
+
if ((_theme_controls21 = theme.controls) == null ? void 0 : _theme_controls21.dateControl) {
|
|
4519
4621
|
theme.controls.dateControl.on(EVENTS.control.datePanelOpenChange, function(open, date) {
|
|
4520
4622
|
theme.emit(EVENTS.control.datePanelOpenChange, open, date);
|
|
4521
4623
|
});
|
|
@@ -4610,8 +4712,8 @@ function _create_class$5(Constructor, protoProps, staticProps) {
|
|
|
4610
4712
|
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
4611
4713
|
return Constructor;
|
|
4612
4714
|
}
|
|
4613
|
-
function _extends$
|
|
4614
|
-
_extends$
|
|
4715
|
+
function _extends$n() {
|
|
4716
|
+
_extends$n = Object.assign || function(target) {
|
|
4615
4717
|
for(var i = 1; i < arguments.length; i++){
|
|
4616
4718
|
var source = arguments[i];
|
|
4617
4719
|
for(var key in source){
|
|
@@ -4622,9 +4724,9 @@ function _extends$k() {
|
|
|
4622
4724
|
}
|
|
4623
4725
|
return target;
|
|
4624
4726
|
};
|
|
4625
|
-
return _extends$
|
|
4727
|
+
return _extends$n.apply(this, arguments);
|
|
4626
4728
|
}
|
|
4627
|
-
function _inherits$
|
|
4729
|
+
function _inherits$m(subClass, superClass) {
|
|
4628
4730
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
4629
4731
|
throw new TypeError("Super expression must either be null or a function");
|
|
4630
4732
|
}
|
|
@@ -4635,14 +4737,14 @@ function _inherits$j(subClass, superClass) {
|
|
|
4635
4737
|
configurable: true
|
|
4636
4738
|
}
|
|
4637
4739
|
});
|
|
4638
|
-
if (superClass) _set_prototype_of$
|
|
4740
|
+
if (superClass) _set_prototype_of$m(subClass, superClass);
|
|
4639
4741
|
}
|
|
4640
|
-
function _set_prototype_of$
|
|
4641
|
-
_set_prototype_of$
|
|
4742
|
+
function _set_prototype_of$m(o, p) {
|
|
4743
|
+
_set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
4642
4744
|
o.__proto__ = p;
|
|
4643
4745
|
return o;
|
|
4644
4746
|
};
|
|
4645
|
-
return _set_prototype_of$
|
|
4747
|
+
return _set_prototype_of$m(o, p);
|
|
4646
4748
|
}
|
|
4647
4749
|
var ZOOM_DEFAULT_OPTIONS = {
|
|
4648
4750
|
open: false,
|
|
@@ -4652,10 +4754,10 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4652
4754
|
* 电子放大控件
|
|
4653
4755
|
* @category Control
|
|
4654
4756
|
*/ var Zoom = /*#__PURE__*/ function(Control) {
|
|
4655
|
-
_inherits$
|
|
4757
|
+
_inherits$m(Zoom, Control);
|
|
4656
4758
|
function Zoom(options) {
|
|
4657
4759
|
var _this;
|
|
4658
|
-
_this = Control.call(this, _extends$
|
|
4760
|
+
_this = Control.call(this, _extends$n({}, options, {
|
|
4659
4761
|
tagName: 'span',
|
|
4660
4762
|
controlType: 'button',
|
|
4661
4763
|
classNameSuffix: 'zoom'
|
|
@@ -4783,8 +4885,8 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4783
4885
|
return Zoom;
|
|
4784
4886
|
}(Control);
|
|
4785
4887
|
|
|
4786
|
-
function _extends$
|
|
4787
|
-
_extends$
|
|
4888
|
+
function _extends$m() {
|
|
4889
|
+
_extends$m = Object.assign || function(target) {
|
|
4788
4890
|
for(var i = 1; i < arguments.length; i++){
|
|
4789
4891
|
var source = arguments[i];
|
|
4790
4892
|
for(var key in source){
|
|
@@ -4795,10 +4897,10 @@ function _extends$j() {
|
|
|
4795
4897
|
}
|
|
4796
4898
|
return target;
|
|
4797
4899
|
};
|
|
4798
|
-
return _extends$
|
|
4900
|
+
return _extends$m.apply(this, arguments);
|
|
4799
4901
|
}
|
|
4800
4902
|
function __zoom(theme, container, options) {
|
|
4801
|
-
theme.zoomUtil = new Zoom$1(container, _extends$
|
|
4903
|
+
theme.zoomUtil = new Zoom$1(container, _extends$m({}, options || {}, {
|
|
4802
4904
|
min: 1,
|
|
4803
4905
|
onChange: function(zoom, reset) {
|
|
4804
4906
|
if (zoom !== theme._zoom) {
|
|
@@ -5023,8 +5125,8 @@ function _async_to_generator$5(fn) {
|
|
|
5023
5125
|
});
|
|
5024
5126
|
};
|
|
5025
5127
|
}
|
|
5026
|
-
function _extends$
|
|
5027
|
-
_extends$
|
|
5128
|
+
function _extends$l() {
|
|
5129
|
+
_extends$l = Object.assign || function(target) {
|
|
5028
5130
|
for(var i = 1; i < arguments.length; i++){
|
|
5029
5131
|
var source = arguments[i];
|
|
5030
5132
|
for(var key in source){
|
|
@@ -5035,7 +5137,7 @@ function _extends$i() {
|
|
|
5035
5137
|
}
|
|
5036
5138
|
return target;
|
|
5037
5139
|
};
|
|
5038
|
-
return _extends$
|
|
5140
|
+
return _extends$l.apply(this, arguments);
|
|
5039
5141
|
}
|
|
5040
5142
|
function _ts_generator$5(thisArg, body) {
|
|
5041
5143
|
var f, y, t, _ = {
|
|
@@ -5163,7 +5265,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5163
5265
|
}
|
|
5164
5266
|
if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
|
|
5165
5267
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5166
|
-
recControls.push(recControls[0] ? _extends$
|
|
5268
|
+
recControls.push(recControls[0] ? _extends$l({}, item, {
|
|
5167
5269
|
part: recControls[0].part
|
|
5168
5270
|
}) : item);
|
|
5169
5271
|
return false;
|
|
@@ -5186,7 +5288,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5186
5288
|
}
|
|
5187
5289
|
if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
|
|
5188
5290
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5189
|
-
recControls.push(recControls[0] ? _extends$
|
|
5291
|
+
recControls.push(recControls[0] ? _extends$l({}, item, {
|
|
5190
5292
|
part: recControls[0].part
|
|
5191
5293
|
}) : item);
|
|
5192
5294
|
return false;
|
|
@@ -5437,8 +5539,8 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
|
|
|
5437
5539
|
return Component;
|
|
5438
5540
|
}();
|
|
5439
5541
|
|
|
5440
|
-
function _extends$
|
|
5441
|
-
_extends$
|
|
5542
|
+
function _extends$k() {
|
|
5543
|
+
_extends$k = Object.assign || function(target) {
|
|
5442
5544
|
for(var i = 1; i < arguments.length; i++){
|
|
5443
5545
|
var source = arguments[i];
|
|
5444
5546
|
for(var key in source){
|
|
@@ -5449,9 +5551,9 @@ function _extends$h() {
|
|
|
5449
5551
|
}
|
|
5450
5552
|
return target;
|
|
5451
5553
|
};
|
|
5452
|
-
return _extends$
|
|
5554
|
+
return _extends$k.apply(this, arguments);
|
|
5453
5555
|
}
|
|
5454
|
-
function _inherits$
|
|
5556
|
+
function _inherits$l(subClass, superClass) {
|
|
5455
5557
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5456
5558
|
throw new TypeError("Super expression must either be null or a function");
|
|
5457
5559
|
}
|
|
@@ -5462,28 +5564,28 @@ function _inherits$i(subClass, superClass) {
|
|
|
5462
5564
|
configurable: true
|
|
5463
5565
|
}
|
|
5464
5566
|
});
|
|
5465
|
-
if (superClass) _set_prototype_of$
|
|
5567
|
+
if (superClass) _set_prototype_of$l(subClass, superClass);
|
|
5466
5568
|
}
|
|
5467
|
-
function _set_prototype_of$
|
|
5468
|
-
_set_prototype_of$
|
|
5569
|
+
function _set_prototype_of$l(o, p) {
|
|
5570
|
+
_set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5469
5571
|
o.__proto__ = p;
|
|
5470
5572
|
return o;
|
|
5471
5573
|
};
|
|
5472
|
-
return _set_prototype_of$
|
|
5574
|
+
return _set_prototype_of$l(o, p);
|
|
5473
5575
|
}
|
|
5474
5576
|
var Footer = /*#__PURE__*/ function(Component) {
|
|
5475
|
-
_inherits$
|
|
5577
|
+
_inherits$l(Footer, Component);
|
|
5476
5578
|
function Footer(options) {
|
|
5477
5579
|
if (options === void 0) options = {};
|
|
5478
|
-
return Component.call(this, _extends$
|
|
5580
|
+
return Component.call(this, _extends$k({}, options, {
|
|
5479
5581
|
cType: 'footer'
|
|
5480
5582
|
})) || this;
|
|
5481
5583
|
}
|
|
5482
5584
|
return Footer;
|
|
5483
5585
|
}(Component);
|
|
5484
5586
|
|
|
5485
|
-
function _extends$
|
|
5486
|
-
_extends$
|
|
5587
|
+
function _extends$j() {
|
|
5588
|
+
_extends$j = Object.assign || function(target) {
|
|
5487
5589
|
for(var i = 1; i < arguments.length; i++){
|
|
5488
5590
|
var source = arguments[i];
|
|
5489
5591
|
for(var key in source){
|
|
@@ -5494,9 +5596,9 @@ function _extends$g() {
|
|
|
5494
5596
|
}
|
|
5495
5597
|
return target;
|
|
5496
5598
|
};
|
|
5497
|
-
return _extends$
|
|
5599
|
+
return _extends$j.apply(this, arguments);
|
|
5498
5600
|
}
|
|
5499
|
-
function _inherits$
|
|
5601
|
+
function _inherits$k(subClass, superClass) {
|
|
5500
5602
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5501
5603
|
throw new TypeError("Super expression must either be null or a function");
|
|
5502
5604
|
}
|
|
@@ -5507,20 +5609,20 @@ function _inherits$h(subClass, superClass) {
|
|
|
5507
5609
|
configurable: true
|
|
5508
5610
|
}
|
|
5509
5611
|
});
|
|
5510
|
-
if (superClass) _set_prototype_of$
|
|
5612
|
+
if (superClass) _set_prototype_of$k(subClass, superClass);
|
|
5511
5613
|
}
|
|
5512
|
-
function _set_prototype_of$
|
|
5513
|
-
_set_prototype_of$
|
|
5614
|
+
function _set_prototype_of$k(o, p) {
|
|
5615
|
+
_set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5514
5616
|
o.__proto__ = p;
|
|
5515
5617
|
return o;
|
|
5516
5618
|
};
|
|
5517
|
-
return _set_prototype_of$
|
|
5619
|
+
return _set_prototype_of$k(o, p);
|
|
5518
5620
|
}
|
|
5519
5621
|
var Header = /*#__PURE__*/ function(Component) {
|
|
5520
|
-
_inherits$
|
|
5622
|
+
_inherits$k(Header, Component);
|
|
5521
5623
|
function Header(options) {
|
|
5522
5624
|
if (options === void 0) options = {};
|
|
5523
|
-
return Component.call(this, _extends$
|
|
5625
|
+
return Component.call(this, _extends$j({}, options, {
|
|
5524
5626
|
cType: 'header'
|
|
5525
5627
|
})) || this;
|
|
5526
5628
|
}
|
|
@@ -5686,8 +5788,8 @@ function interactiveHF($container, second, callback) {
|
|
|
5686
5788
|
};
|
|
5687
5789
|
}
|
|
5688
5790
|
|
|
5689
|
-
function _extends$
|
|
5690
|
-
_extends$
|
|
5791
|
+
function _extends$i() {
|
|
5792
|
+
_extends$i = Object.assign || function(target) {
|
|
5691
5793
|
for(var i = 1; i < arguments.length; i++){
|
|
5692
5794
|
var source = arguments[i];
|
|
5693
5795
|
for(var key in source){
|
|
@@ -5698,9 +5800,9 @@ function _extends$f() {
|
|
|
5698
5800
|
}
|
|
5699
5801
|
return target;
|
|
5700
5802
|
};
|
|
5701
|
-
return _extends$
|
|
5803
|
+
return _extends$i.apply(this, arguments);
|
|
5702
5804
|
}
|
|
5703
|
-
function _inherits$
|
|
5805
|
+
function _inherits$j(subClass, superClass) {
|
|
5704
5806
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5705
5807
|
throw new TypeError("Super expression must either be null or a function");
|
|
5706
5808
|
}
|
|
@@ -5711,23 +5813,23 @@ function _inherits$g(subClass, superClass) {
|
|
|
5711
5813
|
configurable: true
|
|
5712
5814
|
}
|
|
5713
5815
|
});
|
|
5714
|
-
if (superClass) _set_prototype_of$
|
|
5816
|
+
if (superClass) _set_prototype_of$j(subClass, superClass);
|
|
5715
5817
|
}
|
|
5716
|
-
function _set_prototype_of$
|
|
5717
|
-
_set_prototype_of$
|
|
5818
|
+
function _set_prototype_of$j(o, p) {
|
|
5819
|
+
_set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5718
5820
|
o.__proto__ = p;
|
|
5719
5821
|
return o;
|
|
5720
5822
|
};
|
|
5721
|
-
return _set_prototype_of$
|
|
5823
|
+
return _set_prototype_of$j(o, p);
|
|
5722
5824
|
}
|
|
5723
5825
|
/**
|
|
5724
5826
|
* 全局全屏
|
|
5725
5827
|
* 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
|
|
5726
5828
|
* @category Control
|
|
5727
5829
|
*/ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
|
|
5728
|
-
_inherits$
|
|
5830
|
+
_inherits$j(GlobalFullscreen, Fullscreen);
|
|
5729
5831
|
function GlobalFullscreen(options) {
|
|
5730
|
-
return Fullscreen.call(this, _extends$
|
|
5832
|
+
return Fullscreen.call(this, _extends$i({}, options, {
|
|
5731
5833
|
controlType: 'button',
|
|
5732
5834
|
classNameSuffix: 'global-fullscreen'
|
|
5733
5835
|
})) || this;
|
|
@@ -5758,8 +5860,8 @@ function _set_prototype_of$g(o, p) {
|
|
|
5758
5860
|
return GlobalFullscreen;
|
|
5759
5861
|
}(Fullscreen);
|
|
5760
5862
|
|
|
5761
|
-
function _extends$
|
|
5762
|
-
_extends$
|
|
5863
|
+
function _extends$h() {
|
|
5864
|
+
_extends$h = Object.assign || function(target) {
|
|
5763
5865
|
for(var i = 1; i < arguments.length; i++){
|
|
5764
5866
|
var source = arguments[i];
|
|
5765
5867
|
for(var key in source){
|
|
@@ -5770,9 +5872,9 @@ function _extends$e() {
|
|
|
5770
5872
|
}
|
|
5771
5873
|
return target;
|
|
5772
5874
|
};
|
|
5773
|
-
return _extends$
|
|
5875
|
+
return _extends$h.apply(this, arguments);
|
|
5774
5876
|
}
|
|
5775
|
-
function _inherits$
|
|
5877
|
+
function _inherits$i(subClass, superClass) {
|
|
5776
5878
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5777
5879
|
throw new TypeError("Super expression must either be null or a function");
|
|
5778
5880
|
}
|
|
@@ -5783,23 +5885,23 @@ function _inherits$f(subClass, superClass) {
|
|
|
5783
5885
|
configurable: true
|
|
5784
5886
|
}
|
|
5785
5887
|
});
|
|
5786
|
-
if (superClass) _set_prototype_of$
|
|
5888
|
+
if (superClass) _set_prototype_of$i(subClass, superClass);
|
|
5787
5889
|
}
|
|
5788
|
-
function _set_prototype_of$
|
|
5789
|
-
_set_prototype_of$
|
|
5890
|
+
function _set_prototype_of$i(o, p) {
|
|
5891
|
+
_set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5790
5892
|
o.__proto__ = p;
|
|
5791
5893
|
return o;
|
|
5792
5894
|
};
|
|
5793
|
-
return _set_prototype_of$
|
|
5895
|
+
return _set_prototype_of$i(o, p);
|
|
5794
5896
|
}
|
|
5795
5897
|
/**
|
|
5796
5898
|
* 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
|
|
5797
5899
|
* @category Control
|
|
5798
5900
|
*/ var CapturePicture = /*#__PURE__*/ function(Control) {
|
|
5799
|
-
_inherits$
|
|
5901
|
+
_inherits$i(CapturePicture, Control);
|
|
5800
5902
|
function CapturePicture(options) {
|
|
5801
5903
|
var _this;
|
|
5802
|
-
_this = Control.call(this, _extends$
|
|
5904
|
+
_this = Control.call(this, _extends$h({}, options, {
|
|
5803
5905
|
tagName: 'span',
|
|
5804
5906
|
classNameSuffix: 'capture-picture'
|
|
5805
5907
|
})) || this, _this._timer = null;
|
|
@@ -5865,8 +5967,8 @@ function _create_class$4(Constructor, protoProps, staticProps) {
|
|
|
5865
5967
|
if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
|
|
5866
5968
|
return Constructor;
|
|
5867
5969
|
}
|
|
5868
|
-
function _extends$
|
|
5869
|
-
_extends$
|
|
5970
|
+
function _extends$g() {
|
|
5971
|
+
_extends$g = Object.assign || function(target) {
|
|
5870
5972
|
for(var i = 1; i < arguments.length; i++){
|
|
5871
5973
|
var source = arguments[i];
|
|
5872
5974
|
for(var key in source){
|
|
@@ -5877,9 +5979,9 @@ function _extends$d() {
|
|
|
5877
5979
|
}
|
|
5878
5980
|
return target;
|
|
5879
5981
|
};
|
|
5880
|
-
return _extends$
|
|
5982
|
+
return _extends$g.apply(this, arguments);
|
|
5881
5983
|
}
|
|
5882
|
-
function _inherits$
|
|
5984
|
+
function _inherits$h(subClass, superClass) {
|
|
5883
5985
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5884
5986
|
throw new TypeError("Super expression must either be null or a function");
|
|
5885
5987
|
}
|
|
@@ -5890,23 +5992,23 @@ function _inherits$e(subClass, superClass) {
|
|
|
5890
5992
|
configurable: true
|
|
5891
5993
|
}
|
|
5892
5994
|
});
|
|
5893
|
-
if (superClass) _set_prototype_of$
|
|
5995
|
+
if (superClass) _set_prototype_of$h(subClass, superClass);
|
|
5894
5996
|
}
|
|
5895
|
-
function _set_prototype_of$
|
|
5896
|
-
_set_prototype_of$
|
|
5997
|
+
function _set_prototype_of$h(o, p) {
|
|
5998
|
+
_set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5897
5999
|
o.__proto__ = p;
|
|
5898
6000
|
return o;
|
|
5899
6001
|
};
|
|
5900
|
-
return _set_prototype_of$
|
|
6002
|
+
return _set_prototype_of$h(o, p);
|
|
5901
6003
|
}
|
|
5902
6004
|
/**
|
|
5903
6005
|
* 云台控件
|
|
5904
6006
|
* @category Control
|
|
5905
6007
|
*/ var Ptz = /*#__PURE__*/ function(Control) {
|
|
5906
|
-
_inherits$
|
|
6008
|
+
_inherits$h(Ptz, Control);
|
|
5907
6009
|
function Ptz(options) {
|
|
5908
6010
|
var _this;
|
|
5909
|
-
_this = Control.call(this, _extends$
|
|
6011
|
+
_this = Control.call(this, _extends$g({}, options, {
|
|
5910
6012
|
tagName: 'span',
|
|
5911
6013
|
controlType: 'button',
|
|
5912
6014
|
classNameSuffix: 'ptz'
|
|
@@ -5949,7 +6051,7 @@ function _set_prototype_of$e(o, p) {
|
|
|
5949
6051
|
this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
|
|
5950
6052
|
this.$panel.appendChild(this.$turntable);
|
|
5951
6053
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
5952
|
-
this._ptzControl = new controlPtz.Ptz(this.$turntable, _extends$
|
|
6054
|
+
this._ptzControl = new controlPtz.Ptz(this.$turntable, _extends$g({}, this._options, {
|
|
5953
6055
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
5954
6056
|
onDirection: this._onDirection.bind(this)
|
|
5955
6057
|
}));
|
|
@@ -5958,7 +6060,7 @@ function _set_prototype_of$e(o, p) {
|
|
|
5958
6060
|
};
|
|
5959
6061
|
_proto.renderMobileExtend = function renderMobileExtend($container) {
|
|
5960
6062
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
5961
|
-
if (!this._ptzControl1) this._ptzControl1 = new controlPtz.MobilePtz($container, _extends$
|
|
6063
|
+
if (!this._ptzControl1) this._ptzControl1 = new controlPtz.MobilePtz($container, _extends$g({}, this._options, {
|
|
5962
6064
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
5963
6065
|
onDirection: this._onDirection.bind(this)
|
|
5964
6066
|
}));
|
|
@@ -6061,8 +6163,8 @@ function _create_class$3(Constructor, protoProps, staticProps) {
|
|
|
6061
6163
|
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
6062
6164
|
return Constructor;
|
|
6063
6165
|
}
|
|
6064
|
-
function _extends$
|
|
6065
|
-
_extends$
|
|
6166
|
+
function _extends$f() {
|
|
6167
|
+
_extends$f = Object.assign || function(target) {
|
|
6066
6168
|
for(var i = 1; i < arguments.length; i++){
|
|
6067
6169
|
var source = arguments[i];
|
|
6068
6170
|
for(var key in source){
|
|
@@ -6073,9 +6175,9 @@ function _extends$c() {
|
|
|
6073
6175
|
}
|
|
6074
6176
|
return target;
|
|
6075
6177
|
};
|
|
6076
|
-
return _extends$
|
|
6178
|
+
return _extends$f.apply(this, arguments);
|
|
6077
6179
|
}
|
|
6078
|
-
function _inherits$
|
|
6180
|
+
function _inherits$g(subClass, superClass) {
|
|
6079
6181
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6080
6182
|
throw new TypeError("Super expression must either be null or a function");
|
|
6081
6183
|
}
|
|
@@ -6086,14 +6188,14 @@ function _inherits$d(subClass, superClass) {
|
|
|
6086
6188
|
configurable: true
|
|
6087
6189
|
}
|
|
6088
6190
|
});
|
|
6089
|
-
if (superClass) _set_prototype_of$
|
|
6191
|
+
if (superClass) _set_prototype_of$g(subClass, superClass);
|
|
6090
6192
|
}
|
|
6091
|
-
function _set_prototype_of$
|
|
6092
|
-
_set_prototype_of$
|
|
6193
|
+
function _set_prototype_of$g(o, p) {
|
|
6194
|
+
_set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6093
6195
|
o.__proto__ = p;
|
|
6094
6196
|
return o;
|
|
6095
6197
|
};
|
|
6096
|
-
return _set_prototype_of$
|
|
6198
|
+
return _set_prototype_of$g(o, p);
|
|
6097
6199
|
}
|
|
6098
6200
|
var RECORD_DEFAULT_OPTIONS = {
|
|
6099
6201
|
maxDuration: 3600
|
|
@@ -6107,10 +6209,10 @@ var RECORD_DEFAULT_OPTIONS = {
|
|
|
6107
6209
|
* 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
|
|
6108
6210
|
* @category Control
|
|
6109
6211
|
*/ var Record = /*#__PURE__*/ function(Control) {
|
|
6110
|
-
_inherits$
|
|
6212
|
+
_inherits$g(Record, Control);
|
|
6111
6213
|
function Record(options) {
|
|
6112
6214
|
var _this;
|
|
6113
|
-
_this = Control.call(this, _extends$
|
|
6215
|
+
_this = Control.call(this, _extends$f({}, options, {
|
|
6114
6216
|
tagName: 'span',
|
|
6115
6217
|
controlType: 'button',
|
|
6116
6218
|
classNameSuffix: 'record'
|
|
@@ -6251,8 +6353,8 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
|
6251
6353
|
if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
|
|
6252
6354
|
return Constructor;
|
|
6253
6355
|
}
|
|
6254
|
-
function _extends$
|
|
6255
|
-
_extends$
|
|
6356
|
+
function _extends$e() {
|
|
6357
|
+
_extends$e = Object.assign || function(target) {
|
|
6256
6358
|
for(var i = 1; i < arguments.length; i++){
|
|
6257
6359
|
var source = arguments[i];
|
|
6258
6360
|
for(var key in source){
|
|
@@ -6263,9 +6365,9 @@ function _extends$b() {
|
|
|
6263
6365
|
}
|
|
6264
6366
|
return target;
|
|
6265
6367
|
};
|
|
6266
|
-
return _extends$
|
|
6368
|
+
return _extends$e.apply(this, arguments);
|
|
6267
6369
|
}
|
|
6268
|
-
function _inherits$
|
|
6370
|
+
function _inherits$f(subClass, superClass) {
|
|
6269
6371
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6270
6372
|
throw new TypeError("Super expression must either be null or a function");
|
|
6271
6373
|
}
|
|
@@ -6276,14 +6378,14 @@ function _inherits$c(subClass, superClass) {
|
|
|
6276
6378
|
configurable: true
|
|
6277
6379
|
}
|
|
6278
6380
|
});
|
|
6279
|
-
if (superClass) _set_prototype_of$
|
|
6381
|
+
if (superClass) _set_prototype_of$f(subClass, superClass);
|
|
6280
6382
|
}
|
|
6281
|
-
function _set_prototype_of$
|
|
6282
|
-
_set_prototype_of$
|
|
6383
|
+
function _set_prototype_of$f(o, p) {
|
|
6384
|
+
_set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6283
6385
|
o.__proto__ = p;
|
|
6284
6386
|
return o;
|
|
6285
6387
|
};
|
|
6286
|
-
return _set_prototype_of$
|
|
6388
|
+
return _set_prototype_of$f(o, p);
|
|
6287
6389
|
}
|
|
6288
6390
|
function _ts_generator$4(thisArg, body) {
|
|
6289
6391
|
var f, y, t, _ = {
|
|
@@ -6385,10 +6487,10 @@ function _ts_generator$4(thisArg, body) {
|
|
|
6385
6487
|
*
|
|
6386
6488
|
* @category Control
|
|
6387
6489
|
*/ var Talk = /*#__PURE__*/ function(Control) {
|
|
6388
|
-
_inherits$
|
|
6490
|
+
_inherits$f(Talk, Control);
|
|
6389
6491
|
function Talk(options) {
|
|
6390
6492
|
var _this;
|
|
6391
|
-
_this = Control.call(this, _extends$
|
|
6493
|
+
_this = Control.call(this, _extends$e({}, options, {
|
|
6392
6494
|
tagName: 'span',
|
|
6393
6495
|
controlType: 'button',
|
|
6394
6496
|
classNameSuffix: 'talk'
|
|
@@ -6521,8 +6623,8 @@ function _async_to_generator$3(fn) {
|
|
|
6521
6623
|
});
|
|
6522
6624
|
};
|
|
6523
6625
|
}
|
|
6524
|
-
function _extends$
|
|
6525
|
-
_extends$
|
|
6626
|
+
function _extends$d() {
|
|
6627
|
+
_extends$d = Object.assign || function(target) {
|
|
6526
6628
|
for(var i = 1; i < arguments.length; i++){
|
|
6527
6629
|
var source = arguments[i];
|
|
6528
6630
|
for(var key in source){
|
|
@@ -6533,9 +6635,9 @@ function _extends$a() {
|
|
|
6533
6635
|
}
|
|
6534
6636
|
return target;
|
|
6535
6637
|
};
|
|
6536
|
-
return _extends$
|
|
6638
|
+
return _extends$d.apply(this, arguments);
|
|
6537
6639
|
}
|
|
6538
|
-
function _inherits$
|
|
6640
|
+
function _inherits$e(subClass, superClass) {
|
|
6539
6641
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6540
6642
|
throw new TypeError("Super expression must either be null or a function");
|
|
6541
6643
|
}
|
|
@@ -6546,14 +6648,14 @@ function _inherits$b(subClass, superClass) {
|
|
|
6546
6648
|
configurable: true
|
|
6547
6649
|
}
|
|
6548
6650
|
});
|
|
6549
|
-
if (superClass) _set_prototype_of$
|
|
6651
|
+
if (superClass) _set_prototype_of$e(subClass, superClass);
|
|
6550
6652
|
}
|
|
6551
|
-
function _set_prototype_of$
|
|
6552
|
-
_set_prototype_of$
|
|
6653
|
+
function _set_prototype_of$e(o, p) {
|
|
6654
|
+
_set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6553
6655
|
o.__proto__ = p;
|
|
6554
6656
|
return o;
|
|
6555
6657
|
};
|
|
6556
|
-
return _set_prototype_of$
|
|
6658
|
+
return _set_prototype_of$e(o, p);
|
|
6557
6659
|
}
|
|
6558
6660
|
function _ts_generator$3(thisArg, body) {
|
|
6559
6661
|
var f, y, t, _ = {
|
|
@@ -6653,10 +6755,10 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6653
6755
|
*
|
|
6654
6756
|
* @category Control
|
|
6655
6757
|
*/ var Broadcast = /*#__PURE__*/ function(Control) {
|
|
6656
|
-
_inherits$
|
|
6758
|
+
_inherits$e(Broadcast, Control);
|
|
6657
6759
|
function Broadcast(options) {
|
|
6658
6760
|
var _this;
|
|
6659
|
-
_this = Control.call(this, _extends$
|
|
6761
|
+
_this = Control.call(this, _extends$d({}, options, {
|
|
6660
6762
|
tagName: 'span',
|
|
6661
6763
|
controlType: 'button',
|
|
6662
6764
|
classNameSuffix: 'broadcast'
|
|
@@ -6751,8 +6853,8 @@ function _async_to_generator$2(fn) {
|
|
|
6751
6853
|
});
|
|
6752
6854
|
};
|
|
6753
6855
|
}
|
|
6754
|
-
function _extends$
|
|
6755
|
-
_extends$
|
|
6856
|
+
function _extends$c() {
|
|
6857
|
+
_extends$c = Object.assign || function(target) {
|
|
6756
6858
|
for(var i = 1; i < arguments.length; i++){
|
|
6757
6859
|
var source = arguments[i];
|
|
6758
6860
|
for(var key in source){
|
|
@@ -6763,9 +6865,9 @@ function _extends$9() {
|
|
|
6763
6865
|
}
|
|
6764
6866
|
return target;
|
|
6765
6867
|
};
|
|
6766
|
-
return _extends$
|
|
6868
|
+
return _extends$c.apply(this, arguments);
|
|
6767
6869
|
}
|
|
6768
|
-
function _inherits$
|
|
6870
|
+
function _inherits$d(subClass, superClass) {
|
|
6769
6871
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6770
6872
|
throw new TypeError("Super expression must either be null or a function");
|
|
6771
6873
|
}
|
|
@@ -6776,14 +6878,14 @@ function _inherits$a(subClass, superClass) {
|
|
|
6776
6878
|
configurable: true
|
|
6777
6879
|
}
|
|
6778
6880
|
});
|
|
6779
|
-
if (superClass) _set_prototype_of$
|
|
6881
|
+
if (superClass) _set_prototype_of$d(subClass, superClass);
|
|
6780
6882
|
}
|
|
6781
|
-
function _set_prototype_of$
|
|
6782
|
-
_set_prototype_of$
|
|
6883
|
+
function _set_prototype_of$d(o, p) {
|
|
6884
|
+
_set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6783
6885
|
o.__proto__ = p;
|
|
6784
6886
|
return o;
|
|
6785
6887
|
};
|
|
6786
|
-
return _set_prototype_of$
|
|
6888
|
+
return _set_prototype_of$d(o, p);
|
|
6787
6889
|
}
|
|
6788
6890
|
function _ts_generator$2(thisArg, body) {
|
|
6789
6891
|
var f, y, t, _ = {
|
|
@@ -6883,10 +6985,10 @@ function _ts_generator$2(thisArg, body) {
|
|
|
6883
6985
|
*
|
|
6884
6986
|
* @category Control
|
|
6885
6987
|
*/ var AIChat = /*#__PURE__*/ function(Control) {
|
|
6886
|
-
_inherits$
|
|
6988
|
+
_inherits$d(AIChat, Control);
|
|
6887
6989
|
function AIChat(options) {
|
|
6888
6990
|
var _this;
|
|
6889
|
-
_this = Control.call(this, _extends$
|
|
6991
|
+
_this = Control.call(this, _extends$c({}, options, {
|
|
6890
6992
|
tagName: 'span',
|
|
6891
6993
|
controlType: 'button',
|
|
6892
6994
|
classNameSuffix: 'aichat'
|
|
@@ -6952,6 +7054,340 @@ function _ts_generator$2(thisArg, body) {
|
|
|
6952
7054
|
return AIChat;
|
|
6953
7055
|
}(Control);
|
|
6954
7056
|
|
|
7057
|
+
function _extends$b() {
|
|
7058
|
+
_extends$b = Object.assign || function(target) {
|
|
7059
|
+
for(var i = 1; i < arguments.length; i++){
|
|
7060
|
+
var source = arguments[i];
|
|
7061
|
+
for(var key in source){
|
|
7062
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7063
|
+
target[key] = source[key];
|
|
7064
|
+
}
|
|
7065
|
+
}
|
|
7066
|
+
}
|
|
7067
|
+
return target;
|
|
7068
|
+
};
|
|
7069
|
+
return _extends$b.apply(this, arguments);
|
|
7070
|
+
}
|
|
7071
|
+
function _inherits$c(subClass, superClass) {
|
|
7072
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
7073
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
7074
|
+
}
|
|
7075
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
7076
|
+
constructor: {
|
|
7077
|
+
value: subClass,
|
|
7078
|
+
writable: true,
|
|
7079
|
+
configurable: true
|
|
7080
|
+
}
|
|
7081
|
+
});
|
|
7082
|
+
if (superClass) _set_prototype_of$c(subClass, superClass);
|
|
7083
|
+
}
|
|
7084
|
+
function _set_prototype_of$c(o, p) {
|
|
7085
|
+
_set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7086
|
+
o.__proto__ = p;
|
|
7087
|
+
return o;
|
|
7088
|
+
};
|
|
7089
|
+
return _set_prototype_of$c(o, p);
|
|
7090
|
+
}
|
|
7091
|
+
/**
|
|
7092
|
+
* 直播按钮控件
|
|
7093
|
+
*
|
|
7094
|
+
* 点击切换到直播模式
|
|
7095
|
+
*
|
|
7096
|
+
* @category Control
|
|
7097
|
+
*/ var Live = /*#__PURE__*/ function(Control) {
|
|
7098
|
+
_inherits$c(Live, Control);
|
|
7099
|
+
function Live(options) {
|
|
7100
|
+
var _this;
|
|
7101
|
+
var _this___options_props1;
|
|
7102
|
+
_this = Control.call(this, _extends$b({}, options, {
|
|
7103
|
+
tagName: 'span',
|
|
7104
|
+
controlType: 'button',
|
|
7105
|
+
classNameSuffix: 'live'
|
|
7106
|
+
})) || this;
|
|
7107
|
+
_this._options = options;
|
|
7108
|
+
_this._render();
|
|
7109
|
+
// 初始化时根据当前播放模式确定激活状态
|
|
7110
|
+
_this._syncActiveByUrlInfo((_this___options_props1 = _this.__options.props) == null ? void 0 : _this___options_props1.urlInfo);
|
|
7111
|
+
return _this;
|
|
7112
|
+
}
|
|
7113
|
+
var _proto = Live.prototype;
|
|
7114
|
+
/**
|
|
7115
|
+
* 根据 urlInfo 同步激活状态
|
|
7116
|
+
* 在初始化和播放地址切换后调用
|
|
7117
|
+
*/ _proto._syncActiveByUrlInfo = function _syncActiveByUrlInfo(urlInfo) {
|
|
7118
|
+
var shouldBeActive = !!(urlInfo && urlInfo.type === 'live');
|
|
7119
|
+
this.active = shouldBeActive;
|
|
7120
|
+
};
|
|
7121
|
+
_proto._render = function _render() {
|
|
7122
|
+
var _this_locale;
|
|
7123
|
+
this.$container.innerHTML = IconComponents.live({
|
|
7124
|
+
title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_LIVE) || '直播'
|
|
7125
|
+
});
|
|
7126
|
+
};
|
|
7127
|
+
/**
|
|
7128
|
+
* 销毁
|
|
7129
|
+
*/ _proto.destroy = function destroy() {
|
|
7130
|
+
Control.prototype.destroy.call(this);
|
|
7131
|
+
};
|
|
7132
|
+
/**
|
|
7133
|
+
* 点击 Control 会触发
|
|
7134
|
+
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
7135
|
+
var _this__options_onChange, _this__options;
|
|
7136
|
+
Control.prototype._onControlClick.call(this, e);
|
|
7137
|
+
// 已经是直播模式则不触发
|
|
7138
|
+
if (this.active) {
|
|
7139
|
+
return;
|
|
7140
|
+
}
|
|
7141
|
+
this.active = true;
|
|
7142
|
+
this.emit(EVENTS.control.liveChange);
|
|
7143
|
+
(_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options);
|
|
7144
|
+
};
|
|
7145
|
+
return Live;
|
|
7146
|
+
}(Control);
|
|
7147
|
+
|
|
7148
|
+
function _extends$a() {
|
|
7149
|
+
_extends$a = Object.assign || function(target) {
|
|
7150
|
+
for(var i = 1; i < arguments.length; i++){
|
|
7151
|
+
var source = arguments[i];
|
|
7152
|
+
for(var key in source){
|
|
7153
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7154
|
+
target[key] = source[key];
|
|
7155
|
+
}
|
|
7156
|
+
}
|
|
7157
|
+
}
|
|
7158
|
+
return target;
|
|
7159
|
+
};
|
|
7160
|
+
return _extends$a.apply(this, arguments);
|
|
7161
|
+
}
|
|
7162
|
+
function _inherits$b(subClass, superClass) {
|
|
7163
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
7164
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
7165
|
+
}
|
|
7166
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
7167
|
+
constructor: {
|
|
7168
|
+
value: subClass,
|
|
7169
|
+
writable: true,
|
|
7170
|
+
configurable: true
|
|
7171
|
+
}
|
|
7172
|
+
});
|
|
7173
|
+
if (superClass) _set_prototype_of$b(subClass, superClass);
|
|
7174
|
+
}
|
|
7175
|
+
function _set_prototype_of$b(o, p) {
|
|
7176
|
+
_set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7177
|
+
o.__proto__ = p;
|
|
7178
|
+
return o;
|
|
7179
|
+
};
|
|
7180
|
+
return _set_prototype_of$b(o, p);
|
|
7181
|
+
}
|
|
7182
|
+
/**
|
|
7183
|
+
* 回放下拉控件
|
|
7184
|
+
*
|
|
7185
|
+
* 鼠标移入弹出气泡,展示云存储、云录制、本地回放三个选项
|
|
7186
|
+
*
|
|
7187
|
+
* @category Control
|
|
7188
|
+
*/ var RecDropdown = /*#__PURE__*/ function(Control) {
|
|
7189
|
+
_inherits$b(RecDropdown, Control);
|
|
7190
|
+
function RecDropdown(options) {
|
|
7191
|
+
var _this;
|
|
7192
|
+
var _options_props, _this___options_props1;
|
|
7193
|
+
_this = Control.call(this, _extends$a({}, options, {
|
|
7194
|
+
tagName: 'span',
|
|
7195
|
+
controlType: 'button',
|
|
7196
|
+
classNameSuffix: 'rec-dropdown'
|
|
7197
|
+
})) || this;
|
|
7198
|
+
_this._options = options;
|
|
7199
|
+
// 初始化时根据 urlInfo 确定当前回放类型和激活状态
|
|
7200
|
+
_this._recType = options.recType || ((_options_props = options.props) == null ? void 0 : _options_props.recType) || 'cloudRec';
|
|
7201
|
+
_this._syncActiveByUrlInfo((_this___options_props1 = _this.__options.props) == null ? void 0 : _this___options_props1.urlInfo);
|
|
7202
|
+
_this._render();
|
|
7203
|
+
_this._initPicker();
|
|
7204
|
+
return _this;
|
|
7205
|
+
}
|
|
7206
|
+
var _proto = RecDropdown.prototype;
|
|
7207
|
+
/**
|
|
7208
|
+
* 根据 urlInfo 同步激活状态和回放类型
|
|
7209
|
+
* 在初始化和播放地址切换后调用
|
|
7210
|
+
*/ _proto._syncActiveByUrlInfo = function _syncActiveByUrlInfo(urlInfo) {
|
|
7211
|
+
if (urlInfo && urlInfo.type === 'rec') {
|
|
7212
|
+
var _urlInfo_searchParams1;
|
|
7213
|
+
this.active = true;
|
|
7214
|
+
if (urlInfo.recType === 'cloud' && ((_urlInfo_searchParams1 = urlInfo.searchParams) == null ? void 0 : _urlInfo_searchParams1.busType) === '7') {
|
|
7215
|
+
this._recType = 'cloudRecord';
|
|
7216
|
+
} else if (urlInfo.recType === 'cloud') {
|
|
7217
|
+
this._recType = 'cloudRec';
|
|
7218
|
+
} else {
|
|
7219
|
+
this._recType = 'rec';
|
|
7220
|
+
}
|
|
7221
|
+
this._activeOption(this._recType);
|
|
7222
|
+
} else {
|
|
7223
|
+
this.active = false;
|
|
7224
|
+
}
|
|
7225
|
+
};
|
|
7226
|
+
_proto._render = function _render() {
|
|
7227
|
+
var _this_locale;
|
|
7228
|
+
this.$container.innerHTML = IconComponents.recDropdown({
|
|
7229
|
+
title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_REC_DROPDOWN) || '回放'
|
|
7230
|
+
});
|
|
7231
|
+
};
|
|
7232
|
+
_proto._initPicker = function _initPicker() {
|
|
7233
|
+
var _this = this;
|
|
7234
|
+
this._picker = new Picker(this.$container, {
|
|
7235
|
+
getPopupContainer: function() {
|
|
7236
|
+
return Utils.isMobile ? _this.__options.rootContainer : _this.$container;
|
|
7237
|
+
},
|
|
7238
|
+
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
7239
|
+
isMobile: Utils.isMobile,
|
|
7240
|
+
wrapClassName: "" + PREFIX_CLASS + "-rec-dropdown-picker",
|
|
7241
|
+
placement: 'bottom',
|
|
7242
|
+
offset: [
|
|
7243
|
+
0,
|
|
7244
|
+
4
|
|
7245
|
+
]
|
|
7246
|
+
});
|
|
7247
|
+
this._picker.innerHTML(this._getPanelHTML());
|
|
7248
|
+
this._activeOption(this._recType);
|
|
7249
|
+
this._bindPanelEvents();
|
|
7250
|
+
};
|
|
7251
|
+
_proto._getPanelHTML = function _getPanelHTML() {
|
|
7252
|
+
var _this_locale, _this_locale1, _this_locale2;
|
|
7253
|
+
var cloudRecLabel = ((_this_locale = this.locale) == null ? void 0 : _this_locale.REC_DROPDOWN_CLOUD_REC) || '云存储';
|
|
7254
|
+
var cloudRecordLabel = ((_this_locale1 = this.locale) == null ? void 0 : _this_locale1.REC_DROPDOWN_CLOUD_RECORD) || '云录制';
|
|
7255
|
+
var localRecLabel = ((_this_locale2 = this.locale) == null ? void 0 : _this_locale2.REC_DROPDOWN_LOCAL_REC) || '本地回放';
|
|
7256
|
+
return '<div class="' + PREFIX_CLASS + '-rec-dropdown-panel">\n <ul class="' + PREFIX_CLASS + '-rec-dropdown-list">\n <li class="' + PREFIX_CLASS + '-rec-dropdown-item" data-type="cloudRec">\n <span>' + cloudRecLabel + '</span>\n </li>\n <li class="' + PREFIX_CLASS + '-rec-dropdown-item" data-type="cloudRecord">\n <span>' + cloudRecordLabel + '</span>\n </li>\n <li class="' + PREFIX_CLASS + '-rec-dropdown-item" data-type="rec">\n <span>' + localRecLabel + "</span>\n </li>\n </ul>\n </div>";
|
|
7257
|
+
};
|
|
7258
|
+
_proto._bindPanelEvents = function _bindPanelEvents() {
|
|
7259
|
+
var _this = this;
|
|
7260
|
+
this._delegation = delegate(this._picker.$body, "." + PREFIX_CLASS + "-rec-dropdown-item", 'click', function(e) {
|
|
7261
|
+
e.stopPropagation();
|
|
7262
|
+
var type = e.delegateTarget.getAttribute('data-type');
|
|
7263
|
+
if (type) {
|
|
7264
|
+
var _this__options_onChange, _this__options;
|
|
7265
|
+
_this._recType = type;
|
|
7266
|
+
_this._activeOption(type);
|
|
7267
|
+
// 设置自身为激活状态
|
|
7268
|
+
_this.active = true;
|
|
7269
|
+
_this.emit(EVENTS.control.recDropdownChange, type);
|
|
7270
|
+
(_this__options = _this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, type);
|
|
7271
|
+
_this._picker.open = false;
|
|
7272
|
+
}
|
|
7273
|
+
});
|
|
7274
|
+
};
|
|
7275
|
+
_proto._activeOption = function _activeOption(type) {
|
|
7276
|
+
var _this__picker;
|
|
7277
|
+
if ((_this__picker = this._picker) == null ? void 0 : _this__picker.$body) {
|
|
7278
|
+
var items = this._picker.$body.querySelectorAll("." + PREFIX_CLASS + "-rec-dropdown-item");
|
|
7279
|
+
items.forEach(function(item) {
|
|
7280
|
+
item.classList.remove("" + PREFIX_CLASS + "-active");
|
|
7281
|
+
});
|
|
7282
|
+
var target = this._picker.$body.querySelector("." + PREFIX_CLASS + '-rec-dropdown-item[data-type="' + type + '"]');
|
|
7283
|
+
target == null ? void 0 : target.classList.add("" + PREFIX_CLASS + "-active");
|
|
7284
|
+
}
|
|
7285
|
+
};
|
|
7286
|
+
/**
|
|
7287
|
+
* 销毁
|
|
7288
|
+
*/ _proto.destroy = function destroy() {
|
|
7289
|
+
var _this__delegation_destroy, _this__delegation;
|
|
7290
|
+
(_this__delegation = this._delegation) == null ? void 0 : (_this__delegation_destroy = _this__delegation.destroy) == null ? void 0 : _this__delegation_destroy.call(_this__delegation);
|
|
7291
|
+
this._delegation = null;
|
|
7292
|
+
if (this._picker) {
|
|
7293
|
+
this._picker.destroy();
|
|
7294
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
7295
|
+
this._picker = null;
|
|
7296
|
+
}
|
|
7297
|
+
Control.prototype.destroy.call(this);
|
|
7298
|
+
};
|
|
7299
|
+
/**
|
|
7300
|
+
* 点击 Control 会触发(移动端 click 触发 picker)
|
|
7301
|
+
*/ // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7302
|
+
_proto._onControlClick = function _onControlClick(_e) {
|
|
7303
|
+
// picker 自行处理 click/hover,这里不额外处理
|
|
7304
|
+
};
|
|
7305
|
+
return RecDropdown;
|
|
7306
|
+
}(Control);
|
|
7307
|
+
|
|
7308
|
+
function _extends$9() {
|
|
7309
|
+
_extends$9 = Object.assign || function(target) {
|
|
7310
|
+
for(var i = 1; i < arguments.length; i++){
|
|
7311
|
+
var source = arguments[i];
|
|
7312
|
+
for(var key in source){
|
|
7313
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7314
|
+
target[key] = source[key];
|
|
7315
|
+
}
|
|
7316
|
+
}
|
|
7317
|
+
}
|
|
7318
|
+
return target;
|
|
7319
|
+
};
|
|
7320
|
+
return _extends$9.apply(this, arguments);
|
|
7321
|
+
}
|
|
7322
|
+
function _inherits$a(subClass, superClass) {
|
|
7323
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
7324
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
7325
|
+
}
|
|
7326
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
7327
|
+
constructor: {
|
|
7328
|
+
value: subClass,
|
|
7329
|
+
writable: true,
|
|
7330
|
+
configurable: true
|
|
7331
|
+
}
|
|
7332
|
+
});
|
|
7333
|
+
if (superClass) _set_prototype_of$a(subClass, superClass);
|
|
7334
|
+
}
|
|
7335
|
+
function _set_prototype_of$a(o, p) {
|
|
7336
|
+
_set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7337
|
+
o.__proto__ = p;
|
|
7338
|
+
return o;
|
|
7339
|
+
};
|
|
7340
|
+
return _set_prototype_of$a(o, p);
|
|
7341
|
+
}
|
|
7342
|
+
/**
|
|
7343
|
+
* 告警消息按钮控件
|
|
7344
|
+
*
|
|
7345
|
+
* 点击弹出告警消息列表弹窗(纯触发按钮,无激活状态)
|
|
7346
|
+
*
|
|
7347
|
+
* @category Control
|
|
7348
|
+
*/ var AlarmMessage = /*#__PURE__*/ function(Control) {
|
|
7349
|
+
_inherits$a(AlarmMessage, Control);
|
|
7350
|
+
function AlarmMessage(options) {
|
|
7351
|
+
var _this;
|
|
7352
|
+
_this = Control.call(this, _extends$9({}, options, {
|
|
7353
|
+
tagName: 'span',
|
|
7354
|
+
controlType: 'button',
|
|
7355
|
+
classNameSuffix: 'alarm-message'
|
|
7356
|
+
})) || this, _this._panelOpen = false;
|
|
7357
|
+
_this._options = options;
|
|
7358
|
+
_this._render();
|
|
7359
|
+
_this.on(EVENTS.alarmMessageChange, function(open) {
|
|
7360
|
+
_this._panelOpen = open;
|
|
7361
|
+
});
|
|
7362
|
+
return _this;
|
|
7363
|
+
}
|
|
7364
|
+
var _proto = AlarmMessage.prototype;
|
|
7365
|
+
_proto._render = function _render() {
|
|
7366
|
+
var _this_locale;
|
|
7367
|
+
this.$container.innerHTML = IconComponents.alarmMessage({
|
|
7368
|
+
title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_ALARM_MESSAGE) || '消息'
|
|
7369
|
+
});
|
|
7370
|
+
};
|
|
7371
|
+
/**
|
|
7372
|
+
* 销毁
|
|
7373
|
+
*/ _proto.destroy = function destroy() {
|
|
7374
|
+
if (this._panelOpen) {
|
|
7375
|
+
this.emit(EVENTS.control.alarmMessageChange, false);
|
|
7376
|
+
}
|
|
7377
|
+
Control.prototype.destroy.call(this);
|
|
7378
|
+
};
|
|
7379
|
+
/**
|
|
7380
|
+
* 点击 Control 会触发
|
|
7381
|
+
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
7382
|
+
var _this__options_onChange, _this__options;
|
|
7383
|
+
Control.prototype._onControlClick.call(this, e);
|
|
7384
|
+
this._panelOpen = !this._panelOpen;
|
|
7385
|
+
this.emit(EVENTS.control.alarmMessageChange, this._panelOpen);
|
|
7386
|
+
(_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, this._panelOpen);
|
|
7387
|
+
};
|
|
7388
|
+
return AlarmMessage;
|
|
7389
|
+
}(Control);
|
|
7390
|
+
|
|
6955
7391
|
function _defineProperties$1(target, props) {
|
|
6956
7392
|
for(var i = 0; i < props.length; i++){
|
|
6957
7393
|
var descriptor = props[i];
|
|
@@ -7944,6 +8380,9 @@ var Controls = {
|
|
|
7944
8380
|
talk: Talk,
|
|
7945
8381
|
broadcast: Broadcast,
|
|
7946
8382
|
aiChat: AIChat,
|
|
8383
|
+
live: Live,
|
|
8384
|
+
recDropdown: RecDropdown,
|
|
8385
|
+
alarmMessage: AlarmMessage,
|
|
7947
8386
|
zoom: Zoom,
|
|
7948
8387
|
definition: Definition,
|
|
7949
8388
|
fullscreen: Fullscreen,
|
|
@@ -8477,7 +8916,10 @@ function _ts_generator$1(thisArg, body) {
|
|
|
8477
8916
|
// 需要权限的控件
|
|
8478
8917
|
var AUTH_KEY = [
|
|
8479
8918
|
'ptz',
|
|
8480
|
-
'aiChat'
|
|
8919
|
+
'aiChat',
|
|
8920
|
+
'live',
|
|
8921
|
+
'recDropdown',
|
|
8922
|
+
'alarmMessage'
|
|
8481
8923
|
];
|
|
8482
8924
|
/**
|
|
8483
8925
|
* 渲染控件
|
|
@@ -8557,7 +8999,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
8557
8999
|
}
|
|
8558
9000
|
function _renderTheme(theme, data) {
|
|
8559
9001
|
return _async_to_generator$1(function() {
|
|
8560
|
-
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1;
|
|
9002
|
+
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_urlInfo, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_controls2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1, _theme_options;
|
|
8561
9003
|
return _ts_generator$1(this, function(_state) {
|
|
8562
9004
|
switch(_state.label){
|
|
8563
9005
|
case 0:
|
|
@@ -8698,8 +9140,8 @@ function _renderTheme(theme, data) {
|
|
|
8698
9140
|
list = [].concat(((_filterThemeData_header = filterThemeData.header) == null ? void 0 : _filterThemeData_header.btnList) || [], (_filterThemeData_footer_btnList = (_filterThemeData_footer = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer.btnList) != null ? _filterThemeData_footer_btnList : []);
|
|
8699
9141
|
// FIXME: 这个逻辑实际上是有问题的
|
|
8700
9142
|
_needTimeLine = list.some(function(item) {
|
|
8701
|
-
return REC_GROUP.includes(item.iconId);
|
|
8702
|
-
});
|
|
9143
|
+
return REC_GROUP.includes(item.iconId) || item.iconId === 'recDropdown';
|
|
9144
|
+
}) && ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.type) === 'rec';
|
|
8703
9145
|
// PC 单独渲染timeLine
|
|
8704
9146
|
if (!Utils.isMobile && !(theme.options.timeLineOptions === null || theme.options.disabledTimeLine) && _needTimeLine) {
|
|
8705
9147
|
theme._recFooter = new RecFooter(theme.$container, {
|
|
@@ -8730,6 +9172,23 @@ function _renderTheme(theme, data) {
|
|
|
8730
9172
|
if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
|
|
8731
9173
|
});
|
|
8732
9174
|
}
|
|
9175
|
+
// 移动端:在 rec 控件旁渲染 alarmMessage 按钮
|
|
9176
|
+
if (theme.options.alarmMessageOptions !== null && !((_theme_controls2 = theme.controls) == null ? void 0 : _theme_controls2['alarmMessageControl'])) {
|
|
9177
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9178
|
+
theme.controls['alarmMessageControl'] = new Controls['alarmMessage'](_extends$1({
|
|
9179
|
+
rootContainer: theme.$container,
|
|
9180
|
+
getPopupContainer: function() {
|
|
9181
|
+
var _theme__mobileExtend;
|
|
9182
|
+
return (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight;
|
|
9183
|
+
},
|
|
9184
|
+
language: theme.options.language || 'zh',
|
|
9185
|
+
locales: theme.i18n.translations,
|
|
9186
|
+
sdkType: theme.options.sdkType,
|
|
9187
|
+
urlInfo: theme.urlInfo
|
|
9188
|
+
}, ((_theme_options = theme.options) == null ? void 0 : _theme_options.alarmMessageOptions) || {}, {
|
|
9189
|
+
props: props
|
|
9190
|
+
}));
|
|
9191
|
+
}
|
|
8733
9192
|
if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('timeLine')) && _needTimeLine) {
|
|
8734
9193
|
_renderTimeLine(theme, theme._mobileExtend.$content, props);
|
|
8735
9194
|
}
|
|
@@ -8740,6 +9199,10 @@ function _renderTheme(theme, data) {
|
|
|
8740
9199
|
}
|
|
8741
9200
|
theme.emit(EVENTS.control.mountedControls);
|
|
8742
9201
|
if (!theme.playing) theme._disabled(true);
|
|
9202
|
+
// 同步 loading 状态(修复:_loadingControl 创建前设置的 loading=true 不生效的问题)
|
|
9203
|
+
if (theme._loading && theme._loadingControl) {
|
|
9204
|
+
theme._loadingControl.show();
|
|
9205
|
+
}
|
|
8743
9206
|
_controlEventemitter(theme);
|
|
8744
9207
|
return [
|
|
8745
9208
|
2
|
|
@@ -10335,7 +10798,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10335
10798
|
zh: zh,
|
|
10336
10799
|
en: en
|
|
10337
10800
|
};
|
|
10338
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.
|
|
10801
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.1-beta.3';
|
|
10339
10802
|
|
|
10340
10803
|
exports.Control = Control;
|
|
10341
10804
|
exports.EVENTS = EVENTS;
|