iking-web-ui-pro 0.2.20 → 0.2.22
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 +67 -64
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +279 -276
- package/dist/IKPreviewFile/ik.index.umd.js +16 -16
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +102 -99
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +279 -276
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +113 -110
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +208 -205
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +75 -72
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +413 -410
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +272 -269
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +146 -143
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +156 -153
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1129 -1126
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +556 -553
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +1432 -1429
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +99 -96
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +54 -51
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +697 -694
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +204 -201
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/Provider/ik.index.es.js +10 -14
- package/dist/Provider/ik.index.umd.js +1 -1
- package/dist/index.es.js +4121 -4122
- package/dist/index.umd.js +2 -2
- package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +0 -9
- package/dist/src/components/Provider/index.d.ts +0 -19
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as le, computed as Y, openBlock as A, createElementBlock as F, createElementVNode as S, inject as
|
|
1
|
+
import { defineComponent as le, computed as Y, openBlock as A, createElementBlock as F, createElementVNode as S, inject as Xe, mergeModels as lt, useModel as $t, 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 J, unref as V, withCtx as de, withModifiers as Qe, normalizeClass as ee, normalizeStyle as oe, createTextVNode as Ht, toDisplayString as Ge, h as wn, mergeProps as bn, createSlots as Tn, renderSlot as Ae, Teleport as En, Transition as Sn, renderList 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
4
|
const Re = (a, o) => {
|
|
@@ -9,7 +9,7 @@ const Re = (a, o) => {
|
|
|
9
9
|
for (const [r, t] of Object.entries(o))
|
|
10
10
|
a[r] = t;
|
|
11
11
|
return a;
|
|
12
|
-
},
|
|
12
|
+
}, Ut = (a, o) => {
|
|
13
13
|
var i, n, s, l;
|
|
14
14
|
const r = (i = a == null ? void 0 : a.response) != null && i.data ? ui((s = (n = a == null ? void 0 : a.response) == null ? void 0 : n.data) == null ? void 0 : s.suffix) : ((l = a.raw) == null ? void 0 : l.type) || ui(a[o.suffix]), t = r == null ? void 0 : r.toLowerCase(), e = {
|
|
15
15
|
sheet: "excel",
|
|
@@ -619,7 +619,7 @@ const Re = (a, o) => {
|
|
|
619
619
|
}
|
|
620
620
|
},
|
|
621
621
|
setup(a) {
|
|
622
|
-
const o = a, r = Y(() => o.file ?
|
|
622
|
+
const o = a, r = Y(() => o.file ? Ut(o.file, o.fields) : o.type);
|
|
623
623
|
return (t, e) => r.value === "image" ? (A(), F("svg", Rn, Bn)) : r.value === "zip" ? (A(), F("svg", Hn, Vn)) : r.value === "ppt" ? (A(), F("svg", jn, Kn)) : r.value === "word" ? (A(), F("svg", $n, qn)) : r.value === "pdf" ? (A(), F("svg", Zn, er)) : r.value === "txt" ? (A(), F("svg", tr, rr)) : r.value === "audio" ? (A(), F("svg", sr, lr)) : r.value === "video" ? (A(), F("svg", ur, hr)) : r.value === "excel" ? (A(), F("svg", dr, mr)) : r.value === "exe" ? (A(), F("svg", yr, br)) : r.value === "json" ? (A(), F("svg", Tr, Pr)) : (A(), F("svg", Ir, Rr));
|
|
624
624
|
}
|
|
625
625
|
}), Fr = Re(Or);
|
|
@@ -639,7 +639,7 @@ var Mr = /* @__PURE__ */ le({
|
|
|
639
639
|
]));
|
|
640
640
|
}
|
|
641
641
|
}), Nr = Mr;
|
|
642
|
-
const
|
|
642
|
+
const _t = (a, o) => {
|
|
643
643
|
const r = a.__vccOpts || a;
|
|
644
644
|
for (const [t, e] of o)
|
|
645
645
|
r[t] = e;
|
|
@@ -652,8 +652,8 @@ const yt = (a, o) => {
|
|
|
652
652
|
const r = ["B", "KB", "MB", "GB", "TB"], t = Math.floor(Math.log(a) / Math.log(1024));
|
|
653
653
|
let e = a / Math.pow(1024, t);
|
|
654
654
|
return (e % 1 === 0 ? e.toFixed(o || 0) : e.toFixed(o)) + " " + r[t];
|
|
655
|
-
},
|
|
656
|
-
const o =
|
|
655
|
+
}, et = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "", Hr = (a) => {
|
|
656
|
+
const o = Xe("loadUrl"), r = Y(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = Xe("uploadUrl"), e = Y(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = Xe("token"), n = Y(() => a.token || (i == null ? void 0 : i.value)), s = Xe("onlyofficeConfig"), l = Y(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = Xe("userInfo"), c = Y(() => a.userInfo || (u == null ? void 0 : u.value));
|
|
657
657
|
return {
|
|
658
658
|
cLoadUrl: r,
|
|
659
659
|
cUploadUrl: e,
|
|
@@ -663,7 +663,7 @@ const yt = (a, o) => {
|
|
|
663
663
|
};
|
|
664
664
|
}, ji = Hr, Ur = /* @__PURE__ */ le({
|
|
665
665
|
__name: "IkPreviewFileDialog",
|
|
666
|
-
props: /* @__PURE__ */
|
|
666
|
+
props: /* @__PURE__ */ lt({
|
|
667
667
|
file: {
|
|
668
668
|
type: Object,
|
|
669
669
|
default: () => []
|
|
@@ -698,13 +698,13 @@ const yt = (a, o) => {
|
|
|
698
698
|
}),
|
|
699
699
|
emits: ["update:show"],
|
|
700
700
|
setup(a) {
|
|
701
|
-
const o = a, r =
|
|
701
|
+
const o = a, r = $t(a, "show"), t = Y(() => ({
|
|
702
702
|
name: "name",
|
|
703
703
|
url: "url",
|
|
704
704
|
suffix: "suffix",
|
|
705
705
|
size: "fileSize",
|
|
706
706
|
...o.field
|
|
707
|
-
})), e =
|
|
707
|
+
})), e = Ke(null), i = Ke(null), n = kn({
|
|
708
708
|
image: !1,
|
|
709
709
|
office: !1,
|
|
710
710
|
video: !1
|
|
@@ -715,11 +715,11 @@ const yt = (a, o) => {
|
|
|
715
715
|
if (i.value = {
|
|
716
716
|
...u,
|
|
717
717
|
name: u[t.value.name],
|
|
718
|
-
url:
|
|
719
|
-
}, u &&
|
|
718
|
+
url: et(o.loadUrl, b)
|
|
719
|
+
}, u && Ut(u, t.value) === "image") {
|
|
720
720
|
n.image = !0;
|
|
721
721
|
return;
|
|
722
|
-
} else if (u &&
|
|
722
|
+
} else if (u && Ut(u, t.value) === "video") {
|
|
723
723
|
n.video = !0;
|
|
724
724
|
return;
|
|
725
725
|
} else if ((((d = o.onlyOfficeConfig) == null ? void 0 : d.accept) || o.onlyOfficeAccept).includes(w)) {
|
|
@@ -737,7 +737,7 @@ const yt = (a, o) => {
|
|
|
737
737
|
document: {
|
|
738
738
|
key: Vi(),
|
|
739
739
|
title: B,
|
|
740
|
-
url:
|
|
740
|
+
url: et(o.loadUrl, b),
|
|
741
741
|
fileType: w,
|
|
742
742
|
...((_ = o.onlyOfficeConfig) == null ? void 0 : _.document) || {}
|
|
743
743
|
},
|
|
@@ -759,7 +759,7 @@ const yt = (a, o) => {
|
|
|
759
759
|
};
|
|
760
760
|
return (u, c) => {
|
|
761
761
|
var d, g, p;
|
|
762
|
-
const h =
|
|
762
|
+
const h = $e("el-image-viewer");
|
|
763
763
|
return r.value ? (A(), F(
|
|
764
764
|
Ze,
|
|
765
765
|
{ key: 0 },
|
|
@@ -849,56 +849,57 @@ const zr = Re(Ur), Vr = {
|
|
|
849
849
|
warning: { type: Boolean },
|
|
850
850
|
width: {}
|
|
851
851
|
},
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
const { name: n } = t.value;
|
|
858
|
-
return /^http?:\/\//.test(n) ? "img" : /i-[^:]+:[^:]+/.test(n) ? "unocss" : n != null && n.startsWith("iksig") ? "iksig" : n != null && n.includes(":") ? "iconify" : n != null && n.startsWith("iksvg") ? "svg" : "i";
|
|
852
|
+
emits: ["click"],
|
|
853
|
+
setup(a, { emit: o }) {
|
|
854
|
+
const r = a, t = Y(() => r), e = Y(() => {
|
|
855
|
+
const { name: l } = t.value;
|
|
856
|
+
return /^http?:\/\//.test(l) ? "img" : /i-[^:]+:[^:]+/.test(l) ? "unocss" : l != null && l.startsWith("iksig") ? "iksig" : l != null && l.includes(":") ? "iconify" : l != null && l.startsWith("iksvg") ? "svg" : "i";
|
|
859
857
|
}), i = Y(() => {
|
|
860
|
-
const
|
|
858
|
+
const l = [];
|
|
861
859
|
if (t.value.flip)
|
|
862
860
|
switch (t.value.flip) {
|
|
863
861
|
case "horizontal":
|
|
864
|
-
|
|
862
|
+
l.push("rotateY(180deg)");
|
|
865
863
|
break;
|
|
866
864
|
case "vertical":
|
|
867
|
-
|
|
865
|
+
l.push("rotateX(180deg)");
|
|
868
866
|
break;
|
|
869
867
|
case "both":
|
|
870
|
-
|
|
868
|
+
l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
|
|
871
869
|
break;
|
|
872
870
|
}
|
|
873
|
-
t.value.rotate &&
|
|
874
|
-
const
|
|
871
|
+
t.value.rotate && l.push(`rotate(${t.value.rotate % 360}deg)`);
|
|
872
|
+
const u = {
|
|
875
873
|
...t.value.color && { color: t.value.color },
|
|
876
874
|
...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
|
|
877
|
-
...
|
|
875
|
+
...l.length && { transform: l.join(" ") },
|
|
878
876
|
padding: t.value.showBg || t.value.bg ? t.value.padding : 0,
|
|
879
877
|
...t.value.color && e.value !== "iksig" ? {
|
|
880
878
|
"--ik-color-icon-dark": t.value.color,
|
|
881
879
|
"--ik-color-icon-light": t.value.colorLight || xn.setOpacity(t.value.color, t.value.opacity)
|
|
882
880
|
} : {}
|
|
883
881
|
};
|
|
884
|
-
return t.value.width && (
|
|
885
|
-
})
|
|
886
|
-
|
|
887
|
-
|
|
882
|
+
return t.value.width && (u.width = u.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), u;
|
|
883
|
+
}), n = o, s = (l) => {
|
|
884
|
+
t.value.disabled || n("click", l);
|
|
885
|
+
};
|
|
886
|
+
return (l, u) => {
|
|
887
|
+
const c = $e("el-tooltip"), h = $e("el-button");
|
|
888
888
|
return t.value.tableIconType === "icon" || !t.value.tableIconType ? (A(), F("span", Vr, [
|
|
889
889
|
t.value.notip || !t.value.title ? (A(), F(
|
|
890
890
|
"i",
|
|
891
891
|
{
|
|
892
892
|
key: 0,
|
|
893
|
+
onClick: Qe(s, ["stop"]),
|
|
893
894
|
class: ee(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
894
|
-
[
|
|
895
|
+
[l.name]: e.value === "unocss",
|
|
895
896
|
"show-bg": t.value.showBg || t.value.bg,
|
|
896
897
|
default: t.value.size === "default",
|
|
897
898
|
small: t.value.size === "small",
|
|
898
899
|
big: t.value.size === "big",
|
|
899
900
|
warning: t.value.warning || t.value.type === "warning",
|
|
900
901
|
primary: t.value.primary || t.value.type === "primary",
|
|
901
|
-
success:
|
|
902
|
+
success: l.success || t.value.type === "success",
|
|
902
903
|
error: t.value.error || t.value.type === "error",
|
|
903
904
|
active: t.value.active,
|
|
904
905
|
disabled: t.value.disabled
|
|
@@ -939,7 +940,7 @@ const zr = Re(Ur), Vr = {
|
|
|
939
940
|
],
|
|
940
941
|
6
|
|
941
942
|
/* CLASS, STYLE */
|
|
942
|
-
)) : (A(), we(
|
|
943
|
+
)) : (A(), we(c, {
|
|
943
944
|
key: 1,
|
|
944
945
|
content: t.value.title,
|
|
945
946
|
placement: "top"
|
|
@@ -949,17 +950,18 @@ const zr = Re(Ur), Vr = {
|
|
|
949
950
|
"i",
|
|
950
951
|
{
|
|
951
952
|
class: ee(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
952
|
-
[
|
|
953
|
+
[l.name]: e.value === "unocss",
|
|
953
954
|
"show-bg": t.value.showBg || t.value.bg,
|
|
954
955
|
default: t.value.size === "default",
|
|
955
956
|
small: t.value.size === "small",
|
|
956
957
|
big: t.value.size === "big",
|
|
957
958
|
warning: t.value.warning || t.value.type === "warning",
|
|
958
|
-
primary:
|
|
959
|
-
success:
|
|
959
|
+
primary: l.primary || t.value.type === "primary",
|
|
960
|
+
success: l.success || t.value.type === "success",
|
|
960
961
|
error: t.value.error || t.value.type === "error",
|
|
961
962
|
active: t.value.active
|
|
962
963
|
}]),
|
|
964
|
+
onClick: Qe(s, ["stop"]),
|
|
963
965
|
style: oe(i.value)
|
|
964
966
|
},
|
|
965
967
|
[
|
|
@@ -1000,13 +1002,14 @@ const zr = Re(Ur), Vr = {
|
|
|
1000
1002
|
_: 1
|
|
1001
1003
|
/* STABLE */
|
|
1002
1004
|
}, 8, ["content"]))
|
|
1003
|
-
])) : (A(), we(
|
|
1005
|
+
])) : (A(), we(h, {
|
|
1004
1006
|
key: 1,
|
|
1005
|
-
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
1007
|
+
type: ["warning", "error"].includes(t.value.type) ? "danger" : "",
|
|
1008
|
+
onClick: Qe(s, ["stop"])
|
|
1006
1009
|
}, {
|
|
1007
1010
|
default: de(() => [
|
|
1008
|
-
|
|
1009
|
-
|
|
1011
|
+
Ht(
|
|
1012
|
+
Ge(t.value.title),
|
|
1010
1013
|
1
|
|
1011
1014
|
/* TEXT */
|
|
1012
1015
|
)
|
|
@@ -1017,7 +1020,7 @@ const zr = Re(Ur), Vr = {
|
|
|
1017
1020
|
};
|
|
1018
1021
|
}
|
|
1019
1022
|
});
|
|
1020
|
-
const qr = /* @__PURE__ */
|
|
1023
|
+
const qr = /* @__PURE__ */ _t(Xr, [["__scopeId", "data-v-4a1004b9"]]), Le = Re(qr), Zr = {
|
|
1021
1024
|
key: 0,
|
|
1022
1025
|
class: "exit-main-page-maximize"
|
|
1023
1026
|
}, Jr = /* @__PURE__ */ le({
|
|
@@ -1051,9 +1054,9 @@ const qr = /* @__PURE__ */ yt(Xr, [["__scopeId", "data-v-ec9fdc8a"]]), Le = Re(q
|
|
|
1051
1054
|
]));
|
|
1052
1055
|
}
|
|
1053
1056
|
});
|
|
1054
|
-
const Qr = /* @__PURE__ */
|
|
1057
|
+
const Qr = /* @__PURE__ */ _t(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { class: "base-header" }, ts = /* @__PURE__ */ le({
|
|
1055
1058
|
__name: "IkBaseDialog",
|
|
1056
|
-
props: /* @__PURE__ */
|
|
1059
|
+
props: /* @__PURE__ */ lt({
|
|
1057
1060
|
title: { default: "" },
|
|
1058
1061
|
cancelText: { default: "取消" },
|
|
1059
1062
|
confirmText: { default: "确认" },
|
|
@@ -1072,7 +1075,7 @@ const Qr = /* @__PURE__ */ yt(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
|
|
|
1072
1075
|
}),
|
|
1073
1076
|
emits: ["update:modelValue"],
|
|
1074
1077
|
setup(a) {
|
|
1075
|
-
const o = a, r =
|
|
1078
|
+
const o = a, r = $t(a, "modelValue"), t = Ke(o.fullscreen), e = () => {
|
|
1076
1079
|
t.value = !t.value;
|
|
1077
1080
|
}, i = le({
|
|
1078
1081
|
setup() {
|
|
@@ -1083,7 +1086,7 @@ const Qr = /* @__PURE__ */ yt(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
|
|
|
1083
1086
|
}
|
|
1084
1087
|
});
|
|
1085
1088
|
return (n, s) => {
|
|
1086
|
-
const l =
|
|
1089
|
+
const l = $e("el-dialog");
|
|
1087
1090
|
return A(), we(l, bn({
|
|
1088
1091
|
modelValue: r.value,
|
|
1089
1092
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
|
|
@@ -1095,8 +1098,8 @@ const Qr = /* @__PURE__ */ yt(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
|
|
|
1095
1098
|
}), Tn({
|
|
1096
1099
|
icon: de(() => [
|
|
1097
1100
|
Ae(n.$slots, "title", {}, () => [
|
|
1098
|
-
|
|
1099
|
-
|
|
1101
|
+
Ht(
|
|
1102
|
+
Ge(n.title),
|
|
1100
1103
|
1
|
|
1101
1104
|
/* TEXT */
|
|
1102
1105
|
)
|
|
@@ -1105,8 +1108,8 @@ const Qr = /* @__PURE__ */ yt(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
|
|
|
1105
1108
|
header: de(() => [
|
|
1106
1109
|
S("div", es, [
|
|
1107
1110
|
Ae(n.$slots, "header", {}, () => [
|
|
1108
|
-
|
|
1109
|
-
|
|
1111
|
+
Ht(
|
|
1112
|
+
Ge(n.title),
|
|
1110
1113
|
1
|
|
1111
1114
|
/* TEXT */
|
|
1112
1115
|
)
|
|
@@ -1139,7 +1142,7 @@ const Qr = /* @__PURE__ */ yt(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
|
|
|
1139
1142
|
});
|
|
1140
1143
|
const is = Re(ts);
|
|
1141
1144
|
var ns = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1142
|
-
function
|
|
1145
|
+
function Yt(a) {
|
|
1143
1146
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1144
1147
|
}
|
|
1145
1148
|
function rs(a, o, r, t) {
|
|
@@ -1269,7 +1272,7 @@ var os = function(a, o) {
|
|
|
1269
1272
|
}, e.onerror = function(i) {
|
|
1270
1273
|
e.removeAttribute("loading"), t(i);
|
|
1271
1274
|
}, e.setAttribute("loading", ""), e;
|
|
1272
|
-
},
|
|
1275
|
+
}, Xt = le({
|
|
1273
1276
|
name: "DocumentEditor",
|
|
1274
1277
|
props: {
|
|
1275
1278
|
id: {
|
|
@@ -1442,8 +1445,8 @@ const as = ["id"];
|
|
|
1442
1445
|
function ls(a, o, r, t, e, i) {
|
|
1443
1446
|
return A(), F("div", { id: a.id }, null, 8, as);
|
|
1444
1447
|
}
|
|
1445
|
-
|
|
1446
|
-
|
|
1448
|
+
Xt.render = ls;
|
|
1449
|
+
Xt.__file = "src/components/DocumentEditor.vue";
|
|
1447
1450
|
const us = /* @__PURE__ */ le({
|
|
1448
1451
|
__name: "IkOnlyOffice",
|
|
1449
1452
|
props: {
|
|
@@ -1465,7 +1468,7 @@ const us = /* @__PURE__ */ le({
|
|
|
1465
1468
|
}
|
|
1466
1469
|
},
|
|
1467
1470
|
setup(a) {
|
|
1468
|
-
const o = a, r =
|
|
1471
|
+
const o = a, r = Ke({
|
|
1469
1472
|
width: "100%",
|
|
1470
1473
|
height: "100%",
|
|
1471
1474
|
...o.configOptions || {},
|
|
@@ -1479,7 +1482,7 @@ const us = /* @__PURE__ */ le({
|
|
|
1479
1482
|
style: oe({ height: o.officeHeight })
|
|
1480
1483
|
},
|
|
1481
1484
|
[
|
|
1482
|
-
J(V(
|
|
1485
|
+
J(V(Xt), {
|
|
1483
1486
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1484
1487
|
ref: "editorRef",
|
|
1485
1488
|
"document-server-url": a.documentServerUrl,
|
|
@@ -1492,7 +1495,7 @@ const us = /* @__PURE__ */ le({
|
|
|
1492
1495
|
));
|
|
1493
1496
|
}
|
|
1494
1497
|
});
|
|
1495
|
-
const cs = /* @__PURE__ */
|
|
1498
|
+
const cs = /* @__PURE__ */ _t(us, [["__scopeId", "data-v-98d51ef9"]]), fs = Re(cs);
|
|
1496
1499
|
function fi(a, o) {
|
|
1497
1500
|
var r = Object.keys(a);
|
|
1498
1501
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1556,17 +1559,17 @@ function x(a, o) {
|
|
|
1556
1559
|
}
|
|
1557
1560
|
}), Object.defineProperty(a, "prototype", {
|
|
1558
1561
|
writable: !1
|
|
1559
|
-
}), o &&
|
|
1562
|
+
}), o && zt(a, o);
|
|
1560
1563
|
}
|
|
1561
1564
|
function I(a) {
|
|
1562
1565
|
return I = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
1563
1566
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
1564
1567
|
}, I(a);
|
|
1565
1568
|
}
|
|
1566
|
-
function
|
|
1567
|
-
return
|
|
1569
|
+
function zt(a, o) {
|
|
1570
|
+
return zt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
1568
1571
|
return t.__proto__ = e, t;
|
|
1569
|
-
},
|
|
1572
|
+
}, zt(a, o);
|
|
1570
1573
|
}
|
|
1571
1574
|
function hs() {
|
|
1572
1575
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
@@ -1585,7 +1588,7 @@ function v(a) {
|
|
|
1585
1588
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1586
1589
|
return a;
|
|
1587
1590
|
}
|
|
1588
|
-
function
|
|
1591
|
+
function qt(a, o) {
|
|
1589
1592
|
if (o && (typeof o == "object" || typeof o == "function"))
|
|
1590
1593
|
return o;
|
|
1591
1594
|
if (o !== void 0)
|
|
@@ -1601,7 +1604,7 @@ function P(a) {
|
|
|
1601
1604
|
e = Reflect.construct(t, arguments, i);
|
|
1602
1605
|
} else
|
|
1603
1606
|
e = t.apply(this, arguments);
|
|
1604
|
-
return
|
|
1607
|
+
return qt(this, e);
|
|
1605
1608
|
};
|
|
1606
1609
|
}
|
|
1607
1610
|
function ds(a, o) {
|
|
@@ -1623,7 +1626,7 @@ function ae(a) {
|
|
|
1623
1626
|
}
|
|
1624
1627
|
function gs(a) {
|
|
1625
1628
|
if (Array.isArray(a))
|
|
1626
|
-
return
|
|
1629
|
+
return Vt(a);
|
|
1627
1630
|
}
|
|
1628
1631
|
function ps(a) {
|
|
1629
1632
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
@@ -1632,15 +1635,15 @@ function ps(a) {
|
|
|
1632
1635
|
function vs(a, o) {
|
|
1633
1636
|
if (a) {
|
|
1634
1637
|
if (typeof a == "string")
|
|
1635
|
-
return
|
|
1638
|
+
return Vt(a, o);
|
|
1636
1639
|
var r = Object.prototype.toString.call(a).slice(8, -1);
|
|
1637
1640
|
if (r === "Object" && a.constructor && (r = a.constructor.name), r === "Map" || r === "Set")
|
|
1638
1641
|
return Array.from(a);
|
|
1639
1642
|
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
1640
|
-
return
|
|
1643
|
+
return Vt(a, o);
|
|
1641
1644
|
}
|
|
1642
1645
|
}
|
|
1643
|
-
function
|
|
1646
|
+
function Vt(a, o) {
|
|
1644
1647
|
(o == null || o > a.length) && (o = a.length);
|
|
1645
1648
|
for (var r = 0, t = new Array(o); r < o; r++)
|
|
1646
1649
|
t[r] = a[r];
|
|
@@ -1778,31 +1781,31 @@ var Gi = { exports: {} };
|
|
|
1778
1781
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, a.exports = s;
|
|
1779
1782
|
})(Gi);
|
|
1780
1783
|
var Ki = Gi.exports;
|
|
1781
|
-
const $i = /* @__PURE__ */
|
|
1782
|
-
var _s = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1,
|
|
1784
|
+
const $i = /* @__PURE__ */ Yt(Ki);
|
|
1785
|
+
var _s = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Et = {
|
|
1783
1786
|
info: "color: #525252; background-color: #90ee90;",
|
|
1784
1787
|
error: "color: #525252; background-color: red;",
|
|
1785
1788
|
warn: "color: #525252; background-color: yellow; "
|
|
1786
|
-
},
|
|
1789
|
+
}, St = "%c[xgplayer]", O = {
|
|
1787
1790
|
config: {
|
|
1788
1791
|
debug: _s ? 3 : 0
|
|
1789
1792
|
},
|
|
1790
1793
|
logInfo: function(o) {
|
|
1791
1794
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
1792
1795
|
e[i - 1] = arguments[i];
|
|
1793
|
-
this.config.debug >= 3 && (r = console).log.apply(r, [
|
|
1796
|
+
this.config.debug >= 3 && (r = console).log.apply(r, [St, Et.info, o].concat(e));
|
|
1794
1797
|
},
|
|
1795
1798
|
logWarn: function(o) {
|
|
1796
1799
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
1797
1800
|
e[i - 1] = arguments[i];
|
|
1798
|
-
this.config.debug >= 1 && (r = console).warn.apply(r, [
|
|
1801
|
+
this.config.debug >= 1 && (r = console).warn.apply(r, [St, Et.warn, o].concat(e));
|
|
1799
1802
|
},
|
|
1800
1803
|
logError: function(o) {
|
|
1801
1804
|
var r;
|
|
1802
1805
|
if (!(this.config.debug < 1)) {
|
|
1803
1806
|
for (var t = this.config.debug >= 2 ? "trace" : "error", e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
|
|
1804
1807
|
i[n - 1] = arguments[n];
|
|
1805
|
-
(r = console)[t].apply(r, [
|
|
1808
|
+
(r = console)[t].apply(r, [St, Et.error, o].concat(i));
|
|
1806
1809
|
}
|
|
1807
1810
|
}
|
|
1808
1811
|
};
|
|
@@ -2442,7 +2445,7 @@ var di = {
|
|
|
2442
2445
|
return Promise.resolve(r);
|
|
2443
2446
|
}
|
|
2444
2447
|
}
|
|
2445
|
-
},
|
|
2448
|
+
}, jt = "3.0.18", gi = {
|
|
2446
2449
|
1: "media",
|
|
2447
2450
|
2: "media",
|
|
2448
2451
|
3: "media",
|
|
@@ -2456,7 +2459,7 @@ var di = {
|
|
|
2456
2459
|
4: 5104,
|
|
2457
2460
|
5: 5105,
|
|
2458
2461
|
6: 5106
|
|
2459
|
-
},
|
|
2462
|
+
}, ut = /* @__PURE__ */ E(
|
|
2460
2463
|
function a(o) {
|
|
2461
2464
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2462
2465
|
errorType: "",
|
|
@@ -2472,7 +2475,7 @@ var di = {
|
|
|
2472
2475
|
var e = r.mediaError ? r.mediaError : o.media.error || {}, i = o.duration, n = o.currentTime, s = o.ended, l = o.src, u = o.currentSrc, c = o.media, h = c.readyState, d = c.networkState, g = r.errorCode || e.code;
|
|
2473
2476
|
pi[g] && (g = pi[g]);
|
|
2474
2477
|
var p = {
|
|
2475
|
-
playerVersion:
|
|
2478
|
+
playerVersion: jt,
|
|
2476
2479
|
currentTime: n,
|
|
2477
2480
|
duration: i,
|
|
2478
2481
|
ended: s,
|
|
@@ -2491,14 +2494,14 @@ var di = {
|
|
|
2491
2494
|
}), p;
|
|
2492
2495
|
} else if (arguments.length > 1) {
|
|
2493
2496
|
for (var m = {
|
|
2494
|
-
playerVersion:
|
|
2497
|
+
playerVersion: jt,
|
|
2495
2498
|
domain: document.domain
|
|
2496
2499
|
}, _ = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], C = 0; C < arguments.length; C++)
|
|
2497
2500
|
m[_[C]] = arguments[C];
|
|
2498
2501
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
2499
2502
|
}
|
|
2500
2503
|
}
|
|
2501
|
-
), ne = "play",
|
|
2504
|
+
), ne = "play", Zt = "playing", Oe = "ended", Ye = "pause", it = "error", Ct = "seeking", me = "seeked", ie = "timeupdate", nt = "waiting", ve = "canplay", Ps = "canplaythrough", Ee = "durationchange", Xi = "volumechange", ye = "loadeddata", Is = "loadedmetadata", qi = "ratechange", Zi = "progress", Jt = "loadstart", Fe = "emptied", As = "stalled", Ls = "suspend", Ds = "abort", Rs = "bufferedChange", Qt = "focus", Ji = "blur", ei = "ready", Qi = "urlNull", De = "autoplay_started", ti = "autoplay_was_prevented", kt = "complete", ct = "replay", ii = "destroy", wt = "urlchange", Wt = "download_speed_change", en = "leaveplayer", tn = "enterplayer", nn = "loading", ge = "fullscreen_change", ft = "cssFullscreen_change", ht = "mini_state_change", ni = "definition_change", Os = "before_definition_change", Gt = "after_definition_change", Fs = "SEI_PARSED", Ms = "retry", be = "video_resize", Kt = "pip_change", rn = "rotate", sn = "screenShot", dt = "playnext", on = "shortcut", an = "xglog", gt = "user_action", bt = "reset", ln = "source_error", un = "source_success", Ns = "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 = {
|
|
2502
2505
|
STATS_INFO: "stats_info",
|
|
2503
2506
|
STATS_DOWNLOAD: "stats_download",
|
|
2504
2507
|
STATS_RESET: "stats_reset"
|
|
@@ -2506,48 +2509,48 @@ var di = {
|
|
|
2506
2509
|
const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2507
2510
|
__proto__: null,
|
|
2508
2511
|
ABORT: Ds,
|
|
2509
|
-
AFTER_DEFINITION_CHANGE:
|
|
2510
|
-
AUTOPLAY_PREVENTED:
|
|
2512
|
+
AFTER_DEFINITION_CHANGE: Gt,
|
|
2513
|
+
AUTOPLAY_PREVENTED: ti,
|
|
2511
2514
|
AUTOPLAY_STARTED: De,
|
|
2512
2515
|
BEFORE_DEFINITION_CHANGE: Os,
|
|
2513
2516
|
BUFFER_CHANGE: Rs,
|
|
2514
2517
|
CANPLAY: ve,
|
|
2515
2518
|
CANPLAY_THROUGH: Ps,
|
|
2516
|
-
COMPLETE:
|
|
2517
|
-
CSS_FULLSCREEN_CHANGE:
|
|
2518
|
-
DEFINITION_CHANGE:
|
|
2519
|
-
DESTROY:
|
|
2520
|
-
DOWNLOAD_SPEED_CHANGE:
|
|
2519
|
+
COMPLETE: kt,
|
|
2520
|
+
CSS_FULLSCREEN_CHANGE: ft,
|
|
2521
|
+
DEFINITION_CHANGE: ni,
|
|
2522
|
+
DESTROY: ii,
|
|
2523
|
+
DOWNLOAD_SPEED_CHANGE: Wt,
|
|
2521
2524
|
DURATION_CHANGE: Ee,
|
|
2522
2525
|
EMPTIED: Fe,
|
|
2523
2526
|
ENDED: Oe,
|
|
2524
2527
|
ENTER_PLAYER: tn,
|
|
2525
|
-
ERROR:
|
|
2528
|
+
ERROR: it,
|
|
2526
2529
|
FPS_STUCK: hn,
|
|
2527
2530
|
FULLSCREEN_CHANGE: ge,
|
|
2528
2531
|
LEAVE_PLAYER: en,
|
|
2529
2532
|
LOADED_DATA: ye,
|
|
2530
2533
|
LOADED_METADATA: Is,
|
|
2531
2534
|
LOADING: nn,
|
|
2532
|
-
LOAD_START:
|
|
2533
|
-
MINI_STATE_CHANGE:
|
|
2534
|
-
PAUSE:
|
|
2535
|
-
PIP_CHANGE:
|
|
2535
|
+
LOAD_START: Jt,
|
|
2536
|
+
MINI_STATE_CHANGE: ht,
|
|
2537
|
+
PAUSE: Ye,
|
|
2538
|
+
PIP_CHANGE: Kt,
|
|
2536
2539
|
PLAY: ne,
|
|
2537
2540
|
PLAYER_BLUR: Ji,
|
|
2538
|
-
PLAYER_FOCUS:
|
|
2539
|
-
PLAYING:
|
|
2540
|
-
PLAYNEXT:
|
|
2541
|
+
PLAYER_FOCUS: Qt,
|
|
2542
|
+
PLAYING: Zt,
|
|
2543
|
+
PLAYNEXT: dt,
|
|
2541
2544
|
PROGRESS: Zi,
|
|
2542
2545
|
RATE_CHANGE: qi,
|
|
2543
|
-
READY:
|
|
2544
|
-
REPLAY:
|
|
2545
|
-
RESET:
|
|
2546
|
+
READY: ei,
|
|
2547
|
+
REPLAY: ct,
|
|
2548
|
+
RESET: bt,
|
|
2546
2549
|
RETRY: Ms,
|
|
2547
2550
|
ROTATE: rn,
|
|
2548
2551
|
SCREEN_SHOT: sn,
|
|
2549
2552
|
SEEKED: me,
|
|
2550
|
-
SEEKING:
|
|
2553
|
+
SEEKING: Ct,
|
|
2551
2554
|
SEI_PARSED: Fs,
|
|
2552
2555
|
SHORTCUT: on,
|
|
2553
2556
|
SOURCE_ERROR: ln,
|
|
@@ -2557,16 +2560,16 @@ const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2557
2560
|
SUSPEND: Ls,
|
|
2558
2561
|
SWITCH_SUBTITLE: Ns,
|
|
2559
2562
|
TIME_UPDATE: ie,
|
|
2560
|
-
URL_CHANGE:
|
|
2563
|
+
URL_CHANGE: wt,
|
|
2561
2564
|
URL_NULL: Qi,
|
|
2562
|
-
USER_ACTION:
|
|
2565
|
+
USER_ACTION: gt,
|
|
2563
2566
|
VIDEO_EVENTS: cn,
|
|
2564
2567
|
VIDEO_RESIZE: be,
|
|
2565
2568
|
VOLUME_CHANGE: Xi,
|
|
2566
|
-
WAITING:
|
|
2569
|
+
WAITING: nt,
|
|
2567
2570
|
XGLOG: an
|
|
2568
2571
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2569
|
-
function
|
|
2572
|
+
function xt(a, o) {
|
|
2570
2573
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
|
|
2571
2574
|
}
|
|
2572
2575
|
function Hs(a, o) {
|
|
@@ -2594,14 +2597,14 @@ function Hs(a, o) {
|
|
|
2594
2597
|
o._rate = o.media && o.media.playbackRate;
|
|
2595
2598
|
}
|
|
2596
2599
|
if (a === "durationchange" && (o._duration = o.media.duration), a === "volumechange" && (e.isMutedChange = o._lastMuted !== o.muted, o._lastMuted = o.muted), a === "error" && (e.error = t || o.video.error), o.mediaEventMiddleware[a]) {
|
|
2597
|
-
var n =
|
|
2600
|
+
var n = xt.bind(o, a, e);
|
|
2598
2601
|
try {
|
|
2599
2602
|
o.mediaEventMiddleware[a].call(o, e, n);
|
|
2600
2603
|
} catch (s) {
|
|
2601
|
-
throw
|
|
2604
|
+
throw xt.call(o, a, e), s;
|
|
2602
2605
|
}
|
|
2603
2606
|
} else
|
|
2604
|
-
|
|
2607
|
+
xt.call(o, a, e);
|
|
2605
2608
|
};
|
|
2606
2609
|
}
|
|
2607
2610
|
var Us = /* @__PURE__ */ function(a) {
|
|
@@ -2700,7 +2703,7 @@ var Us = /* @__PURE__ */ function(a) {
|
|
|
2700
2703
|
l ? l.error(h, g) : n.errorHandler("error", g);
|
|
2701
2704
|
}
|
|
2702
2705
|
var p = gi[4];
|
|
2703
|
-
n.emit(ln, new
|
|
2706
|
+
n.emit(ln, new ut(n, {
|
|
2704
2707
|
errorType: p,
|
|
2705
2708
|
errorCode: 4,
|
|
2706
2709
|
errorMessage: "sources_load_error",
|
|
@@ -2737,7 +2740,7 @@ var Us = /* @__PURE__ */ function(a) {
|
|
|
2737
2740
|
this.media.currentSrc || (l = "empty_src", n = {
|
|
2738
2741
|
code: 6,
|
|
2739
2742
|
message: l
|
|
2740
|
-
}), this.emit(e, new
|
|
2743
|
+
}), this.emit(e, new ut(this, {
|
|
2741
2744
|
errorType: s,
|
|
2742
2745
|
errorCode: n.code,
|
|
2743
2746
|
errorMessage: n.message || "",
|
|
@@ -2958,7 +2961,7 @@ var Us = /* @__PURE__ */ function(a) {
|
|
|
2958
2961
|
},
|
|
2959
2962
|
set: function(e) {
|
|
2960
2963
|
if (this.media) {
|
|
2961
|
-
if (this.emit(
|
|
2964
|
+
if (this.emit(wt, e), this.emit(nt), this._currentTime = 0, this._duration = 0, f.isMSE(this.media)) {
|
|
2962
2965
|
this.onWaiting();
|
|
2963
2966
|
return;
|
|
2964
2967
|
}
|
|
@@ -3101,7 +3104,7 @@ var Us = /* @__PURE__ */ function(a) {
|
|
|
3101
3104
|
}
|
|
3102
3105
|
}]), a;
|
|
3103
3106
|
}(), vi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], mi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], yi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Ie = "data-xgplayerid";
|
|
3104
|
-
function
|
|
3107
|
+
function rt(a, o, r) {
|
|
3105
3108
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
3106
3109
|
e[i - 3] = arguments[i];
|
|
3107
3110
|
var n = o.call.apply(o, [a].concat(e));
|
|
@@ -3111,7 +3114,7 @@ function nt(a, o, r) {
|
|
|
3111
3114
|
r.call.apply(r, [a].concat(l));
|
|
3112
3115
|
}) : r.call.apply(r, [a].concat(e)));
|
|
3113
3116
|
}
|
|
3114
|
-
function
|
|
3117
|
+
function pt(a, o) {
|
|
3115
3118
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
3116
3119
|
pre: null,
|
|
3117
3120
|
next: null
|
|
@@ -3129,23 +3132,23 @@ function gt(a, o) {
|
|
|
3129
3132
|
try {
|
|
3130
3133
|
var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
|
|
3131
3134
|
s ? s.then ? s.then(function(l) {
|
|
3132
|
-
l !== !1 &&
|
|
3135
|
+
l !== !1 && rt.apply(void 0, [e, o, r.next].concat(ae(t)));
|
|
3133
3136
|
}).catch(function(l) {
|
|
3134
3137
|
throw l;
|
|
3135
|
-
}) :
|
|
3138
|
+
}) : rt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && rt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
3136
3139
|
} catch (l) {
|
|
3137
3140
|
throw l.message = "[pluginName: ".concat(this.pluginName, ":").concat(a, "] >> ").concat(l.message), l;
|
|
3138
3141
|
}
|
|
3139
3142
|
else
|
|
3140
|
-
|
|
3143
|
+
rt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
3141
3144
|
}).bind(this);
|
|
3142
3145
|
}
|
|
3143
|
-
function
|
|
3146
|
+
function vt(a, o) {
|
|
3144
3147
|
var r = this.__hooks;
|
|
3145
3148
|
if (r)
|
|
3146
3149
|
return r.hasOwnProperty(a) ? (r && (r[a] = o), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
|
|
3147
3150
|
}
|
|
3148
|
-
function
|
|
3151
|
+
function mt(a, o) {
|
|
3149
3152
|
var r = this.__hooks;
|
|
3150
3153
|
r && delete r[a];
|
|
3151
3154
|
}
|
|
@@ -3198,7 +3201,7 @@ function pe(a, o, r) {
|
|
|
3198
3201
|
} else
|
|
3199
3202
|
return r.call.apply(r, [a, a].concat(e));
|
|
3200
3203
|
}
|
|
3201
|
-
function
|
|
3204
|
+
function Pt(a, o) {
|
|
3202
3205
|
O.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
|
|
3203
3206
|
}
|
|
3204
3207
|
var Te = /* @__PURE__ */ function() {
|
|
@@ -3265,7 +3268,7 @@ var Te = /* @__PURE__ */ function() {
|
|
|
3265
3268
|
value: function(r, t) {
|
|
3266
3269
|
var e = this;
|
|
3267
3270
|
if (!r || !t || !this.player) {
|
|
3268
|
-
|
|
3271
|
+
Pt(this.pluginName, "plugin.on(event, callback)");
|
|
3269
3272
|
return;
|
|
3270
3273
|
}
|
|
3271
3274
|
typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3277,7 +3280,7 @@ var Te = /* @__PURE__ */ function() {
|
|
|
3277
3280
|
value: function(r, t) {
|
|
3278
3281
|
var e = this;
|
|
3279
3282
|
if (!r || !t || !this.player) {
|
|
3280
|
-
|
|
3283
|
+
Pt(this.pluginName, "plugin.once(event, callback)");
|
|
3281
3284
|
return;
|
|
3282
3285
|
}
|
|
3283
3286
|
typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3289,7 +3292,7 @@ var Te = /* @__PURE__ */ function() {
|
|
|
3289
3292
|
value: function(r, t) {
|
|
3290
3293
|
var e = this;
|
|
3291
3294
|
if (!r || !t || !this.player) {
|
|
3292
|
-
|
|
3295
|
+
Pt(this.pluginName, "plugin.off(event, callback)");
|
|
3293
3296
|
return;
|
|
3294
3297
|
}
|
|
3295
3298
|
typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3330,21 +3333,21 @@ var Te = /* @__PURE__ */ function() {
|
|
|
3330
3333
|
}, {
|
|
3331
3334
|
key: "hook",
|
|
3332
3335
|
value: function(r, t) {
|
|
3333
|
-
return
|
|
3336
|
+
return pt.call.apply(pt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3334
3337
|
}
|
|
3335
3338
|
}, {
|
|
3336
3339
|
key: "useHooks",
|
|
3337
3340
|
value: function(r, t) {
|
|
3338
3341
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
3339
3342
|
i[n - 2] = arguments[n];
|
|
3340
|
-
return
|
|
3343
|
+
return vt.call.apply(vt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3341
3344
|
}
|
|
3342
3345
|
}, {
|
|
3343
3346
|
key: "removeHooks",
|
|
3344
3347
|
value: function(r, t) {
|
|
3345
3348
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
3346
3349
|
i[n - 2] = arguments[n];
|
|
3347
|
-
return
|
|
3350
|
+
return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3348
3351
|
}
|
|
3349
3352
|
}, {
|
|
3350
3353
|
key: "registerPlugin",
|
|
@@ -3399,7 +3402,7 @@ function js(a, o) {
|
|
|
3399
3402
|
}
|
|
3400
3403
|
}
|
|
3401
3404
|
var Ws = js, Gs = Ws;
|
|
3402
|
-
function
|
|
3405
|
+
function It(a, o, r, t, e) {
|
|
3403
3406
|
var i = $s.apply(this, arguments);
|
|
3404
3407
|
return a.addEventListener(r, i, e), {
|
|
3405
3408
|
destroy: function() {
|
|
@@ -3408,8 +3411,8 @@ function Pt(a, o, r, t, e) {
|
|
|
3408
3411
|
};
|
|
3409
3412
|
}
|
|
3410
3413
|
function Ks(a, o, r, t, e) {
|
|
3411
|
-
return typeof a.addEventListener == "function" ?
|
|
3412
|
-
return
|
|
3414
|
+
return typeof a.addEventListener == "function" ? It.apply(null, arguments) : typeof r == "function" ? It.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
|
|
3415
|
+
return It(i, o, r, t, e);
|
|
3413
3416
|
}));
|
|
3414
3417
|
}
|
|
3415
3418
|
function $s(a, o, r, t) {
|
|
@@ -3418,7 +3421,7 @@ function $s(a, o, r, t) {
|
|
|
3418
3421
|
};
|
|
3419
3422
|
}
|
|
3420
3423
|
var Ys = Ks;
|
|
3421
|
-
const ki = /* @__PURE__ */
|
|
3424
|
+
const ki = /* @__PURE__ */ Yt(Ys);
|
|
3422
3425
|
var Xs = {
|
|
3423
3426
|
CONTROLS: "controls",
|
|
3424
3427
|
ROOT: "root"
|
|
@@ -3436,7 +3439,7 @@ var Xs = {
|
|
|
3436
3439
|
ICON_DISABLE: "xg-icon-disable",
|
|
3437
3440
|
ICON_HIDE: "xg-icon-hide"
|
|
3438
3441
|
};
|
|
3439
|
-
function
|
|
3442
|
+
function At(a) {
|
|
3440
3443
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
3441
3444
|
}
|
|
3442
3445
|
function qs(a, o) {
|
|
@@ -3453,8 +3456,8 @@ function bi(a, o) {
|
|
|
3453
3456
|
return f.addClass(a, r), Object.keys(t).map(function(n) {
|
|
3454
3457
|
a.setAttribute(n, t[n]);
|
|
3455
3458
|
}), a;
|
|
3456
|
-
if (
|
|
3457
|
-
return t.src =
|
|
3459
|
+
if (At(a) || At(a.url))
|
|
3460
|
+
return t.src = At(a) ? a : a.url || "", i = f.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
|
|
3458
3461
|
if (typeof a == "function")
|
|
3459
3462
|
try {
|
|
3460
3463
|
return i = a(), i instanceof window.Element ? (f.addClass(i, r), Object.keys(t).map(function(n) {
|
|
@@ -4201,7 +4204,7 @@ var no = function(o, r) {
|
|
|
4201
4204
|
};
|
|
4202
4205
|
Object.keys(u).map(function(h) {
|
|
4203
4206
|
e.root.style[h] = u[h];
|
|
4204
|
-
}), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(
|
|
4207
|
+
}), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(ht, function(h) {
|
|
4205
4208
|
h ? f.addClass(e.root, "mini-controls") : f.removeClass(e.root, "mini-controls");
|
|
4206
4209
|
});
|
|
4207
4210
|
var c = this.playerConfig.isMobileSimulateMode;
|
|
@@ -4408,14 +4411,14 @@ var no = function(o, r) {
|
|
|
4408
4411
|
langKeys: [],
|
|
4409
4412
|
textKeys: []
|
|
4410
4413
|
};
|
|
4411
|
-
function
|
|
4414
|
+
function tt(a, o) {
|
|
4412
4415
|
return Object.keys(o).forEach(function(r) {
|
|
4413
4416
|
var t = f.typeOf(o[r]), e = f.typeOf(a[r]);
|
|
4414
4417
|
if (t === "Array") {
|
|
4415
4418
|
var i;
|
|
4416
4419
|
e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, ae(o[r]));
|
|
4417
4420
|
} else
|
|
4418
|
-
t === "Object" ? (e !== "Object" && (a[r] = {}),
|
|
4421
|
+
t === "Object" ? (e !== "Object" && (a[r] = {}), tt(a[r], o[r])) : a[r] = o[r];
|
|
4419
4422
|
}), a;
|
|
4420
4423
|
}
|
|
4421
4424
|
function pn() {
|
|
@@ -4435,15 +4438,15 @@ function oo(a, o) {
|
|
|
4435
4438
|
}) : r = a;
|
|
4436
4439
|
var t = o, e = t.lang;
|
|
4437
4440
|
r.map(function(i) {
|
|
4438
|
-
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ?
|
|
4441
|
+
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? tt(e[i.LANG] || {}, i.TEXT || {}) : ri(i, o);
|
|
4439
4442
|
}), pn();
|
|
4440
4443
|
}
|
|
4441
4444
|
}
|
|
4442
|
-
function
|
|
4445
|
+
function ri(a, o) {
|
|
4443
4446
|
var r = a.LANG;
|
|
4444
4447
|
if (o || (o = te), !!o.lang) {
|
|
4445
4448
|
var t = a.TEXT || {};
|
|
4446
|
-
r === "zh" && (r = "zh-cn"), o.lang[r] ?
|
|
4449
|
+
r === "zh" && (r = "zh-cn"), o.lang[r] ? tt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), pn();
|
|
4447
4450
|
}
|
|
4448
4451
|
}
|
|
4449
4452
|
function ao(a) {
|
|
@@ -4453,10 +4456,10 @@ function ao(a) {
|
|
|
4453
4456
|
textKeys: {},
|
|
4454
4457
|
pId: a
|
|
4455
4458
|
};
|
|
4456
|
-
return
|
|
4459
|
+
return tt(r.lang, te.lang), (o = r.langKeys).push.apply(o, ae(te.langKeys)), tt(r.textKeys, te.textKeys), r;
|
|
4457
4460
|
}
|
|
4458
|
-
|
|
4459
|
-
var
|
|
4461
|
+
ri(so);
|
|
4462
|
+
var We = {
|
|
4460
4463
|
get textKeys() {
|
|
4461
4464
|
return te.textKeys;
|
|
4462
4465
|
},
|
|
@@ -4470,7 +4473,7 @@ var Ge = {
|
|
|
4470
4473
|
}), te.lang["zh-cn"] && (a.zh = te.lang["zh-cn"] || {}), a;
|
|
4471
4474
|
},
|
|
4472
4475
|
extend: oo,
|
|
4473
|
-
use:
|
|
4476
|
+
use: ri,
|
|
4474
4477
|
init: ao
|
|
4475
4478
|
}, N = {
|
|
4476
4479
|
INITIAL: 1,
|
|
@@ -4481,7 +4484,7 @@ var Ge = {
|
|
|
4481
4484
|
RUNNING: 6,
|
|
4482
4485
|
ENDED: 7,
|
|
4483
4486
|
DESTROYED: 8
|
|
4484
|
-
}, Ei = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], Z = {},
|
|
4487
|
+
}, Ei = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], Z = {}, Lt = null, vn = /* @__PURE__ */ function(a) {
|
|
4485
4488
|
x(r, a);
|
|
4486
4489
|
var o = P(r);
|
|
4487
4490
|
function r() {
|
|
@@ -4564,7 +4567,7 @@ var Ge = {
|
|
|
4564
4567
|
}], [{
|
|
4565
4568
|
key: "getInstance",
|
|
4566
4569
|
value: function() {
|
|
4567
|
-
return
|
|
4570
|
+
return Lt || (Lt = new r()), Lt;
|
|
4568
4571
|
}
|
|
4569
4572
|
}]), r;
|
|
4570
4573
|
}(Ki.EventEmitter);
|
|
@@ -4576,7 +4579,7 @@ function lo(a) {
|
|
|
4576
4579
|
}
|
|
4577
4580
|
return null;
|
|
4578
4581
|
}
|
|
4579
|
-
var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null,
|
|
4582
|
+
var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /* @__PURE__ */ function(a) {
|
|
4580
4583
|
x(r, a);
|
|
4581
4584
|
var o = P(r);
|
|
4582
4585
|
function r(t) {
|
|
@@ -4594,7 +4597,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4594
4597
|
e.resize();
|
|
4595
4598
|
}, 100);
|
|
4596
4599
|
}, C = f.getFullScreenEl();
|
|
4597
|
-
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(
|
|
4600
|
+
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(gt, {
|
|
4598
4601
|
eventType: "system",
|
|
4599
4602
|
action: "switch_fullscreen",
|
|
4600
4603
|
pluginName: "player",
|
|
@@ -4655,12 +4658,12 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4655
4658
|
}, e._offsetInfo = {
|
|
4656
4659
|
currentTime: -1,
|
|
4657
4660
|
duration: 0
|
|
4658
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n =
|
|
4661
|
+
}, 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 zs(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
4659
4662
|
isActiveLocked: !1
|
|
4660
4663
|
}, e.instManager = _e;
|
|
4661
4664
|
var l = e._initDOM();
|
|
4662
4665
|
if (!l)
|
|
4663
|
-
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))),
|
|
4666
|
+
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), qt(e);
|
|
4664
4667
|
var u = e.config, c = u.definition, h = c === void 0 ? {} : c, d = u.url;
|
|
4665
4668
|
if (!d && h.list && h.list.length > 0) {
|
|
4666
4669
|
var g = h.list.find(function(p) {
|
|
@@ -4669,7 +4672,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4669
4672
|
g || (h.defaultDefinition = h.list[0].definition, g = h.list[0]), e.config.url = g.url, e.curDefinition = g;
|
|
4670
4673
|
}
|
|
4671
4674
|
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), K.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(N.READY), f.setTimeout(v(e), function() {
|
|
4672
|
-
e.emit(
|
|
4675
|
+
e.emit(ei);
|
|
4673
4676
|
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < N.ATTACHED) && e.start(), e;
|
|
4674
4677
|
}
|
|
4675
4678
|
return E(r, [{
|
|
@@ -4681,7 +4684,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4681
4684
|
if (n && n.nodeType === 1)
|
|
4682
4685
|
this.root = n;
|
|
4683
4686
|
else
|
|
4684
|
-
return this.emit(
|
|
4687
|
+
return this.emit(it, new ut("use", this.config.vid, {
|
|
4685
4688
|
line: 32,
|
|
4686
4689
|
handle: "Constructor",
|
|
4687
4690
|
msg: "container id can't be empty"
|
|
@@ -4766,7 +4769,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4766
4769
|
O.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (R.os.isIpad || R.os.isPhone) && this.mediaPlay());
|
|
4767
4770
|
var l = this.config.startTime;
|
|
4768
4771
|
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 < N.ATTACHED) && K.afterInit(this), this.hasStart = !0, this.setState(N.ATTACHED), f.setTimeout(this, function() {
|
|
4769
|
-
i.emit(
|
|
4772
|
+
i.emit(kt);
|
|
4770
4773
|
}, 0);
|
|
4771
4774
|
}
|
|
4772
4775
|
}
|
|
@@ -4776,7 +4779,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4776
4779
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
4777
4780
|
this._loadingPlugins = [];
|
|
4778
4781
|
var n = this.config.ignores || [], s = this.config.plugins || [], l = this.config.i18n || [];
|
|
4779
|
-
i &&
|
|
4782
|
+
i && We.extend(l, this.__i18n);
|
|
4780
4783
|
var u = n.join("||").toLowerCase().split("||"), c = this.plugins;
|
|
4781
4784
|
s.forEach(function(h) {
|
|
4782
4785
|
try {
|
|
@@ -4961,7 +4964,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4961
4964
|
return;
|
|
4962
4965
|
}
|
|
4963
4966
|
n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
|
|
4964
|
-
e._errorTimer = null, e.emit(
|
|
4967
|
+
e._errorTimer = null, e.emit(ti), e.addClass(k.NOT_ALLOW_AUTOPLAY), e.removeClass(k.ENTER), e.pause(), e.setState(N.NOTALLOW);
|
|
4965
4968
|
}, 0));
|
|
4966
4969
|
}) : (O.logWarn("video.play not return promise"), this.state < N.RUNNING && (this.setState(N.RUNNING), this.removeClass(k.NOT_ALLOW_AUTOPLAY), this.removeClass(k.NO_START), this.removeClass(k.ENTER), this.addClass(k.PLAYING), this.emit(De))), i;
|
|
4967
4970
|
}
|
|
@@ -5026,7 +5029,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5026
5029
|
var n = this, s = this.config.definition;
|
|
5027
5030
|
if (Array.isArray(s == null ? void 0 : s.list) && s.list.forEach(function(u) {
|
|
5028
5031
|
(e == null ? void 0 : e.definition) === u.definition && (n.curDefinition = u);
|
|
5029
|
-
}), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(
|
|
5032
|
+
}), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(ni, {
|
|
5030
5033
|
from: i,
|
|
5031
5034
|
to: e
|
|
5032
5035
|
}), !this.hasStart) {
|
|
@@ -5037,11 +5040,11 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5037
5040
|
seamless: s.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
|
|
5038
5041
|
}, e));
|
|
5039
5042
|
l && l.then ? l.then(function() {
|
|
5040
|
-
n.emit(
|
|
5043
|
+
n.emit(Gt, {
|
|
5041
5044
|
from: i,
|
|
5042
5045
|
to: e
|
|
5043
5046
|
});
|
|
5044
|
-
}) : this.emit(
|
|
5047
|
+
}) : this.emit(Gt, {
|
|
5045
5048
|
from: i,
|
|
5046
5049
|
to: e
|
|
5047
5050
|
});
|
|
@@ -5059,7 +5062,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5059
5062
|
var e = this, i = k.NOT_ALLOW_AUTOPLAY, n = k.PLAYING, s = k.NO_START, l = k.PAUSED, u = k.REPLAY, c = k.ENTER, h = k.ENDED, d = k.ERROR, g = k.LOADING, p = [i, n, s, l, u, c, h, d, g];
|
|
5060
5063
|
this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, p.forEach(function(m) {
|
|
5061
5064
|
e.removeClass(m);
|
|
5062
|
-
}), this.addClass(k.NO_START), this.emit(
|
|
5065
|
+
}), this.addClass(k.NO_START), this.emit(bt);
|
|
5063
5066
|
}
|
|
5064
5067
|
}, {
|
|
5065
5068
|
key: "reset",
|
|
@@ -5081,7 +5084,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5081
5084
|
value: function() {
|
|
5082
5085
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
5083
5086
|
if (!(!s || !l)) {
|
|
5084
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Ie), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(
|
|
5087
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Ie), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(ii), (e = _e) === null || e === void 0 || e.remove(this), K.destroy(this), gn(this), L(I(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
5085
5088
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
5086
5089
|
n.removeChild(u[c]);
|
|
5087
5090
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -5105,7 +5108,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5105
5108
|
i && i.catch && i.catch(function(n) {
|
|
5106
5109
|
console.log(n);
|
|
5107
5110
|
});
|
|
5108
|
-
}), e.emit(
|
|
5111
|
+
}), e.emit(ct), e.onPlay();
|
|
5109
5112
|
});
|
|
5110
5113
|
}
|
|
5111
5114
|
}, {
|
|
@@ -5184,7 +5187,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5184
5187
|
var i = e ? "".concat(k.INNER_FULLSCREEN, " ").concat(k.CSS_FULLSCREEN) : k.CSS_FULLSCREEN;
|
|
5185
5188
|
this.changeFullStyle(this.root, e, i);
|
|
5186
5189
|
var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
|
|
5187
|
-
l && (this.fullscreen = !0, this.emit(ge, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(
|
|
5190
|
+
l && (this.fullscreen = !0, this.emit(ge, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(ft, !0);
|
|
5188
5191
|
}
|
|
5189
5192
|
}, {
|
|
5190
5193
|
key: "exitCssFullscreen",
|
|
@@ -5196,7 +5199,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5196
5199
|
var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
|
|
5197
5200
|
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(ge, !1)) : this.removeClass(e);
|
|
5198
5201
|
}
|
|
5199
|
-
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(
|
|
5202
|
+
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(ft, !1);
|
|
5200
5203
|
}
|
|
5201
5204
|
}, {
|
|
5202
5205
|
key: "getRotateFullscreen",
|
|
@@ -5228,7 +5231,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5228
5231
|
this.onFocus(e);
|
|
5229
5232
|
return;
|
|
5230
5233
|
}
|
|
5231
|
-
this.emit(
|
|
5234
|
+
this.emit(Qt, W({
|
|
5232
5235
|
paused: this.paused,
|
|
5233
5236
|
ended: this.ended
|
|
5234
5237
|
}, e));
|
|
@@ -5361,7 +5364,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5361
5364
|
value: function(e, i, n) {
|
|
5362
5365
|
if (!(!this.media || !i || !e)) {
|
|
5363
5366
|
var s = f.typeOf(e) === "String" ? e : e.type || "";
|
|
5364
|
-
n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(
|
|
5367
|
+
n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(gt, W({
|
|
5365
5368
|
eventType: s,
|
|
5366
5369
|
action: i,
|
|
5367
5370
|
currentTime: this.currentTime,
|
|
@@ -5447,7 +5450,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5447
5450
|
value: function(e) {
|
|
5448
5451
|
var i = this;
|
|
5449
5452
|
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, pe(this, "playnext", function() {
|
|
5450
|
-
i.start(), i.emit(
|
|
5453
|
+
i.start(), i.emit(dt, e);
|
|
5451
5454
|
});
|
|
5452
5455
|
}
|
|
5453
5456
|
}, {
|
|
@@ -5562,11 +5565,11 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5562
5565
|
return this.config.lang;
|
|
5563
5566
|
},
|
|
5564
5567
|
set: function(e) {
|
|
5565
|
-
var i =
|
|
5568
|
+
var i = We.langKeys.filter(function(n) {
|
|
5566
5569
|
return n === e;
|
|
5567
5570
|
});
|
|
5568
5571
|
if (i.length === 0 && e !== "zh") {
|
|
5569
|
-
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(
|
|
5572
|
+
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(We.langKeys.join(), "] "));
|
|
5570
5573
|
return;
|
|
5571
5574
|
}
|
|
5572
5575
|
this.config.lang = e, K.setLang(e, this);
|
|
@@ -5585,7 +5588,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5585
5588
|
}, {
|
|
5586
5589
|
key: "version",
|
|
5587
5590
|
get: function() {
|
|
5588
|
-
return
|
|
5591
|
+
return jt;
|
|
5589
5592
|
}
|
|
5590
5593
|
}, {
|
|
5591
5594
|
key: "playerId",
|
|
@@ -5686,17 +5689,17 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5686
5689
|
}, {
|
|
5687
5690
|
key: "hook",
|
|
5688
5691
|
value: function(e, i) {
|
|
5689
|
-
return
|
|
5692
|
+
return pt.call.apply(pt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5690
5693
|
}
|
|
5691
5694
|
}, {
|
|
5692
5695
|
key: "useHooks",
|
|
5693
5696
|
value: function(e, i) {
|
|
5694
|
-
return
|
|
5697
|
+
return vt.call.apply(vt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5695
5698
|
}
|
|
5696
5699
|
}, {
|
|
5697
5700
|
key: "removeHooks",
|
|
5698
5701
|
value: function(e, i) {
|
|
5699
|
-
return
|
|
5702
|
+
return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5700
5703
|
}
|
|
5701
5704
|
}, {
|
|
5702
5705
|
key: "usePluginHooks",
|
|
@@ -5768,9 +5771,9 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5768
5771
|
}
|
|
5769
5772
|
}]), r;
|
|
5770
5773
|
}(Us);
|
|
5771
|
-
y(
|
|
5772
|
-
y(
|
|
5773
|
-
|
|
5774
|
+
y(Tt, "defaultPreset", null);
|
|
5775
|
+
y(Tt, "XgVideoProxy", null);
|
|
5776
|
+
Tt.instManager = vn.getInstance();
|
|
5774
5777
|
function $() {
|
|
5775
5778
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
5776
5779
|
}
|
|
@@ -5834,18 +5837,18 @@ var Ce = {
|
|
|
5834
5837
|
key: "afterCreate",
|
|
5835
5838
|
value: function() {
|
|
5836
5839
|
var e = this;
|
|
5837
|
-
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = $(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(
|
|
5840
|
+
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = $(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(Jt, function() {
|
|
5838
5841
|
var i = e._state, n = i.autoplayStart, s = i.isFFSend;
|
|
5839
5842
|
e.startCostTime = $() - e.newPointTime, O.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(Ce.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = $(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
|
|
5840
5843
|
}), this.on(ye, function() {
|
|
5841
5844
|
e.vt = $(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
5842
5845
|
var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
|
|
5843
5846
|
O.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(Ce.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
5844
|
-
}), this.on(
|
|
5847
|
+
}), this.on(Ct, this._onSeeking), this.on(me, this._onSeeked), this.on(ii, function() {
|
|
5845
5848
|
e.endState("destroy");
|
|
5846
|
-
}), this.on(
|
|
5849
|
+
}), this.on(wt, function() {
|
|
5847
5850
|
e.endState("urlChange"), O.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
5848
|
-
}), this.on([
|
|
5851
|
+
}), this.on([Zt, ve], this._onPlaying), this.on(nt, this._onWaiting), this.on(it, this._onError), this.on(bt, function() {
|
|
5849
5852
|
O.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
5850
5853
|
});
|
|
5851
5854
|
}
|
|
@@ -6059,7 +6062,7 @@ var ho = /* @__PURE__ */ function(a) {
|
|
|
6059
6062
|
e.isEndedShow && f.removeClass(e.root, "hide");
|
|
6060
6063
|
}), this.config.hideCanplay ? (this.once(ie, function() {
|
|
6061
6064
|
e.onTimeUpdate();
|
|
6062
|
-
}), this.on(
|
|
6065
|
+
}), this.on(wt, function() {
|
|
6063
6066
|
f.removeClass(e.root, "hide"), f.addClass(e.root, "xg-showplay"), e.once(ie, function() {
|
|
6064
6067
|
e.onTimeUpdate();
|
|
6065
6068
|
});
|
|
@@ -6134,13 +6137,13 @@ var ho = /* @__PURE__ */ function(a) {
|
|
|
6134
6137
|
}
|
|
6135
6138
|
}]), r;
|
|
6136
6139
|
}(U);
|
|
6137
|
-
function
|
|
6140
|
+
function si() {
|
|
6138
6141
|
return new DOMParser().parseFromString(`<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
6139
6142
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
|
|
6140
6143
|
</svg>
|
|
6141
6144
|
`, "image/svg+xml").firstChild;
|
|
6142
6145
|
}
|
|
6143
|
-
function
|
|
6146
|
+
function oi() {
|
|
6144
6147
|
return new DOMParser().parseFromString(`<svg class="pause" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
6145
6148
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
|
|
6146
6149
|
</svg>
|
|
@@ -6185,16 +6188,16 @@ var vo = /* @__PURE__ */ function(a) {
|
|
|
6185
6188
|
key: "afterCreate",
|
|
6186
6189
|
value: function() {
|
|
6187
6190
|
var e = this, i = this.player, n = this.playerConfig;
|
|
6188
|
-
this.initIcons(), this.once(
|
|
6191
|
+
this.initIcons(), this.once(ei, function() {
|
|
6189
6192
|
n && (n.lang && n.lang === "en" ? f.addClass(i.root, "lang-is-en") : n.lang === "jp" && f.addClass(i.root, "lang-is-jp"));
|
|
6190
|
-
}), this.on(De, this.onAutoplayStart), n.autoplay || this.show(), this.on(
|
|
6193
|
+
}), this.on(De, this.onAutoplayStart), n.autoplay || this.show(), this.on(ti, function() {
|
|
6191
6194
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
6192
6195
|
e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
|
|
6193
6196
|
}), this.on(ne, function() {
|
|
6194
6197
|
e.onPlayPause("play");
|
|
6195
|
-
}), this.on(
|
|
6198
|
+
}), this.on(Ye, function() {
|
|
6196
6199
|
e.onPlayPause("pause");
|
|
6197
|
-
}), this.on(
|
|
6200
|
+
}), this.on(bt, function() {
|
|
6198
6201
|
e.onPlayerReset();
|
|
6199
6202
|
}), this.clickHandler = this.hook("startClick", this.switchPausePlay, {
|
|
6200
6203
|
pre: function(l) {
|
|
@@ -6213,11 +6216,11 @@ var vo = /* @__PURE__ */ function(a) {
|
|
|
6213
6216
|
value: function() {
|
|
6214
6217
|
return {
|
|
6215
6218
|
startPlay: {
|
|
6216
|
-
icon:
|
|
6219
|
+
icon: si,
|
|
6217
6220
|
class: "xg-icon-play"
|
|
6218
6221
|
},
|
|
6219
6222
|
startPause: {
|
|
6220
|
-
icon:
|
|
6223
|
+
icon: oi,
|
|
6221
6224
|
class: "xg-icon-pause"
|
|
6222
6225
|
}
|
|
6223
6226
|
};
|
|
@@ -6439,7 +6442,7 @@ function Ai(a) {
|
|
|
6439
6442
|
var o = parseFloat(a), r = a.indexOf("%") === -1 && !Number.isNaN(o);
|
|
6440
6443
|
return r && o;
|
|
6441
6444
|
}
|
|
6442
|
-
var
|
|
6445
|
+
var ai = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], mn = ai.length;
|
|
6443
6446
|
function yo() {
|
|
6444
6447
|
for (var a = {
|
|
6445
6448
|
width: 0,
|
|
@@ -6449,7 +6452,7 @@ function yo() {
|
|
|
6449
6452
|
outerWidth: 0,
|
|
6450
6453
|
outerHeight: 0
|
|
6451
6454
|
}, o = 0; o < mn; o++) {
|
|
6452
|
-
var r =
|
|
6455
|
+
var r = ai[o];
|
|
6453
6456
|
a[r] = 0;
|
|
6454
6457
|
}
|
|
6455
6458
|
return a;
|
|
@@ -6466,7 +6469,7 @@ function Li(a) {
|
|
|
6466
6469
|
var r = {};
|
|
6467
6470
|
r.width = a.offsetWidth, r.height = a.offsetHeight;
|
|
6468
6471
|
for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < mn; e++) {
|
|
6469
|
-
var i =
|
|
6472
|
+
var i = ai[e], n = o[i], s = parseFloat(n);
|
|
6470
6473
|
r[i] = Number.isNaN(s) ? 0 : s;
|
|
6471
6474
|
}
|
|
6472
6475
|
var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, g = r.borderTopWidth + r.borderBottomWidth, p = t, m = Ai(o.width);
|
|
@@ -6475,14 +6478,14 @@ function Li(a) {
|
|
|
6475
6478
|
return _ !== !1 && (r.height = _ + (p ? 0 : u + g)), r.innerWidth = r.width - (l + d), r.innerHeight = r.height - (u + g), r.outerWidth = r.width + c, r.outerHeight = r.height + h, r;
|
|
6476
6479
|
}
|
|
6477
6480
|
}
|
|
6478
|
-
function
|
|
6481
|
+
function Dt(a, o) {
|
|
6479
6482
|
for (var r = 0; r < a.length; r++) {
|
|
6480
6483
|
var t = a[r];
|
|
6481
6484
|
if (t.identifier === o)
|
|
6482
6485
|
return t;
|
|
6483
6486
|
}
|
|
6484
6487
|
}
|
|
6485
|
-
var
|
|
6488
|
+
var Rt = {
|
|
6486
6489
|
START: "dragStart",
|
|
6487
6490
|
MOVE: "dragMove",
|
|
6488
6491
|
ENDED: "dragEnded"
|
|
@@ -6501,7 +6504,7 @@ var Dt = {
|
|
|
6501
6504
|
}, e.startPos = {
|
|
6502
6505
|
x: 0,
|
|
6503
6506
|
y: 0
|
|
6504
|
-
}, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ?
|
|
6507
|
+
}, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ? qt(e) : (e._bindStartEvent(), e);
|
|
6505
6508
|
}
|
|
6506
6509
|
return E(r, [{
|
|
6507
6510
|
key: "_bindStartEvent",
|
|
@@ -6593,19 +6596,19 @@ var Dt = {
|
|
|
6593
6596
|
}, {
|
|
6594
6597
|
key: "ontouchmove",
|
|
6595
6598
|
value: function(e) {
|
|
6596
|
-
var i =
|
|
6599
|
+
var i = Dt(e.changedTouches, this.touchIdentifier);
|
|
6597
6600
|
i && this.dragMove(e, i);
|
|
6598
6601
|
}
|
|
6599
6602
|
}, {
|
|
6600
6603
|
key: "ontouchend",
|
|
6601
6604
|
value: function(e) {
|
|
6602
|
-
var i =
|
|
6605
|
+
var i = Dt(e.changedTouches, this.touchIdentifier);
|
|
6603
6606
|
i && this.dragEnd(e, i), e.preventDefault();
|
|
6604
6607
|
}
|
|
6605
6608
|
}, {
|
|
6606
6609
|
key: "ontouchcancel",
|
|
6607
6610
|
value: function(e) {
|
|
6608
|
-
var i =
|
|
6611
|
+
var i = Dt(e.changedTouches, this.touchIdentifier);
|
|
6609
6612
|
i && this.dragCancel(e, i);
|
|
6610
6613
|
}
|
|
6611
6614
|
}, {
|
|
@@ -6620,12 +6623,12 @@ var Dt = {
|
|
|
6620
6623
|
}, {
|
|
6621
6624
|
key: "dragRealStart",
|
|
6622
6625
|
value: function(e, i) {
|
|
6623
|
-
this.isDragging = !0, this.animate(), this.emit(
|
|
6626
|
+
this.isDragging = !0, this.animate(), this.emit(Rt.START, this.startPos);
|
|
6624
6627
|
}
|
|
6625
6628
|
}, {
|
|
6626
6629
|
key: "dragEnd",
|
|
6627
6630
|
value: function(e, i) {
|
|
6628
|
-
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(
|
|
6631
|
+
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(Rt.ENDED)), this.presetInfo());
|
|
6629
6632
|
}
|
|
6630
6633
|
}, {
|
|
6631
6634
|
key: "_dragPointerMove",
|
|
@@ -6641,7 +6644,7 @@ var Dt = {
|
|
|
6641
6644
|
value: function(e, i) {
|
|
6642
6645
|
if (e = e || window.event, !!this.isDown) {
|
|
6643
6646
|
var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, h = u.y;
|
|
6644
|
-
c = this.checkContain("x", c, s), h = this.checkContain("y", h, l), this.position.x = s + c, this.position.y = l + h, this.dragPoint.x = c, this.dragPoint.y = h, this.emit(
|
|
6647
|
+
c = this.checkContain("x", c, s), h = this.checkContain("y", h, l), this.position.x = s + c, this.position.y = l + h, this.dragPoint.x = c, this.dragPoint.y = h, this.emit(Rt.MOVE, this.position);
|
|
6645
6648
|
}
|
|
6646
6649
|
}
|
|
6647
6650
|
}, {
|
|
@@ -6734,7 +6737,7 @@ var Dt = {
|
|
|
6734
6737
|
key: "afterCreate",
|
|
6735
6738
|
value: function() {
|
|
6736
6739
|
var e = this;
|
|
6737
|
-
this.initIcons(), this.on(
|
|
6740
|
+
this.initIcons(), this.on(Ye, function() {
|
|
6738
6741
|
e.setAttr("data-state", "pause");
|
|
6739
6742
|
}), this.on(ne, function() {
|
|
6740
6743
|
e.setAttr("data-state", "play");
|
|
@@ -6766,11 +6769,11 @@ var Dt = {
|
|
|
6766
6769
|
value: function() {
|
|
6767
6770
|
return {
|
|
6768
6771
|
play: {
|
|
6769
|
-
icon:
|
|
6772
|
+
icon: si,
|
|
6770
6773
|
class: "xg-icon-play"
|
|
6771
6774
|
},
|
|
6772
6775
|
pause: {
|
|
6773
|
-
icon:
|
|
6776
|
+
icon: oi,
|
|
6774
6777
|
class: "xg-icon-pause"
|
|
6775
6778
|
}
|
|
6776
6779
|
};
|
|
@@ -6789,7 +6792,7 @@ var Dt = {
|
|
|
6789
6792
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
6790
6793
|
this.lastStyle = {}, f.addClass(i.root, "xgplayer-mini"), ["width", "height", "top", "left"].map(function(l) {
|
|
6791
6794
|
e.lastStyle[l] = s.style[l], s.style[l] = "".concat(e.pos[l], "px");
|
|
6792
|
-
}), n.fluid && (s.style["padding-top"] = ""), this.emit(
|
|
6795
|
+
}), n.fluid && (s.style["padding-top"] = ""), this.emit(ht, !0), i.isMini = this.isMini = !0;
|
|
6793
6796
|
}
|
|
6794
6797
|
}
|
|
6795
6798
|
}, {
|
|
@@ -6801,7 +6804,7 @@ var Dt = {
|
|
|
6801
6804
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
6802
6805
|
f.removeClass(i.root, "xgplayer-mini"), this.lastStyle && Object.keys(this.lastStyle).map(function(l) {
|
|
6803
6806
|
s.style[l] = e.lastStyle[l];
|
|
6804
|
-
}), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(
|
|
6807
|
+
}), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(ht, !1), this.isMini = i.isMini = !1;
|
|
6805
6808
|
}
|
|
6806
6809
|
}, {
|
|
6807
6810
|
key: "destroy",
|
|
@@ -6850,11 +6853,11 @@ var Dt = {
|
|
|
6850
6853
|
};
|
|
6851
6854
|
}
|
|
6852
6855
|
}]), r;
|
|
6853
|
-
}(U),
|
|
6856
|
+
}(U), st = {
|
|
6854
6857
|
mouseenter: "onMouseEnter",
|
|
6855
6858
|
mouseleave: "onMouseLeave",
|
|
6856
6859
|
mousemove: "onMouseMove"
|
|
6857
|
-
},
|
|
6860
|
+
}, Ot = ["videoClick", "videoDbClick"], Ft = /* @__PURE__ */ function(a) {
|
|
6858
6861
|
x(r, a);
|
|
6859
6862
|
var o = P(r);
|
|
6860
6863
|
function r() {
|
|
@@ -6883,7 +6886,7 @@ var Dt = {
|
|
|
6883
6886
|
}), y(v(t), "onVideoClick", function(s) {
|
|
6884
6887
|
var l = v(t), u = l.player, c = l.playerConfig;
|
|
6885
6888
|
s.target && c.closeVideoClick || (s.target === u.root || s.target === u.media || s.target === u.innerContainer || s.target === u.media.__canvas) && (s.preventDefault(), c.closeVideoStopPropagation || s.stopPropagation(), t._clickCount++, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), t.clickTimer = setTimeout(function() {
|
|
6886
|
-
t._clickCount && (t._clickCount--, pe(v(t),
|
|
6889
|
+
t._clickCount && (t._clickCount--, pe(v(t), Ot[0], function(h, d) {
|
|
6887
6890
|
t.switchPlayPause(d.e);
|
|
6888
6891
|
}, {
|
|
6889
6892
|
e: s,
|
|
@@ -6897,7 +6900,7 @@ var Dt = {
|
|
|
6897
6900
|
t._clickCount = 0;
|
|
6898
6901
|
return;
|
|
6899
6902
|
}
|
|
6900
|
-
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), pe(v(t),
|
|
6903
|
+
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), pe(v(t), Ot[1], function(h, d) {
|
|
6901
6904
|
t.emitUserAction(d.e, "switch_fullscreen", {
|
|
6902
6905
|
props: "fullscreen",
|
|
6903
6906
|
from: u.fullscreen,
|
|
@@ -6914,7 +6917,7 @@ var Dt = {
|
|
|
6914
6917
|
key: "afterCreate",
|
|
6915
6918
|
value: function() {
|
|
6916
6919
|
var e = this;
|
|
6917
|
-
this._clickCount = 0,
|
|
6920
|
+
this._clickCount = 0, Ot.map(function(n) {
|
|
6918
6921
|
e.__hooks[n] = null;
|
|
6919
6922
|
});
|
|
6920
6923
|
var i = this.playerConfig.isMobileSimulateMode;
|
|
@@ -6924,8 +6927,8 @@ var Dt = {
|
|
|
6924
6927
|
key: "initEvents",
|
|
6925
6928
|
value: function() {
|
|
6926
6929
|
var e = this, i = this.player, n = i.media, s = i.root, l = this.playerConfig.enableContextmenu;
|
|
6927
|
-
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(
|
|
6928
|
-
s.addEventListener(u, e[
|
|
6930
|
+
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(st).map(function(u) {
|
|
6931
|
+
s.addEventListener(u, e[st[u]], !1);
|
|
6929
6932
|
}), !l && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
|
|
6930
6933
|
}
|
|
6931
6934
|
}, {
|
|
@@ -6947,8 +6950,8 @@ var Dt = {
|
|
|
6947
6950
|
key: "destroy",
|
|
6948
6951
|
value: function() {
|
|
6949
6952
|
var e = this, i = this.player, n = i.video, s = i.root;
|
|
6950
|
-
this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(
|
|
6951
|
-
s.removeEventListener(l, e[
|
|
6953
|
+
this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(st).map(function(l) {
|
|
6954
|
+
s.removeEventListener(l, e[st[l]], !1);
|
|
6952
6955
|
});
|
|
6953
6956
|
}
|
|
6954
6957
|
}], [{
|
|
@@ -7110,7 +7113,7 @@ var Be = {
|
|
|
7110
7113
|
SEEKING: "seeking",
|
|
7111
7114
|
PLAYBACK: "playbackrate",
|
|
7112
7115
|
LIGHT: ""
|
|
7113
|
-
},
|
|
7116
|
+
}, Mt = ["videoClick", "videoDbClick"], xo = /* @__PURE__ */ function(a) {
|
|
7114
7117
|
x(r, a);
|
|
7115
7118
|
var o = P(r);
|
|
7116
7119
|
function r(t) {
|
|
@@ -7191,7 +7194,7 @@ var Be = {
|
|
|
7191
7194
|
key: "afterCreate",
|
|
7192
7195
|
value: function() {
|
|
7193
7196
|
var e = this;
|
|
7194
|
-
|
|
7197
|
+
Mt.map(function(d) {
|
|
7195
7198
|
e.__hooks[d] = null;
|
|
7196
7199
|
});
|
|
7197
7200
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
@@ -7374,7 +7377,7 @@ var Be = {
|
|
|
7374
7377
|
key: "onClick",
|
|
7375
7378
|
value: function(e) {
|
|
7376
7379
|
var i = this, n = this.player;
|
|
7377
|
-
pe(this,
|
|
7380
|
+
pe(this, Mt[0], function(s, l) {
|
|
7378
7381
|
i.clickHandler(l.e);
|
|
7379
7382
|
}, {
|
|
7380
7383
|
e,
|
|
@@ -7385,7 +7388,7 @@ var Be = {
|
|
|
7385
7388
|
key: "onDbClick",
|
|
7386
7389
|
value: function(e) {
|
|
7387
7390
|
var i = this, n = this.player;
|
|
7388
|
-
pe(this,
|
|
7391
|
+
pe(this, Mt[1], function(s, l) {
|
|
7389
7392
|
i.dbClickHandler(l.e);
|
|
7390
7393
|
}, {
|
|
7391
7394
|
e,
|
|
@@ -8538,7 +8541,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
8538
8541
|
var e = this;
|
|
8539
8542
|
L(I(r.prototype), "afterCreate", this).call(this);
|
|
8540
8543
|
var i = this.player, n = this.config;
|
|
8541
|
-
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([
|
|
8544
|
+
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([Ye, it, Fe], function() {
|
|
8542
8545
|
e.animate(i.paused);
|
|
8543
8546
|
}), this.on(ne, function() {
|
|
8544
8547
|
e.animate(i.paused);
|
|
@@ -8549,11 +8552,11 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
8549
8552
|
value: function() {
|
|
8550
8553
|
return {
|
|
8551
8554
|
play: {
|
|
8552
|
-
icon:
|
|
8555
|
+
icon: si,
|
|
8553
8556
|
class: "xg-icon-play"
|
|
8554
8557
|
},
|
|
8555
8558
|
pause: {
|
|
8556
|
-
icon:
|
|
8559
|
+
icon: oi,
|
|
8557
8560
|
class: "xg-icon-pause"
|
|
8558
8561
|
}
|
|
8559
8562
|
};
|
|
@@ -9036,7 +9039,7 @@ var Ho = /* @__PURE__ */ function(a) {
|
|
|
9036
9039
|
return E(r, [{
|
|
9037
9040
|
key: "afterCreate",
|
|
9038
9041
|
value: function() {
|
|
9039
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ee, this._onDurationChange), this.on(ye, this._onLoadedData), this.on(ie, this._onTimeupdate), this.on(
|
|
9042
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ee, this._onDurationChange), this.on(ye, this._onLoadedData), this.on(ie, this._onTimeupdate), this.on(Ct, this._onSeeking), this.on(ne, this._onPlay);
|
|
9040
9043
|
}
|
|
9041
9044
|
}, {
|
|
9042
9045
|
key: "setConfig",
|
|
@@ -9496,7 +9499,7 @@ var He = {
|
|
|
9496
9499
|
key: "afterCreate",
|
|
9497
9500
|
value: function() {
|
|
9498
9501
|
var e = this;
|
|
9499
|
-
this.isPIPAvailable() && (L(I(r.prototype), "afterCreate", this).call(this), this.pMode = He.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(
|
|
9502
|
+
this.isPIPAvailable() && (L(I(r.prototype), "afterCreate", this).call(this), this.pMode = He.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(kt, function() {
|
|
9500
9503
|
e.config.showIcon && (f.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
9501
9504
|
}));
|
|
9502
9505
|
}
|
|
@@ -9528,9 +9531,9 @@ var He = {
|
|
|
9528
9531
|
var n = i.paused;
|
|
9529
9532
|
f.setTimeout(e, function() {
|
|
9530
9533
|
!n && i.mediaPlay();
|
|
9531
|
-
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(
|
|
9534
|
+
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(Kt, !1);
|
|
9532
9535
|
}, this.enterPIPCallback = function(n) {
|
|
9533
|
-
i.emit(
|
|
9536
|
+
i.emit(Kt, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
9534
9537
|
}, this.onWebkitpresentationmodechanged = function(n) {
|
|
9535
9538
|
var s = i.media.webkitPresentationMode;
|
|
9536
9539
|
e.pMode === He.FULLSCREEN && s !== He.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === He.PIP ? e.enterPIPCallback(n) : s === He.INLINE && e.leavePIPCallback(n);
|
|
@@ -9681,7 +9684,7 @@ var Jo = /* @__PURE__ */ function(a) {
|
|
|
9681
9684
|
var e;
|
|
9682
9685
|
return T(this, r), e = o.call(this, t), y(v(e), "playNext", function(i) {
|
|
9683
9686
|
var n = v(e), s = n.player;
|
|
9684
|
-
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(
|
|
9687
|
+
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(dt, e.idx + 1)) : (e.nextHandler(), s.emit(dt));
|
|
9685
9688
|
}), e.idx = -1, e;
|
|
9686
9689
|
}
|
|
9687
9690
|
return E(r, [{
|
|
@@ -9816,7 +9819,7 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
9816
9819
|
});
|
|
9817
9820
|
})(yn);
|
|
9818
9821
|
var Qo = yn.exports;
|
|
9819
|
-
const ea = /* @__PURE__ */
|
|
9822
|
+
const ea = /* @__PURE__ */ Yt(Qo);
|
|
9820
9823
|
function ta() {
|
|
9821
9824
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
9822
9825
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
@@ -10115,7 +10118,7 @@ var ia = /* @__PURE__ */ function(a) {
|
|
|
10115
10118
|
function sa(a, o) {
|
|
10116
10119
|
return a === ce.SIDE ? o === j.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10117
10120
|
}
|
|
10118
|
-
var Pe = R.device === "mobile",
|
|
10121
|
+
var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
|
|
10119
10122
|
x(r, a);
|
|
10120
10123
|
var o = P(r);
|
|
10121
10124
|
function r(t) {
|
|
@@ -10151,7 +10154,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10151
10154
|
e._resizeList();
|
|
10152
10155
|
}), this.once(ve, function() {
|
|
10153
10156
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
10154
|
-
}), Pe && this.on(
|
|
10157
|
+
}), Pe && this.on(Qt, function() {
|
|
10155
10158
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
10156
10159
|
}), Pe ? (i.toggleMode = Ue.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === Ue.CLICK ? "click" : "mouseenter", i.toggleMode === Ue.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);
|
|
10157
10160
|
}
|
|
@@ -10308,7 +10311,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10308
10311
|
var e = this;
|
|
10309
10312
|
L(I(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
|
|
10310
10313
|
e.changeDefinitionList(i);
|
|
10311
|
-
}), this.on(
|
|
10314
|
+
}), this.on(ni, function(i) {
|
|
10312
10315
|
e.renderItemList(e.config.list, i.to);
|
|
10313
10316
|
}), this.player.definitionList.length < 2 && this.hide();
|
|
10314
10317
|
}
|
|
@@ -10376,7 +10379,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10376
10379
|
}, {
|
|
10377
10380
|
key: "defaultConfig",
|
|
10378
10381
|
get: function() {
|
|
10379
|
-
return W(W({},
|
|
10382
|
+
return W(W({}, yt.defaultConfig), {}, {
|
|
10380
10383
|
position: j.CONTROLS_RIGHT,
|
|
10381
10384
|
index: 3,
|
|
10382
10385
|
list: [],
|
|
@@ -10388,7 +10391,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10388
10391
|
});
|
|
10389
10392
|
}
|
|
10390
10393
|
}]), r;
|
|
10391
|
-
}(
|
|
10394
|
+
}(yt), aa = /* @__PURE__ */ function(a) {
|
|
10392
10395
|
x(r, a);
|
|
10393
10396
|
var o = P(r);
|
|
10394
10397
|
function r(t) {
|
|
@@ -10470,7 +10473,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10470
10473
|
}, {
|
|
10471
10474
|
key: "defaultConfig",
|
|
10472
10475
|
get: function() {
|
|
10473
|
-
return W(W({},
|
|
10476
|
+
return W(W({}, yt.defaultConfig), {}, {
|
|
10474
10477
|
position: j.CONTROLS_RIGHT,
|
|
10475
10478
|
index: 4,
|
|
10476
10479
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
@@ -10480,7 +10483,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10480
10483
|
});
|
|
10481
10484
|
}
|
|
10482
10485
|
}]), r;
|
|
10483
|
-
}(
|
|
10486
|
+
}(yt);
|
|
10484
10487
|
function la() {
|
|
10485
10488
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10486
10489
|
<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>
|
|
@@ -10508,7 +10511,7 @@ var Ni = /* @__PURE__ */ function(a) {
|
|
|
10508
10511
|
key: "afterCreate",
|
|
10509
10512
|
value: function() {
|
|
10510
10513
|
var e = this;
|
|
10511
|
-
L(I(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(
|
|
10514
|
+
L(I(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(ft, function(i) {
|
|
10512
10515
|
e.animate(i);
|
|
10513
10516
|
}), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
|
|
10514
10517
|
pre: function(n) {
|
|
@@ -10601,7 +10604,7 @@ var Ni = /* @__PURE__ */ function(a) {
|
|
|
10601
10604
|
pre: function(n) {
|
|
10602
10605
|
n.preventDefault(), n.stopPropagation();
|
|
10603
10606
|
}
|
|
10604
|
-
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(
|
|
10607
|
+
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(it, function(i) {
|
|
10605
10608
|
e.onError(i);
|
|
10606
10609
|
});
|
|
10607
10610
|
}
|
|
@@ -11312,7 +11315,7 @@ var ze = {
|
|
|
11312
11315
|
}
|
|
11313
11316
|
}]), r;
|
|
11314
11317
|
}(U);
|
|
11315
|
-
function
|
|
11318
|
+
function Nt(a) {
|
|
11316
11319
|
return a ? "background:".concat(a, ";") : "";
|
|
11317
11320
|
}
|
|
11318
11321
|
var pa = /* @__PURE__ */ function(a) {
|
|
@@ -11372,9 +11375,9 @@ var pa = /* @__PURE__ */ function(a) {
|
|
|
11372
11375
|
var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
|
|
11373
11376
|
if (n) {
|
|
11374
11377
|
var s = this.config, l = s.mode, u = s.height, c = {
|
|
11375
|
-
cached:
|
|
11376
|
-
played:
|
|
11377
|
-
progress:
|
|
11378
|
+
cached: Nt(i.cachedColor),
|
|
11379
|
+
played: Nt(i.playedColor),
|
|
11380
|
+
progress: Nt(i.progressColor),
|
|
11378
11381
|
height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
|
|
11379
11382
|
}, h = l === "show" ? "xg-mini-progress-show" : "";
|
|
11380
11383
|
return '<xg-mini-progress class="xg-mini-progress '.concat(h, '" style="').concat(c.progress, " ").concat(c.height, `">
|
|
@@ -11418,7 +11421,7 @@ function ma() {
|
|
|
11418
11421
|
return !1;
|
|
11419
11422
|
}
|
|
11420
11423
|
}
|
|
11421
|
-
var
|
|
11424
|
+
var ot = null, ya = /* @__PURE__ */ function(a) {
|
|
11422
11425
|
x(r, a);
|
|
11423
11426
|
var o = P(r);
|
|
11424
11427
|
function r() {
|
|
@@ -11459,16 +11462,16 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11459
11462
|
x: 0,
|
|
11460
11463
|
y: 0,
|
|
11461
11464
|
pi: 0
|
|
11462
|
-
}, 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 !== Ve.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(
|
|
11465
|
+
}, 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 !== Ve.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(kt, function() {
|
|
11463
11466
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
11464
11467
|
}), s !== Ve.POSTER && (s !== Ve.FIRST_FRAME && (this.on(Fe, function() {
|
|
11465
11468
|
e.stop();
|
|
11466
11469
|
}), this.on(ne, function() {
|
|
11467
11470
|
var u = e.config.startInterval;
|
|
11468
11471
|
e._checkIfCanStart() && e.start(0, u);
|
|
11469
|
-
}), this.on(
|
|
11472
|
+
}), this.on(Ye, function() {
|
|
11470
11473
|
e.stop();
|
|
11471
|
-
})), this.on(ye, this.onLoadedData), this.on(
|
|
11474
|
+
})), this.on(ye, this.onLoadedData), this.on(Jt, function() {
|
|
11472
11475
|
e._isLoaded = !1, e.stop();
|
|
11473
11476
|
}), document.addEventListener("visibilitychange", this.onVisibilitychange)));
|
|
11474
11477
|
}
|
|
@@ -11612,7 +11615,7 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11612
11615
|
}, {
|
|
11613
11616
|
key: "isSupport",
|
|
11614
11617
|
get: function() {
|
|
11615
|
-
return typeof
|
|
11618
|
+
return typeof ot == "boolean" || (ot = ma()), ot;
|
|
11616
11619
|
}
|
|
11617
11620
|
}, {
|
|
11618
11621
|
key: "supportCanvasFilter",
|
|
@@ -11695,7 +11698,7 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11695
11698
|
FORWARD: "快进中",
|
|
11696
11699
|
LIVE_TIP: "直播"
|
|
11697
11700
|
}
|
|
11698
|
-
}, qe = "info",
|
|
11701
|
+
}, qe = "info", Bt = fn, Ca = /* @__PURE__ */ function(a) {
|
|
11699
11702
|
x(r, a);
|
|
11700
11703
|
var o = P(r);
|
|
11701
11704
|
function r() {
|
|
@@ -11734,7 +11737,7 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11734
11737
|
}, {
|
|
11735
11738
|
key: "afterCreate",
|
|
11736
11739
|
value: function() {
|
|
11737
|
-
this.reset(), this.on(
|
|
11740
|
+
this.reset(), this.on(gt, this._recordUserActions), this.on(Bt.STATS_INFO, this._recordInfo), this.on(Bt.STATS_DOWNLOAD, this._downloadStats), this.on(Bt.STATS_RESET, this._onReset);
|
|
11738
11741
|
}
|
|
11739
11742
|
}, {
|
|
11740
11743
|
key: "destroy",
|
|
@@ -11880,9 +11883,9 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11880
11883
|
key: "afterCreate",
|
|
11881
11884
|
value: function() {
|
|
11882
11885
|
var e = this, i = this.config.useGapJump;
|
|
11883
|
-
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(
|
|
11886
|
+
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(nt, this.onGapJump), this.on(ne, function() {
|
|
11884
11887
|
e.hasPlayed = !0;
|
|
11885
|
-
}), this.on(
|
|
11888
|
+
}), this.on(Ct, function() {
|
|
11886
11889
|
e.seekingEventReceived = !0;
|
|
11887
11890
|
}));
|
|
11888
11891
|
}
|
|
@@ -11953,7 +11956,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
11953
11956
|
key: "afterCreate",
|
|
11954
11957
|
value: function() {
|
|
11955
11958
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
11956
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(
|
|
11959
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(nt, this.onWaiting), this.on([Zt, ve], function() {
|
|
11957
11960
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
11958
11961
|
}), this.on(ne, function() {
|
|
11959
11962
|
e.hasPlayed = !0;
|
|
@@ -11975,7 +11978,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
11975
11978
|
};
|
|
11976
11979
|
}
|
|
11977
11980
|
}]), r;
|
|
11978
|
-
}(U), je = "cdn",
|
|
11981
|
+
}(U), je = "cdn", at = ["cdn"], wa = /* @__PURE__ */ function(a) {
|
|
11979
11982
|
x(r, a);
|
|
11980
11983
|
var o = P(r);
|
|
11981
11984
|
function r() {
|
|
@@ -11994,7 +11997,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
11994
11997
|
}), y(v(t), "startTimer", function() {
|
|
11995
11998
|
f.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
|
|
11996
11999
|
}), y(v(t), "initSpeedList", function() {
|
|
11997
|
-
t.speedListCache = {},
|
|
12000
|
+
t.speedListCache = {}, at.forEach(function(s) {
|
|
11998
12001
|
t.speedListCache[s] = [];
|
|
11999
12002
|
});
|
|
12000
12003
|
}), y(v(t), "_onRealSpeedChange", function(s) {
|
|
@@ -12034,13 +12037,13 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
12034
12037
|
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : je, l = t.getSpeed(s), u = v(t), c = u.player;
|
|
12035
12038
|
if (c)
|
|
12036
12039
|
if (s === je)
|
|
12037
|
-
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(
|
|
12040
|
+
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(Wt, {
|
|
12038
12041
|
speed: l,
|
|
12039
12042
|
realTimeSpeed: c.realTimeSpeed
|
|
12040
12043
|
}));
|
|
12041
12044
|
else {
|
|
12042
12045
|
var h = t.getSpeedName("avg", s);
|
|
12043
|
-
(!c[h] || l !== c[h]) && (c[h] = l, c.emit(
|
|
12046
|
+
(!c[h] || l !== c[h]) && (c[h] = l, c.emit(Wt, {
|
|
12044
12047
|
speed: l,
|
|
12045
12048
|
realTimeSpeed: c.realTimeSpeed
|
|
12046
12049
|
}));
|
|
@@ -12051,7 +12054,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
12051
12054
|
key: "afterCreate",
|
|
12052
12055
|
value: function() {
|
|
12053
12056
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
12054
|
-
(n == null ? void 0 : n.length) > 0 &&
|
|
12057
|
+
(n == null ? void 0 : n.length) > 0 && at.push.apply(at, ae(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([ye, ct], this.startTimer);
|
|
12055
12058
|
}
|
|
12056
12059
|
}, {
|
|
12057
12060
|
key: "getSpeedName",
|
|
@@ -12078,7 +12081,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
12078
12081
|
key: "destroy",
|
|
12079
12082
|
value: function() {
|
|
12080
12083
|
var e = this;
|
|
12081
|
-
this.off("real_time_speed", this._onRealSpeedChange), this.off([ye,
|
|
12084
|
+
this.off("real_time_speed", this._onRealSpeedChange), this.off([ye, ct], this.startTimer), at.forEach(function(i) {
|
|
12082
12085
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
12083
12086
|
}), this.speedListCache && (this.speedListCache = {}), clearTimeout(this.timer), this.timer = null, this.xhr && this.xhr.readyState !== 4 && (this.xhr.cancel && this.xhr.cancel(), this.xhr = null);
|
|
12084
12087
|
}
|
|
@@ -12115,7 +12118,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
12115
12118
|
var l = s.getVideoPlaybackQuality;
|
|
12116
12119
|
l && (this.on(ne, function() {
|
|
12117
12120
|
e._startTick();
|
|
12118
|
-
}), this.on(
|
|
12121
|
+
}), this.on(Ye, function() {
|
|
12119
12122
|
e._stopTick();
|
|
12120
12123
|
}), this.on(Oe, function() {
|
|
12121
12124
|
e._stopTick();
|
|
@@ -12211,7 +12214,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
12211
12214
|
}
|
|
12212
12215
|
}]), r;
|
|
12213
12216
|
}(U);
|
|
12214
|
-
|
|
12217
|
+
We.use(_a);
|
|
12215
12218
|
var Ta = /* @__PURE__ */ E(function a(o, r) {
|
|
12216
12219
|
var t, e, i;
|
|
12217
12220
|
T(this, a);
|
|
@@ -12220,15 +12223,15 @@ var Ta = /* @__PURE__ */ E(function a(o, r) {
|
|
|
12220
12223
|
var h = n ? "mobile" : R.device;
|
|
12221
12224
|
switch (h) {
|
|
12222
12225
|
case "pc":
|
|
12223
|
-
(t = this.plugins).push.apply(t, [Fi,
|
|
12226
|
+
(t = this.plugins).push.apply(t, [Fi, Ft, Ni, wa, ba]);
|
|
12224
12227
|
break;
|
|
12225
12228
|
case "mobile":
|
|
12226
12229
|
(e = this.plugins).push.apply(e, [xo]);
|
|
12227
12230
|
break;
|
|
12228
12231
|
default:
|
|
12229
|
-
(i = this.plugins).push.apply(i, [Fi,
|
|
12232
|
+
(i = this.plugins).push.apply(i, [Fi, Ft, Ni]);
|
|
12230
12233
|
}
|
|
12231
|
-
(R.os.isIpad || h === "pc") && this.plugins.push(ya), R.os.isIpad && this.plugins.push(
|
|
12234
|
+
(R.os.isIpad || h === "pc") && this.plugins.push(ya), R.os.isIpad && this.plugins.push(Ft), this.ignores = [], this.i18n = [];
|
|
12232
12235
|
}), ue = /* @__PURE__ */ function(a) {
|
|
12233
12236
|
x(r, a);
|
|
12234
12237
|
var o = P(r);
|
|
@@ -12236,21 +12239,21 @@ var Ta = /* @__PURE__ */ E(function a(o, r) {
|
|
|
12236
12239
|
return T(this, r), o.apply(this, arguments);
|
|
12237
12240
|
}
|
|
12238
12241
|
return E(r);
|
|
12239
|
-
}(
|
|
12242
|
+
}(Tt);
|
|
12240
12243
|
y(ue, "defaultPreset", Ta);
|
|
12241
12244
|
y(ue, "Util", f);
|
|
12242
12245
|
y(ue, "Sniffer", R);
|
|
12243
|
-
y(ue, "Errors",
|
|
12246
|
+
y(ue, "Errors", ut);
|
|
12244
12247
|
y(ue, "Events", Bs);
|
|
12245
12248
|
y(ue, "Plugin", U);
|
|
12246
12249
|
y(ue, "BasePlugin", Te);
|
|
12247
|
-
y(ue, "I18N",
|
|
12250
|
+
y(ue, "I18N", We);
|
|
12248
12251
|
y(ue, "STATE_CLASS", k);
|
|
12249
12252
|
y(ue, "InstManager", vn);
|
|
12250
12253
|
const Ea = ["id"], Sa = /* @__PURE__ */ le({
|
|
12251
12254
|
name: "ElImageViewer",
|
|
12252
12255
|
__name: "Player",
|
|
12253
|
-
props: /* @__PURE__ */
|
|
12256
|
+
props: /* @__PURE__ */ lt({
|
|
12254
12257
|
url: {
|
|
12255
12258
|
type: String,
|
|
12256
12259
|
default: ""
|
|
@@ -12271,12 +12274,12 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
|
|
|
12271
12274
|
},
|
|
12272
12275
|
modelModifiers: {}
|
|
12273
12276
|
}),
|
|
12274
|
-
emits: /* @__PURE__ */
|
|
12277
|
+
emits: /* @__PURE__ */ lt({
|
|
12275
12278
|
close: () => !0
|
|
12276
12279
|
}, ["update:modelValue"]),
|
|
12277
12280
|
setup(a, { emit: o }) {
|
|
12278
12281
|
let r = null;
|
|
12279
|
-
const t = a, { cLoadUrl: e } = ji(t), i = Y(() =>
|
|
12282
|
+
const t = a, { cLoadUrl: e } = ji(t), i = Y(() => et(e.value, t.url)), n = {
|
|
12280
12283
|
width: "100%",
|
|
12281
12284
|
height: "100%",
|
|
12282
12285
|
// 是否自动播放
|
|
@@ -12297,7 +12300,7 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
|
|
|
12297
12300
|
}, s = Y(() => ({
|
|
12298
12301
|
...n,
|
|
12299
12302
|
...t.config
|
|
12300
|
-
})), l = o, u =
|
|
12303
|
+
})), l = o, u = $t(a, "modelValue"), c = Vi(), h = An("image-viewer");
|
|
12301
12304
|
function d() {
|
|
12302
12305
|
l("close"), u.value = !1, r.destroy();
|
|
12303
12306
|
}
|
|
@@ -12310,7 +12313,7 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
|
|
|
12310
12313
|
});
|
|
12311
12314
|
});
|
|
12312
12315
|
}), (g, p) => {
|
|
12313
|
-
const m =
|
|
12316
|
+
const m = $e("el-icon");
|
|
12314
12317
|
return u.value ? (A(), we(En, {
|
|
12315
12318
|
key: 0,
|
|
12316
12319
|
to: "body"
|
|
@@ -12382,7 +12385,7 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
|
|
|
12382
12385
|
};
|
|
12383
12386
|
}
|
|
12384
12387
|
});
|
|
12385
|
-
const xa = /* @__PURE__ */
|
|
12388
|
+
const xa = /* @__PURE__ */ _t(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(xa), Ia = ["onClick"], Aa = { class: "fileName simple" }, La = ["onClick"], Da = { class: "text" }, Ra = { class: "fileName" }, Oa = { class: "size" }, Fa = /* @__PURE__ */ le({
|
|
12386
12389
|
__name: "IkPreviewFile",
|
|
12387
12390
|
props: {
|
|
12388
12391
|
list: {
|
|
@@ -12463,19 +12466,19 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12463
12466
|
suffix: "suffix",
|
|
12464
12467
|
size: "size",
|
|
12465
12468
|
...o.field
|
|
12466
|
-
})), i =
|
|
12469
|
+
})), i = Ke({}), n = Ke(!1), s = (h) => {
|
|
12467
12470
|
var d, g;
|
|
12468
12471
|
i.value = {
|
|
12469
12472
|
...h,
|
|
12470
12473
|
name: h.name,
|
|
12471
|
-
url:
|
|
12474
|
+
url: et(
|
|
12472
12475
|
r.value,
|
|
12473
12476
|
h.url || ((g = (d = h == null ? void 0 : h.response) == null ? void 0 : d.data) == null ? void 0 : g.id) || (h == null ? void 0 : h.id)
|
|
12474
12477
|
)
|
|
12475
12478
|
}, n.value = !0;
|
|
12476
12479
|
}, l = (h) => {
|
|
12477
12480
|
In.downloadFile(
|
|
12478
|
-
|
|
12481
|
+
et(
|
|
12479
12482
|
r.value,
|
|
12480
12483
|
h[e.value.url] || h.attachmentId || h.id
|
|
12481
12484
|
),
|
|
@@ -12489,7 +12492,7 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12489
12492
|
})));
|
|
12490
12493
|
return (h, d) => {
|
|
12491
12494
|
var p, m, _;
|
|
12492
|
-
const g =
|
|
12495
|
+
const g = $e("tmplate");
|
|
12493
12496
|
return A(), F(
|
|
12494
12497
|
Ze,
|
|
12495
12498
|
null,
|
|
@@ -12501,7 +12504,7 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12501
12504
|
a.simple ? (A(!0), F(
|
|
12502
12505
|
Ze,
|
|
12503
12506
|
{ key: 0 },
|
|
12504
|
-
|
|
12507
|
+
li(c.value, (C, b) => (A(), F("div", {
|
|
12505
12508
|
class: "iking-privew-annex simple",
|
|
12506
12509
|
onClick: (w) => s(C),
|
|
12507
12510
|
style: oe({ width: u.value })
|
|
@@ -12509,7 +12512,7 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12509
12512
|
S(
|
|
12510
12513
|
"div",
|
|
12511
12514
|
Aa,
|
|
12512
|
-
|
|
12515
|
+
Ge(C.name),
|
|
12513
12516
|
1
|
|
12514
12517
|
/* TEXT */
|
|
12515
12518
|
),
|
|
@@ -12521,7 +12524,7 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12521
12524
|
[
|
|
12522
12525
|
J(V(Le), {
|
|
12523
12526
|
name: "iksvg_daochu",
|
|
12524
|
-
onClick:
|
|
12527
|
+
onClick: Qe((w) => l(C), ["stop"]),
|
|
12525
12528
|
size: 20,
|
|
12526
12529
|
active: ""
|
|
12527
12530
|
}, null, 8, ["onClick"]),
|
|
@@ -12545,7 +12548,7 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12545
12548
|
(A(!0), F(
|
|
12546
12549
|
Ze,
|
|
12547
12550
|
null,
|
|
12548
|
-
|
|
12551
|
+
li(c.value, (C, b) => {
|
|
12549
12552
|
var w;
|
|
12550
12553
|
return A(), F(
|
|
12551
12554
|
"div",
|
|
@@ -12572,14 +12575,14 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12572
12575
|
S(
|
|
12573
12576
|
"div",
|
|
12574
12577
|
Ra,
|
|
12575
|
-
|
|
12578
|
+
Ge(C.name),
|
|
12576
12579
|
1
|
|
12577
12580
|
/* TEXT */
|
|
12578
12581
|
),
|
|
12579
12582
|
S(
|
|
12580
12583
|
"div",
|
|
12581
12584
|
Oa,
|
|
12582
|
-
|
|
12585
|
+
Ge(V(Br)(C.size)),
|
|
12583
12586
|
1
|
|
12584
12587
|
/* TEXT */
|
|
12585
12588
|
)
|
|
@@ -12592,7 +12595,7 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12592
12595
|
[
|
|
12593
12596
|
J(V(Le), {
|
|
12594
12597
|
name: "iksvg_daochu",
|
|
12595
|
-
onClick:
|
|
12598
|
+
onClick: Qe((B) => l(C), ["stop"]),
|
|
12596
12599
|
bg: a.showBg,
|
|
12597
12600
|
size: a.showBg ? "default" : 20,
|
|
12598
12601
|
title: "下载"
|