@ezuikit/player-theme 3.1.3-beta.2 → 3.1.4-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constant.js +2 -2
- package/dist/index.cjs +527 -408
- package/dist/index.esm.js +527 -408
- package/dist/index.umd.js +1222 -759
- package/dist/style.css +2 -3
- package/dist/style.js +3 -2
- package/dist/types/index.d.ts +54 -108
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v3.1.
|
|
3
|
-
* Copyright (c) 2026-08-
|
|
2
|
+
* @ezuikit/player-theme v3.1.4-beta.1
|
|
3
|
+
* Copyright (c) 2026-08-24 09:15:26 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -480,10 +480,14 @@ function _set_prototype_of$z(o, p) {
|
|
|
480
480
|
}(EventEmitter);
|
|
481
481
|
|
|
482
482
|
function _extends$y() {
|
|
483
|
-
_extends$y = Object.assign || function
|
|
483
|
+
_extends$y = Object.assign || function(target) {
|
|
484
484
|
for(var i = 1; i < arguments.length; i++){
|
|
485
485
|
var source = arguments[i];
|
|
486
|
-
for(var key in source)
|
|
486
|
+
for(var key in source){
|
|
487
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
488
|
+
target[key] = source[key];
|
|
489
|
+
}
|
|
490
|
+
}
|
|
487
491
|
}
|
|
488
492
|
return target;
|
|
489
493
|
};
|
|
@@ -557,10 +561,14 @@ var LOADING_DEFAULT_OPTIONS = {};
|
|
|
557
561
|
}(Control);
|
|
558
562
|
|
|
559
563
|
function _extends$x() {
|
|
560
|
-
_extends$x = Object.assign || function
|
|
564
|
+
_extends$x = Object.assign || function(target) {
|
|
561
565
|
for(var i = 1; i < arguments.length; i++){
|
|
562
566
|
var source = arguments[i];
|
|
563
|
-
for(var key in source)
|
|
567
|
+
for(var key in source){
|
|
568
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
569
|
+
target[key] = source[key];
|
|
570
|
+
}
|
|
571
|
+
}
|
|
564
572
|
}
|
|
565
573
|
return target;
|
|
566
574
|
};
|
|
@@ -666,7 +674,7 @@ var POSTER_OPTIONS = {
|
|
|
666
674
|
var Icons = {
|
|
667
675
|
/** 播放 */ play: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" focusable="false" aria-hidden="true" data-icon="play">\n <rect x="6.5" y="5.5" rx="1.25" width="2.5" height="13"/>\n <rect x="15" y="5.5" rx="1.25" width="2.5" height="13"/>\n </svg>',
|
|
668
676
|
/** 暂停 */ pause: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" focusable="false" aria-hidden="true" data-icon="pause"> <path d="M17.5 13.66L9.1 19.26C7.78 20.14 6 19.19 6 17.59L6 6.4C6 4.8 7.78 3.85 9.1 4.73L17.5 10.33C18.69 11.12 18.69 12.87 17.5 13.66Z" /></svg>',
|
|
669
|
-
/** 音量 */ volume: function
|
|
677
|
+
/** 音量 */ volume: function(prefix) {
|
|
670
678
|
return '<svg width="1em" height="1em" viewBox="0 0 24 24" stroke="currentColor" fill="none" focusable="false" aria-hidden="true" data-icon="volume">\n <path class="' + prefix + '-icon-volume-muted" d="M20.57 9.69L16.07 14.19" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n <path class="' + prefix + '-icon-volume-muted" d="M20.57 14.19L16.07 9.69" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n <!-- 音低 -->\n <path class="' + prefix + '-icon-volume-low" d="M15.53 15.97C16.69 15.25 17.49 13.75 17.49 12C17.49 10.25 16.69 8.75 15.53 8.02" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n <!-- 音高 -->\n <path class="' + prefix + '-icon-volume-high" d="M18.5 19.06C20.31 17.5 21.49 14.93 21.49 12C21.49 9.07 20.31 6.48 18.49 4.93" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M5.87 8.62L9.85 5.25C10.5 4.7 11.49 5.16 11.49 6.01L11.49 17.98C11.49 18.83 10.5 19.29 9.85 18.74L5.87 15.37" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M5.87 15.37L3.49 15.37C2.94 15.37 2.49 14.92 2.49 14.37L2.49 9.62C2.49 9.07 2.94 8.62 3.49 8.62L5.87 8.62" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>';
|
|
671
679
|
},
|
|
672
680
|
/** 全屏 */ mobileFullscreen: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" focusable="false" aria-hidden="true" data-icon="mobile-fullscreen">\n <path d="M4 2.9082L11 2.9082C12.5188 2.9082 13.75 4.1394 13.75 5.6582L13.75 17.6582C13.75 19.177 12.5188 20.4082 11 20.4082L4 20.4082C2.4812 20.4082 1.25 19.177 1.25 17.6582L1.25 5.6582C1.25 4.1394 2.4812 2.9082 4 2.9082ZM4 4.4082L11 4.4082C11.6903 4.4082 12.25 4.9679 12.25 5.6582L12.25 17.6582C12.25 18.3485 11.6903 18.9082 11 18.9082L4 18.9082C3.30969 18.9082 2.75 18.3485 2.75 17.6582L2.75 5.6582C2.75 4.9679 3.30969 4.4082 4 4.4082ZM22.1511 18.3113C22.1511 19.3595 21.2467 20.1652 20.1509 20.2362L19.993 20.2413L15.2939 20.2413C14.8798 20.2413 14.5439 19.9055 14.5439 19.4913C14.5439 19.1116 14.8262 18.7979 15.1921 18.7482L15.2939 18.7413L19.993 18.7413C20.344 18.7413 20.5962 18.5592 20.6432 18.3732L20.6511 18.3113L20.6511 12.4895C20.6511 12.3048 20.4338 12.1042 20.1062 12.066L19.993 12.0594L15.2939 12.0594C14.8798 12.0594 14.5439 11.7238 14.5439 11.3094C14.5439 10.9298 14.8262 10.616 15.1921 10.5663L15.2939 10.5594L19.993 10.5594C21.1055 10.5594 22.0605 11.3175 22.145 12.3416L22.1511 12.4895L22.1511 18.3113ZM10.3225 16.1035C10.3225 15.6893 9.98669 15.3535 9.57251 15.3535L5.84644 15.3535L5.74463 15.3604C5.37854 15.41 5.09644 15.7239 5.09644 16.1035C5.09644 16.5177 5.43225 16.8535 5.84644 16.8535L9.57251 16.8535L9.67432 16.8467C10.0404 16.797 10.3225 16.4832 10.3225 16.1035Z" clip-rule="evenodd" fill-rule="evenodd"/>\n </svg>',
|
|
@@ -692,7 +700,7 @@ var Icons = {
|
|
|
692
700
|
/** 录制/摄像机 */ record: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="record">\n <path d="M4.53 19C3.03 19 1.8 17.74 1.8 16.2L1.8 7.8C1.8 6.25 3.03 5 4.53 5L14.08 5C15.58 5 16.8 6.25 16.8 7.8L16.8 16.2C16.8 17.74 15.58 19 14.08 19L4.53 19Z" stroke-width="1.5" stroke-linejoin="round"/>\n <path d="M17.25 13.64C17.94 14.2 18.97 15.03 20.36 16.15C21.09 16.74 22.19 16.21 22.19 15.27L22.19 8.72C22.19 7.78 21.09 7.25 20.36 7.84C18.99 8.94 17.96 9.77 17.28 10.32" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
|
|
693
701
|
recordCircle: '<svg width="1em" height="1em" viewBox="0 0 14 14" fill="currentColor" stroke="none" focusable="false" aria-hidden="true" data-icon="record-circle">\n <path d="M7.00044 2.5C9.70278 2.5 11.8935 4.69068 11.8935 7.39302C11.8935 10.0954 9.70278 12.286 7.00044 12.286C4.2981 12.286 2.10742 10.0954 2.10742 7.39302C2.10742 4.69068 4.2981 2.5 7.00044 2.5ZM7.00044 3.5C4.85039 3.5 3.10742 5.24296 3.10742 7.39302C3.10742 9.54307 4.85039 11.286 7.00044 11.286C9.15049 11.286 10.8935 9.54307 10.8935 7.39302C10.8935 5.24296 9.15049 3.5 7.00044 3.5ZM9.50049 7.39252C9.50049 6.01181 8.3812 4.89252 7.00049 4.89252C5.61978 4.89252 4.50049 6.01181 4.50049 7.39252C4.50049 8.77323 5.61978 9.89252 7.00049 9.89252C8.3812 9.89252 9.50049 8.77323 9.50049 7.39252Z" fill-rule="evenodd" />\n </svg>\n ',
|
|
694
702
|
/** 对讲 */ talk: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="talk">\n <path stroke="none" d="M12.22 18.95C12.65 18.95 13.01 19.21 13.07 19.54L13.08 19.64L13.08 21.78C13.08 22.16 12.69 22.47 12.22 22.47C11.78 22.47 11.42 22.21 11.37 21.87L11.36 21.78L11.36 19.64C11.36 19.26 11.74 18.95 12.22 18.95Z" fill-rule="evenodd"/>\n <path d="M19.53 11.37L19.53 11.58C19.53 15.74 16.15 19.11 11.99 19.11C7.83 19.11 4.46 15.74 4.46 11.58L4.46 11.43" fill="none" stroke-width="1.5" stroke-linecap="round"/>\n <path stroke="none" d="M12.05 1.52C9.3 1.52 7.07 3.58 7.07 6.12L7.07 12.07C7.07 14.61 9.3 16.67 12.05 16.67C14.79 16.67 17.02 14.61 17.02 12.07L17.02 6.12C17.02 3.58 14.79 1.52 12.05 1.52ZM8.57 12.07L8.57 6.12C8.57 5.94 8.59 5.75 8.63 5.57C8.67 5.36 8.74 5.16 8.83 4.96C8.86 4.89 8.9 4.82 8.93 4.75C9.09 4.46 9.3 4.21 9.55 3.97C9.64 3.89 9.73 3.81 9.83 3.74C10.08 3.55 10.35 3.4 10.66 3.28C10.79 3.23 10.93 3.19 11.06 3.15C11.38 3.07 11.71 3.02 12.05 3.02C12.38 3.02 12.71 3.07 13.03 3.15C13.17 3.19 13.3 3.23 13.43 3.28C13.74 3.4 14.02 3.55 14.27 3.74C14.36 3.81 14.45 3.89 14.54 3.97C14.79 4.21 15 4.46 15.16 4.75C15.2 4.82 15.23 4.89 15.26 4.96C15.35 5.16 15.42 5.36 15.46 5.57C15.5 5.75 15.52 5.94 15.52 6.12L15.52 12.07C15.52 12.26 15.5 12.44 15.46 12.63C15.42 12.83 15.35 13.04 15.26 13.24C15.23 13.31 15.2 13.38 15.16 13.45C15 13.73 14.79 13.99 14.54 14.22C14.45 14.3 14.36 14.38 14.27 14.45C14.02 14.64 13.74 14.79 13.43 14.91C13.3 14.96 13.17 15.01 13.03 15.05C12.71 15.13 12.38 15.17 12.05 15.17C11.71 15.17 11.38 15.13 11.06 15.05C10.93 15.01 10.79 14.96 10.66 14.91C10.35 14.79 10.08 14.64 9.83 14.45C9.73 14.38 9.64 14.3 9.55 14.22C9.3 13.99 9.09 13.73 8.93 13.45C8.9 13.38 8.86 13.31 8.83 13.24C8.74 13.04 8.67 12.83 8.63 12.63C8.59 12.44 8.57 12.26 8.57 12.07Z" fill-rule="evenodd"/>\n </svg>',
|
|
695
|
-
talkGrowth: function
|
|
703
|
+
talkGrowth: function(prefix) {
|
|
696
704
|
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>';
|
|
697
705
|
},
|
|
698
706
|
/** 语音广播 */ 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>',
|
|
@@ -734,169 +742,173 @@ var Icons = {
|
|
|
734
742
|
return '<span class="' + PREFIX_CLASS + "-icon " + PREFIX_CLASS + "-icon-" + type + '" ' + attrStr + ">" + svg + "</span>";
|
|
735
743
|
}
|
|
736
744
|
var IconComponents = {
|
|
737
|
-
/** 播放 */ play: function
|
|
745
|
+
/** 播放 */ play: function(attr) {
|
|
738
746
|
if (attr === void 0) attr = {};
|
|
739
747
|
return createIcon(Icons.play, 'play', attr);
|
|
740
748
|
},
|
|
741
|
-
/** 暂停 */ pause: function
|
|
749
|
+
/** 暂停 */ pause: function(attr) {
|
|
742
750
|
if (attr === void 0) attr = {};
|
|
743
751
|
return createIcon(Icons.pause, 'pause', attr);
|
|
744
752
|
},
|
|
745
|
-
volume: function
|
|
753
|
+
volume: function(attr) {
|
|
746
754
|
if (attr === void 0) attr = {};
|
|
747
755
|
return createIcon(Icons.volume(PREFIX_CLASS), 'volume', attr);
|
|
748
756
|
},
|
|
749
|
-
mobileFullscreen: function
|
|
757
|
+
mobileFullscreen: function(attr) {
|
|
750
758
|
if (attr === void 0) attr = {};
|
|
751
759
|
return createIcon(Icons.mobileFullscreen, 'mobile-fullscreen', attr);
|
|
752
760
|
},
|
|
753
|
-
exitFullscreen: function
|
|
761
|
+
exitFullscreen: function(attr) {
|
|
754
762
|
if (attr === void 0) attr = {};
|
|
755
763
|
return createIcon(Icons.exitFullscreen, 'exit-fullscreen', attr);
|
|
756
764
|
},
|
|
757
|
-
fullscreen: function
|
|
765
|
+
fullscreen: function(attr) {
|
|
758
766
|
if (attr === void 0) attr = {};
|
|
759
767
|
return createIcon(Icons.fullscreen, 'fullscreen', attr);
|
|
760
768
|
},
|
|
761
|
-
exitGlobalFullscreen: function
|
|
769
|
+
exitGlobalFullscreen: function(attr) {
|
|
762
770
|
if (attr === void 0) attr = {};
|
|
763
771
|
return createIcon(Icons.exitGlobalFullscreen, 'exit-global-fullscreen', attr);
|
|
764
772
|
},
|
|
765
|
-
globalFullscreen: function
|
|
773
|
+
globalFullscreen: function(attr) {
|
|
766
774
|
if (attr === void 0) attr = {};
|
|
767
775
|
return createIcon(Icons.globalFullscreen, 'global-fullscreen', attr);
|
|
768
776
|
},
|
|
769
|
-
capturePicture: function
|
|
777
|
+
capturePicture: function(attr) {
|
|
770
778
|
if (attr === void 0) attr = {};
|
|
771
779
|
return createIcon(Icons.capturePicture, 'capture-picture', attr);
|
|
772
780
|
},
|
|
773
|
-
ptz: function
|
|
781
|
+
ptz: function(attr) {
|
|
774
782
|
if (attr === void 0) attr = {};
|
|
775
783
|
return createIcon(Icons.ptz, 'ptz', attr);
|
|
776
784
|
},
|
|
777
|
-
record: function
|
|
785
|
+
record: function(attr) {
|
|
778
786
|
if (attr === void 0) attr = {};
|
|
779
787
|
return createIcon(Icons.record, 'record', attr);
|
|
780
788
|
},
|
|
781
|
-
recordCircle: function
|
|
789
|
+
recordCircle: function(attr) {
|
|
782
790
|
if (attr === void 0) attr = {};
|
|
783
791
|
return createIcon(Icons.recordCircle, 'record-circle', attr);
|
|
784
792
|
},
|
|
785
|
-
talk: function
|
|
793
|
+
talk: function(attr) {
|
|
786
794
|
if (attr === void 0) attr = {};
|
|
787
795
|
return createIcon(Icons.talk, 'talk', attr);
|
|
788
796
|
},
|
|
789
|
-
broadcast: function
|
|
797
|
+
broadcast: function(attr) {
|
|
790
798
|
if (attr === void 0) attr = {};
|
|
791
799
|
return createIcon(Icons.broadcast, 'broadcast', attr);
|
|
792
800
|
},
|
|
793
|
-
aiChat: function
|
|
801
|
+
aiChat: function(attr) {
|
|
794
802
|
if (attr === void 0) attr = {};
|
|
795
803
|
return createIcon(Icons.aiChat, 'aiChat', attr);
|
|
796
804
|
},
|
|
797
|
-
talkGrowth: function
|
|
805
|
+
talkGrowth: function(attr) {
|
|
798
806
|
if (attr === void 0) attr = {};
|
|
799
807
|
return createIcon(Icons.talkGrowth(PREFIX_CLASS), 'talk-growth', attr);
|
|
800
808
|
},
|
|
801
|
-
zoom: function
|
|
809
|
+
zoom: function(attr) {
|
|
802
810
|
if (attr === void 0) attr = {};
|
|
803
811
|
return createIcon(Icons.zoom, 'zoom', attr);
|
|
804
812
|
},
|
|
805
|
-
more: function
|
|
813
|
+
more: function(attr) {
|
|
806
814
|
if (attr === void 0) attr = {};
|
|
807
815
|
return createIcon(Icons.more, 'more', attr);
|
|
808
816
|
},
|
|
809
|
-
moreDot: function
|
|
817
|
+
moreDot: function(attr) {
|
|
810
818
|
if (attr === void 0) attr = {};
|
|
811
819
|
return createIcon(Icons.moreDot, 'more-dot', attr);
|
|
812
820
|
},
|
|
813
|
-
minusCircle: function
|
|
821
|
+
minusCircle: function(attr) {
|
|
814
822
|
if (attr === void 0) attr = {};
|
|
815
823
|
return createIcon(Icons.minusCircle, 'minus-circle', attr);
|
|
816
824
|
},
|
|
817
|
-
plusCircle: function
|
|
825
|
+
plusCircle: function(attr) {
|
|
818
826
|
if (attr === void 0) attr = {};
|
|
819
827
|
return createIcon(Icons.plusCircle, 'plus-circle', attr);
|
|
820
828
|
},
|
|
821
|
-
sdk: function
|
|
829
|
+
sdk: function(attr) {
|
|
822
830
|
if (attr === void 0) attr = {};
|
|
823
831
|
return createIcon(Icons.sdk, 'sdk', attr);
|
|
824
832
|
},
|
|
825
|
-
cloudRec: function
|
|
833
|
+
cloudRec: function(attr) {
|
|
826
834
|
if (attr === void 0) attr = {};
|
|
827
835
|
return createIcon(Icons.cloudRec, 'cloud-rec', attr);
|
|
828
836
|
},
|
|
829
|
-
cloudRecord: function
|
|
837
|
+
cloudRecord: function(attr) {
|
|
830
838
|
if (attr === void 0) attr = {};
|
|
831
839
|
return createIcon(Icons.cloudRecord, 'cloud-record', attr);
|
|
832
840
|
},
|
|
833
|
-
error: function
|
|
841
|
+
error: function(attr) {
|
|
834
842
|
if (attr === void 0) attr = {};
|
|
835
843
|
return createIcon(Icons.error, 'error', attr);
|
|
836
844
|
},
|
|
837
|
-
info: function
|
|
845
|
+
info: function(attr) {
|
|
838
846
|
if (attr === void 0) attr = {};
|
|
839
847
|
return createIcon(Icons.info, 'info', attr);
|
|
840
848
|
},
|
|
841
|
-
close: function
|
|
849
|
+
close: function(attr) {
|
|
842
850
|
if (attr === void 0) attr = {};
|
|
843
851
|
return createIcon(Icons.close, 'close', attr);
|
|
844
852
|
},
|
|
845
|
-
closeCircleOutLined: function
|
|
853
|
+
closeCircleOutLined: function(attr) {
|
|
846
854
|
if (attr === void 0) attr = {};
|
|
847
855
|
return createIcon(Icons.closeCircleOutLined, 'close-circle', attr);
|
|
848
856
|
},
|
|
849
|
-
warnCircleOutLined: function
|
|
857
|
+
warnCircleOutLined: function(attr) {
|
|
850
858
|
if (attr === void 0) attr = {};
|
|
851
859
|
return createIcon(Icons.warnCircleOutLined, 'warn-circle', attr);
|
|
852
860
|
},
|
|
853
|
-
infoCircleOutLined: function
|
|
861
|
+
infoCircleOutLined: function(attr) {
|
|
854
862
|
if (attr === void 0) attr = {};
|
|
855
863
|
return createIcon(Icons.infoCircleOutLined, 'info-circle', attr);
|
|
856
864
|
},
|
|
857
|
-
date: function
|
|
865
|
+
date: function(attr) {
|
|
858
866
|
if (attr === void 0) attr = {};
|
|
859
867
|
return createIcon(Icons.date, 'date', attr);
|
|
860
868
|
},
|
|
861
|
-
filter: function
|
|
869
|
+
filter: function(attr) {
|
|
862
870
|
if (attr === void 0) attr = {};
|
|
863
871
|
return createIcon(Icons.filter, 'filter', attr);
|
|
864
872
|
},
|
|
865
|
-
add: function
|
|
873
|
+
add: function(attr) {
|
|
866
874
|
if (attr === void 0) attr = {};
|
|
867
875
|
return createIcon(Icons.add, 'add', attr);
|
|
868
876
|
},
|
|
869
|
-
reduce: function
|
|
877
|
+
reduce: function(attr) {
|
|
870
878
|
if (attr === void 0) attr = {};
|
|
871
879
|
return createIcon(Icons.reduce, 'reduce', attr);
|
|
872
880
|
},
|
|
873
|
-
/** 直播 */ live: function
|
|
881
|
+
/** 直播 */ live: function(attr) {
|
|
874
882
|
if (attr === void 0) attr = {};
|
|
875
883
|
return createIcon(Icons.live, 'live', attr);
|
|
876
884
|
},
|
|
877
|
-
/** 回放 */ recDropdown: function
|
|
885
|
+
/** 回放 */ recDropdown: function(attr) {
|
|
878
886
|
if (attr === void 0) attr = {};
|
|
879
887
|
return createIcon(Icons.recDropdown, 'rec-dropdown', attr);
|
|
880
888
|
},
|
|
881
|
-
/** 录像列表 */ recList: function
|
|
889
|
+
/** 录像列表 */ recList: function(attr) {
|
|
882
890
|
if (attr === void 0) attr = {};
|
|
883
891
|
return createIcon(Icons.list, 'rec-list', attr);
|
|
884
892
|
},
|
|
885
|
-
/** 消息 */ alarmMessage: function
|
|
893
|
+
/** 消息 */ alarmMessage: function(attr) {
|
|
886
894
|
if (attr === void 0) attr = {};
|
|
887
895
|
return createIcon(Icons.alarmMessage, 'alarm-message', attr);
|
|
888
896
|
},
|
|
889
|
-
time: function
|
|
897
|
+
time: function(attr) {
|
|
890
898
|
if (attr === void 0) attr = {};
|
|
891
899
|
return createIcon(Icons.time, 'time', attr);
|
|
892
900
|
}
|
|
893
901
|
};
|
|
894
902
|
|
|
895
903
|
function _extends$w() {
|
|
896
|
-
_extends$w = Object.assign || function
|
|
904
|
+
_extends$w = Object.assign || function(target) {
|
|
897
905
|
for(var i = 1; i < arguments.length; i++){
|
|
898
906
|
var source = arguments[i];
|
|
899
|
-
for(var key in source)
|
|
907
|
+
for(var key in source){
|
|
908
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
909
|
+
target[key] = source[key];
|
|
910
|
+
}
|
|
911
|
+
}
|
|
900
912
|
}
|
|
901
913
|
return target;
|
|
902
914
|
};
|
|
@@ -1089,10 +1101,14 @@ function _create_class$8(Constructor, protoProps, staticProps) {
|
|
|
1089
1101
|
return Constructor;
|
|
1090
1102
|
}
|
|
1091
1103
|
function _extends$v() {
|
|
1092
|
-
_extends$v = Object.assign || function
|
|
1104
|
+
_extends$v = Object.assign || function(target) {
|
|
1093
1105
|
for(var i = 1; i < arguments.length; i++){
|
|
1094
1106
|
var source = arguments[i];
|
|
1095
|
-
for(var key in source)
|
|
1107
|
+
for(var key in source){
|
|
1108
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1109
|
+
target[key] = source[key];
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1096
1112
|
}
|
|
1097
1113
|
return target;
|
|
1098
1114
|
};
|
|
@@ -1211,6 +1227,14 @@ function _array_like_to_array$2(arr, len) {
|
|
|
1211
1227
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1212
1228
|
return arr2;
|
|
1213
1229
|
}
|
|
1230
|
+
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
1231
|
+
if (!o) return;
|
|
1232
|
+
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
1233
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1234
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1235
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1236
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
1237
|
+
}
|
|
1214
1238
|
function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
1215
1239
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
1216
1240
|
if (it) return (it = it.call(o)).next.bind(it);
|
|
@@ -1218,24 +1242,18 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
|
1218
1242
|
if (it) o = it;
|
|
1219
1243
|
var i = 0;
|
|
1220
1244
|
return function() {
|
|
1221
|
-
if (i >= o.length)
|
|
1222
|
-
|
|
1223
|
-
|
|
1245
|
+
if (i >= o.length) {
|
|
1246
|
+
return {
|
|
1247
|
+
done: true
|
|
1248
|
+
};
|
|
1249
|
+
}
|
|
1224
1250
|
return {
|
|
1225
1251
|
done: false,
|
|
1226
1252
|
value: o[i++]
|
|
1227
1253
|
};
|
|
1228
1254
|
};
|
|
1229
1255
|
}
|
|
1230
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance
|
|
1231
|
-
}
|
|
1232
|
-
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
1233
|
-
if (!o) return;
|
|
1234
|
-
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
1235
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1236
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1237
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1238
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
1256
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1239
1257
|
}
|
|
1240
1258
|
/**
|
|
1241
1259
|
* 工具类
|
|
@@ -1262,7 +1280,7 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
1262
1280
|
*/ // prettier-ignore
|
|
1263
1281
|
Utils.orientationEventListener = function orientationEventListener(change) {
|
|
1264
1282
|
var _orientationTimer = null;
|
|
1265
|
-
var getOrientation = function
|
|
1283
|
+
var getOrientation = function() {
|
|
1266
1284
|
var _screen, _window;
|
|
1267
1285
|
// 现代浏览器方案
|
|
1268
1286
|
if ((_screen = screen) == null ? void 0 : _screen.orientation) {
|
|
@@ -1299,7 +1317,7 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
1299
1317
|
};
|
|
1300
1318
|
var orientation = getOrientation();
|
|
1301
1319
|
// 监听变化(兼容写法)
|
|
1302
|
-
var onOrientationChange = function
|
|
1320
|
+
var onOrientationChange = function() {
|
|
1303
1321
|
var newOrientation = getOrientation == null ? void 0 : getOrientation();
|
|
1304
1322
|
// console.log("onOrientationChange", newOrientation, orientation)
|
|
1305
1323
|
// prettier-ignore
|
|
@@ -1308,7 +1326,7 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
1308
1326
|
orientation = newOrientation;
|
|
1309
1327
|
}
|
|
1310
1328
|
};
|
|
1311
|
-
var onResize = function
|
|
1329
|
+
var onResize = function() {
|
|
1312
1330
|
// 防抖处理
|
|
1313
1331
|
if (_orientationTimer) clearTimeout(_orientationTimer);
|
|
1314
1332
|
if (onOrientationChange) _orientationTimer = setTimeout(onOrientationChange, 200);
|
|
@@ -1363,7 +1381,7 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
1363
1381
|
*/ // prettier-ignore
|
|
1364
1382
|
Utils.resizeObserver = function resizeObserver(node, callback) {
|
|
1365
1383
|
// prettier-ignore
|
|
1366
|
-
var observerFn = function
|
|
1384
|
+
var observerFn = function(entries, observer) {
|
|
1367
1385
|
for(var _iterator = _create_for_of_iterator_helper_loose$2(entries), _step; !(_step = _iterator()).done;){
|
|
1368
1386
|
var entry = _step.value;
|
|
1369
1387
|
if (entry.target === node) {
|
|
@@ -1427,9 +1445,9 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1427
1445
|
showPlus: false,
|
|
1428
1446
|
showMinus: false,
|
|
1429
1447
|
isRotated: false,
|
|
1430
|
-
onChange: function
|
|
1448
|
+
onChange: function() {
|
|
1431
1449
|
/* no-op */ },
|
|
1432
|
-
renderText: function
|
|
1450
|
+
renderText: function(_, percent) {
|
|
1433
1451
|
return (percent * 100).toFixed(0);
|
|
1434
1452
|
}
|
|
1435
1453
|
};
|
|
@@ -1452,7 +1470,6 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1452
1470
|
* })
|
|
1453
1471
|
*/ var Progress = /*#__PURE__*/ function() {
|
|
1454
1472
|
function Progress(options) {
|
|
1455
|
-
var _this_options_defaultValue;
|
|
1456
1473
|
var _this_options_range;
|
|
1457
1474
|
this._percent = 0;
|
|
1458
1475
|
this._value = 0;
|
|
@@ -1474,6 +1491,7 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1474
1491
|
this.$container = options.container;
|
|
1475
1492
|
this._render();
|
|
1476
1493
|
this._eventListeners();
|
|
1494
|
+
var _this_options_defaultValue;
|
|
1477
1495
|
var value = (_this_options_defaultValue = this.options.defaultValue) != null ? _this_options_defaultValue : this.options.range[0]; // 设置默认值
|
|
1478
1496
|
this._value = +value.toFixed(2); // 保留两位小数
|
|
1479
1497
|
// prettier-ignore
|
|
@@ -1546,8 +1564,8 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1546
1564
|
this._percent = +((value - this.options.range[0]) / (this.options.range[1] - this.options.range[0])).toFixed(2);
|
|
1547
1565
|
};
|
|
1548
1566
|
_proto._render = function _render() {
|
|
1549
|
-
var _this_options_className;
|
|
1550
1567
|
this.$content = document.createElement('div');
|
|
1568
|
+
var _this_options_className;
|
|
1551
1569
|
this.$content.className = PREFIX_CLASS + "-progress " + ((_this_options_className = this.options.className) != null ? _this_options_className : '');
|
|
1552
1570
|
this.$content.innerHTML = (this.options.showPercent ? '<div class="' + PREFIX_CLASS + '-progress-text">' + (this.options.renderText == null ? void 0 : this.options.renderText.call(this.options, this._value, this._percent, this.options.range)) + "</div>" : '') + "\n " + (this.options.showPlus ? '<div class="' + PREFIX_CLASS + '-progress-plus">\n ' + IconComponents.plusCircle() + "\n </div>" : '') + '\n <div class="' + PREFIX_CLASS + '-progress-slider">\n <div class="' + PREFIX_CLASS + '-progress-slider-fill"></div>\n <div class="' + PREFIX_CLASS + '-progress-slider-handle" style="top: 100%"></div>\n </div>\n ' + (this.options.showMinus ? '<div class="' + PREFIX_CLASS + '-progress-minus">\n ' + IconComponents.minusCircle() + "\n </div>" : '');
|
|
1553
1571
|
this.$container.appendChild(this.$content);
|
|
@@ -1740,10 +1758,14 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
1740
1758
|
return Constructor;
|
|
1741
1759
|
}
|
|
1742
1760
|
function _extends$u() {
|
|
1743
|
-
_extends$u = Object.assign || function
|
|
1761
|
+
_extends$u = Object.assign || function(target) {
|
|
1744
1762
|
for(var i = 1; i < arguments.length; i++){
|
|
1745
1763
|
var source = arguments[i];
|
|
1746
|
-
for(var key in source)
|
|
1764
|
+
for(var key in source){
|
|
1765
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1766
|
+
target[key] = source[key];
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1747
1769
|
}
|
|
1748
1770
|
return target;
|
|
1749
1771
|
};
|
|
@@ -1774,8 +1796,8 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1774
1796
|
muted: false,
|
|
1775
1797
|
open: false,
|
|
1776
1798
|
trigger: 'hover',
|
|
1777
|
-
onOpenChange: function
|
|
1778
|
-
onChange: function
|
|
1799
|
+
onOpenChange: function() {},
|
|
1800
|
+
onChange: function() {}
|
|
1779
1801
|
};
|
|
1780
1802
|
/**
|
|
1781
1803
|
* 音量调节控件
|
|
@@ -1803,7 +1825,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1803
1825
|
if (!(Utils.isMobile || _this._options.PLAY_TYPE === 'ezopen' || _this._options.PLAY_TYPE === 'ezhls')) {
|
|
1804
1826
|
var _this__options_props4, _this__options_props5;
|
|
1805
1827
|
_this.picker = new Picker(_this.$container, {
|
|
1806
|
-
getPopupContainer: function
|
|
1828
|
+
getPopupContainer: function() {
|
|
1807
1829
|
return _this.$container;
|
|
1808
1830
|
},
|
|
1809
1831
|
trigger: _this._options.trigger,
|
|
@@ -1814,7 +1836,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1814
1836
|
-10
|
|
1815
1837
|
],
|
|
1816
1838
|
placement: 'top',
|
|
1817
|
-
onOpenChange: function
|
|
1839
|
+
onOpenChange: function(open) {
|
|
1818
1840
|
_this._options.onOpenChange == null ? void 0 : _this._options.onOpenChange.call(_this._options, open, _this._muted ? _this._lastVolume : _this.volume, _this._muted);
|
|
1819
1841
|
// prettier-ignore
|
|
1820
1842
|
_this.emit(EVENTS.control.volumePanelOpenChange, open, _this._lastVolume, _this._muted);
|
|
@@ -1831,10 +1853,10 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1831
1853
|
showPercent: true,
|
|
1832
1854
|
className: "" + PREFIX_CLASS + "-volume-progress",
|
|
1833
1855
|
// 为了解决点击进度调取消静音
|
|
1834
|
-
onProgressClick: function
|
|
1856
|
+
onProgressClick: function() {
|
|
1835
1857
|
_this.muted = false;
|
|
1836
1858
|
},
|
|
1837
|
-
onChange: function
|
|
1859
|
+
onChange: function(value) {
|
|
1838
1860
|
if (value !== _this._volume) _this.volume = value;
|
|
1839
1861
|
}
|
|
1840
1862
|
});
|
|
@@ -2011,8 +2033,11 @@ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
2011
2033
|
reject(error);
|
|
2012
2034
|
return;
|
|
2013
2035
|
}
|
|
2014
|
-
if (info.done)
|
|
2015
|
-
|
|
2036
|
+
if (info.done) {
|
|
2037
|
+
resolve(value);
|
|
2038
|
+
} else {
|
|
2039
|
+
Promise.resolve(value).then(_next, _throw);
|
|
2040
|
+
}
|
|
2016
2041
|
}
|
|
2017
2042
|
function _async_to_generator$7(fn) {
|
|
2018
2043
|
return function() {
|
|
@@ -2038,17 +2063,9 @@ function _ts_generator$7(thisArg, body) {
|
|
|
2038
2063
|
},
|
|
2039
2064
|
trys: [],
|
|
2040
2065
|
ops: []
|
|
2041
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
2042
|
-
return
|
|
2043
|
-
|
|
2044
|
-
}), d(g, "throw", {
|
|
2045
|
-
value: verb(1)
|
|
2046
|
-
}), d(g, "return", {
|
|
2047
|
-
value: verb(2)
|
|
2048
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
2049
|
-
value: function() {
|
|
2050
|
-
return this;
|
|
2051
|
-
}
|
|
2066
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
2067
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
2068
|
+
return this;
|
|
2052
2069
|
}), g;
|
|
2053
2070
|
function verb(n) {
|
|
2054
2071
|
return function(v) {
|
|
@@ -2452,10 +2469,14 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2452
2469
|
}();
|
|
2453
2470
|
|
|
2454
2471
|
function _extends$t() {
|
|
2455
|
-
_extends$t = Object.assign || function
|
|
2472
|
+
_extends$t = Object.assign || function(target) {
|
|
2456
2473
|
for(var i = 1; i < arguments.length; i++){
|
|
2457
2474
|
var source = arguments[i];
|
|
2458
|
-
for(var key in source)
|
|
2475
|
+
for(var key in source){
|
|
2476
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2477
|
+
target[key] = source[key];
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2459
2480
|
}
|
|
2460
2481
|
return target;
|
|
2461
2482
|
};
|
|
@@ -2555,10 +2576,14 @@ function _set_prototype_of$t(o, p) {
|
|
|
2555
2576
|
}(Control);
|
|
2556
2577
|
|
|
2557
2578
|
function _extends$s() {
|
|
2558
|
-
_extends$s = Object.assign || function
|
|
2579
|
+
_extends$s = Object.assign || function(target) {
|
|
2559
2580
|
for(var i = 1; i < arguments.length; i++){
|
|
2560
2581
|
var source = arguments[i];
|
|
2561
|
-
for(var key in source)
|
|
2582
|
+
for(var key in source){
|
|
2583
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2584
|
+
target[key] = source[key];
|
|
2585
|
+
}
|
|
2586
|
+
}
|
|
2562
2587
|
}
|
|
2563
2588
|
return target;
|
|
2564
2589
|
};
|
|
@@ -3317,6 +3342,12 @@ var en = {
|
|
|
3317
3342
|
defaultActive: 0,
|
|
3318
3343
|
isrender: 1
|
|
3319
3344
|
},
|
|
3345
|
+
{
|
|
3346
|
+
iconId: 'recordvideo',
|
|
3347
|
+
part: 'left',
|
|
3348
|
+
defaultActive: 0,
|
|
3349
|
+
isrender: 1
|
|
3350
|
+
},
|
|
3320
3351
|
{
|
|
3321
3352
|
iconId: 'zoom',
|
|
3322
3353
|
part: 'left',
|
|
@@ -3364,6 +3395,12 @@ var en = {
|
|
|
3364
3395
|
defaultActive: 0,
|
|
3365
3396
|
isrender: 1
|
|
3366
3397
|
},
|
|
3398
|
+
{
|
|
3399
|
+
iconId: 'recordvideo',
|
|
3400
|
+
part: 'left',
|
|
3401
|
+
defaultActive: 0,
|
|
3402
|
+
isrender: 1
|
|
3403
|
+
},
|
|
3367
3404
|
{
|
|
3368
3405
|
iconId: 'zoom',
|
|
3369
3406
|
part: 'left',
|
|
@@ -4072,10 +4109,14 @@ function _set_prototype_of$r(o, p) {
|
|
|
4072
4109
|
}(EventEmitter);
|
|
4073
4110
|
|
|
4074
4111
|
function _extends$r() {
|
|
4075
|
-
_extends$r = Object.assign || function
|
|
4112
|
+
_extends$r = Object.assign || function(target) {
|
|
4076
4113
|
for(var i = 1; i < arguments.length; i++){
|
|
4077
4114
|
var source = arguments[i];
|
|
4078
|
-
for(var key in source)
|
|
4115
|
+
for(var key in source){
|
|
4116
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
4117
|
+
target[key] = source[key];
|
|
4118
|
+
}
|
|
4119
|
+
}
|
|
4079
4120
|
}
|
|
4080
4121
|
return target;
|
|
4081
4122
|
};
|
|
@@ -4127,7 +4168,7 @@ function _set_prototype_of$q(o, p) {
|
|
|
4127
4168
|
title: (_this_locale1 = this.locale) == null ? void 0 : _this_locale1.BTN_MORE
|
|
4128
4169
|
});
|
|
4129
4170
|
this.picker = new Picker(this.$container, {
|
|
4130
|
-
getPopupContainer: function
|
|
4171
|
+
getPopupContainer: function() {
|
|
4131
4172
|
return _this.$container;
|
|
4132
4173
|
},
|
|
4133
4174
|
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
@@ -4866,10 +4907,14 @@ function _create_class$5(Constructor, protoProps, staticProps) {
|
|
|
4866
4907
|
return Constructor;
|
|
4867
4908
|
}
|
|
4868
4909
|
function _extends$q() {
|
|
4869
|
-
_extends$q = Object.assign || function
|
|
4910
|
+
_extends$q = Object.assign || function(target) {
|
|
4870
4911
|
for(var i = 1; i < arguments.length; i++){
|
|
4871
4912
|
var source = arguments[i];
|
|
4872
|
-
for(var key in source)
|
|
4913
|
+
for(var key in source){
|
|
4914
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
4915
|
+
target[key] = source[key];
|
|
4916
|
+
}
|
|
4917
|
+
}
|
|
4873
4918
|
}
|
|
4874
4919
|
return target;
|
|
4875
4920
|
};
|
|
@@ -4948,14 +4993,14 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4948
4993
|
showPlus: true,
|
|
4949
4994
|
showPercent: true,
|
|
4950
4995
|
isRotated: this._isRotated,
|
|
4951
|
-
onChange: function
|
|
4996
|
+
onChange: function(value, percent, range) {
|
|
4952
4997
|
if (value !== _this._value) {
|
|
4953
4998
|
_this._value = value;
|
|
4954
4999
|
_this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, value, percent, range);
|
|
4955
5000
|
_this.emit(EVENTS.control.zoomChange, value, percent, range);
|
|
4956
5001
|
}
|
|
4957
5002
|
},
|
|
4958
|
-
renderText: function
|
|
5003
|
+
renderText: function(value) {
|
|
4959
5004
|
return "" + value + "X";
|
|
4960
5005
|
}
|
|
4961
5006
|
});
|
|
@@ -5035,10 +5080,14 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
5035
5080
|
}(Control);
|
|
5036
5081
|
|
|
5037
5082
|
function _extends$p() {
|
|
5038
|
-
_extends$p = Object.assign || function
|
|
5083
|
+
_extends$p = Object.assign || function(target) {
|
|
5039
5084
|
for(var i = 1; i < arguments.length; i++){
|
|
5040
5085
|
var source = arguments[i];
|
|
5041
|
-
for(var key in source)
|
|
5086
|
+
for(var key in source){
|
|
5087
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5088
|
+
target[key] = source[key];
|
|
5089
|
+
}
|
|
5090
|
+
}
|
|
5042
5091
|
}
|
|
5043
5092
|
return target;
|
|
5044
5093
|
};
|
|
@@ -5047,14 +5096,14 @@ function _extends$p() {
|
|
|
5047
5096
|
function __zoom(theme, container, options) {
|
|
5048
5097
|
theme.zoomUtil = new Zoom$1(container, _extends$p({}, options || {}, {
|
|
5049
5098
|
min: 1,
|
|
5050
|
-
onChange: function
|
|
5099
|
+
onChange: function(zoom, reset) {
|
|
5051
5100
|
if (zoom !== theme._zoom) {
|
|
5052
5101
|
var _options_onChange;
|
|
5053
5102
|
theme.zoom = zoom;
|
|
5054
5103
|
options == null ? void 0 : (_options_onChange = options.onChange) == null ? void 0 : _options_onChange.call(options, zoom, reset);
|
|
5055
5104
|
}
|
|
5056
5105
|
},
|
|
5057
|
-
onTranslateChange: function
|
|
5106
|
+
onTranslateChange: function(pos) {
|
|
5058
5107
|
var _options_onTranslateChange;
|
|
5059
5108
|
theme.emit(EVENTS.zoomTranslateChange, pos);
|
|
5060
5109
|
options == null ? void 0 : (_options_onTranslateChange = options.onTranslateChange) == null ? void 0 : _options_onTranslateChange.call(options, pos);
|
|
@@ -5071,8 +5120,11 @@ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5071
5120
|
reject(error);
|
|
5072
5121
|
return;
|
|
5073
5122
|
}
|
|
5074
|
-
if (info.done)
|
|
5075
|
-
|
|
5123
|
+
if (info.done) {
|
|
5124
|
+
resolve(value);
|
|
5125
|
+
} else {
|
|
5126
|
+
Promise.resolve(value).then(_next, _throw);
|
|
5127
|
+
}
|
|
5076
5128
|
}
|
|
5077
5129
|
function _async_to_generator$6(fn) {
|
|
5078
5130
|
return function() {
|
|
@@ -5098,17 +5150,9 @@ function _ts_generator$6(thisArg, body) {
|
|
|
5098
5150
|
},
|
|
5099
5151
|
trys: [],
|
|
5100
5152
|
ops: []
|
|
5101
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
5102
|
-
return
|
|
5103
|
-
|
|
5104
|
-
}), d(g, "throw", {
|
|
5105
|
-
value: verb(1)
|
|
5106
|
-
}), d(g, "return", {
|
|
5107
|
-
value: verb(2)
|
|
5108
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
5109
|
-
value: function() {
|
|
5110
|
-
return this;
|
|
5111
|
-
}
|
|
5153
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
5154
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
5155
|
+
return this;
|
|
5112
5156
|
}), g;
|
|
5113
5157
|
function verb(n) {
|
|
5114
5158
|
return function(v) {
|
|
@@ -5264,8 +5308,11 @@ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5264
5308
|
reject(error);
|
|
5265
5309
|
return;
|
|
5266
5310
|
}
|
|
5267
|
-
if (info.done)
|
|
5268
|
-
|
|
5311
|
+
if (info.done) {
|
|
5312
|
+
resolve(value);
|
|
5313
|
+
} else {
|
|
5314
|
+
Promise.resolve(value).then(_next, _throw);
|
|
5315
|
+
}
|
|
5269
5316
|
}
|
|
5270
5317
|
function _async_to_generator$5(fn) {
|
|
5271
5318
|
return function() {
|
|
@@ -5283,10 +5330,14 @@ function _async_to_generator$5(fn) {
|
|
|
5283
5330
|
};
|
|
5284
5331
|
}
|
|
5285
5332
|
function _extends$o() {
|
|
5286
|
-
_extends$o = Object.assign || function
|
|
5333
|
+
_extends$o = Object.assign || function(target) {
|
|
5287
5334
|
for(var i = 1; i < arguments.length; i++){
|
|
5288
5335
|
var source = arguments[i];
|
|
5289
|
-
for(var key in source)
|
|
5336
|
+
for(var key in source){
|
|
5337
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5338
|
+
target[key] = source[key];
|
|
5339
|
+
}
|
|
5340
|
+
}
|
|
5290
5341
|
}
|
|
5291
5342
|
return target;
|
|
5292
5343
|
};
|
|
@@ -5301,17 +5352,9 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5301
5352
|
},
|
|
5302
5353
|
trys: [],
|
|
5303
5354
|
ops: []
|
|
5304
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
5305
|
-
return
|
|
5306
|
-
|
|
5307
|
-
}), d(g, "throw", {
|
|
5308
|
-
value: verb(1)
|
|
5309
|
-
}), d(g, "return", {
|
|
5310
|
-
value: verb(2)
|
|
5311
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
5312
|
-
value: function() {
|
|
5313
|
-
return this;
|
|
5314
|
-
}
|
|
5355
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
5356
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
5357
|
+
return this;
|
|
5315
5358
|
}), g;
|
|
5316
5359
|
function verb(n) {
|
|
5317
5360
|
return function(v) {
|
|
@@ -5404,10 +5447,10 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5404
5447
|
* @param {IThemeData} themeData 主题数据
|
|
5405
5448
|
* @returns
|
|
5406
5449
|
*/ function _filterControls(themeData) {
|
|
5407
|
-
var _ref;
|
|
5408
5450
|
var _themeData_header, _themeData_footer;
|
|
5409
5451
|
var data = {};
|
|
5410
|
-
|
|
5452
|
+
var _themeData_autoFocus;
|
|
5453
|
+
data.autoFocus = (_themeData_autoFocus = themeData == null ? void 0 : themeData.autoFocus) != null ? _themeData_autoFocus : 3; // 3s
|
|
5411
5454
|
data.poster = (themeData == null ? void 0 : themeData.poster) || ''; //
|
|
5412
5455
|
var deviceControls = [];
|
|
5413
5456
|
var recControls = [];
|
|
@@ -5712,10 +5755,14 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
|
|
|
5712
5755
|
}();
|
|
5713
5756
|
|
|
5714
5757
|
function _extends$n() {
|
|
5715
|
-
_extends$n = Object.assign || function
|
|
5758
|
+
_extends$n = Object.assign || function(target) {
|
|
5716
5759
|
for(var i = 1; i < arguments.length; i++){
|
|
5717
5760
|
var source = arguments[i];
|
|
5718
|
-
for(var key in source)
|
|
5761
|
+
for(var key in source){
|
|
5762
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5763
|
+
target[key] = source[key];
|
|
5764
|
+
}
|
|
5765
|
+
}
|
|
5719
5766
|
}
|
|
5720
5767
|
return target;
|
|
5721
5768
|
};
|
|
@@ -5753,10 +5800,14 @@ var Footer = /*#__PURE__*/ function(Component) {
|
|
|
5753
5800
|
}(Component);
|
|
5754
5801
|
|
|
5755
5802
|
function _extends$m() {
|
|
5756
|
-
_extends$m = Object.assign || function
|
|
5803
|
+
_extends$m = Object.assign || function(target) {
|
|
5757
5804
|
for(var i = 1; i < arguments.length; i++){
|
|
5758
5805
|
var source = arguments[i];
|
|
5759
|
-
for(var key in source)
|
|
5806
|
+
for(var key in source){
|
|
5807
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5808
|
+
target[key] = source[key];
|
|
5809
|
+
}
|
|
5810
|
+
}
|
|
5760
5811
|
}
|
|
5761
5812
|
return target;
|
|
5762
5813
|
};
|
|
@@ -5808,13 +5859,13 @@ function interactiveHF($container, second, callback) {
|
|
|
5808
5859
|
var _alwaysDisplay = false;
|
|
5809
5860
|
var _$header = $container.querySelector("." + PREFIX_CLASS + "-header");
|
|
5810
5861
|
var _$footer = $container.querySelector("." + PREFIX_CLASS + "-footer");
|
|
5811
|
-
var _clearTimeout = function
|
|
5862
|
+
var _clearTimeout = function() {
|
|
5812
5863
|
if (_timer) {
|
|
5813
5864
|
clearTimeout(_timer);
|
|
5814
5865
|
_timer = null;
|
|
5815
5866
|
}
|
|
5816
5867
|
};
|
|
5817
|
-
var _show = function
|
|
5868
|
+
var _show = function() {
|
|
5818
5869
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5819
5870
|
_$header == null ? void 0 : _$header.classList.remove("" + PREFIX_CLASS + "-hide-transition");
|
|
5820
5871
|
_$footer == null ? void 0 : _$footer.classList.remove("" + PREFIX_CLASS + "-hide-transition");
|
|
@@ -5824,7 +5875,7 @@ function interactiveHF($container, second, callback) {
|
|
|
5824
5875
|
}
|
|
5825
5876
|
_open = true;
|
|
5826
5877
|
};
|
|
5827
|
-
var _hide = function
|
|
5878
|
+
var _hide = function() {
|
|
5828
5879
|
if (_alwaysDisplay) {
|
|
5829
5880
|
return;
|
|
5830
5881
|
}
|
|
@@ -5839,27 +5890,27 @@ function interactiveHF($container, second, callback) {
|
|
|
5839
5890
|
}
|
|
5840
5891
|
_open = false;
|
|
5841
5892
|
};
|
|
5842
|
-
var _setTimeoutShow = function
|
|
5893
|
+
var _setTimeoutShow = function() {
|
|
5843
5894
|
_show == null ? void 0 : _show();
|
|
5844
5895
|
_timer = setTimeout(function() {
|
|
5845
5896
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5846
5897
|
_hide == null ? void 0 : _hide();
|
|
5847
5898
|
}, second);
|
|
5848
5899
|
};
|
|
5849
|
-
var _headerFooterMousemove = function
|
|
5900
|
+
var _headerFooterMousemove = function(e) {
|
|
5850
5901
|
var // 鼠标在header footer 移动, 不允许消失及不要冒泡
|
|
5851
5902
|
_e_stopPropagation;
|
|
5852
5903
|
e == null ? void 0 : (_e_stopPropagation = e.stopPropagation) == null ? void 0 : _e_stopPropagation.call(e);
|
|
5853
5904
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5854
5905
|
};
|
|
5855
|
-
var _touchStart = function
|
|
5906
|
+
var _touchStart = function() {
|
|
5856
5907
|
if (_open) {
|
|
5857
5908
|
_hide == null ? void 0 : _hide();
|
|
5858
5909
|
} else {
|
|
5859
5910
|
_setTimeoutShow == null ? void 0 : _setTimeoutShow();
|
|
5860
5911
|
}
|
|
5861
5912
|
};
|
|
5862
|
-
var _headerFooterTouchStart = function
|
|
5913
|
+
var _headerFooterTouchStart = function(e) {
|
|
5863
5914
|
var // 移动端特殊处理, 点击 header footer不允许消失及不要冒泡
|
|
5864
5915
|
_e_stopPropagation;
|
|
5865
5916
|
e == null ? void 0 : (_e_stopPropagation = e.stopPropagation) == null ? void 0 : _e_stopPropagation.call(e);
|
|
@@ -5896,7 +5947,7 @@ function interactiveHF($container, second, callback) {
|
|
|
5896
5947
|
}
|
|
5897
5948
|
/**
|
|
5898
5949
|
* 销毁
|
|
5899
|
-
*/ var cleanup = function
|
|
5950
|
+
*/ var cleanup = function() {
|
|
5900
5951
|
if ($container) {
|
|
5901
5952
|
if (Utils.isMobile && _touchStart) {
|
|
5902
5953
|
var eventName = "click";
|
|
@@ -5940,11 +5991,11 @@ function interactiveHF($container, second, callback) {
|
|
|
5940
5991
|
};
|
|
5941
5992
|
return {
|
|
5942
5993
|
cleanup: cleanup,
|
|
5943
|
-
clearTimeout: function
|
|
5994
|
+
clearTimeout: function() {
|
|
5944
5995
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5945
5996
|
_alwaysDisplay = true;
|
|
5946
5997
|
},
|
|
5947
|
-
setTimeoutShow: function
|
|
5998
|
+
setTimeoutShow: function() {
|
|
5948
5999
|
_setTimeoutShow == null ? void 0 : _setTimeoutShow();
|
|
5949
6000
|
_alwaysDisplay = false;
|
|
5950
6001
|
},
|
|
@@ -5953,10 +6004,14 @@ function interactiveHF($container, second, callback) {
|
|
|
5953
6004
|
}
|
|
5954
6005
|
|
|
5955
6006
|
function _extends$l() {
|
|
5956
|
-
_extends$l = Object.assign || function
|
|
6007
|
+
_extends$l = Object.assign || function(target) {
|
|
5957
6008
|
for(var i = 1; i < arguments.length; i++){
|
|
5958
6009
|
var source = arguments[i];
|
|
5959
|
-
for(var key in source)
|
|
6010
|
+
for(var key in source){
|
|
6011
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6012
|
+
target[key] = source[key];
|
|
6013
|
+
}
|
|
6014
|
+
}
|
|
5960
6015
|
}
|
|
5961
6016
|
return target;
|
|
5962
6017
|
};
|
|
@@ -6021,10 +6076,14 @@ function _set_prototype_of$m(o, p) {
|
|
|
6021
6076
|
}(Fullscreen);
|
|
6022
6077
|
|
|
6023
6078
|
function _extends$k() {
|
|
6024
|
-
_extends$k = Object.assign || function
|
|
6079
|
+
_extends$k = Object.assign || function(target) {
|
|
6025
6080
|
for(var i = 1; i < arguments.length; i++){
|
|
6026
6081
|
var source = arguments[i];
|
|
6027
|
-
for(var key in source)
|
|
6082
|
+
for(var key in source){
|
|
6083
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6084
|
+
target[key] = source[key];
|
|
6085
|
+
}
|
|
6086
|
+
}
|
|
6028
6087
|
}
|
|
6029
6088
|
return target;
|
|
6030
6089
|
};
|
|
@@ -6087,8 +6146,8 @@ function _set_prototype_of$l(o, p) {
|
|
|
6087
6146
|
* 点击 Control 会触发
|
|
6088
6147
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
6089
6148
|
var _this = this;
|
|
6090
|
-
var _this_options_type, _this_options_cloudRecUpload;
|
|
6091
6149
|
this.active = true;
|
|
6150
|
+
var _this_options_type, _this_options_cloudRecUpload;
|
|
6092
6151
|
this.emit(EVENTS.control.capturePicture, {
|
|
6093
6152
|
type: (_this_options_type = this.options.type) != null ? _this_options_type : 'download',
|
|
6094
6153
|
quality: this.options.quality || 0.9,
|
|
@@ -6124,10 +6183,14 @@ function _create_class$4(Constructor, protoProps, staticProps) {
|
|
|
6124
6183
|
return Constructor;
|
|
6125
6184
|
}
|
|
6126
6185
|
function _extends$j() {
|
|
6127
|
-
_extends$j = Object.assign || function
|
|
6186
|
+
_extends$j = Object.assign || function(target) {
|
|
6128
6187
|
for(var i = 1; i < arguments.length; i++){
|
|
6129
6188
|
var source = arguments[i];
|
|
6130
|
-
for(var key in source)
|
|
6189
|
+
for(var key in source){
|
|
6190
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6191
|
+
target[key] = source[key];
|
|
6192
|
+
}
|
|
6193
|
+
}
|
|
6131
6194
|
}
|
|
6132
6195
|
return target;
|
|
6133
6196
|
};
|
|
@@ -6296,7 +6359,7 @@ function formatTime(seconds, format) {
|
|
|
6296
6359
|
var hours = Math.floor(seconds / 3600);
|
|
6297
6360
|
var minutes = Math.floor(seconds % 3600 / 60);
|
|
6298
6361
|
var secs = seconds % 60;
|
|
6299
|
-
var pad = function
|
|
6362
|
+
var pad = function(num) {
|
|
6300
6363
|
return num.toString().padStart(2, '0');
|
|
6301
6364
|
};
|
|
6302
6365
|
return format.replace('HH', pad(hours)).replace('MM', pad(minutes)).replace('SS', pad(secs));
|
|
@@ -6316,10 +6379,14 @@ function _create_class$3(Constructor, protoProps, staticProps) {
|
|
|
6316
6379
|
return Constructor;
|
|
6317
6380
|
}
|
|
6318
6381
|
function _extends$i() {
|
|
6319
|
-
_extends$i = Object.assign || function
|
|
6382
|
+
_extends$i = Object.assign || function(target) {
|
|
6320
6383
|
for(var i = 1; i < arguments.length; i++){
|
|
6321
6384
|
var source = arguments[i];
|
|
6322
|
-
for(var key in source)
|
|
6385
|
+
for(var key in source){
|
|
6386
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6387
|
+
target[key] = source[key];
|
|
6388
|
+
}
|
|
6389
|
+
}
|
|
6323
6390
|
}
|
|
6324
6391
|
return target;
|
|
6325
6392
|
};
|
|
@@ -6467,8 +6534,11 @@ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6467
6534
|
reject(error);
|
|
6468
6535
|
return;
|
|
6469
6536
|
}
|
|
6470
|
-
if (info.done)
|
|
6471
|
-
|
|
6537
|
+
if (info.done) {
|
|
6538
|
+
resolve(value);
|
|
6539
|
+
} else {
|
|
6540
|
+
Promise.resolve(value).then(_next, _throw);
|
|
6541
|
+
}
|
|
6472
6542
|
}
|
|
6473
6543
|
function _async_to_generator$4(fn) {
|
|
6474
6544
|
return function() {
|
|
@@ -6499,10 +6569,14 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
|
6499
6569
|
return Constructor;
|
|
6500
6570
|
}
|
|
6501
6571
|
function _extends$h() {
|
|
6502
|
-
_extends$h = Object.assign || function
|
|
6572
|
+
_extends$h = Object.assign || function(target) {
|
|
6503
6573
|
for(var i = 1; i < arguments.length; i++){
|
|
6504
6574
|
var source = arguments[i];
|
|
6505
|
-
for(var key in source)
|
|
6575
|
+
for(var key in source){
|
|
6576
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6577
|
+
target[key] = source[key];
|
|
6578
|
+
}
|
|
6579
|
+
}
|
|
6506
6580
|
}
|
|
6507
6581
|
return target;
|
|
6508
6582
|
};
|
|
@@ -6537,17 +6611,9 @@ function _ts_generator$4(thisArg, body) {
|
|
|
6537
6611
|
},
|
|
6538
6612
|
trys: [],
|
|
6539
6613
|
ops: []
|
|
6540
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
6541
|
-
return
|
|
6542
|
-
|
|
6543
|
-
}), d(g, "throw", {
|
|
6544
|
-
value: verb(1)
|
|
6545
|
-
}), d(g, "return", {
|
|
6546
|
-
value: verb(2)
|
|
6547
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
6548
|
-
value: function() {
|
|
6549
|
-
return this;
|
|
6550
|
-
}
|
|
6614
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
6615
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
6616
|
+
return this;
|
|
6551
6617
|
}), g;
|
|
6552
6618
|
function verb(n) {
|
|
6553
6619
|
return function(v) {
|
|
@@ -6688,7 +6754,7 @@ function _ts_generator$4(thisArg, body) {
|
|
|
6688
6754
|
/**
|
|
6689
6755
|
* 点击 Control 会触发
|
|
6690
6756
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
6691
|
-
var _this = this, _superprop_get__onControlClick = function
|
|
6757
|
+
var _this = this, _superprop_get__onControlClick = function() {
|
|
6692
6758
|
return Control.prototype._onControlClick;
|
|
6693
6759
|
};
|
|
6694
6760
|
return _async_to_generator$4(function() {
|
|
@@ -6751,8 +6817,11 @@ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6751
6817
|
reject(error);
|
|
6752
6818
|
return;
|
|
6753
6819
|
}
|
|
6754
|
-
if (info.done)
|
|
6755
|
-
|
|
6820
|
+
if (info.done) {
|
|
6821
|
+
resolve(value);
|
|
6822
|
+
} else {
|
|
6823
|
+
Promise.resolve(value).then(_next, _throw);
|
|
6824
|
+
}
|
|
6756
6825
|
}
|
|
6757
6826
|
function _async_to_generator$3(fn) {
|
|
6758
6827
|
return function() {
|
|
@@ -6770,10 +6839,14 @@ function _async_to_generator$3(fn) {
|
|
|
6770
6839
|
};
|
|
6771
6840
|
}
|
|
6772
6841
|
function _extends$g() {
|
|
6773
|
-
_extends$g = Object.assign || function
|
|
6842
|
+
_extends$g = Object.assign || function(target) {
|
|
6774
6843
|
for(var i = 1; i < arguments.length; i++){
|
|
6775
6844
|
var source = arguments[i];
|
|
6776
|
-
for(var key in source)
|
|
6845
|
+
for(var key in source){
|
|
6846
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6847
|
+
target[key] = source[key];
|
|
6848
|
+
}
|
|
6849
|
+
}
|
|
6777
6850
|
}
|
|
6778
6851
|
return target;
|
|
6779
6852
|
};
|
|
@@ -6808,17 +6881,9 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6808
6881
|
},
|
|
6809
6882
|
trys: [],
|
|
6810
6883
|
ops: []
|
|
6811
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
6812
|
-
return
|
|
6813
|
-
|
|
6814
|
-
}), d(g, "throw", {
|
|
6815
|
-
value: verb(1)
|
|
6816
|
-
}), d(g, "return", {
|
|
6817
|
-
value: verb(2)
|
|
6818
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
6819
|
-
value: function() {
|
|
6820
|
-
return this;
|
|
6821
|
-
}
|
|
6884
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
6885
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
6886
|
+
return this;
|
|
6822
6887
|
}), g;
|
|
6823
6888
|
function verb(n) {
|
|
6824
6889
|
return function(v) {
|
|
@@ -6954,7 +7019,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6954
7019
|
/**
|
|
6955
7020
|
* 点击 Control 会触发
|
|
6956
7021
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
6957
|
-
var _this = this, _superprop_get__onControlClick = function
|
|
7022
|
+
var _this = this, _superprop_get__onControlClick = function() {
|
|
6958
7023
|
return Control.prototype._onControlClick;
|
|
6959
7024
|
};
|
|
6960
7025
|
return _async_to_generator$3(function() {
|
|
@@ -6982,8 +7047,11 @@ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6982
7047
|
reject(error);
|
|
6983
7048
|
return;
|
|
6984
7049
|
}
|
|
6985
|
-
if (info.done)
|
|
6986
|
-
|
|
7050
|
+
if (info.done) {
|
|
7051
|
+
resolve(value);
|
|
7052
|
+
} else {
|
|
7053
|
+
Promise.resolve(value).then(_next, _throw);
|
|
7054
|
+
}
|
|
6987
7055
|
}
|
|
6988
7056
|
function _async_to_generator$2(fn) {
|
|
6989
7057
|
return function() {
|
|
@@ -7001,10 +7069,14 @@ function _async_to_generator$2(fn) {
|
|
|
7001
7069
|
};
|
|
7002
7070
|
}
|
|
7003
7071
|
function _extends$f() {
|
|
7004
|
-
_extends$f = Object.assign || function
|
|
7072
|
+
_extends$f = Object.assign || function(target) {
|
|
7005
7073
|
for(var i = 1; i < arguments.length; i++){
|
|
7006
7074
|
var source = arguments[i];
|
|
7007
|
-
for(var key in source)
|
|
7075
|
+
for(var key in source){
|
|
7076
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7077
|
+
target[key] = source[key];
|
|
7078
|
+
}
|
|
7079
|
+
}
|
|
7008
7080
|
}
|
|
7009
7081
|
return target;
|
|
7010
7082
|
};
|
|
@@ -7039,17 +7111,9 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7039
7111
|
},
|
|
7040
7112
|
trys: [],
|
|
7041
7113
|
ops: []
|
|
7042
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
7043
|
-
return
|
|
7044
|
-
|
|
7045
|
-
}), d(g, "throw", {
|
|
7046
|
-
value: verb(1)
|
|
7047
|
-
}), d(g, "return", {
|
|
7048
|
-
value: verb(2)
|
|
7049
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
7050
|
-
value: function() {
|
|
7051
|
-
return this;
|
|
7052
|
-
}
|
|
7114
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
7115
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
7116
|
+
return this;
|
|
7053
7117
|
}), g;
|
|
7054
7118
|
function verb(n) {
|
|
7055
7119
|
return function(v) {
|
|
@@ -7186,7 +7250,7 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7186
7250
|
/**
|
|
7187
7251
|
* 点击 Control 会触发
|
|
7188
7252
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
7189
|
-
var _this = this, _superprop_get__onControlClick = function
|
|
7253
|
+
var _this = this, _superprop_get__onControlClick = function() {
|
|
7190
7254
|
return Control.prototype._onControlClick;
|
|
7191
7255
|
};
|
|
7192
7256
|
return _async_to_generator$2(function() {
|
|
@@ -7207,10 +7271,14 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7207
7271
|
}(Control);
|
|
7208
7272
|
|
|
7209
7273
|
function _extends$e() {
|
|
7210
|
-
_extends$e = Object.assign || function
|
|
7274
|
+
_extends$e = Object.assign || function(target) {
|
|
7211
7275
|
for(var i = 1; i < arguments.length; i++){
|
|
7212
7276
|
var source = arguments[i];
|
|
7213
|
-
for(var key in source)
|
|
7277
|
+
for(var key in source){
|
|
7278
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7279
|
+
target[key] = source[key];
|
|
7280
|
+
}
|
|
7281
|
+
}
|
|
7214
7282
|
}
|
|
7215
7283
|
return target;
|
|
7216
7284
|
};
|
|
@@ -7298,10 +7366,14 @@ function _set_prototype_of$f(o, p) {
|
|
|
7298
7366
|
}(Control);
|
|
7299
7367
|
|
|
7300
7368
|
function _extends$d() {
|
|
7301
|
-
_extends$d = Object.assign || function
|
|
7369
|
+
_extends$d = Object.assign || function(target) {
|
|
7302
7370
|
for(var i = 1; i < arguments.length; i++){
|
|
7303
7371
|
var source = arguments[i];
|
|
7304
|
-
for(var key in source)
|
|
7372
|
+
for(var key in source){
|
|
7373
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7374
|
+
target[key] = source[key];
|
|
7375
|
+
}
|
|
7376
|
+
}
|
|
7305
7377
|
}
|
|
7306
7378
|
return target;
|
|
7307
7379
|
};
|
|
@@ -7384,7 +7456,7 @@ function _set_prototype_of$e(o, p) {
|
|
|
7384
7456
|
_proto._initPicker = function _initPicker() {
|
|
7385
7457
|
var _this = this;
|
|
7386
7458
|
this._picker = new Picker(this.$container, {
|
|
7387
|
-
getPopupContainer: function
|
|
7459
|
+
getPopupContainer: function() {
|
|
7388
7460
|
return Utils.isMobile ? _this.__options.rootContainer : _this.$container;
|
|
7389
7461
|
},
|
|
7390
7462
|
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
@@ -7458,10 +7530,14 @@ function _set_prototype_of$e(o, p) {
|
|
|
7458
7530
|
}(Control);
|
|
7459
7531
|
|
|
7460
7532
|
function _extends$c() {
|
|
7461
|
-
_extends$c = Object.assign || function
|
|
7533
|
+
_extends$c = Object.assign || function(target) {
|
|
7462
7534
|
for(var i = 1; i < arguments.length; i++){
|
|
7463
7535
|
var source = arguments[i];
|
|
7464
|
-
for(var key in source)
|
|
7536
|
+
for(var key in source){
|
|
7537
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7538
|
+
target[key] = source[key];
|
|
7539
|
+
}
|
|
7540
|
+
}
|
|
7465
7541
|
}
|
|
7466
7542
|
return target;
|
|
7467
7543
|
};
|
|
@@ -7514,10 +7590,10 @@ function _set_prototype_of$d(o, p) {
|
|
|
7514
7590
|
showEventFilter: false,
|
|
7515
7591
|
showCardTypeIcon: false,
|
|
7516
7592
|
sections: [],
|
|
7517
|
-
onCardClick: function
|
|
7593
|
+
onCardClick: function(section, index, sections) {
|
|
7518
7594
|
_this.emit(EVENTS.control.recListCardClick, section, index, sections);
|
|
7519
7595
|
},
|
|
7520
|
-
onClose: function
|
|
7596
|
+
onClose: function() {
|
|
7521
7597
|
var _this__options_onClose, _this__options;
|
|
7522
7598
|
_this._panelOpen = false;
|
|
7523
7599
|
_this.active = false;
|
|
@@ -7606,10 +7682,14 @@ function _set_prototype_of$d(o, p) {
|
|
|
7606
7682
|
}(Control);
|
|
7607
7683
|
|
|
7608
7684
|
function _extends$b() {
|
|
7609
|
-
_extends$b = Object.assign || function
|
|
7685
|
+
_extends$b = Object.assign || function(target) {
|
|
7610
7686
|
for(var i = 1; i < arguments.length; i++){
|
|
7611
7687
|
var source = arguments[i];
|
|
7612
|
-
for(var key in source)
|
|
7688
|
+
for(var key in source){
|
|
7689
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7690
|
+
target[key] = source[key];
|
|
7691
|
+
}
|
|
7692
|
+
}
|
|
7613
7693
|
}
|
|
7614
7694
|
return target;
|
|
7615
7695
|
};
|
|
@@ -7698,10 +7778,14 @@ function _create_class$1(Constructor, protoProps, staticProps) {
|
|
|
7698
7778
|
return Constructor;
|
|
7699
7779
|
}
|
|
7700
7780
|
function _extends$a() {
|
|
7701
|
-
_extends$a = Object.assign || function
|
|
7781
|
+
_extends$a = Object.assign || function(target) {
|
|
7702
7782
|
for(var i = 1; i < arguments.length; i++){
|
|
7703
7783
|
var source = arguments[i];
|
|
7704
|
-
for(var key in source)
|
|
7784
|
+
for(var key in source){
|
|
7785
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7786
|
+
target[key] = source[key];
|
|
7787
|
+
}
|
|
7788
|
+
}
|
|
7705
7789
|
}
|
|
7706
7790
|
return target;
|
|
7707
7791
|
};
|
|
@@ -7732,11 +7816,11 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7732
7816
|
label: 'label',
|
|
7733
7817
|
value: 'value'
|
|
7734
7818
|
},
|
|
7735
|
-
renderLabel: function
|
|
7819
|
+
renderLabel: function(label) {
|
|
7736
7820
|
return "<span>" + (label || '') + "</span>";
|
|
7737
7821
|
},
|
|
7738
|
-
onChange: function
|
|
7739
|
-
onOpenChange: function
|
|
7822
|
+
onChange: function() {},
|
|
7823
|
+
onOpenChange: function() {}
|
|
7740
7824
|
};
|
|
7741
7825
|
/**
|
|
7742
7826
|
* 选择器切换 (支持PC/Mobile)
|
|
@@ -7790,7 +7874,6 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7790
7874
|
_inherits$b(Select, Control);
|
|
7791
7875
|
function Select(options) {
|
|
7792
7876
|
var _this;
|
|
7793
|
-
var _ref;
|
|
7794
7877
|
var _this__options_fieldNames, _this__picker_$body;
|
|
7795
7878
|
_this = Control.call(this, _extends$a({
|
|
7796
7879
|
tagName: 'span',
|
|
@@ -7804,10 +7887,11 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7804
7887
|
if (options.value !== undefined || options.value !== null) {
|
|
7805
7888
|
_this._value = options.value + '';
|
|
7806
7889
|
}
|
|
7807
|
-
var
|
|
7890
|
+
var _this__options_fieldNames_value;
|
|
7891
|
+
var valueKey = (_this__options_fieldNames_value = (_this__options_fieldNames = _this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _this__options_fieldNames_value : 'value';
|
|
7808
7892
|
_this._picker = new Picker(_this.$container, {
|
|
7809
7893
|
// 由于某些原因, 移动端强制渲染在 body 上
|
|
7810
|
-
getPopupContainer: function
|
|
7894
|
+
getPopupContainer: function() {
|
|
7811
7895
|
return Utils.isMobile ? options.rootContainer : _this.$container;
|
|
7812
7896
|
},
|
|
7813
7897
|
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
@@ -7820,7 +7904,7 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7820
7904
|
],
|
|
7821
7905
|
placement: 'top',
|
|
7822
7906
|
// zIndex: 10000,
|
|
7823
|
-
onOpenChange: function
|
|
7907
|
+
onOpenChange: function(open) {
|
|
7824
7908
|
var item = _this.list.find(function(item) {
|
|
7825
7909
|
return item[valueKey] + '' === _this.value;
|
|
7826
7910
|
});
|
|
@@ -7844,10 +7928,11 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7844
7928
|
var _this = this;
|
|
7845
7929
|
if (list === void 0) list = [];
|
|
7846
7930
|
if ((list == null ? void 0 : list.length) > 0 && this._picker) {
|
|
7847
|
-
var _ref, _ref1;
|
|
7848
7931
|
var _this__options_fieldNames, _this__options_fieldNames1, _this_locale, _this__picker;
|
|
7849
|
-
var
|
|
7850
|
-
var
|
|
7932
|
+
var _this__options_fieldNames_label;
|
|
7933
|
+
var labelKey = (_this__options_fieldNames_label = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.label) != null ? _this__options_fieldNames_label : 'label';
|
|
7934
|
+
var _this__options_fieldNames_value;
|
|
7935
|
+
var valueKey = (_this__options_fieldNames_value = (_this__options_fieldNames1 = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames1.value) != null ? _this__options_fieldNames_value : 'value';
|
|
7851
7936
|
(_this__picker = this._picker) == null ? void 0 : _this__picker.innerHTML('<div class="' + PREFIX_CLASS + '-select-panel">\n <ul class="' + PREFIX_CLASS + '-select-list">\n ' + list.map(function(item) {
|
|
7852
7937
|
return '\n <li class="' + PREFIX_CLASS + "-select-option " + (+item[valueKey] === _this.value ? "" + PREFIX_CLASS + "-active" : '') + '" data-value="' + item[valueKey] + '">\n <span>' + item[labelKey] + "</span>\n </li>\n ";
|
|
7853
7938
|
}).join('') + "\n </ul>\n " + (Utils.isMobile ? '<div class="' + PREFIX_CLASS + '-select-cancel">\n <span>' + (((_this_locale = this.locale) == null ? void 0 : _this_locale.cancel) || '取消') + "</span>\n </div>" : '') + "\n " + (Utils.isMobile ? '<span class="' + PREFIX_CLASS + '-select-close">' + IconComponents.close() + "</span>" : '') + "\n <div>");
|
|
@@ -7859,12 +7944,12 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7859
7944
|
}
|
|
7860
7945
|
};
|
|
7861
7946
|
_proto._render = function _render(item) {
|
|
7862
|
-
var _ref;
|
|
7863
7947
|
var _this__options_fieldNames;
|
|
7864
7948
|
if (this.list.length === 0) {
|
|
7865
7949
|
return;
|
|
7866
7950
|
}
|
|
7867
|
-
var
|
|
7951
|
+
var _this__options_fieldNames_label;
|
|
7952
|
+
var labelKey = (_this__options_fieldNames_label = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.label) != null ? _this__options_fieldNames_label : 'label';
|
|
7868
7953
|
if (this.$container.querySelector("." + PREFIX_CLASS + "-select-btn")) {
|
|
7869
7954
|
this.$container.querySelector("." + PREFIX_CLASS + "-select-btn").innerHTML = this._options.renderLabel == null ? void 0 : this._options.renderLabel.call(this._options, item == null ? void 0 : item[labelKey], item, this.list);
|
|
7870
7955
|
} else {
|
|
@@ -7880,9 +7965,9 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7880
7965
|
_proto._activeOption = function _activeOption() {
|
|
7881
7966
|
var _this = this;
|
|
7882
7967
|
if (this._picker) {
|
|
7883
|
-
var _ref;
|
|
7884
7968
|
var _this__options_fieldNames, _this__picker_$body, _this__picker_$body1;
|
|
7885
|
-
var
|
|
7969
|
+
var _this__options_fieldNames_value;
|
|
7970
|
+
var valueKey = (_this__options_fieldNames_value = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _this__options_fieldNames_value : 'value';
|
|
7886
7971
|
var $active = (_this__picker_$body = this._picker.$body) == null ? void 0 : _this__picker_$body.querySelector("." + PREFIX_CLASS + "-active");
|
|
7887
7972
|
$active == null ? void 0 : $active.classList.remove(PREFIX_CLASS + '-active');
|
|
7888
7973
|
var $target = (_this__picker_$body1 = this._picker.$body) == null ? void 0 : _this__picker_$body1.querySelector("." + PREFIX_CLASS + '-select-option[data-value="' + this.value + '"]');
|
|
@@ -7896,9 +7981,9 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7896
7981
|
_proto._onSelectChange = function _onSelectChange() {
|
|
7897
7982
|
var _this = this;
|
|
7898
7983
|
if (this._picker) {
|
|
7899
|
-
var _ref;
|
|
7900
7984
|
var _this__options_fieldNames;
|
|
7901
|
-
var
|
|
7985
|
+
var _this__options_fieldNames_value;
|
|
7986
|
+
var valueKey = (_this__options_fieldNames_value = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _this__options_fieldNames_value : 'value';
|
|
7902
7987
|
this._delegationOption = delegate(this._picker.$body, "." + PREFIX_CLASS + "-select-option", 'click', function(e) {
|
|
7903
7988
|
var target = e.delegateTarget;
|
|
7904
7989
|
e.stopPropagation();
|
|
@@ -7983,14 +8068,20 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7983
8068
|
}(Control);
|
|
7984
8069
|
|
|
7985
8070
|
function _assert_this_initialized$1(self) {
|
|
7986
|
-
if (self === void 0)
|
|
8071
|
+
if (self === void 0) {
|
|
8072
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8073
|
+
}
|
|
7987
8074
|
return self;
|
|
7988
8075
|
}
|
|
7989
8076
|
function _extends$9() {
|
|
7990
|
-
_extends$9 = Object.assign || function
|
|
8077
|
+
_extends$9 = Object.assign || function(target) {
|
|
7991
8078
|
for(var i = 1; i < arguments.length; i++){
|
|
7992
8079
|
var source = arguments[i];
|
|
7993
|
-
for(var key in source)
|
|
8080
|
+
for(var key in source){
|
|
8081
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8082
|
+
target[key] = source[key];
|
|
8083
|
+
}
|
|
8084
|
+
}
|
|
7994
8085
|
}
|
|
7995
8086
|
return target;
|
|
7996
8087
|
};
|
|
@@ -8080,7 +8171,7 @@ function __filter(list, locale) {
|
|
|
8080
8171
|
title: options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.BTN_HD,
|
|
8081
8172
|
controlType: 'button',
|
|
8082
8173
|
classNameSuffix: 'definition',
|
|
8083
|
-
renderLabel: function
|
|
8174
|
+
renderLabel: function(label, item, list) {
|
|
8084
8175
|
var _list_;
|
|
8085
8176
|
if ((item == null ? void 0 : item.level) === 'auto') {
|
|
8086
8177
|
var _options_locales_options_language;
|
|
@@ -8092,7 +8183,7 @@ function __filter(list, locale) {
|
|
|
8092
8183
|
// 如果 label 不存在,则不显示label,直接显示list的第一个label, 一般自定义清晰度列表可能会出现
|
|
8093
8184
|
return "<span>" + (label || ((_list_ = list[0]) == null ? void 0 : _list_.name) || '') + "</span>";
|
|
8094
8185
|
},
|
|
8095
|
-
onChange: function
|
|
8186
|
+
onChange: function(value, item) {
|
|
8096
8187
|
var _options_onChange;
|
|
8097
8188
|
options == null ? void 0 : (_options_onChange = options.onChange) == null ? void 0 : _options_onChange.call(options, value, item);
|
|
8098
8189
|
if (value === 'auto') {
|
|
@@ -8102,7 +8193,7 @@ function __filter(list, locale) {
|
|
|
8102
8193
|
_assert_this_initialized$1(_this).emit(EVENTS.control.definitionChange, value, item);
|
|
8103
8194
|
}
|
|
8104
8195
|
},
|
|
8105
|
-
onOpenChange: function
|
|
8196
|
+
onOpenChange: function(open, value, item) {
|
|
8106
8197
|
var _options_onOpenChange;
|
|
8107
8198
|
options == null ? void 0 : (_options_onOpenChange = options.onOpenChange) == null ? void 0 : _options_onOpenChange.call(options, open, value, item);
|
|
8108
8199
|
_assert_this_initialized$1(_this).emit(EVENTS.control.definitionPanelOpenChange, open, value, item);
|
|
@@ -8138,14 +8229,20 @@ function __filter(list, locale) {
|
|
|
8138
8229
|
}(Select);
|
|
8139
8230
|
|
|
8140
8231
|
function _assert_this_initialized(self) {
|
|
8141
|
-
if (self === void 0)
|
|
8232
|
+
if (self === void 0) {
|
|
8233
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8234
|
+
}
|
|
8142
8235
|
return self;
|
|
8143
8236
|
}
|
|
8144
8237
|
function _extends$8() {
|
|
8145
|
-
_extends$8 = Object.assign || function
|
|
8238
|
+
_extends$8 = Object.assign || function(target) {
|
|
8146
8239
|
for(var i = 1; i < arguments.length; i++){
|
|
8147
8240
|
var source = arguments[i];
|
|
8148
|
-
for(var key in source)
|
|
8241
|
+
for(var key in source){
|
|
8242
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8243
|
+
target[key] = source[key];
|
|
8244
|
+
}
|
|
8245
|
+
}
|
|
8149
8246
|
}
|
|
8150
8247
|
return target;
|
|
8151
8248
|
};
|
|
@@ -8212,13 +8309,13 @@ var SPEED_DEFAULT_OPTIONS = {
|
|
|
8212
8309
|
classNameSuffix: 'speed',
|
|
8213
8310
|
controlType: 'button',
|
|
8214
8311
|
title: options == null ? void 0 : (_options_locales = options.locales) == null ? void 0 : (_options_locales_options_language = _options_locales[options.language]) == null ? void 0 : _options_locales_options_language.BTN_SPEED,
|
|
8215
|
-
onChange: function
|
|
8312
|
+
onChange: function(value, item) {
|
|
8216
8313
|
var _options_onChange;
|
|
8217
8314
|
value = +value;
|
|
8218
8315
|
options == null ? void 0 : (_options_onChange = options.onChange) == null ? void 0 : _options_onChange.call(options, value, item);
|
|
8219
8316
|
_assert_this_initialized(_this).emit(EVENTS.control.speedChange, value, item);
|
|
8220
8317
|
},
|
|
8221
|
-
onOpenChange: function
|
|
8318
|
+
onOpenChange: function(open, value, item) {
|
|
8222
8319
|
var _options_onOpenChange;
|
|
8223
8320
|
value = +value;
|
|
8224
8321
|
options == null ? void 0 : (_options_onOpenChange = options.onOpenChange) == null ? void 0 : _options_onOpenChange.call(options, open, value, item);
|
|
@@ -8268,10 +8365,14 @@ var SPEED_DEFAULT_OPTIONS = {
|
|
|
8268
8365
|
}(Select);
|
|
8269
8366
|
|
|
8270
8367
|
function _extends$7() {
|
|
8271
|
-
_extends$7 = Object.assign || function
|
|
8368
|
+
_extends$7 = Object.assign || function(target) {
|
|
8272
8369
|
for(var i = 1; i < arguments.length; i++){
|
|
8273
8370
|
var source = arguments[i];
|
|
8274
|
-
for(var key in source)
|
|
8371
|
+
for(var key in source){
|
|
8372
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8373
|
+
target[key] = source[key];
|
|
8374
|
+
}
|
|
8375
|
+
}
|
|
8275
8376
|
}
|
|
8276
8377
|
return target;
|
|
8277
8378
|
};
|
|
@@ -8348,16 +8449,16 @@ function _set_prototype_of$8(o, p) {
|
|
|
8348
8449
|
current: utilsTools.DateTime.toDate(this._value),
|
|
8349
8450
|
placement: 'tr',
|
|
8350
8451
|
triggerClose: true,
|
|
8351
|
-
disabledDate: function
|
|
8452
|
+
disabledDate: function(date) {
|
|
8352
8453
|
return date.getTime() > (_this.options.maxDate || new Date()).getTime();
|
|
8353
8454
|
}
|
|
8354
8455
|
}, this.options || {}, {
|
|
8355
8456
|
// 不支持自定义
|
|
8356
|
-
getPopupContainer: function
|
|
8457
|
+
getPopupContainer: function() {
|
|
8357
8458
|
return _this.$container;
|
|
8358
8459
|
},
|
|
8359
8460
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8360
|
-
onOk: function
|
|
8461
|
+
onOk: function(date, _mode) {
|
|
8361
8462
|
if (date && _this._value !== utilsTools.DateTime.format(date, 'YYYY-MM-DD') && isMobile1) {
|
|
8362
8463
|
_this._value = utilsTools.DateTime.format(date, 'YYYY-MM-DD');
|
|
8363
8464
|
_this.options.onOk == null ? void 0 : _this.options.onOk.call(_this.options, date);
|
|
@@ -8367,14 +8468,14 @@ function _set_prototype_of$8(o, p) {
|
|
|
8367
8468
|
}
|
|
8368
8469
|
}
|
|
8369
8470
|
},
|
|
8370
|
-
onChange: function
|
|
8471
|
+
onChange: function(date, mode) {
|
|
8371
8472
|
if (date && _this._value !== utilsTools.DateTime.format(date, 'YYYY-MM-DD') && !isMobile1 && mode === 'date') {
|
|
8372
8473
|
_this._value = utilsTools.DateTime.format(date, 'YYYY-MM-DD');
|
|
8373
8474
|
_this.options.onChange == null ? void 0 : _this.options.onChange.call(_this.options, date);
|
|
8374
8475
|
_this.emit(EVENTS.control.dateChange, date);
|
|
8375
8476
|
}
|
|
8376
8477
|
},
|
|
8377
|
-
onOpenChange: function
|
|
8478
|
+
onOpenChange: function(open) {
|
|
8378
8479
|
_this.options.onPanelChange == null ? void 0 : _this.options.onPanelChange.call(_this.options, open, _this.datePicker.current);
|
|
8379
8480
|
_this.emit(EVENTS.control.datePanelOpenChange, open, _this.datePicker.current);
|
|
8380
8481
|
}
|
|
@@ -8424,10 +8525,14 @@ function _set_prototype_of$8(o, p) {
|
|
|
8424
8525
|
}(Control);
|
|
8425
8526
|
|
|
8426
8527
|
function _extends$6() {
|
|
8427
|
-
_extends$6 = Object.assign || function
|
|
8528
|
+
_extends$6 = Object.assign || function(target) {
|
|
8428
8529
|
for(var i = 1; i < arguments.length; i++){
|
|
8429
8530
|
var source = arguments[i];
|
|
8430
|
-
for(var key in source)
|
|
8531
|
+
for(var key in source){
|
|
8532
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8533
|
+
target[key] = source[key];
|
|
8534
|
+
}
|
|
8535
|
+
}
|
|
8431
8536
|
}
|
|
8432
8537
|
return target;
|
|
8433
8538
|
};
|
|
@@ -8501,17 +8606,17 @@ function _set_prototype_of$7(o, p) {
|
|
|
8501
8606
|
triggerClose: true
|
|
8502
8607
|
}, this.options || {}, {
|
|
8503
8608
|
// 不支持自定义
|
|
8504
|
-
getPopupContainer: function
|
|
8609
|
+
getPopupContainer: function() {
|
|
8505
8610
|
return _this.$container;
|
|
8506
8611
|
},
|
|
8507
|
-
onChange: function
|
|
8612
|
+
onChange: function(time, _times) {
|
|
8508
8613
|
if (time && _this._value !== time) {
|
|
8509
8614
|
_this._value = time;
|
|
8510
8615
|
_this.options.onChange == null ? void 0 : _this.options.onChange.call(_this.options, time, _times);
|
|
8511
8616
|
_this.emit(EVENTS.control.timeChange, time);
|
|
8512
8617
|
}
|
|
8513
8618
|
},
|
|
8514
|
-
onOpenChange: function
|
|
8619
|
+
onOpenChange: function(open) {
|
|
8515
8620
|
_this.options.onPanelChange == null ? void 0 : _this.options.onPanelChange.call(_this.options, open, _this.timePicker.current);
|
|
8516
8621
|
_this.emit(EVENTS.control.timePanelOpenChange, open, _this.timePicker.current);
|
|
8517
8622
|
}
|
|
@@ -8559,10 +8664,14 @@ function _set_prototype_of$7(o, p) {
|
|
|
8559
8664
|
}(Control);
|
|
8560
8665
|
|
|
8561
8666
|
function _extends$5() {
|
|
8562
|
-
_extends$5 = Object.assign || function
|
|
8667
|
+
_extends$5 = Object.assign || function(target) {
|
|
8563
8668
|
for(var i = 1; i < arguments.length; i++){
|
|
8564
8669
|
var source = arguments[i];
|
|
8565
|
-
for(var key in source)
|
|
8670
|
+
for(var key in source){
|
|
8671
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8672
|
+
target[key] = source[key];
|
|
8673
|
+
}
|
|
8674
|
+
}
|
|
8566
8675
|
}
|
|
8567
8676
|
return target;
|
|
8568
8677
|
};
|
|
@@ -8631,8 +8740,8 @@ function _set_prototype_of$6(o, p) {
|
|
|
8631
8740
|
var _proto = TimeLineControl.prototype;
|
|
8632
8741
|
_proto._render = function _render() {
|
|
8633
8742
|
var _this = this;
|
|
8634
|
-
var _this__options_showTimeWidthBtn, _this__options_showCoverFold;
|
|
8635
8743
|
var _this_timeLineUtil_updateTimeSections, _this_timeLineUtil;
|
|
8744
|
+
var _this__options_showTimeWidthBtn, _this__options_showCoverFold;
|
|
8636
8745
|
var _timeLineOptions = _extends$5({
|
|
8637
8746
|
language: this._options.language || 'zh',
|
|
8638
8747
|
coverQuery: this._options.coverQuery || '',
|
|
@@ -8641,19 +8750,19 @@ function _set_prototype_of$6(o, p) {
|
|
|
8641
8750
|
hoverTipPlacement: 'top'
|
|
8642
8751
|
}, this._options || {}, {
|
|
8643
8752
|
showSectionIcon: false,
|
|
8644
|
-
onClickSeek: function
|
|
8753
|
+
onClickSeek: function(date) {
|
|
8645
8754
|
if (date == null ? void 0 : date.getTime()) {
|
|
8646
8755
|
_this._options.onClickSeek == null ? void 0 : _this._options.onClickSeek.call(_this._options, date);
|
|
8647
8756
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8648
8757
|
}
|
|
8649
8758
|
},
|
|
8650
|
-
onChange: function
|
|
8759
|
+
onChange: function(date) {
|
|
8651
8760
|
if (_this._currentTime !== (date == null ? void 0 : date.getTime())) {
|
|
8652
8761
|
_this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, date);
|
|
8653
8762
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8654
8763
|
}
|
|
8655
8764
|
},
|
|
8656
|
-
onDragEnd: function
|
|
8765
|
+
onDragEnd: function(date, isOver) {
|
|
8657
8766
|
var _this__options_props_playbackRange, _this__options_props, _this__options;
|
|
8658
8767
|
_this._options.onDragEnd == null ? void 0 : _this._options.onDragEnd.call(_this._options, date, isOver);
|
|
8659
8768
|
// 松手时鼠标已移出时间轴容器(isOver 为 false):控件把这种拖动视为取消,
|
|
@@ -8672,11 +8781,11 @@ function _set_prototype_of$6(o, p) {
|
|
|
8672
8781
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8673
8782
|
}
|
|
8674
8783
|
},
|
|
8675
|
-
onPickerOpenChange: function
|
|
8784
|
+
onPickerOpenChange: function(open) {
|
|
8676
8785
|
_this.emit(EVENTS.control.timeLinePanelOpenChange, open);
|
|
8677
8786
|
},
|
|
8678
8787
|
// 2025-10-27 仅移动端支持
|
|
8679
|
-
onPickerSelect: function
|
|
8788
|
+
onPickerSelect: function(item) {
|
|
8680
8789
|
var date = null;
|
|
8681
8790
|
try {
|
|
8682
8791
|
if ((item.startTime + '').length === 10) date = new Date(item.startTime * 1000);
|
|
@@ -8687,7 +8796,7 @@ function _set_prototype_of$6(o, p) {
|
|
|
8687
8796
|
} catch (error) {
|
|
8688
8797
|
}
|
|
8689
8798
|
},
|
|
8690
|
-
onSectionIconClick: function
|
|
8799
|
+
onSectionIconClick: function(result) {
|
|
8691
8800
|
_this.emit('TimeLine.onSectionIconClick', result);
|
|
8692
8801
|
}
|
|
8693
8802
|
});
|
|
@@ -8758,10 +8867,14 @@ function _set_prototype_of$6(o, p) {
|
|
|
8758
8867
|
}(Control);
|
|
8759
8868
|
|
|
8760
8869
|
function _extends$4() {
|
|
8761
|
-
_extends$4 = Object.assign || function
|
|
8870
|
+
_extends$4 = Object.assign || function(target) {
|
|
8762
8871
|
for(var i = 1; i < arguments.length; i++){
|
|
8763
8872
|
var source = arguments[i];
|
|
8764
|
-
for(var key in source)
|
|
8873
|
+
for(var key in source){
|
|
8874
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8875
|
+
target[key] = source[key];
|
|
8876
|
+
}
|
|
8877
|
+
}
|
|
8765
8878
|
}
|
|
8766
8879
|
return target;
|
|
8767
8880
|
};
|
|
@@ -8806,8 +8919,8 @@ function _set_prototype_of$5(o, p) {
|
|
|
8806
8919
|
* @param seg 录像片段
|
|
8807
8920
|
* @param which 取起点还是终点
|
|
8808
8921
|
*/ function segMs(seg, which) {
|
|
8809
|
-
var
|
|
8810
|
-
var value = which === 'start' ? (
|
|
8922
|
+
var _seg_startTime, _seg_endTime;
|
|
8923
|
+
var value = which === 'start' ? (_seg_startTime = seg == null ? void 0 : seg.startTime) != null ? _seg_startTime : seg == null ? void 0 : seg.begin : (_seg_endTime = seg == null ? void 0 : seg.endTime) != null ? _seg_endTime : seg == null ? void 0 : seg.end;
|
|
8811
8924
|
if (value === undefined || value === null || value === '') return NaN;
|
|
8812
8925
|
if (typeof value === 'number') return value < 1e12 ? value * 1000 : value;
|
|
8813
8926
|
return utilsTools.DateTime.toDate(value).getTime();
|
|
@@ -8868,17 +8981,17 @@ function _set_prototype_of$5(o, p) {
|
|
|
8868
8981
|
_proto._render = function _render() {
|
|
8869
8982
|
var _this = this;
|
|
8870
8983
|
this._progress = new SegmentProgress(this.$container, {
|
|
8871
|
-
onChange: function
|
|
8984
|
+
onChange: function(date) {
|
|
8872
8985
|
// 用户主动定位即视为重新开始播放,立即解除结束静默,否则静默期内的回写被丢弃、
|
|
8873
8986
|
// 进度条会停住不动
|
|
8874
8987
|
_this._silenceUntil = 0;
|
|
8875
8988
|
_this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, date);
|
|
8876
8989
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8877
8990
|
},
|
|
8878
|
-
onDragStart: function
|
|
8991
|
+
onDragStart: function() {
|
|
8879
8992
|
_this._isDragging = true;
|
|
8880
8993
|
},
|
|
8881
|
-
onDragEnd: function
|
|
8994
|
+
onDragEnd: function() {
|
|
8882
8995
|
_this._isDragging = false;
|
|
8883
8996
|
}
|
|
8884
8997
|
});
|
|
@@ -8971,10 +9084,14 @@ function _set_prototype_of$5(o, p) {
|
|
|
8971
9084
|
}(Control);
|
|
8972
9085
|
|
|
8973
9086
|
function _extends$3() {
|
|
8974
|
-
_extends$3 = Object.assign || function
|
|
9087
|
+
_extends$3 = Object.assign || function(target) {
|
|
8975
9088
|
for(var i = 1; i < arguments.length; i++){
|
|
8976
9089
|
var source = arguments[i];
|
|
8977
|
-
for(var key in source)
|
|
9090
|
+
for(var key in source){
|
|
9091
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9092
|
+
target[key] = source[key];
|
|
9093
|
+
}
|
|
9094
|
+
}
|
|
8978
9095
|
}
|
|
8979
9096
|
return target;
|
|
8980
9097
|
};
|
|
@@ -9064,7 +9181,7 @@ var Controls = {
|
|
|
9064
9181
|
segmentProgress: SegmentProgressControl
|
|
9065
9182
|
};
|
|
9066
9183
|
|
|
9067
|
-
function _inherits$3(subClass, superClass) {
|
|
9184
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion */ function _inherits$3(subClass, superClass) {
|
|
9068
9185
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
9069
9186
|
throw new TypeError("Super expression must either be null or a function");
|
|
9070
9187
|
}
|
|
@@ -9229,10 +9346,14 @@ function _set_prototype_of$2(o, p) {
|
|
|
9229
9346
|
}(EventEmitter);
|
|
9230
9347
|
|
|
9231
9348
|
function _extends$2() {
|
|
9232
|
-
_extends$2 = Object.assign || function
|
|
9349
|
+
_extends$2 = Object.assign || function(target) {
|
|
9233
9350
|
for(var i = 1; i < arguments.length; i++){
|
|
9234
9351
|
var source = arguments[i];
|
|
9235
|
-
for(var key in source)
|
|
9352
|
+
for(var key in source){
|
|
9353
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9354
|
+
target[key] = source[key];
|
|
9355
|
+
}
|
|
9356
|
+
}
|
|
9236
9357
|
}
|
|
9237
9358
|
return target;
|
|
9238
9359
|
};
|
|
@@ -9364,7 +9485,7 @@ var PAUSE_DEFAULT_OPTIONS = {};
|
|
|
9364
9485
|
return Pause;
|
|
9365
9486
|
}(Control);
|
|
9366
9487
|
|
|
9367
|
-
var _unmountedControls = function
|
|
9488
|
+
var _unmountedControls = function(theme) {
|
|
9368
9489
|
if (!theme.controls) {
|
|
9369
9490
|
return;
|
|
9370
9491
|
}
|
|
@@ -9451,8 +9572,11 @@ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
9451
9572
|
reject(error);
|
|
9452
9573
|
return;
|
|
9453
9574
|
}
|
|
9454
|
-
if (info.done)
|
|
9455
|
-
|
|
9575
|
+
if (info.done) {
|
|
9576
|
+
resolve(value);
|
|
9577
|
+
} else {
|
|
9578
|
+
Promise.resolve(value).then(_next, _throw);
|
|
9579
|
+
}
|
|
9456
9580
|
}
|
|
9457
9581
|
function _async_to_generator$1(fn) {
|
|
9458
9582
|
return function() {
|
|
@@ -9469,6 +9593,28 @@ function _async_to_generator$1(fn) {
|
|
|
9469
9593
|
});
|
|
9470
9594
|
};
|
|
9471
9595
|
}
|
|
9596
|
+
function _extends$1() {
|
|
9597
|
+
_extends$1 = Object.assign || function(target) {
|
|
9598
|
+
for(var i = 1; i < arguments.length; i++){
|
|
9599
|
+
var source = arguments[i];
|
|
9600
|
+
for(var key in source){
|
|
9601
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9602
|
+
target[key] = source[key];
|
|
9603
|
+
}
|
|
9604
|
+
}
|
|
9605
|
+
}
|
|
9606
|
+
return target;
|
|
9607
|
+
};
|
|
9608
|
+
return _extends$1.apply(this, arguments);
|
|
9609
|
+
}
|
|
9610
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
9611
|
+
if (!o) return;
|
|
9612
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
9613
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9614
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9615
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9616
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
9617
|
+
}
|
|
9472
9618
|
function _create_for_of_iterator_helper_loose$1(o, allowArrayLike) {
|
|
9473
9619
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
9474
9620
|
if (it) return (it = it.call(o)).next.bind(it);
|
|
@@ -9476,26 +9622,18 @@ function _create_for_of_iterator_helper_loose$1(o, allowArrayLike) {
|
|
|
9476
9622
|
if (it) o = it;
|
|
9477
9623
|
var i = 0;
|
|
9478
9624
|
return function() {
|
|
9479
|
-
if (i >= o.length)
|
|
9480
|
-
|
|
9481
|
-
|
|
9625
|
+
if (i >= o.length) {
|
|
9626
|
+
return {
|
|
9627
|
+
done: true
|
|
9628
|
+
};
|
|
9629
|
+
}
|
|
9482
9630
|
return {
|
|
9483
9631
|
done: false,
|
|
9484
9632
|
value: o[i++]
|
|
9485
9633
|
};
|
|
9486
9634
|
};
|
|
9487
9635
|
}
|
|
9488
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance
|
|
9489
|
-
}
|
|
9490
|
-
function _extends$1() {
|
|
9491
|
-
_extends$1 = Object.assign || function assign(target) {
|
|
9492
|
-
for(var i = 1; i < arguments.length; i++){
|
|
9493
|
-
var source = arguments[i];
|
|
9494
|
-
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
9495
|
-
}
|
|
9496
|
-
return target;
|
|
9497
|
-
};
|
|
9498
|
-
return _extends$1.apply(this, arguments);
|
|
9636
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9499
9637
|
}
|
|
9500
9638
|
function _ts_generator$1(thisArg, body) {
|
|
9501
9639
|
var f, y, t, _ = {
|
|
@@ -9506,17 +9644,9 @@ function _ts_generator$1(thisArg, body) {
|
|
|
9506
9644
|
},
|
|
9507
9645
|
trys: [],
|
|
9508
9646
|
ops: []
|
|
9509
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
9510
|
-
return
|
|
9511
|
-
|
|
9512
|
-
}), d(g, "throw", {
|
|
9513
|
-
value: verb(1)
|
|
9514
|
-
}), d(g, "return", {
|
|
9515
|
-
value: verb(2)
|
|
9516
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
9517
|
-
value: function() {
|
|
9518
|
-
return this;
|
|
9519
|
-
}
|
|
9647
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
9648
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
9649
|
+
return this;
|
|
9520
9650
|
}), g;
|
|
9521
9651
|
function verb(n) {
|
|
9522
9652
|
return function(v) {
|
|
@@ -9596,14 +9726,6 @@ function _ts_generator$1(thisArg, body) {
|
|
|
9596
9726
|
};
|
|
9597
9727
|
}
|
|
9598
9728
|
}
|
|
9599
|
-
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
9600
|
-
if (!o) return;
|
|
9601
|
-
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
9602
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9603
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9604
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9605
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
9606
|
-
}
|
|
9607
9729
|
// 需要权限的控件
|
|
9608
9730
|
var AUTH_KEY = [
|
|
9609
9731
|
'ptz',
|
|
@@ -9642,7 +9764,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9642
9764
|
// eslint-disable-next-line @typescript-eslint/dot-notation, new-cap, @typescript-eslint/no-unsafe-argument
|
|
9643
9765
|
theme.controls["deviceControl"] = new Controls["device"](_extends$1({
|
|
9644
9766
|
rootContainer: theme.$container,
|
|
9645
|
-
getPopupContainer: function
|
|
9767
|
+
getPopupContainer: function() {
|
|
9646
9768
|
return $container;
|
|
9647
9769
|
},
|
|
9648
9770
|
recType: theme.recType,
|
|
@@ -9665,7 +9787,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9665
9787
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9666
9788
|
theme.controls["" + item.iconId + "Control"] = new Controls[item.iconId](_extends$1({
|
|
9667
9789
|
rootContainer: theme.$container,
|
|
9668
|
-
getPopupContainer: function
|
|
9790
|
+
getPopupContainer: function() {
|
|
9669
9791
|
return $container;
|
|
9670
9792
|
},
|
|
9671
9793
|
language: theme.options.language || "zh",
|
|
@@ -9692,7 +9814,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9692
9814
|
}
|
|
9693
9815
|
function _renderTheme(theme, data) {
|
|
9694
9816
|
return _async_to_generator$1(function() {
|
|
9695
|
-
var
|
|
9817
|
+
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_urlInfo, _theme_playbackRange, _theme_playbackRange1, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, _hasPlaybackRange, _needDatePicker, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions4, _theme_controls2, _theme_options_mobileExtendOptions5, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions6, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1, _theme_options;
|
|
9696
9818
|
return _ts_generator$1(this, function(_state) {
|
|
9697
9819
|
switch(_state.label){
|
|
9698
9820
|
case 0:
|
|
@@ -9718,7 +9840,7 @@ function _renderTheme(theme, data) {
|
|
|
9718
9840
|
language: theme.options.language,
|
|
9719
9841
|
locales: theme.i18n.translations
|
|
9720
9842
|
}, theme.options.loadingOptions || {}, {
|
|
9721
|
-
getPopupContainer: function
|
|
9843
|
+
getPopupContainer: function() {
|
|
9722
9844
|
return theme.$container;
|
|
9723
9845
|
}
|
|
9724
9846
|
}));
|
|
@@ -9728,7 +9850,7 @@ function _renderTheme(theme, data) {
|
|
|
9728
9850
|
language: theme.options.language,
|
|
9729
9851
|
locales: theme.i18n.translations
|
|
9730
9852
|
}, theme.options.pauseOptions || {}, {
|
|
9731
|
-
getPopupContainer: function
|
|
9853
|
+
getPopupContainer: function() {
|
|
9732
9854
|
return theme.contentControl.$wrapper;
|
|
9733
9855
|
}
|
|
9734
9856
|
}));
|
|
@@ -9740,14 +9862,14 @@ function _renderTheme(theme, data) {
|
|
|
9740
9862
|
theme.messageControl = new Message(_extends$1({
|
|
9741
9863
|
rootContainer: theme.$container
|
|
9742
9864
|
}, theme.options.messageOptions || {}, {
|
|
9743
|
-
getPopupContainer: function
|
|
9865
|
+
getPopupContainer: function() {
|
|
9744
9866
|
return theme.contentControl.$wrapper;
|
|
9745
9867
|
}
|
|
9746
9868
|
}));
|
|
9747
9869
|
}
|
|
9748
9870
|
if (theme.options.posterOptions !== null) {
|
|
9749
9871
|
theme.posterControl = new Poster(_extends$1({}, theme.options.posterOptions || {}, {
|
|
9750
|
-
getPopupContainer: function
|
|
9872
|
+
getPopupContainer: function() {
|
|
9751
9873
|
return theme.contentControl.$video;
|
|
9752
9874
|
}
|
|
9753
9875
|
}));
|
|
@@ -9777,7 +9899,7 @@ function _renderTheme(theme, data) {
|
|
|
9777
9899
|
}
|
|
9778
9900
|
if (filterThemeData.header) {
|
|
9779
9901
|
theme._header = new Header({
|
|
9780
|
-
getPopupContainer: function
|
|
9902
|
+
getPopupContainer: function() {
|
|
9781
9903
|
return theme.$container;
|
|
9782
9904
|
},
|
|
9783
9905
|
color: filterThemeData.header.color,
|
|
@@ -9792,7 +9914,7 @@ function _renderTheme(theme, data) {
|
|
|
9792
9914
|
if (filterThemeData.footer) {
|
|
9793
9915
|
// prettier-ignore
|
|
9794
9916
|
theme._footer = new Footer({
|
|
9795
|
-
getPopupContainer: function
|
|
9917
|
+
getPopupContainer: function() {
|
|
9796
9918
|
return theme.$container;
|
|
9797
9919
|
},
|
|
9798
9920
|
color: filterThemeData.footer.color,
|
|
@@ -9838,7 +9960,7 @@ function _renderTheme(theme, data) {
|
|
|
9838
9960
|
_renderControls(theme, theme._footer.$left, leftBtns1, props);
|
|
9839
9961
|
_renderControls(theme, theme._footer.$right, rightBtns1, props);
|
|
9840
9962
|
}
|
|
9841
|
-
list = [].concat(((_filterThemeData_header = filterThemeData.header) == null ? void 0 : _filterThemeData_header.btnList) || [], (
|
|
9963
|
+
list = [].concat(((_filterThemeData_header = filterThemeData.header) == null ? void 0 : _filterThemeData_header.btnList) || [], (_filterThemeData_footer_btnList = (_filterThemeData_footer = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer.btnList) != null ? _filterThemeData_footer_btnList : []);
|
|
9842
9964
|
// FIXME: 这个逻辑实际上是有问题的
|
|
9843
9965
|
_needTimeLine = list.some(function(item) {
|
|
9844
9966
|
return REC_GROUP.includes(item.iconId) || item.iconId === 'recDropdown';
|
|
@@ -9885,7 +10007,7 @@ function _renderTheme(theme, data) {
|
|
|
9885
10007
|
}
|
|
9886
10008
|
// 回放类型切换正常渲染,用户点击后由 SDK 层在 recDropdownChange 事件中自行处理
|
|
9887
10009
|
if (theme.options.recOptions !== null && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions4.controls.includes('rec')) && _needTimeLine) {
|
|
9888
|
-
[].concat(((_filterThemeData_header1 = filterThemeData.header) == null ? void 0 : _filterThemeData_header1.btnList) || [], (
|
|
10010
|
+
[].concat(((_filterThemeData_header1 = filterThemeData.header) == null ? void 0 : _filterThemeData_header1.btnList) || [], (_filterThemeData_footer_btnList1 = (_filterThemeData_footer1 = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer1.btnList) != null ? _filterThemeData_footer_btnList1 : []).forEach(function(item) {
|
|
9889
10011
|
var _theme__mobileExtend;
|
|
9890
10012
|
if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
|
|
9891
10013
|
});
|
|
@@ -9895,7 +10017,7 @@ function _renderTheme(theme, data) {
|
|
|
9895
10017
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9896
10018
|
theme.controls['alarmMessageControl'] = new Controls['alarmMessage'](_extends$1({
|
|
9897
10019
|
rootContainer: theme.$container,
|
|
9898
|
-
getPopupContainer: function
|
|
10020
|
+
getPopupContainer: function() {
|
|
9899
10021
|
var _theme__mobileExtend;
|
|
9900
10022
|
return (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight;
|
|
9901
10023
|
},
|
|
@@ -9929,33 +10051,33 @@ function _renderTheme(theme, data) {
|
|
|
9929
10051
|
});
|
|
9930
10052
|
})();
|
|
9931
10053
|
}
|
|
9932
|
-
var _renderTimeLine = function
|
|
10054
|
+
var _renderTimeLine = function(theme, container, props) {
|
|
9933
10055
|
if (props === void 0) props = {};
|
|
9934
10056
|
if (!theme.controls.timeLineControl && theme.options.timeLineOptions !== null) {
|
|
9935
|
-
var _ref;
|
|
9936
10057
|
var _theme_urlInfo, _theme_urlInfo1, _theme_options, _theme_options1, _this, _theme_options2;
|
|
10058
|
+
var _showSectionIcon;
|
|
9937
10059
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9938
10060
|
theme.controls.timeLineControl = new Controls['timeLine'](_extends$1({
|
|
9939
|
-
getPopupContainer: function
|
|
10061
|
+
getPopupContainer: function() {
|
|
9940
10062
|
return container;
|
|
9941
10063
|
},
|
|
9942
10064
|
language: theme.options.language,
|
|
9943
10065
|
locales: theme.i18n.translations,
|
|
9944
10066
|
coverQuery: ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.validateCode) ? "decodekey=" + ((_theme_urlInfo1 = theme.urlInfo) == null ? void 0 : _theme_urlInfo1.validateCode) : ''
|
|
9945
10067
|
}, ((_theme_options = theme.options) == null ? void 0 : _theme_options["timeLineOptions"]) || {}, {
|
|
9946
|
-
showSectionIcon: ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["recListOptions"]) !== null ? (
|
|
10068
|
+
showSectionIcon: ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["recListOptions"]) !== null ? (_showSectionIcon = (_this = ((_theme_options2 = theme.options) == null ? void 0 : _theme_options2["timeLineOptions"]) || {}) == null ? void 0 : _this.showSectionIcon) != null ? _showSectionIcon : true : true,
|
|
9947
10069
|
props: props
|
|
9948
10070
|
}));
|
|
9949
10071
|
}
|
|
9950
10072
|
};
|
|
9951
|
-
var _renderSegmentProgress = function
|
|
10073
|
+
var _renderSegmentProgress = function(theme, container, props) {
|
|
9952
10074
|
if (props === void 0) props = {};
|
|
9953
10075
|
if (!theme.controls.segmentProgressControl && theme.options.segmentProgressOptions !== null) {
|
|
9954
10076
|
var _theme_options;
|
|
9955
10077
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9956
10078
|
theme.controls.segmentProgressControl = new Controls['segmentProgress'](_extends$1({
|
|
9957
10079
|
rootContainer: theme.$container,
|
|
9958
|
-
getPopupContainer: function
|
|
10080
|
+
getPopupContainer: function() {
|
|
9959
10081
|
return container;
|
|
9960
10082
|
},
|
|
9961
10083
|
language: theme.options.language,
|
|
@@ -9965,13 +10087,13 @@ var _renderSegmentProgress = function _renderSegmentProgress(theme, container, p
|
|
|
9965
10087
|
}));
|
|
9966
10088
|
}
|
|
9967
10089
|
};
|
|
9968
|
-
var _renderDatePicker = function
|
|
10090
|
+
var _renderDatePicker = function(theme, container, props) {
|
|
9969
10091
|
if (props === void 0) props = {};
|
|
9970
10092
|
if (!theme.controls.dateControl && theme.options.dateOptions !== null) {
|
|
9971
10093
|
var _theme_options;
|
|
9972
10094
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9973
10095
|
theme.controls.dateControl = new Controls['date'](_extends$1({
|
|
9974
|
-
getPopupContainer: function
|
|
10096
|
+
getPopupContainer: function() {
|
|
9975
10097
|
return container;
|
|
9976
10098
|
},
|
|
9977
10099
|
language: theme.options.language,
|
|
@@ -9981,13 +10103,13 @@ var _renderDatePicker = function _renderDatePicker(theme, container, props) {
|
|
|
9981
10103
|
}));
|
|
9982
10104
|
}
|
|
9983
10105
|
};
|
|
9984
|
-
var _renderTimePicker = function
|
|
10106
|
+
var _renderTimePicker = function(theme, container, props) {
|
|
9985
10107
|
if (props === void 0) props = {};
|
|
9986
10108
|
if (!theme.controls.timeControl && theme.options.timeOptions !== null) {
|
|
9987
10109
|
var _theme_options;
|
|
9988
10110
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9989
10111
|
theme.controls.timeControl = new Controls['time'](_extends$1({
|
|
9990
|
-
getPopupContainer: function
|
|
10112
|
+
getPopupContainer: function() {
|
|
9991
10113
|
return container;
|
|
9992
10114
|
},
|
|
9993
10115
|
language: theme.options.language,
|
|
@@ -9997,14 +10119,14 @@ var _renderTimePicker = function _renderTimePicker(theme, container, props) {
|
|
|
9997
10119
|
}));
|
|
9998
10120
|
}
|
|
9999
10121
|
};
|
|
10000
|
-
var _renderRecType = function
|
|
10122
|
+
var _renderRecType = function(theme, container, recType, props) {
|
|
10001
10123
|
if (props === void 0) props = {};
|
|
10002
10124
|
var _theme_controls, _theme_controls1, _theme_controls2;
|
|
10003
10125
|
if (!((_theme_controls = theme.controls) == null ? void 0 : _theme_controls['recControl']) && theme.options.recOptions !== null && container) {
|
|
10004
10126
|
var _theme_options;
|
|
10005
10127
|
// eslint-disable-next-line @typescript-eslint/dot-notation, new-cap, @typescript-eslint/no-unsafe-argument
|
|
10006
10128
|
theme.controls['recControl'] = new Controls['rec'](_extends$1({
|
|
10007
|
-
getPopupContainer: function
|
|
10129
|
+
getPopupContainer: function() {
|
|
10008
10130
|
return container;
|
|
10009
10131
|
},
|
|
10010
10132
|
recType: theme.recType,
|
|
@@ -10108,7 +10230,7 @@ var _renderRecType = function _renderRecType(theme, container, recType, props) {
|
|
|
10108
10230
|
return width - leftWidth - rightWidth > offset;
|
|
10109
10231
|
}
|
|
10110
10232
|
|
|
10111
|
-
function _array_like_to_array(arr, len) {
|
|
10233
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion */ function _array_like_to_array(arr, len) {
|
|
10112
10234
|
if (len == null || len > arr.length) len = arr.length;
|
|
10113
10235
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10114
10236
|
return arr2;
|
|
@@ -10121,8 +10243,11 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
10121
10243
|
reject(error);
|
|
10122
10244
|
return;
|
|
10123
10245
|
}
|
|
10124
|
-
if (info.done)
|
|
10125
|
-
|
|
10246
|
+
if (info.done) {
|
|
10247
|
+
resolve(value);
|
|
10248
|
+
} else {
|
|
10249
|
+
Promise.resolve(value).then(_next, _throw);
|
|
10250
|
+
}
|
|
10126
10251
|
}
|
|
10127
10252
|
function _async_to_generator(fn) {
|
|
10128
10253
|
return function() {
|
|
@@ -10152,29 +10277,15 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
10152
10277
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
10153
10278
|
return Constructor;
|
|
10154
10279
|
}
|
|
10155
|
-
function _create_for_of_iterator_helper_loose(o, allowArrayLike) {
|
|
10156
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
10157
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
|
10158
|
-
if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike) {
|
|
10159
|
-
if (it) o = it;
|
|
10160
|
-
var i = 0;
|
|
10161
|
-
return function() {
|
|
10162
|
-
if (i >= o.length) return {
|
|
10163
|
-
done: true
|
|
10164
|
-
};
|
|
10165
|
-
return {
|
|
10166
|
-
done: false,
|
|
10167
|
-
value: o[i++]
|
|
10168
|
-
};
|
|
10169
|
-
};
|
|
10170
|
-
}
|
|
10171
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10172
|
-
}
|
|
10173
10280
|
function _extends() {
|
|
10174
|
-
_extends = Object.assign || function
|
|
10281
|
+
_extends = Object.assign || function(target) {
|
|
10175
10282
|
for(var i = 1; i < arguments.length; i++){
|
|
10176
10283
|
var source = arguments[i];
|
|
10177
|
-
for(var key in source)
|
|
10284
|
+
for(var key in source){
|
|
10285
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
10286
|
+
target[key] = source[key];
|
|
10287
|
+
}
|
|
10288
|
+
}
|
|
10178
10289
|
}
|
|
10179
10290
|
return target;
|
|
10180
10291
|
};
|
|
@@ -10200,6 +10311,34 @@ function _set_prototype_of(o, p) {
|
|
|
10200
10311
|
};
|
|
10201
10312
|
return _set_prototype_of(o, p);
|
|
10202
10313
|
}
|
|
10314
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
10315
|
+
if (!o) return;
|
|
10316
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
10317
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10318
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10319
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10320
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
10321
|
+
}
|
|
10322
|
+
function _create_for_of_iterator_helper_loose(o, allowArrayLike) {
|
|
10323
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
10324
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
10325
|
+
if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike) {
|
|
10326
|
+
if (it) o = it;
|
|
10327
|
+
var i = 0;
|
|
10328
|
+
return function() {
|
|
10329
|
+
if (i >= o.length) {
|
|
10330
|
+
return {
|
|
10331
|
+
done: true
|
|
10332
|
+
};
|
|
10333
|
+
}
|
|
10334
|
+
return {
|
|
10335
|
+
done: false,
|
|
10336
|
+
value: o[i++]
|
|
10337
|
+
};
|
|
10338
|
+
};
|
|
10339
|
+
}
|
|
10340
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10341
|
+
}
|
|
10203
10342
|
function _ts_generator(thisArg, body) {
|
|
10204
10343
|
var f, y, t, _ = {
|
|
10205
10344
|
label: 0,
|
|
@@ -10209,17 +10348,9 @@ function _ts_generator(thisArg, body) {
|
|
|
10209
10348
|
},
|
|
10210
10349
|
trys: [],
|
|
10211
10350
|
ops: []
|
|
10212
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
10213
|
-
return
|
|
10214
|
-
|
|
10215
|
-
}), d(g, "throw", {
|
|
10216
|
-
value: verb(1)
|
|
10217
|
-
}), d(g, "return", {
|
|
10218
|
-
value: verb(2)
|
|
10219
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
10220
|
-
value: function() {
|
|
10221
|
-
return this;
|
|
10222
|
-
}
|
|
10351
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
10352
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
10353
|
+
return this;
|
|
10223
10354
|
}), g;
|
|
10224
10355
|
function verb(n) {
|
|
10225
10356
|
return function(v) {
|
|
@@ -10299,14 +10430,6 @@ function _ts_generator(thisArg, body) {
|
|
|
10299
10430
|
};
|
|
10300
10431
|
}
|
|
10301
10432
|
}
|
|
10302
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
10303
|
-
if (!o) return;
|
|
10304
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
10305
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10306
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10307
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10308
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
10309
|
-
}
|
|
10310
10433
|
var THEME_DEFAULT_OPTIONS = {
|
|
10311
10434
|
dblClickFullscreen: true,
|
|
10312
10435
|
language: 'zh',
|
|
@@ -10360,7 +10483,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10360
10483
|
_inherits(Theme, EventEmitter);
|
|
10361
10484
|
function Theme(options) {
|
|
10362
10485
|
var _this;
|
|
10363
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
10364
10486
|
var _this_options_volumeOptions, _this_options_volumeOptions1, _this_options_speedOptions, _this_urlInfo_searchParams, _this_urlInfo, _this_options, _this_options1;
|
|
10365
10487
|
_this = EventEmitter.call(this) || this, /** 播放器配置项 */ _this.options = THEME_DEFAULT_OPTIONS, _this.staticPath = '', /** 所有控件列表, 所有控件名称规则(`${iconId}Control`), 如音量控件 this.controls["volumeControl"] @since 0.0.1 */ _this.controls = {}, /**
|
|
10366
10488
|
* @since 0.0.1
|
|
@@ -10381,7 +10503,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10381
10503
|
*/ _this._footerMoreControl = null, /** 头部控件 @since 0.0.1 @private */ _this._header = null, /** 低部控件 @since 0.0.1 @private */ _this._footer = null, /** 回放底部时间轴 @since 0.0.1 @private */ _this._recFooter = null, /**
|
|
10382
10504
|
* 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
|
|
10383
10505
|
* @private
|
|
10384
|
-
*/ _this._mobileExtend = null, /** @since 0.0.1 @private */ _this._interactiveResult = null, /** @since 0.0.1 @private */ _this._themeData = null, _this._fullscreen = null, _this.zoomUtil = null, /** 清除屏幕旋转 */ _this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ _this._cleanUpResizeObserver = null, /** 容器的宽 */ _this._width = 0, /** 容器的高 */ _this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ _this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ _this._orientationAngle = 0, _this._url = '',
|
|
10506
|
+
*/ _this._mobileExtend = null, /** @since 0.0.1 @private */ _this._interactiveResult = null, /** @since 0.0.1 @private */ _this._themeData = null, _this._fullscreen = null, _this.zoomUtil = null, /** 清除屏幕旋转 */ _this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ _this._cleanUpResizeObserver = null, /** 容器的宽 */ _this._width = 0, /** 容器的高 */ _this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ _this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ _this._orientationAngle = 0, _this._url = '', /** 是否播放中 @private */ _this._playing = false, /** @private 加载中 */ _this._loading = false, /** 音量 */ _this._volume = 0, /** 静音 */ _this._muted = false, /** 电子放大倍数 @private */ _this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ _this._zooming = false, /** 录制中 @private */ _this._recording = false, /** 对讲中 @private */ _this._talking = false, /** 倍速 @private */ _this._speed = 1, /** 自定清晰度 @private */ _this._videoLevelAuto = false, /** 清晰度列表 */ _this.videoLevelList = [], /** 回放片段列表 */ _this.recordList = [], /**
|
|
10385
10507
|
* 播放区间(片段分享),null 表示不约束。
|
|
10386
10508
|
* 由 SDK 层在初始化时通过 props 下发,主题层据此决定日历/回放类型按钮
|
|
10387
10509
|
* 是否渲染、片段进度条是否渲染。区间没有运行时变更入口。
|
|
@@ -10426,7 +10548,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10426
10548
|
_this._initClassName();
|
|
10427
10549
|
// 画布需要渲染在 this.contentControl.$content 内
|
|
10428
10550
|
_this.contentControl = new Content({
|
|
10429
|
-
getContainer: function
|
|
10551
|
+
getContainer: function() {
|
|
10430
10552
|
return _this.$container;
|
|
10431
10553
|
},
|
|
10432
10554
|
scaleMode: _this.scaleMode
|
|
@@ -10436,15 +10558,18 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10436
10558
|
});
|
|
10437
10559
|
// zoom utils
|
|
10438
10560
|
__zoom(_this, _this.contentControl.$content, _extends({}, _this.options.zoomOptions || {}, {
|
|
10439
|
-
onTap: function
|
|
10561
|
+
onTap: function() {
|
|
10440
10562
|
var _this__interactiveResult_setTimeoutShow, _this__interactiveResult;
|
|
10441
10563
|
(_this__interactiveResult = _this._interactiveResult) == null ? void 0 : (_this__interactiveResult_setTimeoutShow = _this__interactiveResult.setTimeoutShow) == null ? void 0 : _this__interactiveResult_setTimeoutShow.call(_this__interactiveResult);
|
|
10442
10564
|
}
|
|
10443
10565
|
}));
|
|
10444
|
-
|
|
10445
|
-
_this.
|
|
10566
|
+
var _this_options_volumeOptions_volume, _ref;
|
|
10567
|
+
_this._volume = (_ref = (_this_options_volumeOptions_volume = (_this_options_volumeOptions = _this.options.volumeOptions) == null ? void 0 : _this_options_volumeOptions.volume) != null ? _this_options_volumeOptions_volume : _this.options.volume) != null ? _ref : 0.8;
|
|
10568
|
+
var _this_options_volumeOptions_muted, _ref1;
|
|
10569
|
+
_this._muted = (_ref1 = (_this_options_volumeOptions_muted = (_this_options_volumeOptions1 = _this.options.volumeOptions) == null ? void 0 : _this_options_volumeOptions1.muted) != null ? _this_options_volumeOptions_muted : _this.options.muted) != null ? _ref1 : false;
|
|
10570
|
+
var _this_options_speedOptions_value, _ref2;
|
|
10446
10571
|
// playbackSpeed 是 萤石标准流倍速字段
|
|
10447
|
-
_this._speed = +((
|
|
10572
|
+
_this._speed = +((_ref2 = (_this_options_speedOptions_value = (_this_options_speedOptions = _this.options.speedOptions) == null ? void 0 : _this_options_speedOptions.value) != null ? _this_options_speedOptions_value : (_this_urlInfo = _this.urlInfo) == null ? void 0 : (_this_urlInfo_searchParams = _this_urlInfo.searchParams) == null ? void 0 : _this_urlInfo_searchParams.playbackSpeed) != null ? _ref2 : 1);
|
|
10448
10573
|
_this._mobileInnerWidthHeight = _this._mobileInnerWidthHeight.bind(_this);
|
|
10449
10574
|
_this._throttleMobileInnerWidthHeight = throttle(_this._mobileInnerWidthHeight, 20).bind(_this);
|
|
10450
10575
|
_this._onDblClickFullscreen = debounce(_this._onDblClickFullscreen, 20).bind(_this);
|
|
@@ -10472,9 +10597,9 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10472
10597
|
// flv / mp4:支持自定义 themeData,未传时回退到标准直播模板 LiveTemplate(2026-01-19 起支持自定义)
|
|
10473
10598
|
initialThemeData = themeData !== undefined ? themeData : LiveTemplate;
|
|
10474
10599
|
} else {
|
|
10475
|
-
var
|
|
10600
|
+
var _ref3;
|
|
10476
10601
|
// 其余类型(如 ezopen 私有流):template 优先级高于 themeData,二者都未设置时为 null
|
|
10477
|
-
initialThemeData = (
|
|
10602
|
+
initialThemeData = (_ref3 = template != null ? template : themeData) != null ? _ref3 : null;
|
|
10478
10603
|
}
|
|
10479
10604
|
_this._renderTheme(initialThemeData);
|
|
10480
10605
|
_this._addEventListener();
|
|
@@ -10825,7 +10950,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10825
10950
|
this._fullscreen = new Fullscreen$1(this.$container, {
|
|
10826
10951
|
prefix: PREFIX_CLASS,
|
|
10827
10952
|
// 全屏变化
|
|
10828
|
-
onChange: function
|
|
10953
|
+
onChange: function(info) {
|
|
10829
10954
|
if (info.isCurrentFullscreen) {
|
|
10830
10955
|
_this.emit(EVENTS.fullscreen);
|
|
10831
10956
|
} else if (_this._isCurrentFullscreen) {
|
|
@@ -10843,7 +10968,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10843
10968
|
}
|
|
10844
10969
|
});
|
|
10845
10970
|
// ------------------------------ 旋转方向 -----------------------------
|
|
10846
|
-
var rotateOrientation = function
|
|
10971
|
+
var rotateOrientation = function(orientation) {
|
|
10847
10972
|
if (_this.$container) {
|
|
10848
10973
|
var // 重置移除旋转角度
|
|
10849
10974
|
_this_$container_classList;
|
|
@@ -10966,7 +11091,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10966
11091
|
language: this.options.language,
|
|
10967
11092
|
locales: this.i18n.translations,
|
|
10968
11093
|
rootContainer: this.$container,
|
|
10969
|
-
getPopupContainer: function
|
|
11094
|
+
getPopupContainer: function() {
|
|
10970
11095
|
var _this__header;
|
|
10971
11096
|
return (_this__header = _this._header) == null ? void 0 : _this__header.$right;
|
|
10972
11097
|
},
|
|
@@ -10978,7 +11103,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10978
11103
|
8
|
|
10979
11104
|
],
|
|
10980
11105
|
wrapClassName: "" + PREFIX_CLASS + "-header-more",
|
|
10981
|
-
onOpenChange: function
|
|
11106
|
+
onOpenChange: function(open) {
|
|
10982
11107
|
_this.emit(EVENTS.control.headerMorePanelOpenChange, open);
|
|
10983
11108
|
}
|
|
10984
11109
|
});
|
|
@@ -11021,7 +11146,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11021
11146
|
language: this.options.language,
|
|
11022
11147
|
locales: this.i18n.translations,
|
|
11023
11148
|
rootContainer: this.$container,
|
|
11024
|
-
getPopupContainer: function
|
|
11149
|
+
getPopupContainer: function() {
|
|
11025
11150
|
var _this__footer;
|
|
11026
11151
|
return (_this__footer = _this._footer) == null ? void 0 : _this__footer.$right;
|
|
11027
11152
|
},
|
|
@@ -11033,7 +11158,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11033
11158
|
-8
|
|
11034
11159
|
],
|
|
11035
11160
|
wrapClassName: "" + PREFIX_CLASS + "-footer-more",
|
|
11036
|
-
onOpenChange: function
|
|
11161
|
+
onOpenChange: function(open) {
|
|
11037
11162
|
_this.emit(EVENTS.control.footerMorePanelOpenChange, open);
|
|
11038
11163
|
}
|
|
11039
11164
|
});
|
|
@@ -11282,16 +11407,10 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11282
11407
|
get: /**
|
|
11283
11408
|
* url 信息 播放地址信息
|
|
11284
11409
|
*/ function get() {
|
|
11285
|
-
if (this._urlInfoCache) {
|
|
11286
|
-
return this._urlInfoCache;
|
|
11287
|
-
}
|
|
11288
11410
|
if (this._url) {
|
|
11289
11411
|
return utilsTools.parseEzopenUrl(this._url);
|
|
11290
11412
|
}
|
|
11291
11413
|
return {};
|
|
11292
|
-
},
|
|
11293
|
-
set: function set(info) {
|
|
11294
|
-
this._urlInfoCache = info;
|
|
11295
11414
|
}
|
|
11296
11415
|
},
|
|
11297
11416
|
{
|
|
@@ -11558,7 +11677,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11558
11677
|
* theme.on(Theme.EVENTS.zoomChange, (zoom: number) => {})
|
|
11559
11678
|
* ```
|
|
11560
11679
|
*/ function set(zoom) {
|
|
11561
|
-
var _ref;
|
|
11562
11680
|
var _this_options_zoomOptions;
|
|
11563
11681
|
if (!this._zooming) {
|
|
11564
11682
|
var _this_messageControl_info, _this_messageControl, _this_logger;
|
|
@@ -11567,7 +11685,8 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11567
11685
|
return;
|
|
11568
11686
|
}
|
|
11569
11687
|
zoom = +zoom.toFixed(1);
|
|
11570
|
-
var
|
|
11688
|
+
var _this_options_zoomOptions_max;
|
|
11689
|
+
var ZOOM_MAX = (_this_options_zoomOptions_max = (_this_options_zoomOptions = this.options.zoomOptions) == null ? void 0 : _this_options_zoomOptions.max) != null ? _this_options_zoomOptions_max : ZOOM_DEFAULT_OPTIONS.max;
|
|
11571
11690
|
if (zoom > ZOOM_MAX) {
|
|
11572
11691
|
var _this_messageControl_info1, _this_messageControl1, _this_logger1;
|
|
11573
11692
|
(_this_messageControl1 = this.messageControl) == null ? void 0 : (_this_messageControl_info1 = _this_messageControl1.info) == null ? void 0 : _this_messageControl_info1.call(_this_messageControl1, this.i18n.t('ZOOM_LIMIT_MAX', {
|
|
@@ -11771,7 +11890,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11771
11890
|
zh: zh,
|
|
11772
11891
|
en: en
|
|
11773
11892
|
};
|
|
11774
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.
|
|
11893
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.4-beta.1';
|
|
11775
11894
|
|
|
11776
11895
|
exports.Control = Control;
|
|
11777
11896
|
exports.EVENTS = EVENTS;
|