@ezuikit/player-theme 3.1.3-beta.3 → 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 +526 -401
- package/dist/index.esm.js +526 -401
- package/dist/index.umd.js +1221 -752
- package/dist/style.css +2 -3
- package/dist/style.js +3 -2
- package/dist/types/index.d.ts +45 -87
- package/package.json +1 -1
package/dist/index.esm.js
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
|
import EventEmitter from 'eventemitter3';
|
|
@@ -478,10 +478,14 @@ function _set_prototype_of$z(o, p) {
|
|
|
478
478
|
}(EventEmitter);
|
|
479
479
|
|
|
480
480
|
function _extends$y() {
|
|
481
|
-
_extends$y = Object.assign || function
|
|
481
|
+
_extends$y = Object.assign || function(target) {
|
|
482
482
|
for(var i = 1; i < arguments.length; i++){
|
|
483
483
|
var source = arguments[i];
|
|
484
|
-
for(var key in source)
|
|
484
|
+
for(var key in source){
|
|
485
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
486
|
+
target[key] = source[key];
|
|
487
|
+
}
|
|
488
|
+
}
|
|
485
489
|
}
|
|
486
490
|
return target;
|
|
487
491
|
};
|
|
@@ -555,10 +559,14 @@ var LOADING_DEFAULT_OPTIONS = {};
|
|
|
555
559
|
}(Control);
|
|
556
560
|
|
|
557
561
|
function _extends$x() {
|
|
558
|
-
_extends$x = Object.assign || function
|
|
562
|
+
_extends$x = Object.assign || function(target) {
|
|
559
563
|
for(var i = 1; i < arguments.length; i++){
|
|
560
564
|
var source = arguments[i];
|
|
561
|
-
for(var key in source)
|
|
565
|
+
for(var key in source){
|
|
566
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
567
|
+
target[key] = source[key];
|
|
568
|
+
}
|
|
569
|
+
}
|
|
562
570
|
}
|
|
563
571
|
return target;
|
|
564
572
|
};
|
|
@@ -664,7 +672,7 @@ var POSTER_OPTIONS = {
|
|
|
664
672
|
var Icons = {
|
|
665
673
|
/** 播放 */ 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>',
|
|
666
674
|
/** 暂停 */ 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>',
|
|
667
|
-
/** 音量 */ volume: function
|
|
675
|
+
/** 音量 */ volume: function(prefix) {
|
|
668
676
|
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>';
|
|
669
677
|
},
|
|
670
678
|
/** 全屏 */ 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>',
|
|
@@ -690,7 +698,7 @@ var Icons = {
|
|
|
690
698
|
/** 录制/摄像机 */ 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>',
|
|
691
699
|
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 ',
|
|
692
700
|
/** 对讲 */ 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>',
|
|
693
|
-
talkGrowth: function
|
|
701
|
+
talkGrowth: function(prefix) {
|
|
694
702
|
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>';
|
|
695
703
|
},
|
|
696
704
|
/** 语音广播 */ 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>',
|
|
@@ -732,169 +740,173 @@ var Icons = {
|
|
|
732
740
|
return '<span class="' + PREFIX_CLASS + "-icon " + PREFIX_CLASS + "-icon-" + type + '" ' + attrStr + ">" + svg + "</span>";
|
|
733
741
|
}
|
|
734
742
|
var IconComponents = {
|
|
735
|
-
/** 播放 */ play: function
|
|
743
|
+
/** 播放 */ play: function(attr) {
|
|
736
744
|
if (attr === void 0) attr = {};
|
|
737
745
|
return createIcon(Icons.play, 'play', attr);
|
|
738
746
|
},
|
|
739
|
-
/** 暂停 */ pause: function
|
|
747
|
+
/** 暂停 */ pause: function(attr) {
|
|
740
748
|
if (attr === void 0) attr = {};
|
|
741
749
|
return createIcon(Icons.pause, 'pause', attr);
|
|
742
750
|
},
|
|
743
|
-
volume: function
|
|
751
|
+
volume: function(attr) {
|
|
744
752
|
if (attr === void 0) attr = {};
|
|
745
753
|
return createIcon(Icons.volume(PREFIX_CLASS), 'volume', attr);
|
|
746
754
|
},
|
|
747
|
-
mobileFullscreen: function
|
|
755
|
+
mobileFullscreen: function(attr) {
|
|
748
756
|
if (attr === void 0) attr = {};
|
|
749
757
|
return createIcon(Icons.mobileFullscreen, 'mobile-fullscreen', attr);
|
|
750
758
|
},
|
|
751
|
-
exitFullscreen: function
|
|
759
|
+
exitFullscreen: function(attr) {
|
|
752
760
|
if (attr === void 0) attr = {};
|
|
753
761
|
return createIcon(Icons.exitFullscreen, 'exit-fullscreen', attr);
|
|
754
762
|
},
|
|
755
|
-
fullscreen: function
|
|
763
|
+
fullscreen: function(attr) {
|
|
756
764
|
if (attr === void 0) attr = {};
|
|
757
765
|
return createIcon(Icons.fullscreen, 'fullscreen', attr);
|
|
758
766
|
},
|
|
759
|
-
exitGlobalFullscreen: function
|
|
767
|
+
exitGlobalFullscreen: function(attr) {
|
|
760
768
|
if (attr === void 0) attr = {};
|
|
761
769
|
return createIcon(Icons.exitGlobalFullscreen, 'exit-global-fullscreen', attr);
|
|
762
770
|
},
|
|
763
|
-
globalFullscreen: function
|
|
771
|
+
globalFullscreen: function(attr) {
|
|
764
772
|
if (attr === void 0) attr = {};
|
|
765
773
|
return createIcon(Icons.globalFullscreen, 'global-fullscreen', attr);
|
|
766
774
|
},
|
|
767
|
-
capturePicture: function
|
|
775
|
+
capturePicture: function(attr) {
|
|
768
776
|
if (attr === void 0) attr = {};
|
|
769
777
|
return createIcon(Icons.capturePicture, 'capture-picture', attr);
|
|
770
778
|
},
|
|
771
|
-
ptz: function
|
|
779
|
+
ptz: function(attr) {
|
|
772
780
|
if (attr === void 0) attr = {};
|
|
773
781
|
return createIcon(Icons.ptz, 'ptz', attr);
|
|
774
782
|
},
|
|
775
|
-
record: function
|
|
783
|
+
record: function(attr) {
|
|
776
784
|
if (attr === void 0) attr = {};
|
|
777
785
|
return createIcon(Icons.record, 'record', attr);
|
|
778
786
|
},
|
|
779
|
-
recordCircle: function
|
|
787
|
+
recordCircle: function(attr) {
|
|
780
788
|
if (attr === void 0) attr = {};
|
|
781
789
|
return createIcon(Icons.recordCircle, 'record-circle', attr);
|
|
782
790
|
},
|
|
783
|
-
talk: function
|
|
791
|
+
talk: function(attr) {
|
|
784
792
|
if (attr === void 0) attr = {};
|
|
785
793
|
return createIcon(Icons.talk, 'talk', attr);
|
|
786
794
|
},
|
|
787
|
-
broadcast: function
|
|
795
|
+
broadcast: function(attr) {
|
|
788
796
|
if (attr === void 0) attr = {};
|
|
789
797
|
return createIcon(Icons.broadcast, 'broadcast', attr);
|
|
790
798
|
},
|
|
791
|
-
aiChat: function
|
|
799
|
+
aiChat: function(attr) {
|
|
792
800
|
if (attr === void 0) attr = {};
|
|
793
801
|
return createIcon(Icons.aiChat, 'aiChat', attr);
|
|
794
802
|
},
|
|
795
|
-
talkGrowth: function
|
|
803
|
+
talkGrowth: function(attr) {
|
|
796
804
|
if (attr === void 0) attr = {};
|
|
797
805
|
return createIcon(Icons.talkGrowth(PREFIX_CLASS), 'talk-growth', attr);
|
|
798
806
|
},
|
|
799
|
-
zoom: function
|
|
807
|
+
zoom: function(attr) {
|
|
800
808
|
if (attr === void 0) attr = {};
|
|
801
809
|
return createIcon(Icons.zoom, 'zoom', attr);
|
|
802
810
|
},
|
|
803
|
-
more: function
|
|
811
|
+
more: function(attr) {
|
|
804
812
|
if (attr === void 0) attr = {};
|
|
805
813
|
return createIcon(Icons.more, 'more', attr);
|
|
806
814
|
},
|
|
807
|
-
moreDot: function
|
|
815
|
+
moreDot: function(attr) {
|
|
808
816
|
if (attr === void 0) attr = {};
|
|
809
817
|
return createIcon(Icons.moreDot, 'more-dot', attr);
|
|
810
818
|
},
|
|
811
|
-
minusCircle: function
|
|
819
|
+
minusCircle: function(attr) {
|
|
812
820
|
if (attr === void 0) attr = {};
|
|
813
821
|
return createIcon(Icons.minusCircle, 'minus-circle', attr);
|
|
814
822
|
},
|
|
815
|
-
plusCircle: function
|
|
823
|
+
plusCircle: function(attr) {
|
|
816
824
|
if (attr === void 0) attr = {};
|
|
817
825
|
return createIcon(Icons.plusCircle, 'plus-circle', attr);
|
|
818
826
|
},
|
|
819
|
-
sdk: function
|
|
827
|
+
sdk: function(attr) {
|
|
820
828
|
if (attr === void 0) attr = {};
|
|
821
829
|
return createIcon(Icons.sdk, 'sdk', attr);
|
|
822
830
|
},
|
|
823
|
-
cloudRec: function
|
|
831
|
+
cloudRec: function(attr) {
|
|
824
832
|
if (attr === void 0) attr = {};
|
|
825
833
|
return createIcon(Icons.cloudRec, 'cloud-rec', attr);
|
|
826
834
|
},
|
|
827
|
-
cloudRecord: function
|
|
835
|
+
cloudRecord: function(attr) {
|
|
828
836
|
if (attr === void 0) attr = {};
|
|
829
837
|
return createIcon(Icons.cloudRecord, 'cloud-record', attr);
|
|
830
838
|
},
|
|
831
|
-
error: function
|
|
839
|
+
error: function(attr) {
|
|
832
840
|
if (attr === void 0) attr = {};
|
|
833
841
|
return createIcon(Icons.error, 'error', attr);
|
|
834
842
|
},
|
|
835
|
-
info: function
|
|
843
|
+
info: function(attr) {
|
|
836
844
|
if (attr === void 0) attr = {};
|
|
837
845
|
return createIcon(Icons.info, 'info', attr);
|
|
838
846
|
},
|
|
839
|
-
close: function
|
|
847
|
+
close: function(attr) {
|
|
840
848
|
if (attr === void 0) attr = {};
|
|
841
849
|
return createIcon(Icons.close, 'close', attr);
|
|
842
850
|
},
|
|
843
|
-
closeCircleOutLined: function
|
|
851
|
+
closeCircleOutLined: function(attr) {
|
|
844
852
|
if (attr === void 0) attr = {};
|
|
845
853
|
return createIcon(Icons.closeCircleOutLined, 'close-circle', attr);
|
|
846
854
|
},
|
|
847
|
-
warnCircleOutLined: function
|
|
855
|
+
warnCircleOutLined: function(attr) {
|
|
848
856
|
if (attr === void 0) attr = {};
|
|
849
857
|
return createIcon(Icons.warnCircleOutLined, 'warn-circle', attr);
|
|
850
858
|
},
|
|
851
|
-
infoCircleOutLined: function
|
|
859
|
+
infoCircleOutLined: function(attr) {
|
|
852
860
|
if (attr === void 0) attr = {};
|
|
853
861
|
return createIcon(Icons.infoCircleOutLined, 'info-circle', attr);
|
|
854
862
|
},
|
|
855
|
-
date: function
|
|
863
|
+
date: function(attr) {
|
|
856
864
|
if (attr === void 0) attr = {};
|
|
857
865
|
return createIcon(Icons.date, 'date', attr);
|
|
858
866
|
},
|
|
859
|
-
filter: function
|
|
867
|
+
filter: function(attr) {
|
|
860
868
|
if (attr === void 0) attr = {};
|
|
861
869
|
return createIcon(Icons.filter, 'filter', attr);
|
|
862
870
|
},
|
|
863
|
-
add: function
|
|
871
|
+
add: function(attr) {
|
|
864
872
|
if (attr === void 0) attr = {};
|
|
865
873
|
return createIcon(Icons.add, 'add', attr);
|
|
866
874
|
},
|
|
867
|
-
reduce: function
|
|
875
|
+
reduce: function(attr) {
|
|
868
876
|
if (attr === void 0) attr = {};
|
|
869
877
|
return createIcon(Icons.reduce, 'reduce', attr);
|
|
870
878
|
},
|
|
871
|
-
/** 直播 */ live: function
|
|
879
|
+
/** 直播 */ live: function(attr) {
|
|
872
880
|
if (attr === void 0) attr = {};
|
|
873
881
|
return createIcon(Icons.live, 'live', attr);
|
|
874
882
|
},
|
|
875
|
-
/** 回放 */ recDropdown: function
|
|
883
|
+
/** 回放 */ recDropdown: function(attr) {
|
|
876
884
|
if (attr === void 0) attr = {};
|
|
877
885
|
return createIcon(Icons.recDropdown, 'rec-dropdown', attr);
|
|
878
886
|
},
|
|
879
|
-
/** 录像列表 */ recList: function
|
|
887
|
+
/** 录像列表 */ recList: function(attr) {
|
|
880
888
|
if (attr === void 0) attr = {};
|
|
881
889
|
return createIcon(Icons.list, 'rec-list', attr);
|
|
882
890
|
},
|
|
883
|
-
/** 消息 */ alarmMessage: function
|
|
891
|
+
/** 消息 */ alarmMessage: function(attr) {
|
|
884
892
|
if (attr === void 0) attr = {};
|
|
885
893
|
return createIcon(Icons.alarmMessage, 'alarm-message', attr);
|
|
886
894
|
},
|
|
887
|
-
time: function
|
|
895
|
+
time: function(attr) {
|
|
888
896
|
if (attr === void 0) attr = {};
|
|
889
897
|
return createIcon(Icons.time, 'time', attr);
|
|
890
898
|
}
|
|
891
899
|
};
|
|
892
900
|
|
|
893
901
|
function _extends$w() {
|
|
894
|
-
_extends$w = Object.assign || function
|
|
902
|
+
_extends$w = Object.assign || function(target) {
|
|
895
903
|
for(var i = 1; i < arguments.length; i++){
|
|
896
904
|
var source = arguments[i];
|
|
897
|
-
for(var key in source)
|
|
905
|
+
for(var key in source){
|
|
906
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
907
|
+
target[key] = source[key];
|
|
908
|
+
}
|
|
909
|
+
}
|
|
898
910
|
}
|
|
899
911
|
return target;
|
|
900
912
|
};
|
|
@@ -1087,10 +1099,14 @@ function _create_class$8(Constructor, protoProps, staticProps) {
|
|
|
1087
1099
|
return Constructor;
|
|
1088
1100
|
}
|
|
1089
1101
|
function _extends$v() {
|
|
1090
|
-
_extends$v = Object.assign || function
|
|
1102
|
+
_extends$v = Object.assign || function(target) {
|
|
1091
1103
|
for(var i = 1; i < arguments.length; i++){
|
|
1092
1104
|
var source = arguments[i];
|
|
1093
|
-
for(var key in source)
|
|
1105
|
+
for(var key in source){
|
|
1106
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1107
|
+
target[key] = source[key];
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1094
1110
|
}
|
|
1095
1111
|
return target;
|
|
1096
1112
|
};
|
|
@@ -1209,6 +1225,14 @@ function _array_like_to_array$2(arr, len) {
|
|
|
1209
1225
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1210
1226
|
return arr2;
|
|
1211
1227
|
}
|
|
1228
|
+
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
1229
|
+
if (!o) return;
|
|
1230
|
+
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
1231
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1232
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1233
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1234
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
1235
|
+
}
|
|
1212
1236
|
function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
1213
1237
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
1214
1238
|
if (it) return (it = it.call(o)).next.bind(it);
|
|
@@ -1216,24 +1240,18 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
|
1216
1240
|
if (it) o = it;
|
|
1217
1241
|
var i = 0;
|
|
1218
1242
|
return function() {
|
|
1219
|
-
if (i >= o.length)
|
|
1220
|
-
|
|
1221
|
-
|
|
1243
|
+
if (i >= o.length) {
|
|
1244
|
+
return {
|
|
1245
|
+
done: true
|
|
1246
|
+
};
|
|
1247
|
+
}
|
|
1222
1248
|
return {
|
|
1223
1249
|
done: false,
|
|
1224
1250
|
value: o[i++]
|
|
1225
1251
|
};
|
|
1226
1252
|
};
|
|
1227
1253
|
}
|
|
1228
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance
|
|
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);
|
|
1254
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1237
1255
|
}
|
|
1238
1256
|
/**
|
|
1239
1257
|
* 工具类
|
|
@@ -1260,7 +1278,7 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
1260
1278
|
*/ // prettier-ignore
|
|
1261
1279
|
Utils.orientationEventListener = function orientationEventListener(change) {
|
|
1262
1280
|
var _orientationTimer = null;
|
|
1263
|
-
var getOrientation = function
|
|
1281
|
+
var getOrientation = function() {
|
|
1264
1282
|
var _screen, _window;
|
|
1265
1283
|
// 现代浏览器方案
|
|
1266
1284
|
if ((_screen = screen) == null ? void 0 : _screen.orientation) {
|
|
@@ -1297,7 +1315,7 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
1297
1315
|
};
|
|
1298
1316
|
var orientation = getOrientation();
|
|
1299
1317
|
// 监听变化(兼容写法)
|
|
1300
|
-
var onOrientationChange = function
|
|
1318
|
+
var onOrientationChange = function() {
|
|
1301
1319
|
var newOrientation = getOrientation == null ? void 0 : getOrientation();
|
|
1302
1320
|
// console.log("onOrientationChange", newOrientation, orientation)
|
|
1303
1321
|
// prettier-ignore
|
|
@@ -1306,7 +1324,7 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
1306
1324
|
orientation = newOrientation;
|
|
1307
1325
|
}
|
|
1308
1326
|
};
|
|
1309
|
-
var onResize = function
|
|
1327
|
+
var onResize = function() {
|
|
1310
1328
|
// 防抖处理
|
|
1311
1329
|
if (_orientationTimer) clearTimeout(_orientationTimer);
|
|
1312
1330
|
if (onOrientationChange) _orientationTimer = setTimeout(onOrientationChange, 200);
|
|
@@ -1361,7 +1379,7 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
1361
1379
|
*/ // prettier-ignore
|
|
1362
1380
|
Utils.resizeObserver = function resizeObserver(node, callback) {
|
|
1363
1381
|
// prettier-ignore
|
|
1364
|
-
var observerFn = function
|
|
1382
|
+
var observerFn = function(entries, observer) {
|
|
1365
1383
|
for(var _iterator = _create_for_of_iterator_helper_loose$2(entries), _step; !(_step = _iterator()).done;){
|
|
1366
1384
|
var entry = _step.value;
|
|
1367
1385
|
if (entry.target === node) {
|
|
@@ -1425,9 +1443,9 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1425
1443
|
showPlus: false,
|
|
1426
1444
|
showMinus: false,
|
|
1427
1445
|
isRotated: false,
|
|
1428
|
-
onChange: function
|
|
1446
|
+
onChange: function() {
|
|
1429
1447
|
/* no-op */ },
|
|
1430
|
-
renderText: function
|
|
1448
|
+
renderText: function(_, percent) {
|
|
1431
1449
|
return (percent * 100).toFixed(0);
|
|
1432
1450
|
}
|
|
1433
1451
|
};
|
|
@@ -1450,7 +1468,6 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1450
1468
|
* })
|
|
1451
1469
|
*/ var Progress = /*#__PURE__*/ function() {
|
|
1452
1470
|
function Progress(options) {
|
|
1453
|
-
var _this_options_defaultValue;
|
|
1454
1471
|
var _this_options_range;
|
|
1455
1472
|
this._percent = 0;
|
|
1456
1473
|
this._value = 0;
|
|
@@ -1472,6 +1489,7 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1472
1489
|
this.$container = options.container;
|
|
1473
1490
|
this._render();
|
|
1474
1491
|
this._eventListeners();
|
|
1492
|
+
var _this_options_defaultValue;
|
|
1475
1493
|
var value = (_this_options_defaultValue = this.options.defaultValue) != null ? _this_options_defaultValue : this.options.range[0]; // 设置默认值
|
|
1476
1494
|
this._value = +value.toFixed(2); // 保留两位小数
|
|
1477
1495
|
// prettier-ignore
|
|
@@ -1544,8 +1562,8 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1544
1562
|
this._percent = +((value - this.options.range[0]) / (this.options.range[1] - this.options.range[0])).toFixed(2);
|
|
1545
1563
|
};
|
|
1546
1564
|
_proto._render = function _render() {
|
|
1547
|
-
var _this_options_className;
|
|
1548
1565
|
this.$content = document.createElement('div');
|
|
1566
|
+
var _this_options_className;
|
|
1549
1567
|
this.$content.className = PREFIX_CLASS + "-progress " + ((_this_options_className = this.options.className) != null ? _this_options_className : '');
|
|
1550
1568
|
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>" : '');
|
|
1551
1569
|
this.$container.appendChild(this.$content);
|
|
@@ -1738,10 +1756,14 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
1738
1756
|
return Constructor;
|
|
1739
1757
|
}
|
|
1740
1758
|
function _extends$u() {
|
|
1741
|
-
_extends$u = Object.assign || function
|
|
1759
|
+
_extends$u = Object.assign || function(target) {
|
|
1742
1760
|
for(var i = 1; i < arguments.length; i++){
|
|
1743
1761
|
var source = arguments[i];
|
|
1744
|
-
for(var key in source)
|
|
1762
|
+
for(var key in source){
|
|
1763
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1764
|
+
target[key] = source[key];
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1745
1767
|
}
|
|
1746
1768
|
return target;
|
|
1747
1769
|
};
|
|
@@ -1772,8 +1794,8 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1772
1794
|
muted: false,
|
|
1773
1795
|
open: false,
|
|
1774
1796
|
trigger: 'hover',
|
|
1775
|
-
onOpenChange: function
|
|
1776
|
-
onChange: function
|
|
1797
|
+
onOpenChange: function() {},
|
|
1798
|
+
onChange: function() {}
|
|
1777
1799
|
};
|
|
1778
1800
|
/**
|
|
1779
1801
|
* 音量调节控件
|
|
@@ -1801,7 +1823,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1801
1823
|
if (!(Utils.isMobile || _this._options.PLAY_TYPE === 'ezopen' || _this._options.PLAY_TYPE === 'ezhls')) {
|
|
1802
1824
|
var _this__options_props4, _this__options_props5;
|
|
1803
1825
|
_this.picker = new Picker(_this.$container, {
|
|
1804
|
-
getPopupContainer: function
|
|
1826
|
+
getPopupContainer: function() {
|
|
1805
1827
|
return _this.$container;
|
|
1806
1828
|
},
|
|
1807
1829
|
trigger: _this._options.trigger,
|
|
@@ -1812,7 +1834,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1812
1834
|
-10
|
|
1813
1835
|
],
|
|
1814
1836
|
placement: 'top',
|
|
1815
|
-
onOpenChange: function
|
|
1837
|
+
onOpenChange: function(open) {
|
|
1816
1838
|
_this._options.onOpenChange == null ? void 0 : _this._options.onOpenChange.call(_this._options, open, _this._muted ? _this._lastVolume : _this.volume, _this._muted);
|
|
1817
1839
|
// prettier-ignore
|
|
1818
1840
|
_this.emit(EVENTS.control.volumePanelOpenChange, open, _this._lastVolume, _this._muted);
|
|
@@ -1829,10 +1851,10 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1829
1851
|
showPercent: true,
|
|
1830
1852
|
className: "" + PREFIX_CLASS + "-volume-progress",
|
|
1831
1853
|
// 为了解决点击进度调取消静音
|
|
1832
|
-
onProgressClick: function
|
|
1854
|
+
onProgressClick: function() {
|
|
1833
1855
|
_this.muted = false;
|
|
1834
1856
|
},
|
|
1835
|
-
onChange: function
|
|
1857
|
+
onChange: function(value) {
|
|
1836
1858
|
if (value !== _this._volume) _this.volume = value;
|
|
1837
1859
|
}
|
|
1838
1860
|
});
|
|
@@ -2009,8 +2031,11 @@ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
2009
2031
|
reject(error);
|
|
2010
2032
|
return;
|
|
2011
2033
|
}
|
|
2012
|
-
if (info.done)
|
|
2013
|
-
|
|
2034
|
+
if (info.done) {
|
|
2035
|
+
resolve(value);
|
|
2036
|
+
} else {
|
|
2037
|
+
Promise.resolve(value).then(_next, _throw);
|
|
2038
|
+
}
|
|
2014
2039
|
}
|
|
2015
2040
|
function _async_to_generator$7(fn) {
|
|
2016
2041
|
return function() {
|
|
@@ -2036,17 +2061,9 @@ function _ts_generator$7(thisArg, body) {
|
|
|
2036
2061
|
},
|
|
2037
2062
|
trys: [],
|
|
2038
2063
|
ops: []
|
|
2039
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
2040
|
-
return
|
|
2041
|
-
|
|
2042
|
-
}), d(g, "throw", {
|
|
2043
|
-
value: verb(1)
|
|
2044
|
-
}), d(g, "return", {
|
|
2045
|
-
value: verb(2)
|
|
2046
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
2047
|
-
value: function() {
|
|
2048
|
-
return this;
|
|
2049
|
-
}
|
|
2064
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
2065
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
2066
|
+
return this;
|
|
2050
2067
|
}), g;
|
|
2051
2068
|
function verb(n) {
|
|
2052
2069
|
return function(v) {
|
|
@@ -2450,10 +2467,14 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2450
2467
|
}();
|
|
2451
2468
|
|
|
2452
2469
|
function _extends$t() {
|
|
2453
|
-
_extends$t = Object.assign || function
|
|
2470
|
+
_extends$t = Object.assign || function(target) {
|
|
2454
2471
|
for(var i = 1; i < arguments.length; i++){
|
|
2455
2472
|
var source = arguments[i];
|
|
2456
|
-
for(var key in source)
|
|
2473
|
+
for(var key in source){
|
|
2474
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2475
|
+
target[key] = source[key];
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2457
2478
|
}
|
|
2458
2479
|
return target;
|
|
2459
2480
|
};
|
|
@@ -2553,10 +2574,14 @@ function _set_prototype_of$t(o, p) {
|
|
|
2553
2574
|
}(Control);
|
|
2554
2575
|
|
|
2555
2576
|
function _extends$s() {
|
|
2556
|
-
_extends$s = Object.assign || function
|
|
2577
|
+
_extends$s = Object.assign || function(target) {
|
|
2557
2578
|
for(var i = 1; i < arguments.length; i++){
|
|
2558
2579
|
var source = arguments[i];
|
|
2559
|
-
for(var key in source)
|
|
2580
|
+
for(var key in source){
|
|
2581
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2582
|
+
target[key] = source[key];
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2560
2585
|
}
|
|
2561
2586
|
return target;
|
|
2562
2587
|
};
|
|
@@ -3315,6 +3340,12 @@ var en = {
|
|
|
3315
3340
|
defaultActive: 0,
|
|
3316
3341
|
isrender: 1
|
|
3317
3342
|
},
|
|
3343
|
+
{
|
|
3344
|
+
iconId: 'recordvideo',
|
|
3345
|
+
part: 'left',
|
|
3346
|
+
defaultActive: 0,
|
|
3347
|
+
isrender: 1
|
|
3348
|
+
},
|
|
3318
3349
|
{
|
|
3319
3350
|
iconId: 'zoom',
|
|
3320
3351
|
part: 'left',
|
|
@@ -3362,6 +3393,12 @@ var en = {
|
|
|
3362
3393
|
defaultActive: 0,
|
|
3363
3394
|
isrender: 1
|
|
3364
3395
|
},
|
|
3396
|
+
{
|
|
3397
|
+
iconId: 'recordvideo',
|
|
3398
|
+
part: 'left',
|
|
3399
|
+
defaultActive: 0,
|
|
3400
|
+
isrender: 1
|
|
3401
|
+
},
|
|
3365
3402
|
{
|
|
3366
3403
|
iconId: 'zoom',
|
|
3367
3404
|
part: 'left',
|
|
@@ -4070,10 +4107,14 @@ function _set_prototype_of$r(o, p) {
|
|
|
4070
4107
|
}(EventEmitter);
|
|
4071
4108
|
|
|
4072
4109
|
function _extends$r() {
|
|
4073
|
-
_extends$r = Object.assign || function
|
|
4110
|
+
_extends$r = Object.assign || function(target) {
|
|
4074
4111
|
for(var i = 1; i < arguments.length; i++){
|
|
4075
4112
|
var source = arguments[i];
|
|
4076
|
-
for(var key in source)
|
|
4113
|
+
for(var key in source){
|
|
4114
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
4115
|
+
target[key] = source[key];
|
|
4116
|
+
}
|
|
4117
|
+
}
|
|
4077
4118
|
}
|
|
4078
4119
|
return target;
|
|
4079
4120
|
};
|
|
@@ -4125,7 +4166,7 @@ function _set_prototype_of$q(o, p) {
|
|
|
4125
4166
|
title: (_this_locale1 = this.locale) == null ? void 0 : _this_locale1.BTN_MORE
|
|
4126
4167
|
});
|
|
4127
4168
|
this.picker = new Picker(this.$container, {
|
|
4128
|
-
getPopupContainer: function
|
|
4169
|
+
getPopupContainer: function() {
|
|
4129
4170
|
return _this.$container;
|
|
4130
4171
|
},
|
|
4131
4172
|
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
@@ -4864,10 +4905,14 @@ function _create_class$5(Constructor, protoProps, staticProps) {
|
|
|
4864
4905
|
return Constructor;
|
|
4865
4906
|
}
|
|
4866
4907
|
function _extends$q() {
|
|
4867
|
-
_extends$q = Object.assign || function
|
|
4908
|
+
_extends$q = Object.assign || function(target) {
|
|
4868
4909
|
for(var i = 1; i < arguments.length; i++){
|
|
4869
4910
|
var source = arguments[i];
|
|
4870
|
-
for(var key in source)
|
|
4911
|
+
for(var key in source){
|
|
4912
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
4913
|
+
target[key] = source[key];
|
|
4914
|
+
}
|
|
4915
|
+
}
|
|
4871
4916
|
}
|
|
4872
4917
|
return target;
|
|
4873
4918
|
};
|
|
@@ -4946,14 +4991,14 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4946
4991
|
showPlus: true,
|
|
4947
4992
|
showPercent: true,
|
|
4948
4993
|
isRotated: this._isRotated,
|
|
4949
|
-
onChange: function
|
|
4994
|
+
onChange: function(value, percent, range) {
|
|
4950
4995
|
if (value !== _this._value) {
|
|
4951
4996
|
_this._value = value;
|
|
4952
4997
|
_this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, value, percent, range);
|
|
4953
4998
|
_this.emit(EVENTS.control.zoomChange, value, percent, range);
|
|
4954
4999
|
}
|
|
4955
5000
|
},
|
|
4956
|
-
renderText: function
|
|
5001
|
+
renderText: function(value) {
|
|
4957
5002
|
return "" + value + "X";
|
|
4958
5003
|
}
|
|
4959
5004
|
});
|
|
@@ -5033,10 +5078,14 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
5033
5078
|
}(Control);
|
|
5034
5079
|
|
|
5035
5080
|
function _extends$p() {
|
|
5036
|
-
_extends$p = Object.assign || function
|
|
5081
|
+
_extends$p = Object.assign || function(target) {
|
|
5037
5082
|
for(var i = 1; i < arguments.length; i++){
|
|
5038
5083
|
var source = arguments[i];
|
|
5039
|
-
for(var key in source)
|
|
5084
|
+
for(var key in source){
|
|
5085
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5086
|
+
target[key] = source[key];
|
|
5087
|
+
}
|
|
5088
|
+
}
|
|
5040
5089
|
}
|
|
5041
5090
|
return target;
|
|
5042
5091
|
};
|
|
@@ -5045,14 +5094,14 @@ function _extends$p() {
|
|
|
5045
5094
|
function __zoom(theme, container, options) {
|
|
5046
5095
|
theme.zoomUtil = new Zoom$1(container, _extends$p({}, options || {}, {
|
|
5047
5096
|
min: 1,
|
|
5048
|
-
onChange: function
|
|
5097
|
+
onChange: function(zoom, reset) {
|
|
5049
5098
|
if (zoom !== theme._zoom) {
|
|
5050
5099
|
var _options_onChange;
|
|
5051
5100
|
theme.zoom = zoom;
|
|
5052
5101
|
options == null ? void 0 : (_options_onChange = options.onChange) == null ? void 0 : _options_onChange.call(options, zoom, reset);
|
|
5053
5102
|
}
|
|
5054
5103
|
},
|
|
5055
|
-
onTranslateChange: function
|
|
5104
|
+
onTranslateChange: function(pos) {
|
|
5056
5105
|
var _options_onTranslateChange;
|
|
5057
5106
|
theme.emit(EVENTS.zoomTranslateChange, pos);
|
|
5058
5107
|
options == null ? void 0 : (_options_onTranslateChange = options.onTranslateChange) == null ? void 0 : _options_onTranslateChange.call(options, pos);
|
|
@@ -5069,8 +5118,11 @@ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5069
5118
|
reject(error);
|
|
5070
5119
|
return;
|
|
5071
5120
|
}
|
|
5072
|
-
if (info.done)
|
|
5073
|
-
|
|
5121
|
+
if (info.done) {
|
|
5122
|
+
resolve(value);
|
|
5123
|
+
} else {
|
|
5124
|
+
Promise.resolve(value).then(_next, _throw);
|
|
5125
|
+
}
|
|
5074
5126
|
}
|
|
5075
5127
|
function _async_to_generator$6(fn) {
|
|
5076
5128
|
return function() {
|
|
@@ -5096,17 +5148,9 @@ function _ts_generator$6(thisArg, body) {
|
|
|
5096
5148
|
},
|
|
5097
5149
|
trys: [],
|
|
5098
5150
|
ops: []
|
|
5099
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
5100
|
-
return
|
|
5101
|
-
|
|
5102
|
-
}), d(g, "throw", {
|
|
5103
|
-
value: verb(1)
|
|
5104
|
-
}), d(g, "return", {
|
|
5105
|
-
value: verb(2)
|
|
5106
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
5107
|
-
value: function() {
|
|
5108
|
-
return this;
|
|
5109
|
-
}
|
|
5151
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
5152
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
5153
|
+
return this;
|
|
5110
5154
|
}), g;
|
|
5111
5155
|
function verb(n) {
|
|
5112
5156
|
return function(v) {
|
|
@@ -5262,8 +5306,11 @@ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5262
5306
|
reject(error);
|
|
5263
5307
|
return;
|
|
5264
5308
|
}
|
|
5265
|
-
if (info.done)
|
|
5266
|
-
|
|
5309
|
+
if (info.done) {
|
|
5310
|
+
resolve(value);
|
|
5311
|
+
} else {
|
|
5312
|
+
Promise.resolve(value).then(_next, _throw);
|
|
5313
|
+
}
|
|
5267
5314
|
}
|
|
5268
5315
|
function _async_to_generator$5(fn) {
|
|
5269
5316
|
return function() {
|
|
@@ -5281,10 +5328,14 @@ function _async_to_generator$5(fn) {
|
|
|
5281
5328
|
};
|
|
5282
5329
|
}
|
|
5283
5330
|
function _extends$o() {
|
|
5284
|
-
_extends$o = Object.assign || function
|
|
5331
|
+
_extends$o = Object.assign || function(target) {
|
|
5285
5332
|
for(var i = 1; i < arguments.length; i++){
|
|
5286
5333
|
var source = arguments[i];
|
|
5287
|
-
for(var key in source)
|
|
5334
|
+
for(var key in source){
|
|
5335
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5336
|
+
target[key] = source[key];
|
|
5337
|
+
}
|
|
5338
|
+
}
|
|
5288
5339
|
}
|
|
5289
5340
|
return target;
|
|
5290
5341
|
};
|
|
@@ -5299,17 +5350,9 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5299
5350
|
},
|
|
5300
5351
|
trys: [],
|
|
5301
5352
|
ops: []
|
|
5302
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
5303
|
-
return
|
|
5304
|
-
|
|
5305
|
-
}), d(g, "throw", {
|
|
5306
|
-
value: verb(1)
|
|
5307
|
-
}), d(g, "return", {
|
|
5308
|
-
value: verb(2)
|
|
5309
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
5310
|
-
value: function() {
|
|
5311
|
-
return this;
|
|
5312
|
-
}
|
|
5353
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
5354
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
5355
|
+
return this;
|
|
5313
5356
|
}), g;
|
|
5314
5357
|
function verb(n) {
|
|
5315
5358
|
return function(v) {
|
|
@@ -5402,10 +5445,10 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5402
5445
|
* @param {IThemeData} themeData 主题数据
|
|
5403
5446
|
* @returns
|
|
5404
5447
|
*/ function _filterControls(themeData) {
|
|
5405
|
-
var _ref;
|
|
5406
5448
|
var _themeData_header, _themeData_footer;
|
|
5407
5449
|
var data = {};
|
|
5408
|
-
|
|
5450
|
+
var _themeData_autoFocus;
|
|
5451
|
+
data.autoFocus = (_themeData_autoFocus = themeData == null ? void 0 : themeData.autoFocus) != null ? _themeData_autoFocus : 3; // 3s
|
|
5409
5452
|
data.poster = (themeData == null ? void 0 : themeData.poster) || ''; //
|
|
5410
5453
|
var deviceControls = [];
|
|
5411
5454
|
var recControls = [];
|
|
@@ -5710,10 +5753,14 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
|
|
|
5710
5753
|
}();
|
|
5711
5754
|
|
|
5712
5755
|
function _extends$n() {
|
|
5713
|
-
_extends$n = Object.assign || function
|
|
5756
|
+
_extends$n = Object.assign || function(target) {
|
|
5714
5757
|
for(var i = 1; i < arguments.length; i++){
|
|
5715
5758
|
var source = arguments[i];
|
|
5716
|
-
for(var key in source)
|
|
5759
|
+
for(var key in source){
|
|
5760
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5761
|
+
target[key] = source[key];
|
|
5762
|
+
}
|
|
5763
|
+
}
|
|
5717
5764
|
}
|
|
5718
5765
|
return target;
|
|
5719
5766
|
};
|
|
@@ -5751,10 +5798,14 @@ var Footer = /*#__PURE__*/ function(Component) {
|
|
|
5751
5798
|
}(Component);
|
|
5752
5799
|
|
|
5753
5800
|
function _extends$m() {
|
|
5754
|
-
_extends$m = Object.assign || function
|
|
5801
|
+
_extends$m = Object.assign || function(target) {
|
|
5755
5802
|
for(var i = 1; i < arguments.length; i++){
|
|
5756
5803
|
var source = arguments[i];
|
|
5757
|
-
for(var key in source)
|
|
5804
|
+
for(var key in source){
|
|
5805
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5806
|
+
target[key] = source[key];
|
|
5807
|
+
}
|
|
5808
|
+
}
|
|
5758
5809
|
}
|
|
5759
5810
|
return target;
|
|
5760
5811
|
};
|
|
@@ -5806,13 +5857,13 @@ function interactiveHF($container, second, callback) {
|
|
|
5806
5857
|
var _alwaysDisplay = false;
|
|
5807
5858
|
var _$header = $container.querySelector("." + PREFIX_CLASS + "-header");
|
|
5808
5859
|
var _$footer = $container.querySelector("." + PREFIX_CLASS + "-footer");
|
|
5809
|
-
var _clearTimeout = function
|
|
5860
|
+
var _clearTimeout = function() {
|
|
5810
5861
|
if (_timer) {
|
|
5811
5862
|
clearTimeout(_timer);
|
|
5812
5863
|
_timer = null;
|
|
5813
5864
|
}
|
|
5814
5865
|
};
|
|
5815
|
-
var _show = function
|
|
5866
|
+
var _show = function() {
|
|
5816
5867
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5817
5868
|
_$header == null ? void 0 : _$header.classList.remove("" + PREFIX_CLASS + "-hide-transition");
|
|
5818
5869
|
_$footer == null ? void 0 : _$footer.classList.remove("" + PREFIX_CLASS + "-hide-transition");
|
|
@@ -5822,7 +5873,7 @@ function interactiveHF($container, second, callback) {
|
|
|
5822
5873
|
}
|
|
5823
5874
|
_open = true;
|
|
5824
5875
|
};
|
|
5825
|
-
var _hide = function
|
|
5876
|
+
var _hide = function() {
|
|
5826
5877
|
if (_alwaysDisplay) {
|
|
5827
5878
|
return;
|
|
5828
5879
|
}
|
|
@@ -5837,27 +5888,27 @@ function interactiveHF($container, second, callback) {
|
|
|
5837
5888
|
}
|
|
5838
5889
|
_open = false;
|
|
5839
5890
|
};
|
|
5840
|
-
var _setTimeoutShow = function
|
|
5891
|
+
var _setTimeoutShow = function() {
|
|
5841
5892
|
_show == null ? void 0 : _show();
|
|
5842
5893
|
_timer = setTimeout(function() {
|
|
5843
5894
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5844
5895
|
_hide == null ? void 0 : _hide();
|
|
5845
5896
|
}, second);
|
|
5846
5897
|
};
|
|
5847
|
-
var _headerFooterMousemove = function
|
|
5898
|
+
var _headerFooterMousemove = function(e) {
|
|
5848
5899
|
var // 鼠标在header footer 移动, 不允许消失及不要冒泡
|
|
5849
5900
|
_e_stopPropagation;
|
|
5850
5901
|
e == null ? void 0 : (_e_stopPropagation = e.stopPropagation) == null ? void 0 : _e_stopPropagation.call(e);
|
|
5851
5902
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5852
5903
|
};
|
|
5853
|
-
var _touchStart = function
|
|
5904
|
+
var _touchStart = function() {
|
|
5854
5905
|
if (_open) {
|
|
5855
5906
|
_hide == null ? void 0 : _hide();
|
|
5856
5907
|
} else {
|
|
5857
5908
|
_setTimeoutShow == null ? void 0 : _setTimeoutShow();
|
|
5858
5909
|
}
|
|
5859
5910
|
};
|
|
5860
|
-
var _headerFooterTouchStart = function
|
|
5911
|
+
var _headerFooterTouchStart = function(e) {
|
|
5861
5912
|
var // 移动端特殊处理, 点击 header footer不允许消失及不要冒泡
|
|
5862
5913
|
_e_stopPropagation;
|
|
5863
5914
|
e == null ? void 0 : (_e_stopPropagation = e.stopPropagation) == null ? void 0 : _e_stopPropagation.call(e);
|
|
@@ -5894,7 +5945,7 @@ function interactiveHF($container, second, callback) {
|
|
|
5894
5945
|
}
|
|
5895
5946
|
/**
|
|
5896
5947
|
* 销毁
|
|
5897
|
-
*/ var cleanup = function
|
|
5948
|
+
*/ var cleanup = function() {
|
|
5898
5949
|
if ($container) {
|
|
5899
5950
|
if (Utils.isMobile && _touchStart) {
|
|
5900
5951
|
var eventName = "click";
|
|
@@ -5938,11 +5989,11 @@ function interactiveHF($container, second, callback) {
|
|
|
5938
5989
|
};
|
|
5939
5990
|
return {
|
|
5940
5991
|
cleanup: cleanup,
|
|
5941
|
-
clearTimeout: function
|
|
5992
|
+
clearTimeout: function() {
|
|
5942
5993
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5943
5994
|
_alwaysDisplay = true;
|
|
5944
5995
|
},
|
|
5945
|
-
setTimeoutShow: function
|
|
5996
|
+
setTimeoutShow: function() {
|
|
5946
5997
|
_setTimeoutShow == null ? void 0 : _setTimeoutShow();
|
|
5947
5998
|
_alwaysDisplay = false;
|
|
5948
5999
|
},
|
|
@@ -5951,10 +6002,14 @@ function interactiveHF($container, second, callback) {
|
|
|
5951
6002
|
}
|
|
5952
6003
|
|
|
5953
6004
|
function _extends$l() {
|
|
5954
|
-
_extends$l = Object.assign || function
|
|
6005
|
+
_extends$l = Object.assign || function(target) {
|
|
5955
6006
|
for(var i = 1; i < arguments.length; i++){
|
|
5956
6007
|
var source = arguments[i];
|
|
5957
|
-
for(var key in source)
|
|
6008
|
+
for(var key in source){
|
|
6009
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6010
|
+
target[key] = source[key];
|
|
6011
|
+
}
|
|
6012
|
+
}
|
|
5958
6013
|
}
|
|
5959
6014
|
return target;
|
|
5960
6015
|
};
|
|
@@ -6019,10 +6074,14 @@ function _set_prototype_of$m(o, p) {
|
|
|
6019
6074
|
}(Fullscreen);
|
|
6020
6075
|
|
|
6021
6076
|
function _extends$k() {
|
|
6022
|
-
_extends$k = Object.assign || function
|
|
6077
|
+
_extends$k = Object.assign || function(target) {
|
|
6023
6078
|
for(var i = 1; i < arguments.length; i++){
|
|
6024
6079
|
var source = arguments[i];
|
|
6025
|
-
for(var key in source)
|
|
6080
|
+
for(var key in source){
|
|
6081
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6082
|
+
target[key] = source[key];
|
|
6083
|
+
}
|
|
6084
|
+
}
|
|
6026
6085
|
}
|
|
6027
6086
|
return target;
|
|
6028
6087
|
};
|
|
@@ -6085,8 +6144,8 @@ function _set_prototype_of$l(o, p) {
|
|
|
6085
6144
|
* 点击 Control 会触发
|
|
6086
6145
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
6087
6146
|
var _this = this;
|
|
6088
|
-
var _this_options_type, _this_options_cloudRecUpload;
|
|
6089
6147
|
this.active = true;
|
|
6148
|
+
var _this_options_type, _this_options_cloudRecUpload;
|
|
6090
6149
|
this.emit(EVENTS.control.capturePicture, {
|
|
6091
6150
|
type: (_this_options_type = this.options.type) != null ? _this_options_type : 'download',
|
|
6092
6151
|
quality: this.options.quality || 0.9,
|
|
@@ -6122,10 +6181,14 @@ function _create_class$4(Constructor, protoProps, staticProps) {
|
|
|
6122
6181
|
return Constructor;
|
|
6123
6182
|
}
|
|
6124
6183
|
function _extends$j() {
|
|
6125
|
-
_extends$j = Object.assign || function
|
|
6184
|
+
_extends$j = Object.assign || function(target) {
|
|
6126
6185
|
for(var i = 1; i < arguments.length; i++){
|
|
6127
6186
|
var source = arguments[i];
|
|
6128
|
-
for(var key in source)
|
|
6187
|
+
for(var key in source){
|
|
6188
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6189
|
+
target[key] = source[key];
|
|
6190
|
+
}
|
|
6191
|
+
}
|
|
6129
6192
|
}
|
|
6130
6193
|
return target;
|
|
6131
6194
|
};
|
|
@@ -6294,7 +6357,7 @@ function formatTime(seconds, format) {
|
|
|
6294
6357
|
var hours = Math.floor(seconds / 3600);
|
|
6295
6358
|
var minutes = Math.floor(seconds % 3600 / 60);
|
|
6296
6359
|
var secs = seconds % 60;
|
|
6297
|
-
var pad = function
|
|
6360
|
+
var pad = function(num) {
|
|
6298
6361
|
return num.toString().padStart(2, '0');
|
|
6299
6362
|
};
|
|
6300
6363
|
return format.replace('HH', pad(hours)).replace('MM', pad(minutes)).replace('SS', pad(secs));
|
|
@@ -6314,10 +6377,14 @@ function _create_class$3(Constructor, protoProps, staticProps) {
|
|
|
6314
6377
|
return Constructor;
|
|
6315
6378
|
}
|
|
6316
6379
|
function _extends$i() {
|
|
6317
|
-
_extends$i = Object.assign || function
|
|
6380
|
+
_extends$i = Object.assign || function(target) {
|
|
6318
6381
|
for(var i = 1; i < arguments.length; i++){
|
|
6319
6382
|
var source = arguments[i];
|
|
6320
|
-
for(var key in source)
|
|
6383
|
+
for(var key in source){
|
|
6384
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6385
|
+
target[key] = source[key];
|
|
6386
|
+
}
|
|
6387
|
+
}
|
|
6321
6388
|
}
|
|
6322
6389
|
return target;
|
|
6323
6390
|
};
|
|
@@ -6465,8 +6532,11 @@ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6465
6532
|
reject(error);
|
|
6466
6533
|
return;
|
|
6467
6534
|
}
|
|
6468
|
-
if (info.done)
|
|
6469
|
-
|
|
6535
|
+
if (info.done) {
|
|
6536
|
+
resolve(value);
|
|
6537
|
+
} else {
|
|
6538
|
+
Promise.resolve(value).then(_next, _throw);
|
|
6539
|
+
}
|
|
6470
6540
|
}
|
|
6471
6541
|
function _async_to_generator$4(fn) {
|
|
6472
6542
|
return function() {
|
|
@@ -6497,10 +6567,14 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
|
6497
6567
|
return Constructor;
|
|
6498
6568
|
}
|
|
6499
6569
|
function _extends$h() {
|
|
6500
|
-
_extends$h = Object.assign || function
|
|
6570
|
+
_extends$h = Object.assign || function(target) {
|
|
6501
6571
|
for(var i = 1; i < arguments.length; i++){
|
|
6502
6572
|
var source = arguments[i];
|
|
6503
|
-
for(var key in source)
|
|
6573
|
+
for(var key in source){
|
|
6574
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6575
|
+
target[key] = source[key];
|
|
6576
|
+
}
|
|
6577
|
+
}
|
|
6504
6578
|
}
|
|
6505
6579
|
return target;
|
|
6506
6580
|
};
|
|
@@ -6535,17 +6609,9 @@ function _ts_generator$4(thisArg, body) {
|
|
|
6535
6609
|
},
|
|
6536
6610
|
trys: [],
|
|
6537
6611
|
ops: []
|
|
6538
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
6539
|
-
return
|
|
6540
|
-
|
|
6541
|
-
}), d(g, "throw", {
|
|
6542
|
-
value: verb(1)
|
|
6543
|
-
}), d(g, "return", {
|
|
6544
|
-
value: verb(2)
|
|
6545
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
6546
|
-
value: function() {
|
|
6547
|
-
return this;
|
|
6548
|
-
}
|
|
6612
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
6613
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
6614
|
+
return this;
|
|
6549
6615
|
}), g;
|
|
6550
6616
|
function verb(n) {
|
|
6551
6617
|
return function(v) {
|
|
@@ -6686,7 +6752,7 @@ function _ts_generator$4(thisArg, body) {
|
|
|
6686
6752
|
/**
|
|
6687
6753
|
* 点击 Control 会触发
|
|
6688
6754
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
6689
|
-
var _this = this, _superprop_get__onControlClick = function
|
|
6755
|
+
var _this = this, _superprop_get__onControlClick = function() {
|
|
6690
6756
|
return Control.prototype._onControlClick;
|
|
6691
6757
|
};
|
|
6692
6758
|
return _async_to_generator$4(function() {
|
|
@@ -6749,8 +6815,11 @@ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6749
6815
|
reject(error);
|
|
6750
6816
|
return;
|
|
6751
6817
|
}
|
|
6752
|
-
if (info.done)
|
|
6753
|
-
|
|
6818
|
+
if (info.done) {
|
|
6819
|
+
resolve(value);
|
|
6820
|
+
} else {
|
|
6821
|
+
Promise.resolve(value).then(_next, _throw);
|
|
6822
|
+
}
|
|
6754
6823
|
}
|
|
6755
6824
|
function _async_to_generator$3(fn) {
|
|
6756
6825
|
return function() {
|
|
@@ -6768,10 +6837,14 @@ function _async_to_generator$3(fn) {
|
|
|
6768
6837
|
};
|
|
6769
6838
|
}
|
|
6770
6839
|
function _extends$g() {
|
|
6771
|
-
_extends$g = Object.assign || function
|
|
6840
|
+
_extends$g = Object.assign || function(target) {
|
|
6772
6841
|
for(var i = 1; i < arguments.length; i++){
|
|
6773
6842
|
var source = arguments[i];
|
|
6774
|
-
for(var key in source)
|
|
6843
|
+
for(var key in source){
|
|
6844
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6845
|
+
target[key] = source[key];
|
|
6846
|
+
}
|
|
6847
|
+
}
|
|
6775
6848
|
}
|
|
6776
6849
|
return target;
|
|
6777
6850
|
};
|
|
@@ -6806,17 +6879,9 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6806
6879
|
},
|
|
6807
6880
|
trys: [],
|
|
6808
6881
|
ops: []
|
|
6809
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
6810
|
-
return
|
|
6811
|
-
|
|
6812
|
-
}), d(g, "throw", {
|
|
6813
|
-
value: verb(1)
|
|
6814
|
-
}), d(g, "return", {
|
|
6815
|
-
value: verb(2)
|
|
6816
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
6817
|
-
value: function() {
|
|
6818
|
-
return this;
|
|
6819
|
-
}
|
|
6882
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
6883
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
6884
|
+
return this;
|
|
6820
6885
|
}), g;
|
|
6821
6886
|
function verb(n) {
|
|
6822
6887
|
return function(v) {
|
|
@@ -6952,7 +7017,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6952
7017
|
/**
|
|
6953
7018
|
* 点击 Control 会触发
|
|
6954
7019
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
6955
|
-
var _this = this, _superprop_get__onControlClick = function
|
|
7020
|
+
var _this = this, _superprop_get__onControlClick = function() {
|
|
6956
7021
|
return Control.prototype._onControlClick;
|
|
6957
7022
|
};
|
|
6958
7023
|
return _async_to_generator$3(function() {
|
|
@@ -6980,8 +7045,11 @@ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6980
7045
|
reject(error);
|
|
6981
7046
|
return;
|
|
6982
7047
|
}
|
|
6983
|
-
if (info.done)
|
|
6984
|
-
|
|
7048
|
+
if (info.done) {
|
|
7049
|
+
resolve(value);
|
|
7050
|
+
} else {
|
|
7051
|
+
Promise.resolve(value).then(_next, _throw);
|
|
7052
|
+
}
|
|
6985
7053
|
}
|
|
6986
7054
|
function _async_to_generator$2(fn) {
|
|
6987
7055
|
return function() {
|
|
@@ -6999,10 +7067,14 @@ function _async_to_generator$2(fn) {
|
|
|
6999
7067
|
};
|
|
7000
7068
|
}
|
|
7001
7069
|
function _extends$f() {
|
|
7002
|
-
_extends$f = Object.assign || function
|
|
7070
|
+
_extends$f = Object.assign || function(target) {
|
|
7003
7071
|
for(var i = 1; i < arguments.length; i++){
|
|
7004
7072
|
var source = arguments[i];
|
|
7005
|
-
for(var key in source)
|
|
7073
|
+
for(var key in source){
|
|
7074
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7075
|
+
target[key] = source[key];
|
|
7076
|
+
}
|
|
7077
|
+
}
|
|
7006
7078
|
}
|
|
7007
7079
|
return target;
|
|
7008
7080
|
};
|
|
@@ -7037,17 +7109,9 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7037
7109
|
},
|
|
7038
7110
|
trys: [],
|
|
7039
7111
|
ops: []
|
|
7040
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
7041
|
-
return
|
|
7042
|
-
|
|
7043
|
-
}), d(g, "throw", {
|
|
7044
|
-
value: verb(1)
|
|
7045
|
-
}), d(g, "return", {
|
|
7046
|
-
value: verb(2)
|
|
7047
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
7048
|
-
value: function() {
|
|
7049
|
-
return this;
|
|
7050
|
-
}
|
|
7112
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
7113
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
7114
|
+
return this;
|
|
7051
7115
|
}), g;
|
|
7052
7116
|
function verb(n) {
|
|
7053
7117
|
return function(v) {
|
|
@@ -7184,7 +7248,7 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7184
7248
|
/**
|
|
7185
7249
|
* 点击 Control 会触发
|
|
7186
7250
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
7187
|
-
var _this = this, _superprop_get__onControlClick = function
|
|
7251
|
+
var _this = this, _superprop_get__onControlClick = function() {
|
|
7188
7252
|
return Control.prototype._onControlClick;
|
|
7189
7253
|
};
|
|
7190
7254
|
return _async_to_generator$2(function() {
|
|
@@ -7205,10 +7269,14 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7205
7269
|
}(Control);
|
|
7206
7270
|
|
|
7207
7271
|
function _extends$e() {
|
|
7208
|
-
_extends$e = Object.assign || function
|
|
7272
|
+
_extends$e = Object.assign || function(target) {
|
|
7209
7273
|
for(var i = 1; i < arguments.length; i++){
|
|
7210
7274
|
var source = arguments[i];
|
|
7211
|
-
for(var key in source)
|
|
7275
|
+
for(var key in source){
|
|
7276
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7277
|
+
target[key] = source[key];
|
|
7278
|
+
}
|
|
7279
|
+
}
|
|
7212
7280
|
}
|
|
7213
7281
|
return target;
|
|
7214
7282
|
};
|
|
@@ -7296,10 +7364,14 @@ function _set_prototype_of$f(o, p) {
|
|
|
7296
7364
|
}(Control);
|
|
7297
7365
|
|
|
7298
7366
|
function _extends$d() {
|
|
7299
|
-
_extends$d = Object.assign || function
|
|
7367
|
+
_extends$d = Object.assign || function(target) {
|
|
7300
7368
|
for(var i = 1; i < arguments.length; i++){
|
|
7301
7369
|
var source = arguments[i];
|
|
7302
|
-
for(var key in source)
|
|
7370
|
+
for(var key in source){
|
|
7371
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7372
|
+
target[key] = source[key];
|
|
7373
|
+
}
|
|
7374
|
+
}
|
|
7303
7375
|
}
|
|
7304
7376
|
return target;
|
|
7305
7377
|
};
|
|
@@ -7382,7 +7454,7 @@ function _set_prototype_of$e(o, p) {
|
|
|
7382
7454
|
_proto._initPicker = function _initPicker() {
|
|
7383
7455
|
var _this = this;
|
|
7384
7456
|
this._picker = new Picker(this.$container, {
|
|
7385
|
-
getPopupContainer: function
|
|
7457
|
+
getPopupContainer: function() {
|
|
7386
7458
|
return Utils.isMobile ? _this.__options.rootContainer : _this.$container;
|
|
7387
7459
|
},
|
|
7388
7460
|
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
@@ -7456,10 +7528,14 @@ function _set_prototype_of$e(o, p) {
|
|
|
7456
7528
|
}(Control);
|
|
7457
7529
|
|
|
7458
7530
|
function _extends$c() {
|
|
7459
|
-
_extends$c = Object.assign || function
|
|
7531
|
+
_extends$c = Object.assign || function(target) {
|
|
7460
7532
|
for(var i = 1; i < arguments.length; i++){
|
|
7461
7533
|
var source = arguments[i];
|
|
7462
|
-
for(var key in source)
|
|
7534
|
+
for(var key in source){
|
|
7535
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7536
|
+
target[key] = source[key];
|
|
7537
|
+
}
|
|
7538
|
+
}
|
|
7463
7539
|
}
|
|
7464
7540
|
return target;
|
|
7465
7541
|
};
|
|
@@ -7512,10 +7588,10 @@ function _set_prototype_of$d(o, p) {
|
|
|
7512
7588
|
showEventFilter: false,
|
|
7513
7589
|
showCardTypeIcon: false,
|
|
7514
7590
|
sections: [],
|
|
7515
|
-
onCardClick: function
|
|
7591
|
+
onCardClick: function(section, index, sections) {
|
|
7516
7592
|
_this.emit(EVENTS.control.recListCardClick, section, index, sections);
|
|
7517
7593
|
},
|
|
7518
|
-
onClose: function
|
|
7594
|
+
onClose: function() {
|
|
7519
7595
|
var _this__options_onClose, _this__options;
|
|
7520
7596
|
_this._panelOpen = false;
|
|
7521
7597
|
_this.active = false;
|
|
@@ -7604,10 +7680,14 @@ function _set_prototype_of$d(o, p) {
|
|
|
7604
7680
|
}(Control);
|
|
7605
7681
|
|
|
7606
7682
|
function _extends$b() {
|
|
7607
|
-
_extends$b = Object.assign || function
|
|
7683
|
+
_extends$b = Object.assign || function(target) {
|
|
7608
7684
|
for(var i = 1; i < arguments.length; i++){
|
|
7609
7685
|
var source = arguments[i];
|
|
7610
|
-
for(var key in source)
|
|
7686
|
+
for(var key in source){
|
|
7687
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7688
|
+
target[key] = source[key];
|
|
7689
|
+
}
|
|
7690
|
+
}
|
|
7611
7691
|
}
|
|
7612
7692
|
return target;
|
|
7613
7693
|
};
|
|
@@ -7696,10 +7776,14 @@ function _create_class$1(Constructor, protoProps, staticProps) {
|
|
|
7696
7776
|
return Constructor;
|
|
7697
7777
|
}
|
|
7698
7778
|
function _extends$a() {
|
|
7699
|
-
_extends$a = Object.assign || function
|
|
7779
|
+
_extends$a = Object.assign || function(target) {
|
|
7700
7780
|
for(var i = 1; i < arguments.length; i++){
|
|
7701
7781
|
var source = arguments[i];
|
|
7702
|
-
for(var key in source)
|
|
7782
|
+
for(var key in source){
|
|
7783
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7784
|
+
target[key] = source[key];
|
|
7785
|
+
}
|
|
7786
|
+
}
|
|
7703
7787
|
}
|
|
7704
7788
|
return target;
|
|
7705
7789
|
};
|
|
@@ -7730,11 +7814,11 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7730
7814
|
label: 'label',
|
|
7731
7815
|
value: 'value'
|
|
7732
7816
|
},
|
|
7733
|
-
renderLabel: function
|
|
7817
|
+
renderLabel: function(label) {
|
|
7734
7818
|
return "<span>" + (label || '') + "</span>";
|
|
7735
7819
|
},
|
|
7736
|
-
onChange: function
|
|
7737
|
-
onOpenChange: function
|
|
7820
|
+
onChange: function() {},
|
|
7821
|
+
onOpenChange: function() {}
|
|
7738
7822
|
};
|
|
7739
7823
|
/**
|
|
7740
7824
|
* 选择器切换 (支持PC/Mobile)
|
|
@@ -7788,7 +7872,6 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7788
7872
|
_inherits$b(Select, Control);
|
|
7789
7873
|
function Select(options) {
|
|
7790
7874
|
var _this;
|
|
7791
|
-
var _ref;
|
|
7792
7875
|
var _this__options_fieldNames, _this__picker_$body;
|
|
7793
7876
|
_this = Control.call(this, _extends$a({
|
|
7794
7877
|
tagName: 'span',
|
|
@@ -7802,10 +7885,11 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7802
7885
|
if (options.value !== undefined || options.value !== null) {
|
|
7803
7886
|
_this._value = options.value + '';
|
|
7804
7887
|
}
|
|
7805
|
-
var
|
|
7888
|
+
var _this__options_fieldNames_value;
|
|
7889
|
+
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';
|
|
7806
7890
|
_this._picker = new Picker(_this.$container, {
|
|
7807
7891
|
// 由于某些原因, 移动端强制渲染在 body 上
|
|
7808
|
-
getPopupContainer: function
|
|
7892
|
+
getPopupContainer: function() {
|
|
7809
7893
|
return Utils.isMobile ? options.rootContainer : _this.$container;
|
|
7810
7894
|
},
|
|
7811
7895
|
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
@@ -7818,7 +7902,7 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7818
7902
|
],
|
|
7819
7903
|
placement: 'top',
|
|
7820
7904
|
// zIndex: 10000,
|
|
7821
|
-
onOpenChange: function
|
|
7905
|
+
onOpenChange: function(open) {
|
|
7822
7906
|
var item = _this.list.find(function(item) {
|
|
7823
7907
|
return item[valueKey] + '' === _this.value;
|
|
7824
7908
|
});
|
|
@@ -7842,10 +7926,11 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7842
7926
|
var _this = this;
|
|
7843
7927
|
if (list === void 0) list = [];
|
|
7844
7928
|
if ((list == null ? void 0 : list.length) > 0 && this._picker) {
|
|
7845
|
-
var _ref, _ref1;
|
|
7846
7929
|
var _this__options_fieldNames, _this__options_fieldNames1, _this_locale, _this__picker;
|
|
7847
|
-
var
|
|
7848
|
-
var
|
|
7930
|
+
var _this__options_fieldNames_label;
|
|
7931
|
+
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';
|
|
7932
|
+
var _this__options_fieldNames_value;
|
|
7933
|
+
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';
|
|
7849
7934
|
(_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) {
|
|
7850
7935
|
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 ";
|
|
7851
7936
|
}).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>");
|
|
@@ -7857,12 +7942,12 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7857
7942
|
}
|
|
7858
7943
|
};
|
|
7859
7944
|
_proto._render = function _render(item) {
|
|
7860
|
-
var _ref;
|
|
7861
7945
|
var _this__options_fieldNames;
|
|
7862
7946
|
if (this.list.length === 0) {
|
|
7863
7947
|
return;
|
|
7864
7948
|
}
|
|
7865
|
-
var
|
|
7949
|
+
var _this__options_fieldNames_label;
|
|
7950
|
+
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';
|
|
7866
7951
|
if (this.$container.querySelector("." + PREFIX_CLASS + "-select-btn")) {
|
|
7867
7952
|
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);
|
|
7868
7953
|
} else {
|
|
@@ -7878,9 +7963,9 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7878
7963
|
_proto._activeOption = function _activeOption() {
|
|
7879
7964
|
var _this = this;
|
|
7880
7965
|
if (this._picker) {
|
|
7881
|
-
var _ref;
|
|
7882
7966
|
var _this__options_fieldNames, _this__picker_$body, _this__picker_$body1;
|
|
7883
|
-
var
|
|
7967
|
+
var _this__options_fieldNames_value;
|
|
7968
|
+
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';
|
|
7884
7969
|
var $active = (_this__picker_$body = this._picker.$body) == null ? void 0 : _this__picker_$body.querySelector("." + PREFIX_CLASS + "-active");
|
|
7885
7970
|
$active == null ? void 0 : $active.classList.remove(PREFIX_CLASS + '-active');
|
|
7886
7971
|
var $target = (_this__picker_$body1 = this._picker.$body) == null ? void 0 : _this__picker_$body1.querySelector("." + PREFIX_CLASS + '-select-option[data-value="' + this.value + '"]');
|
|
@@ -7894,9 +7979,9 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7894
7979
|
_proto._onSelectChange = function _onSelectChange() {
|
|
7895
7980
|
var _this = this;
|
|
7896
7981
|
if (this._picker) {
|
|
7897
|
-
var _ref;
|
|
7898
7982
|
var _this__options_fieldNames;
|
|
7899
|
-
var
|
|
7983
|
+
var _this__options_fieldNames_value;
|
|
7984
|
+
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';
|
|
7900
7985
|
this._delegationOption = delegate(this._picker.$body, "." + PREFIX_CLASS + "-select-option", 'click', function(e) {
|
|
7901
7986
|
var target = e.delegateTarget;
|
|
7902
7987
|
e.stopPropagation();
|
|
@@ -7981,14 +8066,20 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7981
8066
|
}(Control);
|
|
7982
8067
|
|
|
7983
8068
|
function _assert_this_initialized$1(self) {
|
|
7984
|
-
if (self === void 0)
|
|
8069
|
+
if (self === void 0) {
|
|
8070
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8071
|
+
}
|
|
7985
8072
|
return self;
|
|
7986
8073
|
}
|
|
7987
8074
|
function _extends$9() {
|
|
7988
|
-
_extends$9 = Object.assign || function
|
|
8075
|
+
_extends$9 = Object.assign || function(target) {
|
|
7989
8076
|
for(var i = 1; i < arguments.length; i++){
|
|
7990
8077
|
var source = arguments[i];
|
|
7991
|
-
for(var key in source)
|
|
8078
|
+
for(var key in source){
|
|
8079
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8080
|
+
target[key] = source[key];
|
|
8081
|
+
}
|
|
8082
|
+
}
|
|
7992
8083
|
}
|
|
7993
8084
|
return target;
|
|
7994
8085
|
};
|
|
@@ -8078,7 +8169,7 @@ function __filter(list, locale) {
|
|
|
8078
8169
|
title: options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.BTN_HD,
|
|
8079
8170
|
controlType: 'button',
|
|
8080
8171
|
classNameSuffix: 'definition',
|
|
8081
|
-
renderLabel: function
|
|
8172
|
+
renderLabel: function(label, item, list) {
|
|
8082
8173
|
var _list_;
|
|
8083
8174
|
if ((item == null ? void 0 : item.level) === 'auto') {
|
|
8084
8175
|
var _options_locales_options_language;
|
|
@@ -8090,7 +8181,7 @@ function __filter(list, locale) {
|
|
|
8090
8181
|
// 如果 label 不存在,则不显示label,直接显示list的第一个label, 一般自定义清晰度列表可能会出现
|
|
8091
8182
|
return "<span>" + (label || ((_list_ = list[0]) == null ? void 0 : _list_.name) || '') + "</span>";
|
|
8092
8183
|
},
|
|
8093
|
-
onChange: function
|
|
8184
|
+
onChange: function(value, item) {
|
|
8094
8185
|
var _options_onChange;
|
|
8095
8186
|
options == null ? void 0 : (_options_onChange = options.onChange) == null ? void 0 : _options_onChange.call(options, value, item);
|
|
8096
8187
|
if (value === 'auto') {
|
|
@@ -8100,7 +8191,7 @@ function __filter(list, locale) {
|
|
|
8100
8191
|
_assert_this_initialized$1(_this).emit(EVENTS.control.definitionChange, value, item);
|
|
8101
8192
|
}
|
|
8102
8193
|
},
|
|
8103
|
-
onOpenChange: function
|
|
8194
|
+
onOpenChange: function(open, value, item) {
|
|
8104
8195
|
var _options_onOpenChange;
|
|
8105
8196
|
options == null ? void 0 : (_options_onOpenChange = options.onOpenChange) == null ? void 0 : _options_onOpenChange.call(options, open, value, item);
|
|
8106
8197
|
_assert_this_initialized$1(_this).emit(EVENTS.control.definitionPanelOpenChange, open, value, item);
|
|
@@ -8136,14 +8227,20 @@ function __filter(list, locale) {
|
|
|
8136
8227
|
}(Select);
|
|
8137
8228
|
|
|
8138
8229
|
function _assert_this_initialized(self) {
|
|
8139
|
-
if (self === void 0)
|
|
8230
|
+
if (self === void 0) {
|
|
8231
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8232
|
+
}
|
|
8140
8233
|
return self;
|
|
8141
8234
|
}
|
|
8142
8235
|
function _extends$8() {
|
|
8143
|
-
_extends$8 = Object.assign || function
|
|
8236
|
+
_extends$8 = Object.assign || function(target) {
|
|
8144
8237
|
for(var i = 1; i < arguments.length; i++){
|
|
8145
8238
|
var source = arguments[i];
|
|
8146
|
-
for(var key in source)
|
|
8239
|
+
for(var key in source){
|
|
8240
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8241
|
+
target[key] = source[key];
|
|
8242
|
+
}
|
|
8243
|
+
}
|
|
8147
8244
|
}
|
|
8148
8245
|
return target;
|
|
8149
8246
|
};
|
|
@@ -8210,13 +8307,13 @@ var SPEED_DEFAULT_OPTIONS = {
|
|
|
8210
8307
|
classNameSuffix: 'speed',
|
|
8211
8308
|
controlType: 'button',
|
|
8212
8309
|
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,
|
|
8213
|
-
onChange: function
|
|
8310
|
+
onChange: function(value, item) {
|
|
8214
8311
|
var _options_onChange;
|
|
8215
8312
|
value = +value;
|
|
8216
8313
|
options == null ? void 0 : (_options_onChange = options.onChange) == null ? void 0 : _options_onChange.call(options, value, item);
|
|
8217
8314
|
_assert_this_initialized(_this).emit(EVENTS.control.speedChange, value, item);
|
|
8218
8315
|
},
|
|
8219
|
-
onOpenChange: function
|
|
8316
|
+
onOpenChange: function(open, value, item) {
|
|
8220
8317
|
var _options_onOpenChange;
|
|
8221
8318
|
value = +value;
|
|
8222
8319
|
options == null ? void 0 : (_options_onOpenChange = options.onOpenChange) == null ? void 0 : _options_onOpenChange.call(options, open, value, item);
|
|
@@ -8266,10 +8363,14 @@ var SPEED_DEFAULT_OPTIONS = {
|
|
|
8266
8363
|
}(Select);
|
|
8267
8364
|
|
|
8268
8365
|
function _extends$7() {
|
|
8269
|
-
_extends$7 = Object.assign || function
|
|
8366
|
+
_extends$7 = Object.assign || function(target) {
|
|
8270
8367
|
for(var i = 1; i < arguments.length; i++){
|
|
8271
8368
|
var source = arguments[i];
|
|
8272
|
-
for(var key in source)
|
|
8369
|
+
for(var key in source){
|
|
8370
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8371
|
+
target[key] = source[key];
|
|
8372
|
+
}
|
|
8373
|
+
}
|
|
8273
8374
|
}
|
|
8274
8375
|
return target;
|
|
8275
8376
|
};
|
|
@@ -8346,16 +8447,16 @@ function _set_prototype_of$8(o, p) {
|
|
|
8346
8447
|
current: DateTime.toDate(this._value),
|
|
8347
8448
|
placement: 'tr',
|
|
8348
8449
|
triggerClose: true,
|
|
8349
|
-
disabledDate: function
|
|
8450
|
+
disabledDate: function(date) {
|
|
8350
8451
|
return date.getTime() > (_this.options.maxDate || new Date()).getTime();
|
|
8351
8452
|
}
|
|
8352
8453
|
}, this.options || {}, {
|
|
8353
8454
|
// 不支持自定义
|
|
8354
|
-
getPopupContainer: function
|
|
8455
|
+
getPopupContainer: function() {
|
|
8355
8456
|
return _this.$container;
|
|
8356
8457
|
},
|
|
8357
8458
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8358
|
-
onOk: function
|
|
8459
|
+
onOk: function(date, _mode) {
|
|
8359
8460
|
if (date && _this._value !== DateTime.format(date, 'YYYY-MM-DD') && isMobile1) {
|
|
8360
8461
|
_this._value = DateTime.format(date, 'YYYY-MM-DD');
|
|
8361
8462
|
_this.options.onOk == null ? void 0 : _this.options.onOk.call(_this.options, date);
|
|
@@ -8365,14 +8466,14 @@ function _set_prototype_of$8(o, p) {
|
|
|
8365
8466
|
}
|
|
8366
8467
|
}
|
|
8367
8468
|
},
|
|
8368
|
-
onChange: function
|
|
8469
|
+
onChange: function(date, mode) {
|
|
8369
8470
|
if (date && _this._value !== DateTime.format(date, 'YYYY-MM-DD') && !isMobile1 && mode === 'date') {
|
|
8370
8471
|
_this._value = DateTime.format(date, 'YYYY-MM-DD');
|
|
8371
8472
|
_this.options.onChange == null ? void 0 : _this.options.onChange.call(_this.options, date);
|
|
8372
8473
|
_this.emit(EVENTS.control.dateChange, date);
|
|
8373
8474
|
}
|
|
8374
8475
|
},
|
|
8375
|
-
onOpenChange: function
|
|
8476
|
+
onOpenChange: function(open) {
|
|
8376
8477
|
_this.options.onPanelChange == null ? void 0 : _this.options.onPanelChange.call(_this.options, open, _this.datePicker.current);
|
|
8377
8478
|
_this.emit(EVENTS.control.datePanelOpenChange, open, _this.datePicker.current);
|
|
8378
8479
|
}
|
|
@@ -8422,10 +8523,14 @@ function _set_prototype_of$8(o, p) {
|
|
|
8422
8523
|
}(Control);
|
|
8423
8524
|
|
|
8424
8525
|
function _extends$6() {
|
|
8425
|
-
_extends$6 = Object.assign || function
|
|
8526
|
+
_extends$6 = Object.assign || function(target) {
|
|
8426
8527
|
for(var i = 1; i < arguments.length; i++){
|
|
8427
8528
|
var source = arguments[i];
|
|
8428
|
-
for(var key in source)
|
|
8529
|
+
for(var key in source){
|
|
8530
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8531
|
+
target[key] = source[key];
|
|
8532
|
+
}
|
|
8533
|
+
}
|
|
8429
8534
|
}
|
|
8430
8535
|
return target;
|
|
8431
8536
|
};
|
|
@@ -8499,17 +8604,17 @@ function _set_prototype_of$7(o, p) {
|
|
|
8499
8604
|
triggerClose: true
|
|
8500
8605
|
}, this.options || {}, {
|
|
8501
8606
|
// 不支持自定义
|
|
8502
|
-
getPopupContainer: function
|
|
8607
|
+
getPopupContainer: function() {
|
|
8503
8608
|
return _this.$container;
|
|
8504
8609
|
},
|
|
8505
|
-
onChange: function
|
|
8610
|
+
onChange: function(time, _times) {
|
|
8506
8611
|
if (time && _this._value !== time) {
|
|
8507
8612
|
_this._value = time;
|
|
8508
8613
|
_this.options.onChange == null ? void 0 : _this.options.onChange.call(_this.options, time, _times);
|
|
8509
8614
|
_this.emit(EVENTS.control.timeChange, time);
|
|
8510
8615
|
}
|
|
8511
8616
|
},
|
|
8512
|
-
onOpenChange: function
|
|
8617
|
+
onOpenChange: function(open) {
|
|
8513
8618
|
_this.options.onPanelChange == null ? void 0 : _this.options.onPanelChange.call(_this.options, open, _this.timePicker.current);
|
|
8514
8619
|
_this.emit(EVENTS.control.timePanelOpenChange, open, _this.timePicker.current);
|
|
8515
8620
|
}
|
|
@@ -8557,10 +8662,14 @@ function _set_prototype_of$7(o, p) {
|
|
|
8557
8662
|
}(Control);
|
|
8558
8663
|
|
|
8559
8664
|
function _extends$5() {
|
|
8560
|
-
_extends$5 = Object.assign || function
|
|
8665
|
+
_extends$5 = Object.assign || function(target) {
|
|
8561
8666
|
for(var i = 1; i < arguments.length; i++){
|
|
8562
8667
|
var source = arguments[i];
|
|
8563
|
-
for(var key in source)
|
|
8668
|
+
for(var key in source){
|
|
8669
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8670
|
+
target[key] = source[key];
|
|
8671
|
+
}
|
|
8672
|
+
}
|
|
8564
8673
|
}
|
|
8565
8674
|
return target;
|
|
8566
8675
|
};
|
|
@@ -8629,8 +8738,8 @@ function _set_prototype_of$6(o, p) {
|
|
|
8629
8738
|
var _proto = TimeLineControl.prototype;
|
|
8630
8739
|
_proto._render = function _render() {
|
|
8631
8740
|
var _this = this;
|
|
8632
|
-
var _this__options_showTimeWidthBtn, _this__options_showCoverFold;
|
|
8633
8741
|
var _this_timeLineUtil_updateTimeSections, _this_timeLineUtil;
|
|
8742
|
+
var _this__options_showTimeWidthBtn, _this__options_showCoverFold;
|
|
8634
8743
|
var _timeLineOptions = _extends$5({
|
|
8635
8744
|
language: this._options.language || 'zh',
|
|
8636
8745
|
coverQuery: this._options.coverQuery || '',
|
|
@@ -8639,19 +8748,19 @@ function _set_prototype_of$6(o, p) {
|
|
|
8639
8748
|
hoverTipPlacement: 'top'
|
|
8640
8749
|
}, this._options || {}, {
|
|
8641
8750
|
showSectionIcon: false,
|
|
8642
|
-
onClickSeek: function
|
|
8751
|
+
onClickSeek: function(date) {
|
|
8643
8752
|
if (date == null ? void 0 : date.getTime()) {
|
|
8644
8753
|
_this._options.onClickSeek == null ? void 0 : _this._options.onClickSeek.call(_this._options, date);
|
|
8645
8754
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8646
8755
|
}
|
|
8647
8756
|
},
|
|
8648
|
-
onChange: function
|
|
8757
|
+
onChange: function(date) {
|
|
8649
8758
|
if (_this._currentTime !== (date == null ? void 0 : date.getTime())) {
|
|
8650
8759
|
_this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, date);
|
|
8651
8760
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8652
8761
|
}
|
|
8653
8762
|
},
|
|
8654
|
-
onDragEnd: function
|
|
8763
|
+
onDragEnd: function(date, isOver) {
|
|
8655
8764
|
var _this__options_props_playbackRange, _this__options_props, _this__options;
|
|
8656
8765
|
_this._options.onDragEnd == null ? void 0 : _this._options.onDragEnd.call(_this._options, date, isOver);
|
|
8657
8766
|
// 松手时鼠标已移出时间轴容器(isOver 为 false):控件把这种拖动视为取消,
|
|
@@ -8670,11 +8779,11 @@ function _set_prototype_of$6(o, p) {
|
|
|
8670
8779
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8671
8780
|
}
|
|
8672
8781
|
},
|
|
8673
|
-
onPickerOpenChange: function
|
|
8782
|
+
onPickerOpenChange: function(open) {
|
|
8674
8783
|
_this.emit(EVENTS.control.timeLinePanelOpenChange, open);
|
|
8675
8784
|
},
|
|
8676
8785
|
// 2025-10-27 仅移动端支持
|
|
8677
|
-
onPickerSelect: function
|
|
8786
|
+
onPickerSelect: function(item) {
|
|
8678
8787
|
var date = null;
|
|
8679
8788
|
try {
|
|
8680
8789
|
if ((item.startTime + '').length === 10) date = new Date(item.startTime * 1000);
|
|
@@ -8685,7 +8794,7 @@ function _set_prototype_of$6(o, p) {
|
|
|
8685
8794
|
} catch (error) {
|
|
8686
8795
|
}
|
|
8687
8796
|
},
|
|
8688
|
-
onSectionIconClick: function
|
|
8797
|
+
onSectionIconClick: function(result) {
|
|
8689
8798
|
_this.emit('TimeLine.onSectionIconClick', result);
|
|
8690
8799
|
}
|
|
8691
8800
|
});
|
|
@@ -8756,10 +8865,14 @@ function _set_prototype_of$6(o, p) {
|
|
|
8756
8865
|
}(Control);
|
|
8757
8866
|
|
|
8758
8867
|
function _extends$4() {
|
|
8759
|
-
_extends$4 = Object.assign || function
|
|
8868
|
+
_extends$4 = Object.assign || function(target) {
|
|
8760
8869
|
for(var i = 1; i < arguments.length; i++){
|
|
8761
8870
|
var source = arguments[i];
|
|
8762
|
-
for(var key in source)
|
|
8871
|
+
for(var key in source){
|
|
8872
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8873
|
+
target[key] = source[key];
|
|
8874
|
+
}
|
|
8875
|
+
}
|
|
8763
8876
|
}
|
|
8764
8877
|
return target;
|
|
8765
8878
|
};
|
|
@@ -8804,8 +8917,8 @@ function _set_prototype_of$5(o, p) {
|
|
|
8804
8917
|
* @param seg 录像片段
|
|
8805
8918
|
* @param which 取起点还是终点
|
|
8806
8919
|
*/ function segMs(seg, which) {
|
|
8807
|
-
var
|
|
8808
|
-
var value = which === 'start' ? (
|
|
8920
|
+
var _seg_startTime, _seg_endTime;
|
|
8921
|
+
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;
|
|
8809
8922
|
if (value === undefined || value === null || value === '') return NaN;
|
|
8810
8923
|
if (typeof value === 'number') return value < 1e12 ? value * 1000 : value;
|
|
8811
8924
|
return DateTime.toDate(value).getTime();
|
|
@@ -8866,17 +8979,17 @@ function _set_prototype_of$5(o, p) {
|
|
|
8866
8979
|
_proto._render = function _render() {
|
|
8867
8980
|
var _this = this;
|
|
8868
8981
|
this._progress = new SegmentProgress(this.$container, {
|
|
8869
|
-
onChange: function
|
|
8982
|
+
onChange: function(date) {
|
|
8870
8983
|
// 用户主动定位即视为重新开始播放,立即解除结束静默,否则静默期内的回写被丢弃、
|
|
8871
8984
|
// 进度条会停住不动
|
|
8872
8985
|
_this._silenceUntil = 0;
|
|
8873
8986
|
_this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, date);
|
|
8874
8987
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8875
8988
|
},
|
|
8876
|
-
onDragStart: function
|
|
8989
|
+
onDragStart: function() {
|
|
8877
8990
|
_this._isDragging = true;
|
|
8878
8991
|
},
|
|
8879
|
-
onDragEnd: function
|
|
8992
|
+
onDragEnd: function() {
|
|
8880
8993
|
_this._isDragging = false;
|
|
8881
8994
|
}
|
|
8882
8995
|
});
|
|
@@ -8969,10 +9082,14 @@ function _set_prototype_of$5(o, p) {
|
|
|
8969
9082
|
}(Control);
|
|
8970
9083
|
|
|
8971
9084
|
function _extends$3() {
|
|
8972
|
-
_extends$3 = Object.assign || function
|
|
9085
|
+
_extends$3 = Object.assign || function(target) {
|
|
8973
9086
|
for(var i = 1; i < arguments.length; i++){
|
|
8974
9087
|
var source = arguments[i];
|
|
8975
|
-
for(var key in source)
|
|
9088
|
+
for(var key in source){
|
|
9089
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9090
|
+
target[key] = source[key];
|
|
9091
|
+
}
|
|
9092
|
+
}
|
|
8976
9093
|
}
|
|
8977
9094
|
return target;
|
|
8978
9095
|
};
|
|
@@ -9062,7 +9179,7 @@ var Controls = {
|
|
|
9062
9179
|
segmentProgress: SegmentProgressControl
|
|
9063
9180
|
};
|
|
9064
9181
|
|
|
9065
|
-
function _inherits$3(subClass, superClass) {
|
|
9182
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion */ function _inherits$3(subClass, superClass) {
|
|
9066
9183
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
9067
9184
|
throw new TypeError("Super expression must either be null or a function");
|
|
9068
9185
|
}
|
|
@@ -9227,10 +9344,14 @@ function _set_prototype_of$2(o, p) {
|
|
|
9227
9344
|
}(EventEmitter);
|
|
9228
9345
|
|
|
9229
9346
|
function _extends$2() {
|
|
9230
|
-
_extends$2 = Object.assign || function
|
|
9347
|
+
_extends$2 = Object.assign || function(target) {
|
|
9231
9348
|
for(var i = 1; i < arguments.length; i++){
|
|
9232
9349
|
var source = arguments[i];
|
|
9233
|
-
for(var key in source)
|
|
9350
|
+
for(var key in source){
|
|
9351
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9352
|
+
target[key] = source[key];
|
|
9353
|
+
}
|
|
9354
|
+
}
|
|
9234
9355
|
}
|
|
9235
9356
|
return target;
|
|
9236
9357
|
};
|
|
@@ -9362,7 +9483,7 @@ var PAUSE_DEFAULT_OPTIONS = {};
|
|
|
9362
9483
|
return Pause;
|
|
9363
9484
|
}(Control);
|
|
9364
9485
|
|
|
9365
|
-
var _unmountedControls = function
|
|
9486
|
+
var _unmountedControls = function(theme) {
|
|
9366
9487
|
if (!theme.controls) {
|
|
9367
9488
|
return;
|
|
9368
9489
|
}
|
|
@@ -9449,8 +9570,11 @@ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
9449
9570
|
reject(error);
|
|
9450
9571
|
return;
|
|
9451
9572
|
}
|
|
9452
|
-
if (info.done)
|
|
9453
|
-
|
|
9573
|
+
if (info.done) {
|
|
9574
|
+
resolve(value);
|
|
9575
|
+
} else {
|
|
9576
|
+
Promise.resolve(value).then(_next, _throw);
|
|
9577
|
+
}
|
|
9454
9578
|
}
|
|
9455
9579
|
function _async_to_generator$1(fn) {
|
|
9456
9580
|
return function() {
|
|
@@ -9467,6 +9591,28 @@ function _async_to_generator$1(fn) {
|
|
|
9467
9591
|
});
|
|
9468
9592
|
};
|
|
9469
9593
|
}
|
|
9594
|
+
function _extends$1() {
|
|
9595
|
+
_extends$1 = Object.assign || function(target) {
|
|
9596
|
+
for(var i = 1; i < arguments.length; i++){
|
|
9597
|
+
var source = arguments[i];
|
|
9598
|
+
for(var key in source){
|
|
9599
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9600
|
+
target[key] = source[key];
|
|
9601
|
+
}
|
|
9602
|
+
}
|
|
9603
|
+
}
|
|
9604
|
+
return target;
|
|
9605
|
+
};
|
|
9606
|
+
return _extends$1.apply(this, arguments);
|
|
9607
|
+
}
|
|
9608
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
9609
|
+
if (!o) return;
|
|
9610
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
9611
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9612
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9613
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9614
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
9615
|
+
}
|
|
9470
9616
|
function _create_for_of_iterator_helper_loose$1(o, allowArrayLike) {
|
|
9471
9617
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
9472
9618
|
if (it) return (it = it.call(o)).next.bind(it);
|
|
@@ -9474,26 +9620,18 @@ function _create_for_of_iterator_helper_loose$1(o, allowArrayLike) {
|
|
|
9474
9620
|
if (it) o = it;
|
|
9475
9621
|
var i = 0;
|
|
9476
9622
|
return function() {
|
|
9477
|
-
if (i >= o.length)
|
|
9478
|
-
|
|
9479
|
-
|
|
9623
|
+
if (i >= o.length) {
|
|
9624
|
+
return {
|
|
9625
|
+
done: true
|
|
9626
|
+
};
|
|
9627
|
+
}
|
|
9480
9628
|
return {
|
|
9481
9629
|
done: false,
|
|
9482
9630
|
value: o[i++]
|
|
9483
9631
|
};
|
|
9484
9632
|
};
|
|
9485
9633
|
}
|
|
9486
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance
|
|
9487
|
-
}
|
|
9488
|
-
function _extends$1() {
|
|
9489
|
-
_extends$1 = Object.assign || function assign(target) {
|
|
9490
|
-
for(var i = 1; i < arguments.length; i++){
|
|
9491
|
-
var source = arguments[i];
|
|
9492
|
-
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
9493
|
-
}
|
|
9494
|
-
return target;
|
|
9495
|
-
};
|
|
9496
|
-
return _extends$1.apply(this, arguments);
|
|
9634
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9497
9635
|
}
|
|
9498
9636
|
function _ts_generator$1(thisArg, body) {
|
|
9499
9637
|
var f, y, t, _ = {
|
|
@@ -9504,17 +9642,9 @@ function _ts_generator$1(thisArg, body) {
|
|
|
9504
9642
|
},
|
|
9505
9643
|
trys: [],
|
|
9506
9644
|
ops: []
|
|
9507
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
9508
|
-
return
|
|
9509
|
-
|
|
9510
|
-
}), d(g, "throw", {
|
|
9511
|
-
value: verb(1)
|
|
9512
|
-
}), d(g, "return", {
|
|
9513
|
-
value: verb(2)
|
|
9514
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
9515
|
-
value: function() {
|
|
9516
|
-
return this;
|
|
9517
|
-
}
|
|
9645
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
9646
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
9647
|
+
return this;
|
|
9518
9648
|
}), g;
|
|
9519
9649
|
function verb(n) {
|
|
9520
9650
|
return function(v) {
|
|
@@ -9594,14 +9724,6 @@ function _ts_generator$1(thisArg, body) {
|
|
|
9594
9724
|
};
|
|
9595
9725
|
}
|
|
9596
9726
|
}
|
|
9597
|
-
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
9598
|
-
if (!o) return;
|
|
9599
|
-
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
9600
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9601
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9602
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9603
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
9604
|
-
}
|
|
9605
9727
|
// 需要权限的控件
|
|
9606
9728
|
var AUTH_KEY = [
|
|
9607
9729
|
'ptz',
|
|
@@ -9640,7 +9762,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9640
9762
|
// eslint-disable-next-line @typescript-eslint/dot-notation, new-cap, @typescript-eslint/no-unsafe-argument
|
|
9641
9763
|
theme.controls["deviceControl"] = new Controls["device"](_extends$1({
|
|
9642
9764
|
rootContainer: theme.$container,
|
|
9643
|
-
getPopupContainer: function
|
|
9765
|
+
getPopupContainer: function() {
|
|
9644
9766
|
return $container;
|
|
9645
9767
|
},
|
|
9646
9768
|
recType: theme.recType,
|
|
@@ -9663,7 +9785,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9663
9785
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9664
9786
|
theme.controls["" + item.iconId + "Control"] = new Controls[item.iconId](_extends$1({
|
|
9665
9787
|
rootContainer: theme.$container,
|
|
9666
|
-
getPopupContainer: function
|
|
9788
|
+
getPopupContainer: function() {
|
|
9667
9789
|
return $container;
|
|
9668
9790
|
},
|
|
9669
9791
|
language: theme.options.language || "zh",
|
|
@@ -9690,7 +9812,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9690
9812
|
}
|
|
9691
9813
|
function _renderTheme(theme, data) {
|
|
9692
9814
|
return _async_to_generator$1(function() {
|
|
9693
|
-
var
|
|
9815
|
+
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;
|
|
9694
9816
|
return _ts_generator$1(this, function(_state) {
|
|
9695
9817
|
switch(_state.label){
|
|
9696
9818
|
case 0:
|
|
@@ -9716,7 +9838,7 @@ function _renderTheme(theme, data) {
|
|
|
9716
9838
|
language: theme.options.language,
|
|
9717
9839
|
locales: theme.i18n.translations
|
|
9718
9840
|
}, theme.options.loadingOptions || {}, {
|
|
9719
|
-
getPopupContainer: function
|
|
9841
|
+
getPopupContainer: function() {
|
|
9720
9842
|
return theme.$container;
|
|
9721
9843
|
}
|
|
9722
9844
|
}));
|
|
@@ -9726,7 +9848,7 @@ function _renderTheme(theme, data) {
|
|
|
9726
9848
|
language: theme.options.language,
|
|
9727
9849
|
locales: theme.i18n.translations
|
|
9728
9850
|
}, theme.options.pauseOptions || {}, {
|
|
9729
|
-
getPopupContainer: function
|
|
9851
|
+
getPopupContainer: function() {
|
|
9730
9852
|
return theme.contentControl.$wrapper;
|
|
9731
9853
|
}
|
|
9732
9854
|
}));
|
|
@@ -9738,14 +9860,14 @@ function _renderTheme(theme, data) {
|
|
|
9738
9860
|
theme.messageControl = new Message(_extends$1({
|
|
9739
9861
|
rootContainer: theme.$container
|
|
9740
9862
|
}, theme.options.messageOptions || {}, {
|
|
9741
|
-
getPopupContainer: function
|
|
9863
|
+
getPopupContainer: function() {
|
|
9742
9864
|
return theme.contentControl.$wrapper;
|
|
9743
9865
|
}
|
|
9744
9866
|
}));
|
|
9745
9867
|
}
|
|
9746
9868
|
if (theme.options.posterOptions !== null) {
|
|
9747
9869
|
theme.posterControl = new Poster(_extends$1({}, theme.options.posterOptions || {}, {
|
|
9748
|
-
getPopupContainer: function
|
|
9870
|
+
getPopupContainer: function() {
|
|
9749
9871
|
return theme.contentControl.$video;
|
|
9750
9872
|
}
|
|
9751
9873
|
}));
|
|
@@ -9775,7 +9897,7 @@ function _renderTheme(theme, data) {
|
|
|
9775
9897
|
}
|
|
9776
9898
|
if (filterThemeData.header) {
|
|
9777
9899
|
theme._header = new Header({
|
|
9778
|
-
getPopupContainer: function
|
|
9900
|
+
getPopupContainer: function() {
|
|
9779
9901
|
return theme.$container;
|
|
9780
9902
|
},
|
|
9781
9903
|
color: filterThemeData.header.color,
|
|
@@ -9790,7 +9912,7 @@ function _renderTheme(theme, data) {
|
|
|
9790
9912
|
if (filterThemeData.footer) {
|
|
9791
9913
|
// prettier-ignore
|
|
9792
9914
|
theme._footer = new Footer({
|
|
9793
|
-
getPopupContainer: function
|
|
9915
|
+
getPopupContainer: function() {
|
|
9794
9916
|
return theme.$container;
|
|
9795
9917
|
},
|
|
9796
9918
|
color: filterThemeData.footer.color,
|
|
@@ -9836,7 +9958,7 @@ function _renderTheme(theme, data) {
|
|
|
9836
9958
|
_renderControls(theme, theme._footer.$left, leftBtns1, props);
|
|
9837
9959
|
_renderControls(theme, theme._footer.$right, rightBtns1, props);
|
|
9838
9960
|
}
|
|
9839
|
-
list = [].concat(((_filterThemeData_header = filterThemeData.header) == null ? void 0 : _filterThemeData_header.btnList) || [], (
|
|
9961
|
+
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 : []);
|
|
9840
9962
|
// FIXME: 这个逻辑实际上是有问题的
|
|
9841
9963
|
_needTimeLine = list.some(function(item) {
|
|
9842
9964
|
return REC_GROUP.includes(item.iconId) || item.iconId === 'recDropdown';
|
|
@@ -9883,7 +10005,7 @@ function _renderTheme(theme, data) {
|
|
|
9883
10005
|
}
|
|
9884
10006
|
// 回放类型切换正常渲染,用户点击后由 SDK 层在 recDropdownChange 事件中自行处理
|
|
9885
10007
|
if (theme.options.recOptions !== null && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions4.controls.includes('rec')) && _needTimeLine) {
|
|
9886
|
-
[].concat(((_filterThemeData_header1 = filterThemeData.header) == null ? void 0 : _filterThemeData_header1.btnList) || [], (
|
|
10008
|
+
[].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) {
|
|
9887
10009
|
var _theme__mobileExtend;
|
|
9888
10010
|
if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
|
|
9889
10011
|
});
|
|
@@ -9893,7 +10015,7 @@ function _renderTheme(theme, data) {
|
|
|
9893
10015
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9894
10016
|
theme.controls['alarmMessageControl'] = new Controls['alarmMessage'](_extends$1({
|
|
9895
10017
|
rootContainer: theme.$container,
|
|
9896
|
-
getPopupContainer: function
|
|
10018
|
+
getPopupContainer: function() {
|
|
9897
10019
|
var _theme__mobileExtend;
|
|
9898
10020
|
return (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight;
|
|
9899
10021
|
},
|
|
@@ -9927,33 +10049,33 @@ function _renderTheme(theme, data) {
|
|
|
9927
10049
|
});
|
|
9928
10050
|
})();
|
|
9929
10051
|
}
|
|
9930
|
-
var _renderTimeLine = function
|
|
10052
|
+
var _renderTimeLine = function(theme, container, props) {
|
|
9931
10053
|
if (props === void 0) props = {};
|
|
9932
10054
|
if (!theme.controls.timeLineControl && theme.options.timeLineOptions !== null) {
|
|
9933
|
-
var _ref;
|
|
9934
10055
|
var _theme_urlInfo, _theme_urlInfo1, _theme_options, _theme_options1, _this, _theme_options2;
|
|
10056
|
+
var _showSectionIcon;
|
|
9935
10057
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9936
10058
|
theme.controls.timeLineControl = new Controls['timeLine'](_extends$1({
|
|
9937
|
-
getPopupContainer: function
|
|
10059
|
+
getPopupContainer: function() {
|
|
9938
10060
|
return container;
|
|
9939
10061
|
},
|
|
9940
10062
|
language: theme.options.language,
|
|
9941
10063
|
locales: theme.i18n.translations,
|
|
9942
10064
|
coverQuery: ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.validateCode) ? "decodekey=" + ((_theme_urlInfo1 = theme.urlInfo) == null ? void 0 : _theme_urlInfo1.validateCode) : ''
|
|
9943
10065
|
}, ((_theme_options = theme.options) == null ? void 0 : _theme_options["timeLineOptions"]) || {}, {
|
|
9944
|
-
showSectionIcon: ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["recListOptions"]) !== null ? (
|
|
10066
|
+
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,
|
|
9945
10067
|
props: props
|
|
9946
10068
|
}));
|
|
9947
10069
|
}
|
|
9948
10070
|
};
|
|
9949
|
-
var _renderSegmentProgress = function
|
|
10071
|
+
var _renderSegmentProgress = function(theme, container, props) {
|
|
9950
10072
|
if (props === void 0) props = {};
|
|
9951
10073
|
if (!theme.controls.segmentProgressControl && theme.options.segmentProgressOptions !== null) {
|
|
9952
10074
|
var _theme_options;
|
|
9953
10075
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9954
10076
|
theme.controls.segmentProgressControl = new Controls['segmentProgress'](_extends$1({
|
|
9955
10077
|
rootContainer: theme.$container,
|
|
9956
|
-
getPopupContainer: function
|
|
10078
|
+
getPopupContainer: function() {
|
|
9957
10079
|
return container;
|
|
9958
10080
|
},
|
|
9959
10081
|
language: theme.options.language,
|
|
@@ -9963,13 +10085,13 @@ var _renderSegmentProgress = function _renderSegmentProgress(theme, container, p
|
|
|
9963
10085
|
}));
|
|
9964
10086
|
}
|
|
9965
10087
|
};
|
|
9966
|
-
var _renderDatePicker = function
|
|
10088
|
+
var _renderDatePicker = function(theme, container, props) {
|
|
9967
10089
|
if (props === void 0) props = {};
|
|
9968
10090
|
if (!theme.controls.dateControl && theme.options.dateOptions !== null) {
|
|
9969
10091
|
var _theme_options;
|
|
9970
10092
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9971
10093
|
theme.controls.dateControl = new Controls['date'](_extends$1({
|
|
9972
|
-
getPopupContainer: function
|
|
10094
|
+
getPopupContainer: function() {
|
|
9973
10095
|
return container;
|
|
9974
10096
|
},
|
|
9975
10097
|
language: theme.options.language,
|
|
@@ -9979,13 +10101,13 @@ var _renderDatePicker = function _renderDatePicker(theme, container, props) {
|
|
|
9979
10101
|
}));
|
|
9980
10102
|
}
|
|
9981
10103
|
};
|
|
9982
|
-
var _renderTimePicker = function
|
|
10104
|
+
var _renderTimePicker = function(theme, container, props) {
|
|
9983
10105
|
if (props === void 0) props = {};
|
|
9984
10106
|
if (!theme.controls.timeControl && theme.options.timeOptions !== null) {
|
|
9985
10107
|
var _theme_options;
|
|
9986
10108
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9987
10109
|
theme.controls.timeControl = new Controls['time'](_extends$1({
|
|
9988
|
-
getPopupContainer: function
|
|
10110
|
+
getPopupContainer: function() {
|
|
9989
10111
|
return container;
|
|
9990
10112
|
},
|
|
9991
10113
|
language: theme.options.language,
|
|
@@ -9995,14 +10117,14 @@ var _renderTimePicker = function _renderTimePicker(theme, container, props) {
|
|
|
9995
10117
|
}));
|
|
9996
10118
|
}
|
|
9997
10119
|
};
|
|
9998
|
-
var _renderRecType = function
|
|
10120
|
+
var _renderRecType = function(theme, container, recType, props) {
|
|
9999
10121
|
if (props === void 0) props = {};
|
|
10000
10122
|
var _theme_controls, _theme_controls1, _theme_controls2;
|
|
10001
10123
|
if (!((_theme_controls = theme.controls) == null ? void 0 : _theme_controls['recControl']) && theme.options.recOptions !== null && container) {
|
|
10002
10124
|
var _theme_options;
|
|
10003
10125
|
// eslint-disable-next-line @typescript-eslint/dot-notation, new-cap, @typescript-eslint/no-unsafe-argument
|
|
10004
10126
|
theme.controls['recControl'] = new Controls['rec'](_extends$1({
|
|
10005
|
-
getPopupContainer: function
|
|
10127
|
+
getPopupContainer: function() {
|
|
10006
10128
|
return container;
|
|
10007
10129
|
},
|
|
10008
10130
|
recType: theme.recType,
|
|
@@ -10106,7 +10228,7 @@ var _renderRecType = function _renderRecType(theme, container, recType, props) {
|
|
|
10106
10228
|
return width - leftWidth - rightWidth > offset;
|
|
10107
10229
|
}
|
|
10108
10230
|
|
|
10109
|
-
function _array_like_to_array(arr, len) {
|
|
10231
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion */ function _array_like_to_array(arr, len) {
|
|
10110
10232
|
if (len == null || len > arr.length) len = arr.length;
|
|
10111
10233
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10112
10234
|
return arr2;
|
|
@@ -10119,8 +10241,11 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
10119
10241
|
reject(error);
|
|
10120
10242
|
return;
|
|
10121
10243
|
}
|
|
10122
|
-
if (info.done)
|
|
10123
|
-
|
|
10244
|
+
if (info.done) {
|
|
10245
|
+
resolve(value);
|
|
10246
|
+
} else {
|
|
10247
|
+
Promise.resolve(value).then(_next, _throw);
|
|
10248
|
+
}
|
|
10124
10249
|
}
|
|
10125
10250
|
function _async_to_generator(fn) {
|
|
10126
10251
|
return function() {
|
|
@@ -10150,29 +10275,15 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
10150
10275
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
10151
10276
|
return Constructor;
|
|
10152
10277
|
}
|
|
10153
|
-
function _create_for_of_iterator_helper_loose(o, allowArrayLike) {
|
|
10154
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
10155
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
|
10156
|
-
if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike) {
|
|
10157
|
-
if (it) o = it;
|
|
10158
|
-
var i = 0;
|
|
10159
|
-
return function() {
|
|
10160
|
-
if (i >= o.length) return {
|
|
10161
|
-
done: true
|
|
10162
|
-
};
|
|
10163
|
-
return {
|
|
10164
|
-
done: false,
|
|
10165
|
-
value: o[i++]
|
|
10166
|
-
};
|
|
10167
|
-
};
|
|
10168
|
-
}
|
|
10169
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10170
|
-
}
|
|
10171
10278
|
function _extends() {
|
|
10172
|
-
_extends = Object.assign || function
|
|
10279
|
+
_extends = Object.assign || function(target) {
|
|
10173
10280
|
for(var i = 1; i < arguments.length; i++){
|
|
10174
10281
|
var source = arguments[i];
|
|
10175
|
-
for(var key in source)
|
|
10282
|
+
for(var key in source){
|
|
10283
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
10284
|
+
target[key] = source[key];
|
|
10285
|
+
}
|
|
10286
|
+
}
|
|
10176
10287
|
}
|
|
10177
10288
|
return target;
|
|
10178
10289
|
};
|
|
@@ -10198,6 +10309,34 @@ function _set_prototype_of(o, p) {
|
|
|
10198
10309
|
};
|
|
10199
10310
|
return _set_prototype_of(o, p);
|
|
10200
10311
|
}
|
|
10312
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
10313
|
+
if (!o) return;
|
|
10314
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
10315
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10316
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10317
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10318
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
10319
|
+
}
|
|
10320
|
+
function _create_for_of_iterator_helper_loose(o, allowArrayLike) {
|
|
10321
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
10322
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
10323
|
+
if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike) {
|
|
10324
|
+
if (it) o = it;
|
|
10325
|
+
var i = 0;
|
|
10326
|
+
return function() {
|
|
10327
|
+
if (i >= o.length) {
|
|
10328
|
+
return {
|
|
10329
|
+
done: true
|
|
10330
|
+
};
|
|
10331
|
+
}
|
|
10332
|
+
return {
|
|
10333
|
+
done: false,
|
|
10334
|
+
value: o[i++]
|
|
10335
|
+
};
|
|
10336
|
+
};
|
|
10337
|
+
}
|
|
10338
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10339
|
+
}
|
|
10201
10340
|
function _ts_generator(thisArg, body) {
|
|
10202
10341
|
var f, y, t, _ = {
|
|
10203
10342
|
label: 0,
|
|
@@ -10207,17 +10346,9 @@ function _ts_generator(thisArg, body) {
|
|
|
10207
10346
|
},
|
|
10208
10347
|
trys: [],
|
|
10209
10348
|
ops: []
|
|
10210
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype)
|
|
10211
|
-
return
|
|
10212
|
-
|
|
10213
|
-
}), d(g, "throw", {
|
|
10214
|
-
value: verb(1)
|
|
10215
|
-
}), d(g, "return", {
|
|
10216
|
-
value: verb(2)
|
|
10217
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
10218
|
-
value: function() {
|
|
10219
|
-
return this;
|
|
10220
|
-
}
|
|
10349
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
10350
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
10351
|
+
return this;
|
|
10221
10352
|
}), g;
|
|
10222
10353
|
function verb(n) {
|
|
10223
10354
|
return function(v) {
|
|
@@ -10297,14 +10428,6 @@ function _ts_generator(thisArg, body) {
|
|
|
10297
10428
|
};
|
|
10298
10429
|
}
|
|
10299
10430
|
}
|
|
10300
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
10301
|
-
if (!o) return;
|
|
10302
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
10303
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10304
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10305
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10306
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
10307
|
-
}
|
|
10308
10431
|
var THEME_DEFAULT_OPTIONS = {
|
|
10309
10432
|
dblClickFullscreen: true,
|
|
10310
10433
|
language: 'zh',
|
|
@@ -10358,7 +10481,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10358
10481
|
_inherits(Theme, EventEmitter);
|
|
10359
10482
|
function Theme(options) {
|
|
10360
10483
|
var _this;
|
|
10361
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
10362
10484
|
var _this_options_volumeOptions, _this_options_volumeOptions1, _this_options_speedOptions, _this_urlInfo_searchParams, _this_urlInfo, _this_options, _this_options1;
|
|
10363
10485
|
_this = EventEmitter.call(this) || this, /** 播放器配置项 */ _this.options = THEME_DEFAULT_OPTIONS, _this.staticPath = '', /** 所有控件列表, 所有控件名称规则(`${iconId}Control`), 如音量控件 this.controls["volumeControl"] @since 0.0.1 */ _this.controls = {}, /**
|
|
10364
10486
|
* @since 0.0.1
|
|
@@ -10424,7 +10546,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10424
10546
|
_this._initClassName();
|
|
10425
10547
|
// 画布需要渲染在 this.contentControl.$content 内
|
|
10426
10548
|
_this.contentControl = new Content({
|
|
10427
|
-
getContainer: function
|
|
10549
|
+
getContainer: function() {
|
|
10428
10550
|
return _this.$container;
|
|
10429
10551
|
},
|
|
10430
10552
|
scaleMode: _this.scaleMode
|
|
@@ -10434,15 +10556,18 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10434
10556
|
});
|
|
10435
10557
|
// zoom utils
|
|
10436
10558
|
__zoom(_this, _this.contentControl.$content, _extends({}, _this.options.zoomOptions || {}, {
|
|
10437
|
-
onTap: function
|
|
10559
|
+
onTap: function() {
|
|
10438
10560
|
var _this__interactiveResult_setTimeoutShow, _this__interactiveResult;
|
|
10439
10561
|
(_this__interactiveResult = _this._interactiveResult) == null ? void 0 : (_this__interactiveResult_setTimeoutShow = _this__interactiveResult.setTimeoutShow) == null ? void 0 : _this__interactiveResult_setTimeoutShow.call(_this__interactiveResult);
|
|
10440
10562
|
}
|
|
10441
10563
|
}));
|
|
10442
|
-
|
|
10443
|
-
_this.
|
|
10564
|
+
var _this_options_volumeOptions_volume, _ref;
|
|
10565
|
+
_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;
|
|
10566
|
+
var _this_options_volumeOptions_muted, _ref1;
|
|
10567
|
+
_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;
|
|
10568
|
+
var _this_options_speedOptions_value, _ref2;
|
|
10444
10569
|
// playbackSpeed 是 萤石标准流倍速字段
|
|
10445
|
-
_this._speed = +((
|
|
10570
|
+
_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);
|
|
10446
10571
|
_this._mobileInnerWidthHeight = _this._mobileInnerWidthHeight.bind(_this);
|
|
10447
10572
|
_this._throttleMobileInnerWidthHeight = throttle(_this._mobileInnerWidthHeight, 20).bind(_this);
|
|
10448
10573
|
_this._onDblClickFullscreen = debounce(_this._onDblClickFullscreen, 20).bind(_this);
|
|
@@ -10470,9 +10595,9 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10470
10595
|
// flv / mp4:支持自定义 themeData,未传时回退到标准直播模板 LiveTemplate(2026-01-19 起支持自定义)
|
|
10471
10596
|
initialThemeData = themeData !== undefined ? themeData : LiveTemplate;
|
|
10472
10597
|
} else {
|
|
10473
|
-
var
|
|
10598
|
+
var _ref3;
|
|
10474
10599
|
// 其余类型(如 ezopen 私有流):template 优先级高于 themeData,二者都未设置时为 null
|
|
10475
|
-
initialThemeData = (
|
|
10600
|
+
initialThemeData = (_ref3 = template != null ? template : themeData) != null ? _ref3 : null;
|
|
10476
10601
|
}
|
|
10477
10602
|
_this._renderTheme(initialThemeData);
|
|
10478
10603
|
_this._addEventListener();
|
|
@@ -10823,7 +10948,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10823
10948
|
this._fullscreen = new Fullscreen$1(this.$container, {
|
|
10824
10949
|
prefix: PREFIX_CLASS,
|
|
10825
10950
|
// 全屏变化
|
|
10826
|
-
onChange: function
|
|
10951
|
+
onChange: function(info) {
|
|
10827
10952
|
if (info.isCurrentFullscreen) {
|
|
10828
10953
|
_this.emit(EVENTS.fullscreen);
|
|
10829
10954
|
} else if (_this._isCurrentFullscreen) {
|
|
@@ -10841,7 +10966,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10841
10966
|
}
|
|
10842
10967
|
});
|
|
10843
10968
|
// ------------------------------ 旋转方向 -----------------------------
|
|
10844
|
-
var rotateOrientation = function
|
|
10969
|
+
var rotateOrientation = function(orientation) {
|
|
10845
10970
|
if (_this.$container) {
|
|
10846
10971
|
var // 重置移除旋转角度
|
|
10847
10972
|
_this_$container_classList;
|
|
@@ -10964,7 +11089,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10964
11089
|
language: this.options.language,
|
|
10965
11090
|
locales: this.i18n.translations,
|
|
10966
11091
|
rootContainer: this.$container,
|
|
10967
|
-
getPopupContainer: function
|
|
11092
|
+
getPopupContainer: function() {
|
|
10968
11093
|
var _this__header;
|
|
10969
11094
|
return (_this__header = _this._header) == null ? void 0 : _this__header.$right;
|
|
10970
11095
|
},
|
|
@@ -10976,7 +11101,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10976
11101
|
8
|
|
10977
11102
|
],
|
|
10978
11103
|
wrapClassName: "" + PREFIX_CLASS + "-header-more",
|
|
10979
|
-
onOpenChange: function
|
|
11104
|
+
onOpenChange: function(open) {
|
|
10980
11105
|
_this.emit(EVENTS.control.headerMorePanelOpenChange, open);
|
|
10981
11106
|
}
|
|
10982
11107
|
});
|
|
@@ -11019,7 +11144,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11019
11144
|
language: this.options.language,
|
|
11020
11145
|
locales: this.i18n.translations,
|
|
11021
11146
|
rootContainer: this.$container,
|
|
11022
|
-
getPopupContainer: function
|
|
11147
|
+
getPopupContainer: function() {
|
|
11023
11148
|
var _this__footer;
|
|
11024
11149
|
return (_this__footer = _this._footer) == null ? void 0 : _this__footer.$right;
|
|
11025
11150
|
},
|
|
@@ -11031,7 +11156,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11031
11156
|
-8
|
|
11032
11157
|
],
|
|
11033
11158
|
wrapClassName: "" + PREFIX_CLASS + "-footer-more",
|
|
11034
|
-
onOpenChange: function
|
|
11159
|
+
onOpenChange: function(open) {
|
|
11035
11160
|
_this.emit(EVENTS.control.footerMorePanelOpenChange, open);
|
|
11036
11161
|
}
|
|
11037
11162
|
});
|
|
@@ -11550,7 +11675,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11550
11675
|
* theme.on(Theme.EVENTS.zoomChange, (zoom: number) => {})
|
|
11551
11676
|
* ```
|
|
11552
11677
|
*/ function set(zoom) {
|
|
11553
|
-
var _ref;
|
|
11554
11678
|
var _this_options_zoomOptions;
|
|
11555
11679
|
if (!this._zooming) {
|
|
11556
11680
|
var _this_messageControl_info, _this_messageControl, _this_logger;
|
|
@@ -11559,7 +11683,8 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11559
11683
|
return;
|
|
11560
11684
|
}
|
|
11561
11685
|
zoom = +zoom.toFixed(1);
|
|
11562
|
-
var
|
|
11686
|
+
var _this_options_zoomOptions_max;
|
|
11687
|
+
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;
|
|
11563
11688
|
if (zoom > ZOOM_MAX) {
|
|
11564
11689
|
var _this_messageControl_info1, _this_messageControl1, _this_logger1;
|
|
11565
11690
|
(_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', {
|
|
@@ -11763,6 +11888,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11763
11888
|
zh: zh,
|
|
11764
11889
|
en: en
|
|
11765
11890
|
};
|
|
11766
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.
|
|
11891
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.4-beta.1';
|
|
11767
11892
|
|
|
11768
11893
|
export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
|