iking-web-ui-pro 0.2.50 → 0.2.52
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/IKApprovalProcessDetail/ik.index.es.js +527 -513
- package/dist/IKApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +342 -328
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IkDescription/ik.index.es.js +380 -366
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +456 -442
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkSelectTag/ik.index.es.js +30 -31
- package/dist/IkSelectTag/ik.index.umd.js +1 -1
- package/dist/IkSelectTag/style.css +1 -1
- package/dist/IkStatu/ik.index.es.js +4 -5
- package/dist/IkStatu/ik.index.umd.js +1 -1
- package/dist/IkStatu/style.css +1 -1
- package/dist/IkStatuOver/ik.index.es.js +2 -3
- package/dist/IkStatuOver/ik.index.umd.js +1 -1
- package/dist/IkStatuOver/style.css +1 -1
- package/dist/index.es.js +2186 -2173
- package/dist/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as J, computed as X, openBlock as E, createElementBlock as
|
|
1
|
+
import { defineComponent as J, computed as X, openBlock as E, createElementBlock as I, createElementVNode as T, inject as ut, ref as oe, resolveComponent as st, Fragment as pe, createCommentVNode as Y, renderList as rt, normalizeStyle as ie, toDisplayString as xe, normalizeClass as K, createBlock as he, unref as S, withModifiers as Ct, renderSlot as Ne, createVNode as j, withCtx as ee, mergeModels as wt, useModel as fi, reactive as rr, watch as ot, nextTick as hi, createTextVNode as ii, h as sr, mergeProps as or, createSlots as ar, getCurrentScope as lr, onScopeDispose as ur, markRaw as Oi, effectScope as cr, shallowRef as fr, onMounted as hr, Teleport as kn, Transition as Cn, resolveDynamicComponent as dr, withDirectives as gr, vShow as pr, pushScopeId as vr, popScopeId as mr } from "vue";
|
|
2
2
|
import { paramType as ni, ikFile as yr, buildUUID as wn, ikColor as _r, _ as zt, ikUrl as kr } from "iking-utils-pro";
|
|
3
3
|
import { useLocale as Cr, useNamespace as bn, useZIndex as wr, ElIcon as Oe, EVENT_CODE as Xe } from "element-plus";
|
|
4
4
|
const Ae = (a, o) => {
|
|
@@ -620,7 +620,7 @@ const Ae = (a, o) => {
|
|
|
620
620
|
},
|
|
621
621
|
setup(a) {
|
|
622
622
|
const o = a, r = X(() => o.file ? ri(o.file, o.fields) : o.type);
|
|
623
|
-
return (t, e) => r.value === "image" ? (E(),
|
|
623
|
+
return (t, e) => r.value === "image" ? (E(), I("svg", Er, Lr)) : r.value === "zip" ? (E(), I("svg", Ar, Rr)) : r.value === "ppt" ? (E(), I("svg", Fr, Br)) : r.value === "word" ? (E(), I("svg", Hr, Vr)) : r.value === "pdf" ? (E(), I("svg", jr, $r)) : r.value === "txt" ? (E(), I("svg", Kr, qr)) : r.value === "audio" ? (E(), I("svg", Zr, es)) : r.value === "video" ? (E(), I("svg", ts, rs)) : r.value === "excel" ? (E(), I("svg", ss, us)) : r.value === "exe" ? (E(), I("svg", cs, ps)) : r.value === "json" ? (E(), I("svg", vs, ks)) : (E(), I("svg", Cs, Es));
|
|
624
624
|
}
|
|
625
625
|
}), Fi = Ae(Ss);
|
|
626
626
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
@@ -628,7 +628,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
628
628
|
name: "ArrowLeft",
|
|
629
629
|
__name: "arrow-left",
|
|
630
630
|
setup(a) {
|
|
631
|
-
return (o, r) => (E(),
|
|
631
|
+
return (o, r) => (E(), I("svg", {
|
|
632
632
|
xmlns: "http://www.w3.org/2000/svg",
|
|
633
633
|
viewBox: "0 0 1024 1024"
|
|
634
634
|
}, [
|
|
@@ -642,7 +642,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
642
642
|
name: "ArrowRight",
|
|
643
643
|
__name: "arrow-right",
|
|
644
644
|
setup(a) {
|
|
645
|
-
return (o, r) => (E(),
|
|
645
|
+
return (o, r) => (E(), I("svg", {
|
|
646
646
|
xmlns: "http://www.w3.org/2000/svg",
|
|
647
647
|
viewBox: "0 0 1024 1024"
|
|
648
648
|
}, [
|
|
@@ -656,7 +656,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
656
656
|
name: "Close",
|
|
657
657
|
__name: "close",
|
|
658
658
|
setup(a) {
|
|
659
|
-
return (o, r) => (E(),
|
|
659
|
+
return (o, r) => (E(), I("svg", {
|
|
660
660
|
xmlns: "http://www.w3.org/2000/svg",
|
|
661
661
|
viewBox: "0 0 1024 1024"
|
|
662
662
|
}, [
|
|
@@ -670,7 +670,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
670
670
|
name: "FullScreen",
|
|
671
671
|
__name: "full-screen",
|
|
672
672
|
setup(a) {
|
|
673
|
-
return (o, r) => (E(),
|
|
673
|
+
return (o, r) => (E(), I("svg", {
|
|
674
674
|
xmlns: "http://www.w3.org/2000/svg",
|
|
675
675
|
viewBox: "0 0 1024 1024"
|
|
676
676
|
}, [
|
|
@@ -684,7 +684,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
684
684
|
name: "RefreshLeft",
|
|
685
685
|
__name: "refresh-left",
|
|
686
686
|
setup(a) {
|
|
687
|
-
return (o, r) => (E(),
|
|
687
|
+
return (o, r) => (E(), I("svg", {
|
|
688
688
|
xmlns: "http://www.w3.org/2000/svg",
|
|
689
689
|
viewBox: "0 0 1024 1024"
|
|
690
690
|
}, [
|
|
@@ -698,7 +698,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
698
698
|
name: "RefreshRight",
|
|
699
699
|
__name: "refresh-right",
|
|
700
700
|
setup(a) {
|
|
701
|
-
return (o, r) => (E(),
|
|
701
|
+
return (o, r) => (E(), I("svg", {
|
|
702
702
|
xmlns: "http://www.w3.org/2000/svg",
|
|
703
703
|
viewBox: "0 0 1024 1024"
|
|
704
704
|
}, [
|
|
@@ -712,7 +712,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
712
712
|
name: "ScaleToOriginal",
|
|
713
713
|
__name: "scale-to-original",
|
|
714
714
|
setup(a) {
|
|
715
|
-
return (o, r) => (E(),
|
|
715
|
+
return (o, r) => (E(), I("svg", {
|
|
716
716
|
xmlns: "http://www.w3.org/2000/svg",
|
|
717
717
|
viewBox: "0 0 1024 1024"
|
|
718
718
|
}, [
|
|
@@ -726,7 +726,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
726
726
|
name: "ZoomIn",
|
|
727
727
|
__name: "zoom-in",
|
|
728
728
|
setup(a) {
|
|
729
|
-
return (o, r) => (E(),
|
|
729
|
+
return (o, r) => (E(), I("svg", {
|
|
730
730
|
xmlns: "http://www.w3.org/2000/svg",
|
|
731
731
|
viewBox: "0 0 1024 1024"
|
|
732
732
|
}, [
|
|
@@ -740,7 +740,7 @@ var xs = /* @__PURE__ */ J({
|
|
|
740
740
|
name: "ZoomOut",
|
|
741
741
|
__name: "zoom-out",
|
|
742
742
|
setup(a) {
|
|
743
|
-
return (o, r) => (E(),
|
|
743
|
+
return (o, r) => (E(), I("svg", {
|
|
744
744
|
xmlns: "http://www.w3.org/2000/svg",
|
|
745
745
|
viewBox: "0 0 1024 1024"
|
|
746
746
|
}, [
|
|
@@ -921,7 +921,7 @@ const Mi = [
|
|
|
921
921
|
},
|
|
922
922
|
emits: ["handPreview"],
|
|
923
923
|
setup(a, { emit: o }) {
|
|
924
|
-
const r = a, t = X(() => r.simple ? "simple" :
|
|
924
|
+
const r = a, t = X(() => r.simple ? "simple" : r.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: n } = En(r), s = o, l = X(() => ({
|
|
925
925
|
name: "name",
|
|
926
926
|
url: "url",
|
|
927
927
|
suffix: "suffix",
|
|
@@ -958,19 +958,19 @@ const Mi = [
|
|
|
958
958
|
return (v, y) => {
|
|
959
959
|
var b, w, H;
|
|
960
960
|
const k = st("tmplate");
|
|
961
|
-
return E(),
|
|
962
|
-
|
|
961
|
+
return E(), I(
|
|
962
|
+
pe,
|
|
963
963
|
null,
|
|
964
964
|
[
|
|
965
|
-
(b = a.list) != null && b.length ? (E(),
|
|
966
|
-
|
|
965
|
+
(b = a.list) != null && b.length ? (E(), I(
|
|
966
|
+
pe,
|
|
967
967
|
{ key: 0 },
|
|
968
968
|
[
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
969
|
+
Y(" 简单模式 "),
|
|
970
|
+
t.value === "simple" ? (E(!0), I(
|
|
971
|
+
pe,
|
|
972
972
|
{ key: 0 },
|
|
973
|
-
rt(p.value, (x, B) => (E(),
|
|
973
|
+
rt(p.value, (x, B) => (E(), I("div", {
|
|
974
974
|
class: "iking-privew-annex simple",
|
|
975
975
|
key: B,
|
|
976
976
|
onClick: (A) => h(x),
|
|
@@ -986,22 +986,22 @@ const Mi = [
|
|
|
986
986
|
T(
|
|
987
987
|
"div",
|
|
988
988
|
{
|
|
989
|
-
class:
|
|
989
|
+
class: K(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
990
990
|
},
|
|
991
991
|
[
|
|
992
|
-
a.showDownloadBtn ? (E(),
|
|
992
|
+
a.showDownloadBtn ? (E(), he(S(Ee), {
|
|
993
993
|
key: 0,
|
|
994
994
|
name: "iksvg_daochu",
|
|
995
995
|
onClick: Ct((A) => d(x), ["stop"]),
|
|
996
996
|
size: 20,
|
|
997
997
|
active: ""
|
|
998
|
-
}, null, 8, ["onClick"])) :
|
|
999
|
-
S(n).includes(x.suffix)
|
|
998
|
+
}, null, 8, ["onClick"])) : Y("v-if", !0),
|
|
999
|
+
S(n).includes(x.suffix) && a.showPreviewBtn ? (E(), he(S(Ee), {
|
|
1000
1000
|
key: 1,
|
|
1001
1001
|
name: "iksvg_yulan",
|
|
1002
1002
|
size: 20,
|
|
1003
1003
|
active: ""
|
|
1004
|
-
})) :
|
|
1004
|
+
})) : Y("v-if", !0),
|
|
1005
1005
|
Ne(v.$slots, "operation", {
|
|
1006
1006
|
data: { ...x, findex: B }
|
|
1007
1007
|
})
|
|
@@ -1012,134 +1012,148 @@ const Mi = [
|
|
|
1012
1012
|
], 12, $s))),
|
|
1013
1013
|
128
|
|
1014
1014
|
/* KEYED_FRAGMENT */
|
|
1015
|
-
)) :
|
|
1016
|
-
|
|
1017
|
-
t.value === "simple-icon" ? (E(!0), L(
|
|
1018
|
-
we,
|
|
1015
|
+
)) : t.value === "simple-icon" ? (E(), I(
|
|
1016
|
+
pe,
|
|
1019
1017
|
{ key: 1 },
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
style: ie({ width: g.value })
|
|
1025
|
-
}, [
|
|
1026
|
-
T("div", Xs, [
|
|
1027
|
-
j(S(Fi), {
|
|
1028
|
-
file: x,
|
|
1029
|
-
style: ie({ height: `${a.iconSize}px` }),
|
|
1030
|
-
class: "ikui-w-auto",
|
|
1031
|
-
fields: l.value
|
|
1032
|
-
}, null, 8, ["file", "style", "fields"]),
|
|
1033
|
-
T(
|
|
1034
|
-
"div",
|
|
1035
|
-
qs,
|
|
1036
|
-
xe(x.name),
|
|
1037
|
-
1
|
|
1038
|
-
/* TEXT */
|
|
1039
|
-
)
|
|
1040
|
-
]),
|
|
1041
|
-
a.showDownloadBtn ? (E(), ue(S(Ee), {
|
|
1042
|
-
key: 0,
|
|
1043
|
-
name: "iksvg_daochu",
|
|
1044
|
-
size: 20,
|
|
1045
|
-
title: "下载",
|
|
1046
|
-
active: "",
|
|
1047
|
-
onClick: Ct((A) => d(x), ["stop"])
|
|
1048
|
-
}, null, 8, ["onClick"])) : $("v-if", !0)
|
|
1049
|
-
], 12, Ys))),
|
|
1050
|
-
128
|
|
1051
|
-
/* KEYED_FRAGMENT */
|
|
1052
|
-
)) : $("v-if", !0),
|
|
1053
|
-
$(" 默认模式 "),
|
|
1054
|
-
t.value === "default" ? (E(), ue(k, { key: 2 }, {
|
|
1055
|
-
default: ee(() => [
|
|
1056
|
-
(E(!0), L(
|
|
1057
|
-
we,
|
|
1018
|
+
[
|
|
1019
|
+
Y(" 简单图标模式 "),
|
|
1020
|
+
(E(!0), I(
|
|
1021
|
+
pe,
|
|
1058
1022
|
null,
|
|
1059
|
-
rt(p.value, (x, B) => {
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
[
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
),
|
|
1090
|
-
T(
|
|
1091
|
-
"div",
|
|
1092
|
-
eo,
|
|
1093
|
-
xe(S(Ws)(x.size)),
|
|
1094
|
-
1
|
|
1095
|
-
/* TEXT */
|
|
1096
|
-
)
|
|
1097
|
-
]),
|
|
1098
|
-
T(
|
|
1099
|
-
"div",
|
|
1100
|
-
{
|
|
1101
|
-
class: Y(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
1102
|
-
},
|
|
1103
|
-
[
|
|
1104
|
-
a.showDownloadBtn ? (E(), ue(S(Ee), {
|
|
1105
|
-
key: 0,
|
|
1106
|
-
name: "iksvg_daochu",
|
|
1107
|
-
onClick: Ct((te) => d(x), ["stop"]),
|
|
1108
|
-
bg: a.showBg,
|
|
1109
|
-
size: a.showBg ? "default" : 20,
|
|
1110
|
-
title: "下载"
|
|
1111
|
-
}, null, 8, ["onClick", "bg", "size"])) : $("v-if", !0),
|
|
1112
|
-
S(n).includes(x.suffix) || a.showPreviewBtn ? (E(), ue(S(Ee), {
|
|
1113
|
-
key: 1,
|
|
1114
|
-
name: "iksvg_yulan",
|
|
1115
|
-
bg: a.showBg,
|
|
1116
|
-
size: a.showBg ? "default" : 20,
|
|
1117
|
-
title: "预览"
|
|
1118
|
-
}, null, 8, ["bg", "size"])) : $("v-if", !0),
|
|
1119
|
-
Ne(v.$slots, "operation", {
|
|
1120
|
-
data: { ...x, findex: B }
|
|
1121
|
-
})
|
|
1122
|
-
],
|
|
1123
|
-
2
|
|
1124
|
-
/* CLASS */
|
|
1125
|
-
)
|
|
1126
|
-
], 8, Zs)
|
|
1127
|
-
],
|
|
1128
|
-
6
|
|
1129
|
-
/* CLASS, STYLE */
|
|
1130
|
-
);
|
|
1131
|
-
}),
|
|
1023
|
+
rt(p.value, (x, B) => (E(), I("div", {
|
|
1024
|
+
class: "iking-privew-annex simple-icon",
|
|
1025
|
+
key: B,
|
|
1026
|
+
onClick: (A) => h(x),
|
|
1027
|
+
style: ie({ width: g.value })
|
|
1028
|
+
}, [
|
|
1029
|
+
T("div", Xs, [
|
|
1030
|
+
j(S(Fi), {
|
|
1031
|
+
file: x,
|
|
1032
|
+
style: ie({ height: `${a.iconSize}px` }),
|
|
1033
|
+
class: "ikui-w-auto",
|
|
1034
|
+
fields: l.value
|
|
1035
|
+
}, null, 8, ["file", "style", "fields"]),
|
|
1036
|
+
T(
|
|
1037
|
+
"div",
|
|
1038
|
+
qs,
|
|
1039
|
+
xe(x.name),
|
|
1040
|
+
1
|
|
1041
|
+
/* TEXT */
|
|
1042
|
+
)
|
|
1043
|
+
]),
|
|
1044
|
+
a.showDownloadBtn ? (E(), he(S(Ee), {
|
|
1045
|
+
key: 0,
|
|
1046
|
+
name: "iksvg_daochu",
|
|
1047
|
+
size: 20,
|
|
1048
|
+
title: "下载",
|
|
1049
|
+
active: "",
|
|
1050
|
+
onClick: Ct((A) => d(x), ["stop"])
|
|
1051
|
+
}, null, 8, ["onClick"])) : Y("v-if", !0)
|
|
1052
|
+
], 12, Ys))),
|
|
1132
1053
|
128
|
|
1133
1054
|
/* KEYED_FRAGMENT */
|
|
1134
1055
|
))
|
|
1135
|
-
]
|
|
1136
|
-
|
|
1137
|
-
/*
|
|
1138
|
-
|
|
1056
|
+
],
|
|
1057
|
+
64
|
|
1058
|
+
/* STABLE_FRAGMENT */
|
|
1059
|
+
)) : (E(), I(
|
|
1060
|
+
pe,
|
|
1061
|
+
{ key: 2 },
|
|
1062
|
+
[
|
|
1063
|
+
Y(" 默认模式 "),
|
|
1064
|
+
j(k, null, {
|
|
1065
|
+
default: ee(() => [
|
|
1066
|
+
(E(!0), I(
|
|
1067
|
+
pe,
|
|
1068
|
+
null,
|
|
1069
|
+
rt(p.value, (x, B) => {
|
|
1070
|
+
var A;
|
|
1071
|
+
return E(), I(
|
|
1072
|
+
"div",
|
|
1073
|
+
{
|
|
1074
|
+
class: K(["iking-privew-annex", { "is-bg": a.showBg }]),
|
|
1075
|
+
key: B,
|
|
1076
|
+
style: ie({
|
|
1077
|
+
marginBottom: B == ((A = a.list) == null ? void 0 : A.length) - 1 ? "0" : "10px",
|
|
1078
|
+
width: g.value
|
|
1079
|
+
})
|
|
1080
|
+
},
|
|
1081
|
+
[
|
|
1082
|
+
T("div", {
|
|
1083
|
+
class: "file-card",
|
|
1084
|
+
onClick: (te) => h(x)
|
|
1085
|
+
}, [
|
|
1086
|
+
j(S(Fi), {
|
|
1087
|
+
file: x,
|
|
1088
|
+
style: ie({ height: `${a.iconSize}px` }),
|
|
1089
|
+
class: "ikui-w-auto",
|
|
1090
|
+
fields: l.value
|
|
1091
|
+
}, null, 8, ["file", "style", "fields"]),
|
|
1092
|
+
T("div", Js, [
|
|
1093
|
+
T(
|
|
1094
|
+
"div",
|
|
1095
|
+
Qs,
|
|
1096
|
+
xe(x.name),
|
|
1097
|
+
1
|
|
1098
|
+
/* TEXT */
|
|
1099
|
+
),
|
|
1100
|
+
T(
|
|
1101
|
+
"div",
|
|
1102
|
+
eo,
|
|
1103
|
+
xe(S(Ws)(x.size)),
|
|
1104
|
+
1
|
|
1105
|
+
/* TEXT */
|
|
1106
|
+
)
|
|
1107
|
+
]),
|
|
1108
|
+
T(
|
|
1109
|
+
"div",
|
|
1110
|
+
{
|
|
1111
|
+
class: K(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
1112
|
+
},
|
|
1113
|
+
[
|
|
1114
|
+
a.showDownloadBtn ? (E(), he(S(Ee), {
|
|
1115
|
+
key: 0,
|
|
1116
|
+
name: "iksvg_daochu",
|
|
1117
|
+
onClick: Ct((te) => d(x), ["stop"]),
|
|
1118
|
+
bg: a.showBg,
|
|
1119
|
+
size: a.showBg ? "default" : 20,
|
|
1120
|
+
title: "下载"
|
|
1121
|
+
}, null, 8, ["onClick", "bg", "size"])) : Y("v-if", !0),
|
|
1122
|
+
S(n).includes(x.suffix) && a.showPreviewBtn ? (E(), he(S(Ee), {
|
|
1123
|
+
key: 1,
|
|
1124
|
+
name: "iksvg_yulan",
|
|
1125
|
+
bg: a.showBg,
|
|
1126
|
+
size: a.showBg ? "default" : 20,
|
|
1127
|
+
title: "预览"
|
|
1128
|
+
}, null, 8, ["bg", "size"])) : Y("v-if", !0),
|
|
1129
|
+
Ne(v.$slots, "operation", {
|
|
1130
|
+
data: { ...x, findex: B }
|
|
1131
|
+
})
|
|
1132
|
+
],
|
|
1133
|
+
2
|
|
1134
|
+
/* CLASS */
|
|
1135
|
+
)
|
|
1136
|
+
], 8, Zs)
|
|
1137
|
+
],
|
|
1138
|
+
6
|
|
1139
|
+
/* CLASS, STYLE */
|
|
1140
|
+
);
|
|
1141
|
+
}),
|
|
1142
|
+
128
|
|
1143
|
+
/* KEYED_FRAGMENT */
|
|
1144
|
+
))
|
|
1145
|
+
]),
|
|
1146
|
+
_: 3
|
|
1147
|
+
/* FORWARDED */
|
|
1148
|
+
})
|
|
1149
|
+
],
|
|
1150
|
+
2112
|
|
1151
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1152
|
+
))
|
|
1139
1153
|
],
|
|
1140
1154
|
64
|
|
1141
1155
|
/* STABLE_FRAGMENT */
|
|
1142
|
-
)) :
|
|
1156
|
+
)) : Y("v-if", !0),
|
|
1143
1157
|
j(S(ro), {
|
|
1144
1158
|
show: c.value,
|
|
1145
1159
|
"onUpdate:show": y[0] || (y[0] = (x) => c.value = x),
|
|
@@ -1255,20 +1269,20 @@ const io = Ae(to), no = /* @__PURE__ */ J({
|
|
|
1255
1269
|
};
|
|
1256
1270
|
return (u, c) => {
|
|
1257
1271
|
var h, d, g;
|
|
1258
|
-
return r.value ? (E(),
|
|
1259
|
-
|
|
1272
|
+
return r.value ? (E(), I(
|
|
1273
|
+
pe,
|
|
1260
1274
|
{ key: 0 },
|
|
1261
1275
|
[
|
|
1262
|
-
(h = i.value) != null && h.url && n.image ? (E(),
|
|
1276
|
+
(h = i.value) != null && h.url && n.image ? (E(), he(S(jo), {
|
|
1263
1277
|
key: 0,
|
|
1264
1278
|
onClose: c[0] || (c[0] = (p) => l()),
|
|
1265
1279
|
ref: "previewImgRef",
|
|
1266
1280
|
"url-list": [(d = i.value) == null ? void 0 : d.url],
|
|
1267
1281
|
teleported: "",
|
|
1268
1282
|
"z-index": 9999
|
|
1269
|
-
}, null, 8, ["url-list"])) :
|
|
1270
|
-
|
|
1271
|
-
|
|
1283
|
+
}, null, 8, ["url-list"])) : Y("v-if", !0),
|
|
1284
|
+
Y(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
1285
|
+
Y(" 文档类 "),
|
|
1272
1286
|
j(S(su), {
|
|
1273
1287
|
modelValue: n.video,
|
|
1274
1288
|
"onUpdate:modelValue": c[1] || (c[1] = (p) => n.video = p),
|
|
@@ -1304,7 +1318,7 @@ const io = Ae(to), no = /* @__PURE__ */ J({
|
|
|
1304
1318
|
],
|
|
1305
1319
|
64
|
|
1306
1320
|
/* STABLE_FRAGMENT */
|
|
1307
|
-
)) :
|
|
1321
|
+
)) : Y("v-if", !0);
|
|
1308
1322
|
};
|
|
1309
1323
|
}
|
|
1310
1324
|
});
|
|
@@ -1379,12 +1393,12 @@ const ro = Ae(no), so = {
|
|
|
1379
1393
|
});
|
|
1380
1394
|
return (i, n) => {
|
|
1381
1395
|
const s = st("el-tooltip"), l = st("el-button");
|
|
1382
|
-
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (E(),
|
|
1383
|
-
r.value.notip || !r.value.title ? (E(),
|
|
1396
|
+
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (E(), I("span", so, [
|
|
1397
|
+
r.value.notip || !r.value.title ? (E(), I(
|
|
1384
1398
|
"i",
|
|
1385
1399
|
{
|
|
1386
1400
|
key: 0,
|
|
1387
|
-
class:
|
|
1401
|
+
class: K(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1388
1402
|
[i.name]: t.value === "unocss",
|
|
1389
1403
|
"show-bg": r.value.showBg || r.value.bg,
|
|
1390
1404
|
default: r.value.size === "default",
|
|
@@ -1400,30 +1414,30 @@ const ro = Ae(no), so = {
|
|
|
1400
1414
|
style: ie(e.value)
|
|
1401
1415
|
},
|
|
1402
1416
|
[
|
|
1403
|
-
|
|
1404
|
-
t.value === "iksig" ? (E(),
|
|
1417
|
+
Y(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
1418
|
+
t.value === "iksig" ? (E(), I(
|
|
1405
1419
|
"i",
|
|
1406
1420
|
{
|
|
1407
1421
|
key: 0,
|
|
1408
|
-
class:
|
|
1422
|
+
class: K(`iksig ${r.value.name}`),
|
|
1409
1423
|
style: ie(e.value)
|
|
1410
1424
|
},
|
|
1411
1425
|
null,
|
|
1412
1426
|
6
|
|
1413
1427
|
/* CLASS, STYLE */
|
|
1414
|
-
)) : t.value === "svg" ? (E(),
|
|
1428
|
+
)) : t.value === "svg" ? (E(), I("svg", oo, [
|
|
1415
1429
|
T("use", {
|
|
1416
1430
|
"xlink:href": `#${r.value.name}`
|
|
1417
1431
|
}, null, 8, ao)
|
|
1418
|
-
])) : t.value === "img" ? (E(),
|
|
1432
|
+
])) : t.value === "img" ? (E(), I("img", {
|
|
1419
1433
|
key: 2,
|
|
1420
1434
|
src: r.value.name,
|
|
1421
1435
|
class: "h-[1em] w-[1em]"
|
|
1422
|
-
}, null, 8, lo)) : (E(),
|
|
1436
|
+
}, null, 8, lo)) : (E(), I(
|
|
1423
1437
|
"i",
|
|
1424
1438
|
{
|
|
1425
1439
|
key: 3,
|
|
1426
|
-
class:
|
|
1440
|
+
class: K(r.value.name),
|
|
1427
1441
|
style: ie(e.value)
|
|
1428
1442
|
},
|
|
1429
1443
|
null,
|
|
@@ -1433,7 +1447,7 @@ const ro = Ae(no), so = {
|
|
|
1433
1447
|
],
|
|
1434
1448
|
6
|
|
1435
1449
|
/* CLASS, STYLE */
|
|
1436
|
-
)) : (E(),
|
|
1450
|
+
)) : (E(), he(s, {
|
|
1437
1451
|
key: 1,
|
|
1438
1452
|
content: r.value.title,
|
|
1439
1453
|
placement: "top"
|
|
@@ -1442,7 +1456,7 @@ const ro = Ae(no), so = {
|
|
|
1442
1456
|
T(
|
|
1443
1457
|
"i",
|
|
1444
1458
|
{
|
|
1445
|
-
class:
|
|
1459
|
+
class: K(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1446
1460
|
[i.name]: t.value === "unocss",
|
|
1447
1461
|
"show-bg": r.value.showBg || r.value.bg,
|
|
1448
1462
|
default: r.value.size === "default",
|
|
@@ -1457,29 +1471,29 @@ const ro = Ae(no), so = {
|
|
|
1457
1471
|
style: ie(e.value)
|
|
1458
1472
|
},
|
|
1459
1473
|
[
|
|
1460
|
-
t.value === "iksig" ? (E(),
|
|
1474
|
+
t.value === "iksig" ? (E(), I(
|
|
1461
1475
|
"i",
|
|
1462
1476
|
{
|
|
1463
1477
|
key: 0,
|
|
1464
|
-
class:
|
|
1478
|
+
class: K(`iksig ${r.value.name}`),
|
|
1465
1479
|
style: ie(e.value)
|
|
1466
1480
|
},
|
|
1467
1481
|
null,
|
|
1468
1482
|
6
|
|
1469
1483
|
/* CLASS, STYLE */
|
|
1470
|
-
)) : t.value === "svg" ? (E(),
|
|
1484
|
+
)) : t.value === "svg" ? (E(), I("svg", uo, [
|
|
1471
1485
|
T("use", {
|
|
1472
1486
|
"xlink:href": `#${r.value.name}`
|
|
1473
1487
|
}, null, 8, co)
|
|
1474
|
-
])) : t.value === "img" ? (E(),
|
|
1488
|
+
])) : t.value === "img" ? (E(), I("img", {
|
|
1475
1489
|
key: 2,
|
|
1476
1490
|
src: r.value.name,
|
|
1477
1491
|
class: "h-[1em] w-[1em]"
|
|
1478
|
-
}, null, 8, fo)) : (E(),
|
|
1492
|
+
}, null, 8, fo)) : (E(), I(
|
|
1479
1493
|
"i",
|
|
1480
1494
|
{
|
|
1481
1495
|
key: 3,
|
|
1482
|
-
class:
|
|
1496
|
+
class: K(r.value.name),
|
|
1483
1497
|
style: ie(e.value)
|
|
1484
1498
|
},
|
|
1485
1499
|
null,
|
|
@@ -1494,7 +1508,7 @@ const ro = Ae(no), so = {
|
|
|
1494
1508
|
_: 1
|
|
1495
1509
|
/* STABLE */
|
|
1496
1510
|
}, 8, ["content"]))
|
|
1497
|
-
])) : (E(),
|
|
1511
|
+
])) : (E(), he(l, {
|
|
1498
1512
|
key: 1,
|
|
1499
1513
|
type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
|
|
1500
1514
|
}, {
|
|
@@ -1524,10 +1538,10 @@ const go = /* @__PURE__ */ Ot(ho, [["__scopeId", "data-v-52806adf"]]), Ee = Ae(g
|
|
|
1524
1538
|
}
|
|
1525
1539
|
},
|
|
1526
1540
|
setup(a) {
|
|
1527
|
-
return (o, r) => (E(),
|
|
1541
|
+
return (o, r) => (E(), I(
|
|
1528
1542
|
"div",
|
|
1529
1543
|
{
|
|
1530
|
-
class:
|
|
1544
|
+
class: K({ "exit-main-page-maximize": a.showBg && a.fullscreen })
|
|
1531
1545
|
},
|
|
1532
1546
|
[
|
|
1533
1547
|
j(S(Ee), {
|
|
@@ -1575,7 +1589,7 @@ const vo = /* @__PURE__ */ Ot(po, [["__scopeId", "data-v-da39e979"]]), mo = { cl
|
|
|
1575
1589
|
});
|
|
1576
1590
|
return (n, s) => {
|
|
1577
1591
|
const l = st("el-dialog");
|
|
1578
|
-
return E(),
|
|
1592
|
+
return E(), he(l, or({
|
|
1579
1593
|
modelValue: r.value,
|
|
1580
1594
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u),
|
|
1581
1595
|
"align-center": ""
|
|
@@ -1604,13 +1618,13 @@ const vo = /* @__PURE__ */ Ot(po, [["__scopeId", "data-v-da39e979"]]), mo = { cl
|
|
|
1604
1618
|
)
|
|
1605
1619
|
])
|
|
1606
1620
|
]),
|
|
1607
|
-
n.$attrs.showClose ? (E(),
|
|
1621
|
+
n.$attrs.showClose ? (E(), he(S(Ee), {
|
|
1608
1622
|
key: 0,
|
|
1609
1623
|
onClick: e,
|
|
1610
1624
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
1611
1625
|
class: "absolute! top-[18px] right-[50px] icon-dialog-full",
|
|
1612
1626
|
title: t.value ? "退出全屏" : "全屏"
|
|
1613
|
-
}, null, 8, ["name", "title"])) :
|
|
1627
|
+
}, null, 8, ["name", "title"])) : Y("v-if", !0)
|
|
1614
1628
|
]),
|
|
1615
1629
|
default: ee(() => [
|
|
1616
1630
|
Ne(n.$slots, "default")
|
|
@@ -1932,7 +1946,7 @@ var bo = function(a, o) {
|
|
|
1932
1946
|
});
|
|
1933
1947
|
const To = ["id"];
|
|
1934
1948
|
function Eo(a, o, r, t, e, i) {
|
|
1935
|
-
return E(),
|
|
1949
|
+
return E(), I("div", { id: a.id }, null, 8, To);
|
|
1936
1950
|
}
|
|
1937
1951
|
gi.render = Eo;
|
|
1938
1952
|
gi.__file = "src/components/DocumentEditor.vue";
|
|
@@ -1965,7 +1979,7 @@ const So = /* @__PURE__ */ J({
|
|
|
1965
1979
|
}), t = () => {
|
|
1966
1980
|
console.info("文档加载完成", o.configOptions);
|
|
1967
1981
|
};
|
|
1968
|
-
return (e, i) => (E(),
|
|
1982
|
+
return (e, i) => (E(), I(
|
|
1969
1983
|
"div",
|
|
1970
1984
|
{
|
|
1971
1985
|
style: ie({ height: o.officeHeight })
|
|
@@ -2167,13 +2181,13 @@ const Ho = {
|
|
|
2167
2181
|
l.e("next"),
|
|
2168
2182
|
l.is("disabled", !i.infinite && H.value)
|
|
2169
2183
|
]), te = X(() => {
|
|
2170
|
-
const { scale: M, deg: G, offsetX: q, offsetY:
|
|
2171
|
-
let
|
|
2184
|
+
const { scale: M, deg: G, offsetX: q, offsetY: ve, enableTransition: _e } = y.value;
|
|
2185
|
+
let ke = q / M, De = ve / M;
|
|
2172
2186
|
const lt = G * Math.PI / 180, Ai = Math.cos(lt), Di = Math.sin(lt);
|
|
2173
|
-
|
|
2187
|
+
ke = ke * Ai + De * Di, De = De * Ai - q / M * Di;
|
|
2174
2188
|
const Ut = {
|
|
2175
|
-
transform: `scale(${M}) rotate(${G}deg) translate(${
|
|
2176
|
-
transition:
|
|
2189
|
+
transform: `scale(${M}) rotate(${G}deg) translate(${ke}px, ${De}px)`,
|
|
2190
|
+
transition: _e ? "transform .3s" : ""
|
|
2177
2191
|
};
|
|
2178
2192
|
return v.value.name === e.CONTAIN.name && (Ut.maxWidth = Ut.maxHeight = "100%"), Ut;
|
|
2179
2193
|
});
|
|
@@ -2203,8 +2217,8 @@ const Ho = {
|
|
|
2203
2217
|
break;
|
|
2204
2218
|
}
|
|
2205
2219
|
}), G = zt.throttle((q) => {
|
|
2206
|
-
const
|
|
2207
|
-
Ve(
|
|
2220
|
+
const ve = q.deltaY || q.deltaX;
|
|
2221
|
+
Ve(ve < 0 ? "zoomIn" : "zoomOut", {
|
|
2208
2222
|
zoomRate: i.zoomRate,
|
|
2209
2223
|
enableTransition: !1
|
|
2210
2224
|
});
|
|
@@ -2216,23 +2230,23 @@ const Ho = {
|
|
|
2216
2230
|
function re() {
|
|
2217
2231
|
d.stop();
|
|
2218
2232
|
}
|
|
2219
|
-
function
|
|
2233
|
+
function ue() {
|
|
2220
2234
|
g.value = !1;
|
|
2221
2235
|
}
|
|
2222
|
-
function
|
|
2236
|
+
function ce(M) {
|
|
2223
2237
|
g.value = !1, M.target.alt = s("el.image.error");
|
|
2224
2238
|
}
|
|
2225
2239
|
function be(M) {
|
|
2226
2240
|
if (g.value || M.button !== 0 || !c.value)
|
|
2227
2241
|
return;
|
|
2228
2242
|
y.value.enableTransition = !1;
|
|
2229
|
-
const { offsetX: G, offsetY: q } = y.value,
|
|
2243
|
+
const { offsetX: G, offsetY: q } = y.value, ve = M.pageX, _e = M.pageY, ke = zt.throttle((lt) => {
|
|
2230
2244
|
y.value = {
|
|
2231
2245
|
...y.value,
|
|
2232
|
-
offsetX: G + lt.pageX -
|
|
2233
|
-
offsetY: q + lt.pageY -
|
|
2246
|
+
offsetX: G + lt.pageX - ve,
|
|
2247
|
+
offsetY: q + lt.pageY - _e
|
|
2234
2248
|
};
|
|
2235
|
-
}), De = vt(document, "mousemove",
|
|
2249
|
+
}), De = vt(document, "mousemove", ke);
|
|
2236
2250
|
vt(document, "mouseup", () => {
|
|
2237
2251
|
De();
|
|
2238
2252
|
}), M.preventDefault();
|
|
@@ -2249,8 +2263,8 @@ const Ho = {
|
|
|
2249
2263
|
function Ii() {
|
|
2250
2264
|
if (g.value)
|
|
2251
2265
|
return;
|
|
2252
|
-
const M = t(e), G = Object.values(e), q = v.value.name,
|
|
2253
|
-
v.value = e[M[
|
|
2266
|
+
const M = t(e), G = Object.values(e), q = v.value.name, _e = ((G == null ? void 0 : G.findIndex((ke) => ke.name === q)) + 1) % M.length;
|
|
2267
|
+
v.value = e[M[_e]], xi();
|
|
2254
2268
|
}
|
|
2255
2269
|
function Ht(M) {
|
|
2256
2270
|
const G = i.urlList.length;
|
|
@@ -2265,7 +2279,7 @@ const Ho = {
|
|
|
2265
2279
|
function Ve(M, G = {}) {
|
|
2266
2280
|
if (g.value)
|
|
2267
2281
|
return;
|
|
2268
|
-
const { minScale: q, maxScale:
|
|
2282
|
+
const { minScale: q, maxScale: ve } = i, { zoomRate: _e, rotateDeg: ke, enableTransition: De } = {
|
|
2269
2283
|
zoomRate: i.zoomRate,
|
|
2270
2284
|
rotateDeg: 90,
|
|
2271
2285
|
enableTransition: !0,
|
|
@@ -2274,19 +2288,19 @@ const Ho = {
|
|
|
2274
2288
|
switch (M) {
|
|
2275
2289
|
case "zoomOut":
|
|
2276
2290
|
y.value.scale > q && (y.value.scale = Number.parseFloat(
|
|
2277
|
-
(y.value.scale /
|
|
2291
|
+
(y.value.scale / _e).toFixed(3)
|
|
2278
2292
|
));
|
|
2279
2293
|
break;
|
|
2280
2294
|
case "zoomIn":
|
|
2281
|
-
y.value.scale <
|
|
2282
|
-
(y.value.scale *
|
|
2295
|
+
y.value.scale < ve && (y.value.scale = Number.parseFloat(
|
|
2296
|
+
(y.value.scale * _e).toFixed(3)
|
|
2283
2297
|
));
|
|
2284
2298
|
break;
|
|
2285
2299
|
case "clockwise":
|
|
2286
|
-
y.value.deg +=
|
|
2300
|
+
y.value.deg += ke, n("rotate", y.value.deg);
|
|
2287
2301
|
break;
|
|
2288
2302
|
case "anticlockwise":
|
|
2289
|
-
y.value.deg -=
|
|
2303
|
+
y.value.deg -= ke, n("rotate", y.value.deg);
|
|
2290
2304
|
break;
|
|
2291
2305
|
}
|
|
2292
2306
|
y.value.enableTransition = De;
|
|
@@ -2306,7 +2320,7 @@ const Ho = {
|
|
|
2306
2320
|
* @description manually switch image
|
|
2307
2321
|
*/
|
|
2308
2322
|
setActiveItem: Ht
|
|
2309
|
-
}), (M, G) => (E(),
|
|
2323
|
+
}), (M, G) => (E(), he(kn, { to: "body" }, [
|
|
2310
2324
|
j(Cn, {
|
|
2311
2325
|
name: "viewer-fade",
|
|
2312
2326
|
appear: ""
|
|
@@ -2318,25 +2332,25 @@ const Ho = {
|
|
|
2318
2332
|
ref_key: "wrapper",
|
|
2319
2333
|
ref: c,
|
|
2320
2334
|
tabindex: -1,
|
|
2321
|
-
class:
|
|
2335
|
+
class: K(S(l).e("wrapper")),
|
|
2322
2336
|
style: ie({ zIndex: k.value })
|
|
2323
2337
|
},
|
|
2324
2338
|
[
|
|
2325
2339
|
T(
|
|
2326
2340
|
"div",
|
|
2327
2341
|
{
|
|
2328
|
-
class:
|
|
2342
|
+
class: K(S(l).e("mask")),
|
|
2329
2343
|
onClick: G[0] || (G[0] = Ct((q) => M.hideOnClickModal && Q(), ["self"]))
|
|
2330
2344
|
},
|
|
2331
2345
|
null,
|
|
2332
2346
|
2
|
|
2333
2347
|
/* CLASS */
|
|
2334
2348
|
),
|
|
2335
|
-
|
|
2349
|
+
Y(" CLOSE "),
|
|
2336
2350
|
T(
|
|
2337
2351
|
"span",
|
|
2338
2352
|
{
|
|
2339
|
-
class:
|
|
2353
|
+
class: K([S(l).e("btn"), S(l).e("close")]),
|
|
2340
2354
|
onClick: Q
|
|
2341
2355
|
},
|
|
2342
2356
|
[
|
|
@@ -2351,15 +2365,15 @@ const Ho = {
|
|
|
2351
2365
|
2
|
|
2352
2366
|
/* CLASS */
|
|
2353
2367
|
),
|
|
2354
|
-
|
|
2355
|
-
b.value ?
|
|
2356
|
-
|
|
2368
|
+
Y(" ARROW "),
|
|
2369
|
+
b.value ? Y("v-if", !0) : (E(), I(
|
|
2370
|
+
pe,
|
|
2357
2371
|
{ key: 0 },
|
|
2358
2372
|
[
|
|
2359
2373
|
T(
|
|
2360
2374
|
"span",
|
|
2361
2375
|
{
|
|
2362
|
-
class:
|
|
2376
|
+
class: K(B.value),
|
|
2363
2377
|
onClick: Pi
|
|
2364
2378
|
},
|
|
2365
2379
|
[
|
|
@@ -2377,7 +2391,7 @@ const Ho = {
|
|
|
2377
2391
|
T(
|
|
2378
2392
|
"span",
|
|
2379
2393
|
{
|
|
2380
|
-
class:
|
|
2394
|
+
class: K(A.value),
|
|
2381
2395
|
onClick: Li
|
|
2382
2396
|
},
|
|
2383
2397
|
[
|
|
@@ -2396,17 +2410,17 @@ const Ho = {
|
|
|
2396
2410
|
64
|
|
2397
2411
|
/* STABLE_FRAGMENT */
|
|
2398
2412
|
)),
|
|
2399
|
-
|
|
2413
|
+
Y(" ACTIONS "),
|
|
2400
2414
|
T(
|
|
2401
2415
|
"div",
|
|
2402
2416
|
{
|
|
2403
|
-
class:
|
|
2417
|
+
class: K([S(l).e("btn"), S(l).e("actions")])
|
|
2404
2418
|
},
|
|
2405
2419
|
[
|
|
2406
2420
|
T(
|
|
2407
2421
|
"div",
|
|
2408
2422
|
{
|
|
2409
|
-
class:
|
|
2423
|
+
class: K(S(l).e("actions__inner"))
|
|
2410
2424
|
},
|
|
2411
2425
|
[
|
|
2412
2426
|
j(S(Oe), {
|
|
@@ -2430,7 +2444,7 @@ const Ho = {
|
|
|
2430
2444
|
T(
|
|
2431
2445
|
"i",
|
|
2432
2446
|
{
|
|
2433
|
-
class:
|
|
2447
|
+
class: K(S(l).e("actions__divider"))
|
|
2434
2448
|
},
|
|
2435
2449
|
null,
|
|
2436
2450
|
2
|
|
@@ -2438,7 +2452,7 @@ const Ho = {
|
|
|
2438
2452
|
),
|
|
2439
2453
|
j(S(Oe), { onClick: Ii }, {
|
|
2440
2454
|
default: ee(() => [
|
|
2441
|
-
(E(),
|
|
2455
|
+
(E(), he(dr(v.value.icon)))
|
|
2442
2456
|
]),
|
|
2443
2457
|
_: 1
|
|
2444
2458
|
/* STABLE */
|
|
@@ -2446,7 +2460,7 @@ const Ho = {
|
|
|
2446
2460
|
T(
|
|
2447
2461
|
"i",
|
|
2448
2462
|
{
|
|
2449
|
-
class:
|
|
2463
|
+
class: K(S(l).e("actions__divider"))
|
|
2450
2464
|
},
|
|
2451
2465
|
null,
|
|
2452
2466
|
2
|
|
@@ -2478,29 +2492,29 @@ const Ho = {
|
|
|
2478
2492
|
2
|
|
2479
2493
|
/* CLASS */
|
|
2480
2494
|
),
|
|
2481
|
-
|
|
2495
|
+
Y(" CANVAS "),
|
|
2482
2496
|
T(
|
|
2483
2497
|
"div",
|
|
2484
2498
|
{
|
|
2485
|
-
class:
|
|
2499
|
+
class: K(S(l).e("canvas"))
|
|
2486
2500
|
},
|
|
2487
2501
|
[
|
|
2488
|
-
(E(!0),
|
|
2489
|
-
|
|
2502
|
+
(E(!0), I(
|
|
2503
|
+
pe,
|
|
2490
2504
|
null,
|
|
2491
|
-
rt(M.urlList, (q,
|
|
2505
|
+
rt(M.urlList, (q, ve) => gr((E(), I("img", {
|
|
2492
2506
|
ref_for: !0,
|
|
2493
|
-
ref: (
|
|
2507
|
+
ref: (_e) => h.value[ve] = _e,
|
|
2494
2508
|
key: q,
|
|
2495
2509
|
src: q,
|
|
2496
2510
|
style: ie(te.value),
|
|
2497
|
-
class:
|
|
2511
|
+
class: K(S(l).e("img")),
|
|
2498
2512
|
crossorigin: M.crossorigin,
|
|
2499
|
-
onLoad:
|
|
2500
|
-
onError:
|
|
2513
|
+
onLoad: ue,
|
|
2514
|
+
onError: ce,
|
|
2501
2515
|
onMousedown: be
|
|
2502
2516
|
}, null, 46, zo)), [
|
|
2503
|
-
[pr,
|
|
2517
|
+
[pr, ve === p.value]
|
|
2504
2518
|
])),
|
|
2505
2519
|
128
|
|
2506
2520
|
/* KEYED_FRAGMENT */
|
|
@@ -2550,7 +2564,7 @@ function ae(a) {
|
|
|
2550
2564
|
return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
2551
2565
|
}, ae(a);
|
|
2552
2566
|
}
|
|
2553
|
-
function
|
|
2567
|
+
function P(a, o) {
|
|
2554
2568
|
if (!(a instanceof o))
|
|
2555
2569
|
throw new TypeError("Cannot call a class as a function");
|
|
2556
2570
|
}
|
|
@@ -2560,7 +2574,7 @@ function Gi(a, o) {
|
|
|
2560
2574
|
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(a, In(t.key), t);
|
|
2561
2575
|
}
|
|
2562
2576
|
}
|
|
2563
|
-
function
|
|
2577
|
+
function L(a, o, r) {
|
|
2564
2578
|
return o && Gi(a.prototype, o), r && Gi(a, r), Object.defineProperty(a, "prototype", {
|
|
2565
2579
|
writable: !1
|
|
2566
2580
|
}), a;
|
|
@@ -2646,7 +2660,7 @@ function F() {
|
|
|
2646
2660
|
}
|
|
2647
2661
|
}, F.apply(this, arguments);
|
|
2648
2662
|
}
|
|
2649
|
-
function
|
|
2663
|
+
function me(a) {
|
|
2650
2664
|
return $o(a) || Ko(a) || Yo(a) || Xo();
|
|
2651
2665
|
}
|
|
2652
2666
|
function $o(a) {
|
|
@@ -2839,9 +2853,9 @@ function Jo(a) {
|
|
|
2839
2853
|
}
|
|
2840
2854
|
var Qo = /* @__PURE__ */ function() {
|
|
2841
2855
|
function a(o) {
|
|
2842
|
-
|
|
2856
|
+
P(this, a), this.bufferedList = o;
|
|
2843
2857
|
}
|
|
2844
|
-
return
|
|
2858
|
+
return L(a, [{
|
|
2845
2859
|
key: "start",
|
|
2846
2860
|
value: function(r) {
|
|
2847
2861
|
return this.bufferedList[r].start;
|
|
@@ -2972,7 +2986,7 @@ f.deepMerge = function(a, o) {
|
|
|
2972
2986
|
if (f.typeOf(o[r]) === "Array" && f.typeOf(a[r]) === "Array") {
|
|
2973
2987
|
if (f.typeOf(a[r]) === "Array") {
|
|
2974
2988
|
var t;
|
|
2975
|
-
(t = a[r]).push.apply(t,
|
|
2989
|
+
(t = a[r]).push.apply(t, me(o[r]));
|
|
2976
2990
|
}
|
|
2977
2991
|
} else
|
|
2978
2992
|
f.typeOf(a[r]) === f.typeOf(o[r]) && a[r] !== null && f.typeOf(a[r]) === "Object" && !(o[r] instanceof window.Node) ? f.deepMerge(a[r], o[r]) : o[r] !== null && (a[r] = o[r]);
|
|
@@ -3292,8 +3306,8 @@ function ta(a, o, r) {
|
|
|
3292
3306
|
throw new TypeError("Expected a function");
|
|
3293
3307
|
o = +o || 0, Dn(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, o) : i, d = "trailing" in r ? !!r.trailing : d);
|
|
3294
3308
|
function p(z) {
|
|
3295
|
-
var re = t,
|
|
3296
|
-
return t = e = void 0, u = z, n = a.apply(
|
|
3309
|
+
var re = t, ue = e;
|
|
3310
|
+
return t = e = void 0, u = z, n = a.apply(ue, re), n;
|
|
3297
3311
|
}
|
|
3298
3312
|
function v(z, re) {
|
|
3299
3313
|
return g ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(z)) : setTimeout(z, re);
|
|
@@ -3307,12 +3321,12 @@ function ta(a, o, r) {
|
|
|
3307
3321
|
return u = z, s = v(H, o), c ? p(z) : n;
|
|
3308
3322
|
}
|
|
3309
3323
|
function b(z) {
|
|
3310
|
-
var re = z - l,
|
|
3311
|
-
return h ? Math.min(
|
|
3324
|
+
var re = z - l, ue = z - u, ce = o - re;
|
|
3325
|
+
return h ? Math.min(ce, i - ue) : ce;
|
|
3312
3326
|
}
|
|
3313
3327
|
function w(z) {
|
|
3314
|
-
var re = z - l,
|
|
3315
|
-
return l === void 0 || re >= o || re < 0 || h &&
|
|
3328
|
+
var re = z - l, ue = z - u;
|
|
3329
|
+
return l === void 0 || re >= o || re < 0 || h && ue >= i;
|
|
3316
3330
|
}
|
|
3317
3331
|
function H() {
|
|
3318
3332
|
var z = Date.now();
|
|
@@ -3333,9 +3347,9 @@ function ta(a, o, r) {
|
|
|
3333
3347
|
return s !== void 0;
|
|
3334
3348
|
}
|
|
3335
3349
|
function Q() {
|
|
3336
|
-
for (var z = Date.now(), re = w(z),
|
|
3337
|
-
|
|
3338
|
-
if (t =
|
|
3350
|
+
for (var z = Date.now(), re = w(z), ue = arguments.length, ce = new Array(ue), be = 0; be < ue; be++)
|
|
3351
|
+
ce[be] = arguments[be];
|
|
3352
|
+
if (t = ce, e = this, l = z, re) {
|
|
3339
3353
|
if (s === void 0)
|
|
3340
3354
|
return k(l);
|
|
3341
3355
|
if (h)
|
|
@@ -3484,7 +3498,7 @@ var $i = {
|
|
|
3484
3498
|
4: 5104,
|
|
3485
3499
|
5: 5105,
|
|
3486
3500
|
6: 5106
|
|
3487
|
-
}, bt = /* @__PURE__ */
|
|
3501
|
+
}, bt = /* @__PURE__ */ L(
|
|
3488
3502
|
function a(o) {
|
|
3489
3503
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
3490
3504
|
errorType: "",
|
|
@@ -3494,7 +3508,7 @@ var $i = {
|
|
|
3494
3508
|
ext: {},
|
|
3495
3509
|
mediaError: null
|
|
3496
3510
|
};
|
|
3497
|
-
|
|
3511
|
+
P(this, a);
|
|
3498
3512
|
var t = o && o.i18n ? o.i18n.ERROR_TYPES : null;
|
|
3499
3513
|
if (o.media) {
|
|
3500
3514
|
var e = r.mediaError ? r.mediaError : o.media.error || {}, i = o.duration, n = o.currentTime, s = o.ended, l = o.src, u = o.currentSrc, c = o.media, h = c.readyState, d = c.networkState, g = r.errorCode || e.code;
|
|
@@ -3637,7 +3651,7 @@ var ya = /* @__PURE__ */ function(a) {
|
|
|
3637
3651
|
var o = O(r);
|
|
3638
3652
|
function r(t) {
|
|
3639
3653
|
var e;
|
|
3640
|
-
|
|
3654
|
+
P(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({}, {
|
|
3641
3655
|
controls: !1,
|
|
3642
3656
|
autoplay: t.autoplay,
|
|
3643
3657
|
playsinline: t.playsinline,
|
|
@@ -3654,7 +3668,7 @@ var ya = /* @__PURE__ */ function(a) {
|
|
|
3654
3668
|
var i = t["x5-video-player-type"] || t.x5VideoPlayerType;
|
|
3655
3669
|
return N.isWeixin && N.os.isAndroid && i && (e.mediaConfig["x5-video-player-type"] = i, delete e.mediaConfig.playsinline, delete e.mediaConfig["webkit-playsinline"], delete e.mediaConfig["x5-playsinline"]), t.loop && (e.mediaConfig.loop = "loop"), t.autoplayMuted && !Object.prototype.hasOwnProperty.call(e.mediaConfig, "muted") && (e.mediaConfig.muted = !0), e.media = f.createDom(e.mediaConfig.mediaType, "", e.mediaConfig, ""), t.defaultPlaybackRate && (e.media.defaultPlaybackRate = e.media.playbackRate = t.defaultPlaybackRate), f.typeOf(t.volume) === "Number" && (e.volume = t.volume), t.autoplayMuted && (e.media.muted = !0, e._lastMuted = !0), t.autoplay && (e.media.autoplay = !0), e._interval = {}, e.mediaEventMiddleware = {}, e.attachVideoEvents(), e;
|
|
3656
3670
|
}
|
|
3657
|
-
return
|
|
3671
|
+
return L(r, [{
|
|
3658
3672
|
key: "setEventsMiddleware",
|
|
3659
3673
|
value: function(e) {
|
|
3660
3674
|
var i = this;
|
|
@@ -4061,9 +4075,9 @@ var ya = /* @__PURE__ */ function(a) {
|
|
|
4061
4075
|
keypath: "vid"
|
|
4062
4076
|
}
|
|
4063
4077
|
};
|
|
4064
|
-
|
|
4078
|
+
P(this, a), this.indexedDB = window.indexedDB || window.webkitindexedDB, this.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange, this.myDB = o;
|
|
4065
4079
|
}
|
|
4066
|
-
return
|
|
4080
|
+
return L(a, [{
|
|
4067
4081
|
key: "openDB",
|
|
4068
4082
|
value: function(r) {
|
|
4069
4083
|
var t = this, e = this, i = this.myDB.version || 1, n = e.indexedDB.open(e.myDB.name, i);
|
|
@@ -4157,7 +4171,7 @@ function Pt(a, o) {
|
|
|
4157
4171
|
try {
|
|
4158
4172
|
var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
|
|
4159
4173
|
s ? s.then ? s.then(function(l) {
|
|
4160
|
-
l !== !1 && mt.apply(void 0, [e, o, r.next].concat(
|
|
4174
|
+
l !== !1 && mt.apply(void 0, [e, o, r.next].concat(me(t)));
|
|
4161
4175
|
}).catch(function(l) {
|
|
4162
4176
|
throw l;
|
|
4163
4177
|
}) : mt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && mt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
@@ -4231,9 +4245,9 @@ function Gt(a, o) {
|
|
|
4231
4245
|
}
|
|
4232
4246
|
var He = /* @__PURE__ */ function() {
|
|
4233
4247
|
function a(o) {
|
|
4234
|
-
|
|
4248
|
+
P(this, a), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(o), qn(this), this.__args = o, this.__events = {}, this.__onceEvents = {}, this.config = o.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(o);
|
|
4235
4249
|
}
|
|
4236
|
-
return
|
|
4250
|
+
return L(a, [{
|
|
4237
4251
|
key: "beforeCreate",
|
|
4238
4252
|
value: function(r) {
|
|
4239
4253
|
}
|
|
@@ -4450,7 +4464,7 @@ const en = /* @__PURE__ */ di(Sa);
|
|
|
4450
4464
|
var xa = {
|
|
4451
4465
|
CONTROLS: "controls",
|
|
4452
4466
|
ROOT: "root"
|
|
4453
|
-
},
|
|
4467
|
+
}, $ = {
|
|
4454
4468
|
ROOT: "root",
|
|
4455
4469
|
ROOT_LEFT: "rootLeft",
|
|
4456
4470
|
ROOT_RIGHT: "rootRight",
|
|
@@ -4515,9 +4529,9 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4515
4529
|
var o = O(r);
|
|
4516
4530
|
function r() {
|
|
4517
4531
|
var t, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4518
|
-
return
|
|
4532
|
+
return P(this, r), t = o.call(this, e), t.__delegates = [], t;
|
|
4519
4533
|
}
|
|
4520
|
-
return
|
|
4534
|
+
return L(r, [{
|
|
4521
4535
|
key: "__init",
|
|
4522
4536
|
value: function(e) {
|
|
4523
4537
|
if (F(R(r.prototype), "__init", this).call(this, e), !!e.root) {
|
|
@@ -4800,13 +4814,13 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4800
4814
|
}, {
|
|
4801
4815
|
key: "POSITIONS",
|
|
4802
4816
|
get: function() {
|
|
4803
|
-
return
|
|
4817
|
+
return $;
|
|
4804
4818
|
}
|
|
4805
4819
|
}]), r;
|
|
4806
4820
|
}(He), Da = /* @__PURE__ */ function() {
|
|
4807
4821
|
function a() {
|
|
4808
4822
|
var o = this;
|
|
4809
|
-
if (
|
|
4823
|
+
if (P(this, a), _(this, "__trigger", function(r) {
|
|
4810
4824
|
var t = (/* @__PURE__ */ new Date()).getTime();
|
|
4811
4825
|
o.timeStamp = t;
|
|
4812
4826
|
for (var e = 0; e < r.length; e++)
|
|
@@ -4820,7 +4834,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4820
4834
|
console.error(r);
|
|
4821
4835
|
}
|
|
4822
4836
|
}
|
|
4823
|
-
return
|
|
4837
|
+
return L(a, [{
|
|
4824
4838
|
key: "addObserver",
|
|
4825
4839
|
value: function(r, t) {
|
|
4826
4840
|
if (this.observer) {
|
|
@@ -5190,17 +5204,17 @@ var Fa = function(o, r) {
|
|
|
5190
5204
|
var t, e, i;
|
|
5191
5205
|
r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
|
|
5192
5206
|
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;
|
|
5193
|
-
o.config.plugins || (o.config.plugins = []), o.config.ignores || (o.config.ignores = []), (t = o.config.plugins).push.apply(t,
|
|
5207
|
+
o.config.plugins || (o.config.plugins = []), o.config.ignores || (o.config.ignores = []), (t = o.config.plugins).push.apply(t, me(l)), (e = o.config.ignores).push.apply(e, me(c)), Object.keys(d).map(function(y) {
|
|
5194
5208
|
o.config.icons[y] || (o.config.icons[y] = d[y]);
|
|
5195
5209
|
});
|
|
5196
5210
|
var v = o.config.i18n || [];
|
|
5197
|
-
p.push.apply(p,
|
|
5211
|
+
p.push.apply(p, me(v)), o.config.i18n = p;
|
|
5198
5212
|
}, Ma = /* @__PURE__ */ function(a) {
|
|
5199
5213
|
D(r, a);
|
|
5200
5214
|
var o = O(r);
|
|
5201
5215
|
function r() {
|
|
5202
5216
|
var t;
|
|
5203
|
-
|
|
5217
|
+
P(this, r);
|
|
5204
5218
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
5205
5219
|
i[n] = arguments[n];
|
|
5206
5220
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onMouseEnter", function(s) {
|
|
@@ -5213,7 +5227,7 @@ var Fa = function(o, r) {
|
|
|
5213
5227
|
u.focus();
|
|
5214
5228
|
}), t;
|
|
5215
5229
|
}
|
|
5216
|
-
return
|
|
5230
|
+
return L(r, [{
|
|
5217
5231
|
key: "beforeCreate",
|
|
5218
5232
|
value: function(e) {
|
|
5219
5233
|
!e.config.mode && N.device === "mobile" && (e.config.mode = "flex"), e.player.config.marginControls && (e.config.autoHide = !1);
|
|
@@ -5291,16 +5305,16 @@ var Fa = function(o, r) {
|
|
|
5291
5305
|
if (!i.root) {
|
|
5292
5306
|
var l = i.position ? i.position : i.config && i.config.position ? i.config.position : s.position;
|
|
5293
5307
|
switch (l) {
|
|
5294
|
-
case
|
|
5308
|
+
case $.CONTROLS_LEFT:
|
|
5295
5309
|
i.root = this.left;
|
|
5296
5310
|
break;
|
|
5297
|
-
case
|
|
5311
|
+
case $.CONTROLS_RIGHT:
|
|
5298
5312
|
i.root = this.right;
|
|
5299
5313
|
break;
|
|
5300
|
-
case
|
|
5314
|
+
case $.CONTROLS_CENTER:
|
|
5301
5315
|
i.root = this.center;
|
|
5302
5316
|
break;
|
|
5303
|
-
case
|
|
5317
|
+
case $.CONTROLS:
|
|
5304
5318
|
i.root = this.root;
|
|
5305
5319
|
break;
|
|
5306
5320
|
default:
|
|
@@ -5431,7 +5445,7 @@ var Fa = function(o, r) {
|
|
|
5431
5445
|
FORWARD: "forward",
|
|
5432
5446
|
LIVE_TIP: "Live"
|
|
5433
5447
|
}
|
|
5434
|
-
},
|
|
5448
|
+
}, fe = {
|
|
5435
5449
|
lang: {},
|
|
5436
5450
|
langKeys: [],
|
|
5437
5451
|
textKeys: []
|
|
@@ -5441,19 +5455,19 @@ function dt(a, o) {
|
|
|
5441
5455
|
var t = f.typeOf(o[r]), e = f.typeOf(a[r]);
|
|
5442
5456
|
if (t === "Array") {
|
|
5443
5457
|
var i;
|
|
5444
|
-
e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i,
|
|
5458
|
+
e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, me(o[r]));
|
|
5445
5459
|
} else
|
|
5446
5460
|
t === "Object" ? (e !== "Object" && (a[r] = {}), dt(a[r], o[r])) : a[r] = o[r];
|
|
5447
5461
|
}), a;
|
|
5448
5462
|
}
|
|
5449
5463
|
function Jn() {
|
|
5450
|
-
Object.keys(
|
|
5451
|
-
|
|
5464
|
+
Object.keys(fe.lang.en).map(function(a) {
|
|
5465
|
+
fe.textKeys[a] = a;
|
|
5452
5466
|
});
|
|
5453
5467
|
}
|
|
5454
5468
|
function Ba(a, o) {
|
|
5455
5469
|
var r = [];
|
|
5456
|
-
if (o || (o =
|
|
5470
|
+
if (o || (o = fe), !!o.lang) {
|
|
5457
5471
|
f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
|
|
5458
5472
|
var n = i === "zh" ? "zh-cn" : i;
|
|
5459
5473
|
return {
|
|
@@ -5469,7 +5483,7 @@ function Ba(a, o) {
|
|
|
5469
5483
|
}
|
|
5470
5484
|
function bi(a, o) {
|
|
5471
5485
|
var r = a.LANG;
|
|
5472
|
-
if (o || (o =
|
|
5486
|
+
if (o || (o = fe), !!o.lang) {
|
|
5473
5487
|
var t = a.TEXT || {};
|
|
5474
5488
|
r === "zh" && (r = "zh-cn"), o.lang[r] ? dt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), Jn();
|
|
5475
5489
|
}
|
|
@@ -5481,21 +5495,21 @@ function Ha(a) {
|
|
|
5481
5495
|
textKeys: {},
|
|
5482
5496
|
pId: a
|
|
5483
5497
|
};
|
|
5484
|
-
return dt(r.lang,
|
|
5498
|
+
return dt(r.lang, fe.lang), (o = r.langKeys).push.apply(o, me(fe.langKeys)), dt(r.textKeys, fe.textKeys), r;
|
|
5485
5499
|
}
|
|
5486
5500
|
bi(Na);
|
|
5487
5501
|
var nt = {
|
|
5488
5502
|
get textKeys() {
|
|
5489
|
-
return
|
|
5503
|
+
return fe.textKeys;
|
|
5490
5504
|
},
|
|
5491
5505
|
get langKeys() {
|
|
5492
|
-
return
|
|
5506
|
+
return fe.langKeys;
|
|
5493
5507
|
},
|
|
5494
5508
|
get lang() {
|
|
5495
5509
|
var a = {};
|
|
5496
|
-
return
|
|
5497
|
-
a[o] =
|
|
5498
|
-
}),
|
|
5510
|
+
return fe.langKeys.map(function(o) {
|
|
5511
|
+
a[o] = fe.lang[o];
|
|
5512
|
+
}), fe.lang["zh-cn"] && (a.zh = fe.lang["zh-cn"] || {}), a;
|
|
5499
5513
|
},
|
|
5500
5514
|
extend: Ba,
|
|
5501
5515
|
use: bi,
|
|
@@ -5513,9 +5527,9 @@ var nt = {
|
|
|
5513
5527
|
D(r, a);
|
|
5514
5528
|
var o = O(r);
|
|
5515
5529
|
function r() {
|
|
5516
|
-
return
|
|
5530
|
+
return P(this, r), o.apply(this, arguments);
|
|
5517
5531
|
}
|
|
5518
|
-
return
|
|
5532
|
+
return L(r, [{
|
|
5519
5533
|
key: "add",
|
|
5520
5534
|
value: function(e) {
|
|
5521
5535
|
e && (le[e.playerId] = e, Object.keys(le).length === 1 && this.setActive(e.playerId, !0));
|
|
@@ -5609,7 +5623,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5609
5623
|
var o = O(r);
|
|
5610
5624
|
function r(t) {
|
|
5611
5625
|
var e;
|
|
5612
|
-
|
|
5626
|
+
P(this, r);
|
|
5613
5627
|
var i = f.deepMerge(rn(), t);
|
|
5614
5628
|
e = o.call(this, i), _(m(e), "canPlayFunc", function() {
|
|
5615
5629
|
if (e.config) {
|
|
@@ -5700,7 +5714,7 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5700
5714
|
e.emit(_i);
|
|
5701
5715
|
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < V.ATTACHED) && e.start(), e;
|
|
5702
5716
|
}
|
|
5703
|
-
return
|
|
5717
|
+
return L(r, [{
|
|
5704
5718
|
key: "_initDOM",
|
|
5705
5719
|
value: function() {
|
|
5706
5720
|
var e, i = this;
|
|
@@ -5841,13 +5855,13 @@ var za = ["play", "pause", "replay", "retry"], on = 0, an = 0, Re = null, Bt = /
|
|
|
5841
5855
|
value: function(e) {
|
|
5842
5856
|
var i = null;
|
|
5843
5857
|
switch (e) {
|
|
5844
|
-
case
|
|
5858
|
+
case $.ROOT_RIGHT:
|
|
5845
5859
|
this.rightBar || (this.rightBar = f.createPositionBar("xg-right-bar", this.root)), i = this.rightBar;
|
|
5846
5860
|
break;
|
|
5847
|
-
case
|
|
5861
|
+
case $.ROOT_LEFT:
|
|
5848
5862
|
this.leftBar || (this.leftBar = f.createPositionBar("xg-left-bar", this.root)), i = this.leftBar;
|
|
5849
5863
|
break;
|
|
5850
|
-
case
|
|
5864
|
+
case $.ROOT_TOP:
|
|
5851
5865
|
this.topBar || (this.topBar = f.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && f.addClass(this.topBar, C.TOP_BAR_AUTOHIDE)), i = this.topBar;
|
|
5852
5866
|
break;
|
|
5853
5867
|
default:
|
|
@@ -6815,7 +6829,7 @@ var Fe = {
|
|
|
6815
6829
|
var o = O(r);
|
|
6816
6830
|
function r() {
|
|
6817
6831
|
var t;
|
|
6818
|
-
|
|
6832
|
+
P(this, r);
|
|
6819
6833
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
6820
6834
|
i[n] = arguments[n];
|
|
6821
6835
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onTimeupdate", function() {
|
|
@@ -6858,7 +6872,7 @@ var Fe = {
|
|
|
6858
6872
|
t._isWaiting && t.suspendWaitingStatus("playing");
|
|
6859
6873
|
}), t;
|
|
6860
6874
|
}
|
|
6861
|
-
return
|
|
6875
|
+
return L(r, [{
|
|
6862
6876
|
key: "afterCreate",
|
|
6863
6877
|
value: function() {
|
|
6864
6878
|
var e = this;
|
|
@@ -6971,9 +6985,9 @@ var Wa = /* @__PURE__ */ function(a) {
|
|
|
6971
6985
|
D(r, a);
|
|
6972
6986
|
var o = O(r);
|
|
6973
6987
|
function r() {
|
|
6974
|
-
return
|
|
6988
|
+
return P(this, r), o.apply(this, arguments);
|
|
6975
6989
|
}
|
|
6976
|
-
return
|
|
6990
|
+
return L(r, [{
|
|
6977
6991
|
key: "registerIcons",
|
|
6978
6992
|
value: function() {
|
|
6979
6993
|
return {
|
|
@@ -7054,9 +7068,9 @@ var Wa = /* @__PURE__ */ function(a) {
|
|
|
7054
7068
|
D(r, a);
|
|
7055
7069
|
var o = O(r);
|
|
7056
7070
|
function r() {
|
|
7057
|
-
return
|
|
7071
|
+
return P(this, r), o.apply(this, arguments);
|
|
7058
7072
|
}
|
|
7059
|
-
return
|
|
7073
|
+
return L(r, [{
|
|
7060
7074
|
key: "isEndedShow",
|
|
7061
7075
|
get: function() {
|
|
7062
7076
|
return this.config.isEndedShow;
|
|
@@ -7174,23 +7188,23 @@ function Ei() {
|
|
|
7174
7188
|
</svg>
|
|
7175
7189
|
`, "image/svg+xml").firstChild;
|
|
7176
7190
|
}
|
|
7177
|
-
var
|
|
7191
|
+
var we = {};
|
|
7178
7192
|
function $a(a, o) {
|
|
7179
7193
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
7180
7194
|
start: null,
|
|
7181
7195
|
end: null
|
|
7182
7196
|
};
|
|
7183
|
-
return
|
|
7184
|
-
r.end && r.end(), window.clearTimeout(
|
|
7185
|
-
}, o),
|
|
7197
|
+
return we[a] && window.clearTimeout(we[a].id), we[a] = {}, r.start && r.start(), we[a].id = window.setTimeout(function() {
|
|
7198
|
+
r.end && r.end(), window.clearTimeout(we[a].id), delete we[a];
|
|
7199
|
+
}, o), we[a].id;
|
|
7186
7200
|
}
|
|
7187
7201
|
function ln(a) {
|
|
7188
7202
|
if (a) {
|
|
7189
7203
|
window.clearTimeout(a);
|
|
7190
7204
|
return;
|
|
7191
7205
|
}
|
|
7192
|
-
Object.keys(
|
|
7193
|
-
window.clearTimeout(
|
|
7206
|
+
Object.keys(we).map(function(o) {
|
|
7207
|
+
window.clearTimeout(we[o].id), delete we[o];
|
|
7194
7208
|
});
|
|
7195
7209
|
}
|
|
7196
7210
|
var Ka = /* @__PURE__ */ function(a) {
|
|
@@ -7198,7 +7212,7 @@ var Ka = /* @__PURE__ */ function(a) {
|
|
|
7198
7212
|
var o = O(r);
|
|
7199
7213
|
function r(t) {
|
|
7200
7214
|
var e;
|
|
7201
|
-
return
|
|
7215
|
+
return P(this, r), e = o.call(this, t), _(m(e), "onPlayerReset", function() {
|
|
7202
7216
|
e.autoPlayStart = !1;
|
|
7203
7217
|
var i = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
7204
7218
|
e.setAttr("data-state", "play"), f.removeClass(e.root, i), e.show();
|
|
@@ -7209,7 +7223,7 @@ var Ka = /* @__PURE__ */ function(a) {
|
|
|
7209
7223
|
}
|
|
7210
7224
|
}), e.autoPlayStart = !1, e;
|
|
7211
7225
|
}
|
|
7212
|
-
return
|
|
7226
|
+
return L(r, [{
|
|
7213
7227
|
key: "afterCreate",
|
|
7214
7228
|
value: function() {
|
|
7215
7229
|
var e = this, i = this.player, n = this.playerConfig;
|
|
@@ -7372,9 +7386,9 @@ var Ka = /* @__PURE__ */ function(a) {
|
|
|
7372
7386
|
D(r, a);
|
|
7373
7387
|
var o = O(r);
|
|
7374
7388
|
function r() {
|
|
7375
|
-
return
|
|
7389
|
+
return P(this, r), o.apply(this, arguments);
|
|
7376
7390
|
}
|
|
7377
|
-
return
|
|
7391
|
+
return L(r, [{
|
|
7378
7392
|
key: "render",
|
|
7379
7393
|
value: function() {
|
|
7380
7394
|
var e = this.config.innerHtml, i = f.createDom("xg-enter", "", {}, "xgplayer-enter");
|
|
@@ -7417,9 +7431,9 @@ var un = /* @__PURE__ */ function(a) {
|
|
|
7417
7431
|
D(r, a);
|
|
7418
7432
|
var o = O(r);
|
|
7419
7433
|
function r() {
|
|
7420
|
-
return
|
|
7434
|
+
return P(this, r), o.apply(this, arguments);
|
|
7421
7435
|
}
|
|
7422
|
-
return
|
|
7436
|
+
return L(r, [{
|
|
7423
7437
|
key: "afterCreate",
|
|
7424
7438
|
value: function() {
|
|
7425
7439
|
this.getMini = this.getMini.bind(this), this.exitMini = this.exitMini.bind(this), this.bind("click", this.getMini);
|
|
@@ -7457,7 +7471,7 @@ var un = /* @__PURE__ */ function(a) {
|
|
|
7457
7471
|
key: "defaultConfig",
|
|
7458
7472
|
get: function() {
|
|
7459
7473
|
return {
|
|
7460
|
-
position:
|
|
7474
|
+
position: $.CONTROLS_RIGHT,
|
|
7461
7475
|
index: 10
|
|
7462
7476
|
};
|
|
7463
7477
|
}
|
|
@@ -7523,7 +7537,7 @@ var qt = {
|
|
|
7523
7537
|
var o = O(r);
|
|
7524
7538
|
function r(t) {
|
|
7525
7539
|
var e, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7526
|
-
return
|
|
7540
|
+
return P(this, r), e = o.call(this), e.isEnabled = !0, e.isDragging = !1, e.isDown = !1, e.position = {}, e.downPoint = {}, e.dragPoint = {
|
|
7527
7541
|
x: 0,
|
|
7528
7542
|
y: 0
|
|
7529
7543
|
}, e.startPos = {
|
|
@@ -7531,7 +7545,7 @@ var qt = {
|
|
|
7531
7545
|
y: 0
|
|
7532
7546
|
}, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ? pi(e) : (e._bindStartEvent(), e);
|
|
7533
7547
|
}
|
|
7534
|
-
return
|
|
7548
|
+
return L(r, [{
|
|
7535
7549
|
key: "_bindStartEvent",
|
|
7536
7550
|
value: function() {
|
|
7537
7551
|
var e = this;
|
|
@@ -7733,7 +7747,7 @@ var qt = {
|
|
|
7733
7747
|
var o = O(r);
|
|
7734
7748
|
function r(t) {
|
|
7735
7749
|
var e;
|
|
7736
|
-
|
|
7750
|
+
P(this, r), e = o.call(this, t), _(m(e), "onCancelClick", function(s) {
|
|
7737
7751
|
e.exitMini(), e.isClose = !0;
|
|
7738
7752
|
}), _(m(e), "onCenterClick", function(s) {
|
|
7739
7753
|
var l = m(e), u = l.player;
|
|
@@ -7753,7 +7767,7 @@ var qt = {
|
|
|
7753
7767
|
scrollY: window.scrollY || 0
|
|
7754
7768
|
}, e.lastStyle = null, e;
|
|
7755
7769
|
}
|
|
7756
|
-
return
|
|
7770
|
+
return L(r, [{
|
|
7757
7771
|
key: "beforeCreate",
|
|
7758
7772
|
value: function(e) {
|
|
7759
7773
|
typeof e.player.config.mini == "boolean" && (e.config.isShowIcon = e.player.config.mini);
|
|
@@ -7887,7 +7901,7 @@ var qt = {
|
|
|
7887
7901
|
var o = O(r);
|
|
7888
7902
|
function r() {
|
|
7889
7903
|
var t;
|
|
7890
|
-
|
|
7904
|
+
P(this, r);
|
|
7891
7905
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
7892
7906
|
i[n] = arguments[n];
|
|
7893
7907
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onMouseMove", function(s) {
|
|
@@ -7938,7 +7952,7 @@ var qt = {
|
|
|
7938
7952
|
}
|
|
7939
7953
|
}), t;
|
|
7940
7954
|
}
|
|
7941
|
-
return
|
|
7955
|
+
return L(r, [{
|
|
7942
7956
|
key: "afterCreate",
|
|
7943
7957
|
value: function() {
|
|
7944
7958
|
var e = this;
|
|
@@ -8027,7 +8041,7 @@ var il = /* @__PURE__ */ function() {
|
|
|
8027
8041
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
8028
8042
|
eventType: "touch"
|
|
8029
8043
|
};
|
|
8030
|
-
|
|
8044
|
+
P(this, a), _(this, "onTouchStart", function(e) {
|
|
8031
8045
|
var i = r._pos, n = r.root, s = dn(e.touches);
|
|
8032
8046
|
i.x = s ? parseInt(s.pageX, 10) : e.pageX, i.y = s ? parseInt(s.pageX, 10) : e.pageX, i.start = !0, r.__setPress(e), n.addEventListener(r.events.end, r.onTouchEnd), n.addEventListener(r.events.cancel, r.onTouchCancel), n.addEventListener(r.events.move, r.onTouchMove), r.trigger(Me.TOUCH_START, e);
|
|
8033
8047
|
}), _(this, "onTouchCancel", function(e) {
|
|
@@ -8047,7 +8061,7 @@ var il = /* @__PURE__ */ function() {
|
|
|
8047
8061
|
r.config[e] = t[e];
|
|
8048
8062
|
}), this.root = o, this.events = t.eventType === "mouse" ? el : Qa, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
8049
8063
|
}
|
|
8050
|
-
return
|
|
8064
|
+
return L(a, [{
|
|
8051
8065
|
key: "_initEvent",
|
|
8052
8066
|
value: function() {
|
|
8053
8067
|
this.root.addEventListener(this.events.start, this.onTouchStart);
|
|
@@ -8143,7 +8157,7 @@ var Ze = {
|
|
|
8143
8157
|
var o = O(r);
|
|
8144
8158
|
function r(t) {
|
|
8145
8159
|
var e;
|
|
8146
|
-
return
|
|
8160
|
+
return P(this, r), e = o.call(this, t), _(m(e), "onTouchStart", function(i) {
|
|
8147
8161
|
var n = m(e), s = n.player, l = n.config, u = n.pos, c = n.playerConfig, h = e.getTouche(i);
|
|
8148
8162
|
if (h && !l.disableGesture && e.duration > 0 && !s.ended) {
|
|
8149
8163
|
u.isStart = !0, e.timer && clearTimeout(e.timer), f.checkIsFunction(c.disableSwipeHandler) && c.disableSwipeHandler(), e.find(".xg-dur").innerHTML = f.format(e.duration);
|
|
@@ -8195,7 +8209,7 @@ var Ze = {
|
|
|
8195
8209
|
scope: -1
|
|
8196
8210
|
}, e.timer = null, e;
|
|
8197
8211
|
}
|
|
8198
|
-
return
|
|
8212
|
+
return L(r, [{
|
|
8199
8213
|
key: "duration",
|
|
8200
8214
|
get: function() {
|
|
8201
8215
|
return this.playerConfig.customDuration || this.player.duration;
|
|
@@ -8579,7 +8593,7 @@ var pn = /* @__PURE__ */ function(a) {
|
|
|
8579
8593
|
var o = O(r);
|
|
8580
8594
|
function r() {
|
|
8581
8595
|
var t;
|
|
8582
|
-
|
|
8596
|
+
P(this, r);
|
|
8583
8597
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
8584
8598
|
i[n] = arguments[n];
|
|
8585
8599
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onBodyKeyDown", function(s) {
|
|
@@ -8607,7 +8621,7 @@ var pn = /* @__PURE__ */ function(a) {
|
|
|
8607
8621
|
t.player && (t.player.root.removeEventListener("keyup", t.onKeyup), t.handleKeyUp(s));
|
|
8608
8622
|
}), t;
|
|
8609
8623
|
}
|
|
8610
|
-
return
|
|
8624
|
+
return L(r, [{
|
|
8611
8625
|
key: "mergekeyCodeMap",
|
|
8612
8626
|
value: function() {
|
|
8613
8627
|
var e = this, i = this.config.keyCodeMap;
|
|
@@ -8868,9 +8882,9 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
8868
8882
|
D(r, a);
|
|
8869
8883
|
var o = O(r);
|
|
8870
8884
|
function r() {
|
|
8871
|
-
return
|
|
8885
|
+
return P(this, r), o.apply(this, arguments);
|
|
8872
8886
|
}
|
|
8873
|
-
return
|
|
8887
|
+
return L(r, [{
|
|
8874
8888
|
key: "registerIcons",
|
|
8875
8889
|
value: function() {
|
|
8876
8890
|
return {
|
|
@@ -8899,7 +8913,7 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
8899
8913
|
key: "defaultConfig",
|
|
8900
8914
|
get: function() {
|
|
8901
8915
|
return {
|
|
8902
|
-
position:
|
|
8916
|
+
position: $.ROOT
|
|
8903
8917
|
};
|
|
8904
8918
|
}
|
|
8905
8919
|
}]), r;
|
|
@@ -8913,7 +8927,7 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
8913
8927
|
styleKey: "playedColor"
|
|
8914
8928
|
}], ul = /* @__PURE__ */ function() {
|
|
8915
8929
|
function a(o) {
|
|
8916
|
-
|
|
8930
|
+
P(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
8917
8931
|
percent: 1
|
|
8918
8932
|
}), this._callBack = o.actionCallback, this.fragConfig = {
|
|
8919
8933
|
fragFocusClass: o.fragFocusClass || "inner-focus-point",
|
|
@@ -8925,7 +8939,7 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
8925
8939
|
progressColor: ""
|
|
8926
8940
|
}, this.duration = 0, this.cachedIndex = 0, this.playedIndex = 0, this.focusIndex = -1;
|
|
8927
8941
|
}
|
|
8928
|
-
return
|
|
8942
|
+
return L(a, [{
|
|
8929
8943
|
key: "updateDuration",
|
|
8930
8944
|
value: function(r) {
|
|
8931
8945
|
var t = this;
|
|
@@ -9119,7 +9133,7 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9119
9133
|
var o = O(r);
|
|
9120
9134
|
function r(t) {
|
|
9121
9135
|
var e;
|
|
9122
|
-
return
|
|
9136
|
+
return P(this, r), e = o.call(this, t), _(m(e), "onMoveOnly", function(i, n) {
|
|
9123
9137
|
var s = m(e), l = s.pos, u = s.config, c = s.player, h = n;
|
|
9124
9138
|
if (i) {
|
|
9125
9139
|
f.event(i);
|
|
@@ -9198,7 +9212,7 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9198
9212
|
prePlayTime: -1
|
|
9199
9213
|
}, e._disableBlur = !1, e;
|
|
9200
9214
|
}
|
|
9201
|
-
return
|
|
9215
|
+
return L(r, [{
|
|
9202
9216
|
key: "offsetDuration",
|
|
9203
9217
|
get: function() {
|
|
9204
9218
|
return this.playerConfig.customDuration || this.player.offsetDuration || this.player.duration;
|
|
@@ -9497,7 +9511,7 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9497
9511
|
key: "defaultConfig",
|
|
9498
9512
|
get: function() {
|
|
9499
9513
|
return {
|
|
9500
|
-
position:
|
|
9514
|
+
position: $.CONTROLS_CENTER,
|
|
9501
9515
|
index: 0,
|
|
9502
9516
|
disable: !1,
|
|
9503
9517
|
isDragingSeek: !0,
|
|
@@ -9530,7 +9544,7 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9530
9544
|
var o = O(r);
|
|
9531
9545
|
function r() {
|
|
9532
9546
|
var t;
|
|
9533
|
-
|
|
9547
|
+
P(this, r);
|
|
9534
9548
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
9535
9549
|
i[n] = arguments[n];
|
|
9536
9550
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onMouseenter", function(s) {
|
|
@@ -9543,7 +9557,7 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9543
9557
|
});
|
|
9544
9558
|
}), t;
|
|
9545
9559
|
}
|
|
9546
|
-
return
|
|
9560
|
+
return L(r, [{
|
|
9547
9561
|
key: "afterCreate",
|
|
9548
9562
|
value: function() {
|
|
9549
9563
|
this.bind("mouseenter", this._onMouseenter), this.bind("mouseleave", this._onMouseLeave), this.config.disable && this.disable();
|
|
@@ -9558,9 +9572,9 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9558
9572
|
D(r, a);
|
|
9559
9573
|
var o = O(r);
|
|
9560
9574
|
function r() {
|
|
9561
|
-
return
|
|
9575
|
+
return P(this, r), o.apply(this, arguments);
|
|
9562
9576
|
}
|
|
9563
|
-
return
|
|
9577
|
+
return L(r, [{
|
|
9564
9578
|
key: "afterCreate",
|
|
9565
9579
|
value: function() {
|
|
9566
9580
|
var e = this;
|
|
@@ -9635,7 +9649,7 @@ var al = /* @__PURE__ */ function(a) {
|
|
|
9635
9649
|
key: "defaultConfig",
|
|
9636
9650
|
get: function() {
|
|
9637
9651
|
return {
|
|
9638
|
-
position:
|
|
9652
|
+
position: $.CONTROLS_LEFT,
|
|
9639
9653
|
index: 0,
|
|
9640
9654
|
disable: !1
|
|
9641
9655
|
};
|
|
@@ -9653,9 +9667,9 @@ var dl = /* @__PURE__ */ function(a) {
|
|
|
9653
9667
|
D(r, a);
|
|
9654
9668
|
var o = O(r);
|
|
9655
9669
|
function r() {
|
|
9656
|
-
return
|
|
9670
|
+
return P(this, r), o.apply(this, arguments);
|
|
9657
9671
|
}
|
|
9658
|
-
return
|
|
9672
|
+
return L(r, [{
|
|
9659
9673
|
key: "afterCreate",
|
|
9660
9674
|
value: function() {
|
|
9661
9675
|
var e = this;
|
|
@@ -9704,7 +9718,7 @@ var dl = /* @__PURE__ */ function(a) {
|
|
|
9704
9718
|
key: "defaultConfig",
|
|
9705
9719
|
get: function() {
|
|
9706
9720
|
return {
|
|
9707
|
-
position:
|
|
9721
|
+
position: $.ROOT_TOP,
|
|
9708
9722
|
index: 0
|
|
9709
9723
|
};
|
|
9710
9724
|
}
|
|
@@ -9727,14 +9741,14 @@ var vl = /* @__PURE__ */ function(a) {
|
|
|
9727
9741
|
var o = O(r);
|
|
9728
9742
|
function r() {
|
|
9729
9743
|
var t;
|
|
9730
|
-
|
|
9744
|
+
P(this, r);
|
|
9731
9745
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
9732
9746
|
i[n] = arguments[n];
|
|
9733
9747
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onOrientationChange", function(s) {
|
|
9734
9748
|
t.player.fullscreen && t.config.rotateFullscreen && (window.orientation === 90 || window.orientation === -90 ? t.player.setRotateDeg(0) : t.player.setRotateDeg(90));
|
|
9735
9749
|
}), t;
|
|
9736
9750
|
}
|
|
9737
|
-
return
|
|
9751
|
+
return L(r, [{
|
|
9738
9752
|
key: "afterCreate",
|
|
9739
9753
|
value: function() {
|
|
9740
9754
|
var e = this;
|
|
@@ -9845,7 +9859,7 @@ var vl = /* @__PURE__ */ function(a) {
|
|
|
9845
9859
|
key: "defaultConfig",
|
|
9846
9860
|
get: function() {
|
|
9847
9861
|
return {
|
|
9848
|
-
position:
|
|
9862
|
+
position: $.CONTROLS_RIGHT,
|
|
9849
9863
|
index: 0,
|
|
9850
9864
|
useCssFullscreen: !1,
|
|
9851
9865
|
rotateFullscreen: !1,
|
|
@@ -9863,9 +9877,9 @@ var vl = /* @__PURE__ */ function(a) {
|
|
|
9863
9877
|
var o = O(r);
|
|
9864
9878
|
function r(t) {
|
|
9865
9879
|
var e;
|
|
9866
|
-
return
|
|
9880
|
+
return P(this, r), e = o.call(this, t), e.isActiving = !1, e;
|
|
9867
9881
|
}
|
|
9868
|
-
return
|
|
9882
|
+
return L(r, [{
|
|
9869
9883
|
key: "duration",
|
|
9870
9884
|
get: function() {
|
|
9871
9885
|
var e = this.player, i = e.offsetDuration, n = e.duration;
|
|
@@ -10002,7 +10016,7 @@ var vl = /* @__PURE__ */ function(a) {
|
|
|
10002
10016
|
key: "defaultConfig",
|
|
10003
10017
|
get: function() {
|
|
10004
10018
|
return {
|
|
10005
|
-
position:
|
|
10019
|
+
position: $.CONTROLS_LEFT,
|
|
10006
10020
|
index: 2,
|
|
10007
10021
|
disable: !1
|
|
10008
10022
|
};
|
|
@@ -10013,7 +10027,7 @@ var vl = /* @__PURE__ */ function(a) {
|
|
|
10013
10027
|
var o = O(r);
|
|
10014
10028
|
function r() {
|
|
10015
10029
|
var t;
|
|
10016
|
-
|
|
10030
|
+
P(this, r);
|
|
10017
10031
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
10018
10032
|
i[n] = arguments[n];
|
|
10019
10033
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onDurationChange", function() {
|
|
@@ -10061,7 +10075,7 @@ var vl = /* @__PURE__ */ function(a) {
|
|
|
10061
10075
|
t._checkIfEnabled(u) && l >= u[u.length - 1].end && (t.player.currentTime = u[0].start);
|
|
10062
10076
|
}), t;
|
|
10063
10077
|
}
|
|
10064
|
-
return
|
|
10078
|
+
return L(r, [{
|
|
10065
10079
|
key: "afterCreate",
|
|
10066
10080
|
value: function() {
|
|
10067
10081
|
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ue, this._onDurationChange), this.on(Le, this._onLoadedData), this.on(de, this._onTimeupdate), this.on(Rt, this._onSeeking), this.on(ge, this._onPlay);
|
|
@@ -10172,7 +10186,7 @@ var wl = /* @__PURE__ */ function(a) {
|
|
|
10172
10186
|
var o = O(r);
|
|
10173
10187
|
function r() {
|
|
10174
10188
|
var t;
|
|
10175
|
-
|
|
10189
|
+
P(this, r);
|
|
10176
10190
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
10177
10191
|
i[n] = arguments[n];
|
|
10178
10192
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onBarMousedown", function(s) {
|
|
@@ -10210,7 +10224,7 @@ var wl = /* @__PURE__ */ function(a) {
|
|
|
10210
10224
|
}
|
|
10211
10225
|
}), t;
|
|
10212
10226
|
}
|
|
10213
|
-
return
|
|
10227
|
+
return L(r, [{
|
|
10214
10228
|
key: "registerIcons",
|
|
10215
10229
|
value: function() {
|
|
10216
10230
|
return {
|
|
@@ -10352,7 +10366,7 @@ var wl = /* @__PURE__ */ function(a) {
|
|
|
10352
10366
|
key: "defaultConfig",
|
|
10353
10367
|
get: function() {
|
|
10354
10368
|
return {
|
|
10355
|
-
position:
|
|
10369
|
+
position: $.CONTROLS_RIGHT,
|
|
10356
10370
|
index: 1,
|
|
10357
10371
|
disable: !1,
|
|
10358
10372
|
showValueLabel: !1,
|
|
@@ -10381,9 +10395,9 @@ var Tl = /* @__PURE__ */ function(a) {
|
|
|
10381
10395
|
var o = O(r);
|
|
10382
10396
|
function r(t) {
|
|
10383
10397
|
var e;
|
|
10384
|
-
return
|
|
10398
|
+
return P(this, r), e = o.call(this, t), e.rotateDeg = e.config.rotateDeg || 0, e;
|
|
10385
10399
|
}
|
|
10386
|
-
return
|
|
10400
|
+
return L(r, [{
|
|
10387
10401
|
key: "afterCreate",
|
|
10388
10402
|
value: function() {
|
|
10389
10403
|
var e = this;
|
|
@@ -10462,7 +10476,7 @@ var Tl = /* @__PURE__ */ function(a) {
|
|
|
10462
10476
|
key: "defaultConfig",
|
|
10463
10477
|
get: function() {
|
|
10464
10478
|
return {
|
|
10465
|
-
position:
|
|
10479
|
+
position: $.CONTROLS_RIGHT,
|
|
10466
10480
|
index: 6,
|
|
10467
10481
|
innerRotate: !0,
|
|
10468
10482
|
clockwise: !1,
|
|
@@ -10498,7 +10512,7 @@ var Je = {
|
|
|
10498
10512
|
var o = O(r);
|
|
10499
10513
|
function r() {
|
|
10500
10514
|
var t;
|
|
10501
|
-
|
|
10515
|
+
P(this, r);
|
|
10502
10516
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
10503
10517
|
i[n] = arguments[n];
|
|
10504
10518
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "switchPIP", function(s) {
|
|
@@ -10515,7 +10529,7 @@ var Je = {
|
|
|
10515
10529
|
}), t.setAttr("data-state", "pip"));
|
|
10516
10530
|
}), t;
|
|
10517
10531
|
}
|
|
10518
|
-
return
|
|
10532
|
+
return L(r, [{
|
|
10519
10533
|
key: "beforeCreate",
|
|
10520
10534
|
value: function(e) {
|
|
10521
10535
|
typeof e.player.config.pip == "boolean" && (e.config.showIcon = e.player.config.pip);
|
|
@@ -10567,9 +10581,9 @@ var Je = {
|
|
|
10567
10581
|
}, {
|
|
10568
10582
|
key: "copyStyleIntoPiPWindow",
|
|
10569
10583
|
value: function(e) {
|
|
10570
|
-
var i =
|
|
10584
|
+
var i = me(document.styleSheets).map(function(s) {
|
|
10571
10585
|
try {
|
|
10572
|
-
return
|
|
10586
|
+
return me(s.cssRules).map(function(u) {
|
|
10573
10587
|
return u.cssText;
|
|
10574
10588
|
}).join("");
|
|
10575
10589
|
} catch {
|
|
@@ -10679,7 +10693,7 @@ var Je = {
|
|
|
10679
10693
|
key: "defaultConfig",
|
|
10680
10694
|
get: function() {
|
|
10681
10695
|
return {
|
|
10682
|
-
position:
|
|
10696
|
+
position: $.CONTROLS_RIGHT,
|
|
10683
10697
|
index: 6,
|
|
10684
10698
|
showIcon: !1,
|
|
10685
10699
|
preferDocument: !1,
|
|
@@ -10707,12 +10721,12 @@ var Pl = /* @__PURE__ */ function(a) {
|
|
|
10707
10721
|
var o = O(r);
|
|
10708
10722
|
function r(t) {
|
|
10709
10723
|
var e;
|
|
10710
|
-
return
|
|
10724
|
+
return P(this, r), e = o.call(this, t), _(m(e), "playNext", function(i) {
|
|
10711
10725
|
var n = m(e), s = n.player;
|
|
10712
10726
|
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(xt, e.idx + 1)) : (e.nextHandler(), s.emit(xt));
|
|
10713
10727
|
}), e.idx = -1, e;
|
|
10714
10728
|
}
|
|
10715
|
-
return
|
|
10729
|
+
return L(r, [{
|
|
10716
10730
|
key: "afterCreate",
|
|
10717
10731
|
value: function() {
|
|
10718
10732
|
!this.config.urlList || this.config.urlList.length === 0 || (this.appendChild(".xgplayer-icon", this.icons.playNext), this.initEvents());
|
|
@@ -10763,7 +10777,7 @@ var Pl = /* @__PURE__ */ function(a) {
|
|
|
10763
10777
|
key: "defaultConfig",
|
|
10764
10778
|
get: function() {
|
|
10765
10779
|
return {
|
|
10766
|
-
position:
|
|
10780
|
+
position: $.CONTROLS_LEFT,
|
|
10767
10781
|
index: 1,
|
|
10768
10782
|
url: null,
|
|
10769
10783
|
urlList: []
|
|
@@ -10803,9 +10817,9 @@ var Pl = /* @__PURE__ */ function(a) {
|
|
|
10803
10817
|
}
|
|
10804
10818
|
v = u instanceof g ? u : new g([u], { type: l });
|
|
10805
10819
|
function x(A) {
|
|
10806
|
-
var te = A.split(/[:;,]/), Q = te[1], z = te[2] == "base64" ? atob : decodeURIComponent, re = z(te.pop()),
|
|
10807
|
-
for (
|
|
10808
|
-
be[
|
|
10820
|
+
var te = A.split(/[:;,]/), Q = te[1], z = te[2] == "base64" ? atob : decodeURIComponent, re = z(te.pop()), ue = re.length, ce = 0, be = new Uint8Array(ue);
|
|
10821
|
+
for (ce; ce < ue; ++ce)
|
|
10822
|
+
be[ce] = re.charCodeAt(ce);
|
|
10809
10823
|
return new g([be], { type: Q });
|
|
10810
10824
|
}
|
|
10811
10825
|
function B(A, te) {
|
|
@@ -10867,7 +10881,7 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
10867
10881
|
var o = O(r);
|
|
10868
10882
|
function r(t) {
|
|
10869
10883
|
var e;
|
|
10870
|
-
return
|
|
10884
|
+
return P(this, r), e = o.call(this, t), _(m(e), "download", function(i) {
|
|
10871
10885
|
if (!e.isLock) {
|
|
10872
10886
|
e.emitUserAction(i, "download");
|
|
10873
10887
|
var n = e.playerConfig.url, s = "";
|
|
@@ -10879,7 +10893,7 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
10879
10893
|
}
|
|
10880
10894
|
}), e.timer = null, e.isLock = !1, e;
|
|
10881
10895
|
}
|
|
10882
|
-
return
|
|
10896
|
+
return L(r, [{
|
|
10883
10897
|
key: "afterCreate",
|
|
10884
10898
|
value: function() {
|
|
10885
10899
|
F(R(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.appendChild(".xgplayer-icon", this.icons.download), this._handler = this.hook("click", this.download, {
|
|
@@ -10928,7 +10942,7 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
10928
10942
|
key: "defaultConfig",
|
|
10929
10943
|
get: function() {
|
|
10930
10944
|
return {
|
|
10931
|
-
position:
|
|
10945
|
+
position: $.CONTROLS_RIGHT,
|
|
10932
10946
|
index: 3,
|
|
10933
10947
|
disable: !0
|
|
10934
10948
|
};
|
|
@@ -10938,9 +10952,9 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
10938
10952
|
D(r, a);
|
|
10939
10953
|
var o = O(r);
|
|
10940
10954
|
function r() {
|
|
10941
|
-
return
|
|
10955
|
+
return P(this, r), o.apply(this, arguments);
|
|
10942
10956
|
}
|
|
10943
|
-
return
|
|
10957
|
+
return L(r, [{
|
|
10944
10958
|
key: "beforeCreate",
|
|
10945
10959
|
value: function(e) {
|
|
10946
10960
|
typeof e.player.config.screenShot == "boolean" && (e.config.disable = !e.player.config.screenShot);
|
|
@@ -11046,7 +11060,7 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
11046
11060
|
key: "defaultConfig",
|
|
11047
11061
|
get: function() {
|
|
11048
11062
|
return {
|
|
11049
|
-
position:
|
|
11063
|
+
position: $.CONTROLS_RIGHT,
|
|
11050
11064
|
index: 5,
|
|
11051
11065
|
quality: 0.92,
|
|
11052
11066
|
type: "image/png",
|
|
@@ -11062,7 +11076,7 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
11062
11076
|
}]), r;
|
|
11063
11077
|
}(Ye), Fl = /* @__PURE__ */ function() {
|
|
11064
11078
|
function a(o) {
|
|
11065
|
-
|
|
11079
|
+
P(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);
|
|
11066
11080
|
var r = this.config.maxHeight;
|
|
11067
11081
|
r && this.setStyle({
|
|
11068
11082
|
maxHeight: r
|
|
@@ -11070,7 +11084,7 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
11070
11084
|
var t = this.config.domEventType === "touch" ? "touchend" : "click";
|
|
11071
11085
|
this._delegates = W.delegate.call(this, this.root, "li", t, this.onItemClick);
|
|
11072
11086
|
}
|
|
11073
|
-
return
|
|
11087
|
+
return L(a, [{
|
|
11074
11088
|
key: "renderItemList",
|
|
11075
11089
|
value: function(r) {
|
|
11076
11090
|
var t = this, e = this.config, i = this.root;
|
|
@@ -11132,7 +11146,7 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
11132
11146
|
}), this._delegates = null), this.root.innerHTML = null, this.parent.removeChild(this.root), this.root = null;
|
|
11133
11147
|
}
|
|
11134
11148
|
}]), a;
|
|
11135
|
-
}(),
|
|
11149
|
+
}(), Ce = {
|
|
11136
11150
|
SIDE: "side",
|
|
11137
11151
|
MIDDLE: "middle",
|
|
11138
11152
|
DEFAULT: "default"
|
|
@@ -11141,14 +11155,14 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
11141
11155
|
HOVER: "hover"
|
|
11142
11156
|
};
|
|
11143
11157
|
function Ml(a, o) {
|
|
11144
|
-
return a ===
|
|
11158
|
+
return a === Ce.SIDE ? o === $.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
11145
11159
|
}
|
|
11146
11160
|
var je = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
11147
11161
|
D(r, a);
|
|
11148
11162
|
var o = O(r);
|
|
11149
11163
|
function r(t) {
|
|
11150
11164
|
var e;
|
|
11151
|
-
return
|
|
11165
|
+
return P(this, r), e = o.call(this, t), _(m(e), "onEnter", function(i) {
|
|
11152
11166
|
i.stopPropagation(), e.emit("icon_mouseenter", {
|
|
11153
11167
|
pluginName: e.pluginName
|
|
11154
11168
|
}), e.switchActiveState(i);
|
|
@@ -11159,14 +11173,14 @@ var je = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11159
11173
|
}), _(m(e), "onLeave", function(i) {
|
|
11160
11174
|
i.stopPropagation(), e.emit("icon_mouseleave", {
|
|
11161
11175
|
pluginName: e.pluginName
|
|
11162
|
-
}), e.config.listType !==
|
|
11176
|
+
}), e.config.listType !== Ce.SIDE && e.isActive && e.toggle(!1);
|
|
11163
11177
|
}), _(m(e), "onListEnter", function(i) {
|
|
11164
11178
|
e.enterType = 2;
|
|
11165
11179
|
}), _(m(e), "onListLeave", function(i) {
|
|
11166
11180
|
e.enterType = 0, e.isActive && e.toggle(!1);
|
|
11167
11181
|
}), e.isIcons = !1, e.isActive = !1, e.curValue = null, e.curIndex = 0, e;
|
|
11168
11182
|
}
|
|
11169
|
-
return
|
|
11183
|
+
return L(r, [{
|
|
11170
11184
|
key: "updateLang",
|
|
11171
11185
|
value: function(e) {
|
|
11172
11186
|
this.renderItemList(this.config.list, this.curIndex);
|
|
@@ -11175,7 +11189,7 @@ var je = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11175
11189
|
key: "afterCreate",
|
|
11176
11190
|
value: function() {
|
|
11177
11191
|
var e = this, i = this.config;
|
|
11178
|
-
this.initIcons(), je = je || this.domEventType === "touch", je && N.device === "mobile" && i.listType ===
|
|
11192
|
+
this.initIcons(), je = je || this.domEventType === "touch", je && N.device === "mobile" && i.listType === Ce.DEFAULT && (i.listType = Ce.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([Be, Te], function() {
|
|
11179
11193
|
e._resizeList();
|
|
11180
11194
|
}), this.once(Ie, function() {
|
|
11181
11195
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
@@ -11219,7 +11233,7 @@ var je = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11219
11233
|
value: function(e) {
|
|
11220
11234
|
if (!(e === this.isActive || this.config.disable)) {
|
|
11221
11235
|
var i = this.player.controls, n = this.config.listType;
|
|
11222
|
-
e ? (n ===
|
|
11236
|
+
e ? (n === Ce.SIDE ? i.blur() : i.focus(), this.optionsList && this.optionsList.show()) : (n === Ce.SIDE ? i.focus() : i.focusAwhile(), this.optionsList && this.optionsList.hide()), this.isActive = e;
|
|
11223
11237
|
}
|
|
11224
11238
|
}
|
|
11225
11239
|
}, {
|
|
@@ -11229,7 +11243,7 @@ var je = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11229
11243
|
var n = this.config, s = n.listType, l = n.list;
|
|
11230
11244
|
this.curIndex = i.to.index, this.curItem = l[this.curIndex], this.changeCurrentText();
|
|
11231
11245
|
var u = this.config.isItemClickHide;
|
|
11232
|
-
(u || je || s ===
|
|
11246
|
+
(u || je || s === Ce.SIDE) && this.toggle(!1);
|
|
11233
11247
|
}
|
|
11234
11248
|
}, {
|
|
11235
11249
|
key: "onIconClick",
|
|
@@ -11260,10 +11274,10 @@ var je = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11260
11274
|
},
|
|
11261
11275
|
domEventType: je ? "touch" : "mouse"
|
|
11262
11276
|
},
|
|
11263
|
-
root: s.listType ===
|
|
11277
|
+
root: s.listType === Ce.SIDE ? u.innerContainer || u.root : this.root
|
|
11264
11278
|
};
|
|
11265
11279
|
if (this.config.isShowIcon) {
|
|
11266
|
-
var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType ===
|
|
11280
|
+
var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === Ce.MIDDLE ? d - 50 : d;
|
|
11267
11281
|
g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new Fl(c), this.changeCurrentText(), this.show();
|
|
11268
11282
|
}
|
|
11269
11283
|
this._resizeList();
|
|
@@ -11272,7 +11286,7 @@ var je = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11272
11286
|
key: "_resizeList",
|
|
11273
11287
|
value: function() {
|
|
11274
11288
|
if (this.config.heightLimit) {
|
|
11275
|
-
var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType ===
|
|
11289
|
+
var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType === Ce.MIDDLE ? i - 50 : i;
|
|
11276
11290
|
this.optionsList && this.optionsList.setStyle({
|
|
11277
11291
|
maxHeight: "".concat(n, "px")
|
|
11278
11292
|
});
|
|
@@ -11302,7 +11316,7 @@ var je = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11302
11316
|
key: "defaultConfig",
|
|
11303
11317
|
get: function() {
|
|
11304
11318
|
return {
|
|
11305
|
-
position:
|
|
11319
|
+
position: $.CONTROLS_RIGHT,
|
|
11306
11320
|
index: 100,
|
|
11307
11321
|
list: [],
|
|
11308
11322
|
listType: "default",
|
|
@@ -11320,9 +11334,9 @@ var je = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11320
11334
|
var o = O(r);
|
|
11321
11335
|
function r(t) {
|
|
11322
11336
|
var e;
|
|
11323
|
-
return
|
|
11337
|
+
return P(this, r), e = o.call(this, t), e.curTime = 0, e.isPaused = !0, e;
|
|
11324
11338
|
}
|
|
11325
|
-
return
|
|
11339
|
+
return L(r, [{
|
|
11326
11340
|
key: "beforeCreate",
|
|
11327
11341
|
value: function(e) {
|
|
11328
11342
|
var i = e.config.list;
|
|
@@ -11405,7 +11419,7 @@ var je = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11405
11419
|
key: "defaultConfig",
|
|
11406
11420
|
get: function() {
|
|
11407
11421
|
return Z(Z({}, Dt.defaultConfig), {}, {
|
|
11408
|
-
position:
|
|
11422
|
+
position: $.CONTROLS_RIGHT,
|
|
11409
11423
|
index: 3,
|
|
11410
11424
|
list: [],
|
|
11411
11425
|
defaultDefinition: "",
|
|
@@ -11421,9 +11435,9 @@ var je = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11421
11435
|
var o = O(r);
|
|
11422
11436
|
function r(t) {
|
|
11423
11437
|
var e;
|
|
11424
|
-
return
|
|
11438
|
+
return P(this, r), e = o.call(this, t), e.curRate = 1, e;
|
|
11425
11439
|
}
|
|
11426
|
-
return
|
|
11440
|
+
return L(r, [{
|
|
11427
11441
|
key: "beforeCreate",
|
|
11428
11442
|
value: function(e) {
|
|
11429
11443
|
var i = e.player.config.playbackRate, n = i ? Array.isArray(i) ? i : e.config.list : [];
|
|
@@ -11499,7 +11513,7 @@ var je = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11499
11513
|
key: "defaultConfig",
|
|
11500
11514
|
get: function() {
|
|
11501
11515
|
return Z(Z({}, Dt.defaultConfig), {}, {
|
|
11502
|
-
position:
|
|
11516
|
+
position: $.CONTROLS_RIGHT,
|
|
11503
11517
|
index: 4,
|
|
11504
11518
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
11505
11519
|
className: "xgplayer-playbackrate",
|
|
@@ -11525,9 +11539,9 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
11525
11539
|
D(r, a);
|
|
11526
11540
|
var o = O(r);
|
|
11527
11541
|
function r() {
|
|
11528
|
-
return
|
|
11542
|
+
return P(this, r), o.apply(this, arguments);
|
|
11529
11543
|
}
|
|
11530
|
-
return
|
|
11544
|
+
return L(r, [{
|
|
11531
11545
|
key: "beforeCreate",
|
|
11532
11546
|
value: function(e) {
|
|
11533
11547
|
typeof e.player.config.cssFullscreen == "boolean" && (e.config.disable = !e.player.config.cssFullscreen);
|
|
@@ -11608,7 +11622,7 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
11608
11622
|
key: "defaultConfig",
|
|
11609
11623
|
get: function() {
|
|
11610
11624
|
return {
|
|
11611
|
-
position:
|
|
11625
|
+
position: $.CONTROLS_RIGHT,
|
|
11612
11626
|
index: 1,
|
|
11613
11627
|
disable: !1,
|
|
11614
11628
|
target: null
|
|
@@ -11619,9 +11633,9 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
11619
11633
|
D(r, a);
|
|
11620
11634
|
var o = O(r);
|
|
11621
11635
|
function r() {
|
|
11622
|
-
return
|
|
11636
|
+
return P(this, r), o.apply(this, arguments);
|
|
11623
11637
|
}
|
|
11624
|
-
return
|
|
11638
|
+
return L(r, [{
|
|
11625
11639
|
key: "afterCreate",
|
|
11626
11640
|
value: function() {
|
|
11627
11641
|
var e = this;
|
|
@@ -11680,9 +11694,9 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
11680
11694
|
D(r, a);
|
|
11681
11695
|
var o = O(r);
|
|
11682
11696
|
function r() {
|
|
11683
|
-
return
|
|
11697
|
+
return P(this, r), o.apply(this, arguments);
|
|
11684
11698
|
}
|
|
11685
|
-
return
|
|
11699
|
+
return L(r, [{
|
|
11686
11700
|
key: "afterCreate",
|
|
11687
11701
|
value: function() {
|
|
11688
11702
|
var e = this;
|
|
@@ -11935,7 +11949,7 @@ var et = {
|
|
|
11935
11949
|
var o = O(r);
|
|
11936
11950
|
function r(t) {
|
|
11937
11951
|
var e;
|
|
11938
|
-
return
|
|
11952
|
+
return P(this, r), e = o.call(this, t), _(m(e), "onMousemove", function(i) {
|
|
11939
11953
|
if (!e.config.disable) {
|
|
11940
11954
|
if (f.hasClass(i.target, "xg-spot-content") && e.config.isHideThumbnailHover) {
|
|
11941
11955
|
e.player.plugins.progress.onMouseLeave(i);
|
|
@@ -11967,7 +11981,7 @@ var et = {
|
|
|
11967
11981
|
f: !1
|
|
11968
11982
|
}, e;
|
|
11969
11983
|
}
|
|
11970
|
-
return
|
|
11984
|
+
return L(r, [{
|
|
11971
11985
|
key: "beforeCreate",
|
|
11972
11986
|
value: function(e) {
|
|
11973
11987
|
var i = e.player.plugins.progress;
|
|
@@ -12210,9 +12224,9 @@ var et = {
|
|
|
12210
12224
|
var o = O(r);
|
|
12211
12225
|
function r(t) {
|
|
12212
12226
|
var e;
|
|
12213
|
-
return
|
|
12227
|
+
return P(this, r), e = o.call(this, t), e.ratio = 1, e.interval = null, e._preloadMark = {}, e;
|
|
12214
12228
|
}
|
|
12215
|
-
return
|
|
12229
|
+
return L(r, [{
|
|
12216
12230
|
key: "afterCreate",
|
|
12217
12231
|
value: function() {
|
|
12218
12232
|
var e = this;
|
|
@@ -12348,7 +12362,7 @@ var $l = /* @__PURE__ */ function(a) {
|
|
|
12348
12362
|
var o = O(r);
|
|
12349
12363
|
function r() {
|
|
12350
12364
|
var t;
|
|
12351
|
-
|
|
12365
|
+
P(this, r);
|
|
12352
12366
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12353
12367
|
i[n] = arguments[n];
|
|
12354
12368
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onTimeupdate", function() {
|
|
@@ -12358,7 +12372,7 @@ var $l = /* @__PURE__ */ function(a) {
|
|
|
12358
12372
|
}, u);
|
|
12359
12373
|
}), t;
|
|
12360
12374
|
}
|
|
12361
|
-
return
|
|
12375
|
+
return L(r, [{
|
|
12362
12376
|
key: "offsetDuration",
|
|
12363
12377
|
get: function() {
|
|
12364
12378
|
return this.playerConfig.customDuration || this.player.offsetDuration || this.player.duration;
|
|
@@ -12451,7 +12465,7 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12451
12465
|
var o = O(r);
|
|
12452
12466
|
function r() {
|
|
12453
12467
|
var t;
|
|
12454
|
-
|
|
12468
|
+
P(this, r);
|
|
12455
12469
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12456
12470
|
i[n] = arguments[n];
|
|
12457
12471
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onLoadedData", function(s) {
|
|
@@ -12473,7 +12487,7 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12473
12487
|
t.frameId && (t._loopType === "timer" ? f.clearTimeout(m(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
12474
12488
|
}), t;
|
|
12475
12489
|
}
|
|
12476
|
-
return
|
|
12490
|
+
return L(r, [{
|
|
12477
12491
|
key: "afterCreate",
|
|
12478
12492
|
value: function() {
|
|
12479
12493
|
var e = this;
|
|
@@ -12728,7 +12742,7 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12728
12742
|
var o = O(r);
|
|
12729
12743
|
function r() {
|
|
12730
12744
|
var t;
|
|
12731
|
-
|
|
12745
|
+
P(this, r);
|
|
12732
12746
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12733
12747
|
i[n] = arguments[n];
|
|
12734
12748
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "_recordUserActions", function(s) {
|
|
@@ -12751,7 +12765,7 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12751
12765
|
c.style.display = "none", c.href = u, c.download = "player.txt", c.disabled = !1, c.click();
|
|
12752
12766
|
}), t;
|
|
12753
12767
|
}
|
|
12754
|
-
return
|
|
12768
|
+
return L(r, [{
|
|
12755
12769
|
key: "_getTime",
|
|
12756
12770
|
value: function() {
|
|
12757
12771
|
return {
|
|
@@ -12872,7 +12886,7 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12872
12886
|
var o = O(r);
|
|
12873
12887
|
function r() {
|
|
12874
12888
|
var t;
|
|
12875
|
-
|
|
12889
|
+
P(this, r);
|
|
12876
12890
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12877
12891
|
i[n] = arguments[n];
|
|
12878
12892
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onGapJump", function() {
|
|
@@ -12904,7 +12918,7 @@ var _t = null, Xl = /* @__PURE__ */ function(a) {
|
|
|
12904
12918
|
}
|
|
12905
12919
|
}), t;
|
|
12906
12920
|
}
|
|
12907
|
-
return
|
|
12921
|
+
return L(r, [{
|
|
12908
12922
|
key: "afterCreate",
|
|
12909
12923
|
value: function() {
|
|
12910
12924
|
var e = this, i = this.config.useGapJump;
|
|
@@ -12962,7 +12976,7 @@ var Jl = /* @__PURE__ */ function(a) {
|
|
|
12962
12976
|
var o = O(r);
|
|
12963
12977
|
function r() {
|
|
12964
12978
|
var t;
|
|
12965
|
-
|
|
12979
|
+
P(this, r);
|
|
12966
12980
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12967
12981
|
i[n] = arguments[n];
|
|
12968
12982
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onWaiting", function() {
|
|
@@ -12977,7 +12991,7 @@ var Jl = /* @__PURE__ */ function(a) {
|
|
|
12977
12991
|
}
|
|
12978
12992
|
}), t;
|
|
12979
12993
|
}
|
|
12980
|
-
return
|
|
12994
|
+
return L(r, [{
|
|
12981
12995
|
key: "afterCreate",
|
|
12982
12996
|
value: function() {
|
|
12983
12997
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
@@ -13008,7 +13022,7 @@ var Jl = /* @__PURE__ */ function(a) {
|
|
|
13008
13022
|
var o = O(r);
|
|
13009
13023
|
function r() {
|
|
13010
13024
|
var t;
|
|
13011
|
-
|
|
13025
|
+
P(this, r);
|
|
13012
13026
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
13013
13027
|
i[n] = arguments[n];
|
|
13014
13028
|
return t = o.call.apply(o, [this].concat(i)), _(m(t), "getSpeed", function() {
|
|
@@ -13075,11 +13089,11 @@ var Jl = /* @__PURE__ */ function(a) {
|
|
|
13075
13089
|
}
|
|
13076
13090
|
}), t;
|
|
13077
13091
|
}
|
|
13078
|
-
return
|
|
13092
|
+
return L(r, [{
|
|
13079
13093
|
key: "afterCreate",
|
|
13080
13094
|
value: function() {
|
|
13081
13095
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
13082
|
-
(n == null ? void 0 : n.length) > 0 && kt.push.apply(kt,
|
|
13096
|
+
(n == null ? void 0 : n.length) > 0 && kt.push.apply(kt, me(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Le, Tt], this.startTimer);
|
|
13083
13097
|
}
|
|
13084
13098
|
}, {
|
|
13085
13099
|
key: "getSpeedName",
|
|
@@ -13133,9 +13147,9 @@ var Jl = /* @__PURE__ */ function(a) {
|
|
|
13133
13147
|
D(r, a);
|
|
13134
13148
|
var o = O(r);
|
|
13135
13149
|
function r() {
|
|
13136
|
-
return
|
|
13150
|
+
return P(this, r), o.apply(this, arguments);
|
|
13137
13151
|
}
|
|
13138
|
-
return
|
|
13152
|
+
return L(r, [{
|
|
13139
13153
|
key: "afterCreate",
|
|
13140
13154
|
value: function() {
|
|
13141
13155
|
var e = this, i = this.player, n = this.config, s = i.media || i.video;
|
|
@@ -13240,11 +13254,11 @@ var Jl = /* @__PURE__ */ function(a) {
|
|
|
13240
13254
|
}]), r;
|
|
13241
13255
|
}(W);
|
|
13242
13256
|
nt.use(ql);
|
|
13243
|
-
var tu = /* @__PURE__ */
|
|
13257
|
+
var tu = /* @__PURE__ */ L(function a(o, r) {
|
|
13244
13258
|
var t, e, i;
|
|
13245
|
-
|
|
13259
|
+
P(this, a);
|
|
13246
13260
|
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [yl, cl, $l, Wl, ml], u = [].concat(l, [fl, vl, Tl, Pl, Nl, Bl, Ol, Rl, wl, xl]), c = [Wa, Ga, Ka, al, Ya, zl, Vl, Gl, Ja];
|
|
13247
|
-
this.plugins = [Zl, Va].concat(
|
|
13261
|
+
this.plugins = [Zl, Va].concat(me(u), c, [nr, Jl]);
|
|
13248
13262
|
var h = n ? "mobile" : N.device;
|
|
13249
13263
|
switch (h) {
|
|
13250
13264
|
case "pc":
|
|
@@ -13257,24 +13271,24 @@ var tu = /* @__PURE__ */ P(function a(o, r) {
|
|
|
13257
13271
|
(i = this.plugins).push.apply(i, [pn, Jt, mn]);
|
|
13258
13272
|
}
|
|
13259
13273
|
(N.os.isIpad || h === "pc") && this.plugins.push(Xl), N.os.isIpad && this.plugins.push(Jt), this.ignores = [], this.i18n = [];
|
|
13260
|
-
}),
|
|
13274
|
+
}), ye = /* @__PURE__ */ function(a) {
|
|
13261
13275
|
D(r, a);
|
|
13262
13276
|
var o = O(r);
|
|
13263
13277
|
function r() {
|
|
13264
|
-
return
|
|
13278
|
+
return P(this, r), o.apply(this, arguments);
|
|
13265
13279
|
}
|
|
13266
|
-
return
|
|
13280
|
+
return L(r);
|
|
13267
13281
|
}(Bt);
|
|
13268
|
-
_(
|
|
13269
|
-
_(
|
|
13270
|
-
_(
|
|
13271
|
-
_(
|
|
13272
|
-
_(
|
|
13273
|
-
_(
|
|
13274
|
-
_(
|
|
13275
|
-
_(
|
|
13276
|
-
_(
|
|
13277
|
-
_(
|
|
13282
|
+
_(ye, "defaultPreset", tu);
|
|
13283
|
+
_(ye, "Util", f);
|
|
13284
|
+
_(ye, "Sniffer", N);
|
|
13285
|
+
_(ye, "Errors", bt);
|
|
13286
|
+
_(ye, "Events", va);
|
|
13287
|
+
_(ye, "Plugin", W);
|
|
13288
|
+
_(ye, "BasePlugin", He);
|
|
13289
|
+
_(ye, "I18N", nt);
|
|
13290
|
+
_(ye, "STATE_CLASS", C);
|
|
13291
|
+
_(ye, "InstManager", Qn);
|
|
13278
13292
|
const iu = ["id"], nu = /* @__PURE__ */ J({
|
|
13279
13293
|
name: "ElImageViewer",
|
|
13280
13294
|
__name: "Player",
|
|
@@ -13331,7 +13345,7 @@ const iu = ["id"], nu = /* @__PURE__ */ J({
|
|
|
13331
13345
|
}
|
|
13332
13346
|
return ot(() => u.value, (g) => {
|
|
13333
13347
|
g && hi(() => {
|
|
13334
|
-
r = new
|
|
13348
|
+
r = new ye({
|
|
13335
13349
|
id: c,
|
|
13336
13350
|
url: i.value,
|
|
13337
13351
|
...s.value
|
|
@@ -13339,7 +13353,7 @@ const iu = ["id"], nu = /* @__PURE__ */ J({
|
|
|
13339
13353
|
});
|
|
13340
13354
|
}), (g, p) => {
|
|
13341
13355
|
const v = st("el-icon");
|
|
13342
|
-
return u.value ? (E(),
|
|
13356
|
+
return u.value ? (E(), he(kn, {
|
|
13343
13357
|
key: 0,
|
|
13344
13358
|
to: "body"
|
|
13345
13359
|
}, [
|
|
@@ -13353,32 +13367,32 @@ const iu = ["id"], nu = /* @__PURE__ */ J({
|
|
|
13353
13367
|
{
|
|
13354
13368
|
ref: "wrapper",
|
|
13355
13369
|
tabindex: -1,
|
|
13356
|
-
class:
|
|
13370
|
+
class: K(S(h).e("wrapper")),
|
|
13357
13371
|
style: ie({ zIndex: a.zIndex })
|
|
13358
13372
|
},
|
|
13359
13373
|
[
|
|
13360
13374
|
T(
|
|
13361
13375
|
"div",
|
|
13362
13376
|
{
|
|
13363
|
-
class:
|
|
13377
|
+
class: K(S(h).e("mask"))
|
|
13364
13378
|
},
|
|
13365
13379
|
null,
|
|
13366
13380
|
2
|
|
13367
13381
|
/* CLASS */
|
|
13368
13382
|
),
|
|
13369
|
-
|
|
13383
|
+
Y(" CANVAS "),
|
|
13370
13384
|
T(
|
|
13371
13385
|
"div",
|
|
13372
13386
|
{
|
|
13373
|
-
class:
|
|
13387
|
+
class: K(S(h).e("canvas"))
|
|
13374
13388
|
},
|
|
13375
13389
|
[
|
|
13376
13390
|
T("div", { id: S(c) }, null, 8, iu),
|
|
13377
|
-
|
|
13391
|
+
Y(" CLOSE "),
|
|
13378
13392
|
T(
|
|
13379
13393
|
"span",
|
|
13380
13394
|
{
|
|
13381
|
-
class:
|
|
13395
|
+
class: K([S(h).e("btn"), S(h).e("close")]),
|
|
13382
13396
|
onClick: d
|
|
13383
13397
|
},
|
|
13384
13398
|
[
|
|
@@ -13406,7 +13420,7 @@ const iu = ["id"], nu = /* @__PURE__ */ J({
|
|
|
13406
13420
|
_: 3
|
|
13407
13421
|
/* FORWARDED */
|
|
13408
13422
|
})
|
|
13409
|
-
])) :
|
|
13423
|
+
])) : Y("v-if", !0);
|
|
13410
13424
|
};
|
|
13411
13425
|
}
|
|
13412
13426
|
});
|
|
@@ -13482,12 +13496,12 @@ const ru = /* @__PURE__ */ Ot(nu, [["__scopeId", "data-v-b301aa7d"]]), su = Ae(r
|
|
|
13482
13496
|
return (u, c) => {
|
|
13483
13497
|
var d, g;
|
|
13484
13498
|
const h = st("el-image");
|
|
13485
|
-
return E(),
|
|
13486
|
-
o.fileType === "file" ? (E(),
|
|
13487
|
-
(E(!0),
|
|
13488
|
-
|
|
13499
|
+
return E(), I("div", null, [
|
|
13500
|
+
o.fileType === "file" ? (E(), I("div", au, [
|
|
13501
|
+
(E(!0), I(
|
|
13502
|
+
pe,
|
|
13489
13503
|
null,
|
|
13490
|
-
rt(r.value, (p, v) => (E(),
|
|
13504
|
+
rt(r.value, (p, v) => (E(), I(
|
|
13491
13505
|
"div",
|
|
13492
13506
|
{
|
|
13493
13507
|
key: v,
|
|
@@ -13534,12 +13548,12 @@ const ru = /* @__PURE__ */ Ot(nu, [["__scopeId", "data-v-b301aa7d"]]), su = Ae(r
|
|
|
13534
13548
|
128
|
|
13535
13549
|
/* KEYED_FRAGMENT */
|
|
13536
13550
|
))
|
|
13537
|
-
])) :
|
|
13538
|
-
o.fileType === "img" ? (E(),
|
|
13539
|
-
(E(!0),
|
|
13540
|
-
|
|
13551
|
+
])) : Y("v-if", !0),
|
|
13552
|
+
o.fileType === "img" ? (E(), I("div", gu, [
|
|
13553
|
+
(E(!0), I(
|
|
13554
|
+
pe,
|
|
13541
13555
|
null,
|
|
13542
|
-
rt(r.value, (p, v) => (E(),
|
|
13556
|
+
rt(r.value, (p, v) => (E(), I("div", {
|
|
13543
13557
|
key: v,
|
|
13544
13558
|
class: "preview-img"
|
|
13545
13559
|
}, [
|
|
@@ -13553,7 +13567,7 @@ const ru = /* @__PURE__ */ Ot(nu, [["__scopeId", "data-v-b301aa7d"]]), su = Ae(r
|
|
|
13553
13567
|
128
|
|
13554
13568
|
/* KEYED_FRAGMENT */
|
|
13555
13569
|
))
|
|
13556
|
-
])) :
|
|
13570
|
+
])) : Y("v-if", !0),
|
|
13557
13571
|
j(S(io), {
|
|
13558
13572
|
modelValue: t.value,
|
|
13559
13573
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => t.value = p),
|