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

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