iking-web-ui-pro 0.2.25 → 0.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKPreviewFile/ik.index.es.js +168 -158
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +107 -97
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +25 -25
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +95 -85
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +211 -201
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +196 -186
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +246 -236
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +1464 -1448
- package/dist/IkUploadFile/ik.index.umd.js +57 -57
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/index.es.js +11910 -11894
- package/dist/index.umd.js +84 -84
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as le, computed as Y, openBlock as L, createElementBlock as
|
|
1
|
+
import { defineComponent as le, computed as Y, openBlock as L, createElementBlock as M, createElementVNode as S, inject as Xe, mergeModels as at, useModel as Kt, ref as Ke, reactive as kn, watch as Ui, nextTick as zi, resolveComponent as $e, Fragment as Ze, createBlock as Le, createCommentVNode as he, createVNode as J, unref as j, withCtx as de, normalizeClass as Q, normalizeStyle as oe, createTextVNode as Bt, toDisplayString as Ge, h as wn, mergeProps as bn, createSlots as Tn, renderSlot as Ie, Teleport as En, Transition as Sn, renderList as ai, withModifiers as li } from "vue";
|
|
2
2
|
import { buildUUID as Vi, ikColor as xn, paramType as Pn, ikFile as In } from "iking-utils-pro";
|
|
3
3
|
import { useNamespace as An } from "element-plus";
|
|
4
4
|
const De = (a, o) => {
|
|
@@ -620,7 +620,7 @@ const De = (a, o) => {
|
|
|
620
620
|
},
|
|
621
621
|
setup(a) {
|
|
622
622
|
const o = a, r = Y(() => o.file ? Ht(o.file, o.fields) : o.type);
|
|
623
|
-
return (t, e) => r.value === "image" ? (L(),
|
|
623
|
+
return (t, e) => r.value === "image" ? (L(), M("svg", Rn, Bn)) : r.value === "zip" ? (L(), M("svg", Hn, Vn)) : r.value === "ppt" ? (L(), M("svg", jn, Kn)) : r.value === "word" ? (L(), M("svg", $n, qn)) : r.value === "pdf" ? (L(), M("svg", Zn, er)) : r.value === "txt" ? (L(), M("svg", tr, rr)) : r.value === "audio" ? (L(), M("svg", sr, lr)) : r.value === "video" ? (L(), M("svg", ur, hr)) : r.value === "excel" ? (L(), M("svg", dr, mr)) : r.value === "exe" ? (L(), M("svg", yr, br)) : r.value === "json" ? (L(), M("svg", Tr, Pr)) : (L(), M("svg", Ir, Rr));
|
|
624
624
|
}
|
|
625
625
|
}), Fr = De(Or);
|
|
626
626
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
@@ -628,7 +628,7 @@ var Mr = /* @__PURE__ */ le({
|
|
|
628
628
|
name: "Close",
|
|
629
629
|
__name: "close",
|
|
630
630
|
setup(a) {
|
|
631
|
-
return (o, r) => (L(),
|
|
631
|
+
return (o, r) => (L(), M("svg", {
|
|
632
632
|
xmlns: "http://www.w3.org/2000/svg",
|
|
633
633
|
viewBox: "0 0 1024 1024"
|
|
634
634
|
}, [
|
|
@@ -760,11 +760,11 @@ const yt = (a, o) => {
|
|
|
760
760
|
return (u, c) => {
|
|
761
761
|
var d, g, p;
|
|
762
762
|
const h = $e("el-image-viewer");
|
|
763
|
-
return r.value ? (L(),
|
|
763
|
+
return r.value ? (L(), M(
|
|
764
764
|
Ze,
|
|
765
765
|
{ key: 0 },
|
|
766
766
|
[
|
|
767
|
-
(d = i.value) != null && d.url && n.image ? (L(),
|
|
767
|
+
(d = i.value) != null && d.url && n.image ? (L(), Le(h, {
|
|
768
768
|
key: 0,
|
|
769
769
|
onClose: c[0] || (c[0] = (m) => l()),
|
|
770
770
|
ref: "previewImgRef",
|
|
@@ -773,12 +773,12 @@ const yt = (a, o) => {
|
|
|
773
773
|
}, null, 8, ["url-list"])) : he("v-if", !0),
|
|
774
774
|
he(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
775
775
|
he(" 文档类 "),
|
|
776
|
-
|
|
776
|
+
J(j(xa), {
|
|
777
777
|
modelValue: n.video,
|
|
778
778
|
"onUpdate:modelValue": c[1] || (c[1] = (m) => n.video = m),
|
|
779
779
|
url: (p = i.value) == null ? void 0 : p.url
|
|
780
780
|
}, null, 8, ["modelValue", "url"]),
|
|
781
|
-
|
|
781
|
+
J(j(ts), {
|
|
782
782
|
modelValue: n.office,
|
|
783
783
|
"onUpdate:modelValue": c[2] || (c[2] = (m) => n.office = m),
|
|
784
784
|
draggable: "",
|
|
@@ -796,7 +796,7 @@ const yt = (a, o) => {
|
|
|
796
796
|
default: de(() => {
|
|
797
797
|
var m;
|
|
798
798
|
return [
|
|
799
|
-
|
|
799
|
+
J(j(cs), {
|
|
800
800
|
"config-options": e.value,
|
|
801
801
|
"document-server-url": ((m = a.onlyOfficeConfig) == null ? void 0 : m.serverUrl) || a.onlyofficeServer
|
|
802
802
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -883,12 +883,12 @@ const zr = De(Ur), Vr = {
|
|
|
883
883
|
});
|
|
884
884
|
return (i, n) => {
|
|
885
885
|
const s = $e("el-tooltip"), l = $e("el-button");
|
|
886
|
-
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (L(),
|
|
887
|
-
r.value.notip || !r.value.title ? (L(),
|
|
886
|
+
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (L(), M("span", Vr, [
|
|
887
|
+
r.value.notip || !r.value.title ? (L(), M(
|
|
888
888
|
"i",
|
|
889
889
|
{
|
|
890
890
|
key: 0,
|
|
891
|
-
class:
|
|
891
|
+
class: Q(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
892
892
|
[i.name]: t.value === "unocss",
|
|
893
893
|
"show-bg": r.value.showBg || r.value.bg,
|
|
894
894
|
default: r.value.size === "default",
|
|
@@ -905,29 +905,29 @@ const zr = De(Ur), Vr = {
|
|
|
905
905
|
},
|
|
906
906
|
[
|
|
907
907
|
he(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
908
|
-
t.value === "iksig" ? (L(),
|
|
908
|
+
t.value === "iksig" ? (L(), M(
|
|
909
909
|
"i",
|
|
910
910
|
{
|
|
911
911
|
key: 0,
|
|
912
|
-
class:
|
|
912
|
+
class: Q(`iksig ${r.value.name}`),
|
|
913
913
|
style: oe(e.value)
|
|
914
914
|
},
|
|
915
915
|
null,
|
|
916
916
|
6
|
|
917
917
|
/* CLASS, STYLE */
|
|
918
|
-
)) : t.value === "svg" ? (L(),
|
|
918
|
+
)) : t.value === "svg" ? (L(), M("svg", jr, [
|
|
919
919
|
S("use", {
|
|
920
920
|
"xlink:href": `#${r.value.name}`
|
|
921
921
|
}, null, 8, Wr)
|
|
922
|
-
])) : t.value === "img" ? (L(),
|
|
922
|
+
])) : t.value === "img" ? (L(), M("img", {
|
|
923
923
|
key: 2,
|
|
924
924
|
src: r.value.name,
|
|
925
925
|
class: "h-[1em] w-[1em]"
|
|
926
|
-
}, null, 8, Gr)) : (L(),
|
|
926
|
+
}, null, 8, Gr)) : (L(), M(
|
|
927
927
|
"i",
|
|
928
928
|
{
|
|
929
929
|
key: 3,
|
|
930
|
-
class:
|
|
930
|
+
class: Q(r.value.name),
|
|
931
931
|
style: oe(e.value)
|
|
932
932
|
},
|
|
933
933
|
null,
|
|
@@ -937,7 +937,7 @@ const zr = De(Ur), Vr = {
|
|
|
937
937
|
],
|
|
938
938
|
6
|
|
939
939
|
/* CLASS, STYLE */
|
|
940
|
-
)) : (L(),
|
|
940
|
+
)) : (L(), Le(s, {
|
|
941
941
|
key: 1,
|
|
942
942
|
content: r.value.title,
|
|
943
943
|
placement: "top"
|
|
@@ -946,7 +946,7 @@ const zr = De(Ur), Vr = {
|
|
|
946
946
|
S(
|
|
947
947
|
"i",
|
|
948
948
|
{
|
|
949
|
-
class:
|
|
949
|
+
class: Q(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
950
950
|
[i.name]: t.value === "unocss",
|
|
951
951
|
"show-bg": r.value.showBg || r.value.bg,
|
|
952
952
|
default: r.value.size === "default",
|
|
@@ -961,29 +961,29 @@ const zr = De(Ur), Vr = {
|
|
|
961
961
|
style: oe(e.value)
|
|
962
962
|
},
|
|
963
963
|
[
|
|
964
|
-
t.value === "iksig" ? (L(),
|
|
964
|
+
t.value === "iksig" ? (L(), M(
|
|
965
965
|
"i",
|
|
966
966
|
{
|
|
967
967
|
key: 0,
|
|
968
|
-
class:
|
|
968
|
+
class: Q(`iksig ${r.value.name}`),
|
|
969
969
|
style: oe(e.value)
|
|
970
970
|
},
|
|
971
971
|
null,
|
|
972
972
|
6
|
|
973
973
|
/* CLASS, STYLE */
|
|
974
|
-
)) : t.value === "svg" ? (L(),
|
|
974
|
+
)) : t.value === "svg" ? (L(), M("svg", Kr, [
|
|
975
975
|
S("use", {
|
|
976
976
|
"xlink:href": `#${r.value.name}`
|
|
977
977
|
}, null, 8, $r)
|
|
978
|
-
])) : t.value === "img" ? (L(),
|
|
978
|
+
])) : t.value === "img" ? (L(), M("img", {
|
|
979
979
|
key: 2,
|
|
980
980
|
src: r.value.name,
|
|
981
981
|
class: "h-[1em] w-[1em]"
|
|
982
|
-
}, null, 8, Yr)) : (L(),
|
|
982
|
+
}, null, 8, Yr)) : (L(), M(
|
|
983
983
|
"i",
|
|
984
984
|
{
|
|
985
985
|
key: 3,
|
|
986
|
-
class:
|
|
986
|
+
class: Q(r.value.name),
|
|
987
987
|
style: oe(e.value)
|
|
988
988
|
},
|
|
989
989
|
null,
|
|
@@ -998,7 +998,7 @@ const zr = De(Ur), Vr = {
|
|
|
998
998
|
_: 1
|
|
999
999
|
/* STABLE */
|
|
1000
1000
|
}, 8, ["content"]))
|
|
1001
|
-
])) : (L(),
|
|
1001
|
+
])) : (L(), Le(l, {
|
|
1002
1002
|
key: 1,
|
|
1003
1003
|
type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
|
|
1004
1004
|
}, {
|
|
@@ -1028,15 +1028,25 @@ const qr = /* @__PURE__ */ yt(Xr, [["__scopeId", "data-v-52806adf"]]), je = De(q
|
|
|
1028
1028
|
}
|
|
1029
1029
|
},
|
|
1030
1030
|
setup(a) {
|
|
1031
|
-
return (o, r) => (L(),
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1031
|
+
return (o, r) => (L(), M(
|
|
1032
|
+
"div",
|
|
1033
|
+
{
|
|
1034
|
+
class: Q({ "exit-main-page-maximize": a.showBg && a.fullscreen })
|
|
1035
|
+
},
|
|
1036
|
+
[
|
|
1037
|
+
J(j(je), {
|
|
1038
|
+
name: "iksvg_guanbidanchuang",
|
|
1039
|
+
title: "关闭",
|
|
1040
|
+
size: 20,
|
|
1041
|
+
error: ""
|
|
1042
|
+
})
|
|
1043
|
+
],
|
|
1044
|
+
2
|
|
1045
|
+
/* CLASS */
|
|
1046
|
+
));
|
|
1037
1047
|
}
|
|
1038
1048
|
});
|
|
1039
|
-
const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-
|
|
1049
|
+
const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-da39e979"]]), Qr = { class: "base-header" }, es = /* @__PURE__ */ le({
|
|
1040
1050
|
__name: "IkBaseDialog",
|
|
1041
1051
|
props: /* @__PURE__ */ at({
|
|
1042
1052
|
title: { default: "" },
|
|
@@ -1069,7 +1079,7 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-e27fb022"]]), Qr = { cl
|
|
|
1069
1079
|
});
|
|
1070
1080
|
return (n, s) => {
|
|
1071
1081
|
const l = $e("el-dialog");
|
|
1072
|
-
return L(),
|
|
1082
|
+
return L(), Le(l, bn({
|
|
1073
1083
|
modelValue: r.value,
|
|
1074
1084
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
|
|
1075
1085
|
}, n.$attrs, {
|
|
@@ -1079,7 +1089,7 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-e27fb022"]]), Qr = { cl
|
|
|
1079
1089
|
"modal-class": "baseDialog"
|
|
1080
1090
|
}), Tn({
|
|
1081
1091
|
icon: de(() => [
|
|
1082
|
-
|
|
1092
|
+
Ie(n.$slots, "title", {}, () => [
|
|
1083
1093
|
Bt(
|
|
1084
1094
|
Ge(n.title),
|
|
1085
1095
|
1
|
|
@@ -1089,7 +1099,7 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-e27fb022"]]), Qr = { cl
|
|
|
1089
1099
|
]),
|
|
1090
1100
|
header: de(() => [
|
|
1091
1101
|
S("div", Qr, [
|
|
1092
|
-
|
|
1102
|
+
Ie(n.$slots, "header", {}, () => [
|
|
1093
1103
|
Bt(
|
|
1094
1104
|
Ge(n.title),
|
|
1095
1105
|
1
|
|
@@ -1097,7 +1107,7 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-e27fb022"]]), Qr = { cl
|
|
|
1097
1107
|
)
|
|
1098
1108
|
])
|
|
1099
1109
|
]),
|
|
1100
|
-
n.$attrs.showClose ? (L(),
|
|
1110
|
+
n.$attrs.showClose ? (L(), Le(j(je), {
|
|
1101
1111
|
key: 0,
|
|
1102
1112
|
onClick: e,
|
|
1103
1113
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
@@ -1106,7 +1116,7 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-e27fb022"]]), Qr = { cl
|
|
|
1106
1116
|
}, null, 8, ["name", "title"])) : he("v-if", !0)
|
|
1107
1117
|
]),
|
|
1108
1118
|
default: de(() => [
|
|
1109
|
-
|
|
1119
|
+
Ie(n.$slots, "default")
|
|
1110
1120
|
]),
|
|
1111
1121
|
_: 2
|
|
1112
1122
|
/* DYNAMIC */
|
|
@@ -1114,7 +1124,7 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-e27fb022"]]), Qr = { cl
|
|
|
1114
1124
|
n.$slots.footer ? {
|
|
1115
1125
|
name: "footer",
|
|
1116
1126
|
fn: de(() => [
|
|
1117
|
-
|
|
1127
|
+
Ie(n.$slots, "footer")
|
|
1118
1128
|
]),
|
|
1119
1129
|
key: "0"
|
|
1120
1130
|
} : void 0
|
|
@@ -1425,7 +1435,7 @@ var ss = function(a, o) {
|
|
|
1425
1435
|
});
|
|
1426
1436
|
const os = ["id"];
|
|
1427
1437
|
function as(a, o, r, t, e, i) {
|
|
1428
|
-
return L(),
|
|
1438
|
+
return L(), M("div", { id: a.id }, null, 8, os);
|
|
1429
1439
|
}
|
|
1430
1440
|
Yt.render = as;
|
|
1431
1441
|
Yt.__file = "src/components/DocumentEditor.vue";
|
|
@@ -1458,13 +1468,13 @@ const ls = /* @__PURE__ */ le({
|
|
|
1458
1468
|
}), t = () => {
|
|
1459
1469
|
console.info("文档加载完成", o.configOptions);
|
|
1460
1470
|
};
|
|
1461
|
-
return (e, i) => (L(),
|
|
1471
|
+
return (e, i) => (L(), M(
|
|
1462
1472
|
"div",
|
|
1463
1473
|
{
|
|
1464
1474
|
style: oe({ height: o.officeHeight })
|
|
1465
1475
|
},
|
|
1466
1476
|
[
|
|
1467
|
-
|
|
1477
|
+
J(j(Yt), {
|
|
1468
1478
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1469
1479
|
ref: "editorRef",
|
|
1470
1480
|
"document-server-url": a.documentServerUrl,
|
|
@@ -2249,11 +2259,11 @@ function ws(a, o, r) {
|
|
|
2249
2259
|
throw new TypeError("Expected a function");
|
|
2250
2260
|
o = +o || 0, Yi(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, o) : i, d = "trailing" in r ? !!r.trailing : d);
|
|
2251
2261
|
function p(H) {
|
|
2252
|
-
var
|
|
2253
|
-
return t = e = void 0, u = H, n = a.apply(re,
|
|
2262
|
+
var ee = t, re = e;
|
|
2263
|
+
return t = e = void 0, u = H, n = a.apply(re, ee), n;
|
|
2254
2264
|
}
|
|
2255
|
-
function m(H,
|
|
2256
|
-
return g ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(H)) : setTimeout(H,
|
|
2265
|
+
function m(H, ee) {
|
|
2266
|
+
return g ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(H)) : setTimeout(H, ee);
|
|
2257
2267
|
}
|
|
2258
2268
|
function _(H) {
|
|
2259
2269
|
if (g)
|
|
@@ -2264,12 +2274,12 @@ function ws(a, o, r) {
|
|
|
2264
2274
|
return u = H, s = m(B, o), c ? p(H) : n;
|
|
2265
2275
|
}
|
|
2266
2276
|
function b(H) {
|
|
2267
|
-
var
|
|
2277
|
+
var ee = H - l, re = H - u, se = o - ee;
|
|
2268
2278
|
return h ? Math.min(se, i - re) : se;
|
|
2269
2279
|
}
|
|
2270
2280
|
function w(H) {
|
|
2271
|
-
var
|
|
2272
|
-
return l === void 0 ||
|
|
2281
|
+
var ee = H - l, re = H - u;
|
|
2282
|
+
return l === void 0 || ee >= o || ee < 0 || h && re >= i;
|
|
2273
2283
|
}
|
|
2274
2284
|
function B() {
|
|
2275
2285
|
var H = Date.now();
|
|
@@ -2290,9 +2300,9 @@ function ws(a, o, r) {
|
|
|
2290
2300
|
return s !== void 0;
|
|
2291
2301
|
}
|
|
2292
2302
|
function G() {
|
|
2293
|
-
for (var H = Date.now(),
|
|
2294
|
-
se[
|
|
2295
|
-
if (t = se, e = this, l = H,
|
|
2303
|
+
for (var H = Date.now(), ee = w(H), re = arguments.length, se = new Array(re), Se = 0; Se < re; Se++)
|
|
2304
|
+
se[Se] = arguments[Se];
|
|
2305
|
+
if (t = se, e = this, l = H, ee) {
|
|
2296
2306
|
if (s === void 0)
|
|
2297
2307
|
return C(l);
|
|
2298
2308
|
if (h)
|
|
@@ -2483,7 +2493,7 @@ var di = {
|
|
|
2483
2493
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
2484
2494
|
}
|
|
2485
2495
|
}
|
|
2486
|
-
), ne = "play", qt = "playing", Re = "ended", Ye = "pause", tt = "error", _t = "seeking", me = "seeked", ie = "timeupdate", it = "waiting", ve = "canplay", xs = "canplaythrough",
|
|
2496
|
+
), ne = "play", qt = "playing", Re = "ended", Ye = "pause", tt = "error", _t = "seeking", me = "seeked", ie = "timeupdate", it = "waiting", ve = "canplay", xs = "canplaythrough", Te = "durationchange", Xi = "volumechange", ye = "loadeddata", Ps = "loadedmetadata", qi = "ratechange", Zi = "progress", Zt = "loadstart", Oe = "emptied", Is = "stalled", As = "suspend", Ls = "abort", Ds = "bufferedChange", Jt = "focus", Ji = "blur", Qt = "ready", Qi = "urlNull", Ae = "autoplay_started", ei = "autoplay_was_prevented", Ct = "complete", ut = "replay", ti = "destroy", kt = "urlchange", jt = "download_speed_change", en = "leaveplayer", tn = "enterplayer", nn = "loading", ge = "fullscreen_change", ct = "cssFullscreen_change", ft = "mini_state_change", ii = "definition_change", Rs = "before_definition_change", Wt = "after_definition_change", Os = "SEI_PARSED", Fs = "retry", we = "video_resize", Gt = "pip_change", rn = "rotate", sn = "screenShot", ht = "playnext", on = "shortcut", an = "xglog", dt = "user_action", wt = "reset", ln = "source_error", un = "source_success", Ms = "switch_subtitle", cn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], fn = {
|
|
2487
2497
|
STATS_INFO: "stats_info",
|
|
2488
2498
|
STATS_DOWNLOAD: "stats_download",
|
|
2489
2499
|
STATS_RESET: "stats_reset"
|
|
@@ -2493,7 +2503,7 @@ const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2493
2503
|
ABORT: Ls,
|
|
2494
2504
|
AFTER_DEFINITION_CHANGE: Wt,
|
|
2495
2505
|
AUTOPLAY_PREVENTED: ei,
|
|
2496
|
-
AUTOPLAY_STARTED:
|
|
2506
|
+
AUTOPLAY_STARTED: Ae,
|
|
2497
2507
|
BEFORE_DEFINITION_CHANGE: Rs,
|
|
2498
2508
|
BUFFER_CHANGE: Ds,
|
|
2499
2509
|
CANPLAY: ve,
|
|
@@ -2503,7 +2513,7 @@ const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2503
2513
|
DEFINITION_CHANGE: ii,
|
|
2504
2514
|
DESTROY: ti,
|
|
2505
2515
|
DOWNLOAD_SPEED_CHANGE: jt,
|
|
2506
|
-
DURATION_CHANGE:
|
|
2516
|
+
DURATION_CHANGE: Te,
|
|
2507
2517
|
EMPTIED: Oe,
|
|
2508
2518
|
ENDED: Re,
|
|
2509
2519
|
ENTER_PLAYER: tn,
|
|
@@ -2546,7 +2556,7 @@ const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2546
2556
|
URL_NULL: Qi,
|
|
2547
2557
|
USER_ACTION: dt,
|
|
2548
2558
|
VIDEO_EVENTS: cn,
|
|
2549
|
-
VIDEO_RESIZE:
|
|
2559
|
+
VIDEO_RESIZE: we,
|
|
2550
2560
|
VOLUME_CHANGE: Xi,
|
|
2551
2561
|
WAITING: it,
|
|
2552
2562
|
XGLOG: an
|
|
@@ -3085,7 +3095,7 @@ var Hs = /* @__PURE__ */ function(a) {
|
|
|
3085
3095
|
t.clear();
|
|
3086
3096
|
}
|
|
3087
3097
|
}]), a;
|
|
3088
|
-
}(), vi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], mi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], yi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"],
|
|
3098
|
+
}(), vi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], mi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], yi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Pe = "data-xgplayerid";
|
|
3089
3099
|
function nt(a, o, r) {
|
|
3090
3100
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
3091
3101
|
e[i - 3] = arguments[i];
|
|
@@ -3186,7 +3196,7 @@ function pe(a, o, r) {
|
|
|
3186
3196
|
function xt(a, o) {
|
|
3187
3197
|
O.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
|
|
3188
3198
|
}
|
|
3189
|
-
var
|
|
3199
|
+
var be = /* @__PURE__ */ function() {
|
|
3190
3200
|
function a(o) {
|
|
3191
3201
|
T(this, a), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(o), dn(this), this.__args = o, this.__events = {}, this.__onceEvents = {}, this.config = o.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(o);
|
|
3192
3202
|
}
|
|
@@ -3760,7 +3770,7 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
3760
3770
|
return V;
|
|
3761
3771
|
}
|
|
3762
3772
|
}]), r;
|
|
3763
|
-
}(
|
|
3773
|
+
}(be), Qs = /* @__PURE__ */ function() {
|
|
3764
3774
|
function a() {
|
|
3765
3775
|
var o = this;
|
|
3766
3776
|
if (T(this, a), y(this, "__trigger", function(r) {
|
|
@@ -3782,7 +3792,7 @@ var U = /* @__PURE__ */ function(a) {
|
|
|
3782
3792
|
value: function(r, t) {
|
|
3783
3793
|
if (this.observer) {
|
|
3784
3794
|
this.observer && this.observer.observe(r);
|
|
3785
|
-
for (var e = r.getAttribute(
|
|
3795
|
+
for (var e = r.getAttribute(Pe), i = this.__handlers, n = -1, s = 0; s < i.length; s++)
|
|
3786
3796
|
i[s] && r === i[s].target && (n = s);
|
|
3787
3797
|
n > -1 ? this.__handlers[n].handler = t : this.__handlers.push({
|
|
3788
3798
|
target: r,
|
|
@@ -4457,7 +4467,7 @@ var We = {
|
|
|
4457
4467
|
extend: so,
|
|
4458
4468
|
use: ni,
|
|
4459
4469
|
init: oo
|
|
4460
|
-
},
|
|
4470
|
+
}, N = {
|
|
4461
4471
|
INITIAL: 1,
|
|
4462
4472
|
READY: 2,
|
|
4463
4473
|
ATTACHING: 3,
|
|
@@ -4591,7 +4601,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4591
4601
|
to: !1
|
|
4592
4602
|
}]
|
|
4593
4603
|
});
|
|
4594
|
-
var b = Es(C, e.playerId,
|
|
4604
|
+
var b = Es(C, e.playerId, Pe);
|
|
4595
4605
|
if (m || C && (C === e._fullscreenEl || b))
|
|
4596
4606
|
_(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, k.FULLSCREEN), e.emit(ge, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
4597
4607
|
else if (e.fullscreen) {
|
|
@@ -4618,7 +4628,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4618
4628
|
s >= 0 && n && (e.config.presets[s] = n);
|
|
4619
4629
|
} else
|
|
4620
4630
|
n && e.config.presets.push(n);
|
|
4621
|
-
e.userTimer = null, e.waitTimer = null, e.handleSource = !0, e._state =
|
|
4631
|
+
e.userTimer = null, e.waitTimer = null, e.handleSource = !0, e._state = N.INITIAL, e.isError = !1, e._hasStart = !1, e.isSeeking = !1, e.isCanplay = !1, e._useAutoplay = !1, e.__startTime = -1, e.rotateDeg = 0, e.isActive = !1, e.fullscreen = !1, e.cssfullscreen = !1, e.isRotateFullscreen = !1, e._fullscreenEl = null, e.timeSegments = [], e._cssfullscreenEl = null, e.curDefinition = null, e._orgCss = "", e._fullScreenOffset = null, e._videoHeight = 0, e._videoWidth = 0, e.videoPos = {
|
|
4622
4632
|
pi: 1,
|
|
4623
4633
|
scale: 0,
|
|
4624
4634
|
rotate: -1,
|
|
@@ -4653,9 +4663,9 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4653
4663
|
});
|
|
4654
4664
|
g || (h.defaultDefinition = h.list[0].definition, g = h.list[0]), e.config.url = g.url, e.curDefinition = g;
|
|
4655
4665
|
}
|
|
4656
|
-
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), K.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(
|
|
4666
|
+
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), K.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(N.READY), f.setTimeout(v(e), function() {
|
|
4657
4667
|
e.emit(Qt);
|
|
4658
|
-
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state <
|
|
4668
|
+
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < N.ATTACHED) && e.start(), e;
|
|
4659
4669
|
}
|
|
4660
4670
|
return E(r, [{
|
|
4661
4671
|
key: "_initDOM",
|
|
@@ -4673,7 +4683,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4673
4683
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
4674
4684
|
}
|
|
4675
4685
|
var s = ao(this.root);
|
|
4676
|
-
s && (O.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(
|
|
4686
|
+
s && (O.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Pe, this.playerId), (e = _e) === null || e === void 0 || e.add(this), K.init(this), this._initBaseDoms();
|
|
4677
4687
|
var l = this.constructor.XgVideoProxy;
|
|
4678
4688
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
4679
4689
|
var u = this.innerContainer || this.root;
|
|
@@ -4681,7 +4691,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4681
4691
|
var c = new l(u, this.config, this.mediaConfig);
|
|
4682
4692
|
this.attachVideoEvents(c), this.media = c;
|
|
4683
4693
|
}
|
|
4684
|
-
if (this.media.setAttribute(
|
|
4694
|
+
if (this.media.setAttribute(Pe, this.playerId), this.config.controls) {
|
|
4685
4695
|
var h = this.config.controls.root || null, d = K.register(this, no, {
|
|
4686
4696
|
root: h
|
|
4687
4697
|
});
|
|
@@ -4750,7 +4760,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4750
4760
|
var s = this.media.readyState;
|
|
4751
4761
|
O.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (R.os.isIpad || R.os.isPhone) && this.mediaPlay());
|
|
4752
4762
|
var l = this.config.startTime;
|
|
4753
|
-
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(ve, this.canPlayFunc), (!this.hasStart || this.state <
|
|
4763
|
+
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(ve, this.canPlayFunc), (!this.hasStart || this.state < N.ATTACHED) && K.afterInit(this), this.hasStart = !0, this.setState(N.ATTACHED), f.setTimeout(this, function() {
|
|
4754
4764
|
i.emit(Ct);
|
|
4755
4765
|
}, 0);
|
|
4756
4766
|
}
|
|
@@ -4826,7 +4836,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4826
4836
|
}, {
|
|
4827
4837
|
key: "deregister",
|
|
4828
4838
|
value: function(e) {
|
|
4829
|
-
typeof e == "string" ? K.unRegister(this, e) : e instanceof
|
|
4839
|
+
typeof e == "string" ? K.unRegister(this, e) : e instanceof be && K.unRegister(this, e.pluginName);
|
|
4830
4840
|
}
|
|
4831
4841
|
}, {
|
|
4832
4842
|
key: "unRegisterPlugin",
|
|
@@ -4838,7 +4848,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4838
4848
|
key: "removePluginFromConfig",
|
|
4839
4849
|
value: function(e) {
|
|
4840
4850
|
var i;
|
|
4841
|
-
if (typeof e == "string" ? i = e : e instanceof
|
|
4851
|
+
if (typeof e == "string" ? i = e : e instanceof be && (i = e.pluginName), !!i)
|
|
4842
4852
|
for (var n = this.config.plugins.length - 1; n > -1; n--) {
|
|
4843
4853
|
var s = this.config.plugins[n];
|
|
4844
4854
|
if (s.pluginName.toLowerCase() === i.toLowerCase()) {
|
|
@@ -4888,8 +4898,8 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4888
4898
|
key: "start",
|
|
4889
4899
|
value: function(e) {
|
|
4890
4900
|
var i = this;
|
|
4891
|
-
if (!(this.state >
|
|
4892
|
-
return !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(
|
|
4901
|
+
if (!(this.state > N.ATTACHING))
|
|
4902
|
+
return !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(N.ATTACHING), this._registerPlugins(!1), K.beforeInit(this).then(function() {
|
|
4893
4903
|
if (i.config) {
|
|
4894
4904
|
e || (e = i.url || i.config.url);
|
|
4895
4905
|
var n = i._preProcessUrl(e), s = i._startInit(n.url);
|
|
@@ -4932,23 +4942,23 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4932
4942
|
key: "mediaPlay",
|
|
4933
4943
|
value: function() {
|
|
4934
4944
|
var e = this;
|
|
4935
|
-
if (!this.hasStart && this.state <
|
|
4945
|
+
if (!this.hasStart && this.state < N.ATTACHED) {
|
|
4936
4946
|
this.removeClass(k.NO_START), this.addClass(k.ENTER), this.start(), this._useAutoplay = !0;
|
|
4937
4947
|
return;
|
|
4938
4948
|
}
|
|
4939
|
-
this.state <
|
|
4949
|
+
this.state < N.RUNNING && (this.removeClass(k.NO_START), !this.isCanplay && this.addClass(k.ENTER));
|
|
4940
4950
|
var i = A(I(r.prototype), "play", this).call(this);
|
|
4941
4951
|
return i !== void 0 && i && i.then ? i.then(function() {
|
|
4942
|
-
e.removeClass(k.NOT_ALLOW_AUTOPLAY), e.addClass(k.PLAYING), e.state <
|
|
4952
|
+
e.removeClass(k.NOT_ALLOW_AUTOPLAY), e.addClass(k.PLAYING), e.state < N.RUNNING && (O.logInfo(">>>>playPromise.then"), e.setState(N.RUNNING), e.emit(Ae));
|
|
4943
4953
|
}).catch(function(n) {
|
|
4944
4954
|
if (O.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
|
|
4945
4955
|
e.onError(), e.removeClass(k.ENTER);
|
|
4946
4956
|
return;
|
|
4947
4957
|
}
|
|
4948
4958
|
n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
|
|
4949
|
-
e._errorTimer = null, e.emit(ei), e.addClass(k.NOT_ALLOW_AUTOPLAY), e.removeClass(k.ENTER), e.pause(), e.setState(
|
|
4959
|
+
e._errorTimer = null, e.emit(ei), e.addClass(k.NOT_ALLOW_AUTOPLAY), e.removeClass(k.ENTER), e.pause(), e.setState(N.NOTALLOW);
|
|
4950
4960
|
}, 0));
|
|
4951
|
-
}) : (O.logWarn("video.play not return promise"), this.state <
|
|
4961
|
+
}) : (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(Ae))), i;
|
|
4952
4962
|
}
|
|
4953
4963
|
}, {
|
|
4954
4964
|
key: "mediaPause",
|
|
@@ -4994,7 +5004,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
4994
5004
|
n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
|
|
4995
5005
|
}
|
|
4996
5006
|
n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
|
|
4997
|
-
}, this.once(me, this._onceSeekCanplay), this.state <
|
|
5007
|
+
}, this.once(me, this._onceSeekCanplay), this.state < N.RUNNING ? (this.removeClass(k.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
|
|
4998
5008
|
}
|
|
4999
5009
|
}
|
|
5000
5010
|
}, {
|
|
@@ -5066,7 +5076,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5066
5076
|
value: function() {
|
|
5067
5077
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
5068
5078
|
if (!(!s || !l)) {
|
|
5069
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(
|
|
5079
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Pe), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(ti), (e = _e) === null || e === void 0 || e.remove(this), K.destroy(this), gn(this), A(I(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
5070
5080
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
5071
5081
|
n.removeChild(u[c]);
|
|
5072
5082
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -5109,12 +5119,12 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5109
5119
|
}, {
|
|
5110
5120
|
key: "changeFullStyle",
|
|
5111
5121
|
value: function(e, i, n, s) {
|
|
5112
|
-
e && (s || (s = k.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = f.filterStyleFromText(e)), f.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = f.filterStyleFromText(i), f.addClass(i, s), i.setAttribute(
|
|
5122
|
+
e && (s || (s = k.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = f.filterStyleFromText(e)), f.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = f.filterStyleFromText(i), f.addClass(i, s), i.setAttribute(Pe, this.playerId)));
|
|
5113
5123
|
}
|
|
5114
5124
|
}, {
|
|
5115
5125
|
key: "recoverFullStyle",
|
|
5116
5126
|
value: function(e, i, n, s) {
|
|
5117
|
-
s || (s = k.PARENT_FULLSCREEN), this._orgCss && (f.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), f.removeClass(e, n), i && i !== e && this._orgPCss && (f.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", f.removeClass(i, s), i.removeAttribute(
|
|
5127
|
+
s || (s = k.PARENT_FULLSCREEN), this._orgCss && (f.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), f.removeClass(e, n), i && i !== e && this._orgPCss && (f.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", f.removeClass(i, s), i.removeAttribute(Pe));
|
|
5118
5128
|
}
|
|
5119
5129
|
}, {
|
|
5120
5130
|
key: "getFullscreen",
|
|
@@ -5281,7 +5291,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5281
5291
|
}, {
|
|
5282
5292
|
key: "onPlay",
|
|
5283
5293
|
value: function() {
|
|
5284
|
-
this.state ===
|
|
5294
|
+
this.state === N.ENDED && this.setState(N.RUNNING), this.removeClass(k.PAUSED), this.ended && this.removeClass(k.ENDED), !this.config.closePlayVideoFocus && this.focus();
|
|
5285
5295
|
}
|
|
5286
5296
|
}, {
|
|
5287
5297
|
key: "onPause",
|
|
@@ -5291,7 +5301,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5291
5301
|
}, {
|
|
5292
5302
|
key: "onEnded",
|
|
5293
5303
|
value: function() {
|
|
5294
|
-
this.updateAcc("ended"), this.addClass(k.ENDED), this.setState(
|
|
5304
|
+
this.updateAcc("ended"), this.addClass(k.ENDED), this.setState(N.ENDED);
|
|
5295
5305
|
}
|
|
5296
5306
|
}, {
|
|
5297
5307
|
key: "onError",
|
|
@@ -5329,7 +5339,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5329
5339
|
}, {
|
|
5330
5340
|
key: "onTimeupdate",
|
|
5331
5341
|
value: function() {
|
|
5332
|
-
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(k.LOADING)) && this.media.readyState > 2 && (this.removeClass(k.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state ===
|
|
5342
|
+
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(k.LOADING)) && this.media.readyState > 2 && (this.removeClass(k.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === N.NOTALLOW && this.duration && (this.setState(N.RUNNING), this.emit(Ae)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
5333
5343
|
}
|
|
5334
5344
|
}, {
|
|
5335
5345
|
key: "onVolumechange",
|
|
@@ -5456,7 +5466,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5456
5466
|
cWidth: C,
|
|
5457
5467
|
cHeight: b + d
|
|
5458
5468
|
};
|
|
5459
|
-
this.resizePosition(), this.emit(
|
|
5469
|
+
this.resizePosition(), this.emit(we, B);
|
|
5460
5470
|
}
|
|
5461
5471
|
}
|
|
5462
5472
|
}
|
|
@@ -5504,15 +5514,15 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
|
|
|
5504
5514
|
return this._hasStart;
|
|
5505
5515
|
},
|
|
5506
5516
|
set: function(e) {
|
|
5507
|
-
typeof e == "boolean" && (this._hasStart = e, e === !1 && this.setState(
|
|
5517
|
+
typeof e == "boolean" && (this._hasStart = e, e === !1 && this.setState(N.READY), this.emit("hasstart"));
|
|
5508
5518
|
}
|
|
5509
5519
|
}, {
|
|
5510
5520
|
key: "isPlaying",
|
|
5511
5521
|
get: function() {
|
|
5512
|
-
return this._state ===
|
|
5522
|
+
return this._state === N.RUNNING || this._state === N.ENDED;
|
|
5513
5523
|
},
|
|
5514
5524
|
set: function(e) {
|
|
5515
|
-
e ? this.setState(
|
|
5525
|
+
e ? this.setState(N.RUNNING) : this._state >= N.RUNNING && this.setState(N.ATTACHED);
|
|
5516
5526
|
}
|
|
5517
5527
|
}, {
|
|
5518
5528
|
key: "definitionList",
|
|
@@ -5837,7 +5847,7 @@ var Ce = {
|
|
|
5837
5847
|
}, {
|
|
5838
5848
|
key: "_initOnceEvents",
|
|
5839
5849
|
value: function() {
|
|
5840
|
-
this.off(
|
|
5850
|
+
this.off(Ae, this._onAutoplayStart), this.off(ie, this._onTimeupdate), this.once(Ae, this._onAutoplayStart), this.once(ie, this._onTimeupdate);
|
|
5841
5851
|
}
|
|
5842
5852
|
}, {
|
|
5843
5853
|
key: "_sendFF",
|
|
@@ -6172,7 +6182,7 @@ var po = /* @__PURE__ */ function(a) {
|
|
|
6172
6182
|
var e = this, i = this.player, n = this.playerConfig;
|
|
6173
6183
|
this.initIcons(), this.once(Qt, function() {
|
|
6174
6184
|
n && (n.lang && n.lang === "en" ? f.addClass(i.root, "lang-is-en") : n.lang === "jp" && f.addClass(i.root, "lang-is-jp"));
|
|
6175
|
-
}), this.on(
|
|
6185
|
+
}), this.on(Ae, this.onAutoplayStart), n.autoplay || this.show(), this.on(ei, function() {
|
|
6176
6186
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
6177
6187
|
e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
|
|
6178
6188
|
}), this.on(ne, function() {
|
|
@@ -6260,16 +6270,16 @@ var po = /* @__PURE__ */ function(a) {
|
|
|
6260
6270
|
key: "switchPausePlay",
|
|
6261
6271
|
value: function(e) {
|
|
6262
6272
|
var i = this.player;
|
|
6263
|
-
if (e.cancelable && e.preventDefault(), e.stopPropagation(), !(i.state <
|
|
6273
|
+
if (e.cancelable && e.preventDefault(), e.stopPropagation(), !(i.state < N.READY)) {
|
|
6264
6274
|
var n = this.player.paused;
|
|
6265
|
-
!n && i.state ===
|
|
6275
|
+
!n && i.state === N.RUNNING ? i.pause() : i.play();
|
|
6266
6276
|
}
|
|
6267
6277
|
}
|
|
6268
6278
|
}, {
|
|
6269
6279
|
key: "onPlayPause",
|
|
6270
6280
|
value: function(e) {
|
|
6271
6281
|
var i = this.config, n = this.player;
|
|
6272
|
-
if (!(!n || n.state <
|
|
6282
|
+
if (!(!n || n.state < N.RUNNING || !this.autoPlayStart)) {
|
|
6273
6283
|
if (i.mode === "show") {
|
|
6274
6284
|
this.switchStatus(), this.show();
|
|
6275
6285
|
return;
|
|
@@ -6361,7 +6371,7 @@ var po = /* @__PURE__ */ function(a) {
|
|
|
6361
6371
|
}
|
|
6362
6372
|
}]), r;
|
|
6363
6373
|
}(U);
|
|
6364
|
-
function
|
|
6374
|
+
function Ee(a, o, r) {
|
|
6365
6375
|
try {
|
|
6366
6376
|
return ' <div class="xg-tips '.concat(r ? "hide" : " ", '" lang-key="').concat(a.i18nKeys[o], `">
|
|
6367
6377
|
`).concat(a.i18n[o], `
|
|
@@ -6802,7 +6812,7 @@ var Dt = {
|
|
|
6802
6812
|
return `
|
|
6803
6813
|
<xg-mini-layer class="xg-mini-layer">
|
|
6804
6814
|
<xg-mini-header class="xgplayer-mini-header">
|
|
6805
|
-
`.concat(
|
|
6815
|
+
`.concat(Ee(this, "MINI_DRAG", this.playerConfig.isHideTips), `
|
|
6806
6816
|
</xg-mini-header>
|
|
6807
6817
|
<div class="mini-cancel-btn">
|
|
6808
6818
|
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
|
@@ -6947,7 +6957,7 @@ var Dt = {
|
|
|
6947
6957
|
return {};
|
|
6948
6958
|
}
|
|
6949
6959
|
}]), r;
|
|
6950
|
-
}(
|
|
6960
|
+
}(be), ke = {
|
|
6951
6961
|
PRESS: "press",
|
|
6952
6962
|
PRESS_END: "pressend",
|
|
6953
6963
|
DOUBlE_CLICK: "doubleclick",
|
|
@@ -7189,7 +7199,7 @@ var Ne = {
|
|
|
7189
7199
|
d.preventDefault();
|
|
7190
7200
|
}), s.root.addEventListener("touchmove", this.onRootTouchMove, !0), s.root.addEventListener("touchend", this.onRootTouchEnd, !0), s.root.addEventListener("touchcancel", this.onRootTouchEnd, !0);
|
|
7191
7201
|
var u = this.player.controls;
|
|
7192
|
-
u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(
|
|
7202
|
+
u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(Te, function() {
|
|
7193
7203
|
var d = e.player, g = e.config;
|
|
7194
7204
|
d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
|
|
7195
7205
|
}), this.on([ve, Re], function() {
|
|
@@ -7343,7 +7353,7 @@ var Ne = {
|
|
|
7343
7353
|
key: "clickHandler",
|
|
7344
7354
|
value: function(e) {
|
|
7345
7355
|
var i = this.player, n = this.config, s = this.playerConfig;
|
|
7346
|
-
if (i.state <
|
|
7356
|
+
if (i.state < N.RUNNING) {
|
|
7347
7357
|
s.closeVideoClick || (this.sendUseAction(f.createEvent("click")), i.play());
|
|
7348
7358
|
return;
|
|
7349
7359
|
}
|
|
@@ -7353,7 +7363,7 @@ var Ne = {
|
|
|
7353
7363
|
key: "dbClickHandler",
|
|
7354
7364
|
value: function(e) {
|
|
7355
7365
|
var i = this.config, n = this.player;
|
|
7356
|
-
!i.closedbClick && n.state >=
|
|
7366
|
+
!i.closedbClick && n.state >= N.RUNNING && (this.sendUseAction(f.createEvent("dblclick")), this.switchPlayPause());
|
|
7357
7367
|
}
|
|
7358
7368
|
}, {
|
|
7359
7369
|
key: "onClick",
|
|
@@ -7442,7 +7452,7 @@ var Ne = {
|
|
|
7442
7452
|
key: "switchPlayPause",
|
|
7443
7453
|
value: function() {
|
|
7444
7454
|
var e = this.player;
|
|
7445
|
-
if (e.state <
|
|
7455
|
+
if (e.state < N.ATTACHED)
|
|
7446
7456
|
return !1;
|
|
7447
7457
|
e.ended || (e.paused ? e.play() : e.pause());
|
|
7448
7458
|
}
|
|
@@ -7814,7 +7824,7 @@ var Fi = /* @__PURE__ */ function(a) {
|
|
|
7814
7824
|
};
|
|
7815
7825
|
}
|
|
7816
7826
|
}]), r;
|
|
7817
|
-
}(
|
|
7827
|
+
}(be);
|
|
7818
7828
|
function Po() {
|
|
7819
7829
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
7820
7830
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
@@ -8229,7 +8239,7 @@ var Io = /* @__PURE__ */ function(a) {
|
|
|
8229
8239
|
fragAutoFocus: s,
|
|
8230
8240
|
fragClass: l,
|
|
8231
8241
|
style: this.playerConfig.commonStyle || {}
|
|
8232
|
-
}), R.device === "mobile" && (this.config.isDragingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.on(
|
|
8242
|
+
}), R.device === "mobile" && (this.config.isDragingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.on(Te, function() {
|
|
8233
8243
|
e.onMouseLeave();
|
|
8234
8244
|
}), this.on(ie, function() {
|
|
8235
8245
|
e.onTimeupdate();
|
|
@@ -8241,7 +8251,7 @@ var Io = /* @__PURE__ */ function(a) {
|
|
|
8241
8251
|
e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
|
|
8242
8252
|
}), this.on(Oe, function() {
|
|
8243
8253
|
e.onReset();
|
|
8244
|
-
}), this.on(
|
|
8254
|
+
}), this.on(we, function() {
|
|
8245
8255
|
e.onVideoResize();
|
|
8246
8256
|
}), this.bindDomEvents(), this.initCustomStyle();
|
|
8247
8257
|
}
|
|
@@ -8580,7 +8590,7 @@ var Io = /* @__PURE__ */ function(a) {
|
|
|
8580
8590
|
return `<xg-icon class="xgplayer-play">
|
|
8581
8591
|
<div class="xgplayer-icon">
|
|
8582
8592
|
</div>
|
|
8583
|
-
`.concat(
|
|
8593
|
+
`.concat(Ee(this, "PLAY_TIPS", this.playerConfig.isHideTips), `
|
|
8584
8594
|
</xg-icon>`);
|
|
8585
8595
|
}
|
|
8586
8596
|
}], [{
|
|
@@ -8771,7 +8781,7 @@ var Bo = /* @__PURE__ */ function(a) {
|
|
|
8771
8781
|
return `<xg-icon class="xgplayer-fullscreen">
|
|
8772
8782
|
<div class="xgplayer-icon">
|
|
8773
8783
|
</div>
|
|
8774
|
-
`.concat(
|
|
8784
|
+
`.concat(Ee(this, e, this.playerConfig.isHideTips), `
|
|
8775
8785
|
</xg-icon>`);
|
|
8776
8786
|
}
|
|
8777
8787
|
}
|
|
@@ -8843,7 +8853,7 @@ var Bo = /* @__PURE__ */ function(a) {
|
|
|
8843
8853
|
key: "afterCreate",
|
|
8844
8854
|
value: function() {
|
|
8845
8855
|
var e = this, i = this.player.controls.config.mode;
|
|
8846
|
-
this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([
|
|
8856
|
+
this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Te, me, ie], function(n) {
|
|
8847
8857
|
n.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
8848
8858
|
}), this.on(Re, function() {
|
|
8849
8859
|
e.onTimeUpdate(!0);
|
|
@@ -9021,7 +9031,7 @@ var Bo = /* @__PURE__ */ function(a) {
|
|
|
9021
9031
|
return E(r, [{
|
|
9022
9032
|
key: "afterCreate",
|
|
9023
9033
|
value: function() {
|
|
9024
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(
|
|
9034
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Te, this._onDurationChange), this.on(ye, this._onLoadedData), this.on(ie, this._onTimeupdate), this.on(_t, this._onSeeking), this.on(ne, this._onPlay);
|
|
9025
9035
|
}
|
|
9026
9036
|
}, {
|
|
9027
9037
|
key: "setConfig",
|
|
@@ -9102,7 +9112,7 @@ var Bo = /* @__PURE__ */ function(a) {
|
|
|
9102
9112
|
};
|
|
9103
9113
|
}
|
|
9104
9114
|
}]), r;
|
|
9105
|
-
}(
|
|
9115
|
+
}(be);
|
|
9106
9116
|
function zo() {
|
|
9107
9117
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9108
9118
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
@@ -9345,7 +9355,7 @@ var Ko = /* @__PURE__ */ function(a) {
|
|
|
9345
9355
|
value: function() {
|
|
9346
9356
|
var e = this;
|
|
9347
9357
|
if (!this.config.disable) {
|
|
9348
|
-
A(I(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(
|
|
9358
|
+
A(I(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(we, function() {
|
|
9349
9359
|
e.rotateDeg && e.config.innerRotate && f.setTimeout(e, function() {
|
|
9350
9360
|
e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
|
|
9351
9361
|
}, 100);
|
|
@@ -9407,7 +9417,7 @@ var Ko = /* @__PURE__ */ function(a) {
|
|
|
9407
9417
|
<xg-icon class="xgplayer-rotate">
|
|
9408
9418
|
<div class="xgplayer-icon">
|
|
9409
9419
|
</div>
|
|
9410
|
-
`.concat(
|
|
9420
|
+
`.concat(Ee(this, "ROTATE_TIPS", this.playerConfig.isHideTips), `
|
|
9411
9421
|
</xg-icon>`);
|
|
9412
9422
|
}
|
|
9413
9423
|
}], [{
|
|
@@ -9624,7 +9634,7 @@ var Be = {
|
|
|
9624
9634
|
return `<xg-icon class="xgplayer-pip">
|
|
9625
9635
|
<div class="xgplayer-icon xg-icon-disable">
|
|
9626
9636
|
</div>
|
|
9627
|
-
`.concat(
|
|
9637
|
+
`.concat(Ee(this, "PIP", this.playerConfig.isHideTips), `
|
|
9628
9638
|
</xg-icon>`);
|
|
9629
9639
|
}
|
|
9630
9640
|
}], [{
|
|
@@ -9707,7 +9717,7 @@ var Zo = /* @__PURE__ */ function(a) {
|
|
|
9707
9717
|
<xg-icon class="xgplayer-playnext">
|
|
9708
9718
|
<div class="xgplayer-icon">
|
|
9709
9719
|
</div>
|
|
9710
|
-
`.concat(
|
|
9720
|
+
`.concat(Ee(this, "PLAYNEXT_TIPS", this.playerConfig.isHideTips), `
|
|
9711
9721
|
</xg-icon>
|
|
9712
9722
|
`);
|
|
9713
9723
|
}
|
|
@@ -9760,10 +9770,10 @@ var Zo = /* @__PURE__ */ function(a) {
|
|
|
9760
9770
|
}
|
|
9761
9771
|
m = u instanceof g ? u : new g([u], { type: l });
|
|
9762
9772
|
function F(D) {
|
|
9763
|
-
var q = D.split(/[:;,]/), G = q[1], H = q[2] == "base64" ? atob : decodeURIComponent,
|
|
9773
|
+
var q = D.split(/[:;,]/), G = q[1], H = q[2] == "base64" ? atob : decodeURIComponent, ee = H(q.pop()), re = ee.length, se = 0, Se = new Uint8Array(re);
|
|
9764
9774
|
for (se; se < re; ++se)
|
|
9765
|
-
|
|
9766
|
-
return new g([
|
|
9775
|
+
Se[se] = ee.charCodeAt(se);
|
|
9776
|
+
return new g([Se], { type: G });
|
|
9767
9777
|
}
|
|
9768
9778
|
function z(D, q) {
|
|
9769
9779
|
if ("download" in h)
|
|
@@ -9873,7 +9883,7 @@ var ta = /* @__PURE__ */ function(a) {
|
|
|
9873
9883
|
return `<xg-icon class="xgplayer-download">
|
|
9874
9884
|
<div class="xgplayer-icon">
|
|
9875
9885
|
</div>
|
|
9876
|
-
`.concat(
|
|
9886
|
+
`.concat(Ee(this, "DOWNLOAD_TIPS", this.playerConfig.isHideTips), `
|
|
9877
9887
|
</xg-icon>`);
|
|
9878
9888
|
}
|
|
9879
9889
|
}], [{
|
|
@@ -9909,7 +9919,7 @@ var ta = /* @__PURE__ */ function(a) {
|
|
|
9909
9919
|
var e = this.config;
|
|
9910
9920
|
this.initSize = function(i) {
|
|
9911
9921
|
e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
|
|
9912
|
-
}, this.once(
|
|
9922
|
+
}, this.once(we, this.initSize);
|
|
9913
9923
|
}
|
|
9914
9924
|
}, {
|
|
9915
9925
|
key: "onPluginsReady",
|
|
@@ -9979,7 +9989,7 @@ var ta = /* @__PURE__ */ function(a) {
|
|
|
9979
9989
|
}, {
|
|
9980
9990
|
key: "destroy",
|
|
9981
9991
|
value: function() {
|
|
9982
|
-
A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(
|
|
9992
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(we, this.initSize);
|
|
9983
9993
|
}
|
|
9984
9994
|
}, {
|
|
9985
9995
|
key: "render",
|
|
@@ -10100,7 +10110,7 @@ var ta = /* @__PURE__ */ function(a) {
|
|
|
10100
10110
|
function ra(a, o) {
|
|
10101
10111
|
return a === ce.SIDE ? o === V.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10102
10112
|
}
|
|
10103
|
-
var
|
|
10113
|
+
var xe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
10104
10114
|
x(r, a);
|
|
10105
10115
|
var o = P(r);
|
|
10106
10116
|
function r(t) {
|
|
@@ -10132,13 +10142,13 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10132
10142
|
key: "afterCreate",
|
|
10133
10143
|
value: function() {
|
|
10134
10144
|
var e = this, i = this.config;
|
|
10135
|
-
this.initIcons(),
|
|
10145
|
+
this.initIcons(), xe = xe || this.domEventType === "touch", xe && R.device === "mobile" && i.listType === ce.DEFAULT && (i.listType = ce.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([we, ge], function() {
|
|
10136
10146
|
e._resizeList();
|
|
10137
10147
|
}), this.once(ve, function() {
|
|
10138
10148
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
10139
|
-
}),
|
|
10149
|
+
}), xe && this.on(Jt, function() {
|
|
10140
10150
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
10141
|
-
}),
|
|
10151
|
+
}), xe ? (i.toggleMode = He.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === He.CLICK ? "click" : "mouseenter", i.toggleMode === He.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
|
|
10142
10152
|
}
|
|
10143
10153
|
}, {
|
|
10144
10154
|
key: "initIcons",
|
|
@@ -10186,7 +10196,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10186
10196
|
var n = this.config, s = n.listType, l = n.list;
|
|
10187
10197
|
this.curIndex = i.to.index, this.curItem = l[this.curIndex], this.changeCurrentText();
|
|
10188
10198
|
var u = this.config.isItemClickHide;
|
|
10189
|
-
(u ||
|
|
10199
|
+
(u || xe || s === ce.SIDE) && this.toggle(!1);
|
|
10190
10200
|
}
|
|
10191
10201
|
}, {
|
|
10192
10202
|
key: "onIconClick",
|
|
@@ -10215,7 +10225,7 @@ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
|
|
|
10215
10225
|
onItemClick: function(m, _) {
|
|
10216
10226
|
n.onItemClick(m, _);
|
|
10217
10227
|
},
|
|
10218
|
-
domEventType:
|
|
10228
|
+
domEventType: xe ? "touch" : "mouse"
|
|
10219
10229
|
},
|
|
10220
10230
|
root: s.listType === ce.SIDE ? u.innerContainer || u.root : this.root
|
|
10221
10231
|
};
|
|
@@ -10553,7 +10563,7 @@ var Ni = /* @__PURE__ */ function(a) {
|
|
|
10553
10563
|
return `<xg-icon class='xgplayer-cssfullscreen'>
|
|
10554
10564
|
<div class="xgplayer-icon">
|
|
10555
10565
|
</div>
|
|
10556
|
-
`.concat(
|
|
10566
|
+
`.concat(Ee(this, "CSSFULLSCREEN_TIPS", this.playerConfig.isHideTips), `
|
|
10557
10567
|
</xg-icon>`);
|
|
10558
10568
|
}
|
|
10559
10569
|
}], [{
|
|
@@ -10874,9 +10884,9 @@ function fa(a) {
|
|
|
10874
10884
|
}), a.ispotsInit = !1, a.playerSize = {
|
|
10875
10885
|
left: r.sizeInfo.left,
|
|
10876
10886
|
width: r.sizeInfo.width
|
|
10877
|
-
}, a.on(
|
|
10887
|
+
}, a.on(Te, function() {
|
|
10878
10888
|
a.ispotsInit ? a.updateDuration() : a.initDots();
|
|
10879
|
-
}), a.on(
|
|
10889
|
+
}), a.on(we, function() {
|
|
10880
10890
|
a.positionDots();
|
|
10881
10891
|
});
|
|
10882
10892
|
}
|
|
@@ -10938,7 +10948,7 @@ var Ue = {
|
|
|
10938
10948
|
n.seekTime && e.player.seek(n.seekTime);
|
|
10939
10949
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
10940
10950
|
e.setTimeContent(f.format(i));
|
|
10941
|
-
}), fa(this), this.on(
|
|
10951
|
+
}), fa(this), this.on(Te, function() {
|
|
10942
10952
|
e.show();
|
|
10943
10953
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
10944
10954
|
}
|
|
@@ -11173,7 +11183,7 @@ var Ue = {
|
|
|
11173
11183
|
key: "afterCreate",
|
|
11174
11184
|
value: function() {
|
|
11175
11185
|
var e = this;
|
|
11176
|
-
this.usable && this.initThumbnail(), this.on([
|
|
11186
|
+
this.usable && this.initThumbnail(), this.on([Te], function() {
|
|
11177
11187
|
var i = e.config, n = i.pic_num, s = i.interval;
|
|
11178
11188
|
e.usable && (e.interval = s > 0 ? s : Math.round(e.player.duration * 1e3 / n) / 1e3);
|
|
11179
11189
|
});
|
|
@@ -11824,7 +11834,7 @@ var st = null, ma = /* @__PURE__ */ function(a) {
|
|
|
11824
11834
|
return {};
|
|
11825
11835
|
}
|
|
11826
11836
|
}]), r;
|
|
11827
|
-
}(
|
|
11837
|
+
}(be), Cn = /* @__PURE__ */ function(a) {
|
|
11828
11838
|
x(r, a);
|
|
11829
11839
|
var o = P(r);
|
|
11830
11840
|
function r() {
|
|
@@ -12228,7 +12238,7 @@ y(ue, "Sniffer", R);
|
|
|
12228
12238
|
y(ue, "Errors", lt);
|
|
12229
12239
|
y(ue, "Events", Ns);
|
|
12230
12240
|
y(ue, "Plugin", U);
|
|
12231
|
-
y(ue, "BasePlugin",
|
|
12241
|
+
y(ue, "BasePlugin", be);
|
|
12232
12242
|
y(ue, "I18N", We);
|
|
12233
12243
|
y(ue, "STATE_CLASS", k);
|
|
12234
12244
|
y(ue, "InstManager", vn);
|
|
@@ -12296,11 +12306,11 @@ const Ta = ["id"], Ea = /* @__PURE__ */ le({
|
|
|
12296
12306
|
});
|
|
12297
12307
|
}), (g, p) => {
|
|
12298
12308
|
const m = $e("el-icon");
|
|
12299
|
-
return u.value ? (L(),
|
|
12309
|
+
return u.value ? (L(), Le(En, {
|
|
12300
12310
|
key: 0,
|
|
12301
12311
|
to: "body"
|
|
12302
12312
|
}, [
|
|
12303
|
-
|
|
12313
|
+
J(Sn, {
|
|
12304
12314
|
name: "viewer-fade",
|
|
12305
12315
|
appear: ""
|
|
12306
12316
|
}, {
|
|
@@ -12310,14 +12320,14 @@ const Ta = ["id"], Ea = /* @__PURE__ */ le({
|
|
|
12310
12320
|
{
|
|
12311
12321
|
ref: "wrapper",
|
|
12312
12322
|
tabindex: -1,
|
|
12313
|
-
class:
|
|
12323
|
+
class: Q(j(h).e("wrapper")),
|
|
12314
12324
|
style: oe({ zIndex: a.zIndex })
|
|
12315
12325
|
},
|
|
12316
12326
|
[
|
|
12317
12327
|
S(
|
|
12318
12328
|
"div",
|
|
12319
12329
|
{
|
|
12320
|
-
class:
|
|
12330
|
+
class: Q(j(h).e("mask"))
|
|
12321
12331
|
},
|
|
12322
12332
|
null,
|
|
12323
12333
|
2
|
|
@@ -12327,7 +12337,7 @@ const Ta = ["id"], Ea = /* @__PURE__ */ le({
|
|
|
12327
12337
|
S(
|
|
12328
12338
|
"div",
|
|
12329
12339
|
{
|
|
12330
|
-
class:
|
|
12340
|
+
class: Q(j(h).e("canvas"))
|
|
12331
12341
|
},
|
|
12332
12342
|
[
|
|
12333
12343
|
S("div", { id: j(c) }, null, 8, Ta),
|
|
@@ -12335,13 +12345,13 @@ const Ta = ["id"], Ea = /* @__PURE__ */ le({
|
|
|
12335
12345
|
S(
|
|
12336
12346
|
"span",
|
|
12337
12347
|
{
|
|
12338
|
-
class:
|
|
12348
|
+
class: Q([j(h).e("btn"), j(h).e("close")]),
|
|
12339
12349
|
onClick: d
|
|
12340
12350
|
},
|
|
12341
12351
|
[
|
|
12342
|
-
|
|
12352
|
+
J(m, { onClick: d }, {
|
|
12343
12353
|
default: de(() => [
|
|
12344
|
-
|
|
12354
|
+
J(j(Nr))
|
|
12345
12355
|
]),
|
|
12346
12356
|
_: 1
|
|
12347
12357
|
/* STABLE */
|
|
@@ -12354,7 +12364,7 @@ const Ta = ["id"], Ea = /* @__PURE__ */ le({
|
|
|
12354
12364
|
2
|
|
12355
12365
|
/* CLASS */
|
|
12356
12366
|
),
|
|
12357
|
-
|
|
12367
|
+
Ie(g.$slots, "default", {}, void 0, !0)
|
|
12358
12368
|
],
|
|
12359
12369
|
6
|
|
12360
12370
|
/* CLASS, STYLE */
|
|
@@ -12475,18 +12485,18 @@ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(S
|
|
|
12475
12485
|
return (h, d) => {
|
|
12476
12486
|
var p, m, _;
|
|
12477
12487
|
const g = $e("tmplate");
|
|
12478
|
-
return L(),
|
|
12488
|
+
return L(), M(
|
|
12479
12489
|
Ze,
|
|
12480
12490
|
null,
|
|
12481
12491
|
[
|
|
12482
|
-
(p = a.list) != null && p.length ? (L(),
|
|
12492
|
+
(p = a.list) != null && p.length ? (L(), M(
|
|
12483
12493
|
Ze,
|
|
12484
12494
|
{ key: 0 },
|
|
12485
12495
|
[
|
|
12486
|
-
a.simple ? (L(!0),
|
|
12496
|
+
a.simple ? (L(!0), M(
|
|
12487
12497
|
Ze,
|
|
12488
12498
|
{ key: 0 },
|
|
12489
|
-
ai(c.value, (C, b) => (L(),
|
|
12499
|
+
ai(c.value, (C, b) => (L(), M("div", {
|
|
12490
12500
|
class: "iking-privew-annex simple",
|
|
12491
12501
|
onClick: (w) => s(C),
|
|
12492
12502
|
style: oe({ width: u.value })
|
|
@@ -12501,21 +12511,21 @@ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(S
|
|
|
12501
12511
|
S(
|
|
12502
12512
|
"div",
|
|
12503
12513
|
{
|
|
12504
|
-
class:
|
|
12514
|
+
class: Q(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
12505
12515
|
},
|
|
12506
12516
|
[
|
|
12507
|
-
|
|
12517
|
+
J(j(je), {
|
|
12508
12518
|
name: "iksvg_daochu",
|
|
12509
12519
|
onClick: li((w) => l(C), ["stop"]),
|
|
12510
12520
|
size: 20,
|
|
12511
12521
|
active: ""
|
|
12512
12522
|
}, null, 8, ["onClick"]),
|
|
12513
|
-
|
|
12523
|
+
J(j(je), {
|
|
12514
12524
|
name: "iksvg_yulan",
|
|
12515
12525
|
size: 20,
|
|
12516
12526
|
active: ""
|
|
12517
12527
|
}),
|
|
12518
|
-
|
|
12528
|
+
Ie(h.$slots, "operation", {
|
|
12519
12529
|
data: { ...C, findex: b }
|
|
12520
12530
|
})
|
|
12521
12531
|
],
|
|
@@ -12525,17 +12535,17 @@ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(S
|
|
|
12525
12535
|
], 12, Pa))),
|
|
12526
12536
|
256
|
|
12527
12537
|
/* UNKEYED_FRAGMENT */
|
|
12528
|
-
)) : (L(),
|
|
12538
|
+
)) : (L(), Le(g, { key: 1 }, {
|
|
12529
12539
|
default: de(() => [
|
|
12530
|
-
(L(!0),
|
|
12540
|
+
(L(!0), M(
|
|
12531
12541
|
Ze,
|
|
12532
12542
|
null,
|
|
12533
12543
|
ai(c.value, (C, b) => {
|
|
12534
12544
|
var w;
|
|
12535
|
-
return L(),
|
|
12545
|
+
return L(), M(
|
|
12536
12546
|
"div",
|
|
12537
12547
|
{
|
|
12538
|
-
class:
|
|
12548
|
+
class: Q(["iking-privew-annex", { "is-bg": a.showBg }]),
|
|
12539
12549
|
key: b,
|
|
12540
12550
|
style: oe({
|
|
12541
12551
|
marginBottom: b == ((w = a.list) == null ? void 0 : w.length) - 1 ? "0" : "10px",
|
|
@@ -12547,7 +12557,7 @@ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(S
|
|
|
12547
12557
|
class: "file-card",
|
|
12548
12558
|
onClick: (B) => s(C)
|
|
12549
12559
|
}, [
|
|
12550
|
-
|
|
12560
|
+
J(j(Fr), {
|
|
12551
12561
|
file: C,
|
|
12552
12562
|
style: oe({ height: `${a.iconSize}px` }),
|
|
12553
12563
|
class: "ikui-w-auto",
|
|
@@ -12572,23 +12582,23 @@ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(S
|
|
|
12572
12582
|
S(
|
|
12573
12583
|
"div",
|
|
12574
12584
|
{
|
|
12575
|
-
class:
|
|
12585
|
+
class: Q(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
12576
12586
|
},
|
|
12577
12587
|
[
|
|
12578
|
-
|
|
12588
|
+
J(j(je), {
|
|
12579
12589
|
name: "iksvg_daochu",
|
|
12580
12590
|
onClick: li((B) => l(C), ["stop"]),
|
|
12581
12591
|
bg: a.showBg,
|
|
12582
12592
|
size: a.showBg ? "default" : 20,
|
|
12583
12593
|
title: "下载"
|
|
12584
12594
|
}, null, 8, ["onClick", "bg", "size"]),
|
|
12585
|
-
|
|
12595
|
+
J(j(je), {
|
|
12586
12596
|
name: "iksvg_yulan",
|
|
12587
12597
|
bg: a.showBg,
|
|
12588
12598
|
size: a.showBg ? "default" : 20,
|
|
12589
12599
|
title: "预览"
|
|
12590
12600
|
}, null, 8, ["bg", "size"]),
|
|
12591
|
-
|
|
12601
|
+
Ie(h.$slots, "operation", {
|
|
12592
12602
|
data: { ...C, findex: b }
|
|
12593
12603
|
})
|
|
12594
12604
|
],
|
|
@@ -12612,7 +12622,7 @@ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(S
|
|
|
12612
12622
|
64
|
|
12613
12623
|
/* STABLE_FRAGMENT */
|
|
12614
12624
|
)) : he("v-if", !0),
|
|
12615
|
-
|
|
12625
|
+
J(j(zr), {
|
|
12616
12626
|
show: n.value,
|
|
12617
12627
|
"onUpdate:show": d[0] || (d[0] = (C) => n.value = C),
|
|
12618
12628
|
loadUrl: j(r),
|