iking-web-ui-pro 0.2.21 → 0.2.24
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 +33 -32
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +470 -482
- package/dist/IKPreviewFile/ik.index.umd.js +45 -45
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +2 -1
- package/dist/IKVerticalStepBar/ik.index.umd.js +1 -1
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +393 -405
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +47 -47
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +85 -97
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +2 -1
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +5 -4
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +535 -547
- package/dist/IkDescription/ik.index.umd.js +45 -45
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +352 -364
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +45 -45
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +5 -4
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +2 -1
- package/dist/IkMonacoEditor/ik.index.umd.js +1 -1
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +2 -1
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +497 -509
- package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2 -1
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +5 -4
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +11 -10
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +321 -333
- package/dist/IkUploadFile/ik.index.umd.js +45 -45
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +2 -1
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +2138 -2150
- package/dist/index.umd.js +62 -62
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as se, computed as K, openBlock as
|
|
1
|
+
import { defineComponent as se, computed as K, openBlock as I, createElementBlock as M, createElementVNode as S, inject as Ze, ref as Xe, resolveComponent as Ee, Fragment as Ge, renderList as Ht, normalizeStyle as le, toDisplayString as _e, normalizeClass as te, createVNode as Q, unref as z, withModifiers as ui, renderSlot as pe, createBlock as ce, withCtx as X, createCommentVNode as ue, mergeModels as ut, useModel as Yt, reactive as bn, watch as zi, nextTick as Vi, createTextVNode as Ye, h as wn, mergeProps as Ut, createSlots as Tn, Teleport as En, Transition as Sn, useCssVars as xn } from "vue";
|
|
2
2
|
import { useNamespace as Pn, ElTag as In } from "element-plus";
|
|
3
3
|
import { paramType as An, ikFile as Ln, buildUUID as ji, ikColor as Dn } from "iking-utils-pro";
|
|
4
4
|
const Pe = (a, o) => {
|
|
@@ -620,7 +620,7 @@ const Pe = (a, o) => {
|
|
|
620
620
|
},
|
|
621
621
|
setup(a) {
|
|
622
622
|
const o = a, r = K(() => o.file ? zt(o.file, o.fields) : o.type);
|
|
623
|
-
return (t, e) => r.value === "image" ? (
|
|
623
|
+
return (t, e) => r.value === "image" ? (I(), M("svg", Fn, Un)) : r.value === "zip" ? (I(), M("svg", zn, Wn)) : r.value === "ppt" ? (I(), M("svg", Gn, Yn)) : r.value === "word" ? (I(), M("svg", Xn, Jn)) : r.value === "pdf" ? (I(), M("svg", Qn, ir)) : r.value === "txt" ? (I(), M("svg", nr, or)) : r.value === "audio" ? (I(), M("svg", ar, cr)) : r.value === "video" ? (I(), M("svg", fr, gr)) : r.value === "excel" ? (I(), M("svg", pr, _r)) : r.value === "exe" ? (I(), M("svg", Cr, Er)) : r.value === "json" ? (I(), M("svg", Sr, Ar)) : (I(), M("svg", Lr, Fr));
|
|
624
624
|
}
|
|
625
625
|
}), Nr = Pe(Mr);
|
|
626
626
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
@@ -628,7 +628,7 @@ var Br = /* @__PURE__ */ se({
|
|
|
628
628
|
name: "Close",
|
|
629
629
|
__name: "close",
|
|
630
630
|
setup(a) {
|
|
631
|
-
return (o, r) => (
|
|
631
|
+
return (o, r) => (I(), M("svg", {
|
|
632
632
|
xmlns: "http://www.w3.org/2000/svg",
|
|
633
633
|
viewBox: "0 0 1024 1024"
|
|
634
634
|
}, [
|
|
@@ -769,18 +769,18 @@ const it = (a, o) => {
|
|
|
769
769
|
return (h, d) => {
|
|
770
770
|
var p, m, _;
|
|
771
771
|
const g = Ee("tmplate");
|
|
772
|
-
return
|
|
773
|
-
|
|
772
|
+
return I(), M(
|
|
773
|
+
Ge,
|
|
774
774
|
null,
|
|
775
775
|
[
|
|
776
|
-
(p = a.list) != null && p.length ? (
|
|
777
|
-
|
|
776
|
+
(p = a.list) != null && p.length ? (I(), M(
|
|
777
|
+
Ge,
|
|
778
778
|
{ key: 0 },
|
|
779
779
|
[
|
|
780
|
-
a.simple ? (
|
|
781
|
-
|
|
780
|
+
a.simple ? (I(!0), M(
|
|
781
|
+
Ge,
|
|
782
782
|
{ key: 0 },
|
|
783
|
-
Ht(c.value, (C, w) => (
|
|
783
|
+
Ht(c.value, (C, w) => (I(), M("div", {
|
|
784
784
|
class: "iking-privew-annex simple",
|
|
785
785
|
onClick: (b) => s(C),
|
|
786
786
|
style: le({ width: u.value })
|
|
@@ -798,13 +798,13 @@ const it = (a, o) => {
|
|
|
798
798
|
class: te(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
799
799
|
},
|
|
800
800
|
[
|
|
801
|
-
|
|
801
|
+
Q(z($e), {
|
|
802
802
|
name: "iksvg_daochu",
|
|
803
803
|
onClick: ui((b) => l(C), ["stop"]),
|
|
804
804
|
size: 20,
|
|
805
805
|
active: ""
|
|
806
806
|
}, null, 8, ["onClick"]),
|
|
807
|
-
|
|
807
|
+
Q(z($e), {
|
|
808
808
|
name: "iksvg_yulan",
|
|
809
809
|
size: 20,
|
|
810
810
|
active: ""
|
|
@@ -819,14 +819,14 @@ const it = (a, o) => {
|
|
|
819
819
|
], 12, Vr))),
|
|
820
820
|
256
|
|
821
821
|
/* UNKEYED_FRAGMENT */
|
|
822
|
-
)) : (
|
|
823
|
-
default:
|
|
824
|
-
(
|
|
825
|
-
|
|
822
|
+
)) : (I(), ce(g, { key: 1 }, {
|
|
823
|
+
default: X(() => [
|
|
824
|
+
(I(!0), M(
|
|
825
|
+
Ge,
|
|
826
826
|
null,
|
|
827
827
|
Ht(c.value, (C, w) => {
|
|
828
828
|
var b;
|
|
829
|
-
return
|
|
829
|
+
return I(), M(
|
|
830
830
|
"div",
|
|
831
831
|
{
|
|
832
832
|
class: te(["iking-privew-annex", { "is-bg": a.showBg }]),
|
|
@@ -841,7 +841,7 @@ const it = (a, o) => {
|
|
|
841
841
|
class: "file-card",
|
|
842
842
|
onClick: (B) => s(C)
|
|
843
843
|
}, [
|
|
844
|
-
|
|
844
|
+
Q(z(Nr), {
|
|
845
845
|
file: C,
|
|
846
846
|
style: le({ height: `${a.iconSize}px` }),
|
|
847
847
|
class: "ikui-w-auto",
|
|
@@ -869,14 +869,14 @@ const it = (a, o) => {
|
|
|
869
869
|
class: te(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
870
870
|
},
|
|
871
871
|
[
|
|
872
|
-
|
|
872
|
+
Q(z($e), {
|
|
873
873
|
name: "iksvg_daochu",
|
|
874
874
|
onClick: ui((B) => l(C), ["stop"]),
|
|
875
875
|
bg: a.showBg,
|
|
876
876
|
size: a.showBg ? "default" : 20,
|
|
877
877
|
title: "下载"
|
|
878
878
|
}, null, 8, ["onClick", "bg", "size"]),
|
|
879
|
-
|
|
879
|
+
Q(z($e), {
|
|
880
880
|
name: "iksvg_yulan",
|
|
881
881
|
bg: a.showBg,
|
|
882
882
|
size: a.showBg ? "default" : 20,
|
|
@@ -906,7 +906,7 @@ const it = (a, o) => {
|
|
|
906
906
|
64
|
|
907
907
|
/* STABLE_FRAGMENT */
|
|
908
908
|
)) : ue("v-if", !0),
|
|
909
|
-
|
|
909
|
+
Q(z(Zr), {
|
|
910
910
|
show: n.value,
|
|
911
911
|
"onUpdate:show": d[0] || (d[0] = (C) => n.value = C),
|
|
912
912
|
loadUrl: z(r),
|
|
@@ -1021,11 +1021,11 @@ const Xr = Pe(Yr), qr = /* @__PURE__ */ se({
|
|
|
1021
1021
|
return (u, c) => {
|
|
1022
1022
|
var d, g, p;
|
|
1023
1023
|
const h = Ee("el-image-viewer");
|
|
1024
|
-
return r.value ? (
|
|
1025
|
-
|
|
1024
|
+
return r.value ? (I(), M(
|
|
1025
|
+
Ge,
|
|
1026
1026
|
{ key: 0 },
|
|
1027
1027
|
[
|
|
1028
|
-
(d = i.value) != null && d.url && n.image ? (
|
|
1028
|
+
(d = i.value) != null && d.url && n.image ? (I(), ce(h, {
|
|
1029
1029
|
key: 0,
|
|
1030
1030
|
onClose: c[0] || (c[0] = (m) => l()),
|
|
1031
1031
|
ref: "previewImgRef",
|
|
@@ -1034,12 +1034,12 @@ const Xr = Pe(Yr), qr = /* @__PURE__ */ se({
|
|
|
1034
1034
|
}, null, 8, ["url-list"])) : ue("v-if", !0),
|
|
1035
1035
|
ue(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
1036
1036
|
ue(" 文档类 "),
|
|
1037
|
-
|
|
1037
|
+
Q(z(Na), {
|
|
1038
1038
|
modelValue: n.video,
|
|
1039
1039
|
"onUpdate:modelValue": c[1] || (c[1] = (m) => n.video = m),
|
|
1040
1040
|
url: (p = i.value) == null ? void 0 : p.url
|
|
1041
1041
|
}, null, 8, ["modelValue", "url"]),
|
|
1042
|
-
|
|
1042
|
+
Q(z(fs), {
|
|
1043
1043
|
modelValue: n.office,
|
|
1044
1044
|
"onUpdate:modelValue": c[2] || (c[2] = (m) => n.office = m),
|
|
1045
1045
|
draggable: "",
|
|
@@ -1054,10 +1054,10 @@ const Xr = Pe(Yr), qr = /* @__PURE__ */ se({
|
|
|
1054
1054
|
onClose: l,
|
|
1055
1055
|
"modal-class": "ik-only-preview-dialog"
|
|
1056
1056
|
}, {
|
|
1057
|
-
default:
|
|
1057
|
+
default: X(() => {
|
|
1058
1058
|
var m;
|
|
1059
1059
|
return [
|
|
1060
|
-
|
|
1060
|
+
Q(z(Cs), {
|
|
1061
1061
|
"config-options": e.value,
|
|
1062
1062
|
"document-server-url": ((m = a.onlyOfficeConfig) == null ? void 0 : m.serverUrl) || a.onlyofficeServer
|
|
1063
1063
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -1130,6 +1130,7 @@ const Zr = Pe(qr), Jr = {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
r.value.rotate && i.push(`rotate(${r.value.rotate % 360}deg)`);
|
|
1132
1132
|
const n = {
|
|
1133
|
+
pointerEvents: r.value.disabled ? "none" : "auto",
|
|
1133
1134
|
...r.value.color && { color: r.value.color },
|
|
1134
1135
|
...r.value.size && { fontSize: typeof r.value.size == "number" ? `${r.value.size}px` : r.value.size },
|
|
1135
1136
|
...i.length && { transform: i.join(" ") },
|
|
@@ -1143,8 +1144,8 @@ const Zr = Pe(qr), Jr = {
|
|
|
1143
1144
|
});
|
|
1144
1145
|
return (i, n) => {
|
|
1145
1146
|
const s = Ee("el-tooltip"), l = Ee("el-button");
|
|
1146
|
-
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (
|
|
1147
|
-
r.value.notip || !r.value.title ? (
|
|
1147
|
+
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (I(), M("span", Jr, [
|
|
1148
|
+
r.value.notip || !r.value.title ? (I(), M(
|
|
1148
1149
|
"i",
|
|
1149
1150
|
{
|
|
1150
1151
|
key: 0,
|
|
@@ -1165,7 +1166,7 @@ const Zr = Pe(qr), Jr = {
|
|
|
1165
1166
|
},
|
|
1166
1167
|
[
|
|
1167
1168
|
ue(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
1168
|
-
t.value === "iksig" ? (
|
|
1169
|
+
t.value === "iksig" ? (I(), M(
|
|
1169
1170
|
"i",
|
|
1170
1171
|
{
|
|
1171
1172
|
key: 0,
|
|
@@ -1175,15 +1176,15 @@ const Zr = Pe(qr), Jr = {
|
|
|
1175
1176
|
null,
|
|
1176
1177
|
6
|
|
1177
1178
|
/* CLASS, STYLE */
|
|
1178
|
-
)) : t.value === "svg" ? (
|
|
1179
|
+
)) : t.value === "svg" ? (I(), M("svg", Qr, [
|
|
1179
1180
|
S("use", {
|
|
1180
1181
|
"xlink:href": `#${r.value.name}`
|
|
1181
1182
|
}, null, 8, es)
|
|
1182
|
-
])) : t.value === "img" ? (
|
|
1183
|
+
])) : t.value === "img" ? (I(), M("img", {
|
|
1183
1184
|
key: 2,
|
|
1184
1185
|
src: r.value.name,
|
|
1185
1186
|
class: "h-[1em] w-[1em]"
|
|
1186
|
-
}, null, 8, ts)) : (
|
|
1187
|
+
}, null, 8, ts)) : (I(), M(
|
|
1187
1188
|
"i",
|
|
1188
1189
|
{
|
|
1189
1190
|
key: 3,
|
|
@@ -1197,12 +1198,12 @@ const Zr = Pe(qr), Jr = {
|
|
|
1197
1198
|
],
|
|
1198
1199
|
6
|
|
1199
1200
|
/* CLASS, STYLE */
|
|
1200
|
-
)) : (
|
|
1201
|
+
)) : (I(), ce(s, {
|
|
1201
1202
|
key: 1,
|
|
1202
1203
|
content: r.value.title,
|
|
1203
1204
|
placement: "top"
|
|
1204
1205
|
}, {
|
|
1205
|
-
default:
|
|
1206
|
+
default: X(() => [
|
|
1206
1207
|
S(
|
|
1207
1208
|
"i",
|
|
1208
1209
|
{
|
|
@@ -1221,7 +1222,7 @@ const Zr = Pe(qr), Jr = {
|
|
|
1221
1222
|
style: le(e.value)
|
|
1222
1223
|
},
|
|
1223
1224
|
[
|
|
1224
|
-
t.value === "iksig" ? (
|
|
1225
|
+
t.value === "iksig" ? (I(), M(
|
|
1225
1226
|
"i",
|
|
1226
1227
|
{
|
|
1227
1228
|
key: 0,
|
|
@@ -1231,15 +1232,15 @@ const Zr = Pe(qr), Jr = {
|
|
|
1231
1232
|
null,
|
|
1232
1233
|
6
|
|
1233
1234
|
/* CLASS, STYLE */
|
|
1234
|
-
)) : t.value === "svg" ? (
|
|
1235
|
+
)) : t.value === "svg" ? (I(), M("svg", is, [
|
|
1235
1236
|
S("use", {
|
|
1236
1237
|
"xlink:href": `#${r.value.name}`
|
|
1237
1238
|
}, null, 8, ns)
|
|
1238
|
-
])) : t.value === "img" ? (
|
|
1239
|
+
])) : t.value === "img" ? (I(), M("img", {
|
|
1239
1240
|
key: 2,
|
|
1240
1241
|
src: r.value.name,
|
|
1241
1242
|
class: "h-[1em] w-[1em]"
|
|
1242
|
-
}, null, 8, rs)) : (
|
|
1243
|
+
}, null, 8, rs)) : (I(), M(
|
|
1243
1244
|
"i",
|
|
1244
1245
|
{
|
|
1245
1246
|
key: 3,
|
|
@@ -1258,11 +1259,11 @@ const Zr = Pe(qr), Jr = {
|
|
|
1258
1259
|
_: 1
|
|
1259
1260
|
/* STABLE */
|
|
1260
1261
|
}, 8, ["content"]))
|
|
1261
|
-
])) : (
|
|
1262
|
+
])) : (I(), ce(l, {
|
|
1262
1263
|
key: 1,
|
|
1263
1264
|
type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
|
|
1264
1265
|
}, {
|
|
1265
|
-
default:
|
|
1266
|
+
default: X(() => [
|
|
1266
1267
|
Ye(
|
|
1267
1268
|
_e(r.value.title),
|
|
1268
1269
|
1
|
|
@@ -1275,10 +1276,7 @@ const Zr = Pe(qr), Jr = {
|
|
|
1275
1276
|
};
|
|
1276
1277
|
}
|
|
1277
1278
|
});
|
|
1278
|
-
const os = /* @__PURE__ */ it(ss, [["__scopeId", "data-v-
|
|
1279
|
-
key: 0,
|
|
1280
|
-
class: "exit-main-page-maximize"
|
|
1281
|
-
}, ls = /* @__PURE__ */ se({
|
|
1279
|
+
const os = /* @__PURE__ */ it(ss, [["__scopeId", "data-v-52806adf"]]), $e = Pe(os), as = /* @__PURE__ */ se({
|
|
1282
1280
|
__name: "CloseIcon",
|
|
1283
1281
|
props: {
|
|
1284
1282
|
showBg: {
|
|
@@ -1291,25 +1289,15 @@ const os = /* @__PURE__ */ it(ss, [["__scopeId", "data-v-a7ec508a"]]), Oe = Pe(o
|
|
|
1291
1289
|
}
|
|
1292
1290
|
},
|
|
1293
1291
|
setup(a) {
|
|
1294
|
-
return (o, r) => (
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
error: ""
|
|
1301
|
-
})
|
|
1302
|
-
])) : (x(), ce(z(Oe), {
|
|
1303
|
-
key: 1,
|
|
1304
|
-
error: "",
|
|
1305
|
-
name: "iksvg_guanbidanchuang",
|
|
1306
|
-
title: "关闭",
|
|
1307
|
-
size: 20
|
|
1308
|
-
}))
|
|
1309
|
-
]));
|
|
1292
|
+
return (o, r) => (I(), ce(z($e), {
|
|
1293
|
+
error: "",
|
|
1294
|
+
name: "iksvg_guanbidanchuang",
|
|
1295
|
+
title: "关闭",
|
|
1296
|
+
size: 20
|
|
1297
|
+
}));
|
|
1310
1298
|
}
|
|
1311
1299
|
});
|
|
1312
|
-
const
|
|
1300
|
+
const ls = /* @__PURE__ */ it(as, [["__scopeId", "data-v-e27fb022"]]), us = { class: "base-header" }, cs = /* @__PURE__ */ se({
|
|
1313
1301
|
__name: "IkBaseDialog",
|
|
1314
1302
|
props: /* @__PURE__ */ ut({
|
|
1315
1303
|
title: { default: "" },
|
|
@@ -1334,7 +1322,7 @@ const us = /* @__PURE__ */ it(ls, [["__scopeId", "data-v-79f49df8"]]), cs = { cl
|
|
|
1334
1322
|
t.value = !t.value;
|
|
1335
1323
|
}, i = se({
|
|
1336
1324
|
setup() {
|
|
1337
|
-
return () => wn(
|
|
1325
|
+
return () => wn(ls, {
|
|
1338
1326
|
showBg: o.showCloseBg,
|
|
1339
1327
|
fullscreen: o.fullscreen
|
|
1340
1328
|
});
|
|
@@ -1342,7 +1330,7 @@ const us = /* @__PURE__ */ it(ls, [["__scopeId", "data-v-79f49df8"]]), cs = { cl
|
|
|
1342
1330
|
});
|
|
1343
1331
|
return (n, s) => {
|
|
1344
1332
|
const l = Ee("el-dialog");
|
|
1345
|
-
return
|
|
1333
|
+
return I(), ce(l, Ut({
|
|
1346
1334
|
modelValue: r.value,
|
|
1347
1335
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
|
|
1348
1336
|
}, n.$attrs, {
|
|
@@ -1351,7 +1339,7 @@ const us = /* @__PURE__ */ it(ls, [["__scopeId", "data-v-79f49df8"]]), cs = { cl
|
|
|
1351
1339
|
fullscreen: t.value,
|
|
1352
1340
|
"modal-class": "baseDialog"
|
|
1353
1341
|
}), Tn({
|
|
1354
|
-
icon:
|
|
1342
|
+
icon: X(() => [
|
|
1355
1343
|
pe(n.$slots, "title", {}, () => [
|
|
1356
1344
|
Ye(
|
|
1357
1345
|
_e(n.title),
|
|
@@ -1360,8 +1348,8 @@ const us = /* @__PURE__ */ it(ls, [["__scopeId", "data-v-79f49df8"]]), cs = { cl
|
|
|
1360
1348
|
)
|
|
1361
1349
|
])
|
|
1362
1350
|
]),
|
|
1363
|
-
header:
|
|
1364
|
-
S("div",
|
|
1351
|
+
header: X(() => [
|
|
1352
|
+
S("div", us, [
|
|
1365
1353
|
pe(n.$slots, "header", {}, () => [
|
|
1366
1354
|
Ye(
|
|
1367
1355
|
_e(n.title),
|
|
@@ -1370,7 +1358,7 @@ const us = /* @__PURE__ */ it(ls, [["__scopeId", "data-v-79f49df8"]]), cs = { cl
|
|
|
1370
1358
|
)
|
|
1371
1359
|
])
|
|
1372
1360
|
]),
|
|
1373
|
-
n.$attrs.showClose ? (
|
|
1361
|
+
n.$attrs.showClose ? (I(), ce(z($e), {
|
|
1374
1362
|
key: 0,
|
|
1375
1363
|
onClick: e,
|
|
1376
1364
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
@@ -1378,7 +1366,7 @@ const us = /* @__PURE__ */ it(ls, [["__scopeId", "data-v-79f49df8"]]), cs = { cl
|
|
|
1378
1366
|
title: t.value ? "退出全屏" : "全屏"
|
|
1379
1367
|
}, null, 8, ["name", "title"])) : ue("v-if", !0)
|
|
1380
1368
|
]),
|
|
1381
|
-
default:
|
|
1369
|
+
default: X(() => [
|
|
1382
1370
|
pe(n.$slots, "default")
|
|
1383
1371
|
]),
|
|
1384
1372
|
_: 2
|
|
@@ -1386,7 +1374,7 @@ const us = /* @__PURE__ */ it(ls, [["__scopeId", "data-v-79f49df8"]]), cs = { cl
|
|
|
1386
1374
|
}, [
|
|
1387
1375
|
n.$slots.footer ? {
|
|
1388
1376
|
name: "footer",
|
|
1389
|
-
fn:
|
|
1377
|
+
fn: X(() => [
|
|
1390
1378
|
pe(n.$slots, "footer")
|
|
1391
1379
|
]),
|
|
1392
1380
|
key: "0"
|
|
@@ -1395,12 +1383,12 @@ const us = /* @__PURE__ */ it(ls, [["__scopeId", "data-v-79f49df8"]]), cs = { cl
|
|
|
1395
1383
|
};
|
|
1396
1384
|
}
|
|
1397
1385
|
});
|
|
1398
|
-
const
|
|
1399
|
-
var
|
|
1386
|
+
const fs = Pe(cs);
|
|
1387
|
+
var hs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1400
1388
|
function Xt(a) {
|
|
1401
1389
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1402
1390
|
}
|
|
1403
|
-
function
|
|
1391
|
+
function ds(a, o, r, t) {
|
|
1404
1392
|
function e(i) {
|
|
1405
1393
|
return i instanceof r ? i : new r(function(n) {
|
|
1406
1394
|
n(i);
|
|
@@ -1427,7 +1415,7 @@ function gs(a, o, r, t) {
|
|
|
1427
1415
|
u((t = t.apply(a, o || [])).next());
|
|
1428
1416
|
});
|
|
1429
1417
|
}
|
|
1430
|
-
function
|
|
1418
|
+
function gs(a, o) {
|
|
1431
1419
|
var r = { label: 0, sent: function() {
|
|
1432
1420
|
if (i[0] & 1)
|
|
1433
1421
|
throw i[1];
|
|
@@ -1492,9 +1480,9 @@ function ps(a, o) {
|
|
|
1492
1480
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
1493
1481
|
}
|
|
1494
1482
|
}
|
|
1495
|
-
var
|
|
1496
|
-
return
|
|
1497
|
-
return
|
|
1483
|
+
var ps = function(a, o) {
|
|
1484
|
+
return ds(void 0, void 0, void 0, function() {
|
|
1485
|
+
return gs(this, function(r) {
|
|
1498
1486
|
return [2, new Promise(function(t, e) {
|
|
1499
1487
|
try {
|
|
1500
1488
|
if (window.DocsAPI)
|
|
@@ -1582,7 +1570,7 @@ var vs = function(a, o) {
|
|
|
1582
1570
|
var a = this, o = this.documentServerUrl;
|
|
1583
1571
|
o.endsWith("/") || (o += "/");
|
|
1584
1572
|
var r = "".concat(o, "web-apps/apps/api/documents/api.js");
|
|
1585
|
-
|
|
1573
|
+
ps(r, "onlyoffice-api-script").then(function() {
|
|
1586
1574
|
return a.onLoad();
|
|
1587
1575
|
}).catch(function() {
|
|
1588
1576
|
a.onError(-2);
|
|
@@ -1696,13 +1684,13 @@ var vs = function(a, o) {
|
|
|
1696
1684
|
}
|
|
1697
1685
|
}
|
|
1698
1686
|
});
|
|
1699
|
-
const
|
|
1700
|
-
function
|
|
1701
|
-
return
|
|
1687
|
+
const vs = ["id"];
|
|
1688
|
+
function ms(a, o, r, t, e, i) {
|
|
1689
|
+
return I(), M("div", { id: a.id }, null, 8, vs);
|
|
1702
1690
|
}
|
|
1703
|
-
qt.render =
|
|
1691
|
+
qt.render = ms;
|
|
1704
1692
|
qt.__file = "src/components/DocumentEditor.vue";
|
|
1705
|
-
const
|
|
1693
|
+
const ys = /* @__PURE__ */ se({
|
|
1706
1694
|
__name: "IkOnlyOffice",
|
|
1707
1695
|
props: {
|
|
1708
1696
|
// 文件服务器的服务的地址
|
|
@@ -1731,13 +1719,13 @@ const _s = /* @__PURE__ */ se({
|
|
|
1731
1719
|
}), t = () => {
|
|
1732
1720
|
console.info("文档加载完成", o.configOptions);
|
|
1733
1721
|
};
|
|
1734
|
-
return (e, i) => (
|
|
1722
|
+
return (e, i) => (I(), M(
|
|
1735
1723
|
"div",
|
|
1736
1724
|
{
|
|
1737
1725
|
style: le({ height: o.officeHeight })
|
|
1738
1726
|
},
|
|
1739
1727
|
[
|
|
1740
|
-
|
|
1728
|
+
Q(z(qt), {
|
|
1741
1729
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1742
1730
|
ref: "editorRef",
|
|
1743
1731
|
"document-server-url": a.documentServerUrl,
|
|
@@ -1750,7 +1738,7 @@ const _s = /* @__PURE__ */ se({
|
|
|
1750
1738
|
));
|
|
1751
1739
|
}
|
|
1752
1740
|
});
|
|
1753
|
-
const
|
|
1741
|
+
const _s = /* @__PURE__ */ it(ys, [["__scopeId", "data-v-98d51ef9"]]), Cs = Pe(_s);
|
|
1754
1742
|
function hi(a, o) {
|
|
1755
1743
|
var r = Object.keys(a);
|
|
1756
1744
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1772,13 +1760,13 @@ function W(a) {
|
|
|
1772
1760
|
}
|
|
1773
1761
|
return a;
|
|
1774
1762
|
}
|
|
1775
|
-
function
|
|
1763
|
+
function q(a) {
|
|
1776
1764
|
"@babel/helpers - typeof";
|
|
1777
|
-
return
|
|
1765
|
+
return q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
|
|
1778
1766
|
return typeof o;
|
|
1779
1767
|
} : function(o) {
|
|
1780
1768
|
return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
1781
|
-
},
|
|
1769
|
+
}, q(a);
|
|
1782
1770
|
}
|
|
1783
1771
|
function T(a, o) {
|
|
1784
1772
|
if (!(a instanceof o))
|
|
@@ -1803,7 +1791,7 @@ function y(a, o, r) {
|
|
|
1803
1791
|
writable: !0
|
|
1804
1792
|
}) : a[o] = r, a;
|
|
1805
1793
|
}
|
|
1806
|
-
function
|
|
1794
|
+
function x(a, o) {
|
|
1807
1795
|
if (typeof o != "function" && o !== null)
|
|
1808
1796
|
throw new TypeError("Super expression must either be null or a function");
|
|
1809
1797
|
a.prototype = Object.create(o && o.prototype, {
|
|
@@ -1826,7 +1814,7 @@ function Vt(a, o) {
|
|
|
1826
1814
|
return t.__proto__ = e, t;
|
|
1827
1815
|
}, Vt(a, o);
|
|
1828
1816
|
}
|
|
1829
|
-
function
|
|
1817
|
+
function ks() {
|
|
1830
1818
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1831
1819
|
return !1;
|
|
1832
1820
|
if (typeof Proxy == "function")
|
|
@@ -1850,8 +1838,8 @@ function Zt(a, o) {
|
|
|
1850
1838
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1851
1839
|
return v(a);
|
|
1852
1840
|
}
|
|
1853
|
-
function
|
|
1854
|
-
var o =
|
|
1841
|
+
function P(a) {
|
|
1842
|
+
var o = ks();
|
|
1855
1843
|
return function() {
|
|
1856
1844
|
var t = A(a), e;
|
|
1857
1845
|
if (o) {
|
|
@@ -1862,14 +1850,14 @@ function I(a) {
|
|
|
1862
1850
|
return Zt(this, e);
|
|
1863
1851
|
};
|
|
1864
1852
|
}
|
|
1865
|
-
function
|
|
1853
|
+
function bs(a, o) {
|
|
1866
1854
|
for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = A(a), a !== null); )
|
|
1867
1855
|
;
|
|
1868
1856
|
return a;
|
|
1869
1857
|
}
|
|
1870
1858
|
function L() {
|
|
1871
1859
|
return typeof Reflect < "u" && Reflect.get ? L = Reflect.get.bind() : L = function(o, r, t) {
|
|
1872
|
-
var e =
|
|
1860
|
+
var e = bs(o, r);
|
|
1873
1861
|
if (e) {
|
|
1874
1862
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
1875
1863
|
return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
|
|
@@ -1877,17 +1865,17 @@ function L() {
|
|
|
1877
1865
|
}, L.apply(this, arguments);
|
|
1878
1866
|
}
|
|
1879
1867
|
function fe(a) {
|
|
1880
|
-
return
|
|
1868
|
+
return ws(a) || Ts(a) || Es(a) || Ss();
|
|
1881
1869
|
}
|
|
1882
|
-
function
|
|
1870
|
+
function ws(a) {
|
|
1883
1871
|
if (Array.isArray(a))
|
|
1884
1872
|
return jt(a);
|
|
1885
1873
|
}
|
|
1886
|
-
function
|
|
1874
|
+
function Ts(a) {
|
|
1887
1875
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
1888
1876
|
return Array.from(a);
|
|
1889
1877
|
}
|
|
1890
|
-
function
|
|
1878
|
+
function Es(a, o) {
|
|
1891
1879
|
if (a) {
|
|
1892
1880
|
if (typeof a == "string")
|
|
1893
1881
|
return jt(a, o);
|
|
@@ -1904,11 +1892,11 @@ function jt(a, o) {
|
|
|
1904
1892
|
t[r] = a[r];
|
|
1905
1893
|
return t;
|
|
1906
1894
|
}
|
|
1907
|
-
function
|
|
1895
|
+
function Ss() {
|
|
1908
1896
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1909
1897
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1910
1898
|
}
|
|
1911
|
-
function
|
|
1899
|
+
function xs(a, o) {
|
|
1912
1900
|
if (typeof a != "object" || a === null)
|
|
1913
1901
|
return a;
|
|
1914
1902
|
var r = a[Symbol.toPrimitive];
|
|
@@ -1921,7 +1909,7 @@ function Ps(a, o) {
|
|
|
1921
1909
|
return (o === "string" ? String : Number)(a);
|
|
1922
1910
|
}
|
|
1923
1911
|
function Gi(a) {
|
|
1924
|
-
var o =
|
|
1912
|
+
var o = xs(a, "string");
|
|
1925
1913
|
return typeof o == "symbol" ? o : String(o);
|
|
1926
1914
|
}
|
|
1927
1915
|
var $i = { exports: {} };
|
|
@@ -1988,7 +1976,7 @@ var $i = { exports: {} };
|
|
|
1988
1976
|
w[b - 1] = arguments[b];
|
|
1989
1977
|
_.fn.apply(_.context, w);
|
|
1990
1978
|
} else {
|
|
1991
|
-
var B = _.length,
|
|
1979
|
+
var B = _.length, F;
|
|
1992
1980
|
for (b = 0; b < B; b++)
|
|
1993
1981
|
switch (_[b].once && this.removeListener(u, _[b].fn, void 0, !0), C) {
|
|
1994
1982
|
case 1:
|
|
@@ -2005,8 +1993,8 @@ var $i = { exports: {} };
|
|
|
2005
1993
|
break;
|
|
2006
1994
|
default:
|
|
2007
1995
|
if (!w)
|
|
2008
|
-
for (
|
|
2009
|
-
w[
|
|
1996
|
+
for (F = 1, w = new Array(C - 1); F < C; F++)
|
|
1997
|
+
w[F - 1] = arguments[F];
|
|
2010
1998
|
_[b].fn.apply(_[b].context, w);
|
|
2011
1999
|
}
|
|
2012
2000
|
}
|
|
@@ -2037,13 +2025,13 @@ var $i = { exports: {} };
|
|
|
2037
2025
|
})($i);
|
|
2038
2026
|
var Ki = $i.exports;
|
|
2039
2027
|
const Yi = /* @__PURE__ */ Xt(Ki);
|
|
2040
|
-
var
|
|
2028
|
+
var Ps = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Et = {
|
|
2041
2029
|
info: "color: #525252; background-color: #90ee90;",
|
|
2042
2030
|
error: "color: #525252; background-color: red;",
|
|
2043
2031
|
warn: "color: #525252; background-color: yellow; "
|
|
2044
|
-
}, St = "%c[xgplayer]",
|
|
2032
|
+
}, St = "%c[xgplayer]", O = {
|
|
2045
2033
|
config: {
|
|
2046
|
-
debug:
|
|
2034
|
+
debug: Ps ? 3 : 0
|
|
2047
2035
|
},
|
|
2048
2036
|
logInfo: function(o) {
|
|
2049
2037
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
@@ -2064,10 +2052,10 @@ var Is = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
2064
2052
|
}
|
|
2065
2053
|
}
|
|
2066
2054
|
};
|
|
2067
|
-
function
|
|
2068
|
-
a.logInfo =
|
|
2055
|
+
function Is(a) {
|
|
2056
|
+
a.logInfo = O.logInfo.bind(a), a.logWarn = O.logWarn.bind(a), a.logError = O.logError.bind(a);
|
|
2069
2057
|
}
|
|
2070
|
-
var
|
|
2058
|
+
var As = /* @__PURE__ */ function() {
|
|
2071
2059
|
function a(o) {
|
|
2072
2060
|
T(this, a), this.bufferedList = o;
|
|
2073
2061
|
}
|
|
@@ -2105,7 +2093,7 @@ f.createDomFromHtml = function(a) {
|
|
|
2105
2093
|
e.setAttribute(i, o[i]);
|
|
2106
2094
|
}), e) : null;
|
|
2107
2095
|
} catch (i) {
|
|
2108
|
-
return
|
|
2096
|
+
return O.logError("util.createDomFromHtml", i), null;
|
|
2109
2097
|
}
|
|
2110
2098
|
};
|
|
2111
2099
|
f.hasClass = function(a, o) {
|
|
@@ -2116,7 +2104,7 @@ f.hasClass = function(a, o) {
|
|
|
2116
2104
|
return t === o;
|
|
2117
2105
|
});
|
|
2118
2106
|
} catch {
|
|
2119
|
-
var r = a.className &&
|
|
2107
|
+
var r = a.className && q(a.className) === "object" ? a.getAttribute("class") : a.className;
|
|
2120
2108
|
return r && !!r.match(new RegExp("(\\s|^)" + o + "(\\s|$)"));
|
|
2121
2109
|
}
|
|
2122
2110
|
};
|
|
@@ -2127,7 +2115,7 @@ f.addClass = function(a, o) {
|
|
|
2127
2115
|
r && a.classList.add(r);
|
|
2128
2116
|
});
|
|
2129
2117
|
} catch {
|
|
2130
|
-
f.hasClass(a, o) || (a.className &&
|
|
2118
|
+
f.hasClass(a, o) || (a.className && q(a.className) === "object" ? a.setAttribute("class", a.getAttribute("class") + " " + o) : a.className += " " + o);
|
|
2131
2119
|
}
|
|
2132
2120
|
};
|
|
2133
2121
|
f.removeClass = function(a, o) {
|
|
@@ -2139,7 +2127,7 @@ f.removeClass = function(a, o) {
|
|
|
2139
2127
|
} catch {
|
|
2140
2128
|
f.hasClass(a, o) && o.split(/\s+/g).forEach(function(t) {
|
|
2141
2129
|
var e = new RegExp("(\\s|^)" + t + "(\\s|$)");
|
|
2142
|
-
a.className &&
|
|
2130
|
+
a.className && q(a.className) === "object" ? a.setAttribute("class", a.getAttribute("class").replace(e, " ")) : a.className = a.className.replace(e, " ");
|
|
2143
2131
|
});
|
|
2144
2132
|
}
|
|
2145
2133
|
};
|
|
@@ -2162,7 +2150,7 @@ f.findDom = function() {
|
|
|
2162
2150
|
try {
|
|
2163
2151
|
r = a.querySelector(o);
|
|
2164
2152
|
} catch (t) {
|
|
2165
|
-
|
|
2153
|
+
O.logError("util.findDom", t), o.indexOf("#") === 0 && (r = a.getElementById(o.slice(1)));
|
|
2166
2154
|
}
|
|
2167
2155
|
return r;
|
|
2168
2156
|
};
|
|
@@ -2283,7 +2271,7 @@ f.checkIsFunction = function(a) {
|
|
|
2283
2271
|
return a && typeof a == "function";
|
|
2284
2272
|
};
|
|
2285
2273
|
f.checkIsObject = function(a) {
|
|
2286
|
-
return a !== null &&
|
|
2274
|
+
return a !== null && q(a) === "object";
|
|
2287
2275
|
};
|
|
2288
2276
|
f.hide = function(a) {
|
|
2289
2277
|
a.style.display = "none";
|
|
@@ -2313,7 +2301,7 @@ f.setStyleFromCsstext = function(a, o) {
|
|
|
2313
2301
|
a.style[t] = o[t];
|
|
2314
2302
|
});
|
|
2315
2303
|
};
|
|
2316
|
-
function
|
|
2304
|
+
function Ls(a, o) {
|
|
2317
2305
|
for (var r = 0, t = o.length; r < t; r++)
|
|
2318
2306
|
if (a.indexOf(o[r]) > -1)
|
|
2319
2307
|
return !0;
|
|
@@ -2327,7 +2315,7 @@ f.filterStyleFromText = function(a) {
|
|
|
2327
2315
|
return t.map(function(n) {
|
|
2328
2316
|
if (n) {
|
|
2329
2317
|
var s = n.split(":");
|
|
2330
|
-
s.length > 1 && (
|
|
2318
|
+
s.length > 1 && (Ls(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
|
|
2331
2319
|
}
|
|
2332
2320
|
}), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
|
|
2333
2321
|
a.style[n] = i[n];
|
|
@@ -2392,7 +2380,7 @@ f.getBuffered2 = function(a) {
|
|
|
2392
2380
|
}
|
|
2393
2381
|
else
|
|
2394
2382
|
e = r;
|
|
2395
|
-
return new
|
|
2383
|
+
return new As(e);
|
|
2396
2384
|
};
|
|
2397
2385
|
f.getEventPos = function(a) {
|
|
2398
2386
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
@@ -2513,10 +2501,10 @@ f.getCurrentTimeByOffset = function(a, o) {
|
|
|
2513
2501
|
return a;
|
|
2514
2502
|
};
|
|
2515
2503
|
function Xi(a) {
|
|
2516
|
-
var o =
|
|
2504
|
+
var o = q(a);
|
|
2517
2505
|
return a !== null && (o === "object" || o === "function");
|
|
2518
2506
|
}
|
|
2519
|
-
function
|
|
2507
|
+
function Ds(a, o, r) {
|
|
2520
2508
|
var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, g = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
|
|
2521
2509
|
if (typeof a != "function")
|
|
2522
2510
|
throw new TypeError("Expected a function");
|
|
@@ -2547,19 +2535,19 @@ function Rs(a, o, r) {
|
|
|
2547
2535
|
function B() {
|
|
2548
2536
|
var H = Date.now();
|
|
2549
2537
|
if (b(H))
|
|
2550
|
-
return
|
|
2538
|
+
return F(H);
|
|
2551
2539
|
s = m(B, w(H));
|
|
2552
2540
|
}
|
|
2553
|
-
function
|
|
2541
|
+
function F(H) {
|
|
2554
2542
|
return s = void 0, d && t ? p(H) : (t = e = void 0, n);
|
|
2555
2543
|
}
|
|
2556
2544
|
function V() {
|
|
2557
2545
|
s !== void 0 && _(s), u = 0, t = l = e = s = void 0;
|
|
2558
2546
|
}
|
|
2559
2547
|
function D() {
|
|
2560
|
-
return s === void 0 ? n :
|
|
2548
|
+
return s === void 0 ? n : F(Date.now());
|
|
2561
2549
|
}
|
|
2562
|
-
function
|
|
2550
|
+
function Z() {
|
|
2563
2551
|
return s !== void 0;
|
|
2564
2552
|
}
|
|
2565
2553
|
function G() {
|
|
@@ -2573,23 +2561,23 @@ function Rs(a, o, r) {
|
|
|
2573
2561
|
}
|
|
2574
2562
|
return s === void 0 && (s = m(B, o)), n;
|
|
2575
2563
|
}
|
|
2576
|
-
return G.cancel = V, G.flush = D, G.pending =
|
|
2564
|
+
return G.cancel = V, G.flush = D, G.pending = Z, G;
|
|
2577
2565
|
}
|
|
2578
|
-
function
|
|
2566
|
+
function Rs(a, o, r) {
|
|
2579
2567
|
var t = !0, e = !0;
|
|
2580
2568
|
if (typeof a != "function")
|
|
2581
2569
|
throw new TypeError("Expected a function");
|
|
2582
|
-
return Xi(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e),
|
|
2570
|
+
return Xi(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Ds(a, o, {
|
|
2583
2571
|
leading: t,
|
|
2584
2572
|
trailing: e,
|
|
2585
2573
|
maxWait: o
|
|
2586
2574
|
});
|
|
2587
2575
|
}
|
|
2588
|
-
function
|
|
2576
|
+
function Os() {
|
|
2589
2577
|
var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
|
|
2590
2578
|
return a === "zh-cn" && (a = "zh"), a;
|
|
2591
2579
|
}
|
|
2592
|
-
function
|
|
2580
|
+
function Fs(a, o, r) {
|
|
2593
2581
|
if (a) {
|
|
2594
2582
|
var t = a.getAttribute(r);
|
|
2595
2583
|
return !!(t && t === o && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
|
|
@@ -2598,7 +2586,7 @@ function Ms(a, o, r) {
|
|
|
2598
2586
|
var gi = {
|
|
2599
2587
|
android: /(Android)\s([\d.]+)/,
|
|
2600
2588
|
ios: /(Version)\/([\d.]+)/
|
|
2601
|
-
},
|
|
2589
|
+
}, Ms = ["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"], R = {
|
|
2602
2590
|
get device() {
|
|
2603
2591
|
var a = R.os;
|
|
2604
2592
|
return a.isPc ? "pc" : "mobile";
|
|
@@ -2661,7 +2649,7 @@ var gi = {
|
|
|
2661
2649
|
if (this.supportResult)
|
|
2662
2650
|
return this.supportResult;
|
|
2663
2651
|
var r = document.createElement("video");
|
|
2664
|
-
return typeof r.canPlayType == "function" &&
|
|
2652
|
+
return typeof r.canPlayType == "function" && Ms.map(function(t) {
|
|
2665
2653
|
r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (o.isSupport = !0, o.mime += "||".concat(t));
|
|
2666
2654
|
}), this.supportResult = o, r = null, o;
|
|
2667
2655
|
},
|
|
@@ -2756,36 +2744,36 @@ var gi = {
|
|
|
2756
2744
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
2757
2745
|
}
|
|
2758
2746
|
}
|
|
2759
|
-
), re = "play", Jt = "playing",
|
|
2747
|
+
), re = "play", Jt = "playing", Fe = "ended", qe = "pause", nt = "error", Ct = "seeking", Ce = "seeked", ne = "timeupdate", rt = "waiting", ye = "canplay", Ns = "canplaythrough", Ie = "durationchange", qi = "volumechange", ke = "loadeddata", Bs = "loadedmetadata", Zi = "ratechange", Ji = "progress", Qt = "loadstart", Me = "emptied", Hs = "stalled", Us = "suspend", zs = "abort", Vs = "bufferedChange", ei = "focus", Qi = "blur", ti = "ready", en = "urlNull", Oe = "autoplay_started", ii = "autoplay_was_prevented", kt = "complete", ft = "replay", ni = "destroy", bt = "urlchange", Gt = "download_speed_change", tn = "leaveplayer", nn = "enterplayer", rn = "loading", ve = "fullscreen_change", ht = "cssFullscreen_change", dt = "mini_state_change", ri = "definition_change", js = "before_definition_change", $t = "after_definition_change", Ws = "SEI_PARSED", Gs = "retry", Se = "video_resize", Kt = "pip_change", sn = "rotate", on = "screenShot", gt = "playnext", an = "shortcut", ln = "xglog", pt = "user_action", wt = "reset", un = "source_error", cn = "source_success", $s = "switch_subtitle", fn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], hn = {
|
|
2760
2748
|
STATS_INFO: "stats_info",
|
|
2761
2749
|
STATS_DOWNLOAD: "stats_download",
|
|
2762
2750
|
STATS_RESET: "stats_reset"
|
|
2763
2751
|
}, dn = "fps_stuck";
|
|
2764
|
-
const
|
|
2752
|
+
const Ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2765
2753
|
__proto__: null,
|
|
2766
|
-
ABORT:
|
|
2754
|
+
ABORT: zs,
|
|
2767
2755
|
AFTER_DEFINITION_CHANGE: $t,
|
|
2768
2756
|
AUTOPLAY_PREVENTED: ii,
|
|
2769
|
-
AUTOPLAY_STARTED:
|
|
2770
|
-
BEFORE_DEFINITION_CHANGE:
|
|
2771
|
-
BUFFER_CHANGE:
|
|
2757
|
+
AUTOPLAY_STARTED: Oe,
|
|
2758
|
+
BEFORE_DEFINITION_CHANGE: js,
|
|
2759
|
+
BUFFER_CHANGE: Vs,
|
|
2772
2760
|
CANPLAY: ye,
|
|
2773
|
-
CANPLAY_THROUGH:
|
|
2761
|
+
CANPLAY_THROUGH: Ns,
|
|
2774
2762
|
COMPLETE: kt,
|
|
2775
2763
|
CSS_FULLSCREEN_CHANGE: ht,
|
|
2776
2764
|
DEFINITION_CHANGE: ri,
|
|
2777
2765
|
DESTROY: ni,
|
|
2778
2766
|
DOWNLOAD_SPEED_CHANGE: Gt,
|
|
2779
2767
|
DURATION_CHANGE: Ie,
|
|
2780
|
-
EMPTIED:
|
|
2781
|
-
ENDED:
|
|
2768
|
+
EMPTIED: Me,
|
|
2769
|
+
ENDED: Fe,
|
|
2782
2770
|
ENTER_PLAYER: nn,
|
|
2783
2771
|
ERROR: nt,
|
|
2784
2772
|
FPS_STUCK: dn,
|
|
2785
2773
|
FULLSCREEN_CHANGE: ve,
|
|
2786
2774
|
LEAVE_PLAYER: tn,
|
|
2787
2775
|
LOADED_DATA: ke,
|
|
2788
|
-
LOADED_METADATA:
|
|
2776
|
+
LOADED_METADATA: Bs,
|
|
2789
2777
|
LOADING: rn,
|
|
2790
2778
|
LOAD_START: Qt,
|
|
2791
2779
|
MINI_STATE_CHANGE: dt,
|
|
@@ -2801,19 +2789,19 @@ const Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2801
2789
|
READY: ti,
|
|
2802
2790
|
REPLAY: ft,
|
|
2803
2791
|
RESET: wt,
|
|
2804
|
-
RETRY:
|
|
2792
|
+
RETRY: Gs,
|
|
2805
2793
|
ROTATE: sn,
|
|
2806
2794
|
SCREEN_SHOT: on,
|
|
2807
2795
|
SEEKED: Ce,
|
|
2808
2796
|
SEEKING: Ct,
|
|
2809
|
-
SEI_PARSED:
|
|
2797
|
+
SEI_PARSED: Ws,
|
|
2810
2798
|
SHORTCUT: an,
|
|
2811
2799
|
SOURCE_ERROR: un,
|
|
2812
2800
|
SOURCE_SUCCESS: cn,
|
|
2813
|
-
STALLED:
|
|
2801
|
+
STALLED: Hs,
|
|
2814
2802
|
STATS_EVENTS: hn,
|
|
2815
|
-
SUSPEND:
|
|
2816
|
-
SWITCH_SUBTITLE:
|
|
2803
|
+
SUSPEND: Us,
|
|
2804
|
+
SWITCH_SUBTITLE: $s,
|
|
2817
2805
|
TIME_UPDATE: ne,
|
|
2818
2806
|
URL_CHANGE: bt,
|
|
2819
2807
|
URL_NULL: en,
|
|
@@ -2827,7 +2815,7 @@ const Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2827
2815
|
function xt(a, o) {
|
|
2828
2816
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
|
|
2829
2817
|
}
|
|
2830
|
-
function
|
|
2818
|
+
function Ys(a, o) {
|
|
2831
2819
|
return function(r, t) {
|
|
2832
2820
|
var e = {
|
|
2833
2821
|
player: o,
|
|
@@ -2862,9 +2850,9 @@ function Xs(a, o) {
|
|
|
2862
2850
|
xt.call(o, a, e);
|
|
2863
2851
|
};
|
|
2864
2852
|
}
|
|
2865
|
-
var
|
|
2866
|
-
|
|
2867
|
-
var o =
|
|
2853
|
+
var Xs = /* @__PURE__ */ function(a) {
|
|
2854
|
+
x(r, a);
|
|
2855
|
+
var o = P(r);
|
|
2868
2856
|
function r(t) {
|
|
2869
2857
|
var e;
|
|
2870
2858
|
T(this, r), e = o.call(this, t), e._hasStart = !1, e._currentTime = 0, e._duration = 0, e._internalOp = {}, e._lastMuted = !1, e.vtype = "MP4", e._rate = -1, e.mediaConfig = Object.assign({}, {
|
|
@@ -2906,7 +2894,7 @@ var qs = /* @__PURE__ */ function(a) {
|
|
|
2906
2894
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
2907
2895
|
this._evHandlers || (this._evHandlers = fn.map(function(n) {
|
|
2908
2896
|
var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
2909
|
-
return typeof e[s] == "function" && e.on(n, e[s]), y({}, n,
|
|
2897
|
+
return typeof e[s] == "function" && e.on(n, e[s]), y({}, n, Ys(n, e));
|
|
2910
2898
|
})), this._evHandlers.forEach(function(n) {
|
|
2911
2899
|
var s = Object.keys(n)[0];
|
|
2912
2900
|
i.addEventListener(s, n[s], !1);
|
|
@@ -3280,7 +3268,7 @@ var qs = /* @__PURE__ */ function(a) {
|
|
|
3280
3268
|
L(A(r.prototype), "removeAllListeners", this).call(this);
|
|
3281
3269
|
}
|
|
3282
3270
|
}]), r;
|
|
3283
|
-
}(Yi),
|
|
3271
|
+
}(Yi), qs = /* @__PURE__ */ function() {
|
|
3284
3272
|
function a() {
|
|
3285
3273
|
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
3286
3274
|
name: "xgplayer",
|
|
@@ -3457,7 +3445,7 @@ function me(a, o, r) {
|
|
|
3457
3445
|
return r.call.apply(r, [a, a].concat(e));
|
|
3458
3446
|
}
|
|
3459
3447
|
function Pt(a, o) {
|
|
3460
|
-
|
|
3448
|
+
O.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
|
|
3461
3449
|
}
|
|
3462
3450
|
var xe = /* @__PURE__ */ function() {
|
|
3463
3451
|
function a(o) {
|
|
@@ -3644,40 +3632,40 @@ var xe = /* @__PURE__ */ function() {
|
|
|
3644
3632
|
return "pluginName";
|
|
3645
3633
|
}
|
|
3646
3634
|
}]), a;
|
|
3647
|
-
}(),
|
|
3635
|
+
}(), Zs = 9;
|
|
3648
3636
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
3649
|
-
var
|
|
3650
|
-
|
|
3637
|
+
var Be = Element.prototype;
|
|
3638
|
+
Be.matches = Be.matchesSelector || Be.mozMatchesSelector || Be.msMatchesSelector || Be.oMatchesSelector || Be.webkitMatchesSelector;
|
|
3651
3639
|
}
|
|
3652
|
-
function
|
|
3653
|
-
for (; a && a.nodeType !==
|
|
3640
|
+
function Js(a, o) {
|
|
3641
|
+
for (; a && a.nodeType !== Zs; ) {
|
|
3654
3642
|
if (typeof a.matches == "function" && a.matches(o))
|
|
3655
3643
|
return a;
|
|
3656
3644
|
a = a.parentNode;
|
|
3657
3645
|
}
|
|
3658
3646
|
}
|
|
3659
|
-
var
|
|
3647
|
+
var Qs = Js, eo = Qs;
|
|
3660
3648
|
function It(a, o, r, t, e) {
|
|
3661
|
-
var i =
|
|
3649
|
+
var i = io.apply(this, arguments);
|
|
3662
3650
|
return a.addEventListener(r, i, e), {
|
|
3663
3651
|
destroy: function() {
|
|
3664
3652
|
a.removeEventListener(r, i, e);
|
|
3665
3653
|
}
|
|
3666
3654
|
};
|
|
3667
3655
|
}
|
|
3668
|
-
function
|
|
3656
|
+
function to(a, o, r, t, e) {
|
|
3669
3657
|
return typeof a.addEventListener == "function" ? It.apply(null, arguments) : typeof r == "function" ? It.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
|
|
3670
3658
|
return It(i, o, r, t, e);
|
|
3671
3659
|
}));
|
|
3672
3660
|
}
|
|
3673
|
-
function
|
|
3661
|
+
function io(a, o, r, t) {
|
|
3674
3662
|
return function(e) {
|
|
3675
|
-
e.delegateTarget =
|
|
3663
|
+
e.delegateTarget = eo(e.target, o), e.delegateTarget && t.call(a, e);
|
|
3676
3664
|
};
|
|
3677
3665
|
}
|
|
3678
|
-
var
|
|
3679
|
-
const bi = /* @__PURE__ */ Xt(
|
|
3680
|
-
var
|
|
3666
|
+
var no = to;
|
|
3667
|
+
const bi = /* @__PURE__ */ Xt(no);
|
|
3668
|
+
var ro = {
|
|
3681
3669
|
CONTROLS: "controls",
|
|
3682
3670
|
ROOT: "root"
|
|
3683
3671
|
}, j = {
|
|
@@ -3697,11 +3685,11 @@ var so = {
|
|
|
3697
3685
|
function At(a) {
|
|
3698
3686
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
3699
3687
|
}
|
|
3700
|
-
function
|
|
3701
|
-
return
|
|
3688
|
+
function so(a, o) {
|
|
3689
|
+
return q(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
|
|
3702
3690
|
}
|
|
3703
|
-
function
|
|
3704
|
-
return
|
|
3691
|
+
function oo(a, o) {
|
|
3692
|
+
return q(a) === "object" && a.attr && q(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
|
|
3705
3693
|
o[r] = a.attr[r];
|
|
3706
3694
|
}), o;
|
|
3707
3695
|
}
|
|
@@ -3717,20 +3705,20 @@ function Ti(a, o) {
|
|
|
3717
3705
|
try {
|
|
3718
3706
|
return i = a(), i instanceof window.Element ? (f.addClass(i, r), Object.keys(t).map(function(n) {
|
|
3719
3707
|
i.setAttribute(n, t[n]);
|
|
3720
|
-
}), i) : (
|
|
3708
|
+
}), i) : (O.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is a function mast return an Element Object")), null);
|
|
3721
3709
|
} catch (n) {
|
|
3722
|
-
return
|
|
3710
|
+
return O.logError("Plugin named [".concat(e, "]:createIcon"), n), null;
|
|
3723
3711
|
}
|
|
3724
|
-
return typeof a == "string" ? f.createDomFromHtml(a, t, r) : (
|
|
3712
|
+
return typeof a == "string" ? f.createDomFromHtml(a, t, r) : (O.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
3725
3713
|
}
|
|
3726
|
-
function
|
|
3714
|
+
function ao(a, o) {
|
|
3727
3715
|
var r = o.config.icons || o.playerConfig.icons;
|
|
3728
3716
|
Object.keys(a).map(function(t) {
|
|
3729
3717
|
var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
|
|
3730
|
-
r && r[t] && (i =
|
|
3718
|
+
r && r[t] && (i = so(r[t], i), n = oo(r[t], n), s = Ti(r[t], t, i, n, o.pluginName)), !s && e && (s = Ti(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
|
|
3731
3719
|
});
|
|
3732
3720
|
}
|
|
3733
|
-
function
|
|
3721
|
+
function lo(a, o) {
|
|
3734
3722
|
Object.keys(a).map(function(r) {
|
|
3735
3723
|
Object.defineProperty(o.langText, r, {
|
|
3736
3724
|
get: function() {
|
|
@@ -3741,8 +3729,8 @@ function uo(a, o) {
|
|
|
3741
3729
|
});
|
|
3742
3730
|
}
|
|
3743
3731
|
var U = /* @__PURE__ */ function(a) {
|
|
3744
|
-
|
|
3745
|
-
var o =
|
|
3732
|
+
x(r, a);
|
|
3733
|
+
var o = P(r);
|
|
3746
3734
|
function r() {
|
|
3747
3735
|
var t, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3748
3736
|
return T(this, r), t = o.call(this, e), t.__delegates = [], t;
|
|
@@ -3754,14 +3742,14 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
3754
3742
|
var i = e.root, n = null;
|
|
3755
3743
|
this.icons = {}, this.root = null, this.parent = null;
|
|
3756
3744
|
var s = this.registerIcons() || {};
|
|
3757
|
-
|
|
3745
|
+
ao(s, this), this.langText = {};
|
|
3758
3746
|
var l = this.registerLanguageTexts() || {};
|
|
3759
|
-
|
|
3747
|
+
lo(l, this);
|
|
3760
3748
|
var u = "";
|
|
3761
3749
|
try {
|
|
3762
3750
|
u = this.render();
|
|
3763
3751
|
} catch (d) {
|
|
3764
|
-
throw
|
|
3752
|
+
throw O.logError("Plugin:".concat(this.pluginName, ":render"), d), new Error("Plugin:".concat(this.pluginName, ":render:").concat(d.message));
|
|
3765
3753
|
}
|
|
3766
3754
|
if (u)
|
|
3767
3755
|
n = r.insert(u, i, e.index), n.setAttribute("data-index", e.index);
|
|
@@ -3781,11 +3769,11 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
3781
3769
|
if (this.root) {
|
|
3782
3770
|
this._children = [];
|
|
3783
3771
|
var i = this.children();
|
|
3784
|
-
i &&
|
|
3772
|
+
i && q(i) === "object" && Object.keys(i).length > 0 && Object.keys(i).map(function(n) {
|
|
3785
3773
|
var s = n, l = i[s], u = {
|
|
3786
3774
|
root: e.root
|
|
3787
3775
|
}, c, h;
|
|
3788
|
-
typeof l == "function" ? (c = e.config[s] || {}, h = l) :
|
|
3776
|
+
typeof l == "function" ? (c = e.config[s] || {}, h = l) : q(l) === "object" && typeof l.plugin == "function" && (c = l.options ? f.deepCopy(e.config[s] || {}, l.options) : e.config[s] || {}, h = l.plugin), u.config = c, c.index !== void 0 && (u.index = c.index), c.root && (u.root = c.root), e.registerPlugin(h, u, s);
|
|
3789
3777
|
});
|
|
3790
3778
|
}
|
|
3791
3779
|
}
|
|
@@ -3959,7 +3947,7 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
3959
3947
|
try {
|
|
3960
3948
|
return typeof e == "string" ? this.find(e).appendChild(i) : e.appendChild(i);
|
|
3961
3949
|
} catch (n) {
|
|
3962
|
-
return
|
|
3950
|
+
return O.logError("Plugin:appendChild", n), null;
|
|
3963
3951
|
}
|
|
3964
3952
|
}
|
|
3965
3953
|
}, {
|
|
@@ -4025,7 +4013,7 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
4025
4013
|
}, {
|
|
4026
4014
|
key: "ROOT_TYPES",
|
|
4027
4015
|
get: function() {
|
|
4028
|
-
return
|
|
4016
|
+
return ro;
|
|
4029
4017
|
}
|
|
4030
4018
|
}, {
|
|
4031
4019
|
key: "POSITIONS",
|
|
@@ -4033,7 +4021,7 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
4033
4021
|
return j;
|
|
4034
4022
|
}
|
|
4035
4023
|
}]), r;
|
|
4036
|
-
}(xe),
|
|
4024
|
+
}(xe), uo = /* @__PURE__ */ function() {
|
|
4037
4025
|
function a() {
|
|
4038
4026
|
var o = this;
|
|
4039
4027
|
if (T(this, a), y(this, "__trigger", function(r) {
|
|
@@ -4043,7 +4031,7 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
4043
4031
|
o.__runHandler(r[e].target);
|
|
4044
4032
|
}), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
|
|
4045
4033
|
try {
|
|
4046
|
-
this.observer = new window.ResizeObserver(
|
|
4034
|
+
this.observer = new window.ResizeObserver(Rs(this.__trigger, 100, {
|
|
4047
4035
|
trailing: !0
|
|
4048
4036
|
})), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
|
|
4049
4037
|
} catch (r) {
|
|
@@ -4098,17 +4086,17 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
4098
4086
|
}
|
|
4099
4087
|
}]), a;
|
|
4100
4088
|
}(), Qe = null;
|
|
4101
|
-
function
|
|
4102
|
-
return Qe || (Qe = new
|
|
4089
|
+
function co(a, o) {
|
|
4090
|
+
return Qe || (Qe = new uo()), Qe.addObserver(a, o), Qe;
|
|
4103
4091
|
}
|
|
4104
|
-
function
|
|
4092
|
+
function fo(a, o) {
|
|
4105
4093
|
Qe.unObserver(a, o);
|
|
4106
4094
|
}
|
|
4107
4095
|
var $ = {
|
|
4108
4096
|
pluginGroup: {},
|
|
4109
4097
|
init: function(o) {
|
|
4110
4098
|
var r = o._pluginInfoId;
|
|
4111
|
-
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver &&
|
|
4099
|
+
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && co(o.root, function() {
|
|
4112
4100
|
o.resize();
|
|
4113
4101
|
}), this.pluginGroup[r] = {
|
|
4114
4102
|
_originalOptions: o.config || {},
|
|
@@ -4294,7 +4282,7 @@ var $ = {
|
|
|
4294
4282
|
destroy: function(o) {
|
|
4295
4283
|
var r = o._pluginInfoId;
|
|
4296
4284
|
if (this.pluginGroup[r]) {
|
|
4297
|
-
|
|
4285
|
+
fo(o.root);
|
|
4298
4286
|
for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
|
|
4299
4287
|
var n = i[e];
|
|
4300
4288
|
this.unRegister(r, n);
|
|
@@ -4380,7 +4368,7 @@ function Ei() {
|
|
|
4380
4368
|
ignores: [],
|
|
4381
4369
|
whitelist: [],
|
|
4382
4370
|
inactive: 3e3,
|
|
4383
|
-
lang:
|
|
4371
|
+
lang: Os(),
|
|
4384
4372
|
controls: !0,
|
|
4385
4373
|
marginControls: !1,
|
|
4386
4374
|
fullscreenTarget: null,
|
|
@@ -4416,7 +4404,7 @@ function Ei() {
|
|
|
4416
4404
|
}
|
|
4417
4405
|
};
|
|
4418
4406
|
}
|
|
4419
|
-
var
|
|
4407
|
+
var ho = function(o, r) {
|
|
4420
4408
|
var t, e, i;
|
|
4421
4409
|
r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
|
|
4422
4410
|
var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, h = n.icons, d = h === void 0 ? {} : h, g = n.i18n, p = g === void 0 ? [] : g;
|
|
@@ -4425,9 +4413,9 @@ var go = function(o, r) {
|
|
|
4425
4413
|
});
|
|
4426
4414
|
var m = o.config.i18n || [];
|
|
4427
4415
|
p.push.apply(p, fe(m)), o.config.i18n = p;
|
|
4428
|
-
},
|
|
4429
|
-
|
|
4430
|
-
var o =
|
|
4416
|
+
}, go = /* @__PURE__ */ function(a) {
|
|
4417
|
+
x(r, a);
|
|
4418
|
+
var o = P(r);
|
|
4431
4419
|
function r() {
|
|
4432
4420
|
var t;
|
|
4433
4421
|
T(this, r);
|
|
@@ -4586,7 +4574,7 @@ var go = function(o, r) {
|
|
|
4586
4574
|
};
|
|
4587
4575
|
}
|
|
4588
4576
|
}]), r;
|
|
4589
|
-
}(U),
|
|
4577
|
+
}(U), po = {
|
|
4590
4578
|
LANG: "en",
|
|
4591
4579
|
TEXT: {
|
|
4592
4580
|
ERROR_TYPES: {
|
|
@@ -4681,7 +4669,7 @@ function vn() {
|
|
|
4681
4669
|
ie.textKeys[a] = a;
|
|
4682
4670
|
});
|
|
4683
4671
|
}
|
|
4684
|
-
function
|
|
4672
|
+
function vo(a, o) {
|
|
4685
4673
|
var r = [];
|
|
4686
4674
|
if (o || (o = ie), !!o.lang) {
|
|
4687
4675
|
f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
|
|
@@ -4704,7 +4692,7 @@ function si(a, o) {
|
|
|
4704
4692
|
r === "zh" && (r = "zh-cn"), o.lang[r] ? tt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), vn();
|
|
4705
4693
|
}
|
|
4706
4694
|
}
|
|
4707
|
-
function
|
|
4695
|
+
function mo(a) {
|
|
4708
4696
|
var o, r = {
|
|
4709
4697
|
lang: {},
|
|
4710
4698
|
langKeys: [],
|
|
@@ -4713,7 +4701,7 @@ function yo(a) {
|
|
|
4713
4701
|
};
|
|
4714
4702
|
return tt(r.lang, ie.lang), (o = r.langKeys).push.apply(o, fe(ie.langKeys)), tt(r.textKeys, ie.textKeys), r;
|
|
4715
4703
|
}
|
|
4716
|
-
si(
|
|
4704
|
+
si(po);
|
|
4717
4705
|
var Ke = {
|
|
4718
4706
|
get textKeys() {
|
|
4719
4707
|
return ie.textKeys;
|
|
@@ -4727,9 +4715,9 @@ var Ke = {
|
|
|
4727
4715
|
a[o] = ie.lang[o];
|
|
4728
4716
|
}), ie.lang["zh-cn"] && (a.zh = ie.lang["zh-cn"] || {}), a;
|
|
4729
4717
|
},
|
|
4730
|
-
extend:
|
|
4718
|
+
extend: vo,
|
|
4731
4719
|
use: si,
|
|
4732
|
-
init:
|
|
4720
|
+
init: mo
|
|
4733
4721
|
}, N = {
|
|
4734
4722
|
INITIAL: 1,
|
|
4735
4723
|
READY: 2,
|
|
@@ -4739,29 +4727,29 @@ var Ke = {
|
|
|
4739
4727
|
RUNNING: 6,
|
|
4740
4728
|
ENDED: 7,
|
|
4741
4729
|
DESTROYED: 8
|
|
4742
|
-
}, Si = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"],
|
|
4743
|
-
|
|
4744
|
-
var o =
|
|
4730
|
+
}, Si = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], J = {}, Lt = null, mn = /* @__PURE__ */ function(a) {
|
|
4731
|
+
x(r, a);
|
|
4732
|
+
var o = P(r);
|
|
4745
4733
|
function r() {
|
|
4746
4734
|
return T(this, r), o.apply(this, arguments);
|
|
4747
4735
|
}
|
|
4748
4736
|
return E(r, [{
|
|
4749
4737
|
key: "add",
|
|
4750
4738
|
value: function(e) {
|
|
4751
|
-
e && (
|
|
4739
|
+
e && (J[e.playerId] = e, Object.keys(J).length === 1 && this.setActive(e.playerId, !0));
|
|
4752
4740
|
}
|
|
4753
4741
|
}, {
|
|
4754
4742
|
key: "remove",
|
|
4755
4743
|
value: function(e) {
|
|
4756
|
-
e && (e.isUserActive, delete
|
|
4744
|
+
e && (e.isUserActive, delete J[e.playerId]);
|
|
4757
4745
|
}
|
|
4758
4746
|
}, {
|
|
4759
4747
|
key: "_iterate",
|
|
4760
4748
|
value: function(e) {
|
|
4761
4749
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
4762
|
-
for (var n in
|
|
4763
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4764
|
-
var s =
|
|
4750
|
+
for (var n in J)
|
|
4751
|
+
if (Object.prototype.hasOwnProperty.call(J, n)) {
|
|
4752
|
+
var s = J[n];
|
|
4765
4753
|
if (i) {
|
|
4766
4754
|
if (e(s))
|
|
4767
4755
|
break;
|
|
@@ -4795,16 +4783,16 @@ var Ke = {
|
|
|
4795
4783
|
key: "setActive",
|
|
4796
4784
|
value: function(e) {
|
|
4797
4785
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
4798
|
-
if (
|
|
4786
|
+
if (J[e])
|
|
4799
4787
|
return i ? this.forEach(function(n) {
|
|
4800
4788
|
e === n.playerId ? (n.isUserActive = !0, n.isInstNext = !1) : n.isUserActive = !1;
|
|
4801
|
-
}) :
|
|
4789
|
+
}) : J[e].isUserActive = i, e;
|
|
4802
4790
|
}
|
|
4803
4791
|
}, {
|
|
4804
4792
|
key: "getActiveId",
|
|
4805
4793
|
value: function() {
|
|
4806
|
-
for (var e = Object.keys(
|
|
4807
|
-
var n =
|
|
4794
|
+
for (var e = Object.keys(J), i = 0; i < e.length; i++) {
|
|
4795
|
+
var n = J[e[i]];
|
|
4808
4796
|
if (n && n.isUserActive)
|
|
4809
4797
|
return e[i];
|
|
4810
4798
|
}
|
|
@@ -4814,10 +4802,10 @@ var Ke = {
|
|
|
4814
4802
|
key: "setNext",
|
|
4815
4803
|
value: function(e) {
|
|
4816
4804
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
4817
|
-
if (
|
|
4805
|
+
if (J[e])
|
|
4818
4806
|
return i ? this.forEach(function(n) {
|
|
4819
4807
|
e === n.playerId ? (n.isUserActive = !1, n.isInstNext = !0) : n.isInstNext = !1;
|
|
4820
|
-
}) :
|
|
4808
|
+
}) : J[e].isInstNext = i, e;
|
|
4821
4809
|
}
|
|
4822
4810
|
}], [{
|
|
4823
4811
|
key: "getInstance",
|
|
@@ -4826,17 +4814,17 @@ var Ke = {
|
|
|
4826
4814
|
}
|
|
4827
4815
|
}]), r;
|
|
4828
4816
|
}(Ki.EventEmitter);
|
|
4829
|
-
function
|
|
4830
|
-
for (var o = Object.keys(
|
|
4831
|
-
var t =
|
|
4817
|
+
function yo(a) {
|
|
4818
|
+
for (var o = Object.keys(J), r = 0; r < o.length; r++) {
|
|
4819
|
+
var t = J[o[r]];
|
|
4832
4820
|
if (t.root === a)
|
|
4833
4821
|
return t;
|
|
4834
4822
|
}
|
|
4835
4823
|
return null;
|
|
4836
4824
|
}
|
|
4837
|
-
var
|
|
4838
|
-
|
|
4839
|
-
var o =
|
|
4825
|
+
var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /* @__PURE__ */ function(a) {
|
|
4826
|
+
x(r, a);
|
|
4827
|
+
var o = P(r);
|
|
4840
4828
|
function r(t) {
|
|
4841
4829
|
var e;
|
|
4842
4830
|
T(this, r);
|
|
@@ -4844,7 +4832,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
4844
4832
|
e = o.call(this, i), y(v(e), "canPlayFunc", function() {
|
|
4845
4833
|
if (e.config) {
|
|
4846
4834
|
var p = e.config, m = p.autoplay, _ = p.defaultPlaybackRate;
|
|
4847
|
-
|
|
4835
|
+
O.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = _, (m || e._useAutoplay) && e.mediaPlay(), e.off(ye, e.canPlayFunc), e.removeClass(k.ENTER);
|
|
4848
4836
|
}
|
|
4849
4837
|
}), y(v(e), "onFullscreenChange", function(p, m) {
|
|
4850
4838
|
var _ = function() {
|
|
@@ -4864,13 +4852,13 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
4864
4852
|
to: !1
|
|
4865
4853
|
}]
|
|
4866
4854
|
});
|
|
4867
|
-
var w =
|
|
4855
|
+
var w = Fs(C, e.playerId, Re);
|
|
4868
4856
|
if (m || C && (C === e._fullscreenEl || w))
|
|
4869
4857
|
_(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, k.FULLSCREEN), e.emit(ve, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
4870
4858
|
else if (e.fullscreen) {
|
|
4871
4859
|
_();
|
|
4872
|
-
var b = v(e), B = b._fullScreenOffset,
|
|
4873
|
-
if (
|
|
4860
|
+
var b = v(e), B = b._fullScreenOffset, F = b.config;
|
|
4861
|
+
if (F.needFullscreenScroll ? (window.scrollTo(B.left, B.top), f.setTimeout(v(e), function() {
|
|
4874
4862
|
e.fullscreen = !1, e._fullScreenOffset = null;
|
|
4875
4863
|
}, 100)) : (!e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !1, e._fullScreenOffset = null), e.cssfullscreen)
|
|
4876
4864
|
e.removeClass(k.FULLSCREEN);
|
|
@@ -4884,7 +4872,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
4884
4872
|
e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
|
|
4885
4873
|
}), y(v(e), "_onWebkitendfullscreen", function(p) {
|
|
4886
4874
|
e.onFullscreenChange(p, !1);
|
|
4887
|
-
}), gn(v(e),
|
|
4875
|
+
}), gn(v(e), _o), e.config = i, e._pluginInfoId = f.generateSessionId(), Is(v(e));
|
|
4888
4876
|
var n = e.constructor.defaultPreset;
|
|
4889
4877
|
if (e.config.presets.length) {
|
|
4890
4878
|
var s = e.config.presets.indexOf("default");
|
|
@@ -4913,7 +4901,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
4913
4901
|
}, e._offsetInfo = {
|
|
4914
4902
|
currentTime: -1,
|
|
4915
4903
|
duration: 0
|
|
4916
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ke.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new
|
|
4904
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ke.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new qs(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
4917
4905
|
isActiveLocked: !1
|
|
4918
4906
|
}, e.instManager = be;
|
|
4919
4907
|
var l = e._initDOM();
|
|
@@ -4945,8 +4933,8 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
4945
4933
|
msg: "container id can't be empty"
|
|
4946
4934
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
4947
4935
|
}
|
|
4948
|
-
var s =
|
|
4949
|
-
s && (
|
|
4936
|
+
var s = yo(this.root);
|
|
4937
|
+
s && (O.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Re, this.playerId), (e = be) === null || e === void 0 || e.add(this), $.init(this), this._initBaseDoms();
|
|
4950
4938
|
var l = this.constructor.XgVideoProxy;
|
|
4951
4939
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
4952
4940
|
var u = this.innerContainer || this.root;
|
|
@@ -4955,7 +4943,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
4955
4943
|
this.attachVideoEvents(c), this.media = c;
|
|
4956
4944
|
}
|
|
4957
4945
|
if (this.media.setAttribute(Re, this.playerId), this.config.controls) {
|
|
4958
|
-
var h = this.config.controls.root || null, d = $.register(this,
|
|
4946
|
+
var h = this.config.controls.root || null, d = $.register(this, go, {
|
|
4959
4947
|
root: h
|
|
4960
4948
|
});
|
|
4961
4949
|
this.controls = d;
|
|
@@ -4977,8 +4965,8 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
4977
4965
|
["width", "height"].forEach(function(D) {
|
|
4978
4966
|
i.config[D] && (typeof i.config[D] != "number" ? i.root.style[D] = i.config[D] : i.root.style[D] = "".concat(i.config[D], "px"));
|
|
4979
4967
|
});
|
|
4980
|
-
var w = this.root.getBoundingClientRect(), b = w.width, B = w.height,
|
|
4981
|
-
return this.sizeInfo.width = b, this.sizeInfo.height = B, this.sizeInfo.left =
|
|
4968
|
+
var w = this.root.getBoundingClientRect(), b = w.width, B = w.height, F = w.left, V = w.top;
|
|
4969
|
+
return this.sizeInfo.width = b, this.sizeInfo.height = B, this.sizeInfo.left = F, this.sizeInfo.top = V, !0;
|
|
4982
4970
|
}
|
|
4983
4971
|
}, {
|
|
4984
4972
|
key: "_initBaseDoms",
|
|
@@ -5016,12 +5004,12 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5016
5004
|
key: "_startInit",
|
|
5017
5005
|
value: function(e) {
|
|
5018
5006
|
var i = this;
|
|
5019
|
-
if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(en),
|
|
5007
|
+
if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(en), O.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
|
|
5020
5008
|
this.handleSource && (this._detachSourceEvents(this.media), f.typeOf(e) === "Array" && e.length > 0 ? this._attachSourceEvents(this.media, e) : !this.media.src || this.media.src !== e ? this.media.src = e : e || this.media.removeAttribute("src")), f.typeOf(this.config.volume) === "Number" && (this.volume = this.config.volume);
|
|
5021
5009
|
var n = this.innerContainer ? this.innerContainer : this.root;
|
|
5022
5010
|
this.media instanceof window.Element && !n.contains(this.media) && n.insertBefore(this.media, n.firstChild);
|
|
5023
5011
|
var s = this.media.readyState;
|
|
5024
|
-
|
|
5012
|
+
O.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (R.os.isIpad || R.os.isPhone) && this.mediaPlay());
|
|
5025
5013
|
var l = this.config.startTime;
|
|
5026
5014
|
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(ye, this.canPlayFunc), (!this.hasStart || this.state < N.ATTACHED) && $.afterInit(this), this.hasStart = !0, this.setState(N.ATTACHED), f.setTimeout(this, function() {
|
|
5027
5015
|
i.emit(kt);
|
|
@@ -5048,13 +5036,13 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5048
5036
|
h.forceBeforeInit && (g.then(function() {
|
|
5049
5037
|
e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
|
|
5050
5038
|
}).catch(function(p) {
|
|
5051
|
-
|
|
5039
|
+
O.logError("_registerPlugins:loadingPlugin", p), e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
|
|
5052
5040
|
}), e._loadingPlugins.push(g));
|
|
5053
5041
|
return;
|
|
5054
5042
|
}
|
|
5055
5043
|
return e.registerPlugin(h);
|
|
5056
5044
|
} catch (p) {
|
|
5057
|
-
|
|
5045
|
+
O.logError("_registerPlugins:", p);
|
|
5058
5046
|
}
|
|
5059
5047
|
});
|
|
5060
5048
|
}
|
|
@@ -5063,7 +5051,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5063
5051
|
value: function() {
|
|
5064
5052
|
var e = this;
|
|
5065
5053
|
this.config.presets.forEach(function(i) {
|
|
5066
|
-
|
|
5054
|
+
ho(e, i);
|
|
5067
5055
|
});
|
|
5068
5056
|
}
|
|
5069
5057
|
}, {
|
|
@@ -5169,7 +5157,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5169
5157
|
return s;
|
|
5170
5158
|
}
|
|
5171
5159
|
}).catch(function(n) {
|
|
5172
|
-
throw n.fileName = "player", n.lineNumber = "236",
|
|
5160
|
+
throw n.fileName = "player", n.lineNumber = "236", O.logError("start:beforeInit:", n), n;
|
|
5173
5161
|
});
|
|
5174
5162
|
}
|
|
5175
5163
|
}, {
|
|
@@ -5212,16 +5200,16 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5212
5200
|
this.state < N.RUNNING && (this.removeClass(k.NO_START), !this.isCanplay && this.addClass(k.ENTER));
|
|
5213
5201
|
var i = L(A(r.prototype), "play", this).call(this);
|
|
5214
5202
|
return i !== void 0 && i && i.then ? i.then(function() {
|
|
5215
|
-
e.removeClass(k.NOT_ALLOW_AUTOPLAY), e.addClass(k.PLAYING), e.state < N.RUNNING && (
|
|
5203
|
+
e.removeClass(k.NOT_ALLOW_AUTOPLAY), e.addClass(k.PLAYING), e.state < N.RUNNING && (O.logInfo(">>>>playPromise.then"), e.setState(N.RUNNING), e.emit(Oe));
|
|
5216
5204
|
}).catch(function(n) {
|
|
5217
|
-
if (
|
|
5205
|
+
if (O.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
|
|
5218
5206
|
e.onError(), e.removeClass(k.ENTER);
|
|
5219
5207
|
return;
|
|
5220
5208
|
}
|
|
5221
5209
|
n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
|
|
5222
5210
|
e._errorTimer = null, e.emit(ii), e.addClass(k.NOT_ALLOW_AUTOPLAY), e.removeClass(k.ENTER), e.pause(), e.setState(N.NOTALLOW);
|
|
5223
5211
|
}, 0));
|
|
5224
|
-
}) : (
|
|
5212
|
+
}) : (O.logWarn("video.play not return promise"), this.state < N.RUNNING && (this.setState(N.RUNNING), this.removeClass(k.NOT_ALLOW_AUTOPLAY), this.removeClass(k.NO_START), this.removeClass(k.ENTER), this.addClass(k.PLAYING), this.emit(Oe))), i;
|
|
5225
5213
|
}
|
|
5226
5214
|
}, {
|
|
5227
5215
|
key: "mediaPause",
|
|
@@ -5602,7 +5590,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5602
5590
|
}, {
|
|
5603
5591
|
key: "onTimeupdate",
|
|
5604
5592
|
value: function() {
|
|
5605
|
-
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(k.LOADING)) && this.media.readyState > 2 && (this.removeClass(k.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === N.NOTALLOW && this.duration && (this.setState(N.RUNNING), this.emit(
|
|
5593
|
+
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(k.LOADING)) && this.media.readyState > 2 && (this.removeClass(k.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === N.NOTALLOW && this.duration && (this.setState(N.RUNNING), this.emit(Oe)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
5606
5594
|
}
|
|
5607
5595
|
}, {
|
|
5608
5596
|
key: "onVolumechange",
|
|
@@ -5661,13 +5649,13 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5661
5649
|
this.videoPos.pi = c, u = u < 0 ? 0 : u;
|
|
5662
5650
|
var h = {
|
|
5663
5651
|
rotate: u
|
|
5664
|
-
}, d = 0, g = 0, p = 1, m = Math.abs(u / 90), _ = this.root, C = this.innerContainer, w = _.offsetWidth, b = C ? C.offsetHeight : _.offsetHeight, B = b,
|
|
5652
|
+
}, d = 0, g = 0, p = 1, m = Math.abs(u / 90), _ = this.root, C = this.innerContainer, w = _.offsetWidth, b = C ? C.offsetHeight : _.offsetHeight, B = b, F = w;
|
|
5665
5653
|
if (m % 2 === 0)
|
|
5666
|
-
p = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = p, d = i > 0 ? (100 - s) / 2 - i : 0, h.y = m === 2 ? 0 - d : d, g = n > 0 ? (100 - l) / 2 - n : 0, h.x = m === 2 ? 0 - g : g, this.media.style.width = "".concat(
|
|
5654
|
+
p = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = p, d = i > 0 ? (100 - s) / 2 - i : 0, h.y = m === 2 ? 0 - d : d, g = n > 0 ? (100 - l) / 2 - n : 0, h.x = m === 2 ? 0 - g : g, this.media.style.width = "".concat(F, "px"), this.media.style.height = "".concat(B, "px");
|
|
5667
5655
|
else if (m % 2 === 1) {
|
|
5668
|
-
|
|
5656
|
+
F = b, B = w;
|
|
5669
5657
|
var V = b - w;
|
|
5670
|
-
g = -V / 2 /
|
|
5658
|
+
g = -V / 2 / F * 100, h.x = m === 3 ? g + i / 2 : g - i / 2, d = V / 2 / B * 100, h.y = m === 3 ? d + n / 2 : d - n / 2, h.scale = p, this.media.style.width = "".concat(F, "px"), this.media.style.height = "".concat(B, "px");
|
|
5671
5659
|
}
|
|
5672
5660
|
var D = f.getTransformStyle(h, this.media.style.transform || this.media.style.webkitTransform);
|
|
5673
5661
|
this.media.style.transform = D, this.media.style.webkitTransform = D;
|
|
@@ -5719,8 +5707,8 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5719
5707
|
if ((h === "fill" || h === "cover" || h === "contain") && this.setAttribute("data-xgfill", h), !(!l || !s)) {
|
|
5720
5708
|
this._videoHeight = l, this._videoWidth = s;
|
|
5721
5709
|
var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, g = i.width, p = i.height - d, m = parseInt(s / l * 1e3, 10), _ = parseInt(g / p * 1e3, 10), C = g, w = p, b = {};
|
|
5722
|
-
c === "auto" && _ > m || c === "fixWidth" ? (w = g / m * 1e3, this.config.fluid ? b.paddingTop = "".concat(w * 100 / C, "%") : b.height = "".concat(w + d, "px")) : (c === "auto" && _ < m || c === "fixHeight") && (C = m * p / 1e3, b.width = "".concat(C, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(b).forEach(function(
|
|
5723
|
-
e.root.style[
|
|
5710
|
+
c === "auto" && _ > m || c === "fixWidth" ? (w = g / m * 1e3, this.config.fluid ? b.paddingTop = "".concat(w * 100 / C, "%") : b.height = "".concat(w + d, "px")) : (c === "auto" && _ < m || c === "fixHeight") && (C = m * p / 1e3, b.width = "".concat(C, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(b).forEach(function(F) {
|
|
5711
|
+
e.root.style[F] = b[F];
|
|
5724
5712
|
}), (h === "fillHeight" && _ < m || h === "fillWidth" && _ > m) && this.setAttribute("data-xgfill", "cover");
|
|
5725
5713
|
var B = {
|
|
5726
5714
|
videoScale: m,
|
|
@@ -5746,7 +5734,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5746
5734
|
}, {
|
|
5747
5735
|
key: "setState",
|
|
5748
5736
|
value: function(e) {
|
|
5749
|
-
|
|
5737
|
+
O.logInfo("setState", "state from:".concat(Si[this.state], " to:").concat(Si[e])), this._state = e;
|
|
5750
5738
|
}
|
|
5751
5739
|
}, {
|
|
5752
5740
|
key: "_preProcessUrl",
|
|
@@ -5979,10 +5967,10 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
5979
5967
|
}], [{
|
|
5980
5968
|
key: "debugger",
|
|
5981
5969
|
get: function() {
|
|
5982
|
-
return
|
|
5970
|
+
return O.config.debug;
|
|
5983
5971
|
},
|
|
5984
5972
|
set: function(e) {
|
|
5985
|
-
|
|
5973
|
+
O.config.debug = e;
|
|
5986
5974
|
}
|
|
5987
5975
|
}, {
|
|
5988
5976
|
key: "instManager",
|
|
@@ -6025,7 +6013,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
|
|
|
6025
6013
|
r.plugins || (r.plugins = {}), r.plugins[e] = i;
|
|
6026
6014
|
}
|
|
6027
6015
|
}]), r;
|
|
6028
|
-
}(
|
|
6016
|
+
}(Xs);
|
|
6029
6017
|
y(Tt, "defaultPreset", null);
|
|
6030
6018
|
y(Tt, "XgVideoProxy", null);
|
|
6031
6019
|
Tt.instManager = mn.getInstance();
|
|
@@ -6040,18 +6028,18 @@ var we = {
|
|
|
6040
6028
|
WAIT_END: "waitingEnd",
|
|
6041
6029
|
SEEK_START: "seekStart",
|
|
6042
6030
|
SEEK_END: "seekEnd"
|
|
6043
|
-
},
|
|
6044
|
-
|
|
6045
|
-
var o =
|
|
6031
|
+
}, Co = /* @__PURE__ */ function(a) {
|
|
6032
|
+
x(r, a);
|
|
6033
|
+
var o = P(r);
|
|
6046
6034
|
function r() {
|
|
6047
6035
|
var t;
|
|
6048
6036
|
T(this, r);
|
|
6049
6037
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
6050
6038
|
i[n] = arguments[n];
|
|
6051
6039
|
return t = o.call.apply(o, [this].concat(i)), y(v(t), "_onTimeupdate", function() {
|
|
6052
|
-
t._state.isTimeUpdate = !0, t._state.autoplayStart && (
|
|
6040
|
+
t._state.isTimeUpdate = !0, t._state.autoplayStart && (O.logInfo("[xgLogger]".concat(t.player.playerId, " _onTimeupdate")), t._sendFF("onTimeupdate"));
|
|
6053
6041
|
}), y(v(t), "_onAutoplayStart", function() {
|
|
6054
|
-
|
|
6042
|
+
O.logInfo("[xgLogger]".concat(t.player.playerId, " _onAutoplayStart")), t._state.autoplayStart = !0, t.vt && t._sendFF("onAutoplayStart");
|
|
6055
6043
|
}), y(v(t), "_onReset", function() {
|
|
6056
6044
|
t._state = {
|
|
6057
6045
|
autoplayStart: !1,
|
|
@@ -6094,30 +6082,30 @@ var we = {
|
|
|
6094
6082
|
var e = this;
|
|
6095
6083
|
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = Y(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(Qt, function() {
|
|
6096
6084
|
var i = e._state, n = i.autoplayStart, s = i.isFFSend;
|
|
6097
|
-
e.startCostTime = Y() - e.newPointTime,
|
|
6085
|
+
e.startCostTime = Y() - e.newPointTime, O.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(we.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = Y(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
|
|
6098
6086
|
}), this.on(ke, function() {
|
|
6099
6087
|
e.vt = Y(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
6100
6088
|
var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
|
|
6101
|
-
|
|
6089
|
+
O.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(we.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
6102
6090
|
}), this.on(Ct, this._onSeeking), this.on(Ce, this._onSeeked), this.on(ni, function() {
|
|
6103
6091
|
e.endState("destroy");
|
|
6104
6092
|
}), this.on(bt, function() {
|
|
6105
|
-
e.endState("urlChange"),
|
|
6093
|
+
e.endState("urlChange"), O.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
6106
6094
|
}), this.on([Jt, ye], this._onPlaying), this.on(rt, this._onWaiting), this.on(nt, this._onError), this.on(wt, function() {
|
|
6107
|
-
|
|
6095
|
+
O.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
6108
6096
|
});
|
|
6109
6097
|
}
|
|
6110
6098
|
}, {
|
|
6111
6099
|
key: "_initOnceEvents",
|
|
6112
6100
|
value: function() {
|
|
6113
|
-
this.off(
|
|
6101
|
+
this.off(Oe, this._onAutoplayStart), this.off(ne, this._onTimeupdate), this.once(Oe, this._onAutoplayStart), this.once(ne, this._onTimeupdate);
|
|
6114
6102
|
}
|
|
6115
6103
|
}, {
|
|
6116
6104
|
key: "_sendFF",
|
|
6117
6105
|
value: function(e) {
|
|
6118
6106
|
this.s = Y();
|
|
6119
6107
|
var i = this._state, n = i.isFFLoading, s = i.isFFSend;
|
|
6120
|
-
|
|
6108
|
+
O.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (O.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(we.FIRST_FRAME, {
|
|
6121
6109
|
fvt: this.fvt,
|
|
6122
6110
|
costTime: this.fvt,
|
|
6123
6111
|
vt: this.vt,
|
|
@@ -6191,15 +6179,15 @@ var we = {
|
|
|
6191
6179
|
}
|
|
6192
6180
|
}]), r;
|
|
6193
6181
|
}(U);
|
|
6194
|
-
function
|
|
6182
|
+
function ko() {
|
|
6195
6183
|
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">
|
|
6196
6184
|
<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>
|
|
6197
6185
|
</svg>
|
|
6198
6186
|
`, "image/svg+xml").firstChild;
|
|
6199
6187
|
}
|
|
6200
|
-
var
|
|
6201
|
-
|
|
6202
|
-
var o =
|
|
6188
|
+
var bo = /* @__PURE__ */ function(a) {
|
|
6189
|
+
x(r, a);
|
|
6190
|
+
var o = P(r);
|
|
6203
6191
|
function r() {
|
|
6204
6192
|
return T(this, r), o.apply(this, arguments);
|
|
6205
6193
|
}
|
|
@@ -6207,7 +6195,7 @@ var wo = /* @__PURE__ */ function(a) {
|
|
|
6207
6195
|
key: "registerIcons",
|
|
6208
6196
|
value: function() {
|
|
6209
6197
|
return {
|
|
6210
|
-
replay:
|
|
6198
|
+
replay: ko
|
|
6211
6199
|
};
|
|
6212
6200
|
}
|
|
6213
6201
|
}, {
|
|
@@ -6220,7 +6208,7 @@ var wo = /* @__PURE__ */ function(a) {
|
|
|
6220
6208
|
pre: function(n) {
|
|
6221
6209
|
n.preventDefault(), n.stopPropagation();
|
|
6222
6210
|
}
|
|
6223
|
-
}), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(
|
|
6211
|
+
}), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(Fe, function() {
|
|
6224
6212
|
if (e.playerConfig.loop || f.addClass(e.player.root, "replay"), !e.config.disable) {
|
|
6225
6213
|
e.show();
|
|
6226
6214
|
var i = e.root.querySelector("path");
|
|
@@ -6280,9 +6268,9 @@ var wo = /* @__PURE__ */ function(a) {
|
|
|
6280
6268
|
};
|
|
6281
6269
|
}
|
|
6282
6270
|
}]), r;
|
|
6283
|
-
}(U),
|
|
6284
|
-
|
|
6285
|
-
var o =
|
|
6271
|
+
}(U), wo = /* @__PURE__ */ function(a) {
|
|
6272
|
+
x(r, a);
|
|
6273
|
+
var o = P(r);
|
|
6286
6274
|
function r() {
|
|
6287
6275
|
return T(this, r), o.apply(this, arguments);
|
|
6288
6276
|
}
|
|
@@ -6313,7 +6301,7 @@ var wo = /* @__PURE__ */ function(a) {
|
|
|
6313
6301
|
key: "afterCreate",
|
|
6314
6302
|
value: function() {
|
|
6315
6303
|
var e = this;
|
|
6316
|
-
this.on(
|
|
6304
|
+
this.on(Fe, function() {
|
|
6317
6305
|
e.isEndedShow && f.removeClass(e.root, "hide");
|
|
6318
6306
|
}), this.config.hideCanplay ? (this.once(ne, function() {
|
|
6319
6307
|
e.onTimeUpdate();
|
|
@@ -6405,7 +6393,7 @@ function ai() {
|
|
|
6405
6393
|
`, "image/svg+xml").firstChild;
|
|
6406
6394
|
}
|
|
6407
6395
|
var ge = {};
|
|
6408
|
-
function
|
|
6396
|
+
function To(a, o) {
|
|
6409
6397
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
6410
6398
|
start: null,
|
|
6411
6399
|
end: null
|
|
@@ -6423,9 +6411,9 @@ function Ii(a) {
|
|
|
6423
6411
|
window.clearTimeout(ge[o].id), delete ge[o];
|
|
6424
6412
|
});
|
|
6425
6413
|
}
|
|
6426
|
-
var
|
|
6427
|
-
|
|
6428
|
-
var o =
|
|
6414
|
+
var Eo = /* @__PURE__ */ function(a) {
|
|
6415
|
+
x(r, a);
|
|
6416
|
+
var o = P(r);
|
|
6429
6417
|
function r(t) {
|
|
6430
6418
|
var e;
|
|
6431
6419
|
return T(this, r), e = o.call(this, t), y(v(e), "onPlayerReset", function() {
|
|
@@ -6445,7 +6433,7 @@ var So = /* @__PURE__ */ function(a) {
|
|
|
6445
6433
|
var e = this, i = this.player, n = this.playerConfig;
|
|
6446
6434
|
this.initIcons(), this.once(ti, function() {
|
|
6447
6435
|
n && (n.lang && n.lang === "en" ? f.addClass(i.root, "lang-is-en") : n.lang === "jp" && f.addClass(i.root, "lang-is-jp"));
|
|
6448
|
-
}), this.on(
|
|
6436
|
+
}), this.on(Oe, this.onAutoplayStart), n.autoplay || this.show(), this.on(ii, function() {
|
|
6449
6437
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
6450
6438
|
e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
|
|
6451
6439
|
}), this.on(re, function() {
|
|
@@ -6515,7 +6503,7 @@ var So = /* @__PURE__ */ function(a) {
|
|
|
6515
6503
|
key: "animate",
|
|
6516
6504
|
value: function(e) {
|
|
6517
6505
|
var i = this;
|
|
6518
|
-
this._animateId =
|
|
6506
|
+
this._animateId = To("pauseplay", 400, {
|
|
6519
6507
|
start: function() {
|
|
6520
6508
|
f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
|
|
6521
6509
|
},
|
|
@@ -6598,9 +6586,9 @@ var So = /* @__PURE__ */ function(a) {
|
|
|
6598
6586
|
};
|
|
6599
6587
|
}
|
|
6600
6588
|
}]), r;
|
|
6601
|
-
}(U),
|
|
6602
|
-
|
|
6603
|
-
var o =
|
|
6589
|
+
}(U), So = /* @__PURE__ */ function(a) {
|
|
6590
|
+
x(r, a);
|
|
6591
|
+
var o = P(r);
|
|
6604
6592
|
function r() {
|
|
6605
6593
|
return T(this, r), o.apply(this, arguments);
|
|
6606
6594
|
}
|
|
@@ -6644,8 +6632,8 @@ function Ae(a, o, r) {
|
|
|
6644
6632
|
}
|
|
6645
6633
|
}
|
|
6646
6634
|
var Ai = /* @__PURE__ */ function(a) {
|
|
6647
|
-
|
|
6648
|
-
var o =
|
|
6635
|
+
x(r, a);
|
|
6636
|
+
var o = P(r);
|
|
6649
6637
|
function r() {
|
|
6650
6638
|
return T(this, r), o.apply(this, arguments);
|
|
6651
6639
|
}
|
|
@@ -6698,7 +6686,7 @@ function Li(a) {
|
|
|
6698
6686
|
return r && o;
|
|
6699
6687
|
}
|
|
6700
6688
|
var li = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], yn = li.length;
|
|
6701
|
-
function
|
|
6689
|
+
function xo() {
|
|
6702
6690
|
for (var a = {
|
|
6703
6691
|
width: 0,
|
|
6704
6692
|
height: 0,
|
|
@@ -6712,15 +6700,15 @@ function Po() {
|
|
|
6712
6700
|
}
|
|
6713
6701
|
return a;
|
|
6714
6702
|
}
|
|
6715
|
-
function
|
|
6703
|
+
function Po(a) {
|
|
6716
6704
|
var o = window.getComputedStyle(a);
|
|
6717
6705
|
return o;
|
|
6718
6706
|
}
|
|
6719
6707
|
function Di(a) {
|
|
6720
|
-
if (typeof a == "string" && (a = document.querySelector(a)), !(!a ||
|
|
6721
|
-
var o =
|
|
6708
|
+
if (typeof a == "string" && (a = document.querySelector(a)), !(!a || q(a) !== "object" || !a.nodeType)) {
|
|
6709
|
+
var o = Po(a);
|
|
6722
6710
|
if (o.display === "none")
|
|
6723
|
-
return
|
|
6711
|
+
return xo();
|
|
6724
6712
|
var r = {};
|
|
6725
6713
|
r.width = a.offsetWidth, r.height = a.offsetHeight;
|
|
6726
6714
|
for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < yn; e++) {
|
|
@@ -6748,9 +6736,9 @@ var Rt = {
|
|
|
6748
6736
|
mousedown: ["mousemove", "mouseup"],
|
|
6749
6737
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
6750
6738
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
6751
|
-
},
|
|
6752
|
-
|
|
6753
|
-
var o =
|
|
6739
|
+
}, Io = /* @__PURE__ */ function(a) {
|
|
6740
|
+
x(r, a);
|
|
6741
|
+
var o = P(r);
|
|
6754
6742
|
function r(t) {
|
|
6755
6743
|
var e, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6756
6744
|
return T(this, r), e = o.call(this), e.isEnabled = !0, e.isDragging = !1, e.isDown = !1, e.position = {}, e.downPoint = {}, e.dragPoint = {
|
|
@@ -6958,9 +6946,9 @@ var Rt = {
|
|
|
6958
6946
|
return parseInt(e, 10);
|
|
6959
6947
|
}
|
|
6960
6948
|
}]), r;
|
|
6961
|
-
}(Yi),
|
|
6962
|
-
|
|
6963
|
-
var o =
|
|
6949
|
+
}(Yi), Ao = /* @__PURE__ */ function(a) {
|
|
6950
|
+
x(r, a);
|
|
6951
|
+
var o = P(r);
|
|
6964
6952
|
function r(t) {
|
|
6965
6953
|
var e;
|
|
6966
6954
|
T(this, r), e = o.call(this, t), y(v(e), "onCancelClick", function(s) {
|
|
@@ -7014,7 +7002,7 @@ var Rt = {
|
|
|
7014
7002
|
i.controls.registerPlugin(Ai, s, Ai.pluginName);
|
|
7015
7003
|
}
|
|
7016
7004
|
var l = f.checkTouchSupport() ? "touchend" : "click";
|
|
7017
|
-
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new
|
|
7005
|
+
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Io(this.player.root, {
|
|
7018
7006
|
handle: this.root
|
|
7019
7007
|
})), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
|
|
7020
7008
|
}
|
|
@@ -7113,8 +7101,8 @@ var Rt = {
|
|
|
7113
7101
|
mouseleave: "onMouseLeave",
|
|
7114
7102
|
mousemove: "onMouseMove"
|
|
7115
7103
|
}, Ot = ["videoClick", "videoDbClick"], Ft = /* @__PURE__ */ function(a) {
|
|
7116
|
-
|
|
7117
|
-
var o =
|
|
7104
|
+
x(r, a);
|
|
7105
|
+
var o = P(r);
|
|
7118
7106
|
function r() {
|
|
7119
7107
|
var t;
|
|
7120
7108
|
T(this, r);
|
|
@@ -7228,12 +7216,12 @@ var Rt = {
|
|
|
7228
7216
|
TOUCH_MOVE: "touchmove",
|
|
7229
7217
|
TOUCH_START: "touchstart",
|
|
7230
7218
|
TOUCH_END: "touchend"
|
|
7231
|
-
},
|
|
7219
|
+
}, Lo = {
|
|
7232
7220
|
start: "touchstart",
|
|
7233
7221
|
end: "touchend",
|
|
7234
7222
|
move: "touchmove",
|
|
7235
7223
|
cancel: "touchcancel"
|
|
7236
|
-
},
|
|
7224
|
+
}, Do = {
|
|
7237
7225
|
start: "mousedown",
|
|
7238
7226
|
end: "mouseup",
|
|
7239
7227
|
move: "mousemove",
|
|
@@ -7242,7 +7230,7 @@ var Rt = {
|
|
|
7242
7230
|
function Oi(a) {
|
|
7243
7231
|
return a && a.length > 0 ? a[a.length - 1] : null;
|
|
7244
7232
|
}
|
|
7245
|
-
function
|
|
7233
|
+
function Ro() {
|
|
7246
7234
|
return {
|
|
7247
7235
|
pressDelay: 600,
|
|
7248
7236
|
dbClickDelay: 200,
|
|
@@ -7252,7 +7240,7 @@ function Oo() {
|
|
|
7252
7240
|
needPreventDefault: !0
|
|
7253
7241
|
};
|
|
7254
7242
|
}
|
|
7255
|
-
var
|
|
7243
|
+
var Oo = /* @__PURE__ */ function() {
|
|
7256
7244
|
function a(o) {
|
|
7257
7245
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
7258
7246
|
eventType: "touch"
|
|
@@ -7273,9 +7261,9 @@ var Fo = /* @__PURE__ */ function() {
|
|
|
7273
7261
|
start: !1,
|
|
7274
7262
|
x: 0,
|
|
7275
7263
|
y: 0
|
|
7276
|
-
}, this.config =
|
|
7264
|
+
}, this.config = Ro(), Object.keys(t).map(function(e) {
|
|
7277
7265
|
r.config[e] = t[e];
|
|
7278
|
-
}), this.root = o, this.events = t.eventType === "mouse" ?
|
|
7266
|
+
}), this.root = o, this.events = t.eventType === "mouse" ? Do : Lo, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
7279
7267
|
}
|
|
7280
7268
|
return E(a, [{
|
|
7281
7269
|
key: "_initEvent",
|
|
@@ -7354,7 +7342,7 @@ var Fo = /* @__PURE__ */ function() {
|
|
|
7354
7342
|
}
|
|
7355
7343
|
}]), a;
|
|
7356
7344
|
}();
|
|
7357
|
-
function
|
|
7345
|
+
function Fo() {
|
|
7358
7346
|
return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
7359
7347
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
7360
7348
|
<path opacity="0.54"
|
|
@@ -7363,14 +7351,14 @@ function Mo() {
|
|
|
7363
7351
|
<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"/>
|
|
7364
7352
|
</svg>`, "image/svg+xml").firstChild;
|
|
7365
7353
|
}
|
|
7366
|
-
var
|
|
7354
|
+
var He = {
|
|
7367
7355
|
AUTO: "auto",
|
|
7368
7356
|
SEEKING: "seeking",
|
|
7369
7357
|
PLAYBACK: "playbackrate",
|
|
7370
7358
|
LIGHT: ""
|
|
7371
|
-
}, Mt = ["videoClick", "videoDbClick"],
|
|
7372
|
-
|
|
7373
|
-
var o =
|
|
7359
|
+
}, Mt = ["videoClick", "videoDbClick"], Mo = /* @__PURE__ */ function(a) {
|
|
7360
|
+
x(r, a);
|
|
7361
|
+
var o = P(r);
|
|
7374
7362
|
function r(t) {
|
|
7375
7363
|
var e;
|
|
7376
7364
|
return T(this, r), e = o.call(this, t), y(v(e), "onTouchStart", function(i) {
|
|
@@ -7402,7 +7390,7 @@ var Ue = {
|
|
|
7402
7390
|
}, 10), !!l.isStart) {
|
|
7403
7391
|
l.scope > -1 && i.cancelable && i.preventDefault();
|
|
7404
7392
|
var c = e.config, h = c.disableGesture, d = c.gestureX;
|
|
7405
|
-
!h && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), f.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(
|
|
7393
|
+
!h && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), f.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(He.AUTO);
|
|
7406
7394
|
}
|
|
7407
7395
|
}), y(v(e), "onRootTouchMove", function(i) {
|
|
7408
7396
|
e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
|
|
@@ -7440,7 +7428,7 @@ var Ue = {
|
|
|
7440
7428
|
value: function() {
|
|
7441
7429
|
return {
|
|
7442
7430
|
seekTipIcon: {
|
|
7443
|
-
icon:
|
|
7431
|
+
icon: Fo,
|
|
7444
7432
|
class: "xg-seek-pre"
|
|
7445
7433
|
}
|
|
7446
7434
|
};
|
|
@@ -7455,7 +7443,7 @@ var Ue = {
|
|
|
7455
7443
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
7456
7444
|
i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), f.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = f.createDom("xg-mask", "", {}, "xgmask"), s.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
|
|
7457
7445
|
var l = this.domEventType === "mouse" ? "mouse" : "touch";
|
|
7458
|
-
this.touch = new
|
|
7446
|
+
this.touch = new Oo(this.root, {
|
|
7459
7447
|
eventType: l,
|
|
7460
7448
|
needPreventDefault: !this.config.disableGesture
|
|
7461
7449
|
}), this.root.addEventListener("contextmenu", function(d) {
|
|
@@ -7465,7 +7453,7 @@ var Ue = {
|
|
|
7465
7453
|
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(Ie, function() {
|
|
7466
7454
|
var d = e.player, g = e.config;
|
|
7467
7455
|
d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
|
|
7468
|
-
}), this.on([ye,
|
|
7456
|
+
}), this.on([ye, Fe], function() {
|
|
7469
7457
|
var d = e.pos, g = d.time, p = d.isStart;
|
|
7470
7458
|
!p && g > 0 && (e.pos.time = 0);
|
|
7471
7459
|
});
|
|
@@ -7488,7 +7476,7 @@ var Ue = {
|
|
|
7488
7476
|
e.activeSeekNote(d.currentTime, d.forward);
|
|
7489
7477
|
}), ["dragend", "click"].forEach(function(d) {
|
|
7490
7478
|
h.addCallBack(d, function() {
|
|
7491
|
-
e.changeAction(
|
|
7479
|
+
e.changeAction(He.AUTO);
|
|
7492
7480
|
});
|
|
7493
7481
|
}));
|
|
7494
7482
|
}
|
|
@@ -7594,7 +7582,7 @@ var Ue = {
|
|
|
7594
7582
|
}, 500);
|
|
7595
7583
|
break;
|
|
7596
7584
|
}
|
|
7597
|
-
this.changeAction(
|
|
7585
|
+
this.changeAction(He.AUTO);
|
|
7598
7586
|
}
|
|
7599
7587
|
}, {
|
|
7600
7588
|
key: "checkIsRootTarget",
|
|
@@ -7658,7 +7646,7 @@ var Ue = {
|
|
|
7658
7646
|
prop: "playbackRate",
|
|
7659
7647
|
from: s.playbackRate,
|
|
7660
7648
|
to: n.pressRate
|
|
7661
|
-
}), s.playbackRate = n.pressRate, this.changeAction(
|
|
7649
|
+
}), s.playbackRate = n.pressRate, this.changeAction(He.PLAYBACK));
|
|
7662
7650
|
}
|
|
7663
7651
|
}, {
|
|
7664
7652
|
key: "onPressEnd",
|
|
@@ -7668,7 +7656,7 @@ var Ue = {
|
|
|
7668
7656
|
prop: "playbackRate",
|
|
7669
7657
|
from: s.playbackRate,
|
|
7670
7658
|
to: i.rate
|
|
7671
|
-
}), s.playbackRate = i.rate, i.rate = 1, this.changeAction(
|
|
7659
|
+
}), s.playbackRate = i.rate, i.rate = 1, this.changeAction(He.AUTO));
|
|
7672
7660
|
}
|
|
7673
7661
|
}, {
|
|
7674
7662
|
key: "updateTime",
|
|
@@ -7700,7 +7688,7 @@ var Ue = {
|
|
|
7700
7688
|
value: function(e) {
|
|
7701
7689
|
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);
|
|
7702
7690
|
if (!(!e || typeof e != "number" || l || s.disableActive)) {
|
|
7703
|
-
e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(
|
|
7691
|
+
e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(He.SEEKING);
|
|
7704
7692
|
var u = n.plugins.start;
|
|
7705
7693
|
u && u.focusHide(), this.find(".xg-dur").innerHTML = f.format(this.duration), this.find(".xg-cur").innerHTML = f.format(e), this.find(".xg-curbar").style.width = "".concat(e / this.duration * 100, "%"), i ? f.removeClass(this.find(".xg-seek-show"), "xg-back") : f.addClass(this.find(".xg-seek-show"), "xg-back"), this.updateThumbnails(e);
|
|
7706
7694
|
}
|
|
@@ -7797,7 +7785,7 @@ var Ue = {
|
|
|
7797
7785
|
}
|
|
7798
7786
|
}]), r;
|
|
7799
7787
|
}(U);
|
|
7800
|
-
function
|
|
7788
|
+
function No(a) {
|
|
7801
7789
|
a.preventDefault(), a.returnValue = !1;
|
|
7802
7790
|
}
|
|
7803
7791
|
function Fi(a) {
|
|
@@ -7805,8 +7793,8 @@ function Fi(a) {
|
|
|
7805
7793
|
return !!(o === "INPUT" || o === "TEXTAREA" || a.isContentEditable);
|
|
7806
7794
|
}
|
|
7807
7795
|
var Mi = /* @__PURE__ */ function(a) {
|
|
7808
|
-
|
|
7809
|
-
var o =
|
|
7796
|
+
x(r, a);
|
|
7797
|
+
var o = P(r);
|
|
7810
7798
|
function r() {
|
|
7811
7799
|
var t;
|
|
7812
7800
|
T(this, r);
|
|
@@ -8046,7 +8034,7 @@ var Mi = /* @__PURE__ */ function(a) {
|
|
|
8046
8034
|
isPress: n
|
|
8047
8035
|
}, this.keyCodeMap[s[l]]));
|
|
8048
8036
|
}
|
|
8049
|
-
|
|
8037
|
+
No(i), i.stopPropagation();
|
|
8050
8038
|
break;
|
|
8051
8039
|
}
|
|
8052
8040
|
}
|
|
@@ -8088,15 +8076,15 @@ var Mi = /* @__PURE__ */ function(a) {
|
|
|
8088
8076
|
}
|
|
8089
8077
|
}]), r;
|
|
8090
8078
|
}(xe);
|
|
8091
|
-
function
|
|
8079
|
+
function Bo() {
|
|
8092
8080
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
8093
8081
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
8094
8082
|
</svg>
|
|
8095
8083
|
`, "image/svg+xml").firstChild;
|
|
8096
8084
|
}
|
|
8097
|
-
var
|
|
8098
|
-
|
|
8099
|
-
var o =
|
|
8085
|
+
var Ho = /* @__PURE__ */ function(a) {
|
|
8086
|
+
x(r, a);
|
|
8087
|
+
var o = P(r);
|
|
8100
8088
|
function r() {
|
|
8101
8089
|
return T(this, r), o.apply(this, arguments);
|
|
8102
8090
|
}
|
|
@@ -8104,7 +8092,7 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8104
8092
|
key: "registerIcons",
|
|
8105
8093
|
value: function() {
|
|
8106
8094
|
return {
|
|
8107
|
-
loadingIcon:
|
|
8095
|
+
loadingIcon: Bo
|
|
8108
8096
|
};
|
|
8109
8097
|
}
|
|
8110
8098
|
}, {
|
|
@@ -8133,7 +8121,7 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8133
8121
|
};
|
|
8134
8122
|
}
|
|
8135
8123
|
}]), r;
|
|
8136
|
-
}(U),
|
|
8124
|
+
}(U), Uo = [{
|
|
8137
8125
|
tag: "xg-cache",
|
|
8138
8126
|
className: "xgplayer-progress-cache",
|
|
8139
8127
|
styleKey: "cachedColor"
|
|
@@ -8141,7 +8129,7 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8141
8129
|
tag: "xg-played",
|
|
8142
8130
|
className: "xgplayer-progress-played",
|
|
8143
8131
|
styleKey: "playedColor"
|
|
8144
|
-
}],
|
|
8132
|
+
}], zo = /* @__PURE__ */ function() {
|
|
8145
8133
|
function a(o) {
|
|
8146
8134
|
T(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
8147
8135
|
percent: 1
|
|
@@ -8328,7 +8316,7 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8328
8316
|
var l = f.createDom("xg-inner", "", {
|
|
8329
8317
|
style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
|
|
8330
8318
|
}, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
|
|
8331
|
-
return r.root.appendChild(l),
|
|
8319
|
+
return r.root.appendChild(l), Uo.forEach(function(u) {
|
|
8332
8320
|
l.appendChild(f.createDom(u.tag, "", {
|
|
8333
8321
|
style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
|
|
8334
8322
|
}, u.className));
|
|
@@ -8344,9 +8332,9 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8344
8332
|
}(), Ni = {
|
|
8345
8333
|
POINT: "inner-focus-point",
|
|
8346
8334
|
HIGHLIGHT: "inner-focus-highlight"
|
|
8347
|
-
},
|
|
8348
|
-
|
|
8349
|
-
var o =
|
|
8335
|
+
}, Vo = /* @__PURE__ */ function(a) {
|
|
8336
|
+
x(r, a);
|
|
8337
|
+
var o = P(r);
|
|
8350
8338
|
function r(t) {
|
|
8351
8339
|
var e;
|
|
8352
8340
|
return T(this, r), e = o.call(this, t), y(v(e), "onMoveOnly", function(i, n) {
|
|
@@ -8474,7 +8462,7 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8474
8462
|
e.emitUserAction("fragment_focus", "fragment_focus", u);
|
|
8475
8463
|
}
|
|
8476
8464
|
});
|
|
8477
|
-
this.innerList ? this.innerList.reset(s) : (this.innerList = new
|
|
8465
|
+
this.innerList ? this.innerList.reset(s) : (this.innerList = new zo(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
|
|
8478
8466
|
e[l] = e.innerList[l].bind(e.innerList);
|
|
8479
8467
|
}));
|
|
8480
8468
|
}
|
|
@@ -8510,9 +8498,9 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8510
8498
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
8511
8499
|
}), this.on(Ji, function() {
|
|
8512
8500
|
e.onCacheUpdate();
|
|
8513
|
-
}), this.on(
|
|
8501
|
+
}), this.on(Fe, function() {
|
|
8514
8502
|
e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
|
|
8515
|
-
}), this.on(
|
|
8503
|
+
}), this.on(Me, function() {
|
|
8516
8504
|
e.onReset();
|
|
8517
8505
|
}), this.on(Se, function() {
|
|
8518
8506
|
e.onVideoResize();
|
|
@@ -8531,7 +8519,7 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8531
8519
|
key: "initCustomStyle",
|
|
8532
8520
|
value: function() {
|
|
8533
8521
|
var e = this.playerConfig || {}, i = e.commonStyle, n = i.sliderBtnStyle, s = this.progressBtn;
|
|
8534
|
-
n && (typeof n == "string" ? s.style.boxShadow = n :
|
|
8522
|
+
n && (typeof n == "string" ? s.style.boxShadow = n : q(n) === "object" && Object.keys(n).map(function(l) {
|
|
8535
8523
|
s.style[l] = n[l];
|
|
8536
8524
|
}));
|
|
8537
8525
|
}
|
|
@@ -8755,9 +8743,9 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8755
8743
|
return Ni;
|
|
8756
8744
|
}
|
|
8757
8745
|
}]), r;
|
|
8758
|
-
}(U),
|
|
8759
|
-
|
|
8760
|
-
var o =
|
|
8746
|
+
}(U), Ne = /* @__PURE__ */ function(a) {
|
|
8747
|
+
x(r, a);
|
|
8748
|
+
var o = P(r);
|
|
8761
8749
|
function r() {
|
|
8762
8750
|
var t;
|
|
8763
8751
|
T(this, r);
|
|
@@ -8784,9 +8772,9 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8784
8772
|
this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
|
|
8785
8773
|
}
|
|
8786
8774
|
}]), r;
|
|
8787
|
-
}(U),
|
|
8788
|
-
|
|
8789
|
-
var o =
|
|
8775
|
+
}(U), jo = /* @__PURE__ */ function(a) {
|
|
8776
|
+
x(r, a);
|
|
8777
|
+
var o = P(r);
|
|
8790
8778
|
function r() {
|
|
8791
8779
|
return T(this, r), o.apply(this, arguments);
|
|
8792
8780
|
}
|
|
@@ -8796,7 +8784,7 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8796
8784
|
var e = this;
|
|
8797
8785
|
L(A(r.prototype), "afterCreate", this).call(this);
|
|
8798
8786
|
var i = this.player, n = this.config;
|
|
8799
|
-
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([qe, nt,
|
|
8787
|
+
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([qe, nt, Me], function() {
|
|
8800
8788
|
e.animate(i.paused);
|
|
8801
8789
|
}), this.on(re, function() {
|
|
8802
8790
|
e.animate(i.paused);
|
|
@@ -8871,17 +8859,17 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
8871
8859
|
};
|
|
8872
8860
|
}
|
|
8873
8861
|
}]), r;
|
|
8874
|
-
}(
|
|
8875
|
-
function
|
|
8862
|
+
}(Ne);
|
|
8863
|
+
function Wo() {
|
|
8876
8864
|
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">
|
|
8877
8865
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8878
8866
|
<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>
|
|
8879
8867
|
</g>
|
|
8880
8868
|
</svg>`, "image/svg+xml").firstChild;
|
|
8881
8869
|
}
|
|
8882
|
-
var
|
|
8883
|
-
|
|
8884
|
-
var o =
|
|
8870
|
+
var Go = /* @__PURE__ */ function(a) {
|
|
8871
|
+
x(r, a);
|
|
8872
|
+
var o = P(r);
|
|
8885
8873
|
function r() {
|
|
8886
8874
|
return T(this, r), o.apply(this, arguments);
|
|
8887
8875
|
}
|
|
@@ -8898,7 +8886,7 @@ var $o = /* @__PURE__ */ function(a) {
|
|
|
8898
8886
|
value: function() {
|
|
8899
8887
|
return {
|
|
8900
8888
|
screenBack: {
|
|
8901
|
-
icon:
|
|
8889
|
+
icon: Wo,
|
|
8902
8890
|
class: "xg-fullscreen-back"
|
|
8903
8891
|
}
|
|
8904
8892
|
};
|
|
@@ -8940,21 +8928,21 @@ var $o = /* @__PURE__ */ function(a) {
|
|
|
8940
8928
|
}
|
|
8941
8929
|
}]), r;
|
|
8942
8930
|
}(U);
|
|
8943
|
-
function
|
|
8931
|
+
function $o() {
|
|
8944
8932
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
8945
8933
|
<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>
|
|
8946
8934
|
</svg>
|
|
8947
8935
|
`, "image/svg+xml").firstChild;
|
|
8948
8936
|
}
|
|
8949
|
-
function
|
|
8937
|
+
function Ko() {
|
|
8950
8938
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
8951
8939
|
<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>
|
|
8952
8940
|
</svg>
|
|
8953
8941
|
`, "image/svg+xml").firstChild;
|
|
8954
8942
|
}
|
|
8955
|
-
var
|
|
8956
|
-
|
|
8957
|
-
var o =
|
|
8943
|
+
var Yo = /* @__PURE__ */ function(a) {
|
|
8944
|
+
x(r, a);
|
|
8945
|
+
var o = P(r);
|
|
8958
8946
|
function r() {
|
|
8959
8947
|
var t;
|
|
8960
8948
|
T(this, r);
|
|
@@ -8987,7 +8975,7 @@ var Xo = /* @__PURE__ */ function(a) {
|
|
|
8987
8975
|
var u = e.find(".xg-tips");
|
|
8988
8976
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
8989
8977
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
8990
|
-
plugin:
|
|
8978
|
+
plugin: Go,
|
|
8991
8979
|
options: {
|
|
8992
8980
|
config: {
|
|
8993
8981
|
onClick: function(u) {
|
|
@@ -9003,11 +8991,11 @@ var Xo = /* @__PURE__ */ function(a) {
|
|
|
9003
8991
|
value: function() {
|
|
9004
8992
|
return {
|
|
9005
8993
|
fullscreen: {
|
|
9006
|
-
icon:
|
|
8994
|
+
icon: $o,
|
|
9007
8995
|
class: "xg-get-fullscreen"
|
|
9008
8996
|
},
|
|
9009
8997
|
exitFullscreen: {
|
|
9010
|
-
icon:
|
|
8998
|
+
icon: Ko,
|
|
9011
8999
|
class: "xg-exit-fullscreen"
|
|
9012
9000
|
}
|
|
9013
9001
|
};
|
|
@@ -9088,9 +9076,9 @@ var Xo = /* @__PURE__ */ function(a) {
|
|
|
9088
9076
|
};
|
|
9089
9077
|
}
|
|
9090
9078
|
}]), r;
|
|
9091
|
-
}(
|
|
9092
|
-
|
|
9093
|
-
var o =
|
|
9079
|
+
}(Ne), Xo = /* @__PURE__ */ function(a) {
|
|
9080
|
+
x(r, a);
|
|
9081
|
+
var o = P(r);
|
|
9094
9082
|
function r(t) {
|
|
9095
9083
|
var e;
|
|
9096
9084
|
return T(this, r), e = o.call(this, t), e.isActiving = !1, e;
|
|
@@ -9118,9 +9106,9 @@ var Xo = /* @__PURE__ */ function(a) {
|
|
|
9118
9106
|
var e = this, i = this.player.controls.config.mode;
|
|
9119
9107
|
this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Ie, Ce, ne], function(n) {
|
|
9120
9108
|
n.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
9121
|
-
}), this.on(
|
|
9109
|
+
}), this.on(Fe, function() {
|
|
9122
9110
|
e.onTimeUpdate(!0);
|
|
9123
|
-
}), this.on(
|
|
9111
|
+
}), this.on(Me, function() {
|
|
9124
9112
|
e.onReset();
|
|
9125
9113
|
}));
|
|
9126
9114
|
}
|
|
@@ -9238,9 +9226,9 @@ var Xo = /* @__PURE__ */ function(a) {
|
|
|
9238
9226
|
};
|
|
9239
9227
|
}
|
|
9240
9228
|
}]), r;
|
|
9241
|
-
}(U),
|
|
9242
|
-
|
|
9243
|
-
var o =
|
|
9229
|
+
}(U), qo = /* @__PURE__ */ function(a) {
|
|
9230
|
+
x(r, a);
|
|
9231
|
+
var o = P(r);
|
|
9244
9232
|
function r() {
|
|
9245
9233
|
var t;
|
|
9246
9234
|
T(this, r);
|
|
@@ -9376,30 +9364,30 @@ var Xo = /* @__PURE__ */ function(a) {
|
|
|
9376
9364
|
}
|
|
9377
9365
|
}]), r;
|
|
9378
9366
|
}(xe);
|
|
9379
|
-
function
|
|
9367
|
+
function Zo() {
|
|
9380
9368
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9381
9369
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9382
9370
|
<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>
|
|
9383
9371
|
</svg>
|
|
9384
9372
|
`, "image/svg+xml").firstChild;
|
|
9385
9373
|
}
|
|
9386
|
-
function
|
|
9374
|
+
function Jo() {
|
|
9387
9375
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9388
9376
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9389
9377
|
<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>
|
|
9390
9378
|
</svg>
|
|
9391
9379
|
`, "image/svg+xml").firstChild;
|
|
9392
9380
|
}
|
|
9393
|
-
function
|
|
9381
|
+
function Qo() {
|
|
9394
9382
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9395
9383
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9396
9384
|
<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>
|
|
9397
9385
|
</svg>
|
|
9398
9386
|
`, "image/svg+xml").firstChild;
|
|
9399
9387
|
}
|
|
9400
|
-
var
|
|
9401
|
-
|
|
9402
|
-
var o =
|
|
9388
|
+
var ea = /* @__PURE__ */ function(a) {
|
|
9389
|
+
x(r, a);
|
|
9390
|
+
var o = P(r);
|
|
9403
9391
|
function r() {
|
|
9404
9392
|
var t;
|
|
9405
9393
|
T(this, r);
|
|
@@ -9445,15 +9433,15 @@ var ta = /* @__PURE__ */ function(a) {
|
|
|
9445
9433
|
value: function() {
|
|
9446
9434
|
return {
|
|
9447
9435
|
volumeSmall: {
|
|
9448
|
-
icon:
|
|
9436
|
+
icon: Jo,
|
|
9449
9437
|
class: "xg-volume-small"
|
|
9450
9438
|
},
|
|
9451
9439
|
volumeLarge: {
|
|
9452
|
-
icon:
|
|
9440
|
+
icon: Zo,
|
|
9453
9441
|
class: "xg-volume"
|
|
9454
9442
|
},
|
|
9455
9443
|
volumeMuted: {
|
|
9456
|
-
icon:
|
|
9444
|
+
icon: Qo,
|
|
9457
9445
|
class: "xg-volume-mute"
|
|
9458
9446
|
}
|
|
9459
9447
|
};
|
|
@@ -9592,7 +9580,7 @@ var ta = /* @__PURE__ */ function(a) {
|
|
|
9592
9580
|
}
|
|
9593
9581
|
}]), r;
|
|
9594
9582
|
}(U);
|
|
9595
|
-
function
|
|
9583
|
+
function ta() {
|
|
9596
9584
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
9597
9585
|
<g clip-path="url(#clip0)">
|
|
9598
9586
|
<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"/>
|
|
@@ -9606,9 +9594,9 @@ function ia() {
|
|
|
9606
9594
|
</svg>
|
|
9607
9595
|
`, "image/svg+xml").firstChild;
|
|
9608
9596
|
}
|
|
9609
|
-
var
|
|
9610
|
-
|
|
9611
|
-
var o =
|
|
9597
|
+
var ia = /* @__PURE__ */ function(a) {
|
|
9598
|
+
x(r, a);
|
|
9599
|
+
var o = P(r);
|
|
9612
9600
|
function r(t) {
|
|
9613
9601
|
var e;
|
|
9614
9602
|
return T(this, r), e = o.call(this, t), e.rotateDeg = e.config.rotateDeg || 0, e;
|
|
@@ -9652,9 +9640,9 @@ var na = /* @__PURE__ */ function(a) {
|
|
|
9652
9640
|
webKitTransform: w,
|
|
9653
9641
|
height: m,
|
|
9654
9642
|
width: p
|
|
9655
|
-
}, B = i ? h : u,
|
|
9643
|
+
}, B = i ? h : u, F = i ? n.getPlugin("poster") : null;
|
|
9656
9644
|
Object.keys(b).map(function(V) {
|
|
9657
|
-
B.style[V] = b[V],
|
|
9645
|
+
B.style[V] = b[V], F && F.root && (F.root.style[V] = b[V]);
|
|
9658
9646
|
});
|
|
9659
9647
|
}
|
|
9660
9648
|
}, {
|
|
@@ -9669,7 +9657,7 @@ var na = /* @__PURE__ */ function(a) {
|
|
|
9669
9657
|
key: "registerIcons",
|
|
9670
9658
|
value: function() {
|
|
9671
9659
|
return {
|
|
9672
|
-
rotate:
|
|
9660
|
+
rotate: ta
|
|
9673
9661
|
};
|
|
9674
9662
|
}
|
|
9675
9663
|
}, {
|
|
@@ -9701,15 +9689,15 @@ var na = /* @__PURE__ */ function(a) {
|
|
|
9701
9689
|
};
|
|
9702
9690
|
}
|
|
9703
9691
|
}]), r;
|
|
9704
|
-
}(
|
|
9705
|
-
function
|
|
9692
|
+
}(Ne);
|
|
9693
|
+
function na() {
|
|
9706
9694
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9707
9695
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
9708
9696
|
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"
|
|
9709
9697
|
fill="white" />
|
|
9710
9698
|
</svg>`, "image/svg+xml").firstChild;
|
|
9711
9699
|
}
|
|
9712
|
-
function
|
|
9700
|
+
function ra() {
|
|
9713
9701
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9714
9702
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
9715
9703
|
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"
|
|
@@ -9719,13 +9707,13 @@ function sa() {
|
|
|
9719
9707
|
fill="white" />
|
|
9720
9708
|
</svg>`, "image/svg+xml").firstChild;
|
|
9721
9709
|
}
|
|
9722
|
-
var
|
|
9710
|
+
var Ue = {
|
|
9723
9711
|
PIP: "picture-in-picture",
|
|
9724
9712
|
INLINE: "inline",
|
|
9725
9713
|
FULLSCREEN: "fullscreen"
|
|
9726
|
-
},
|
|
9727
|
-
|
|
9728
|
-
var o =
|
|
9714
|
+
}, sa = /* @__PURE__ */ function(a) {
|
|
9715
|
+
x(r, a);
|
|
9716
|
+
var o = P(r);
|
|
9729
9717
|
function r() {
|
|
9730
9718
|
var t;
|
|
9731
9719
|
T(this, r);
|
|
@@ -9754,7 +9742,7 @@ var ze = {
|
|
|
9754
9742
|
key: "afterCreate",
|
|
9755
9743
|
value: function() {
|
|
9756
9744
|
var e = this;
|
|
9757
|
-
this.isPIPAvailable() && (L(A(r.prototype), "afterCreate", this).call(this), this.pMode =
|
|
9745
|
+
this.isPIPAvailable() && (L(A(r.prototype), "afterCreate", this).call(this), this.pMode = Ue.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(kt, function() {
|
|
9758
9746
|
e.config.showIcon && (f.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
9759
9747
|
}));
|
|
9760
9748
|
}
|
|
@@ -9763,11 +9751,11 @@ var ze = {
|
|
|
9763
9751
|
value: function() {
|
|
9764
9752
|
return {
|
|
9765
9753
|
pipIcon: {
|
|
9766
|
-
icon:
|
|
9754
|
+
icon: na,
|
|
9767
9755
|
class: "xg-get-pip"
|
|
9768
9756
|
},
|
|
9769
9757
|
pipIconExit: {
|
|
9770
|
-
icon:
|
|
9758
|
+
icon: ra,
|
|
9771
9759
|
class: "xg-exit-pip"
|
|
9772
9760
|
}
|
|
9773
9761
|
};
|
|
@@ -9791,7 +9779,7 @@ var ze = {
|
|
|
9791
9779
|
i.emit(Kt, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
9792
9780
|
}, this.onWebkitpresentationmodechanged = function(n) {
|
|
9793
9781
|
var s = i.media.webkitPresentationMode;
|
|
9794
|
-
e.pMode ===
|
|
9782
|
+
e.pMode === Ue.FULLSCREEN && s !== Ue.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === Ue.PIP ? e.enterPIPCallback(n) : s === Ue.INLINE && e.leavePIPCallback(n);
|
|
9795
9783
|
}, i.media && (i.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), i.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), r.checkWebkitSetPresentationMode(i.media) && i.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
|
|
9796
9784
|
}
|
|
9797
9785
|
}, {
|
|
@@ -9870,7 +9858,7 @@ var ze = {
|
|
|
9870
9858
|
key: "isPip",
|
|
9871
9859
|
get: function() {
|
|
9872
9860
|
var e, i = this.player;
|
|
9873
|
-
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode ===
|
|
9861
|
+
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === Ue.PIP;
|
|
9874
9862
|
}
|
|
9875
9863
|
}, {
|
|
9876
9864
|
key: "isPIPAvailable",
|
|
@@ -9925,16 +9913,16 @@ var ze = {
|
|
|
9925
9913
|
return typeof e.webkitSetPresentationMode == "function";
|
|
9926
9914
|
}
|
|
9927
9915
|
}]), r;
|
|
9928
|
-
}(
|
|
9929
|
-
function
|
|
9916
|
+
}(Ne);
|
|
9917
|
+
function oa() {
|
|
9930
9918
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
9931
9919
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
9932
9920
|
</svg>
|
|
9933
9921
|
`, "image/svg+xml").firstChild;
|
|
9934
9922
|
}
|
|
9935
|
-
var
|
|
9936
|
-
|
|
9937
|
-
var o =
|
|
9923
|
+
var aa = /* @__PURE__ */ function(a) {
|
|
9924
|
+
x(r, a);
|
|
9925
|
+
var o = P(r);
|
|
9938
9926
|
function r(t) {
|
|
9939
9927
|
var e;
|
|
9940
9928
|
return T(this, r), e = o.call(this, t), y(v(e), "playNext", function(i) {
|
|
@@ -9951,7 +9939,7 @@ var la = /* @__PURE__ */ function(a) {
|
|
|
9951
9939
|
key: "registerIcons",
|
|
9952
9940
|
value: function() {
|
|
9953
9941
|
return {
|
|
9954
|
-
playNext:
|
|
9942
|
+
playNext: oa
|
|
9955
9943
|
};
|
|
9956
9944
|
}
|
|
9957
9945
|
}, {
|
|
@@ -10004,7 +9992,7 @@ var la = /* @__PURE__ */ function(a) {
|
|
|
10004
9992
|
(function(a, o) {
|
|
10005
9993
|
(function(r, t) {
|
|
10006
9994
|
a.exports = t();
|
|
10007
|
-
})(
|
|
9995
|
+
})(hs, function() {
|
|
10008
9996
|
return function r(t, e, i) {
|
|
10009
9997
|
var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(D) {
|
|
10010
9998
|
return String(D);
|
|
@@ -10019,11 +10007,11 @@ var la = /* @__PURE__ */ function(a) {
|
|
|
10019
10007
|
}
|
|
10020
10008
|
if (/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u))
|
|
10021
10009
|
if (u.length > 1024 * 1024 * 1.999 && g !== d)
|
|
10022
|
-
u =
|
|
10010
|
+
u = F(u), l = u.type || s;
|
|
10023
10011
|
else
|
|
10024
10012
|
return navigator.msSaveBlob ? (
|
|
10025
10013
|
// IE10 can't do a[download], only Blobs:
|
|
10026
|
-
navigator.msSaveBlob(
|
|
10014
|
+
navigator.msSaveBlob(F(u), p)
|
|
10027
10015
|
) : V(u);
|
|
10028
10016
|
else if (/([\x80-\xff])/.test(u)) {
|
|
10029
10017
|
var w = 0, b = new Uint8Array(u.length), B = b.length;
|
|
@@ -10032,16 +10020,16 @@ var la = /* @__PURE__ */ function(a) {
|
|
|
10032
10020
|
u = new g([b], { type: l });
|
|
10033
10021
|
}
|
|
10034
10022
|
m = u instanceof g ? u : new g([u], { type: l });
|
|
10035
|
-
function
|
|
10036
|
-
var
|
|
10023
|
+
function F(D) {
|
|
10024
|
+
var Z = D.split(/[:;,]/), G = Z[1], H = Z[2] == "base64" ? atob : decodeURIComponent, ee = H(Z.pop()), oe = ee.length, ae = 0, Le = new Uint8Array(oe);
|
|
10037
10025
|
for (ae; ae < oe; ++ae)
|
|
10038
10026
|
Le[ae] = ee.charCodeAt(ae);
|
|
10039
10027
|
return new g([Le], { type: G });
|
|
10040
10028
|
}
|
|
10041
|
-
function V(D,
|
|
10029
|
+
function V(D, Z) {
|
|
10042
10030
|
if ("download" in h)
|
|
10043
10031
|
return h.href = D, h.setAttribute("download", p), h.className = "download-js-link", h.innerHTML = "downloading...", h.style.display = "none", document.body.appendChild(h), setTimeout(function() {
|
|
10044
|
-
h.click(), document.body.removeChild(h),
|
|
10032
|
+
h.click(), document.body.removeChild(h), Z === !0 && setTimeout(function() {
|
|
10045
10033
|
n.URL.revokeObjectURL(h.href);
|
|
10046
10034
|
}, 250);
|
|
10047
10035
|
}, 66), !0;
|
|
@@ -10050,7 +10038,7 @@ var la = /* @__PURE__ */ function(a) {
|
|
|
10050
10038
|
|
|
10051
10039
|
Use Save As... to download, then click back to return to this page.`) && (location.href = D), !0;
|
|
10052
10040
|
var G = document.createElement("iframe");
|
|
10053
|
-
document.body.appendChild(G), !
|
|
10041
|
+
document.body.appendChild(G), !Z && /^data:/.test(D) && (D = "data:" + D.replace(/^data:([\w\/\-\+]+)/, s)), G.src = D, setTimeout(function() {
|
|
10054
10042
|
document.body.removeChild(G);
|
|
10055
10043
|
}, 333);
|
|
10056
10044
|
}
|
|
@@ -10073,9 +10061,9 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
10073
10061
|
};
|
|
10074
10062
|
});
|
|
10075
10063
|
})(_n);
|
|
10076
|
-
var
|
|
10077
|
-
const
|
|
10078
|
-
function
|
|
10064
|
+
var la = _n.exports;
|
|
10065
|
+
const ua = /* @__PURE__ */ Xt(la);
|
|
10066
|
+
function ca() {
|
|
10079
10067
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
10080
10068
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
10081
10069
|
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
@@ -10092,9 +10080,9 @@ function fa() {
|
|
|
10092
10080
|
</svg>
|
|
10093
10081
|
`, "image/svg+xml").firstChild;
|
|
10094
10082
|
}
|
|
10095
|
-
var
|
|
10096
|
-
|
|
10097
|
-
var o =
|
|
10083
|
+
var fa = /* @__PURE__ */ function(a) {
|
|
10084
|
+
x(r, a);
|
|
10085
|
+
var o = P(r);
|
|
10098
10086
|
function r(t) {
|
|
10099
10087
|
var e;
|
|
10100
10088
|
return T(this, r), e = o.call(this, t), y(v(e), "download", function(i) {
|
|
@@ -10103,7 +10091,7 @@ var ha = /* @__PURE__ */ function(a) {
|
|
|
10103
10091
|
var n = e.playerConfig.url, s = "";
|
|
10104
10092
|
f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
|
|
10105
10093
|
var l = e.getAbsoluteURL(s);
|
|
10106
|
-
|
|
10094
|
+
ua(l), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
10107
10095
|
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
10108
10096
|
}, 300);
|
|
10109
10097
|
}
|
|
@@ -10122,7 +10110,7 @@ var ha = /* @__PURE__ */ function(a) {
|
|
|
10122
10110
|
key: "registerIcons",
|
|
10123
10111
|
value: function() {
|
|
10124
10112
|
return {
|
|
10125
|
-
download:
|
|
10113
|
+
download: ca
|
|
10126
10114
|
};
|
|
10127
10115
|
}
|
|
10128
10116
|
}, {
|
|
@@ -10164,9 +10152,9 @@ var ha = /* @__PURE__ */ function(a) {
|
|
|
10164
10152
|
};
|
|
10165
10153
|
}
|
|
10166
10154
|
}]), r;
|
|
10167
|
-
}(
|
|
10168
|
-
|
|
10169
|
-
var o =
|
|
10155
|
+
}(Ne), ha = /* @__PURE__ */ function(a) {
|
|
10156
|
+
x(r, a);
|
|
10157
|
+
var o = P(r);
|
|
10170
10158
|
function r() {
|
|
10171
10159
|
return T(this, r), o.apply(this, arguments);
|
|
10172
10160
|
}
|
|
@@ -10235,8 +10223,8 @@ var ha = /* @__PURE__ */ function(a) {
|
|
|
10235
10223
|
p = u.media.canvas;
|
|
10236
10224
|
else {
|
|
10237
10225
|
n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), p = n.canvas, m = n.canvasCtx;
|
|
10238
|
-
var _ = u.media.videoWidth / u.media.videoHeight, C = p.width / p.height, w = 0, b = 0, B = u.media.videoWidth,
|
|
10239
|
-
_ > C ? (
|
|
10226
|
+
var _ = u.media.videoWidth / u.media.videoHeight, C = p.width / p.height, w = 0, b = 0, B = u.media.videoWidth, F = u.media.videoHeight, V, D, Z, G;
|
|
10227
|
+
_ > C ? (Z = p.width, G = p.width / _, V = 0, D = Math.round((p.height - G) / 2)) : _ === C ? (Z = p.width, G = p.height, V = 0, D = 0) : _ < C && (Z = p.height * _, G = p.height, V = Math.round((p.width - Z) / 2), D = 0), m.drawImage(u.media, w, b, B, F, V, D, Z, G);
|
|
10240
10228
|
}
|
|
10241
10229
|
var H = p.toDataURL(h, c).replace(h, "image/octet-stream");
|
|
10242
10230
|
H = H.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(H);
|
|
@@ -10290,7 +10278,7 @@ var ha = /* @__PURE__ */ function(a) {
|
|
|
10290
10278
|
};
|
|
10291
10279
|
}
|
|
10292
10280
|
}]), r;
|
|
10293
|
-
}(
|
|
10281
|
+
}(Ne), da = /* @__PURE__ */ function() {
|
|
10294
10282
|
function a(o) {
|
|
10295
10283
|
T(this, a), this.config = o.config, this.parent = o.root, this.root = f.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), o.root.appendChild(this.root);
|
|
10296
10284
|
var r = this.config.maxHeight;
|
|
@@ -10366,16 +10354,16 @@ var ha = /* @__PURE__ */ function(a) {
|
|
|
10366
10354
|
SIDE: "side",
|
|
10367
10355
|
MIDDLE: "middle",
|
|
10368
10356
|
DEFAULT: "default"
|
|
10369
|
-
},
|
|
10357
|
+
}, ze = {
|
|
10370
10358
|
CLICK: "click",
|
|
10371
10359
|
HOVER: "hover"
|
|
10372
10360
|
};
|
|
10373
|
-
function
|
|
10361
|
+
function ga(a, o) {
|
|
10374
10362
|
return a === de.SIDE ? o === j.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10375
10363
|
}
|
|
10376
10364
|
var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
10377
|
-
|
|
10378
|
-
var o =
|
|
10365
|
+
x(r, a);
|
|
10366
|
+
var o = P(r);
|
|
10379
10367
|
function r(t) {
|
|
10380
10368
|
var e;
|
|
10381
10369
|
return T(this, r), e = o.call(this, t), y(v(e), "onEnter", function(i) {
|
|
@@ -10385,7 +10373,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
|
10385
10373
|
}), y(v(e), "switchActiveState", function(i) {
|
|
10386
10374
|
i.stopPropagation();
|
|
10387
10375
|
var n = e.config.toggleMode;
|
|
10388
|
-
n ===
|
|
10376
|
+
n === ze.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
|
|
10389
10377
|
}), y(v(e), "onLeave", function(i) {
|
|
10390
10378
|
i.stopPropagation(), e.emit("icon_mouseleave", {
|
|
10391
10379
|
pluginName: e.pluginName
|
|
@@ -10411,7 +10399,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
|
10411
10399
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
10412
10400
|
}), De && this.on(ei, function() {
|
|
10413
10401
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
10414
|
-
}), De ? (i.toggleMode =
|
|
10402
|
+
}), De ? (i.toggleMode = ze.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === ze.CLICK ? "click" : "mouseenter", i.toggleMode === ze.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);
|
|
10415
10403
|
}
|
|
10416
10404
|
}, {
|
|
10417
10405
|
key: "initIcons",
|
|
@@ -10439,7 +10427,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
|
10439
10427
|
var s = this.config.list;
|
|
10440
10428
|
!n && (n = this.player.lang), i = !i || f.isUndefined(e[i]) ? "text" : i, typeof e == "number" && (e = s[e]);
|
|
10441
10429
|
try {
|
|
10442
|
-
return
|
|
10430
|
+
return q(e[i]) === "object" ? e[i][n] || e[i].en : e[i];
|
|
10443
10431
|
} catch (l) {
|
|
10444
10432
|
return console.warn(l), "";
|
|
10445
10433
|
}
|
|
@@ -10484,7 +10472,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
|
10484
10472
|
var c = {
|
|
10485
10473
|
config: {
|
|
10486
10474
|
data: e || [],
|
|
10487
|
-
className:
|
|
10475
|
+
className: ga(s.listType, s.position),
|
|
10488
10476
|
onItemClick: function(m, _) {
|
|
10489
10477
|
n.onItemClick(m, _);
|
|
10490
10478
|
},
|
|
@@ -10494,7 +10482,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
|
10494
10482
|
};
|
|
10495
10483
|
if (this.config.isShowIcon) {
|
|
10496
10484
|
var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === de.MIDDLE ? d - 50 : d;
|
|
10497
|
-
g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new
|
|
10485
|
+
g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new da(c), this.changeCurrentText(), this.show();
|
|
10498
10486
|
}
|
|
10499
10487
|
this._resizeList();
|
|
10500
10488
|
}
|
|
@@ -10512,7 +10500,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
|
10512
10500
|
key: "destroy",
|
|
10513
10501
|
value: function() {
|
|
10514
10502
|
var e = this.config;
|
|
10515
|
-
e.toggleMode ===
|
|
10503
|
+
e.toggleMode === ze.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);
|
|
10516
10504
|
}
|
|
10517
10505
|
}, {
|
|
10518
10506
|
key: "render",
|
|
@@ -10540,14 +10528,14 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
|
10540
10528
|
hidePortrait: !0,
|
|
10541
10529
|
isShowIcon: !1,
|
|
10542
10530
|
isItemClickHide: !0,
|
|
10543
|
-
toggleMode:
|
|
10531
|
+
toggleMode: ze.HOVER,
|
|
10544
10532
|
heightLimit: !0
|
|
10545
10533
|
};
|
|
10546
10534
|
}
|
|
10547
10535
|
}]), r;
|
|
10548
|
-
}(U),
|
|
10549
|
-
|
|
10550
|
-
var o =
|
|
10536
|
+
}(U), pa = /* @__PURE__ */ function(a) {
|
|
10537
|
+
x(r, a);
|
|
10538
|
+
var o = P(r);
|
|
10551
10539
|
function r(t) {
|
|
10552
10540
|
var e;
|
|
10553
10541
|
return T(this, r), e = o.call(this, t), e.curTime = 0, e.isPaused = !0, e;
|
|
@@ -10646,9 +10634,9 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
|
10646
10634
|
});
|
|
10647
10635
|
}
|
|
10648
10636
|
}]), r;
|
|
10649
|
-
}(_t),
|
|
10650
|
-
|
|
10651
|
-
var o =
|
|
10637
|
+
}(_t), va = /* @__PURE__ */ function(a) {
|
|
10638
|
+
x(r, a);
|
|
10639
|
+
var o = P(r);
|
|
10652
10640
|
function r(t) {
|
|
10653
10641
|
var e;
|
|
10654
10642
|
return T(this, r), e = o.call(this, t), e.curRate = 1, e;
|
|
@@ -10739,21 +10727,21 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
|
|
|
10739
10727
|
}
|
|
10740
10728
|
}]), r;
|
|
10741
10729
|
}(_t);
|
|
10742
|
-
function
|
|
10730
|
+
function ma() {
|
|
10743
10731
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10744
10732
|
<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>
|
|
10745
10733
|
</svg>
|
|
10746
10734
|
`, "image/svg+xml").firstChild;
|
|
10747
10735
|
}
|
|
10748
|
-
function
|
|
10736
|
+
function ya() {
|
|
10749
10737
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10750
10738
|
<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>
|
|
10751
10739
|
</svg>
|
|
10752
10740
|
`, "image/svg+xml").firstChild;
|
|
10753
10741
|
}
|
|
10754
10742
|
var Bi = /* @__PURE__ */ function(a) {
|
|
10755
|
-
|
|
10756
|
-
var o =
|
|
10743
|
+
x(r, a);
|
|
10744
|
+
var o = P(r);
|
|
10757
10745
|
function r() {
|
|
10758
10746
|
return T(this, r), o.apply(this, arguments);
|
|
10759
10747
|
}
|
|
@@ -10805,11 +10793,11 @@ var Bi = /* @__PURE__ */ function(a) {
|
|
|
10805
10793
|
value: function() {
|
|
10806
10794
|
return {
|
|
10807
10795
|
cssFullscreen: {
|
|
10808
|
-
icon:
|
|
10796
|
+
icon: ma,
|
|
10809
10797
|
class: "xg-get-cssfull"
|
|
10810
10798
|
},
|
|
10811
10799
|
exitCssFullscreen: {
|
|
10812
|
-
icon:
|
|
10800
|
+
icon: ya,
|
|
10813
10801
|
class: "xg-exit-cssfull"
|
|
10814
10802
|
}
|
|
10815
10803
|
};
|
|
@@ -10845,9 +10833,9 @@ var Bi = /* @__PURE__ */ function(a) {
|
|
|
10845
10833
|
};
|
|
10846
10834
|
}
|
|
10847
10835
|
}]), r;
|
|
10848
|
-
}(
|
|
10849
|
-
|
|
10850
|
-
var o =
|
|
10836
|
+
}(Ne), _a = /* @__PURE__ */ function(a) {
|
|
10837
|
+
x(r, a);
|
|
10838
|
+
var o = P(r);
|
|
10851
10839
|
function r() {
|
|
10852
10840
|
return T(this, r), o.apply(this, arguments);
|
|
10853
10841
|
}
|
|
@@ -10906,9 +10894,9 @@ var Bi = /* @__PURE__ */ function(a) {
|
|
|
10906
10894
|
return "error";
|
|
10907
10895
|
}
|
|
10908
10896
|
}]), r;
|
|
10909
|
-
}(U),
|
|
10910
|
-
|
|
10911
|
-
var o =
|
|
10897
|
+
}(U), Ca = /* @__PURE__ */ function(a) {
|
|
10898
|
+
x(r, a);
|
|
10899
|
+
var o = P(r);
|
|
10912
10900
|
function r() {
|
|
10913
10901
|
return T(this, r), o.apply(this, arguments);
|
|
10914
10902
|
}
|
|
@@ -11136,7 +11124,7 @@ var Ui = {
|
|
|
11136
11124
|
return r.find('xg-spot[data-id="'.concat(o, '"]'));
|
|
11137
11125
|
}
|
|
11138
11126
|
};
|
|
11139
|
-
function
|
|
11127
|
+
function ka(a) {
|
|
11140
11128
|
var o = a.config, r = a.player;
|
|
11141
11129
|
Object.keys(Ui).map(function(e) {
|
|
11142
11130
|
a[e] = Ui[e].bind(a);
|
|
@@ -11153,16 +11141,16 @@ function ba(a) {
|
|
|
11153
11141
|
a.positionDots();
|
|
11154
11142
|
});
|
|
11155
11143
|
}
|
|
11156
|
-
var
|
|
11144
|
+
var Ve = {
|
|
11157
11145
|
dragmove: "onProgressMove",
|
|
11158
11146
|
dragstart: "onProgressDragStart",
|
|
11159
11147
|
dragend: "onProgressDragEnd",
|
|
11160
11148
|
click: "onProgressClick",
|
|
11161
11149
|
mouseover: "onProgressMouseOver",
|
|
11162
11150
|
mouseenter: "onProgressMouseOver"
|
|
11163
|
-
},
|
|
11164
|
-
|
|
11165
|
-
var o =
|
|
11151
|
+
}, ba = /* @__PURE__ */ function(a) {
|
|
11152
|
+
x(r, a);
|
|
11153
|
+
var o = P(r);
|
|
11166
11154
|
function r(t) {
|
|
11167
11155
|
var e;
|
|
11168
11156
|
return T(this, r), e = o.call(this, t), y(v(e), "onMousemove", function(i) {
|
|
@@ -11211,7 +11199,7 @@ var je = {
|
|
|
11211
11199
|
n.seekTime && e.player.seek(n.seekTime);
|
|
11212
11200
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
11213
11201
|
e.setTimeContent(f.format(i));
|
|
11214
|
-
}),
|
|
11202
|
+
}), ka(this), this.on(Ie, function() {
|
|
11215
11203
|
e.show();
|
|
11216
11204
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
11217
11205
|
}
|
|
@@ -11233,8 +11221,8 @@ var je = {
|
|
|
11233
11221
|
key: "bindEvents",
|
|
11234
11222
|
value: function() {
|
|
11235
11223
|
var e = this, i = this.player.plugins.progress;
|
|
11236
|
-
if (i && (Object.keys(
|
|
11237
|
-
e[
|
|
11224
|
+
if (i && (Object.keys(Ve).map(function(s) {
|
|
11225
|
+
e[Ve[s]] = e[Ve[s]].bind(e), i.addCallBack(s, e[Ve[s]]);
|
|
11238
11226
|
}), R.device !== "mobile")) {
|
|
11239
11227
|
this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
|
|
11240
11228
|
var n = this.hook("previewClick", function() {
|
|
@@ -11392,8 +11380,8 @@ var je = {
|
|
|
11392
11380
|
key: "destroy",
|
|
11393
11381
|
value: function() {
|
|
11394
11382
|
var e = this, i = this.player.plugins.progress;
|
|
11395
|
-
i && Object.keys(
|
|
11396
|
-
i.removeCallBack(n, e[
|
|
11383
|
+
i && Object.keys(Ve).map(function(n) {
|
|
11384
|
+
i.removeCallBack(n, e[Ve[n]]);
|
|
11397
11385
|
}), 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);
|
|
11398
11386
|
}
|
|
11399
11387
|
}, {
|
|
@@ -11435,9 +11423,9 @@ var je = {
|
|
|
11435
11423
|
};
|
|
11436
11424
|
}
|
|
11437
11425
|
}]), r;
|
|
11438
|
-
}(U),
|
|
11439
|
-
|
|
11440
|
-
var o =
|
|
11426
|
+
}(U), wa = /* @__PURE__ */ function(a) {
|
|
11427
|
+
x(r, a);
|
|
11428
|
+
var o = P(r);
|
|
11441
11429
|
function r(t) {
|
|
11442
11430
|
var e;
|
|
11443
11431
|
return T(this, r), e = o.call(this, t), e.ratio = 1, e.interval = null, e._preloadMark = {}, e;
|
|
@@ -11505,16 +11493,16 @@ var je = {
|
|
|
11505
11493
|
B < h / d ? (b = n, w = b * (h / d)) : (w = i, b = w / (h / d));
|
|
11506
11494
|
} else
|
|
11507
11495
|
n ? i || (b = n || d, w = b * (h / d)) : (w = i || h, b = w / (h / d));
|
|
11508
|
-
var
|
|
11496
|
+
var F = this.getUrlByIndex(p);
|
|
11509
11497
|
return {
|
|
11510
11498
|
urlIndex: p,
|
|
11511
11499
|
rowIndex: _,
|
|
11512
11500
|
colIndex: C,
|
|
11513
|
-
url:
|
|
11501
|
+
url: F,
|
|
11514
11502
|
height: b,
|
|
11515
11503
|
width: w,
|
|
11516
11504
|
style: {
|
|
11517
|
-
backgroundImage: "url(".concat(
|
|
11505
|
+
backgroundImage: "url(".concat(F, ")"),
|
|
11518
11506
|
backgroundSize: "".concat(w * c, "px auto"),
|
|
11519
11507
|
backgroundPosition: "-".concat(C * w, "px -").concat(_ * b, "px"),
|
|
11520
11508
|
width: "".concat(w, "px"),
|
|
@@ -11573,9 +11561,9 @@ var je = {
|
|
|
11573
11561
|
function Nt(a) {
|
|
11574
11562
|
return a ? "background:".concat(a, ";") : "";
|
|
11575
11563
|
}
|
|
11576
|
-
var
|
|
11577
|
-
|
|
11578
|
-
var o =
|
|
11564
|
+
var Ta = /* @__PURE__ */ function(a) {
|
|
11565
|
+
x(r, a);
|
|
11566
|
+
var o = P(r);
|
|
11579
11567
|
function r() {
|
|
11580
11568
|
var t;
|
|
11581
11569
|
T(this, r);
|
|
@@ -11603,7 +11591,7 @@ var Ea = /* @__PURE__ */ function(a) {
|
|
|
11603
11591
|
key: "afterCreate",
|
|
11604
11592
|
value: function() {
|
|
11605
11593
|
var e = this;
|
|
11606
|
-
this.root && (this.on(ne, this.onTimeupdate), this.on(
|
|
11594
|
+
this.root && (this.on(ne, this.onTimeupdate), this.on(Me, function() {
|
|
11607
11595
|
e.reset();
|
|
11608
11596
|
}));
|
|
11609
11597
|
}
|
|
@@ -11655,20 +11643,20 @@ var Ea = /* @__PURE__ */ function(a) {
|
|
|
11655
11643
|
};
|
|
11656
11644
|
}
|
|
11657
11645
|
}]), r;
|
|
11658
|
-
}(U),
|
|
11646
|
+
}(U), je = {
|
|
11659
11647
|
REAL_TIME: "realtime",
|
|
11660
11648
|
FIRST_FRAME: "firstframe",
|
|
11661
11649
|
FRAME_RATE: "framerate",
|
|
11662
11650
|
POSTER: "poster"
|
|
11663
11651
|
};
|
|
11664
|
-
function
|
|
11652
|
+
function Ea() {
|
|
11665
11653
|
try {
|
|
11666
11654
|
return parseInt(window.performance.now(), 10);
|
|
11667
11655
|
} catch {
|
|
11668
11656
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
11669
11657
|
}
|
|
11670
11658
|
}
|
|
11671
|
-
function
|
|
11659
|
+
function Sa() {
|
|
11672
11660
|
try {
|
|
11673
11661
|
var a = document.createElement("canvas").getContext;
|
|
11674
11662
|
return !!a;
|
|
@@ -11676,9 +11664,9 @@ function xa() {
|
|
|
11676
11664
|
return !1;
|
|
11677
11665
|
}
|
|
11678
11666
|
}
|
|
11679
|
-
var at = null,
|
|
11680
|
-
|
|
11681
|
-
var o =
|
|
11667
|
+
var at = null, xa = /* @__PURE__ */ function(a) {
|
|
11668
|
+
x(r, a);
|
|
11669
|
+
var o = P(r);
|
|
11682
11670
|
function r() {
|
|
11683
11671
|
var t;
|
|
11684
11672
|
T(this, r);
|
|
@@ -11697,8 +11685,8 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
11697
11685
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
11698
11686
|
}
|
|
11699
11687
|
}), y(v(t), "start", function(s, l) {
|
|
11700
|
-
var u = t.player.video, c =
|
|
11701
|
-
!h || !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 ===
|
|
11688
|
+
var u = t.player.video, c = Ea(), h = t.checkVideoIsSupport(u);
|
|
11689
|
+
!h || !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 === je.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(v(t), t.start, l) : f.requestAnimationFrame(t.start));
|
|
11702
11690
|
}), y(v(t), "stop", function() {
|
|
11703
11691
|
t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
11704
11692
|
}), t;
|
|
@@ -11717,9 +11705,9 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
11717
11705
|
x: 0,
|
|
11718
11706
|
y: 0,
|
|
11719
11707
|
pi: 0
|
|
11720
|
-
}, 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 !==
|
|
11708
|
+
}, 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 !== je.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(kt, function() {
|
|
11721
11709
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
11722
|
-
}), s !==
|
|
11710
|
+
}), s !== je.POSTER && (s !== je.FIRST_FRAME && (this.on(Me, function() {
|
|
11723
11711
|
e.stop();
|
|
11724
11712
|
}), this.on(re, function() {
|
|
11725
11713
|
var u = e.config.startInterval;
|
|
@@ -11748,7 +11736,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
11748
11736
|
s || (s = n.isInnerRender && i.innerContainer || i.root), s.insertAdjacentHTML("afterbegin", '<div class="xgplayer-dynamic-bg" data-index="'.concat(n.index, `"><canvas>
|
|
11749
11737
|
</canvas><xgmask></xgmask></div>`)), this.root = s.children[0], this.canvas = this.find("canvas"), this.canvasFilter || (this.canvas.style.filter = n.filter, this.canvas.style.webkitFilter = n.filter), this.mask = this.find("xgmask"), n.addMask && (this.mask.style.background = n.maskBg), this.canvasCtx = this.canvas.getContext("2d");
|
|
11750
11738
|
} catch (l) {
|
|
11751
|
-
|
|
11739
|
+
O.logError("plugin:DynamicBg", l);
|
|
11752
11740
|
}
|
|
11753
11741
|
}
|
|
11754
11742
|
}, {
|
|
@@ -11791,7 +11779,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
11791
11779
|
key: "_checkIfCanStart",
|
|
11792
11780
|
value: function() {
|
|
11793
11781
|
var e = this.config.mode;
|
|
11794
|
-
return this._isLoaded && !this.player.paused && e !==
|
|
11782
|
+
return this._isLoaded && !this.player.paused && e !== je.FIRST_FRAME && e !== je.POSTER;
|
|
11795
11783
|
}
|
|
11796
11784
|
}, {
|
|
11797
11785
|
key: "renderOnce",
|
|
@@ -11832,7 +11820,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
11832
11820
|
}
|
|
11833
11821
|
this.canvasFilter && (this.canvasCtx.filter = s.filter), this.canvasCtx.drawImage(e, n.x, n.y, n.rwidth, n.rheight);
|
|
11834
11822
|
} catch (p) {
|
|
11835
|
-
|
|
11823
|
+
O.logError("plugin:DynamicBg", p);
|
|
11836
11824
|
}
|
|
11837
11825
|
}
|
|
11838
11826
|
}, {
|
|
@@ -11870,7 +11858,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
11870
11858
|
}, {
|
|
11871
11859
|
key: "isSupport",
|
|
11872
11860
|
get: function() {
|
|
11873
|
-
return typeof at == "boolean" || (at =
|
|
11861
|
+
return typeof at == "boolean" || (at = Sa()), at;
|
|
11874
11862
|
}
|
|
11875
11863
|
}, {
|
|
11876
11864
|
key: "supportCanvasFilter",
|
|
@@ -11878,7 +11866,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
11878
11866
|
return !(R.browser === "safari" || R.browser === "firefox");
|
|
11879
11867
|
}
|
|
11880
11868
|
}]), r;
|
|
11881
|
-
}(U),
|
|
11869
|
+
}(U), Pa = {
|
|
11882
11870
|
LANG: "zh-cn",
|
|
11883
11871
|
TEXT: {
|
|
11884
11872
|
ERROR_TYPES: {
|
|
@@ -11953,9 +11941,9 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
11953
11941
|
FORWARD: "快进中",
|
|
11954
11942
|
LIVE_TIP: "直播"
|
|
11955
11943
|
}
|
|
11956
|
-
}, Je = "info", Bt = hn,
|
|
11957
|
-
|
|
11958
|
-
var o =
|
|
11944
|
+
}, Je = "info", Bt = hn, Ia = /* @__PURE__ */ function(a) {
|
|
11945
|
+
x(r, a);
|
|
11946
|
+
var o = P(r);
|
|
11959
11947
|
function r() {
|
|
11960
11948
|
var t;
|
|
11961
11949
|
T(this, r);
|
|
@@ -12098,8 +12086,8 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
12098
12086
|
}
|
|
12099
12087
|
}]), r;
|
|
12100
12088
|
}(xe), kn = /* @__PURE__ */ function(a) {
|
|
12101
|
-
|
|
12102
|
-
var o =
|
|
12089
|
+
x(r, a);
|
|
12090
|
+
var o = P(r);
|
|
12103
12091
|
function r() {
|
|
12104
12092
|
var t;
|
|
12105
12093
|
T(this, r);
|
|
@@ -12187,9 +12175,9 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
|
|
|
12187
12175
|
}]), r;
|
|
12188
12176
|
}(U);
|
|
12189
12177
|
kn.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
12190
|
-
var
|
|
12191
|
-
|
|
12192
|
-
var o =
|
|
12178
|
+
var Aa = /* @__PURE__ */ function(a) {
|
|
12179
|
+
x(r, a);
|
|
12180
|
+
var o = P(r);
|
|
12193
12181
|
function r() {
|
|
12194
12182
|
var t;
|
|
12195
12183
|
T(this, r);
|
|
@@ -12233,16 +12221,16 @@ var La = /* @__PURE__ */ function(a) {
|
|
|
12233
12221
|
};
|
|
12234
12222
|
}
|
|
12235
12223
|
}]), r;
|
|
12236
|
-
}(U),
|
|
12237
|
-
|
|
12238
|
-
var o =
|
|
12224
|
+
}(U), We = "cdn", lt = ["cdn"], La = /* @__PURE__ */ function(a) {
|
|
12225
|
+
x(r, a);
|
|
12226
|
+
var o = P(r);
|
|
12239
12227
|
function r() {
|
|
12240
12228
|
var t;
|
|
12241
12229
|
T(this, r);
|
|
12242
12230
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12243
12231
|
i[n] = arguments[n];
|
|
12244
12232
|
return t = o.call.apply(o, [this].concat(i)), y(v(t), "getSpeed", function() {
|
|
12245
|
-
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
12233
|
+
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : We;
|
|
12246
12234
|
if (!t.speedListCache || !t.speedListCache[s] || t.speedListCache[s].length <= 0)
|
|
12247
12235
|
return 0;
|
|
12248
12236
|
var l = 0;
|
|
@@ -12256,7 +12244,7 @@ var La = /* @__PURE__ */ function(a) {
|
|
|
12256
12244
|
t.speedListCache[s] = [];
|
|
12257
12245
|
});
|
|
12258
12246
|
}), y(v(t), "_onRealSpeedChange", function(s) {
|
|
12259
|
-
s.speed && t.appendList(s.speed, s.type ||
|
|
12247
|
+
s.speed && t.appendList(s.speed, s.type || We);
|
|
12260
12248
|
}), y(v(t), "testSpeed", function() {
|
|
12261
12249
|
if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
|
|
12262
12250
|
var s = t.config, l = s.url, u = s.loadSize, c = s.testCnt, h = s.testTimeStep, d = l + (l.indexOf("?") < 0 ? "?testst=" : "&testst=") + Date.now();
|
|
@@ -12281,17 +12269,17 @@ var La = /* @__PURE__ */ function(a) {
|
|
|
12281
12269
|
}
|
|
12282
12270
|
}
|
|
12283
12271
|
}), y(v(t), "appendList", function(s) {
|
|
12284
|
-
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
12272
|
+
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : We;
|
|
12285
12273
|
if (!(!t.speedListCache || !t.speedListCache[l])) {
|
|
12286
12274
|
var u = t.config.saveSpeedMax;
|
|
12287
12275
|
t.speedListCache[l].length >= u && t.speedListCache[l].shift(), t.speedListCache[l].push(s);
|
|
12288
12276
|
var c = v(t), h = c.player;
|
|
12289
|
-
h && (l ===
|
|
12277
|
+
h && (l === We ? h.realTimeSpeed = s : h[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
|
|
12290
12278
|
}
|
|
12291
12279
|
}), y(v(t), "updateSpeed", function() {
|
|
12292
|
-
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
12280
|
+
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : We, l = t.getSpeed(s), u = v(t), c = u.player;
|
|
12293
12281
|
if (c)
|
|
12294
|
-
if (s ===
|
|
12282
|
+
if (s === We)
|
|
12295
12283
|
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(Gt, {
|
|
12296
12284
|
speed: l,
|
|
12297
12285
|
realTimeSpeed: c.realTimeSpeed
|
|
@@ -12359,9 +12347,9 @@ var La = /* @__PURE__ */ function(a) {
|
|
|
12359
12347
|
};
|
|
12360
12348
|
}
|
|
12361
12349
|
}]), r;
|
|
12362
|
-
}(U),
|
|
12363
|
-
|
|
12364
|
-
var o =
|
|
12350
|
+
}(U), Da = /* @__PURE__ */ function(a) {
|
|
12351
|
+
x(r, a);
|
|
12352
|
+
var o = P(r);
|
|
12365
12353
|
function r() {
|
|
12366
12354
|
return T(this, r), o.apply(this, arguments);
|
|
12367
12355
|
}
|
|
@@ -12375,9 +12363,9 @@ var La = /* @__PURE__ */ function(a) {
|
|
|
12375
12363
|
e._startTick();
|
|
12376
12364
|
}), this.on(qe, function() {
|
|
12377
12365
|
e._stopTick();
|
|
12378
|
-
}), this.on(
|
|
12366
|
+
}), this.on(Fe, function() {
|
|
12379
12367
|
e._stopTick();
|
|
12380
|
-
}), this.on(
|
|
12368
|
+
}), this.on(Me, function() {
|
|
12381
12369
|
e._stopTick();
|
|
12382
12370
|
}));
|
|
12383
12371
|
}
|
|
@@ -12469,43 +12457,43 @@ var La = /* @__PURE__ */ function(a) {
|
|
|
12469
12457
|
}
|
|
12470
12458
|
}]), r;
|
|
12471
12459
|
}(U);
|
|
12472
|
-
Ke.use(
|
|
12473
|
-
var
|
|
12460
|
+
Ke.use(Pa);
|
|
12461
|
+
var Ra = /* @__PURE__ */ E(function a(o, r) {
|
|
12474
12462
|
var t, e, i;
|
|
12475
12463
|
T(this, a);
|
|
12476
|
-
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [
|
|
12477
|
-
this.plugins = [
|
|
12464
|
+
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [qo, Vo, Ta, ba, Xo], u = [].concat(l, [jo, Yo, ia, aa, pa, va, fa, ha, ea, sa]), c = [bo, wo, Eo, Ho, So, _a, Ca, wa, Ao];
|
|
12465
|
+
this.plugins = [Ia, Co].concat(fe(u), c, [kn, Aa]);
|
|
12478
12466
|
var h = n ? "mobile" : R.device;
|
|
12479
12467
|
switch (h) {
|
|
12480
12468
|
case "pc":
|
|
12481
|
-
(t = this.plugins).push.apply(t, [Mi, Ft, Bi,
|
|
12469
|
+
(t = this.plugins).push.apply(t, [Mi, Ft, Bi, La, Da]);
|
|
12482
12470
|
break;
|
|
12483
12471
|
case "mobile":
|
|
12484
|
-
(e = this.plugins).push.apply(e, [
|
|
12472
|
+
(e = this.plugins).push.apply(e, [Mo]);
|
|
12485
12473
|
break;
|
|
12486
12474
|
default:
|
|
12487
12475
|
(i = this.plugins).push.apply(i, [Mi, Ft, Bi]);
|
|
12488
12476
|
}
|
|
12489
|
-
(R.os.isIpad || h === "pc") && this.plugins.push(
|
|
12477
|
+
(R.os.isIpad || h === "pc") && this.plugins.push(xa), R.os.isIpad && this.plugins.push(Ft), this.ignores = [], this.i18n = [];
|
|
12490
12478
|
}), he = /* @__PURE__ */ function(a) {
|
|
12491
|
-
|
|
12492
|
-
var o =
|
|
12479
|
+
x(r, a);
|
|
12480
|
+
var o = P(r);
|
|
12493
12481
|
function r() {
|
|
12494
12482
|
return T(this, r), o.apply(this, arguments);
|
|
12495
12483
|
}
|
|
12496
12484
|
return E(r);
|
|
12497
12485
|
}(Tt);
|
|
12498
|
-
y(he, "defaultPreset",
|
|
12486
|
+
y(he, "defaultPreset", Ra);
|
|
12499
12487
|
y(he, "Util", f);
|
|
12500
12488
|
y(he, "Sniffer", R);
|
|
12501
12489
|
y(he, "Errors", ct);
|
|
12502
|
-
y(he, "Events",
|
|
12490
|
+
y(he, "Events", Ks);
|
|
12503
12491
|
y(he, "Plugin", U);
|
|
12504
12492
|
y(he, "BasePlugin", xe);
|
|
12505
12493
|
y(he, "I18N", Ke);
|
|
12506
12494
|
y(he, "STATE_CLASS", k);
|
|
12507
12495
|
y(he, "InstManager", mn);
|
|
12508
|
-
const
|
|
12496
|
+
const Oa = ["id"], Fa = /* @__PURE__ */ se({
|
|
12509
12497
|
name: "ElImageViewer",
|
|
12510
12498
|
__name: "Player",
|
|
12511
12499
|
props: /* @__PURE__ */ ut({
|
|
@@ -12569,15 +12557,15 @@ const Fa = ["id"], Ma = /* @__PURE__ */ se({
|
|
|
12569
12557
|
});
|
|
12570
12558
|
}), (g, p) => {
|
|
12571
12559
|
const m = Ee("el-icon");
|
|
12572
|
-
return u.value ? (
|
|
12560
|
+
return u.value ? (I(), ce(En, {
|
|
12573
12561
|
key: 0,
|
|
12574
12562
|
to: "body"
|
|
12575
12563
|
}, [
|
|
12576
|
-
|
|
12564
|
+
Q(Sn, {
|
|
12577
12565
|
name: "viewer-fade",
|
|
12578
12566
|
appear: ""
|
|
12579
12567
|
}, {
|
|
12580
|
-
default:
|
|
12568
|
+
default: X(() => [
|
|
12581
12569
|
S(
|
|
12582
12570
|
"div",
|
|
12583
12571
|
{
|
|
@@ -12603,7 +12591,7 @@ const Fa = ["id"], Ma = /* @__PURE__ */ se({
|
|
|
12603
12591
|
class: te(z(h).e("canvas"))
|
|
12604
12592
|
},
|
|
12605
12593
|
[
|
|
12606
|
-
S("div", { id: z(c) }, null, 8,
|
|
12594
|
+
S("div", { id: z(c) }, null, 8, Oa),
|
|
12607
12595
|
ue(" CLOSE "),
|
|
12608
12596
|
S(
|
|
12609
12597
|
"span",
|
|
@@ -12612,9 +12600,9 @@ const Fa = ["id"], Ma = /* @__PURE__ */ se({
|
|
|
12612
12600
|
onClick: d
|
|
12613
12601
|
},
|
|
12614
12602
|
[
|
|
12615
|
-
|
|
12616
|
-
default:
|
|
12617
|
-
|
|
12603
|
+
Q(m, { onClick: d }, {
|
|
12604
|
+
default: X(() => [
|
|
12605
|
+
Q(z(Hr))
|
|
12618
12606
|
]),
|
|
12619
12607
|
_: 1
|
|
12620
12608
|
/* STABLE */
|
|
@@ -12640,7 +12628,7 @@ const Fa = ["id"], Ma = /* @__PURE__ */ se({
|
|
|
12640
12628
|
};
|
|
12641
12629
|
}
|
|
12642
12630
|
});
|
|
12643
|
-
const
|
|
12631
|
+
const Ma = /* @__PURE__ */ it(Fa, [["__scopeId", "data-v-b301aa7d"]]), Na = Pe(Ma), Ba = /* @__PURE__ */ se({
|
|
12644
12632
|
__name: "IkDescription",
|
|
12645
12633
|
props: {
|
|
12646
12634
|
showIcon: {
|
|
@@ -12713,25 +12701,25 @@ const Na = /* @__PURE__ */ it(Ma, [["__scopeId", "data-v-b301aa7d"]]), Ba = Pe(N
|
|
|
12713
12701
|
}, t = K(() => typeof o.labelWidth == "number" ? `${o.labelWidth}px` : o.labelWidth);
|
|
12714
12702
|
return (e, i) => {
|
|
12715
12703
|
const n = Ee("el-descriptions-item"), s = Ee("el-descriptions");
|
|
12716
|
-
return
|
|
12704
|
+
return I(), ce(
|
|
12717
12705
|
s,
|
|
12718
12706
|
Ut({ class: "margin-top" }, { ...a.titleProps, ...o }),
|
|
12719
12707
|
{
|
|
12720
|
-
extra:
|
|
12708
|
+
extra: X(() => [
|
|
12721
12709
|
pe(e.$slots, "extra", {}, void 0, !0)
|
|
12722
12710
|
]),
|
|
12723
|
-
default:
|
|
12724
|
-
(
|
|
12725
|
-
|
|
12711
|
+
default: X(() => [
|
|
12712
|
+
(I(!0), M(
|
|
12713
|
+
Ge,
|
|
12726
12714
|
null,
|
|
12727
|
-
Ht(a.listData, (l) => (
|
|
12715
|
+
Ht(a.listData, (l) => (I(), ce(
|
|
12728
12716
|
n,
|
|
12729
12717
|
Ut({
|
|
12730
12718
|
key: l[r.id],
|
|
12731
12719
|
ref_for: !0
|
|
12732
12720
|
}, l[r.props]),
|
|
12733
12721
|
{
|
|
12734
|
-
label:
|
|
12722
|
+
label: X(() => [
|
|
12735
12723
|
pe(e.$slots, l[r.label], {}, () => [
|
|
12736
12724
|
Ye(
|
|
12737
12725
|
_e(l[r.label]),
|
|
@@ -12740,21 +12728,21 @@ const Na = /* @__PURE__ */ it(Ma, [["__scopeId", "data-v-b301aa7d"]]), Ba = Pe(N
|
|
|
12740
12728
|
)
|
|
12741
12729
|
], !0)
|
|
12742
12730
|
]),
|
|
12743
|
-
default:
|
|
12731
|
+
default: X(() => [
|
|
12744
12732
|
pe(e.$slots, `${l[r.label]}_value`, {}, () => [
|
|
12745
12733
|
Ye(
|
|
12746
12734
|
_e(l[r.value]) + " ",
|
|
12747
12735
|
1
|
|
12748
12736
|
/* TEXT */
|
|
12749
12737
|
),
|
|
12750
|
-
l[r.tag] ? (
|
|
12738
|
+
l[r.tag] ? (I(), ce(
|
|
12751
12739
|
z(In),
|
|
12752
12740
|
{
|
|
12753
12741
|
key: 0,
|
|
12754
12742
|
size: "small"
|
|
12755
12743
|
},
|
|
12756
12744
|
{
|
|
12757
|
-
default:
|
|
12745
|
+
default: X(() => [
|
|
12758
12746
|
Ye(
|
|
12759
12747
|
_e(l[r.value].value),
|
|
12760
12748
|
1
|
|
@@ -12767,7 +12755,7 @@ const Na = /* @__PURE__ */ it(Ma, [["__scopeId", "data-v-b301aa7d"]]), Ba = Pe(N
|
|
|
12767
12755
|
1024
|
|
12768
12756
|
/* DYNAMIC_SLOTS */
|
|
12769
12757
|
)) : ue("v-if", !0),
|
|
12770
|
-
|
|
12758
|
+
Q(z(Xr), {
|
|
12771
12759
|
list: l[r.fileList],
|
|
12772
12760
|
field: a.fileField,
|
|
12773
12761
|
"load-url": a.loadUrl,
|
|
@@ -12799,8 +12787,8 @@ const Na = /* @__PURE__ */ it(Ma, [["__scopeId", "data-v-b301aa7d"]]), Ba = Pe(N
|
|
|
12799
12787
|
};
|
|
12800
12788
|
}
|
|
12801
12789
|
});
|
|
12802
|
-
const
|
|
12790
|
+
const Ha = /* @__PURE__ */ it(Ba, [["__scopeId", "data-v-a15afa30"]]), ja = Pe(Ha);
|
|
12803
12791
|
export {
|
|
12804
|
-
|
|
12805
|
-
|
|
12792
|
+
ja as IkDescriptions,
|
|
12793
|
+
ja as default
|
|
12806
12794
|
};
|