@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.cjs
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
|
'use strict';
|
|
@@ -480,14 +480,10 @@ function _set_prototype_of$z(o, p) {
|
|
|
480
480
|
}(EventEmitter);
|
|
481
481
|
|
|
482
482
|
function _extends$y() {
|
|
483
|
-
_extends$y = Object.assign || function(target) {
|
|
483
|
+
_extends$y = Object.assign || function assign(target) {
|
|
484
484
|
for(var i = 1; i < arguments.length; i++){
|
|
485
485
|
var source = arguments[i];
|
|
486
|
-
for(var key in source)
|
|
487
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
488
|
-
target[key] = source[key];
|
|
489
|
-
}
|
|
490
|
-
}
|
|
486
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
491
487
|
}
|
|
492
488
|
return target;
|
|
493
489
|
};
|
|
@@ -561,14 +557,10 @@ var LOADING_DEFAULT_OPTIONS = {};
|
|
|
561
557
|
}(Control);
|
|
562
558
|
|
|
563
559
|
function _extends$x() {
|
|
564
|
-
_extends$x = Object.assign || function(target) {
|
|
560
|
+
_extends$x = Object.assign || function assign(target) {
|
|
565
561
|
for(var i = 1; i < arguments.length; i++){
|
|
566
562
|
var source = arguments[i];
|
|
567
|
-
for(var key in source)
|
|
568
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
569
|
-
target[key] = source[key];
|
|
570
|
-
}
|
|
571
|
-
}
|
|
563
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
572
564
|
}
|
|
573
565
|
return target;
|
|
574
566
|
};
|
|
@@ -674,7 +666,7 @@ var POSTER_OPTIONS = {
|
|
|
674
666
|
var Icons = {
|
|
675
667
|
/** 播放 */ 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>',
|
|
676
668
|
/** 暂停 */ 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>',
|
|
677
|
-
/** 音量 */ volume: function(prefix) {
|
|
669
|
+
/** 音量 */ volume: function volume(prefix) {
|
|
678
670
|
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>';
|
|
679
671
|
},
|
|
680
672
|
/** 全屏 */ 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>',
|
|
@@ -700,7 +692,7 @@ var Icons = {
|
|
|
700
692
|
/** 录制/摄像机 */ 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>',
|
|
701
693
|
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 ',
|
|
702
694
|
/** 对讲 */ 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>',
|
|
703
|
-
talkGrowth: function(prefix) {
|
|
695
|
+
talkGrowth: function talkGrowth(prefix) {
|
|
704
696
|
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>';
|
|
705
697
|
},
|
|
706
698
|
/** 语音广播 */ 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>',
|
|
@@ -742,173 +734,169 @@ var Icons = {
|
|
|
742
734
|
return '<span class="' + PREFIX_CLASS + "-icon " + PREFIX_CLASS + "-icon-" + type + '" ' + attrStr + ">" + svg + "</span>";
|
|
743
735
|
}
|
|
744
736
|
var IconComponents = {
|
|
745
|
-
/** 播放 */ play: function(attr) {
|
|
737
|
+
/** 播放 */ play: function play(attr) {
|
|
746
738
|
if (attr === void 0) attr = {};
|
|
747
739
|
return createIcon(Icons.play, 'play', attr);
|
|
748
740
|
},
|
|
749
|
-
/** 暂停 */ pause: function(attr) {
|
|
741
|
+
/** 暂停 */ pause: function pause(attr) {
|
|
750
742
|
if (attr === void 0) attr = {};
|
|
751
743
|
return createIcon(Icons.pause, 'pause', attr);
|
|
752
744
|
},
|
|
753
|
-
volume: function(attr) {
|
|
745
|
+
volume: function volume(attr) {
|
|
754
746
|
if (attr === void 0) attr = {};
|
|
755
747
|
return createIcon(Icons.volume(PREFIX_CLASS), 'volume', attr);
|
|
756
748
|
},
|
|
757
|
-
mobileFullscreen: function(attr) {
|
|
749
|
+
mobileFullscreen: function mobileFullscreen(attr) {
|
|
758
750
|
if (attr === void 0) attr = {};
|
|
759
751
|
return createIcon(Icons.mobileFullscreen, 'mobile-fullscreen', attr);
|
|
760
752
|
},
|
|
761
|
-
exitFullscreen: function(attr) {
|
|
753
|
+
exitFullscreen: function exitFullscreen(attr) {
|
|
762
754
|
if (attr === void 0) attr = {};
|
|
763
755
|
return createIcon(Icons.exitFullscreen, 'exit-fullscreen', attr);
|
|
764
756
|
},
|
|
765
|
-
fullscreen: function(attr) {
|
|
757
|
+
fullscreen: function fullscreen(attr) {
|
|
766
758
|
if (attr === void 0) attr = {};
|
|
767
759
|
return createIcon(Icons.fullscreen, 'fullscreen', attr);
|
|
768
760
|
},
|
|
769
|
-
exitGlobalFullscreen: function(attr) {
|
|
761
|
+
exitGlobalFullscreen: function exitGlobalFullscreen(attr) {
|
|
770
762
|
if (attr === void 0) attr = {};
|
|
771
763
|
return createIcon(Icons.exitGlobalFullscreen, 'exit-global-fullscreen', attr);
|
|
772
764
|
},
|
|
773
|
-
globalFullscreen: function(attr) {
|
|
765
|
+
globalFullscreen: function globalFullscreen(attr) {
|
|
774
766
|
if (attr === void 0) attr = {};
|
|
775
767
|
return createIcon(Icons.globalFullscreen, 'global-fullscreen', attr);
|
|
776
768
|
},
|
|
777
|
-
capturePicture: function(attr) {
|
|
769
|
+
capturePicture: function capturePicture(attr) {
|
|
778
770
|
if (attr === void 0) attr = {};
|
|
779
771
|
return createIcon(Icons.capturePicture, 'capture-picture', attr);
|
|
780
772
|
},
|
|
781
|
-
ptz: function(attr) {
|
|
773
|
+
ptz: function ptz(attr) {
|
|
782
774
|
if (attr === void 0) attr = {};
|
|
783
775
|
return createIcon(Icons.ptz, 'ptz', attr);
|
|
784
776
|
},
|
|
785
|
-
record: function(attr) {
|
|
777
|
+
record: function record(attr) {
|
|
786
778
|
if (attr === void 0) attr = {};
|
|
787
779
|
return createIcon(Icons.record, 'record', attr);
|
|
788
780
|
},
|
|
789
|
-
recordCircle: function(attr) {
|
|
781
|
+
recordCircle: function recordCircle(attr) {
|
|
790
782
|
if (attr === void 0) attr = {};
|
|
791
783
|
return createIcon(Icons.recordCircle, 'record-circle', attr);
|
|
792
784
|
},
|
|
793
|
-
talk: function(attr) {
|
|
785
|
+
talk: function talk(attr) {
|
|
794
786
|
if (attr === void 0) attr = {};
|
|
795
787
|
return createIcon(Icons.talk, 'talk', attr);
|
|
796
788
|
},
|
|
797
|
-
broadcast: function(attr) {
|
|
789
|
+
broadcast: function broadcast(attr) {
|
|
798
790
|
if (attr === void 0) attr = {};
|
|
799
791
|
return createIcon(Icons.broadcast, 'broadcast', attr);
|
|
800
792
|
},
|
|
801
|
-
aiChat: function(attr) {
|
|
793
|
+
aiChat: function aiChat(attr) {
|
|
802
794
|
if (attr === void 0) attr = {};
|
|
803
795
|
return createIcon(Icons.aiChat, 'aiChat', attr);
|
|
804
796
|
},
|
|
805
|
-
talkGrowth: function(attr) {
|
|
797
|
+
talkGrowth: function talkGrowth(attr) {
|
|
806
798
|
if (attr === void 0) attr = {};
|
|
807
799
|
return createIcon(Icons.talkGrowth(PREFIX_CLASS), 'talk-growth', attr);
|
|
808
800
|
},
|
|
809
|
-
zoom: function(attr) {
|
|
801
|
+
zoom: function zoom(attr) {
|
|
810
802
|
if (attr === void 0) attr = {};
|
|
811
803
|
return createIcon(Icons.zoom, 'zoom', attr);
|
|
812
804
|
},
|
|
813
|
-
more: function(attr) {
|
|
805
|
+
more: function more(attr) {
|
|
814
806
|
if (attr === void 0) attr = {};
|
|
815
807
|
return createIcon(Icons.more, 'more', attr);
|
|
816
808
|
},
|
|
817
|
-
moreDot: function(attr) {
|
|
809
|
+
moreDot: function moreDot(attr) {
|
|
818
810
|
if (attr === void 0) attr = {};
|
|
819
811
|
return createIcon(Icons.moreDot, 'more-dot', attr);
|
|
820
812
|
},
|
|
821
|
-
minusCircle: function(attr) {
|
|
813
|
+
minusCircle: function minusCircle(attr) {
|
|
822
814
|
if (attr === void 0) attr = {};
|
|
823
815
|
return createIcon(Icons.minusCircle, 'minus-circle', attr);
|
|
824
816
|
},
|
|
825
|
-
plusCircle: function(attr) {
|
|
817
|
+
plusCircle: function plusCircle(attr) {
|
|
826
818
|
if (attr === void 0) attr = {};
|
|
827
819
|
return createIcon(Icons.plusCircle, 'plus-circle', attr);
|
|
828
820
|
},
|
|
829
|
-
sdk: function(attr) {
|
|
821
|
+
sdk: function sdk(attr) {
|
|
830
822
|
if (attr === void 0) attr = {};
|
|
831
823
|
return createIcon(Icons.sdk, 'sdk', attr);
|
|
832
824
|
},
|
|
833
|
-
cloudRec: function(attr) {
|
|
825
|
+
cloudRec: function cloudRec(attr) {
|
|
834
826
|
if (attr === void 0) attr = {};
|
|
835
827
|
return createIcon(Icons.cloudRec, 'cloud-rec', attr);
|
|
836
828
|
},
|
|
837
|
-
cloudRecord: function(attr) {
|
|
829
|
+
cloudRecord: function cloudRecord(attr) {
|
|
838
830
|
if (attr === void 0) attr = {};
|
|
839
831
|
return createIcon(Icons.cloudRecord, 'cloud-record', attr);
|
|
840
832
|
},
|
|
841
|
-
error: function(attr) {
|
|
833
|
+
error: function error(attr) {
|
|
842
834
|
if (attr === void 0) attr = {};
|
|
843
835
|
return createIcon(Icons.error, 'error', attr);
|
|
844
836
|
},
|
|
845
|
-
info: function(attr) {
|
|
837
|
+
info: function info(attr) {
|
|
846
838
|
if (attr === void 0) attr = {};
|
|
847
839
|
return createIcon(Icons.info, 'info', attr);
|
|
848
840
|
},
|
|
849
|
-
close: function(attr) {
|
|
841
|
+
close: function close(attr) {
|
|
850
842
|
if (attr === void 0) attr = {};
|
|
851
843
|
return createIcon(Icons.close, 'close', attr);
|
|
852
844
|
},
|
|
853
|
-
closeCircleOutLined: function(attr) {
|
|
845
|
+
closeCircleOutLined: function closeCircleOutLined(attr) {
|
|
854
846
|
if (attr === void 0) attr = {};
|
|
855
847
|
return createIcon(Icons.closeCircleOutLined, 'close-circle', attr);
|
|
856
848
|
},
|
|
857
|
-
warnCircleOutLined: function(attr) {
|
|
849
|
+
warnCircleOutLined: function warnCircleOutLined(attr) {
|
|
858
850
|
if (attr === void 0) attr = {};
|
|
859
851
|
return createIcon(Icons.warnCircleOutLined, 'warn-circle', attr);
|
|
860
852
|
},
|
|
861
|
-
infoCircleOutLined: function(attr) {
|
|
853
|
+
infoCircleOutLined: function infoCircleOutLined(attr) {
|
|
862
854
|
if (attr === void 0) attr = {};
|
|
863
855
|
return createIcon(Icons.infoCircleOutLined, 'info-circle', attr);
|
|
864
856
|
},
|
|
865
|
-
date: function(attr) {
|
|
857
|
+
date: function date(attr) {
|
|
866
858
|
if (attr === void 0) attr = {};
|
|
867
859
|
return createIcon(Icons.date, 'date', attr);
|
|
868
860
|
},
|
|
869
|
-
filter: function(attr) {
|
|
861
|
+
filter: function filter(attr) {
|
|
870
862
|
if (attr === void 0) attr = {};
|
|
871
863
|
return createIcon(Icons.filter, 'filter', attr);
|
|
872
864
|
},
|
|
873
|
-
add: function(attr) {
|
|
865
|
+
add: function add(attr) {
|
|
874
866
|
if (attr === void 0) attr = {};
|
|
875
867
|
return createIcon(Icons.add, 'add', attr);
|
|
876
868
|
},
|
|
877
|
-
reduce: function(attr) {
|
|
869
|
+
reduce: function reduce(attr) {
|
|
878
870
|
if (attr === void 0) attr = {};
|
|
879
871
|
return createIcon(Icons.reduce, 'reduce', attr);
|
|
880
872
|
},
|
|
881
|
-
/** 直播 */ live: function(attr) {
|
|
873
|
+
/** 直播 */ live: function live(attr) {
|
|
882
874
|
if (attr === void 0) attr = {};
|
|
883
875
|
return createIcon(Icons.live, 'live', attr);
|
|
884
876
|
},
|
|
885
|
-
/** 回放 */ recDropdown: function(attr) {
|
|
877
|
+
/** 回放 */ recDropdown: function recDropdown(attr) {
|
|
886
878
|
if (attr === void 0) attr = {};
|
|
887
879
|
return createIcon(Icons.recDropdown, 'rec-dropdown', attr);
|
|
888
880
|
},
|
|
889
|
-
/** 录像列表 */ recList: function(attr) {
|
|
881
|
+
/** 录像列表 */ recList: function recList(attr) {
|
|
890
882
|
if (attr === void 0) attr = {};
|
|
891
883
|
return createIcon(Icons.list, 'rec-list', attr);
|
|
892
884
|
},
|
|
893
|
-
/** 消息 */ alarmMessage: function(attr) {
|
|
885
|
+
/** 消息 */ alarmMessage: function alarmMessage(attr) {
|
|
894
886
|
if (attr === void 0) attr = {};
|
|
895
887
|
return createIcon(Icons.alarmMessage, 'alarm-message', attr);
|
|
896
888
|
},
|
|
897
|
-
time: function(attr) {
|
|
889
|
+
time: function time(attr) {
|
|
898
890
|
if (attr === void 0) attr = {};
|
|
899
891
|
return createIcon(Icons.time, 'time', attr);
|
|
900
892
|
}
|
|
901
893
|
};
|
|
902
894
|
|
|
903
895
|
function _extends$w() {
|
|
904
|
-
_extends$w = Object.assign || function(target) {
|
|
896
|
+
_extends$w = Object.assign || function assign(target) {
|
|
905
897
|
for(var i = 1; i < arguments.length; i++){
|
|
906
898
|
var source = arguments[i];
|
|
907
|
-
for(var key in source)
|
|
908
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
909
|
-
target[key] = source[key];
|
|
910
|
-
}
|
|
911
|
-
}
|
|
899
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
912
900
|
}
|
|
913
901
|
return target;
|
|
914
902
|
};
|
|
@@ -1101,14 +1089,10 @@ function _create_class$8(Constructor, protoProps, staticProps) {
|
|
|
1101
1089
|
return Constructor;
|
|
1102
1090
|
}
|
|
1103
1091
|
function _extends$v() {
|
|
1104
|
-
_extends$v = Object.assign || function(target) {
|
|
1092
|
+
_extends$v = Object.assign || function assign(target) {
|
|
1105
1093
|
for(var i = 1; i < arguments.length; i++){
|
|
1106
1094
|
var source = arguments[i];
|
|
1107
|
-
for(var key in source)
|
|
1108
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1109
|
-
target[key] = source[key];
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1095
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
1112
1096
|
}
|
|
1113
1097
|
return target;
|
|
1114
1098
|
};
|
|
@@ -1227,14 +1211,6 @@ function _array_like_to_array$2(arr, len) {
|
|
|
1227
1211
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1228
1212
|
return arr2;
|
|
1229
1213
|
}
|
|
1230
|
-
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
1231
|
-
if (!o) return;
|
|
1232
|
-
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
1233
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1234
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1235
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1236
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
1237
|
-
}
|
|
1238
1214
|
function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
1239
1215
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
1240
1216
|
if (it) return (it = it.call(o)).next.bind(it);
|
|
@@ -1242,18 +1218,24 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
|
1242
1218
|
if (it) o = it;
|
|
1243
1219
|
var i = 0;
|
|
1244
1220
|
return function() {
|
|
1245
|
-
if (i >= o.length) {
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
};
|
|
1249
|
-
}
|
|
1221
|
+
if (i >= o.length) return {
|
|
1222
|
+
done: true
|
|
1223
|
+
};
|
|
1250
1224
|
return {
|
|
1251
1225
|
done: false,
|
|
1252
1226
|
value: o[i++]
|
|
1253
1227
|
};
|
|
1254
1228
|
};
|
|
1255
1229
|
}
|
|
1256
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance
|
|
1230
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1231
|
+
}
|
|
1232
|
+
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
1233
|
+
if (!o) return;
|
|
1234
|
+
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
1235
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1236
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1237
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1238
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
1257
1239
|
}
|
|
1258
1240
|
/**
|
|
1259
1241
|
* 工具类
|
|
@@ -1280,7 +1262,7 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
|
1280
1262
|
*/ // prettier-ignore
|
|
1281
1263
|
Utils.orientationEventListener = function orientationEventListener(change) {
|
|
1282
1264
|
var _orientationTimer = null;
|
|
1283
|
-
var getOrientation = function() {
|
|
1265
|
+
var getOrientation = function getOrientation() {
|
|
1284
1266
|
var _screen, _window;
|
|
1285
1267
|
// 现代浏览器方案
|
|
1286
1268
|
if ((_screen = screen) == null ? void 0 : _screen.orientation) {
|
|
@@ -1317,7 +1299,7 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
|
1317
1299
|
};
|
|
1318
1300
|
var orientation = getOrientation();
|
|
1319
1301
|
// 监听变化(兼容写法)
|
|
1320
|
-
var onOrientationChange = function() {
|
|
1302
|
+
var onOrientationChange = function onOrientationChange() {
|
|
1321
1303
|
var newOrientation = getOrientation == null ? void 0 : getOrientation();
|
|
1322
1304
|
// console.log("onOrientationChange", newOrientation, orientation)
|
|
1323
1305
|
// prettier-ignore
|
|
@@ -1326,7 +1308,7 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
|
1326
1308
|
orientation = newOrientation;
|
|
1327
1309
|
}
|
|
1328
1310
|
};
|
|
1329
|
-
var onResize = function() {
|
|
1311
|
+
var onResize = function onResize() {
|
|
1330
1312
|
// 防抖处理
|
|
1331
1313
|
if (_orientationTimer) clearTimeout(_orientationTimer);
|
|
1332
1314
|
if (onOrientationChange) _orientationTimer = setTimeout(onOrientationChange, 200);
|
|
@@ -1381,7 +1363,7 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
|
|
|
1381
1363
|
*/ // prettier-ignore
|
|
1382
1364
|
Utils.resizeObserver = function resizeObserver(node, callback) {
|
|
1383
1365
|
// prettier-ignore
|
|
1384
|
-
var observerFn = function(entries, observer) {
|
|
1366
|
+
var observerFn = function observerFn(entries, observer) {
|
|
1385
1367
|
for(var _iterator = _create_for_of_iterator_helper_loose$2(entries), _step; !(_step = _iterator()).done;){
|
|
1386
1368
|
var entry = _step.value;
|
|
1387
1369
|
if (entry.target === node) {
|
|
@@ -1445,9 +1427,9 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1445
1427
|
showPlus: false,
|
|
1446
1428
|
showMinus: false,
|
|
1447
1429
|
isRotated: false,
|
|
1448
|
-
onChange: function() {
|
|
1430
|
+
onChange: function onChange() {
|
|
1449
1431
|
/* no-op */ },
|
|
1450
|
-
renderText: function(_, percent) {
|
|
1432
|
+
renderText: function renderText(_, percent) {
|
|
1451
1433
|
return (percent * 100).toFixed(0);
|
|
1452
1434
|
}
|
|
1453
1435
|
};
|
|
@@ -1470,6 +1452,7 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1470
1452
|
* })
|
|
1471
1453
|
*/ var Progress = /*#__PURE__*/ function() {
|
|
1472
1454
|
function Progress(options) {
|
|
1455
|
+
var _this_options_defaultValue;
|
|
1473
1456
|
var _this_options_range;
|
|
1474
1457
|
this._percent = 0;
|
|
1475
1458
|
this._value = 0;
|
|
@@ -1491,7 +1474,6 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1491
1474
|
this.$container = options.container;
|
|
1492
1475
|
this._render();
|
|
1493
1476
|
this._eventListeners();
|
|
1494
|
-
var _this_options_defaultValue;
|
|
1495
1477
|
var value = (_this_options_defaultValue = this.options.defaultValue) != null ? _this_options_defaultValue : this.options.range[0]; // 设置默认值
|
|
1496
1478
|
this._value = +value.toFixed(2); // 保留两位小数
|
|
1497
1479
|
// prettier-ignore
|
|
@@ -1564,8 +1546,8 @@ var PROGRESS_DEFAULT_OPTIONS = {
|
|
|
1564
1546
|
this._percent = +((value - this.options.range[0]) / (this.options.range[1] - this.options.range[0])).toFixed(2);
|
|
1565
1547
|
};
|
|
1566
1548
|
_proto._render = function _render() {
|
|
1567
|
-
this.$content = document.createElement('div');
|
|
1568
1549
|
var _this_options_className;
|
|
1550
|
+
this.$content = document.createElement('div');
|
|
1569
1551
|
this.$content.className = PREFIX_CLASS + "-progress " + ((_this_options_className = this.options.className) != null ? _this_options_className : '');
|
|
1570
1552
|
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>" : '');
|
|
1571
1553
|
this.$container.appendChild(this.$content);
|
|
@@ -1758,14 +1740,10 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
1758
1740
|
return Constructor;
|
|
1759
1741
|
}
|
|
1760
1742
|
function _extends$u() {
|
|
1761
|
-
_extends$u = Object.assign || function(target) {
|
|
1743
|
+
_extends$u = Object.assign || function assign(target) {
|
|
1762
1744
|
for(var i = 1; i < arguments.length; i++){
|
|
1763
1745
|
var source = arguments[i];
|
|
1764
|
-
for(var key in source)
|
|
1765
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1766
|
-
target[key] = source[key];
|
|
1767
|
-
}
|
|
1768
|
-
}
|
|
1746
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
1769
1747
|
}
|
|
1770
1748
|
return target;
|
|
1771
1749
|
};
|
|
@@ -1796,8 +1774,8 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1796
1774
|
muted: false,
|
|
1797
1775
|
open: false,
|
|
1798
1776
|
trigger: 'hover',
|
|
1799
|
-
onOpenChange: function() {},
|
|
1800
|
-
onChange: function() {}
|
|
1777
|
+
onOpenChange: function onOpenChange() {},
|
|
1778
|
+
onChange: function onChange() {}
|
|
1801
1779
|
};
|
|
1802
1780
|
/**
|
|
1803
1781
|
* 音量调节控件
|
|
@@ -1825,7 +1803,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1825
1803
|
if (!(Utils.isMobile || _this._options.PLAY_TYPE === 'ezopen' || _this._options.PLAY_TYPE === 'ezhls')) {
|
|
1826
1804
|
var _this__options_props4, _this__options_props5;
|
|
1827
1805
|
_this.picker = new Picker(_this.$container, {
|
|
1828
|
-
getPopupContainer: function() {
|
|
1806
|
+
getPopupContainer: function getPopupContainer() {
|
|
1829
1807
|
return _this.$container;
|
|
1830
1808
|
},
|
|
1831
1809
|
trigger: _this._options.trigger,
|
|
@@ -1836,7 +1814,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1836
1814
|
-10
|
|
1837
1815
|
],
|
|
1838
1816
|
placement: 'top',
|
|
1839
|
-
onOpenChange: function(open) {
|
|
1817
|
+
onOpenChange: function onOpenChange(open) {
|
|
1840
1818
|
_this._options.onOpenChange == null ? void 0 : _this._options.onOpenChange.call(_this._options, open, _this._muted ? _this._lastVolume : _this.volume, _this._muted);
|
|
1841
1819
|
// prettier-ignore
|
|
1842
1820
|
_this.emit(EVENTS.control.volumePanelOpenChange, open, _this._lastVolume, _this._muted);
|
|
@@ -1853,10 +1831,10 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1853
1831
|
showPercent: true,
|
|
1854
1832
|
className: "" + PREFIX_CLASS + "-volume-progress",
|
|
1855
1833
|
// 为了解决点击进度调取消静音
|
|
1856
|
-
onProgressClick: function() {
|
|
1834
|
+
onProgressClick: function onProgressClick() {
|
|
1857
1835
|
_this.muted = false;
|
|
1858
1836
|
},
|
|
1859
|
-
onChange: function(value) {
|
|
1837
|
+
onChange: function onChange(value) {
|
|
1860
1838
|
if (value !== _this._volume) _this.volume = value;
|
|
1861
1839
|
}
|
|
1862
1840
|
});
|
|
@@ -2033,11 +2011,8 @@ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
2033
2011
|
reject(error);
|
|
2034
2012
|
return;
|
|
2035
2013
|
}
|
|
2036
|
-
if (info.done)
|
|
2037
|
-
|
|
2038
|
-
} else {
|
|
2039
|
-
Promise.resolve(value).then(_next, _throw);
|
|
2040
|
-
}
|
|
2014
|
+
if (info.done) resolve(value);
|
|
2015
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
2041
2016
|
}
|
|
2042
2017
|
function _async_to_generator$7(fn) {
|
|
2043
2018
|
return function() {
|
|
@@ -2063,9 +2038,17 @@ function _ts_generator$7(thisArg, body) {
|
|
|
2063
2038
|
},
|
|
2064
2039
|
trys: [],
|
|
2065
2040
|
ops: []
|
|
2066
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
2067
|
-
return
|
|
2068
|
-
|
|
2041
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
2042
|
+
return d(g, "next", {
|
|
2043
|
+
value: verb(0)
|
|
2044
|
+
}), d(g, "throw", {
|
|
2045
|
+
value: verb(1)
|
|
2046
|
+
}), d(g, "return", {
|
|
2047
|
+
value: verb(2)
|
|
2048
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
2049
|
+
value: function() {
|
|
2050
|
+
return this;
|
|
2051
|
+
}
|
|
2069
2052
|
}), g;
|
|
2070
2053
|
function verb(n) {
|
|
2071
2054
|
return function(v) {
|
|
@@ -2159,11 +2142,10 @@ var Provider = /*#__PURE__*/ function() {
|
|
|
2159
2142
|
return item.element === element;
|
|
2160
2143
|
});
|
|
2161
2144
|
if (index >= 0) {
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
this.fullscreens[index].onChange.push(onChange);
|
|
2145
|
+
var target = this.fullscreens[index];
|
|
2146
|
+
target.onChange = Array.isArray(target.onChange) ? target.onChange : [];
|
|
2147
|
+
if (!target.onChange.includes(onChange)) {
|
|
2148
|
+
target.onChange.push(onChange);
|
|
2167
2149
|
}
|
|
2168
2150
|
} else {
|
|
2169
2151
|
this.fullscreens.push({
|
|
@@ -2469,14 +2451,10 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2469
2451
|
}();
|
|
2470
2452
|
|
|
2471
2453
|
function _extends$t() {
|
|
2472
|
-
_extends$t = Object.assign || function(target) {
|
|
2454
|
+
_extends$t = Object.assign || function assign(target) {
|
|
2473
2455
|
for(var i = 1; i < arguments.length; i++){
|
|
2474
2456
|
var source = arguments[i];
|
|
2475
|
-
for(var key in source)
|
|
2476
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2477
|
-
target[key] = source[key];
|
|
2478
|
-
}
|
|
2479
|
-
}
|
|
2457
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
2480
2458
|
}
|
|
2481
2459
|
return target;
|
|
2482
2460
|
};
|
|
@@ -2576,14 +2554,10 @@ function _set_prototype_of$t(o, p) {
|
|
|
2576
2554
|
}(Control);
|
|
2577
2555
|
|
|
2578
2556
|
function _extends$s() {
|
|
2579
|
-
_extends$s = Object.assign || function(target) {
|
|
2557
|
+
_extends$s = Object.assign || function assign(target) {
|
|
2580
2558
|
for(var i = 1; i < arguments.length; i++){
|
|
2581
2559
|
var source = arguments[i];
|
|
2582
|
-
for(var key in source)
|
|
2583
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2584
|
-
target[key] = source[key];
|
|
2585
|
-
}
|
|
2586
|
-
}
|
|
2560
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
2587
2561
|
}
|
|
2588
2562
|
return target;
|
|
2589
2563
|
};
|
|
@@ -4109,14 +4083,10 @@ function _set_prototype_of$r(o, p) {
|
|
|
4109
4083
|
}(EventEmitter);
|
|
4110
4084
|
|
|
4111
4085
|
function _extends$r() {
|
|
4112
|
-
_extends$r = Object.assign || function(target) {
|
|
4086
|
+
_extends$r = Object.assign || function assign(target) {
|
|
4113
4087
|
for(var i = 1; i < arguments.length; i++){
|
|
4114
4088
|
var source = arguments[i];
|
|
4115
|
-
for(var key in source)
|
|
4116
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
4117
|
-
target[key] = source[key];
|
|
4118
|
-
}
|
|
4119
|
-
}
|
|
4089
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
4120
4090
|
}
|
|
4121
4091
|
return target;
|
|
4122
4092
|
};
|
|
@@ -4168,7 +4138,7 @@ function _set_prototype_of$q(o, p) {
|
|
|
4168
4138
|
title: (_this_locale1 = this.locale) == null ? void 0 : _this_locale1.BTN_MORE
|
|
4169
4139
|
});
|
|
4170
4140
|
this.picker = new Picker(this.$container, {
|
|
4171
|
-
getPopupContainer: function() {
|
|
4141
|
+
getPopupContainer: function getPopupContainer() {
|
|
4172
4142
|
return _this.$container;
|
|
4173
4143
|
},
|
|
4174
4144
|
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
@@ -4803,7 +4773,7 @@ function debounce(func, wait) {
|
|
|
4803
4773
|
theme.emit(EVENTS.control.dateChange, date);
|
|
4804
4774
|
});
|
|
4805
4775
|
theme.controls.dateControl.on(EVENTS.control.dateDestroy, function() {
|
|
4806
|
-
theme.emit(EVENTS.control.
|
|
4776
|
+
theme.emit(EVENTS.control.dateDestroy);
|
|
4807
4777
|
});
|
|
4808
4778
|
}
|
|
4809
4779
|
// 时间控件
|
|
@@ -4907,14 +4877,10 @@ function _create_class$5(Constructor, protoProps, staticProps) {
|
|
|
4907
4877
|
return Constructor;
|
|
4908
4878
|
}
|
|
4909
4879
|
function _extends$q() {
|
|
4910
|
-
_extends$q = Object.assign || function(target) {
|
|
4880
|
+
_extends$q = Object.assign || function assign(target) {
|
|
4911
4881
|
for(var i = 1; i < arguments.length; i++){
|
|
4912
4882
|
var source = arguments[i];
|
|
4913
|
-
for(var key in source)
|
|
4914
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
4915
|
-
target[key] = source[key];
|
|
4916
|
-
}
|
|
4917
|
-
}
|
|
4883
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
4918
4884
|
}
|
|
4919
4885
|
return target;
|
|
4920
4886
|
};
|
|
@@ -4993,14 +4959,14 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4993
4959
|
showPlus: true,
|
|
4994
4960
|
showPercent: true,
|
|
4995
4961
|
isRotated: this._isRotated,
|
|
4996
|
-
onChange: function(value, percent, range) {
|
|
4962
|
+
onChange: function onChange(value, percent, range) {
|
|
4997
4963
|
if (value !== _this._value) {
|
|
4998
4964
|
_this._value = value;
|
|
4999
4965
|
_this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, value, percent, range);
|
|
5000
4966
|
_this.emit(EVENTS.control.zoomChange, value, percent, range);
|
|
5001
4967
|
}
|
|
5002
4968
|
},
|
|
5003
|
-
renderText: function(value) {
|
|
4969
|
+
renderText: function renderText(value) {
|
|
5004
4970
|
return "" + value + "X";
|
|
5005
4971
|
}
|
|
5006
4972
|
});
|
|
@@ -5080,14 +5046,10 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
5080
5046
|
}(Control);
|
|
5081
5047
|
|
|
5082
5048
|
function _extends$p() {
|
|
5083
|
-
_extends$p = Object.assign || function(target) {
|
|
5049
|
+
_extends$p = Object.assign || function assign(target) {
|
|
5084
5050
|
for(var i = 1; i < arguments.length; i++){
|
|
5085
5051
|
var source = arguments[i];
|
|
5086
|
-
for(var key in source)
|
|
5087
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5088
|
-
target[key] = source[key];
|
|
5089
|
-
}
|
|
5090
|
-
}
|
|
5052
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
5091
5053
|
}
|
|
5092
5054
|
return target;
|
|
5093
5055
|
};
|
|
@@ -5096,14 +5058,14 @@ function _extends$p() {
|
|
|
5096
5058
|
function __zoom(theme, container, options) {
|
|
5097
5059
|
theme.zoomUtil = new Zoom$1(container, _extends$p({}, options || {}, {
|
|
5098
5060
|
min: 1,
|
|
5099
|
-
onChange: function(zoom, reset) {
|
|
5061
|
+
onChange: function onChange(zoom, reset) {
|
|
5100
5062
|
if (zoom !== theme._zoom) {
|
|
5101
5063
|
var _options_onChange;
|
|
5102
5064
|
theme.zoom = zoom;
|
|
5103
5065
|
options == null ? void 0 : (_options_onChange = options.onChange) == null ? void 0 : _options_onChange.call(options, zoom, reset);
|
|
5104
5066
|
}
|
|
5105
5067
|
},
|
|
5106
|
-
onTranslateChange: function(pos) {
|
|
5068
|
+
onTranslateChange: function onTranslateChange(pos) {
|
|
5107
5069
|
var _options_onTranslateChange;
|
|
5108
5070
|
theme.emit(EVENTS.zoomTranslateChange, pos);
|
|
5109
5071
|
options == null ? void 0 : (_options_onTranslateChange = options.onTranslateChange) == null ? void 0 : _options_onTranslateChange.call(options, pos);
|
|
@@ -5120,11 +5082,8 @@ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5120
5082
|
reject(error);
|
|
5121
5083
|
return;
|
|
5122
5084
|
}
|
|
5123
|
-
if (info.done)
|
|
5124
|
-
|
|
5125
|
-
} else {
|
|
5126
|
-
Promise.resolve(value).then(_next, _throw);
|
|
5127
|
-
}
|
|
5085
|
+
if (info.done) resolve(value);
|
|
5086
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
5128
5087
|
}
|
|
5129
5088
|
function _async_to_generator$6(fn) {
|
|
5130
5089
|
return function() {
|
|
@@ -5150,9 +5109,17 @@ function _ts_generator$6(thisArg, body) {
|
|
|
5150
5109
|
},
|
|
5151
5110
|
trys: [],
|
|
5152
5111
|
ops: []
|
|
5153
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
5154
|
-
return
|
|
5155
|
-
|
|
5112
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
5113
|
+
return d(g, "next", {
|
|
5114
|
+
value: verb(0)
|
|
5115
|
+
}), d(g, "throw", {
|
|
5116
|
+
value: verb(1)
|
|
5117
|
+
}), d(g, "return", {
|
|
5118
|
+
value: verb(2)
|
|
5119
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
5120
|
+
value: function() {
|
|
5121
|
+
return this;
|
|
5122
|
+
}
|
|
5156
5123
|
}), g;
|
|
5157
5124
|
function verb(n) {
|
|
5158
5125
|
return function(v) {
|
|
@@ -5308,11 +5275,8 @@ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5308
5275
|
reject(error);
|
|
5309
5276
|
return;
|
|
5310
5277
|
}
|
|
5311
|
-
if (info.done)
|
|
5312
|
-
|
|
5313
|
-
} else {
|
|
5314
|
-
Promise.resolve(value).then(_next, _throw);
|
|
5315
|
-
}
|
|
5278
|
+
if (info.done) resolve(value);
|
|
5279
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
5316
5280
|
}
|
|
5317
5281
|
function _async_to_generator$5(fn) {
|
|
5318
5282
|
return function() {
|
|
@@ -5330,14 +5294,10 @@ function _async_to_generator$5(fn) {
|
|
|
5330
5294
|
};
|
|
5331
5295
|
}
|
|
5332
5296
|
function _extends$o() {
|
|
5333
|
-
_extends$o = Object.assign || function(target) {
|
|
5297
|
+
_extends$o = Object.assign || function assign(target) {
|
|
5334
5298
|
for(var i = 1; i < arguments.length; i++){
|
|
5335
5299
|
var source = arguments[i];
|
|
5336
|
-
for(var key in source)
|
|
5337
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5338
|
-
target[key] = source[key];
|
|
5339
|
-
}
|
|
5340
|
-
}
|
|
5300
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
5341
5301
|
}
|
|
5342
5302
|
return target;
|
|
5343
5303
|
};
|
|
@@ -5352,9 +5312,17 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5352
5312
|
},
|
|
5353
5313
|
trys: [],
|
|
5354
5314
|
ops: []
|
|
5355
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
5356
|
-
return
|
|
5357
|
-
|
|
5315
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
5316
|
+
return d(g, "next", {
|
|
5317
|
+
value: verb(0)
|
|
5318
|
+
}), d(g, "throw", {
|
|
5319
|
+
value: verb(1)
|
|
5320
|
+
}), d(g, "return", {
|
|
5321
|
+
value: verb(2)
|
|
5322
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
5323
|
+
value: function() {
|
|
5324
|
+
return this;
|
|
5325
|
+
}
|
|
5358
5326
|
}), g;
|
|
5359
5327
|
function verb(n) {
|
|
5360
5328
|
return function(v) {
|
|
@@ -5447,10 +5415,10 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5447
5415
|
* @param {IThemeData} themeData 主题数据
|
|
5448
5416
|
* @returns
|
|
5449
5417
|
*/ function _filterControls(themeData) {
|
|
5418
|
+
var _ref;
|
|
5450
5419
|
var _themeData_header, _themeData_footer;
|
|
5451
5420
|
var data = {};
|
|
5452
|
-
|
|
5453
|
-
data.autoFocus = (_themeData_autoFocus = themeData == null ? void 0 : themeData.autoFocus) != null ? _themeData_autoFocus : 3; // 3s
|
|
5421
|
+
data.autoFocus = (_ref = themeData == null ? void 0 : themeData.autoFocus) != null ? _ref : 3; // 3s
|
|
5454
5422
|
data.poster = (themeData == null ? void 0 : themeData.poster) || ''; //
|
|
5455
5423
|
var deviceControls = [];
|
|
5456
5424
|
var recControls = [];
|
|
@@ -5607,7 +5575,7 @@ function _filterLeftRightControls(btnList) {
|
|
|
5607
5575
|
2,
|
|
5608
5576
|
null
|
|
5609
5577
|
];
|
|
5610
|
-
theme.emit(EVENTS.message, theme.i18n.t('FETCH_THEME_FAILED'), 'themeError');
|
|
5578
|
+
theme.emit(EVENTS.message, theme.i18n.t('FETCH_THEME_FAILED') + ' ' + data, 'themeError');
|
|
5611
5579
|
return [
|
|
5612
5580
|
2,
|
|
5613
5581
|
null
|
|
@@ -5619,7 +5587,7 @@ function _filterLeftRightControls(btnList) {
|
|
|
5619
5587
|
2,
|
|
5620
5588
|
null
|
|
5621
5589
|
];
|
|
5622
|
-
theme.emit(EVENTS.message, theme.i18n.t('FETCH_THEME_FAILED'), 'themeError');
|
|
5590
|
+
theme.emit(EVENTS.message, theme.i18n.t('FETCH_THEME_FAILED') + ' ' + data, 'themeError');
|
|
5623
5591
|
return [
|
|
5624
5592
|
2,
|
|
5625
5593
|
null
|
|
@@ -5755,14 +5723,10 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
|
|
|
5755
5723
|
}();
|
|
5756
5724
|
|
|
5757
5725
|
function _extends$n() {
|
|
5758
|
-
_extends$n = Object.assign || function(target) {
|
|
5726
|
+
_extends$n = Object.assign || function assign(target) {
|
|
5759
5727
|
for(var i = 1; i < arguments.length; i++){
|
|
5760
5728
|
var source = arguments[i];
|
|
5761
|
-
for(var key in source)
|
|
5762
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5763
|
-
target[key] = source[key];
|
|
5764
|
-
}
|
|
5765
|
-
}
|
|
5729
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
5766
5730
|
}
|
|
5767
5731
|
return target;
|
|
5768
5732
|
};
|
|
@@ -5800,14 +5764,10 @@ var Footer = /*#__PURE__*/ function(Component) {
|
|
|
5800
5764
|
}(Component);
|
|
5801
5765
|
|
|
5802
5766
|
function _extends$m() {
|
|
5803
|
-
_extends$m = Object.assign || function(target) {
|
|
5767
|
+
_extends$m = Object.assign || function assign(target) {
|
|
5804
5768
|
for(var i = 1; i < arguments.length; i++){
|
|
5805
5769
|
var source = arguments[i];
|
|
5806
|
-
for(var key in source)
|
|
5807
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5808
|
-
target[key] = source[key];
|
|
5809
|
-
}
|
|
5810
|
-
}
|
|
5770
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
5811
5771
|
}
|
|
5812
5772
|
return target;
|
|
5813
5773
|
};
|
|
@@ -5859,13 +5819,13 @@ function interactiveHF($container, second, callback) {
|
|
|
5859
5819
|
var _alwaysDisplay = false;
|
|
5860
5820
|
var _$header = $container.querySelector("." + PREFIX_CLASS + "-header");
|
|
5861
5821
|
var _$footer = $container.querySelector("." + PREFIX_CLASS + "-footer");
|
|
5862
|
-
var _clearTimeout = function() {
|
|
5822
|
+
var _clearTimeout = function _clearTimeout() {
|
|
5863
5823
|
if (_timer) {
|
|
5864
5824
|
clearTimeout(_timer);
|
|
5865
5825
|
_timer = null;
|
|
5866
5826
|
}
|
|
5867
5827
|
};
|
|
5868
|
-
var _show = function() {
|
|
5828
|
+
var _show = function _show() {
|
|
5869
5829
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5870
5830
|
_$header == null ? void 0 : _$header.classList.remove("" + PREFIX_CLASS + "-hide-transition");
|
|
5871
5831
|
_$footer == null ? void 0 : _$footer.classList.remove("" + PREFIX_CLASS + "-hide-transition");
|
|
@@ -5875,7 +5835,7 @@ function interactiveHF($container, second, callback) {
|
|
|
5875
5835
|
}
|
|
5876
5836
|
_open = true;
|
|
5877
5837
|
};
|
|
5878
|
-
var _hide = function() {
|
|
5838
|
+
var _hide = function _hide() {
|
|
5879
5839
|
if (_alwaysDisplay) {
|
|
5880
5840
|
return;
|
|
5881
5841
|
}
|
|
@@ -5890,27 +5850,27 @@ function interactiveHF($container, second, callback) {
|
|
|
5890
5850
|
}
|
|
5891
5851
|
_open = false;
|
|
5892
5852
|
};
|
|
5893
|
-
var _setTimeoutShow = function() {
|
|
5853
|
+
var _setTimeoutShow = function _setTimeoutShow() {
|
|
5894
5854
|
_show == null ? void 0 : _show();
|
|
5895
5855
|
_timer = setTimeout(function() {
|
|
5896
5856
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5897
5857
|
_hide == null ? void 0 : _hide();
|
|
5898
5858
|
}, second);
|
|
5899
5859
|
};
|
|
5900
|
-
var _headerFooterMousemove = function(e) {
|
|
5860
|
+
var _headerFooterMousemove = function _headerFooterMousemove(e) {
|
|
5901
5861
|
var // 鼠标在header footer 移动, 不允许消失及不要冒泡
|
|
5902
5862
|
_e_stopPropagation;
|
|
5903
5863
|
e == null ? void 0 : (_e_stopPropagation = e.stopPropagation) == null ? void 0 : _e_stopPropagation.call(e);
|
|
5904
5864
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5905
5865
|
};
|
|
5906
|
-
var _touchStart = function() {
|
|
5866
|
+
var _touchStart = function _touchStart() {
|
|
5907
5867
|
if (_open) {
|
|
5908
5868
|
_hide == null ? void 0 : _hide();
|
|
5909
5869
|
} else {
|
|
5910
5870
|
_setTimeoutShow == null ? void 0 : _setTimeoutShow();
|
|
5911
5871
|
}
|
|
5912
5872
|
};
|
|
5913
|
-
var _headerFooterTouchStart = function(e) {
|
|
5873
|
+
var _headerFooterTouchStart = function _headerFooterTouchStart(e) {
|
|
5914
5874
|
var // 移动端特殊处理, 点击 header footer不允许消失及不要冒泡
|
|
5915
5875
|
_e_stopPropagation;
|
|
5916
5876
|
e == null ? void 0 : (_e_stopPropagation = e.stopPropagation) == null ? void 0 : _e_stopPropagation.call(e);
|
|
@@ -5947,37 +5907,34 @@ function interactiveHF($container, second, callback) {
|
|
|
5947
5907
|
}
|
|
5948
5908
|
/**
|
|
5949
5909
|
* 销毁
|
|
5950
|
-
*/ var cleanup = function() {
|
|
5910
|
+
*/ var cleanup = function cleanup() {
|
|
5951
5911
|
if ($container) {
|
|
5952
5912
|
if (Utils.isMobile && _touchStart) {
|
|
5953
5913
|
var eventName = "click";
|
|
5954
5914
|
$container.removeEventListener(eventName, _touchStart);
|
|
5955
|
-
if (_$footer &&
|
|
5915
|
+
if (_$footer && _headerFooterTouchStart) {
|
|
5956
5916
|
_$footer.removeEventListener(eventName, _headerFooterTouchStart);
|
|
5957
5917
|
}
|
|
5958
|
-
if (_$header &&
|
|
5918
|
+
if (_$header && _headerFooterTouchStart) {
|
|
5959
5919
|
_$header.removeEventListener(eventName, _headerFooterTouchStart);
|
|
5960
5920
|
}
|
|
5961
5921
|
}
|
|
5962
|
-
if (_setTimeoutShow) {
|
|
5922
|
+
if (_hide || _setTimeoutShow) {
|
|
5963
5923
|
var eventName1 = window.PointerEvent ? "pointerdown" : "click";
|
|
5964
5924
|
$container.removeEventListener(eventName1, _setTimeoutShow);
|
|
5965
5925
|
$container.removeEventListener('mousemove', _setTimeoutShow); // 不要被 header 和 footer 冒泡过来
|
|
5966
5926
|
$container.removeEventListener('mouseleave', _hide);
|
|
5967
|
-
if (_$footer &&
|
|
5927
|
+
if (_$footer && _headerFooterMousemove) {
|
|
5968
5928
|
var _$footer_removeEventListener, _$footer_removeEventListener1;
|
|
5969
5929
|
_$footer == null ? void 0 : (_$footer_removeEventListener = _$footer.removeEventListener) == null ? void 0 : _$footer_removeEventListener.call(_$footer, eventName1, _headerFooterMousemove);
|
|
5970
5930
|
_$footer == null ? void 0 : (_$footer_removeEventListener1 = _$footer.removeEventListener) == null ? void 0 : _$footer_removeEventListener1.call(_$footer, "mousemove", _headerFooterMousemove);
|
|
5971
5931
|
}
|
|
5972
|
-
if (_$header &&
|
|
5932
|
+
if (_$header && _headerFooterMousemove) {
|
|
5973
5933
|
var _$header_removeEventListener, _$header_removeEventListener1;
|
|
5974
5934
|
_$header == null ? void 0 : (_$header_removeEventListener = _$header.removeEventListener) == null ? void 0 : _$header_removeEventListener.call(_$header, eventName1, _headerFooterMousemove);
|
|
5975
5935
|
_$header == null ? void 0 : (_$header_removeEventListener1 = _$header.removeEventListener) == null ? void 0 : _$header_removeEventListener1.call(_$header, "mousemove", _headerFooterMousemove);
|
|
5976
5936
|
}
|
|
5977
5937
|
}
|
|
5978
|
-
if (_hide) {
|
|
5979
|
-
$container.removeEventListener('mouseleave', _hide);
|
|
5980
|
-
}
|
|
5981
5938
|
_touchStart = null;
|
|
5982
5939
|
_setTimeoutShow = null;
|
|
5983
5940
|
_hide = null;
|
|
@@ -5991,11 +5948,11 @@ function interactiveHF($container, second, callback) {
|
|
|
5991
5948
|
};
|
|
5992
5949
|
return {
|
|
5993
5950
|
cleanup: cleanup,
|
|
5994
|
-
clearTimeout: function() {
|
|
5951
|
+
clearTimeout: function clearTimeout1() {
|
|
5995
5952
|
_clearTimeout == null ? void 0 : _clearTimeout();
|
|
5996
5953
|
_alwaysDisplay = true;
|
|
5997
5954
|
},
|
|
5998
|
-
setTimeoutShow: function() {
|
|
5955
|
+
setTimeoutShow: function setTimeoutShow() {
|
|
5999
5956
|
_setTimeoutShow == null ? void 0 : _setTimeoutShow();
|
|
6000
5957
|
_alwaysDisplay = false;
|
|
6001
5958
|
},
|
|
@@ -6004,14 +5961,10 @@ function interactiveHF($container, second, callback) {
|
|
|
6004
5961
|
}
|
|
6005
5962
|
|
|
6006
5963
|
function _extends$l() {
|
|
6007
|
-
_extends$l = Object.assign || function(target) {
|
|
5964
|
+
_extends$l = Object.assign || function assign(target) {
|
|
6008
5965
|
for(var i = 1; i < arguments.length; i++){
|
|
6009
5966
|
var source = arguments[i];
|
|
6010
|
-
for(var key in source)
|
|
6011
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6012
|
-
target[key] = source[key];
|
|
6013
|
-
}
|
|
6014
|
-
}
|
|
5967
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
6015
5968
|
}
|
|
6016
5969
|
return target;
|
|
6017
5970
|
};
|
|
@@ -6076,14 +6029,10 @@ function _set_prototype_of$m(o, p) {
|
|
|
6076
6029
|
}(Fullscreen);
|
|
6077
6030
|
|
|
6078
6031
|
function _extends$k() {
|
|
6079
|
-
_extends$k = Object.assign || function(target) {
|
|
6032
|
+
_extends$k = Object.assign || function assign(target) {
|
|
6080
6033
|
for(var i = 1; i < arguments.length; i++){
|
|
6081
6034
|
var source = arguments[i];
|
|
6082
|
-
for(var key in source)
|
|
6083
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6084
|
-
target[key] = source[key];
|
|
6085
|
-
}
|
|
6086
|
-
}
|
|
6035
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
6087
6036
|
}
|
|
6088
6037
|
return target;
|
|
6089
6038
|
};
|
|
@@ -6146,8 +6095,8 @@ function _set_prototype_of$l(o, p) {
|
|
|
6146
6095
|
* 点击 Control 会触发
|
|
6147
6096
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
6148
6097
|
var _this = this;
|
|
6149
|
-
this.active = true;
|
|
6150
6098
|
var _this_options_type, _this_options_cloudRecUpload;
|
|
6099
|
+
this.active = true;
|
|
6151
6100
|
this.emit(EVENTS.control.capturePicture, {
|
|
6152
6101
|
type: (_this_options_type = this.options.type) != null ? _this_options_type : 'download',
|
|
6153
6102
|
quality: this.options.quality || 0.9,
|
|
@@ -6183,14 +6132,10 @@ function _create_class$4(Constructor, protoProps, staticProps) {
|
|
|
6183
6132
|
return Constructor;
|
|
6184
6133
|
}
|
|
6185
6134
|
function _extends$j() {
|
|
6186
|
-
_extends$j = Object.assign || function(target) {
|
|
6135
|
+
_extends$j = Object.assign || function assign(target) {
|
|
6187
6136
|
for(var i = 1; i < arguments.length; i++){
|
|
6188
6137
|
var source = arguments[i];
|
|
6189
|
-
for(var key in source)
|
|
6190
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6191
|
-
target[key] = source[key];
|
|
6192
|
-
}
|
|
6193
|
-
}
|
|
6138
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
6194
6139
|
}
|
|
6195
6140
|
return target;
|
|
6196
6141
|
};
|
|
@@ -6359,7 +6304,7 @@ function formatTime(seconds, format) {
|
|
|
6359
6304
|
var hours = Math.floor(seconds / 3600);
|
|
6360
6305
|
var minutes = Math.floor(seconds % 3600 / 60);
|
|
6361
6306
|
var secs = seconds % 60;
|
|
6362
|
-
var pad = function(num) {
|
|
6307
|
+
var pad = function pad(num) {
|
|
6363
6308
|
return num.toString().padStart(2, '0');
|
|
6364
6309
|
};
|
|
6365
6310
|
return format.replace('HH', pad(hours)).replace('MM', pad(minutes)).replace('SS', pad(secs));
|
|
@@ -6379,14 +6324,10 @@ function _create_class$3(Constructor, protoProps, staticProps) {
|
|
|
6379
6324
|
return Constructor;
|
|
6380
6325
|
}
|
|
6381
6326
|
function _extends$i() {
|
|
6382
|
-
_extends$i = Object.assign || function(target) {
|
|
6327
|
+
_extends$i = Object.assign || function assign(target) {
|
|
6383
6328
|
for(var i = 1; i < arguments.length; i++){
|
|
6384
6329
|
var source = arguments[i];
|
|
6385
|
-
for(var key in source)
|
|
6386
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6387
|
-
target[key] = source[key];
|
|
6388
|
-
}
|
|
6389
|
-
}
|
|
6330
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
6390
6331
|
}
|
|
6391
6332
|
return target;
|
|
6392
6333
|
};
|
|
@@ -6534,11 +6475,8 @@ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6534
6475
|
reject(error);
|
|
6535
6476
|
return;
|
|
6536
6477
|
}
|
|
6537
|
-
if (info.done)
|
|
6538
|
-
|
|
6539
|
-
} else {
|
|
6540
|
-
Promise.resolve(value).then(_next, _throw);
|
|
6541
|
-
}
|
|
6478
|
+
if (info.done) resolve(value);
|
|
6479
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
6542
6480
|
}
|
|
6543
6481
|
function _async_to_generator$4(fn) {
|
|
6544
6482
|
return function() {
|
|
@@ -6569,14 +6507,10 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
|
6569
6507
|
return Constructor;
|
|
6570
6508
|
}
|
|
6571
6509
|
function _extends$h() {
|
|
6572
|
-
_extends$h = Object.assign || function(target) {
|
|
6510
|
+
_extends$h = Object.assign || function assign(target) {
|
|
6573
6511
|
for(var i = 1; i < arguments.length; i++){
|
|
6574
6512
|
var source = arguments[i];
|
|
6575
|
-
for(var key in source)
|
|
6576
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6577
|
-
target[key] = source[key];
|
|
6578
|
-
}
|
|
6579
|
-
}
|
|
6513
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
6580
6514
|
}
|
|
6581
6515
|
return target;
|
|
6582
6516
|
};
|
|
@@ -6611,9 +6545,17 @@ function _ts_generator$4(thisArg, body) {
|
|
|
6611
6545
|
},
|
|
6612
6546
|
trys: [],
|
|
6613
6547
|
ops: []
|
|
6614
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
6615
|
-
return
|
|
6616
|
-
|
|
6548
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
6549
|
+
return d(g, "next", {
|
|
6550
|
+
value: verb(0)
|
|
6551
|
+
}), d(g, "throw", {
|
|
6552
|
+
value: verb(1)
|
|
6553
|
+
}), d(g, "return", {
|
|
6554
|
+
value: verb(2)
|
|
6555
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
6556
|
+
value: function() {
|
|
6557
|
+
return this;
|
|
6558
|
+
}
|
|
6617
6559
|
}), g;
|
|
6618
6560
|
function verb(n) {
|
|
6619
6561
|
return function(v) {
|
|
@@ -6754,7 +6696,7 @@ function _ts_generator$4(thisArg, body) {
|
|
|
6754
6696
|
/**
|
|
6755
6697
|
* 点击 Control 会触发
|
|
6756
6698
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
6757
|
-
var _this = this, _superprop_get__onControlClick = function() {
|
|
6699
|
+
var _this = this, _superprop_get__onControlClick = function _superprop_get__onControlClick() {
|
|
6758
6700
|
return Control.prototype._onControlClick;
|
|
6759
6701
|
};
|
|
6760
6702
|
return _async_to_generator$4(function() {
|
|
@@ -6817,11 +6759,8 @@ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6817
6759
|
reject(error);
|
|
6818
6760
|
return;
|
|
6819
6761
|
}
|
|
6820
|
-
if (info.done)
|
|
6821
|
-
|
|
6822
|
-
} else {
|
|
6823
|
-
Promise.resolve(value).then(_next, _throw);
|
|
6824
|
-
}
|
|
6762
|
+
if (info.done) resolve(value);
|
|
6763
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
6825
6764
|
}
|
|
6826
6765
|
function _async_to_generator$3(fn) {
|
|
6827
6766
|
return function() {
|
|
@@ -6839,14 +6778,10 @@ function _async_to_generator$3(fn) {
|
|
|
6839
6778
|
};
|
|
6840
6779
|
}
|
|
6841
6780
|
function _extends$g() {
|
|
6842
|
-
_extends$g = Object.assign || function(target) {
|
|
6781
|
+
_extends$g = Object.assign || function assign(target) {
|
|
6843
6782
|
for(var i = 1; i < arguments.length; i++){
|
|
6844
6783
|
var source = arguments[i];
|
|
6845
|
-
for(var key in source)
|
|
6846
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6847
|
-
target[key] = source[key];
|
|
6848
|
-
}
|
|
6849
|
-
}
|
|
6784
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
6850
6785
|
}
|
|
6851
6786
|
return target;
|
|
6852
6787
|
};
|
|
@@ -6881,9 +6816,17 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6881
6816
|
},
|
|
6882
6817
|
trys: [],
|
|
6883
6818
|
ops: []
|
|
6884
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
6885
|
-
return
|
|
6886
|
-
|
|
6819
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
6820
|
+
return d(g, "next", {
|
|
6821
|
+
value: verb(0)
|
|
6822
|
+
}), d(g, "throw", {
|
|
6823
|
+
value: verb(1)
|
|
6824
|
+
}), d(g, "return", {
|
|
6825
|
+
value: verb(2)
|
|
6826
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
6827
|
+
value: function() {
|
|
6828
|
+
return this;
|
|
6829
|
+
}
|
|
6887
6830
|
}), g;
|
|
6888
6831
|
function verb(n) {
|
|
6889
6832
|
return function(v) {
|
|
@@ -7019,7 +6962,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
7019
6962
|
/**
|
|
7020
6963
|
* 点击 Control 会触发
|
|
7021
6964
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
7022
|
-
var _this = this, _superprop_get__onControlClick = function() {
|
|
6965
|
+
var _this = this, _superprop_get__onControlClick = function _superprop_get__onControlClick() {
|
|
7023
6966
|
return Control.prototype._onControlClick;
|
|
7024
6967
|
};
|
|
7025
6968
|
return _async_to_generator$3(function() {
|
|
@@ -7047,11 +6990,8 @@ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
7047
6990
|
reject(error);
|
|
7048
6991
|
return;
|
|
7049
6992
|
}
|
|
7050
|
-
if (info.done)
|
|
7051
|
-
|
|
7052
|
-
} else {
|
|
7053
|
-
Promise.resolve(value).then(_next, _throw);
|
|
7054
|
-
}
|
|
6993
|
+
if (info.done) resolve(value);
|
|
6994
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
7055
6995
|
}
|
|
7056
6996
|
function _async_to_generator$2(fn) {
|
|
7057
6997
|
return function() {
|
|
@@ -7069,14 +7009,10 @@ function _async_to_generator$2(fn) {
|
|
|
7069
7009
|
};
|
|
7070
7010
|
}
|
|
7071
7011
|
function _extends$f() {
|
|
7072
|
-
_extends$f = Object.assign || function(target) {
|
|
7012
|
+
_extends$f = Object.assign || function assign(target) {
|
|
7073
7013
|
for(var i = 1; i < arguments.length; i++){
|
|
7074
7014
|
var source = arguments[i];
|
|
7075
|
-
for(var key in source)
|
|
7076
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7077
|
-
target[key] = source[key];
|
|
7078
|
-
}
|
|
7079
|
-
}
|
|
7015
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
7080
7016
|
}
|
|
7081
7017
|
return target;
|
|
7082
7018
|
};
|
|
@@ -7111,9 +7047,17 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7111
7047
|
},
|
|
7112
7048
|
trys: [],
|
|
7113
7049
|
ops: []
|
|
7114
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
7115
|
-
return
|
|
7116
|
-
|
|
7050
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
7051
|
+
return d(g, "next", {
|
|
7052
|
+
value: verb(0)
|
|
7053
|
+
}), d(g, "throw", {
|
|
7054
|
+
value: verb(1)
|
|
7055
|
+
}), d(g, "return", {
|
|
7056
|
+
value: verb(2)
|
|
7057
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
7058
|
+
value: function() {
|
|
7059
|
+
return this;
|
|
7060
|
+
}
|
|
7117
7061
|
}), g;
|
|
7118
7062
|
function verb(n) {
|
|
7119
7063
|
return function(v) {
|
|
@@ -7250,7 +7194,7 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7250
7194
|
/**
|
|
7251
7195
|
* 点击 Control 会触发
|
|
7252
7196
|
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
7253
|
-
var _this = this, _superprop_get__onControlClick = function() {
|
|
7197
|
+
var _this = this, _superprop_get__onControlClick = function _superprop_get__onControlClick() {
|
|
7254
7198
|
return Control.prototype._onControlClick;
|
|
7255
7199
|
};
|
|
7256
7200
|
return _async_to_generator$2(function() {
|
|
@@ -7271,14 +7215,10 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7271
7215
|
}(Control);
|
|
7272
7216
|
|
|
7273
7217
|
function _extends$e() {
|
|
7274
|
-
_extends$e = Object.assign || function(target) {
|
|
7218
|
+
_extends$e = Object.assign || function assign(target) {
|
|
7275
7219
|
for(var i = 1; i < arguments.length; i++){
|
|
7276
7220
|
var source = arguments[i];
|
|
7277
|
-
for(var key in source)
|
|
7278
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7279
|
-
target[key] = source[key];
|
|
7280
|
-
}
|
|
7281
|
-
}
|
|
7221
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
7282
7222
|
}
|
|
7283
7223
|
return target;
|
|
7284
7224
|
};
|
|
@@ -7366,14 +7306,10 @@ function _set_prototype_of$f(o, p) {
|
|
|
7366
7306
|
}(Control);
|
|
7367
7307
|
|
|
7368
7308
|
function _extends$d() {
|
|
7369
|
-
_extends$d = Object.assign || function(target) {
|
|
7309
|
+
_extends$d = Object.assign || function assign(target) {
|
|
7370
7310
|
for(var i = 1; i < arguments.length; i++){
|
|
7371
7311
|
var source = arguments[i];
|
|
7372
|
-
for(var key in source)
|
|
7373
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7374
|
-
target[key] = source[key];
|
|
7375
|
-
}
|
|
7376
|
-
}
|
|
7312
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
7377
7313
|
}
|
|
7378
7314
|
return target;
|
|
7379
7315
|
};
|
|
@@ -7456,7 +7392,7 @@ function _set_prototype_of$e(o, p) {
|
|
|
7456
7392
|
_proto._initPicker = function _initPicker() {
|
|
7457
7393
|
var _this = this;
|
|
7458
7394
|
this._picker = new Picker(this.$container, {
|
|
7459
|
-
getPopupContainer: function() {
|
|
7395
|
+
getPopupContainer: function getPopupContainer() {
|
|
7460
7396
|
return Utils.isMobile ? _this.__options.rootContainer : _this.$container;
|
|
7461
7397
|
},
|
|
7462
7398
|
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
@@ -7530,14 +7466,10 @@ function _set_prototype_of$e(o, p) {
|
|
|
7530
7466
|
}(Control);
|
|
7531
7467
|
|
|
7532
7468
|
function _extends$c() {
|
|
7533
|
-
_extends$c = Object.assign || function(target) {
|
|
7469
|
+
_extends$c = Object.assign || function assign(target) {
|
|
7534
7470
|
for(var i = 1; i < arguments.length; i++){
|
|
7535
7471
|
var source = arguments[i];
|
|
7536
|
-
for(var key in source)
|
|
7537
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7538
|
-
target[key] = source[key];
|
|
7539
|
-
}
|
|
7540
|
-
}
|
|
7472
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
7541
7473
|
}
|
|
7542
7474
|
return target;
|
|
7543
7475
|
};
|
|
@@ -7590,10 +7522,10 @@ function _set_prototype_of$d(o, p) {
|
|
|
7590
7522
|
showEventFilter: false,
|
|
7591
7523
|
showCardTypeIcon: false,
|
|
7592
7524
|
sections: [],
|
|
7593
|
-
onCardClick: function(section, index, sections) {
|
|
7525
|
+
onCardClick: function onCardClick(section, index, sections) {
|
|
7594
7526
|
_this.emit(EVENTS.control.recListCardClick, section, index, sections);
|
|
7595
7527
|
},
|
|
7596
|
-
onClose: function() {
|
|
7528
|
+
onClose: function onClose() {
|
|
7597
7529
|
var _this__options_onClose, _this__options;
|
|
7598
7530
|
_this._panelOpen = false;
|
|
7599
7531
|
_this.active = false;
|
|
@@ -7682,14 +7614,10 @@ function _set_prototype_of$d(o, p) {
|
|
|
7682
7614
|
}(Control);
|
|
7683
7615
|
|
|
7684
7616
|
function _extends$b() {
|
|
7685
|
-
_extends$b = Object.assign || function(target) {
|
|
7617
|
+
_extends$b = Object.assign || function assign(target) {
|
|
7686
7618
|
for(var i = 1; i < arguments.length; i++){
|
|
7687
7619
|
var source = arguments[i];
|
|
7688
|
-
for(var key in source)
|
|
7689
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7690
|
-
target[key] = source[key];
|
|
7691
|
-
}
|
|
7692
|
-
}
|
|
7620
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
7693
7621
|
}
|
|
7694
7622
|
return target;
|
|
7695
7623
|
};
|
|
@@ -7778,14 +7706,10 @@ function _create_class$1(Constructor, protoProps, staticProps) {
|
|
|
7778
7706
|
return Constructor;
|
|
7779
7707
|
}
|
|
7780
7708
|
function _extends$a() {
|
|
7781
|
-
_extends$a = Object.assign || function(target) {
|
|
7709
|
+
_extends$a = Object.assign || function assign(target) {
|
|
7782
7710
|
for(var i = 1; i < arguments.length; i++){
|
|
7783
7711
|
var source = arguments[i];
|
|
7784
|
-
for(var key in source)
|
|
7785
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7786
|
-
target[key] = source[key];
|
|
7787
|
-
}
|
|
7788
|
-
}
|
|
7712
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
7789
7713
|
}
|
|
7790
7714
|
return target;
|
|
7791
7715
|
};
|
|
@@ -7816,11 +7740,11 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7816
7740
|
label: 'label',
|
|
7817
7741
|
value: 'value'
|
|
7818
7742
|
},
|
|
7819
|
-
renderLabel: function(label) {
|
|
7743
|
+
renderLabel: function renderLabel(label) {
|
|
7820
7744
|
return "<span>" + (label || '') + "</span>";
|
|
7821
7745
|
},
|
|
7822
|
-
onChange: function() {},
|
|
7823
|
-
onOpenChange: function() {}
|
|
7746
|
+
onChange: function onChange() {},
|
|
7747
|
+
onOpenChange: function onOpenChange() {}
|
|
7824
7748
|
};
|
|
7825
7749
|
/**
|
|
7826
7750
|
* 选择器切换 (支持PC/Mobile)
|
|
@@ -7874,6 +7798,7 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7874
7798
|
_inherits$b(Select, Control);
|
|
7875
7799
|
function Select(options) {
|
|
7876
7800
|
var _this;
|
|
7801
|
+
var _ref;
|
|
7877
7802
|
var _this__options_fieldNames, _this__picker_$body;
|
|
7878
7803
|
_this = Control.call(this, _extends$a({
|
|
7879
7804
|
tagName: 'span',
|
|
@@ -7887,11 +7812,10 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7887
7812
|
if (options.value !== undefined || options.value !== null) {
|
|
7888
7813
|
_this._value = options.value + '';
|
|
7889
7814
|
}
|
|
7890
|
-
var
|
|
7891
|
-
var valueKey = (_this__options_fieldNames_value = (_this__options_fieldNames = _this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _this__options_fieldNames_value : 'value';
|
|
7815
|
+
var valueKey = (_ref = (_this__options_fieldNames = _this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _ref : 'value';
|
|
7892
7816
|
_this._picker = new Picker(_this.$container, {
|
|
7893
7817
|
// 由于某些原因, 移动端强制渲染在 body 上
|
|
7894
|
-
getPopupContainer: function() {
|
|
7818
|
+
getPopupContainer: function getPopupContainer() {
|
|
7895
7819
|
return Utils.isMobile ? options.rootContainer : _this.$container;
|
|
7896
7820
|
},
|
|
7897
7821
|
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
@@ -7904,7 +7828,7 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7904
7828
|
],
|
|
7905
7829
|
placement: 'top',
|
|
7906
7830
|
// zIndex: 10000,
|
|
7907
|
-
onOpenChange: function(open) {
|
|
7831
|
+
onOpenChange: function onOpenChange(open) {
|
|
7908
7832
|
var item = _this.list.find(function(item) {
|
|
7909
7833
|
return item[valueKey] + '' === _this.value;
|
|
7910
7834
|
});
|
|
@@ -7928,11 +7852,10 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7928
7852
|
var _this = this;
|
|
7929
7853
|
if (list === void 0) list = [];
|
|
7930
7854
|
if ((list == null ? void 0 : list.length) > 0 && this._picker) {
|
|
7855
|
+
var _ref, _ref1;
|
|
7931
7856
|
var _this__options_fieldNames, _this__options_fieldNames1, _this_locale, _this__picker;
|
|
7932
|
-
var
|
|
7933
|
-
var
|
|
7934
|
-
var _this__options_fieldNames_value;
|
|
7935
|
-
var valueKey = (_this__options_fieldNames_value = (_this__options_fieldNames1 = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames1.value) != null ? _this__options_fieldNames_value : 'value';
|
|
7857
|
+
var labelKey = (_ref = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.label) != null ? _ref : 'label';
|
|
7858
|
+
var valueKey = (_ref1 = (_this__options_fieldNames1 = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames1.value) != null ? _ref1 : 'value';
|
|
7936
7859
|
(_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) {
|
|
7937
7860
|
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 ";
|
|
7938
7861
|
}).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>");
|
|
@@ -7944,12 +7867,12 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7944
7867
|
}
|
|
7945
7868
|
};
|
|
7946
7869
|
_proto._render = function _render(item) {
|
|
7870
|
+
var _ref;
|
|
7947
7871
|
var _this__options_fieldNames;
|
|
7948
7872
|
if (this.list.length === 0) {
|
|
7949
7873
|
return;
|
|
7950
7874
|
}
|
|
7951
|
-
var
|
|
7952
|
-
var labelKey = (_this__options_fieldNames_label = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.label) != null ? _this__options_fieldNames_label : 'label';
|
|
7875
|
+
var labelKey = (_ref = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.label) != null ? _ref : 'label';
|
|
7953
7876
|
if (this.$container.querySelector("." + PREFIX_CLASS + "-select-btn")) {
|
|
7954
7877
|
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);
|
|
7955
7878
|
} else {
|
|
@@ -7965,9 +7888,9 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7965
7888
|
_proto._activeOption = function _activeOption() {
|
|
7966
7889
|
var _this = this;
|
|
7967
7890
|
if (this._picker) {
|
|
7891
|
+
var _ref;
|
|
7968
7892
|
var _this__options_fieldNames, _this__picker_$body, _this__picker_$body1;
|
|
7969
|
-
var
|
|
7970
|
-
var valueKey = (_this__options_fieldNames_value = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _this__options_fieldNames_value : 'value';
|
|
7893
|
+
var valueKey = (_ref = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _ref : 'value';
|
|
7971
7894
|
var $active = (_this__picker_$body = this._picker.$body) == null ? void 0 : _this__picker_$body.querySelector("." + PREFIX_CLASS + "-active");
|
|
7972
7895
|
$active == null ? void 0 : $active.classList.remove(PREFIX_CLASS + '-active');
|
|
7973
7896
|
var $target = (_this__picker_$body1 = this._picker.$body) == null ? void 0 : _this__picker_$body1.querySelector("." + PREFIX_CLASS + '-select-option[data-value="' + this.value + '"]');
|
|
@@ -7981,9 +7904,9 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
7981
7904
|
_proto._onSelectChange = function _onSelectChange() {
|
|
7982
7905
|
var _this = this;
|
|
7983
7906
|
if (this._picker) {
|
|
7907
|
+
var _ref;
|
|
7984
7908
|
var _this__options_fieldNames;
|
|
7985
|
-
var
|
|
7986
|
-
var valueKey = (_this__options_fieldNames_value = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _this__options_fieldNames_value : 'value';
|
|
7909
|
+
var valueKey = (_ref = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _ref : 'value';
|
|
7987
7910
|
this._delegationOption = delegate(this._picker.$body, "." + PREFIX_CLASS + "-select-option", 'click', function(e) {
|
|
7988
7911
|
var target = e.delegateTarget;
|
|
7989
7912
|
e.stopPropagation();
|
|
@@ -8068,20 +7991,14 @@ var SELECT_DEFAULT_OPTIONS = {
|
|
|
8068
7991
|
}(Control);
|
|
8069
7992
|
|
|
8070
7993
|
function _assert_this_initialized$1(self) {
|
|
8071
|
-
if (self === void 0)
|
|
8072
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8073
|
-
}
|
|
7994
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8074
7995
|
return self;
|
|
8075
7996
|
}
|
|
8076
7997
|
function _extends$9() {
|
|
8077
|
-
_extends$9 = Object.assign || function(target) {
|
|
7998
|
+
_extends$9 = Object.assign || function assign(target) {
|
|
8078
7999
|
for(var i = 1; i < arguments.length; i++){
|
|
8079
8000
|
var source = arguments[i];
|
|
8080
|
-
for(var key in source)
|
|
8081
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8082
|
-
target[key] = source[key];
|
|
8083
|
-
}
|
|
8084
|
-
}
|
|
8001
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
8085
8002
|
}
|
|
8086
8003
|
return target;
|
|
8087
8004
|
};
|
|
@@ -8171,7 +8088,7 @@ function __filter(list, locale) {
|
|
|
8171
8088
|
title: options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.BTN_HD,
|
|
8172
8089
|
controlType: 'button',
|
|
8173
8090
|
classNameSuffix: 'definition',
|
|
8174
|
-
renderLabel: function(label, item, list) {
|
|
8091
|
+
renderLabel: function renderLabel(label, item, list) {
|
|
8175
8092
|
var _list_;
|
|
8176
8093
|
if ((item == null ? void 0 : item.level) === 'auto') {
|
|
8177
8094
|
var _options_locales_options_language;
|
|
@@ -8183,7 +8100,7 @@ function __filter(list, locale) {
|
|
|
8183
8100
|
// 如果 label 不存在,则不显示label,直接显示list的第一个label, 一般自定义清晰度列表可能会出现
|
|
8184
8101
|
return "<span>" + (label || ((_list_ = list[0]) == null ? void 0 : _list_.name) || '') + "</span>";
|
|
8185
8102
|
},
|
|
8186
|
-
onChange: function(value, item) {
|
|
8103
|
+
onChange: function onChange(value, item) {
|
|
8187
8104
|
var _options_onChange;
|
|
8188
8105
|
options == null ? void 0 : (_options_onChange = options.onChange) == null ? void 0 : _options_onChange.call(options, value, item);
|
|
8189
8106
|
if (value === 'auto') {
|
|
@@ -8193,7 +8110,7 @@ function __filter(list, locale) {
|
|
|
8193
8110
|
_assert_this_initialized$1(_this).emit(EVENTS.control.definitionChange, value, item);
|
|
8194
8111
|
}
|
|
8195
8112
|
},
|
|
8196
|
-
onOpenChange: function(open, value, item) {
|
|
8113
|
+
onOpenChange: function onOpenChange(open, value, item) {
|
|
8197
8114
|
var _options_onOpenChange;
|
|
8198
8115
|
options == null ? void 0 : (_options_onOpenChange = options.onOpenChange) == null ? void 0 : _options_onOpenChange.call(options, open, value, item);
|
|
8199
8116
|
_assert_this_initialized$1(_this).emit(EVENTS.control.definitionPanelOpenChange, open, value, item);
|
|
@@ -8229,20 +8146,14 @@ function __filter(list, locale) {
|
|
|
8229
8146
|
}(Select);
|
|
8230
8147
|
|
|
8231
8148
|
function _assert_this_initialized(self) {
|
|
8232
|
-
if (self === void 0)
|
|
8233
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8234
|
-
}
|
|
8149
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8235
8150
|
return self;
|
|
8236
8151
|
}
|
|
8237
8152
|
function _extends$8() {
|
|
8238
|
-
_extends$8 = Object.assign || function(target) {
|
|
8153
|
+
_extends$8 = Object.assign || function assign(target) {
|
|
8239
8154
|
for(var i = 1; i < arguments.length; i++){
|
|
8240
8155
|
var source = arguments[i];
|
|
8241
|
-
for(var key in source)
|
|
8242
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8243
|
-
target[key] = source[key];
|
|
8244
|
-
}
|
|
8245
|
-
}
|
|
8156
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
8246
8157
|
}
|
|
8247
8158
|
return target;
|
|
8248
8159
|
};
|
|
@@ -8309,13 +8220,13 @@ var SPEED_DEFAULT_OPTIONS = {
|
|
|
8309
8220
|
classNameSuffix: 'speed',
|
|
8310
8221
|
controlType: 'button',
|
|
8311
8222
|
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,
|
|
8312
|
-
onChange: function(value, item) {
|
|
8223
|
+
onChange: function onChange(value, item) {
|
|
8313
8224
|
var _options_onChange;
|
|
8314
8225
|
value = +value;
|
|
8315
8226
|
options == null ? void 0 : (_options_onChange = options.onChange) == null ? void 0 : _options_onChange.call(options, value, item);
|
|
8316
8227
|
_assert_this_initialized(_this).emit(EVENTS.control.speedChange, value, item);
|
|
8317
8228
|
},
|
|
8318
|
-
onOpenChange: function(open, value, item) {
|
|
8229
|
+
onOpenChange: function onOpenChange(open, value, item) {
|
|
8319
8230
|
var _options_onOpenChange;
|
|
8320
8231
|
value = +value;
|
|
8321
8232
|
options == null ? void 0 : (_options_onOpenChange = options.onOpenChange) == null ? void 0 : _options_onOpenChange.call(options, open, value, item);
|
|
@@ -8365,14 +8276,10 @@ var SPEED_DEFAULT_OPTIONS = {
|
|
|
8365
8276
|
}(Select);
|
|
8366
8277
|
|
|
8367
8278
|
function _extends$7() {
|
|
8368
|
-
_extends$7 = Object.assign || function(target) {
|
|
8279
|
+
_extends$7 = Object.assign || function assign(target) {
|
|
8369
8280
|
for(var i = 1; i < arguments.length; i++){
|
|
8370
8281
|
var source = arguments[i];
|
|
8371
|
-
for(var key in source)
|
|
8372
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8373
|
-
target[key] = source[key];
|
|
8374
|
-
}
|
|
8375
|
-
}
|
|
8282
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
8376
8283
|
}
|
|
8377
8284
|
return target;
|
|
8378
8285
|
};
|
|
@@ -8449,16 +8356,16 @@ function _set_prototype_of$8(o, p) {
|
|
|
8449
8356
|
current: utilsTools.DateTime.toDate(this._value),
|
|
8450
8357
|
placement: 'tr',
|
|
8451
8358
|
triggerClose: true,
|
|
8452
|
-
disabledDate: function(date) {
|
|
8359
|
+
disabledDate: function disabledDate(date) {
|
|
8453
8360
|
return date.getTime() > (_this.options.maxDate || new Date()).getTime();
|
|
8454
8361
|
}
|
|
8455
8362
|
}, this.options || {}, {
|
|
8456
8363
|
// 不支持自定义
|
|
8457
|
-
getPopupContainer: function() {
|
|
8364
|
+
getPopupContainer: function getPopupContainer() {
|
|
8458
8365
|
return _this.$container;
|
|
8459
8366
|
},
|
|
8460
8367
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8461
|
-
onOk: function(date, _mode) {
|
|
8368
|
+
onOk: function onOk(date, _mode) {
|
|
8462
8369
|
if (date && _this._value !== utilsTools.DateTime.format(date, 'YYYY-MM-DD') && isMobile1) {
|
|
8463
8370
|
_this._value = utilsTools.DateTime.format(date, 'YYYY-MM-DD');
|
|
8464
8371
|
_this.options.onOk == null ? void 0 : _this.options.onOk.call(_this.options, date);
|
|
@@ -8468,14 +8375,14 @@ function _set_prototype_of$8(o, p) {
|
|
|
8468
8375
|
}
|
|
8469
8376
|
}
|
|
8470
8377
|
},
|
|
8471
|
-
onChange: function(date, mode) {
|
|
8378
|
+
onChange: function onChange(date, mode) {
|
|
8472
8379
|
if (date && _this._value !== utilsTools.DateTime.format(date, 'YYYY-MM-DD') && !isMobile1 && mode === 'date') {
|
|
8473
8380
|
_this._value = utilsTools.DateTime.format(date, 'YYYY-MM-DD');
|
|
8474
8381
|
_this.options.onChange == null ? void 0 : _this.options.onChange.call(_this.options, date);
|
|
8475
8382
|
_this.emit(EVENTS.control.dateChange, date);
|
|
8476
8383
|
}
|
|
8477
8384
|
},
|
|
8478
|
-
onOpenChange: function(open) {
|
|
8385
|
+
onOpenChange: function onOpenChange(open) {
|
|
8479
8386
|
_this.options.onPanelChange == null ? void 0 : _this.options.onPanelChange.call(_this.options, open, _this.datePicker.current);
|
|
8480
8387
|
_this.emit(EVENTS.control.datePanelOpenChange, open, _this.datePicker.current);
|
|
8481
8388
|
}
|
|
@@ -8525,14 +8432,10 @@ function _set_prototype_of$8(o, p) {
|
|
|
8525
8432
|
}(Control);
|
|
8526
8433
|
|
|
8527
8434
|
function _extends$6() {
|
|
8528
|
-
_extends$6 = Object.assign || function(target) {
|
|
8435
|
+
_extends$6 = Object.assign || function assign(target) {
|
|
8529
8436
|
for(var i = 1; i < arguments.length; i++){
|
|
8530
8437
|
var source = arguments[i];
|
|
8531
|
-
for(var key in source)
|
|
8532
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8533
|
-
target[key] = source[key];
|
|
8534
|
-
}
|
|
8535
|
-
}
|
|
8438
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
8536
8439
|
}
|
|
8537
8440
|
return target;
|
|
8538
8441
|
};
|
|
@@ -8606,17 +8509,17 @@ function _set_prototype_of$7(o, p) {
|
|
|
8606
8509
|
triggerClose: true
|
|
8607
8510
|
}, this.options || {}, {
|
|
8608
8511
|
// 不支持自定义
|
|
8609
|
-
getPopupContainer: function() {
|
|
8512
|
+
getPopupContainer: function getPopupContainer() {
|
|
8610
8513
|
return _this.$container;
|
|
8611
8514
|
},
|
|
8612
|
-
onChange: function(time, _times) {
|
|
8515
|
+
onChange: function onChange(time, _times) {
|
|
8613
8516
|
if (time && _this._value !== time) {
|
|
8614
8517
|
_this._value = time;
|
|
8615
8518
|
_this.options.onChange == null ? void 0 : _this.options.onChange.call(_this.options, time, _times);
|
|
8616
8519
|
_this.emit(EVENTS.control.timeChange, time);
|
|
8617
8520
|
}
|
|
8618
8521
|
},
|
|
8619
|
-
onOpenChange: function(open) {
|
|
8522
|
+
onOpenChange: function onOpenChange(open) {
|
|
8620
8523
|
_this.options.onPanelChange == null ? void 0 : _this.options.onPanelChange.call(_this.options, open, _this.timePicker.current);
|
|
8621
8524
|
_this.emit(EVENTS.control.timePanelOpenChange, open, _this.timePicker.current);
|
|
8622
8525
|
}
|
|
@@ -8664,14 +8567,10 @@ function _set_prototype_of$7(o, p) {
|
|
|
8664
8567
|
}(Control);
|
|
8665
8568
|
|
|
8666
8569
|
function _extends$5() {
|
|
8667
|
-
_extends$5 = Object.assign || function(target) {
|
|
8570
|
+
_extends$5 = Object.assign || function assign(target) {
|
|
8668
8571
|
for(var i = 1; i < arguments.length; i++){
|
|
8669
8572
|
var source = arguments[i];
|
|
8670
|
-
for(var key in source)
|
|
8671
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8672
|
-
target[key] = source[key];
|
|
8673
|
-
}
|
|
8674
|
-
}
|
|
8573
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
8675
8574
|
}
|
|
8676
8575
|
return target;
|
|
8677
8576
|
};
|
|
@@ -8740,8 +8639,8 @@ function _set_prototype_of$6(o, p) {
|
|
|
8740
8639
|
var _proto = TimeLineControl.prototype;
|
|
8741
8640
|
_proto._render = function _render() {
|
|
8742
8641
|
var _this = this;
|
|
8743
|
-
var _this_timeLineUtil_updateTimeSections, _this_timeLineUtil;
|
|
8744
8642
|
var _this__options_showTimeWidthBtn, _this__options_showCoverFold;
|
|
8643
|
+
var _this_timeLineUtil_updateTimeSections, _this_timeLineUtil;
|
|
8745
8644
|
var _timeLineOptions = _extends$5({
|
|
8746
8645
|
language: this._options.language || 'zh',
|
|
8747
8646
|
coverQuery: this._options.coverQuery || '',
|
|
@@ -8750,19 +8649,19 @@ function _set_prototype_of$6(o, p) {
|
|
|
8750
8649
|
hoverTipPlacement: 'top'
|
|
8751
8650
|
}, this._options || {}, {
|
|
8752
8651
|
showSectionIcon: false,
|
|
8753
|
-
onClickSeek: function(date) {
|
|
8652
|
+
onClickSeek: function onClickSeek(date) {
|
|
8754
8653
|
if (date == null ? void 0 : date.getTime()) {
|
|
8755
8654
|
_this._options.onClickSeek == null ? void 0 : _this._options.onClickSeek.call(_this._options, date);
|
|
8756
8655
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8757
8656
|
}
|
|
8758
8657
|
},
|
|
8759
|
-
onChange: function(date) {
|
|
8658
|
+
onChange: function onChange(date) {
|
|
8760
8659
|
if (_this._currentTime !== (date == null ? void 0 : date.getTime())) {
|
|
8761
8660
|
_this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, date);
|
|
8762
8661
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8763
8662
|
}
|
|
8764
8663
|
},
|
|
8765
|
-
onDragEnd: function(date, isOver) {
|
|
8664
|
+
onDragEnd: function onDragEnd(date, isOver) {
|
|
8766
8665
|
var _this__options_props_playbackRange, _this__options_props, _this__options;
|
|
8767
8666
|
_this._options.onDragEnd == null ? void 0 : _this._options.onDragEnd.call(_this._options, date, isOver);
|
|
8768
8667
|
// 松手时鼠标已移出时间轴容器(isOver 为 false):控件把这种拖动视为取消,
|
|
@@ -8781,11 +8680,11 @@ function _set_prototype_of$6(o, p) {
|
|
|
8781
8680
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8782
8681
|
}
|
|
8783
8682
|
},
|
|
8784
|
-
onPickerOpenChange: function(open) {
|
|
8683
|
+
onPickerOpenChange: function onPickerOpenChange(open) {
|
|
8785
8684
|
_this.emit(EVENTS.control.timeLinePanelOpenChange, open);
|
|
8786
8685
|
},
|
|
8787
8686
|
// 2025-10-27 仅移动端支持
|
|
8788
|
-
onPickerSelect: function(item) {
|
|
8687
|
+
onPickerSelect: function onPickerSelect(item) {
|
|
8789
8688
|
var date = null;
|
|
8790
8689
|
try {
|
|
8791
8690
|
if ((item.startTime + '').length === 10) date = new Date(item.startTime * 1000);
|
|
@@ -8796,7 +8695,7 @@ function _set_prototype_of$6(o, p) {
|
|
|
8796
8695
|
} catch (error) {
|
|
8797
8696
|
}
|
|
8798
8697
|
},
|
|
8799
|
-
onSectionIconClick: function(result) {
|
|
8698
|
+
onSectionIconClick: function onSectionIconClick(result) {
|
|
8800
8699
|
_this.emit('TimeLine.onSectionIconClick', result);
|
|
8801
8700
|
}
|
|
8802
8701
|
});
|
|
@@ -8867,14 +8766,10 @@ function _set_prototype_of$6(o, p) {
|
|
|
8867
8766
|
}(Control);
|
|
8868
8767
|
|
|
8869
8768
|
function _extends$4() {
|
|
8870
|
-
_extends$4 = Object.assign || function(target) {
|
|
8769
|
+
_extends$4 = Object.assign || function assign(target) {
|
|
8871
8770
|
for(var i = 1; i < arguments.length; i++){
|
|
8872
8771
|
var source = arguments[i];
|
|
8873
|
-
for(var key in source)
|
|
8874
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8875
|
-
target[key] = source[key];
|
|
8876
|
-
}
|
|
8877
|
-
}
|
|
8772
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
8878
8773
|
}
|
|
8879
8774
|
return target;
|
|
8880
8775
|
};
|
|
@@ -8919,8 +8814,8 @@ function _set_prototype_of$5(o, p) {
|
|
|
8919
8814
|
* @param seg 录像片段
|
|
8920
8815
|
* @param which 取起点还是终点
|
|
8921
8816
|
*/ function segMs(seg, which) {
|
|
8922
|
-
var
|
|
8923
|
-
var value = which === 'start' ? (
|
|
8817
|
+
var _ref, _ref1;
|
|
8818
|
+
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;
|
|
8924
8819
|
if (value === undefined || value === null || value === '') return NaN;
|
|
8925
8820
|
if (typeof value === 'number') return value < 1e12 ? value * 1000 : value;
|
|
8926
8821
|
return utilsTools.DateTime.toDate(value).getTime();
|
|
@@ -8981,17 +8876,17 @@ function _set_prototype_of$5(o, p) {
|
|
|
8981
8876
|
_proto._render = function _render() {
|
|
8982
8877
|
var _this = this;
|
|
8983
8878
|
this._progress = new SegmentProgress(this.$container, {
|
|
8984
|
-
onChange: function(date) {
|
|
8879
|
+
onChange: function onChange(date) {
|
|
8985
8880
|
// 用户主动定位即视为重新开始播放,立即解除结束静默,否则静默期内的回写被丢弃、
|
|
8986
8881
|
// 进度条会停住不动
|
|
8987
8882
|
_this._silenceUntil = 0;
|
|
8988
8883
|
_this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, date);
|
|
8989
8884
|
_this.emit(EVENTS.control.timeLineChange, date);
|
|
8990
8885
|
},
|
|
8991
|
-
onDragStart: function() {
|
|
8886
|
+
onDragStart: function onDragStart() {
|
|
8992
8887
|
_this._isDragging = true;
|
|
8993
8888
|
},
|
|
8994
|
-
onDragEnd: function() {
|
|
8889
|
+
onDragEnd: function onDragEnd() {
|
|
8995
8890
|
_this._isDragging = false;
|
|
8996
8891
|
}
|
|
8997
8892
|
});
|
|
@@ -9084,14 +8979,10 @@ function _set_prototype_of$5(o, p) {
|
|
|
9084
8979
|
}(Control);
|
|
9085
8980
|
|
|
9086
8981
|
function _extends$3() {
|
|
9087
|
-
_extends$3 = Object.assign || function(target) {
|
|
8982
|
+
_extends$3 = Object.assign || function assign(target) {
|
|
9088
8983
|
for(var i = 1; i < arguments.length; i++){
|
|
9089
8984
|
var source = arguments[i];
|
|
9090
|
-
for(var key in source)
|
|
9091
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9092
|
-
target[key] = source[key];
|
|
9093
|
-
}
|
|
9094
|
-
}
|
|
8985
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
9095
8986
|
}
|
|
9096
8987
|
return target;
|
|
9097
8988
|
};
|
|
@@ -9181,7 +9072,7 @@ var Controls = {
|
|
|
9181
9072
|
segmentProgress: SegmentProgressControl
|
|
9182
9073
|
};
|
|
9183
9074
|
|
|
9184
|
-
|
|
9075
|
+
function _inherits$3(subClass, superClass) {
|
|
9185
9076
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
9186
9077
|
throw new TypeError("Super expression must either be null or a function");
|
|
9187
9078
|
}
|
|
@@ -9346,14 +9237,10 @@ function _set_prototype_of$2(o, p) {
|
|
|
9346
9237
|
}(EventEmitter);
|
|
9347
9238
|
|
|
9348
9239
|
function _extends$2() {
|
|
9349
|
-
_extends$2 = Object.assign || function(target) {
|
|
9240
|
+
_extends$2 = Object.assign || function assign(target) {
|
|
9350
9241
|
for(var i = 1; i < arguments.length; i++){
|
|
9351
9242
|
var source = arguments[i];
|
|
9352
|
-
for(var key in source)
|
|
9353
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9354
|
-
target[key] = source[key];
|
|
9355
|
-
}
|
|
9356
|
-
}
|
|
9243
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
9357
9244
|
}
|
|
9358
9245
|
return target;
|
|
9359
9246
|
};
|
|
@@ -9485,7 +9372,7 @@ var PAUSE_DEFAULT_OPTIONS = {};
|
|
|
9485
9372
|
return Pause;
|
|
9486
9373
|
}(Control);
|
|
9487
9374
|
|
|
9488
|
-
var _unmountedControls = function(theme) {
|
|
9375
|
+
var _unmountedControls = function _unmountedControls(theme) {
|
|
9489
9376
|
if (!theme.controls) {
|
|
9490
9377
|
return;
|
|
9491
9378
|
}
|
|
@@ -9572,11 +9459,8 @@ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
9572
9459
|
reject(error);
|
|
9573
9460
|
return;
|
|
9574
9461
|
}
|
|
9575
|
-
if (info.done)
|
|
9576
|
-
|
|
9577
|
-
} else {
|
|
9578
|
-
Promise.resolve(value).then(_next, _throw);
|
|
9579
|
-
}
|
|
9462
|
+
if (info.done) resolve(value);
|
|
9463
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
9580
9464
|
}
|
|
9581
9465
|
function _async_to_generator$1(fn) {
|
|
9582
9466
|
return function() {
|
|
@@ -9593,28 +9477,6 @@ function _async_to_generator$1(fn) {
|
|
|
9593
9477
|
});
|
|
9594
9478
|
};
|
|
9595
9479
|
}
|
|
9596
|
-
function _extends$1() {
|
|
9597
|
-
_extends$1 = Object.assign || function(target) {
|
|
9598
|
-
for(var i = 1; i < arguments.length; i++){
|
|
9599
|
-
var source = arguments[i];
|
|
9600
|
-
for(var key in source){
|
|
9601
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9602
|
-
target[key] = source[key];
|
|
9603
|
-
}
|
|
9604
|
-
}
|
|
9605
|
-
}
|
|
9606
|
-
return target;
|
|
9607
|
-
};
|
|
9608
|
-
return _extends$1.apply(this, arguments);
|
|
9609
|
-
}
|
|
9610
|
-
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
9611
|
-
if (!o) return;
|
|
9612
|
-
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
9613
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9614
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9615
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9616
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
9617
|
-
}
|
|
9618
9480
|
function _create_for_of_iterator_helper_loose$1(o, allowArrayLike) {
|
|
9619
9481
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
9620
9482
|
if (it) return (it = it.call(o)).next.bind(it);
|
|
@@ -9622,18 +9484,26 @@ function _create_for_of_iterator_helper_loose$1(o, allowArrayLike) {
|
|
|
9622
9484
|
if (it) o = it;
|
|
9623
9485
|
var i = 0;
|
|
9624
9486
|
return function() {
|
|
9625
|
-
if (i >= o.length) {
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
};
|
|
9629
|
-
}
|
|
9487
|
+
if (i >= o.length) return {
|
|
9488
|
+
done: true
|
|
9489
|
+
};
|
|
9630
9490
|
return {
|
|
9631
9491
|
done: false,
|
|
9632
9492
|
value: o[i++]
|
|
9633
9493
|
};
|
|
9634
9494
|
};
|
|
9635
9495
|
}
|
|
9636
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance
|
|
9496
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9497
|
+
}
|
|
9498
|
+
function _extends$1() {
|
|
9499
|
+
_extends$1 = Object.assign || function assign(target) {
|
|
9500
|
+
for(var i = 1; i < arguments.length; i++){
|
|
9501
|
+
var source = arguments[i];
|
|
9502
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
9503
|
+
}
|
|
9504
|
+
return target;
|
|
9505
|
+
};
|
|
9506
|
+
return _extends$1.apply(this, arguments);
|
|
9637
9507
|
}
|
|
9638
9508
|
function _ts_generator$1(thisArg, body) {
|
|
9639
9509
|
var f, y, t, _ = {
|
|
@@ -9644,9 +9514,17 @@ function _ts_generator$1(thisArg, body) {
|
|
|
9644
9514
|
},
|
|
9645
9515
|
trys: [],
|
|
9646
9516
|
ops: []
|
|
9647
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
9648
|
-
return
|
|
9649
|
-
|
|
9517
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
9518
|
+
return d(g, "next", {
|
|
9519
|
+
value: verb(0)
|
|
9520
|
+
}), d(g, "throw", {
|
|
9521
|
+
value: verb(1)
|
|
9522
|
+
}), d(g, "return", {
|
|
9523
|
+
value: verb(2)
|
|
9524
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
9525
|
+
value: function() {
|
|
9526
|
+
return this;
|
|
9527
|
+
}
|
|
9650
9528
|
}), g;
|
|
9651
9529
|
function verb(n) {
|
|
9652
9530
|
return function(v) {
|
|
@@ -9726,6 +9604,14 @@ function _ts_generator$1(thisArg, body) {
|
|
|
9726
9604
|
};
|
|
9727
9605
|
}
|
|
9728
9606
|
}
|
|
9607
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
9608
|
+
if (!o) return;
|
|
9609
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
9610
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9611
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9612
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9613
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
9614
|
+
}
|
|
9729
9615
|
// 需要权限的控件
|
|
9730
9616
|
var AUTH_KEY = [
|
|
9731
9617
|
'ptz',
|
|
@@ -9764,7 +9650,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9764
9650
|
// eslint-disable-next-line @typescript-eslint/dot-notation, new-cap, @typescript-eslint/no-unsafe-argument
|
|
9765
9651
|
theme.controls["deviceControl"] = new Controls["device"](_extends$1({
|
|
9766
9652
|
rootContainer: theme.$container,
|
|
9767
|
-
getPopupContainer: function() {
|
|
9653
|
+
getPopupContainer: function getPopupContainer() {
|
|
9768
9654
|
return $container;
|
|
9769
9655
|
},
|
|
9770
9656
|
recType: theme.recType,
|
|
@@ -9787,7 +9673,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9787
9673
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9788
9674
|
theme.controls["" + item.iconId + "Control"] = new Controls[item.iconId](_extends$1({
|
|
9789
9675
|
rootContainer: theme.$container,
|
|
9790
|
-
getPopupContainer: function() {
|
|
9676
|
+
getPopupContainer: function getPopupContainer() {
|
|
9791
9677
|
return $container;
|
|
9792
9678
|
},
|
|
9793
9679
|
language: theme.options.language || "zh",
|
|
@@ -9814,7 +9700,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9814
9700
|
}
|
|
9815
9701
|
function _renderTheme(theme, data) {
|
|
9816
9702
|
return _async_to_generator$1(function() {
|
|
9817
|
-
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_urlInfo, _theme_playbackRange, _theme_playbackRange1, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1,
|
|
9703
|
+
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;
|
|
9818
9704
|
return _ts_generator$1(this, function(_state) {
|
|
9819
9705
|
switch(_state.label){
|
|
9820
9706
|
case 0:
|
|
@@ -9840,7 +9726,7 @@ function _renderTheme(theme, data) {
|
|
|
9840
9726
|
language: theme.options.language,
|
|
9841
9727
|
locales: theme.i18n.translations
|
|
9842
9728
|
}, theme.options.loadingOptions || {}, {
|
|
9843
|
-
getPopupContainer: function() {
|
|
9729
|
+
getPopupContainer: function getPopupContainer() {
|
|
9844
9730
|
return theme.$container;
|
|
9845
9731
|
}
|
|
9846
9732
|
}));
|
|
@@ -9850,7 +9736,7 @@ function _renderTheme(theme, data) {
|
|
|
9850
9736
|
language: theme.options.language,
|
|
9851
9737
|
locales: theme.i18n.translations
|
|
9852
9738
|
}, theme.options.pauseOptions || {}, {
|
|
9853
|
-
getPopupContainer: function() {
|
|
9739
|
+
getPopupContainer: function getPopupContainer() {
|
|
9854
9740
|
return theme.contentControl.$wrapper;
|
|
9855
9741
|
}
|
|
9856
9742
|
}));
|
|
@@ -9862,14 +9748,14 @@ function _renderTheme(theme, data) {
|
|
|
9862
9748
|
theme.messageControl = new Message(_extends$1({
|
|
9863
9749
|
rootContainer: theme.$container
|
|
9864
9750
|
}, theme.options.messageOptions || {}, {
|
|
9865
|
-
getPopupContainer: function() {
|
|
9751
|
+
getPopupContainer: function getPopupContainer() {
|
|
9866
9752
|
return theme.contentControl.$wrapper;
|
|
9867
9753
|
}
|
|
9868
9754
|
}));
|
|
9869
9755
|
}
|
|
9870
9756
|
if (theme.options.posterOptions !== null) {
|
|
9871
9757
|
theme.posterControl = new Poster(_extends$1({}, theme.options.posterOptions || {}, {
|
|
9872
|
-
getPopupContainer: function() {
|
|
9758
|
+
getPopupContainer: function getPopupContainer() {
|
|
9873
9759
|
return theme.contentControl.$video;
|
|
9874
9760
|
}
|
|
9875
9761
|
}));
|
|
@@ -9899,7 +9785,7 @@ function _renderTheme(theme, data) {
|
|
|
9899
9785
|
}
|
|
9900
9786
|
if (filterThemeData.header) {
|
|
9901
9787
|
theme._header = new Header({
|
|
9902
|
-
getPopupContainer: function() {
|
|
9788
|
+
getPopupContainer: function getPopupContainer() {
|
|
9903
9789
|
return theme.$container;
|
|
9904
9790
|
},
|
|
9905
9791
|
color: filterThemeData.header.color,
|
|
@@ -9914,7 +9800,7 @@ function _renderTheme(theme, data) {
|
|
|
9914
9800
|
if (filterThemeData.footer) {
|
|
9915
9801
|
// prettier-ignore
|
|
9916
9802
|
theme._footer = new Footer({
|
|
9917
|
-
getPopupContainer: function() {
|
|
9803
|
+
getPopupContainer: function getPopupContainer() {
|
|
9918
9804
|
return theme.$container;
|
|
9919
9805
|
},
|
|
9920
9806
|
color: filterThemeData.footer.color,
|
|
@@ -9960,7 +9846,7 @@ function _renderTheme(theme, data) {
|
|
|
9960
9846
|
_renderControls(theme, theme._footer.$left, leftBtns1, props);
|
|
9961
9847
|
_renderControls(theme, theme._footer.$right, rightBtns1, props);
|
|
9962
9848
|
}
|
|
9963
|
-
list = [].concat(((_filterThemeData_header = filterThemeData.header) == null ? void 0 : _filterThemeData_header.btnList) || [], (
|
|
9849
|
+
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 : []);
|
|
9964
9850
|
// FIXME: 这个逻辑实际上是有问题的
|
|
9965
9851
|
_needTimeLine = list.some(function(item) {
|
|
9966
9852
|
return REC_GROUP.includes(item.iconId) || item.iconId === 'recDropdown';
|
|
@@ -10007,7 +9893,7 @@ function _renderTheme(theme, data) {
|
|
|
10007
9893
|
}
|
|
10008
9894
|
// 回放类型切换正常渲染,用户点击后由 SDK 层在 recDropdownChange 事件中自行处理
|
|
10009
9895
|
if (theme.options.recOptions !== null && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions4.controls.includes('rec')) && _needTimeLine) {
|
|
10010
|
-
[].concat(((_filterThemeData_header1 = filterThemeData.header) == null ? void 0 : _filterThemeData_header1.btnList) || [], (
|
|
9896
|
+
[].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) {
|
|
10011
9897
|
var _theme__mobileExtend;
|
|
10012
9898
|
if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
|
|
10013
9899
|
});
|
|
@@ -10017,7 +9903,7 @@ function _renderTheme(theme, data) {
|
|
|
10017
9903
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
10018
9904
|
theme.controls['alarmMessageControl'] = new Controls['alarmMessage'](_extends$1({
|
|
10019
9905
|
rootContainer: theme.$container,
|
|
10020
|
-
getPopupContainer: function() {
|
|
9906
|
+
getPopupContainer: function getPopupContainer() {
|
|
10021
9907
|
var _theme__mobileExtend;
|
|
10022
9908
|
return (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight;
|
|
10023
9909
|
},
|
|
@@ -10051,33 +9937,33 @@ function _renderTheme(theme, data) {
|
|
|
10051
9937
|
});
|
|
10052
9938
|
})();
|
|
10053
9939
|
}
|
|
10054
|
-
var _renderTimeLine = function(theme, container, props) {
|
|
9940
|
+
var _renderTimeLine = function _renderTimeLine(theme, container, props) {
|
|
10055
9941
|
if (props === void 0) props = {};
|
|
10056
9942
|
if (!theme.controls.timeLineControl && theme.options.timeLineOptions !== null) {
|
|
9943
|
+
var _ref;
|
|
10057
9944
|
var _theme_urlInfo, _theme_urlInfo1, _theme_options, _theme_options1, _this, _theme_options2;
|
|
10058
|
-
var _showSectionIcon;
|
|
10059
9945
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
10060
9946
|
theme.controls.timeLineControl = new Controls['timeLine'](_extends$1({
|
|
10061
|
-
getPopupContainer: function() {
|
|
9947
|
+
getPopupContainer: function getPopupContainer() {
|
|
10062
9948
|
return container;
|
|
10063
9949
|
},
|
|
10064
9950
|
language: theme.options.language,
|
|
10065
9951
|
locales: theme.i18n.translations,
|
|
10066
9952
|
coverQuery: ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.validateCode) ? "decodekey=" + ((_theme_urlInfo1 = theme.urlInfo) == null ? void 0 : _theme_urlInfo1.validateCode) : ''
|
|
10067
9953
|
}, ((_theme_options = theme.options) == null ? void 0 : _theme_options["timeLineOptions"]) || {}, {
|
|
10068
|
-
showSectionIcon: ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["recListOptions"]) !== null ? (
|
|
9954
|
+
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,
|
|
10069
9955
|
props: props
|
|
10070
9956
|
}));
|
|
10071
9957
|
}
|
|
10072
9958
|
};
|
|
10073
|
-
var _renderSegmentProgress = function(theme, container, props) {
|
|
9959
|
+
var _renderSegmentProgress = function _renderSegmentProgress(theme, container, props) {
|
|
10074
9960
|
if (props === void 0) props = {};
|
|
10075
9961
|
if (!theme.controls.segmentProgressControl && theme.options.segmentProgressOptions !== null) {
|
|
10076
9962
|
var _theme_options;
|
|
10077
9963
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
10078
9964
|
theme.controls.segmentProgressControl = new Controls['segmentProgress'](_extends$1({
|
|
10079
9965
|
rootContainer: theme.$container,
|
|
10080
|
-
getPopupContainer: function() {
|
|
9966
|
+
getPopupContainer: function getPopupContainer() {
|
|
10081
9967
|
return container;
|
|
10082
9968
|
},
|
|
10083
9969
|
language: theme.options.language,
|
|
@@ -10087,13 +9973,13 @@ var _renderSegmentProgress = function(theme, container, props) {
|
|
|
10087
9973
|
}));
|
|
10088
9974
|
}
|
|
10089
9975
|
};
|
|
10090
|
-
var _renderDatePicker = function(theme, container, props) {
|
|
9976
|
+
var _renderDatePicker = function _renderDatePicker(theme, container, props) {
|
|
10091
9977
|
if (props === void 0) props = {};
|
|
10092
9978
|
if (!theme.controls.dateControl && theme.options.dateOptions !== null) {
|
|
10093
9979
|
var _theme_options;
|
|
10094
9980
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
10095
9981
|
theme.controls.dateControl = new Controls['date'](_extends$1({
|
|
10096
|
-
getPopupContainer: function() {
|
|
9982
|
+
getPopupContainer: function getPopupContainer() {
|
|
10097
9983
|
return container;
|
|
10098
9984
|
},
|
|
10099
9985
|
language: theme.options.language,
|
|
@@ -10103,13 +9989,13 @@ var _renderDatePicker = function(theme, container, props) {
|
|
|
10103
9989
|
}));
|
|
10104
9990
|
}
|
|
10105
9991
|
};
|
|
10106
|
-
var _renderTimePicker = function(theme, container, props) {
|
|
9992
|
+
var _renderTimePicker = function _renderTimePicker(theme, container, props) {
|
|
10107
9993
|
if (props === void 0) props = {};
|
|
10108
9994
|
if (!theme.controls.timeControl && theme.options.timeOptions !== null) {
|
|
10109
9995
|
var _theme_options;
|
|
10110
9996
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
10111
9997
|
theme.controls.timeControl = new Controls['time'](_extends$1({
|
|
10112
|
-
getPopupContainer: function() {
|
|
9998
|
+
getPopupContainer: function getPopupContainer() {
|
|
10113
9999
|
return container;
|
|
10114
10000
|
},
|
|
10115
10001
|
language: theme.options.language,
|
|
@@ -10119,14 +10005,14 @@ var _renderTimePicker = function(theme, container, props) {
|
|
|
10119
10005
|
}));
|
|
10120
10006
|
}
|
|
10121
10007
|
};
|
|
10122
|
-
var _renderRecType = function(theme, container, recType, props) {
|
|
10008
|
+
var _renderRecType = function _renderRecType(theme, container, recType, props) {
|
|
10123
10009
|
if (props === void 0) props = {};
|
|
10124
10010
|
var _theme_controls, _theme_controls1, _theme_controls2;
|
|
10125
10011
|
if (!((_theme_controls = theme.controls) == null ? void 0 : _theme_controls['recControl']) && theme.options.recOptions !== null && container) {
|
|
10126
10012
|
var _theme_options;
|
|
10127
10013
|
// eslint-disable-next-line @typescript-eslint/dot-notation, new-cap, @typescript-eslint/no-unsafe-argument
|
|
10128
10014
|
theme.controls['recControl'] = new Controls['rec'](_extends$1({
|
|
10129
|
-
getPopupContainer: function() {
|
|
10015
|
+
getPopupContainer: function getPopupContainer() {
|
|
10130
10016
|
return container;
|
|
10131
10017
|
},
|
|
10132
10018
|
recType: theme.recType,
|
|
@@ -10230,7 +10116,7 @@ var _renderRecType = function(theme, container, recType, props) {
|
|
|
10230
10116
|
return width - leftWidth - rightWidth > offset;
|
|
10231
10117
|
}
|
|
10232
10118
|
|
|
10233
|
-
|
|
10119
|
+
function _array_like_to_array(arr, len) {
|
|
10234
10120
|
if (len == null || len > arr.length) len = arr.length;
|
|
10235
10121
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10236
10122
|
return arr2;
|
|
@@ -10243,11 +10129,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
10243
10129
|
reject(error);
|
|
10244
10130
|
return;
|
|
10245
10131
|
}
|
|
10246
|
-
if (info.done)
|
|
10247
|
-
|
|
10248
|
-
} else {
|
|
10249
|
-
Promise.resolve(value).then(_next, _throw);
|
|
10250
|
-
}
|
|
10132
|
+
if (info.done) resolve(value);
|
|
10133
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
10251
10134
|
}
|
|
10252
10135
|
function _async_to_generator(fn) {
|
|
10253
10136
|
return function() {
|
|
@@ -10277,15 +10160,29 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
10277
10160
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
10278
10161
|
return Constructor;
|
|
10279
10162
|
}
|
|
10163
|
+
function _create_for_of_iterator_helper_loose(o, allowArrayLike) {
|
|
10164
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
10165
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
10166
|
+
if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike) {
|
|
10167
|
+
if (it) o = it;
|
|
10168
|
+
var i = 0;
|
|
10169
|
+
return function() {
|
|
10170
|
+
if (i >= o.length) return {
|
|
10171
|
+
done: true
|
|
10172
|
+
};
|
|
10173
|
+
return {
|
|
10174
|
+
done: false,
|
|
10175
|
+
value: o[i++]
|
|
10176
|
+
};
|
|
10177
|
+
};
|
|
10178
|
+
}
|
|
10179
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10180
|
+
}
|
|
10280
10181
|
function _extends() {
|
|
10281
|
-
_extends = Object.assign || function(target) {
|
|
10182
|
+
_extends = Object.assign || function assign(target) {
|
|
10282
10183
|
for(var i = 1; i < arguments.length; i++){
|
|
10283
10184
|
var source = arguments[i];
|
|
10284
|
-
for(var key in source)
|
|
10285
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
10286
|
-
target[key] = source[key];
|
|
10287
|
-
}
|
|
10288
|
-
}
|
|
10185
|
+
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
10289
10186
|
}
|
|
10290
10187
|
return target;
|
|
10291
10188
|
};
|
|
@@ -10311,34 +10208,6 @@ function _set_prototype_of(o, p) {
|
|
|
10311
10208
|
};
|
|
10312
10209
|
return _set_prototype_of(o, p);
|
|
10313
10210
|
}
|
|
10314
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
10315
|
-
if (!o) return;
|
|
10316
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
10317
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10318
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10319
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10320
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
10321
|
-
}
|
|
10322
|
-
function _create_for_of_iterator_helper_loose(o, allowArrayLike) {
|
|
10323
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
10324
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
|
10325
|
-
if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike) {
|
|
10326
|
-
if (it) o = it;
|
|
10327
|
-
var i = 0;
|
|
10328
|
-
return function() {
|
|
10329
|
-
if (i >= o.length) {
|
|
10330
|
-
return {
|
|
10331
|
-
done: true
|
|
10332
|
-
};
|
|
10333
|
-
}
|
|
10334
|
-
return {
|
|
10335
|
-
done: false,
|
|
10336
|
-
value: o[i++]
|
|
10337
|
-
};
|
|
10338
|
-
};
|
|
10339
|
-
}
|
|
10340
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10341
|
-
}
|
|
10342
10211
|
function _ts_generator(thisArg, body) {
|
|
10343
10212
|
var f, y, t, _ = {
|
|
10344
10213
|
label: 0,
|
|
@@ -10348,9 +10217,17 @@ function _ts_generator(thisArg, body) {
|
|
|
10348
10217
|
},
|
|
10349
10218
|
trys: [],
|
|
10350
10219
|
ops: []
|
|
10351
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
10352
|
-
return
|
|
10353
|
-
|
|
10220
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
10221
|
+
return d(g, "next", {
|
|
10222
|
+
value: verb(0)
|
|
10223
|
+
}), d(g, "throw", {
|
|
10224
|
+
value: verb(1)
|
|
10225
|
+
}), d(g, "return", {
|
|
10226
|
+
value: verb(2)
|
|
10227
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
10228
|
+
value: function() {
|
|
10229
|
+
return this;
|
|
10230
|
+
}
|
|
10354
10231
|
}), g;
|
|
10355
10232
|
function verb(n) {
|
|
10356
10233
|
return function(v) {
|
|
@@ -10430,6 +10307,14 @@ function _ts_generator(thisArg, body) {
|
|
|
10430
10307
|
};
|
|
10431
10308
|
}
|
|
10432
10309
|
}
|
|
10310
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
10311
|
+
if (!o) return;
|
|
10312
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
10313
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10314
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10315
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10316
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
10317
|
+
}
|
|
10433
10318
|
var THEME_DEFAULT_OPTIONS = {
|
|
10434
10319
|
dblClickFullscreen: true,
|
|
10435
10320
|
language: 'zh',
|
|
@@ -10483,6 +10368,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10483
10368
|
_inherits(Theme, EventEmitter);
|
|
10484
10369
|
function Theme(options) {
|
|
10485
10370
|
var _this;
|
|
10371
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
10486
10372
|
var _this_options_volumeOptions, _this_options_volumeOptions1, _this_options_speedOptions, _this_urlInfo_searchParams, _this_urlInfo, _this_options, _this_options1;
|
|
10487
10373
|
_this = EventEmitter.call(this) || this, /** 播放器配置项 */ _this.options = THEME_DEFAULT_OPTIONS, _this.staticPath = '', /** 所有控件列表, 所有控件名称规则(`${iconId}Control`), 如音量控件 this.controls["volumeControl"] @since 0.0.1 */ _this.controls = {}, /**
|
|
10488
10374
|
* @since 0.0.1
|
|
@@ -10548,7 +10434,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10548
10434
|
_this._initClassName();
|
|
10549
10435
|
// 画布需要渲染在 this.contentControl.$content 内
|
|
10550
10436
|
_this.contentControl = new Content({
|
|
10551
|
-
getContainer: function() {
|
|
10437
|
+
getContainer: function getContainer() {
|
|
10552
10438
|
return _this.$container;
|
|
10553
10439
|
},
|
|
10554
10440
|
scaleMode: _this.scaleMode
|
|
@@ -10558,18 +10444,15 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10558
10444
|
});
|
|
10559
10445
|
// zoom utils
|
|
10560
10446
|
__zoom(_this, _this.contentControl.$content, _extends({}, _this.options.zoomOptions || {}, {
|
|
10561
|
-
onTap: function() {
|
|
10447
|
+
onTap: function onTap() {
|
|
10562
10448
|
var _this__interactiveResult_setTimeoutShow, _this__interactiveResult;
|
|
10563
10449
|
(_this__interactiveResult = _this._interactiveResult) == null ? void 0 : (_this__interactiveResult_setTimeoutShow = _this__interactiveResult.setTimeoutShow) == null ? void 0 : _this__interactiveResult_setTimeoutShow.call(_this__interactiveResult);
|
|
10564
10450
|
}
|
|
10565
10451
|
}));
|
|
10566
|
-
|
|
10567
|
-
_this.
|
|
10568
|
-
var _this_options_volumeOptions_muted, _ref1;
|
|
10569
|
-
_this._muted = (_ref1 = (_this_options_volumeOptions_muted = (_this_options_volumeOptions1 = _this.options.volumeOptions) == null ? void 0 : _this_options_volumeOptions1.muted) != null ? _this_options_volumeOptions_muted : _this.options.muted) != null ? _ref1 : false;
|
|
10570
|
-
var _this_options_speedOptions_value, _ref2;
|
|
10452
|
+
_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;
|
|
10453
|
+
_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;
|
|
10571
10454
|
// playbackSpeed 是 萤石标准流倍速字段
|
|
10572
|
-
_this._speed = +((
|
|
10455
|
+
_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);
|
|
10573
10456
|
_this._mobileInnerWidthHeight = _this._mobileInnerWidthHeight.bind(_this);
|
|
10574
10457
|
_this._throttleMobileInnerWidthHeight = throttle(_this._mobileInnerWidthHeight, 20).bind(_this);
|
|
10575
10458
|
_this._onDblClickFullscreen = debounce(_this._onDblClickFullscreen, 20).bind(_this);
|
|
@@ -10597,9 +10480,9 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10597
10480
|
// flv / mp4:支持自定义 themeData,未传时回退到标准直播模板 LiveTemplate(2026-01-19 起支持自定义)
|
|
10598
10481
|
initialThemeData = themeData !== undefined ? themeData : LiveTemplate;
|
|
10599
10482
|
} else {
|
|
10600
|
-
var
|
|
10483
|
+
var _ref6;
|
|
10601
10484
|
// 其余类型(如 ezopen 私有流):template 优先级高于 themeData,二者都未设置时为 null
|
|
10602
|
-
initialThemeData = (
|
|
10485
|
+
initialThemeData = (_ref6 = template != null ? template : themeData) != null ? _ref6 : null;
|
|
10603
10486
|
}
|
|
10604
10487
|
_this._renderTheme(initialThemeData);
|
|
10605
10488
|
_this._addEventListener();
|
|
@@ -10950,7 +10833,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10950
10833
|
this._fullscreen = new Fullscreen$1(this.$container, {
|
|
10951
10834
|
prefix: PREFIX_CLASS,
|
|
10952
10835
|
// 全屏变化
|
|
10953
|
-
onChange: function(info) {
|
|
10836
|
+
onChange: function onChange(info) {
|
|
10954
10837
|
if (info.isCurrentFullscreen) {
|
|
10955
10838
|
_this.emit(EVENTS.fullscreen);
|
|
10956
10839
|
} else if (_this._isCurrentFullscreen) {
|
|
@@ -10968,7 +10851,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10968
10851
|
}
|
|
10969
10852
|
});
|
|
10970
10853
|
// ------------------------------ 旋转方向 -----------------------------
|
|
10971
|
-
var rotateOrientation = function(orientation) {
|
|
10854
|
+
var rotateOrientation = function rotateOrientation(orientation) {
|
|
10972
10855
|
if (_this.$container) {
|
|
10973
10856
|
var // 重置移除旋转角度
|
|
10974
10857
|
_this_$container_classList;
|
|
@@ -11091,7 +10974,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11091
10974
|
language: this.options.language,
|
|
11092
10975
|
locales: this.i18n.translations,
|
|
11093
10976
|
rootContainer: this.$container,
|
|
11094
|
-
getPopupContainer: function() {
|
|
10977
|
+
getPopupContainer: function getPopupContainer() {
|
|
11095
10978
|
var _this__header;
|
|
11096
10979
|
return (_this__header = _this._header) == null ? void 0 : _this__header.$right;
|
|
11097
10980
|
},
|
|
@@ -11103,7 +10986,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11103
10986
|
8
|
|
11104
10987
|
],
|
|
11105
10988
|
wrapClassName: "" + PREFIX_CLASS + "-header-more",
|
|
11106
|
-
onOpenChange: function(open) {
|
|
10989
|
+
onOpenChange: function onOpenChange(open) {
|
|
11107
10990
|
_this.emit(EVENTS.control.headerMorePanelOpenChange, open);
|
|
11108
10991
|
}
|
|
11109
10992
|
});
|
|
@@ -11146,7 +11029,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11146
11029
|
language: this.options.language,
|
|
11147
11030
|
locales: this.i18n.translations,
|
|
11148
11031
|
rootContainer: this.$container,
|
|
11149
|
-
getPopupContainer: function() {
|
|
11032
|
+
getPopupContainer: function getPopupContainer() {
|
|
11150
11033
|
var _this__footer;
|
|
11151
11034
|
return (_this__footer = _this._footer) == null ? void 0 : _this__footer.$right;
|
|
11152
11035
|
},
|
|
@@ -11158,7 +11041,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11158
11041
|
-8
|
|
11159
11042
|
],
|
|
11160
11043
|
wrapClassName: "" + PREFIX_CLASS + "-footer-more",
|
|
11161
|
-
onOpenChange: function(open) {
|
|
11044
|
+
onOpenChange: function onOpenChange(open) {
|
|
11162
11045
|
_this.emit(EVENTS.control.footerMorePanelOpenChange, open);
|
|
11163
11046
|
}
|
|
11164
11047
|
});
|
|
@@ -11548,7 +11431,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11548
11431
|
* theme.on(Theme.EVENTS.loading, (loading: boolean) => {})
|
|
11549
11432
|
* ```
|
|
11550
11433
|
*/ function set(loading) {
|
|
11551
|
-
this._loading = loading;
|
|
11552
11434
|
if (loading) {
|
|
11553
11435
|
var _this__loadingControl;
|
|
11554
11436
|
(_this__loadingControl = this._loadingControl) == null ? void 0 : _this__loadingControl.show();
|
|
@@ -11557,6 +11439,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11557
11439
|
(_this__loadingControl1 = this._loadingControl) == null ? void 0 : _this__loadingControl1.hide();
|
|
11558
11440
|
}
|
|
11559
11441
|
if (this._loading !== loading) {
|
|
11442
|
+
this._loading = loading;
|
|
11560
11443
|
this.emit(EVENTS.loading, loading);
|
|
11561
11444
|
}
|
|
11562
11445
|
}
|
|
@@ -11677,6 +11560,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11677
11560
|
* theme.on(Theme.EVENTS.zoomChange, (zoom: number) => {})
|
|
11678
11561
|
* ```
|
|
11679
11562
|
*/ function set(zoom) {
|
|
11563
|
+
var _ref;
|
|
11680
11564
|
var _this_options_zoomOptions;
|
|
11681
11565
|
if (!this._zooming) {
|
|
11682
11566
|
var _this_messageControl_info, _this_messageControl, _this_logger;
|
|
@@ -11685,8 +11569,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11685
11569
|
return;
|
|
11686
11570
|
}
|
|
11687
11571
|
zoom = +zoom.toFixed(1);
|
|
11688
|
-
var
|
|
11689
|
-
var ZOOM_MAX = (_this_options_zoomOptions_max = (_this_options_zoomOptions = this.options.zoomOptions) == null ? void 0 : _this_options_zoomOptions.max) != null ? _this_options_zoomOptions_max : ZOOM_DEFAULT_OPTIONS.max;
|
|
11572
|
+
var ZOOM_MAX = (_ref = (_this_options_zoomOptions = this.options.zoomOptions) == null ? void 0 : _this_options_zoomOptions.max) != null ? _ref : ZOOM_DEFAULT_OPTIONS.max;
|
|
11690
11573
|
if (zoom > ZOOM_MAX) {
|
|
11691
11574
|
var _this_messageControl_info1, _this_messageControl1, _this_logger1;
|
|
11692
11575
|
(_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', {
|
|
@@ -11853,7 +11736,9 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11853
11736
|
},
|
|
11854
11737
|
{
|
|
11855
11738
|
key: "isEzopen",
|
|
11856
|
-
get:
|
|
11739
|
+
get: /**
|
|
11740
|
+
* 私有流地址
|
|
11741
|
+
*/ function get() {
|
|
11857
11742
|
// 私有流地址
|
|
11858
11743
|
return /^ezopen:\/\//.test(this._url);
|
|
11859
11744
|
}
|
|
@@ -11864,21 +11749,26 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11864
11749
|
* 判断播放地址是萤石的播放地址
|
|
11865
11750
|
* @since 3.1.2
|
|
11866
11751
|
*/ function get() {
|
|
11867
|
-
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
|
|
11879
|
-
|
|
11752
|
+
try {
|
|
11753
|
+
var _this__url_split, _this__url_split1, _path_split;
|
|
11754
|
+
var path = (_this__url_split = this._url.split('?')) == null ? void 0 : _this__url_split[0];
|
|
11755
|
+
var queryStr = (_this__url_split1 = this._url.split('?')) == null ? void 0 : _this__url_split1[1];
|
|
11756
|
+
var lastPath = (_path_split = path.split('/')) == null ? void 0 : _path_split[path.split('/').length - 1];
|
|
11757
|
+
// ezopen://open.ys7.com/BC7799091/1.rec
|
|
11758
|
+
// rtmp://rtmp05open.ys7.com:1935/v3/openpb/BC7799091_1_1
|
|
11759
|
+
// https://open.ys7.com/v3/openpb/llhls/BC7799091_1_1.m3u8
|
|
11760
|
+
// https://rtmp05open.ys7.com:9188/v3/openpb/BC7799091_1_1.flv
|
|
11761
|
+
// https://host:2001/live?dev=D08197169&chn=1&ss=token&stream=1
|
|
11762
|
+
if (// 私有流地址
|
|
11763
|
+
/^ezopen:\/\//.test(path) || // 标准流地址
|
|
11764
|
+
path.includes('/openlive/') || path.includes('/openpb/') && /[a-zA-Z0-9:]+_\d+_\d+/.test(lastPath) || // webtransport 取流
|
|
11765
|
+
utilsTools.isHttp(this._url) && queryStr && /dev=[a-zA-Z0-9:]+/.test(queryStr) && /chn=\d+/.test(queryStr) && /stream=\d+/.test(queryStr) && queryStr.includes('ssn=')) {
|
|
11766
|
+
return true;
|
|
11767
|
+
}
|
|
11768
|
+
return false;
|
|
11769
|
+
} catch (error) {
|
|
11770
|
+
return false;
|
|
11880
11771
|
}
|
|
11881
|
-
return false;
|
|
11882
11772
|
}
|
|
11883
11773
|
}
|
|
11884
11774
|
]);
|
|
@@ -11890,7 +11780,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11890
11780
|
zh: zh,
|
|
11891
11781
|
en: en
|
|
11892
11782
|
};
|
|
11893
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.
|
|
11783
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.5-beta.1';
|
|
11894
11784
|
|
|
11895
11785
|
exports.Control = Control;
|
|
11896
11786
|
exports.EVENTS = EVENTS;
|