iking-web-ui-pro 0.2.49 → 0.2.51
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/IKApprovalProcessDetail/ik.index.es.js +565 -551
- package/dist/IKApprovalProcessDetail/ik.index.umd.js +23 -23
- package/dist/IKPreviewFile/ik.index.es.js +1077 -1063
- package/dist/IKPreviewFile/ik.index.umd.js +38 -38
- package/dist/IkDescription/ik.index.es.js +1163 -1149
- package/dist/IkDescription/ik.index.umd.js +38 -38
- package/dist/IkDetailPreviewFiles/ik.index.es.js +954 -940
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +38 -38
- package/dist/index.es.js +4976 -4962
- package/dist/index.umd.js +72 -72
- package/dist/src/components/IKPreviewFile/index.d.ts +26 -7
- package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +12 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as J, computed as X, openBlock as E, createElementBlock as
|
|
1
|
+
import { defineComponent as J, computed as X, openBlock as E, createElementBlock as I, createElementVNode as T, inject as ut, ref as oe, resolveComponent as st, Fragment as pe, createCommentVNode as Y, renderList as rt, normalizeStyle as ie, toDisplayString as xe, normalizeClass as K, createBlock as he, unref as S, withModifiers as Ct, renderSlot as Ne, createVNode as j, withCtx as ee, mergeModels as wt, useModel as fi, reactive as rr, watch as ot, nextTick as hi, createTextVNode as ii, h as sr, mergeProps as or, createSlots as ar, getCurrentScope as lr, onScopeDispose as ur, markRaw as Oi, effectScope as cr, shallowRef as fr, onMounted as hr, Teleport as kn, Transition as Cn, resolveDynamicComponent as dr, withDirectives as gr, vShow as pr, pushScopeId as vr, popScopeId as mr } from "vue";
|
|
2
2
|
import { paramType as ni, ikFile as yr, buildUUID as wn, ikColor as _r, _ as zt, ikUrl as kr } from "iking-utils-pro";
|
|
3
3
|
import { useLocale as Cr, useNamespace as bn, useZIndex as wr, ElIcon as Oe, EVENT_CODE as Xe } from "element-plus";
|
|
4
4
|
const Ae = (a, o) => {
|
|
@@ -620,7 +620,7 @@ const Ae = (a, o) => {
|
|
|
620
620
|
},
|
|
621
621
|
setup(a) {
|
|
622
622
|
const o = a, r = X(() => o.file ? ri(o.file, o.fields) : o.type);
|
|
623
|
-
return (t, e) => r.value === "image" ? (E(),
|
|
623
|
+
return (t, e) => r.value === "image" ? (E(), I("svg", Er, Lr)) : r.value === "zip" ? (E(), I("svg", Ar, Rr)) : r.value === "ppt" ? (E(), I("svg", Fr, Br)) : r.value === "word" ? (E(), I("svg", Hr, Vr)) : r.value === "pdf" ? (E(), I("svg", jr, $r)) : r.value === "txt" ? (E(), I("svg", Kr, qr)) : r.value === "audio" ? (E(), I("svg", Zr, es)) : r.value === "video" ? (E(), I("svg", ts, rs)) : r.value === "excel" ? (E(), I("svg", ss, us)) : r.value === "exe" ? (E(), I("svg", cs, ps)) : r.value === "json" ? (E(), I("svg", vs, ks)) : (E(), I("svg", Cs, Es));
|
|
624
624
|
}
|
|
625
625
|
}), Fi = Ae(Ss);
|
|
626
626
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
@@ -628,7 +628,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
628
628
|
name: "ArrowLeft",
|
|
629
629
|
__name: "arrow-left",
|
|
630
630
|
setup(a) {
|
|
631
|
-
return (o, r) => (E(),
|
|
631
|
+
return (o, r) => (E(), I("svg", {
|
|
632
632
|
xmlns: "http://www.w3.org/2000/svg",
|
|
633
633
|
viewBox: "0 0 1024 1024"
|
|
634
634
|
}, [
|
|
@@ -642,7 +642,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
642
642
|
name: "ArrowRight",
|
|
643
643
|
__name: "arrow-right",
|
|
644
644
|
setup(a) {
|
|
645
|
-
return (o, r) => (E(),
|
|
645
|
+
return (o, r) => (E(), I("svg", {
|
|
646
646
|
xmlns: "http://www.w3.org/2000/svg",
|
|
647
647
|
viewBox: "0 0 1024 1024"
|
|
648
648
|
}, [
|
|
@@ -656,7 +656,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
656
656
|
name: "Close",
|
|
657
657
|
__name: "close",
|
|
658
658
|
setup(a) {
|
|
659
|
-
return (o, r) => (E(),
|
|
659
|
+
return (o, r) => (E(), I("svg", {
|
|
660
660
|
xmlns: "http://www.w3.org/2000/svg",
|
|
661
661
|
viewBox: "0 0 1024 1024"
|
|
662
662
|
}, [
|
|
@@ -670,7 +670,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
670
670
|
name: "FullScreen",
|
|
671
671
|
__name: "full-screen",
|
|
672
672
|
setup(a) {
|
|
673
|
-
return (o, r) => (E(),
|
|
673
|
+
return (o, r) => (E(), I("svg", {
|
|
674
674
|
xmlns: "http://www.w3.org/2000/svg",
|
|
675
675
|
viewBox: "0 0 1024 1024"
|
|
676
676
|
}, [
|
|
@@ -684,7 +684,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
684
684
|
name: "RefreshLeft",
|
|
685
685
|
__name: "refresh-left",
|
|
686
686
|
setup(a) {
|
|
687
|
-
return (o, r) => (E(),
|
|
687
|
+
return (o, r) => (E(), I("svg", {
|
|
688
688
|
xmlns: "http://www.w3.org/2000/svg",
|
|
689
689
|
viewBox: "0 0 1024 1024"
|
|
690
690
|
}, [
|
|
@@ -698,7 +698,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
698
698
|
name: "RefreshRight",
|
|
699
699
|
__name: "refresh-right",
|
|
700
700
|
setup(a) {
|
|
701
|
-
return (o, r) => (E(),
|
|
701
|
+
return (o, r) => (E(), I("svg", {
|
|
702
702
|
xmlns: "http://www.w3.org/2000/svg",
|
|
703
703
|
viewBox: "0 0 1024 1024"
|
|
704
704
|
}, [
|
|
@@ -712,7 +712,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
712
712
|
name: "ScaleToOriginal",
|
|
713
713
|
__name: "scale-to-original",
|
|
714
714
|
setup(a) {
|
|
715
|
-
return (o, r) => (E(),
|
|
715
|
+
return (o, r) => (E(), I("svg", {
|
|
716
716
|
xmlns: "http://www.w3.org/2000/svg",
|
|
717
717
|
viewBox: "0 0 1024 1024"
|
|
718
718
|
}, [
|
|
@@ -726,7 +726,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
726
726
|
name: "ZoomIn",
|
|
727
727
|
__name: "zoom-in",
|
|
728
728
|
setup(a) {
|
|
729
|
-
return (o, r) => (E(),
|
|
729
|
+
return (o, r) => (E(), I("svg", {
|
|
730
730
|
xmlns: "http://www.w3.org/2000/svg",
|
|
731
731
|
viewBox: "0 0 1024 1024"
|
|
732
732
|
}, [
|
|
@@ -740,7 +740,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
740
740
|
name: "ZoomOut",
|
|
741
741
|
__name: "zoom-out",
|
|
742
742
|
setup(a) {
|
|
743
|
-
return (o, r) => (E(),
|
|
743
|
+
return (o, r) => (E(), I("svg", {
|
|
744
744
|
xmlns: "http://www.w3.org/2000/svg",
|
|
745
745
|
viewBox: "0 0 1024 1024"
|
|
746
746
|
}, [
|
|
@@ -908,73 +908,78 @@ const Mi = [
|
|
|
908
908
|
type: String,
|
|
909
909
|
default: "default"
|
|
910
910
|
},
|
|
911
|
-
//
|
|
912
|
-
|
|
911
|
+
// 是否显示下载按钮
|
|
912
|
+
showDownloadBtn: {
|
|
913
|
+
type: Boolean,
|
|
914
|
+
default: !0
|
|
915
|
+
},
|
|
916
|
+
// 是否显示预览按钮
|
|
917
|
+
showPreviewBtn: {
|
|
913
918
|
type: Boolean,
|
|
914
919
|
default: !0
|
|
915
920
|
}
|
|
916
921
|
},
|
|
917
922
|
emits: ["handPreview"],
|
|
918
923
|
setup(a, { emit: o }) {
|
|
919
|
-
const r = a, { cLoadUrl:
|
|
924
|
+
const r = a, t = X(() => r.simple ? "simple" : r.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: n } = En(r), s = o, l = X(() => ({
|
|
920
925
|
name: "name",
|
|
921
926
|
url: "url",
|
|
922
927
|
suffix: "suffix",
|
|
923
928
|
size: "size",
|
|
924
929
|
...r.field
|
|
925
|
-
})),
|
|
926
|
-
var
|
|
927
|
-
|
|
928
|
-
...
|
|
929
|
-
name:
|
|
930
|
+
})), u = oe({}), c = oe(!1), h = (v) => {
|
|
931
|
+
var y, k;
|
|
932
|
+
u.value = {
|
|
933
|
+
...v,
|
|
934
|
+
name: v.name,
|
|
930
935
|
url: ht(
|
|
931
|
-
|
|
932
|
-
|
|
936
|
+
e.value,
|
|
937
|
+
v[l.value.url] || ((k = (y = v == null ? void 0 : v.response) == null ? void 0 : y.data) == null ? void 0 : k.id) || (v == null ? void 0 : v.id)
|
|
933
938
|
)
|
|
934
|
-
}, r.isOnlyOfficePreview && (
|
|
935
|
-
},
|
|
939
|
+
}, r.isOnlyOfficePreview && (c.value = !0), s("handPreview", u.value);
|
|
940
|
+
}, d = (v) => {
|
|
936
941
|
yr.downloadFile(
|
|
937
942
|
ht(
|
|
938
|
-
|
|
939
|
-
|
|
943
|
+
e.value,
|
|
944
|
+
v[l.value.url] || v.attachmentId || v.id
|
|
940
945
|
),
|
|
941
|
-
|
|
946
|
+
v[l.value.name] || v.attachmentName
|
|
942
947
|
);
|
|
943
|
-
},
|
|
944
|
-
var
|
|
945
|
-
const
|
|
948
|
+
}, g = X(() => ni.isNumber(r.width) ? `${r.width}px` : r.width), p = X(() => r.list.map((v) => {
|
|
949
|
+
var k;
|
|
950
|
+
const y = v[l.value.name] || v.attachmentName;
|
|
946
951
|
return {
|
|
947
|
-
...
|
|
948
|
-
name:
|
|
949
|
-
size:
|
|
950
|
-
suffix:
|
|
952
|
+
...v,
|
|
953
|
+
name: y,
|
|
954
|
+
size: v[l.value.size] || (v == null ? void 0 : v.fileSize) || (v == null ? void 0 : v.attachmentSize),
|
|
955
|
+
suffix: v[l.value.suffix] || (v == null ? void 0 : v.attachmentSuffix) || ((k = y.split(".")) == null ? void 0 : k.at(-1))
|
|
951
956
|
};
|
|
952
957
|
}));
|
|
953
|
-
return (
|
|
954
|
-
var
|
|
955
|
-
const
|
|
956
|
-
return E(),
|
|
958
|
+
return (v, y) => {
|
|
959
|
+
var b, w, H;
|
|
960
|
+
const k = st("tmplate");
|
|
961
|
+
return E(), I(
|
|
957
962
|
pe,
|
|
958
963
|
null,
|
|
959
964
|
[
|
|
960
|
-
(
|
|
965
|
+
(b = a.list) != null && b.length ? (E(), I(
|
|
961
966
|
pe,
|
|
962
967
|
{ key: 0 },
|
|
963
968
|
[
|
|
964
969
|
Y(" 简单模式 "),
|
|
965
|
-
|
|
970
|
+
t.value === "simple" ? (E(!0), I(
|
|
966
971
|
pe,
|
|
967
972
|
{ key: 0 },
|
|
968
|
-
rt(p.value, (
|
|
973
|
+
rt(p.value, (x, B) => (E(), I("div", {
|
|
969
974
|
class: "iking-privew-annex simple",
|
|
970
|
-
key:
|
|
971
|
-
onClick: (
|
|
972
|
-
style:
|
|
975
|
+
key: B,
|
|
976
|
+
onClick: (A) => h(x),
|
|
977
|
+
style: ie({ width: g.value })
|
|
973
978
|
}, [
|
|
974
979
|
T(
|
|
975
980
|
"div",
|
|
976
981
|
Ks,
|
|
977
|
-
xe(
|
|
982
|
+
xe(x.name),
|
|
978
983
|
1
|
|
979
984
|
/* TEXT */
|
|
980
985
|
),
|
|
@@ -984,20 +989,21 @@ const Mi = [
|
|
|
984
989
|
class: K(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
985
990
|
},
|
|
986
991
|
[
|
|
987
|
-
|
|
992
|
+
a.showDownloadBtn ? (E(), he(S(Ee), {
|
|
993
|
+
key: 0,
|
|
988
994
|
name: "iksvg_daochu",
|
|
989
|
-
onClick: Ct((
|
|
995
|
+
onClick: Ct((A) => d(x), ["stop"]),
|
|
990
996
|
size: 20,
|
|
991
997
|
active: ""
|
|
992
|
-
}, null, 8, ["onClick"]),
|
|
993
|
-
S(
|
|
994
|
-
key:
|
|
998
|
+
}, null, 8, ["onClick"])) : Y("v-if", !0),
|
|
999
|
+
S(n).includes(x.suffix) || a.showPreviewBtn ? (E(), he(S(Ee), {
|
|
1000
|
+
key: 1,
|
|
995
1001
|
name: "iksvg_yulan",
|
|
996
1002
|
size: 20,
|
|
997
1003
|
active: ""
|
|
998
1004
|
})) : Y("v-if", !0),
|
|
999
|
-
Ne(
|
|
1000
|
-
data: { ...
|
|
1005
|
+
Ne(v.$slots, "operation", {
|
|
1006
|
+
data: { ...x, findex: B }
|
|
1001
1007
|
})
|
|
1002
1008
|
],
|
|
1003
1009
|
2
|
|
@@ -1006,88 +1012,95 @@ const Mi = [
|
|
|
1006
1012
|
], 12, $s))),
|
|
1007
1013
|
128
|
|
1008
1014
|
/* KEYED_FRAGMENT */
|
|
1009
|
-
)) :
|
|
1010
|
-
Y(" 简单图标模式 "),
|
|
1011
|
-
a.showType === "simple-icon" ? (E(!0), P(
|
|
1015
|
+
)) : t.value === "simple-icon" ? (E(), I(
|
|
1012
1016
|
pe,
|
|
1013
1017
|
{ key: 1 },
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
style:
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1018
|
+
[
|
|
1019
|
+
Y(" 简单图标模式 "),
|
|
1020
|
+
(E(!0), I(
|
|
1021
|
+
pe,
|
|
1022
|
+
null,
|
|
1023
|
+
rt(p.value, (x, B) => (E(), I("div", {
|
|
1024
|
+
class: "iking-privew-annex simple-icon",
|
|
1025
|
+
key: B,
|
|
1026
|
+
onClick: (A) => h(x),
|
|
1027
|
+
style: ie({ width: g.value })
|
|
1028
|
+
}, [
|
|
1029
|
+
T("div", Xs, [
|
|
1030
|
+
j(S(Fi), {
|
|
1031
|
+
file: x,
|
|
1032
|
+
style: ie({ height: `${a.iconSize}px` }),
|
|
1033
|
+
class: "ikui-w-auto",
|
|
1034
|
+
fields: l.value
|
|
1035
|
+
}, null, 8, ["file", "style", "fields"]),
|
|
1036
|
+
T(
|
|
1037
|
+
"div",
|
|
1038
|
+
qs,
|
|
1039
|
+
xe(x.name),
|
|
1040
|
+
1
|
|
1041
|
+
/* TEXT */
|
|
1042
|
+
)
|
|
1043
|
+
]),
|
|
1044
|
+
a.showDownloadBtn ? (E(), he(S(Ee), {
|
|
1045
|
+
key: 0,
|
|
1046
|
+
name: "iksvg_daochu",
|
|
1047
|
+
size: 20,
|
|
1048
|
+
title: "下载",
|
|
1049
|
+
active: "",
|
|
1050
|
+
onClick: Ct((A) => d(x), ["stop"])
|
|
1051
|
+
}, null, 8, ["onClick"])) : Y("v-if", !0)
|
|
1052
|
+
], 12, Ys))),
|
|
1053
|
+
128
|
|
1054
|
+
/* KEYED_FRAGMENT */
|
|
1055
|
+
))
|
|
1056
|
+
],
|
|
1057
|
+
64
|
|
1058
|
+
/* STABLE_FRAGMENT */
|
|
1059
|
+
)) : (E(), I(
|
|
1047
1060
|
pe,
|
|
1048
1061
|
{ key: 2 },
|
|
1049
1062
|
[
|
|
1050
1063
|
Y(" 默认模式 "),
|
|
1051
|
-
|
|
1064
|
+
j(k, null, {
|
|
1052
1065
|
default: ee(() => [
|
|
1053
|
-
(E(!0),
|
|
1066
|
+
(E(!0), I(
|
|
1054
1067
|
pe,
|
|
1055
1068
|
null,
|
|
1056
|
-
rt(p.value, (
|
|
1057
|
-
var
|
|
1058
|
-
return E(),
|
|
1069
|
+
rt(p.value, (x, B) => {
|
|
1070
|
+
var A;
|
|
1071
|
+
return E(), I(
|
|
1059
1072
|
"div",
|
|
1060
1073
|
{
|
|
1061
1074
|
class: K(["iking-privew-annex", { "is-bg": a.showBg }]),
|
|
1062
|
-
key:
|
|
1063
|
-
style:
|
|
1064
|
-
marginBottom:
|
|
1065
|
-
width:
|
|
1075
|
+
key: B,
|
|
1076
|
+
style: ie({
|
|
1077
|
+
marginBottom: B == ((A = a.list) == null ? void 0 : A.length) - 1 ? "0" : "10px",
|
|
1078
|
+
width: g.value
|
|
1066
1079
|
})
|
|
1067
1080
|
},
|
|
1068
1081
|
[
|
|
1069
1082
|
T("div", {
|
|
1070
1083
|
class: "file-card",
|
|
1071
|
-
onClick: (
|
|
1084
|
+
onClick: (te) => h(x)
|
|
1072
1085
|
}, [
|
|
1073
|
-
|
|
1074
|
-
file:
|
|
1075
|
-
style:
|
|
1086
|
+
j(S(Fi), {
|
|
1087
|
+
file: x,
|
|
1088
|
+
style: ie({ height: `${a.iconSize}px` }),
|
|
1076
1089
|
class: "ikui-w-auto",
|
|
1077
|
-
fields:
|
|
1090
|
+
fields: l.value
|
|
1078
1091
|
}, null, 8, ["file", "style", "fields"]),
|
|
1079
1092
|
T("div", Js, [
|
|
1080
1093
|
T(
|
|
1081
1094
|
"div",
|
|
1082
1095
|
Qs,
|
|
1083
|
-
xe(
|
|
1096
|
+
xe(x.name),
|
|
1084
1097
|
1
|
|
1085
1098
|
/* TEXT */
|
|
1086
1099
|
),
|
|
1087
1100
|
T(
|
|
1088
1101
|
"div",
|
|
1089
1102
|
eo,
|
|
1090
|
-
xe(S(Ws)(
|
|
1103
|
+
xe(S(Ws)(x.size)),
|
|
1091
1104
|
1
|
|
1092
1105
|
/* TEXT */
|
|
1093
1106
|
)
|
|
@@ -1098,22 +1111,23 @@ const Mi = [
|
|
|
1098
1111
|
class: K(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
1099
1112
|
},
|
|
1100
1113
|
[
|
|
1101
|
-
|
|
1114
|
+
a.showDownloadBtn ? (E(), he(S(Ee), {
|
|
1115
|
+
key: 0,
|
|
1102
1116
|
name: "iksvg_daochu",
|
|
1103
|
-
onClick: Ct((
|
|
1117
|
+
onClick: Ct((te) => d(x), ["stop"]),
|
|
1104
1118
|
bg: a.showBg,
|
|
1105
1119
|
size: a.showBg ? "default" : 20,
|
|
1106
1120
|
title: "下载"
|
|
1107
|
-
}, null, 8, ["onClick", "bg", "size"]),
|
|
1108
|
-
S(
|
|
1109
|
-
key:
|
|
1121
|
+
}, null, 8, ["onClick", "bg", "size"])) : Y("v-if", !0),
|
|
1122
|
+
S(n).includes(x.suffix) || a.showPreviewBtn ? (E(), he(S(Ee), {
|
|
1123
|
+
key: 1,
|
|
1110
1124
|
name: "iksvg_yulan",
|
|
1111
1125
|
bg: a.showBg,
|
|
1112
1126
|
size: a.showBg ? "default" : 20,
|
|
1113
1127
|
title: "预览"
|
|
1114
1128
|
}, null, 8, ["bg", "size"])) : Y("v-if", !0),
|
|
1115
|
-
Ne(
|
|
1116
|
-
data: { ...
|
|
1129
|
+
Ne(v.$slots, "operation", {
|
|
1130
|
+
data: { ...x, findex: B }
|
|
1117
1131
|
})
|
|
1118
1132
|
],
|
|
1119
1133
|
2
|
|
@@ -1140,14 +1154,14 @@ const Mi = [
|
|
|
1140
1154
|
64
|
|
1141
1155
|
/* STABLE_FRAGMENT */
|
|
1142
1156
|
)) : Y("v-if", !0),
|
|
1143
|
-
|
|
1144
|
-
show:
|
|
1145
|
-
"onUpdate:show":
|
|
1146
|
-
loadUrl: S(
|
|
1147
|
-
file:
|
|
1148
|
-
onlyofficeServer: ((
|
|
1149
|
-
onlyOfficeConfig: S(
|
|
1150
|
-
onlyOfficeAccept: ((
|
|
1157
|
+
j(S(ro), {
|
|
1158
|
+
show: c.value,
|
|
1159
|
+
"onUpdate:show": y[0] || (y[0] = (x) => c.value = x),
|
|
1160
|
+
loadUrl: S(e),
|
|
1161
|
+
file: u.value,
|
|
1162
|
+
onlyofficeServer: ((w = S(i)) == null ? void 0 : w.serverUrl) || a.onlyofficeServer,
|
|
1163
|
+
onlyOfficeConfig: S(i),
|
|
1164
|
+
onlyOfficeAccept: ((H = S(i)) == null ? void 0 : H.accept) || a.onlyOfficeAccept
|
|
1151
1165
|
}, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
|
|
1152
1166
|
],
|
|
1153
1167
|
64
|
|
@@ -1204,9 +1218,9 @@ const io = Ae(to), no = /* @__PURE__ */ J({
|
|
|
1204
1218
|
office: !1,
|
|
1205
1219
|
video: !1
|
|
1206
1220
|
}), s = (u) => {
|
|
1207
|
-
var c, h, d,
|
|
1221
|
+
var c, h, d, g, p, v, y;
|
|
1208
1222
|
try {
|
|
1209
|
-
const
|
|
1223
|
+
const k = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, b = k[t.value.url] || (k == null ? void 0 : k.id) || k.attachmentId, w = (h = k[t.value.suffix] || k.attachmentSuffix) == null ? void 0 : h.toLowerCase(), H = k[t.value.name] || (k == null ? void 0 : k.attachmentName) || (k == null ? void 0 : k.originName);
|
|
1210
1224
|
if (i.value = {
|
|
1211
1225
|
...u,
|
|
1212
1226
|
name: u[t.value.name],
|
|
@@ -1221,9 +1235,9 @@ const io = Ae(to), no = /* @__PURE__ */ J({
|
|
|
1221
1235
|
n.office = !0, e.value = {
|
|
1222
1236
|
...o.onlyOfficeConfig,
|
|
1223
1237
|
editorConfig: {
|
|
1224
|
-
...((
|
|
1238
|
+
...((g = o.onlyOfficeConfig) == null ? void 0 : g.editorConfig) || {},
|
|
1225
1239
|
customization: {
|
|
1226
|
-
...((v = (
|
|
1240
|
+
...((v = (p = o.onlyOfficeConfig) == null ? void 0 : p.editorConfig) == null ? void 0 : v.customization) || {},
|
|
1227
1241
|
review: {
|
|
1228
1242
|
reviewDisplay: "final"
|
|
1229
1243
|
}
|
|
@@ -1231,7 +1245,7 @@ const io = Ae(to), no = /* @__PURE__ */ J({
|
|
|
1231
1245
|
},
|
|
1232
1246
|
document: {
|
|
1233
1247
|
key: wn(),
|
|
1234
|
-
title:
|
|
1248
|
+
title: H,
|
|
1235
1249
|
url: ht(o.loadUrl, b),
|
|
1236
1250
|
fileType: w,
|
|
1237
1251
|
...((y = o.onlyOfficeConfig) == null ? void 0 : y.document) || {}
|
|
@@ -1241,8 +1255,8 @@ const io = Ae(to), no = /* @__PURE__ */ J({
|
|
|
1241
1255
|
};
|
|
1242
1256
|
return;
|
|
1243
1257
|
}
|
|
1244
|
-
} catch (
|
|
1245
|
-
console.info("预览错误: ",
|
|
1258
|
+
} catch (k) {
|
|
1259
|
+
console.info("预览错误: ", k);
|
|
1246
1260
|
}
|
|
1247
1261
|
};
|
|
1248
1262
|
ot([r, o.file], ([u, c]) => {
|
|
@@ -1254,14 +1268,14 @@ const io = Ae(to), no = /* @__PURE__ */ J({
|
|
|
1254
1268
|
r.value = !1, n.office = !1, n.image = !1, n.video = !1, i.value = null;
|
|
1255
1269
|
};
|
|
1256
1270
|
return (u, c) => {
|
|
1257
|
-
var h, d,
|
|
1258
|
-
return r.value ? (E(),
|
|
1271
|
+
var h, d, g;
|
|
1272
|
+
return r.value ? (E(), I(
|
|
1259
1273
|
pe,
|
|
1260
1274
|
{ key: 0 },
|
|
1261
1275
|
[
|
|
1262
|
-
(h = i.value) != null && h.url && n.image ? (E(),
|
|
1276
|
+
(h = i.value) != null && h.url && n.image ? (E(), he(S(jo), {
|
|
1263
1277
|
key: 0,
|
|
1264
|
-
onClose: c[0] || (c[0] = (
|
|
1278
|
+
onClose: c[0] || (c[0] = (p) => l()),
|
|
1265
1279
|
ref: "previewImgRef",
|
|
1266
1280
|
"url-list": [(d = i.value) == null ? void 0 : d.url],
|
|
1267
1281
|
teleported: "",
|
|
@@ -1269,14 +1283,14 @@ const io = Ae(to), no = /* @__PURE__ */ J({
|
|
|
1269
1283
|
}, null, 8, ["url-list"])) : Y("v-if", !0),
|
|
1270
1284
|
Y(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
1271
1285
|
Y(" 文档类 "),
|
|
1272
|
-
|
|
1286
|
+
j(S(su), {
|
|
1273
1287
|
modelValue: n.video,
|
|
1274
|
-
"onUpdate:modelValue": c[1] || (c[1] = (
|
|
1275
|
-
url: (
|
|
1288
|
+
"onUpdate:modelValue": c[1] || (c[1] = (p) => n.video = p),
|
|
1289
|
+
url: (g = i.value) == null ? void 0 : g.url
|
|
1276
1290
|
}, null, 8, ["modelValue", "url"]),
|
|
1277
|
-
|
|
1291
|
+
j(S(_o), {
|
|
1278
1292
|
modelValue: n.office,
|
|
1279
|
-
"onUpdate:modelValue": c[2] || (c[2] = (
|
|
1293
|
+
"onUpdate:modelValue": c[2] || (c[2] = (p) => n.office = p),
|
|
1280
1294
|
draggable: "",
|
|
1281
1295
|
"no-footer": "",
|
|
1282
1296
|
"no-header": "",
|
|
@@ -1290,11 +1304,11 @@ const io = Ae(to), no = /* @__PURE__ */ J({
|
|
|
1290
1304
|
"modal-class": "ik-only-preview-dialog"
|
|
1291
1305
|
}, {
|
|
1292
1306
|
default: ee(() => {
|
|
1293
|
-
var
|
|
1307
|
+
var p;
|
|
1294
1308
|
return [
|
|
1295
|
-
|
|
1309
|
+
j(S(xo), {
|
|
1296
1310
|
"config-options": e.value,
|
|
1297
|
-
"document-server-url": ((
|
|
1311
|
+
"document-server-url": ((p = a.onlyOfficeConfig) == null ? void 0 : p.serverUrl) || a.onlyofficeServer
|
|
1298
1312
|
}, null, 8, ["config-options", "document-server-url"])
|
|
1299
1313
|
];
|
|
1300
1314
|
}),
|
|
@@ -1379,8 +1393,8 @@ const ro = Ae(no), so = {
|
|
|
1379
1393
|
});
|
|
1380
1394
|
return (i, n) => {
|
|
1381
1395
|
const s = st("el-tooltip"), l = st("el-button");
|
|
1382
|
-
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (E(),
|
|
1383
|
-
r.value.notip || !r.value.title ? (E(),
|
|
1396
|
+
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (E(), I("span", so, [
|
|
1397
|
+
r.value.notip || !r.value.title ? (E(), I(
|
|
1384
1398
|
"i",
|
|
1385
1399
|
{
|
|
1386
1400
|
key: 0,
|
|
@@ -1397,34 +1411,34 @@ const ro = Ae(no), so = {
|
|
|
1397
1411
|
active: r.value.active,
|
|
1398
1412
|
disabled: r.value.disabled
|
|
1399
1413
|
}]),
|
|
1400
|
-
style:
|
|
1414
|
+
style: ie(e.value)
|
|
1401
1415
|
},
|
|
1402
1416
|
[
|
|
1403
1417
|
Y(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
1404
|
-
t.value === "iksig" ? (E(),
|
|
1418
|
+
t.value === "iksig" ? (E(), I(
|
|
1405
1419
|
"i",
|
|
1406
1420
|
{
|
|
1407
1421
|
key: 0,
|
|
1408
1422
|
class: K(`iksig ${r.value.name}`),
|
|
1409
|
-
style:
|
|
1423
|
+
style: ie(e.value)
|
|
1410
1424
|
},
|
|
1411
1425
|
null,
|
|
1412
1426
|
6
|
|
1413
1427
|
/* CLASS, STYLE */
|
|
1414
|
-
)) : t.value === "svg" ? (E(),
|
|
1428
|
+
)) : t.value === "svg" ? (E(), I("svg", oo, [
|
|
1415
1429
|
T("use", {
|
|
1416
1430
|
"xlink:href": `#${r.value.name}`
|
|
1417
1431
|
}, null, 8, ao)
|
|
1418
|
-
])) : t.value === "img" ? (E(),
|
|
1432
|
+
])) : t.value === "img" ? (E(), I("img", {
|
|
1419
1433
|
key: 2,
|
|
1420
1434
|
src: r.value.name,
|
|
1421
1435
|
class: "h-[1em] w-[1em]"
|
|
1422
|
-
}, null, 8, lo)) : (E(),
|
|
1436
|
+
}, null, 8, lo)) : (E(), I(
|
|
1423
1437
|
"i",
|
|
1424
1438
|
{
|
|
1425
1439
|
key: 3,
|
|
1426
1440
|
class: K(r.value.name),
|
|
1427
|
-
style:
|
|
1441
|
+
style: ie(e.value)
|
|
1428
1442
|
},
|
|
1429
1443
|
null,
|
|
1430
1444
|
6
|
|
@@ -1433,7 +1447,7 @@ const ro = Ae(no), so = {
|
|
|
1433
1447
|
],
|
|
1434
1448
|
6
|
|
1435
1449
|
/* CLASS, STYLE */
|
|
1436
|
-
)) : (E(),
|
|
1450
|
+
)) : (E(), he(s, {
|
|
1437
1451
|
key: 1,
|
|
1438
1452
|
content: r.value.title,
|
|
1439
1453
|
placement: "top"
|
|
@@ -1454,33 +1468,33 @@ const ro = Ae(no), so = {
|
|
|
1454
1468
|
error: r.value.error || r.value.type === "error",
|
|
1455
1469
|
active: r.value.active
|
|
1456
1470
|
}]),
|
|
1457
|
-
style:
|
|
1471
|
+
style: ie(e.value)
|
|
1458
1472
|
},
|
|
1459
1473
|
[
|
|
1460
|
-
t.value === "iksig" ? (E(),
|
|
1474
|
+
t.value === "iksig" ? (E(), I(
|
|
1461
1475
|
"i",
|
|
1462
1476
|
{
|
|
1463
1477
|
key: 0,
|
|
1464
1478
|
class: K(`iksig ${r.value.name}`),
|
|
1465
|
-
style:
|
|
1479
|
+
style: ie(e.value)
|
|
1466
1480
|
},
|
|
1467
1481
|
null,
|
|
1468
1482
|
6
|
|
1469
1483
|
/* CLASS, STYLE */
|
|
1470
|
-
)) : t.value === "svg" ? (E(),
|
|
1484
|
+
)) : t.value === "svg" ? (E(), I("svg", uo, [
|
|
1471
1485
|
T("use", {
|
|
1472
1486
|
"xlink:href": `#${r.value.name}`
|
|
1473
1487
|
}, null, 8, co)
|
|
1474
|
-
])) : t.value === "img" ? (E(),
|
|
1488
|
+
])) : t.value === "img" ? (E(), I("img", {
|
|
1475
1489
|
key: 2,
|
|
1476
1490
|
src: r.value.name,
|
|
1477
1491
|
class: "h-[1em] w-[1em]"
|
|
1478
|
-
}, null, 8, fo)) : (E(),
|
|
1492
|
+
}, null, 8, fo)) : (E(), I(
|
|
1479
1493
|
"i",
|
|
1480
1494
|
{
|
|
1481
1495
|
key: 3,
|
|
1482
1496
|
class: K(r.value.name),
|
|
1483
|
-
style:
|
|
1497
|
+
style: ie(e.value)
|
|
1484
1498
|
},
|
|
1485
1499
|
null,
|
|
1486
1500
|
6
|
|
@@ -1494,7 +1508,7 @@ const ro = Ae(no), so = {
|
|
|
1494
1508
|
_: 1
|
|
1495
1509
|
/* STABLE */
|
|
1496
1510
|
}, 8, ["content"]))
|
|
1497
|
-
])) : (E(),
|
|
1511
|
+
])) : (E(), he(l, {
|
|
1498
1512
|
key: 1,
|
|
1499
1513
|
type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
|
|
1500
1514
|
}, {
|
|
@@ -1524,13 +1538,13 @@ const go = /* @__PURE__ */ Ot(ho, [["__scopeId", "data-v-52806adf"]]), Ee = Ae(g
|
|
|
1524
1538
|
}
|
|
1525
1539
|
},
|
|
1526
1540
|
setup(a) {
|
|
1527
|
-
return (o, r) => (E(),
|
|
1541
|
+
return (o, r) => (E(), I(
|
|
1528
1542
|
"div",
|
|
1529
1543
|
{
|
|
1530
1544
|
class: K({ "exit-main-page-maximize": a.showBg && a.fullscreen })
|
|
1531
1545
|
},
|
|
1532
1546
|
[
|
|
1533
|
-
|
|
1547
|
+
j(S(Ee), {
|
|
1534
1548
|
name: "iksvg_guanbidanchuang",
|
|
1535
1549
|
title: "关闭",
|
|
1536
1550
|
size: 20,
|
|
@@ -1575,7 +1589,7 @@ const vo = /* @__PURE__ */ Ot(po, [["__scopeId", "data-v-da39e979"]]), mo = { cl
|
|
|
1575
1589
|
});
|
|
1576
1590
|
return (n, s) => {
|
|
1577
1591
|
const l = st("el-dialog");
|
|
1578
|
-
return E(),
|
|
1592
|
+
return E(), he(l, or({
|
|
1579
1593
|
modelValue: r.value,
|
|
1580
1594
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u),
|
|
1581
1595
|
"align-center": ""
|
|
@@ -1604,7 +1618,7 @@ const vo = /* @__PURE__ */ Ot(po, [["__scopeId", "data-v-da39e979"]]), mo = { cl
|
|
|
1604
1618
|
)
|
|
1605
1619
|
])
|
|
1606
1620
|
]),
|
|
1607
|
-
n.$attrs.showClose ? (E(),
|
|
1621
|
+
n.$attrs.showClose ? (E(), he(S(Ee), {
|
|
1608
1622
|
key: 0,
|
|
1609
1623
|
onClick: e,
|
|
1610
1624
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
@@ -1932,7 +1946,7 @@ var bo = function(a, o) {
|
|
|
1932
1946
|
});
|
|
1933
1947
|
const To = ["id"];
|
|
1934
1948
|
function Eo(a, o, r, t, e, i) {
|
|
1935
|
-
return E(),
|
|
1949
|
+
return E(), I("div", { id: a.id }, null, 8, To);
|
|
1936
1950
|
}
|
|
1937
1951
|
gi.render = Eo;
|
|
1938
1952
|
gi.__file = "src/components/DocumentEditor.vue";
|
|
@@ -1965,13 +1979,13 @@ const So = /* @__PURE__ */ J({
|
|
|
1965
1979
|
}), t = () => {
|
|
1966
1980
|
console.info("文档加载完成", o.configOptions);
|
|
1967
1981
|
};
|
|
1968
|
-
return (e, i) => (E(),
|
|
1982
|
+
return (e, i) => (E(), I(
|
|
1969
1983
|
"div",
|
|
1970
1984
|
{
|
|
1971
|
-
style:
|
|
1985
|
+
style: ie({ height: o.officeHeight })
|
|
1972
1986
|
},
|
|
1973
1987
|
[
|
|
1974
|
-
|
|
1988
|
+
j(S(gi), {
|
|
1975
1989
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1976
1990
|
ref: "editorRef",
|
|
1977
1991
|
"document-server-url": a.documentServerUrl,
|
|
@@ -2010,8 +2024,8 @@ function vt(...a) {
|
|
|
2010
2024
|
Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
|
|
2011
2025
|
const i = [], n = () => {
|
|
2012
2026
|
i.forEach((c) => c()), i.length = 0;
|
|
2013
|
-
}, s = (c, h, d,
|
|
2014
|
-
n(), c && i.push(...r.flatMap((d) => t.map((
|
|
2027
|
+
}, s = (c, h, d, g) => (c.addEventListener(h, d, g), () => c.removeEventListener(h, d, g)), l = ot(() => [Do(o), xn(e)], ([c, h]) => {
|
|
2028
|
+
n(), c && i.push(...r.flatMap((d) => t.map((g) => s(c, d, g, h))));
|
|
2015
2029
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
2016
2030
|
l(), n();
|
|
2017
2031
|
};
|
|
@@ -2140,7 +2154,7 @@ const Ho = {
|
|
|
2140
2154
|
props: Ho,
|
|
2141
2155
|
emits: Uo,
|
|
2142
2156
|
setup(a, { expose: o, emit: r }) {
|
|
2143
|
-
const t = (
|
|
2157
|
+
const t = (M) => Object.keys(M), e = {
|
|
2144
2158
|
CONTAIN: {
|
|
2145
2159
|
name: "contain",
|
|
2146
2160
|
icon: Oi(Os)
|
|
@@ -2149,30 +2163,30 @@ const Ho = {
|
|
|
2149
2163
|
name: "original",
|
|
2150
2164
|
icon: Oi(Hs)
|
|
2151
2165
|
}
|
|
2152
|
-
}, i = a, n = r, { t: s } = Cr(), l = bn("image-viewer"), { nextZIndex: u } = wr(), c = oe(), h = oe([]), d = cr(),
|
|
2166
|
+
}, i = a, n = r, { t: s } = Cr(), l = bn("image-viewer"), { nextZIndex: u } = wr(), c = oe(), h = oe([]), d = cr(), g = oe(!0), p = oe(i.initialIndex), v = fr(e.CONTAIN), y = oe({
|
|
2153
2167
|
scale: 1,
|
|
2154
2168
|
deg: 0,
|
|
2155
2169
|
offsetX: 0,
|
|
2156
2170
|
offsetY: 0,
|
|
2157
2171
|
enableTransition: !1
|
|
2158
|
-
}),
|
|
2159
|
-
const { urlList:
|
|
2160
|
-
return
|
|
2161
|
-
}), w = X(() =>
|
|
2172
|
+
}), k = oe(i.zIndex ?? u()), b = X(() => {
|
|
2173
|
+
const { urlList: M } = i;
|
|
2174
|
+
return M.length <= 1;
|
|
2175
|
+
}), w = X(() => p.value === 0), H = X(() => p.value === i.urlList.length - 1), x = X(() => i.urlList[p.value]), B = X(() => [
|
|
2162
2176
|
l.e("btn"),
|
|
2163
2177
|
l.e("prev"),
|
|
2164
2178
|
l.is("disabled", !i.infinite && w.value)
|
|
2165
|
-
]),
|
|
2179
|
+
]), A = X(() => [
|
|
2166
2180
|
l.e("btn"),
|
|
2167
2181
|
l.e("next"),
|
|
2168
|
-
l.is("disabled", !i.infinite &&
|
|
2169
|
-
]),
|
|
2170
|
-
const { scale:
|
|
2171
|
-
let ke = q /
|
|
2182
|
+
l.is("disabled", !i.infinite && H.value)
|
|
2183
|
+
]), te = X(() => {
|
|
2184
|
+
const { scale: M, deg: G, offsetX: q, offsetY: ve, enableTransition: _e } = y.value;
|
|
2185
|
+
let ke = q / M, De = ve / M;
|
|
2172
2186
|
const lt = G * Math.PI / 180, Ai = Math.cos(lt), Di = Math.sin(lt);
|
|
2173
|
-
ke = ke * Ai + De * Di, De = De * Ai - q /
|
|
2187
|
+
ke = ke * Ai + De * Di, De = De * Ai - q / M * Di;
|
|
2174
2188
|
const Ut = {
|
|
2175
|
-
transform: `scale(${
|
|
2189
|
+
transform: `scale(${M}) rotate(${G}deg) translate(${ke}px, ${De}px)`,
|
|
2176
2190
|
transition: _e ? "transform .3s" : ""
|
|
2177
2191
|
};
|
|
2178
2192
|
return v.value.name === e.CONTAIN.name && (Ut.maxWidth = Ut.maxHeight = "100%"), Ut;
|
|
@@ -2180,8 +2194,8 @@ const Ho = {
|
|
|
2180
2194
|
function Q() {
|
|
2181
2195
|
re(), n("close");
|
|
2182
2196
|
}
|
|
2183
|
-
function
|
|
2184
|
-
const
|
|
2197
|
+
function z() {
|
|
2198
|
+
const M = zt.throttle((q) => {
|
|
2185
2199
|
switch (q.code) {
|
|
2186
2200
|
case Xe.esc:
|
|
2187
2201
|
i.closeOnPressEscape && Q();
|
|
@@ -2203,39 +2217,39 @@ const Ho = {
|
|
|
2203
2217
|
break;
|
|
2204
2218
|
}
|
|
2205
2219
|
}), G = zt.throttle((q) => {
|
|
2206
|
-
const
|
|
2207
|
-
Ve(
|
|
2220
|
+
const ve = q.deltaY || q.deltaX;
|
|
2221
|
+
Ve(ve < 0 ? "zoomIn" : "zoomOut", {
|
|
2208
2222
|
zoomRate: i.zoomRate,
|
|
2209
2223
|
enableTransition: !1
|
|
2210
2224
|
});
|
|
2211
2225
|
});
|
|
2212
2226
|
d.run(() => {
|
|
2213
|
-
vt(document, "keydown",
|
|
2227
|
+
vt(document, "keydown", M), vt(document, "wheel", G);
|
|
2214
2228
|
});
|
|
2215
2229
|
}
|
|
2216
2230
|
function re() {
|
|
2217
2231
|
d.stop();
|
|
2218
2232
|
}
|
|
2219
2233
|
function ue() {
|
|
2220
|
-
|
|
2234
|
+
g.value = !1;
|
|
2221
2235
|
}
|
|
2222
|
-
function ce(
|
|
2223
|
-
|
|
2236
|
+
function ce(M) {
|
|
2237
|
+
g.value = !1, M.target.alt = s("el.image.error");
|
|
2224
2238
|
}
|
|
2225
|
-
function be(
|
|
2226
|
-
if (
|
|
2239
|
+
function be(M) {
|
|
2240
|
+
if (g.value || M.button !== 0 || !c.value)
|
|
2227
2241
|
return;
|
|
2228
2242
|
y.value.enableTransition = !1;
|
|
2229
|
-
const { offsetX: G, offsetY: q } = y.value,
|
|
2243
|
+
const { offsetX: G, offsetY: q } = y.value, ve = M.pageX, _e = M.pageY, ke = zt.throttle((lt) => {
|
|
2230
2244
|
y.value = {
|
|
2231
2245
|
...y.value,
|
|
2232
|
-
offsetX: G + lt.pageX -
|
|
2246
|
+
offsetX: G + lt.pageX - ve,
|
|
2233
2247
|
offsetY: q + lt.pageY - _e
|
|
2234
2248
|
};
|
|
2235
2249
|
}), De = vt(document, "mousemove", ke);
|
|
2236
2250
|
vt(document, "mouseup", () => {
|
|
2237
2251
|
De();
|
|
2238
|
-
}),
|
|
2252
|
+
}), M.preventDefault();
|
|
2239
2253
|
}
|
|
2240
2254
|
function xi() {
|
|
2241
2255
|
y.value = {
|
|
@@ -2247,38 +2261,38 @@ const Ho = {
|
|
|
2247
2261
|
};
|
|
2248
2262
|
}
|
|
2249
2263
|
function Ii() {
|
|
2250
|
-
if (
|
|
2264
|
+
if (g.value)
|
|
2251
2265
|
return;
|
|
2252
|
-
const
|
|
2253
|
-
v.value = e[
|
|
2266
|
+
const M = t(e), G = Object.values(e), q = v.value.name, _e = ((G == null ? void 0 : G.findIndex((ke) => ke.name === q)) + 1) % M.length;
|
|
2267
|
+
v.value = e[M[_e]], xi();
|
|
2254
2268
|
}
|
|
2255
|
-
function Ht(
|
|
2269
|
+
function Ht(M) {
|
|
2256
2270
|
const G = i.urlList.length;
|
|
2257
|
-
|
|
2271
|
+
p.value = (M + G) % G;
|
|
2258
2272
|
}
|
|
2259
2273
|
function Pi() {
|
|
2260
|
-
w.value && !i.infinite || Ht(
|
|
2274
|
+
w.value && !i.infinite || Ht(p.value - 1);
|
|
2261
2275
|
}
|
|
2262
2276
|
function Li() {
|
|
2263
|
-
|
|
2277
|
+
H.value && !i.infinite || Ht(p.value + 1);
|
|
2264
2278
|
}
|
|
2265
|
-
function Ve(
|
|
2266
|
-
if (
|
|
2279
|
+
function Ve(M, G = {}) {
|
|
2280
|
+
if (g.value)
|
|
2267
2281
|
return;
|
|
2268
|
-
const { minScale: q, maxScale:
|
|
2282
|
+
const { minScale: q, maxScale: ve } = i, { zoomRate: _e, rotateDeg: ke, enableTransition: De } = {
|
|
2269
2283
|
zoomRate: i.zoomRate,
|
|
2270
2284
|
rotateDeg: 90,
|
|
2271
2285
|
enableTransition: !0,
|
|
2272
2286
|
...G
|
|
2273
2287
|
};
|
|
2274
|
-
switch (
|
|
2288
|
+
switch (M) {
|
|
2275
2289
|
case "zoomOut":
|
|
2276
2290
|
y.value.scale > q && (y.value.scale = Number.parseFloat(
|
|
2277
2291
|
(y.value.scale / _e).toFixed(3)
|
|
2278
2292
|
));
|
|
2279
2293
|
break;
|
|
2280
2294
|
case "zoomIn":
|
|
2281
|
-
y.value.scale <
|
|
2295
|
+
y.value.scale < ve && (y.value.scale = Number.parseFloat(
|
|
2282
2296
|
(y.value.scale * _e).toFixed(3)
|
|
2283
2297
|
));
|
|
2284
2298
|
break;
|
|
@@ -2291,23 +2305,23 @@ const Ho = {
|
|
|
2291
2305
|
}
|
|
2292
2306
|
y.value.enableTransition = De;
|
|
2293
2307
|
}
|
|
2294
|
-
return ot(
|
|
2308
|
+
return ot(x, () => {
|
|
2295
2309
|
hi(() => {
|
|
2296
|
-
const
|
|
2297
|
-
|
|
2310
|
+
const M = h.value[0];
|
|
2311
|
+
M != null && M.complete || (g.value = !0);
|
|
2298
2312
|
});
|
|
2299
|
-
}), ot(
|
|
2300
|
-
xi(), n("switch",
|
|
2313
|
+
}), ot(p, (M) => {
|
|
2314
|
+
xi(), n("switch", M);
|
|
2301
2315
|
}), hr(() => {
|
|
2302
|
-
var
|
|
2303
|
-
|
|
2316
|
+
var M, G;
|
|
2317
|
+
z(), (G = (M = c.value) == null ? void 0 : M.focus) == null || G.call(M);
|
|
2304
2318
|
}), o({
|
|
2305
2319
|
/**
|
|
2306
2320
|
* @description manually switch image
|
|
2307
2321
|
*/
|
|
2308
2322
|
setActiveItem: Ht
|
|
2309
|
-
}), (
|
|
2310
|
-
|
|
2323
|
+
}), (M, G) => (E(), he(kn, { to: "body" }, [
|
|
2324
|
+
j(Cn, {
|
|
2311
2325
|
name: "viewer-fade",
|
|
2312
2326
|
appear: ""
|
|
2313
2327
|
}, {
|
|
@@ -2319,14 +2333,14 @@ const Ho = {
|
|
|
2319
2333
|
ref: c,
|
|
2320
2334
|
tabindex: -1,
|
|
2321
2335
|
class: K(S(l).e("wrapper")),
|
|
2322
|
-
style:
|
|
2336
|
+
style: ie({ zIndex: k.value })
|
|
2323
2337
|
},
|
|
2324
2338
|
[
|
|
2325
2339
|
T(
|
|
2326
2340
|
"div",
|
|
2327
2341
|
{
|
|
2328
2342
|
class: K(S(l).e("mask")),
|
|
2329
|
-
onClick: G[0] || (G[0] = Ct((q) =>
|
|
2343
|
+
onClick: G[0] || (G[0] = Ct((q) => M.hideOnClickModal && Q(), ["self"]))
|
|
2330
2344
|
},
|
|
2331
2345
|
null,
|
|
2332
2346
|
2
|
|
@@ -2340,9 +2354,9 @@ const Ho = {
|
|
|
2340
2354
|
onClick: Q
|
|
2341
2355
|
},
|
|
2342
2356
|
[
|
|
2343
|
-
|
|
2357
|
+
j(S(Oe), null, {
|
|
2344
2358
|
default: ee(() => [
|
|
2345
|
-
|
|
2359
|
+
j(S(Tn))
|
|
2346
2360
|
]),
|
|
2347
2361
|
_: 1
|
|
2348
2362
|
/* STABLE */
|
|
@@ -2352,20 +2366,20 @@ const Ho = {
|
|
|
2352
2366
|
/* CLASS */
|
|
2353
2367
|
),
|
|
2354
2368
|
Y(" ARROW "),
|
|
2355
|
-
b.value ? Y("v-if", !0) : (E(),
|
|
2369
|
+
b.value ? Y("v-if", !0) : (E(), I(
|
|
2356
2370
|
pe,
|
|
2357
2371
|
{ key: 0 },
|
|
2358
2372
|
[
|
|
2359
2373
|
T(
|
|
2360
2374
|
"span",
|
|
2361
2375
|
{
|
|
2362
|
-
class: K(
|
|
2376
|
+
class: K(B.value),
|
|
2363
2377
|
onClick: Pi
|
|
2364
2378
|
},
|
|
2365
2379
|
[
|
|
2366
|
-
|
|
2380
|
+
j(S(Oe), null, {
|
|
2367
2381
|
default: ee(() => [
|
|
2368
|
-
|
|
2382
|
+
j(S(Is))
|
|
2369
2383
|
]),
|
|
2370
2384
|
_: 1
|
|
2371
2385
|
/* STABLE */
|
|
@@ -2377,13 +2391,13 @@ const Ho = {
|
|
|
2377
2391
|
T(
|
|
2378
2392
|
"span",
|
|
2379
2393
|
{
|
|
2380
|
-
class: K(
|
|
2394
|
+
class: K(A.value),
|
|
2381
2395
|
onClick: Li
|
|
2382
2396
|
},
|
|
2383
2397
|
[
|
|
2384
|
-
|
|
2398
|
+
j(S(Oe), null, {
|
|
2385
2399
|
default: ee(() => [
|
|
2386
|
-
|
|
2400
|
+
j(S(Ls))
|
|
2387
2401
|
]),
|
|
2388
2402
|
_: 1
|
|
2389
2403
|
/* STABLE */
|
|
@@ -2409,20 +2423,20 @@ const Ho = {
|
|
|
2409
2423
|
class: K(S(l).e("actions__inner"))
|
|
2410
2424
|
},
|
|
2411
2425
|
[
|
|
2412
|
-
|
|
2426
|
+
j(S(Oe), {
|
|
2413
2427
|
onClick: G[1] || (G[1] = (q) => Ve("zoomOut"))
|
|
2414
2428
|
}, {
|
|
2415
2429
|
default: ee(() => [
|
|
2416
|
-
|
|
2430
|
+
j(S(js))
|
|
2417
2431
|
]),
|
|
2418
2432
|
_: 1
|
|
2419
2433
|
/* STABLE */
|
|
2420
2434
|
}),
|
|
2421
|
-
|
|
2435
|
+
j(S(Oe), {
|
|
2422
2436
|
onClick: G[2] || (G[2] = (q) => Ve("zoomIn"))
|
|
2423
2437
|
}, {
|
|
2424
2438
|
default: ee(() => [
|
|
2425
|
-
|
|
2439
|
+
j(S(zs))
|
|
2426
2440
|
]),
|
|
2427
2441
|
_: 1
|
|
2428
2442
|
/* STABLE */
|
|
@@ -2436,9 +2450,9 @@ const Ho = {
|
|
|
2436
2450
|
2
|
|
2437
2451
|
/* CLASS */
|
|
2438
2452
|
),
|
|
2439
|
-
|
|
2453
|
+
j(S(Oe), { onClick: Ii }, {
|
|
2440
2454
|
default: ee(() => [
|
|
2441
|
-
(E(),
|
|
2455
|
+
(E(), he(dr(v.value.icon)))
|
|
2442
2456
|
]),
|
|
2443
2457
|
_: 1
|
|
2444
2458
|
/* STABLE */
|
|
@@ -2452,20 +2466,20 @@ const Ho = {
|
|
|
2452
2466
|
2
|
|
2453
2467
|
/* CLASS */
|
|
2454
2468
|
),
|
|
2455
|
-
|
|
2469
|
+
j(S(Oe), {
|
|
2456
2470
|
onClick: G[3] || (G[3] = (q) => Ve("anticlockwise"))
|
|
2457
2471
|
}, {
|
|
2458
2472
|
default: ee(() => [
|
|
2459
|
-
|
|
2473
|
+
j(S(Fs))
|
|
2460
2474
|
]),
|
|
2461
2475
|
_: 1
|
|
2462
2476
|
/* STABLE */
|
|
2463
2477
|
}),
|
|
2464
|
-
|
|
2478
|
+
j(S(Oe), {
|
|
2465
2479
|
onClick: G[4] || (G[4] = (q) => Ve("clockwise"))
|
|
2466
2480
|
}, {
|
|
2467
2481
|
default: ee(() => [
|
|
2468
|
-
|
|
2482
|
+
j(S(Ns))
|
|
2469
2483
|
]),
|
|
2470
2484
|
_: 1
|
|
2471
2485
|
/* STABLE */
|
|
@@ -2485,22 +2499,22 @@ const Ho = {
|
|
|
2485
2499
|
class: K(S(l).e("canvas"))
|
|
2486
2500
|
},
|
|
2487
2501
|
[
|
|
2488
|
-
(E(!0),
|
|
2502
|
+
(E(!0), I(
|
|
2489
2503
|
pe,
|
|
2490
2504
|
null,
|
|
2491
|
-
rt(
|
|
2505
|
+
rt(M.urlList, (q, ve) => gr((E(), I("img", {
|
|
2492
2506
|
ref_for: !0,
|
|
2493
|
-
ref: (_e) => h.value[
|
|
2507
|
+
ref: (_e) => h.value[ve] = _e,
|
|
2494
2508
|
key: q,
|
|
2495
2509
|
src: q,
|
|
2496
|
-
style: te
|
|
2510
|
+
style: ie(te.value),
|
|
2497
2511
|
class: K(S(l).e("img")),
|
|
2498
|
-
crossorigin:
|
|
2512
|
+
crossorigin: M.crossorigin,
|
|
2499
2513
|
onLoad: ue,
|
|
2500
2514
|
onError: ce,
|
|
2501
2515
|
onMousedown: be
|
|
2502
2516
|
}, null, 46, zo)), [
|
|
2503
|
-
[pr,
|
|
2517
|
+
[pr, ve === p.value]
|
|
2504
2518
|
])),
|
|
2505
2519
|
128
|
|
2506
2520
|
/* KEYED_FRAGMENT */
|
|
@@ -2509,7 +2523,7 @@ const Ho = {
|
|
|
2509
2523
|
2
|
|
2510
2524
|
/* CLASS */
|
|
2511
2525
|
),
|
|
2512
|
-
Ne(
|
|
2526
|
+
Ne(M.$slots, "default")
|
|
2513
2527
|
],
|
|
2514
2528
|
6
|
|
2515
2529
|
/* CLASS, STYLE */
|
|
@@ -2550,7 +2564,7 @@ function ae(a) {
|
|
|
2550
2564
|
return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
2551
2565
|
}, ae(a);
|
|
2552
2566
|
}
|
|
2553
|
-
function
|
|
2567
|
+
function P(a, o) {
|
|
2554
2568
|
if (!(a instanceof o))
|
|
2555
2569
|
throw new TypeError("Cannot call a class as a function");
|
|
2556
2570
|
}
|
|
@@ -2560,7 +2574,7 @@ function Gi(a, o) {
|
|
|
2560
2574
|
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(a, In(t.key), t);
|
|
2561
2575
|
}
|
|
2562
2576
|
}
|
|
2563
|
-
function
|
|
2577
|
+
function L(a, o, r) {
|
|
2564
2578
|
return o && Gi(a.prototype, o), r && Gi(a, r), Object.defineProperty(a, "prototype", {
|
|
2565
2579
|
writable: !1
|
|
2566
2580
|
}), a;
|
|
@@ -2573,7 +2587,7 @@ function _(a, o, r) {
|
|
|
2573
2587
|
writable: !0
|
|
2574
2588
|
}) : a[o] = r, a;
|
|
2575
2589
|
}
|
|
2576
|
-
function
|
|
2590
|
+
function D(a, o) {
|
|
2577
2591
|
if (typeof o != "function" && o !== null)
|
|
2578
2592
|
throw new TypeError("Super expression must either be null or a function");
|
|
2579
2593
|
a.prototype = Object.create(o && o.prototype, {
|
|
@@ -2620,7 +2634,7 @@ function pi(a, o) {
|
|
|
2620
2634
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
2621
2635
|
return m(a);
|
|
2622
2636
|
}
|
|
2623
|
-
function
|
|
2637
|
+
function O(a) {
|
|
2624
2638
|
var o = Wo();
|
|
2625
2639
|
return function() {
|
|
2626
2640
|
var t = R(a), e;
|
|
@@ -2637,14 +2651,14 @@ function Go(a, o) {
|
|
|
2637
2651
|
;
|
|
2638
2652
|
return a;
|
|
2639
2653
|
}
|
|
2640
|
-
function
|
|
2641
|
-
return typeof Reflect < "u" && Reflect.get ?
|
|
2654
|
+
function F() {
|
|
2655
|
+
return typeof Reflect < "u" && Reflect.get ? F = Reflect.get.bind() : F = function(o, r, t) {
|
|
2642
2656
|
var e = Go(o, r);
|
|
2643
2657
|
if (e) {
|
|
2644
2658
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
2645
2659
|
return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
|
|
2646
2660
|
}
|
|
2647
|
-
},
|
|
2661
|
+
}, F.apply(this, arguments);
|
|
2648
2662
|
}
|
|
2649
2663
|
function me(a) {
|
|
2650
2664
|
return $o(a) || Ko(a) || Yo(a) || Xo();
|
|
@@ -2706,8 +2720,8 @@ var Pn = { exports: {} };
|
|
|
2706
2720
|
function i(l, u, c, h, d) {
|
|
2707
2721
|
if (typeof c != "function")
|
|
2708
2722
|
throw new TypeError("The listener must be a function");
|
|
2709
|
-
var
|
|
2710
|
-
return l._events[
|
|
2723
|
+
var g = new e(c, h || l, d), p = r ? r + u : u;
|
|
2724
|
+
return l._events[p] ? l._events[p].fn ? l._events[p] = [l._events[p], g] : l._events[p].push(g) : (l._events[p] = g, l._eventsCount++), l;
|
|
2711
2725
|
}
|
|
2712
2726
|
function n(l, u) {
|
|
2713
2727
|
--l._eventsCount === 0 ? l._events = new t() : delete l._events[u];
|
|
@@ -2728,19 +2742,19 @@ var Pn = { exports: {} };
|
|
|
2728
2742
|
return [];
|
|
2729
2743
|
if (h.fn)
|
|
2730
2744
|
return [h.fn];
|
|
2731
|
-
for (var d = 0,
|
|
2732
|
-
|
|
2733
|
-
return
|
|
2745
|
+
for (var d = 0, g = h.length, p = new Array(g); d < g; d++)
|
|
2746
|
+
p[d] = h[d].fn;
|
|
2747
|
+
return p;
|
|
2734
2748
|
}, s.prototype.listenerCount = function(u) {
|
|
2735
2749
|
var c = r ? r + u : u, h = this._events[c];
|
|
2736
2750
|
return h ? h.fn ? 1 : h.length : 0;
|
|
2737
|
-
}, s.prototype.emit = function(u, c, h, d,
|
|
2751
|
+
}, s.prototype.emit = function(u, c, h, d, g, p) {
|
|
2738
2752
|
var v = r ? r + u : u;
|
|
2739
2753
|
if (!this._events[v])
|
|
2740
2754
|
return !1;
|
|
2741
|
-
var y = this._events[v],
|
|
2755
|
+
var y = this._events[v], k = arguments.length, b, w;
|
|
2742
2756
|
if (y.fn) {
|
|
2743
|
-
switch (y.once && this.removeListener(u, y.fn, void 0, !0),
|
|
2757
|
+
switch (y.once && this.removeListener(u, y.fn, void 0, !0), k) {
|
|
2744
2758
|
case 1:
|
|
2745
2759
|
return y.fn.call(y.context), !0;
|
|
2746
2760
|
case 2:
|
|
@@ -2750,17 +2764,17 @@ var Pn = { exports: {} };
|
|
|
2750
2764
|
case 4:
|
|
2751
2765
|
return y.fn.call(y.context, c, h, d), !0;
|
|
2752
2766
|
case 5:
|
|
2753
|
-
return y.fn.call(y.context, c, h, d,
|
|
2767
|
+
return y.fn.call(y.context, c, h, d, g), !0;
|
|
2754
2768
|
case 6:
|
|
2755
|
-
return y.fn.call(y.context, c, h, d,
|
|
2769
|
+
return y.fn.call(y.context, c, h, d, g, p), !0;
|
|
2756
2770
|
}
|
|
2757
|
-
for (w = 1, b = new Array(
|
|
2771
|
+
for (w = 1, b = new Array(k - 1); w < k; w++)
|
|
2758
2772
|
b[w - 1] = arguments[w];
|
|
2759
2773
|
y.fn.apply(y.context, b);
|
|
2760
2774
|
} else {
|
|
2761
|
-
var
|
|
2762
|
-
for (w = 0; w <
|
|
2763
|
-
switch (y[w].once && this.removeListener(u, y[w].fn, void 0, !0),
|
|
2775
|
+
var H = y.length, x;
|
|
2776
|
+
for (w = 0; w < H; w++)
|
|
2777
|
+
switch (y[w].once && this.removeListener(u, y[w].fn, void 0, !0), k) {
|
|
2764
2778
|
case 1:
|
|
2765
2779
|
y[w].fn.call(y[w].context);
|
|
2766
2780
|
break;
|
|
@@ -2775,8 +2789,8 @@ var Pn = { exports: {} };
|
|
|
2775
2789
|
break;
|
|
2776
2790
|
default:
|
|
2777
2791
|
if (!b)
|
|
2778
|
-
for (
|
|
2779
|
-
b[
|
|
2792
|
+
for (x = 1, b = new Array(k - 1); x < k; x++)
|
|
2793
|
+
b[x - 1] = arguments[x];
|
|
2780
2794
|
y[w].fn.apply(y[w].context, b);
|
|
2781
2795
|
}
|
|
2782
2796
|
}
|
|
@@ -2786,18 +2800,18 @@ var Pn = { exports: {} };
|
|
|
2786
2800
|
}, s.prototype.once = function(u, c, h) {
|
|
2787
2801
|
return i(this, u, c, h, !0);
|
|
2788
2802
|
}, s.prototype.removeListener = function(u, c, h, d) {
|
|
2789
|
-
var
|
|
2790
|
-
if (!this._events[
|
|
2803
|
+
var g = r ? r + u : u;
|
|
2804
|
+
if (!this._events[g])
|
|
2791
2805
|
return this;
|
|
2792
2806
|
if (!c)
|
|
2793
|
-
return n(this,
|
|
2794
|
-
var
|
|
2795
|
-
if (
|
|
2796
|
-
|
|
2807
|
+
return n(this, g), this;
|
|
2808
|
+
var p = this._events[g];
|
|
2809
|
+
if (p.fn)
|
|
2810
|
+
p.fn === c && (!d || p.once) && (!h || p.context === h) && n(this, g);
|
|
2797
2811
|
else {
|
|
2798
|
-
for (var v = 0, y = [],
|
|
2799
|
-
(
|
|
2800
|
-
y.length ? this._events[
|
|
2812
|
+
for (var v = 0, y = [], k = p.length; v < k; v++)
|
|
2813
|
+
(p[v].fn !== c || d && !p[v].once || h && p[v].context !== h) && y.push(p[v]);
|
|
2814
|
+
y.length ? this._events[g] = y.length === 1 ? y[0] : y : n(this, g);
|
|
2801
2815
|
}
|
|
2802
2816
|
return this;
|
|
2803
2817
|
}, s.prototype.removeAllListeners = function(u) {
|
|
@@ -2811,7 +2825,7 @@ var Zo = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
2811
2825
|
info: "color: #525252; background-color: #90ee90;",
|
|
2812
2826
|
error: "color: #525252; background-color: red;",
|
|
2813
2827
|
warn: "color: #525252; background-color: yellow; "
|
|
2814
|
-
}, jt = "%c[xgplayer]",
|
|
2828
|
+
}, jt = "%c[xgplayer]", U = {
|
|
2815
2829
|
config: {
|
|
2816
2830
|
debug: Zo ? 3 : 0
|
|
2817
2831
|
},
|
|
@@ -2835,13 +2849,13 @@ var Zo = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
2835
2849
|
}
|
|
2836
2850
|
};
|
|
2837
2851
|
function Jo(a) {
|
|
2838
|
-
a.logInfo =
|
|
2852
|
+
a.logInfo = U.logInfo.bind(a), a.logWarn = U.logWarn.bind(a), a.logError = U.logError.bind(a);
|
|
2839
2853
|
}
|
|
2840
2854
|
var Qo = /* @__PURE__ */ function() {
|
|
2841
2855
|
function a(o) {
|
|
2842
|
-
|
|
2856
|
+
P(this, a), this.bufferedList = o;
|
|
2843
2857
|
}
|
|
2844
|
-
return
|
|
2858
|
+
return L(a, [{
|
|
2845
2859
|
key: "start",
|
|
2846
2860
|
value: function(r) {
|
|
2847
2861
|
return this.bufferedList[r].start;
|
|
@@ -2875,7 +2889,7 @@ f.createDomFromHtml = function(a) {
|
|
|
2875
2889
|
e.setAttribute(i, o[i]);
|
|
2876
2890
|
}), e) : null;
|
|
2877
2891
|
} catch (i) {
|
|
2878
|
-
return
|
|
2892
|
+
return U.logError("util.createDomFromHtml", i), null;
|
|
2879
2893
|
}
|
|
2880
2894
|
};
|
|
2881
2895
|
f.hasClass = function(a, o) {
|
|
@@ -2932,7 +2946,7 @@ f.findDom = function() {
|
|
|
2932
2946
|
try {
|
|
2933
2947
|
r = a.querySelector(o);
|
|
2934
2948
|
} catch (t) {
|
|
2935
|
-
|
|
2949
|
+
U.logError("util.findDom", t), o.indexOf("#") === 0 && (r = a.getElementById(o.slice(1)));
|
|
2936
2950
|
}
|
|
2937
2951
|
return r;
|
|
2938
2952
|
};
|
|
@@ -3287,63 +3301,63 @@ function Dn(a) {
|
|
|
3287
3301
|
return a !== null && (o === "object" || o === "function");
|
|
3288
3302
|
}
|
|
3289
3303
|
function ta(a, o, r) {
|
|
3290
|
-
var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0,
|
|
3304
|
+
var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, g = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
|
|
3291
3305
|
if (typeof a != "function")
|
|
3292
3306
|
throw new TypeError("Expected a function");
|
|
3293
3307
|
o = +o || 0, Dn(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, o) : i, d = "trailing" in r ? !!r.trailing : d);
|
|
3294
|
-
function
|
|
3308
|
+
function p(z) {
|
|
3295
3309
|
var re = t, ue = e;
|
|
3296
|
-
return t = e = void 0, u =
|
|
3310
|
+
return t = e = void 0, u = z, n = a.apply(ue, re), n;
|
|
3297
3311
|
}
|
|
3298
|
-
function v(
|
|
3299
|
-
return
|
|
3312
|
+
function v(z, re) {
|
|
3313
|
+
return g ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(z)) : setTimeout(z, re);
|
|
3300
3314
|
}
|
|
3301
|
-
function y(
|
|
3302
|
-
if (
|
|
3303
|
-
return window.cancelAnimationFrame(
|
|
3304
|
-
clearTimeout(
|
|
3315
|
+
function y(z) {
|
|
3316
|
+
if (g)
|
|
3317
|
+
return window.cancelAnimationFrame(z);
|
|
3318
|
+
clearTimeout(z);
|
|
3305
3319
|
}
|
|
3306
|
-
function
|
|
3307
|
-
return u =
|
|
3320
|
+
function k(z) {
|
|
3321
|
+
return u = z, s = v(H, o), c ? p(z) : n;
|
|
3308
3322
|
}
|
|
3309
|
-
function b(
|
|
3310
|
-
var re =
|
|
3323
|
+
function b(z) {
|
|
3324
|
+
var re = z - l, ue = z - u, ce = o - re;
|
|
3311
3325
|
return h ? Math.min(ce, i - ue) : ce;
|
|
3312
3326
|
}
|
|
3313
|
-
function w(
|
|
3314
|
-
var re =
|
|
3327
|
+
function w(z) {
|
|
3328
|
+
var re = z - l, ue = z - u;
|
|
3315
3329
|
return l === void 0 || re >= o || re < 0 || h && ue >= i;
|
|
3316
3330
|
}
|
|
3317
|
-
function
|
|
3318
|
-
var
|
|
3319
|
-
if (w(
|
|
3320
|
-
return
|
|
3321
|
-
s = v(
|
|
3331
|
+
function H() {
|
|
3332
|
+
var z = Date.now();
|
|
3333
|
+
if (w(z))
|
|
3334
|
+
return x(z);
|
|
3335
|
+
s = v(H, b(z));
|
|
3322
3336
|
}
|
|
3323
|
-
function
|
|
3324
|
-
return s = void 0, d && t ?
|
|
3337
|
+
function x(z) {
|
|
3338
|
+
return s = void 0, d && t ? p(z) : (t = e = void 0, n);
|
|
3325
3339
|
}
|
|
3326
|
-
function
|
|
3340
|
+
function B() {
|
|
3327
3341
|
s !== void 0 && y(s), u = 0, t = l = e = s = void 0;
|
|
3328
3342
|
}
|
|
3329
|
-
function
|
|
3330
|
-
return s === void 0 ? n :
|
|
3343
|
+
function A() {
|
|
3344
|
+
return s === void 0 ? n : x(Date.now());
|
|
3331
3345
|
}
|
|
3332
|
-
function
|
|
3346
|
+
function te() {
|
|
3333
3347
|
return s !== void 0;
|
|
3334
3348
|
}
|
|
3335
3349
|
function Q() {
|
|
3336
|
-
for (var
|
|
3350
|
+
for (var z = Date.now(), re = w(z), ue = arguments.length, ce = new Array(ue), be = 0; be < ue; be++)
|
|
3337
3351
|
ce[be] = arguments[be];
|
|
3338
|
-
if (t = ce, e = this, l =
|
|
3352
|
+
if (t = ce, e = this, l = z, re) {
|
|
3339
3353
|
if (s === void 0)
|
|
3340
|
-
return
|
|
3354
|
+
return k(l);
|
|
3341
3355
|
if (h)
|
|
3342
|
-
return s = v(
|
|
3356
|
+
return s = v(H, o), p(l);
|
|
3343
3357
|
}
|
|
3344
|
-
return s === void 0 && (s = v(
|
|
3358
|
+
return s === void 0 && (s = v(H, o)), n;
|
|
3345
3359
|
}
|
|
3346
|
-
return Q.cancel =
|
|
3360
|
+
return Q.cancel = B, Q.flush = A, Q.pending = te, Q;
|
|
3347
3361
|
}
|
|
3348
3362
|
function ia(a, o, r) {
|
|
3349
3363
|
var t = !0, e = !0;
|
|
@@ -3368,9 +3382,9 @@ function ra(a, o, r) {
|
|
|
3368
3382
|
var $i = {
|
|
3369
3383
|
android: /(Android)\s([\d.]+)/,
|
|
3370
3384
|
ios: /(Version)\/([\d.]+)/
|
|
3371
|
-
}, sa = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"],
|
|
3385
|
+
}, sa = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], N = {
|
|
3372
3386
|
get device() {
|
|
3373
|
-
var a =
|
|
3387
|
+
var a = N.os;
|
|
3374
3388
|
return a.isPc ? "pc" : "mobile";
|
|
3375
3389
|
},
|
|
3376
3390
|
get browser() {
|
|
@@ -3484,7 +3498,7 @@ var $i = {
|
|
|
3484
3498
|
4: 5104,
|
|
3485
3499
|
5: 5105,
|
|
3486
3500
|
6: 5106
|
|
3487
|
-
}, bt = /* @__PURE__ */
|
|
3501
|
+
}, bt = /* @__PURE__ */ L(
|
|
3488
3502
|
function a(o) {
|
|
3489
3503
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
3490
3504
|
errorType: "",
|
|
@@ -3494,12 +3508,12 @@ var $i = {
|
|
|
3494
3508
|
ext: {},
|
|
3495
3509
|
mediaError: null
|
|
3496
3510
|
};
|
|
3497
|
-
|
|
3511
|
+
P(this, a);
|
|
3498
3512
|
var t = o && o.i18n ? o.i18n.ERROR_TYPES : null;
|
|
3499
3513
|
if (o.media) {
|
|
3500
|
-
var e = r.mediaError ? r.mediaError : o.media.error || {}, i = o.duration, n = o.currentTime, s = o.ended, l = o.src, u = o.currentSrc, c = o.media, h = c.readyState, d = c.networkState,
|
|
3501
|
-
Yi[
|
|
3502
|
-
var
|
|
3514
|
+
var e = r.mediaError ? r.mediaError : o.media.error || {}, i = o.duration, n = o.currentTime, s = o.ended, l = o.src, u = o.currentSrc, c = o.media, h = c.readyState, d = c.networkState, g = r.errorCode || e.code;
|
|
3515
|
+
Yi[g] && (g = Yi[g]);
|
|
3516
|
+
var p = {
|
|
3503
3517
|
playerVersion: ai,
|
|
3504
3518
|
currentTime: n,
|
|
3505
3519
|
duration: i,
|
|
@@ -3508,25 +3522,25 @@ var $i = {
|
|
|
3508
3522
|
networkState: d,
|
|
3509
3523
|
src: l || u,
|
|
3510
3524
|
errorType: r.errorType,
|
|
3511
|
-
errorCode:
|
|
3525
|
+
errorCode: g,
|
|
3512
3526
|
message: r.errorMessage || e.message,
|
|
3513
3527
|
mediaError: e,
|
|
3514
3528
|
originError: r.originError ? r.originError.stack : "",
|
|
3515
3529
|
host: f.getHostFromUrl(l || u)
|
|
3516
3530
|
};
|
|
3517
3531
|
return r.ext && Object.keys(r.ext).map(function(b) {
|
|
3518
|
-
|
|
3519
|
-
}),
|
|
3532
|
+
p[b] = r.ext[b];
|
|
3533
|
+
}), p;
|
|
3520
3534
|
} else if (arguments.length > 1) {
|
|
3521
3535
|
for (var v = {
|
|
3522
3536
|
playerVersion: ai,
|
|
3523
3537
|
domain: document.domain
|
|
3524
|
-
}, y = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"],
|
|
3525
|
-
v[y[
|
|
3538
|
+
}, y = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], k = 0; k < arguments.length; k++)
|
|
3539
|
+
v[y[k]] = arguments[k];
|
|
3526
3540
|
return v.ex = t ? (t[arguments[0]] || {}).msg : "", v;
|
|
3527
3541
|
}
|
|
3528
3542
|
}
|
|
3529
|
-
),
|
|
3543
|
+
), ge = "play", vi = "playing", $e = "ended", at = "pause", gt = "error", Rt = "seeking", Pe = "seeked", de = "timeupdate", pt = "waiting", Ie = "canplay", oa = "canplaythrough", Ue = "durationchange", On = "volumechange", Le = "loadeddata", aa = "loadedmetadata", Rn = "ratechange", Fn = "progress", mi = "loadstart", Ke = "emptied", la = "stalled", ua = "suspend", ca = "abort", fa = "bufferedChange", yi = "focus", Mn = "blur", _i = "ready", Nn = "urlNull", Ge = "autoplay_started", ki = "autoplay_was_prevented", Ft = "complete", Tt = "replay", Ci = "destroy", Mt = "urlchange", li = "download_speed_change", Bn = "leaveplayer", Hn = "enterplayer", Un = "loading", Te = "fullscreen_change", Et = "cssFullscreen_change", St = "mini_state_change", wi = "definition_change", ha = "before_definition_change", ui = "after_definition_change", da = "SEI_PARSED", ga = "retry", Be = "video_resize", ci = "pip_change", zn = "rotate", Vn = "screenShot", xt = "playnext", jn = "shortcut", Wn = "xglog", It = "user_action", Nt = "reset", Gn = "source_error", $n = "source_success", pa = "switch_subtitle", Kn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Yn = {
|
|
3530
3544
|
STATS_INFO: "stats_info",
|
|
3531
3545
|
STATS_DOWNLOAD: "stats_download",
|
|
3532
3546
|
STATS_RESET: "stats_reset"
|
|
@@ -3561,7 +3575,7 @@ const va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3561
3575
|
MINI_STATE_CHANGE: St,
|
|
3562
3576
|
PAUSE: at,
|
|
3563
3577
|
PIP_CHANGE: ci,
|
|
3564
|
-
PLAY:
|
|
3578
|
+
PLAY: ge,
|
|
3565
3579
|
PLAYER_BLUR: Mn,
|
|
3566
3580
|
PLAYER_FOCUS: yi,
|
|
3567
3581
|
PLAYING: vi,
|
|
@@ -3584,7 +3598,7 @@ const va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3584
3598
|
STATS_EVENTS: Yn,
|
|
3585
3599
|
SUSPEND: ua,
|
|
3586
3600
|
SWITCH_SUBTITLE: pa,
|
|
3587
|
-
TIME_UPDATE:
|
|
3601
|
+
TIME_UPDATE: de,
|
|
3588
3602
|
URL_CHANGE: Mt,
|
|
3589
3603
|
URL_NULL: Nn,
|
|
3590
3604
|
USER_ACTION: It,
|
|
@@ -3633,11 +3647,11 @@ function ma(a, o) {
|
|
|
3633
3647
|
};
|
|
3634
3648
|
}
|
|
3635
3649
|
var ya = /* @__PURE__ */ function(a) {
|
|
3636
|
-
|
|
3637
|
-
var o =
|
|
3650
|
+
D(r, a);
|
|
3651
|
+
var o = O(r);
|
|
3638
3652
|
function r(t) {
|
|
3639
3653
|
var e;
|
|
3640
|
-
|
|
3654
|
+
P(this, r), e = o.call(this, t), e._hasStart = !1, e._currentTime = 0, e._duration = 0, e._internalOp = {}, e._lastMuted = !1, e.vtype = "MP4", e._rate = -1, e.mediaConfig = Object.assign({}, {
|
|
3641
3655
|
controls: !1,
|
|
3642
3656
|
autoplay: t.autoplay,
|
|
3643
3657
|
playsinline: t.playsinline,
|
|
@@ -3652,9 +3666,9 @@ var ya = /* @__PURE__ */ function(a) {
|
|
|
3652
3666
|
"data-index": -1
|
|
3653
3667
|
}, t.videoConfig, t.videoAttributes);
|
|
3654
3668
|
var i = t["x5-video-player-type"] || t.x5VideoPlayerType;
|
|
3655
|
-
return
|
|
3669
|
+
return N.isWeixin && N.os.isAndroid && i && (e.mediaConfig["x5-video-player-type"] = i, delete e.mediaConfig.playsinline, delete e.mediaConfig["webkit-playsinline"], delete e.mediaConfig["x5-playsinline"]), t.loop && (e.mediaConfig.loop = "loop"), t.autoplayMuted && !Object.prototype.hasOwnProperty.call(e.mediaConfig, "muted") && (e.mediaConfig.muted = !0), e.media = f.createDom(e.mediaConfig.mediaType, "", e.mediaConfig, ""), t.defaultPlaybackRate && (e.media.defaultPlaybackRate = e.media.playbackRate = t.defaultPlaybackRate), f.typeOf(t.volume) === "Number" && (e.volume = t.volume), t.autoplayMuted && (e.media.muted = !0, e._lastMuted = !0), t.autoplay && (e.media.autoplay = !0), e._interval = {}, e.mediaEventMiddleware = {}, e.attachVideoEvents(), e;
|
|
3656
3670
|
}
|
|
3657
|
-
return
|
|
3671
|
+
return L(r, [{
|
|
3658
3672
|
key: "setEventsMiddleware",
|
|
3659
3673
|
value: function(e) {
|
|
3660
3674
|
var i = this;
|
|
@@ -3721,15 +3735,15 @@ var ya = /* @__PURE__ */ function(a) {
|
|
|
3721
3735
|
!this._sourceError && (this._sourceError = function(h) {
|
|
3722
3736
|
var d = parseInt(h.target.getAttribute("data-index"), 10);
|
|
3723
3737
|
if (n._videoSourceIndex--, n._videoSourceIndex === 0 || d >= n._videoSourceCount) {
|
|
3724
|
-
var
|
|
3738
|
+
var g = {
|
|
3725
3739
|
code: 4,
|
|
3726
3740
|
message: "sources_load_error"
|
|
3727
3741
|
};
|
|
3728
|
-
l ? l.error(h,
|
|
3742
|
+
l ? l.error(h, g) : n.errorHandler("error", g);
|
|
3729
3743
|
}
|
|
3730
|
-
var
|
|
3744
|
+
var p = Ki[4];
|
|
3731
3745
|
n.emit(Gn, new bt(n, {
|
|
3732
|
-
errorType:
|
|
3746
|
+
errorType: p,
|
|
3733
3747
|
errorCode: 4,
|
|
3734
3748
|
errorMessage: "sources_load_error",
|
|
3735
3749
|
mediaError: {
|
|
@@ -4021,33 +4035,33 @@ var ya = /* @__PURE__ */ function(a) {
|
|
|
4021
4035
|
value: function(e, i) {
|
|
4022
4036
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
4023
4037
|
l[u - 2] = arguments[u];
|
|
4024
|
-
(n =
|
|
4038
|
+
(n = F(R(r.prototype), "emit", this)).call.apply(n, [this, e, i].concat(l));
|
|
4025
4039
|
}
|
|
4026
4040
|
}, {
|
|
4027
4041
|
key: "on",
|
|
4028
4042
|
value: function(e, i) {
|
|
4029
4043
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
4030
4044
|
l[u - 2] = arguments[u];
|
|
4031
|
-
(n =
|
|
4045
|
+
(n = F(R(r.prototype), "on", this)).call.apply(n, [this, e, i].concat(l));
|
|
4032
4046
|
}
|
|
4033
4047
|
}, {
|
|
4034
4048
|
key: "once",
|
|
4035
4049
|
value: function(e, i) {
|
|
4036
4050
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
4037
4051
|
l[u - 2] = arguments[u];
|
|
4038
|
-
(n =
|
|
4052
|
+
(n = F(R(r.prototype), "once", this)).call.apply(n, [this, e, i].concat(l));
|
|
4039
4053
|
}
|
|
4040
4054
|
}, {
|
|
4041
4055
|
key: "off",
|
|
4042
4056
|
value: function(e, i) {
|
|
4043
4057
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
4044
4058
|
l[u - 2] = arguments[u];
|
|
4045
|
-
(n =
|
|
4059
|
+
(n = F(R(r.prototype), "off", this)).call.apply(n, [this, e, i].concat(l));
|
|
4046
4060
|
}
|
|
4047
4061
|
}, {
|
|
4048
4062
|
key: "offAll",
|
|
4049
4063
|
value: function() {
|
|
4050
|
-
|
|
4064
|
+
F(R(r.prototype), "removeAllListeners", this).call(this);
|
|
4051
4065
|
}
|
|
4052
4066
|
}]), r;
|
|
4053
4067
|
}(An), _a = /* @__PURE__ */ function() {
|
|
@@ -4061,9 +4075,9 @@ var ya = /* @__PURE__ */ function(a) {
|
|
|
4061
4075
|
keypath: "vid"
|
|
4062
4076
|
}
|
|
4063
4077
|
};
|
|
4064
|
-
|
|
4078
|
+
P(this, a), this.indexedDB = window.indexedDB || window.webkitindexedDB, this.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange, this.myDB = o;
|
|
4065
4079
|
}
|
|
4066
|
-
return
|
|
4080
|
+
return L(a, [{
|
|
4067
4081
|
key: "openDB",
|
|
4068
4082
|
value: function(r) {
|
|
4069
4083
|
var t = this, e = this, i = this.myDB.version || 1, n = e.indexedDB.open(e.myDB.name, i);
|
|
@@ -4227,13 +4241,13 @@ function Se(a, o, r) {
|
|
|
4227
4241
|
return r.call.apply(r, [a, a].concat(e));
|
|
4228
4242
|
}
|
|
4229
4243
|
function Gt(a, o) {
|
|
4230
|
-
|
|
4244
|
+
U.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
|
|
4231
4245
|
}
|
|
4232
4246
|
var He = /* @__PURE__ */ function() {
|
|
4233
4247
|
function a(o) {
|
|
4234
|
-
|
|
4248
|
+
P(this, a), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(o), qn(this), this.__args = o, this.__events = {}, this.__onceEvents = {}, this.config = o.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(o);
|
|
4235
4249
|
}
|
|
4236
|
-
return
|
|
4250
|
+
return L(a, [{
|
|
4237
4251
|
key: "beforeCreate",
|
|
4238
4252
|
value: function(r) {
|
|
4239
4253
|
}
|
|
@@ -4487,11 +4501,11 @@ function nn(a, o) {
|
|
|
4487
4501
|
try {
|
|
4488
4502
|
return i = a(), i instanceof window.Element ? (f.addClass(i, r), Object.keys(t).map(function(n) {
|
|
4489
4503
|
i.setAttribute(n, t[n]);
|
|
4490
|
-
}), i) : (
|
|
4504
|
+
}), i) : (U.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is a function mast return an Element Object")), null);
|
|
4491
4505
|
} catch (n) {
|
|
4492
|
-
return
|
|
4506
|
+
return U.logError("Plugin named [".concat(e, "]:createIcon"), n), null;
|
|
4493
4507
|
}
|
|
4494
|
-
return typeof a == "string" ? f.createDomFromHtml(a, t, r) : (
|
|
4508
|
+
return typeof a == "string" ? f.createDomFromHtml(a, t, r) : (U.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
4495
4509
|
}
|
|
4496
4510
|
function La(a, o) {
|
|
4497
4511
|
var r = o.config.icons || o.playerConfig.icons;
|
|
@@ -4511,16 +4525,16 @@ function Aa(a, o) {
|
|
|
4511
4525
|
});
|
|
4512
4526
|
}
|
|
4513
4527
|
var W = /* @__PURE__ */ function(a) {
|
|
4514
|
-
|
|
4515
|
-
var o =
|
|
4528
|
+
D(r, a);
|
|
4529
|
+
var o = O(r);
|
|
4516
4530
|
function r() {
|
|
4517
4531
|
var t, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4518
|
-
return
|
|
4532
|
+
return P(this, r), t = o.call(this, e), t.__delegates = [], t;
|
|
4519
4533
|
}
|
|
4520
|
-
return
|
|
4534
|
+
return L(r, [{
|
|
4521
4535
|
key: "__init",
|
|
4522
4536
|
value: function(e) {
|
|
4523
|
-
if (
|
|
4537
|
+
if (F(R(r.prototype), "__init", this).call(this, e), !!e.root) {
|
|
4524
4538
|
var i = e.root, n = null;
|
|
4525
4539
|
this.icons = {}, this.root = null, this.parent = null;
|
|
4526
4540
|
var s = this.registerIcons() || {};
|
|
@@ -4531,7 +4545,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4531
4545
|
try {
|
|
4532
4546
|
u = this.render();
|
|
4533
4547
|
} catch (d) {
|
|
4534
|
-
throw
|
|
4548
|
+
throw U.logError("Plugin:".concat(this.pluginName, ":render"), d), new Error("Plugin:".concat(this.pluginName, ":render:").concat(d.message));
|
|
4535
4549
|
}
|
|
4536
4550
|
if (u)
|
|
4537
4551
|
n = r.insert(u, i, e.index), n.setAttribute("data-index", e.index);
|
|
@@ -4614,7 +4628,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4614
4628
|
value: function(e) {
|
|
4615
4629
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "";
|
|
4616
4630
|
i.root = i.root || this.root;
|
|
4617
|
-
var s =
|
|
4631
|
+
var s = F(R(r.prototype), "registerPlugin", this).call(this, e, i, n);
|
|
4618
4632
|
return this._children.push(s), s;
|
|
4619
4633
|
}
|
|
4620
4634
|
}, {
|
|
@@ -4729,7 +4743,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4729
4743
|
try {
|
|
4730
4744
|
return typeof e == "string" ? this.find(e).appendChild(i) : e.appendChild(i);
|
|
4731
4745
|
} catch (n) {
|
|
4732
|
-
return
|
|
4746
|
+
return U.logError("Plugin:appendChild", n), null;
|
|
4733
4747
|
}
|
|
4734
4748
|
}
|
|
4735
4749
|
}, {
|
|
@@ -4749,7 +4763,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4749
4763
|
n.destroy();
|
|
4750
4764
|
}), this.__delegates = [], this._children instanceof Array && (this._children.map(function(n) {
|
|
4751
4765
|
i.unRegisterPlugin(n.pluginName);
|
|
4752
|
-
}), this._children = null), this.root && (this.root.hasOwnProperty("remove") ? this.root.remove() : this.root.parentNode && this.root.parentNode.removeChild(this.root)),
|
|
4766
|
+
}), this._children = null), this.root && (this.root.hasOwnProperty("remove") ? this.root.remove() : this.root.parentNode && this.root.parentNode.removeChild(this.root)), F(R(r.prototype), "__destroy", this).call(this), this.icons = {}, ["root", "parent"].map(function(n) {
|
|
4753
4767
|
e[n] = null;
|
|
4754
4768
|
});
|
|
4755
4769
|
}
|
|
@@ -4760,12 +4774,12 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4760
4774
|
if (s) {
|
|
4761
4775
|
for (var c = 0, h = null, d = ""; c < s; c++) {
|
|
4762
4776
|
h = i.children[c];
|
|
4763
|
-
var
|
|
4764
|
-
if (
|
|
4777
|
+
var g = Number(h.getAttribute("data-index"));
|
|
4778
|
+
if (g >= l) {
|
|
4765
4779
|
d = "beforebegin";
|
|
4766
4780
|
break;
|
|
4767
4781
|
} else
|
|
4768
|
-
|
|
4782
|
+
g < l && (d = "afterend");
|
|
4769
4783
|
}
|
|
4770
4784
|
return u ? d === "afterend" ? i.appendChild(e) : i.insertBefore(e, h) : h.insertAdjacentHTML(d, e), d === "afterend" ? i.children[i.children.length - 1] : i.children[c];
|
|
4771
4785
|
} else
|
|
@@ -4806,7 +4820,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4806
4820
|
}(He), Da = /* @__PURE__ */ function() {
|
|
4807
4821
|
function a() {
|
|
4808
4822
|
var o = this;
|
|
4809
|
-
if (
|
|
4823
|
+
if (P(this, a), _(this, "__trigger", function(r) {
|
|
4810
4824
|
var t = (/* @__PURE__ */ new Date()).getTime();
|
|
4811
4825
|
o.timeStamp = t;
|
|
4812
4826
|
for (var e = 0; e < r.length; e++)
|
|
@@ -4820,7 +4834,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4820
4834
|
console.error(r);
|
|
4821
4835
|
}
|
|
4822
4836
|
}
|
|
4823
|
-
return
|
|
4837
|
+
return L(a, [{
|
|
4824
4838
|
key: "addObserver",
|
|
4825
4839
|
value: function(r, t) {
|
|
4826
4840
|
if (this.observer) {
|
|
@@ -5072,7 +5086,7 @@ var ne = {
|
|
|
5072
5086
|
delete this.pluginGroup[r], delete o._pluginInfoId;
|
|
5073
5087
|
}
|
|
5074
5088
|
}
|
|
5075
|
-
},
|
|
5089
|
+
}, C = {
|
|
5076
5090
|
DEFAULT: "xgplayer",
|
|
5077
5091
|
DEFAULT_SKIN: "xgplayer-skin-default",
|
|
5078
5092
|
ENTER: "xgplayer-is-enter",
|
|
@@ -5189,18 +5203,18 @@ function rn() {
|
|
|
5189
5203
|
var Fa = function(o, r) {
|
|
5190
5204
|
var t, e, i;
|
|
5191
5205
|
r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
|
|
5192
|
-
var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, h = n.icons, d = h === void 0 ? {} : h,
|
|
5206
|
+
var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, h = n.icons, d = h === void 0 ? {} : h, g = n.i18n, p = g === void 0 ? [] : g;
|
|
5193
5207
|
o.config.plugins || (o.config.plugins = []), o.config.ignores || (o.config.ignores = []), (t = o.config.plugins).push.apply(t, me(l)), (e = o.config.ignores).push.apply(e, me(c)), Object.keys(d).map(function(y) {
|
|
5194
5208
|
o.config.icons[y] || (o.config.icons[y] = d[y]);
|
|
5195
5209
|
});
|
|
5196
5210
|
var v = o.config.i18n || [];
|
|
5197
|
-
|
|
5211
|
+
p.push.apply(p, me(v)), o.config.i18n = p;
|
|
5198
5212
|
}, Ma = /* @__PURE__ */ function(a) {
|
|
5199
|
-
|
|
5200
|
-
var o =
|
|
5213
|
+
D(r, a);
|
|
5214
|
+
var o = O(r);
|
|
5201
5215
|
function r() {
|
|
5202
5216
|
var t;
|
|
5203
|
-
|
|
5217
|
+
P(this, r);
|
|
5204
5218
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
5205
5219
|
i[n] = arguments[n];
|
|
5206
5220
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onMouseEnter", function(s) {
|
|
@@ -5213,17 +5227,17 @@ var Fa = function(o, r) {
|
|
|
5213
5227
|
u.focus();
|
|
5214
5228
|
}), t;
|
|
5215
5229
|
}
|
|
5216
|
-
return
|
|
5230
|
+
return L(r, [{
|
|
5217
5231
|
key: "beforeCreate",
|
|
5218
5232
|
value: function(e) {
|
|
5219
|
-
!e.config.mode &&
|
|
5233
|
+
!e.config.mode && N.device === "mobile" && (e.config.mode = "flex"), e.player.config.marginControls && (e.config.autoHide = !1);
|
|
5220
5234
|
}
|
|
5221
5235
|
}, {
|
|
5222
5236
|
key: "afterCreate",
|
|
5223
5237
|
value: function() {
|
|
5224
5238
|
var e = this, i = this.config, n = i.disable, s = i.height, l = i.mode;
|
|
5225
5239
|
if (!n) {
|
|
5226
|
-
l === "flex" && this.player.addClass(
|
|
5240
|
+
l === "flex" && this.player.addClass(C.FLEX_CONTROLS);
|
|
5227
5241
|
var u = {
|
|
5228
5242
|
height: "".concat(s, "px")
|
|
5229
5243
|
};
|
|
@@ -5233,7 +5247,7 @@ var Fa = function(o, r) {
|
|
|
5233
5247
|
h ? f.addClass(e.root, "mini-controls") : f.removeClass(e.root, "mini-controls");
|
|
5234
5248
|
});
|
|
5235
5249
|
var c = this.playerConfig.isMobileSimulateMode;
|
|
5236
|
-
|
|
5250
|
+
N.device !== "mobile" && c !== "mobile" && (this.bind("mouseenter", this.onMouseEnter), this.bind("mouseleave", this.onMouseLeave));
|
|
5237
5251
|
}
|
|
5238
5252
|
}
|
|
5239
5253
|
}, {
|
|
@@ -5260,12 +5274,12 @@ var Fa = function(o, r) {
|
|
|
5260
5274
|
}, {
|
|
5261
5275
|
key: "recoverAutoHide",
|
|
5262
5276
|
value: function() {
|
|
5263
|
-
this.config.autoHide && f.addClass(this.root,
|
|
5277
|
+
this.config.autoHide && f.addClass(this.root, C.CONTROLS_AUTOHIDE);
|
|
5264
5278
|
}
|
|
5265
5279
|
}, {
|
|
5266
5280
|
key: "pauseAutoHide",
|
|
5267
5281
|
value: function() {
|
|
5268
|
-
f.removeClass(this.root,
|
|
5282
|
+
f.removeClass(this.root, C.CONTROLS_AUTOHIDE);
|
|
5269
5283
|
}
|
|
5270
5284
|
}, {
|
|
5271
5285
|
key: "show",
|
|
@@ -5306,14 +5320,14 @@ var Fa = function(o, r) {
|
|
|
5306
5320
|
default:
|
|
5307
5321
|
i.root = this.left;
|
|
5308
5322
|
}
|
|
5309
|
-
return
|
|
5323
|
+
return F(R(r.prototype), "registerPlugin", this).call(this, e, i, n);
|
|
5310
5324
|
}
|
|
5311
5325
|
}
|
|
5312
5326
|
}
|
|
5313
5327
|
}, {
|
|
5314
5328
|
key: "destroy",
|
|
5315
5329
|
value: function() {
|
|
5316
|
-
|
|
5330
|
+
N.device !== "mobile" && (this.unbind("mouseenter", this.onMouseEnter), this.unbind("mouseleave", this.onMouseLeave));
|
|
5317
5331
|
}
|
|
5318
5332
|
}, {
|
|
5319
5333
|
key: "render",
|
|
@@ -5326,7 +5340,7 @@ var Fa = function(o, r) {
|
|
|
5326
5340
|
"flex-controls": i === "flex"
|
|
5327
5341
|
}, {
|
|
5328
5342
|
"bottom-controls": i === "bottom"
|
|
5329
|
-
}, _({},
|
|
5343
|
+
}, _({}, C.CONTROLS_AUTOHIDE, n), {
|
|
5330
5344
|
"xgplayer-controls-initshow": s || !n
|
|
5331
5345
|
});
|
|
5332
5346
|
return '<xg-controls class="'.concat(u, `" unselectable="on">
|
|
@@ -5500,7 +5514,7 @@ var nt = {
|
|
|
5500
5514
|
extend: Ba,
|
|
5501
5515
|
use: bi,
|
|
5502
5516
|
init: Ha
|
|
5503
|
-
},
|
|
5517
|
+
}, V = {
|
|
5504
5518
|
INITIAL: 1,
|
|
5505
5519
|
READY: 2,
|
|
5506
5520
|
ATTACHING: 3,
|
|
@@ -5510,12 +5524,12 @@ var nt = {
|
|
|
5510
5524
|
ENDED: 7,
|
|
5511
5525
|
DESTROYED: 8
|
|
5512
5526
|
}, sn = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], le = {}, Yt = null, Qn = /* @__PURE__ */ function(a) {
|
|
5513
|
-
|
|
5514
|
-
var o =
|
|
5527
|
+
D(r, a);
|
|
5528
|
+
var o = O(r);
|
|
5515
5529
|
function r() {
|
|
5516
|
-
return
|
|
5530
|
+
return P(this, r), o.apply(this, arguments);
|
|
5517
5531
|
}
|
|
5518
|
-
return
|
|
5532
|
+
return L(r, [{
|
|
5519
5533
|
key: "add",
|
|
5520
5534
|
value: function(e) {
|
|
5521
5535
|
e && (le[e.playerId] = e, Object.keys(le).length === 1 && this.setActive(e.playerId, !0));
|
|
@@ -5605,23 +5619,23 @@ function Ua(a) {
|
|
|
5605
5619
|
return null;
|
|
5606
5620
|
}
|
|
5607
5621
|
var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /* @__PURE__ */ function(a) {
|
|
5608
|
-
|
|
5609
|
-
var o =
|
|
5622
|
+
D(r, a);
|
|
5623
|
+
var o = O(r);
|
|
5610
5624
|
function r(t) {
|
|
5611
5625
|
var e;
|
|
5612
|
-
|
|
5626
|
+
P(this, r);
|
|
5613
5627
|
var i = f.deepMerge(rn(), t);
|
|
5614
5628
|
e = o.call(this, i), _(m(e), "canPlayFunc", function() {
|
|
5615
5629
|
if (e.config) {
|
|
5616
|
-
var
|
|
5617
|
-
|
|
5630
|
+
var p = e.config, v = p.autoplay, y = p.defaultPlaybackRate;
|
|
5631
|
+
U.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = y, (v || e._useAutoplay) && e.mediaPlay(), e.off(Ie, e.canPlayFunc), e.removeClass(C.ENTER);
|
|
5618
5632
|
}
|
|
5619
|
-
}), _(m(e), "onFullscreenChange", function(
|
|
5633
|
+
}), _(m(e), "onFullscreenChange", function(p, v) {
|
|
5620
5634
|
var y = function() {
|
|
5621
5635
|
f.setTimeout(m(e), function() {
|
|
5622
5636
|
e.resize();
|
|
5623
5637
|
}, 100);
|
|
5624
|
-
},
|
|
5638
|
+
}, k = f.getFullScreenEl();
|
|
5625
5639
|
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(It, {
|
|
5626
5640
|
eventType: "system",
|
|
5627
5641
|
action: "switch_fullscreen",
|
|
@@ -5634,26 +5648,26 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5634
5648
|
to: !1
|
|
5635
5649
|
}]
|
|
5636
5650
|
});
|
|
5637
|
-
var b = ra(
|
|
5638
|
-
if (v ||
|
|
5639
|
-
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root,
|
|
5651
|
+
var b = ra(k, e.playerId, We);
|
|
5652
|
+
if (v || k && (k === e._fullscreenEl || b))
|
|
5653
|
+
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(Te, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
5640
5654
|
else if (e.fullscreen) {
|
|
5641
5655
|
y();
|
|
5642
|
-
var w = m(e),
|
|
5643
|
-
if (
|
|
5656
|
+
var w = m(e), H = w._fullScreenOffset, x = w.config;
|
|
5657
|
+
if (x.needFullscreenScroll ? (window.scrollTo(H.left, H.top), f.setTimeout(m(e), function() {
|
|
5644
5658
|
e.fullscreen = !1, e._fullScreenOffset = null;
|
|
5645
5659
|
}, 100)) : (!e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !1, e._fullScreenOffset = null), e.cssfullscreen)
|
|
5646
|
-
e.removeClass(
|
|
5660
|
+
e.removeClass(C.FULLSCREEN);
|
|
5647
5661
|
else {
|
|
5648
|
-
var
|
|
5649
|
-
!
|
|
5662
|
+
var B = e._fullscreenEl;
|
|
5663
|
+
!B && (e.root.contains(p.target) || p.target === e.root) && (B = p.target), e.recoverFullStyle(e.root, B, C.FULLSCREEN);
|
|
5650
5664
|
}
|
|
5651
5665
|
e._fullscreenEl = null, e.emit(Te, !1);
|
|
5652
5666
|
}
|
|
5653
|
-
}), _(m(e), "_onWebkitbeginfullscreen", function(
|
|
5654
|
-
e._fullscreenEl = e.media, e.onFullscreenChange(
|
|
5655
|
-
}), _(m(e), "_onWebkitendfullscreen", function(
|
|
5656
|
-
e.onFullscreenChange(
|
|
5667
|
+
}), _(m(e), "_onWebkitbeginfullscreen", function(p) {
|
|
5668
|
+
e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
|
|
5669
|
+
}), _(m(e), "_onWebkitendfullscreen", function(p) {
|
|
5670
|
+
e.onFullscreenChange(p, !1);
|
|
5657
5671
|
}), qn(m(e), za), e.config = i, e._pluginInfoId = f.generateSessionId(), Jo(m(e));
|
|
5658
5672
|
var n = e.constructor.defaultPreset;
|
|
5659
5673
|
if (e.config.presets.length) {
|
|
@@ -5661,7 +5675,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5661
5675
|
s >= 0 && n && (e.config.presets[s] = n);
|
|
5662
5676
|
} else
|
|
5663
5677
|
n && e.config.presets.push(n);
|
|
5664
|
-
e.userTimer = null, e.waitTimer = null, e.handleSource = !0, e._state =
|
|
5678
|
+
e.userTimer = null, e.waitTimer = null, e.handleSource = !0, e._state = V.INITIAL, e.isError = !1, e._hasStart = !1, e.isSeeking = !1, e.isCanplay = !1, e._useAutoplay = !1, e.__startTime = -1, e.rotateDeg = 0, e.isActive = !1, e.fullscreen = !1, e.cssfullscreen = !1, e.isRotateFullscreen = !1, e._fullscreenEl = null, e.timeSegments = [], e._cssfullscreenEl = null, e.curDefinition = null, e._orgCss = "", e._fullScreenOffset = null, e._videoHeight = 0, e._videoWidth = 0, e.videoPos = {
|
|
5665
5679
|
pi: 1,
|
|
5666
5680
|
scale: 0,
|
|
5667
5681
|
rotate: -1,
|
|
@@ -5683,7 +5697,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5683
5697
|
}, e._offsetInfo = {
|
|
5684
5698
|
currentTime: -1,
|
|
5685
5699
|
duration: 0
|
|
5686
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = nt.init(e._pluginInfoId),
|
|
5700
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = nt.init(e._pluginInfoId), N.os.isAndroid && N.osVersion > 0 && N.osVersion < 6 && (e.config.autoplay = !1), e.database = new _a(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
5687
5701
|
isActiveLocked: !1
|
|
5688
5702
|
}, e.instManager = Re;
|
|
5689
5703
|
var l = e._initDOM();
|
|
@@ -5691,16 +5705,16 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5691
5705
|
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), pi(e);
|
|
5692
5706
|
var u = e.config, c = u.definition, h = c === void 0 ? {} : c, d = u.url;
|
|
5693
5707
|
if (!d && h.list && h.list.length > 0) {
|
|
5694
|
-
var
|
|
5695
|
-
return
|
|
5708
|
+
var g = h.list.find(function(p) {
|
|
5709
|
+
return p.definition && p.definition === h.defaultDefinition;
|
|
5696
5710
|
});
|
|
5697
|
-
|
|
5711
|
+
g || (h.defaultDefinition = h.list[0].definition, g = h.list[0]), e.config.url = g.url, e.curDefinition = g;
|
|
5698
5712
|
}
|
|
5699
|
-
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), ne.onPluginsReady(m(e)), e.getInitDefinition(), e.setState(
|
|
5713
|
+
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), ne.onPluginsReady(m(e)), e.getInitDefinition(), e.setState(V.READY), f.setTimeout(m(e), function() {
|
|
5700
5714
|
e.emit(_i);
|
|
5701
|
-
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state <
|
|
5715
|
+
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < V.ATTACHED) && e.start(), e;
|
|
5702
5716
|
}
|
|
5703
|
-
return
|
|
5717
|
+
return L(r, [{
|
|
5704
5718
|
key: "_initDOM",
|
|
5705
5719
|
value: function() {
|
|
5706
5720
|
var e, i = this;
|
|
@@ -5716,7 +5730,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5716
5730
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
5717
5731
|
}
|
|
5718
5732
|
var s = Ua(this.root);
|
|
5719
|
-
s && (
|
|
5733
|
+
s && (U.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(We, this.playerId), (e = Re) === null || e === void 0 || e.add(this), ne.init(this), this._initBaseDoms();
|
|
5720
5734
|
var l = this.constructor.XgVideoProxy;
|
|
5721
5735
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
5722
5736
|
var u = this.innerContainer || this.root;
|
|
@@ -5730,25 +5744,25 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5730
5744
|
});
|
|
5731
5745
|
this.controls = d;
|
|
5732
5746
|
}
|
|
5733
|
-
var
|
|
5734
|
-
if (this.addClass("".concat(
|
|
5735
|
-
var
|
|
5747
|
+
var g = this.config.isMobileSimulateMode === "mobile" ? "mobile" : N.device;
|
|
5748
|
+
if (this.addClass("".concat(C.DEFAULT, " ").concat(C.INACTIVE, " xgplayer-").concat(g, " ").concat(this.config.controls ? "" : C.NO_CONTROLS)), this.config.autoplay ? this.addClass(C.ENTER) : this.addClass(C.NO_START), this.config.fluid) {
|
|
5749
|
+
var p = this.config, v = p.width, y = p.height;
|
|
5736
5750
|
(typeof v != "number" || typeof y != "number") && (v = 600, y = 337.5);
|
|
5737
|
-
var
|
|
5751
|
+
var k = {
|
|
5738
5752
|
width: "100%",
|
|
5739
5753
|
height: "0",
|
|
5740
5754
|
"max-width": "100%",
|
|
5741
5755
|
"padding-top": "".concat(y * 100 / v, "%")
|
|
5742
5756
|
};
|
|
5743
|
-
Object.keys(
|
|
5744
|
-
i.root.style[
|
|
5757
|
+
Object.keys(k).forEach(function(A) {
|
|
5758
|
+
i.root.style[A] = k[A];
|
|
5745
5759
|
});
|
|
5746
5760
|
} else
|
|
5747
|
-
["width", "height"].forEach(function(
|
|
5748
|
-
i.config[
|
|
5761
|
+
["width", "height"].forEach(function(A) {
|
|
5762
|
+
i.config[A] && (typeof i.config[A] != "number" ? i.root.style[A] = i.config[A] : i.root.style[A] = "".concat(i.config[A], "px"));
|
|
5749
5763
|
});
|
|
5750
|
-
var b = this.root.getBoundingClientRect(), w = b.width,
|
|
5751
|
-
return this.sizeInfo.width = w, this.sizeInfo.height =
|
|
5764
|
+
var b = this.root.getBoundingClientRect(), w = b.width, H = b.height, x = b.left, B = b.top;
|
|
5765
|
+
return this.sizeInfo.width = w, this.sizeInfo.height = H, this.sizeInfo.left = x, this.sizeInfo.top = B, !0;
|
|
5752
5766
|
}
|
|
5753
5767
|
}, {
|
|
5754
5768
|
key: "_initBaseDoms",
|
|
@@ -5765,9 +5779,9 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5765
5779
|
e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
|
|
5766
5780
|
}), Xi.forEach(function(i) {
|
|
5767
5781
|
document && document.addEventListener(i, e.onFullscreenChange);
|
|
5768
|
-
}),
|
|
5782
|
+
}), N.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Le, this.resize), this.playFunc = function() {
|
|
5769
5783
|
e.config.closeFocusVideoFocus || e.media.focus();
|
|
5770
|
-
}, this.once(
|
|
5784
|
+
}, this.once(ge, this.playFunc);
|
|
5771
5785
|
}
|
|
5772
5786
|
}, {
|
|
5773
5787
|
key: "_unbindEvents",
|
|
@@ -5775,7 +5789,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5775
5789
|
var e = this;
|
|
5776
5790
|
this.root.removeEventListener("mousemove", this.mousemoveFunc), Xi.forEach(function(i) {
|
|
5777
5791
|
document.removeEventListener(i, e.onFullscreenChange);
|
|
5778
|
-
}), this.playFunc && this.off(
|
|
5792
|
+
}), this.playFunc && this.off(ge, this.playFunc), this.off(Ie, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
|
|
5779
5793
|
}
|
|
5780
5794
|
}, {
|
|
5781
5795
|
key: "_clearUserTimer",
|
|
@@ -5786,14 +5800,14 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5786
5800
|
key: "_startInit",
|
|
5787
5801
|
value: function(e) {
|
|
5788
5802
|
var i = this;
|
|
5789
|
-
if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(Nn),
|
|
5803
|
+
if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(Nn), U.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
|
|
5790
5804
|
this.handleSource && (this._detachSourceEvents(this.media), f.typeOf(e) === "Array" && e.length > 0 ? this._attachSourceEvents(this.media, e) : !this.media.src || this.media.src !== e ? this.media.src = e : e || this.media.removeAttribute("src")), f.typeOf(this.config.volume) === "Number" && (this.volume = this.config.volume);
|
|
5791
5805
|
var n = this.innerContainer ? this.innerContainer : this.root;
|
|
5792
5806
|
this.media instanceof window.Element && !n.contains(this.media) && n.insertBefore(this.media, n.firstChild);
|
|
5793
5807
|
var s = this.media.readyState;
|
|
5794
|
-
|
|
5808
|
+
U.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (N.os.isIpad || N.os.isPhone) && this.mediaPlay());
|
|
5795
5809
|
var l = this.config.startTime;
|
|
5796
|
-
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Ie, this.canPlayFunc), (!this.hasStart || this.state <
|
|
5810
|
+
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Ie, this.canPlayFunc), (!this.hasStart || this.state < V.ATTACHED) && ne.afterInit(this), this.hasStart = !0, this.setState(V.ATTACHED), f.setTimeout(this, function() {
|
|
5797
5811
|
i.emit(Ft);
|
|
5798
5812
|
}, 0);
|
|
5799
5813
|
}
|
|
@@ -5814,17 +5828,17 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5814
5828
|
if (!i && c[d.toLowerCase()])
|
|
5815
5829
|
return;
|
|
5816
5830
|
if (h.lazy && h.loader) {
|
|
5817
|
-
var
|
|
5818
|
-
h.forceBeforeInit && (
|
|
5819
|
-
e._loadingPlugins.splice(e._loadingPlugins.indexOf(
|
|
5820
|
-
}).catch(function(
|
|
5821
|
-
|
|
5822
|
-
}), e._loadingPlugins.push(
|
|
5831
|
+
var g = ne.lazyRegister(e, h);
|
|
5832
|
+
h.forceBeforeInit && (g.then(function() {
|
|
5833
|
+
e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
|
|
5834
|
+
}).catch(function(p) {
|
|
5835
|
+
U.logError("_registerPlugins:loadingPlugin", p), e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
|
|
5836
|
+
}), e._loadingPlugins.push(g));
|
|
5823
5837
|
return;
|
|
5824
5838
|
}
|
|
5825
5839
|
return e.registerPlugin(h);
|
|
5826
|
-
} catch (
|
|
5827
|
-
|
|
5840
|
+
} catch (p) {
|
|
5841
|
+
U.logError("_registerPlugins:", p);
|
|
5828
5842
|
}
|
|
5829
5843
|
});
|
|
5830
5844
|
}
|
|
@@ -5848,7 +5862,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5848
5862
|
this.leftBar || (this.leftBar = f.createPositionBar("xg-left-bar", this.root)), i = this.leftBar;
|
|
5849
5863
|
break;
|
|
5850
5864
|
case $.ROOT_TOP:
|
|
5851
|
-
this.topBar || (this.topBar = f.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && f.addClass(this.topBar,
|
|
5865
|
+
this.topBar || (this.topBar = f.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && f.addClass(this.topBar, C.TOP_BAR_AUTOHIDE)), i = this.topBar;
|
|
5852
5866
|
break;
|
|
5853
5867
|
default:
|
|
5854
5868
|
i = this.innerContainer || this.root;
|
|
@@ -5931,15 +5945,15 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5931
5945
|
key: "start",
|
|
5932
5946
|
value: function(e) {
|
|
5933
5947
|
var i = this;
|
|
5934
|
-
if (!(this.state >
|
|
5935
|
-
return !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(
|
|
5948
|
+
if (!(this.state > V.ATTACHING))
|
|
5949
|
+
return !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(V.ATTACHING), this._registerPlugins(!1), ne.beforeInit(this).then(function() {
|
|
5936
5950
|
if (i.config) {
|
|
5937
5951
|
e || (e = i.url || i.config.url);
|
|
5938
5952
|
var n = i._preProcessUrl(e), s = i._startInit(n.url);
|
|
5939
5953
|
return s;
|
|
5940
5954
|
}
|
|
5941
5955
|
}).catch(function(n) {
|
|
5942
|
-
throw n.fileName = "player", n.lineNumber = "236",
|
|
5956
|
+
throw n.fileName = "player", n.lineNumber = "236", U.logError("start:beforeInit:", n), n;
|
|
5943
5957
|
});
|
|
5944
5958
|
}
|
|
5945
5959
|
}, {
|
|
@@ -5952,8 +5966,8 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5952
5966
|
var u = this.paused && !this.isError;
|
|
5953
5967
|
return this.src = s, new Promise(function(c, h) {
|
|
5954
5968
|
var d = function(v) {
|
|
5955
|
-
n.off("timeupdate",
|
|
5956
|
-
},
|
|
5969
|
+
n.off("timeupdate", g), n.off("canplay", g), h(v);
|
|
5970
|
+
}, g = function() {
|
|
5957
5971
|
n.duration > 0 && n.__startTime > 0 && (n.currentTime = n.__startTime, n.__startTime = -1), u && n.pause(), n.off("error", d), c(!0);
|
|
5958
5972
|
};
|
|
5959
5973
|
if (n.once("error", d), !s) {
|
|
@@ -5963,7 +5977,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5963
5977
|
});
|
|
5964
5978
|
return;
|
|
5965
5979
|
}
|
|
5966
|
-
|
|
5980
|
+
N.os.isAndroid ? n.once("timeupdate", g) : n.once("canplay", g), n.play();
|
|
5967
5981
|
});
|
|
5968
5982
|
}
|
|
5969
5983
|
}, {
|
|
@@ -5975,39 +5989,39 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5975
5989
|
key: "mediaPlay",
|
|
5976
5990
|
value: function() {
|
|
5977
5991
|
var e = this;
|
|
5978
|
-
if (!this.hasStart && this.state <
|
|
5979
|
-
this.removeClass(
|
|
5992
|
+
if (!this.hasStart && this.state < V.ATTACHED) {
|
|
5993
|
+
this.removeClass(C.NO_START), this.addClass(C.ENTER), this.start(), this._useAutoplay = !0;
|
|
5980
5994
|
return;
|
|
5981
5995
|
}
|
|
5982
|
-
this.state <
|
|
5983
|
-
var i =
|
|
5996
|
+
this.state < V.RUNNING && (this.removeClass(C.NO_START), !this.isCanplay && this.addClass(C.ENTER));
|
|
5997
|
+
var i = F(R(r.prototype), "play", this).call(this);
|
|
5984
5998
|
return i !== void 0 && i && i.then ? i.then(function() {
|
|
5985
|
-
e.removeClass(
|
|
5999
|
+
e.removeClass(C.NOT_ALLOW_AUTOPLAY), e.addClass(C.PLAYING), e.state < V.RUNNING && (U.logInfo(">>>>playPromise.then"), e.setState(V.RUNNING), e.emit(Ge));
|
|
5986
6000
|
}).catch(function(n) {
|
|
5987
|
-
if (
|
|
5988
|
-
e.onError(), e.removeClass(
|
|
6001
|
+
if (U.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
|
|
6002
|
+
e.onError(), e.removeClass(C.ENTER);
|
|
5989
6003
|
return;
|
|
5990
6004
|
}
|
|
5991
6005
|
n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
|
|
5992
|
-
e._errorTimer = null, e.emit(ki), e.addClass(
|
|
6006
|
+
e._errorTimer = null, e.emit(ki), e.addClass(C.NOT_ALLOW_AUTOPLAY), e.removeClass(C.ENTER), e.pause(), e.setState(V.NOTALLOW);
|
|
5993
6007
|
}, 0));
|
|
5994
|
-
}) : (
|
|
6008
|
+
}) : (U.logWarn("video.play not return promise"), this.state < V.RUNNING && (this.setState(V.RUNNING), this.removeClass(C.NOT_ALLOW_AUTOPLAY), this.removeClass(C.NO_START), this.removeClass(C.ENTER), this.addClass(C.PLAYING), this.emit(Ge))), i;
|
|
5995
6009
|
}
|
|
5996
6010
|
}, {
|
|
5997
6011
|
key: "mediaPause",
|
|
5998
6012
|
value: function() {
|
|
5999
|
-
|
|
6013
|
+
F(R(r.prototype), "pause", this).call(this);
|
|
6000
6014
|
}
|
|
6001
6015
|
}, {
|
|
6002
6016
|
key: "videoPause",
|
|
6003
6017
|
value: function() {
|
|
6004
|
-
|
|
6018
|
+
F(R(r.prototype), "pause", this).call(this);
|
|
6005
6019
|
}
|
|
6006
6020
|
}, {
|
|
6007
6021
|
key: "play",
|
|
6008
6022
|
value: function() {
|
|
6009
6023
|
var e = this;
|
|
6010
|
-
return this.removeClass(
|
|
6024
|
+
return this.removeClass(C.PAUSED), Se(this, "play", function() {
|
|
6011
6025
|
return e.mediaPlay();
|
|
6012
6026
|
});
|
|
6013
6027
|
}
|
|
@@ -6016,7 +6030,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6016
6030
|
value: function() {
|
|
6017
6031
|
var e = this;
|
|
6018
6032
|
Se(this, "pause", function() {
|
|
6019
|
-
|
|
6033
|
+
F(R(r.prototype), "pause", e).call(e);
|
|
6020
6034
|
});
|
|
6021
6035
|
}
|
|
6022
6036
|
}, {
|
|
@@ -6026,7 +6040,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6026
6040
|
if (!(!this.media || Number.isNaN(Number(e)) || !this.hasStart)) {
|
|
6027
6041
|
var s = this.config, l = s.isSeekedPlay, u = s.seekedStatus, c = i || (l ? "play" : u);
|
|
6028
6042
|
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(Pe, this._onceSeekCanplay), this._onceSeekCanplay = function() {
|
|
6029
|
-
switch (n.removeClass(
|
|
6043
|
+
switch (n.removeClass(C.ENTER), n.isSeeking = !1, c) {
|
|
6030
6044
|
case "play":
|
|
6031
6045
|
n.play();
|
|
6032
6046
|
break;
|
|
@@ -6037,7 +6051,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6037
6051
|
n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
|
|
6038
6052
|
}
|
|
6039
6053
|
n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
|
|
6040
|
-
}, this.once(Pe, this._onceSeekCanplay), this.state <
|
|
6054
|
+
}, this.once(Pe, this._onceSeekCanplay), this.state < V.RUNNING ? (this.removeClass(C.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
|
|
6041
6055
|
}
|
|
6042
6056
|
}
|
|
6043
6057
|
}, {
|
|
@@ -6084,10 +6098,10 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6084
6098
|
}, {
|
|
6085
6099
|
key: "resetState",
|
|
6086
6100
|
value: function() {
|
|
6087
|
-
var e = this, i =
|
|
6088
|
-
this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0,
|
|
6101
|
+
var e = this, i = C.NOT_ALLOW_AUTOPLAY, n = C.PLAYING, s = C.NO_START, l = C.PAUSED, u = C.REPLAY, c = C.ENTER, h = C.ENDED, d = C.ERROR, g = C.LOADING, p = [i, n, s, l, u, c, h, d, g];
|
|
6102
|
+
this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, p.forEach(function(v) {
|
|
6089
6103
|
e.removeClass(v);
|
|
6090
|
-
}), this.addClass(
|
|
6104
|
+
}), this.addClass(C.NO_START), this.emit(Nt);
|
|
6091
6105
|
}
|
|
6092
6106
|
}, {
|
|
6093
6107
|
key: "reset",
|
|
@@ -6109,7 +6123,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6109
6123
|
value: function() {
|
|
6110
6124
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
6111
6125
|
if (!(!s || !l)) {
|
|
6112
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(We), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(Ci), (e = Re) === null || e === void 0 || e.remove(this), ne.destroy(this), Zn(this),
|
|
6126
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(We), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(Ci), (e = Re) === null || e === void 0 || e.remove(this), ne.destroy(this), Zn(this), F(R(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
6113
6127
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
6114
6128
|
n.removeChild(u[c]);
|
|
6115
6129
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -6127,7 +6141,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6127
6141
|
key: "replay",
|
|
6128
6142
|
value: function() {
|
|
6129
6143
|
var e = this;
|
|
6130
|
-
this.removeClass(
|
|
6144
|
+
this.removeClass(C.ENDED), this.currentTime = 0, this.isSeeking = !1, Se(this, "replay", function() {
|
|
6131
6145
|
e.once(Pe, function() {
|
|
6132
6146
|
var i = e.mediaPlay();
|
|
6133
6147
|
i && i.catch && i.catch(function(n) {
|
|
@@ -6140,7 +6154,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6140
6154
|
key: "retry",
|
|
6141
6155
|
value: function() {
|
|
6142
6156
|
var e = this;
|
|
6143
|
-
this.removeClass(
|
|
6157
|
+
this.removeClass(C.ERROR), this.addClass(C.LOADING), Se(this, "retry", function() {
|
|
6144
6158
|
var i = e.currentTime, n = e.config.url, s = f.isMSE(e.media) ? {
|
|
6145
6159
|
url: n
|
|
6146
6160
|
} : e._preProcessUrl(n);
|
|
@@ -6152,12 +6166,12 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6152
6166
|
}, {
|
|
6153
6167
|
key: "changeFullStyle",
|
|
6154
6168
|
value: function(e, i, n, s) {
|
|
6155
|
-
e && (s || (s =
|
|
6169
|
+
e && (s || (s = C.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = f.filterStyleFromText(e)), f.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = f.filterStyleFromText(i), f.addClass(i, s), i.setAttribute(We, this.playerId)));
|
|
6156
6170
|
}
|
|
6157
6171
|
}, {
|
|
6158
6172
|
key: "recoverFullStyle",
|
|
6159
6173
|
value: function(e, i, n, s) {
|
|
6160
|
-
s || (s =
|
|
6174
|
+
s || (s = C.PARENT_FULLSCREEN), this._orgCss && (f.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), f.removeClass(e, n), i && i !== e && this._orgPCss && (f.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", f.removeClass(i, s), i.removeAttribute(We));
|
|
6161
6175
|
}
|
|
6162
6176
|
}, {
|
|
6163
6177
|
key: "getFullscreen",
|
|
@@ -6209,7 +6223,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6209
6223
|
value: function() {
|
|
6210
6224
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
|
|
6211
6225
|
this.isRotateFullscreen ? this.exitRotateFullscreen() : this.fullscreen && this.exitFullscreen();
|
|
6212
|
-
var i = e ? "".concat(
|
|
6226
|
+
var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.CSS_FULLSCREEN) : C.CSS_FULLSCREEN;
|
|
6213
6227
|
this.changeFullStyle(this.root, e, i);
|
|
6214
6228
|
var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
|
|
6215
6229
|
l && (this.fullscreen = !0, this.emit(Te, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(Et, !0);
|
|
@@ -6217,7 +6231,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6217
6231
|
}, {
|
|
6218
6232
|
key: "exitCssFullscreen",
|
|
6219
6233
|
value: function() {
|
|
6220
|
-
var e = this._cssfullscreenEl ? "".concat(
|
|
6234
|
+
var e = this._cssfullscreenEl ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.CSS_FULLSCREEN) : C.CSS_FULLSCREEN;
|
|
6221
6235
|
if (!this.fullscreen)
|
|
6222
6236
|
this.recoverFullStyle(this.root, this._cssfullscreenEl, e);
|
|
6223
6237
|
else {
|
|
@@ -6231,14 +6245,14 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6231
6245
|
value: function() {
|
|
6232
6246
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
|
|
6233
6247
|
this.cssfullscreen && this.exitCssFullscreen(e);
|
|
6234
|
-
var i = e ? "".concat(
|
|
6235
|
-
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i,
|
|
6248
|
+
var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.ROTATE_FULLSCREEN) : C.ROTATE_FULLSCREEN;
|
|
6249
|
+
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style"), this.root.style.width = "".concat(window.innerHeight, "px"), this.emit(Te, !0);
|
|
6236
6250
|
}
|
|
6237
6251
|
}, {
|
|
6238
6252
|
key: "exitRotateFullscreen",
|
|
6239
6253
|
value: function(e) {
|
|
6240
|
-
var i = this._fullscreenEl !== this.root ? "".concat(
|
|
6241
|
-
this.recoverFullStyle(this.root, this._fullscreenEl, i,
|
|
6254
|
+
var i = this._fullscreenEl !== this.root ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.ROTATE_FULLSCREEN) : C.ROTATE_FULLSCREEN;
|
|
6255
|
+
this.recoverFullStyle(this.root, this._fullscreenEl, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(Te, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
|
|
6242
6256
|
}
|
|
6243
6257
|
}, {
|
|
6244
6258
|
key: "setRotateDeg",
|
|
@@ -6283,7 +6297,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6283
6297
|
autoHide: !0,
|
|
6284
6298
|
delay: 3e3
|
|
6285
6299
|
}, n = this.innerStates;
|
|
6286
|
-
if (this.isActive = !0, this.removeClass(
|
|
6300
|
+
if (this.isActive = !0, this.removeClass(C.INACTIVE), this._clearUserTimer(), i.isLock !== void 0 && (n.isActiveLocked = i.isLock), i.autoHide === !1 || i.isLock === !0 || n.isActiveLocked) {
|
|
6287
6301
|
this._clearUserTimer();
|
|
6288
6302
|
return;
|
|
6289
6303
|
}
|
|
@@ -6298,7 +6312,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6298
6312
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = e.ignorePaused, n = i === void 0 ? !1 : i;
|
|
6299
6313
|
if (!this.innerStates.isActiveLocked) {
|
|
6300
6314
|
var s = this.config.closePauseVideoFocus;
|
|
6301
|
-
this.isActive = !1, (n || s || !this.paused && !this.ended) && this.addClass(
|
|
6315
|
+
this.isActive = !1, (n || s || !this.paused && !this.ended) && this.addClass(C.INACTIVE);
|
|
6302
6316
|
}
|
|
6303
6317
|
}
|
|
6304
6318
|
}, {
|
|
@@ -6309,7 +6323,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6309
6323
|
}, {
|
|
6310
6324
|
key: "onCanplay",
|
|
6311
6325
|
value: function() {
|
|
6312
|
-
this.removeClass(
|
|
6326
|
+
this.removeClass(C.ENTER), this.removeClass(C.ERROR), this.removeClass(C.LOADING), this.isCanplay = !0, this.waitTimer && f.clearTimeout(this, this.waitTimer);
|
|
6313
6327
|
}
|
|
6314
6328
|
}, {
|
|
6315
6329
|
key: "onLoadeddata",
|
|
@@ -6319,44 +6333,44 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6319
6333
|
}, {
|
|
6320
6334
|
key: "onLoadstart",
|
|
6321
6335
|
value: function() {
|
|
6322
|
-
this.removeClass(
|
|
6336
|
+
this.removeClass(C.ERROR), this.isCanplay = !1;
|
|
6323
6337
|
}
|
|
6324
6338
|
}, {
|
|
6325
6339
|
key: "onPlay",
|
|
6326
6340
|
value: function() {
|
|
6327
|
-
this.state ===
|
|
6341
|
+
this.state === V.ENDED && this.setState(V.RUNNING), this.removeClass(C.PAUSED), this.ended && this.removeClass(C.ENDED), !this.config.closePlayVideoFocus && this.focus();
|
|
6328
6342
|
}
|
|
6329
6343
|
}, {
|
|
6330
6344
|
key: "onPause",
|
|
6331
6345
|
value: function() {
|
|
6332
|
-
this.addClass(
|
|
6346
|
+
this.addClass(C.PAUSED), this.updateAcc("pause"), this.config.closePauseVideoFocus || (this._clearUserTimer(), this.focus());
|
|
6333
6347
|
}
|
|
6334
6348
|
}, {
|
|
6335
6349
|
key: "onEnded",
|
|
6336
6350
|
value: function() {
|
|
6337
|
-
this.updateAcc("ended"), this.addClass(
|
|
6351
|
+
this.updateAcc("ended"), this.addClass(C.ENDED), this.setState(V.ENDED);
|
|
6338
6352
|
}
|
|
6339
6353
|
}, {
|
|
6340
6354
|
key: "onError",
|
|
6341
6355
|
value: function() {
|
|
6342
|
-
this.isError = !0, this.updateAcc("error"), this.removeClass(
|
|
6356
|
+
this.isError = !0, this.updateAcc("error"), this.removeClass(C.NOT_ALLOW_AUTOPLAY), this.removeClass(C.NO_START), this.removeClass(C.ENTER), this.removeClass(C.LOADING), this.addClass(C.ERROR);
|
|
6343
6357
|
}
|
|
6344
6358
|
}, {
|
|
6345
6359
|
key: "onSeeking",
|
|
6346
6360
|
value: function() {
|
|
6347
|
-
this.isSeeking || this.updateAcc("seeking"), this.isSeeking = !0, this.addClass(
|
|
6361
|
+
this.isSeeking || this.updateAcc("seeking"), this.isSeeking = !0, this.addClass(C.SEEKING);
|
|
6348
6362
|
}
|
|
6349
6363
|
}, {
|
|
6350
6364
|
key: "onSeeked",
|
|
6351
6365
|
value: function() {
|
|
6352
|
-
this.isSeeking = !1, this.waitTimer && f.clearTimeout(this, this.waitTimer), this.removeClass(
|
|
6366
|
+
this.isSeeking = !1, this.waitTimer && f.clearTimeout(this, this.waitTimer), this.removeClass(C.LOADING), this.removeClass(C.SEEKING);
|
|
6353
6367
|
}
|
|
6354
6368
|
}, {
|
|
6355
6369
|
key: "onWaiting",
|
|
6356
6370
|
value: function() {
|
|
6357
6371
|
var e = this;
|
|
6358
6372
|
this.waitTimer && f.clearTimeout(this, this.waitTimer), this.updateAcc("waiting"), this.waitTimer = f.setTimeout(this, function() {
|
|
6359
|
-
e.addClass(
|
|
6373
|
+
e.addClass(C.LOADING), e.emit(Un), f.clearTimeout(e, e.waitTimer), e.waitTimer = null;
|
|
6360
6374
|
}, this.config.minWaitDelay);
|
|
6361
6375
|
}
|
|
6362
6376
|
}, {
|
|
@@ -6364,7 +6378,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6364
6378
|
value: function() {
|
|
6365
6379
|
var e = this;
|
|
6366
6380
|
this.isError = !1;
|
|
6367
|
-
var i =
|
|
6381
|
+
var i = C.NO_START, n = C.PAUSED, s = C.ENDED, l = C.ERROR, u = C.REPLAY, c = C.LOADING, h = [i, n, s, l, u, c];
|
|
6368
6382
|
h.forEach(function(d) {
|
|
6369
6383
|
e.removeClass(d);
|
|
6370
6384
|
}), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
@@ -6372,7 +6386,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6372
6386
|
}, {
|
|
6373
6387
|
key: "onTimeupdate",
|
|
6374
6388
|
value: function() {
|
|
6375
|
-
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(
|
|
6389
|
+
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(C.LOADING)) && this.media.readyState > 2 && (this.removeClass(C.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === V.NOTALLOW && this.duration && (this.setState(V.RUNNING), this.emit(Ge)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
6376
6390
|
}
|
|
6377
6391
|
}, {
|
|
6378
6392
|
key: "onVolumechange",
|
|
@@ -6416,8 +6430,8 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6416
6430
|
}, n = i || {}, s = n.startDiff, l = s === void 0 ? 0 : s, u = n.endDiff, c = u === void 0 ? 0 : u, h = this.media.buffered;
|
|
6417
6431
|
if (!h || h.length === 0 || !this.duration)
|
|
6418
6432
|
return !0;
|
|
6419
|
-
for (var d = e || this.media.currentTime || 0.2,
|
|
6420
|
-
if (h.start(
|
|
6433
|
+
for (var d = e || this.media.currentTime || 0.2, g = h.length, p = 0; p < g; p++)
|
|
6434
|
+
if (h.start(p) + l <= d && h.end(p) - c > d)
|
|
6421
6435
|
return !0;
|
|
6422
6436
|
return !1;
|
|
6423
6437
|
}
|
|
@@ -6431,16 +6445,16 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6431
6445
|
this.videoPos.pi = c, u = u < 0 ? 0 : u;
|
|
6432
6446
|
var h = {
|
|
6433
6447
|
rotate: u
|
|
6434
|
-
}, d = 0,
|
|
6448
|
+
}, d = 0, g = 0, p = 1, v = Math.abs(u / 90), y = this.root, k = this.innerContainer, b = y.offsetWidth, w = k ? k.offsetHeight : y.offsetHeight, H = w, x = b;
|
|
6435
6449
|
if (v % 2 === 0)
|
|
6436
|
-
|
|
6450
|
+
p = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = p, d = i > 0 ? (100 - s) / 2 - i : 0, h.y = v === 2 ? 0 - d : d, g = n > 0 ? (100 - l) / 2 - n : 0, h.x = v === 2 ? 0 - g : g, this.media.style.width = "".concat(x, "px"), this.media.style.height = "".concat(H, "px");
|
|
6437
6451
|
else if (v % 2 === 1) {
|
|
6438
|
-
|
|
6439
|
-
var
|
|
6440
|
-
|
|
6452
|
+
x = w, H = b;
|
|
6453
|
+
var B = w - b;
|
|
6454
|
+
g = -B / 2 / x * 100, h.x = v === 3 ? g + i / 2 : g - i / 2, d = B / 2 / H * 100, h.y = v === 3 ? d + n / 2 : d - n / 2, h.scale = p, this.media.style.width = "".concat(x, "px"), this.media.style.height = "".concat(H, "px");
|
|
6441
6455
|
}
|
|
6442
|
-
var
|
|
6443
|
-
this.media.style.transform =
|
|
6456
|
+
var A = f.getTransformStyle(h, this.media.style.transform || this.media.style.webkitTransform);
|
|
6457
|
+
this.media.style.transform = A, this.media.style.webkitTransform = A;
|
|
6444
6458
|
}
|
|
6445
6459
|
}
|
|
6446
6460
|
}
|
|
@@ -6488,18 +6502,18 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6488
6502
|
var n = this.media, s = n.videoWidth, l = n.videoHeight, u = this.config, c = u.fitVideoSize, h = u.videoFillMode;
|
|
6489
6503
|
if ((h === "fill" || h === "cover" || h === "contain") && this.setAttribute("data-xgfill", h), !(!l || !s)) {
|
|
6490
6504
|
this._videoHeight = l, this._videoWidth = s;
|
|
6491
|
-
var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0,
|
|
6492
|
-
c === "auto" && y > v || c === "fixWidth" ? (b =
|
|
6493
|
-
e.root.style[
|
|
6505
|
+
var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, g = i.width, p = i.height - d, v = parseInt(s / l * 1e3, 10), y = parseInt(g / p * 1e3, 10), k = g, b = p, w = {};
|
|
6506
|
+
c === "auto" && y > v || c === "fixWidth" ? (b = g / v * 1e3, this.config.fluid ? w.paddingTop = "".concat(b * 100 / k, "%") : w.height = "".concat(b + d, "px")) : (c === "auto" && y < v || c === "fixHeight") && (k = v * p / 1e3, w.width = "".concat(k, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(w).forEach(function(x) {
|
|
6507
|
+
e.root.style[x] = w[x];
|
|
6494
6508
|
}), (h === "fillHeight" && y < v || h === "fillWidth" && y > v) && this.setAttribute("data-xgfill", "cover");
|
|
6495
|
-
var
|
|
6509
|
+
var H = {
|
|
6496
6510
|
videoScale: v,
|
|
6497
|
-
vWidth:
|
|
6511
|
+
vWidth: k,
|
|
6498
6512
|
vHeight: b,
|
|
6499
|
-
cWidth:
|
|
6513
|
+
cWidth: k,
|
|
6500
6514
|
cHeight: b + d
|
|
6501
6515
|
};
|
|
6502
|
-
this.resizePosition(), this.emit(Be,
|
|
6516
|
+
this.resizePosition(), this.emit(Be, H);
|
|
6503
6517
|
}
|
|
6504
6518
|
}
|
|
6505
6519
|
}
|
|
@@ -6516,7 +6530,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6516
6530
|
}, {
|
|
6517
6531
|
key: "setState",
|
|
6518
6532
|
value: function(e) {
|
|
6519
|
-
|
|
6533
|
+
U.logInfo("setState", "state from:".concat(sn[this.state], " to:").concat(sn[e])), this._state = e;
|
|
6520
6534
|
}
|
|
6521
6535
|
}, {
|
|
6522
6536
|
key: "_preProcessUrl",
|
|
@@ -6547,15 +6561,15 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6547
6561
|
return this._hasStart;
|
|
6548
6562
|
},
|
|
6549
6563
|
set: function(e) {
|
|
6550
|
-
typeof e == "boolean" && (this._hasStart = e, e === !1 && this.setState(
|
|
6564
|
+
typeof e == "boolean" && (this._hasStart = e, e === !1 && this.setState(V.READY), this.emit("hasstart"));
|
|
6551
6565
|
}
|
|
6552
6566
|
}, {
|
|
6553
6567
|
key: "isPlaying",
|
|
6554
6568
|
get: function() {
|
|
6555
|
-
return this._state ===
|
|
6569
|
+
return this._state === V.RUNNING || this._state === V.ENDED;
|
|
6556
6570
|
},
|
|
6557
6571
|
set: function(e) {
|
|
6558
|
-
e ? this.setState(
|
|
6572
|
+
e ? this.setState(V.RUNNING) : this._state >= V.RUNNING && this.setState(V.ATTACHED);
|
|
6559
6573
|
}
|
|
6560
6574
|
}, {
|
|
6561
6575
|
key: "definitionList",
|
|
@@ -6639,18 +6653,18 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6639
6653
|
}, {
|
|
6640
6654
|
key: "readyState",
|
|
6641
6655
|
get: function() {
|
|
6642
|
-
return
|
|
6656
|
+
return F(R(r.prototype), "readyState", this);
|
|
6643
6657
|
}
|
|
6644
6658
|
}, {
|
|
6645
6659
|
key: "error",
|
|
6646
6660
|
get: function() {
|
|
6647
|
-
var e =
|
|
6661
|
+
var e = F(R(r.prototype), "error", this);
|
|
6648
6662
|
return this.i18n[e] || e;
|
|
6649
6663
|
}
|
|
6650
6664
|
}, {
|
|
6651
6665
|
key: "networkState",
|
|
6652
6666
|
get: function() {
|
|
6653
|
-
return
|
|
6667
|
+
return F(R(r.prototype), "networkState", this);
|
|
6654
6668
|
}
|
|
6655
6669
|
}, {
|
|
6656
6670
|
key: "fullscreenChanging",
|
|
@@ -6749,10 +6763,10 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6749
6763
|
}], [{
|
|
6750
6764
|
key: "debugger",
|
|
6751
6765
|
get: function() {
|
|
6752
|
-
return
|
|
6766
|
+
return U.config.debug;
|
|
6753
6767
|
},
|
|
6754
6768
|
set: function(e) {
|
|
6755
|
-
|
|
6769
|
+
U.config.debug = e;
|
|
6756
6770
|
}
|
|
6757
6771
|
}, {
|
|
6758
6772
|
key: "instManager",
|
|
@@ -6777,12 +6791,12 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
6777
6791
|
}, {
|
|
6778
6792
|
key: "isHevcSupported",
|
|
6779
6793
|
value: function() {
|
|
6780
|
-
return
|
|
6794
|
+
return N.isHevcSupported();
|
|
6781
6795
|
}
|
|
6782
6796
|
}, {
|
|
6783
6797
|
key: "probeConfigSupported",
|
|
6784
6798
|
value: function(e) {
|
|
6785
|
-
return
|
|
6799
|
+
return N.probeConfigSupported(e);
|
|
6786
6800
|
}
|
|
6787
6801
|
}, {
|
|
6788
6802
|
key: "install",
|
|
@@ -6811,17 +6825,17 @@ var Fe = {
|
|
|
6811
6825
|
SEEK_START: "seekStart",
|
|
6812
6826
|
SEEK_END: "seekEnd"
|
|
6813
6827
|
}, Va = /* @__PURE__ */ function(a) {
|
|
6814
|
-
|
|
6815
|
-
var o =
|
|
6828
|
+
D(r, a);
|
|
6829
|
+
var o = O(r);
|
|
6816
6830
|
function r() {
|
|
6817
6831
|
var t;
|
|
6818
|
-
|
|
6832
|
+
P(this, r);
|
|
6819
6833
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
6820
6834
|
i[n] = arguments[n];
|
|
6821
6835
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onTimeupdate", function() {
|
|
6822
|
-
t._state.isTimeUpdate = !0, t._state.autoplayStart && (
|
|
6836
|
+
t._state.isTimeUpdate = !0, t._state.autoplayStart && (U.logInfo("[xgLogger]".concat(t.player.playerId, " _onTimeupdate")), t._sendFF("onTimeupdate"));
|
|
6823
6837
|
}), _(m(t), "_onAutoplayStart", function() {
|
|
6824
|
-
|
|
6838
|
+
U.logInfo("[xgLogger]".concat(t.player.playerId, " _onAutoplayStart")), t._state.autoplayStart = !0, t.vt && t._sendFF("onAutoplayStart");
|
|
6825
6839
|
}), _(m(t), "_onReset", function() {
|
|
6826
6840
|
t._state = {
|
|
6827
6841
|
autoplayStart: !1,
|
|
@@ -6858,36 +6872,36 @@ var Fe = {
|
|
|
6858
6872
|
t._isWaiting && t.suspendWaitingStatus("playing");
|
|
6859
6873
|
}), t;
|
|
6860
6874
|
}
|
|
6861
|
-
return
|
|
6875
|
+
return L(r, [{
|
|
6862
6876
|
key: "afterCreate",
|
|
6863
6877
|
value: function() {
|
|
6864
6878
|
var e = this;
|
|
6865
6879
|
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = se(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(mi, function() {
|
|
6866
6880
|
var i = e._state, n = i.autoplayStart, s = i.isFFSend;
|
|
6867
|
-
e.startCostTime = se() - e.newPointTime,
|
|
6881
|
+
e.startCostTime = se() - e.newPointTime, U.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(Fe.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = se(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
|
|
6868
6882
|
}), this.on(Le, function() {
|
|
6869
6883
|
e.vt = se(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
6870
6884
|
var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
|
|
6871
|
-
|
|
6885
|
+
U.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(Fe.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
6872
6886
|
}), this.on(Rt, this._onSeeking), this.on(Pe, this._onSeeked), this.on(Ci, function() {
|
|
6873
6887
|
e.endState("destroy");
|
|
6874
6888
|
}), this.on(Mt, function() {
|
|
6875
|
-
e.endState("urlChange"),
|
|
6889
|
+
e.endState("urlChange"), U.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
6876
6890
|
}), this.on([vi, Ie], this._onPlaying), this.on(pt, this._onWaiting), this.on(gt, this._onError), this.on(Nt, function() {
|
|
6877
|
-
|
|
6891
|
+
U.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
6878
6892
|
});
|
|
6879
6893
|
}
|
|
6880
6894
|
}, {
|
|
6881
6895
|
key: "_initOnceEvents",
|
|
6882
6896
|
value: function() {
|
|
6883
|
-
this.off(Ge, this._onAutoplayStart), this.off(
|
|
6897
|
+
this.off(Ge, this._onAutoplayStart), this.off(de, this._onTimeupdate), this.once(Ge, this._onAutoplayStart), this.once(de, this._onTimeupdate);
|
|
6884
6898
|
}
|
|
6885
6899
|
}, {
|
|
6886
6900
|
key: "_sendFF",
|
|
6887
6901
|
value: function(e) {
|
|
6888
6902
|
this.s = se();
|
|
6889
6903
|
var i = this._state, n = i.isFFLoading, s = i.isFFSend;
|
|
6890
|
-
|
|
6904
|
+
U.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (U.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(Fe.FIRST_FRAME, {
|
|
6891
6905
|
fvt: this.fvt,
|
|
6892
6906
|
costTime: this.fvt,
|
|
6893
6907
|
vt: this.vt,
|
|
@@ -6968,12 +6982,12 @@ function ja() {
|
|
|
6968
6982
|
`, "image/svg+xml").firstChild;
|
|
6969
6983
|
}
|
|
6970
6984
|
var Wa = /* @__PURE__ */ function(a) {
|
|
6971
|
-
|
|
6972
|
-
var o =
|
|
6985
|
+
D(r, a);
|
|
6986
|
+
var o = O(r);
|
|
6973
6987
|
function r() {
|
|
6974
|
-
return
|
|
6988
|
+
return P(this, r), o.apply(this, arguments);
|
|
6975
6989
|
}
|
|
6976
|
-
return
|
|
6990
|
+
return L(r, [{
|
|
6977
6991
|
key: "registerIcons",
|
|
6978
6992
|
value: function() {
|
|
6979
6993
|
return {
|
|
@@ -7001,7 +7015,7 @@ var Wa = /* @__PURE__ */ function(a) {
|
|
|
7001
7015
|
i.setAttribute("transform", n);
|
|
7002
7016
|
}
|
|
7003
7017
|
}
|
|
7004
|
-
}), this.on(
|
|
7018
|
+
}), this.on(ge, function() {
|
|
7005
7019
|
e.hide();
|
|
7006
7020
|
});
|
|
7007
7021
|
}
|
|
@@ -7051,12 +7065,12 @@ var Wa = /* @__PURE__ */ function(a) {
|
|
|
7051
7065
|
}
|
|
7052
7066
|
}]), r;
|
|
7053
7067
|
}(W), Ga = /* @__PURE__ */ function(a) {
|
|
7054
|
-
|
|
7055
|
-
var o =
|
|
7068
|
+
D(r, a);
|
|
7069
|
+
var o = O(r);
|
|
7056
7070
|
function r() {
|
|
7057
|
-
return
|
|
7071
|
+
return P(this, r), o.apply(this, arguments);
|
|
7058
7072
|
}
|
|
7059
|
-
return
|
|
7073
|
+
return L(r, [{
|
|
7060
7074
|
key: "isEndedShow",
|
|
7061
7075
|
get: function() {
|
|
7062
7076
|
return this.config.isEndedShow;
|
|
@@ -7085,13 +7099,13 @@ var Wa = /* @__PURE__ */ function(a) {
|
|
|
7085
7099
|
var e = this;
|
|
7086
7100
|
this.on($e, function() {
|
|
7087
7101
|
e.isEndedShow && f.removeClass(e.root, "hide");
|
|
7088
|
-
}), this.config.hideCanplay ? (this.once(
|
|
7102
|
+
}), this.config.hideCanplay ? (this.once(de, function() {
|
|
7089
7103
|
e.onTimeUpdate();
|
|
7090
7104
|
}), this.on(Mt, function() {
|
|
7091
|
-
f.removeClass(e.root, "hide"), f.addClass(e.root, "xg-showplay"), e.once(
|
|
7105
|
+
f.removeClass(e.root, "hide"), f.addClass(e.root, "xg-showplay"), e.once(de, function() {
|
|
7092
7106
|
e.onTimeUpdate();
|
|
7093
7107
|
});
|
|
7094
|
-
})) : this.on(
|
|
7108
|
+
})) : this.on(ge, function() {
|
|
7095
7109
|
f.addClass(e.root, "hide");
|
|
7096
7110
|
});
|
|
7097
7111
|
}
|
|
@@ -7109,7 +7123,7 @@ var Wa = /* @__PURE__ */ function(a) {
|
|
|
7109
7123
|
key: "onTimeUpdate",
|
|
7110
7124
|
value: function() {
|
|
7111
7125
|
var e = this;
|
|
7112
|
-
this.player.currentTime ? f.removeClass(this.root, "xg-showplay") : this.once(
|
|
7126
|
+
this.player.currentTime ? f.removeClass(this.root, "xg-showplay") : this.once(de, function() {
|
|
7113
7127
|
e.onTimeUpdate();
|
|
7114
7128
|
});
|
|
7115
7129
|
}
|
|
@@ -7194,11 +7208,11 @@ function ln(a) {
|
|
|
7194
7208
|
});
|
|
7195
7209
|
}
|
|
7196
7210
|
var Ka = /* @__PURE__ */ function(a) {
|
|
7197
|
-
|
|
7198
|
-
var o =
|
|
7211
|
+
D(r, a);
|
|
7212
|
+
var o = O(r);
|
|
7199
7213
|
function r(t) {
|
|
7200
7214
|
var e;
|
|
7201
|
-
return
|
|
7215
|
+
return P(this, r), e = o.call(this, t), _(m(e), "onPlayerReset", function() {
|
|
7202
7216
|
e.autoPlayStart = !1;
|
|
7203
7217
|
var i = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
7204
7218
|
e.setAttr("data-state", "play"), f.removeClass(e.root, i), e.show();
|
|
@@ -7209,7 +7223,7 @@ var Ka = /* @__PURE__ */ function(a) {
|
|
|
7209
7223
|
}
|
|
7210
7224
|
}), e.autoPlayStart = !1, e;
|
|
7211
7225
|
}
|
|
7212
|
-
return
|
|
7226
|
+
return L(r, [{
|
|
7213
7227
|
key: "afterCreate",
|
|
7214
7228
|
value: function() {
|
|
7215
7229
|
var e = this, i = this.player, n = this.playerConfig;
|
|
@@ -7218,7 +7232,7 @@ var Ka = /* @__PURE__ */ function(a) {
|
|
|
7218
7232
|
}), this.on(Ge, this.onAutoplayStart), n.autoplay || this.show(), this.on(ki, function() {
|
|
7219
7233
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
7220
7234
|
e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
|
|
7221
|
-
}), this.on(
|
|
7235
|
+
}), this.on(ge, function() {
|
|
7222
7236
|
e.onPlayPause("play");
|
|
7223
7237
|
}), this.on(at, function() {
|
|
7224
7238
|
e.onPlayPause("pause");
|
|
@@ -7303,16 +7317,16 @@ var Ka = /* @__PURE__ */ function(a) {
|
|
|
7303
7317
|
key: "switchPausePlay",
|
|
7304
7318
|
value: function(e) {
|
|
7305
7319
|
var i = this.player;
|
|
7306
|
-
if (e.cancelable && e.preventDefault(), e.stopPropagation(), !(i.state <
|
|
7320
|
+
if (e.cancelable && e.preventDefault(), e.stopPropagation(), !(i.state < V.READY)) {
|
|
7307
7321
|
var n = this.player.paused;
|
|
7308
|
-
!n && i.state ===
|
|
7322
|
+
!n && i.state === V.RUNNING ? i.pause() : i.play();
|
|
7309
7323
|
}
|
|
7310
7324
|
}
|
|
7311
7325
|
}, {
|
|
7312
7326
|
key: "onPlayPause",
|
|
7313
7327
|
value: function(e) {
|
|
7314
7328
|
var i = this.config, n = this.player;
|
|
7315
|
-
if (!(!n || n.state <
|
|
7329
|
+
if (!(!n || n.state < V.RUNNING || !this.autoPlayStart)) {
|
|
7316
7330
|
if (i.mode === "show") {
|
|
7317
7331
|
this.switchStatus(), this.show();
|
|
7318
7332
|
return;
|
|
@@ -7369,12 +7383,12 @@ var Ka = /* @__PURE__ */ function(a) {
|
|
|
7369
7383
|
}
|
|
7370
7384
|
}]), r;
|
|
7371
7385
|
}(W), Ya = /* @__PURE__ */ function(a) {
|
|
7372
|
-
|
|
7373
|
-
var o =
|
|
7386
|
+
D(r, a);
|
|
7387
|
+
var o = O(r);
|
|
7374
7388
|
function r() {
|
|
7375
|
-
return
|
|
7389
|
+
return P(this, r), o.apply(this, arguments);
|
|
7376
7390
|
}
|
|
7377
|
-
return
|
|
7391
|
+
return L(r, [{
|
|
7378
7392
|
key: "render",
|
|
7379
7393
|
value: function() {
|
|
7380
7394
|
var e = this.config.innerHtml, i = f.createDom("xg-enter", "", {}, "xgplayer-enter");
|
|
@@ -7414,12 +7428,12 @@ function ze(a, o, r) {
|
|
|
7414
7428
|
}
|
|
7415
7429
|
}
|
|
7416
7430
|
var un = /* @__PURE__ */ function(a) {
|
|
7417
|
-
|
|
7418
|
-
var o =
|
|
7431
|
+
D(r, a);
|
|
7432
|
+
var o = O(r);
|
|
7419
7433
|
function r() {
|
|
7420
|
-
return
|
|
7434
|
+
return P(this, r), o.apply(this, arguments);
|
|
7421
7435
|
}
|
|
7422
|
-
return
|
|
7436
|
+
return L(r, [{
|
|
7423
7437
|
key: "afterCreate",
|
|
7424
7438
|
value: function() {
|
|
7425
7439
|
this.getMini = this.getMini.bind(this), this.exitMini = this.exitMini.bind(this), this.bind("click", this.getMini);
|
|
@@ -7497,10 +7511,10 @@ function fn(a) {
|
|
|
7497
7511
|
var i = Si[e], n = o[i], s = parseFloat(n);
|
|
7498
7512
|
r[i] = Number.isNaN(s) ? 0 : s;
|
|
7499
7513
|
}
|
|
7500
|
-
var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth,
|
|
7501
|
-
v !== !1 && (r.width = v + (
|
|
7514
|
+
var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, g = r.borderTopWidth + r.borderBottomWidth, p = t, v = cn(o.width);
|
|
7515
|
+
v !== !1 && (r.width = v + (p ? 0 : l + d));
|
|
7502
7516
|
var y = cn(o.height);
|
|
7503
|
-
return y !== !1 && (r.height = y + (
|
|
7517
|
+
return y !== !1 && (r.height = y + (p ? 0 : u + g)), r.innerWidth = r.width - (l + d), r.innerHeight = r.height - (u + g), r.outerWidth = r.width + c, r.outerHeight = r.height + h, r;
|
|
7504
7518
|
}
|
|
7505
7519
|
}
|
|
7506
7520
|
function Xt(a, o) {
|
|
@@ -7519,11 +7533,11 @@ var qt = {
|
|
|
7519
7533
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
7520
7534
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
7521
7535
|
}, Za = /* @__PURE__ */ function(a) {
|
|
7522
|
-
|
|
7523
|
-
var o =
|
|
7536
|
+
D(r, a);
|
|
7537
|
+
var o = O(r);
|
|
7524
7538
|
function r(t) {
|
|
7525
7539
|
var e, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7526
|
-
return
|
|
7540
|
+
return P(this, r), e = o.call(this), e.isEnabled = !0, e.isDragging = !1, e.isDown = !1, e.position = {}, e.downPoint = {}, e.dragPoint = {
|
|
7527
7541
|
x: 0,
|
|
7528
7542
|
y: 0
|
|
7529
7543
|
}, e.startPos = {
|
|
@@ -7531,7 +7545,7 @@ var qt = {
|
|
|
7531
7545
|
y: 0
|
|
7532
7546
|
}, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ? pi(e) : (e._bindStartEvent(), e);
|
|
7533
7547
|
}
|
|
7534
|
-
return
|
|
7548
|
+
return L(r, [{
|
|
7535
7549
|
key: "_bindStartEvent",
|
|
7536
7550
|
value: function() {
|
|
7537
7551
|
var e = this;
|
|
@@ -7729,11 +7743,11 @@ var qt = {
|
|
|
7729
7743
|
}
|
|
7730
7744
|
}]), r;
|
|
7731
7745
|
}(An), Ja = /* @__PURE__ */ function(a) {
|
|
7732
|
-
|
|
7733
|
-
var o =
|
|
7746
|
+
D(r, a);
|
|
7747
|
+
var o = O(r);
|
|
7734
7748
|
function r(t) {
|
|
7735
7749
|
var e;
|
|
7736
|
-
|
|
7750
|
+
P(this, r), e = o.call(this, t), _(m(e), "onCancelClick", function(s) {
|
|
7737
7751
|
e.exitMini(), e.isClose = !0;
|
|
7738
7752
|
}), _(m(e), "onCenterClick", function(s) {
|
|
7739
7753
|
var l = m(e), u = l.player;
|
|
@@ -7753,7 +7767,7 @@ var qt = {
|
|
|
7753
7767
|
scrollY: window.scrollY || 0
|
|
7754
7768
|
}, e.lastStyle = null, e;
|
|
7755
7769
|
}
|
|
7756
|
-
return
|
|
7770
|
+
return L(r, [{
|
|
7757
7771
|
key: "beforeCreate",
|
|
7758
7772
|
value: function(e) {
|
|
7759
7773
|
typeof e.player.config.mini == "boolean" && (e.config.isShowIcon = e.player.config.mini);
|
|
@@ -7764,7 +7778,7 @@ var qt = {
|
|
|
7764
7778
|
var e = this;
|
|
7765
7779
|
this.initIcons(), this.on(at, function() {
|
|
7766
7780
|
e.setAttr("data-state", "pause");
|
|
7767
|
-
}), this.on(
|
|
7781
|
+
}), this.on(ge, function() {
|
|
7768
7782
|
e.setAttr("data-state", "play");
|
|
7769
7783
|
});
|
|
7770
7784
|
}
|
|
@@ -7883,11 +7897,11 @@ var qt = {
|
|
|
7883
7897
|
mouseleave: "onMouseLeave",
|
|
7884
7898
|
mousemove: "onMouseMove"
|
|
7885
7899
|
}, Zt = ["videoClick", "videoDbClick"], Jt = /* @__PURE__ */ function(a) {
|
|
7886
|
-
|
|
7887
|
-
var o =
|
|
7900
|
+
D(r, a);
|
|
7901
|
+
var o = O(r);
|
|
7888
7902
|
function r() {
|
|
7889
7903
|
var t;
|
|
7890
|
-
|
|
7904
|
+
P(this, r);
|
|
7891
7905
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
7892
7906
|
i[n] = arguments[n];
|
|
7893
7907
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onMouseMove", function(s) {
|
|
@@ -7938,7 +7952,7 @@ var qt = {
|
|
|
7938
7952
|
}
|
|
7939
7953
|
}), t;
|
|
7940
7954
|
}
|
|
7941
|
-
return
|
|
7955
|
+
return L(r, [{
|
|
7942
7956
|
key: "afterCreate",
|
|
7943
7957
|
value: function() {
|
|
7944
7958
|
var e = this;
|
|
@@ -7946,7 +7960,7 @@ var qt = {
|
|
|
7946
7960
|
e.__hooks[n] = null;
|
|
7947
7961
|
});
|
|
7948
7962
|
var i = this.playerConfig.isMobileSimulateMode;
|
|
7949
|
-
i === "mobile" ||
|
|
7963
|
+
i === "mobile" || N.device === "mobile" && !N.os.isIpad || this.initEvents();
|
|
7950
7964
|
}
|
|
7951
7965
|
}, {
|
|
7952
7966
|
key: "initEvents",
|
|
@@ -8027,7 +8041,7 @@ var il = /* @__PURE__ */ function() {
|
|
|
8027
8041
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
8028
8042
|
eventType: "touch"
|
|
8029
8043
|
};
|
|
8030
|
-
|
|
8044
|
+
P(this, a), _(this, "onTouchStart", function(e) {
|
|
8031
8045
|
var i = r._pos, n = r.root, s = dn(e.touches);
|
|
8032
8046
|
i.x = s ? parseInt(s.pageX, 10) : e.pageX, i.y = s ? parseInt(s.pageX, 10) : e.pageX, i.start = !0, r.__setPress(e), n.addEventListener(r.events.end, r.onTouchEnd), n.addEventListener(r.events.cancel, r.onTouchCancel), n.addEventListener(r.events.move, r.onTouchMove), r.trigger(Me.TOUCH_START, e);
|
|
8033
8047
|
}), _(this, "onTouchCancel", function(e) {
|
|
@@ -8047,7 +8061,7 @@ var il = /* @__PURE__ */ function() {
|
|
|
8047
8061
|
r.config[e] = t[e];
|
|
8048
8062
|
}), this.root = o, this.events = t.eventType === "mouse" ? el : Qa, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
8049
8063
|
}
|
|
8050
|
-
return
|
|
8064
|
+
return L(a, [{
|
|
8051
8065
|
key: "_initEvent",
|
|
8052
8066
|
value: function() {
|
|
8053
8067
|
this.root.addEventListener(this.events.start, this.onTouchStart);
|
|
@@ -8139,30 +8153,30 @@ var Ze = {
|
|
|
8139
8153
|
PLAYBACK: "playbackrate",
|
|
8140
8154
|
LIGHT: ""
|
|
8141
8155
|
}, Qt = ["videoClick", "videoDbClick"], rl = /* @__PURE__ */ function(a) {
|
|
8142
|
-
|
|
8143
|
-
var o =
|
|
8156
|
+
D(r, a);
|
|
8157
|
+
var o = O(r);
|
|
8144
8158
|
function r(t) {
|
|
8145
8159
|
var e;
|
|
8146
|
-
return
|
|
8160
|
+
return P(this, r), e = o.call(this, t), _(m(e), "onTouchStart", function(i) {
|
|
8147
8161
|
var n = m(e), s = n.player, l = n.config, u = n.pos, c = n.playerConfig, h = e.getTouche(i);
|
|
8148
8162
|
if (h && !l.disableGesture && e.duration > 0 && !s.ended) {
|
|
8149
8163
|
u.isStart = !0, e.timer && clearTimeout(e.timer), f.checkIsFunction(c.disableSwipeHandler) && c.disableSwipeHandler(), e.find(".xg-dur").innerHTML = f.format(e.duration);
|
|
8150
8164
|
var d = e.root.getBoundingClientRect();
|
|
8151
8165
|
s.rotateDeg === 90 ? (u.top = d.left, u.left = d.top, u.width = d.height, u.height = d.width) : (u.top = d.top, u.left = d.left, u.width = d.width, u.height = d.height);
|
|
8152
|
-
var
|
|
8153
|
-
u.x = s.rotateDeg === 90 ?
|
|
8166
|
+
var g = parseInt(h.pageX - u.left, 10), p = parseInt(h.pageY - u.top, 10);
|
|
8167
|
+
u.x = s.rotateDeg === 90 ? p : g, u.y = s.rotateDeg === 90 ? g : p, u.scopeL = l.scopeL * u.width, u.scopeR = (1 - l.scopeR) * u.width, u.scopeM1 = u.width * (1 - l.scopeM) / 2, u.scopeM2 = u.width - u.scopeM1;
|
|
8154
8168
|
}
|
|
8155
8169
|
}), _(m(e), "onTouchMove", function(i) {
|
|
8156
8170
|
var n = e.getTouche(i), s = m(e), l = s.pos, u = s.config, c = s.player;
|
|
8157
8171
|
if (!(!n || u.disableGesture || !e.duration || !l.isStart)) {
|
|
8158
|
-
var h = u.miniMoveStep, d = u.hideControlsActive,
|
|
8172
|
+
var h = u.miniMoveStep, d = u.hideControlsActive, g = parseInt(n.pageX - l.left, 10), p = parseInt(n.pageY - l.top, 10), v = c.rotateDeg === 90 ? p : g, y = c.rotateDeg === 90 ? g : p;
|
|
8159
8173
|
if (Math.abs(v - l.x) > h || Math.abs(y - l.y) > h) {
|
|
8160
|
-
var
|
|
8161
|
-
if (w === -1 && (w = e.checkScope(v, y,
|
|
8174
|
+
var k = v - l.x, b = y - l.y, w = l.scope;
|
|
8175
|
+
if (w === -1 && (w = e.checkScope(v, y, k, b, l), w === 0 && (d ? c.blur() : c.focus({
|
|
8162
8176
|
autoHide: !1
|
|
8163
8177
|
}), !l.time && (l.time = parseInt(c.currentTime * 1e3, 10) + e.timeOffset * 1e3)), l.scope = w), w === -1 || w > 0 && !u.gestureY || w === 0 && !u.gestureX)
|
|
8164
8178
|
return;
|
|
8165
|
-
e.executeMove(
|
|
8179
|
+
e.executeMove(k, b, w, l.width, l.height), l.x = v, l.y = y;
|
|
8166
8180
|
}
|
|
8167
8181
|
}
|
|
8168
8182
|
}), _(m(e), "onTouchEnd", function(i) {
|
|
@@ -8195,7 +8209,7 @@ var Ze = {
|
|
|
8195
8209
|
scope: -1
|
|
8196
8210
|
}, e.timer = null, e;
|
|
8197
8211
|
}
|
|
8198
|
-
return
|
|
8212
|
+
return L(r, [{
|
|
8199
8213
|
key: "duration",
|
|
8200
8214
|
get: function() {
|
|
8201
8215
|
return this.playerConfig.customDuration || this.player.duration;
|
|
@@ -8233,11 +8247,11 @@ var Ze = {
|
|
|
8233
8247
|
}), s.root.addEventListener("touchmove", this.onRootTouchMove, !0), s.root.addEventListener("touchend", this.onRootTouchEnd, !0), s.root.addEventListener("touchcancel", this.onRootTouchEnd, !0);
|
|
8234
8248
|
var u = this.player.controls;
|
|
8235
8249
|
u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(Ue, function() {
|
|
8236
|
-
var d = e.player,
|
|
8237
|
-
d.duration * 1e3 <
|
|
8250
|
+
var d = e.player, g = e.config;
|
|
8251
|
+
d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
|
|
8238
8252
|
}), this.on([Ie, $e], function() {
|
|
8239
|
-
var d = e.pos,
|
|
8240
|
-
!
|
|
8253
|
+
var d = e.pos, g = d.time, p = d.isStart;
|
|
8254
|
+
!p && g > 0 && (e.pos.time = 0);
|
|
8241
8255
|
});
|
|
8242
8256
|
var c = {
|
|
8243
8257
|
touchstart: "onTouchStart",
|
|
@@ -8249,8 +8263,8 @@ var Ze = {
|
|
|
8249
8263
|
doubleclick: "onDbClick"
|
|
8250
8264
|
};
|
|
8251
8265
|
if (Object.keys(c).map(function(d) {
|
|
8252
|
-
e.touch.on(d, function(
|
|
8253
|
-
e[c[d]](
|
|
8266
|
+
e.touch.on(d, function(g) {
|
|
8267
|
+
e[c[d]](g);
|
|
8254
8268
|
});
|
|
8255
8269
|
}), !n.disableActive) {
|
|
8256
8270
|
var h = s.plugins.progress;
|
|
@@ -8279,12 +8293,12 @@ var Ze = {
|
|
|
8279
8293
|
var e = this.playerConfig || {}, i = e.commonStyle, n = i.playedColor, s = i.progressColor, l = i.timePreviewStyle, u = i.curTimeColor, c = i.durationColor;
|
|
8280
8294
|
if (n && (this.find(".xg-curbar").style.backgroundColor = n), s && (this.find(".xg-bar").style.backgroundColor = s), l) {
|
|
8281
8295
|
var h = this.find(".time-preview");
|
|
8282
|
-
Object.keys(l).forEach(function(
|
|
8283
|
-
h.style[
|
|
8296
|
+
Object.keys(l).forEach(function(p) {
|
|
8297
|
+
h.style[p] = l[p];
|
|
8284
8298
|
});
|
|
8285
8299
|
}
|
|
8286
|
-
var d = u || n,
|
|
8287
|
-
d && (this.find(".xg-cur").style.color = d),
|
|
8300
|
+
var d = u || n, g = c;
|
|
8301
|
+
d && (this.find(".xg-cur").style.color = d), g && (this.find(".xg-dur").style.color = g), this.config.disableTimeProgress && f.addClass(this.find(".xg-timebar"), "hide");
|
|
8288
8302
|
}
|
|
8289
8303
|
}, {
|
|
8290
8304
|
key: "resetPos",
|
|
@@ -8349,7 +8363,7 @@ var Ze = {
|
|
|
8349
8363
|
this.updateBrightness(i / l);
|
|
8350
8364
|
break;
|
|
8351
8365
|
case 2:
|
|
8352
|
-
|
|
8366
|
+
N.os.isIos || this.updateVolume(i / l);
|
|
8353
8367
|
break;
|
|
8354
8368
|
}
|
|
8355
8369
|
}
|
|
@@ -8386,7 +8400,7 @@ var Ze = {
|
|
|
8386
8400
|
key: "clickHandler",
|
|
8387
8401
|
value: function(e) {
|
|
8388
8402
|
var i = this.player, n = this.config, s = this.playerConfig;
|
|
8389
|
-
if (i.state <
|
|
8403
|
+
if (i.state < V.RUNNING) {
|
|
8390
8404
|
s.closeVideoClick || (this.sendUseAction(f.createEvent("click")), i.play());
|
|
8391
8405
|
return;
|
|
8392
8406
|
}
|
|
@@ -8396,7 +8410,7 @@ var Ze = {
|
|
|
8396
8410
|
key: "dbClickHandler",
|
|
8397
8411
|
value: function(e) {
|
|
8398
8412
|
var i = this.config, n = this.player;
|
|
8399
|
-
!i.closedbClick && n.state >=
|
|
8413
|
+
!i.closedbClick && n.state >= V.RUNNING && (this.sendUseAction(f.createEvent("dblclick")), this.switchPlayPause());
|
|
8400
8414
|
}
|
|
8401
8415
|
}, {
|
|
8402
8416
|
key: "onClick",
|
|
@@ -8485,7 +8499,7 @@ var Ze = {
|
|
|
8485
8499
|
key: "switchPlayPause",
|
|
8486
8500
|
value: function() {
|
|
8487
8501
|
var e = this.player;
|
|
8488
|
-
if (e.state <
|
|
8502
|
+
if (e.state < V.ATTACHED)
|
|
8489
8503
|
return !1;
|
|
8490
8504
|
e.ended || (e.paused ? e.play() : e.pause());
|
|
8491
8505
|
}
|
|
@@ -8575,17 +8589,17 @@ function gn(a) {
|
|
|
8575
8589
|
return !!(o === "INPUT" || o === "TEXTAREA" || a.isContentEditable);
|
|
8576
8590
|
}
|
|
8577
8591
|
var pn = /* @__PURE__ */ function(a) {
|
|
8578
|
-
|
|
8579
|
-
var o =
|
|
8592
|
+
D(r, a);
|
|
8593
|
+
var o = O(r);
|
|
8580
8594
|
function r() {
|
|
8581
8595
|
var t;
|
|
8582
|
-
|
|
8596
|
+
P(this, r);
|
|
8583
8597
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
8584
8598
|
i[n] = arguments[n];
|
|
8585
8599
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onBodyKeyDown", function(s) {
|
|
8586
8600
|
if (t.player) {
|
|
8587
|
-
var l = s || window.event, u = l.keyCode, c = m(t), h = c._keyState, d = c.player,
|
|
8588
|
-
if (
|
|
8601
|
+
var l = s || window.event, u = l.keyCode, c = m(t), h = c._keyState, d = c.player, g = t.config, p = g.disable, v = g.disableBodyTrigger, y = g.isIgnoreUserActive;
|
|
8602
|
+
if (p || v || !(d.isUserActive || y) || gn(l.target) || !t.checkIsVisible() || l.metaKey || l.altKey || l.ctrlKey) {
|
|
8589
8603
|
h.isBodyKeyDown = !1;
|
|
8590
8604
|
return;
|
|
8591
8605
|
}
|
|
@@ -8607,7 +8621,7 @@ var pn = /* @__PURE__ */ function(a) {
|
|
|
8607
8621
|
t.player && (t.player.root.removeEventListener("keyup", t.onKeyup), t.handleKeyUp(s));
|
|
8608
8622
|
}), t;
|
|
8609
8623
|
}
|
|
8610
|
-
return
|
|
8624
|
+
return L(r, [{
|
|
8611
8625
|
key: "mergekeyCodeMap",
|
|
8612
8626
|
value: function() {
|
|
8613
8627
|
var e = this, i = this.config.keyCodeMap;
|
|
@@ -8730,17 +8744,17 @@ var pn = /* @__PURE__ */ function(a) {
|
|
|
8730
8744
|
}, {
|
|
8731
8745
|
key: "seek",
|
|
8732
8746
|
value: function(e) {
|
|
8733
|
-
var i = this.player, n = i.currentTime, s = i.offsetCurrentTime, l = i.duration, u = i.offsetDuration, c = i.timeSegments, h = s > -1 ? s : n, d = u || l,
|
|
8734
|
-
h +
|
|
8735
|
-
var
|
|
8747
|
+
var i = this.player, n = i.currentTime, s = i.offsetCurrentTime, l = i.duration, u = i.offsetDuration, c = i.timeSegments, h = s > -1 ? s : n, d = u || l, g = e.repeat && this.seekStep >= 4 ? parseInt(this.seekStep / 2, 10) : this.seekStep;
|
|
8748
|
+
h + g <= d ? h = h + g : h = d;
|
|
8749
|
+
var p = f.getCurrentTimeByOffset(h, c), v = {
|
|
8736
8750
|
currentTime: {
|
|
8737
8751
|
from: n,
|
|
8738
|
-
to:
|
|
8752
|
+
to: p
|
|
8739
8753
|
}
|
|
8740
8754
|
};
|
|
8741
8755
|
this.emitUserAction(e, "seek", {
|
|
8742
8756
|
props: v
|
|
8743
|
-
}), this.player.currentTime =
|
|
8757
|
+
}), this.player.currentTime = p;
|
|
8744
8758
|
}
|
|
8745
8759
|
}, {
|
|
8746
8760
|
key: "seekBack",
|
|
@@ -8806,10 +8820,10 @@ var pn = /* @__PURE__ */ function(a) {
|
|
|
8806
8820
|
key: "handleKeyCode",
|
|
8807
8821
|
value: function(e, i, n) {
|
|
8808
8822
|
for (var s = Object.keys(this.keyCodeMap), l = 0; l < s.length; l++) {
|
|
8809
|
-
var u = this.keyCodeMap[s[l]], c = u.action, h = u.keyCode, d = u.disable,
|
|
8823
|
+
var u = this.keyCodeMap[s[l]], c = u.action, h = u.keyCode, d = u.disable, g = u.pressAction, p = u.disablePress;
|
|
8810
8824
|
if (h === e) {
|
|
8811
|
-
if (!d && !(n &&
|
|
8812
|
-
var v = n &&
|
|
8825
|
+
if (!d && !(n && p)) {
|
|
8826
|
+
var v = n && g || c;
|
|
8813
8827
|
typeof v == "function" ? c(i, this.player, n) : typeof v == "string" && typeof this[v] == "function" && this[v](i, this.player, n), this.emit(jn, Z({
|
|
8814
8828
|
key: s[l],
|
|
8815
8829
|
target: i.target,
|
|
@@ -8865,12 +8879,12 @@ function ol() {
|
|
|
8865
8879
|
`, "image/svg+xml").firstChild;
|
|
8866
8880
|
}
|
|
8867
8881
|
var al = /* @__PURE__ */ function(a) {
|
|
8868
|
-
|
|
8869
|
-
var o =
|
|
8882
|
+
D(r, a);
|
|
8883
|
+
var o = O(r);
|
|
8870
8884
|
function r() {
|
|
8871
|
-
return
|
|
8885
|
+
return P(this, r), o.apply(this, arguments);
|
|
8872
8886
|
}
|
|
8873
|
-
return
|
|
8887
|
+
return L(r, [{
|
|
8874
8888
|
key: "registerIcons",
|
|
8875
8889
|
value: function() {
|
|
8876
8890
|
return {
|
|
@@ -8913,7 +8927,7 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
8913
8927
|
styleKey: "playedColor"
|
|
8914
8928
|
}], ul = /* @__PURE__ */ function() {
|
|
8915
8929
|
function a(o) {
|
|
8916
|
-
|
|
8930
|
+
P(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
8917
8931
|
percent: 1
|
|
8918
8932
|
}), this._callBack = o.actionCallback, this.fragConfig = {
|
|
8919
8933
|
fragFocusClass: o.fragFocusClass || "inner-focus-point",
|
|
@@ -8925,7 +8939,7 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
8925
8939
|
progressColor: ""
|
|
8926
8940
|
}, this.duration = 0, this.cachedIndex = 0, this.playedIndex = 0, this.focusIndex = -1;
|
|
8927
8941
|
}
|
|
8928
|
-
return
|
|
8942
|
+
return L(a, [{
|
|
8929
8943
|
key: "updateDuration",
|
|
8930
8944
|
value: function(r) {
|
|
8931
8945
|
var t = this;
|
|
@@ -9115,18 +9129,18 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9115
9129
|
POINT: "inner-focus-point",
|
|
9116
9130
|
HIGHLIGHT: "inner-focus-highlight"
|
|
9117
9131
|
}, cl = /* @__PURE__ */ function(a) {
|
|
9118
|
-
|
|
9119
|
-
var o =
|
|
9132
|
+
D(r, a);
|
|
9133
|
+
var o = O(r);
|
|
9120
9134
|
function r(t) {
|
|
9121
9135
|
var e;
|
|
9122
|
-
return
|
|
9136
|
+
return P(this, r), e = o.call(this, t), _(m(e), "onMoveOnly", function(i, n) {
|
|
9123
9137
|
var s = m(e), l = s.pos, u = s.config, c = s.player, h = n;
|
|
9124
9138
|
if (i) {
|
|
9125
9139
|
f.event(i);
|
|
9126
|
-
var d = f.getEventPos(i, c.zoom),
|
|
9127
|
-
if (l.moving && Math.abs(l.x -
|
|
9140
|
+
var d = f.getEventPos(i, c.zoom), g = c.rotateDeg === 90 ? d.clientY : d.clientX;
|
|
9141
|
+
if (l.moving && Math.abs(l.x - g) < u.miniMoveStep)
|
|
9128
9142
|
return;
|
|
9129
|
-
l.moving = !0, l.x =
|
|
9143
|
+
l.moving = !0, l.x = g, h = e.computeTime(i, g);
|
|
9130
9144
|
}
|
|
9131
9145
|
e.triggerCallbacks("dragmove", h, i), e._updateInnerFocus(h);
|
|
9132
9146
|
}), _(m(e), "onBodyClick", function(i) {
|
|
@@ -9140,17 +9154,17 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9140
9154
|
var s = m(e), l = s._state, u = s.pos, c = s.config, h = s.player;
|
|
9141
9155
|
l.time < n.currentTime ? n.forward = !0 : n.forward = !1, l.time = n.currentTime, u.isDown && !u.moving && (u.moving = !0, c.isPauseMoving && h.pause(), e.triggerCallbacks("dragstart", n, i), e.emitUserAction("drag", "dragstart", n)), e.updateWidth(n.currentTime, n.seekTime, n.percent, 1), e.triggerCallbacks("dragmove", n, i), e._updateInnerFocus(n);
|
|
9142
9156
|
}), _(m(e), "onMouseDown", function(i) {
|
|
9143
|
-
var n = m(e), s = n._state, l = n.player, u = n.pos, c = n.config, h = n.playerConfig, d = f.getEventPos(i, l.zoom),
|
|
9157
|
+
var n = m(e), s = n._state, l = n.player, u = n.pos, c = n.config, h = n.playerConfig, d = f.getEventPos(i, l.zoom), g = l.rotateDeg === 90 ? d.clientY : d.clientX;
|
|
9144
9158
|
if (!(l.isMini || c.closeMoveSeek || !h.allowSeekAfterEnded && l.ended)) {
|
|
9145
9159
|
if (!l.duration && !l.isPlaying) {
|
|
9146
9160
|
l.play();
|
|
9147
9161
|
return;
|
|
9148
9162
|
}
|
|
9149
|
-
i.stopPropagation(), e.focus(), f.checkIsFunction(h.disableSwipeHandler) && h.disableSwipeHandler(), f.checkIsFunction(c.onMoveStart) && c.onMoveStart(), f.event(i), u.x =
|
|
9163
|
+
i.stopPropagation(), e.focus(), f.checkIsFunction(h.disableSwipeHandler) && h.disableSwipeHandler(), f.checkIsFunction(c.onMoveStart) && c.onMoveStart(), f.event(i), u.x = g, u.isDown = !0, u.moving = !1, s.prePlayTime = l.currentTime, l.focus({
|
|
9150
9164
|
autoHide: !1
|
|
9151
9165
|
}), e.isProgressMoving = !0, f.addClass(e.progressBtn, "active");
|
|
9152
|
-
var
|
|
9153
|
-
|
|
9166
|
+
var p = e.computeTime(i, g);
|
|
9167
|
+
p.prePlayTime = s.prePlayTime, e._mouseDownHandlerHook(i, p);
|
|
9154
9168
|
var v = i.type;
|
|
9155
9169
|
return v === "touchstart" ? (e.root.addEventListener("touchmove", e.onMouseMove), e.root.addEventListener("touchend", e.onMouseUp), e.root.addEventListener("touchcancel", e.onMouseUp)) : (e.unbind("mousemove", e.onMoveOnly), document.addEventListener("mousemove", e.onMouseMove, !1), document.addEventListener("mouseup", e.onMouseUp, !1)), !0;
|
|
9156
9170
|
}
|
|
@@ -9159,18 +9173,18 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9159
9173
|
i.stopPropagation(), i.preventDefault(), f.checkIsFunction(c.enableSwipeHandler) && c.enableSwipeHandler(), f.checkIsFunction(l.onMoveEnd) && l.onMoveEnd(), f.event(i), f.removeClass(e.progressBtn, "active");
|
|
9160
9174
|
var d = e.computeTime(i, u.x);
|
|
9161
9175
|
d.prePlayTime = h.prePlayTime, u.moving ? (e.triggerCallbacks("dragend", d, i), e.emitUserAction("drag", "dragend", d)) : (e.triggerCallbacks("click", d, i), e.emitUserAction("click", "click", d)), e._mouseUpHandlerHook(i, d), u.moving = !1, u.isDown = !1, u.x = 0, u.y = 0, u.isLocked = !0, h.prePlayTime = 0, h.time = 0;
|
|
9162
|
-
var
|
|
9163
|
-
|
|
9176
|
+
var g = i.type;
|
|
9177
|
+
g === "touchend" || g === "touchcancel" ? (e.root.removeEventListener("touchmove", e.onMouseMove), e.root.removeEventListener("touchend", e.onMouseUp), e.root.removeEventListener("touchcancel", e.onMouseUp), e.blur()) : (document.removeEventListener("mousemove", e.onMouseMove, !1), document.removeEventListener("mouseup", e.onMouseUp, !1), u.isEnter ? c.isMobileSimulateMode !== "mobile" && e.bind("mousemove", e.onMoveOnly) : e.onMouseLeave(i)), f.setTimeout(m(e), function() {
|
|
9164
9178
|
e.resetSeekState();
|
|
9165
9179
|
}, 1), s.focus();
|
|
9166
9180
|
}), _(m(e), "onMouseMove", function(i) {
|
|
9167
9181
|
var n = m(e), s = n._state, l = n.pos, u = n.player, c = n.config;
|
|
9168
9182
|
f.checkTouchSupport() && i.preventDefault(), f.event(i);
|
|
9169
|
-
var h = f.getEventPos(i, u.zoom), d = u.rotateDeg === 90 ? h.clientY : h.clientX,
|
|
9170
|
-
if (!(l.moving &&
|
|
9183
|
+
var h = f.getEventPos(i, u.zoom), d = u.rotateDeg === 90 ? h.clientY : h.clientX, g = Math.abs(l.x - d);
|
|
9184
|
+
if (!(l.moving && g < c.miniMoveStep || !l.moving && g < c.miniStartStep)) {
|
|
9171
9185
|
l.x = d;
|
|
9172
|
-
var
|
|
9173
|
-
|
|
9186
|
+
var p = e.computeTime(i, d);
|
|
9187
|
+
p.prePlayTime = s.prePlayTime, e._mouseMoveHandlerHook(i, p);
|
|
9174
9188
|
}
|
|
9175
9189
|
}), _(m(e), "onMouseOut", function(i) {
|
|
9176
9190
|
e.triggerCallbacks("mouseout", null, i);
|
|
@@ -9198,7 +9212,7 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9198
9212
|
prePlayTime: -1
|
|
9199
9213
|
}, e._disableBlur = !1, e;
|
|
9200
9214
|
}
|
|
9201
|
-
return
|
|
9215
|
+
return L(r, [{
|
|
9202
9216
|
key: "offsetDuration",
|
|
9203
9217
|
get: function() {
|
|
9204
9218
|
return this.playerConfig.customDuration || this.player.offsetDuration || this.player.duration;
|
|
@@ -9272,9 +9286,9 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9272
9286
|
fragAutoFocus: s,
|
|
9273
9287
|
fragClass: l,
|
|
9274
9288
|
style: this.playerConfig.commonStyle || {}
|
|
9275
|
-
}),
|
|
9289
|
+
}), N.device === "mobile" && (this.config.isDragingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.on(Ue, function() {
|
|
9276
9290
|
e.onMouseLeave();
|
|
9277
|
-
}), this.on(
|
|
9291
|
+
}), this.on(de, function() {
|
|
9278
9292
|
e.onTimeupdate();
|
|
9279
9293
|
}), this.on(Pe, function() {
|
|
9280
9294
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
@@ -9383,20 +9397,20 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9383
9397
|
}, {
|
|
9384
9398
|
key: "computeTime",
|
|
9385
9399
|
value: function(e, i) {
|
|
9386
|
-
var n = this.player, s = this.root.getBoundingClientRect(), l = s.width, u = s.height, c = s.top, h = s.left, d,
|
|
9387
|
-
n.rotateDeg === 90 ? (d = u,
|
|
9388
|
-
var v =
|
|
9400
|
+
var n = this.player, s = this.root.getBoundingClientRect(), l = s.width, u = s.height, c = s.top, h = s.left, d, g, p = i;
|
|
9401
|
+
n.rotateDeg === 90 ? (d = u, g = c) : (d = l, g = h);
|
|
9402
|
+
var v = p - g;
|
|
9389
9403
|
v = v > d ? d : v < 0 ? 0 : v;
|
|
9390
9404
|
var y = v / d;
|
|
9391
9405
|
y = y < 0 ? 0 : y > 1 ? 1 : y;
|
|
9392
|
-
var
|
|
9406
|
+
var k = parseInt(y * this.offsetDuration * 1e3, 10) / 1e3, b = f.getCurrentTimeByOffset(k, n.timeSegments);
|
|
9393
9407
|
return {
|
|
9394
9408
|
percent: y,
|
|
9395
|
-
currentTime:
|
|
9409
|
+
currentTime: k,
|
|
9396
9410
|
seekTime: b,
|
|
9397
9411
|
offset: v,
|
|
9398
9412
|
width: d,
|
|
9399
|
-
left:
|
|
9413
|
+
left: g,
|
|
9400
9414
|
e
|
|
9401
9415
|
};
|
|
9402
9416
|
}
|
|
@@ -9526,11 +9540,11 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9526
9540
|
}
|
|
9527
9541
|
}]), r;
|
|
9528
9542
|
}(W), Ye = /* @__PURE__ */ function(a) {
|
|
9529
|
-
|
|
9530
|
-
var o =
|
|
9543
|
+
D(r, a);
|
|
9544
|
+
var o = O(r);
|
|
9531
9545
|
function r() {
|
|
9532
9546
|
var t;
|
|
9533
|
-
|
|
9547
|
+
P(this, r);
|
|
9534
9548
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
9535
9549
|
i[n] = arguments[n];
|
|
9536
9550
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onMouseenter", function(s) {
|
|
@@ -9543,7 +9557,7 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9543
9557
|
});
|
|
9544
9558
|
}), t;
|
|
9545
9559
|
}
|
|
9546
|
-
return
|
|
9560
|
+
return L(r, [{
|
|
9547
9561
|
key: "afterCreate",
|
|
9548
9562
|
value: function() {
|
|
9549
9563
|
this.bind("mouseenter", this._onMouseenter), this.bind("mouseleave", this._onMouseLeave), this.config.disable && this.disable();
|
|
@@ -9555,20 +9569,20 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9555
9569
|
}
|
|
9556
9570
|
}]), r;
|
|
9557
9571
|
}(W), fl = /* @__PURE__ */ function(a) {
|
|
9558
|
-
|
|
9559
|
-
var o =
|
|
9572
|
+
D(r, a);
|
|
9573
|
+
var o = O(r);
|
|
9560
9574
|
function r() {
|
|
9561
|
-
return
|
|
9575
|
+
return P(this, r), o.apply(this, arguments);
|
|
9562
9576
|
}
|
|
9563
|
-
return
|
|
9577
|
+
return L(r, [{
|
|
9564
9578
|
key: "afterCreate",
|
|
9565
9579
|
value: function() {
|
|
9566
9580
|
var e = this;
|
|
9567
|
-
|
|
9581
|
+
F(R(r.prototype), "afterCreate", this).call(this);
|
|
9568
9582
|
var i = this.player, n = this.config;
|
|
9569
9583
|
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([at, gt, Ke], function() {
|
|
9570
9584
|
e.animate(i.paused);
|
|
9571
|
-
}), this.on(
|
|
9585
|
+
}), this.on(ge, function() {
|
|
9572
9586
|
e.animate(i.paused);
|
|
9573
9587
|
}), this.animate(!0));
|
|
9574
9588
|
}
|
|
@@ -9614,7 +9628,7 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9614
9628
|
}, {
|
|
9615
9629
|
key: "destroy",
|
|
9616
9630
|
value: function() {
|
|
9617
|
-
|
|
9631
|
+
F(R(r.prototype), "destroy", this).call(this), this.unbind(["touchend", "click"], this.btnClick);
|
|
9618
9632
|
}
|
|
9619
9633
|
}, {
|
|
9620
9634
|
key: "render",
|
|
@@ -9650,12 +9664,12 @@ function hl() {
|
|
|
9650
9664
|
</svg>`, "image/svg+xml").firstChild;
|
|
9651
9665
|
}
|
|
9652
9666
|
var dl = /* @__PURE__ */ function(a) {
|
|
9653
|
-
|
|
9654
|
-
var o =
|
|
9667
|
+
D(r, a);
|
|
9668
|
+
var o = O(r);
|
|
9655
9669
|
function r() {
|
|
9656
|
-
return
|
|
9670
|
+
return P(this, r), o.apply(this, arguments);
|
|
9657
9671
|
}
|
|
9658
|
-
return
|
|
9672
|
+
return L(r, [{
|
|
9659
9673
|
key: "afterCreate",
|
|
9660
9674
|
value: function() {
|
|
9661
9675
|
var e = this;
|
|
@@ -9723,22 +9737,22 @@ function pl() {
|
|
|
9723
9737
|
`, "image/svg+xml").firstChild;
|
|
9724
9738
|
}
|
|
9725
9739
|
var vl = /* @__PURE__ */ function(a) {
|
|
9726
|
-
|
|
9727
|
-
var o =
|
|
9740
|
+
D(r, a);
|
|
9741
|
+
var o = O(r);
|
|
9728
9742
|
function r() {
|
|
9729
9743
|
var t;
|
|
9730
|
-
|
|
9744
|
+
P(this, r);
|
|
9731
9745
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
9732
9746
|
i[n] = arguments[n];
|
|
9733
9747
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onOrientationChange", function(s) {
|
|
9734
9748
|
t.player.fullscreen && t.config.rotateFullscreen && (window.orientation === 90 || window.orientation === -90 ? t.player.setRotateDeg(0) : t.player.setRotateDeg(90));
|
|
9735
9749
|
}), t;
|
|
9736
9750
|
}
|
|
9737
|
-
return
|
|
9751
|
+
return L(r, [{
|
|
9738
9752
|
key: "afterCreate",
|
|
9739
9753
|
value: function() {
|
|
9740
9754
|
var e = this;
|
|
9741
|
-
|
|
9755
|
+
F(R(r.prototype), "afterCreate", this).call(this);
|
|
9742
9756
|
var i = this.config, n = this.playerConfig;
|
|
9743
9757
|
if (!i.disable) {
|
|
9744
9758
|
i.target && (this.playerConfig.fullscreenTarget = this.config.target);
|
|
@@ -9765,7 +9779,7 @@ var vl = /* @__PURE__ */ function(a) {
|
|
|
9765
9779
|
}
|
|
9766
9780
|
}
|
|
9767
9781
|
}
|
|
9768
|
-
})),
|
|
9782
|
+
})), N.device === "mobile" && window.addEventListener("orientationchange", this._onOrientationChange);
|
|
9769
9783
|
}
|
|
9770
9784
|
}
|
|
9771
9785
|
}, {
|
|
@@ -9785,7 +9799,7 @@ var vl = /* @__PURE__ */ function(a) {
|
|
|
9785
9799
|
}, {
|
|
9786
9800
|
key: "destroy",
|
|
9787
9801
|
value: function() {
|
|
9788
|
-
|
|
9802
|
+
F(R(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", N.device === "mobile" ? "touchend" : "click", this.handleFullscreen), N.device === "mobile" && window.removeEventListener("orientationchange", this._onOrientationChange);
|
|
9789
9803
|
}
|
|
9790
9804
|
}, {
|
|
9791
9805
|
key: "initIcons",
|
|
@@ -9859,13 +9873,13 @@ var vl = /* @__PURE__ */ function(a) {
|
|
|
9859
9873
|
}
|
|
9860
9874
|
}]), r;
|
|
9861
9875
|
}(Ye), ml = /* @__PURE__ */ function(a) {
|
|
9862
|
-
|
|
9863
|
-
var o =
|
|
9876
|
+
D(r, a);
|
|
9877
|
+
var o = O(r);
|
|
9864
9878
|
function r(t) {
|
|
9865
9879
|
var e;
|
|
9866
|
-
return
|
|
9880
|
+
return P(this, r), e = o.call(this, t), e.isActiving = !1, e;
|
|
9867
9881
|
}
|
|
9868
|
-
return
|
|
9882
|
+
return L(r, [{
|
|
9869
9883
|
key: "duration",
|
|
9870
9884
|
get: function() {
|
|
9871
9885
|
var e = this.player, i = e.offsetDuration, n = e.duration;
|
|
@@ -9886,7 +9900,7 @@ var vl = /* @__PURE__ */ function(a) {
|
|
|
9886
9900
|
key: "afterCreate",
|
|
9887
9901
|
value: function() {
|
|
9888
9902
|
var e = this, i = this.player.controls.config.mode;
|
|
9889
|
-
this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Ue, Pe,
|
|
9903
|
+
this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Ue, Pe, de], function(n) {
|
|
9890
9904
|
n.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
9891
9905
|
}), this.on($e, function() {
|
|
9892
9906
|
e.onTimeUpdate(!0);
|
|
@@ -10009,11 +10023,11 @@ var vl = /* @__PURE__ */ function(a) {
|
|
|
10009
10023
|
}
|
|
10010
10024
|
}]), r;
|
|
10011
10025
|
}(W), yl = /* @__PURE__ */ function(a) {
|
|
10012
|
-
|
|
10013
|
-
var o =
|
|
10026
|
+
D(r, a);
|
|
10027
|
+
var o = O(r);
|
|
10014
10028
|
function r() {
|
|
10015
10029
|
var t;
|
|
10016
|
-
|
|
10030
|
+
P(this, r);
|
|
10017
10031
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
10018
10032
|
i[n] = arguments[n];
|
|
10019
10033
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onDurationChange", function() {
|
|
@@ -10038,8 +10052,8 @@ var vl = /* @__PURE__ */ function(a) {
|
|
|
10038
10052
|
h !== t.curIndex && t.changeIndex(h, u);
|
|
10039
10053
|
var d = f.getOffsetCurrentTime(l, u, h);
|
|
10040
10054
|
if (t.player.offsetCurrentTime = d, !!t.curPos) {
|
|
10041
|
-
var
|
|
10042
|
-
l <
|
|
10055
|
+
var g = t.curPos, p = g.start, v = g.end;
|
|
10056
|
+
l < p ? t.player.currentTime = p : l > v && h >= c - 1 && t.player.pause();
|
|
10043
10057
|
}
|
|
10044
10058
|
}
|
|
10045
10059
|
}), _(m(t), "_onSeeking", function() {
|
|
@@ -10061,10 +10075,10 @@ var vl = /* @__PURE__ */ function(a) {
|
|
|
10061
10075
|
t._checkIfEnabled(u) && l >= u[u.length - 1].end && (t.player.currentTime = u[0].start);
|
|
10062
10076
|
}), t;
|
|
10063
10077
|
}
|
|
10064
|
-
return
|
|
10078
|
+
return L(r, [{
|
|
10065
10079
|
key: "afterCreate",
|
|
10066
10080
|
value: function() {
|
|
10067
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ue, this._onDurationChange), this.on(Le, this._onLoadedData), this.on(
|
|
10081
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ue, this._onDurationChange), this.on(Le, this._onLoadedData), this.on(de, this._onTimeupdate), this.on(Rt, this._onSeeking), this.on(ge, this._onPlay);
|
|
10068
10082
|
}
|
|
10069
10083
|
}, {
|
|
10070
10084
|
key: "setConfig",
|
|
@@ -10116,8 +10130,8 @@ var vl = /* @__PURE__ */ function(a) {
|
|
|
10116
10130
|
return l;
|
|
10117
10131
|
var d = e - i;
|
|
10118
10132
|
if (d < 0 && e < c) {
|
|
10119
|
-
var
|
|
10120
|
-
return l = n - 1 >= 0 ? s[n - 1].end + d +
|
|
10133
|
+
var g = i > c ? i - c : 0;
|
|
10134
|
+
return l = n - 1 >= 0 ? s[n - 1].end + d + g : 0, l;
|
|
10121
10135
|
}
|
|
10122
10136
|
return -1;
|
|
10123
10137
|
}
|
|
@@ -10168,28 +10182,28 @@ function Cl() {
|
|
|
10168
10182
|
`, "image/svg+xml").firstChild;
|
|
10169
10183
|
}
|
|
10170
10184
|
var wl = /* @__PURE__ */ function(a) {
|
|
10171
|
-
|
|
10172
|
-
var o =
|
|
10185
|
+
D(r, a);
|
|
10186
|
+
var o = O(r);
|
|
10173
10187
|
function r() {
|
|
10174
10188
|
var t;
|
|
10175
|
-
|
|
10189
|
+
P(this, r);
|
|
10176
10190
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
10177
10191
|
i[n] = arguments[n];
|
|
10178
10192
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onBarMousedown", function(s) {
|
|
10179
10193
|
var l = m(t), u = l.player, c = t.find(".xgplayer-bar");
|
|
10180
10194
|
f.event(s);
|
|
10181
|
-
var h = c.getBoundingClientRect(), d = f.getEventPos(s, u.zoom),
|
|
10182
|
-
if (d.h =
|
|
10183
|
-
return t.updateVolumePos(
|
|
10195
|
+
var h = c.getBoundingClientRect(), d = f.getEventPos(s, u.zoom), g = h.height - (d.clientY - h.top);
|
|
10196
|
+
if (d.h = g, d.barH = h.height, t.pos = d, !(g < -2))
|
|
10197
|
+
return t.updateVolumePos(g, s), document.addEventListener("mouseup", t.onBarMouseUp), t._d.isStart = !0, !1;
|
|
10184
10198
|
}), _(m(t), "onBarMouseMove", function(s) {
|
|
10185
10199
|
var l = m(t), u = l._d;
|
|
10186
10200
|
if (u.isStart) {
|
|
10187
10201
|
var c = m(t), h = c.pos, d = c.player;
|
|
10188
10202
|
s.preventDefault(), s.stopPropagation(), f.event(s);
|
|
10189
|
-
var
|
|
10203
|
+
var g = f.getEventPos(s, d.zoom);
|
|
10190
10204
|
u.isMoving = !0;
|
|
10191
|
-
var
|
|
10192
|
-
|
|
10205
|
+
var p = h.h - g.clientY + h.clientY;
|
|
10206
|
+
p > h.barH || t.updateVolumePos(p, s);
|
|
10193
10207
|
}
|
|
10194
10208
|
}), _(m(t), "onBarMouseUp", function(s) {
|
|
10195
10209
|
f.event(s), document.removeEventListener("mouseup", t.onBarMouseUp);
|
|
@@ -10210,7 +10224,7 @@ var wl = /* @__PURE__ */ function(a) {
|
|
|
10210
10224
|
}
|
|
10211
10225
|
}), t;
|
|
10212
10226
|
}
|
|
10213
|
-
return
|
|
10227
|
+
return L(r, [{
|
|
10214
10228
|
key: "registerIcons",
|
|
10215
10229
|
value: function() {
|
|
10216
10230
|
return {
|
|
@@ -10245,7 +10259,7 @@ var wl = /* @__PURE__ */ function(a) {
|
|
|
10245
10259
|
pre: function(u) {
|
|
10246
10260
|
u.preventDefault(), u.stopPropagation();
|
|
10247
10261
|
}
|
|
10248
|
-
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave),
|
|
10262
|
+
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), N.device !== "mobile" && this.playerConfig.isMobileSimulateMode !== "mobile" && (this.bind("mouseenter", this._onMouseenterHandler), this.bind(["blur", "mouseleave"], this._onMouseleaveHandler), this.bind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.bind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.bind(".xgplayer-slider", "mouseup", this.onBarMouseUp)), this.bind(".xgplayer-icon", ["touchend", "click"], this.changeMutedHandler), this.on(On, this.onVolumeChange), this.once(Le, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
|
|
10249
10263
|
}
|
|
10250
10264
|
}
|
|
10251
10265
|
}, {
|
|
@@ -10323,7 +10337,7 @@ var wl = /* @__PURE__ */ function(a) {
|
|
|
10323
10337
|
}, {
|
|
10324
10338
|
key: "destroy",
|
|
10325
10339
|
value: function() {
|
|
10326
|
-
this._timerId && (f.clearTimeout(this, this._timerId), this._timerId = null), this.unbind("mouseenter", this.onMouseenter), this.unbind(["blur", "mouseleave"], this.onMouseleave), this.unbind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.unbind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.unbind(".xgplayer-slider", "mouseup", this.onBarMouseUp), document.removeEventListener("mouseup", this.onBarMouseUp), this.unbind(".xgplayer-icon",
|
|
10340
|
+
this._timerId && (f.clearTimeout(this, this._timerId), this._timerId = null), this.unbind("mouseenter", this.onMouseenter), this.unbind(["blur", "mouseleave"], this.onMouseleave), this.unbind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.unbind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.unbind(".xgplayer-slider", "mouseup", this.onBarMouseUp), document.removeEventListener("mouseup", this.onBarMouseUp), this.unbind(".xgplayer-icon", N.device === "mobile" ? "touchend" : "click", this.changeMutedHandler);
|
|
10327
10341
|
}
|
|
10328
10342
|
}, {
|
|
10329
10343
|
key: "render",
|
|
@@ -10377,18 +10391,18 @@ function bl() {
|
|
|
10377
10391
|
`, "image/svg+xml").firstChild;
|
|
10378
10392
|
}
|
|
10379
10393
|
var Tl = /* @__PURE__ */ function(a) {
|
|
10380
|
-
|
|
10381
|
-
var o =
|
|
10394
|
+
D(r, a);
|
|
10395
|
+
var o = O(r);
|
|
10382
10396
|
function r(t) {
|
|
10383
10397
|
var e;
|
|
10384
|
-
return
|
|
10398
|
+
return P(this, r), e = o.call(this, t), e.rotateDeg = e.config.rotateDeg || 0, e;
|
|
10385
10399
|
}
|
|
10386
|
-
return
|
|
10400
|
+
return L(r, [{
|
|
10387
10401
|
key: "afterCreate",
|
|
10388
10402
|
value: function() {
|
|
10389
10403
|
var e = this;
|
|
10390
10404
|
if (!this.config.disable) {
|
|
10391
|
-
|
|
10405
|
+
F(R(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(Be, function() {
|
|
10392
10406
|
e.rotateDeg && e.config.innerRotate && f.setTimeout(e, function() {
|
|
10393
10407
|
e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
|
|
10394
10408
|
}, 100);
|
|
@@ -10400,7 +10414,7 @@ var Tl = /* @__PURE__ */ function(a) {
|
|
|
10400
10414
|
}, {
|
|
10401
10415
|
key: "destroy",
|
|
10402
10416
|
value: function() {
|
|
10403
|
-
|
|
10417
|
+
F(R(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick);
|
|
10404
10418
|
}
|
|
10405
10419
|
}, {
|
|
10406
10420
|
key: "onBtnClick",
|
|
@@ -10414,17 +10428,17 @@ var Tl = /* @__PURE__ */ function(a) {
|
|
|
10414
10428
|
this.player.videoRotateDeg = e;
|
|
10415
10429
|
return;
|
|
10416
10430
|
}
|
|
10417
|
-
var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, h = n.media, d = u.offsetWidth,
|
|
10418
|
-
(e === 0.75 || e === 0.25) && (
|
|
10419
|
-
var b = "translate(".concat(y, "px,").concat(
|
|
10431
|
+
var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, h = n.media, d = u.offsetWidth, g = c && i ? c.offsetHeight : u.offsetHeight, p = s, v = l, y = 0, k = 0;
|
|
10432
|
+
(e === 0.75 || e === 0.25) && (p = "".concat(g, "px"), v = "".concat(d, "px"), y = -(g - d) / 2, k = -(d - g) / 2);
|
|
10433
|
+
var b = "translate(".concat(y, "px,").concat(k, "px) rotate(").concat(e, "turn)"), w = {
|
|
10420
10434
|
transformOrigin: "center center",
|
|
10421
10435
|
transform: b,
|
|
10422
10436
|
webKitTransform: b,
|
|
10423
10437
|
height: v,
|
|
10424
|
-
width:
|
|
10425
|
-
},
|
|
10426
|
-
Object.keys(w).map(function(
|
|
10427
|
-
|
|
10438
|
+
width: p
|
|
10439
|
+
}, H = i ? h : u, x = i ? n.getPlugin("poster") : null;
|
|
10440
|
+
Object.keys(w).map(function(B) {
|
|
10441
|
+
H.style[B] = w[B], x && x.root && (x.root.style[B] = w[B]);
|
|
10428
10442
|
});
|
|
10429
10443
|
}
|
|
10430
10444
|
}, {
|
|
@@ -10494,11 +10508,11 @@ var Je = {
|
|
|
10494
10508
|
INLINE: "inline",
|
|
10495
10509
|
FULLSCREEN: "fullscreen"
|
|
10496
10510
|
}, xl = /* @__PURE__ */ function(a) {
|
|
10497
|
-
|
|
10498
|
-
var o =
|
|
10511
|
+
D(r, a);
|
|
10512
|
+
var o = O(r);
|
|
10499
10513
|
function r() {
|
|
10500
10514
|
var t;
|
|
10501
|
-
|
|
10515
|
+
P(this, r);
|
|
10502
10516
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
10503
10517
|
i[n] = arguments[n];
|
|
10504
10518
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "switchPIP", function(s) {
|
|
@@ -10515,7 +10529,7 @@ var Je = {
|
|
|
10515
10529
|
}), t.setAttr("data-state", "pip"));
|
|
10516
10530
|
}), t;
|
|
10517
10531
|
}
|
|
10518
|
-
return
|
|
10532
|
+
return L(r, [{
|
|
10519
10533
|
key: "beforeCreate",
|
|
10520
10534
|
value: function(e) {
|
|
10521
10535
|
typeof e.player.config.pip == "boolean" && (e.config.showIcon = e.player.config.pip);
|
|
@@ -10524,7 +10538,7 @@ var Je = {
|
|
|
10524
10538
|
key: "afterCreate",
|
|
10525
10539
|
value: function() {
|
|
10526
10540
|
var e = this;
|
|
10527
|
-
this.isPIPAvailable() && (
|
|
10541
|
+
this.isPIPAvailable() && (F(R(r.prototype), "afterCreate", this).call(this), this.pMode = Je.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Ft, function() {
|
|
10528
10542
|
e.config.showIcon && (f.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
10529
10543
|
}));
|
|
10530
10544
|
}
|
|
@@ -10597,20 +10611,20 @@ var Je = {
|
|
|
10597
10611
|
u.width = c.width, u.height = c.height;
|
|
10598
10612
|
}
|
|
10599
10613
|
documentPictureInPicture.requestWindow(u).then(function(h) {
|
|
10600
|
-
var d = s.docPiPNode,
|
|
10614
|
+
var d = s.docPiPNode, g = s.docPiPStyle;
|
|
10601
10615
|
e.enterPIPCallback();
|
|
10602
|
-
var
|
|
10616
|
+
var p = d || i.root, v = p.parentElement, y = p.previousSibling, k = p.nextSibling;
|
|
10603
10617
|
e.copyStyleIntoPiPWindow(h);
|
|
10604
10618
|
var b = document.createElement("style");
|
|
10605
|
-
if (b.append("body{padding:0; margin:0;}"),
|
|
10619
|
+
if (b.append("body{padding:0; margin:0;}"), g) {
|
|
10606
10620
|
var w = "";
|
|
10607
|
-
typeof
|
|
10621
|
+
typeof g == "string" ? w = g : typeof g == "function" && (w = g.call(s)), w && b.append(w);
|
|
10608
10622
|
} else
|
|
10609
|
-
|
|
10623
|
+
p === i.root && b.append(`
|
|
10610
10624
|
.xgplayer{width: 100%!important; height: 100%!important;}
|
|
10611
10625
|
`);
|
|
10612
|
-
h.document.head.append(b), h.document.body.append(
|
|
10613
|
-
v && (
|
|
10626
|
+
h.document.head.append(b), h.document.body.append(p), h.addEventListener("pagehide", function(H) {
|
|
10627
|
+
v && (k ? v.insertBefore(p, k) : y ? v.insertBefore(p, y.nextSibling) : v.appendChild(p)), e.leavePIPCallback();
|
|
10614
10628
|
}, {
|
|
10615
10629
|
once: !0
|
|
10616
10630
|
});
|
|
@@ -10656,7 +10670,7 @@ var Je = {
|
|
|
10656
10670
|
}, {
|
|
10657
10671
|
key: "destroy",
|
|
10658
10672
|
value: function() {
|
|
10659
|
-
|
|
10673
|
+
F(R(r.prototype), "destroy", this).call(this);
|
|
10660
10674
|
var e = this.player;
|
|
10661
10675
|
e.media.removeEventListener("enterpictureinpicture", this.enterPIPCallback), e.media.removeEventListener("leavepictureinpicture", this.leavePIPCallback), r.checkWebkitSetPresentationMode(e.media) && e.media.removeEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged), this.exitPIP(), this.unbind("click", this.btnClick);
|
|
10662
10676
|
}
|
|
@@ -10703,16 +10717,16 @@ function Il() {
|
|
|
10703
10717
|
`, "image/svg+xml").firstChild;
|
|
10704
10718
|
}
|
|
10705
10719
|
var Pl = /* @__PURE__ */ function(a) {
|
|
10706
|
-
|
|
10707
|
-
var o =
|
|
10720
|
+
D(r, a);
|
|
10721
|
+
var o = O(r);
|
|
10708
10722
|
function r(t) {
|
|
10709
10723
|
var e;
|
|
10710
|
-
return
|
|
10724
|
+
return P(this, r), e = o.call(this, t), _(m(e), "playNext", function(i) {
|
|
10711
10725
|
var n = m(e), s = n.player;
|
|
10712
10726
|
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(xt, e.idx + 1)) : (e.nextHandler(), s.emit(xt));
|
|
10713
10727
|
}), e.idx = -1, e;
|
|
10714
10728
|
}
|
|
10715
|
-
return
|
|
10729
|
+
return L(r, [{
|
|
10716
10730
|
key: "afterCreate",
|
|
10717
10731
|
value: function() {
|
|
10718
10732
|
!this.config.urlList || this.config.urlList.length === 0 || (this.appendChild(".xgplayer-icon", this.icons.playNext), this.initEvents());
|
|
@@ -10728,7 +10742,7 @@ var Pl = /* @__PURE__ */ function(a) {
|
|
|
10728
10742
|
key: "initEvents",
|
|
10729
10743
|
value: function() {
|
|
10730
10744
|
this.nextHandler = this.hook("nextClick", this.changeSrc);
|
|
10731
|
-
var e =
|
|
10745
|
+
var e = N.device === "mobile" ? "touchend" : "click";
|
|
10732
10746
|
this.bind(e, this.playNext), this.show();
|
|
10733
10747
|
}
|
|
10734
10748
|
}, {
|
|
@@ -10776,67 +10790,67 @@ var Pl = /* @__PURE__ */ function(a) {
|
|
|
10776
10790
|
a.exports = t();
|
|
10777
10791
|
})(ko, function() {
|
|
10778
10792
|
return function r(t, e, i) {
|
|
10779
|
-
var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(
|
|
10780
|
-
return String(
|
|
10781
|
-
},
|
|
10782
|
-
if (
|
|
10783
|
-
var
|
|
10784
|
-
return
|
|
10785
|
-
r(
|
|
10793
|
+
var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(A) {
|
|
10794
|
+
return String(A);
|
|
10795
|
+
}, g = n.Blob || n.MozBlob || n.WebKitBlob || d, p = e || "download", v, y;
|
|
10796
|
+
if (g = g.call ? g.bind(n) : Blob, String(this) === "true" && (u = [u, l], l = u[0], u = u[1]), c && c.length < 2048 && (p = c.split("/").pop().split("?")[0], h.href = c, h.href.indexOf(c) !== -1)) {
|
|
10797
|
+
var k = new XMLHttpRequest();
|
|
10798
|
+
return k.open("GET", c, !0), k.responseType = "blob", k.onload = function(A) {
|
|
10799
|
+
r(A.target.response, p, s);
|
|
10786
10800
|
}, setTimeout(function() {
|
|
10787
|
-
|
|
10788
|
-
}, 0),
|
|
10801
|
+
k.send();
|
|
10802
|
+
}, 0), k;
|
|
10789
10803
|
}
|
|
10790
10804
|
if (/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u))
|
|
10791
|
-
if (u.length > 1024 * 1024 * 1.999 &&
|
|
10792
|
-
u =
|
|
10805
|
+
if (u.length > 1024 * 1024 * 1.999 && g !== d)
|
|
10806
|
+
u = x(u), l = u.type || s;
|
|
10793
10807
|
else
|
|
10794
10808
|
return navigator.msSaveBlob ? (
|
|
10795
10809
|
// IE10 can't do a[download], only Blobs:
|
|
10796
|
-
navigator.msSaveBlob(
|
|
10797
|
-
) :
|
|
10810
|
+
navigator.msSaveBlob(x(u), p)
|
|
10811
|
+
) : B(u);
|
|
10798
10812
|
else if (/([\x80-\xff])/.test(u)) {
|
|
10799
|
-
var b = 0, w = new Uint8Array(u.length),
|
|
10800
|
-
for (b; b <
|
|
10813
|
+
var b = 0, w = new Uint8Array(u.length), H = w.length;
|
|
10814
|
+
for (b; b < H; ++b)
|
|
10801
10815
|
w[b] = u.charCodeAt(b);
|
|
10802
|
-
u = new
|
|
10816
|
+
u = new g([w], { type: l });
|
|
10803
10817
|
}
|
|
10804
|
-
v = u instanceof
|
|
10805
|
-
function
|
|
10806
|
-
var
|
|
10818
|
+
v = u instanceof g ? u : new g([u], { type: l });
|
|
10819
|
+
function x(A) {
|
|
10820
|
+
var te = A.split(/[:;,]/), Q = te[1], z = te[2] == "base64" ? atob : decodeURIComponent, re = z(te.pop()), ue = re.length, ce = 0, be = new Uint8Array(ue);
|
|
10807
10821
|
for (ce; ce < ue; ++ce)
|
|
10808
10822
|
be[ce] = re.charCodeAt(ce);
|
|
10809
|
-
return new
|
|
10823
|
+
return new g([be], { type: Q });
|
|
10810
10824
|
}
|
|
10811
|
-
function
|
|
10825
|
+
function B(A, te) {
|
|
10812
10826
|
if ("download" in h)
|
|
10813
|
-
return h.href =
|
|
10814
|
-
h.click(), document.body.removeChild(h),
|
|
10827
|
+
return h.href = A, h.setAttribute("download", p), h.className = "download-js-link", h.innerHTML = "downloading...", h.style.display = "none", document.body.appendChild(h), setTimeout(function() {
|
|
10828
|
+
h.click(), document.body.removeChild(h), te === !0 && setTimeout(function() {
|
|
10815
10829
|
n.URL.revokeObjectURL(h.href);
|
|
10816
10830
|
}, 250);
|
|
10817
10831
|
}, 66), !0;
|
|
10818
10832
|
if (/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))
|
|
10819
|
-
return /^data:/.test(
|
|
10833
|
+
return /^data:/.test(A) && (A = "data:" + A.replace(/^data:([\w\/\-\+]+)/, s)), window.open(A) || confirm(`Displaying New Document
|
|
10820
10834
|
|
|
10821
|
-
Use Save As... to download, then click back to return to this page.`) && (location.href =
|
|
10835
|
+
Use Save As... to download, then click back to return to this page.`) && (location.href = A), !0;
|
|
10822
10836
|
var Q = document.createElement("iframe");
|
|
10823
|
-
document.body.appendChild(Q), !
|
|
10837
|
+
document.body.appendChild(Q), !te && /^data:/.test(A) && (A = "data:" + A.replace(/^data:([\w\/\-\+]+)/, s)), Q.src = A, setTimeout(function() {
|
|
10824
10838
|
document.body.removeChild(Q);
|
|
10825
10839
|
}, 333);
|
|
10826
10840
|
}
|
|
10827
10841
|
if (navigator.msSaveBlob)
|
|
10828
|
-
return navigator.msSaveBlob(v,
|
|
10842
|
+
return navigator.msSaveBlob(v, p);
|
|
10829
10843
|
if (n.URL)
|
|
10830
|
-
|
|
10844
|
+
B(n.URL.createObjectURL(v), !0);
|
|
10831
10845
|
else {
|
|
10832
10846
|
if (typeof v == "string" || v.constructor === d)
|
|
10833
10847
|
try {
|
|
10834
|
-
return
|
|
10848
|
+
return B("data:" + l + ";base64," + n.btoa(v));
|
|
10835
10849
|
} catch {
|
|
10836
|
-
return
|
|
10850
|
+
return B("data:" + l + "," + encodeURIComponent(v));
|
|
10837
10851
|
}
|
|
10838
|
-
y = new FileReader(), y.onload = function(
|
|
10839
|
-
|
|
10852
|
+
y = new FileReader(), y.onload = function(A) {
|
|
10853
|
+
B(this.result);
|
|
10840
10854
|
}, y.readAsDataURL(v);
|
|
10841
10855
|
}
|
|
10842
10856
|
return !0;
|
|
@@ -10863,11 +10877,11 @@ function Dl() {
|
|
|
10863
10877
|
`, "image/svg+xml").firstChild;
|
|
10864
10878
|
}
|
|
10865
10879
|
var Ol = /* @__PURE__ */ function(a) {
|
|
10866
|
-
|
|
10867
|
-
var o =
|
|
10880
|
+
D(r, a);
|
|
10881
|
+
var o = O(r);
|
|
10868
10882
|
function r(t) {
|
|
10869
10883
|
var e;
|
|
10870
|
-
return
|
|
10884
|
+
return P(this, r), e = o.call(this, t), _(m(e), "download", function(i) {
|
|
10871
10885
|
if (!e.isLock) {
|
|
10872
10886
|
e.emitUserAction(i, "download");
|
|
10873
10887
|
var n = e.playerConfig.url, s = "";
|
|
@@ -10879,10 +10893,10 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
10879
10893
|
}
|
|
10880
10894
|
}), e.timer = null, e.isLock = !1, e;
|
|
10881
10895
|
}
|
|
10882
|
-
return
|
|
10896
|
+
return L(r, [{
|
|
10883
10897
|
key: "afterCreate",
|
|
10884
10898
|
value: function() {
|
|
10885
|
-
|
|
10899
|
+
F(R(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.appendChild(".xgplayer-icon", this.icons.download), this._handler = this.hook("click", this.download, {
|
|
10886
10900
|
pre: function(i) {
|
|
10887
10901
|
i.preventDefault(), i.stopPropagation();
|
|
10888
10902
|
}
|
|
@@ -10907,7 +10921,7 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
10907
10921
|
}, {
|
|
10908
10922
|
key: "destroy",
|
|
10909
10923
|
value: function() {
|
|
10910
|
-
|
|
10924
|
+
F(R(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.download), window.clearTimeout(this.timer), this.timer = null;
|
|
10911
10925
|
}
|
|
10912
10926
|
}, {
|
|
10913
10927
|
key: "render",
|
|
@@ -10935,12 +10949,12 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
10935
10949
|
}
|
|
10936
10950
|
}]), r;
|
|
10937
10951
|
}(Ye), Rl = /* @__PURE__ */ function(a) {
|
|
10938
|
-
|
|
10939
|
-
var o =
|
|
10952
|
+
D(r, a);
|
|
10953
|
+
var o = O(r);
|
|
10940
10954
|
function r() {
|
|
10941
|
-
return
|
|
10955
|
+
return P(this, r), o.apply(this, arguments);
|
|
10942
10956
|
}
|
|
10943
|
-
return
|
|
10957
|
+
return L(r, [{
|
|
10944
10958
|
key: "beforeCreate",
|
|
10945
10959
|
value: function(e) {
|
|
10946
10960
|
typeof e.player.config.screenShot == "boolean" && (e.config.disable = !e.player.config.screenShot);
|
|
@@ -10948,7 +10962,7 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
10948
10962
|
}, {
|
|
10949
10963
|
key: "afterCreate",
|
|
10950
10964
|
value: function() {
|
|
10951
|
-
|
|
10965
|
+
F(R(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.screenshotIcon);
|
|
10952
10966
|
var e = this.config;
|
|
10953
10967
|
this.initSize = function(i) {
|
|
10954
10968
|
e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
|
|
@@ -10999,17 +11013,17 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
10999
11013
|
quality: 0.92,
|
|
11000
11014
|
type: "image/png"
|
|
11001
11015
|
}, l = this.config, u = this.player, c = s.quality || l.quality, h = s.type || l.type;
|
|
11002
|
-
return new Promise(function(d,
|
|
11003
|
-
var
|
|
11016
|
+
return new Promise(function(d, g) {
|
|
11017
|
+
var p = null, v;
|
|
11004
11018
|
if (u.media.canvas)
|
|
11005
|
-
|
|
11019
|
+
p = u.media.canvas;
|
|
11006
11020
|
else {
|
|
11007
|
-
n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i),
|
|
11008
|
-
var y = u.media.videoWidth / u.media.videoHeight,
|
|
11009
|
-
y >
|
|
11021
|
+
n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), p = n.canvas, v = n.canvasCtx;
|
|
11022
|
+
var y = u.media.videoWidth / u.media.videoHeight, k = p.width / p.height, b = 0, w = 0, H = u.media.videoWidth, x = u.media.videoHeight, B, A, te, Q;
|
|
11023
|
+
y > k ? (te = p.width, Q = p.width / y, B = 0, A = Math.round((p.height - Q) / 2)) : y === k ? (te = p.width, Q = p.height, B = 0, A = 0) : y < k && (te = p.height * y, Q = p.height, B = Math.round((p.width - te) / 2), A = 0), v.drawImage(u.media, b, w, H, x, B, A, te, Q);
|
|
11010
11024
|
}
|
|
11011
|
-
var
|
|
11012
|
-
|
|
11025
|
+
var z = p.toDataURL(h, c).replace(h, "image/octet-stream");
|
|
11026
|
+
z = z.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(z);
|
|
11013
11027
|
});
|
|
11014
11028
|
}
|
|
11015
11029
|
}, {
|
|
@@ -11022,7 +11036,7 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
11022
11036
|
}, {
|
|
11023
11037
|
key: "destroy",
|
|
11024
11038
|
value: function() {
|
|
11025
|
-
|
|
11039
|
+
F(R(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(Be, this.initSize);
|
|
11026
11040
|
}
|
|
11027
11041
|
}, {
|
|
11028
11042
|
key: "render",
|
|
@@ -11062,7 +11076,7 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
11062
11076
|
}]), r;
|
|
11063
11077
|
}(Ye), Fl = /* @__PURE__ */ function() {
|
|
11064
11078
|
function a(o) {
|
|
11065
|
-
|
|
11079
|
+
P(this, a), this.config = o.config, this.parent = o.root, this.root = f.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), o.root.appendChild(this.root);
|
|
11066
11080
|
var r = this.config.maxHeight;
|
|
11067
11081
|
r && this.setStyle({
|
|
11068
11082
|
maxHeight: r
|
|
@@ -11070,7 +11084,7 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
11070
11084
|
var t = this.config.domEventType === "touch" ? "touchend" : "click";
|
|
11071
11085
|
this._delegates = W.delegate.call(this, this.root, "li", t, this.onItemClick);
|
|
11072
11086
|
}
|
|
11073
|
-
return
|
|
11087
|
+
return L(a, [{
|
|
11074
11088
|
key: "renderItemList",
|
|
11075
11089
|
value: function(r) {
|
|
11076
11090
|
var t = this, e = this.config, i = this.root;
|
|
@@ -11143,12 +11157,12 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
11143
11157
|
function Ml(a, o) {
|
|
11144
11158
|
return a === Ce.SIDE ? o === $.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
11145
11159
|
}
|
|
11146
|
-
var je =
|
|
11147
|
-
|
|
11148
|
-
var o =
|
|
11160
|
+
var je = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
11161
|
+
D(r, a);
|
|
11162
|
+
var o = O(r);
|
|
11149
11163
|
function r(t) {
|
|
11150
11164
|
var e;
|
|
11151
|
-
return
|
|
11165
|
+
return P(this, r), e = o.call(this, t), _(m(e), "onEnter", function(i) {
|
|
11152
11166
|
i.stopPropagation(), e.emit("icon_mouseenter", {
|
|
11153
11167
|
pluginName: e.pluginName
|
|
11154
11168
|
}), e.switchActiveState(i);
|
|
@@ -11166,7 +11180,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11166
11180
|
e.enterType = 0, e.isActive && e.toggle(!1);
|
|
11167
11181
|
}), e.isIcons = !1, e.isActive = !1, e.curValue = null, e.curIndex = 0, e;
|
|
11168
11182
|
}
|
|
11169
|
-
return
|
|
11183
|
+
return L(r, [{
|
|
11170
11184
|
key: "updateLang",
|
|
11171
11185
|
value: function(e) {
|
|
11172
11186
|
this.renderItemList(this.config.list, this.curIndex);
|
|
@@ -11175,7 +11189,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11175
11189
|
key: "afterCreate",
|
|
11176
11190
|
value: function() {
|
|
11177
11191
|
var e = this, i = this.config;
|
|
11178
|
-
this.initIcons(), je = je || this.domEventType === "touch", je &&
|
|
11192
|
+
this.initIcons(), je = je || this.domEventType === "touch", je && N.device === "mobile" && i.listType === Ce.DEFAULT && (i.listType = Ce.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([Be, Te], function() {
|
|
11179
11193
|
e._resizeList();
|
|
11180
11194
|
}), this.once(Ie, function() {
|
|
11181
11195
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
@@ -11263,8 +11277,8 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11263
11277
|
root: s.listType === Ce.SIDE ? u.innerContainer || u.root : this.root
|
|
11264
11278
|
};
|
|
11265
11279
|
if (this.config.isShowIcon) {
|
|
11266
|
-
var h = this.player.root.getBoundingClientRect(), d = h.height,
|
|
11267
|
-
|
|
11280
|
+
var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === Ce.MIDDLE ? d - 50 : d;
|
|
11281
|
+
g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new Fl(c), this.changeCurrentText(), this.show();
|
|
11268
11282
|
}
|
|
11269
11283
|
this._resizeList();
|
|
11270
11284
|
}
|
|
@@ -11316,13 +11330,13 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11316
11330
|
}
|
|
11317
11331
|
}]), r;
|
|
11318
11332
|
}(W), Nl = /* @__PURE__ */ function(a) {
|
|
11319
|
-
|
|
11320
|
-
var o =
|
|
11333
|
+
D(r, a);
|
|
11334
|
+
var o = O(r);
|
|
11321
11335
|
function r(t) {
|
|
11322
11336
|
var e;
|
|
11323
|
-
return
|
|
11337
|
+
return P(this, r), e = o.call(this, t), e.curTime = 0, e.isPaused = !0, e;
|
|
11324
11338
|
}
|
|
11325
|
-
return
|
|
11339
|
+
return L(r, [{
|
|
11326
11340
|
key: "beforeCreate",
|
|
11327
11341
|
value: function(e) {
|
|
11328
11342
|
var i = e.config.list;
|
|
@@ -11334,7 +11348,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11334
11348
|
key: "afterCreate",
|
|
11335
11349
|
value: function() {
|
|
11336
11350
|
var e = this;
|
|
11337
|
-
|
|
11351
|
+
F(R(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
|
|
11338
11352
|
e.changeDefinitionList(i);
|
|
11339
11353
|
}), this.on(wi, function(i) {
|
|
11340
11354
|
e.renderItemList(e.config.list, i.to);
|
|
@@ -11370,7 +11384,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11370
11384
|
});
|
|
11371
11385
|
return (c.selected || c.definition && c.definition == s) && (d.selected = !0, l = h), d;
|
|
11372
11386
|
});
|
|
11373
|
-
|
|
11387
|
+
F(R(r.prototype), "renderItemList", this).call(this, u, l);
|
|
11374
11388
|
}
|
|
11375
11389
|
}, {
|
|
11376
11390
|
key: "changeDefinitionList",
|
|
@@ -11388,7 +11402,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11388
11402
|
key: "onItemClick",
|
|
11389
11403
|
value: function(e, i) {
|
|
11390
11404
|
var n = this.player.definitionList;
|
|
11391
|
-
|
|
11405
|
+
F(R(r.prototype), "onItemClick", this).apply(this, arguments), this.emitUserAction(e, "change_definition", {
|
|
11392
11406
|
from: i.from,
|
|
11393
11407
|
to: i.to
|
|
11394
11408
|
});
|
|
@@ -11417,13 +11431,13 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11417
11431
|
}
|
|
11418
11432
|
}]), r;
|
|
11419
11433
|
}(Dt), Bl = /* @__PURE__ */ function(a) {
|
|
11420
|
-
|
|
11421
|
-
var o =
|
|
11434
|
+
D(r, a);
|
|
11435
|
+
var o = O(r);
|
|
11422
11436
|
function r(t) {
|
|
11423
11437
|
var e;
|
|
11424
|
-
return
|
|
11438
|
+
return P(this, r), e = o.call(this, t), e.curRate = 1, e;
|
|
11425
11439
|
}
|
|
11426
|
-
return
|
|
11440
|
+
return L(r, [{
|
|
11427
11441
|
key: "beforeCreate",
|
|
11428
11442
|
value: function(e) {
|
|
11429
11443
|
var i = e.player.config.playbackRate, n = i ? Array.isArray(i) ? i : e.config.list : [];
|
|
@@ -11438,19 +11452,19 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11438
11452
|
key: "afterCreate",
|
|
11439
11453
|
value: function() {
|
|
11440
11454
|
var e = this;
|
|
11441
|
-
|
|
11455
|
+
F(R(r.prototype), "afterCreate", this).call(this), this.on(Rn, function() {
|
|
11442
11456
|
e.curValue !== e.player.playbackRate && e.renderItemList();
|
|
11443
11457
|
}), this.renderItemList();
|
|
11444
11458
|
}
|
|
11445
11459
|
}, {
|
|
11446
11460
|
key: "show",
|
|
11447
11461
|
value: function(e) {
|
|
11448
|
-
!this.config.list || this.config.list.length === 0 ||
|
|
11462
|
+
!this.config.list || this.config.list.length === 0 || F(R(r.prototype), "show", this).call(this);
|
|
11449
11463
|
}
|
|
11450
11464
|
}, {
|
|
11451
11465
|
key: "onItemClick",
|
|
11452
11466
|
value: function(e, i) {
|
|
11453
|
-
|
|
11467
|
+
F(R(r.prototype), "onItemClick", this).call(this, e, i);
|
|
11454
11468
|
var n = e.delegateTarget, s = Number(n.getAttribute("rate"));
|
|
11455
11469
|
if (!s || s === this.curValue)
|
|
11456
11470
|
return !1;
|
|
@@ -11475,7 +11489,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11475
11489
|
};
|
|
11476
11490
|
return c.rate === i && (c.selected = !0, n = u), c.showText = e.getTextByLang(l), c;
|
|
11477
11491
|
});
|
|
11478
|
-
|
|
11492
|
+
F(R(r.prototype), "renderItemList", this).call(this, s, n);
|
|
11479
11493
|
}
|
|
11480
11494
|
}, {
|
|
11481
11495
|
key: "changeCurrentText",
|
|
@@ -11488,7 +11502,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11488
11502
|
}, {
|
|
11489
11503
|
key: "destroy",
|
|
11490
11504
|
value: function() {
|
|
11491
|
-
|
|
11505
|
+
F(R(r.prototype), "destroy", this).call(this);
|
|
11492
11506
|
}
|
|
11493
11507
|
}], [{
|
|
11494
11508
|
key: "pluginName",
|
|
@@ -11522,12 +11536,12 @@ function Ul() {
|
|
|
11522
11536
|
`, "image/svg+xml").firstChild;
|
|
11523
11537
|
}
|
|
11524
11538
|
var mn = /* @__PURE__ */ function(a) {
|
|
11525
|
-
|
|
11526
|
-
var o =
|
|
11539
|
+
D(r, a);
|
|
11540
|
+
var o = O(r);
|
|
11527
11541
|
function r() {
|
|
11528
|
-
return
|
|
11542
|
+
return P(this, r), o.apply(this, arguments);
|
|
11529
11543
|
}
|
|
11530
|
-
return
|
|
11544
|
+
return L(r, [{
|
|
11531
11545
|
key: "beforeCreate",
|
|
11532
11546
|
value: function(e) {
|
|
11533
11547
|
typeof e.player.config.cssFullscreen == "boolean" && (e.config.disable = !e.player.config.cssFullscreen);
|
|
@@ -11536,7 +11550,7 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
11536
11550
|
key: "afterCreate",
|
|
11537
11551
|
value: function() {
|
|
11538
11552
|
var e = this;
|
|
11539
|
-
|
|
11553
|
+
F(R(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(Et, function(i) {
|
|
11540
11554
|
e.animate(i);
|
|
11541
11555
|
}), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
|
|
11542
11556
|
pre: function(n) {
|
|
@@ -11587,7 +11601,7 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
11587
11601
|
}, {
|
|
11588
11602
|
key: "destroy",
|
|
11589
11603
|
value: function() {
|
|
11590
|
-
|
|
11604
|
+
F(R(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.btnClick);
|
|
11591
11605
|
}
|
|
11592
11606
|
}, {
|
|
11593
11607
|
key: "render",
|
|
@@ -11616,12 +11630,12 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
11616
11630
|
}
|
|
11617
11631
|
}]), r;
|
|
11618
11632
|
}(Ye), zl = /* @__PURE__ */ function(a) {
|
|
11619
|
-
|
|
11620
|
-
var o =
|
|
11633
|
+
D(r, a);
|
|
11634
|
+
var o = O(r);
|
|
11621
11635
|
function r() {
|
|
11622
|
-
return
|
|
11636
|
+
return P(this, r), o.apply(this, arguments);
|
|
11623
11637
|
}
|
|
11624
|
-
return
|
|
11638
|
+
return L(r, [{
|
|
11625
11639
|
key: "afterCreate",
|
|
11626
11640
|
value: function() {
|
|
11627
11641
|
var e = this;
|
|
@@ -11677,12 +11691,12 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
11677
11691
|
}
|
|
11678
11692
|
}]), r;
|
|
11679
11693
|
}(W), Vl = /* @__PURE__ */ function(a) {
|
|
11680
|
-
|
|
11681
|
-
var o =
|
|
11694
|
+
D(r, a);
|
|
11695
|
+
var o = O(r);
|
|
11682
11696
|
function r() {
|
|
11683
|
-
return
|
|
11697
|
+
return P(this, r), o.apply(this, arguments);
|
|
11684
11698
|
}
|
|
11685
|
-
return
|
|
11699
|
+
return L(r, [{
|
|
11686
11700
|
key: "afterCreate",
|
|
11687
11701
|
value: function() {
|
|
11688
11702
|
var e = this;
|
|
@@ -11728,7 +11742,7 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
11728
11742
|
}, {
|
|
11729
11743
|
key: "render",
|
|
11730
11744
|
value: function() {
|
|
11731
|
-
return '<xg-prompt class="xgplayer-prompt '.concat(
|
|
11745
|
+
return '<xg-prompt class="xgplayer-prompt '.concat(C.CONTROLS_FOLLOW, `">
|
|
11732
11746
|
<span class="xgplayer-prompt-detail"></span>
|
|
11733
11747
|
</xg-prompt>`);
|
|
11734
11748
|
}
|
|
@@ -11931,11 +11945,11 @@ var et = {
|
|
|
11931
11945
|
mouseover: "onProgressMouseOver",
|
|
11932
11946
|
mouseenter: "onProgressMouseOver"
|
|
11933
11947
|
}, Wl = /* @__PURE__ */ function(a) {
|
|
11934
|
-
|
|
11935
|
-
var o =
|
|
11948
|
+
D(r, a);
|
|
11949
|
+
var o = O(r);
|
|
11936
11950
|
function r(t) {
|
|
11937
11951
|
var e;
|
|
11938
|
-
return
|
|
11952
|
+
return P(this, r), e = o.call(this, t), _(m(e), "onMousemove", function(i) {
|
|
11939
11953
|
if (!e.config.disable) {
|
|
11940
11954
|
if (f.hasClass(i.target, "xg-spot-content") && e.config.isHideThumbnailHover) {
|
|
11941
11955
|
e.player.plugins.progress.onMouseLeave(i);
|
|
@@ -11967,7 +11981,7 @@ var et = {
|
|
|
11967
11981
|
f: !1
|
|
11968
11982
|
}, e;
|
|
11969
11983
|
}
|
|
11970
|
-
return
|
|
11984
|
+
return L(r, [{
|
|
11971
11985
|
key: "beforeCreate",
|
|
11972
11986
|
value: function(e) {
|
|
11973
11987
|
var i = e.player.plugins.progress;
|
|
@@ -12005,7 +12019,7 @@ var et = {
|
|
|
12005
12019
|
var e = this, i = this.player.plugins.progress;
|
|
12006
12020
|
if (i && (Object.keys(et).map(function(s) {
|
|
12007
12021
|
e[et[s]] = e[et[s]].bind(e), i.addCallBack(s, e[et[s]]);
|
|
12008
|
-
}),
|
|
12022
|
+
}), N.device !== "mobile")) {
|
|
12009
12023
|
this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
|
|
12010
12024
|
var n = this.hook("previewClick", function() {
|
|
12011
12025
|
});
|
|
@@ -12042,8 +12056,8 @@ var et = {
|
|
|
12042
12056
|
var n = this.root, s = this.previewLine, l = this.player, u = this.config, c = l.controls.mode, h = c === "flex", d = n.getBoundingClientRect().width;
|
|
12043
12057
|
if (!(!d && this._hasThumnail)) {
|
|
12044
12058
|
d = this._hasThumnail && d < u.width ? u.width : d;
|
|
12045
|
-
var
|
|
12046
|
-
|
|
12059
|
+
var g = e - d / 2, p;
|
|
12060
|
+
g < 0 && !h ? (g = 0, p = e - d / 2) : g > i - d && !h ? (p = g - (i - d), g = i - d) : p = 0, p !== void 0 && (s.style.transform = "translateX(".concat(p.toFixed(2), "px)")), n.style.transform = "translateX(".concat(g.toFixed(2), "px) translateZ(0)");
|
|
12047
12061
|
}
|
|
12048
12062
|
}
|
|
12049
12063
|
}, {
|
|
@@ -12081,7 +12095,7 @@ var et = {
|
|
|
12081
12095
|
key: "registerThumbnail",
|
|
12082
12096
|
value: function() {
|
|
12083
12097
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
12084
|
-
if (
|
|
12098
|
+
if (N.device !== "mobile") {
|
|
12085
12099
|
var i = this.player, n = this.config, s = i.getPlugin("thumbnail");
|
|
12086
12100
|
if (s && s.setConfig(e), !s || !s.usable || !n.isShowThumbnail) {
|
|
12087
12101
|
f.addClass(this.root, "short-line no-thumbnail");
|
|
@@ -12169,7 +12183,7 @@ var et = {
|
|
|
12169
12183
|
}, {
|
|
12170
12184
|
key: "render",
|
|
12171
12185
|
value: function() {
|
|
12172
|
-
return
|
|
12186
|
+
return N.device === "mobile" || this.playerConfig.isMobileSimulateMode === "mobile" ? "" : '<div class="xg-spot-info hide '.concat(this.config.mode === "short" ? "short-line" : "", `">
|
|
12173
12187
|
<div class="xg-spot-content">
|
|
12174
12188
|
<div class="xg-spot-thumbnail">
|
|
12175
12189
|
<span class="xg-spot-time"></span>
|
|
@@ -12206,13 +12220,13 @@ var et = {
|
|
|
12206
12220
|
}
|
|
12207
12221
|
}]), r;
|
|
12208
12222
|
}(W), Gl = /* @__PURE__ */ function(a) {
|
|
12209
|
-
|
|
12210
|
-
var o =
|
|
12223
|
+
D(r, a);
|
|
12224
|
+
var o = O(r);
|
|
12211
12225
|
function r(t) {
|
|
12212
12226
|
var e;
|
|
12213
|
-
return
|
|
12227
|
+
return P(this, r), e = o.call(this, t), e.ratio = 1, e.interval = null, e._preloadMark = {}, e;
|
|
12214
12228
|
}
|
|
12215
|
-
return
|
|
12229
|
+
return L(r, [{
|
|
12216
12230
|
key: "afterCreate",
|
|
12217
12231
|
value: function() {
|
|
12218
12232
|
var e = this;
|
|
@@ -12267,26 +12281,26 @@ var et = {
|
|
|
12267
12281
|
value: function(e) {
|
|
12268
12282
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, s = this.config, l = s.pic_num, u = s.row, c = s.col, h = s.width, d = s.height;
|
|
12269
12283
|
this.interval = Math.round(this.player.duration / l);
|
|
12270
|
-
var
|
|
12271
|
-
|
|
12272
|
-
var
|
|
12284
|
+
var g = Math.ceil(e / this.interval);
|
|
12285
|
+
g = g > l ? l : g;
|
|
12286
|
+
var p = g < u * c ? 0 : Math.ceil(g / (u * c)) - 1, v = g - p * (c * u), y = v > 0 ? Math.ceil(v / c) - 1 : 0, k = v > 0 ? v - y * c - 1 : 0, b = 0, w = 0;
|
|
12273
12287
|
if (i && n) {
|
|
12274
|
-
var
|
|
12275
|
-
|
|
12288
|
+
var H = i / n;
|
|
12289
|
+
H < h / d ? (w = n, b = w * (h / d)) : (b = i, w = b / (h / d));
|
|
12276
12290
|
} else
|
|
12277
12291
|
n ? i || (w = n || d, b = w * (h / d)) : (b = i || h, w = b / (h / d));
|
|
12278
|
-
var
|
|
12292
|
+
var x = this.getUrlByIndex(p);
|
|
12279
12293
|
return {
|
|
12280
|
-
urlIndex:
|
|
12294
|
+
urlIndex: p,
|
|
12281
12295
|
rowIndex: y,
|
|
12282
|
-
colIndex:
|
|
12283
|
-
url:
|
|
12296
|
+
colIndex: k,
|
|
12297
|
+
url: x,
|
|
12284
12298
|
height: w,
|
|
12285
12299
|
width: b,
|
|
12286
12300
|
style: {
|
|
12287
|
-
backgroundImage: "url(".concat(
|
|
12301
|
+
backgroundImage: "url(".concat(x, ")"),
|
|
12288
12302
|
backgroundSize: "".concat(b * c, "px auto"),
|
|
12289
|
-
backgroundPosition: "-".concat(
|
|
12303
|
+
backgroundPosition: "-".concat(k * b, "px -").concat(y * w, "px"),
|
|
12290
12304
|
width: "".concat(b, "px"),
|
|
12291
12305
|
height: "".concat(w, "px")
|
|
12292
12306
|
}
|
|
@@ -12298,10 +12312,10 @@ var et = {
|
|
|
12298
12312
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : "", u = this.config, c = u.pic_num, h = u.urls;
|
|
12299
12313
|
if (!(c <= 0 || !h || h.length === 0)) {
|
|
12300
12314
|
var d = this.getPosition(i, n, s);
|
|
12301
|
-
this.preload(d.urlIndex), Object.keys(d.style).map(function(
|
|
12302
|
-
e.style[
|
|
12303
|
-
}), Object.keys(l).map(function(
|
|
12304
|
-
e.style[
|
|
12315
|
+
this.preload(d.urlIndex), Object.keys(d.style).map(function(g) {
|
|
12316
|
+
e.style[g] = d.style[g];
|
|
12317
|
+
}), Object.keys(l).map(function(g) {
|
|
12318
|
+
e.style[g] = l[g];
|
|
12305
12319
|
});
|
|
12306
12320
|
}
|
|
12307
12321
|
}
|
|
@@ -12344,11 +12358,11 @@ function ei(a) {
|
|
|
12344
12358
|
return a ? "background:".concat(a, ";") : "";
|
|
12345
12359
|
}
|
|
12346
12360
|
var $l = /* @__PURE__ */ function(a) {
|
|
12347
|
-
|
|
12348
|
-
var o =
|
|
12361
|
+
D(r, a);
|
|
12362
|
+
var o = O(r);
|
|
12349
12363
|
function r() {
|
|
12350
12364
|
var t;
|
|
12351
|
-
|
|
12365
|
+
P(this, r);
|
|
12352
12366
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12353
12367
|
i[n] = arguments[n];
|
|
12354
12368
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onTimeupdate", function() {
|
|
@@ -12358,7 +12372,7 @@ var $l = /* @__PURE__ */ function(a) {
|
|
|
12358
12372
|
}, u);
|
|
12359
12373
|
}), t;
|
|
12360
12374
|
}
|
|
12361
|
-
return
|
|
12375
|
+
return L(r, [{
|
|
12362
12376
|
key: "offsetDuration",
|
|
12363
12377
|
get: function() {
|
|
12364
12378
|
return this.playerConfig.customDuration || this.player.offsetDuration || this.player.duration;
|
|
@@ -12373,7 +12387,7 @@ var $l = /* @__PURE__ */ function(a) {
|
|
|
12373
12387
|
key: "afterCreate",
|
|
12374
12388
|
value: function() {
|
|
12375
12389
|
var e = this;
|
|
12376
|
-
this.root && (this.on(
|
|
12390
|
+
this.root && (this.on(de, this.onTimeupdate), this.on(Ke, function() {
|
|
12377
12391
|
e.reset();
|
|
12378
12392
|
}));
|
|
12379
12393
|
}
|
|
@@ -12447,22 +12461,22 @@ function Yl() {
|
|
|
12447
12461
|
}
|
|
12448
12462
|
}
|
|
12449
12463
|
var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
12450
|
-
|
|
12451
|
-
var o =
|
|
12464
|
+
D(r, a);
|
|
12465
|
+
var o = O(r);
|
|
12452
12466
|
function r() {
|
|
12453
12467
|
var t;
|
|
12454
|
-
|
|
12468
|
+
P(this, r);
|
|
12455
12469
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12456
12470
|
i[n] = arguments[n];
|
|
12457
12471
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onLoadedData", function(s) {
|
|
12458
|
-
t.player && (t._frameCount = t.config.startFrameCount, t.stop(), t.renderOnTimeupdate(s), t.off(
|
|
12472
|
+
t.player && (t._frameCount = t.config.startFrameCount, t.stop(), t.renderOnTimeupdate(s), t.off(de, t.renderOnTimeupdate), t.on(de, t.renderOnTimeupdate));
|
|
12459
12473
|
}), _(m(t), "onVisibilitychange", function(s) {
|
|
12460
12474
|
document.visibilityState === "visible" ? t._checkIfCanStart() && t.start() : document.visibilityState === "hidden" && t.stop();
|
|
12461
12475
|
}), _(m(t), "renderOnTimeupdate", function(s) {
|
|
12462
12476
|
if (t._frameCount > 0)
|
|
12463
12477
|
t.renderOnce(), t._frameCount--;
|
|
12464
12478
|
else {
|
|
12465
|
-
t._isLoaded = !0, t.off(
|
|
12479
|
+
t._isLoaded = !0, t.off(de, t.renderOnTimeupdate);
|
|
12466
12480
|
var l = t.config.startInterval;
|
|
12467
12481
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
12468
12482
|
}
|
|
@@ -12473,7 +12487,7 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12473
12487
|
t.frameId && (t._loopType === "timer" ? f.clearTimeout(m(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
12474
12488
|
}), t;
|
|
12475
12489
|
}
|
|
12476
|
-
return
|
|
12490
|
+
return L(r, [{
|
|
12477
12491
|
key: "afterCreate",
|
|
12478
12492
|
value: function() {
|
|
12479
12493
|
var e = this;
|
|
@@ -12491,7 +12505,7 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12491
12505
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
12492
12506
|
}), s !== tt.POSTER && (s !== tt.FIRST_FRAME && (this.on(Ke, function() {
|
|
12493
12507
|
e.stop();
|
|
12494
|
-
}), this.on(
|
|
12508
|
+
}), this.on(ge, function() {
|
|
12495
12509
|
var u = e.config.startInterval;
|
|
12496
12510
|
e._checkIfCanStart() && e.start(0, u);
|
|
12497
12511
|
}), this.on(at, function() {
|
|
@@ -12518,7 +12532,7 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12518
12532
|
s || (s = n.isInnerRender && i.innerContainer || i.root), s.insertAdjacentHTML("afterbegin", '<div class="xgplayer-dynamic-bg" data-index="'.concat(n.index, `"><canvas>
|
|
12519
12533
|
</canvas><xgmask></xgmask></div>`)), this.root = s.children[0], this.canvas = this.find("canvas"), this.canvasFilter || (this.canvas.style.filter = n.filter, this.canvas.style.webkitFilter = n.filter), this.mask = this.find("xgmask"), n.addMask && (this.mask.style.background = n.maskBg), this.canvasCtx = this.canvas.getContext("2d");
|
|
12520
12534
|
} catch (l) {
|
|
12521
|
-
|
|
12535
|
+
U.logError("plugin:DynamicBg", l);
|
|
12522
12536
|
}
|
|
12523
12537
|
}
|
|
12524
12538
|
}, {
|
|
@@ -12543,7 +12557,7 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12543
12557
|
if (!e)
|
|
12544
12558
|
return null;
|
|
12545
12559
|
var i = e && e instanceof window.HTMLVideoElement ? e : e.canvas ? e.canvas : e.flyVideo ? e.flyVideo : null;
|
|
12546
|
-
if (i && !(
|
|
12560
|
+
if (i && !(N.browser === "safari" && f.isMSE(i)))
|
|
12547
12561
|
return i;
|
|
12548
12562
|
var n = i ? i.tagName.toLowerCase() : "";
|
|
12549
12563
|
return n === "canvas" || n === "img" ? i : null;
|
|
@@ -12597,12 +12611,12 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12597
12611
|
if (u !== n.width || c !== n.height || n.pi !== i) {
|
|
12598
12612
|
var h = parseInt(u / c * 100, 10);
|
|
12599
12613
|
n.pi = i, n.width !== u && (n.width = this.canvas.width = u), n.height !== c && (n.height = this.canvas.height = c);
|
|
12600
|
-
var d = c,
|
|
12601
|
-
h < i ?
|
|
12614
|
+
var d = c, g = u;
|
|
12615
|
+
h < i ? g = parseInt(c * i / 100, 10) : h > i && (d = parseInt(u * 100 / i, 10)), n.rwidth = g * s.multiple, n.rheight = d * s.multiple, n.x = (u - n.rwidth) / 2, n.y = (c - n.rheight) / 2;
|
|
12602
12616
|
}
|
|
12603
12617
|
this.canvasFilter && (this.canvasCtx.filter = s.filter), this.canvasCtx.drawImage(e, n.x, n.y, n.rwidth, n.rheight);
|
|
12604
|
-
} catch (
|
|
12605
|
-
|
|
12618
|
+
} catch (p) {
|
|
12619
|
+
U.logError("plugin:DynamicBg", p);
|
|
12606
12620
|
}
|
|
12607
12621
|
}
|
|
12608
12622
|
}, {
|
|
@@ -12645,7 +12659,7 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12645
12659
|
}, {
|
|
12646
12660
|
key: "supportCanvasFilter",
|
|
12647
12661
|
value: function() {
|
|
12648
|
-
return !(
|
|
12662
|
+
return !(N.browser === "safari" || N.browser === "firefox");
|
|
12649
12663
|
}
|
|
12650
12664
|
}]), r;
|
|
12651
12665
|
}(W), ql = {
|
|
@@ -12724,11 +12738,11 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12724
12738
|
LIVE_TIP: "直播"
|
|
12725
12739
|
}
|
|
12726
12740
|
}, ct = "info", ti = Yn, Zl = /* @__PURE__ */ function(a) {
|
|
12727
|
-
|
|
12728
|
-
var o =
|
|
12741
|
+
D(r, a);
|
|
12742
|
+
var o = O(r);
|
|
12729
12743
|
function r() {
|
|
12730
12744
|
var t;
|
|
12731
|
-
|
|
12745
|
+
P(this, r);
|
|
12732
12746
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12733
12747
|
i[n] = arguments[n];
|
|
12734
12748
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "_recordUserActions", function(s) {
|
|
@@ -12751,7 +12765,7 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12751
12765
|
c.style.display = "none", c.href = u, c.download = "player.txt", c.disabled = !1, c.click();
|
|
12752
12766
|
}), t;
|
|
12753
12767
|
}
|
|
12754
|
-
return
|
|
12768
|
+
return L(r, [{
|
|
12755
12769
|
key: "_getTime",
|
|
12756
12770
|
value: function() {
|
|
12757
12771
|
return {
|
|
@@ -12868,11 +12882,11 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12868
12882
|
}
|
|
12869
12883
|
}]), r;
|
|
12870
12884
|
}(He), nr = /* @__PURE__ */ function(a) {
|
|
12871
|
-
|
|
12872
|
-
var o =
|
|
12885
|
+
D(r, a);
|
|
12886
|
+
var o = O(r);
|
|
12873
12887
|
function r() {
|
|
12874
12888
|
var t;
|
|
12875
|
-
|
|
12889
|
+
P(this, r);
|
|
12876
12890
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12877
12891
|
i[n] = arguments[n];
|
|
12878
12892
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onGapJump", function() {
|
|
@@ -12884,13 +12898,13 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12884
12898
|
} else
|
|
12885
12899
|
t.seekingEventReceived = !1;
|
|
12886
12900
|
if (!(l.media.paused && l.media.currentTime !== 0 && t.hasPlayed)) {
|
|
12887
|
-
var c = l.media.buffered, h = u.smallGapLimit || 0.5, d = u.gapDetectionThreshold || 0.3,
|
|
12888
|
-
if (!(
|
|
12889
|
-
console.log("GapJump bufferRange ", c.start(
|
|
12890
|
-
var v = c.start(
|
|
12901
|
+
var c = l.media.buffered, h = u.smallGapLimit || 0.5, d = u.gapDetectionThreshold || 0.3, g = l.media.currentTime, p = t._getIndex(c, g, d);
|
|
12902
|
+
if (!(p === null || p === 0)) {
|
|
12903
|
+
console.log("GapJump bufferRange ", c.start(p), c.end(p));
|
|
12904
|
+
var v = c.start(p) + 0.1, y = l.media.duration;
|
|
12891
12905
|
if (!(v > y)) {
|
|
12892
|
-
var
|
|
12893
|
-
|
|
12906
|
+
var k = v - g, b = k <= h;
|
|
12907
|
+
k < r.BROWSER_GAP_TOLERANCE || b && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ? v + 0.1 : v), t.player && t.player.emit("detectGap"), console.log("gapJump gapIndex", p, " isGapSamll:", b, " currentTime:", l.media.currentTime, " jumpSize:", g - l.media.currentTime), v !== 0.08 && l && l.emit("log", {
|
|
12894
12908
|
type: "oneevent",
|
|
12895
12909
|
end_type: "gap",
|
|
12896
12910
|
vid: l.config.vid,
|
|
@@ -12904,11 +12918,11 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12904
12918
|
}
|
|
12905
12919
|
}), t;
|
|
12906
12920
|
}
|
|
12907
|
-
return
|
|
12921
|
+
return L(r, [{
|
|
12908
12922
|
key: "afterCreate",
|
|
12909
12923
|
value: function() {
|
|
12910
12924
|
var e = this, i = this.config.useGapJump;
|
|
12911
|
-
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(pt, this.onGapJump), this.on(
|
|
12925
|
+
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(pt, this.onGapJump), this.on(ge, function() {
|
|
12912
12926
|
e.hasPlayed = !0;
|
|
12913
12927
|
}), this.on(Rt, function() {
|
|
12914
12928
|
e.seekingEventReceived = !0;
|
|
@@ -12958,11 +12972,11 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12958
12972
|
}(W);
|
|
12959
12973
|
nr.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
12960
12974
|
var Jl = /* @__PURE__ */ function(a) {
|
|
12961
|
-
|
|
12962
|
-
var o =
|
|
12975
|
+
D(r, a);
|
|
12976
|
+
var o = O(r);
|
|
12963
12977
|
function r() {
|
|
12964
12978
|
var t;
|
|
12965
|
-
|
|
12979
|
+
P(this, r);
|
|
12966
12980
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12967
12981
|
i[n] = arguments[n];
|
|
12968
12982
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onWaiting", function() {
|
|
@@ -12977,13 +12991,13 @@ var Jl = /* @__PURE__ */ function(a) {
|
|
|
12977
12991
|
}
|
|
12978
12992
|
}), t;
|
|
12979
12993
|
}
|
|
12980
|
-
return
|
|
12994
|
+
return L(r, [{
|
|
12981
12995
|
key: "afterCreate",
|
|
12982
12996
|
value: function() {
|
|
12983
12997
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
12984
12998
|
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(pt, this.onWaiting), this.on([vi, Ie], function() {
|
|
12985
12999
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
12986
|
-
}), this.on(
|
|
13000
|
+
}), this.on(ge, function() {
|
|
12987
13001
|
e.hasPlayed = !0;
|
|
12988
13002
|
}));
|
|
12989
13003
|
}
|
|
@@ -13004,11 +13018,11 @@ var Jl = /* @__PURE__ */ function(a) {
|
|
|
13004
13018
|
}
|
|
13005
13019
|
}]), r;
|
|
13006
13020
|
}(W), it = "cdn", kt = ["cdn"], Ql = /* @__PURE__ */ function(a) {
|
|
13007
|
-
|
|
13008
|
-
var o =
|
|
13021
|
+
D(r, a);
|
|
13022
|
+
var o = O(r);
|
|
13009
13023
|
function r() {
|
|
13010
13024
|
var t;
|
|
13011
|
-
|
|
13025
|
+
P(this, r);
|
|
13012
13026
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
13013
13027
|
i[n] = arguments[n];
|
|
13014
13028
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "getSpeed", function() {
|
|
@@ -13033,15 +13047,15 @@ var Jl = /* @__PURE__ */ function(a) {
|
|
|
13033
13047
|
if (!(t.cnt >= c)) {
|
|
13034
13048
|
t.cnt++;
|
|
13035
13049
|
try {
|
|
13036
|
-
var
|
|
13050
|
+
var g = (/* @__PURE__ */ new Date()).getTime(), p = null, v = new XMLHttpRequest();
|
|
13037
13051
|
t.xhr = v, v.open("GET", d);
|
|
13038
|
-
var y = {},
|
|
13039
|
-
y.Range = "bytes=" +
|
|
13052
|
+
var y = {}, k = Math.floor(Math.random() * 10);
|
|
13053
|
+
y.Range = "bytes=" + k + "-" + (u + k), y && Object.keys(y).forEach(function(b) {
|
|
13040
13054
|
v.setRequestHeader(b, y[b]);
|
|
13041
13055
|
}), v.onreadystatechange = function() {
|
|
13042
13056
|
if (v.readyState === 4) {
|
|
13043
|
-
t.xhr = null,
|
|
13044
|
-
var b = v.getResponseHeader("Content-Length") / 1024 * 8, w = Math.round(b * 1e3 / (
|
|
13057
|
+
t.xhr = null, p = (/* @__PURE__ */ new Date()).getTime();
|
|
13058
|
+
var b = v.getResponseHeader("Content-Length") / 1024 * 8, w = Math.round(b * 1e3 / (p - g));
|
|
13045
13059
|
t.appendList(w), t.timer = setTimeout(t.testSpeed, h);
|
|
13046
13060
|
}
|
|
13047
13061
|
}, v.send();
|
|
@@ -13075,7 +13089,7 @@ var Jl = /* @__PURE__ */ function(a) {
|
|
|
13075
13089
|
}
|
|
13076
13090
|
}), t;
|
|
13077
13091
|
}
|
|
13078
|
-
return
|
|
13092
|
+
return L(r, [{
|
|
13079
13093
|
key: "afterCreate",
|
|
13080
13094
|
value: function() {
|
|
13081
13095
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
@@ -13130,18 +13144,18 @@ var Jl = /* @__PURE__ */ function(a) {
|
|
|
13130
13144
|
}
|
|
13131
13145
|
}]), r;
|
|
13132
13146
|
}(W), eu = /* @__PURE__ */ function(a) {
|
|
13133
|
-
|
|
13134
|
-
var o =
|
|
13147
|
+
D(r, a);
|
|
13148
|
+
var o = O(r);
|
|
13135
13149
|
function r() {
|
|
13136
|
-
return
|
|
13150
|
+
return P(this, r), o.apply(this, arguments);
|
|
13137
13151
|
}
|
|
13138
|
-
return
|
|
13152
|
+
return L(r, [{
|
|
13139
13153
|
key: "afterCreate",
|
|
13140
13154
|
value: function() {
|
|
13141
13155
|
var e = this, i = this.player, n = this.config, s = i.media || i.video;
|
|
13142
13156
|
if (this.timer = null, this._lastDecodedFrames = 0, this._currentStuckCount = 0, this._lastCheckPoint = null, this._payload = [], !n.disabled) {
|
|
13143
13157
|
var l = s.getVideoPlaybackQuality;
|
|
13144
|
-
l && (this.on(
|
|
13158
|
+
l && (this.on(ge, function() {
|
|
13145
13159
|
e._startTick();
|
|
13146
13160
|
}), this.on(at, function() {
|
|
13147
13161
|
e._stopTick();
|
|
@@ -13186,9 +13200,9 @@ var Jl = /* @__PURE__ */ function(a) {
|
|
|
13186
13200
|
}, {
|
|
13187
13201
|
key: "_checkStuck",
|
|
13188
13202
|
value: function(e, i, n, s) {
|
|
13189
|
-
var l = this.player.media || this.player.video, u = document.hidden, c = l.paused, h = l.readyState, d = l.currentTime,
|
|
13203
|
+
var l = this.player.media || this.player.video, u = document.hidden, c = l.paused, h = l.readyState, d = l.currentTime, g = l.buffered;
|
|
13190
13204
|
if (!(u || c || h < 4)) {
|
|
13191
|
-
var
|
|
13205
|
+
var p = this._checkBuffer(d, g), v = p.enoughBuffer, y = p.buffers;
|
|
13192
13206
|
v && (e <= this.config.reportFrame ? (this._currentStuckCount++, this._payload.push({
|
|
13193
13207
|
currentTime: d,
|
|
13194
13208
|
buffers: y,
|
|
@@ -13240,12 +13254,12 @@ var Jl = /* @__PURE__ */ function(a) {
|
|
|
13240
13254
|
}]), r;
|
|
13241
13255
|
}(W);
|
|
13242
13256
|
nt.use(ql);
|
|
13243
|
-
var tu = /* @__PURE__ */
|
|
13257
|
+
var tu = /* @__PURE__ */ L(function a(o, r) {
|
|
13244
13258
|
var t, e, i;
|
|
13245
|
-
|
|
13259
|
+
P(this, a);
|
|
13246
13260
|
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [yl, cl, $l, Wl, ml], u = [].concat(l, [fl, vl, Tl, Pl, Nl, Bl, Ol, Rl, wl, xl]), c = [Wa, Ga, Ka, al, Ya, zl, Vl, Gl, Ja];
|
|
13247
13261
|
this.plugins = [Zl, Va].concat(me(u), c, [nr, Jl]);
|
|
13248
|
-
var h = n ? "mobile" :
|
|
13262
|
+
var h = n ? "mobile" : N.device;
|
|
13249
13263
|
switch (h) {
|
|
13250
13264
|
case "pc":
|
|
13251
13265
|
(t = this.plugins).push.apply(t, [pn, Jt, mn, Ql, eu]);
|
|
@@ -13256,24 +13270,24 @@ var tu = /* @__PURE__ */ I(function a(o, r) {
|
|
|
13256
13270
|
default:
|
|
13257
13271
|
(i = this.plugins).push.apply(i, [pn, Jt, mn]);
|
|
13258
13272
|
}
|
|
13259
|
-
(
|
|
13273
|
+
(N.os.isIpad || h === "pc") && this.plugins.push(Xl), N.os.isIpad && this.plugins.push(Jt), this.ignores = [], this.i18n = [];
|
|
13260
13274
|
}), ye = /* @__PURE__ */ function(a) {
|
|
13261
|
-
|
|
13262
|
-
var o =
|
|
13275
|
+
D(r, a);
|
|
13276
|
+
var o = O(r);
|
|
13263
13277
|
function r() {
|
|
13264
|
-
return
|
|
13278
|
+
return P(this, r), o.apply(this, arguments);
|
|
13265
13279
|
}
|
|
13266
|
-
return
|
|
13280
|
+
return L(r);
|
|
13267
13281
|
}(Bt);
|
|
13268
13282
|
_(ye, "defaultPreset", tu);
|
|
13269
13283
|
_(ye, "Util", f);
|
|
13270
|
-
_(ye, "Sniffer",
|
|
13284
|
+
_(ye, "Sniffer", N);
|
|
13271
13285
|
_(ye, "Errors", bt);
|
|
13272
13286
|
_(ye, "Events", va);
|
|
13273
13287
|
_(ye, "Plugin", W);
|
|
13274
13288
|
_(ye, "BasePlugin", He);
|
|
13275
13289
|
_(ye, "I18N", nt);
|
|
13276
|
-
_(ye, "STATE_CLASS",
|
|
13290
|
+
_(ye, "STATE_CLASS", C);
|
|
13277
13291
|
_(ye, "InstManager", Qn);
|
|
13278
13292
|
const iu = ["id"], nu = /* @__PURE__ */ J({
|
|
13279
13293
|
name: "ElImageViewer",
|
|
@@ -13329,21 +13343,21 @@ const iu = ["id"], nu = /* @__PURE__ */ J({
|
|
|
13329
13343
|
function d() {
|
|
13330
13344
|
l("close"), u.value = !1, r.destroy();
|
|
13331
13345
|
}
|
|
13332
|
-
return ot(() => u.value, (
|
|
13333
|
-
|
|
13346
|
+
return ot(() => u.value, (g) => {
|
|
13347
|
+
g && hi(() => {
|
|
13334
13348
|
r = new ye({
|
|
13335
13349
|
id: c,
|
|
13336
13350
|
url: i.value,
|
|
13337
13351
|
...s.value
|
|
13338
13352
|
});
|
|
13339
13353
|
});
|
|
13340
|
-
}), (
|
|
13354
|
+
}), (g, p) => {
|
|
13341
13355
|
const v = st("el-icon");
|
|
13342
|
-
return u.value ? (E(),
|
|
13356
|
+
return u.value ? (E(), he(kn, {
|
|
13343
13357
|
key: 0,
|
|
13344
13358
|
to: "body"
|
|
13345
13359
|
}, [
|
|
13346
|
-
|
|
13360
|
+
j(Cn, {
|
|
13347
13361
|
name: "viewer-fade",
|
|
13348
13362
|
appear: ""
|
|
13349
13363
|
}, {
|
|
@@ -13354,7 +13368,7 @@ const iu = ["id"], nu = /* @__PURE__ */ J({
|
|
|
13354
13368
|
ref: "wrapper",
|
|
13355
13369
|
tabindex: -1,
|
|
13356
13370
|
class: K(S(h).e("wrapper")),
|
|
13357
|
-
style:
|
|
13371
|
+
style: ie({ zIndex: a.zIndex })
|
|
13358
13372
|
},
|
|
13359
13373
|
[
|
|
13360
13374
|
T(
|
|
@@ -13382,9 +13396,9 @@ const iu = ["id"], nu = /* @__PURE__ */ J({
|
|
|
13382
13396
|
onClick: d
|
|
13383
13397
|
},
|
|
13384
13398
|
[
|
|
13385
|
-
|
|
13399
|
+
j(v, { onClick: d }, {
|
|
13386
13400
|
default: ee(() => [
|
|
13387
|
-
|
|
13401
|
+
j(S(Tn))
|
|
13388
13402
|
]),
|
|
13389
13403
|
_: 1
|
|
13390
13404
|
/* STABLE */
|
|
@@ -13397,7 +13411,7 @@ const iu = ["id"], nu = /* @__PURE__ */ J({
|
|
|
13397
13411
|
2
|
|
13398
13412
|
/* CLASS */
|
|
13399
13413
|
),
|
|
13400
|
-
Ne(
|
|
13414
|
+
Ne(g.$slots, "default", {}, void 0, !0)
|
|
13401
13415
|
],
|
|
13402
13416
|
6
|
|
13403
13417
|
/* CLASS, STYLE */
|
|
@@ -13470,51 +13484,51 @@ const ru = /* @__PURE__ */ Ot(nu, [["__scopeId", "data-v-b301aa7d"]]), su = Ae(r
|
|
|
13470
13484
|
// row.originName
|
|
13471
13485
|
}, t.value = !0;
|
|
13472
13486
|
}, n = (u) => {
|
|
13473
|
-
var c, h, d,
|
|
13474
|
-
return (c = u == null ? void 0 : u.suffix) != null && c.includes("pdf") ? "iksvg_pdf" : (h = u == null ? void 0 : u.suffix) != null && h.includes("doc") ? "iksvg_word" : (d = u == null ? void 0 : u.suffix) != null && d.includes("xls") ? "iksvg_excel" : (
|
|
13487
|
+
var c, h, d, g, p;
|
|
13488
|
+
return (c = u == null ? void 0 : u.suffix) != null && c.includes("pdf") ? "iksvg_pdf" : (h = u == null ? void 0 : u.suffix) != null && h.includes("doc") ? "iksvg_word" : (d = u == null ? void 0 : u.suffix) != null && d.includes("xls") ? "iksvg_excel" : (g = u == null ? void 0 : u.suffix) != null && g.includes("mov") ? "iksvg_mov" : (p = u == null ? void 0 : u.suffix) != null && p.includes("zip") ? "iksvg_zip" : "icon-jpg";
|
|
13475
13489
|
}, s = (u) => {
|
|
13476
|
-
var c, h, d,
|
|
13477
|
-
return (c = u == null ? void 0 : u.suffix) != null && c.includes("pdf") ? "#FA4E4E" : (h = u == null ? void 0 : u.suffix) != null && h.includes("doc") ? "#2c69e0" : (d = u.suffix) != null && d.includes("xls") ? "#39BFBF" : (
|
|
13490
|
+
var c, h, d, g, p;
|
|
13491
|
+
return (c = u == null ? void 0 : u.suffix) != null && c.includes("pdf") ? "#FA4E4E" : (h = u == null ? void 0 : u.suffix) != null && h.includes("doc") ? "#2c69e0" : (d = u.suffix) != null && d.includes("xls") ? "#39BFBF" : (g = u.suffix) != null && g.includes("txt") ? "#2c69e0" : (p = u.suffix) != null && p.includes("zip") ? "#FF9000" : "#32CD79";
|
|
13478
13492
|
}, l = (u) => {
|
|
13479
13493
|
const c = document.createElement("a");
|
|
13480
13494
|
c.href = kr.assembleUrl(o.loadUrl, u.url), c.download = u.name, c.click();
|
|
13481
13495
|
};
|
|
13482
13496
|
return (u, c) => {
|
|
13483
|
-
var d,
|
|
13497
|
+
var d, g;
|
|
13484
13498
|
const h = st("el-image");
|
|
13485
|
-
return E(),
|
|
13486
|
-
o.fileType === "file" ? (E(),
|
|
13487
|
-
(E(!0),
|
|
13499
|
+
return E(), I("div", null, [
|
|
13500
|
+
o.fileType === "file" ? (E(), I("div", au, [
|
|
13501
|
+
(E(!0), I(
|
|
13488
13502
|
pe,
|
|
13489
13503
|
null,
|
|
13490
|
-
rt(r.value, (
|
|
13504
|
+
rt(r.value, (p, v) => (E(), I(
|
|
13491
13505
|
"div",
|
|
13492
13506
|
{
|
|
13493
13507
|
key: v,
|
|
13494
13508
|
class: "files-item",
|
|
13495
|
-
style:
|
|
13509
|
+
style: ie({
|
|
13496
13510
|
width: o.fileWidth,
|
|
13497
13511
|
"margin-right": o.fileWidth === "100%" ? "0px" : ""
|
|
13498
13512
|
})
|
|
13499
13513
|
},
|
|
13500
13514
|
[
|
|
13501
13515
|
T("div", lu, [
|
|
13502
|
-
|
|
13503
|
-
name: n(
|
|
13504
|
-
style:
|
|
13516
|
+
j(S(Ee), {
|
|
13517
|
+
name: n(p),
|
|
13518
|
+
style: ie(`color:${s(p)}`),
|
|
13505
13519
|
size: 36
|
|
13506
13520
|
}, null, 8, ["name", "style"]),
|
|
13507
13521
|
T("div", {
|
|
13508
13522
|
class: "file-name",
|
|
13509
|
-
onClick: (y) => l(
|
|
13523
|
+
onClick: (y) => l(p)
|
|
13510
13524
|
}, [
|
|
13511
13525
|
T("p", {
|
|
13512
|
-
title:
|
|
13513
|
-
}, xe(
|
|
13526
|
+
title: p.name
|
|
13527
|
+
}, xe(p.name), 9, cu),
|
|
13514
13528
|
T(
|
|
13515
13529
|
"p",
|
|
13516
13530
|
fu,
|
|
13517
|
-
xe((
|
|
13531
|
+
xe((p.size / 1024).toFixed(2)) + "KB",
|
|
13518
13532
|
1
|
|
13519
13533
|
/* TEXT */
|
|
13520
13534
|
)
|
|
@@ -13522,9 +13536,9 @@ const ru = /* @__PURE__ */ Ot(nu, [["__scopeId", "data-v-b301aa7d"]]), su = Ae(r
|
|
|
13522
13536
|
]),
|
|
13523
13537
|
T("div", {
|
|
13524
13538
|
class: "file-preview",
|
|
13525
|
-
onClick: (y) => i(
|
|
13539
|
+
onClick: (y) => i(p)
|
|
13526
13540
|
}, [
|
|
13527
|
-
|
|
13541
|
+
j(S(Ee), { name: "iksvg_yulan" }),
|
|
13528
13542
|
du
|
|
13529
13543
|
], 8, hu)
|
|
13530
13544
|
],
|
|
@@ -13535,18 +13549,18 @@ const ru = /* @__PURE__ */ Ot(nu, [["__scopeId", "data-v-b301aa7d"]]), su = Ae(r
|
|
|
13535
13549
|
/* KEYED_FRAGMENT */
|
|
13536
13550
|
))
|
|
13537
13551
|
])) : Y("v-if", !0),
|
|
13538
|
-
o.fileType === "img" ? (E(),
|
|
13539
|
-
(E(!0),
|
|
13552
|
+
o.fileType === "img" ? (E(), I("div", gu, [
|
|
13553
|
+
(E(!0), I(
|
|
13540
13554
|
pe,
|
|
13541
13555
|
null,
|
|
13542
|
-
rt(r.value, (
|
|
13556
|
+
rt(r.value, (p, v) => (E(), I("div", {
|
|
13543
13557
|
key: v,
|
|
13544
13558
|
class: "preview-img"
|
|
13545
13559
|
}, [
|
|
13546
|
-
|
|
13560
|
+
j(h, {
|
|
13547
13561
|
class: "show-img",
|
|
13548
|
-
src: a.loadUrl +
|
|
13549
|
-
"preview-src-list": [a.loadUrl +
|
|
13562
|
+
src: a.loadUrl + p.url,
|
|
13563
|
+
"preview-src-list": [a.loadUrl + p.url],
|
|
13550
13564
|
fit: "cover"
|
|
13551
13565
|
}, null, 8, ["src", "preview-src-list"])
|
|
13552
13566
|
]))),
|
|
@@ -13554,13 +13568,13 @@ const ru = /* @__PURE__ */ Ot(nu, [["__scopeId", "data-v-b301aa7d"]]), su = Ae(r
|
|
|
13554
13568
|
/* KEYED_FRAGMENT */
|
|
13555
13569
|
))
|
|
13556
13570
|
])) : Y("v-if", !0),
|
|
13557
|
-
|
|
13571
|
+
j(S(io), {
|
|
13558
13572
|
modelValue: t.value,
|
|
13559
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
13573
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => t.value = p),
|
|
13560
13574
|
"load-url": o.loadUrl,
|
|
13561
13575
|
url: (d = e.value) == null ? void 0 : d.url,
|
|
13562
13576
|
"kk-url": a.kkUrl,
|
|
13563
|
-
"file-name": (
|
|
13577
|
+
"file-name": (g = e.value) == null ? void 0 : g.name
|
|
13564
13578
|
}, null, 8, ["modelValue", "load-url", "url", "kk-url", "file-name"])
|
|
13565
13579
|
]);
|
|
13566
13580
|
};
|