iking-web-ui-pro 0.2.21 → 0.2.24
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/IKExpandCollapse/ik.index.es.js +33 -32
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +470 -482
- package/dist/IKPreviewFile/ik.index.umd.js +45 -45
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +2 -1
- package/dist/IKVerticalStepBar/ik.index.umd.js +1 -1
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +393 -405
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +47 -47
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +85 -97
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +2 -1
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +5 -4
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +535 -547
- package/dist/IkDescription/ik.index.umd.js +45 -45
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +352 -364
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +45 -45
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +5 -4
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +2 -1
- package/dist/IkMonacoEditor/ik.index.umd.js +1 -1
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +2 -1
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +497 -509
- package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2 -1
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +5 -4
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +11 -10
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +321 -333
- package/dist/IkUploadFile/ik.index.umd.js +45 -45
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +2 -1
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +2138 -2150
- package/dist/index.umd.js +62 -62
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as le, computed as Y, openBlock as
|
|
1
|
+
import { defineComponent as le, computed as Y, openBlock as L, createElementBlock as N, createElementVNode as S, inject as Xe, mergeModels as at, useModel as Kt, ref as Ke, reactive as kn, watch as Ui, nextTick as zi, resolveComponent as $e, Fragment as Ze, createBlock as we, createCommentVNode as he, createVNode as Q, unref as j, withCtx as de, normalizeClass as ee, normalizeStyle as oe, createTextVNode as Bt, toDisplayString as Ge, h as wn, mergeProps as bn, createSlots as Tn, renderSlot as Ae, Teleport as En, Transition as Sn, renderList as ai, withModifiers as li } from "vue";
|
|
2
2
|
import { buildUUID as Vi, ikColor as xn, paramType as Pn, ikFile as In } from "iking-utils-pro";
|
|
3
3
|
import { useNamespace as An } from "element-plus";
|
|
4
|
-
const
|
|
4
|
+
const De = (a, o) => {
|
|
5
5
|
if (a.install = (r) => {
|
|
6
6
|
for (const t of [a, ...Object.values(o ?? {})])
|
|
7
7
|
r.component(t.name, t);
|
|
@@ -620,15 +620,15 @@ const Re = (a, o) => {
|
|
|
620
620
|
},
|
|
621
621
|
setup(a) {
|
|
622
622
|
const o = a, r = Y(() => o.file ? Ht(o.file, o.fields) : o.type);
|
|
623
|
-
return (t, e) => r.value === "image" ? (
|
|
623
|
+
return (t, e) => r.value === "image" ? (L(), N("svg", Rn, Bn)) : r.value === "zip" ? (L(), N("svg", Hn, Vn)) : r.value === "ppt" ? (L(), N("svg", jn, Kn)) : r.value === "word" ? (L(), N("svg", $n, qn)) : r.value === "pdf" ? (L(), N("svg", Zn, er)) : r.value === "txt" ? (L(), N("svg", tr, rr)) : r.value === "audio" ? (L(), N("svg", sr, lr)) : r.value === "video" ? (L(), N("svg", ur, hr)) : r.value === "excel" ? (L(), N("svg", dr, mr)) : r.value === "exe" ? (L(), N("svg", yr, br)) : r.value === "json" ? (L(), N("svg", Tr, Pr)) : (L(), N("svg", Ir, Rr));
|
|
624
624
|
}
|
|
625
|
-
}), Fr =
|
|
625
|
+
}), Fr = De(Or);
|
|
626
626
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
627
627
|
var Mr = /* @__PURE__ */ le({
|
|
628
628
|
name: "Close",
|
|
629
629
|
__name: "close",
|
|
630
630
|
setup(a) {
|
|
631
|
-
return (o, r) => (
|
|
631
|
+
return (o, r) => (L(), N("svg", {
|
|
632
632
|
xmlns: "http://www.w3.org/2000/svg",
|
|
633
633
|
viewBox: "0 0 1024 1024"
|
|
634
634
|
}, [
|
|
@@ -760,11 +760,11 @@ const yt = (a, o) => {
|
|
|
760
760
|
return (u, c) => {
|
|
761
761
|
var d, g, p;
|
|
762
762
|
const h = $e("el-image-viewer");
|
|
763
|
-
return r.value ? (
|
|
763
|
+
return r.value ? (L(), N(
|
|
764
764
|
Ze,
|
|
765
765
|
{ key: 0 },
|
|
766
766
|
[
|
|
767
|
-
(d = i.value) != null && d.url && n.image ? (
|
|
767
|
+
(d = i.value) != null && d.url && n.image ? (L(), we(h, {
|
|
768
768
|
key: 0,
|
|
769
769
|
onClose: c[0] || (c[0] = (m) => l()),
|
|
770
770
|
ref: "previewImgRef",
|
|
@@ -773,12 +773,12 @@ const yt = (a, o) => {
|
|
|
773
773
|
}, null, 8, ["url-list"])) : he("v-if", !0),
|
|
774
774
|
he(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
775
775
|
he(" 文档类 "),
|
|
776
|
-
|
|
776
|
+
Q(j(xa), {
|
|
777
777
|
modelValue: n.video,
|
|
778
778
|
"onUpdate:modelValue": c[1] || (c[1] = (m) => n.video = m),
|
|
779
779
|
url: (p = i.value) == null ? void 0 : p.url
|
|
780
780
|
}, null, 8, ["modelValue", "url"]),
|
|
781
|
-
|
|
781
|
+
Q(j(ts), {
|
|
782
782
|
modelValue: n.office,
|
|
783
783
|
"onUpdate:modelValue": c[2] || (c[2] = (m) => n.office = m),
|
|
784
784
|
draggable: "",
|
|
@@ -796,7 +796,7 @@ const yt = (a, o) => {
|
|
|
796
796
|
default: de(() => {
|
|
797
797
|
var m;
|
|
798
798
|
return [
|
|
799
|
-
|
|
799
|
+
Q(j(cs), {
|
|
800
800
|
"config-options": e.value,
|
|
801
801
|
"document-server-url": ((m = a.onlyOfficeConfig) == null ? void 0 : m.serverUrl) || a.onlyofficeServer
|
|
802
802
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -812,7 +812,7 @@ const yt = (a, o) => {
|
|
|
812
812
|
};
|
|
813
813
|
}
|
|
814
814
|
});
|
|
815
|
-
const zr =
|
|
815
|
+
const zr = De(Ur), Vr = {
|
|
816
816
|
key: 0,
|
|
817
817
|
class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
|
|
818
818
|
}, jr = {
|
|
@@ -869,6 +869,7 @@ const zr = Re(Ur), Vr = {
|
|
|
869
869
|
}
|
|
870
870
|
r.value.rotate && i.push(`rotate(${r.value.rotate % 360}deg)`);
|
|
871
871
|
const n = {
|
|
872
|
+
pointerEvents: r.value.disabled ? "none" : "auto",
|
|
872
873
|
...r.value.color && { color: r.value.color },
|
|
873
874
|
...r.value.size && { fontSize: typeof r.value.size == "number" ? `${r.value.size}px` : r.value.size },
|
|
874
875
|
...i.length && { transform: i.join(" ") },
|
|
@@ -882,8 +883,8 @@ const zr = Re(Ur), Vr = {
|
|
|
882
883
|
});
|
|
883
884
|
return (i, n) => {
|
|
884
885
|
const s = $e("el-tooltip"), l = $e("el-button");
|
|
885
|
-
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (
|
|
886
|
-
r.value.notip || !r.value.title ? (
|
|
886
|
+
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (L(), N("span", Vr, [
|
|
887
|
+
r.value.notip || !r.value.title ? (L(), N(
|
|
887
888
|
"i",
|
|
888
889
|
{
|
|
889
890
|
key: 0,
|
|
@@ -904,7 +905,7 @@ const zr = Re(Ur), Vr = {
|
|
|
904
905
|
},
|
|
905
906
|
[
|
|
906
907
|
he(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
907
|
-
t.value === "iksig" ? (
|
|
908
|
+
t.value === "iksig" ? (L(), N(
|
|
908
909
|
"i",
|
|
909
910
|
{
|
|
910
911
|
key: 0,
|
|
@@ -914,15 +915,15 @@ const zr = Re(Ur), Vr = {
|
|
|
914
915
|
null,
|
|
915
916
|
6
|
|
916
917
|
/* CLASS, STYLE */
|
|
917
|
-
)) : t.value === "svg" ? (
|
|
918
|
+
)) : t.value === "svg" ? (L(), N("svg", jr, [
|
|
918
919
|
S("use", {
|
|
919
920
|
"xlink:href": `#${r.value.name}`
|
|
920
921
|
}, null, 8, Wr)
|
|
921
|
-
])) : t.value === "img" ? (
|
|
922
|
+
])) : t.value === "img" ? (L(), N("img", {
|
|
922
923
|
key: 2,
|
|
923
924
|
src: r.value.name,
|
|
924
925
|
class: "h-[1em] w-[1em]"
|
|
925
|
-
}, null, 8, Gr)) : (
|
|
926
|
+
}, null, 8, Gr)) : (L(), N(
|
|
926
927
|
"i",
|
|
927
928
|
{
|
|
928
929
|
key: 3,
|
|
@@ -936,7 +937,7 @@ const zr = Re(Ur), Vr = {
|
|
|
936
937
|
],
|
|
937
938
|
6
|
|
938
939
|
/* CLASS, STYLE */
|
|
939
|
-
)) : (
|
|
940
|
+
)) : (L(), we(s, {
|
|
940
941
|
key: 1,
|
|
941
942
|
content: r.value.title,
|
|
942
943
|
placement: "top"
|
|
@@ -960,7 +961,7 @@ const zr = Re(Ur), Vr = {
|
|
|
960
961
|
style: oe(e.value)
|
|
961
962
|
},
|
|
962
963
|
[
|
|
963
|
-
t.value === "iksig" ? (
|
|
964
|
+
t.value === "iksig" ? (L(), N(
|
|
964
965
|
"i",
|
|
965
966
|
{
|
|
966
967
|
key: 0,
|
|
@@ -970,15 +971,15 @@ const zr = Re(Ur), Vr = {
|
|
|
970
971
|
null,
|
|
971
972
|
6
|
|
972
973
|
/* CLASS, STYLE */
|
|
973
|
-
)) : t.value === "svg" ? (
|
|
974
|
+
)) : t.value === "svg" ? (L(), N("svg", Kr, [
|
|
974
975
|
S("use", {
|
|
975
976
|
"xlink:href": `#${r.value.name}`
|
|
976
977
|
}, null, 8, $r)
|
|
977
|
-
])) : t.value === "img" ? (
|
|
978
|
+
])) : t.value === "img" ? (L(), N("img", {
|
|
978
979
|
key: 2,
|
|
979
980
|
src: r.value.name,
|
|
980
981
|
class: "h-[1em] w-[1em]"
|
|
981
|
-
}, null, 8, Yr)) : (
|
|
982
|
+
}, null, 8, Yr)) : (L(), N(
|
|
982
983
|
"i",
|
|
983
984
|
{
|
|
984
985
|
key: 3,
|
|
@@ -997,7 +998,7 @@ const zr = Re(Ur), Vr = {
|
|
|
997
998
|
_: 1
|
|
998
999
|
/* STABLE */
|
|
999
1000
|
}, 8, ["content"]))
|
|
1000
|
-
])) : (
|
|
1001
|
+
])) : (L(), we(l, {
|
|
1001
1002
|
key: 1,
|
|
1002
1003
|
type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
|
|
1003
1004
|
}, {
|
|
@@ -1014,10 +1015,7 @@ const zr = Re(Ur), Vr = {
|
|
|
1014
1015
|
};
|
|
1015
1016
|
}
|
|
1016
1017
|
});
|
|
1017
|
-
const qr = /* @__PURE__ */ yt(Xr, [["__scopeId", "data-v-
|
|
1018
|
-
key: 0,
|
|
1019
|
-
class: "exit-main-page-maximize"
|
|
1020
|
-
}, Jr = /* @__PURE__ */ le({
|
|
1018
|
+
const qr = /* @__PURE__ */ yt(Xr, [["__scopeId", "data-v-52806adf"]]), je = De(qr), Zr = /* @__PURE__ */ le({
|
|
1021
1019
|
__name: "CloseIcon",
|
|
1022
1020
|
props: {
|
|
1023
1021
|
showBg: {
|
|
@@ -1030,25 +1028,15 @@ const qr = /* @__PURE__ */ yt(Xr, [["__scopeId", "data-v-a7ec508a"]]), Le = Re(q
|
|
|
1030
1028
|
}
|
|
1031
1029
|
},
|
|
1032
1030
|
setup(a) {
|
|
1033
|
-
return (o, r) => (
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
error: ""
|
|
1040
|
-
})
|
|
1041
|
-
])) : (A(), we(V(Le), {
|
|
1042
|
-
key: 1,
|
|
1043
|
-
error: "",
|
|
1044
|
-
name: "iksvg_guanbidanchuang",
|
|
1045
|
-
title: "关闭",
|
|
1046
|
-
size: 20
|
|
1047
|
-
}))
|
|
1048
|
-
]));
|
|
1031
|
+
return (o, r) => (L(), we(j(je), {
|
|
1032
|
+
error: "",
|
|
1033
|
+
name: "iksvg_guanbidanchuang",
|
|
1034
|
+
title: "关闭",
|
|
1035
|
+
size: 20
|
|
1036
|
+
}));
|
|
1049
1037
|
}
|
|
1050
1038
|
});
|
|
1051
|
-
const
|
|
1039
|
+
const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-e27fb022"]]), Qr = { class: "base-header" }, es = /* @__PURE__ */ le({
|
|
1052
1040
|
__name: "IkBaseDialog",
|
|
1053
1041
|
props: /* @__PURE__ */ at({
|
|
1054
1042
|
title: { default: "" },
|
|
@@ -1073,7 +1061,7 @@ const Qr = /* @__PURE__ */ yt(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
|
|
|
1073
1061
|
t.value = !t.value;
|
|
1074
1062
|
}, i = le({
|
|
1075
1063
|
setup() {
|
|
1076
|
-
return () => wn(
|
|
1064
|
+
return () => wn(Jr, {
|
|
1077
1065
|
showBg: o.showCloseBg,
|
|
1078
1066
|
fullscreen: o.fullscreen
|
|
1079
1067
|
});
|
|
@@ -1081,11 +1069,11 @@ const Qr = /* @__PURE__ */ yt(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
|
|
|
1081
1069
|
});
|
|
1082
1070
|
return (n, s) => {
|
|
1083
1071
|
const l = $e("el-dialog");
|
|
1084
|
-
return
|
|
1072
|
+
return L(), we(l, bn({
|
|
1085
1073
|
modelValue: r.value,
|
|
1086
1074
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
|
|
1087
1075
|
}, n.$attrs, {
|
|
1088
|
-
"close-icon":
|
|
1076
|
+
"close-icon": j(i),
|
|
1089
1077
|
class: `ik-base-dialog ${n.noHeader ? "no-header" : ""} ${n.noFooter ? "no-footer" : ""}`,
|
|
1090
1078
|
fullscreen: t.value,
|
|
1091
1079
|
"modal-class": "baseDialog"
|
|
@@ -1100,7 +1088,7 @@ const Qr = /* @__PURE__ */ yt(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
|
|
|
1100
1088
|
])
|
|
1101
1089
|
]),
|
|
1102
1090
|
header: de(() => [
|
|
1103
|
-
S("div",
|
|
1091
|
+
S("div", Qr, [
|
|
1104
1092
|
Ae(n.$slots, "header", {}, () => [
|
|
1105
1093
|
Bt(
|
|
1106
1094
|
Ge(n.title),
|
|
@@ -1109,7 +1097,7 @@ const Qr = /* @__PURE__ */ yt(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
|
|
|
1109
1097
|
)
|
|
1110
1098
|
])
|
|
1111
1099
|
]),
|
|
1112
|
-
n.$attrs.showClose ? (
|
|
1100
|
+
n.$attrs.showClose ? (L(), we(j(je), {
|
|
1113
1101
|
key: 0,
|
|
1114
1102
|
onClick: e,
|
|
1115
1103
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
@@ -1134,12 +1122,12 @@ const Qr = /* @__PURE__ */ yt(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
|
|
|
1134
1122
|
};
|
|
1135
1123
|
}
|
|
1136
1124
|
});
|
|
1137
|
-
const
|
|
1138
|
-
var
|
|
1125
|
+
const ts = De(es);
|
|
1126
|
+
var is = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1139
1127
|
function $t(a) {
|
|
1140
1128
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1141
1129
|
}
|
|
1142
|
-
function
|
|
1130
|
+
function ns(a, o, r, t) {
|
|
1143
1131
|
function e(i) {
|
|
1144
1132
|
return i instanceof r ? i : new r(function(n) {
|
|
1145
1133
|
n(i);
|
|
@@ -1166,7 +1154,7 @@ function rs(a, o, r, t) {
|
|
|
1166
1154
|
u((t = t.apply(a, o || [])).next());
|
|
1167
1155
|
});
|
|
1168
1156
|
}
|
|
1169
|
-
function
|
|
1157
|
+
function rs(a, o) {
|
|
1170
1158
|
var r = { label: 0, sent: function() {
|
|
1171
1159
|
if (i[0] & 1)
|
|
1172
1160
|
throw i[1];
|
|
@@ -1231,9 +1219,9 @@ function ss(a, o) {
|
|
|
1231
1219
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
1232
1220
|
}
|
|
1233
1221
|
}
|
|
1234
|
-
var
|
|
1235
|
-
return
|
|
1236
|
-
return
|
|
1222
|
+
var ss = function(a, o) {
|
|
1223
|
+
return ns(void 0, void 0, void 0, function() {
|
|
1224
|
+
return rs(this, function(r) {
|
|
1237
1225
|
return [2, new Promise(function(t, e) {
|
|
1238
1226
|
try {
|
|
1239
1227
|
if (window.DocsAPI)
|
|
@@ -1321,7 +1309,7 @@ var os = function(a, o) {
|
|
|
1321
1309
|
var a = this, o = this.documentServerUrl;
|
|
1322
1310
|
o.endsWith("/") || (o += "/");
|
|
1323
1311
|
var r = "".concat(o, "web-apps/apps/api/documents/api.js");
|
|
1324
|
-
|
|
1312
|
+
ss(r, "onlyoffice-api-script").then(function() {
|
|
1325
1313
|
return a.onLoad();
|
|
1326
1314
|
}).catch(function() {
|
|
1327
1315
|
a.onError(-2);
|
|
@@ -1435,13 +1423,13 @@ var os = function(a, o) {
|
|
|
1435
1423
|
}
|
|
1436
1424
|
}
|
|
1437
1425
|
});
|
|
1438
|
-
const
|
|
1439
|
-
function
|
|
1440
|
-
return
|
|
1426
|
+
const os = ["id"];
|
|
1427
|
+
function as(a, o, r, t, e, i) {
|
|
1428
|
+
return L(), N("div", { id: a.id }, null, 8, os);
|
|
1441
1429
|
}
|
|
1442
|
-
Yt.render =
|
|
1430
|
+
Yt.render = as;
|
|
1443
1431
|
Yt.__file = "src/components/DocumentEditor.vue";
|
|
1444
|
-
const
|
|
1432
|
+
const ls = /* @__PURE__ */ le({
|
|
1445
1433
|
__name: "IkOnlyOffice",
|
|
1446
1434
|
props: {
|
|
1447
1435
|
// 文件服务器的服务的地址
|
|
@@ -1470,13 +1458,13 @@ const us = /* @__PURE__ */ le({
|
|
|
1470
1458
|
}), t = () => {
|
|
1471
1459
|
console.info("文档加载完成", o.configOptions);
|
|
1472
1460
|
};
|
|
1473
|
-
return (e, i) => (
|
|
1461
|
+
return (e, i) => (L(), N(
|
|
1474
1462
|
"div",
|
|
1475
1463
|
{
|
|
1476
1464
|
style: oe({ height: o.officeHeight })
|
|
1477
1465
|
},
|
|
1478
1466
|
[
|
|
1479
|
-
|
|
1467
|
+
Q(j(Yt), {
|
|
1480
1468
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1481
1469
|
ref: "editorRef",
|
|
1482
1470
|
"document-server-url": a.documentServerUrl,
|
|
@@ -1489,7 +1477,7 @@ const us = /* @__PURE__ */ le({
|
|
|
1489
1477
|
));
|
|
1490
1478
|
}
|
|
1491
1479
|
});
|
|
1492
|
-
const
|
|
1480
|
+
const us = /* @__PURE__ */ yt(ls, [["__scopeId", "data-v-98d51ef9"]]), cs = De(us);
|
|
1493
1481
|
function fi(a, o) {
|
|
1494
1482
|
var r = Object.keys(a);
|
|
1495
1483
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1565,7 +1553,7 @@ function Ut(a, o) {
|
|
|
1565
1553
|
return t.__proto__ = e, t;
|
|
1566
1554
|
}, Ut(a, o);
|
|
1567
1555
|
}
|
|
1568
|
-
function
|
|
1556
|
+
function fs() {
|
|
1569
1557
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1570
1558
|
return !1;
|
|
1571
1559
|
if (typeof Proxy == "function")
|
|
@@ -1590,7 +1578,7 @@ function Xt(a, o) {
|
|
|
1590
1578
|
return v(a);
|
|
1591
1579
|
}
|
|
1592
1580
|
function P(a) {
|
|
1593
|
-
var o =
|
|
1581
|
+
var o = fs();
|
|
1594
1582
|
return function() {
|
|
1595
1583
|
var t = I(a), e;
|
|
1596
1584
|
if (o) {
|
|
@@ -1601,32 +1589,32 @@ function P(a) {
|
|
|
1601
1589
|
return Xt(this, e);
|
|
1602
1590
|
};
|
|
1603
1591
|
}
|
|
1604
|
-
function
|
|
1592
|
+
function hs(a, o) {
|
|
1605
1593
|
for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = I(a), a !== null); )
|
|
1606
1594
|
;
|
|
1607
1595
|
return a;
|
|
1608
1596
|
}
|
|
1609
|
-
function
|
|
1610
|
-
return typeof Reflect < "u" && Reflect.get ?
|
|
1611
|
-
var e =
|
|
1597
|
+
function A() {
|
|
1598
|
+
return typeof Reflect < "u" && Reflect.get ? A = Reflect.get.bind() : A = function(o, r, t) {
|
|
1599
|
+
var e = hs(o, r);
|
|
1612
1600
|
if (e) {
|
|
1613
1601
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
1614
1602
|
return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
|
|
1615
1603
|
}
|
|
1616
|
-
},
|
|
1604
|
+
}, A.apply(this, arguments);
|
|
1617
1605
|
}
|
|
1618
1606
|
function ae(a) {
|
|
1619
|
-
return
|
|
1607
|
+
return ds(a) || gs(a) || ps(a) || vs();
|
|
1620
1608
|
}
|
|
1621
|
-
function
|
|
1609
|
+
function ds(a) {
|
|
1622
1610
|
if (Array.isArray(a))
|
|
1623
1611
|
return zt(a);
|
|
1624
1612
|
}
|
|
1625
|
-
function
|
|
1613
|
+
function gs(a) {
|
|
1626
1614
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
1627
1615
|
return Array.from(a);
|
|
1628
1616
|
}
|
|
1629
|
-
function
|
|
1617
|
+
function ps(a, o) {
|
|
1630
1618
|
if (a) {
|
|
1631
1619
|
if (typeof a == "string")
|
|
1632
1620
|
return zt(a, o);
|
|
@@ -1643,11 +1631,11 @@ function zt(a, o) {
|
|
|
1643
1631
|
t[r] = a[r];
|
|
1644
1632
|
return t;
|
|
1645
1633
|
}
|
|
1646
|
-
function
|
|
1634
|
+
function vs() {
|
|
1647
1635
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1648
1636
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1649
1637
|
}
|
|
1650
|
-
function
|
|
1638
|
+
function ms(a, o) {
|
|
1651
1639
|
if (typeof a != "object" || a === null)
|
|
1652
1640
|
return a;
|
|
1653
1641
|
var r = a[Symbol.toPrimitive];
|
|
@@ -1660,7 +1648,7 @@ function ys(a, o) {
|
|
|
1660
1648
|
return (o === "string" ? String : Number)(a);
|
|
1661
1649
|
}
|
|
1662
1650
|
function Wi(a) {
|
|
1663
|
-
var o =
|
|
1651
|
+
var o = ms(a, "string");
|
|
1664
1652
|
return typeof o == "symbol" ? o : String(o);
|
|
1665
1653
|
}
|
|
1666
1654
|
var Gi = { exports: {} };
|
|
@@ -1727,7 +1715,7 @@ var Gi = { exports: {} };
|
|
|
1727
1715
|
b[w - 1] = arguments[w];
|
|
1728
1716
|
_.fn.apply(_.context, b);
|
|
1729
1717
|
} else {
|
|
1730
|
-
var B = _.length,
|
|
1718
|
+
var B = _.length, F;
|
|
1731
1719
|
for (w = 0; w < B; w++)
|
|
1732
1720
|
switch (_[w].once && this.removeListener(u, _[w].fn, void 0, !0), C) {
|
|
1733
1721
|
case 1:
|
|
@@ -1744,8 +1732,8 @@ var Gi = { exports: {} };
|
|
|
1744
1732
|
break;
|
|
1745
1733
|
default:
|
|
1746
1734
|
if (!b)
|
|
1747
|
-
for (
|
|
1748
|
-
b[
|
|
1735
|
+
for (F = 1, b = new Array(C - 1); F < C; F++)
|
|
1736
|
+
b[F - 1] = arguments[F];
|
|
1749
1737
|
_[w].fn.apply(_[w].context, b);
|
|
1750
1738
|
}
|
|
1751
1739
|
}
|
|
@@ -1776,13 +1764,13 @@ var Gi = { exports: {} };
|
|
|
1776
1764
|
})(Gi);
|
|
1777
1765
|
var Ki = Gi.exports;
|
|
1778
1766
|
const $i = /* @__PURE__ */ $t(Ki);
|
|
1779
|
-
var
|
|
1767
|
+
var ys = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Tt = {
|
|
1780
1768
|
info: "color: #525252; background-color: #90ee90;",
|
|
1781
1769
|
error: "color: #525252; background-color: red;",
|
|
1782
1770
|
warn: "color: #525252; background-color: yellow; "
|
|
1783
1771
|
}, Et = "%c[xgplayer]", O = {
|
|
1784
1772
|
config: {
|
|
1785
|
-
debug:
|
|
1773
|
+
debug: ys ? 3 : 0
|
|
1786
1774
|
},
|
|
1787
1775
|
logInfo: function(o) {
|
|
1788
1776
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
@@ -1803,10 +1791,10 @@ var _s = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
1803
1791
|
}
|
|
1804
1792
|
}
|
|
1805
1793
|
};
|
|
1806
|
-
function
|
|
1794
|
+
function _s(a) {
|
|
1807
1795
|
a.logInfo = O.logInfo.bind(a), a.logWarn = O.logWarn.bind(a), a.logError = O.logError.bind(a);
|
|
1808
1796
|
}
|
|
1809
|
-
var
|
|
1797
|
+
var Cs = /* @__PURE__ */ function() {
|
|
1810
1798
|
function a(o) {
|
|
1811
1799
|
T(this, a), this.bufferedList = o;
|
|
1812
1800
|
}
|
|
@@ -2052,7 +2040,7 @@ f.setStyleFromCsstext = function(a, o) {
|
|
|
2052
2040
|
a.style[t] = o[t];
|
|
2053
2041
|
});
|
|
2054
2042
|
};
|
|
2055
|
-
function
|
|
2043
|
+
function ks(a, o) {
|
|
2056
2044
|
for (var r = 0, t = o.length; r < t; r++)
|
|
2057
2045
|
if (a.indexOf(o[r]) > -1)
|
|
2058
2046
|
return !0;
|
|
@@ -2066,7 +2054,7 @@ f.filterStyleFromText = function(a) {
|
|
|
2066
2054
|
return t.map(function(n) {
|
|
2067
2055
|
if (n) {
|
|
2068
2056
|
var s = n.split(":");
|
|
2069
|
-
s.length > 1 && (
|
|
2057
|
+
s.length > 1 && (ks(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
|
|
2070
2058
|
}
|
|
2071
2059
|
}), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
|
|
2072
2060
|
a.style[n] = i[n];
|
|
@@ -2131,7 +2119,7 @@ f.getBuffered2 = function(a) {
|
|
|
2131
2119
|
}
|
|
2132
2120
|
else
|
|
2133
2121
|
e = r;
|
|
2134
|
-
return new
|
|
2122
|
+
return new Cs(e);
|
|
2135
2123
|
};
|
|
2136
2124
|
f.getEventPos = function(a) {
|
|
2137
2125
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
@@ -2255,17 +2243,17 @@ function Yi(a) {
|
|
|
2255
2243
|
var o = X(a);
|
|
2256
2244
|
return a !== null && (o === "object" || o === "function");
|
|
2257
2245
|
}
|
|
2258
|
-
function
|
|
2246
|
+
function ws(a, o, r) {
|
|
2259
2247
|
var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, g = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
|
|
2260
2248
|
if (typeof a != "function")
|
|
2261
2249
|
throw new TypeError("Expected a function");
|
|
2262
2250
|
o = +o || 0, Yi(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, o) : i, d = "trailing" in r ? !!r.trailing : d);
|
|
2263
2251
|
function p(H) {
|
|
2264
|
-
var
|
|
2265
|
-
return t = e = void 0, u = H, n = a.apply(re,
|
|
2252
|
+
var J = t, re = e;
|
|
2253
|
+
return t = e = void 0, u = H, n = a.apply(re, J), n;
|
|
2266
2254
|
}
|
|
2267
|
-
function m(H,
|
|
2268
|
-
return g ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(H)) : setTimeout(H,
|
|
2255
|
+
function m(H, J) {
|
|
2256
|
+
return g ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(H)) : setTimeout(H, J);
|
|
2269
2257
|
}
|
|
2270
2258
|
function _(H) {
|
|
2271
2259
|
if (g)
|
|
@@ -2276,35 +2264,35 @@ function bs(a, o, r) {
|
|
|
2276
2264
|
return u = H, s = m(B, o), c ? p(H) : n;
|
|
2277
2265
|
}
|
|
2278
2266
|
function b(H) {
|
|
2279
|
-
var
|
|
2267
|
+
var J = H - l, re = H - u, se = o - J;
|
|
2280
2268
|
return h ? Math.min(se, i - re) : se;
|
|
2281
2269
|
}
|
|
2282
2270
|
function w(H) {
|
|
2283
|
-
var
|
|
2284
|
-
return l === void 0 ||
|
|
2271
|
+
var J = H - l, re = H - u;
|
|
2272
|
+
return l === void 0 || J >= o || J < 0 || h && re >= i;
|
|
2285
2273
|
}
|
|
2286
2274
|
function B() {
|
|
2287
2275
|
var H = Date.now();
|
|
2288
2276
|
if (w(H))
|
|
2289
|
-
return
|
|
2277
|
+
return F(H);
|
|
2290
2278
|
s = m(B, b(H));
|
|
2291
2279
|
}
|
|
2292
|
-
function
|
|
2280
|
+
function F(H) {
|
|
2293
2281
|
return s = void 0, d && t ? p(H) : (t = e = void 0, n);
|
|
2294
2282
|
}
|
|
2295
2283
|
function z() {
|
|
2296
2284
|
s !== void 0 && _(s), u = 0, t = l = e = s = void 0;
|
|
2297
2285
|
}
|
|
2298
2286
|
function D() {
|
|
2299
|
-
return s === void 0 ? n :
|
|
2287
|
+
return s === void 0 ? n : F(Date.now());
|
|
2300
2288
|
}
|
|
2301
2289
|
function q() {
|
|
2302
2290
|
return s !== void 0;
|
|
2303
2291
|
}
|
|
2304
2292
|
function G() {
|
|
2305
|
-
for (var H = Date.now(),
|
|
2293
|
+
for (var H = Date.now(), J = w(H), re = arguments.length, se = new Array(re), xe = 0; xe < re; xe++)
|
|
2306
2294
|
se[xe] = arguments[xe];
|
|
2307
|
-
if (t = se, e = this, l = H,
|
|
2295
|
+
if (t = se, e = this, l = H, J) {
|
|
2308
2296
|
if (s === void 0)
|
|
2309
2297
|
return C(l);
|
|
2310
2298
|
if (h)
|
|
@@ -2314,21 +2302,21 @@ function bs(a, o, r) {
|
|
|
2314
2302
|
}
|
|
2315
2303
|
return G.cancel = z, G.flush = D, G.pending = q, G;
|
|
2316
2304
|
}
|
|
2317
|
-
function
|
|
2305
|
+
function bs(a, o, r) {
|
|
2318
2306
|
var t = !0, e = !0;
|
|
2319
2307
|
if (typeof a != "function")
|
|
2320
2308
|
throw new TypeError("Expected a function");
|
|
2321
|
-
return Yi(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e),
|
|
2309
|
+
return Yi(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), ws(a, o, {
|
|
2322
2310
|
leading: t,
|
|
2323
2311
|
trailing: e,
|
|
2324
2312
|
maxWait: o
|
|
2325
2313
|
});
|
|
2326
2314
|
}
|
|
2327
|
-
function
|
|
2315
|
+
function Ts() {
|
|
2328
2316
|
var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
|
|
2329
2317
|
return a === "zh-cn" && (a = "zh"), a;
|
|
2330
2318
|
}
|
|
2331
|
-
function
|
|
2319
|
+
function Es(a, o, r) {
|
|
2332
2320
|
if (a) {
|
|
2333
2321
|
var t = a.getAttribute(r);
|
|
2334
2322
|
return !!(t && t === o && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
|
|
@@ -2337,7 +2325,7 @@ function Ss(a, o, r) {
|
|
|
2337
2325
|
var di = {
|
|
2338
2326
|
android: /(Android)\s([\d.]+)/,
|
|
2339
2327
|
ios: /(Version)\/([\d.]+)/
|
|
2340
|
-
},
|
|
2328
|
+
}, Ss = ["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"], R = {
|
|
2341
2329
|
get device() {
|
|
2342
2330
|
var a = R.os;
|
|
2343
2331
|
return a.isPc ? "pc" : "mobile";
|
|
@@ -2400,7 +2388,7 @@ var di = {
|
|
|
2400
2388
|
if (this.supportResult)
|
|
2401
2389
|
return this.supportResult;
|
|
2402
2390
|
var r = document.createElement("video");
|
|
2403
|
-
return typeof r.canPlayType == "function" &&
|
|
2391
|
+
return typeof r.canPlayType == "function" && Ss.map(function(t) {
|
|
2404
2392
|
r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (o.isSupport = !0, o.mime += "||".concat(t));
|
|
2405
2393
|
}), this.supportResult = o, r = null, o;
|
|
2406
2394
|
},
|
|
@@ -2495,36 +2483,36 @@ var di = {
|
|
|
2495
2483
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
2496
2484
|
}
|
|
2497
2485
|
}
|
|
2498
|
-
), ne = "play", qt = "playing",
|
|
2486
|
+
), ne = "play", qt = "playing", Re = "ended", Ye = "pause", tt = "error", _t = "seeking", me = "seeked", ie = "timeupdate", it = "waiting", ve = "canplay", xs = "canplaythrough", Ee = "durationchange", Xi = "volumechange", ye = "loadeddata", Ps = "loadedmetadata", qi = "ratechange", Zi = "progress", Zt = "loadstart", Oe = "emptied", Is = "stalled", As = "suspend", Ls = "abort", Ds = "bufferedChange", Jt = "focus", Ji = "blur", Qt = "ready", Qi = "urlNull", Le = "autoplay_started", ei = "autoplay_was_prevented", Ct = "complete", ut = "replay", ti = "destroy", kt = "urlchange", jt = "download_speed_change", en = "leaveplayer", tn = "enterplayer", nn = "loading", ge = "fullscreen_change", ct = "cssFullscreen_change", ft = "mini_state_change", ii = "definition_change", Rs = "before_definition_change", Wt = "after_definition_change", Os = "SEI_PARSED", Fs = "retry", be = "video_resize", Gt = "pip_change", rn = "rotate", sn = "screenShot", ht = "playnext", on = "shortcut", an = "xglog", dt = "user_action", wt = "reset", ln = "source_error", un = "source_success", Ms = "switch_subtitle", cn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], fn = {
|
|
2499
2487
|
STATS_INFO: "stats_info",
|
|
2500
2488
|
STATS_DOWNLOAD: "stats_download",
|
|
2501
2489
|
STATS_RESET: "stats_reset"
|
|
2502
2490
|
}, hn = "fps_stuck";
|
|
2503
|
-
const
|
|
2491
|
+
const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2504
2492
|
__proto__: null,
|
|
2505
|
-
ABORT:
|
|
2493
|
+
ABORT: Ls,
|
|
2506
2494
|
AFTER_DEFINITION_CHANGE: Wt,
|
|
2507
2495
|
AUTOPLAY_PREVENTED: ei,
|
|
2508
|
-
AUTOPLAY_STARTED:
|
|
2509
|
-
BEFORE_DEFINITION_CHANGE:
|
|
2510
|
-
BUFFER_CHANGE:
|
|
2496
|
+
AUTOPLAY_STARTED: Le,
|
|
2497
|
+
BEFORE_DEFINITION_CHANGE: Rs,
|
|
2498
|
+
BUFFER_CHANGE: Ds,
|
|
2511
2499
|
CANPLAY: ve,
|
|
2512
|
-
CANPLAY_THROUGH:
|
|
2500
|
+
CANPLAY_THROUGH: xs,
|
|
2513
2501
|
COMPLETE: Ct,
|
|
2514
2502
|
CSS_FULLSCREEN_CHANGE: ct,
|
|
2515
2503
|
DEFINITION_CHANGE: ii,
|
|
2516
2504
|
DESTROY: ti,
|
|
2517
2505
|
DOWNLOAD_SPEED_CHANGE: jt,
|
|
2518
2506
|
DURATION_CHANGE: Ee,
|
|
2519
|
-
EMPTIED:
|
|
2520
|
-
ENDED:
|
|
2507
|
+
EMPTIED: Oe,
|
|
2508
|
+
ENDED: Re,
|
|
2521
2509
|
ENTER_PLAYER: tn,
|
|
2522
2510
|
ERROR: tt,
|
|
2523
2511
|
FPS_STUCK: hn,
|
|
2524
2512
|
FULLSCREEN_CHANGE: ge,
|
|
2525
2513
|
LEAVE_PLAYER: en,
|
|
2526
2514
|
LOADED_DATA: ye,
|
|
2527
|
-
LOADED_METADATA:
|
|
2515
|
+
LOADED_METADATA: Ps,
|
|
2528
2516
|
LOADING: nn,
|
|
2529
2517
|
LOAD_START: Zt,
|
|
2530
2518
|
MINI_STATE_CHANGE: ft,
|
|
@@ -2540,19 +2528,19 @@ const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2540
2528
|
READY: Qt,
|
|
2541
2529
|
REPLAY: ut,
|
|
2542
2530
|
RESET: wt,
|
|
2543
|
-
RETRY:
|
|
2531
|
+
RETRY: Fs,
|
|
2544
2532
|
ROTATE: rn,
|
|
2545
2533
|
SCREEN_SHOT: sn,
|
|
2546
2534
|
SEEKED: me,
|
|
2547
2535
|
SEEKING: _t,
|
|
2548
|
-
SEI_PARSED:
|
|
2536
|
+
SEI_PARSED: Os,
|
|
2549
2537
|
SHORTCUT: on,
|
|
2550
2538
|
SOURCE_ERROR: ln,
|
|
2551
2539
|
SOURCE_SUCCESS: un,
|
|
2552
|
-
STALLED:
|
|
2540
|
+
STALLED: Is,
|
|
2553
2541
|
STATS_EVENTS: fn,
|
|
2554
|
-
SUSPEND:
|
|
2555
|
-
SWITCH_SUBTITLE:
|
|
2542
|
+
SUSPEND: As,
|
|
2543
|
+
SWITCH_SUBTITLE: Ms,
|
|
2556
2544
|
TIME_UPDATE: ie,
|
|
2557
2545
|
URL_CHANGE: kt,
|
|
2558
2546
|
URL_NULL: Qi,
|
|
@@ -2566,7 +2554,7 @@ const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2566
2554
|
function St(a, o) {
|
|
2567
2555
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
|
|
2568
2556
|
}
|
|
2569
|
-
function
|
|
2557
|
+
function Bs(a, o) {
|
|
2570
2558
|
return function(r, t) {
|
|
2571
2559
|
var e = {
|
|
2572
2560
|
player: o,
|
|
@@ -2601,7 +2589,7 @@ function Hs(a, o) {
|
|
|
2601
2589
|
St.call(o, a, e);
|
|
2602
2590
|
};
|
|
2603
2591
|
}
|
|
2604
|
-
var
|
|
2592
|
+
var Hs = /* @__PURE__ */ function(a) {
|
|
2605
2593
|
x(r, a);
|
|
2606
2594
|
var o = P(r);
|
|
2607
2595
|
function r(t) {
|
|
@@ -2645,7 +2633,7 @@ var Us = /* @__PURE__ */ function(a) {
|
|
|
2645
2633
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
2646
2634
|
this._evHandlers || (this._evHandlers = cn.map(function(n) {
|
|
2647
2635
|
var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
2648
|
-
return typeof e[s] == "function" && e.on(n, e[s]), y({}, n,
|
|
2636
|
+
return typeof e[s] == "function" && e.on(n, e[s]), y({}, n, Bs(n, e));
|
|
2649
2637
|
})), this._evHandlers.forEach(function(n) {
|
|
2650
2638
|
var s = Object.keys(n)[0];
|
|
2651
2639
|
i.addEventListener(s, n[s], !1);
|
|
@@ -2990,36 +2978,36 @@ var Us = /* @__PURE__ */ function(a) {
|
|
|
2990
2978
|
value: function(e, i) {
|
|
2991
2979
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
2992
2980
|
l[u - 2] = arguments[u];
|
|
2993
|
-
(n =
|
|
2981
|
+
(n = A(I(r.prototype), "emit", this)).call.apply(n, [this, e, i].concat(l));
|
|
2994
2982
|
}
|
|
2995
2983
|
}, {
|
|
2996
2984
|
key: "on",
|
|
2997
2985
|
value: function(e, i) {
|
|
2998
2986
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
2999
2987
|
l[u - 2] = arguments[u];
|
|
3000
|
-
(n =
|
|
2988
|
+
(n = A(I(r.prototype), "on", this)).call.apply(n, [this, e, i].concat(l));
|
|
3001
2989
|
}
|
|
3002
2990
|
}, {
|
|
3003
2991
|
key: "once",
|
|
3004
2992
|
value: function(e, i) {
|
|
3005
2993
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
3006
2994
|
l[u - 2] = arguments[u];
|
|
3007
|
-
(n =
|
|
2995
|
+
(n = A(I(r.prototype), "once", this)).call.apply(n, [this, e, i].concat(l));
|
|
3008
2996
|
}
|
|
3009
2997
|
}, {
|
|
3010
2998
|
key: "off",
|
|
3011
2999
|
value: function(e, i) {
|
|
3012
3000
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
3013
3001
|
l[u - 2] = arguments[u];
|
|
3014
|
-
(n =
|
|
3002
|
+
(n = A(I(r.prototype), "off", this)).call.apply(n, [this, e, i].concat(l));
|
|
3015
3003
|
}
|
|
3016
3004
|
}, {
|
|
3017
3005
|
key: "offAll",
|
|
3018
3006
|
value: function() {
|
|
3019
|
-
|
|
3007
|
+
A(I(r.prototype), "removeAllListeners", this).call(this);
|
|
3020
3008
|
}
|
|
3021
3009
|
}]), r;
|
|
3022
|
-
}($i),
|
|
3010
|
+
}($i), Us = /* @__PURE__ */ function() {
|
|
3023
3011
|
function a() {
|
|
3024
3012
|
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
3025
3013
|
name: "xgplayer",
|
|
@@ -3383,43 +3371,43 @@ var Te = /* @__PURE__ */ function() {
|
|
|
3383
3371
|
return "pluginName";
|
|
3384
3372
|
}
|
|
3385
3373
|
}]), a;
|
|
3386
|
-
}(),
|
|
3374
|
+
}(), zs = 9;
|
|
3387
3375
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
3388
|
-
var
|
|
3389
|
-
|
|
3376
|
+
var Me = Element.prototype;
|
|
3377
|
+
Me.matches = Me.matchesSelector || Me.mozMatchesSelector || Me.msMatchesSelector || Me.oMatchesSelector || Me.webkitMatchesSelector;
|
|
3390
3378
|
}
|
|
3391
|
-
function
|
|
3392
|
-
for (; a && a.nodeType !==
|
|
3379
|
+
function Vs(a, o) {
|
|
3380
|
+
for (; a && a.nodeType !== zs; ) {
|
|
3393
3381
|
if (typeof a.matches == "function" && a.matches(o))
|
|
3394
3382
|
return a;
|
|
3395
3383
|
a = a.parentNode;
|
|
3396
3384
|
}
|
|
3397
3385
|
}
|
|
3398
|
-
var
|
|
3386
|
+
var js = Vs, Ws = js;
|
|
3399
3387
|
function Pt(a, o, r, t, e) {
|
|
3400
|
-
var i =
|
|
3388
|
+
var i = Ks.apply(this, arguments);
|
|
3401
3389
|
return a.addEventListener(r, i, e), {
|
|
3402
3390
|
destroy: function() {
|
|
3403
3391
|
a.removeEventListener(r, i, e);
|
|
3404
3392
|
}
|
|
3405
3393
|
};
|
|
3406
3394
|
}
|
|
3407
|
-
function
|
|
3395
|
+
function Gs(a, o, r, t, e) {
|
|
3408
3396
|
return typeof a.addEventListener == "function" ? Pt.apply(null, arguments) : typeof r == "function" ? Pt.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
|
|
3409
3397
|
return Pt(i, o, r, t, e);
|
|
3410
3398
|
}));
|
|
3411
3399
|
}
|
|
3412
|
-
function
|
|
3400
|
+
function Ks(a, o, r, t) {
|
|
3413
3401
|
return function(e) {
|
|
3414
|
-
e.delegateTarget =
|
|
3402
|
+
e.delegateTarget = Ws(e.target, o), e.delegateTarget && t.call(a, e);
|
|
3415
3403
|
};
|
|
3416
3404
|
}
|
|
3417
|
-
var
|
|
3418
|
-
const ki = /* @__PURE__ */ $t(
|
|
3419
|
-
var
|
|
3405
|
+
var $s = Gs;
|
|
3406
|
+
const ki = /* @__PURE__ */ $t($s);
|
|
3407
|
+
var Ys = {
|
|
3420
3408
|
CONTROLS: "controls",
|
|
3421
3409
|
ROOT: "root"
|
|
3422
|
-
},
|
|
3410
|
+
}, V = {
|
|
3423
3411
|
ROOT: "root",
|
|
3424
3412
|
ROOT_LEFT: "rootLeft",
|
|
3425
3413
|
ROOT_RIGHT: "rootRight",
|
|
@@ -3436,10 +3424,10 @@ var Xs = {
|
|
|
3436
3424
|
function It(a) {
|
|
3437
3425
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
3438
3426
|
}
|
|
3439
|
-
function
|
|
3427
|
+
function Xs(a, o) {
|
|
3440
3428
|
return X(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
|
|
3441
3429
|
}
|
|
3442
|
-
function
|
|
3430
|
+
function qs(a, o) {
|
|
3443
3431
|
return X(a) === "object" && a.attr && X(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
|
|
3444
3432
|
o[r] = a.attr[r];
|
|
3445
3433
|
}), o;
|
|
@@ -3462,14 +3450,14 @@ function bi(a, o) {
|
|
|
3462
3450
|
}
|
|
3463
3451
|
return typeof a == "string" ? f.createDomFromHtml(a, t, r) : (O.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
3464
3452
|
}
|
|
3465
|
-
function
|
|
3453
|
+
function Zs(a, o) {
|
|
3466
3454
|
var r = o.config.icons || o.playerConfig.icons;
|
|
3467
3455
|
Object.keys(a).map(function(t) {
|
|
3468
3456
|
var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
|
|
3469
|
-
r && r[t] && (i =
|
|
3457
|
+
r && r[t] && (i = Xs(r[t], i), n = qs(r[t], n), s = bi(r[t], t, i, n, o.pluginName)), !s && e && (s = bi(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
|
|
3470
3458
|
});
|
|
3471
3459
|
}
|
|
3472
|
-
function
|
|
3460
|
+
function Js(a, o) {
|
|
3473
3461
|
Object.keys(a).map(function(r) {
|
|
3474
3462
|
Object.defineProperty(o.langText, r, {
|
|
3475
3463
|
get: function() {
|
|
@@ -3489,13 +3477,13 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
3489
3477
|
return E(r, [{
|
|
3490
3478
|
key: "__init",
|
|
3491
3479
|
value: function(e) {
|
|
3492
|
-
if (
|
|
3480
|
+
if (A(I(r.prototype), "__init", this).call(this, e), !!e.root) {
|
|
3493
3481
|
var i = e.root, n = null;
|
|
3494
3482
|
this.icons = {}, this.root = null, this.parent = null;
|
|
3495
3483
|
var s = this.registerIcons() || {};
|
|
3496
|
-
|
|
3484
|
+
Zs(s, this), this.langText = {};
|
|
3497
3485
|
var l = this.registerLanguageTexts() || {};
|
|
3498
|
-
|
|
3486
|
+
Js(l, this);
|
|
3499
3487
|
var u = "";
|
|
3500
3488
|
try {
|
|
3501
3489
|
u = this.render();
|
|
@@ -3583,7 +3571,7 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
3583
3571
|
value: function(e) {
|
|
3584
3572
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "";
|
|
3585
3573
|
i.root = i.root || this.root;
|
|
3586
|
-
var s =
|
|
3574
|
+
var s = A(I(r.prototype), "registerPlugin", this).call(this, e, i, n);
|
|
3587
3575
|
return this._children.push(s), s;
|
|
3588
3576
|
}
|
|
3589
3577
|
}, {
|
|
@@ -3718,7 +3706,7 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
3718
3706
|
n.destroy();
|
|
3719
3707
|
}), this.__delegates = [], this._children instanceof Array && (this._children.map(function(n) {
|
|
3720
3708
|
i.unRegisterPlugin(n.pluginName);
|
|
3721
|
-
}), this._children = null), this.root && (this.root.hasOwnProperty("remove") ? this.root.remove() : this.root.parentNode && this.root.parentNode.removeChild(this.root)),
|
|
3709
|
+
}), this._children = null), this.root && (this.root.hasOwnProperty("remove") ? this.root.remove() : this.root.parentNode && this.root.parentNode.removeChild(this.root)), A(I(r.prototype), "__destroy", this).call(this), this.icons = {}, ["root", "parent"].map(function(n) {
|
|
3722
3710
|
e[n] = null;
|
|
3723
3711
|
});
|
|
3724
3712
|
}
|
|
@@ -3764,15 +3752,15 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
3764
3752
|
}, {
|
|
3765
3753
|
key: "ROOT_TYPES",
|
|
3766
3754
|
get: function() {
|
|
3767
|
-
return
|
|
3755
|
+
return Ys;
|
|
3768
3756
|
}
|
|
3769
3757
|
}, {
|
|
3770
3758
|
key: "POSITIONS",
|
|
3771
3759
|
get: function() {
|
|
3772
|
-
return
|
|
3760
|
+
return V;
|
|
3773
3761
|
}
|
|
3774
3762
|
}]), r;
|
|
3775
|
-
}(Te),
|
|
3763
|
+
}(Te), Qs = /* @__PURE__ */ function() {
|
|
3776
3764
|
function a() {
|
|
3777
3765
|
var o = this;
|
|
3778
3766
|
if (T(this, a), y(this, "__trigger", function(r) {
|
|
@@ -3782,7 +3770,7 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
3782
3770
|
o.__runHandler(r[e].target);
|
|
3783
3771
|
}), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
|
|
3784
3772
|
try {
|
|
3785
|
-
this.observer = new window.ResizeObserver(
|
|
3773
|
+
this.observer = new window.ResizeObserver(bs(this.__trigger, 100, {
|
|
3786
3774
|
trailing: !0
|
|
3787
3775
|
})), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
|
|
3788
3776
|
} catch (r) {
|
|
@@ -3837,17 +3825,17 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
3837
3825
|
}
|
|
3838
3826
|
}]), a;
|
|
3839
3827
|
}(), Je = null;
|
|
3840
|
-
function
|
|
3841
|
-
return Je || (Je = new
|
|
3828
|
+
function eo(a, o) {
|
|
3829
|
+
return Je || (Je = new Qs()), Je.addObserver(a, o), Je;
|
|
3842
3830
|
}
|
|
3843
|
-
function
|
|
3831
|
+
function to(a, o) {
|
|
3844
3832
|
Je.unObserver(a, o);
|
|
3845
3833
|
}
|
|
3846
3834
|
var K = {
|
|
3847
3835
|
pluginGroup: {},
|
|
3848
3836
|
init: function(o) {
|
|
3849
3837
|
var r = o._pluginInfoId;
|
|
3850
|
-
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver &&
|
|
3838
|
+
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && eo(o.root, function() {
|
|
3851
3839
|
o.resize();
|
|
3852
3840
|
}), this.pluginGroup[r] = {
|
|
3853
3841
|
_originalOptions: o.config || {},
|
|
@@ -4033,7 +4021,7 @@ var K = {
|
|
|
4033
4021
|
destroy: function(o) {
|
|
4034
4022
|
var r = o._pluginInfoId;
|
|
4035
4023
|
if (this.pluginGroup[r]) {
|
|
4036
|
-
|
|
4024
|
+
to(o.root);
|
|
4037
4025
|
for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
|
|
4038
4026
|
var n = i[e];
|
|
4039
4027
|
this.unRegister(r, n);
|
|
@@ -4119,7 +4107,7 @@ function Ti() {
|
|
|
4119
4107
|
ignores: [],
|
|
4120
4108
|
whitelist: [],
|
|
4121
4109
|
inactive: 3e3,
|
|
4122
|
-
lang:
|
|
4110
|
+
lang: Ts(),
|
|
4123
4111
|
controls: !0,
|
|
4124
4112
|
marginControls: !1,
|
|
4125
4113
|
fullscreenTarget: null,
|
|
@@ -4155,7 +4143,7 @@ function Ti() {
|
|
|
4155
4143
|
}
|
|
4156
4144
|
};
|
|
4157
4145
|
}
|
|
4158
|
-
var
|
|
4146
|
+
var io = function(o, r) {
|
|
4159
4147
|
var t, e, i;
|
|
4160
4148
|
r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
|
|
4161
4149
|
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;
|
|
@@ -4164,7 +4152,7 @@ var no = function(o, r) {
|
|
|
4164
4152
|
});
|
|
4165
4153
|
var m = o.config.i18n || [];
|
|
4166
4154
|
p.push.apply(p, ae(m)), o.config.i18n = p;
|
|
4167
|
-
},
|
|
4155
|
+
}, no = /* @__PURE__ */ function(a) {
|
|
4168
4156
|
x(r, a);
|
|
4169
4157
|
var o = P(r);
|
|
4170
4158
|
function r() {
|
|
@@ -4260,22 +4248,22 @@ var no = function(o, r) {
|
|
|
4260
4248
|
if (!i.root) {
|
|
4261
4249
|
var l = i.position ? i.position : i.config && i.config.position ? i.config.position : s.position;
|
|
4262
4250
|
switch (l) {
|
|
4263
|
-
case
|
|
4251
|
+
case V.CONTROLS_LEFT:
|
|
4264
4252
|
i.root = this.left;
|
|
4265
4253
|
break;
|
|
4266
|
-
case
|
|
4254
|
+
case V.CONTROLS_RIGHT:
|
|
4267
4255
|
i.root = this.right;
|
|
4268
4256
|
break;
|
|
4269
|
-
case
|
|
4257
|
+
case V.CONTROLS_CENTER:
|
|
4270
4258
|
i.root = this.center;
|
|
4271
4259
|
break;
|
|
4272
|
-
case
|
|
4260
|
+
case V.CONTROLS:
|
|
4273
4261
|
i.root = this.root;
|
|
4274
4262
|
break;
|
|
4275
4263
|
default:
|
|
4276
4264
|
i.root = this.left;
|
|
4277
4265
|
}
|
|
4278
|
-
return
|
|
4266
|
+
return A(I(r.prototype), "registerPlugin", this).call(this, e, i, n);
|
|
4279
4267
|
}
|
|
4280
4268
|
}
|
|
4281
4269
|
}
|
|
@@ -4325,7 +4313,7 @@ var no = function(o, r) {
|
|
|
4325
4313
|
};
|
|
4326
4314
|
}
|
|
4327
4315
|
}]), r;
|
|
4328
|
-
}(U),
|
|
4316
|
+
}(U), ro = {
|
|
4329
4317
|
LANG: "en",
|
|
4330
4318
|
TEXT: {
|
|
4331
4319
|
ERROR_TYPES: {
|
|
@@ -4420,7 +4408,7 @@ function pn() {
|
|
|
4420
4408
|
te.textKeys[a] = a;
|
|
4421
4409
|
});
|
|
4422
4410
|
}
|
|
4423
|
-
function
|
|
4411
|
+
function so(a, o) {
|
|
4424
4412
|
var r = [];
|
|
4425
4413
|
if (o || (o = te), !!o.lang) {
|
|
4426
4414
|
f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
|
|
@@ -4443,7 +4431,7 @@ function ni(a, o) {
|
|
|
4443
4431
|
r === "zh" && (r = "zh-cn"), o.lang[r] ? et(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), pn();
|
|
4444
4432
|
}
|
|
4445
4433
|
}
|
|
4446
|
-
function
|
|
4434
|
+
function oo(a) {
|
|
4447
4435
|
var o, r = {
|
|
4448
4436
|
lang: {},
|
|
4449
4437
|
langKeys: [],
|
|
@@ -4452,7 +4440,7 @@ function ao(a) {
|
|
|
4452
4440
|
};
|
|
4453
4441
|
return et(r.lang, te.lang), (o = r.langKeys).push.apply(o, ae(te.langKeys)), et(r.textKeys, te.textKeys), r;
|
|
4454
4442
|
}
|
|
4455
|
-
ni(
|
|
4443
|
+
ni(ro);
|
|
4456
4444
|
var We = {
|
|
4457
4445
|
get textKeys() {
|
|
4458
4446
|
return te.textKeys;
|
|
@@ -4466,10 +4454,10 @@ var We = {
|
|
|
4466
4454
|
a[o] = te.lang[o];
|
|
4467
4455
|
}), te.lang["zh-cn"] && (a.zh = te.lang["zh-cn"] || {}), a;
|
|
4468
4456
|
},
|
|
4469
|
-
extend:
|
|
4457
|
+
extend: so,
|
|
4470
4458
|
use: ni,
|
|
4471
|
-
init:
|
|
4472
|
-
},
|
|
4459
|
+
init: oo
|
|
4460
|
+
}, M = {
|
|
4473
4461
|
INITIAL: 1,
|
|
4474
4462
|
READY: 2,
|
|
4475
4463
|
ATTACHING: 3,
|
|
@@ -4565,7 +4553,7 @@ var We = {
|
|
|
4565
4553
|
}
|
|
4566
4554
|
}]), r;
|
|
4567
4555
|
}(Ki.EventEmitter);
|
|
4568
|
-
function
|
|
4556
|
+
function ao(a) {
|
|
4569
4557
|
for (var o = Object.keys(Z), r = 0; r < o.length; r++) {
|
|
4570
4558
|
var t = Z[o[r]];
|
|
4571
4559
|
if (t.root === a)
|
|
@@ -4573,7 +4561,7 @@ function lo(a) {
|
|
|
4573
4561
|
}
|
|
4574
4562
|
return null;
|
|
4575
4563
|
}
|
|
4576
|
-
var
|
|
4564
|
+
var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /* @__PURE__ */ function(a) {
|
|
4577
4565
|
x(r, a);
|
|
4578
4566
|
var o = P(r);
|
|
4579
4567
|
function r(t) {
|
|
@@ -4603,13 +4591,13 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4603
4591
|
to: !1
|
|
4604
4592
|
}]
|
|
4605
4593
|
});
|
|
4606
|
-
var b =
|
|
4594
|
+
var b = Es(C, e.playerId, Ie);
|
|
4607
4595
|
if (m || C && (C === e._fullscreenEl || b))
|
|
4608
4596
|
_(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, k.FULLSCREEN), e.emit(ge, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
4609
4597
|
else if (e.fullscreen) {
|
|
4610
4598
|
_();
|
|
4611
|
-
var w = v(e), B = w._fullScreenOffset,
|
|
4612
|
-
if (
|
|
4599
|
+
var w = v(e), B = w._fullScreenOffset, F = w.config;
|
|
4600
|
+
if (F.needFullscreenScroll ? (window.scrollTo(B.left, B.top), f.setTimeout(v(e), function() {
|
|
4613
4601
|
e.fullscreen = !1, e._fullScreenOffset = null;
|
|
4614
4602
|
}, 100)) : (!e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !1, e._fullScreenOffset = null), e.cssfullscreen)
|
|
4615
4603
|
e.removeClass(k.FULLSCREEN);
|
|
@@ -4623,14 +4611,14 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4623
4611
|
e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
|
|
4624
4612
|
}), y(v(e), "_onWebkitendfullscreen", function(p) {
|
|
4625
4613
|
e.onFullscreenChange(p, !1);
|
|
4626
|
-
}), dn(v(e),
|
|
4614
|
+
}), dn(v(e), lo), e.config = i, e._pluginInfoId = f.generateSessionId(), _s(v(e));
|
|
4627
4615
|
var n = e.constructor.defaultPreset;
|
|
4628
4616
|
if (e.config.presets.length) {
|
|
4629
4617
|
var s = e.config.presets.indexOf("default");
|
|
4630
4618
|
s >= 0 && n && (e.config.presets[s] = n);
|
|
4631
4619
|
} else
|
|
4632
4620
|
n && e.config.presets.push(n);
|
|
4633
|
-
e.userTimer = null, e.waitTimer = null, e.handleSource = !0, e._state =
|
|
4621
|
+
e.userTimer = null, e.waitTimer = null, e.handleSource = !0, e._state = M.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 = {
|
|
4634
4622
|
pi: 1,
|
|
4635
4623
|
scale: 0,
|
|
4636
4624
|
rotate: -1,
|
|
@@ -4652,7 +4640,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4652
4640
|
}, e._offsetInfo = {
|
|
4653
4641
|
currentTime: -1,
|
|
4654
4642
|
duration: 0
|
|
4655
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = We.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new
|
|
4643
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = We.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new Us(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
4656
4644
|
isActiveLocked: !1
|
|
4657
4645
|
}, e.instManager = _e;
|
|
4658
4646
|
var l = e._initDOM();
|
|
@@ -4665,9 +4653,9 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4665
4653
|
});
|
|
4666
4654
|
g || (h.defaultDefinition = h.list[0].definition, g = h.list[0]), e.config.url = g.url, e.curDefinition = g;
|
|
4667
4655
|
}
|
|
4668
|
-
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), K.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(
|
|
4656
|
+
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), K.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(M.READY), f.setTimeout(v(e), function() {
|
|
4669
4657
|
e.emit(Qt);
|
|
4670
|
-
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state <
|
|
4658
|
+
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < M.ATTACHED) && e.start(), e;
|
|
4671
4659
|
}
|
|
4672
4660
|
return E(r, [{
|
|
4673
4661
|
key: "_initDOM",
|
|
@@ -4684,7 +4672,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4684
4672
|
msg: "container id can't be empty"
|
|
4685
4673
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
4686
4674
|
}
|
|
4687
|
-
var s =
|
|
4675
|
+
var s = ao(this.root);
|
|
4688
4676
|
s && (O.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Ie, this.playerId), (e = _e) === null || e === void 0 || e.add(this), K.init(this), this._initBaseDoms();
|
|
4689
4677
|
var l = this.constructor.XgVideoProxy;
|
|
4690
4678
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
@@ -4694,7 +4682,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4694
4682
|
this.attachVideoEvents(c), this.media = c;
|
|
4695
4683
|
}
|
|
4696
4684
|
if (this.media.setAttribute(Ie, this.playerId), this.config.controls) {
|
|
4697
|
-
var h = this.config.controls.root || null, d = K.register(this,
|
|
4685
|
+
var h = this.config.controls.root || null, d = K.register(this, no, {
|
|
4698
4686
|
root: h
|
|
4699
4687
|
});
|
|
4700
4688
|
this.controls = d;
|
|
@@ -4716,8 +4704,8 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4716
4704
|
["width", "height"].forEach(function(D) {
|
|
4717
4705
|
i.config[D] && (typeof i.config[D] != "number" ? i.root.style[D] = i.config[D] : i.root.style[D] = "".concat(i.config[D], "px"));
|
|
4718
4706
|
});
|
|
4719
|
-
var b = this.root.getBoundingClientRect(), w = b.width, B = b.height,
|
|
4720
|
-
return this.sizeInfo.width = w, this.sizeInfo.height = B, this.sizeInfo.left =
|
|
4707
|
+
var b = this.root.getBoundingClientRect(), w = b.width, B = b.height, F = b.left, z = b.top;
|
|
4708
|
+
return this.sizeInfo.width = w, this.sizeInfo.height = B, this.sizeInfo.left = F, this.sizeInfo.top = z, !0;
|
|
4721
4709
|
}
|
|
4722
4710
|
}, {
|
|
4723
4711
|
key: "_initBaseDoms",
|
|
@@ -4762,7 +4750,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4762
4750
|
var s = this.media.readyState;
|
|
4763
4751
|
O.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (R.os.isIpad || R.os.isPhone) && this.mediaPlay());
|
|
4764
4752
|
var l = this.config.startTime;
|
|
4765
|
-
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(ve, this.canPlayFunc), (!this.hasStart || this.state <
|
|
4753
|
+
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(ve, this.canPlayFunc), (!this.hasStart || this.state < M.ATTACHED) && K.afterInit(this), this.hasStart = !0, this.setState(M.ATTACHED), f.setTimeout(this, function() {
|
|
4766
4754
|
i.emit(Ct);
|
|
4767
4755
|
}, 0);
|
|
4768
4756
|
}
|
|
@@ -4802,7 +4790,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4802
4790
|
value: function() {
|
|
4803
4791
|
var e = this;
|
|
4804
4792
|
this.config.presets.forEach(function(i) {
|
|
4805
|
-
|
|
4793
|
+
io(e, i);
|
|
4806
4794
|
});
|
|
4807
4795
|
}
|
|
4808
4796
|
}, {
|
|
@@ -4810,13 +4798,13 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4810
4798
|
value: function(e) {
|
|
4811
4799
|
var i = null;
|
|
4812
4800
|
switch (e) {
|
|
4813
|
-
case
|
|
4801
|
+
case V.ROOT_RIGHT:
|
|
4814
4802
|
this.rightBar || (this.rightBar = f.createPositionBar("xg-right-bar", this.root)), i = this.rightBar;
|
|
4815
4803
|
break;
|
|
4816
|
-
case
|
|
4804
|
+
case V.ROOT_LEFT:
|
|
4817
4805
|
this.leftBar || (this.leftBar = f.createPositionBar("xg-left-bar", this.root)), i = this.leftBar;
|
|
4818
4806
|
break;
|
|
4819
|
-
case
|
|
4807
|
+
case V.ROOT_TOP:
|
|
4820
4808
|
this.topBar || (this.topBar = f.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && f.addClass(this.topBar, k.TOP_BAR_AUTOHIDE)), i = this.topBar;
|
|
4821
4809
|
break;
|
|
4822
4810
|
default:
|
|
@@ -4900,8 +4888,8 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4900
4888
|
key: "start",
|
|
4901
4889
|
value: function(e) {
|
|
4902
4890
|
var i = this;
|
|
4903
|
-
if (!(this.state >
|
|
4904
|
-
return !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(
|
|
4891
|
+
if (!(this.state > M.ATTACHING))
|
|
4892
|
+
return !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(M.ATTACHING), this._registerPlugins(!1), K.beforeInit(this).then(function() {
|
|
4905
4893
|
if (i.config) {
|
|
4906
4894
|
e || (e = i.url || i.config.url);
|
|
4907
4895
|
var n = i._preProcessUrl(e), s = i._startInit(n.url);
|
|
@@ -4944,33 +4932,33 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4944
4932
|
key: "mediaPlay",
|
|
4945
4933
|
value: function() {
|
|
4946
4934
|
var e = this;
|
|
4947
|
-
if (!this.hasStart && this.state <
|
|
4935
|
+
if (!this.hasStart && this.state < M.ATTACHED) {
|
|
4948
4936
|
this.removeClass(k.NO_START), this.addClass(k.ENTER), this.start(), this._useAutoplay = !0;
|
|
4949
4937
|
return;
|
|
4950
4938
|
}
|
|
4951
|
-
this.state <
|
|
4952
|
-
var i =
|
|
4939
|
+
this.state < M.RUNNING && (this.removeClass(k.NO_START), !this.isCanplay && this.addClass(k.ENTER));
|
|
4940
|
+
var i = A(I(r.prototype), "play", this).call(this);
|
|
4953
4941
|
return i !== void 0 && i && i.then ? i.then(function() {
|
|
4954
|
-
e.removeClass(k.NOT_ALLOW_AUTOPLAY), e.addClass(k.PLAYING), e.state <
|
|
4942
|
+
e.removeClass(k.NOT_ALLOW_AUTOPLAY), e.addClass(k.PLAYING), e.state < M.RUNNING && (O.logInfo(">>>>playPromise.then"), e.setState(M.RUNNING), e.emit(Le));
|
|
4955
4943
|
}).catch(function(n) {
|
|
4956
4944
|
if (O.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
|
|
4957
4945
|
e.onError(), e.removeClass(k.ENTER);
|
|
4958
4946
|
return;
|
|
4959
4947
|
}
|
|
4960
4948
|
n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
|
|
4961
|
-
e._errorTimer = null, e.emit(ei), e.addClass(k.NOT_ALLOW_AUTOPLAY), e.removeClass(k.ENTER), e.pause(), e.setState(
|
|
4949
|
+
e._errorTimer = null, e.emit(ei), e.addClass(k.NOT_ALLOW_AUTOPLAY), e.removeClass(k.ENTER), e.pause(), e.setState(M.NOTALLOW);
|
|
4962
4950
|
}, 0));
|
|
4963
|
-
}) : (O.logWarn("video.play not return promise"), this.state <
|
|
4951
|
+
}) : (O.logWarn("video.play not return promise"), this.state < M.RUNNING && (this.setState(M.RUNNING), this.removeClass(k.NOT_ALLOW_AUTOPLAY), this.removeClass(k.NO_START), this.removeClass(k.ENTER), this.addClass(k.PLAYING), this.emit(Le))), i;
|
|
4964
4952
|
}
|
|
4965
4953
|
}, {
|
|
4966
4954
|
key: "mediaPause",
|
|
4967
4955
|
value: function() {
|
|
4968
|
-
|
|
4956
|
+
A(I(r.prototype), "pause", this).call(this);
|
|
4969
4957
|
}
|
|
4970
4958
|
}, {
|
|
4971
4959
|
key: "videoPause",
|
|
4972
4960
|
value: function() {
|
|
4973
|
-
|
|
4961
|
+
A(I(r.prototype), "pause", this).call(this);
|
|
4974
4962
|
}
|
|
4975
4963
|
}, {
|
|
4976
4964
|
key: "play",
|
|
@@ -4985,7 +4973,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4985
4973
|
value: function() {
|
|
4986
4974
|
var e = this;
|
|
4987
4975
|
pe(this, "pause", function() {
|
|
4988
|
-
|
|
4976
|
+
A(I(r.prototype), "pause", e).call(e);
|
|
4989
4977
|
});
|
|
4990
4978
|
}
|
|
4991
4979
|
}, {
|
|
@@ -5006,7 +4994,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5006
4994
|
n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
|
|
5007
4995
|
}
|
|
5008
4996
|
n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
|
|
5009
|
-
}, this.once(me, this._onceSeekCanplay), this.state <
|
|
4997
|
+
}, this.once(me, this._onceSeekCanplay), this.state < M.RUNNING ? (this.removeClass(k.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
|
|
5010
4998
|
}
|
|
5011
4999
|
}
|
|
5012
5000
|
}, {
|
|
@@ -5078,7 +5066,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5078
5066
|
value: function() {
|
|
5079
5067
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
5080
5068
|
if (!(!s || !l)) {
|
|
5081
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Ie), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(ti), (e = _e) === null || e === void 0 || e.remove(this), K.destroy(this), gn(this),
|
|
5069
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Ie), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(ti), (e = _e) === null || e === void 0 || e.remove(this), K.destroy(this), gn(this), A(I(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
5082
5070
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
5083
5071
|
n.removeChild(u[c]);
|
|
5084
5072
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -5293,7 +5281,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5293
5281
|
}, {
|
|
5294
5282
|
key: "onPlay",
|
|
5295
5283
|
value: function() {
|
|
5296
|
-
this.state ===
|
|
5284
|
+
this.state === M.ENDED && this.setState(M.RUNNING), this.removeClass(k.PAUSED), this.ended && this.removeClass(k.ENDED), !this.config.closePlayVideoFocus && this.focus();
|
|
5297
5285
|
}
|
|
5298
5286
|
}, {
|
|
5299
5287
|
key: "onPause",
|
|
@@ -5303,7 +5291,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5303
5291
|
}, {
|
|
5304
5292
|
key: "onEnded",
|
|
5305
5293
|
value: function() {
|
|
5306
|
-
this.updateAcc("ended"), this.addClass(k.ENDED), this.setState(
|
|
5294
|
+
this.updateAcc("ended"), this.addClass(k.ENDED), this.setState(M.ENDED);
|
|
5307
5295
|
}
|
|
5308
5296
|
}, {
|
|
5309
5297
|
key: "onError",
|
|
@@ -5341,7 +5329,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5341
5329
|
}, {
|
|
5342
5330
|
key: "onTimeupdate",
|
|
5343
5331
|
value: function() {
|
|
5344
|
-
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(k.LOADING)) && this.media.readyState > 2 && (this.removeClass(k.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state ===
|
|
5332
|
+
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(k.LOADING)) && this.media.readyState > 2 && (this.removeClass(k.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === M.NOTALLOW && this.duration && (this.setState(M.RUNNING), this.emit(Le)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
5345
5333
|
}
|
|
5346
5334
|
}, {
|
|
5347
5335
|
key: "onVolumechange",
|
|
@@ -5400,13 +5388,13 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5400
5388
|
this.videoPos.pi = c, u = u < 0 ? 0 : u;
|
|
5401
5389
|
var h = {
|
|
5402
5390
|
rotate: u
|
|
5403
|
-
}, d = 0, g = 0, p = 1, m = Math.abs(u / 90), _ = this.root, C = this.innerContainer, b = _.offsetWidth, w = C ? C.offsetHeight : _.offsetHeight, B = w,
|
|
5391
|
+
}, d = 0, g = 0, p = 1, m = Math.abs(u / 90), _ = this.root, C = this.innerContainer, b = _.offsetWidth, w = C ? C.offsetHeight : _.offsetHeight, B = w, F = b;
|
|
5404
5392
|
if (m % 2 === 0)
|
|
5405
|
-
p = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = p, d = i > 0 ? (100 - s) / 2 - i : 0, h.y = m === 2 ? 0 - d : d, g = n > 0 ? (100 - l) / 2 - n : 0, h.x = m === 2 ? 0 - g : g, this.media.style.width = "".concat(
|
|
5393
|
+
p = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = p, d = i > 0 ? (100 - s) / 2 - i : 0, h.y = m === 2 ? 0 - d : d, g = n > 0 ? (100 - l) / 2 - n : 0, h.x = m === 2 ? 0 - g : g, this.media.style.width = "".concat(F, "px"), this.media.style.height = "".concat(B, "px");
|
|
5406
5394
|
else if (m % 2 === 1) {
|
|
5407
|
-
|
|
5395
|
+
F = w, B = b;
|
|
5408
5396
|
var z = w - b;
|
|
5409
|
-
g = -z / 2 /
|
|
5397
|
+
g = -z / 2 / F * 100, h.x = m === 3 ? g + i / 2 : g - i / 2, d = z / 2 / B * 100, h.y = m === 3 ? d + n / 2 : d - n / 2, h.scale = p, this.media.style.width = "".concat(F, "px"), this.media.style.height = "".concat(B, "px");
|
|
5410
5398
|
}
|
|
5411
5399
|
var D = f.getTransformStyle(h, this.media.style.transform || this.media.style.webkitTransform);
|
|
5412
5400
|
this.media.style.transform = D, this.media.style.webkitTransform = D;
|
|
@@ -5458,8 +5446,8 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5458
5446
|
if ((h === "fill" || h === "cover" || h === "contain") && this.setAttribute("data-xgfill", h), !(!l || !s)) {
|
|
5459
5447
|
this._videoHeight = l, this._videoWidth = s;
|
|
5460
5448
|
var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, g = i.width, p = i.height - d, m = parseInt(s / l * 1e3, 10), _ = parseInt(g / p * 1e3, 10), C = g, b = p, w = {};
|
|
5461
|
-
c === "auto" && _ > m || c === "fixWidth" ? (b = g / m * 1e3, this.config.fluid ? w.paddingTop = "".concat(b * 100 / C, "%") : w.height = "".concat(b + d, "px")) : (c === "auto" && _ < m || c === "fixHeight") && (C = m * p / 1e3, w.width = "".concat(C, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(w).forEach(function(
|
|
5462
|
-
e.root.style[
|
|
5449
|
+
c === "auto" && _ > m || c === "fixWidth" ? (b = g / m * 1e3, this.config.fluid ? w.paddingTop = "".concat(b * 100 / C, "%") : w.height = "".concat(b + d, "px")) : (c === "auto" && _ < m || c === "fixHeight") && (C = m * p / 1e3, w.width = "".concat(C, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(w).forEach(function(F) {
|
|
5450
|
+
e.root.style[F] = w[F];
|
|
5463
5451
|
}), (h === "fillHeight" && _ < m || h === "fillWidth" && _ > m) && this.setAttribute("data-xgfill", "cover");
|
|
5464
5452
|
var B = {
|
|
5465
5453
|
videoScale: m,
|
|
@@ -5516,15 +5504,15 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5516
5504
|
return this._hasStart;
|
|
5517
5505
|
},
|
|
5518
5506
|
set: function(e) {
|
|
5519
|
-
typeof e == "boolean" && (this._hasStart = e, e === !1 && this.setState(
|
|
5507
|
+
typeof e == "boolean" && (this._hasStart = e, e === !1 && this.setState(M.READY), this.emit("hasstart"));
|
|
5520
5508
|
}
|
|
5521
5509
|
}, {
|
|
5522
5510
|
key: "isPlaying",
|
|
5523
5511
|
get: function() {
|
|
5524
|
-
return this._state ===
|
|
5512
|
+
return this._state === M.RUNNING || this._state === M.ENDED;
|
|
5525
5513
|
},
|
|
5526
5514
|
set: function(e) {
|
|
5527
|
-
e ? this.setState(
|
|
5515
|
+
e ? this.setState(M.RUNNING) : this._state >= M.RUNNING && this.setState(M.ATTACHED);
|
|
5528
5516
|
}
|
|
5529
5517
|
}, {
|
|
5530
5518
|
key: "definitionList",
|
|
@@ -5608,18 +5596,18 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5608
5596
|
}, {
|
|
5609
5597
|
key: "readyState",
|
|
5610
5598
|
get: function() {
|
|
5611
|
-
return
|
|
5599
|
+
return A(I(r.prototype), "readyState", this);
|
|
5612
5600
|
}
|
|
5613
5601
|
}, {
|
|
5614
5602
|
key: "error",
|
|
5615
5603
|
get: function() {
|
|
5616
|
-
var e =
|
|
5604
|
+
var e = A(I(r.prototype), "error", this);
|
|
5617
5605
|
return this.i18n[e] || e;
|
|
5618
5606
|
}
|
|
5619
5607
|
}, {
|
|
5620
5608
|
key: "networkState",
|
|
5621
5609
|
get: function() {
|
|
5622
|
-
return
|
|
5610
|
+
return A(I(r.prototype), "networkState", this);
|
|
5623
5611
|
}
|
|
5624
5612
|
}, {
|
|
5625
5613
|
key: "fullscreenChanging",
|
|
@@ -5764,7 +5752,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5764
5752
|
r.plugins || (r.plugins = {}), r.plugins[e] = i;
|
|
5765
5753
|
}
|
|
5766
5754
|
}]), r;
|
|
5767
|
-
}(
|
|
5755
|
+
}(Hs);
|
|
5768
5756
|
y(bt, "defaultPreset", null);
|
|
5769
5757
|
y(bt, "XgVideoProxy", null);
|
|
5770
5758
|
bt.instManager = vn.getInstance();
|
|
@@ -5779,7 +5767,7 @@ var Ce = {
|
|
|
5779
5767
|
WAIT_END: "waitingEnd",
|
|
5780
5768
|
SEEK_START: "seekStart",
|
|
5781
5769
|
SEEK_END: "seekEnd"
|
|
5782
|
-
},
|
|
5770
|
+
}, uo = /* @__PURE__ */ function(a) {
|
|
5783
5771
|
x(r, a);
|
|
5784
5772
|
var o = P(r);
|
|
5785
5773
|
function r() {
|
|
@@ -5849,7 +5837,7 @@ var Ce = {
|
|
|
5849
5837
|
}, {
|
|
5850
5838
|
key: "_initOnceEvents",
|
|
5851
5839
|
value: function() {
|
|
5852
|
-
this.off(
|
|
5840
|
+
this.off(Le, this._onAutoplayStart), this.off(ie, this._onTimeupdate), this.once(Le, this._onAutoplayStart), this.once(ie, this._onTimeupdate);
|
|
5853
5841
|
}
|
|
5854
5842
|
}, {
|
|
5855
5843
|
key: "_sendFF",
|
|
@@ -5930,13 +5918,13 @@ var Ce = {
|
|
|
5930
5918
|
}
|
|
5931
5919
|
}]), r;
|
|
5932
5920
|
}(U);
|
|
5933
|
-
function
|
|
5921
|
+
function co() {
|
|
5934
5922
|
return new DOMParser().parseFromString(`<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 78 78" width="78" height="78">
|
|
5935
5923
|
<path fill="#fff" transform="translate(20, 20)" d="M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"></path>
|
|
5936
5924
|
</svg>
|
|
5937
5925
|
`, "image/svg+xml").firstChild;
|
|
5938
5926
|
}
|
|
5939
|
-
var
|
|
5927
|
+
var fo = /* @__PURE__ */ function(a) {
|
|
5940
5928
|
x(r, a);
|
|
5941
5929
|
var o = P(r);
|
|
5942
5930
|
function r() {
|
|
@@ -5946,7 +5934,7 @@ var ho = /* @__PURE__ */ function(a) {
|
|
|
5946
5934
|
key: "registerIcons",
|
|
5947
5935
|
value: function() {
|
|
5948
5936
|
return {
|
|
5949
|
-
replay:
|
|
5937
|
+
replay: co
|
|
5950
5938
|
};
|
|
5951
5939
|
}
|
|
5952
5940
|
}, {
|
|
@@ -5959,7 +5947,7 @@ var ho = /* @__PURE__ */ function(a) {
|
|
|
5959
5947
|
pre: function(n) {
|
|
5960
5948
|
n.preventDefault(), n.stopPropagation();
|
|
5961
5949
|
}
|
|
5962
|
-
}), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(
|
|
5950
|
+
}), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(Re, function() {
|
|
5963
5951
|
if (e.playerConfig.loop || f.addClass(e.player.root, "replay"), !e.config.disable) {
|
|
5964
5952
|
e.show();
|
|
5965
5953
|
var i = e.root.querySelector("path");
|
|
@@ -6019,7 +6007,7 @@ var ho = /* @__PURE__ */ function(a) {
|
|
|
6019
6007
|
};
|
|
6020
6008
|
}
|
|
6021
6009
|
}]), r;
|
|
6022
|
-
}(U),
|
|
6010
|
+
}(U), ho = /* @__PURE__ */ function(a) {
|
|
6023
6011
|
x(r, a);
|
|
6024
6012
|
var o = P(r);
|
|
6025
6013
|
function r() {
|
|
@@ -6052,7 +6040,7 @@ var ho = /* @__PURE__ */ function(a) {
|
|
|
6052
6040
|
key: "afterCreate",
|
|
6053
6041
|
value: function() {
|
|
6054
6042
|
var e = this;
|
|
6055
|
-
this.on(
|
|
6043
|
+
this.on(Re, function() {
|
|
6056
6044
|
e.isEndedShow && f.removeClass(e.root, "hide");
|
|
6057
6045
|
}), this.config.hideCanplay ? (this.once(ie, function() {
|
|
6058
6046
|
e.onTimeUpdate();
|
|
@@ -6144,7 +6132,7 @@ function si() {
|
|
|
6144
6132
|
`, "image/svg+xml").firstChild;
|
|
6145
6133
|
}
|
|
6146
6134
|
var fe = {};
|
|
6147
|
-
function
|
|
6135
|
+
function go(a, o) {
|
|
6148
6136
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
6149
6137
|
start: null,
|
|
6150
6138
|
end: null
|
|
@@ -6162,7 +6150,7 @@ function Pi(a) {
|
|
|
6162
6150
|
window.clearTimeout(fe[o].id), delete fe[o];
|
|
6163
6151
|
});
|
|
6164
6152
|
}
|
|
6165
|
-
var
|
|
6153
|
+
var po = /* @__PURE__ */ function(a) {
|
|
6166
6154
|
x(r, a);
|
|
6167
6155
|
var o = P(r);
|
|
6168
6156
|
function r(t) {
|
|
@@ -6184,7 +6172,7 @@ var vo = /* @__PURE__ */ function(a) {
|
|
|
6184
6172
|
var e = this, i = this.player, n = this.playerConfig;
|
|
6185
6173
|
this.initIcons(), this.once(Qt, function() {
|
|
6186
6174
|
n && (n.lang && n.lang === "en" ? f.addClass(i.root, "lang-is-en") : n.lang === "jp" && f.addClass(i.root, "lang-is-jp"));
|
|
6187
|
-
}), this.on(
|
|
6175
|
+
}), this.on(Le, this.onAutoplayStart), n.autoplay || this.show(), this.on(ei, function() {
|
|
6188
6176
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
6189
6177
|
e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
|
|
6190
6178
|
}), this.on(ne, function() {
|
|
@@ -6254,7 +6242,7 @@ var vo = /* @__PURE__ */ function(a) {
|
|
|
6254
6242
|
key: "animate",
|
|
6255
6243
|
value: function(e) {
|
|
6256
6244
|
var i = this;
|
|
6257
|
-
this._animateId =
|
|
6245
|
+
this._animateId = go("pauseplay", 400, {
|
|
6258
6246
|
start: function() {
|
|
6259
6247
|
f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
|
|
6260
6248
|
},
|
|
@@ -6272,16 +6260,16 @@ var vo = /* @__PURE__ */ function(a) {
|
|
|
6272
6260
|
key: "switchPausePlay",
|
|
6273
6261
|
value: function(e) {
|
|
6274
6262
|
var i = this.player;
|
|
6275
|
-
if (e.cancelable && e.preventDefault(), e.stopPropagation(), !(i.state <
|
|
6263
|
+
if (e.cancelable && e.preventDefault(), e.stopPropagation(), !(i.state < M.READY)) {
|
|
6276
6264
|
var n = this.player.paused;
|
|
6277
|
-
!n && i.state ===
|
|
6265
|
+
!n && i.state === M.RUNNING ? i.pause() : i.play();
|
|
6278
6266
|
}
|
|
6279
6267
|
}
|
|
6280
6268
|
}, {
|
|
6281
6269
|
key: "onPlayPause",
|
|
6282
6270
|
value: function(e) {
|
|
6283
6271
|
var i = this.config, n = this.player;
|
|
6284
|
-
if (!(!n || n.state <
|
|
6272
|
+
if (!(!n || n.state < M.RUNNING || !this.autoPlayStart)) {
|
|
6285
6273
|
if (i.mode === "show") {
|
|
6286
6274
|
this.switchStatus(), this.show();
|
|
6287
6275
|
return;
|
|
@@ -6337,7 +6325,7 @@ var vo = /* @__PURE__ */ function(a) {
|
|
|
6337
6325
|
};
|
|
6338
6326
|
}
|
|
6339
6327
|
}]), r;
|
|
6340
|
-
}(U),
|
|
6328
|
+
}(U), vo = /* @__PURE__ */ function(a) {
|
|
6341
6329
|
x(r, a);
|
|
6342
6330
|
var o = P(r);
|
|
6343
6331
|
function r() {
|
|
@@ -6426,7 +6414,7 @@ var Ii = /* @__PURE__ */ function(a) {
|
|
|
6426
6414
|
key: "defaultConfig",
|
|
6427
6415
|
get: function() {
|
|
6428
6416
|
return {
|
|
6429
|
-
position:
|
|
6417
|
+
position: V.CONTROLS_RIGHT,
|
|
6430
6418
|
index: 10
|
|
6431
6419
|
};
|
|
6432
6420
|
}
|
|
@@ -6437,7 +6425,7 @@ function Ai(a) {
|
|
|
6437
6425
|
return r && o;
|
|
6438
6426
|
}
|
|
6439
6427
|
var oi = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], mn = oi.length;
|
|
6440
|
-
function
|
|
6428
|
+
function mo() {
|
|
6441
6429
|
for (var a = {
|
|
6442
6430
|
width: 0,
|
|
6443
6431
|
height: 0,
|
|
@@ -6451,15 +6439,15 @@ function yo() {
|
|
|
6451
6439
|
}
|
|
6452
6440
|
return a;
|
|
6453
6441
|
}
|
|
6454
|
-
function
|
|
6442
|
+
function yo(a) {
|
|
6455
6443
|
var o = window.getComputedStyle(a);
|
|
6456
6444
|
return o;
|
|
6457
6445
|
}
|
|
6458
6446
|
function Li(a) {
|
|
6459
6447
|
if (typeof a == "string" && (a = document.querySelector(a)), !(!a || X(a) !== "object" || !a.nodeType)) {
|
|
6460
|
-
var o =
|
|
6448
|
+
var o = yo(a);
|
|
6461
6449
|
if (o.display === "none")
|
|
6462
|
-
return
|
|
6450
|
+
return mo();
|
|
6463
6451
|
var r = {};
|
|
6464
6452
|
r.width = a.offsetWidth, r.height = a.offsetHeight;
|
|
6465
6453
|
for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < mn; e++) {
|
|
@@ -6487,7 +6475,7 @@ var Dt = {
|
|
|
6487
6475
|
mousedown: ["mousemove", "mouseup"],
|
|
6488
6476
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
6489
6477
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
6490
|
-
},
|
|
6478
|
+
}, _o = /* @__PURE__ */ function(a) {
|
|
6491
6479
|
x(r, a);
|
|
6492
6480
|
var o = P(r);
|
|
6493
6481
|
function r(t) {
|
|
@@ -6697,7 +6685,7 @@ var Dt = {
|
|
|
6697
6685
|
return parseInt(e, 10);
|
|
6698
6686
|
}
|
|
6699
6687
|
}]), r;
|
|
6700
|
-
}($i),
|
|
6688
|
+
}($i), Co = /* @__PURE__ */ function(a) {
|
|
6701
6689
|
x(r, a);
|
|
6702
6690
|
var o = P(r);
|
|
6703
6691
|
function r(t) {
|
|
@@ -6753,7 +6741,7 @@ var Dt = {
|
|
|
6753
6741
|
i.controls.registerPlugin(Ii, s, Ii.pluginName);
|
|
6754
6742
|
}
|
|
6755
6743
|
var l = f.checkTouchSupport() ? "touchend" : "click";
|
|
6756
|
-
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new
|
|
6744
|
+
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new _o(this.player.root, {
|
|
6757
6745
|
handle: this.root
|
|
6758
6746
|
})), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
|
|
6759
6747
|
}
|
|
@@ -6967,12 +6955,12 @@ var Dt = {
|
|
|
6967
6955
|
TOUCH_MOVE: "touchmove",
|
|
6968
6956
|
TOUCH_START: "touchstart",
|
|
6969
6957
|
TOUCH_END: "touchend"
|
|
6970
|
-
},
|
|
6958
|
+
}, ko = {
|
|
6971
6959
|
start: "touchstart",
|
|
6972
6960
|
end: "touchend",
|
|
6973
6961
|
move: "touchmove",
|
|
6974
6962
|
cancel: "touchcancel"
|
|
6975
|
-
},
|
|
6963
|
+
}, wo = {
|
|
6976
6964
|
start: "mousedown",
|
|
6977
6965
|
end: "mouseup",
|
|
6978
6966
|
move: "mousemove",
|
|
@@ -6981,7 +6969,7 @@ var Dt = {
|
|
|
6981
6969
|
function Ri(a) {
|
|
6982
6970
|
return a && a.length > 0 ? a[a.length - 1] : null;
|
|
6983
6971
|
}
|
|
6984
|
-
function
|
|
6972
|
+
function bo() {
|
|
6985
6973
|
return {
|
|
6986
6974
|
pressDelay: 600,
|
|
6987
6975
|
dbClickDelay: 200,
|
|
@@ -6991,7 +6979,7 @@ function To() {
|
|
|
6991
6979
|
needPreventDefault: !0
|
|
6992
6980
|
};
|
|
6993
6981
|
}
|
|
6994
|
-
var
|
|
6982
|
+
var To = /* @__PURE__ */ function() {
|
|
6995
6983
|
function a(o) {
|
|
6996
6984
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
6997
6985
|
eventType: "touch"
|
|
@@ -7012,9 +7000,9 @@ var Eo = /* @__PURE__ */ function() {
|
|
|
7012
7000
|
start: !1,
|
|
7013
7001
|
x: 0,
|
|
7014
7002
|
y: 0
|
|
7015
|
-
}, this.config =
|
|
7003
|
+
}, this.config = bo(), Object.keys(t).map(function(e) {
|
|
7016
7004
|
r.config[e] = t[e];
|
|
7017
|
-
}), this.root = o, this.events = t.eventType === "mouse" ?
|
|
7005
|
+
}), this.root = o, this.events = t.eventType === "mouse" ? wo : ko, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
7018
7006
|
}
|
|
7019
7007
|
return E(a, [{
|
|
7020
7008
|
key: "_initEvent",
|
|
@@ -7093,7 +7081,7 @@ var Eo = /* @__PURE__ */ function() {
|
|
|
7093
7081
|
}
|
|
7094
7082
|
}]), a;
|
|
7095
7083
|
}();
|
|
7096
|
-
function
|
|
7084
|
+
function Eo() {
|
|
7097
7085
|
return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
7098
7086
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
7099
7087
|
<path opacity="0.54"
|
|
@@ -7102,12 +7090,12 @@ function So() {
|
|
|
7102
7090
|
<path transform="translate(5 0)" d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z" fill="white"/>
|
|
7103
7091
|
</svg>`, "image/svg+xml").firstChild;
|
|
7104
7092
|
}
|
|
7105
|
-
var
|
|
7093
|
+
var Ne = {
|
|
7106
7094
|
AUTO: "auto",
|
|
7107
7095
|
SEEKING: "seeking",
|
|
7108
7096
|
PLAYBACK: "playbackrate",
|
|
7109
7097
|
LIGHT: ""
|
|
7110
|
-
}, Ft = ["videoClick", "videoDbClick"],
|
|
7098
|
+
}, Ft = ["videoClick", "videoDbClick"], So = /* @__PURE__ */ function(a) {
|
|
7111
7099
|
x(r, a);
|
|
7112
7100
|
var o = P(r);
|
|
7113
7101
|
function r(t) {
|
|
@@ -7141,7 +7129,7 @@ var Be = {
|
|
|
7141
7129
|
}, 10), !!l.isStart) {
|
|
7142
7130
|
l.scope > -1 && i.cancelable && i.preventDefault();
|
|
7143
7131
|
var c = e.config, h = c.disableGesture, d = c.gestureX;
|
|
7144
|
-
!h && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), f.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(
|
|
7132
|
+
!h && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), f.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(Ne.AUTO);
|
|
7145
7133
|
}
|
|
7146
7134
|
}), y(v(e), "onRootTouchMove", function(i) {
|
|
7147
7135
|
e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
|
|
@@ -7179,7 +7167,7 @@ var Be = {
|
|
|
7179
7167
|
value: function() {
|
|
7180
7168
|
return {
|
|
7181
7169
|
seekTipIcon: {
|
|
7182
|
-
icon:
|
|
7170
|
+
icon: Eo,
|
|
7183
7171
|
class: "xg-seek-pre"
|
|
7184
7172
|
}
|
|
7185
7173
|
};
|
|
@@ -7194,7 +7182,7 @@ var Be = {
|
|
|
7194
7182
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
7195
7183
|
i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), f.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = f.createDom("xg-mask", "", {}, "xgmask"), s.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
|
|
7196
7184
|
var l = this.domEventType === "mouse" ? "mouse" : "touch";
|
|
7197
|
-
this.touch = new
|
|
7185
|
+
this.touch = new To(this.root, {
|
|
7198
7186
|
eventType: l,
|
|
7199
7187
|
needPreventDefault: !this.config.disableGesture
|
|
7200
7188
|
}), this.root.addEventListener("contextmenu", function(d) {
|
|
@@ -7204,7 +7192,7 @@ var Be = {
|
|
|
7204
7192
|
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(Ee, function() {
|
|
7205
7193
|
var d = e.player, g = e.config;
|
|
7206
7194
|
d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
|
|
7207
|
-
}), this.on([ve,
|
|
7195
|
+
}), this.on([ve, Re], function() {
|
|
7208
7196
|
var d = e.pos, g = d.time, p = d.isStart;
|
|
7209
7197
|
!p && g > 0 && (e.pos.time = 0);
|
|
7210
7198
|
});
|
|
@@ -7227,7 +7215,7 @@ var Be = {
|
|
|
7227
7215
|
e.activeSeekNote(d.currentTime, d.forward);
|
|
7228
7216
|
}), ["dragend", "click"].forEach(function(d) {
|
|
7229
7217
|
h.addCallBack(d, function() {
|
|
7230
|
-
e.changeAction(
|
|
7218
|
+
e.changeAction(Ne.AUTO);
|
|
7231
7219
|
});
|
|
7232
7220
|
}));
|
|
7233
7221
|
}
|
|
@@ -7333,7 +7321,7 @@ var Be = {
|
|
|
7333
7321
|
}, 500);
|
|
7334
7322
|
break;
|
|
7335
7323
|
}
|
|
7336
|
-
this.changeAction(
|
|
7324
|
+
this.changeAction(Ne.AUTO);
|
|
7337
7325
|
}
|
|
7338
7326
|
}, {
|
|
7339
7327
|
key: "checkIsRootTarget",
|
|
@@ -7355,7 +7343,7 @@ var Be = {
|
|
|
7355
7343
|
key: "clickHandler",
|
|
7356
7344
|
value: function(e) {
|
|
7357
7345
|
var i = this.player, n = this.config, s = this.playerConfig;
|
|
7358
|
-
if (i.state <
|
|
7346
|
+
if (i.state < M.RUNNING) {
|
|
7359
7347
|
s.closeVideoClick || (this.sendUseAction(f.createEvent("click")), i.play());
|
|
7360
7348
|
return;
|
|
7361
7349
|
}
|
|
@@ -7365,7 +7353,7 @@ var Be = {
|
|
|
7365
7353
|
key: "dbClickHandler",
|
|
7366
7354
|
value: function(e) {
|
|
7367
7355
|
var i = this.config, n = this.player;
|
|
7368
|
-
!i.closedbClick && n.state >=
|
|
7356
|
+
!i.closedbClick && n.state >= M.RUNNING && (this.sendUseAction(f.createEvent("dblclick")), this.switchPlayPause());
|
|
7369
7357
|
}
|
|
7370
7358
|
}, {
|
|
7371
7359
|
key: "onClick",
|
|
@@ -7397,7 +7385,7 @@ var Be = {
|
|
|
7397
7385
|
prop: "playbackRate",
|
|
7398
7386
|
from: s.playbackRate,
|
|
7399
7387
|
to: n.pressRate
|
|
7400
|
-
}), s.playbackRate = n.pressRate, this.changeAction(
|
|
7388
|
+
}), s.playbackRate = n.pressRate, this.changeAction(Ne.PLAYBACK));
|
|
7401
7389
|
}
|
|
7402
7390
|
}, {
|
|
7403
7391
|
key: "onPressEnd",
|
|
@@ -7407,7 +7395,7 @@ var Be = {
|
|
|
7407
7395
|
prop: "playbackRate",
|
|
7408
7396
|
from: s.playbackRate,
|
|
7409
7397
|
to: i.rate
|
|
7410
|
-
}), s.playbackRate = i.rate, i.rate = 1, this.changeAction(
|
|
7398
|
+
}), s.playbackRate = i.rate, i.rate = 1, this.changeAction(Ne.AUTO));
|
|
7411
7399
|
}
|
|
7412
7400
|
}, {
|
|
7413
7401
|
key: "updateTime",
|
|
@@ -7439,7 +7427,7 @@ var Be = {
|
|
|
7439
7427
|
value: function(e) {
|
|
7440
7428
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = this.player, s = this.config, l = !(this.duration !== 1 / 0 && this.duration > 0);
|
|
7441
7429
|
if (!(!e || typeof e != "number" || l || s.disableActive)) {
|
|
7442
|
-
e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(
|
|
7430
|
+
e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(Ne.SEEKING);
|
|
7443
7431
|
var u = n.plugins.start;
|
|
7444
7432
|
u && u.focusHide(), this.find(".xg-dur").innerHTML = f.format(this.duration), this.find(".xg-cur").innerHTML = f.format(e), this.find(".xg-curbar").style.width = "".concat(e / this.duration * 100, "%"), i ? f.removeClass(this.find(".xg-seek-show"), "xg-back") : f.addClass(this.find(".xg-seek-show"), "xg-back"), this.updateThumbnails(e);
|
|
7445
7433
|
}
|
|
@@ -7454,7 +7442,7 @@ var Be = {
|
|
|
7454
7442
|
key: "switchPlayPause",
|
|
7455
7443
|
value: function() {
|
|
7456
7444
|
var e = this.player;
|
|
7457
|
-
if (e.state <
|
|
7445
|
+
if (e.state < M.ATTACHED)
|
|
7458
7446
|
return !1;
|
|
7459
7447
|
e.ended || (e.paused ? e.play() : e.pause());
|
|
7460
7448
|
}
|
|
@@ -7536,7 +7524,7 @@ var Be = {
|
|
|
7536
7524
|
}
|
|
7537
7525
|
}]), r;
|
|
7538
7526
|
}(U);
|
|
7539
|
-
function
|
|
7527
|
+
function xo(a) {
|
|
7540
7528
|
a.preventDefault(), a.returnValue = !1;
|
|
7541
7529
|
}
|
|
7542
7530
|
function Oi(a) {
|
|
@@ -7785,7 +7773,7 @@ var Fi = /* @__PURE__ */ function(a) {
|
|
|
7785
7773
|
isPress: n
|
|
7786
7774
|
}, this.keyCodeMap[s[l]]));
|
|
7787
7775
|
}
|
|
7788
|
-
|
|
7776
|
+
xo(i), i.stopPropagation();
|
|
7789
7777
|
break;
|
|
7790
7778
|
}
|
|
7791
7779
|
}
|
|
@@ -7827,13 +7815,13 @@ var Fi = /* @__PURE__ */ function(a) {
|
|
|
7827
7815
|
}
|
|
7828
7816
|
}]), r;
|
|
7829
7817
|
}(Te);
|
|
7830
|
-
function
|
|
7818
|
+
function Po() {
|
|
7831
7819
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
7832
7820
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
7833
7821
|
</svg>
|
|
7834
7822
|
`, "image/svg+xml").firstChild;
|
|
7835
7823
|
}
|
|
7836
|
-
var
|
|
7824
|
+
var Io = /* @__PURE__ */ function(a) {
|
|
7837
7825
|
x(r, a);
|
|
7838
7826
|
var o = P(r);
|
|
7839
7827
|
function r() {
|
|
@@ -7843,7 +7831,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
7843
7831
|
key: "registerIcons",
|
|
7844
7832
|
value: function() {
|
|
7845
7833
|
return {
|
|
7846
|
-
loadingIcon:
|
|
7834
|
+
loadingIcon: Po
|
|
7847
7835
|
};
|
|
7848
7836
|
}
|
|
7849
7837
|
}, {
|
|
@@ -7868,11 +7856,11 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
7868
7856
|
key: "defaultConfig",
|
|
7869
7857
|
get: function() {
|
|
7870
7858
|
return {
|
|
7871
|
-
position:
|
|
7859
|
+
position: V.ROOT
|
|
7872
7860
|
};
|
|
7873
7861
|
}
|
|
7874
7862
|
}]), r;
|
|
7875
|
-
}(U),
|
|
7863
|
+
}(U), Ao = [{
|
|
7876
7864
|
tag: "xg-cache",
|
|
7877
7865
|
className: "xgplayer-progress-cache",
|
|
7878
7866
|
styleKey: "cachedColor"
|
|
@@ -7880,7 +7868,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
7880
7868
|
tag: "xg-played",
|
|
7881
7869
|
className: "xgplayer-progress-played",
|
|
7882
7870
|
styleKey: "playedColor"
|
|
7883
|
-
}],
|
|
7871
|
+
}], Lo = /* @__PURE__ */ function() {
|
|
7884
7872
|
function a(o) {
|
|
7885
7873
|
T(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
7886
7874
|
percent: 1
|
|
@@ -8067,7 +8055,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
8067
8055
|
var l = f.createDom("xg-inner", "", {
|
|
8068
8056
|
style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
|
|
8069
8057
|
}, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
|
|
8070
|
-
return r.root.appendChild(l),
|
|
8058
|
+
return r.root.appendChild(l), Ao.forEach(function(u) {
|
|
8071
8059
|
l.appendChild(f.createDom(u.tag, "", {
|
|
8072
8060
|
style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
|
|
8073
8061
|
}, u.className));
|
|
@@ -8083,7 +8071,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
8083
8071
|
}(), Mi = {
|
|
8084
8072
|
POINT: "inner-focus-point",
|
|
8085
8073
|
HIGHLIGHT: "inner-focus-highlight"
|
|
8086
|
-
},
|
|
8074
|
+
}, Do = /* @__PURE__ */ function(a) {
|
|
8087
8075
|
x(r, a);
|
|
8088
8076
|
var o = P(r);
|
|
8089
8077
|
function r(t) {
|
|
@@ -8213,7 +8201,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
8213
8201
|
e.emitUserAction("fragment_focus", "fragment_focus", u);
|
|
8214
8202
|
}
|
|
8215
8203
|
});
|
|
8216
|
-
this.innerList ? this.innerList.reset(s) : (this.innerList = new
|
|
8204
|
+
this.innerList ? this.innerList.reset(s) : (this.innerList = new Lo(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
|
|
8217
8205
|
e[l] = e.innerList[l].bind(e.innerList);
|
|
8218
8206
|
}));
|
|
8219
8207
|
}
|
|
@@ -8249,9 +8237,9 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
8249
8237
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
8250
8238
|
}), this.on(Zi, function() {
|
|
8251
8239
|
e.onCacheUpdate();
|
|
8252
|
-
}), this.on(
|
|
8240
|
+
}), this.on(Re, function() {
|
|
8253
8241
|
e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
|
|
8254
|
-
}), this.on(
|
|
8242
|
+
}), this.on(Oe, function() {
|
|
8255
8243
|
e.onReset();
|
|
8256
8244
|
}), this.on(be, function() {
|
|
8257
8245
|
e.onVideoResize();
|
|
@@ -8466,7 +8454,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
8466
8454
|
key: "defaultConfig",
|
|
8467
8455
|
get: function() {
|
|
8468
8456
|
return {
|
|
8469
|
-
position:
|
|
8457
|
+
position: V.CONTROLS_CENTER,
|
|
8470
8458
|
index: 0,
|
|
8471
8459
|
disable: !1,
|
|
8472
8460
|
isDragingSeek: !0,
|
|
@@ -8494,7 +8482,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
8494
8482
|
return Mi;
|
|
8495
8483
|
}
|
|
8496
8484
|
}]), r;
|
|
8497
|
-
}(U),
|
|
8485
|
+
}(U), Fe = /* @__PURE__ */ function(a) {
|
|
8498
8486
|
x(r, a);
|
|
8499
8487
|
var o = P(r);
|
|
8500
8488
|
function r() {
|
|
@@ -8523,7 +8511,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
8523
8511
|
this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
|
|
8524
8512
|
}
|
|
8525
8513
|
}]), r;
|
|
8526
|
-
}(U),
|
|
8514
|
+
}(U), Ro = /* @__PURE__ */ function(a) {
|
|
8527
8515
|
x(r, a);
|
|
8528
8516
|
var o = P(r);
|
|
8529
8517
|
function r() {
|
|
@@ -8533,9 +8521,9 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
8533
8521
|
key: "afterCreate",
|
|
8534
8522
|
value: function() {
|
|
8535
8523
|
var e = this;
|
|
8536
|
-
|
|
8524
|
+
A(I(r.prototype), "afterCreate", this).call(this);
|
|
8537
8525
|
var i = this.player, n = this.config;
|
|
8538
|
-
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([Ye, tt,
|
|
8526
|
+
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([Ye, tt, Oe], function() {
|
|
8539
8527
|
e.animate(i.paused);
|
|
8540
8528
|
}), this.on(ne, function() {
|
|
8541
8529
|
e.animate(i.paused);
|
|
@@ -8583,7 +8571,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
8583
8571
|
}, {
|
|
8584
8572
|
key: "destroy",
|
|
8585
8573
|
value: function() {
|
|
8586
|
-
|
|
8574
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(["touchend", "click"], this.btnClick);
|
|
8587
8575
|
}
|
|
8588
8576
|
}, {
|
|
8589
8577
|
key: "render",
|
|
@@ -8604,21 +8592,21 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
8604
8592
|
key: "defaultConfig",
|
|
8605
8593
|
get: function() {
|
|
8606
8594
|
return {
|
|
8607
|
-
position:
|
|
8595
|
+
position: V.CONTROLS_LEFT,
|
|
8608
8596
|
index: 0,
|
|
8609
8597
|
disable: !1
|
|
8610
8598
|
};
|
|
8611
8599
|
}
|
|
8612
8600
|
}]), r;
|
|
8613
|
-
}(
|
|
8614
|
-
function
|
|
8601
|
+
}(Fe);
|
|
8602
|
+
function Oo() {
|
|
8615
8603
|
return new DOMParser().parseFromString(`<svg width="32px" height="40px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
8616
8604
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8617
8605
|
<path d="M11.2374369,14 L17.6187184,7.61871843 C17.9604272,7.27700968 17.9604272,6.72299032 17.6187184,6.38128157 C17.2770097,6.03957281 16.7229903,6.03957281 16.3812816,6.38128157 L9.38128157,13.3812816 C9.03957281,13.7229903 9.03957281,14.2770097 9.38128157,14.6187184 L16.3812816,21.6187184 C16.7229903,21.9604272 17.2770097,21.9604272 17.6187184,21.6187184 C17.9604272,21.2770097 17.9604272,20.7229903 17.6187184,20.3812816 L11.2374369,14 L11.2374369,14 Z" fill="#FFFFFF"></path>
|
|
8618
8606
|
</g>
|
|
8619
8607
|
</svg>`, "image/svg+xml").firstChild;
|
|
8620
8608
|
}
|
|
8621
|
-
var
|
|
8609
|
+
var Fo = /* @__PURE__ */ function(a) {
|
|
8622
8610
|
x(r, a);
|
|
8623
8611
|
var o = P(r);
|
|
8624
8612
|
function r() {
|
|
@@ -8637,7 +8625,7 @@ var Mo = /* @__PURE__ */ function(a) {
|
|
|
8637
8625
|
value: function() {
|
|
8638
8626
|
return {
|
|
8639
8627
|
screenBack: {
|
|
8640
|
-
icon:
|
|
8628
|
+
icon: Oo,
|
|
8641
8629
|
class: "xg-fullscreen-back"
|
|
8642
8630
|
}
|
|
8643
8631
|
};
|
|
@@ -8673,25 +8661,25 @@ var Mo = /* @__PURE__ */ function(a) {
|
|
|
8673
8661
|
key: "defaultConfig",
|
|
8674
8662
|
get: function() {
|
|
8675
8663
|
return {
|
|
8676
|
-
position:
|
|
8664
|
+
position: V.ROOT_TOP,
|
|
8677
8665
|
index: 0
|
|
8678
8666
|
};
|
|
8679
8667
|
}
|
|
8680
8668
|
}]), r;
|
|
8681
8669
|
}(U);
|
|
8682
|
-
function
|
|
8670
|
+
function Mo() {
|
|
8683
8671
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
8684
8672
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>
|
|
8685
8673
|
</svg>
|
|
8686
8674
|
`, "image/svg+xml").firstChild;
|
|
8687
8675
|
}
|
|
8688
|
-
function
|
|
8676
|
+
function No() {
|
|
8689
8677
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
8690
8678
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>
|
|
8691
8679
|
</svg>
|
|
8692
8680
|
`, "image/svg+xml").firstChild;
|
|
8693
8681
|
}
|
|
8694
|
-
var
|
|
8682
|
+
var Bo = /* @__PURE__ */ function(a) {
|
|
8695
8683
|
x(r, a);
|
|
8696
8684
|
var o = P(r);
|
|
8697
8685
|
function r() {
|
|
@@ -8707,7 +8695,7 @@ var Ho = /* @__PURE__ */ function(a) {
|
|
|
8707
8695
|
key: "afterCreate",
|
|
8708
8696
|
value: function() {
|
|
8709
8697
|
var e = this;
|
|
8710
|
-
|
|
8698
|
+
A(I(r.prototype), "afterCreate", this).call(this);
|
|
8711
8699
|
var i = this.config, n = this.playerConfig;
|
|
8712
8700
|
if (!i.disable) {
|
|
8713
8701
|
i.target && (this.playerConfig.fullscreenTarget = this.config.target);
|
|
@@ -8726,7 +8714,7 @@ var Ho = /* @__PURE__ */ function(a) {
|
|
|
8726
8714
|
var u = e.find(".xg-tips");
|
|
8727
8715
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
8728
8716
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
8729
|
-
plugin:
|
|
8717
|
+
plugin: Fo,
|
|
8730
8718
|
options: {
|
|
8731
8719
|
config: {
|
|
8732
8720
|
onClick: function(u) {
|
|
@@ -8742,11 +8730,11 @@ var Ho = /* @__PURE__ */ function(a) {
|
|
|
8742
8730
|
value: function() {
|
|
8743
8731
|
return {
|
|
8744
8732
|
fullscreen: {
|
|
8745
|
-
icon:
|
|
8733
|
+
icon: Mo,
|
|
8746
8734
|
class: "xg-get-fullscreen"
|
|
8747
8735
|
},
|
|
8748
8736
|
exitFullscreen: {
|
|
8749
|
-
icon:
|
|
8737
|
+
icon: No,
|
|
8750
8738
|
class: "xg-exit-fullscreen"
|
|
8751
8739
|
}
|
|
8752
8740
|
};
|
|
@@ -8754,7 +8742,7 @@ var Ho = /* @__PURE__ */ function(a) {
|
|
|
8754
8742
|
}, {
|
|
8755
8743
|
key: "destroy",
|
|
8756
8744
|
value: function() {
|
|
8757
|
-
|
|
8745
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", R.device === "mobile" ? "touchend" : "click", this.handleFullscreen), R.device === "mobile" && window.removeEventListener("orientationchange", this._onOrientationChange);
|
|
8758
8746
|
}
|
|
8759
8747
|
}, {
|
|
8760
8748
|
key: "initIcons",
|
|
@@ -8814,7 +8802,7 @@ var Ho = /* @__PURE__ */ function(a) {
|
|
|
8814
8802
|
key: "defaultConfig",
|
|
8815
8803
|
get: function() {
|
|
8816
8804
|
return {
|
|
8817
|
-
position:
|
|
8805
|
+
position: V.CONTROLS_RIGHT,
|
|
8818
8806
|
index: 0,
|
|
8819
8807
|
useCssFullscreen: !1,
|
|
8820
8808
|
rotateFullscreen: !1,
|
|
@@ -8827,7 +8815,7 @@ var Ho = /* @__PURE__ */ function(a) {
|
|
|
8827
8815
|
};
|
|
8828
8816
|
}
|
|
8829
8817
|
}]), r;
|
|
8830
|
-
}(
|
|
8818
|
+
}(Fe), Ho = /* @__PURE__ */ function(a) {
|
|
8831
8819
|
x(r, a);
|
|
8832
8820
|
var o = P(r);
|
|
8833
8821
|
function r(t) {
|
|
@@ -8857,9 +8845,9 @@ var Ho = /* @__PURE__ */ function(a) {
|
|
|
8857
8845
|
var e = this, i = this.player.controls.config.mode;
|
|
8858
8846
|
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([Ee, me, ie], function(n) {
|
|
8859
8847
|
n.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
8860
|
-
}), this.on(
|
|
8848
|
+
}), this.on(Re, function() {
|
|
8861
8849
|
e.onTimeUpdate(!0);
|
|
8862
|
-
}), this.on(
|
|
8850
|
+
}), this.on(Oe, function() {
|
|
8863
8851
|
e.onReset();
|
|
8864
8852
|
}));
|
|
8865
8853
|
}
|
|
@@ -8971,13 +8959,13 @@ var Ho = /* @__PURE__ */ function(a) {
|
|
|
8971
8959
|
key: "defaultConfig",
|
|
8972
8960
|
get: function() {
|
|
8973
8961
|
return {
|
|
8974
|
-
position:
|
|
8962
|
+
position: V.CONTROLS_LEFT,
|
|
8975
8963
|
index: 2,
|
|
8976
8964
|
disable: !1
|
|
8977
8965
|
};
|
|
8978
8966
|
}
|
|
8979
8967
|
}]), r;
|
|
8980
|
-
}(U),
|
|
8968
|
+
}(U), Uo = /* @__PURE__ */ function(a) {
|
|
8981
8969
|
x(r, a);
|
|
8982
8970
|
var o = P(r);
|
|
8983
8971
|
function r() {
|
|
@@ -9115,28 +9103,28 @@ var Ho = /* @__PURE__ */ function(a) {
|
|
|
9115
9103
|
}
|
|
9116
9104
|
}]), r;
|
|
9117
9105
|
}(Te);
|
|
9118
|
-
function
|
|
9106
|
+
function zo() {
|
|
9119
9107
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9120
9108
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9121
9109
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
9122
9110
|
</svg>
|
|
9123
9111
|
`, "image/svg+xml").firstChild;
|
|
9124
9112
|
}
|
|
9125
|
-
function
|
|
9113
|
+
function Vo() {
|
|
9126
9114
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9127
9115
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9128
9116
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
9129
9117
|
</svg>
|
|
9130
9118
|
`, "image/svg+xml").firstChild;
|
|
9131
9119
|
}
|
|
9132
|
-
function
|
|
9120
|
+
function jo() {
|
|
9133
9121
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9134
9122
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9135
9123
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>
|
|
9136
9124
|
</svg>
|
|
9137
9125
|
`, "image/svg+xml").firstChild;
|
|
9138
9126
|
}
|
|
9139
|
-
var
|
|
9127
|
+
var Wo = /* @__PURE__ */ function(a) {
|
|
9140
9128
|
x(r, a);
|
|
9141
9129
|
var o = P(r);
|
|
9142
9130
|
function r() {
|
|
@@ -9184,15 +9172,15 @@ var Go = /* @__PURE__ */ function(a) {
|
|
|
9184
9172
|
value: function() {
|
|
9185
9173
|
return {
|
|
9186
9174
|
volumeSmall: {
|
|
9187
|
-
icon:
|
|
9175
|
+
icon: Vo,
|
|
9188
9176
|
class: "xg-volume-small"
|
|
9189
9177
|
},
|
|
9190
9178
|
volumeLarge: {
|
|
9191
|
-
icon:
|
|
9179
|
+
icon: zo,
|
|
9192
9180
|
class: "xg-volume"
|
|
9193
9181
|
},
|
|
9194
9182
|
volumeMuted: {
|
|
9195
|
-
icon:
|
|
9183
|
+
icon: jo,
|
|
9196
9184
|
class: "xg-volume-mute"
|
|
9197
9185
|
}
|
|
9198
9186
|
};
|
|
@@ -9321,7 +9309,7 @@ var Go = /* @__PURE__ */ function(a) {
|
|
|
9321
9309
|
key: "defaultConfig",
|
|
9322
9310
|
get: function() {
|
|
9323
9311
|
return {
|
|
9324
|
-
position:
|
|
9312
|
+
position: V.CONTROLS_RIGHT,
|
|
9325
9313
|
index: 1,
|
|
9326
9314
|
disable: !1,
|
|
9327
9315
|
showValueLabel: !1,
|
|
@@ -9331,7 +9319,7 @@ var Go = /* @__PURE__ */ function(a) {
|
|
|
9331
9319
|
}
|
|
9332
9320
|
}]), r;
|
|
9333
9321
|
}(U);
|
|
9334
|
-
function
|
|
9322
|
+
function Go() {
|
|
9335
9323
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
9336
9324
|
<g clip-path="url(#clip0)">
|
|
9337
9325
|
<path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"/>
|
|
@@ -9345,7 +9333,7 @@ function Ko() {
|
|
|
9345
9333
|
</svg>
|
|
9346
9334
|
`, "image/svg+xml").firstChild;
|
|
9347
9335
|
}
|
|
9348
|
-
var
|
|
9336
|
+
var Ko = /* @__PURE__ */ function(a) {
|
|
9349
9337
|
x(r, a);
|
|
9350
9338
|
var o = P(r);
|
|
9351
9339
|
function r(t) {
|
|
@@ -9357,7 +9345,7 @@ var $o = /* @__PURE__ */ function(a) {
|
|
|
9357
9345
|
value: function() {
|
|
9358
9346
|
var e = this;
|
|
9359
9347
|
if (!this.config.disable) {
|
|
9360
|
-
|
|
9348
|
+
A(I(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() {
|
|
9361
9349
|
e.rotateDeg && e.config.innerRotate && f.setTimeout(e, function() {
|
|
9362
9350
|
e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
|
|
9363
9351
|
}, 100);
|
|
@@ -9369,7 +9357,7 @@ var $o = /* @__PURE__ */ function(a) {
|
|
|
9369
9357
|
}, {
|
|
9370
9358
|
key: "destroy",
|
|
9371
9359
|
value: function() {
|
|
9372
|
-
|
|
9360
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick);
|
|
9373
9361
|
}
|
|
9374
9362
|
}, {
|
|
9375
9363
|
key: "onBtnClick",
|
|
@@ -9391,9 +9379,9 @@ var $o = /* @__PURE__ */ function(a) {
|
|
|
9391
9379
|
webKitTransform: b,
|
|
9392
9380
|
height: m,
|
|
9393
9381
|
width: p
|
|
9394
|
-
}, B = i ? h : u,
|
|
9382
|
+
}, B = i ? h : u, F = i ? n.getPlugin("poster") : null;
|
|
9395
9383
|
Object.keys(w).map(function(z) {
|
|
9396
|
-
B.style[z] = w[z],
|
|
9384
|
+
B.style[z] = w[z], F && F.root && (F.root.style[z] = w[z]);
|
|
9397
9385
|
});
|
|
9398
9386
|
}
|
|
9399
9387
|
}, {
|
|
@@ -9408,7 +9396,7 @@ var $o = /* @__PURE__ */ function(a) {
|
|
|
9408
9396
|
key: "registerIcons",
|
|
9409
9397
|
value: function() {
|
|
9410
9398
|
return {
|
|
9411
|
-
rotate:
|
|
9399
|
+
rotate: Go
|
|
9412
9400
|
};
|
|
9413
9401
|
}
|
|
9414
9402
|
}, {
|
|
@@ -9431,7 +9419,7 @@ var $o = /* @__PURE__ */ function(a) {
|
|
|
9431
9419
|
key: "defaultConfig",
|
|
9432
9420
|
get: function() {
|
|
9433
9421
|
return {
|
|
9434
|
-
position:
|
|
9422
|
+
position: V.CONTROLS_RIGHT,
|
|
9435
9423
|
index: 6,
|
|
9436
9424
|
innerRotate: !0,
|
|
9437
9425
|
clockwise: !1,
|
|
@@ -9440,15 +9428,15 @@ var $o = /* @__PURE__ */ function(a) {
|
|
|
9440
9428
|
};
|
|
9441
9429
|
}
|
|
9442
9430
|
}]), r;
|
|
9443
|
-
}(
|
|
9444
|
-
function
|
|
9431
|
+
}(Fe);
|
|
9432
|
+
function $o() {
|
|
9445
9433
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9446
9434
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
9447
9435
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
9448
9436
|
fill="white" />
|
|
9449
9437
|
</svg>`, "image/svg+xml").firstChild;
|
|
9450
9438
|
}
|
|
9451
|
-
function
|
|
9439
|
+
function Yo() {
|
|
9452
9440
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9453
9441
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
9454
9442
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
@@ -9458,11 +9446,11 @@ function Xo() {
|
|
|
9458
9446
|
fill="white" />
|
|
9459
9447
|
</svg>`, "image/svg+xml").firstChild;
|
|
9460
9448
|
}
|
|
9461
|
-
var
|
|
9449
|
+
var Be = {
|
|
9462
9450
|
PIP: "picture-in-picture",
|
|
9463
9451
|
INLINE: "inline",
|
|
9464
9452
|
FULLSCREEN: "fullscreen"
|
|
9465
|
-
},
|
|
9453
|
+
}, Xo = /* @__PURE__ */ function(a) {
|
|
9466
9454
|
x(r, a);
|
|
9467
9455
|
var o = P(r);
|
|
9468
9456
|
function r() {
|
|
@@ -9493,7 +9481,7 @@ var He = {
|
|
|
9493
9481
|
key: "afterCreate",
|
|
9494
9482
|
value: function() {
|
|
9495
9483
|
var e = this;
|
|
9496
|
-
this.isPIPAvailable() && (
|
|
9484
|
+
this.isPIPAvailable() && (A(I(r.prototype), "afterCreate", this).call(this), this.pMode = Be.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Ct, function() {
|
|
9497
9485
|
e.config.showIcon && (f.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
9498
9486
|
}));
|
|
9499
9487
|
}
|
|
@@ -9502,11 +9490,11 @@ var He = {
|
|
|
9502
9490
|
value: function() {
|
|
9503
9491
|
return {
|
|
9504
9492
|
pipIcon: {
|
|
9505
|
-
icon:
|
|
9493
|
+
icon: $o,
|
|
9506
9494
|
class: "xg-get-pip"
|
|
9507
9495
|
},
|
|
9508
9496
|
pipIconExit: {
|
|
9509
|
-
icon:
|
|
9497
|
+
icon: Yo,
|
|
9510
9498
|
class: "xg-exit-pip"
|
|
9511
9499
|
}
|
|
9512
9500
|
};
|
|
@@ -9530,7 +9518,7 @@ var He = {
|
|
|
9530
9518
|
i.emit(Gt, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
9531
9519
|
}, this.onWebkitpresentationmodechanged = function(n) {
|
|
9532
9520
|
var s = i.media.webkitPresentationMode;
|
|
9533
|
-
e.pMode ===
|
|
9521
|
+
e.pMode === Be.FULLSCREEN && s !== Be.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === Be.PIP ? e.enterPIPCallback(n) : s === Be.INLINE && e.leavePIPCallback(n);
|
|
9534
9522
|
}, i.media && (i.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), i.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), r.checkWebkitSetPresentationMode(i.media) && i.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
|
|
9535
9523
|
}
|
|
9536
9524
|
}, {
|
|
@@ -9609,7 +9597,7 @@ var He = {
|
|
|
9609
9597
|
key: "isPip",
|
|
9610
9598
|
get: function() {
|
|
9611
9599
|
var e, i = this.player;
|
|
9612
|
-
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode ===
|
|
9600
|
+
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === Be.PIP;
|
|
9613
9601
|
}
|
|
9614
9602
|
}, {
|
|
9615
9603
|
key: "isPIPAvailable",
|
|
@@ -9625,7 +9613,7 @@ var He = {
|
|
|
9625
9613
|
}, {
|
|
9626
9614
|
key: "destroy",
|
|
9627
9615
|
value: function() {
|
|
9628
|
-
|
|
9616
|
+
A(I(r.prototype), "destroy", this).call(this);
|
|
9629
9617
|
var e = this.player;
|
|
9630
9618
|
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);
|
|
9631
9619
|
}
|
|
@@ -9648,7 +9636,7 @@ var He = {
|
|
|
9648
9636
|
key: "defaultConfig",
|
|
9649
9637
|
get: function() {
|
|
9650
9638
|
return {
|
|
9651
|
-
position:
|
|
9639
|
+
position: V.CONTROLS_RIGHT,
|
|
9652
9640
|
index: 6,
|
|
9653
9641
|
showIcon: !1,
|
|
9654
9642
|
preferDocument: !1,
|
|
@@ -9664,14 +9652,14 @@ var He = {
|
|
|
9664
9652
|
return typeof e.webkitSetPresentationMode == "function";
|
|
9665
9653
|
}
|
|
9666
9654
|
}]), r;
|
|
9667
|
-
}(
|
|
9668
|
-
function
|
|
9655
|
+
}(Fe);
|
|
9656
|
+
function qo() {
|
|
9669
9657
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
9670
9658
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
9671
9659
|
</svg>
|
|
9672
9660
|
`, "image/svg+xml").firstChild;
|
|
9673
9661
|
}
|
|
9674
|
-
var
|
|
9662
|
+
var Zo = /* @__PURE__ */ function(a) {
|
|
9675
9663
|
x(r, a);
|
|
9676
9664
|
var o = P(r);
|
|
9677
9665
|
function r(t) {
|
|
@@ -9690,7 +9678,7 @@ var Jo = /* @__PURE__ */ function(a) {
|
|
|
9690
9678
|
key: "registerIcons",
|
|
9691
9679
|
value: function() {
|
|
9692
9680
|
return {
|
|
9693
|
-
playNext:
|
|
9681
|
+
playNext: qo
|
|
9694
9682
|
};
|
|
9695
9683
|
}
|
|
9696
9684
|
}, {
|
|
@@ -9732,7 +9720,7 @@ var Jo = /* @__PURE__ */ function(a) {
|
|
|
9732
9720
|
key: "defaultConfig",
|
|
9733
9721
|
get: function() {
|
|
9734
9722
|
return {
|
|
9735
|
-
position:
|
|
9723
|
+
position: V.CONTROLS_LEFT,
|
|
9736
9724
|
index: 1,
|
|
9737
9725
|
url: null,
|
|
9738
9726
|
urlList: []
|
|
@@ -9743,7 +9731,7 @@ var Jo = /* @__PURE__ */ function(a) {
|
|
|
9743
9731
|
(function(a, o) {
|
|
9744
9732
|
(function(r, t) {
|
|
9745
9733
|
a.exports = t();
|
|
9746
|
-
})(
|
|
9734
|
+
})(is, function() {
|
|
9747
9735
|
return function r(t, e, i) {
|
|
9748
9736
|
var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(D) {
|
|
9749
9737
|
return String(D);
|
|
@@ -9758,11 +9746,11 @@ var Jo = /* @__PURE__ */ function(a) {
|
|
|
9758
9746
|
}
|
|
9759
9747
|
if (/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u))
|
|
9760
9748
|
if (u.length > 1024 * 1024 * 1.999 && g !== d)
|
|
9761
|
-
u =
|
|
9749
|
+
u = F(u), l = u.type || s;
|
|
9762
9750
|
else
|
|
9763
9751
|
return navigator.msSaveBlob ? (
|
|
9764
9752
|
// IE10 can't do a[download], only Blobs:
|
|
9765
|
-
navigator.msSaveBlob(
|
|
9753
|
+
navigator.msSaveBlob(F(u), p)
|
|
9766
9754
|
) : z(u);
|
|
9767
9755
|
else if (/([\x80-\xff])/.test(u)) {
|
|
9768
9756
|
var b = 0, w = new Uint8Array(u.length), B = w.length;
|
|
@@ -9771,10 +9759,10 @@ var Jo = /* @__PURE__ */ function(a) {
|
|
|
9771
9759
|
u = new g([w], { type: l });
|
|
9772
9760
|
}
|
|
9773
9761
|
m = u instanceof g ? u : new g([u], { type: l });
|
|
9774
|
-
function
|
|
9775
|
-
var q = D.split(/[:;,]/), G = q[1], H = q[2] == "base64" ? atob : decodeURIComponent,
|
|
9762
|
+
function F(D) {
|
|
9763
|
+
var q = D.split(/[:;,]/), G = q[1], H = q[2] == "base64" ? atob : decodeURIComponent, J = H(q.pop()), re = J.length, se = 0, xe = new Uint8Array(re);
|
|
9776
9764
|
for (se; se < re; ++se)
|
|
9777
|
-
xe[se] =
|
|
9765
|
+
xe[se] = J.charCodeAt(se);
|
|
9778
9766
|
return new g([xe], { type: G });
|
|
9779
9767
|
}
|
|
9780
9768
|
function z(D, q) {
|
|
@@ -9812,9 +9800,9 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
9812
9800
|
};
|
|
9813
9801
|
});
|
|
9814
9802
|
})(yn);
|
|
9815
|
-
var
|
|
9816
|
-
const
|
|
9817
|
-
function
|
|
9803
|
+
var Jo = yn.exports;
|
|
9804
|
+
const Qo = /* @__PURE__ */ $t(Jo);
|
|
9805
|
+
function ea() {
|
|
9818
9806
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
9819
9807
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
9820
9808
|
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
@@ -9831,7 +9819,7 @@ function ta() {
|
|
|
9831
9819
|
</svg>
|
|
9832
9820
|
`, "image/svg+xml").firstChild;
|
|
9833
9821
|
}
|
|
9834
|
-
var
|
|
9822
|
+
var ta = /* @__PURE__ */ function(a) {
|
|
9835
9823
|
x(r, a);
|
|
9836
9824
|
var o = P(r);
|
|
9837
9825
|
function r(t) {
|
|
@@ -9842,7 +9830,7 @@ var ia = /* @__PURE__ */ function(a) {
|
|
|
9842
9830
|
var n = e.playerConfig.url, s = "";
|
|
9843
9831
|
f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
|
|
9844
9832
|
var l = e.getAbsoluteURL(s);
|
|
9845
|
-
|
|
9833
|
+
Qo(l), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
9846
9834
|
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
9847
9835
|
}, 300);
|
|
9848
9836
|
}
|
|
@@ -9851,7 +9839,7 @@ var ia = /* @__PURE__ */ function(a) {
|
|
|
9851
9839
|
return E(r, [{
|
|
9852
9840
|
key: "afterCreate",
|
|
9853
9841
|
value: function() {
|
|
9854
|
-
|
|
9842
|
+
A(I(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.appendChild(".xgplayer-icon", this.icons.download), this._handler = this.hook("click", this.download, {
|
|
9855
9843
|
pre: function(i) {
|
|
9856
9844
|
i.preventDefault(), i.stopPropagation();
|
|
9857
9845
|
}
|
|
@@ -9861,7 +9849,7 @@ var ia = /* @__PURE__ */ function(a) {
|
|
|
9861
9849
|
key: "registerIcons",
|
|
9862
9850
|
value: function() {
|
|
9863
9851
|
return {
|
|
9864
|
-
download:
|
|
9852
|
+
download: ea
|
|
9865
9853
|
};
|
|
9866
9854
|
}
|
|
9867
9855
|
}, {
|
|
@@ -9876,7 +9864,7 @@ var ia = /* @__PURE__ */ function(a) {
|
|
|
9876
9864
|
}, {
|
|
9877
9865
|
key: "destroy",
|
|
9878
9866
|
value: function() {
|
|
9879
|
-
|
|
9867
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.download), window.clearTimeout(this.timer), this.timer = null;
|
|
9880
9868
|
}
|
|
9881
9869
|
}, {
|
|
9882
9870
|
key: "render",
|
|
@@ -9897,13 +9885,13 @@ var ia = /* @__PURE__ */ function(a) {
|
|
|
9897
9885
|
key: "defaultConfig",
|
|
9898
9886
|
get: function() {
|
|
9899
9887
|
return {
|
|
9900
|
-
position:
|
|
9888
|
+
position: V.CONTROLS_RIGHT,
|
|
9901
9889
|
index: 3,
|
|
9902
9890
|
disable: !0
|
|
9903
9891
|
};
|
|
9904
9892
|
}
|
|
9905
9893
|
}]), r;
|
|
9906
|
-
}(
|
|
9894
|
+
}(Fe), ia = /* @__PURE__ */ function(a) {
|
|
9907
9895
|
x(r, a);
|
|
9908
9896
|
var o = P(r);
|
|
9909
9897
|
function r() {
|
|
@@ -9917,7 +9905,7 @@ var ia = /* @__PURE__ */ function(a) {
|
|
|
9917
9905
|
}, {
|
|
9918
9906
|
key: "afterCreate",
|
|
9919
9907
|
value: function() {
|
|
9920
|
-
|
|
9908
|
+
A(I(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.screenshotIcon);
|
|
9921
9909
|
var e = this.config;
|
|
9922
9910
|
this.initSize = function(i) {
|
|
9923
9911
|
e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
|
|
@@ -9974,8 +9962,8 @@ var ia = /* @__PURE__ */ function(a) {
|
|
|
9974
9962
|
p = u.media.canvas;
|
|
9975
9963
|
else {
|
|
9976
9964
|
n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), p = n.canvas, m = n.canvasCtx;
|
|
9977
|
-
var _ = u.media.videoWidth / u.media.videoHeight, C = p.width / p.height, b = 0, w = 0, B = u.media.videoWidth,
|
|
9978
|
-
_ > C ? (q = p.width, G = p.width / _, z = 0, D = Math.round((p.height - G) / 2)) : _ === C ? (q = p.width, G = p.height, z = 0, D = 0) : _ < C && (q = p.height * _, G = p.height, z = Math.round((p.width - q) / 2), D = 0), m.drawImage(u.media, b, w, B,
|
|
9965
|
+
var _ = u.media.videoWidth / u.media.videoHeight, C = p.width / p.height, b = 0, w = 0, B = u.media.videoWidth, F = u.media.videoHeight, z, D, q, G;
|
|
9966
|
+
_ > C ? (q = p.width, G = p.width / _, z = 0, D = Math.round((p.height - G) / 2)) : _ === C ? (q = p.width, G = p.height, z = 0, D = 0) : _ < C && (q = p.height * _, G = p.height, z = Math.round((p.width - q) / 2), D = 0), m.drawImage(u.media, b, w, B, F, z, D, q, G);
|
|
9979
9967
|
}
|
|
9980
9968
|
var H = p.toDataURL(h, c).replace(h, "image/octet-stream");
|
|
9981
9969
|
H = H.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(H);
|
|
@@ -9991,7 +9979,7 @@ var ia = /* @__PURE__ */ function(a) {
|
|
|
9991
9979
|
}, {
|
|
9992
9980
|
key: "destroy",
|
|
9993
9981
|
value: function() {
|
|
9994
|
-
|
|
9982
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(be, this.initSize);
|
|
9995
9983
|
}
|
|
9996
9984
|
}, {
|
|
9997
9985
|
key: "render",
|
|
@@ -10015,7 +10003,7 @@ var ia = /* @__PURE__ */ function(a) {
|
|
|
10015
10003
|
key: "defaultConfig",
|
|
10016
10004
|
get: function() {
|
|
10017
10005
|
return {
|
|
10018
|
-
position:
|
|
10006
|
+
position: V.CONTROLS_RIGHT,
|
|
10019
10007
|
index: 5,
|
|
10020
10008
|
quality: 0.92,
|
|
10021
10009
|
type: "image/png",
|
|
@@ -10029,7 +10017,7 @@ var ia = /* @__PURE__ */ function(a) {
|
|
|
10029
10017
|
};
|
|
10030
10018
|
}
|
|
10031
10019
|
}]), r;
|
|
10032
|
-
}(
|
|
10020
|
+
}(Fe), na = /* @__PURE__ */ function() {
|
|
10033
10021
|
function a(o) {
|
|
10034
10022
|
T(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);
|
|
10035
10023
|
var r = this.config.maxHeight;
|
|
@@ -10105,12 +10093,12 @@ var ia = /* @__PURE__ */ function(a) {
|
|
|
10105
10093
|
SIDE: "side",
|
|
10106
10094
|
MIDDLE: "middle",
|
|
10107
10095
|
DEFAULT: "default"
|
|
10108
|
-
},
|
|
10096
|
+
}, He = {
|
|
10109
10097
|
CLICK: "click",
|
|
10110
10098
|
HOVER: "hover"
|
|
10111
10099
|
};
|
|
10112
|
-
function
|
|
10113
|
-
return a === ce.SIDE ? o ===
|
|
10100
|
+
function ra(a, o) {
|
|
10101
|
+
return a === ce.SIDE ? o === V.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10114
10102
|
}
|
|
10115
10103
|
var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
10116
10104
|
x(r, a);
|
|
@@ -10124,7 +10112,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10124
10112
|
}), y(v(e), "switchActiveState", function(i) {
|
|
10125
10113
|
i.stopPropagation();
|
|
10126
10114
|
var n = e.config.toggleMode;
|
|
10127
|
-
n ===
|
|
10115
|
+
n === He.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
|
|
10128
10116
|
}), y(v(e), "onLeave", function(i) {
|
|
10129
10117
|
i.stopPropagation(), e.emit("icon_mouseleave", {
|
|
10130
10118
|
pluginName: e.pluginName
|
|
@@ -10150,7 +10138,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10150
10138
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
10151
10139
|
}), Pe && this.on(Jt, function() {
|
|
10152
10140
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
10153
|
-
}), Pe ? (i.toggleMode =
|
|
10141
|
+
}), Pe ? (i.toggleMode = He.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === He.CLICK ? "click" : "mouseenter", i.toggleMode === He.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
|
|
10154
10142
|
}
|
|
10155
10143
|
}, {
|
|
10156
10144
|
key: "initIcons",
|
|
@@ -10223,7 +10211,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10223
10211
|
var c = {
|
|
10224
10212
|
config: {
|
|
10225
10213
|
data: e || [],
|
|
10226
|
-
className:
|
|
10214
|
+
className: ra(s.listType, s.position),
|
|
10227
10215
|
onItemClick: function(m, _) {
|
|
10228
10216
|
n.onItemClick(m, _);
|
|
10229
10217
|
},
|
|
@@ -10233,7 +10221,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10233
10221
|
};
|
|
10234
10222
|
if (this.config.isShowIcon) {
|
|
10235
10223
|
var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === ce.MIDDLE ? d - 50 : d;
|
|
10236
|
-
g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new
|
|
10224
|
+
g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new na(c), this.changeCurrentText(), this.show();
|
|
10237
10225
|
}
|
|
10238
10226
|
this._resizeList();
|
|
10239
10227
|
}
|
|
@@ -10251,7 +10239,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10251
10239
|
key: "destroy",
|
|
10252
10240
|
value: function() {
|
|
10253
10241
|
var e = this.config;
|
|
10254
|
-
e.toggleMode ===
|
|
10242
|
+
e.toggleMode === He.CLICK ? this.unbind(this.activeEvent, this.switchActiveState) : (this.unbind(this.activeEvent, this.onEnter), this.unbind("mouseleave", this.onLeave)), this.isIcons && this.unbind("click", this.onIconClick), this.optionsList && (this.optionsList.destroy(), this.optionsList = null);
|
|
10255
10243
|
}
|
|
10256
10244
|
}, {
|
|
10257
10245
|
key: "render",
|
|
@@ -10271,7 +10259,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10271
10259
|
key: "defaultConfig",
|
|
10272
10260
|
get: function() {
|
|
10273
10261
|
return {
|
|
10274
|
-
position:
|
|
10262
|
+
position: V.CONTROLS_RIGHT,
|
|
10275
10263
|
index: 100,
|
|
10276
10264
|
list: [],
|
|
10277
10265
|
listType: "default",
|
|
@@ -10279,12 +10267,12 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10279
10267
|
hidePortrait: !0,
|
|
10280
10268
|
isShowIcon: !1,
|
|
10281
10269
|
isItemClickHide: !0,
|
|
10282
|
-
toggleMode:
|
|
10270
|
+
toggleMode: He.HOVER,
|
|
10283
10271
|
heightLimit: !0
|
|
10284
10272
|
};
|
|
10285
10273
|
}
|
|
10286
10274
|
}]), r;
|
|
10287
|
-
}(U),
|
|
10275
|
+
}(U), sa = /* @__PURE__ */ function(a) {
|
|
10288
10276
|
x(r, a);
|
|
10289
10277
|
var o = P(r);
|
|
10290
10278
|
function r(t) {
|
|
@@ -10303,7 +10291,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10303
10291
|
key: "afterCreate",
|
|
10304
10292
|
value: function() {
|
|
10305
10293
|
var e = this;
|
|
10306
|
-
|
|
10294
|
+
A(I(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
|
|
10307
10295
|
e.changeDefinitionList(i);
|
|
10308
10296
|
}), this.on(ii, function(i) {
|
|
10309
10297
|
e.renderItemList(e.config.list, i.to);
|
|
@@ -10339,7 +10327,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10339
10327
|
});
|
|
10340
10328
|
return (c.selected || c.definition && c.definition == s) && (d.selected = !0, l = h), d;
|
|
10341
10329
|
});
|
|
10342
|
-
|
|
10330
|
+
A(I(r.prototype), "renderItemList", this).call(this, u, l);
|
|
10343
10331
|
}
|
|
10344
10332
|
}, {
|
|
10345
10333
|
key: "changeDefinitionList",
|
|
@@ -10357,7 +10345,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10357
10345
|
key: "onItemClick",
|
|
10358
10346
|
value: function(e, i) {
|
|
10359
10347
|
var n = this.player.definitionList;
|
|
10360
|
-
|
|
10348
|
+
A(I(r.prototype), "onItemClick", this).apply(this, arguments), this.emitUserAction(e, "change_definition", {
|
|
10361
10349
|
from: i.from,
|
|
10362
10350
|
to: i.to
|
|
10363
10351
|
});
|
|
@@ -10374,7 +10362,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10374
10362
|
key: "defaultConfig",
|
|
10375
10363
|
get: function() {
|
|
10376
10364
|
return W(W({}, mt.defaultConfig), {}, {
|
|
10377
|
-
position:
|
|
10365
|
+
position: V.CONTROLS_RIGHT,
|
|
10378
10366
|
index: 3,
|
|
10379
10367
|
list: [],
|
|
10380
10368
|
defaultDefinition: "",
|
|
@@ -10385,7 +10373,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10385
10373
|
});
|
|
10386
10374
|
}
|
|
10387
10375
|
}]), r;
|
|
10388
|
-
}(mt),
|
|
10376
|
+
}(mt), oa = /* @__PURE__ */ function(a) {
|
|
10389
10377
|
x(r, a);
|
|
10390
10378
|
var o = P(r);
|
|
10391
10379
|
function r(t) {
|
|
@@ -10407,19 +10395,19 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10407
10395
|
key: "afterCreate",
|
|
10408
10396
|
value: function() {
|
|
10409
10397
|
var e = this;
|
|
10410
|
-
|
|
10398
|
+
A(I(r.prototype), "afterCreate", this).call(this), this.on(qi, function() {
|
|
10411
10399
|
e.curValue !== e.player.playbackRate && e.renderItemList();
|
|
10412
10400
|
}), this.renderItemList();
|
|
10413
10401
|
}
|
|
10414
10402
|
}, {
|
|
10415
10403
|
key: "show",
|
|
10416
10404
|
value: function(e) {
|
|
10417
|
-
!this.config.list || this.config.list.length === 0 ||
|
|
10405
|
+
!this.config.list || this.config.list.length === 0 || A(I(r.prototype), "show", this).call(this);
|
|
10418
10406
|
}
|
|
10419
10407
|
}, {
|
|
10420
10408
|
key: "onItemClick",
|
|
10421
10409
|
value: function(e, i) {
|
|
10422
|
-
|
|
10410
|
+
A(I(r.prototype), "onItemClick", this).call(this, e, i);
|
|
10423
10411
|
var n = e.delegateTarget, s = Number(n.getAttribute("rate"));
|
|
10424
10412
|
if (!s || s === this.curValue)
|
|
10425
10413
|
return !1;
|
|
@@ -10444,7 +10432,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10444
10432
|
};
|
|
10445
10433
|
return c.rate === i && (c.selected = !0, n = u), c.showText = e.getTextByLang(l), c;
|
|
10446
10434
|
});
|
|
10447
|
-
|
|
10435
|
+
A(I(r.prototype), "renderItemList", this).call(this, s, n);
|
|
10448
10436
|
}
|
|
10449
10437
|
}, {
|
|
10450
10438
|
key: "changeCurrentText",
|
|
@@ -10457,7 +10445,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10457
10445
|
}, {
|
|
10458
10446
|
key: "destroy",
|
|
10459
10447
|
value: function() {
|
|
10460
|
-
|
|
10448
|
+
A(I(r.prototype), "destroy", this).call(this);
|
|
10461
10449
|
}
|
|
10462
10450
|
}], [{
|
|
10463
10451
|
key: "pluginName",
|
|
@@ -10468,7 +10456,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10468
10456
|
key: "defaultConfig",
|
|
10469
10457
|
get: function() {
|
|
10470
10458
|
return W(W({}, mt.defaultConfig), {}, {
|
|
10471
|
-
position:
|
|
10459
|
+
position: V.CONTROLS_RIGHT,
|
|
10472
10460
|
index: 4,
|
|
10473
10461
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
10474
10462
|
className: "xgplayer-playbackrate",
|
|
@@ -10478,13 +10466,13 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10478
10466
|
}
|
|
10479
10467
|
}]), r;
|
|
10480
10468
|
}(mt);
|
|
10481
|
-
function
|
|
10469
|
+
function aa() {
|
|
10482
10470
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10483
10471
|
<path fill="#fff" transform="scale(1.3, 1.3)" class='path_full' d="M9,10v1a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V9A.9.9,0,0,1,8,8h2a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm6,4V13a1,1,0,0,1,2,0v2a.9.9,0,0,1-1,1H14a1,1,0,0,1,0-2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
10484
10472
|
</svg>
|
|
10485
10473
|
`, "image/svg+xml").firstChild;
|
|
10486
10474
|
}
|
|
10487
|
-
function
|
|
10475
|
+
function la() {
|
|
10488
10476
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10489
10477
|
<path fill="#fff" transform="scale(1.3, 1.3)" d="M9,10V9a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1v2a.9.9,0,0,1-1,1H8a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1Zm6,4v1a1,1,0,0,1-2,0V13a.9.9,0,0,1,1-1h2a1,1,0,0,1,0,2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
10490
10478
|
</svg>
|
|
@@ -10505,7 +10493,7 @@ var Ni = /* @__PURE__ */ function(a) {
|
|
|
10505
10493
|
key: "afterCreate",
|
|
10506
10494
|
value: function() {
|
|
10507
10495
|
var e = this;
|
|
10508
|
-
|
|
10496
|
+
A(I(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(ct, function(i) {
|
|
10509
10497
|
e.animate(i);
|
|
10510
10498
|
}), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
|
|
10511
10499
|
pre: function(n) {
|
|
@@ -10544,11 +10532,11 @@ var Ni = /* @__PURE__ */ function(a) {
|
|
|
10544
10532
|
value: function() {
|
|
10545
10533
|
return {
|
|
10546
10534
|
cssFullscreen: {
|
|
10547
|
-
icon:
|
|
10535
|
+
icon: aa,
|
|
10548
10536
|
class: "xg-get-cssfull"
|
|
10549
10537
|
},
|
|
10550
10538
|
exitCssFullscreen: {
|
|
10551
|
-
icon:
|
|
10539
|
+
icon: la,
|
|
10552
10540
|
class: "xg-exit-cssfull"
|
|
10553
10541
|
}
|
|
10554
10542
|
};
|
|
@@ -10556,7 +10544,7 @@ var Ni = /* @__PURE__ */ function(a) {
|
|
|
10556
10544
|
}, {
|
|
10557
10545
|
key: "destroy",
|
|
10558
10546
|
value: function() {
|
|
10559
|
-
|
|
10547
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.btnClick);
|
|
10560
10548
|
}
|
|
10561
10549
|
}, {
|
|
10562
10550
|
key: "render",
|
|
@@ -10577,14 +10565,14 @@ var Ni = /* @__PURE__ */ function(a) {
|
|
|
10577
10565
|
key: "defaultConfig",
|
|
10578
10566
|
get: function() {
|
|
10579
10567
|
return {
|
|
10580
|
-
position:
|
|
10568
|
+
position: V.CONTROLS_RIGHT,
|
|
10581
10569
|
index: 1,
|
|
10582
10570
|
disable: !1,
|
|
10583
10571
|
target: null
|
|
10584
10572
|
};
|
|
10585
10573
|
}
|
|
10586
10574
|
}]), r;
|
|
10587
|
-
}(
|
|
10575
|
+
}(Fe), ua = /* @__PURE__ */ function(a) {
|
|
10588
10576
|
x(r, a);
|
|
10589
10577
|
var o = P(r);
|
|
10590
10578
|
function r() {
|
|
@@ -10645,7 +10633,7 @@ var Ni = /* @__PURE__ */ function(a) {
|
|
|
10645
10633
|
return "error";
|
|
10646
10634
|
}
|
|
10647
10635
|
}]), r;
|
|
10648
|
-
}(U),
|
|
10636
|
+
}(U), ca = /* @__PURE__ */ function(a) {
|
|
10649
10637
|
x(r, a);
|
|
10650
10638
|
var o = P(r);
|
|
10651
10639
|
function r() {
|
|
@@ -10875,7 +10863,7 @@ var Hi = {
|
|
|
10875
10863
|
return r.find('xg-spot[data-id="'.concat(o, '"]'));
|
|
10876
10864
|
}
|
|
10877
10865
|
};
|
|
10878
|
-
function
|
|
10866
|
+
function fa(a) {
|
|
10879
10867
|
var o = a.config, r = a.player;
|
|
10880
10868
|
Object.keys(Hi).map(function(e) {
|
|
10881
10869
|
a[e] = Hi[e].bind(a);
|
|
@@ -10892,14 +10880,14 @@ function ha(a) {
|
|
|
10892
10880
|
a.positionDots();
|
|
10893
10881
|
});
|
|
10894
10882
|
}
|
|
10895
|
-
var
|
|
10883
|
+
var Ue = {
|
|
10896
10884
|
dragmove: "onProgressMove",
|
|
10897
10885
|
dragstart: "onProgressDragStart",
|
|
10898
10886
|
dragend: "onProgressDragEnd",
|
|
10899
10887
|
click: "onProgressClick",
|
|
10900
10888
|
mouseover: "onProgressMouseOver",
|
|
10901
10889
|
mouseenter: "onProgressMouseOver"
|
|
10902
|
-
},
|
|
10890
|
+
}, ha = /* @__PURE__ */ function(a) {
|
|
10903
10891
|
x(r, a);
|
|
10904
10892
|
var o = P(r);
|
|
10905
10893
|
function r(t) {
|
|
@@ -10950,7 +10938,7 @@ var ze = {
|
|
|
10950
10938
|
n.seekTime && e.player.seek(n.seekTime);
|
|
10951
10939
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
10952
10940
|
e.setTimeContent(f.format(i));
|
|
10953
|
-
}),
|
|
10941
|
+
}), fa(this), this.on(Ee, function() {
|
|
10954
10942
|
e.show();
|
|
10955
10943
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
10956
10944
|
}
|
|
@@ -10972,8 +10960,8 @@ var ze = {
|
|
|
10972
10960
|
key: "bindEvents",
|
|
10973
10961
|
value: function() {
|
|
10974
10962
|
var e = this, i = this.player.plugins.progress;
|
|
10975
|
-
if (i && (Object.keys(
|
|
10976
|
-
e[
|
|
10963
|
+
if (i && (Object.keys(Ue).map(function(s) {
|
|
10964
|
+
e[Ue[s]] = e[Ue[s]].bind(e), i.addCallBack(s, e[Ue[s]]);
|
|
10977
10965
|
}), R.device !== "mobile")) {
|
|
10978
10966
|
this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
|
|
10979
10967
|
var n = this.hook("previewClick", function() {
|
|
@@ -11131,8 +11119,8 @@ var ze = {
|
|
|
11131
11119
|
key: "destroy",
|
|
11132
11120
|
value: function() {
|
|
11133
11121
|
var e = this, i = this.player.plugins.progress;
|
|
11134
|
-
i && Object.keys(
|
|
11135
|
-
i.removeCallBack(n, e[
|
|
11122
|
+
i && Object.keys(Ue).map(function(n) {
|
|
11123
|
+
i.removeCallBack(n, e[Ue[n]]);
|
|
11136
11124
|
}), this.videothumbnail = null, this.thumbnail = null, this.videoPreview && this.player.root.removeChild(this.videoPreview), this.unbind(".xg-spot-info", "mousemove", this.onMousemove), this.unbind(".xg-spot-info", "mousedown", this.onMousedown), this.unbind(".xg-spot-info", "mouseup", this.onMouseup), this.unbind(".xg-spot-content", "mouseup", this.handlerPreviewClick);
|
|
11137
11125
|
}
|
|
11138
11126
|
}, {
|
|
@@ -11174,7 +11162,7 @@ var ze = {
|
|
|
11174
11162
|
};
|
|
11175
11163
|
}
|
|
11176
11164
|
}]), r;
|
|
11177
|
-
}(U),
|
|
11165
|
+
}(U), da = /* @__PURE__ */ function(a) {
|
|
11178
11166
|
x(r, a);
|
|
11179
11167
|
var o = P(r);
|
|
11180
11168
|
function r(t) {
|
|
@@ -11244,16 +11232,16 @@ var ze = {
|
|
|
11244
11232
|
B < h / d ? (w = n, b = w * (h / d)) : (b = i, w = b / (h / d));
|
|
11245
11233
|
} else
|
|
11246
11234
|
n ? i || (w = n || d, b = w * (h / d)) : (b = i || h, w = b / (h / d));
|
|
11247
|
-
var
|
|
11235
|
+
var F = this.getUrlByIndex(p);
|
|
11248
11236
|
return {
|
|
11249
11237
|
urlIndex: p,
|
|
11250
11238
|
rowIndex: _,
|
|
11251
11239
|
colIndex: C,
|
|
11252
|
-
url:
|
|
11240
|
+
url: F,
|
|
11253
11241
|
height: w,
|
|
11254
11242
|
width: b,
|
|
11255
11243
|
style: {
|
|
11256
|
-
backgroundImage: "url(".concat(
|
|
11244
|
+
backgroundImage: "url(".concat(F, ")"),
|
|
11257
11245
|
backgroundSize: "".concat(b * c, "px auto"),
|
|
11258
11246
|
backgroundPosition: "-".concat(C * b, "px -").concat(_ * w, "px"),
|
|
11259
11247
|
width: "".concat(b, "px"),
|
|
@@ -11312,7 +11300,7 @@ var ze = {
|
|
|
11312
11300
|
function Mt(a) {
|
|
11313
11301
|
return a ? "background:".concat(a, ";") : "";
|
|
11314
11302
|
}
|
|
11315
|
-
var
|
|
11303
|
+
var ga = /* @__PURE__ */ function(a) {
|
|
11316
11304
|
x(r, a);
|
|
11317
11305
|
var o = P(r);
|
|
11318
11306
|
function r() {
|
|
@@ -11342,7 +11330,7 @@ var pa = /* @__PURE__ */ function(a) {
|
|
|
11342
11330
|
key: "afterCreate",
|
|
11343
11331
|
value: function() {
|
|
11344
11332
|
var e = this;
|
|
11345
|
-
this.root && (this.on(ie, this.onTimeupdate), this.on(
|
|
11333
|
+
this.root && (this.on(ie, this.onTimeupdate), this.on(Oe, function() {
|
|
11346
11334
|
e.reset();
|
|
11347
11335
|
}));
|
|
11348
11336
|
}
|
|
@@ -11394,20 +11382,20 @@ var pa = /* @__PURE__ */ function(a) {
|
|
|
11394
11382
|
};
|
|
11395
11383
|
}
|
|
11396
11384
|
}]), r;
|
|
11397
|
-
}(U),
|
|
11385
|
+
}(U), ze = {
|
|
11398
11386
|
REAL_TIME: "realtime",
|
|
11399
11387
|
FIRST_FRAME: "firstframe",
|
|
11400
11388
|
FRAME_RATE: "framerate",
|
|
11401
11389
|
POSTER: "poster"
|
|
11402
11390
|
};
|
|
11403
|
-
function
|
|
11391
|
+
function pa() {
|
|
11404
11392
|
try {
|
|
11405
11393
|
return parseInt(window.performance.now(), 10);
|
|
11406
11394
|
} catch {
|
|
11407
11395
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
11408
11396
|
}
|
|
11409
11397
|
}
|
|
11410
|
-
function
|
|
11398
|
+
function va() {
|
|
11411
11399
|
try {
|
|
11412
11400
|
var a = document.createElement("canvas").getContext;
|
|
11413
11401
|
return !!a;
|
|
@@ -11415,7 +11403,7 @@ function ma() {
|
|
|
11415
11403
|
return !1;
|
|
11416
11404
|
}
|
|
11417
11405
|
}
|
|
11418
|
-
var st = null,
|
|
11406
|
+
var st = null, ma = /* @__PURE__ */ function(a) {
|
|
11419
11407
|
x(r, a);
|
|
11420
11408
|
var o = P(r);
|
|
11421
11409
|
function r() {
|
|
@@ -11436,8 +11424,8 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11436
11424
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
11437
11425
|
}
|
|
11438
11426
|
}), y(v(t), "start", function(s, l) {
|
|
11439
|
-
var u = t.player.video, c =
|
|
11440
|
-
!h || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode ===
|
|
11427
|
+
var u = t.player.video, c = pa(), h = t.checkVideoIsSupport(u);
|
|
11428
|
+
!h || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === ze.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(v(t), t.start, l) : f.requestAnimationFrame(t.start));
|
|
11441
11429
|
}), y(v(t), "stop", function() {
|
|
11442
11430
|
t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
11443
11431
|
}), t;
|
|
@@ -11456,9 +11444,9 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11456
11444
|
x: 0,
|
|
11457
11445
|
y: 0,
|
|
11458
11446
|
pi: 0
|
|
11459
|
-
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !==
|
|
11447
|
+
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== ze.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(Ct, function() {
|
|
11460
11448
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
11461
|
-
}), s !==
|
|
11449
|
+
}), s !== ze.POSTER && (s !== ze.FIRST_FRAME && (this.on(Oe, function() {
|
|
11462
11450
|
e.stop();
|
|
11463
11451
|
}), this.on(ne, function() {
|
|
11464
11452
|
var u = e.config.startInterval;
|
|
@@ -11530,7 +11518,7 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11530
11518
|
key: "_checkIfCanStart",
|
|
11531
11519
|
value: function() {
|
|
11532
11520
|
var e = this.config.mode;
|
|
11533
|
-
return this._isLoaded && !this.player.paused && e !==
|
|
11521
|
+
return this._isLoaded && !this.player.paused && e !== ze.FIRST_FRAME && e !== ze.POSTER;
|
|
11534
11522
|
}
|
|
11535
11523
|
}, {
|
|
11536
11524
|
key: "renderOnce",
|
|
@@ -11609,7 +11597,7 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11609
11597
|
}, {
|
|
11610
11598
|
key: "isSupport",
|
|
11611
11599
|
get: function() {
|
|
11612
|
-
return typeof st == "boolean" || (st =
|
|
11600
|
+
return typeof st == "boolean" || (st = va()), st;
|
|
11613
11601
|
}
|
|
11614
11602
|
}, {
|
|
11615
11603
|
key: "supportCanvasFilter",
|
|
@@ -11617,7 +11605,7 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11617
11605
|
return !(R.browser === "safari" || R.browser === "firefox");
|
|
11618
11606
|
}
|
|
11619
11607
|
}]), r;
|
|
11620
|
-
}(U),
|
|
11608
|
+
}(U), ya = {
|
|
11621
11609
|
LANG: "zh-cn",
|
|
11622
11610
|
TEXT: {
|
|
11623
11611
|
ERROR_TYPES: {
|
|
@@ -11692,7 +11680,7 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11692
11680
|
FORWARD: "快进中",
|
|
11693
11681
|
LIVE_TIP: "直播"
|
|
11694
11682
|
}
|
|
11695
|
-
}, qe = "info", Nt = fn,
|
|
11683
|
+
}, qe = "info", Nt = fn, _a = /* @__PURE__ */ function(a) {
|
|
11696
11684
|
x(r, a);
|
|
11697
11685
|
var o = P(r);
|
|
11698
11686
|
function r() {
|
|
@@ -11926,7 +11914,7 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11926
11914
|
}]), r;
|
|
11927
11915
|
}(U);
|
|
11928
11916
|
Cn.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
11929
|
-
var
|
|
11917
|
+
var Ca = /* @__PURE__ */ function(a) {
|
|
11930
11918
|
x(r, a);
|
|
11931
11919
|
var o = P(r);
|
|
11932
11920
|
function r() {
|
|
@@ -11972,7 +11960,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
11972
11960
|
};
|
|
11973
11961
|
}
|
|
11974
11962
|
}]), r;
|
|
11975
|
-
}(U),
|
|
11963
|
+
}(U), Ve = "cdn", ot = ["cdn"], ka = /* @__PURE__ */ function(a) {
|
|
11976
11964
|
x(r, a);
|
|
11977
11965
|
var o = P(r);
|
|
11978
11966
|
function r() {
|
|
@@ -11981,7 +11969,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
11981
11969
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
11982
11970
|
i[n] = arguments[n];
|
|
11983
11971
|
return t = o.call.apply(o, [this].concat(i)), y(v(t), "getSpeed", function() {
|
|
11984
|
-
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
11972
|
+
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ve;
|
|
11985
11973
|
if (!t.speedListCache || !t.speedListCache[s] || t.speedListCache[s].length <= 0)
|
|
11986
11974
|
return 0;
|
|
11987
11975
|
var l = 0;
|
|
@@ -11995,7 +11983,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
11995
11983
|
t.speedListCache[s] = [];
|
|
11996
11984
|
});
|
|
11997
11985
|
}), y(v(t), "_onRealSpeedChange", function(s) {
|
|
11998
|
-
s.speed && t.appendList(s.speed, s.type ||
|
|
11986
|
+
s.speed && t.appendList(s.speed, s.type || Ve);
|
|
11999
11987
|
}), y(v(t), "testSpeed", function() {
|
|
12000
11988
|
if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
|
|
12001
11989
|
var s = t.config, l = s.url, u = s.loadSize, c = s.testCnt, h = s.testTimeStep, d = l + (l.indexOf("?") < 0 ? "?testst=" : "&testst=") + Date.now();
|
|
@@ -12020,17 +12008,17 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
12020
12008
|
}
|
|
12021
12009
|
}
|
|
12022
12010
|
}), y(v(t), "appendList", function(s) {
|
|
12023
|
-
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
12011
|
+
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ve;
|
|
12024
12012
|
if (!(!t.speedListCache || !t.speedListCache[l])) {
|
|
12025
12013
|
var u = t.config.saveSpeedMax;
|
|
12026
12014
|
t.speedListCache[l].length >= u && t.speedListCache[l].shift(), t.speedListCache[l].push(s);
|
|
12027
12015
|
var c = v(t), h = c.player;
|
|
12028
|
-
h && (l ===
|
|
12016
|
+
h && (l === Ve ? h.realTimeSpeed = s : h[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
|
|
12029
12017
|
}
|
|
12030
12018
|
}), y(v(t), "updateSpeed", function() {
|
|
12031
|
-
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
12019
|
+
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ve, l = t.getSpeed(s), u = v(t), c = u.player;
|
|
12032
12020
|
if (c)
|
|
12033
|
-
if (s ===
|
|
12021
|
+
if (s === Ve)
|
|
12034
12022
|
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(jt, {
|
|
12035
12023
|
speed: l,
|
|
12036
12024
|
realTimeSpeed: c.realTimeSpeed
|
|
@@ -12098,7 +12086,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
12098
12086
|
};
|
|
12099
12087
|
}
|
|
12100
12088
|
}]), r;
|
|
12101
|
-
}(U),
|
|
12089
|
+
}(U), wa = /* @__PURE__ */ function(a) {
|
|
12102
12090
|
x(r, a);
|
|
12103
12091
|
var o = P(r);
|
|
12104
12092
|
function r() {
|
|
@@ -12114,9 +12102,9 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
12114
12102
|
e._startTick();
|
|
12115
12103
|
}), this.on(Ye, function() {
|
|
12116
12104
|
e._stopTick();
|
|
12117
|
-
}), this.on(
|
|
12105
|
+
}), this.on(Re, function() {
|
|
12118
12106
|
e._stopTick();
|
|
12119
|
-
}), this.on(
|
|
12107
|
+
}), this.on(Oe, function() {
|
|
12120
12108
|
e._stopTick();
|
|
12121
12109
|
}));
|
|
12122
12110
|
}
|
|
@@ -12208,24 +12196,24 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
12208
12196
|
}
|
|
12209
12197
|
}]), r;
|
|
12210
12198
|
}(U);
|
|
12211
|
-
We.use(
|
|
12212
|
-
var
|
|
12199
|
+
We.use(ya);
|
|
12200
|
+
var ba = /* @__PURE__ */ E(function a(o, r) {
|
|
12213
12201
|
var t, e, i;
|
|
12214
12202
|
T(this, a);
|
|
12215
|
-
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [
|
|
12216
|
-
this.plugins = [
|
|
12203
|
+
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Uo, Do, ga, ha, Ho], u = [].concat(l, [Ro, Bo, Ko, Zo, sa, oa, ta, ia, Wo, Xo]), c = [fo, ho, po, Io, vo, ua, ca, da, Co];
|
|
12204
|
+
this.plugins = [_a, uo].concat(ae(u), c, [Cn, Ca]);
|
|
12217
12205
|
var h = n ? "mobile" : R.device;
|
|
12218
12206
|
switch (h) {
|
|
12219
12207
|
case "pc":
|
|
12220
|
-
(t = this.plugins).push.apply(t, [Fi, Ot, Ni,
|
|
12208
|
+
(t = this.plugins).push.apply(t, [Fi, Ot, Ni, ka, wa]);
|
|
12221
12209
|
break;
|
|
12222
12210
|
case "mobile":
|
|
12223
|
-
(e = this.plugins).push.apply(e, [
|
|
12211
|
+
(e = this.plugins).push.apply(e, [So]);
|
|
12224
12212
|
break;
|
|
12225
12213
|
default:
|
|
12226
12214
|
(i = this.plugins).push.apply(i, [Fi, Ot, Ni]);
|
|
12227
12215
|
}
|
|
12228
|
-
(R.os.isIpad || h === "pc") && this.plugins.push(
|
|
12216
|
+
(R.os.isIpad || h === "pc") && this.plugins.push(ma), R.os.isIpad && this.plugins.push(Ot), this.ignores = [], this.i18n = [];
|
|
12229
12217
|
}), ue = /* @__PURE__ */ function(a) {
|
|
12230
12218
|
x(r, a);
|
|
12231
12219
|
var o = P(r);
|
|
@@ -12234,17 +12222,17 @@ var Ta = /* @__PURE__ */ E(function a(o, r) {
|
|
|
12234
12222
|
}
|
|
12235
12223
|
return E(r);
|
|
12236
12224
|
}(bt);
|
|
12237
|
-
y(ue, "defaultPreset",
|
|
12225
|
+
y(ue, "defaultPreset", ba);
|
|
12238
12226
|
y(ue, "Util", f);
|
|
12239
12227
|
y(ue, "Sniffer", R);
|
|
12240
12228
|
y(ue, "Errors", lt);
|
|
12241
|
-
y(ue, "Events",
|
|
12229
|
+
y(ue, "Events", Ns);
|
|
12242
12230
|
y(ue, "Plugin", U);
|
|
12243
12231
|
y(ue, "BasePlugin", Te);
|
|
12244
12232
|
y(ue, "I18N", We);
|
|
12245
12233
|
y(ue, "STATE_CLASS", k);
|
|
12246
12234
|
y(ue, "InstManager", vn);
|
|
12247
|
-
const
|
|
12235
|
+
const Ta = ["id"], Ea = /* @__PURE__ */ le({
|
|
12248
12236
|
name: "ElImageViewer",
|
|
12249
12237
|
__name: "Player",
|
|
12250
12238
|
props: /* @__PURE__ */ at({
|
|
@@ -12308,11 +12296,11 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
|
|
|
12308
12296
|
});
|
|
12309
12297
|
}), (g, p) => {
|
|
12310
12298
|
const m = $e("el-icon");
|
|
12311
|
-
return u.value ? (
|
|
12299
|
+
return u.value ? (L(), we(En, {
|
|
12312
12300
|
key: 0,
|
|
12313
12301
|
to: "body"
|
|
12314
12302
|
}, [
|
|
12315
|
-
|
|
12303
|
+
Q(Sn, {
|
|
12316
12304
|
name: "viewer-fade",
|
|
12317
12305
|
appear: ""
|
|
12318
12306
|
}, {
|
|
@@ -12322,14 +12310,14 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
|
|
|
12322
12310
|
{
|
|
12323
12311
|
ref: "wrapper",
|
|
12324
12312
|
tabindex: -1,
|
|
12325
|
-
class: ee(
|
|
12313
|
+
class: ee(j(h).e("wrapper")),
|
|
12326
12314
|
style: oe({ zIndex: a.zIndex })
|
|
12327
12315
|
},
|
|
12328
12316
|
[
|
|
12329
12317
|
S(
|
|
12330
12318
|
"div",
|
|
12331
12319
|
{
|
|
12332
|
-
class: ee(
|
|
12320
|
+
class: ee(j(h).e("mask"))
|
|
12333
12321
|
},
|
|
12334
12322
|
null,
|
|
12335
12323
|
2
|
|
@@ -12339,21 +12327,21 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
|
|
|
12339
12327
|
S(
|
|
12340
12328
|
"div",
|
|
12341
12329
|
{
|
|
12342
|
-
class: ee(
|
|
12330
|
+
class: ee(j(h).e("canvas"))
|
|
12343
12331
|
},
|
|
12344
12332
|
[
|
|
12345
|
-
S("div", { id:
|
|
12333
|
+
S("div", { id: j(c) }, null, 8, Ta),
|
|
12346
12334
|
he(" CLOSE "),
|
|
12347
12335
|
S(
|
|
12348
12336
|
"span",
|
|
12349
12337
|
{
|
|
12350
|
-
class: ee([
|
|
12338
|
+
class: ee([j(h).e("btn"), j(h).e("close")]),
|
|
12351
12339
|
onClick: d
|
|
12352
12340
|
},
|
|
12353
12341
|
[
|
|
12354
|
-
|
|
12342
|
+
Q(m, { onClick: d }, {
|
|
12355
12343
|
default: de(() => [
|
|
12356
|
-
|
|
12344
|
+
Q(j(Nr))
|
|
12357
12345
|
]),
|
|
12358
12346
|
_: 1
|
|
12359
12347
|
/* STABLE */
|
|
@@ -12379,7 +12367,7 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
|
|
|
12379
12367
|
};
|
|
12380
12368
|
}
|
|
12381
12369
|
});
|
|
12382
|
-
const
|
|
12370
|
+
const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(Sa), Pa = ["onClick"], Ia = { class: "fileName simple" }, Aa = ["onClick"], La = { class: "text" }, Da = { class: "fileName" }, Ra = { class: "size" }, Oa = /* @__PURE__ */ le({
|
|
12383
12371
|
__name: "IkPreviewFile",
|
|
12384
12372
|
props: {
|
|
12385
12373
|
list: {
|
|
@@ -12487,25 +12475,25 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12487
12475
|
return (h, d) => {
|
|
12488
12476
|
var p, m, _;
|
|
12489
12477
|
const g = $e("tmplate");
|
|
12490
|
-
return
|
|
12478
|
+
return L(), N(
|
|
12491
12479
|
Ze,
|
|
12492
12480
|
null,
|
|
12493
12481
|
[
|
|
12494
|
-
(p = a.list) != null && p.length ? (
|
|
12482
|
+
(p = a.list) != null && p.length ? (L(), N(
|
|
12495
12483
|
Ze,
|
|
12496
12484
|
{ key: 0 },
|
|
12497
12485
|
[
|
|
12498
|
-
a.simple ? (
|
|
12486
|
+
a.simple ? (L(!0), N(
|
|
12499
12487
|
Ze,
|
|
12500
12488
|
{ key: 0 },
|
|
12501
|
-
ai(c.value, (C, b) => (
|
|
12489
|
+
ai(c.value, (C, b) => (L(), N("div", {
|
|
12502
12490
|
class: "iking-privew-annex simple",
|
|
12503
12491
|
onClick: (w) => s(C),
|
|
12504
12492
|
style: oe({ width: u.value })
|
|
12505
12493
|
}, [
|
|
12506
12494
|
S(
|
|
12507
12495
|
"div",
|
|
12508
|
-
|
|
12496
|
+
Ia,
|
|
12509
12497
|
Ge(C.name),
|
|
12510
12498
|
1
|
|
12511
12499
|
/* TEXT */
|
|
@@ -12516,13 +12504,13 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12516
12504
|
class: ee(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
12517
12505
|
},
|
|
12518
12506
|
[
|
|
12519
|
-
|
|
12507
|
+
Q(j(je), {
|
|
12520
12508
|
name: "iksvg_daochu",
|
|
12521
12509
|
onClick: li((w) => l(C), ["stop"]),
|
|
12522
12510
|
size: 20,
|
|
12523
12511
|
active: ""
|
|
12524
12512
|
}, null, 8, ["onClick"]),
|
|
12525
|
-
|
|
12513
|
+
Q(j(je), {
|
|
12526
12514
|
name: "iksvg_yulan",
|
|
12527
12515
|
size: 20,
|
|
12528
12516
|
active: ""
|
|
@@ -12534,17 +12522,17 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12534
12522
|
2
|
|
12535
12523
|
/* CLASS */
|
|
12536
12524
|
)
|
|
12537
|
-
], 12,
|
|
12525
|
+
], 12, Pa))),
|
|
12538
12526
|
256
|
|
12539
12527
|
/* UNKEYED_FRAGMENT */
|
|
12540
|
-
)) : (
|
|
12528
|
+
)) : (L(), we(g, { key: 1 }, {
|
|
12541
12529
|
default: de(() => [
|
|
12542
|
-
(
|
|
12530
|
+
(L(!0), N(
|
|
12543
12531
|
Ze,
|
|
12544
12532
|
null,
|
|
12545
12533
|
ai(c.value, (C, b) => {
|
|
12546
12534
|
var w;
|
|
12547
|
-
return
|
|
12535
|
+
return L(), N(
|
|
12548
12536
|
"div",
|
|
12549
12537
|
{
|
|
12550
12538
|
class: ee(["iking-privew-annex", { "is-bg": a.showBg }]),
|
|
@@ -12559,24 +12547,24 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12559
12547
|
class: "file-card",
|
|
12560
12548
|
onClick: (B) => s(C)
|
|
12561
12549
|
}, [
|
|
12562
|
-
|
|
12550
|
+
Q(j(Fr), {
|
|
12563
12551
|
file: C,
|
|
12564
12552
|
style: oe({ height: `${a.iconSize}px` }),
|
|
12565
12553
|
class: "ikui-w-auto",
|
|
12566
12554
|
fields: e.value
|
|
12567
12555
|
}, null, 8, ["file", "style", "fields"]),
|
|
12568
|
-
S("div",
|
|
12556
|
+
S("div", La, [
|
|
12569
12557
|
S(
|
|
12570
12558
|
"div",
|
|
12571
|
-
|
|
12559
|
+
Da,
|
|
12572
12560
|
Ge(C.name),
|
|
12573
12561
|
1
|
|
12574
12562
|
/* TEXT */
|
|
12575
12563
|
),
|
|
12576
12564
|
S(
|
|
12577
12565
|
"div",
|
|
12578
|
-
|
|
12579
|
-
Ge(
|
|
12566
|
+
Ra,
|
|
12567
|
+
Ge(j(Br)(C.size)),
|
|
12580
12568
|
1
|
|
12581
12569
|
/* TEXT */
|
|
12582
12570
|
)
|
|
@@ -12587,14 +12575,14 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12587
12575
|
class: ee(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
12588
12576
|
},
|
|
12589
12577
|
[
|
|
12590
|
-
|
|
12578
|
+
Q(j(je), {
|
|
12591
12579
|
name: "iksvg_daochu",
|
|
12592
12580
|
onClick: li((B) => l(C), ["stop"]),
|
|
12593
12581
|
bg: a.showBg,
|
|
12594
12582
|
size: a.showBg ? "default" : 20,
|
|
12595
12583
|
title: "下载"
|
|
12596
12584
|
}, null, 8, ["onClick", "bg", "size"]),
|
|
12597
|
-
|
|
12585
|
+
Q(j(je), {
|
|
12598
12586
|
name: "iksvg_yulan",
|
|
12599
12587
|
bg: a.showBg,
|
|
12600
12588
|
size: a.showBg ? "default" : 20,
|
|
@@ -12607,7 +12595,7 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12607
12595
|
2
|
|
12608
12596
|
/* CLASS */
|
|
12609
12597
|
)
|
|
12610
|
-
], 8,
|
|
12598
|
+
], 8, Aa)
|
|
12611
12599
|
],
|
|
12612
12600
|
6
|
|
12613
12601
|
/* CLASS, STYLE */
|
|
@@ -12624,14 +12612,14 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12624
12612
|
64
|
|
12625
12613
|
/* STABLE_FRAGMENT */
|
|
12626
12614
|
)) : he("v-if", !0),
|
|
12627
|
-
|
|
12615
|
+
Q(j(zr), {
|
|
12628
12616
|
show: n.value,
|
|
12629
12617
|
"onUpdate:show": d[0] || (d[0] = (C) => n.value = C),
|
|
12630
|
-
loadUrl:
|
|
12618
|
+
loadUrl: j(r),
|
|
12631
12619
|
file: i.value,
|
|
12632
|
-
onlyofficeServer: ((m =
|
|
12633
|
-
onlyOfficeConfig:
|
|
12634
|
-
onlyOfficeAccept: ((_ =
|
|
12620
|
+
onlyofficeServer: ((m = j(t)) == null ? void 0 : m.serverUrl) || a.onlyofficeServer,
|
|
12621
|
+
onlyOfficeConfig: j(t),
|
|
12622
|
+
onlyOfficeAccept: ((_ = j(t)) == null ? void 0 : _.accept) || a.onlyOfficeAccept
|
|
12635
12623
|
}, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
|
|
12636
12624
|
],
|
|
12637
12625
|
64
|
|
@@ -12640,8 +12628,8 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12640
12628
|
};
|
|
12641
12629
|
}
|
|
12642
12630
|
});
|
|
12643
|
-
const
|
|
12631
|
+
const Ba = De(Oa);
|
|
12644
12632
|
export {
|
|
12645
|
-
|
|
12646
|
-
|
|
12633
|
+
Ba as IkPreviewFile,
|
|
12634
|
+
Ba as default
|
|
12647
12635
|
};
|