@ezuikit/player-theme 3.0.0-beta.4 → 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/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.0.0-beta.4
3
- * Copyright (c) 2026-05-04 Ezviz-OpenBiz
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$t(subClass, superClass) {
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$t(subClass, superClass);
266
+ if (superClass) _set_prototype_of$w(subClass, superClass);
258
267
  }
259
- function _set_prototype_of$t(o, p) {
260
- _set_prototype_of$t = Object.setPrototypeOf || function setPrototypeOf(o, p) {
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$t(o, p);
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$t(Control, EventEmitter);
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$s() {
454
- _extends$s = Object.assign || function(target) {
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$s.apply(this, arguments);
474
+ return _extends$v.apply(this, arguments);
466
475
  }
467
- function _inherits$s(subClass, superClass) {
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$s(subClass, superClass);
487
+ if (superClass) _set_prototype_of$v(subClass, superClass);
479
488
  }
480
- function _set_prototype_of$s(o, p) {
481
- _set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
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$s(o, p);
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$s(Loading, Control);
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$s({}, options, {
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$r() {
535
- _extends$r = Object.assign || function(target) {
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$r.apply(this, arguments);
555
+ return _extends$u.apply(this, arguments);
547
556
  }
548
- function _inherits$r(subClass, superClass) {
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$r(subClass, superClass);
568
+ if (superClass) _set_prototype_of$u(subClass, superClass);
560
569
  }
561
- function _set_prototype_of$r(o, p) {
562
- _set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
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$r(o, p);
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$r(Poster, Control);
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$r({}, options, {
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$q() {
850
- _extends$q = Object.assign || function(target) {
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$q.apply(this, arguments);
885
+ return _extends$t.apply(this, arguments);
862
886
  }
863
- function _inherits$q(subClass, superClass) {
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,28 +895,28 @@ function _inherits$q(subClass, superClass) {
871
895
  configurable: true
872
896
  }
873
897
  });
874
- if (superClass) _set_prototype_of$q(subClass, superClass);
898
+ if (superClass) _set_prototype_of$t(subClass, superClass);
875
899
  }
876
- function _set_prototype_of$q(o, p) {
877
- _set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
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$q(o, p);
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$q(Message, Control);
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$q({}, options, {
916
+ _this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$t({}, options, {
893
917
  tagName: 'div',
894
918
  controlType: 'block'
895
- }))) || this;
919
+ }))) || this, _this._$toast = null;
896
920
  _this.options = Object.assign({}, MESSAGE_DEFAULT_OPTIONS, options);
897
921
  _this.$container.classList.add("" + PREFIX_CLASS + "-message", "" + PREFIX_CLASS + "-hide"); // 默认隐藏 `${PREFIX_CLASS}-hide`
898
922
  return _this;
@@ -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$p() {
1046
- _extends$p = Object.assign || function(target) {
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$p.apply(this, arguments);
1081
+ return _extends$s.apply(this, arguments);
1058
1082
  }
1059
- function _inherits$p(subClass, superClass) {
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$p(subClass, superClass);
1094
+ if (superClass) _set_prototype_of$s(subClass, superClass);
1071
1095
  }
1072
- function _set_prototype_of$p(o, p) {
1073
- _set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
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$p(o, p);
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$p(Play, Control);
1107
+ _inherits$s(Play, Control);
1084
1108
  function Play(options) {
1085
1109
  var _this;
1086
- _this = Control.call(this, _extends$p({}, options, {
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$o() {
1703
- _extends$o = Object.assign || function(target) {
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$o.apply(this, arguments);
1738
+ return _extends$r.apply(this, arguments);
1715
1739
  }
1716
- function _inherits$o(subClass, superClass) {
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$o(subClass, superClass);
1751
+ if (superClass) _set_prototype_of$r(subClass, superClass);
1728
1752
  }
1729
- function _set_prototype_of$o(o, p) {
1730
- _set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
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$o(o, p);
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$o(Volume, Control);
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$o({}, options, {
1777
+ _this = Control.call(this, _extends$r({}, options, {
1754
1778
  tagName: 'span',
1755
1779
  classNameSuffix: 'volume',
1756
1780
  controlType: 'button'
@@ -1764,7 +1788,7 @@ var VOLUME_DEFAULT_OPTIONS = {
1764
1788
  _this._lastVolume = _this._volume;
1765
1789
  _this._muted = !!((_this__options_props3 = _this._options.props) == null ? void 0 : _this__options_props3.muted) || false;
1766
1790
  // 轻应用私有暂时不支持调节音量
1767
- if (!(Utils.isMobile || _this._options.PLAY_TYPE === 'ezopen' || _this._options.PLAY_TYPE === 'hls')) {
1791
+ if (!(Utils.isMobile || _this._options.PLAY_TYPE === 'ezopen' || _this._options.PLAY_TYPE === 'ezhls')) {
1768
1792
  var _this__options_props4, _this__options_props5;
1769
1793
  _this.picker = new Picker(_this.$container, {
1770
1794
  getPopupContainer: function() {
@@ -1805,8 +1829,9 @@ var VOLUME_DEFAULT_OPTIONS = {
1805
1829
  }
1806
1830
  _this._updateUI();
1807
1831
  _this._addEventListener();
1808
- _this.on(EVENTS.audioCodecUnsupported, function() {
1809
- _this.disabled = true;
1832
+ _this.on(EVENTS.audioCodecUnsupported, function(flag) {
1833
+ flag = flag != null ? flag : true;
1834
+ _this.disabled = flag;
1810
1835
  });
1811
1836
  _this.on(EVENTS.volumechange, function(volume, muted) {
1812
1837
  // 接收
@@ -2409,8 +2434,8 @@ var __fullscreenProvider__ = Provider.getInstance();
2409
2434
  return Fullscreen;
2410
2435
  }();
2411
2436
 
2412
- function _extends$n() {
2413
- _extends$n = Object.assign || function(target) {
2437
+ function _extends$q() {
2438
+ _extends$q = Object.assign || function(target) {
2414
2439
  for(var i = 1; i < arguments.length; i++){
2415
2440
  var source = arguments[i];
2416
2441
  for(var key in source){
@@ -2421,9 +2446,9 @@ function _extends$n() {
2421
2446
  }
2422
2447
  return target;
2423
2448
  };
2424
- return _extends$n.apply(this, arguments);
2449
+ return _extends$q.apply(this, arguments);
2425
2450
  }
2426
- function _inherits$n(subClass, superClass) {
2451
+ function _inherits$q(subClass, superClass) {
2427
2452
  if (typeof superClass !== "function" && superClass !== null) {
2428
2453
  throw new TypeError("Super expression must either be null or a function");
2429
2454
  }
@@ -2434,24 +2459,24 @@ function _inherits$n(subClass, superClass) {
2434
2459
  configurable: true
2435
2460
  }
2436
2461
  });
2437
- if (superClass) _set_prototype_of$n(subClass, superClass);
2462
+ if (superClass) _set_prototype_of$q(subClass, superClass);
2438
2463
  }
2439
- function _set_prototype_of$n(o, p) {
2440
- _set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2464
+ function _set_prototype_of$q(o, p) {
2465
+ _set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2441
2466
  o.__proto__ = p;
2442
2467
  return o;
2443
2468
  };
2444
- return _set_prototype_of$n(o, p);
2469
+ return _set_prototype_of$q(o, p);
2445
2470
  }
2446
2471
  /**
2447
2472
  * 全屏控件
2448
2473
  * @category Control
2449
2474
  */ var Fullscreen = /*#__PURE__*/ function(Control) {
2450
- _inherits$n(Fullscreen, Control);
2475
+ _inherits$q(Fullscreen, Control);
2451
2476
  function Fullscreen(options) {
2452
2477
  var _this;
2453
2478
  var _options_props, _this_options;
2454
- _this = Control.call(this, _extends$n({
2479
+ _this = Control.call(this, _extends$q({
2455
2480
  tagName: 'span',
2456
2481
  classNameSuffix: 'fullscreen',
2457
2482
  controlType: 'button'
@@ -2516,8 +2541,8 @@ function _set_prototype_of$n(o, p) {
2516
2541
  return Fullscreen;
2517
2542
  }(Control);
2518
2543
 
2519
- function _extends$m() {
2520
- _extends$m = Object.assign || function(target) {
2544
+ function _extends$p() {
2545
+ _extends$p = Object.assign || function(target) {
2521
2546
  for(var i = 1; i < arguments.length; i++){
2522
2547
  var source = arguments[i];
2523
2548
  for(var key in source){
@@ -2528,9 +2553,9 @@ function _extends$m() {
2528
2553
  }
2529
2554
  return target;
2530
2555
  };
2531
- return _extends$m.apply(this, arguments);
2556
+ return _extends$p.apply(this, arguments);
2532
2557
  }
2533
- function _inherits$m(subClass, superClass) {
2558
+ function _inherits$p(subClass, superClass) {
2534
2559
  if (typeof superClass !== "function" && superClass !== null) {
2535
2560
  throw new TypeError("Super expression must either be null or a function");
2536
2561
  }
@@ -2541,24 +2566,24 @@ function _inherits$m(subClass, superClass) {
2541
2566
  configurable: true
2542
2567
  }
2543
2568
  });
2544
- if (superClass) _set_prototype_of$m(subClass, superClass);
2569
+ if (superClass) _set_prototype_of$p(subClass, superClass);
2545
2570
  }
2546
- function _set_prototype_of$m(o, p) {
2547
- _set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2571
+ function _set_prototype_of$p(o, p) {
2572
+ _set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2548
2573
  o.__proto__ = p;
2549
2574
  return o;
2550
2575
  };
2551
- return _set_prototype_of$m(o, p);
2576
+ return _set_prototype_of$p(o, p);
2552
2577
  }
2553
2578
  /**
2554
2579
  * 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
2555
2580
  * @category Control
2556
2581
  */ var Rec = /*#__PURE__*/ function(Control) {
2557
- _inherits$m(Rec, Control);
2582
+ _inherits$p(Rec, Control);
2558
2583
  function Rec(options) {
2559
2584
  var _this;
2560
2585
  var _options_props;
2561
- _this = Control.call(this, _extends$m({}, options, {
2586
+ _this = Control.call(this, _extends$p({}, options, {
2562
2587
  tagName: 'div',
2563
2588
  controlType: 'block',
2564
2589
  classNameSuffix: 'rec'
@@ -2835,6 +2860,12 @@ var zh = {
2835
2860
  BTN_TALK: '对讲',
2836
2861
  BTN_BROADCAST: '语音广播',
2837
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: '本地回放',
2838
2869
  BTN_ZOOM: '电子放大',
2839
2870
  BTN_3D_ZOOM: '3D定位',
2840
2871
  BTN_PTZ: '云台控制',
@@ -3107,6 +3138,12 @@ var en = {
3107
3138
  BTN_TALK: 'Intercom',
3108
3139
  BTN_BROADCAST: 'Voice broadcast',
3109
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',
3110
3147
  BTN_ZOOM: 'Electronic zoom',
3111
3148
  BTN_3D_ZOOM: '3D positioning',
3112
3149
  BTN_PTZ: 'PTZ control',
@@ -3296,6 +3333,21 @@ var en = {
3296
3333
  iconId: 'deviceName',
3297
3334
  part: 'left',
3298
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
3299
3351
  }
3300
3352
  ]
3301
3353
  },
@@ -3383,19 +3435,19 @@ var en = {
3383
3435
  isrender: 1
3384
3436
  },
3385
3437
  {
3386
- iconId: 'cloudRec',
3438
+ iconId: 'live',
3387
3439
  part: 'right',
3388
3440
  defaultActive: 0,
3389
3441
  isrender: 1
3390
3442
  },
3391
3443
  {
3392
- iconId: 'cloudRecord',
3444
+ iconId: 'recDropdown',
3393
3445
  part: 'right',
3394
3446
  defaultActive: 0,
3395
3447
  isrender: 1
3396
3448
  },
3397
3449
  {
3398
- iconId: 'rec',
3450
+ iconId: 'alarmMessage',
3399
3451
  part: 'right',
3400
3452
  defaultActive: 0,
3401
3453
  isrender: 1
@@ -3798,7 +3850,7 @@ var en = {
3798
3850
  voice: voice
3799
3851
  };
3800
3852
 
3801
- function _inherits$l(subClass, superClass) {
3853
+ function _inherits$o(subClass, superClass) {
3802
3854
  if (typeof superClass !== "function" && superClass !== null) {
3803
3855
  throw new TypeError("Super expression must either be null or a function");
3804
3856
  }
@@ -3809,20 +3861,20 @@ function _inherits$l(subClass, superClass) {
3809
3861
  configurable: true
3810
3862
  }
3811
3863
  });
3812
- if (superClass) _set_prototype_of$l(subClass, superClass);
3864
+ if (superClass) _set_prototype_of$o(subClass, superClass);
3813
3865
  }
3814
- function _set_prototype_of$l(o, p) {
3815
- _set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3866
+ function _set_prototype_of$o(o, p) {
3867
+ _set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3816
3868
  o.__proto__ = p;
3817
3869
  return o;
3818
3870
  };
3819
- return _set_prototype_of$l(o, p);
3871
+ return _set_prototype_of$o(o, p);
3820
3872
  }
3821
3873
  /**
3822
3874
  * 截图控件
3823
3875
  * @category Content
3824
3876
  */ var Content = /*#__PURE__*/ function(EventEmitter) {
3825
- _inherits$l(Content, EventEmitter);
3877
+ _inherits$o(Content, EventEmitter);
3826
3878
  function Content(options) {
3827
3879
  var _this;
3828
3880
  _this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
@@ -3937,8 +3989,8 @@ function _set_prototype_of$l(o, p) {
3937
3989
  return Content;
3938
3990
  }(EventEmitter);
3939
3991
 
3940
- function _extends$l() {
3941
- _extends$l = Object.assign || function(target) {
3992
+ function _extends$o() {
3993
+ _extends$o = Object.assign || function(target) {
3942
3994
  for(var i = 1; i < arguments.length; i++){
3943
3995
  var source = arguments[i];
3944
3996
  for(var key in source){
@@ -3949,9 +4001,9 @@ function _extends$l() {
3949
4001
  }
3950
4002
  return target;
3951
4003
  };
3952
- return _extends$l.apply(this, arguments);
4004
+ return _extends$o.apply(this, arguments);
3953
4005
  }
3954
- function _inherits$k(subClass, superClass) {
4006
+ function _inherits$n(subClass, superClass) {
3955
4007
  if (typeof superClass !== "function" && superClass !== null) {
3956
4008
  throw new TypeError("Super expression must either be null or a function");
3957
4009
  }
@@ -3962,23 +4014,23 @@ function _inherits$k(subClass, superClass) {
3962
4014
  configurable: true
3963
4015
  }
3964
4016
  });
3965
- if (superClass) _set_prototype_of$k(subClass, superClass);
4017
+ if (superClass) _set_prototype_of$n(subClass, superClass);
3966
4018
  }
3967
- function _set_prototype_of$k(o, p) {
3968
- _set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4019
+ function _set_prototype_of$n(o, p) {
4020
+ _set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3969
4021
  o.__proto__ = p;
3970
4022
  return o;
3971
4023
  };
3972
- return _set_prototype_of$k(o, p);
4024
+ return _set_prototype_of$n(o, p);
3973
4025
  }
3974
4026
  /**
3975
4027
  * 更多控件
3976
4028
  * @category Control
3977
4029
  */ var More = /*#__PURE__*/ function(Control) {
3978
- _inherits$k(More, Control);
4030
+ _inherits$n(More, Control);
3979
4031
  function More(options) {
3980
4032
  var _this;
3981
- _this = Control.call(this, _extends$l({}, options, {
4033
+ _this = Control.call(this, _extends$o({}, options, {
3982
4034
  tagName: 'span',
3983
4035
  controlType: 'button',
3984
4036
  classNameSuffix: 'more'
@@ -4088,10 +4140,10 @@ function debounce(func, wait) {
4088
4140
  * @param theme - Theme
4089
4141
  */ function _themeEventemitter(theme) {
4090
4142
  // prettier-ignore
4091
- theme == null ? void 0 : theme.on(EVENTS.audioCodecUnsupported, function() {
4143
+ theme == null ? void 0 : theme.on(EVENTS.audioCodecUnsupported, function(flag) {
4092
4144
  var _theme_controls;
4093
4145
  if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.volumeControl) {
4094
- theme.controls.volumeControl.emit(EVENTS.audioCodecUnsupported);
4146
+ theme.controls.volumeControl.emit(EVENTS.audioCodecUnsupported, flag);
4095
4147
  }
4096
4148
  });
4097
4149
  // 处理信息提示 duration 单位秒
@@ -4194,6 +4246,15 @@ function debounce(func, wait) {
4194
4246
  }
4195
4247
  });
4196
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
+ // =======================================================
4197
4258
  // 录制
4198
4259
  // =======================================================
4199
4260
  theme.on(EVENTS.recordingChange, function(recording) {
@@ -4289,7 +4350,7 @@ function debounce(func, wait) {
4289
4350
  *
4290
4351
  * @param theme - Theme
4291
4352
  */ function _controlEventemitter(theme) {
4292
- 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;
4293
4354
  // Controls
4294
4355
  if (theme._recFooter) {
4295
4356
  theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
@@ -4400,8 +4461,50 @@ function debounce(func, wait) {
4400
4461
  theme.emit(EVENTS.control.aichatDestroy);
4401
4462
  });
4402
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
+ }
4403
4506
  // 缩放控件
4404
- if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.zoomControl) {
4507
+ if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.zoomControl) {
4405
4508
  theme.controls.zoomControl.on(EVENTS.control.zoomChange, function(value, _percent, _range) {
4406
4509
  if (theme.zoom !== value) {
4407
4510
  theme.zoom = value;
@@ -4423,7 +4526,7 @@ function debounce(func, wait) {
4423
4526
  });
4424
4527
  }
4425
4528
  // 清晰度控件
4426
- if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.definitionControl) {
4529
+ if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.definitionControl) {
4427
4530
  theme.controls.definitionControl.on(EVENTS.control.definitionPanelOpenChange, function(open, definition, item) {
4428
4531
  theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, definition);
4429
4532
  theme.emit(EVENTS.control.definitionPanelOpenChange, open, definition, item);
@@ -4436,7 +4539,7 @@ function debounce(func, wait) {
4436
4539
  });
4437
4540
  }
4438
4541
  // 倍速控件
4439
- if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.speedControl) {
4542
+ if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.speedControl) {
4440
4543
  theme.controls.speedControl.on(EVENTS.control.speedPanelOpenChange, function(open, speed, item) {
4441
4544
  theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, speed);
4442
4545
  theme.emit(EVENTS.control.speedPanelOpenChange, open, speed, item);
@@ -4449,7 +4552,7 @@ function debounce(func, wait) {
4449
4552
  });
4450
4553
  }
4451
4554
  // 截图控件
4452
- if ((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.capturePictureControl) {
4555
+ if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.capturePictureControl) {
4453
4556
  theme.controls.capturePictureControl.on(EVENTS.control.capturePicture, function(options) {
4454
4557
  theme.emit(EVENTS.control.capturePicture, options);
4455
4558
  });
@@ -4458,25 +4561,25 @@ function debounce(func, wait) {
4458
4561
  });
4459
4562
  }
4460
4563
  // 全屏控件
4461
- if ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.fullscreenControl) {
4564
+ if ((_theme_controls16 = theme.controls) == null ? void 0 : _theme_controls16.fullscreenControl) {
4462
4565
  theme.controls.fullscreenControl.on(EVENTS.control.fullscreenDestroy, function() {
4463
4566
  theme.emit(EVENTS.control.fullscreenDestroy);
4464
4567
  });
4465
4568
  }
4466
4569
  // 全局全屏控件
4467
- if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.globalFullscreenControl) {
4570
+ if ((_theme_controls17 = theme.controls) == null ? void 0 : _theme_controls17.globalFullscreenControl) {
4468
4571
  theme.controls.globalFullscreenControl.on(EVENTS.control.globalFullscreenDestroy, function() {
4469
4572
  theme.emit(EVENTS.control.globalFullscreenDestroy);
4470
4573
  });
4471
4574
  }
4472
4575
  // 设备信息控件
4473
- if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.deviceControl) {
4576
+ if ((_theme_controls18 = theme.controls) == null ? void 0 : _theme_controls18.deviceControl) {
4474
4577
  theme.controls.deviceControl.on(EVENTS.control.deviceDestroy, function() {
4475
4578
  theme.emit(EVENTS.control.deviceDestroy);
4476
4579
  });
4477
4580
  }
4478
4581
  // 回放类型切换控件
4479
- if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.recControl) {
4582
+ if ((_theme_controls19 = theme.controls) == null ? void 0 : _theme_controls19.recControl) {
4480
4583
  // prettier-ignore
4481
4584
  theme.controls.recControl.on(EVENTS.control.recTypeChange, function(type) {
4482
4585
  if (theme.recType !== type) {
@@ -4497,7 +4600,7 @@ function debounce(func, wait) {
4497
4600
  });
4498
4601
  }
4499
4602
  // 时间轴控件
4500
- if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.timeLineControl) {
4603
+ if ((_theme_controls20 = theme.controls) == null ? void 0 : _theme_controls20.timeLineControl) {
4501
4604
  theme.controls.timeLineControl.on(EVENTS.control.timeLineChange, function(date) {
4502
4605
  theme.emit(EVENTS.control.timeLineChange, date);
4503
4606
  });
@@ -4514,7 +4617,7 @@ function debounce(func, wait) {
4514
4617
  });
4515
4618
  }
4516
4619
  // 日历控件
4517
- if ((_theme_controls16 = theme.controls) == null ? void 0 : _theme_controls16.dateControl) {
4620
+ if ((_theme_controls21 = theme.controls) == null ? void 0 : _theme_controls21.dateControl) {
4518
4621
  theme.controls.dateControl.on(EVENTS.control.datePanelOpenChange, function(open, date) {
4519
4622
  theme.emit(EVENTS.control.datePanelOpenChange, open, date);
4520
4623
  });
@@ -4609,8 +4712,8 @@ function _create_class$5(Constructor, protoProps, staticProps) {
4609
4712
  if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
4610
4713
  return Constructor;
4611
4714
  }
4612
- function _extends$k() {
4613
- _extends$k = Object.assign || function(target) {
4715
+ function _extends$n() {
4716
+ _extends$n = Object.assign || function(target) {
4614
4717
  for(var i = 1; i < arguments.length; i++){
4615
4718
  var source = arguments[i];
4616
4719
  for(var key in source){
@@ -4621,9 +4724,9 @@ function _extends$k() {
4621
4724
  }
4622
4725
  return target;
4623
4726
  };
4624
- return _extends$k.apply(this, arguments);
4727
+ return _extends$n.apply(this, arguments);
4625
4728
  }
4626
- function _inherits$j(subClass, superClass) {
4729
+ function _inherits$m(subClass, superClass) {
4627
4730
  if (typeof superClass !== "function" && superClass !== null) {
4628
4731
  throw new TypeError("Super expression must either be null or a function");
4629
4732
  }
@@ -4634,14 +4737,14 @@ function _inherits$j(subClass, superClass) {
4634
4737
  configurable: true
4635
4738
  }
4636
4739
  });
4637
- if (superClass) _set_prototype_of$j(subClass, superClass);
4740
+ if (superClass) _set_prototype_of$m(subClass, superClass);
4638
4741
  }
4639
- function _set_prototype_of$j(o, p) {
4640
- _set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4742
+ function _set_prototype_of$m(o, p) {
4743
+ _set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4641
4744
  o.__proto__ = p;
4642
4745
  return o;
4643
4746
  };
4644
- return _set_prototype_of$j(o, p);
4747
+ return _set_prototype_of$m(o, p);
4645
4748
  }
4646
4749
  var ZOOM_DEFAULT_OPTIONS = {
4647
4750
  open: false,
@@ -4651,10 +4754,10 @@ var ZOOM_DEFAULT_OPTIONS = {
4651
4754
  * 电子放大控件
4652
4755
  * @category Control
4653
4756
  */ var Zoom = /*#__PURE__*/ function(Control) {
4654
- _inherits$j(Zoom, Control);
4757
+ _inherits$m(Zoom, Control);
4655
4758
  function Zoom(options) {
4656
4759
  var _this;
4657
- _this = Control.call(this, _extends$k({}, options, {
4760
+ _this = Control.call(this, _extends$n({}, options, {
4658
4761
  tagName: 'span',
4659
4762
  controlType: 'button',
4660
4763
  classNameSuffix: 'zoom'
@@ -4782,8 +4885,8 @@ var ZOOM_DEFAULT_OPTIONS = {
4782
4885
  return Zoom;
4783
4886
  }(Control);
4784
4887
 
4785
- function _extends$j() {
4786
- _extends$j = Object.assign || function(target) {
4888
+ function _extends$m() {
4889
+ _extends$m = Object.assign || function(target) {
4787
4890
  for(var i = 1; i < arguments.length; i++){
4788
4891
  var source = arguments[i];
4789
4892
  for(var key in source){
@@ -4794,10 +4897,10 @@ function _extends$j() {
4794
4897
  }
4795
4898
  return target;
4796
4899
  };
4797
- return _extends$j.apply(this, arguments);
4900
+ return _extends$m.apply(this, arguments);
4798
4901
  }
4799
4902
  function __zoom(theme, container, options) {
4800
- theme.zoomUtil = new Zoom$1(container, _extends$j({}, options || {}, {
4903
+ theme.zoomUtil = new Zoom$1(container, _extends$m({}, options || {}, {
4801
4904
  min: 1,
4802
4905
  onChange: function(zoom, reset) {
4803
4906
  if (zoom !== theme._zoom) {
@@ -5022,8 +5125,8 @@ function _async_to_generator$5(fn) {
5022
5125
  });
5023
5126
  };
5024
5127
  }
5025
- function _extends$i() {
5026
- _extends$i = Object.assign || function(target) {
5128
+ function _extends$l() {
5129
+ _extends$l = Object.assign || function(target) {
5027
5130
  for(var i = 1; i < arguments.length; i++){
5028
5131
  var source = arguments[i];
5029
5132
  for(var key in source){
@@ -5034,7 +5137,7 @@ function _extends$i() {
5034
5137
  }
5035
5138
  return target;
5036
5139
  };
5037
- return _extends$i.apply(this, arguments);
5140
+ return _extends$l.apply(this, arguments);
5038
5141
  }
5039
5142
  function _ts_generator$5(thisArg, body) {
5040
5143
  var f, y, t, _ = {
@@ -5162,7 +5265,7 @@ function _ts_generator$5(thisArg, body) {
5162
5265
  }
5163
5266
  if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
5164
5267
  // TODO: 因为回放是一组, 位置以第一个位置为准
5165
- recControls.push(recControls[0] ? _extends$i({}, item, {
5268
+ recControls.push(recControls[0] ? _extends$l({}, item, {
5166
5269
  part: recControls[0].part
5167
5270
  }) : item);
5168
5271
  return false;
@@ -5185,7 +5288,7 @@ function _ts_generator$5(thisArg, body) {
5185
5288
  }
5186
5289
  if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
5187
5290
  // TODO: 因为回放是一组, 位置以第一个位置为准
5188
- recControls.push(recControls[0] ? _extends$i({}, item, {
5291
+ recControls.push(recControls[0] ? _extends$l({}, item, {
5189
5292
  part: recControls[0].part
5190
5293
  }) : item);
5191
5294
  return false;
@@ -5436,8 +5539,8 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
5436
5539
  return Component;
5437
5540
  }();
5438
5541
 
5439
- function _extends$h() {
5440
- _extends$h = Object.assign || function(target) {
5542
+ function _extends$k() {
5543
+ _extends$k = Object.assign || function(target) {
5441
5544
  for(var i = 1; i < arguments.length; i++){
5442
5545
  var source = arguments[i];
5443
5546
  for(var key in source){
@@ -5448,9 +5551,9 @@ function _extends$h() {
5448
5551
  }
5449
5552
  return target;
5450
5553
  };
5451
- return _extends$h.apply(this, arguments);
5554
+ return _extends$k.apply(this, arguments);
5452
5555
  }
5453
- function _inherits$i(subClass, superClass) {
5556
+ function _inherits$l(subClass, superClass) {
5454
5557
  if (typeof superClass !== "function" && superClass !== null) {
5455
5558
  throw new TypeError("Super expression must either be null or a function");
5456
5559
  }
@@ -5461,28 +5564,28 @@ function _inherits$i(subClass, superClass) {
5461
5564
  configurable: true
5462
5565
  }
5463
5566
  });
5464
- if (superClass) _set_prototype_of$i(subClass, superClass);
5567
+ if (superClass) _set_prototype_of$l(subClass, superClass);
5465
5568
  }
5466
- function _set_prototype_of$i(o, p) {
5467
- _set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5569
+ function _set_prototype_of$l(o, p) {
5570
+ _set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5468
5571
  o.__proto__ = p;
5469
5572
  return o;
5470
5573
  };
5471
- return _set_prototype_of$i(o, p);
5574
+ return _set_prototype_of$l(o, p);
5472
5575
  }
5473
5576
  var Footer = /*#__PURE__*/ function(Component) {
5474
- _inherits$i(Footer, Component);
5577
+ _inherits$l(Footer, Component);
5475
5578
  function Footer(options) {
5476
5579
  if (options === void 0) options = {};
5477
- return Component.call(this, _extends$h({}, options, {
5580
+ return Component.call(this, _extends$k({}, options, {
5478
5581
  cType: 'footer'
5479
5582
  })) || this;
5480
5583
  }
5481
5584
  return Footer;
5482
5585
  }(Component);
5483
5586
 
5484
- function _extends$g() {
5485
- _extends$g = Object.assign || function(target) {
5587
+ function _extends$j() {
5588
+ _extends$j = Object.assign || function(target) {
5486
5589
  for(var i = 1; i < arguments.length; i++){
5487
5590
  var source = arguments[i];
5488
5591
  for(var key in source){
@@ -5493,9 +5596,9 @@ function _extends$g() {
5493
5596
  }
5494
5597
  return target;
5495
5598
  };
5496
- return _extends$g.apply(this, arguments);
5599
+ return _extends$j.apply(this, arguments);
5497
5600
  }
5498
- function _inherits$h(subClass, superClass) {
5601
+ function _inherits$k(subClass, superClass) {
5499
5602
  if (typeof superClass !== "function" && superClass !== null) {
5500
5603
  throw new TypeError("Super expression must either be null or a function");
5501
5604
  }
@@ -5506,20 +5609,20 @@ function _inherits$h(subClass, superClass) {
5506
5609
  configurable: true
5507
5610
  }
5508
5611
  });
5509
- if (superClass) _set_prototype_of$h(subClass, superClass);
5612
+ if (superClass) _set_prototype_of$k(subClass, superClass);
5510
5613
  }
5511
- function _set_prototype_of$h(o, p) {
5512
- _set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5614
+ function _set_prototype_of$k(o, p) {
5615
+ _set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5513
5616
  o.__proto__ = p;
5514
5617
  return o;
5515
5618
  };
5516
- return _set_prototype_of$h(o, p);
5619
+ return _set_prototype_of$k(o, p);
5517
5620
  }
5518
5621
  var Header = /*#__PURE__*/ function(Component) {
5519
- _inherits$h(Header, Component);
5622
+ _inherits$k(Header, Component);
5520
5623
  function Header(options) {
5521
5624
  if (options === void 0) options = {};
5522
- return Component.call(this, _extends$g({}, options, {
5625
+ return Component.call(this, _extends$j({}, options, {
5523
5626
  cType: 'header'
5524
5627
  })) || this;
5525
5628
  }
@@ -5685,8 +5788,8 @@ function interactiveHF($container, second, callback) {
5685
5788
  };
5686
5789
  }
5687
5790
 
5688
- function _extends$f() {
5689
- _extends$f = Object.assign || function(target) {
5791
+ function _extends$i() {
5792
+ _extends$i = Object.assign || function(target) {
5690
5793
  for(var i = 1; i < arguments.length; i++){
5691
5794
  var source = arguments[i];
5692
5795
  for(var key in source){
@@ -5697,9 +5800,9 @@ function _extends$f() {
5697
5800
  }
5698
5801
  return target;
5699
5802
  };
5700
- return _extends$f.apply(this, arguments);
5803
+ return _extends$i.apply(this, arguments);
5701
5804
  }
5702
- function _inherits$g(subClass, superClass) {
5805
+ function _inherits$j(subClass, superClass) {
5703
5806
  if (typeof superClass !== "function" && superClass !== null) {
5704
5807
  throw new TypeError("Super expression must either be null or a function");
5705
5808
  }
@@ -5710,23 +5813,23 @@ function _inherits$g(subClass, superClass) {
5710
5813
  configurable: true
5711
5814
  }
5712
5815
  });
5713
- if (superClass) _set_prototype_of$g(subClass, superClass);
5816
+ if (superClass) _set_prototype_of$j(subClass, superClass);
5714
5817
  }
5715
- function _set_prototype_of$g(o, p) {
5716
- _set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5818
+ function _set_prototype_of$j(o, p) {
5819
+ _set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5717
5820
  o.__proto__ = p;
5718
5821
  return o;
5719
5822
  };
5720
- return _set_prototype_of$g(o, p);
5823
+ return _set_prototype_of$j(o, p);
5721
5824
  }
5722
5825
  /**
5723
5826
  * 全局全屏
5724
5827
  * 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
5725
5828
  * @category Control
5726
5829
  */ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
5727
- _inherits$g(GlobalFullscreen, Fullscreen);
5830
+ _inherits$j(GlobalFullscreen, Fullscreen);
5728
5831
  function GlobalFullscreen(options) {
5729
- return Fullscreen.call(this, _extends$f({}, options, {
5832
+ return Fullscreen.call(this, _extends$i({}, options, {
5730
5833
  controlType: 'button',
5731
5834
  classNameSuffix: 'global-fullscreen'
5732
5835
  })) || this;
@@ -5757,8 +5860,8 @@ function _set_prototype_of$g(o, p) {
5757
5860
  return GlobalFullscreen;
5758
5861
  }(Fullscreen);
5759
5862
 
5760
- function _extends$e() {
5761
- _extends$e = Object.assign || function(target) {
5863
+ function _extends$h() {
5864
+ _extends$h = Object.assign || function(target) {
5762
5865
  for(var i = 1; i < arguments.length; i++){
5763
5866
  var source = arguments[i];
5764
5867
  for(var key in source){
@@ -5769,9 +5872,9 @@ function _extends$e() {
5769
5872
  }
5770
5873
  return target;
5771
5874
  };
5772
- return _extends$e.apply(this, arguments);
5875
+ return _extends$h.apply(this, arguments);
5773
5876
  }
5774
- function _inherits$f(subClass, superClass) {
5877
+ function _inherits$i(subClass, superClass) {
5775
5878
  if (typeof superClass !== "function" && superClass !== null) {
5776
5879
  throw new TypeError("Super expression must either be null or a function");
5777
5880
  }
@@ -5782,23 +5885,23 @@ function _inherits$f(subClass, superClass) {
5782
5885
  configurable: true
5783
5886
  }
5784
5887
  });
5785
- if (superClass) _set_prototype_of$f(subClass, superClass);
5888
+ if (superClass) _set_prototype_of$i(subClass, superClass);
5786
5889
  }
5787
- function _set_prototype_of$f(o, p) {
5788
- _set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5789
- o.__proto__ = p;
5890
+ function _set_prototype_of$i(o, p) {
5891
+ _set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5892
+ o.__proto__ = p;
5790
5893
  return o;
5791
5894
  };
5792
- return _set_prototype_of$f(o, p);
5895
+ return _set_prototype_of$i(o, p);
5793
5896
  }
5794
5897
  /**
5795
5898
  * 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
5796
5899
  * @category Control
5797
5900
  */ var CapturePicture = /*#__PURE__*/ function(Control) {
5798
- _inherits$f(CapturePicture, Control);
5901
+ _inherits$i(CapturePicture, Control);
5799
5902
  function CapturePicture(options) {
5800
5903
  var _this;
5801
- _this = Control.call(this, _extends$e({}, options, {
5904
+ _this = Control.call(this, _extends$h({}, options, {
5802
5905
  tagName: 'span',
5803
5906
  classNameSuffix: 'capture-picture'
5804
5907
  })) || this, _this._timer = null;
@@ -5864,8 +5967,8 @@ function _create_class$4(Constructor, protoProps, staticProps) {
5864
5967
  if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
5865
5968
  return Constructor;
5866
5969
  }
5867
- function _extends$d() {
5868
- _extends$d = Object.assign || function(target) {
5970
+ function _extends$g() {
5971
+ _extends$g = Object.assign || function(target) {
5869
5972
  for(var i = 1; i < arguments.length; i++){
5870
5973
  var source = arguments[i];
5871
5974
  for(var key in source){
@@ -5876,9 +5979,9 @@ function _extends$d() {
5876
5979
  }
5877
5980
  return target;
5878
5981
  };
5879
- return _extends$d.apply(this, arguments);
5982
+ return _extends$g.apply(this, arguments);
5880
5983
  }
5881
- function _inherits$e(subClass, superClass) {
5984
+ function _inherits$h(subClass, superClass) {
5882
5985
  if (typeof superClass !== "function" && superClass !== null) {
5883
5986
  throw new TypeError("Super expression must either be null or a function");
5884
5987
  }
@@ -5889,23 +5992,23 @@ function _inherits$e(subClass, superClass) {
5889
5992
  configurable: true
5890
5993
  }
5891
5994
  });
5892
- if (superClass) _set_prototype_of$e(subClass, superClass);
5995
+ if (superClass) _set_prototype_of$h(subClass, superClass);
5893
5996
  }
5894
- function _set_prototype_of$e(o, p) {
5895
- _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5997
+ function _set_prototype_of$h(o, p) {
5998
+ _set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5896
5999
  o.__proto__ = p;
5897
6000
  return o;
5898
6001
  };
5899
- return _set_prototype_of$e(o, p);
6002
+ return _set_prototype_of$h(o, p);
5900
6003
  }
5901
6004
  /**
5902
6005
  * 云台控件
5903
6006
  * @category Control
5904
6007
  */ var Ptz = /*#__PURE__*/ function(Control) {
5905
- _inherits$e(Ptz, Control);
6008
+ _inherits$h(Ptz, Control);
5906
6009
  function Ptz(options) {
5907
6010
  var _this;
5908
- _this = Control.call(this, _extends$d({}, options, {
6011
+ _this = Control.call(this, _extends$g({}, options, {
5909
6012
  tagName: 'span',
5910
6013
  controlType: 'button',
5911
6014
  classNameSuffix: 'ptz'
@@ -5948,7 +6051,7 @@ function _set_prototype_of$e(o, p) {
5948
6051
  this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
5949
6052
  this.$panel.appendChild(this.$turntable);
5950
6053
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
5951
- this._ptzControl = new controlPtz.Ptz(this.$turntable, _extends$d({}, this._options, {
6054
+ this._ptzControl = new controlPtz.Ptz(this.$turntable, _extends$g({}, this._options, {
5952
6055
  onSpeedChange: this._onSpeedChange.bind(this),
5953
6056
  onDirection: this._onDirection.bind(this)
5954
6057
  }));
@@ -5957,7 +6060,7 @@ function _set_prototype_of$e(o, p) {
5957
6060
  };
5958
6061
  _proto.renderMobileExtend = function renderMobileExtend($container) {
5959
6062
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
5960
- if (!this._ptzControl1) this._ptzControl1 = new controlPtz.MobilePtz($container, _extends$d({}, this._options, {
6063
+ if (!this._ptzControl1) this._ptzControl1 = new controlPtz.MobilePtz($container, _extends$g({}, this._options, {
5961
6064
  onSpeedChange: this._onSpeedChange.bind(this),
5962
6065
  onDirection: this._onDirection.bind(this)
5963
6066
  }));
@@ -6060,8 +6163,8 @@ function _create_class$3(Constructor, protoProps, staticProps) {
6060
6163
  if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
6061
6164
  return Constructor;
6062
6165
  }
6063
- function _extends$c() {
6064
- _extends$c = Object.assign || function(target) {
6166
+ function _extends$f() {
6167
+ _extends$f = Object.assign || function(target) {
6065
6168
  for(var i = 1; i < arguments.length; i++){
6066
6169
  var source = arguments[i];
6067
6170
  for(var key in source){
@@ -6072,9 +6175,9 @@ function _extends$c() {
6072
6175
  }
6073
6176
  return target;
6074
6177
  };
6075
- return _extends$c.apply(this, arguments);
6178
+ return _extends$f.apply(this, arguments);
6076
6179
  }
6077
- function _inherits$d(subClass, superClass) {
6180
+ function _inherits$g(subClass, superClass) {
6078
6181
  if (typeof superClass !== "function" && superClass !== null) {
6079
6182
  throw new TypeError("Super expression must either be null or a function");
6080
6183
  }
@@ -6085,14 +6188,14 @@ function _inherits$d(subClass, superClass) {
6085
6188
  configurable: true
6086
6189
  }
6087
6190
  });
6088
- if (superClass) _set_prototype_of$d(subClass, superClass);
6191
+ if (superClass) _set_prototype_of$g(subClass, superClass);
6089
6192
  }
6090
- function _set_prototype_of$d(o, p) {
6091
- _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6193
+ function _set_prototype_of$g(o, p) {
6194
+ _set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6092
6195
  o.__proto__ = p;
6093
6196
  return o;
6094
6197
  };
6095
- return _set_prototype_of$d(o, p);
6198
+ return _set_prototype_of$g(o, p);
6096
6199
  }
6097
6200
  var RECORD_DEFAULT_OPTIONS = {
6098
6201
  maxDuration: 3600
@@ -6106,10 +6209,10 @@ var RECORD_DEFAULT_OPTIONS = {
6106
6209
  * 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
6107
6210
  * @category Control
6108
6211
  */ var Record = /*#__PURE__*/ function(Control) {
6109
- _inherits$d(Record, Control);
6212
+ _inherits$g(Record, Control);
6110
6213
  function Record(options) {
6111
6214
  var _this;
6112
- _this = Control.call(this, _extends$c({}, options, {
6215
+ _this = Control.call(this, _extends$f({}, options, {
6113
6216
  tagName: 'span',
6114
6217
  controlType: 'button',
6115
6218
  classNameSuffix: 'record'
@@ -6250,8 +6353,8 @@ function _create_class$2(Constructor, protoProps, staticProps) {
6250
6353
  if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
6251
6354
  return Constructor;
6252
6355
  }
6253
- function _extends$b() {
6254
- _extends$b = Object.assign || function(target) {
6356
+ function _extends$e() {
6357
+ _extends$e = Object.assign || function(target) {
6255
6358
  for(var i = 1; i < arguments.length; i++){
6256
6359
  var source = arguments[i];
6257
6360
  for(var key in source){
@@ -6262,9 +6365,9 @@ function _extends$b() {
6262
6365
  }
6263
6366
  return target;
6264
6367
  };
6265
- return _extends$b.apply(this, arguments);
6368
+ return _extends$e.apply(this, arguments);
6266
6369
  }
6267
- function _inherits$c(subClass, superClass) {
6370
+ function _inherits$f(subClass, superClass) {
6268
6371
  if (typeof superClass !== "function" && superClass !== null) {
6269
6372
  throw new TypeError("Super expression must either be null or a function");
6270
6373
  }
@@ -6275,14 +6378,14 @@ function _inherits$c(subClass, superClass) {
6275
6378
  configurable: true
6276
6379
  }
6277
6380
  });
6278
- if (superClass) _set_prototype_of$c(subClass, superClass);
6381
+ if (superClass) _set_prototype_of$f(subClass, superClass);
6279
6382
  }
6280
- function _set_prototype_of$c(o, p) {
6281
- _set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6383
+ function _set_prototype_of$f(o, p) {
6384
+ _set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6282
6385
  o.__proto__ = p;
6283
6386
  return o;
6284
6387
  };
6285
- return _set_prototype_of$c(o, p);
6388
+ return _set_prototype_of$f(o, p);
6286
6389
  }
6287
6390
  function _ts_generator$4(thisArg, body) {
6288
6391
  var f, y, t, _ = {
@@ -6384,10 +6487,10 @@ function _ts_generator$4(thisArg, body) {
6384
6487
  *
6385
6488
  * @category Control
6386
6489
  */ var Talk = /*#__PURE__*/ function(Control) {
6387
- _inherits$c(Talk, Control);
6490
+ _inherits$f(Talk, Control);
6388
6491
  function Talk(options) {
6389
6492
  var _this;
6390
- _this = Control.call(this, _extends$b({}, options, {
6493
+ _this = Control.call(this, _extends$e({}, options, {
6391
6494
  tagName: 'span',
6392
6495
  controlType: 'button',
6393
6496
  classNameSuffix: 'talk'
@@ -6520,8 +6623,8 @@ function _async_to_generator$3(fn) {
6520
6623
  });
6521
6624
  };
6522
6625
  }
6523
- function _extends$a() {
6524
- _extends$a = Object.assign || function(target) {
6626
+ function _extends$d() {
6627
+ _extends$d = Object.assign || function(target) {
6525
6628
  for(var i = 1; i < arguments.length; i++){
6526
6629
  var source = arguments[i];
6527
6630
  for(var key in source){
@@ -6532,9 +6635,9 @@ function _extends$a() {
6532
6635
  }
6533
6636
  return target;
6534
6637
  };
6535
- return _extends$a.apply(this, arguments);
6638
+ return _extends$d.apply(this, arguments);
6536
6639
  }
6537
- function _inherits$b(subClass, superClass) {
6640
+ function _inherits$e(subClass, superClass) {
6538
6641
  if (typeof superClass !== "function" && superClass !== null) {
6539
6642
  throw new TypeError("Super expression must either be null or a function");
6540
6643
  }
@@ -6545,14 +6648,14 @@ function _inherits$b(subClass, superClass) {
6545
6648
  configurable: true
6546
6649
  }
6547
6650
  });
6548
- if (superClass) _set_prototype_of$b(subClass, superClass);
6651
+ if (superClass) _set_prototype_of$e(subClass, superClass);
6549
6652
  }
6550
- function _set_prototype_of$b(o, p) {
6551
- _set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6653
+ function _set_prototype_of$e(o, p) {
6654
+ _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6552
6655
  o.__proto__ = p;
6553
6656
  return o;
6554
6657
  };
6555
- return _set_prototype_of$b(o, p);
6658
+ return _set_prototype_of$e(o, p);
6556
6659
  }
6557
6660
  function _ts_generator$3(thisArg, body) {
6558
6661
  var f, y, t, _ = {
@@ -6652,10 +6755,10 @@ function _ts_generator$3(thisArg, body) {
6652
6755
  *
6653
6756
  * @category Control
6654
6757
  */ var Broadcast = /*#__PURE__*/ function(Control) {
6655
- _inherits$b(Broadcast, Control);
6758
+ _inherits$e(Broadcast, Control);
6656
6759
  function Broadcast(options) {
6657
6760
  var _this;
6658
- _this = Control.call(this, _extends$a({}, options, {
6761
+ _this = Control.call(this, _extends$d({}, options, {
6659
6762
  tagName: 'span',
6660
6763
  controlType: 'button',
6661
6764
  classNameSuffix: 'broadcast'
@@ -6750,8 +6853,8 @@ function _async_to_generator$2(fn) {
6750
6853
  });
6751
6854
  };
6752
6855
  }
6753
- function _extends$9() {
6754
- _extends$9 = Object.assign || function(target) {
6856
+ function _extends$c() {
6857
+ _extends$c = Object.assign || function(target) {
6755
6858
  for(var i = 1; i < arguments.length; i++){
6756
6859
  var source = arguments[i];
6757
6860
  for(var key in source){
@@ -6762,9 +6865,9 @@ function _extends$9() {
6762
6865
  }
6763
6866
  return target;
6764
6867
  };
6765
- return _extends$9.apply(this, arguments);
6868
+ return _extends$c.apply(this, arguments);
6766
6869
  }
6767
- function _inherits$a(subClass, superClass) {
6870
+ function _inherits$d(subClass, superClass) {
6768
6871
  if (typeof superClass !== "function" && superClass !== null) {
6769
6872
  throw new TypeError("Super expression must either be null or a function");
6770
6873
  }
@@ -6775,14 +6878,14 @@ function _inherits$a(subClass, superClass) {
6775
6878
  configurable: true
6776
6879
  }
6777
6880
  });
6778
- if (superClass) _set_prototype_of$a(subClass, superClass);
6881
+ if (superClass) _set_prototype_of$d(subClass, superClass);
6779
6882
  }
6780
- function _set_prototype_of$a(o, p) {
6781
- _set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6883
+ function _set_prototype_of$d(o, p) {
6884
+ _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6782
6885
  o.__proto__ = p;
6783
6886
  return o;
6784
6887
  };
6785
- return _set_prototype_of$a(o, p);
6888
+ return _set_prototype_of$d(o, p);
6786
6889
  }
6787
6890
  function _ts_generator$2(thisArg, body) {
6788
6891
  var f, y, t, _ = {
@@ -6882,10 +6985,10 @@ function _ts_generator$2(thisArg, body) {
6882
6985
  *
6883
6986
  * @category Control
6884
6987
  */ var AIChat = /*#__PURE__*/ function(Control) {
6885
- _inherits$a(AIChat, Control);
6988
+ _inherits$d(AIChat, Control);
6886
6989
  function AIChat(options) {
6887
6990
  var _this;
6888
- _this = Control.call(this, _extends$9({}, options, {
6991
+ _this = Control.call(this, _extends$c({}, options, {
6889
6992
  tagName: 'span',
6890
6993
  controlType: 'button',
6891
6994
  classNameSuffix: 'aichat'
@@ -6951,6 +7054,340 @@ function _ts_generator$2(thisArg, body) {
6951
7054
  return AIChat;
6952
7055
  }(Control);
6953
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
+
6954
7391
  function _defineProperties$1(target, props) {
6955
7392
  for(var i = 0; i < props.length; i++){
6956
7393
  var descriptor = props[i];
@@ -7943,6 +8380,9 @@ var Controls = {
7943
8380
  talk: Talk,
7944
8381
  broadcast: Broadcast,
7945
8382
  aiChat: AIChat,
8383
+ live: Live,
8384
+ recDropdown: RecDropdown,
8385
+ alarmMessage: AlarmMessage,
7946
8386
  zoom: Zoom,
7947
8387
  definition: Definition,
7948
8388
  fullscreen: Fullscreen,
@@ -8476,7 +8916,10 @@ function _ts_generator$1(thisArg, body) {
8476
8916
  // 需要权限的控件
8477
8917
  var AUTH_KEY = [
8478
8918
  'ptz',
8479
- 'aiChat'
8919
+ 'aiChat',
8920
+ 'live',
8921
+ 'recDropdown',
8922
+ 'alarmMessage'
8480
8923
  ];
8481
8924
  /**
8482
8925
  * 渲染控件
@@ -8556,7 +8999,7 @@ function _renderControls(theme, $container, btnList, props) {
8556
8999
  }
8557
9000
  function _renderTheme(theme, data) {
8558
9001
  return _async_to_generator$1(function() {
8559
- 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;
8560
9003
  return _ts_generator$1(this, function(_state) {
8561
9004
  switch(_state.label){
8562
9005
  case 0:
@@ -8697,8 +9140,8 @@ function _renderTheme(theme, data) {
8697
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 : []);
8698
9141
  // FIXME: 这个逻辑实际上是有问题的
8699
9142
  _needTimeLine = list.some(function(item) {
8700
- return REC_GROUP.includes(item.iconId);
8701
- });
9143
+ return REC_GROUP.includes(item.iconId) || item.iconId === 'recDropdown';
9144
+ }) && ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.type) === 'rec';
8702
9145
  // PC 单独渲染timeLine
8703
9146
  if (!Utils.isMobile && !(theme.options.timeLineOptions === null || theme.options.disabledTimeLine) && _needTimeLine) {
8704
9147
  theme._recFooter = new RecFooter(theme.$container, {
@@ -8729,6 +9172,23 @@ function _renderTheme(theme, data) {
8729
9172
  if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
8730
9173
  });
8731
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
+ }
8732
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) {
8733
9193
  _renderTimeLine(theme, theme._mobileExtend.$content, props);
8734
9194
  }
@@ -8739,6 +9199,10 @@ function _renderTheme(theme, data) {
8739
9199
  }
8740
9200
  theme.emit(EVENTS.control.mountedControls);
8741
9201
  if (!theme.playing) theme._disabled(true);
9202
+ // 同步 loading 状态(修复:_loadingControl 创建前设置的 loading=true 不生效的问题)
9203
+ if (theme._loading && theme._loadingControl) {
9204
+ theme._loadingControl.show();
9205
+ }
8742
9206
  _controlEventemitter(theme);
8743
9207
  return [
8744
9208
  2
@@ -9137,7 +9601,7 @@ var THEME_DEFAULT_OPTIONS = {
9137
9601
  // 标准流暂时仅支持 TEMPLATES 中的配置, 多余的的展示不生效(如电子放大是不支持的等等), 待版本更新才能支持
9138
9602
  // prettier-ignore
9139
9603
  _this._renderTheme(// hls 不支持自定义
9140
- options.type === 'hls' ? hlsLiveTemplate : // flv mp4 支持自定义 themeData
9604
+ options.type === 'hls' || options.type === 'ezhls' ? hlsLiveTemplate : // flv mp4 支持自定义 themeData
9141
9605
  [
9142
9606
  'flv',
9143
9607
  'mp4'
@@ -10334,7 +10798,7 @@ var THEME_DEFAULT_OPTIONS = {
10334
10798
  zh: zh,
10335
10799
  en: en
10336
10800
  };
10337
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.0-beta.4';
10801
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.1-beta.3';
10338
10802
 
10339
10803
  exports.Control = Control;
10340
10804
  exports.EVENTS = EVENTS;