@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.mjs
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
|
import EventEmitter from 'eventemitter3';
|
|
@@ -140,6 +140,7 @@ var EVENTS = {
|
|
|
140
140
|
/** 对讲状态变化 */ talkingChange: 'talkingChange',
|
|
141
141
|
/** 麦克风音量变化 */ talkVolumeChange: 'talkVolumeChange',
|
|
142
142
|
/** 语音广播状态变化 */ broadcastChange: 'broadcastChange',
|
|
143
|
+
/** AI对话框状态变化 */ aichatChange: 'aichatChange',
|
|
143
144
|
/** 动态切换日志配置 */ setLoggerOptions: 'setLoggerOptions',
|
|
144
145
|
records: 'records',
|
|
145
146
|
ptzSpeedChange: 'ptzSpeedChange',
|
|
@@ -185,6 +186,8 @@ var EVENTS = {
|
|
|
185
186
|
/** 对讲控件销毁 */ talkDestroy: 'Control.talkDestroy',
|
|
186
187
|
/** 语音广播状态变化 */ broadcastChange: 'Control.broadcastChange',
|
|
187
188
|
/** 语音广播控件销毁 */ broadcastDestroy: 'Control.broadcastDestroy',
|
|
189
|
+
/** AI对话框状态变化 */ aichatChange: 'Control.aichatChange',
|
|
190
|
+
/** AI对话框控件销毁 */ aichatDestroy: 'Control.aichatDestroy',
|
|
188
191
|
/** 缩放比例改变 */ zoomChange: 'Control.zoomChange',
|
|
189
192
|
/** 音量调节面板 展示隐藏变换 */ zoomPanelOpenChange: 'Control.zoomPanelOpenChange',
|
|
190
193
|
/** 缩放控件销毁 */ zoomDestroy: 'Control.zoomDestroy',
|
|
@@ -236,7 +239,7 @@ function _create_class$9(Constructor, protoProps, staticProps) {
|
|
|
236
239
|
if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
|
|
237
240
|
return Constructor;
|
|
238
241
|
}
|
|
239
|
-
function _inherits$
|
|
242
|
+
function _inherits$t(subClass, superClass) {
|
|
240
243
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
241
244
|
throw new TypeError("Super expression must either be null or a function");
|
|
242
245
|
}
|
|
@@ -247,14 +250,14 @@ function _inherits$s(subClass, superClass) {
|
|
|
247
250
|
configurable: true
|
|
248
251
|
}
|
|
249
252
|
});
|
|
250
|
-
if (superClass) _set_prototype_of$
|
|
253
|
+
if (superClass) _set_prototype_of$t(subClass, superClass);
|
|
251
254
|
}
|
|
252
|
-
function _set_prototype_of$
|
|
253
|
-
_set_prototype_of$
|
|
255
|
+
function _set_prototype_of$t(o, p) {
|
|
256
|
+
_set_prototype_of$t = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
254
257
|
o.__proto__ = p;
|
|
255
258
|
return o;
|
|
256
259
|
};
|
|
257
|
-
return _set_prototype_of$
|
|
260
|
+
return _set_prototype_of$t(o, p);
|
|
258
261
|
}
|
|
259
262
|
/**
|
|
260
263
|
* 控件基类
|
|
@@ -268,7 +271,7 @@ function _set_prototype_of$s(o, p) {
|
|
|
268
271
|
* const myControl = new MyControl({})
|
|
269
272
|
* ```
|
|
270
273
|
*/ var Control = /*#__PURE__*/ function(EventEmitter) {
|
|
271
|
-
_inherits$
|
|
274
|
+
_inherits$t(Control, EventEmitter);
|
|
272
275
|
function Control(options) {
|
|
273
276
|
var _this;
|
|
274
277
|
var _this___options;
|
|
@@ -443,8 +446,8 @@ function _set_prototype_of$s(o, p) {
|
|
|
443
446
|
return Control;
|
|
444
447
|
}(EventEmitter);
|
|
445
448
|
|
|
446
|
-
function _extends$
|
|
447
|
-
_extends$
|
|
449
|
+
function _extends$s() {
|
|
450
|
+
_extends$s = Object.assign || function(target) {
|
|
448
451
|
for(var i = 1; i < arguments.length; i++){
|
|
449
452
|
var source = arguments[i];
|
|
450
453
|
for(var key in source){
|
|
@@ -455,9 +458,9 @@ function _extends$r() {
|
|
|
455
458
|
}
|
|
456
459
|
return target;
|
|
457
460
|
};
|
|
458
|
-
return _extends$
|
|
461
|
+
return _extends$s.apply(this, arguments);
|
|
459
462
|
}
|
|
460
|
-
function _inherits$
|
|
463
|
+
function _inherits$s(subClass, superClass) {
|
|
461
464
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
462
465
|
throw new TypeError("Super expression must either be null or a function");
|
|
463
466
|
}
|
|
@@ -468,25 +471,25 @@ function _inherits$r(subClass, superClass) {
|
|
|
468
471
|
configurable: true
|
|
469
472
|
}
|
|
470
473
|
});
|
|
471
|
-
if (superClass) _set_prototype_of$
|
|
474
|
+
if (superClass) _set_prototype_of$s(subClass, superClass);
|
|
472
475
|
}
|
|
473
|
-
function _set_prototype_of$
|
|
474
|
-
_set_prototype_of$
|
|
476
|
+
function _set_prototype_of$s(o, p) {
|
|
477
|
+
_set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
475
478
|
o.__proto__ = p;
|
|
476
479
|
return o;
|
|
477
480
|
};
|
|
478
|
-
return _set_prototype_of$
|
|
481
|
+
return _set_prototype_of$s(o, p);
|
|
479
482
|
}
|
|
480
483
|
var LOADING_DEFAULT_OPTIONS = {};
|
|
481
484
|
/**
|
|
482
485
|
* 加载动画控件
|
|
483
486
|
* @category Control
|
|
484
487
|
*/ var Loading = /*#__PURE__*/ function(Control) {
|
|
485
|
-
_inherits$
|
|
488
|
+
_inherits$s(Loading, Control);
|
|
486
489
|
function Loading(options) {
|
|
487
490
|
if (options === void 0) options = {};
|
|
488
491
|
var _this;
|
|
489
|
-
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$
|
|
492
|
+
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$s({}, options, {
|
|
490
493
|
tagName: 'div',
|
|
491
494
|
controlType: 'block',
|
|
492
495
|
classNameSuffix: 'loading'
|
|
@@ -524,8 +527,8 @@ var LOADING_DEFAULT_OPTIONS = {};
|
|
|
524
527
|
return Loading;
|
|
525
528
|
}(Control);
|
|
526
529
|
|
|
527
|
-
function _extends$
|
|
528
|
-
_extends$
|
|
530
|
+
function _extends$r() {
|
|
531
|
+
_extends$r = Object.assign || function(target) {
|
|
529
532
|
for(var i = 1; i < arguments.length; i++){
|
|
530
533
|
var source = arguments[i];
|
|
531
534
|
for(var key in source){
|
|
@@ -536,9 +539,9 @@ function _extends$q() {
|
|
|
536
539
|
}
|
|
537
540
|
return target;
|
|
538
541
|
};
|
|
539
|
-
return _extends$
|
|
542
|
+
return _extends$r.apply(this, arguments);
|
|
540
543
|
}
|
|
541
|
-
function _inherits$
|
|
544
|
+
function _inherits$r(subClass, superClass) {
|
|
542
545
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
543
546
|
throw new TypeError("Super expression must either be null or a function");
|
|
544
547
|
}
|
|
@@ -549,14 +552,14 @@ function _inherits$q(subClass, superClass) {
|
|
|
549
552
|
configurable: true
|
|
550
553
|
}
|
|
551
554
|
});
|
|
552
|
-
if (superClass) _set_prototype_of$
|
|
555
|
+
if (superClass) _set_prototype_of$r(subClass, superClass);
|
|
553
556
|
}
|
|
554
|
-
function _set_prototype_of$
|
|
555
|
-
_set_prototype_of$
|
|
557
|
+
function _set_prototype_of$r(o, p) {
|
|
558
|
+
_set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
556
559
|
o.__proto__ = p;
|
|
557
560
|
return o;
|
|
558
561
|
};
|
|
559
|
-
return _set_prototype_of$
|
|
562
|
+
return _set_prototype_of$r(o, p);
|
|
560
563
|
}
|
|
561
564
|
// 不放在服务器上 是因为有可能http加载失败
|
|
562
565
|
// prettier-ignore
|
|
@@ -568,11 +571,11 @@ var POSTER_OPTIONS = {
|
|
|
568
571
|
* 封面控件
|
|
569
572
|
* @category Control
|
|
570
573
|
*/ var Poster = /*#__PURE__*/ function(Control) {
|
|
571
|
-
_inherits$
|
|
574
|
+
_inherits$r(Poster, Control);
|
|
572
575
|
function Poster(options) {
|
|
573
576
|
if (options === void 0) options = {};
|
|
574
577
|
var _this;
|
|
575
|
-
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$
|
|
578
|
+
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$r({}, options, {
|
|
576
579
|
tagName: 'div',
|
|
577
580
|
controlType: 'block',
|
|
578
581
|
classNameSuffix: 'poster'
|
|
@@ -668,6 +671,7 @@ var Icons = {
|
|
|
668
671
|
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>';
|
|
669
672
|
},
|
|
670
673
|
/** 语音广播 */ 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>',
|
|
674
|
+
/** 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 ',
|
|
671
675
|
/** 相机/截图 */ 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>',
|
|
672
676
|
/** 电子放大 */ 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>',
|
|
673
677
|
/** 隐私遮蔽 */ 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>',
|
|
@@ -756,6 +760,10 @@ var IconComponents = {
|
|
|
756
760
|
if (attr === void 0) attr = {};
|
|
757
761
|
return createIcon(Icons.broadcast, 'broadcast', attr);
|
|
758
762
|
},
|
|
763
|
+
aiChat: function(attr) {
|
|
764
|
+
if (attr === void 0) attr = {};
|
|
765
|
+
return createIcon(Icons.aiChat, 'aiChat', attr);
|
|
766
|
+
},
|
|
759
767
|
talkGrowth: function(attr) {
|
|
760
768
|
if (attr === void 0) attr = {};
|
|
761
769
|
return createIcon(Icons.talkGrowth(PREFIX_CLASS), 'talk-growth', attr);
|
|
@@ -834,8 +842,8 @@ var IconComponents = {
|
|
|
834
842
|
}
|
|
835
843
|
};
|
|
836
844
|
|
|
837
|
-
function _extends$
|
|
838
|
-
_extends$
|
|
845
|
+
function _extends$q() {
|
|
846
|
+
_extends$q = Object.assign || function(target) {
|
|
839
847
|
for(var i = 1; i < arguments.length; i++){
|
|
840
848
|
var source = arguments[i];
|
|
841
849
|
for(var key in source){
|
|
@@ -846,9 +854,9 @@ function _extends$p() {
|
|
|
846
854
|
}
|
|
847
855
|
return target;
|
|
848
856
|
};
|
|
849
|
-
return _extends$
|
|
857
|
+
return _extends$q.apply(this, arguments);
|
|
850
858
|
}
|
|
851
|
-
function _inherits$
|
|
859
|
+
function _inherits$q(subClass, superClass) {
|
|
852
860
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
853
861
|
throw new TypeError("Super expression must either be null or a function");
|
|
854
862
|
}
|
|
@@ -859,25 +867,25 @@ function _inherits$p(subClass, superClass) {
|
|
|
859
867
|
configurable: true
|
|
860
868
|
}
|
|
861
869
|
});
|
|
862
|
-
if (superClass) _set_prototype_of$
|
|
870
|
+
if (superClass) _set_prototype_of$q(subClass, superClass);
|
|
863
871
|
}
|
|
864
|
-
function _set_prototype_of$
|
|
865
|
-
_set_prototype_of$
|
|
872
|
+
function _set_prototype_of$q(o, p) {
|
|
873
|
+
_set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
866
874
|
o.__proto__ = p;
|
|
867
875
|
return o;
|
|
868
876
|
};
|
|
869
|
-
return _set_prototype_of$
|
|
877
|
+
return _set_prototype_of$q(o, p);
|
|
870
878
|
}
|
|
871
879
|
var MESSAGE_DEFAULT_OPTIONS = {};
|
|
872
880
|
/**
|
|
873
881
|
* 消息控件
|
|
874
882
|
* @category Control
|
|
875
883
|
*/ var Message = /*#__PURE__*/ function(Control) {
|
|
876
|
-
_inherits$
|
|
884
|
+
_inherits$q(Message, Control);
|
|
877
885
|
function Message(options) {
|
|
878
886
|
if (options === void 0) options = {};
|
|
879
887
|
var _this;
|
|
880
|
-
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$
|
|
888
|
+
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$q({}, options, {
|
|
881
889
|
tagName: 'div',
|
|
882
890
|
controlType: 'block'
|
|
883
891
|
}))) || this;
|
|
@@ -1030,8 +1038,8 @@ function _create_class$8(Constructor, protoProps, staticProps) {
|
|
|
1030
1038
|
if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
|
|
1031
1039
|
return Constructor;
|
|
1032
1040
|
}
|
|
1033
|
-
function _extends$
|
|
1034
|
-
_extends$
|
|
1041
|
+
function _extends$p() {
|
|
1042
|
+
_extends$p = Object.assign || function(target) {
|
|
1035
1043
|
for(var i = 1; i < arguments.length; i++){
|
|
1036
1044
|
var source = arguments[i];
|
|
1037
1045
|
for(var key in source){
|
|
@@ -1042,9 +1050,9 @@ function _extends$o() {
|
|
|
1042
1050
|
}
|
|
1043
1051
|
return target;
|
|
1044
1052
|
};
|
|
1045
|
-
return _extends$
|
|
1053
|
+
return _extends$p.apply(this, arguments);
|
|
1046
1054
|
}
|
|
1047
|
-
function _inherits$
|
|
1055
|
+
function _inherits$p(subClass, superClass) {
|
|
1048
1056
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1049
1057
|
throw new TypeError("Super expression must either be null or a function");
|
|
1050
1058
|
}
|
|
@@ -1055,23 +1063,23 @@ function _inherits$o(subClass, superClass) {
|
|
|
1055
1063
|
configurable: true
|
|
1056
1064
|
}
|
|
1057
1065
|
});
|
|
1058
|
-
if (superClass) _set_prototype_of$
|
|
1066
|
+
if (superClass) _set_prototype_of$p(subClass, superClass);
|
|
1059
1067
|
}
|
|
1060
|
-
function _set_prototype_of$
|
|
1061
|
-
_set_prototype_of$
|
|
1068
|
+
function _set_prototype_of$p(o, p) {
|
|
1069
|
+
_set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1062
1070
|
o.__proto__ = p;
|
|
1063
1071
|
return o;
|
|
1064
1072
|
};
|
|
1065
|
-
return _set_prototype_of$
|
|
1073
|
+
return _set_prototype_of$p(o, p);
|
|
1066
1074
|
}
|
|
1067
1075
|
/**
|
|
1068
1076
|
* 播放/暂停控件
|
|
1069
1077
|
* @category Control
|
|
1070
1078
|
*/ var Play = /*#__PURE__*/ function(Control) {
|
|
1071
|
-
_inherits$
|
|
1079
|
+
_inherits$p(Play, Control);
|
|
1072
1080
|
function Play(options) {
|
|
1073
1081
|
var _this;
|
|
1074
|
-
_this = Control.call(this, _extends$
|
|
1082
|
+
_this = Control.call(this, _extends$p({}, options, {
|
|
1075
1083
|
tagName: 'span',
|
|
1076
1084
|
controlType: 'button',
|
|
1077
1085
|
classNameSuffix: 'play'
|
|
@@ -1687,8 +1695,8 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
1687
1695
|
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
1688
1696
|
return Constructor;
|
|
1689
1697
|
}
|
|
1690
|
-
function _extends$
|
|
1691
|
-
_extends$
|
|
1698
|
+
function _extends$o() {
|
|
1699
|
+
_extends$o = Object.assign || function(target) {
|
|
1692
1700
|
for(var i = 1; i < arguments.length; i++){
|
|
1693
1701
|
var source = arguments[i];
|
|
1694
1702
|
for(var key in source){
|
|
@@ -1699,9 +1707,9 @@ function _extends$n() {
|
|
|
1699
1707
|
}
|
|
1700
1708
|
return target;
|
|
1701
1709
|
};
|
|
1702
|
-
return _extends$
|
|
1710
|
+
return _extends$o.apply(this, arguments);
|
|
1703
1711
|
}
|
|
1704
|
-
function _inherits$
|
|
1712
|
+
function _inherits$o(subClass, superClass) {
|
|
1705
1713
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1706
1714
|
throw new TypeError("Super expression must either be null or a function");
|
|
1707
1715
|
}
|
|
@@ -1712,14 +1720,14 @@ function _inherits$n(subClass, superClass) {
|
|
|
1712
1720
|
configurable: true
|
|
1713
1721
|
}
|
|
1714
1722
|
});
|
|
1715
|
-
if (superClass) _set_prototype_of$
|
|
1723
|
+
if (superClass) _set_prototype_of$o(subClass, superClass);
|
|
1716
1724
|
}
|
|
1717
|
-
function _set_prototype_of$
|
|
1718
|
-
_set_prototype_of$
|
|
1725
|
+
function _set_prototype_of$o(o, p) {
|
|
1726
|
+
_set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1719
1727
|
o.__proto__ = p;
|
|
1720
1728
|
return o;
|
|
1721
1729
|
};
|
|
1722
|
-
return _set_prototype_of$
|
|
1730
|
+
return _set_prototype_of$o(o, p);
|
|
1723
1731
|
}
|
|
1724
1732
|
var VOLUME_DEFAULT_OPTIONS = {
|
|
1725
1733
|
volume: 0.8,
|
|
@@ -1733,12 +1741,12 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1733
1741
|
* 音量调节控件
|
|
1734
1742
|
* @category Control
|
|
1735
1743
|
*/ var Volume = /*#__PURE__*/ function(Control) {
|
|
1736
|
-
_inherits$
|
|
1744
|
+
_inherits$o(Volume, Control);
|
|
1737
1745
|
function Volume(options) {
|
|
1738
1746
|
if (options === void 0) options = {};
|
|
1739
1747
|
var _this;
|
|
1740
1748
|
var _this__options_props, _this__options_props1, _this__options_props2, _this__options_props3;
|
|
1741
|
-
_this = Control.call(this, _extends$
|
|
1749
|
+
_this = Control.call(this, _extends$o({}, options, {
|
|
1742
1750
|
tagName: 'span',
|
|
1743
1751
|
classNameSuffix: 'volume',
|
|
1744
1752
|
controlType: 'button'
|
|
@@ -1954,7 +1962,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1954
1962
|
return Volume;
|
|
1955
1963
|
}(Control);
|
|
1956
1964
|
|
|
1957
|
-
function asyncGeneratorStep$
|
|
1965
|
+
function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1958
1966
|
try {
|
|
1959
1967
|
var info = gen[key](arg);
|
|
1960
1968
|
var value = info.value;
|
|
@@ -1968,22 +1976,22 @@ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
1968
1976
|
Promise.resolve(value).then(_next, _throw);
|
|
1969
1977
|
}
|
|
1970
1978
|
}
|
|
1971
|
-
function _async_to_generator$
|
|
1979
|
+
function _async_to_generator$7(fn) {
|
|
1972
1980
|
return function() {
|
|
1973
1981
|
var self = this, args = arguments;
|
|
1974
1982
|
return new Promise(function(resolve, reject) {
|
|
1975
1983
|
var gen = fn.apply(self, args);
|
|
1976
1984
|
function _next(value) {
|
|
1977
|
-
asyncGeneratorStep$
|
|
1985
|
+
asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "next", value);
|
|
1978
1986
|
}
|
|
1979
1987
|
function _throw(err) {
|
|
1980
|
-
asyncGeneratorStep$
|
|
1988
|
+
asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "throw", err);
|
|
1981
1989
|
}
|
|
1982
1990
|
_next(undefined);
|
|
1983
1991
|
});
|
|
1984
1992
|
};
|
|
1985
1993
|
}
|
|
1986
|
-
function _ts_generator$
|
|
1994
|
+
function _ts_generator$7(thisArg, body) {
|
|
1987
1995
|
var f, y, t, _ = {
|
|
1988
1996
|
label: 0,
|
|
1989
1997
|
sent: function() {
|
|
@@ -2197,8 +2205,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2197
2205
|
* 全屏
|
|
2198
2206
|
* @returns Promise<void>
|
|
2199
2207
|
*/ _proto.fullscreen = function fullscreen() {
|
|
2200
|
-
return _async_to_generator$
|
|
2201
|
-
return _ts_generator$
|
|
2208
|
+
return _async_to_generator$7(function() {
|
|
2209
|
+
return _ts_generator$7(this, function(_state) {
|
|
2202
2210
|
switch(_state.label){
|
|
2203
2211
|
case 0:
|
|
2204
2212
|
if (!Utils.isMobile) return [
|
|
@@ -2233,8 +2241,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2233
2241
|
* 退出全屏
|
|
2234
2242
|
* @returns Promise<void>
|
|
2235
2243
|
*/ _proto.exitFullscreen = function exitFullscreen() {
|
|
2236
|
-
return _async_to_generator$
|
|
2237
|
-
return _ts_generator$
|
|
2244
|
+
return _async_to_generator$7(function() {
|
|
2245
|
+
return _ts_generator$7(this, function(_state) {
|
|
2238
2246
|
switch(_state.label){
|
|
2239
2247
|
case 0:
|
|
2240
2248
|
if (!Utils.isMobile) return [
|
|
@@ -2273,8 +2281,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2273
2281
|
* 全屏切换
|
|
2274
2282
|
* @returns Promise<void>
|
|
2275
2283
|
*/ _proto.toggle = function toggle() {
|
|
2276
|
-
return _async_to_generator$
|
|
2277
|
-
return _ts_generator$
|
|
2284
|
+
return _async_to_generator$7(function() {
|
|
2285
|
+
return _ts_generator$7(this, function(_state) {
|
|
2278
2286
|
switch(_state.label){
|
|
2279
2287
|
case 0:
|
|
2280
2288
|
if (!Utils.isMobile) return [
|
|
@@ -2397,8 +2405,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2397
2405
|
return Fullscreen;
|
|
2398
2406
|
}();
|
|
2399
2407
|
|
|
2400
|
-
function _extends$
|
|
2401
|
-
_extends$
|
|
2408
|
+
function _extends$n() {
|
|
2409
|
+
_extends$n = Object.assign || function(target) {
|
|
2402
2410
|
for(var i = 1; i < arguments.length; i++){
|
|
2403
2411
|
var source = arguments[i];
|
|
2404
2412
|
for(var key in source){
|
|
@@ -2409,9 +2417,9 @@ function _extends$m() {
|
|
|
2409
2417
|
}
|
|
2410
2418
|
return target;
|
|
2411
2419
|
};
|
|
2412
|
-
return _extends$
|
|
2420
|
+
return _extends$n.apply(this, arguments);
|
|
2413
2421
|
}
|
|
2414
|
-
function _inherits$
|
|
2422
|
+
function _inherits$n(subClass, superClass) {
|
|
2415
2423
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2416
2424
|
throw new TypeError("Super expression must either be null or a function");
|
|
2417
2425
|
}
|
|
@@ -2422,24 +2430,24 @@ function _inherits$m(subClass, superClass) {
|
|
|
2422
2430
|
configurable: true
|
|
2423
2431
|
}
|
|
2424
2432
|
});
|
|
2425
|
-
if (superClass) _set_prototype_of$
|
|
2433
|
+
if (superClass) _set_prototype_of$n(subClass, superClass);
|
|
2426
2434
|
}
|
|
2427
|
-
function _set_prototype_of$
|
|
2428
|
-
_set_prototype_of$
|
|
2435
|
+
function _set_prototype_of$n(o, p) {
|
|
2436
|
+
_set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2429
2437
|
o.__proto__ = p;
|
|
2430
2438
|
return o;
|
|
2431
2439
|
};
|
|
2432
|
-
return _set_prototype_of$
|
|
2440
|
+
return _set_prototype_of$n(o, p);
|
|
2433
2441
|
}
|
|
2434
2442
|
/**
|
|
2435
2443
|
* 全屏控件
|
|
2436
2444
|
* @category Control
|
|
2437
2445
|
*/ var Fullscreen = /*#__PURE__*/ function(Control) {
|
|
2438
|
-
_inherits$
|
|
2446
|
+
_inherits$n(Fullscreen, Control);
|
|
2439
2447
|
function Fullscreen(options) {
|
|
2440
2448
|
var _this;
|
|
2441
2449
|
var _options_props, _this_options;
|
|
2442
|
-
_this = Control.call(this, _extends$
|
|
2450
|
+
_this = Control.call(this, _extends$n({
|
|
2443
2451
|
tagName: 'span',
|
|
2444
2452
|
classNameSuffix: 'fullscreen',
|
|
2445
2453
|
controlType: 'button'
|
|
@@ -2504,8 +2512,8 @@ function _set_prototype_of$m(o, p) {
|
|
|
2504
2512
|
return Fullscreen;
|
|
2505
2513
|
}(Control);
|
|
2506
2514
|
|
|
2507
|
-
function _extends$
|
|
2508
|
-
_extends$
|
|
2515
|
+
function _extends$m() {
|
|
2516
|
+
_extends$m = Object.assign || function(target) {
|
|
2509
2517
|
for(var i = 1; i < arguments.length; i++){
|
|
2510
2518
|
var source = arguments[i];
|
|
2511
2519
|
for(var key in source){
|
|
@@ -2516,9 +2524,9 @@ function _extends$l() {
|
|
|
2516
2524
|
}
|
|
2517
2525
|
return target;
|
|
2518
2526
|
};
|
|
2519
|
-
return _extends$
|
|
2527
|
+
return _extends$m.apply(this, arguments);
|
|
2520
2528
|
}
|
|
2521
|
-
function _inherits$
|
|
2529
|
+
function _inherits$m(subClass, superClass) {
|
|
2522
2530
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2523
2531
|
throw new TypeError("Super expression must either be null or a function");
|
|
2524
2532
|
}
|
|
@@ -2529,24 +2537,24 @@ function _inherits$l(subClass, superClass) {
|
|
|
2529
2537
|
configurable: true
|
|
2530
2538
|
}
|
|
2531
2539
|
});
|
|
2532
|
-
if (superClass) _set_prototype_of$
|
|
2540
|
+
if (superClass) _set_prototype_of$m(subClass, superClass);
|
|
2533
2541
|
}
|
|
2534
|
-
function _set_prototype_of$
|
|
2535
|
-
_set_prototype_of$
|
|
2542
|
+
function _set_prototype_of$m(o, p) {
|
|
2543
|
+
_set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2536
2544
|
o.__proto__ = p;
|
|
2537
2545
|
return o;
|
|
2538
2546
|
};
|
|
2539
|
-
return _set_prototype_of$
|
|
2547
|
+
return _set_prototype_of$m(o, p);
|
|
2540
2548
|
}
|
|
2541
2549
|
/**
|
|
2542
2550
|
* 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
|
|
2543
2551
|
* @category Control
|
|
2544
2552
|
*/ var Rec = /*#__PURE__*/ function(Control) {
|
|
2545
|
-
_inherits$
|
|
2553
|
+
_inherits$m(Rec, Control);
|
|
2546
2554
|
function Rec(options) {
|
|
2547
2555
|
var _this;
|
|
2548
2556
|
var _options_props;
|
|
2549
|
-
_this = Control.call(this, _extends$
|
|
2557
|
+
_this = Control.call(this, _extends$m({}, options, {
|
|
2550
2558
|
tagName: 'div',
|
|
2551
2559
|
controlType: 'block',
|
|
2552
2560
|
classNameSuffix: 'rec'
|
|
@@ -2822,6 +2830,7 @@ var zh = {
|
|
|
2822
2830
|
BTN_CAPTURE: '截图',
|
|
2823
2831
|
BTN_TALK: '对讲',
|
|
2824
2832
|
BTN_BROADCAST: '语音广播',
|
|
2833
|
+
BTN_AICHAT: 'AI对话',
|
|
2825
2834
|
BTN_ZOOM: '电子放大',
|
|
2826
2835
|
BTN_3D_ZOOM: '3D定位',
|
|
2827
2836
|
BTN_PTZ: '云台控制',
|
|
@@ -3093,6 +3102,7 @@ var en = {
|
|
|
3093
3102
|
BTN_CAPTURE: 'Screenshot',
|
|
3094
3103
|
BTN_TALK: 'Intercom',
|
|
3095
3104
|
BTN_BROADCAST: 'Voice broadcast',
|
|
3105
|
+
BTN_AICHAT: 'AI Chat',
|
|
3096
3106
|
BTN_ZOOM: 'Electronic zoom',
|
|
3097
3107
|
BTN_3D_ZOOM: '3D positioning',
|
|
3098
3108
|
BTN_PTZ: 'PTZ control',
|
|
@@ -3387,6 +3397,12 @@ var en = {
|
|
|
3387
3397
|
defaultActive: 0,
|
|
3388
3398
|
isrender: 1
|
|
3389
3399
|
},
|
|
3400
|
+
{
|
|
3401
|
+
iconId: 'aiChat',
|
|
3402
|
+
part: 'left',
|
|
3403
|
+
defaultActive: 0,
|
|
3404
|
+
isrender: 1
|
|
3405
|
+
},
|
|
3390
3406
|
{
|
|
3391
3407
|
iconId: 'speed',
|
|
3392
3408
|
part: 'right',
|
|
@@ -3571,6 +3587,12 @@ var en = {
|
|
|
3571
3587
|
defaultActive: 0,
|
|
3572
3588
|
isrender: 1
|
|
3573
3589
|
},
|
|
3590
|
+
{
|
|
3591
|
+
iconId: 'aiChat',
|
|
3592
|
+
part: 'left',
|
|
3593
|
+
defaultActive: 0,
|
|
3594
|
+
isrender: 1
|
|
3595
|
+
},
|
|
3574
3596
|
{
|
|
3575
3597
|
iconId: 'speed',
|
|
3576
3598
|
part: 'right',
|
|
@@ -3731,7 +3753,7 @@ var en = {
|
|
|
3731
3753
|
voice: voice
|
|
3732
3754
|
};
|
|
3733
3755
|
|
|
3734
|
-
function _inherits$
|
|
3756
|
+
function _inherits$l(subClass, superClass) {
|
|
3735
3757
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3736
3758
|
throw new TypeError("Super expression must either be null or a function");
|
|
3737
3759
|
}
|
|
@@ -3742,20 +3764,20 @@ function _inherits$k(subClass, superClass) {
|
|
|
3742
3764
|
configurable: true
|
|
3743
3765
|
}
|
|
3744
3766
|
});
|
|
3745
|
-
if (superClass) _set_prototype_of$
|
|
3767
|
+
if (superClass) _set_prototype_of$l(subClass, superClass);
|
|
3746
3768
|
}
|
|
3747
|
-
function _set_prototype_of$
|
|
3748
|
-
_set_prototype_of$
|
|
3769
|
+
function _set_prototype_of$l(o, p) {
|
|
3770
|
+
_set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3749
3771
|
o.__proto__ = p;
|
|
3750
3772
|
return o;
|
|
3751
3773
|
};
|
|
3752
|
-
return _set_prototype_of$
|
|
3774
|
+
return _set_prototype_of$l(o, p);
|
|
3753
3775
|
}
|
|
3754
3776
|
/**
|
|
3755
3777
|
* 截图控件
|
|
3756
3778
|
* @category Content
|
|
3757
3779
|
*/ var Content = /*#__PURE__*/ function(EventEmitter) {
|
|
3758
|
-
_inherits$
|
|
3780
|
+
_inherits$l(Content, EventEmitter);
|
|
3759
3781
|
function Content(options) {
|
|
3760
3782
|
var _this;
|
|
3761
3783
|
_this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
|
|
@@ -3870,8 +3892,8 @@ function _set_prototype_of$k(o, p) {
|
|
|
3870
3892
|
return Content;
|
|
3871
3893
|
}(EventEmitter);
|
|
3872
3894
|
|
|
3873
|
-
function _extends$
|
|
3874
|
-
_extends$
|
|
3895
|
+
function _extends$l() {
|
|
3896
|
+
_extends$l = Object.assign || function(target) {
|
|
3875
3897
|
for(var i = 1; i < arguments.length; i++){
|
|
3876
3898
|
var source = arguments[i];
|
|
3877
3899
|
for(var key in source){
|
|
@@ -3882,9 +3904,9 @@ function _extends$k() {
|
|
|
3882
3904
|
}
|
|
3883
3905
|
return target;
|
|
3884
3906
|
};
|
|
3885
|
-
return _extends$
|
|
3907
|
+
return _extends$l.apply(this, arguments);
|
|
3886
3908
|
}
|
|
3887
|
-
function _inherits$
|
|
3909
|
+
function _inherits$k(subClass, superClass) {
|
|
3888
3910
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3889
3911
|
throw new TypeError("Super expression must either be null or a function");
|
|
3890
3912
|
}
|
|
@@ -3895,23 +3917,23 @@ function _inherits$j(subClass, superClass) {
|
|
|
3895
3917
|
configurable: true
|
|
3896
3918
|
}
|
|
3897
3919
|
});
|
|
3898
|
-
if (superClass) _set_prototype_of$
|
|
3920
|
+
if (superClass) _set_prototype_of$k(subClass, superClass);
|
|
3899
3921
|
}
|
|
3900
|
-
function _set_prototype_of$
|
|
3901
|
-
_set_prototype_of$
|
|
3922
|
+
function _set_prototype_of$k(o, p) {
|
|
3923
|
+
_set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3902
3924
|
o.__proto__ = p;
|
|
3903
3925
|
return o;
|
|
3904
3926
|
};
|
|
3905
|
-
return _set_prototype_of$
|
|
3927
|
+
return _set_prototype_of$k(o, p);
|
|
3906
3928
|
}
|
|
3907
3929
|
/**
|
|
3908
3930
|
* 更多控件
|
|
3909
3931
|
* @category Control
|
|
3910
3932
|
*/ var More = /*#__PURE__*/ function(Control) {
|
|
3911
|
-
_inherits$
|
|
3933
|
+
_inherits$k(More, Control);
|
|
3912
3934
|
function More(options) {
|
|
3913
3935
|
var _this;
|
|
3914
|
-
_this = Control.call(this, _extends$
|
|
3936
|
+
_this = Control.call(this, _extends$l({}, options, {
|
|
3915
3937
|
tagName: 'span',
|
|
3916
3938
|
controlType: 'button',
|
|
3917
3939
|
classNameSuffix: 'more'
|
|
@@ -4117,6 +4139,16 @@ function debounce(func, wait) {
|
|
|
4117
4139
|
}
|
|
4118
4140
|
});
|
|
4119
4141
|
// =======================================================
|
|
4142
|
+
// AI对话框
|
|
4143
|
+
// =======================================================
|
|
4144
|
+
theme.on(EVENTS.aichatChange, function(active) {
|
|
4145
|
+
var _theme_controls, _theme_controls_aiChatControl, _theme_controls1;
|
|
4146
|
+
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)) {
|
|
4147
|
+
var _theme_controls_aiChatControl1, _theme_controls2;
|
|
4148
|
+
(_theme_controls2 = theme.controls) == null ? void 0 : (_theme_controls_aiChatControl1 = _theme_controls2.aiChatControl) == null ? void 0 : _theme_controls_aiChatControl1.emit(EVENTS.aichatChange, active);
|
|
4149
|
+
}
|
|
4150
|
+
});
|
|
4151
|
+
// =======================================================
|
|
4120
4152
|
// 录制
|
|
4121
4153
|
// =======================================================
|
|
4122
4154
|
theme.on(EVENTS.recordingChange, function(recording) {
|
|
@@ -4212,7 +4244,7 @@ function debounce(func, wait) {
|
|
|
4212
4244
|
*
|
|
4213
4245
|
* @param theme - Theme
|
|
4214
4246
|
*/ function _controlEventemitter(theme) {
|
|
4215
|
-
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;
|
|
4247
|
+
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;
|
|
4216
4248
|
// Controls
|
|
4217
4249
|
if (theme._recFooter) {
|
|
4218
4250
|
theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
|
|
@@ -4314,8 +4346,17 @@ function debounce(func, wait) {
|
|
|
4314
4346
|
theme.emit(EVENTS.control.broadcastDestroy);
|
|
4315
4347
|
});
|
|
4316
4348
|
}
|
|
4349
|
+
// AI对话框
|
|
4350
|
+
if ((_theme_controls6 = theme.controls) == null ? void 0 : _theme_controls6.aiChatControl) {
|
|
4351
|
+
theme.controls.aiChatControl.on(EVENTS.control.aichatChange, function(active) {
|
|
4352
|
+
theme.emit(EVENTS.control.aichatChange, active);
|
|
4353
|
+
});
|
|
4354
|
+
theme.controls.aiChatControl.on(EVENTS.control.aichatDestroy, function() {
|
|
4355
|
+
theme.emit(EVENTS.control.aichatDestroy);
|
|
4356
|
+
});
|
|
4357
|
+
}
|
|
4317
4358
|
// 缩放控件
|
|
4318
|
-
if ((
|
|
4359
|
+
if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.zoomControl) {
|
|
4319
4360
|
theme.controls.zoomControl.on(EVENTS.control.zoomChange, function(value, _percent, _range) {
|
|
4320
4361
|
if (theme.zoom !== value) {
|
|
4321
4362
|
theme.zoom = value;
|
|
@@ -4337,7 +4378,7 @@ function debounce(func, wait) {
|
|
|
4337
4378
|
});
|
|
4338
4379
|
}
|
|
4339
4380
|
// 清晰度控件
|
|
4340
|
-
if ((
|
|
4381
|
+
if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.definitionControl) {
|
|
4341
4382
|
theme.controls.definitionControl.on(EVENTS.control.definitionPanelOpenChange, function(open, definition, item) {
|
|
4342
4383
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, definition);
|
|
4343
4384
|
theme.emit(EVENTS.control.definitionPanelOpenChange, open, definition, item);
|
|
@@ -4350,7 +4391,7 @@ function debounce(func, wait) {
|
|
|
4350
4391
|
});
|
|
4351
4392
|
}
|
|
4352
4393
|
// 倍速控件
|
|
4353
|
-
if ((
|
|
4394
|
+
if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.speedControl) {
|
|
4354
4395
|
theme.controls.speedControl.on(EVENTS.control.speedPanelOpenChange, function(open, speed, item) {
|
|
4355
4396
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, speed);
|
|
4356
4397
|
theme.emit(EVENTS.control.speedPanelOpenChange, open, speed, item);
|
|
@@ -4363,7 +4404,7 @@ function debounce(func, wait) {
|
|
|
4363
4404
|
});
|
|
4364
4405
|
}
|
|
4365
4406
|
// 截图控件
|
|
4366
|
-
if ((
|
|
4407
|
+
if ((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.capturePictureControl) {
|
|
4367
4408
|
theme.controls.capturePictureControl.on(EVENTS.control.capturePicture, function(options) {
|
|
4368
4409
|
theme.emit(EVENTS.control.capturePicture, options);
|
|
4369
4410
|
});
|
|
@@ -4372,25 +4413,25 @@ function debounce(func, wait) {
|
|
|
4372
4413
|
});
|
|
4373
4414
|
}
|
|
4374
4415
|
// 全屏控件
|
|
4375
|
-
if ((
|
|
4416
|
+
if ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.fullscreenControl) {
|
|
4376
4417
|
theme.controls.fullscreenControl.on(EVENTS.control.fullscreenDestroy, function() {
|
|
4377
4418
|
theme.emit(EVENTS.control.fullscreenDestroy);
|
|
4378
4419
|
});
|
|
4379
4420
|
}
|
|
4380
4421
|
// 全局全屏控件
|
|
4381
|
-
if ((
|
|
4422
|
+
if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.globalFullscreenControl) {
|
|
4382
4423
|
theme.controls.globalFullscreenControl.on(EVENTS.control.globalFullscreenDestroy, function() {
|
|
4383
4424
|
theme.emit(EVENTS.control.globalFullscreenDestroy);
|
|
4384
4425
|
});
|
|
4385
4426
|
}
|
|
4386
4427
|
// 设备信息控件
|
|
4387
|
-
if ((
|
|
4428
|
+
if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.deviceControl) {
|
|
4388
4429
|
theme.controls.deviceControl.on(EVENTS.control.deviceDestroy, function() {
|
|
4389
4430
|
theme.emit(EVENTS.control.deviceDestroy);
|
|
4390
4431
|
});
|
|
4391
4432
|
}
|
|
4392
4433
|
// 回放类型切换控件
|
|
4393
|
-
if ((
|
|
4434
|
+
if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.recControl) {
|
|
4394
4435
|
// prettier-ignore
|
|
4395
4436
|
theme.controls.recControl.on(EVENTS.control.recTypeChange, function(type) {
|
|
4396
4437
|
if (theme.recType !== type) {
|
|
@@ -4411,7 +4452,7 @@ function debounce(func, wait) {
|
|
|
4411
4452
|
});
|
|
4412
4453
|
}
|
|
4413
4454
|
// 时间轴控件
|
|
4414
|
-
if ((
|
|
4455
|
+
if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.timeLineControl) {
|
|
4415
4456
|
theme.controls.timeLineControl.on(EVENTS.control.timeLineChange, function(date) {
|
|
4416
4457
|
theme.emit(EVENTS.control.timeLineChange, date);
|
|
4417
4458
|
});
|
|
@@ -4428,7 +4469,7 @@ function debounce(func, wait) {
|
|
|
4428
4469
|
});
|
|
4429
4470
|
}
|
|
4430
4471
|
// 日历控件
|
|
4431
|
-
if ((
|
|
4472
|
+
if ((_theme_controls16 = theme.controls) == null ? void 0 : _theme_controls16.dateControl) {
|
|
4432
4473
|
theme.controls.dateControl.on(EVENTS.control.datePanelOpenChange, function(open, date) {
|
|
4433
4474
|
theme.emit(EVENTS.control.datePanelOpenChange, open, date);
|
|
4434
4475
|
});
|
|
@@ -4523,8 +4564,8 @@ function _create_class$5(Constructor, protoProps, staticProps) {
|
|
|
4523
4564
|
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
4524
4565
|
return Constructor;
|
|
4525
4566
|
}
|
|
4526
|
-
function _extends$
|
|
4527
|
-
_extends$
|
|
4567
|
+
function _extends$k() {
|
|
4568
|
+
_extends$k = Object.assign || function(target) {
|
|
4528
4569
|
for(var i = 1; i < arguments.length; i++){
|
|
4529
4570
|
var source = arguments[i];
|
|
4530
4571
|
for(var key in source){
|
|
@@ -4535,9 +4576,9 @@ function _extends$j() {
|
|
|
4535
4576
|
}
|
|
4536
4577
|
return target;
|
|
4537
4578
|
};
|
|
4538
|
-
return _extends$
|
|
4579
|
+
return _extends$k.apply(this, arguments);
|
|
4539
4580
|
}
|
|
4540
|
-
function _inherits$
|
|
4581
|
+
function _inherits$j(subClass, superClass) {
|
|
4541
4582
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
4542
4583
|
throw new TypeError("Super expression must either be null or a function");
|
|
4543
4584
|
}
|
|
@@ -4548,14 +4589,14 @@ function _inherits$i(subClass, superClass) {
|
|
|
4548
4589
|
configurable: true
|
|
4549
4590
|
}
|
|
4550
4591
|
});
|
|
4551
|
-
if (superClass) _set_prototype_of$
|
|
4592
|
+
if (superClass) _set_prototype_of$j(subClass, superClass);
|
|
4552
4593
|
}
|
|
4553
|
-
function _set_prototype_of$
|
|
4554
|
-
_set_prototype_of$
|
|
4594
|
+
function _set_prototype_of$j(o, p) {
|
|
4595
|
+
_set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
4555
4596
|
o.__proto__ = p;
|
|
4556
4597
|
return o;
|
|
4557
4598
|
};
|
|
4558
|
-
return _set_prototype_of$
|
|
4599
|
+
return _set_prototype_of$j(o, p);
|
|
4559
4600
|
}
|
|
4560
4601
|
var ZOOM_DEFAULT_OPTIONS = {
|
|
4561
4602
|
open: false,
|
|
@@ -4565,10 +4606,10 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4565
4606
|
* 电子放大控件
|
|
4566
4607
|
* @category Control
|
|
4567
4608
|
*/ var Zoom$1 = /*#__PURE__*/ function(Control) {
|
|
4568
|
-
_inherits$
|
|
4609
|
+
_inherits$j(Zoom, Control);
|
|
4569
4610
|
function Zoom(options) {
|
|
4570
4611
|
var _this;
|
|
4571
|
-
_this = Control.call(this, _extends$
|
|
4612
|
+
_this = Control.call(this, _extends$k({}, options, {
|
|
4572
4613
|
tagName: 'span',
|
|
4573
4614
|
controlType: 'button',
|
|
4574
4615
|
classNameSuffix: 'zoom'
|
|
@@ -5425,8 +5466,8 @@ function requireDist$1 () {
|
|
|
5425
5466
|
var distExports$1 = requireDist$1();
|
|
5426
5467
|
var Zoom = /*@__PURE__*/getDefaultExportFromCjs(distExports$1);
|
|
5427
5468
|
|
|
5428
|
-
function _extends$
|
|
5429
|
-
_extends$
|
|
5469
|
+
function _extends$j() {
|
|
5470
|
+
_extends$j = Object.assign || function(target) {
|
|
5430
5471
|
for(var i = 1; i < arguments.length; i++){
|
|
5431
5472
|
var source = arguments[i];
|
|
5432
5473
|
for(var key in source){
|
|
@@ -5437,10 +5478,10 @@ function _extends$i() {
|
|
|
5437
5478
|
}
|
|
5438
5479
|
return target;
|
|
5439
5480
|
};
|
|
5440
|
-
return _extends$
|
|
5481
|
+
return _extends$j.apply(this, arguments);
|
|
5441
5482
|
}
|
|
5442
5483
|
function __zoom(theme, container, options) {
|
|
5443
|
-
theme.zoomUtil = new Zoom(container, _extends$
|
|
5484
|
+
theme.zoomUtil = new Zoom(container, _extends$j({}, options || {}, {
|
|
5444
5485
|
min: 1,
|
|
5445
5486
|
onChange: function(zoom, reset) {
|
|
5446
5487
|
if (zoom !== theme._zoom) {
|
|
@@ -5458,7 +5499,7 @@ function __zoom(theme, container, options) {
|
|
|
5458
5499
|
}));
|
|
5459
5500
|
}
|
|
5460
5501
|
|
|
5461
|
-
function asyncGeneratorStep$
|
|
5502
|
+
function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5462
5503
|
try {
|
|
5463
5504
|
var info = gen[key](arg);
|
|
5464
5505
|
var value = info.value;
|
|
@@ -5472,22 +5513,22 @@ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5472
5513
|
Promise.resolve(value).then(_next, _throw);
|
|
5473
5514
|
}
|
|
5474
5515
|
}
|
|
5475
|
-
function _async_to_generator$
|
|
5516
|
+
function _async_to_generator$6(fn) {
|
|
5476
5517
|
return function() {
|
|
5477
5518
|
var self = this, args = arguments;
|
|
5478
5519
|
return new Promise(function(resolve, reject) {
|
|
5479
5520
|
var gen = fn.apply(self, args);
|
|
5480
5521
|
function _next(value) {
|
|
5481
|
-
asyncGeneratorStep$
|
|
5522
|
+
asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "next", value);
|
|
5482
5523
|
}
|
|
5483
5524
|
function _throw(err) {
|
|
5484
|
-
asyncGeneratorStep$
|
|
5525
|
+
asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "throw", err);
|
|
5485
5526
|
}
|
|
5486
5527
|
_next(undefined);
|
|
5487
5528
|
});
|
|
5488
5529
|
};
|
|
5489
5530
|
}
|
|
5490
|
-
function _ts_generator$
|
|
5531
|
+
function _ts_generator$6(thisArg, body) {
|
|
5491
5532
|
var f, y, t, _ = {
|
|
5492
5533
|
label: 0,
|
|
5493
5534
|
sent: function() {
|
|
@@ -5579,9 +5620,9 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5579
5620
|
}
|
|
5580
5621
|
}
|
|
5581
5622
|
function getThemeDataByTemplate(theme, id) {
|
|
5582
|
-
return _async_to_generator$
|
|
5623
|
+
return _async_to_generator$6(function() {
|
|
5583
5624
|
var _theme_options_token_httpToken, _theme_options_token, url;
|
|
5584
|
-
return _ts_generator$
|
|
5625
|
+
return _ts_generator$6(this, function(_state) {
|
|
5585
5626
|
switch(_state.label){
|
|
5586
5627
|
case 0:
|
|
5587
5628
|
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;
|
|
@@ -5590,8 +5631,8 @@ function getThemeDataByTemplate(theme, id) {
|
|
|
5590
5631
|
fetch(url, {
|
|
5591
5632
|
method: 'GET'
|
|
5592
5633
|
}).then(function(response) {
|
|
5593
|
-
return _async_to_generator$
|
|
5594
|
-
return _ts_generator$
|
|
5634
|
+
return _async_to_generator$6(function() {
|
|
5635
|
+
return _ts_generator$6(this, function(_state) {
|
|
5595
5636
|
switch(_state.label){
|
|
5596
5637
|
case 0:
|
|
5597
5638
|
return [
|
|
@@ -5636,7 +5677,7 @@ function getThemeDataByTemplate(theme, id) {
|
|
|
5636
5677
|
})();
|
|
5637
5678
|
}
|
|
5638
5679
|
|
|
5639
|
-
function asyncGeneratorStep$
|
|
5680
|
+
function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5640
5681
|
try {
|
|
5641
5682
|
var info = gen[key](arg);
|
|
5642
5683
|
var value = info.value;
|
|
@@ -5650,23 +5691,23 @@ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5650
5691
|
Promise.resolve(value).then(_next, _throw);
|
|
5651
5692
|
}
|
|
5652
5693
|
}
|
|
5653
|
-
function _async_to_generator$
|
|
5694
|
+
function _async_to_generator$5(fn) {
|
|
5654
5695
|
return function() {
|
|
5655
5696
|
var self = this, args = arguments;
|
|
5656
5697
|
return new Promise(function(resolve, reject) {
|
|
5657
5698
|
var gen = fn.apply(self, args);
|
|
5658
5699
|
function _next(value) {
|
|
5659
|
-
asyncGeneratorStep$
|
|
5700
|
+
asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
|
|
5660
5701
|
}
|
|
5661
5702
|
function _throw(err) {
|
|
5662
|
-
asyncGeneratorStep$
|
|
5703
|
+
asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
|
|
5663
5704
|
}
|
|
5664
5705
|
_next(undefined);
|
|
5665
5706
|
});
|
|
5666
5707
|
};
|
|
5667
5708
|
}
|
|
5668
|
-
function _extends$
|
|
5669
|
-
_extends$
|
|
5709
|
+
function _extends$i() {
|
|
5710
|
+
_extends$i = Object.assign || function(target) {
|
|
5670
5711
|
for(var i = 1; i < arguments.length; i++){
|
|
5671
5712
|
var source = arguments[i];
|
|
5672
5713
|
for(var key in source){
|
|
@@ -5677,9 +5718,9 @@ function _extends$h() {
|
|
|
5677
5718
|
}
|
|
5678
5719
|
return target;
|
|
5679
5720
|
};
|
|
5680
|
-
return _extends$
|
|
5721
|
+
return _extends$i.apply(this, arguments);
|
|
5681
5722
|
}
|
|
5682
|
-
function _ts_generator$
|
|
5723
|
+
function _ts_generator$5(thisArg, body) {
|
|
5683
5724
|
var f, y, t, _ = {
|
|
5684
5725
|
label: 0,
|
|
5685
5726
|
sent: function() {
|
|
@@ -5805,7 +5846,7 @@ function _ts_generator$4(thisArg, body) {
|
|
|
5805
5846
|
}
|
|
5806
5847
|
if (item.isrender === 1 && REC_GROUP.includes(item.iconId)) {
|
|
5807
5848
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5808
|
-
recControls.push(recControls[0] ? _extends$
|
|
5849
|
+
recControls.push(recControls[0] ? _extends$i({}, item, {
|
|
5809
5850
|
part: recControls[0].part
|
|
5810
5851
|
}) : item);
|
|
5811
5852
|
return false;
|
|
@@ -5828,7 +5869,7 @@ function _ts_generator$4(thisArg, body) {
|
|
|
5828
5869
|
}
|
|
5829
5870
|
if (item.isrender === 1 && REC_GROUP.includes(item.iconId)) {
|
|
5830
5871
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5831
|
-
recControls.push(recControls[0] ? _extends$
|
|
5872
|
+
recControls.push(recControls[0] ? _extends$i({}, item, {
|
|
5832
5873
|
part: recControls[0].part
|
|
5833
5874
|
}) : item);
|
|
5834
5875
|
return false;
|
|
@@ -5890,9 +5931,9 @@ function _filterLeftRightControls(btnList) {
|
|
|
5890
5931
|
* @param data
|
|
5891
5932
|
* @returns
|
|
5892
5933
|
*/ function getThemeData(theme, data) {
|
|
5893
|
-
return _async_to_generator$
|
|
5934
|
+
return _async_to_generator$5(function() {
|
|
5894
5935
|
var themeData, _theme_logger, template;
|
|
5895
|
-
return _ts_generator$
|
|
5936
|
+
return _ts_generator$5(this, function(_state) {
|
|
5896
5937
|
switch(_state.label){
|
|
5897
5938
|
case 0:
|
|
5898
5939
|
themeData = data;
|
|
@@ -6083,8 +6124,8 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
|
|
|
6083
6124
|
return Component;
|
|
6084
6125
|
}();
|
|
6085
6126
|
|
|
6086
|
-
function _extends$
|
|
6087
|
-
_extends$
|
|
6127
|
+
function _extends$h() {
|
|
6128
|
+
_extends$h = Object.assign || function(target) {
|
|
6088
6129
|
for(var i = 1; i < arguments.length; i++){
|
|
6089
6130
|
var source = arguments[i];
|
|
6090
6131
|
for(var key in source){
|
|
@@ -6095,9 +6136,9 @@ function _extends$g() {
|
|
|
6095
6136
|
}
|
|
6096
6137
|
return target;
|
|
6097
6138
|
};
|
|
6098
|
-
return _extends$
|
|
6139
|
+
return _extends$h.apply(this, arguments);
|
|
6099
6140
|
}
|
|
6100
|
-
function _inherits$
|
|
6141
|
+
function _inherits$i(subClass, superClass) {
|
|
6101
6142
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6102
6143
|
throw new TypeError("Super expression must either be null or a function");
|
|
6103
6144
|
}
|
|
@@ -6108,28 +6149,28 @@ function _inherits$h(subClass, superClass) {
|
|
|
6108
6149
|
configurable: true
|
|
6109
6150
|
}
|
|
6110
6151
|
});
|
|
6111
|
-
if (superClass) _set_prototype_of$
|
|
6152
|
+
if (superClass) _set_prototype_of$i(subClass, superClass);
|
|
6112
6153
|
}
|
|
6113
|
-
function _set_prototype_of$
|
|
6114
|
-
_set_prototype_of$
|
|
6154
|
+
function _set_prototype_of$i(o, p) {
|
|
6155
|
+
_set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6115
6156
|
o.__proto__ = p;
|
|
6116
6157
|
return o;
|
|
6117
6158
|
};
|
|
6118
|
-
return _set_prototype_of$
|
|
6159
|
+
return _set_prototype_of$i(o, p);
|
|
6119
6160
|
}
|
|
6120
6161
|
var Footer = /*#__PURE__*/ function(Component) {
|
|
6121
|
-
_inherits$
|
|
6162
|
+
_inherits$i(Footer, Component);
|
|
6122
6163
|
function Footer(options) {
|
|
6123
6164
|
if (options === void 0) options = {};
|
|
6124
|
-
return Component.call(this, _extends$
|
|
6165
|
+
return Component.call(this, _extends$h({}, options, {
|
|
6125
6166
|
cType: 'footer'
|
|
6126
6167
|
})) || this;
|
|
6127
6168
|
}
|
|
6128
6169
|
return Footer;
|
|
6129
6170
|
}(Component);
|
|
6130
6171
|
|
|
6131
|
-
function _extends$
|
|
6132
|
-
_extends$
|
|
6172
|
+
function _extends$g() {
|
|
6173
|
+
_extends$g = Object.assign || function(target) {
|
|
6133
6174
|
for(var i = 1; i < arguments.length; i++){
|
|
6134
6175
|
var source = arguments[i];
|
|
6135
6176
|
for(var key in source){
|
|
@@ -6140,9 +6181,9 @@ function _extends$f() {
|
|
|
6140
6181
|
}
|
|
6141
6182
|
return target;
|
|
6142
6183
|
};
|
|
6143
|
-
return _extends$
|
|
6184
|
+
return _extends$g.apply(this, arguments);
|
|
6144
6185
|
}
|
|
6145
|
-
function _inherits$
|
|
6186
|
+
function _inherits$h(subClass, superClass) {
|
|
6146
6187
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6147
6188
|
throw new TypeError("Super expression must either be null or a function");
|
|
6148
6189
|
}
|
|
@@ -6153,20 +6194,20 @@ function _inherits$g(subClass, superClass) {
|
|
|
6153
6194
|
configurable: true
|
|
6154
6195
|
}
|
|
6155
6196
|
});
|
|
6156
|
-
if (superClass) _set_prototype_of$
|
|
6197
|
+
if (superClass) _set_prototype_of$h(subClass, superClass);
|
|
6157
6198
|
}
|
|
6158
|
-
function _set_prototype_of$
|
|
6159
|
-
_set_prototype_of$
|
|
6199
|
+
function _set_prototype_of$h(o, p) {
|
|
6200
|
+
_set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6160
6201
|
o.__proto__ = p;
|
|
6161
6202
|
return o;
|
|
6162
6203
|
};
|
|
6163
|
-
return _set_prototype_of$
|
|
6204
|
+
return _set_prototype_of$h(o, p);
|
|
6164
6205
|
}
|
|
6165
6206
|
var Header = /*#__PURE__*/ function(Component) {
|
|
6166
|
-
_inherits$
|
|
6207
|
+
_inherits$h(Header, Component);
|
|
6167
6208
|
function Header(options) {
|
|
6168
6209
|
if (options === void 0) options = {};
|
|
6169
|
-
return Component.call(this, _extends$
|
|
6210
|
+
return Component.call(this, _extends$g({}, options, {
|
|
6170
6211
|
cType: 'header'
|
|
6171
6212
|
})) || this;
|
|
6172
6213
|
}
|
|
@@ -6332,8 +6373,8 @@ function interactiveHF($container, second, callback) {
|
|
|
6332
6373
|
};
|
|
6333
6374
|
}
|
|
6334
6375
|
|
|
6335
|
-
function _extends$
|
|
6336
|
-
_extends$
|
|
6376
|
+
function _extends$f() {
|
|
6377
|
+
_extends$f = Object.assign || function(target) {
|
|
6337
6378
|
for(var i = 1; i < arguments.length; i++){
|
|
6338
6379
|
var source = arguments[i];
|
|
6339
6380
|
for(var key in source){
|
|
@@ -6344,9 +6385,9 @@ function _extends$e() {
|
|
|
6344
6385
|
}
|
|
6345
6386
|
return target;
|
|
6346
6387
|
};
|
|
6347
|
-
return _extends$
|
|
6388
|
+
return _extends$f.apply(this, arguments);
|
|
6348
6389
|
}
|
|
6349
|
-
function _inherits$
|
|
6390
|
+
function _inherits$g(subClass, superClass) {
|
|
6350
6391
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6351
6392
|
throw new TypeError("Super expression must either be null or a function");
|
|
6352
6393
|
}
|
|
@@ -6357,23 +6398,23 @@ function _inherits$f(subClass, superClass) {
|
|
|
6357
6398
|
configurable: true
|
|
6358
6399
|
}
|
|
6359
6400
|
});
|
|
6360
|
-
if (superClass) _set_prototype_of$
|
|
6401
|
+
if (superClass) _set_prototype_of$g(subClass, superClass);
|
|
6361
6402
|
}
|
|
6362
|
-
function _set_prototype_of$
|
|
6363
|
-
_set_prototype_of$
|
|
6403
|
+
function _set_prototype_of$g(o, p) {
|
|
6404
|
+
_set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6364
6405
|
o.__proto__ = p;
|
|
6365
6406
|
return o;
|
|
6366
6407
|
};
|
|
6367
|
-
return _set_prototype_of$
|
|
6408
|
+
return _set_prototype_of$g(o, p);
|
|
6368
6409
|
}
|
|
6369
6410
|
/**
|
|
6370
6411
|
* 全局全屏
|
|
6371
6412
|
* 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
|
|
6372
6413
|
* @category Control
|
|
6373
6414
|
*/ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
|
|
6374
|
-
_inherits$
|
|
6415
|
+
_inherits$g(GlobalFullscreen, Fullscreen);
|
|
6375
6416
|
function GlobalFullscreen(options) {
|
|
6376
|
-
return Fullscreen.call(this, _extends$
|
|
6417
|
+
return Fullscreen.call(this, _extends$f({}, options, {
|
|
6377
6418
|
controlType: 'button',
|
|
6378
6419
|
classNameSuffix: 'global-fullscreen'
|
|
6379
6420
|
})) || this;
|
|
@@ -6404,8 +6445,8 @@ function _set_prototype_of$f(o, p) {
|
|
|
6404
6445
|
return GlobalFullscreen;
|
|
6405
6446
|
}(Fullscreen);
|
|
6406
6447
|
|
|
6407
|
-
function _extends$
|
|
6408
|
-
_extends$
|
|
6448
|
+
function _extends$e() {
|
|
6449
|
+
_extends$e = Object.assign || function(target) {
|
|
6409
6450
|
for(var i = 1; i < arguments.length; i++){
|
|
6410
6451
|
var source = arguments[i];
|
|
6411
6452
|
for(var key in source){
|
|
@@ -6416,9 +6457,9 @@ function _extends$d() {
|
|
|
6416
6457
|
}
|
|
6417
6458
|
return target;
|
|
6418
6459
|
};
|
|
6419
|
-
return _extends$
|
|
6460
|
+
return _extends$e.apply(this, arguments);
|
|
6420
6461
|
}
|
|
6421
|
-
function _inherits$
|
|
6462
|
+
function _inherits$f(subClass, superClass) {
|
|
6422
6463
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6423
6464
|
throw new TypeError("Super expression must either be null or a function");
|
|
6424
6465
|
}
|
|
@@ -6429,23 +6470,23 @@ function _inherits$e(subClass, superClass) {
|
|
|
6429
6470
|
configurable: true
|
|
6430
6471
|
}
|
|
6431
6472
|
});
|
|
6432
|
-
if (superClass) _set_prototype_of$
|
|
6473
|
+
if (superClass) _set_prototype_of$f(subClass, superClass);
|
|
6433
6474
|
}
|
|
6434
|
-
function _set_prototype_of$
|
|
6435
|
-
_set_prototype_of$
|
|
6475
|
+
function _set_prototype_of$f(o, p) {
|
|
6476
|
+
_set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6436
6477
|
o.__proto__ = p;
|
|
6437
6478
|
return o;
|
|
6438
6479
|
};
|
|
6439
|
-
return _set_prototype_of$
|
|
6480
|
+
return _set_prototype_of$f(o, p);
|
|
6440
6481
|
}
|
|
6441
6482
|
/**
|
|
6442
6483
|
* 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
|
|
6443
6484
|
* @category Control
|
|
6444
6485
|
*/ var CapturePicture = /*#__PURE__*/ function(Control) {
|
|
6445
|
-
_inherits$
|
|
6486
|
+
_inherits$f(CapturePicture, Control);
|
|
6446
6487
|
function CapturePicture(options) {
|
|
6447
6488
|
var _this;
|
|
6448
|
-
_this = Control.call(this, _extends$
|
|
6489
|
+
_this = Control.call(this, _extends$e({}, options, {
|
|
6449
6490
|
tagName: 'span',
|
|
6450
6491
|
classNameSuffix: 'capture-picture'
|
|
6451
6492
|
})) || this, _this._timer = null;
|
|
@@ -7454,8 +7495,8 @@ function _create_class$4(Constructor, protoProps, staticProps) {
|
|
|
7454
7495
|
if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
|
|
7455
7496
|
return Constructor;
|
|
7456
7497
|
}
|
|
7457
|
-
function _extends$
|
|
7458
|
-
_extends$
|
|
7498
|
+
function _extends$d() {
|
|
7499
|
+
_extends$d = Object.assign || function(target) {
|
|
7459
7500
|
for(var i = 1; i < arguments.length; i++){
|
|
7460
7501
|
var source = arguments[i];
|
|
7461
7502
|
for(var key in source){
|
|
@@ -7466,9 +7507,9 @@ function _extends$c() {
|
|
|
7466
7507
|
}
|
|
7467
7508
|
return target;
|
|
7468
7509
|
};
|
|
7469
|
-
return _extends$
|
|
7510
|
+
return _extends$d.apply(this, arguments);
|
|
7470
7511
|
}
|
|
7471
|
-
function _inherits$
|
|
7512
|
+
function _inherits$e(subClass, superClass) {
|
|
7472
7513
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
7473
7514
|
throw new TypeError("Super expression must either be null or a function");
|
|
7474
7515
|
}
|
|
@@ -7479,23 +7520,23 @@ function _inherits$d(subClass, superClass) {
|
|
|
7479
7520
|
configurable: true
|
|
7480
7521
|
}
|
|
7481
7522
|
});
|
|
7482
|
-
if (superClass) _set_prototype_of$
|
|
7523
|
+
if (superClass) _set_prototype_of$e(subClass, superClass);
|
|
7483
7524
|
}
|
|
7484
|
-
function _set_prototype_of$
|
|
7485
|
-
_set_prototype_of$
|
|
7525
|
+
function _set_prototype_of$e(o, p) {
|
|
7526
|
+
_set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7486
7527
|
o.__proto__ = p;
|
|
7487
7528
|
return o;
|
|
7488
7529
|
};
|
|
7489
|
-
return _set_prototype_of$
|
|
7530
|
+
return _set_prototype_of$e(o, p);
|
|
7490
7531
|
}
|
|
7491
7532
|
/**
|
|
7492
7533
|
* 云台控件
|
|
7493
7534
|
* @category Control
|
|
7494
7535
|
*/ var Ptz = /*#__PURE__*/ function(Control) {
|
|
7495
|
-
_inherits$
|
|
7536
|
+
_inherits$e(Ptz, Control);
|
|
7496
7537
|
function Ptz(options) {
|
|
7497
7538
|
var _this;
|
|
7498
|
-
_this = Control.call(this, _extends$
|
|
7539
|
+
_this = Control.call(this, _extends$d({}, options, {
|
|
7499
7540
|
tagName: 'span',
|
|
7500
7541
|
controlType: 'button',
|
|
7501
7542
|
classNameSuffix: 'ptz'
|
|
@@ -7538,7 +7579,7 @@ function _set_prototype_of$d(o, p) {
|
|
|
7538
7579
|
this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
|
|
7539
7580
|
this.$panel.appendChild(this.$turntable);
|
|
7540
7581
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
7541
|
-
this._ptzControl = new distExports.Ptz(this.$turntable, _extends$
|
|
7582
|
+
this._ptzControl = new distExports.Ptz(this.$turntable, _extends$d({}, this._options, {
|
|
7542
7583
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
7543
7584
|
onDirection: this._onDirection.bind(this)
|
|
7544
7585
|
}));
|
|
@@ -7547,7 +7588,7 @@ function _set_prototype_of$d(o, p) {
|
|
|
7547
7588
|
};
|
|
7548
7589
|
_proto.renderMobileExtend = function renderMobileExtend($container) {
|
|
7549
7590
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
7550
|
-
if (!this._ptzControl1) this._ptzControl1 = new distExports.MobilePtz($container, _extends$
|
|
7591
|
+
if (!this._ptzControl1) this._ptzControl1 = new distExports.MobilePtz($container, _extends$d({}, this._options, {
|
|
7551
7592
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
7552
7593
|
onDirection: this._onDirection.bind(this)
|
|
7553
7594
|
}));
|
|
@@ -7650,8 +7691,8 @@ function _create_class$3(Constructor, protoProps, staticProps) {
|
|
|
7650
7691
|
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
7651
7692
|
return Constructor;
|
|
7652
7693
|
}
|
|
7653
|
-
function _extends$
|
|
7654
|
-
_extends$
|
|
7694
|
+
function _extends$c() {
|
|
7695
|
+
_extends$c = Object.assign || function(target) {
|
|
7655
7696
|
for(var i = 1; i < arguments.length; i++){
|
|
7656
7697
|
var source = arguments[i];
|
|
7657
7698
|
for(var key in source){
|
|
@@ -7662,9 +7703,9 @@ function _extends$b() {
|
|
|
7662
7703
|
}
|
|
7663
7704
|
return target;
|
|
7664
7705
|
};
|
|
7665
|
-
return _extends$
|
|
7706
|
+
return _extends$c.apply(this, arguments);
|
|
7666
7707
|
}
|
|
7667
|
-
function _inherits$
|
|
7708
|
+
function _inherits$d(subClass, superClass) {
|
|
7668
7709
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
7669
7710
|
throw new TypeError("Super expression must either be null or a function");
|
|
7670
7711
|
}
|
|
@@ -7675,14 +7716,14 @@ function _inherits$c(subClass, superClass) {
|
|
|
7675
7716
|
configurable: true
|
|
7676
7717
|
}
|
|
7677
7718
|
});
|
|
7678
|
-
if (superClass) _set_prototype_of$
|
|
7719
|
+
if (superClass) _set_prototype_of$d(subClass, superClass);
|
|
7679
7720
|
}
|
|
7680
|
-
function _set_prototype_of$
|
|
7681
|
-
_set_prototype_of$
|
|
7721
|
+
function _set_prototype_of$d(o, p) {
|
|
7722
|
+
_set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7682
7723
|
o.__proto__ = p;
|
|
7683
7724
|
return o;
|
|
7684
7725
|
};
|
|
7685
|
-
return _set_prototype_of$
|
|
7726
|
+
return _set_prototype_of$d(o, p);
|
|
7686
7727
|
}
|
|
7687
7728
|
var RECORD_DEFAULT_OPTIONS = {
|
|
7688
7729
|
maxDuration: 3600
|
|
@@ -7696,10 +7737,10 @@ var RECORD_DEFAULT_OPTIONS = {
|
|
|
7696
7737
|
* 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
|
|
7697
7738
|
* @category Control
|
|
7698
7739
|
*/ var Record = /*#__PURE__*/ function(Control) {
|
|
7699
|
-
_inherits$
|
|
7740
|
+
_inherits$d(Record, Control);
|
|
7700
7741
|
function Record(options) {
|
|
7701
7742
|
var _this;
|
|
7702
|
-
_this = Control.call(this, _extends$
|
|
7743
|
+
_this = Control.call(this, _extends$c({}, options, {
|
|
7703
7744
|
tagName: 'span',
|
|
7704
7745
|
controlType: 'button',
|
|
7705
7746
|
classNameSuffix: 'record'
|
|
@@ -7798,7 +7839,7 @@ var RECORD_DEFAULT_OPTIONS = {
|
|
|
7798
7839
|
return Record;
|
|
7799
7840
|
}(Control);
|
|
7800
7841
|
|
|
7801
|
-
function asyncGeneratorStep$
|
|
7842
|
+
function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
7802
7843
|
try {
|
|
7803
7844
|
var info = gen[key](arg);
|
|
7804
7845
|
var value = info.value;
|
|
@@ -7812,16 +7853,16 @@ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
7812
7853
|
Promise.resolve(value).then(_next, _throw);
|
|
7813
7854
|
}
|
|
7814
7855
|
}
|
|
7815
|
-
function _async_to_generator$
|
|
7856
|
+
function _async_to_generator$4(fn) {
|
|
7816
7857
|
return function() {
|
|
7817
7858
|
var self = this, args = arguments;
|
|
7818
7859
|
return new Promise(function(resolve, reject) {
|
|
7819
7860
|
var gen = fn.apply(self, args);
|
|
7820
7861
|
function _next(value) {
|
|
7821
|
-
asyncGeneratorStep$
|
|
7862
|
+
asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value);
|
|
7822
7863
|
}
|
|
7823
7864
|
function _throw(err) {
|
|
7824
|
-
asyncGeneratorStep$
|
|
7865
|
+
asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err);
|
|
7825
7866
|
}
|
|
7826
7867
|
_next(undefined);
|
|
7827
7868
|
});
|
|
@@ -7840,8 +7881,8 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
|
7840
7881
|
if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
|
|
7841
7882
|
return Constructor;
|
|
7842
7883
|
}
|
|
7843
|
-
function _extends$
|
|
7844
|
-
_extends$
|
|
7884
|
+
function _extends$b() {
|
|
7885
|
+
_extends$b = Object.assign || function(target) {
|
|
7845
7886
|
for(var i = 1; i < arguments.length; i++){
|
|
7846
7887
|
var source = arguments[i];
|
|
7847
7888
|
for(var key in source){
|
|
@@ -7852,9 +7893,9 @@ function _extends$a() {
|
|
|
7852
7893
|
}
|
|
7853
7894
|
return target;
|
|
7854
7895
|
};
|
|
7855
|
-
return _extends$
|
|
7896
|
+
return _extends$b.apply(this, arguments);
|
|
7856
7897
|
}
|
|
7857
|
-
function _inherits$
|
|
7898
|
+
function _inherits$c(subClass, superClass) {
|
|
7858
7899
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
7859
7900
|
throw new TypeError("Super expression must either be null or a function");
|
|
7860
7901
|
}
|
|
@@ -7865,16 +7906,16 @@ function _inherits$b(subClass, superClass) {
|
|
|
7865
7906
|
configurable: true
|
|
7866
7907
|
}
|
|
7867
7908
|
});
|
|
7868
|
-
if (superClass) _set_prototype_of$
|
|
7909
|
+
if (superClass) _set_prototype_of$c(subClass, superClass);
|
|
7869
7910
|
}
|
|
7870
|
-
function _set_prototype_of$
|
|
7871
|
-
_set_prototype_of$
|
|
7911
|
+
function _set_prototype_of$c(o, p) {
|
|
7912
|
+
_set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7872
7913
|
o.__proto__ = p;
|
|
7873
7914
|
return o;
|
|
7874
7915
|
};
|
|
7875
|
-
return _set_prototype_of$
|
|
7916
|
+
return _set_prototype_of$c(o, p);
|
|
7876
7917
|
}
|
|
7877
|
-
function _ts_generator$
|
|
7918
|
+
function _ts_generator$4(thisArg, body) {
|
|
7878
7919
|
var f, y, t, _ = {
|
|
7879
7920
|
label: 0,
|
|
7880
7921
|
sent: function() {
|
|
@@ -7974,10 +8015,10 @@ function _ts_generator$3(thisArg, body) {
|
|
|
7974
8015
|
*
|
|
7975
8016
|
* @category Control
|
|
7976
8017
|
*/ var Talk = /*#__PURE__*/ function(Control) {
|
|
7977
|
-
_inherits$
|
|
8018
|
+
_inherits$c(Talk, Control);
|
|
7978
8019
|
function Talk(options) {
|
|
7979
8020
|
var _this;
|
|
7980
|
-
_this = Control.call(this, _extends$
|
|
8021
|
+
_this = Control.call(this, _extends$b({}, options, {
|
|
7981
8022
|
tagName: 'span',
|
|
7982
8023
|
controlType: 'button',
|
|
7983
8024
|
classNameSuffix: 'talk'
|
|
@@ -8029,8 +8070,8 @@ function _ts_generator$3(thisArg, body) {
|
|
|
8029
8070
|
var _this = this, _superprop_get__onControlClick = function() {
|
|
8030
8071
|
return Control.prototype._onControlClick;
|
|
8031
8072
|
};
|
|
8032
|
-
return _async_to_generator$
|
|
8033
|
-
return _ts_generator$
|
|
8073
|
+
return _async_to_generator$4(function() {
|
|
8074
|
+
return _ts_generator$4(this, function(_state) {
|
|
8034
8075
|
_superprop_get__onControlClick().call(_this, e);
|
|
8035
8076
|
this.active = !this.active;
|
|
8036
8077
|
this.emit(EVENTS.control.talkingChange, this.active);
|
|
@@ -8081,7 +8122,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
8081
8122
|
return Talk;
|
|
8082
8123
|
}(Control);
|
|
8083
8124
|
|
|
8084
|
-
function asyncGeneratorStep$
|
|
8125
|
+
function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
8085
8126
|
try {
|
|
8086
8127
|
var info = gen[key](arg);
|
|
8087
8128
|
var value = info.value;
|
|
@@ -8095,23 +8136,23 @@ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
8095
8136
|
Promise.resolve(value).then(_next, _throw);
|
|
8096
8137
|
}
|
|
8097
8138
|
}
|
|
8098
|
-
function _async_to_generator$
|
|
8139
|
+
function _async_to_generator$3(fn) {
|
|
8099
8140
|
return function() {
|
|
8100
8141
|
var self = this, args = arguments;
|
|
8101
8142
|
return new Promise(function(resolve, reject) {
|
|
8102
8143
|
var gen = fn.apply(self, args);
|
|
8103
8144
|
function _next(value) {
|
|
8104
|
-
asyncGeneratorStep$
|
|
8145
|
+
asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value);
|
|
8105
8146
|
}
|
|
8106
8147
|
function _throw(err) {
|
|
8107
|
-
asyncGeneratorStep$
|
|
8148
|
+
asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err);
|
|
8108
8149
|
}
|
|
8109
8150
|
_next(undefined);
|
|
8110
8151
|
});
|
|
8111
8152
|
};
|
|
8112
8153
|
}
|
|
8113
|
-
function _extends$
|
|
8114
|
-
_extends$
|
|
8154
|
+
function _extends$a() {
|
|
8155
|
+
_extends$a = Object.assign || function(target) {
|
|
8115
8156
|
for(var i = 1; i < arguments.length; i++){
|
|
8116
8157
|
var source = arguments[i];
|
|
8117
8158
|
for(var key in source){
|
|
@@ -8122,9 +8163,9 @@ function _extends$9() {
|
|
|
8122
8163
|
}
|
|
8123
8164
|
return target;
|
|
8124
8165
|
};
|
|
8125
|
-
return _extends$
|
|
8166
|
+
return _extends$a.apply(this, arguments);
|
|
8126
8167
|
}
|
|
8127
|
-
function _inherits$
|
|
8168
|
+
function _inherits$b(subClass, superClass) {
|
|
8128
8169
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
8129
8170
|
throw new TypeError("Super expression must either be null or a function");
|
|
8130
8171
|
}
|
|
@@ -8135,16 +8176,16 @@ function _inherits$a(subClass, superClass) {
|
|
|
8135
8176
|
configurable: true
|
|
8136
8177
|
}
|
|
8137
8178
|
});
|
|
8138
|
-
if (superClass) _set_prototype_of$
|
|
8179
|
+
if (superClass) _set_prototype_of$b(subClass, superClass);
|
|
8139
8180
|
}
|
|
8140
|
-
function _set_prototype_of$
|
|
8141
|
-
_set_prototype_of$
|
|
8181
|
+
function _set_prototype_of$b(o, p) {
|
|
8182
|
+
_set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
8142
8183
|
o.__proto__ = p;
|
|
8143
8184
|
return o;
|
|
8144
8185
|
};
|
|
8145
|
-
return _set_prototype_of$
|
|
8186
|
+
return _set_prototype_of$b(o, p);
|
|
8146
8187
|
}
|
|
8147
|
-
function _ts_generator$
|
|
8188
|
+
function _ts_generator$3(thisArg, body) {
|
|
8148
8189
|
var f, y, t, _ = {
|
|
8149
8190
|
label: 0,
|
|
8150
8191
|
sent: function() {
|
|
@@ -8242,10 +8283,10 @@ function _ts_generator$2(thisArg, body) {
|
|
|
8242
8283
|
*
|
|
8243
8284
|
* @category Control
|
|
8244
8285
|
*/ var Broadcast = /*#__PURE__*/ function(Control) {
|
|
8245
|
-
_inherits$
|
|
8286
|
+
_inherits$b(Broadcast, Control);
|
|
8246
8287
|
function Broadcast(options) {
|
|
8247
8288
|
var _this;
|
|
8248
|
-
_this = Control.call(this, _extends$
|
|
8289
|
+
_this = Control.call(this, _extends$a({}, options, {
|
|
8249
8290
|
tagName: 'span',
|
|
8250
8291
|
controlType: 'button',
|
|
8251
8292
|
classNameSuffix: 'broadcast'
|
|
@@ -8289,9 +8330,9 @@ function _ts_generator$2(thisArg, body) {
|
|
|
8289
8330
|
var _this = this, _superprop_get__onControlClick = function() {
|
|
8290
8331
|
return Control.prototype._onControlClick;
|
|
8291
8332
|
};
|
|
8292
|
-
return _async_to_generator$
|
|
8333
|
+
return _async_to_generator$3(function() {
|
|
8293
8334
|
var _this__options_onChange, _this__options;
|
|
8294
|
-
return _ts_generator$
|
|
8335
|
+
return _ts_generator$3(this, function(_state) {
|
|
8295
8336
|
_superprop_get__onControlClick().call(_this, e);
|
|
8296
8337
|
this.active = !this.active;
|
|
8297
8338
|
this.emit(EVENTS.control.broadcastChange, this.active);
|
|
@@ -8306,6 +8347,233 @@ function _ts_generator$2(thisArg, body) {
|
|
|
8306
8347
|
return Broadcast;
|
|
8307
8348
|
}(Control);
|
|
8308
8349
|
|
|
8350
|
+
function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
8351
|
+
try {
|
|
8352
|
+
var info = gen[key](arg);
|
|
8353
|
+
var value = info.value;
|
|
8354
|
+
} catch (error) {
|
|
8355
|
+
reject(error);
|
|
8356
|
+
return;
|
|
8357
|
+
}
|
|
8358
|
+
if (info.done) {
|
|
8359
|
+
resolve(value);
|
|
8360
|
+
} else {
|
|
8361
|
+
Promise.resolve(value).then(_next, _throw);
|
|
8362
|
+
}
|
|
8363
|
+
}
|
|
8364
|
+
function _async_to_generator$2(fn) {
|
|
8365
|
+
return function() {
|
|
8366
|
+
var self = this, args = arguments;
|
|
8367
|
+
return new Promise(function(resolve, reject) {
|
|
8368
|
+
var gen = fn.apply(self, args);
|
|
8369
|
+
function _next(value) {
|
|
8370
|
+
asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value);
|
|
8371
|
+
}
|
|
8372
|
+
function _throw(err) {
|
|
8373
|
+
asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err);
|
|
8374
|
+
}
|
|
8375
|
+
_next(undefined);
|
|
8376
|
+
});
|
|
8377
|
+
};
|
|
8378
|
+
}
|
|
8379
|
+
function _extends$9() {
|
|
8380
|
+
_extends$9 = Object.assign || function(target) {
|
|
8381
|
+
for(var i = 1; i < arguments.length; i++){
|
|
8382
|
+
var source = arguments[i];
|
|
8383
|
+
for(var key in source){
|
|
8384
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8385
|
+
target[key] = source[key];
|
|
8386
|
+
}
|
|
8387
|
+
}
|
|
8388
|
+
}
|
|
8389
|
+
return target;
|
|
8390
|
+
};
|
|
8391
|
+
return _extends$9.apply(this, arguments);
|
|
8392
|
+
}
|
|
8393
|
+
function _inherits$a(subClass, superClass) {
|
|
8394
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
8395
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
8396
|
+
}
|
|
8397
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
8398
|
+
constructor: {
|
|
8399
|
+
value: subClass,
|
|
8400
|
+
writable: true,
|
|
8401
|
+
configurable: true
|
|
8402
|
+
}
|
|
8403
|
+
});
|
|
8404
|
+
if (superClass) _set_prototype_of$a(subClass, superClass);
|
|
8405
|
+
}
|
|
8406
|
+
function _set_prototype_of$a(o, p) {
|
|
8407
|
+
_set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
8408
|
+
o.__proto__ = p;
|
|
8409
|
+
return o;
|
|
8410
|
+
};
|
|
8411
|
+
return _set_prototype_of$a(o, p);
|
|
8412
|
+
}
|
|
8413
|
+
function _ts_generator$2(thisArg, body) {
|
|
8414
|
+
var f, y, t, _ = {
|
|
8415
|
+
label: 0,
|
|
8416
|
+
sent: function() {
|
|
8417
|
+
if (t[0] & 1) throw t[1];
|
|
8418
|
+
return t[1];
|
|
8419
|
+
},
|
|
8420
|
+
trys: [],
|
|
8421
|
+
ops: []
|
|
8422
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
8423
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
8424
|
+
return this;
|
|
8425
|
+
}), g;
|
|
8426
|
+
function verb(n) {
|
|
8427
|
+
return function(v) {
|
|
8428
|
+
return step([
|
|
8429
|
+
n,
|
|
8430
|
+
v
|
|
8431
|
+
]);
|
|
8432
|
+
};
|
|
8433
|
+
}
|
|
8434
|
+
function step(op) {
|
|
8435
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
8436
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
8437
|
+
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;
|
|
8438
|
+
if (y = 0, t) op = [
|
|
8439
|
+
op[0] & 2,
|
|
8440
|
+
t.value
|
|
8441
|
+
];
|
|
8442
|
+
switch(op[0]){
|
|
8443
|
+
case 0:
|
|
8444
|
+
case 1:
|
|
8445
|
+
t = op;
|
|
8446
|
+
break;
|
|
8447
|
+
case 4:
|
|
8448
|
+
_.label++;
|
|
8449
|
+
return {
|
|
8450
|
+
value: op[1],
|
|
8451
|
+
done: false
|
|
8452
|
+
};
|
|
8453
|
+
case 5:
|
|
8454
|
+
_.label++;
|
|
8455
|
+
y = op[1];
|
|
8456
|
+
op = [
|
|
8457
|
+
0
|
|
8458
|
+
];
|
|
8459
|
+
continue;
|
|
8460
|
+
case 7:
|
|
8461
|
+
op = _.ops.pop();
|
|
8462
|
+
_.trys.pop();
|
|
8463
|
+
continue;
|
|
8464
|
+
default:
|
|
8465
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
8466
|
+
_ = 0;
|
|
8467
|
+
continue;
|
|
8468
|
+
}
|
|
8469
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
8470
|
+
_.label = op[1];
|
|
8471
|
+
break;
|
|
8472
|
+
}
|
|
8473
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
8474
|
+
_.label = t[1];
|
|
8475
|
+
t = op;
|
|
8476
|
+
break;
|
|
8477
|
+
}
|
|
8478
|
+
if (t && _.label < t[2]) {
|
|
8479
|
+
_.label = t[2];
|
|
8480
|
+
_.ops.push(op);
|
|
8481
|
+
break;
|
|
8482
|
+
}
|
|
8483
|
+
if (t[2]) _.ops.pop();
|
|
8484
|
+
_.trys.pop();
|
|
8485
|
+
continue;
|
|
8486
|
+
}
|
|
8487
|
+
op = body.call(thisArg, _);
|
|
8488
|
+
} catch (e) {
|
|
8489
|
+
op = [
|
|
8490
|
+
6,
|
|
8491
|
+
e
|
|
8492
|
+
];
|
|
8493
|
+
y = 0;
|
|
8494
|
+
} finally{
|
|
8495
|
+
f = t = 0;
|
|
8496
|
+
}
|
|
8497
|
+
if (op[0] & 5) throw op[1];
|
|
8498
|
+
return {
|
|
8499
|
+
value: op[0] ? op[1] : void 0,
|
|
8500
|
+
done: true
|
|
8501
|
+
};
|
|
8502
|
+
}
|
|
8503
|
+
}
|
|
8504
|
+
/**
|
|
8505
|
+
* AI对话框控件
|
|
8506
|
+
*
|
|
8507
|
+
* 用于触发AI对话框功能的按钮控件
|
|
8508
|
+
*
|
|
8509
|
+
* @category Control
|
|
8510
|
+
*/ var AIChat = /*#__PURE__*/ function(Control) {
|
|
8511
|
+
_inherits$a(AIChat, Control);
|
|
8512
|
+
function AIChat(options) {
|
|
8513
|
+
var _this;
|
|
8514
|
+
_this = Control.call(this, _extends$9({}, options, {
|
|
8515
|
+
tagName: 'span',
|
|
8516
|
+
controlType: 'button',
|
|
8517
|
+
classNameSuffix: 'aichat'
|
|
8518
|
+
})) || this;
|
|
8519
|
+
_this._options = options;
|
|
8520
|
+
if (options.urlInfo.search === "" && options.urlInfo.recType === "cloud") {
|
|
8521
|
+
_this._render();
|
|
8522
|
+
_this.on(EVENTS.aichatChange, function(active) {
|
|
8523
|
+
if (_this.active !== active) {
|
|
8524
|
+
_this.active = active;
|
|
8525
|
+
_this._render();
|
|
8526
|
+
}
|
|
8527
|
+
});
|
|
8528
|
+
}
|
|
8529
|
+
return _this;
|
|
8530
|
+
}
|
|
8531
|
+
var _proto = AIChat.prototype;
|
|
8532
|
+
_proto._render = function _render() {
|
|
8533
|
+
var _this_locale;
|
|
8534
|
+
this.$container.innerHTML = IconComponents.aiChat({
|
|
8535
|
+
title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_AICHAT
|
|
8536
|
+
});
|
|
8537
|
+
};
|
|
8538
|
+
_proto.reset = function reset(hide) {
|
|
8539
|
+
if (this.active) {
|
|
8540
|
+
this.active = false;
|
|
8541
|
+
this._render();
|
|
8542
|
+
this.emit(EVENTS.control.aichatChange, false);
|
|
8543
|
+
Control.prototype.reset.call(this, hide);
|
|
8544
|
+
}
|
|
8545
|
+
};
|
|
8546
|
+
/**
|
|
8547
|
+
* 销毁AI对话框控件
|
|
8548
|
+
*/ _proto.destroy = function destroy() {
|
|
8549
|
+
if (this.active) {
|
|
8550
|
+
this.reset();
|
|
8551
|
+
}
|
|
8552
|
+
Control.prototype.destroy.call(this);
|
|
8553
|
+
};
|
|
8554
|
+
/**
|
|
8555
|
+
* 点击 Control 会触发
|
|
8556
|
+
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
8557
|
+
var _this = this, _superprop_get__onControlClick = function() {
|
|
8558
|
+
return Control.prototype._onControlClick;
|
|
8559
|
+
};
|
|
8560
|
+
return _async_to_generator$2(function() {
|
|
8561
|
+
var _this__options_onChange, _this__options;
|
|
8562
|
+
return _ts_generator$2(this, function(_state) {
|
|
8563
|
+
_superprop_get__onControlClick().call(_this, e);
|
|
8564
|
+
this.active = !this.active;
|
|
8565
|
+
this.emit(EVENTS.control.aichatChange, this.active);
|
|
8566
|
+
(_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, this.active);
|
|
8567
|
+
this._render();
|
|
8568
|
+
return [
|
|
8569
|
+
2
|
|
8570
|
+
];
|
|
8571
|
+
});
|
|
8572
|
+
}).call(this);
|
|
8573
|
+
};
|
|
8574
|
+
return AIChat;
|
|
8575
|
+
}(Control);
|
|
8576
|
+
|
|
8309
8577
|
function _defineProperties$1(target, props) {
|
|
8310
8578
|
for(var i = 0; i < props.length; i++){
|
|
8311
8579
|
var descriptor = props[i];
|
|
@@ -9297,6 +9565,7 @@ var Controls = {
|
|
|
9297
9565
|
record: Record,
|
|
9298
9566
|
talk: Talk,
|
|
9299
9567
|
broadcast: Broadcast,
|
|
9568
|
+
aiChat: AIChat,
|
|
9300
9569
|
zoom: Zoom$1,
|
|
9301
9570
|
definition: Definition,
|
|
9302
9571
|
fullscreen: Fullscreen,
|
|
@@ -9829,7 +10098,8 @@ function _ts_generator$1(thisArg, body) {
|
|
|
9829
10098
|
}
|
|
9830
10099
|
// 需要权限的控件
|
|
9831
10100
|
var AUTH_KEY = [
|
|
9832
|
-
'ptz'
|
|
10101
|
+
'ptz',
|
|
10102
|
+
'aiChat'
|
|
9833
10103
|
];
|
|
9834
10104
|
/**
|
|
9835
10105
|
* 渲染控件
|
|
@@ -9892,7 +10162,8 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9892
10162
|
accessToken: theme.options.accessToken,
|
|
9893
10163
|
token: theme.options.token,
|
|
9894
10164
|
deviceSerial: theme.urlInfo.deviceSerial,
|
|
9895
|
-
channelNo: theme.urlInfo.channelNo
|
|
10165
|
+
channelNo: theme.urlInfo.channelNo,
|
|
10166
|
+
urlInfo: theme.urlInfo
|
|
9896
10167
|
} : {}, {
|
|
9897
10168
|
PLAY_TYPE: theme.options.type
|
|
9898
10169
|
}, ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["" + item.iconId + "Options"]) || {}, {
|
|
@@ -11679,6 +11950,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11679
11950
|
zh: zh,
|
|
11680
11951
|
en: en
|
|
11681
11952
|
};
|
|
11682
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.2-beta.
|
|
11953
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.2-beta.3';
|
|
11683
11954
|
|
|
11684
11955
|
export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
|