iking-web-ui-pro 0.2.20 → 0.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKExpandCollapse/ik.index.es.js +67 -64
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +279 -276
- package/dist/IKPreviewFile/ik.index.umd.js +16 -16
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +102 -99
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +279 -276
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +113 -110
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +208 -205
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +75 -72
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +413 -410
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +272 -269
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +146 -143
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +156 -153
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1129 -1126
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +556 -553
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +1432 -1429
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +99 -96
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +54 -51
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +697 -694
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +204 -201
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/Provider/ik.index.es.js +10 -14
- package/dist/Provider/ik.index.umd.js +1 -1
- package/dist/index.es.js +4121 -4122
- package/dist/index.umd.js +2 -2
- package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +0 -9
- package/dist/src/components/Provider/index.d.ts +0 -19
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ue, computed as ee, openBlock as T, createElementBlock as E, createElementVNode as S, inject as
|
|
1
|
+
import { defineComponent as ue, computed as ee, openBlock as T, createElementBlock as E, createElementVNode as S, inject as Qe, ref as qe, resolveComponent as Ee, Fragment as le, renderList as Re, normalizeStyle as re, toDisplayString as $, normalizeClass as Q, createVNode as J, unref as j, withModifiers as it, renderSlot as Fe, createBlock as ke, withCtx as pe, createCommentVNode as A, mergeModels as ft, useModel as Xt, reactive as Wi, watch as qt, nextTick as ht, createTextVNode as Me, h as Tn, mergeProps as $i, createSlots as En, Teleport as Sn, Transition as xn, onMounted as In, pushScopeId as Pn, popScopeId as An } from "vue";
|
|
2
2
|
import { paramType as Ln, ikFile as Dn, buildUUID as Gi, ikColor as On, ikDate as Rn } from "iking-utils-pro";
|
|
3
3
|
import { useNamespace as Fn } from "element-plus";
|
|
4
4
|
const Ie = (a, o) => {
|
|
@@ -9,7 +9,7 @@ const Ie = (a, o) => {
|
|
|
9
9
|
for (const [r, t] of Object.entries(o))
|
|
10
10
|
a[r] = t;
|
|
11
11
|
return a;
|
|
12
|
-
},
|
|
12
|
+
}, Vt = (a, o) => {
|
|
13
13
|
var i, n, s, l;
|
|
14
14
|
const r = (i = a == null ? void 0 : a.response) != null && i.data ? di((s = (n = a == null ? void 0 : a.response) == null ? void 0 : n.data) == null ? void 0 : s.suffix) : ((l = a.raw) == null ? void 0 : l.type) || di(a[o.suffix]), t = r == null ? void 0 : r.toLowerCase(), e = {
|
|
15
15
|
sheet: "excel",
|
|
@@ -619,7 +619,7 @@ const Ie = (a, o) => {
|
|
|
619
619
|
}
|
|
620
620
|
},
|
|
621
621
|
setup(a) {
|
|
622
|
-
const o = a, r = ee(() => o.file ?
|
|
622
|
+
const o = a, r = ee(() => o.file ? Vt(o.file, o.fields) : o.type);
|
|
623
623
|
return (t, e) => r.value === "image" ? (T(), E("svg", Bn, jn)) : r.value === "zip" ? (T(), E("svg", Wn, Kn)) : r.value === "ppt" ? (T(), E("svg", Yn, Jn)) : r.value === "word" ? (T(), E("svg", Zn, tr)) : r.value === "pdf" ? (T(), E("svg", ir, sr)) : r.value === "txt" ? (T(), E("svg", or, ur)) : r.value === "audio" ? (T(), E("svg", cr, dr)) : r.value === "video" ? (T(), E("svg", gr, mr)) : r.value === "excel" ? (T(), E("svg", yr, br)) : r.value === "exe" ? (T(), E("svg", wr, Ir)) : r.value === "json" ? (T(), E("svg", Pr, Or)) : (T(), E("svg", Rr, Br));
|
|
624
624
|
}
|
|
625
625
|
}), Ur = Ie(Hr);
|
|
@@ -639,7 +639,7 @@ var zr = /* @__PURE__ */ ue({
|
|
|
639
639
|
]));
|
|
640
640
|
}
|
|
641
641
|
}), Vr = zr;
|
|
642
|
-
const
|
|
642
|
+
const rt = (a, o) => {
|
|
643
643
|
const r = a.__vccOpts || a;
|
|
644
644
|
for (const [t, e] of o)
|
|
645
645
|
r[t] = e;
|
|
@@ -754,8 +754,8 @@ const nt = (a, o) => {
|
|
|
754
754
|
t = "ikapprove-ziyuan";
|
|
755
755
|
}
|
|
756
756
|
return `ikapprove ${t}`;
|
|
757
|
-
},
|
|
758
|
-
const o =
|
|
757
|
+
}, Jt = (a) => {
|
|
758
|
+
const o = Qe("loadUrl"), r = ee(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = Qe("uploadUrl"), e = ee(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = Qe("token"), n = ee(() => a.token || (i == null ? void 0 : i.value)), s = Qe("onlyofficeConfig"), l = ee(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = Qe("userInfo"), c = ee(() => a.userInfo || (u == null ? void 0 : u.value));
|
|
759
759
|
return {
|
|
760
760
|
cLoadUrl: r,
|
|
761
761
|
cUploadUrl: e,
|
|
@@ -771,7 +771,7 @@ const nt = (a, o) => {
|
|
|
771
771
|
const r = ["B", "KB", "MB", "GB", "TB"], t = Math.floor(Math.log(a) / Math.log(1024));
|
|
772
772
|
let e = a / Math.pow(1024, t);
|
|
773
773
|
return (e % 1 === 0 ? e.toFixed(o || 0) : e.toFixed(o)) + " " + r[t];
|
|
774
|
-
},
|
|
774
|
+
}, Je = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "", Gr = ["onClick"], Kr = { class: "fileName simple" }, Yr = ["onClick"], Xr = { class: "text" }, qr = { class: "fileName" }, Jr = { class: "size" }, Zr = /* @__PURE__ */ ue({
|
|
775
775
|
__name: "IkPreviewFile",
|
|
776
776
|
props: {
|
|
777
777
|
list: {
|
|
@@ -846,25 +846,25 @@ const nt = (a, o) => {
|
|
|
846
846
|
}
|
|
847
847
|
},
|
|
848
848
|
setup(a) {
|
|
849
|
-
const o = a, { cLoadUrl: r, cOnlyofficeConfig: t } =
|
|
849
|
+
const o = a, { cLoadUrl: r, cOnlyofficeConfig: t } = Jt(o), e = ee(() => ({
|
|
850
850
|
name: "name",
|
|
851
851
|
url: "url",
|
|
852
852
|
suffix: "suffix",
|
|
853
853
|
size: "size",
|
|
854
854
|
...o.field
|
|
855
|
-
})), i =
|
|
855
|
+
})), i = qe({}), n = qe(!1), s = (f) => {
|
|
856
856
|
var g, p;
|
|
857
857
|
i.value = {
|
|
858
858
|
...f,
|
|
859
859
|
name: f.name,
|
|
860
|
-
url:
|
|
860
|
+
url: Je(
|
|
861
861
|
r.value,
|
|
862
862
|
f.url || ((p = (g = f == null ? void 0 : f.response) == null ? void 0 : g.data) == null ? void 0 : p.id) || (f == null ? void 0 : f.id)
|
|
863
863
|
)
|
|
864
864
|
}, n.value = !0;
|
|
865
865
|
}, l = (f) => {
|
|
866
866
|
Dn.downloadFile(
|
|
867
|
-
|
|
867
|
+
Je(
|
|
868
868
|
r.value,
|
|
869
869
|
f[e.value.url] || f.attachmentId || f.id
|
|
870
870
|
),
|
|
@@ -910,7 +910,7 @@ const nt = (a, o) => {
|
|
|
910
910
|
[
|
|
911
911
|
J(j(Ne), {
|
|
912
912
|
name: "iksvg_daochu",
|
|
913
|
-
onClick:
|
|
913
|
+
onClick: it((C) => l(k), ["stop"]),
|
|
914
914
|
size: 20,
|
|
915
915
|
active: ""
|
|
916
916
|
}, null, 8, ["onClick"]),
|
|
@@ -981,7 +981,7 @@ const nt = (a, o) => {
|
|
|
981
981
|
[
|
|
982
982
|
J(j(Ne), {
|
|
983
983
|
name: "iksvg_daochu",
|
|
984
|
-
onClick:
|
|
984
|
+
onClick: it((B) => l(k), ["stop"]),
|
|
985
985
|
bg: a.showBg,
|
|
986
986
|
size: a.showBg ? "default" : 20,
|
|
987
987
|
title: "下载"
|
|
@@ -1034,7 +1034,7 @@ const nt = (a, o) => {
|
|
|
1034
1034
|
});
|
|
1035
1035
|
const Qr = Ie(Zr), es = /* @__PURE__ */ ue({
|
|
1036
1036
|
__name: "IkPreviewFileDialog",
|
|
1037
|
-
props: /* @__PURE__ */
|
|
1037
|
+
props: /* @__PURE__ */ ft({
|
|
1038
1038
|
file: {
|
|
1039
1039
|
type: Object,
|
|
1040
1040
|
default: () => []
|
|
@@ -1069,13 +1069,13 @@ const Qr = Ie(Zr), es = /* @__PURE__ */ ue({
|
|
|
1069
1069
|
}),
|
|
1070
1070
|
emits: ["update:show"],
|
|
1071
1071
|
setup(a) {
|
|
1072
|
-
const o = a, r =
|
|
1072
|
+
const o = a, r = Xt(a, "show"), t = ee(() => ({
|
|
1073
1073
|
name: "name",
|
|
1074
1074
|
url: "url",
|
|
1075
1075
|
suffix: "suffix",
|
|
1076
1076
|
size: "fileSize",
|
|
1077
1077
|
...o.field
|
|
1078
|
-
})), e =
|
|
1078
|
+
})), e = qe(null), i = qe(null), n = Wi({
|
|
1079
1079
|
image: !1,
|
|
1080
1080
|
office: !1,
|
|
1081
1081
|
video: !1
|
|
@@ -1086,11 +1086,11 @@ const Qr = Ie(Zr), es = /* @__PURE__ */ ue({
|
|
|
1086
1086
|
if (i.value = {
|
|
1087
1087
|
...u,
|
|
1088
1088
|
name: u[t.value.name],
|
|
1089
|
-
url:
|
|
1090
|
-
}, u &&
|
|
1089
|
+
url: Je(o.loadUrl, b)
|
|
1090
|
+
}, u && Vt(u, t.value) === "image") {
|
|
1091
1091
|
n.image = !0;
|
|
1092
1092
|
return;
|
|
1093
|
-
} else if (u &&
|
|
1093
|
+
} else if (u && Vt(u, t.value) === "video") {
|
|
1094
1094
|
n.video = !0;
|
|
1095
1095
|
return;
|
|
1096
1096
|
} else if ((((g = o.onlyOfficeConfig) == null ? void 0 : g.accept) || o.onlyOfficeAccept).includes(C)) {
|
|
@@ -1108,7 +1108,7 @@ const Qr = Ie(Zr), es = /* @__PURE__ */ ue({
|
|
|
1108
1108
|
document: {
|
|
1109
1109
|
key: Gi(),
|
|
1110
1110
|
title: B,
|
|
1111
|
-
url:
|
|
1111
|
+
url: Je(o.loadUrl, b),
|
|
1112
1112
|
fileType: C,
|
|
1113
1113
|
...((y = o.onlyOfficeConfig) == null ? void 0 : y.document) || {}
|
|
1114
1114
|
},
|
|
@@ -1120,8 +1120,8 @@ const Qr = Ie(Zr), es = /* @__PURE__ */ ue({
|
|
|
1120
1120
|
console.info("预览错误: ", k);
|
|
1121
1121
|
}
|
|
1122
1122
|
};
|
|
1123
|
-
|
|
1124
|
-
u &&
|
|
1123
|
+
qt([r, o.file], ([u, c]) => {
|
|
1124
|
+
u && ht(() => {
|
|
1125
1125
|
s(o.file);
|
|
1126
1126
|
});
|
|
1127
1127
|
});
|
|
@@ -1220,56 +1220,57 @@ const ts = Ie(es), is = {
|
|
|
1220
1220
|
warning: { type: Boolean },
|
|
1221
1221
|
width: {}
|
|
1222
1222
|
},
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
const { name: n } = t.value;
|
|
1229
|
-
return /^http?:\/\//.test(n) ? "img" : /i-[^:]+:[^:]+/.test(n) ? "unocss" : n != null && n.startsWith("iksig") ? "iksig" : n != null && n.includes(":") ? "iconify" : n != null && n.startsWith("iksvg") ? "svg" : "i";
|
|
1223
|
+
emits: ["click"],
|
|
1224
|
+
setup(a, { emit: o }) {
|
|
1225
|
+
const r = a, t = ee(() => r), e = ee(() => {
|
|
1226
|
+
const { name: l } = t.value;
|
|
1227
|
+
return /^http?:\/\//.test(l) ? "img" : /i-[^:]+:[^:]+/.test(l) ? "unocss" : l != null && l.startsWith("iksig") ? "iksig" : l != null && l.includes(":") ? "iconify" : l != null && l.startsWith("iksvg") ? "svg" : "i";
|
|
1230
1228
|
}), i = ee(() => {
|
|
1231
|
-
const
|
|
1229
|
+
const l = [];
|
|
1232
1230
|
if (t.value.flip)
|
|
1233
1231
|
switch (t.value.flip) {
|
|
1234
1232
|
case "horizontal":
|
|
1235
|
-
|
|
1233
|
+
l.push("rotateY(180deg)");
|
|
1236
1234
|
break;
|
|
1237
1235
|
case "vertical":
|
|
1238
|
-
|
|
1236
|
+
l.push("rotateX(180deg)");
|
|
1239
1237
|
break;
|
|
1240
1238
|
case "both":
|
|
1241
|
-
|
|
1239
|
+
l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
|
|
1242
1240
|
break;
|
|
1243
1241
|
}
|
|
1244
|
-
t.value.rotate &&
|
|
1245
|
-
const
|
|
1242
|
+
t.value.rotate && l.push(`rotate(${t.value.rotate % 360}deg)`);
|
|
1243
|
+
const u = {
|
|
1246
1244
|
...t.value.color && { color: t.value.color },
|
|
1247
1245
|
...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
|
|
1248
|
-
...
|
|
1246
|
+
...l.length && { transform: l.join(" ") },
|
|
1249
1247
|
padding: t.value.showBg || t.value.bg ? t.value.padding : 0,
|
|
1250
1248
|
...t.value.color && e.value !== "iksig" ? {
|
|
1251
1249
|
"--ik-color-icon-dark": t.value.color,
|
|
1252
1250
|
"--ik-color-icon-light": t.value.colorLight || On.setOpacity(t.value.color, t.value.opacity)
|
|
1253
1251
|
} : {}
|
|
1254
1252
|
};
|
|
1255
|
-
return t.value.width && (
|
|
1256
|
-
})
|
|
1257
|
-
|
|
1258
|
-
|
|
1253
|
+
return t.value.width && (u.width = u.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), u;
|
|
1254
|
+
}), n = o, s = (l) => {
|
|
1255
|
+
t.value.disabled || n("click", l);
|
|
1256
|
+
};
|
|
1257
|
+
return (l, u) => {
|
|
1258
|
+
const c = Ee("el-tooltip"), f = Ee("el-button");
|
|
1259
1259
|
return t.value.tableIconType === "icon" || !t.value.tableIconType ? (T(), E("span", is, [
|
|
1260
1260
|
t.value.notip || !t.value.title ? (T(), E(
|
|
1261
1261
|
"i",
|
|
1262
1262
|
{
|
|
1263
1263
|
key: 0,
|
|
1264
|
+
onClick: it(s, ["stop"]),
|
|
1264
1265
|
class: Q(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1265
|
-
[
|
|
1266
|
+
[l.name]: e.value === "unocss",
|
|
1266
1267
|
"show-bg": t.value.showBg || t.value.bg,
|
|
1267
1268
|
default: t.value.size === "default",
|
|
1268
1269
|
small: t.value.size === "small",
|
|
1269
1270
|
big: t.value.size === "big",
|
|
1270
1271
|
warning: t.value.warning || t.value.type === "warning",
|
|
1271
1272
|
primary: t.value.primary || t.value.type === "primary",
|
|
1272
|
-
success:
|
|
1273
|
+
success: l.success || t.value.type === "success",
|
|
1273
1274
|
error: t.value.error || t.value.type === "error",
|
|
1274
1275
|
active: t.value.active,
|
|
1275
1276
|
disabled: t.value.disabled
|
|
@@ -1310,7 +1311,7 @@ const ts = Ie(es), is = {
|
|
|
1310
1311
|
],
|
|
1311
1312
|
6
|
|
1312
1313
|
/* CLASS, STYLE */
|
|
1313
|
-
)) : (T(), ke(
|
|
1314
|
+
)) : (T(), ke(c, {
|
|
1314
1315
|
key: 1,
|
|
1315
1316
|
content: t.value.title,
|
|
1316
1317
|
placement: "top"
|
|
@@ -1320,17 +1321,18 @@ const ts = Ie(es), is = {
|
|
|
1320
1321
|
"i",
|
|
1321
1322
|
{
|
|
1322
1323
|
class: Q(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1323
|
-
[
|
|
1324
|
+
[l.name]: e.value === "unocss",
|
|
1324
1325
|
"show-bg": t.value.showBg || t.value.bg,
|
|
1325
1326
|
default: t.value.size === "default",
|
|
1326
1327
|
small: t.value.size === "small",
|
|
1327
1328
|
big: t.value.size === "big",
|
|
1328
1329
|
warning: t.value.warning || t.value.type === "warning",
|
|
1329
|
-
primary:
|
|
1330
|
-
success:
|
|
1330
|
+
primary: l.primary || t.value.type === "primary",
|
|
1331
|
+
success: l.success || t.value.type === "success",
|
|
1331
1332
|
error: t.value.error || t.value.type === "error",
|
|
1332
1333
|
active: t.value.active
|
|
1333
1334
|
}]),
|
|
1335
|
+
onClick: it(s, ["stop"]),
|
|
1334
1336
|
style: re(i.value)
|
|
1335
1337
|
},
|
|
1336
1338
|
[
|
|
@@ -1371,9 +1373,10 @@ const ts = Ie(es), is = {
|
|
|
1371
1373
|
_: 1
|
|
1372
1374
|
/* STABLE */
|
|
1373
1375
|
}, 8, ["content"]))
|
|
1374
|
-
])) : (T(), ke(
|
|
1376
|
+
])) : (T(), ke(f, {
|
|
1375
1377
|
key: 1,
|
|
1376
|
-
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
1378
|
+
type: ["warning", "error"].includes(t.value.type) ? "danger" : "",
|
|
1379
|
+
onClick: it(s, ["stop"])
|
|
1377
1380
|
}, {
|
|
1378
1381
|
default: pe(() => [
|
|
1379
1382
|
Me(
|
|
@@ -1388,7 +1391,7 @@ const ts = Ie(es), is = {
|
|
|
1388
1391
|
};
|
|
1389
1392
|
}
|
|
1390
1393
|
});
|
|
1391
|
-
const cs = /* @__PURE__ */
|
|
1394
|
+
const cs = /* @__PURE__ */ rt(us, [["__scopeId", "data-v-4a1004b9"]]), Ne = Ie(cs), fs = {
|
|
1392
1395
|
key: 0,
|
|
1393
1396
|
class: "exit-main-page-maximize"
|
|
1394
1397
|
}, hs = /* @__PURE__ */ ue({
|
|
@@ -1422,9 +1425,9 @@ const cs = /* @__PURE__ */ nt(us, [["__scopeId", "data-v-ec9fdc8a"]]), Ne = Ie(c
|
|
|
1422
1425
|
]));
|
|
1423
1426
|
}
|
|
1424
1427
|
});
|
|
1425
|
-
const ds = /* @__PURE__ */
|
|
1428
|
+
const ds = /* @__PURE__ */ rt(hs, [["__scopeId", "data-v-79f49df8"]]), gs = { class: "base-header" }, ps = /* @__PURE__ */ ue({
|
|
1426
1429
|
__name: "IkBaseDialog",
|
|
1427
|
-
props: /* @__PURE__ */
|
|
1430
|
+
props: /* @__PURE__ */ ft({
|
|
1428
1431
|
title: { default: "" },
|
|
1429
1432
|
cancelText: { default: "取消" },
|
|
1430
1433
|
confirmText: { default: "确认" },
|
|
@@ -1443,7 +1446,7 @@ const ds = /* @__PURE__ */ nt(hs, [["__scopeId", "data-v-79f49df8"]]), gs = { cl
|
|
|
1443
1446
|
}),
|
|
1444
1447
|
emits: ["update:modelValue"],
|
|
1445
1448
|
setup(a) {
|
|
1446
|
-
const o = a, r =
|
|
1449
|
+
const o = a, r = Xt(a, "modelValue"), t = qe(o.fullscreen), e = () => {
|
|
1447
1450
|
t.value = !t.value;
|
|
1448
1451
|
}, i = ue({
|
|
1449
1452
|
setup() {
|
|
@@ -1510,7 +1513,7 @@ const ds = /* @__PURE__ */ nt(hs, [["__scopeId", "data-v-79f49df8"]]), gs = { cl
|
|
|
1510
1513
|
});
|
|
1511
1514
|
const vs = Ie(ps);
|
|
1512
1515
|
var ms = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1513
|
-
function
|
|
1516
|
+
function Zt(a) {
|
|
1514
1517
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1515
1518
|
}
|
|
1516
1519
|
function ys(a, o, r, t) {
|
|
@@ -1640,7 +1643,7 @@ var ks = function(a, o) {
|
|
|
1640
1643
|
}, e.onerror = function(i) {
|
|
1641
1644
|
e.removeAttribute("loading"), t(i);
|
|
1642
1645
|
}, e.setAttribute("loading", ""), e;
|
|
1643
|
-
},
|
|
1646
|
+
}, Qt = ue({
|
|
1644
1647
|
name: "DocumentEditor",
|
|
1645
1648
|
props: {
|
|
1646
1649
|
id: {
|
|
@@ -1813,8 +1816,8 @@ const Cs = ["id"];
|
|
|
1813
1816
|
function bs(a, o, r, t, e, i) {
|
|
1814
1817
|
return T(), E("div", { id: a.id }, null, 8, Cs);
|
|
1815
1818
|
}
|
|
1816
|
-
|
|
1817
|
-
|
|
1819
|
+
Qt.render = bs;
|
|
1820
|
+
Qt.__file = "src/components/DocumentEditor.vue";
|
|
1818
1821
|
const ws = /* @__PURE__ */ ue({
|
|
1819
1822
|
__name: "IkOnlyOffice",
|
|
1820
1823
|
props: {
|
|
@@ -1836,7 +1839,7 @@ const ws = /* @__PURE__ */ ue({
|
|
|
1836
1839
|
}
|
|
1837
1840
|
},
|
|
1838
1841
|
setup(a) {
|
|
1839
|
-
const o = a, r =
|
|
1842
|
+
const o = a, r = qe({
|
|
1840
1843
|
width: "100%",
|
|
1841
1844
|
height: "100%",
|
|
1842
1845
|
...o.configOptions || {},
|
|
@@ -1850,7 +1853,7 @@ const ws = /* @__PURE__ */ ue({
|
|
|
1850
1853
|
style: re({ height: o.officeHeight })
|
|
1851
1854
|
},
|
|
1852
1855
|
[
|
|
1853
|
-
J(j(
|
|
1856
|
+
J(j(Qt), {
|
|
1854
1857
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1855
1858
|
ref: "editorRef",
|
|
1856
1859
|
"document-server-url": a.documentServerUrl,
|
|
@@ -1863,7 +1866,7 @@ const ws = /* @__PURE__ */ ue({
|
|
|
1863
1866
|
));
|
|
1864
1867
|
}
|
|
1865
1868
|
});
|
|
1866
|
-
const Ts = /* @__PURE__ */
|
|
1869
|
+
const Ts = /* @__PURE__ */ rt(ws, [["__scopeId", "data-v-98d51ef9"]]), Es = Ie(Ts);
|
|
1867
1870
|
function pi(a, o) {
|
|
1868
1871
|
var r = Object.keys(a);
|
|
1869
1872
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1927,17 +1930,17 @@ function L(a, o) {
|
|
|
1927
1930
|
}
|
|
1928
1931
|
}), Object.defineProperty(a, "prototype", {
|
|
1929
1932
|
writable: !1
|
|
1930
|
-
}), o &&
|
|
1933
|
+
}), o && jt(a, o);
|
|
1931
1934
|
}
|
|
1932
1935
|
function O(a) {
|
|
1933
1936
|
return O = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
1934
1937
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
1935
1938
|
}, O(a);
|
|
1936
1939
|
}
|
|
1937
|
-
function
|
|
1938
|
-
return
|
|
1940
|
+
function jt(a, o) {
|
|
1941
|
+
return jt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
1939
1942
|
return t.__proto__ = e, t;
|
|
1940
|
-
},
|
|
1943
|
+
}, jt(a, o);
|
|
1941
1944
|
}
|
|
1942
1945
|
function Ss() {
|
|
1943
1946
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
@@ -1956,7 +1959,7 @@ function m(a) {
|
|
|
1956
1959
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1957
1960
|
return a;
|
|
1958
1961
|
}
|
|
1959
|
-
function
|
|
1962
|
+
function ei(a, o) {
|
|
1960
1963
|
if (o && (typeof o == "object" || typeof o == "function"))
|
|
1961
1964
|
return o;
|
|
1962
1965
|
if (o !== void 0)
|
|
@@ -1972,7 +1975,7 @@ function D(a) {
|
|
|
1972
1975
|
e = Reflect.construct(t, arguments, i);
|
|
1973
1976
|
} else
|
|
1974
1977
|
e = t.apply(this, arguments);
|
|
1975
|
-
return
|
|
1978
|
+
return ei(this, e);
|
|
1976
1979
|
};
|
|
1977
1980
|
}
|
|
1978
1981
|
function xs(a, o) {
|
|
@@ -1994,7 +1997,7 @@ function fe(a) {
|
|
|
1994
1997
|
}
|
|
1995
1998
|
function Is(a) {
|
|
1996
1999
|
if (Array.isArray(a))
|
|
1997
|
-
return
|
|
2000
|
+
return Wt(a);
|
|
1998
2001
|
}
|
|
1999
2002
|
function Ps(a) {
|
|
2000
2003
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
@@ -2003,15 +2006,15 @@ function Ps(a) {
|
|
|
2003
2006
|
function As(a, o) {
|
|
2004
2007
|
if (a) {
|
|
2005
2008
|
if (typeof a == "string")
|
|
2006
|
-
return
|
|
2009
|
+
return Wt(a, o);
|
|
2007
2010
|
var r = Object.prototype.toString.call(a).slice(8, -1);
|
|
2008
2011
|
if (r === "Object" && a.constructor && (r = a.constructor.name), r === "Map" || r === "Set")
|
|
2009
2012
|
return Array.from(a);
|
|
2010
2013
|
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
2011
|
-
return
|
|
2014
|
+
return Wt(a, o);
|
|
2012
2015
|
}
|
|
2013
2016
|
}
|
|
2014
|
-
function
|
|
2017
|
+
function Wt(a, o) {
|
|
2015
2018
|
(o == null || o > a.length) && (o = a.length);
|
|
2016
2019
|
for (var r = 0, t = new Array(o); r < o; r++)
|
|
2017
2020
|
t[r] = a[r];
|
|
@@ -2149,31 +2152,31 @@ var Yi = { exports: {} };
|
|
|
2149
2152
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, a.exports = s;
|
|
2150
2153
|
})(Yi);
|
|
2151
2154
|
var Xi = Yi.exports;
|
|
2152
|
-
const qi = /* @__PURE__ */
|
|
2153
|
-
var Os = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1,
|
|
2155
|
+
const qi = /* @__PURE__ */ Zt(Xi);
|
|
2156
|
+
var Os = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, It = {
|
|
2154
2157
|
info: "color: #525252; background-color: #90ee90;",
|
|
2155
2158
|
error: "color: #525252; background-color: red;",
|
|
2156
2159
|
warn: "color: #525252; background-color: yellow; "
|
|
2157
|
-
},
|
|
2160
|
+
}, Pt = "%c[xgplayer]", H = {
|
|
2158
2161
|
config: {
|
|
2159
2162
|
debug: Os ? 3 : 0
|
|
2160
2163
|
},
|
|
2161
2164
|
logInfo: function(o) {
|
|
2162
2165
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
2163
2166
|
e[i - 1] = arguments[i];
|
|
2164
|
-
this.config.debug >= 3 && (r = console).log.apply(r, [
|
|
2167
|
+
this.config.debug >= 3 && (r = console).log.apply(r, [Pt, It.info, o].concat(e));
|
|
2165
2168
|
},
|
|
2166
2169
|
logWarn: function(o) {
|
|
2167
2170
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
2168
2171
|
e[i - 1] = arguments[i];
|
|
2169
|
-
this.config.debug >= 1 && (r = console).warn.apply(r, [
|
|
2172
|
+
this.config.debug >= 1 && (r = console).warn.apply(r, [Pt, It.warn, o].concat(e));
|
|
2170
2173
|
},
|
|
2171
2174
|
logError: function(o) {
|
|
2172
2175
|
var r;
|
|
2173
2176
|
if (!(this.config.debug < 1)) {
|
|
2174
2177
|
for (var t = this.config.debug >= 2 ? "trace" : "error", e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
|
|
2175
2178
|
i[n - 1] = arguments[n];
|
|
2176
|
-
(r = console)[t].apply(r, [
|
|
2179
|
+
(r = console)[t].apply(r, [Pt, It.error, o].concat(i));
|
|
2177
2180
|
}
|
|
2178
2181
|
}
|
|
2179
2182
|
};
|
|
@@ -2813,7 +2816,7 @@ var mi = {
|
|
|
2813
2816
|
return Promise.resolve(r);
|
|
2814
2817
|
}
|
|
2815
2818
|
}
|
|
2816
|
-
},
|
|
2819
|
+
}, $t = "3.0.18", yi = {
|
|
2817
2820
|
1: "media",
|
|
2818
2821
|
2: "media",
|
|
2819
2822
|
3: "media",
|
|
@@ -2827,7 +2830,7 @@ var mi = {
|
|
|
2827
2830
|
4: 5104,
|
|
2828
2831
|
5: 5105,
|
|
2829
2832
|
6: 5106
|
|
2830
|
-
},
|
|
2833
|
+
}, dt = /* @__PURE__ */ I(
|
|
2831
2834
|
function a(o) {
|
|
2832
2835
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2833
2836
|
errorType: "",
|
|
@@ -2843,7 +2846,7 @@ var mi = {
|
|
|
2843
2846
|
var e = r.mediaError ? r.mediaError : o.media.error || {}, i = o.duration, n = o.currentTime, s = o.ended, l = o.src, u = o.currentSrc, c = o.media, f = c.readyState, g = c.networkState, p = r.errorCode || e.code;
|
|
2844
2847
|
_i[p] && (p = _i[p]);
|
|
2845
2848
|
var d = {
|
|
2846
|
-
playerVersion:
|
|
2849
|
+
playerVersion: $t,
|
|
2847
2850
|
currentTime: n,
|
|
2848
2851
|
duration: i,
|
|
2849
2852
|
ended: s,
|
|
@@ -2862,14 +2865,14 @@ var mi = {
|
|
|
2862
2865
|
}), d;
|
|
2863
2866
|
} else if (arguments.length > 1) {
|
|
2864
2867
|
for (var v = {
|
|
2865
|
-
playerVersion:
|
|
2868
|
+
playerVersion: $t,
|
|
2866
2869
|
domain: document.domain
|
|
2867
2870
|
}, y = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], k = 0; k < arguments.length; k++)
|
|
2868
2871
|
v[y[k]] = arguments[k];
|
|
2869
2872
|
return v.ex = t ? (t[arguments[0]] || {}).msg : "", v;
|
|
2870
2873
|
}
|
|
2871
2874
|
}
|
|
2872
|
-
), ae = "play",
|
|
2875
|
+
), ae = "play", ti = "playing", He = "ended", Ze = "pause", st = "error", wt = "seeking", _e = "seeked", oe = "timeupdate", ot = "waiting", ye = "canplay", Vs = "canplaythrough", Pe = "durationchange", Zi = "volumechange", Ce = "loadeddata", js = "loadedmetadata", Qi = "ratechange", en = "progress", ii = "loadstart", Ue = "emptied", Ws = "stalled", $s = "suspend", Gs = "abort", Ks = "bufferedChange", ni = "focus", tn = "blur", ri = "ready", nn = "urlNull", Be = "autoplay_started", si = "autoplay_was_prevented", Tt = "complete", gt = "replay", oi = "destroy", Et = "urlchange", Gt = "download_speed_change", rn = "leaveplayer", sn = "enterplayer", on = "loading", ve = "fullscreen_change", pt = "cssFullscreen_change", vt = "mini_state_change", ai = "definition_change", Ys = "before_definition_change", Kt = "after_definition_change", Xs = "SEI_PARSED", qs = "retry", Se = "video_resize", Yt = "pip_change", an = "rotate", ln = "screenShot", mt = "playnext", un = "shortcut", cn = "xglog", yt = "user_action", St = "reset", fn = "source_error", hn = "source_success", Js = "switch_subtitle", dn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], gn = {
|
|
2873
2876
|
STATS_INFO: "stats_info",
|
|
2874
2877
|
STATS_DOWNLOAD: "stats_download",
|
|
2875
2878
|
STATS_RESET: "stats_reset"
|
|
@@ -2877,48 +2880,48 @@ var mi = {
|
|
|
2877
2880
|
const Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2878
2881
|
__proto__: null,
|
|
2879
2882
|
ABORT: Gs,
|
|
2880
|
-
AFTER_DEFINITION_CHANGE:
|
|
2881
|
-
AUTOPLAY_PREVENTED:
|
|
2883
|
+
AFTER_DEFINITION_CHANGE: Kt,
|
|
2884
|
+
AUTOPLAY_PREVENTED: si,
|
|
2882
2885
|
AUTOPLAY_STARTED: Be,
|
|
2883
2886
|
BEFORE_DEFINITION_CHANGE: Ys,
|
|
2884
2887
|
BUFFER_CHANGE: Ks,
|
|
2885
2888
|
CANPLAY: ye,
|
|
2886
2889
|
CANPLAY_THROUGH: Vs,
|
|
2887
|
-
COMPLETE:
|
|
2888
|
-
CSS_FULLSCREEN_CHANGE:
|
|
2889
|
-
DEFINITION_CHANGE:
|
|
2890
|
-
DESTROY:
|
|
2891
|
-
DOWNLOAD_SPEED_CHANGE:
|
|
2890
|
+
COMPLETE: Tt,
|
|
2891
|
+
CSS_FULLSCREEN_CHANGE: pt,
|
|
2892
|
+
DEFINITION_CHANGE: ai,
|
|
2893
|
+
DESTROY: oi,
|
|
2894
|
+
DOWNLOAD_SPEED_CHANGE: Gt,
|
|
2892
2895
|
DURATION_CHANGE: Pe,
|
|
2893
2896
|
EMPTIED: Ue,
|
|
2894
2897
|
ENDED: He,
|
|
2895
2898
|
ENTER_PLAYER: sn,
|
|
2896
|
-
ERROR:
|
|
2899
|
+
ERROR: st,
|
|
2897
2900
|
FPS_STUCK: pn,
|
|
2898
2901
|
FULLSCREEN_CHANGE: ve,
|
|
2899
2902
|
LEAVE_PLAYER: rn,
|
|
2900
2903
|
LOADED_DATA: Ce,
|
|
2901
2904
|
LOADED_METADATA: js,
|
|
2902
2905
|
LOADING: on,
|
|
2903
|
-
LOAD_START:
|
|
2904
|
-
MINI_STATE_CHANGE:
|
|
2905
|
-
PAUSE:
|
|
2906
|
-
PIP_CHANGE:
|
|
2906
|
+
LOAD_START: ii,
|
|
2907
|
+
MINI_STATE_CHANGE: vt,
|
|
2908
|
+
PAUSE: Ze,
|
|
2909
|
+
PIP_CHANGE: Yt,
|
|
2907
2910
|
PLAY: ae,
|
|
2908
2911
|
PLAYER_BLUR: tn,
|
|
2909
|
-
PLAYER_FOCUS:
|
|
2910
|
-
PLAYING:
|
|
2911
|
-
PLAYNEXT:
|
|
2912
|
+
PLAYER_FOCUS: ni,
|
|
2913
|
+
PLAYING: ti,
|
|
2914
|
+
PLAYNEXT: mt,
|
|
2912
2915
|
PROGRESS: en,
|
|
2913
2916
|
RATE_CHANGE: Qi,
|
|
2914
|
-
READY:
|
|
2915
|
-
REPLAY:
|
|
2916
|
-
RESET:
|
|
2917
|
+
READY: ri,
|
|
2918
|
+
REPLAY: gt,
|
|
2919
|
+
RESET: St,
|
|
2917
2920
|
RETRY: qs,
|
|
2918
2921
|
ROTATE: an,
|
|
2919
2922
|
SCREEN_SHOT: ln,
|
|
2920
2923
|
SEEKED: _e,
|
|
2921
|
-
SEEKING:
|
|
2924
|
+
SEEKING: wt,
|
|
2922
2925
|
SEI_PARSED: Xs,
|
|
2923
2926
|
SHORTCUT: un,
|
|
2924
2927
|
SOURCE_ERROR: fn,
|
|
@@ -2928,16 +2931,16 @@ const Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2928
2931
|
SUSPEND: $s,
|
|
2929
2932
|
SWITCH_SUBTITLE: Js,
|
|
2930
2933
|
TIME_UPDATE: oe,
|
|
2931
|
-
URL_CHANGE:
|
|
2934
|
+
URL_CHANGE: Et,
|
|
2932
2935
|
URL_NULL: nn,
|
|
2933
|
-
USER_ACTION:
|
|
2936
|
+
USER_ACTION: yt,
|
|
2934
2937
|
VIDEO_EVENTS: dn,
|
|
2935
2938
|
VIDEO_RESIZE: Se,
|
|
2936
2939
|
VOLUME_CHANGE: Zi,
|
|
2937
|
-
WAITING:
|
|
2940
|
+
WAITING: ot,
|
|
2938
2941
|
XGLOG: cn
|
|
2939
2942
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2940
|
-
function
|
|
2943
|
+
function At(a, o) {
|
|
2941
2944
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
|
|
2942
2945
|
}
|
|
2943
2946
|
function Qs(a, o) {
|
|
@@ -2965,14 +2968,14 @@ function Qs(a, o) {
|
|
|
2965
2968
|
o._rate = o.media && o.media.playbackRate;
|
|
2966
2969
|
}
|
|
2967
2970
|
if (a === "durationchange" && (o._duration = o.media.duration), a === "volumechange" && (e.isMutedChange = o._lastMuted !== o.muted, o._lastMuted = o.muted), a === "error" && (e.error = t || o.video.error), o.mediaEventMiddleware[a]) {
|
|
2968
|
-
var n =
|
|
2971
|
+
var n = At.bind(o, a, e);
|
|
2969
2972
|
try {
|
|
2970
2973
|
o.mediaEventMiddleware[a].call(o, e, n);
|
|
2971
2974
|
} catch (s) {
|
|
2972
|
-
throw
|
|
2975
|
+
throw At.call(o, a, e), s;
|
|
2973
2976
|
}
|
|
2974
2977
|
} else
|
|
2975
|
-
|
|
2978
|
+
At.call(o, a, e);
|
|
2976
2979
|
};
|
|
2977
2980
|
}
|
|
2978
2981
|
var eo = /* @__PURE__ */ function(a) {
|
|
@@ -3071,7 +3074,7 @@ var eo = /* @__PURE__ */ function(a) {
|
|
|
3071
3074
|
l ? l.error(f, p) : n.errorHandler("error", p);
|
|
3072
3075
|
}
|
|
3073
3076
|
var d = yi[4];
|
|
3074
|
-
n.emit(fn, new
|
|
3077
|
+
n.emit(fn, new dt(n, {
|
|
3075
3078
|
errorType: d,
|
|
3076
3079
|
errorCode: 4,
|
|
3077
3080
|
errorMessage: "sources_load_error",
|
|
@@ -3108,7 +3111,7 @@ var eo = /* @__PURE__ */ function(a) {
|
|
|
3108
3111
|
this.media.currentSrc || (l = "empty_src", n = {
|
|
3109
3112
|
code: 6,
|
|
3110
3113
|
message: l
|
|
3111
|
-
}), this.emit(e, new
|
|
3114
|
+
}), this.emit(e, new dt(this, {
|
|
3112
3115
|
errorType: s,
|
|
3113
3116
|
errorCode: n.code,
|
|
3114
3117
|
errorMessage: n.message || "",
|
|
@@ -3329,7 +3332,7 @@ var eo = /* @__PURE__ */ function(a) {
|
|
|
3329
3332
|
},
|
|
3330
3333
|
set: function(e) {
|
|
3331
3334
|
if (this.media) {
|
|
3332
|
-
if (this.emit(
|
|
3335
|
+
if (this.emit(Et, e), this.emit(ot), this._currentTime = 0, this._duration = 0, h.isMSE(this.media)) {
|
|
3333
3336
|
this.onWaiting();
|
|
3334
3337
|
return;
|
|
3335
3338
|
}
|
|
@@ -3472,7 +3475,7 @@ var eo = /* @__PURE__ */ function(a) {
|
|
|
3472
3475
|
}
|
|
3473
3476
|
}]), a;
|
|
3474
3477
|
}(), ki = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Ci = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], bi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Oe = "data-xgplayerid";
|
|
3475
|
-
function
|
|
3478
|
+
function at(a, o, r) {
|
|
3476
3479
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
3477
3480
|
e[i - 3] = arguments[i];
|
|
3478
3481
|
var n = o.call.apply(o, [a].concat(e));
|
|
@@ -3482,7 +3485,7 @@ function ot(a, o, r) {
|
|
|
3482
3485
|
r.call.apply(r, [a].concat(l));
|
|
3483
3486
|
}) : r.call.apply(r, [a].concat(e)));
|
|
3484
3487
|
}
|
|
3485
|
-
function
|
|
3488
|
+
function _t(a, o) {
|
|
3486
3489
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
3487
3490
|
pre: null,
|
|
3488
3491
|
next: null
|
|
@@ -3500,23 +3503,23 @@ function yt(a, o) {
|
|
|
3500
3503
|
try {
|
|
3501
3504
|
var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
|
|
3502
3505
|
s ? s.then ? s.then(function(l) {
|
|
3503
|
-
l !== !1 &&
|
|
3506
|
+
l !== !1 && at.apply(void 0, [e, o, r.next].concat(fe(t)));
|
|
3504
3507
|
}).catch(function(l) {
|
|
3505
3508
|
throw l;
|
|
3506
|
-
}) :
|
|
3509
|
+
}) : at.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && at.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
3507
3510
|
} catch (l) {
|
|
3508
3511
|
throw l.message = "[pluginName: ".concat(this.pluginName, ":").concat(a, "] >> ").concat(l.message), l;
|
|
3509
3512
|
}
|
|
3510
3513
|
else
|
|
3511
|
-
|
|
3514
|
+
at.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
3512
3515
|
}).bind(this);
|
|
3513
3516
|
}
|
|
3514
|
-
function
|
|
3517
|
+
function kt(a, o) {
|
|
3515
3518
|
var r = this.__hooks;
|
|
3516
3519
|
if (r)
|
|
3517
3520
|
return r.hasOwnProperty(a) ? (r && (r[a] = o), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
|
|
3518
3521
|
}
|
|
3519
|
-
function
|
|
3522
|
+
function Ct(a, o) {
|
|
3520
3523
|
var r = this.__hooks;
|
|
3521
3524
|
r && delete r[a];
|
|
3522
3525
|
}
|
|
@@ -3569,7 +3572,7 @@ function me(a, o, r) {
|
|
|
3569
3572
|
} else
|
|
3570
3573
|
return r.call.apply(r, [a, a].concat(e));
|
|
3571
3574
|
}
|
|
3572
|
-
function
|
|
3575
|
+
function Lt(a, o) {
|
|
3573
3576
|
H.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
|
|
3574
3577
|
}
|
|
3575
3578
|
var xe = /* @__PURE__ */ function() {
|
|
@@ -3636,7 +3639,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
3636
3639
|
value: function(r, t) {
|
|
3637
3640
|
var e = this;
|
|
3638
3641
|
if (!r || !t || !this.player) {
|
|
3639
|
-
|
|
3642
|
+
Lt(this.pluginName, "plugin.on(event, callback)");
|
|
3640
3643
|
return;
|
|
3641
3644
|
}
|
|
3642
3645
|
typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3648,7 +3651,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
3648
3651
|
value: function(r, t) {
|
|
3649
3652
|
var e = this;
|
|
3650
3653
|
if (!r || !t || !this.player) {
|
|
3651
|
-
|
|
3654
|
+
Lt(this.pluginName, "plugin.once(event, callback)");
|
|
3652
3655
|
return;
|
|
3653
3656
|
}
|
|
3654
3657
|
typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3660,7 +3663,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
3660
3663
|
value: function(r, t) {
|
|
3661
3664
|
var e = this;
|
|
3662
3665
|
if (!r || !t || !this.player) {
|
|
3663
|
-
|
|
3666
|
+
Lt(this.pluginName, "plugin.off(event, callback)");
|
|
3664
3667
|
return;
|
|
3665
3668
|
}
|
|
3666
3669
|
typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3701,21 +3704,21 @@ var xe = /* @__PURE__ */ function() {
|
|
|
3701
3704
|
}, {
|
|
3702
3705
|
key: "hook",
|
|
3703
3706
|
value: function(r, t) {
|
|
3704
|
-
return
|
|
3707
|
+
return _t.call.apply(_t, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3705
3708
|
}
|
|
3706
3709
|
}, {
|
|
3707
3710
|
key: "useHooks",
|
|
3708
3711
|
value: function(r, t) {
|
|
3709
3712
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
3710
3713
|
i[n - 2] = arguments[n];
|
|
3711
|
-
return
|
|
3714
|
+
return kt.call.apply(kt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3712
3715
|
}
|
|
3713
3716
|
}, {
|
|
3714
3717
|
key: "removeHooks",
|
|
3715
3718
|
value: function(r, t) {
|
|
3716
3719
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
3717
3720
|
i[n - 2] = arguments[n];
|
|
3718
|
-
return
|
|
3721
|
+
return Ct.call.apply(Ct, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3719
3722
|
}
|
|
3720
3723
|
}, {
|
|
3721
3724
|
key: "registerPlugin",
|
|
@@ -3770,7 +3773,7 @@ function no(a, o) {
|
|
|
3770
3773
|
}
|
|
3771
3774
|
}
|
|
3772
3775
|
var ro = no, so = ro;
|
|
3773
|
-
function
|
|
3776
|
+
function Dt(a, o, r, t, e) {
|
|
3774
3777
|
var i = ao.apply(this, arguments);
|
|
3775
3778
|
return a.addEventListener(r, i, e), {
|
|
3776
3779
|
destroy: function() {
|
|
@@ -3779,8 +3782,8 @@ function Lt(a, o, r, t, e) {
|
|
|
3779
3782
|
};
|
|
3780
3783
|
}
|
|
3781
3784
|
function oo(a, o, r, t, e) {
|
|
3782
|
-
return typeof a.addEventListener == "function" ?
|
|
3783
|
-
return
|
|
3785
|
+
return typeof a.addEventListener == "function" ? Dt.apply(null, arguments) : typeof r == "function" ? Dt.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
|
|
3786
|
+
return Dt(i, o, r, t, e);
|
|
3784
3787
|
}));
|
|
3785
3788
|
}
|
|
3786
3789
|
function ao(a, o, r, t) {
|
|
@@ -3789,7 +3792,7 @@ function ao(a, o, r, t) {
|
|
|
3789
3792
|
};
|
|
3790
3793
|
}
|
|
3791
3794
|
var lo = oo;
|
|
3792
|
-
const Ei = /* @__PURE__ */
|
|
3795
|
+
const Ei = /* @__PURE__ */ Zt(lo);
|
|
3793
3796
|
var uo = {
|
|
3794
3797
|
CONTROLS: "controls",
|
|
3795
3798
|
ROOT: "root"
|
|
@@ -3807,7 +3810,7 @@ var uo = {
|
|
|
3807
3810
|
ICON_DISABLE: "xg-icon-disable",
|
|
3808
3811
|
ICON_HIDE: "xg-icon-hide"
|
|
3809
3812
|
};
|
|
3810
|
-
function
|
|
3813
|
+
function Ot(a) {
|
|
3811
3814
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
3812
3815
|
}
|
|
3813
3816
|
function co(a, o) {
|
|
@@ -3824,8 +3827,8 @@ function xi(a, o) {
|
|
|
3824
3827
|
return h.addClass(a, r), Object.keys(t).map(function(n) {
|
|
3825
3828
|
a.setAttribute(n, t[n]);
|
|
3826
3829
|
}), a;
|
|
3827
|
-
if (
|
|
3828
|
-
return t.src =
|
|
3830
|
+
if (Ot(a) || Ot(a.url))
|
|
3831
|
+
return t.src = Ot(a) ? a : a.url || "", i = h.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
|
|
3829
3832
|
if (typeof a == "function")
|
|
3830
3833
|
try {
|
|
3831
3834
|
return i = a(), i instanceof window.Element ? (h.addClass(i, r), Object.keys(t).map(function(n) {
|
|
@@ -4572,7 +4575,7 @@ var yo = function(o, r) {
|
|
|
4572
4575
|
};
|
|
4573
4576
|
Object.keys(u).map(function(f) {
|
|
4574
4577
|
e.root.style[f] = u[f];
|
|
4575
|
-
}), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(
|
|
4578
|
+
}), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(vt, function(f) {
|
|
4576
4579
|
f ? h.addClass(e.root, "mini-controls") : h.removeClass(e.root, "mini-controls");
|
|
4577
4580
|
});
|
|
4578
4581
|
var c = this.playerConfig.isMobileSimulateMode;
|
|
@@ -4779,14 +4782,14 @@ var yo = function(o, r) {
|
|
|
4779
4782
|
langKeys: [],
|
|
4780
4783
|
textKeys: []
|
|
4781
4784
|
};
|
|
4782
|
-
function
|
|
4785
|
+
function nt(a, o) {
|
|
4783
4786
|
return Object.keys(o).forEach(function(r) {
|
|
4784
4787
|
var t = h.typeOf(o[r]), e = h.typeOf(a[r]);
|
|
4785
4788
|
if (t === "Array") {
|
|
4786
4789
|
var i;
|
|
4787
4790
|
e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, fe(o[r]));
|
|
4788
4791
|
} else
|
|
4789
|
-
t === "Object" ? (e !== "Object" && (a[r] = {}),
|
|
4792
|
+
t === "Object" ? (e !== "Object" && (a[r] = {}), nt(a[r], o[r])) : a[r] = o[r];
|
|
4790
4793
|
}), a;
|
|
4791
4794
|
}
|
|
4792
4795
|
function yn() {
|
|
@@ -4806,15 +4809,15 @@ function Co(a, o) {
|
|
|
4806
4809
|
}) : r = a;
|
|
4807
4810
|
var t = o, e = t.lang;
|
|
4808
4811
|
r.map(function(i) {
|
|
4809
|
-
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ?
|
|
4812
|
+
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? nt(e[i.LANG] || {}, i.TEXT || {}) : li(i, o);
|
|
4810
4813
|
}), yn();
|
|
4811
4814
|
}
|
|
4812
4815
|
}
|
|
4813
|
-
function
|
|
4816
|
+
function li(a, o) {
|
|
4814
4817
|
var r = a.LANG;
|
|
4815
4818
|
if (o || (o = se), !!o.lang) {
|
|
4816
4819
|
var t = a.TEXT || {};
|
|
4817
|
-
r === "zh" && (r = "zh-cn"), o.lang[r] ?
|
|
4820
|
+
r === "zh" && (r = "zh-cn"), o.lang[r] ? nt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), yn();
|
|
4818
4821
|
}
|
|
4819
4822
|
}
|
|
4820
4823
|
function bo(a) {
|
|
@@ -4824,10 +4827,10 @@ function bo(a) {
|
|
|
4824
4827
|
textKeys: {},
|
|
4825
4828
|
pId: a
|
|
4826
4829
|
};
|
|
4827
|
-
return
|
|
4830
|
+
return nt(r.lang, se.lang), (o = r.langKeys).push.apply(o, fe(se.langKeys)), nt(r.textKeys, se.textKeys), r;
|
|
4828
4831
|
}
|
|
4829
|
-
|
|
4830
|
-
var
|
|
4832
|
+
li(ko);
|
|
4833
|
+
var Xe = {
|
|
4831
4834
|
get textKeys() {
|
|
4832
4835
|
return se.textKeys;
|
|
4833
4836
|
},
|
|
@@ -4841,7 +4844,7 @@ var qe = {
|
|
|
4841
4844
|
}), se.lang["zh-cn"] && (a.zh = se.lang["zh-cn"] || {}), a;
|
|
4842
4845
|
},
|
|
4843
4846
|
extend: Co,
|
|
4844
|
-
use:
|
|
4847
|
+
use: li,
|
|
4845
4848
|
init: bo
|
|
4846
4849
|
}, U = {
|
|
4847
4850
|
INITIAL: 1,
|
|
@@ -4852,7 +4855,7 @@ var qe = {
|
|
|
4852
4855
|
RUNNING: 6,
|
|
4853
4856
|
ENDED: 7,
|
|
4854
4857
|
DESTROYED: 8
|
|
4855
|
-
}, Pi = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], ie = {},
|
|
4858
|
+
}, Pi = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], ie = {}, Rt = null, _n = /* @__PURE__ */ function(a) {
|
|
4856
4859
|
L(r, a);
|
|
4857
4860
|
var o = D(r);
|
|
4858
4861
|
function r() {
|
|
@@ -4935,7 +4938,7 @@ var qe = {
|
|
|
4935
4938
|
}], [{
|
|
4936
4939
|
key: "getInstance",
|
|
4937
4940
|
value: function() {
|
|
4938
|
-
return
|
|
4941
|
+
return Rt || (Rt = new r()), Rt;
|
|
4939
4942
|
}
|
|
4940
4943
|
}]), r;
|
|
4941
4944
|
}(Xi.EventEmitter);
|
|
@@ -4947,7 +4950,7 @@ function wo(a) {
|
|
|
4947
4950
|
}
|
|
4948
4951
|
return null;
|
|
4949
4952
|
}
|
|
4950
|
-
var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null,
|
|
4953
|
+
var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /* @__PURE__ */ function(a) {
|
|
4951
4954
|
L(r, a);
|
|
4952
4955
|
var o = D(r);
|
|
4953
4956
|
function r(t) {
|
|
@@ -4965,7 +4968,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
4965
4968
|
e.resize();
|
|
4966
4969
|
}, 100);
|
|
4967
4970
|
}, k = h.getFullScreenEl();
|
|
4968
|
-
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(
|
|
4971
|
+
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(yt, {
|
|
4969
4972
|
eventType: "system",
|
|
4970
4973
|
action: "switch_fullscreen",
|
|
4971
4974
|
pluginName: "player",
|
|
@@ -5026,12 +5029,12 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5026
5029
|
}, e._offsetInfo = {
|
|
5027
5030
|
currentTime: -1,
|
|
5028
5031
|
duration: 0
|
|
5029
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n =
|
|
5032
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Xe.init(e._pluginInfoId), N.os.isAndroid && N.osVersion > 0 && N.osVersion < 6 && (e.config.autoplay = !1), e.database = new to(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
5030
5033
|
isActiveLocked: !1
|
|
5031
5034
|
}, e.instManager = be;
|
|
5032
5035
|
var l = e._initDOM();
|
|
5033
5036
|
if (!l)
|
|
5034
|
-
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))),
|
|
5037
|
+
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), ei(e);
|
|
5035
5038
|
var u = e.config, c = u.definition, f = c === void 0 ? {} : c, g = u.url;
|
|
5036
5039
|
if (!g && f.list && f.list.length > 0) {
|
|
5037
5040
|
var p = f.list.find(function(d) {
|
|
@@ -5040,7 +5043,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5040
5043
|
p || (f.defaultDefinition = f.list[0].definition, p = f.list[0]), e.config.url = p.url, e.curDefinition = p;
|
|
5041
5044
|
}
|
|
5042
5045
|
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), q.onPluginsReady(m(e)), e.getInitDefinition(), e.setState(U.READY), h.setTimeout(m(e), function() {
|
|
5043
|
-
e.emit(
|
|
5046
|
+
e.emit(ri);
|
|
5044
5047
|
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < U.ATTACHED) && e.start(), e;
|
|
5045
5048
|
}
|
|
5046
5049
|
return I(r, [{
|
|
@@ -5052,7 +5055,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5052
5055
|
if (n && n.nodeType === 1)
|
|
5053
5056
|
this.root = n;
|
|
5054
5057
|
else
|
|
5055
|
-
return this.emit(
|
|
5058
|
+
return this.emit(st, new dt("use", this.config.vid, {
|
|
5056
5059
|
line: 32,
|
|
5057
5060
|
handle: "Constructor",
|
|
5058
5061
|
msg: "container id can't be empty"
|
|
@@ -5137,7 +5140,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5137
5140
|
H.logInfo("_startInit readyState", s), this.config.autoplay && (!h.isMSE(this.media) && this.load(), (N.os.isIpad || N.os.isPhone) && this.mediaPlay());
|
|
5138
5141
|
var l = this.config.startTime;
|
|
5139
5142
|
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(ye, this.canPlayFunc), (!this.hasStart || this.state < U.ATTACHED) && q.afterInit(this), this.hasStart = !0, this.setState(U.ATTACHED), h.setTimeout(this, function() {
|
|
5140
|
-
i.emit(
|
|
5143
|
+
i.emit(Tt);
|
|
5141
5144
|
}, 0);
|
|
5142
5145
|
}
|
|
5143
5146
|
}
|
|
@@ -5147,7 +5150,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5147
5150
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
5148
5151
|
this._loadingPlugins = [];
|
|
5149
5152
|
var n = this.config.ignores || [], s = this.config.plugins || [], l = this.config.i18n || [];
|
|
5150
|
-
i &&
|
|
5153
|
+
i && Xe.extend(l, this.__i18n);
|
|
5151
5154
|
var u = n.join("||").toLowerCase().split("||"), c = this.plugins;
|
|
5152
5155
|
s.forEach(function(f) {
|
|
5153
5156
|
try {
|
|
@@ -5332,7 +5335,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5332
5335
|
return;
|
|
5333
5336
|
}
|
|
5334
5337
|
n.name === "NotAllowedError" && (e._errorTimer = h.setTimeout(e, function() {
|
|
5335
|
-
e._errorTimer = null, e.emit(
|
|
5338
|
+
e._errorTimer = null, e.emit(si), e.addClass(w.NOT_ALLOW_AUTOPLAY), e.removeClass(w.ENTER), e.pause(), e.setState(U.NOTALLOW);
|
|
5336
5339
|
}, 0));
|
|
5337
5340
|
}) : (H.logWarn("video.play not return promise"), this.state < U.RUNNING && (this.setState(U.RUNNING), this.removeClass(w.NOT_ALLOW_AUTOPLAY), this.removeClass(w.NO_START), this.removeClass(w.ENTER), this.addClass(w.PLAYING), this.emit(Be))), i;
|
|
5338
5341
|
}
|
|
@@ -5397,7 +5400,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5397
5400
|
var n = this, s = this.config.definition;
|
|
5398
5401
|
if (Array.isArray(s == null ? void 0 : s.list) && s.list.forEach(function(u) {
|
|
5399
5402
|
(e == null ? void 0 : e.definition) === u.definition && (n.curDefinition = u);
|
|
5400
|
-
}), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(
|
|
5403
|
+
}), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(ai, {
|
|
5401
5404
|
from: i,
|
|
5402
5405
|
to: e
|
|
5403
5406
|
}), !this.hasStart) {
|
|
@@ -5408,11 +5411,11 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5408
5411
|
seamless: s.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
|
|
5409
5412
|
}, e));
|
|
5410
5413
|
l && l.then ? l.then(function() {
|
|
5411
|
-
n.emit(
|
|
5414
|
+
n.emit(Kt, {
|
|
5412
5415
|
from: i,
|
|
5413
5416
|
to: e
|
|
5414
5417
|
});
|
|
5415
|
-
}) : this.emit(
|
|
5418
|
+
}) : this.emit(Kt, {
|
|
5416
5419
|
from: i,
|
|
5417
5420
|
to: e
|
|
5418
5421
|
});
|
|
@@ -5430,7 +5433,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5430
5433
|
var e = this, i = w.NOT_ALLOW_AUTOPLAY, n = w.PLAYING, s = w.NO_START, l = w.PAUSED, u = w.REPLAY, c = w.ENTER, f = w.ENDED, g = w.ERROR, p = w.LOADING, d = [i, n, s, l, u, c, f, g, p];
|
|
5431
5434
|
this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, d.forEach(function(v) {
|
|
5432
5435
|
e.removeClass(v);
|
|
5433
|
-
}), this.addClass(w.NO_START), this.emit(
|
|
5436
|
+
}), this.addClass(w.NO_START), this.emit(St);
|
|
5434
5437
|
}
|
|
5435
5438
|
}, {
|
|
5436
5439
|
key: "reset",
|
|
@@ -5452,7 +5455,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5452
5455
|
value: function() {
|
|
5453
5456
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
5454
5457
|
if (!(!s || !l)) {
|
|
5455
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Oe), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(
|
|
5458
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Oe), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(oi), (e = be) === null || e === void 0 || e.remove(this), q.destroy(this), mn(this), F(O(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
5456
5459
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
5457
5460
|
n.removeChild(u[c]);
|
|
5458
5461
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(g) {
|
|
@@ -5476,7 +5479,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5476
5479
|
i && i.catch && i.catch(function(n) {
|
|
5477
5480
|
console.log(n);
|
|
5478
5481
|
});
|
|
5479
|
-
}), e.emit(
|
|
5482
|
+
}), e.emit(gt), e.onPlay();
|
|
5480
5483
|
});
|
|
5481
5484
|
}
|
|
5482
5485
|
}, {
|
|
@@ -5555,7 +5558,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5555
5558
|
var i = e ? "".concat(w.INNER_FULLSCREEN, " ").concat(w.CSS_FULLSCREEN) : w.CSS_FULLSCREEN;
|
|
5556
5559
|
this.changeFullStyle(this.root, e, i);
|
|
5557
5560
|
var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
|
|
5558
|
-
l && (this.fullscreen = !0, this.emit(ve, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(
|
|
5561
|
+
l && (this.fullscreen = !0, this.emit(ve, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(pt, !0);
|
|
5559
5562
|
}
|
|
5560
5563
|
}, {
|
|
5561
5564
|
key: "exitCssFullscreen",
|
|
@@ -5567,7 +5570,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5567
5570
|
var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
|
|
5568
5571
|
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(ve, !1)) : this.removeClass(e);
|
|
5569
5572
|
}
|
|
5570
|
-
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(
|
|
5573
|
+
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(pt, !1);
|
|
5571
5574
|
}
|
|
5572
5575
|
}, {
|
|
5573
5576
|
key: "getRotateFullscreen",
|
|
@@ -5599,7 +5602,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5599
5602
|
this.onFocus(e);
|
|
5600
5603
|
return;
|
|
5601
5604
|
}
|
|
5602
|
-
this.emit(
|
|
5605
|
+
this.emit(ni, G({
|
|
5603
5606
|
paused: this.paused,
|
|
5604
5607
|
ended: this.ended
|
|
5605
5608
|
}, e));
|
|
@@ -5732,7 +5735,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5732
5735
|
value: function(e, i, n) {
|
|
5733
5736
|
if (!(!this.media || !i || !e)) {
|
|
5734
5737
|
var s = h.typeOf(e) === "String" ? e : e.type || "";
|
|
5735
|
-
n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(
|
|
5738
|
+
n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(yt, G({
|
|
5736
5739
|
eventType: s,
|
|
5737
5740
|
action: i,
|
|
5738
5741
|
currentTime: this.currentTime,
|
|
@@ -5818,7 +5821,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5818
5821
|
value: function(e) {
|
|
5819
5822
|
var i = this;
|
|
5820
5823
|
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, me(this, "playnext", function() {
|
|
5821
|
-
i.start(), i.emit(
|
|
5824
|
+
i.start(), i.emit(mt, e);
|
|
5822
5825
|
});
|
|
5823
5826
|
}
|
|
5824
5827
|
}, {
|
|
@@ -5933,11 +5936,11 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5933
5936
|
return this.config.lang;
|
|
5934
5937
|
},
|
|
5935
5938
|
set: function(e) {
|
|
5936
|
-
var i =
|
|
5939
|
+
var i = Xe.langKeys.filter(function(n) {
|
|
5937
5940
|
return n === e;
|
|
5938
5941
|
});
|
|
5939
5942
|
if (i.length === 0 && e !== "zh") {
|
|
5940
|
-
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(
|
|
5943
|
+
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(Xe.langKeys.join(), "] "));
|
|
5941
5944
|
return;
|
|
5942
5945
|
}
|
|
5943
5946
|
this.config.lang = e, q.setLang(e, this);
|
|
@@ -5956,7 +5959,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
5956
5959
|
}, {
|
|
5957
5960
|
key: "version",
|
|
5958
5961
|
get: function() {
|
|
5959
|
-
return
|
|
5962
|
+
return $t;
|
|
5960
5963
|
}
|
|
5961
5964
|
}, {
|
|
5962
5965
|
key: "playerId",
|
|
@@ -6057,17 +6060,17 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
6057
6060
|
}, {
|
|
6058
6061
|
key: "hook",
|
|
6059
6062
|
value: function(e, i) {
|
|
6060
|
-
return
|
|
6063
|
+
return _t.call.apply(_t, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6061
6064
|
}
|
|
6062
6065
|
}, {
|
|
6063
6066
|
key: "useHooks",
|
|
6064
6067
|
value: function(e, i) {
|
|
6065
|
-
return
|
|
6068
|
+
return kt.call.apply(kt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6066
6069
|
}
|
|
6067
6070
|
}, {
|
|
6068
6071
|
key: "removeHooks",
|
|
6069
6072
|
value: function(e, i) {
|
|
6070
|
-
return
|
|
6073
|
+
return Ct.call.apply(Ct, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6071
6074
|
}
|
|
6072
6075
|
}, {
|
|
6073
6076
|
key: "usePluginHooks",
|
|
@@ -6139,9 +6142,9 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /
|
|
|
6139
6142
|
}
|
|
6140
6143
|
}]), r;
|
|
6141
6144
|
}(eo);
|
|
6142
|
-
_(
|
|
6143
|
-
_(
|
|
6144
|
-
|
|
6145
|
+
_(xt, "defaultPreset", null);
|
|
6146
|
+
_(xt, "XgVideoProxy", null);
|
|
6147
|
+
xt.instManager = _n.getInstance();
|
|
6145
6148
|
function Z() {
|
|
6146
6149
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
6147
6150
|
}
|
|
@@ -6205,18 +6208,18 @@ var we = {
|
|
|
6205
6208
|
key: "afterCreate",
|
|
6206
6209
|
value: function() {
|
|
6207
6210
|
var e = this;
|
|
6208
|
-
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = Z(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(
|
|
6211
|
+
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = Z(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(ii, function() {
|
|
6209
6212
|
var i = e._state, n = i.autoplayStart, s = i.isFFSend;
|
|
6210
6213
|
e.startCostTime = Z() - e.newPointTime, H.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(we.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = Z(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
|
|
6211
6214
|
}), this.on(Ce, function() {
|
|
6212
6215
|
e.vt = Z(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
6213
6216
|
var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
|
|
6214
6217
|
H.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(we.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
6215
|
-
}), this.on(
|
|
6218
|
+
}), this.on(wt, this._onSeeking), this.on(_e, this._onSeeked), this.on(oi, function() {
|
|
6216
6219
|
e.endState("destroy");
|
|
6217
|
-
}), this.on(
|
|
6220
|
+
}), this.on(Et, function() {
|
|
6218
6221
|
e.endState("urlChange"), H.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
6219
|
-
}), this.on([
|
|
6222
|
+
}), this.on([ti, ye], this._onPlaying), this.on(ot, this._onWaiting), this.on(st, this._onError), this.on(St, function() {
|
|
6220
6223
|
H.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
6221
6224
|
});
|
|
6222
6225
|
}
|
|
@@ -6430,7 +6433,7 @@ var xo = /* @__PURE__ */ function(a) {
|
|
|
6430
6433
|
e.isEndedShow && h.removeClass(e.root, "hide");
|
|
6431
6434
|
}), this.config.hideCanplay ? (this.once(oe, function() {
|
|
6432
6435
|
e.onTimeUpdate();
|
|
6433
|
-
}), this.on(
|
|
6436
|
+
}), this.on(Et, function() {
|
|
6434
6437
|
h.removeClass(e.root, "hide"), h.addClass(e.root, "xg-showplay"), e.once(oe, function() {
|
|
6435
6438
|
e.onTimeUpdate();
|
|
6436
6439
|
});
|
|
@@ -6505,13 +6508,13 @@ var xo = /* @__PURE__ */ function(a) {
|
|
|
6505
6508
|
}
|
|
6506
6509
|
}]), r;
|
|
6507
6510
|
}(z);
|
|
6508
|
-
function
|
|
6511
|
+
function ui() {
|
|
6509
6512
|
return new DOMParser().parseFromString(`<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
6510
6513
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
|
|
6511
6514
|
</svg>
|
|
6512
6515
|
`, "image/svg+xml").firstChild;
|
|
6513
6516
|
}
|
|
6514
|
-
function
|
|
6517
|
+
function ci() {
|
|
6515
6518
|
return new DOMParser().parseFromString(`<svg class="pause" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
6516
6519
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
|
|
6517
6520
|
</svg>
|
|
@@ -6556,16 +6559,16 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
6556
6559
|
key: "afterCreate",
|
|
6557
6560
|
value: function() {
|
|
6558
6561
|
var e = this, i = this.player, n = this.playerConfig;
|
|
6559
|
-
this.initIcons(), this.once(
|
|
6562
|
+
this.initIcons(), this.once(ri, function() {
|
|
6560
6563
|
n && (n.lang && n.lang === "en" ? h.addClass(i.root, "lang-is-en") : n.lang === "jp" && h.addClass(i.root, "lang-is-jp"));
|
|
6561
|
-
}), this.on(Be, this.onAutoplayStart), n.autoplay || this.show(), this.on(
|
|
6564
|
+
}), this.on(Be, this.onAutoplayStart), n.autoplay || this.show(), this.on(si, function() {
|
|
6562
6565
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
6563
6566
|
e.setAttr("data-state", "play"), h.removeClass(e.root, s), e.show();
|
|
6564
6567
|
}), this.on(ae, function() {
|
|
6565
6568
|
e.onPlayPause("play");
|
|
6566
|
-
}), this.on(
|
|
6569
|
+
}), this.on(Ze, function() {
|
|
6567
6570
|
e.onPlayPause("pause");
|
|
6568
|
-
}), this.on(
|
|
6571
|
+
}), this.on(St, function() {
|
|
6569
6572
|
e.onPlayerReset();
|
|
6570
6573
|
}), this.clickHandler = this.hook("startClick", this.switchPausePlay, {
|
|
6571
6574
|
pre: function(l) {
|
|
@@ -6584,11 +6587,11 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
6584
6587
|
value: function() {
|
|
6585
6588
|
return {
|
|
6586
6589
|
startPlay: {
|
|
6587
|
-
icon:
|
|
6590
|
+
icon: ui,
|
|
6588
6591
|
class: "xg-icon-play"
|
|
6589
6592
|
},
|
|
6590
6593
|
startPause: {
|
|
6591
|
-
icon:
|
|
6594
|
+
icon: ci,
|
|
6592
6595
|
class: "xg-icon-pause"
|
|
6593
6596
|
}
|
|
6594
6597
|
};
|
|
@@ -6810,7 +6813,7 @@ function Ri(a) {
|
|
|
6810
6813
|
var o = parseFloat(a), r = a.indexOf("%") === -1 && !Number.isNaN(o);
|
|
6811
6814
|
return r && o;
|
|
6812
6815
|
}
|
|
6813
|
-
var
|
|
6816
|
+
var fi = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], kn = fi.length;
|
|
6814
6817
|
function Do() {
|
|
6815
6818
|
for (var a = {
|
|
6816
6819
|
width: 0,
|
|
@@ -6820,7 +6823,7 @@ function Do() {
|
|
|
6820
6823
|
outerWidth: 0,
|
|
6821
6824
|
outerHeight: 0
|
|
6822
6825
|
}, o = 0; o < kn; o++) {
|
|
6823
|
-
var r =
|
|
6826
|
+
var r = fi[o];
|
|
6824
6827
|
a[r] = 0;
|
|
6825
6828
|
}
|
|
6826
6829
|
return a;
|
|
@@ -6837,7 +6840,7 @@ function Fi(a) {
|
|
|
6837
6840
|
var r = {};
|
|
6838
6841
|
r.width = a.offsetWidth, r.height = a.offsetHeight;
|
|
6839
6842
|
for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < kn; e++) {
|
|
6840
|
-
var i =
|
|
6843
|
+
var i = fi[e], n = o[i], s = parseFloat(n);
|
|
6841
6844
|
r[i] = Number.isNaN(s) ? 0 : s;
|
|
6842
6845
|
}
|
|
6843
6846
|
var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, f = r.marginTop + r.marginBottom, g = r.borderLeftWidth + r.borderRightWidth, p = r.borderTopWidth + r.borderBottomWidth, d = t, v = Ri(o.width);
|
|
@@ -6846,14 +6849,14 @@ function Fi(a) {
|
|
|
6846
6849
|
return y !== !1 && (r.height = y + (d ? 0 : u + p)), r.innerWidth = r.width - (l + g), r.innerHeight = r.height - (u + p), r.outerWidth = r.width + c, r.outerHeight = r.height + f, r;
|
|
6847
6850
|
}
|
|
6848
6851
|
}
|
|
6849
|
-
function
|
|
6852
|
+
function Ft(a, o) {
|
|
6850
6853
|
for (var r = 0; r < a.length; r++) {
|
|
6851
6854
|
var t = a[r];
|
|
6852
6855
|
if (t.identifier === o)
|
|
6853
6856
|
return t;
|
|
6854
6857
|
}
|
|
6855
6858
|
}
|
|
6856
|
-
var
|
|
6859
|
+
var Mt = {
|
|
6857
6860
|
START: "dragStart",
|
|
6858
6861
|
MOVE: "dragMove",
|
|
6859
6862
|
ENDED: "dragEnded"
|
|
@@ -6872,7 +6875,7 @@ var Ft = {
|
|
|
6872
6875
|
}, e.startPos = {
|
|
6873
6876
|
x: 0,
|
|
6874
6877
|
y: 0
|
|
6875
|
-
}, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ?
|
|
6878
|
+
}, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ? ei(e) : (e._bindStartEvent(), e);
|
|
6876
6879
|
}
|
|
6877
6880
|
return I(r, [{
|
|
6878
6881
|
key: "_bindStartEvent",
|
|
@@ -6964,19 +6967,19 @@ var Ft = {
|
|
|
6964
6967
|
}, {
|
|
6965
6968
|
key: "ontouchmove",
|
|
6966
6969
|
value: function(e) {
|
|
6967
|
-
var i =
|
|
6970
|
+
var i = Ft(e.changedTouches, this.touchIdentifier);
|
|
6968
6971
|
i && this.dragMove(e, i);
|
|
6969
6972
|
}
|
|
6970
6973
|
}, {
|
|
6971
6974
|
key: "ontouchend",
|
|
6972
6975
|
value: function(e) {
|
|
6973
|
-
var i =
|
|
6976
|
+
var i = Ft(e.changedTouches, this.touchIdentifier);
|
|
6974
6977
|
i && this.dragEnd(e, i), e.preventDefault();
|
|
6975
6978
|
}
|
|
6976
6979
|
}, {
|
|
6977
6980
|
key: "ontouchcancel",
|
|
6978
6981
|
value: function(e) {
|
|
6979
|
-
var i =
|
|
6982
|
+
var i = Ft(e.changedTouches, this.touchIdentifier);
|
|
6980
6983
|
i && this.dragCancel(e, i);
|
|
6981
6984
|
}
|
|
6982
6985
|
}, {
|
|
@@ -6991,12 +6994,12 @@ var Ft = {
|
|
|
6991
6994
|
}, {
|
|
6992
6995
|
key: "dragRealStart",
|
|
6993
6996
|
value: function(e, i) {
|
|
6994
|
-
this.isDragging = !0, this.animate(), this.emit(
|
|
6997
|
+
this.isDragging = !0, this.animate(), this.emit(Mt.START, this.startPos);
|
|
6995
6998
|
}
|
|
6996
6999
|
}, {
|
|
6997
7000
|
key: "dragEnd",
|
|
6998
7001
|
value: function(e, i) {
|
|
6999
|
-
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(
|
|
7002
|
+
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(Mt.ENDED)), this.presetInfo());
|
|
7000
7003
|
}
|
|
7001
7004
|
}, {
|
|
7002
7005
|
key: "_dragPointerMove",
|
|
@@ -7012,7 +7015,7 @@ var Ft = {
|
|
|
7012
7015
|
value: function(e, i) {
|
|
7013
7016
|
if (e = e || window.event, !!this.isDown) {
|
|
7014
7017
|
var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, f = u.y;
|
|
7015
|
-
c = this.checkContain("x", c, s), f = this.checkContain("y", f, l), this.position.x = s + c, this.position.y = l + f, this.dragPoint.x = c, this.dragPoint.y = f, this.emit(
|
|
7018
|
+
c = this.checkContain("x", c, s), f = this.checkContain("y", f, l), this.position.x = s + c, this.position.y = l + f, this.dragPoint.x = c, this.dragPoint.y = f, this.emit(Mt.MOVE, this.position);
|
|
7016
7019
|
}
|
|
7017
7020
|
}
|
|
7018
7021
|
}, {
|
|
@@ -7105,7 +7108,7 @@ var Ft = {
|
|
|
7105
7108
|
key: "afterCreate",
|
|
7106
7109
|
value: function() {
|
|
7107
7110
|
var e = this;
|
|
7108
|
-
this.initIcons(), this.on(
|
|
7111
|
+
this.initIcons(), this.on(Ze, function() {
|
|
7109
7112
|
e.setAttr("data-state", "pause");
|
|
7110
7113
|
}), this.on(ae, function() {
|
|
7111
7114
|
e.setAttr("data-state", "play");
|
|
@@ -7137,11 +7140,11 @@ var Ft = {
|
|
|
7137
7140
|
value: function() {
|
|
7138
7141
|
return {
|
|
7139
7142
|
play: {
|
|
7140
|
-
icon:
|
|
7143
|
+
icon: ui,
|
|
7141
7144
|
class: "xg-icon-play"
|
|
7142
7145
|
},
|
|
7143
7146
|
pause: {
|
|
7144
|
-
icon:
|
|
7147
|
+
icon: ci,
|
|
7145
7148
|
class: "xg-icon-pause"
|
|
7146
7149
|
}
|
|
7147
7150
|
};
|
|
@@ -7160,7 +7163,7 @@ var Ft = {
|
|
|
7160
7163
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
7161
7164
|
this.lastStyle = {}, h.addClass(i.root, "xgplayer-mini"), ["width", "height", "top", "left"].map(function(l) {
|
|
7162
7165
|
e.lastStyle[l] = s.style[l], s.style[l] = "".concat(e.pos[l], "px");
|
|
7163
|
-
}), n.fluid && (s.style["padding-top"] = ""), this.emit(
|
|
7166
|
+
}), n.fluid && (s.style["padding-top"] = ""), this.emit(vt, !0), i.isMini = this.isMini = !0;
|
|
7164
7167
|
}
|
|
7165
7168
|
}
|
|
7166
7169
|
}, {
|
|
@@ -7172,7 +7175,7 @@ var Ft = {
|
|
|
7172
7175
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
7173
7176
|
h.removeClass(i.root, "xgplayer-mini"), this.lastStyle && Object.keys(this.lastStyle).map(function(l) {
|
|
7174
7177
|
s.style[l] = e.lastStyle[l];
|
|
7175
|
-
}), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(
|
|
7178
|
+
}), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(vt, !1), this.isMini = i.isMini = !1;
|
|
7176
7179
|
}
|
|
7177
7180
|
}, {
|
|
7178
7181
|
key: "destroy",
|
|
@@ -7221,11 +7224,11 @@ var Ft = {
|
|
|
7221
7224
|
};
|
|
7222
7225
|
}
|
|
7223
7226
|
}]), r;
|
|
7224
|
-
}(z),
|
|
7227
|
+
}(z), lt = {
|
|
7225
7228
|
mouseenter: "onMouseEnter",
|
|
7226
7229
|
mouseleave: "onMouseLeave",
|
|
7227
7230
|
mousemove: "onMouseMove"
|
|
7228
|
-
},
|
|
7231
|
+
}, Nt = ["videoClick", "videoDbClick"], Bt = /* @__PURE__ */ function(a) {
|
|
7229
7232
|
L(r, a);
|
|
7230
7233
|
var o = D(r);
|
|
7231
7234
|
function r() {
|
|
@@ -7254,7 +7257,7 @@ var Ft = {
|
|
|
7254
7257
|
}), _(m(t), "onVideoClick", function(s) {
|
|
7255
7258
|
var l = m(t), u = l.player, c = l.playerConfig;
|
|
7256
7259
|
s.target && c.closeVideoClick || (s.target === u.root || s.target === u.media || s.target === u.innerContainer || s.target === u.media.__canvas) && (s.preventDefault(), c.closeVideoStopPropagation || s.stopPropagation(), t._clickCount++, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), t.clickTimer = setTimeout(function() {
|
|
7257
|
-
t._clickCount && (t._clickCount--, me(m(t),
|
|
7260
|
+
t._clickCount && (t._clickCount--, me(m(t), Nt[0], function(f, g) {
|
|
7258
7261
|
t.switchPlayPause(g.e);
|
|
7259
7262
|
}, {
|
|
7260
7263
|
e: s,
|
|
@@ -7268,7 +7271,7 @@ var Ft = {
|
|
|
7268
7271
|
t._clickCount = 0;
|
|
7269
7272
|
return;
|
|
7270
7273
|
}
|
|
7271
|
-
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), me(m(t),
|
|
7274
|
+
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), me(m(t), Nt[1], function(f, g) {
|
|
7272
7275
|
t.emitUserAction(g.e, "switch_fullscreen", {
|
|
7273
7276
|
props: "fullscreen",
|
|
7274
7277
|
from: u.fullscreen,
|
|
@@ -7285,7 +7288,7 @@ var Ft = {
|
|
|
7285
7288
|
key: "afterCreate",
|
|
7286
7289
|
value: function() {
|
|
7287
7290
|
var e = this;
|
|
7288
|
-
this._clickCount = 0,
|
|
7291
|
+
this._clickCount = 0, Nt.map(function(n) {
|
|
7289
7292
|
e.__hooks[n] = null;
|
|
7290
7293
|
});
|
|
7291
7294
|
var i = this.playerConfig.isMobileSimulateMode;
|
|
@@ -7295,8 +7298,8 @@ var Ft = {
|
|
|
7295
7298
|
key: "initEvents",
|
|
7296
7299
|
value: function() {
|
|
7297
7300
|
var e = this, i = this.player, n = i.media, s = i.root, l = this.playerConfig.enableContextmenu;
|
|
7298
|
-
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(
|
|
7299
|
-
s.addEventListener(u, e[
|
|
7301
|
+
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(lt).map(function(u) {
|
|
7302
|
+
s.addEventListener(u, e[lt[u]], !1);
|
|
7300
7303
|
}), !l && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
|
|
7301
7304
|
}
|
|
7302
7305
|
}, {
|
|
@@ -7318,8 +7321,8 @@ var Ft = {
|
|
|
7318
7321
|
key: "destroy",
|
|
7319
7322
|
value: function() {
|
|
7320
7323
|
var e = this, i = this.player, n = i.video, s = i.root;
|
|
7321
|
-
this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(
|
|
7322
|
-
s.removeEventListener(l, e[
|
|
7324
|
+
this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(lt).map(function(l) {
|
|
7325
|
+
s.removeEventListener(l, e[lt[l]], !1);
|
|
7323
7326
|
});
|
|
7324
7327
|
}
|
|
7325
7328
|
}], [{
|
|
@@ -7481,7 +7484,7 @@ var je = {
|
|
|
7481
7484
|
SEEKING: "seeking",
|
|
7482
7485
|
PLAYBACK: "playbackrate",
|
|
7483
7486
|
LIGHT: ""
|
|
7484
|
-
},
|
|
7487
|
+
}, Ht = ["videoClick", "videoDbClick"], zo = /* @__PURE__ */ function(a) {
|
|
7485
7488
|
L(r, a);
|
|
7486
7489
|
var o = D(r);
|
|
7487
7490
|
function r(t) {
|
|
@@ -7562,7 +7565,7 @@ var je = {
|
|
|
7562
7565
|
key: "afterCreate",
|
|
7563
7566
|
value: function() {
|
|
7564
7567
|
var e = this;
|
|
7565
|
-
|
|
7568
|
+
Ht.map(function(g) {
|
|
7566
7569
|
e.__hooks[g] = null;
|
|
7567
7570
|
});
|
|
7568
7571
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
@@ -7745,7 +7748,7 @@ var je = {
|
|
|
7745
7748
|
key: "onClick",
|
|
7746
7749
|
value: function(e) {
|
|
7747
7750
|
var i = this, n = this.player;
|
|
7748
|
-
me(this,
|
|
7751
|
+
me(this, Ht[0], function(s, l) {
|
|
7749
7752
|
i.clickHandler(l.e);
|
|
7750
7753
|
}, {
|
|
7751
7754
|
e,
|
|
@@ -7756,7 +7759,7 @@ var je = {
|
|
|
7756
7759
|
key: "onDbClick",
|
|
7757
7760
|
value: function(e) {
|
|
7758
7761
|
var i = this, n = this.player;
|
|
7759
|
-
me(this,
|
|
7762
|
+
me(this, Ht[1], function(s, l) {
|
|
7760
7763
|
i.dbClickHandler(l.e);
|
|
7761
7764
|
}, {
|
|
7762
7765
|
e,
|
|
@@ -8909,7 +8912,7 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
8909
8912
|
var e = this;
|
|
8910
8913
|
F(O(r.prototype), "afterCreate", this).call(this);
|
|
8911
8914
|
var i = this.player, n = this.config;
|
|
8912
|
-
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([
|
|
8915
|
+
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([Ze, st, Ue], function() {
|
|
8913
8916
|
e.animate(i.paused);
|
|
8914
8917
|
}), this.on(ae, function() {
|
|
8915
8918
|
e.animate(i.paused);
|
|
@@ -8920,11 +8923,11 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
8920
8923
|
value: function() {
|
|
8921
8924
|
return {
|
|
8922
8925
|
play: {
|
|
8923
|
-
icon:
|
|
8926
|
+
icon: ui,
|
|
8924
8927
|
class: "xg-icon-play"
|
|
8925
8928
|
},
|
|
8926
8929
|
pause: {
|
|
8927
|
-
icon:
|
|
8930
|
+
icon: ci,
|
|
8928
8931
|
class: "xg-icon-pause"
|
|
8929
8932
|
}
|
|
8930
8933
|
};
|
|
@@ -9407,7 +9410,7 @@ var Qo = /* @__PURE__ */ function(a) {
|
|
|
9407
9410
|
return I(r, [{
|
|
9408
9411
|
key: "afterCreate",
|
|
9409
9412
|
value: function() {
|
|
9410
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Pe, this._onDurationChange), this.on(Ce, this._onLoadedData), this.on(oe, this._onTimeupdate), this.on(
|
|
9413
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Pe, this._onDurationChange), this.on(Ce, this._onLoadedData), this.on(oe, this._onTimeupdate), this.on(wt, this._onSeeking), this.on(ae, this._onPlay);
|
|
9411
9414
|
}
|
|
9412
9415
|
}, {
|
|
9413
9416
|
key: "setConfig",
|
|
@@ -9867,7 +9870,7 @@ var We = {
|
|
|
9867
9870
|
key: "afterCreate",
|
|
9868
9871
|
value: function() {
|
|
9869
9872
|
var e = this;
|
|
9870
|
-
this.isPIPAvailable() && (F(O(r.prototype), "afterCreate", this).call(this), this.pMode = We.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(
|
|
9873
|
+
this.isPIPAvailable() && (F(O(r.prototype), "afterCreate", this).call(this), this.pMode = We.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Tt, function() {
|
|
9871
9874
|
e.config.showIcon && (h.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
9872
9875
|
}));
|
|
9873
9876
|
}
|
|
@@ -9899,9 +9902,9 @@ var We = {
|
|
|
9899
9902
|
var n = i.paused;
|
|
9900
9903
|
h.setTimeout(e, function() {
|
|
9901
9904
|
!n && i.mediaPlay();
|
|
9902
|
-
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(
|
|
9905
|
+
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(Yt, !1);
|
|
9903
9906
|
}, this.enterPIPCallback = function(n) {
|
|
9904
|
-
i.emit(
|
|
9907
|
+
i.emit(Yt, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
9905
9908
|
}, this.onWebkitpresentationmodechanged = function(n) {
|
|
9906
9909
|
var s = i.media.webkitPresentationMode;
|
|
9907
9910
|
e.pMode === We.FULLSCREEN && s !== We.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === We.PIP ? e.enterPIPCallback(n) : s === We.INLINE && e.leavePIPCallback(n);
|
|
@@ -10052,7 +10055,7 @@ var ha = /* @__PURE__ */ function(a) {
|
|
|
10052
10055
|
var e;
|
|
10053
10056
|
return x(this, r), e = o.call(this, t), _(m(e), "playNext", function(i) {
|
|
10054
10057
|
var n = m(e), s = n.player;
|
|
10055
|
-
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(
|
|
10058
|
+
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(mt, e.idx + 1)) : (e.nextHandler(), s.emit(mt));
|
|
10056
10059
|
}), e.idx = -1, e;
|
|
10057
10060
|
}
|
|
10058
10061
|
return I(r, [{
|
|
@@ -10187,7 +10190,7 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
10187
10190
|
});
|
|
10188
10191
|
})(Cn);
|
|
10189
10192
|
var da = Cn.exports;
|
|
10190
|
-
const ga = /* @__PURE__ */
|
|
10193
|
+
const ga = /* @__PURE__ */ Zt(da);
|
|
10191
10194
|
function pa() {
|
|
10192
10195
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
10193
10196
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
@@ -10486,7 +10489,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
10486
10489
|
function _a(a, o) {
|
|
10487
10490
|
return a === de.SIDE ? o === W.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10488
10491
|
}
|
|
10489
|
-
var De = N.device === "mobile",
|
|
10492
|
+
var De = N.device === "mobile", bt = /* @__PURE__ */ function(a) {
|
|
10490
10493
|
L(r, a);
|
|
10491
10494
|
var o = D(r);
|
|
10492
10495
|
function r(t) {
|
|
@@ -10522,7 +10525,7 @@ var De = N.device === "mobile", Ct = /* @__PURE__ */ function(a) {
|
|
|
10522
10525
|
e._resizeList();
|
|
10523
10526
|
}), this.once(ye, function() {
|
|
10524
10527
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
10525
|
-
}), De && this.on(
|
|
10528
|
+
}), De && this.on(ni, function() {
|
|
10526
10529
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
10527
10530
|
}), De ? (i.toggleMode = $e.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === $e.CLICK ? "click" : "mouseenter", i.toggleMode === $e.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);
|
|
10528
10531
|
}
|
|
@@ -10679,7 +10682,7 @@ var De = N.device === "mobile", Ct = /* @__PURE__ */ function(a) {
|
|
|
10679
10682
|
var e = this;
|
|
10680
10683
|
F(O(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
|
|
10681
10684
|
e.changeDefinitionList(i);
|
|
10682
|
-
}), this.on(
|
|
10685
|
+
}), this.on(ai, function(i) {
|
|
10683
10686
|
e.renderItemList(e.config.list, i.to);
|
|
10684
10687
|
}), this.player.definitionList.length < 2 && this.hide();
|
|
10685
10688
|
}
|
|
@@ -10747,7 +10750,7 @@ var De = N.device === "mobile", Ct = /* @__PURE__ */ function(a) {
|
|
|
10747
10750
|
}, {
|
|
10748
10751
|
key: "defaultConfig",
|
|
10749
10752
|
get: function() {
|
|
10750
|
-
return G(G({},
|
|
10753
|
+
return G(G({}, bt.defaultConfig), {}, {
|
|
10751
10754
|
position: W.CONTROLS_RIGHT,
|
|
10752
10755
|
index: 3,
|
|
10753
10756
|
list: [],
|
|
@@ -10759,7 +10762,7 @@ var De = N.device === "mobile", Ct = /* @__PURE__ */ function(a) {
|
|
|
10759
10762
|
});
|
|
10760
10763
|
}
|
|
10761
10764
|
}]), r;
|
|
10762
|
-
}(
|
|
10765
|
+
}(bt), Ca = /* @__PURE__ */ function(a) {
|
|
10763
10766
|
L(r, a);
|
|
10764
10767
|
var o = D(r);
|
|
10765
10768
|
function r(t) {
|
|
@@ -10841,7 +10844,7 @@ var De = N.device === "mobile", Ct = /* @__PURE__ */ function(a) {
|
|
|
10841
10844
|
}, {
|
|
10842
10845
|
key: "defaultConfig",
|
|
10843
10846
|
get: function() {
|
|
10844
|
-
return G(G({},
|
|
10847
|
+
return G(G({}, bt.defaultConfig), {}, {
|
|
10845
10848
|
position: W.CONTROLS_RIGHT,
|
|
10846
10849
|
index: 4,
|
|
10847
10850
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
@@ -10851,7 +10854,7 @@ var De = N.device === "mobile", Ct = /* @__PURE__ */ function(a) {
|
|
|
10851
10854
|
});
|
|
10852
10855
|
}
|
|
10853
10856
|
}]), r;
|
|
10854
|
-
}(
|
|
10857
|
+
}(bt);
|
|
10855
10858
|
function ba() {
|
|
10856
10859
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10857
10860
|
<path fill="#fff" transform="scale(1.3, 1.3)" class='path_full' d="M9,10v1a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V9A.9.9,0,0,1,8,8h2a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm6,4V13a1,1,0,0,1,2,0v2a.9.9,0,0,1-1,1H14a1,1,0,0,1,0-2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
@@ -10879,7 +10882,7 @@ var zi = /* @__PURE__ */ function(a) {
|
|
|
10879
10882
|
key: "afterCreate",
|
|
10880
10883
|
value: function() {
|
|
10881
10884
|
var e = this;
|
|
10882
|
-
F(O(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(
|
|
10885
|
+
F(O(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(pt, function(i) {
|
|
10883
10886
|
e.animate(i);
|
|
10884
10887
|
}), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
|
|
10885
10888
|
pre: function(n) {
|
|
@@ -10972,7 +10975,7 @@ var zi = /* @__PURE__ */ function(a) {
|
|
|
10972
10975
|
pre: function(n) {
|
|
10973
10976
|
n.preventDefault(), n.stopPropagation();
|
|
10974
10977
|
}
|
|
10975
|
-
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(
|
|
10978
|
+
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(st, function(i) {
|
|
10976
10979
|
e.onError(i);
|
|
10977
10980
|
});
|
|
10978
10981
|
}
|
|
@@ -11683,7 +11686,7 @@ var Ge = {
|
|
|
11683
11686
|
}
|
|
11684
11687
|
}]), r;
|
|
11685
11688
|
}(z);
|
|
11686
|
-
function
|
|
11689
|
+
function Ut(a) {
|
|
11687
11690
|
return a ? "background:".concat(a, ";") : "";
|
|
11688
11691
|
}
|
|
11689
11692
|
var Pa = /* @__PURE__ */ function(a) {
|
|
@@ -11743,9 +11746,9 @@ var Pa = /* @__PURE__ */ function(a) {
|
|
|
11743
11746
|
var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
|
|
11744
11747
|
if (n) {
|
|
11745
11748
|
var s = this.config, l = s.mode, u = s.height, c = {
|
|
11746
|
-
cached:
|
|
11747
|
-
played:
|
|
11748
|
-
progress:
|
|
11749
|
+
cached: Ut(i.cachedColor),
|
|
11750
|
+
played: Ut(i.playedColor),
|
|
11751
|
+
progress: Ut(i.progressColor),
|
|
11749
11752
|
height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
|
|
11750
11753
|
}, f = l === "show" ? "xg-mini-progress-show" : "";
|
|
11751
11754
|
return '<xg-mini-progress class="xg-mini-progress '.concat(f, '" style="').concat(c.progress, " ").concat(c.height, `">
|
|
@@ -11789,7 +11792,7 @@ function La() {
|
|
|
11789
11792
|
return !1;
|
|
11790
11793
|
}
|
|
11791
11794
|
}
|
|
11792
|
-
var
|
|
11795
|
+
var ut = null, Da = /* @__PURE__ */ function(a) {
|
|
11793
11796
|
L(r, a);
|
|
11794
11797
|
var o = D(r);
|
|
11795
11798
|
function r() {
|
|
@@ -11830,16 +11833,16 @@ var lt = null, Da = /* @__PURE__ */ function(a) {
|
|
|
11830
11833
|
x: 0,
|
|
11831
11834
|
y: 0,
|
|
11832
11835
|
pi: 0
|
|
11833
|
-
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== Ke.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(
|
|
11836
|
+
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== Ke.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(Tt, function() {
|
|
11834
11837
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
11835
11838
|
}), s !== Ke.POSTER && (s !== Ke.FIRST_FRAME && (this.on(Ue, function() {
|
|
11836
11839
|
e.stop();
|
|
11837
11840
|
}), this.on(ae, function() {
|
|
11838
11841
|
var u = e.config.startInterval;
|
|
11839
11842
|
e._checkIfCanStart() && e.start(0, u);
|
|
11840
|
-
}), this.on(
|
|
11843
|
+
}), this.on(Ze, function() {
|
|
11841
11844
|
e.stop();
|
|
11842
|
-
})), this.on(Ce, this.onLoadedData), this.on(
|
|
11845
|
+
})), this.on(Ce, this.onLoadedData), this.on(ii, function() {
|
|
11843
11846
|
e._isLoaded = !1, e.stop();
|
|
11844
11847
|
}), document.addEventListener("visibilitychange", this.onVisibilitychange)));
|
|
11845
11848
|
}
|
|
@@ -11983,7 +11986,7 @@ var lt = null, Da = /* @__PURE__ */ function(a) {
|
|
|
11983
11986
|
}, {
|
|
11984
11987
|
key: "isSupport",
|
|
11985
11988
|
get: function() {
|
|
11986
|
-
return typeof
|
|
11989
|
+
return typeof ut == "boolean" || (ut = La()), ut;
|
|
11987
11990
|
}
|
|
11988
11991
|
}, {
|
|
11989
11992
|
key: "supportCanvasFilter",
|
|
@@ -12066,7 +12069,7 @@ var lt = null, Da = /* @__PURE__ */ function(a) {
|
|
|
12066
12069
|
FORWARD: "快进中",
|
|
12067
12070
|
LIVE_TIP: "直播"
|
|
12068
12071
|
}
|
|
12069
|
-
}, et = "info",
|
|
12072
|
+
}, et = "info", zt = gn, Ra = /* @__PURE__ */ function(a) {
|
|
12070
12073
|
L(r, a);
|
|
12071
12074
|
var o = D(r);
|
|
12072
12075
|
function r() {
|
|
@@ -12105,7 +12108,7 @@ var lt = null, Da = /* @__PURE__ */ function(a) {
|
|
|
12105
12108
|
}, {
|
|
12106
12109
|
key: "afterCreate",
|
|
12107
12110
|
value: function() {
|
|
12108
|
-
this.reset(), this.on(
|
|
12111
|
+
this.reset(), this.on(yt, this._recordUserActions), this.on(zt.STATS_INFO, this._recordInfo), this.on(zt.STATS_DOWNLOAD, this._downloadStats), this.on(zt.STATS_RESET, this._onReset);
|
|
12109
12112
|
}
|
|
12110
12113
|
}, {
|
|
12111
12114
|
key: "destroy",
|
|
@@ -12251,9 +12254,9 @@ var lt = null, Da = /* @__PURE__ */ function(a) {
|
|
|
12251
12254
|
key: "afterCreate",
|
|
12252
12255
|
value: function() {
|
|
12253
12256
|
var e = this, i = this.config.useGapJump;
|
|
12254
|
-
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(
|
|
12257
|
+
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(ot, this.onGapJump), this.on(ae, function() {
|
|
12255
12258
|
e.hasPlayed = !0;
|
|
12256
|
-
}), this.on(
|
|
12259
|
+
}), this.on(wt, function() {
|
|
12257
12260
|
e.seekingEventReceived = !0;
|
|
12258
12261
|
}));
|
|
12259
12262
|
}
|
|
@@ -12324,7 +12327,7 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12324
12327
|
key: "afterCreate",
|
|
12325
12328
|
value: function() {
|
|
12326
12329
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
12327
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(
|
|
12330
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(ot, this.onWaiting), this.on([ti, ye], function() {
|
|
12328
12331
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
12329
12332
|
}), this.on(ae, function() {
|
|
12330
12333
|
e.hasPlayed = !0;
|
|
@@ -12346,7 +12349,7 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12346
12349
|
};
|
|
12347
12350
|
}
|
|
12348
12351
|
}]), r;
|
|
12349
|
-
}(z), Ye = "cdn",
|
|
12352
|
+
}(z), Ye = "cdn", ct = ["cdn"], Ma = /* @__PURE__ */ function(a) {
|
|
12350
12353
|
L(r, a);
|
|
12351
12354
|
var o = D(r);
|
|
12352
12355
|
function r() {
|
|
@@ -12365,7 +12368,7 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12365
12368
|
}), _(m(t), "startTimer", function() {
|
|
12366
12369
|
h.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
|
|
12367
12370
|
}), _(m(t), "initSpeedList", function() {
|
|
12368
|
-
t.speedListCache = {},
|
|
12371
|
+
t.speedListCache = {}, ct.forEach(function(s) {
|
|
12369
12372
|
t.speedListCache[s] = [];
|
|
12370
12373
|
});
|
|
12371
12374
|
}), _(m(t), "_onRealSpeedChange", function(s) {
|
|
@@ -12405,13 +12408,13 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12405
12408
|
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ye, l = t.getSpeed(s), u = m(t), c = u.player;
|
|
12406
12409
|
if (c)
|
|
12407
12410
|
if (s === Ye)
|
|
12408
|
-
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(
|
|
12411
|
+
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(Gt, {
|
|
12409
12412
|
speed: l,
|
|
12410
12413
|
realTimeSpeed: c.realTimeSpeed
|
|
12411
12414
|
}));
|
|
12412
12415
|
else {
|
|
12413
12416
|
var f = t.getSpeedName("avg", s);
|
|
12414
|
-
(!c[f] || l !== c[f]) && (c[f] = l, c.emit(
|
|
12417
|
+
(!c[f] || l !== c[f]) && (c[f] = l, c.emit(Gt, {
|
|
12415
12418
|
speed: l,
|
|
12416
12419
|
realTimeSpeed: c.realTimeSpeed
|
|
12417
12420
|
}));
|
|
@@ -12422,7 +12425,7 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12422
12425
|
key: "afterCreate",
|
|
12423
12426
|
value: function() {
|
|
12424
12427
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
12425
|
-
(n == null ? void 0 : n.length) > 0 &&
|
|
12428
|
+
(n == null ? void 0 : n.length) > 0 && ct.push.apply(ct, fe(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Ce, gt], this.startTimer);
|
|
12426
12429
|
}
|
|
12427
12430
|
}, {
|
|
12428
12431
|
key: "getSpeedName",
|
|
@@ -12449,7 +12452,7 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12449
12452
|
key: "destroy",
|
|
12450
12453
|
value: function() {
|
|
12451
12454
|
var e = this;
|
|
12452
|
-
this.off("real_time_speed", this._onRealSpeedChange), this.off([Ce,
|
|
12455
|
+
this.off("real_time_speed", this._onRealSpeedChange), this.off([Ce, gt], this.startTimer), ct.forEach(function(i) {
|
|
12453
12456
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
12454
12457
|
}), this.speedListCache && (this.speedListCache = {}), clearTimeout(this.timer), this.timer = null, this.xhr && this.xhr.readyState !== 4 && (this.xhr.cancel && this.xhr.cancel(), this.xhr = null);
|
|
12455
12458
|
}
|
|
@@ -12486,7 +12489,7 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12486
12489
|
var l = s.getVideoPlaybackQuality;
|
|
12487
12490
|
l && (this.on(ae, function() {
|
|
12488
12491
|
e._startTick();
|
|
12489
|
-
}), this.on(
|
|
12492
|
+
}), this.on(Ze, function() {
|
|
12490
12493
|
e._stopTick();
|
|
12491
12494
|
}), this.on(He, function() {
|
|
12492
12495
|
e._stopTick();
|
|
@@ -12582,7 +12585,7 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12582
12585
|
}
|
|
12583
12586
|
}]), r;
|
|
12584
12587
|
}(z);
|
|
12585
|
-
|
|
12588
|
+
Xe.use(Oa);
|
|
12586
12589
|
var Ba = /* @__PURE__ */ I(function a(o, r) {
|
|
12587
12590
|
var t, e, i;
|
|
12588
12591
|
x(this, a);
|
|
@@ -12591,15 +12594,15 @@ var Ba = /* @__PURE__ */ I(function a(o, r) {
|
|
|
12591
12594
|
var f = n ? "mobile" : N.device;
|
|
12592
12595
|
switch (f) {
|
|
12593
12596
|
case "pc":
|
|
12594
|
-
(t = this.plugins).push.apply(t, [Hi,
|
|
12597
|
+
(t = this.plugins).push.apply(t, [Hi, Bt, zi, Ma, Na]);
|
|
12595
12598
|
break;
|
|
12596
12599
|
case "mobile":
|
|
12597
12600
|
(e = this.plugins).push.apply(e, [zo]);
|
|
12598
12601
|
break;
|
|
12599
12602
|
default:
|
|
12600
|
-
(i = this.plugins).push.apply(i, [Hi,
|
|
12603
|
+
(i = this.plugins).push.apply(i, [Hi, Bt, zi]);
|
|
12601
12604
|
}
|
|
12602
|
-
(N.os.isIpad || f === "pc") && this.plugins.push(Da), N.os.isIpad && this.plugins.push(
|
|
12605
|
+
(N.os.isIpad || f === "pc") && this.plugins.push(Da), N.os.isIpad && this.plugins.push(Bt), this.ignores = [], this.i18n = [];
|
|
12603
12606
|
}), he = /* @__PURE__ */ function(a) {
|
|
12604
12607
|
L(r, a);
|
|
12605
12608
|
var o = D(r);
|
|
@@ -12607,21 +12610,21 @@ var Ba = /* @__PURE__ */ I(function a(o, r) {
|
|
|
12607
12610
|
return x(this, r), o.apply(this, arguments);
|
|
12608
12611
|
}
|
|
12609
12612
|
return I(r);
|
|
12610
|
-
}(
|
|
12613
|
+
}(xt);
|
|
12611
12614
|
_(he, "defaultPreset", Ba);
|
|
12612
12615
|
_(he, "Util", h);
|
|
12613
12616
|
_(he, "Sniffer", N);
|
|
12614
|
-
_(he, "Errors",
|
|
12617
|
+
_(he, "Errors", dt);
|
|
12615
12618
|
_(he, "Events", Zs);
|
|
12616
12619
|
_(he, "Plugin", z);
|
|
12617
12620
|
_(he, "BasePlugin", xe);
|
|
12618
|
-
_(he, "I18N",
|
|
12621
|
+
_(he, "I18N", Xe);
|
|
12619
12622
|
_(he, "STATE_CLASS", w);
|
|
12620
12623
|
_(he, "InstManager", _n);
|
|
12621
12624
|
const Ha = ["id"], Ua = /* @__PURE__ */ ue({
|
|
12622
12625
|
name: "ElImageViewer",
|
|
12623
12626
|
__name: "Player",
|
|
12624
|
-
props: /* @__PURE__ */
|
|
12627
|
+
props: /* @__PURE__ */ ft({
|
|
12625
12628
|
url: {
|
|
12626
12629
|
type: String,
|
|
12627
12630
|
default: ""
|
|
@@ -12642,12 +12645,12 @@ const Ha = ["id"], Ua = /* @__PURE__ */ ue({
|
|
|
12642
12645
|
},
|
|
12643
12646
|
modelModifiers: {}
|
|
12644
12647
|
}),
|
|
12645
|
-
emits: /* @__PURE__ */
|
|
12648
|
+
emits: /* @__PURE__ */ ft({
|
|
12646
12649
|
close: () => !0
|
|
12647
12650
|
}, ["update:modelValue"]),
|
|
12648
12651
|
setup(a, { emit: o }) {
|
|
12649
12652
|
let r = null;
|
|
12650
|
-
const t = a, { cLoadUrl: e } =
|
|
12653
|
+
const t = a, { cLoadUrl: e } = Jt(t), i = ee(() => Je(e.value, t.url)), n = {
|
|
12651
12654
|
width: "100%",
|
|
12652
12655
|
height: "100%",
|
|
12653
12656
|
// 是否自动播放
|
|
@@ -12668,12 +12671,12 @@ const Ha = ["id"], Ua = /* @__PURE__ */ ue({
|
|
|
12668
12671
|
}, s = ee(() => ({
|
|
12669
12672
|
...n,
|
|
12670
12673
|
...t.config
|
|
12671
|
-
})), l = o, u =
|
|
12674
|
+
})), l = o, u = Xt(a, "modelValue"), c = Gi(), f = Fn("image-viewer");
|
|
12672
12675
|
function g() {
|
|
12673
12676
|
l("close"), u.value = !1, r.destroy();
|
|
12674
12677
|
}
|
|
12675
|
-
return
|
|
12676
|
-
p &&
|
|
12678
|
+
return qt(() => u.value, (p) => {
|
|
12679
|
+
p && ht(() => {
|
|
12677
12680
|
r = new he({
|
|
12678
12681
|
id: c,
|
|
12679
12682
|
url: i.value,
|
|
@@ -12753,13 +12756,13 @@ const Ha = ["id"], Ua = /* @__PURE__ */ ue({
|
|
|
12753
12756
|
};
|
|
12754
12757
|
}
|
|
12755
12758
|
});
|
|
12756
|
-
const za = /* @__PURE__ */
|
|
12759
|
+
const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(za), hi = (a) => (Pn("data-v-48f27627"), a = a(), An(), a), ja = {
|
|
12757
12760
|
class: "approveProcess",
|
|
12758
12761
|
id: "approveProcess"
|
|
12759
12762
|
}, Wa = ["id"], $a = { class: "topBlock" }, Ga = { class: "left" }, Ka = { class: "nodeBg" }, Ya = ["src"], Xa = { class: "right" }, qa = { class: "topInfo" }, Ja = { key: 0 }, Za = {
|
|
12760
12763
|
key: 0,
|
|
12761
12764
|
class: "main-text"
|
|
12762
|
-
}, Qa = { class: "name" }, el = { key: 0 }, tl = { key: 0 }, il = { key: 1 }, nl = /* @__PURE__ */
|
|
12765
|
+
}, Qa = { class: "name" }, el = { key: 0 }, tl = { key: 0 }, il = { key: 1 }, nl = /* @__PURE__ */ hi(() => /* @__PURE__ */ S(
|
|
12763
12766
|
"span",
|
|
12764
12767
|
{
|
|
12765
12768
|
class: "red",
|
|
@@ -12768,7 +12771,7 @@ const za = /* @__PURE__ */ nt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
12768
12771
|
" 退回至",
|
|
12769
12772
|
-1
|
|
12770
12773
|
/* HOISTED */
|
|
12771
|
-
)), rl = { key: 0 }, sl = { key: 0 }, ol = { key: 1 }, al = { key: 1 }, ll = /* @__PURE__ */
|
|
12774
|
+
)), rl = { key: 0 }, sl = { key: 0 }, ol = { key: 1 }, al = { key: 1 }, ll = /* @__PURE__ */ hi(() => /* @__PURE__ */ S(
|
|
12772
12775
|
"div",
|
|
12773
12776
|
{ class: "main-text" },
|
|
12774
12777
|
"抄送人员",
|
|
@@ -12792,7 +12795,7 @@ const za = /* @__PURE__ */ nt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
12792
12795
|
}, yl = { class: "time" }, _l = { key: 0 }, kl = { key: 1 }, Cl = ["onClick"], bl = ["onClick"], wl = {
|
|
12793
12796
|
key: 0,
|
|
12794
12797
|
class: "opinion"
|
|
12795
|
-
}, Tl = { key: 0 }, El = { key: 1 }, Sl = /* @__PURE__ */
|
|
12798
|
+
}, Tl = { key: 0 }, El = { key: 1 }, Sl = /* @__PURE__ */ hi(() => /* @__PURE__ */ S(
|
|
12796
12799
|
"span",
|
|
12797
12800
|
{ class: "ik-text-primary" },
|
|
12798
12801
|
"添加审批人",
|
|
@@ -12872,11 +12875,11 @@ const za = /* @__PURE__ */ nt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
12872
12875
|
},
|
|
12873
12876
|
emits: ["preview"],
|
|
12874
12877
|
setup(a, { emit: o }) {
|
|
12875
|
-
const r = a, { cLoadUrl: t } =
|
|
12876
|
-
|
|
12878
|
+
const r = a, { cLoadUrl: t } = Jt(r), e = Wi(jr(r));
|
|
12879
|
+
qt(
|
|
12877
12880
|
() => r.dataList,
|
|
12878
12881
|
(c) => {
|
|
12879
|
-
c && (
|
|
12882
|
+
c && (ht(() => {
|
|
12880
12883
|
e.listData = c;
|
|
12881
12884
|
}), setTimeout(() => {
|
|
12882
12885
|
r.returnNode.length && i();
|
|
@@ -12895,7 +12898,7 @@ const za = /* @__PURE__ */ nt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
12895
12898
|
if (isNaN(c[1]))
|
|
12896
12899
|
return;
|
|
12897
12900
|
let f = Array.from(new Array(c[1] + 1).keys()).slice(c[0]);
|
|
12898
|
-
|
|
12901
|
+
ht(() => {
|
|
12899
12902
|
n(f);
|
|
12900
12903
|
});
|
|
12901
12904
|
}
|
|
@@ -12945,7 +12948,7 @@ const za = /* @__PURE__ */ nt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
12945
12948
|
let g = document.getElementById(`${c[e.defaultFile.nodeId]}`), p = Array.from(g == null ? void 0 : g.getElementsByClassName("approveList"));
|
|
12946
12949
|
for (let d of p)
|
|
12947
12950
|
d.style.display = f;
|
|
12948
|
-
}, u = (c) =>
|
|
12951
|
+
}, u = (c) => Je(t.value, c);
|
|
12949
12952
|
return (c, f) => {
|
|
12950
12953
|
const g = Ee("el-image"), p = Ee("IkingApprovalProcessDetail");
|
|
12951
12954
|
return T(), E("div", ja, [
|
|
@@ -13285,7 +13288,7 @@ const za = /* @__PURE__ */ nt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13285
13288
|
};
|
|
13286
13289
|
}
|
|
13287
13290
|
});
|
|
13288
|
-
const Ul = /* @__PURE__ */
|
|
13291
|
+
const Ul = /* @__PURE__ */ rt(Hl, [["__scopeId", "data-v-48f27627"]]), Wl = Ie(Ul);
|
|
13289
13292
|
export {
|
|
13290
13293
|
Wl as IKApprovalProcessDetail,
|
|
13291
13294
|
Wl as default
|