@ezuikit/player-theme 3.1.4-beta.1 → 3.1.5-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 +436 -546
- package/dist/index.esm.js +436 -546
- package/dist/index.umd.js +666 -1120
- package/dist/style.css +4 -3
- package/dist/style.js +2 -3
- package/dist/types/index.d.ts +89 -44
- 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-
|
|
2
|
+
* @ezuikit/player-theme v3.1.5-beta.1
|
|
3
|
+
* Copyright (c) 2026-09-03 20:27:16 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
@@ -478,14 +478,10 @@ function _set_prototype_of$z(o, p) {
|
|
|
478
478
|
}(EventEmitter);
|
|
479
479
|
|
|
480
480
|
function _extends$y() {
|
|
481
|
-
_extends$y = Object.assign || function(target) {
|
|
481
|
+
_extends$y = Object.assign || function assign(target) {
|
|
482
482
|
for(var i = 1; i < arguments.length; i++){
|
|
483
483
|
var source = arguments[i];
|
|
484
|
-
for(var key in source)
|
|
485
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
486
|
-
target[key] = source[key];
|
|
487
|
-
}
|
|
488
|
-
}
|
|
484
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
489
485
|
}
|
|
490
486
|
return target;
|
|
491
487
|
};
|
|
@@ -559,14 +555,10 @@ var LOADING_DEFAULT_OPTIONS = {};
|
|
|
559
555
|
}(Control);
|
|
560
556
|
|
|
561
557
|
function _extends$x() {
|
|
562
|
-
_extends$x = Object.assign || function(target) {
|
|
558
|
+
_extends$x = Object.assign || function assign(target) {
|
|
563
559
|
for(var i = 1; i < arguments.length; i++){
|
|
564
560
|
var source = arguments[i];
|
|
565
|
-
for(var key in source)
|
|
566
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
567
|
-
target[key] = source[key];
|
|
568
|
-
}
|
|
569
|
-
}
|
|
561
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
570
562
|
}
|
|
571
563
|
return target;
|
|
572
564
|
};
|
|
@@ -672,7 +664,7 @@ var POSTER_OPTIONS = {
|
|
|
672
664
|
var Icons = {
|
|
673
665
|
/** 播放 */ 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>',
|
|
674
666
|
/** 暂停 */ 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>',
|
|
675
|
-
/** 音量 */ volume: function(prefix) {
|
|
667
|
+
/** 音量 */ volume: function volume(prefix) {
|
|
676
668
|
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>';
|
|
677
669
|
},
|
|
678
670
|
/** 全屏 */ 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>',
|
|
@@ -698,7 +690,7 @@ var Icons = {
|
|
|
698
690
|
/** 录制/摄像机 */ 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>',
|
|
699
691
|
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 ',
|
|
700
692
|
/** 对讲 */ 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>',
|
|
701
|
-
talkGrowth: function(prefix) {
|
|
693
|
+
talkGrowth: function talkGrowth(prefix) {
|
|
702
694
|
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>';
|
|
703
695
|
},
|
|
704
696
|
/** 语音广播 */ 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>',
|
|
@@ -740,173 +732,169 @@ var Icons = {
|
|
|
740
732
|
return '<span class="' + PREFIX_CLASS + "-icon " + PREFIX_CLASS + "-icon-" + type + '" ' + attrStr + ">" + svg + "</span>";
|
|
741
733
|
}
|
|
742
734
|
var IconComponents = {
|
|
743
|
-
/** 播放 */ play: function(attr) {
|
|
735
|
+
/** 播放 */ play: function play(attr) {
|
|
744
736
|
if (attr === void 0) attr = {};
|
|
745
737
|
return createIcon(Icons.play, 'play', attr);
|
|
746
738
|
},
|
|
747
|
-
/** 暂停 */ pause: function(attr) {
|
|
739
|
+
/** 暂停 */ pause: function pause(attr) {
|
|
748
740
|
if (attr === void 0) attr = {};
|
|
749
741
|
return createIcon(Icons.pause, 'pause', attr);
|
|
750
742
|
},
|
|
751
|
-
volume: function(attr) {
|
|
743
|
+
volume: function volume(attr) {
|
|
752
744
|
if (attr === void 0) attr = {};
|
|
753
745
|
return createIcon(Icons.volume(PREFIX_CLASS), 'volume', attr);
|
|
754
746
|
},
|
|
755
|
-
mobileFullscreen: function(attr) {
|
|
747
|
+
mobileFullscreen: function mobileFullscreen(attr) {
|
|
756
748
|
if (attr === void 0) attr = {};
|
|
757
749
|
return createIcon(Icons.mobileFullscreen, 'mobile-fullscreen', attr);
|
|
758
750
|
},
|
|
759
|
-
exitFullscreen: function(attr) {
|
|
751
|
+
exitFullscreen: function exitFullscreen(attr) {
|
|
760
752
|
if (attr === void 0) attr = {};
|
|
761
753
|
return createIcon(Icons.exitFullscreen, 'exit-fullscreen', attr);
|
|
762
754
|
},
|
|
763
|
-
fullscreen: function(attr) {
|
|
755
|
+
fullscreen: function fullscreen(attr) {
|
|
764
756
|
if (attr === void 0) attr = {};
|
|
765
757
|
return createIcon(Icons.fullscreen, 'fullscreen', attr);
|
|
766
758
|
},
|
|
767
|
-
exitGlobalFullscreen: function(attr) {
|
|
759
|
+
exitGlobalFullscreen: function exitGlobalFullscreen(attr) {
|
|
768
760
|
if (attr === void 0) attr = {};
|
|
769
761
|
return createIcon(Icons.exitGlobalFullscreen, 'exit-global-fullscreen', attr);
|
|
770
762
|
},
|
|
771
|
-
globalFullscreen: function(attr) {
|
|
763
|
+
globalFullscreen: function globalFullscreen(attr) {
|
|
772
764
|
if (attr === void 0) attr = {};
|
|
773
765
|
return createIcon(Icons.globalFullscreen, 'global-fullscreen', attr);
|
|
774
766
|
},
|
|
775
|
-
capturePicture: function(attr) {
|
|
767
|
+
capturePicture: function capturePicture(attr) {
|
|
776
768
|
if (attr === void 0) attr = {};
|
|
777
769
|
return createIcon(Icons.capturePicture, 'capture-picture', attr);
|
|
778
770
|
},
|
|
779
|
-
ptz: function(attr) {
|
|
771
|
+
ptz: function ptz(attr) {
|
|
780
772
|
if (attr === void 0) attr = {};
|
|
781
773
|
return createIcon(Icons.ptz, 'ptz', attr);
|
|
782
774
|
},
|
|
783
|
-
record: function(attr) {
|
|
775
|
+
record: function record(attr) {
|
|
784
776
|
if (attr === void 0) attr = {};
|
|
785
777
|
return createIcon(Icons.record, 'record', attr);
|
|
786
778
|
},
|
|
787
|
-
recordCircle: function(attr) {
|
|
779
|
+
recordCircle: function recordCircle(attr) {
|
|
788
780
|
if (attr === void 0) attr = {};
|
|
789
781
|
return createIcon(Icons.recordCircle, 'record-circle', attr);
|
|
790
782
|
},
|
|
791
|
-
talk: function(attr) {
|
|
783
|
+
talk: function talk(attr) {
|
|
792
784
|
if (attr === void 0) attr = {};
|
|
793
785
|
return createIcon(Icons.talk, 'talk', attr);
|
|
794
786
|
},
|
|
795
|
-
broadcast: function(attr) {
|
|
787
|
+
broadcast: function broadcast(attr) {
|
|
796
788
|
if (attr === void 0) attr = {};
|
|
797
789
|
return createIcon(Icons.broadcast, 'broadcast', attr);
|
|
798
790
|
},
|
|
799
|
-
aiChat: function(attr) {
|
|
791
|
+
aiChat: function aiChat(attr) {
|
|
800
792
|
if (attr === void 0) attr = {};
|
|
801
793
|
return createIcon(Icons.aiChat, 'aiChat', attr);
|
|
802
794
|
},
|
|
803
|
-
talkGrowth: function(attr) {
|
|
795
|
+
talkGrowth: function talkGrowth(attr) {
|
|
804
796
|
if (attr === void 0) attr = {};
|
|
805
797
|
return createIcon(Icons.talkGrowth(PREFIX_CLASS), 'talk-growth', attr);
|
|
806
798
|
},
|
|
807
|
-
zoom: function(attr) {
|
|
799
|
+
zoom: function zoom(attr) {
|
|
808
800
|
if (attr === void 0) attr = {};
|
|
809
801
|
return createIcon(Icons.zoom, 'zoom', attr);
|
|
810
802
|
},
|
|
811
|
-
more: function(attr) {
|
|
803
|
+
more: function more(attr) {
|
|
812
804
|
if (attr === void 0) attr = {};
|
|
813
805
|
return createIcon(Icons.more, 'more', attr);
|
|
814
806
|
},
|
|
815
|
-
moreDot: function(attr) {
|
|
807
|
+
moreDot: function moreDot(attr) {
|
|
816
808
|
if (attr === void 0) attr = {};
|
|
817
809
|
return createIcon(Icons.moreDot, 'more-dot', attr);
|
|
818
810
|
},
|
|
819
|
-
minusCircle: function(attr) {
|
|
811
|
+
minusCircle: function minusCircle(attr) {
|
|
820
812
|
if (attr === void 0) attr = {};
|
|
821
813
|
return createIcon(Icons.minusCircle, 'minus-circle', attr);
|
|
822
814
|
},
|
|
823
|
-
plusCircle: function(attr) {
|
|
815
|
+
plusCircle: function plusCircle(attr) {
|
|
824
816
|
if (attr === void 0) attr = {};
|
|
825
817
|
return createIcon(Icons.plusCircle, 'plus-circle', attr);
|
|
826
818
|
},
|
|
827
|
-
sdk: function(attr) {
|
|
819
|
+
sdk: function sdk(attr) {
|
|
828
820
|
if (attr === void 0) attr = {};
|
|
829
821
|
return createIcon(Icons.sdk, 'sdk', attr);
|
|
830
822
|
},
|
|
831
|
-
cloudRec: function(attr) {
|
|
823
|
+
cloudRec: function cloudRec(attr) {
|
|
832
824
|
if (attr === void 0) attr = {};
|
|
833
825
|
return createIcon(Icons.cloudRec, 'cloud-rec', attr);
|
|
834
826
|
},
|
|
835
|
-
cloudRecord: function(attr) {
|
|
827
|
+
cloudRecord: function cloudRecord(attr) {
|
|
836
828
|
if (attr === void 0) attr = {};
|
|
837
829
|
return createIcon(Icons.cloudRecord, 'cloud-record', attr);
|
|
838
830
|
},
|
|
839
|
-
error: function(attr) {
|
|
831
|
+
error: function error(attr) {
|
|
840
832
|
if (attr === void 0) attr = {};
|
|
841
833
|
return createIcon(Icons.error, 'error', attr);
|
|
842
834
|
},
|
|
843
|
-
info: function(attr) {
|
|
835
|
+
info: function info(attr) {
|
|
844
836
|
if (attr === void 0) attr = {};
|
|
845
837
|
return createIcon(Icons.info, 'info', attr);
|
|
846
838
|
},
|
|
847
|
-
close: function(attr) {
|
|
839
|
+
close: function close(attr) {
|
|
848
840
|
if (attr === void 0) attr = {};
|
|
849
841
|
return createIcon(Icons.close, 'close', attr);
|
|
850
842
|
},
|
|
851
|
-
closeCircleOutLined: function(attr) {
|
|
843
|
+
closeCircleOutLined: function closeCircleOutLined(attr) {
|
|
852
844
|
if (attr === void 0) attr = {};
|
|
853
845
|
return createIcon(Icons.closeCircleOutLined, 'close-circle', attr);
|
|
854
846
|
},
|
|
855
|
-
warnCircleOutLined: function(attr) {
|
|
847
|
+
warnCircleOutLined: function warnCircleOutLined(attr) {
|
|
856
848
|
if (attr === void 0) attr = {};
|
|
857
849
|
return createIcon(Icons.warnCircleOutLined, 'warn-circle', attr);
|
|
858
850
|
},
|
|
859
|
-
infoCircleOutLined: function(attr) {
|
|
851
|
+
infoCircleOutLined: function infoCircleOutLined(attr) {
|
|
860
852
|
if (attr === void 0) attr = {};
|
|
861
853
|
return createIcon(Icons.infoCircleOutLined, 'info-circle', attr);
|
|
862
854
|
},
|
|
863
|
-
date: function(attr) {
|
|
855
|
+
date: function date(attr) {
|
|
864
856
|
if (attr === void 0) attr = {};
|
|
865
857
|
return createIcon(Icons.date, 'date', attr);
|
|
866
858
|
},
|
|
867
|
-
filter: function(attr) {
|
|
859
|
+
filter: function filter(attr) {
|
|
868
860
|
if (attr === void 0) attr = {};
|
|
869
861
|
return createIcon(Icons.filter, 'filter', attr);
|
|
870
862
|
},
|
|
871
|
-
add: function(attr) {
|
|
863
|
+
add: function add(attr) {
|
|
872
864
|
if (attr === void 0) attr = {};
|
|
873
865
|
return createIcon(Icons.add, 'add', attr);
|
|
874
866
|
},
|
|
875
|
-
reduce: function(attr) {
|
|
867
|
+
reduce: function reduce(attr) {
|
|
876
868
|
if (attr === void 0) attr = {};
|
|
877
869
|
return createIcon(Icons.reduce, 'reduce', attr);
|
|
878
870
|
},
|
|
879
|
-
/** 直播 */ live: function(attr) {
|
|
871
|
+
/** 直播 */ live: function live(attr) {
|
|
880
872
|
if (attr === void 0) attr = {};
|
|
881
873
|
return createIcon(Icons.live, 'live', attr);
|
|
882
874
|
},
|
|
883
|
-
/** 回放 */ recDropdown: function(attr) {
|
|
875
|
+
/** 回放 */ recDropdown: function recDropdown(attr) {
|
|
884
876
|
if (attr === void 0) attr = {};
|
|
885
877
|
return createIcon(Icons.recDropdown, 'rec-dropdown', attr);
|
|
886
878
|
},
|
|
887
|
-
/** 录像列表 */ recList: function(attr) {
|
|
879
|
+
/** 录像列表 */ recList: function recList(attr) {
|
|
888
880
|
if (attr === void 0) attr = {};
|
|
889
881
|
return createIcon(Icons.list, 'rec-list', attr);
|
|
890
882
|
},
|
|
891
|
-
/** 消息 */ alarmMessage: function(attr) {
|
|
883
|
+
/** 消息 */ alarmMessage: function alarmMessage(attr) {
|
|
892
884
|
if (attr === void 0) attr = {};
|
|
893
885
|
return createIcon(Icons.alarmMessage, 'alarm-message', attr);
|
|
894
886
|
},
|
|
895
|
-
time: function(attr) {
|
|
887
|
+
time: function time(attr) {
|
|
896
888
|
if (attr === void 0) attr = {};
|
|
897
889
|
return createIcon(Icons.time, 'time', attr);
|
|
898
890
|
}
|
|
899
891
|
};
|
|
900
892
|
|
|
901
893
|
function _extends$w() {
|
|
902
|
-
_extends$w = Object.assign || function(target) {
|
|
894
|
+
_extends$w = Object.assign || function assign(target) {
|
|
903
895
|
for(var i = 1; i < arguments.length; i++){
|
|
904
896
|
var source = arguments[i];
|
|
905
|
-
for(var key in source)
|
|
906
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
907
|
-
target[key] = source[key];
|
|
908
|
-
}
|
|
909
|
-
}
|
|
897
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
910
898
|
}
|
|
911
899
|
return target;
|
|
912
900
|
};
|
|
@@ -1099,14 +1087,10 @@ function _create_class$8(Constructor, protoProps, staticProps) {
|
|
|
1099
1087
|
return Constructor;
|
|
1100
1088
|
}
|
|
1101
1089
|
function _extends$v() {
|
|
1102
|
-
_extends$v = Object.assign || function(target) {
|
|
1090
|
+
_extends$v = Object.assign || function assign(target) {
|
|
1103
1091
|
for(var i = 1; i < arguments.length; i++){
|
|
1104
1092
|
var source = arguments[i];
|
|
1105
|
-
for(var key in source)
|
|
1106
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1107
|
-
target[key] = source[key];
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1093
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
1110
1094
|
}
|
|
1111
1095
|
return target;
|
|
1112
1096
|
};
|
|
@@ -1225,14 +1209,6 @@ function _array_like_to_array$2(arr, len) {
|
|
|
1225
1209
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1226
1210
|
return arr2;
|
|
1227
1211
|
}
|
|
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
|
-
}
|
|
1236
1212
|
function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
1237
1213
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
1238
1214
|
if (it) return (it = it.call(o)).next.bind(it);
|
|
@@ -1240,18 +1216,24 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
|
1240
1216
|
if (it) o = it;
|
|
1241
1217
|
var i = 0;
|
|
1242
1218
|
return function() {
|
|
1243
|
-
if (i >= o.length) {
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
};
|
|
1247
|
-
}
|
|
1219
|
+
if (i >= o.length) return {
|
|
1220
|
+
done: true
|
|
1221
|
+
};
|
|
1248
1222
|
return {
|
|
1249
1223
|
done: false,
|
|
1250
1224
|
value: o[i++]
|
|
1251
1225
|
};
|
|
1252
1226
|
};
|
|
1253
1227
|
}
|
|
1254
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance
|
|
1228
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
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);
|
|
1255
1237
|
}
|
|
1256
1238
|
/**
|
|
1257
1239
|
* 工具类
|
|
@@ -1278,7 +1260,7 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
|
1278
1260
|
*/ // prettier-ignore
|
|
1279
1261
|
Utils.orientationEventListener = function orientationEventListener(change) {
|
|
1280
1262
|
var _orientationTimer = null;
|
|
1281
|
-
var getOrientation = function() {
|
|
1263
|
+
var getOrientation = function getOrientation() {
|
|
1282
1264
|
var _screen, _window;
|
|
1283
1265
|
// 现代浏览器方案
|
|
1284
1266
|
if ((_screen = screen) == null ? void 0 : _screen.orientation) {
|
|
@@ -1315,7 +1297,7 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
|
1315
1297
|
};
|
|
1316
1298
|
var orientation = getOrientation();
|
|
1317
1299
|
// 监听变化(兼容写法)
|
|
1318
|
-
var onOrientationChange = function() {
|
|
1300
|
+
var onOrientationChange = function onOrientationChange() {
|
|
1319
1301
|
var newOrientation = getOrientation == null ? void 0 : getOrientation();
|
|
1320
1302
|
// console.log("onOrientationChange", newOrientation, orientation)
|
|
1321
1303
|
// prettier-ignore
|
|
@@ -1324,7 +1306,7 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
|
1324
1306
|
orientation = newOrientation;
|
|
1325
1307
|
}
|
|
1326
1308
|
};
|
|
1327
|
-
var onResize = function() {
|
|
1309
|
+
var onResize = function onResize() {
|
|
1328
1310
|
// 防抖处理
|
|
1329
1311
|
if (_orientationTimer) clearTimeout(_orientationTimer);
|
|
1330
1312
|
if (onOrientationChange) _orientationTimer = setTimeout(onOrientationChange, 200);
|
|
@@ -1379,7 +1361,7 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
|
1379
1361
|
*/ // prettier-ignore
|
|
1380
1362
|
Utils.resizeObserver = function resizeObserver(node, callback) {
|
|
1381
1363
|
// prettier-ignore
|
|
1382
|
-
var observerFn = function(entries, observer) {
|
|
1364
|
+
var observerFn = function observerFn(entries, observer) {
|
|
1383
1365
|
for(var _iterator = _create_for_of_iterator_helper_loose$2(entries), _step; !(_step = _iterator()).done;){
|
|
1384
1366
|
var entry = _step.value;
|
|
1385
1367
|
if (entry.target === node) {
|
|
@@ -1443,9 +1425,9 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1443
1425
|
showPlus: false,
|
|
1444
1426
|
showMinus: false,
|
|
1445
1427
|
isRotated: false,
|
|
1446
|
-
onChange: function() {
|
|
1428
|
+
onChange: function onChange() {
|
|
1447
1429
|
/* no-op */ },
|
|
1448
|
-
renderText: function(_, percent) {
|
|
1430
|
+
renderText: function renderText(_, percent) {
|
|
1449
1431
|
return (percent * 100).toFixed(0);
|
|
1450
1432
|
}
|
|
1451
1433
|
};
|
|
@@ -1468,6 +1450,7 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1468
1450
|
* })
|
|
1469
1451
|
*/ var Progress = /*#__PURE__*/ function() {
|
|
1470
1452
|
function Progress(options) {
|
|
1453
|
+
var _this_options_defaultValue;
|
|
1471
1454
|
var _this_options_range;
|
|
1472
1455
|
this._percent = 0;
|
|
1473
1456
|
this._value = 0;
|
|
@@ -1489,7 +1472,6 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1489
1472
|
this.$container = options.container;
|
|
1490
1473
|
this._render();
|
|
1491
1474
|
this._eventListeners();
|
|
1492
|
-
var _this_options_defaultValue;
|
|
1493
1475
|
var value = (_this_options_defaultValue = this.options.defaultValue) != null ? _this_options_defaultValue : this.options.range[0]; // 设置默认值
|
|
1494
1476
|
this._value = +value.toFixed(2); // 保留两位小数
|
|
1495
1477
|
// prettier-ignore
|
|
@@ -1562,8 +1544,8 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1562
1544
|
this._percent = +((value - this.options.range[0]) / (this.options.range[1] - this.options.range[0])).toFixed(2);
|
|
1563
1545
|
};
|
|
1564
1546
|
_proto._render = function _render() {
|
|
1565
|
-
this.$content = document.createElement('div');
|
|
1566
1547
|
var _this_options_className;
|
|
1548
|
+
this.$content = document.createElement('div');
|
|
1567
1549
|
this.$content.className = PREFIX_CLASS + "-progress " + ((_this_options_className = this.options.className) != null ? _this_options_className : '');
|
|
1568
1550
|
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>" : '');
|
|
1569
1551
|
this.$container.appendChild(this.$content);
|
|
@@ -1756,14 +1738,10 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
1756
1738
|
return Constructor;
|
|
1757
1739
|
}
|
|
1758
1740
|
function _extends$u() {
|
|
1759
|
-
_extends$u = Object.assign || function(target) {
|
|
1741
|
+
_extends$u = Object.assign || function assign(target) {
|
|
1760
1742
|
for(var i = 1; i < arguments.length; i++){
|
|
1761
1743
|
var source = arguments[i];
|
|
1762
|
-
for(var key in source)
|
|
1763
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1764
|
-
target[key] = source[key];
|
|
1765
|
-
}
|
|
1766
|
-
}
|
|
1744
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
1767
1745
|
}
|
|
1768
1746
|
return target;
|
|
1769
1747
|
};
|
|
@@ -1794,8 +1772,8 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1794
1772
|
muted: false,
|
|
1795
1773
|
open: false,
|
|
1796
1774
|
trigger: 'hover',
|
|
1797
|
-
onOpenChange: function() {},
|
|
1798
|
-
onChange: function() {}
|
|
1775
|
+
onOpenChange: function onOpenChange() {},
|
|
1776
|
+
onChange: function onChange() {}
|
|
1799
1777
|
};
|
|
1800
1778
|
/**
|
|
1801
1779
|
* 音量调节控件
|
|
@@ -1823,7 +1801,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1823
1801
|
if (!(Utils.isMobile || _this._options.PLAY_TYPE === 'ezopen' || _this._options.PLAY_TYPE === 'ezhls')) {
|
|
1824
1802
|
var _this__options_props4, _this__options_props5;
|
|
1825
1803
|
_this.picker = new Picker(_this.$container, {
|
|
1826
|
-
getPopupContainer: function() {
|
|
1804
|
+
getPopupContainer: function getPopupContainer() {
|
|
1827
1805
|
return _this.$container;
|
|
1828
1806
|
},
|
|
1829
1807
|
trigger: _this._options.trigger,
|
|
@@ -1834,7 +1812,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1834
1812
|
-10
|
|
1835
1813
|
],
|
|
1836
1814
|
placement: 'top',
|
|
1837
|
-
onOpenChange: function(open) {
|
|
1815
|
+
onOpenChange: function onOpenChange(open) {
|
|
1838
1816
|
_this._options.onOpenChange == null ? void 0 : _this._options.onOpenChange.call(_this._options, open, _this._muted ? _this._lastVolume : _this.volume, _this._muted);
|
|
1839
1817
|
// prettier-ignore
|
|
1840
1818
|
_this.emit(EVENTS.control.volumePanelOpenChange, open, _this._lastVolume, _this._muted);
|
|
@@ -1851,10 +1829,10 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1851
1829
|
showPercent: true,
|
|
1852
1830
|
className: "" + PREFIX_CLASS + "-volume-progress",
|
|
1853
1831
|
// 为了解决点击进度调取消静音
|
|
1854
|
-
onProgressClick: function() {
|
|
1832
|
+
onProgressClick: function onProgressClick() {
|
|
1855
1833
|
_this.muted = false;
|
|
1856
1834
|
},
|
|
1857
|
-
onChange: function(value) {
|
|
1835
|
+
onChange: function onChange(value) {
|
|
1858
1836
|
if (value !== _this._volume) _this.volume = value;
|
|
1859
1837
|
}
|
|
1860
1838
|
});
|
|
@@ -2031,11 +2009,8 @@ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
2031
2009
|
reject(error);
|
|
2032
2010
|
return;
|
|
2033
2011
|
}
|
|
2034
|
-
if (info.done)
|
|
2035
|
-
|
|
2036
|
-
} else {
|
|
2037
|
-
Promise.resolve(value).then(_next, _throw);
|
|
2038
|
-
}
|
|
2012
|
+
if (info.done) resolve(value);
|
|
2013
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
2039
2014
|
}
|
|
2040
2015
|
function _async_to_generator$7(fn) {
|
|
2041
2016
|
return function() {
|
|
@@ -2061,9 +2036,17 @@ function _ts_generator$7(thisArg, body) {
|
|
|
2061
2036
|
},
|
|
2062
2037
|
trys: [],
|
|
2063
2038
|
ops: []
|
|
2064
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
2065
|
-
return
|
|
2066
|
-
|
|
2039
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
2040
|
+
return d(g, "next", {
|
|
2041
|
+
value: verb(0)
|
|
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
|
+
}
|
|
2067
2050
|
}), g;
|
|
2068
2051
|
function verb(n) {
|
|
2069
2052
|
return function(v) {
|
|
@@ -2157,11 +2140,10 @@ var Provider = /*#__PURE__*/ function() {
|
|
|
2157
2140
|
return item.element === element;
|
|
2158
2141
|
});
|
|
2159
2142
|
if (index >= 0) {
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
this.fullscreens[index].onChange.push(onChange);
|
|
2143
|
+
var target = this.fullscreens[index];
|
|
2144
|
+
target.onChange = Array.isArray(target.onChange) ? target.onChange : [];
|
|
2145
|
+
if (!target.onChange.includes(onChange)) {
|
|
2146
|
+
target.onChange.push(onChange);
|
|
2165
2147
|
}
|
|
2166
2148
|
} else {
|
|
2167
2149
|
this.fullscreens.push({
|
|
@@ -2467,14 +2449,10 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2467
2449
|
}();
|
|
2468
2450
|
|
|
2469
2451
|
function _extends$t() {
|
|
2470
|
-
_extends$t = Object.assign || function(target) {
|
|
2452
|
+
_extends$t = Object.assign || function assign(target) {
|
|
2471
2453
|
for(var i = 1; i < arguments.length; i++){
|
|
2472
2454
|
var source = arguments[i];
|
|
2473
|
-
for(var key in source)
|
|
2474
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2475
|
-
target[key] = source[key];
|
|
2476
|
-
}
|
|
2477
|
-
}
|
|
2455
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
2478
2456
|
}
|
|
2479
2457
|
return target;
|
|
2480
2458
|
};
|
|
@@ -2574,14 +2552,10 @@ function _set_prototype_of$t(o, p) {
|
|
|
2574
2552
|
}(Control);
|
|
2575
2553
|
|
|
2576
2554
|
function _extends$s() {
|
|
2577
|
-
_extends$s = Object.assign || function(target) {
|
|
2555
|
+
_extends$s = Object.assign || function assign(target) {
|
|
2578
2556
|
for(var i = 1; i < arguments.length; i++){
|
|
2579
2557
|
var source = arguments[i];
|
|
2580
|
-
for(var key in source)
|
|
2581
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2582
|
-
target[key] = source[key];
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2558
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
2585
2559
|
}
|
|
2586
2560
|
return target;
|
|
2587
2561
|
};
|
|
@@ -4107,14 +4081,10 @@ function _set_prototype_of$r(o, p) {
|
|
|
4107
4081
|
}(EventEmitter);
|
|
4108
4082
|
|
|
4109
4083
|
function _extends$r() {
|
|
4110
|
-
_extends$r = Object.assign || function(target) {
|
|
4084
|
+
_extends$r = Object.assign || function assign(target) {
|
|
4111
4085
|
for(var i = 1; i < arguments.length; i++){
|
|
4112
4086
|
var source = arguments[i];
|
|
4113
|
-
for(var key in source)
|
|
4114
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
4115
|
-
target[key] = source[key];
|
|
4116
|
-
}
|
|
4117
|
-
}
|
|
4087
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
4118
4088
|
}
|
|
4119
4089
|
return target;
|
|
4120
4090
|
};
|
|
@@ -4166,7 +4136,7 @@ function _set_prototype_of$q(o, p) {
|
|
|
4166
4136
|
title: (_this_locale1 = this.locale) == null ? void 0 : _this_locale1.BTN_MORE
|
|
4167
4137
|
});
|
|
4168
4138
|
this.picker = new Picker(this.$container, {
|
|
4169
|
-
getPopupContainer: function() {
|
|
4139
|
+
getPopupContainer: function getPopupContainer() {
|
|
4170
4140
|
return _this.$container;
|
|
4171
4141
|
},
|
|
4172
4142
|
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
@@ -4801,7 +4771,7 @@ function debounce(func, wait) {
|
|
|
4801
4771
|
theme.emit(EVENTS.control.dateChange, date);
|
|
4802
4772
|
});
|
|
4803
4773
|
theme.controls.dateControl.on(EVENTS.control.dateDestroy, function() {
|
|
4804
|
-
theme.emit(EVENTS.control.
|
|
4774
|
+
theme.emit(EVENTS.control.dateDestroy);
|
|
4805
4775
|
});
|
|
4806
4776
|
}
|
|
4807
4777
|
// 时间控件
|
|
@@ -4905,14 +4875,10 @@ function _create_class$5(Constructor, protoProps, staticProps) {
|
|
|
4905
4875
|
return Constructor;
|
|
4906
4876
|
}
|
|
4907
4877
|
function _extends$q() {
|
|
4908
|
-
_extends$q = Object.assign || function(target) {
|
|
4878
|
+
_extends$q = Object.assign || function assign(target) {
|
|
4909
4879
|
for(var i = 1; i < arguments.length; i++){
|
|
4910
4880
|
var source = arguments[i];
|
|
4911
|
-
for(var key in source)
|
|
4912
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
4913
|
-
target[key] = source[key];
|
|
4914
|
-
}
|
|
4915
|
-
}
|
|
4881
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
4916
4882
|
}
|
|
4917
4883
|
return target;
|
|
4918
4884
|
};
|
|
@@ -4991,14 +4957,14 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4991
4957
|
showPlus: true,
|
|
4992
4958
|
showPercent: true,
|
|
4993
4959
|
isRotated: this._isRotated,
|
|
4994
|
-
onChange: function(value, percent, range) {
|
|
4960
|
+
onChange: function onChange(value, percent, range) {
|
|
4995
4961
|
if (value !== _this._value) {
|
|
4996
4962
|
_this._value = value;
|
|
4997
4963
|
_this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, value, percent, range);
|
|
4998
4964
|
_this.emit(EVENTS.control.zoomChange, value, percent, range);
|
|
4999
4965
|
}
|
|
5000
4966
|
},
|
|
5001
|
-
renderText: function(value) {
|
|
4967
|
+
renderText: function renderText(value) {
|
|
5002
4968
|
return "" + value + "X";
|
|
5003
4969
|
}
|
|
5004
4970
|
});
|
|
@@ -5078,14 +5044,10 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
5078
5044
|
}(Control);
|
|
5079
5045
|
|
|
5080
5046
|
function _extends$p() {
|
|
5081
|
-
_extends$p = Object.assign || function(target) {
|
|
5047
|
+
_extends$p = Object.assign || function assign(target) {
|
|
5082
5048
|
for(var i = 1; i < arguments.length; i++){
|
|
5083
5049
|
var source = arguments[i];
|
|
5084
|
-
for(var key in source)
|
|
5085
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5086
|
-
target[key] = source[key];
|
|
5087
|
-
}
|
|
5088
|
-
}
|
|
5050
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
5089
5051
|
}
|
|
5090
5052
|
return target;
|
|
5091
5053
|
};
|
|
@@ -5094,14 +5056,14 @@ function _extends$p() {
|
|
|
5094
5056
|
function __zoom(theme, container, options) {
|
|
5095
5057
|
theme.zoomUtil = new Zoom$1(container, _extends$p({}, options || {}, {
|
|
5096
5058
|
min: 1,
|
|
5097
|
-
onChange: function(zoom, reset) {
|
|
5059
|
+
onChange: function onChange(zoom, reset) {
|
|
5098
5060
|
if (zoom !== theme._zoom) {
|
|
5099
5061
|
var _options_onChange;
|
|
5100
5062
|
theme.zoom = zoom;
|
|
5101
5063
|
options == null ? void 0 : (_options_onChange = options.onChange) == null ? void 0 : _options_onChange.call(options, zoom, reset);
|
|
5102
5064
|
}
|
|
5103
5065
|
},
|
|
5104
|
-
onTranslateChange: function(pos) {
|
|
5066
|
+
onTranslateChange: function onTranslateChange(pos) {
|
|
5105
5067
|
var _options_onTranslateChange;
|
|
5106
5068
|
theme.emit(EVENTS.zoomTranslateChange, pos);
|
|
5107
5069
|
options == null ? void 0 : (_options_onTranslateChange = options.onTranslateChange) == null ? void 0 : _options_onTranslateChange.call(options, pos);
|
|
@@ -5118,11 +5080,8 @@ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5118
5080
|
reject(error);
|
|
5119
5081
|
return;
|
|
5120
5082
|
}
|
|
5121
|
-
if (info.done)
|
|
5122
|
-
|
|
5123
|
-
} else {
|
|
5124
|
-
Promise.resolve(value).then(_next, _throw);
|
|
5125
|
-
}
|
|
5083
|
+
if (info.done) resolve(value);
|
|
5084
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
5126
5085
|
}
|
|
5127
5086
|
function _async_to_generator$6(fn) {
|
|
5128
5087
|
return function() {
|
|
@@ -5148,9 +5107,17 @@ function _ts_generator$6(thisArg, body) {
|
|
|
5148
5107
|
},
|
|
5149
5108
|
trys: [],
|
|
5150
5109
|
ops: []
|
|
5151
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
5152
|
-
return
|
|
5153
|
-
|
|
5110
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
5111
|
+
return d(g, "next", {
|
|
5112
|
+
value: verb(0)
|
|
5113
|
+
}), d(g, "throw", {
|
|
5114
|
+
value: verb(1)
|
|
5115
|
+
}), d(g, "return", {
|
|
5116
|
+
value: verb(2)
|
|
5117
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
5118
|
+
value: function() {
|
|
5119
|
+
return this;
|
|
5120
|
+
}
|
|
5154
5121
|
}), g;
|
|
5155
5122
|
function verb(n) {
|
|
5156
5123
|
return function(v) {
|
|
@@ -5306,11 +5273,8 @@ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5306
5273
|
reject(error);
|
|
5307
5274
|
return;
|
|
5308
5275
|
}
|
|
5309
|
-
if (info.done)
|
|
5310
|
-
|
|
5311
|
-
} else {
|
|
5312
|
-
Promise.resolve(value).then(_next, _throw);
|
|
5313
|
-
}
|
|
5276
|
+
if (info.done) resolve(value);
|
|
5277
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
5314
5278
|
}
|
|
5315
5279
|
function _async_to_generator$5(fn) {
|
|
5316
5280
|
return function() {
|
|
@@ -5328,14 +5292,10 @@ function _async_to_generator$5(fn) {
|
|
|
5328
5292
|
};
|
|
5329
5293
|
}
|
|
5330
5294
|
function _extends$o() {
|
|
5331
|
-
_extends$o = Object.assign || function(target) {
|
|
5295
|
+
_extends$o = Object.assign || function assign(target) {
|
|
5332
5296
|
for(var i = 1; i < arguments.length; i++){
|
|
5333
5297
|
var source = arguments[i];
|
|
5334
|
-
for(var key in source)
|
|
5335
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5336
|
-
target[key] = source[key];
|
|
5337
|
-
}
|
|
5338
|
-
}
|
|
5298
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
5339
5299
|
}
|
|
5340
5300
|
return target;
|
|
5341
5301
|
};
|
|
@@ -5350,9 +5310,17 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5350
5310
|
},
|
|
5351
5311
|
trys: [],
|
|
5352
5312
|
ops: []
|
|
5353
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
5354
|
-
return
|
|
5355
|
-
|
|
5313
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
5314
|
+
return d(g, "next", {
|
|
5315
|
+
value: verb(0)
|
|
5316
|
+
}), d(g, "throw", {
|
|
5317
|
+
value: verb(1)
|
|
5318
|
+
}), d(g, "return", {
|
|
5319
|
+
value: verb(2)
|
|
5320
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
5321
|
+
value: function() {
|
|
5322
|
+
return this;
|
|
5323
|
+
}
|
|
5356
5324
|
}), g;
|
|
5357
5325
|
function verb(n) {
|
|
5358
5326
|
return function(v) {
|
|
@@ -5445,10 +5413,10 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5445
5413
|
* @param {IThemeData} themeData 主题数据
|
|
5446
5414
|
* @returns
|
|
5447
5415
|
*/ function _filterControls(themeData) {
|
|
5416
|
+
var _ref;
|
|
5448
5417
|
var _themeData_header, _themeData_footer;
|
|
5449
5418
|
var data = {};
|
|
5450
|
-
|
|
5451
|
-
data.autoFocus = (_themeData_autoFocus = themeData == null ? void 0 : themeData.autoFocus) != null ? _themeData_autoFocus : 3; // 3s
|
|
5419
|
+
data.autoFocus = (_ref = themeData == null ? void 0 : themeData.autoFocus) != null ? _ref : 3; // 3s
|
|
5452
5420
|
data.poster = (themeData == null ? void 0 : themeData.poster) || ''; //
|
|
5453
5421
|
var deviceControls = [];
|
|
5454
5422
|
var recControls = [];
|
|
@@ -5605,7 +5573,7 @@ function _filterLeftRightControls(btnList) {
|
|
|
5605
5573
|
2,
|
|
5606
5574
|
null
|
|
5607
5575
|
];
|
|
5608
|
-
theme.emit(EVENTS.message, theme.i18n.t('FETCH_THEME_FAILED'), 'themeError');
|
|
5576
|
+
theme.emit(EVENTS.message, theme.i18n.t('FETCH_THEME_FAILED') + ' ' + data, 'themeError');
|
|
5609
5577
|
return [
|
|
5610
5578
|
2,
|
|
5611
5579
|
null
|
|
@@ -5617,7 +5585,7 @@ function _filterLeftRightControls(btnList) {
|
|
|
5617
5585
|
2,
|
|
5618
5586
|
null
|
|
5619
5587
|
];
|
|
5620
|
-
theme.emit(EVENTS.message, theme.i18n.t('FETCH_THEME_FAILED'), 'themeError');
|
|
5588
|
+
theme.emit(EVENTS.message, theme.i18n.t('FETCH_THEME_FAILED') + ' ' + data, 'themeError');
|
|
5621
5589
|
return [
|
|
5622
5590
|
2,
|
|
5623
5591
|
null
|
|
@@ -5753,14 +5721,10 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
|
|
|
5753
5721
|
}();
|
|
5754
5722
|
|
|
5755
5723
|
function _extends$n() {
|
|
5756
|
-
_extends$n = Object.assign || function(target) {
|
|
5724
|
+
_extends$n = Object.assign || function assign(target) {
|
|
5757
5725
|
for(var i = 1; i < arguments.length; i++){
|
|
5758
5726
|
var source = arguments[i];
|
|
5759
|
-
for(var key in source)
|
|
5760
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5761
|
-
target[key] = source[key];
|
|
5762
|
-
}
|
|
5763
|
-
}
|
|
5727
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
5764
5728
|
}
|
|
5765
5729
|
return target;
|
|
5766
5730
|
};
|
|
@@ -5798,14 +5762,10 @@ var Footer = /*#__PURE__*/ function(Component) {
|
|
|
5798
5762
|
}(Component);
|
|
5799
5763
|
|
|
5800
5764
|
function _extends$m() {
|
|
5801
|
-
_extends$m = Object.assign || function(target) {
|
|
5765
|
+
_extends$m = Object.assign || function assign(target) {
|
|
5802
5766
|
for(var i = 1; i < arguments.length; i++){
|
|
5803
5767
|
var source = arguments[i];
|
|
5804
|
-
for(var key in source)
|
|
5805
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5806
|
-
target[key] = source[key];
|
|
5807
|
-
}
|
|
5808
|
-
}
|
|
5768
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
5809
5769
|
}
|
|
5810
5770
|
return target;
|
|
5811
5771
|
};
|
|
@@ -5857,13 +5817,13 @@ function interactiveHF($container, second, callback) {
|
|
|
5857
5817
|
var _alwaysDisplay = false;
|
|
5858
5818
|
var _$header = $container.querySelector("." + PREFIX_CLASS + "-header");
|
|
5859
5819
|
var _$footer = $container.querySelector("." + PREFIX_CLASS + "-footer");
|
|
5860
|
-
var _clearTimeout = function() {
|
|
5820
|
+
var _clearTimeout = function _clearTimeout() {
|
|
5861
5821
|
if (_timer) {
|
|
5862
5822
|
clearTimeout(_timer);
|
|
5863
5823
|
_timer = null;
|
|
5864
5824
|
}
|
|
5865
5825
|
};
|
|
5866
|
-
var _show = function() {
|
|
5826
|
+
var _show = function _show() {
|
|
5867
5827
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5868
5828
|
_$header == null ? void 0 : _$header.classList.remove("" + PREFIX_CLASS + "-hide-transition");
|
|
5869
5829
|
_$footer == null ? void 0 : _$footer.classList.remove("" + PREFIX_CLASS + "-hide-transition");
|
|
@@ -5873,7 +5833,7 @@ function interactiveHF($container, second, callback) {
|
|
|
5873
5833
|
}
|
|
5874
5834
|
_open = true;
|
|
5875
5835
|
};
|
|
5876
|
-
var _hide = function() {
|
|
5836
|
+
var _hide = function _hide() {
|
|
5877
5837
|
if (_alwaysDisplay) {
|
|
5878
5838
|
return;
|
|
5879
5839
|
}
|
|
@@ -5888,27 +5848,27 @@ function interactiveHF($container, second, callback) {
|
|
|
5888
5848
|
}
|
|
5889
5849
|
_open = false;
|
|
5890
5850
|
};
|
|
5891
|
-
var _setTimeoutShow = function() {
|
|
5851
|
+
var _setTimeoutShow = function _setTimeoutShow() {
|
|
5892
5852
|
_show == null ? void 0 : _show();
|
|
5893
5853
|
_timer = setTimeout(function() {
|
|
5894
5854
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5895
5855
|
_hide == null ? void 0 : _hide();
|
|
5896
5856
|
}, second);
|
|
5897
5857
|
};
|
|
5898
|
-
var _headerFooterMousemove = function(e) {
|
|
5858
|
+
var _headerFooterMousemove = function _headerFooterMousemove(e) {
|
|
5899
5859
|
var // 鼠标在header footer 移动, 不允许消失及不要冒泡
|
|
5900
5860
|
_e_stopPropagation;
|
|
5901
5861
|
e == null ? void 0 : (_e_stopPropagation = e.stopPropagation) == null ? void 0 : _e_stopPropagation.call(e);
|
|
5902
5862
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5903
5863
|
};
|
|
5904
|
-
var _touchStart = function() {
|
|
5864
|
+
var _touchStart = function _touchStart() {
|
|
5905
5865
|
if (_open) {
|
|
5906
5866
|
_hide == null ? void 0 : _hide();
|
|
5907
5867
|
} else {
|
|
5908
5868
|
_setTimeoutShow == null ? void 0 : _setTimeoutShow();
|
|
5909
5869
|
}
|
|
5910
5870
|
};
|
|
5911
|
-
var _headerFooterTouchStart = function(e) {
|
|
5871
|
+
var _headerFooterTouchStart = function _headerFooterTouchStart(e) {
|
|
5912
5872
|
var // 移动端特殊处理, 点击 header footer不允许消失及不要冒泡
|
|
5913
5873
|
_e_stopPropagation;
|
|
5914
5874
|
e == null ? void 0 : (_e_stopPropagation = e.stopPropagation) == null ? void 0 : _e_stopPropagation.call(e);
|
|
@@ -5945,37 +5905,34 @@ function interactiveHF($container, second, callback) {
|
|
|
5945
5905
|
}
|
|
5946
5906
|
/**
|
|
5947
5907
|
* 销毁
|
|
5948
|
-
*/ var cleanup = function() {
|
|
5908
|
+
*/ var cleanup = function cleanup() {
|
|
5949
5909
|
if ($container) {
|
|
5950
5910
|
if (Utils.isMobile && _touchStart) {
|
|
5951
5911
|
var eventName = "click";
|
|
5952
5912
|
$container.removeEventListener(eventName, _touchStart);
|
|
5953
|
-
if (_$footer &&
|
|
5913
|
+
if (_$footer && _headerFooterTouchStart) {
|
|
5954
5914
|
_$footer.removeEventListener(eventName, _headerFooterTouchStart);
|
|
5955
5915
|
}
|
|
5956
|
-
if (_$header &&
|
|
5916
|
+
if (_$header && _headerFooterTouchStart) {
|
|
5957
5917
|
_$header.removeEventListener(eventName, _headerFooterTouchStart);
|
|
5958
5918
|
}
|
|
5959
5919
|
}
|
|
5960
|
-
if (_setTimeoutShow) {
|
|
5920
|
+
if (_hide || _setTimeoutShow) {
|
|
5961
5921
|
var eventName1 = window.PointerEvent ? "pointerdown" : "click";
|
|
5962
5922
|
$container.removeEventListener(eventName1, _setTimeoutShow);
|
|
5963
5923
|
$container.removeEventListener('mousemove', _setTimeoutShow); // 不要被 header 和 footer 冒泡过来
|
|
5964
5924
|
$container.removeEventListener('mouseleave', _hide);
|
|
5965
|
-
if (_$footer &&
|
|
5925
|
+
if (_$footer && _headerFooterMousemove) {
|
|
5966
5926
|
var _$footer_removeEventListener, _$footer_removeEventListener1;
|
|
5967
5927
|
_$footer == null ? void 0 : (_$footer_removeEventListener = _$footer.removeEventListener) == null ? void 0 : _$footer_removeEventListener.call(_$footer, eventName1, _headerFooterMousemove);
|
|
5968
5928
|
_$footer == null ? void 0 : (_$footer_removeEventListener1 = _$footer.removeEventListener) == null ? void 0 : _$footer_removeEventListener1.call(_$footer, "mousemove", _headerFooterMousemove);
|
|
5969
5929
|
}
|
|
5970
|
-
if (_$header &&
|
|
5930
|
+
if (_$header && _headerFooterMousemove) {
|
|
5971
5931
|
var _$header_removeEventListener, _$header_removeEventListener1;
|
|
5972
5932
|
_$header == null ? void 0 : (_$header_removeEventListener = _$header.removeEventListener) == null ? void 0 : _$header_removeEventListener.call(_$header, eventName1, _headerFooterMousemove);
|
|
5973
5933
|
_$header == null ? void 0 : (_$header_removeEventListener1 = _$header.removeEventListener) == null ? void 0 : _$header_removeEventListener1.call(_$header, "mousemove", _headerFooterMousemove);
|
|
5974
5934
|
}
|
|
5975
5935
|
}
|
|
5976
|
-
if (_hide) {
|
|
5977
|
-
$container.removeEventListener('mouseleave', _hide);
|
|
5978
|
-
}
|
|
5979
5936
|
_touchStart = null;
|
|
5980
5937
|
_setTimeoutShow = null;
|
|
5981
5938
|
_hide = null;
|
|
@@ -5989,11 +5946,11 @@ function interactiveHF($container, second, callback) {
|
|
|
5989
5946
|
};
|
|
5990
5947
|
return {
|
|
5991
5948
|
cleanup: cleanup,
|
|
5992
|
-
clearTimeout: function() {
|
|
5949
|
+
clearTimeout: function clearTimeout1() {
|
|
5993
5950
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5994
5951
|
_alwaysDisplay = true;
|
|
5995
5952
|
},
|
|
5996
|
-
setTimeoutShow: function() {
|
|
5953
|
+
setTimeoutShow: function setTimeoutShow() {
|
|
5997
5954
|
_setTimeoutShow == null ? void 0 : _setTimeoutShow();
|
|
5998
5955
|
_alwaysDisplay = false;
|
|
5999
5956
|
},
|
|
@@ -6002,14 +5959,10 @@ function interactiveHF($container, second, callback) {
|
|
|
6002
5959
|
}
|
|
6003
5960
|
|
|
6004
5961
|
function _extends$l() {
|
|
6005
|
-
_extends$l = Object.assign || function(target) {
|
|
5962
|
+
_extends$l = Object.assign || function assign(target) {
|
|
6006
5963
|
for(var i = 1; i < arguments.length; i++){
|
|
6007
5964
|
var source = arguments[i];
|
|
6008
|
-
for(var key in source)
|
|
6009
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6010
|
-
target[key] = source[key];
|
|
6011
|
-
}
|
|
6012
|
-
}
|
|
5965
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
6013
5966
|
}
|
|
6014
5967
|
return target;
|
|
6015
5968
|
};
|
|
@@ -6074,14 +6027,10 @@ function _set_prototype_of$m(o, p) {
|
|
|
6074
6027
|
}(Fullscreen);
|
|
6075
6028
|
|
|
6076
6029
|
function _extends$k() {
|
|
6077
|
-
_extends$k = Object.assign || function(target) {
|
|
6030
|
+
_extends$k = Object.assign || function assign(target) {
|
|
6078
6031
|
for(var i = 1; i < arguments.length; i++){
|
|
6079
6032
|
var source = arguments[i];
|
|
6080
|
-
for(var key in source)
|
|
6081
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6082
|
-
target[key] = source[key];
|
|
6083
|
-
}
|
|
6084
|
-
}
|
|
6033
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
6085
6034
|
}
|
|
6086
6035
|
return target;
|
|
6087
6036
|
};
|
|
@@ -6144,8 +6093,8 @@ function _set_prototype_of$l(o, p) {
|
|
|
6144
6093
|
* 点击 Control 会触发
|
|
6145
6094
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
6146
6095
|
var _this = this;
|
|
6147
|
-
this.active = true;
|
|
6148
6096
|
var _this_options_type, _this_options_cloudRecUpload;
|
|
6097
|
+
this.active = true;
|
|
6149
6098
|
this.emit(EVENTS.control.capturePicture, {
|
|
6150
6099
|
type: (_this_options_type = this.options.type) != null ? _this_options_type : 'download',
|
|
6151
6100
|
quality: this.options.quality || 0.9,
|
|
@@ -6181,14 +6130,10 @@ function _create_class$4(Constructor, protoProps, staticProps) {
|
|
|
6181
6130
|
return Constructor;
|
|
6182
6131
|
}
|
|
6183
6132
|
function _extends$j() {
|
|
6184
|
-
_extends$j = Object.assign || function(target) {
|
|
6133
|
+
_extends$j = Object.assign || function assign(target) {
|
|
6185
6134
|
for(var i = 1; i < arguments.length; i++){
|
|
6186
6135
|
var source = arguments[i];
|
|
6187
|
-
for(var key in source)
|
|
6188
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6189
|
-
target[key] = source[key];
|
|
6190
|
-
}
|
|
6191
|
-
}
|
|
6136
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
6192
6137
|
}
|
|
6193
6138
|
return target;
|
|
6194
6139
|
};
|
|
@@ -6357,7 +6302,7 @@ function formatTime(seconds, format) {
|
|
|
6357
6302
|
var hours = Math.floor(seconds / 3600);
|
|
6358
6303
|
var minutes = Math.floor(seconds % 3600 / 60);
|
|
6359
6304
|
var secs = seconds % 60;
|
|
6360
|
-
var pad = function(num) {
|
|
6305
|
+
var pad = function pad(num) {
|
|
6361
6306
|
return num.toString().padStart(2, '0');
|
|
6362
6307
|
};
|
|
6363
6308
|
return format.replace('HH', pad(hours)).replace('MM', pad(minutes)).replace('SS', pad(secs));
|
|
@@ -6377,14 +6322,10 @@ function _create_class$3(Constructor, protoProps, staticProps) {
|
|
|
6377
6322
|
return Constructor;
|
|
6378
6323
|
}
|
|
6379
6324
|
function _extends$i() {
|
|
6380
|
-
_extends$i = Object.assign || function(target) {
|
|
6325
|
+
_extends$i = Object.assign || function assign(target) {
|
|
6381
6326
|
for(var i = 1; i < arguments.length; i++){
|
|
6382
6327
|
var source = arguments[i];
|
|
6383
|
-
for(var key in source)
|
|
6384
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6385
|
-
target[key] = source[key];
|
|
6386
|
-
}
|
|
6387
|
-
}
|
|
6328
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
6388
6329
|
}
|
|
6389
6330
|
return target;
|
|
6390
6331
|
};
|
|
@@ -6532,11 +6473,8 @@ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6532
6473
|
reject(error);
|
|
6533
6474
|
return;
|
|
6534
6475
|
}
|
|
6535
|
-
if (info.done)
|
|
6536
|
-
|
|
6537
|
-
} else {
|
|
6538
|
-
Promise.resolve(value).then(_next, _throw);
|
|
6539
|
-
}
|
|
6476
|
+
if (info.done) resolve(value);
|
|
6477
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
6540
6478
|
}
|
|
6541
6479
|
function _async_to_generator$4(fn) {
|
|
6542
6480
|
return function() {
|
|
@@ -6567,14 +6505,10 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
|
6567
6505
|
return Constructor;
|
|
6568
6506
|
}
|
|
6569
6507
|
function _extends$h() {
|
|
6570
|
-
_extends$h = Object.assign || function(target) {
|
|
6508
|
+
_extends$h = Object.assign || function assign(target) {
|
|
6571
6509
|
for(var i = 1; i < arguments.length; i++){
|
|
6572
6510
|
var source = arguments[i];
|
|
6573
|
-
for(var key in source)
|
|
6574
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6575
|
-
target[key] = source[key];
|
|
6576
|
-
}
|
|
6577
|
-
}
|
|
6511
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
6578
6512
|
}
|
|
6579
6513
|
return target;
|
|
6580
6514
|
};
|
|
@@ -6609,9 +6543,17 @@ function _ts_generator$4(thisArg, body) {
|
|
|
6609
6543
|
},
|
|
6610
6544
|
trys: [],
|
|
6611
6545
|
ops: []
|
|
6612
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
6613
|
-
return
|
|
6614
|
-
|
|
6546
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
6547
|
+
return d(g, "next", {
|
|
6548
|
+
value: verb(0)
|
|
6549
|
+
}), d(g, "throw", {
|
|
6550
|
+
value: verb(1)
|
|
6551
|
+
}), d(g, "return", {
|
|
6552
|
+
value: verb(2)
|
|
6553
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
6554
|
+
value: function() {
|
|
6555
|
+
return this;
|
|
6556
|
+
}
|
|
6615
6557
|
}), g;
|
|
6616
6558
|
function verb(n) {
|
|
6617
6559
|
return function(v) {
|
|
@@ -6752,7 +6694,7 @@ function _ts_generator$4(thisArg, body) {
|
|
|
6752
6694
|
/**
|
|
6753
6695
|
* 点击 Control 会触发
|
|
6754
6696
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
6755
|
-
var _this = this, _superprop_get__onControlClick = function() {
|
|
6697
|
+
var _this = this, _superprop_get__onControlClick = function _superprop_get__onControlClick() {
|
|
6756
6698
|
return Control.prototype._onControlClick;
|
|
6757
6699
|
};
|
|
6758
6700
|
return _async_to_generator$4(function() {
|
|
@@ -6815,11 +6757,8 @@ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6815
6757
|
reject(error);
|
|
6816
6758
|
return;
|
|
6817
6759
|
}
|
|
6818
|
-
if (info.done)
|
|
6819
|
-
|
|
6820
|
-
} else {
|
|
6821
|
-
Promise.resolve(value).then(_next, _throw);
|
|
6822
|
-
}
|
|
6760
|
+
if (info.done) resolve(value);
|
|
6761
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
6823
6762
|
}
|
|
6824
6763
|
function _async_to_generator$3(fn) {
|
|
6825
6764
|
return function() {
|
|
@@ -6837,14 +6776,10 @@ function _async_to_generator$3(fn) {
|
|
|
6837
6776
|
};
|
|
6838
6777
|
}
|
|
6839
6778
|
function _extends$g() {
|
|
6840
|
-
_extends$g = Object.assign || function(target) {
|
|
6779
|
+
_extends$g = Object.assign || function assign(target) {
|
|
6841
6780
|
for(var i = 1; i < arguments.length; i++){
|
|
6842
6781
|
var source = arguments[i];
|
|
6843
|
-
for(var key in source)
|
|
6844
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6845
|
-
target[key] = source[key];
|
|
6846
|
-
}
|
|
6847
|
-
}
|
|
6782
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
6848
6783
|
}
|
|
6849
6784
|
return target;
|
|
6850
6785
|
};
|
|
@@ -6879,9 +6814,17 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6879
6814
|
},
|
|
6880
6815
|
trys: [],
|
|
6881
6816
|
ops: []
|
|
6882
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
6883
|
-
return
|
|
6884
|
-
|
|
6817
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
6818
|
+
return d(g, "next", {
|
|
6819
|
+
value: verb(0)
|
|
6820
|
+
}), d(g, "throw", {
|
|
6821
|
+
value: verb(1)
|
|
6822
|
+
}), d(g, "return", {
|
|
6823
|
+
value: verb(2)
|
|
6824
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
6825
|
+
value: function() {
|
|
6826
|
+
return this;
|
|
6827
|
+
}
|
|
6885
6828
|
}), g;
|
|
6886
6829
|
function verb(n) {
|
|
6887
6830
|
return function(v) {
|
|
@@ -7017,7 +6960,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
7017
6960
|
/**
|
|
7018
6961
|
* 点击 Control 会触发
|
|
7019
6962
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
7020
|
-
var _this = this, _superprop_get__onControlClick = function() {
|
|
6963
|
+
var _this = this, _superprop_get__onControlClick = function _superprop_get__onControlClick() {
|
|
7021
6964
|
return Control.prototype._onControlClick;
|
|
7022
6965
|
};
|
|
7023
6966
|
return _async_to_generator$3(function() {
|
|
@@ -7045,11 +6988,8 @@ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
7045
6988
|
reject(error);
|
|
7046
6989
|
return;
|
|
7047
6990
|
}
|
|
7048
|
-
if (info.done)
|
|
7049
|
-
|
|
7050
|
-
} else {
|
|
7051
|
-
Promise.resolve(value).then(_next, _throw);
|
|
7052
|
-
}
|
|
6991
|
+
if (info.done) resolve(value);
|
|
6992
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
7053
6993
|
}
|
|
7054
6994
|
function _async_to_generator$2(fn) {
|
|
7055
6995
|
return function() {
|
|
@@ -7067,14 +7007,10 @@ function _async_to_generator$2(fn) {
|
|
|
7067
7007
|
};
|
|
7068
7008
|
}
|
|
7069
7009
|
function _extends$f() {
|
|
7070
|
-
_extends$f = Object.assign || function(target) {
|
|
7010
|
+
_extends$f = Object.assign || function assign(target) {
|
|
7071
7011
|
for(var i = 1; i < arguments.length; i++){
|
|
7072
7012
|
var source = arguments[i];
|
|
7073
|
-
for(var key in source)
|
|
7074
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7075
|
-
target[key] = source[key];
|
|
7076
|
-
}
|
|
7077
|
-
}
|
|
7013
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
7078
7014
|
}
|
|
7079
7015
|
return target;
|
|
7080
7016
|
};
|
|
@@ -7109,9 +7045,17 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7109
7045
|
},
|
|
7110
7046
|
trys: [],
|
|
7111
7047
|
ops: []
|
|
7112
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
7113
|
-
return
|
|
7114
|
-
|
|
7048
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
7049
|
+
return d(g, "next", {
|
|
7050
|
+
value: verb(0)
|
|
7051
|
+
}), d(g, "throw", {
|
|
7052
|
+
value: verb(1)
|
|
7053
|
+
}), d(g, "return", {
|
|
7054
|
+
value: verb(2)
|
|
7055
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
7056
|
+
value: function() {
|
|
7057
|
+
return this;
|
|
7058
|
+
}
|
|
7115
7059
|
}), g;
|
|
7116
7060
|
function verb(n) {
|
|
7117
7061
|
return function(v) {
|
|
@@ -7248,7 +7192,7 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7248
7192
|
/**
|
|
7249
7193
|
* 点击 Control 会触发
|
|
7250
7194
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
7251
|
-
var _this = this, _superprop_get__onControlClick = function() {
|
|
7195
|
+
var _this = this, _superprop_get__onControlClick = function _superprop_get__onControlClick() {
|
|
7252
7196
|
return Control.prototype._onControlClick;
|
|
7253
7197
|
};
|
|
7254
7198
|
return _async_to_generator$2(function() {
|
|
@@ -7269,14 +7213,10 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7269
7213
|
}(Control);
|
|
7270
7214
|
|
|
7271
7215
|
function _extends$e() {
|
|
7272
|
-
_extends$e = Object.assign || function(target) {
|
|
7216
|
+
_extends$e = Object.assign || function assign(target) {
|
|
7273
7217
|
for(var i = 1; i < arguments.length; i++){
|
|
7274
7218
|
var source = arguments[i];
|
|
7275
|
-
for(var key in source)
|
|
7276
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7277
|
-
target[key] = source[key];
|
|
7278
|
-
}
|
|
7279
|
-
}
|
|
7219
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
7280
7220
|
}
|
|
7281
7221
|
return target;
|
|
7282
7222
|
};
|
|
@@ -7364,14 +7304,10 @@ function _set_prototype_of$f(o, p) {
|
|
|
7364
7304
|
}(Control);
|
|
7365
7305
|
|
|
7366
7306
|
function _extends$d() {
|
|
7367
|
-
_extends$d = Object.assign || function(target) {
|
|
7307
|
+
_extends$d = Object.assign || function assign(target) {
|
|
7368
7308
|
for(var i = 1; i < arguments.length; i++){
|
|
7369
7309
|
var source = arguments[i];
|
|
7370
|
-
for(var key in source)
|
|
7371
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7372
|
-
target[key] = source[key];
|
|
7373
|
-
}
|
|
7374
|
-
}
|
|
7310
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
7375
7311
|
}
|
|
7376
7312
|
return target;
|
|
7377
7313
|
};
|
|
@@ -7454,7 +7390,7 @@ function _set_prototype_of$e(o, p) {
|
|
|
7454
7390
|
_proto._initPicker = function _initPicker() {
|
|
7455
7391
|
var _this = this;
|
|
7456
7392
|
this._picker = new Picker(this.$container, {
|
|
7457
|
-
getPopupContainer: function() {
|
|
7393
|
+
getPopupContainer: function getPopupContainer() {
|
|
7458
7394
|
return Utils.isMobile ? _this.__options.rootContainer : _this.$container;
|
|
7459
7395
|
},
|
|
7460
7396
|
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
@@ -7528,14 +7464,10 @@ function _set_prototype_of$e(o, p) {
|
|
|
7528
7464
|
}(Control);
|
|
7529
7465
|
|
|
7530
7466
|
function _extends$c() {
|
|
7531
|
-
_extends$c = Object.assign || function(target) {
|
|
7467
|
+
_extends$c = Object.assign || function assign(target) {
|
|
7532
7468
|
for(var i = 1; i < arguments.length; i++){
|
|
7533
7469
|
var source = arguments[i];
|
|
7534
|
-
for(var key in source)
|
|
7535
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7536
|
-
target[key] = source[key];
|
|
7537
|
-
}
|
|
7538
|
-
}
|
|
7470
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
7539
7471
|
}
|
|
7540
7472
|
return target;
|
|
7541
7473
|
};
|
|
@@ -7588,10 +7520,10 @@ function _set_prototype_of$d(o, p) {
|
|
|
7588
7520
|
showEventFilter: false,
|
|
7589
7521
|
showCardTypeIcon: false,
|
|
7590
7522
|
sections: [],
|
|
7591
|
-
onCardClick: function(section, index, sections) {
|
|
7523
|
+
onCardClick: function onCardClick(section, index, sections) {
|
|
7592
7524
|
_this.emit(EVENTS.control.recListCardClick, section, index, sections);
|
|
7593
7525
|
},
|
|
7594
|
-
onClose: function() {
|
|
7526
|
+
onClose: function onClose() {
|
|
7595
7527
|
var _this__options_onClose, _this__options;
|
|
7596
7528
|
_this._panelOpen = false;
|
|
7597
7529
|
_this.active = false;
|
|
@@ -7680,14 +7612,10 @@ function _set_prototype_of$d(o, p) {
|
|
|
7680
7612
|
}(Control);
|
|
7681
7613
|
|
|
7682
7614
|
function _extends$b() {
|
|
7683
|
-
_extends$b = Object.assign || function(target) {
|
|
7615
|
+
_extends$b = Object.assign || function assign(target) {
|
|
7684
7616
|
for(var i = 1; i < arguments.length; i++){
|
|
7685
7617
|
var source = arguments[i];
|
|
7686
|
-
for(var key in source)
|
|
7687
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7688
|
-
target[key] = source[key];
|
|
7689
|
-
}
|
|
7690
|
-
}
|
|
7618
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
7691
7619
|
}
|
|
7692
7620
|
return target;
|
|
7693
7621
|
};
|
|
@@ -7776,14 +7704,10 @@ function _create_class$1(Constructor, protoProps, staticProps) {
|
|
|
7776
7704
|
return Constructor;
|
|
7777
7705
|
}
|
|
7778
7706
|
function _extends$a() {
|
|
7779
|
-
_extends$a = Object.assign || function(target) {
|
|
7707
|
+
_extends$a = Object.assign || function assign(target) {
|
|
7780
7708
|
for(var i = 1; i < arguments.length; i++){
|
|
7781
7709
|
var source = arguments[i];
|
|
7782
|
-
for(var key in source)
|
|
7783
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7784
|
-
target[key] = source[key];
|
|
7785
|
-
}
|
|
7786
|
-
}
|
|
7710
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
7787
7711
|
}
|
|
7788
7712
|
return target;
|
|
7789
7713
|
};
|
|
@@ -7814,11 +7738,11 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7814
7738
|
label: 'label',
|
|
7815
7739
|
value: 'value'
|
|
7816
7740
|
},
|
|
7817
|
-
renderLabel: function(label) {
|
|
7741
|
+
renderLabel: function renderLabel(label) {
|
|
7818
7742
|
return "<span>" + (label || '') + "</span>";
|
|
7819
7743
|
},
|
|
7820
|
-
onChange: function() {},
|
|
7821
|
-
onOpenChange: function() {}
|
|
7744
|
+
onChange: function onChange() {},
|
|
7745
|
+
onOpenChange: function onOpenChange() {}
|
|
7822
7746
|
};
|
|
7823
7747
|
/**
|
|
7824
7748
|
* 选择器切换 (支持PC/Mobile)
|
|
@@ -7872,6 +7796,7 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7872
7796
|
_inherits$b(Select, Control);
|
|
7873
7797
|
function Select(options) {
|
|
7874
7798
|
var _this;
|
|
7799
|
+
var _ref;
|
|
7875
7800
|
var _this__options_fieldNames, _this__picker_$body;
|
|
7876
7801
|
_this = Control.call(this, _extends$a({
|
|
7877
7802
|
tagName: 'span',
|
|
@@ -7885,11 +7810,10 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7885
7810
|
if (options.value !== undefined || options.value !== null) {
|
|
7886
7811
|
_this._value = options.value + '';
|
|
7887
7812
|
}
|
|
7888
|
-
var
|
|
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';
|
|
7813
|
+
var valueKey = (_ref = (_this__options_fieldNames = _this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _ref : 'value';
|
|
7890
7814
|
_this._picker = new Picker(_this.$container, {
|
|
7891
7815
|
// 由于某些原因, 移动端强制渲染在 body 上
|
|
7892
|
-
getPopupContainer: function() {
|
|
7816
|
+
getPopupContainer: function getPopupContainer() {
|
|
7893
7817
|
return Utils.isMobile ? options.rootContainer : _this.$container;
|
|
7894
7818
|
},
|
|
7895
7819
|
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
@@ -7902,7 +7826,7 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7902
7826
|
],
|
|
7903
7827
|
placement: 'top',
|
|
7904
7828
|
// zIndex: 10000,
|
|
7905
|
-
onOpenChange: function(open) {
|
|
7829
|
+
onOpenChange: function onOpenChange(open) {
|
|
7906
7830
|
var item = _this.list.find(function(item) {
|
|
7907
7831
|
return item[valueKey] + '' === _this.value;
|
|
7908
7832
|
});
|
|
@@ -7926,11 +7850,10 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7926
7850
|
var _this = this;
|
|
7927
7851
|
if (list === void 0) list = [];
|
|
7928
7852
|
if ((list == null ? void 0 : list.length) > 0 && this._picker) {
|
|
7853
|
+
var _ref, _ref1;
|
|
7929
7854
|
var _this__options_fieldNames, _this__options_fieldNames1, _this_locale, _this__picker;
|
|
7930
|
-
var
|
|
7931
|
-
var
|
|
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';
|
|
7855
|
+
var labelKey = (_ref = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.label) != null ? _ref : 'label';
|
|
7856
|
+
var valueKey = (_ref1 = (_this__options_fieldNames1 = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames1.value) != null ? _ref1 : 'value';
|
|
7934
7857
|
(_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) {
|
|
7935
7858
|
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 ";
|
|
7936
7859
|
}).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>");
|
|
@@ -7942,12 +7865,12 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7942
7865
|
}
|
|
7943
7866
|
};
|
|
7944
7867
|
_proto._render = function _render(item) {
|
|
7868
|
+
var _ref;
|
|
7945
7869
|
var _this__options_fieldNames;
|
|
7946
7870
|
if (this.list.length === 0) {
|
|
7947
7871
|
return;
|
|
7948
7872
|
}
|
|
7949
|
-
var
|
|
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';
|
|
7873
|
+
var labelKey = (_ref = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.label) != null ? _ref : 'label';
|
|
7951
7874
|
if (this.$container.querySelector("." + PREFIX_CLASS + "-select-btn")) {
|
|
7952
7875
|
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);
|
|
7953
7876
|
} else {
|
|
@@ -7963,9 +7886,9 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7963
7886
|
_proto._activeOption = function _activeOption() {
|
|
7964
7887
|
var _this = this;
|
|
7965
7888
|
if (this._picker) {
|
|
7889
|
+
var _ref;
|
|
7966
7890
|
var _this__options_fieldNames, _this__picker_$body, _this__picker_$body1;
|
|
7967
|
-
var
|
|
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';
|
|
7891
|
+
var valueKey = (_ref = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _ref : 'value';
|
|
7969
7892
|
var $active = (_this__picker_$body = this._picker.$body) == null ? void 0 : _this__picker_$body.querySelector("." + PREFIX_CLASS + "-active");
|
|
7970
7893
|
$active == null ? void 0 : $active.classList.remove(PREFIX_CLASS + '-active');
|
|
7971
7894
|
var $target = (_this__picker_$body1 = this._picker.$body) == null ? void 0 : _this__picker_$body1.querySelector("." + PREFIX_CLASS + '-select-option[data-value="' + this.value + '"]');
|
|
@@ -7979,9 +7902,9 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7979
7902
|
_proto._onSelectChange = function _onSelectChange() {
|
|
7980
7903
|
var _this = this;
|
|
7981
7904
|
if (this._picker) {
|
|
7905
|
+
var _ref;
|
|
7982
7906
|
var _this__options_fieldNames;
|
|
7983
|
-
var
|
|
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';
|
|
7907
|
+
var valueKey = (_ref = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _ref : 'value';
|
|
7985
7908
|
this._delegationOption = delegate(this._picker.$body, "." + PREFIX_CLASS + "-select-option", 'click', function(e) {
|
|
7986
7909
|
var target = e.delegateTarget;
|
|
7987
7910
|
e.stopPropagation();
|
|
@@ -8066,20 +7989,14 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
8066
7989
|
}(Control);
|
|
8067
7990
|
|
|
8068
7991
|
function _assert_this_initialized$1(self) {
|
|
8069
|
-
if (self === void 0)
|
|
8070
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8071
|
-
}
|
|
7992
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8072
7993
|
return self;
|
|
8073
7994
|
}
|
|
8074
7995
|
function _extends$9() {
|
|
8075
|
-
_extends$9 = Object.assign || function(target) {
|
|
7996
|
+
_extends$9 = Object.assign || function assign(target) {
|
|
8076
7997
|
for(var i = 1; i < arguments.length; i++){
|
|
8077
7998
|
var source = arguments[i];
|
|
8078
|
-
for(var key in source)
|
|
8079
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8080
|
-
target[key] = source[key];
|
|
8081
|
-
}
|
|
8082
|
-
}
|
|
7999
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
8083
8000
|
}
|
|
8084
8001
|
return target;
|
|
8085
8002
|
};
|
|
@@ -8169,7 +8086,7 @@ function __filter(list, locale) {
|
|
|
8169
8086
|
title: options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.BTN_HD,
|
|
8170
8087
|
controlType: 'button',
|
|
8171
8088
|
classNameSuffix: 'definition',
|
|
8172
|
-
renderLabel: function(label, item, list) {
|
|
8089
|
+
renderLabel: function renderLabel(label, item, list) {
|
|
8173
8090
|
var _list_;
|
|
8174
8091
|
if ((item == null ? void 0 : item.level) === 'auto') {
|
|
8175
8092
|
var _options_locales_options_language;
|
|
@@ -8181,7 +8098,7 @@ function __filter(list, locale) {
|
|
|
8181
8098
|
// 如果 label 不存在,则不显示label,直接显示list的第一个label, 一般自定义清晰度列表可能会出现
|
|
8182
8099
|
return "<span>" + (label || ((_list_ = list[0]) == null ? void 0 : _list_.name) || '') + "</span>";
|
|
8183
8100
|
},
|
|
8184
|
-
onChange: function(value, item) {
|
|
8101
|
+
onChange: function onChange(value, item) {
|
|
8185
8102
|
var _options_onChange;
|
|
8186
8103
|
options == null ? void 0 : (_options_onChange = options.onChange) == null ? void 0 : _options_onChange.call(options, value, item);
|
|
8187
8104
|
if (value === 'auto') {
|
|
@@ -8191,7 +8108,7 @@ function __filter(list, locale) {
|
|
|
8191
8108
|
_assert_this_initialized$1(_this).emit(EVENTS.control.definitionChange, value, item);
|
|
8192
8109
|
}
|
|
8193
8110
|
},
|
|
8194
|
-
onOpenChange: function(open, value, item) {
|
|
8111
|
+
onOpenChange: function onOpenChange(open, value, item) {
|
|
8195
8112
|
var _options_onOpenChange;
|
|
8196
8113
|
options == null ? void 0 : (_options_onOpenChange = options.onOpenChange) == null ? void 0 : _options_onOpenChange.call(options, open, value, item);
|
|
8197
8114
|
_assert_this_initialized$1(_this).emit(EVENTS.control.definitionPanelOpenChange, open, value, item);
|
|
@@ -8227,20 +8144,14 @@ function __filter(list, locale) {
|
|
|
8227
8144
|
}(Select);
|
|
8228
8145
|
|
|
8229
8146
|
function _assert_this_initialized(self) {
|
|
8230
|
-
if (self === void 0)
|
|
8231
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8232
|
-
}
|
|
8147
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8233
8148
|
return self;
|
|
8234
8149
|
}
|
|
8235
8150
|
function _extends$8() {
|
|
8236
|
-
_extends$8 = Object.assign || function(target) {
|
|
8151
|
+
_extends$8 = Object.assign || function assign(target) {
|
|
8237
8152
|
for(var i = 1; i < arguments.length; i++){
|
|
8238
8153
|
var source = arguments[i];
|
|
8239
|
-
for(var key in source)
|
|
8240
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8241
|
-
target[key] = source[key];
|
|
8242
|
-
}
|
|
8243
|
-
}
|
|
8154
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
8244
8155
|
}
|
|
8245
8156
|
return target;
|
|
8246
8157
|
};
|
|
@@ -8307,13 +8218,13 @@ var SPEED_DEFAULT_OPTIONS = {
|
|
|
8307
8218
|
classNameSuffix: 'speed',
|
|
8308
8219
|
controlType: 'button',
|
|
8309
8220
|
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,
|
|
8310
|
-
onChange: function(value, item) {
|
|
8221
|
+
onChange: function onChange(value, item) {
|
|
8311
8222
|
var _options_onChange;
|
|
8312
8223
|
value = +value;
|
|
8313
8224
|
options == null ? void 0 : (_options_onChange = options.onChange) == null ? void 0 : _options_onChange.call(options, value, item);
|
|
8314
8225
|
_assert_this_initialized(_this).emit(EVENTS.control.speedChange, value, item);
|
|
8315
8226
|
},
|
|
8316
|
-
onOpenChange: function(open, value, item) {
|
|
8227
|
+
onOpenChange: function onOpenChange(open, value, item) {
|
|
8317
8228
|
var _options_onOpenChange;
|
|
8318
8229
|
value = +value;
|
|
8319
8230
|
options == null ? void 0 : (_options_onOpenChange = options.onOpenChange) == null ? void 0 : _options_onOpenChange.call(options, open, value, item);
|
|
@@ -8363,14 +8274,10 @@ var SPEED_DEFAULT_OPTIONS = {
|
|
|
8363
8274
|
}(Select);
|
|
8364
8275
|
|
|
8365
8276
|
function _extends$7() {
|
|
8366
|
-
_extends$7 = Object.assign || function(target) {
|
|
8277
|
+
_extends$7 = Object.assign || function assign(target) {
|
|
8367
8278
|
for(var i = 1; i < arguments.length; i++){
|
|
8368
8279
|
var source = arguments[i];
|
|
8369
|
-
for(var key in source)
|
|
8370
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8371
|
-
target[key] = source[key];
|
|
8372
|
-
}
|
|
8373
|
-
}
|
|
8280
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
8374
8281
|
}
|
|
8375
8282
|
return target;
|
|
8376
8283
|
};
|
|
@@ -8447,16 +8354,16 @@ function _set_prototype_of$8(o, p) {
|
|
|
8447
8354
|
current: DateTime.toDate(this._value),
|
|
8448
8355
|
placement: 'tr',
|
|
8449
8356
|
triggerClose: true,
|
|
8450
|
-
disabledDate: function(date) {
|
|
8357
|
+
disabledDate: function disabledDate(date) {
|
|
8451
8358
|
return date.getTime() > (_this.options.maxDate || new Date()).getTime();
|
|
8452
8359
|
}
|
|
8453
8360
|
}, this.options || {}, {
|
|
8454
8361
|
// 不支持自定义
|
|
8455
|
-
getPopupContainer: function() {
|
|
8362
|
+
getPopupContainer: function getPopupContainer() {
|
|
8456
8363
|
return _this.$container;
|
|
8457
8364
|
},
|
|
8458
8365
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8459
|
-
onOk: function(date, _mode) {
|
|
8366
|
+
onOk: function onOk(date, _mode) {
|
|
8460
8367
|
if (date && _this._value !== DateTime.format(date, 'YYYY-MM-DD') && isMobile1) {
|
|
8461
8368
|
_this._value = DateTime.format(date, 'YYYY-MM-DD');
|
|
8462
8369
|
_this.options.onOk == null ? void 0 : _this.options.onOk.call(_this.options, date);
|
|
@@ -8466,14 +8373,14 @@ function _set_prototype_of$8(o, p) {
|
|
|
8466
8373
|
}
|
|
8467
8374
|
}
|
|
8468
8375
|
},
|
|
8469
|
-
onChange: function(date, mode) {
|
|
8376
|
+
onChange: function onChange(date, mode) {
|
|
8470
8377
|
if (date && _this._value !== DateTime.format(date, 'YYYY-MM-DD') && !isMobile1 && mode === 'date') {
|
|
8471
8378
|
_this._value = DateTime.format(date, 'YYYY-MM-DD');
|
|
8472
8379
|
_this.options.onChange == null ? void 0 : _this.options.onChange.call(_this.options, date);
|
|
8473
8380
|
_this.emit(EVENTS.control.dateChange, date);
|
|
8474
8381
|
}
|
|
8475
8382
|
},
|
|
8476
|
-
onOpenChange: function(open) {
|
|
8383
|
+
onOpenChange: function onOpenChange(open) {
|
|
8477
8384
|
_this.options.onPanelChange == null ? void 0 : _this.options.onPanelChange.call(_this.options, open, _this.datePicker.current);
|
|
8478
8385
|
_this.emit(EVENTS.control.datePanelOpenChange, open, _this.datePicker.current);
|
|
8479
8386
|
}
|
|
@@ -8523,14 +8430,10 @@ function _set_prototype_of$8(o, p) {
|
|
|
8523
8430
|
}(Control);
|
|
8524
8431
|
|
|
8525
8432
|
function _extends$6() {
|
|
8526
|
-
_extends$6 = Object.assign || function(target) {
|
|
8433
|
+
_extends$6 = Object.assign || function assign(target) {
|
|
8527
8434
|
for(var i = 1; i < arguments.length; i++){
|
|
8528
8435
|
var source = arguments[i];
|
|
8529
|
-
for(var key in source)
|
|
8530
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8531
|
-
target[key] = source[key];
|
|
8532
|
-
}
|
|
8533
|
-
}
|
|
8436
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
8534
8437
|
}
|
|
8535
8438
|
return target;
|
|
8536
8439
|
};
|
|
@@ -8604,17 +8507,17 @@ function _set_prototype_of$7(o, p) {
|
|
|
8604
8507
|
triggerClose: true
|
|
8605
8508
|
}, this.options || {}, {
|
|
8606
8509
|
// 不支持自定义
|
|
8607
|
-
getPopupContainer: function() {
|
|
8510
|
+
getPopupContainer: function getPopupContainer() {
|
|
8608
8511
|
return _this.$container;
|
|
8609
8512
|
},
|
|
8610
|
-
onChange: function(time, _times) {
|
|
8513
|
+
onChange: function onChange(time, _times) {
|
|
8611
8514
|
if (time && _this._value !== time) {
|
|
8612
8515
|
_this._value = time;
|
|
8613
8516
|
_this.options.onChange == null ? void 0 : _this.options.onChange.call(_this.options, time, _times);
|
|
8614
8517
|
_this.emit(EVENTS.control.timeChange, time);
|
|
8615
8518
|
}
|
|
8616
8519
|
},
|
|
8617
|
-
onOpenChange: function(open) {
|
|
8520
|
+
onOpenChange: function onOpenChange(open) {
|
|
8618
8521
|
_this.options.onPanelChange == null ? void 0 : _this.options.onPanelChange.call(_this.options, open, _this.timePicker.current);
|
|
8619
8522
|
_this.emit(EVENTS.control.timePanelOpenChange, open, _this.timePicker.current);
|
|
8620
8523
|
}
|
|
@@ -8662,14 +8565,10 @@ function _set_prototype_of$7(o, p) {
|
|
|
8662
8565
|
}(Control);
|
|
8663
8566
|
|
|
8664
8567
|
function _extends$5() {
|
|
8665
|
-
_extends$5 = Object.assign || function(target) {
|
|
8568
|
+
_extends$5 = Object.assign || function assign(target) {
|
|
8666
8569
|
for(var i = 1; i < arguments.length; i++){
|
|
8667
8570
|
var source = arguments[i];
|
|
8668
|
-
for(var key in source)
|
|
8669
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8670
|
-
target[key] = source[key];
|
|
8671
|
-
}
|
|
8672
|
-
}
|
|
8571
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
8673
8572
|
}
|
|
8674
8573
|
return target;
|
|
8675
8574
|
};
|
|
@@ -8738,8 +8637,8 @@ function _set_prototype_of$6(o, p) {
|
|
|
8738
8637
|
var _proto = TimeLineControl.prototype;
|
|
8739
8638
|
_proto._render = function _render() {
|
|
8740
8639
|
var _this = this;
|
|
8741
|
-
var _this_timeLineUtil_updateTimeSections, _this_timeLineUtil;
|
|
8742
8640
|
var _this__options_showTimeWidthBtn, _this__options_showCoverFold;
|
|
8641
|
+
var _this_timeLineUtil_updateTimeSections, _this_timeLineUtil;
|
|
8743
8642
|
var _timeLineOptions = _extends$5({
|
|
8744
8643
|
language: this._options.language || 'zh',
|
|
8745
8644
|
coverQuery: this._options.coverQuery || '',
|
|
@@ -8748,19 +8647,19 @@ function _set_prototype_of$6(o, p) {
|
|
|
8748
8647
|
hoverTipPlacement: 'top'
|
|
8749
8648
|
}, this._options || {}, {
|
|
8750
8649
|
showSectionIcon: false,
|
|
8751
|
-
onClickSeek: function(date) {
|
|
8650
|
+
onClickSeek: function onClickSeek(date) {
|
|
8752
8651
|
if (date == null ? void 0 : date.getTime()) {
|
|
8753
8652
|
_this._options.onClickSeek == null ? void 0 : _this._options.onClickSeek.call(_this._options, date);
|
|
8754
8653
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8755
8654
|
}
|
|
8756
8655
|
},
|
|
8757
|
-
onChange: function(date) {
|
|
8656
|
+
onChange: function onChange(date) {
|
|
8758
8657
|
if (_this._currentTime !== (date == null ? void 0 : date.getTime())) {
|
|
8759
8658
|
_this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, date);
|
|
8760
8659
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8761
8660
|
}
|
|
8762
8661
|
},
|
|
8763
|
-
onDragEnd: function(date, isOver) {
|
|
8662
|
+
onDragEnd: function onDragEnd(date, isOver) {
|
|
8764
8663
|
var _this__options_props_playbackRange, _this__options_props, _this__options;
|
|
8765
8664
|
_this._options.onDragEnd == null ? void 0 : _this._options.onDragEnd.call(_this._options, date, isOver);
|
|
8766
8665
|
// 松手时鼠标已移出时间轴容器(isOver 为 false):控件把这种拖动视为取消,
|
|
@@ -8779,11 +8678,11 @@ function _set_prototype_of$6(o, p) {
|
|
|
8779
8678
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8780
8679
|
}
|
|
8781
8680
|
},
|
|
8782
|
-
onPickerOpenChange: function(open) {
|
|
8681
|
+
onPickerOpenChange: function onPickerOpenChange(open) {
|
|
8783
8682
|
_this.emit(EVENTS.control.timeLinePanelOpenChange, open);
|
|
8784
8683
|
},
|
|
8785
8684
|
// 2025-10-27 仅移动端支持
|
|
8786
|
-
onPickerSelect: function(item) {
|
|
8685
|
+
onPickerSelect: function onPickerSelect(item) {
|
|
8787
8686
|
var date = null;
|
|
8788
8687
|
try {
|
|
8789
8688
|
if ((item.startTime + '').length === 10) date = new Date(item.startTime * 1000);
|
|
@@ -8794,7 +8693,7 @@ function _set_prototype_of$6(o, p) {
|
|
|
8794
8693
|
} catch (error) {
|
|
8795
8694
|
}
|
|
8796
8695
|
},
|
|
8797
|
-
onSectionIconClick: function(result) {
|
|
8696
|
+
onSectionIconClick: function onSectionIconClick(result) {
|
|
8798
8697
|
_this.emit('TimeLine.onSectionIconClick', result);
|
|
8799
8698
|
}
|
|
8800
8699
|
});
|
|
@@ -8865,14 +8764,10 @@ function _set_prototype_of$6(o, p) {
|
|
|
8865
8764
|
}(Control);
|
|
8866
8765
|
|
|
8867
8766
|
function _extends$4() {
|
|
8868
|
-
_extends$4 = Object.assign || function(target) {
|
|
8767
|
+
_extends$4 = Object.assign || function assign(target) {
|
|
8869
8768
|
for(var i = 1; i < arguments.length; i++){
|
|
8870
8769
|
var source = arguments[i];
|
|
8871
|
-
for(var key in source)
|
|
8872
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8873
|
-
target[key] = source[key];
|
|
8874
|
-
}
|
|
8875
|
-
}
|
|
8770
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
8876
8771
|
}
|
|
8877
8772
|
return target;
|
|
8878
8773
|
};
|
|
@@ -8917,8 +8812,8 @@ function _set_prototype_of$5(o, p) {
|
|
|
8917
8812
|
* @param seg 录像片段
|
|
8918
8813
|
* @param which 取起点还是终点
|
|
8919
8814
|
*/ function segMs(seg, which) {
|
|
8920
|
-
var
|
|
8921
|
-
var value = which === 'start' ? (
|
|
8815
|
+
var _ref, _ref1;
|
|
8816
|
+
var value = which === 'start' ? (_ref = seg == null ? void 0 : seg.startTime) != null ? _ref : seg == null ? void 0 : seg.begin : (_ref1 = seg == null ? void 0 : seg.endTime) != null ? _ref1 : seg == null ? void 0 : seg.end;
|
|
8922
8817
|
if (value === undefined || value === null || value === '') return NaN;
|
|
8923
8818
|
if (typeof value === 'number') return value < 1e12 ? value * 1000 : value;
|
|
8924
8819
|
return DateTime.toDate(value).getTime();
|
|
@@ -8979,17 +8874,17 @@ function _set_prototype_of$5(o, p) {
|
|
|
8979
8874
|
_proto._render = function _render() {
|
|
8980
8875
|
var _this = this;
|
|
8981
8876
|
this._progress = new SegmentProgress(this.$container, {
|
|
8982
|
-
onChange: function(date) {
|
|
8877
|
+
onChange: function onChange(date) {
|
|
8983
8878
|
// 用户主动定位即视为重新开始播放,立即解除结束静默,否则静默期内的回写被丢弃、
|
|
8984
8879
|
// 进度条会停住不动
|
|
8985
8880
|
_this._silenceUntil = 0;
|
|
8986
8881
|
_this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, date);
|
|
8987
8882
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8988
8883
|
},
|
|
8989
|
-
onDragStart: function() {
|
|
8884
|
+
onDragStart: function onDragStart() {
|
|
8990
8885
|
_this._isDragging = true;
|
|
8991
8886
|
},
|
|
8992
|
-
onDragEnd: function() {
|
|
8887
|
+
onDragEnd: function onDragEnd() {
|
|
8993
8888
|
_this._isDragging = false;
|
|
8994
8889
|
}
|
|
8995
8890
|
});
|
|
@@ -9082,14 +8977,10 @@ function _set_prototype_of$5(o, p) {
|
|
|
9082
8977
|
}(Control);
|
|
9083
8978
|
|
|
9084
8979
|
function _extends$3() {
|
|
9085
|
-
_extends$3 = Object.assign || function(target) {
|
|
8980
|
+
_extends$3 = Object.assign || function assign(target) {
|
|
9086
8981
|
for(var i = 1; i < arguments.length; i++){
|
|
9087
8982
|
var source = arguments[i];
|
|
9088
|
-
for(var key in source)
|
|
9089
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9090
|
-
target[key] = source[key];
|
|
9091
|
-
}
|
|
9092
|
-
}
|
|
8983
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
9093
8984
|
}
|
|
9094
8985
|
return target;
|
|
9095
8986
|
};
|
|
@@ -9179,7 +9070,7 @@ var Controls = {
|
|
|
9179
9070
|
segmentProgress: SegmentProgressControl
|
|
9180
9071
|
};
|
|
9181
9072
|
|
|
9182
|
-
|
|
9073
|
+
function _inherits$3(subClass, superClass) {
|
|
9183
9074
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
9184
9075
|
throw new TypeError("Super expression must either be null or a function");
|
|
9185
9076
|
}
|
|
@@ -9344,14 +9235,10 @@ function _set_prototype_of$2(o, p) {
|
|
|
9344
9235
|
}(EventEmitter);
|
|
9345
9236
|
|
|
9346
9237
|
function _extends$2() {
|
|
9347
|
-
_extends$2 = Object.assign || function(target) {
|
|
9238
|
+
_extends$2 = Object.assign || function assign(target) {
|
|
9348
9239
|
for(var i = 1; i < arguments.length; i++){
|
|
9349
9240
|
var source = arguments[i];
|
|
9350
|
-
for(var key in source)
|
|
9351
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9352
|
-
target[key] = source[key];
|
|
9353
|
-
}
|
|
9354
|
-
}
|
|
9241
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
9355
9242
|
}
|
|
9356
9243
|
return target;
|
|
9357
9244
|
};
|
|
@@ -9483,7 +9370,7 @@ var PAUSE_DEFAULT_OPTIONS = {};
|
|
|
9483
9370
|
return Pause;
|
|
9484
9371
|
}(Control);
|
|
9485
9372
|
|
|
9486
|
-
var _unmountedControls = function(theme) {
|
|
9373
|
+
var _unmountedControls = function _unmountedControls(theme) {
|
|
9487
9374
|
if (!theme.controls) {
|
|
9488
9375
|
return;
|
|
9489
9376
|
}
|
|
@@ -9570,11 +9457,8 @@ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
9570
9457
|
reject(error);
|
|
9571
9458
|
return;
|
|
9572
9459
|
}
|
|
9573
|
-
if (info.done)
|
|
9574
|
-
|
|
9575
|
-
} else {
|
|
9576
|
-
Promise.resolve(value).then(_next, _throw);
|
|
9577
|
-
}
|
|
9460
|
+
if (info.done) resolve(value);
|
|
9461
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
9578
9462
|
}
|
|
9579
9463
|
function _async_to_generator$1(fn) {
|
|
9580
9464
|
return function() {
|
|
@@ -9591,28 +9475,6 @@ function _async_to_generator$1(fn) {
|
|
|
9591
9475
|
});
|
|
9592
9476
|
};
|
|
9593
9477
|
}
|
|
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
|
-
}
|
|
9616
9478
|
function _create_for_of_iterator_helper_loose$1(o, allowArrayLike) {
|
|
9617
9479
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
9618
9480
|
if (it) return (it = it.call(o)).next.bind(it);
|
|
@@ -9620,18 +9482,26 @@ function _create_for_of_iterator_helper_loose$1(o, allowArrayLike) {
|
|
|
9620
9482
|
if (it) o = it;
|
|
9621
9483
|
var i = 0;
|
|
9622
9484
|
return function() {
|
|
9623
|
-
if (i >= o.length) {
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
};
|
|
9627
|
-
}
|
|
9485
|
+
if (i >= o.length) return {
|
|
9486
|
+
done: true
|
|
9487
|
+
};
|
|
9628
9488
|
return {
|
|
9629
9489
|
done: false,
|
|
9630
9490
|
value: o[i++]
|
|
9631
9491
|
};
|
|
9632
9492
|
};
|
|
9633
9493
|
}
|
|
9634
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance
|
|
9494
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9495
|
+
}
|
|
9496
|
+
function _extends$1() {
|
|
9497
|
+
_extends$1 = Object.assign || function assign(target) {
|
|
9498
|
+
for(var i = 1; i < arguments.length; i++){
|
|
9499
|
+
var source = arguments[i];
|
|
9500
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
9501
|
+
}
|
|
9502
|
+
return target;
|
|
9503
|
+
};
|
|
9504
|
+
return _extends$1.apply(this, arguments);
|
|
9635
9505
|
}
|
|
9636
9506
|
function _ts_generator$1(thisArg, body) {
|
|
9637
9507
|
var f, y, t, _ = {
|
|
@@ -9642,9 +9512,17 @@ function _ts_generator$1(thisArg, body) {
|
|
|
9642
9512
|
},
|
|
9643
9513
|
trys: [],
|
|
9644
9514
|
ops: []
|
|
9645
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
9646
|
-
return
|
|
9647
|
-
|
|
9515
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
9516
|
+
return d(g, "next", {
|
|
9517
|
+
value: verb(0)
|
|
9518
|
+
}), d(g, "throw", {
|
|
9519
|
+
value: verb(1)
|
|
9520
|
+
}), d(g, "return", {
|
|
9521
|
+
value: verb(2)
|
|
9522
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
9523
|
+
value: function() {
|
|
9524
|
+
return this;
|
|
9525
|
+
}
|
|
9648
9526
|
}), g;
|
|
9649
9527
|
function verb(n) {
|
|
9650
9528
|
return function(v) {
|
|
@@ -9724,6 +9602,14 @@ function _ts_generator$1(thisArg, body) {
|
|
|
9724
9602
|
};
|
|
9725
9603
|
}
|
|
9726
9604
|
}
|
|
9605
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
9606
|
+
if (!o) return;
|
|
9607
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
9608
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9609
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9610
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9611
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
9612
|
+
}
|
|
9727
9613
|
// 需要权限的控件
|
|
9728
9614
|
var AUTH_KEY = [
|
|
9729
9615
|
'ptz',
|
|
@@ -9762,7 +9648,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9762
9648
|
// eslint-disable-next-line @typescript-eslint/dot-notation, new-cap, @typescript-eslint/no-unsafe-argument
|
|
9763
9649
|
theme.controls["deviceControl"] = new Controls["device"](_extends$1({
|
|
9764
9650
|
rootContainer: theme.$container,
|
|
9765
|
-
getPopupContainer: function() {
|
|
9651
|
+
getPopupContainer: function getPopupContainer() {
|
|
9766
9652
|
return $container;
|
|
9767
9653
|
},
|
|
9768
9654
|
recType: theme.recType,
|
|
@@ -9785,7 +9671,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9785
9671
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9786
9672
|
theme.controls["" + item.iconId + "Control"] = new Controls[item.iconId](_extends$1({
|
|
9787
9673
|
rootContainer: theme.$container,
|
|
9788
|
-
getPopupContainer: function() {
|
|
9674
|
+
getPopupContainer: function getPopupContainer() {
|
|
9789
9675
|
return $container;
|
|
9790
9676
|
},
|
|
9791
9677
|
language: theme.options.language || "zh",
|
|
@@ -9812,7 +9698,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9812
9698
|
}
|
|
9813
9699
|
function _renderTheme(theme, data) {
|
|
9814
9700
|
return _async_to_generator$1(function() {
|
|
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,
|
|
9701
|
+
var _ref, _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, 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, _ref1, _filterThemeData_header1, _filterThemeData_footer1, _theme_options;
|
|
9816
9702
|
return _ts_generator$1(this, function(_state) {
|
|
9817
9703
|
switch(_state.label){
|
|
9818
9704
|
case 0:
|
|
@@ -9838,7 +9724,7 @@ function _renderTheme(theme, data) {
|
|
|
9838
9724
|
language: theme.options.language,
|
|
9839
9725
|
locales: theme.i18n.translations
|
|
9840
9726
|
}, theme.options.loadingOptions || {}, {
|
|
9841
|
-
getPopupContainer: function() {
|
|
9727
|
+
getPopupContainer: function getPopupContainer() {
|
|
9842
9728
|
return theme.$container;
|
|
9843
9729
|
}
|
|
9844
9730
|
}));
|
|
@@ -9848,7 +9734,7 @@ function _renderTheme(theme, data) {
|
|
|
9848
9734
|
language: theme.options.language,
|
|
9849
9735
|
locales: theme.i18n.translations
|
|
9850
9736
|
}, theme.options.pauseOptions || {}, {
|
|
9851
|
-
getPopupContainer: function() {
|
|
9737
|
+
getPopupContainer: function getPopupContainer() {
|
|
9852
9738
|
return theme.contentControl.$wrapper;
|
|
9853
9739
|
}
|
|
9854
9740
|
}));
|
|
@@ -9860,14 +9746,14 @@ function _renderTheme(theme, data) {
|
|
|
9860
9746
|
theme.messageControl = new Message(_extends$1({
|
|
9861
9747
|
rootContainer: theme.$container
|
|
9862
9748
|
}, theme.options.messageOptions || {}, {
|
|
9863
|
-
getPopupContainer: function() {
|
|
9749
|
+
getPopupContainer: function getPopupContainer() {
|
|
9864
9750
|
return theme.contentControl.$wrapper;
|
|
9865
9751
|
}
|
|
9866
9752
|
}));
|
|
9867
9753
|
}
|
|
9868
9754
|
if (theme.options.posterOptions !== null) {
|
|
9869
9755
|
theme.posterControl = new Poster(_extends$1({}, theme.options.posterOptions || {}, {
|
|
9870
|
-
getPopupContainer: function() {
|
|
9756
|
+
getPopupContainer: function getPopupContainer() {
|
|
9871
9757
|
return theme.contentControl.$video;
|
|
9872
9758
|
}
|
|
9873
9759
|
}));
|
|
@@ -9897,7 +9783,7 @@ function _renderTheme(theme, data) {
|
|
|
9897
9783
|
}
|
|
9898
9784
|
if (filterThemeData.header) {
|
|
9899
9785
|
theme._header = new Header({
|
|
9900
|
-
getPopupContainer: function() {
|
|
9786
|
+
getPopupContainer: function getPopupContainer() {
|
|
9901
9787
|
return theme.$container;
|
|
9902
9788
|
},
|
|
9903
9789
|
color: filterThemeData.header.color,
|
|
@@ -9912,7 +9798,7 @@ function _renderTheme(theme, data) {
|
|
|
9912
9798
|
if (filterThemeData.footer) {
|
|
9913
9799
|
// prettier-ignore
|
|
9914
9800
|
theme._footer = new Footer({
|
|
9915
|
-
getPopupContainer: function() {
|
|
9801
|
+
getPopupContainer: function getPopupContainer() {
|
|
9916
9802
|
return theme.$container;
|
|
9917
9803
|
},
|
|
9918
9804
|
color: filterThemeData.footer.color,
|
|
@@ -9958,7 +9844,7 @@ function _renderTheme(theme, data) {
|
|
|
9958
9844
|
_renderControls(theme, theme._footer.$left, leftBtns1, props);
|
|
9959
9845
|
_renderControls(theme, theme._footer.$right, rightBtns1, props);
|
|
9960
9846
|
}
|
|
9961
|
-
list = [].concat(((_filterThemeData_header = filterThemeData.header) == null ? void 0 : _filterThemeData_header.btnList) || [], (
|
|
9847
|
+
list = [].concat(((_filterThemeData_header = filterThemeData.header) == null ? void 0 : _filterThemeData_header.btnList) || [], (_ref = (_filterThemeData_footer = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer.btnList) != null ? _ref : []);
|
|
9962
9848
|
// FIXME: 这个逻辑实际上是有问题的
|
|
9963
9849
|
_needTimeLine = list.some(function(item) {
|
|
9964
9850
|
return REC_GROUP.includes(item.iconId) || item.iconId === 'recDropdown';
|
|
@@ -10005,7 +9891,7 @@ function _renderTheme(theme, data) {
|
|
|
10005
9891
|
}
|
|
10006
9892
|
// 回放类型切换正常渲染,用户点击后由 SDK 层在 recDropdownChange 事件中自行处理
|
|
10007
9893
|
if (theme.options.recOptions !== null && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions4.controls.includes('rec')) && _needTimeLine) {
|
|
10008
|
-
[].concat(((_filterThemeData_header1 = filterThemeData.header) == null ? void 0 : _filterThemeData_header1.btnList) || [], (
|
|
9894
|
+
[].concat(((_filterThemeData_header1 = filterThemeData.header) == null ? void 0 : _filterThemeData_header1.btnList) || [], (_ref1 = (_filterThemeData_footer1 = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer1.btnList) != null ? _ref1 : []).forEach(function(item) {
|
|
10009
9895
|
var _theme__mobileExtend;
|
|
10010
9896
|
if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
|
|
10011
9897
|
});
|
|
@@ -10015,7 +9901,7 @@ function _renderTheme(theme, data) {
|
|
|
10015
9901
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
10016
9902
|
theme.controls['alarmMessageControl'] = new Controls['alarmMessage'](_extends$1({
|
|
10017
9903
|
rootContainer: theme.$container,
|
|
10018
|
-
getPopupContainer: function() {
|
|
9904
|
+
getPopupContainer: function getPopupContainer() {
|
|
10019
9905
|
var _theme__mobileExtend;
|
|
10020
9906
|
return (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight;
|
|
10021
9907
|
},
|
|
@@ -10049,33 +9935,33 @@ function _renderTheme(theme, data) {
|
|
|
10049
9935
|
});
|
|
10050
9936
|
})();
|
|
10051
9937
|
}
|
|
10052
|
-
var _renderTimeLine = function(theme, container, props) {
|
|
9938
|
+
var _renderTimeLine = function _renderTimeLine(theme, container, props) {
|
|
10053
9939
|
if (props === void 0) props = {};
|
|
10054
9940
|
if (!theme.controls.timeLineControl && theme.options.timeLineOptions !== null) {
|
|
9941
|
+
var _ref;
|
|
10055
9942
|
var _theme_urlInfo, _theme_urlInfo1, _theme_options, _theme_options1, _this, _theme_options2;
|
|
10056
|
-
var _showSectionIcon;
|
|
10057
9943
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
10058
9944
|
theme.controls.timeLineControl = new Controls['timeLine'](_extends$1({
|
|
10059
|
-
getPopupContainer: function() {
|
|
9945
|
+
getPopupContainer: function getPopupContainer() {
|
|
10060
9946
|
return container;
|
|
10061
9947
|
},
|
|
10062
9948
|
language: theme.options.language,
|
|
10063
9949
|
locales: theme.i18n.translations,
|
|
10064
9950
|
coverQuery: ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.validateCode) ? "decodekey=" + ((_theme_urlInfo1 = theme.urlInfo) == null ? void 0 : _theme_urlInfo1.validateCode) : ''
|
|
10065
9951
|
}, ((_theme_options = theme.options) == null ? void 0 : _theme_options["timeLineOptions"]) || {}, {
|
|
10066
|
-
showSectionIcon: ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["recListOptions"]) !== null ? (
|
|
9952
|
+
showSectionIcon: ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["recListOptions"]) !== null ? (_ref = (_this = ((_theme_options2 = theme.options) == null ? void 0 : _theme_options2["timeLineOptions"]) || {}) == null ? void 0 : _this.showSectionIcon) != null ? _ref : true : true,
|
|
10067
9953
|
props: props
|
|
10068
9954
|
}));
|
|
10069
9955
|
}
|
|
10070
9956
|
};
|
|
10071
|
-
var _renderSegmentProgress = function(theme, container, props) {
|
|
9957
|
+
var _renderSegmentProgress = function _renderSegmentProgress(theme, container, props) {
|
|
10072
9958
|
if (props === void 0) props = {};
|
|
10073
9959
|
if (!theme.controls.segmentProgressControl && theme.options.segmentProgressOptions !== null) {
|
|
10074
9960
|
var _theme_options;
|
|
10075
9961
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
10076
9962
|
theme.controls.segmentProgressControl = new Controls['segmentProgress'](_extends$1({
|
|
10077
9963
|
rootContainer: theme.$container,
|
|
10078
|
-
getPopupContainer: function() {
|
|
9964
|
+
getPopupContainer: function getPopupContainer() {
|
|
10079
9965
|
return container;
|
|
10080
9966
|
},
|
|
10081
9967
|
language: theme.options.language,
|
|
@@ -10085,13 +9971,13 @@ var _renderSegmentProgress = function(theme, container, props) {
|
|
|
10085
9971
|
}));
|
|
10086
9972
|
}
|
|
10087
9973
|
};
|
|
10088
|
-
var _renderDatePicker = function(theme, container, props) {
|
|
9974
|
+
var _renderDatePicker = function _renderDatePicker(theme, container, props) {
|
|
10089
9975
|
if (props === void 0) props = {};
|
|
10090
9976
|
if (!theme.controls.dateControl && theme.options.dateOptions !== null) {
|
|
10091
9977
|
var _theme_options;
|
|
10092
9978
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
10093
9979
|
theme.controls.dateControl = new Controls['date'](_extends$1({
|
|
10094
|
-
getPopupContainer: function() {
|
|
9980
|
+
getPopupContainer: function getPopupContainer() {
|
|
10095
9981
|
return container;
|
|
10096
9982
|
},
|
|
10097
9983
|
language: theme.options.language,
|
|
@@ -10101,13 +9987,13 @@ var _renderDatePicker = function(theme, container, props) {
|
|
|
10101
9987
|
}));
|
|
10102
9988
|
}
|
|
10103
9989
|
};
|
|
10104
|
-
var _renderTimePicker = function(theme, container, props) {
|
|
9990
|
+
var _renderTimePicker = function _renderTimePicker(theme, container, props) {
|
|
10105
9991
|
if (props === void 0) props = {};
|
|
10106
9992
|
if (!theme.controls.timeControl && theme.options.timeOptions !== null) {
|
|
10107
9993
|
var _theme_options;
|
|
10108
9994
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
10109
9995
|
theme.controls.timeControl = new Controls['time'](_extends$1({
|
|
10110
|
-
getPopupContainer: function() {
|
|
9996
|
+
getPopupContainer: function getPopupContainer() {
|
|
10111
9997
|
return container;
|
|
10112
9998
|
},
|
|
10113
9999
|
language: theme.options.language,
|
|
@@ -10117,14 +10003,14 @@ var _renderTimePicker = function(theme, container, props) {
|
|
|
10117
10003
|
}));
|
|
10118
10004
|
}
|
|
10119
10005
|
};
|
|
10120
|
-
var _renderRecType = function(theme, container, recType, props) {
|
|
10006
|
+
var _renderRecType = function _renderRecType(theme, container, recType, props) {
|
|
10121
10007
|
if (props === void 0) props = {};
|
|
10122
10008
|
var _theme_controls, _theme_controls1, _theme_controls2;
|
|
10123
10009
|
if (!((_theme_controls = theme.controls) == null ? void 0 : _theme_controls['recControl']) && theme.options.recOptions !== null && container) {
|
|
10124
10010
|
var _theme_options;
|
|
10125
10011
|
// eslint-disable-next-line @typescript-eslint/dot-notation, new-cap, @typescript-eslint/no-unsafe-argument
|
|
10126
10012
|
theme.controls['recControl'] = new Controls['rec'](_extends$1({
|
|
10127
|
-
getPopupContainer: function() {
|
|
10013
|
+
getPopupContainer: function getPopupContainer() {
|
|
10128
10014
|
return container;
|
|
10129
10015
|
},
|
|
10130
10016
|
recType: theme.recType,
|
|
@@ -10228,7 +10114,7 @@ var _renderRecType = function(theme, container, recType, props) {
|
|
|
10228
10114
|
return width - leftWidth - rightWidth > offset;
|
|
10229
10115
|
}
|
|
10230
10116
|
|
|
10231
|
-
|
|
10117
|
+
function _array_like_to_array(arr, len) {
|
|
10232
10118
|
if (len == null || len > arr.length) len = arr.length;
|
|
10233
10119
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10234
10120
|
return arr2;
|
|
@@ -10241,11 +10127,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
10241
10127
|
reject(error);
|
|
10242
10128
|
return;
|
|
10243
10129
|
}
|
|
10244
|
-
if (info.done)
|
|
10245
|
-
|
|
10246
|
-
} else {
|
|
10247
|
-
Promise.resolve(value).then(_next, _throw);
|
|
10248
|
-
}
|
|
10130
|
+
if (info.done) resolve(value);
|
|
10131
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
10249
10132
|
}
|
|
10250
10133
|
function _async_to_generator(fn) {
|
|
10251
10134
|
return function() {
|
|
@@ -10275,15 +10158,29 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
10275
10158
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
10276
10159
|
return Constructor;
|
|
10277
10160
|
}
|
|
10161
|
+
function _create_for_of_iterator_helper_loose(o, allowArrayLike) {
|
|
10162
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
10163
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
10164
|
+
if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike) {
|
|
10165
|
+
if (it) o = it;
|
|
10166
|
+
var i = 0;
|
|
10167
|
+
return function() {
|
|
10168
|
+
if (i >= o.length) return {
|
|
10169
|
+
done: true
|
|
10170
|
+
};
|
|
10171
|
+
return {
|
|
10172
|
+
done: false,
|
|
10173
|
+
value: o[i++]
|
|
10174
|
+
};
|
|
10175
|
+
};
|
|
10176
|
+
}
|
|
10177
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10178
|
+
}
|
|
10278
10179
|
function _extends() {
|
|
10279
|
-
_extends = Object.assign || function(target) {
|
|
10180
|
+
_extends = Object.assign || function assign(target) {
|
|
10280
10181
|
for(var i = 1; i < arguments.length; i++){
|
|
10281
10182
|
var source = arguments[i];
|
|
10282
|
-
for(var key in source)
|
|
10283
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
10284
|
-
target[key] = source[key];
|
|
10285
|
-
}
|
|
10286
|
-
}
|
|
10183
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
10287
10184
|
}
|
|
10288
10185
|
return target;
|
|
10289
10186
|
};
|
|
@@ -10309,34 +10206,6 @@ function _set_prototype_of(o, p) {
|
|
|
10309
10206
|
};
|
|
10310
10207
|
return _set_prototype_of(o, p);
|
|
10311
10208
|
}
|
|
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
|
-
}
|
|
10340
10209
|
function _ts_generator(thisArg, body) {
|
|
10341
10210
|
var f, y, t, _ = {
|
|
10342
10211
|
label: 0,
|
|
@@ -10346,9 +10215,17 @@ function _ts_generator(thisArg, body) {
|
|
|
10346
10215
|
},
|
|
10347
10216
|
trys: [],
|
|
10348
10217
|
ops: []
|
|
10349
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
10350
|
-
return
|
|
10351
|
-
|
|
10218
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
10219
|
+
return d(g, "next", {
|
|
10220
|
+
value: verb(0)
|
|
10221
|
+
}), d(g, "throw", {
|
|
10222
|
+
value: verb(1)
|
|
10223
|
+
}), d(g, "return", {
|
|
10224
|
+
value: verb(2)
|
|
10225
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
10226
|
+
value: function() {
|
|
10227
|
+
return this;
|
|
10228
|
+
}
|
|
10352
10229
|
}), g;
|
|
10353
10230
|
function verb(n) {
|
|
10354
10231
|
return function(v) {
|
|
@@ -10428,6 +10305,14 @@ function _ts_generator(thisArg, body) {
|
|
|
10428
10305
|
};
|
|
10429
10306
|
}
|
|
10430
10307
|
}
|
|
10308
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
10309
|
+
if (!o) return;
|
|
10310
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
10311
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10312
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10313
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10314
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
10315
|
+
}
|
|
10431
10316
|
var THEME_DEFAULT_OPTIONS = {
|
|
10432
10317
|
dblClickFullscreen: true,
|
|
10433
10318
|
language: 'zh',
|
|
@@ -10481,6 +10366,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10481
10366
|
_inherits(Theme, EventEmitter);
|
|
10482
10367
|
function Theme(options) {
|
|
10483
10368
|
var _this;
|
|
10369
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
10484
10370
|
var _this_options_volumeOptions, _this_options_volumeOptions1, _this_options_speedOptions, _this_urlInfo_searchParams, _this_urlInfo, _this_options, _this_options1;
|
|
10485
10371
|
_this = EventEmitter.call(this) || this, /** 播放器配置项 */ _this.options = THEME_DEFAULT_OPTIONS, _this.staticPath = '', /** 所有控件列表, 所有控件名称规则(`${iconId}Control`), 如音量控件 this.controls["volumeControl"] @since 0.0.1 */ _this.controls = {}, /**
|
|
10486
10372
|
* @since 0.0.1
|
|
@@ -10546,7 +10432,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10546
10432
|
_this._initClassName();
|
|
10547
10433
|
// 画布需要渲染在 this.contentControl.$content 内
|
|
10548
10434
|
_this.contentControl = new Content({
|
|
10549
|
-
getContainer: function() {
|
|
10435
|
+
getContainer: function getContainer() {
|
|
10550
10436
|
return _this.$container;
|
|
10551
10437
|
},
|
|
10552
10438
|
scaleMode: _this.scaleMode
|
|
@@ -10556,18 +10442,15 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10556
10442
|
});
|
|
10557
10443
|
// zoom utils
|
|
10558
10444
|
__zoom(_this, _this.contentControl.$content, _extends({}, _this.options.zoomOptions || {}, {
|
|
10559
|
-
onTap: function() {
|
|
10445
|
+
onTap: function onTap() {
|
|
10560
10446
|
var _this__interactiveResult_setTimeoutShow, _this__interactiveResult;
|
|
10561
10447
|
(_this__interactiveResult = _this._interactiveResult) == null ? void 0 : (_this__interactiveResult_setTimeoutShow = _this__interactiveResult.setTimeoutShow) == null ? void 0 : _this__interactiveResult_setTimeoutShow.call(_this__interactiveResult);
|
|
10562
10448
|
}
|
|
10563
10449
|
}));
|
|
10564
|
-
|
|
10565
|
-
_this.
|
|
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;
|
|
10450
|
+
_this._volume = (_ref = (_ref1 = (_this_options_volumeOptions = _this.options.volumeOptions) == null ? void 0 : _this_options_volumeOptions.volume) != null ? _ref1 : _this.options.volume) != null ? _ref : 0.8;
|
|
10451
|
+
_this._muted = (_ref2 = (_ref3 = (_this_options_volumeOptions1 = _this.options.volumeOptions) == null ? void 0 : _this_options_volumeOptions1.muted) != null ? _ref3 : _this.options.muted) != null ? _ref2 : false;
|
|
10569
10452
|
// playbackSpeed 是 萤石标准流倍速字段
|
|
10570
|
-
_this._speed = +((
|
|
10453
|
+
_this._speed = +((_ref4 = (_ref5 = (_this_options_speedOptions = _this.options.speedOptions) == null ? void 0 : _this_options_speedOptions.value) != null ? _ref5 : (_this_urlInfo = _this.urlInfo) == null ? void 0 : (_this_urlInfo_searchParams = _this_urlInfo.searchParams) == null ? void 0 : _this_urlInfo_searchParams.playbackSpeed) != null ? _ref4 : 1);
|
|
10571
10454
|
_this._mobileInnerWidthHeight = _this._mobileInnerWidthHeight.bind(_this);
|
|
10572
10455
|
_this._throttleMobileInnerWidthHeight = throttle(_this._mobileInnerWidthHeight, 20).bind(_this);
|
|
10573
10456
|
_this._onDblClickFullscreen = debounce(_this._onDblClickFullscreen, 20).bind(_this);
|
|
@@ -10595,9 +10478,9 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10595
10478
|
// flv / mp4:支持自定义 themeData,未传时回退到标准直播模板 LiveTemplate(2026-01-19 起支持自定义)
|
|
10596
10479
|
initialThemeData = themeData !== undefined ? themeData : LiveTemplate;
|
|
10597
10480
|
} else {
|
|
10598
|
-
var
|
|
10481
|
+
var _ref6;
|
|
10599
10482
|
// 其余类型(如 ezopen 私有流):template 优先级高于 themeData,二者都未设置时为 null
|
|
10600
|
-
initialThemeData = (
|
|
10483
|
+
initialThemeData = (_ref6 = template != null ? template : themeData) != null ? _ref6 : null;
|
|
10601
10484
|
}
|
|
10602
10485
|
_this._renderTheme(initialThemeData);
|
|
10603
10486
|
_this._addEventListener();
|
|
@@ -10948,7 +10831,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10948
10831
|
this._fullscreen = new Fullscreen$1(this.$container, {
|
|
10949
10832
|
prefix: PREFIX_CLASS,
|
|
10950
10833
|
// 全屏变化
|
|
10951
|
-
onChange: function(info) {
|
|
10834
|
+
onChange: function onChange(info) {
|
|
10952
10835
|
if (info.isCurrentFullscreen) {
|
|
10953
10836
|
_this.emit(EVENTS.fullscreen);
|
|
10954
10837
|
} else if (_this._isCurrentFullscreen) {
|
|
@@ -10966,7 +10849,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10966
10849
|
}
|
|
10967
10850
|
});
|
|
10968
10851
|
// ------------------------------ 旋转方向 -----------------------------
|
|
10969
|
-
var rotateOrientation = function(orientation) {
|
|
10852
|
+
var rotateOrientation = function rotateOrientation(orientation) {
|
|
10970
10853
|
if (_this.$container) {
|
|
10971
10854
|
var // 重置移除旋转角度
|
|
10972
10855
|
_this_$container_classList;
|
|
@@ -11089,7 +10972,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11089
10972
|
language: this.options.language,
|
|
11090
10973
|
locales: this.i18n.translations,
|
|
11091
10974
|
rootContainer: this.$container,
|
|
11092
|
-
getPopupContainer: function() {
|
|
10975
|
+
getPopupContainer: function getPopupContainer() {
|
|
11093
10976
|
var _this__header;
|
|
11094
10977
|
return (_this__header = _this._header) == null ? void 0 : _this__header.$right;
|
|
11095
10978
|
},
|
|
@@ -11101,7 +10984,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11101
10984
|
8
|
|
11102
10985
|
],
|
|
11103
10986
|
wrapClassName: "" + PREFIX_CLASS + "-header-more",
|
|
11104
|
-
onOpenChange: function(open) {
|
|
10987
|
+
onOpenChange: function onOpenChange(open) {
|
|
11105
10988
|
_this.emit(EVENTS.control.headerMorePanelOpenChange, open);
|
|
11106
10989
|
}
|
|
11107
10990
|
});
|
|
@@ -11144,7 +11027,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11144
11027
|
language: this.options.language,
|
|
11145
11028
|
locales: this.i18n.translations,
|
|
11146
11029
|
rootContainer: this.$container,
|
|
11147
|
-
getPopupContainer: function() {
|
|
11030
|
+
getPopupContainer: function getPopupContainer() {
|
|
11148
11031
|
var _this__footer;
|
|
11149
11032
|
return (_this__footer = _this._footer) == null ? void 0 : _this__footer.$right;
|
|
11150
11033
|
},
|
|
@@ -11156,7 +11039,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11156
11039
|
-8
|
|
11157
11040
|
],
|
|
11158
11041
|
wrapClassName: "" + PREFIX_CLASS + "-footer-more",
|
|
11159
|
-
onOpenChange: function(open) {
|
|
11042
|
+
onOpenChange: function onOpenChange(open) {
|
|
11160
11043
|
_this.emit(EVENTS.control.footerMorePanelOpenChange, open);
|
|
11161
11044
|
}
|
|
11162
11045
|
});
|
|
@@ -11546,7 +11429,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11546
11429
|
* theme.on(Theme.EVENTS.loading, (loading: boolean) => {})
|
|
11547
11430
|
* ```
|
|
11548
11431
|
*/ function set(loading) {
|
|
11549
|
-
this._loading = loading;
|
|
11550
11432
|
if (loading) {
|
|
11551
11433
|
var _this__loadingControl;
|
|
11552
11434
|
(_this__loadingControl = this._loadingControl) == null ? void 0 : _this__loadingControl.show();
|
|
@@ -11555,6 +11437,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11555
11437
|
(_this__loadingControl1 = this._loadingControl) == null ? void 0 : _this__loadingControl1.hide();
|
|
11556
11438
|
}
|
|
11557
11439
|
if (this._loading !== loading) {
|
|
11440
|
+
this._loading = loading;
|
|
11558
11441
|
this.emit(EVENTS.loading, loading);
|
|
11559
11442
|
}
|
|
11560
11443
|
}
|
|
@@ -11675,6 +11558,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11675
11558
|
* theme.on(Theme.EVENTS.zoomChange, (zoom: number) => {})
|
|
11676
11559
|
* ```
|
|
11677
11560
|
*/ function set(zoom) {
|
|
11561
|
+
var _ref;
|
|
11678
11562
|
var _this_options_zoomOptions;
|
|
11679
11563
|
if (!this._zooming) {
|
|
11680
11564
|
var _this_messageControl_info, _this_messageControl, _this_logger;
|
|
@@ -11683,8 +11567,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11683
11567
|
return;
|
|
11684
11568
|
}
|
|
11685
11569
|
zoom = +zoom.toFixed(1);
|
|
11686
|
-
var
|
|
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;
|
|
11570
|
+
var ZOOM_MAX = (_ref = (_this_options_zoomOptions = this.options.zoomOptions) == null ? void 0 : _this_options_zoomOptions.max) != null ? _ref : ZOOM_DEFAULT_OPTIONS.max;
|
|
11688
11571
|
if (zoom > ZOOM_MAX) {
|
|
11689
11572
|
var _this_messageControl_info1, _this_messageControl1, _this_logger1;
|
|
11690
11573
|
(_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', {
|
|
@@ -11851,7 +11734,9 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11851
11734
|
},
|
|
11852
11735
|
{
|
|
11853
11736
|
key: "isEzopen",
|
|
11854
|
-
get:
|
|
11737
|
+
get: /**
|
|
11738
|
+
* 私有流地址
|
|
11739
|
+
*/ function get() {
|
|
11855
11740
|
// 私有流地址
|
|
11856
11741
|
return /^ezopen:\/\//.test(this._url);
|
|
11857
11742
|
}
|
|
@@ -11862,21 +11747,26 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11862
11747
|
* 判断播放地址是萤石的播放地址
|
|
11863
11748
|
* @since 3.1.2
|
|
11864
11749
|
*/ function get() {
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
11750
|
+
try {
|
|
11751
|
+
var _this__url_split, _this__url_split1, _path_split;
|
|
11752
|
+
var path = (_this__url_split = this._url.split('?')) == null ? void 0 : _this__url_split[0];
|
|
11753
|
+
var queryStr = (_this__url_split1 = this._url.split('?')) == null ? void 0 : _this__url_split1[1];
|
|
11754
|
+
var lastPath = (_path_split = path.split('/')) == null ? void 0 : _path_split[path.split('/').length - 1];
|
|
11755
|
+
// ezopen://open.ys7.com/BC7799091/1.rec
|
|
11756
|
+
// rtmp://rtmp05open.ys7.com:1935/v3/openpb/BC7799091_1_1
|
|
11757
|
+
// https://open.ys7.com/v3/openpb/llhls/BC7799091_1_1.m3u8
|
|
11758
|
+
// https://rtmp05open.ys7.com:9188/v3/openpb/BC7799091_1_1.flv
|
|
11759
|
+
// https://host:2001/live?dev=D08197169&chn=1&ss=token&stream=1
|
|
11760
|
+
if (// 私有流地址
|
|
11761
|
+
/^ezopen:\/\//.test(path) || // 标准流地址
|
|
11762
|
+
path.includes('/openlive/') || path.includes('/openpb/') && /[a-zA-Z0-9:]+_\d+_\d+/.test(lastPath) || // webtransport 取流
|
|
11763
|
+
isHttp(this._url) && queryStr && /dev=[a-zA-Z0-9:]+/.test(queryStr) && /chn=\d+/.test(queryStr) && /stream=\d+/.test(queryStr) && queryStr.includes('ssn=')) {
|
|
11764
|
+
return true;
|
|
11765
|
+
}
|
|
11766
|
+
return false;
|
|
11767
|
+
} catch (error) {
|
|
11768
|
+
return false;
|
|
11878
11769
|
}
|
|
11879
|
-
return false;
|
|
11880
11770
|
}
|
|
11881
11771
|
}
|
|
11882
11772
|
]);
|
|
@@ -11888,6 +11778,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11888
11778
|
zh: zh,
|
|
11889
11779
|
en: en
|
|
11890
11780
|
};
|
|
11891
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.
|
|
11781
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.5-beta.1';
|
|
11892
11782
|
|
|
11893
11783
|
export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
|