iking-web-ui-pro 0.2.20 → 0.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKExpandCollapse/ik.index.es.js +67 -64
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +279 -276
- package/dist/IKPreviewFile/ik.index.umd.js +16 -16
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +102 -99
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +279 -276
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +113 -110
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +208 -205
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +75 -72
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +413 -410
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +272 -269
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +146 -143
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +156 -153
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1129 -1126
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +556 -553
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +1432 -1429
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +99 -96
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +54 -51
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +697 -694
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +204 -201
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/Provider/ik.index.es.js +10 -14
- package/dist/Provider/ik.index.umd.js +1 -1
- package/dist/index.es.js +4121 -4122
- package/dist/index.umd.js +2 -2
- package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +0 -9
- package/dist/src/components/Provider/index.d.ts +0 -19
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as se, computed as K, openBlock as x, createElementBlock as O, createElementVNode as S, inject as
|
|
1
|
+
import { defineComponent as se, computed as K, openBlock as x, createElementBlock as O, createElementVNode as S, inject as Ze, ref as Xe, resolveComponent as Ee, Fragment as $e, renderList as Ut, normalizeStyle as le, toDisplayString as _e, normalizeClass as te, createVNode as X, unref as z, withModifiers as et, renderSlot as pe, createBlock as ce, withCtx as q, createCommentVNode as ue, mergeModels as ct, useModel as Xt, reactive as bn, watch as zi, nextTick as Vi, createTextVNode as Ye, h as wn, mergeProps as zt, createSlots as Tn, Teleport as En, Transition as Sn, useCssVars as xn } from "vue";
|
|
2
2
|
import { useNamespace as Pn, ElTag as In } from "element-plus";
|
|
3
3
|
import { paramType as An, ikFile as Ln, buildUUID as ji, ikColor as Dn } from "iking-utils-pro";
|
|
4
4
|
const Pe = (a, o) => {
|
|
@@ -9,7 +9,7 @@ const Pe = (a, o) => {
|
|
|
9
9
|
for (const [r, t] of Object.entries(o))
|
|
10
10
|
a[r] = t;
|
|
11
11
|
return a;
|
|
12
|
-
},
|
|
12
|
+
}, Vt = (a, o) => {
|
|
13
13
|
var i, n, s, l;
|
|
14
14
|
const r = (i = a == null ? void 0 : a.response) != null && i.data ? ci((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) || ci(a[o.suffix]), t = r == null ? void 0 : r.toLowerCase(), e = {
|
|
15
15
|
sheet: "excel",
|
|
@@ -453,7 +453,7 @@ const Pe = (a, o) => {
|
|
|
453
453
|
vr,
|
|
454
454
|
mr,
|
|
455
455
|
yr
|
|
456
|
-
],
|
|
456
|
+
], kr = {
|
|
457
457
|
key: 9,
|
|
458
458
|
t: "1692251753690",
|
|
459
459
|
class: "icon",
|
|
@@ -463,7 +463,7 @@ const Pe = (a, o) => {
|
|
|
463
463
|
"p-id": "4336",
|
|
464
464
|
width: "200",
|
|
465
465
|
height: "200"
|
|
466
|
-
},
|
|
466
|
+
}, Cr = /* @__PURE__ */ S(
|
|
467
467
|
"path",
|
|
468
468
|
{
|
|
469
469
|
d: "M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",
|
|
@@ -505,7 +505,7 @@ const Pe = (a, o) => {
|
|
|
505
505
|
-1
|
|
506
506
|
/* HOISTED */
|
|
507
507
|
), Er = [
|
|
508
|
-
|
|
508
|
+
Cr,
|
|
509
509
|
br,
|
|
510
510
|
wr,
|
|
511
511
|
Tr
|
|
@@ -619,8 +619,8 @@ const Pe = (a, o) => {
|
|
|
619
619
|
}
|
|
620
620
|
},
|
|
621
621
|
setup(a) {
|
|
622
|
-
const o = a, r = K(() => o.file ?
|
|
623
|
-
return (t, e) => r.value === "image" ? (x(), O("svg", Fn, Un)) : r.value === "zip" ? (x(), O("svg", zn, Wn)) : r.value === "ppt" ? (x(), O("svg", Gn, Yn)) : r.value === "word" ? (x(), O("svg", Xn, Jn)) : r.value === "pdf" ? (x(), O("svg", Qn, ir)) : r.value === "txt" ? (x(), O("svg", nr, or)) : r.value === "audio" ? (x(), O("svg", ar, cr)) : r.value === "video" ? (x(), O("svg", fr, gr)) : r.value === "excel" ? (x(), O("svg", pr, _r)) : r.value === "exe" ? (x(), O("svg",
|
|
622
|
+
const o = a, r = K(() => o.file ? Vt(o.file, o.fields) : o.type);
|
|
623
|
+
return (t, e) => r.value === "image" ? (x(), O("svg", Fn, Un)) : r.value === "zip" ? (x(), O("svg", zn, Wn)) : r.value === "ppt" ? (x(), O("svg", Gn, Yn)) : r.value === "word" ? (x(), O("svg", Xn, Jn)) : r.value === "pdf" ? (x(), O("svg", Qn, ir)) : r.value === "txt" ? (x(), O("svg", nr, or)) : r.value === "audio" ? (x(), O("svg", ar, cr)) : r.value === "video" ? (x(), O("svg", fr, gr)) : r.value === "excel" ? (x(), O("svg", pr, _r)) : r.value === "exe" ? (x(), O("svg", kr, Er)) : r.value === "json" ? (x(), O("svg", Sr, Ar)) : (x(), O("svg", Lr, Fr));
|
|
624
624
|
}
|
|
625
625
|
}), Nr = Pe(Mr);
|
|
626
626
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
@@ -639,7 +639,7 @@ var Br = /* @__PURE__ */ se({
|
|
|
639
639
|
]));
|
|
640
640
|
}
|
|
641
641
|
}), Hr = Br;
|
|
642
|
-
const
|
|
642
|
+
const nt = (a, o) => {
|
|
643
643
|
const r = a.__vccOpts || a;
|
|
644
644
|
for (const [t, e] of o)
|
|
645
645
|
r[t] = e;
|
|
@@ -652,8 +652,8 @@ const it = (a, o) => {
|
|
|
652
652
|
const r = ["B", "KB", "MB", "GB", "TB"], t = Math.floor(Math.log(a) / Math.log(1024));
|
|
653
653
|
let e = a / Math.pow(1024, t);
|
|
654
654
|
return (e % 1 === 0 ? e.toFixed(o || 0) : e.toFixed(o)) + " " + r[t];
|
|
655
|
-
},
|
|
656
|
-
const o =
|
|
655
|
+
}, tt = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "", zr = (a) => {
|
|
656
|
+
const o = Ze("loadUrl"), r = K(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = Ze("uploadUrl"), e = K(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = Ze("token"), n = K(() => a.token || (i == null ? void 0 : i.value)), s = Ze("onlyofficeConfig"), l = K(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = Ze("userInfo"), c = K(() => a.userInfo || (u == null ? void 0 : u.value));
|
|
657
657
|
return {
|
|
658
658
|
cLoadUrl: r,
|
|
659
659
|
cUploadUrl: e,
|
|
@@ -742,19 +742,19 @@ const it = (a, o) => {
|
|
|
742
742
|
suffix: "suffix",
|
|
743
743
|
size: "size",
|
|
744
744
|
...o.field
|
|
745
|
-
})), i =
|
|
745
|
+
})), i = Xe({}), n = Xe(!1), s = (h) => {
|
|
746
746
|
var d, g;
|
|
747
747
|
i.value = {
|
|
748
748
|
...h,
|
|
749
749
|
name: h.name,
|
|
750
|
-
url:
|
|
750
|
+
url: tt(
|
|
751
751
|
r.value,
|
|
752
752
|
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)
|
|
753
753
|
)
|
|
754
754
|
}, n.value = !0;
|
|
755
755
|
}, l = (h) => {
|
|
756
756
|
Ln.downloadFile(
|
|
757
|
-
|
|
757
|
+
tt(
|
|
758
758
|
r.value,
|
|
759
759
|
h[e.value.url] || h.attachmentId || h.id
|
|
760
760
|
),
|
|
@@ -770,25 +770,25 @@ const it = (a, o) => {
|
|
|
770
770
|
var p, m, _;
|
|
771
771
|
const g = Ee("tmplate");
|
|
772
772
|
return x(), O(
|
|
773
|
-
|
|
773
|
+
$e,
|
|
774
774
|
null,
|
|
775
775
|
[
|
|
776
776
|
(p = a.list) != null && p.length ? (x(), O(
|
|
777
|
-
|
|
777
|
+
$e,
|
|
778
778
|
{ key: 0 },
|
|
779
779
|
[
|
|
780
780
|
a.simple ? (x(!0), O(
|
|
781
|
-
|
|
781
|
+
$e,
|
|
782
782
|
{ key: 0 },
|
|
783
|
-
|
|
783
|
+
Ut(c.value, (k, w) => (x(), O("div", {
|
|
784
784
|
class: "iking-privew-annex simple",
|
|
785
|
-
onClick: (b) => s(
|
|
785
|
+
onClick: (b) => s(k),
|
|
786
786
|
style: le({ width: u.value })
|
|
787
787
|
}, [
|
|
788
788
|
S(
|
|
789
789
|
"div",
|
|
790
790
|
jr,
|
|
791
|
-
_e(
|
|
791
|
+
_e(k.name),
|
|
792
792
|
1
|
|
793
793
|
/* TEXT */
|
|
794
794
|
),
|
|
@@ -800,7 +800,7 @@ const it = (a, o) => {
|
|
|
800
800
|
[
|
|
801
801
|
X(z(Oe), {
|
|
802
802
|
name: "iksvg_daochu",
|
|
803
|
-
onClick:
|
|
803
|
+
onClick: et((b) => l(k), ["stop"]),
|
|
804
804
|
size: 20,
|
|
805
805
|
active: ""
|
|
806
806
|
}, null, 8, ["onClick"]),
|
|
@@ -810,7 +810,7 @@ const it = (a, o) => {
|
|
|
810
810
|
active: ""
|
|
811
811
|
}),
|
|
812
812
|
pe(h.$slots, "operation", {
|
|
813
|
-
data: { ...
|
|
813
|
+
data: { ...k, findex: w }
|
|
814
814
|
})
|
|
815
815
|
],
|
|
816
816
|
2
|
|
@@ -822,9 +822,9 @@ const it = (a, o) => {
|
|
|
822
822
|
)) : (x(), ce(g, { key: 1 }, {
|
|
823
823
|
default: q(() => [
|
|
824
824
|
(x(!0), O(
|
|
825
|
-
|
|
825
|
+
$e,
|
|
826
826
|
null,
|
|
827
|
-
|
|
827
|
+
Ut(c.value, (k, w) => {
|
|
828
828
|
var b;
|
|
829
829
|
return x(), O(
|
|
830
830
|
"div",
|
|
@@ -839,10 +839,10 @@ const it = (a, o) => {
|
|
|
839
839
|
[
|
|
840
840
|
S("div", {
|
|
841
841
|
class: "file-card",
|
|
842
|
-
onClick: (B) => s(
|
|
842
|
+
onClick: (B) => s(k)
|
|
843
843
|
}, [
|
|
844
844
|
X(z(Nr), {
|
|
845
|
-
file:
|
|
845
|
+
file: k,
|
|
846
846
|
style: le({ height: `${a.iconSize}px` }),
|
|
847
847
|
class: "ikui-w-auto",
|
|
848
848
|
fields: e.value
|
|
@@ -851,14 +851,14 @@ const it = (a, o) => {
|
|
|
851
851
|
S(
|
|
852
852
|
"div",
|
|
853
853
|
$r,
|
|
854
|
-
_e(
|
|
854
|
+
_e(k.name),
|
|
855
855
|
1
|
|
856
856
|
/* TEXT */
|
|
857
857
|
),
|
|
858
858
|
S(
|
|
859
859
|
"div",
|
|
860
860
|
Kr,
|
|
861
|
-
_e(z(Ur)(
|
|
861
|
+
_e(z(Ur)(k.size)),
|
|
862
862
|
1
|
|
863
863
|
/* TEXT */
|
|
864
864
|
)
|
|
@@ -871,7 +871,7 @@ const it = (a, o) => {
|
|
|
871
871
|
[
|
|
872
872
|
X(z(Oe), {
|
|
873
873
|
name: "iksvg_daochu",
|
|
874
|
-
onClick:
|
|
874
|
+
onClick: et((B) => l(k), ["stop"]),
|
|
875
875
|
bg: a.showBg,
|
|
876
876
|
size: a.showBg ? "default" : 20,
|
|
877
877
|
title: "下载"
|
|
@@ -883,7 +883,7 @@ const it = (a, o) => {
|
|
|
883
883
|
title: "预览"
|
|
884
884
|
}, null, 8, ["bg", "size"]),
|
|
885
885
|
pe(h.$slots, "operation", {
|
|
886
|
-
data: { ...
|
|
886
|
+
data: { ...k, findex: w }
|
|
887
887
|
})
|
|
888
888
|
],
|
|
889
889
|
2
|
|
@@ -908,7 +908,7 @@ const it = (a, o) => {
|
|
|
908
908
|
)) : ue("v-if", !0),
|
|
909
909
|
X(z(Zr), {
|
|
910
910
|
show: n.value,
|
|
911
|
-
"onUpdate:show": d[0] || (d[0] = (
|
|
911
|
+
"onUpdate:show": d[0] || (d[0] = (k) => n.value = k),
|
|
912
912
|
loadUrl: z(r),
|
|
913
913
|
file: i.value,
|
|
914
914
|
onlyofficeServer: ((m = z(t)) == null ? void 0 : m.serverUrl) || a.onlyofficeServer,
|
|
@@ -924,7 +924,7 @@ const it = (a, o) => {
|
|
|
924
924
|
});
|
|
925
925
|
const Xr = Pe(Yr), qr = /* @__PURE__ */ se({
|
|
926
926
|
__name: "IkPreviewFileDialog",
|
|
927
|
-
props: /* @__PURE__ */
|
|
927
|
+
props: /* @__PURE__ */ ct({
|
|
928
928
|
file: {
|
|
929
929
|
type: Object,
|
|
930
930
|
default: () => []
|
|
@@ -959,28 +959,28 @@ const Xr = Pe(Yr), qr = /* @__PURE__ */ se({
|
|
|
959
959
|
}),
|
|
960
960
|
emits: ["update:show"],
|
|
961
961
|
setup(a) {
|
|
962
|
-
const o = a, r =
|
|
962
|
+
const o = a, r = Xt(a, "show"), t = K(() => ({
|
|
963
963
|
name: "name",
|
|
964
964
|
url: "url",
|
|
965
965
|
suffix: "suffix",
|
|
966
966
|
size: "fileSize",
|
|
967
967
|
...o.field
|
|
968
|
-
})), e =
|
|
968
|
+
})), e = Xe(null), i = Xe(null), n = bn({
|
|
969
969
|
image: !1,
|
|
970
970
|
office: !1,
|
|
971
971
|
video: !1
|
|
972
972
|
}), s = (u) => {
|
|
973
973
|
var c, h, d, g, p, m, _;
|
|
974
974
|
try {
|
|
975
|
-
const
|
|
975
|
+
const k = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, w = k[t.value.url] || (k == null ? void 0 : k.id) || k.attachmentId, b = (h = k[t.value.suffix] || k.attachmentSuffix) == null ? void 0 : h.toLowerCase(), B = k[t.value.name] || (k == null ? void 0 : k.attachmentName) || (k == null ? void 0 : k.originName);
|
|
976
976
|
if (i.value = {
|
|
977
977
|
...u,
|
|
978
978
|
name: u[t.value.name],
|
|
979
|
-
url:
|
|
980
|
-
}, u &&
|
|
979
|
+
url: tt(o.loadUrl, w)
|
|
980
|
+
}, u && Vt(u, t.value) === "image") {
|
|
981
981
|
n.image = !0;
|
|
982
982
|
return;
|
|
983
|
-
} else if (u &&
|
|
983
|
+
} else if (u && Vt(u, t.value) === "video") {
|
|
984
984
|
n.video = !0;
|
|
985
985
|
return;
|
|
986
986
|
} else if ((((d = o.onlyOfficeConfig) == null ? void 0 : d.accept) || o.onlyOfficeAccept).includes(b)) {
|
|
@@ -998,7 +998,7 @@ const Xr = Pe(Yr), qr = /* @__PURE__ */ se({
|
|
|
998
998
|
document: {
|
|
999
999
|
key: ji(),
|
|
1000
1000
|
title: B,
|
|
1001
|
-
url:
|
|
1001
|
+
url: tt(o.loadUrl, w),
|
|
1002
1002
|
fileType: b,
|
|
1003
1003
|
...((_ = o.onlyOfficeConfig) == null ? void 0 : _.document) || {}
|
|
1004
1004
|
},
|
|
@@ -1006,8 +1006,8 @@ const Xr = Pe(Yr), qr = /* @__PURE__ */ se({
|
|
|
1006
1006
|
};
|
|
1007
1007
|
return;
|
|
1008
1008
|
}
|
|
1009
|
-
} catch (
|
|
1010
|
-
console.info("预览错误: ",
|
|
1009
|
+
} catch (k) {
|
|
1010
|
+
console.info("预览错误: ", k);
|
|
1011
1011
|
}
|
|
1012
1012
|
};
|
|
1013
1013
|
zi([r, o.file], ([u, c]) => {
|
|
@@ -1022,7 +1022,7 @@ const Xr = Pe(Yr), qr = /* @__PURE__ */ se({
|
|
|
1022
1022
|
var d, g, p;
|
|
1023
1023
|
const h = Ee("el-image-viewer");
|
|
1024
1024
|
return r.value ? (x(), O(
|
|
1025
|
-
|
|
1025
|
+
$e,
|
|
1026
1026
|
{ key: 0 },
|
|
1027
1027
|
[
|
|
1028
1028
|
(d = i.value) != null && d.url && n.image ? (x(), ce(h, {
|
|
@@ -1057,7 +1057,7 @@ const Xr = Pe(Yr), qr = /* @__PURE__ */ se({
|
|
|
1057
1057
|
default: q(() => {
|
|
1058
1058
|
var m;
|
|
1059
1059
|
return [
|
|
1060
|
-
X(z(
|
|
1060
|
+
X(z(Cs), {
|
|
1061
1061
|
"config-options": e.value,
|
|
1062
1062
|
"document-server-url": ((m = a.onlyOfficeConfig) == null ? void 0 : m.serverUrl) || a.onlyofficeServer
|
|
1063
1063
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -1110,56 +1110,57 @@ const Zr = Pe(qr), Jr = {
|
|
|
1110
1110
|
warning: { type: Boolean },
|
|
1111
1111
|
width: {}
|
|
1112
1112
|
},
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
const { name: n } = t.value;
|
|
1119
|
-
return /^http?:\/\//.test(n) ? "img" : /i-[^:]+:[^:]+/.test(n) ? "unocss" : n != null && n.startsWith("iksig") ? "iksig" : n != null && n.includes(":") ? "iconify" : n != null && n.startsWith("iksvg") ? "svg" : "i";
|
|
1113
|
+
emits: ["click"],
|
|
1114
|
+
setup(a, { emit: o }) {
|
|
1115
|
+
const r = a, t = K(() => r), e = K(() => {
|
|
1116
|
+
const { name: l } = t.value;
|
|
1117
|
+
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";
|
|
1120
1118
|
}), i = K(() => {
|
|
1121
|
-
const
|
|
1119
|
+
const l = [];
|
|
1122
1120
|
if (t.value.flip)
|
|
1123
1121
|
switch (t.value.flip) {
|
|
1124
1122
|
case "horizontal":
|
|
1125
|
-
|
|
1123
|
+
l.push("rotateY(180deg)");
|
|
1126
1124
|
break;
|
|
1127
1125
|
case "vertical":
|
|
1128
|
-
|
|
1126
|
+
l.push("rotateX(180deg)");
|
|
1129
1127
|
break;
|
|
1130
1128
|
case "both":
|
|
1131
|
-
|
|
1129
|
+
l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
|
|
1132
1130
|
break;
|
|
1133
1131
|
}
|
|
1134
|
-
t.value.rotate &&
|
|
1135
|
-
const
|
|
1132
|
+
t.value.rotate && l.push(`rotate(${t.value.rotate % 360}deg)`);
|
|
1133
|
+
const u = {
|
|
1136
1134
|
...t.value.color && { color: t.value.color },
|
|
1137
1135
|
...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
|
|
1138
|
-
...
|
|
1136
|
+
...l.length && { transform: l.join(" ") },
|
|
1139
1137
|
padding: t.value.showBg || t.value.bg ? t.value.padding : 0,
|
|
1140
1138
|
...t.value.color && e.value !== "iksig" ? {
|
|
1141
1139
|
"--ik-color-icon-dark": t.value.color,
|
|
1142
1140
|
"--ik-color-icon-light": t.value.colorLight || Dn.setOpacity(t.value.color, t.value.opacity)
|
|
1143
1141
|
} : {}
|
|
1144
1142
|
};
|
|
1145
|
-
return t.value.width && (
|
|
1146
|
-
})
|
|
1147
|
-
|
|
1148
|
-
|
|
1143
|
+
return t.value.width && (u.width = u.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), u;
|
|
1144
|
+
}), n = o, s = (l) => {
|
|
1145
|
+
t.value.disabled || n("click", l);
|
|
1146
|
+
};
|
|
1147
|
+
return (l, u) => {
|
|
1148
|
+
const c = Ee("el-tooltip"), h = Ee("el-button");
|
|
1149
1149
|
return t.value.tableIconType === "icon" || !t.value.tableIconType ? (x(), O("span", Jr, [
|
|
1150
1150
|
t.value.notip || !t.value.title ? (x(), O(
|
|
1151
1151
|
"i",
|
|
1152
1152
|
{
|
|
1153
1153
|
key: 0,
|
|
1154
|
+
onClick: et(s, ["stop"]),
|
|
1154
1155
|
class: te(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1155
|
-
[
|
|
1156
|
+
[l.name]: e.value === "unocss",
|
|
1156
1157
|
"show-bg": t.value.showBg || t.value.bg,
|
|
1157
1158
|
default: t.value.size === "default",
|
|
1158
1159
|
small: t.value.size === "small",
|
|
1159
1160
|
big: t.value.size === "big",
|
|
1160
1161
|
warning: t.value.warning || t.value.type === "warning",
|
|
1161
1162
|
primary: t.value.primary || t.value.type === "primary",
|
|
1162
|
-
success:
|
|
1163
|
+
success: l.success || t.value.type === "success",
|
|
1163
1164
|
error: t.value.error || t.value.type === "error",
|
|
1164
1165
|
active: t.value.active,
|
|
1165
1166
|
disabled: t.value.disabled
|
|
@@ -1200,7 +1201,7 @@ const Zr = Pe(qr), Jr = {
|
|
|
1200
1201
|
],
|
|
1201
1202
|
6
|
|
1202
1203
|
/* CLASS, STYLE */
|
|
1203
|
-
)) : (x(), ce(
|
|
1204
|
+
)) : (x(), ce(c, {
|
|
1204
1205
|
key: 1,
|
|
1205
1206
|
content: t.value.title,
|
|
1206
1207
|
placement: "top"
|
|
@@ -1210,17 +1211,18 @@ const Zr = Pe(qr), Jr = {
|
|
|
1210
1211
|
"i",
|
|
1211
1212
|
{
|
|
1212
1213
|
class: te(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1213
|
-
[
|
|
1214
|
+
[l.name]: e.value === "unocss",
|
|
1214
1215
|
"show-bg": t.value.showBg || t.value.bg,
|
|
1215
1216
|
default: t.value.size === "default",
|
|
1216
1217
|
small: t.value.size === "small",
|
|
1217
1218
|
big: t.value.size === "big",
|
|
1218
1219
|
warning: t.value.warning || t.value.type === "warning",
|
|
1219
|
-
primary:
|
|
1220
|
-
success:
|
|
1220
|
+
primary: l.primary || t.value.type === "primary",
|
|
1221
|
+
success: l.success || t.value.type === "success",
|
|
1221
1222
|
error: t.value.error || t.value.type === "error",
|
|
1222
1223
|
active: t.value.active
|
|
1223
1224
|
}]),
|
|
1225
|
+
onClick: et(s, ["stop"]),
|
|
1224
1226
|
style: le(i.value)
|
|
1225
1227
|
},
|
|
1226
1228
|
[
|
|
@@ -1261,12 +1263,13 @@ const Zr = Pe(qr), Jr = {
|
|
|
1261
1263
|
_: 1
|
|
1262
1264
|
/* STABLE */
|
|
1263
1265
|
}, 8, ["content"]))
|
|
1264
|
-
])) : (x(), ce(
|
|
1266
|
+
])) : (x(), ce(h, {
|
|
1265
1267
|
key: 1,
|
|
1266
|
-
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
1268
|
+
type: ["warning", "error"].includes(t.value.type) ? "danger" : "",
|
|
1269
|
+
onClick: et(s, ["stop"])
|
|
1267
1270
|
}, {
|
|
1268
1271
|
default: q(() => [
|
|
1269
|
-
|
|
1272
|
+
Ye(
|
|
1270
1273
|
_e(t.value.title),
|
|
1271
1274
|
1
|
|
1272
1275
|
/* TEXT */
|
|
@@ -1278,7 +1281,7 @@ const Zr = Pe(qr), Jr = {
|
|
|
1278
1281
|
};
|
|
1279
1282
|
}
|
|
1280
1283
|
});
|
|
1281
|
-
const os = /* @__PURE__ */
|
|
1284
|
+
const os = /* @__PURE__ */ nt(ss, [["__scopeId", "data-v-4a1004b9"]]), Oe = Pe(os), as = {
|
|
1282
1285
|
key: 0,
|
|
1283
1286
|
class: "exit-main-page-maximize"
|
|
1284
1287
|
}, ls = /* @__PURE__ */ se({
|
|
@@ -1312,9 +1315,9 @@ const os = /* @__PURE__ */ it(ss, [["__scopeId", "data-v-ec9fdc8a"]]), Oe = Pe(o
|
|
|
1312
1315
|
]));
|
|
1313
1316
|
}
|
|
1314
1317
|
});
|
|
1315
|
-
const us = /* @__PURE__ */
|
|
1318
|
+
const us = /* @__PURE__ */ nt(ls, [["__scopeId", "data-v-79f49df8"]]), cs = { class: "base-header" }, fs = /* @__PURE__ */ se({
|
|
1316
1319
|
__name: "IkBaseDialog",
|
|
1317
|
-
props: /* @__PURE__ */
|
|
1320
|
+
props: /* @__PURE__ */ ct({
|
|
1318
1321
|
title: { default: "" },
|
|
1319
1322
|
cancelText: { default: "取消" },
|
|
1320
1323
|
confirmText: { default: "确认" },
|
|
@@ -1333,7 +1336,7 @@ const us = /* @__PURE__ */ it(ls, [["__scopeId", "data-v-79f49df8"]]), cs = { cl
|
|
|
1333
1336
|
}),
|
|
1334
1337
|
emits: ["update:modelValue"],
|
|
1335
1338
|
setup(a) {
|
|
1336
|
-
const o = a, r =
|
|
1339
|
+
const o = a, r = Xt(a, "modelValue"), t = Xe(o.fullscreen), e = () => {
|
|
1337
1340
|
t.value = !t.value;
|
|
1338
1341
|
}, i = se({
|
|
1339
1342
|
setup() {
|
|
@@ -1345,7 +1348,7 @@ const us = /* @__PURE__ */ it(ls, [["__scopeId", "data-v-79f49df8"]]), cs = { cl
|
|
|
1345
1348
|
});
|
|
1346
1349
|
return (n, s) => {
|
|
1347
1350
|
const l = Ee("el-dialog");
|
|
1348
|
-
return x(), ce(l,
|
|
1351
|
+
return x(), ce(l, zt({
|
|
1349
1352
|
modelValue: r.value,
|
|
1350
1353
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
|
|
1351
1354
|
}, n.$attrs, {
|
|
@@ -1356,7 +1359,7 @@ const us = /* @__PURE__ */ it(ls, [["__scopeId", "data-v-79f49df8"]]), cs = { cl
|
|
|
1356
1359
|
}), Tn({
|
|
1357
1360
|
icon: q(() => [
|
|
1358
1361
|
pe(n.$slots, "title", {}, () => [
|
|
1359
|
-
|
|
1362
|
+
Ye(
|
|
1360
1363
|
_e(n.title),
|
|
1361
1364
|
1
|
|
1362
1365
|
/* TEXT */
|
|
@@ -1366,7 +1369,7 @@ const us = /* @__PURE__ */ it(ls, [["__scopeId", "data-v-79f49df8"]]), cs = { cl
|
|
|
1366
1369
|
header: q(() => [
|
|
1367
1370
|
S("div", cs, [
|
|
1368
1371
|
pe(n.$slots, "header", {}, () => [
|
|
1369
|
-
|
|
1372
|
+
Ye(
|
|
1370
1373
|
_e(n.title),
|
|
1371
1374
|
1
|
|
1372
1375
|
/* TEXT */
|
|
@@ -1400,7 +1403,7 @@ const us = /* @__PURE__ */ it(ls, [["__scopeId", "data-v-79f49df8"]]), cs = { cl
|
|
|
1400
1403
|
});
|
|
1401
1404
|
const hs = Pe(fs);
|
|
1402
1405
|
var ds = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1403
|
-
function
|
|
1406
|
+
function qt(a) {
|
|
1404
1407
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1405
1408
|
}
|
|
1406
1409
|
function gs(a, o, r, t) {
|
|
@@ -1530,7 +1533,7 @@ var vs = function(a, o) {
|
|
|
1530
1533
|
}, e.onerror = function(i) {
|
|
1531
1534
|
e.removeAttribute("loading"), t(i);
|
|
1532
1535
|
}, e.setAttribute("loading", ""), e;
|
|
1533
|
-
},
|
|
1536
|
+
}, Zt = se({
|
|
1534
1537
|
name: "DocumentEditor",
|
|
1535
1538
|
props: {
|
|
1536
1539
|
id: {
|
|
@@ -1703,8 +1706,8 @@ const ms = ["id"];
|
|
|
1703
1706
|
function ys(a, o, r, t, e, i) {
|
|
1704
1707
|
return x(), O("div", { id: a.id }, null, 8, ms);
|
|
1705
1708
|
}
|
|
1706
|
-
|
|
1707
|
-
|
|
1709
|
+
Zt.render = ys;
|
|
1710
|
+
Zt.__file = "src/components/DocumentEditor.vue";
|
|
1708
1711
|
const _s = /* @__PURE__ */ se({
|
|
1709
1712
|
__name: "IkOnlyOffice",
|
|
1710
1713
|
props: {
|
|
@@ -1726,7 +1729,7 @@ const _s = /* @__PURE__ */ se({
|
|
|
1726
1729
|
}
|
|
1727
1730
|
},
|
|
1728
1731
|
setup(a) {
|
|
1729
|
-
const o = a, r =
|
|
1732
|
+
const o = a, r = Xe({
|
|
1730
1733
|
width: "100%",
|
|
1731
1734
|
height: "100%",
|
|
1732
1735
|
...o.configOptions || {},
|
|
@@ -1740,7 +1743,7 @@ const _s = /* @__PURE__ */ se({
|
|
|
1740
1743
|
style: le({ height: o.officeHeight })
|
|
1741
1744
|
},
|
|
1742
1745
|
[
|
|
1743
|
-
X(z(
|
|
1746
|
+
X(z(Zt), {
|
|
1744
1747
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1745
1748
|
ref: "editorRef",
|
|
1746
1749
|
"document-server-url": a.documentServerUrl,
|
|
@@ -1753,7 +1756,7 @@ const _s = /* @__PURE__ */ se({
|
|
|
1753
1756
|
));
|
|
1754
1757
|
}
|
|
1755
1758
|
});
|
|
1756
|
-
const
|
|
1759
|
+
const ks = /* @__PURE__ */ nt(_s, [["__scopeId", "data-v-98d51ef9"]]), Cs = Pe(ks);
|
|
1757
1760
|
function hi(a, o) {
|
|
1758
1761
|
var r = Object.keys(a);
|
|
1759
1762
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1817,17 +1820,17 @@ function P(a, o) {
|
|
|
1817
1820
|
}
|
|
1818
1821
|
}), Object.defineProperty(a, "prototype", {
|
|
1819
1822
|
writable: !1
|
|
1820
|
-
}), o &&
|
|
1823
|
+
}), o && jt(a, o);
|
|
1821
1824
|
}
|
|
1822
1825
|
function A(a) {
|
|
1823
1826
|
return A = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
1824
1827
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
1825
1828
|
}, A(a);
|
|
1826
1829
|
}
|
|
1827
|
-
function
|
|
1828
|
-
return
|
|
1830
|
+
function jt(a, o) {
|
|
1831
|
+
return jt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
1829
1832
|
return t.__proto__ = e, t;
|
|
1830
|
-
},
|
|
1833
|
+
}, jt(a, o);
|
|
1831
1834
|
}
|
|
1832
1835
|
function bs() {
|
|
1833
1836
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
@@ -1846,7 +1849,7 @@ function v(a) {
|
|
|
1846
1849
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1847
1850
|
return a;
|
|
1848
1851
|
}
|
|
1849
|
-
function
|
|
1852
|
+
function Jt(a, o) {
|
|
1850
1853
|
if (o && (typeof o == "object" || typeof o == "function"))
|
|
1851
1854
|
return o;
|
|
1852
1855
|
if (o !== void 0)
|
|
@@ -1862,7 +1865,7 @@ function I(a) {
|
|
|
1862
1865
|
e = Reflect.construct(t, arguments, i);
|
|
1863
1866
|
} else
|
|
1864
1867
|
e = t.apply(this, arguments);
|
|
1865
|
-
return
|
|
1868
|
+
return Jt(this, e);
|
|
1866
1869
|
};
|
|
1867
1870
|
}
|
|
1868
1871
|
function ws(a, o) {
|
|
@@ -1884,7 +1887,7 @@ function fe(a) {
|
|
|
1884
1887
|
}
|
|
1885
1888
|
function Ts(a) {
|
|
1886
1889
|
if (Array.isArray(a))
|
|
1887
|
-
return
|
|
1890
|
+
return Wt(a);
|
|
1888
1891
|
}
|
|
1889
1892
|
function Es(a) {
|
|
1890
1893
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
@@ -1893,15 +1896,15 @@ function Es(a) {
|
|
|
1893
1896
|
function Ss(a, o) {
|
|
1894
1897
|
if (a) {
|
|
1895
1898
|
if (typeof a == "string")
|
|
1896
|
-
return
|
|
1899
|
+
return Wt(a, o);
|
|
1897
1900
|
var r = Object.prototype.toString.call(a).slice(8, -1);
|
|
1898
1901
|
if (r === "Object" && a.constructor && (r = a.constructor.name), r === "Map" || r === "Set")
|
|
1899
1902
|
return Array.from(a);
|
|
1900
1903
|
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
1901
|
-
return
|
|
1904
|
+
return Wt(a, o);
|
|
1902
1905
|
}
|
|
1903
1906
|
}
|
|
1904
|
-
function
|
|
1907
|
+
function Wt(a, o) {
|
|
1905
1908
|
(o == null || o > a.length) && (o = a.length);
|
|
1906
1909
|
for (var r = 0, t = new Array(o); r < o; r++)
|
|
1907
1910
|
t[r] = a[r];
|
|
@@ -1971,9 +1974,9 @@ var $i = { exports: {} };
|
|
|
1971
1974
|
var m = r ? r + u : u;
|
|
1972
1975
|
if (!this._events[m])
|
|
1973
1976
|
return !1;
|
|
1974
|
-
var _ = this._events[m],
|
|
1977
|
+
var _ = this._events[m], k = arguments.length, w, b;
|
|
1975
1978
|
if (_.fn) {
|
|
1976
|
-
switch (_.once && this.removeListener(u, _.fn, void 0, !0),
|
|
1979
|
+
switch (_.once && this.removeListener(u, _.fn, void 0, !0), k) {
|
|
1977
1980
|
case 1:
|
|
1978
1981
|
return _.fn.call(_.context), !0;
|
|
1979
1982
|
case 2:
|
|
@@ -1987,13 +1990,13 @@ var $i = { exports: {} };
|
|
|
1987
1990
|
case 6:
|
|
1988
1991
|
return _.fn.call(_.context, c, h, d, g, p), !0;
|
|
1989
1992
|
}
|
|
1990
|
-
for (b = 1, w = new Array(
|
|
1993
|
+
for (b = 1, w = new Array(k - 1); b < k; b++)
|
|
1991
1994
|
w[b - 1] = arguments[b];
|
|
1992
1995
|
_.fn.apply(_.context, w);
|
|
1993
1996
|
} else {
|
|
1994
1997
|
var B = _.length, M;
|
|
1995
1998
|
for (b = 0; b < B; b++)
|
|
1996
|
-
switch (_[b].once && this.removeListener(u, _[b].fn, void 0, !0),
|
|
1999
|
+
switch (_[b].once && this.removeListener(u, _[b].fn, void 0, !0), k) {
|
|
1997
2000
|
case 1:
|
|
1998
2001
|
_[b].fn.call(_[b].context);
|
|
1999
2002
|
break;
|
|
@@ -2008,7 +2011,7 @@ var $i = { exports: {} };
|
|
|
2008
2011
|
break;
|
|
2009
2012
|
default:
|
|
2010
2013
|
if (!w)
|
|
2011
|
-
for (M = 1, w = new Array(
|
|
2014
|
+
for (M = 1, w = new Array(k - 1); M < k; M++)
|
|
2012
2015
|
w[M - 1] = arguments[M];
|
|
2013
2016
|
_[b].fn.apply(_[b].context, w);
|
|
2014
2017
|
}
|
|
@@ -2028,7 +2031,7 @@ var $i = { exports: {} };
|
|
|
2028
2031
|
if (p.fn)
|
|
2029
2032
|
p.fn === c && (!d || p.once) && (!h || p.context === h) && n(this, g);
|
|
2030
2033
|
else {
|
|
2031
|
-
for (var m = 0, _ = [],
|
|
2034
|
+
for (var m = 0, _ = [], k = p.length; m < k; m++)
|
|
2032
2035
|
(p[m].fn !== c || d && !p[m].once || h && p[m].context !== h) && _.push(p[m]);
|
|
2033
2036
|
_.length ? this._events[g] = _.length === 1 ? _[0] : _ : n(this, g);
|
|
2034
2037
|
}
|
|
@@ -2039,31 +2042,31 @@ var $i = { exports: {} };
|
|
|
2039
2042
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, a.exports = s;
|
|
2040
2043
|
})($i);
|
|
2041
2044
|
var Ki = $i.exports;
|
|
2042
|
-
const Yi = /* @__PURE__ */
|
|
2043
|
-
var Is = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1,
|
|
2045
|
+
const Yi = /* @__PURE__ */ qt(Ki);
|
|
2046
|
+
var Is = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, St = {
|
|
2044
2047
|
info: "color: #525252; background-color: #90ee90;",
|
|
2045
2048
|
error: "color: #525252; background-color: red;",
|
|
2046
2049
|
warn: "color: #525252; background-color: yellow; "
|
|
2047
|
-
},
|
|
2050
|
+
}, xt = "%c[xgplayer]", F = {
|
|
2048
2051
|
config: {
|
|
2049
2052
|
debug: Is ? 3 : 0
|
|
2050
2053
|
},
|
|
2051
2054
|
logInfo: function(o) {
|
|
2052
2055
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
2053
2056
|
e[i - 1] = arguments[i];
|
|
2054
|
-
this.config.debug >= 3 && (r = console).log.apply(r, [
|
|
2057
|
+
this.config.debug >= 3 && (r = console).log.apply(r, [xt, St.info, o].concat(e));
|
|
2055
2058
|
},
|
|
2056
2059
|
logWarn: function(o) {
|
|
2057
2060
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
2058
2061
|
e[i - 1] = arguments[i];
|
|
2059
|
-
this.config.debug >= 1 && (r = console).warn.apply(r, [
|
|
2062
|
+
this.config.debug >= 1 && (r = console).warn.apply(r, [xt, St.warn, o].concat(e));
|
|
2060
2063
|
},
|
|
2061
2064
|
logError: function(o) {
|
|
2062
2065
|
var r;
|
|
2063
2066
|
if (!(this.config.debug < 1)) {
|
|
2064
2067
|
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++)
|
|
2065
2068
|
i[n - 1] = arguments[n];
|
|
2066
|
-
(r = console)[t].apply(r, [
|
|
2069
|
+
(r = console)[t].apply(r, [xt, St.error, o].concat(i));
|
|
2067
2070
|
}
|
|
2068
2071
|
}
|
|
2069
2072
|
};
|
|
@@ -2536,7 +2539,7 @@ function Rs(a, o, r) {
|
|
|
2536
2539
|
return window.cancelAnimationFrame(H);
|
|
2537
2540
|
clearTimeout(H);
|
|
2538
2541
|
}
|
|
2539
|
-
function
|
|
2542
|
+
function k(H) {
|
|
2540
2543
|
return u = H, s = m(B, o), c ? p(H) : n;
|
|
2541
2544
|
}
|
|
2542
2545
|
function w(H) {
|
|
@@ -2570,7 +2573,7 @@ function Rs(a, o, r) {
|
|
|
2570
2573
|
ae[Le] = arguments[Le];
|
|
2571
2574
|
if (t = ae, e = this, l = H, ee) {
|
|
2572
2575
|
if (s === void 0)
|
|
2573
|
-
return
|
|
2576
|
+
return k(l);
|
|
2574
2577
|
if (h)
|
|
2575
2578
|
return s = m(B, o), p(l);
|
|
2576
2579
|
}
|
|
@@ -2703,7 +2706,7 @@ var gi = {
|
|
|
2703
2706
|
return Promise.resolve(r);
|
|
2704
2707
|
}
|
|
2705
2708
|
}
|
|
2706
|
-
},
|
|
2709
|
+
}, Gt = "3.0.18", pi = {
|
|
2707
2710
|
1: "media",
|
|
2708
2711
|
2: "media",
|
|
2709
2712
|
3: "media",
|
|
@@ -2717,7 +2720,7 @@ var gi = {
|
|
|
2717
2720
|
4: 5104,
|
|
2718
2721
|
5: 5105,
|
|
2719
2722
|
6: 5106
|
|
2720
|
-
},
|
|
2723
|
+
}, ft = /* @__PURE__ */ E(
|
|
2721
2724
|
function a(o) {
|
|
2722
2725
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2723
2726
|
errorType: "",
|
|
@@ -2733,7 +2736,7 @@ var gi = {
|
|
|
2733
2736
|
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;
|
|
2734
2737
|
vi[g] && (g = vi[g]);
|
|
2735
2738
|
var p = {
|
|
2736
|
-
playerVersion:
|
|
2739
|
+
playerVersion: Gt,
|
|
2737
2740
|
currentTime: n,
|
|
2738
2741
|
duration: i,
|
|
2739
2742
|
ended: s,
|
|
@@ -2752,14 +2755,14 @@ var gi = {
|
|
|
2752
2755
|
}), p;
|
|
2753
2756
|
} else if (arguments.length > 1) {
|
|
2754
2757
|
for (var m = {
|
|
2755
|
-
playerVersion:
|
|
2758
|
+
playerVersion: Gt,
|
|
2756
2759
|
domain: document.domain
|
|
2757
|
-
}, _ = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"],
|
|
2758
|
-
m[_[
|
|
2760
|
+
}, _ = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], k = 0; k < arguments.length; k++)
|
|
2761
|
+
m[_[k]] = arguments[k];
|
|
2759
2762
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
2760
2763
|
}
|
|
2761
2764
|
}
|
|
2762
|
-
), re = "play",
|
|
2765
|
+
), re = "play", Qt = "playing", Me = "ended", qe = "pause", rt = "error", Ct = "seeking", ke = "seeked", ne = "timeupdate", st = "waiting", ye = "canplay", Bs = "canplaythrough", Ie = "durationchange", qi = "volumechange", Ce = "loadeddata", Hs = "loadedmetadata", Zi = "ratechange", Ji = "progress", ei = "loadstart", Ne = "emptied", Us = "stalled", zs = "suspend", Vs = "abort", js = "bufferedChange", ti = "focus", Qi = "blur", ii = "ready", en = "urlNull", Fe = "autoplay_started", ni = "autoplay_was_prevented", bt = "complete", ht = "replay", ri = "destroy", wt = "urlchange", $t = "download_speed_change", tn = "leaveplayer", nn = "enterplayer", rn = "loading", ve = "fullscreen_change", dt = "cssFullscreen_change", gt = "mini_state_change", si = "definition_change", Ws = "before_definition_change", Kt = "after_definition_change", Gs = "SEI_PARSED", $s = "retry", Se = "video_resize", Yt = "pip_change", sn = "rotate", on = "screenShot", pt = "playnext", an = "shortcut", ln = "xglog", vt = "user_action", Tt = "reset", un = "source_error", cn = "source_success", Ks = "switch_subtitle", fn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], hn = {
|
|
2763
2766
|
STATS_INFO: "stats_info",
|
|
2764
2767
|
STATS_DOWNLOAD: "stats_download",
|
|
2765
2768
|
STATS_RESET: "stats_reset"
|
|
@@ -2767,47 +2770,47 @@ var gi = {
|
|
|
2767
2770
|
const Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2768
2771
|
__proto__: null,
|
|
2769
2772
|
ABORT: Vs,
|
|
2770
|
-
AFTER_DEFINITION_CHANGE:
|
|
2771
|
-
AUTOPLAY_PREVENTED:
|
|
2773
|
+
AFTER_DEFINITION_CHANGE: Kt,
|
|
2774
|
+
AUTOPLAY_PREVENTED: ni,
|
|
2772
2775
|
AUTOPLAY_STARTED: Fe,
|
|
2773
2776
|
BEFORE_DEFINITION_CHANGE: Ws,
|
|
2774
2777
|
BUFFER_CHANGE: js,
|
|
2775
2778
|
CANPLAY: ye,
|
|
2776
2779
|
CANPLAY_THROUGH: Bs,
|
|
2777
|
-
COMPLETE:
|
|
2778
|
-
CSS_FULLSCREEN_CHANGE:
|
|
2779
|
-
DEFINITION_CHANGE:
|
|
2780
|
-
DESTROY:
|
|
2781
|
-
DOWNLOAD_SPEED_CHANGE:
|
|
2780
|
+
COMPLETE: bt,
|
|
2781
|
+
CSS_FULLSCREEN_CHANGE: dt,
|
|
2782
|
+
DEFINITION_CHANGE: si,
|
|
2783
|
+
DESTROY: ri,
|
|
2784
|
+
DOWNLOAD_SPEED_CHANGE: $t,
|
|
2782
2785
|
DURATION_CHANGE: Ie,
|
|
2783
2786
|
EMPTIED: Ne,
|
|
2784
2787
|
ENDED: Me,
|
|
2785
2788
|
ENTER_PLAYER: nn,
|
|
2786
|
-
ERROR:
|
|
2789
|
+
ERROR: rt,
|
|
2787
2790
|
FPS_STUCK: dn,
|
|
2788
2791
|
FULLSCREEN_CHANGE: ve,
|
|
2789
2792
|
LEAVE_PLAYER: tn,
|
|
2790
|
-
LOADED_DATA:
|
|
2793
|
+
LOADED_DATA: Ce,
|
|
2791
2794
|
LOADED_METADATA: Hs,
|
|
2792
2795
|
LOADING: rn,
|
|
2793
|
-
LOAD_START:
|
|
2794
|
-
MINI_STATE_CHANGE:
|
|
2795
|
-
PAUSE:
|
|
2796
|
-
PIP_CHANGE:
|
|
2796
|
+
LOAD_START: ei,
|
|
2797
|
+
MINI_STATE_CHANGE: gt,
|
|
2798
|
+
PAUSE: qe,
|
|
2799
|
+
PIP_CHANGE: Yt,
|
|
2797
2800
|
PLAY: re,
|
|
2798
2801
|
PLAYER_BLUR: Qi,
|
|
2799
|
-
PLAYER_FOCUS:
|
|
2800
|
-
PLAYING:
|
|
2801
|
-
PLAYNEXT:
|
|
2802
|
+
PLAYER_FOCUS: ti,
|
|
2803
|
+
PLAYING: Qt,
|
|
2804
|
+
PLAYNEXT: pt,
|
|
2802
2805
|
PROGRESS: Ji,
|
|
2803
2806
|
RATE_CHANGE: Zi,
|
|
2804
|
-
READY:
|
|
2805
|
-
REPLAY:
|
|
2806
|
-
RESET:
|
|
2807
|
+
READY: ii,
|
|
2808
|
+
REPLAY: ht,
|
|
2809
|
+
RESET: Tt,
|
|
2807
2810
|
RETRY: $s,
|
|
2808
2811
|
ROTATE: sn,
|
|
2809
2812
|
SCREEN_SHOT: on,
|
|
2810
|
-
SEEKED:
|
|
2813
|
+
SEEKED: ke,
|
|
2811
2814
|
SEEKING: Ct,
|
|
2812
2815
|
SEI_PARSED: Gs,
|
|
2813
2816
|
SHORTCUT: an,
|
|
@@ -2818,16 +2821,16 @@ const Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2818
2821
|
SUSPEND: zs,
|
|
2819
2822
|
SWITCH_SUBTITLE: Ks,
|
|
2820
2823
|
TIME_UPDATE: ne,
|
|
2821
|
-
URL_CHANGE:
|
|
2824
|
+
URL_CHANGE: wt,
|
|
2822
2825
|
URL_NULL: en,
|
|
2823
|
-
USER_ACTION:
|
|
2826
|
+
USER_ACTION: vt,
|
|
2824
2827
|
VIDEO_EVENTS: fn,
|
|
2825
2828
|
VIDEO_RESIZE: Se,
|
|
2826
2829
|
VOLUME_CHANGE: qi,
|
|
2827
|
-
WAITING:
|
|
2830
|
+
WAITING: st,
|
|
2828
2831
|
XGLOG: ln
|
|
2829
2832
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2830
|
-
function
|
|
2833
|
+
function Pt(a, o) {
|
|
2831
2834
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
|
|
2832
2835
|
}
|
|
2833
2836
|
function Xs(a, o) {
|
|
@@ -2855,14 +2858,14 @@ function Xs(a, o) {
|
|
|
2855
2858
|
o._rate = o.media && o.media.playbackRate;
|
|
2856
2859
|
}
|
|
2857
2860
|
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]) {
|
|
2858
|
-
var n =
|
|
2861
|
+
var n = Pt.bind(o, a, e);
|
|
2859
2862
|
try {
|
|
2860
2863
|
o.mediaEventMiddleware[a].call(o, e, n);
|
|
2861
2864
|
} catch (s) {
|
|
2862
|
-
throw
|
|
2865
|
+
throw Pt.call(o, a, e), s;
|
|
2863
2866
|
}
|
|
2864
2867
|
} else
|
|
2865
|
-
|
|
2868
|
+
Pt.call(o, a, e);
|
|
2866
2869
|
};
|
|
2867
2870
|
}
|
|
2868
2871
|
var qs = /* @__PURE__ */ function(a) {
|
|
@@ -2961,7 +2964,7 @@ var qs = /* @__PURE__ */ function(a) {
|
|
|
2961
2964
|
l ? l.error(h, g) : n.errorHandler("error", g);
|
|
2962
2965
|
}
|
|
2963
2966
|
var p = pi[4];
|
|
2964
|
-
n.emit(un, new
|
|
2967
|
+
n.emit(un, new ft(n, {
|
|
2965
2968
|
errorType: p,
|
|
2966
2969
|
errorCode: 4,
|
|
2967
2970
|
errorMessage: "sources_load_error",
|
|
@@ -2998,7 +3001,7 @@ var qs = /* @__PURE__ */ function(a) {
|
|
|
2998
3001
|
this.media.currentSrc || (l = "empty_src", n = {
|
|
2999
3002
|
code: 6,
|
|
3000
3003
|
message: l
|
|
3001
|
-
}), this.emit(e, new
|
|
3004
|
+
}), this.emit(e, new ft(this, {
|
|
3002
3005
|
errorType: s,
|
|
3003
3006
|
errorCode: n.code,
|
|
3004
3007
|
errorMessage: n.message || "",
|
|
@@ -3219,7 +3222,7 @@ var qs = /* @__PURE__ */ function(a) {
|
|
|
3219
3222
|
},
|
|
3220
3223
|
set: function(e) {
|
|
3221
3224
|
if (this.media) {
|
|
3222
|
-
if (this.emit(
|
|
3225
|
+
if (this.emit(wt, e), this.emit(st), this._currentTime = 0, this._duration = 0, f.isMSE(this.media)) {
|
|
3223
3226
|
this.onWaiting();
|
|
3224
3227
|
return;
|
|
3225
3228
|
}
|
|
@@ -3362,7 +3365,7 @@ var qs = /* @__PURE__ */ function(a) {
|
|
|
3362
3365
|
}
|
|
3363
3366
|
}]), a;
|
|
3364
3367
|
}(), mi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], yi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], _i = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Re = "data-xgplayerid";
|
|
3365
|
-
function
|
|
3368
|
+
function ot(a, o, r) {
|
|
3366
3369
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
3367
3370
|
e[i - 3] = arguments[i];
|
|
3368
3371
|
var n = o.call.apply(o, [a].concat(e));
|
|
@@ -3372,7 +3375,7 @@ function st(a, o, r) {
|
|
|
3372
3375
|
r.call.apply(r, [a].concat(l));
|
|
3373
3376
|
}) : r.call.apply(r, [a].concat(e)));
|
|
3374
3377
|
}
|
|
3375
|
-
function
|
|
3378
|
+
function mt(a, o) {
|
|
3376
3379
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
3377
3380
|
pre: null,
|
|
3378
3381
|
next: null
|
|
@@ -3390,34 +3393,34 @@ function vt(a, o) {
|
|
|
3390
3393
|
try {
|
|
3391
3394
|
var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
|
|
3392
3395
|
s ? s.then ? s.then(function(l) {
|
|
3393
|
-
l !== !1 &&
|
|
3396
|
+
l !== !1 && ot.apply(void 0, [e, o, r.next].concat(fe(t)));
|
|
3394
3397
|
}).catch(function(l) {
|
|
3395
3398
|
throw l;
|
|
3396
|
-
}) :
|
|
3399
|
+
}) : ot.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && ot.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
3397
3400
|
} catch (l) {
|
|
3398
3401
|
throw l.message = "[pluginName: ".concat(this.pluginName, ":").concat(a, "] >> ").concat(l.message), l;
|
|
3399
3402
|
}
|
|
3400
3403
|
else
|
|
3401
|
-
|
|
3404
|
+
ot.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
3402
3405
|
}).bind(this);
|
|
3403
3406
|
}
|
|
3404
|
-
function
|
|
3407
|
+
function yt(a, o) {
|
|
3405
3408
|
var r = this.__hooks;
|
|
3406
3409
|
if (r)
|
|
3407
3410
|
return r.hasOwnProperty(a) ? (r && (r[a] = o), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
|
|
3408
3411
|
}
|
|
3409
|
-
function
|
|
3412
|
+
function _t(a, o) {
|
|
3410
3413
|
var r = this.__hooks;
|
|
3411
3414
|
r && delete r[a];
|
|
3412
3415
|
}
|
|
3413
|
-
function
|
|
3416
|
+
function ki(a) {
|
|
3414
3417
|
if (!(!this.plugins || !this.plugins[a.toLowerCase()])) {
|
|
3415
3418
|
for (var o = this.plugins[a.toLowerCase()], r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), e = 1; e < r; e++)
|
|
3416
3419
|
t[e - 1] = arguments[e];
|
|
3417
3420
|
return o.useHooks && o.useHooks.apply(o, t);
|
|
3418
3421
|
}
|
|
3419
3422
|
}
|
|
3420
|
-
function
|
|
3423
|
+
function Ci(a) {
|
|
3421
3424
|
if (!(!this.plugins || !this.plugins[a.toLowerCase()])) {
|
|
3422
3425
|
var o = this.plugins[a.toLowerCase()];
|
|
3423
3426
|
if (o) {
|
|
@@ -3459,7 +3462,7 @@ function me(a, o, r) {
|
|
|
3459
3462
|
} else
|
|
3460
3463
|
return r.call.apply(r, [a, a].concat(e));
|
|
3461
3464
|
}
|
|
3462
|
-
function
|
|
3465
|
+
function It(a, o) {
|
|
3463
3466
|
F.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
|
|
3464
3467
|
}
|
|
3465
3468
|
var xe = /* @__PURE__ */ function() {
|
|
@@ -3526,7 +3529,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
3526
3529
|
value: function(r, t) {
|
|
3527
3530
|
var e = this;
|
|
3528
3531
|
if (!r || !t || !this.player) {
|
|
3529
|
-
|
|
3532
|
+
It(this.pluginName, "plugin.on(event, callback)");
|
|
3530
3533
|
return;
|
|
3531
3534
|
}
|
|
3532
3535
|
typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3538,7 +3541,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
3538
3541
|
value: function(r, t) {
|
|
3539
3542
|
var e = this;
|
|
3540
3543
|
if (!r || !t || !this.player) {
|
|
3541
|
-
|
|
3544
|
+
It(this.pluginName, "plugin.once(event, callback)");
|
|
3542
3545
|
return;
|
|
3543
3546
|
}
|
|
3544
3547
|
typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3550,7 +3553,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
3550
3553
|
value: function(r, t) {
|
|
3551
3554
|
var e = this;
|
|
3552
3555
|
if (!r || !t || !this.player) {
|
|
3553
|
-
|
|
3556
|
+
It(this.pluginName, "plugin.off(event, callback)");
|
|
3554
3557
|
return;
|
|
3555
3558
|
}
|
|
3556
3559
|
typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3591,21 +3594,21 @@ var xe = /* @__PURE__ */ function() {
|
|
|
3591
3594
|
}, {
|
|
3592
3595
|
key: "hook",
|
|
3593
3596
|
value: function(r, t) {
|
|
3594
|
-
return
|
|
3597
|
+
return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3595
3598
|
}
|
|
3596
3599
|
}, {
|
|
3597
3600
|
key: "useHooks",
|
|
3598
3601
|
value: function(r, t) {
|
|
3599
3602
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
3600
3603
|
i[n - 2] = arguments[n];
|
|
3601
|
-
return
|
|
3604
|
+
return yt.call.apply(yt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3602
3605
|
}
|
|
3603
3606
|
}, {
|
|
3604
3607
|
key: "removeHooks",
|
|
3605
3608
|
value: function(r, t) {
|
|
3606
3609
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
3607
3610
|
i[n - 2] = arguments[n];
|
|
3608
|
-
return
|
|
3611
|
+
return _t.call.apply(_t, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3609
3612
|
}
|
|
3610
3613
|
}, {
|
|
3611
3614
|
key: "registerPlugin",
|
|
@@ -3660,7 +3663,7 @@ function Qs(a, o) {
|
|
|
3660
3663
|
}
|
|
3661
3664
|
}
|
|
3662
3665
|
var eo = Qs, to = eo;
|
|
3663
|
-
function
|
|
3666
|
+
function At(a, o, r, t, e) {
|
|
3664
3667
|
var i = no.apply(this, arguments);
|
|
3665
3668
|
return a.addEventListener(r, i, e), {
|
|
3666
3669
|
destroy: function() {
|
|
@@ -3669,8 +3672,8 @@ function It(a, o, r, t, e) {
|
|
|
3669
3672
|
};
|
|
3670
3673
|
}
|
|
3671
3674
|
function io(a, o, r, t, e) {
|
|
3672
|
-
return typeof a.addEventListener == "function" ?
|
|
3673
|
-
return
|
|
3675
|
+
return typeof a.addEventListener == "function" ? At.apply(null, arguments) : typeof r == "function" ? At.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
|
|
3676
|
+
return At(i, o, r, t, e);
|
|
3674
3677
|
}));
|
|
3675
3678
|
}
|
|
3676
3679
|
function no(a, o, r, t) {
|
|
@@ -3679,7 +3682,7 @@ function no(a, o, r, t) {
|
|
|
3679
3682
|
};
|
|
3680
3683
|
}
|
|
3681
3684
|
var ro = io;
|
|
3682
|
-
const bi = /* @__PURE__ */
|
|
3685
|
+
const bi = /* @__PURE__ */ qt(ro);
|
|
3683
3686
|
var so = {
|
|
3684
3687
|
CONTROLS: "controls",
|
|
3685
3688
|
ROOT: "root"
|
|
@@ -3697,7 +3700,7 @@ var so = {
|
|
|
3697
3700
|
ICON_DISABLE: "xg-icon-disable",
|
|
3698
3701
|
ICON_HIDE: "xg-icon-hide"
|
|
3699
3702
|
};
|
|
3700
|
-
function
|
|
3703
|
+
function Lt(a) {
|
|
3701
3704
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
3702
3705
|
}
|
|
3703
3706
|
function oo(a, o) {
|
|
@@ -3714,8 +3717,8 @@ function Ti(a, o) {
|
|
|
3714
3717
|
return f.addClass(a, r), Object.keys(t).map(function(n) {
|
|
3715
3718
|
a.setAttribute(n, t[n]);
|
|
3716
3719
|
}), a;
|
|
3717
|
-
if (
|
|
3718
|
-
return t.src =
|
|
3720
|
+
if (Lt(a) || Lt(a.url))
|
|
3721
|
+
return t.src = Lt(a) ? a : a.url || "", i = f.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
|
|
3719
3722
|
if (typeof a == "function")
|
|
3720
3723
|
try {
|
|
3721
3724
|
return i = a(), i instanceof window.Element ? (f.addClass(i, r), Object.keys(t).map(function(n) {
|
|
@@ -4305,7 +4308,7 @@ var $ = {
|
|
|
4305
4308
|
delete this.pluginGroup[r], delete o._pluginInfoId;
|
|
4306
4309
|
}
|
|
4307
4310
|
}
|
|
4308
|
-
},
|
|
4311
|
+
}, C = {
|
|
4309
4312
|
DEFAULT: "xgplayer",
|
|
4310
4313
|
DEFAULT_SKIN: "xgplayer-skin-default",
|
|
4311
4314
|
ENTER: "xgplayer-is-enter",
|
|
@@ -4456,13 +4459,13 @@ var go = function(o, r) {
|
|
|
4456
4459
|
value: function() {
|
|
4457
4460
|
var e = this, i = this.config, n = i.disable, s = i.height, l = i.mode;
|
|
4458
4461
|
if (!n) {
|
|
4459
|
-
l === "flex" && this.player.addClass(
|
|
4462
|
+
l === "flex" && this.player.addClass(C.FLEX_CONTROLS);
|
|
4460
4463
|
var u = {
|
|
4461
4464
|
height: "".concat(s, "px")
|
|
4462
4465
|
};
|
|
4463
4466
|
Object.keys(u).map(function(h) {
|
|
4464
4467
|
e.root.style[h] = u[h];
|
|
4465
|
-
}), 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(
|
|
4468
|
+
}), 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(gt, function(h) {
|
|
4466
4469
|
h ? f.addClass(e.root, "mini-controls") : f.removeClass(e.root, "mini-controls");
|
|
4467
4470
|
});
|
|
4468
4471
|
var c = this.playerConfig.isMobileSimulateMode;
|
|
@@ -4493,12 +4496,12 @@ var go = function(o, r) {
|
|
|
4493
4496
|
}, {
|
|
4494
4497
|
key: "recoverAutoHide",
|
|
4495
4498
|
value: function() {
|
|
4496
|
-
this.config.autoHide && f.addClass(this.root,
|
|
4499
|
+
this.config.autoHide && f.addClass(this.root, C.CONTROLS_AUTOHIDE);
|
|
4497
4500
|
}
|
|
4498
4501
|
}, {
|
|
4499
4502
|
key: "pauseAutoHide",
|
|
4500
4503
|
value: function() {
|
|
4501
|
-
f.removeClass(this.root,
|
|
4504
|
+
f.removeClass(this.root, C.CONTROLS_AUTOHIDE);
|
|
4502
4505
|
}
|
|
4503
4506
|
}, {
|
|
4504
4507
|
key: "show",
|
|
@@ -4559,7 +4562,7 @@ var go = function(o, r) {
|
|
|
4559
4562
|
"flex-controls": i === "flex"
|
|
4560
4563
|
}, {
|
|
4561
4564
|
"bottom-controls": i === "bottom"
|
|
4562
|
-
}, y({},
|
|
4565
|
+
}, y({}, C.CONTROLS_AUTOHIDE, n), {
|
|
4563
4566
|
"xgplayer-controls-initshow": s || !n
|
|
4564
4567
|
});
|
|
4565
4568
|
return '<xg-controls class="'.concat(u, `" unselectable="on">
|
|
@@ -4669,14 +4672,14 @@ var go = function(o, r) {
|
|
|
4669
4672
|
langKeys: [],
|
|
4670
4673
|
textKeys: []
|
|
4671
4674
|
};
|
|
4672
|
-
function
|
|
4675
|
+
function it(a, o) {
|
|
4673
4676
|
return Object.keys(o).forEach(function(r) {
|
|
4674
4677
|
var t = f.typeOf(o[r]), e = f.typeOf(a[r]);
|
|
4675
4678
|
if (t === "Array") {
|
|
4676
4679
|
var i;
|
|
4677
4680
|
e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, fe(o[r]));
|
|
4678
4681
|
} else
|
|
4679
|
-
t === "Object" ? (e !== "Object" && (a[r] = {}),
|
|
4682
|
+
t === "Object" ? (e !== "Object" && (a[r] = {}), it(a[r], o[r])) : a[r] = o[r];
|
|
4680
4683
|
}), a;
|
|
4681
4684
|
}
|
|
4682
4685
|
function vn() {
|
|
@@ -4696,15 +4699,15 @@ function mo(a, o) {
|
|
|
4696
4699
|
}) : r = a;
|
|
4697
4700
|
var t = o, e = t.lang;
|
|
4698
4701
|
r.map(function(i) {
|
|
4699
|
-
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ?
|
|
4702
|
+
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? it(e[i.LANG] || {}, i.TEXT || {}) : oi(i, o);
|
|
4700
4703
|
}), vn();
|
|
4701
4704
|
}
|
|
4702
4705
|
}
|
|
4703
|
-
function
|
|
4706
|
+
function oi(a, o) {
|
|
4704
4707
|
var r = a.LANG;
|
|
4705
4708
|
if (o || (o = ie), !!o.lang) {
|
|
4706
4709
|
var t = a.TEXT || {};
|
|
4707
|
-
r === "zh" && (r = "zh-cn"), o.lang[r] ?
|
|
4710
|
+
r === "zh" && (r = "zh-cn"), o.lang[r] ? it(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), vn();
|
|
4708
4711
|
}
|
|
4709
4712
|
}
|
|
4710
4713
|
function yo(a) {
|
|
@@ -4714,10 +4717,10 @@ function yo(a) {
|
|
|
4714
4717
|
textKeys: {},
|
|
4715
4718
|
pId: a
|
|
4716
4719
|
};
|
|
4717
|
-
return
|
|
4720
|
+
return it(r.lang, ie.lang), (o = r.langKeys).push.apply(o, fe(ie.langKeys)), it(r.textKeys, ie.textKeys), r;
|
|
4718
4721
|
}
|
|
4719
|
-
|
|
4720
|
-
var
|
|
4722
|
+
oi(vo);
|
|
4723
|
+
var Ke = {
|
|
4721
4724
|
get textKeys() {
|
|
4722
4725
|
return ie.textKeys;
|
|
4723
4726
|
},
|
|
@@ -4731,7 +4734,7 @@ var Ye = {
|
|
|
4731
4734
|
}), ie.lang["zh-cn"] && (a.zh = ie.lang["zh-cn"] || {}), a;
|
|
4732
4735
|
},
|
|
4733
4736
|
extend: mo,
|
|
4734
|
-
use:
|
|
4737
|
+
use: oi,
|
|
4735
4738
|
init: yo
|
|
4736
4739
|
}, N = {
|
|
4737
4740
|
INITIAL: 1,
|
|
@@ -4742,7 +4745,7 @@ var Ye = {
|
|
|
4742
4745
|
RUNNING: 6,
|
|
4743
4746
|
ENDED: 7,
|
|
4744
4747
|
DESTROYED: 8
|
|
4745
|
-
}, Si = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], Q = {},
|
|
4748
|
+
}, Si = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], Q = {}, Dt = null, mn = /* @__PURE__ */ function(a) {
|
|
4746
4749
|
P(r, a);
|
|
4747
4750
|
var o = I(r);
|
|
4748
4751
|
function r() {
|
|
@@ -4825,7 +4828,7 @@ var Ye = {
|
|
|
4825
4828
|
}], [{
|
|
4826
4829
|
key: "getInstance",
|
|
4827
4830
|
value: function() {
|
|
4828
|
-
return
|
|
4831
|
+
return Dt || (Dt = new r()), Dt;
|
|
4829
4832
|
}
|
|
4830
4833
|
}]), r;
|
|
4831
4834
|
}(Ki.EventEmitter);
|
|
@@ -4837,7 +4840,7 @@ function _o(a) {
|
|
|
4837
4840
|
}
|
|
4838
4841
|
return null;
|
|
4839
4842
|
}
|
|
4840
|
-
var
|
|
4843
|
+
var ko = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Et = /* @__PURE__ */ function(a) {
|
|
4841
4844
|
P(r, a);
|
|
4842
4845
|
var o = I(r);
|
|
4843
4846
|
function r(t) {
|
|
@@ -4847,15 +4850,15 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
4847
4850
|
e = o.call(this, i), y(v(e), "canPlayFunc", function() {
|
|
4848
4851
|
if (e.config) {
|
|
4849
4852
|
var p = e.config, m = p.autoplay, _ = p.defaultPlaybackRate;
|
|
4850
|
-
F.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = _, (m || e._useAutoplay) && e.mediaPlay(), e.off(ye, e.canPlayFunc), e.removeClass(
|
|
4853
|
+
F.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = _, (m || e._useAutoplay) && e.mediaPlay(), e.off(ye, e.canPlayFunc), e.removeClass(C.ENTER);
|
|
4851
4854
|
}
|
|
4852
4855
|
}), y(v(e), "onFullscreenChange", function(p, m) {
|
|
4853
4856
|
var _ = function() {
|
|
4854
4857
|
f.setTimeout(v(e), function() {
|
|
4855
4858
|
e.resize();
|
|
4856
4859
|
}, 100);
|
|
4857
|
-
},
|
|
4858
|
-
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(
|
|
4860
|
+
}, k = f.getFullScreenEl();
|
|
4861
|
+
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(vt, {
|
|
4859
4862
|
eventType: "system",
|
|
4860
4863
|
action: "switch_fullscreen",
|
|
4861
4864
|
pluginName: "player",
|
|
@@ -4867,19 +4870,19 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
4867
4870
|
to: !1
|
|
4868
4871
|
}]
|
|
4869
4872
|
});
|
|
4870
|
-
var w = Ms(
|
|
4871
|
-
if (m ||
|
|
4872
|
-
_(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root,
|
|
4873
|
+
var w = Ms(k, e.playerId, Re);
|
|
4874
|
+
if (m || k && (k === e._fullscreenEl || w))
|
|
4875
|
+
_(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(ve, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
4873
4876
|
else if (e.fullscreen) {
|
|
4874
4877
|
_();
|
|
4875
4878
|
var b = v(e), B = b._fullScreenOffset, M = b.config;
|
|
4876
4879
|
if (M.needFullscreenScroll ? (window.scrollTo(B.left, B.top), f.setTimeout(v(e), function() {
|
|
4877
4880
|
e.fullscreen = !1, e._fullScreenOffset = null;
|
|
4878
4881
|
}, 100)) : (!e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !1, e._fullScreenOffset = null), e.cssfullscreen)
|
|
4879
|
-
e.removeClass(
|
|
4882
|
+
e.removeClass(C.FULLSCREEN);
|
|
4880
4883
|
else {
|
|
4881
4884
|
var V = e._fullscreenEl;
|
|
4882
|
-
!V && (e.root.contains(p.target) || p.target === e.root) && (V = p.target), e.recoverFullStyle(e.root, V,
|
|
4885
|
+
!V && (e.root.contains(p.target) || p.target === e.root) && (V = p.target), e.recoverFullStyle(e.root, V, C.FULLSCREEN);
|
|
4883
4886
|
}
|
|
4884
4887
|
e._fullscreenEl = null, e.emit(ve, !1);
|
|
4885
4888
|
}
|
|
@@ -4887,7 +4890,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
4887
4890
|
e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
|
|
4888
4891
|
}), y(v(e), "_onWebkitendfullscreen", function(p) {
|
|
4889
4892
|
e.onFullscreenChange(p, !1);
|
|
4890
|
-
}), gn(v(e),
|
|
4893
|
+
}), gn(v(e), ko), e.config = i, e._pluginInfoId = f.generateSessionId(), As(v(e));
|
|
4891
4894
|
var n = e.constructor.defaultPreset;
|
|
4892
4895
|
if (e.config.presets.length) {
|
|
4893
4896
|
var s = e.config.presets.indexOf("default");
|
|
@@ -4916,12 +4919,12 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
4916
4919
|
}, e._offsetInfo = {
|
|
4917
4920
|
currentTime: -1,
|
|
4918
4921
|
duration: 0
|
|
4919
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n =
|
|
4922
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ke.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new Zs(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
4920
4923
|
isActiveLocked: !1
|
|
4921
4924
|
}, e.instManager = be;
|
|
4922
4925
|
var l = e._initDOM();
|
|
4923
4926
|
if (!l)
|
|
4924
|
-
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))),
|
|
4927
|
+
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), Jt(e);
|
|
4925
4928
|
var u = e.config, c = u.definition, h = c === void 0 ? {} : c, d = u.url;
|
|
4926
4929
|
if (!d && h.list && h.list.length > 0) {
|
|
4927
4930
|
var g = h.list.find(function(p) {
|
|
@@ -4930,7 +4933,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
4930
4933
|
g || (h.defaultDefinition = h.list[0].definition, g = h.list[0]), e.config.url = g.url, e.curDefinition = g;
|
|
4931
4934
|
}
|
|
4932
4935
|
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), $.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(N.READY), f.setTimeout(v(e), function() {
|
|
4933
|
-
e.emit(
|
|
4936
|
+
e.emit(ii);
|
|
4934
4937
|
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < N.ATTACHED) && e.start(), e;
|
|
4935
4938
|
}
|
|
4936
4939
|
return E(r, [{
|
|
@@ -4942,7 +4945,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
4942
4945
|
if (n && n.nodeType === 1)
|
|
4943
4946
|
this.root = n;
|
|
4944
4947
|
else
|
|
4945
|
-
return this.emit(
|
|
4948
|
+
return this.emit(rt, new ft("use", this.config.vid, {
|
|
4946
4949
|
line: 32,
|
|
4947
4950
|
handle: "Constructor",
|
|
4948
4951
|
msg: "container id can't be empty"
|
|
@@ -4964,17 +4967,17 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
4964
4967
|
this.controls = d;
|
|
4965
4968
|
}
|
|
4966
4969
|
var g = this.config.isMobileSimulateMode === "mobile" ? "mobile" : R.device;
|
|
4967
|
-
if (this.addClass("".concat(
|
|
4970
|
+
if (this.addClass("".concat(C.DEFAULT, " ").concat(C.INACTIVE, " xgplayer-").concat(g, " ").concat(this.config.controls ? "" : C.NO_CONTROLS)), this.config.autoplay ? this.addClass(C.ENTER) : this.addClass(C.NO_START), this.config.fluid) {
|
|
4968
4971
|
var p = this.config, m = p.width, _ = p.height;
|
|
4969
4972
|
(typeof m != "number" || typeof _ != "number") && (m = 600, _ = 337.5);
|
|
4970
|
-
var
|
|
4973
|
+
var k = {
|
|
4971
4974
|
width: "100%",
|
|
4972
4975
|
height: "0",
|
|
4973
4976
|
"max-width": "100%",
|
|
4974
4977
|
"padding-top": "".concat(_ * 100 / m, "%")
|
|
4975
4978
|
};
|
|
4976
|
-
Object.keys(
|
|
4977
|
-
i.root.style[D] =
|
|
4979
|
+
Object.keys(k).forEach(function(D) {
|
|
4980
|
+
i.root.style[D] = k[D];
|
|
4978
4981
|
});
|
|
4979
4982
|
} else
|
|
4980
4983
|
["width", "height"].forEach(function(D) {
|
|
@@ -4998,7 +5001,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
4998
5001
|
e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
|
|
4999
5002
|
}), mi.forEach(function(i) {
|
|
5000
5003
|
document && document.addEventListener(i, e.onFullscreenChange);
|
|
5001
|
-
}), R.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(
|
|
5004
|
+
}), R.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Ce, this.resize), this.playFunc = function() {
|
|
5002
5005
|
e.config.closeFocusVideoFocus || e.media.focus();
|
|
5003
5006
|
}, this.once(re, this.playFunc);
|
|
5004
5007
|
}
|
|
@@ -5027,7 +5030,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5027
5030
|
F.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (R.os.isIpad || R.os.isPhone) && this.mediaPlay());
|
|
5028
5031
|
var l = this.config.startTime;
|
|
5029
5032
|
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(ye, this.canPlayFunc), (!this.hasStart || this.state < N.ATTACHED) && $.afterInit(this), this.hasStart = !0, this.setState(N.ATTACHED), f.setTimeout(this, function() {
|
|
5030
|
-
i.emit(
|
|
5033
|
+
i.emit(bt);
|
|
5031
5034
|
}, 0);
|
|
5032
5035
|
}
|
|
5033
5036
|
}
|
|
@@ -5037,7 +5040,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5037
5040
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
5038
5041
|
this._loadingPlugins = [];
|
|
5039
5042
|
var n = this.config.ignores || [], s = this.config.plugins || [], l = this.config.i18n || [];
|
|
5040
|
-
i &&
|
|
5043
|
+
i && Ke.extend(l, this.__i18n);
|
|
5041
5044
|
var u = n.join("||").toLowerCase().split("||"), c = this.plugins;
|
|
5042
5045
|
s.forEach(function(h) {
|
|
5043
5046
|
try {
|
|
@@ -5081,7 +5084,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5081
5084
|
this.leftBar || (this.leftBar = f.createPositionBar("xg-left-bar", this.root)), i = this.leftBar;
|
|
5082
5085
|
break;
|
|
5083
5086
|
case j.ROOT_TOP:
|
|
5084
|
-
this.topBar || (this.topBar = f.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && f.addClass(this.topBar,
|
|
5087
|
+
this.topBar || (this.topBar = f.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && f.addClass(this.topBar, C.TOP_BAR_AUTOHIDE)), i = this.topBar;
|
|
5085
5088
|
break;
|
|
5086
5089
|
default:
|
|
5087
5090
|
i = this.innerContainer || this.root;
|
|
@@ -5209,22 +5212,22 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5209
5212
|
value: function() {
|
|
5210
5213
|
var e = this;
|
|
5211
5214
|
if (!this.hasStart && this.state < N.ATTACHED) {
|
|
5212
|
-
this.removeClass(
|
|
5215
|
+
this.removeClass(C.NO_START), this.addClass(C.ENTER), this.start(), this._useAutoplay = !0;
|
|
5213
5216
|
return;
|
|
5214
5217
|
}
|
|
5215
|
-
this.state < N.RUNNING && (this.removeClass(
|
|
5218
|
+
this.state < N.RUNNING && (this.removeClass(C.NO_START), !this.isCanplay && this.addClass(C.ENTER));
|
|
5216
5219
|
var i = L(A(r.prototype), "play", this).call(this);
|
|
5217
5220
|
return i !== void 0 && i && i.then ? i.then(function() {
|
|
5218
|
-
e.removeClass(
|
|
5221
|
+
e.removeClass(C.NOT_ALLOW_AUTOPLAY), e.addClass(C.PLAYING), e.state < N.RUNNING && (F.logInfo(">>>>playPromise.then"), e.setState(N.RUNNING), e.emit(Fe));
|
|
5219
5222
|
}).catch(function(n) {
|
|
5220
5223
|
if (F.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
|
|
5221
|
-
e.onError(), e.removeClass(
|
|
5224
|
+
e.onError(), e.removeClass(C.ENTER);
|
|
5222
5225
|
return;
|
|
5223
5226
|
}
|
|
5224
5227
|
n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
|
|
5225
|
-
e._errorTimer = null, e.emit(
|
|
5228
|
+
e._errorTimer = null, e.emit(ni), e.addClass(C.NOT_ALLOW_AUTOPLAY), e.removeClass(C.ENTER), e.pause(), e.setState(N.NOTALLOW);
|
|
5226
5229
|
}, 0));
|
|
5227
|
-
}) : (F.logWarn("video.play not return promise"), this.state < N.RUNNING && (this.setState(N.RUNNING), this.removeClass(
|
|
5230
|
+
}) : (F.logWarn("video.play not return promise"), this.state < N.RUNNING && (this.setState(N.RUNNING), this.removeClass(C.NOT_ALLOW_AUTOPLAY), this.removeClass(C.NO_START), this.removeClass(C.ENTER), this.addClass(C.PLAYING), this.emit(Fe))), i;
|
|
5228
5231
|
}
|
|
5229
5232
|
}, {
|
|
5230
5233
|
key: "mediaPause",
|
|
@@ -5240,7 +5243,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5240
5243
|
key: "play",
|
|
5241
5244
|
value: function() {
|
|
5242
5245
|
var e = this;
|
|
5243
|
-
return this.removeClass(
|
|
5246
|
+
return this.removeClass(C.PAUSED), me(this, "play", function() {
|
|
5244
5247
|
return e.mediaPlay();
|
|
5245
5248
|
});
|
|
5246
5249
|
}
|
|
@@ -5258,8 +5261,8 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5258
5261
|
var n = this;
|
|
5259
5262
|
if (!(!this.media || Number.isNaN(Number(e)) || !this.hasStart)) {
|
|
5260
5263
|
var s = this.config, l = s.isSeekedPlay, u = s.seekedStatus, c = i || (l ? "play" : u);
|
|
5261
|
-
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(
|
|
5262
|
-
switch (n.removeClass(
|
|
5264
|
+
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(ke, this._onceSeekCanplay), this._onceSeekCanplay = function() {
|
|
5265
|
+
switch (n.removeClass(C.ENTER), n.isSeeking = !1, c) {
|
|
5263
5266
|
case "play":
|
|
5264
5267
|
n.play();
|
|
5265
5268
|
break;
|
|
@@ -5270,7 +5273,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5270
5273
|
n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
|
|
5271
5274
|
}
|
|
5272
5275
|
n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
|
|
5273
|
-
}, this.once(
|
|
5276
|
+
}, this.once(ke, this._onceSeekCanplay), this.state < N.RUNNING ? (this.removeClass(C.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
|
|
5274
5277
|
}
|
|
5275
5278
|
}
|
|
5276
5279
|
}, {
|
|
@@ -5287,7 +5290,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5287
5290
|
var n = this, s = this.config.definition;
|
|
5288
5291
|
if (Array.isArray(s == null ? void 0 : s.list) && s.list.forEach(function(u) {
|
|
5289
5292
|
(e == null ? void 0 : e.definition) === u.definition && (n.curDefinition = u);
|
|
5290
|
-
}), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(
|
|
5293
|
+
}), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(si, {
|
|
5291
5294
|
from: i,
|
|
5292
5295
|
to: e
|
|
5293
5296
|
}), !this.hasStart) {
|
|
@@ -5298,11 +5301,11 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5298
5301
|
seamless: s.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
|
|
5299
5302
|
}, e));
|
|
5300
5303
|
l && l.then ? l.then(function() {
|
|
5301
|
-
n.emit(
|
|
5304
|
+
n.emit(Kt, {
|
|
5302
5305
|
from: i,
|
|
5303
5306
|
to: e
|
|
5304
5307
|
});
|
|
5305
|
-
}) : this.emit(
|
|
5308
|
+
}) : this.emit(Kt, {
|
|
5306
5309
|
from: i,
|
|
5307
5310
|
to: e
|
|
5308
5311
|
});
|
|
@@ -5312,15 +5315,15 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5312
5315
|
value: function() {
|
|
5313
5316
|
this.load(), this.reloadFunc = function() {
|
|
5314
5317
|
this.play();
|
|
5315
|
-
}, this.once(
|
|
5318
|
+
}, this.once(Ce, this.reloadFunc);
|
|
5316
5319
|
}
|
|
5317
5320
|
}, {
|
|
5318
5321
|
key: "resetState",
|
|
5319
5322
|
value: function() {
|
|
5320
|
-
var e = this, i =
|
|
5323
|
+
var e = this, i = C.NOT_ALLOW_AUTOPLAY, n = C.PLAYING, s = C.NO_START, l = C.PAUSED, u = C.REPLAY, c = C.ENTER, h = C.ENDED, d = C.ERROR, g = C.LOADING, p = [i, n, s, l, u, c, h, d, g];
|
|
5321
5324
|
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) {
|
|
5322
5325
|
e.removeClass(m);
|
|
5323
|
-
}), this.addClass(
|
|
5326
|
+
}), this.addClass(C.NO_START), this.emit(Tt);
|
|
5324
5327
|
}
|
|
5325
5328
|
}, {
|
|
5326
5329
|
key: "reset",
|
|
@@ -5342,7 +5345,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5342
5345
|
value: function() {
|
|
5343
5346
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
5344
5347
|
if (!(!s || !l)) {
|
|
5345
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Re), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(
|
|
5348
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Re), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(ri), (e = be) === null || e === void 0 || e.remove(this), $.destroy(this), pn(this), L(A(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
5346
5349
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
5347
5350
|
n.removeChild(u[c]);
|
|
5348
5351
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -5360,20 +5363,20 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5360
5363
|
key: "replay",
|
|
5361
5364
|
value: function() {
|
|
5362
5365
|
var e = this;
|
|
5363
|
-
this.removeClass(
|
|
5364
|
-
e.once(
|
|
5366
|
+
this.removeClass(C.ENDED), this.currentTime = 0, this.isSeeking = !1, me(this, "replay", function() {
|
|
5367
|
+
e.once(ke, function() {
|
|
5365
5368
|
var i = e.mediaPlay();
|
|
5366
5369
|
i && i.catch && i.catch(function(n) {
|
|
5367
5370
|
console.log(n);
|
|
5368
5371
|
});
|
|
5369
|
-
}), e.emit(
|
|
5372
|
+
}), e.emit(ht), e.onPlay();
|
|
5370
5373
|
});
|
|
5371
5374
|
}
|
|
5372
5375
|
}, {
|
|
5373
5376
|
key: "retry",
|
|
5374
5377
|
value: function() {
|
|
5375
5378
|
var e = this;
|
|
5376
|
-
this.removeClass(
|
|
5379
|
+
this.removeClass(C.ERROR), this.addClass(C.LOADING), me(this, "retry", function() {
|
|
5377
5380
|
var i = e.currentTime, n = e.config.url, s = f.isMSE(e.media) ? {
|
|
5378
5381
|
url: n
|
|
5379
5382
|
} : e._preProcessUrl(n);
|
|
@@ -5385,12 +5388,12 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5385
5388
|
}, {
|
|
5386
5389
|
key: "changeFullStyle",
|
|
5387
5390
|
value: function(e, i, n, s) {
|
|
5388
|
-
e && (s || (s =
|
|
5391
|
+
e && (s || (s = C.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = f.filterStyleFromText(e)), f.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = f.filterStyleFromText(i), f.addClass(i, s), i.setAttribute(Re, this.playerId)));
|
|
5389
5392
|
}
|
|
5390
5393
|
}, {
|
|
5391
5394
|
key: "recoverFullStyle",
|
|
5392
5395
|
value: function(e, i, n, s) {
|
|
5393
|
-
s || (s =
|
|
5396
|
+
s || (s = C.PARENT_FULLSCREEN), this._orgCss && (f.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), f.removeClass(e, n), i && i !== e && this._orgPCss && (f.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", f.removeClass(i, s), i.removeAttribute(Re));
|
|
5394
5397
|
}
|
|
5395
5398
|
}, {
|
|
5396
5399
|
key: "getFullscreen",
|
|
@@ -5442,36 +5445,36 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5442
5445
|
value: function() {
|
|
5443
5446
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
|
|
5444
5447
|
this.isRotateFullscreen ? this.exitRotateFullscreen() : this.fullscreen && this.exitFullscreen();
|
|
5445
|
-
var i = e ? "".concat(
|
|
5448
|
+
var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.CSS_FULLSCREEN) : C.CSS_FULLSCREEN;
|
|
5446
5449
|
this.changeFullStyle(this.root, e, i);
|
|
5447
5450
|
var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
|
|
5448
|
-
l && (this.fullscreen = !0, this.emit(ve, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(
|
|
5451
|
+
l && (this.fullscreen = !0, this.emit(ve, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(dt, !0);
|
|
5449
5452
|
}
|
|
5450
5453
|
}, {
|
|
5451
5454
|
key: "exitCssFullscreen",
|
|
5452
5455
|
value: function() {
|
|
5453
|
-
var e = this._cssfullscreenEl ? "".concat(
|
|
5456
|
+
var e = this._cssfullscreenEl ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.CSS_FULLSCREEN) : C.CSS_FULLSCREEN;
|
|
5454
5457
|
if (!this.fullscreen)
|
|
5455
5458
|
this.recoverFullStyle(this.root, this._cssfullscreenEl, e);
|
|
5456
5459
|
else {
|
|
5457
5460
|
var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
|
|
5458
5461
|
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(ve, !1)) : this.removeClass(e);
|
|
5459
5462
|
}
|
|
5460
|
-
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(
|
|
5463
|
+
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(dt, !1);
|
|
5461
5464
|
}
|
|
5462
5465
|
}, {
|
|
5463
5466
|
key: "getRotateFullscreen",
|
|
5464
5467
|
value: function() {
|
|
5465
5468
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
|
|
5466
5469
|
this.cssfullscreen && this.exitCssFullscreen(e);
|
|
5467
|
-
var i = e ? "".concat(
|
|
5468
|
-
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i,
|
|
5470
|
+
var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.ROTATE_FULLSCREEN) : C.ROTATE_FULLSCREEN;
|
|
5471
|
+
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style"), this.root.style.width = "".concat(window.innerHeight, "px"), this.emit(ve, !0);
|
|
5469
5472
|
}
|
|
5470
5473
|
}, {
|
|
5471
5474
|
key: "exitRotateFullscreen",
|
|
5472
5475
|
value: function(e) {
|
|
5473
|
-
var i = this._fullscreenEl !== this.root ? "".concat(
|
|
5474
|
-
this.recoverFullStyle(this.root, this._fullscreenEl, i,
|
|
5476
|
+
var i = this._fullscreenEl !== this.root ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.ROTATE_FULLSCREEN) : C.ROTATE_FULLSCREEN;
|
|
5477
|
+
this.recoverFullStyle(this.root, this._fullscreenEl, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(ve, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
|
|
5475
5478
|
}
|
|
5476
5479
|
}, {
|
|
5477
5480
|
key: "setRotateDeg",
|
|
@@ -5489,7 +5492,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5489
5492
|
this.onFocus(e);
|
|
5490
5493
|
return;
|
|
5491
5494
|
}
|
|
5492
|
-
this.emit(
|
|
5495
|
+
this.emit(ti, W({
|
|
5493
5496
|
paused: this.paused,
|
|
5494
5497
|
ended: this.ended
|
|
5495
5498
|
}, e));
|
|
@@ -5516,7 +5519,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5516
5519
|
autoHide: !0,
|
|
5517
5520
|
delay: 3e3
|
|
5518
5521
|
}, n = this.innerStates;
|
|
5519
|
-
if (this.isActive = !0, this.removeClass(
|
|
5522
|
+
if (this.isActive = !0, this.removeClass(C.INACTIVE), this._clearUserTimer(), i.isLock !== void 0 && (n.isActiveLocked = i.isLock), i.autoHide === !1 || i.isLock === !0 || n.isActiveLocked) {
|
|
5520
5523
|
this._clearUserTimer();
|
|
5521
5524
|
return;
|
|
5522
5525
|
}
|
|
@@ -5531,7 +5534,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5531
5534
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = e.ignorePaused, n = i === void 0 ? !1 : i;
|
|
5532
5535
|
if (!this.innerStates.isActiveLocked) {
|
|
5533
5536
|
var s = this.config.closePauseVideoFocus;
|
|
5534
|
-
this.isActive = !1, (n || s || !this.paused && !this.ended) && this.addClass(
|
|
5537
|
+
this.isActive = !1, (n || s || !this.paused && !this.ended) && this.addClass(C.INACTIVE);
|
|
5535
5538
|
}
|
|
5536
5539
|
}
|
|
5537
5540
|
}, {
|
|
@@ -5542,7 +5545,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5542
5545
|
}, {
|
|
5543
5546
|
key: "onCanplay",
|
|
5544
5547
|
value: function() {
|
|
5545
|
-
this.removeClass(
|
|
5548
|
+
this.removeClass(C.ENTER), this.removeClass(C.ERROR), this.removeClass(C.LOADING), this.isCanplay = !0, this.waitTimer && f.clearTimeout(this, this.waitTimer);
|
|
5546
5549
|
}
|
|
5547
5550
|
}, {
|
|
5548
5551
|
key: "onLoadeddata",
|
|
@@ -5552,44 +5555,44 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5552
5555
|
}, {
|
|
5553
5556
|
key: "onLoadstart",
|
|
5554
5557
|
value: function() {
|
|
5555
|
-
this.removeClass(
|
|
5558
|
+
this.removeClass(C.ERROR), this.isCanplay = !1;
|
|
5556
5559
|
}
|
|
5557
5560
|
}, {
|
|
5558
5561
|
key: "onPlay",
|
|
5559
5562
|
value: function() {
|
|
5560
|
-
this.state === N.ENDED && this.setState(N.RUNNING), this.removeClass(
|
|
5563
|
+
this.state === N.ENDED && this.setState(N.RUNNING), this.removeClass(C.PAUSED), this.ended && this.removeClass(C.ENDED), !this.config.closePlayVideoFocus && this.focus();
|
|
5561
5564
|
}
|
|
5562
5565
|
}, {
|
|
5563
5566
|
key: "onPause",
|
|
5564
5567
|
value: function() {
|
|
5565
|
-
this.addClass(
|
|
5568
|
+
this.addClass(C.PAUSED), this.updateAcc("pause"), this.config.closePauseVideoFocus || (this._clearUserTimer(), this.focus());
|
|
5566
5569
|
}
|
|
5567
5570
|
}, {
|
|
5568
5571
|
key: "onEnded",
|
|
5569
5572
|
value: function() {
|
|
5570
|
-
this.updateAcc("ended"), this.addClass(
|
|
5573
|
+
this.updateAcc("ended"), this.addClass(C.ENDED), this.setState(N.ENDED);
|
|
5571
5574
|
}
|
|
5572
5575
|
}, {
|
|
5573
5576
|
key: "onError",
|
|
5574
5577
|
value: function() {
|
|
5575
|
-
this.isError = !0, this.updateAcc("error"), this.removeClass(
|
|
5578
|
+
this.isError = !0, this.updateAcc("error"), this.removeClass(C.NOT_ALLOW_AUTOPLAY), this.removeClass(C.NO_START), this.removeClass(C.ENTER), this.removeClass(C.LOADING), this.addClass(C.ERROR);
|
|
5576
5579
|
}
|
|
5577
5580
|
}, {
|
|
5578
5581
|
key: "onSeeking",
|
|
5579
5582
|
value: function() {
|
|
5580
|
-
this.isSeeking || this.updateAcc("seeking"), this.isSeeking = !0, this.addClass(
|
|
5583
|
+
this.isSeeking || this.updateAcc("seeking"), this.isSeeking = !0, this.addClass(C.SEEKING);
|
|
5581
5584
|
}
|
|
5582
5585
|
}, {
|
|
5583
5586
|
key: "onSeeked",
|
|
5584
5587
|
value: function() {
|
|
5585
|
-
this.isSeeking = !1, this.waitTimer && f.clearTimeout(this, this.waitTimer), this.removeClass(
|
|
5588
|
+
this.isSeeking = !1, this.waitTimer && f.clearTimeout(this, this.waitTimer), this.removeClass(C.LOADING), this.removeClass(C.SEEKING);
|
|
5586
5589
|
}
|
|
5587
5590
|
}, {
|
|
5588
5591
|
key: "onWaiting",
|
|
5589
5592
|
value: function() {
|
|
5590
5593
|
var e = this;
|
|
5591
5594
|
this.waitTimer && f.clearTimeout(this, this.waitTimer), this.updateAcc("waiting"), this.waitTimer = f.setTimeout(this, function() {
|
|
5592
|
-
e.addClass(
|
|
5595
|
+
e.addClass(C.LOADING), e.emit(rn), f.clearTimeout(e, e.waitTimer), e.waitTimer = null;
|
|
5593
5596
|
}, this.config.minWaitDelay);
|
|
5594
5597
|
}
|
|
5595
5598
|
}, {
|
|
@@ -5597,7 +5600,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5597
5600
|
value: function() {
|
|
5598
5601
|
var e = this;
|
|
5599
5602
|
this.isError = !1;
|
|
5600
|
-
var i =
|
|
5603
|
+
var i = C.NO_START, n = C.PAUSED, s = C.ENDED, l = C.ERROR, u = C.REPLAY, c = C.LOADING, h = [i, n, s, l, u, c];
|
|
5601
5604
|
h.forEach(function(d) {
|
|
5602
5605
|
e.removeClass(d);
|
|
5603
5606
|
}), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
@@ -5605,7 +5608,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5605
5608
|
}, {
|
|
5606
5609
|
key: "onTimeupdate",
|
|
5607
5610
|
value: function() {
|
|
5608
|
-
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(
|
|
5611
|
+
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(C.LOADING)) && this.media.readyState > 2 && (this.removeClass(C.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === N.NOTALLOW && this.duration && (this.setState(N.RUNNING), this.emit(Fe)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
5609
5612
|
}
|
|
5610
5613
|
}, {
|
|
5611
5614
|
key: "onVolumechange",
|
|
@@ -5622,7 +5625,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5622
5625
|
value: function(e, i, n) {
|
|
5623
5626
|
if (!(!this.media || !i || !e)) {
|
|
5624
5627
|
var s = f.typeOf(e) === "String" ? e : e.type || "";
|
|
5625
|
-
n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(
|
|
5628
|
+
n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(vt, W({
|
|
5626
5629
|
eventType: s,
|
|
5627
5630
|
action: i,
|
|
5628
5631
|
currentTime: this.currentTime,
|
|
@@ -5664,7 +5667,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5664
5667
|
this.videoPos.pi = c, u = u < 0 ? 0 : u;
|
|
5665
5668
|
var h = {
|
|
5666
5669
|
rotate: u
|
|
5667
|
-
}, d = 0, g = 0, p = 1, m = Math.abs(u / 90), _ = this.root,
|
|
5670
|
+
}, d = 0, g = 0, p = 1, m = Math.abs(u / 90), _ = this.root, k = this.innerContainer, w = _.offsetWidth, b = k ? k.offsetHeight : _.offsetHeight, B = b, M = w;
|
|
5668
5671
|
if (m % 2 === 0)
|
|
5669
5672
|
p = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = p, d = i > 0 ? (100 - s) / 2 - i : 0, h.y = m === 2 ? 0 - d : d, g = n > 0 ? (100 - l) / 2 - n : 0, h.x = m === 2 ? 0 - g : g, this.media.style.width = "".concat(M, "px"), this.media.style.height = "".concat(B, "px");
|
|
5670
5673
|
else if (m % 2 === 1) {
|
|
@@ -5708,7 +5711,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5708
5711
|
value: function(e) {
|
|
5709
5712
|
var i = this;
|
|
5710
5713
|
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, me(this, "playnext", function() {
|
|
5711
|
-
i.start(), i.emit(
|
|
5714
|
+
i.start(), i.emit(pt, e);
|
|
5712
5715
|
});
|
|
5713
5716
|
}
|
|
5714
5717
|
}, {
|
|
@@ -5721,15 +5724,15 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5721
5724
|
var n = this.media, s = n.videoWidth, l = n.videoHeight, u = this.config, c = u.fitVideoSize, h = u.videoFillMode;
|
|
5722
5725
|
if ((h === "fill" || h === "cover" || h === "contain") && this.setAttribute("data-xgfill", h), !(!l || !s)) {
|
|
5723
5726
|
this._videoHeight = l, this._videoWidth = s;
|
|
5724
|
-
var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, g = i.width, p = i.height - d, m = parseInt(s / l * 1e3, 10), _ = parseInt(g / p * 1e3, 10),
|
|
5725
|
-
c === "auto" && _ > m || c === "fixWidth" ? (w = g / m * 1e3, this.config.fluid ? b.paddingTop = "".concat(w * 100 /
|
|
5727
|
+
var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, g = i.width, p = i.height - d, m = parseInt(s / l * 1e3, 10), _ = parseInt(g / p * 1e3, 10), k = g, w = p, b = {};
|
|
5728
|
+
c === "auto" && _ > m || c === "fixWidth" ? (w = g / m * 1e3, this.config.fluid ? b.paddingTop = "".concat(w * 100 / k, "%") : b.height = "".concat(w + d, "px")) : (c === "auto" && _ < m || c === "fixHeight") && (k = m * p / 1e3, b.width = "".concat(k, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(b).forEach(function(M) {
|
|
5726
5729
|
e.root.style[M] = b[M];
|
|
5727
5730
|
}), (h === "fillHeight" && _ < m || h === "fillWidth" && _ > m) && this.setAttribute("data-xgfill", "cover");
|
|
5728
5731
|
var B = {
|
|
5729
5732
|
videoScale: m,
|
|
5730
|
-
vWidth:
|
|
5733
|
+
vWidth: k,
|
|
5731
5734
|
vHeight: w,
|
|
5732
|
-
cWidth:
|
|
5735
|
+
cWidth: k,
|
|
5733
5736
|
cHeight: w + d
|
|
5734
5737
|
};
|
|
5735
5738
|
this.resizePosition(), this.emit(Se, B);
|
|
@@ -5823,11 +5826,11 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5823
5826
|
return this.config.lang;
|
|
5824
5827
|
},
|
|
5825
5828
|
set: function(e) {
|
|
5826
|
-
var i =
|
|
5829
|
+
var i = Ke.langKeys.filter(function(n) {
|
|
5827
5830
|
return n === e;
|
|
5828
5831
|
});
|
|
5829
5832
|
if (i.length === 0 && e !== "zh") {
|
|
5830
|
-
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(
|
|
5833
|
+
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(Ke.langKeys.join(), "] "));
|
|
5831
5834
|
return;
|
|
5832
5835
|
}
|
|
5833
5836
|
this.config.lang = e, $.setLang(e, this);
|
|
@@ -5846,7 +5849,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5846
5849
|
}, {
|
|
5847
5850
|
key: "version",
|
|
5848
5851
|
get: function() {
|
|
5849
|
-
return
|
|
5852
|
+
return Gt;
|
|
5850
5853
|
}
|
|
5851
5854
|
}, {
|
|
5852
5855
|
key: "playerId",
|
|
@@ -5947,31 +5950,31 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5947
5950
|
}, {
|
|
5948
5951
|
key: "hook",
|
|
5949
5952
|
value: function(e, i) {
|
|
5950
|
-
return
|
|
5953
|
+
return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5951
5954
|
}
|
|
5952
5955
|
}, {
|
|
5953
5956
|
key: "useHooks",
|
|
5954
5957
|
value: function(e, i) {
|
|
5955
|
-
return
|
|
5958
|
+
return yt.call.apply(yt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5956
5959
|
}
|
|
5957
5960
|
}, {
|
|
5958
5961
|
key: "removeHooks",
|
|
5959
5962
|
value: function(e, i) {
|
|
5960
|
-
return
|
|
5963
|
+
return _t.call.apply(_t, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5961
5964
|
}
|
|
5962
5965
|
}, {
|
|
5963
5966
|
key: "usePluginHooks",
|
|
5964
5967
|
value: function(e, i, n) {
|
|
5965
5968
|
for (var s = arguments.length, l = new Array(s > 3 ? s - 3 : 0), u = 3; u < s; u++)
|
|
5966
5969
|
l[u - 3] = arguments[u];
|
|
5967
|
-
return
|
|
5970
|
+
return ki.call.apply(ki, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5968
5971
|
}
|
|
5969
5972
|
}, {
|
|
5970
5973
|
key: "removePluginHooks",
|
|
5971
5974
|
value: function(e, i, n) {
|
|
5972
5975
|
for (var s = arguments.length, l = new Array(s > 3 ? s - 3 : 0), u = 3; u < s; u++)
|
|
5973
5976
|
l[u - 3] = arguments[u];
|
|
5974
|
-
return
|
|
5977
|
+
return Ci.call.apply(Ci, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5975
5978
|
}
|
|
5976
5979
|
}, {
|
|
5977
5980
|
key: "setUserActive",
|
|
@@ -6029,9 +6032,9 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
6029
6032
|
}
|
|
6030
6033
|
}]), r;
|
|
6031
6034
|
}(qs);
|
|
6032
|
-
y(
|
|
6033
|
-
y(
|
|
6034
|
-
|
|
6035
|
+
y(Et, "defaultPreset", null);
|
|
6036
|
+
y(Et, "XgVideoProxy", null);
|
|
6037
|
+
Et.instManager = mn.getInstance();
|
|
6035
6038
|
function Y() {
|
|
6036
6039
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
6037
6040
|
}
|
|
@@ -6043,7 +6046,7 @@ var we = {
|
|
|
6043
6046
|
WAIT_END: "waitingEnd",
|
|
6044
6047
|
SEEK_START: "seekStart",
|
|
6045
6048
|
SEEK_END: "seekEnd"
|
|
6046
|
-
},
|
|
6049
|
+
}, Co = /* @__PURE__ */ function(a) {
|
|
6047
6050
|
P(r, a);
|
|
6048
6051
|
var o = I(r);
|
|
6049
6052
|
function r() {
|
|
@@ -6095,18 +6098,18 @@ var we = {
|
|
|
6095
6098
|
key: "afterCreate",
|
|
6096
6099
|
value: function() {
|
|
6097
6100
|
var e = this;
|
|
6098
|
-
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = Y(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(
|
|
6101
|
+
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = Y(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(ei, function() {
|
|
6099
6102
|
var i = e._state, n = i.autoplayStart, s = i.isFFSend;
|
|
6100
6103
|
e.startCostTime = Y() - e.newPointTime, F.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(we.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = Y(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
|
|
6101
|
-
}), this.on(
|
|
6104
|
+
}), this.on(Ce, function() {
|
|
6102
6105
|
e.vt = Y(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
6103
6106
|
var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
|
|
6104
6107
|
F.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(we.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
6105
|
-
}), this.on(Ct, this._onSeeking), this.on(
|
|
6108
|
+
}), this.on(Ct, this._onSeeking), this.on(ke, this._onSeeked), this.on(ri, function() {
|
|
6106
6109
|
e.endState("destroy");
|
|
6107
|
-
}), this.on(
|
|
6110
|
+
}), this.on(wt, function() {
|
|
6108
6111
|
e.endState("urlChange"), F.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
6109
|
-
}), this.on([
|
|
6112
|
+
}), this.on([Qt, ye], this._onPlaying), this.on(st, this._onWaiting), this.on(rt, this._onError), this.on(Tt, function() {
|
|
6110
6113
|
F.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
6111
6114
|
});
|
|
6112
6115
|
}
|
|
@@ -6320,7 +6323,7 @@ var wo = /* @__PURE__ */ function(a) {
|
|
|
6320
6323
|
e.isEndedShow && f.removeClass(e.root, "hide");
|
|
6321
6324
|
}), this.config.hideCanplay ? (this.once(ne, function() {
|
|
6322
6325
|
e.onTimeUpdate();
|
|
6323
|
-
}), this.on(
|
|
6326
|
+
}), this.on(wt, function() {
|
|
6324
6327
|
f.removeClass(e.root, "hide"), f.addClass(e.root, "xg-showplay"), e.once(ne, function() {
|
|
6325
6328
|
e.onTimeUpdate();
|
|
6326
6329
|
});
|
|
@@ -6395,13 +6398,13 @@ var wo = /* @__PURE__ */ function(a) {
|
|
|
6395
6398
|
}
|
|
6396
6399
|
}]), r;
|
|
6397
6400
|
}(U);
|
|
6398
|
-
function
|
|
6401
|
+
function ai() {
|
|
6399
6402
|
return new DOMParser().parseFromString(`<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
6400
6403
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
|
|
6401
6404
|
</svg>
|
|
6402
6405
|
`, "image/svg+xml").firstChild;
|
|
6403
6406
|
}
|
|
6404
|
-
function
|
|
6407
|
+
function li() {
|
|
6405
6408
|
return new DOMParser().parseFromString(`<svg class="pause" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
6406
6409
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
|
|
6407
6410
|
</svg>
|
|
@@ -6446,16 +6449,16 @@ var So = /* @__PURE__ */ function(a) {
|
|
|
6446
6449
|
key: "afterCreate",
|
|
6447
6450
|
value: function() {
|
|
6448
6451
|
var e = this, i = this.player, n = this.playerConfig;
|
|
6449
|
-
this.initIcons(), this.once(
|
|
6452
|
+
this.initIcons(), this.once(ii, function() {
|
|
6450
6453
|
n && (n.lang && n.lang === "en" ? f.addClass(i.root, "lang-is-en") : n.lang === "jp" && f.addClass(i.root, "lang-is-jp"));
|
|
6451
|
-
}), this.on(Fe, this.onAutoplayStart), n.autoplay || this.show(), this.on(
|
|
6454
|
+
}), this.on(Fe, this.onAutoplayStart), n.autoplay || this.show(), this.on(ni, function() {
|
|
6452
6455
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
6453
6456
|
e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
|
|
6454
6457
|
}), this.on(re, function() {
|
|
6455
6458
|
e.onPlayPause("play");
|
|
6456
|
-
}), this.on(
|
|
6459
|
+
}), this.on(qe, function() {
|
|
6457
6460
|
e.onPlayPause("pause");
|
|
6458
|
-
}), this.on(
|
|
6461
|
+
}), this.on(Tt, function() {
|
|
6459
6462
|
e.onPlayerReset();
|
|
6460
6463
|
}), this.clickHandler = this.hook("startClick", this.switchPausePlay, {
|
|
6461
6464
|
pre: function(l) {
|
|
@@ -6474,11 +6477,11 @@ var So = /* @__PURE__ */ function(a) {
|
|
|
6474
6477
|
value: function() {
|
|
6475
6478
|
return {
|
|
6476
6479
|
startPlay: {
|
|
6477
|
-
icon:
|
|
6480
|
+
icon: ai,
|
|
6478
6481
|
class: "xg-icon-play"
|
|
6479
6482
|
},
|
|
6480
6483
|
startPause: {
|
|
6481
|
-
icon:
|
|
6484
|
+
icon: li,
|
|
6482
6485
|
class: "xg-icon-pause"
|
|
6483
6486
|
}
|
|
6484
6487
|
};
|
|
@@ -6700,7 +6703,7 @@ function Li(a) {
|
|
|
6700
6703
|
var o = parseFloat(a), r = a.indexOf("%") === -1 && !Number.isNaN(o);
|
|
6701
6704
|
return r && o;
|
|
6702
6705
|
}
|
|
6703
|
-
var
|
|
6706
|
+
var ui = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], yn = ui.length;
|
|
6704
6707
|
function Po() {
|
|
6705
6708
|
for (var a = {
|
|
6706
6709
|
width: 0,
|
|
@@ -6710,7 +6713,7 @@ function Po() {
|
|
|
6710
6713
|
outerWidth: 0,
|
|
6711
6714
|
outerHeight: 0
|
|
6712
6715
|
}, o = 0; o < yn; o++) {
|
|
6713
|
-
var r =
|
|
6716
|
+
var r = ui[o];
|
|
6714
6717
|
a[r] = 0;
|
|
6715
6718
|
}
|
|
6716
6719
|
return a;
|
|
@@ -6727,7 +6730,7 @@ function Di(a) {
|
|
|
6727
6730
|
var r = {};
|
|
6728
6731
|
r.width = a.offsetWidth, r.height = a.offsetHeight;
|
|
6729
6732
|
for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < yn; e++) {
|
|
6730
|
-
var i =
|
|
6733
|
+
var i = ui[e], n = o[i], s = parseFloat(n);
|
|
6731
6734
|
r[i] = Number.isNaN(s) ? 0 : s;
|
|
6732
6735
|
}
|
|
6733
6736
|
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 = Li(o.width);
|
|
@@ -6736,14 +6739,14 @@ function Di(a) {
|
|
|
6736
6739
|
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;
|
|
6737
6740
|
}
|
|
6738
6741
|
}
|
|
6739
|
-
function
|
|
6742
|
+
function Rt(a, o) {
|
|
6740
6743
|
for (var r = 0; r < a.length; r++) {
|
|
6741
6744
|
var t = a[r];
|
|
6742
6745
|
if (t.identifier === o)
|
|
6743
6746
|
return t;
|
|
6744
6747
|
}
|
|
6745
6748
|
}
|
|
6746
|
-
var
|
|
6749
|
+
var Ot = {
|
|
6747
6750
|
START: "dragStart",
|
|
6748
6751
|
MOVE: "dragMove",
|
|
6749
6752
|
ENDED: "dragEnded"
|
|
@@ -6762,7 +6765,7 @@ var Rt = {
|
|
|
6762
6765
|
}, e.startPos = {
|
|
6763
6766
|
x: 0,
|
|
6764
6767
|
y: 0
|
|
6765
|
-
}, 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 ?
|
|
6768
|
+
}, 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 ? Jt(e) : (e._bindStartEvent(), e);
|
|
6766
6769
|
}
|
|
6767
6770
|
return E(r, [{
|
|
6768
6771
|
key: "_bindStartEvent",
|
|
@@ -6854,19 +6857,19 @@ var Rt = {
|
|
|
6854
6857
|
}, {
|
|
6855
6858
|
key: "ontouchmove",
|
|
6856
6859
|
value: function(e) {
|
|
6857
|
-
var i =
|
|
6860
|
+
var i = Rt(e.changedTouches, this.touchIdentifier);
|
|
6858
6861
|
i && this.dragMove(e, i);
|
|
6859
6862
|
}
|
|
6860
6863
|
}, {
|
|
6861
6864
|
key: "ontouchend",
|
|
6862
6865
|
value: function(e) {
|
|
6863
|
-
var i =
|
|
6866
|
+
var i = Rt(e.changedTouches, this.touchIdentifier);
|
|
6864
6867
|
i && this.dragEnd(e, i), e.preventDefault();
|
|
6865
6868
|
}
|
|
6866
6869
|
}, {
|
|
6867
6870
|
key: "ontouchcancel",
|
|
6868
6871
|
value: function(e) {
|
|
6869
|
-
var i =
|
|
6872
|
+
var i = Rt(e.changedTouches, this.touchIdentifier);
|
|
6870
6873
|
i && this.dragCancel(e, i);
|
|
6871
6874
|
}
|
|
6872
6875
|
}, {
|
|
@@ -6881,12 +6884,12 @@ var Rt = {
|
|
|
6881
6884
|
}, {
|
|
6882
6885
|
key: "dragRealStart",
|
|
6883
6886
|
value: function(e, i) {
|
|
6884
|
-
this.isDragging = !0, this.animate(), this.emit(
|
|
6887
|
+
this.isDragging = !0, this.animate(), this.emit(Ot.START, this.startPos);
|
|
6885
6888
|
}
|
|
6886
6889
|
}, {
|
|
6887
6890
|
key: "dragEnd",
|
|
6888
6891
|
value: function(e, i) {
|
|
6889
|
-
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(
|
|
6892
|
+
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(Ot.ENDED)), this.presetInfo());
|
|
6890
6893
|
}
|
|
6891
6894
|
}, {
|
|
6892
6895
|
key: "_dragPointerMove",
|
|
@@ -6902,7 +6905,7 @@ var Rt = {
|
|
|
6902
6905
|
value: function(e, i) {
|
|
6903
6906
|
if (e = e || window.event, !!this.isDown) {
|
|
6904
6907
|
var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, h = u.y;
|
|
6905
|
-
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(
|
|
6908
|
+
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(Ot.MOVE, this.position);
|
|
6906
6909
|
}
|
|
6907
6910
|
}
|
|
6908
6911
|
}, {
|
|
@@ -6995,7 +6998,7 @@ var Rt = {
|
|
|
6995
6998
|
key: "afterCreate",
|
|
6996
6999
|
value: function() {
|
|
6997
7000
|
var e = this;
|
|
6998
|
-
this.initIcons(), this.on(
|
|
7001
|
+
this.initIcons(), this.on(qe, function() {
|
|
6999
7002
|
e.setAttr("data-state", "pause");
|
|
7000
7003
|
}), this.on(re, function() {
|
|
7001
7004
|
e.setAttr("data-state", "play");
|
|
@@ -7027,11 +7030,11 @@ var Rt = {
|
|
|
7027
7030
|
value: function() {
|
|
7028
7031
|
return {
|
|
7029
7032
|
play: {
|
|
7030
|
-
icon:
|
|
7033
|
+
icon: ai,
|
|
7031
7034
|
class: "xg-icon-play"
|
|
7032
7035
|
},
|
|
7033
7036
|
pause: {
|
|
7034
|
-
icon:
|
|
7037
|
+
icon: li,
|
|
7035
7038
|
class: "xg-icon-pause"
|
|
7036
7039
|
}
|
|
7037
7040
|
};
|
|
@@ -7050,7 +7053,7 @@ var Rt = {
|
|
|
7050
7053
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
7051
7054
|
this.lastStyle = {}, f.addClass(i.root, "xgplayer-mini"), ["width", "height", "top", "left"].map(function(l) {
|
|
7052
7055
|
e.lastStyle[l] = s.style[l], s.style[l] = "".concat(e.pos[l], "px");
|
|
7053
|
-
}), n.fluid && (s.style["padding-top"] = ""), this.emit(
|
|
7056
|
+
}), n.fluid && (s.style["padding-top"] = ""), this.emit(gt, !0), i.isMini = this.isMini = !0;
|
|
7054
7057
|
}
|
|
7055
7058
|
}
|
|
7056
7059
|
}, {
|
|
@@ -7062,7 +7065,7 @@ var Rt = {
|
|
|
7062
7065
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
7063
7066
|
f.removeClass(i.root, "xgplayer-mini"), this.lastStyle && Object.keys(this.lastStyle).map(function(l) {
|
|
7064
7067
|
s.style[l] = e.lastStyle[l];
|
|
7065
|
-
}), 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(
|
|
7068
|
+
}), 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(gt, !1), this.isMini = i.isMini = !1;
|
|
7066
7069
|
}
|
|
7067
7070
|
}, {
|
|
7068
7071
|
key: "destroy",
|
|
@@ -7111,11 +7114,11 @@ var Rt = {
|
|
|
7111
7114
|
};
|
|
7112
7115
|
}
|
|
7113
7116
|
}]), r;
|
|
7114
|
-
}(U),
|
|
7117
|
+
}(U), at = {
|
|
7115
7118
|
mouseenter: "onMouseEnter",
|
|
7116
7119
|
mouseleave: "onMouseLeave",
|
|
7117
7120
|
mousemove: "onMouseMove"
|
|
7118
|
-
},
|
|
7121
|
+
}, Ft = ["videoClick", "videoDbClick"], Mt = /* @__PURE__ */ function(a) {
|
|
7119
7122
|
P(r, a);
|
|
7120
7123
|
var o = I(r);
|
|
7121
7124
|
function r() {
|
|
@@ -7144,7 +7147,7 @@ var Rt = {
|
|
|
7144
7147
|
}), y(v(t), "onVideoClick", function(s) {
|
|
7145
7148
|
var l = v(t), u = l.player, c = l.playerConfig;
|
|
7146
7149
|
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() {
|
|
7147
|
-
t._clickCount && (t._clickCount--, me(v(t),
|
|
7150
|
+
t._clickCount && (t._clickCount--, me(v(t), Ft[0], function(h, d) {
|
|
7148
7151
|
t.switchPlayPause(d.e);
|
|
7149
7152
|
}, {
|
|
7150
7153
|
e: s,
|
|
@@ -7158,7 +7161,7 @@ var Rt = {
|
|
|
7158
7161
|
t._clickCount = 0;
|
|
7159
7162
|
return;
|
|
7160
7163
|
}
|
|
7161
|
-
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), me(v(t),
|
|
7164
|
+
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), me(v(t), Ft[1], function(h, d) {
|
|
7162
7165
|
t.emitUserAction(d.e, "switch_fullscreen", {
|
|
7163
7166
|
props: "fullscreen",
|
|
7164
7167
|
from: u.fullscreen,
|
|
@@ -7175,7 +7178,7 @@ var Rt = {
|
|
|
7175
7178
|
key: "afterCreate",
|
|
7176
7179
|
value: function() {
|
|
7177
7180
|
var e = this;
|
|
7178
|
-
this._clickCount = 0,
|
|
7181
|
+
this._clickCount = 0, Ft.map(function(n) {
|
|
7179
7182
|
e.__hooks[n] = null;
|
|
7180
7183
|
});
|
|
7181
7184
|
var i = this.playerConfig.isMobileSimulateMode;
|
|
@@ -7185,8 +7188,8 @@ var Rt = {
|
|
|
7185
7188
|
key: "initEvents",
|
|
7186
7189
|
value: function() {
|
|
7187
7190
|
var e = this, i = this.player, n = i.media, s = i.root, l = this.playerConfig.enableContextmenu;
|
|
7188
|
-
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(
|
|
7189
|
-
s.addEventListener(u, e[
|
|
7191
|
+
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(at).map(function(u) {
|
|
7192
|
+
s.addEventListener(u, e[at[u]], !1);
|
|
7190
7193
|
}), !l && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
|
|
7191
7194
|
}
|
|
7192
7195
|
}, {
|
|
@@ -7208,8 +7211,8 @@ var Rt = {
|
|
|
7208
7211
|
key: "destroy",
|
|
7209
7212
|
value: function() {
|
|
7210
7213
|
var e = this, i = this.player, n = i.video, s = i.root;
|
|
7211
|
-
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(
|
|
7212
|
-
s.removeEventListener(l, e[
|
|
7214
|
+
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(at).map(function(l) {
|
|
7215
|
+
s.removeEventListener(l, e[at[l]], !1);
|
|
7213
7216
|
});
|
|
7214
7217
|
}
|
|
7215
7218
|
}], [{
|
|
@@ -7371,7 +7374,7 @@ var Ue = {
|
|
|
7371
7374
|
SEEKING: "seeking",
|
|
7372
7375
|
PLAYBACK: "playbackrate",
|
|
7373
7376
|
LIGHT: ""
|
|
7374
|
-
},
|
|
7377
|
+
}, Nt = ["videoClick", "videoDbClick"], No = /* @__PURE__ */ function(a) {
|
|
7375
7378
|
P(r, a);
|
|
7376
7379
|
var o = I(r);
|
|
7377
7380
|
function r(t) {
|
|
@@ -7390,12 +7393,12 @@ var Ue = {
|
|
|
7390
7393
|
if (!(!n || u.disableGesture || !e.duration || !l.isStart)) {
|
|
7391
7394
|
var h = u.miniMoveStep, d = u.hideControlsActive, g = parseInt(n.pageX - l.left, 10), p = parseInt(n.pageY - l.top, 10), m = c.rotateDeg === 90 ? p : g, _ = c.rotateDeg === 90 ? g : p;
|
|
7392
7395
|
if (Math.abs(m - l.x) > h || Math.abs(_ - l.y) > h) {
|
|
7393
|
-
var
|
|
7394
|
-
if (b === -1 && (b = e.checkScope(m, _,
|
|
7396
|
+
var k = m - l.x, w = _ - l.y, b = l.scope;
|
|
7397
|
+
if (b === -1 && (b = e.checkScope(m, _, k, w, l), b === 0 && (d ? c.blur() : c.focus({
|
|
7395
7398
|
autoHide: !1
|
|
7396
7399
|
}), !l.time && (l.time = parseInt(c.currentTime * 1e3, 10) + e.timeOffset * 1e3)), l.scope = b), b === -1 || b > 0 && !u.gestureY || b === 0 && !u.gestureX)
|
|
7397
7400
|
return;
|
|
7398
|
-
e.executeMove(
|
|
7401
|
+
e.executeMove(k, w, b, l.width, l.height), l.x = m, l.y = _;
|
|
7399
7402
|
}
|
|
7400
7403
|
}
|
|
7401
7404
|
}), y(v(e), "onTouchEnd", function(i) {
|
|
@@ -7452,7 +7455,7 @@ var Ue = {
|
|
|
7452
7455
|
key: "afterCreate",
|
|
7453
7456
|
value: function() {
|
|
7454
7457
|
var e = this;
|
|
7455
|
-
|
|
7458
|
+
Nt.map(function(d) {
|
|
7456
7459
|
e.__hooks[d] = null;
|
|
7457
7460
|
});
|
|
7458
7461
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
@@ -7635,7 +7638,7 @@ var Ue = {
|
|
|
7635
7638
|
key: "onClick",
|
|
7636
7639
|
value: function(e) {
|
|
7637
7640
|
var i = this, n = this.player;
|
|
7638
|
-
me(this,
|
|
7641
|
+
me(this, Nt[0], function(s, l) {
|
|
7639
7642
|
i.clickHandler(l.e);
|
|
7640
7643
|
}, {
|
|
7641
7644
|
e,
|
|
@@ -7646,7 +7649,7 @@ var Ue = {
|
|
|
7646
7649
|
key: "onDbClick",
|
|
7647
7650
|
value: function(e) {
|
|
7648
7651
|
var i = this, n = this.player;
|
|
7649
|
-
me(this,
|
|
7652
|
+
me(this, Nt[1], function(s, l) {
|
|
7650
7653
|
i.dbClickHandler(l.e);
|
|
7651
7654
|
}, {
|
|
7652
7655
|
e,
|
|
@@ -8509,7 +8512,7 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8509
8512
|
e.onMouseLeave();
|
|
8510
8513
|
}), this.on(ne, function() {
|
|
8511
8514
|
e.onTimeupdate();
|
|
8512
|
-
}), this.on(
|
|
8515
|
+
}), this.on(ke, function() {
|
|
8513
8516
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
8514
8517
|
}), this.on(Ji, function() {
|
|
8515
8518
|
e.onCacheUpdate();
|
|
@@ -8622,10 +8625,10 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8622
8625
|
m = m > d ? d : m < 0 ? 0 : m;
|
|
8623
8626
|
var _ = m / d;
|
|
8624
8627
|
_ = _ < 0 ? 0 : _ > 1 ? 1 : _;
|
|
8625
|
-
var
|
|
8628
|
+
var k = parseInt(_ * this.offsetDuration * 1e3, 10) / 1e3, w = f.getCurrentTimeByOffset(k, n.timeSegments);
|
|
8626
8629
|
return {
|
|
8627
8630
|
percent: _,
|
|
8628
|
-
currentTime:
|
|
8631
|
+
currentTime: k,
|
|
8629
8632
|
seekTime: w,
|
|
8630
8633
|
offset: m,
|
|
8631
8634
|
width: d,
|
|
@@ -8799,7 +8802,7 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8799
8802
|
var e = this;
|
|
8800
8803
|
L(A(r.prototype), "afterCreate", this).call(this);
|
|
8801
8804
|
var i = this.player, n = this.config;
|
|
8802
|
-
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([
|
|
8805
|
+
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([qe, rt, Ne], function() {
|
|
8803
8806
|
e.animate(i.paused);
|
|
8804
8807
|
}), this.on(re, function() {
|
|
8805
8808
|
e.animate(i.paused);
|
|
@@ -8810,11 +8813,11 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8810
8813
|
value: function() {
|
|
8811
8814
|
return {
|
|
8812
8815
|
play: {
|
|
8813
|
-
icon:
|
|
8816
|
+
icon: ai,
|
|
8814
8817
|
class: "xg-icon-play"
|
|
8815
8818
|
},
|
|
8816
8819
|
pause: {
|
|
8817
|
-
icon:
|
|
8820
|
+
icon: li,
|
|
8818
8821
|
class: "xg-icon-pause"
|
|
8819
8822
|
}
|
|
8820
8823
|
};
|
|
@@ -9119,7 +9122,7 @@ var Xo = /* @__PURE__ */ function(a) {
|
|
|
9119
9122
|
key: "afterCreate",
|
|
9120
9123
|
value: function() {
|
|
9121
9124
|
var e = this, i = this.player.controls.config.mode;
|
|
9122
|
-
this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Ie,
|
|
9125
|
+
this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Ie, ke, ne], function(n) {
|
|
9123
9126
|
n.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
9124
9127
|
}), this.on(Me, function() {
|
|
9125
9128
|
e.onTimeUpdate(!0);
|
|
@@ -9207,7 +9210,7 @@ var Xo = /* @__PURE__ */ function(a) {
|
|
|
9207
9210
|
var e = this, i = this.player, n = function() {
|
|
9208
9211
|
e.isActiving = !1;
|
|
9209
9212
|
};
|
|
9210
|
-
this.off(
|
|
9213
|
+
this.off(ke, n), i.isSeeking && i.media.seeking ? this.once(ke, n) : this.isActiving = !1;
|
|
9211
9214
|
}
|
|
9212
9215
|
}, {
|
|
9213
9216
|
key: "destroy",
|
|
@@ -9297,7 +9300,7 @@ var Xo = /* @__PURE__ */ function(a) {
|
|
|
9297
9300
|
return E(r, [{
|
|
9298
9301
|
key: "afterCreate",
|
|
9299
9302
|
value: function() {
|
|
9300
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ie, this._onDurationChange), this.on(
|
|
9303
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ie, this._onDurationChange), this.on(Ce, this._onLoadedData), this.on(ne, this._onTimeupdate), this.on(Ct, this._onSeeking), this.on(re, this._onPlay);
|
|
9301
9304
|
}
|
|
9302
9305
|
}, {
|
|
9303
9306
|
key: "setConfig",
|
|
@@ -9478,7 +9481,7 @@ var ta = /* @__PURE__ */ function(a) {
|
|
|
9478
9481
|
pre: function(u) {
|
|
9479
9482
|
u.preventDefault(), u.stopPropagation();
|
|
9480
9483
|
}
|
|
9481
|
-
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), R.device !== "mobile" && this.playerConfig.isMobileSimulateMode !== "mobile" && (this.bind("mouseenter", this._onMouseenterHandler), this.bind(["blur", "mouseleave"], this._onMouseleaveHandler), this.bind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.bind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.bind(".xgplayer-slider", "mouseup", this.onBarMouseUp)), this.bind(".xgplayer-icon", ["touchend", "click"], this.changeMutedHandler), this.on(qi, this.onVolumeChange), this.once(
|
|
9484
|
+
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), R.device !== "mobile" && this.playerConfig.isMobileSimulateMode !== "mobile" && (this.bind("mouseenter", this._onMouseenterHandler), this.bind(["blur", "mouseleave"], this._onMouseleaveHandler), this.bind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.bind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.bind(".xgplayer-slider", "mouseup", this.onBarMouseUp)), this.bind(".xgplayer-icon", ["touchend", "click"], this.changeMutedHandler), this.on(qi, this.onVolumeChange), this.once(Ce, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
|
|
9482
9485
|
}
|
|
9483
9486
|
}
|
|
9484
9487
|
}, {
|
|
@@ -9647,9 +9650,9 @@ var na = /* @__PURE__ */ function(a) {
|
|
|
9647
9650
|
this.player.videoRotateDeg = e;
|
|
9648
9651
|
return;
|
|
9649
9652
|
}
|
|
9650
|
-
var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, h = n.media, d = u.offsetWidth, g = c && i ? c.offsetHeight : u.offsetHeight, p = s, m = l, _ = 0,
|
|
9651
|
-
(e === 0.75 || e === 0.25) && (p = "".concat(g, "px"), m = "".concat(d, "px"), _ = -(g - d) / 2,
|
|
9652
|
-
var w = "translate(".concat(_, "px,").concat(
|
|
9653
|
+
var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, h = n.media, d = u.offsetWidth, g = c && i ? c.offsetHeight : u.offsetHeight, p = s, m = l, _ = 0, k = 0;
|
|
9654
|
+
(e === 0.75 || e === 0.25) && (p = "".concat(g, "px"), m = "".concat(d, "px"), _ = -(g - d) / 2, k = -(d - g) / 2);
|
|
9655
|
+
var w = "translate(".concat(_, "px,").concat(k, "px) rotate(").concat(e, "turn)"), b = {
|
|
9653
9656
|
transformOrigin: "center center",
|
|
9654
9657
|
transform: w,
|
|
9655
9658
|
webKitTransform: w,
|
|
@@ -9757,7 +9760,7 @@ var ze = {
|
|
|
9757
9760
|
key: "afterCreate",
|
|
9758
9761
|
value: function() {
|
|
9759
9762
|
var e = this;
|
|
9760
|
-
this.isPIPAvailable() && (L(A(r.prototype), "afterCreate", this).call(this), this.pMode = ze.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(
|
|
9763
|
+
this.isPIPAvailable() && (L(A(r.prototype), "afterCreate", this).call(this), this.pMode = ze.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(bt, function() {
|
|
9761
9764
|
e.config.showIcon && (f.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
9762
9765
|
}));
|
|
9763
9766
|
}
|
|
@@ -9789,9 +9792,9 @@ var ze = {
|
|
|
9789
9792
|
var n = i.paused;
|
|
9790
9793
|
f.setTimeout(e, function() {
|
|
9791
9794
|
!n && i.mediaPlay();
|
|
9792
|
-
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(
|
|
9795
|
+
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(Yt, !1);
|
|
9793
9796
|
}, this.enterPIPCallback = function(n) {
|
|
9794
|
-
i.emit(
|
|
9797
|
+
i.emit(Yt, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
9795
9798
|
}, this.onWebkitpresentationmodechanged = function(n) {
|
|
9796
9799
|
var s = i.media.webkitPresentationMode;
|
|
9797
9800
|
e.pMode === ze.FULLSCREEN && s !== ze.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === ze.PIP ? e.enterPIPCallback(n) : s === ze.INLINE && e.leavePIPCallback(n);
|
|
@@ -9832,7 +9835,7 @@ var ze = {
|
|
|
9832
9835
|
documentPictureInPicture.requestWindow(u).then(function(h) {
|
|
9833
9836
|
var d = s.docPiPNode, g = s.docPiPStyle;
|
|
9834
9837
|
e.enterPIPCallback();
|
|
9835
|
-
var p = d || i.root, m = p.parentElement, _ = p.previousSibling,
|
|
9838
|
+
var p = d || i.root, m = p.parentElement, _ = p.previousSibling, k = p.nextSibling;
|
|
9836
9839
|
e.copyStyleIntoPiPWindow(h);
|
|
9837
9840
|
var w = document.createElement("style");
|
|
9838
9841
|
if (w.append("body{padding:0; margin:0;}"), g) {
|
|
@@ -9843,7 +9846,7 @@ var ze = {
|
|
|
9843
9846
|
.xgplayer{width: 100%!important; height: 100%!important;}
|
|
9844
9847
|
`);
|
|
9845
9848
|
h.document.head.append(w), h.document.body.append(p), h.addEventListener("pagehide", function(B) {
|
|
9846
|
-
m && (
|
|
9849
|
+
m && (k ? m.insertBefore(p, k) : _ ? m.insertBefore(p, _.nextSibling) : m.appendChild(p)), e.leavePIPCallback();
|
|
9847
9850
|
}, {
|
|
9848
9851
|
once: !0
|
|
9849
9852
|
});
|
|
@@ -9942,7 +9945,7 @@ var la = /* @__PURE__ */ function(a) {
|
|
|
9942
9945
|
var e;
|
|
9943
9946
|
return T(this, r), e = o.call(this, t), y(v(e), "playNext", function(i) {
|
|
9944
9947
|
var n = v(e), s = n.player;
|
|
9945
|
-
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(
|
|
9948
|
+
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(pt, e.idx + 1)) : (e.nextHandler(), s.emit(pt));
|
|
9946
9949
|
}), e.idx = -1, e;
|
|
9947
9950
|
}
|
|
9948
9951
|
return E(r, [{
|
|
@@ -10013,12 +10016,12 @@ var la = /* @__PURE__ */ function(a) {
|
|
|
10013
10016
|
return String(D);
|
|
10014
10017
|
}, g = n.Blob || n.MozBlob || n.WebKitBlob || d, p = e || "download", m, _;
|
|
10015
10018
|
if (g = g.call ? g.bind(n) : Blob, String(this) === "true" && (u = [u, l], l = u[0], u = u[1]), c && c.length < 2048 && (p = c.split("/").pop().split("?")[0], h.href = c, h.href.indexOf(c) !== -1)) {
|
|
10016
|
-
var
|
|
10017
|
-
return
|
|
10019
|
+
var k = new XMLHttpRequest();
|
|
10020
|
+
return k.open("GET", c, !0), k.responseType = "blob", k.onload = function(D) {
|
|
10018
10021
|
r(D.target.response, p, s);
|
|
10019
10022
|
}, setTimeout(function() {
|
|
10020
|
-
|
|
10021
|
-
}, 0),
|
|
10023
|
+
k.send();
|
|
10024
|
+
}, 0), k;
|
|
10022
10025
|
}
|
|
10023
10026
|
if (/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u))
|
|
10024
10027
|
if (u.length > 1024 * 1024 * 1.999 && g !== d)
|
|
@@ -10077,7 +10080,7 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
10077
10080
|
});
|
|
10078
10081
|
})(_n);
|
|
10079
10082
|
var ua = _n.exports;
|
|
10080
|
-
const ca = /* @__PURE__ */
|
|
10083
|
+
const ca = /* @__PURE__ */ qt(ua);
|
|
10081
10084
|
function fa() {
|
|
10082
10085
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
10083
10086
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
@@ -10238,8 +10241,8 @@ var ha = /* @__PURE__ */ function(a) {
|
|
|
10238
10241
|
p = u.media.canvas;
|
|
10239
10242
|
else {
|
|
10240
10243
|
n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), p = n.canvas, m = n.canvasCtx;
|
|
10241
|
-
var _ = u.media.videoWidth / u.media.videoHeight,
|
|
10242
|
-
_ >
|
|
10244
|
+
var _ = u.media.videoWidth / u.media.videoHeight, k = p.width / p.height, w = 0, b = 0, B = u.media.videoWidth, M = u.media.videoHeight, V, D, J, G;
|
|
10245
|
+
_ > k ? (J = p.width, G = p.width / _, V = 0, D = Math.round((p.height - G) / 2)) : _ === k ? (J = p.width, G = p.height, V = 0, D = 0) : _ < k && (J = p.height * _, G = p.height, V = Math.round((p.width - J) / 2), D = 0), m.drawImage(u.media, w, b, B, M, V, D, J, G);
|
|
10243
10246
|
}
|
|
10244
10247
|
var H = p.toDataURL(h, c).replace(h, "image/octet-stream");
|
|
10245
10248
|
H = H.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(H);
|
|
@@ -10376,7 +10379,7 @@ var ha = /* @__PURE__ */ function(a) {
|
|
|
10376
10379
|
function pa(a, o) {
|
|
10377
10380
|
return a === de.SIDE ? o === j.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10378
10381
|
}
|
|
10379
|
-
var De = R.device === "mobile",
|
|
10382
|
+
var De = R.device === "mobile", kt = /* @__PURE__ */ function(a) {
|
|
10380
10383
|
P(r, a);
|
|
10381
10384
|
var o = I(r);
|
|
10382
10385
|
function r(t) {
|
|
@@ -10412,7 +10415,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
|
10412
10415
|
e._resizeList();
|
|
10413
10416
|
}), this.once(ye, function() {
|
|
10414
10417
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
10415
|
-
}), De && this.on(
|
|
10418
|
+
}), De && this.on(ti, function() {
|
|
10416
10419
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
10417
10420
|
}), De ? (i.toggleMode = Ve.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === Ve.CLICK ? "click" : "mouseenter", i.toggleMode === Ve.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);
|
|
10418
10421
|
}
|
|
@@ -10569,7 +10572,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
|
10569
10572
|
var e = this;
|
|
10570
10573
|
L(A(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
|
|
10571
10574
|
e.changeDefinitionList(i);
|
|
10572
|
-
}), this.on(
|
|
10575
|
+
}), this.on(si, function(i) {
|
|
10573
10576
|
e.renderItemList(e.config.list, i.to);
|
|
10574
10577
|
}), this.player.definitionList.length < 2 && this.hide();
|
|
10575
10578
|
}
|
|
@@ -10637,7 +10640,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
|
10637
10640
|
}, {
|
|
10638
10641
|
key: "defaultConfig",
|
|
10639
10642
|
get: function() {
|
|
10640
|
-
return W(W({},
|
|
10643
|
+
return W(W({}, kt.defaultConfig), {}, {
|
|
10641
10644
|
position: j.CONTROLS_RIGHT,
|
|
10642
10645
|
index: 3,
|
|
10643
10646
|
list: [],
|
|
@@ -10649,7 +10652,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
|
10649
10652
|
});
|
|
10650
10653
|
}
|
|
10651
10654
|
}]), r;
|
|
10652
|
-
}(
|
|
10655
|
+
}(kt), ma = /* @__PURE__ */ function(a) {
|
|
10653
10656
|
P(r, a);
|
|
10654
10657
|
var o = I(r);
|
|
10655
10658
|
function r(t) {
|
|
@@ -10731,7 +10734,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
|
10731
10734
|
}, {
|
|
10732
10735
|
key: "defaultConfig",
|
|
10733
10736
|
get: function() {
|
|
10734
|
-
return W(W({},
|
|
10737
|
+
return W(W({}, kt.defaultConfig), {}, {
|
|
10735
10738
|
position: j.CONTROLS_RIGHT,
|
|
10736
10739
|
index: 4,
|
|
10737
10740
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
@@ -10741,7 +10744,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
|
10741
10744
|
});
|
|
10742
10745
|
}
|
|
10743
10746
|
}]), r;
|
|
10744
|
-
}(
|
|
10747
|
+
}(kt);
|
|
10745
10748
|
function ya() {
|
|
10746
10749
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10747
10750
|
<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>
|
|
@@ -10769,7 +10772,7 @@ var Bi = /* @__PURE__ */ function(a) {
|
|
|
10769
10772
|
key: "afterCreate",
|
|
10770
10773
|
value: function() {
|
|
10771
10774
|
var e = this;
|
|
10772
|
-
L(A(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(
|
|
10775
|
+
L(A(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(dt, function(i) {
|
|
10773
10776
|
e.animate(i);
|
|
10774
10777
|
}), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
|
|
10775
10778
|
pre: function(n) {
|
|
@@ -10848,7 +10851,7 @@ var Bi = /* @__PURE__ */ function(a) {
|
|
|
10848
10851
|
};
|
|
10849
10852
|
}
|
|
10850
10853
|
}]), r;
|
|
10851
|
-
}(Be),
|
|
10854
|
+
}(Be), ka = /* @__PURE__ */ function(a) {
|
|
10852
10855
|
P(r, a);
|
|
10853
10856
|
var o = I(r);
|
|
10854
10857
|
function r() {
|
|
@@ -10862,7 +10865,7 @@ var Bi = /* @__PURE__ */ function(a) {
|
|
|
10862
10865
|
pre: function(n) {
|
|
10863
10866
|
n.preventDefault(), n.stopPropagation();
|
|
10864
10867
|
}
|
|
10865
|
-
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(
|
|
10868
|
+
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(rt, function(i) {
|
|
10866
10869
|
e.onError(i);
|
|
10867
10870
|
});
|
|
10868
10871
|
}
|
|
@@ -10909,7 +10912,7 @@ var Bi = /* @__PURE__ */ function(a) {
|
|
|
10909
10912
|
return "error";
|
|
10910
10913
|
}
|
|
10911
10914
|
}]), r;
|
|
10912
|
-
}(U),
|
|
10915
|
+
}(U), Ca = /* @__PURE__ */ function(a) {
|
|
10913
10916
|
P(r, a);
|
|
10914
10917
|
var o = I(r);
|
|
10915
10918
|
function r() {
|
|
@@ -10961,7 +10964,7 @@ var Bi = /* @__PURE__ */ function(a) {
|
|
|
10961
10964
|
}, {
|
|
10962
10965
|
key: "render",
|
|
10963
10966
|
value: function() {
|
|
10964
|
-
return '<xg-prompt class="xgplayer-prompt '.concat(
|
|
10967
|
+
return '<xg-prompt class="xgplayer-prompt '.concat(C.CONTROLS_FOLLOW, `">
|
|
10965
10968
|
<span class="xgplayer-prompt-detail"></span>
|
|
10966
10969
|
</xg-prompt>`);
|
|
10967
10970
|
}
|
|
@@ -10997,7 +11000,7 @@ var Bi = /* @__PURE__ */ function(a) {
|
|
|
10997
11000
|
width: 6,
|
|
10998
11001
|
height: 6
|
|
10999
11002
|
};
|
|
11000
|
-
function
|
|
11003
|
+
function kn(a) {
|
|
11001
11004
|
Object.keys(Hi).map(function(o) {
|
|
11002
11005
|
a[o] === void 0 && (a[o] = Hi[o]);
|
|
11003
11006
|
});
|
|
@@ -11019,7 +11022,7 @@ var Ui = {
|
|
|
11019
11022
|
},
|
|
11020
11023
|
createDot: function(o) {
|
|
11021
11024
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, t = this.player.plugins.progress;
|
|
11022
|
-
if (t && (r && (
|
|
11025
|
+
if (t && (r && (kn(o), this._ispots.push(o)), !(!this.ispotsInit && r))) {
|
|
11023
11026
|
var e = this.calcuPosition(o.time, o.duration), i = o.style || {};
|
|
11024
11027
|
i.left = "".concat(e.left, "%"), i.width = "".concat(e.width, "%");
|
|
11025
11028
|
var n = "xgspot_".concat(o.id, " xgplayer-spot");
|
|
@@ -11146,7 +11149,7 @@ function ba(a) {
|
|
|
11146
11149
|
});
|
|
11147
11150
|
var t = r.config.progressDot || o.ispots || [];
|
|
11148
11151
|
a._ispots = t.map(function(e) {
|
|
11149
|
-
return
|
|
11152
|
+
return kn(e), e;
|
|
11150
11153
|
}), a.ispotsInit = !1, a.playerSize = {
|
|
11151
11154
|
left: r.sizeInfo.left,
|
|
11152
11155
|
width: r.sizeInfo.width
|
|
@@ -11502,7 +11505,7 @@ var je = {
|
|
|
11502
11505
|
this.interval = Math.round(this.player.duration / l);
|
|
11503
11506
|
var g = Math.ceil(e / this.interval);
|
|
11504
11507
|
g = g > l ? l : g;
|
|
11505
|
-
var p = g < u * c ? 0 : Math.ceil(g / (u * c)) - 1, m = g - p * (c * u), _ = m > 0 ? Math.ceil(m / c) - 1 : 0,
|
|
11508
|
+
var p = g < u * c ? 0 : Math.ceil(g / (u * c)) - 1, m = g - p * (c * u), _ = m > 0 ? Math.ceil(m / c) - 1 : 0, k = m > 0 ? m - _ * c - 1 : 0, w = 0, b = 0;
|
|
11506
11509
|
if (i && n) {
|
|
11507
11510
|
var B = i / n;
|
|
11508
11511
|
B < h / d ? (b = n, w = b * (h / d)) : (w = i, b = w / (h / d));
|
|
@@ -11512,14 +11515,14 @@ var je = {
|
|
|
11512
11515
|
return {
|
|
11513
11516
|
urlIndex: p,
|
|
11514
11517
|
rowIndex: _,
|
|
11515
|
-
colIndex:
|
|
11518
|
+
colIndex: k,
|
|
11516
11519
|
url: M,
|
|
11517
11520
|
height: b,
|
|
11518
11521
|
width: w,
|
|
11519
11522
|
style: {
|
|
11520
11523
|
backgroundImage: "url(".concat(M, ")"),
|
|
11521
11524
|
backgroundSize: "".concat(w * c, "px auto"),
|
|
11522
|
-
backgroundPosition: "-".concat(
|
|
11525
|
+
backgroundPosition: "-".concat(k * w, "px -").concat(_ * b, "px"),
|
|
11523
11526
|
width: "".concat(w, "px"),
|
|
11524
11527
|
height: "".concat(b, "px")
|
|
11525
11528
|
}
|
|
@@ -11573,7 +11576,7 @@ var je = {
|
|
|
11573
11576
|
}
|
|
11574
11577
|
}]), r;
|
|
11575
11578
|
}(U);
|
|
11576
|
-
function
|
|
11579
|
+
function Bt(a) {
|
|
11577
11580
|
return a ? "background:".concat(a, ";") : "";
|
|
11578
11581
|
}
|
|
11579
11582
|
var Ea = /* @__PURE__ */ function(a) {
|
|
@@ -11633,9 +11636,9 @@ var Ea = /* @__PURE__ */ function(a) {
|
|
|
11633
11636
|
var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
|
|
11634
11637
|
if (n) {
|
|
11635
11638
|
var s = this.config, l = s.mode, u = s.height, c = {
|
|
11636
|
-
cached:
|
|
11637
|
-
played:
|
|
11638
|
-
progress:
|
|
11639
|
+
cached: Bt(i.cachedColor),
|
|
11640
|
+
played: Bt(i.playedColor),
|
|
11641
|
+
progress: Bt(i.progressColor),
|
|
11639
11642
|
height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
|
|
11640
11643
|
}, h = l === "show" ? "xg-mini-progress-show" : "";
|
|
11641
11644
|
return '<xg-mini-progress class="xg-mini-progress '.concat(h, '" style="').concat(c.progress, " ").concat(c.height, `">
|
|
@@ -11679,7 +11682,7 @@ function xa() {
|
|
|
11679
11682
|
return !1;
|
|
11680
11683
|
}
|
|
11681
11684
|
}
|
|
11682
|
-
var
|
|
11685
|
+
var lt = null, Pa = /* @__PURE__ */ function(a) {
|
|
11683
11686
|
P(r, a);
|
|
11684
11687
|
var o = I(r);
|
|
11685
11688
|
function r() {
|
|
@@ -11720,16 +11723,16 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
11720
11723
|
x: 0,
|
|
11721
11724
|
y: 0,
|
|
11722
11725
|
pi: 0
|
|
11723
|
-
}, 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 !== We.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(
|
|
11726
|
+
}, 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 !== We.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(bt, function() {
|
|
11724
11727
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
11725
11728
|
}), s !== We.POSTER && (s !== We.FIRST_FRAME && (this.on(Ne, function() {
|
|
11726
11729
|
e.stop();
|
|
11727
11730
|
}), this.on(re, function() {
|
|
11728
11731
|
var u = e.config.startInterval;
|
|
11729
11732
|
e._checkIfCanStart() && e.start(0, u);
|
|
11730
|
-
}), this.on(
|
|
11733
|
+
}), this.on(qe, function() {
|
|
11731
11734
|
e.stop();
|
|
11732
|
-
})), this.on(
|
|
11735
|
+
})), this.on(Ce, this.onLoadedData), this.on(ei, function() {
|
|
11733
11736
|
e._isLoaded = !1, e.stop();
|
|
11734
11737
|
}), document.addEventListener("visibilitychange", this.onVisibilitychange)));
|
|
11735
11738
|
}
|
|
@@ -11873,7 +11876,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
11873
11876
|
}, {
|
|
11874
11877
|
key: "isSupport",
|
|
11875
11878
|
get: function() {
|
|
11876
|
-
return typeof
|
|
11879
|
+
return typeof lt == "boolean" || (lt = xa()), lt;
|
|
11877
11880
|
}
|
|
11878
11881
|
}, {
|
|
11879
11882
|
key: "supportCanvasFilter",
|
|
@@ -11956,7 +11959,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
11956
11959
|
FORWARD: "快进中",
|
|
11957
11960
|
LIVE_TIP: "直播"
|
|
11958
11961
|
}
|
|
11959
|
-
}, Je = "info",
|
|
11962
|
+
}, Je = "info", Ht = hn, Aa = /* @__PURE__ */ function(a) {
|
|
11960
11963
|
P(r, a);
|
|
11961
11964
|
var o = I(r);
|
|
11962
11965
|
function r() {
|
|
@@ -11995,7 +11998,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
11995
11998
|
}, {
|
|
11996
11999
|
key: "afterCreate",
|
|
11997
12000
|
value: function() {
|
|
11998
|
-
this.reset(), this.on(
|
|
12001
|
+
this.reset(), this.on(vt, this._recordUserActions), this.on(Ht.STATS_INFO, this._recordInfo), this.on(Ht.STATS_DOWNLOAD, this._downloadStats), this.on(Ht.STATS_RESET, this._onReset);
|
|
11999
12002
|
}
|
|
12000
12003
|
}, {
|
|
12001
12004
|
key: "destroy",
|
|
@@ -12100,7 +12103,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
12100
12103
|
return {};
|
|
12101
12104
|
}
|
|
12102
12105
|
}]), r;
|
|
12103
|
-
}(xe),
|
|
12106
|
+
}(xe), Cn = /* @__PURE__ */ function(a) {
|
|
12104
12107
|
P(r, a);
|
|
12105
12108
|
var o = I(r);
|
|
12106
12109
|
function r() {
|
|
@@ -12122,8 +12125,8 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
12122
12125
|
console.log("GapJump bufferRange ", c.start(p), c.end(p));
|
|
12123
12126
|
var m = c.start(p) + 0.1, _ = l.media.duration;
|
|
12124
12127
|
if (!(m > _)) {
|
|
12125
|
-
var
|
|
12126
|
-
|
|
12128
|
+
var k = m - g, w = k <= h;
|
|
12129
|
+
k < r.BROWSER_GAP_TOLERANCE || w && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ? m + 0.1 : m), t.player && t.player.emit("detectGap"), console.log("gapJump gapIndex", p, " isGapSamll:", w, " currentTime:", l.media.currentTime, " jumpSize:", g - l.media.currentTime), m !== 0.08 && l && l.emit("log", {
|
|
12127
12130
|
type: "oneevent",
|
|
12128
12131
|
end_type: "gap",
|
|
12129
12132
|
vid: l.config.vid,
|
|
@@ -12141,7 +12144,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
12141
12144
|
key: "afterCreate",
|
|
12142
12145
|
value: function() {
|
|
12143
12146
|
var e = this, i = this.config.useGapJump;
|
|
12144
|
-
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(
|
|
12147
|
+
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(st, this.onGapJump), this.on(re, function() {
|
|
12145
12148
|
e.hasPlayed = !0;
|
|
12146
12149
|
}), this.on(Ct, function() {
|
|
12147
12150
|
e.seekingEventReceived = !0;
|
|
@@ -12189,7 +12192,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
12189
12192
|
}
|
|
12190
12193
|
}]), r;
|
|
12191
12194
|
}(U);
|
|
12192
|
-
|
|
12195
|
+
Cn.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
12193
12196
|
var La = /* @__PURE__ */ function(a) {
|
|
12194
12197
|
P(r, a);
|
|
12195
12198
|
var o = I(r);
|
|
@@ -12214,7 +12217,7 @@ var La = /* @__PURE__ */ function(a) {
|
|
|
12214
12217
|
key: "afterCreate",
|
|
12215
12218
|
value: function() {
|
|
12216
12219
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
12217
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(
|
|
12220
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(st, this.onWaiting), this.on([Qt, ye], function() {
|
|
12218
12221
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
12219
12222
|
}), this.on(re, function() {
|
|
12220
12223
|
e.hasPlayed = !0;
|
|
@@ -12236,7 +12239,7 @@ var La = /* @__PURE__ */ function(a) {
|
|
|
12236
12239
|
};
|
|
12237
12240
|
}
|
|
12238
12241
|
}]), r;
|
|
12239
|
-
}(U), Ge = "cdn",
|
|
12242
|
+
}(U), Ge = "cdn", ut = ["cdn"], Da = /* @__PURE__ */ function(a) {
|
|
12240
12243
|
P(r, a);
|
|
12241
12244
|
var o = I(r);
|
|
12242
12245
|
function r() {
|
|
@@ -12255,7 +12258,7 @@ var La = /* @__PURE__ */ function(a) {
|
|
|
12255
12258
|
}), y(v(t), "startTimer", function() {
|
|
12256
12259
|
f.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
|
|
12257
12260
|
}), y(v(t), "initSpeedList", function() {
|
|
12258
|
-
t.speedListCache = {},
|
|
12261
|
+
t.speedListCache = {}, ut.forEach(function(s) {
|
|
12259
12262
|
t.speedListCache[s] = [];
|
|
12260
12263
|
});
|
|
12261
12264
|
}), y(v(t), "_onRealSpeedChange", function(s) {
|
|
@@ -12268,8 +12271,8 @@ var La = /* @__PURE__ */ function(a) {
|
|
|
12268
12271
|
try {
|
|
12269
12272
|
var g = (/* @__PURE__ */ new Date()).getTime(), p = null, m = new XMLHttpRequest();
|
|
12270
12273
|
t.xhr = m, m.open("GET", d);
|
|
12271
|
-
var _ = {},
|
|
12272
|
-
_.Range = "bytes=" +
|
|
12274
|
+
var _ = {}, k = Math.floor(Math.random() * 10);
|
|
12275
|
+
_.Range = "bytes=" + k + "-" + (u + k), _ && Object.keys(_).forEach(function(w) {
|
|
12273
12276
|
m.setRequestHeader(w, _[w]);
|
|
12274
12277
|
}), m.onreadystatechange = function() {
|
|
12275
12278
|
if (m.readyState === 4) {
|
|
@@ -12295,13 +12298,13 @@ var La = /* @__PURE__ */ function(a) {
|
|
|
12295
12298
|
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ge, l = t.getSpeed(s), u = v(t), c = u.player;
|
|
12296
12299
|
if (c)
|
|
12297
12300
|
if (s === Ge)
|
|
12298
|
-
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(
|
|
12301
|
+
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit($t, {
|
|
12299
12302
|
speed: l,
|
|
12300
12303
|
realTimeSpeed: c.realTimeSpeed
|
|
12301
12304
|
}));
|
|
12302
12305
|
else {
|
|
12303
12306
|
var h = t.getSpeedName("avg", s);
|
|
12304
|
-
(!c[h] || l !== c[h]) && (c[h] = l, c.emit(
|
|
12307
|
+
(!c[h] || l !== c[h]) && (c[h] = l, c.emit($t, {
|
|
12305
12308
|
speed: l,
|
|
12306
12309
|
realTimeSpeed: c.realTimeSpeed
|
|
12307
12310
|
}));
|
|
@@ -12312,7 +12315,7 @@ var La = /* @__PURE__ */ function(a) {
|
|
|
12312
12315
|
key: "afterCreate",
|
|
12313
12316
|
value: function() {
|
|
12314
12317
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
12315
|
-
(n == null ? void 0 : n.length) > 0 &&
|
|
12318
|
+
(n == null ? void 0 : n.length) > 0 && ut.push.apply(ut, fe(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Ce, ht], this.startTimer);
|
|
12316
12319
|
}
|
|
12317
12320
|
}, {
|
|
12318
12321
|
key: "getSpeedName",
|
|
@@ -12339,7 +12342,7 @@ var La = /* @__PURE__ */ function(a) {
|
|
|
12339
12342
|
key: "destroy",
|
|
12340
12343
|
value: function() {
|
|
12341
12344
|
var e = this;
|
|
12342
|
-
this.off("real_time_speed", this._onRealSpeedChange), this.off([
|
|
12345
|
+
this.off("real_time_speed", this._onRealSpeedChange), this.off([Ce, ht], this.startTimer), ut.forEach(function(i) {
|
|
12343
12346
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
12344
12347
|
}), 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);
|
|
12345
12348
|
}
|
|
@@ -12376,7 +12379,7 @@ var La = /* @__PURE__ */ function(a) {
|
|
|
12376
12379
|
var l = s.getVideoPlaybackQuality;
|
|
12377
12380
|
l && (this.on(re, function() {
|
|
12378
12381
|
e._startTick();
|
|
12379
|
-
}), this.on(
|
|
12382
|
+
}), this.on(qe, function() {
|
|
12380
12383
|
e._stopTick();
|
|
12381
12384
|
}), this.on(Me, function() {
|
|
12382
12385
|
e._stopTick();
|
|
@@ -12472,24 +12475,24 @@ var La = /* @__PURE__ */ function(a) {
|
|
|
12472
12475
|
}
|
|
12473
12476
|
}]), r;
|
|
12474
12477
|
}(U);
|
|
12475
|
-
|
|
12478
|
+
Ke.use(Ia);
|
|
12476
12479
|
var Oa = /* @__PURE__ */ E(function a(o, r) {
|
|
12477
12480
|
var t, e, i;
|
|
12478
12481
|
T(this, a);
|
|
12479
|
-
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Zo, jo, Ea, wa, qo], u = [].concat(l, [Wo, Xo, na, la, va, ma, ha, da, ta, oa]), c = [wo, To, So, Uo, xo,
|
|
12480
|
-
this.plugins = [Aa,
|
|
12482
|
+
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Zo, jo, Ea, wa, qo], u = [].concat(l, [Wo, Xo, na, la, va, ma, ha, da, ta, oa]), c = [wo, To, So, Uo, xo, ka, Ca, Ta, Lo];
|
|
12483
|
+
this.plugins = [Aa, Co].concat(fe(u), c, [Cn, La]);
|
|
12481
12484
|
var h = n ? "mobile" : R.device;
|
|
12482
12485
|
switch (h) {
|
|
12483
12486
|
case "pc":
|
|
12484
|
-
(t = this.plugins).push.apply(t, [Mi,
|
|
12487
|
+
(t = this.plugins).push.apply(t, [Mi, Mt, Bi, Da, Ra]);
|
|
12485
12488
|
break;
|
|
12486
12489
|
case "mobile":
|
|
12487
12490
|
(e = this.plugins).push.apply(e, [No]);
|
|
12488
12491
|
break;
|
|
12489
12492
|
default:
|
|
12490
|
-
(i = this.plugins).push.apply(i, [Mi,
|
|
12493
|
+
(i = this.plugins).push.apply(i, [Mi, Mt, Bi]);
|
|
12491
12494
|
}
|
|
12492
|
-
(R.os.isIpad || h === "pc") && this.plugins.push(Pa), R.os.isIpad && this.plugins.push(
|
|
12495
|
+
(R.os.isIpad || h === "pc") && this.plugins.push(Pa), R.os.isIpad && this.plugins.push(Mt), this.ignores = [], this.i18n = [];
|
|
12493
12496
|
}), he = /* @__PURE__ */ function(a) {
|
|
12494
12497
|
P(r, a);
|
|
12495
12498
|
var o = I(r);
|
|
@@ -12497,21 +12500,21 @@ var Oa = /* @__PURE__ */ E(function a(o, r) {
|
|
|
12497
12500
|
return T(this, r), o.apply(this, arguments);
|
|
12498
12501
|
}
|
|
12499
12502
|
return E(r);
|
|
12500
|
-
}(
|
|
12503
|
+
}(Et);
|
|
12501
12504
|
y(he, "defaultPreset", Oa);
|
|
12502
12505
|
y(he, "Util", f);
|
|
12503
12506
|
y(he, "Sniffer", R);
|
|
12504
|
-
y(he, "Errors",
|
|
12507
|
+
y(he, "Errors", ft);
|
|
12505
12508
|
y(he, "Events", Ys);
|
|
12506
12509
|
y(he, "Plugin", U);
|
|
12507
12510
|
y(he, "BasePlugin", xe);
|
|
12508
|
-
y(he, "I18N",
|
|
12509
|
-
y(he, "STATE_CLASS",
|
|
12511
|
+
y(he, "I18N", Ke);
|
|
12512
|
+
y(he, "STATE_CLASS", C);
|
|
12510
12513
|
y(he, "InstManager", mn);
|
|
12511
12514
|
const Fa = ["id"], Ma = /* @__PURE__ */ se({
|
|
12512
12515
|
name: "ElImageViewer",
|
|
12513
12516
|
__name: "Player",
|
|
12514
|
-
props: /* @__PURE__ */
|
|
12517
|
+
props: /* @__PURE__ */ ct({
|
|
12515
12518
|
url: {
|
|
12516
12519
|
type: String,
|
|
12517
12520
|
default: ""
|
|
@@ -12532,12 +12535,12 @@ const Fa = ["id"], Ma = /* @__PURE__ */ se({
|
|
|
12532
12535
|
},
|
|
12533
12536
|
modelModifiers: {}
|
|
12534
12537
|
}),
|
|
12535
|
-
emits: /* @__PURE__ */
|
|
12538
|
+
emits: /* @__PURE__ */ ct({
|
|
12536
12539
|
close: () => !0
|
|
12537
12540
|
}, ["update:modelValue"]),
|
|
12538
12541
|
setup(a, { emit: o }) {
|
|
12539
12542
|
let r = null;
|
|
12540
|
-
const t = a, { cLoadUrl: e } = Wi(t), i = K(() =>
|
|
12543
|
+
const t = a, { cLoadUrl: e } = Wi(t), i = K(() => tt(e.value, t.url)), n = {
|
|
12541
12544
|
width: "100%",
|
|
12542
12545
|
height: "100%",
|
|
12543
12546
|
// 是否自动播放
|
|
@@ -12558,7 +12561,7 @@ const Fa = ["id"], Ma = /* @__PURE__ */ se({
|
|
|
12558
12561
|
}, s = K(() => ({
|
|
12559
12562
|
...n,
|
|
12560
12563
|
...t.config
|
|
12561
|
-
})), l = o, u =
|
|
12564
|
+
})), l = o, u = Xt(a, "modelValue"), c = ji(), h = Pn("image-viewer");
|
|
12562
12565
|
function d() {
|
|
12563
12566
|
l("close"), u.value = !1, r.destroy();
|
|
12564
12567
|
}
|
|
@@ -12643,7 +12646,7 @@ const Fa = ["id"], Ma = /* @__PURE__ */ se({
|
|
|
12643
12646
|
};
|
|
12644
12647
|
}
|
|
12645
12648
|
});
|
|
12646
|
-
const Na = /* @__PURE__ */
|
|
12649
|
+
const Na = /* @__PURE__ */ nt(Ma, [["__scopeId", "data-v-b301aa7d"]]), Ba = Pe(Na), Ha = /* @__PURE__ */ se({
|
|
12647
12650
|
__name: "IkDescription",
|
|
12648
12651
|
props: {
|
|
12649
12652
|
showIcon: {
|
|
@@ -12718,25 +12721,25 @@ const Na = /* @__PURE__ */ it(Ma, [["__scopeId", "data-v-b301aa7d"]]), Ba = Pe(N
|
|
|
12718
12721
|
const n = Ee("el-descriptions-item"), s = Ee("el-descriptions");
|
|
12719
12722
|
return x(), ce(
|
|
12720
12723
|
s,
|
|
12721
|
-
|
|
12724
|
+
zt({ class: "margin-top" }, { ...a.titleProps, ...o }),
|
|
12722
12725
|
{
|
|
12723
12726
|
extra: q(() => [
|
|
12724
12727
|
pe(e.$slots, "extra", {}, void 0, !0)
|
|
12725
12728
|
]),
|
|
12726
12729
|
default: q(() => [
|
|
12727
12730
|
(x(!0), O(
|
|
12728
|
-
|
|
12731
|
+
$e,
|
|
12729
12732
|
null,
|
|
12730
|
-
|
|
12733
|
+
Ut(a.listData, (l) => (x(), ce(
|
|
12731
12734
|
n,
|
|
12732
|
-
|
|
12735
|
+
zt({
|
|
12733
12736
|
key: l[r.id],
|
|
12734
12737
|
ref_for: !0
|
|
12735
12738
|
}, l[r.props]),
|
|
12736
12739
|
{
|
|
12737
12740
|
label: q(() => [
|
|
12738
12741
|
pe(e.$slots, l[r.label], {}, () => [
|
|
12739
|
-
|
|
12742
|
+
Ye(
|
|
12740
12743
|
_e(l[r.label]),
|
|
12741
12744
|
1
|
|
12742
12745
|
/* TEXT */
|
|
@@ -12745,7 +12748,7 @@ const Na = /* @__PURE__ */ it(Ma, [["__scopeId", "data-v-b301aa7d"]]), Ba = Pe(N
|
|
|
12745
12748
|
]),
|
|
12746
12749
|
default: q(() => [
|
|
12747
12750
|
pe(e.$slots, `${l[r.label]}_value`, {}, () => [
|
|
12748
|
-
|
|
12751
|
+
Ye(
|
|
12749
12752
|
_e(l[r.value]) + " ",
|
|
12750
12753
|
1
|
|
12751
12754
|
/* TEXT */
|
|
@@ -12758,7 +12761,7 @@ const Na = /* @__PURE__ */ it(Ma, [["__scopeId", "data-v-b301aa7d"]]), Ba = Pe(N
|
|
|
12758
12761
|
},
|
|
12759
12762
|
{
|
|
12760
12763
|
default: q(() => [
|
|
12761
|
-
|
|
12764
|
+
Ye(
|
|
12762
12765
|
_e(l[r.value].value),
|
|
12763
12766
|
1
|
|
12764
12767
|
/* TEXT */
|
|
@@ -12802,7 +12805,7 @@ const Na = /* @__PURE__ */ it(Ma, [["__scopeId", "data-v-b301aa7d"]]), Ba = Pe(N
|
|
|
12802
12805
|
};
|
|
12803
12806
|
}
|
|
12804
12807
|
});
|
|
12805
|
-
const Ua = /* @__PURE__ */
|
|
12808
|
+
const Ua = /* @__PURE__ */ nt(Ha, [["__scopeId", "data-v-a15afa30"]]), Wa = Pe(Ua);
|
|
12806
12809
|
export {
|
|
12807
12810
|
Wa as IkDescriptions,
|
|
12808
12811
|
Wa as default
|