@ezuikit/player-theme 3.0.2-beta.3 → 3.1.0-beta.2

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.3
3
- * Copyright (c) 2026-05-20 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.0-beta.2
3
+ * Copyright (c) 2026-06-26 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  'use strict';
@@ -21,7 +21,6 @@ var controlTimeLine = require('@ezuikit/control-time-line');
21
21
  /**
22
22
  * 播放器的类名前缀
23
23
  */ var PREFIX_CLASS = 'ezplayer';
24
- /** */ var DATE_PICKER_ICON_WIDTH = 36;
25
24
  /** 填充模式 */ var THEME_SCALE_MODE_TYPE = {
26
25
  /** 画面完全填充canvas区域,画面会被拉伸 */ full: 0,
27
26
  /** 画面做等比缩放后,高或宽对齐canvas区域,画面不被拉伸,但有黑边 */ auto: 1,
@@ -210,6 +209,8 @@ var EVENTS = {
210
209
  /** 日期改变 */ dateChange: 'Control.dateChange',
211
210
  /** 日期改变 */ dateMonthChange: 'Control.dateMonthChange',
212
211
  /** 日期销毁 */ dateDestroy: 'Control.datePanelDestroy',
212
+ /** 时间面板展示隐藏变换 */ timePanelOpenChange: 'Control.timePanelOpenChange',
213
+ /** 时间改变 */ timeChange: 'Control.timeChange',
213
214
  /** 时间轴拖动结束 */ timeLineChange: 'Control.timeLineChange',
214
215
  /** 时间轴图片列表面板 */ timeLinePanelOpenChange: 'Control.timeLinePanelOpenChange',
215
216
  /** 时间轴控件销毁 */ timeLineDestroy: 'Control.timeLineDestroy',
@@ -252,7 +253,7 @@ function _create_class$9(Constructor, protoProps, staticProps) {
252
253
  if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
253
254
  return Constructor;
254
255
  }
255
- function _inherits$w(subClass, superClass) {
256
+ function _inherits$x(subClass, superClass) {
256
257
  if (typeof superClass !== "function" && superClass !== null) {
257
258
  throw new TypeError("Super expression must either be null or a function");
258
259
  }
@@ -263,14 +264,14 @@ function _inherits$w(subClass, superClass) {
263
264
  configurable: true
264
265
  }
265
266
  });
266
- if (superClass) _set_prototype_of$w(subClass, superClass);
267
+ if (superClass) _set_prototype_of$x(subClass, superClass);
267
268
  }
268
- function _set_prototype_of$w(o, p) {
269
- _set_prototype_of$w = Object.setPrototypeOf || function setPrototypeOf(o, p) {
269
+ function _set_prototype_of$x(o, p) {
270
+ _set_prototype_of$x = Object.setPrototypeOf || function setPrototypeOf(o, p) {
270
271
  o.__proto__ = p;
271
272
  return o;
272
273
  };
273
- return _set_prototype_of$w(o, p);
274
+ return _set_prototype_of$x(o, p);
274
275
  }
275
276
  /**
276
277
  * 控件基类
@@ -284,7 +285,7 @@ function _set_prototype_of$w(o, p) {
284
285
  * const myControl = new MyControl({})
285
286
  * ```
286
287
  */ var Control = /*#__PURE__*/ function(EventEmitter) {
287
- _inherits$w(Control, EventEmitter);
288
+ _inherits$x(Control, EventEmitter);
288
289
  function Control(options) {
289
290
  var _this;
290
291
  var _this___options;
@@ -459,8 +460,8 @@ function _set_prototype_of$w(o, p) {
459
460
  return Control;
460
461
  }(EventEmitter);
461
462
 
462
- function _extends$v() {
463
- _extends$v = Object.assign || function(target) {
463
+ function _extends$w() {
464
+ _extends$w = Object.assign || function(target) {
464
465
  for(var i = 1; i < arguments.length; i++){
465
466
  var source = arguments[i];
466
467
  for(var key in source){
@@ -471,9 +472,9 @@ function _extends$v() {
471
472
  }
472
473
  return target;
473
474
  };
474
- return _extends$v.apply(this, arguments);
475
+ return _extends$w.apply(this, arguments);
475
476
  }
476
- function _inherits$v(subClass, superClass) {
477
+ function _inherits$w(subClass, superClass) {
477
478
  if (typeof superClass !== "function" && superClass !== null) {
478
479
  throw new TypeError("Super expression must either be null or a function");
479
480
  }
@@ -484,25 +485,25 @@ function _inherits$v(subClass, superClass) {
484
485
  configurable: true
485
486
  }
486
487
  });
487
- if (superClass) _set_prototype_of$v(subClass, superClass);
488
+ if (superClass) _set_prototype_of$w(subClass, superClass);
488
489
  }
489
- function _set_prototype_of$v(o, p) {
490
- _set_prototype_of$v = Object.setPrototypeOf || function setPrototypeOf(o, p) {
490
+ function _set_prototype_of$w(o, p) {
491
+ _set_prototype_of$w = Object.setPrototypeOf || function setPrototypeOf(o, p) {
491
492
  o.__proto__ = p;
492
493
  return o;
493
494
  };
494
- return _set_prototype_of$v(o, p);
495
+ return _set_prototype_of$w(o, p);
495
496
  }
496
497
  var LOADING_DEFAULT_OPTIONS = {};
497
498
  /**
498
499
  * 加载动画控件
499
500
  * @category Control
500
501
  */ var Loading = /*#__PURE__*/ function(Control) {
501
- _inherits$v(Loading, Control);
502
+ _inherits$w(Loading, Control);
502
503
  function Loading(options) {
503
504
  if (options === void 0) options = {};
504
505
  var _this;
505
- _this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$v({}, options, {
506
+ _this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$w({}, options, {
506
507
  tagName: 'div',
507
508
  controlType: 'block',
508
509
  classNameSuffix: 'loading'
@@ -540,8 +541,8 @@ var LOADING_DEFAULT_OPTIONS = {};
540
541
  return Loading;
541
542
  }(Control);
542
543
 
543
- function _extends$u() {
544
- _extends$u = Object.assign || function(target) {
544
+ function _extends$v() {
545
+ _extends$v = Object.assign || function(target) {
545
546
  for(var i = 1; i < arguments.length; i++){
546
547
  var source = arguments[i];
547
548
  for(var key in source){
@@ -552,9 +553,9 @@ function _extends$u() {
552
553
  }
553
554
  return target;
554
555
  };
555
- return _extends$u.apply(this, arguments);
556
+ return _extends$v.apply(this, arguments);
556
557
  }
557
- function _inherits$u(subClass, superClass) {
558
+ function _inherits$v(subClass, superClass) {
558
559
  if (typeof superClass !== "function" && superClass !== null) {
559
560
  throw new TypeError("Super expression must either be null or a function");
560
561
  }
@@ -565,14 +566,14 @@ function _inherits$u(subClass, superClass) {
565
566
  configurable: true
566
567
  }
567
568
  });
568
- if (superClass) _set_prototype_of$u(subClass, superClass);
569
+ if (superClass) _set_prototype_of$v(subClass, superClass);
569
570
  }
570
- function _set_prototype_of$u(o, p) {
571
- _set_prototype_of$u = Object.setPrototypeOf || function setPrototypeOf(o, p) {
571
+ function _set_prototype_of$v(o, p) {
572
+ _set_prototype_of$v = Object.setPrototypeOf || function setPrototypeOf(o, p) {
572
573
  o.__proto__ = p;
573
574
  return o;
574
575
  };
575
- return _set_prototype_of$u(o, p);
576
+ return _set_prototype_of$v(o, p);
576
577
  }
577
578
  // 不放在服务器上 是因为有可能http加载失败
578
579
  // prettier-ignore
@@ -584,11 +585,11 @@ var POSTER_OPTIONS = {
584
585
  * 封面控件
585
586
  * @category Control
586
587
  */ var Poster = /*#__PURE__*/ function(Control) {
587
- _inherits$u(Poster, Control);
588
+ _inherits$v(Poster, Control);
588
589
  function Poster(options) {
589
590
  if (options === void 0) options = {};
590
591
  var _this;
591
- _this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$u({}, options, {
592
+ _this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$v({}, options, {
592
593
  tagName: 'div',
593
594
  controlType: 'block',
594
595
  classNameSuffix: 'poster'
@@ -697,7 +698,8 @@ var Icons = {
697
698
  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
699
  /** 直播 */ 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
700
  /** 回放 */ 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>'
701
+ /** 消息/告警 */ 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>',
702
+ time: '<svg fill="currentColor" width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="time">\n <path d="M10 1.66504C14.6026 1.66521 18.333 5.39635 18.333 9.99902C18.3328 14.6015 14.6025 18.3319 10 18.332C5.39733 18.332 1.66619 14.6017 1.66602 9.99902C1.66602 5.39624 5.39722 1.66504 10 1.66504ZM10 2.91504C6.08758 2.91504 2.91602 6.0866 2.91602 9.99902C2.91619 13.9113 6.08769 17.082 10 17.082C13.9122 17.0819 17.0828 13.9112 17.083 9.99902C17.083 6.08671 13.9123 2.91521 10 2.91504ZM10 6.875C10.3451 6.87508 10.625 7.1549 10.625 7.5V9.59863L10.71 9.63672C12.71 10.5481 13.253 10.796 13.6406 10.9727L13.7217 11.0098L13.8008 11.0459C13.8799 11.082 13.9609 11.1179 14.0557 11.1611C14.3697 11.3043 14.5083 11.6752 14.3652 11.9893C14.2221 12.3034 13.8512 12.442 13.5371 12.2988C13.4108 12.2412 13.3093 12.1949 13.2031 12.1465L13.1221 12.1094C12.7068 11.9201 12.1127 11.6495 9.74023 10.5684C9.51771 10.4667 9.375 10.2447 9.375 10V7.5C9.37504 7.15485 9.65485 6.875 10 6.875Z"/>\n </svg>'
701
703
  };
702
704
 
703
705
  /**
@@ -867,11 +869,15 @@ var IconComponents = {
867
869
  /** 消息 */ alarmMessage: function(attr) {
868
870
  if (attr === void 0) attr = {};
869
871
  return createIcon(Icons.alarmMessage, 'alarm-message', attr);
872
+ },
873
+ time: function(attr) {
874
+ if (attr === void 0) attr = {};
875
+ return createIcon(Icons.time, 'time', attr);
870
876
  }
871
877
  };
872
878
 
873
- function _extends$t() {
874
- _extends$t = Object.assign || function(target) {
879
+ function _extends$u() {
880
+ _extends$u = Object.assign || function(target) {
875
881
  for(var i = 1; i < arguments.length; i++){
876
882
  var source = arguments[i];
877
883
  for(var key in source){
@@ -882,9 +888,9 @@ function _extends$t() {
882
888
  }
883
889
  return target;
884
890
  };
885
- return _extends$t.apply(this, arguments);
891
+ return _extends$u.apply(this, arguments);
886
892
  }
887
- function _inherits$t(subClass, superClass) {
893
+ function _inherits$u(subClass, superClass) {
888
894
  if (typeof superClass !== "function" && superClass !== null) {
889
895
  throw new TypeError("Super expression must either be null or a function");
890
896
  }
@@ -895,25 +901,25 @@ function _inherits$t(subClass, superClass) {
895
901
  configurable: true
896
902
  }
897
903
  });
898
- if (superClass) _set_prototype_of$t(subClass, superClass);
904
+ if (superClass) _set_prototype_of$u(subClass, superClass);
899
905
  }
900
- function _set_prototype_of$t(o, p) {
901
- _set_prototype_of$t = Object.setPrototypeOf || function setPrototypeOf(o, p) {
906
+ function _set_prototype_of$u(o, p) {
907
+ _set_prototype_of$u = Object.setPrototypeOf || function setPrototypeOf(o, p) {
902
908
  o.__proto__ = p;
903
909
  return o;
904
910
  };
905
- return _set_prototype_of$t(o, p);
911
+ return _set_prototype_of$u(o, p);
906
912
  }
907
913
  var MESSAGE_DEFAULT_OPTIONS = {};
908
914
  /**
909
915
  * 消息控件
910
916
  * @category Control
911
917
  */ var Message = /*#__PURE__*/ function(Control) {
912
- _inherits$t(Message, Control);
918
+ _inherits$u(Message, Control);
913
919
  function Message(options) {
914
920
  if (options === void 0) options = {};
915
921
  var _this;
916
- _this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$t({}, options, {
922
+ _this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$u({}, options, {
917
923
  tagName: 'div',
918
924
  controlType: 'block'
919
925
  }))) || this, _this._$toast = null;
@@ -1066,8 +1072,8 @@ function _create_class$8(Constructor, protoProps, staticProps) {
1066
1072
  if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
1067
1073
  return Constructor;
1068
1074
  }
1069
- function _extends$s() {
1070
- _extends$s = Object.assign || function(target) {
1075
+ function _extends$t() {
1076
+ _extends$t = Object.assign || function(target) {
1071
1077
  for(var i = 1; i < arguments.length; i++){
1072
1078
  var source = arguments[i];
1073
1079
  for(var key in source){
@@ -1078,9 +1084,9 @@ function _extends$s() {
1078
1084
  }
1079
1085
  return target;
1080
1086
  };
1081
- return _extends$s.apply(this, arguments);
1087
+ return _extends$t.apply(this, arguments);
1082
1088
  }
1083
- function _inherits$s(subClass, superClass) {
1089
+ function _inherits$t(subClass, superClass) {
1084
1090
  if (typeof superClass !== "function" && superClass !== null) {
1085
1091
  throw new TypeError("Super expression must either be null or a function");
1086
1092
  }
@@ -1091,23 +1097,23 @@ function _inherits$s(subClass, superClass) {
1091
1097
  configurable: true
1092
1098
  }
1093
1099
  });
1094
- if (superClass) _set_prototype_of$s(subClass, superClass);
1100
+ if (superClass) _set_prototype_of$t(subClass, superClass);
1095
1101
  }
1096
- function _set_prototype_of$s(o, p) {
1097
- _set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1102
+ function _set_prototype_of$t(o, p) {
1103
+ _set_prototype_of$t = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1098
1104
  o.__proto__ = p;
1099
1105
  return o;
1100
1106
  };
1101
- return _set_prototype_of$s(o, p);
1107
+ return _set_prototype_of$t(o, p);
1102
1108
  }
1103
1109
  /**
1104
1110
  * 播放/暂停控件
1105
1111
  * @category Control
1106
1112
  */ var Play = /*#__PURE__*/ function(Control) {
1107
- _inherits$s(Play, Control);
1113
+ _inherits$t(Play, Control);
1108
1114
  function Play(options) {
1109
1115
  var _this;
1110
- _this = Control.call(this, _extends$s({}, options, {
1116
+ _this = Control.call(this, _extends$t({}, options, {
1111
1117
  tagName: 'span',
1112
1118
  controlType: 'button',
1113
1119
  classNameSuffix: 'play'
@@ -1723,8 +1729,8 @@ function _create_class$6(Constructor, protoProps, staticProps) {
1723
1729
  if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
1724
1730
  return Constructor;
1725
1731
  }
1726
- function _extends$r() {
1727
- _extends$r = Object.assign || function(target) {
1732
+ function _extends$s() {
1733
+ _extends$s = Object.assign || function(target) {
1728
1734
  for(var i = 1; i < arguments.length; i++){
1729
1735
  var source = arguments[i];
1730
1736
  for(var key in source){
@@ -1735,9 +1741,9 @@ function _extends$r() {
1735
1741
  }
1736
1742
  return target;
1737
1743
  };
1738
- return _extends$r.apply(this, arguments);
1744
+ return _extends$s.apply(this, arguments);
1739
1745
  }
1740
- function _inherits$r(subClass, superClass) {
1746
+ function _inherits$s(subClass, superClass) {
1741
1747
  if (typeof superClass !== "function" && superClass !== null) {
1742
1748
  throw new TypeError("Super expression must either be null or a function");
1743
1749
  }
@@ -1748,14 +1754,14 @@ function _inherits$r(subClass, superClass) {
1748
1754
  configurable: true
1749
1755
  }
1750
1756
  });
1751
- if (superClass) _set_prototype_of$r(subClass, superClass);
1757
+ if (superClass) _set_prototype_of$s(subClass, superClass);
1752
1758
  }
1753
- function _set_prototype_of$r(o, p) {
1754
- _set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1759
+ function _set_prototype_of$s(o, p) {
1760
+ _set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1755
1761
  o.__proto__ = p;
1756
1762
  return o;
1757
1763
  };
1758
- return _set_prototype_of$r(o, p);
1764
+ return _set_prototype_of$s(o, p);
1759
1765
  }
1760
1766
  var VOLUME_DEFAULT_OPTIONS = {
1761
1767
  volume: 0.8,
@@ -1769,12 +1775,12 @@ var VOLUME_DEFAULT_OPTIONS = {
1769
1775
  * 音量调节控件
1770
1776
  * @category Control
1771
1777
  */ var Volume = /*#__PURE__*/ function(Control) {
1772
- _inherits$r(Volume, Control);
1778
+ _inherits$s(Volume, Control);
1773
1779
  function Volume(options) {
1774
1780
  if (options === void 0) options = {};
1775
1781
  var _this;
1776
1782
  var _this__options_props, _this__options_props1, _this__options_props2, _this__options_props3;
1777
- _this = Control.call(this, _extends$r({}, options, {
1783
+ _this = Control.call(this, _extends$s({}, options, {
1778
1784
  tagName: 'span',
1779
1785
  classNameSuffix: 'volume',
1780
1786
  controlType: 'button'
@@ -2434,8 +2440,8 @@ var __fullscreenProvider__ = Provider.getInstance();
2434
2440
  return Fullscreen;
2435
2441
  }();
2436
2442
 
2437
- function _extends$q() {
2438
- _extends$q = Object.assign || function(target) {
2443
+ function _extends$r() {
2444
+ _extends$r = Object.assign || function(target) {
2439
2445
  for(var i = 1; i < arguments.length; i++){
2440
2446
  var source = arguments[i];
2441
2447
  for(var key in source){
@@ -2446,9 +2452,9 @@ function _extends$q() {
2446
2452
  }
2447
2453
  return target;
2448
2454
  };
2449
- return _extends$q.apply(this, arguments);
2455
+ return _extends$r.apply(this, arguments);
2450
2456
  }
2451
- function _inherits$q(subClass, superClass) {
2457
+ function _inherits$r(subClass, superClass) {
2452
2458
  if (typeof superClass !== "function" && superClass !== null) {
2453
2459
  throw new TypeError("Super expression must either be null or a function");
2454
2460
  }
@@ -2459,24 +2465,24 @@ function _inherits$q(subClass, superClass) {
2459
2465
  configurable: true
2460
2466
  }
2461
2467
  });
2462
- if (superClass) _set_prototype_of$q(subClass, superClass);
2468
+ if (superClass) _set_prototype_of$r(subClass, superClass);
2463
2469
  }
2464
- function _set_prototype_of$q(o, p) {
2465
- _set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2470
+ function _set_prototype_of$r(o, p) {
2471
+ _set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2466
2472
  o.__proto__ = p;
2467
2473
  return o;
2468
2474
  };
2469
- return _set_prototype_of$q(o, p);
2475
+ return _set_prototype_of$r(o, p);
2470
2476
  }
2471
2477
  /**
2472
2478
  * 全屏控件
2473
2479
  * @category Control
2474
2480
  */ var Fullscreen = /*#__PURE__*/ function(Control) {
2475
- _inherits$q(Fullscreen, Control);
2481
+ _inherits$r(Fullscreen, Control);
2476
2482
  function Fullscreen(options) {
2477
2483
  var _this;
2478
2484
  var _options_props, _this_options;
2479
- _this = Control.call(this, _extends$q({
2485
+ _this = Control.call(this, _extends$r({
2480
2486
  tagName: 'span',
2481
2487
  classNameSuffix: 'fullscreen',
2482
2488
  controlType: 'button'
@@ -2541,8 +2547,8 @@ function _set_prototype_of$q(o, p) {
2541
2547
  return Fullscreen;
2542
2548
  }(Control);
2543
2549
 
2544
- function _extends$p() {
2545
- _extends$p = Object.assign || function(target) {
2550
+ function _extends$q() {
2551
+ _extends$q = Object.assign || function(target) {
2546
2552
  for(var i = 1; i < arguments.length; i++){
2547
2553
  var source = arguments[i];
2548
2554
  for(var key in source){
@@ -2553,9 +2559,9 @@ function _extends$p() {
2553
2559
  }
2554
2560
  return target;
2555
2561
  };
2556
- return _extends$p.apply(this, arguments);
2562
+ return _extends$q.apply(this, arguments);
2557
2563
  }
2558
- function _inherits$p(subClass, superClass) {
2564
+ function _inherits$q(subClass, superClass) {
2559
2565
  if (typeof superClass !== "function" && superClass !== null) {
2560
2566
  throw new TypeError("Super expression must either be null or a function");
2561
2567
  }
@@ -2566,24 +2572,24 @@ function _inherits$p(subClass, superClass) {
2566
2572
  configurable: true
2567
2573
  }
2568
2574
  });
2569
- if (superClass) _set_prototype_of$p(subClass, superClass);
2575
+ if (superClass) _set_prototype_of$q(subClass, superClass);
2570
2576
  }
2571
- function _set_prototype_of$p(o, p) {
2572
- _set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2577
+ function _set_prototype_of$q(o, p) {
2578
+ _set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2573
2579
  o.__proto__ = p;
2574
2580
  return o;
2575
2581
  };
2576
- return _set_prototype_of$p(o, p);
2582
+ return _set_prototype_of$q(o, p);
2577
2583
  }
2578
2584
  /**
2579
2585
  * 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
2580
2586
  * @category Control
2581
2587
  */ var Rec = /*#__PURE__*/ function(Control) {
2582
- _inherits$p(Rec, Control);
2588
+ _inherits$q(Rec, Control);
2583
2589
  function Rec(options) {
2584
2590
  var _this;
2585
2591
  var _options_props;
2586
- _this = Control.call(this, _extends$p({}, options, {
2592
+ _this = Control.call(this, _extends$q({}, options, {
2587
2593
  tagName: 'div',
2588
2594
  controlType: 'block',
2589
2595
  classNameSuffix: 'rec'
@@ -2879,6 +2885,7 @@ var zh = {
2879
2885
  BTN_CLOUDRECORD: '云录制',
2880
2886
  BTN_REC: '本地存储',
2881
2887
  BTN_CALENDAR: '日历',
2888
+ BTN_TIME: '时间',
2882
2889
  BTN_MORE: '更多',
2883
2890
  DEVICE_NAME: '设备名称',
2884
2891
  DEVICE_ID: '设备序列号',
@@ -3159,6 +3166,7 @@ var en = {
3159
3166
  BTN_CLOUDRECORD: 'Cloud recording',
3160
3167
  BTN_REC: 'Local storage',
3161
3168
  BTN_CALENDAR: 'Calendar',
3169
+ BTN_TIME: 'Time',
3162
3170
  BTN_MORE: 'More',
3163
3171
  DEVICE_NAME: 'Device name',
3164
3172
  DEVICE_ID: 'Device serial number',
@@ -3856,7 +3864,7 @@ var en = {
3856
3864
  voice: voice
3857
3865
  };
3858
3866
 
3859
- function _inherits$o(subClass, superClass) {
3867
+ function _inherits$p(subClass, superClass) {
3860
3868
  if (typeof superClass !== "function" && superClass !== null) {
3861
3869
  throw new TypeError("Super expression must either be null or a function");
3862
3870
  }
@@ -3867,20 +3875,20 @@ function _inherits$o(subClass, superClass) {
3867
3875
  configurable: true
3868
3876
  }
3869
3877
  });
3870
- if (superClass) _set_prototype_of$o(subClass, superClass);
3878
+ if (superClass) _set_prototype_of$p(subClass, superClass);
3871
3879
  }
3872
- function _set_prototype_of$o(o, p) {
3873
- _set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3880
+ function _set_prototype_of$p(o, p) {
3881
+ _set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3874
3882
  o.__proto__ = p;
3875
3883
  return o;
3876
3884
  };
3877
- return _set_prototype_of$o(o, p);
3885
+ return _set_prototype_of$p(o, p);
3878
3886
  }
3879
3887
  /**
3880
3888
  * 截图控件
3881
3889
  * @category Content
3882
3890
  */ var Content = /*#__PURE__*/ function(EventEmitter) {
3883
- _inherits$o(Content, EventEmitter);
3891
+ _inherits$p(Content, EventEmitter);
3884
3892
  function Content(options) {
3885
3893
  var _this;
3886
3894
  _this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
@@ -3995,8 +4003,8 @@ function _set_prototype_of$o(o, p) {
3995
4003
  return Content;
3996
4004
  }(EventEmitter);
3997
4005
 
3998
- function _extends$o() {
3999
- _extends$o = Object.assign || function(target) {
4006
+ function _extends$p() {
4007
+ _extends$p = Object.assign || function(target) {
4000
4008
  for(var i = 1; i < arguments.length; i++){
4001
4009
  var source = arguments[i];
4002
4010
  for(var key in source){
@@ -4007,9 +4015,9 @@ function _extends$o() {
4007
4015
  }
4008
4016
  return target;
4009
4017
  };
4010
- return _extends$o.apply(this, arguments);
4018
+ return _extends$p.apply(this, arguments);
4011
4019
  }
4012
- function _inherits$n(subClass, superClass) {
4020
+ function _inherits$o(subClass, superClass) {
4013
4021
  if (typeof superClass !== "function" && superClass !== null) {
4014
4022
  throw new TypeError("Super expression must either be null or a function");
4015
4023
  }
@@ -4020,23 +4028,23 @@ function _inherits$n(subClass, superClass) {
4020
4028
  configurable: true
4021
4029
  }
4022
4030
  });
4023
- if (superClass) _set_prototype_of$n(subClass, superClass);
4031
+ if (superClass) _set_prototype_of$o(subClass, superClass);
4024
4032
  }
4025
- function _set_prototype_of$n(o, p) {
4026
- _set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4033
+ function _set_prototype_of$o(o, p) {
4034
+ _set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4027
4035
  o.__proto__ = p;
4028
4036
  return o;
4029
4037
  };
4030
- return _set_prototype_of$n(o, p);
4038
+ return _set_prototype_of$o(o, p);
4031
4039
  }
4032
4040
  /**
4033
4041
  * 更多控件
4034
4042
  * @category Control
4035
4043
  */ var More = /*#__PURE__*/ function(Control) {
4036
- _inherits$n(More, Control);
4044
+ _inherits$o(More, Control);
4037
4045
  function More(options) {
4038
4046
  var _this;
4039
- _this = Control.call(this, _extends$o({}, options, {
4047
+ _this = Control.call(this, _extends$p({}, options, {
4040
4048
  tagName: 'span',
4041
4049
  controlType: 'button',
4042
4050
  classNameSuffix: 'more'
@@ -4356,7 +4364,7 @@ function debounce(func, wait) {
4356
4364
  *
4357
4365
  * @param theme - Theme
4358
4366
  */ function _controlEventemitter(theme) {
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;
4367
+ 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, _theme_controls22;
4360
4368
  // Controls
4361
4369
  if (theme._recFooter) {
4362
4370
  theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
@@ -4611,10 +4619,14 @@ function debounce(func, wait) {
4611
4619
  theme.emit(EVENTS.control.timeLineChange, date);
4612
4620
  });
4613
4621
  theme.controls.timeLineControl.on(EVENTS.control.timeLinePanelOpenChange, function(open) {
4614
- var _theme_controls_dateControl, _theme_controls;
4622
+ var _theme_controls_dateControl, _theme_controls, _theme_controls_timeControl, _theme_controls1;
4615
4623
  if ((_theme_controls = theme.controls) == null ? void 0 : (_theme_controls_dateControl = _theme_controls.dateControl) == null ? void 0 : _theme_controls_dateControl.datePicker) {
4616
- var _theme_controls_dateControl_datePicker, _theme_controls_dateControl1, _theme_controls1;
4617
- (_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_dateControl1 = _theme_controls1.dateControl) == null ? void 0 : (_theme_controls_dateControl_datePicker = _theme_controls_dateControl1.datePicker) == null ? void 0 : _theme_controls_dateControl_datePicker.hide();
4624
+ var _theme_controls_dateControl_datePicker, _theme_controls_dateControl1, _theme_controls2;
4625
+ (_theme_controls2 = theme.controls) == null ? void 0 : (_theme_controls_dateControl1 = _theme_controls2.dateControl) == null ? void 0 : (_theme_controls_dateControl_datePicker = _theme_controls_dateControl1.datePicker) == null ? void 0 : _theme_controls_dateControl_datePicker.hide();
4626
+ }
4627
+ if ((_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_timeControl = _theme_controls1.timeControl) == null ? void 0 : _theme_controls_timeControl.timePicker) {
4628
+ var _theme_controls_timeControl_timePicker, _theme_controls_timeControl1, _theme_controls3;
4629
+ (_theme_controls3 = theme.controls) == null ? void 0 : (_theme_controls_timeControl1 = _theme_controls3.timeControl) == null ? void 0 : (_theme_controls_timeControl_timePicker = _theme_controls_timeControl1.timePicker) == null ? void 0 : _theme_controls_timeControl_timePicker.hide();
4618
4630
  }
4619
4631
  theme.emit(EVENTS.control.timeLinePanelOpenChange, open);
4620
4632
  });
@@ -4634,6 +4646,15 @@ function debounce(func, wait) {
4634
4646
  theme.emit(EVENTS.control.recDestroy);
4635
4647
  });
4636
4648
  }
4649
+ // 时间控件
4650
+ if ((_theme_controls22 = theme.controls) == null ? void 0 : _theme_controls22.timeControl) {
4651
+ theme.controls.timeControl.on(EVENTS.control.timePanelOpenChange, function(open, time) {
4652
+ theme.emit(EVENTS.control.timePanelOpenChange, open, time);
4653
+ });
4654
+ theme.controls.timeControl.on(EVENTS.control.timeChange, function(time) {
4655
+ theme.emit(EVENTS.control.timeChange, time);
4656
+ });
4657
+ }
4637
4658
  }
4638
4659
  var ignoreList = [
4639
4660
  EVENTS.getOSDTime,
@@ -4718,8 +4739,8 @@ function _create_class$5(Constructor, protoProps, staticProps) {
4718
4739
  if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
4719
4740
  return Constructor;
4720
4741
  }
4721
- function _extends$n() {
4722
- _extends$n = Object.assign || function(target) {
4742
+ function _extends$o() {
4743
+ _extends$o = Object.assign || function(target) {
4723
4744
  for(var i = 1; i < arguments.length; i++){
4724
4745
  var source = arguments[i];
4725
4746
  for(var key in source){
@@ -4730,9 +4751,9 @@ function _extends$n() {
4730
4751
  }
4731
4752
  return target;
4732
4753
  };
4733
- return _extends$n.apply(this, arguments);
4754
+ return _extends$o.apply(this, arguments);
4734
4755
  }
4735
- function _inherits$m(subClass, superClass) {
4756
+ function _inherits$n(subClass, superClass) {
4736
4757
  if (typeof superClass !== "function" && superClass !== null) {
4737
4758
  throw new TypeError("Super expression must either be null or a function");
4738
4759
  }
@@ -4743,14 +4764,14 @@ function _inherits$m(subClass, superClass) {
4743
4764
  configurable: true
4744
4765
  }
4745
4766
  });
4746
- if (superClass) _set_prototype_of$m(subClass, superClass);
4767
+ if (superClass) _set_prototype_of$n(subClass, superClass);
4747
4768
  }
4748
- function _set_prototype_of$m(o, p) {
4749
- _set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4769
+ function _set_prototype_of$n(o, p) {
4770
+ _set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4750
4771
  o.__proto__ = p;
4751
4772
  return o;
4752
4773
  };
4753
- return _set_prototype_of$m(o, p);
4774
+ return _set_prototype_of$n(o, p);
4754
4775
  }
4755
4776
  var ZOOM_DEFAULT_OPTIONS = {
4756
4777
  open: false,
@@ -4760,10 +4781,10 @@ var ZOOM_DEFAULT_OPTIONS = {
4760
4781
  * 电子放大控件
4761
4782
  * @category Control
4762
4783
  */ var Zoom = /*#__PURE__*/ function(Control) {
4763
- _inherits$m(Zoom, Control);
4784
+ _inherits$n(Zoom, Control);
4764
4785
  function Zoom(options) {
4765
4786
  var _this;
4766
- _this = Control.call(this, _extends$n({}, options, {
4787
+ _this = Control.call(this, _extends$o({}, options, {
4767
4788
  tagName: 'span',
4768
4789
  controlType: 'button',
4769
4790
  classNameSuffix: 'zoom'
@@ -4891,8 +4912,8 @@ var ZOOM_DEFAULT_OPTIONS = {
4891
4912
  return Zoom;
4892
4913
  }(Control);
4893
4914
 
4894
- function _extends$m() {
4895
- _extends$m = Object.assign || function(target) {
4915
+ function _extends$n() {
4916
+ _extends$n = Object.assign || function(target) {
4896
4917
  for(var i = 1; i < arguments.length; i++){
4897
4918
  var source = arguments[i];
4898
4919
  for(var key in source){
@@ -4903,10 +4924,10 @@ function _extends$m() {
4903
4924
  }
4904
4925
  return target;
4905
4926
  };
4906
- return _extends$m.apply(this, arguments);
4927
+ return _extends$n.apply(this, arguments);
4907
4928
  }
4908
4929
  function __zoom(theme, container, options) {
4909
- theme.zoomUtil = new Zoom$1(container, _extends$m({}, options || {}, {
4930
+ theme.zoomUtil = new Zoom$1(container, _extends$n({}, options || {}, {
4910
4931
  min: 1,
4911
4932
  onChange: function(zoom, reset) {
4912
4933
  if (zoom !== theme._zoom) {
@@ -5131,8 +5152,8 @@ function _async_to_generator$5(fn) {
5131
5152
  });
5132
5153
  };
5133
5154
  }
5134
- function _extends$l() {
5135
- _extends$l = Object.assign || function(target) {
5155
+ function _extends$m() {
5156
+ _extends$m = Object.assign || function(target) {
5136
5157
  for(var i = 1; i < arguments.length; i++){
5137
5158
  var source = arguments[i];
5138
5159
  for(var key in source){
@@ -5143,7 +5164,7 @@ function _extends$l() {
5143
5164
  }
5144
5165
  return target;
5145
5166
  };
5146
- return _extends$l.apply(this, arguments);
5167
+ return _extends$m.apply(this, arguments);
5147
5168
  }
5148
5169
  function _ts_generator$5(thisArg, body) {
5149
5170
  var f, y, t, _ = {
@@ -5271,7 +5292,7 @@ function _ts_generator$5(thisArg, body) {
5271
5292
  }
5272
5293
  if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
5273
5294
  // TODO: 因为回放是一组, 位置以第一个位置为准
5274
- recControls.push(recControls[0] ? _extends$l({}, item, {
5295
+ recControls.push(recControls[0] ? _extends$m({}, item, {
5275
5296
  part: recControls[0].part
5276
5297
  }) : item);
5277
5298
  return false;
@@ -5294,7 +5315,7 @@ function _ts_generator$5(thisArg, body) {
5294
5315
  }
5295
5316
  if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
5296
5317
  // TODO: 因为回放是一组, 位置以第一个位置为准
5297
- recControls.push(recControls[0] ? _extends$l({}, item, {
5318
+ recControls.push(recControls[0] ? _extends$m({}, item, {
5298
5319
  part: recControls[0].part
5299
5320
  }) : item);
5300
5321
  return false;
@@ -5545,8 +5566,8 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
5545
5566
  return Component;
5546
5567
  }();
5547
5568
 
5548
- function _extends$k() {
5549
- _extends$k = Object.assign || function(target) {
5569
+ function _extends$l() {
5570
+ _extends$l = Object.assign || function(target) {
5550
5571
  for(var i = 1; i < arguments.length; i++){
5551
5572
  var source = arguments[i];
5552
5573
  for(var key in source){
@@ -5557,9 +5578,9 @@ function _extends$k() {
5557
5578
  }
5558
5579
  return target;
5559
5580
  };
5560
- return _extends$k.apply(this, arguments);
5581
+ return _extends$l.apply(this, arguments);
5561
5582
  }
5562
- function _inherits$l(subClass, superClass) {
5583
+ function _inherits$m(subClass, superClass) {
5563
5584
  if (typeof superClass !== "function" && superClass !== null) {
5564
5585
  throw new TypeError("Super expression must either be null or a function");
5565
5586
  }
@@ -5570,28 +5591,28 @@ function _inherits$l(subClass, superClass) {
5570
5591
  configurable: true
5571
5592
  }
5572
5593
  });
5573
- if (superClass) _set_prototype_of$l(subClass, superClass);
5594
+ if (superClass) _set_prototype_of$m(subClass, superClass);
5574
5595
  }
5575
- function _set_prototype_of$l(o, p) {
5576
- _set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5596
+ function _set_prototype_of$m(o, p) {
5597
+ _set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5577
5598
  o.__proto__ = p;
5578
5599
  return o;
5579
5600
  };
5580
- return _set_prototype_of$l(o, p);
5601
+ return _set_prototype_of$m(o, p);
5581
5602
  }
5582
5603
  var Footer = /*#__PURE__*/ function(Component) {
5583
- _inherits$l(Footer, Component);
5604
+ _inherits$m(Footer, Component);
5584
5605
  function Footer(options) {
5585
5606
  if (options === void 0) options = {};
5586
- return Component.call(this, _extends$k({}, options, {
5607
+ return Component.call(this, _extends$l({}, options, {
5587
5608
  cType: 'footer'
5588
5609
  })) || this;
5589
5610
  }
5590
5611
  return Footer;
5591
5612
  }(Component);
5592
5613
 
5593
- function _extends$j() {
5594
- _extends$j = Object.assign || function(target) {
5614
+ function _extends$k() {
5615
+ _extends$k = Object.assign || function(target) {
5595
5616
  for(var i = 1; i < arguments.length; i++){
5596
5617
  var source = arguments[i];
5597
5618
  for(var key in source){
@@ -5602,9 +5623,9 @@ function _extends$j() {
5602
5623
  }
5603
5624
  return target;
5604
5625
  };
5605
- return _extends$j.apply(this, arguments);
5626
+ return _extends$k.apply(this, arguments);
5606
5627
  }
5607
- function _inherits$k(subClass, superClass) {
5628
+ function _inherits$l(subClass, superClass) {
5608
5629
  if (typeof superClass !== "function" && superClass !== null) {
5609
5630
  throw new TypeError("Super expression must either be null or a function");
5610
5631
  }
@@ -5615,20 +5636,20 @@ function _inherits$k(subClass, superClass) {
5615
5636
  configurable: true
5616
5637
  }
5617
5638
  });
5618
- if (superClass) _set_prototype_of$k(subClass, superClass);
5639
+ if (superClass) _set_prototype_of$l(subClass, superClass);
5619
5640
  }
5620
- function _set_prototype_of$k(o, p) {
5621
- _set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5641
+ function _set_prototype_of$l(o, p) {
5642
+ _set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5622
5643
  o.__proto__ = p;
5623
5644
  return o;
5624
5645
  };
5625
- return _set_prototype_of$k(o, p);
5646
+ return _set_prototype_of$l(o, p);
5626
5647
  }
5627
5648
  var Header = /*#__PURE__*/ function(Component) {
5628
- _inherits$k(Header, Component);
5649
+ _inherits$l(Header, Component);
5629
5650
  function Header(options) {
5630
5651
  if (options === void 0) options = {};
5631
- return Component.call(this, _extends$j({}, options, {
5652
+ return Component.call(this, _extends$k({}, options, {
5632
5653
  cType: 'header'
5633
5654
  })) || this;
5634
5655
  }
@@ -5794,8 +5815,8 @@ function interactiveHF($container, second, callback) {
5794
5815
  };
5795
5816
  }
5796
5817
 
5797
- function _extends$i() {
5798
- _extends$i = Object.assign || function(target) {
5818
+ function _extends$j() {
5819
+ _extends$j = Object.assign || function(target) {
5799
5820
  for(var i = 1; i < arguments.length; i++){
5800
5821
  var source = arguments[i];
5801
5822
  for(var key in source){
@@ -5806,9 +5827,9 @@ function _extends$i() {
5806
5827
  }
5807
5828
  return target;
5808
5829
  };
5809
- return _extends$i.apply(this, arguments);
5830
+ return _extends$j.apply(this, arguments);
5810
5831
  }
5811
- function _inherits$j(subClass, superClass) {
5832
+ function _inherits$k(subClass, superClass) {
5812
5833
  if (typeof superClass !== "function" && superClass !== null) {
5813
5834
  throw new TypeError("Super expression must either be null or a function");
5814
5835
  }
@@ -5819,23 +5840,23 @@ function _inherits$j(subClass, superClass) {
5819
5840
  configurable: true
5820
5841
  }
5821
5842
  });
5822
- if (superClass) _set_prototype_of$j(subClass, superClass);
5843
+ if (superClass) _set_prototype_of$k(subClass, superClass);
5823
5844
  }
5824
- function _set_prototype_of$j(o, p) {
5825
- _set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5845
+ function _set_prototype_of$k(o, p) {
5846
+ _set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5826
5847
  o.__proto__ = p;
5827
5848
  return o;
5828
5849
  };
5829
- return _set_prototype_of$j(o, p);
5850
+ return _set_prototype_of$k(o, p);
5830
5851
  }
5831
5852
  /**
5832
5853
  * 全局全屏
5833
5854
  * 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
5834
5855
  * @category Control
5835
5856
  */ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
5836
- _inherits$j(GlobalFullscreen, Fullscreen);
5857
+ _inherits$k(GlobalFullscreen, Fullscreen);
5837
5858
  function GlobalFullscreen(options) {
5838
- return Fullscreen.call(this, _extends$i({}, options, {
5859
+ return Fullscreen.call(this, _extends$j({}, options, {
5839
5860
  controlType: 'button',
5840
5861
  classNameSuffix: 'global-fullscreen'
5841
5862
  })) || this;
@@ -5866,8 +5887,8 @@ function _set_prototype_of$j(o, p) {
5866
5887
  return GlobalFullscreen;
5867
5888
  }(Fullscreen);
5868
5889
 
5869
- function _extends$h() {
5870
- _extends$h = Object.assign || function(target) {
5890
+ function _extends$i() {
5891
+ _extends$i = Object.assign || function(target) {
5871
5892
  for(var i = 1; i < arguments.length; i++){
5872
5893
  var source = arguments[i];
5873
5894
  for(var key in source){
@@ -5878,9 +5899,9 @@ function _extends$h() {
5878
5899
  }
5879
5900
  return target;
5880
5901
  };
5881
- return _extends$h.apply(this, arguments);
5902
+ return _extends$i.apply(this, arguments);
5882
5903
  }
5883
- function _inherits$i(subClass, superClass) {
5904
+ function _inherits$j(subClass, superClass) {
5884
5905
  if (typeof superClass !== "function" && superClass !== null) {
5885
5906
  throw new TypeError("Super expression must either be null or a function");
5886
5907
  }
@@ -5891,23 +5912,23 @@ function _inherits$i(subClass, superClass) {
5891
5912
  configurable: true
5892
5913
  }
5893
5914
  });
5894
- if (superClass) _set_prototype_of$i(subClass, superClass);
5915
+ if (superClass) _set_prototype_of$j(subClass, superClass);
5895
5916
  }
5896
- function _set_prototype_of$i(o, p) {
5897
- _set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5917
+ function _set_prototype_of$j(o, p) {
5918
+ _set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5898
5919
  o.__proto__ = p;
5899
5920
  return o;
5900
5921
  };
5901
- return _set_prototype_of$i(o, p);
5922
+ return _set_prototype_of$j(o, p);
5902
5923
  }
5903
5924
  /**
5904
5925
  * 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
5905
5926
  * @category Control
5906
5927
  */ var CapturePicture = /*#__PURE__*/ function(Control) {
5907
- _inherits$i(CapturePicture, Control);
5928
+ _inherits$j(CapturePicture, Control);
5908
5929
  function CapturePicture(options) {
5909
5930
  var _this;
5910
- _this = Control.call(this, _extends$h({}, options, {
5931
+ _this = Control.call(this, _extends$i({}, options, {
5911
5932
  tagName: 'span',
5912
5933
  classNameSuffix: 'capture-picture'
5913
5934
  })) || this, _this._timer = null;
@@ -5973,8 +5994,8 @@ function _create_class$4(Constructor, protoProps, staticProps) {
5973
5994
  if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
5974
5995
  return Constructor;
5975
5996
  }
5976
- function _extends$g() {
5977
- _extends$g = Object.assign || function(target) {
5997
+ function _extends$h() {
5998
+ _extends$h = Object.assign || function(target) {
5978
5999
  for(var i = 1; i < arguments.length; i++){
5979
6000
  var source = arguments[i];
5980
6001
  for(var key in source){
@@ -5985,9 +6006,9 @@ function _extends$g() {
5985
6006
  }
5986
6007
  return target;
5987
6008
  };
5988
- return _extends$g.apply(this, arguments);
6009
+ return _extends$h.apply(this, arguments);
5989
6010
  }
5990
- function _inherits$h(subClass, superClass) {
6011
+ function _inherits$i(subClass, superClass) {
5991
6012
  if (typeof superClass !== "function" && superClass !== null) {
5992
6013
  throw new TypeError("Super expression must either be null or a function");
5993
6014
  }
@@ -5998,23 +6019,23 @@ function _inherits$h(subClass, superClass) {
5998
6019
  configurable: true
5999
6020
  }
6000
6021
  });
6001
- if (superClass) _set_prototype_of$h(subClass, superClass);
6022
+ if (superClass) _set_prototype_of$i(subClass, superClass);
6002
6023
  }
6003
- function _set_prototype_of$h(o, p) {
6004
- _set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6024
+ function _set_prototype_of$i(o, p) {
6025
+ _set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6005
6026
  o.__proto__ = p;
6006
6027
  return o;
6007
6028
  };
6008
- return _set_prototype_of$h(o, p);
6029
+ return _set_prototype_of$i(o, p);
6009
6030
  }
6010
6031
  /**
6011
6032
  * 云台控件
6012
6033
  * @category Control
6013
6034
  */ var Ptz = /*#__PURE__*/ function(Control) {
6014
- _inherits$h(Ptz, Control);
6035
+ _inherits$i(Ptz, Control);
6015
6036
  function Ptz(options) {
6016
6037
  var _this;
6017
- _this = Control.call(this, _extends$g({}, options, {
6038
+ _this = Control.call(this, _extends$h({}, options, {
6018
6039
  tagName: 'span',
6019
6040
  controlType: 'button',
6020
6041
  classNameSuffix: 'ptz'
@@ -6057,7 +6078,7 @@ function _set_prototype_of$h(o, p) {
6057
6078
  this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
6058
6079
  this.$panel.appendChild(this.$turntable);
6059
6080
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
6060
- this._ptzControl = new controlPtz.Ptz(this.$turntable, _extends$g({}, this._options, {
6081
+ this._ptzControl = new controlPtz.Ptz(this.$turntable, _extends$h({}, this._options, {
6061
6082
  onSpeedChange: this._onSpeedChange.bind(this),
6062
6083
  onDirection: this._onDirection.bind(this)
6063
6084
  }));
@@ -6066,7 +6087,7 @@ function _set_prototype_of$h(o, p) {
6066
6087
  };
6067
6088
  _proto.renderMobileExtend = function renderMobileExtend($container) {
6068
6089
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
6069
- if (!this._ptzControl1) this._ptzControl1 = new controlPtz.MobilePtz($container, _extends$g({}, this._options, {
6090
+ if (!this._ptzControl1) this._ptzControl1 = new controlPtz.MobilePtz($container, _extends$h({}, this._options, {
6070
6091
  onSpeedChange: this._onSpeedChange.bind(this),
6071
6092
  onDirection: this._onDirection.bind(this)
6072
6093
  }));
@@ -6169,8 +6190,8 @@ function _create_class$3(Constructor, protoProps, staticProps) {
6169
6190
  if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
6170
6191
  return Constructor;
6171
6192
  }
6172
- function _extends$f() {
6173
- _extends$f = Object.assign || function(target) {
6193
+ function _extends$g() {
6194
+ _extends$g = Object.assign || function(target) {
6174
6195
  for(var i = 1; i < arguments.length; i++){
6175
6196
  var source = arguments[i];
6176
6197
  for(var key in source){
@@ -6181,9 +6202,9 @@ function _extends$f() {
6181
6202
  }
6182
6203
  return target;
6183
6204
  };
6184
- return _extends$f.apply(this, arguments);
6205
+ return _extends$g.apply(this, arguments);
6185
6206
  }
6186
- function _inherits$g(subClass, superClass) {
6207
+ function _inherits$h(subClass, superClass) {
6187
6208
  if (typeof superClass !== "function" && superClass !== null) {
6188
6209
  throw new TypeError("Super expression must either be null or a function");
6189
6210
  }
@@ -6194,14 +6215,14 @@ function _inherits$g(subClass, superClass) {
6194
6215
  configurable: true
6195
6216
  }
6196
6217
  });
6197
- if (superClass) _set_prototype_of$g(subClass, superClass);
6218
+ if (superClass) _set_prototype_of$h(subClass, superClass);
6198
6219
  }
6199
- function _set_prototype_of$g(o, p) {
6200
- _set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6220
+ function _set_prototype_of$h(o, p) {
6221
+ _set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6201
6222
  o.__proto__ = p;
6202
6223
  return o;
6203
6224
  };
6204
- return _set_prototype_of$g(o, p);
6225
+ return _set_prototype_of$h(o, p);
6205
6226
  }
6206
6227
  var RECORD_DEFAULT_OPTIONS = {
6207
6228
  maxDuration: 3600
@@ -6215,10 +6236,10 @@ var RECORD_DEFAULT_OPTIONS = {
6215
6236
  * 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
6216
6237
  * @category Control
6217
6238
  */ var Record = /*#__PURE__*/ function(Control) {
6218
- _inherits$g(Record, Control);
6239
+ _inherits$h(Record, Control);
6219
6240
  function Record(options) {
6220
6241
  var _this;
6221
- _this = Control.call(this, _extends$f({}, options, {
6242
+ _this = Control.call(this, _extends$g({}, options, {
6222
6243
  tagName: 'span',
6223
6244
  controlType: 'button',
6224
6245
  classNameSuffix: 'record'
@@ -6359,8 +6380,8 @@ function _create_class$2(Constructor, protoProps, staticProps) {
6359
6380
  if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
6360
6381
  return Constructor;
6361
6382
  }
6362
- function _extends$e() {
6363
- _extends$e = Object.assign || function(target) {
6383
+ function _extends$f() {
6384
+ _extends$f = Object.assign || function(target) {
6364
6385
  for(var i = 1; i < arguments.length; i++){
6365
6386
  var source = arguments[i];
6366
6387
  for(var key in source){
@@ -6371,9 +6392,9 @@ function _extends$e() {
6371
6392
  }
6372
6393
  return target;
6373
6394
  };
6374
- return _extends$e.apply(this, arguments);
6395
+ return _extends$f.apply(this, arguments);
6375
6396
  }
6376
- function _inherits$f(subClass, superClass) {
6397
+ function _inherits$g(subClass, superClass) {
6377
6398
  if (typeof superClass !== "function" && superClass !== null) {
6378
6399
  throw new TypeError("Super expression must either be null or a function");
6379
6400
  }
@@ -6384,14 +6405,14 @@ function _inherits$f(subClass, superClass) {
6384
6405
  configurable: true
6385
6406
  }
6386
6407
  });
6387
- if (superClass) _set_prototype_of$f(subClass, superClass);
6408
+ if (superClass) _set_prototype_of$g(subClass, superClass);
6388
6409
  }
6389
- function _set_prototype_of$f(o, p) {
6390
- _set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6410
+ function _set_prototype_of$g(o, p) {
6411
+ _set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6391
6412
  o.__proto__ = p;
6392
6413
  return o;
6393
6414
  };
6394
- return _set_prototype_of$f(o, p);
6415
+ return _set_prototype_of$g(o, p);
6395
6416
  }
6396
6417
  function _ts_generator$4(thisArg, body) {
6397
6418
  var f, y, t, _ = {
@@ -6493,10 +6514,10 @@ function _ts_generator$4(thisArg, body) {
6493
6514
  *
6494
6515
  * @category Control
6495
6516
  */ var Talk = /*#__PURE__*/ function(Control) {
6496
- _inherits$f(Talk, Control);
6517
+ _inherits$g(Talk, Control);
6497
6518
  function Talk(options) {
6498
6519
  var _this;
6499
- _this = Control.call(this, _extends$e({}, options, {
6520
+ _this = Control.call(this, _extends$f({}, options, {
6500
6521
  tagName: 'span',
6501
6522
  controlType: 'button',
6502
6523
  classNameSuffix: 'talk'
@@ -6629,8 +6650,8 @@ function _async_to_generator$3(fn) {
6629
6650
  });
6630
6651
  };
6631
6652
  }
6632
- function _extends$d() {
6633
- _extends$d = Object.assign || function(target) {
6653
+ function _extends$e() {
6654
+ _extends$e = Object.assign || function(target) {
6634
6655
  for(var i = 1; i < arguments.length; i++){
6635
6656
  var source = arguments[i];
6636
6657
  for(var key in source){
@@ -6641,9 +6662,9 @@ function _extends$d() {
6641
6662
  }
6642
6663
  return target;
6643
6664
  };
6644
- return _extends$d.apply(this, arguments);
6665
+ return _extends$e.apply(this, arguments);
6645
6666
  }
6646
- function _inherits$e(subClass, superClass) {
6667
+ function _inherits$f(subClass, superClass) {
6647
6668
  if (typeof superClass !== "function" && superClass !== null) {
6648
6669
  throw new TypeError("Super expression must either be null or a function");
6649
6670
  }
@@ -6654,14 +6675,14 @@ function _inherits$e(subClass, superClass) {
6654
6675
  configurable: true
6655
6676
  }
6656
6677
  });
6657
- if (superClass) _set_prototype_of$e(subClass, superClass);
6678
+ if (superClass) _set_prototype_of$f(subClass, superClass);
6658
6679
  }
6659
- function _set_prototype_of$e(o, p) {
6660
- _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6680
+ function _set_prototype_of$f(o, p) {
6681
+ _set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6661
6682
  o.__proto__ = p;
6662
6683
  return o;
6663
6684
  };
6664
- return _set_prototype_of$e(o, p);
6685
+ return _set_prototype_of$f(o, p);
6665
6686
  }
6666
6687
  function _ts_generator$3(thisArg, body) {
6667
6688
  var f, y, t, _ = {
@@ -6761,10 +6782,10 @@ function _ts_generator$3(thisArg, body) {
6761
6782
  *
6762
6783
  * @category Control
6763
6784
  */ var Broadcast = /*#__PURE__*/ function(Control) {
6764
- _inherits$e(Broadcast, Control);
6785
+ _inherits$f(Broadcast, Control);
6765
6786
  function Broadcast(options) {
6766
6787
  var _this;
6767
- _this = Control.call(this, _extends$d({}, options, {
6788
+ _this = Control.call(this, _extends$e({}, options, {
6768
6789
  tagName: 'span',
6769
6790
  controlType: 'button',
6770
6791
  classNameSuffix: 'broadcast'
@@ -6859,8 +6880,8 @@ function _async_to_generator$2(fn) {
6859
6880
  });
6860
6881
  };
6861
6882
  }
6862
- function _extends$c() {
6863
- _extends$c = Object.assign || function(target) {
6883
+ function _extends$d() {
6884
+ _extends$d = Object.assign || function(target) {
6864
6885
  for(var i = 1; i < arguments.length; i++){
6865
6886
  var source = arguments[i];
6866
6887
  for(var key in source){
@@ -6871,9 +6892,9 @@ function _extends$c() {
6871
6892
  }
6872
6893
  return target;
6873
6894
  };
6874
- return _extends$c.apply(this, arguments);
6895
+ return _extends$d.apply(this, arguments);
6875
6896
  }
6876
- function _inherits$d(subClass, superClass) {
6897
+ function _inherits$e(subClass, superClass) {
6877
6898
  if (typeof superClass !== "function" && superClass !== null) {
6878
6899
  throw new TypeError("Super expression must either be null or a function");
6879
6900
  }
@@ -6884,14 +6905,14 @@ function _inherits$d(subClass, superClass) {
6884
6905
  configurable: true
6885
6906
  }
6886
6907
  });
6887
- if (superClass) _set_prototype_of$d(subClass, superClass);
6908
+ if (superClass) _set_prototype_of$e(subClass, superClass);
6888
6909
  }
6889
- function _set_prototype_of$d(o, p) {
6890
- _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6910
+ function _set_prototype_of$e(o, p) {
6911
+ _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6891
6912
  o.__proto__ = p;
6892
6913
  return o;
6893
6914
  };
6894
- return _set_prototype_of$d(o, p);
6915
+ return _set_prototype_of$e(o, p);
6895
6916
  }
6896
6917
  function _ts_generator$2(thisArg, body) {
6897
6918
  var f, y, t, _ = {
@@ -6991,10 +7012,10 @@ function _ts_generator$2(thisArg, body) {
6991
7012
  *
6992
7013
  * @category Control
6993
7014
  */ var AIChat = /*#__PURE__*/ function(Control) {
6994
- _inherits$d(AIChat, Control);
7015
+ _inherits$e(AIChat, Control);
6995
7016
  function AIChat(options) {
6996
7017
  var _this;
6997
- _this = Control.call(this, _extends$c({}, options, {
7018
+ _this = Control.call(this, _extends$d({}, options, {
6998
7019
  tagName: 'span',
6999
7020
  controlType: 'button',
7000
7021
  classNameSuffix: 'aichat'
@@ -7060,8 +7081,8 @@ function _ts_generator$2(thisArg, body) {
7060
7081
  return AIChat;
7061
7082
  }(Control);
7062
7083
 
7063
- function _extends$b() {
7064
- _extends$b = Object.assign || function(target) {
7084
+ function _extends$c() {
7085
+ _extends$c = Object.assign || function(target) {
7065
7086
  for(var i = 1; i < arguments.length; i++){
7066
7087
  var source = arguments[i];
7067
7088
  for(var key in source){
@@ -7072,9 +7093,9 @@ function _extends$b() {
7072
7093
  }
7073
7094
  return target;
7074
7095
  };
7075
- return _extends$b.apply(this, arguments);
7096
+ return _extends$c.apply(this, arguments);
7076
7097
  }
7077
- function _inherits$c(subClass, superClass) {
7098
+ function _inherits$d(subClass, superClass) {
7078
7099
  if (typeof superClass !== "function" && superClass !== null) {
7079
7100
  throw new TypeError("Super expression must either be null or a function");
7080
7101
  }
@@ -7085,27 +7106,27 @@ function _inherits$c(subClass, superClass) {
7085
7106
  configurable: true
7086
7107
  }
7087
7108
  });
7088
- if (superClass) _set_prototype_of$c(subClass, superClass);
7109
+ if (superClass) _set_prototype_of$d(subClass, superClass);
7089
7110
  }
7090
- function _set_prototype_of$c(o, p) {
7091
- _set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7111
+ function _set_prototype_of$d(o, p) {
7112
+ _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7092
7113
  o.__proto__ = p;
7093
7114
  return o;
7094
7115
  };
7095
- return _set_prototype_of$c(o, p);
7116
+ return _set_prototype_of$d(o, p);
7096
7117
  }
7097
- /**
7098
- * 直播按钮控件
7099
- *
7100
- * 点击切换到直播模式
7101
- *
7102
- * @category Control
7118
+ /**
7119
+ * 直播按钮控件
7120
+ *
7121
+ * 点击切换到直播模式
7122
+ *
7123
+ * @category Control
7103
7124
  */ var Live = /*#__PURE__*/ function(Control) {
7104
- _inherits$c(Live, Control);
7125
+ _inherits$d(Live, Control);
7105
7126
  function Live(options) {
7106
7127
  var _this;
7107
7128
  var _this___options_props1;
7108
- _this = Control.call(this, _extends$b({}, options, {
7129
+ _this = Control.call(this, _extends$c({}, options, {
7109
7130
  tagName: 'span',
7110
7131
  controlType: 'button',
7111
7132
  classNameSuffix: 'live'
@@ -7121,9 +7142,9 @@ function _set_prototype_of$c(o, p) {
7121
7142
  return _this;
7122
7143
  }
7123
7144
  var _proto = Live.prototype;
7124
- /**
7125
- * 根据 urlInfo 同步激活状态
7126
- * 在初始化和播放地址切换后调用
7145
+ /**
7146
+ * 根据 urlInfo 同步激活状态
7147
+ * 在初始化和播放地址切换后调用
7127
7148
  */ _proto._syncActiveByUrlInfo = function _syncActiveByUrlInfo(urlInfo) {
7128
7149
  var shouldBeActive = !!(urlInfo && urlInfo.type === 'live');
7129
7150
  this.active = shouldBeActive;
@@ -7134,13 +7155,13 @@ function _set_prototype_of$c(o, p) {
7134
7155
  title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_LIVE) || '直播'
7135
7156
  });
7136
7157
  };
7137
- /**
7138
- * 销毁
7158
+ /**
7159
+ * 销毁
7139
7160
  */ _proto.destroy = function destroy() {
7140
7161
  Control.prototype.destroy.call(this);
7141
7162
  };
7142
- /**
7143
- * 点击 Control 会触发
7163
+ /**
7164
+ * 点击 Control 会触发
7144
7165
  */ _proto._onControlClick = function _onControlClick(e) {
7145
7166
  var _this__options_onChange, _this__options;
7146
7167
  Control.prototype._onControlClick.call(this, e);
@@ -7155,8 +7176,8 @@ function _set_prototype_of$c(o, p) {
7155
7176
  return Live;
7156
7177
  }(Control);
7157
7178
 
7158
- function _extends$a() {
7159
- _extends$a = Object.assign || function(target) {
7179
+ function _extends$b() {
7180
+ _extends$b = Object.assign || function(target) {
7160
7181
  for(var i = 1; i < arguments.length; i++){
7161
7182
  var source = arguments[i];
7162
7183
  for(var key in source){
@@ -7167,9 +7188,9 @@ function _extends$a() {
7167
7188
  }
7168
7189
  return target;
7169
7190
  };
7170
- return _extends$a.apply(this, arguments);
7191
+ return _extends$b.apply(this, arguments);
7171
7192
  }
7172
- function _inherits$b(subClass, superClass) {
7193
+ function _inherits$c(subClass, superClass) {
7173
7194
  if (typeof superClass !== "function" && superClass !== null) {
7174
7195
  throw new TypeError("Super expression must either be null or a function");
7175
7196
  }
@@ -7180,27 +7201,27 @@ function _inherits$b(subClass, superClass) {
7180
7201
  configurable: true
7181
7202
  }
7182
7203
  });
7183
- if (superClass) _set_prototype_of$b(subClass, superClass);
7204
+ if (superClass) _set_prototype_of$c(subClass, superClass);
7184
7205
  }
7185
- function _set_prototype_of$b(o, p) {
7186
- _set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7206
+ function _set_prototype_of$c(o, p) {
7207
+ _set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7187
7208
  o.__proto__ = p;
7188
7209
  return o;
7189
7210
  };
7190
- return _set_prototype_of$b(o, p);
7211
+ return _set_prototype_of$c(o, p);
7191
7212
  }
7192
- /**
7193
- * 回放下拉控件
7194
- *
7195
- * 鼠标移入弹出气泡,展示云存储、云录制、本地回放三个选项
7196
- *
7197
- * @category Control
7213
+ /**
7214
+ * 回放下拉控件
7215
+ *
7216
+ * 鼠标移入弹出气泡,展示云存储、云录制、本地回放三个选项
7217
+ *
7218
+ * @category Control
7198
7219
  */ var RecDropdown = /*#__PURE__*/ function(Control) {
7199
- _inherits$b(RecDropdown, Control);
7220
+ _inherits$c(RecDropdown, Control);
7200
7221
  function RecDropdown(options) {
7201
7222
  var _this;
7202
7223
  var _options_props, _this___options_props1;
7203
- _this = Control.call(this, _extends$a({}, options, {
7224
+ _this = Control.call(this, _extends$b({}, options, {
7204
7225
  tagName: 'span',
7205
7226
  controlType: 'button',
7206
7227
  classNameSuffix: 'rec-dropdown'
@@ -7218,9 +7239,9 @@ function _set_prototype_of$b(o, p) {
7218
7239
  return _this;
7219
7240
  }
7220
7241
  var _proto = RecDropdown.prototype;
7221
- /**
7222
- * 根据 urlInfo 同步激活状态和回放类型
7223
- * 在初始化和播放地址切换后调用
7242
+ /**
7243
+ * 根据 urlInfo 同步激活状态和回放类型
7244
+ * 在初始化和播放地址切换后调用
7224
7245
  */ _proto._syncActiveByUrlInfo = function _syncActiveByUrlInfo(urlInfo) {
7225
7246
  if (urlInfo && urlInfo.type === 'rec') {
7226
7247
  var _urlInfo_searchParams1;
@@ -7297,8 +7318,8 @@ function _set_prototype_of$b(o, p) {
7297
7318
  target == null ? void 0 : target.classList.add("" + PREFIX_CLASS + "-active");
7298
7319
  }
7299
7320
  };
7300
- /**
7301
- * 销毁
7321
+ /**
7322
+ * 销毁
7302
7323
  */ _proto.destroy = function destroy() {
7303
7324
  var _this__delegation_destroy, _this__delegation;
7304
7325
  (_this__delegation = this._delegation) == null ? void 0 : (_this__delegation_destroy = _this__delegation.destroy) == null ? void 0 : _this__delegation_destroy.call(_this__delegation);
@@ -7310,8 +7331,8 @@ function _set_prototype_of$b(o, p) {
7310
7331
  }
7311
7332
  Control.prototype.destroy.call(this);
7312
7333
  };
7313
- /**
7314
- * 点击 Control 会触发(移动端 click 触发 picker)
7334
+ /**
7335
+ * 点击 Control 会触发(移动端 click 触发 picker)
7315
7336
  */ // eslint-disable-next-line @typescript-eslint/no-unused-vars
7316
7337
  _proto._onControlClick = function _onControlClick(_e) {
7317
7338
  // picker 自行处理 click/hover,这里不额外处理
@@ -7319,8 +7340,8 @@ function _set_prototype_of$b(o, p) {
7319
7340
  return RecDropdown;
7320
7341
  }(Control);
7321
7342
 
7322
- function _extends$9() {
7323
- _extends$9 = Object.assign || function(target) {
7343
+ function _extends$a() {
7344
+ _extends$a = Object.assign || function(target) {
7324
7345
  for(var i = 1; i < arguments.length; i++){
7325
7346
  var source = arguments[i];
7326
7347
  for(var key in source){
@@ -7331,9 +7352,9 @@ function _extends$9() {
7331
7352
  }
7332
7353
  return target;
7333
7354
  };
7334
- return _extends$9.apply(this, arguments);
7355
+ return _extends$a.apply(this, arguments);
7335
7356
  }
7336
- function _inherits$a(subClass, superClass) {
7357
+ function _inherits$b(subClass, superClass) {
7337
7358
  if (typeof superClass !== "function" && superClass !== null) {
7338
7359
  throw new TypeError("Super expression must either be null or a function");
7339
7360
  }
@@ -7344,26 +7365,26 @@ function _inherits$a(subClass, superClass) {
7344
7365
  configurable: true
7345
7366
  }
7346
7367
  });
7347
- if (superClass) _set_prototype_of$a(subClass, superClass);
7368
+ if (superClass) _set_prototype_of$b(subClass, superClass);
7348
7369
  }
7349
- function _set_prototype_of$a(o, p) {
7350
- _set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7370
+ function _set_prototype_of$b(o, p) {
7371
+ _set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7351
7372
  o.__proto__ = p;
7352
7373
  return o;
7353
7374
  };
7354
- return _set_prototype_of$a(o, p);
7375
+ return _set_prototype_of$b(o, p);
7355
7376
  }
7356
- /**
7357
- * 告警消息按钮控件
7358
- *
7359
- * 点击弹出告警消息列表弹窗(纯触发按钮,无激活状态)
7360
- *
7361
- * @category Control
7377
+ /**
7378
+ * 告警消息按钮控件
7379
+ *
7380
+ * 点击弹出告警消息列表弹窗(纯触发按钮,无激活状态)
7381
+ *
7382
+ * @category Control
7362
7383
  */ var AlarmMessage = /*#__PURE__*/ function(Control) {
7363
- _inherits$a(AlarmMessage, Control);
7384
+ _inherits$b(AlarmMessage, Control);
7364
7385
  function AlarmMessage(options) {
7365
7386
  var _this;
7366
- _this = Control.call(this, _extends$9({}, options, {
7387
+ _this = Control.call(this, _extends$a({}, options, {
7367
7388
  tagName: 'span',
7368
7389
  controlType: 'button',
7369
7390
  classNameSuffix: 'alarm-message'
@@ -7382,16 +7403,16 @@ function _set_prototype_of$a(o, p) {
7382
7403
  title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_ALARM_MESSAGE) || '消息'
7383
7404
  });
7384
7405
  };
7385
- /**
7386
- * 销毁
7406
+ /**
7407
+ * 销毁
7387
7408
  */ _proto.destroy = function destroy() {
7388
7409
  if (this._panelOpen) {
7389
7410
  this.emit(EVENTS.control.alarmMessageChange, false);
7390
7411
  }
7391
7412
  Control.prototype.destroy.call(this);
7392
7413
  };
7393
- /**
7394
- * 点击 Control 会触发
7414
+ /**
7415
+ * 点击 Control 会触发
7395
7416
  */ _proto._onControlClick = function _onControlClick(e) {
7396
7417
  var _this__options_onChange, _this__options;
7397
7418
  Control.prototype._onControlClick.call(this, e);
@@ -7415,8 +7436,8 @@ function _create_class$1(Constructor, protoProps, staticProps) {
7415
7436
  if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
7416
7437
  return Constructor;
7417
7438
  }
7418
- function _extends$8() {
7419
- _extends$8 = Object.assign || function(target) {
7439
+ function _extends$9() {
7440
+ _extends$9 = Object.assign || function(target) {
7420
7441
  for(var i = 1; i < arguments.length; i++){
7421
7442
  var source = arguments[i];
7422
7443
  for(var key in source){
@@ -7427,9 +7448,9 @@ function _extends$8() {
7427
7448
  }
7428
7449
  return target;
7429
7450
  };
7430
- return _extends$8.apply(this, arguments);
7451
+ return _extends$9.apply(this, arguments);
7431
7452
  }
7432
- function _inherits$9(subClass, superClass) {
7453
+ function _inherits$a(subClass, superClass) {
7433
7454
  if (typeof superClass !== "function" && superClass !== null) {
7434
7455
  throw new TypeError("Super expression must either be null or a function");
7435
7456
  }
@@ -7440,14 +7461,14 @@ function _inherits$9(subClass, superClass) {
7440
7461
  configurable: true
7441
7462
  }
7442
7463
  });
7443
- if (superClass) _set_prototype_of$9(subClass, superClass);
7464
+ if (superClass) _set_prototype_of$a(subClass, superClass);
7444
7465
  }
7445
- function _set_prototype_of$9(o, p) {
7446
- _set_prototype_of$9 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7466
+ function _set_prototype_of$a(o, p) {
7467
+ _set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7447
7468
  o.__proto__ = p;
7448
7469
  return o;
7449
7470
  };
7450
- return _set_prototype_of$9(o, p);
7471
+ return _set_prototype_of$a(o, p);
7451
7472
  }
7452
7473
  var SELECT_DEFAULT_OPTIONS = {
7453
7474
  fieldNames: {
@@ -7509,11 +7530,11 @@ var SELECT_DEFAULT_OPTIONS = {
7509
7530
  * }
7510
7531
  * ```
7511
7532
  */ var Select = /*#__PURE__*/ function(Control) {
7512
- _inherits$9(Select, Control);
7533
+ _inherits$a(Select, Control);
7513
7534
  function Select(options) {
7514
7535
  var _this;
7515
7536
  var _this__options_fieldNames, _this__picker_$body;
7516
- _this = Control.call(this, _extends$8({
7537
+ _this = Control.call(this, _extends$9({
7517
7538
  tagName: 'span',
7518
7539
  type: 'button',
7519
7540
  controlType: 'button'
@@ -7711,8 +7732,8 @@ function _assert_this_initialized$1(self) {
7711
7732
  }
7712
7733
  return self;
7713
7734
  }
7714
- function _extends$7() {
7715
- _extends$7 = Object.assign || function(target) {
7735
+ function _extends$8() {
7736
+ _extends$8 = Object.assign || function(target) {
7716
7737
  for(var i = 1; i < arguments.length; i++){
7717
7738
  var source = arguments[i];
7718
7739
  for(var key in source){
@@ -7723,9 +7744,9 @@ function _extends$7() {
7723
7744
  }
7724
7745
  return target;
7725
7746
  };
7726
- return _extends$7.apply(this, arguments);
7747
+ return _extends$8.apply(this, arguments);
7727
7748
  }
7728
- function _inherits$8(subClass, superClass) {
7749
+ function _inherits$9(subClass, superClass) {
7729
7750
  if (typeof superClass !== "function" && superClass !== null) {
7730
7751
  throw new TypeError("Super expression must either be null or a function");
7731
7752
  }
@@ -7736,14 +7757,14 @@ function _inherits$8(subClass, superClass) {
7736
7757
  configurable: true
7737
7758
  }
7738
7759
  });
7739
- if (superClass) _set_prototype_of$8(subClass, superClass);
7760
+ if (superClass) _set_prototype_of$9(subClass, superClass);
7740
7761
  }
7741
- function _set_prototype_of$8(o, p) {
7742
- _set_prototype_of$8 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7762
+ function _set_prototype_of$9(o, p) {
7763
+ _set_prototype_of$9 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7743
7764
  o.__proto__ = p;
7744
7765
  return o;
7745
7766
  };
7746
- return _set_prototype_of$8(o, p);
7767
+ return _set_prototype_of$9(o, p);
7747
7768
  }
7748
7769
  function _type_of(obj) {
7749
7770
  "@swc/helpers - typeof";
@@ -7793,12 +7814,12 @@ function __filter(list, locale) {
7793
7814
  *
7794
7815
  * @category Control
7795
7816
  */ var Definition = /*#__PURE__*/ function(Select) {
7796
- _inherits$8(Definition, Select);
7817
+ _inherits$9(Definition, Select);
7797
7818
  function Definition(options) {
7798
7819
  if (options === void 0) options = {};
7799
7820
  var _this;
7800
7821
  var _options_props, _options_props1, _options_locales_options_language;
7801
- _this = Select.call(this, _extends$7({}, DEFINITION_DEFAULT_OPTIONS, {
7822
+ _this = Select.call(this, _extends$8({}, DEFINITION_DEFAULT_OPTIONS, {
7802
7823
  value: (_options_props = options.props) == null ? void 0 : _options_props.videoLevel
7803
7824
  }, options, {
7804
7825
  fieldNames: {
@@ -7872,8 +7893,8 @@ function _assert_this_initialized(self) {
7872
7893
  }
7873
7894
  return self;
7874
7895
  }
7875
- function _extends$6() {
7876
- _extends$6 = Object.assign || function(target) {
7896
+ function _extends$7() {
7897
+ _extends$7 = Object.assign || function(target) {
7877
7898
  for(var i = 1; i < arguments.length; i++){
7878
7899
  var source = arguments[i];
7879
7900
  for(var key in source){
@@ -7884,9 +7905,9 @@ function _extends$6() {
7884
7905
  }
7885
7906
  return target;
7886
7907
  };
7887
- return _extends$6.apply(this, arguments);
7908
+ return _extends$7.apply(this, arguments);
7888
7909
  }
7889
- function _inherits$7(subClass, superClass) {
7910
+ function _inherits$8(subClass, superClass) {
7890
7911
  if (typeof superClass !== "function" && superClass !== null) {
7891
7912
  throw new TypeError("Super expression must either be null or a function");
7892
7913
  }
@@ -7897,14 +7918,14 @@ function _inherits$7(subClass, superClass) {
7897
7918
  configurable: true
7898
7919
  }
7899
7920
  });
7900
- if (superClass) _set_prototype_of$7(subClass, superClass);
7921
+ if (superClass) _set_prototype_of$8(subClass, superClass);
7901
7922
  }
7902
- function _set_prototype_of$7(o, p) {
7903
- _set_prototype_of$7 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7923
+ function _set_prototype_of$8(o, p) {
7924
+ _set_prototype_of$8 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7904
7925
  o.__proto__ = p;
7905
7926
  return o;
7906
7927
  };
7907
- return _set_prototype_of$7(o, p);
7928
+ return _set_prototype_of$8(o, p);
7908
7929
  }
7909
7930
  // 支持的倍速列表, 需要是 2 的指数,不能小于 0.5, 最大 16 倍
7910
7931
  var SUPPORT_SPEED = [
@@ -7938,11 +7959,11 @@ var SPEED_DEFAULT_OPTIONS = {
7938
7959
  * 2. 标准流不支持;
7939
7960
  * @category Control
7940
7961
  */ var Speed = /*#__PURE__*/ function(Select) {
7941
- _inherits$7(Speed, Select);
7962
+ _inherits$8(Speed, Select);
7942
7963
  function Speed(options) {
7943
7964
  var _this;
7944
7965
  var _options_locales_options_language, _options_locales;
7945
- _this = Select.call(this, _extends$6({}, SPEED_DEFAULT_OPTIONS, options, {
7966
+ _this = Select.call(this, _extends$7({}, SPEED_DEFAULT_OPTIONS, options, {
7946
7967
  value: (options.props.speed || 1) + '',
7947
7968
  classNameSuffix: 'speed',
7948
7969
  controlType: 'button',
@@ -7996,8 +8017,8 @@ var SPEED_DEFAULT_OPTIONS = {
7996
8017
  return Speed;
7997
8018
  }(Select);
7998
8019
 
7999
- function _extends$5() {
8000
- _extends$5 = Object.assign || function(target) {
8020
+ function _extends$6() {
8021
+ _extends$6 = Object.assign || function(target) {
8001
8022
  for(var i = 1; i < arguments.length; i++){
8002
8023
  var source = arguments[i];
8003
8024
  for(var key in source){
@@ -8008,9 +8029,9 @@ function _extends$5() {
8008
8029
  }
8009
8030
  return target;
8010
8031
  };
8011
- return _extends$5.apply(this, arguments);
8032
+ return _extends$6.apply(this, arguments);
8012
8033
  }
8013
- function _inherits$6(subClass, superClass) {
8034
+ function _inherits$7(subClass, superClass) {
8014
8035
  if (typeof superClass !== "function" && superClass !== null) {
8015
8036
  throw new TypeError("Super expression must either be null or a function");
8016
8037
  }
@@ -8021,24 +8042,24 @@ function _inherits$6(subClass, superClass) {
8021
8042
  configurable: true
8022
8043
  }
8023
8044
  });
8024
- if (superClass) _set_prototype_of$6(subClass, superClass);
8045
+ if (superClass) _set_prototype_of$7(subClass, superClass);
8025
8046
  }
8026
- function _set_prototype_of$6(o, p) {
8027
- _set_prototype_of$6 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8047
+ function _set_prototype_of$7(o, p) {
8048
+ _set_prototype_of$7 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8028
8049
  o.__proto__ = p;
8029
8050
  return o;
8030
8051
  };
8031
- return _set_prototype_of$6(o, p);
8052
+ return _set_prototype_of$7(o, p);
8032
8053
  }
8033
8054
  /**
8034
8055
  * 日历选择器控件
8035
8056
  * @category Control
8036
8057
  */ var DatePickerControl = /*#__PURE__*/ function(Control) {
8037
- _inherits$6(DatePickerControl, Control);
8058
+ _inherits$7(DatePickerControl, Control);
8038
8059
  function DatePickerControl(options) {
8039
8060
  var _this;
8040
8061
  var _this_options_props_urlInfo_searchParams, _this_options_props_urlInfo, _this_options_props;
8041
- _this = Control.call(this, _extends$5({
8062
+ _this = Control.call(this, _extends$6({
8042
8063
  maxDate: new Date()
8043
8064
  }, options, {
8044
8065
  tagName: 'span',
@@ -8069,11 +8090,8 @@ function _set_prototype_of$6(o, p) {
8069
8090
  title: (_this_locale1 = this.locale) == null ? void 0 : _this_locale1.BTN_CALENDAR
8070
8091
  });
8071
8092
  }
8072
- this.datePicker = new controlDatePicker.DatePicker(this.$container, {
8093
+ this.datePicker = new controlDatePicker.DatePicker(this.$container, _extends$6({
8073
8094
  isMobile: isMobile1,
8074
- getPopupContainer: function() {
8075
- return _this.$container;
8076
- },
8077
8095
  mode: 'date',
8078
8096
  offset: [
8079
8097
  0,
@@ -8086,6 +8104,11 @@ function _set_prototype_of$6(o, p) {
8086
8104
  triggerClose: true,
8087
8105
  disabledDate: function(date) {
8088
8106
  return date.getTime() > (_this.options.maxDate || new Date()).getTime();
8107
+ }
8108
+ }, this.options || {}, {
8109
+ // 不支持自定义
8110
+ getPopupContainer: function() {
8111
+ return _this.$container;
8089
8112
  },
8090
8113
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
8091
8114
  onOk: function(date, _mode) {
@@ -8109,7 +8132,7 @@ function _set_prototype_of$6(o, p) {
8109
8132
  _this.options.onPanelChange == null ? void 0 : _this.options.onPanelChange.call(_this.options, open, _this.datePicker.current);
8110
8133
  _this.emit(EVENTS.control.datePanelOpenChange, open, _this.datePicker.current);
8111
8134
  }
8112
- });
8135
+ }));
8113
8136
  };
8114
8137
  /**
8115
8138
  * 设置日期, change = true 时触发 onChange 事件
@@ -8154,6 +8177,145 @@ function _set_prototype_of$6(o, p) {
8154
8177
  return DatePickerControl;
8155
8178
  }(Control);
8156
8179
 
8180
+ function _extends$5() {
8181
+ _extends$5 = Object.assign || function(target) {
8182
+ for(var i = 1; i < arguments.length; i++){
8183
+ var source = arguments[i];
8184
+ for(var key in source){
8185
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
8186
+ target[key] = source[key];
8187
+ }
8188
+ }
8189
+ }
8190
+ return target;
8191
+ };
8192
+ return _extends$5.apply(this, arguments);
8193
+ }
8194
+ function _inherits$6(subClass, superClass) {
8195
+ if (typeof superClass !== "function" && superClass !== null) {
8196
+ throw new TypeError("Super expression must either be null or a function");
8197
+ }
8198
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
8199
+ constructor: {
8200
+ value: subClass,
8201
+ writable: true,
8202
+ configurable: true
8203
+ }
8204
+ });
8205
+ if (superClass) _set_prototype_of$6(subClass, superClass);
8206
+ }
8207
+ function _set_prototype_of$6(o, p) {
8208
+ _set_prototype_of$6 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8209
+ o.__proto__ = p;
8210
+ return o;
8211
+ };
8212
+ return _set_prototype_of$6(o, p);
8213
+ }
8214
+ /** 时间格式 HH:mm:ss */ var TIME_FORMAT = 'HH:mm:ss';
8215
+ /**
8216
+ * 时间选择器控件
8217
+ * @category Control
8218
+ */ var TimePickerControl = /*#__PURE__*/ function(Control) {
8219
+ _inherits$6(TimePickerControl, Control);
8220
+ function TimePickerControl(options) {
8221
+ var _this;
8222
+ var _this_options_props_urlInfo_searchParams, _this_options_props_urlInfo, _this_options_props;
8223
+ _this = Control.call(this, _extends$5({}, options, {
8224
+ tagName: 'span',
8225
+ controlType: 'button',
8226
+ classNameSuffix: 'time'
8227
+ })) || this;
8228
+ _this.options = options;
8229
+ _this._value = utilsTools.DateTime.format(((_this_options_props = _this.options.props) == null ? void 0 : (_this_options_props_urlInfo = _this_options_props.urlInfo) == null ? void 0 : (_this_options_props_urlInfo_searchParams = _this_options_props_urlInfo.searchParams) == null ? void 0 : _this_options_props_urlInfo_searchParams.begin) || _this.options.current || new Date(), TIME_FORMAT);
8230
+ _this._render();
8231
+ return _this;
8232
+ }
8233
+ var _proto = TimePickerControl.prototype;
8234
+ _proto._render = function _render() {
8235
+ var _this = this;
8236
+ var _this_locale;
8237
+ utilsTools.isMobile();
8238
+ // if (isMobile1) {
8239
+ // this.$container.innerHTML = `
8240
+ // <span class="${PREFIX_CLASS}-mobile-date-filter" title="${(this.locale?.BTN_TIME || '') as string}">
8241
+ // <span class="${PREFIX_CLASS}-mobile-date-filter-value">${this._getTimeStr()}</span>
8242
+ // ${IconComponents.filter()}
8243
+ // <span>`;
8244
+ // } else {
8245
+ this.$container.innerHTML = IconComponents.time({
8246
+ title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_TIME
8247
+ });
8248
+ // }
8249
+ this.timePicker = new controlDatePicker.TimePicker(this.$container, _extends$5({
8250
+ showHeader: false,
8251
+ isMobile: false,
8252
+ offset: [
8253
+ 0,
8254
+ -10
8255
+ ],
8256
+ language: this.options.language === 'zh' ? 'zh' : 'en',
8257
+ current: this._value,
8258
+ placement: 'tr',
8259
+ triggerClose: true
8260
+ }, this.options || {}, {
8261
+ // 不支持自定义
8262
+ getPopupContainer: function() {
8263
+ return _this.$container;
8264
+ },
8265
+ onChange: function(time, _times) {
8266
+ if (time && _this._value !== time) {
8267
+ _this._value = time;
8268
+ _this.options.onChange == null ? void 0 : _this.options.onChange.call(_this.options, time, _times);
8269
+ _this.emit(EVENTS.control.timeChange, time);
8270
+ }
8271
+ },
8272
+ onOpenChange: function(open) {
8273
+ _this.options.onPanelChange == null ? void 0 : _this.options.onPanelChange.call(_this.options, open, _this.timePicker.current);
8274
+ _this.emit(EVENTS.control.timePanelOpenChange, open, _this.timePicker.current);
8275
+ }
8276
+ }));
8277
+ };
8278
+ /**
8279
+ * 设置时间
8280
+ * @param time 设置的时间 HH:mm:ss
8281
+ */ _proto.setTime = function setTime(time) {
8282
+ var _this_timePicker;
8283
+ (_this_timePicker = this.timePicker) == null ? void 0 : _this_timePicker.setCurrent(time);
8284
+ if (time && this._value !== time) {
8285
+ this._value = time;
8286
+ var valueEl = this.$container.querySelector("." + PREFIX_CLASS + "-mobile-date-filter-value");
8287
+ if (valueEl) {
8288
+ valueEl.innerHTML = this._getTimeStr();
8289
+ }
8290
+ }
8291
+ };
8292
+ _proto.reset = function reset() {
8293
+ if (this.timePicker) this.timePicker.open = false;
8294
+ Control.prototype.reset.call(this);
8295
+ };
8296
+ /**
8297
+ * 销毁控件
8298
+ * @override
8299
+ */ _proto.destroy = function destroy() {
8300
+ if (this.timePicker) {
8301
+ this.timePicker.destroy();
8302
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
8303
+ this.timePicker = null;
8304
+ }
8305
+ Control.prototype.destroy.call(this);
8306
+ };
8307
+ _proto._getTimeStr = function _getTimeStr() {
8308
+ return this._value;
8309
+ };
8310
+ /**
8311
+ * 点击 Control 会触发
8312
+ * @overload super._onControlClick(e: Event)
8313
+ */ _proto._onControlClick = function _onControlClick(e) {
8314
+ Control.prototype._onControlClick.call(this, e);
8315
+ };
8316
+ return TimePickerControl;
8317
+ }(Control);
8318
+
8157
8319
  function _extends$4() {
8158
8320
  _extends$4 = Object.assign || function(target) {
8159
8321
  for(var i = 1; i < arguments.length; i++){
@@ -8199,9 +8361,16 @@ function _set_prototype_of$5(o, p) {
8199
8361
  tagName: 'div',
8200
8362
  controlType: 'block',
8201
8363
  classNameSuffix: 'time-line'
8202
- })) || this, _this._$add = null, _this._$reduce = null, _this._currentTime = 0, _this.records = [];
8364
+ })) || this, _this._$add = null, _this._$reduce = null, _this._$scaleWrapper = null, _this._currentTime = 0, _this.records = [];
8203
8365
  _this._currentTime = 0;
8204
- _this._options = options;
8366
+ _this._options = deepmerge.all([
8367
+ {
8368
+ showTimeWidthBtn: true
8369
+ },
8370
+ options
8371
+ ], {
8372
+ clone: false
8373
+ });
8205
8374
  _this.records = ((_this__options = _this._options) == null ? void 0 : (_this__options_props = _this__options.props) == null ? void 0 : _this__options_props.recordList) || [];
8206
8375
  _this._render();
8207
8376
  _this.on(EVENTS.setAllDayRecTimes, function(records) {
@@ -8226,11 +8395,19 @@ function _set_prototype_of$5(o, p) {
8226
8395
  var _this = this;
8227
8396
  var _this_timeLineUtil_updateTimeSections, _this_timeLineUtil;
8228
8397
  var _this__options_showTimeWidthBtn, _this__options_showCoverFold;
8229
- var _timeLineOptions = {
8398
+ var _timeLineOptions = _extends$4({
8230
8399
  language: this._options.language || 'zh',
8231
8400
  coverQuery: this._options.coverQuery || '',
8232
8401
  showTimeWidthBtn: (_this__options_showTimeWidthBtn = this._options.showTimeWidthBtn) != null ? _this__options_showTimeWidthBtn : true,
8233
8402
  showCoverFold: (_this__options_showCoverFold = this._options.showCoverFold) != null ? _this__options_showCoverFold : true,
8403
+ hoverTipPlacement: 'top'
8404
+ }, this._options || {}, {
8405
+ onClickSeek: function(date) {
8406
+ if (date == null ? void 0 : date.getTime()) {
8407
+ _this._options.onClickSeek == null ? void 0 : _this._options.onClickSeek.call(_this._options, date);
8408
+ _this.emit(EVENTS.control.timeLineChange, date);
8409
+ }
8410
+ },
8234
8411
  onChange: function(date) {
8235
8412
  if (_this._currentTime !== (date == null ? void 0 : date.getTime())) {
8236
8413
  _this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, date);
@@ -8252,12 +8429,12 @@ function _set_prototype_of$5(o, p) {
8252
8429
  } catch (error) {
8253
8430
  }
8254
8431
  }
8255
- };
8432
+ });
8256
8433
  if (utilsTools.isMobile()) {
8257
8434
  this.timeLineUtil = new controlTimeLine.MobileTimeLine(this.$container, _timeLineOptions);
8258
8435
  } else {
8259
8436
  this.timeLineUtil = new controlTimeLine.TimeLine(this.$container, _timeLineOptions);
8260
- this._renderAddReduce();
8437
+ if (this._options.showTimeWidthBtn) this._renderAddReduce();
8261
8438
  }
8262
8439
  (_this_timeLineUtil = this.timeLineUtil) == null ? void 0 : (_this_timeLineUtil_updateTimeSections = _this_timeLineUtil.updateTimeSections) == null ? void 0 : _this_timeLineUtil_updateTimeSections.call(_this_timeLineUtil, this.records);
8263
8440
  this.timeLineUtil.update(new Date());
@@ -8268,7 +8445,7 @@ function _set_prototype_of$5(o, p) {
8268
8445
  _proto._renderAddReduce = function _renderAddReduce() {
8269
8446
  var _this = this;
8270
8447
  this._$add = document.createElement('span');
8271
- this._$add.classList.add("" + PREFIX_CLASS + "-time-line-scale-add");
8448
+ this._$add.classList.add("" + PREFIX_CLASS + "-time-line-zoom-add");
8272
8449
  this._$add.innerHTML = IconComponents.add();
8273
8450
  this._$add.addEventListener('click', function() {
8274
8451
  if (_this.timeLineUtil) {
@@ -8277,7 +8454,7 @@ function _set_prototype_of$5(o, p) {
8277
8454
  }
8278
8455
  });
8279
8456
  this._$reduce = document.createElement('span');
8280
- this._$reduce.classList.add("" + PREFIX_CLASS + "-time-line-scale-sub");
8457
+ this._$reduce.classList.add("" + PREFIX_CLASS + "-time-line-zoom-sub");
8281
8458
  this._$reduce.innerHTML = IconComponents.reduce();
8282
8459
  this._$reduce.addEventListener('click', function() {
8283
8460
  if (_this.timeLineUtil) {
@@ -8285,8 +8462,11 @@ function _set_prototype_of$5(o, p) {
8285
8462
  _this.timeLineUtil.setTimeWidth(currentScale - 1);
8286
8463
  }
8287
8464
  });
8288
- this.$container.appendChild(this._$add);
8289
- this.$container.appendChild(this._$reduce);
8465
+ this._$scaleWrapper = document.createElement('span');
8466
+ this._$scaleWrapper.classList.add("" + PREFIX_CLASS + "-time-line-zoom");
8467
+ this._$scaleWrapper.appendChild(this._$add);
8468
+ this._$scaleWrapper.appendChild(this._$reduce);
8469
+ this.$container.appendChild(this._$scaleWrapper);
8290
8470
  };
8291
8471
  _proto.destroy = function destroy() {
8292
8472
  if (this._$add) {
@@ -8297,6 +8477,10 @@ function _set_prototype_of$5(o, p) {
8297
8477
  this._$reduce.remove();
8298
8478
  this._$reduce = null;
8299
8479
  }
8480
+ if (this._$scaleWrapper) {
8481
+ this._$scaleWrapper.remove();
8482
+ this._$scaleWrapper = null;
8483
+ }
8300
8484
  if (this.timeLineUtil) {
8301
8485
  this.timeLineUtil.destroy();
8302
8486
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -8404,6 +8588,7 @@ var Controls = {
8404
8588
  rec: Rec,
8405
8589
  speed: Speed,
8406
8590
  date: DatePickerControl,
8591
+ time: TimePickerControl,
8407
8592
  timeLine: TimeLineControl
8408
8593
  };
8409
8594
 
@@ -8439,17 +8624,25 @@ var RecFooter = /*#__PURE__*/ function(EventEmitter) {
8439
8624
  _this.$container = container;
8440
8625
  _this.$popupContainer = document.createElement('div');
8441
8626
  _this.$popupContainer.classList.add("" + PREFIX_CLASS + "-rec-footer");
8442
- if (_this.options.hasDatePicker) {
8443
- _this.$popupContainer.classList.add("" + PREFIX_CLASS + "-rec-footer-has-date-picker");
8444
- }
8445
8627
  _this.$container.appendChild(_this.$popupContainer);
8446
8628
  _this.$timeLineContainer = document.createElement('div');
8447
8629
  _this.$timeLineContainer.classList.add("" + PREFIX_CLASS + "-rec-footer-time-line");
8448
- if (_this.options.hasDatePicker) {
8630
+ if (_this.options.hasDatePicker || _this.options.hasTimePicker) {
8449
8631
  _this.$popupContainer.appendChild(_this.$timeLineContainer);
8632
+ // 右侧容器: 放置时间选择器和日期选择器
8633
+ _this.$rightContainer = document.createElement('div');
8634
+ _this.$rightContainer.classList.add("" + PREFIX_CLASS + "-rec-footer-right");
8635
+ _this.$popupContainer.appendChild(_this.$rightContainer);
8636
+ }
8637
+ if (_this.options.hasTimePicker) {
8638
+ _this.$timePickerContainer = document.createElement('div');
8639
+ _this.$timePickerContainer.classList.add("" + PREFIX_CLASS + "-rec-footer-btn", "" + PREFIX_CLASS + "-rec-footer-time-picker");
8640
+ _this.$rightContainer.appendChild(_this.$timePickerContainer);
8641
+ }
8642
+ if (_this.options.hasDatePicker) {
8450
8643
  _this.$datePickerContainer = document.createElement('div');
8451
- _this.$datePickerContainer.classList.add("" + PREFIX_CLASS + "-rec-footer-date-picker");
8452
- _this.$popupContainer.appendChild(_this.$datePickerContainer);
8644
+ _this.$datePickerContainer.classList.add("" + PREFIX_CLASS + "-rec-footer-btn", "" + PREFIX_CLASS + "-rec-footer-date-picker");
8645
+ _this.$rightContainer.appendChild(_this.$datePickerContainer);
8453
8646
  }
8454
8647
  _this.$popupContainer.addEventListener('dblclick', function(e) {
8455
8648
  e.preventDefault();
@@ -8463,6 +8656,14 @@ var RecFooter = /*#__PURE__*/ function(EventEmitter) {
8463
8656
  this.$datePickerContainer.remove();
8464
8657
  this.$datePickerContainer = null;
8465
8658
  }
8659
+ if (this.$timePickerContainer) {
8660
+ this.$timePickerContainer.remove();
8661
+ this.$timePickerContainer = null;
8662
+ }
8663
+ if (this.$rightContainer) {
8664
+ this.$rightContainer.remove();
8665
+ this.$rightContainer = null;
8666
+ }
8466
8667
  if (this.$timeLineContainer) {
8467
8668
  var _this_$timeLineContainer_remove, _this_$timeLineContainer;
8468
8669
  (_this_$timeLineContainer = this.$timeLineContainer) == null ? void 0 : (_this_$timeLineContainer_remove = _this_$timeLineContainer.remove) == null ? void 0 : _this_$timeLineContainer_remove.call(_this_$timeLineContainer);
@@ -9013,7 +9214,7 @@ function _renderControls(theme, $container, btnList, props) {
9013
9214
  }
9014
9215
  function _renderTheme(theme, data) {
9015
9216
  return _async_to_generator$1(function() {
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;
9217
+ 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_options_mobileExtendOptions3, _theme_controls2, _theme_options_mobileExtendOptions4, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions5, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1, _theme_options;
9017
9218
  return _ts_generator$1(this, function(_state) {
9018
9219
  switch(_state.label){
9019
9220
  case 0:
@@ -9160,17 +9361,22 @@ function _renderTheme(theme, data) {
9160
9361
  // PC 单独渲染timeLine
9161
9362
  if (!Utils.isMobile && !(theme.options.timeLineOptions === null || theme.options.disabledTimeLine) && _needTimeLine) {
9162
9363
  theme._recFooter = new RecFooter(theme.$container, {
9163
- hasDatePicker: theme.options.dateOptions !== null
9364
+ hasDatePicker: theme.options.dateOptions !== null,
9365
+ hasTimePicker: theme.options.timeOptions !== null
9164
9366
  });
9367
+ // 放置在 timeline 前面是为了防止 时间轴宽度设置后导致 图标按钮被挤出 footer
9368
+ if (theme.options.dateOptions !== null) {
9369
+ _renderDatePicker(theme, theme._recFooter.$datePickerContainer, props);
9370
+ }
9371
+ if (theme.options.timeOptions !== null) {
9372
+ _renderTimePicker(theme, theme._recFooter.$timePickerContainer, props);
9373
+ }
9165
9374
  //
9166
9375
  _renderTimeLine(theme, theme._recFooter.$timeLineContainer, props);
9167
9376
  if (theme._footer) {
9168
9377
  theme._footer.$container.style.cssText += "bottom: 36px;";
9169
9378
  theme.$container.classList.add("" + PREFIX_CLASS + "-has-time-line");
9170
9379
  }
9171
- if (theme.options.dateOptions !== null) {
9172
- _renderDatePicker(theme, theme._recFooter.$datePickerContainer, props);
9173
- }
9174
9380
  }
9175
9381
  // 移动端扩展
9176
9382
  if (Utils.isMobile && ((_theme_options_mobileExtendOptions = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls = _theme_options_mobileExtendOptions.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls.length)) {
@@ -9182,7 +9388,10 @@ function _renderTheme(theme, data) {
9182
9388
  if (theme.options.dateOptions !== null && ((_theme_options_mobileExtendOptions1 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions1.controls.includes('date')) && _needTimeLine) {
9183
9389
  _renderDatePicker(theme, theme._mobileExtend.$topLeft, props);
9184
9390
  }
9185
- if (theme.options.recOptions !== null && ((_theme_options_mobileExtendOptions2 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions2.controls.includes('rec')) && _needTimeLine) {
9391
+ if (theme.options.timeOptions !== null && ((_theme_options_mobileExtendOptions2 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions2.controls.includes('time')) && _needTimeLine) {
9392
+ _renderTimePicker(theme, theme._mobileExtend.$topLeft, props);
9393
+ }
9394
+ if (theme.options.recOptions !== null && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('rec')) && _needTimeLine) {
9186
9395
  [].concat(((_filterThemeData_header1 = filterThemeData.header) == null ? void 0 : _filterThemeData_header1.btnList) || [], (_filterThemeData_footer_btnList1 = (_filterThemeData_footer1 = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer1.btnList) != null ? _filterThemeData_footer_btnList1 : []).forEach(function(item) {
9187
9396
  var _theme__mobileExtend;
9188
9397
  if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
@@ -9205,10 +9414,10 @@ function _renderTheme(theme, data) {
9205
9414
  props: props
9206
9415
  }));
9207
9416
  }
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) {
9417
+ if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions4.controls.includes('timeLine')) && _needTimeLine) {
9209
9418
  _renderTimeLine(theme, theme._mobileExtend.$content, props);
9210
9419
  }
9211
- if (Utils.isMobile && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions4.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
9420
+ if (Utils.isMobile && ((_theme_options_mobileExtendOptions5 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions5.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
9212
9421
  theme.controls.ptzControl.renderMobileExtend(theme._mobileExtend.$content);
9213
9422
  }
9214
9423
  }
@@ -9260,6 +9469,22 @@ var _renderDatePicker = function(theme, container, props) {
9260
9469
  }));
9261
9470
  }
9262
9471
  };
9472
+ var _renderTimePicker = function(theme, container, props) {
9473
+ if (props === void 0) props = {};
9474
+ if (!theme.controls.timeControl && theme.options.timeOptions !== null) {
9475
+ var _theme_options;
9476
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
9477
+ theme.controls.timeControl = new Controls['time'](_extends$1({
9478
+ getPopupContainer: function() {
9479
+ return container;
9480
+ },
9481
+ language: theme.options.language,
9482
+ locales: theme.i18n.translations
9483
+ }, ((_theme_options = theme.options) == null ? void 0 : _theme_options["timeOptions"]) || {}, {
9484
+ props: props
9485
+ }));
9486
+ }
9487
+ };
9263
9488
  var _renderRecType = function(theme, container, recType, props) {
9264
9489
  if (props === void 0) props = {};
9265
9490
  var _theme_controls, _theme_controls1, _theme_controls2;
@@ -10072,7 +10297,9 @@ var THEME_DEFAULT_OPTIONS = {
10072
10297
  _this._width = width;
10073
10298
  _this._height = height;
10074
10299
  if ((_this_controls = _this.controls) == null ? void 0 : _this_controls.timeLineControl) {
10075
- _this.controls.timeLineControl.setWidth(width - 20 - DATE_PICKER_ICON_WIDTH);
10300
+ var _this_$container_querySelector;
10301
+ var rcFooterRightWidth = ((_this_$container_querySelector = _this.$container.querySelector("." + PREFIX_CLASS + "-rec-footer-right")) == null ? void 0 : _this_$container_querySelector.clientWidth) || 0;
10302
+ _this.controls.timeLineControl.setWidth(width - rcFooterRightWidth);
10076
10303
  }
10077
10304
  // header 和 footer 使用防抖去实现, 避免频繁触发,
10078
10305
  _this._headerMoreControlShow();
@@ -10826,7 +11053,7 @@ var THEME_DEFAULT_OPTIONS = {
10826
11053
  zh: zh,
10827
11054
  en: en
10828
11055
  };
10829
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.2-beta.3';
11056
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.0-beta.2';
10830
11057
 
10831
11058
  exports.Control = Control;
10832
11059
  exports.EVENTS = EVENTS;