iking-web-ui-pro 0.2.21 → 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 +79 -73
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +302 -296
- package/dist/IKPreviewFile/ik.index.umd.js +16 -16
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +130 -124
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +306 -300
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +117 -111
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +242 -236
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +83 -77
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +434 -428
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +308 -302
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +140 -134
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +383 -377
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1135 -1129
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +588 -582
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2960 -2954
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +111 -105
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +74 -68
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +720 -714
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +223 -217
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +5502 -5496
- package/dist/index.umd.js +78 -78
- package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
- 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 Xe, mergeModels 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,7 +652,7 @@ 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
|
-
},
|
|
655
|
+
}, et = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "", Hr = (a) => {
|
|
656
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,
|
|
@@ -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,7 +698,7 @@ 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",
|
|
@@ -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
|
},
|
|
@@ -849,85 +849,89 @@ const zr = Re(Ur), Vr = {
|
|
|
849
849
|
warning: { type: Boolean },
|
|
850
850
|
width: {}
|
|
851
851
|
},
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
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";
|
|
857
|
+
}), i = Y(() => {
|
|
858
|
+
const l = [];
|
|
859
|
+
if (t.value.flip)
|
|
860
|
+
switch (t.value.flip) {
|
|
860
861
|
case "horizontal":
|
|
861
|
-
|
|
862
|
+
l.push("rotateY(180deg)");
|
|
862
863
|
break;
|
|
863
864
|
case "vertical":
|
|
864
|
-
|
|
865
|
+
l.push("rotateX(180deg)");
|
|
865
866
|
break;
|
|
866
867
|
case "both":
|
|
867
|
-
|
|
868
|
+
l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
|
|
868
869
|
break;
|
|
869
870
|
}
|
|
870
|
-
|
|
871
|
-
const
|
|
872
|
-
...
|
|
873
|
-
...
|
|
874
|
-
...
|
|
875
|
-
padding:
|
|
876
|
-
...
|
|
877
|
-
"--ik-color-icon-dark":
|
|
878
|
-
"--ik-color-icon-light":
|
|
871
|
+
t.value.rotate && l.push(`rotate(${t.value.rotate % 360}deg)`);
|
|
872
|
+
const u = {
|
|
873
|
+
...t.value.color && { color: t.value.color },
|
|
874
|
+
...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
|
|
875
|
+
...l.length && { transform: l.join(" ") },
|
|
876
|
+
padding: t.value.showBg || t.value.bg ? t.value.padding : 0,
|
|
877
|
+
...t.value.color && e.value !== "iksig" ? {
|
|
878
|
+
"--ik-color-icon-dark": t.value.color,
|
|
879
|
+
"--ik-color-icon-light": t.value.colorLight || xn.setOpacity(t.value.color, t.value.opacity)
|
|
879
880
|
} : {}
|
|
880
881
|
};
|
|
881
|
-
return
|
|
882
|
-
})
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
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
|
+
return t.value.tableIconType === "icon" || !t.value.tableIconType ? (A(), F("span", Vr, [
|
|
889
|
+
t.value.notip || !t.value.title ? (A(), F(
|
|
887
890
|
"i",
|
|
888
891
|
{
|
|
889
892
|
key: 0,
|
|
893
|
+
onClick: Qe(s, ["stop"]),
|
|
890
894
|
class: ee(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
891
|
-
[
|
|
892
|
-
"show-bg":
|
|
893
|
-
default:
|
|
894
|
-
small:
|
|
895
|
-
big:
|
|
896
|
-
warning:
|
|
897
|
-
primary:
|
|
898
|
-
success:
|
|
899
|
-
error:
|
|
900
|
-
active:
|
|
901
|
-
disabled:
|
|
895
|
+
[l.name]: e.value === "unocss",
|
|
896
|
+
"show-bg": t.value.showBg || t.value.bg,
|
|
897
|
+
default: t.value.size === "default",
|
|
898
|
+
small: t.value.size === "small",
|
|
899
|
+
big: t.value.size === "big",
|
|
900
|
+
warning: t.value.warning || t.value.type === "warning",
|
|
901
|
+
primary: t.value.primary || t.value.type === "primary",
|
|
902
|
+
success: l.success || t.value.type === "success",
|
|
903
|
+
error: t.value.error || t.value.type === "error",
|
|
904
|
+
active: t.value.active,
|
|
905
|
+
disabled: t.value.disabled
|
|
902
906
|
}]),
|
|
903
|
-
style: oe(
|
|
907
|
+
style: oe(i.value)
|
|
904
908
|
},
|
|
905
909
|
[
|
|
906
910
|
he(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
907
|
-
|
|
911
|
+
e.value === "iksig" ? (A(), F(
|
|
908
912
|
"i",
|
|
909
913
|
{
|
|
910
914
|
key: 0,
|
|
911
|
-
class: ee(`iksig ${
|
|
912
|
-
style: oe(
|
|
915
|
+
class: ee(`iksig ${t.value.name}`),
|
|
916
|
+
style: oe(i.value)
|
|
913
917
|
},
|
|
914
918
|
null,
|
|
915
919
|
6
|
|
916
920
|
/* CLASS, STYLE */
|
|
917
|
-
)) :
|
|
921
|
+
)) : e.value === "svg" ? (A(), F("svg", jr, [
|
|
918
922
|
S("use", {
|
|
919
|
-
"xlink:href": `#${
|
|
923
|
+
"xlink:href": `#${t.value.name}`
|
|
920
924
|
}, null, 8, Wr)
|
|
921
|
-
])) :
|
|
925
|
+
])) : e.value === "img" ? (A(), F("img", {
|
|
922
926
|
key: 2,
|
|
923
|
-
src:
|
|
927
|
+
src: t.value.name,
|
|
924
928
|
class: "h-[1em] w-[1em]"
|
|
925
929
|
}, null, 8, Gr)) : (A(), F(
|
|
926
930
|
"i",
|
|
927
931
|
{
|
|
928
932
|
key: 3,
|
|
929
|
-
class: ee(
|
|
930
|
-
style: oe(
|
|
933
|
+
class: ee(t.value.name),
|
|
934
|
+
style: oe(i.value)
|
|
931
935
|
},
|
|
932
936
|
null,
|
|
933
937
|
6
|
|
@@ -936,9 +940,9 @@ const zr = Re(Ur), Vr = {
|
|
|
936
940
|
],
|
|
937
941
|
6
|
|
938
942
|
/* CLASS, STYLE */
|
|
939
|
-
)) : (A(), we(
|
|
943
|
+
)) : (A(), we(c, {
|
|
940
944
|
key: 1,
|
|
941
|
-
content:
|
|
945
|
+
content: t.value.title,
|
|
942
946
|
placement: "top"
|
|
943
947
|
}, {
|
|
944
948
|
default: de(() => [
|
|
@@ -946,44 +950,45 @@ const zr = Re(Ur), Vr = {
|
|
|
946
950
|
"i",
|
|
947
951
|
{
|
|
948
952
|
class: ee(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
949
|
-
[
|
|
950
|
-
"show-bg":
|
|
951
|
-
default:
|
|
952
|
-
small:
|
|
953
|
-
big:
|
|
954
|
-
warning:
|
|
955
|
-
primary:
|
|
956
|
-
success:
|
|
957
|
-
error:
|
|
958
|
-
active:
|
|
953
|
+
[l.name]: e.value === "unocss",
|
|
954
|
+
"show-bg": t.value.showBg || t.value.bg,
|
|
955
|
+
default: t.value.size === "default",
|
|
956
|
+
small: t.value.size === "small",
|
|
957
|
+
big: t.value.size === "big",
|
|
958
|
+
warning: t.value.warning || t.value.type === "warning",
|
|
959
|
+
primary: l.primary || t.value.type === "primary",
|
|
960
|
+
success: l.success || t.value.type === "success",
|
|
961
|
+
error: t.value.error || t.value.type === "error",
|
|
962
|
+
active: t.value.active
|
|
959
963
|
}]),
|
|
960
|
-
|
|
964
|
+
onClick: Qe(s, ["stop"]),
|
|
965
|
+
style: oe(i.value)
|
|
961
966
|
},
|
|
962
967
|
[
|
|
963
|
-
|
|
968
|
+
e.value === "iksig" ? (A(), F(
|
|
964
969
|
"i",
|
|
965
970
|
{
|
|
966
971
|
key: 0,
|
|
967
|
-
class: ee(`iksig ${
|
|
968
|
-
style: oe(
|
|
972
|
+
class: ee(`iksig ${t.value.name}`),
|
|
973
|
+
style: oe(i.value)
|
|
969
974
|
},
|
|
970
975
|
null,
|
|
971
976
|
6
|
|
972
977
|
/* CLASS, STYLE */
|
|
973
|
-
)) :
|
|
978
|
+
)) : e.value === "svg" ? (A(), F("svg", Kr, [
|
|
974
979
|
S("use", {
|
|
975
|
-
"xlink:href": `#${
|
|
980
|
+
"xlink:href": `#${t.value.name}`
|
|
976
981
|
}, null, 8, $r)
|
|
977
|
-
])) :
|
|
982
|
+
])) : e.value === "img" ? (A(), F("img", {
|
|
978
983
|
key: 2,
|
|
979
|
-
src:
|
|
984
|
+
src: t.value.name,
|
|
980
985
|
class: "h-[1em] w-[1em]"
|
|
981
986
|
}, null, 8, Yr)) : (A(), F(
|
|
982
987
|
"i",
|
|
983
988
|
{
|
|
984
989
|
key: 3,
|
|
985
|
-
class: ee(
|
|
986
|
-
style: oe(
|
|
990
|
+
class: ee(t.value.name),
|
|
991
|
+
style: oe(i.value)
|
|
987
992
|
},
|
|
988
993
|
null,
|
|
989
994
|
6
|
|
@@ -997,13 +1002,14 @@ const zr = Re(Ur), Vr = {
|
|
|
997
1002
|
_: 1
|
|
998
1003
|
/* STABLE */
|
|
999
1004
|
}, 8, ["content"]))
|
|
1000
|
-
])) : (A(), we(
|
|
1005
|
+
])) : (A(), we(h, {
|
|
1001
1006
|
key: 1,
|
|
1002
|
-
type: ["warning", "error"].includes(
|
|
1007
|
+
type: ["warning", "error"].includes(t.value.type) ? "danger" : "",
|
|
1008
|
+
onClick: Qe(s, ["stop"])
|
|
1003
1009
|
}, {
|
|
1004
1010
|
default: de(() => [
|
|
1005
|
-
|
|
1006
|
-
Ge(
|
|
1011
|
+
Ht(
|
|
1012
|
+
Ge(t.value.title),
|
|
1007
1013
|
1
|
|
1008
1014
|
/* TEXT */
|
|
1009
1015
|
)
|
|
@@ -1014,7 +1020,7 @@ const zr = Re(Ur), Vr = {
|
|
|
1014
1020
|
};
|
|
1015
1021
|
}
|
|
1016
1022
|
});
|
|
1017
|
-
const qr = /* @__PURE__ */
|
|
1023
|
+
const qr = /* @__PURE__ */ _t(Xr, [["__scopeId", "data-v-4a1004b9"]]), Le = Re(qr), Zr = {
|
|
1018
1024
|
key: 0,
|
|
1019
1025
|
class: "exit-main-page-maximize"
|
|
1020
1026
|
}, Jr = /* @__PURE__ */ le({
|
|
@@ -1048,9 +1054,9 @@ const qr = /* @__PURE__ */ yt(Xr, [["__scopeId", "data-v-a7ec508a"]]), Le = Re(q
|
|
|
1048
1054
|
]));
|
|
1049
1055
|
}
|
|
1050
1056
|
});
|
|
1051
|
-
const Qr = /* @__PURE__ */
|
|
1057
|
+
const Qr = /* @__PURE__ */ _t(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { class: "base-header" }, ts = /* @__PURE__ */ le({
|
|
1052
1058
|
__name: "IkBaseDialog",
|
|
1053
|
-
props: /* @__PURE__ */
|
|
1059
|
+
props: /* @__PURE__ */ lt({
|
|
1054
1060
|
title: { default: "" },
|
|
1055
1061
|
cancelText: { default: "取消" },
|
|
1056
1062
|
confirmText: { default: "确认" },
|
|
@@ -1069,7 +1075,7 @@ const Qr = /* @__PURE__ */ yt(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
|
|
|
1069
1075
|
}),
|
|
1070
1076
|
emits: ["update:modelValue"],
|
|
1071
1077
|
setup(a) {
|
|
1072
|
-
const o = a, r =
|
|
1078
|
+
const o = a, r = $t(a, "modelValue"), t = Ke(o.fullscreen), e = () => {
|
|
1073
1079
|
t.value = !t.value;
|
|
1074
1080
|
}, i = le({
|
|
1075
1081
|
setup() {
|
|
@@ -1092,7 +1098,7 @@ const Qr = /* @__PURE__ */ yt(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
|
|
|
1092
1098
|
}), Tn({
|
|
1093
1099
|
icon: de(() => [
|
|
1094
1100
|
Ae(n.$slots, "title", {}, () => [
|
|
1095
|
-
|
|
1101
|
+
Ht(
|
|
1096
1102
|
Ge(n.title),
|
|
1097
1103
|
1
|
|
1098
1104
|
/* TEXT */
|
|
@@ -1102,7 +1108,7 @@ const Qr = /* @__PURE__ */ yt(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
|
|
|
1102
1108
|
header: de(() => [
|
|
1103
1109
|
S("div", es, [
|
|
1104
1110
|
Ae(n.$slots, "header", {}, () => [
|
|
1105
|
-
|
|
1111
|
+
Ht(
|
|
1106
1112
|
Ge(n.title),
|
|
1107
1113
|
1
|
|
1108
1114
|
/* TEXT */
|
|
@@ -1136,7 +1142,7 @@ const Qr = /* @__PURE__ */ yt(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
|
|
|
1136
1142
|
});
|
|
1137
1143
|
const is = Re(ts);
|
|
1138
1144
|
var ns = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1139
|
-
function
|
|
1145
|
+
function Yt(a) {
|
|
1140
1146
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1141
1147
|
}
|
|
1142
1148
|
function rs(a, o, r, t) {
|
|
@@ -1266,7 +1272,7 @@ var os = function(a, o) {
|
|
|
1266
1272
|
}, e.onerror = function(i) {
|
|
1267
1273
|
e.removeAttribute("loading"), t(i);
|
|
1268
1274
|
}, e.setAttribute("loading", ""), e;
|
|
1269
|
-
},
|
|
1275
|
+
}, Xt = le({
|
|
1270
1276
|
name: "DocumentEditor",
|
|
1271
1277
|
props: {
|
|
1272
1278
|
id: {
|
|
@@ -1439,8 +1445,8 @@ const as = ["id"];
|
|
|
1439
1445
|
function ls(a, o, r, t, e, i) {
|
|
1440
1446
|
return A(), F("div", { id: a.id }, null, 8, as);
|
|
1441
1447
|
}
|
|
1442
|
-
|
|
1443
|
-
|
|
1448
|
+
Xt.render = ls;
|
|
1449
|
+
Xt.__file = "src/components/DocumentEditor.vue";
|
|
1444
1450
|
const us = /* @__PURE__ */ le({
|
|
1445
1451
|
__name: "IkOnlyOffice",
|
|
1446
1452
|
props: {
|
|
@@ -1476,7 +1482,7 @@ const us = /* @__PURE__ */ le({
|
|
|
1476
1482
|
style: oe({ height: o.officeHeight })
|
|
1477
1483
|
},
|
|
1478
1484
|
[
|
|
1479
|
-
J(V(
|
|
1485
|
+
J(V(Xt), {
|
|
1480
1486
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1481
1487
|
ref: "editorRef",
|
|
1482
1488
|
"document-server-url": a.documentServerUrl,
|
|
@@ -1489,7 +1495,7 @@ const us = /* @__PURE__ */ le({
|
|
|
1489
1495
|
));
|
|
1490
1496
|
}
|
|
1491
1497
|
});
|
|
1492
|
-
const cs = /* @__PURE__ */
|
|
1498
|
+
const cs = /* @__PURE__ */ _t(us, [["__scopeId", "data-v-98d51ef9"]]), fs = Re(cs);
|
|
1493
1499
|
function fi(a, o) {
|
|
1494
1500
|
var r = Object.keys(a);
|
|
1495
1501
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1553,17 +1559,17 @@ function x(a, o) {
|
|
|
1553
1559
|
}
|
|
1554
1560
|
}), Object.defineProperty(a, "prototype", {
|
|
1555
1561
|
writable: !1
|
|
1556
|
-
}), o &&
|
|
1562
|
+
}), o && zt(a, o);
|
|
1557
1563
|
}
|
|
1558
1564
|
function I(a) {
|
|
1559
1565
|
return I = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
1560
1566
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
1561
1567
|
}, I(a);
|
|
1562
1568
|
}
|
|
1563
|
-
function
|
|
1564
|
-
return
|
|
1569
|
+
function zt(a, o) {
|
|
1570
|
+
return zt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
1565
1571
|
return t.__proto__ = e, t;
|
|
1566
|
-
},
|
|
1572
|
+
}, zt(a, o);
|
|
1567
1573
|
}
|
|
1568
1574
|
function hs() {
|
|
1569
1575
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
@@ -1582,7 +1588,7 @@ function v(a) {
|
|
|
1582
1588
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1583
1589
|
return a;
|
|
1584
1590
|
}
|
|
1585
|
-
function
|
|
1591
|
+
function qt(a, o) {
|
|
1586
1592
|
if (o && (typeof o == "object" || typeof o == "function"))
|
|
1587
1593
|
return o;
|
|
1588
1594
|
if (o !== void 0)
|
|
@@ -1598,7 +1604,7 @@ function P(a) {
|
|
|
1598
1604
|
e = Reflect.construct(t, arguments, i);
|
|
1599
1605
|
} else
|
|
1600
1606
|
e = t.apply(this, arguments);
|
|
1601
|
-
return
|
|
1607
|
+
return qt(this, e);
|
|
1602
1608
|
};
|
|
1603
1609
|
}
|
|
1604
1610
|
function ds(a, o) {
|
|
@@ -1620,7 +1626,7 @@ function ae(a) {
|
|
|
1620
1626
|
}
|
|
1621
1627
|
function gs(a) {
|
|
1622
1628
|
if (Array.isArray(a))
|
|
1623
|
-
return
|
|
1629
|
+
return Vt(a);
|
|
1624
1630
|
}
|
|
1625
1631
|
function ps(a) {
|
|
1626
1632
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
@@ -1629,15 +1635,15 @@ function ps(a) {
|
|
|
1629
1635
|
function vs(a, o) {
|
|
1630
1636
|
if (a) {
|
|
1631
1637
|
if (typeof a == "string")
|
|
1632
|
-
return
|
|
1638
|
+
return Vt(a, o);
|
|
1633
1639
|
var r = Object.prototype.toString.call(a).slice(8, -1);
|
|
1634
1640
|
if (r === "Object" && a.constructor && (r = a.constructor.name), r === "Map" || r === "Set")
|
|
1635
1641
|
return Array.from(a);
|
|
1636
1642
|
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
1637
|
-
return
|
|
1643
|
+
return Vt(a, o);
|
|
1638
1644
|
}
|
|
1639
1645
|
}
|
|
1640
|
-
function
|
|
1646
|
+
function Vt(a, o) {
|
|
1641
1647
|
(o == null || o > a.length) && (o = a.length);
|
|
1642
1648
|
for (var r = 0, t = new Array(o); r < o; r++)
|
|
1643
1649
|
t[r] = a[r];
|
|
@@ -1775,31 +1781,31 @@ var Gi = { exports: {} };
|
|
|
1775
1781
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, a.exports = s;
|
|
1776
1782
|
})(Gi);
|
|
1777
1783
|
var Ki = Gi.exports;
|
|
1778
|
-
const $i = /* @__PURE__ */
|
|
1779
|
-
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 = {
|
|
1780
1786
|
info: "color: #525252; background-color: #90ee90;",
|
|
1781
1787
|
error: "color: #525252; background-color: red;",
|
|
1782
1788
|
warn: "color: #525252; background-color: yellow; "
|
|
1783
|
-
},
|
|
1789
|
+
}, St = "%c[xgplayer]", O = {
|
|
1784
1790
|
config: {
|
|
1785
1791
|
debug: _s ? 3 : 0
|
|
1786
1792
|
},
|
|
1787
1793
|
logInfo: function(o) {
|
|
1788
1794
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
1789
1795
|
e[i - 1] = arguments[i];
|
|
1790
|
-
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));
|
|
1791
1797
|
},
|
|
1792
1798
|
logWarn: function(o) {
|
|
1793
1799
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
1794
1800
|
e[i - 1] = arguments[i];
|
|
1795
|
-
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));
|
|
1796
1802
|
},
|
|
1797
1803
|
logError: function(o) {
|
|
1798
1804
|
var r;
|
|
1799
1805
|
if (!(this.config.debug < 1)) {
|
|
1800
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++)
|
|
1801
1807
|
i[n - 1] = arguments[n];
|
|
1802
|
-
(r = console)[t].apply(r, [
|
|
1808
|
+
(r = console)[t].apply(r, [St, Et.error, o].concat(i));
|
|
1803
1809
|
}
|
|
1804
1810
|
}
|
|
1805
1811
|
};
|
|
@@ -2439,7 +2445,7 @@ var di = {
|
|
|
2439
2445
|
return Promise.resolve(r);
|
|
2440
2446
|
}
|
|
2441
2447
|
}
|
|
2442
|
-
},
|
|
2448
|
+
}, jt = "3.0.18", gi = {
|
|
2443
2449
|
1: "media",
|
|
2444
2450
|
2: "media",
|
|
2445
2451
|
3: "media",
|
|
@@ -2453,7 +2459,7 @@ var di = {
|
|
|
2453
2459
|
4: 5104,
|
|
2454
2460
|
5: 5105,
|
|
2455
2461
|
6: 5106
|
|
2456
|
-
},
|
|
2462
|
+
}, ut = /* @__PURE__ */ E(
|
|
2457
2463
|
function a(o) {
|
|
2458
2464
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2459
2465
|
errorType: "",
|
|
@@ -2469,7 +2475,7 @@ var di = {
|
|
|
2469
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;
|
|
2470
2476
|
pi[g] && (g = pi[g]);
|
|
2471
2477
|
var p = {
|
|
2472
|
-
playerVersion:
|
|
2478
|
+
playerVersion: jt,
|
|
2473
2479
|
currentTime: n,
|
|
2474
2480
|
duration: i,
|
|
2475
2481
|
ended: s,
|
|
@@ -2488,14 +2494,14 @@ var di = {
|
|
|
2488
2494
|
}), p;
|
|
2489
2495
|
} else if (arguments.length > 1) {
|
|
2490
2496
|
for (var m = {
|
|
2491
|
-
playerVersion:
|
|
2497
|
+
playerVersion: jt,
|
|
2492
2498
|
domain: document.domain
|
|
2493
2499
|
}, _ = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], C = 0; C < arguments.length; C++)
|
|
2494
2500
|
m[_[C]] = arguments[C];
|
|
2495
2501
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
2496
2502
|
}
|
|
2497
2503
|
}
|
|
2498
|
-
), 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 = {
|
|
2499
2505
|
STATS_INFO: "stats_info",
|
|
2500
2506
|
STATS_DOWNLOAD: "stats_download",
|
|
2501
2507
|
STATS_RESET: "stats_reset"
|
|
@@ -2503,48 +2509,48 @@ var di = {
|
|
|
2503
2509
|
const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2504
2510
|
__proto__: null,
|
|
2505
2511
|
ABORT: Ds,
|
|
2506
|
-
AFTER_DEFINITION_CHANGE:
|
|
2507
|
-
AUTOPLAY_PREVENTED:
|
|
2512
|
+
AFTER_DEFINITION_CHANGE: Gt,
|
|
2513
|
+
AUTOPLAY_PREVENTED: ti,
|
|
2508
2514
|
AUTOPLAY_STARTED: De,
|
|
2509
2515
|
BEFORE_DEFINITION_CHANGE: Os,
|
|
2510
2516
|
BUFFER_CHANGE: Rs,
|
|
2511
2517
|
CANPLAY: ve,
|
|
2512
2518
|
CANPLAY_THROUGH: Ps,
|
|
2513
|
-
COMPLETE:
|
|
2514
|
-
CSS_FULLSCREEN_CHANGE:
|
|
2515
|
-
DEFINITION_CHANGE:
|
|
2516
|
-
DESTROY:
|
|
2517
|
-
DOWNLOAD_SPEED_CHANGE:
|
|
2519
|
+
COMPLETE: kt,
|
|
2520
|
+
CSS_FULLSCREEN_CHANGE: ft,
|
|
2521
|
+
DEFINITION_CHANGE: ni,
|
|
2522
|
+
DESTROY: ii,
|
|
2523
|
+
DOWNLOAD_SPEED_CHANGE: Wt,
|
|
2518
2524
|
DURATION_CHANGE: Ee,
|
|
2519
2525
|
EMPTIED: Fe,
|
|
2520
2526
|
ENDED: Oe,
|
|
2521
2527
|
ENTER_PLAYER: tn,
|
|
2522
|
-
ERROR:
|
|
2528
|
+
ERROR: it,
|
|
2523
2529
|
FPS_STUCK: hn,
|
|
2524
2530
|
FULLSCREEN_CHANGE: ge,
|
|
2525
2531
|
LEAVE_PLAYER: en,
|
|
2526
2532
|
LOADED_DATA: ye,
|
|
2527
2533
|
LOADED_METADATA: Is,
|
|
2528
2534
|
LOADING: nn,
|
|
2529
|
-
LOAD_START:
|
|
2530
|
-
MINI_STATE_CHANGE:
|
|
2535
|
+
LOAD_START: Jt,
|
|
2536
|
+
MINI_STATE_CHANGE: ht,
|
|
2531
2537
|
PAUSE: Ye,
|
|
2532
|
-
PIP_CHANGE:
|
|
2538
|
+
PIP_CHANGE: Kt,
|
|
2533
2539
|
PLAY: ne,
|
|
2534
2540
|
PLAYER_BLUR: Ji,
|
|
2535
|
-
PLAYER_FOCUS:
|
|
2536
|
-
PLAYING:
|
|
2537
|
-
PLAYNEXT:
|
|
2541
|
+
PLAYER_FOCUS: Qt,
|
|
2542
|
+
PLAYING: Zt,
|
|
2543
|
+
PLAYNEXT: dt,
|
|
2538
2544
|
PROGRESS: Zi,
|
|
2539
2545
|
RATE_CHANGE: qi,
|
|
2540
|
-
READY:
|
|
2541
|
-
REPLAY:
|
|
2542
|
-
RESET:
|
|
2546
|
+
READY: ei,
|
|
2547
|
+
REPLAY: ct,
|
|
2548
|
+
RESET: bt,
|
|
2543
2549
|
RETRY: Ms,
|
|
2544
2550
|
ROTATE: rn,
|
|
2545
2551
|
SCREEN_SHOT: sn,
|
|
2546
2552
|
SEEKED: me,
|
|
2547
|
-
SEEKING:
|
|
2553
|
+
SEEKING: Ct,
|
|
2548
2554
|
SEI_PARSED: Fs,
|
|
2549
2555
|
SHORTCUT: on,
|
|
2550
2556
|
SOURCE_ERROR: ln,
|
|
@@ -2554,16 +2560,16 @@ const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2554
2560
|
SUSPEND: Ls,
|
|
2555
2561
|
SWITCH_SUBTITLE: Ns,
|
|
2556
2562
|
TIME_UPDATE: ie,
|
|
2557
|
-
URL_CHANGE:
|
|
2563
|
+
URL_CHANGE: wt,
|
|
2558
2564
|
URL_NULL: Qi,
|
|
2559
|
-
USER_ACTION:
|
|
2565
|
+
USER_ACTION: gt,
|
|
2560
2566
|
VIDEO_EVENTS: cn,
|
|
2561
2567
|
VIDEO_RESIZE: be,
|
|
2562
2568
|
VOLUME_CHANGE: Xi,
|
|
2563
|
-
WAITING:
|
|
2569
|
+
WAITING: nt,
|
|
2564
2570
|
XGLOG: an
|
|
2565
2571
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2566
|
-
function
|
|
2572
|
+
function xt(a, o) {
|
|
2567
2573
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
|
|
2568
2574
|
}
|
|
2569
2575
|
function Hs(a, o) {
|
|
@@ -2591,14 +2597,14 @@ function Hs(a, o) {
|
|
|
2591
2597
|
o._rate = o.media && o.media.playbackRate;
|
|
2592
2598
|
}
|
|
2593
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]) {
|
|
2594
|
-
var n =
|
|
2600
|
+
var n = xt.bind(o, a, e);
|
|
2595
2601
|
try {
|
|
2596
2602
|
o.mediaEventMiddleware[a].call(o, e, n);
|
|
2597
2603
|
} catch (s) {
|
|
2598
|
-
throw
|
|
2604
|
+
throw xt.call(o, a, e), s;
|
|
2599
2605
|
}
|
|
2600
2606
|
} else
|
|
2601
|
-
|
|
2607
|
+
xt.call(o, a, e);
|
|
2602
2608
|
};
|
|
2603
2609
|
}
|
|
2604
2610
|
var Us = /* @__PURE__ */ function(a) {
|
|
@@ -2697,7 +2703,7 @@ var Us = /* @__PURE__ */ function(a) {
|
|
|
2697
2703
|
l ? l.error(h, g) : n.errorHandler("error", g);
|
|
2698
2704
|
}
|
|
2699
2705
|
var p = gi[4];
|
|
2700
|
-
n.emit(ln, new
|
|
2706
|
+
n.emit(ln, new ut(n, {
|
|
2701
2707
|
errorType: p,
|
|
2702
2708
|
errorCode: 4,
|
|
2703
2709
|
errorMessage: "sources_load_error",
|
|
@@ -2734,7 +2740,7 @@ var Us = /* @__PURE__ */ function(a) {
|
|
|
2734
2740
|
this.media.currentSrc || (l = "empty_src", n = {
|
|
2735
2741
|
code: 6,
|
|
2736
2742
|
message: l
|
|
2737
|
-
}), this.emit(e, new
|
|
2743
|
+
}), this.emit(e, new ut(this, {
|
|
2738
2744
|
errorType: s,
|
|
2739
2745
|
errorCode: n.code,
|
|
2740
2746
|
errorMessage: n.message || "",
|
|
@@ -2955,7 +2961,7 @@ var Us = /* @__PURE__ */ function(a) {
|
|
|
2955
2961
|
},
|
|
2956
2962
|
set: function(e) {
|
|
2957
2963
|
if (this.media) {
|
|
2958
|
-
if (this.emit(
|
|
2964
|
+
if (this.emit(wt, e), this.emit(nt), this._currentTime = 0, this._duration = 0, f.isMSE(this.media)) {
|
|
2959
2965
|
this.onWaiting();
|
|
2960
2966
|
return;
|
|
2961
2967
|
}
|
|
@@ -3098,7 +3104,7 @@ var Us = /* @__PURE__ */ function(a) {
|
|
|
3098
3104
|
}
|
|
3099
3105
|
}]), a;
|
|
3100
3106
|
}(), vi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], mi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], yi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Ie = "data-xgplayerid";
|
|
3101
|
-
function
|
|
3107
|
+
function rt(a, o, r) {
|
|
3102
3108
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
3103
3109
|
e[i - 3] = arguments[i];
|
|
3104
3110
|
var n = o.call.apply(o, [a].concat(e));
|
|
@@ -3108,7 +3114,7 @@ function nt(a, o, r) {
|
|
|
3108
3114
|
r.call.apply(r, [a].concat(l));
|
|
3109
3115
|
}) : r.call.apply(r, [a].concat(e)));
|
|
3110
3116
|
}
|
|
3111
|
-
function
|
|
3117
|
+
function pt(a, o) {
|
|
3112
3118
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
3113
3119
|
pre: null,
|
|
3114
3120
|
next: null
|
|
@@ -3126,23 +3132,23 @@ function gt(a, o) {
|
|
|
3126
3132
|
try {
|
|
3127
3133
|
var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
|
|
3128
3134
|
s ? s.then ? s.then(function(l) {
|
|
3129
|
-
l !== !1 &&
|
|
3135
|
+
l !== !1 && rt.apply(void 0, [e, o, r.next].concat(ae(t)));
|
|
3130
3136
|
}).catch(function(l) {
|
|
3131
3137
|
throw l;
|
|
3132
|
-
}) :
|
|
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)));
|
|
3133
3139
|
} catch (l) {
|
|
3134
3140
|
throw l.message = "[pluginName: ".concat(this.pluginName, ":").concat(a, "] >> ").concat(l.message), l;
|
|
3135
3141
|
}
|
|
3136
3142
|
else
|
|
3137
|
-
|
|
3143
|
+
rt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
3138
3144
|
}).bind(this);
|
|
3139
3145
|
}
|
|
3140
|
-
function
|
|
3146
|
+
function vt(a, o) {
|
|
3141
3147
|
var r = this.__hooks;
|
|
3142
3148
|
if (r)
|
|
3143
3149
|
return r.hasOwnProperty(a) ? (r && (r[a] = o), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
|
|
3144
3150
|
}
|
|
3145
|
-
function
|
|
3151
|
+
function mt(a, o) {
|
|
3146
3152
|
var r = this.__hooks;
|
|
3147
3153
|
r && delete r[a];
|
|
3148
3154
|
}
|
|
@@ -3195,7 +3201,7 @@ function pe(a, o, r) {
|
|
|
3195
3201
|
} else
|
|
3196
3202
|
return r.call.apply(r, [a, a].concat(e));
|
|
3197
3203
|
}
|
|
3198
|
-
function
|
|
3204
|
+
function Pt(a, o) {
|
|
3199
3205
|
O.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
|
|
3200
3206
|
}
|
|
3201
3207
|
var Te = /* @__PURE__ */ function() {
|
|
@@ -3262,7 +3268,7 @@ var Te = /* @__PURE__ */ function() {
|
|
|
3262
3268
|
value: function(r, t) {
|
|
3263
3269
|
var e = this;
|
|
3264
3270
|
if (!r || !t || !this.player) {
|
|
3265
|
-
|
|
3271
|
+
Pt(this.pluginName, "plugin.on(event, callback)");
|
|
3266
3272
|
return;
|
|
3267
3273
|
}
|
|
3268
3274
|
typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3274,7 +3280,7 @@ var Te = /* @__PURE__ */ function() {
|
|
|
3274
3280
|
value: function(r, t) {
|
|
3275
3281
|
var e = this;
|
|
3276
3282
|
if (!r || !t || !this.player) {
|
|
3277
|
-
|
|
3283
|
+
Pt(this.pluginName, "plugin.once(event, callback)");
|
|
3278
3284
|
return;
|
|
3279
3285
|
}
|
|
3280
3286
|
typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3286,7 +3292,7 @@ var Te = /* @__PURE__ */ function() {
|
|
|
3286
3292
|
value: function(r, t) {
|
|
3287
3293
|
var e = this;
|
|
3288
3294
|
if (!r || !t || !this.player) {
|
|
3289
|
-
|
|
3295
|
+
Pt(this.pluginName, "plugin.off(event, callback)");
|
|
3290
3296
|
return;
|
|
3291
3297
|
}
|
|
3292
3298
|
typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3327,21 +3333,21 @@ var Te = /* @__PURE__ */ function() {
|
|
|
3327
3333
|
}, {
|
|
3328
3334
|
key: "hook",
|
|
3329
3335
|
value: function(r, t) {
|
|
3330
|
-
return
|
|
3336
|
+
return pt.call.apply(pt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3331
3337
|
}
|
|
3332
3338
|
}, {
|
|
3333
3339
|
key: "useHooks",
|
|
3334
3340
|
value: function(r, t) {
|
|
3335
3341
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
3336
3342
|
i[n - 2] = arguments[n];
|
|
3337
|
-
return
|
|
3343
|
+
return vt.call.apply(vt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3338
3344
|
}
|
|
3339
3345
|
}, {
|
|
3340
3346
|
key: "removeHooks",
|
|
3341
3347
|
value: function(r, t) {
|
|
3342
3348
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
3343
3349
|
i[n - 2] = arguments[n];
|
|
3344
|
-
return
|
|
3350
|
+
return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3345
3351
|
}
|
|
3346
3352
|
}, {
|
|
3347
3353
|
key: "registerPlugin",
|
|
@@ -3396,7 +3402,7 @@ function js(a, o) {
|
|
|
3396
3402
|
}
|
|
3397
3403
|
}
|
|
3398
3404
|
var Ws = js, Gs = Ws;
|
|
3399
|
-
function
|
|
3405
|
+
function It(a, o, r, t, e) {
|
|
3400
3406
|
var i = $s.apply(this, arguments);
|
|
3401
3407
|
return a.addEventListener(r, i, e), {
|
|
3402
3408
|
destroy: function() {
|
|
@@ -3405,8 +3411,8 @@ function Pt(a, o, r, t, e) {
|
|
|
3405
3411
|
};
|
|
3406
3412
|
}
|
|
3407
3413
|
function Ks(a, o, r, t, e) {
|
|
3408
|
-
return typeof a.addEventListener == "function" ?
|
|
3409
|
-
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);
|
|
3410
3416
|
}));
|
|
3411
3417
|
}
|
|
3412
3418
|
function $s(a, o, r, t) {
|
|
@@ -3415,7 +3421,7 @@ function $s(a, o, r, t) {
|
|
|
3415
3421
|
};
|
|
3416
3422
|
}
|
|
3417
3423
|
var Ys = Ks;
|
|
3418
|
-
const ki = /* @__PURE__ */
|
|
3424
|
+
const ki = /* @__PURE__ */ Yt(Ys);
|
|
3419
3425
|
var Xs = {
|
|
3420
3426
|
CONTROLS: "controls",
|
|
3421
3427
|
ROOT: "root"
|
|
@@ -3433,7 +3439,7 @@ var Xs = {
|
|
|
3433
3439
|
ICON_DISABLE: "xg-icon-disable",
|
|
3434
3440
|
ICON_HIDE: "xg-icon-hide"
|
|
3435
3441
|
};
|
|
3436
|
-
function
|
|
3442
|
+
function At(a) {
|
|
3437
3443
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
3438
3444
|
}
|
|
3439
3445
|
function qs(a, o) {
|
|
@@ -3450,8 +3456,8 @@ function bi(a, o) {
|
|
|
3450
3456
|
return f.addClass(a, r), Object.keys(t).map(function(n) {
|
|
3451
3457
|
a.setAttribute(n, t[n]);
|
|
3452
3458
|
}), a;
|
|
3453
|
-
if (
|
|
3454
|
-
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;
|
|
3455
3461
|
if (typeof a == "function")
|
|
3456
3462
|
try {
|
|
3457
3463
|
return i = a(), i instanceof window.Element ? (f.addClass(i, r), Object.keys(t).map(function(n) {
|
|
@@ -4198,7 +4204,7 @@ var no = function(o, r) {
|
|
|
4198
4204
|
};
|
|
4199
4205
|
Object.keys(u).map(function(h) {
|
|
4200
4206
|
e.root.style[h] = u[h];
|
|
4201
|
-
}), 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) {
|
|
4202
4208
|
h ? f.addClass(e.root, "mini-controls") : f.removeClass(e.root, "mini-controls");
|
|
4203
4209
|
});
|
|
4204
4210
|
var c = this.playerConfig.isMobileSimulateMode;
|
|
@@ -4405,14 +4411,14 @@ var no = function(o, r) {
|
|
|
4405
4411
|
langKeys: [],
|
|
4406
4412
|
textKeys: []
|
|
4407
4413
|
};
|
|
4408
|
-
function
|
|
4414
|
+
function tt(a, o) {
|
|
4409
4415
|
return Object.keys(o).forEach(function(r) {
|
|
4410
4416
|
var t = f.typeOf(o[r]), e = f.typeOf(a[r]);
|
|
4411
4417
|
if (t === "Array") {
|
|
4412
4418
|
var i;
|
|
4413
4419
|
e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, ae(o[r]));
|
|
4414
4420
|
} else
|
|
4415
|
-
t === "Object" ? (e !== "Object" && (a[r] = {}),
|
|
4421
|
+
t === "Object" ? (e !== "Object" && (a[r] = {}), tt(a[r], o[r])) : a[r] = o[r];
|
|
4416
4422
|
}), a;
|
|
4417
4423
|
}
|
|
4418
4424
|
function pn() {
|
|
@@ -4432,15 +4438,15 @@ function oo(a, o) {
|
|
|
4432
4438
|
}) : r = a;
|
|
4433
4439
|
var t = o, e = t.lang;
|
|
4434
4440
|
r.map(function(i) {
|
|
4435
|
-
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);
|
|
4436
4442
|
}), pn();
|
|
4437
4443
|
}
|
|
4438
4444
|
}
|
|
4439
|
-
function
|
|
4445
|
+
function ri(a, o) {
|
|
4440
4446
|
var r = a.LANG;
|
|
4441
4447
|
if (o || (o = te), !!o.lang) {
|
|
4442
4448
|
var t = a.TEXT || {};
|
|
4443
|
-
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();
|
|
4444
4450
|
}
|
|
4445
4451
|
}
|
|
4446
4452
|
function ao(a) {
|
|
@@ -4450,9 +4456,9 @@ function ao(a) {
|
|
|
4450
4456
|
textKeys: {},
|
|
4451
4457
|
pId: a
|
|
4452
4458
|
};
|
|
4453
|
-
return
|
|
4459
|
+
return tt(r.lang, te.lang), (o = r.langKeys).push.apply(o, ae(te.langKeys)), tt(r.textKeys, te.textKeys), r;
|
|
4454
4460
|
}
|
|
4455
|
-
|
|
4461
|
+
ri(so);
|
|
4456
4462
|
var We = {
|
|
4457
4463
|
get textKeys() {
|
|
4458
4464
|
return te.textKeys;
|
|
@@ -4467,7 +4473,7 @@ var We = {
|
|
|
4467
4473
|
}), te.lang["zh-cn"] && (a.zh = te.lang["zh-cn"] || {}), a;
|
|
4468
4474
|
},
|
|
4469
4475
|
extend: oo,
|
|
4470
|
-
use:
|
|
4476
|
+
use: ri,
|
|
4471
4477
|
init: ao
|
|
4472
4478
|
}, N = {
|
|
4473
4479
|
INITIAL: 1,
|
|
@@ -4478,7 +4484,7 @@ var We = {
|
|
|
4478
4484
|
RUNNING: 6,
|
|
4479
4485
|
ENDED: 7,
|
|
4480
4486
|
DESTROYED: 8
|
|
4481
|
-
}, 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) {
|
|
4482
4488
|
x(r, a);
|
|
4483
4489
|
var o = P(r);
|
|
4484
4490
|
function r() {
|
|
@@ -4561,7 +4567,7 @@ var We = {
|
|
|
4561
4567
|
}], [{
|
|
4562
4568
|
key: "getInstance",
|
|
4563
4569
|
value: function() {
|
|
4564
|
-
return
|
|
4570
|
+
return Lt || (Lt = new r()), Lt;
|
|
4565
4571
|
}
|
|
4566
4572
|
}]), r;
|
|
4567
4573
|
}(Ki.EventEmitter);
|
|
@@ -4573,7 +4579,7 @@ function lo(a) {
|
|
|
4573
4579
|
}
|
|
4574
4580
|
return null;
|
|
4575
4581
|
}
|
|
4576
|
-
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) {
|
|
4577
4583
|
x(r, a);
|
|
4578
4584
|
var o = P(r);
|
|
4579
4585
|
function r(t) {
|
|
@@ -4591,7 +4597,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4591
4597
|
e.resize();
|
|
4592
4598
|
}, 100);
|
|
4593
4599
|
}, C = f.getFullScreenEl();
|
|
4594
|
-
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(
|
|
4600
|
+
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(gt, {
|
|
4595
4601
|
eventType: "system",
|
|
4596
4602
|
action: "switch_fullscreen",
|
|
4597
4603
|
pluginName: "player",
|
|
@@ -4657,7 +4663,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4657
4663
|
}, e.instManager = _e;
|
|
4658
4664
|
var l = e._initDOM();
|
|
4659
4665
|
if (!l)
|
|
4660
|
-
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);
|
|
4661
4667
|
var u = e.config, c = u.definition, h = c === void 0 ? {} : c, d = u.url;
|
|
4662
4668
|
if (!d && h.list && h.list.length > 0) {
|
|
4663
4669
|
var g = h.list.find(function(p) {
|
|
@@ -4666,7 +4672,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4666
4672
|
g || (h.defaultDefinition = h.list[0].definition, g = h.list[0]), e.config.url = g.url, e.curDefinition = g;
|
|
4667
4673
|
}
|
|
4668
4674
|
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), K.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(N.READY), f.setTimeout(v(e), function() {
|
|
4669
|
-
e.emit(
|
|
4675
|
+
e.emit(ei);
|
|
4670
4676
|
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < N.ATTACHED) && e.start(), e;
|
|
4671
4677
|
}
|
|
4672
4678
|
return E(r, [{
|
|
@@ -4678,7 +4684,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4678
4684
|
if (n && n.nodeType === 1)
|
|
4679
4685
|
this.root = n;
|
|
4680
4686
|
else
|
|
4681
|
-
return this.emit(
|
|
4687
|
+
return this.emit(it, new ut("use", this.config.vid, {
|
|
4682
4688
|
line: 32,
|
|
4683
4689
|
handle: "Constructor",
|
|
4684
4690
|
msg: "container id can't be empty"
|
|
@@ -4763,7 +4769,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4763
4769
|
O.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (R.os.isIpad || R.os.isPhone) && this.mediaPlay());
|
|
4764
4770
|
var l = this.config.startTime;
|
|
4765
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() {
|
|
4766
|
-
i.emit(
|
|
4772
|
+
i.emit(kt);
|
|
4767
4773
|
}, 0);
|
|
4768
4774
|
}
|
|
4769
4775
|
}
|
|
@@ -4958,7 +4964,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4958
4964
|
return;
|
|
4959
4965
|
}
|
|
4960
4966
|
n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
|
|
4961
|
-
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);
|
|
4962
4968
|
}, 0));
|
|
4963
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;
|
|
4964
4970
|
}
|
|
@@ -5023,7 +5029,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5023
5029
|
var n = this, s = this.config.definition;
|
|
5024
5030
|
if (Array.isArray(s == null ? void 0 : s.list) && s.list.forEach(function(u) {
|
|
5025
5031
|
(e == null ? void 0 : e.definition) === u.definition && (n.curDefinition = u);
|
|
5026
|
-
}), 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, {
|
|
5027
5033
|
from: i,
|
|
5028
5034
|
to: e
|
|
5029
5035
|
}), !this.hasStart) {
|
|
@@ -5034,11 +5040,11 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5034
5040
|
seamless: s.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
|
|
5035
5041
|
}, e));
|
|
5036
5042
|
l && l.then ? l.then(function() {
|
|
5037
|
-
n.emit(
|
|
5043
|
+
n.emit(Gt, {
|
|
5038
5044
|
from: i,
|
|
5039
5045
|
to: e
|
|
5040
5046
|
});
|
|
5041
|
-
}) : this.emit(
|
|
5047
|
+
}) : this.emit(Gt, {
|
|
5042
5048
|
from: i,
|
|
5043
5049
|
to: e
|
|
5044
5050
|
});
|
|
@@ -5056,7 +5062,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5056
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];
|
|
5057
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) {
|
|
5058
5064
|
e.removeClass(m);
|
|
5059
|
-
}), this.addClass(k.NO_START), this.emit(
|
|
5065
|
+
}), this.addClass(k.NO_START), this.emit(bt);
|
|
5060
5066
|
}
|
|
5061
5067
|
}, {
|
|
5062
5068
|
key: "reset",
|
|
@@ -5078,7 +5084,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5078
5084
|
value: function() {
|
|
5079
5085
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
5080
5086
|
if (!(!s || !l)) {
|
|
5081
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Ie), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(
|
|
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)
|
|
5082
5088
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
5083
5089
|
n.removeChild(u[c]);
|
|
5084
5090
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -5102,7 +5108,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5102
5108
|
i && i.catch && i.catch(function(n) {
|
|
5103
5109
|
console.log(n);
|
|
5104
5110
|
});
|
|
5105
|
-
}), e.emit(
|
|
5111
|
+
}), e.emit(ct), e.onPlay();
|
|
5106
5112
|
});
|
|
5107
5113
|
}
|
|
5108
5114
|
}, {
|
|
@@ -5181,7 +5187,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5181
5187
|
var i = e ? "".concat(k.INNER_FULLSCREEN, " ").concat(k.CSS_FULLSCREEN) : k.CSS_FULLSCREEN;
|
|
5182
5188
|
this.changeFullStyle(this.root, e, i);
|
|
5183
5189
|
var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
|
|
5184
|
-
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);
|
|
5185
5191
|
}
|
|
5186
5192
|
}, {
|
|
5187
5193
|
key: "exitCssFullscreen",
|
|
@@ -5193,7 +5199,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5193
5199
|
var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
|
|
5194
5200
|
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(ge, !1)) : this.removeClass(e);
|
|
5195
5201
|
}
|
|
5196
|
-
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(
|
|
5202
|
+
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(ft, !1);
|
|
5197
5203
|
}
|
|
5198
5204
|
}, {
|
|
5199
5205
|
key: "getRotateFullscreen",
|
|
@@ -5225,7 +5231,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5225
5231
|
this.onFocus(e);
|
|
5226
5232
|
return;
|
|
5227
5233
|
}
|
|
5228
|
-
this.emit(
|
|
5234
|
+
this.emit(Qt, W({
|
|
5229
5235
|
paused: this.paused,
|
|
5230
5236
|
ended: this.ended
|
|
5231
5237
|
}, e));
|
|
@@ -5358,7 +5364,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5358
5364
|
value: function(e, i, n) {
|
|
5359
5365
|
if (!(!this.media || !i || !e)) {
|
|
5360
5366
|
var s = f.typeOf(e) === "String" ? e : e.type || "";
|
|
5361
|
-
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({
|
|
5362
5368
|
eventType: s,
|
|
5363
5369
|
action: i,
|
|
5364
5370
|
currentTime: this.currentTime,
|
|
@@ -5444,7 +5450,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5444
5450
|
value: function(e) {
|
|
5445
5451
|
var i = this;
|
|
5446
5452
|
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, pe(this, "playnext", function() {
|
|
5447
|
-
i.start(), i.emit(
|
|
5453
|
+
i.start(), i.emit(dt, e);
|
|
5448
5454
|
});
|
|
5449
5455
|
}
|
|
5450
5456
|
}, {
|
|
@@ -5582,7 +5588,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5582
5588
|
}, {
|
|
5583
5589
|
key: "version",
|
|
5584
5590
|
get: function() {
|
|
5585
|
-
return
|
|
5591
|
+
return jt;
|
|
5586
5592
|
}
|
|
5587
5593
|
}, {
|
|
5588
5594
|
key: "playerId",
|
|
@@ -5683,17 +5689,17 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5683
5689
|
}, {
|
|
5684
5690
|
key: "hook",
|
|
5685
5691
|
value: function(e, i) {
|
|
5686
|
-
return
|
|
5692
|
+
return pt.call.apply(pt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5687
5693
|
}
|
|
5688
5694
|
}, {
|
|
5689
5695
|
key: "useHooks",
|
|
5690
5696
|
value: function(e, i) {
|
|
5691
|
-
return
|
|
5697
|
+
return vt.call.apply(vt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5692
5698
|
}
|
|
5693
5699
|
}, {
|
|
5694
5700
|
key: "removeHooks",
|
|
5695
5701
|
value: function(e, i) {
|
|
5696
|
-
return
|
|
5702
|
+
return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5697
5703
|
}
|
|
5698
5704
|
}, {
|
|
5699
5705
|
key: "usePluginHooks",
|
|
@@ -5765,9 +5771,9 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5765
5771
|
}
|
|
5766
5772
|
}]), r;
|
|
5767
5773
|
}(Us);
|
|
5768
|
-
y(
|
|
5769
|
-
y(
|
|
5770
|
-
|
|
5774
|
+
y(Tt, "defaultPreset", null);
|
|
5775
|
+
y(Tt, "XgVideoProxy", null);
|
|
5776
|
+
Tt.instManager = vn.getInstance();
|
|
5771
5777
|
function $() {
|
|
5772
5778
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
5773
5779
|
}
|
|
@@ -5831,18 +5837,18 @@ var Ce = {
|
|
|
5831
5837
|
key: "afterCreate",
|
|
5832
5838
|
value: function() {
|
|
5833
5839
|
var e = this;
|
|
5834
|
-
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() {
|
|
5835
5841
|
var i = e._state, n = i.autoplayStart, s = i.isFFSend;
|
|
5836
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());
|
|
5837
5843
|
}), this.on(ye, function() {
|
|
5838
5844
|
e.vt = $(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
5839
5845
|
var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
|
|
5840
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");
|
|
5841
|
-
}), this.on(
|
|
5847
|
+
}), this.on(Ct, this._onSeeking), this.on(me, this._onSeeked), this.on(ii, function() {
|
|
5842
5848
|
e.endState("destroy");
|
|
5843
|
-
}), this.on(
|
|
5849
|
+
}), this.on(wt, function() {
|
|
5844
5850
|
e.endState("urlChange"), O.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
5845
|
-
}), this.on([
|
|
5851
|
+
}), this.on([Zt, ve], this._onPlaying), this.on(nt, this._onWaiting), this.on(it, this._onError), this.on(bt, function() {
|
|
5846
5852
|
O.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
5847
5853
|
});
|
|
5848
5854
|
}
|
|
@@ -6056,7 +6062,7 @@ var ho = /* @__PURE__ */ function(a) {
|
|
|
6056
6062
|
e.isEndedShow && f.removeClass(e.root, "hide");
|
|
6057
6063
|
}), this.config.hideCanplay ? (this.once(ie, function() {
|
|
6058
6064
|
e.onTimeUpdate();
|
|
6059
|
-
}), this.on(
|
|
6065
|
+
}), this.on(wt, function() {
|
|
6060
6066
|
f.removeClass(e.root, "hide"), f.addClass(e.root, "xg-showplay"), e.once(ie, function() {
|
|
6061
6067
|
e.onTimeUpdate();
|
|
6062
6068
|
});
|
|
@@ -6131,13 +6137,13 @@ var ho = /* @__PURE__ */ function(a) {
|
|
|
6131
6137
|
}
|
|
6132
6138
|
}]), r;
|
|
6133
6139
|
}(U);
|
|
6134
|
-
function
|
|
6140
|
+
function si() {
|
|
6135
6141
|
return new DOMParser().parseFromString(`<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
6136
6142
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
|
|
6137
6143
|
</svg>
|
|
6138
6144
|
`, "image/svg+xml").firstChild;
|
|
6139
6145
|
}
|
|
6140
|
-
function
|
|
6146
|
+
function oi() {
|
|
6141
6147
|
return new DOMParser().parseFromString(`<svg class="pause" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
6142
6148
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
|
|
6143
6149
|
</svg>
|
|
@@ -6182,16 +6188,16 @@ var vo = /* @__PURE__ */ function(a) {
|
|
|
6182
6188
|
key: "afterCreate",
|
|
6183
6189
|
value: function() {
|
|
6184
6190
|
var e = this, i = this.player, n = this.playerConfig;
|
|
6185
|
-
this.initIcons(), this.once(
|
|
6191
|
+
this.initIcons(), this.once(ei, function() {
|
|
6186
6192
|
n && (n.lang && n.lang === "en" ? f.addClass(i.root, "lang-is-en") : n.lang === "jp" && f.addClass(i.root, "lang-is-jp"));
|
|
6187
|
-
}), this.on(De, this.onAutoplayStart), n.autoplay || this.show(), this.on(
|
|
6193
|
+
}), this.on(De, this.onAutoplayStart), n.autoplay || this.show(), this.on(ti, function() {
|
|
6188
6194
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
6189
6195
|
e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
|
|
6190
6196
|
}), this.on(ne, function() {
|
|
6191
6197
|
e.onPlayPause("play");
|
|
6192
6198
|
}), this.on(Ye, function() {
|
|
6193
6199
|
e.onPlayPause("pause");
|
|
6194
|
-
}), this.on(
|
|
6200
|
+
}), this.on(bt, function() {
|
|
6195
6201
|
e.onPlayerReset();
|
|
6196
6202
|
}), this.clickHandler = this.hook("startClick", this.switchPausePlay, {
|
|
6197
6203
|
pre: function(l) {
|
|
@@ -6210,11 +6216,11 @@ var vo = /* @__PURE__ */ function(a) {
|
|
|
6210
6216
|
value: function() {
|
|
6211
6217
|
return {
|
|
6212
6218
|
startPlay: {
|
|
6213
|
-
icon:
|
|
6219
|
+
icon: si,
|
|
6214
6220
|
class: "xg-icon-play"
|
|
6215
6221
|
},
|
|
6216
6222
|
startPause: {
|
|
6217
|
-
icon:
|
|
6223
|
+
icon: oi,
|
|
6218
6224
|
class: "xg-icon-pause"
|
|
6219
6225
|
}
|
|
6220
6226
|
};
|
|
@@ -6436,7 +6442,7 @@ function Ai(a) {
|
|
|
6436
6442
|
var o = parseFloat(a), r = a.indexOf("%") === -1 && !Number.isNaN(o);
|
|
6437
6443
|
return r && o;
|
|
6438
6444
|
}
|
|
6439
|
-
var
|
|
6445
|
+
var ai = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], mn = ai.length;
|
|
6440
6446
|
function yo() {
|
|
6441
6447
|
for (var a = {
|
|
6442
6448
|
width: 0,
|
|
@@ -6446,7 +6452,7 @@ function yo() {
|
|
|
6446
6452
|
outerWidth: 0,
|
|
6447
6453
|
outerHeight: 0
|
|
6448
6454
|
}, o = 0; o < mn; o++) {
|
|
6449
|
-
var r =
|
|
6455
|
+
var r = ai[o];
|
|
6450
6456
|
a[r] = 0;
|
|
6451
6457
|
}
|
|
6452
6458
|
return a;
|
|
@@ -6463,7 +6469,7 @@ function Li(a) {
|
|
|
6463
6469
|
var r = {};
|
|
6464
6470
|
r.width = a.offsetWidth, r.height = a.offsetHeight;
|
|
6465
6471
|
for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < mn; e++) {
|
|
6466
|
-
var i =
|
|
6472
|
+
var i = ai[e], n = o[i], s = parseFloat(n);
|
|
6467
6473
|
r[i] = Number.isNaN(s) ? 0 : s;
|
|
6468
6474
|
}
|
|
6469
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);
|
|
@@ -6472,14 +6478,14 @@ function Li(a) {
|
|
|
6472
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;
|
|
6473
6479
|
}
|
|
6474
6480
|
}
|
|
6475
|
-
function
|
|
6481
|
+
function Dt(a, o) {
|
|
6476
6482
|
for (var r = 0; r < a.length; r++) {
|
|
6477
6483
|
var t = a[r];
|
|
6478
6484
|
if (t.identifier === o)
|
|
6479
6485
|
return t;
|
|
6480
6486
|
}
|
|
6481
6487
|
}
|
|
6482
|
-
var
|
|
6488
|
+
var Rt = {
|
|
6483
6489
|
START: "dragStart",
|
|
6484
6490
|
MOVE: "dragMove",
|
|
6485
6491
|
ENDED: "dragEnded"
|
|
@@ -6498,7 +6504,7 @@ var Dt = {
|
|
|
6498
6504
|
}, e.startPos = {
|
|
6499
6505
|
x: 0,
|
|
6500
6506
|
y: 0
|
|
6501
|
-
}, 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);
|
|
6502
6508
|
}
|
|
6503
6509
|
return E(r, [{
|
|
6504
6510
|
key: "_bindStartEvent",
|
|
@@ -6590,19 +6596,19 @@ var Dt = {
|
|
|
6590
6596
|
}, {
|
|
6591
6597
|
key: "ontouchmove",
|
|
6592
6598
|
value: function(e) {
|
|
6593
|
-
var i =
|
|
6599
|
+
var i = Dt(e.changedTouches, this.touchIdentifier);
|
|
6594
6600
|
i && this.dragMove(e, i);
|
|
6595
6601
|
}
|
|
6596
6602
|
}, {
|
|
6597
6603
|
key: "ontouchend",
|
|
6598
6604
|
value: function(e) {
|
|
6599
|
-
var i =
|
|
6605
|
+
var i = Dt(e.changedTouches, this.touchIdentifier);
|
|
6600
6606
|
i && this.dragEnd(e, i), e.preventDefault();
|
|
6601
6607
|
}
|
|
6602
6608
|
}, {
|
|
6603
6609
|
key: "ontouchcancel",
|
|
6604
6610
|
value: function(e) {
|
|
6605
|
-
var i =
|
|
6611
|
+
var i = Dt(e.changedTouches, this.touchIdentifier);
|
|
6606
6612
|
i && this.dragCancel(e, i);
|
|
6607
6613
|
}
|
|
6608
6614
|
}, {
|
|
@@ -6617,12 +6623,12 @@ var Dt = {
|
|
|
6617
6623
|
}, {
|
|
6618
6624
|
key: "dragRealStart",
|
|
6619
6625
|
value: function(e, i) {
|
|
6620
|
-
this.isDragging = !0, this.animate(), this.emit(
|
|
6626
|
+
this.isDragging = !0, this.animate(), this.emit(Rt.START, this.startPos);
|
|
6621
6627
|
}
|
|
6622
6628
|
}, {
|
|
6623
6629
|
key: "dragEnd",
|
|
6624
6630
|
value: function(e, i) {
|
|
6625
|
-
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());
|
|
6626
6632
|
}
|
|
6627
6633
|
}, {
|
|
6628
6634
|
key: "_dragPointerMove",
|
|
@@ -6638,7 +6644,7 @@ var Dt = {
|
|
|
6638
6644
|
value: function(e, i) {
|
|
6639
6645
|
if (e = e || window.event, !!this.isDown) {
|
|
6640
6646
|
var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, h = u.y;
|
|
6641
|
-
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);
|
|
6642
6648
|
}
|
|
6643
6649
|
}
|
|
6644
6650
|
}, {
|
|
@@ -6763,11 +6769,11 @@ var Dt = {
|
|
|
6763
6769
|
value: function() {
|
|
6764
6770
|
return {
|
|
6765
6771
|
play: {
|
|
6766
|
-
icon:
|
|
6772
|
+
icon: si,
|
|
6767
6773
|
class: "xg-icon-play"
|
|
6768
6774
|
},
|
|
6769
6775
|
pause: {
|
|
6770
|
-
icon:
|
|
6776
|
+
icon: oi,
|
|
6771
6777
|
class: "xg-icon-pause"
|
|
6772
6778
|
}
|
|
6773
6779
|
};
|
|
@@ -6786,7 +6792,7 @@ var Dt = {
|
|
|
6786
6792
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
6787
6793
|
this.lastStyle = {}, f.addClass(i.root, "xgplayer-mini"), ["width", "height", "top", "left"].map(function(l) {
|
|
6788
6794
|
e.lastStyle[l] = s.style[l], s.style[l] = "".concat(e.pos[l], "px");
|
|
6789
|
-
}), n.fluid && (s.style["padding-top"] = ""), this.emit(
|
|
6795
|
+
}), n.fluid && (s.style["padding-top"] = ""), this.emit(ht, !0), i.isMini = this.isMini = !0;
|
|
6790
6796
|
}
|
|
6791
6797
|
}
|
|
6792
6798
|
}, {
|
|
@@ -6798,7 +6804,7 @@ var Dt = {
|
|
|
6798
6804
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
6799
6805
|
f.removeClass(i.root, "xgplayer-mini"), this.lastStyle && Object.keys(this.lastStyle).map(function(l) {
|
|
6800
6806
|
s.style[l] = e.lastStyle[l];
|
|
6801
|
-
}), 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;
|
|
6802
6808
|
}
|
|
6803
6809
|
}, {
|
|
6804
6810
|
key: "destroy",
|
|
@@ -6847,11 +6853,11 @@ var Dt = {
|
|
|
6847
6853
|
};
|
|
6848
6854
|
}
|
|
6849
6855
|
}]), r;
|
|
6850
|
-
}(U),
|
|
6856
|
+
}(U), st = {
|
|
6851
6857
|
mouseenter: "onMouseEnter",
|
|
6852
6858
|
mouseleave: "onMouseLeave",
|
|
6853
6859
|
mousemove: "onMouseMove"
|
|
6854
|
-
},
|
|
6860
|
+
}, Ot = ["videoClick", "videoDbClick"], Ft = /* @__PURE__ */ function(a) {
|
|
6855
6861
|
x(r, a);
|
|
6856
6862
|
var o = P(r);
|
|
6857
6863
|
function r() {
|
|
@@ -6880,7 +6886,7 @@ var Dt = {
|
|
|
6880
6886
|
}), y(v(t), "onVideoClick", function(s) {
|
|
6881
6887
|
var l = v(t), u = l.player, c = l.playerConfig;
|
|
6882
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() {
|
|
6883
|
-
t._clickCount && (t._clickCount--, pe(v(t),
|
|
6889
|
+
t._clickCount && (t._clickCount--, pe(v(t), Ot[0], function(h, d) {
|
|
6884
6890
|
t.switchPlayPause(d.e);
|
|
6885
6891
|
}, {
|
|
6886
6892
|
e: s,
|
|
@@ -6894,7 +6900,7 @@ var Dt = {
|
|
|
6894
6900
|
t._clickCount = 0;
|
|
6895
6901
|
return;
|
|
6896
6902
|
}
|
|
6897
|
-
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) {
|
|
6898
6904
|
t.emitUserAction(d.e, "switch_fullscreen", {
|
|
6899
6905
|
props: "fullscreen",
|
|
6900
6906
|
from: u.fullscreen,
|
|
@@ -6911,7 +6917,7 @@ var Dt = {
|
|
|
6911
6917
|
key: "afterCreate",
|
|
6912
6918
|
value: function() {
|
|
6913
6919
|
var e = this;
|
|
6914
|
-
this._clickCount = 0,
|
|
6920
|
+
this._clickCount = 0, Ot.map(function(n) {
|
|
6915
6921
|
e.__hooks[n] = null;
|
|
6916
6922
|
});
|
|
6917
6923
|
var i = this.playerConfig.isMobileSimulateMode;
|
|
@@ -6921,8 +6927,8 @@ var Dt = {
|
|
|
6921
6927
|
key: "initEvents",
|
|
6922
6928
|
value: function() {
|
|
6923
6929
|
var e = this, i = this.player, n = i.media, s = i.root, l = this.playerConfig.enableContextmenu;
|
|
6924
|
-
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(
|
|
6925
|
-
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);
|
|
6926
6932
|
}), !l && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
|
|
6927
6933
|
}
|
|
6928
6934
|
}, {
|
|
@@ -6944,8 +6950,8 @@ var Dt = {
|
|
|
6944
6950
|
key: "destroy",
|
|
6945
6951
|
value: function() {
|
|
6946
6952
|
var e = this, i = this.player, n = i.video, s = i.root;
|
|
6947
|
-
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(
|
|
6948
|
-
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);
|
|
6949
6955
|
});
|
|
6950
6956
|
}
|
|
6951
6957
|
}], [{
|
|
@@ -7107,7 +7113,7 @@ var Be = {
|
|
|
7107
7113
|
SEEKING: "seeking",
|
|
7108
7114
|
PLAYBACK: "playbackrate",
|
|
7109
7115
|
LIGHT: ""
|
|
7110
|
-
},
|
|
7116
|
+
}, Mt = ["videoClick", "videoDbClick"], xo = /* @__PURE__ */ function(a) {
|
|
7111
7117
|
x(r, a);
|
|
7112
7118
|
var o = P(r);
|
|
7113
7119
|
function r(t) {
|
|
@@ -7188,7 +7194,7 @@ var Be = {
|
|
|
7188
7194
|
key: "afterCreate",
|
|
7189
7195
|
value: function() {
|
|
7190
7196
|
var e = this;
|
|
7191
|
-
|
|
7197
|
+
Mt.map(function(d) {
|
|
7192
7198
|
e.__hooks[d] = null;
|
|
7193
7199
|
});
|
|
7194
7200
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
@@ -7371,7 +7377,7 @@ var Be = {
|
|
|
7371
7377
|
key: "onClick",
|
|
7372
7378
|
value: function(e) {
|
|
7373
7379
|
var i = this, n = this.player;
|
|
7374
|
-
pe(this,
|
|
7380
|
+
pe(this, Mt[0], function(s, l) {
|
|
7375
7381
|
i.clickHandler(l.e);
|
|
7376
7382
|
}, {
|
|
7377
7383
|
e,
|
|
@@ -7382,7 +7388,7 @@ var Be = {
|
|
|
7382
7388
|
key: "onDbClick",
|
|
7383
7389
|
value: function(e) {
|
|
7384
7390
|
var i = this, n = this.player;
|
|
7385
|
-
pe(this,
|
|
7391
|
+
pe(this, Mt[1], function(s, l) {
|
|
7386
7392
|
i.dbClickHandler(l.e);
|
|
7387
7393
|
}, {
|
|
7388
7394
|
e,
|
|
@@ -8535,7 +8541,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
8535
8541
|
var e = this;
|
|
8536
8542
|
L(I(r.prototype), "afterCreate", this).call(this);
|
|
8537
8543
|
var i = this.player, n = this.config;
|
|
8538
|
-
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([Ye,
|
|
8544
|
+
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([Ye, it, Fe], function() {
|
|
8539
8545
|
e.animate(i.paused);
|
|
8540
8546
|
}), this.on(ne, function() {
|
|
8541
8547
|
e.animate(i.paused);
|
|
@@ -8546,11 +8552,11 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
8546
8552
|
value: function() {
|
|
8547
8553
|
return {
|
|
8548
8554
|
play: {
|
|
8549
|
-
icon:
|
|
8555
|
+
icon: si,
|
|
8550
8556
|
class: "xg-icon-play"
|
|
8551
8557
|
},
|
|
8552
8558
|
pause: {
|
|
8553
|
-
icon:
|
|
8559
|
+
icon: oi,
|
|
8554
8560
|
class: "xg-icon-pause"
|
|
8555
8561
|
}
|
|
8556
8562
|
};
|
|
@@ -9033,7 +9039,7 @@ var Ho = /* @__PURE__ */ function(a) {
|
|
|
9033
9039
|
return E(r, [{
|
|
9034
9040
|
key: "afterCreate",
|
|
9035
9041
|
value: function() {
|
|
9036
|
-
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);
|
|
9037
9043
|
}
|
|
9038
9044
|
}, {
|
|
9039
9045
|
key: "setConfig",
|
|
@@ -9493,7 +9499,7 @@ var He = {
|
|
|
9493
9499
|
key: "afterCreate",
|
|
9494
9500
|
value: function() {
|
|
9495
9501
|
var e = this;
|
|
9496
|
-
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() {
|
|
9497
9503
|
e.config.showIcon && (f.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
9498
9504
|
}));
|
|
9499
9505
|
}
|
|
@@ -9525,9 +9531,9 @@ var He = {
|
|
|
9525
9531
|
var n = i.paused;
|
|
9526
9532
|
f.setTimeout(e, function() {
|
|
9527
9533
|
!n && i.mediaPlay();
|
|
9528
|
-
}, 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);
|
|
9529
9535
|
}, this.enterPIPCallback = function(n) {
|
|
9530
|
-
i.emit(
|
|
9536
|
+
i.emit(Kt, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
9531
9537
|
}, this.onWebkitpresentationmodechanged = function(n) {
|
|
9532
9538
|
var s = i.media.webkitPresentationMode;
|
|
9533
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);
|
|
@@ -9678,7 +9684,7 @@ var Jo = /* @__PURE__ */ function(a) {
|
|
|
9678
9684
|
var e;
|
|
9679
9685
|
return T(this, r), e = o.call(this, t), y(v(e), "playNext", function(i) {
|
|
9680
9686
|
var n = v(e), s = n.player;
|
|
9681
|
-
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));
|
|
9682
9688
|
}), e.idx = -1, e;
|
|
9683
9689
|
}
|
|
9684
9690
|
return E(r, [{
|
|
@@ -9813,7 +9819,7 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
9813
9819
|
});
|
|
9814
9820
|
})(yn);
|
|
9815
9821
|
var Qo = yn.exports;
|
|
9816
|
-
const ea = /* @__PURE__ */
|
|
9822
|
+
const ea = /* @__PURE__ */ Yt(Qo);
|
|
9817
9823
|
function ta() {
|
|
9818
9824
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
9819
9825
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
@@ -10112,7 +10118,7 @@ var ia = /* @__PURE__ */ function(a) {
|
|
|
10112
10118
|
function sa(a, o) {
|
|
10113
10119
|
return a === ce.SIDE ? o === j.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10114
10120
|
}
|
|
10115
|
-
var Pe = R.device === "mobile",
|
|
10121
|
+
var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
|
|
10116
10122
|
x(r, a);
|
|
10117
10123
|
var o = P(r);
|
|
10118
10124
|
function r(t) {
|
|
@@ -10148,7 +10154,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10148
10154
|
e._resizeList();
|
|
10149
10155
|
}), this.once(ve, function() {
|
|
10150
10156
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
10151
|
-
}), Pe && this.on(
|
|
10157
|
+
}), Pe && this.on(Qt, function() {
|
|
10152
10158
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
10153
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);
|
|
10154
10160
|
}
|
|
@@ -10305,7 +10311,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10305
10311
|
var e = this;
|
|
10306
10312
|
L(I(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
|
|
10307
10313
|
e.changeDefinitionList(i);
|
|
10308
|
-
}), this.on(
|
|
10314
|
+
}), this.on(ni, function(i) {
|
|
10309
10315
|
e.renderItemList(e.config.list, i.to);
|
|
10310
10316
|
}), this.player.definitionList.length < 2 && this.hide();
|
|
10311
10317
|
}
|
|
@@ -10373,7 +10379,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10373
10379
|
}, {
|
|
10374
10380
|
key: "defaultConfig",
|
|
10375
10381
|
get: function() {
|
|
10376
|
-
return W(W({},
|
|
10382
|
+
return W(W({}, yt.defaultConfig), {}, {
|
|
10377
10383
|
position: j.CONTROLS_RIGHT,
|
|
10378
10384
|
index: 3,
|
|
10379
10385
|
list: [],
|
|
@@ -10385,7 +10391,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10385
10391
|
});
|
|
10386
10392
|
}
|
|
10387
10393
|
}]), r;
|
|
10388
|
-
}(
|
|
10394
|
+
}(yt), aa = /* @__PURE__ */ function(a) {
|
|
10389
10395
|
x(r, a);
|
|
10390
10396
|
var o = P(r);
|
|
10391
10397
|
function r(t) {
|
|
@@ -10467,7 +10473,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10467
10473
|
}, {
|
|
10468
10474
|
key: "defaultConfig",
|
|
10469
10475
|
get: function() {
|
|
10470
|
-
return W(W({},
|
|
10476
|
+
return W(W({}, yt.defaultConfig), {}, {
|
|
10471
10477
|
position: j.CONTROLS_RIGHT,
|
|
10472
10478
|
index: 4,
|
|
10473
10479
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
@@ -10477,7 +10483,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10477
10483
|
});
|
|
10478
10484
|
}
|
|
10479
10485
|
}]), r;
|
|
10480
|
-
}(
|
|
10486
|
+
}(yt);
|
|
10481
10487
|
function la() {
|
|
10482
10488
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10483
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>
|
|
@@ -10505,7 +10511,7 @@ var Ni = /* @__PURE__ */ function(a) {
|
|
|
10505
10511
|
key: "afterCreate",
|
|
10506
10512
|
value: function() {
|
|
10507
10513
|
var e = this;
|
|
10508
|
-
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) {
|
|
10509
10515
|
e.animate(i);
|
|
10510
10516
|
}), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
|
|
10511
10517
|
pre: function(n) {
|
|
@@ -10598,7 +10604,7 @@ var Ni = /* @__PURE__ */ function(a) {
|
|
|
10598
10604
|
pre: function(n) {
|
|
10599
10605
|
n.preventDefault(), n.stopPropagation();
|
|
10600
10606
|
}
|
|
10601
|
-
}), 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) {
|
|
10602
10608
|
e.onError(i);
|
|
10603
10609
|
});
|
|
10604
10610
|
}
|
|
@@ -11309,7 +11315,7 @@ var ze = {
|
|
|
11309
11315
|
}
|
|
11310
11316
|
}]), r;
|
|
11311
11317
|
}(U);
|
|
11312
|
-
function
|
|
11318
|
+
function Nt(a) {
|
|
11313
11319
|
return a ? "background:".concat(a, ";") : "";
|
|
11314
11320
|
}
|
|
11315
11321
|
var pa = /* @__PURE__ */ function(a) {
|
|
@@ -11369,9 +11375,9 @@ var pa = /* @__PURE__ */ function(a) {
|
|
|
11369
11375
|
var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
|
|
11370
11376
|
if (n) {
|
|
11371
11377
|
var s = this.config, l = s.mode, u = s.height, c = {
|
|
11372
|
-
cached:
|
|
11373
|
-
played:
|
|
11374
|
-
progress:
|
|
11378
|
+
cached: Nt(i.cachedColor),
|
|
11379
|
+
played: Nt(i.playedColor),
|
|
11380
|
+
progress: Nt(i.progressColor),
|
|
11375
11381
|
height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
|
|
11376
11382
|
}, h = l === "show" ? "xg-mini-progress-show" : "";
|
|
11377
11383
|
return '<xg-mini-progress class="xg-mini-progress '.concat(h, '" style="').concat(c.progress, " ").concat(c.height, `">
|
|
@@ -11415,7 +11421,7 @@ function ma() {
|
|
|
11415
11421
|
return !1;
|
|
11416
11422
|
}
|
|
11417
11423
|
}
|
|
11418
|
-
var
|
|
11424
|
+
var ot = null, ya = /* @__PURE__ */ function(a) {
|
|
11419
11425
|
x(r, a);
|
|
11420
11426
|
var o = P(r);
|
|
11421
11427
|
function r() {
|
|
@@ -11456,7 +11462,7 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11456
11462
|
x: 0,
|
|
11457
11463
|
y: 0,
|
|
11458
11464
|
pi: 0
|
|
11459
|
-
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== 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() {
|
|
11460
11466
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
11461
11467
|
}), s !== Ve.POSTER && (s !== Ve.FIRST_FRAME && (this.on(Fe, function() {
|
|
11462
11468
|
e.stop();
|
|
@@ -11465,7 +11471,7 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11465
11471
|
e._checkIfCanStart() && e.start(0, u);
|
|
11466
11472
|
}), this.on(Ye, function() {
|
|
11467
11473
|
e.stop();
|
|
11468
|
-
})), this.on(ye, this.onLoadedData), this.on(
|
|
11474
|
+
})), this.on(ye, this.onLoadedData), this.on(Jt, function() {
|
|
11469
11475
|
e._isLoaded = !1, e.stop();
|
|
11470
11476
|
}), document.addEventListener("visibilitychange", this.onVisibilitychange)));
|
|
11471
11477
|
}
|
|
@@ -11609,7 +11615,7 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11609
11615
|
}, {
|
|
11610
11616
|
key: "isSupport",
|
|
11611
11617
|
get: function() {
|
|
11612
|
-
return typeof
|
|
11618
|
+
return typeof ot == "boolean" || (ot = ma()), ot;
|
|
11613
11619
|
}
|
|
11614
11620
|
}, {
|
|
11615
11621
|
key: "supportCanvasFilter",
|
|
@@ -11692,7 +11698,7 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11692
11698
|
FORWARD: "快进中",
|
|
11693
11699
|
LIVE_TIP: "直播"
|
|
11694
11700
|
}
|
|
11695
|
-
}, qe = "info",
|
|
11701
|
+
}, qe = "info", Bt = fn, Ca = /* @__PURE__ */ function(a) {
|
|
11696
11702
|
x(r, a);
|
|
11697
11703
|
var o = P(r);
|
|
11698
11704
|
function r() {
|
|
@@ -11731,7 +11737,7 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11731
11737
|
}, {
|
|
11732
11738
|
key: "afterCreate",
|
|
11733
11739
|
value: function() {
|
|
11734
|
-
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);
|
|
11735
11741
|
}
|
|
11736
11742
|
}, {
|
|
11737
11743
|
key: "destroy",
|
|
@@ -11877,9 +11883,9 @@ var st = null, ya = /* @__PURE__ */ function(a) {
|
|
|
11877
11883
|
key: "afterCreate",
|
|
11878
11884
|
value: function() {
|
|
11879
11885
|
var e = this, i = this.config.useGapJump;
|
|
11880
|
-
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() {
|
|
11881
11887
|
e.hasPlayed = !0;
|
|
11882
|
-
}), this.on(
|
|
11888
|
+
}), this.on(Ct, function() {
|
|
11883
11889
|
e.seekingEventReceived = !0;
|
|
11884
11890
|
}));
|
|
11885
11891
|
}
|
|
@@ -11950,7 +11956,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
11950
11956
|
key: "afterCreate",
|
|
11951
11957
|
value: function() {
|
|
11952
11958
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
11953
|
-
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() {
|
|
11954
11960
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
11955
11961
|
}), this.on(ne, function() {
|
|
11956
11962
|
e.hasPlayed = !0;
|
|
@@ -11972,7 +11978,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
11972
11978
|
};
|
|
11973
11979
|
}
|
|
11974
11980
|
}]), r;
|
|
11975
|
-
}(U), je = "cdn",
|
|
11981
|
+
}(U), je = "cdn", at = ["cdn"], wa = /* @__PURE__ */ function(a) {
|
|
11976
11982
|
x(r, a);
|
|
11977
11983
|
var o = P(r);
|
|
11978
11984
|
function r() {
|
|
@@ -11991,7 +11997,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
11991
11997
|
}), y(v(t), "startTimer", function() {
|
|
11992
11998
|
f.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
|
|
11993
11999
|
}), y(v(t), "initSpeedList", function() {
|
|
11994
|
-
t.speedListCache = {},
|
|
12000
|
+
t.speedListCache = {}, at.forEach(function(s) {
|
|
11995
12001
|
t.speedListCache[s] = [];
|
|
11996
12002
|
});
|
|
11997
12003
|
}), y(v(t), "_onRealSpeedChange", function(s) {
|
|
@@ -12031,13 +12037,13 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
12031
12037
|
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : je, l = t.getSpeed(s), u = v(t), c = u.player;
|
|
12032
12038
|
if (c)
|
|
12033
12039
|
if (s === je)
|
|
12034
|
-
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(
|
|
12040
|
+
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(Wt, {
|
|
12035
12041
|
speed: l,
|
|
12036
12042
|
realTimeSpeed: c.realTimeSpeed
|
|
12037
12043
|
}));
|
|
12038
12044
|
else {
|
|
12039
12045
|
var h = t.getSpeedName("avg", s);
|
|
12040
|
-
(!c[h] || l !== c[h]) && (c[h] = l, c.emit(
|
|
12046
|
+
(!c[h] || l !== c[h]) && (c[h] = l, c.emit(Wt, {
|
|
12041
12047
|
speed: l,
|
|
12042
12048
|
realTimeSpeed: c.realTimeSpeed
|
|
12043
12049
|
}));
|
|
@@ -12048,7 +12054,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
12048
12054
|
key: "afterCreate",
|
|
12049
12055
|
value: function() {
|
|
12050
12056
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
12051
|
-
(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);
|
|
12052
12058
|
}
|
|
12053
12059
|
}, {
|
|
12054
12060
|
key: "getSpeedName",
|
|
@@ -12075,7 +12081,7 @@ var ka = /* @__PURE__ */ function(a) {
|
|
|
12075
12081
|
key: "destroy",
|
|
12076
12082
|
value: function() {
|
|
12077
12083
|
var e = this;
|
|
12078
|
-
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) {
|
|
12079
12085
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
12080
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);
|
|
12081
12087
|
}
|
|
@@ -12217,15 +12223,15 @@ var Ta = /* @__PURE__ */ E(function a(o, r) {
|
|
|
12217
12223
|
var h = n ? "mobile" : R.device;
|
|
12218
12224
|
switch (h) {
|
|
12219
12225
|
case "pc":
|
|
12220
|
-
(t = this.plugins).push.apply(t, [Fi,
|
|
12226
|
+
(t = this.plugins).push.apply(t, [Fi, Ft, Ni, wa, ba]);
|
|
12221
12227
|
break;
|
|
12222
12228
|
case "mobile":
|
|
12223
12229
|
(e = this.plugins).push.apply(e, [xo]);
|
|
12224
12230
|
break;
|
|
12225
12231
|
default:
|
|
12226
|
-
(i = this.plugins).push.apply(i, [Fi,
|
|
12232
|
+
(i = this.plugins).push.apply(i, [Fi, Ft, Ni]);
|
|
12227
12233
|
}
|
|
12228
|
-
(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 = [];
|
|
12229
12235
|
}), ue = /* @__PURE__ */ function(a) {
|
|
12230
12236
|
x(r, a);
|
|
12231
12237
|
var o = P(r);
|
|
@@ -12233,11 +12239,11 @@ var Ta = /* @__PURE__ */ E(function a(o, r) {
|
|
|
12233
12239
|
return T(this, r), o.apply(this, arguments);
|
|
12234
12240
|
}
|
|
12235
12241
|
return E(r);
|
|
12236
|
-
}(
|
|
12242
|
+
}(Tt);
|
|
12237
12243
|
y(ue, "defaultPreset", Ta);
|
|
12238
12244
|
y(ue, "Util", f);
|
|
12239
12245
|
y(ue, "Sniffer", R);
|
|
12240
|
-
y(ue, "Errors",
|
|
12246
|
+
y(ue, "Errors", ut);
|
|
12241
12247
|
y(ue, "Events", Bs);
|
|
12242
12248
|
y(ue, "Plugin", U);
|
|
12243
12249
|
y(ue, "BasePlugin", Te);
|
|
@@ -12247,7 +12253,7 @@ y(ue, "InstManager", vn);
|
|
|
12247
12253
|
const Ea = ["id"], Sa = /* @__PURE__ */ le({
|
|
12248
12254
|
name: "ElImageViewer",
|
|
12249
12255
|
__name: "Player",
|
|
12250
|
-
props: /* @__PURE__ */
|
|
12256
|
+
props: /* @__PURE__ */ lt({
|
|
12251
12257
|
url: {
|
|
12252
12258
|
type: String,
|
|
12253
12259
|
default: ""
|
|
@@ -12268,12 +12274,12 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
|
|
|
12268
12274
|
},
|
|
12269
12275
|
modelModifiers: {}
|
|
12270
12276
|
}),
|
|
12271
|
-
emits: /* @__PURE__ */
|
|
12277
|
+
emits: /* @__PURE__ */ lt({
|
|
12272
12278
|
close: () => !0
|
|
12273
12279
|
}, ["update:modelValue"]),
|
|
12274
12280
|
setup(a, { emit: o }) {
|
|
12275
12281
|
let r = null;
|
|
12276
|
-
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 = {
|
|
12277
12283
|
width: "100%",
|
|
12278
12284
|
height: "100%",
|
|
12279
12285
|
// 是否自动播放
|
|
@@ -12294,7 +12300,7 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
|
|
|
12294
12300
|
}, s = Y(() => ({
|
|
12295
12301
|
...n,
|
|
12296
12302
|
...t.config
|
|
12297
|
-
})), l = o, u =
|
|
12303
|
+
})), l = o, u = $t(a, "modelValue"), c = Vi(), h = An("image-viewer");
|
|
12298
12304
|
function d() {
|
|
12299
12305
|
l("close"), u.value = !1, r.destroy();
|
|
12300
12306
|
}
|
|
@@ -12379,7 +12385,7 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
|
|
|
12379
12385
|
};
|
|
12380
12386
|
}
|
|
12381
12387
|
});
|
|
12382
|
-
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({
|
|
12383
12389
|
__name: "IkPreviewFile",
|
|
12384
12390
|
props: {
|
|
12385
12391
|
list: {
|
|
@@ -12465,14 +12471,14 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12465
12471
|
i.value = {
|
|
12466
12472
|
...h,
|
|
12467
12473
|
name: h.name,
|
|
12468
|
-
url:
|
|
12474
|
+
url: et(
|
|
12469
12475
|
r.value,
|
|
12470
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)
|
|
12471
12477
|
)
|
|
12472
12478
|
}, n.value = !0;
|
|
12473
12479
|
}, l = (h) => {
|
|
12474
12480
|
In.downloadFile(
|
|
12475
|
-
|
|
12481
|
+
et(
|
|
12476
12482
|
r.value,
|
|
12477
12483
|
h[e.value.url] || h.attachmentId || h.id
|
|
12478
12484
|
),
|
|
@@ -12498,7 +12504,7 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12498
12504
|
a.simple ? (A(!0), F(
|
|
12499
12505
|
Ze,
|
|
12500
12506
|
{ key: 0 },
|
|
12501
|
-
|
|
12507
|
+
li(c.value, (C, b) => (A(), F("div", {
|
|
12502
12508
|
class: "iking-privew-annex simple",
|
|
12503
12509
|
onClick: (w) => s(C),
|
|
12504
12510
|
style: oe({ width: u.value })
|
|
@@ -12518,7 +12524,7 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12518
12524
|
[
|
|
12519
12525
|
J(V(Le), {
|
|
12520
12526
|
name: "iksvg_daochu",
|
|
12521
|
-
onClick:
|
|
12527
|
+
onClick: Qe((w) => l(C), ["stop"]),
|
|
12522
12528
|
size: 20,
|
|
12523
12529
|
active: ""
|
|
12524
12530
|
}, null, 8, ["onClick"]),
|
|
@@ -12542,7 +12548,7 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12542
12548
|
(A(!0), F(
|
|
12543
12549
|
Ze,
|
|
12544
12550
|
null,
|
|
12545
|
-
|
|
12551
|
+
li(c.value, (C, b) => {
|
|
12546
12552
|
var w;
|
|
12547
12553
|
return A(), F(
|
|
12548
12554
|
"div",
|
|
@@ -12589,7 +12595,7 @@ const xa = /* @__PURE__ */ yt(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
|
|
|
12589
12595
|
[
|
|
12590
12596
|
J(V(Le), {
|
|
12591
12597
|
name: "iksvg_daochu",
|
|
12592
|
-
onClick:
|
|
12598
|
+
onClick: Qe((B) => l(C), ["stop"]),
|
|
12593
12599
|
bg: a.showBg,
|
|
12594
12600
|
size: a.showBg ? "default" : 20,
|
|
12595
12601
|
title: "下载"
|