@ezuikit/player-theme 3.0.1-beta.3 → 3.0.2-beta.1

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.1-beta.3
3
- * Copyright (c) 2026-05-13 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.0.2-beta.1
3
+ * Copyright (c) 2026-05-15 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  'use strict';
@@ -145,9 +145,6 @@ var EVENTS = {
145
145
  /** 麦克风音量变化 */ talkVolumeChange: 'talkVolumeChange',
146
146
  /** 语音广播状态变化 */ broadcastChange: 'broadcastChange',
147
147
  /** AI对话框状态变化 */ aichatChange: 'aichatChange',
148
- /** 直播模式切换 */ liveChange: 'liveChange',
149
- /** 回放下拉选择变化 */ recDropdownChange: 'recDropdownChange',
150
- /** 告警消息面板状态变化 */ alarmMessageChange: 'alarmMessageChange',
151
148
  /** 动态切换日志配置 */ setLoggerOptions: 'setLoggerOptions',
152
149
  records: 'records',
153
150
  ptzSpeedChange: 'ptzSpeedChange',
@@ -195,12 +192,6 @@ var EVENTS = {
195
192
  /** 语音广播控件销毁 */ broadcastDestroy: 'Control.broadcastDestroy',
196
193
  /** AI对话框状态变化 */ aichatChange: 'Control.aichatChange',
197
194
  /** 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',
204
195
  /** 缩放比例改变 */ zoomChange: 'Control.zoomChange',
205
196
  /** 音量调节面板 展示隐藏变换 */ zoomPanelOpenChange: 'Control.zoomPanelOpenChange',
206
197
  /** 缩放控件销毁 */ zoomDestroy: 'Control.zoomDestroy',
@@ -252,7 +243,7 @@ function _create_class$9(Constructor, protoProps, staticProps) {
252
243
  if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
253
244
  return Constructor;
254
245
  }
255
- function _inherits$w(subClass, superClass) {
246
+ function _inherits$t(subClass, superClass) {
256
247
  if (typeof superClass !== "function" && superClass !== null) {
257
248
  throw new TypeError("Super expression must either be null or a function");
258
249
  }
@@ -263,14 +254,14 @@ function _inherits$w(subClass, superClass) {
263
254
  configurable: true
264
255
  }
265
256
  });
266
- if (superClass) _set_prototype_of$w(subClass, superClass);
257
+ if (superClass) _set_prototype_of$t(subClass, superClass);
267
258
  }
268
- function _set_prototype_of$w(o, p) {
269
- _set_prototype_of$w = Object.setPrototypeOf || function setPrototypeOf(o, p) {
259
+ function _set_prototype_of$t(o, p) {
260
+ _set_prototype_of$t = Object.setPrototypeOf || function setPrototypeOf(o, p) {
270
261
  o.__proto__ = p;
271
262
  return o;
272
263
  };
273
- return _set_prototype_of$w(o, p);
264
+ return _set_prototype_of$t(o, p);
274
265
  }
275
266
  /**
276
267
  * 控件基类
@@ -284,7 +275,7 @@ function _set_prototype_of$w(o, p) {
284
275
  * const myControl = new MyControl({})
285
276
  * ```
286
277
  */ var Control = /*#__PURE__*/ function(EventEmitter) {
287
- _inherits$w(Control, EventEmitter);
278
+ _inherits$t(Control, EventEmitter);
288
279
  function Control(options) {
289
280
  var _this;
290
281
  var _this___options;
@@ -459,8 +450,8 @@ function _set_prototype_of$w(o, p) {
459
450
  return Control;
460
451
  }(EventEmitter);
461
452
 
462
- function _extends$v() {
463
- _extends$v = Object.assign || function(target) {
453
+ function _extends$s() {
454
+ _extends$s = Object.assign || function(target) {
464
455
  for(var i = 1; i < arguments.length; i++){
465
456
  var source = arguments[i];
466
457
  for(var key in source){
@@ -471,9 +462,9 @@ function _extends$v() {
471
462
  }
472
463
  return target;
473
464
  };
474
- return _extends$v.apply(this, arguments);
465
+ return _extends$s.apply(this, arguments);
475
466
  }
476
- function _inherits$v(subClass, superClass) {
467
+ function _inherits$s(subClass, superClass) {
477
468
  if (typeof superClass !== "function" && superClass !== null) {
478
469
  throw new TypeError("Super expression must either be null or a function");
479
470
  }
@@ -484,25 +475,25 @@ function _inherits$v(subClass, superClass) {
484
475
  configurable: true
485
476
  }
486
477
  });
487
- if (superClass) _set_prototype_of$v(subClass, superClass);
478
+ if (superClass) _set_prototype_of$s(subClass, superClass);
488
479
  }
489
- function _set_prototype_of$v(o, p) {
490
- _set_prototype_of$v = Object.setPrototypeOf || function setPrototypeOf(o, p) {
480
+ function _set_prototype_of$s(o, p) {
481
+ _set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
491
482
  o.__proto__ = p;
492
483
  return o;
493
484
  };
494
- return _set_prototype_of$v(o, p);
485
+ return _set_prototype_of$s(o, p);
495
486
  }
496
487
  var LOADING_DEFAULT_OPTIONS = {};
497
488
  /**
498
489
  * 加载动画控件
499
490
  * @category Control
500
491
  */ var Loading = /*#__PURE__*/ function(Control) {
501
- _inherits$v(Loading, Control);
492
+ _inherits$s(Loading, Control);
502
493
  function Loading(options) {
503
494
  if (options === void 0) options = {};
504
495
  var _this;
505
- _this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$v({}, options, {
496
+ _this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$s({}, options, {
506
497
  tagName: 'div',
507
498
  controlType: 'block',
508
499
  classNameSuffix: 'loading'
@@ -540,8 +531,8 @@ var LOADING_DEFAULT_OPTIONS = {};
540
531
  return Loading;
541
532
  }(Control);
542
533
 
543
- function _extends$u() {
544
- _extends$u = Object.assign || function(target) {
534
+ function _extends$r() {
535
+ _extends$r = Object.assign || function(target) {
545
536
  for(var i = 1; i < arguments.length; i++){
546
537
  var source = arguments[i];
547
538
  for(var key in source){
@@ -552,9 +543,9 @@ function _extends$u() {
552
543
  }
553
544
  return target;
554
545
  };
555
- return _extends$u.apply(this, arguments);
546
+ return _extends$r.apply(this, arguments);
556
547
  }
557
- function _inherits$u(subClass, superClass) {
548
+ function _inherits$r(subClass, superClass) {
558
549
  if (typeof superClass !== "function" && superClass !== null) {
559
550
  throw new TypeError("Super expression must either be null or a function");
560
551
  }
@@ -565,14 +556,14 @@ function _inherits$u(subClass, superClass) {
565
556
  configurable: true
566
557
  }
567
558
  });
568
- if (superClass) _set_prototype_of$u(subClass, superClass);
559
+ if (superClass) _set_prototype_of$r(subClass, superClass);
569
560
  }
570
- function _set_prototype_of$u(o, p) {
571
- _set_prototype_of$u = Object.setPrototypeOf || function setPrototypeOf(o, p) {
561
+ function _set_prototype_of$r(o, p) {
562
+ _set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
572
563
  o.__proto__ = p;
573
564
  return o;
574
565
  };
575
- return _set_prototype_of$u(o, p);
566
+ return _set_prototype_of$r(o, p);
576
567
  }
577
568
  // 不放在服务器上 是因为有可能http加载失败
578
569
  // prettier-ignore
@@ -584,11 +575,11 @@ var POSTER_OPTIONS = {
584
575
  * 封面控件
585
576
  * @category Control
586
577
  */ var Poster = /*#__PURE__*/ function(Control) {
587
- _inherits$u(Poster, Control);
578
+ _inherits$r(Poster, Control);
588
579
  function Poster(options) {
589
580
  if (options === void 0) options = {};
590
581
  var _this;
591
- _this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$u({}, options, {
582
+ _this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$r({}, options, {
592
583
  tagName: 'div',
593
584
  controlType: 'block',
594
585
  classNameSuffix: 'poster'
@@ -694,10 +685,7 @@ var Icons = {
694
685
  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>',
695
686
  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>',
696
687
  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>',
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>'
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>'
701
689
  };
702
690
 
703
691
  /**
@@ -855,23 +843,11 @@ var IconComponents = {
855
843
  reduce: function(attr) {
856
844
  if (attr === void 0) attr = {};
857
845
  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);
870
846
  }
871
847
  };
872
848
 
873
- function _extends$t() {
874
- _extends$t = Object.assign || function(target) {
849
+ function _extends$q() {
850
+ _extends$q = Object.assign || function(target) {
875
851
  for(var i = 1; i < arguments.length; i++){
876
852
  var source = arguments[i];
877
853
  for(var key in source){
@@ -882,9 +858,9 @@ function _extends$t() {
882
858
  }
883
859
  return target;
884
860
  };
885
- return _extends$t.apply(this, arguments);
861
+ return _extends$q.apply(this, arguments);
886
862
  }
887
- function _inherits$t(subClass, superClass) {
863
+ function _inherits$q(subClass, superClass) {
888
864
  if (typeof superClass !== "function" && superClass !== null) {
889
865
  throw new TypeError("Super expression must either be null or a function");
890
866
  }
@@ -895,25 +871,25 @@ function _inherits$t(subClass, superClass) {
895
871
  configurable: true
896
872
  }
897
873
  });
898
- if (superClass) _set_prototype_of$t(subClass, superClass);
874
+ if (superClass) _set_prototype_of$q(subClass, superClass);
899
875
  }
900
- function _set_prototype_of$t(o, p) {
901
- _set_prototype_of$t = Object.setPrototypeOf || function setPrototypeOf(o, p) {
876
+ function _set_prototype_of$q(o, p) {
877
+ _set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
902
878
  o.__proto__ = p;
903
879
  return o;
904
880
  };
905
- return _set_prototype_of$t(o, p);
881
+ return _set_prototype_of$q(o, p);
906
882
  }
907
883
  var MESSAGE_DEFAULT_OPTIONS = {};
908
884
  /**
909
885
  * 消息控件
910
886
  * @category Control
911
887
  */ var Message = /*#__PURE__*/ function(Control) {
912
- _inherits$t(Message, Control);
888
+ _inherits$q(Message, Control);
913
889
  function Message(options) {
914
890
  if (options === void 0) options = {};
915
891
  var _this;
916
- _this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$t({}, options, {
892
+ _this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$q({}, options, {
917
893
  tagName: 'div',
918
894
  controlType: 'block'
919
895
  }))) || this, _this._$toast = null;
@@ -1066,8 +1042,8 @@ function _create_class$8(Constructor, protoProps, staticProps) {
1066
1042
  if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
1067
1043
  return Constructor;
1068
1044
  }
1069
- function _extends$s() {
1070
- _extends$s = Object.assign || function(target) {
1045
+ function _extends$p() {
1046
+ _extends$p = Object.assign || function(target) {
1071
1047
  for(var i = 1; i < arguments.length; i++){
1072
1048
  var source = arguments[i];
1073
1049
  for(var key in source){
@@ -1078,9 +1054,9 @@ function _extends$s() {
1078
1054
  }
1079
1055
  return target;
1080
1056
  };
1081
- return _extends$s.apply(this, arguments);
1057
+ return _extends$p.apply(this, arguments);
1082
1058
  }
1083
- function _inherits$s(subClass, superClass) {
1059
+ function _inherits$p(subClass, superClass) {
1084
1060
  if (typeof superClass !== "function" && superClass !== null) {
1085
1061
  throw new TypeError("Super expression must either be null or a function");
1086
1062
  }
@@ -1091,23 +1067,23 @@ function _inherits$s(subClass, superClass) {
1091
1067
  configurable: true
1092
1068
  }
1093
1069
  });
1094
- if (superClass) _set_prototype_of$s(subClass, superClass);
1070
+ if (superClass) _set_prototype_of$p(subClass, superClass);
1095
1071
  }
1096
- function _set_prototype_of$s(o, p) {
1097
- _set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1072
+ function _set_prototype_of$p(o, p) {
1073
+ _set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1098
1074
  o.__proto__ = p;
1099
1075
  return o;
1100
1076
  };
1101
- return _set_prototype_of$s(o, p);
1077
+ return _set_prototype_of$p(o, p);
1102
1078
  }
1103
1079
  /**
1104
1080
  * 播放/暂停控件
1105
1081
  * @category Control
1106
1082
  */ var Play = /*#__PURE__*/ function(Control) {
1107
- _inherits$s(Play, Control);
1083
+ _inherits$p(Play, Control);
1108
1084
  function Play(options) {
1109
1085
  var _this;
1110
- _this = Control.call(this, _extends$s({}, options, {
1086
+ _this = Control.call(this, _extends$p({}, options, {
1111
1087
  tagName: 'span',
1112
1088
  controlType: 'button',
1113
1089
  classNameSuffix: 'play'
@@ -1723,8 +1699,8 @@ function _create_class$6(Constructor, protoProps, staticProps) {
1723
1699
  if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
1724
1700
  return Constructor;
1725
1701
  }
1726
- function _extends$r() {
1727
- _extends$r = Object.assign || function(target) {
1702
+ function _extends$o() {
1703
+ _extends$o = Object.assign || function(target) {
1728
1704
  for(var i = 1; i < arguments.length; i++){
1729
1705
  var source = arguments[i];
1730
1706
  for(var key in source){
@@ -1735,9 +1711,9 @@ function _extends$r() {
1735
1711
  }
1736
1712
  return target;
1737
1713
  };
1738
- return _extends$r.apply(this, arguments);
1714
+ return _extends$o.apply(this, arguments);
1739
1715
  }
1740
- function _inherits$r(subClass, superClass) {
1716
+ function _inherits$o(subClass, superClass) {
1741
1717
  if (typeof superClass !== "function" && superClass !== null) {
1742
1718
  throw new TypeError("Super expression must either be null or a function");
1743
1719
  }
@@ -1748,14 +1724,14 @@ function _inherits$r(subClass, superClass) {
1748
1724
  configurable: true
1749
1725
  }
1750
1726
  });
1751
- if (superClass) _set_prototype_of$r(subClass, superClass);
1727
+ if (superClass) _set_prototype_of$o(subClass, superClass);
1752
1728
  }
1753
- function _set_prototype_of$r(o, p) {
1754
- _set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1729
+ function _set_prototype_of$o(o, p) {
1730
+ _set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1755
1731
  o.__proto__ = p;
1756
1732
  return o;
1757
1733
  };
1758
- return _set_prototype_of$r(o, p);
1734
+ return _set_prototype_of$o(o, p);
1759
1735
  }
1760
1736
  var VOLUME_DEFAULT_OPTIONS = {
1761
1737
  volume: 0.8,
@@ -1769,12 +1745,12 @@ var VOLUME_DEFAULT_OPTIONS = {
1769
1745
  * 音量调节控件
1770
1746
  * @category Control
1771
1747
  */ var Volume = /*#__PURE__*/ function(Control) {
1772
- _inherits$r(Volume, Control);
1748
+ _inherits$o(Volume, Control);
1773
1749
  function Volume(options) {
1774
1750
  if (options === void 0) options = {};
1775
1751
  var _this;
1776
1752
  var _this__options_props, _this__options_props1, _this__options_props2, _this__options_props3;
1777
- _this = Control.call(this, _extends$r({}, options, {
1753
+ _this = Control.call(this, _extends$o({}, options, {
1778
1754
  tagName: 'span',
1779
1755
  classNameSuffix: 'volume',
1780
1756
  controlType: 'button'
@@ -2434,8 +2410,8 @@ var __fullscreenProvider__ = Provider.getInstance();
2434
2410
  return Fullscreen;
2435
2411
  }();
2436
2412
 
2437
- function _extends$q() {
2438
- _extends$q = Object.assign || function(target) {
2413
+ function _extends$n() {
2414
+ _extends$n = Object.assign || function(target) {
2439
2415
  for(var i = 1; i < arguments.length; i++){
2440
2416
  var source = arguments[i];
2441
2417
  for(var key in source){
@@ -2446,9 +2422,9 @@ function _extends$q() {
2446
2422
  }
2447
2423
  return target;
2448
2424
  };
2449
- return _extends$q.apply(this, arguments);
2425
+ return _extends$n.apply(this, arguments);
2450
2426
  }
2451
- function _inherits$q(subClass, superClass) {
2427
+ function _inherits$n(subClass, superClass) {
2452
2428
  if (typeof superClass !== "function" && superClass !== null) {
2453
2429
  throw new TypeError("Super expression must either be null or a function");
2454
2430
  }
@@ -2459,24 +2435,24 @@ function _inherits$q(subClass, superClass) {
2459
2435
  configurable: true
2460
2436
  }
2461
2437
  });
2462
- if (superClass) _set_prototype_of$q(subClass, superClass);
2438
+ if (superClass) _set_prototype_of$n(subClass, superClass);
2463
2439
  }
2464
- function _set_prototype_of$q(o, p) {
2465
- _set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2440
+ function _set_prototype_of$n(o, p) {
2441
+ _set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2466
2442
  o.__proto__ = p;
2467
2443
  return o;
2468
2444
  };
2469
- return _set_prototype_of$q(o, p);
2445
+ return _set_prototype_of$n(o, p);
2470
2446
  }
2471
2447
  /**
2472
2448
  * 全屏控件
2473
2449
  * @category Control
2474
2450
  */ var Fullscreen = /*#__PURE__*/ function(Control) {
2475
- _inherits$q(Fullscreen, Control);
2451
+ _inherits$n(Fullscreen, Control);
2476
2452
  function Fullscreen(options) {
2477
2453
  var _this;
2478
2454
  var _options_props, _this_options;
2479
- _this = Control.call(this, _extends$q({
2455
+ _this = Control.call(this, _extends$n({
2480
2456
  tagName: 'span',
2481
2457
  classNameSuffix: 'fullscreen',
2482
2458
  controlType: 'button'
@@ -2541,8 +2517,8 @@ function _set_prototype_of$q(o, p) {
2541
2517
  return Fullscreen;
2542
2518
  }(Control);
2543
2519
 
2544
- function _extends$p() {
2545
- _extends$p = Object.assign || function(target) {
2520
+ function _extends$m() {
2521
+ _extends$m = Object.assign || function(target) {
2546
2522
  for(var i = 1; i < arguments.length; i++){
2547
2523
  var source = arguments[i];
2548
2524
  for(var key in source){
@@ -2553,9 +2529,9 @@ function _extends$p() {
2553
2529
  }
2554
2530
  return target;
2555
2531
  };
2556
- return _extends$p.apply(this, arguments);
2532
+ return _extends$m.apply(this, arguments);
2557
2533
  }
2558
- function _inherits$p(subClass, superClass) {
2534
+ function _inherits$m(subClass, superClass) {
2559
2535
  if (typeof superClass !== "function" && superClass !== null) {
2560
2536
  throw new TypeError("Super expression must either be null or a function");
2561
2537
  }
@@ -2566,24 +2542,24 @@ function _inherits$p(subClass, superClass) {
2566
2542
  configurable: true
2567
2543
  }
2568
2544
  });
2569
- if (superClass) _set_prototype_of$p(subClass, superClass);
2545
+ if (superClass) _set_prototype_of$m(subClass, superClass);
2570
2546
  }
2571
- function _set_prototype_of$p(o, p) {
2572
- _set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2547
+ function _set_prototype_of$m(o, p) {
2548
+ _set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2573
2549
  o.__proto__ = p;
2574
2550
  return o;
2575
2551
  };
2576
- return _set_prototype_of$p(o, p);
2552
+ return _set_prototype_of$m(o, p);
2577
2553
  }
2578
2554
  /**
2579
2555
  * 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
2580
2556
  * @category Control
2581
2557
  */ var Rec = /*#__PURE__*/ function(Control) {
2582
- _inherits$p(Rec, Control);
2558
+ _inherits$m(Rec, Control);
2583
2559
  function Rec(options) {
2584
2560
  var _this;
2585
2561
  var _options_props;
2586
- _this = Control.call(this, _extends$p({}, options, {
2562
+ _this = Control.call(this, _extends$m({}, options, {
2587
2563
  tagName: 'div',
2588
2564
  controlType: 'block',
2589
2565
  classNameSuffix: 'rec'
@@ -2860,12 +2836,6 @@ var zh = {
2860
2836
  BTN_TALK: '对讲',
2861
2837
  BTN_BROADCAST: '语音广播',
2862
2838
  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: '本地回放',
2869
2839
  BTN_ZOOM: '电子放大',
2870
2840
  BTN_3D_ZOOM: '3D定位',
2871
2841
  BTN_PTZ: '云台控制',
@@ -3138,12 +3108,6 @@ var en = {
3138
3108
  BTN_TALK: 'Intercom',
3139
3109
  BTN_BROADCAST: 'Voice broadcast',
3140
3110
  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',
3147
3111
  BTN_ZOOM: 'Electronic zoom',
3148
3112
  BTN_3D_ZOOM: '3D positioning',
3149
3113
  BTN_PTZ: 'PTZ control',
@@ -3299,6 +3263,12 @@ var en = {
3299
3263
  defaultActive: 0,
3300
3264
  isrender: 1
3301
3265
  },
3266
+ {
3267
+ iconId: 'zoom',
3268
+ part: 'left',
3269
+ defaultActive: 0,
3270
+ isrender: 1
3271
+ },
3302
3272
  {
3303
3273
  iconId: 'fullscreen',
3304
3274
  part: 'right',
@@ -3333,21 +3303,6 @@ var en = {
3333
3303
  iconId: 'deviceName',
3334
3304
  part: 'left',
3335
3305
  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
3351
3306
  }
3352
3307
  ]
3353
3308
  },
@@ -3435,19 +3390,19 @@ var en = {
3435
3390
  isrender: 1
3436
3391
  },
3437
3392
  {
3438
- iconId: 'live',
3393
+ iconId: 'cloudRec',
3439
3394
  part: 'right',
3440
3395
  defaultActive: 0,
3441
3396
  isrender: 1
3442
3397
  },
3443
3398
  {
3444
- iconId: 'recDropdown',
3399
+ iconId: 'cloudRecord',
3445
3400
  part: 'right',
3446
3401
  defaultActive: 0,
3447
3402
  isrender: 1
3448
3403
  },
3449
3404
  {
3450
- iconId: 'alarmMessage',
3405
+ iconId: 'rec',
3451
3406
  part: 'right',
3452
3407
  defaultActive: 0,
3453
3408
  isrender: 1
@@ -3850,7 +3805,7 @@ var en = {
3850
3805
  voice: voice
3851
3806
  };
3852
3807
 
3853
- function _inherits$o(subClass, superClass) {
3808
+ function _inherits$l(subClass, superClass) {
3854
3809
  if (typeof superClass !== "function" && superClass !== null) {
3855
3810
  throw new TypeError("Super expression must either be null or a function");
3856
3811
  }
@@ -3861,20 +3816,20 @@ function _inherits$o(subClass, superClass) {
3861
3816
  configurable: true
3862
3817
  }
3863
3818
  });
3864
- if (superClass) _set_prototype_of$o(subClass, superClass);
3819
+ if (superClass) _set_prototype_of$l(subClass, superClass);
3865
3820
  }
3866
- function _set_prototype_of$o(o, p) {
3867
- _set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3821
+ function _set_prototype_of$l(o, p) {
3822
+ _set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3868
3823
  o.__proto__ = p;
3869
3824
  return o;
3870
3825
  };
3871
- return _set_prototype_of$o(o, p);
3826
+ return _set_prototype_of$l(o, p);
3872
3827
  }
3873
3828
  /**
3874
3829
  * 截图控件
3875
3830
  * @category Content
3876
3831
  */ var Content = /*#__PURE__*/ function(EventEmitter) {
3877
- _inherits$o(Content, EventEmitter);
3832
+ _inherits$l(Content, EventEmitter);
3878
3833
  function Content(options) {
3879
3834
  var _this;
3880
3835
  _this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
@@ -3989,8 +3944,8 @@ function _set_prototype_of$o(o, p) {
3989
3944
  return Content;
3990
3945
  }(EventEmitter);
3991
3946
 
3992
- function _extends$o() {
3993
- _extends$o = Object.assign || function(target) {
3947
+ function _extends$l() {
3948
+ _extends$l = Object.assign || function(target) {
3994
3949
  for(var i = 1; i < arguments.length; i++){
3995
3950
  var source = arguments[i];
3996
3951
  for(var key in source){
@@ -4001,9 +3956,9 @@ function _extends$o() {
4001
3956
  }
4002
3957
  return target;
4003
3958
  };
4004
- return _extends$o.apply(this, arguments);
3959
+ return _extends$l.apply(this, arguments);
4005
3960
  }
4006
- function _inherits$n(subClass, superClass) {
3961
+ function _inherits$k(subClass, superClass) {
4007
3962
  if (typeof superClass !== "function" && superClass !== null) {
4008
3963
  throw new TypeError("Super expression must either be null or a function");
4009
3964
  }
@@ -4014,23 +3969,23 @@ function _inherits$n(subClass, superClass) {
4014
3969
  configurable: true
4015
3970
  }
4016
3971
  });
4017
- if (superClass) _set_prototype_of$n(subClass, superClass);
3972
+ if (superClass) _set_prototype_of$k(subClass, superClass);
4018
3973
  }
4019
- function _set_prototype_of$n(o, p) {
4020
- _set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3974
+ function _set_prototype_of$k(o, p) {
3975
+ _set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4021
3976
  o.__proto__ = p;
4022
3977
  return o;
4023
3978
  };
4024
- return _set_prototype_of$n(o, p);
3979
+ return _set_prototype_of$k(o, p);
4025
3980
  }
4026
3981
  /**
4027
3982
  * 更多控件
4028
3983
  * @category Control
4029
3984
  */ var More = /*#__PURE__*/ function(Control) {
4030
- _inherits$n(More, Control);
3985
+ _inherits$k(More, Control);
4031
3986
  function More(options) {
4032
3987
  var _this;
4033
- _this = Control.call(this, _extends$o({}, options, {
3988
+ _this = Control.call(this, _extends$l({}, options, {
4034
3989
  tagName: 'span',
4035
3990
  controlType: 'button',
4036
3991
  classNameSuffix: 'more'
@@ -4246,15 +4201,6 @@ function debounce(func, wait) {
4246
4201
  }
4247
4202
  });
4248
4203
  // =======================================================
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
- // =======================================================
4258
4204
  // 录制
4259
4205
  // =======================================================
4260
4206
  theme.on(EVENTS.recordingChange, function(recording) {
@@ -4350,7 +4296,7 @@ function debounce(func, wait) {
4350
4296
  *
4351
4297
  * @param theme - Theme
4352
4298
  */ function _controlEventemitter(theme) {
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;
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;
4354
4300
  // Controls
4355
4301
  if (theme._recFooter) {
4356
4302
  theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
@@ -4461,50 +4407,8 @@ function debounce(func, wait) {
4461
4407
  theme.emit(EVENTS.control.aichatDestroy);
4462
4408
  });
4463
4409
  }
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
- }
4506
4410
  // 缩放控件
4507
- if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.zoomControl) {
4411
+ if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.zoomControl) {
4508
4412
  theme.controls.zoomControl.on(EVENTS.control.zoomChange, function(value, _percent, _range) {
4509
4413
  if (theme.zoom !== value) {
4510
4414
  theme.zoom = value;
@@ -4526,7 +4430,7 @@ function debounce(func, wait) {
4526
4430
  });
4527
4431
  }
4528
4432
  // 清晰度控件
4529
- if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.definitionControl) {
4433
+ if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.definitionControl) {
4530
4434
  theme.controls.definitionControl.on(EVENTS.control.definitionPanelOpenChange, function(open, definition, item) {
4531
4435
  theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, definition);
4532
4436
  theme.emit(EVENTS.control.definitionPanelOpenChange, open, definition, item);
@@ -4539,7 +4443,7 @@ function debounce(func, wait) {
4539
4443
  });
4540
4444
  }
4541
4445
  // 倍速控件
4542
- if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.speedControl) {
4446
+ if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.speedControl) {
4543
4447
  theme.controls.speedControl.on(EVENTS.control.speedPanelOpenChange, function(open, speed, item) {
4544
4448
  theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, speed);
4545
4449
  theme.emit(EVENTS.control.speedPanelOpenChange, open, speed, item);
@@ -4552,7 +4456,7 @@ function debounce(func, wait) {
4552
4456
  });
4553
4457
  }
4554
4458
  // 截图控件
4555
- if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.capturePictureControl) {
4459
+ if ((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.capturePictureControl) {
4556
4460
  theme.controls.capturePictureControl.on(EVENTS.control.capturePicture, function(options) {
4557
4461
  theme.emit(EVENTS.control.capturePicture, options);
4558
4462
  });
@@ -4561,25 +4465,25 @@ function debounce(func, wait) {
4561
4465
  });
4562
4466
  }
4563
4467
  // 全屏控件
4564
- if ((_theme_controls16 = theme.controls) == null ? void 0 : _theme_controls16.fullscreenControl) {
4468
+ if ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.fullscreenControl) {
4565
4469
  theme.controls.fullscreenControl.on(EVENTS.control.fullscreenDestroy, function() {
4566
4470
  theme.emit(EVENTS.control.fullscreenDestroy);
4567
4471
  });
4568
4472
  }
4569
4473
  // 全局全屏控件
4570
- if ((_theme_controls17 = theme.controls) == null ? void 0 : _theme_controls17.globalFullscreenControl) {
4474
+ if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.globalFullscreenControl) {
4571
4475
  theme.controls.globalFullscreenControl.on(EVENTS.control.globalFullscreenDestroy, function() {
4572
4476
  theme.emit(EVENTS.control.globalFullscreenDestroy);
4573
4477
  });
4574
4478
  }
4575
4479
  // 设备信息控件
4576
- if ((_theme_controls18 = theme.controls) == null ? void 0 : _theme_controls18.deviceControl) {
4480
+ if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.deviceControl) {
4577
4481
  theme.controls.deviceControl.on(EVENTS.control.deviceDestroy, function() {
4578
4482
  theme.emit(EVENTS.control.deviceDestroy);
4579
4483
  });
4580
4484
  }
4581
4485
  // 回放类型切换控件
4582
- if ((_theme_controls19 = theme.controls) == null ? void 0 : _theme_controls19.recControl) {
4486
+ if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.recControl) {
4583
4487
  // prettier-ignore
4584
4488
  theme.controls.recControl.on(EVENTS.control.recTypeChange, function(type) {
4585
4489
  if (theme.recType !== type) {
@@ -4600,7 +4504,7 @@ function debounce(func, wait) {
4600
4504
  });
4601
4505
  }
4602
4506
  // 时间轴控件
4603
- if ((_theme_controls20 = theme.controls) == null ? void 0 : _theme_controls20.timeLineControl) {
4507
+ if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.timeLineControl) {
4604
4508
  theme.controls.timeLineControl.on(EVENTS.control.timeLineChange, function(date) {
4605
4509
  theme.emit(EVENTS.control.timeLineChange, date);
4606
4510
  });
@@ -4617,7 +4521,7 @@ function debounce(func, wait) {
4617
4521
  });
4618
4522
  }
4619
4523
  // 日历控件
4620
- if ((_theme_controls21 = theme.controls) == null ? void 0 : _theme_controls21.dateControl) {
4524
+ if ((_theme_controls16 = theme.controls) == null ? void 0 : _theme_controls16.dateControl) {
4621
4525
  theme.controls.dateControl.on(EVENTS.control.datePanelOpenChange, function(open, date) {
4622
4526
  theme.emit(EVENTS.control.datePanelOpenChange, open, date);
4623
4527
  });
@@ -4712,8 +4616,8 @@ function _create_class$5(Constructor, protoProps, staticProps) {
4712
4616
  if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
4713
4617
  return Constructor;
4714
4618
  }
4715
- function _extends$n() {
4716
- _extends$n = Object.assign || function(target) {
4619
+ function _extends$k() {
4620
+ _extends$k = Object.assign || function(target) {
4717
4621
  for(var i = 1; i < arguments.length; i++){
4718
4622
  var source = arguments[i];
4719
4623
  for(var key in source){
@@ -4724,9 +4628,9 @@ function _extends$n() {
4724
4628
  }
4725
4629
  return target;
4726
4630
  };
4727
- return _extends$n.apply(this, arguments);
4631
+ return _extends$k.apply(this, arguments);
4728
4632
  }
4729
- function _inherits$m(subClass, superClass) {
4633
+ function _inherits$j(subClass, superClass) {
4730
4634
  if (typeof superClass !== "function" && superClass !== null) {
4731
4635
  throw new TypeError("Super expression must either be null or a function");
4732
4636
  }
@@ -4737,14 +4641,14 @@ function _inherits$m(subClass, superClass) {
4737
4641
  configurable: true
4738
4642
  }
4739
4643
  });
4740
- if (superClass) _set_prototype_of$m(subClass, superClass);
4644
+ if (superClass) _set_prototype_of$j(subClass, superClass);
4741
4645
  }
4742
- function _set_prototype_of$m(o, p) {
4743
- _set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4646
+ function _set_prototype_of$j(o, p) {
4647
+ _set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4744
4648
  o.__proto__ = p;
4745
4649
  return o;
4746
4650
  };
4747
- return _set_prototype_of$m(o, p);
4651
+ return _set_prototype_of$j(o, p);
4748
4652
  }
4749
4653
  var ZOOM_DEFAULT_OPTIONS = {
4750
4654
  open: false,
@@ -4754,10 +4658,10 @@ var ZOOM_DEFAULT_OPTIONS = {
4754
4658
  * 电子放大控件
4755
4659
  * @category Control
4756
4660
  */ var Zoom = /*#__PURE__*/ function(Control) {
4757
- _inherits$m(Zoom, Control);
4661
+ _inherits$j(Zoom, Control);
4758
4662
  function Zoom(options) {
4759
4663
  var _this;
4760
- _this = Control.call(this, _extends$n({}, options, {
4664
+ _this = Control.call(this, _extends$k({}, options, {
4761
4665
  tagName: 'span',
4762
4666
  controlType: 'button',
4763
4667
  classNameSuffix: 'zoom'
@@ -4885,8 +4789,8 @@ var ZOOM_DEFAULT_OPTIONS = {
4885
4789
  return Zoom;
4886
4790
  }(Control);
4887
4791
 
4888
- function _extends$m() {
4889
- _extends$m = Object.assign || function(target) {
4792
+ function _extends$j() {
4793
+ _extends$j = Object.assign || function(target) {
4890
4794
  for(var i = 1; i < arguments.length; i++){
4891
4795
  var source = arguments[i];
4892
4796
  for(var key in source){
@@ -4897,10 +4801,10 @@ function _extends$m() {
4897
4801
  }
4898
4802
  return target;
4899
4803
  };
4900
- return _extends$m.apply(this, arguments);
4804
+ return _extends$j.apply(this, arguments);
4901
4805
  }
4902
4806
  function __zoom(theme, container, options) {
4903
- theme.zoomUtil = new Zoom$1(container, _extends$m({}, options || {}, {
4807
+ theme.zoomUtil = new Zoom$1(container, _extends$j({}, options || {}, {
4904
4808
  min: 1,
4905
4809
  onChange: function(zoom, reset) {
4906
4810
  if (zoom !== theme._zoom) {
@@ -5125,8 +5029,8 @@ function _async_to_generator$5(fn) {
5125
5029
  });
5126
5030
  };
5127
5031
  }
5128
- function _extends$l() {
5129
- _extends$l = Object.assign || function(target) {
5032
+ function _extends$i() {
5033
+ _extends$i = Object.assign || function(target) {
5130
5034
  for(var i = 1; i < arguments.length; i++){
5131
5035
  var source = arguments[i];
5132
5036
  for(var key in source){
@@ -5137,7 +5041,7 @@ function _extends$l() {
5137
5041
  }
5138
5042
  return target;
5139
5043
  };
5140
- return _extends$l.apply(this, arguments);
5044
+ return _extends$i.apply(this, arguments);
5141
5045
  }
5142
5046
  function _ts_generator$5(thisArg, body) {
5143
5047
  var f, y, t, _ = {
@@ -5265,7 +5169,7 @@ function _ts_generator$5(thisArg, body) {
5265
5169
  }
5266
5170
  if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
5267
5171
  // TODO: 因为回放是一组, 位置以第一个位置为准
5268
- recControls.push(recControls[0] ? _extends$l({}, item, {
5172
+ recControls.push(recControls[0] ? _extends$i({}, item, {
5269
5173
  part: recControls[0].part
5270
5174
  }) : item);
5271
5175
  return false;
@@ -5288,7 +5192,7 @@ function _ts_generator$5(thisArg, body) {
5288
5192
  }
5289
5193
  if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
5290
5194
  // TODO: 因为回放是一组, 位置以第一个位置为准
5291
- recControls.push(recControls[0] ? _extends$l({}, item, {
5195
+ recControls.push(recControls[0] ? _extends$i({}, item, {
5292
5196
  part: recControls[0].part
5293
5197
  }) : item);
5294
5198
  return false;
@@ -5539,8 +5443,8 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
5539
5443
  return Component;
5540
5444
  }();
5541
5445
 
5542
- function _extends$k() {
5543
- _extends$k = Object.assign || function(target) {
5446
+ function _extends$h() {
5447
+ _extends$h = Object.assign || function(target) {
5544
5448
  for(var i = 1; i < arguments.length; i++){
5545
5449
  var source = arguments[i];
5546
5450
  for(var key in source){
@@ -5551,9 +5455,9 @@ function _extends$k() {
5551
5455
  }
5552
5456
  return target;
5553
5457
  };
5554
- return _extends$k.apply(this, arguments);
5458
+ return _extends$h.apply(this, arguments);
5555
5459
  }
5556
- function _inherits$l(subClass, superClass) {
5460
+ function _inherits$i(subClass, superClass) {
5557
5461
  if (typeof superClass !== "function" && superClass !== null) {
5558
5462
  throw new TypeError("Super expression must either be null or a function");
5559
5463
  }
@@ -5564,28 +5468,28 @@ function _inherits$l(subClass, superClass) {
5564
5468
  configurable: true
5565
5469
  }
5566
5470
  });
5567
- if (superClass) _set_prototype_of$l(subClass, superClass);
5471
+ if (superClass) _set_prototype_of$i(subClass, superClass);
5568
5472
  }
5569
- function _set_prototype_of$l(o, p) {
5570
- _set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5473
+ function _set_prototype_of$i(o, p) {
5474
+ _set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5571
5475
  o.__proto__ = p;
5572
5476
  return o;
5573
5477
  };
5574
- return _set_prototype_of$l(o, p);
5478
+ return _set_prototype_of$i(o, p);
5575
5479
  }
5576
5480
  var Footer = /*#__PURE__*/ function(Component) {
5577
- _inherits$l(Footer, Component);
5481
+ _inherits$i(Footer, Component);
5578
5482
  function Footer(options) {
5579
5483
  if (options === void 0) options = {};
5580
- return Component.call(this, _extends$k({}, options, {
5484
+ return Component.call(this, _extends$h({}, options, {
5581
5485
  cType: 'footer'
5582
5486
  })) || this;
5583
5487
  }
5584
5488
  return Footer;
5585
5489
  }(Component);
5586
5490
 
5587
- function _extends$j() {
5588
- _extends$j = Object.assign || function(target) {
5491
+ function _extends$g() {
5492
+ _extends$g = Object.assign || function(target) {
5589
5493
  for(var i = 1; i < arguments.length; i++){
5590
5494
  var source = arguments[i];
5591
5495
  for(var key in source){
@@ -5596,9 +5500,9 @@ function _extends$j() {
5596
5500
  }
5597
5501
  return target;
5598
5502
  };
5599
- return _extends$j.apply(this, arguments);
5503
+ return _extends$g.apply(this, arguments);
5600
5504
  }
5601
- function _inherits$k(subClass, superClass) {
5505
+ function _inherits$h(subClass, superClass) {
5602
5506
  if (typeof superClass !== "function" && superClass !== null) {
5603
5507
  throw new TypeError("Super expression must either be null or a function");
5604
5508
  }
@@ -5609,20 +5513,20 @@ function _inherits$k(subClass, superClass) {
5609
5513
  configurable: true
5610
5514
  }
5611
5515
  });
5612
- if (superClass) _set_prototype_of$k(subClass, superClass);
5516
+ if (superClass) _set_prototype_of$h(subClass, superClass);
5613
5517
  }
5614
- function _set_prototype_of$k(o, p) {
5615
- _set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5518
+ function _set_prototype_of$h(o, p) {
5519
+ _set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5616
5520
  o.__proto__ = p;
5617
5521
  return o;
5618
5522
  };
5619
- return _set_prototype_of$k(o, p);
5523
+ return _set_prototype_of$h(o, p);
5620
5524
  }
5621
5525
  var Header = /*#__PURE__*/ function(Component) {
5622
- _inherits$k(Header, Component);
5526
+ _inherits$h(Header, Component);
5623
5527
  function Header(options) {
5624
5528
  if (options === void 0) options = {};
5625
- return Component.call(this, _extends$j({}, options, {
5529
+ return Component.call(this, _extends$g({}, options, {
5626
5530
  cType: 'header'
5627
5531
  })) || this;
5628
5532
  }
@@ -5788,8 +5692,8 @@ function interactiveHF($container, second, callback) {
5788
5692
  };
5789
5693
  }
5790
5694
 
5791
- function _extends$i() {
5792
- _extends$i = Object.assign || function(target) {
5695
+ function _extends$f() {
5696
+ _extends$f = Object.assign || function(target) {
5793
5697
  for(var i = 1; i < arguments.length; i++){
5794
5698
  var source = arguments[i];
5795
5699
  for(var key in source){
@@ -5800,9 +5704,9 @@ function _extends$i() {
5800
5704
  }
5801
5705
  return target;
5802
5706
  };
5803
- return _extends$i.apply(this, arguments);
5707
+ return _extends$f.apply(this, arguments);
5804
5708
  }
5805
- function _inherits$j(subClass, superClass) {
5709
+ function _inherits$g(subClass, superClass) {
5806
5710
  if (typeof superClass !== "function" && superClass !== null) {
5807
5711
  throw new TypeError("Super expression must either be null or a function");
5808
5712
  }
@@ -5813,23 +5717,23 @@ function _inherits$j(subClass, superClass) {
5813
5717
  configurable: true
5814
5718
  }
5815
5719
  });
5816
- if (superClass) _set_prototype_of$j(subClass, superClass);
5720
+ if (superClass) _set_prototype_of$g(subClass, superClass);
5817
5721
  }
5818
- function _set_prototype_of$j(o, p) {
5819
- _set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5722
+ function _set_prototype_of$g(o, p) {
5723
+ _set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5820
5724
  o.__proto__ = p;
5821
5725
  return o;
5822
5726
  };
5823
- return _set_prototype_of$j(o, p);
5727
+ return _set_prototype_of$g(o, p);
5824
5728
  }
5825
5729
  /**
5826
5730
  * 全局全屏
5827
5731
  * 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
5828
5732
  * @category Control
5829
5733
  */ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
5830
- _inherits$j(GlobalFullscreen, Fullscreen);
5734
+ _inherits$g(GlobalFullscreen, Fullscreen);
5831
5735
  function GlobalFullscreen(options) {
5832
- return Fullscreen.call(this, _extends$i({}, options, {
5736
+ return Fullscreen.call(this, _extends$f({}, options, {
5833
5737
  controlType: 'button',
5834
5738
  classNameSuffix: 'global-fullscreen'
5835
5739
  })) || this;
@@ -5860,8 +5764,8 @@ function _set_prototype_of$j(o, p) {
5860
5764
  return GlobalFullscreen;
5861
5765
  }(Fullscreen);
5862
5766
 
5863
- function _extends$h() {
5864
- _extends$h = Object.assign || function(target) {
5767
+ function _extends$e() {
5768
+ _extends$e = Object.assign || function(target) {
5865
5769
  for(var i = 1; i < arguments.length; i++){
5866
5770
  var source = arguments[i];
5867
5771
  for(var key in source){
@@ -5872,9 +5776,9 @@ function _extends$h() {
5872
5776
  }
5873
5777
  return target;
5874
5778
  };
5875
- return _extends$h.apply(this, arguments);
5779
+ return _extends$e.apply(this, arguments);
5876
5780
  }
5877
- function _inherits$i(subClass, superClass) {
5781
+ function _inherits$f(subClass, superClass) {
5878
5782
  if (typeof superClass !== "function" && superClass !== null) {
5879
5783
  throw new TypeError("Super expression must either be null or a function");
5880
5784
  }
@@ -5885,23 +5789,23 @@ function _inherits$i(subClass, superClass) {
5885
5789
  configurable: true
5886
5790
  }
5887
5791
  });
5888
- if (superClass) _set_prototype_of$i(subClass, superClass);
5792
+ if (superClass) _set_prototype_of$f(subClass, superClass);
5889
5793
  }
5890
- function _set_prototype_of$i(o, p) {
5891
- _set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5794
+ function _set_prototype_of$f(o, p) {
5795
+ _set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5892
5796
  o.__proto__ = p;
5893
5797
  return o;
5894
5798
  };
5895
- return _set_prototype_of$i(o, p);
5799
+ return _set_prototype_of$f(o, p);
5896
5800
  }
5897
5801
  /**
5898
5802
  * 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
5899
5803
  * @category Control
5900
5804
  */ var CapturePicture = /*#__PURE__*/ function(Control) {
5901
- _inherits$i(CapturePicture, Control);
5805
+ _inherits$f(CapturePicture, Control);
5902
5806
  function CapturePicture(options) {
5903
5807
  var _this;
5904
- _this = Control.call(this, _extends$h({}, options, {
5808
+ _this = Control.call(this, _extends$e({}, options, {
5905
5809
  tagName: 'span',
5906
5810
  classNameSuffix: 'capture-picture'
5907
5811
  })) || this, _this._timer = null;
@@ -5967,8 +5871,8 @@ function _create_class$4(Constructor, protoProps, staticProps) {
5967
5871
  if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
5968
5872
  return Constructor;
5969
5873
  }
5970
- function _extends$g() {
5971
- _extends$g = Object.assign || function(target) {
5874
+ function _extends$d() {
5875
+ _extends$d = Object.assign || function(target) {
5972
5876
  for(var i = 1; i < arguments.length; i++){
5973
5877
  var source = arguments[i];
5974
5878
  for(var key in source){
@@ -5979,9 +5883,9 @@ function _extends$g() {
5979
5883
  }
5980
5884
  return target;
5981
5885
  };
5982
- return _extends$g.apply(this, arguments);
5886
+ return _extends$d.apply(this, arguments);
5983
5887
  }
5984
- function _inherits$h(subClass, superClass) {
5888
+ function _inherits$e(subClass, superClass) {
5985
5889
  if (typeof superClass !== "function" && superClass !== null) {
5986
5890
  throw new TypeError("Super expression must either be null or a function");
5987
5891
  }
@@ -5992,23 +5896,23 @@ function _inherits$h(subClass, superClass) {
5992
5896
  configurable: true
5993
5897
  }
5994
5898
  });
5995
- if (superClass) _set_prototype_of$h(subClass, superClass);
5899
+ if (superClass) _set_prototype_of$e(subClass, superClass);
5996
5900
  }
5997
- function _set_prototype_of$h(o, p) {
5998
- _set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5901
+ function _set_prototype_of$e(o, p) {
5902
+ _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5999
5903
  o.__proto__ = p;
6000
5904
  return o;
6001
5905
  };
6002
- return _set_prototype_of$h(o, p);
5906
+ return _set_prototype_of$e(o, p);
6003
5907
  }
6004
5908
  /**
6005
5909
  * 云台控件
6006
5910
  * @category Control
6007
5911
  */ var Ptz = /*#__PURE__*/ function(Control) {
6008
- _inherits$h(Ptz, Control);
5912
+ _inherits$e(Ptz, Control);
6009
5913
  function Ptz(options) {
6010
5914
  var _this;
6011
- _this = Control.call(this, _extends$g({}, options, {
5915
+ _this = Control.call(this, _extends$d({}, options, {
6012
5916
  tagName: 'span',
6013
5917
  controlType: 'button',
6014
5918
  classNameSuffix: 'ptz'
@@ -6051,7 +5955,7 @@ function _set_prototype_of$h(o, p) {
6051
5955
  this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
6052
5956
  this.$panel.appendChild(this.$turntable);
6053
5957
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
6054
- this._ptzControl = new controlPtz.Ptz(this.$turntable, _extends$g({}, this._options, {
5958
+ this._ptzControl = new controlPtz.Ptz(this.$turntable, _extends$d({}, this._options, {
6055
5959
  onSpeedChange: this._onSpeedChange.bind(this),
6056
5960
  onDirection: this._onDirection.bind(this)
6057
5961
  }));
@@ -6060,7 +5964,7 @@ function _set_prototype_of$h(o, p) {
6060
5964
  };
6061
5965
  _proto.renderMobileExtend = function renderMobileExtend($container) {
6062
5966
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
6063
- if (!this._ptzControl1) this._ptzControl1 = new controlPtz.MobilePtz($container, _extends$g({}, this._options, {
5967
+ if (!this._ptzControl1) this._ptzControl1 = new controlPtz.MobilePtz($container, _extends$d({}, this._options, {
6064
5968
  onSpeedChange: this._onSpeedChange.bind(this),
6065
5969
  onDirection: this._onDirection.bind(this)
6066
5970
  }));
@@ -6163,8 +6067,8 @@ function _create_class$3(Constructor, protoProps, staticProps) {
6163
6067
  if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
6164
6068
  return Constructor;
6165
6069
  }
6166
- function _extends$f() {
6167
- _extends$f = Object.assign || function(target) {
6070
+ function _extends$c() {
6071
+ _extends$c = Object.assign || function(target) {
6168
6072
  for(var i = 1; i < arguments.length; i++){
6169
6073
  var source = arguments[i];
6170
6074
  for(var key in source){
@@ -6175,9 +6079,9 @@ function _extends$f() {
6175
6079
  }
6176
6080
  return target;
6177
6081
  };
6178
- return _extends$f.apply(this, arguments);
6082
+ return _extends$c.apply(this, arguments);
6179
6083
  }
6180
- function _inherits$g(subClass, superClass) {
6084
+ function _inherits$d(subClass, superClass) {
6181
6085
  if (typeof superClass !== "function" && superClass !== null) {
6182
6086
  throw new TypeError("Super expression must either be null or a function");
6183
6087
  }
@@ -6188,14 +6092,14 @@ function _inherits$g(subClass, superClass) {
6188
6092
  configurable: true
6189
6093
  }
6190
6094
  });
6191
- if (superClass) _set_prototype_of$g(subClass, superClass);
6095
+ if (superClass) _set_prototype_of$d(subClass, superClass);
6192
6096
  }
6193
- function _set_prototype_of$g(o, p) {
6194
- _set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6097
+ function _set_prototype_of$d(o, p) {
6098
+ _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6195
6099
  o.__proto__ = p;
6196
6100
  return o;
6197
6101
  };
6198
- return _set_prototype_of$g(o, p);
6102
+ return _set_prototype_of$d(o, p);
6199
6103
  }
6200
6104
  var RECORD_DEFAULT_OPTIONS = {
6201
6105
  maxDuration: 3600
@@ -6209,10 +6113,10 @@ var RECORD_DEFAULT_OPTIONS = {
6209
6113
  * 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
6210
6114
  * @category Control
6211
6115
  */ var Record = /*#__PURE__*/ function(Control) {
6212
- _inherits$g(Record, Control);
6116
+ _inherits$d(Record, Control);
6213
6117
  function Record(options) {
6214
6118
  var _this;
6215
- _this = Control.call(this, _extends$f({}, options, {
6119
+ _this = Control.call(this, _extends$c({}, options, {
6216
6120
  tagName: 'span',
6217
6121
  controlType: 'button',
6218
6122
  classNameSuffix: 'record'
@@ -6353,8 +6257,8 @@ function _create_class$2(Constructor, protoProps, staticProps) {
6353
6257
  if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
6354
6258
  return Constructor;
6355
6259
  }
6356
- function _extends$e() {
6357
- _extends$e = Object.assign || function(target) {
6260
+ function _extends$b() {
6261
+ _extends$b = Object.assign || function(target) {
6358
6262
  for(var i = 1; i < arguments.length; i++){
6359
6263
  var source = arguments[i];
6360
6264
  for(var key in source){
@@ -6365,9 +6269,9 @@ function _extends$e() {
6365
6269
  }
6366
6270
  return target;
6367
6271
  };
6368
- return _extends$e.apply(this, arguments);
6272
+ return _extends$b.apply(this, arguments);
6369
6273
  }
6370
- function _inherits$f(subClass, superClass) {
6274
+ function _inherits$c(subClass, superClass) {
6371
6275
  if (typeof superClass !== "function" && superClass !== null) {
6372
6276
  throw new TypeError("Super expression must either be null or a function");
6373
6277
  }
@@ -6378,14 +6282,14 @@ function _inherits$f(subClass, superClass) {
6378
6282
  configurable: true
6379
6283
  }
6380
6284
  });
6381
- if (superClass) _set_prototype_of$f(subClass, superClass);
6285
+ if (superClass) _set_prototype_of$c(subClass, superClass);
6382
6286
  }
6383
- function _set_prototype_of$f(o, p) {
6384
- _set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6287
+ function _set_prototype_of$c(o, p) {
6288
+ _set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6385
6289
  o.__proto__ = p;
6386
6290
  return o;
6387
6291
  };
6388
- return _set_prototype_of$f(o, p);
6292
+ return _set_prototype_of$c(o, p);
6389
6293
  }
6390
6294
  function _ts_generator$4(thisArg, body) {
6391
6295
  var f, y, t, _ = {
@@ -6487,10 +6391,10 @@ function _ts_generator$4(thisArg, body) {
6487
6391
  *
6488
6392
  * @category Control
6489
6393
  */ var Talk = /*#__PURE__*/ function(Control) {
6490
- _inherits$f(Talk, Control);
6394
+ _inherits$c(Talk, Control);
6491
6395
  function Talk(options) {
6492
6396
  var _this;
6493
- _this = Control.call(this, _extends$e({}, options, {
6397
+ _this = Control.call(this, _extends$b({}, options, {
6494
6398
  tagName: 'span',
6495
6399
  controlType: 'button',
6496
6400
  classNameSuffix: 'talk'
@@ -6623,8 +6527,8 @@ function _async_to_generator$3(fn) {
6623
6527
  });
6624
6528
  };
6625
6529
  }
6626
- function _extends$d() {
6627
- _extends$d = Object.assign || function(target) {
6530
+ function _extends$a() {
6531
+ _extends$a = Object.assign || function(target) {
6628
6532
  for(var i = 1; i < arguments.length; i++){
6629
6533
  var source = arguments[i];
6630
6534
  for(var key in source){
@@ -6635,9 +6539,9 @@ function _extends$d() {
6635
6539
  }
6636
6540
  return target;
6637
6541
  };
6638
- return _extends$d.apply(this, arguments);
6542
+ return _extends$a.apply(this, arguments);
6639
6543
  }
6640
- function _inherits$e(subClass, superClass) {
6544
+ function _inherits$b(subClass, superClass) {
6641
6545
  if (typeof superClass !== "function" && superClass !== null) {
6642
6546
  throw new TypeError("Super expression must either be null or a function");
6643
6547
  }
@@ -6648,14 +6552,14 @@ function _inherits$e(subClass, superClass) {
6648
6552
  configurable: true
6649
6553
  }
6650
6554
  });
6651
- if (superClass) _set_prototype_of$e(subClass, superClass);
6555
+ if (superClass) _set_prototype_of$b(subClass, superClass);
6652
6556
  }
6653
- function _set_prototype_of$e(o, p) {
6654
- _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6557
+ function _set_prototype_of$b(o, p) {
6558
+ _set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6655
6559
  o.__proto__ = p;
6656
6560
  return o;
6657
6561
  };
6658
- return _set_prototype_of$e(o, p);
6562
+ return _set_prototype_of$b(o, p);
6659
6563
  }
6660
6564
  function _ts_generator$3(thisArg, body) {
6661
6565
  var f, y, t, _ = {
@@ -6755,10 +6659,10 @@ function _ts_generator$3(thisArg, body) {
6755
6659
  *
6756
6660
  * @category Control
6757
6661
  */ var Broadcast = /*#__PURE__*/ function(Control) {
6758
- _inherits$e(Broadcast, Control);
6662
+ _inherits$b(Broadcast, Control);
6759
6663
  function Broadcast(options) {
6760
6664
  var _this;
6761
- _this = Control.call(this, _extends$d({}, options, {
6665
+ _this = Control.call(this, _extends$a({}, options, {
6762
6666
  tagName: 'span',
6763
6667
  controlType: 'button',
6764
6668
  classNameSuffix: 'broadcast'
@@ -6853,8 +6757,8 @@ function _async_to_generator$2(fn) {
6853
6757
  });
6854
6758
  };
6855
6759
  }
6856
- function _extends$c() {
6857
- _extends$c = Object.assign || function(target) {
6760
+ function _extends$9() {
6761
+ _extends$9 = Object.assign || function(target) {
6858
6762
  for(var i = 1; i < arguments.length; i++){
6859
6763
  var source = arguments[i];
6860
6764
  for(var key in source){
@@ -6865,9 +6769,9 @@ function _extends$c() {
6865
6769
  }
6866
6770
  return target;
6867
6771
  };
6868
- return _extends$c.apply(this, arguments);
6772
+ return _extends$9.apply(this, arguments);
6869
6773
  }
6870
- function _inherits$d(subClass, superClass) {
6774
+ function _inherits$a(subClass, superClass) {
6871
6775
  if (typeof superClass !== "function" && superClass !== null) {
6872
6776
  throw new TypeError("Super expression must either be null or a function");
6873
6777
  }
@@ -6878,14 +6782,14 @@ function _inherits$d(subClass, superClass) {
6878
6782
  configurable: true
6879
6783
  }
6880
6784
  });
6881
- if (superClass) _set_prototype_of$d(subClass, superClass);
6785
+ if (superClass) _set_prototype_of$a(subClass, superClass);
6882
6786
  }
6883
- function _set_prototype_of$d(o, p) {
6884
- _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6787
+ function _set_prototype_of$a(o, p) {
6788
+ _set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6885
6789
  o.__proto__ = p;
6886
6790
  return o;
6887
6791
  };
6888
- return _set_prototype_of$d(o, p);
6792
+ return _set_prototype_of$a(o, p);
6889
6793
  }
6890
6794
  function _ts_generator$2(thisArg, body) {
6891
6795
  var f, y, t, _ = {
@@ -6985,10 +6889,10 @@ function _ts_generator$2(thisArg, body) {
6985
6889
  *
6986
6890
  * @category Control
6987
6891
  */ var AIChat = /*#__PURE__*/ function(Control) {
6988
- _inherits$d(AIChat, Control);
6892
+ _inherits$a(AIChat, Control);
6989
6893
  function AIChat(options) {
6990
6894
  var _this;
6991
- _this = Control.call(this, _extends$c({}, options, {
6895
+ _this = Control.call(this, _extends$9({}, options, {
6992
6896
  tagName: 'span',
6993
6897
  controlType: 'button',
6994
6898
  classNameSuffix: 'aichat'
@@ -7054,340 +6958,6 @@ function _ts_generator$2(thisArg, body) {
7054
6958
  return AIChat;
7055
6959
  }(Control);
7056
6960
 
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
-
7391
6961
  function _defineProperties$1(target, props) {
7392
6962
  for(var i = 0; i < props.length; i++){
7393
6963
  var descriptor = props[i];
@@ -8380,9 +7950,6 @@ var Controls = {
8380
7950
  talk: Talk,
8381
7951
  broadcast: Broadcast,
8382
7952
  aiChat: AIChat,
8383
- live: Live,
8384
- recDropdown: RecDropdown,
8385
- alarmMessage: AlarmMessage,
8386
7953
  zoom: Zoom,
8387
7954
  definition: Definition,
8388
7955
  fullscreen: Fullscreen,
@@ -8916,10 +8483,7 @@ function _ts_generator$1(thisArg, body) {
8916
8483
  // 需要权限的控件
8917
8484
  var AUTH_KEY = [
8918
8485
  'ptz',
8919
- 'aiChat',
8920
- 'live',
8921
- 'recDropdown',
8922
- 'alarmMessage'
8486
+ 'aiChat'
8923
8487
  ];
8924
8488
  /**
8925
8489
  * 渲染控件
@@ -8999,7 +8563,7 @@ function _renderControls(theme, $container, btnList, props) {
8999
8563
  }
9000
8564
  function _renderTheme(theme, data) {
9001
8565
  return _async_to_generator$1(function() {
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;
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;
9003
8567
  return _ts_generator$1(this, function(_state) {
9004
8568
  switch(_state.label){
9005
8569
  case 0:
@@ -9140,8 +8704,9 @@ function _renderTheme(theme, data) {
9140
8704
  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 : []);
9141
8705
  // FIXME: 这个逻辑实际上是有问题的
9142
8706
  _needTimeLine = list.some(function(item) {
9143
- return REC_GROUP.includes(item.iconId) || item.iconId === 'recDropdown';
9144
- }) && ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.type) === 'rec';
8707
+ return REC_GROUP.includes(item.iconId);
8708
+ });
8709
+ theme.$container.classList.remove("" + PREFIX_CLASS + "-has-time-line");
9145
8710
  // PC 单独渲染timeLine
9146
8711
  if (!Utils.isMobile && !(theme.options.timeLineOptions === null || theme.options.disabledTimeLine) && _needTimeLine) {
9147
8712
  theme._recFooter = new RecFooter(theme.$container, {
@@ -9151,6 +8716,7 @@ function _renderTheme(theme, data) {
9151
8716
  _renderTimeLine(theme, theme._recFooter.$timeLineContainer, props);
9152
8717
  if (theme._footer) {
9153
8718
  theme._footer.$container.style.cssText += "bottom: 36px;";
8719
+ theme.$container.classList.add("" + PREFIX_CLASS + "-has-time-line");
9154
8720
  }
9155
8721
  if (theme.options.dateOptions !== null) {
9156
8722
  _renderDatePicker(theme, theme._recFooter.$datePickerContainer, props);
@@ -9172,23 +8738,6 @@ function _renderTheme(theme, data) {
9172
8738
  if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
9173
8739
  });
9174
8740
  }
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
- }
9192
8741
  if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('timeLine')) && _needTimeLine) {
9193
8742
  _renderTimeLine(theme, theme._mobileExtend.$content, props);
9194
8743
  }
@@ -9199,10 +8748,6 @@ function _renderTheme(theme, data) {
9199
8748
  }
9200
8749
  theme.emit(EVENTS.control.mountedControls);
9201
8750
  if (!theme.playing) theme._disabled(true);
9202
- // 同步 loading 状态(修复:_loadingControl 创建前设置的 loading=true 不生效的问题)
9203
- if (theme._loading && theme._loadingControl) {
9204
- theme._loadingControl.show();
9205
- }
9206
8751
  _controlEventemitter(theme);
9207
8752
  return [
9208
8753
  2
@@ -10009,8 +9554,13 @@ var THEME_DEFAULT_OPTIONS = {
10009
9554
  // 这里不要使用 $containerWarp.getBoundingClientRect() 获取宽和高 因为会出现小数导致两次(设置后的值和设置后再次获取的值)的宽高不一致 (因为缩放后取整设置,再次获取还有可能是带小数的然后取整 对比两次不一致,一般在屏幕缩放百分比变化和浏览器页面缩放时出现),致使一直触发 resize 事件
10010
9555
  var width = Math.floor(_this.$container.clientWidth);
10011
9556
  var height = Math.floor(_this.$container.clientHeight);
10012
- if (width > 200 && width <= 375) {
9557
+ if (width > 280 && width <= 375) {
10013
9558
  _this.$container.classList.add("" + PREFIX_CLASS + "-medium-width");
9559
+ _this.$container.classList.remove("" + PREFIX_CLASS + "-small-width");
9560
+ _this.$container.classList.remove("" + PREFIX_CLASS + "-mini-width");
9561
+ } else if (width > 200 && width <= 280) {
9562
+ _this.$container.classList.add("" + PREFIX_CLASS + "-small-width");
9563
+ _this.$container.classList.remove("" + PREFIX_CLASS + "-medium-width");
10014
9564
  _this.$container.classList.remove("" + PREFIX_CLASS + "-mini-width");
10015
9565
  } else {
10016
9566
  if (width <= 200) {
@@ -10018,10 +9568,16 @@ var THEME_DEFAULT_OPTIONS = {
10018
9568
  } else {
10019
9569
  _this.$container.classList.remove("" + PREFIX_CLASS + "-mini-width");
10020
9570
  }
9571
+ _this.$container.classList.remove("" + PREFIX_CLASS + "-small-width");
10021
9572
  _this.$container.classList.remove("" + PREFIX_CLASS + "-medium-width");
10022
9573
  }
10023
- if (height > 200 && height <= 375) {
9574
+ if (height > 280 && height <= 375) {
10024
9575
  _this.$container.classList.add("" + PREFIX_CLASS + "-medium-height");
9576
+ _this.$container.classList.remove("" + PREFIX_CLASS + "-small-height");
9577
+ _this.$container.classList.remove("" + PREFIX_CLASS + "-mini-height");
9578
+ } else if (height > 200 && height <= 280) {
9579
+ _this.$container.classList.add("" + PREFIX_CLASS + "-small-height");
9580
+ _this.$container.classList.remove("" + PREFIX_CLASS + "-medium-height");
10025
9581
  _this.$container.classList.remove("" + PREFIX_CLASS + "-mini-height");
10026
9582
  } else {
10027
9583
  if (height <= 200) {
@@ -10029,6 +9585,7 @@ var THEME_DEFAULT_OPTIONS = {
10029
9585
  } else {
10030
9586
  _this.$container.classList.remove("" + PREFIX_CLASS + "-mini-height");
10031
9587
  }
9588
+ _this.$container.classList.remove("" + PREFIX_CLASS + "-small-height");
10032
9589
  _this.$container.classList.remove("" + PREFIX_CLASS + "-medium-height");
10033
9590
  }
10034
9591
  //
@@ -10798,7 +10355,7 @@ var THEME_DEFAULT_OPTIONS = {
10798
10355
  zh: zh,
10799
10356
  en: en
10800
10357
  };
10801
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.1-beta.3';
10358
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.2-beta.1';
10802
10359
 
10803
10360
  exports.Control = Control;
10804
10361
  exports.EVENTS = EVENTS;