@ezuikit/player-theme 3.0.2-beta.1 → 3.0.2-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.2-beta.1
3
- * Copyright (c) 2026-05-15 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.0.2-beta.3
3
+ * Copyright (c) 2026-05-20 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;
@@ -367,7 +376,7 @@ function _set_prototype_of$t(o, p) {
367
376
  if (this._camelCaseName) {
368
377
  this.emit("Control." + this._camelCaseName + "Destroy");
369
378
  }
370
- if (((_this___options = this.__options) == null ? void 0 : _this___options.controlType) !== 'block') this.$container.addEventListener('dblclick', this._onDBlClick);
379
+ if (((_this___options = this.__options) == null ? void 0 : _this___options.controlType) !== 'block') this.$container.removeEventListener('dblclick', this._onDBlClick);
371
380
  this._active = false;
372
381
  this.removeAllListeners();
373
382
  (_this_$container = this.$container) == null ? void 0 : (_this_$container_remove = _this_$container.remove) == null ? void 0 : _this_$container_remove.call(_this_$container);
@@ -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,25 +895,25 @@ 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
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$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'
@@ -2410,8 +2434,8 @@ var __fullscreenProvider__ = Provider.getInstance();
2410
2434
  return Fullscreen;
2411
2435
  }();
2412
2436
 
