iking-web-ui-pro 0.2.22 → 0.2.25
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 +77 -82
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +727 -745
- package/dist/IKPreviewFile/ik.index.umd.js +46 -46
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKSearch/ik.index.es.js +41 -33
- package/dist/IKSearch/ik.index.umd.js +1 -1
- package/dist/IKSearch/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +125 -130
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcess/ik.index.es.js +167 -159
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcess/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +659 -677
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +47 -47
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +112 -130
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +237 -242
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +73 -65
- package/dist/IkCalendar/ik.index.umd.js +1 -1
- package/dist/IkCalendar/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +78 -83
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +902 -920
- package/dist/IkDescription/ik.index.umd.js +45 -45
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +613 -631
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +45 -45
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +135 -140
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +378 -383
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1305 -1302
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +41 -33
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPickerUser/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +687 -705
- package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2955 -2960
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +106 -111
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +69 -74
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +761 -779
- package/dist/IkUploadFile/ik.index.umd.js +45 -45
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +218 -223
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +7089 -7099
- package/dist/index.umd.js +89 -89
- package/dist/src/components/IkSvgIcon/index.d.ts +2 -6
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +2 -6
- 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 Qe, ref as qe, resolveComponent as Ee, Fragment as le, renderList as Re, normalizeStyle as re, toDisplayString as $, normalizeClass 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 Z, createVNode as Q, unref as j, withModifiers as hi, renderSlot as Fe, createBlock as ke, withCtx as pe, createCommentVNode as A, mergeModels as ct, useModel as Yt, reactive as Wi, watch as Xt, nextTick as ft, 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
|
+
}, zt = (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 ? zt(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 nt = (a, o) => {
|
|
643
643
|
const r = a.__vccOpts || a;
|
|
644
644
|
for (const [t, e] of o)
|
|
645
645
|
r[t] = e;
|
|
@@ -754,7 +754,7 @@ const rt = (a, o) => {
|
|
|
754
754
|
t = "ikapprove-ziyuan";
|
|
755
755
|
}
|
|
756
756
|
return `ikapprove ${t}`;
|
|
757
|
-
},
|
|
757
|
+
}, qt = (a) => {
|
|
758
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,
|
|
@@ -846,7 +846,7 @@ const rt = (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 } = qt(o), e = ee(() => ({
|
|
850
850
|
name: "name",
|
|
851
851
|
url: "url",
|
|
852
852
|
suffix: "suffix",
|
|
@@ -905,16 +905,16 @@ const rt = (a, o) => {
|
|
|
905
905
|
S(
|
|
906
906
|
"div",
|
|
907
907
|
{
|
|
908
|
-
class:
|
|
908
|
+
class: Z(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
909
909
|
},
|
|
910
910
|
[
|
|
911
|
-
|
|
911
|
+
Q(j(Ye), {
|
|
912
912
|
name: "iksvg_daochu",
|
|
913
|
-
onClick:
|
|
913
|
+
onClick: hi((C) => l(k), ["stop"]),
|
|
914
914
|
size: 20,
|
|
915
915
|
active: ""
|
|
916
916
|
}, null, 8, ["onClick"]),
|
|
917
|
-
|
|
917
|
+
Q(j(Ye), {
|
|
918
918
|
name: "iksvg_yulan",
|
|
919
919
|
size: 20,
|
|
920
920
|
active: ""
|
|
@@ -939,7 +939,7 @@ const rt = (a, o) => {
|
|
|
939
939
|
return T(), E(
|
|
940
940
|
"div",
|
|
941
941
|
{
|
|
942
|
-
class:
|
|
942
|
+
class: Z(["iking-privew-annex", { "is-bg": a.showBg }]),
|
|
943
943
|
key: b,
|
|
944
944
|
style: re({
|
|
945
945
|
marginBottom: b == ((C = a.list) == null ? void 0 : C.length) - 1 ? "0" : "10px",
|
|
@@ -951,7 +951,7 @@ const rt = (a, o) => {
|
|
|
951
951
|
class: "file-card",
|
|
952
952
|
onClick: (B) => s(k)
|
|
953
953
|
}, [
|
|
954
|
-
|
|
954
|
+
Q(j(Ur), {
|
|
955
955
|
file: k,
|
|
956
956
|
style: re({ height: `${a.iconSize}px` }),
|
|
957
957
|
class: "ikui-w-auto",
|
|
@@ -976,17 +976,17 @@ const rt = (a, o) => {
|
|
|
976
976
|
S(
|
|
977
977
|
"div",
|
|
978
978
|
{
|
|
979
|
-
class:
|
|
979
|
+
class: Z(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
980
980
|
},
|
|
981
981
|
[
|
|
982
|
-
|
|
982
|
+
Q(j(Ye), {
|
|
983
983
|
name: "iksvg_daochu",
|
|
984
|
-
onClick:
|
|
984
|
+
onClick: hi((B) => l(k), ["stop"]),
|
|
985
985
|
bg: a.showBg,
|
|
986
986
|
size: a.showBg ? "default" : 20,
|
|
987
987
|
title: "下载"
|
|
988
988
|
}, null, 8, ["onClick", "bg", "size"]),
|
|
989
|
-
|
|
989
|
+
Q(j(Ye), {
|
|
990
990
|
name: "iksvg_yulan",
|
|
991
991
|
bg: a.showBg,
|
|
992
992
|
size: a.showBg ? "default" : 20,
|
|
@@ -1016,7 +1016,7 @@ const rt = (a, o) => {
|
|
|
1016
1016
|
64
|
|
1017
1017
|
/* STABLE_FRAGMENT */
|
|
1018
1018
|
)) : A("v-if", !0),
|
|
1019
|
-
|
|
1019
|
+
Q(j(ts), {
|
|
1020
1020
|
show: n.value,
|
|
1021
1021
|
"onUpdate:show": g[0] || (g[0] = (k) => n.value = k),
|
|
1022
1022
|
loadUrl: j(r),
|
|
@@ -1034,7 +1034,7 @@ const rt = (a, o) => {
|
|
|
1034
1034
|
});
|
|
1035
1035
|
const Qr = Ie(Zr), es = /* @__PURE__ */ ue({
|
|
1036
1036
|
__name: "IkPreviewFileDialog",
|
|
1037
|
-
props: /* @__PURE__ */
|
|
1037
|
+
props: /* @__PURE__ */ ct({
|
|
1038
1038
|
file: {
|
|
1039
1039
|
type: Object,
|
|
1040
1040
|
default: () => []
|
|
@@ -1069,7 +1069,7 @@ 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 = Yt(a, "show"), t = ee(() => ({
|
|
1073
1073
|
name: "name",
|
|
1074
1074
|
url: "url",
|
|
1075
1075
|
suffix: "suffix",
|
|
@@ -1087,10 +1087,10 @@ const Qr = Ie(Zr), es = /* @__PURE__ */ ue({
|
|
|
1087
1087
|
...u,
|
|
1088
1088
|
name: u[t.value.name],
|
|
1089
1089
|
url: Je(o.loadUrl, b)
|
|
1090
|
-
}, u &&
|
|
1090
|
+
}, u && zt(u, t.value) === "image") {
|
|
1091
1091
|
n.image = !0;
|
|
1092
1092
|
return;
|
|
1093
|
-
} else if (u &&
|
|
1093
|
+
} else if (u && zt(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)) {
|
|
@@ -1120,8 +1120,8 @@ const Qr = Ie(Zr), es = /* @__PURE__ */ ue({
|
|
|
1120
1120
|
console.info("预览错误: ", k);
|
|
1121
1121
|
}
|
|
1122
1122
|
};
|
|
1123
|
-
|
|
1124
|
-
u &&
|
|
1123
|
+
Xt([r, o.file], ([u, c]) => {
|
|
1124
|
+
u && ft(() => {
|
|
1125
1125
|
s(o.file);
|
|
1126
1126
|
});
|
|
1127
1127
|
});
|
|
@@ -1144,12 +1144,12 @@ const Qr = Ie(Zr), es = /* @__PURE__ */ ue({
|
|
|
1144
1144
|
}, null, 8, ["url-list"])) : A("v-if", !0),
|
|
1145
1145
|
A(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
1146
1146
|
A(" 文档类 "),
|
|
1147
|
-
|
|
1147
|
+
Q(j(za), {
|
|
1148
1148
|
modelValue: n.video,
|
|
1149
1149
|
"onUpdate:modelValue": c[1] || (c[1] = (v) => n.video = v),
|
|
1150
1150
|
url: (d = i.value) == null ? void 0 : d.url
|
|
1151
1151
|
}, null, 8, ["modelValue", "url"]),
|
|
1152
|
-
|
|
1152
|
+
Q(j(ps), {
|
|
1153
1153
|
modelValue: n.office,
|
|
1154
1154
|
"onUpdate:modelValue": c[2] || (c[2] = (v) => n.office = v),
|
|
1155
1155
|
draggable: "",
|
|
@@ -1167,7 +1167,7 @@ const Qr = Ie(Zr), es = /* @__PURE__ */ ue({
|
|
|
1167
1167
|
default: pe(() => {
|
|
1168
1168
|
var v;
|
|
1169
1169
|
return [
|
|
1170
|
-
|
|
1170
|
+
Q(j(Ts), {
|
|
1171
1171
|
"config-options": e.value,
|
|
1172
1172
|
"document-server-url": ((v = a.onlyOfficeConfig) == null ? void 0 : v.serverUrl) || a.onlyofficeServer
|
|
1173
1173
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -1220,89 +1220,86 @@ const ts = Ie(es), is = {
|
|
|
1220
1220
|
warning: { type: Boolean },
|
|
1221
1221
|
width: {}
|
|
1222
1222
|
},
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
switch (t.value.flip) {
|
|
1223
|
+
setup(a) {
|
|
1224
|
+
const o = a, r = ee(() => o), t = ee(() => {
|
|
1225
|
+
const { name: i } = r.value;
|
|
1226
|
+
return /^http?:\/\//.test(i) ? "img" : /i-[^:]+:[^:]+/.test(i) ? "unocss" : i != null && i.startsWith("iksig") ? "iksig" : i != null && i.includes(":") ? "iconify" : i != null && i.startsWith("iksvg") ? "svg" : "i";
|
|
1227
|
+
}), e = ee(() => {
|
|
1228
|
+
const i = [];
|
|
1229
|
+
if (r.value.flip)
|
|
1230
|
+
switch (r.value.flip) {
|
|
1232
1231
|
case "horizontal":
|
|
1233
|
-
|
|
1232
|
+
i.push("rotateY(180deg)");
|
|
1234
1233
|
break;
|
|
1235
1234
|
case "vertical":
|
|
1236
|
-
|
|
1235
|
+
i.push("rotateX(180deg)");
|
|
1237
1236
|
break;
|
|
1238
1237
|
case "both":
|
|
1239
|
-
|
|
1238
|
+
i.push("rotateX(180deg)"), i.push("rotateY(180deg)");
|
|
1240
1239
|
break;
|
|
1241
1240
|
}
|
|
1242
|
-
|
|
1243
|
-
const
|
|
1244
|
-
|
|
1245
|
-
...
|
|
1246
|
-
...
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
"--ik-color-icon-
|
|
1241
|
+
r.value.rotate && i.push(`rotate(${r.value.rotate % 360}deg)`);
|
|
1242
|
+
const n = {
|
|
1243
|
+
pointerEvents: r.value.disabled ? "none" : "auto",
|
|
1244
|
+
...r.value.color && { color: r.value.color },
|
|
1245
|
+
...r.value.size && { fontSize: typeof r.value.size == "number" ? `${r.value.size}px` : r.value.size },
|
|
1246
|
+
...i.length && { transform: i.join(" ") },
|
|
1247
|
+
padding: r.value.showBg || r.value.bg ? r.value.padding : 0,
|
|
1248
|
+
...r.value.color && t.value !== "iksig" ? {
|
|
1249
|
+
"--ik-color-icon-dark": r.value.color,
|
|
1250
|
+
"--ik-color-icon-light": r.value.colorLight || On.setOpacity(r.value.color, r.value.opacity)
|
|
1251
1251
|
} : {}
|
|
1252
1252
|
};
|
|
1253
|
-
return
|
|
1254
|
-
})
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
return t.value.tableIconType === "icon" || !t.value.tableIconType ? (T(), E("span", is, [
|
|
1260
|
-
t.value.notip || !t.value.title ? (T(), E(
|
|
1253
|
+
return r.value.width && (n.width = n.height = typeof r.value.width == "number" ? `${r.value.width}px` : r.value.width), n;
|
|
1254
|
+
});
|
|
1255
|
+
return (i, n) => {
|
|
1256
|
+
const s = Ee("el-tooltip"), l = Ee("el-button");
|
|
1257
|
+
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (T(), E("span", is, [
|
|
1258
|
+
r.value.notip || !r.value.title ? (T(), E(
|
|
1261
1259
|
"i",
|
|
1262
1260
|
{
|
|
1263
1261
|
key: 0,
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
disabled: t.value.disabled
|
|
1262
|
+
class: Z(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1263
|
+
[i.name]: t.value === "unocss",
|
|
1264
|
+
"show-bg": r.value.showBg || r.value.bg,
|
|
1265
|
+
default: r.value.size === "default",
|
|
1266
|
+
small: r.value.size === "small",
|
|
1267
|
+
big: r.value.size === "big",
|
|
1268
|
+
warning: r.value.warning || r.value.type === "warning",
|
|
1269
|
+
primary: r.value.primary || r.value.type === "primary",
|
|
1270
|
+
success: i.success || r.value.type === "success",
|
|
1271
|
+
error: r.value.error || r.value.type === "error",
|
|
1272
|
+
active: r.value.active,
|
|
1273
|
+
disabled: r.value.disabled
|
|
1277
1274
|
}]),
|
|
1278
|
-
style: re(
|
|
1275
|
+
style: re(e.value)
|
|
1279
1276
|
},
|
|
1280
1277
|
[
|
|
1281
1278
|
A(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
1282
|
-
|
|
1279
|
+
t.value === "iksig" ? (T(), E(
|
|
1283
1280
|
"i",
|
|
1284
1281
|
{
|
|
1285
1282
|
key: 0,
|
|
1286
|
-
class:
|
|
1287
|
-
style: re(
|
|
1283
|
+
class: Z(`iksig ${r.value.name}`),
|
|
1284
|
+
style: re(e.value)
|
|
1288
1285
|
},
|
|
1289
1286
|
null,
|
|
1290
1287
|
6
|
|
1291
1288
|
/* CLASS, STYLE */
|
|
1292
|
-
)) :
|
|
1289
|
+
)) : t.value === "svg" ? (T(), E("svg", ns, [
|
|
1293
1290
|
S("use", {
|
|
1294
|
-
"xlink:href": `#${
|
|
1291
|
+
"xlink:href": `#${r.value.name}`
|
|
1295
1292
|
}, null, 8, rs)
|
|
1296
|
-
])) :
|
|
1293
|
+
])) : t.value === "img" ? (T(), E("img", {
|
|
1297
1294
|
key: 2,
|
|
1298
|
-
src:
|
|
1295
|
+
src: r.value.name,
|
|
1299
1296
|
class: "h-[1em] w-[1em]"
|
|
1300
1297
|
}, null, 8, ss)) : (T(), E(
|
|
1301
1298
|
"i",
|
|
1302
1299
|
{
|
|
1303
1300
|
key: 3,
|
|
1304
|
-
class:
|
|
1305
|
-
style: re(
|
|
1301
|
+
class: Z(r.value.name),
|
|
1302
|
+
style: re(e.value)
|
|
1306
1303
|
},
|
|
1307
1304
|
null,
|
|
1308
1305
|
6
|
|
@@ -1311,55 +1308,54 @@ const ts = Ie(es), is = {
|
|
|
1311
1308
|
],
|
|
1312
1309
|
6
|
|
1313
1310
|
/* CLASS, STYLE */
|
|
1314
|
-
)) : (T(), ke(
|
|
1311
|
+
)) : (T(), ke(s, {
|
|
1315
1312
|
key: 1,
|
|
1316
|
-
content:
|
|
1313
|
+
content: r.value.title,
|
|
1317
1314
|
placement: "top"
|
|
1318
1315
|
}, {
|
|
1319
1316
|
default: pe(() => [
|
|
1320
1317
|
S(
|
|
1321
1318
|
"i",
|
|
1322
1319
|
{
|
|
1323
|
-
class:
|
|
1324
|
-
[
|
|
1325
|
-
"show-bg":
|
|
1326
|
-
default:
|
|
1327
|
-
small:
|
|
1328
|
-
big:
|
|
1329
|
-
warning:
|
|
1330
|
-
primary:
|
|
1331
|
-
success:
|
|
1332
|
-
error:
|
|
1333
|
-
active:
|
|
1320
|
+
class: Z(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1321
|
+
[i.name]: t.value === "unocss",
|
|
1322
|
+
"show-bg": r.value.showBg || r.value.bg,
|
|
1323
|
+
default: r.value.size === "default",
|
|
1324
|
+
small: r.value.size === "small",
|
|
1325
|
+
big: r.value.size === "big",
|
|
1326
|
+
warning: r.value.warning || r.value.type === "warning",
|
|
1327
|
+
primary: i.primary || r.value.type === "primary",
|
|
1328
|
+
success: i.success || r.value.type === "success",
|
|
1329
|
+
error: r.value.error || r.value.type === "error",
|
|
1330
|
+
active: r.value.active
|
|
1334
1331
|
}]),
|
|
1335
|
-
|
|
1336
|
-
style: re(i.value)
|
|
1332
|
+
style: re(e.value)
|
|
1337
1333
|
},
|
|
1338
1334
|
[
|
|
1339
|
-
|
|
1335
|
+
t.value === "iksig" ? (T(), E(
|
|
1340
1336
|
"i",
|
|
1341
1337
|
{
|
|
1342
1338
|
key: 0,
|
|
1343
|
-
class:
|
|
1344
|
-
style: re(
|
|
1339
|
+
class: Z(`iksig ${r.value.name}`),
|
|
1340
|
+
style: re(e.value)
|
|
1345
1341
|
},
|
|
1346
1342
|
null,
|
|
1347
1343
|
6
|
|
1348
1344
|
/* CLASS, STYLE */
|
|
1349
|
-
)) :
|
|
1345
|
+
)) : t.value === "svg" ? (T(), E("svg", os, [
|
|
1350
1346
|
S("use", {
|
|
1351
|
-
"xlink:href": `#${
|
|
1347
|
+
"xlink:href": `#${r.value.name}`
|
|
1352
1348
|
}, null, 8, as)
|
|
1353
|
-
])) :
|
|
1349
|
+
])) : t.value === "img" ? (T(), E("img", {
|
|
1354
1350
|
key: 2,
|
|
1355
|
-
src:
|
|
1351
|
+
src: r.value.name,
|
|
1356
1352
|
class: "h-[1em] w-[1em]"
|
|
1357
1353
|
}, null, 8, ls)) : (T(), E(
|
|
1358
1354
|
"i",
|
|
1359
1355
|
{
|
|
1360
1356
|
key: 3,
|
|
1361
|
-
class:
|
|
1362
|
-
style: re(
|
|
1357
|
+
class: Z(r.value.name),
|
|
1358
|
+
style: re(e.value)
|
|
1363
1359
|
},
|
|
1364
1360
|
null,
|
|
1365
1361
|
6
|
|
@@ -1373,14 +1369,13 @@ const ts = Ie(es), is = {
|
|
|
1373
1369
|
_: 1
|
|
1374
1370
|
/* STABLE */
|
|
1375
1371
|
}, 8, ["content"]))
|
|
1376
|
-
])) : (T(), ke(
|
|
1372
|
+
])) : (T(), ke(l, {
|
|
1377
1373
|
key: 1,
|
|
1378
|
-
type: ["warning", "error"].includes(
|
|
1379
|
-
onClick: it(s, ["stop"])
|
|
1374
|
+
type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
|
|
1380
1375
|
}, {
|
|
1381
1376
|
default: pe(() => [
|
|
1382
1377
|
Me(
|
|
1383
|
-
$(
|
|
1378
|
+
$(r.value.title),
|
|
1384
1379
|
1
|
|
1385
1380
|
/* TEXT */
|
|
1386
1381
|
)
|
|
@@ -1391,10 +1386,7 @@ const ts = Ie(es), is = {
|
|
|
1391
1386
|
};
|
|
1392
1387
|
}
|
|
1393
1388
|
});
|
|
1394
|
-
const cs = /* @__PURE__ */
|
|
1395
|
-
key: 0,
|
|
1396
|
-
class: "exit-main-page-maximize"
|
|
1397
|
-
}, hs = /* @__PURE__ */ ue({
|
|
1389
|
+
const cs = /* @__PURE__ */ nt(us, [["__scopeId", "data-v-52806adf"]]), Ye = Ie(cs), fs = /* @__PURE__ */ ue({
|
|
1398
1390
|
__name: "CloseIcon",
|
|
1399
1391
|
props: {
|
|
1400
1392
|
showBg: {
|
|
@@ -1407,27 +1399,17 @@ const cs = /* @__PURE__ */ rt(us, [["__scopeId", "data-v-4a1004b9"]]), Ne = Ie(c
|
|
|
1407
1399
|
}
|
|
1408
1400
|
},
|
|
1409
1401
|
setup(a) {
|
|
1410
|
-
return (o, r) => (T(),
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
error: ""
|
|
1417
|
-
})
|
|
1418
|
-
])) : (T(), ke(j(Ne), {
|
|
1419
|
-
key: 1,
|
|
1420
|
-
error: "",
|
|
1421
|
-
name: "iksvg_guanbidanchuang",
|
|
1422
|
-
title: "关闭",
|
|
1423
|
-
size: 20
|
|
1424
|
-
}))
|
|
1425
|
-
]));
|
|
1402
|
+
return (o, r) => (T(), ke(j(Ye), {
|
|
1403
|
+
error: "",
|
|
1404
|
+
name: "iksvg_guanbidanchuang",
|
|
1405
|
+
title: "关闭",
|
|
1406
|
+
size: 20
|
|
1407
|
+
}));
|
|
1426
1408
|
}
|
|
1427
1409
|
});
|
|
1428
|
-
const
|
|
1410
|
+
const hs = /* @__PURE__ */ nt(fs, [["__scopeId", "data-v-e27fb022"]]), ds = { class: "base-header" }, gs = /* @__PURE__ */ ue({
|
|
1429
1411
|
__name: "IkBaseDialog",
|
|
1430
|
-
props: /* @__PURE__ */
|
|
1412
|
+
props: /* @__PURE__ */ ct({
|
|
1431
1413
|
title: { default: "" },
|
|
1432
1414
|
cancelText: { default: "取消" },
|
|
1433
1415
|
confirmText: { default: "确认" },
|
|
@@ -1446,11 +1428,11 @@ const ds = /* @__PURE__ */ rt(hs, [["__scopeId", "data-v-79f49df8"]]), gs = { cl
|
|
|
1446
1428
|
}),
|
|
1447
1429
|
emits: ["update:modelValue"],
|
|
1448
1430
|
setup(a) {
|
|
1449
|
-
const o = a, r =
|
|
1431
|
+
const o = a, r = Yt(a, "modelValue"), t = qe(o.fullscreen), e = () => {
|
|
1450
1432
|
t.value = !t.value;
|
|
1451
1433
|
}, i = ue({
|
|
1452
1434
|
setup() {
|
|
1453
|
-
return () => Tn(
|
|
1435
|
+
return () => Tn(hs, {
|
|
1454
1436
|
showBg: o.showCloseBg,
|
|
1455
1437
|
fullscreen: o.fullscreen
|
|
1456
1438
|
});
|
|
@@ -1477,7 +1459,7 @@ const ds = /* @__PURE__ */ rt(hs, [["__scopeId", "data-v-79f49df8"]]), gs = { cl
|
|
|
1477
1459
|
])
|
|
1478
1460
|
]),
|
|
1479
1461
|
header: pe(() => [
|
|
1480
|
-
S("div",
|
|
1462
|
+
S("div", ds, [
|
|
1481
1463
|
Fe(n.$slots, "header", {}, () => [
|
|
1482
1464
|
Me(
|
|
1483
1465
|
$(n.title),
|
|
@@ -1486,7 +1468,7 @@ const ds = /* @__PURE__ */ rt(hs, [["__scopeId", "data-v-79f49df8"]]), gs = { cl
|
|
|
1486
1468
|
)
|
|
1487
1469
|
])
|
|
1488
1470
|
]),
|
|
1489
|
-
n.$attrs.showClose ? (T(), ke(j(
|
|
1471
|
+
n.$attrs.showClose ? (T(), ke(j(Ye), {
|
|
1490
1472
|
key: 0,
|
|
1491
1473
|
onClick: e,
|
|
1492
1474
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
@@ -1511,12 +1493,12 @@ const ds = /* @__PURE__ */ rt(hs, [["__scopeId", "data-v-79f49df8"]]), gs = { cl
|
|
|
1511
1493
|
};
|
|
1512
1494
|
}
|
|
1513
1495
|
});
|
|
1514
|
-
const
|
|
1515
|
-
var
|
|
1516
|
-
function
|
|
1496
|
+
const ps = Ie(gs);
|
|
1497
|
+
var vs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1498
|
+
function Jt(a) {
|
|
1517
1499
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1518
1500
|
}
|
|
1519
|
-
function
|
|
1501
|
+
function ms(a, o, r, t) {
|
|
1520
1502
|
function e(i) {
|
|
1521
1503
|
return i instanceof r ? i : new r(function(n) {
|
|
1522
1504
|
n(i);
|
|
@@ -1543,7 +1525,7 @@ function ys(a, o, r, t) {
|
|
|
1543
1525
|
u((t = t.apply(a, o || [])).next());
|
|
1544
1526
|
});
|
|
1545
1527
|
}
|
|
1546
|
-
function
|
|
1528
|
+
function ys(a, o) {
|
|
1547
1529
|
var r = { label: 0, sent: function() {
|
|
1548
1530
|
if (i[0] & 1)
|
|
1549
1531
|
throw i[1];
|
|
@@ -1608,9 +1590,9 @@ function _s(a, o) {
|
|
|
1608
1590
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
1609
1591
|
}
|
|
1610
1592
|
}
|
|
1611
|
-
var
|
|
1612
|
-
return
|
|
1613
|
-
return
|
|
1593
|
+
var _s = function(a, o) {
|
|
1594
|
+
return ms(void 0, void 0, void 0, function() {
|
|
1595
|
+
return ys(this, function(r) {
|
|
1614
1596
|
return [2, new Promise(function(t, e) {
|
|
1615
1597
|
try {
|
|
1616
1598
|
if (window.DocsAPI)
|
|
@@ -1643,7 +1625,7 @@ var ks = function(a, o) {
|
|
|
1643
1625
|
}, e.onerror = function(i) {
|
|
1644
1626
|
e.removeAttribute("loading"), t(i);
|
|
1645
1627
|
}, e.setAttribute("loading", ""), e;
|
|
1646
|
-
},
|
|
1628
|
+
}, Zt = ue({
|
|
1647
1629
|
name: "DocumentEditor",
|
|
1648
1630
|
props: {
|
|
1649
1631
|
id: {
|
|
@@ -1698,7 +1680,7 @@ var ks = function(a, o) {
|
|
|
1698
1680
|
var a = this, o = this.documentServerUrl;
|
|
1699
1681
|
o.endsWith("/") || (o += "/");
|
|
1700
1682
|
var r = "".concat(o, "web-apps/apps/api/documents/api.js");
|
|
1701
|
-
|
|
1683
|
+
_s(r, "onlyoffice-api-script").then(function() {
|
|
1702
1684
|
return a.onLoad();
|
|
1703
1685
|
}).catch(function() {
|
|
1704
1686
|
a.onError(-2);
|
|
@@ -1812,13 +1794,13 @@ var ks = function(a, o) {
|
|
|
1812
1794
|
}
|
|
1813
1795
|
}
|
|
1814
1796
|
});
|
|
1815
|
-
const
|
|
1816
|
-
function
|
|
1817
|
-
return T(), E("div", { id: a.id }, null, 8,
|
|
1797
|
+
const ks = ["id"];
|
|
1798
|
+
function Cs(a, o, r, t, e, i) {
|
|
1799
|
+
return T(), E("div", { id: a.id }, null, 8, ks);
|
|
1818
1800
|
}
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
const
|
|
1801
|
+
Zt.render = Cs;
|
|
1802
|
+
Zt.__file = "src/components/DocumentEditor.vue";
|
|
1803
|
+
const bs = /* @__PURE__ */ ue({
|
|
1822
1804
|
__name: "IkOnlyOffice",
|
|
1823
1805
|
props: {
|
|
1824
1806
|
// 文件服务器的服务的地址
|
|
@@ -1853,7 +1835,7 @@ const ws = /* @__PURE__ */ ue({
|
|
|
1853
1835
|
style: re({ height: o.officeHeight })
|
|
1854
1836
|
},
|
|
1855
1837
|
[
|
|
1856
|
-
|
|
1838
|
+
Q(j(Zt), {
|
|
1857
1839
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1858
1840
|
ref: "editorRef",
|
|
1859
1841
|
"document-server-url": a.documentServerUrl,
|
|
@@ -1866,7 +1848,7 @@ const ws = /* @__PURE__ */ ue({
|
|
|
1866
1848
|
));
|
|
1867
1849
|
}
|
|
1868
1850
|
});
|
|
1869
|
-
const
|
|
1851
|
+
const ws = /* @__PURE__ */ nt(bs, [["__scopeId", "data-v-98d51ef9"]]), Ts = Ie(ws);
|
|
1870
1852
|
function pi(a, o) {
|
|
1871
1853
|
var r = Object.keys(a);
|
|
1872
1854
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1930,19 +1912,19 @@ function L(a, o) {
|
|
|
1930
1912
|
}
|
|
1931
1913
|
}), Object.defineProperty(a, "prototype", {
|
|
1932
1914
|
writable: !1
|
|
1933
|
-
}), o &&
|
|
1915
|
+
}), o && Vt(a, o);
|
|
1934
1916
|
}
|
|
1935
1917
|
function O(a) {
|
|
1936
1918
|
return O = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
1937
1919
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
1938
1920
|
}, O(a);
|
|
1939
1921
|
}
|
|
1940
|
-
function
|
|
1941
|
-
return
|
|
1922
|
+
function Vt(a, o) {
|
|
1923
|
+
return Vt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
1942
1924
|
return t.__proto__ = e, t;
|
|
1943
|
-
},
|
|
1925
|
+
}, Vt(a, o);
|
|
1944
1926
|
}
|
|
1945
|
-
function
|
|
1927
|
+
function Es() {
|
|
1946
1928
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1947
1929
|
return !1;
|
|
1948
1930
|
if (typeof Proxy == "function")
|
|
@@ -1959,7 +1941,7 @@ function m(a) {
|
|
|
1959
1941
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1960
1942
|
return a;
|
|
1961
1943
|
}
|
|
1962
|
-
function
|
|
1944
|
+
function Qt(a, o) {
|
|
1963
1945
|
if (o && (typeof o == "object" || typeof o == "function"))
|
|
1964
1946
|
return o;
|
|
1965
1947
|
if (o !== void 0)
|
|
@@ -1967,7 +1949,7 @@ function ei(a, o) {
|
|
|
1967
1949
|
return m(a);
|
|
1968
1950
|
}
|
|
1969
1951
|
function D(a) {
|
|
1970
|
-
var o =
|
|
1952
|
+
var o = Es();
|
|
1971
1953
|
return function() {
|
|
1972
1954
|
var t = O(a), e;
|
|
1973
1955
|
if (o) {
|
|
@@ -1975,17 +1957,17 @@ function D(a) {
|
|
|
1975
1957
|
e = Reflect.construct(t, arguments, i);
|
|
1976
1958
|
} else
|
|
1977
1959
|
e = t.apply(this, arguments);
|
|
1978
|
-
return
|
|
1960
|
+
return Qt(this, e);
|
|
1979
1961
|
};
|
|
1980
1962
|
}
|
|
1981
|
-
function
|
|
1963
|
+
function Ss(a, o) {
|
|
1982
1964
|
for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = O(a), a !== null); )
|
|
1983
1965
|
;
|
|
1984
1966
|
return a;
|
|
1985
1967
|
}
|
|
1986
1968
|
function F() {
|
|
1987
1969
|
return typeof Reflect < "u" && Reflect.get ? F = Reflect.get.bind() : F = function(o, r, t) {
|
|
1988
|
-
var e =
|
|
1970
|
+
var e = Ss(o, r);
|
|
1989
1971
|
if (e) {
|
|
1990
1972
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
1991
1973
|
return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
|
|
@@ -1993,38 +1975,38 @@ function F() {
|
|
|
1993
1975
|
}, F.apply(this, arguments);
|
|
1994
1976
|
}
|
|
1995
1977
|
function fe(a) {
|
|
1996
|
-
return
|
|
1978
|
+
return xs(a) || Is(a) || Ps(a) || As();
|
|
1997
1979
|
}
|
|
1998
|
-
function
|
|
1980
|
+
function xs(a) {
|
|
1999
1981
|
if (Array.isArray(a))
|
|
2000
|
-
return
|
|
1982
|
+
return jt(a);
|
|
2001
1983
|
}
|
|
2002
|
-
function
|
|
1984
|
+
function Is(a) {
|
|
2003
1985
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
2004
1986
|
return Array.from(a);
|
|
2005
1987
|
}
|
|
2006
|
-
function
|
|
1988
|
+
function Ps(a, o) {
|
|
2007
1989
|
if (a) {
|
|
2008
1990
|
if (typeof a == "string")
|
|
2009
|
-
return
|
|
1991
|
+
return jt(a, o);
|
|
2010
1992
|
var r = Object.prototype.toString.call(a).slice(8, -1);
|
|
2011
1993
|
if (r === "Object" && a.constructor && (r = a.constructor.name), r === "Map" || r === "Set")
|
|
2012
1994
|
return Array.from(a);
|
|
2013
1995
|
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
2014
|
-
return
|
|
1996
|
+
return jt(a, o);
|
|
2015
1997
|
}
|
|
2016
1998
|
}
|
|
2017
|
-
function
|
|
1999
|
+
function jt(a, o) {
|
|
2018
2000
|
(o == null || o > a.length) && (o = a.length);
|
|
2019
2001
|
for (var r = 0, t = new Array(o); r < o; r++)
|
|
2020
2002
|
t[r] = a[r];
|
|
2021
2003
|
return t;
|
|
2022
2004
|
}
|
|
2023
|
-
function
|
|
2005
|
+
function As() {
|
|
2024
2006
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2025
2007
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2026
2008
|
}
|
|
2027
|
-
function
|
|
2009
|
+
function Ls(a, o) {
|
|
2028
2010
|
if (typeof a != "object" || a === null)
|
|
2029
2011
|
return a;
|
|
2030
2012
|
var r = a[Symbol.toPrimitive];
|
|
@@ -2037,7 +2019,7 @@ function Ds(a, o) {
|
|
|
2037
2019
|
return (o === "string" ? String : Number)(a);
|
|
2038
2020
|
}
|
|
2039
2021
|
function Ki(a) {
|
|
2040
|
-
var o =
|
|
2022
|
+
var o = Ls(a, "string");
|
|
2041
2023
|
return typeof o == "symbol" ? o : String(o);
|
|
2042
2024
|
}
|
|
2043
2025
|
var Yi = { exports: {} };
|
|
@@ -2152,38 +2134,38 @@ var Yi = { exports: {} };
|
|
|
2152
2134
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, a.exports = s;
|
|
2153
2135
|
})(Yi);
|
|
2154
2136
|
var Xi = Yi.exports;
|
|
2155
|
-
const qi = /* @__PURE__ */
|
|
2156
|
-
var
|
|
2137
|
+
const qi = /* @__PURE__ */ Jt(Xi);
|
|
2138
|
+
var Ds = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, xt = {
|
|
2157
2139
|
info: "color: #525252; background-color: #90ee90;",
|
|
2158
2140
|
error: "color: #525252; background-color: red;",
|
|
2159
2141
|
warn: "color: #525252; background-color: yellow; "
|
|
2160
|
-
},
|
|
2142
|
+
}, It = "%c[xgplayer]", H = {
|
|
2161
2143
|
config: {
|
|
2162
|
-
debug:
|
|
2144
|
+
debug: Ds ? 3 : 0
|
|
2163
2145
|
},
|
|
2164
2146
|
logInfo: function(o) {
|
|
2165
2147
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
2166
2148
|
e[i - 1] = arguments[i];
|
|
2167
|
-
this.config.debug >= 3 && (r = console).log.apply(r, [
|
|
2149
|
+
this.config.debug >= 3 && (r = console).log.apply(r, [It, xt.info, o].concat(e));
|
|
2168
2150
|
},
|
|
2169
2151
|
logWarn: function(o) {
|
|
2170
2152
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
2171
2153
|
e[i - 1] = arguments[i];
|
|
2172
|
-
this.config.debug >= 1 && (r = console).warn.apply(r, [
|
|
2154
|
+
this.config.debug >= 1 && (r = console).warn.apply(r, [It, xt.warn, o].concat(e));
|
|
2173
2155
|
},
|
|
2174
2156
|
logError: function(o) {
|
|
2175
2157
|
var r;
|
|
2176
2158
|
if (!(this.config.debug < 1)) {
|
|
2177
2159
|
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++)
|
|
2178
2160
|
i[n - 1] = arguments[n];
|
|
2179
|
-
(r = console)[t].apply(r, [
|
|
2161
|
+
(r = console)[t].apply(r, [It, xt.error, o].concat(i));
|
|
2180
2162
|
}
|
|
2181
2163
|
}
|
|
2182
2164
|
};
|
|
2183
|
-
function
|
|
2165
|
+
function Os(a) {
|
|
2184
2166
|
a.logInfo = H.logInfo.bind(a), a.logWarn = H.logWarn.bind(a), a.logError = H.logError.bind(a);
|
|
2185
2167
|
}
|
|
2186
|
-
var
|
|
2168
|
+
var Rs = /* @__PURE__ */ function() {
|
|
2187
2169
|
function a(o) {
|
|
2188
2170
|
x(this, a), this.bufferedList = o;
|
|
2189
2171
|
}
|
|
@@ -2429,7 +2411,7 @@ h.setStyleFromCsstext = function(a, o) {
|
|
|
2429
2411
|
a.style[t] = o[t];
|
|
2430
2412
|
});
|
|
2431
2413
|
};
|
|
2432
|
-
function
|
|
2414
|
+
function Fs(a, o) {
|
|
2433
2415
|
for (var r = 0, t = o.length; r < t; r++)
|
|
2434
2416
|
if (a.indexOf(o[r]) > -1)
|
|
2435
2417
|
return !0;
|
|
@@ -2443,7 +2425,7 @@ h.filterStyleFromText = function(a) {
|
|
|
2443
2425
|
return t.map(function(n) {
|
|
2444
2426
|
if (n) {
|
|
2445
2427
|
var s = n.split(":");
|
|
2446
|
-
s.length > 1 && (
|
|
2428
|
+
s.length > 1 && (Fs(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
|
|
2447
2429
|
}
|
|
2448
2430
|
}), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
|
|
2449
2431
|
a.style[n] = i[n];
|
|
@@ -2508,7 +2490,7 @@ h.getBuffered2 = function(a) {
|
|
|
2508
2490
|
}
|
|
2509
2491
|
else
|
|
2510
2492
|
e = r;
|
|
2511
|
-
return new
|
|
2493
|
+
return new Rs(e);
|
|
2512
2494
|
};
|
|
2513
2495
|
h.getEventPos = function(a) {
|
|
2514
2496
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
@@ -2632,7 +2614,7 @@ function Ji(a) {
|
|
|
2632
2614
|
var o = te(a);
|
|
2633
2615
|
return a !== null && (o === "object" || o === "function");
|
|
2634
2616
|
}
|
|
2635
|
-
function
|
|
2617
|
+
function Ms(a, o, r) {
|
|
2636
2618
|
var t, e, i, n, s, l, u = 0, c = !1, f = !1, g = !0, p = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
|
|
2637
2619
|
if (typeof a != "function")
|
|
2638
2620
|
throw new TypeError("Expected a function");
|
|
@@ -2691,21 +2673,21 @@ function Ns(a, o, r) {
|
|
|
2691
2673
|
}
|
|
2692
2674
|
return K.cancel = V, K.flush = R, K.pending = Y, K;
|
|
2693
2675
|
}
|
|
2694
|
-
function
|
|
2676
|
+
function Ns(a, o, r) {
|
|
2695
2677
|
var t = !0, e = !0;
|
|
2696
2678
|
if (typeof a != "function")
|
|
2697
2679
|
throw new TypeError("Expected a function");
|
|
2698
|
-
return Ji(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e),
|
|
2680
|
+
return Ji(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Ms(a, o, {
|
|
2699
2681
|
leading: t,
|
|
2700
2682
|
trailing: e,
|
|
2701
2683
|
maxWait: o
|
|
2702
2684
|
});
|
|
2703
2685
|
}
|
|
2704
|
-
function
|
|
2686
|
+
function Bs() {
|
|
2705
2687
|
var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
|
|
2706
2688
|
return a === "zh-cn" && (a = "zh"), a;
|
|
2707
2689
|
}
|
|
2708
|
-
function
|
|
2690
|
+
function Hs(a, o, r) {
|
|
2709
2691
|
if (a) {
|
|
2710
2692
|
var t = a.getAttribute(r);
|
|
2711
2693
|
return !!(t && t === o && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
|
|
@@ -2714,7 +2696,7 @@ function Us(a, o, r) {
|
|
|
2714
2696
|
var mi = {
|
|
2715
2697
|
android: /(Android)\s([\d.]+)/,
|
|
2716
2698
|
ios: /(Version)\/([\d.]+)/
|
|
2717
|
-
},
|
|
2699
|
+
}, Us = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], N = {
|
|
2718
2700
|
get device() {
|
|
2719
2701
|
var a = N.os;
|
|
2720
2702
|
return a.isPc ? "pc" : "mobile";
|
|
@@ -2777,7 +2759,7 @@ var mi = {
|
|
|
2777
2759
|
if (this.supportResult)
|
|
2778
2760
|
return this.supportResult;
|
|
2779
2761
|
var r = document.createElement("video");
|
|
2780
|
-
return typeof r.canPlayType == "function" &&
|
|
2762
|
+
return typeof r.canPlayType == "function" && Us.map(function(t) {
|
|
2781
2763
|
r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (o.isSupport = !0, o.mime += "||".concat(t));
|
|
2782
2764
|
}), this.supportResult = o, r = null, o;
|
|
2783
2765
|
},
|
|
@@ -2816,7 +2798,7 @@ var mi = {
|
|
|
2816
2798
|
return Promise.resolve(r);
|
|
2817
2799
|
}
|
|
2818
2800
|
}
|
|
2819
|
-
},
|
|
2801
|
+
}, Wt = "3.0.18", yi = {
|
|
2820
2802
|
1: "media",
|
|
2821
2803
|
2: "media",
|
|
2822
2804
|
3: "media",
|
|
@@ -2830,7 +2812,7 @@ var mi = {
|
|
|
2830
2812
|
4: 5104,
|
|
2831
2813
|
5: 5105,
|
|
2832
2814
|
6: 5106
|
|
2833
|
-
},
|
|
2815
|
+
}, ht = /* @__PURE__ */ I(
|
|
2834
2816
|
function a(o) {
|
|
2835
2817
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2836
2818
|
errorType: "",
|
|
@@ -2846,7 +2828,7 @@ var mi = {
|
|
|
2846
2828
|
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;
|
|
2847
2829
|
_i[p] && (p = _i[p]);
|
|
2848
2830
|
var d = {
|
|
2849
|
-
playerVersion:
|
|
2831
|
+
playerVersion: Wt,
|
|
2850
2832
|
currentTime: n,
|
|
2851
2833
|
duration: i,
|
|
2852
2834
|
ended: s,
|
|
@@ -2865,85 +2847,85 @@ var mi = {
|
|
|
2865
2847
|
}), d;
|
|
2866
2848
|
} else if (arguments.length > 1) {
|
|
2867
2849
|
for (var v = {
|
|
2868
|
-
playerVersion:
|
|
2850
|
+
playerVersion: Wt,
|
|
2869
2851
|
domain: document.domain
|
|
2870
2852
|
}, y = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], k = 0; k < arguments.length; k++)
|
|
2871
2853
|
v[y[k]] = arguments[k];
|
|
2872
2854
|
return v.ex = t ? (t[arguments[0]] || {}).msg : "", v;
|
|
2873
2855
|
}
|
|
2874
2856
|
}
|
|
2875
|
-
), ae = "play",
|
|
2857
|
+
), ae = "play", ei = "playing", Be = "ended", Ze = "pause", rt = "error", bt = "seeking", _e = "seeked", oe = "timeupdate", st = "waiting", ye = "canplay", zs = "canplaythrough", Pe = "durationchange", Zi = "volumechange", Ce = "loadeddata", Vs = "loadedmetadata", Qi = "ratechange", en = "progress", ti = "loadstart", He = "emptied", js = "stalled", Ws = "suspend", $s = "abort", Gs = "bufferedChange", ii = "focus", tn = "blur", ni = "ready", nn = "urlNull", Ne = "autoplay_started", ri = "autoplay_was_prevented", wt = "complete", dt = "replay", si = "destroy", Tt = "urlchange", $t = "download_speed_change", rn = "leaveplayer", sn = "enterplayer", on = "loading", ve = "fullscreen_change", gt = "cssFullscreen_change", pt = "mini_state_change", oi = "definition_change", Ks = "before_definition_change", Gt = "after_definition_change", Ys = "SEI_PARSED", Xs = "retry", Se = "video_resize", Kt = "pip_change", an = "rotate", ln = "screenShot", vt = "playnext", un = "shortcut", cn = "xglog", mt = "user_action", Et = "reset", fn = "source_error", hn = "source_success", qs = "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 = {
|
|
2876
2858
|
STATS_INFO: "stats_info",
|
|
2877
2859
|
STATS_DOWNLOAD: "stats_download",
|
|
2878
2860
|
STATS_RESET: "stats_reset"
|
|
2879
2861
|
}, pn = "fps_stuck";
|
|
2880
|
-
const
|
|
2862
|
+
const Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2881
2863
|
__proto__: null,
|
|
2882
|
-
ABORT:
|
|
2883
|
-
AFTER_DEFINITION_CHANGE:
|
|
2884
|
-
AUTOPLAY_PREVENTED:
|
|
2885
|
-
AUTOPLAY_STARTED:
|
|
2886
|
-
BEFORE_DEFINITION_CHANGE:
|
|
2887
|
-
BUFFER_CHANGE:
|
|
2864
|
+
ABORT: $s,
|
|
2865
|
+
AFTER_DEFINITION_CHANGE: Gt,
|
|
2866
|
+
AUTOPLAY_PREVENTED: ri,
|
|
2867
|
+
AUTOPLAY_STARTED: Ne,
|
|
2868
|
+
BEFORE_DEFINITION_CHANGE: Ks,
|
|
2869
|
+
BUFFER_CHANGE: Gs,
|
|
2888
2870
|
CANPLAY: ye,
|
|
2889
|
-
CANPLAY_THROUGH:
|
|
2890
|
-
COMPLETE:
|
|
2891
|
-
CSS_FULLSCREEN_CHANGE:
|
|
2892
|
-
DEFINITION_CHANGE:
|
|
2893
|
-
DESTROY:
|
|
2894
|
-
DOWNLOAD_SPEED_CHANGE:
|
|
2871
|
+
CANPLAY_THROUGH: zs,
|
|
2872
|
+
COMPLETE: wt,
|
|
2873
|
+
CSS_FULLSCREEN_CHANGE: gt,
|
|
2874
|
+
DEFINITION_CHANGE: oi,
|
|
2875
|
+
DESTROY: si,
|
|
2876
|
+
DOWNLOAD_SPEED_CHANGE: $t,
|
|
2895
2877
|
DURATION_CHANGE: Pe,
|
|
2896
|
-
EMPTIED:
|
|
2897
|
-
ENDED:
|
|
2878
|
+
EMPTIED: He,
|
|
2879
|
+
ENDED: Be,
|
|
2898
2880
|
ENTER_PLAYER: sn,
|
|
2899
|
-
ERROR:
|
|
2881
|
+
ERROR: rt,
|
|
2900
2882
|
FPS_STUCK: pn,
|
|
2901
2883
|
FULLSCREEN_CHANGE: ve,
|
|
2902
2884
|
LEAVE_PLAYER: rn,
|
|
2903
2885
|
LOADED_DATA: Ce,
|
|
2904
|
-
LOADED_METADATA:
|
|
2886
|
+
LOADED_METADATA: Vs,
|
|
2905
2887
|
LOADING: on,
|
|
2906
|
-
LOAD_START:
|
|
2907
|
-
MINI_STATE_CHANGE:
|
|
2888
|
+
LOAD_START: ti,
|
|
2889
|
+
MINI_STATE_CHANGE: pt,
|
|
2908
2890
|
PAUSE: Ze,
|
|
2909
|
-
PIP_CHANGE:
|
|
2891
|
+
PIP_CHANGE: Kt,
|
|
2910
2892
|
PLAY: ae,
|
|
2911
2893
|
PLAYER_BLUR: tn,
|
|
2912
|
-
PLAYER_FOCUS:
|
|
2913
|
-
PLAYING:
|
|
2914
|
-
PLAYNEXT:
|
|
2894
|
+
PLAYER_FOCUS: ii,
|
|
2895
|
+
PLAYING: ei,
|
|
2896
|
+
PLAYNEXT: vt,
|
|
2915
2897
|
PROGRESS: en,
|
|
2916
2898
|
RATE_CHANGE: Qi,
|
|
2917
|
-
READY:
|
|
2918
|
-
REPLAY:
|
|
2919
|
-
RESET:
|
|
2920
|
-
RETRY:
|
|
2899
|
+
READY: ni,
|
|
2900
|
+
REPLAY: dt,
|
|
2901
|
+
RESET: Et,
|
|
2902
|
+
RETRY: Xs,
|
|
2921
2903
|
ROTATE: an,
|
|
2922
2904
|
SCREEN_SHOT: ln,
|
|
2923
2905
|
SEEKED: _e,
|
|
2924
|
-
SEEKING:
|
|
2925
|
-
SEI_PARSED:
|
|
2906
|
+
SEEKING: bt,
|
|
2907
|
+
SEI_PARSED: Ys,
|
|
2926
2908
|
SHORTCUT: un,
|
|
2927
2909
|
SOURCE_ERROR: fn,
|
|
2928
2910
|
SOURCE_SUCCESS: hn,
|
|
2929
|
-
STALLED:
|
|
2911
|
+
STALLED: js,
|
|
2930
2912
|
STATS_EVENTS: gn,
|
|
2931
|
-
SUSPEND:
|
|
2932
|
-
SWITCH_SUBTITLE:
|
|
2913
|
+
SUSPEND: Ws,
|
|
2914
|
+
SWITCH_SUBTITLE: qs,
|
|
2933
2915
|
TIME_UPDATE: oe,
|
|
2934
|
-
URL_CHANGE:
|
|
2916
|
+
URL_CHANGE: Tt,
|
|
2935
2917
|
URL_NULL: nn,
|
|
2936
|
-
USER_ACTION:
|
|
2918
|
+
USER_ACTION: mt,
|
|
2937
2919
|
VIDEO_EVENTS: dn,
|
|
2938
2920
|
VIDEO_RESIZE: Se,
|
|
2939
2921
|
VOLUME_CHANGE: Zi,
|
|
2940
|
-
WAITING:
|
|
2922
|
+
WAITING: st,
|
|
2941
2923
|
XGLOG: cn
|
|
2942
2924
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2943
|
-
function
|
|
2925
|
+
function Pt(a, o) {
|
|
2944
2926
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
|
|
2945
2927
|
}
|
|
2946
|
-
function
|
|
2928
|
+
function Zs(a, o) {
|
|
2947
2929
|
return function(r, t) {
|
|
2948
2930
|
var e = {
|
|
2949
2931
|
player: o,
|
|
@@ -2968,17 +2950,17 @@ function Qs(a, o) {
|
|
|
2968
2950
|
o._rate = o.media && o.media.playbackRate;
|
|
2969
2951
|
}
|
|
2970
2952
|
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]) {
|
|
2971
|
-
var n =
|
|
2953
|
+
var n = Pt.bind(o, a, e);
|
|
2972
2954
|
try {
|
|
2973
2955
|
o.mediaEventMiddleware[a].call(o, e, n);
|
|
2974
2956
|
} catch (s) {
|
|
2975
|
-
throw
|
|
2957
|
+
throw Pt.call(o, a, e), s;
|
|
2976
2958
|
}
|
|
2977
2959
|
} else
|
|
2978
|
-
|
|
2960
|
+
Pt.call(o, a, e);
|
|
2979
2961
|
};
|
|
2980
2962
|
}
|
|
2981
|
-
var
|
|
2963
|
+
var Qs = /* @__PURE__ */ function(a) {
|
|
2982
2964
|
L(r, a);
|
|
2983
2965
|
var o = D(r);
|
|
2984
2966
|
function r(t) {
|
|
@@ -3022,7 +3004,7 @@ var eo = /* @__PURE__ */ function(a) {
|
|
|
3022
3004
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
3023
3005
|
this._evHandlers || (this._evHandlers = dn.map(function(n) {
|
|
3024
3006
|
var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
3025
|
-
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n,
|
|
3007
|
+
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, Zs(n, e));
|
|
3026
3008
|
})), this._evHandlers.forEach(function(n) {
|
|
3027
3009
|
var s = Object.keys(n)[0];
|
|
3028
3010
|
i.addEventListener(s, n[s], !1);
|
|
@@ -3074,7 +3056,7 @@ var eo = /* @__PURE__ */ function(a) {
|
|
|
3074
3056
|
l ? l.error(f, p) : n.errorHandler("error", p);
|
|
3075
3057
|
}
|
|
3076
3058
|
var d = yi[4];
|
|
3077
|
-
n.emit(fn, new
|
|
3059
|
+
n.emit(fn, new ht(n, {
|
|
3078
3060
|
errorType: d,
|
|
3079
3061
|
errorCode: 4,
|
|
3080
3062
|
errorMessage: "sources_load_error",
|
|
@@ -3111,7 +3093,7 @@ var eo = /* @__PURE__ */ function(a) {
|
|
|
3111
3093
|
this.media.currentSrc || (l = "empty_src", n = {
|
|
3112
3094
|
code: 6,
|
|
3113
3095
|
message: l
|
|
3114
|
-
}), this.emit(e, new
|
|
3096
|
+
}), this.emit(e, new ht(this, {
|
|
3115
3097
|
errorType: s,
|
|
3116
3098
|
errorCode: n.code,
|
|
3117
3099
|
errorMessage: n.message || "",
|
|
@@ -3332,7 +3314,7 @@ var eo = /* @__PURE__ */ function(a) {
|
|
|
3332
3314
|
},
|
|
3333
3315
|
set: function(e) {
|
|
3334
3316
|
if (this.media) {
|
|
3335
|
-
if (this.emit(
|
|
3317
|
+
if (this.emit(Tt, e), this.emit(st), this._currentTime = 0, this._duration = 0, h.isMSE(this.media)) {
|
|
3336
3318
|
this.onWaiting();
|
|
3337
3319
|
return;
|
|
3338
3320
|
}
|
|
@@ -3396,7 +3378,7 @@ var eo = /* @__PURE__ */ function(a) {
|
|
|
3396
3378
|
F(O(r.prototype), "removeAllListeners", this).call(this);
|
|
3397
3379
|
}
|
|
3398
3380
|
}]), r;
|
|
3399
|
-
}(qi),
|
|
3381
|
+
}(qi), eo = /* @__PURE__ */ function() {
|
|
3400
3382
|
function a() {
|
|
3401
3383
|
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
3402
3384
|
name: "xgplayer",
|
|
@@ -3475,7 +3457,7 @@ var eo = /* @__PURE__ */ function(a) {
|
|
|
3475
3457
|
}
|
|
3476
3458
|
}]), a;
|
|
3477
3459
|
}(), ki = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Ci = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], bi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Oe = "data-xgplayerid";
|
|
3478
|
-
function
|
|
3460
|
+
function ot(a, o, r) {
|
|
3479
3461
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
3480
3462
|
e[i - 3] = arguments[i];
|
|
3481
3463
|
var n = o.call.apply(o, [a].concat(e));
|
|
@@ -3485,7 +3467,7 @@ function at(a, o, r) {
|
|
|
3485
3467
|
r.call.apply(r, [a].concat(l));
|
|
3486
3468
|
}) : r.call.apply(r, [a].concat(e)));
|
|
3487
3469
|
}
|
|
3488
|
-
function
|
|
3470
|
+
function yt(a, o) {
|
|
3489
3471
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
3490
3472
|
pre: null,
|
|
3491
3473
|
next: null
|
|
@@ -3503,23 +3485,23 @@ function _t(a, o) {
|
|
|
3503
3485
|
try {
|
|
3504
3486
|
var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
|
|
3505
3487
|
s ? s.then ? s.then(function(l) {
|
|
3506
|
-
l !== !1 &&
|
|
3488
|
+
l !== !1 && ot.apply(void 0, [e, o, r.next].concat(fe(t)));
|
|
3507
3489
|
}).catch(function(l) {
|
|
3508
3490
|
throw l;
|
|
3509
|
-
}) :
|
|
3491
|
+
}) : ot.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && ot.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
3510
3492
|
} catch (l) {
|
|
3511
3493
|
throw l.message = "[pluginName: ".concat(this.pluginName, ":").concat(a, "] >> ").concat(l.message), l;
|
|
3512
3494
|
}
|
|
3513
3495
|
else
|
|
3514
|
-
|
|
3496
|
+
ot.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
3515
3497
|
}).bind(this);
|
|
3516
3498
|
}
|
|
3517
|
-
function
|
|
3499
|
+
function _t(a, o) {
|
|
3518
3500
|
var r = this.__hooks;
|
|
3519
3501
|
if (r)
|
|
3520
3502
|
return r.hasOwnProperty(a) ? (r && (r[a] = o), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
|
|
3521
3503
|
}
|
|
3522
|
-
function
|
|
3504
|
+
function kt(a, o) {
|
|
3523
3505
|
var r = this.__hooks;
|
|
3524
3506
|
r && delete r[a];
|
|
3525
3507
|
}
|
|
@@ -3572,7 +3554,7 @@ function me(a, o, r) {
|
|
|
3572
3554
|
} else
|
|
3573
3555
|
return r.call.apply(r, [a, a].concat(e));
|
|
3574
3556
|
}
|
|
3575
|
-
function
|
|
3557
|
+
function At(a, o) {
|
|
3576
3558
|
H.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
|
|
3577
3559
|
}
|
|
3578
3560
|
var xe = /* @__PURE__ */ function() {
|
|
@@ -3639,7 +3621,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
3639
3621
|
value: function(r, t) {
|
|
3640
3622
|
var e = this;
|
|
3641
3623
|
if (!r || !t || !this.player) {
|
|
3642
|
-
|
|
3624
|
+
At(this.pluginName, "plugin.on(event, callback)");
|
|
3643
3625
|
return;
|
|
3644
3626
|
}
|
|
3645
3627
|
typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3651,7 +3633,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
3651
3633
|
value: function(r, t) {
|
|
3652
3634
|
var e = this;
|
|
3653
3635
|
if (!r || !t || !this.player) {
|
|
3654
|
-
|
|
3636
|
+
At(this.pluginName, "plugin.once(event, callback)");
|
|
3655
3637
|
return;
|
|
3656
3638
|
}
|
|
3657
3639
|
typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3663,7 +3645,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
3663
3645
|
value: function(r, t) {
|
|
3664
3646
|
var e = this;
|
|
3665
3647
|
if (!r || !t || !this.player) {
|
|
3666
|
-
|
|
3648
|
+
At(this.pluginName, "plugin.off(event, callback)");
|
|
3667
3649
|
return;
|
|
3668
3650
|
}
|
|
3669
3651
|
typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3704,21 +3686,21 @@ var xe = /* @__PURE__ */ function() {
|
|
|
3704
3686
|
}, {
|
|
3705
3687
|
key: "hook",
|
|
3706
3688
|
value: function(r, t) {
|
|
3707
|
-
return
|
|
3689
|
+
return yt.call.apply(yt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3708
3690
|
}
|
|
3709
3691
|
}, {
|
|
3710
3692
|
key: "useHooks",
|
|
3711
3693
|
value: function(r, t) {
|
|
3712
3694
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
3713
3695
|
i[n - 2] = arguments[n];
|
|
3714
|
-
return
|
|
3696
|
+
return _t.call.apply(_t, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3715
3697
|
}
|
|
3716
3698
|
}, {
|
|
3717
3699
|
key: "removeHooks",
|
|
3718
3700
|
value: function(r, t) {
|
|
3719
3701
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
3720
3702
|
i[n - 2] = arguments[n];
|
|
3721
|
-
return
|
|
3703
|
+
return kt.call.apply(kt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3722
3704
|
}
|
|
3723
3705
|
}, {
|
|
3724
3706
|
key: "registerPlugin",
|
|
@@ -3760,40 +3742,40 @@ var xe = /* @__PURE__ */ function() {
|
|
|
3760
3742
|
return "pluginName";
|
|
3761
3743
|
}
|
|
3762
3744
|
}]), a;
|
|
3763
|
-
}(),
|
|
3745
|
+
}(), to = 9;
|
|
3764
3746
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
3765
|
-
var
|
|
3766
|
-
|
|
3747
|
+
var ze = Element.prototype;
|
|
3748
|
+
ze.matches = ze.matchesSelector || ze.mozMatchesSelector || ze.msMatchesSelector || ze.oMatchesSelector || ze.webkitMatchesSelector;
|
|
3767
3749
|
}
|
|
3768
|
-
function
|
|
3769
|
-
for (; a && a.nodeType !==
|
|
3750
|
+
function io(a, o) {
|
|
3751
|
+
for (; a && a.nodeType !== to; ) {
|
|
3770
3752
|
if (typeof a.matches == "function" && a.matches(o))
|
|
3771
3753
|
return a;
|
|
3772
3754
|
a = a.parentNode;
|
|
3773
3755
|
}
|
|
3774
3756
|
}
|
|
3775
|
-
var
|
|
3776
|
-
function
|
|
3777
|
-
var i =
|
|
3757
|
+
var no = io, ro = no;
|
|
3758
|
+
function Lt(a, o, r, t, e) {
|
|
3759
|
+
var i = oo.apply(this, arguments);
|
|
3778
3760
|
return a.addEventListener(r, i, e), {
|
|
3779
3761
|
destroy: function() {
|
|
3780
3762
|
a.removeEventListener(r, i, e);
|
|
3781
3763
|
}
|
|
3782
3764
|
};
|
|
3783
3765
|
}
|
|
3784
|
-
function
|
|
3785
|
-
return typeof a.addEventListener == "function" ?
|
|
3786
|
-
return
|
|
3766
|
+
function so(a, o, r, t, e) {
|
|
3767
|
+
return typeof a.addEventListener == "function" ? Lt.apply(null, arguments) : typeof r == "function" ? Lt.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
|
|
3768
|
+
return Lt(i, o, r, t, e);
|
|
3787
3769
|
}));
|
|
3788
3770
|
}
|
|
3789
|
-
function
|
|
3771
|
+
function oo(a, o, r, t) {
|
|
3790
3772
|
return function(e) {
|
|
3791
|
-
e.delegateTarget =
|
|
3773
|
+
e.delegateTarget = ro(e.target, o), e.delegateTarget && t.call(a, e);
|
|
3792
3774
|
};
|
|
3793
3775
|
}
|
|
3794
|
-
var
|
|
3795
|
-
const Ei = /* @__PURE__ */
|
|
3796
|
-
var
|
|
3776
|
+
var ao = so;
|
|
3777
|
+
const Ei = /* @__PURE__ */ Jt(ao);
|
|
3778
|
+
var lo = {
|
|
3797
3779
|
CONTROLS: "controls",
|
|
3798
3780
|
ROOT: "root"
|
|
3799
3781
|
}, W = {
|
|
@@ -3810,13 +3792,13 @@ var uo = {
|
|
|
3810
3792
|
ICON_DISABLE: "xg-icon-disable",
|
|
3811
3793
|
ICON_HIDE: "xg-icon-hide"
|
|
3812
3794
|
};
|
|
3813
|
-
function
|
|
3795
|
+
function Dt(a) {
|
|
3814
3796
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
3815
3797
|
}
|
|
3816
|
-
function
|
|
3798
|
+
function uo(a, o) {
|
|
3817
3799
|
return te(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
|
|
3818
3800
|
}
|
|
3819
|
-
function
|
|
3801
|
+
function co(a, o) {
|
|
3820
3802
|
return te(a) === "object" && a.attr && te(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
|
|
3821
3803
|
o[r] = a.attr[r];
|
|
3822
3804
|
}), o;
|
|
@@ -3827,8 +3809,8 @@ function xi(a, o) {
|
|
|
3827
3809
|
return h.addClass(a, r), Object.keys(t).map(function(n) {
|
|
3828
3810
|
a.setAttribute(n, t[n]);
|
|
3829
3811
|
}), a;
|
|
3830
|
-
if (
|
|
3831
|
-
return t.src =
|
|
3812
|
+
if (Dt(a) || Dt(a.url))
|
|
3813
|
+
return t.src = Dt(a) ? a : a.url || "", i = h.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
|
|
3832
3814
|
if (typeof a == "function")
|
|
3833
3815
|
try {
|
|
3834
3816
|
return i = a(), i instanceof window.Element ? (h.addClass(i, r), Object.keys(t).map(function(n) {
|
|
@@ -3839,14 +3821,14 @@ function xi(a, o) {
|
|
|
3839
3821
|
}
|
|
3840
3822
|
return typeof a == "string" ? h.createDomFromHtml(a, t, r) : (H.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
3841
3823
|
}
|
|
3842
|
-
function
|
|
3824
|
+
function fo(a, o) {
|
|
3843
3825
|
var r = o.config.icons || o.playerConfig.icons;
|
|
3844
3826
|
Object.keys(a).map(function(t) {
|
|
3845
3827
|
var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
|
|
3846
|
-
r && r[t] && (i =
|
|
3828
|
+
r && r[t] && (i = uo(r[t], i), n = co(r[t], n), s = xi(r[t], t, i, n, o.pluginName)), !s && e && (s = xi(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
|
|
3847
3829
|
});
|
|
3848
3830
|
}
|
|
3849
|
-
function
|
|
3831
|
+
function ho(a, o) {
|
|
3850
3832
|
Object.keys(a).map(function(r) {
|
|
3851
3833
|
Object.defineProperty(o.langText, r, {
|
|
3852
3834
|
get: function() {
|
|
@@ -3870,9 +3852,9 @@ var z = /* @__PURE__ */ function(a) {
|
|
|
3870
3852
|
var i = e.root, n = null;
|
|
3871
3853
|
this.icons = {}, this.root = null, this.parent = null;
|
|
3872
3854
|
var s = this.registerIcons() || {};
|
|
3873
|
-
|
|
3855
|
+
fo(s, this), this.langText = {};
|
|
3874
3856
|
var l = this.registerLanguageTexts() || {};
|
|
3875
|
-
|
|
3857
|
+
ho(l, this);
|
|
3876
3858
|
var u = "";
|
|
3877
3859
|
try {
|
|
3878
3860
|
u = this.render();
|
|
@@ -4141,7 +4123,7 @@ var z = /* @__PURE__ */ function(a) {
|
|
|
4141
4123
|
}, {
|
|
4142
4124
|
key: "ROOT_TYPES",
|
|
4143
4125
|
get: function() {
|
|
4144
|
-
return
|
|
4126
|
+
return lo;
|
|
4145
4127
|
}
|
|
4146
4128
|
}, {
|
|
4147
4129
|
key: "POSITIONS",
|
|
@@ -4149,7 +4131,7 @@ var z = /* @__PURE__ */ function(a) {
|
|
|
4149
4131
|
return W;
|
|
4150
4132
|
}
|
|
4151
4133
|
}]), r;
|
|
4152
|
-
}(xe),
|
|
4134
|
+
}(xe), go = /* @__PURE__ */ function() {
|
|
4153
4135
|
function a() {
|
|
4154
4136
|
var o = this;
|
|
4155
4137
|
if (x(this, a), _(this, "__trigger", function(r) {
|
|
@@ -4159,7 +4141,7 @@ var z = /* @__PURE__ */ function(a) {
|
|
|
4159
4141
|
o.__runHandler(r[e].target);
|
|
4160
4142
|
}), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
|
|
4161
4143
|
try {
|
|
4162
|
-
this.observer = new window.ResizeObserver(
|
|
4144
|
+
this.observer = new window.ResizeObserver(Ns(this.__trigger, 100, {
|
|
4163
4145
|
trailing: !0
|
|
4164
4146
|
})), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
|
|
4165
4147
|
} catch (r) {
|
|
@@ -4214,17 +4196,17 @@ var z = /* @__PURE__ */ function(a) {
|
|
|
4214
4196
|
}
|
|
4215
4197
|
}]), a;
|
|
4216
4198
|
}(), tt = null;
|
|
4217
|
-
function
|
|
4218
|
-
return tt || (tt = new
|
|
4199
|
+
function po(a, o) {
|
|
4200
|
+
return tt || (tt = new go()), tt.addObserver(a, o), tt;
|
|
4219
4201
|
}
|
|
4220
|
-
function
|
|
4202
|
+
function vo(a, o) {
|
|
4221
4203
|
tt.unObserver(a, o);
|
|
4222
4204
|
}
|
|
4223
4205
|
var q = {
|
|
4224
4206
|
pluginGroup: {},
|
|
4225
4207
|
init: function(o) {
|
|
4226
4208
|
var r = o._pluginInfoId;
|
|
4227
|
-
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver &&
|
|
4209
|
+
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && po(o.root, function() {
|
|
4228
4210
|
o.resize();
|
|
4229
4211
|
}), this.pluginGroup[r] = {
|
|
4230
4212
|
_originalOptions: o.config || {},
|
|
@@ -4410,7 +4392,7 @@ var q = {
|
|
|
4410
4392
|
destroy: function(o) {
|
|
4411
4393
|
var r = o._pluginInfoId;
|
|
4412
4394
|
if (this.pluginGroup[r]) {
|
|
4413
|
-
|
|
4395
|
+
vo(o.root);
|
|
4414
4396
|
for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
|
|
4415
4397
|
var n = i[e];
|
|
4416
4398
|
this.unRegister(r, n);
|
|
@@ -4496,7 +4478,7 @@ function Ii() {
|
|
|
4496
4478
|
ignores: [],
|
|
4497
4479
|
whitelist: [],
|
|
4498
4480
|
inactive: 3e3,
|
|
4499
|
-
lang:
|
|
4481
|
+
lang: Bs(),
|
|
4500
4482
|
controls: !0,
|
|
4501
4483
|
marginControls: !1,
|
|
4502
4484
|
fullscreenTarget: null,
|
|
@@ -4532,7 +4514,7 @@ function Ii() {
|
|
|
4532
4514
|
}
|
|
4533
4515
|
};
|
|
4534
4516
|
}
|
|
4535
|
-
var
|
|
4517
|
+
var mo = function(o, r) {
|
|
4536
4518
|
var t, e, i;
|
|
4537
4519
|
r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
|
|
4538
4520
|
var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, f = n.icons, g = f === void 0 ? {} : f, p = n.i18n, d = p === void 0 ? [] : p;
|
|
@@ -4541,7 +4523,7 @@ var yo = function(o, r) {
|
|
|
4541
4523
|
});
|
|
4542
4524
|
var v = o.config.i18n || [];
|
|
4543
4525
|
d.push.apply(d, fe(v)), o.config.i18n = d;
|
|
4544
|
-
},
|
|
4526
|
+
}, yo = /* @__PURE__ */ function(a) {
|
|
4545
4527
|
L(r, a);
|
|
4546
4528
|
var o = D(r);
|
|
4547
4529
|
function r() {
|
|
@@ -4575,7 +4557,7 @@ var yo = function(o, r) {
|
|
|
4575
4557
|
};
|
|
4576
4558
|
Object.keys(u).map(function(f) {
|
|
4577
4559
|
e.root.style[f] = u[f];
|
|
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(
|
|
4560
|
+
}), 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(pt, function(f) {
|
|
4579
4561
|
f ? h.addClass(e.root, "mini-controls") : h.removeClass(e.root, "mini-controls");
|
|
4580
4562
|
});
|
|
4581
4563
|
var c = this.playerConfig.isMobileSimulateMode;
|
|
@@ -4702,7 +4684,7 @@ var yo = function(o, r) {
|
|
|
4702
4684
|
};
|
|
4703
4685
|
}
|
|
4704
4686
|
}]), r;
|
|
4705
|
-
}(z),
|
|
4687
|
+
}(z), _o = {
|
|
4706
4688
|
LANG: "en",
|
|
4707
4689
|
TEXT: {
|
|
4708
4690
|
ERROR_TYPES: {
|
|
@@ -4782,14 +4764,14 @@ var yo = function(o, r) {
|
|
|
4782
4764
|
langKeys: [],
|
|
4783
4765
|
textKeys: []
|
|
4784
4766
|
};
|
|
4785
|
-
function
|
|
4767
|
+
function it(a, o) {
|
|
4786
4768
|
return Object.keys(o).forEach(function(r) {
|
|
4787
4769
|
var t = h.typeOf(o[r]), e = h.typeOf(a[r]);
|
|
4788
4770
|
if (t === "Array") {
|
|
4789
4771
|
var i;
|
|
4790
4772
|
e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, fe(o[r]));
|
|
4791
4773
|
} else
|
|
4792
|
-
t === "Object" ? (e !== "Object" && (a[r] = {}),
|
|
4774
|
+
t === "Object" ? (e !== "Object" && (a[r] = {}), it(a[r], o[r])) : a[r] = o[r];
|
|
4793
4775
|
}), a;
|
|
4794
4776
|
}
|
|
4795
4777
|
function yn() {
|
|
@@ -4797,7 +4779,7 @@ function yn() {
|
|
|
4797
4779
|
se.textKeys[a] = a;
|
|
4798
4780
|
});
|
|
4799
4781
|
}
|
|
4800
|
-
function
|
|
4782
|
+
function ko(a, o) {
|
|
4801
4783
|
var r = [];
|
|
4802
4784
|
if (o || (o = se), !!o.lang) {
|
|
4803
4785
|
h.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
|
|
@@ -4809,27 +4791,27 @@ function Co(a, o) {
|
|
|
4809
4791
|
}) : r = a;
|
|
4810
4792
|
var t = o, e = t.lang;
|
|
4811
4793
|
r.map(function(i) {
|
|
4812
|
-
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ?
|
|
4794
|
+
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? it(e[i.LANG] || {}, i.TEXT || {}) : ai(i, o);
|
|
4813
4795
|
}), yn();
|
|
4814
4796
|
}
|
|
4815
4797
|
}
|
|
4816
|
-
function
|
|
4798
|
+
function ai(a, o) {
|
|
4817
4799
|
var r = a.LANG;
|
|
4818
4800
|
if (o || (o = se), !!o.lang) {
|
|
4819
4801
|
var t = a.TEXT || {};
|
|
4820
|
-
r === "zh" && (r = "zh-cn"), o.lang[r] ?
|
|
4802
|
+
r === "zh" && (r = "zh-cn"), o.lang[r] ? it(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), yn();
|
|
4821
4803
|
}
|
|
4822
4804
|
}
|
|
4823
|
-
function
|
|
4805
|
+
function Co(a) {
|
|
4824
4806
|
var o, r = {
|
|
4825
4807
|
lang: {},
|
|
4826
4808
|
langKeys: [],
|
|
4827
4809
|
textKeys: {},
|
|
4828
4810
|
pId: a
|
|
4829
4811
|
};
|
|
4830
|
-
return
|
|
4812
|
+
return it(r.lang, se.lang), (o = r.langKeys).push.apply(o, fe(se.langKeys)), it(r.textKeys, se.textKeys), r;
|
|
4831
4813
|
}
|
|
4832
|
-
|
|
4814
|
+
ai(_o);
|
|
4833
4815
|
var Xe = {
|
|
4834
4816
|
get textKeys() {
|
|
4835
4817
|
return se.textKeys;
|
|
@@ -4843,9 +4825,9 @@ var Xe = {
|
|
|
4843
4825
|
a[o] = se.lang[o];
|
|
4844
4826
|
}), se.lang["zh-cn"] && (a.zh = se.lang["zh-cn"] || {}), a;
|
|
4845
4827
|
},
|
|
4846
|
-
extend:
|
|
4847
|
-
use:
|
|
4848
|
-
init:
|
|
4828
|
+
extend: ko,
|
|
4829
|
+
use: ai,
|
|
4830
|
+
init: Co
|
|
4849
4831
|
}, U = {
|
|
4850
4832
|
INITIAL: 1,
|
|
4851
4833
|
READY: 2,
|
|
@@ -4855,7 +4837,7 @@ var Xe = {
|
|
|
4855
4837
|
RUNNING: 6,
|
|
4856
4838
|
ENDED: 7,
|
|
4857
4839
|
DESTROYED: 8
|
|
4858
|
-
}, Pi = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], ie = {},
|
|
4840
|
+
}, Pi = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], ie = {}, Ot = null, _n = /* @__PURE__ */ function(a) {
|
|
4859
4841
|
L(r, a);
|
|
4860
4842
|
var o = D(r);
|
|
4861
4843
|
function r() {
|
|
@@ -4938,11 +4920,11 @@ var Xe = {
|
|
|
4938
4920
|
}], [{
|
|
4939
4921
|
key: "getInstance",
|
|
4940
4922
|
value: function() {
|
|
4941
|
-
return
|
|
4923
|
+
return Ot || (Ot = new r()), Ot;
|
|
4942
4924
|
}
|
|
4943
4925
|
}]), r;
|
|
4944
4926
|
}(Xi.EventEmitter);
|
|
4945
|
-
function
|
|
4927
|
+
function bo(a) {
|
|
4946
4928
|
for (var o = Object.keys(ie), r = 0; r < o.length; r++) {
|
|
4947
4929
|
var t = ie[o[r]];
|
|
4948
4930
|
if (t.root === a)
|
|
@@ -4950,7 +4932,7 @@ function wo(a) {
|
|
|
4950
4932
|
}
|
|
4951
4933
|
return null;
|
|
4952
4934
|
}
|
|
4953
|
-
var
|
|
4935
|
+
var wo = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, St = /* @__PURE__ */ function(a) {
|
|
4954
4936
|
L(r, a);
|
|
4955
4937
|
var o = D(r);
|
|
4956
4938
|
function r(t) {
|
|
@@ -4968,7 +4950,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
4968
4950
|
e.resize();
|
|
4969
4951
|
}, 100);
|
|
4970
4952
|
}, k = h.getFullScreenEl();
|
|
4971
|
-
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(
|
|
4953
|
+
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(mt, {
|
|
4972
4954
|
eventType: "system",
|
|
4973
4955
|
action: "switch_fullscreen",
|
|
4974
4956
|
pluginName: "player",
|
|
@@ -4980,7 +4962,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
4980
4962
|
to: !1
|
|
4981
4963
|
}]
|
|
4982
4964
|
});
|
|
4983
|
-
var b =
|
|
4965
|
+
var b = Hs(k, e.playerId, Oe);
|
|
4984
4966
|
if (v || k && (k === e._fullscreenEl || b))
|
|
4985
4967
|
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, w.FULLSCREEN), e.emit(ve, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
4986
4968
|
else if (e.fullscreen) {
|
|
@@ -5000,7 +4982,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5000
4982
|
e._fullscreenEl = e.media, e.onFullscreenChange(d, !0);
|
|
5001
4983
|
}), _(m(e), "_onWebkitendfullscreen", function(d) {
|
|
5002
4984
|
e.onFullscreenChange(d, !1);
|
|
5003
|
-
}), vn(m(e),
|
|
4985
|
+
}), vn(m(e), wo), e.config = i, e._pluginInfoId = h.generateSessionId(), Os(m(e));
|
|
5004
4986
|
var n = e.constructor.defaultPreset;
|
|
5005
4987
|
if (e.config.presets.length) {
|
|
5006
4988
|
var s = e.config.presets.indexOf("default");
|
|
@@ -5029,12 +5011,12 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5029
5011
|
}, e._offsetInfo = {
|
|
5030
5012
|
currentTime: -1,
|
|
5031
5013
|
duration: 0
|
|
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
|
|
5014
|
+
}, 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 eo(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
5033
5015
|
isActiveLocked: !1
|
|
5034
5016
|
}, e.instManager = be;
|
|
5035
5017
|
var l = e._initDOM();
|
|
5036
5018
|
if (!l)
|
|
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"))),
|
|
5019
|
+
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), Qt(e);
|
|
5038
5020
|
var u = e.config, c = u.definition, f = c === void 0 ? {} : c, g = u.url;
|
|
5039
5021
|
if (!g && f.list && f.list.length > 0) {
|
|
5040
5022
|
var p = f.list.find(function(d) {
|
|
@@ -5043,7 +5025,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5043
5025
|
p || (f.defaultDefinition = f.list[0].definition, p = f.list[0]), e.config.url = p.url, e.curDefinition = p;
|
|
5044
5026
|
}
|
|
5045
5027
|
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), q.onPluginsReady(m(e)), e.getInitDefinition(), e.setState(U.READY), h.setTimeout(m(e), function() {
|
|
5046
|
-
e.emit(
|
|
5028
|
+
e.emit(ni);
|
|
5047
5029
|
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < U.ATTACHED) && e.start(), e;
|
|
5048
5030
|
}
|
|
5049
5031
|
return I(r, [{
|
|
@@ -5055,13 +5037,13 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5055
5037
|
if (n && n.nodeType === 1)
|
|
5056
5038
|
this.root = n;
|
|
5057
5039
|
else
|
|
5058
|
-
return this.emit(
|
|
5040
|
+
return this.emit(rt, new ht("use", this.config.vid, {
|
|
5059
5041
|
line: 32,
|
|
5060
5042
|
handle: "Constructor",
|
|
5061
5043
|
msg: "container id can't be empty"
|
|
5062
5044
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
5063
5045
|
}
|
|
5064
|
-
var s =
|
|
5046
|
+
var s = bo(this.root);
|
|
5065
5047
|
s && (H.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Oe, this.playerId), (e = be) === null || e === void 0 || e.add(this), q.init(this), this._initBaseDoms();
|
|
5066
5048
|
var l = this.constructor.XgVideoProxy;
|
|
5067
5049
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
@@ -5071,7 +5053,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5071
5053
|
this.attachVideoEvents(c), this.media = c;
|
|
5072
5054
|
}
|
|
5073
5055
|
if (this.media.setAttribute(Oe, this.playerId), this.config.controls) {
|
|
5074
|
-
var f = this.config.controls.root || null, g = q.register(this,
|
|
5056
|
+
var f = this.config.controls.root || null, g = q.register(this, yo, {
|
|
5075
5057
|
root: f
|
|
5076
5058
|
});
|
|
5077
5059
|
this.controls = g;
|
|
@@ -5140,7 +5122,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5140
5122
|
H.logInfo("_startInit readyState", s), this.config.autoplay && (!h.isMSE(this.media) && this.load(), (N.os.isIpad || N.os.isPhone) && this.mediaPlay());
|
|
5141
5123
|
var l = this.config.startTime;
|
|
5142
5124
|
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() {
|
|
5143
|
-
i.emit(
|
|
5125
|
+
i.emit(wt);
|
|
5144
5126
|
}, 0);
|
|
5145
5127
|
}
|
|
5146
5128
|
}
|
|
@@ -5179,7 +5161,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5179
5161
|
value: function() {
|
|
5180
5162
|
var e = this;
|
|
5181
5163
|
this.config.presets.forEach(function(i) {
|
|
5182
|
-
|
|
5164
|
+
mo(e, i);
|
|
5183
5165
|
});
|
|
5184
5166
|
}
|
|
5185
5167
|
}, {
|
|
@@ -5328,16 +5310,16 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5328
5310
|
this.state < U.RUNNING && (this.removeClass(w.NO_START), !this.isCanplay && this.addClass(w.ENTER));
|
|
5329
5311
|
var i = F(O(r.prototype), "play", this).call(this);
|
|
5330
5312
|
return i !== void 0 && i && i.then ? i.then(function() {
|
|
5331
|
-
e.removeClass(w.NOT_ALLOW_AUTOPLAY), e.addClass(w.PLAYING), e.state < U.RUNNING && (H.logInfo(">>>>playPromise.then"), e.setState(U.RUNNING), e.emit(
|
|
5313
|
+
e.removeClass(w.NOT_ALLOW_AUTOPLAY), e.addClass(w.PLAYING), e.state < U.RUNNING && (H.logInfo(">>>>playPromise.then"), e.setState(U.RUNNING), e.emit(Ne));
|
|
5332
5314
|
}).catch(function(n) {
|
|
5333
5315
|
if (H.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
|
|
5334
5316
|
e.onError(), e.removeClass(w.ENTER);
|
|
5335
5317
|
return;
|
|
5336
5318
|
}
|
|
5337
5319
|
n.name === "NotAllowedError" && (e._errorTimer = h.setTimeout(e, function() {
|
|
5338
|
-
e._errorTimer = null, e.emit(
|
|
5320
|
+
e._errorTimer = null, e.emit(ri), e.addClass(w.NOT_ALLOW_AUTOPLAY), e.removeClass(w.ENTER), e.pause(), e.setState(U.NOTALLOW);
|
|
5339
5321
|
}, 0));
|
|
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(
|
|
5322
|
+
}) : (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(Ne))), i;
|
|
5341
5323
|
}
|
|
5342
5324
|
}, {
|
|
5343
5325
|
key: "mediaPause",
|
|
@@ -5400,7 +5382,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5400
5382
|
var n = this, s = this.config.definition;
|
|
5401
5383
|
if (Array.isArray(s == null ? void 0 : s.list) && s.list.forEach(function(u) {
|
|
5402
5384
|
(e == null ? void 0 : e.definition) === u.definition && (n.curDefinition = u);
|
|
5403
|
-
}), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(
|
|
5385
|
+
}), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(oi, {
|
|
5404
5386
|
from: i,
|
|
5405
5387
|
to: e
|
|
5406
5388
|
}), !this.hasStart) {
|
|
@@ -5411,11 +5393,11 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5411
5393
|
seamless: s.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
|
|
5412
5394
|
}, e));
|
|
5413
5395
|
l && l.then ? l.then(function() {
|
|
5414
|
-
n.emit(
|
|
5396
|
+
n.emit(Gt, {
|
|
5415
5397
|
from: i,
|
|
5416
5398
|
to: e
|
|
5417
5399
|
});
|
|
5418
|
-
}) : this.emit(
|
|
5400
|
+
}) : this.emit(Gt, {
|
|
5419
5401
|
from: i,
|
|
5420
5402
|
to: e
|
|
5421
5403
|
});
|
|
@@ -5433,7 +5415,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5433
5415
|
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];
|
|
5434
5416
|
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) {
|
|
5435
5417
|
e.removeClass(v);
|
|
5436
|
-
}), this.addClass(w.NO_START), this.emit(
|
|
5418
|
+
}), this.addClass(w.NO_START), this.emit(Et);
|
|
5437
5419
|
}
|
|
5438
5420
|
}, {
|
|
5439
5421
|
key: "reset",
|
|
@@ -5455,7 +5437,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5455
5437
|
value: function() {
|
|
5456
5438
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
5457
5439
|
if (!(!s || !l)) {
|
|
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(
|
|
5440
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Oe), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(si), (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)
|
|
5459
5441
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
5460
5442
|
n.removeChild(u[c]);
|
|
5461
5443
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(g) {
|
|
@@ -5479,7 +5461,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5479
5461
|
i && i.catch && i.catch(function(n) {
|
|
5480
5462
|
console.log(n);
|
|
5481
5463
|
});
|
|
5482
|
-
}), e.emit(
|
|
5464
|
+
}), e.emit(dt), e.onPlay();
|
|
5483
5465
|
});
|
|
5484
5466
|
}
|
|
5485
5467
|
}, {
|
|
@@ -5558,7 +5540,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5558
5540
|
var i = e ? "".concat(w.INNER_FULLSCREEN, " ").concat(w.CSS_FULLSCREEN) : w.CSS_FULLSCREEN;
|
|
5559
5541
|
this.changeFullStyle(this.root, e, i);
|
|
5560
5542
|
var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
|
|
5561
|
-
l && (this.fullscreen = !0, this.emit(ve, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(
|
|
5543
|
+
l && (this.fullscreen = !0, this.emit(ve, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(gt, !0);
|
|
5562
5544
|
}
|
|
5563
5545
|
}, {
|
|
5564
5546
|
key: "exitCssFullscreen",
|
|
@@ -5570,7 +5552,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5570
5552
|
var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
|
|
5571
5553
|
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(ve, !1)) : this.removeClass(e);
|
|
5572
5554
|
}
|
|
5573
|
-
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(
|
|
5555
|
+
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(gt, !1);
|
|
5574
5556
|
}
|
|
5575
5557
|
}, {
|
|
5576
5558
|
key: "getRotateFullscreen",
|
|
@@ -5602,7 +5584,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5602
5584
|
this.onFocus(e);
|
|
5603
5585
|
return;
|
|
5604
5586
|
}
|
|
5605
|
-
this.emit(
|
|
5587
|
+
this.emit(ii, G({
|
|
5606
5588
|
paused: this.paused,
|
|
5607
5589
|
ended: this.ended
|
|
5608
5590
|
}, e));
|
|
@@ -5718,7 +5700,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5718
5700
|
}, {
|
|
5719
5701
|
key: "onTimeupdate",
|
|
5720
5702
|
value: function() {
|
|
5721
|
-
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(w.LOADING)) && this.media.readyState > 2 && (this.removeClass(w.LOADING), h.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === U.NOTALLOW && this.duration && (this.setState(U.RUNNING), this.emit(
|
|
5703
|
+
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(w.LOADING)) && this.media.readyState > 2 && (this.removeClass(w.LOADING), h.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === U.NOTALLOW && this.duration && (this.setState(U.RUNNING), this.emit(Ne)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
5722
5704
|
}
|
|
5723
5705
|
}, {
|
|
5724
5706
|
key: "onVolumechange",
|
|
@@ -5735,7 +5717,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5735
5717
|
value: function(e, i, n) {
|
|
5736
5718
|
if (!(!this.media || !i || !e)) {
|
|
5737
5719
|
var s = h.typeOf(e) === "String" ? e : e.type || "";
|
|
5738
|
-
n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(
|
|
5720
|
+
n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(mt, G({
|
|
5739
5721
|
eventType: s,
|
|
5740
5722
|
action: i,
|
|
5741
5723
|
currentTime: this.currentTime,
|
|
@@ -5821,7 +5803,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5821
5803
|
value: function(e) {
|
|
5822
5804
|
var i = this;
|
|
5823
5805
|
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, me(this, "playnext", function() {
|
|
5824
|
-
i.start(), i.emit(
|
|
5806
|
+
i.start(), i.emit(vt, e);
|
|
5825
5807
|
});
|
|
5826
5808
|
}
|
|
5827
5809
|
}, {
|
|
@@ -5959,7 +5941,7 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
5959
5941
|
}, {
|
|
5960
5942
|
key: "version",
|
|
5961
5943
|
get: function() {
|
|
5962
|
-
return
|
|
5944
|
+
return Wt;
|
|
5963
5945
|
}
|
|
5964
5946
|
}, {
|
|
5965
5947
|
key: "playerId",
|
|
@@ -6060,17 +6042,17 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
6060
6042
|
}, {
|
|
6061
6043
|
key: "hook",
|
|
6062
6044
|
value: function(e, i) {
|
|
6063
|
-
return
|
|
6045
|
+
return yt.call.apply(yt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6064
6046
|
}
|
|
6065
6047
|
}, {
|
|
6066
6048
|
key: "useHooks",
|
|
6067
6049
|
value: function(e, i) {
|
|
6068
|
-
return
|
|
6050
|
+
return _t.call.apply(_t, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6069
6051
|
}
|
|
6070
6052
|
}, {
|
|
6071
6053
|
key: "removeHooks",
|
|
6072
6054
|
value: function(e, i) {
|
|
6073
|
-
return
|
|
6055
|
+
return kt.call.apply(kt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6074
6056
|
}
|
|
6075
6057
|
}, {
|
|
6076
6058
|
key: "usePluginHooks",
|
|
@@ -6141,11 +6123,11 @@ var To = ["play", "pause", "replay", "retry"], Ai = 0, Li = 0, be = null, xt = /
|
|
|
6141
6123
|
r.plugins || (r.plugins = {}), r.plugins[e] = i;
|
|
6142
6124
|
}
|
|
6143
6125
|
}]), r;
|
|
6144
|
-
}(
|
|
6145
|
-
_(
|
|
6146
|
-
_(
|
|
6147
|
-
|
|
6148
|
-
function
|
|
6126
|
+
}(Qs);
|
|
6127
|
+
_(St, "defaultPreset", null);
|
|
6128
|
+
_(St, "XgVideoProxy", null);
|
|
6129
|
+
St.instManager = _n.getInstance();
|
|
6130
|
+
function J() {
|
|
6149
6131
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
6150
6132
|
}
|
|
6151
6133
|
var we = {
|
|
@@ -6156,7 +6138,7 @@ var we = {
|
|
|
6156
6138
|
WAIT_END: "waitingEnd",
|
|
6157
6139
|
SEEK_START: "seekStart",
|
|
6158
6140
|
SEEK_END: "seekEnd"
|
|
6159
|
-
},
|
|
6141
|
+
}, To = /* @__PURE__ */ function(a) {
|
|
6160
6142
|
L(r, a);
|
|
6161
6143
|
var o = D(r);
|
|
6162
6144
|
function r() {
|
|
@@ -6175,23 +6157,23 @@ var we = {
|
|
|
6175
6157
|
isTimeUpdate: !1,
|
|
6176
6158
|
isFFSend: !1,
|
|
6177
6159
|
isLs: !1
|
|
6178
|
-
}, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime =
|
|
6160
|
+
}, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = J(), t.loadedCostTime = 0, t.startCostTime = 0, t._isSeeking = !1, t.seekingStart = 0, t.waitingStart = 0, t.fixedWaitingStart = 0, t._isWaiting = !1, t._waitTimer && h.clearTimeout(m(t), t._waitTimer), t._waittTimer && h.clearTimeout(m(t), t._waittTimer), t._waitTimer = null, t._waittTimer = null, t._waitType = 0;
|
|
6179
6161
|
}), _(m(t), "_onSeeking", function() {
|
|
6180
|
-
t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart =
|
|
6181
|
-
start:
|
|
6162
|
+
t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = J(), t.emitLog(we.SEEK_START, {
|
|
6163
|
+
start: J()
|
|
6182
6164
|
}));
|
|
6183
6165
|
}), _(m(t), "_onSeeked", function() {
|
|
6184
6166
|
t.suspendSeekingStatus("seeked");
|
|
6185
6167
|
}), _(m(t), "_onWaitingLoadStart", function() {
|
|
6186
|
-
t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart =
|
|
6168
|
+
t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = J(), t.fixedWaitingStart = J(), t._waitType = 1, t.emitLog(we.WAIT_START, {
|
|
6187
6169
|
fixedStart: t.fixedWaitingStart,
|
|
6188
6170
|
start: t.waitingStart,
|
|
6189
6171
|
type: 1,
|
|
6190
6172
|
endType: "loadstart"
|
|
6191
6173
|
}));
|
|
6192
6174
|
}), _(m(t), "_onWaiting", function() {
|
|
6193
|
-
t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart =
|
|
6194
|
-
t._isWaiting && (t.waitingStart =
|
|
6175
|
+
t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = J(), t._waitTimer = h.setTimeout(m(t), function() {
|
|
6176
|
+
t._isWaiting && (t.waitingStart = J(), h.clearTimeout(m(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(we.WAIT_START, {
|
|
6195
6177
|
fixedStart: t.fixedWaitingStart,
|
|
6196
6178
|
start: t.waitingStart,
|
|
6197
6179
|
type: t._waitType,
|
|
@@ -6208,30 +6190,30 @@ var we = {
|
|
|
6208
6190
|
key: "afterCreate",
|
|
6209
6191
|
value: function() {
|
|
6210
6192
|
var e = this;
|
|
6211
|
-
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime =
|
|
6193
|
+
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = J(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(ti, function() {
|
|
6212
6194
|
var i = e._state, n = i.autoplayStart, s = i.isFFSend;
|
|
6213
|
-
e.startCostTime =
|
|
6195
|
+
e.startCostTime = J() - 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 = J(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
|
|
6214
6196
|
}), this.on(Ce, function() {
|
|
6215
|
-
e.vt =
|
|
6197
|
+
e.vt = J(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
6216
6198
|
var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
|
|
6217
6199
|
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");
|
|
6218
|
-
}), this.on(
|
|
6200
|
+
}), this.on(bt, this._onSeeking), this.on(_e, this._onSeeked), this.on(si, function() {
|
|
6219
6201
|
e.endState("destroy");
|
|
6220
|
-
}), this.on(
|
|
6202
|
+
}), this.on(Tt, function() {
|
|
6221
6203
|
e.endState("urlChange"), H.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
6222
|
-
}), this.on([
|
|
6204
|
+
}), this.on([ei, ye], this._onPlaying), this.on(st, this._onWaiting), this.on(rt, this._onError), this.on(Et, function() {
|
|
6223
6205
|
H.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
6224
6206
|
});
|
|
6225
6207
|
}
|
|
6226
6208
|
}, {
|
|
6227
6209
|
key: "_initOnceEvents",
|
|
6228
6210
|
value: function() {
|
|
6229
|
-
this.off(
|
|
6211
|
+
this.off(Ne, this._onAutoplayStart), this.off(oe, this._onTimeupdate), this.once(Ne, this._onAutoplayStart), this.once(oe, this._onTimeupdate);
|
|
6230
6212
|
}
|
|
6231
6213
|
}, {
|
|
6232
6214
|
key: "_sendFF",
|
|
6233
6215
|
value: function(e) {
|
|
6234
|
-
this.s =
|
|
6216
|
+
this.s = J();
|
|
6235
6217
|
var i = this._state, n = i.isFFLoading, s = i.isFFSend;
|
|
6236
6218
|
H.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (H.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(we.FIRST_FRAME, {
|
|
6237
6219
|
fvt: this.fvt,
|
|
@@ -6258,7 +6240,7 @@ var we = {
|
|
|
6258
6240
|
key: "suspendSeekingStatus",
|
|
6259
6241
|
value: function(e) {
|
|
6260
6242
|
if (this.seekingStart) {
|
|
6261
|
-
var i =
|
|
6243
|
+
var i = J(), n = i - this.seekingStart;
|
|
6262
6244
|
this.seekingStart = 0, this.emitLog(we.SEEK_END, {
|
|
6263
6245
|
end: i,
|
|
6264
6246
|
costTime: n,
|
|
@@ -6270,7 +6252,7 @@ var we = {
|
|
|
6270
6252
|
key: "suspendWaitingStatus",
|
|
6271
6253
|
value: function(e) {
|
|
6272
6254
|
if (this._waitTimer && (h.clearTimeout(this, this._waitTimer), this._waitTimer = null), this._waittTimer && (h.clearTimeout(this, this._waittTimer), this._waittTimer = null), this._isWaiting = !1, !!this.waitingStart) {
|
|
6273
|
-
var i =
|
|
6255
|
+
var i = J(), n = i - this.waitingStart, s = i - this.fixedWaitingStart, l = this.config.waitTimeout;
|
|
6274
6256
|
this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(we.WAIT_END, {
|
|
6275
6257
|
fixedCostTime: s > l ? l : s,
|
|
6276
6258
|
costTime: n > l ? l : n,
|
|
@@ -6284,7 +6266,7 @@ var we = {
|
|
|
6284
6266
|
value: function(e, i) {
|
|
6285
6267
|
var n = this.player;
|
|
6286
6268
|
this.emit(cn, G({
|
|
6287
|
-
t:
|
|
6269
|
+
t: J(),
|
|
6288
6270
|
host: h.getHostFromUrl(n.currentSrc),
|
|
6289
6271
|
vtype: n.vtype,
|
|
6290
6272
|
eventType: e,
|
|
@@ -6307,13 +6289,13 @@ var we = {
|
|
|
6307
6289
|
}
|
|
6308
6290
|
}]), r;
|
|
6309
6291
|
}(z);
|
|
6310
|
-
function
|
|
6292
|
+
function Eo() {
|
|
6311
6293
|
return new DOMParser().parseFromString(`<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 78 78" width="78" height="78">
|
|
6312
6294
|
<path fill="#fff" transform="translate(20, 20)" d="M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"></path>
|
|
6313
6295
|
</svg>
|
|
6314
6296
|
`, "image/svg+xml").firstChild;
|
|
6315
6297
|
}
|
|
6316
|
-
var
|
|
6298
|
+
var So = /* @__PURE__ */ function(a) {
|
|
6317
6299
|
L(r, a);
|
|
6318
6300
|
var o = D(r);
|
|
6319
6301
|
function r() {
|
|
@@ -6323,7 +6305,7 @@ var xo = /* @__PURE__ */ function(a) {
|
|
|
6323
6305
|
key: "registerIcons",
|
|
6324
6306
|
value: function() {
|
|
6325
6307
|
return {
|
|
6326
|
-
replay:
|
|
6308
|
+
replay: Eo
|
|
6327
6309
|
};
|
|
6328
6310
|
}
|
|
6329
6311
|
}, {
|
|
@@ -6336,7 +6318,7 @@ var xo = /* @__PURE__ */ function(a) {
|
|
|
6336
6318
|
pre: function(n) {
|
|
6337
6319
|
n.preventDefault(), n.stopPropagation();
|
|
6338
6320
|
}
|
|
6339
|
-
}), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(
|
|
6321
|
+
}), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(Be, function() {
|
|
6340
6322
|
if (e.playerConfig.loop || h.addClass(e.player.root, "replay"), !e.config.disable) {
|
|
6341
6323
|
e.show();
|
|
6342
6324
|
var i = e.root.querySelector("path");
|
|
@@ -6396,7 +6378,7 @@ var xo = /* @__PURE__ */ function(a) {
|
|
|
6396
6378
|
};
|
|
6397
6379
|
}
|
|
6398
6380
|
}]), r;
|
|
6399
|
-
}(z),
|
|
6381
|
+
}(z), xo = /* @__PURE__ */ function(a) {
|
|
6400
6382
|
L(r, a);
|
|
6401
6383
|
var o = D(r);
|
|
6402
6384
|
function r() {
|
|
@@ -6429,11 +6411,11 @@ var xo = /* @__PURE__ */ function(a) {
|
|
|
6429
6411
|
key: "afterCreate",
|
|
6430
6412
|
value: function() {
|
|
6431
6413
|
var e = this;
|
|
6432
|
-
this.on(
|
|
6414
|
+
this.on(Be, function() {
|
|
6433
6415
|
e.isEndedShow && h.removeClass(e.root, "hide");
|
|
6434
6416
|
}), this.config.hideCanplay ? (this.once(oe, function() {
|
|
6435
6417
|
e.onTimeUpdate();
|
|
6436
|
-
}), this.on(
|
|
6418
|
+
}), this.on(Tt, function() {
|
|
6437
6419
|
h.removeClass(e.root, "hide"), h.addClass(e.root, "xg-showplay"), e.once(oe, function() {
|
|
6438
6420
|
e.onTimeUpdate();
|
|
6439
6421
|
});
|
|
@@ -6508,20 +6490,20 @@ var xo = /* @__PURE__ */ function(a) {
|
|
|
6508
6490
|
}
|
|
6509
6491
|
}]), r;
|
|
6510
6492
|
}(z);
|
|
6511
|
-
function
|
|
6493
|
+
function li() {
|
|
6512
6494
|
return new DOMParser().parseFromString(`<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
6513
6495
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
|
|
6514
6496
|
</svg>
|
|
6515
6497
|
`, "image/svg+xml").firstChild;
|
|
6516
6498
|
}
|
|
6517
|
-
function
|
|
6499
|
+
function ui() {
|
|
6518
6500
|
return new DOMParser().parseFromString(`<svg class="pause" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
6519
6501
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
|
|
6520
6502
|
</svg>
|
|
6521
6503
|
`, "image/svg+xml").firstChild;
|
|
6522
6504
|
}
|
|
6523
6505
|
var ge = {};
|
|
6524
|
-
function
|
|
6506
|
+
function Io(a, o) {
|
|
6525
6507
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
6526
6508
|
start: null,
|
|
6527
6509
|
end: null
|
|
@@ -6539,7 +6521,7 @@ function Di(a) {
|
|
|
6539
6521
|
window.clearTimeout(ge[o].id), delete ge[o];
|
|
6540
6522
|
});
|
|
6541
6523
|
}
|
|
6542
|
-
var
|
|
6524
|
+
var Po = /* @__PURE__ */ function(a) {
|
|
6543
6525
|
L(r, a);
|
|
6544
6526
|
var o = D(r);
|
|
6545
6527
|
function r(t) {
|
|
@@ -6559,16 +6541,16 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
6559
6541
|
key: "afterCreate",
|
|
6560
6542
|
value: function() {
|
|
6561
6543
|
var e = this, i = this.player, n = this.playerConfig;
|
|
6562
|
-
this.initIcons(), this.once(
|
|
6544
|
+
this.initIcons(), this.once(ni, function() {
|
|
6563
6545
|
n && (n.lang && n.lang === "en" ? h.addClass(i.root, "lang-is-en") : n.lang === "jp" && h.addClass(i.root, "lang-is-jp"));
|
|
6564
|
-
}), this.on(
|
|
6546
|
+
}), this.on(Ne, this.onAutoplayStart), n.autoplay || this.show(), this.on(ri, function() {
|
|
6565
6547
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
6566
6548
|
e.setAttr("data-state", "play"), h.removeClass(e.root, s), e.show();
|
|
6567
6549
|
}), this.on(ae, function() {
|
|
6568
6550
|
e.onPlayPause("play");
|
|
6569
6551
|
}), this.on(Ze, function() {
|
|
6570
6552
|
e.onPlayPause("pause");
|
|
6571
|
-
}), this.on(
|
|
6553
|
+
}), this.on(Et, function() {
|
|
6572
6554
|
e.onPlayerReset();
|
|
6573
6555
|
}), this.clickHandler = this.hook("startClick", this.switchPausePlay, {
|
|
6574
6556
|
pre: function(l) {
|
|
@@ -6587,11 +6569,11 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
6587
6569
|
value: function() {
|
|
6588
6570
|
return {
|
|
6589
6571
|
startPlay: {
|
|
6590
|
-
icon:
|
|
6572
|
+
icon: li,
|
|
6591
6573
|
class: "xg-icon-play"
|
|
6592
6574
|
},
|
|
6593
6575
|
startPause: {
|
|
6594
|
-
icon:
|
|
6576
|
+
icon: ui,
|
|
6595
6577
|
class: "xg-icon-pause"
|
|
6596
6578
|
}
|
|
6597
6579
|
};
|
|
@@ -6631,7 +6613,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
6631
6613
|
key: "animate",
|
|
6632
6614
|
value: function(e) {
|
|
6633
6615
|
var i = this;
|
|
6634
|
-
this._animateId =
|
|
6616
|
+
this._animateId = Io("pauseplay", 400, {
|
|
6635
6617
|
start: function() {
|
|
6636
6618
|
h.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
|
|
6637
6619
|
},
|
|
@@ -6714,7 +6696,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
6714
6696
|
};
|
|
6715
6697
|
}
|
|
6716
6698
|
}]), r;
|
|
6717
|
-
}(z),
|
|
6699
|
+
}(z), Ao = /* @__PURE__ */ function(a) {
|
|
6718
6700
|
L(r, a);
|
|
6719
6701
|
var o = D(r);
|
|
6720
6702
|
function r() {
|
|
@@ -6813,8 +6795,8 @@ function Ri(a) {
|
|
|
6813
6795
|
var o = parseFloat(a), r = a.indexOf("%") === -1 && !Number.isNaN(o);
|
|
6814
6796
|
return r && o;
|
|
6815
6797
|
}
|
|
6816
|
-
var
|
|
6817
|
-
function
|
|
6798
|
+
var ci = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], kn = ci.length;
|
|
6799
|
+
function Lo() {
|
|
6818
6800
|
for (var a = {
|
|
6819
6801
|
width: 0,
|
|
6820
6802
|
height: 0,
|
|
@@ -6823,24 +6805,24 @@ function Do() {
|
|
|
6823
6805
|
outerWidth: 0,
|
|
6824
6806
|
outerHeight: 0
|
|
6825
6807
|
}, o = 0; o < kn; o++) {
|
|
6826
|
-
var r =
|
|
6808
|
+
var r = ci[o];
|
|
6827
6809
|
a[r] = 0;
|
|
6828
6810
|
}
|
|
6829
6811
|
return a;
|
|
6830
6812
|
}
|
|
6831
|
-
function
|
|
6813
|
+
function Do(a) {
|
|
6832
6814
|
var o = window.getComputedStyle(a);
|
|
6833
6815
|
return o;
|
|
6834
6816
|
}
|
|
6835
6817
|
function Fi(a) {
|
|
6836
6818
|
if (typeof a == "string" && (a = document.querySelector(a)), !(!a || te(a) !== "object" || !a.nodeType)) {
|
|
6837
|
-
var o =
|
|
6819
|
+
var o = Do(a);
|
|
6838
6820
|
if (o.display === "none")
|
|
6839
|
-
return
|
|
6821
|
+
return Lo();
|
|
6840
6822
|
var r = {};
|
|
6841
6823
|
r.width = a.offsetWidth, r.height = a.offsetHeight;
|
|
6842
6824
|
for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < kn; e++) {
|
|
6843
|
-
var i =
|
|
6825
|
+
var i = ci[e], n = o[i], s = parseFloat(n);
|
|
6844
6826
|
r[i] = Number.isNaN(s) ? 0 : s;
|
|
6845
6827
|
}
|
|
6846
6828
|
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);
|
|
@@ -6849,14 +6831,14 @@ function Fi(a) {
|
|
|
6849
6831
|
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;
|
|
6850
6832
|
}
|
|
6851
6833
|
}
|
|
6852
|
-
function
|
|
6834
|
+
function Rt(a, o) {
|
|
6853
6835
|
for (var r = 0; r < a.length; r++) {
|
|
6854
6836
|
var t = a[r];
|
|
6855
6837
|
if (t.identifier === o)
|
|
6856
6838
|
return t;
|
|
6857
6839
|
}
|
|
6858
6840
|
}
|
|
6859
|
-
var
|
|
6841
|
+
var Ft = {
|
|
6860
6842
|
START: "dragStart",
|
|
6861
6843
|
MOVE: "dragMove",
|
|
6862
6844
|
ENDED: "dragEnded"
|
|
@@ -6864,7 +6846,7 @@ var Mt = {
|
|
|
6864
6846
|
mousedown: ["mousemove", "mouseup"],
|
|
6865
6847
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
6866
6848
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
6867
|
-
},
|
|
6849
|
+
}, Oo = /* @__PURE__ */ function(a) {
|
|
6868
6850
|
L(r, a);
|
|
6869
6851
|
var o = D(r);
|
|
6870
6852
|
function r(t) {
|
|
@@ -6875,7 +6857,7 @@ var Mt = {
|
|
|
6875
6857
|
}, e.startPos = {
|
|
6876
6858
|
x: 0,
|
|
6877
6859
|
y: 0
|
|
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 ?
|
|
6860
|
+
}, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ? Qt(e) : (e._bindStartEvent(), e);
|
|
6879
6861
|
}
|
|
6880
6862
|
return I(r, [{
|
|
6881
6863
|
key: "_bindStartEvent",
|
|
@@ -6967,19 +6949,19 @@ var Mt = {
|
|
|
6967
6949
|
}, {
|
|
6968
6950
|
key: "ontouchmove",
|
|
6969
6951
|
value: function(e) {
|
|
6970
|
-
var i =
|
|
6952
|
+
var i = Rt(e.changedTouches, this.touchIdentifier);
|
|
6971
6953
|
i && this.dragMove(e, i);
|
|
6972
6954
|
}
|
|
6973
6955
|
}, {
|
|
6974
6956
|
key: "ontouchend",
|
|
6975
6957
|
value: function(e) {
|
|
6976
|
-
var i =
|
|
6958
|
+
var i = Rt(e.changedTouches, this.touchIdentifier);
|
|
6977
6959
|
i && this.dragEnd(e, i), e.preventDefault();
|
|
6978
6960
|
}
|
|
6979
6961
|
}, {
|
|
6980
6962
|
key: "ontouchcancel",
|
|
6981
6963
|
value: function(e) {
|
|
6982
|
-
var i =
|
|
6964
|
+
var i = Rt(e.changedTouches, this.touchIdentifier);
|
|
6983
6965
|
i && this.dragCancel(e, i);
|
|
6984
6966
|
}
|
|
6985
6967
|
}, {
|
|
@@ -6994,12 +6976,12 @@ var Mt = {
|
|
|
6994
6976
|
}, {
|
|
6995
6977
|
key: "dragRealStart",
|
|
6996
6978
|
value: function(e, i) {
|
|
6997
|
-
this.isDragging = !0, this.animate(), this.emit(
|
|
6979
|
+
this.isDragging = !0, this.animate(), this.emit(Ft.START, this.startPos);
|
|
6998
6980
|
}
|
|
6999
6981
|
}, {
|
|
7000
6982
|
key: "dragEnd",
|
|
7001
6983
|
value: function(e, i) {
|
|
7002
|
-
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(
|
|
6984
|
+
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(Ft.ENDED)), this.presetInfo());
|
|
7003
6985
|
}
|
|
7004
6986
|
}, {
|
|
7005
6987
|
key: "_dragPointerMove",
|
|
@@ -7015,7 +6997,7 @@ var Mt = {
|
|
|
7015
6997
|
value: function(e, i) {
|
|
7016
6998
|
if (e = e || window.event, !!this.isDown) {
|
|
7017
6999
|
var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, f = u.y;
|
|
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(
|
|
7000
|
+
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(Ft.MOVE, this.position);
|
|
7019
7001
|
}
|
|
7020
7002
|
}
|
|
7021
7003
|
}, {
|
|
@@ -7074,7 +7056,7 @@ var Mt = {
|
|
|
7074
7056
|
return parseInt(e, 10);
|
|
7075
7057
|
}
|
|
7076
7058
|
}]), r;
|
|
7077
|
-
}(qi),
|
|
7059
|
+
}(qi), Ro = /* @__PURE__ */ function(a) {
|
|
7078
7060
|
L(r, a);
|
|
7079
7061
|
var o = D(r);
|
|
7080
7062
|
function r(t) {
|
|
@@ -7130,7 +7112,7 @@ var Mt = {
|
|
|
7130
7112
|
i.controls.registerPlugin(Oi, s, Oi.pluginName);
|
|
7131
7113
|
}
|
|
7132
7114
|
var l = h.checkTouchSupport() ? "touchend" : "click";
|
|
7133
|
-
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new
|
|
7115
|
+
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Oo(this.player.root, {
|
|
7134
7116
|
handle: this.root
|
|
7135
7117
|
})), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
|
|
7136
7118
|
}
|
|
@@ -7140,11 +7122,11 @@ var Mt = {
|
|
|
7140
7122
|
value: function() {
|
|
7141
7123
|
return {
|
|
7142
7124
|
play: {
|
|
7143
|
-
icon:
|
|
7125
|
+
icon: li,
|
|
7144
7126
|
class: "xg-icon-play"
|
|
7145
7127
|
},
|
|
7146
7128
|
pause: {
|
|
7147
|
-
icon:
|
|
7129
|
+
icon: ui,
|
|
7148
7130
|
class: "xg-icon-pause"
|
|
7149
7131
|
}
|
|
7150
7132
|
};
|
|
@@ -7163,7 +7145,7 @@ var Mt = {
|
|
|
7163
7145
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
7164
7146
|
this.lastStyle = {}, h.addClass(i.root, "xgplayer-mini"), ["width", "height", "top", "left"].map(function(l) {
|
|
7165
7147
|
e.lastStyle[l] = s.style[l], s.style[l] = "".concat(e.pos[l], "px");
|
|
7166
|
-
}), n.fluid && (s.style["padding-top"] = ""), this.emit(
|
|
7148
|
+
}), n.fluid && (s.style["padding-top"] = ""), this.emit(pt, !0), i.isMini = this.isMini = !0;
|
|
7167
7149
|
}
|
|
7168
7150
|
}
|
|
7169
7151
|
}, {
|
|
@@ -7175,7 +7157,7 @@ var Mt = {
|
|
|
7175
7157
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
7176
7158
|
h.removeClass(i.root, "xgplayer-mini"), this.lastStyle && Object.keys(this.lastStyle).map(function(l) {
|
|
7177
7159
|
s.style[l] = e.lastStyle[l];
|
|
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(
|
|
7160
|
+
}), 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(pt, !1), this.isMini = i.isMini = !1;
|
|
7179
7161
|
}
|
|
7180
7162
|
}, {
|
|
7181
7163
|
key: "destroy",
|
|
@@ -7224,11 +7206,11 @@ var Mt = {
|
|
|
7224
7206
|
};
|
|
7225
7207
|
}
|
|
7226
7208
|
}]), r;
|
|
7227
|
-
}(z),
|
|
7209
|
+
}(z), at = {
|
|
7228
7210
|
mouseenter: "onMouseEnter",
|
|
7229
7211
|
mouseleave: "onMouseLeave",
|
|
7230
7212
|
mousemove: "onMouseMove"
|
|
7231
|
-
},
|
|
7213
|
+
}, Mt = ["videoClick", "videoDbClick"], Nt = /* @__PURE__ */ function(a) {
|
|
7232
7214
|
L(r, a);
|
|
7233
7215
|
var o = D(r);
|
|
7234
7216
|
function r() {
|
|
@@ -7257,7 +7239,7 @@ var Mt = {
|
|
|
7257
7239
|
}), _(m(t), "onVideoClick", function(s) {
|
|
7258
7240
|
var l = m(t), u = l.player, c = l.playerConfig;
|
|
7259
7241
|
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() {
|
|
7260
|
-
t._clickCount && (t._clickCount--, me(m(t),
|
|
7242
|
+
t._clickCount && (t._clickCount--, me(m(t), Mt[0], function(f, g) {
|
|
7261
7243
|
t.switchPlayPause(g.e);
|
|
7262
7244
|
}, {
|
|
7263
7245
|
e: s,
|
|
@@ -7271,7 +7253,7 @@ var Mt = {
|
|
|
7271
7253
|
t._clickCount = 0;
|
|
7272
7254
|
return;
|
|
7273
7255
|
}
|
|
7274
|
-
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), me(m(t),
|
|
7256
|
+
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), me(m(t), Mt[1], function(f, g) {
|
|
7275
7257
|
t.emitUserAction(g.e, "switch_fullscreen", {
|
|
7276
7258
|
props: "fullscreen",
|
|
7277
7259
|
from: u.fullscreen,
|
|
@@ -7288,7 +7270,7 @@ var Mt = {
|
|
|
7288
7270
|
key: "afterCreate",
|
|
7289
7271
|
value: function() {
|
|
7290
7272
|
var e = this;
|
|
7291
|
-
this._clickCount = 0,
|
|
7273
|
+
this._clickCount = 0, Mt.map(function(n) {
|
|
7292
7274
|
e.__hooks[n] = null;
|
|
7293
7275
|
});
|
|
7294
7276
|
var i = this.playerConfig.isMobileSimulateMode;
|
|
@@ -7298,8 +7280,8 @@ var Mt = {
|
|
|
7298
7280
|
key: "initEvents",
|
|
7299
7281
|
value: function() {
|
|
7300
7282
|
var e = this, i = this.player, n = i.media, s = i.root, l = this.playerConfig.enableContextmenu;
|
|
7301
|
-
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(
|
|
7302
|
-
s.addEventListener(u, e[
|
|
7283
|
+
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(at).map(function(u) {
|
|
7284
|
+
s.addEventListener(u, e[at[u]], !1);
|
|
7303
7285
|
}), !l && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
|
|
7304
7286
|
}
|
|
7305
7287
|
}, {
|
|
@@ -7321,8 +7303,8 @@ var Mt = {
|
|
|
7321
7303
|
key: "destroy",
|
|
7322
7304
|
value: function() {
|
|
7323
7305
|
var e = this, i = this.player, n = i.video, s = i.root;
|
|
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(
|
|
7325
|
-
s.removeEventListener(l, e[
|
|
7306
|
+
this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(at).map(function(l) {
|
|
7307
|
+
s.removeEventListener(l, e[at[l]], !1);
|
|
7326
7308
|
});
|
|
7327
7309
|
}
|
|
7328
7310
|
}], [{
|
|
@@ -7344,12 +7326,12 @@ var Mt = {
|
|
|
7344
7326
|
TOUCH_MOVE: "touchmove",
|
|
7345
7327
|
TOUCH_START: "touchstart",
|
|
7346
7328
|
TOUCH_END: "touchend"
|
|
7347
|
-
},
|
|
7329
|
+
}, Fo = {
|
|
7348
7330
|
start: "touchstart",
|
|
7349
7331
|
end: "touchend",
|
|
7350
7332
|
move: "touchmove",
|
|
7351
7333
|
cancel: "touchcancel"
|
|
7352
|
-
},
|
|
7334
|
+
}, Mo = {
|
|
7353
7335
|
start: "mousedown",
|
|
7354
7336
|
end: "mouseup",
|
|
7355
7337
|
move: "mousemove",
|
|
@@ -7358,7 +7340,7 @@ var Mt = {
|
|
|
7358
7340
|
function Ni(a) {
|
|
7359
7341
|
return a && a.length > 0 ? a[a.length - 1] : null;
|
|
7360
7342
|
}
|
|
7361
|
-
function
|
|
7343
|
+
function No() {
|
|
7362
7344
|
return {
|
|
7363
7345
|
pressDelay: 600,
|
|
7364
7346
|
dbClickDelay: 200,
|
|
@@ -7368,7 +7350,7 @@ function Bo() {
|
|
|
7368
7350
|
needPreventDefault: !0
|
|
7369
7351
|
};
|
|
7370
7352
|
}
|
|
7371
|
-
var
|
|
7353
|
+
var Bo = /* @__PURE__ */ function() {
|
|
7372
7354
|
function a(o) {
|
|
7373
7355
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
7374
7356
|
eventType: "touch"
|
|
@@ -7389,9 +7371,9 @@ var Ho = /* @__PURE__ */ function() {
|
|
|
7389
7371
|
start: !1,
|
|
7390
7372
|
x: 0,
|
|
7391
7373
|
y: 0
|
|
7392
|
-
}, this.config =
|
|
7374
|
+
}, this.config = No(), Object.keys(t).map(function(e) {
|
|
7393
7375
|
r.config[e] = t[e];
|
|
7394
|
-
}), this.root = o, this.events = t.eventType === "mouse" ?
|
|
7376
|
+
}), this.root = o, this.events = t.eventType === "mouse" ? Mo : Fo, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
7395
7377
|
}
|
|
7396
7378
|
return I(a, [{
|
|
7397
7379
|
key: "_initEvent",
|
|
@@ -7470,7 +7452,7 @@ var Ho = /* @__PURE__ */ function() {
|
|
|
7470
7452
|
}
|
|
7471
7453
|
}]), a;
|
|
7472
7454
|
}();
|
|
7473
|
-
function
|
|
7455
|
+
function Ho() {
|
|
7474
7456
|
return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
7475
7457
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
7476
7458
|
<path opacity="0.54"
|
|
@@ -7479,12 +7461,12 @@ function Uo() {
|
|
|
7479
7461
|
<path transform="translate(5 0)" d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z" fill="white"/>
|
|
7480
7462
|
</svg>`, "image/svg+xml").firstChild;
|
|
7481
7463
|
}
|
|
7482
|
-
var
|
|
7464
|
+
var Ve = {
|
|
7483
7465
|
AUTO: "auto",
|
|
7484
7466
|
SEEKING: "seeking",
|
|
7485
7467
|
PLAYBACK: "playbackrate",
|
|
7486
7468
|
LIGHT: ""
|
|
7487
|
-
},
|
|
7469
|
+
}, Bt = ["videoClick", "videoDbClick"], Uo = /* @__PURE__ */ function(a) {
|
|
7488
7470
|
L(r, a);
|
|
7489
7471
|
var o = D(r);
|
|
7490
7472
|
function r(t) {
|
|
@@ -7518,7 +7500,7 @@ var je = {
|
|
|
7518
7500
|
}, 10), !!l.isStart) {
|
|
7519
7501
|
l.scope > -1 && i.cancelable && i.preventDefault();
|
|
7520
7502
|
var c = e.config, f = c.disableGesture, g = c.gestureX;
|
|
7521
|
-
!f && g ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), h.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(
|
|
7503
|
+
!f && g ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), h.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(Ve.AUTO);
|
|
7522
7504
|
}
|
|
7523
7505
|
}), _(m(e), "onRootTouchMove", function(i) {
|
|
7524
7506
|
e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
|
|
@@ -7556,7 +7538,7 @@ var je = {
|
|
|
7556
7538
|
value: function() {
|
|
7557
7539
|
return {
|
|
7558
7540
|
seekTipIcon: {
|
|
7559
|
-
icon:
|
|
7541
|
+
icon: Ho,
|
|
7560
7542
|
class: "xg-seek-pre"
|
|
7561
7543
|
}
|
|
7562
7544
|
};
|
|
@@ -7565,13 +7547,13 @@ var je = {
|
|
|
7565
7547
|
key: "afterCreate",
|
|
7566
7548
|
value: function() {
|
|
7567
7549
|
var e = this;
|
|
7568
|
-
|
|
7550
|
+
Bt.map(function(g) {
|
|
7569
7551
|
e.__hooks[g] = null;
|
|
7570
7552
|
});
|
|
7571
7553
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
7572
7554
|
i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), h.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = h.createDom("xg-mask", "", {}, "xgmask"), s.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
|
|
7573
7555
|
var l = this.domEventType === "mouse" ? "mouse" : "touch";
|
|
7574
|
-
this.touch = new
|
|
7556
|
+
this.touch = new Bo(this.root, {
|
|
7575
7557
|
eventType: l,
|
|
7576
7558
|
needPreventDefault: !this.config.disableGesture
|
|
7577
7559
|
}), this.root.addEventListener("contextmenu", function(g) {
|
|
@@ -7581,7 +7563,7 @@ var je = {
|
|
|
7581
7563
|
u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(Pe, function() {
|
|
7582
7564
|
var g = e.player, p = e.config;
|
|
7583
7565
|
g.duration * 1e3 < p.moveDuration && (p.moveDuration = g.duration * 1e3);
|
|
7584
|
-
}), this.on([ye,
|
|
7566
|
+
}), this.on([ye, Be], function() {
|
|
7585
7567
|
var g = e.pos, p = g.time, d = g.isStart;
|
|
7586
7568
|
!d && p > 0 && (e.pos.time = 0);
|
|
7587
7569
|
});
|
|
@@ -7604,7 +7586,7 @@ var je = {
|
|
|
7604
7586
|
e.activeSeekNote(g.currentTime, g.forward);
|
|
7605
7587
|
}), ["dragend", "click"].forEach(function(g) {
|
|
7606
7588
|
f.addCallBack(g, function() {
|
|
7607
|
-
e.changeAction(
|
|
7589
|
+
e.changeAction(Ve.AUTO);
|
|
7608
7590
|
});
|
|
7609
7591
|
}));
|
|
7610
7592
|
}
|
|
@@ -7710,7 +7692,7 @@ var je = {
|
|
|
7710
7692
|
}, 500);
|
|
7711
7693
|
break;
|
|
7712
7694
|
}
|
|
7713
|
-
this.changeAction(
|
|
7695
|
+
this.changeAction(Ve.AUTO);
|
|
7714
7696
|
}
|
|
7715
7697
|
}, {
|
|
7716
7698
|
key: "checkIsRootTarget",
|
|
@@ -7748,7 +7730,7 @@ var je = {
|
|
|
7748
7730
|
key: "onClick",
|
|
7749
7731
|
value: function(e) {
|
|
7750
7732
|
var i = this, n = this.player;
|
|
7751
|
-
me(this,
|
|
7733
|
+
me(this, Bt[0], function(s, l) {
|
|
7752
7734
|
i.clickHandler(l.e);
|
|
7753
7735
|
}, {
|
|
7754
7736
|
e,
|
|
@@ -7759,7 +7741,7 @@ var je = {
|
|
|
7759
7741
|
key: "onDbClick",
|
|
7760
7742
|
value: function(e) {
|
|
7761
7743
|
var i = this, n = this.player;
|
|
7762
|
-
me(this,
|
|
7744
|
+
me(this, Bt[1], function(s, l) {
|
|
7763
7745
|
i.dbClickHandler(l.e);
|
|
7764
7746
|
}, {
|
|
7765
7747
|
e,
|
|
@@ -7774,7 +7756,7 @@ var je = {
|
|
|
7774
7756
|
prop: "playbackRate",
|
|
7775
7757
|
from: s.playbackRate,
|
|
7776
7758
|
to: n.pressRate
|
|
7777
|
-
}), s.playbackRate = n.pressRate, this.changeAction(
|
|
7759
|
+
}), s.playbackRate = n.pressRate, this.changeAction(Ve.PLAYBACK));
|
|
7778
7760
|
}
|
|
7779
7761
|
}, {
|
|
7780
7762
|
key: "onPressEnd",
|
|
@@ -7784,7 +7766,7 @@ var je = {
|
|
|
7784
7766
|
prop: "playbackRate",
|
|
7785
7767
|
from: s.playbackRate,
|
|
7786
7768
|
to: i.rate
|
|
7787
|
-
}), s.playbackRate = i.rate, i.rate = 1, this.changeAction(
|
|
7769
|
+
}), s.playbackRate = i.rate, i.rate = 1, this.changeAction(Ve.AUTO));
|
|
7788
7770
|
}
|
|
7789
7771
|
}, {
|
|
7790
7772
|
key: "updateTime",
|
|
@@ -7816,7 +7798,7 @@ var je = {
|
|
|
7816
7798
|
value: function(e) {
|
|
7817
7799
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = this.player, s = this.config, l = !(this.duration !== 1 / 0 && this.duration > 0);
|
|
7818
7800
|
if (!(!e || typeof e != "number" || l || s.disableActive)) {
|
|
7819
|
-
e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(
|
|
7801
|
+
e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(Ve.SEEKING);
|
|
7820
7802
|
var u = n.plugins.start;
|
|
7821
7803
|
u && u.focusHide(), this.find(".xg-dur").innerHTML = h.format(this.duration), this.find(".xg-cur").innerHTML = h.format(e), this.find(".xg-curbar").style.width = "".concat(e / this.duration * 100, "%"), i ? h.removeClass(this.find(".xg-seek-show"), "xg-back") : h.addClass(this.find(".xg-seek-show"), "xg-back"), this.updateThumbnails(e);
|
|
7822
7804
|
}
|
|
@@ -7913,7 +7895,7 @@ var je = {
|
|
|
7913
7895
|
}
|
|
7914
7896
|
}]), r;
|
|
7915
7897
|
}(z);
|
|
7916
|
-
function
|
|
7898
|
+
function zo(a) {
|
|
7917
7899
|
a.preventDefault(), a.returnValue = !1;
|
|
7918
7900
|
}
|
|
7919
7901
|
function Bi(a) {
|
|
@@ -8162,7 +8144,7 @@ var Hi = /* @__PURE__ */ function(a) {
|
|
|
8162
8144
|
isPress: n
|
|
8163
8145
|
}, this.keyCodeMap[s[l]]));
|
|
8164
8146
|
}
|
|
8165
|
-
|
|
8147
|
+
zo(i), i.stopPropagation();
|
|
8166
8148
|
break;
|
|
8167
8149
|
}
|
|
8168
8150
|
}
|
|
@@ -8204,13 +8186,13 @@ var Hi = /* @__PURE__ */ function(a) {
|
|
|
8204
8186
|
}
|
|
8205
8187
|
}]), r;
|
|
8206
8188
|
}(xe);
|
|
8207
|
-
function
|
|
8189
|
+
function Vo() {
|
|
8208
8190
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
8209
8191
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
8210
8192
|
</svg>
|
|
8211
8193
|
`, "image/svg+xml").firstChild;
|
|
8212
8194
|
}
|
|
8213
|
-
var
|
|
8195
|
+
var jo = /* @__PURE__ */ function(a) {
|
|
8214
8196
|
L(r, a);
|
|
8215
8197
|
var o = D(r);
|
|
8216
8198
|
function r() {
|
|
@@ -8220,7 +8202,7 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
8220
8202
|
key: "registerIcons",
|
|
8221
8203
|
value: function() {
|
|
8222
8204
|
return {
|
|
8223
|
-
loadingIcon:
|
|
8205
|
+
loadingIcon: Vo
|
|
8224
8206
|
};
|
|
8225
8207
|
}
|
|
8226
8208
|
}, {
|
|
@@ -8249,7 +8231,7 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
8249
8231
|
};
|
|
8250
8232
|
}
|
|
8251
8233
|
}]), r;
|
|
8252
|
-
}(z),
|
|
8234
|
+
}(z), Wo = [{
|
|
8253
8235
|
tag: "xg-cache",
|
|
8254
8236
|
className: "xgplayer-progress-cache",
|
|
8255
8237
|
styleKey: "cachedColor"
|
|
@@ -8257,7 +8239,7 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
8257
8239
|
tag: "xg-played",
|
|
8258
8240
|
className: "xgplayer-progress-played",
|
|
8259
8241
|
styleKey: "playedColor"
|
|
8260
|
-
}],
|
|
8242
|
+
}], $o = /* @__PURE__ */ function() {
|
|
8261
8243
|
function a(o) {
|
|
8262
8244
|
x(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
8263
8245
|
percent: 1
|
|
@@ -8444,7 +8426,7 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
8444
8426
|
var l = h.createDom("xg-inner", "", {
|
|
8445
8427
|
style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
|
|
8446
8428
|
}, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
|
|
8447
|
-
return r.root.appendChild(l),
|
|
8429
|
+
return r.root.appendChild(l), Wo.forEach(function(u) {
|
|
8448
8430
|
l.appendChild(h.createDom(u.tag, "", {
|
|
8449
8431
|
style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
|
|
8450
8432
|
}, u.className));
|
|
@@ -8460,7 +8442,7 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
8460
8442
|
}(), Ui = {
|
|
8461
8443
|
POINT: "inner-focus-point",
|
|
8462
8444
|
HIGHLIGHT: "inner-focus-highlight"
|
|
8463
|
-
},
|
|
8445
|
+
}, Go = /* @__PURE__ */ function(a) {
|
|
8464
8446
|
L(r, a);
|
|
8465
8447
|
var o = D(r);
|
|
8466
8448
|
function r(t) {
|
|
@@ -8590,7 +8572,7 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
8590
8572
|
e.emitUserAction("fragment_focus", "fragment_focus", u);
|
|
8591
8573
|
}
|
|
8592
8574
|
});
|
|
8593
|
-
this.innerList ? this.innerList.reset(s) : (this.innerList = new
|
|
8575
|
+
this.innerList ? this.innerList.reset(s) : (this.innerList = new $o(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
|
|
8594
8576
|
e[l] = e.innerList[l].bind(e.innerList);
|
|
8595
8577
|
}));
|
|
8596
8578
|
}
|
|
@@ -8626,9 +8608,9 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
8626
8608
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
8627
8609
|
}), this.on(en, function() {
|
|
8628
8610
|
e.onCacheUpdate();
|
|
8629
|
-
}), this.on(
|
|
8611
|
+
}), this.on(Be, function() {
|
|
8630
8612
|
e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
|
|
8631
|
-
}), this.on(
|
|
8613
|
+
}), this.on(He, function() {
|
|
8632
8614
|
e.onReset();
|
|
8633
8615
|
}), this.on(Se, function() {
|
|
8634
8616
|
e.onVideoResize();
|
|
@@ -8871,7 +8853,7 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
8871
8853
|
return Ui;
|
|
8872
8854
|
}
|
|
8873
8855
|
}]), r;
|
|
8874
|
-
}(z),
|
|
8856
|
+
}(z), Ue = /* @__PURE__ */ function(a) {
|
|
8875
8857
|
L(r, a);
|
|
8876
8858
|
var o = D(r);
|
|
8877
8859
|
function r() {
|
|
@@ -8900,7 +8882,7 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
8900
8882
|
this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
|
|
8901
8883
|
}
|
|
8902
8884
|
}]), r;
|
|
8903
|
-
}(z),
|
|
8885
|
+
}(z), Ko = /* @__PURE__ */ function(a) {
|
|
8904
8886
|
L(r, a);
|
|
8905
8887
|
var o = D(r);
|
|
8906
8888
|
function r() {
|
|
@@ -8912,7 +8894,7 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
8912
8894
|
var e = this;
|
|
8913
8895
|
F(O(r.prototype), "afterCreate", this).call(this);
|
|
8914
8896
|
var i = this.player, n = this.config;
|
|
8915
|
-
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([Ze,
|
|
8897
|
+
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([Ze, rt, He], function() {
|
|
8916
8898
|
e.animate(i.paused);
|
|
8917
8899
|
}), this.on(ae, function() {
|
|
8918
8900
|
e.animate(i.paused);
|
|
@@ -8923,11 +8905,11 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
8923
8905
|
value: function() {
|
|
8924
8906
|
return {
|
|
8925
8907
|
play: {
|
|
8926
|
-
icon:
|
|
8908
|
+
icon: li,
|
|
8927
8909
|
class: "xg-icon-play"
|
|
8928
8910
|
},
|
|
8929
8911
|
pause: {
|
|
8930
|
-
icon:
|
|
8912
|
+
icon: ui,
|
|
8931
8913
|
class: "xg-icon-pause"
|
|
8932
8914
|
}
|
|
8933
8915
|
};
|
|
@@ -8987,15 +8969,15 @@ var Wo = /* @__PURE__ */ function(a) {
|
|
|
8987
8969
|
};
|
|
8988
8970
|
}
|
|
8989
8971
|
}]), r;
|
|
8990
|
-
}(
|
|
8991
|
-
function
|
|
8972
|
+
}(Ue);
|
|
8973
|
+
function Yo() {
|
|
8992
8974
|
return new DOMParser().parseFromString(`<svg width="32px" height="40px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
8993
8975
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8994
8976
|
<path d="M11.2374369,14 L17.6187184,7.61871843 C17.9604272,7.27700968 17.9604272,6.72299032 17.6187184,6.38128157 C17.2770097,6.03957281 16.7229903,6.03957281 16.3812816,6.38128157 L9.38128157,13.3812816 C9.03957281,13.7229903 9.03957281,14.2770097 9.38128157,14.6187184 L16.3812816,21.6187184 C16.7229903,21.9604272 17.2770097,21.9604272 17.6187184,21.6187184 C17.9604272,21.2770097 17.9604272,20.7229903 17.6187184,20.3812816 L11.2374369,14 L11.2374369,14 Z" fill="#FFFFFF"></path>
|
|
8995
8977
|
</g>
|
|
8996
8978
|
</svg>`, "image/svg+xml").firstChild;
|
|
8997
8979
|
}
|
|
8998
|
-
var
|
|
8980
|
+
var Xo = /* @__PURE__ */ function(a) {
|
|
8999
8981
|
L(r, a);
|
|
9000
8982
|
var o = D(r);
|
|
9001
8983
|
function r() {
|
|
@@ -9014,7 +8996,7 @@ var qo = /* @__PURE__ */ function(a) {
|
|
|
9014
8996
|
value: function() {
|
|
9015
8997
|
return {
|
|
9016
8998
|
screenBack: {
|
|
9017
|
-
icon:
|
|
8999
|
+
icon: Yo,
|
|
9018
9000
|
class: "xg-fullscreen-back"
|
|
9019
9001
|
}
|
|
9020
9002
|
};
|
|
@@ -9056,19 +9038,19 @@ var qo = /* @__PURE__ */ function(a) {
|
|
|
9056
9038
|
}
|
|
9057
9039
|
}]), r;
|
|
9058
9040
|
}(z);
|
|
9059
|
-
function
|
|
9041
|
+
function qo() {
|
|
9060
9042
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
9061
9043
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>
|
|
9062
9044
|
</svg>
|
|
9063
9045
|
`, "image/svg+xml").firstChild;
|
|
9064
9046
|
}
|
|
9065
|
-
function
|
|
9047
|
+
function Jo() {
|
|
9066
9048
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
9067
9049
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>
|
|
9068
9050
|
</svg>
|
|
9069
9051
|
`, "image/svg+xml").firstChild;
|
|
9070
9052
|
}
|
|
9071
|
-
var
|
|
9053
|
+
var Zo = /* @__PURE__ */ function(a) {
|
|
9072
9054
|
L(r, a);
|
|
9073
9055
|
var o = D(r);
|
|
9074
9056
|
function r() {
|
|
@@ -9103,7 +9085,7 @@ var Qo = /* @__PURE__ */ function(a) {
|
|
|
9103
9085
|
var u = e.find(".xg-tips");
|
|
9104
9086
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
9105
9087
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
9106
|
-
plugin:
|
|
9088
|
+
plugin: Xo,
|
|
9107
9089
|
options: {
|
|
9108
9090
|
config: {
|
|
9109
9091
|
onClick: function(u) {
|
|
@@ -9119,11 +9101,11 @@ var Qo = /* @__PURE__ */ function(a) {
|
|
|
9119
9101
|
value: function() {
|
|
9120
9102
|
return {
|
|
9121
9103
|
fullscreen: {
|
|
9122
|
-
icon:
|
|
9104
|
+
icon: qo,
|
|
9123
9105
|
class: "xg-get-fullscreen"
|
|
9124
9106
|
},
|
|
9125
9107
|
exitFullscreen: {
|
|
9126
|
-
icon:
|
|
9108
|
+
icon: Jo,
|
|
9127
9109
|
class: "xg-exit-fullscreen"
|
|
9128
9110
|
}
|
|
9129
9111
|
};
|
|
@@ -9204,7 +9186,7 @@ var Qo = /* @__PURE__ */ function(a) {
|
|
|
9204
9186
|
};
|
|
9205
9187
|
}
|
|
9206
9188
|
}]), r;
|
|
9207
|
-
}(
|
|
9189
|
+
}(Ue), Qo = /* @__PURE__ */ function(a) {
|
|
9208
9190
|
L(r, a);
|
|
9209
9191
|
var o = D(r);
|
|
9210
9192
|
function r(t) {
|
|
@@ -9234,9 +9216,9 @@ var Qo = /* @__PURE__ */ function(a) {
|
|
|
9234
9216
|
var e = this, i = this.player.controls.config.mode;
|
|
9235
9217
|
this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Pe, _e, oe], function(n) {
|
|
9236
9218
|
n.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
9237
|
-
}), this.on(
|
|
9219
|
+
}), this.on(Be, function() {
|
|
9238
9220
|
e.onTimeUpdate(!0);
|
|
9239
|
-
}), this.on(
|
|
9221
|
+
}), this.on(He, function() {
|
|
9240
9222
|
e.onReset();
|
|
9241
9223
|
}));
|
|
9242
9224
|
}
|
|
@@ -9354,7 +9336,7 @@ var Qo = /* @__PURE__ */ function(a) {
|
|
|
9354
9336
|
};
|
|
9355
9337
|
}
|
|
9356
9338
|
}]), r;
|
|
9357
|
-
}(z),
|
|
9339
|
+
}(z), ea = /* @__PURE__ */ function(a) {
|
|
9358
9340
|
L(r, a);
|
|
9359
9341
|
var o = D(r);
|
|
9360
9342
|
function r() {
|
|
@@ -9410,7 +9392,7 @@ var Qo = /* @__PURE__ */ function(a) {
|
|
|
9410
9392
|
return I(r, [{
|
|
9411
9393
|
key: "afterCreate",
|
|
9412
9394
|
value: function() {
|
|
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(
|
|
9395
|
+
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(bt, this._onSeeking), this.on(ae, this._onPlay);
|
|
9414
9396
|
}
|
|
9415
9397
|
}, {
|
|
9416
9398
|
key: "setConfig",
|
|
@@ -9492,28 +9474,28 @@ var Qo = /* @__PURE__ */ function(a) {
|
|
|
9492
9474
|
}
|
|
9493
9475
|
}]), r;
|
|
9494
9476
|
}(xe);
|
|
9495
|
-
function
|
|
9477
|
+
function ta() {
|
|
9496
9478
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9497
9479
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9498
9480
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
9499
9481
|
</svg>
|
|
9500
9482
|
`, "image/svg+xml").firstChild;
|
|
9501
9483
|
}
|
|
9502
|
-
function
|
|
9484
|
+
function ia() {
|
|
9503
9485
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9504
9486
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9505
9487
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
9506
9488
|
</svg>
|
|
9507
9489
|
`, "image/svg+xml").firstChild;
|
|
9508
9490
|
}
|
|
9509
|
-
function
|
|
9491
|
+
function na() {
|
|
9510
9492
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9511
9493
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9512
9494
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>
|
|
9513
9495
|
</svg>
|
|
9514
9496
|
`, "image/svg+xml").firstChild;
|
|
9515
9497
|
}
|
|
9516
|
-
var
|
|
9498
|
+
var ra = /* @__PURE__ */ function(a) {
|
|
9517
9499
|
L(r, a);
|
|
9518
9500
|
var o = D(r);
|
|
9519
9501
|
function r() {
|
|
@@ -9561,15 +9543,15 @@ var sa = /* @__PURE__ */ function(a) {
|
|
|
9561
9543
|
value: function() {
|
|
9562
9544
|
return {
|
|
9563
9545
|
volumeSmall: {
|
|
9564
|
-
icon:
|
|
9546
|
+
icon: ia,
|
|
9565
9547
|
class: "xg-volume-small"
|
|
9566
9548
|
},
|
|
9567
9549
|
volumeLarge: {
|
|
9568
|
-
icon:
|
|
9550
|
+
icon: ta,
|
|
9569
9551
|
class: "xg-volume"
|
|
9570
9552
|
},
|
|
9571
9553
|
volumeMuted: {
|
|
9572
|
-
icon:
|
|
9554
|
+
icon: na,
|
|
9573
9555
|
class: "xg-volume-mute"
|
|
9574
9556
|
}
|
|
9575
9557
|
};
|
|
@@ -9708,7 +9690,7 @@ var sa = /* @__PURE__ */ function(a) {
|
|
|
9708
9690
|
}
|
|
9709
9691
|
}]), r;
|
|
9710
9692
|
}(z);
|
|
9711
|
-
function
|
|
9693
|
+
function sa() {
|
|
9712
9694
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
9713
9695
|
<g clip-path="url(#clip0)">
|
|
9714
9696
|
<path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"/>
|
|
@@ -9722,7 +9704,7 @@ function oa() {
|
|
|
9722
9704
|
</svg>
|
|
9723
9705
|
`, "image/svg+xml").firstChild;
|
|
9724
9706
|
}
|
|
9725
|
-
var
|
|
9707
|
+
var oa = /* @__PURE__ */ function(a) {
|
|
9726
9708
|
L(r, a);
|
|
9727
9709
|
var o = D(r);
|
|
9728
9710
|
function r(t) {
|
|
@@ -9785,7 +9767,7 @@ var aa = /* @__PURE__ */ function(a) {
|
|
|
9785
9767
|
key: "registerIcons",
|
|
9786
9768
|
value: function() {
|
|
9787
9769
|
return {
|
|
9788
|
-
rotate:
|
|
9770
|
+
rotate: sa
|
|
9789
9771
|
};
|
|
9790
9772
|
}
|
|
9791
9773
|
}, {
|
|
@@ -9817,15 +9799,15 @@ var aa = /* @__PURE__ */ function(a) {
|
|
|
9817
9799
|
};
|
|
9818
9800
|
}
|
|
9819
9801
|
}]), r;
|
|
9820
|
-
}(
|
|
9821
|
-
function
|
|
9802
|
+
}(Ue);
|
|
9803
|
+
function aa() {
|
|
9822
9804
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9823
9805
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
9824
9806
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
9825
9807
|
fill="white" />
|
|
9826
9808
|
</svg>`, "image/svg+xml").firstChild;
|
|
9827
9809
|
}
|
|
9828
|
-
function
|
|
9810
|
+
function la() {
|
|
9829
9811
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9830
9812
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
9831
9813
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
@@ -9835,11 +9817,11 @@ function ua() {
|
|
|
9835
9817
|
fill="white" />
|
|
9836
9818
|
</svg>`, "image/svg+xml").firstChild;
|
|
9837
9819
|
}
|
|
9838
|
-
var
|
|
9820
|
+
var je = {
|
|
9839
9821
|
PIP: "picture-in-picture",
|
|
9840
9822
|
INLINE: "inline",
|
|
9841
9823
|
FULLSCREEN: "fullscreen"
|
|
9842
|
-
},
|
|
9824
|
+
}, ua = /* @__PURE__ */ function(a) {
|
|
9843
9825
|
L(r, a);
|
|
9844
9826
|
var o = D(r);
|
|
9845
9827
|
function r() {
|
|
@@ -9870,7 +9852,7 @@ var We = {
|
|
|
9870
9852
|
key: "afterCreate",
|
|
9871
9853
|
value: function() {
|
|
9872
9854
|
var e = this;
|
|
9873
|
-
this.isPIPAvailable() && (F(O(r.prototype), "afterCreate", this).call(this), this.pMode =
|
|
9855
|
+
this.isPIPAvailable() && (F(O(r.prototype), "afterCreate", this).call(this), this.pMode = je.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(wt, function() {
|
|
9874
9856
|
e.config.showIcon && (h.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
9875
9857
|
}));
|
|
9876
9858
|
}
|
|
@@ -9879,11 +9861,11 @@ var We = {
|
|
|
9879
9861
|
value: function() {
|
|
9880
9862
|
return {
|
|
9881
9863
|
pipIcon: {
|
|
9882
|
-
icon:
|
|
9864
|
+
icon: aa,
|
|
9883
9865
|
class: "xg-get-pip"
|
|
9884
9866
|
},
|
|
9885
9867
|
pipIconExit: {
|
|
9886
|
-
icon:
|
|
9868
|
+
icon: la,
|
|
9887
9869
|
class: "xg-exit-pip"
|
|
9888
9870
|
}
|
|
9889
9871
|
};
|
|
@@ -9902,12 +9884,12 @@ var We = {
|
|
|
9902
9884
|
var n = i.paused;
|
|
9903
9885
|
h.setTimeout(e, function() {
|
|
9904
9886
|
!n && i.mediaPlay();
|
|
9905
|
-
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(
|
|
9887
|
+
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(Kt, !1);
|
|
9906
9888
|
}, this.enterPIPCallback = function(n) {
|
|
9907
|
-
i.emit(
|
|
9889
|
+
i.emit(Kt, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
9908
9890
|
}, this.onWebkitpresentationmodechanged = function(n) {
|
|
9909
9891
|
var s = i.media.webkitPresentationMode;
|
|
9910
|
-
e.pMode ===
|
|
9892
|
+
e.pMode === je.FULLSCREEN && s !== je.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === je.PIP ? e.enterPIPCallback(n) : s === je.INLINE && e.leavePIPCallback(n);
|
|
9911
9893
|
}, i.media && (i.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), i.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), r.checkWebkitSetPresentationMode(i.media) && i.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
|
|
9912
9894
|
}
|
|
9913
9895
|
}, {
|
|
@@ -9986,7 +9968,7 @@ var We = {
|
|
|
9986
9968
|
key: "isPip",
|
|
9987
9969
|
get: function() {
|
|
9988
9970
|
var e, i = this.player;
|
|
9989
|
-
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode ===
|
|
9971
|
+
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === je.PIP;
|
|
9990
9972
|
}
|
|
9991
9973
|
}, {
|
|
9992
9974
|
key: "isPIPAvailable",
|
|
@@ -10041,21 +10023,21 @@ var We = {
|
|
|
10041
10023
|
return typeof e.webkitSetPresentationMode == "function";
|
|
10042
10024
|
}
|
|
10043
10025
|
}]), r;
|
|
10044
|
-
}(
|
|
10045
|
-
function
|
|
10026
|
+
}(Ue);
|
|
10027
|
+
function ca() {
|
|
10046
10028
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
10047
10029
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
10048
10030
|
</svg>
|
|
10049
10031
|
`, "image/svg+xml").firstChild;
|
|
10050
10032
|
}
|
|
10051
|
-
var
|
|
10033
|
+
var fa = /* @__PURE__ */ function(a) {
|
|
10052
10034
|
L(r, a);
|
|
10053
10035
|
var o = D(r);
|
|
10054
10036
|
function r(t) {
|
|
10055
10037
|
var e;
|
|
10056
10038
|
return x(this, r), e = o.call(this, t), _(m(e), "playNext", function(i) {
|
|
10057
10039
|
var n = m(e), s = n.player;
|
|
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(
|
|
10040
|
+
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(vt, e.idx + 1)) : (e.nextHandler(), s.emit(vt));
|
|
10059
10041
|
}), e.idx = -1, e;
|
|
10060
10042
|
}
|
|
10061
10043
|
return I(r, [{
|
|
@@ -10067,7 +10049,7 @@ var ha = /* @__PURE__ */ function(a) {
|
|
|
10067
10049
|
key: "registerIcons",
|
|
10068
10050
|
value: function() {
|
|
10069
10051
|
return {
|
|
10070
|
-
playNext:
|
|
10052
|
+
playNext: ca
|
|
10071
10053
|
};
|
|
10072
10054
|
}
|
|
10073
10055
|
}, {
|
|
@@ -10120,7 +10102,7 @@ var ha = /* @__PURE__ */ function(a) {
|
|
|
10120
10102
|
(function(a, o) {
|
|
10121
10103
|
(function(r, t) {
|
|
10122
10104
|
a.exports = t();
|
|
10123
|
-
})(
|
|
10105
|
+
})(vs, function() {
|
|
10124
10106
|
return function r(t, e, i) {
|
|
10125
10107
|
var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, f = document.createElement("a"), g = function(R) {
|
|
10126
10108
|
return String(R);
|
|
@@ -10189,9 +10171,9 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
10189
10171
|
};
|
|
10190
10172
|
});
|
|
10191
10173
|
})(Cn);
|
|
10192
|
-
var
|
|
10193
|
-
const
|
|
10194
|
-
function
|
|
10174
|
+
var ha = Cn.exports;
|
|
10175
|
+
const da = /* @__PURE__ */ Jt(ha);
|
|
10176
|
+
function ga() {
|
|
10195
10177
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
10196
10178
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
10197
10179
|
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
@@ -10208,7 +10190,7 @@ function pa() {
|
|
|
10208
10190
|
</svg>
|
|
10209
10191
|
`, "image/svg+xml").firstChild;
|
|
10210
10192
|
}
|
|
10211
|
-
var
|
|
10193
|
+
var pa = /* @__PURE__ */ function(a) {
|
|
10212
10194
|
L(r, a);
|
|
10213
10195
|
var o = D(r);
|
|
10214
10196
|
function r(t) {
|
|
@@ -10219,7 +10201,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
10219
10201
|
var n = e.playerConfig.url, s = "";
|
|
10220
10202
|
h.typeOf(n) === "String" ? s = n : h.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
|
|
10221
10203
|
var l = e.getAbsoluteURL(s);
|
|
10222
|
-
|
|
10204
|
+
da(l), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
10223
10205
|
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
10224
10206
|
}, 300);
|
|
10225
10207
|
}
|
|
@@ -10238,7 +10220,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
10238
10220
|
key: "registerIcons",
|
|
10239
10221
|
value: function() {
|
|
10240
10222
|
return {
|
|
10241
|
-
download:
|
|
10223
|
+
download: ga
|
|
10242
10224
|
};
|
|
10243
10225
|
}
|
|
10244
10226
|
}, {
|
|
@@ -10280,7 +10262,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
10280
10262
|
};
|
|
10281
10263
|
}
|
|
10282
10264
|
}]), r;
|
|
10283
|
-
}(
|
|
10265
|
+
}(Ue), va = /* @__PURE__ */ function(a) {
|
|
10284
10266
|
L(r, a);
|
|
10285
10267
|
var o = D(r);
|
|
10286
10268
|
function r() {
|
|
@@ -10406,7 +10388,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
10406
10388
|
};
|
|
10407
10389
|
}
|
|
10408
10390
|
}]), r;
|
|
10409
|
-
}(
|
|
10391
|
+
}(Ue), ma = /* @__PURE__ */ function() {
|
|
10410
10392
|
function a(o) {
|
|
10411
10393
|
x(this, a), this.config = o.config, this.parent = o.root, this.root = h.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), o.root.appendChild(this.root);
|
|
10412
10394
|
var r = this.config.maxHeight;
|
|
@@ -10482,14 +10464,14 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
10482
10464
|
SIDE: "side",
|
|
10483
10465
|
MIDDLE: "middle",
|
|
10484
10466
|
DEFAULT: "default"
|
|
10485
|
-
},
|
|
10467
|
+
}, We = {
|
|
10486
10468
|
CLICK: "click",
|
|
10487
10469
|
HOVER: "hover"
|
|
10488
10470
|
};
|
|
10489
|
-
function
|
|
10471
|
+
function ya(a, o) {
|
|
10490
10472
|
return a === de.SIDE ? o === W.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10491
10473
|
}
|
|
10492
|
-
var De = N.device === "mobile",
|
|
10474
|
+
var De = N.device === "mobile", Ct = /* @__PURE__ */ function(a) {
|
|
10493
10475
|
L(r, a);
|
|
10494
10476
|
var o = D(r);
|
|
10495
10477
|
function r(t) {
|
|
@@ -10501,7 +10483,7 @@ var De = N.device === "mobile", bt = /* @__PURE__ */ function(a) {
|
|
|
10501
10483
|
}), _(m(e), "switchActiveState", function(i) {
|
|
10502
10484
|
i.stopPropagation();
|
|
10503
10485
|
var n = e.config.toggleMode;
|
|
10504
|
-
n ===
|
|
10486
|
+
n === We.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
|
|
10505
10487
|
}), _(m(e), "onLeave", function(i) {
|
|
10506
10488
|
i.stopPropagation(), e.emit("icon_mouseleave", {
|
|
10507
10489
|
pluginName: e.pluginName
|
|
@@ -10525,9 +10507,9 @@ var De = N.device === "mobile", bt = /* @__PURE__ */ function(a) {
|
|
|
10525
10507
|
e._resizeList();
|
|
10526
10508
|
}), this.once(ye, function() {
|
|
10527
10509
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
10528
|
-
}), De && this.on(
|
|
10510
|
+
}), De && this.on(ii, function() {
|
|
10529
10511
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
10530
|
-
}), De ? (i.toggleMode =
|
|
10512
|
+
}), De ? (i.toggleMode = We.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === We.CLICK ? "click" : "mouseenter", i.toggleMode === We.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);
|
|
10531
10513
|
}
|
|
10532
10514
|
}, {
|
|
10533
10515
|
key: "initIcons",
|
|
@@ -10600,7 +10582,7 @@ var De = N.device === "mobile", bt = /* @__PURE__ */ function(a) {
|
|
|
10600
10582
|
var c = {
|
|
10601
10583
|
config: {
|
|
10602
10584
|
data: e || [],
|
|
10603
|
-
className:
|
|
10585
|
+
className: ya(s.listType, s.position),
|
|
10604
10586
|
onItemClick: function(v, y) {
|
|
10605
10587
|
n.onItemClick(v, y);
|
|
10606
10588
|
},
|
|
@@ -10610,7 +10592,7 @@ var De = N.device === "mobile", bt = /* @__PURE__ */ function(a) {
|
|
|
10610
10592
|
};
|
|
10611
10593
|
if (this.config.isShowIcon) {
|
|
10612
10594
|
var f = this.player.root.getBoundingClientRect(), g = f.height, p = s.listType === de.MIDDLE ? g - 50 : g;
|
|
10613
|
-
p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new
|
|
10595
|
+
p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new ma(c), this.changeCurrentText(), this.show();
|
|
10614
10596
|
}
|
|
10615
10597
|
this._resizeList();
|
|
10616
10598
|
}
|
|
@@ -10628,7 +10610,7 @@ var De = N.device === "mobile", bt = /* @__PURE__ */ function(a) {
|
|
|
10628
10610
|
key: "destroy",
|
|
10629
10611
|
value: function() {
|
|
10630
10612
|
var e = this.config;
|
|
10631
|
-
e.toggleMode ===
|
|
10613
|
+
e.toggleMode === We.CLICK ? this.unbind(this.activeEvent, this.switchActiveState) : (this.unbind(this.activeEvent, this.onEnter), this.unbind("mouseleave", this.onLeave)), this.isIcons && this.unbind("click", this.onIconClick), this.optionsList && (this.optionsList.destroy(), this.optionsList = null);
|
|
10632
10614
|
}
|
|
10633
10615
|
}, {
|
|
10634
10616
|
key: "render",
|
|
@@ -10656,12 +10638,12 @@ var De = N.device === "mobile", bt = /* @__PURE__ */ function(a) {
|
|
|
10656
10638
|
hidePortrait: !0,
|
|
10657
10639
|
isShowIcon: !1,
|
|
10658
10640
|
isItemClickHide: !0,
|
|
10659
|
-
toggleMode:
|
|
10641
|
+
toggleMode: We.HOVER,
|
|
10660
10642
|
heightLimit: !0
|
|
10661
10643
|
};
|
|
10662
10644
|
}
|
|
10663
10645
|
}]), r;
|
|
10664
|
-
}(z),
|
|
10646
|
+
}(z), _a = /* @__PURE__ */ function(a) {
|
|
10665
10647
|
L(r, a);
|
|
10666
10648
|
var o = D(r);
|
|
10667
10649
|
function r(t) {
|
|
@@ -10682,7 +10664,7 @@ var De = N.device === "mobile", bt = /* @__PURE__ */ function(a) {
|
|
|
10682
10664
|
var e = this;
|
|
10683
10665
|
F(O(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
|
|
10684
10666
|
e.changeDefinitionList(i);
|
|
10685
|
-
}), this.on(
|
|
10667
|
+
}), this.on(oi, function(i) {
|
|
10686
10668
|
e.renderItemList(e.config.list, i.to);
|
|
10687
10669
|
}), this.player.definitionList.length < 2 && this.hide();
|
|
10688
10670
|
}
|
|
@@ -10750,7 +10732,7 @@ var De = N.device === "mobile", bt = /* @__PURE__ */ function(a) {
|
|
|
10750
10732
|
}, {
|
|
10751
10733
|
key: "defaultConfig",
|
|
10752
10734
|
get: function() {
|
|
10753
|
-
return G(G({},
|
|
10735
|
+
return G(G({}, Ct.defaultConfig), {}, {
|
|
10754
10736
|
position: W.CONTROLS_RIGHT,
|
|
10755
10737
|
index: 3,
|
|
10756
10738
|
list: [],
|
|
@@ -10762,7 +10744,7 @@ var De = N.device === "mobile", bt = /* @__PURE__ */ function(a) {
|
|
|
10762
10744
|
});
|
|
10763
10745
|
}
|
|
10764
10746
|
}]), r;
|
|
10765
|
-
}(
|
|
10747
|
+
}(Ct), ka = /* @__PURE__ */ function(a) {
|
|
10766
10748
|
L(r, a);
|
|
10767
10749
|
var o = D(r);
|
|
10768
10750
|
function r(t) {
|
|
@@ -10844,7 +10826,7 @@ var De = N.device === "mobile", bt = /* @__PURE__ */ function(a) {
|
|
|
10844
10826
|
}, {
|
|
10845
10827
|
key: "defaultConfig",
|
|
10846
10828
|
get: function() {
|
|
10847
|
-
return G(G({},
|
|
10829
|
+
return G(G({}, Ct.defaultConfig), {}, {
|
|
10848
10830
|
position: W.CONTROLS_RIGHT,
|
|
10849
10831
|
index: 4,
|
|
10850
10832
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
@@ -10854,14 +10836,14 @@ var De = N.device === "mobile", bt = /* @__PURE__ */ function(a) {
|
|
|
10854
10836
|
});
|
|
10855
10837
|
}
|
|
10856
10838
|
}]), r;
|
|
10857
|
-
}(
|
|
10858
|
-
function
|
|
10839
|
+
}(Ct);
|
|
10840
|
+
function Ca() {
|
|
10859
10841
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10860
10842
|
<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>
|
|
10861
10843
|
</svg>
|
|
10862
10844
|
`, "image/svg+xml").firstChild;
|
|
10863
10845
|
}
|
|
10864
|
-
function
|
|
10846
|
+
function ba() {
|
|
10865
10847
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10866
10848
|
<path fill="#fff" transform="scale(1.3, 1.3)" d="M9,10V9a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1v2a.9.9,0,0,1-1,1H8a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1Zm6,4v1a1,1,0,0,1-2,0V13a.9.9,0,0,1,1-1h2a1,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>
|
|
10867
10849
|
</svg>
|
|
@@ -10882,7 +10864,7 @@ var zi = /* @__PURE__ */ function(a) {
|
|
|
10882
10864
|
key: "afterCreate",
|
|
10883
10865
|
value: function() {
|
|
10884
10866
|
var e = this;
|
|
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(
|
|
10867
|
+
F(O(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(gt, function(i) {
|
|
10886
10868
|
e.animate(i);
|
|
10887
10869
|
}), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
|
|
10888
10870
|
pre: function(n) {
|
|
@@ -10921,11 +10903,11 @@ var zi = /* @__PURE__ */ function(a) {
|
|
|
10921
10903
|
value: function() {
|
|
10922
10904
|
return {
|
|
10923
10905
|
cssFullscreen: {
|
|
10924
|
-
icon:
|
|
10906
|
+
icon: Ca,
|
|
10925
10907
|
class: "xg-get-cssfull"
|
|
10926
10908
|
},
|
|
10927
10909
|
exitCssFullscreen: {
|
|
10928
|
-
icon:
|
|
10910
|
+
icon: ba,
|
|
10929
10911
|
class: "xg-exit-cssfull"
|
|
10930
10912
|
}
|
|
10931
10913
|
};
|
|
@@ -10961,7 +10943,7 @@ var zi = /* @__PURE__ */ function(a) {
|
|
|
10961
10943
|
};
|
|
10962
10944
|
}
|
|
10963
10945
|
}]), r;
|
|
10964
|
-
}(
|
|
10946
|
+
}(Ue), wa = /* @__PURE__ */ function(a) {
|
|
10965
10947
|
L(r, a);
|
|
10966
10948
|
var o = D(r);
|
|
10967
10949
|
function r() {
|
|
@@ -10975,7 +10957,7 @@ var zi = /* @__PURE__ */ function(a) {
|
|
|
10975
10957
|
pre: function(n) {
|
|
10976
10958
|
n.preventDefault(), n.stopPropagation();
|
|
10977
10959
|
}
|
|
10978
|
-
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(
|
|
10960
|
+
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(rt, function(i) {
|
|
10979
10961
|
e.onError(i);
|
|
10980
10962
|
});
|
|
10981
10963
|
}
|
|
@@ -11022,7 +11004,7 @@ var zi = /* @__PURE__ */ function(a) {
|
|
|
11022
11004
|
return "error";
|
|
11023
11005
|
}
|
|
11024
11006
|
}]), r;
|
|
11025
|
-
}(z),
|
|
11007
|
+
}(z), Ta = /* @__PURE__ */ function(a) {
|
|
11026
11008
|
L(r, a);
|
|
11027
11009
|
var o = D(r);
|
|
11028
11010
|
function r() {
|
|
@@ -11252,7 +11234,7 @@ var ji = {
|
|
|
11252
11234
|
return r.find('xg-spot[data-id="'.concat(o, '"]'));
|
|
11253
11235
|
}
|
|
11254
11236
|
};
|
|
11255
|
-
function
|
|
11237
|
+
function Ea(a) {
|
|
11256
11238
|
var o = a.config, r = a.player;
|
|
11257
11239
|
Object.keys(ji).map(function(e) {
|
|
11258
11240
|
a[e] = ji[e].bind(a);
|
|
@@ -11269,14 +11251,14 @@ function Sa(a) {
|
|
|
11269
11251
|
a.positionDots();
|
|
11270
11252
|
});
|
|
11271
11253
|
}
|
|
11272
|
-
var
|
|
11254
|
+
var $e = {
|
|
11273
11255
|
dragmove: "onProgressMove",
|
|
11274
11256
|
dragstart: "onProgressDragStart",
|
|
11275
11257
|
dragend: "onProgressDragEnd",
|
|
11276
11258
|
click: "onProgressClick",
|
|
11277
11259
|
mouseover: "onProgressMouseOver",
|
|
11278
11260
|
mouseenter: "onProgressMouseOver"
|
|
11279
|
-
},
|
|
11261
|
+
}, Sa = /* @__PURE__ */ function(a) {
|
|
11280
11262
|
L(r, a);
|
|
11281
11263
|
var o = D(r);
|
|
11282
11264
|
function r(t) {
|
|
@@ -11327,7 +11309,7 @@ var Ge = {
|
|
|
11327
11309
|
n.seekTime && e.player.seek(n.seekTime);
|
|
11328
11310
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
11329
11311
|
e.setTimeContent(h.format(i));
|
|
11330
|
-
}),
|
|
11312
|
+
}), Ea(this), this.on(Pe, function() {
|
|
11331
11313
|
e.show();
|
|
11332
11314
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
11333
11315
|
}
|
|
@@ -11349,8 +11331,8 @@ var Ge = {
|
|
|
11349
11331
|
key: "bindEvents",
|
|
11350
11332
|
value: function() {
|
|
11351
11333
|
var e = this, i = this.player.plugins.progress;
|
|
11352
|
-
if (i && (Object.keys(
|
|
11353
|
-
e[
|
|
11334
|
+
if (i && (Object.keys($e).map(function(s) {
|
|
11335
|
+
e[$e[s]] = e[$e[s]].bind(e), i.addCallBack(s, e[$e[s]]);
|
|
11354
11336
|
}), N.device !== "mobile")) {
|
|
11355
11337
|
this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
|
|
11356
11338
|
var n = this.hook("previewClick", function() {
|
|
@@ -11508,8 +11490,8 @@ var Ge = {
|
|
|
11508
11490
|
key: "destroy",
|
|
11509
11491
|
value: function() {
|
|
11510
11492
|
var e = this, i = this.player.plugins.progress;
|
|
11511
|
-
i && Object.keys(
|
|
11512
|
-
i.removeCallBack(n, e[
|
|
11493
|
+
i && Object.keys($e).map(function(n) {
|
|
11494
|
+
i.removeCallBack(n, e[$e[n]]);
|
|
11513
11495
|
}), this.videothumbnail = null, this.thumbnail = null, this.videoPreview && this.player.root.removeChild(this.videoPreview), this.unbind(".xg-spot-info", "mousemove", this.onMousemove), this.unbind(".xg-spot-info", "mousedown", this.onMousedown), this.unbind(".xg-spot-info", "mouseup", this.onMouseup), this.unbind(".xg-spot-content", "mouseup", this.handlerPreviewClick);
|
|
11514
11496
|
}
|
|
11515
11497
|
}, {
|
|
@@ -11551,7 +11533,7 @@ var Ge = {
|
|
|
11551
11533
|
};
|
|
11552
11534
|
}
|
|
11553
11535
|
}]), r;
|
|
11554
|
-
}(z),
|
|
11536
|
+
}(z), xa = /* @__PURE__ */ function(a) {
|
|
11555
11537
|
L(r, a);
|
|
11556
11538
|
var o = D(r);
|
|
11557
11539
|
function r(t) {
|
|
@@ -11686,10 +11668,10 @@ var Ge = {
|
|
|
11686
11668
|
}
|
|
11687
11669
|
}]), r;
|
|
11688
11670
|
}(z);
|
|
11689
|
-
function
|
|
11671
|
+
function Ht(a) {
|
|
11690
11672
|
return a ? "background:".concat(a, ";") : "";
|
|
11691
11673
|
}
|
|
11692
|
-
var
|
|
11674
|
+
var Ia = /* @__PURE__ */ function(a) {
|
|
11693
11675
|
L(r, a);
|
|
11694
11676
|
var o = D(r);
|
|
11695
11677
|
function r() {
|
|
@@ -11719,7 +11701,7 @@ var Pa = /* @__PURE__ */ function(a) {
|
|
|
11719
11701
|
key: "afterCreate",
|
|
11720
11702
|
value: function() {
|
|
11721
11703
|
var e = this;
|
|
11722
|
-
this.root && (this.on(oe, this.onTimeupdate), this.on(
|
|
11704
|
+
this.root && (this.on(oe, this.onTimeupdate), this.on(He, function() {
|
|
11723
11705
|
e.reset();
|
|
11724
11706
|
}));
|
|
11725
11707
|
}
|
|
@@ -11746,9 +11728,9 @@ var Pa = /* @__PURE__ */ function(a) {
|
|
|
11746
11728
|
var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
|
|
11747
11729
|
if (n) {
|
|
11748
11730
|
var s = this.config, l = s.mode, u = s.height, c = {
|
|
11749
|
-
cached:
|
|
11750
|
-
played:
|
|
11751
|
-
progress:
|
|
11731
|
+
cached: Ht(i.cachedColor),
|
|
11732
|
+
played: Ht(i.playedColor),
|
|
11733
|
+
progress: Ht(i.progressColor),
|
|
11752
11734
|
height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
|
|
11753
11735
|
}, f = l === "show" ? "xg-mini-progress-show" : "";
|
|
11754
11736
|
return '<xg-mini-progress class="xg-mini-progress '.concat(f, '" style="').concat(c.progress, " ").concat(c.height, `">
|
|
@@ -11771,20 +11753,20 @@ var Pa = /* @__PURE__ */ function(a) {
|
|
|
11771
11753
|
};
|
|
11772
11754
|
}
|
|
11773
11755
|
}]), r;
|
|
11774
|
-
}(z),
|
|
11756
|
+
}(z), Ge = {
|
|
11775
11757
|
REAL_TIME: "realtime",
|
|
11776
11758
|
FIRST_FRAME: "firstframe",
|
|
11777
11759
|
FRAME_RATE: "framerate",
|
|
11778
11760
|
POSTER: "poster"
|
|
11779
11761
|
};
|
|
11780
|
-
function
|
|
11762
|
+
function Pa() {
|
|
11781
11763
|
try {
|
|
11782
11764
|
return parseInt(window.performance.now(), 10);
|
|
11783
11765
|
} catch {
|
|
11784
11766
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
11785
11767
|
}
|
|
11786
11768
|
}
|
|
11787
|
-
function
|
|
11769
|
+
function Aa() {
|
|
11788
11770
|
try {
|
|
11789
11771
|
var a = document.createElement("canvas").getContext;
|
|
11790
11772
|
return !!a;
|
|
@@ -11792,7 +11774,7 @@ function La() {
|
|
|
11792
11774
|
return !1;
|
|
11793
11775
|
}
|
|
11794
11776
|
}
|
|
11795
|
-
var
|
|
11777
|
+
var lt = null, La = /* @__PURE__ */ function(a) {
|
|
11796
11778
|
L(r, a);
|
|
11797
11779
|
var o = D(r);
|
|
11798
11780
|
function r() {
|
|
@@ -11813,8 +11795,8 @@ var ut = null, Da = /* @__PURE__ */ function(a) {
|
|
|
11813
11795
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
11814
11796
|
}
|
|
11815
11797
|
}), _(m(t), "start", function(s, l) {
|
|
11816
|
-
var u = t.player.video, c =
|
|
11817
|
-
!f || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode ===
|
|
11798
|
+
var u = t.player.video, c = Pa(), f = t.checkVideoIsSupport(u);
|
|
11799
|
+
!f || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === Ge.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(f, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? h.setTimeout(m(t), t.start, l) : h.requestAnimationFrame(t.start));
|
|
11818
11800
|
}), _(m(t), "stop", function() {
|
|
11819
11801
|
t.frameId && (t._loopType === "timer" ? h.clearTimeout(m(t), t.frameId) : h.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
11820
11802
|
}), t;
|
|
@@ -11833,16 +11815,16 @@ var ut = null, Da = /* @__PURE__ */ function(a) {
|
|
|
11833
11815
|
x: 0,
|
|
11834
11816
|
y: 0,
|
|
11835
11817
|
pi: 0
|
|
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 !==
|
|
11818
|
+
}, 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 !== Ge.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(wt, function() {
|
|
11837
11819
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
11838
|
-
}), s !==
|
|
11820
|
+
}), s !== Ge.POSTER && (s !== Ge.FIRST_FRAME && (this.on(He, function() {
|
|
11839
11821
|
e.stop();
|
|
11840
11822
|
}), this.on(ae, function() {
|
|
11841
11823
|
var u = e.config.startInterval;
|
|
11842
11824
|
e._checkIfCanStart() && e.start(0, u);
|
|
11843
11825
|
}), this.on(Ze, function() {
|
|
11844
11826
|
e.stop();
|
|
11845
|
-
})), this.on(Ce, this.onLoadedData), this.on(
|
|
11827
|
+
})), this.on(Ce, this.onLoadedData), this.on(ti, function() {
|
|
11846
11828
|
e._isLoaded = !1, e.stop();
|
|
11847
11829
|
}), document.addEventListener("visibilitychange", this.onVisibilitychange)));
|
|
11848
11830
|
}
|
|
@@ -11907,7 +11889,7 @@ var ut = null, Da = /* @__PURE__ */ function(a) {
|
|
|
11907
11889
|
key: "_checkIfCanStart",
|
|
11908
11890
|
value: function() {
|
|
11909
11891
|
var e = this.config.mode;
|
|
11910
|
-
return this._isLoaded && !this.player.paused && e !==
|
|
11892
|
+
return this._isLoaded && !this.player.paused && e !== Ge.FIRST_FRAME && e !== Ge.POSTER;
|
|
11911
11893
|
}
|
|
11912
11894
|
}, {
|
|
11913
11895
|
key: "renderOnce",
|
|
@@ -11986,7 +11968,7 @@ var ut = null, Da = /* @__PURE__ */ function(a) {
|
|
|
11986
11968
|
}, {
|
|
11987
11969
|
key: "isSupport",
|
|
11988
11970
|
get: function() {
|
|
11989
|
-
return typeof
|
|
11971
|
+
return typeof lt == "boolean" || (lt = Aa()), lt;
|
|
11990
11972
|
}
|
|
11991
11973
|
}, {
|
|
11992
11974
|
key: "supportCanvasFilter",
|
|
@@ -11994,7 +11976,7 @@ var ut = null, Da = /* @__PURE__ */ function(a) {
|
|
|
11994
11976
|
return !(N.browser === "safari" || N.browser === "firefox");
|
|
11995
11977
|
}
|
|
11996
11978
|
}]), r;
|
|
11997
|
-
}(z),
|
|
11979
|
+
}(z), Da = {
|
|
11998
11980
|
LANG: "zh-cn",
|
|
11999
11981
|
TEXT: {
|
|
12000
11982
|
ERROR_TYPES: {
|
|
@@ -12069,7 +12051,7 @@ var ut = null, Da = /* @__PURE__ */ function(a) {
|
|
|
12069
12051
|
FORWARD: "快进中",
|
|
12070
12052
|
LIVE_TIP: "直播"
|
|
12071
12053
|
}
|
|
12072
|
-
}, et = "info",
|
|
12054
|
+
}, et = "info", Ut = gn, Oa = /* @__PURE__ */ function(a) {
|
|
12073
12055
|
L(r, a);
|
|
12074
12056
|
var o = D(r);
|
|
12075
12057
|
function r() {
|
|
@@ -12108,7 +12090,7 @@ var ut = null, Da = /* @__PURE__ */ function(a) {
|
|
|
12108
12090
|
}, {
|
|
12109
12091
|
key: "afterCreate",
|
|
12110
12092
|
value: function() {
|
|
12111
|
-
this.reset(), this.on(
|
|
12093
|
+
this.reset(), this.on(mt, this._recordUserActions), this.on(Ut.STATS_INFO, this._recordInfo), this.on(Ut.STATS_DOWNLOAD, this._downloadStats), this.on(Ut.STATS_RESET, this._onReset);
|
|
12112
12094
|
}
|
|
12113
12095
|
}, {
|
|
12114
12096
|
key: "destroy",
|
|
@@ -12254,9 +12236,9 @@ var ut = null, Da = /* @__PURE__ */ function(a) {
|
|
|
12254
12236
|
key: "afterCreate",
|
|
12255
12237
|
value: function() {
|
|
12256
12238
|
var e = this, i = this.config.useGapJump;
|
|
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(
|
|
12239
|
+
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(st, this.onGapJump), this.on(ae, function() {
|
|
12258
12240
|
e.hasPlayed = !0;
|
|
12259
|
-
}), this.on(
|
|
12241
|
+
}), this.on(bt, function() {
|
|
12260
12242
|
e.seekingEventReceived = !0;
|
|
12261
12243
|
}));
|
|
12262
12244
|
}
|
|
@@ -12303,7 +12285,7 @@ var ut = null, Da = /* @__PURE__ */ function(a) {
|
|
|
12303
12285
|
}]), r;
|
|
12304
12286
|
}(z);
|
|
12305
12287
|
wn.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
12306
|
-
var
|
|
12288
|
+
var Ra = /* @__PURE__ */ function(a) {
|
|
12307
12289
|
L(r, a);
|
|
12308
12290
|
var o = D(r);
|
|
12309
12291
|
function r() {
|
|
@@ -12327,7 +12309,7 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12327
12309
|
key: "afterCreate",
|
|
12328
12310
|
value: function() {
|
|
12329
12311
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
12330
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(
|
|
12312
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(st, this.onWaiting), this.on([ei, ye], function() {
|
|
12331
12313
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
12332
12314
|
}), this.on(ae, function() {
|
|
12333
12315
|
e.hasPlayed = !0;
|
|
@@ -12349,7 +12331,7 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12349
12331
|
};
|
|
12350
12332
|
}
|
|
12351
12333
|
}]), r;
|
|
12352
|
-
}(z),
|
|
12334
|
+
}(z), Ke = "cdn", ut = ["cdn"], Fa = /* @__PURE__ */ function(a) {
|
|
12353
12335
|
L(r, a);
|
|
12354
12336
|
var o = D(r);
|
|
12355
12337
|
function r() {
|
|
@@ -12358,7 +12340,7 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12358
12340
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12359
12341
|
i[n] = arguments[n];
|
|
12360
12342
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "getSpeed", function() {
|
|
12361
|
-
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
12343
|
+
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ke;
|
|
12362
12344
|
if (!t.speedListCache || !t.speedListCache[s] || t.speedListCache[s].length <= 0)
|
|
12363
12345
|
return 0;
|
|
12364
12346
|
var l = 0;
|
|
@@ -12368,11 +12350,11 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12368
12350
|
}), _(m(t), "startTimer", function() {
|
|
12369
12351
|
h.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
|
|
12370
12352
|
}), _(m(t), "initSpeedList", function() {
|
|
12371
|
-
t.speedListCache = {},
|
|
12353
|
+
t.speedListCache = {}, ut.forEach(function(s) {
|
|
12372
12354
|
t.speedListCache[s] = [];
|
|
12373
12355
|
});
|
|
12374
12356
|
}), _(m(t), "_onRealSpeedChange", function(s) {
|
|
12375
|
-
s.speed && t.appendList(s.speed, s.type ||
|
|
12357
|
+
s.speed && t.appendList(s.speed, s.type || Ke);
|
|
12376
12358
|
}), _(m(t), "testSpeed", function() {
|
|
12377
12359
|
if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
|
|
12378
12360
|
var s = t.config, l = s.url, u = s.loadSize, c = s.testCnt, f = s.testTimeStep, g = l + (l.indexOf("?") < 0 ? "?testst=" : "&testst=") + Date.now();
|
|
@@ -12397,24 +12379,24 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12397
12379
|
}
|
|
12398
12380
|
}
|
|
12399
12381
|
}), _(m(t), "appendList", function(s) {
|
|
12400
|
-
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
12382
|
+
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ke;
|
|
12401
12383
|
if (!(!t.speedListCache || !t.speedListCache[l])) {
|
|
12402
12384
|
var u = t.config.saveSpeedMax;
|
|
12403
12385
|
t.speedListCache[l].length >= u && t.speedListCache[l].shift(), t.speedListCache[l].push(s);
|
|
12404
12386
|
var c = m(t), f = c.player;
|
|
12405
|
-
f && (l ===
|
|
12387
|
+
f && (l === Ke ? f.realTimeSpeed = s : f[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
|
|
12406
12388
|
}
|
|
12407
12389
|
}), _(m(t), "updateSpeed", function() {
|
|
12408
|
-
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
12390
|
+
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ke, l = t.getSpeed(s), u = m(t), c = u.player;
|
|
12409
12391
|
if (c)
|
|
12410
|
-
if (s ===
|
|
12411
|
-
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(
|
|
12392
|
+
if (s === Ke)
|
|
12393
|
+
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit($t, {
|
|
12412
12394
|
speed: l,
|
|
12413
12395
|
realTimeSpeed: c.realTimeSpeed
|
|
12414
12396
|
}));
|
|
12415
12397
|
else {
|
|
12416
12398
|
var f = t.getSpeedName("avg", s);
|
|
12417
|
-
(!c[f] || l !== c[f]) && (c[f] = l, c.emit(
|
|
12399
|
+
(!c[f] || l !== c[f]) && (c[f] = l, c.emit($t, {
|
|
12418
12400
|
speed: l,
|
|
12419
12401
|
realTimeSpeed: c.realTimeSpeed
|
|
12420
12402
|
}));
|
|
@@ -12425,7 +12407,7 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12425
12407
|
key: "afterCreate",
|
|
12426
12408
|
value: function() {
|
|
12427
12409
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
12428
|
-
(n == null ? void 0 : n.length) > 0 &&
|
|
12410
|
+
(n == null ? void 0 : n.length) > 0 && ut.push.apply(ut, fe(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Ce, dt], this.startTimer);
|
|
12429
12411
|
}
|
|
12430
12412
|
}, {
|
|
12431
12413
|
key: "getSpeedName",
|
|
@@ -12452,7 +12434,7 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12452
12434
|
key: "destroy",
|
|
12453
12435
|
value: function() {
|
|
12454
12436
|
var e = this;
|
|
12455
|
-
this.off("real_time_speed", this._onRealSpeedChange), this.off([Ce,
|
|
12437
|
+
this.off("real_time_speed", this._onRealSpeedChange), this.off([Ce, dt], this.startTimer), ut.forEach(function(i) {
|
|
12456
12438
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
12457
12439
|
}), 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);
|
|
12458
12440
|
}
|
|
@@ -12475,7 +12457,7 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12475
12457
|
};
|
|
12476
12458
|
}
|
|
12477
12459
|
}]), r;
|
|
12478
|
-
}(z),
|
|
12460
|
+
}(z), Ma = /* @__PURE__ */ function(a) {
|
|
12479
12461
|
L(r, a);
|
|
12480
12462
|
var o = D(r);
|
|
12481
12463
|
function r() {
|
|
@@ -12491,9 +12473,9 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12491
12473
|
e._startTick();
|
|
12492
12474
|
}), this.on(Ze, function() {
|
|
12493
12475
|
e._stopTick();
|
|
12494
|
-
}), this.on(
|
|
12476
|
+
}), this.on(Be, function() {
|
|
12495
12477
|
e._stopTick();
|
|
12496
|
-
}), this.on(
|
|
12478
|
+
}), this.on(He, function() {
|
|
12497
12479
|
e._stopTick();
|
|
12498
12480
|
}));
|
|
12499
12481
|
}
|
|
@@ -12585,24 +12567,24 @@ var Fa = /* @__PURE__ */ function(a) {
|
|
|
12585
12567
|
}
|
|
12586
12568
|
}]), r;
|
|
12587
12569
|
}(z);
|
|
12588
|
-
Xe.use(
|
|
12589
|
-
var
|
|
12570
|
+
Xe.use(Da);
|
|
12571
|
+
var Na = /* @__PURE__ */ I(function a(o, r) {
|
|
12590
12572
|
var t, e, i;
|
|
12591
12573
|
x(this, a);
|
|
12592
|
-
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [
|
|
12593
|
-
this.plugins = [
|
|
12574
|
+
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [ea, Go, Ia, Sa, Qo], u = [].concat(l, [Ko, Zo, oa, fa, _a, ka, pa, va, ra, ua]), c = [So, xo, Po, jo, Ao, wa, Ta, xa, Ro];
|
|
12575
|
+
this.plugins = [Oa, To].concat(fe(u), c, [wn, Ra]);
|
|
12594
12576
|
var f = n ? "mobile" : N.device;
|
|
12595
12577
|
switch (f) {
|
|
12596
12578
|
case "pc":
|
|
12597
|
-
(t = this.plugins).push.apply(t, [Hi,
|
|
12579
|
+
(t = this.plugins).push.apply(t, [Hi, Nt, zi, Fa, Ma]);
|
|
12598
12580
|
break;
|
|
12599
12581
|
case "mobile":
|
|
12600
|
-
(e = this.plugins).push.apply(e, [
|
|
12582
|
+
(e = this.plugins).push.apply(e, [Uo]);
|
|
12601
12583
|
break;
|
|
12602
12584
|
default:
|
|
12603
|
-
(i = this.plugins).push.apply(i, [Hi,
|
|
12585
|
+
(i = this.plugins).push.apply(i, [Hi, Nt, zi]);
|
|
12604
12586
|
}
|
|
12605
|
-
(N.os.isIpad || f === "pc") && this.plugins.push(
|
|
12587
|
+
(N.os.isIpad || f === "pc") && this.plugins.push(La), N.os.isIpad && this.plugins.push(Nt), this.ignores = [], this.i18n = [];
|
|
12606
12588
|
}), he = /* @__PURE__ */ function(a) {
|
|
12607
12589
|
L(r, a);
|
|
12608
12590
|
var o = D(r);
|
|
@@ -12610,21 +12592,21 @@ var Ba = /* @__PURE__ */ I(function a(o, r) {
|
|
|
12610
12592
|
return x(this, r), o.apply(this, arguments);
|
|
12611
12593
|
}
|
|
12612
12594
|
return I(r);
|
|
12613
|
-
}(
|
|
12614
|
-
_(he, "defaultPreset",
|
|
12595
|
+
}(St);
|
|
12596
|
+
_(he, "defaultPreset", Na);
|
|
12615
12597
|
_(he, "Util", h);
|
|
12616
12598
|
_(he, "Sniffer", N);
|
|
12617
|
-
_(he, "Errors",
|
|
12618
|
-
_(he, "Events",
|
|
12599
|
+
_(he, "Errors", ht);
|
|
12600
|
+
_(he, "Events", Js);
|
|
12619
12601
|
_(he, "Plugin", z);
|
|
12620
12602
|
_(he, "BasePlugin", xe);
|
|
12621
12603
|
_(he, "I18N", Xe);
|
|
12622
12604
|
_(he, "STATE_CLASS", w);
|
|
12623
12605
|
_(he, "InstManager", _n);
|
|
12624
|
-
const
|
|
12606
|
+
const Ba = ["id"], Ha = /* @__PURE__ */ ue({
|
|
12625
12607
|
name: "ElImageViewer",
|
|
12626
12608
|
__name: "Player",
|
|
12627
|
-
props: /* @__PURE__ */
|
|
12609
|
+
props: /* @__PURE__ */ ct({
|
|
12628
12610
|
url: {
|
|
12629
12611
|
type: String,
|
|
12630
12612
|
default: ""
|
|
@@ -12645,12 +12627,12 @@ const Ha = ["id"], Ua = /* @__PURE__ */ ue({
|
|
|
12645
12627
|
},
|
|
12646
12628
|
modelModifiers: {}
|
|
12647
12629
|
}),
|
|
12648
|
-
emits: /* @__PURE__ */
|
|
12630
|
+
emits: /* @__PURE__ */ ct({
|
|
12649
12631
|
close: () => !0
|
|
12650
12632
|
}, ["update:modelValue"]),
|
|
12651
12633
|
setup(a, { emit: o }) {
|
|
12652
12634
|
let r = null;
|
|
12653
|
-
const t = a, { cLoadUrl: e } =
|
|
12635
|
+
const t = a, { cLoadUrl: e } = qt(t), i = ee(() => Je(e.value, t.url)), n = {
|
|
12654
12636
|
width: "100%",
|
|
12655
12637
|
height: "100%",
|
|
12656
12638
|
// 是否自动播放
|
|
@@ -12671,12 +12653,12 @@ const Ha = ["id"], Ua = /* @__PURE__ */ ue({
|
|
|
12671
12653
|
}, s = ee(() => ({
|
|
12672
12654
|
...n,
|
|
12673
12655
|
...t.config
|
|
12674
|
-
})), l = o, u =
|
|
12656
|
+
})), l = o, u = Yt(a, "modelValue"), c = Gi(), f = Fn("image-viewer");
|
|
12675
12657
|
function g() {
|
|
12676
12658
|
l("close"), u.value = !1, r.destroy();
|
|
12677
12659
|
}
|
|
12678
|
-
return
|
|
12679
|
-
p &&
|
|
12660
|
+
return Xt(() => u.value, (p) => {
|
|
12661
|
+
p && ft(() => {
|
|
12680
12662
|
r = new he({
|
|
12681
12663
|
id: c,
|
|
12682
12664
|
url: i.value,
|
|
@@ -12689,7 +12671,7 @@ const Ha = ["id"], Ua = /* @__PURE__ */ ue({
|
|
|
12689
12671
|
key: 0,
|
|
12690
12672
|
to: "body"
|
|
12691
12673
|
}, [
|
|
12692
|
-
|
|
12674
|
+
Q(xn, {
|
|
12693
12675
|
name: "viewer-fade",
|
|
12694
12676
|
appear: ""
|
|
12695
12677
|
}, {
|
|
@@ -12699,14 +12681,14 @@ const Ha = ["id"], Ua = /* @__PURE__ */ ue({
|
|
|
12699
12681
|
{
|
|
12700
12682
|
ref: "wrapper",
|
|
12701
12683
|
tabindex: -1,
|
|
12702
|
-
class:
|
|
12684
|
+
class: Z(j(f).e("wrapper")),
|
|
12703
12685
|
style: re({ zIndex: a.zIndex })
|
|
12704
12686
|
},
|
|
12705
12687
|
[
|
|
12706
12688
|
S(
|
|
12707
12689
|
"div",
|
|
12708
12690
|
{
|
|
12709
|
-
class:
|
|
12691
|
+
class: Z(j(f).e("mask"))
|
|
12710
12692
|
},
|
|
12711
12693
|
null,
|
|
12712
12694
|
2
|
|
@@ -12716,21 +12698,21 @@ const Ha = ["id"], Ua = /* @__PURE__ */ ue({
|
|
|
12716
12698
|
S(
|
|
12717
12699
|
"div",
|
|
12718
12700
|
{
|
|
12719
|
-
class:
|
|
12701
|
+
class: Z(j(f).e("canvas"))
|
|
12720
12702
|
},
|
|
12721
12703
|
[
|
|
12722
|
-
S("div", { id: j(c) }, null, 8,
|
|
12704
|
+
S("div", { id: j(c) }, null, 8, Ba),
|
|
12723
12705
|
A(" CLOSE "),
|
|
12724
12706
|
S(
|
|
12725
12707
|
"span",
|
|
12726
12708
|
{
|
|
12727
|
-
class:
|
|
12709
|
+
class: Z([j(f).e("btn"), j(f).e("close")]),
|
|
12728
12710
|
onClick: g
|
|
12729
12711
|
},
|
|
12730
12712
|
[
|
|
12731
|
-
|
|
12713
|
+
Q(v, { onClick: g }, {
|
|
12732
12714
|
default: pe(() => [
|
|
12733
|
-
|
|
12715
|
+
Q(j(Vr))
|
|
12734
12716
|
]),
|
|
12735
12717
|
_: 1
|
|
12736
12718
|
/* STABLE */
|
|
@@ -12756,13 +12738,13 @@ const Ha = ["id"], Ua = /* @__PURE__ */ ue({
|
|
|
12756
12738
|
};
|
|
12757
12739
|
}
|
|
12758
12740
|
});
|
|
12759
|
-
const
|
|
12741
|
+
const Ua = /* @__PURE__ */ nt(Ha, [["__scopeId", "data-v-b301aa7d"]]), za = Ie(Ua), fi = (a) => (Pn("data-v-48f27627"), a = a(), An(), a), Va = {
|
|
12760
12742
|
class: "approveProcess",
|
|
12761
12743
|
id: "approveProcess"
|
|
12762
|
-
},
|
|
12744
|
+
}, ja = ["id"], Wa = { class: "topBlock" }, $a = { class: "left" }, Ga = { class: "nodeBg" }, Ka = ["src"], Ya = { class: "right" }, Xa = { class: "topInfo" }, qa = { key: 0 }, Ja = {
|
|
12763
12745
|
key: 0,
|
|
12764
12746
|
class: "main-text"
|
|
12765
|
-
},
|
|
12747
|
+
}, Za = { class: "name" }, Qa = { key: 0 }, el = { key: 0 }, tl = { key: 1 }, il = /* @__PURE__ */ fi(() => /* @__PURE__ */ S(
|
|
12766
12748
|
"span",
|
|
12767
12749
|
{
|
|
12768
12750
|
class: "red",
|
|
@@ -12771,52 +12753,52 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
12771
12753
|
" 退回至",
|
|
12772
12754
|
-1
|
|
12773
12755
|
/* HOISTED */
|
|
12774
|
-
)),
|
|
12756
|
+
)), nl = { key: 0 }, rl = { key: 0 }, sl = { key: 1 }, ol = { key: 1 }, al = /* @__PURE__ */ fi(() => /* @__PURE__ */ S(
|
|
12775
12757
|
"div",
|
|
12776
12758
|
{ class: "main-text" },
|
|
12777
12759
|
"抄送人员",
|
|
12778
12760
|
-1
|
|
12779
12761
|
/* HOISTED */
|
|
12780
|
-
)),
|
|
12762
|
+
)), ll = { class: "name" }, ul = { key: 0 }, cl = { style: { color: "#000" } }, fl = {
|
|
12781
12763
|
class: "blue",
|
|
12782
12764
|
style: { "margin-left": "5px", "font-size": "12px" }
|
|
12783
|
-
},
|
|
12765
|
+
}, hl = { key: 1 }, dl = {
|
|
12784
12766
|
key: 0,
|
|
12785
12767
|
class: "blue",
|
|
12786
12768
|
style: { "font-size": "12px" }
|
|
12787
|
-
},
|
|
12769
|
+
}, gl = { key: 1 }, pl = {
|
|
12788
12770
|
key: 0,
|
|
12789
12771
|
class: "blue",
|
|
12790
12772
|
style: { "font-size": "12px" }
|
|
12791
|
-
},
|
|
12773
|
+
}, vl = {
|
|
12792
12774
|
key: 1,
|
|
12793
12775
|
class: "blue",
|
|
12794
12776
|
style: { "font-size": "12px" }
|
|
12795
|
-
},
|
|
12777
|
+
}, ml = { class: "time" }, yl = { key: 0 }, _l = { key: 1 }, kl = ["onClick"], Cl = ["onClick"], bl = {
|
|
12796
12778
|
key: 0,
|
|
12797
12779
|
class: "opinion"
|
|
12798
|
-
},
|
|
12780
|
+
}, wl = { key: 0 }, Tl = { key: 1 }, El = /* @__PURE__ */ fi(() => /* @__PURE__ */ S(
|
|
12799
12781
|
"span",
|
|
12800
12782
|
{ class: "ik-text-primary" },
|
|
12801
12783
|
"添加审批人",
|
|
12802
12784
|
-1
|
|
12803
12785
|
/* HOISTED */
|
|
12804
|
-
)),
|
|
12786
|
+
)), Sl = { style: { color: "var(--el-text-color-primary)", "margin-left": "8px" } }, xl = {
|
|
12805
12787
|
key: 2,
|
|
12806
12788
|
class: "annexImage"
|
|
12807
|
-
},
|
|
12789
|
+
}, Il = {
|
|
12808
12790
|
key: 3,
|
|
12809
12791
|
class: "approveList"
|
|
12810
|
-
},
|
|
12792
|
+
}, Pl = { class: "nodeBg-list" }, Al = ["src"], Ll = { key: 1 }, Dl = {
|
|
12811
12793
|
key: 2,
|
|
12812
12794
|
class: "ikapprove ikapprove-duihao2 green read"
|
|
12813
|
-
},
|
|
12795
|
+
}, Ol = ["title"], Rl = {
|
|
12814
12796
|
key: 0,
|
|
12815
12797
|
class: "branch"
|
|
12816
|
-
},
|
|
12798
|
+
}, Fl = { class: "branch-card" }, Ml = { class: "branch-name" }, Nl = {
|
|
12817
12799
|
name: "IkingApprovalProcessDetail"
|
|
12818
|
-
},
|
|
12819
|
-
...
|
|
12800
|
+
}, Bl = /* @__PURE__ */ ue({
|
|
12801
|
+
...Nl,
|
|
12820
12802
|
props: {
|
|
12821
12803
|
// 是否本地打开
|
|
12822
12804
|
local: {
|
|
@@ -12875,11 +12857,11 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
12875
12857
|
},
|
|
12876
12858
|
emits: ["preview"],
|
|
12877
12859
|
setup(a, { emit: o }) {
|
|
12878
|
-
const r = a, { cLoadUrl: t } =
|
|
12879
|
-
|
|
12860
|
+
const r = a, { cLoadUrl: t } = qt(r), e = Wi(jr(r));
|
|
12861
|
+
Xt(
|
|
12880
12862
|
() => r.dataList,
|
|
12881
12863
|
(c) => {
|
|
12882
|
-
c && (
|
|
12864
|
+
c && (ft(() => {
|
|
12883
12865
|
e.listData = c;
|
|
12884
12866
|
}), setTimeout(() => {
|
|
12885
12867
|
r.returnNode.length && i();
|
|
@@ -12898,7 +12880,7 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
12898
12880
|
if (isNaN(c[1]))
|
|
12899
12881
|
return;
|
|
12900
12882
|
let f = Array.from(new Array(c[1] + 1).keys()).slice(c[0]);
|
|
12901
|
-
|
|
12883
|
+
ft(() => {
|
|
12902
12884
|
n(f);
|
|
12903
12885
|
});
|
|
12904
12886
|
}
|
|
@@ -12951,7 +12933,7 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
12951
12933
|
}, u = (c) => Je(t.value, c);
|
|
12952
12934
|
return (c, f) => {
|
|
12953
12935
|
const g = Ee("el-image"), p = Ee("IkingApprovalProcessDetail");
|
|
12954
|
-
return T(), E("div",
|
|
12936
|
+
return T(), E("div", Va, [
|
|
12955
12937
|
(T(!0), E(
|
|
12956
12938
|
le,
|
|
12957
12939
|
null,
|
|
@@ -12962,9 +12944,9 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
12962
12944
|
id: d[e.defaultFile.nodeId],
|
|
12963
12945
|
key: d[e.defaultFile.nodeId]
|
|
12964
12946
|
}, [
|
|
12965
|
-
S("div",
|
|
12966
|
-
S("div",
|
|
12967
|
-
S("span",
|
|
12947
|
+
S("div", Wa, [
|
|
12948
|
+
S("div", $a, [
|
|
12949
|
+
S("span", Ga, [
|
|
12968
12950
|
A(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),
|
|
12969
12951
|
((y = d[e.defaultFile.approvePersonList]) == null ? void 0 : y.length) == 1 && d[e.defaultFile.approvePersonList][0].userAvatar ? (T(), E("img", {
|
|
12970
12952
|
key: 0,
|
|
@@ -12973,7 +12955,7 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
12973
12955
|
d[e.defaultFile.approvePersonList][0].userAvatar
|
|
12974
12956
|
),
|
|
12975
12957
|
alt: ""
|
|
12976
|
-
}, null, 8,
|
|
12958
|
+
}, null, 8, Ka)) : (T(), E(
|
|
12977
12959
|
le,
|
|
12978
12960
|
{ key: 1 },
|
|
12979
12961
|
[
|
|
@@ -12981,7 +12963,7 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
12981
12963
|
S(
|
|
12982
12964
|
"i",
|
|
12983
12965
|
{
|
|
12984
|
-
class:
|
|
12966
|
+
class: Z(
|
|
12985
12967
|
j(Wr)(
|
|
12986
12968
|
e,
|
|
12987
12969
|
d[e.defaultFile.nodeType],
|
|
@@ -13001,7 +12983,7 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13001
12983
|
S(
|
|
13002
12984
|
"i",
|
|
13003
12985
|
{
|
|
13004
|
-
class:
|
|
12986
|
+
class: Z(
|
|
13005
12987
|
s(d[e.defaultFile.approveStatus], v, d)
|
|
13006
12988
|
)
|
|
13007
12989
|
},
|
|
@@ -13011,23 +12993,23 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13011
12993
|
)
|
|
13012
12994
|
])
|
|
13013
12995
|
]),
|
|
13014
|
-
S("div",
|
|
13015
|
-
S("div",
|
|
12996
|
+
S("div", Ya, [
|
|
12997
|
+
S("div", Xa, [
|
|
13016
12998
|
S("div", null, [
|
|
13017
12999
|
A(" 不是抄送节点 "),
|
|
13018
|
-
e.nodeType.抄送节点 !== d[e.defaultFile.nodeType] ? (T(), E("div",
|
|
13000
|
+
e.nodeType.抄送节点 !== d[e.defaultFile.nodeType] ? (T(), E("div", qa, [
|
|
13019
13001
|
A(" 撤销,评论不显示节点名称 "),
|
|
13020
13002
|
d[e.defaultFile.approveStatus] != e.statusOption.撤销 && d[e.defaultFile.approveStatus] != e.statusOption.评论 && d[e.defaultFile.nodeType] !== e.nodeType.并行分支 ? (T(), E(
|
|
13021
13003
|
"div",
|
|
13022
|
-
|
|
13004
|
+
Ja,
|
|
13023
13005
|
$(d[e.defaultFile.nodeTypeName]),
|
|
13024
13006
|
1
|
|
13025
13007
|
/* TEXT */
|
|
13026
13008
|
)) : A("v-if", !0),
|
|
13027
13009
|
A(" 名字+审批状态 "),
|
|
13028
|
-
S("div",
|
|
13010
|
+
S("div", Za, [
|
|
13029
13011
|
A(" 已审批节点文本 "),
|
|
13030
|
-
d[e.defaultFile.lineType] == "solid" ? (T(), E("div",
|
|
13012
|
+
d[e.defaultFile.lineType] == "solid" ? (T(), E("div", Qa, [
|
|
13031
13013
|
S(
|
|
13032
13014
|
"span",
|
|
13033
13015
|
{
|
|
@@ -13042,14 +13024,14 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13042
13024
|
A(" 发起,退回不显示状态 "),
|
|
13043
13025
|
d[e.defaultFile.approveStatusName] && d[e.defaultFile.approveStatus] != e.statusOption.发起 && d[e.defaultFile.approveStatus] != e.statusOption.退回 ? (T(), E(
|
|
13044
13026
|
"span",
|
|
13045
|
-
|
|
13027
|
+
el,
|
|
13046
13028
|
$(d[e.defaultFile.approveStatus] == e.statusOption.评论 ? " 添加了评论" : d != null && d.nodeActionAliasName ? `(已${d.nodeActionAliasName})` : `(${d[e.defaultFile.approveStatusName]})`),
|
|
13047
13029
|
1
|
|
13048
13030
|
/* TEXT */
|
|
13049
13031
|
)) : A("v-if", !0),
|
|
13050
13032
|
A(" 退回状态显示 "),
|
|
13051
|
-
d[e.defaultFile.approveStatus] == e.statusOption.退回 ? (T(), E("span",
|
|
13052
|
-
|
|
13033
|
+
d[e.defaultFile.approveStatus] == e.statusOption.退回 ? (T(), E("span", tl, [
|
|
13034
|
+
il,
|
|
13053
13035
|
Me(
|
|
13054
13036
|
" " + $(d[e.defaultFile.backToInstanceNodeName] || d[e.defaultFile.backToRecordNodeName]),
|
|
13055
13037
|
1
|
|
@@ -13062,7 +13044,7 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13062
13044
|
[
|
|
13063
13045
|
A(" 待审批节点 "),
|
|
13064
13046
|
S("div", null, [
|
|
13065
|
-
((k = d[e.defaultFile.approvePersonList]) == null ? void 0 : k.length) == 1 ? (T(), E("span",
|
|
13047
|
+
((k = d[e.defaultFile.approvePersonList]) == null ? void 0 : k.length) == 1 ? (T(), E("span", nl, [
|
|
13066
13048
|
Me(
|
|
13067
13049
|
$(d[e.defaultFile.originator]) + " ",
|
|
13068
13050
|
1
|
|
@@ -13070,14 +13052,14 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13070
13052
|
),
|
|
13071
13053
|
d[e.defaultFile.approveStatus] == e.statusOption.等待 ? (T(), E(
|
|
13072
13054
|
"span",
|
|
13073
|
-
|
|
13055
|
+
rl,
|
|
13074
13056
|
$(d != null && d.nodeActionAliasName ? `(已${d.nodeActionAliasName})` : `(${d[e.defaultFile.approveStatusName]})`),
|
|
13075
13057
|
1
|
|
13076
13058
|
/* TEXT */
|
|
13077
13059
|
)) : A("v-if", !0)
|
|
13078
13060
|
])) : d[e.defaultFile.approvePersonList] ? (T(), E(
|
|
13079
13061
|
"span",
|
|
13080
|
-
|
|
13062
|
+
sl,
|
|
13081
13063
|
$(`${(b = d[e.defaultFile.approvePersonList]) == null ? void 0 : b.length}人${d[e.defaultFile.approveTypeName]}`),
|
|
13082
13064
|
1
|
|
13083
13065
|
/* TEXT */
|
|
@@ -13088,16 +13070,16 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13088
13070
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
13089
13071
|
))
|
|
13090
13072
|
])
|
|
13091
|
-
])) : (T(), E("div",
|
|
13092
|
-
|
|
13093
|
-
S("div",
|
|
13073
|
+
])) : (T(), E("div", ol, [
|
|
13074
|
+
al,
|
|
13075
|
+
S("div", ll, [
|
|
13094
13076
|
A(" 抄送一人时 "),
|
|
13095
|
-
((C = d[e.defaultFile.approvePersonList]) == null ? void 0 : C.length) == 1 ? (T(), E("span",
|
|
13077
|
+
((C = d[e.defaultFile.approvePersonList]) == null ? void 0 : C.length) == 1 ? (T(), E("span", ul, [
|
|
13096
13078
|
S("span", null, [
|
|
13097
13079
|
Me("已抄送给 "),
|
|
13098
13080
|
S(
|
|
13099
13081
|
"span",
|
|
13100
|
-
|
|
13082
|
+
cl,
|
|
13101
13083
|
$(d[e.defaultFile.approvePersonList][0].userName),
|
|
13102
13084
|
1
|
|
13103
13085
|
/* TEXT */
|
|
@@ -13105,24 +13087,24 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13105
13087
|
]),
|
|
13106
13088
|
S(
|
|
13107
13089
|
"span",
|
|
13108
|
-
|
|
13090
|
+
fl,
|
|
13109
13091
|
$(d[e.defaultFile.approvePersonList][0].status === "END" ? "已读" : "未读"),
|
|
13110
13092
|
1
|
|
13111
13093
|
/* TEXT */
|
|
13112
13094
|
)
|
|
13113
13095
|
])) : A("v-if", !0),
|
|
13114
13096
|
A(" 抄送多人时 "),
|
|
13115
|
-
((B = d[e.defaultFile.approvePersonList]) == null ? void 0 : B.length) > 1 ? (T(), E("span",
|
|
13097
|
+
((B = d[e.defaultFile.approvePersonList]) == null ? void 0 : B.length) > 1 ? (T(), E("span", hl, [
|
|
13116
13098
|
Me(
|
|
13117
13099
|
$(`已抄送${(M = d[e.defaultFile.approvePersonList]) == null ? void 0 : M.length}人`) + " ",
|
|
13118
13100
|
1
|
|
13119
13101
|
/* TEXT */
|
|
13120
13102
|
),
|
|
13121
|
-
d[e.defaultFile.allRead] ? (T(), E("span",
|
|
13122
|
-
d[e.defaultFile.read] ? A("v-if", !0) : (T(), E("span",
|
|
13103
|
+
d[e.defaultFile.allRead] ? (T(), E("span", dl, " 全部已读 ")) : (T(), E("span", gl, [
|
|
13104
|
+
d[e.defaultFile.read] ? A("v-if", !0) : (T(), E("span", pl, " 全部未读 ")),
|
|
13123
13105
|
d[e.defaultFile.read] ? (T(), E(
|
|
13124
13106
|
"span",
|
|
13125
|
-
|
|
13107
|
+
vl,
|
|
13126
13108
|
$(d[e.defaultFile.read]) + "人已读 ",
|
|
13127
13109
|
1
|
|
13128
13110
|
/* TEXT */
|
|
@@ -13132,11 +13114,11 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13132
13114
|
])
|
|
13133
13115
|
]))
|
|
13134
13116
|
]),
|
|
13135
|
-
S("div",
|
|
13117
|
+
S("div", ml, [
|
|
13136
13118
|
A(" 不是抄送节点,展示时间 "),
|
|
13137
13119
|
d[e.defaultFile.nodeType] != e.nodeType.抄送节点 && d[e.defaultFile.approveStatus] !== e.statusOption.等待 ? (T(), E(
|
|
13138
13120
|
"span",
|
|
13139
|
-
|
|
13121
|
+
yl,
|
|
13140
13122
|
$(j(Rn).toDateTime(
|
|
13141
13123
|
d[e.defaultFile.operationTime],
|
|
13142
13124
|
"MM/DD HH:mm"
|
|
@@ -13145,16 +13127,16 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13145
13127
|
/* TEXT */
|
|
13146
13128
|
)) : A("v-if", !0),
|
|
13147
13129
|
A(" 是抄送节点,并且抄送人员大于1时,展示图标 "),
|
|
13148
|
-
d[e.defaultFile.nodeType] == e.nodeType.抄送节点 && ((V = d[e.defaultFile.approvePersonList]) == null ? void 0 : V.length) > 1 ? (T(), E("span",
|
|
13130
|
+
d[e.defaultFile.nodeType] == e.nodeType.抄送节点 && ((V = d[e.defaultFile.approvePersonList]) == null ? void 0 : V.length) > 1 ? (T(), E("span", _l, [
|
|
13149
13131
|
d != null && d.show ? (T(), E("i", {
|
|
13150
13132
|
key: 0,
|
|
13151
13133
|
class: "ikapprove ikapprove-a-putongjiantouzhankai",
|
|
13152
13134
|
onClick: (P) => l(d, "grid")
|
|
13153
|
-
}, null, 8,
|
|
13135
|
+
}, null, 8, kl)) : (T(), E("i", {
|
|
13154
13136
|
key: 1,
|
|
13155
13137
|
onClick: (P) => l(d, "none"),
|
|
13156
13138
|
class: "ikapprove ikapprove-a-putongjiantoushouqi"
|
|
13157
|
-
}, null, 8,
|
|
13139
|
+
}, null, 8, Cl))
|
|
13158
13140
|
])) : A("v-if", !0)
|
|
13159
13141
|
])
|
|
13160
13142
|
])
|
|
@@ -13170,22 +13152,22 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13170
13152
|
},
|
|
13171
13153
|
[
|
|
13172
13154
|
A(" 审批意见 "),
|
|
13173
|
-
d[e.defaultFile.approveOpinion] || d[e.defaultFile.approveStatus] == e.statusOption.加签 ? (T(), E("div",
|
|
13155
|
+
d[e.defaultFile.approveOpinion] || d[e.defaultFile.approveStatus] == e.statusOption.加签 ? (T(), E("div", bl, [
|
|
13174
13156
|
d[e.defaultFile.approveOpinion] ? (T(), E(
|
|
13175
13157
|
"span",
|
|
13176
|
-
|
|
13158
|
+
wl,
|
|
13177
13159
|
$(d[e.defaultFile.approveOpinion]),
|
|
13178
13160
|
1
|
|
13179
13161
|
/* TEXT */
|
|
13180
13162
|
)) : A("v-if", !0),
|
|
13181
|
-
d[e.defaultFile.approveStatus] == e.statusOption.加签 ? (T(), E("span",
|
|
13182
|
-
|
|
13163
|
+
d[e.defaultFile.approveStatus] == e.statusOption.加签 ? (T(), E("span", Tl, [
|
|
13164
|
+
El,
|
|
13183
13165
|
(T(!0), E(
|
|
13184
13166
|
le,
|
|
13185
13167
|
null,
|
|
13186
13168
|
Re(d[e.defaultFile.countersignPer], (P, X) => (T(), E(
|
|
13187
13169
|
"span",
|
|
13188
|
-
|
|
13170
|
+
Sl,
|
|
13189
13171
|
$(P == null ? void 0 : P.userName) + $(X < d[e.defaultFile.countersignPer].length - 1 ? "、" : ""),
|
|
13190
13172
|
1
|
|
13191
13173
|
/* TEXT */
|
|
@@ -13201,7 +13183,7 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13201
13183
|
list: d[e.defaultFile.attachment]
|
|
13202
13184
|
}, null, 8, ["list"])) : A("v-if", !0),
|
|
13203
13185
|
A(" 附件图片 "),
|
|
13204
|
-
(Y = d[e.defaultFile.attachmentImg]) != null && Y.length ? (T(), E("div",
|
|
13186
|
+
(Y = d[e.defaultFile.attachmentImg]) != null && Y.length ? (T(), E("div", xl, [
|
|
13205
13187
|
(T(!0), E(
|
|
13206
13188
|
le,
|
|
13207
13189
|
null,
|
|
@@ -13209,7 +13191,7 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13209
13191
|
class: "image",
|
|
13210
13192
|
key: X
|
|
13211
13193
|
}, [
|
|
13212
|
-
|
|
13194
|
+
Q(g, {
|
|
13213
13195
|
src: u(P),
|
|
13214
13196
|
"preview-src-list": d[e.defaultFile.attachmentImg].map((ne) => u(ne)),
|
|
13215
13197
|
fit: "cover",
|
|
@@ -13223,7 +13205,7 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13223
13205
|
))
|
|
13224
13206
|
])) : A("v-if", !0),
|
|
13225
13207
|
A(" 抄送节点或是等待审批状态并且列表长度大于1 "),
|
|
13226
|
-
(d[e.defaultFile.nodeType] == e.nodeType.抄送节点 || d[e.defaultFile.approveStatus] == e.statusOption.等待) && ((K = d[e.defaultFile.approvePersonList]) == null ? void 0 : K.length) > 1 ? (T(), E("div",
|
|
13208
|
+
(d[e.defaultFile.nodeType] == e.nodeType.抄送节点 || d[e.defaultFile.approveStatus] == e.statusOption.等待) && ((K = d[e.defaultFile.approvePersonList]) == null ? void 0 : K.length) > 1 ? (T(), E("div", Il, [
|
|
13227
13209
|
(T(!0), E(
|
|
13228
13210
|
le,
|
|
13229
13211
|
null,
|
|
@@ -13231,25 +13213,25 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13231
13213
|
class: "perBlock",
|
|
13232
13214
|
key: P.userName
|
|
13233
13215
|
}, [
|
|
13234
|
-
S("span",
|
|
13216
|
+
S("span", Pl, [
|
|
13235
13217
|
P.userAvatar ? (T(), E("img", {
|
|
13236
13218
|
key: 0,
|
|
13237
13219
|
style: { width: "100%", height: "100%", "border-radius": "50%" },
|
|
13238
13220
|
src: u(P.userAvatar),
|
|
13239
13221
|
alt: ""
|
|
13240
|
-
}, null, 8,
|
|
13222
|
+
}, null, 8, Al)) : (T(), E(
|
|
13241
13223
|
"span",
|
|
13242
|
-
|
|
13224
|
+
Ll,
|
|
13243
13225
|
$(P.userName.slice(-2)),
|
|
13244
13226
|
1
|
|
13245
13227
|
/* TEXT */
|
|
13246
13228
|
)),
|
|
13247
|
-
P.status === "END" ? (T(), E("i",
|
|
13229
|
+
P.status === "END" ? (T(), E("i", Dl)) : A("v-if", !0)
|
|
13248
13230
|
]),
|
|
13249
13231
|
S("div", {
|
|
13250
13232
|
class: "main-text",
|
|
13251
13233
|
title: P.userName
|
|
13252
|
-
}, $(P.userName), 9,
|
|
13234
|
+
}, $(P.userName), 9, Ol)
|
|
13253
13235
|
]))),
|
|
13254
13236
|
128
|
|
13255
13237
|
/* KEYED_FRAGMENT */
|
|
@@ -13259,19 +13241,19 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13259
13241
|
4
|
|
13260
13242
|
/* STYLE */
|
|
13261
13243
|
),
|
|
13262
|
-
d[e.defaultFile.nodeType] === e.nodeType.并行分支 ? (T(), E("div",
|
|
13244
|
+
d[e.defaultFile.nodeType] === e.nodeType.并行分支 ? (T(), E("div", Rl, [
|
|
13263
13245
|
(T(!0), E(
|
|
13264
13246
|
le,
|
|
13265
13247
|
null,
|
|
13266
|
-
Re(d[e.defaultFile.parallelInstances], (P) => (T(), E("div",
|
|
13248
|
+
Re(d[e.defaultFile.parallelInstances], (P) => (T(), E("div", Fl, [
|
|
13267
13249
|
S(
|
|
13268
13250
|
"div",
|
|
13269
|
-
|
|
13251
|
+
Ml,
|
|
13270
13252
|
$(P.name),
|
|
13271
13253
|
1
|
|
13272
13254
|
/* TEXT */
|
|
13273
13255
|
),
|
|
13274
|
-
|
|
13256
|
+
Q(p, $i({ ref_for: !0 }, r, {
|
|
13275
13257
|
"data-list": (P == null ? void 0 : P.processInstanceNodes) || []
|
|
13276
13258
|
}), null, 16, ["data-list"])
|
|
13277
13259
|
]))),
|
|
@@ -13279,7 +13261,7 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13279
13261
|
/* UNKEYED_FRAGMENT */
|
|
13280
13262
|
))
|
|
13281
13263
|
])) : A("v-if", !0)
|
|
13282
|
-
], 8,
|
|
13264
|
+
], 8, ja);
|
|
13283
13265
|
}),
|
|
13284
13266
|
128
|
|
13285
13267
|
/* KEYED_FRAGMENT */
|
|
@@ -13288,8 +13270,8 @@ const za = /* @__PURE__ */ rt(Ua, [["__scopeId", "data-v-b301aa7d"]]), Va = Ie(z
|
|
|
13288
13270
|
};
|
|
13289
13271
|
}
|
|
13290
13272
|
});
|
|
13291
|
-
const
|
|
13273
|
+
const Hl = /* @__PURE__ */ nt(Bl, [["__scopeId", "data-v-48f27627"]]), jl = Ie(Hl);
|
|
13292
13274
|
export {
|
|
13293
|
-
|
|
13294
|
-
|
|
13275
|
+
jl as IKApprovalProcessDetail,
|
|
13276
|
+
jl as default
|
|
13295
13277
|
};
|