iking-web-ui-pro 0.2.26 → 0.2.28
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/IKPreviewFile/ik.index.es.js +353 -342
- package/dist/IKPreviewFile/ik.index.umd.js +44 -44
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +935 -924
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +38 -38
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +95 -85
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +430 -419
- package/dist/IkDescription/ik.index.umd.js +45 -45
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +1028 -1017
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +39 -39
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +246 -236
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +151 -141
- package/dist/IkUploadFile/ik.index.umd.js +2 -2
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/index.es.js +5210 -5199
- package/dist/index.umd.js +64 -64
- package/dist/src/components/IKPreviewFile/index.d.ts +16 -4
- package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +6 -2
- package/dist/src/components/IkUploadFile/index.d.ts +6 -0
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as le, computed as Y, openBlock as L, createElementBlock as N, createElementVNode as S, inject as Xe, mergeModels as at, useModel as Kt, ref as Ke, reactive as kn, watch as Ui, nextTick as zi, resolveComponent as $e, Fragment as Ze, createBlock as
|
|
1
|
+
import { defineComponent as le, computed as Y, openBlock as L, createElementBlock as N, createElementVNode as S, inject as Xe, mergeModels as at, useModel as Kt, ref as Ke, reactive as kn, watch as Ui, nextTick as zi, resolveComponent as $e, Fragment as Ze, createBlock as Le, createCommentVNode as he, createVNode as J, unref as j, withCtx as de, normalizeClass as Q, normalizeStyle as oe, createTextVNode as Bt, toDisplayString as Ge, h as wn, mergeProps as bn, createSlots as Tn, renderSlot as Ie, Teleport as En, Transition as Sn, renderList as ai, withModifiers as li } from "vue";
|
|
2
2
|
import { buildUUID as Vi, ikColor as xn, paramType as Pn, ikFile as In } from "iking-utils-pro";
|
|
3
3
|
import { useNamespace as An } from "element-plus";
|
|
4
4
|
const De = (a, o) => {
|
|
@@ -711,7 +711,7 @@ const yt = (a, o) => {
|
|
|
711
711
|
}), s = (u) => {
|
|
712
712
|
var c, h, d, g, p, m, _;
|
|
713
713
|
try {
|
|
714
|
-
const
|
|
714
|
+
const w = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, b = w[t.value.url] || (w == null ? void 0 : w.id) || w.attachmentId, C = (h = w[t.value.suffix] || w.attachmentSuffix) == null ? void 0 : h.toLowerCase(), F = w[t.value.name] || (w == null ? void 0 : w.attachmentName) || (w == null ? void 0 : w.originName);
|
|
715
715
|
if (i.value = {
|
|
716
716
|
...u,
|
|
717
717
|
name: u[t.value.name],
|
|
@@ -722,7 +722,7 @@ const yt = (a, o) => {
|
|
|
722
722
|
} else if (u && Ht(u, t.value) === "video") {
|
|
723
723
|
n.video = !0;
|
|
724
724
|
return;
|
|
725
|
-
} else if ((((d = o.onlyOfficeConfig) == null ? void 0 : d.accept) || o.onlyOfficeAccept).includes(
|
|
725
|
+
} else if ((((d = o.onlyOfficeConfig) == null ? void 0 : d.accept) || o.onlyOfficeAccept).includes(C)) {
|
|
726
726
|
n.office = !0, e.value = {
|
|
727
727
|
...o.onlyOfficeConfig,
|
|
728
728
|
editorConfig: {
|
|
@@ -736,17 +736,17 @@ const yt = (a, o) => {
|
|
|
736
736
|
},
|
|
737
737
|
document: {
|
|
738
738
|
key: Vi(),
|
|
739
|
-
title:
|
|
739
|
+
title: F,
|
|
740
740
|
url: Qe(o.loadUrl, b),
|
|
741
|
-
fileType:
|
|
741
|
+
fileType: C,
|
|
742
742
|
...((_ = o.onlyOfficeConfig) == null ? void 0 : _.document) || {}
|
|
743
743
|
},
|
|
744
|
-
documentType: Dn(
|
|
744
|
+
documentType: Dn(C)
|
|
745
745
|
};
|
|
746
746
|
return;
|
|
747
747
|
}
|
|
748
|
-
} catch (
|
|
749
|
-
console.info("预览错误: ",
|
|
748
|
+
} catch (w) {
|
|
749
|
+
console.info("预览错误: ", w);
|
|
750
750
|
}
|
|
751
751
|
};
|
|
752
752
|
Ui([r, o.file], ([u, c]) => {
|
|
@@ -764,7 +764,7 @@ const yt = (a, o) => {
|
|
|
764
764
|
Ze,
|
|
765
765
|
{ key: 0 },
|
|
766
766
|
[
|
|
767
|
-
(d = i.value) != null && d.url && n.image ? (L(),
|
|
767
|
+
(d = i.value) != null && d.url && n.image ? (L(), Le(h, {
|
|
768
768
|
key: 0,
|
|
769
769
|
onClose: c[0] || (c[0] = (m) => l()),
|
|
770
770
|
ref: "previewImgRef",
|
|
@@ -773,12 +773,12 @@ const yt = (a, o) => {
|
|
|
773
773
|
}, null, 8, ["url-list"])) : he("v-if", !0),
|
|
774
774
|
he(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
775
775
|
he(" 文档类 "),
|
|
776
|
-
|
|
776
|
+
J(j(xa), {
|
|
777
777
|
modelValue: n.video,
|
|
778
778
|
"onUpdate:modelValue": c[1] || (c[1] = (m) => n.video = m),
|
|
779
779
|
url: (p = i.value) == null ? void 0 : p.url
|
|
780
780
|
}, null, 8, ["modelValue", "url"]),
|
|
781
|
-
|
|
781
|
+
J(j(ts), {
|
|
782
782
|
modelValue: n.office,
|
|
783
783
|
"onUpdate:modelValue": c[2] || (c[2] = (m) => n.office = m),
|
|
784
784
|
draggable: "",
|
|
@@ -796,7 +796,7 @@ const yt = (a, o) => {
|
|
|
796
796
|
default: de(() => {
|
|
797
797
|
var m;
|
|
798
798
|
return [
|
|
799
|
-
|
|
799
|
+
J(j(cs), {
|
|
800
800
|
"config-options": e.value,
|
|
801
801
|
"document-server-url": ((m = a.onlyOfficeConfig) == null ? void 0 : m.serverUrl) || a.onlyofficeServer
|
|
802
802
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -888,7 +888,7 @@ const zr = De(Ur), Vr = {
|
|
|
888
888
|
"i",
|
|
889
889
|
{
|
|
890
890
|
key: 0,
|
|
891
|
-
class:
|
|
891
|
+
class: Q(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
892
892
|
[i.name]: t.value === "unocss",
|
|
893
893
|
"show-bg": r.value.showBg || r.value.bg,
|
|
894
894
|
default: r.value.size === "default",
|
|
@@ -909,7 +909,7 @@ const zr = De(Ur), Vr = {
|
|
|
909
909
|
"i",
|
|
910
910
|
{
|
|
911
911
|
key: 0,
|
|
912
|
-
class:
|
|
912
|
+
class: Q(`iksig ${r.value.name}`),
|
|
913
913
|
style: oe(e.value)
|
|
914
914
|
},
|
|
915
915
|
null,
|
|
@@ -927,7 +927,7 @@ const zr = De(Ur), Vr = {
|
|
|
927
927
|
"i",
|
|
928
928
|
{
|
|
929
929
|
key: 3,
|
|
930
|
-
class:
|
|
930
|
+
class: Q(r.value.name),
|
|
931
931
|
style: oe(e.value)
|
|
932
932
|
},
|
|
933
933
|
null,
|
|
@@ -937,7 +937,7 @@ const zr = De(Ur), Vr = {
|
|
|
937
937
|
],
|
|
938
938
|
6
|
|
939
939
|
/* CLASS, STYLE */
|
|
940
|
-
)) : (L(),
|
|
940
|
+
)) : (L(), Le(s, {
|
|
941
941
|
key: 1,
|
|
942
942
|
content: r.value.title,
|
|
943
943
|
placement: "top"
|
|
@@ -946,7 +946,7 @@ const zr = De(Ur), Vr = {
|
|
|
946
946
|
S(
|
|
947
947
|
"i",
|
|
948
948
|
{
|
|
949
|
-
class:
|
|
949
|
+
class: Q(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
950
950
|
[i.name]: t.value === "unocss",
|
|
951
951
|
"show-bg": r.value.showBg || r.value.bg,
|
|
952
952
|
default: r.value.size === "default",
|
|
@@ -965,7 +965,7 @@ const zr = De(Ur), Vr = {
|
|
|
965
965
|
"i",
|
|
966
966
|
{
|
|
967
967
|
key: 0,
|
|
968
|
-
class:
|
|
968
|
+
class: Q(`iksig ${r.value.name}`),
|
|
969
969
|
style: oe(e.value)
|
|
970
970
|
},
|
|
971
971
|
null,
|
|
@@ -983,7 +983,7 @@ const zr = De(Ur), Vr = {
|
|
|
983
983
|
"i",
|
|
984
984
|
{
|
|
985
985
|
key: 3,
|
|
986
|
-
class:
|
|
986
|
+
class: Q(r.value.name),
|
|
987
987
|
style: oe(e.value)
|
|
988
988
|
},
|
|
989
989
|
null,
|
|
@@ -998,7 +998,7 @@ const zr = De(Ur), Vr = {
|
|
|
998
998
|
_: 1
|
|
999
999
|
/* STABLE */
|
|
1000
1000
|
}, 8, ["content"]))
|
|
1001
|
-
])) : (L(),
|
|
1001
|
+
])) : (L(), Le(l, {
|
|
1002
1002
|
key: 1,
|
|
1003
1003
|
type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
|
|
1004
1004
|
}, {
|
|
@@ -1028,15 +1028,25 @@ const qr = /* @__PURE__ */ yt(Xr, [["__scopeId", "data-v-52806adf"]]), je = De(q
|
|
|
1028
1028
|
}
|
|
1029
1029
|
},
|
|
1030
1030
|
setup(a) {
|
|
1031
|
-
return (o, r) => (L(),
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1031
|
+
return (o, r) => (L(), N(
|
|
1032
|
+
"div",
|
|
1033
|
+
{
|
|
1034
|
+
class: Q({ "exit-main-page-maximize": a.showBg && a.fullscreen })
|
|
1035
|
+
},
|
|
1036
|
+
[
|
|
1037
|
+
J(j(je), {
|
|
1038
|
+
name: "iksvg_guanbidanchuang",
|
|
1039
|
+
title: "关闭",
|
|
1040
|
+
size: 20,
|
|
1041
|
+
error: ""
|
|
1042
|
+
})
|
|
1043
|
+
],
|
|
1044
|
+
2
|
|
1045
|
+
/* CLASS */
|
|
1046
|
+
));
|
|
1037
1047
|
}
|
|
1038
1048
|
});
|
|
1039
|
-
const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-
|
|
1049
|
+
const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-da39e979"]]), Qr = { class: "base-header" }, es = /* @__PURE__ */ le({
|
|
1040
1050
|
__name: "IkBaseDialog",
|
|
1041
1051
|
props: /* @__PURE__ */ at({
|
|
1042
1052
|
title: { default: "" },
|
|
@@ -1069,7 +1079,7 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-e27fb022"]]), Qr = { cl
|
|
|
1069
1079
|
});
|
|
1070
1080
|
return (n, s) => {
|
|
1071
1081
|
const l = $e("el-dialog");
|
|
1072
|
-
return L(),
|
|
1082
|
+
return L(), Le(l, bn({
|
|
1073
1083
|
modelValue: r.value,
|
|
1074
1084
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
|
|
1075
1085
|
}, n.$attrs, {
|
|
@@ -1079,7 +1089,7 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-e27fb022"]]), Qr = { cl
|
|
|
1079
1089
|
"modal-class": "baseDialog"
|
|
1080
1090
|
}), Tn({
|
|
1081
1091
|
icon: de(() => [
|
|
1082
|
-
|
|
1092
|
+
Ie(n.$slots, "title", {}, () => [
|
|
1083
1093
|
Bt(
|
|
1084
1094
|
Ge(n.title),
|
|
1085
1095
|
1
|
|
@@ -1089,7 +1099,7 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-e27fb022"]]), Qr = { cl
|
|
|
1089
1099
|
]),
|
|
1090
1100
|
header: de(() => [
|
|
1091
1101
|
S("div", Qr, [
|
|
1092
|
-
|
|
1102
|
+
Ie(n.$slots, "header", {}, () => [
|
|
1093
1103
|
Bt(
|
|
1094
1104
|
Ge(n.title),
|
|
1095
1105
|
1
|
|
@@ -1097,7 +1107,7 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-e27fb022"]]), Qr = { cl
|
|
|
1097
1107
|
)
|
|
1098
1108
|
])
|
|
1099
1109
|
]),
|
|
1100
|
-
n.$attrs.showClose ? (L(),
|
|
1110
|
+
n.$attrs.showClose ? (L(), Le(j(je), {
|
|
1101
1111
|
key: 0,
|
|
1102
1112
|
onClick: e,
|
|
1103
1113
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
@@ -1106,7 +1116,7 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-e27fb022"]]), Qr = { cl
|
|
|
1106
1116
|
}, null, 8, ["name", "title"])) : he("v-if", !0)
|
|
1107
1117
|
]),
|
|
1108
1118
|
default: de(() => [
|
|
1109
|
-
|
|
1119
|
+
Ie(n.$slots, "default")
|
|
1110
1120
|
]),
|
|
1111
1121
|
_: 2
|
|
1112
1122
|
/* DYNAMIC */
|
|
@@ -1114,7 +1124,7 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-e27fb022"]]), Qr = { cl
|
|
|
1114
1124
|
n.$slots.footer ? {
|
|
1115
1125
|
name: "footer",
|
|
1116
1126
|
fn: de(() => [
|
|
1117
|
-
|
|
1127
|
+
Ie(n.$slots, "footer")
|
|
1118
1128
|
]),
|
|
1119
1129
|
key: "0"
|
|
1120
1130
|
} : void 0
|
|
@@ -1464,7 +1474,7 @@ const ls = /* @__PURE__ */ le({
|
|
|
1464
1474
|
style: oe({ height: o.officeHeight })
|
|
1465
1475
|
},
|
|
1466
1476
|
[
|
|
1467
|
-
|
|
1477
|
+
J(j(Yt), {
|
|
1468
1478
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1469
1479
|
ref: "editorRef",
|
|
1470
1480
|
"document-server-url": a.documentServerUrl,
|
|
@@ -1695,9 +1705,9 @@ var Gi = { exports: {} };
|
|
|
1695
1705
|
var m = r ? r + u : u;
|
|
1696
1706
|
if (!this._events[m])
|
|
1697
1707
|
return !1;
|
|
1698
|
-
var _ = this._events[m],
|
|
1708
|
+
var _ = this._events[m], w = arguments.length, b, C;
|
|
1699
1709
|
if (_.fn) {
|
|
1700
|
-
switch (_.once && this.removeListener(u, _.fn, void 0, !0),
|
|
1710
|
+
switch (_.once && this.removeListener(u, _.fn, void 0, !0), w) {
|
|
1701
1711
|
case 1:
|
|
1702
1712
|
return _.fn.call(_.context), !0;
|
|
1703
1713
|
case 2:
|
|
@@ -1711,30 +1721,30 @@ var Gi = { exports: {} };
|
|
|
1711
1721
|
case 6:
|
|
1712
1722
|
return _.fn.call(_.context, c, h, d, g, p), !0;
|
|
1713
1723
|
}
|
|
1714
|
-
for (
|
|
1715
|
-
b[
|
|
1724
|
+
for (C = 1, b = new Array(w - 1); C < w; C++)
|
|
1725
|
+
b[C - 1] = arguments[C];
|
|
1716
1726
|
_.fn.apply(_.context, b);
|
|
1717
1727
|
} else {
|
|
1718
|
-
var
|
|
1719
|
-
for (
|
|
1720
|
-
switch (_[
|
|
1728
|
+
var F = _.length, R;
|
|
1729
|
+
for (C = 0; C < F; C++)
|
|
1730
|
+
switch (_[C].once && this.removeListener(u, _[C].fn, void 0, !0), w) {
|
|
1721
1731
|
case 1:
|
|
1722
|
-
_[
|
|
1732
|
+
_[C].fn.call(_[C].context);
|
|
1723
1733
|
break;
|
|
1724
1734
|
case 2:
|
|
1725
|
-
_[
|
|
1735
|
+
_[C].fn.call(_[C].context, c);
|
|
1726
1736
|
break;
|
|
1727
1737
|
case 3:
|
|
1728
|
-
_[
|
|
1738
|
+
_[C].fn.call(_[C].context, c, h);
|
|
1729
1739
|
break;
|
|
1730
1740
|
case 4:
|
|
1731
|
-
_[
|
|
1741
|
+
_[C].fn.call(_[C].context, c, h, d);
|
|
1732
1742
|
break;
|
|
1733
1743
|
default:
|
|
1734
1744
|
if (!b)
|
|
1735
|
-
for (
|
|
1736
|
-
b[
|
|
1737
|
-
_[
|
|
1745
|
+
for (R = 1, b = new Array(w - 1); R < w; R++)
|
|
1746
|
+
b[R - 1] = arguments[R];
|
|
1747
|
+
_[C].fn.apply(_[C].context, b);
|
|
1738
1748
|
}
|
|
1739
1749
|
}
|
|
1740
1750
|
return !0;
|
|
@@ -1752,7 +1762,7 @@ var Gi = { exports: {} };
|
|
|
1752
1762
|
if (p.fn)
|
|
1753
1763
|
p.fn === c && (!d || p.once) && (!h || p.context === h) && n(this, g);
|
|
1754
1764
|
else {
|
|
1755
|
-
for (var m = 0, _ = [],
|
|
1765
|
+
for (var m = 0, _ = [], w = p.length; m < w; m++)
|
|
1756
1766
|
(p[m].fn !== c || d && !p[m].once || h && p[m].context !== h) && _.push(p[m]);
|
|
1757
1767
|
_.length ? this._events[g] = _.length === 1 ? _[0] : _ : n(this, g);
|
|
1758
1768
|
}
|
|
@@ -1768,7 +1778,7 @@ var ys = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
1768
1778
|
info: "color: #525252; background-color: #90ee90;",
|
|
1769
1779
|
error: "color: #525252; background-color: red;",
|
|
1770
1780
|
warn: "color: #525252; background-color: yellow; "
|
|
1771
|
-
}, Et = "%c[xgplayer]",
|
|
1781
|
+
}, Et = "%c[xgplayer]", M = {
|
|
1772
1782
|
config: {
|
|
1773
1783
|
debug: ys ? 3 : 0
|
|
1774
1784
|
},
|
|
@@ -1792,7 +1802,7 @@ var ys = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
1792
1802
|
}
|
|
1793
1803
|
};
|
|
1794
1804
|
function _s(a) {
|
|
1795
|
-
a.logInfo =
|
|
1805
|
+
a.logInfo = M.logInfo.bind(a), a.logWarn = M.logWarn.bind(a), a.logError = M.logError.bind(a);
|
|
1796
1806
|
}
|
|
1797
1807
|
var Cs = /* @__PURE__ */ function() {
|
|
1798
1808
|
function a(o) {
|
|
@@ -1832,7 +1842,7 @@ f.createDomFromHtml = function(a) {
|
|
|
1832
1842
|
e.setAttribute(i, o[i]);
|
|
1833
1843
|
}), e) : null;
|
|
1834
1844
|
} catch (i) {
|
|
1835
|
-
return
|
|
1845
|
+
return M.logError("util.createDomFromHtml", i), null;
|
|
1836
1846
|
}
|
|
1837
1847
|
};
|
|
1838
1848
|
f.hasClass = function(a, o) {
|
|
@@ -1889,7 +1899,7 @@ f.findDom = function() {
|
|
|
1889
1899
|
try {
|
|
1890
1900
|
r = a.querySelector(o);
|
|
1891
1901
|
} catch (t) {
|
|
1892
|
-
|
|
1902
|
+
M.logError("util.findDom", t), o.indexOf("#") === 0 && (r = a.getElementById(o.slice(1)));
|
|
1893
1903
|
}
|
|
1894
1904
|
return r;
|
|
1895
1905
|
};
|
|
@@ -2249,56 +2259,56 @@ function ws(a, o, r) {
|
|
|
2249
2259
|
throw new TypeError("Expected a function");
|
|
2250
2260
|
o = +o || 0, Yi(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, o) : i, d = "trailing" in r ? !!r.trailing : d);
|
|
2251
2261
|
function p(H) {
|
|
2252
|
-
var
|
|
2253
|
-
return t = e = void 0, u = H, n = a.apply(re,
|
|
2262
|
+
var ee = t, re = e;
|
|
2263
|
+
return t = e = void 0, u = H, n = a.apply(re, ee), n;
|
|
2254
2264
|
}
|
|
2255
|
-
function m(H,
|
|
2256
|
-
return g ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(H)) : setTimeout(H,
|
|
2265
|
+
function m(H, ee) {
|
|
2266
|
+
return g ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(H)) : setTimeout(H, ee);
|
|
2257
2267
|
}
|
|
2258
2268
|
function _(H) {
|
|
2259
2269
|
if (g)
|
|
2260
2270
|
return window.cancelAnimationFrame(H);
|
|
2261
2271
|
clearTimeout(H);
|
|
2262
2272
|
}
|
|
2263
|
-
function
|
|
2264
|
-
return u = H, s = m(
|
|
2273
|
+
function w(H) {
|
|
2274
|
+
return u = H, s = m(F, o), c ? p(H) : n;
|
|
2265
2275
|
}
|
|
2266
2276
|
function b(H) {
|
|
2267
|
-
var
|
|
2277
|
+
var ee = H - l, re = H - u, se = o - ee;
|
|
2268
2278
|
return h ? Math.min(se, i - re) : se;
|
|
2269
2279
|
}
|
|
2270
|
-
function
|
|
2271
|
-
var
|
|
2272
|
-
return l === void 0 ||
|
|
2280
|
+
function C(H) {
|
|
2281
|
+
var ee = H - l, re = H - u;
|
|
2282
|
+
return l === void 0 || ee >= o || ee < 0 || h && re >= i;
|
|
2273
2283
|
}
|
|
2274
|
-
function
|
|
2284
|
+
function F() {
|
|
2275
2285
|
var H = Date.now();
|
|
2276
|
-
if (
|
|
2277
|
-
return
|
|
2278
|
-
s = m(
|
|
2286
|
+
if (C(H))
|
|
2287
|
+
return R(H);
|
|
2288
|
+
s = m(F, b(H));
|
|
2279
2289
|
}
|
|
2280
|
-
function
|
|
2290
|
+
function R(H) {
|
|
2281
2291
|
return s = void 0, d && t ? p(H) : (t = e = void 0, n);
|
|
2282
2292
|
}
|
|
2283
2293
|
function z() {
|
|
2284
2294
|
s !== void 0 && _(s), u = 0, t = l = e = s = void 0;
|
|
2285
2295
|
}
|
|
2286
2296
|
function D() {
|
|
2287
|
-
return s === void 0 ? n :
|
|
2297
|
+
return s === void 0 ? n : R(Date.now());
|
|
2288
2298
|
}
|
|
2289
2299
|
function q() {
|
|
2290
2300
|
return s !== void 0;
|
|
2291
2301
|
}
|
|
2292
2302
|
function G() {
|
|
2293
|
-
for (var H = Date.now(),
|
|
2294
|
-
se[
|
|
2295
|
-
if (t = se, e = this, l = H,
|
|
2303
|
+
for (var H = Date.now(), ee = C(H), re = arguments.length, se = new Array(re), Se = 0; Se < re; Se++)
|
|
2304
|
+
se[Se] = arguments[Se];
|
|
2305
|
+
if (t = se, e = this, l = H, ee) {
|
|
2296
2306
|
if (s === void 0)
|
|
2297
|
-
return
|
|
2307
|
+
return w(l);
|
|
2298
2308
|
if (h)
|
|
2299
|
-
return s = m(
|
|
2309
|
+
return s = m(F, o), p(l);
|
|
2300
2310
|
}
|
|
2301
|
-
return s === void 0 && (s = m(
|
|
2311
|
+
return s === void 0 && (s = m(F, o)), n;
|
|
2302
2312
|
}
|
|
2303
2313
|
return G.cancel = z, G.flush = D, G.pending = q, G;
|
|
2304
2314
|
}
|
|
@@ -2325,9 +2335,9 @@ function Es(a, o, r) {
|
|
|
2325
2335
|
var di = {
|
|
2326
2336
|
android: /(Android)\s([\d.]+)/,
|
|
2327
2337
|
ios: /(Version)\/([\d.]+)/
|
|
2328
|
-
}, Ss = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"],
|
|
2338
|
+
}, Ss = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], O = {
|
|
2329
2339
|
get device() {
|
|
2330
|
-
var a =
|
|
2340
|
+
var a = O.os;
|
|
2331
2341
|
return a.isPc ? "pc" : "mobile";
|
|
2332
2342
|
},
|
|
2333
2343
|
get browser() {
|
|
@@ -2478,12 +2488,12 @@ var di = {
|
|
|
2478
2488
|
for (var m = {
|
|
2479
2489
|
playerVersion: Vt,
|
|
2480
2490
|
domain: document.domain
|
|
2481
|
-
}, _ = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"],
|
|
2482
|
-
m[_[
|
|
2491
|
+
}, _ = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], w = 0; w < arguments.length; w++)
|
|
2492
|
+
m[_[w]] = arguments[w];
|
|
2483
2493
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
2484
2494
|
}
|
|
2485
2495
|
}
|
|
2486
|
-
), ne = "play", qt = "playing", Re = "ended", Ye = "pause", tt = "error", _t = "seeking", me = "seeked", ie = "timeupdate", it = "waiting", ve = "canplay", xs = "canplaythrough",
|
|
2496
|
+
), ne = "play", qt = "playing", Re = "ended", Ye = "pause", tt = "error", _t = "seeking", me = "seeked", ie = "timeupdate", it = "waiting", ve = "canplay", xs = "canplaythrough", Te = "durationchange", Xi = "volumechange", ye = "loadeddata", Ps = "loadedmetadata", qi = "ratechange", Zi = "progress", Zt = "loadstart", Oe = "emptied", Is = "stalled", As = "suspend", Ls = "abort", Ds = "bufferedChange", Jt = "focus", Ji = "blur", Qt = "ready", Qi = "urlNull", Ae = "autoplay_started", ei = "autoplay_was_prevented", Ct = "complete", ut = "replay", ti = "destroy", kt = "urlchange", jt = "download_speed_change", en = "leaveplayer", tn = "enterplayer", nn = "loading", ge = "fullscreen_change", ct = "cssFullscreen_change", ft = "mini_state_change", ii = "definition_change", Rs = "before_definition_change", Wt = "after_definition_change", Os = "SEI_PARSED", Fs = "retry", we = "video_resize", Gt = "pip_change", rn = "rotate", sn = "screenShot", ht = "playnext", on = "shortcut", an = "xglog", dt = "user_action", wt = "reset", ln = "source_error", un = "source_success", Ms = "switch_subtitle", cn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], fn = {
|
|
2487
2497
|
STATS_INFO: "stats_info",
|
|
2488
2498
|
STATS_DOWNLOAD: "stats_download",
|
|
2489
2499
|
STATS_RESET: "stats_reset"
|
|
@@ -2493,7 +2503,7 @@ const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2493
2503
|
ABORT: Ls,
|
|
2494
2504
|
AFTER_DEFINITION_CHANGE: Wt,
|
|
2495
2505
|
AUTOPLAY_PREVENTED: ei,
|
|
2496
|
-
AUTOPLAY_STARTED:
|
|
2506
|
+
AUTOPLAY_STARTED: Ae,
|
|
2497
2507
|
BEFORE_DEFINITION_CHANGE: Rs,
|
|
2498
2508
|
BUFFER_CHANGE: Ds,
|
|
2499
2509
|
CANPLAY: ve,
|
|
@@ -2503,7 +2513,7 @@ const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2503
2513
|
DEFINITION_CHANGE: ii,
|
|
2504
2514
|
DESTROY: ti,
|
|
2505
2515
|
DOWNLOAD_SPEED_CHANGE: jt,
|
|
2506
|
-
DURATION_CHANGE:
|
|
2516
|
+
DURATION_CHANGE: Te,
|
|
2507
2517
|
EMPTIED: Oe,
|
|
2508
2518
|
ENDED: Re,
|
|
2509
2519
|
ENTER_PLAYER: tn,
|
|
@@ -2546,7 +2556,7 @@ const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2546
2556
|
URL_NULL: Qi,
|
|
2547
2557
|
USER_ACTION: dt,
|
|
2548
2558
|
VIDEO_EVENTS: cn,
|
|
2549
|
-
VIDEO_RESIZE:
|
|
2559
|
+
VIDEO_RESIZE: we,
|
|
2550
2560
|
VOLUME_CHANGE: Xi,
|
|
2551
2561
|
WAITING: it,
|
|
2552
2562
|
XGLOG: an
|
|
@@ -2609,7 +2619,7 @@ var Hs = /* @__PURE__ */ function(a) {
|
|
|
2609
2619
|
"data-index": -1
|
|
2610
2620
|
}, t.videoConfig, t.videoAttributes);
|
|
2611
2621
|
var i = t["x5-video-player-type"] || t.x5VideoPlayerType;
|
|
2612
|
-
return
|
|
2622
|
+
return O.isWeixin && O.os.isAndroid && i && (e.mediaConfig["x5-video-player-type"] = i, delete e.mediaConfig.playsinline, delete e.mediaConfig["webkit-playsinline"], delete e.mediaConfig["x5-playsinline"]), t.loop && (e.mediaConfig.loop = "loop"), t.autoplayMuted && !Object.prototype.hasOwnProperty.call(e.mediaConfig, "muted") && (e.mediaConfig.muted = !0), e.media = f.createDom(e.mediaConfig.mediaType, "", e.mediaConfig, ""), t.defaultPlaybackRate && (e.media.defaultPlaybackRate = e.media.playbackRate = t.defaultPlaybackRate), f.typeOf(t.volume) === "Number" && (e.volume = t.volume), t.autoplayMuted && (e.media.muted = !0, e._lastMuted = !0), t.autoplay && (e.media.autoplay = !0), e._interval = {}, e.mediaEventMiddleware = {}, e.attachVideoEvents(), e;
|
|
2613
2623
|
}
|
|
2614
2624
|
return E(r, [{
|
|
2615
2625
|
key: "setEventsMiddleware",
|
|
@@ -3085,7 +3095,7 @@ var Hs = /* @__PURE__ */ function(a) {
|
|
|
3085
3095
|
t.clear();
|
|
3086
3096
|
}
|
|
3087
3097
|
}]), a;
|
|
3088
|
-
}(), vi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], mi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], yi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"],
|
|
3098
|
+
}(), vi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], mi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], yi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Pe = "data-xgplayerid";
|
|
3089
3099
|
function nt(a, o, r) {
|
|
3090
3100
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
3091
3101
|
e[i - 3] = arguments[i];
|
|
@@ -3184,9 +3194,9 @@ function pe(a, o, r) {
|
|
|
3184
3194
|
return r.call.apply(r, [a, a].concat(e));
|
|
3185
3195
|
}
|
|
3186
3196
|
function xt(a, o) {
|
|
3187
|
-
|
|
3197
|
+
M.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
|
|
3188
3198
|
}
|
|
3189
|
-
var
|
|
3199
|
+
var be = /* @__PURE__ */ function() {
|
|
3190
3200
|
function a(o) {
|
|
3191
3201
|
T(this, a), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(o), dn(this), this.__args = o, this.__events = {}, this.__onceEvents = {}, this.config = o.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(o);
|
|
3192
3202
|
}
|
|
@@ -3444,11 +3454,11 @@ function bi(a, o) {
|
|
|
3444
3454
|
try {
|
|
3445
3455
|
return i = a(), i instanceof window.Element ? (f.addClass(i, r), Object.keys(t).map(function(n) {
|
|
3446
3456
|
i.setAttribute(n, t[n]);
|
|
3447
|
-
}), i) : (
|
|
3457
|
+
}), i) : (M.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is a function mast return an Element Object")), null);
|
|
3448
3458
|
} catch (n) {
|
|
3449
|
-
return
|
|
3459
|
+
return M.logError("Plugin named [".concat(e, "]:createIcon"), n), null;
|
|
3450
3460
|
}
|
|
3451
|
-
return typeof a == "string" ? f.createDomFromHtml(a, t, r) : (
|
|
3461
|
+
return typeof a == "string" ? f.createDomFromHtml(a, t, r) : (M.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
3452
3462
|
}
|
|
3453
3463
|
function Zs(a, o) {
|
|
3454
3464
|
var r = o.config.icons || o.playerConfig.icons;
|
|
@@ -3488,7 +3498,7 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
3488
3498
|
try {
|
|
3489
3499
|
u = this.render();
|
|
3490
3500
|
} catch (d) {
|
|
3491
|
-
throw
|
|
3501
|
+
throw M.logError("Plugin:".concat(this.pluginName, ":render"), d), new Error("Plugin:".concat(this.pluginName, ":render:").concat(d.message));
|
|
3492
3502
|
}
|
|
3493
3503
|
if (u)
|
|
3494
3504
|
n = r.insert(u, i, e.index), n.setAttribute("data-index", e.index);
|
|
@@ -3686,7 +3696,7 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
3686
3696
|
try {
|
|
3687
3697
|
return typeof e == "string" ? this.find(e).appendChild(i) : e.appendChild(i);
|
|
3688
3698
|
} catch (n) {
|
|
3689
|
-
return
|
|
3699
|
+
return M.logError("Plugin:appendChild", n), null;
|
|
3690
3700
|
}
|
|
3691
3701
|
}
|
|
3692
3702
|
}, {
|
|
@@ -3760,7 +3770,7 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
3760
3770
|
return V;
|
|
3761
3771
|
}
|
|
3762
3772
|
}]), r;
|
|
3763
|
-
}(
|
|
3773
|
+
}(be), Qs = /* @__PURE__ */ function() {
|
|
3764
3774
|
function a() {
|
|
3765
3775
|
var o = this;
|
|
3766
3776
|
if (T(this, a), y(this, "__trigger", function(r) {
|
|
@@ -3782,7 +3792,7 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
3782
3792
|
value: function(r, t) {
|
|
3783
3793
|
if (this.observer) {
|
|
3784
3794
|
this.observer && this.observer.observe(r);
|
|
3785
|
-
for (var e = r.getAttribute(
|
|
3795
|
+
for (var e = r.getAttribute(Pe), i = this.__handlers, n = -1, s = 0; s < i.length; s++)
|
|
3786
3796
|
i[s] && r === i[s].target && (n = s);
|
|
3787
3797
|
n > -1 ? this.__handlers[n].handler = t : this.__handlers.push({
|
|
3788
3798
|
target: r,
|
|
@@ -4173,7 +4183,7 @@ var io = function(o, r) {
|
|
|
4173
4183
|
return E(r, [{
|
|
4174
4184
|
key: "beforeCreate",
|
|
4175
4185
|
value: function(e) {
|
|
4176
|
-
!e.config.mode &&
|
|
4186
|
+
!e.config.mode && O.device === "mobile" && (e.config.mode = "flex"), e.player.config.marginControls && (e.config.autoHide = !1);
|
|
4177
4187
|
}
|
|
4178
4188
|
}, {
|
|
4179
4189
|
key: "afterCreate",
|
|
@@ -4190,7 +4200,7 @@ var io = function(o, r) {
|
|
|
4190
4200
|
h ? f.addClass(e.root, "mini-controls") : f.removeClass(e.root, "mini-controls");
|
|
4191
4201
|
});
|
|
4192
4202
|
var c = this.playerConfig.isMobileSimulateMode;
|
|
4193
|
-
|
|
4203
|
+
O.device !== "mobile" && c !== "mobile" && (this.bind("mouseenter", this.onMouseEnter), this.bind("mouseleave", this.onMouseLeave));
|
|
4194
4204
|
}
|
|
4195
4205
|
}
|
|
4196
4206
|
}, {
|
|
@@ -4270,7 +4280,7 @@ var io = function(o, r) {
|
|
|
4270
4280
|
}, {
|
|
4271
4281
|
key: "destroy",
|
|
4272
4282
|
value: function() {
|
|
4273
|
-
|
|
4283
|
+
O.device !== "mobile" && (this.unbind("mouseenter", this.onMouseEnter), this.unbind("mouseleave", this.onMouseLeave));
|
|
4274
4284
|
}
|
|
4275
4285
|
}, {
|
|
4276
4286
|
key: "render",
|
|
@@ -4457,7 +4467,7 @@ var We = {
|
|
|
4457
4467
|
extend: so,
|
|
4458
4468
|
use: ni,
|
|
4459
4469
|
init: oo
|
|
4460
|
-
},
|
|
4470
|
+
}, B = {
|
|
4461
4471
|
INITIAL: 1,
|
|
4462
4472
|
READY: 2,
|
|
4463
4473
|
ATTACHING: 3,
|
|
@@ -4571,14 +4581,14 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4571
4581
|
e = o.call(this, i), y(v(e), "canPlayFunc", function() {
|
|
4572
4582
|
if (e.config) {
|
|
4573
4583
|
var p = e.config, m = p.autoplay, _ = p.defaultPlaybackRate;
|
|
4574
|
-
|
|
4584
|
+
M.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(ve, e.canPlayFunc), e.removeClass(k.ENTER);
|
|
4575
4585
|
}
|
|
4576
4586
|
}), y(v(e), "onFullscreenChange", function(p, m) {
|
|
4577
4587
|
var _ = function() {
|
|
4578
4588
|
f.setTimeout(v(e), function() {
|
|
4579
4589
|
e.resize();
|
|
4580
4590
|
}, 100);
|
|
4581
|
-
},
|
|
4591
|
+
}, w = f.getFullScreenEl();
|
|
4582
4592
|
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(dt, {
|
|
4583
4593
|
eventType: "system",
|
|
4584
4594
|
action: "switch_fullscreen",
|
|
@@ -4591,13 +4601,13 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4591
4601
|
to: !1
|
|
4592
4602
|
}]
|
|
4593
4603
|
});
|
|
4594
|
-
var b = Es(
|
|
4595
|
-
if (m ||
|
|
4596
|
-
_(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root,
|
|
4604
|
+
var b = Es(w, e.playerId, Pe);
|
|
4605
|
+
if (m || w && (w === e._fullscreenEl || b))
|
|
4606
|
+
_(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, w, k.FULLSCREEN), e.emit(ge, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
4597
4607
|
else if (e.fullscreen) {
|
|
4598
4608
|
_();
|
|
4599
|
-
var
|
|
4600
|
-
if (
|
|
4609
|
+
var C = v(e), F = C._fullScreenOffset, R = C.config;
|
|
4610
|
+
if (R.needFullscreenScroll ? (window.scrollTo(F.left, F.top), f.setTimeout(v(e), function() {
|
|
4601
4611
|
e.fullscreen = !1, e._fullScreenOffset = null;
|
|
4602
4612
|
}, 100)) : (!e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !1, e._fullScreenOffset = null), e.cssfullscreen)
|
|
4603
4613
|
e.removeClass(k.FULLSCREEN);
|
|
@@ -4618,7 +4628,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4618
4628
|
s >= 0 && n && (e.config.presets[s] = n);
|
|
4619
4629
|
} else
|
|
4620
4630
|
n && e.config.presets.push(n);
|
|
4621
|
-
e.userTimer = null, e.waitTimer = null, e.handleSource = !0, e._state =
|
|
4631
|
+
e.userTimer = null, e.waitTimer = null, e.handleSource = !0, e._state = B.INITIAL, e.isError = !1, e._hasStart = !1, e.isSeeking = !1, e.isCanplay = !1, e._useAutoplay = !1, e.__startTime = -1, e.rotateDeg = 0, e.isActive = !1, e.fullscreen = !1, e.cssfullscreen = !1, e.isRotateFullscreen = !1, e._fullscreenEl = null, e.timeSegments = [], e._cssfullscreenEl = null, e.curDefinition = null, e._orgCss = "", e._fullScreenOffset = null, e._videoHeight = 0, e._videoWidth = 0, e.videoPos = {
|
|
4622
4632
|
pi: 1,
|
|
4623
4633
|
scale: 0,
|
|
4624
4634
|
rotate: -1,
|
|
@@ -4640,7 +4650,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4640
4650
|
}, e._offsetInfo = {
|
|
4641
4651
|
currentTime: -1,
|
|
4642
4652
|
duration: 0
|
|
4643
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = We.init(e._pluginInfoId),
|
|
4653
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = We.init(e._pluginInfoId), O.os.isAndroid && O.osVersion > 0 && O.osVersion < 6 && (e.config.autoplay = !1), e.database = new Us(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
4644
4654
|
isActiveLocked: !1
|
|
4645
4655
|
}, e.instManager = _e;
|
|
4646
4656
|
var l = e._initDOM();
|
|
@@ -4653,9 +4663,9 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4653
4663
|
});
|
|
4654
4664
|
g || (h.defaultDefinition = h.list[0].definition, g = h.list[0]), e.config.url = g.url, e.curDefinition = g;
|
|
4655
4665
|
}
|
|
4656
|
-
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), K.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(
|
|
4666
|
+
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), K.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(B.READY), f.setTimeout(v(e), function() {
|
|
4657
4667
|
e.emit(Qt);
|
|
4658
|
-
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state <
|
|
4668
|
+
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < B.ATTACHED) && e.start(), e;
|
|
4659
4669
|
}
|
|
4660
4670
|
return E(r, [{
|
|
4661
4671
|
key: "_initDOM",
|
|
@@ -4673,7 +4683,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4673
4683
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
4674
4684
|
}
|
|
4675
4685
|
var s = ao(this.root);
|
|
4676
|
-
s && (
|
|
4686
|
+
s && (M.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Pe, this.playerId), (e = _e) === null || e === void 0 || e.add(this), K.init(this), this._initBaseDoms();
|
|
4677
4687
|
var l = this.constructor.XgVideoProxy;
|
|
4678
4688
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
4679
4689
|
var u = this.innerContainer || this.root;
|
|
@@ -4681,31 +4691,31 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4681
4691
|
var c = new l(u, this.config, this.mediaConfig);
|
|
4682
4692
|
this.attachVideoEvents(c), this.media = c;
|
|
4683
4693
|
}
|
|
4684
|
-
if (this.media.setAttribute(
|
|
4694
|
+
if (this.media.setAttribute(Pe, this.playerId), this.config.controls) {
|
|
4685
4695
|
var h = this.config.controls.root || null, d = K.register(this, no, {
|
|
4686
4696
|
root: h
|
|
4687
4697
|
});
|
|
4688
4698
|
this.controls = d;
|
|
4689
4699
|
}
|
|
4690
|
-
var g = this.config.isMobileSimulateMode === "mobile" ? "mobile" :
|
|
4700
|
+
var g = this.config.isMobileSimulateMode === "mobile" ? "mobile" : O.device;
|
|
4691
4701
|
if (this.addClass("".concat(k.DEFAULT, " ").concat(k.INACTIVE, " xgplayer-").concat(g, " ").concat(this.config.controls ? "" : k.NO_CONTROLS)), this.config.autoplay ? this.addClass(k.ENTER) : this.addClass(k.NO_START), this.config.fluid) {
|
|
4692
4702
|
var p = this.config, m = p.width, _ = p.height;
|
|
4693
4703
|
(typeof m != "number" || typeof _ != "number") && (m = 600, _ = 337.5);
|
|
4694
|
-
var
|
|
4704
|
+
var w = {
|
|
4695
4705
|
width: "100%",
|
|
4696
4706
|
height: "0",
|
|
4697
4707
|
"max-width": "100%",
|
|
4698
4708
|
"padding-top": "".concat(_ * 100 / m, "%")
|
|
4699
4709
|
};
|
|
4700
|
-
Object.keys(
|
|
4701
|
-
i.root.style[D] =
|
|
4710
|
+
Object.keys(w).forEach(function(D) {
|
|
4711
|
+
i.root.style[D] = w[D];
|
|
4702
4712
|
});
|
|
4703
4713
|
} else
|
|
4704
4714
|
["width", "height"].forEach(function(D) {
|
|
4705
4715
|
i.config[D] && (typeof i.config[D] != "number" ? i.root.style[D] = i.config[D] : i.root.style[D] = "".concat(i.config[D], "px"));
|
|
4706
4716
|
});
|
|
4707
|
-
var b = this.root.getBoundingClientRect(),
|
|
4708
|
-
return this.sizeInfo.width =
|
|
4717
|
+
var b = this.root.getBoundingClientRect(), C = b.width, F = b.height, R = b.left, z = b.top;
|
|
4718
|
+
return this.sizeInfo.width = C, this.sizeInfo.height = F, this.sizeInfo.left = R, this.sizeInfo.top = z, !0;
|
|
4709
4719
|
}
|
|
4710
4720
|
}, {
|
|
4711
4721
|
key: "_initBaseDoms",
|
|
@@ -4722,7 +4732,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4722
4732
|
e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
|
|
4723
4733
|
}), vi.forEach(function(i) {
|
|
4724
4734
|
document && document.addEventListener(i, e.onFullscreenChange);
|
|
4725
|
-
}),
|
|
4735
|
+
}), O.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(ye, this.resize), this.playFunc = function() {
|
|
4726
4736
|
e.config.closeFocusVideoFocus || e.media.focus();
|
|
4727
4737
|
}, this.once(ne, this.playFunc);
|
|
4728
4738
|
}
|
|
@@ -4743,14 +4753,14 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4743
4753
|
key: "_startInit",
|
|
4744
4754
|
value: function(e) {
|
|
4745
4755
|
var i = this;
|
|
4746
|
-
if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(Qi),
|
|
4756
|
+
if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(Qi), M.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
|
|
4747
4757
|
this.handleSource && (this._detachSourceEvents(this.media), f.typeOf(e) === "Array" && e.length > 0 ? this._attachSourceEvents(this.media, e) : !this.media.src || this.media.src !== e ? this.media.src = e : e || this.media.removeAttribute("src")), f.typeOf(this.config.volume) === "Number" && (this.volume = this.config.volume);
|
|
4748
4758
|
var n = this.innerContainer ? this.innerContainer : this.root;
|
|
4749
4759
|
this.media instanceof window.Element && !n.contains(this.media) && n.insertBefore(this.media, n.firstChild);
|
|
4750
4760
|
var s = this.media.readyState;
|
|
4751
|
-
|
|
4761
|
+
M.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (O.os.isIpad || O.os.isPhone) && this.mediaPlay());
|
|
4752
4762
|
var l = this.config.startTime;
|
|
4753
|
-
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(ve, this.canPlayFunc), (!this.hasStart || this.state <
|
|
4763
|
+
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(ve, this.canPlayFunc), (!this.hasStart || this.state < B.ATTACHED) && K.afterInit(this), this.hasStart = !0, this.setState(B.ATTACHED), f.setTimeout(this, function() {
|
|
4754
4764
|
i.emit(Ct);
|
|
4755
4765
|
}, 0);
|
|
4756
4766
|
}
|
|
@@ -4775,13 +4785,13 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4775
4785
|
h.forceBeforeInit && (g.then(function() {
|
|
4776
4786
|
e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
|
|
4777
4787
|
}).catch(function(p) {
|
|
4778
|
-
|
|
4788
|
+
M.logError("_registerPlugins:loadingPlugin", p), e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
|
|
4779
4789
|
}), e._loadingPlugins.push(g));
|
|
4780
4790
|
return;
|
|
4781
4791
|
}
|
|
4782
4792
|
return e.registerPlugin(h);
|
|
4783
4793
|
} catch (p) {
|
|
4784
|
-
|
|
4794
|
+
M.logError("_registerPlugins:", p);
|
|
4785
4795
|
}
|
|
4786
4796
|
});
|
|
4787
4797
|
}
|
|
@@ -4826,7 +4836,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4826
4836
|
}, {
|
|
4827
4837
|
key: "deregister",
|
|
4828
4838
|
value: function(e) {
|
|
4829
|
-
typeof e == "string" ? K.unRegister(this, e) : e instanceof
|
|
4839
|
+
typeof e == "string" ? K.unRegister(this, e) : e instanceof be && K.unRegister(this, e.pluginName);
|
|
4830
4840
|
}
|
|
4831
4841
|
}, {
|
|
4832
4842
|
key: "unRegisterPlugin",
|
|
@@ -4838,7 +4848,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4838
4848
|
key: "removePluginFromConfig",
|
|
4839
4849
|
value: function(e) {
|
|
4840
4850
|
var i;
|
|
4841
|
-
if (typeof e == "string" ? i = e : e instanceof
|
|
4851
|
+
if (typeof e == "string" ? i = e : e instanceof be && (i = e.pluginName), !!i)
|
|
4842
4852
|
for (var n = this.config.plugins.length - 1; n > -1; n--) {
|
|
4843
4853
|
var s = this.config.plugins[n];
|
|
4844
4854
|
if (s.pluginName.toLowerCase() === i.toLowerCase()) {
|
|
@@ -4888,15 +4898,15 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4888
4898
|
key: "start",
|
|
4889
4899
|
value: function(e) {
|
|
4890
4900
|
var i = this;
|
|
4891
|
-
if (!(this.state >
|
|
4892
|
-
return !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(
|
|
4901
|
+
if (!(this.state > B.ATTACHING))
|
|
4902
|
+
return !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(B.ATTACHING), this._registerPlugins(!1), K.beforeInit(this).then(function() {
|
|
4893
4903
|
if (i.config) {
|
|
4894
4904
|
e || (e = i.url || i.config.url);
|
|
4895
4905
|
var n = i._preProcessUrl(e), s = i._startInit(n.url);
|
|
4896
4906
|
return s;
|
|
4897
4907
|
}
|
|
4898
4908
|
}).catch(function(n) {
|
|
4899
|
-
throw n.fileName = "player", n.lineNumber = "236",
|
|
4909
|
+
throw n.fileName = "player", n.lineNumber = "236", M.logError("start:beforeInit:", n), n;
|
|
4900
4910
|
});
|
|
4901
4911
|
}
|
|
4902
4912
|
}, {
|
|
@@ -4920,7 +4930,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4920
4930
|
});
|
|
4921
4931
|
return;
|
|
4922
4932
|
}
|
|
4923
|
-
|
|
4933
|
+
O.os.isAndroid ? n.once("timeupdate", g) : n.once("canplay", g), n.play();
|
|
4924
4934
|
});
|
|
4925
4935
|
}
|
|
4926
4936
|
}, {
|
|
@@ -4932,23 +4942,23 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4932
4942
|
key: "mediaPlay",
|
|
4933
4943
|
value: function() {
|
|
4934
4944
|
var e = this;
|
|
4935
|
-
if (!this.hasStart && this.state <
|
|
4945
|
+
if (!this.hasStart && this.state < B.ATTACHED) {
|
|
4936
4946
|
this.removeClass(k.NO_START), this.addClass(k.ENTER), this.start(), this._useAutoplay = !0;
|
|
4937
4947
|
return;
|
|
4938
4948
|
}
|
|
4939
|
-
this.state <
|
|
4949
|
+
this.state < B.RUNNING && (this.removeClass(k.NO_START), !this.isCanplay && this.addClass(k.ENTER));
|
|
4940
4950
|
var i = A(I(r.prototype), "play", this).call(this);
|
|
4941
4951
|
return i !== void 0 && i && i.then ? i.then(function() {
|
|
4942
|
-
e.removeClass(k.NOT_ALLOW_AUTOPLAY), e.addClass(k.PLAYING), e.state <
|
|
4952
|
+
e.removeClass(k.NOT_ALLOW_AUTOPLAY), e.addClass(k.PLAYING), e.state < B.RUNNING && (M.logInfo(">>>>playPromise.then"), e.setState(B.RUNNING), e.emit(Ae));
|
|
4943
4953
|
}).catch(function(n) {
|
|
4944
|
-
if (
|
|
4954
|
+
if (M.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
|
|
4945
4955
|
e.onError(), e.removeClass(k.ENTER);
|
|
4946
4956
|
return;
|
|
4947
4957
|
}
|
|
4948
4958
|
n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
|
|
4949
|
-
e._errorTimer = null, e.emit(ei), e.addClass(k.NOT_ALLOW_AUTOPLAY), e.removeClass(k.ENTER), e.pause(), e.setState(
|
|
4959
|
+
e._errorTimer = null, e.emit(ei), e.addClass(k.NOT_ALLOW_AUTOPLAY), e.removeClass(k.ENTER), e.pause(), e.setState(B.NOTALLOW);
|
|
4950
4960
|
}, 0));
|
|
4951
|
-
}) : (
|
|
4961
|
+
}) : (M.logWarn("video.play not return promise"), this.state < B.RUNNING && (this.setState(B.RUNNING), this.removeClass(k.NOT_ALLOW_AUTOPLAY), this.removeClass(k.NO_START), this.removeClass(k.ENTER), this.addClass(k.PLAYING), this.emit(Ae))), i;
|
|
4952
4962
|
}
|
|
4953
4963
|
}, {
|
|
4954
4964
|
key: "mediaPause",
|
|
@@ -4994,7 +5004,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4994
5004
|
n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
|
|
4995
5005
|
}
|
|
4996
5006
|
n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
|
|
4997
|
-
}, this.once(me, this._onceSeekCanplay), this.state <
|
|
5007
|
+
}, this.once(me, this._onceSeekCanplay), this.state < B.RUNNING ? (this.removeClass(k.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
|
|
4998
5008
|
}
|
|
4999
5009
|
}
|
|
5000
5010
|
}, {
|
|
@@ -5066,7 +5076,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5066
5076
|
value: function() {
|
|
5067
5077
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
5068
5078
|
if (!(!s || !l)) {
|
|
5069
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(
|
|
5079
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Pe), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(ti), (e = _e) === null || e === void 0 || e.remove(this), K.destroy(this), gn(this), A(I(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
5070
5080
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
5071
5081
|
n.removeChild(u[c]);
|
|
5072
5082
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -5109,12 +5119,12 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5109
5119
|
}, {
|
|
5110
5120
|
key: "changeFullStyle",
|
|
5111
5121
|
value: function(e, i, n, s) {
|
|
5112
|
-
e && (s || (s = k.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(
|
|
5122
|
+
e && (s || (s = k.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(Pe, this.playerId)));
|
|
5113
5123
|
}
|
|
5114
5124
|
}, {
|
|
5115
5125
|
key: "recoverFullStyle",
|
|
5116
5126
|
value: function(e, i, n, s) {
|
|
5117
|
-
s || (s = k.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(
|
|
5127
|
+
s || (s = k.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(Pe));
|
|
5118
5128
|
}
|
|
5119
5129
|
}, {
|
|
5120
5130
|
key: "getFullscreen",
|
|
@@ -5281,7 +5291,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5281
5291
|
}, {
|
|
5282
5292
|
key: "onPlay",
|
|
5283
5293
|
value: function() {
|
|
5284
|
-
this.state ===
|
|
5294
|
+
this.state === B.ENDED && this.setState(B.RUNNING), this.removeClass(k.PAUSED), this.ended && this.removeClass(k.ENDED), !this.config.closePlayVideoFocus && this.focus();
|
|
5285
5295
|
}
|
|
5286
5296
|
}, {
|
|
5287
5297
|
key: "onPause",
|
|
@@ -5291,7 +5301,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5291
5301
|
}, {
|
|
5292
5302
|
key: "onEnded",
|
|
5293
5303
|
value: function() {
|
|
5294
|
-
this.updateAcc("ended"), this.addClass(k.ENDED), this.setState(
|
|
5304
|
+
this.updateAcc("ended"), this.addClass(k.ENDED), this.setState(B.ENDED);
|
|
5295
5305
|
}
|
|
5296
5306
|
}, {
|
|
5297
5307
|
key: "onError",
|
|
@@ -5329,7 +5339,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5329
5339
|
}, {
|
|
5330
5340
|
key: "onTimeupdate",
|
|
5331
5341
|
value: function() {
|
|
5332
|
-
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(k.LOADING)) && this.media.readyState > 2 && (this.removeClass(k.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state ===
|
|
5342
|
+
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(k.LOADING)) && this.media.readyState > 2 && (this.removeClass(k.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === B.NOTALLOW && this.duration && (this.setState(B.RUNNING), this.emit(Ae)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
5333
5343
|
}
|
|
5334
5344
|
}, {
|
|
5335
5345
|
key: "onVolumechange",
|
|
@@ -5388,13 +5398,13 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5388
5398
|
this.videoPos.pi = c, u = u < 0 ? 0 : u;
|
|
5389
5399
|
var h = {
|
|
5390
5400
|
rotate: u
|
|
5391
|
-
}, d = 0, g = 0, p = 1, m = Math.abs(u / 90), _ = this.root,
|
|
5401
|
+
}, d = 0, g = 0, p = 1, m = Math.abs(u / 90), _ = this.root, w = this.innerContainer, b = _.offsetWidth, C = w ? w.offsetHeight : _.offsetHeight, F = C, R = b;
|
|
5392
5402
|
if (m % 2 === 0)
|
|
5393
|
-
p = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = p, d = i > 0 ? (100 - s) / 2 - i : 0, h.y = m === 2 ? 0 - d : d, g = n > 0 ? (100 - l) / 2 - n : 0, h.x = m === 2 ? 0 - g : g, this.media.style.width = "".concat(
|
|
5403
|
+
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(R, "px"), this.media.style.height = "".concat(F, "px");
|
|
5394
5404
|
else if (m % 2 === 1) {
|
|
5395
|
-
|
|
5396
|
-
var z =
|
|
5397
|
-
g = -z / 2 /
|
|
5405
|
+
R = C, F = b;
|
|
5406
|
+
var z = C - b;
|
|
5407
|
+
g = -z / 2 / R * 100, h.x = m === 3 ? g + i / 2 : g - i / 2, d = z / 2 / F * 100, h.y = m === 3 ? d + n / 2 : d - n / 2, h.scale = p, this.media.style.width = "".concat(R, "px"), this.media.style.height = "".concat(F, "px");
|
|
5398
5408
|
}
|
|
5399
5409
|
var D = f.getTransformStyle(h, this.media.style.transform || this.media.style.webkitTransform);
|
|
5400
5410
|
this.media.style.transform = D, this.media.style.webkitTransform = D;
|
|
@@ -5445,18 +5455,18 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5445
5455
|
var n = this.media, s = n.videoWidth, l = n.videoHeight, u = this.config, c = u.fitVideoSize, h = u.videoFillMode;
|
|
5446
5456
|
if ((h === "fill" || h === "cover" || h === "contain") && this.setAttribute("data-xgfill", h), !(!l || !s)) {
|
|
5447
5457
|
this._videoHeight = l, this._videoWidth = s;
|
|
5448
|
-
var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, g = i.width, p = i.height - d, m = parseInt(s / l * 1e3, 10), _ = parseInt(g / p * 1e3, 10),
|
|
5449
|
-
c === "auto" && _ > m || c === "fixWidth" ? (b = g / m * 1e3, this.config.fluid ?
|
|
5450
|
-
e.root.style[
|
|
5458
|
+
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), w = g, b = p, C = {};
|
|
5459
|
+
c === "auto" && _ > m || c === "fixWidth" ? (b = g / m * 1e3, this.config.fluid ? C.paddingTop = "".concat(b * 100 / w, "%") : C.height = "".concat(b + d, "px")) : (c === "auto" && _ < m || c === "fixHeight") && (w = m * p / 1e3, C.width = "".concat(w, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(C).forEach(function(R) {
|
|
5460
|
+
e.root.style[R] = C[R];
|
|
5451
5461
|
}), (h === "fillHeight" && _ < m || h === "fillWidth" && _ > m) && this.setAttribute("data-xgfill", "cover");
|
|
5452
|
-
var
|
|
5462
|
+
var F = {
|
|
5453
5463
|
videoScale: m,
|
|
5454
|
-
vWidth:
|
|
5464
|
+
vWidth: w,
|
|
5455
5465
|
vHeight: b,
|
|
5456
|
-
cWidth:
|
|
5466
|
+
cWidth: w,
|
|
5457
5467
|
cHeight: b + d
|
|
5458
5468
|
};
|
|
5459
|
-
this.resizePosition(), this.emit(
|
|
5469
|
+
this.resizePosition(), this.emit(we, F);
|
|
5460
5470
|
}
|
|
5461
5471
|
}
|
|
5462
5472
|
}
|
|
@@ -5473,7 +5483,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5473
5483
|
}, {
|
|
5474
5484
|
key: "setState",
|
|
5475
5485
|
value: function(e) {
|
|
5476
|
-
|
|
5486
|
+
M.logInfo("setState", "state from:".concat(Ei[this.state], " to:").concat(Ei[e])), this._state = e;
|
|
5477
5487
|
}
|
|
5478
5488
|
}, {
|
|
5479
5489
|
key: "_preProcessUrl",
|
|
@@ -5504,15 +5514,15 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5504
5514
|
return this._hasStart;
|
|
5505
5515
|
},
|
|
5506
5516
|
set: function(e) {
|
|
5507
|
-
typeof e == "boolean" && (this._hasStart = e, e === !1 && this.setState(
|
|
5517
|
+
typeof e == "boolean" && (this._hasStart = e, e === !1 && this.setState(B.READY), this.emit("hasstart"));
|
|
5508
5518
|
}
|
|
5509
5519
|
}, {
|
|
5510
5520
|
key: "isPlaying",
|
|
5511
5521
|
get: function() {
|
|
5512
|
-
return this._state ===
|
|
5522
|
+
return this._state === B.RUNNING || this._state === B.ENDED;
|
|
5513
5523
|
},
|
|
5514
5524
|
set: function(e) {
|
|
5515
|
-
e ? this.setState(
|
|
5525
|
+
e ? this.setState(B.RUNNING) : this._state >= B.RUNNING && this.setState(B.ATTACHED);
|
|
5516
5526
|
}
|
|
5517
5527
|
}, {
|
|
5518
5528
|
key: "definitionList",
|
|
@@ -5706,10 +5716,10 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5706
5716
|
}], [{
|
|
5707
5717
|
key: "debugger",
|
|
5708
5718
|
get: function() {
|
|
5709
|
-
return
|
|
5719
|
+
return M.config.debug;
|
|
5710
5720
|
},
|
|
5711
5721
|
set: function(e) {
|
|
5712
|
-
|
|
5722
|
+
M.config.debug = e;
|
|
5713
5723
|
}
|
|
5714
5724
|
}, {
|
|
5715
5725
|
key: "instManager",
|
|
@@ -5734,12 +5744,12 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5734
5744
|
}, {
|
|
5735
5745
|
key: "isHevcSupported",
|
|
5736
5746
|
value: function() {
|
|
5737
|
-
return
|
|
5747
|
+
return O.isHevcSupported();
|
|
5738
5748
|
}
|
|
5739
5749
|
}, {
|
|
5740
5750
|
key: "probeConfigSupported",
|
|
5741
5751
|
value: function(e) {
|
|
5742
|
-
return
|
|
5752
|
+
return O.probeConfigSupported(e);
|
|
5743
5753
|
}
|
|
5744
5754
|
}, {
|
|
5745
5755
|
key: "install",
|
|
@@ -5776,9 +5786,9 @@ var Ce = {
|
|
|
5776
5786
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
5777
5787
|
i[n] = arguments[n];
|
|
5778
5788
|
return t = o.call.apply(o, [this].concat(i)), y(v(t), "_onTimeupdate", function() {
|
|
5779
|
-
t._state.isTimeUpdate = !0, t._state.autoplayStart && (
|
|
5789
|
+
t._state.isTimeUpdate = !0, t._state.autoplayStart && (M.logInfo("[xgLogger]".concat(t.player.playerId, " _onTimeupdate")), t._sendFF("onTimeupdate"));
|
|
5780
5790
|
}), y(v(t), "_onAutoplayStart", function() {
|
|
5781
|
-
|
|
5791
|
+
M.logInfo("[xgLogger]".concat(t.player.playerId, " _onAutoplayStart")), t._state.autoplayStart = !0, t.vt && t._sendFF("onAutoplayStart");
|
|
5782
5792
|
}), y(v(t), "_onReset", function() {
|
|
5783
5793
|
t._state = {
|
|
5784
5794
|
autoplayStart: !1,
|
|
@@ -5821,30 +5831,30 @@ var Ce = {
|
|
|
5821
5831
|
var e = this;
|
|
5822
5832
|
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = $(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(Zt, function() {
|
|
5823
5833
|
var i = e._state, n = i.autoplayStart, s = i.isFFSend;
|
|
5824
|
-
e.startCostTime = $() - e.newPointTime,
|
|
5834
|
+
e.startCostTime = $() - e.newPointTime, M.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(Ce.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = $(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
|
|
5825
5835
|
}), this.on(ye, function() {
|
|
5826
5836
|
e.vt = $(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
5827
5837
|
var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
|
|
5828
|
-
|
|
5838
|
+
M.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(Ce.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
5829
5839
|
}), this.on(_t, this._onSeeking), this.on(me, this._onSeeked), this.on(ti, function() {
|
|
5830
5840
|
e.endState("destroy");
|
|
5831
5841
|
}), this.on(kt, function() {
|
|
5832
|
-
e.endState("urlChange"),
|
|
5842
|
+
e.endState("urlChange"), M.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
5833
5843
|
}), this.on([qt, ve], this._onPlaying), this.on(it, this._onWaiting), this.on(tt, this._onError), this.on(wt, function() {
|
|
5834
|
-
|
|
5844
|
+
M.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
5835
5845
|
});
|
|
5836
5846
|
}
|
|
5837
5847
|
}, {
|
|
5838
5848
|
key: "_initOnceEvents",
|
|
5839
5849
|
value: function() {
|
|
5840
|
-
this.off(
|
|
5850
|
+
this.off(Ae, this._onAutoplayStart), this.off(ie, this._onTimeupdate), this.once(Ae, this._onAutoplayStart), this.once(ie, this._onTimeupdate);
|
|
5841
5851
|
}
|
|
5842
5852
|
}, {
|
|
5843
5853
|
key: "_sendFF",
|
|
5844
5854
|
value: function(e) {
|
|
5845
5855
|
this.s = $();
|
|
5846
5856
|
var i = this._state, n = i.isFFLoading, s = i.isFFSend;
|
|
5847
|
-
|
|
5857
|
+
M.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (M.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(Ce.FIRST_FRAME, {
|
|
5848
5858
|
fvt: this.fvt,
|
|
5849
5859
|
costTime: this.fvt,
|
|
5850
5860
|
vt: this.vt,
|
|
@@ -6172,7 +6182,7 @@ var po = /* @__PURE__ */ function(a) {
|
|
|
6172
6182
|
var e = this, i = this.player, n = this.playerConfig;
|
|
6173
6183
|
this.initIcons(), this.once(Qt, function() {
|
|
6174
6184
|
n && (n.lang && n.lang === "en" ? f.addClass(i.root, "lang-is-en") : n.lang === "jp" && f.addClass(i.root, "lang-is-jp"));
|
|
6175
|
-
}), this.on(
|
|
6185
|
+
}), this.on(Ae, this.onAutoplayStart), n.autoplay || this.show(), this.on(ei, function() {
|
|
6176
6186
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
6177
6187
|
e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
|
|
6178
6188
|
}), this.on(ne, function() {
|
|
@@ -6260,16 +6270,16 @@ var po = /* @__PURE__ */ function(a) {
|
|
|
6260
6270
|
key: "switchPausePlay",
|
|
6261
6271
|
value: function(e) {
|
|
6262
6272
|
var i = this.player;
|
|
6263
|
-
if (e.cancelable && e.preventDefault(), e.stopPropagation(), !(i.state <
|
|
6273
|
+
if (e.cancelable && e.preventDefault(), e.stopPropagation(), !(i.state < B.READY)) {
|
|
6264
6274
|
var n = this.player.paused;
|
|
6265
|
-
!n && i.state ===
|
|
6275
|
+
!n && i.state === B.RUNNING ? i.pause() : i.play();
|
|
6266
6276
|
}
|
|
6267
6277
|
}
|
|
6268
6278
|
}, {
|
|
6269
6279
|
key: "onPlayPause",
|
|
6270
6280
|
value: function(e) {
|
|
6271
6281
|
var i = this.config, n = this.player;
|
|
6272
|
-
if (!(!n || n.state <
|
|
6282
|
+
if (!(!n || n.state < B.RUNNING || !this.autoPlayStart)) {
|
|
6273
6283
|
if (i.mode === "show") {
|
|
6274
6284
|
this.switchStatus(), this.show();
|
|
6275
6285
|
return;
|
|
@@ -6361,7 +6371,7 @@ var po = /* @__PURE__ */ function(a) {
|
|
|
6361
6371
|
}
|
|
6362
6372
|
}]), r;
|
|
6363
6373
|
}(U);
|
|
6364
|
-
function
|
|
6374
|
+
function Ee(a, o, r) {
|
|
6365
6375
|
try {
|
|
6366
6376
|
return ' <div class="xg-tips '.concat(r ? "hide" : " ", '" lang-key="').concat(a.i18nKeys[o], `">
|
|
6367
6377
|
`).concat(a.i18n[o], `
|
|
@@ -6802,7 +6812,7 @@ var Dt = {
|
|
|
6802
6812
|
return `
|
|
6803
6813
|
<xg-mini-layer class="xg-mini-layer">
|
|
6804
6814
|
<xg-mini-header class="xgplayer-mini-header">
|
|
6805
|
-
`.concat(
|
|
6815
|
+
`.concat(Ee(this, "MINI_DRAG", this.playerConfig.isHideTips), `
|
|
6806
6816
|
</xg-mini-header>
|
|
6807
6817
|
<div class="mini-cancel-btn">
|
|
6808
6818
|
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
|
@@ -6903,7 +6913,7 @@ var Dt = {
|
|
|
6903
6913
|
e.__hooks[n] = null;
|
|
6904
6914
|
});
|
|
6905
6915
|
var i = this.playerConfig.isMobileSimulateMode;
|
|
6906
|
-
i === "mobile" ||
|
|
6916
|
+
i === "mobile" || O.device === "mobile" && !O.os.isIpad || this.initEvents();
|
|
6907
6917
|
}
|
|
6908
6918
|
}, {
|
|
6909
6919
|
key: "initEvents",
|
|
@@ -6947,7 +6957,7 @@ var Dt = {
|
|
|
6947
6957
|
return {};
|
|
6948
6958
|
}
|
|
6949
6959
|
}]), r;
|
|
6950
|
-
}(
|
|
6960
|
+
}(be), ke = {
|
|
6951
6961
|
PRESS: "press",
|
|
6952
6962
|
PRESS_END: "pressend",
|
|
6953
6963
|
DOUBlE_CLICK: "doubleclick",
|
|
@@ -7114,12 +7124,12 @@ var Ne = {
|
|
|
7114
7124
|
if (!(!n || u.disableGesture || !e.duration || !l.isStart)) {
|
|
7115
7125
|
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;
|
|
7116
7126
|
if (Math.abs(m - l.x) > h || Math.abs(_ - l.y) > h) {
|
|
7117
|
-
var
|
|
7118
|
-
if (
|
|
7127
|
+
var w = m - l.x, b = _ - l.y, C = l.scope;
|
|
7128
|
+
if (C === -1 && (C = e.checkScope(m, _, w, b, l), C === 0 && (d ? c.blur() : c.focus({
|
|
7119
7129
|
autoHide: !1
|
|
7120
|
-
}), !l.time && (l.time = parseInt(c.currentTime * 1e3, 10) + e.timeOffset * 1e3)), l.scope =
|
|
7130
|
+
}), !l.time && (l.time = parseInt(c.currentTime * 1e3, 10) + e.timeOffset * 1e3)), l.scope = C), C === -1 || C > 0 && !u.gestureY || C === 0 && !u.gestureX)
|
|
7121
7131
|
return;
|
|
7122
|
-
e.executeMove(
|
|
7132
|
+
e.executeMove(w, b, C, l.width, l.height), l.x = m, l.y = _;
|
|
7123
7133
|
}
|
|
7124
7134
|
}
|
|
7125
7135
|
}), y(v(e), "onTouchEnd", function(i) {
|
|
@@ -7189,7 +7199,7 @@ var Ne = {
|
|
|
7189
7199
|
d.preventDefault();
|
|
7190
7200
|
}), s.root.addEventListener("touchmove", this.onRootTouchMove, !0), s.root.addEventListener("touchend", this.onRootTouchEnd, !0), s.root.addEventListener("touchcancel", this.onRootTouchEnd, !0);
|
|
7191
7201
|
var u = this.player.controls;
|
|
7192
|
-
u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(
|
|
7202
|
+
u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(Te, function() {
|
|
7193
7203
|
var d = e.player, g = e.config;
|
|
7194
7204
|
d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
|
|
7195
7205
|
}), this.on([ve, Re], function() {
|
|
@@ -7306,7 +7316,7 @@ var Ne = {
|
|
|
7306
7316
|
this.updateBrightness(i / l);
|
|
7307
7317
|
break;
|
|
7308
7318
|
case 2:
|
|
7309
|
-
|
|
7319
|
+
O.os.isIos || this.updateVolume(i / l);
|
|
7310
7320
|
break;
|
|
7311
7321
|
}
|
|
7312
7322
|
}
|
|
@@ -7343,7 +7353,7 @@ var Ne = {
|
|
|
7343
7353
|
key: "clickHandler",
|
|
7344
7354
|
value: function(e) {
|
|
7345
7355
|
var i = this.player, n = this.config, s = this.playerConfig;
|
|
7346
|
-
if (i.state <
|
|
7356
|
+
if (i.state < B.RUNNING) {
|
|
7347
7357
|
s.closeVideoClick || (this.sendUseAction(f.createEvent("click")), i.play());
|
|
7348
7358
|
return;
|
|
7349
7359
|
}
|
|
@@ -7353,7 +7363,7 @@ var Ne = {
|
|
|
7353
7363
|
key: "dbClickHandler",
|
|
7354
7364
|
value: function(e) {
|
|
7355
7365
|
var i = this.config, n = this.player;
|
|
7356
|
-
!i.closedbClick && n.state >=
|
|
7366
|
+
!i.closedbClick && n.state >= B.RUNNING && (this.sendUseAction(f.createEvent("dblclick")), this.switchPlayPause());
|
|
7357
7367
|
}
|
|
7358
7368
|
}, {
|
|
7359
7369
|
key: "onClick",
|
|
@@ -7442,7 +7452,7 @@ var Ne = {
|
|
|
7442
7452
|
key: "switchPlayPause",
|
|
7443
7453
|
value: function() {
|
|
7444
7454
|
var e = this.player;
|
|
7445
|
-
if (e.state <
|
|
7455
|
+
if (e.state < B.ATTACHED)
|
|
7446
7456
|
return !1;
|
|
7447
7457
|
e.ended || (e.paused ? e.play() : e.pause());
|
|
7448
7458
|
}
|
|
@@ -7814,7 +7824,7 @@ var Fi = /* @__PURE__ */ function(a) {
|
|
|
7814
7824
|
};
|
|
7815
7825
|
}
|
|
7816
7826
|
}]), r;
|
|
7817
|
-
}(
|
|
7827
|
+
}(be);
|
|
7818
7828
|
function Po() {
|
|
7819
7829
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
7820
7830
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
@@ -8229,7 +8239,7 @@ var Io = /* @__PURE__ */ function(a) {
|
|
|
8229
8239
|
fragAutoFocus: s,
|
|
8230
8240
|
fragClass: l,
|
|
8231
8241
|
style: this.playerConfig.commonStyle || {}
|
|
8232
|
-
}),
|
|
8242
|
+
}), O.device === "mobile" && (this.config.isDragingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.on(Te, function() {
|
|
8233
8243
|
e.onMouseLeave();
|
|
8234
8244
|
}), this.on(ie, function() {
|
|
8235
8245
|
e.onTimeupdate();
|
|
@@ -8241,7 +8251,7 @@ var Io = /* @__PURE__ */ function(a) {
|
|
|
8241
8251
|
e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
|
|
8242
8252
|
}), this.on(Oe, function() {
|
|
8243
8253
|
e.onReset();
|
|
8244
|
-
}), this.on(
|
|
8254
|
+
}), this.on(we, function() {
|
|
8245
8255
|
e.onVideoResize();
|
|
8246
8256
|
}), this.bindDomEvents(), this.initCustomStyle();
|
|
8247
8257
|
}
|
|
@@ -8346,10 +8356,10 @@ var Io = /* @__PURE__ */ function(a) {
|
|
|
8346
8356
|
m = m > d ? d : m < 0 ? 0 : m;
|
|
8347
8357
|
var _ = m / d;
|
|
8348
8358
|
_ = _ < 0 ? 0 : _ > 1 ? 1 : _;
|
|
8349
|
-
var
|
|
8359
|
+
var w = parseInt(_ * this.offsetDuration * 1e3, 10) / 1e3, b = f.getCurrentTimeByOffset(w, n.timeSegments);
|
|
8350
8360
|
return {
|
|
8351
8361
|
percent: _,
|
|
8352
|
-
currentTime:
|
|
8362
|
+
currentTime: w,
|
|
8353
8363
|
seekTime: b,
|
|
8354
8364
|
offset: m,
|
|
8355
8365
|
width: d,
|
|
@@ -8580,7 +8590,7 @@ var Io = /* @__PURE__ */ function(a) {
|
|
|
8580
8590
|
return `<xg-icon class="xgplayer-play">
|
|
8581
8591
|
<div class="xgplayer-icon">
|
|
8582
8592
|
</div>
|
|
8583
|
-
`.concat(
|
|
8593
|
+
`.concat(Ee(this, "PLAY_TIPS", this.playerConfig.isHideTips), `
|
|
8584
8594
|
</xg-icon>`);
|
|
8585
8595
|
}
|
|
8586
8596
|
}], [{
|
|
@@ -8722,7 +8732,7 @@ var Bo = /* @__PURE__ */ function(a) {
|
|
|
8722
8732
|
}
|
|
8723
8733
|
}
|
|
8724
8734
|
}
|
|
8725
|
-
})),
|
|
8735
|
+
})), O.device === "mobile" && window.addEventListener("orientationchange", this._onOrientationChange);
|
|
8726
8736
|
}
|
|
8727
8737
|
}
|
|
8728
8738
|
}, {
|
|
@@ -8742,7 +8752,7 @@ var Bo = /* @__PURE__ */ function(a) {
|
|
|
8742
8752
|
}, {
|
|
8743
8753
|
key: "destroy",
|
|
8744
8754
|
value: function() {
|
|
8745
|
-
A(I(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon",
|
|
8755
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", O.device === "mobile" ? "touchend" : "click", this.handleFullscreen), O.device === "mobile" && window.removeEventListener("orientationchange", this._onOrientationChange);
|
|
8746
8756
|
}
|
|
8747
8757
|
}, {
|
|
8748
8758
|
key: "initIcons",
|
|
@@ -8771,7 +8781,7 @@ var Bo = /* @__PURE__ */ function(a) {
|
|
|
8771
8781
|
return `<xg-icon class="xgplayer-fullscreen">
|
|
8772
8782
|
<div class="xgplayer-icon">
|
|
8773
8783
|
</div>
|
|
8774
|
-
`.concat(
|
|
8784
|
+
`.concat(Ee(this, e, this.playerConfig.isHideTips), `
|
|
8775
8785
|
</xg-icon>`);
|
|
8776
8786
|
}
|
|
8777
8787
|
}
|
|
@@ -8843,7 +8853,7 @@ var Bo = /* @__PURE__ */ function(a) {
|
|
|
8843
8853
|
key: "afterCreate",
|
|
8844
8854
|
value: function() {
|
|
8845
8855
|
var e = this, i = this.player.controls.config.mode;
|
|
8846
|
-
this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([
|
|
8856
|
+
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([Te, me, ie], function(n) {
|
|
8847
8857
|
n.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
8848
8858
|
}), this.on(Re, function() {
|
|
8849
8859
|
e.onTimeUpdate(!0);
|
|
@@ -9021,7 +9031,7 @@ var Bo = /* @__PURE__ */ function(a) {
|
|
|
9021
9031
|
return E(r, [{
|
|
9022
9032
|
key: "afterCreate",
|
|
9023
9033
|
value: function() {
|
|
9024
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(
|
|
9034
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Te, this._onDurationChange), this.on(ye, this._onLoadedData), this.on(ie, this._onTimeupdate), this.on(_t, this._onSeeking), this.on(ne, this._onPlay);
|
|
9025
9035
|
}
|
|
9026
9036
|
}, {
|
|
9027
9037
|
key: "setConfig",
|
|
@@ -9102,7 +9112,7 @@ var Bo = /* @__PURE__ */ function(a) {
|
|
|
9102
9112
|
};
|
|
9103
9113
|
}
|
|
9104
9114
|
}]), r;
|
|
9105
|
-
}(
|
|
9115
|
+
}(be);
|
|
9106
9116
|
function zo() {
|
|
9107
9117
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9108
9118
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
@@ -9202,7 +9212,7 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
9202
9212
|
pre: function(u) {
|
|
9203
9213
|
u.preventDefault(), u.stopPropagation();
|
|
9204
9214
|
}
|
|
9205
|
-
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave),
|
|
9215
|
+
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), O.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(Xi, this.onVolumeChange), this.once(ye, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
|
|
9206
9216
|
}
|
|
9207
9217
|
}
|
|
9208
9218
|
}, {
|
|
@@ -9280,7 +9290,7 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
9280
9290
|
}, {
|
|
9281
9291
|
key: "destroy",
|
|
9282
9292
|
value: function() {
|
|
9283
|
-
this._timerId && (f.clearTimeout(this, this._timerId), this._timerId = null), this.unbind("mouseenter", this.onMouseenter), this.unbind(["blur", "mouseleave"], this.onMouseleave), this.unbind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.unbind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.unbind(".xgplayer-slider", "mouseup", this.onBarMouseUp), document.removeEventListener("mouseup", this.onBarMouseUp), this.unbind(".xgplayer-icon",
|
|
9293
|
+
this._timerId && (f.clearTimeout(this, this._timerId), this._timerId = null), this.unbind("mouseenter", this.onMouseenter), this.unbind(["blur", "mouseleave"], this.onMouseleave), this.unbind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.unbind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.unbind(".xgplayer-slider", "mouseup", this.onBarMouseUp), document.removeEventListener("mouseup", this.onBarMouseUp), this.unbind(".xgplayer-icon", O.device === "mobile" ? "touchend" : "click", this.changeMutedHandler);
|
|
9284
9294
|
}
|
|
9285
9295
|
}, {
|
|
9286
9296
|
key: "render",
|
|
@@ -9345,7 +9355,7 @@ var Ko = /* @__PURE__ */ function(a) {
|
|
|
9345
9355
|
value: function() {
|
|
9346
9356
|
var e = this;
|
|
9347
9357
|
if (!this.config.disable) {
|
|
9348
|
-
A(I(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(
|
|
9358
|
+
A(I(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(we, function() {
|
|
9349
9359
|
e.rotateDeg && e.config.innerRotate && f.setTimeout(e, function() {
|
|
9350
9360
|
e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
|
|
9351
9361
|
}, 100);
|
|
@@ -9371,17 +9381,17 @@ var Ko = /* @__PURE__ */ function(a) {
|
|
|
9371
9381
|
this.player.videoRotateDeg = e;
|
|
9372
9382
|
return;
|
|
9373
9383
|
}
|
|
9374
|
-
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,
|
|
9375
|
-
(e === 0.75 || e === 0.25) && (p = "".concat(g, "px"), m = "".concat(d, "px"), _ = -(g - d) / 2,
|
|
9376
|
-
var b = "translate(".concat(_, "px,").concat(
|
|
9384
|
+
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, w = 0;
|
|
9385
|
+
(e === 0.75 || e === 0.25) && (p = "".concat(g, "px"), m = "".concat(d, "px"), _ = -(g - d) / 2, w = -(d - g) / 2);
|
|
9386
|
+
var b = "translate(".concat(_, "px,").concat(w, "px) rotate(").concat(e, "turn)"), C = {
|
|
9377
9387
|
transformOrigin: "center center",
|
|
9378
9388
|
transform: b,
|
|
9379
9389
|
webKitTransform: b,
|
|
9380
9390
|
height: m,
|
|
9381
9391
|
width: p
|
|
9382
|
-
},
|
|
9383
|
-
Object.keys(
|
|
9384
|
-
|
|
9392
|
+
}, F = i ? h : u, R = i ? n.getPlugin("poster") : null;
|
|
9393
|
+
Object.keys(C).map(function(z) {
|
|
9394
|
+
F.style[z] = C[z], R && R.root && (R.root.style[z] = C[z]);
|
|
9385
9395
|
});
|
|
9386
9396
|
}
|
|
9387
9397
|
}, {
|
|
@@ -9407,7 +9417,7 @@ var Ko = /* @__PURE__ */ function(a) {
|
|
|
9407
9417
|
<xg-icon class="xgplayer-rotate">
|
|
9408
9418
|
<div class="xgplayer-icon">
|
|
9409
9419
|
</div>
|
|
9410
|
-
`.concat(
|
|
9420
|
+
`.concat(Ee(this, "ROTATE_TIPS", this.playerConfig.isHideTips), `
|
|
9411
9421
|
</xg-icon>`);
|
|
9412
9422
|
}
|
|
9413
9423
|
}], [{
|
|
@@ -9556,18 +9566,18 @@ var Be = {
|
|
|
9556
9566
|
documentPictureInPicture.requestWindow(u).then(function(h) {
|
|
9557
9567
|
var d = s.docPiPNode, g = s.docPiPStyle;
|
|
9558
9568
|
e.enterPIPCallback();
|
|
9559
|
-
var p = d || i.root, m = p.parentElement, _ = p.previousSibling,
|
|
9569
|
+
var p = d || i.root, m = p.parentElement, _ = p.previousSibling, w = p.nextSibling;
|
|
9560
9570
|
e.copyStyleIntoPiPWindow(h);
|
|
9561
9571
|
var b = document.createElement("style");
|
|
9562
9572
|
if (b.append("body{padding:0; margin:0;}"), g) {
|
|
9563
|
-
var
|
|
9564
|
-
typeof g == "string" ?
|
|
9573
|
+
var C = "";
|
|
9574
|
+
typeof g == "string" ? C = g : typeof g == "function" && (C = g.call(s)), C && b.append(C);
|
|
9565
9575
|
} else
|
|
9566
9576
|
p === i.root && b.append(`
|
|
9567
9577
|
.xgplayer{width: 100%!important; height: 100%!important;}
|
|
9568
9578
|
`);
|
|
9569
|
-
h.document.head.append(b), h.document.body.append(p), h.addEventListener("pagehide", function(
|
|
9570
|
-
m && (
|
|
9579
|
+
h.document.head.append(b), h.document.body.append(p), h.addEventListener("pagehide", function(F) {
|
|
9580
|
+
m && (w ? m.insertBefore(p, w) : _ ? m.insertBefore(p, _.nextSibling) : m.appendChild(p)), e.leavePIPCallback();
|
|
9571
9581
|
}, {
|
|
9572
9582
|
once: !0
|
|
9573
9583
|
});
|
|
@@ -9624,7 +9634,7 @@ var Be = {
|
|
|
9624
9634
|
return `<xg-icon class="xgplayer-pip">
|
|
9625
9635
|
<div class="xgplayer-icon xg-icon-disable">
|
|
9626
9636
|
</div>
|
|
9627
|
-
`.concat(
|
|
9637
|
+
`.concat(Ee(this, "PIP", this.playerConfig.isHideTips), `
|
|
9628
9638
|
</xg-icon>`);
|
|
9629
9639
|
}
|
|
9630
9640
|
}], [{
|
|
@@ -9685,7 +9695,7 @@ var Zo = /* @__PURE__ */ function(a) {
|
|
|
9685
9695
|
key: "initEvents",
|
|
9686
9696
|
value: function() {
|
|
9687
9697
|
this.nextHandler = this.hook("nextClick", this.changeSrc);
|
|
9688
|
-
var e =
|
|
9698
|
+
var e = O.device === "mobile" ? "touchend" : "click";
|
|
9689
9699
|
this.bind(e, this.playNext), this.show();
|
|
9690
9700
|
}
|
|
9691
9701
|
}, {
|
|
@@ -9707,7 +9717,7 @@ var Zo = /* @__PURE__ */ function(a) {
|
|
|
9707
9717
|
<xg-icon class="xgplayer-playnext">
|
|
9708
9718
|
<div class="xgplayer-icon">
|
|
9709
9719
|
</div>
|
|
9710
|
-
`.concat(
|
|
9720
|
+
`.concat(Ee(this, "PLAYNEXT_TIPS", this.playerConfig.isHideTips), `
|
|
9711
9721
|
</xg-icon>
|
|
9712
9722
|
`);
|
|
9713
9723
|
}
|
|
@@ -9737,33 +9747,33 @@ var Zo = /* @__PURE__ */ function(a) {
|
|
|
9737
9747
|
return String(D);
|
|
9738
9748
|
}, g = n.Blob || n.MozBlob || n.WebKitBlob || d, p = e || "download", m, _;
|
|
9739
9749
|
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)) {
|
|
9740
|
-
var
|
|
9741
|
-
return
|
|
9750
|
+
var w = new XMLHttpRequest();
|
|
9751
|
+
return w.open("GET", c, !0), w.responseType = "blob", w.onload = function(D) {
|
|
9742
9752
|
r(D.target.response, p, s);
|
|
9743
9753
|
}, setTimeout(function() {
|
|
9744
|
-
|
|
9745
|
-
}, 0),
|
|
9754
|
+
w.send();
|
|
9755
|
+
}, 0), w;
|
|
9746
9756
|
}
|
|
9747
9757
|
if (/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u))
|
|
9748
9758
|
if (u.length > 1024 * 1024 * 1.999 && g !== d)
|
|
9749
|
-
u =
|
|
9759
|
+
u = R(u), l = u.type || s;
|
|
9750
9760
|
else
|
|
9751
9761
|
return navigator.msSaveBlob ? (
|
|
9752
9762
|
// IE10 can't do a[download], only Blobs:
|
|
9753
|
-
navigator.msSaveBlob(
|
|
9763
|
+
navigator.msSaveBlob(R(u), p)
|
|
9754
9764
|
) : z(u);
|
|
9755
9765
|
else if (/([\x80-\xff])/.test(u)) {
|
|
9756
|
-
var b = 0,
|
|
9757
|
-
for (b; b <
|
|
9758
|
-
|
|
9759
|
-
u = new g([
|
|
9766
|
+
var b = 0, C = new Uint8Array(u.length), F = C.length;
|
|
9767
|
+
for (b; b < F; ++b)
|
|
9768
|
+
C[b] = u.charCodeAt(b);
|
|
9769
|
+
u = new g([C], { type: l });
|
|
9760
9770
|
}
|
|
9761
9771
|
m = u instanceof g ? u : new g([u], { type: l });
|
|
9762
|
-
function
|
|
9763
|
-
var q = D.split(/[:;,]/), G = q[1], H = q[2] == "base64" ? atob : decodeURIComponent,
|
|
9772
|
+
function R(D) {
|
|
9773
|
+
var q = D.split(/[:;,]/), G = q[1], H = q[2] == "base64" ? atob : decodeURIComponent, ee = H(q.pop()), re = ee.length, se = 0, Se = new Uint8Array(re);
|
|
9764
9774
|
for (se; se < re; ++se)
|
|
9765
|
-
|
|
9766
|
-
return new g([
|
|
9775
|
+
Se[se] = ee.charCodeAt(se);
|
|
9776
|
+
return new g([Se], { type: G });
|
|
9767
9777
|
}
|
|
9768
9778
|
function z(D, q) {
|
|
9769
9779
|
if ("download" in h)
|
|
@@ -9873,7 +9883,7 @@ var ta = /* @__PURE__ */ function(a) {
|
|
|
9873
9883
|
return `<xg-icon class="xgplayer-download">
|
|
9874
9884
|
<div class="xgplayer-icon">
|
|
9875
9885
|
</div>
|
|
9876
|
-
`.concat(
|
|
9886
|
+
`.concat(Ee(this, "DOWNLOAD_TIPS", this.playerConfig.isHideTips), `
|
|
9877
9887
|
</xg-icon>`);
|
|
9878
9888
|
}
|
|
9879
9889
|
}], [{
|
|
@@ -9909,7 +9919,7 @@ var ta = /* @__PURE__ */ function(a) {
|
|
|
9909
9919
|
var e = this.config;
|
|
9910
9920
|
this.initSize = function(i) {
|
|
9911
9921
|
e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
|
|
9912
|
-
}, this.once(
|
|
9922
|
+
}, this.once(we, this.initSize);
|
|
9913
9923
|
}
|
|
9914
9924
|
}, {
|
|
9915
9925
|
key: "onPluginsReady",
|
|
@@ -9962,8 +9972,8 @@ var ta = /* @__PURE__ */ function(a) {
|
|
|
9962
9972
|
p = u.media.canvas;
|
|
9963
9973
|
else {
|
|
9964
9974
|
n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), p = n.canvas, m = n.canvasCtx;
|
|
9965
|
-
var _ = u.media.videoWidth / u.media.videoHeight,
|
|
9966
|
-
_ >
|
|
9975
|
+
var _ = u.media.videoWidth / u.media.videoHeight, w = p.width / p.height, b = 0, C = 0, F = u.media.videoWidth, R = u.media.videoHeight, z, D, q, G;
|
|
9976
|
+
_ > w ? (q = p.width, G = p.width / _, z = 0, D = Math.round((p.height - G) / 2)) : _ === w ? (q = p.width, G = p.height, z = 0, D = 0) : _ < w && (q = p.height * _, G = p.height, z = Math.round((p.width - q) / 2), D = 0), m.drawImage(u.media, b, C, F, R, z, D, q, G);
|
|
9967
9977
|
}
|
|
9968
9978
|
var H = p.toDataURL(h, c).replace(h, "image/octet-stream");
|
|
9969
9979
|
H = H.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(H);
|
|
@@ -9979,7 +9989,7 @@ var ta = /* @__PURE__ */ function(a) {
|
|
|
9979
9989
|
}, {
|
|
9980
9990
|
key: "destroy",
|
|
9981
9991
|
value: function() {
|
|
9982
|
-
A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(
|
|
9992
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(we, this.initSize);
|
|
9983
9993
|
}
|
|
9984
9994
|
}, {
|
|
9985
9995
|
key: "render",
|
|
@@ -10100,7 +10110,7 @@ var ta = /* @__PURE__ */ function(a) {
|
|
|
10100
10110
|
function ra(a, o) {
|
|
10101
10111
|
return a === ce.SIDE ? o === V.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10102
10112
|
}
|
|
10103
|
-
var
|
|
10113
|
+
var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
10104
10114
|
x(r, a);
|
|
10105
10115
|
var o = P(r);
|
|
10106
10116
|
function r(t) {
|
|
@@ -10132,13 +10142,13 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10132
10142
|
key: "afterCreate",
|
|
10133
10143
|
value: function() {
|
|
10134
10144
|
var e = this, i = this.config;
|
|
10135
|
-
this.initIcons(),
|
|
10145
|
+
this.initIcons(), xe = xe || this.domEventType === "touch", xe && O.device === "mobile" && i.listType === ce.DEFAULT && (i.listType = ce.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([we, ge], function() {
|
|
10136
10146
|
e._resizeList();
|
|
10137
10147
|
}), this.once(ve, function() {
|
|
10138
10148
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
10139
|
-
}),
|
|
10149
|
+
}), xe && this.on(Jt, function() {
|
|
10140
10150
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
10141
|
-
}),
|
|
10151
|
+
}), xe ? (i.toggleMode = He.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === He.CLICK ? "click" : "mouseenter", i.toggleMode === He.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
|
|
10142
10152
|
}
|
|
10143
10153
|
}, {
|
|
10144
10154
|
key: "initIcons",
|
|
@@ -10186,7 +10196,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10186
10196
|
var n = this.config, s = n.listType, l = n.list;
|
|
10187
10197
|
this.curIndex = i.to.index, this.curItem = l[this.curIndex], this.changeCurrentText();
|
|
10188
10198
|
var u = this.config.isItemClickHide;
|
|
10189
|
-
(u ||
|
|
10199
|
+
(u || xe || s === ce.SIDE) && this.toggle(!1);
|
|
10190
10200
|
}
|
|
10191
10201
|
}, {
|
|
10192
10202
|
key: "onIconClick",
|
|
@@ -10215,7 +10225,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10215
10225
|
onItemClick: function(m, _) {
|
|
10216
10226
|
n.onItemClick(m, _);
|
|
10217
10227
|
},
|
|
10218
|
-
domEventType:
|
|
10228
|
+
domEventType: xe ? "touch" : "mouse"
|
|
10219
10229
|
},
|
|
10220
10230
|
root: s.listType === ce.SIDE ? u.innerContainer || u.root : this.root
|
|
10221
10231
|
};
|
|
@@ -10553,7 +10563,7 @@ var Ni = /* @__PURE__ */ function(a) {
|
|
|
10553
10563
|
return `<xg-icon class='xgplayer-cssfullscreen'>
|
|
10554
10564
|
<div class="xgplayer-icon">
|
|
10555
10565
|
</div>
|
|
10556
|
-
`.concat(
|
|
10566
|
+
`.concat(Ee(this, "CSSFULLSCREEN_TIPS", this.playerConfig.isHideTips), `
|
|
10557
10567
|
</xg-icon>`);
|
|
10558
10568
|
}
|
|
10559
10569
|
}], [{
|
|
@@ -10874,9 +10884,9 @@ function fa(a) {
|
|
|
10874
10884
|
}), a.ispotsInit = !1, a.playerSize = {
|
|
10875
10885
|
left: r.sizeInfo.left,
|
|
10876
10886
|
width: r.sizeInfo.width
|
|
10877
|
-
}, a.on(
|
|
10887
|
+
}, a.on(Te, function() {
|
|
10878
10888
|
a.ispotsInit ? a.updateDuration() : a.initDots();
|
|
10879
|
-
}), a.on(
|
|
10889
|
+
}), a.on(we, function() {
|
|
10880
10890
|
a.positionDots();
|
|
10881
10891
|
});
|
|
10882
10892
|
}
|
|
@@ -10938,7 +10948,7 @@ var Ue = {
|
|
|
10938
10948
|
n.seekTime && e.player.seek(n.seekTime);
|
|
10939
10949
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
10940
10950
|
e.setTimeContent(f.format(i));
|
|
10941
|
-
}), fa(this), this.on(
|
|
10951
|
+
}), fa(this), this.on(Te, function() {
|
|
10942
10952
|
e.show();
|
|
10943
10953
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
10944
10954
|
}
|
|
@@ -10962,7 +10972,7 @@ var Ue = {
|
|
|
10962
10972
|
var e = this, i = this.player.plugins.progress;
|
|
10963
10973
|
if (i && (Object.keys(Ue).map(function(s) {
|
|
10964
10974
|
e[Ue[s]] = e[Ue[s]].bind(e), i.addCallBack(s, e[Ue[s]]);
|
|
10965
|
-
}),
|
|
10975
|
+
}), O.device !== "mobile")) {
|
|
10966
10976
|
this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
|
|
10967
10977
|
var n = this.hook("previewClick", function() {
|
|
10968
10978
|
});
|
|
@@ -11038,7 +11048,7 @@ var Ue = {
|
|
|
11038
11048
|
key: "registerThumbnail",
|
|
11039
11049
|
value: function() {
|
|
11040
11050
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
11041
|
-
if (
|
|
11051
|
+
if (O.device !== "mobile") {
|
|
11042
11052
|
var i = this.player, n = this.config, s = i.getPlugin("thumbnail");
|
|
11043
11053
|
if (s && s.setConfig(e), !s || !s.usable || !n.isShowThumbnail) {
|
|
11044
11054
|
f.addClass(this.root, "short-line no-thumbnail");
|
|
@@ -11126,7 +11136,7 @@ var Ue = {
|
|
|
11126
11136
|
}, {
|
|
11127
11137
|
key: "render",
|
|
11128
11138
|
value: function() {
|
|
11129
|
-
return
|
|
11139
|
+
return O.device === "mobile" || this.playerConfig.isMobileSimulateMode === "mobile" ? "" : '<div class="xg-spot-info hide '.concat(this.config.mode === "short" ? "short-line" : "", `">
|
|
11130
11140
|
<div class="xg-spot-content">
|
|
11131
11141
|
<div class="xg-spot-thumbnail">
|
|
11132
11142
|
<span class="xg-spot-time"></span>
|
|
@@ -11173,7 +11183,7 @@ var Ue = {
|
|
|
11173
11183
|
key: "afterCreate",
|
|
11174
11184
|
value: function() {
|
|
11175
11185
|
var e = this;
|
|
11176
|
-
this.usable && this.initThumbnail(), this.on([
|
|
11186
|
+
this.usable && this.initThumbnail(), this.on([Te], function() {
|
|
11177
11187
|
var i = e.config, n = i.pic_num, s = i.interval;
|
|
11178
11188
|
e.usable && (e.interval = s > 0 ? s : Math.round(e.player.duration * 1e3 / n) / 1e3);
|
|
11179
11189
|
});
|
|
@@ -11226,26 +11236,26 @@ var Ue = {
|
|
|
11226
11236
|
this.interval = Math.round(this.player.duration / l);
|
|
11227
11237
|
var g = Math.ceil(e / this.interval);
|
|
11228
11238
|
g = g > l ? l : g;
|
|
11229
|
-
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,
|
|
11239
|
+
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, w = m > 0 ? m - _ * c - 1 : 0, b = 0, C = 0;
|
|
11230
11240
|
if (i && n) {
|
|
11231
|
-
var
|
|
11232
|
-
|
|
11241
|
+
var F = i / n;
|
|
11242
|
+
F < h / d ? (C = n, b = C * (h / d)) : (b = i, C = b / (h / d));
|
|
11233
11243
|
} else
|
|
11234
|
-
n ? i || (
|
|
11235
|
-
var
|
|
11244
|
+
n ? i || (C = n || d, b = C * (h / d)) : (b = i || h, C = b / (h / d));
|
|
11245
|
+
var R = this.getUrlByIndex(p);
|
|
11236
11246
|
return {
|
|
11237
11247
|
urlIndex: p,
|
|
11238
11248
|
rowIndex: _,
|
|
11239
|
-
colIndex:
|
|
11240
|
-
url:
|
|
11241
|
-
height:
|
|
11249
|
+
colIndex: w,
|
|
11250
|
+
url: R,
|
|
11251
|
+
height: C,
|
|
11242
11252
|
width: b,
|
|
11243
11253
|
style: {
|
|
11244
|
-
backgroundImage: "url(".concat(
|
|
11254
|
+
backgroundImage: "url(".concat(R, ")"),
|
|
11245
11255
|
backgroundSize: "".concat(b * c, "px auto"),
|
|
11246
|
-
backgroundPosition: "-".concat(
|
|
11256
|
+
backgroundPosition: "-".concat(w * b, "px -").concat(_ * C, "px"),
|
|
11247
11257
|
width: "".concat(b, "px"),
|
|
11248
|
-
height: "".concat(
|
|
11258
|
+
height: "".concat(C, "px")
|
|
11249
11259
|
}
|
|
11250
11260
|
};
|
|
11251
11261
|
}
|
|
@@ -11475,7 +11485,7 @@ var st = null, ma = /* @__PURE__ */ function(a) {
|
|
|
11475
11485
|
s || (s = n.isInnerRender && i.innerContainer || i.root), s.insertAdjacentHTML("afterbegin", '<div class="xgplayer-dynamic-bg" data-index="'.concat(n.index, `"><canvas>
|
|
11476
11486
|
</canvas><xgmask></xgmask></div>`)), this.root = s.children[0], this.canvas = this.find("canvas"), this.canvasFilter || (this.canvas.style.filter = n.filter, this.canvas.style.webkitFilter = n.filter), this.mask = this.find("xgmask"), n.addMask && (this.mask.style.background = n.maskBg), this.canvasCtx = this.canvas.getContext("2d");
|
|
11477
11487
|
} catch (l) {
|
|
11478
|
-
|
|
11488
|
+
M.logError("plugin:DynamicBg", l);
|
|
11479
11489
|
}
|
|
11480
11490
|
}
|
|
11481
11491
|
}, {
|
|
@@ -11500,7 +11510,7 @@ var st = null, ma = /* @__PURE__ */ function(a) {
|
|
|
11500
11510
|
if (!e)
|
|
11501
11511
|
return null;
|
|
11502
11512
|
var i = e && e instanceof window.HTMLVideoElement ? e : e.canvas ? e.canvas : e.flyVideo ? e.flyVideo : null;
|
|
11503
|
-
if (i && !(
|
|
11513
|
+
if (i && !(O.browser === "safari" && f.isMSE(i)))
|
|
11504
11514
|
return i;
|
|
11505
11515
|
var n = i ? i.tagName.toLowerCase() : "";
|
|
11506
11516
|
return n === "canvas" || n === "img" ? i : null;
|
|
@@ -11559,7 +11569,7 @@ var st = null, ma = /* @__PURE__ */ function(a) {
|
|
|
11559
11569
|
}
|
|
11560
11570
|
this.canvasFilter && (this.canvasCtx.filter = s.filter), this.canvasCtx.drawImage(e, n.x, n.y, n.rwidth, n.rheight);
|
|
11561
11571
|
} catch (p) {
|
|
11562
|
-
|
|
11572
|
+
M.logError("plugin:DynamicBg", p);
|
|
11563
11573
|
}
|
|
11564
11574
|
}
|
|
11565
11575
|
}, {
|
|
@@ -11602,7 +11612,7 @@ var st = null, ma = /* @__PURE__ */ function(a) {
|
|
|
11602
11612
|
}, {
|
|
11603
11613
|
key: "supportCanvasFilter",
|
|
11604
11614
|
value: function() {
|
|
11605
|
-
return !(
|
|
11615
|
+
return !(O.browser === "safari" || O.browser === "firefox");
|
|
11606
11616
|
}
|
|
11607
11617
|
}]), r;
|
|
11608
11618
|
}(U), ya = {
|
|
@@ -11824,7 +11834,7 @@ var st = null, ma = /* @__PURE__ */ function(a) {
|
|
|
11824
11834
|
return {};
|
|
11825
11835
|
}
|
|
11826
11836
|
}]), r;
|
|
11827
|
-
}(
|
|
11837
|
+
}(be), Cn = /* @__PURE__ */ function(a) {
|
|
11828
11838
|
x(r, a);
|
|
11829
11839
|
var o = P(r);
|
|
11830
11840
|
function r() {
|
|
@@ -11846,8 +11856,8 @@ var st = null, ma = /* @__PURE__ */ function(a) {
|
|
|
11846
11856
|
console.log("GapJump bufferRange ", c.start(p), c.end(p));
|
|
11847
11857
|
var m = c.start(p) + 0.1, _ = l.media.duration;
|
|
11848
11858
|
if (!(m > _)) {
|
|
11849
|
-
var
|
|
11850
|
-
|
|
11859
|
+
var w = m - g, b = w <= h;
|
|
11860
|
+
w < r.BROWSER_GAP_TOLERANCE || b && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ? m + 0.1 : m), t.player && t.player.emit("detectGap"), console.log("gapJump gapIndex", p, " isGapSamll:", b, " currentTime:", l.media.currentTime, " jumpSize:", g - l.media.currentTime), m !== 0.08 && l && l.emit("log", {
|
|
11851
11861
|
type: "oneevent",
|
|
11852
11862
|
end_type: "gap",
|
|
11853
11863
|
vid: l.config.vid,
|
|
@@ -11992,14 +12002,14 @@ var Ca = /* @__PURE__ */ function(a) {
|
|
|
11992
12002
|
try {
|
|
11993
12003
|
var g = (/* @__PURE__ */ new Date()).getTime(), p = null, m = new XMLHttpRequest();
|
|
11994
12004
|
t.xhr = m, m.open("GET", d);
|
|
11995
|
-
var _ = {},
|
|
11996
|
-
_.Range = "bytes=" +
|
|
12005
|
+
var _ = {}, w = Math.floor(Math.random() * 10);
|
|
12006
|
+
_.Range = "bytes=" + w + "-" + (u + w), _ && Object.keys(_).forEach(function(b) {
|
|
11997
12007
|
m.setRequestHeader(b, _[b]);
|
|
11998
12008
|
}), m.onreadystatechange = function() {
|
|
11999
12009
|
if (m.readyState === 4) {
|
|
12000
12010
|
t.xhr = null, p = (/* @__PURE__ */ new Date()).getTime();
|
|
12001
|
-
var b = m.getResponseHeader("Content-Length") / 1024 * 8,
|
|
12002
|
-
t.appendList(
|
|
12011
|
+
var b = m.getResponseHeader("Content-Length") / 1024 * 8, C = Math.round(b * 1e3 / (p - g));
|
|
12012
|
+
t.appendList(C), t.timer = setTimeout(t.testSpeed, h);
|
|
12003
12013
|
}
|
|
12004
12014
|
}, m.send();
|
|
12005
12015
|
} catch (b) {
|
|
@@ -12202,7 +12212,7 @@ var ba = /* @__PURE__ */ E(function a(o, r) {
|
|
|
12202
12212
|
T(this, a);
|
|
12203
12213
|
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Uo, Do, ga, ha, Ho], u = [].concat(l, [Ro, Bo, Ko, Zo, sa, oa, ta, ia, Wo, Xo]), c = [fo, ho, po, Io, vo, ua, ca, da, Co];
|
|
12204
12214
|
this.plugins = [_a, uo].concat(ae(u), c, [Cn, Ca]);
|
|
12205
|
-
var h = n ? "mobile" :
|
|
12215
|
+
var h = n ? "mobile" : O.device;
|
|
12206
12216
|
switch (h) {
|
|
12207
12217
|
case "pc":
|
|
12208
12218
|
(t = this.plugins).push.apply(t, [Fi, Ot, Ni, ka, wa]);
|
|
@@ -12213,7 +12223,7 @@ var ba = /* @__PURE__ */ E(function a(o, r) {
|
|
|
12213
12223
|
default:
|
|
12214
12224
|
(i = this.plugins).push.apply(i, [Fi, Ot, Ni]);
|
|
12215
12225
|
}
|
|
12216
|
-
(
|
|
12226
|
+
(O.os.isIpad || h === "pc") && this.plugins.push(ma), O.os.isIpad && this.plugins.push(Ot), this.ignores = [], this.i18n = [];
|
|
12217
12227
|
}), ue = /* @__PURE__ */ function(a) {
|
|
12218
12228
|
x(r, a);
|
|
12219
12229
|
var o = P(r);
|
|
@@ -12224,11 +12234,11 @@ var ba = /* @__PURE__ */ E(function a(o, r) {
|
|
|
12224
12234
|
}(bt);
|
|
12225
12235
|
y(ue, "defaultPreset", ba);
|
|
12226
12236
|
y(ue, "Util", f);
|
|
12227
|
-
y(ue, "Sniffer",
|
|
12237
|
+
y(ue, "Sniffer", O);
|
|
12228
12238
|
y(ue, "Errors", lt);
|
|
12229
12239
|
y(ue, "Events", Ns);
|
|
12230
12240
|
y(ue, "Plugin", U);
|
|
12231
|
-
y(ue, "BasePlugin",
|
|
12241
|
+
y(ue, "BasePlugin", be);
|
|
12232
12242
|
y(ue, "I18N", We);
|
|
12233
12243
|
y(ue, "STATE_CLASS", k);
|
|
12234
12244
|
y(ue, "InstManager", vn);
|
|
@@ -12296,11 +12306,11 @@ const Ta = ["id"], Ea = /* @__PURE__ */ le({
|
|
|
12296
12306
|
});
|
|
12297
12307
|
}), (g, p) => {
|
|
12298
12308
|
const m = $e("el-icon");
|
|
12299
|
-
return u.value ? (L(),
|
|
12309
|
+
return u.value ? (L(), Le(En, {
|
|
12300
12310
|
key: 0,
|
|
12301
12311
|
to: "body"
|
|
12302
12312
|
}, [
|
|
12303
|
-
|
|
12313
|
+
J(Sn, {
|
|
12304
12314
|
name: "viewer-fade",
|
|
12305
12315
|
appear: ""
|
|
12306
12316
|
}, {
|
|
@@ -12310,14 +12320,14 @@ const Ta = ["id"], Ea = /* @__PURE__ */ le({
|
|
|
12310
12320
|
{
|
|
12311
12321
|
ref: "wrapper",
|
|
12312
12322
|
tabindex: -1,
|
|
12313
|
-
class:
|
|
12323
|
+
class: Q(j(h).e("wrapper")),
|
|
12314
12324
|
style: oe({ zIndex: a.zIndex })
|
|
12315
12325
|
},
|
|
12316
12326
|
[
|
|
12317
12327
|
S(
|
|
12318
12328
|
"div",
|
|
12319
12329
|
{
|
|
12320
|
-
class:
|
|
12330
|
+
class: Q(j(h).e("mask"))
|
|
12321
12331
|
},
|
|
12322
12332
|
null,
|
|
12323
12333
|
2
|
|
@@ -12327,7 +12337,7 @@ const Ta = ["id"], Ea = /* @__PURE__ */ le({
|
|
|
12327
12337
|
S(
|
|
12328
12338
|
"div",
|
|
12329
12339
|
{
|
|
12330
|
-
class:
|
|
12340
|
+
class: Q(j(h).e("canvas"))
|
|
12331
12341
|
},
|
|
12332
12342
|
[
|
|
12333
12343
|
S("div", { id: j(c) }, null, 8, Ta),
|
|
@@ -12335,13 +12345,13 @@ const Ta = ["id"], Ea = /* @__PURE__ */ le({
|
|
|
12335
12345
|
S(
|
|
12336
12346
|
"span",
|
|
12337
12347
|
{
|
|
12338
|
-
class:
|
|
12348
|
+
class: Q([j(h).e("btn"), j(h).e("close")]),
|
|
12339
12349
|
onClick: d
|
|
12340
12350
|
},
|
|
12341
12351
|
[
|
|
12342
|
-
|
|
12352
|
+
J(m, { onClick: d }, {
|
|
12343
12353
|
default: de(() => [
|
|
12344
|
-
|
|
12354
|
+
J(j(Nr))
|
|
12345
12355
|
]),
|
|
12346
12356
|
_: 1
|
|
12347
12357
|
/* STABLE */
|
|
@@ -12354,7 +12364,7 @@ const Ta = ["id"], Ea = /* @__PURE__ */ le({
|
|
|
12354
12364
|
2
|
|
12355
12365
|
/* CLASS */
|
|
12356
12366
|
),
|
|
12357
|
-
|
|
12367
|
+
Ie(g.$slots, "default", {}, void 0, !0)
|
|
12358
12368
|
],
|
|
12359
12369
|
6
|
|
12360
12370
|
/* CLASS, STYLE */
|
|
@@ -12441,55 +12451,56 @@ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(S
|
|
|
12441
12451
|
default: !1
|
|
12442
12452
|
}
|
|
12443
12453
|
},
|
|
12444
|
-
|
|
12445
|
-
|
|
12454
|
+
emits: ["handPreview"],
|
|
12455
|
+
setup(a, { emit: o }) {
|
|
12456
|
+
const r = a, { cLoadUrl: t, cOnlyofficeConfig: e } = ji(r), i = o, n = Y(() => ({
|
|
12446
12457
|
name: "name",
|
|
12447
12458
|
url: "url",
|
|
12448
12459
|
suffix: "suffix",
|
|
12449
12460
|
size: "size",
|
|
12450
|
-
...
|
|
12451
|
-
})),
|
|
12452
|
-
var
|
|
12453
|
-
|
|
12454
|
-
...
|
|
12455
|
-
name:
|
|
12461
|
+
...r.field
|
|
12462
|
+
})), s = Ke({}), l = Ke(!1), u = (g) => {
|
|
12463
|
+
var p, m;
|
|
12464
|
+
s.value = {
|
|
12465
|
+
...g,
|
|
12466
|
+
name: g.name,
|
|
12456
12467
|
url: Qe(
|
|
12457
|
-
|
|
12458
|
-
|
|
12468
|
+
t.value,
|
|
12469
|
+
g.url || ((m = (p = g == null ? void 0 : g.response) == null ? void 0 : p.data) == null ? void 0 : m.id) || (g == null ? void 0 : g.id)
|
|
12459
12470
|
)
|
|
12460
|
-
},
|
|
12461
|
-
},
|
|
12471
|
+
}, r.isOnlyOfficePreview && (l.value = !0), i("handPreview", s.value);
|
|
12472
|
+
}, c = (g) => {
|
|
12462
12473
|
In.downloadFile(
|
|
12463
12474
|
Qe(
|
|
12464
|
-
|
|
12465
|
-
|
|
12475
|
+
t.value,
|
|
12476
|
+
g[n.value.url] || g.attachmentId || g.id
|
|
12466
12477
|
),
|
|
12467
|
-
|
|
12478
|
+
g[n.value.name] || g.attachmentName
|
|
12468
12479
|
);
|
|
12469
|
-
},
|
|
12470
|
-
...
|
|
12471
|
-
name:
|
|
12472
|
-
size:
|
|
12473
|
-
suffix:
|
|
12480
|
+
}, h = Y(() => Pn.isNumber(r.width) ? `${r.width}px` : r.width), d = Y(() => r.list.map((g) => ({
|
|
12481
|
+
...g,
|
|
12482
|
+
name: g[n.value.name] || g.attachmentName,
|
|
12483
|
+
size: g[n.value.size] || g.fileSize || g.attachmentSize,
|
|
12484
|
+
suffix: g[n.value.suffix] || g.attachmentSuffix
|
|
12474
12485
|
})));
|
|
12475
|
-
return (
|
|
12476
|
-
var
|
|
12477
|
-
const
|
|
12486
|
+
return (g, p) => {
|
|
12487
|
+
var _, w, b;
|
|
12488
|
+
const m = $e("tmplate");
|
|
12478
12489
|
return L(), N(
|
|
12479
12490
|
Ze,
|
|
12480
12491
|
null,
|
|
12481
12492
|
[
|
|
12482
|
-
(
|
|
12493
|
+
(_ = a.list) != null && _.length ? (L(), N(
|
|
12483
12494
|
Ze,
|
|
12484
12495
|
{ key: 0 },
|
|
12485
12496
|
[
|
|
12486
12497
|
a.simple ? (L(!0), N(
|
|
12487
12498
|
Ze,
|
|
12488
12499
|
{ key: 0 },
|
|
12489
|
-
ai(
|
|
12500
|
+
ai(d.value, (C, F) => (L(), N("div", {
|
|
12490
12501
|
class: "iking-privew-annex simple",
|
|
12491
|
-
onClick: (
|
|
12492
|
-
style: oe({ width:
|
|
12502
|
+
onClick: (R) => u(C),
|
|
12503
|
+
style: oe({ width: h.value })
|
|
12493
12504
|
}, [
|
|
12494
12505
|
S(
|
|
12495
12506
|
"div",
|
|
@@ -12501,22 +12512,22 @@ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(S
|
|
|
12501
12512
|
S(
|
|
12502
12513
|
"div",
|
|
12503
12514
|
{
|
|
12504
|
-
class:
|
|
12515
|
+
class: Q(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
12505
12516
|
},
|
|
12506
12517
|
[
|
|
12507
|
-
|
|
12518
|
+
J(j(je), {
|
|
12508
12519
|
name: "iksvg_daochu",
|
|
12509
|
-
onClick: li((
|
|
12520
|
+
onClick: li((R) => c(C), ["stop"]),
|
|
12510
12521
|
size: 20,
|
|
12511
12522
|
active: ""
|
|
12512
12523
|
}, null, 8, ["onClick"]),
|
|
12513
|
-
|
|
12524
|
+
J(j(je), {
|
|
12514
12525
|
name: "iksvg_yulan",
|
|
12515
12526
|
size: 20,
|
|
12516
12527
|
active: ""
|
|
12517
12528
|
}),
|
|
12518
|
-
|
|
12519
|
-
data: { ...C, findex:
|
|
12529
|
+
Ie(g.$slots, "operation", {
|
|
12530
|
+
data: { ...C, findex: F }
|
|
12520
12531
|
})
|
|
12521
12532
|
],
|
|
12522
12533
|
2
|
|
@@ -12525,33 +12536,33 @@ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(S
|
|
|
12525
12536
|
], 12, Pa))),
|
|
12526
12537
|
256
|
|
12527
12538
|
/* UNKEYED_FRAGMENT */
|
|
12528
|
-
)) : (L(),
|
|
12539
|
+
)) : (L(), Le(m, { key: 1 }, {
|
|
12529
12540
|
default: de(() => [
|
|
12530
12541
|
(L(!0), N(
|
|
12531
12542
|
Ze,
|
|
12532
12543
|
null,
|
|
12533
|
-
ai(
|
|
12534
|
-
var
|
|
12544
|
+
ai(d.value, (C, F) => {
|
|
12545
|
+
var R;
|
|
12535
12546
|
return L(), N(
|
|
12536
12547
|
"div",
|
|
12537
12548
|
{
|
|
12538
|
-
class:
|
|
12539
|
-
key:
|
|
12549
|
+
class: Q(["iking-privew-annex", { "is-bg": a.showBg }]),
|
|
12550
|
+
key: F,
|
|
12540
12551
|
style: oe({
|
|
12541
|
-
marginBottom:
|
|
12542
|
-
width:
|
|
12552
|
+
marginBottom: F == ((R = a.list) == null ? void 0 : R.length) - 1 ? "0" : "10px",
|
|
12553
|
+
width: h.value
|
|
12543
12554
|
})
|
|
12544
12555
|
},
|
|
12545
12556
|
[
|
|
12546
12557
|
S("div", {
|
|
12547
12558
|
class: "file-card",
|
|
12548
|
-
onClick: (
|
|
12559
|
+
onClick: (z) => u(C)
|
|
12549
12560
|
}, [
|
|
12550
|
-
|
|
12561
|
+
J(j(Fr), {
|
|
12551
12562
|
file: C,
|
|
12552
12563
|
style: oe({ height: `${a.iconSize}px` }),
|
|
12553
12564
|
class: "ikui-w-auto",
|
|
12554
|
-
fields:
|
|
12565
|
+
fields: n.value
|
|
12555
12566
|
}, null, 8, ["file", "style", "fields"]),
|
|
12556
12567
|
S("div", La, [
|
|
12557
12568
|
S(
|
|
@@ -12572,24 +12583,24 @@ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(S
|
|
|
12572
12583
|
S(
|
|
12573
12584
|
"div",
|
|
12574
12585
|
{
|
|
12575
|
-
class:
|
|
12586
|
+
class: Q(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
12576
12587
|
},
|
|
12577
12588
|
[
|
|
12578
|
-
|
|
12589
|
+
J(j(je), {
|
|
12579
12590
|
name: "iksvg_daochu",
|
|
12580
|
-
onClick: li((
|
|
12591
|
+
onClick: li((z) => c(C), ["stop"]),
|
|
12581
12592
|
bg: a.showBg,
|
|
12582
12593
|
size: a.showBg ? "default" : 20,
|
|
12583
12594
|
title: "下载"
|
|
12584
12595
|
}, null, 8, ["onClick", "bg", "size"]),
|
|
12585
|
-
|
|
12596
|
+
J(j(je), {
|
|
12586
12597
|
name: "iksvg_yulan",
|
|
12587
12598
|
bg: a.showBg,
|
|
12588
12599
|
size: a.showBg ? "default" : 20,
|
|
12589
12600
|
title: "预览"
|
|
12590
12601
|
}, null, 8, ["bg", "size"]),
|
|
12591
|
-
|
|
12592
|
-
data: { ...C, findex:
|
|
12602
|
+
Ie(g.$slots, "operation", {
|
|
12603
|
+
data: { ...C, findex: F }
|
|
12593
12604
|
})
|
|
12594
12605
|
],
|
|
12595
12606
|
2
|
|
@@ -12612,14 +12623,14 @@ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(S
|
|
|
12612
12623
|
64
|
|
12613
12624
|
/* STABLE_FRAGMENT */
|
|
12614
12625
|
)) : he("v-if", !0),
|
|
12615
|
-
|
|
12616
|
-
show:
|
|
12617
|
-
"onUpdate:show":
|
|
12618
|
-
loadUrl: j(
|
|
12619
|
-
file:
|
|
12620
|
-
onlyofficeServer: ((
|
|
12621
|
-
onlyOfficeConfig: j(
|
|
12622
|
-
onlyOfficeAccept: ((
|
|
12626
|
+
J(j(zr), {
|
|
12627
|
+
show: l.value,
|
|
12628
|
+
"onUpdate:show": p[0] || (p[0] = (C) => l.value = C),
|
|
12629
|
+
loadUrl: j(t),
|
|
12630
|
+
file: s.value,
|
|
12631
|
+
onlyofficeServer: ((w = j(e)) == null ? void 0 : w.serverUrl) || a.onlyofficeServer,
|
|
12632
|
+
onlyOfficeConfig: j(e),
|
|
12633
|
+
onlyOfficeAccept: ((b = j(e)) == null ? void 0 : b.accept) || a.onlyOfficeAccept
|
|
12623
12634
|
}, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
|
|
12624
12635
|
],
|
|
12625
12636
|
64
|