2413
- function _extends$n() {
2414
- _extends$n = Object.assign || function(target) {
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$n.apply(this, arguments);
2449
+ return _extends$q.apply(this, arguments);
2426
2450
  }
2427
- function _inherits$n(subClass, superClass) {
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$n(subClass, superClass);
2462
+ if (superClass) _set_prototype_of$q(subClass, superClass);
2439
2463
  }
2440
- function _set_prototype_of$n(o, p) {
2441
- _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) {
2442
2466
  o.__proto__ = p;
2443
2467
  return o;
2444
2468
  };
2445
- return _set_prototype_of$n(o, p);
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$n(Fullscreen, Control);
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$n({
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$m() {
2521
- _extends$m = Object.assign || function(target) {
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$m.apply(this, arguments);
2556
+ return _extends$p.apply(this, arguments);
2533
2557
  }
2534
- function _inherits$m(subClass, superClass) {
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$m(subClass, superClass);
2569
+ if (superClass) _set_prototype_of$p(subClass, superClass);
2546
2570
  }
2547
- function _set_prototype_of$m(o, p) {
2548
- _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) {
2549
2573
  o.__proto__ = p;
2550
2574
  return o;
2551
2575
  };
2552
- return _set_prototype_of$m(o, p);
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$m(Rec, Control);
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$m({}, options, {
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',
@@ -3303,6 +3339,21 @@ var en = {
3303
3339
  iconId: 'deviceName',
3304
3340
  part: 'left',
3305
3341
  isrender: 1
3342
+ },
3343
+ {
3344
+ iconId: 'live',
3345
+ part: 'right',
3346
+ isrender: 1
3347
+ },
3348
+ {
3349
+ iconId: 'recDropdown',
3350
+ part: 'right',
3351
+ isrender: 1
3352
+ },
3353
+ {
3354
+ iconId: 'alarmMessage',
3355
+ part: 'right',
3356
+ isrender: 1
3306
3357
  }
3307
3358
  ]
3308
3359
  },
@@ -3390,19 +3441,19 @@ var en = {
3390
3441
  isrender: 1
3391
3442
  },
3392
3443
  {
3393
- iconId: 'cloudRec',
3444
+ iconId: 'live',
3394
3445
  part: 'right',
3395
3446
  defaultActive: 0,
3396
3447
  isrender: 1
3397
3448
  },
3398
3449
  {
3399
- iconId: 'cloudRecord',
3450
+ iconId: 'recDropdown',
3400
3451
  part: 'right',
3401
3452
  defaultActive: 0,
3402
3453
  isrender: 1
3403
3454
  },
3404
3455
  {
3405
- iconId: 'rec',
3456
+ iconId: 'alarmMessage',
3406
3457
  part: 'right',
3407
3458
  defaultActive: 0,
3408
3459
  isrender: 1
@@ -3805,7 +3856,7 @@ var en = {
3805
3856
  voice: voice
3806
3857
  };
3807
3858
 
3808
- function _inherits$l(subClass, superClass) {
3859
+ function _inherits$o(subClass, superClass) {
3809
3860
  if (typeof superClass !== "function" && superClass !== null) {
3810
3861
  throw new TypeError("Super expression must either be null or a function");
3811
3862
  }
@@ -3816,20 +3867,20 @@ function _inherits$l(subClass, superClass) {
3816
3867
  configurable: true
3817
3868
  }
3818
3869
  });
3819
- if (superClass) _set_prototype_of$l(subClass, superClass);
3870
+ if (superClass) _set_prototype_of$o(subClass, superClass);
3820
3871
  }
3821
- function _set_prototype_of$l(o, p) {
3822
- _set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3872
+ function _set_prototype_of$o(o, p) {
3873
+ _set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3823
3874
  o.__proto__ = p;
3824
3875
  return o;
3825
3876
  };
3826
- return _set_prototype_of$l(o, p);
3877
+ return _set_prototype_of$o(o, p);
3827
3878
  }
3828
3879
  /**
3829
3880
  * 截图控件
3830
3881
  * @category Content
3831
3882
  */ var Content = /*#__PURE__*/ function(EventEmitter) {
3832
- _inherits$l(Content, EventEmitter);
3883
+ _inherits$o(Content, EventEmitter);
3833
3884
  function Content(options) {
3834
3885
  var _this;
3835
3886
  _this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
@@ -3944,8 +3995,8 @@ function _set_prototype_of$l(o, p) {
3944
3995
  return Content;
3945
3996
  }(EventEmitter);
3946
3997
 
3947
- function _extends$l() {
3948
- _extends$l = Object.assign || function(target) {
3998
+ function _extends$o() {
3999
+ _extends$o = Object.assign || function(target) {
3949
4000
  for(var i = 1; i < arguments.length; i++){
3950
4001
  var source = arguments[i];
3951
4002
  for(var key in source){
@@ -3956,9 +4007,9 @@ function _extends$l() {
3956
4007
  }
3957
4008
  return target;
3958
4009
  };
3959
- return _extends$l.apply(this, arguments);
4010
+ return _extends$o.apply(this, arguments);
3960
4011
  }
3961
- function _inherits$k(subClass, superClass) {
4012
+ function _inherits$n(subClass, superClass) {
3962
4013
  if (typeof superClass !== "function" && superClass !== null) {
3963
4014
  throw new TypeError("Super expression must either be null or a function");
3964
4015
  }
@@ -3969,23 +4020,23 @@ function _inherits$k(subClass, superClass) {
3969
4020
  configurable: true
3970
4021
  }
3971
4022
  });
3972
- if (superClass) _set_prototype_of$k(subClass, superClass);
4023
+ if (superClass) _set_prototype_of$n(subClass, superClass);
3973
4024
  }
3974
- function _set_prototype_of$k(o, p) {
3975
- _set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4025
+ function _set_prototype_of$n(o, p) {
4026
+ _set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3976
4027
  o.__proto__ = p;
3977
4028
  return o;
3978
4029
  };
3979
- return _set_prototype_of$k(o, p);
4030
+ return _set_prototype_of$n(o, p);
3980
4031
  }
3981
4032
  /**
3982
4033
  * 更多控件
3983
4034
  * @category Control
3984
4035
  */ var More = /*#__PURE__*/ function(Control) {
3985
- _inherits$k(More, Control);
4036
+ _inherits$n(More, Control);
3986
4037
  function More(options) {
3987
4038
  var _this;
3988
- _this = Control.call(this, _extends$l({}, options, {
4039
+ _this = Control.call(this, _extends$o({}, options, {
3989
4040
  tagName: 'span',
3990
4041
  controlType: 'button',
3991
4042
  classNameSuffix: 'more'
@@ -4201,6 +4252,15 @@ function debounce(func, wait) {
4201
4252
  }
4202
4253
  });
4203
4254
  // =======================================================
4255
+ // 告警消息
4256
+ // =======================================================
4257
+ theme.on(EVENTS.alarmMessageChange, function(active) {
4258
+ var _theme_controls;
4259
+ if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.alarmMessageControl) {
4260
+ theme.controls.alarmMessageControl._panelOpen = active;
4261
+ }
4262
+ });
4263
+ // =======================================================
4204
4264
  // 录制
4205
4265
  // =======================================================
4206
4266
  theme.on(EVENTS.recordingChange, function(recording) {
@@ -4296,7 +4356,7 @@ function debounce(func, wait) {
4296
4356
  *
4297
4357
  * @param theme - Theme
4298
4358
  */ function _controlEventemitter(theme) {
4299
- 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;
4359
+ 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;
4300
4360
  // Controls
4301
4361
  if (theme._recFooter) {
4302
4362
  theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
@@ -4407,8 +4467,50 @@ function debounce(func, wait) {
4407
4467
  theme.emit(EVENTS.control.aichatDestroy);
4408
4468
  });
4409
4469
  }
4470
+ // 直播按钮
4471
+ if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.liveControl) {
4472
+ theme.controls.liveControl.on(EVENTS.control.liveChange, function() {
4473
+ var _theme_controls;
4474
+ // 直接设置回放下拉控件为非激活状态
4475
+ if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.recDropdownControl) {
4476
+ theme.controls.recDropdownControl.active = false;
4477
+ }
4478
+ theme.emit(EVENTS.control.liveChange);
4479
+ });
4480
+ }
4481
+ // 回放下拉
4482
+ if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.recDropdownControl) {
4483
+ theme.controls.recDropdownControl.on(EVENTS.control.recDropdownChange, function(type) {
4484
+ var _theme_controls;
4485
+ // 直接设置直播控件为非激活状态
4486
+ if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.liveControl) {
4487
+ theme.controls.liveControl.active = false;
4488
+ }
4489
+ theme.emit(EVENTS.control.recDropdownChange, type);
4490
+ });
4491
+ }
4492
+ // 告警消息
4493
+ if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.alarmMessageControl) {
4494
+ theme.controls.alarmMessageControl.on(EVENTS.control.alarmMessageChange, function(active) {
4495
+ theme.emit(EVENTS.control.alarmMessageChange, active);
4496
+ });
4497
+ }
4498
+ // 播放地址切换后同步 Live/RecDropdown 激活状态
4499
+ // changePlayUrl 后 urlInfo 已更新,firstFrameDisplay 表示新地址播放成功
4500
+ if (((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.liveControl) || ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.recDropdownControl)) {
4501
+ theme.on(EVENTS.firstFrameDisplay, function() {
4502
+ var _theme_controls, _theme_controls1;
4503
+ var urlInfo = theme.urlInfo;
4504
+ if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.liveControl) {
4505
+ theme.controls.liveControl._syncActiveByUrlInfo(urlInfo);
4506
+ }
4507
+ if ((_theme_controls1 = theme.controls) == null ? void 0 : _theme_controls1.recDropdownControl) {
4508
+ theme.controls.recDropdownControl._syncActiveByUrlInfo(urlInfo);
4509
+ }
4510
+ });
4511
+ }
4410
4512
  // 缩放控件
4411
- if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.zoomControl) {
4513
+ if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.zoomControl) {
4412
4514
  theme.controls.zoomControl.on(EVENTS.control.zoomChange, function(value, _percent, _range) {
4413
4515
  if (theme.zoom !== value) {
4414
4516
  theme.zoom = value;
@@ -4430,7 +4532,7 @@ function debounce(func, wait) {
4430
4532
  });
4431
4533
  }
4432
4534
  // 清晰度控件
4433
- if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.definitionControl) {
4535
+ if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.definitionControl) {
4434
4536
  theme.controls.definitionControl.on(EVENTS.control.definitionPanelOpenChange, function(open, definition, item) {
4435
4537
  theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, definition);
4436
4538
  theme.emit(EVENTS.control.definitionPanelOpenChange, open, definition, item);
@@ -4443,7 +4545,7 @@ function debounce(func, wait) {
4443
4545
  });
4444
4546
  }
4445
4547
  // 倍速控件
4446
- if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.speedControl) {
4548
+ if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.speedControl) {
4447
4549
  theme.controls.speedControl.on(EVENTS.control.speedPanelOpenChange, function(open, speed, item) {
4448
4550
  theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, speed);
4449
4551
  theme.emit(EVENTS.control.speedPanelOpenChange, open, speed, item);
@@ -4456,7 +4558,7 @@ function debounce(func, wait) {
4456
4558
  });
4457
4559
  }
4458
4560
  // 截图控件
4459
- if ((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.capturePictureControl) {
4561
+ if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.capturePictureControl) {
4460
4562
  theme.controls.capturePictureControl.on(EVENTS.control.capturePicture, function(options) {
4461
4563
  theme.emit(EVENTS.control.capturePicture, options);
4462
4564
  });
@@ -4465,25 +4567,25 @@ function debounce(func, wait) {
4465
4567
  });
4466
4568
  }
4467
4569
  // 全屏控件
4468
- if ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.fullscreenControl) {
4570
+ if ((_theme_controls16 = theme.controls) == null ? void 0 : _theme_controls16.fullscreenControl) {
4469
4571
  theme.controls.fullscreenControl.on(EVENTS.control.fullscreenDestroy, function() {
4470
4572
  theme.emit(EVENTS.control.fullscreenDestroy);
4471
4573
  });
4472
4574
  }
4473
4575
  // 全局全屏控件
4474
- if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.globalFullscreenControl) {
4576
+ if ((_theme_controls17 = theme.controls) == null ? void 0 : _theme_controls17.globalFullscreenControl) {
4475
4577
  theme.controls.globalFullscreenControl.on(EVENTS.control.globalFullscreenDestroy, function() {
4476
4578
  theme.emit(EVENTS.control.globalFullscreenDestroy);
4477
4579
  });
4478
4580
  }
4479
4581
  // 设备信息控件
4480
- if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.deviceControl) {
4582
+ if ((_theme_controls18 = theme.controls) == null ? void 0 : _theme_controls18.deviceControl) {
4481
4583
  theme.controls.deviceControl.on(EVENTS.control.deviceDestroy, function() {
4482
4584
  theme.emit(EVENTS.control.deviceDestroy);
4483
4585
  });
4484
4586
  }
4485
4587
  // 回放类型切换控件
4486
- if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.recControl) {
4588
+ if ((_theme_controls19 = theme.controls) == null ? void 0 : _theme_controls19.recControl) {
4487
4589
  // prettier-ignore
4488
4590
  theme.controls.recControl.on(EVENTS.control.recTypeChange, function(type) {
4489
4591
  if (theme.recType !== type) {
@@ -4504,7 +4606,7 @@ function debounce(func, wait) {
4504
4606
  });
4505
4607
  }
4506
4608
  // 时间轴控件
4507
- if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.timeLineControl) {
4609
+ if ((_theme_controls20 = theme.controls) == null ? void 0 : _theme_controls20.timeLineControl) {
4508
4610
  theme.controls.timeLineControl.on(EVENTS.control.timeLineChange, function(date) {
4509
4611
  theme.emit(EVENTS.control.timeLineChange, date);
4510
4612
  });
@@ -4521,7 +4623,7 @@ function debounce(func, wait) {
4521
4623
  });
4522
4624
  }
4523
4625
  // 日历控件
4524
- if ((_theme_controls16 = theme.controls) == null ? void 0 : _theme_controls16.dateControl) {
4626
+ if ((_theme_controls21 = theme.controls) == null ? void 0 : _theme_controls21.dateControl) {
4525
4627
  theme.controls.dateControl.on(EVENTS.control.datePanelOpenChange, function(open, date) {
4526
4628
  theme.emit(EVENTS.control.datePanelOpenChange, open, date);
4527
4629
  });
@@ -4616,8 +4718,8 @@ function _create_class$5(Constructor, protoProps, staticProps) {
4616
4718
  if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
4617
4719
  return Constructor;
4618
4720
  }
4619
- function _extends$k() {
4620
- _extends$k = Object.assign || function(target) {
4721
+ function _extends$n() {
4722
+ _extends$n = Object.assign || function(target) {
4621
4723
  for(var i = 1; i < arguments.length; i++){
4622
4724
  var source = arguments[i];
4623
4725
  for(var key in source){
@@ -4628,9 +4730,9 @@ function _extends$k() {
4628
4730
  }
4629
4731
  return target;
4630
4732
  };
4631
- return _extends$k.apply(this, arguments);
4733
+ return _extends$n.apply(this, arguments);
4632
4734
  }
4633
- function _inherits$j(subClass, superClass) {
4735
+ function _inherits$m(subClass, superClass) {
4634
4736
  if (typeof superClass !== "function" && superClass !== null) {
4635
4737
  throw new TypeError("Super expression must either be null or a function");
4636
4738
  }
@@ -4641,14 +4743,14 @@ function _inherits$j(subClass, superClass) {
4641
4743
  configurable: true
4642
4744
  }
4643
4745
  });
4644
- if (superClass) _set_prototype_of$j(subClass, superClass);
4746
+ if (superClass) _set_prototype_of$m(subClass, superClass);
4645
4747
  }
4646
- function _set_prototype_of$j(o, p) {
4647
- _set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4748
+ function _set_prototype_of$m(o, p) {
4749
+ _set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4648
4750
  o.__proto__ = p;
4649
4751
  return o;
4650
4752
  };
4651
- return _set_prototype_of$j(o, p);
4753
+ return _set_prototype_of$m(o, p);
4652
4754
  }
4653
4755
  var ZOOM_DEFAULT_OPTIONS = {
4654
4756
  open: false,
@@ -4658,10 +4760,10 @@ var ZOOM_DEFAULT_OPTIONS = {
4658
4760
  * 电子放大控件
4659
4761
  * @category Control
4660
4762
  */ var Zoom = /*#__PURE__*/ function(Control) {
4661
- _inherits$j(Zoom, Control);
4763
+ _inherits$m(Zoom, Control);
4662
4764
  function Zoom(options) {
4663
4765
  var _this;
4664
- _this = Control.call(this, _extends$k({}, options, {
4766
+ _this = Control.call(this, _extends$n({}, options, {
4665
4767
  tagName: 'span',
4666
4768
  controlType: 'button',
4667
4769
  classNameSuffix: 'zoom'
@@ -4789,8 +4891,8 @@ var ZOOM_DEFAULT_OPTIONS = {
4789
4891
  return Zoom;
4790
4892
  }(Control);
4791
4893
 
4792
- function _extends$j() {
4793
- _extends$j = Object.assign || function(target) {
4894
+ function _extends$m() {
4895
+ _extends$m = Object.assign || function(target) {
4794
4896
  for(var i = 1; i < arguments.length; i++){
4795
4897
  var source = arguments[i];
4796
4898
  for(var key in source){
@@ -4801,10 +4903,10 @@ function _extends$j() {
4801
4903
  }
4802
4904
  return target;
4803
4905
  };
4804
- return _extends$j.apply(this, arguments);
4906
+ return _extends$m.apply(this, arguments);
4805
4907
  }
4806
4908
  function __zoom(theme, container, options) {
4807
- theme.zoomUtil = new Zoom$1(container, _extends$j({}, options || {}, {
4909
+ theme.zoomUtil = new Zoom$1(container, _extends$m({}, options || {}, {
4808
4910
  min: 1,
4809
4911
  onChange: function(zoom, reset) {
4810
4912
  if (zoom !== theme._zoom) {
@@ -5029,8 +5131,8 @@ function _async_to_generator$5(fn) {
5029
5131
  });
5030
5132
  };
5031
5133
  }
5032
- function _extends$i() {
5033
- _extends$i = Object.assign || function(target) {
5134
+ function _extends$l() {
5135
+ _extends$l = Object.assign || function(target) {
5034
5136
  for(var i = 1; i < arguments.length; i++){
5035
5137
  var source = arguments[i];
5036
5138
  for(var key in source){
@@ -5041,7 +5143,7 @@ function _extends$i() {
5041
5143
  }
5042
5144
  return target;
5043
5145
  };
5044
- return _extends$i.apply(this, arguments);
5146
+ return _extends$l.apply(this, arguments);
5045
5147
  }
5046
5148
  function _ts_generator$5(thisArg, body) {
5047
5149
  var f, y, t, _ = {
@@ -5169,7 +5271,7 @@ function _ts_generator$5(thisArg, body) {
5169
5271
  }
5170
5272
  if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
5171
5273
  // TODO: 因为回放是一组, 位置以第一个位置为准
5172
- recControls.push(recControls[0] ? _extends$i({}, item, {
5274
+ recControls.push(recControls[0] ? _extends$l({}, item, {
5173
5275
  part: recControls[0].part
5174
5276
  }) : item);
5175
5277
  return false;
@@ -5192,7 +5294,7 @@ function _ts_generator$5(thisArg, body) {
5192
5294
  }
5193
5295
  if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
5194
5296
  // TODO: 因为回放是一组, 位置以第一个位置为准
5195
- recControls.push(recControls[0] ? _extends$i({}, item, {
5297
+ recControls.push(recControls[0] ? _extends$l({}, item, {
5196
5298
  part: recControls[0].part
5197
5299
  }) : item);
5198
5300
  return false;
@@ -5443,8 +5545,8 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
5443
5545
  return Component;
5444
5546
  }();
5445
5547
 
5446
- function _extends$h() {
5447
- _extends$h = Object.assign || function(target) {
5548
+ function _extends$k() {
5549
+ _extends$k = Object.assign || function(target) {
5448
5550
  for(var i = 1; i < arguments.length; i++){
5449
5551
  var source = arguments[i];
5450
5552
  for(var key in source){
@@ -5455,9 +5557,9 @@ function _extends$h() {
5455
5557
  }
5456
5558
  return target;
5457
5559
  };
5458
- return _extends$h.apply(this, arguments);
5560
+ return _extends$k.apply(this, arguments);
5459
5561
  }
5460
- function _inherits$i(subClass, superClass) {
5562
+ function _inherits$l(subClass, superClass) {
5461
5563
  if (typeof superClass !== "function" && superClass !== null) {
5462
5564
  throw new TypeError("Super expression must either be null or a function");
5463
5565
  }
@@ -5468,28 +5570,28 @@ function _inherits$i(subClass, superClass) {
5468
5570
  configurable: true
5469
5571
  }
5470
5572
  });
5471
- if (superClass) _set_prototype_of$i(subClass, superClass);
5573
+ if (superClass) _set_prototype_of$l(subClass, superClass);
5472
5574
  }
5473
- function _set_prototype_of$i(o, p) {
5474
- _set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5575
+ function _set_prototype_of$l(o, p) {
5576
+ _set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5475
5577
  o.__proto__ = p;
5476
5578
  return o;
5477
5579
  };
5478
- return _set_prototype_of$i(o, p);
5580
+ return _set_prototype_of$l(o, p);
5479
5581
  }
5480
5582
  var Footer = /*#__PURE__*/ function(Component) {
5481
- _inherits$i(Footer, Component);
5583
+ _inherits$l(Footer, Component);
5482
5584
  function Footer(options) {
5483
5585
  if (options === void 0) options = {};
5484
- return Component.call(this, _extends$h({}, options, {
5586
+ return Component.call(this, _extends$k({}, options, {
5485
5587
  cType: 'footer'
5486
5588
  })) || this;
5487
5589
  }
5488
5590
  return Footer;
5489
5591
  }(Component);
5490
5592
 
5491
- function _extends$g() {
5492
- _extends$g = Object.assign || function(target) {
5593
+ function _extends$j() {
5594
+ _extends$j = Object.assign || function(target) {
5493
5595
  for(var i = 1; i < arguments.length; i++){
5494
5596
  var source = arguments[i];
5495
5597
  for(var key in source){
@@ -5500,9 +5602,9 @@ function _extends$g() {
5500
5602
  }
5501
5603
  return target;
5502
5604
  };
5503
- return _extends$g.apply(this, arguments);
5605
+ return _extends$j.apply(this, arguments);
5504
5606
  }
5505
- function _inherits$h(subClass, superClass) {
5607
+ function _inherits$k(subClass, superClass) {
5506
5608
  if (typeof superClass !== "function" && superClass !== null) {
5507
5609
  throw new TypeError("Super expression must either be null or a function");
5508
5610
  }
@@ -5513,20 +5615,20 @@ function _inherits$h(subClass, superClass) {
5513
5615
  configurable: true
5514
5616
  }
5515
5617
  });
5516
- if (superClass) _set_prototype_of$h(subClass, superClass);
5618
+ if (superClass) _set_prototype_of$k(subClass, superClass);
5517
5619
  }
5518
- function _set_prototype_of$h(o, p) {
5519
- _set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5620
+ function _set_prototype_of$k(o, p) {
5621
+ _set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5520
5622
  o.__proto__ = p;
5521
5623
  return o;
5522
5624
  };
5523
- return _set_prototype_of$h(o, p);
5625
+ return _set_prototype_of$k(o, p);
5524
5626
  }
5525
5627
  var Header = /*#__PURE__*/ function(Component) {
5526
- _inherits$h(Header, Component);
5628
+ _inherits$k(Header, Component);
5527
5629
  function Header(options) {
5528
5630
  if (options === void 0) options = {};
5529
- return Component.call(this, _extends$g({}, options, {
5631
+ return Component.call(this, _extends$j({}, options, {
5530
5632
  cType: 'header'
5531
5633
  })) || this;
5532
5634
  }
@@ -5692,8 +5794,8 @@ function interactiveHF($container, second, callback) {
5692
5794
  };
5693
5795
  }
5694
5796
 
5695
- function _extends$f() {
5696
- _extends$f = Object.assign || function(target) {
5797
+ function _extends$i() {
5798
+ _extends$i = Object.assign || function(target) {
5697
5799
  for(var i = 1; i < arguments.length; i++){
5698
5800
  var source = arguments[i];
5699
5801
  for(var key in source){
@@ -5704,9 +5806,9 @@ function _extends$f() {
5704
5806
  }
5705
5807
  return target;
5706
5808
  };
5707
- return _extends$f.apply(this, arguments);
5809
+ return _extends$i.apply(this, arguments);
5708
5810
  }
5709
- function _inherits$g(subClass, superClass) {
5811
+ function _inherits$j(subClass, superClass) {
5710
5812
  if (typeof superClass !== "function" && superClass !== null) {
5711
5813
  throw new TypeError("Super expression must either be null or a function");
5712
5814
  }
@@ -5717,23 +5819,23 @@ function _inherits$g(subClass, superClass) {
5717
5819
  configurable: true
5718
5820
  }
5719
5821
  });
5720
- if (superClass) _set_prototype_of$g(subClass, superClass);
5822
+ if (superClass) _set_prototype_of$j(subClass, superClass);
5721
5823
  }
5722
- function _set_prototype_of$g(o, p) {
5723
- _set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5824
+ function _set_prototype_of$j(o, p) {
5825
+ _set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5724
5826
  o.__proto__ = p;
5725
5827
  return o;
5726
5828
  };
5727
- return _set_prototype_of$g(o, p);
5829
+ return _set_prototype_of$j(o, p);
5728
5830
  }
5729
5831
  /**
5730
5832
  * 全局全屏
5731
5833
  * 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
5732
5834
  * @category Control
5733
5835
  */ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
5734
- _inherits$g(GlobalFullscreen, Fullscreen);
5836
+ _inherits$j(GlobalFullscreen, Fullscreen);
5735
5837
  function GlobalFullscreen(options) {
5736
- return Fullscreen.call(this, _extends$f({}, options, {
5838
+ return Fullscreen.call(this, _extends$i({}, options, {
5737
5839
  controlType: 'button',
5738
5840
  classNameSuffix: 'global-fullscreen'
5739
5841
  })) || this;
@@ -5764,8 +5866,8 @@ function _set_prototype_of$g(o, p) {
5764
5866
  return GlobalFullscreen;
5765
5867
  }(Fullscreen);
5766
5868
 
5767
- function _extends$e() {
5768
- _extends$e = Object.assign || function(target) {
5869
+ function _extends$h() {
5870
+ _extends$h = Object.assign || function(target) {
5769
5871
  for(var i = 1; i < arguments.length; i++){
5770
5872
  var source = arguments[i];
5771
5873
  for(var key in source){
@@ -5776,9 +5878,9 @@ function _extends$e() {
5776
5878
  }
5777
5879
  return target;
5778
5880
  };
5779
- return _extends$e.apply(this, arguments);
5881
+ return _extends$h.apply(this, arguments);
5780
5882
  }
5781
- function _inherits$f(subClass, superClass) {
5883
+ function _inherits$i(subClass, superClass) {
5782
5884
  if (typeof superClass !== "function" && superClass !== null) {
5783
5885
  throw new TypeError("Super expression must either be null or a function");
5784
5886
  }
@@ -5789,23 +5891,23 @@ function _inherits$f(subClass, superClass) {
5789
5891
  configurable: true
5790
5892
  }
5791
5893
  });
5792
- if (superClass) _set_prototype_of$f(subClass, superClass);
5894
+ if (superClass) _set_prototype_of$i(subClass, superClass);
5793
5895
  }
5794
- function _set_prototype_of$f(o, p) {
5795
- _set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5896
+ function _set_prototype_of$i(o, p) {
5897
+ _set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5796
5898
  o.__proto__ = p;
5797
5899
  return o;
5798
5900
  };
5799
- return _set_prototype_of$f(o, p);
5901
+ return _set_prototype_of$i(o, p);
5800
5902
  }
5801
5903
  /**
5802
5904
  * 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
5803
5905
  * @category Control
5804
5906
  */ var CapturePicture = /*#__PURE__*/ function(Control) {
5805
- _inherits$f(CapturePicture, Control);
5907
+ _inherits$i(CapturePicture, Control);
5806
5908
  function CapturePicture(options) {
5807
5909
  var _this;
5808
- _this = Control.call(this, _extends$e({}, options, {
5910
+ _this = Control.call(this, _extends$h({}, options, {
5809
5911
  tagName: 'span',
5810
5912
  classNameSuffix: 'capture-picture'
5811
5913
  })) || this, _this._timer = null;
@@ -5871,8 +5973,8 @@ function _create_class$4(Constructor, protoProps, staticProps) {
5871
5973
  if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
5872
5974
  return Constructor;
5873
5975
  }
5874
- function _extends$d() {
5875
- _extends$d = Object.assign || function(target) {
5976
+ function _extends$g() {
5977
+ _extends$g = Object.assign || function(target) {
5876
5978
  for(var i = 1; i < arguments.length; i++){
5877
5979
  var source = arguments[i];
5878
5980
  for(var key in source){
@@ -5883,9 +5985,9 @@ function _extends$d() {
5883
5985
  }
5884
5986
  return target;
5885
5987
  };
5886
- return _extends$d.apply(this, arguments);
5988
+ return _extends$g.apply(this, arguments);
5887
5989
  }
5888
- function _inherits$e(subClass, superClass) {
5990
+ function _inherits$h(subClass, superClass) {
5889
5991
  if (typeof superClass !== "function" && superClass !== null) {
5890
5992
  throw new TypeError("Super expression must either be null or a function");
5891
5993
  }
@@ -5896,23 +5998,23 @@ function _inherits$e(subClass, superClass) {
5896
5998
  configurable: true
5897
5999
  }
5898
6000
  });
5899
- if (superClass) _set_prototype_of$e(subClass, superClass);
6001
+ if (superClass) _set_prototype_of$h(subClass, superClass);
5900
6002
  }
5901
- function _set_prototype_of$e(o, p) {
5902
- _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6003
+ function _set_prototype_of$h(o, p) {
6004
+ _set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5903
6005
  o.__proto__ = p;
5904
6006
  return o;
5905
6007
  };
5906
- return _set_prototype_of$e(o, p);
6008
+ return _set_prototype_of$h(o, p);
5907
6009
  }
5908
6010
  /**
5909
6011
  * 云台控件
5910
6012
  * @category Control
5911
6013
  */ var Ptz = /*#__PURE__*/ function(Control) {
5912
- _inherits$e(Ptz, Control);
6014
+ _inherits$h(Ptz, Control);
5913
6015
  function Ptz(options) {
5914
6016
  var _this;
5915
- _this = Control.call(this, _extends$d({}, options, {
6017
+ _this = Control.call(this, _extends$g({}, options, {
5916
6018
  tagName: 'span',
5917
6019
  controlType: 'button',
5918
6020
  classNameSuffix: 'ptz'
@@ -5955,7 +6057,7 @@ function _set_prototype_of$e(o, p) {
5955
6057
  this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
5956
6058
  this.$panel.appendChild(this.$turntable);
5957
6059
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
5958
- this._ptzControl = new controlPtz.Ptz(this.$turntable, _extends$d({}, this._options, {
6060
+ this._ptzControl = new controlPtz.Ptz(this.$turntable, _extends$g({}, this._options, {
5959
6061
  onSpeedChange: this._onSpeedChange.bind(this),
5960
6062
  onDirection: this._onDirection.bind(this)
5961
6063
  }));
@@ -5964,7 +6066,7 @@ function _set_prototype_of$e(o, p) {
5964
6066
  };
5965
6067
  _proto.renderMobileExtend = function renderMobileExtend($container) {
5966
6068
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
5967
- if (!this._ptzControl1) this._ptzControl1 = new controlPtz.MobilePtz($container, _extends$d({}, this._options, {
6069
+ if (!this._ptzControl1) this._ptzControl1 = new controlPtz.MobilePtz($container, _extends$g({}, this._options, {
5968
6070
  onSpeedChange: this._onSpeedChange.bind(this),
5969
6071
  onDirection: this._onDirection.bind(this)
5970
6072
  }));
@@ -6067,8 +6169,8 @@ function _create_class$3(Constructor, protoProps, staticProps) {
6067
6169
  if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
6068
6170
  return Constructor;
6069
6171
  }
6070
- function _extends$c() {
6071
- _extends$c = Object.assign || function(target) {
6172
+ function _extends$f() {
6173
+ _extends$f = Object.assign || function(target) {
6072
6174
  for(var i = 1; i < arguments.length; i++){
6073
6175
  var source = arguments[i];
6074
6176
  for(var key in source){
@@ -6079,9 +6181,9 @@ function _extends$c() {
6079
6181
  }
6080
6182
  return target;
6081
6183
  };
6082
- return _extends$c.apply(this, arguments);
6184
+ return _extends$f.apply(this, arguments);
6083
6185
  }
6084
- function _inherits$d(subClass, superClass) {
6186
+ function _inherits$g(subClass, superClass) {
6085
6187
  if (typeof superClass !== "function" && superClass !== null) {
6086
6188
  throw new TypeError("Super expression must either be null or a function");
6087
6189
  }
@@ -6092,14 +6194,14 @@ function _inherits$d(subClass, superClass) {
6092
6194
  configurable: true
6093
6195
  }
6094
6196
  });
6095
- if (superClass) _set_prototype_of$d(subClass, superClass);
6197
+ if (superClass) _set_prototype_of$g(subClass, superClass);
6096
6198
  }
6097
- function _set_prototype_of$d(o, p) {
6098
- _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6199
+ function _set_prototype_of$g(o, p) {
6200
+ _set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6099
6201
  o.__proto__ = p;
6100
6202
  return o;
6101
6203
  };
6102
- return _set_prototype_of$d(o, p);
6204
+ return _set_prototype_of$g(o, p);
6103
6205
  }
6104
6206
  var RECORD_DEFAULT_OPTIONS = {
6105
6207
  maxDuration: 3600
@@ -6113,10 +6215,10 @@ var RECORD_DEFAULT_OPTIONS = {
6113
6215
  * 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
6114
6216
  * @category Control
6115
6217
  */ var Record = /*#__PURE__*/ function(Control) {
6116
- _inherits$d(Record, Control);
6218
+ _inherits$g(Record, Control);
6117
6219
  function Record(options) {
6118
6220
  var _this;
6119
- _this = Control.call(this, _extends$c({}, options, {
6221
+ _this = Control.call(this, _extends$f({}, options, {
6120
6222
  tagName: 'span',
6121
6223
  controlType: 'button',
6122
6224
  classNameSuffix: 'record'
@@ -6257,8 +6359,8 @@ function _create_class$2(Constructor, protoProps, staticProps) {
6257
6359
  if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
6258
6360
  return Constructor;
6259
6361
  }
6260
- function _extends$b() {
6261
- _extends$b = Object.assign || function(target) {
6362
+ function _extends$e() {
6363
+ _extends$e = Object.assign || function(target) {
6262
6364
  for(var i = 1; i < arguments.length; i++){
6263
6365
  var source = arguments[i];
6264
6366
  for(var key in source){
@@ -6269,9 +6371,9 @@ function _extends$b() {
6269
6371
  }
6270
6372
  return target;
6271
6373
  };
6272
- return _extends$b.apply(this, arguments);
6374
+ return _extends$e.apply(this, arguments);
6273
6375
  }
6274
- function _inherits$c(subClass, superClass) {
6376
+ function _inherits$f(subClass, superClass) {
6275
6377
  if (typeof superClass !== "function" && superClass !== null) {
6276
6378
  throw new TypeError("Super expression must either be null or a function");
6277
6379
  }
@@ -6282,14 +6384,14 @@ function _inherits$c(subClass, superClass) {
6282
6384
  configurable: true
6283
6385
  }
6284
6386
  });
6285
- if (superClass) _set_prototype_of$c(subClass, superClass);
6387
+ if (superClass) _set_prototype_of$f(subClass, superClass);
6286
6388
  }
6287
- function _set_prototype_of$c(o, p) {
6288
- _set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6389
+ function _set_prototype_of$f(o, p) {
6390
+ _set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6289
6391
  o.__proto__ = p;
6290
6392
  return o;
6291
6393
  };
6292
- return _set_prototype_of$c(o, p);
6394
+ return _set_prototype_of$f(o, p);
6293
6395
  }
6294
6396
  function _ts_generator$4(thisArg, body) {
6295
6397
  var f, y, t, _ = {
@@ -6391,10 +6493,10 @@ function _ts_generator$4(thisArg, body) {
6391
6493
  *
6392
6494
  * @category Control
6393
6495
  */ var Talk = /*#__PURE__*/ function(Control) {
6394
- _inherits$c(Talk, Control);
6496
+ _inherits$f(Talk, Control);
6395
6497
  function Talk(options) {
6396
6498
  var _this;
6397
- _this = Control.call(this, _extends$b({}, options, {
6499
+ _this = Control.call(this, _extends$e({}, options, {
6398
6500
  tagName: 'span',
6399
6501
  controlType: 'button',
6400
6502
  classNameSuffix: 'talk'
@@ -6527,8 +6629,8 @@ function _async_to_generator$3(fn) {
6527
6629
  });
6528
6630
  };
6529
6631
  }
6530
- function _extends$a() {
6531
- _extends$a = Object.assign || function(target) {
6632
+ function _extends$d() {
6633
+ _extends$d = Object.assign || function(target) {
6532
6634
  for(var i = 1; i < arguments.length; i++){
6533
6635
  var source = arguments[i];
6534
6636
  for(var key in source){
@@ -6539,9 +6641,9 @@ function _extends$a() {
6539
6641
  }
6540
6642
  return target;
6541
6643
  };
6542
- return _extends$a.apply(this, arguments);
6644
+ return _extends$d.apply(this, arguments);
6543
6645
  }
6544
- function _inherits$b(subClass, superClass) {
6646
+ function _inherits$e(subClass, superClass) {
6545
6647
  if (typeof superClass !== "function" && superClass !== null) {
6546
6648
  throw new TypeError("Super expression must either be null or a function");
6547
6649
  }
@@ -6552,14 +6654,14 @@ function _inherits$b(subClass, superClass) {
6552
6654
  configurable: true
6553
6655
  }
6554
6656
  });
6555
- if (superClass) _set_prototype_of$b(subClass, superClass);
6657
+ if (superClass) _set_prototype_of$e(subClass, superClass);
6556
6658
  }
6557
- function _set_prototype_of$b(o, p) {
6558
- _set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6659
+ function _set_prototype_of$e(o, p) {
6660
+ _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6559
6661
  o.__proto__ = p;
6560
6662
  return o;
6561
6663
  };
6562
- return _set_prototype_of$b(o, p);
6664
+ return _set_prototype_of$e(o, p);
6563
6665
  }
6564
6666
  function _ts_generator$3(thisArg, body) {
6565
6667
  var f, y, t, _ = {
@@ -6659,10 +6761,10 @@ function _ts_generator$3(thisArg, body) {
6659
6761
  *
6660
6762
  * @category Control
6661
6763
  */ var Broadcast = /*#__PURE__*/ function(Control) {
6662
- _inherits$b(Broadcast, Control);
6764
+ _inherits$e(Broadcast, Control);
6663
6765
  function Broadcast(options) {
6664
6766
  var _this;
6665
- _this = Control.call(this, _extends$a({}, options, {
6767
+ _this = Control.call(this, _extends$d({}, options, {
6666
6768
  tagName: 'span',
6667
6769
  controlType: 'button',
6668
6770
  classNameSuffix: 'broadcast'
@@ -6757,8 +6859,8 @@ function _async_to_generator$2(fn) {
6757
6859
  });
6758
6860
  };
6759
6861
  }
6760
- function _extends$9() {
6761
- _extends$9 = Object.assign || function(target) {
6862
+ function _extends$c() {
6863
+ _extends$c = Object.assign || function(target) {
6762
6864
  for(var i = 1; i < arguments.length; i++){
6763
6865
  var source = arguments[i];
6764
6866
  for(var key in source){
@@ -6769,9 +6871,9 @@ function _extends$9() {
6769
6871
  }
6770
6872
  return target;
6771
6873
  };
6772
- return _extends$9.apply(this, arguments);
6874
+ return _extends$c.apply(this, arguments);
6773
6875
  }
6774
- function _inherits$a(subClass, superClass) {
6876
+ function _inherits$d(subClass, superClass) {
6775
6877
  if (typeof superClass !== "function" && superClass !== null) {
6776
6878
  throw new TypeError("Super expression must either be null or a function");
6777
6879
  }
@@ -6782,14 +6884,14 @@ function _inherits$a(subClass, superClass) {
6782
6884
  configurable: true
6783
6885
  }
6784
6886
  });
6785
- if (superClass) _set_prototype_of$a(subClass, superClass);
6887
+ if (superClass) _set_prototype_of$d(subClass, superClass);
6786
6888
  }
6787
- function _set_prototype_of$a(o, p) {
6788
- _set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6889
+ function _set_prototype_of$d(o, p) {
6890
+ _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6789
6891
  o.__proto__ = p;
6790
6892
  return o;
6791
6893
  };
6792
- return _set_prototype_of$a(o, p);
6894
+ return _set_prototype_of$d(o, p);
6793
6895
  }
6794
6896
  function _ts_generator$2(thisArg, body) {
6795
6897
  var f, y, t, _ = {
@@ -6889,10 +6991,10 @@ function _ts_generator$2(thisArg, body) {
6889
6991
  *
6890
6992
  * @category Control
6891
6993
  */ var AIChat = /*#__PURE__*/ function(Control) {
6892
- _inherits$a(AIChat, Control);
6994
+ _inherits$d(AIChat, Control);
6893
6995
  function AIChat(options) {
6894
6996
  var _this;
6895
- _this = Control.call(this, _extends$9({}, options, {
6997
+ _this = Control.call(this, _extends$c({}, options, {
6896
6998
  tagName: 'span',
6897
6999
  controlType: 'button',
6898
7000
  classNameSuffix: 'aichat'
@@ -6958,6 +7060,348 @@ function _ts_generator$2(thisArg, body) {
6958
7060
  return AIChat;
6959
7061
  }(Control);
6960
7062
 
7063
+ function _extends$b() {
7064
+ _extends$b = Object.assign || function(target) {
7065
+ for(var i = 1; i < arguments.length; i++){
7066
+ var source = arguments[i];
7067
+ for(var key in source){
7068
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7069
+ target[key] = source[key];
7070
+ }
7071
+ }
7072
+ }
7073
+ return target;
7074
+ };
7075
+ return _extends$b.apply(this, arguments);
7076
+ }
7077
+ function _inherits$c(subClass, superClass) {
7078
+ if (typeof superClass !== "function" && superClass !== null) {
7079
+ throw new TypeError("Super expression must either be null or a function");
7080
+ }
7081
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
7082
+ constructor: {
7083
+ value: subClass,
7084
+ writable: true,
7085
+ configurable: true
7086
+ }
7087
+ });
7088
+ if (superClass) _set_prototype_of$c(subClass, superClass);
7089
+ }
7090
+ function _set_prototype_of$c(o, p) {
7091
+ _set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7092
+ o.__proto__ = p;
7093
+ return o;
7094
+ };
7095
+ return _set_prototype_of$c(o, p);
7096
+ }
7097
+ /**
7098
+ * 直播按钮控件
7099
+ *
7100
+ * 点击切换到直播模式
7101
+ *
7102
+ * @category Control
7103
+ */ var Live = /*#__PURE__*/ function(Control) {
7104
+ _inherits$c(Live, Control);
7105
+ function Live(options) {
7106
+ var _this;
7107
+ var _this___options_props1;
7108
+ _this = Control.call(this, _extends$b({}, options, {
7109
+ tagName: 'span',
7110
+ controlType: 'button',
7111
+ classNameSuffix: 'live'
7112
+ })) || this;
7113
+ _this._options = options;
7114
+ _this._render();
7115
+ // H5 端不展示直播/回放切换按钮
7116
+ if (Utils.isMobile) {
7117
+ _this.$container.style.display = 'none';
7118
+ }
7119
+ // 初始化时根据当前播放模式确定激活状态
7120
+ _this._syncActiveByUrlInfo((_this___options_props1 = _this.__options.props) == null ? void 0 : _this___options_props1.urlInfo);
7121
+ return _this;
7122
+ }
7123
+ var _proto = Live.prototype;
7124
+ /**
7125
+ * 根据 urlInfo 同步激活状态
7126
+ * 在初始化和播放地址切换后调用
7127
+ */ _proto._syncActiveByUrlInfo = function _syncActiveByUrlInfo(urlInfo) {
7128
+ var shouldBeActive = !!(urlInfo && urlInfo.type === 'live');
7129
+ this.active = shouldBeActive;
7130
+ };
7131
+ _proto._render = function _render() {
7132
+ var _this_locale;
7133
+ this.$container.innerHTML = IconComponents.live({
7134
+ title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_LIVE) || '直播'
7135
+ });
7136
+ };
7137
+ /**
7138
+ * 销毁
7139
+ */ _proto.destroy = function destroy() {
7140
+ Control.prototype.destroy.call(this);
7141
+ };
7142
+ /**
7143
+ * 点击 Control 会触发
7144
+ */ _proto._onControlClick = function _onControlClick(e) {
7145
+ var _this__options_onChange, _this__options;
7146
+ Control.prototype._onControlClick.call(this, e);
7147
+ // 已经是直播模式则不触发
7148
+ if (this.active) {
7149
+ return;
7150
+ }
7151
+ this.active = true;
7152
+ this.emit(EVENTS.control.liveChange);
7153
+ (_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options);
7154
+ };
7155
+ return Live;
7156
+ }(Control);
7157
+
7158
+ function _extends$a() {
7159
+ _extends$a = Object.assign || function(target) {
7160
+ for(var i = 1; i < arguments.length; i++){
7161
+ var source = arguments[i];
7162
+ for(var key in source){
7163
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7164
+ target[key] = source[key];
7165
+ }
7166
+ }
7167
+ }
7168
+ return target;
7169
+ };
7170
+ return _extends$a.apply(this, arguments);
7171
+ }
7172
+ function _inherits$b(subClass, superClass) {
7173
+ if (typeof superClass !== "function" && superClass !== null) {
7174
+ throw new TypeError("Super expression must either be null or a function");
7175
+ }
7176
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
7177
+ constructor: {
7178
+ value: subClass,
7179
+ writable: true,
7180
+ configurable: true
7181
+ }
7182
+ });
7183
+ if (superClass) _set_prototype_of$b(subClass, superClass);
7184
+ }
7185
+ function _set_prototype_of$b(o, p) {
7186
+ _set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7187
+ o.__proto__ = p;
7188
+ return o;
7189
+ };
7190
+ return _set_prototype_of$b(o, p);
7191
+ }
7192
+ /**
7193
+ * 回放下拉控件
7194
+ *
7195
+ * 鼠标移入弹出气泡,展示云存储、云录制、本地回放三个选项
7196
+ *
7197
+ * @category Control
7198
+ */ var RecDropdown = /*#__PURE__*/ function(Control) {
7199
+ _inherits$b(RecDropdown, Control);
7200
+ function RecDropdown(options) {
7201
+ var _this;
7202
+ var _options_props, _this___options_props1;
7203
+ _this = Control.call(this, _extends$a({}, options, {
7204
+ tagName: 'span',
7205
+ controlType: 'button',
7206
+ classNameSuffix: 'rec-dropdown'
7207
+ })) || this;
7208
+ _this._options = options;
7209
+ // H5 端不展示直播/回放切换按钮
7210
+ if (Utils.isMobile) {
7211
+ _this.$container.style.display = 'none';
7212
+ }
7213
+ // 初始化时根据 urlInfo 确定当前回放类型和激活状态
7214
+ _this._recType = options.recType || ((_options_props = options.props) == null ? void 0 : _options_props.recType) || 'cloudRec';
7215
+ _this._syncActiveByUrlInfo((_this___options_props1 = _this.__options.props) == null ? void 0 : _this___options_props1.urlInfo);
7216
+ _this._render();
7217
+ _this._initPicker();
7218
+ return _this;
7219
+ }
7220
+ var _proto = RecDropdown.prototype;
7221
+ /**
7222
+ * 根据 urlInfo 同步激活状态和回放类型
7223
+ * 在初始化和播放地址切换后调用
7224
+ */ _proto._syncActiveByUrlInfo = function _syncActiveByUrlInfo(urlInfo) {
7225
+ if (urlInfo && urlInfo.type === 'rec') {
7226
+ var _urlInfo_searchParams1;
7227
+ this.active = true;
7228
+ if (urlInfo.recType === 'cloud' && ((_urlInfo_searchParams1 = urlInfo.searchParams) == null ? void 0 : _urlInfo_searchParams1.busType) === '7') {
7229
+ this._recType = 'cloudRecord';
7230
+ } else if (urlInfo.recType === 'cloud') {
7231
+ this._recType = 'cloudRec';
7232
+ } else {
7233
+ this._recType = 'rec';
7234
+ }
7235
+ this._activeOption(this._recType);
7236
+ } else {
7237
+ this.active = false;
7238
+ }
7239
+ };
7240
+ _proto._render = function _render() {
7241
+ var _this_locale;
7242
+ this.$container.innerHTML = IconComponents.recDropdown({
7243
+ title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_REC_DROPDOWN) || '回放'
7244
+ });
7245
+ };
7246
+ _proto._initPicker = function _initPicker() {
7247
+ var _this = this;
7248
+ this._picker = new Picker(this.$container, {
7249
+ getPopupContainer: function() {
7250
+ return Utils.isMobile ? _this.__options.rootContainer : _this.$container;
7251
+ },
7252
+ trigger: Utils.isMobile ? 'click' : 'hover',
7253
+ isMobile: Utils.isMobile,
7254
+ wrapClassName: "" + PREFIX_CLASS + "-rec-dropdown-picker",
7255
+ placement: 'bottom',
7256
+ offset: [
7257
+ 0,
7258
+ 4
7259
+ ]
7260
+ });
7261
+ this._picker.innerHTML(this._getPanelHTML());
7262
+ this._activeOption(this._recType);
7263
+ this._bindPanelEvents();
7264
+ };
7265
+ _proto._getPanelHTML = function _getPanelHTML() {
7266
+ var _this_locale, _this_locale1, _this_locale2;
7267
+ var cloudRecLabel = ((_this_locale = this.locale) == null ? void 0 : _this_locale.REC_DROPDOWN_CLOUD_REC) || '云存储';
7268
+ var cloudRecordLabel = ((_this_locale1 = this.locale) == null ? void 0 : _this_locale1.REC_DROPDOWN_CLOUD_RECORD) || '云录制';
7269
+ var localRecLabel = ((_this_locale2 = this.locale) == null ? void 0 : _this_locale2.REC_DROPDOWN_LOCAL_REC) || '本地回放';
7270
+ 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>";
7271
+ };
7272
+ _proto._bindPanelEvents = function _bindPanelEvents() {
7273
+ var _this = this;
7274
+ this._delegation = delegate(this._picker.$body, "." + PREFIX_CLASS + "-rec-dropdown-item", 'click', function(e) {
7275
+ e.stopPropagation();
7276
+ var type = e.delegateTarget.getAttribute('data-type');
7277
+ if (type) {
7278
+ var _this__options_onChange, _this__options;
7279
+ _this._recType = type;
7280
+ _this._activeOption(type);
7281
+ // 设置自身为激活状态
7282
+ _this.active = true;
7283
+ _this.emit(EVENTS.control.recDropdownChange, type);
7284
+ (_this__options = _this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, type);
7285
+ _this._picker.open = false;
7286
+ }
7287
+ });
7288
+ };
7289
+ _proto._activeOption = function _activeOption(type) {
7290
+ var _this__picker;
7291
+ if ((_this__picker = this._picker) == null ? void 0 : _this__picker.$body) {
7292
+ var items = this._picker.$body.querySelectorAll("." + PREFIX_CLASS + "-rec-dropdown-item");
7293
+ items.forEach(function(item) {
7294
+ item.classList.remove("" + PREFIX_CLASS + "-active");
7295
+ });
7296
+ var target = this._picker.$body.querySelector("." + PREFIX_CLASS + '-rec-dropdown-item[data-type="' + type + '"]');
7297
+ target == null ? void 0 : target.classList.add("" + PREFIX_CLASS + "-active");
7298
+ }
7299
+ };
7300
+ /**
7301
+ * 销毁
7302
+ */ _proto.destroy = function destroy() {
7303
+ var _this__delegation_destroy, _this__delegation;
7304
+ (_this__delegation = this._delegation) == null ? void 0 : (_this__delegation_destroy = _this__delegation.destroy) == null ? void 0 : _this__delegation_destroy.call(_this__delegation);
7305
+ this._delegation = null;
7306
+ if (this._picker) {
7307
+ this._picker.destroy();
7308
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
7309
+ this._picker = null;
7310
+ }
7311
+ Control.prototype.destroy.call(this);
7312
+ };
7313
+ /**
7314
+ * 点击 Control 会触发(移动端 click 触发 picker)
7315
+ */ // eslint-disable-next-line @typescript-eslint/no-unused-vars
7316
+ _proto._onControlClick = function _onControlClick(_e) {
7317
+ // picker 自行处理 click/hover,这里不额外处理
7318
+ };
7319
+ return RecDropdown;
7320
+ }(Control);
7321
+
7322
+ function _extends$9() {
7323
+ _extends$9 = Object.assign || function(target) {
7324
+ for(var i = 1; i < arguments.length; i++){
7325
+ var source = arguments[i];
7326
+ for(var key in source){
7327
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7328
+ target[key] = source[key];
7329
+ }
7330
+ }
7331
+ }
7332
+ return target;
7333
+ };
7334
+ return _extends$9.apply(this, arguments);
7335
+ }
7336
+ function _inherits$a(subClass, superClass) {
7337
+ if (typeof superClass !== "function" && superClass !== null) {
7338
+ throw new TypeError("Super expression must either be null or a function");
7339
+ }
7340
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
7341
+ constructor: {
7342
+ value: subClass,
7343
+ writable: true,
7344
+ configurable: true
7345
+ }
7346
+ });
7347
+ if (superClass) _set_prototype_of$a(subClass, superClass);
7348
+ }
7349
+ function _set_prototype_of$a(o, p) {
7350
+ _set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7351
+ o.__proto__ = p;
7352
+ return o;
7353
+ };
7354
+ return _set_prototype_of$a(o, p);
7355
+ }
7356
+ /**
7357
+ * 告警消息按钮控件
7358
+ *
7359
+ * 点击弹出告警消息列表弹窗(纯触发按钮,无激活状态)
7360
+ *
7361
+ * @category Control
7362
+ */ var AlarmMessage = /*#__PURE__*/ function(Control) {
7363
+ _inherits$a(AlarmMessage, Control);
7364
+ function AlarmMessage(options) {
7365
+ var _this;
7366
+ _this = Control.call(this, _extends$9({}, options, {
7367
+ tagName: 'span',
7368
+ controlType: 'button',
7369
+ classNameSuffix: 'alarm-message'
7370
+ })) || this, _this._panelOpen = false;
7371
+ _this._options = options;
7372
+ _this._render();
7373
+ _this.on(EVENTS.alarmMessageChange, function(open) {
7374
+ _this._panelOpen = open;
7375
+ });
7376
+ return _this;
7377
+ }
7378
+ var _proto = AlarmMessage.prototype;
7379
+ _proto._render = function _render() {
7380
+ var _this_locale;
7381
+ this.$container.innerHTML = IconComponents.alarmMessage({
7382
+ title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_ALARM_MESSAGE) || '消息'
7383
+ });
7384
+ };
7385
+ /**
7386
+ * 销毁
7387
+ */ _proto.destroy = function destroy() {
7388
+ if (this._panelOpen) {
7389
+ this.emit(EVENTS.control.alarmMessageChange, false);
7390
+ }
7391
+ Control.prototype.destroy.call(this);
7392
+ };
7393
+ /**
7394
+ * 点击 Control 会触发
7395
+ */ _proto._onControlClick = function _onControlClick(e) {
7396
+ var _this__options_onChange, _this__options;
7397
+ Control.prototype._onControlClick.call(this, e);
7398
+ this._panelOpen = !this._panelOpen;
7399
+ this.emit(EVENTS.control.alarmMessageChange, this._panelOpen);
7400
+ (_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, this._panelOpen);
7401
+ };
7402
+ return AlarmMessage;
7403
+ }(Control);
7404
+
6961
7405
  function _defineProperties$1(target, props) {
6962
7406
  for(var i = 0; i < props.length; i++){
6963
7407
  var descriptor = props[i];
@@ -7950,6 +8394,9 @@ var Controls = {
7950
8394
  talk: Talk,
7951
8395
  broadcast: Broadcast,
7952
8396
  aiChat: AIChat,
8397
+ live: Live,
8398
+ recDropdown: RecDropdown,
8399
+ alarmMessage: AlarmMessage,
7953
8400
  zoom: Zoom,
7954
8401
  definition: Definition,
7955
8402
  fullscreen: Fullscreen,
@@ -8483,7 +8930,10 @@ function _ts_generator$1(thisArg, body) {
8483
8930
  // 需要权限的控件
8484
8931
  var AUTH_KEY = [
8485
8932
  'ptz',
8486
- 'aiChat'
8933
+ 'aiChat',
8934
+ 'live',
8935
+ 'recDropdown',
8936
+ 'alarmMessage'
8487
8937
  ];
8488
8938
  /**
8489
8939
  * 渲染控件
@@ -8563,7 +9013,7 @@ function _renderControls(theme, $container, btnList, props) {
8563
9013
  }
8564
9014
  function _renderTheme(theme, data) {
8565
9015
  return _async_to_generator$1(function() {
8566
- 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;
9016
+ 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;
8567
9017
  return _ts_generator$1(this, function(_state) {
8568
9018
  switch(_state.label){
8569
9019
  case 0:
@@ -8704,8 +9154,8 @@ function _renderTheme(theme, data) {
8704
9154
  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 : []);
8705
9155
  // FIXME: 这个逻辑实际上是有问题的
8706
9156
  _needTimeLine = list.some(function(item) {
8707
- return REC_GROUP.includes(item.iconId);
8708
- });
9157
+ return REC_GROUP.includes(item.iconId) || item.iconId === 'recDropdown';
9158
+ }) && ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.type) === 'rec';
8709
9159
  theme.$container.classList.remove("" + PREFIX_CLASS + "-has-time-line");
8710
9160
  // PC 单独渲染timeLine
8711
9161
  if (!Utils.isMobile && !(theme.options.timeLineOptions === null || theme.options.disabledTimeLine) && _needTimeLine) {
@@ -8738,6 +9188,23 @@ function _renderTheme(theme, data) {
8738
9188
  if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
8739
9189
  });
8740
9190
  }
9191
+ // 移动端:在 rec 控件旁渲染 alarmMessage 按钮
9192
+ if (theme.options.alarmMessageOptions !== null && !((_theme_controls2 = theme.controls) == null ? void 0 : _theme_controls2['alarmMessageControl'])) {
9193
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
9194
+ theme.controls['alarmMessageControl'] = new Controls['alarmMessage'](_extends$1({
9195
+ rootContainer: theme.$container,
9196
+ getPopupContainer: function() {
9197
+ var _theme__mobileExtend;
9198
+ return (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight;
9199
+ },
9200
+ language: theme.options.language || 'zh',
9201
+ locales: theme.i18n.translations,
9202
+ sdkType: theme.options.sdkType,
9203
+ urlInfo: theme.urlInfo
9204
+ }, ((_theme_options = theme.options) == null ? void 0 : _theme_options.alarmMessageOptions) || {}, {
9205
+ props: props
9206
+ }));
9207
+ }
8741
9208
  if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('timeLine')) && _needTimeLine) {
8742
9209
  _renderTimeLine(theme, theme._mobileExtend.$content, props);
8743
9210
  }
@@ -8748,6 +9215,10 @@ function _renderTheme(theme, data) {
8748
9215
  }
8749
9216
  theme.emit(EVENTS.control.mountedControls);
8750
9217
  if (!theme.playing) theme._disabled(true);
9218
+ // 同步 loading 状态(修复:_loadingControl 创建前设置的 loading=true 不生效的问题)
9219
+ if (theme._loading && theme._loadingControl) {
9220
+ theme._loadingControl.show();
9221
+ }
8751
9222
  _controlEventemitter(theme);
8752
9223
  return [
8753
9224
  2
@@ -10355,7 +10826,7 @@ var THEME_DEFAULT_OPTIONS = {
10355
10826
  zh: zh,
10356
10827
  en: en
10357
10828
  };
10358
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.2-beta.1';
10829
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.2-beta.3';
10359
10830
 
10360
10831
  exports.Control = Control;
10361
10832
  exports.EVENTS = EVENTS;