@ezuikit/player-theme 2.1.2-beta.1 → 2.1.2-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constant.js +5 -2
- package/dist/index.js +521 -250
- package/dist/index.mjs +521 -250
- package/dist/index.umd.js +521 -250
- package/dist/style.css +1 -0
- package/dist/style.js +2 -2
- package/dist/types/index.d.ts +26 -18
- package/package.json +8 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.1.2-beta.
|
|
3
|
-
* Copyright (c) 2026-
|
|
2
|
+
* @ezuikit/player-theme v2.1.2-beta.3
|
|
3
|
+
* Copyright (c) 2026-03-10 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -142,6 +142,7 @@ var EVENTS = {
|
|
|
142
142
|
/** 对讲状态变化 */ talkingChange: 'talkingChange',
|
|
143
143
|
/** 麦克风音量变化 */ talkVolumeChange: 'talkVolumeChange',
|
|
144
144
|
/** 语音广播状态变化 */ broadcastChange: 'broadcastChange',
|
|
145
|
+
/** AI对话框状态变化 */ aichatChange: 'aichatChange',
|
|
145
146
|
/** 动态切换日志配置 */ setLoggerOptions: 'setLoggerOptions',
|
|
146
147
|
records: 'records',
|
|
147
148
|
ptzSpeedChange: 'ptzSpeedChange',
|
|
@@ -187,6 +188,8 @@ var EVENTS = {
|
|
|
187
188
|
/** 对讲控件销毁 */ talkDestroy: 'Control.talkDestroy',
|
|
188
189
|
/** 语音广播状态变化 */ broadcastChange: 'Control.broadcastChange',
|
|
189
190
|
/** 语音广播控件销毁 */ broadcastDestroy: 'Control.broadcastDestroy',
|
|
191
|
+
/** AI对话框状态变化 */ aichatChange: 'Control.aichatChange',
|
|
192
|
+
/** AI对话框控件销毁 */ aichatDestroy: 'Control.aichatDestroy',
|
|
190
193
|
/** 缩放比例改变 */ zoomChange: 'Control.zoomChange',
|
|
191
194
|
/** 音量调节面板 展示隐藏变换 */ zoomPanelOpenChange: 'Control.zoomPanelOpenChange',
|
|
192
195
|
/** 缩放控件销毁 */ zoomDestroy: 'Control.zoomDestroy',
|
|
@@ -238,7 +241,7 @@ function _create_class$9(Constructor, protoProps, staticProps) {
|
|
|
238
241
|
if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
|
|
239
242
|
return Constructor;
|
|
240
243
|
}
|
|
241
|
-
function _inherits$
|
|
244
|
+
function _inherits$t(subClass, superClass) {
|
|
242
245
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
243
246
|
throw new TypeError("Super expression must either be null or a function");
|
|
244
247
|
}
|
|
@@ -249,14 +252,14 @@ function _inherits$s(subClass, superClass) {
|
|
|
249
252
|
configurable: true
|
|
250
253
|
}
|
|
251
254
|
});
|
|
252
|
-
if (superClass) _set_prototype_of$
|
|
255
|
+
if (superClass) _set_prototype_of$t(subClass, superClass);
|
|
253
256
|
}
|
|
254
|
-
function _set_prototype_of$
|
|
255
|
-
_set_prototype_of$
|
|
257
|
+
function _set_prototype_of$t(o, p) {
|
|
258
|
+
_set_prototype_of$t = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
256
259
|
o.__proto__ = p;
|
|
257
260
|
return o;
|
|
258
261
|
};
|
|
259
|
-
return _set_prototype_of$
|
|
262
|
+
return _set_prototype_of$t(o, p);
|
|
260
263
|
}
|
|
261
264
|
/**
|
|
262
265
|
* 控件基类
|
|
@@ -270,7 +273,7 @@ function _set_prototype_of$s(o, p) {
|
|
|
270
273
|
* const myControl = new MyControl({})
|
|
271
274
|
* ```
|
|
272
275
|
*/ var Control = /*#__PURE__*/ function(EventEmitter) {
|
|
273
|
-
_inherits$
|
|
276
|
+
_inherits$t(Control, EventEmitter);
|
|
274
277
|
function Control(options) {
|
|
275
278
|
var _this;
|
|
276
279
|
var _this___options;
|
|
@@ -445,8 +448,8 @@ function _set_prototype_of$s(o, p) {
|
|
|
445
448
|
return Control;
|
|
446
449
|
}(EventEmitter);
|
|
447
450
|
|
|
448
|
-
function _extends$
|
|
449
|
-
_extends$
|
|
451
|
+
function _extends$s() {
|
|
452
|
+
_extends$s = Object.assign || function(target) {
|
|
450
453
|
for(var i = 1; i < arguments.length; i++){
|
|
451
454
|
var source = arguments[i];
|
|
452
455
|
for(var key in source){
|
|
@@ -457,9 +460,9 @@ function _extends$r() {
|
|
|
457
460
|
}
|
|
458
461
|
return target;
|
|
459
462
|
};
|
|
460
|
-
return _extends$
|
|
463
|
+
return _extends$s.apply(this, arguments);
|
|
461
464
|
}
|
|
462
|
-
function _inherits$
|
|
465
|
+
function _inherits$s(subClass, superClass) {
|
|
463
466
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
464
467
|
throw new TypeError("Super expression must either be null or a function");
|
|
465
468
|
}
|
|
@@ -470,25 +473,25 @@ function _inherits$r(subClass, superClass) {
|
|
|
470
473
|
configurable: true
|
|
471
474
|
}
|
|
472
475
|
});
|
|
473
|
-
if (superClass) _set_prototype_of$
|
|
476
|
+
if (superClass) _set_prototype_of$s(subClass, superClass);
|
|
474
477
|
}
|
|
475
|
-
function _set_prototype_of$
|
|
476
|
-
_set_prototype_of$
|
|
478
|
+
function _set_prototype_of$s(o, p) {
|
|
479
|
+
_set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
477
480
|
o.__proto__ = p;
|
|
478
481
|
return o;
|
|
479
482
|
};
|
|
480
|
-
return _set_prototype_of$
|
|
483
|
+
return _set_prototype_of$s(o, p);
|
|
481
484
|
}
|
|
482
485
|
var LOADING_DEFAULT_OPTIONS = {};
|
|
483
486
|
/**
|
|
484
487
|
* 加载动画控件
|
|
485
488
|
* @category Control
|
|
486
489
|
*/ var Loading = /*#__PURE__*/ function(Control) {
|
|
487
|
-
_inherits$
|
|
490
|
+
_inherits$s(Loading, Control);
|
|
488
491
|
function Loading(options) {
|
|
489
492
|
if (options === void 0) options = {};
|
|
490
493
|
var _this;
|
|
491
|
-
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$
|
|
494
|
+
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$s({}, options, {
|
|
492
495
|
tagName: 'div',
|
|
493
496
|
controlType: 'block',
|
|
494
497
|
classNameSuffix: 'loading'
|
|
@@ -526,8 +529,8 @@ var LOADING_DEFAULT_OPTIONS = {};
|
|
|
526
529
|
return Loading;
|
|
527
530
|
}(Control);
|
|
528
531
|
|
|
529
|
-
function _extends$
|
|
530
|
-
_extends$
|
|
532
|
+
function _extends$r() {
|
|
533
|
+
_extends$r = Object.assign || function(target) {
|
|
531
534
|
for(var i = 1; i < arguments.length; i++){
|
|
532
535
|
var source = arguments[i];
|
|
533
536
|
for(var key in source){
|
|
@@ -538,9 +541,9 @@ function _extends$q() {
|
|
|
538
541
|
}
|
|
539
542
|
return target;
|
|
540
543
|
};
|
|
541
|
-
return _extends$
|
|
544
|
+
return _extends$r.apply(this, arguments);
|
|
542
545
|
}
|
|
543
|
-
function _inherits$
|
|
546
|
+
function _inherits$r(subClass, superClass) {
|
|
544
547
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
545
548
|
throw new TypeError("Super expression must either be null or a function");
|
|
546
549
|
}
|
|
@@ -551,14 +554,14 @@ function _inherits$q(subClass, superClass) {
|
|
|
551
554
|
configurable: true
|
|
552
555
|
}
|
|
553
556
|
});
|
|
554
|
-
if (superClass) _set_prototype_of$
|
|
557
|
+
if (superClass) _set_prototype_of$r(subClass, superClass);
|
|
555
558
|
}
|
|
556
|
-
function _set_prototype_of$
|
|
557
|
-
_set_prototype_of$
|
|
559
|
+
function _set_prototype_of$r(o, p) {
|
|
560
|
+
_set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
558
561
|
o.__proto__ = p;
|
|
559
562
|
return o;
|
|
560
563
|
};
|
|
561
|
-
return _set_prototype_of$
|
|
564
|
+
return _set_prototype_of$r(o, p);
|
|
562
565
|
}
|
|
563
566
|
// 不放在服务器上 是因为有可能http加载失败
|
|
564
567
|
// prettier-ignore
|
|
@@ -570,11 +573,11 @@ var POSTER_OPTIONS = {
|
|
|
570
573
|
* 封面控件
|
|
571
574
|
* @category Control
|
|
572
575
|
*/ var Poster = /*#__PURE__*/ function(Control) {
|
|
573
|
-
_inherits$
|
|
576
|
+
_inherits$r(Poster, Control);
|
|
574
577
|
function Poster(options) {
|
|
575
578
|
if (options === void 0) options = {};
|
|
576
579
|
var _this;
|
|
577
|
-
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$
|
|
580
|
+
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$r({}, options, {
|
|
578
581
|
tagName: 'div',
|
|
579
582
|
controlType: 'block',
|
|
580
583
|
classNameSuffix: 'poster'
|
|
@@ -670,6 +673,7 @@ var Icons = {
|
|
|
670
673
|
return '<svg width="1em" height="1em" viewBox="0 0 24 24" focusable="false" aria-hidden="true" data-icon="talk-growth">\n <g fill="currentColor" stroke="currentColor">\n <path stroke="none" d="M9.22313 18.9543C9.6588 18.9543 10.0189 19.2133 10.0759 19.5494L10.0837 19.6428L10.0837 21.7847C10.0837 22.1649 9.69841 22.4732 9.22313 22.4732C8.78745 22.4732 8.42739 22.2142 8.37041 21.8781L8.36255 21.7847L8.36255 19.6428C8.36255 19.2626 8.74784 18.9543 9.22313 18.9543Z" fill-rule="evenodd" />\n <path d="M16.5323 11.3779L16.5323 11.5872C16.5323 15.7472 13.1599 19.1197 8.99981 19.1197C4.83971 19.1197 1.46729 15.7472 1.46729 11.5872L1.46729 11.4335" fill-rule="evenodd" fill="none" stroke-width="1.5" />\n <path stroke="none" d="M4.07861 6.12978C4.07861 3.589 6.30476 1.5293 9.05085 1.5293C11.7969 1.5293 14.0231 3.589 14.0231 6.12978L14.0231 12.075C14.0231 14.6158 11.7969 16.6755 9.05085 16.6755C6.30476 16.6755 4.07861 14.6158 4.07861 12.075L4.07861 6.12978ZM5.57861 12.075L5.57861 6.12978C5.57861 5.94083 5.597 5.75561 5.63376 5.57412C5.67605 5.36539 5.74265 5.16158 5.83357 4.9627C5.86625 4.8912 5.90164 4.82121 5.93974 4.75272C6.09781 4.4685 6.30245 4.21019 6.55365 3.97777C6.64206 3.89597 6.73424 3.81921 6.83019 3.7475C7.0816 3.55959 7.3589 3.40632 7.66207 3.28767C7.79552 3.23545 7.93107 3.19114 8.06871 3.15475C8.38503 3.07111 8.71241 3.0293 9.05085 3.0293C9.38929 3.0293 9.71668 3.07112 10.033 3.15475C10.1706 3.19114 10.3062 3.23545 10.4396 3.28767C10.7428 3.40632 11.0201 3.55959 11.2715 3.74749C11.3675 3.81921 11.4596 3.89596 11.548 3.97777C11.7993 4.2102 12.0039 4.46853 12.162 4.75276C12.2001 4.82124 12.2354 4.89122 12.2681 4.9627C12.359 5.16157 12.4256 5.36536 12.4679 5.57407C12.5047 5.75558 12.5231 5.94082 12.5231 6.12978L12.5231 12.075C12.5231 12.264 12.5047 12.4492 12.4679 12.6307C12.4256 12.8394 12.359 13.0432 12.2681 13.2421C12.2355 13.3136 12.2001 13.3835 12.162 13.452C12.0039 13.7362 11.7993 13.9946 11.548 14.227C11.4596 14.3088 11.3675 14.3856 11.2715 14.4573C11.0201 14.6452 10.7428 14.7985 10.4396 14.9171C10.3062 14.9693 10.1706 15.0136 10.033 15.05C9.71667 15.1337 9.38929 15.1755 9.05085 15.1755C8.71241 15.1755 8.38503 15.1337 8.06871 15.05C7.93107 15.0136 7.79552 14.9693 7.66207 14.9171C7.3589 14.7985 7.0816 14.6452 6.83019 14.4573C6.73424 14.3856 6.64206 14.3088 6.55365 14.227C6.30244 13.9946 6.09779 13.7363 5.93972 13.452C5.90163 13.3836 5.86625 13.3136 5.83357 13.2421C5.74265 13.0432 5.67605 12.8394 5.63377 12.6307C5.597 12.4492 5.57861 12.264 5.57861 12.075Z" fill-rule="evenodd" />\n </g>\n <g class="' + prefix + '-icon-talk-growth-dot">\n <path class="' + prefix + '-icon-talk-growth-dot1" d="M19.1333 6.40039L22.8667 6.40039" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot2" d="M19.1333 10.1338L21.9331 10.1338" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot3" d="M19.1333 13.8672L20.9995 13.8672" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot4" d="M19.1333 17.6001L20.0669 17.6001" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n </g>\n </svg>';
|
|
671
674
|
},
|
|
672
675
|
/** 语音广播 */ broadcast: '\n <svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" stroke="none" focusable="false" aria-hidden="true" data-icon="broadcast">\n <g>\n <path id="矢量 1" d="m8.52109,6.76609l6.17823,-2.91335c0.2485,-0.11718 0.5027,-0.19531 0.7627,-0.2351c0.2034,-0.03077 0.4104,-0.03809 0.6211,-0.02173c0.2092,0.01636 0.4116,0.05493 0.6069,0.11621c0.2278,0.07129 0.4461,0.1731 0.6548,0.30542c0.2087,0.13232 0.394,0.28638 0.5557,0.46216l0.0002,0l0,0c0.1384,0.15064 0.2598,0.31714 0.3638,0.49951c0.1047,0.18335 0.1865,0.37354 0.2451,0.57081c0.0752,0.25219 0.1128,0.51562 0.1128,0.79004l0,10.64651c0,0.2744 -0.0376,0.5379 -0.1128,0.7901l0,0c-0.0586,0.197 -0.1404,0.3874 -0.2451,0.5708c-0.104,0.1823 -0.2254,0.3488 -0.364,0.4995c-0.1617,0.1758 -0.347,0.3298 -0.5557,0.4621c-0.2087,0.1324 -0.427,0.2342 -0.6548,0.3054c-0.1953,0.0611 -0.3977,0.0999 -0.6069,0.1163c-0.2107,0.0163 -0.4175,0.009 -0.6209,-0.0218c-0.2602,-0.0398 -0.5144,-0.1181 -0.7629,-0.2351l-5.45044,-2.5703l0,2.759c0,0.1036 -0.01831,0.1995 -0.05494,0.2879c-0.03662,0.0886 -0.09155,0.1692 -0.16479,0.2424c-0.14624,0.1465 -0.32324,0.2197 -0.53027,0.2197l-2,0c-0.14209,0 -0.27344,-0.0373 -0.39429,-0.112c-0.12085,-0.0745 -0.21289,-0.1756 -0.27661,-0.3025l-1.99268,-3.9856c-0.06225,-0.0234 -0.12402,-0.0481 -0.18555,-0.074c-0.26953,-0.114 -0.52417,-0.2502 -0.7644,-0.4084c-0.26636,-0.1758 -0.51489,-0.3789 -0.74512,-0.6094c-0.23047,-0.2302 -0.43359,-0.4788 -0.60937,-0.7451c-0.1582,-0.2403 -0.29444,-0.4949 -0.40845,-0.7644c-0.11328,-0.2679 -0.20068,-0.5413 -0.26245,-0.8206l0,0c-0.07398,-0.3347 -0.11108,-0.6775 -0.11108,-1.0286c0,-0.351 0.0371,-0.6938 0.11108,-1.0285c0.06177,-0.2793 0.14917,-0.5528 0.26245,-0.8206c0.11401,-0.26953 0.25025,-0.52417 0.40845,-0.7644c0.17578,-0.26636 0.3789,-0.5149 0.60937,-0.74512c0.23023,-0.23047 0.47876,-0.4336 0.74512,-0.60938l0,0c0.24023,-0.1582 0.49487,-0.29444 0.7644,-0.40845c0.26783,-0.11328 0.54126,-0.20068 0.82056,-0.26245l0,0l0,0l0,0c0.33472,-0.07398 0.67749,-0.11109 1.02857,-0.11109l2.93872,0c0.02636,-0.0166 0.05444,-0.03198 0.08349,-0.04589zm0.72876,8.47948l6.08937,2.8716c0.1287,0.0606 0.2598,0.0987 0.3935,0.114c0.0772,0.0088 0.1551,0.0103 0.2337,0.0042c0.0857,-0.0068 0.1687,-0.0217 0.2495,-0.0452c0.1133,-0.0329 0.2219,-0.0822 0.3257,-0.1479c0.104,-0.0659 0.1948,-0.1431 0.2729,-0.2317c0.0554,-0.063 0.1045,-0.1318 0.147,-0.2063c0.0393,-0.0686 0.0713,-0.1397 0.0962,-0.2131c0.043,-0.1277 0.0647,-0.2625 0.0647,-0.4046l0,-10.64651c0,-0.14209 -0.0217,-0.2771 -0.0647,-0.40454c-0.0249,-0.07349 -0.0569,-0.14454 -0.0962,-0.21314c-0.0425,-0.07471 -0.0916,-0.14331 -0.147,-0.2063c-0.0781,-0.08862 -0.1689,-0.16577 -0.2729,-0.23169c-0.1038,-0.06567 -0.2124,-0.11523 -0.3257,-0.14795c-0.0808,-0.02344 -0.1638,-0.03833 -0.2495,-0.04517c-0.0786,-0.0061 -0.1565,-0.00463 -0.2337,0.00415c-0.1337,0.01539 -0.2648,0.05347 -0.3935,0.11402l-6.09034,2.87208l0.00097,7.16405zm13.58447,-7.9121l-2,1c-0.3757,0.18775 -0.8184,0.04029 -1.0063,-0.33545c-0.0552,-0.11035 -0.0813,-0.22656 -0.0813,-0.34033c0,-0.27344 0.1516,-0.53321 0.4167,-0.66602l2,-1c0.3757,-0.18775 0.8186,-0.04004 1.0064,0.33545c0.0551,0.11035 0.0813,0.22656 0.0813,0.34033c0,0.27368 -0.1514,0.53345 -0.4168,0.66602zm-15.08544,8.9785l-2.08667,0l1.30029,2.6006l0.78638,0l0,-2.6006zm0,-7.99998l-2.25,0c-0.24976,0 -0.49317,0.02734 -0.73023,0.08179c-0.18188,0.04174 -0.36011,0.09961 -0.53467,0.17334c-0.17944,0.07593 -0.34961,0.1665 -0.51049,0.27124c-0.18702,0.12231 -0.36133,0.26416 -0.52271,0.42554c-0.16138,0.16137 -0.30322,0.33569 -0.42554,0.52267c-0.10473,0.1609 -0.19531,0.3311 -0.27124,0.5105c-0.07373,0.1746 -0.13159,0.3528 -0.17334,0.5347c-0.05444,0.2371 -0.08178,0.4805 -0.08178,0.7302c0,0.2498 0.02734,0.4932 0.08178,0.7303c0.04175,0.1818 0.09961,0.3601 0.17334,0.5346c0.07593,0.1795 0.16651,0.3496 0.27124,0.5105c0.12232,0.187 0.26416,0.3614 0.42554,0.5227c0.16138,0.1614 0.33569,0.3033 0.52271,0.4256c0.16088,0.1047 0.33105,0.1953 0.51049,0.2712c0.17456,0.0737 0.35279,0.1316 0.53467,0.1734c0.23706,0.0544 0.48047,0.0817 0.73023,0.0817l2.25097,0l-0.00097,-6.49998zm12.75004,2.60058l2,0c0.4199,0 0.75,0.3301 0.75,0.75c0,0.4199 -0.3301,0.75 -0.75,0.75l-2,0c-0.42,0 -0.75,-0.3301 -0.75,-0.75c0,-0.4199 0.33,-0.75 0.75,-0.75zm0.3354,4.0791l2,1c0.2654,0.1326 0.4168,0.3924 0.4168,0.6661c0,0.1137 -0.0262,0.2299 -0.0813,0.3403c-0.1878,0.3755 -0.6307,0.5232 -1.0064,0.3354l-2,-1c-0.2651,-0.1328 -0.4167,-0.3925 -0.4167,-0.666c0,-0.1138 0.0261,-0.23 0.0813,-0.3403c0.1879,-0.3758 0.6306,-0.5232 1.0063,-0.3355z" fill-rule="evenodd"/>\n </g>\n</svg>',
|
|
676
|
+
/** AI对话 */ aiChat: '\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none">\n <defs>\n <linearGradient id="gradient0" x1="10.667" x2="10.667" y1="0.667" y2="20.667">\n <stop stop-color="#33D9FF" offset="0.354"/>\n <stop stop-color="#CE77FF" offset="1"/>\n </linearGradient>\n <linearGradient id="gradient1" x1="8.318" x2="8.318" y1="0" y2="18.001">\n <stop stop-color="#33D9FF" offset="0.354"/>\n <stop stop-color="#CE77FF" offset="1"/>\n </linearGradient>\n </defs>\n \n <g transform="scale(1.2) translate(-3, -0.5)">\n <path d="M6.917 0C8.776 0 10.52 0.738 11.808 2.026C12.45 2.668 12.961 3.43 13.309 4.269C13.442 4.588 13.29 4.954 12.971 5.086C12.653 5.218 12.287 5.067 12.155 4.748C11.87 4.061 11.451 3.436 10.925 2.91C9.868 1.854 8.441 1.25 6.917 1.25C3.787 1.25 1.25 3.787 1.25 6.917C1.25 10.047 3.787 12.584 6.917 12.584C8.441 12.584 9.868 11.981 10.925 10.925C11.169 10.681 11.564 10.681 11.808 10.925C12.052 11.169 12.052 11.565 11.808 11.809C10.666 12.951 9.164 13.661 7.542 13.807L7.542 17.376C7.542 17.721 7.262 18.001 6.917 18.001C6.572 18.001 6.292 17.721 6.292 17.376L6.292 13.807C2.765 13.49 0 10.527 0 6.917C0 3.097 3.097 0 6.917 0ZM11.051 6.495C11.295 6.739 11.295 7.135 11.051 7.379L7.547 10.882C7.303 11.126 6.908 11.126 6.664 10.882C6.42 10.638 6.42 10.242 6.664 9.998L10.167 6.495C10.411 6.251 10.807 6.251 11.051 6.495ZM8.566 4.559L6.501 9.5C6.368 9.818 6.002 9.969 5.684 9.836C5.365 9.703 5.215 9.336 5.348 9.018L5.712 8.147L4.094 6.529L3.198 6.884C2.904 7.001 2.575 6.878 2.424 6.61C2.297 6.289 2.418 5.849 2.739 5.722L7.76 3.736C8.274 3.533 8.779 4.049 8.566 4.559ZM16.614 6.171C16.642 6.236 16.642 6.309 16.614 6.373L15.964 7.848C15.936 7.912 15.936 7.986 15.964 8.05L16.614 9.525C16.67 9.651 16.613 9.799 16.486 9.855C16.422 9.883 16.349 9.883 16.285 9.855L14.809 9.205C14.745 9.176 14.672 9.176 14.608 9.205L13.133 9.855C13.006 9.911 12.859 9.853 12.803 9.727C12.775 9.662 12.775 9.589 12.803 9.525L13.453 8.05C13.482 7.986 13.482 7.912 13.453 7.848L12.803 6.373C12.747 6.247 12.805 6.099 12.931 6.043C12.995 6.015 13.068 6.015 13.133 6.043L14.608 6.694C14.672 6.722 14.745 6.722 14.809 6.694L16.285 6.043C16.411 5.988 16.558 6.045 16.614 6.171ZM6.841 5.443L5.361 6.028L6.233 6.9L6.841 5.443Z" fill="url(#gradient1)" transform="matrix(0.707 -0.707 0.707 0.707 0.085 9.868)"/>\n </g>\n </svg>\n ',
|
|
673
677
|
/** 相机/截图 */ capturePicture: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="capture-picture">\n <path d="M6.94 7.51C7.34 7.51 7.7 7.28 7.86 6.91L8.43 5.6C8.59 5.23 8.95 5 9.35 5L14.69 5C15.04 5 15.37 5.18 15.55 5.49L16.45 7.02C16.63 7.33 16.96 7.51 17.31 7.51L18.5 7.51C19.6 7.51 20.5 8.41 20.5 9.51L20.5 17C20.5 18.1 19.6 19 18.5 19L5.5 19C4.39 19 3.5 18.1 3.5 17L3.5 9.51C3.5 8.41 4.39 7.51 5.5 7.51L6.94 7.51Z" stroke-width="1.5"/>\n <circle cx="12" cy="12.525146" r="3.068097" stroke-width="1.5"/>\n </svg>',
|
|
674
678
|
/** 电子放大 */ zoom: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="zoom">\n <ellipse cx="10.914795" cy="11.25" rx="8.004043" ry="8.25" stroke-width="1.5"/>\n <path d="M14.31 11.04L8.05 11.14" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M11.13 14.22L11.23 7.95" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M16.45 17.83L19.36 20.83" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
|
|
675
679
|
/** 隐私遮蔽 */ privacyMasking: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="privacy-masking">\n <path d="M12 19C11.15 19 10.31 18.82 9.49 18.5" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M20.88 12.46C18.98 15.96 15.49 19 11.99 19" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M19.07 8.92C19.76 9.72 20.38 10.61 20.88 11.53C21.03 11.82 21.03 12.17 20.88 12.46" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M5 19L19 5" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M9.77 14.22C8.54 12.99 8.54 11 9.77 9.77C11 8.54 12.99 8.54 14.22 9.77" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M17.04 6.95C15.49 5.75 13.74 5 12 5C8.5 5 5.01 8.03 3.11 11.53C2.96 11.82 2.96 12.17 3.11 12.46C4.06 14.21 5.41 15.84 6.95 17.04" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
|
|
@@ -758,6 +762,10 @@ var IconComponents = {
|
|
|
758
762
|
if (attr === void 0) attr = {};
|
|
759
763
|
return createIcon(Icons.broadcast, 'broadcast', attr);
|
|
760
764
|
},
|
|
765
|
+
aiChat: function(attr) {
|
|
766
|
+
if (attr === void 0) attr = {};
|
|
767
|
+
return createIcon(Icons.aiChat, 'aiChat', attr);
|
|
768
|
+
},
|
|
761
769
|
talkGrowth: function(attr) {
|
|
762
770
|
if (attr === void 0) attr = {};
|
|
763
771
|
return createIcon(Icons.talkGrowth(PREFIX_CLASS), 'talk-growth', attr);
|
|
@@ -836,8 +844,8 @@ var IconComponents = {
|
|
|
836
844
|
}
|
|
837
845
|
};
|
|
838
846
|
|
|
839
|
-
function _extends$
|
|
840
|
-
_extends$
|
|
847
|
+
function _extends$q() {
|
|
848
|
+
_extends$q = Object.assign || function(target) {
|
|
841
849
|
for(var i = 1; i < arguments.length; i++){
|
|
842
850
|
var source = arguments[i];
|
|
843
851
|
for(var key in source){
|
|
@@ -848,9 +856,9 @@ function _extends$p() {
|
|
|
848
856
|
}
|
|
849
857
|
return target;
|
|
850
858
|
};
|
|
851
|
-
return _extends$
|
|
859
|
+
return _extends$q.apply(this, arguments);
|
|
852
860
|
}
|
|
853
|
-
function _inherits$
|
|
861
|
+
function _inherits$q(subClass, superClass) {
|
|
854
862
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
855
863
|
throw new TypeError("Super expression must either be null or a function");
|
|
856
864
|
}
|
|
@@ -861,25 +869,25 @@ function _inherits$p(subClass, superClass) {
|
|
|
861
869
|
configurable: true
|
|
862
870
|
}
|
|
863
871
|
});
|
|
864
|
-
if (superClass) _set_prototype_of$
|
|
872
|
+
if (superClass) _set_prototype_of$q(subClass, superClass);
|
|
865
873
|
}
|
|
866
|
-
function _set_prototype_of$
|
|
867
|
-
_set_prototype_of$
|
|
874
|
+
function _set_prototype_of$q(o, p) {
|
|
875
|
+
_set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
868
876
|
o.__proto__ = p;
|
|
869
877
|
return o;
|
|
870
878
|
};
|
|
871
|
-
return _set_prototype_of$
|
|
879
|
+
return _set_prototype_of$q(o, p);
|
|
872
880
|
}
|
|
873
881
|
var MESSAGE_DEFAULT_OPTIONS = {};
|
|
874
882
|
/**
|
|
875
883
|
* 消息控件
|
|
876
884
|
* @category Control
|
|
877
885
|
*/ var Message = /*#__PURE__*/ function(Control) {
|
|
878
|
-
_inherits$
|
|
886
|
+
_inherits$q(Message, Control);
|
|
879
887
|
function Message(options) {
|
|
880
888
|
if (options === void 0) options = {};
|
|
881
889
|
var _this;
|
|
882
|
-
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$
|
|
890
|
+
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$q({}, options, {
|
|
883
891
|
tagName: 'div',
|
|
884
892
|
controlType: 'block'
|
|
885
893
|
}))) || this;
|
|
@@ -1032,8 +1040,8 @@ function _create_class$8(Constructor, protoProps, staticProps) {
|
|
|
1032
1040
|
if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
|
|
1033
1041
|
return Constructor;
|
|
1034
1042
|
}
|
|
1035
|
-
function _extends$
|
|
1036
|
-
_extends$
|
|
1043
|
+
function _extends$p() {
|
|
1044
|
+
_extends$p = Object.assign || function(target) {
|
|
1037
1045
|
for(var i = 1; i < arguments.length; i++){
|
|
1038
1046
|
var source = arguments[i];
|
|
1039
1047
|
for(var key in source){
|
|
@@ -1044,9 +1052,9 @@ function _extends$o() {
|
|
|
1044
1052
|
}
|
|
1045
1053
|
return target;
|
|
1046
1054
|
};
|
|
1047
|
-
return _extends$
|
|
1055
|
+
return _extends$p.apply(this, arguments);
|
|
1048
1056
|
}
|
|
1049
|
-
function _inherits$
|
|
1057
|
+
function _inherits$p(subClass, superClass) {
|
|
1050
1058
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1051
1059
|
throw new TypeError("Super expression must either be null or a function");
|
|
1052
1060
|
}
|
|
@@ -1057,23 +1065,23 @@ function _inherits$o(subClass, superClass) {
|
|
|
1057
1065
|
configurable: true
|
|
1058
1066
|
}
|
|
1059
1067
|
});
|
|
1060
|
-
if (superClass) _set_prototype_of$
|
|
1068
|
+
if (superClass) _set_prototype_of$p(subClass, superClass);
|
|
1061
1069
|
}
|
|
1062
|
-
function _set_prototype_of$
|
|
1063
|
-
_set_prototype_of$
|
|
1070
|
+
function _set_prototype_of$p(o, p) {
|
|
1071
|
+
_set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1064
1072
|
o.__proto__ = p;
|
|
1065
1073
|
return o;
|
|
1066
1074
|
};
|
|
1067
|
-
return _set_prototype_of$
|
|
1075
|
+
return _set_prototype_of$p(o, p);
|
|
1068
1076
|
}
|
|
1069
1077
|
/**
|
|
1070
1078
|
* 播放/暂停控件
|
|
1071
1079
|
* @category Control
|
|
1072
1080
|
*/ var Play = /*#__PURE__*/ function(Control) {
|
|
1073
|
-
_inherits$
|
|
1081
|
+
_inherits$p(Play, Control);
|
|
1074
1082
|
function Play(options) {
|
|
1075
1083
|
var _this;
|
|
1076
|
-
_this = Control.call(this, _extends$
|
|
1084
|
+
_this = Control.call(this, _extends$p({}, options, {
|
|
1077
1085
|
tagName: 'span',
|
|
1078
1086
|
controlType: 'button',
|
|
1079
1087
|
classNameSuffix: 'play'
|
|
@@ -1689,8 +1697,8 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
1689
1697
|
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
1690
1698
|
return Constructor;
|
|
1691
1699
|
}
|
|
1692
|
-
function _extends$
|
|
1693
|
-
_extends$
|
|
1700
|
+
function _extends$o() {
|
|
1701
|
+
_extends$o = Object.assign || function(target) {
|
|
1694
1702
|
for(var i = 1; i < arguments.length; i++){
|
|
1695
1703
|
var source = arguments[i];
|
|
1696
1704
|
for(var key in source){
|
|
@@ -1701,9 +1709,9 @@ function _extends$n() {
|
|
|
1701
1709
|
}
|
|
1702
1710
|
return target;
|
|
1703
1711
|
};
|
|
1704
|
-
return _extends$
|
|
1712
|
+
return _extends$o.apply(this, arguments);
|
|
1705
1713
|
}
|
|
1706
|
-
function _inherits$
|
|
1714
|
+
function _inherits$o(subClass, superClass) {
|
|
1707
1715
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1708
1716
|
throw new TypeError("Super expression must either be null or a function");
|
|
1709
1717
|
}
|
|
@@ -1714,14 +1722,14 @@ function _inherits$n(subClass, superClass) {
|
|
|
1714
1722
|
configurable: true
|
|
1715
1723
|
}
|
|
1716
1724
|
});
|
|
1717
|
-
if (superClass) _set_prototype_of$
|
|
1725
|
+
if (superClass) _set_prototype_of$o(subClass, superClass);
|
|
1718
1726
|
}
|
|
1719
|
-
function _set_prototype_of$
|
|
1720
|
-
_set_prototype_of$
|
|
1727
|
+
function _set_prototype_of$o(o, p) {
|
|
1728
|
+
_set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1721
1729
|
o.__proto__ = p;
|
|
1722
1730
|
return o;
|
|
1723
1731
|
};
|
|
1724
|
-
return _set_prototype_of$
|
|
1732
|
+
return _set_prototype_of$o(o, p);
|
|
1725
1733
|
}
|
|
1726
1734
|
var VOLUME_DEFAULT_OPTIONS = {
|
|
1727
1735
|
volume: 0.8,
|
|
@@ -1735,12 +1743,12 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1735
1743
|
* 音量调节控件
|
|
1736
1744
|
* @category Control
|
|
1737
1745
|
*/ var Volume = /*#__PURE__*/ function(Control) {
|
|
1738
|
-
_inherits$
|
|
1746
|
+
_inherits$o(Volume, Control);
|
|
1739
1747
|
function Volume(options) {
|
|
1740
1748
|
if (options === void 0) options = {};
|
|
1741
1749
|
var _this;
|
|
1742
1750
|
var _this__options_props, _this__options_props1, _this__options_props2, _this__options_props3;
|
|
1743
|
-
_this = Control.call(this, _extends$
|
|
1751
|
+
_this = Control.call(this, _extends$o({}, options, {
|
|
1744
1752
|
tagName: 'span',
|
|
1745
1753
|
classNameSuffix: 'volume',
|
|
1746
1754
|
controlType: 'button'
|
|
@@ -1956,7 +1964,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1956
1964
|
return Volume;
|
|
1957
1965
|
}(Control);
|
|
1958
1966
|
|
|
1959
|
-
function asyncGeneratorStep$
|
|
1967
|
+
function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1960
1968
|
try {
|
|
1961
1969
|
var info = gen[key](arg);
|
|
1962
1970
|
var value = info.value;
|
|
@@ -1970,22 +1978,22 @@ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
1970
1978
|
Promise.resolve(value).then(_next, _throw);
|
|
1971
1979
|
}
|
|
1972
1980
|
}
|
|
1973
|
-
function _async_to_generator$
|
|
1981
|
+
function _async_to_generator$7(fn) {
|
|
1974
1982
|
return function() {
|
|
1975
1983
|
var self = this, args = arguments;
|
|
1976
1984
|
return new Promise(function(resolve, reject) {
|
|
1977
1985
|
var gen = fn.apply(self, args);
|
|
1978
1986
|
function _next(value) {
|
|
1979
|
-
asyncGeneratorStep$
|
|
1987
|
+
asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "next", value);
|
|
1980
1988
|
}
|
|
1981
1989
|
function _throw(err) {
|
|
1982
|
-
asyncGeneratorStep$
|
|
1990
|
+
asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "throw", err);
|
|
1983
1991
|
}
|
|
1984
1992
|
_next(undefined);
|
|
1985
1993
|
});
|
|
1986
1994
|
};
|
|
1987
1995
|
}
|
|
1988
|
-
function _ts_generator$
|
|
1996
|
+
function _ts_generator$7(thisArg, body) {
|
|
1989
1997
|
var f, y, t, _ = {
|
|
1990
1998
|
label: 0,
|
|
1991
1999
|
sent: function() {
|
|
@@ -2199,8 +2207,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2199
2207
|
* 全屏
|
|
2200
2208
|
* @returns Promise<void>
|
|
2201
2209
|
*/ _proto.fullscreen = function fullscreen() {
|
|
2202
|
-
return _async_to_generator$
|
|
2203
|
-
return _ts_generator$
|
|
2210
|
+
return _async_to_generator$7(function() {
|
|
2211
|
+
return _ts_generator$7(this, function(_state) {
|
|
2204
2212
|
switch(_state.label){
|
|
2205
2213
|
case 0:
|
|
2206
2214
|
if (!Utils.isMobile) return [
|
|
@@ -2235,8 +2243,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2235
2243
|
* 退出全屏
|
|
2236
2244
|
* @returns Promise<void>
|
|
2237
2245
|
*/ _proto.exitFullscreen = function exitFullscreen() {
|
|
2238
|
-
return _async_to_generator$
|
|
2239
|
-
return _ts_generator$
|
|
2246
|
+
return _async_to_generator$7(function() {
|
|
2247
|
+
return _ts_generator$7(this, function(_state) {
|
|
2240
2248
|
switch(_state.label){
|
|
2241
2249
|
case 0:
|
|
2242
2250
|
if (!Utils.isMobile) return [
|
|
@@ -2275,8 +2283,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2275
2283
|
* 全屏切换
|
|
2276
2284
|
* @returns Promise<void>
|
|
2277
2285
|
*/ _proto.toggle = function toggle() {
|
|
2278
|
-
return _async_to_generator$
|
|
2279
|
-
return _ts_generator$
|
|
2286
|
+
return _async_to_generator$7(function() {
|
|
2287
|
+
return _ts_generator$7(this, function(_state) {
|
|
2280
2288
|
switch(_state.label){
|
|
2281
2289
|
case 0:
|
|
2282
2290
|
if (!Utils.isMobile) return [
|
|
@@ -2399,8 +2407,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2399
2407
|
return Fullscreen;
|
|
2400
2408
|
}();
|
|
2401
2409
|
|
|
2402
|
-
function _extends$
|
|
2403
|
-
_extends$
|
|
2410
|
+
function _extends$n() {
|
|
2411
|
+
_extends$n = Object.assign || function(target) {
|
|
2404
2412
|
for(var i = 1; i < arguments.length; i++){
|
|
2405
2413
|
var source = arguments[i];
|
|
2406
2414
|
for(var key in source){
|
|
@@ -2411,9 +2419,9 @@ function _extends$m() {
|
|
|
2411
2419
|
}
|
|
2412
2420
|
return target;
|
|
2413
2421
|
};
|
|
2414
|
-
return _extends$
|
|
2422
|
+
return _extends$n.apply(this, arguments);
|
|
2415
2423
|
}
|
|
2416
|
-
function _inherits$
|
|
2424
|
+
function _inherits$n(subClass, superClass) {
|
|
2417
2425
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2418
2426
|
throw new TypeError("Super expression must either be null or a function");
|
|
2419
2427
|
}
|
|
@@ -2424,24 +2432,24 @@ function _inherits$m(subClass, superClass) {
|
|
|
2424
2432
|
configurable: true
|
|
2425
2433
|
}
|
|
2426
2434
|
});
|
|
2427
|
-
if (superClass) _set_prototype_of$
|
|
2435
|
+
if (superClass) _set_prototype_of$n(subClass, superClass);
|
|
2428
2436
|
}
|
|
2429
|
-
function _set_prototype_of$
|
|
2430
|
-
_set_prototype_of$
|
|
2437
|
+
function _set_prototype_of$n(o, p) {
|
|
2438
|
+
_set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2431
2439
|
o.__proto__ = p;
|
|
2432
2440
|
return o;
|
|
2433
2441
|
};
|
|
2434
|
-
return _set_prototype_of$
|
|
2442
|
+
return _set_prototype_of$n(o, p);
|
|
2435
2443
|
}
|
|
2436
2444
|
/**
|
|
2437
2445
|
* 全屏控件
|
|
2438
2446
|
* @category Control
|
|
2439
2447
|
*/ var Fullscreen = /*#__PURE__*/ function(Control) {
|
|
2440
|
-
_inherits$
|
|
2448
|
+
_inherits$n(Fullscreen, Control);
|
|
2441
2449
|
function Fullscreen(options) {
|
|
2442
2450
|
var _this;
|
|
2443
2451
|
var _options_props, _this_options;
|
|
2444
|
-
_this = Control.call(this, _extends$
|
|
2452
|
+
_this = Control.call(this, _extends$n({
|
|
2445
2453
|
tagName: 'span',
|
|
2446
2454
|
classNameSuffix: 'fullscreen',
|
|
2447
2455
|
controlType: 'button'
|
|
@@ -2506,8 +2514,8 @@ function _set_prototype_of$m(o, p) {
|
|
|
2506
2514
|
return Fullscreen;
|
|
2507
2515
|
}(Control);
|
|
2508
2516
|
|
|
2509
|
-
function _extends$
|
|
2510
|
-
_extends$
|
|
2517
|
+
function _extends$m() {
|
|
2518
|
+
_extends$m = Object.assign || function(target) {
|
|
2511
2519
|
for(var i = 1; i < arguments.length; i++){
|
|
2512
2520
|
var source = arguments[i];
|
|
2513
2521
|
for(var key in source){
|
|
@@ -2518,9 +2526,9 @@ function _extends$l() {
|
|
|
2518
2526
|
}
|
|
2519
2527
|
return target;
|
|
2520
2528
|
};
|
|
2521
|
-
return _extends$
|
|
2529
|
+
return _extends$m.apply(this, arguments);
|
|
2522
2530
|
}
|
|
2523
|
-
function _inherits$
|
|
2531
|
+
function _inherits$m(subClass, superClass) {
|
|
2524
2532
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2525
2533
|
throw new TypeError("Super expression must either be null or a function");
|
|
2526
2534
|
}
|
|
@@ -2531,24 +2539,24 @@ function _inherits$l(subClass, superClass) {
|
|
|
2531
2539
|
configurable: true
|
|
2532
2540
|
}
|
|
2533
2541
|
});
|
|
2534
|
-
if (superClass) _set_prototype_of$
|
|
2542
|
+
if (superClass) _set_prototype_of$m(subClass, superClass);
|
|
2535
2543
|
}
|
|
2536
|
-
function _set_prototype_of$
|
|
2537
|
-
_set_prototype_of$
|
|
2544
|
+
function _set_prototype_of$m(o, p) {
|
|
2545
|
+
_set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2538
2546
|
o.__proto__ = p;
|
|
2539
2547
|
return o;
|
|
2540
2548
|
};
|
|
2541
|
-
return _set_prototype_of$
|
|
2549
|
+
return _set_prototype_of$m(o, p);
|
|
2542
2550
|
}
|
|
2543
2551
|
/**
|
|
2544
2552
|
* 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
|
|
2545
2553
|
* @category Control
|
|
2546
2554
|
*/ var Rec = /*#__PURE__*/ function(Control) {
|
|
2547
|
-
_inherits$
|
|
2555
|
+
_inherits$m(Rec, Control);
|
|
2548
2556
|
function Rec(options) {
|
|
2549
2557
|
var _this;
|
|
2550
2558
|
var _options_props;
|
|
2551
|
-
_this = Control.call(this, _extends$
|
|
2559
|
+
_this = Control.call(this, _extends$m({}, options, {
|
|
2552
2560
|
tagName: 'div',
|
|
2553
2561
|
controlType: 'block',
|
|
2554
2562
|
classNameSuffix: 'rec'
|
|
@@ -2824,6 +2832,7 @@ var zh = {
|
|
|
2824
2832
|
BTN_CAPTURE: '截图',
|
|
2825
2833
|
BTN_TALK: '对讲',
|
|
2826
2834
|
BTN_BROADCAST: '语音广播',
|
|
2835
|
+
BTN_AICHAT: 'AI对话',
|
|
2827
2836
|
BTN_ZOOM: '电子放大',
|
|
2828
2837
|
BTN_3D_ZOOM: '3D定位',
|
|
2829
2838
|
BTN_PTZ: '云台控制',
|
|
@@ -3095,6 +3104,7 @@ var en = {
|
|
|
3095
3104
|
BTN_CAPTURE: 'Screenshot',
|
|
3096
3105
|
BTN_TALK: 'Intercom',
|
|
3097
3106
|
BTN_BROADCAST: 'Voice broadcast',
|
|
3107
|
+
BTN_AICHAT: 'AI Chat',
|
|
3098
3108
|
BTN_ZOOM: 'Electronic zoom',
|
|
3099
3109
|
BTN_3D_ZOOM: '3D positioning',
|
|
3100
3110
|
BTN_PTZ: 'PTZ control',
|
|
@@ -3389,6 +3399,12 @@ var en = {
|
|
|
3389
3399
|
defaultActive: 0,
|
|
3390
3400
|
isrender: 1
|
|
3391
3401
|
},
|
|
3402
|
+
{
|
|
3403
|
+
iconId: 'aiChat',
|
|
3404
|
+
part: 'left',
|
|
3405
|
+
defaultActive: 0,
|
|
3406
|
+
isrender: 1
|
|
3407
|
+
},
|
|
3392
3408
|
{
|
|
3393
3409
|
iconId: 'speed',
|
|
3394
3410
|
part: 'right',
|
|
@@ -3573,6 +3589,12 @@ var en = {
|
|
|
3573
3589
|
defaultActive: 0,
|
|
3574
3590
|
isrender: 1
|
|
3575
3591
|
},
|
|
3592
|
+
{
|
|
3593
|
+
iconId: 'aiChat',
|
|
3594
|
+
part: 'left',
|
|
3595
|
+
defaultActive: 0,
|
|
3596
|
+
isrender: 1
|
|
3597
|
+
},
|
|
3576
3598
|
{
|
|
3577
3599
|
iconId: 'speed',
|
|
3578
3600
|
part: 'right',
|
|
@@ -3733,7 +3755,7 @@ var en = {
|
|
|
3733
3755
|
voice: voice
|
|
3734
3756
|
};
|
|
3735
3757
|
|
|
3736
|
-
function _inherits$
|
|
3758
|
+
function _inherits$l(subClass, superClass) {
|
|
3737
3759
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3738
3760
|
throw new TypeError("Super expression must either be null or a function");
|
|
3739
3761
|
}
|
|
@@ -3744,20 +3766,20 @@ function _inherits$k(subClass, superClass) {
|
|
|
3744
3766
|
configurable: true
|
|
3745
3767
|
}
|
|
3746
3768
|
});
|
|
3747
|
-
if (superClass) _set_prototype_of$
|
|
3769
|
+
if (superClass) _set_prototype_of$l(subClass, superClass);
|
|
3748
3770
|
}
|
|
3749
|
-
function _set_prototype_of$
|
|
3750
|
-
_set_prototype_of$
|
|
3771
|
+
function _set_prototype_of$l(o, p) {
|
|
3772
|
+
_set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3751
3773
|
o.__proto__ = p;
|
|
3752
3774
|
return o;
|
|
3753
3775
|
};
|
|
3754
|
-
return _set_prototype_of$
|
|
3776
|
+
return _set_prototype_of$l(o, p);
|
|
3755
3777
|
}
|
|
3756
3778
|
/**
|
|
3757
3779
|
* 截图控件
|
|
3758
3780
|
* @category Content
|
|
3759
3781
|
*/ var Content = /*#__PURE__*/ function(EventEmitter) {
|
|
3760
|
-
_inherits$
|
|
3782
|
+
_inherits$l(Content, EventEmitter);
|
|
3761
3783
|
function Content(options) {
|
|
3762
3784
|
var _this;
|
|
3763
3785
|
_this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
|
|
@@ -3872,8 +3894,8 @@ function _set_prototype_of$k(o, p) {
|
|
|
3872
3894
|
return Content;
|
|
3873
3895
|
}(EventEmitter);
|
|
3874
3896
|
|
|
3875
|
-
function _extends$
|
|
3876
|
-
_extends$
|
|
3897
|
+
function _extends$l() {
|
|
3898
|
+
_extends$l = Object.assign || function(target) {
|
|
3877
3899
|
for(var i = 1; i < arguments.length; i++){
|
|
3878
3900
|
var source = arguments[i];
|
|
3879
3901
|
for(var key in source){
|
|
@@ -3884,9 +3906,9 @@ function _extends$k() {
|
|
|
3884
3906
|
}
|
|
3885
3907
|
return target;
|
|
3886
3908
|
};
|
|
3887
|
-
return _extends$
|
|
3909
|
+
return _extends$l.apply(this, arguments);
|
|
3888
3910
|
}
|
|
3889
|
-
function _inherits$
|
|
3911
|
+
function _inherits$k(subClass, superClass) {
|
|
3890
3912
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3891
3913
|
throw new TypeError("Super expression must either be null or a function");
|
|
3892
3914
|
}
|
|
@@ -3897,23 +3919,23 @@ function _inherits$j(subClass, superClass) {
|
|
|
3897
3919
|
configurable: true
|
|
3898
3920
|
}
|
|
3899
3921
|
});
|
|
3900
|
-
if (superClass) _set_prototype_of$
|
|
3922
|
+
if (superClass) _set_prototype_of$k(subClass, superClass);
|
|
3901
3923
|
}
|
|
3902
|
-
function _set_prototype_of$
|
|
3903
|
-
_set_prototype_of$
|
|
3924
|
+
function _set_prototype_of$k(o, p) {
|
|
3925
|
+
_set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3904
3926
|
o.__proto__ = p;
|
|
3905
3927
|
return o;
|
|
3906
3928
|
};
|
|
3907
|
-
return _set_prototype_of$
|
|
3929
|
+
return _set_prototype_of$k(o, p);
|
|
3908
3930
|
}
|
|
3909
3931
|
/**
|
|
3910
3932
|
* 更多控件
|
|
3911
3933
|
* @category Control
|
|
3912
3934
|
*/ var More = /*#__PURE__*/ function(Control) {
|
|
3913
|
-
_inherits$
|
|
3935
|
+
_inherits$k(More, Control);
|
|
3914
3936
|
function More(options) {
|
|
3915
3937
|
var _this;
|
|
3916
|
-
_this = Control.call(this, _extends$
|
|
3938
|
+
_this = Control.call(this, _extends$l({}, options, {
|
|
3917
3939
|
tagName: 'span',
|
|
3918
3940
|
controlType: 'button',
|
|
3919
3941
|
classNameSuffix: 'more'
|
|
@@ -4119,6 +4141,16 @@ function debounce(func, wait) {
|
|
|
4119
4141
|
}
|
|
4120
4142
|
});
|
|
4121
4143
|
// =======================================================
|
|
4144
|
+
// AI对话框
|
|
4145
|
+
// =======================================================
|
|
4146
|
+
theme.on(EVENTS.aichatChange, function(active) {
|
|
4147
|
+
var _theme_controls, _theme_controls_aiChatControl, _theme_controls1;
|
|
4148
|
+
if (((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.aiChatControl) && active !== ((_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_aiChatControl = _theme_controls1.aiChatControl) == null ? void 0 : _theme_controls_aiChatControl.active)) {
|
|
4149
|
+
var _theme_controls_aiChatControl1, _theme_controls2;
|
|
4150
|
+
(_theme_controls2 = theme.controls) == null ? void 0 : (_theme_controls_aiChatControl1 = _theme_controls2.aiChatControl) == null ? void 0 : _theme_controls_aiChatControl1.emit(EVENTS.aichatChange, active);
|
|
4151
|
+
}
|
|
4152
|
+
});
|
|
4153
|
+
// =======================================================
|
|
4122
4154
|
// 录制
|
|
4123
4155
|
// =======================================================
|
|
4124
4156
|
theme.on(EVENTS.recordingChange, function(recording) {
|
|
@@ -4214,7 +4246,7 @@ function debounce(func, wait) {
|
|
|
4214
4246
|
*
|
|
4215
4247
|
* @param theme - Theme
|
|
4216
4248
|
*/ function _controlEventemitter(theme) {
|
|
4217
|
-
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;
|
|
4249
|
+
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;
|
|
4218
4250
|
// Controls
|
|
4219
4251
|
if (theme._recFooter) {
|
|
4220
4252
|
theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
|
|
@@ -4316,8 +4348,17 @@ function debounce(func, wait) {
|
|
|
4316
4348
|
theme.emit(EVENTS.control.broadcastDestroy);
|
|
4317
4349
|
});
|
|
4318
4350
|
}
|
|
4351
|
+
// AI对话框
|
|
4352
|
+
if ((_theme_controls6 = theme.controls) == null ? void 0 : _theme_controls6.aiChatControl) {
|
|
4353
|
+
theme.controls.aiChatControl.on(EVENTS.control.aichatChange, function(active) {
|
|
4354
|
+
theme.emit(EVENTS.control.aichatChange, active);
|
|
4355
|
+
});
|
|
4356
|
+
theme.controls.aiChatControl.on(EVENTS.control.aichatDestroy, function() {
|
|
4357
|
+
theme.emit(EVENTS.control.aichatDestroy);
|
|
4358
|
+
});
|
|
4359
|
+
}
|
|
4319
4360
|
// 缩放控件
|
|
4320
|
-
if ((
|
|
4361
|
+
if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.zoomControl) {
|
|
4321
4362
|
theme.controls.zoomControl.on(EVENTS.control.zoomChange, function(value, _percent, _range) {
|
|
4322
4363
|
if (theme.zoom !== value) {
|
|
4323
4364
|
theme.zoom = value;
|
|
@@ -4339,7 +4380,7 @@ function debounce(func, wait) {
|
|
|
4339
4380
|
});
|
|
4340
4381
|
}
|
|
4341
4382
|
// 清晰度控件
|
|
4342
|
-
if ((
|
|
4383
|
+
if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.definitionControl) {
|
|
4343
4384
|
theme.controls.definitionControl.on(EVENTS.control.definitionPanelOpenChange, function(open, definition, item) {
|
|
4344
4385
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, definition);
|
|
4345
4386
|
theme.emit(EVENTS.control.definitionPanelOpenChange, open, definition, item);
|
|
@@ -4352,7 +4393,7 @@ function debounce(func, wait) {
|
|
|
4352
4393
|
});
|
|
4353
4394
|
}
|
|
4354
4395
|
// 倍速控件
|
|
4355
|
-
if ((
|
|
4396
|
+
if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.speedControl) {
|
|
4356
4397
|
theme.controls.speedControl.on(EVENTS.control.speedPanelOpenChange, function(open, speed, item) {
|
|
4357
4398
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, speed);
|
|
4358
4399
|
theme.emit(EVENTS.control.speedPanelOpenChange, open, speed, item);
|
|
@@ -4365,7 +4406,7 @@ function debounce(func, wait) {
|
|
|
4365
4406
|
});
|
|
4366
4407
|
}
|
|
4367
4408
|
// 截图控件
|
|
4368
|
-
if ((
|
|
4409
|
+
if ((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.capturePictureControl) {
|
|
4369
4410
|
theme.controls.capturePictureControl.on(EVENTS.control.capturePicture, function(options) {
|
|
4370
4411
|
theme.emit(EVENTS.control.capturePicture, options);
|
|
4371
4412
|
});
|
|
@@ -4374,25 +4415,25 @@ function debounce(func, wait) {
|
|
|
4374
4415
|
});
|
|
4375
4416
|
}
|
|
4376
4417
|
// 全屏控件
|
|
4377
|
-
if ((
|
|
4418
|
+
if ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.fullscreenControl) {
|
|
4378
4419
|
theme.controls.fullscreenControl.on(EVENTS.control.fullscreenDestroy, function() {
|
|
4379
4420
|
theme.emit(EVENTS.control.fullscreenDestroy);
|
|
4380
4421
|
});
|
|
4381
4422
|
}
|
|
4382
4423
|
// 全局全屏控件
|
|
4383
|
-
if ((
|
|
4424
|
+
if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.globalFullscreenControl) {
|
|
4384
4425
|
theme.controls.globalFullscreenControl.on(EVENTS.control.globalFullscreenDestroy, function() {
|
|
4385
4426
|
theme.emit(EVENTS.control.globalFullscreenDestroy);
|
|
4386
4427
|
});
|
|
4387
4428
|
}
|
|
4388
4429
|
// 设备信息控件
|
|
4389
|
-
if ((
|
|
4430
|
+
if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.deviceControl) {
|
|
4390
4431
|
theme.controls.deviceControl.on(EVENTS.control.deviceDestroy, function() {
|
|
4391
4432
|
theme.emit(EVENTS.control.deviceDestroy);
|
|
4392
4433
|
});
|
|
4393
4434
|
}
|
|
4394
4435
|
// 回放类型切换控件
|
|
4395
|
-
if ((
|
|
4436
|
+
if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.recControl) {
|
|
4396
4437
|
// prettier-ignore
|
|
4397
4438
|
theme.controls.recControl.on(EVENTS.control.recTypeChange, function(type) {
|
|
4398
4439
|
if (theme.recType !== type) {
|
|
@@ -4413,7 +4454,7 @@ function debounce(func, wait) {
|
|
|
4413
4454
|
});
|
|
4414
4455
|
}
|
|
4415
4456
|
// 时间轴控件
|
|
4416
|
-
if ((
|
|
4457
|
+
if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.timeLineControl) {
|
|
4417
4458
|
theme.controls.timeLineControl.on(EVENTS.control.timeLineChange, function(date) {
|
|
4418
4459
|
theme.emit(EVENTS.control.timeLineChange, date);
|
|
4419
4460
|
});
|
|
@@ -4430,7 +4471,7 @@ function debounce(func, wait) {
|
|
|
4430
4471
|
});
|
|
4431
4472
|
}
|
|
4432
4473
|
// 日历控件
|
|
4433
|
-
if ((
|
|
4474
|
+
if ((_theme_controls16 = theme.controls) == null ? void 0 : _theme_controls16.dateControl) {
|
|
4434
4475
|
theme.controls.dateControl.on(EVENTS.control.datePanelOpenChange, function(open, date) {
|
|
4435
4476
|
theme.emit(EVENTS.control.datePanelOpenChange, open, date);
|
|
4436
4477
|
});
|
|
@@ -4525,8 +4566,8 @@ function _create_class$5(Constructor, protoProps, staticProps) {
|
|
|
4525
4566
|
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
4526
4567
|
return Constructor;
|
|
4527
4568
|
}
|
|
4528
|
-
function _extends$
|
|
4529
|
-
_extends$
|
|
4569
|
+
function _extends$k() {
|
|
4570
|
+
_extends$k = Object.assign || function(target) {
|
|
4530
4571
|
for(var i = 1; i < arguments.length; i++){
|
|
4531
4572
|
var source = arguments[i];
|
|
4532
4573
|
for(var key in source){
|
|
@@ -4537,9 +4578,9 @@ function _extends$j() {
|
|
|
4537
4578
|
}
|
|
4538
4579
|
return target;
|
|
4539
4580
|
};
|
|
4540
|
-
return _extends$
|
|
4581
|
+
return _extends$k.apply(this, arguments);
|
|
4541
4582
|
}
|
|
4542
|
-
function _inherits$
|
|
4583
|
+
function _inherits$j(subClass, superClass) {
|
|
4543
4584
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
4544
4585
|
throw new TypeError("Super expression must either be null or a function");
|
|
4545
4586
|
}
|
|
@@ -4550,14 +4591,14 @@ function _inherits$i(subClass, superClass) {
|
|
|
4550
4591
|
configurable: true
|
|
4551
4592
|
}
|
|
4552
4593
|
});
|
|
4553
|
-
if (superClass) _set_prototype_of$
|
|
4594
|
+
if (superClass) _set_prototype_of$j(subClass, superClass);
|
|
4554
4595
|
}
|
|
4555
|
-
function _set_prototype_of$
|
|
4556
|
-
_set_prototype_of$
|
|
4596
|
+
function _set_prototype_of$j(o, p) {
|
|
4597
|
+
_set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
4557
4598
|
o.__proto__ = p;
|
|
4558
4599
|
return o;
|
|
4559
4600
|
};
|
|
4560
|
-
return _set_prototype_of$
|
|
4601
|
+
return _set_prototype_of$j(o, p);
|
|
4561
4602
|
}
|
|
4562
4603
|
var ZOOM_DEFAULT_OPTIONS = {
|
|
4563
4604
|
open: false,
|
|
@@ -4567,10 +4608,10 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4567
4608
|
* 电子放大控件
|
|
4568
4609
|
* @category Control
|
|
4569
4610
|
*/ var Zoom$1 = /*#__PURE__*/ function(Control) {
|
|
4570
|
-
_inherits$
|
|
4611
|
+
_inherits$j(Zoom, Control);
|
|
4571
4612
|
function Zoom(options) {
|
|
4572
4613
|
var _this;
|
|
4573
|
-
_this = Control.call(this, _extends$
|
|
4614
|
+
_this = Control.call(this, _extends$k({}, options, {
|
|
4574
4615
|
tagName: 'span',
|
|
4575
4616
|
controlType: 'button',
|
|
4576
4617
|
classNameSuffix: 'zoom'
|
|
@@ -5427,8 +5468,8 @@ function requireDist$1 () {
|
|
|
5427
5468
|
var distExports$1 = requireDist$1();
|
|
5428
5469
|
var Zoom = /*@__PURE__*/getDefaultExportFromCjs(distExports$1);
|
|
5429
5470
|
|
|
5430
|
-
function _extends$
|
|
5431
|
-
_extends$
|
|
5471
|
+
function _extends$j() {
|
|
5472
|
+
_extends$j = Object.assign || function(target) {
|
|
5432
5473
|
for(var i = 1; i < arguments.length; i++){
|
|
5433
5474
|
var source = arguments[i];
|
|
5434
5475
|
for(var key in source){
|
|
@@ -5439,10 +5480,10 @@ function _extends$i() {
|
|
|
5439
5480
|
}
|
|
5440
5481
|
return target;
|
|
5441
5482
|
};
|
|
5442
|
-
return _extends$
|
|
5483
|
+
return _extends$j.apply(this, arguments);
|
|
5443
5484
|
}
|
|
5444
5485
|
function __zoom(theme, container, options) {
|
|
5445
|
-
theme.zoomUtil = new Zoom(container, _extends$
|
|
5486
|
+
theme.zoomUtil = new Zoom(container, _extends$j({}, options || {}, {
|
|
5446
5487
|
min: 1,
|
|
5447
5488
|
onChange: function(zoom, reset) {
|
|
5448
5489
|
if (zoom !== theme._zoom) {
|
|
@@ -5460,7 +5501,7 @@ function __zoom(theme, container, options) {
|
|
|
5460
5501
|
}));
|
|
5461
5502
|
}
|
|
5462
5503
|
|
|
5463
|
-
function asyncGeneratorStep$
|
|
5504
|
+
function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5464
5505
|
try {
|
|
5465
5506
|
var info = gen[key](arg);
|
|
5466
5507
|
var value = info.value;
|
|
@@ -5474,22 +5515,22 @@ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5474
5515
|
Promise.resolve(value).then(_next, _throw);
|
|
5475
5516
|
}
|
|
5476
5517
|
}
|
|
5477
|
-
function _async_to_generator$
|
|
5518
|
+
function _async_to_generator$6(fn) {
|
|
5478
5519
|
return function() {
|
|
5479
5520
|
var self = this, args = arguments;
|
|
5480
5521
|
return new Promise(function(resolve, reject) {
|
|
5481
5522
|
var gen = fn.apply(self, args);
|
|
5482
5523
|
function _next(value) {
|
|
5483
|
-
asyncGeneratorStep$
|
|
5524
|
+
asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "next", value);
|
|
5484
5525
|
}
|
|
5485
5526
|
function _throw(err) {
|
|
5486
|
-
asyncGeneratorStep$
|
|
5527
|
+
asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "throw", err);
|
|
5487
5528
|
}
|
|
5488
5529
|
_next(undefined);
|
|
5489
5530
|
});
|
|
5490
5531
|
};
|
|
5491
5532
|
}
|
|
5492
|
-
function _ts_generator$
|
|
5533
|
+
function _ts_generator$6(thisArg, body) {
|
|
5493
5534
|
var f, y, t, _ = {
|
|
5494
5535
|
label: 0,
|
|
5495
5536
|
sent: function() {
|
|
@@ -5581,9 +5622,9 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5581
5622
|
}
|
|
5582
5623
|
}
|
|
5583
5624
|
function getThemeDataByTemplate(theme, id) {
|
|
5584
|
-
return _async_to_generator$
|
|
5625
|
+
return _async_to_generator$6(function() {
|
|
5585
5626
|
var _theme_options_token_httpToken, _theme_options_token, url;
|
|
5586
|
-
return _ts_generator$
|
|
5627
|
+
return _ts_generator$6(this, function(_state) {
|
|
5587
5628
|
switch(_state.label){
|
|
5588
5629
|
case 0:
|
|
5589
5630
|
url = theme.options.env.domain + "/api/service/media/template/getDetail?accessToken=" + (theme.options.accessToken || ((_theme_options_token = theme.options.token) == null ? void 0 : (_theme_options_token_httpToken = _theme_options_token.httpToken) == null ? void 0 : _theme_options_token_httpToken.url)) + "&id=" + id;
|
|
@@ -5592,8 +5633,8 @@ function getThemeDataByTemplate(theme, id) {
|
|
|
5592
5633
|
fetch(url, {
|
|
5593
5634
|
method: 'GET'
|
|
5594
5635
|
}).then(function(response) {
|
|
5595
|
-
return _async_to_generator$
|
|
5596
|
-
return _ts_generator$
|
|
5636
|
+
return _async_to_generator$6(function() {
|
|
5637
|
+
return _ts_generator$6(this, function(_state) {
|
|
5597
5638
|
switch(_state.label){
|
|
5598
5639
|
case 0:
|
|
5599
5640
|
return [
|
|
@@ -5638,7 +5679,7 @@ function getThemeDataByTemplate(theme, id) {
|
|
|
5638
5679
|
})();
|
|
5639
5680
|
}
|
|
5640
5681
|
|
|
5641
|
-
function asyncGeneratorStep$
|
|
5682
|
+
function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5642
5683
|
try {
|
|
5643
5684
|
var info = gen[key](arg);
|
|
5644
5685
|
var value = info.value;
|
|
@@ -5652,23 +5693,23 @@ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5652
5693
|
Promise.resolve(value).then(_next, _throw);
|
|
5653
5694
|
}
|
|
5654
5695
|
}
|
|
5655
|
-
function _async_to_generator$
|
|
5696
|
+
function _async_to_generator$5(fn) {
|
|
5656
5697
|
return function() {
|
|
5657
5698
|
var self = this, args = arguments;
|
|
5658
5699
|
return new Promise(function(resolve, reject) {
|
|
5659
5700
|
var gen = fn.apply(self, args);
|
|
5660
5701
|
function _next(value) {
|
|
5661
|
-
asyncGeneratorStep$
|
|
5702
|
+
asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
|
|
5662
5703
|
}
|
|
5663
5704
|
function _throw(err) {
|
|
5664
|
-
asyncGeneratorStep$
|
|
5705
|
+
asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
|
|
5665
5706
|
}
|
|
5666
5707
|
_next(undefined);
|
|
5667
5708
|
});
|
|
5668
5709
|
};
|
|
5669
5710
|
}
|
|
5670
|
-
function _extends$
|
|
5671
|
-
_extends$
|
|
5711
|
+
function _extends$i() {
|
|
5712
|
+
_extends$i = Object.assign || function(target) {
|
|
5672
5713
|
for(var i = 1; i < arguments.length; i++){
|
|
5673
5714
|
var source = arguments[i];
|
|
5674
5715
|
for(var key in source){
|
|
@@ -5679,9 +5720,9 @@ function _extends$h() {
|
|
|
5679
5720
|
}
|
|
5680
5721
|
return target;
|
|
5681
5722
|
};
|
|
5682
|
-
return _extends$
|
|
5723
|
+
return _extends$i.apply(this, arguments);
|
|
5683
5724
|
}
|
|
5684
|
-
function _ts_generator$
|
|
5725
|
+
function _ts_generator$5(thisArg, body) {
|
|
5685
5726
|
var f, y, t, _ = {
|
|
5686
5727
|
label: 0,
|
|
5687
5728
|
sent: function() {
|
|
@@ -5807,7 +5848,7 @@ function _ts_generator$4(thisArg, body) {
|
|
|
5807
5848
|
}
|
|
5808
5849
|
if (item.isrender === 1 && REC_GROUP.includes(item.iconId)) {
|
|
5809
5850
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5810
|
-
recControls.push(recControls[0] ? _extends$
|
|
5851
|
+
recControls.push(recControls[0] ? _extends$i({}, item, {
|
|
5811
5852
|
part: recControls[0].part
|
|
5812
5853
|
}) : item);
|
|
5813
5854
|
return false;
|
|
@@ -5830,7 +5871,7 @@ function _ts_generator$4(thisArg, body) {
|
|
|
5830
5871
|
}
|
|
5831
5872
|
if (item.isrender === 1 && REC_GROUP.includes(item.iconId)) {
|
|
5832
5873
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5833
|
-
recControls.push(recControls[0] ? _extends$
|
|
5874
|
+
recControls.push(recControls[0] ? _extends$i({}, item, {
|
|
5834
5875
|
part: recControls[0].part
|
|
5835
5876
|
}) : item);
|
|
5836
5877
|
return false;
|
|
@@ -5892,9 +5933,9 @@ function _filterLeftRightControls(btnList) {
|
|
|
5892
5933
|
* @param data
|
|
5893
5934
|
* @returns
|
|
5894
5935
|
*/ function getThemeData(theme, data) {
|
|
5895
|
-
return _async_to_generator$
|
|
5936
|
+
return _async_to_generator$5(function() {
|
|
5896
5937
|
var themeData, _theme_logger, template;
|
|
5897
|
-
return _ts_generator$
|
|
5938
|
+
return _ts_generator$5(this, function(_state) {
|
|
5898
5939
|
switch(_state.label){
|
|
5899
5940
|
case 0:
|
|
5900
5941
|
themeData = data;
|
|
@@ -6085,8 +6126,8 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
|
|
|
6085
6126
|
return Component;
|
|
6086
6127
|
}();
|
|
6087
6128
|
|
|
6088
|
-
function _extends$
|
|
6089
|
-
_extends$
|
|
6129
|
+
function _extends$h() {
|
|
6130
|
+
_extends$h = Object.assign || function(target) {
|
|
6090
6131
|
for(var i = 1; i < arguments.length; i++){
|
|
6091
6132
|
var source = arguments[i];
|
|
6092
6133
|
for(var key in source){
|
|
@@ -6097,9 +6138,9 @@ function _extends$g() {
|
|
|
6097
6138
|
}
|
|
6098
6139
|
return target;
|
|
6099
6140
|
};
|
|
6100
|
-
return _extends$
|
|
6141
|
+
return _extends$h.apply(this, arguments);
|
|
6101
6142
|
}
|
|
6102
|
-
function _inherits$
|
|
6143
|
+
function _inherits$i(subClass, superClass) {
|
|
6103
6144
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6104
6145
|
throw new TypeError("Super expression must either be null or a function");
|
|
6105
6146
|
}
|
|
@@ -6110,28 +6151,28 @@ function _inherits$h(subClass, superClass) {
|
|
|
6110
6151
|
configurable: true
|
|
6111
6152
|
}
|
|
6112
6153
|
});
|
|
6113
|
-
if (superClass) _set_prototype_of$
|
|
6154
|
+
if (superClass) _set_prototype_of$i(subClass, superClass);
|
|
6114
6155
|
}
|
|
6115
|
-
function _set_prototype_of$
|
|
6116
|
-
_set_prototype_of$
|
|
6156
|
+
function _set_prototype_of$i(o, p) {
|
|
6157
|
+
_set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6117
6158
|
o.__proto__ = p;
|
|
6118
6159
|
return o;
|
|
6119
6160
|
};
|
|
6120
|
-
return _set_prototype_of$
|
|
6161
|
+
return _set_prototype_of$i(o, p);
|
|
6121
6162
|
}
|
|
6122
6163
|
var Footer = /*#__PURE__*/ function(Component) {
|
|
6123
|
-
_inherits$
|
|
6164
|
+
_inherits$i(Footer, Component);
|
|
6124
6165
|
function Footer(options) {
|
|
6125
6166
|
if (options === void 0) options = {};
|
|
6126
|
-
return Component.call(this, _extends$
|
|
6167
|
+
return Component.call(this, _extends$h({}, options, {
|
|
6127
6168
|
cType: 'footer'
|
|
6128
6169
|
})) || this;
|
|
6129
6170
|
}
|
|
6130
6171
|
return Footer;
|
|
6131
6172
|
}(Component);
|
|
6132
6173
|
|
|
6133
|
-
function _extends$
|
|
6134
|
-
_extends$
|
|
6174
|
+
function _extends$g() {
|
|
6175
|
+
_extends$g = Object.assign || function(target) {
|
|
6135
6176
|
for(var i = 1; i < arguments.length; i++){
|
|
6136
6177
|
var source = arguments[i];
|
|
6137
6178
|
for(var key in source){
|
|
@@ -6142,9 +6183,9 @@ function _extends$f() {
|
|
|
6142
6183
|
}
|
|
6143
6184
|
return target;
|
|
6144
6185
|
};
|
|
6145
|
-
return _extends$
|
|
6186
|
+
return _extends$g.apply(this, arguments);
|
|
6146
6187
|
}
|
|
6147
|
-
function _inherits$
|
|
6188
|
+
function _inherits$h(subClass, superClass) {
|
|
6148
6189
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6149
6190
|
throw new TypeError("Super expression must either be null or a function");
|
|
6150
6191
|
}
|
|
@@ -6155,20 +6196,20 @@ function _inherits$g(subClass, superClass) {
|
|
|
6155
6196
|
configurable: true
|
|
6156
6197
|
}
|
|
6157
6198
|
});
|
|
6158
|
-
if (superClass) _set_prototype_of$
|
|
6199
|
+
if (superClass) _set_prototype_of$h(subClass, superClass);
|
|
6159
6200
|
}
|
|
6160
|
-
function _set_prototype_of$
|
|
6161
|
-
_set_prototype_of$
|
|
6201
|
+
function _set_prototype_of$h(o, p) {
|
|
6202
|
+
_set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6162
6203
|
o.__proto__ = p;
|
|
6163
6204
|
return o;
|
|
6164
6205
|
};
|
|
6165
|
-
return _set_prototype_of$
|
|
6206
|
+
return _set_prototype_of$h(o, p);
|
|
6166
6207
|
}
|
|
6167
6208
|
var Header = /*#__PURE__*/ function(Component) {
|
|
6168
|
-
_inherits$
|
|
6209
|
+
_inherits$h(Header, Component);
|
|
6169
6210
|
function Header(options) {
|
|
6170
6211
|
if (options === void 0) options = {};
|
|
6171
|
-
return Component.call(this, _extends$
|
|
6212
|
+
return Component.call(this, _extends$g({}, options, {
|
|
6172
6213
|
cType: 'header'
|
|
6173
6214
|
})) || this;
|
|
6174
6215
|
}
|
|
@@ -6334,8 +6375,8 @@ function interactiveHF($container, second, callback) {
|
|
|
6334
6375
|
};
|
|
6335
6376
|
}
|
|
6336
6377
|
|
|
6337
|
-
function _extends$
|
|
6338
|
-
_extends$
|
|
6378
|
+
function _extends$f() {
|
|
6379
|
+
_extends$f = Object.assign || function(target) {
|
|
6339
6380
|
for(var i = 1; i < arguments.length; i++){
|
|
6340
6381
|
var source = arguments[i];
|
|
6341
6382
|
for(var key in source){
|
|
@@ -6346,9 +6387,9 @@ function _extends$e() {
|
|
|
6346
6387
|
}
|
|
6347
6388
|
return target;
|
|
6348
6389
|
};
|
|
6349
|
-
return _extends$
|
|
6390
|
+
return _extends$f.apply(this, arguments);
|
|
6350
6391
|
}
|
|
6351
|
-
function _inherits$
|
|
6392
|
+
function _inherits$g(subClass, superClass) {
|
|
6352
6393
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6353
6394
|
throw new TypeError("Super expression must either be null or a function");
|
|
6354
6395
|
}
|
|
@@ -6359,23 +6400,23 @@ function _inherits$f(subClass, superClass) {
|
|
|
6359
6400
|
configurable: true
|
|
6360
6401
|
}
|
|
6361
6402
|
});
|
|
6362
|
-
if (superClass) _set_prototype_of$
|
|
6403
|
+
if (superClass) _set_prototype_of$g(subClass, superClass);
|
|
6363
6404
|
}
|
|
6364
|
-
function _set_prototype_of$
|
|
6365
|
-
_set_prototype_of$
|
|
6405
|
+
function _set_prototype_of$g(o, p) {
|
|
6406
|
+
_set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6366
6407
|
o.__proto__ = p;
|
|
6367
6408
|
return o;
|
|
6368
6409
|
};
|
|
6369
|
-
return _set_prototype_of$
|
|
6410
|
+
return _set_prototype_of$g(o, p);
|
|
6370
6411
|
}
|
|
6371
6412
|
/**
|
|
6372
6413
|
* 全局全屏
|
|
6373
6414
|
* 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
|
|
6374
6415
|
* @category Control
|
|
6375
6416
|
*/ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
|
|
6376
|
-
_inherits$
|
|
6417
|
+
_inherits$g(GlobalFullscreen, Fullscreen);
|
|
6377
6418
|
function GlobalFullscreen(options) {
|
|
6378
|
-
return Fullscreen.call(this, _extends$
|
|
6419
|
+
return Fullscreen.call(this, _extends$f({}, options, {
|
|
6379
6420
|
controlType: 'button',
|
|
6380
6421
|
classNameSuffix: 'global-fullscreen'
|
|
6381
6422
|
})) || this;
|
|
@@ -6406,8 +6447,8 @@ function _set_prototype_of$f(o, p) {
|
|
|
6406
6447
|
return GlobalFullscreen;
|
|
6407
6448
|
}(Fullscreen);
|
|
6408
6449
|
|
|
6409
|
-
function _extends$
|
|
6410
|
-
_extends$
|
|
6450
|
+
function _extends$e() {
|
|
6451
|
+
_extends$e = Object.assign || function(target) {
|
|
6411
6452
|
for(var i = 1; i < arguments.length; i++){
|
|
6412
6453
|
var source = arguments[i];
|
|
6413
6454
|
for(var key in source){
|
|
@@ -6418,9 +6459,9 @@ function _extends$d() {
|
|
|
6418
6459
|
}
|
|
6419
6460
|
return target;
|
|
6420
6461
|
};
|
|
6421
|
-
return _extends$
|
|
6462
|
+
return _extends$e.apply(this, arguments);
|
|
6422
6463
|
}
|
|
6423
|
-
function _inherits$
|
|
6464
|
+
function _inherits$f(subClass, superClass) {
|
|
6424
6465
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6425
6466
|
throw new TypeError("Super expression must either be null or a function");
|
|
6426
6467
|
}
|
|
@@ -6431,23 +6472,23 @@ function _inherits$e(subClass, superClass) {
|
|
|
6431
6472
|
configurable: true
|
|
6432
6473
|
}
|
|
6433
6474
|
});
|
|
6434
|
-
if (superClass) _set_prototype_of$
|
|
6475
|
+
if (superClass) _set_prototype_of$f(subClass, superClass);
|
|
6435
6476
|
}
|
|
6436
|
-
function _set_prototype_of$
|
|
6437
|
-
_set_prototype_of$
|
|
6477
|
+
function _set_prototype_of$f(o, p) {
|
|
6478
|
+
_set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6438
6479
|
o.__proto__ = p;
|
|
6439
6480
|
return o;
|
|
6440
6481
|
};
|
|
6441
|
-
return _set_prototype_of$
|
|
6482
|
+
return _set_prototype_of$f(o, p);
|
|
6442
6483
|
}
|
|
6443
6484
|
/**
|
|
6444
6485
|
* 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
|
|
6445
6486
|
* @category Control
|
|
6446
6487
|
*/ var CapturePicture = /*#__PURE__*/ function(Control) {
|
|
6447
|
-
_inherits$
|
|
6488
|
+
_inherits$f(CapturePicture, Control);
|
|
6448
6489
|
function CapturePicture(options) {
|
|
6449
6490
|
var _this;
|
|
6450
|
-
_this = Control.call(this, _extends$
|
|
6491
|
+
_this = Control.call(this, _extends$e({}, options, {
|
|
6451
6492
|
tagName: 'span',
|
|
6452
6493
|
classNameSuffix: 'capture-picture'
|
|
6453
6494
|
})) || this, _this._timer = null;
|
|
@@ -7456,8 +7497,8 @@ function _create_class$4(Constructor, protoProps, staticProps) {
|
|
|
7456
7497
|
if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
|
|
7457
7498
|
return Constructor;
|
|
7458
7499
|
}
|
|
7459
|
-
function _extends$
|
|
7460
|
-
_extends$
|
|
7500
|
+
function _extends$d() {
|
|
7501
|
+
_extends$d = Object.assign || function(target) {
|
|
7461
7502
|
for(var i = 1; i < arguments.length; i++){
|
|
7462
7503
|
var source = arguments[i];
|
|
7463
7504
|
for(var key in source){
|
|
@@ -7468,9 +7509,9 @@ function _extends$c() {
|
|
|
7468
7509
|
}
|
|
7469
7510
|
return target;
|
|
7470
7511
|
};
|
|
7471
|
-
return _extends$
|
|
7512
|
+
return _extends$d.apply(this, arguments);
|
|
7472
7513
|
}
|
|
7473
|
-
function _inherits$
|
|
7514
|
+
function _inherits$e(subClass, superClass) {
|
|
7474
7515
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
7475
7516
|
throw new TypeError("Super expression must either be null or a function");
|
|
7476
7517
|
}
|
|
@@ -7481,23 +7522,23 @@ function _inherits$d(subClass, superClass) {
|
|
|
7481
7522
|
configurable: true
|
|
7482
7523
|
}
|
|
7483
7524
|
});
|
|
7484
|
-
if (superClass) _set_prototype_of$
|
|
7525
|
+
if (superClass) _set_prototype_of$e(subClass, superClass);
|
|
7485
7526
|
}
|
|
7486
|
-
function _set_prototype_of$
|
|
7487
|
-
_set_prototype_of$
|
|
7527
|
+
function _set_prototype_of$e(o, p) {
|
|
7528
|
+
_set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7488
7529
|
o.__proto__ = p;
|
|
7489
7530
|
return o;
|
|
7490
7531
|
};
|
|
7491
|
-
return _set_prototype_of$
|
|
7532
|
+
return _set_prototype_of$e(o, p);
|
|
7492
7533
|
}
|
|
7493
7534
|
/**
|
|
7494
7535
|
* 云台控件
|
|
7495
7536
|
* @category Control
|
|
7496
7537
|
*/ var Ptz = /*#__PURE__*/ function(Control) {
|
|
7497
|
-
_inherits$
|
|
7538
|
+
_inherits$e(Ptz, Control);
|
|
7498
7539
|
function Ptz(options) {
|
|
7499
7540
|
var _this;
|
|
7500
|
-
_this = Control.call(this, _extends$
|
|
7541
|
+
_this = Control.call(this, _extends$d({}, options, {
|
|
7501
7542
|
tagName: 'span',
|
|
7502
7543
|
controlType: 'button',
|
|
7503
7544
|
classNameSuffix: 'ptz'
|
|
@@ -7540,7 +7581,7 @@ function _set_prototype_of$d(o, p) {
|
|
|
7540
7581
|
this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
|
|
7541
7582
|
this.$panel.appendChild(this.$turntable);
|
|
7542
7583
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
7543
|
-
this._ptzControl = new distExports.Ptz(this.$turntable, _extends$
|
|
7584
|
+
this._ptzControl = new distExports.Ptz(this.$turntable, _extends$d({}, this._options, {
|
|
7544
7585
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
7545
7586
|
onDirection: this._onDirection.bind(this)
|
|
7546
7587
|
}));
|
|
@@ -7549,7 +7590,7 @@ function _set_prototype_of$d(o, p) {
|
|
|
7549
7590
|
};
|
|
7550
7591
|
_proto.renderMobileExtend = function renderMobileExtend($container) {
|
|
7551
7592
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
7552
|
-
if (!this._ptzControl1) this._ptzControl1 = new distExports.MobilePtz($container, _extends$
|
|
7593
|
+
if (!this._ptzControl1) this._ptzControl1 = new distExports.MobilePtz($container, _extends$d({}, this._options, {
|
|
7553
7594
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
7554
7595
|
onDirection: this._onDirection.bind(this)
|
|
7555
7596
|
}));
|
|
@@ -7652,8 +7693,8 @@ function _create_class$3(Constructor, protoProps, staticProps) {
|
|
|
7652
7693
|
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
7653
7694
|
return Constructor;
|
|
7654
7695
|
}
|
|
7655
|
-
function _extends$
|
|
7656
|
-
_extends$
|
|
7696
|
+
function _extends$c() {
|
|
7697
|
+
_extends$c = Object.assign || function(target) {
|
|
7657
7698
|
for(var i = 1; i < arguments.length; i++){
|
|
7658
7699
|
var source = arguments[i];
|
|
7659
7700
|
for(var key in source){
|
|
@@ -7664,9 +7705,9 @@ function _extends$b() {
|
|
|
7664
7705
|
}
|
|
7665
7706
|
return target;
|
|
7666
7707
|
};
|
|
7667
|
-
return _extends$
|
|
7708
|
+
return _extends$c.apply(this, arguments);
|
|
7668
7709
|
}
|
|
7669
|
-
function _inherits$
|
|
7710
|
+
function _inherits$d(subClass, superClass) {
|
|
7670
7711
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
7671
7712
|
throw new TypeError("Super expression must either be null or a function");
|
|
7672
7713
|
}
|
|
@@ -7677,14 +7718,14 @@ function _inherits$c(subClass, superClass) {
|
|
|
7677
7718
|
configurable: true
|
|
7678
7719
|
}
|
|
7679
7720
|
});
|
|
7680
|
-
if (superClass) _set_prototype_of$
|
|
7721
|
+
if (superClass) _set_prototype_of$d(subClass, superClass);
|
|
7681
7722
|
}
|
|
7682
|
-
function _set_prototype_of$
|
|
7683
|
-
_set_prototype_of$
|
|
7723
|
+
function _set_prototype_of$d(o, p) {
|
|
7724
|
+
_set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7684
7725
|
o.__proto__ = p;
|
|
7685
7726
|
return o;
|
|
7686
7727
|
};
|
|
7687
|
-
return _set_prototype_of$
|
|
7728
|
+
return _set_prototype_of$d(o, p);
|
|
7688
7729
|
}
|
|
7689
7730
|
var RECORD_DEFAULT_OPTIONS = {
|
|
7690
7731
|
maxDuration: 3600
|
|
@@ -7698,10 +7739,10 @@ var RECORD_DEFAULT_OPTIONS = {
|
|
|
7698
7739
|
* 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
|
|
7699
7740
|
* @category Control
|
|
7700
7741
|
*/ var Record = /*#__PURE__*/ function(Control) {
|
|
7701
|
-
_inherits$
|
|
7742
|
+
_inherits$d(Record, Control);
|
|
7702
7743
|
function Record(options) {
|
|
7703
7744
|
var _this;
|
|
7704
|
-
_this = Control.call(this, _extends$
|
|
7745
|
+
_this = Control.call(this, _extends$c({}, options, {
|
|
7705
7746
|
tagName: 'span',
|
|
7706
7747
|
controlType: 'button',
|
|
7707
7748
|
classNameSuffix: 'record'
|
|
@@ -7800,7 +7841,7 @@ var RECORD_DEFAULT_OPTIONS = {
|
|
|
7800
7841
|
return Record;
|
|
7801
7842
|
}(Control);
|
|
7802
7843
|
|
|
7803
|
-
function asyncGeneratorStep$
|
|
7844
|
+
function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
7804
7845
|
try {
|
|
7805
7846
|
var info = gen[key](arg);
|
|
7806
7847
|
var value = info.value;
|
|
@@ -7814,16 +7855,16 @@ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
7814
7855
|
Promise.resolve(value).then(_next, _throw);
|
|
7815
7856
|
}
|
|
7816
7857
|
}
|
|
7817
|
-
function _async_to_generator$
|
|
7858
|
+
function _async_to_generator$4(fn) {
|
|
7818
7859
|
return function() {
|
|
7819
7860
|
var self = this, args = arguments;
|
|
7820
7861
|
return new Promise(function(resolve, reject) {
|
|
7821
7862
|
var gen = fn.apply(self, args);
|
|
7822
7863
|
function _next(value) {
|
|
7823
|
-
asyncGeneratorStep$
|
|
7864
|
+
asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value);
|
|
7824
7865
|
}
|
|
7825
7866
|
function _throw(err) {
|
|
7826
|
-
asyncGeneratorStep$
|
|
7867
|
+
asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err);
|
|
7827
7868
|
}
|
|
7828
7869
|
_next(undefined);
|
|
7829
7870
|
});
|
|
@@ -7842,8 +7883,8 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
|
7842
7883
|
if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
|
|
7843
7884
|
return Constructor;
|
|
7844
7885
|
}
|
|
7845
|
-
function _extends$
|
|
7846
|
-
_extends$
|
|
7886
|
+
function _extends$b() {
|
|
7887
|
+
_extends$b = Object.assign || function(target) {
|
|
7847
7888
|
for(var i = 1; i < arguments.length; i++){
|
|
7848
7889
|
var source = arguments[i];
|
|
7849
7890
|
for(var key in source){
|
|
@@ -7854,9 +7895,9 @@ function _extends$a() {
|
|
|
7854
7895
|
}
|
|
7855
7896
|
return target;
|
|
7856
7897
|
};
|
|
7857
|
-
return _extends$
|
|
7898
|
+
return _extends$b.apply(this, arguments);
|
|
7858
7899
|
}
|
|
7859
|
-
function _inherits$
|
|
7900
|
+
function _inherits$c(subClass, superClass) {
|
|
7860
7901
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
7861
7902
|
throw new TypeError("Super expression must either be null or a function");
|
|
7862
7903
|
}
|
|
@@ -7867,16 +7908,16 @@ function _inherits$b(subClass, superClass) {
|
|
|
7867
7908
|
configurable: true
|
|
7868
7909
|
}
|
|
7869
7910
|
});
|
|
7870
|
-
if (superClass) _set_prototype_of$
|
|
7911
|
+
if (superClass) _set_prototype_of$c(subClass, superClass);
|
|
7871
7912
|
}
|
|
7872
|
-
function _set_prototype_of$
|
|
7873
|
-
_set_prototype_of$
|
|
7913
|
+
function _set_prototype_of$c(o, p) {
|
|
7914
|
+
_set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7874
7915
|
o.__proto__ = p;
|
|
7875
7916
|
return o;
|
|
7876
7917
|
};
|
|
7877
|
-
return _set_prototype_of$
|
|
7918
|
+
return _set_prototype_of$c(o, p);
|
|
7878
7919
|
}
|
|
7879
|
-
function _ts_generator$
|
|
7920
|
+
function _ts_generator$4(thisArg, body) {
|
|
7880
7921
|
var f, y, t, _ = {
|
|
7881
7922
|
label: 0,
|
|
7882
7923
|
sent: function() {
|
|
@@ -7976,10 +8017,10 @@ function _ts_generator$3(thisArg, body) {
|
|
|
7976
8017
|
*
|
|
7977
8018
|
* @category Control
|
|
7978
8019
|
*/ var Talk = /*#__PURE__*/ function(Control) {
|
|
7979
|
-
_inherits$
|
|
8020
|
+
_inherits$c(Talk, Control);
|
|
7980
8021
|
function Talk(options) {
|
|
7981
8022
|
var _this;
|
|
7982
|
-
_this = Control.call(this, _extends$
|
|
8023
|
+
_this = Control.call(this, _extends$b({}, options, {
|
|
7983
8024
|
tagName: 'span',
|
|
7984
8025
|
controlType: 'button',
|
|
7985
8026
|
classNameSuffix: 'talk'
|
|
@@ -8031,8 +8072,8 @@ function _ts_generator$3(thisArg, body) {
|
|
|
8031
8072
|
var _this = this, _superprop_get__onControlClick = function() {
|
|
8032
8073
|
return Control.prototype._onControlClick;
|
|
8033
8074
|
};
|
|
8034
|
-
return _async_to_generator$
|
|
8035
|
-
return _ts_generator$
|
|
8075
|
+
return _async_to_generator$4(function() {
|
|
8076
|
+
return _ts_generator$4(this, function(_state) {
|
|
8036
8077
|
_superprop_get__onControlClick().call(_this, e);
|
|
8037
8078
|
this.active = !this.active;
|
|
8038
8079
|
this.emit(EVENTS.control.talkingChange, this.active);
|
|
@@ -8083,7 +8124,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
8083
8124
|
return Talk;
|
|
8084
8125
|
}(Control);
|
|
8085
8126
|
|
|
8086
|
-
function asyncGeneratorStep$
|
|
8127
|
+
function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
8087
8128
|
try {
|
|
8088
8129
|
var info = gen[key](arg);
|
|
8089
8130
|
var value = info.value;
|
|
@@ -8097,23 +8138,23 @@ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
8097
8138
|
Promise.resolve(value).then(_next, _throw);
|
|
8098
8139
|
}
|
|
8099
8140
|
}
|
|
8100
|
-
function _async_to_generator$
|
|
8141
|
+
function _async_to_generator$3(fn) {
|
|
8101
8142
|
return function() {
|
|
8102
8143
|
var self = this, args = arguments;
|
|
8103
8144
|
return new Promise(function(resolve, reject) {
|
|
8104
8145
|
var gen = fn.apply(self, args);
|
|
8105
8146
|
function _next(value) {
|
|
8106
|
-
asyncGeneratorStep$
|
|
8147
|
+
asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value);
|
|
8107
8148
|
}
|
|
8108
8149
|
function _throw(err) {
|
|
8109
|
-
asyncGeneratorStep$
|
|
8150
|
+
asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err);
|
|
8110
8151
|
}
|
|
8111
8152
|
_next(undefined);
|
|
8112
8153
|
});
|
|
8113
8154
|
};
|
|
8114
8155
|
}
|
|
8115
|
-
function _extends$
|
|
8116
|
-
_extends$
|
|
8156
|
+
function _extends$a() {
|
|
8157
|
+
_extends$a = Object.assign || function(target) {
|
|
8117
8158
|
for(var i = 1; i < arguments.length; i++){
|
|
8118
8159
|
var source = arguments[i];
|
|
8119
8160
|
for(var key in source){
|
|
@@ -8124,9 +8165,9 @@ function _extends$9() {
|
|
|
8124
8165
|
}
|
|
8125
8166
|
return target;
|
|
8126
8167
|
};
|
|
8127
|
-
return _extends$
|
|
8168
|
+
return _extends$a.apply(this, arguments);
|
|
8128
8169
|
}
|
|
8129
|
-
function _inherits$
|
|
8170
|
+
function _inherits$b(subClass, superClass) {
|
|
8130
8171
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
8131
8172
|
throw new TypeError("Super expression must either be null or a function");
|
|
8132
8173
|
}
|
|
@@ -8137,16 +8178,16 @@ function _inherits$a(subClass, superClass) {
|
|
|
8137
8178
|
configurable: true
|
|
8138
8179
|
}
|
|
8139
8180
|
});
|
|
8140
|
-
if (superClass) _set_prototype_of$
|
|
8181
|
+
if (superClass) _set_prototype_of$b(subClass, superClass);
|
|
8141
8182
|
}
|
|
8142
|
-
function _set_prototype_of$
|
|
8143
|
-
_set_prototype_of$
|
|
8183
|
+
function _set_prototype_of$b(o, p) {
|
|
8184
|
+
_set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
8144
8185
|
o.__proto__ = p;
|
|
8145
8186
|
return o;
|
|
8146
8187
|
};
|
|
8147
|
-
return _set_prototype_of$
|
|
8188
|
+
return _set_prototype_of$b(o, p);
|
|
8148
8189
|
}
|
|
8149
|
-
function _ts_generator$
|
|
8190
|
+
function _ts_generator$3(thisArg, body) {
|
|
8150
8191
|
var f, y, t, _ = {
|
|
8151
8192
|
label: 0,
|
|
8152
8193
|
sent: function() {
|
|
@@ -8244,10 +8285,10 @@ function _ts_generator$2(thisArg, body) {
|
|
|
8244
8285
|
*
|
|
8245
8286
|
* @category Control
|
|
8246
8287
|
*/ var Broadcast = /*#__PURE__*/ function(Control) {
|
|
8247
|
-
_inherits$
|
|
8288
|
+
_inherits$b(Broadcast, Control);
|
|
8248
8289
|
function Broadcast(options) {
|
|
8249
8290
|
var _this;
|
|
8250
|
-
_this = Control.call(this, _extends$
|
|
8291
|
+
_this = Control.call(this, _extends$a({}, options, {
|
|
8251
8292
|
tagName: 'span',
|
|
8252
8293
|
controlType: 'button',
|
|
8253
8294
|
classNameSuffix: 'broadcast'
|
|
@@ -8291,9 +8332,9 @@ function _ts_generator$2(thisArg, body) {
|
|
|
8291
8332
|
var _this = this, _superprop_get__onControlClick = function() {
|
|
8292
8333
|
return Control.prototype._onControlClick;
|
|
8293
8334
|
};
|
|
8294
|
-
return _async_to_generator$
|
|
8335
|
+
return _async_to_generator$3(function() {
|
|
8295
8336
|
var _this__options_onChange, _this__options;
|
|
8296
|
-
return _ts_generator$
|
|
8337
|
+
return _ts_generator$3(this, function(_state) {
|
|
8297
8338
|
_superprop_get__onControlClick().call(_this, e);
|
|
8298
8339
|
this.active = !this.active;
|
|
8299
8340
|
this.emit(EVENTS.control.broadcastChange, this.active);
|
|
@@ -8308,6 +8349,233 @@ function _ts_generator$2(thisArg, body) {
|
|
|
8308
8349
|
return Broadcast;
|
|
8309
8350
|
}(Control);
|
|
8310
8351
|
|
|
8352
|
+
function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
8353
|
+
try {
|
|
8354
|
+
var info = gen[key](arg);
|
|
8355
|
+
var value = info.value;
|
|
8356
|
+
} catch (error) {
|
|
8357
|
+
reject(error);
|
|
8358
|
+
return;
|
|
8359
|
+
}
|
|
8360
|
+
if (info.done) {
|
|
8361
|
+
resolve(value);
|
|
8362
|
+
} else {
|
|
8363
|
+
Promise.resolve(value).then(_next, _throw);
|
|
8364
|
+
}
|
|
8365
|
+
}
|
|
8366
|
+
function _async_to_generator$2(fn) {
|
|
8367
|
+
return function() {
|
|
8368
|
+
var self = this, args = arguments;
|
|
8369
|
+
return new Promise(function(resolve, reject) {
|
|
8370
|
+
var gen = fn.apply(self, args);
|
|
8371
|
+
function _next(value) {
|
|
8372
|
+
asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value);
|
|
8373
|
+
}
|
|
8374
|
+
function _throw(err) {
|
|
8375
|
+
asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err);
|
|
8376
|
+
}
|
|
8377
|
+
_next(undefined);
|
|
8378
|
+
});
|
|
8379
|
+
};
|
|
8380
|
+
}
|
|
8381
|
+
function _extends$9() {
|
|
8382
|
+
_extends$9 = Object.assign || function(target) {
|
|
8383
|
+
for(var i = 1; i < arguments.length; i++){
|
|
8384
|
+
var source = arguments[i];
|
|
8385
|
+
for(var key in source){
|
|
8386
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8387
|
+
target[key] = source[key];
|
|
8388
|
+
}
|
|
8389
|
+
}
|
|
8390
|
+
}
|
|
8391
|
+
return target;
|
|
8392
|
+
};
|
|
8393
|
+
return _extends$9.apply(this, arguments);
|
|
8394
|
+
}
|
|
8395
|
+
function _inherits$a(subClass, superClass) {
|
|
8396
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
8397
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
8398
|
+
}
|
|
8399
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
8400
|
+
constructor: {
|
|
8401
|
+
value: subClass,
|
|
8402
|
+
writable: true,
|
|
8403
|
+
configurable: true
|
|
8404
|
+
}
|
|
8405
|
+
});
|
|
8406
|
+
if (superClass) _set_prototype_of$a(subClass, superClass);
|
|
8407
|
+
}
|
|
8408
|
+
function _set_prototype_of$a(o, p) {
|
|
8409
|
+
_set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
8410
|
+
o.__proto__ = p;
|
|
8411
|
+
return o;
|
|
8412
|
+
};
|
|
8413
|
+
return _set_prototype_of$a(o, p);
|
|
8414
|
+
}
|
|
8415
|
+
function _ts_generator$2(thisArg, body) {
|
|
8416
|
+
var f, y, t, _ = {
|
|
8417
|
+
label: 0,
|
|
8418
|
+
sent: function() {
|
|
8419
|
+
if (t[0] & 1) throw t[1];
|
|
8420
|
+
return t[1];
|
|
8421
|
+
},
|
|
8422
|
+
trys: [],
|
|
8423
|
+
ops: []
|
|
8424
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
8425
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
8426
|
+
return this;
|
|
8427
|
+
}), g;
|
|
8428
|
+
function verb(n) {
|
|
8429
|
+
return function(v) {
|
|
8430
|
+
return step([
|
|
8431
|
+
n,
|
|
8432
|
+
v
|
|
8433
|
+
]);
|
|
8434
|
+
};
|
|
8435
|
+
}
|
|
8436
|
+
function step(op) {
|
|
8437
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
8438
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
8439
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
8440
|
+
if (y = 0, t) op = [
|
|
8441
|
+
op[0] & 2,
|
|
8442
|
+
t.value
|
|
8443
|
+
];
|
|
8444
|
+
switch(op[0]){
|
|
8445
|
+
case 0:
|
|
8446
|
+
case 1:
|
|
8447
|
+
t = op;
|
|
8448
|
+
break;
|
|
8449
|
+
case 4:
|
|
8450
|
+
_.label++;
|
|
8451
|
+
return {
|
|
8452
|
+
value: op[1],
|
|
8453
|
+
done: false
|
|
8454
|
+
};
|
|
8455
|
+
case 5:
|
|
8456
|
+
_.label++;
|
|
8457
|
+
y = op[1];
|
|
8458
|
+
op = [
|
|
8459
|
+
0
|
|
8460
|
+
];
|
|
8461
|
+
continue;
|
|
8462
|
+
case 7:
|
|
8463
|
+
op = _.ops.pop();
|
|
8464
|
+
_.trys.pop();
|
|
8465
|
+
continue;
|
|
8466
|
+
default:
|
|
8467
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
8468
|
+
_ = 0;
|
|
8469
|
+
continue;
|
|
8470
|
+
}
|
|
8471
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
8472
|
+
_.label = op[1];
|
|
8473
|
+
break;
|
|
8474
|
+
}
|
|
8475
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
8476
|
+
_.label = t[1];
|
|
8477
|
+
t = op;
|
|
8478
|
+
break;
|
|
8479
|
+
}
|
|
8480
|
+
if (t && _.label < t[2]) {
|
|
8481
|
+
_.label = t[2];
|
|
8482
|
+
_.ops.push(op);
|
|
8483
|
+
break;
|
|
8484
|
+
}
|
|
8485
|
+
if (t[2]) _.ops.pop();
|
|
8486
|
+
_.trys.pop();
|
|
8487
|
+
continue;
|
|
8488
|
+
}
|
|
8489
|
+
op = body.call(thisArg, _);
|
|
8490
|
+
} catch (e) {
|
|
8491
|
+
op = [
|
|
8492
|
+
6,
|
|
8493
|
+
e
|
|
8494
|
+
];
|
|
8495
|
+
y = 0;
|
|
8496
|
+
} finally{
|
|
8497
|
+
f = t = 0;
|
|
8498
|
+
}
|
|
8499
|
+
if (op[0] & 5) throw op[1];
|
|
8500
|
+
return {
|
|
8501
|
+
value: op[0] ? op[1] : void 0,
|
|
8502
|
+
done: true
|
|
8503
|
+
};
|
|
8504
|
+
}
|
|
8505
|
+
}
|
|
8506
|
+
/**
|
|
8507
|
+
* AI对话框控件
|
|
8508
|
+
*
|
|
8509
|
+
* 用于触发AI对话框功能的按钮控件
|
|
8510
|
+
*
|
|
8511
|
+
* @category Control
|
|
8512
|
+
*/ var AIChat = /*#__PURE__*/ function(Control) {
|
|
8513
|
+
_inherits$a(AIChat, Control);
|
|
8514
|
+
function AIChat(options) {
|
|
8515
|
+
var _this;
|
|
8516
|
+
_this = Control.call(this, _extends$9({}, options, {
|
|
8517
|
+
tagName: 'span',
|
|
8518
|
+
controlType: 'button',
|
|
8519
|
+
classNameSuffix: 'aichat'
|
|
8520
|
+
})) || this;
|
|
8521
|
+
_this._options = options;
|
|
8522
|
+
if (options.urlInfo.search === "" && options.urlInfo.recType === "cloud") {
|
|
8523
|
+
_this._render();
|
|
8524
|
+
_this.on(EVENTS.aichatChange, function(active) {
|
|
8525
|
+
if (_this.active !== active) {
|
|
8526
|
+
_this.active = active;
|
|
8527
|
+
_this._render();
|
|
8528
|
+
}
|
|
8529
|
+
});
|
|
8530
|
+
}
|
|
8531
|
+
return _this;
|
|
8532
|
+
}
|
|
8533
|
+
var _proto = AIChat.prototype;
|
|
8534
|
+
_proto._render = function _render() {
|
|
8535
|
+
var _this_locale;
|
|
8536
|
+
this.$container.innerHTML = IconComponents.aiChat({
|
|
8537
|
+
title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_AICHAT
|
|
8538
|
+
});
|
|
8539
|
+
};
|
|
8540
|
+
_proto.reset = function reset(hide) {
|
|
8541
|
+
if (this.active) {
|
|
8542
|
+
this.active = false;
|
|
8543
|
+
this._render();
|
|
8544
|
+
this.emit(EVENTS.control.aichatChange, false);
|
|
8545
|
+
Control.prototype.reset.call(this, hide);
|
|
8546
|
+
}
|
|
8547
|
+
};
|
|
8548
|
+
/**
|
|
8549
|
+
* 销毁AI对话框控件
|
|
8550
|
+
*/ _proto.destroy = function destroy() {
|
|
8551
|
+
if (this.active) {
|
|
8552
|
+
this.reset();
|
|
8553
|
+
}
|
|
8554
|
+
Control.prototype.destroy.call(this);
|
|
8555
|
+
};
|
|
8556
|
+
/**
|
|
8557
|
+
* 点击 Control 会触发
|
|
8558
|
+
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
8559
|
+
var _this = this, _superprop_get__onControlClick = function() {
|
|
8560
|
+
return Control.prototype._onControlClick;
|
|
8561
|
+
};
|
|
8562
|
+
return _async_to_generator$2(function() {
|
|
8563
|
+
var _this__options_onChange, _this__options;
|
|
8564
|
+
return _ts_generator$2(this, function(_state) {
|
|
8565
|
+
_superprop_get__onControlClick().call(_this, e);
|
|
8566
|
+
this.active = !this.active;
|
|
8567
|
+
this.emit(EVENTS.control.aichatChange, this.active);
|
|
8568
|
+
(_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, this.active);
|
|
8569
|
+
this._render();
|
|
8570
|
+
return [
|
|
8571
|
+
2
|
|
8572
|
+
];
|
|
8573
|
+
});
|
|
8574
|
+
}).call(this);
|
|
8575
|
+
};
|
|
8576
|
+
return AIChat;
|
|
8577
|
+
}(Control);
|
|
8578
|
+
|
|
8311
8579
|
function _defineProperties$1(target, props) {
|
|
8312
8580
|
for(var i = 0; i < props.length; i++){
|
|
8313
8581
|
var descriptor = props[i];
|
|
@@ -9299,6 +9567,7 @@ var Controls = {
|
|
|
9299
9567
|
record: Record,
|
|
9300
9568
|
talk: Talk,
|
|
9301
9569
|
broadcast: Broadcast,
|
|
9570
|
+
aiChat: AIChat,
|
|
9302
9571
|
zoom: Zoom$1,
|
|
9303
9572
|
definition: Definition,
|
|
9304
9573
|
fullscreen: Fullscreen,
|
|
@@ -9831,7 +10100,8 @@ function _ts_generator$1(thisArg, body) {
|
|
|
9831
10100
|
}
|
|
9832
10101
|
// 需要权限的控件
|
|
9833
10102
|
var AUTH_KEY = [
|
|
9834
|
-
'ptz'
|
|
10103
|
+
'ptz',
|
|
10104
|
+
'aiChat'
|
|
9835
10105
|
];
|
|
9836
10106
|
/**
|
|
9837
10107
|
* 渲染控件
|
|
@@ -9894,7 +10164,8 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9894
10164
|
accessToken: theme.options.accessToken,
|
|
9895
10165
|
token: theme.options.token,
|
|
9896
10166
|
deviceSerial: theme.urlInfo.deviceSerial,
|
|
9897
|
-
channelNo: theme.urlInfo.channelNo
|
|
10167
|
+
channelNo: theme.urlInfo.channelNo,
|
|
10168
|
+
urlInfo: theme.urlInfo
|
|
9898
10169
|
} : {}, {
|
|
9899
10170
|
PLAY_TYPE: theme.options.type
|
|
9900
10171
|
}, ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["" + item.iconId + "Options"]) || {}, {
|
|
@@ -11681,7 +11952,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11681
11952
|
zh: zh,
|
|
11682
11953
|
en: en
|
|
11683
11954
|
};
|
|
11684
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.2-beta.
|
|
11955
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.2-beta.3';
|
|
11685
11956
|
|
|
11686
11957
|
exports.Control = Control;
|
|
11687
11958
|
exports.EVENTS = EVENTS;
|