iking-web-ui-pro 0.2.49 → 0.2.51
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 +565 -551
- package/dist/IKApprovalProcessDetail/ik.index.umd.js +23 -23
- package/dist/IKPreviewFile/ik.index.es.js +1077 -1063
- package/dist/IKPreviewFile/ik.index.umd.js +38 -38
- package/dist/IkDescription/ik.index.es.js +1163 -1149
- package/dist/IkDescription/ik.index.umd.js +38 -38
- package/dist/IkDetailPreviewFiles/ik.index.es.js +954 -940
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +38 -38
- package/dist/index.es.js +4976 -4962
- package/dist/index.umd.js +72 -72
- package/dist/src/components/IKPreviewFile/index.d.ts +26 -7
- package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +12 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as te, computed as Z, openBlock as k, createElementBlock as T, createElementVNode as w, inject as ft, ref as ve, resolveComponent as Ye, Fragment as re, createCommentVNode as I, renderList as Se, normalizeStyle as se, toDisplayString as X, normalizeClass as K, createBlock as fe, unref as P, withModifiers as bt, renderSlot as Ne, createVNode as $, withCtx as ne, mergeModels as Tt, useModel as hi, reactive as wn, watch as ot, nextTick as gt, createTextVNode as Ge, h as lr, mergeProps as bn, createSlots as ur, getCurrentScope as cr, onScopeDispose as fr, markRaw as Fi, effectScope as hr, shallowRef as dr, onMounted as Tn, Teleport as En, Transition as Sn, resolveDynamicComponent as gr, withDirectives as pr, vShow as vr, pushScopeId as mr, popScopeId as yr } from "vue";
|
|
2
2
|
import { paramType as ri, ikFile as _r, buildUUID as xn, ikColor as kr, _ as jt, ikDate as Cr } from "iking-utils-pro";
|
|
3
3
|
import { useLocale as wr, useNamespace as In, useZIndex as br, ElIcon as Oe, EVENT_CODE as Je } from "element-plus";
|
|
4
4
|
const Le = (a, o) => {
|
|
@@ -598,7 +598,7 @@ const Le = (a, o) => {
|
|
|
598
598
|
bs,
|
|
599
599
|
Ts,
|
|
600
600
|
Es
|
|
601
|
-
], xs = /* @__PURE__ */
|
|
601
|
+
], xs = /* @__PURE__ */ te({
|
|
602
602
|
__name: "IkFileIcon",
|
|
603
603
|
props: {
|
|
604
604
|
type: {
|
|
@@ -624,7 +624,7 @@ const Le = (a, o) => {
|
|
|
624
624
|
}
|
|
625
625
|
}), Ni = Le(xs);
|
|
626
626
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
627
|
-
var Is = /* @__PURE__ */
|
|
627
|
+
var Is = /* @__PURE__ */ te({
|
|
628
628
|
name: "ArrowLeft",
|
|
629
629
|
__name: "arrow-left",
|
|
630
630
|
setup(a) {
|
|
@@ -638,7 +638,7 @@ var Is = /* @__PURE__ */ ee({
|
|
|
638
638
|
})
|
|
639
639
|
]));
|
|
640
640
|
}
|
|
641
|
-
}), Ps = Is, As = /* @__PURE__ */
|
|
641
|
+
}), Ps = Is, As = /* @__PURE__ */ te({
|
|
642
642
|
name: "ArrowRight",
|
|
643
643
|
__name: "arrow-right",
|
|
644
644
|
setup(a) {
|
|
@@ -652,7 +652,7 @@ var Is = /* @__PURE__ */ ee({
|
|
|
652
652
|
})
|
|
653
653
|
]));
|
|
654
654
|
}
|
|
655
|
-
}), Ls = As, Ds = /* @__PURE__ */
|
|
655
|
+
}), Ls = As, Ds = /* @__PURE__ */ te({
|
|
656
656
|
name: "Close",
|
|
657
657
|
__name: "close",
|
|
658
658
|
setup(a) {
|
|
@@ -666,7 +666,7 @@ var Is = /* @__PURE__ */ ee({
|
|
|
666
666
|
})
|
|
667
667
|
]));
|
|
668
668
|
}
|
|
669
|
-
}), Pn = Ds, Os = /* @__PURE__ */
|
|
669
|
+
}), Pn = Ds, Os = /* @__PURE__ */ te({
|
|
670
670
|
name: "FullScreen",
|
|
671
671
|
__name: "full-screen",
|
|
672
672
|
setup(a) {
|
|
@@ -680,7 +680,7 @@ var Is = /* @__PURE__ */ ee({
|
|
|
680
680
|
})
|
|
681
681
|
]));
|
|
682
682
|
}
|
|
683
|
-
}), Rs = Os, Fs = /* @__PURE__ */
|
|
683
|
+
}), Rs = Os, Fs = /* @__PURE__ */ te({
|
|
684
684
|
name: "RefreshLeft",
|
|
685
685
|
__name: "refresh-left",
|
|
686
686
|
setup(a) {
|
|
@@ -694,7 +694,7 @@ var Is = /* @__PURE__ */ ee({
|
|
|
694
694
|
})
|
|
695
695
|
]));
|
|
696
696
|
}
|
|
697
|
-
}), Ms = Fs, Ns = /* @__PURE__ */
|
|
697
|
+
}), Ms = Fs, Ns = /* @__PURE__ */ te({
|
|
698
698
|
name: "RefreshRight",
|
|
699
699
|
__name: "refresh-right",
|
|
700
700
|
setup(a) {
|
|
@@ -708,7 +708,7 @@ var Is = /* @__PURE__ */ ee({
|
|
|
708
708
|
})
|
|
709
709
|
]));
|
|
710
710
|
}
|
|
711
|
-
}), Bs = Ns, Hs = /* @__PURE__ */
|
|
711
|
+
}), Bs = Ns, Hs = /* @__PURE__ */ te({
|
|
712
712
|
name: "ScaleToOriginal",
|
|
713
713
|
__name: "scale-to-original",
|
|
714
714
|
setup(a) {
|
|
@@ -722,7 +722,7 @@ var Is = /* @__PURE__ */ ee({
|
|
|
722
722
|
})
|
|
723
723
|
]));
|
|
724
724
|
}
|
|
725
|
-
}), Us = Hs, zs = /* @__PURE__ */
|
|
725
|
+
}), Us = Hs, zs = /* @__PURE__ */ te({
|
|
726
726
|
name: "ZoomIn",
|
|
727
727
|
__name: "zoom-in",
|
|
728
728
|
setup(a) {
|
|
@@ -736,7 +736,7 @@ var Is = /* @__PURE__ */ ee({
|
|
|
736
736
|
})
|
|
737
737
|
]));
|
|
738
738
|
}
|
|
739
|
-
}), Vs = zs, js = /* @__PURE__ */
|
|
739
|
+
}), Vs = zs, js = /* @__PURE__ */ te({
|
|
740
740
|
name: "ZoomOut",
|
|
741
741
|
__name: "zoom-out",
|
|
742
742
|
setup(a) {
|
|
@@ -939,7 +939,7 @@ const Ft = (a, o) => {
|
|
|
939
939
|
const r = ["B", "KB", "MB", "GB", "TB"], t = Math.floor(Math.log(a) / Math.log(1024));
|
|
940
940
|
let e = a / Math.pow(1024, t);
|
|
941
941
|
return (e % 1 === 0 ? e.toFixed(o || 0) : e.toFixed(o)) + " " + r[t];
|
|
942
|
-
}, lt = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "", Ys = ["onClick"], Xs = { class: "fileName simple" }, qs = ["onClick"], Zs = { class: "file-list" }, Js = { class: "fileName simple" }, Qs = ["onClick"], ea = { class: "text" }, ta = { class: "fileName" }, ia = { class: "size" }, na = /* @__PURE__ */
|
|
942
|
+
}, lt = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "", Ys = ["onClick"], Xs = { class: "fileName simple" }, qs = ["onClick"], Zs = { class: "file-list" }, Js = { class: "fileName simple" }, Qs = ["onClick"], ea = { class: "text" }, ta = { class: "fileName" }, ia = { class: "size" }, na = /* @__PURE__ */ te({
|
|
943
943
|
__name: "IkPreviewFile",
|
|
944
944
|
props: {
|
|
945
945
|
list: {
|
|
@@ -1017,73 +1017,78 @@ const Ft = (a, o) => {
|
|
|
1017
1017
|
type: String,
|
|
1018
1018
|
default: "default"
|
|
1019
1019
|
},
|
|
1020
|
-
//
|
|
1021
|
-
|
|
1020
|
+
// 是否显示下载按钮
|
|
1021
|
+
showDownloadBtn: {
|
|
1022
|
+
type: Boolean,
|
|
1023
|
+
default: !0
|
|
1024
|
+
},
|
|
1025
|
+
// 是否显示预览按钮
|
|
1026
|
+
showPreviewBtn: {
|
|
1022
1027
|
type: Boolean,
|
|
1023
1028
|
default: !0
|
|
1024
1029
|
}
|
|
1025
1030
|
},
|
|
1026
1031
|
emits: ["handPreview"],
|
|
1027
1032
|
setup(a, { emit: o }) {
|
|
1028
|
-
const r = a, { cLoadUrl:
|
|
1033
|
+
const r = a, t = Z(() => r.simple ? "simple" : r.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: n } = di(r), s = o, l = Z(() => ({
|
|
1029
1034
|
name: "name",
|
|
1030
1035
|
url: "url",
|
|
1031
1036
|
suffix: "suffix",
|
|
1032
1037
|
size: "size",
|
|
1033
1038
|
...r.field
|
|
1034
|
-
})),
|
|
1035
|
-
var
|
|
1036
|
-
|
|
1037
|
-
...
|
|
1038
|
-
name:
|
|
1039
|
+
})), u = ve({}), c = ve(!1), h = (v) => {
|
|
1040
|
+
var m, C;
|
|
1041
|
+
u.value = {
|
|
1042
|
+
...v,
|
|
1043
|
+
name: v.name,
|
|
1039
1044
|
url: lt(
|
|
1040
|
-
|
|
1041
|
-
|
|
1045
|
+
e.value,
|
|
1046
|
+
v[l.value.url] || ((C = (m = v == null ? void 0 : v.response) == null ? void 0 : m.data) == null ? void 0 : C.id) || (v == null ? void 0 : v.id)
|
|
1042
1047
|
)
|
|
1043
|
-
}, r.isOnlyOfficePreview && (
|
|
1044
|
-
},
|
|
1048
|
+
}, r.isOnlyOfficePreview && (c.value = !0), s("handPreview", u.value);
|
|
1049
|
+
}, g = (v) => {
|
|
1045
1050
|
_r.downloadFile(
|
|
1046
1051
|
lt(
|
|
1047
|
-
|
|
1048
|
-
|
|
1052
|
+
e.value,
|
|
1053
|
+
v[l.value.url] || v.attachmentId || v.id
|
|
1049
1054
|
),
|
|
1050
|
-
|
|
1055
|
+
v[l.value.name] || v.attachmentName
|
|
1051
1056
|
);
|
|
1052
|
-
},
|
|
1053
|
-
var
|
|
1054
|
-
const
|
|
1057
|
+
}, p = Z(() => ri.isNumber(r.width) ? `${r.width}px` : r.width), d = Z(() => r.list.map((v) => {
|
|
1058
|
+
var C;
|
|
1059
|
+
const m = v[l.value.name] || v.attachmentName;
|
|
1055
1060
|
return {
|
|
1056
|
-
...
|
|
1057
|
-
name:
|
|
1058
|
-
size:
|
|
1059
|
-
suffix:
|
|
1061
|
+
...v,
|
|
1062
|
+
name: m,
|
|
1063
|
+
size: v[l.value.size] || (v == null ? void 0 : v.fileSize) || (v == null ? void 0 : v.attachmentSize),
|
|
1064
|
+
suffix: v[l.value.suffix] || (v == null ? void 0 : v.attachmentSuffix) || ((C = m.split(".")) == null ? void 0 : C.at(-1))
|
|
1060
1065
|
};
|
|
1061
1066
|
}));
|
|
1062
|
-
return (
|
|
1063
|
-
var
|
|
1064
|
-
const
|
|
1067
|
+
return (v, m) => {
|
|
1068
|
+
var S, b, B;
|
|
1069
|
+
const C = Ye("tmplate");
|
|
1065
1070
|
return k(), T(
|
|
1066
|
-
|
|
1071
|
+
re,
|
|
1067
1072
|
null,
|
|
1068
1073
|
[
|
|
1069
|
-
(
|
|
1070
|
-
|
|
1074
|
+
(S = a.list) != null && S.length ? (k(), T(
|
|
1075
|
+
re,
|
|
1071
1076
|
{ key: 0 },
|
|
1072
1077
|
[
|
|
1073
1078
|
I(" 简单模式 "),
|
|
1074
|
-
|
|
1075
|
-
|
|
1079
|
+
t.value === "simple" ? (k(!0), T(
|
|
1080
|
+
re,
|
|
1076
1081
|
{ key: 0 },
|
|
1077
|
-
Se(
|
|
1082
|
+
Se(d.value, (x, H) => (k(), T("div", {
|
|
1078
1083
|
class: "iking-privew-annex simple",
|
|
1079
|
-
key:
|
|
1080
|
-
onClick: (
|
|
1081
|
-
style:
|
|
1084
|
+
key: H,
|
|
1085
|
+
onClick: (O) => h(x),
|
|
1086
|
+
style: se({ width: p.value })
|
|
1082
1087
|
}, [
|
|
1083
1088
|
w(
|
|
1084
1089
|
"div",
|
|
1085
1090
|
Xs,
|
|
1086
|
-
X(
|
|
1091
|
+
X(x.name),
|
|
1087
1092
|
1
|
|
1088
1093
|
/* TEXT */
|
|
1089
1094
|
),
|
|
@@ -1093,20 +1098,21 @@ const Ft = (a, o) => {
|
|
|
1093
1098
|
class: K(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
1094
1099
|
},
|
|
1095
1100
|
[
|
|
1096
|
-
|
|
1101
|
+
a.showDownloadBtn ? (k(), fe(P(We), {
|
|
1102
|
+
key: 0,
|
|
1097
1103
|
name: "iksvg_daochu",
|
|
1098
|
-
onClick: bt((
|
|
1104
|
+
onClick: bt((O) => g(x), ["stop"]),
|
|
1099
1105
|
size: 20,
|
|
1100
1106
|
active: ""
|
|
1101
|
-
}, null, 8, ["onClick"]),
|
|
1102
|
-
|
|
1103
|
-
key:
|
|
1107
|
+
}, null, 8, ["onClick"])) : I("v-if", !0),
|
|
1108
|
+
P(n).includes(x.suffix) || a.showPreviewBtn ? (k(), fe(P(We), {
|
|
1109
|
+
key: 1,
|
|
1104
1110
|
name: "iksvg_yulan",
|
|
1105
1111
|
size: 20,
|
|
1106
1112
|
active: ""
|
|
1107
1113
|
})) : I("v-if", !0),
|
|
1108
|
-
Ne(
|
|
1109
|
-
data: { ...
|
|
1114
|
+
Ne(v.$slots, "operation", {
|
|
1115
|
+
data: { ...x, findex: H }
|
|
1110
1116
|
})
|
|
1111
1117
|
],
|
|
1112
1118
|
2
|
|
@@ -1115,88 +1121,95 @@ const Ft = (a, o) => {
|
|
|
1115
1121
|
], 12, Ys))),
|
|
1116
1122
|
128
|
|
1117
1123
|
/* KEYED_FRAGMENT */
|
|
1118
|
-
)) :
|
|
1119
|
-
|
|
1120
|
-
a.showType === "simple-icon" ? (k(!0), T(
|
|
1121
|
-
ae,
|
|
1124
|
+
)) : t.value === "simple-icon" ? (k(), T(
|
|
1125
|
+
re,
|
|
1122
1126
|
{ key: 1 },
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
style:
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1127
|
+
[
|
|
1128
|
+
I(" 简单图标模式 "),
|
|
1129
|
+
(k(!0), T(
|
|
1130
|
+
re,
|
|
1131
|
+
null,
|
|
1132
|
+
Se(d.value, (x, H) => (k(), T("div", {
|
|
1133
|
+
class: "iking-privew-annex simple-icon",
|
|
1134
|
+
key: H,
|
|
1135
|
+
onClick: (O) => h(x),
|
|
1136
|
+
style: se({ width: p.value })
|
|
1137
|
+
}, [
|
|
1138
|
+
w("div", Zs, [
|
|
1139
|
+
$(P(Ni), {
|
|
1140
|
+
file: x,
|
|
1141
|
+
style: se({ height: `${a.iconSize}px` }),
|
|
1142
|
+
class: "ikui-w-auto",
|
|
1143
|
+
fields: l.value
|
|
1144
|
+
}, null, 8, ["file", "style", "fields"]),
|
|
1145
|
+
w(
|
|
1146
|
+
"div",
|
|
1147
|
+
Js,
|
|
1148
|
+
X(x.name),
|
|
1149
|
+
1
|
|
1150
|
+
/* TEXT */
|
|
1151
|
+
)
|
|
1152
|
+
]),
|
|
1153
|
+
a.showDownloadBtn ? (k(), fe(P(We), {
|
|
1154
|
+
key: 0,
|
|
1155
|
+
name: "iksvg_daochu",
|
|
1156
|
+
size: 20,
|
|
1157
|
+
title: "下载",
|
|
1158
|
+
active: "",
|
|
1159
|
+
onClick: bt((O) => g(x), ["stop"])
|
|
1160
|
+
}, null, 8, ["onClick"])) : I("v-if", !0)
|
|
1161
|
+
], 12, qs))),
|
|
1162
|
+
128
|
|
1163
|
+
/* KEYED_FRAGMENT */
|
|
1164
|
+
))
|
|
1165
|
+
],
|
|
1166
|
+
64
|
|
1167
|
+
/* STABLE_FRAGMENT */
|
|
1155
1168
|
)) : (k(), T(
|
|
1156
|
-
|
|
1169
|
+
re,
|
|
1157
1170
|
{ key: 2 },
|
|
1158
1171
|
[
|
|
1159
1172
|
I(" 默认模式 "),
|
|
1160
|
-
$(
|
|
1173
|
+
$(C, null, {
|
|
1161
1174
|
default: ne(() => [
|
|
1162
1175
|
(k(!0), T(
|
|
1163
|
-
|
|
1176
|
+
re,
|
|
1164
1177
|
null,
|
|
1165
|
-
Se(
|
|
1166
|
-
var
|
|
1178
|
+
Se(d.value, (x, H) => {
|
|
1179
|
+
var O;
|
|
1167
1180
|
return k(), T(
|
|
1168
1181
|
"div",
|
|
1169
1182
|
{
|
|
1170
1183
|
class: K(["iking-privew-annex", { "is-bg": a.showBg }]),
|
|
1171
|
-
key:
|
|
1172
|
-
style:
|
|
1173
|
-
marginBottom:
|
|
1174
|
-
width:
|
|
1184
|
+
key: H,
|
|
1185
|
+
style: se({
|
|
1186
|
+
marginBottom: H == ((O = a.list) == null ? void 0 : O.length) - 1 ? "0" : "10px",
|
|
1187
|
+
width: p.value
|
|
1175
1188
|
})
|
|
1176
1189
|
},
|
|
1177
1190
|
[
|
|
1178
1191
|
w("div", {
|
|
1179
1192
|
class: "file-card",
|
|
1180
|
-
onClick: (
|
|
1193
|
+
onClick: (J) => h(x)
|
|
1181
1194
|
}, [
|
|
1182
|
-
$(
|
|
1183
|
-
file:
|
|
1184
|
-
style:
|
|
1195
|
+
$(P(Ni), {
|
|
1196
|
+
file: x,
|
|
1197
|
+
style: se({ height: `${a.iconSize}px` }),
|
|
1185
1198
|
class: "ikui-w-auto",
|
|
1186
|
-
fields:
|
|
1199
|
+
fields: l.value
|
|
1187
1200
|
}, null, 8, ["file", "style", "fields"]),
|
|
1188
1201
|
w("div", ea, [
|
|
1189
1202
|
w(
|
|
1190
1203
|
"div",
|
|
1191
1204
|
ta,
|
|
1192
|
-
X(
|
|
1205
|
+
X(x.name),
|
|
1193
1206
|
1
|
|
1194
1207
|
/* TEXT */
|
|
1195
1208
|
),
|
|
1196
1209
|
w(
|
|
1197
1210
|
"div",
|
|
1198
1211
|
ia,
|
|
1199
|
-
X(
|
|
1212
|
+
X(P(Ks)(x.size)),
|
|
1200
1213
|
1
|
|
1201
1214
|
/* TEXT */
|
|
1202
1215
|
)
|
|
@@ -1207,22 +1220,23 @@ const Ft = (a, o) => {
|
|
|
1207
1220
|
class: K(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
1208
1221
|
},
|
|
1209
1222
|
[
|
|
1210
|
-
|
|
1223
|
+
a.showDownloadBtn ? (k(), fe(P(We), {
|
|
1224
|
+
key: 0,
|
|
1211
1225
|
name: "iksvg_daochu",
|
|
1212
|
-
onClick: bt((
|
|
1226
|
+
onClick: bt((J) => g(x), ["stop"]),
|
|
1213
1227
|
bg: a.showBg,
|
|
1214
1228
|
size: a.showBg ? "default" : 20,
|
|
1215
1229
|
title: "下载"
|
|
1216
|
-
}, null, 8, ["onClick", "bg", "size"]),
|
|
1217
|
-
|
|
1218
|
-
key:
|
|
1230
|
+
}, null, 8, ["onClick", "bg", "size"])) : I("v-if", !0),
|
|
1231
|
+
P(n).includes(x.suffix) || a.showPreviewBtn ? (k(), fe(P(We), {
|
|
1232
|
+
key: 1,
|
|
1219
1233
|
name: "iksvg_yulan",
|
|
1220
1234
|
bg: a.showBg,
|
|
1221
1235
|
size: a.showBg ? "default" : 20,
|
|
1222
1236
|
title: "预览"
|
|
1223
1237
|
}, null, 8, ["bg", "size"])) : I("v-if", !0),
|
|
1224
|
-
Ne(
|
|
1225
|
-
data: { ...
|
|
1238
|
+
Ne(v.$slots, "operation", {
|
|
1239
|
+
data: { ...x, findex: H }
|
|
1226
1240
|
})
|
|
1227
1241
|
],
|
|
1228
1242
|
2
|
|
@@ -1249,14 +1263,14 @@ const Ft = (a, o) => {
|
|
|
1249
1263
|
64
|
|
1250
1264
|
/* STABLE_FRAGMENT */
|
|
1251
1265
|
)) : I("v-if", !0),
|
|
1252
|
-
$(
|
|
1253
|
-
show:
|
|
1254
|
-
"onUpdate:show":
|
|
1255
|
-
loadUrl:
|
|
1256
|
-
file:
|
|
1257
|
-
onlyofficeServer: ((
|
|
1258
|
-
onlyOfficeConfig:
|
|
1259
|
-
onlyOfficeAccept: ((
|
|
1266
|
+
$(P(aa), {
|
|
1267
|
+
show: c.value,
|
|
1268
|
+
"onUpdate:show": m[0] || (m[0] = (x) => c.value = x),
|
|
1269
|
+
loadUrl: P(e),
|
|
1270
|
+
file: u.value,
|
|
1271
|
+
onlyofficeServer: ((b = P(i)) == null ? void 0 : b.serverUrl) || a.onlyofficeServer,
|
|
1272
|
+
onlyOfficeConfig: P(i),
|
|
1273
|
+
onlyOfficeAccept: ((B = P(i)) == null ? void 0 : B.accept) || a.onlyOfficeAccept
|
|
1260
1274
|
}, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
|
|
1261
1275
|
],
|
|
1262
1276
|
64
|
|
@@ -1265,7 +1279,7 @@ const Ft = (a, o) => {
|
|
|
1265
1279
|
};
|
|
1266
1280
|
}
|
|
1267
1281
|
});
|
|
1268
|
-
const ra = Le(na), sa = /* @__PURE__ */
|
|
1282
|
+
const ra = Le(na), sa = /* @__PURE__ */ te({
|
|
1269
1283
|
__name: "IkPreviewFileDialog",
|
|
1270
1284
|
props: /* @__PURE__ */ Tt({
|
|
1271
1285
|
file: {
|
|
@@ -1308,14 +1322,14 @@ const ra = Le(na), sa = /* @__PURE__ */ ee({
|
|
|
1308
1322
|
suffix: "suffix",
|
|
1309
1323
|
size: "fileSize",
|
|
1310
1324
|
...o.field
|
|
1311
|
-
})), e =
|
|
1325
|
+
})), e = ve(null), i = ve(null), n = wn({
|
|
1312
1326
|
image: !1,
|
|
1313
1327
|
office: !1,
|
|
1314
1328
|
video: !1
|
|
1315
1329
|
}), s = (u) => {
|
|
1316
1330
|
var c, h, g, p, d, v, m;
|
|
1317
1331
|
try {
|
|
1318
|
-
const C = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, S = C[t.value.url] || (C == null ? void 0 : C.id) || C.attachmentId, b = (h = C[t.value.suffix] || C.attachmentSuffix) == null ? void 0 : h.toLowerCase(),
|
|
1332
|
+
const C = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, S = C[t.value.url] || (C == null ? void 0 : C.id) || C.attachmentId, b = (h = C[t.value.suffix] || C.attachmentSuffix) == null ? void 0 : h.toLowerCase(), B = C[t.value.name] || (C == null ? void 0 : C.attachmentName) || (C == null ? void 0 : C.originName);
|
|
1319
1333
|
if (i.value = {
|
|
1320
1334
|
...u,
|
|
1321
1335
|
name: u[t.value.name],
|
|
@@ -1340,7 +1354,7 @@ const ra = Le(na), sa = /* @__PURE__ */ ee({
|
|
|
1340
1354
|
},
|
|
1341
1355
|
document: {
|
|
1342
1356
|
key: xn(),
|
|
1343
|
-
title:
|
|
1357
|
+
title: B,
|
|
1344
1358
|
url: lt(o.loadUrl, S),
|
|
1345
1359
|
fileType: b,
|
|
1346
1360
|
...((m = o.onlyOfficeConfig) == null ? void 0 : m.document) || {}
|
|
@@ -1365,10 +1379,10 @@ const ra = Le(na), sa = /* @__PURE__ */ ee({
|
|
|
1365
1379
|
return (u, c) => {
|
|
1366
1380
|
var h, g, p;
|
|
1367
1381
|
return r.value ? (k(), T(
|
|
1368
|
-
|
|
1382
|
+
re,
|
|
1369
1383
|
{ key: 0 },
|
|
1370
1384
|
[
|
|
1371
|
-
(h = i.value) != null && h.url && n.image ? (k(),
|
|
1385
|
+
(h = i.value) != null && h.url && n.image ? (k(), fe(P($a), {
|
|
1372
1386
|
key: 0,
|
|
1373
1387
|
onClose: c[0] || (c[0] = (d) => l()),
|
|
1374
1388
|
ref: "previewImgRef",
|
|
@@ -1378,12 +1392,12 @@ const ra = Le(na), sa = /* @__PURE__ */ ee({
|
|
|
1378
1392
|
}, null, 8, ["url-list"])) : I("v-if", !0),
|
|
1379
1393
|
I(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
1380
1394
|
I(" 文档类 "),
|
|
1381
|
-
$(
|
|
1395
|
+
$(P(ou), {
|
|
1382
1396
|
modelValue: n.video,
|
|
1383
1397
|
"onUpdate:modelValue": c[1] || (c[1] = (d) => n.video = d),
|
|
1384
1398
|
url: (p = i.value) == null ? void 0 : p.url
|
|
1385
1399
|
}, null, 8, ["modelValue", "url"]),
|
|
1386
|
-
$(
|
|
1400
|
+
$(P(ka), {
|
|
1387
1401
|
modelValue: n.office,
|
|
1388
1402
|
"onUpdate:modelValue": c[2] || (c[2] = (d) => n.office = d),
|
|
1389
1403
|
draggable: "",
|
|
@@ -1401,7 +1415,7 @@ const ra = Le(na), sa = /* @__PURE__ */ ee({
|
|
|
1401
1415
|
default: ne(() => {
|
|
1402
1416
|
var d;
|
|
1403
1417
|
return [
|
|
1404
|
-
$(
|
|
1418
|
+
$(P(Ia), {
|
|
1405
1419
|
"config-options": e.value,
|
|
1406
1420
|
"document-server-url": ((d = a.onlyOfficeConfig) == null ? void 0 : d.serverUrl) || a.onlyofficeServer
|
|
1407
1421
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -1428,7 +1442,7 @@ const aa = Le(sa), oa = {
|
|
|
1428
1442
|
key: 1,
|
|
1429
1443
|
class: "h-[1em] w-[1em]",
|
|
1430
1444
|
"aria-hidden": "true"
|
|
1431
|
-
}, ha = ["xlink:href"], da = ["src"], ga = /* @__PURE__ */
|
|
1445
|
+
}, ha = ["xlink:href"], da = ["src"], ga = /* @__PURE__ */ te({
|
|
1432
1446
|
name: "IkSvgIcon",
|
|
1433
1447
|
__name: "index",
|
|
1434
1448
|
props: {
|
|
@@ -1506,7 +1520,7 @@ const aa = Le(sa), oa = {
|
|
|
1506
1520
|
active: r.value.active,
|
|
1507
1521
|
disabled: r.value.disabled
|
|
1508
1522
|
}]),
|
|
1509
|
-
style:
|
|
1523
|
+
style: se(e.value)
|
|
1510
1524
|
},
|
|
1511
1525
|
[
|
|
1512
1526
|
I(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
@@ -1515,7 +1529,7 @@ const aa = Le(sa), oa = {
|
|
|
1515
1529
|
{
|
|
1516
1530
|
key: 0,
|
|
1517
1531
|
class: K(`iksig ${r.value.name}`),
|
|
1518
|
-
style:
|
|
1532
|
+
style: se(e.value)
|
|
1519
1533
|
},
|
|
1520
1534
|
null,
|
|
1521
1535
|
6
|
|
@@ -1533,7 +1547,7 @@ const aa = Le(sa), oa = {
|
|
|
1533
1547
|
{
|
|
1534
1548
|
key: 3,
|
|
1535
1549
|
class: K(r.value.name),
|
|
1536
|
-
style:
|
|
1550
|
+
style: se(e.value)
|
|
1537
1551
|
},
|
|
1538
1552
|
null,
|
|
1539
1553
|
6
|
|
@@ -1542,7 +1556,7 @@ const aa = Le(sa), oa = {
|
|
|
1542
1556
|
],
|
|
1543
1557
|
6
|
|
1544
1558
|
/* CLASS, STYLE */
|
|
1545
|
-
)) : (k(),
|
|
1559
|
+
)) : (k(), fe(s, {
|
|
1546
1560
|
key: 1,
|
|
1547
1561
|
content: r.value.title,
|
|
1548
1562
|
placement: "top"
|
|
@@ -1563,7 +1577,7 @@ const aa = Le(sa), oa = {
|
|
|
1563
1577
|
error: r.value.error || r.value.type === "error",
|
|
1564
1578
|
active: r.value.active
|
|
1565
1579
|
}]),
|
|
1566
|
-
style:
|
|
1580
|
+
style: se(e.value)
|
|
1567
1581
|
},
|
|
1568
1582
|
[
|
|
1569
1583
|
t.value === "iksig" ? (k(), T(
|
|
@@ -1571,7 +1585,7 @@ const aa = Le(sa), oa = {
|
|
|
1571
1585
|
{
|
|
1572
1586
|
key: 0,
|
|
1573
1587
|
class: K(`iksig ${r.value.name}`),
|
|
1574
|
-
style:
|
|
1588
|
+
style: se(e.value)
|
|
1575
1589
|
},
|
|
1576
1590
|
null,
|
|
1577
1591
|
6
|
|
@@ -1589,7 +1603,7 @@ const aa = Le(sa), oa = {
|
|
|
1589
1603
|
{
|
|
1590
1604
|
key: 3,
|
|
1591
1605
|
class: K(r.value.name),
|
|
1592
|
-
style:
|
|
1606
|
+
style: se(e.value)
|
|
1593
1607
|
},
|
|
1594
1608
|
null,
|
|
1595
1609
|
6
|
|
@@ -1603,7 +1617,7 @@ const aa = Le(sa), oa = {
|
|
|
1603
1617
|
_: 1
|
|
1604
1618
|
/* STABLE */
|
|
1605
1619
|
}, 8, ["content"]))
|
|
1606
|
-
])) : (k(),
|
|
1620
|
+
])) : (k(), fe(l, {
|
|
1607
1621
|
key: 1,
|
|
1608
1622
|
type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
|
|
1609
1623
|
}, {
|
|
@@ -1620,7 +1634,7 @@ const aa = Le(sa), oa = {
|
|
|
1620
1634
|
};
|
|
1621
1635
|
}
|
|
1622
1636
|
});
|
|
1623
|
-
const pa = /* @__PURE__ */ Ft(ga, [["__scopeId", "data-v-52806adf"]]), We = Le(pa), va = /* @__PURE__ */
|
|
1637
|
+
const pa = /* @__PURE__ */ Ft(ga, [["__scopeId", "data-v-52806adf"]]), We = Le(pa), va = /* @__PURE__ */ te({
|
|
1624
1638
|
__name: "CloseIcon",
|
|
1625
1639
|
props: {
|
|
1626
1640
|
showBg: {
|
|
@@ -1639,7 +1653,7 @@ const pa = /* @__PURE__ */ Ft(ga, [["__scopeId", "data-v-52806adf"]]), We = Le(p
|
|
|
1639
1653
|
class: K({ "exit-main-page-maximize": a.showBg && a.fullscreen })
|
|
1640
1654
|
},
|
|
1641
1655
|
[
|
|
1642
|
-
$(
|
|
1656
|
+
$(P(We), {
|
|
1643
1657
|
name: "iksvg_guanbidanchuang",
|
|
1644
1658
|
title: "关闭",
|
|
1645
1659
|
size: 20,
|
|
@@ -1651,7 +1665,7 @@ const pa = /* @__PURE__ */ Ft(ga, [["__scopeId", "data-v-52806adf"]]), We = Le(p
|
|
|
1651
1665
|
));
|
|
1652
1666
|
}
|
|
1653
1667
|
});
|
|
1654
|
-
const ma = /* @__PURE__ */ Ft(va, [["__scopeId", "data-v-da39e979"]]), ya = { class: "base-header" }, _a = /* @__PURE__ */
|
|
1668
|
+
const ma = /* @__PURE__ */ Ft(va, [["__scopeId", "data-v-da39e979"]]), ya = { class: "base-header" }, _a = /* @__PURE__ */ te({
|
|
1655
1669
|
__name: "IkBaseDialog",
|
|
1656
1670
|
props: /* @__PURE__ */ Tt({
|
|
1657
1671
|
title: { default: "" },
|
|
@@ -1672,9 +1686,9 @@ const ma = /* @__PURE__ */ Ft(va, [["__scopeId", "data-v-da39e979"]]), ya = { cl
|
|
|
1672
1686
|
}),
|
|
1673
1687
|
emits: ["update:modelValue"],
|
|
1674
1688
|
setup(a) {
|
|
1675
|
-
const o = a, r = hi(a, "modelValue"), t =
|
|
1689
|
+
const o = a, r = hi(a, "modelValue"), t = ve(o.fullscreen), e = () => {
|
|
1676
1690
|
t.value = !t.value;
|
|
1677
|
-
}, i =
|
|
1691
|
+
}, i = te({
|
|
1678
1692
|
setup() {
|
|
1679
1693
|
return () => lr(ma, {
|
|
1680
1694
|
showBg: o.showCloseBg,
|
|
@@ -1684,12 +1698,12 @@ const ma = /* @__PURE__ */ Ft(va, [["__scopeId", "data-v-da39e979"]]), ya = { cl
|
|
|
1684
1698
|
});
|
|
1685
1699
|
return (n, s) => {
|
|
1686
1700
|
const l = Ye("el-dialog");
|
|
1687
|
-
return k(),
|
|
1701
|
+
return k(), fe(l, bn({
|
|
1688
1702
|
modelValue: r.value,
|
|
1689
1703
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u),
|
|
1690
1704
|
"align-center": ""
|
|
1691
1705
|
}, n.$attrs, {
|
|
1692
|
-
"close-icon":
|
|
1706
|
+
"close-icon": P(i),
|
|
1693
1707
|
class: `ik-base-dialog ${n.noHeader ? "no-header" : ""} ${n.noFooter ? "no-footer" : ""}`,
|
|
1694
1708
|
fullscreen: t.value,
|
|
1695
1709
|
"modal-class": "baseDialog"
|
|
@@ -1713,7 +1727,7 @@ const ma = /* @__PURE__ */ Ft(va, [["__scopeId", "data-v-da39e979"]]), ya = { cl
|
|
|
1713
1727
|
)
|
|
1714
1728
|
])
|
|
1715
1729
|
]),
|
|
1716
|
-
n.$attrs.showClose ? (k(),
|
|
1730
|
+
n.$attrs.showClose ? (k(), fe(P(We), {
|
|
1717
1731
|
key: 0,
|
|
1718
1732
|
onClick: e,
|
|
1719
1733
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
@@ -1870,7 +1884,7 @@ var Ta = function(a, o) {
|
|
|
1870
1884
|
}, e.onerror = function(i) {
|
|
1871
1885
|
e.removeAttribute("loading"), t(i);
|
|
1872
1886
|
}, e.setAttribute("loading", ""), e;
|
|
1873
|
-
}, pi =
|
|
1887
|
+
}, pi = te({
|
|
1874
1888
|
name: "DocumentEditor",
|
|
1875
1889
|
props: {
|
|
1876
1890
|
id: {
|
|
@@ -2045,7 +2059,7 @@ function Sa(a, o, r, t, e, i) {
|
|
|
2045
2059
|
}
|
|
2046
2060
|
pi.render = Sa;
|
|
2047
2061
|
pi.__file = "src/components/DocumentEditor.vue";
|
|
2048
|
-
const xa = /* @__PURE__ */
|
|
2062
|
+
const xa = /* @__PURE__ */ te({
|
|
2049
2063
|
__name: "IkOnlyOffice",
|
|
2050
2064
|
props: {
|
|
2051
2065
|
// 文件服务器的服务的地址
|
|
@@ -2066,7 +2080,7 @@ const xa = /* @__PURE__ */ ee({
|
|
|
2066
2080
|
}
|
|
2067
2081
|
},
|
|
2068
2082
|
setup(a) {
|
|
2069
|
-
const o = a, r =
|
|
2083
|
+
const o = a, r = ve({
|
|
2070
2084
|
width: "100%",
|
|
2071
2085
|
height: "100%",
|
|
2072
2086
|
...o.configOptions || {},
|
|
@@ -2077,10 +2091,10 @@ const xa = /* @__PURE__ */ ee({
|
|
|
2077
2091
|
return (e, i) => (k(), T(
|
|
2078
2092
|
"div",
|
|
2079
2093
|
{
|
|
2080
|
-
style:
|
|
2094
|
+
style: se({ height: o.officeHeight })
|
|
2081
2095
|
},
|
|
2082
2096
|
[
|
|
2083
|
-
$(
|
|
2097
|
+
$(P(pi), {
|
|
2084
2098
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
2085
2099
|
ref: "editorRef",
|
|
2086
2100
|
"document-server-url": a.documentServerUrl,
|
|
@@ -2098,7 +2112,7 @@ const An = typeof window < "u", Pa = (a) => typeof a == "string", Aa = () => {
|
|
|
2098
2112
|
};
|
|
2099
2113
|
An && ((Ui = window == null ? void 0 : window.navigator) != null && Ui.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
2100
2114
|
function Ln(a) {
|
|
2101
|
-
return typeof a == "function" ? a() :
|
|
2115
|
+
return typeof a == "function" ? a() : P(a);
|
|
2102
2116
|
}
|
|
2103
2117
|
function La(a) {
|
|
2104
2118
|
return a;
|
|
@@ -2243,13 +2257,13 @@ const Ua = {
|
|
|
2243
2257
|
close: () => !0,
|
|
2244
2258
|
switch: (a) => ri.isNumber(a),
|
|
2245
2259
|
rotate: (a) => ri.isNumber(a)
|
|
2246
|
-
}, Va = ["src", "crossorigin"], ja = /* @__PURE__ */
|
|
2260
|
+
}, Va = ["src", "crossorigin"], ja = /* @__PURE__ */ te({
|
|
2247
2261
|
name: "ElImageViewer",
|
|
2248
2262
|
__name: "IkImageViewer",
|
|
2249
2263
|
props: Ua,
|
|
2250
2264
|
emits: za,
|
|
2251
2265
|
setup(a, { expose: o, emit: r }) {
|
|
2252
|
-
const t = (
|
|
2266
|
+
const t = (U) => Object.keys(U), e = {
|
|
2253
2267
|
CONTAIN: {
|
|
2254
2268
|
name: "contain",
|
|
2255
2269
|
icon: Fi(Rs)
|
|
@@ -2258,30 +2272,30 @@ const Ua = {
|
|
|
2258
2272
|
name: "original",
|
|
2259
2273
|
icon: Fi(Us)
|
|
2260
2274
|
}
|
|
2261
|
-
}, i = a, n = r, { t: s } = wr(), l = In("image-viewer"), { nextZIndex: u } = br(), c =
|
|
2275
|
+
}, i = a, n = r, { t: s } = wr(), l = In("image-viewer"), { nextZIndex: u } = br(), c = ve(), h = ve([]), g = hr(), p = ve(!0), d = ve(i.initialIndex), v = dr(e.CONTAIN), m = ve({
|
|
2262
2276
|
scale: 1,
|
|
2263
2277
|
deg: 0,
|
|
2264
2278
|
offsetX: 0,
|
|
2265
2279
|
offsetY: 0,
|
|
2266
2280
|
enableTransition: !1
|
|
2267
|
-
}), C =
|
|
2268
|
-
const { urlList:
|
|
2269
|
-
return
|
|
2270
|
-
}), b = Z(() => d.value === 0),
|
|
2281
|
+
}), C = ve(i.zIndex ?? u()), S = Z(() => {
|
|
2282
|
+
const { urlList: U } = i;
|
|
2283
|
+
return U.length <= 1;
|
|
2284
|
+
}), b = Z(() => d.value === 0), B = Z(() => d.value === i.urlList.length - 1), x = Z(() => i.urlList[d.value]), H = Z(() => [
|
|
2271
2285
|
l.e("btn"),
|
|
2272
2286
|
l.e("prev"),
|
|
2273
2287
|
l.is("disabled", !i.infinite && b.value)
|
|
2274
|
-
]),
|
|
2288
|
+
]), O = Z(() => [
|
|
2275
2289
|
l.e("btn"),
|
|
2276
2290
|
l.e("next"),
|
|
2277
|
-
l.is("disabled", !i.infinite &&
|
|
2278
|
-
]),
|
|
2279
|
-
const { scale:
|
|
2280
|
-
let Ce =
|
|
2291
|
+
l.is("disabled", !i.infinite && B.value)
|
|
2292
|
+
]), J = Z(() => {
|
|
2293
|
+
const { scale: U, deg: G, offsetX: Q, offsetY: me, enableTransition: ke } = m.value;
|
|
2294
|
+
let Ce = Q / U, De = me / U;
|
|
2281
2295
|
const ct = G * Math.PI / 180, Oi = Math.cos(ct), Ri = Math.sin(ct);
|
|
2282
|
-
Ce = Ce * Oi + De * Ri, De = De * Oi -
|
|
2296
|
+
Ce = Ce * Oi + De * Ri, De = De * Oi - Q / U * Ri;
|
|
2283
2297
|
const Vt = {
|
|
2284
|
-
transform: `scale(${
|
|
2298
|
+
transform: `scale(${U}) rotate(${G}deg) translate(${Ce}px, ${De}px)`,
|
|
2285
2299
|
transition: ke ? "transform .3s" : ""
|
|
2286
2300
|
};
|
|
2287
2301
|
return v.value.name === e.CONTAIN.name && (Vt.maxWidth = Vt.maxHeight = "100%"), Vt;
|
|
@@ -2290,8 +2304,8 @@ const Ua = {
|
|
|
2290
2304
|
ie(), n("close");
|
|
2291
2305
|
}
|
|
2292
2306
|
function A() {
|
|
2293
|
-
const
|
|
2294
|
-
switch (
|
|
2307
|
+
const U = jt.throttle((Q) => {
|
|
2308
|
+
switch (Q.code) {
|
|
2295
2309
|
case Je.esc:
|
|
2296
2310
|
i.closeOnPressEscape && q();
|
|
2297
2311
|
break;
|
|
@@ -2311,15 +2325,15 @@ const Ua = {
|
|
|
2311
2325
|
Ve("zoomOut");
|
|
2312
2326
|
break;
|
|
2313
2327
|
}
|
|
2314
|
-
}), G = jt.throttle((
|
|
2315
|
-
const me =
|
|
2328
|
+
}), G = jt.throttle((Q) => {
|
|
2329
|
+
const me = Q.deltaY || Q.deltaX;
|
|
2316
2330
|
Ve(me < 0 ? "zoomIn" : "zoomOut", {
|
|
2317
2331
|
zoomRate: i.zoomRate,
|
|
2318
2332
|
enableTransition: !1
|
|
2319
2333
|
});
|
|
2320
2334
|
});
|
|
2321
2335
|
g.run(() => {
|
|
2322
|
-
yt(document, "keydown",
|
|
2336
|
+
yt(document, "keydown", U), yt(document, "wheel", G);
|
|
2323
2337
|
});
|
|
2324
2338
|
}
|
|
2325
2339
|
function ie() {
|
|
@@ -2328,23 +2342,23 @@ const Ua = {
|
|
|
2328
2342
|
function oe() {
|
|
2329
2343
|
p.value = !1;
|
|
2330
2344
|
}
|
|
2331
|
-
function
|
|
2332
|
-
p.value = !1,
|
|
2345
|
+
function he(U) {
|
|
2346
|
+
p.value = !1, U.target.alt = s("el.image.error");
|
|
2333
2347
|
}
|
|
2334
|
-
function Te(
|
|
2335
|
-
if (p.value ||
|
|
2348
|
+
function Te(U) {
|
|
2349
|
+
if (p.value || U.button !== 0 || !c.value)
|
|
2336
2350
|
return;
|
|
2337
2351
|
m.value.enableTransition = !1;
|
|
2338
|
-
const { offsetX: G, offsetY:
|
|
2352
|
+
const { offsetX: G, offsetY: Q } = m.value, me = U.pageX, ke = U.pageY, Ce = jt.throttle((ct) => {
|
|
2339
2353
|
m.value = {
|
|
2340
2354
|
...m.value,
|
|
2341
2355
|
offsetX: G + ct.pageX - me,
|
|
2342
|
-
offsetY:
|
|
2356
|
+
offsetY: Q + ct.pageY - ke
|
|
2343
2357
|
};
|
|
2344
2358
|
}), De = yt(document, "mousemove", Ce);
|
|
2345
2359
|
yt(document, "mouseup", () => {
|
|
2346
2360
|
De();
|
|
2347
|
-
}),
|
|
2361
|
+
}), U.preventDefault();
|
|
2348
2362
|
}
|
|
2349
2363
|
function Pi() {
|
|
2350
2364
|
m.value = {
|
|
@@ -2358,31 +2372,31 @@ const Ua = {
|
|
|
2358
2372
|
function Ai() {
|
|
2359
2373
|
if (p.value)
|
|
2360
2374
|
return;
|
|
2361
|
-
const
|
|
2362
|
-
v.value = e[
|
|
2375
|
+
const U = t(e), G = Object.values(e), Q = v.value.name, ke = ((G == null ? void 0 : G.findIndex((Ce) => Ce.name === Q)) + 1) % U.length;
|
|
2376
|
+
v.value = e[U[ke]], Pi();
|
|
2363
2377
|
}
|
|
2364
|
-
function zt(
|
|
2378
|
+
function zt(U) {
|
|
2365
2379
|
const G = i.urlList.length;
|
|
2366
|
-
d.value = (
|
|
2380
|
+
d.value = (U + G) % G;
|
|
2367
2381
|
}
|
|
2368
2382
|
function Li() {
|
|
2369
2383
|
b.value && !i.infinite || zt(d.value - 1);
|
|
2370
2384
|
}
|
|
2371
2385
|
function Di() {
|
|
2372
|
-
|
|
2386
|
+
B.value && !i.infinite || zt(d.value + 1);
|
|
2373
2387
|
}
|
|
2374
|
-
function Ve(
|
|
2388
|
+
function Ve(U, G = {}) {
|
|
2375
2389
|
if (p.value)
|
|
2376
2390
|
return;
|
|
2377
|
-
const { minScale:
|
|
2391
|
+
const { minScale: Q, maxScale: me } = i, { zoomRate: ke, rotateDeg: Ce, enableTransition: De } = {
|
|
2378
2392
|
zoomRate: i.zoomRate,
|
|
2379
2393
|
rotateDeg: 90,
|
|
2380
2394
|
enableTransition: !0,
|
|
2381
2395
|
...G
|
|
2382
2396
|
};
|
|
2383
|
-
switch (
|
|
2397
|
+
switch (U) {
|
|
2384
2398
|
case "zoomOut":
|
|
2385
|
-
m.value.scale >
|
|
2399
|
+
m.value.scale > Q && (m.value.scale = Number.parseFloat(
|
|
2386
2400
|
(m.value.scale / ke).toFixed(3)
|
|
2387
2401
|
));
|
|
2388
2402
|
break;
|
|
@@ -2400,22 +2414,22 @@ const Ua = {
|
|
|
2400
2414
|
}
|
|
2401
2415
|
m.value.enableTransition = De;
|
|
2402
2416
|
}
|
|
2403
|
-
return ot(
|
|
2417
|
+
return ot(x, () => {
|
|
2404
2418
|
gt(() => {
|
|
2405
|
-
const
|
|
2406
|
-
|
|
2419
|
+
const U = h.value[0];
|
|
2420
|
+
U != null && U.complete || (p.value = !0);
|
|
2407
2421
|
});
|
|
2408
|
-
}), ot(d, (
|
|
2409
|
-
Pi(), n("switch",
|
|
2422
|
+
}), ot(d, (U) => {
|
|
2423
|
+
Pi(), n("switch", U);
|
|
2410
2424
|
}), Tn(() => {
|
|
2411
|
-
var
|
|
2412
|
-
A(), (G = (
|
|
2425
|
+
var U, G;
|
|
2426
|
+
A(), (G = (U = c.value) == null ? void 0 : U.focus) == null || G.call(U);
|
|
2413
2427
|
}), o({
|
|
2414
2428
|
/**
|
|
2415
2429
|
* @description manually switch image
|
|
2416
2430
|
*/
|
|
2417
2431
|
setActiveItem: zt
|
|
2418
|
-
}), (
|
|
2432
|
+
}), (U, G) => (k(), fe(En, { to: "body" }, [
|
|
2419
2433
|
$(Sn, {
|
|
2420
2434
|
name: "viewer-fade",
|
|
2421
2435
|
appear: ""
|
|
@@ -2427,15 +2441,15 @@ const Ua = {
|
|
|
2427
2441
|
ref_key: "wrapper",
|
|
2428
2442
|
ref: c,
|
|
2429
2443
|
tabindex: -1,
|
|
2430
|
-
class: K(
|
|
2431
|
-
style:
|
|
2444
|
+
class: K(P(l).e("wrapper")),
|
|
2445
|
+
style: se({ zIndex: C.value })
|
|
2432
2446
|
},
|
|
2433
2447
|
[
|
|
2434
2448
|
w(
|
|
2435
2449
|
"div",
|
|
2436
2450
|
{
|
|
2437
|
-
class: K(
|
|
2438
|
-
onClick: G[0] || (G[0] = bt((
|
|
2451
|
+
class: K(P(l).e("mask")),
|
|
2452
|
+
onClick: G[0] || (G[0] = bt((Q) => U.hideOnClickModal && q(), ["self"]))
|
|
2439
2453
|
},
|
|
2440
2454
|
null,
|
|
2441
2455
|
2
|
|
@@ -2445,13 +2459,13 @@ const Ua = {
|
|
|
2445
2459
|
w(
|
|
2446
2460
|
"span",
|
|
2447
2461
|
{
|
|
2448
|
-
class: K([
|
|
2462
|
+
class: K([P(l).e("btn"), P(l).e("close")]),
|
|
2449
2463
|
onClick: q
|
|
2450
2464
|
},
|
|
2451
2465
|
[
|
|
2452
|
-
$(
|
|
2466
|
+
$(P(Oe), null, {
|
|
2453
2467
|
default: ne(() => [
|
|
2454
|
-
$(
|
|
2468
|
+
$(P(Pn))
|
|
2455
2469
|
]),
|
|
2456
2470
|
_: 1
|
|
2457
2471
|
/* STABLE */
|
|
@@ -2462,19 +2476,19 @@ const Ua = {
|
|
|
2462
2476
|
),
|
|
2463
2477
|
I(" ARROW "),
|
|
2464
2478
|
S.value ? I("v-if", !0) : (k(), T(
|
|
2465
|
-
|
|
2479
|
+
re,
|
|
2466
2480
|
{ key: 0 },
|
|
2467
2481
|
[
|
|
2468
2482
|
w(
|
|
2469
2483
|
"span",
|
|
2470
2484
|
{
|
|
2471
|
-
class: K(
|
|
2485
|
+
class: K(H.value),
|
|
2472
2486
|
onClick: Li
|
|
2473
2487
|
},
|
|
2474
2488
|
[
|
|
2475
|
-
$(
|
|
2489
|
+
$(P(Oe), null, {
|
|
2476
2490
|
default: ne(() => [
|
|
2477
|
-
$(
|
|
2491
|
+
$(P(Ps))
|
|
2478
2492
|
]),
|
|
2479
2493
|
_: 1
|
|
2480
2494
|
/* STABLE */
|
|
@@ -2486,13 +2500,13 @@ const Ua = {
|
|
|
2486
2500
|
w(
|
|
2487
2501
|
"span",
|
|
2488
2502
|
{
|
|
2489
|
-
class: K(
|
|
2503
|
+
class: K(O.value),
|
|
2490
2504
|
onClick: Di
|
|
2491
2505
|
},
|
|
2492
2506
|
[
|
|
2493
|
-
$(
|
|
2507
|
+
$(P(Oe), null, {
|
|
2494
2508
|
default: ne(() => [
|
|
2495
|
-
$(
|
|
2509
|
+
$(P(Ls))
|
|
2496
2510
|
]),
|
|
2497
2511
|
_: 1
|
|
2498
2512
|
/* STABLE */
|
|
@@ -2509,29 +2523,29 @@ const Ua = {
|
|
|
2509
2523
|
w(
|
|
2510
2524
|
"div",
|
|
2511
2525
|
{
|
|
2512
|
-
class: K([
|
|
2526
|
+
class: K([P(l).e("btn"), P(l).e("actions")])
|
|
2513
2527
|
},
|
|
2514
2528
|
[
|
|
2515
2529
|
w(
|
|
2516
2530
|
"div",
|
|
2517
2531
|
{
|
|
2518
|
-
class: K(
|
|
2532
|
+
class: K(P(l).e("actions__inner"))
|
|
2519
2533
|
},
|
|
2520
2534
|
[
|
|
2521
|
-
$(
|
|
2522
|
-
onClick: G[1] || (G[1] = (
|
|
2535
|
+
$(P(Oe), {
|
|
2536
|
+
onClick: G[1] || (G[1] = (Q) => Ve("zoomOut"))
|
|
2523
2537
|
}, {
|
|
2524
2538
|
default: ne(() => [
|
|
2525
|
-
$(
|
|
2539
|
+
$(P($s))
|
|
2526
2540
|
]),
|
|
2527
2541
|
_: 1
|
|
2528
2542
|
/* STABLE */
|
|
2529
2543
|
}),
|
|
2530
|
-
$(
|
|
2531
|
-
onClick: G[2] || (G[2] = (
|
|
2544
|
+
$(P(Oe), {
|
|
2545
|
+
onClick: G[2] || (G[2] = (Q) => Ve("zoomIn"))
|
|
2532
2546
|
}, {
|
|
2533
2547
|
default: ne(() => [
|
|
2534
|
-
$(
|
|
2548
|
+
$(P(Vs))
|
|
2535
2549
|
]),
|
|
2536
2550
|
_: 1
|
|
2537
2551
|
/* STABLE */
|
|
@@ -2539,15 +2553,15 @@ const Ua = {
|
|
|
2539
2553
|
w(
|
|
2540
2554
|
"i",
|
|
2541
2555
|
{
|
|
2542
|
-
class: K(
|
|
2556
|
+
class: K(P(l).e("actions__divider"))
|
|
2543
2557
|
},
|
|
2544
2558
|
null,
|
|
2545
2559
|
2
|
|
2546
2560
|
/* CLASS */
|
|
2547
2561
|
),
|
|
2548
|
-
$(
|
|
2562
|
+
$(P(Oe), { onClick: Ai }, {
|
|
2549
2563
|
default: ne(() => [
|
|
2550
|
-
(k(),
|
|
2564
|
+
(k(), fe(gr(v.value.icon)))
|
|
2551
2565
|
]),
|
|
2552
2566
|
_: 1
|
|
2553
2567
|
/* STABLE */
|
|
@@ -2555,26 +2569,26 @@ const Ua = {
|
|
|
2555
2569
|
w(
|
|
2556
2570
|
"i",
|
|
2557
2571
|
{
|
|
2558
|
-
class: K(
|
|
2572
|
+
class: K(P(l).e("actions__divider"))
|
|
2559
2573
|
},
|
|
2560
2574
|
null,
|
|
2561
2575
|
2
|
|
2562
2576
|
/* CLASS */
|
|
2563
2577
|
),
|
|
2564
|
-
$(
|
|
2565
|
-
onClick: G[3] || (G[3] = (
|
|
2578
|
+
$(P(Oe), {
|
|
2579
|
+
onClick: G[3] || (G[3] = (Q) => Ve("anticlockwise"))
|
|
2566
2580
|
}, {
|
|
2567
2581
|
default: ne(() => [
|
|
2568
|
-
$(
|
|
2582
|
+
$(P(Ms))
|
|
2569
2583
|
]),
|
|
2570
2584
|
_: 1
|
|
2571
2585
|
/* STABLE */
|
|
2572
2586
|
}),
|
|
2573
|
-
$(
|
|
2574
|
-
onClick: G[4] || (G[4] = (
|
|
2587
|
+
$(P(Oe), {
|
|
2588
|
+
onClick: G[4] || (G[4] = (Q) => Ve("clockwise"))
|
|
2575
2589
|
}, {
|
|
2576
2590
|
default: ne(() => [
|
|
2577
|
-
$(
|
|
2591
|
+
$(P(Bs))
|
|
2578
2592
|
]),
|
|
2579
2593
|
_: 1
|
|
2580
2594
|
/* STABLE */
|
|
@@ -2591,22 +2605,22 @@ const Ua = {
|
|
|
2591
2605
|
w(
|
|
2592
2606
|
"div",
|
|
2593
2607
|
{
|
|
2594
|
-
class: K(
|
|
2608
|
+
class: K(P(l).e("canvas"))
|
|
2595
2609
|
},
|
|
2596
2610
|
[
|
|
2597
2611
|
(k(!0), T(
|
|
2598
|
-
|
|
2612
|
+
re,
|
|
2599
2613
|
null,
|
|
2600
|
-
Se(
|
|
2614
|
+
Se(U.urlList, (Q, me) => pr((k(), T("img", {
|
|
2601
2615
|
ref_for: !0,
|
|
2602
2616
|
ref: (ke) => h.value[me] = ke,
|
|
2603
|
-
key:
|
|
2604
|
-
src:
|
|
2605
|
-
style:
|
|
2606
|
-
class: K(
|
|
2607
|
-
crossorigin:
|
|
2617
|
+
key: Q,
|
|
2618
|
+
src: Q,
|
|
2619
|
+
style: se(J.value),
|
|
2620
|
+
class: K(P(l).e("img")),
|
|
2621
|
+
crossorigin: U.crossorigin,
|
|
2608
2622
|
onLoad: oe,
|
|
2609
|
-
onError:
|
|
2623
|
+
onError: he,
|
|
2610
2624
|
onMousedown: Te
|
|
2611
2625
|
}, null, 46, Va)), [
|
|
2612
2626
|
[vr, me === d.value]
|
|
@@ -2618,7 +2632,7 @@ const Ua = {
|
|
|
2618
2632
|
2
|
|
2619
2633
|
/* CLASS */
|
|
2620
2634
|
),
|
|
2621
|
-
Ne(
|
|
2635
|
+
Ne(U.$slots, "default")
|
|
2622
2636
|
],
|
|
2623
2637
|
6
|
|
2624
2638
|
/* CLASS, STYLE */
|
|
@@ -2640,7 +2654,7 @@ function Gi(a, o) {
|
|
|
2640
2654
|
}
|
|
2641
2655
|
return r;
|
|
2642
2656
|
}
|
|
2643
|
-
function
|
|
2657
|
+
function ee(a) {
|
|
2644
2658
|
for (var o = 1; o < arguments.length; o++) {
|
|
2645
2659
|
var r = arguments[o] != null ? arguments[o] : {};
|
|
2646
2660
|
o % 2 ? Gi(Object(r), !0).forEach(function(t) {
|
|
@@ -2682,7 +2696,7 @@ function _(a, o, r) {
|
|
|
2682
2696
|
writable: !0
|
|
2683
2697
|
}) : a[o] = r, a;
|
|
2684
2698
|
}
|
|
2685
|
-
function
|
|
2699
|
+
function R(a, o) {
|
|
2686
2700
|
if (typeof o != "function" && o !== null)
|
|
2687
2701
|
throw new TypeError("Super expression must either be null or a function");
|
|
2688
2702
|
a.prototype = Object.create(o && o.prototype, {
|
|
@@ -2695,10 +2709,10 @@ function F(a, o) {
|
|
|
2695
2709
|
writable: !1
|
|
2696
2710
|
}), o && ai(a, o);
|
|
2697
2711
|
}
|
|
2698
|
-
function
|
|
2699
|
-
return
|
|
2712
|
+
function M(a) {
|
|
2713
|
+
return M = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
2700
2714
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
2701
|
-
},
|
|
2715
|
+
}, M(a);
|
|
2702
2716
|
}
|
|
2703
2717
|
function ai(a, o) {
|
|
2704
2718
|
return ai = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
@@ -2729,12 +2743,12 @@ function vi(a, o) {
|
|
|
2729
2743
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
2730
2744
|
return y(a);
|
|
2731
2745
|
}
|
|
2732
|
-
function
|
|
2746
|
+
function F(a) {
|
|
2733
2747
|
var o = Wa();
|
|
2734
2748
|
return function() {
|
|
2735
|
-
var t =
|
|
2749
|
+
var t = M(a), e;
|
|
2736
2750
|
if (o) {
|
|
2737
|
-
var i =
|
|
2751
|
+
var i = M(this).constructor;
|
|
2738
2752
|
e = Reflect.construct(t, arguments, i);
|
|
2739
2753
|
} else
|
|
2740
2754
|
e = t.apply(this, arguments);
|
|
@@ -2742,18 +2756,18 @@ function M(a) {
|
|
|
2742
2756
|
};
|
|
2743
2757
|
}
|
|
2744
2758
|
function Ga(a, o) {
|
|
2745
|
-
for (; !Object.prototype.hasOwnProperty.call(a, o) && (a =
|
|
2759
|
+
for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = M(a), a !== null); )
|
|
2746
2760
|
;
|
|
2747
2761
|
return a;
|
|
2748
2762
|
}
|
|
2749
|
-
function
|
|
2750
|
-
return typeof Reflect < "u" && Reflect.get ?
|
|
2763
|
+
function N() {
|
|
2764
|
+
return typeof Reflect < "u" && Reflect.get ? N = Reflect.get.bind() : N = function(o, r, t) {
|
|
2751
2765
|
var e = Ga(o, r);
|
|
2752
2766
|
if (e) {
|
|
2753
2767
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
2754
2768
|
return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
|
|
2755
2769
|
}
|
|
2756
|
-
},
|
|
2770
|
+
}, N.apply(this, arguments);
|
|
2757
2771
|
}
|
|
2758
2772
|
function ye(a) {
|
|
2759
2773
|
return Ka(a) || Ya(a) || Xa(a) || qa();
|
|
@@ -2867,8 +2881,8 @@ var On = { exports: {} };
|
|
|
2867
2881
|
S[b - 1] = arguments[b];
|
|
2868
2882
|
m.fn.apply(m.context, S);
|
|
2869
2883
|
} else {
|
|
2870
|
-
var
|
|
2871
|
-
for (b = 0; b <
|
|
2884
|
+
var B = m.length, x;
|
|
2885
|
+
for (b = 0; b < B; b++)
|
|
2872
2886
|
switch (m[b].once && this.removeListener(u, m[b].fn, void 0, !0), C) {
|
|
2873
2887
|
case 1:
|
|
2874
2888
|
m[b].fn.call(m[b].context);
|
|
@@ -2884,8 +2898,8 @@ var On = { exports: {} };
|
|
|
2884
2898
|
break;
|
|
2885
2899
|
default:
|
|
2886
2900
|
if (!S)
|
|
2887
|
-
for (
|
|
2888
|
-
S[
|
|
2901
|
+
for (x = 1, S = new Array(C - 1); x < C; x++)
|
|
2902
|
+
S[x - 1] = arguments[x];
|
|
2889
2903
|
m[b].fn.apply(m[b].context, S);
|
|
2890
2904
|
}
|
|
2891
2905
|
}
|
|
@@ -3413,46 +3427,46 @@ function io(a, o, r) {
|
|
|
3413
3427
|
clearTimeout(A);
|
|
3414
3428
|
}
|
|
3415
3429
|
function C(A) {
|
|
3416
|
-
return u = A, s = v(
|
|
3430
|
+
return u = A, s = v(B, o), c ? d(A) : n;
|
|
3417
3431
|
}
|
|
3418
3432
|
function S(A) {
|
|
3419
|
-
var ie = A - l, oe = A - u,
|
|
3420
|
-
return h ? Math.min(
|
|
3433
|
+
var ie = A - l, oe = A - u, he = o - ie;
|
|
3434
|
+
return h ? Math.min(he, i - oe) : he;
|
|
3421
3435
|
}
|
|
3422
3436
|
function b(A) {
|
|
3423
3437
|
var ie = A - l, oe = A - u;
|
|
3424
3438
|
return l === void 0 || ie >= o || ie < 0 || h && oe >= i;
|
|
3425
3439
|
}
|
|
3426
|
-
function
|
|
3440
|
+
function B() {
|
|
3427
3441
|
var A = Date.now();
|
|
3428
3442
|
if (b(A))
|
|
3429
|
-
return
|
|
3430
|
-
s = v(
|
|
3443
|
+
return x(A);
|
|
3444
|
+
s = v(B, S(A));
|
|
3431
3445
|
}
|
|
3432
|
-
function
|
|
3446
|
+
function x(A) {
|
|
3433
3447
|
return s = void 0, g && t ? d(A) : (t = e = void 0, n);
|
|
3434
3448
|
}
|
|
3435
|
-
function
|
|
3449
|
+
function H() {
|
|
3436
3450
|
s !== void 0 && m(s), u = 0, t = l = e = s = void 0;
|
|
3437
3451
|
}
|
|
3438
|
-
function
|
|
3439
|
-
return s === void 0 ? n :
|
|
3452
|
+
function O() {
|
|
3453
|
+
return s === void 0 ? n : x(Date.now());
|
|
3440
3454
|
}
|
|
3441
|
-
function
|
|
3455
|
+
function J() {
|
|
3442
3456
|
return s !== void 0;
|
|
3443
3457
|
}
|
|
3444
3458
|
function q() {
|
|
3445
|
-
for (var A = Date.now(), ie = b(A), oe = arguments.length,
|
|
3446
|
-
|
|
3447
|
-
if (t =
|
|
3459
|
+
for (var A = Date.now(), ie = b(A), oe = arguments.length, he = new Array(oe), Te = 0; Te < oe; Te++)
|
|
3460
|
+
he[Te] = arguments[Te];
|
|
3461
|
+
if (t = he, e = this, l = A, ie) {
|
|
3448
3462
|
if (s === void 0)
|
|
3449
3463
|
return C(l);
|
|
3450
3464
|
if (h)
|
|
3451
|
-
return s = v(
|
|
3465
|
+
return s = v(B, o), d(l);
|
|
3452
3466
|
}
|
|
3453
|
-
return s === void 0 && (s = v(
|
|
3467
|
+
return s === void 0 && (s = v(B, o)), n;
|
|
3454
3468
|
}
|
|
3455
|
-
return q.cancel =
|
|
3469
|
+
return q.cancel = H, q.flush = O, q.pending = J, q;
|
|
3456
3470
|
}
|
|
3457
3471
|
function no(a, o, r) {
|
|
3458
3472
|
var t = !0, e = !0;
|
|
@@ -3635,7 +3649,7 @@ var Yi = {
|
|
|
3635
3649
|
return v.ex = t ? (t[arguments[0]] || {}).msg : "", v;
|
|
3636
3650
|
}
|
|
3637
3651
|
}
|
|
3638
|
-
),
|
|
3652
|
+
), pe = "play", mi = "playing", Xe = "ended", ut = "pause", vt = "error", Mt = "seeking", Pe = "seeked", ge = "timeupdate", mt = "waiting", Ie = "canplay", oo = "canplaythrough", Ue = "durationchange", Nn = "volumechange", Ae = "loadeddata", lo = "loadedmetadata", Bn = "ratechange", Hn = "progress", yi = "loadstart", qe = "emptied", uo = "stalled", co = "suspend", fo = "abort", ho = "bufferedChange", _i = "focus", Un = "blur", ki = "ready", zn = "urlNull", Ke = "autoplay_started", Ci = "autoplay_was_prevented", Nt = "complete", St = "replay", wi = "destroy", Bt = "urlchange", ui = "download_speed_change", Vn = "leaveplayer", jn = "enterplayer", $n = "loading", Ee = "fullscreen_change", xt = "cssFullscreen_change", It = "mini_state_change", bi = "definition_change", go = "before_definition_change", ci = "after_definition_change", po = "SEI_PARSED", vo = "retry", Be = "video_resize", fi = "pip_change", Wn = "rotate", Gn = "screenShot", Pt = "playnext", Kn = "shortcut", Yn = "xglog", At = "user_action", Ht = "reset", Xn = "source_error", qn = "source_success", mo = "switch_subtitle", Zn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Jn = {
|
|
3639
3653
|
STATS_INFO: "stats_info",
|
|
3640
3654
|
STATS_DOWNLOAD: "stats_download",
|
|
3641
3655
|
STATS_RESET: "stats_reset"
|
|
@@ -3670,7 +3684,7 @@ const yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3670
3684
|
MINI_STATE_CHANGE: It,
|
|
3671
3685
|
PAUSE: ut,
|
|
3672
3686
|
PIP_CHANGE: fi,
|
|
3673
|
-
PLAY:
|
|
3687
|
+
PLAY: pe,
|
|
3674
3688
|
PLAYER_BLUR: Un,
|
|
3675
3689
|
PLAYER_FOCUS: _i,
|
|
3676
3690
|
PLAYING: mi,
|
|
@@ -3693,7 +3707,7 @@ const yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3693
3707
|
STATS_EVENTS: Jn,
|
|
3694
3708
|
SUSPEND: co,
|
|
3695
3709
|
SWITCH_SUBTITLE: mo,
|
|
3696
|
-
TIME_UPDATE:
|
|
3710
|
+
TIME_UPDATE: ge,
|
|
3697
3711
|
URL_CHANGE: Bt,
|
|
3698
3712
|
URL_NULL: zn,
|
|
3699
3713
|
USER_ACTION: At,
|
|
@@ -3742,8 +3756,8 @@ function _o(a, o) {
|
|
|
3742
3756
|
};
|
|
3743
3757
|
}
|
|
3744
3758
|
var ko = /* @__PURE__ */ function(a) {
|
|
3745
|
-
|
|
3746
|
-
var o =
|
|
3759
|
+
R(r, a);
|
|
3760
|
+
var o = F(r);
|
|
3747
3761
|
function r(t) {
|
|
3748
3762
|
var e;
|
|
3749
3763
|
L(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({}, {
|
|
@@ -4130,33 +4144,33 @@ var ko = /* @__PURE__ */ function(a) {
|
|
|
4130
4144
|
value: function(e, i) {
|
|
4131
4145
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
4132
4146
|
l[u - 2] = arguments[u];
|
|
4133
|
-
(n =
|
|
4147
|
+
(n = N(M(r.prototype), "emit", this)).call.apply(n, [this, e, i].concat(l));
|
|
4134
4148
|
}
|
|
4135
4149
|
}, {
|
|
4136
4150
|
key: "on",
|
|
4137
4151
|
value: function(e, i) {
|
|
4138
4152
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
4139
4153
|
l[u - 2] = arguments[u];
|
|
4140
|
-
(n =
|
|
4154
|
+
(n = N(M(r.prototype), "on", this)).call.apply(n, [this, e, i].concat(l));
|
|
4141
4155
|
}
|
|
4142
4156
|
}, {
|
|
4143
4157
|
key: "once",
|
|
4144
4158
|
value: function(e, i) {
|
|
4145
4159
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
4146
4160
|
l[u - 2] = arguments[u];
|
|
4147
|
-
(n =
|
|
4161
|
+
(n = N(M(r.prototype), "once", this)).call.apply(n, [this, e, i].concat(l));
|
|
4148
4162
|
}
|
|
4149
4163
|
}, {
|
|
4150
4164
|
key: "off",
|
|
4151
4165
|
value: function(e, i) {
|
|
4152
4166
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
4153
4167
|
l[u - 2] = arguments[u];
|
|
4154
|
-
(n =
|
|
4168
|
+
(n = N(M(r.prototype), "off", this)).call.apply(n, [this, e, i].concat(l));
|
|
4155
4169
|
}
|
|
4156
4170
|
}, {
|
|
4157
4171
|
key: "offAll",
|
|
4158
4172
|
value: function() {
|
|
4159
|
-
|
|
4173
|
+
N(M(r.prototype), "removeAllListeners", this).call(this);
|
|
4160
4174
|
}
|
|
4161
4175
|
}]), r;
|
|
4162
4176
|
}(Fn), Co = /* @__PURE__ */ function() {
|
|
@@ -4458,7 +4472,7 @@ var He = /* @__PURE__ */ function() {
|
|
|
4458
4472
|
value: function(r, t) {
|
|
4459
4473
|
var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
4460
4474
|
if (this.player) {
|
|
4461
|
-
var i =
|
|
4475
|
+
var i = ee(ee({}, e), {}, {
|
|
4462
4476
|
pluginName: this.pluginName
|
|
4463
4477
|
});
|
|
4464
4478
|
this.player.emitUserAction(r, t, i);
|
|
@@ -4620,8 +4634,8 @@ function Oo(a, o) {
|
|
|
4620
4634
|
});
|
|
4621
4635
|
}
|
|
4622
4636
|
var W = /* @__PURE__ */ function(a) {
|
|
4623
|
-
|
|
4624
|
-
var o =
|
|
4637
|
+
R(r, a);
|
|
4638
|
+
var o = F(r);
|
|
4625
4639
|
function r() {
|
|
4626
4640
|
var t, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4627
4641
|
return L(this, r), t = o.call(this, e), t.__delegates = [], t;
|
|
@@ -4629,7 +4643,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4629
4643
|
return D(r, [{
|
|
4630
4644
|
key: "__init",
|
|
4631
4645
|
value: function(e) {
|
|
4632
|
-
if (
|
|
4646
|
+
if (N(M(r.prototype), "__init", this).call(this, e), !!e.root) {
|
|
4633
4647
|
var i = e.root, n = null;
|
|
4634
4648
|
this.icons = {}, this.root = null, this.parent = null;
|
|
4635
4649
|
var s = this.registerIcons() || {};
|
|
@@ -4723,7 +4737,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4723
4737
|
value: function(e) {
|
|
4724
4738
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "";
|
|
4725
4739
|
i.root = i.root || this.root;
|
|
4726
|
-
var s =
|
|
4740
|
+
var s = N(M(r.prototype), "registerPlugin", this).call(this, e, i, n);
|
|
4727
4741
|
return this._children.push(s), s;
|
|
4728
4742
|
}
|
|
4729
4743
|
}, {
|
|
@@ -4858,7 +4872,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4858
4872
|
n.destroy();
|
|
4859
4873
|
}), this.__delegates = [], this._children instanceof Array && (this._children.map(function(n) {
|
|
4860
4874
|
i.unRegisterPlugin(n.pluginName);
|
|
4861
|
-
}), this._children = null), this.root && (this.root.hasOwnProperty("remove") ? this.root.remove() : this.root.parentNode && this.root.parentNode.removeChild(this.root)),
|
|
4875
|
+
}), this._children = null), this.root && (this.root.hasOwnProperty("remove") ? this.root.remove() : this.root.parentNode && this.root.parentNode.removeChild(this.root)), N(M(r.prototype), "__destroy", this).call(this), this.icons = {}, ["root", "parent"].map(function(n) {
|
|
4862
4876
|
e[n] = null;
|
|
4863
4877
|
});
|
|
4864
4878
|
}
|
|
@@ -4983,7 +4997,7 @@ function Fo(a, o) {
|
|
|
4983
4997
|
function Mo(a, o) {
|
|
4984
4998
|
dt.unObserver(a, o);
|
|
4985
4999
|
}
|
|
4986
|
-
var
|
|
5000
|
+
var ae = {
|
|
4987
5001
|
pluginGroup: {},
|
|
4988
5002
|
init: function(o) {
|
|
4989
5003
|
var r = o._pluginInfoId;
|
|
@@ -5305,8 +5319,8 @@ var No = function(o, r) {
|
|
|
5305
5319
|
var v = o.config.i18n || [];
|
|
5306
5320
|
d.push.apply(d, ye(v)), o.config.i18n = d;
|
|
5307
5321
|
}, Bo = /* @__PURE__ */ function(a) {
|
|
5308
|
-
|
|
5309
|
-
var o =
|
|
5322
|
+
R(r, a);
|
|
5323
|
+
var o = F(r);
|
|
5310
5324
|
function r() {
|
|
5311
5325
|
var t;
|
|
5312
5326
|
L(this, r);
|
|
@@ -5415,7 +5429,7 @@ var No = function(o, r) {
|
|
|
5415
5429
|
default:
|
|
5416
5430
|
i.root = this.left;
|
|
5417
5431
|
}
|
|
5418
|
-
return
|
|
5432
|
+
return N(M(r.prototype), "registerPlugin", this).call(this, e, i, n);
|
|
5419
5433
|
}
|
|
5420
5434
|
}
|
|
5421
5435
|
}
|
|
@@ -5540,7 +5554,7 @@ var No = function(o, r) {
|
|
|
5540
5554
|
FORWARD: "forward",
|
|
5541
5555
|
LIVE_TIP: "Live"
|
|
5542
5556
|
}
|
|
5543
|
-
},
|
|
5557
|
+
}, de = {
|
|
5544
5558
|
lang: {},
|
|
5545
5559
|
langKeys: [],
|
|
5546
5560
|
textKeys: []
|
|
@@ -5556,13 +5570,13 @@ function pt(a, o) {
|
|
|
5556
5570
|
}), a;
|
|
5557
5571
|
}
|
|
5558
5572
|
function ir() {
|
|
5559
|
-
Object.keys(
|
|
5560
|
-
|
|
5573
|
+
Object.keys(de.lang.en).map(function(a) {
|
|
5574
|
+
de.textKeys[a] = a;
|
|
5561
5575
|
});
|
|
5562
5576
|
}
|
|
5563
5577
|
function Uo(a, o) {
|
|
5564
5578
|
var r = [];
|
|
5565
|
-
if (o || (o =
|
|
5579
|
+
if (o || (o = de), !!o.lang) {
|
|
5566
5580
|
f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
|
|
5567
5581
|
var n = i === "zh" ? "zh-cn" : i;
|
|
5568
5582
|
return {
|
|
@@ -5578,7 +5592,7 @@ function Uo(a, o) {
|
|
|
5578
5592
|
}
|
|
5579
5593
|
function Ti(a, o) {
|
|
5580
5594
|
var r = a.LANG;
|
|
5581
|
-
if (o || (o =
|
|
5595
|
+
if (o || (o = de), !!o.lang) {
|
|
5582
5596
|
var t = a.TEXT || {};
|
|
5583
5597
|
r === "zh" && (r = "zh-cn"), o.lang[r] ? pt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), ir();
|
|
5584
5598
|
}
|
|
@@ -5590,21 +5604,21 @@ function zo(a) {
|
|
|
5590
5604
|
textKeys: {},
|
|
5591
5605
|
pId: a
|
|
5592
5606
|
};
|
|
5593
|
-
return pt(r.lang,
|
|
5607
|
+
return pt(r.lang, de.lang), (o = r.langKeys).push.apply(o, ye(de.langKeys)), pt(r.textKeys, de.textKeys), r;
|
|
5594
5608
|
}
|
|
5595
5609
|
Ti(Ho);
|
|
5596
5610
|
var at = {
|
|
5597
5611
|
get textKeys() {
|
|
5598
|
-
return
|
|
5612
|
+
return de.textKeys;
|
|
5599
5613
|
},
|
|
5600
5614
|
get langKeys() {
|
|
5601
|
-
return
|
|
5615
|
+
return de.langKeys;
|
|
5602
5616
|
},
|
|
5603
5617
|
get lang() {
|
|
5604
5618
|
var a = {};
|
|
5605
|
-
return
|
|
5606
|
-
a[o] =
|
|
5607
|
-
}),
|
|
5619
|
+
return de.langKeys.map(function(o) {
|
|
5620
|
+
a[o] = de.lang[o];
|
|
5621
|
+
}), de.lang["zh-cn"] && (a.zh = de.lang["zh-cn"] || {}), a;
|
|
5608
5622
|
},
|
|
5609
5623
|
extend: Uo,
|
|
5610
5624
|
use: Ti,
|
|
@@ -5619,8 +5633,8 @@ var at = {
|
|
|
5619
5633
|
ENDED: 7,
|
|
5620
5634
|
DESTROYED: 8
|
|
5621
5635
|
}, on = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], ce = {}, qt = null, nr = /* @__PURE__ */ function(a) {
|
|
5622
|
-
|
|
5623
|
-
var o =
|
|
5636
|
+
R(r, a);
|
|
5637
|
+
var o = F(r);
|
|
5624
5638
|
function r() {
|
|
5625
5639
|
return L(this, r), o.apply(this, arguments);
|
|
5626
5640
|
}
|
|
@@ -5714,8 +5728,8 @@ function Vo(a) {
|
|
|
5714
5728
|
return null;
|
|
5715
5729
|
}
|
|
5716
5730
|
var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /* @__PURE__ */ function(a) {
|
|
5717
|
-
|
|
5718
|
-
var o =
|
|
5731
|
+
R(r, a);
|
|
5732
|
+
var o = F(r);
|
|
5719
5733
|
function r(t) {
|
|
5720
5734
|
var e;
|
|
5721
5735
|
L(this, r);
|
|
@@ -5748,14 +5762,14 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
5748
5762
|
m(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, E.FULLSCREEN), e.emit(Ee, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
5749
5763
|
else if (e.fullscreen) {
|
|
5750
5764
|
m();
|
|
5751
|
-
var b = y(e),
|
|
5752
|
-
if (
|
|
5765
|
+
var b = y(e), B = b._fullScreenOffset, x = b.config;
|
|
5766
|
+
if (x.needFullscreenScroll ? (window.scrollTo(B.left, B.top), f.setTimeout(y(e), function() {
|
|
5753
5767
|
e.fullscreen = !1, e._fullScreenOffset = null;
|
|
5754
5768
|
}, 100)) : (!e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !1, e._fullScreenOffset = null), e.cssfullscreen)
|
|
5755
5769
|
e.removeClass(E.FULLSCREEN);
|
|
5756
5770
|
else {
|
|
5757
|
-
var
|
|
5758
|
-
!
|
|
5771
|
+
var H = e._fullscreenEl;
|
|
5772
|
+
!H && (e.root.contains(d.target) || d.target === e.root) && (H = d.target), e.recoverFullStyle(e.root, H, E.FULLSCREEN);
|
|
5759
5773
|
}
|
|
5760
5774
|
e._fullscreenEl = null, e.emit(Ee, !1);
|
|
5761
5775
|
}
|
|
@@ -5805,7 +5819,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
5805
5819
|
});
|
|
5806
5820
|
p || (h.defaultDefinition = h.list[0].definition, p = h.list[0]), e.config.url = p.url, e.curDefinition = p;
|
|
5807
5821
|
}
|
|
5808
|
-
return e._bindEvents(), e._registerPresets(), e._registerPlugins(),
|
|
5822
|
+
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), ae.onPluginsReady(y(e)), e.getInitDefinition(), e.setState(j.READY), f.setTimeout(y(e), function() {
|
|
5809
5823
|
e.emit(ki);
|
|
5810
5824
|
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < j.ATTACHED) && e.start(), e;
|
|
5811
5825
|
}
|
|
@@ -5825,7 +5839,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
5825
5839
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
5826
5840
|
}
|
|
5827
5841
|
var s = Vo(this.root);
|
|
5828
|
-
s && (V.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute($e, this.playerId), (e = Re) === null || e === void 0 || e.add(this),
|
|
5842
|
+
s && (V.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute($e, this.playerId), (e = Re) === null || e === void 0 || e.add(this), ae.init(this), this._initBaseDoms();
|
|
5829
5843
|
var l = this.constructor.XgVideoProxy;
|
|
5830
5844
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
5831
5845
|
var u = this.innerContainer || this.root;
|
|
@@ -5834,7 +5848,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
5834
5848
|
this.attachVideoEvents(c), this.media = c;
|
|
5835
5849
|
}
|
|
5836
5850
|
if (this.media.setAttribute($e, this.playerId), this.config.controls) {
|
|
5837
|
-
var h = this.config.controls.root || null, g =
|
|
5851
|
+
var h = this.config.controls.root || null, g = ae.register(this, Bo, {
|
|
5838
5852
|
root: h
|
|
5839
5853
|
});
|
|
5840
5854
|
this.controls = g;
|
|
@@ -5849,15 +5863,15 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
5849
5863
|
"max-width": "100%",
|
|
5850
5864
|
"padding-top": "".concat(m * 100 / v, "%")
|
|
5851
5865
|
};
|
|
5852
|
-
Object.keys(C).forEach(function(
|
|
5853
|
-
i.root.style[
|
|
5866
|
+
Object.keys(C).forEach(function(O) {
|
|
5867
|
+
i.root.style[O] = C[O];
|
|
5854
5868
|
});
|
|
5855
5869
|
} else
|
|
5856
|
-
["width", "height"].forEach(function(
|
|
5857
|
-
i.config[
|
|
5870
|
+
["width", "height"].forEach(function(O) {
|
|
5871
|
+
i.config[O] && (typeof i.config[O] != "number" ? i.root.style[O] = i.config[O] : i.root.style[O] = "".concat(i.config[O], "px"));
|
|
5858
5872
|
});
|
|
5859
|
-
var S = this.root.getBoundingClientRect(), b = S.width,
|
|
5860
|
-
return this.sizeInfo.width = b, this.sizeInfo.height =
|
|
5873
|
+
var S = this.root.getBoundingClientRect(), b = S.width, B = S.height, x = S.left, H = S.top;
|
|
5874
|
+
return this.sizeInfo.width = b, this.sizeInfo.height = B, this.sizeInfo.left = x, this.sizeInfo.top = H, !0;
|
|
5861
5875
|
}
|
|
5862
5876
|
}, {
|
|
5863
5877
|
key: "_initBaseDoms",
|
|
@@ -5876,7 +5890,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
5876
5890
|
document && document.addEventListener(i, e.onFullscreenChange);
|
|
5877
5891
|
}), z.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Ae, this.resize), this.playFunc = function() {
|
|
5878
5892
|
e.config.closeFocusVideoFocus || e.media.focus();
|
|
5879
|
-
}, this.once(
|
|
5893
|
+
}, this.once(pe, this.playFunc);
|
|
5880
5894
|
}
|
|
5881
5895
|
}, {
|
|
5882
5896
|
key: "_unbindEvents",
|
|
@@ -5884,7 +5898,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
5884
5898
|
var e = this;
|
|
5885
5899
|
this.root.removeEventListener("mousemove", this.mousemoveFunc), Zi.forEach(function(i) {
|
|
5886
5900
|
document.removeEventListener(i, e.onFullscreenChange);
|
|
5887
|
-
}), this.playFunc && this.off(
|
|
5901
|
+
}), this.playFunc && this.off(pe, this.playFunc), this.off(Ie, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
|
|
5888
5902
|
}
|
|
5889
5903
|
}, {
|
|
5890
5904
|
key: "_clearUserTimer",
|
|
@@ -5902,7 +5916,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
5902
5916
|
var s = this.media.readyState;
|
|
5903
5917
|
V.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (z.os.isIpad || z.os.isPhone) && this.mediaPlay());
|
|
5904
5918
|
var l = this.config.startTime;
|
|
5905
|
-
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Ie, this.canPlayFunc), (!this.hasStart || this.state < j.ATTACHED) &&
|
|
5919
|
+
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Ie, this.canPlayFunc), (!this.hasStart || this.state < j.ATTACHED) && ae.afterInit(this), this.hasStart = !0, this.setState(j.ATTACHED), f.setTimeout(this, function() {
|
|
5906
5920
|
i.emit(Nt);
|
|
5907
5921
|
}, 0);
|
|
5908
5922
|
}
|
|
@@ -5923,7 +5937,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
5923
5937
|
if (!i && c[g.toLowerCase()])
|
|
5924
5938
|
return;
|
|
5925
5939
|
if (h.lazy && h.loader) {
|
|
5926
|
-
var p =
|
|
5940
|
+
var p = ae.lazyRegister(e, h);
|
|
5927
5941
|
h.forceBeforeInit && (p.then(function() {
|
|
5928
5942
|
e._loadingPlugins.splice(e._loadingPlugins.indexOf(p), 1);
|
|
5929
5943
|
}).catch(function(d) {
|
|
@@ -5968,17 +5982,17 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
5968
5982
|
}, {
|
|
5969
5983
|
key: "registerPlugin",
|
|
5970
5984
|
value: function(e, i) {
|
|
5971
|
-
var n =
|
|
5985
|
+
var n = ae.formatPluginInfo(e, i), s = n.PLUFGIN, l = n.options, u = this.config.plugins, c = ae.checkPluginIfExits(s.pluginName, u);
|
|
5972
5986
|
!c && u.push(s);
|
|
5973
|
-
var h =
|
|
5987
|
+
var h = ae.getRootByConfig(s.pluginName, this.config);
|
|
5974
5988
|
h.root && (l.root = h.root), h.position && (l.position = h.position);
|
|
5975
5989
|
var g = l.position ? l.position : l.config && l.config.position || s.defaultConfig && s.defaultConfig.position;
|
|
5976
|
-
return !l.root && typeof g == "string" && g.indexOf("controls") > -1 ? this.controls && this.controls.registerPlugin(s, l, s.pluginName) : (l.root || (l.root = this._getRootByPosition(g)),
|
|
5990
|
+
return !l.root && typeof g == "string" && g.indexOf("controls") > -1 ? this.controls && this.controls.registerPlugin(s, l, s.pluginName) : (l.root || (l.root = this._getRootByPosition(g)), ae.register(this, s, l));
|
|
5977
5991
|
}
|
|
5978
5992
|
}, {
|
|
5979
5993
|
key: "deregister",
|
|
5980
5994
|
value: function(e) {
|
|
5981
|
-
typeof e == "string" ?
|
|
5995
|
+
typeof e == "string" ? ae.unRegister(this, e) : e instanceof He && ae.unRegister(this, e.pluginName);
|
|
5982
5996
|
}
|
|
5983
5997
|
}, {
|
|
5984
5998
|
key: "unRegisterPlugin",
|
|
@@ -6002,12 +6016,12 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
6002
6016
|
}, {
|
|
6003
6017
|
key: "plugins",
|
|
6004
6018
|
get: function() {
|
|
6005
|
-
return
|
|
6019
|
+
return ae.getPlugins(this);
|
|
6006
6020
|
}
|
|
6007
6021
|
}, {
|
|
6008
6022
|
key: "getPlugin",
|
|
6009
6023
|
value: function(e) {
|
|
6010
|
-
var i =
|
|
6024
|
+
var i = ae.findPlugin(this, e);
|
|
6011
6025
|
return i && i.pluginName ? i : null;
|
|
6012
6026
|
}
|
|
6013
6027
|
}, {
|
|
@@ -6041,7 +6055,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
6041
6055
|
value: function(e) {
|
|
6042
6056
|
var i = this;
|
|
6043
6057
|
if (!(this.state > j.ATTACHING))
|
|
6044
|
-
return !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(j.ATTACHING), this._registerPlugins(!1),
|
|
6058
|
+
return !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(j.ATTACHING), this._registerPlugins(!1), ae.beforeInit(this).then(function() {
|
|
6045
6059
|
if (i.config) {
|
|
6046
6060
|
e || (e = i.url || i.config.url);
|
|
6047
6061
|
var n = i._preProcessUrl(e), s = i._startInit(n.url);
|
|
@@ -6089,7 +6103,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
6089
6103
|
return;
|
|
6090
6104
|
}
|
|
6091
6105
|
this.state < j.RUNNING && (this.removeClass(E.NO_START), !this.isCanplay && this.addClass(E.ENTER));
|
|
6092
|
-
var i =
|
|
6106
|
+
var i = N(M(r.prototype), "play", this).call(this);
|
|
6093
6107
|
return i !== void 0 && i && i.then ? i.then(function() {
|
|
6094
6108
|
e.removeClass(E.NOT_ALLOW_AUTOPLAY), e.addClass(E.PLAYING), e.state < j.RUNNING && (V.logInfo(">>>>playPromise.then"), e.setState(j.RUNNING), e.emit(Ke));
|
|
6095
6109
|
}).catch(function(n) {
|
|
@@ -6105,12 +6119,12 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
6105
6119
|
}, {
|
|
6106
6120
|
key: "mediaPause",
|
|
6107
6121
|
value: function() {
|
|
6108
|
-
|
|
6122
|
+
N(M(r.prototype), "pause", this).call(this);
|
|
6109
6123
|
}
|
|
6110
6124
|
}, {
|
|
6111
6125
|
key: "videoPause",
|
|
6112
6126
|
value: function() {
|
|
6113
|
-
|
|
6127
|
+
N(M(r.prototype), "pause", this).call(this);
|
|
6114
6128
|
}
|
|
6115
6129
|
}, {
|
|
6116
6130
|
key: "play",
|
|
@@ -6125,7 +6139,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
6125
6139
|
value: function() {
|
|
6126
6140
|
var e = this;
|
|
6127
6141
|
xe(this, "pause", function() {
|
|
6128
|
-
|
|
6142
|
+
N(M(r.prototype), "pause", e).call(e);
|
|
6129
6143
|
});
|
|
6130
6144
|
}
|
|
6131
6145
|
}, {
|
|
@@ -6170,7 +6184,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
6170
6184
|
this.config.url = e.url;
|
|
6171
6185
|
return;
|
|
6172
6186
|
}
|
|
6173
|
-
var l = this.switchURL(e.url,
|
|
6187
|
+
var l = this.switchURL(e.url, ee({
|
|
6174
6188
|
seamless: s.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
|
|
6175
6189
|
}, e));
|
|
6176
6190
|
l && l.then ? l.then(function() {
|
|
@@ -6218,7 +6232,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
6218
6232
|
value: function() {
|
|
6219
6233
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
6220
6234
|
if (!(!s || !l)) {
|
|
6221
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute($e), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(wi), (e = Re) === null || e === void 0 || e.remove(this),
|
|
6235
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute($e), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(wi), (e = Re) === null || e === void 0 || e.remove(this), ae.destroy(this), tr(this), N(M(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
6222
6236
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
6223
6237
|
n.removeChild(u[c]);
|
|
6224
6238
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(g) {
|
|
@@ -6365,7 +6379,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
6365
6379
|
this.onFocus(e);
|
|
6366
6380
|
return;
|
|
6367
6381
|
}
|
|
6368
|
-
this.emit(_i,
|
|
6382
|
+
this.emit(_i, ee({
|
|
6369
6383
|
paused: this.paused,
|
|
6370
6384
|
ended: this.ended
|
|
6371
6385
|
}, e));
|
|
@@ -6380,7 +6394,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
6380
6394
|
this.onBlur(e);
|
|
6381
6395
|
return;
|
|
6382
6396
|
}
|
|
6383
|
-
this._clearUserTimer(), this.emit(Un,
|
|
6397
|
+
this._clearUserTimer(), this.emit(Un, ee({
|
|
6384
6398
|
paused: this.paused,
|
|
6385
6399
|
ended: this.ended
|
|
6386
6400
|
}, e));
|
|
@@ -6498,7 +6512,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
6498
6512
|
value: function(e, i, n) {
|
|
6499
6513
|
if (!(!this.media || !i || !e)) {
|
|
6500
6514
|
var s = f.typeOf(e) === "String" ? e : e.type || "";
|
|
6501
|
-
n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(At,
|
|
6515
|
+
n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(At, ee({
|
|
6502
6516
|
eventType: s,
|
|
6503
6517
|
action: i,
|
|
6504
6518
|
currentTime: this.currentTime,
|
|
@@ -6540,16 +6554,16 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
6540
6554
|
this.videoPos.pi = c, u = u < 0 ? 0 : u;
|
|
6541
6555
|
var h = {
|
|
6542
6556
|
rotate: u
|
|
6543
|
-
}, g = 0, p = 0, d = 1, v = Math.abs(u / 90), m = this.root, C = this.innerContainer, S = m.offsetWidth, b = C ? C.offsetHeight : m.offsetHeight,
|
|
6557
|
+
}, g = 0, p = 0, d = 1, v = Math.abs(u / 90), m = this.root, C = this.innerContainer, S = m.offsetWidth, b = C ? C.offsetHeight : m.offsetHeight, B = b, x = S;
|
|
6544
6558
|
if (v % 2 === 0)
|
|
6545
|
-
d = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = d, g = i > 0 ? (100 - s) / 2 - i : 0, h.y = v === 2 ? 0 - g : g, p = n > 0 ? (100 - l) / 2 - n : 0, h.x = v === 2 ? 0 - p : p, this.media.style.width = "".concat(
|
|
6559
|
+
d = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = d, g = i > 0 ? (100 - s) / 2 - i : 0, h.y = v === 2 ? 0 - g : g, p = n > 0 ? (100 - l) / 2 - n : 0, h.x = v === 2 ? 0 - p : p, this.media.style.width = "".concat(x, "px"), this.media.style.height = "".concat(B, "px");
|
|
6546
6560
|
else if (v % 2 === 1) {
|
|
6547
|
-
|
|
6548
|
-
var
|
|
6549
|
-
p = -
|
|
6561
|
+
x = b, B = S;
|
|
6562
|
+
var H = b - S;
|
|
6563
|
+
p = -H / 2 / x * 100, h.x = v === 3 ? p + i / 2 : p - i / 2, g = H / 2 / B * 100, h.y = v === 3 ? g + n / 2 : g - n / 2, h.scale = d, this.media.style.width = "".concat(x, "px"), this.media.style.height = "".concat(B, "px");
|
|
6550
6564
|
}
|
|
6551
|
-
var
|
|
6552
|
-
this.media.style.transform =
|
|
6565
|
+
var O = f.getTransformStyle(h, this.media.style.transform || this.media.style.webkitTransform);
|
|
6566
|
+
this.media.style.transform = O, this.media.style.webkitTransform = O;
|
|
6553
6567
|
}
|
|
6554
6568
|
}
|
|
6555
6569
|
}
|
|
@@ -6598,17 +6612,17 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
6598
6612
|
if ((h === "fill" || h === "cover" || h === "contain") && this.setAttribute("data-xgfill", h), !(!l || !s)) {
|
|
6599
6613
|
this._videoHeight = l, this._videoWidth = s;
|
|
6600
6614
|
var g = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, p = i.width, d = i.height - g, v = parseInt(s / l * 1e3, 10), m = parseInt(p / d * 1e3, 10), C = p, S = d, b = {};
|
|
6601
|
-
c === "auto" && m > v || c === "fixWidth" ? (S = p / v * 1e3, this.config.fluid ? b.paddingTop = "".concat(S * 100 / C, "%") : b.height = "".concat(S + g, "px")) : (c === "auto" && m < v || c === "fixHeight") && (C = v * d / 1e3, b.width = "".concat(C, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(b).forEach(function(
|
|
6602
|
-
e.root.style[
|
|
6615
|
+
c === "auto" && m > v || c === "fixWidth" ? (S = p / v * 1e3, this.config.fluid ? b.paddingTop = "".concat(S * 100 / C, "%") : b.height = "".concat(S + g, "px")) : (c === "auto" && m < v || c === "fixHeight") && (C = v * d / 1e3, b.width = "".concat(C, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(b).forEach(function(x) {
|
|
6616
|
+
e.root.style[x] = b[x];
|
|
6603
6617
|
}), (h === "fillHeight" && m < v || h === "fillWidth" && m > v) && this.setAttribute("data-xgfill", "cover");
|
|
6604
|
-
var
|
|
6618
|
+
var B = {
|
|
6605
6619
|
videoScale: v,
|
|
6606
6620
|
vWidth: C,
|
|
6607
6621
|
vHeight: S,
|
|
6608
6622
|
cWidth: C,
|
|
6609
6623
|
cHeight: S + g
|
|
6610
6624
|
};
|
|
6611
|
-
this.resizePosition(), this.emit(Be,
|
|
6625
|
+
this.resizePosition(), this.emit(Be, B);
|
|
6612
6626
|
}
|
|
6613
6627
|
}
|
|
6614
6628
|
}
|
|
@@ -6706,7 +6720,7 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
6706
6720
|
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(at.langKeys.join(), "] "));
|
|
6707
6721
|
return;
|
|
6708
6722
|
}
|
|
6709
|
-
this.config.lang = e,
|
|
6723
|
+
this.config.lang = e, ae.setLang(e, this);
|
|
6710
6724
|
}
|
|
6711
6725
|
}, {
|
|
6712
6726
|
key: "i18n",
|
|
@@ -6748,18 +6762,18 @@ var jo = ["play", "pause", "replay", "retry"], ln = 0, un = 0, Re = null, Ut = /
|
|
|
6748
6762
|
}, {
|
|
6749
6763
|
key: "readyState",
|
|
6750
6764
|
get: function() {
|
|
6751
|
-
return
|
|
6765
|
+
return N(M(r.prototype), "readyState", this);
|
|
6752
6766
|
}
|
|
6753
6767
|
}, {
|
|
6754
6768
|
key: "error",
|
|
6755
6769
|
get: function() {
|
|
6756
|
-
var e =
|
|
6770
|
+
var e = N(M(r.prototype), "error", this);
|
|
6757
6771
|
return this.i18n[e] || e;
|
|
6758
6772
|
}
|
|
6759
6773
|
}, {
|
|
6760
6774
|
key: "networkState",
|
|
6761
6775
|
get: function() {
|
|
6762
|
-
return
|
|
6776
|
+
return N(M(r.prototype), "networkState", this);
|
|
6763
6777
|
}
|
|
6764
6778
|
}, {
|
|
6765
6779
|
key: "fullscreenChanging",
|
|
@@ -6920,8 +6934,8 @@ var Fe = {
|
|
|
6920
6934
|
SEEK_START: "seekStart",
|
|
6921
6935
|
SEEK_END: "seekEnd"
|
|
6922
6936
|
}, $o = /* @__PURE__ */ function(a) {
|
|
6923
|
-
|
|
6924
|
-
var o =
|
|
6937
|
+
R(r, a);
|
|
6938
|
+
var o = F(r);
|
|
6925
6939
|
function r() {
|
|
6926
6940
|
var t;
|
|
6927
6941
|
L(this, r);
|
|
@@ -6989,7 +7003,7 @@ var Fe = {
|
|
|
6989
7003
|
}, {
|
|
6990
7004
|
key: "_initOnceEvents",
|
|
6991
7005
|
value: function() {
|
|
6992
|
-
this.off(Ke, this._onAutoplayStart), this.off(
|
|
7006
|
+
this.off(Ke, this._onAutoplayStart), this.off(ge, this._onTimeupdate), this.once(Ke, this._onAutoplayStart), this.once(ge, this._onTimeupdate);
|
|
6993
7007
|
}
|
|
6994
7008
|
}, {
|
|
6995
7009
|
key: "_sendFF",
|
|
@@ -7046,7 +7060,7 @@ var Fe = {
|
|
|
7046
7060
|
key: "emitLog",
|
|
7047
7061
|
value: function(e, i) {
|
|
7048
7062
|
var n = this.player;
|
|
7049
|
-
this.emit(Yn,
|
|
7063
|
+
this.emit(Yn, ee({
|
|
7050
7064
|
t: le(),
|
|
7051
7065
|
host: f.getHostFromUrl(n.currentSrc),
|
|
7052
7066
|
vtype: n.vtype,
|
|
@@ -7077,8 +7091,8 @@ function Wo() {
|
|
|
7077
7091
|
`, "image/svg+xml").firstChild;
|
|
7078
7092
|
}
|
|
7079
7093
|
var Go = /* @__PURE__ */ function(a) {
|
|
7080
|
-
|
|
7081
|
-
var o =
|
|
7094
|
+
R(r, a);
|
|
7095
|
+
var o = F(r);
|
|
7082
7096
|
function r() {
|
|
7083
7097
|
return L(this, r), o.apply(this, arguments);
|
|
7084
7098
|
}
|
|
@@ -7110,7 +7124,7 @@ var Go = /* @__PURE__ */ function(a) {
|
|
|
7110
7124
|
i.setAttribute("transform", n);
|
|
7111
7125
|
}
|
|
7112
7126
|
}
|
|
7113
|
-
}), this.on(
|
|
7127
|
+
}), this.on(pe, function() {
|
|
7114
7128
|
e.hide();
|
|
7115
7129
|
});
|
|
7116
7130
|
}
|
|
@@ -7160,8 +7174,8 @@ var Go = /* @__PURE__ */ function(a) {
|
|
|
7160
7174
|
}
|
|
7161
7175
|
}]), r;
|
|
7162
7176
|
}(W), Ko = /* @__PURE__ */ function(a) {
|
|
7163
|
-
|
|
7164
|
-
var o =
|
|
7177
|
+
R(r, a);
|
|
7178
|
+
var o = F(r);
|
|
7165
7179
|
function r() {
|
|
7166
7180
|
return L(this, r), o.apply(this, arguments);
|
|
7167
7181
|
}
|
|
@@ -7194,13 +7208,13 @@ var Go = /* @__PURE__ */ function(a) {
|
|
|
7194
7208
|
var e = this;
|
|
7195
7209
|
this.on(Xe, function() {
|
|
7196
7210
|
e.isEndedShow && f.removeClass(e.root, "hide");
|
|
7197
|
-
}), this.config.hideCanplay ? (this.once(
|
|
7211
|
+
}), this.config.hideCanplay ? (this.once(ge, function() {
|
|
7198
7212
|
e.onTimeUpdate();
|
|
7199
7213
|
}), this.on(Bt, function() {
|
|
7200
|
-
f.removeClass(e.root, "hide"), f.addClass(e.root, "xg-showplay"), e.once(
|
|
7214
|
+
f.removeClass(e.root, "hide"), f.addClass(e.root, "xg-showplay"), e.once(ge, function() {
|
|
7201
7215
|
e.onTimeUpdate();
|
|
7202
7216
|
});
|
|
7203
|
-
})) : this.on(
|
|
7217
|
+
})) : this.on(pe, function() {
|
|
7204
7218
|
f.addClass(e.root, "hide");
|
|
7205
7219
|
});
|
|
7206
7220
|
}
|
|
@@ -7218,7 +7232,7 @@ var Go = /* @__PURE__ */ function(a) {
|
|
|
7218
7232
|
key: "onTimeUpdate",
|
|
7219
7233
|
value: function() {
|
|
7220
7234
|
var e = this;
|
|
7221
|
-
this.player.currentTime ? f.removeClass(this.root, "xg-showplay") : this.once(
|
|
7235
|
+
this.player.currentTime ? f.removeClass(this.root, "xg-showplay") : this.once(ge, function() {
|
|
7222
7236
|
e.onTimeUpdate();
|
|
7223
7237
|
});
|
|
7224
7238
|
}
|
|
@@ -7303,8 +7317,8 @@ function cn(a) {
|
|
|
7303
7317
|
});
|
|
7304
7318
|
}
|
|
7305
7319
|
var Xo = /* @__PURE__ */ function(a) {
|
|
7306
|
-
|
|
7307
|
-
var o =
|
|
7320
|
+
R(r, a);
|
|
7321
|
+
var o = F(r);
|
|
7308
7322
|
function r(t) {
|
|
7309
7323
|
var e;
|
|
7310
7324
|
return L(this, r), e = o.call(this, t), _(y(e), "onPlayerReset", function() {
|
|
@@ -7327,7 +7341,7 @@ var Xo = /* @__PURE__ */ function(a) {
|
|
|
7327
7341
|
}), this.on(Ke, this.onAutoplayStart), n.autoplay || this.show(), this.on(Ci, function() {
|
|
7328
7342
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
7329
7343
|
e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
|
|
7330
|
-
}), this.on(
|
|
7344
|
+
}), this.on(pe, function() {
|
|
7331
7345
|
e.onPlayPause("play");
|
|
7332
7346
|
}), this.on(ut, function() {
|
|
7333
7347
|
e.onPlayPause("pause");
|
|
@@ -7478,8 +7492,8 @@ var Xo = /* @__PURE__ */ function(a) {
|
|
|
7478
7492
|
}
|
|
7479
7493
|
}]), r;
|
|
7480
7494
|
}(W), qo = /* @__PURE__ */ function(a) {
|
|
7481
|
-
|
|
7482
|
-
var o =
|
|
7495
|
+
R(r, a);
|
|
7496
|
+
var o = F(r);
|
|
7483
7497
|
function r() {
|
|
7484
7498
|
return L(this, r), o.apply(this, arguments);
|
|
7485
7499
|
}
|
|
@@ -7523,8 +7537,8 @@ function ze(a, o, r) {
|
|
|
7523
7537
|
}
|
|
7524
7538
|
}
|
|
7525
7539
|
var fn = /* @__PURE__ */ function(a) {
|
|
7526
|
-
|
|
7527
|
-
var o =
|
|
7540
|
+
R(r, a);
|
|
7541
|
+
var o = F(r);
|
|
7528
7542
|
function r() {
|
|
7529
7543
|
return L(this, r), o.apply(this, arguments);
|
|
7530
7544
|
}
|
|
@@ -7628,8 +7642,8 @@ var Jt = {
|
|
|
7628
7642
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
7629
7643
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
7630
7644
|
}, Qo = /* @__PURE__ */ function(a) {
|
|
7631
|
-
|
|
7632
|
-
var o =
|
|
7645
|
+
R(r, a);
|
|
7646
|
+
var o = F(r);
|
|
7633
7647
|
function r(t) {
|
|
7634
7648
|
var e, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7635
7649
|
return L(this, r), e = o.call(this), e.isEnabled = !0, e.isDragging = !1, e.isDown = !1, e.position = {}, e.downPoint = {}, e.dragPoint = {
|
|
@@ -7838,8 +7852,8 @@ var Jt = {
|
|
|
7838
7852
|
}
|
|
7839
7853
|
}]), r;
|
|
7840
7854
|
}(Fn), el = /* @__PURE__ */ function(a) {
|
|
7841
|
-
|
|
7842
|
-
var o =
|
|
7855
|
+
R(r, a);
|
|
7856
|
+
var o = F(r);
|
|
7843
7857
|
function r(t) {
|
|
7844
7858
|
var e;
|
|
7845
7859
|
L(this, r), e = o.call(this, t), _(y(e), "onCancelClick", function(s) {
|
|
@@ -7873,7 +7887,7 @@ var Jt = {
|
|
|
7873
7887
|
var e = this;
|
|
7874
7888
|
this.initIcons(), this.on(ut, function() {
|
|
7875
7889
|
e.setAttr("data-state", "pause");
|
|
7876
|
-
}), this.on(
|
|
7890
|
+
}), this.on(pe, function() {
|
|
7877
7891
|
e.setAttr("data-state", "play");
|
|
7878
7892
|
});
|
|
7879
7893
|
}
|
|
@@ -7992,8 +8006,8 @@ var Jt = {
|
|
|
7992
8006
|
mouseleave: "onMouseLeave",
|
|
7993
8007
|
mousemove: "onMouseMove"
|
|
7994
8008
|
}, Qt = ["videoClick", "videoDbClick"], ei = /* @__PURE__ */ function(a) {
|
|
7995
|
-
|
|
7996
|
-
var o =
|
|
8009
|
+
R(r, a);
|
|
8010
|
+
var o = F(r);
|
|
7997
8011
|
function r() {
|
|
7998
8012
|
var t;
|
|
7999
8013
|
L(this, r);
|
|
@@ -8248,8 +8262,8 @@ var et = {
|
|
|
8248
8262
|
PLAYBACK: "playbackrate",
|
|
8249
8263
|
LIGHT: ""
|
|
8250
8264
|
}, ti = ["videoClick", "videoDbClick"], al = /* @__PURE__ */ function(a) {
|
|
8251
|
-
|
|
8252
|
-
var o =
|
|
8265
|
+
R(r, a);
|
|
8266
|
+
var o = F(r);
|
|
8253
8267
|
function r(t) {
|
|
8254
8268
|
var e;
|
|
8255
8269
|
return L(this, r), e = o.call(this, t), _(y(e), "onTouchStart", function(i) {
|
|
@@ -8684,8 +8698,8 @@ function vn(a) {
|
|
|
8684
8698
|
return !!(o === "INPUT" || o === "TEXTAREA" || a.isContentEditable);
|
|
8685
8699
|
}
|
|
8686
8700
|
var mn = /* @__PURE__ */ function(a) {
|
|
8687
|
-
|
|
8688
|
-
var o =
|
|
8701
|
+
R(r, a);
|
|
8702
|
+
var o = F(r);
|
|
8689
8703
|
function r() {
|
|
8690
8704
|
var t;
|
|
8691
8705
|
L(this, r);
|
|
@@ -8919,7 +8933,7 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
8919
8933
|
if (h === e) {
|
|
8920
8934
|
if (!g && !(n && d)) {
|
|
8921
8935
|
var v = n && p || c;
|
|
8922
|
-
typeof v == "function" ? c(i, this.player, n) : typeof v == "string" && typeof this[v] == "function" && this[v](i, this.player, n), this.emit(Kn,
|
|
8936
|
+
typeof v == "function" ? c(i, this.player, n) : typeof v == "string" && typeof this[v] == "function" && this[v](i, this.player, n), this.emit(Kn, ee({
|
|
8923
8937
|
key: s[l],
|
|
8924
8938
|
target: i.target,
|
|
8925
8939
|
isPress: n
|
|
@@ -8974,8 +8988,8 @@ function ll() {
|
|
|
8974
8988
|
`, "image/svg+xml").firstChild;
|
|
8975
8989
|
}
|
|
8976
8990
|
var ul = /* @__PURE__ */ function(a) {
|
|
8977
|
-
|
|
8978
|
-
var o =
|
|
8991
|
+
R(r, a);
|
|
8992
|
+
var o = F(r);
|
|
8979
8993
|
function r() {
|
|
8980
8994
|
return L(this, r), o.apply(this, arguments);
|
|
8981
8995
|
}
|
|
@@ -9224,8 +9238,8 @@ var ul = /* @__PURE__ */ function(a) {
|
|
|
9224
9238
|
POINT: "inner-focus-point",
|
|
9225
9239
|
HIGHLIGHT: "inner-focus-highlight"
|
|
9226
9240
|
}, hl = /* @__PURE__ */ function(a) {
|
|
9227
|
-
|
|
9228
|
-
var o =
|
|
9241
|
+
R(r, a);
|
|
9242
|
+
var o = F(r);
|
|
9229
9243
|
function r(t) {
|
|
9230
9244
|
var e;
|
|
9231
9245
|
return L(this, r), e = o.call(this, t), _(y(e), "onMoveOnly", function(i, n) {
|
|
@@ -9346,7 +9360,7 @@ var ul = /* @__PURE__ */ function(a) {
|
|
|
9346
9360
|
(!i || i.length === 0) && (i = [{
|
|
9347
9361
|
percent: 1
|
|
9348
9362
|
}]);
|
|
9349
|
-
var s =
|
|
9363
|
+
var s = ee(ee({
|
|
9350
9364
|
fragments: i
|
|
9351
9365
|
}, n), {}, {
|
|
9352
9366
|
actionCallback: function(u) {
|
|
@@ -9383,7 +9397,7 @@ var ul = /* @__PURE__ */ function(a) {
|
|
|
9383
9397
|
style: this.playerConfig.commonStyle || {}
|
|
9384
9398
|
}), z.device === "mobile" && (this.config.isDragingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.on(Ue, function() {
|
|
9385
9399
|
e.onMouseLeave();
|
|
9386
|
-
}), this.on(
|
|
9400
|
+
}), this.on(ge, function() {
|
|
9387
9401
|
e.onTimeupdate();
|
|
9388
9402
|
}), this.on(Pe, function() {
|
|
9389
9403
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
@@ -9635,8 +9649,8 @@ var ul = /* @__PURE__ */ function(a) {
|
|
|
9635
9649
|
}
|
|
9636
9650
|
}]), r;
|
|
9637
9651
|
}(W), Ze = /* @__PURE__ */ function(a) {
|
|
9638
|
-
|
|
9639
|
-
var o =
|
|
9652
|
+
R(r, a);
|
|
9653
|
+
var o = F(r);
|
|
9640
9654
|
function r() {
|
|
9641
9655
|
var t;
|
|
9642
9656
|
L(this, r);
|
|
@@ -9664,8 +9678,8 @@ var ul = /* @__PURE__ */ function(a) {
|
|
|
9664
9678
|
}
|
|
9665
9679
|
}]), r;
|
|
9666
9680
|
}(W), dl = /* @__PURE__ */ function(a) {
|
|
9667
|
-
|
|
9668
|
-
var o =
|
|
9681
|
+
R(r, a);
|
|
9682
|
+
var o = F(r);
|
|
9669
9683
|
function r() {
|
|
9670
9684
|
return L(this, r), o.apply(this, arguments);
|
|
9671
9685
|
}
|
|
@@ -9673,11 +9687,11 @@ var ul = /* @__PURE__ */ function(a) {
|
|
|
9673
9687
|
key: "afterCreate",
|
|
9674
9688
|
value: function() {
|
|
9675
9689
|
var e = this;
|
|
9676
|
-
|
|
9690
|
+
N(M(r.prototype), "afterCreate", this).call(this);
|
|
9677
9691
|
var i = this.player, n = this.config;
|
|
9678
9692
|
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([ut, vt, qe], function() {
|
|
9679
9693
|
e.animate(i.paused);
|
|
9680
|
-
}), this.on(
|
|
9694
|
+
}), this.on(pe, function() {
|
|
9681
9695
|
e.animate(i.paused);
|
|
9682
9696
|
}), this.animate(!0));
|
|
9683
9697
|
}
|
|
@@ -9723,7 +9737,7 @@ var ul = /* @__PURE__ */ function(a) {
|
|
|
9723
9737
|
}, {
|
|
9724
9738
|
key: "destroy",
|
|
9725
9739
|
value: function() {
|
|
9726
|
-
|
|
9740
|
+
N(M(r.prototype), "destroy", this).call(this), this.unbind(["touchend", "click"], this.btnClick);
|
|
9727
9741
|
}
|
|
9728
9742
|
}, {
|
|
9729
9743
|
key: "render",
|
|
@@ -9759,8 +9773,8 @@ function gl() {
|
|
|
9759
9773
|
</svg>`, "image/svg+xml").firstChild;
|
|
9760
9774
|
}
|
|
9761
9775
|
var pl = /* @__PURE__ */ function(a) {
|
|
9762
|
-
|
|
9763
|
-
var o =
|
|
9776
|
+
R(r, a);
|
|
9777
|
+
var o = F(r);
|
|
9764
9778
|
function r() {
|
|
9765
9779
|
return L(this, r), o.apply(this, arguments);
|
|
9766
9780
|
}
|
|
@@ -9832,8 +9846,8 @@ function ml() {
|
|
|
9832
9846
|
`, "image/svg+xml").firstChild;
|
|
9833
9847
|
}
|
|
9834
9848
|
var yl = /* @__PURE__ */ function(a) {
|
|
9835
|
-
|
|
9836
|
-
var o =
|
|
9849
|
+
R(r, a);
|
|
9850
|
+
var o = F(r);
|
|
9837
9851
|
function r() {
|
|
9838
9852
|
var t;
|
|
9839
9853
|
L(this, r);
|
|
@@ -9847,7 +9861,7 @@ var yl = /* @__PURE__ */ function(a) {
|
|
|
9847
9861
|
key: "afterCreate",
|
|
9848
9862
|
value: function() {
|
|
9849
9863
|
var e = this;
|
|
9850
|
-
|
|
9864
|
+
N(M(r.prototype), "afterCreate", this).call(this);
|
|
9851
9865
|
var i = this.config, n = this.playerConfig;
|
|
9852
9866
|
if (!i.disable) {
|
|
9853
9867
|
i.target && (this.playerConfig.fullscreenTarget = this.config.target);
|
|
@@ -9894,7 +9908,7 @@ var yl = /* @__PURE__ */ function(a) {
|
|
|
9894
9908
|
}, {
|
|
9895
9909
|
key: "destroy",
|
|
9896
9910
|
value: function() {
|
|
9897
|
-
|
|
9911
|
+
N(M(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", z.device === "mobile" ? "touchend" : "click", this.handleFullscreen), z.device === "mobile" && window.removeEventListener("orientationchange", this._onOrientationChange);
|
|
9898
9912
|
}
|
|
9899
9913
|
}, {
|
|
9900
9914
|
key: "initIcons",
|
|
@@ -9968,8 +9982,8 @@ var yl = /* @__PURE__ */ function(a) {
|
|
|
9968
9982
|
}
|
|
9969
9983
|
}]), r;
|
|
9970
9984
|
}(Ze), _l = /* @__PURE__ */ function(a) {
|
|
9971
|
-
|
|
9972
|
-
var o =
|
|
9985
|
+
R(r, a);
|
|
9986
|
+
var o = F(r);
|
|
9973
9987
|
function r(t) {
|
|
9974
9988
|
var e;
|
|
9975
9989
|
return L(this, r), e = o.call(this, t), e.isActiving = !1, e;
|
|
@@ -9995,7 +10009,7 @@ var yl = /* @__PURE__ */ function(a) {
|
|
|
9995
10009
|
key: "afterCreate",
|
|
9996
10010
|
value: function() {
|
|
9997
10011
|
var e = this, i = this.player.controls.config.mode;
|
|
9998
|
-
this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Ue, Pe,
|
|
10012
|
+
this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Ue, Pe, ge], function(n) {
|
|
9999
10013
|
n.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
10000
10014
|
}), this.on(Xe, function() {
|
|
10001
10015
|
e.onTimeUpdate(!0);
|
|
@@ -10118,8 +10132,8 @@ var yl = /* @__PURE__ */ function(a) {
|
|
|
10118
10132
|
}
|
|
10119
10133
|
}]), r;
|
|
10120
10134
|
}(W), kl = /* @__PURE__ */ function(a) {
|
|
10121
|
-
|
|
10122
|
-
var o =
|
|
10135
|
+
R(r, a);
|
|
10136
|
+
var o = F(r);
|
|
10123
10137
|
function r() {
|
|
10124
10138
|
var t;
|
|
10125
10139
|
L(this, r);
|
|
@@ -10173,7 +10187,7 @@ var yl = /* @__PURE__ */ function(a) {
|
|
|
10173
10187
|
return D(r, [{
|
|
10174
10188
|
key: "afterCreate",
|
|
10175
10189
|
value: function() {
|
|
10176
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ue, this._onDurationChange), this.on(Ae, this._onLoadedData), this.on(
|
|
10190
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ue, this._onDurationChange), this.on(Ae, this._onLoadedData), this.on(ge, this._onTimeupdate), this.on(Mt, this._onSeeking), this.on(pe, this._onPlay);
|
|
10177
10191
|
}
|
|
10178
10192
|
}, {
|
|
10179
10193
|
key: "setConfig",
|
|
@@ -10277,8 +10291,8 @@ function bl() {
|
|
|
10277
10291
|
`, "image/svg+xml").firstChild;
|
|
10278
10292
|
}
|
|
10279
10293
|
var Tl = /* @__PURE__ */ function(a) {
|
|
10280
|
-
|
|
10281
|
-
var o =
|
|
10294
|
+
R(r, a);
|
|
10295
|
+
var o = F(r);
|
|
10282
10296
|
function r() {
|
|
10283
10297
|
var t;
|
|
10284
10298
|
L(this, r);
|
|
@@ -10486,8 +10500,8 @@ function El() {
|
|
|
10486
10500
|
`, "image/svg+xml").firstChild;
|
|
10487
10501
|
}
|
|
10488
10502
|
var Sl = /* @__PURE__ */ function(a) {
|
|
10489
|
-
|
|
10490
|
-
var o =
|
|
10503
|
+
R(r, a);
|
|
10504
|
+
var o = F(r);
|
|
10491
10505
|
function r(t) {
|
|
10492
10506
|
var e;
|
|
10493
10507
|
return L(this, r), e = o.call(this, t), e.rotateDeg = e.config.rotateDeg || 0, e;
|
|
@@ -10497,7 +10511,7 @@ var Sl = /* @__PURE__ */ function(a) {
|
|
|
10497
10511
|
value: function() {
|
|
10498
10512
|
var e = this;
|
|
10499
10513
|
if (!this.config.disable) {
|
|
10500
|
-
|
|
10514
|
+
N(M(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(Be, function() {
|
|
10501
10515
|
e.rotateDeg && e.config.innerRotate && f.setTimeout(e, function() {
|
|
10502
10516
|
e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
|
|
10503
10517
|
}, 100);
|
|
@@ -10509,7 +10523,7 @@ var Sl = /* @__PURE__ */ function(a) {
|
|
|
10509
10523
|
}, {
|
|
10510
10524
|
key: "destroy",
|
|
10511
10525
|
value: function() {
|
|
10512
|
-
|
|
10526
|
+
N(M(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick);
|
|
10513
10527
|
}
|
|
10514
10528
|
}, {
|
|
10515
10529
|
key: "onBtnClick",
|
|
@@ -10531,9 +10545,9 @@ var Sl = /* @__PURE__ */ function(a) {
|
|
|
10531
10545
|
webKitTransform: S,
|
|
10532
10546
|
height: v,
|
|
10533
10547
|
width: d
|
|
10534
|
-
},
|
|
10535
|
-
Object.keys(b).map(function(
|
|
10536
|
-
|
|
10548
|
+
}, B = i ? h : u, x = i ? n.getPlugin("poster") : null;
|
|
10549
|
+
Object.keys(b).map(function(H) {
|
|
10550
|
+
B.style[H] = b[H], x && x.root && (x.root.style[H] = b[H]);
|
|
10537
10551
|
});
|
|
10538
10552
|
}
|
|
10539
10553
|
}, {
|
|
@@ -10603,8 +10617,8 @@ var tt = {
|
|
|
10603
10617
|
INLINE: "inline",
|
|
10604
10618
|
FULLSCREEN: "fullscreen"
|
|
10605
10619
|
}, Pl = /* @__PURE__ */ function(a) {
|
|
10606
|
-
|
|
10607
|
-
var o =
|
|
10620
|
+
R(r, a);
|
|
10621
|
+
var o = F(r);
|
|
10608
10622
|
function r() {
|
|
10609
10623
|
var t;
|
|
10610
10624
|
L(this, r);
|
|
@@ -10633,7 +10647,7 @@ var tt = {
|
|
|
10633
10647
|
key: "afterCreate",
|
|
10634
10648
|
value: function() {
|
|
10635
10649
|
var e = this;
|
|
10636
|
-
this.isPIPAvailable() && (
|
|
10650
|
+
this.isPIPAvailable() && (N(M(r.prototype), "afterCreate", this).call(this), this.pMode = tt.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Nt, function() {
|
|
10637
10651
|
e.config.showIcon && (f.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
10638
10652
|
}));
|
|
10639
10653
|
}
|
|
@@ -10718,7 +10732,7 @@ var tt = {
|
|
|
10718
10732
|
d === i.root && S.append(`
|
|
10719
10733
|
.xgplayer{width: 100%!important; height: 100%!important;}
|
|
10720
10734
|
`);
|
|
10721
|
-
h.document.head.append(S), h.document.body.append(d), h.addEventListener("pagehide", function(
|
|
10735
|
+
h.document.head.append(S), h.document.body.append(d), h.addEventListener("pagehide", function(B) {
|
|
10722
10736
|
v && (C ? v.insertBefore(d, C) : m ? v.insertBefore(d, m.nextSibling) : v.appendChild(d)), e.leavePIPCallback();
|
|
10723
10737
|
}, {
|
|
10724
10738
|
once: !0
|
|
@@ -10765,7 +10779,7 @@ var tt = {
|
|
|
10765
10779
|
}, {
|
|
10766
10780
|
key: "destroy",
|
|
10767
10781
|
value: function() {
|
|
10768
|
-
|
|
10782
|
+
N(M(r.prototype), "destroy", this).call(this);
|
|
10769
10783
|
var e = this.player;
|
|
10770
10784
|
e.media.removeEventListener("enterpictureinpicture", this.enterPIPCallback), e.media.removeEventListener("leavepictureinpicture", this.leavePIPCallback), r.checkWebkitSetPresentationMode(e.media) && e.media.removeEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged), this.exitPIP(), this.unbind("click", this.btnClick);
|
|
10771
10785
|
}
|
|
@@ -10812,8 +10826,8 @@ function Al() {
|
|
|
10812
10826
|
`, "image/svg+xml").firstChild;
|
|
10813
10827
|
}
|
|
10814
10828
|
var Ll = /* @__PURE__ */ function(a) {
|
|
10815
|
-
|
|
10816
|
-
var o =
|
|
10829
|
+
R(r, a);
|
|
10830
|
+
var o = F(r);
|
|
10817
10831
|
function r(t) {
|
|
10818
10832
|
var e;
|
|
10819
10833
|
return L(this, r), e = o.call(this, t), _(y(e), "playNext", function(i) {
|
|
@@ -10885,67 +10899,67 @@ var Ll = /* @__PURE__ */ function(a) {
|
|
|
10885
10899
|
a.exports = t();
|
|
10886
10900
|
})(Ca, function() {
|
|
10887
10901
|
return function r(t, e, i) {
|
|
10888
|
-
var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), g = function(
|
|
10889
|
-
return String(
|
|
10902
|
+
var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), g = function(O) {
|
|
10903
|
+
return String(O);
|
|
10890
10904
|
}, p = n.Blob || n.MozBlob || n.WebKitBlob || g, d = e || "download", v, m;
|
|
10891
10905
|
if (p = p.call ? p.bind(n) : Blob, String(this) === "true" && (u = [u, l], l = u[0], u = u[1]), c && c.length < 2048 && (d = c.split("/").pop().split("?")[0], h.href = c, h.href.indexOf(c) !== -1)) {
|
|
10892
10906
|
var C = new XMLHttpRequest();
|
|
10893
|
-
return C.open("GET", c, !0), C.responseType = "blob", C.onload = function(
|
|
10894
|
-
r(
|
|
10907
|
+
return C.open("GET", c, !0), C.responseType = "blob", C.onload = function(O) {
|
|
10908
|
+
r(O.target.response, d, s);
|
|
10895
10909
|
}, setTimeout(function() {
|
|
10896
10910
|
C.send();
|
|
10897
10911
|
}, 0), C;
|
|
10898
10912
|
}
|
|
10899
10913
|
if (/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u))
|
|
10900
10914
|
if (u.length > 1024 * 1024 * 1.999 && p !== g)
|
|
10901
|
-
u =
|
|
10915
|
+
u = x(u), l = u.type || s;
|
|
10902
10916
|
else
|
|
10903
10917
|
return navigator.msSaveBlob ? (
|
|
10904
10918
|
// IE10 can't do a[download], only Blobs:
|
|
10905
|
-
navigator.msSaveBlob(
|
|
10906
|
-
) :
|
|
10919
|
+
navigator.msSaveBlob(x(u), d)
|
|
10920
|
+
) : H(u);
|
|
10907
10921
|
else if (/([\x80-\xff])/.test(u)) {
|
|
10908
|
-
var S = 0, b = new Uint8Array(u.length),
|
|
10909
|
-
for (S; S <
|
|
10922
|
+
var S = 0, b = new Uint8Array(u.length), B = b.length;
|
|
10923
|
+
for (S; S < B; ++S)
|
|
10910
10924
|
b[S] = u.charCodeAt(S);
|
|
10911
10925
|
u = new p([b], { type: l });
|
|
10912
10926
|
}
|
|
10913
10927
|
v = u instanceof p ? u : new p([u], { type: l });
|
|
10914
|
-
function O
|
|
10915
|
-
var
|
|
10916
|
-
for (
|
|
10917
|
-
Te[
|
|
10928
|
+
function x(O) {
|
|
10929
|
+
var J = O.split(/[:;,]/), q = J[1], A = J[2] == "base64" ? atob : decodeURIComponent, ie = A(J.pop()), oe = ie.length, he = 0, Te = new Uint8Array(oe);
|
|
10930
|
+
for (he; he < oe; ++he)
|
|
10931
|
+
Te[he] = ie.charCodeAt(he);
|
|
10918
10932
|
return new p([Te], { type: q });
|
|
10919
10933
|
}
|
|
10920
|
-
function
|
|
10934
|
+
function H(O, J) {
|
|
10921
10935
|
if ("download" in h)
|
|
10922
|
-
return h.href =
|
|
10923
|
-
h.click(), document.body.removeChild(h),
|
|
10936
|
+
return h.href = O, h.setAttribute("download", d), h.className = "download-js-link", h.innerHTML = "downloading...", h.style.display = "none", document.body.appendChild(h), setTimeout(function() {
|
|
10937
|
+
h.click(), document.body.removeChild(h), J === !0 && setTimeout(function() {
|
|
10924
10938
|
n.URL.revokeObjectURL(h.href);
|
|
10925
10939
|
}, 250);
|
|
10926
10940
|
}, 66), !0;
|
|
10927
10941
|
if (/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))
|
|
10928
|
-
return /^data:/.test(
|
|
10942
|
+
return /^data:/.test(O) && (O = "data:" + O.replace(/^data:([\w\/\-\+]+)/, s)), window.open(O) || confirm(`Displaying New Document
|
|
10929
10943
|
|
|
10930
|
-
Use Save As... to download, then click back to return to this page.`) && (location.href =
|
|
10944
|
+
Use Save As... to download, then click back to return to this page.`) && (location.href = O), !0;
|
|
10931
10945
|
var q = document.createElement("iframe");
|
|
10932
|
-
document.body.appendChild(q), !
|
|
10946
|
+
document.body.appendChild(q), !J && /^data:/.test(O) && (O = "data:" + O.replace(/^data:([\w\/\-\+]+)/, s)), q.src = O, setTimeout(function() {
|
|
10933
10947
|
document.body.removeChild(q);
|
|
10934
10948
|
}, 333);
|
|
10935
10949
|
}
|
|
10936
10950
|
if (navigator.msSaveBlob)
|
|
10937
10951
|
return navigator.msSaveBlob(v, d);
|
|
10938
10952
|
if (n.URL)
|
|
10939
|
-
|
|
10953
|
+
H(n.URL.createObjectURL(v), !0);
|
|
10940
10954
|
else {
|
|
10941
10955
|
if (typeof v == "string" || v.constructor === g)
|
|
10942
10956
|
try {
|
|
10943
|
-
return
|
|
10957
|
+
return H("data:" + l + ";base64," + n.btoa(v));
|
|
10944
10958
|
} catch {
|
|
10945
|
-
return
|
|
10959
|
+
return H("data:" + l + "," + encodeURIComponent(v));
|
|
10946
10960
|
}
|
|
10947
|
-
m = new FileReader(), m.onload = function(
|
|
10948
|
-
|
|
10961
|
+
m = new FileReader(), m.onload = function(O) {
|
|
10962
|
+
H(this.result);
|
|
10949
10963
|
}, m.readAsDataURL(v);
|
|
10950
10964
|
}
|
|
10951
10965
|
return !0;
|
|
@@ -10972,8 +10986,8 @@ function Rl() {
|
|
|
10972
10986
|
`, "image/svg+xml").firstChild;
|
|
10973
10987
|
}
|
|
10974
10988
|
var Fl = /* @__PURE__ */ function(a) {
|
|
10975
|
-
|
|
10976
|
-
var o =
|
|
10989
|
+
R(r, a);
|
|
10990
|
+
var o = F(r);
|
|
10977
10991
|
function r(t) {
|
|
10978
10992
|
var e;
|
|
10979
10993
|
return L(this, r), e = o.call(this, t), _(y(e), "download", function(i) {
|
|
@@ -10991,7 +11005,7 @@ var Fl = /* @__PURE__ */ function(a) {
|
|
|
10991
11005
|
return D(r, [{
|
|
10992
11006
|
key: "afterCreate",
|
|
10993
11007
|
value: function() {
|
|
10994
|
-
|
|
11008
|
+
N(M(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.appendChild(".xgplayer-icon", this.icons.download), this._handler = this.hook("click", this.download, {
|
|
10995
11009
|
pre: function(i) {
|
|
10996
11010
|
i.preventDefault(), i.stopPropagation();
|
|
10997
11011
|
}
|
|
@@ -11016,7 +11030,7 @@ var Fl = /* @__PURE__ */ function(a) {
|
|
|
11016
11030
|
}, {
|
|
11017
11031
|
key: "destroy",
|
|
11018
11032
|
value: function() {
|
|
11019
|
-
|
|
11033
|
+
N(M(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.download), window.clearTimeout(this.timer), this.timer = null;
|
|
11020
11034
|
}
|
|
11021
11035
|
}, {
|
|
11022
11036
|
key: "render",
|
|
@@ -11044,8 +11058,8 @@ var Fl = /* @__PURE__ */ function(a) {
|
|
|
11044
11058
|
}
|
|
11045
11059
|
}]), r;
|
|
11046
11060
|
}(Ze), Ml = /* @__PURE__ */ function(a) {
|
|
11047
|
-
|
|
11048
|
-
var o =
|
|
11061
|
+
R(r, a);
|
|
11062
|
+
var o = F(r);
|
|
11049
11063
|
function r() {
|
|
11050
11064
|
return L(this, r), o.apply(this, arguments);
|
|
11051
11065
|
}
|
|
@@ -11057,7 +11071,7 @@ var Fl = /* @__PURE__ */ function(a) {
|
|
|
11057
11071
|
}, {
|
|
11058
11072
|
key: "afterCreate",
|
|
11059
11073
|
value: function() {
|
|
11060
|
-
|
|
11074
|
+
N(M(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.screenshotIcon);
|
|
11061
11075
|
var e = this.config;
|
|
11062
11076
|
this.initSize = function(i) {
|
|
11063
11077
|
e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
|
|
@@ -11114,8 +11128,8 @@ var Fl = /* @__PURE__ */ function(a) {
|
|
|
11114
11128
|
d = u.media.canvas;
|
|
11115
11129
|
else {
|
|
11116
11130
|
n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), d = n.canvas, v = n.canvasCtx;
|
|
11117
|
-
var m = u.media.videoWidth / u.media.videoHeight, C = d.width / d.height, S = 0, b = 0,
|
|
11118
|
-
m > C ? (
|
|
11131
|
+
var m = u.media.videoWidth / u.media.videoHeight, C = d.width / d.height, S = 0, b = 0, B = u.media.videoWidth, x = u.media.videoHeight, H, O, J, q;
|
|
11132
|
+
m > C ? (J = d.width, q = d.width / m, H = 0, O = Math.round((d.height - q) / 2)) : m === C ? (J = d.width, q = d.height, H = 0, O = 0) : m < C && (J = d.height * m, q = d.height, H = Math.round((d.width - J) / 2), O = 0), v.drawImage(u.media, S, b, B, x, H, O, J, q);
|
|
11119
11133
|
}
|
|
11120
11134
|
var A = d.toDataURL(h, c).replace(h, "image/octet-stream");
|
|
11121
11135
|
A = A.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), g(A);
|
|
@@ -11131,7 +11145,7 @@ var Fl = /* @__PURE__ */ function(a) {
|
|
|
11131
11145
|
}, {
|
|
11132
11146
|
key: "destroy",
|
|
11133
11147
|
value: function() {
|
|
11134
|
-
|
|
11148
|
+
N(M(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(Be, this.initSize);
|
|
11135
11149
|
}
|
|
11136
11150
|
}, {
|
|
11137
11151
|
key: "render",
|
|
@@ -11253,8 +11267,8 @@ function Bl(a, o) {
|
|
|
11253
11267
|
return a === we.SIDE ? o === Y.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
11254
11268
|
}
|
|
11255
11269
|
var je = z.device === "mobile", Rt = /* @__PURE__ */ function(a) {
|
|
11256
|
-
|
|
11257
|
-
var o =
|
|
11270
|
+
R(r, a);
|
|
11271
|
+
var o = F(r);
|
|
11258
11272
|
function r(t) {
|
|
11259
11273
|
var e;
|
|
11260
11274
|
return L(this, r), e = o.call(this, t), _(y(e), "onEnter", function(i) {
|
|
@@ -11425,8 +11439,8 @@ var je = z.device === "mobile", Rt = /* @__PURE__ */ function(a) {
|
|
|
11425
11439
|
}
|
|
11426
11440
|
}]), r;
|
|
11427
11441
|
}(W), Hl = /* @__PURE__ */ function(a) {
|
|
11428
|
-
|
|
11429
|
-
var o =
|
|
11442
|
+
R(r, a);
|
|
11443
|
+
var o = F(r);
|
|
11430
11444
|
function r(t) {
|
|
11431
11445
|
var e;
|
|
11432
11446
|
return L(this, r), e = o.call(this, t), e.curTime = 0, e.isPaused = !0, e;
|
|
@@ -11443,7 +11457,7 @@ var je = z.device === "mobile", Rt = /* @__PURE__ */ function(a) {
|
|
|
11443
11457
|
key: "afterCreate",
|
|
11444
11458
|
value: function() {
|
|
11445
11459
|
var e = this;
|
|
11446
|
-
|
|
11460
|
+
N(M(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
|
|
11447
11461
|
e.changeDefinitionList(i);
|
|
11448
11462
|
}), this.on(bi, function(i) {
|
|
11449
11463
|
e.renderItemList(e.config.list, i.to);
|
|
@@ -11473,13 +11487,13 @@ var je = z.device === "mobile", Rt = /* @__PURE__ */ function(a) {
|
|
|
11473
11487
|
c.selected = !1;
|
|
11474
11488
|
});
|
|
11475
11489
|
var l = 0, u = i.map(function(c, h) {
|
|
11476
|
-
var g =
|
|
11490
|
+
var g = ee(ee({}, c), {}, {
|
|
11477
11491
|
showText: e.getTextByLang(c) || c.definition,
|
|
11478
11492
|
selected: !1
|
|
11479
11493
|
});
|
|
11480
11494
|
return (c.selected || c.definition && c.definition == s) && (g.selected = !0, l = h), g;
|
|
11481
11495
|
});
|
|
11482
|
-
|
|
11496
|
+
N(M(r.prototype), "renderItemList", this).call(this, u, l);
|
|
11483
11497
|
}
|
|
11484
11498
|
}, {
|
|
11485
11499
|
key: "changeDefinitionList",
|
|
@@ -11497,7 +11511,7 @@ var je = z.device === "mobile", Rt = /* @__PURE__ */ function(a) {
|
|
|
11497
11511
|
key: "onItemClick",
|
|
11498
11512
|
value: function(e, i) {
|
|
11499
11513
|
var n = this.player.definitionList;
|
|
11500
|
-
|
|
11514
|
+
N(M(r.prototype), "onItemClick", this).apply(this, arguments), this.emitUserAction(e, "change_definition", {
|
|
11501
11515
|
from: i.from,
|
|
11502
11516
|
to: i.to
|
|
11503
11517
|
});
|
|
@@ -11513,7 +11527,7 @@ var je = z.device === "mobile", Rt = /* @__PURE__ */ function(a) {
|
|
|
11513
11527
|
}, {
|
|
11514
11528
|
key: "defaultConfig",
|
|
11515
11529
|
get: function() {
|
|
11516
|
-
return
|
|
11530
|
+
return ee(ee({}, Rt.defaultConfig), {}, {
|
|
11517
11531
|
position: Y.CONTROLS_RIGHT,
|
|
11518
11532
|
index: 3,
|
|
11519
11533
|
list: [],
|
|
@@ -11526,8 +11540,8 @@ var je = z.device === "mobile", Rt = /* @__PURE__ */ function(a) {
|
|
|
11526
11540
|
}
|
|
11527
11541
|
}]), r;
|
|
11528
11542
|
}(Rt), Ul = /* @__PURE__ */ function(a) {
|
|
11529
|
-
|
|
11530
|
-
var o =
|
|
11543
|
+
R(r, a);
|
|
11544
|
+
var o = F(r);
|
|
11531
11545
|
function r(t) {
|
|
11532
11546
|
var e;
|
|
11533
11547
|
return L(this, r), e = o.call(this, t), e.curRate = 1, e;
|
|
@@ -11547,19 +11561,19 @@ var je = z.device === "mobile", Rt = /* @__PURE__ */ function(a) {
|
|
|
11547
11561
|
key: "afterCreate",
|
|
11548
11562
|
value: function() {
|
|
11549
11563
|
var e = this;
|
|
11550
|
-
|
|
11564
|
+
N(M(r.prototype), "afterCreate", this).call(this), this.on(Bn, function() {
|
|
11551
11565
|
e.curValue !== e.player.playbackRate && e.renderItemList();
|
|
11552
11566
|
}), this.renderItemList();
|
|
11553
11567
|
}
|
|
11554
11568
|
}, {
|
|
11555
11569
|
key: "show",
|
|
11556
11570
|
value: function(e) {
|
|
11557
|
-
!this.config.list || this.config.list.length === 0 ||
|
|
11571
|
+
!this.config.list || this.config.list.length === 0 || N(M(r.prototype), "show", this).call(this);
|
|
11558
11572
|
}
|
|
11559
11573
|
}, {
|
|
11560
11574
|
key: "onItemClick",
|
|
11561
11575
|
value: function(e, i) {
|
|
11562
|
-
|
|
11576
|
+
N(M(r.prototype), "onItemClick", this).call(this, e, i);
|
|
11563
11577
|
var n = e.delegateTarget, s = Number(n.getAttribute("rate"));
|
|
11564
11578
|
if (!s || s === this.curValue)
|
|
11565
11579
|
return !1;
|
|
@@ -11584,7 +11598,7 @@ var je = z.device === "mobile", Rt = /* @__PURE__ */ function(a) {
|
|
|
11584
11598
|
};
|
|
11585
11599
|
return c.rate === i && (c.selected = !0, n = u), c.showText = e.getTextByLang(l), c;
|
|
11586
11600
|
});
|
|
11587
|
-
|
|
11601
|
+
N(M(r.prototype), "renderItemList", this).call(this, s, n);
|
|
11588
11602
|
}
|
|
11589
11603
|
}, {
|
|
11590
11604
|
key: "changeCurrentText",
|
|
@@ -11597,7 +11611,7 @@ var je = z.device === "mobile", Rt = /* @__PURE__ */ function(a) {
|
|
|
11597
11611
|
}, {
|
|
11598
11612
|
key: "destroy",
|
|
11599
11613
|
value: function() {
|
|
11600
|
-
|
|
11614
|
+
N(M(r.prototype), "destroy", this).call(this);
|
|
11601
11615
|
}
|
|
11602
11616
|
}], [{
|
|
11603
11617
|
key: "pluginName",
|
|
@@ -11607,7 +11621,7 @@ var je = z.device === "mobile", Rt = /* @__PURE__ */ function(a) {
|
|
|
11607
11621
|
}, {
|
|
11608
11622
|
key: "defaultConfig",
|
|
11609
11623
|
get: function() {
|
|
11610
|
-
return
|
|
11624
|
+
return ee(ee({}, Rt.defaultConfig), {}, {
|
|
11611
11625
|
position: Y.CONTROLS_RIGHT,
|
|
11612
11626
|
index: 4,
|
|
11613
11627
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
@@ -11631,8 +11645,8 @@ function Vl() {
|
|
|
11631
11645
|
`, "image/svg+xml").firstChild;
|
|
11632
11646
|
}
|
|
11633
11647
|
var _n = /* @__PURE__ */ function(a) {
|
|
11634
|
-
|
|
11635
|
-
var o =
|
|
11648
|
+
R(r, a);
|
|
11649
|
+
var o = F(r);
|
|
11636
11650
|
function r() {
|
|
11637
11651
|
return L(this, r), o.apply(this, arguments);
|
|
11638
11652
|
}
|
|
@@ -11645,7 +11659,7 @@ var _n = /* @__PURE__ */ function(a) {
|
|
|
11645
11659
|
key: "afterCreate",
|
|
11646
11660
|
value: function() {
|
|
11647
11661
|
var e = this;
|
|
11648
|
-
|
|
11662
|
+
N(M(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(xt, function(i) {
|
|
11649
11663
|
e.animate(i);
|
|
11650
11664
|
}), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
|
|
11651
11665
|
pre: function(n) {
|
|
@@ -11696,7 +11710,7 @@ var _n = /* @__PURE__ */ function(a) {
|
|
|
11696
11710
|
}, {
|
|
11697
11711
|
key: "destroy",
|
|
11698
11712
|
value: function() {
|
|
11699
|
-
|
|
11713
|
+
N(M(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.btnClick);
|
|
11700
11714
|
}
|
|
11701
11715
|
}, {
|
|
11702
11716
|
key: "render",
|
|
@@ -11725,8 +11739,8 @@ var _n = /* @__PURE__ */ function(a) {
|
|
|
11725
11739
|
}
|
|
11726
11740
|
}]), r;
|
|
11727
11741
|
}(Ze), jl = /* @__PURE__ */ function(a) {
|
|
11728
|
-
|
|
11729
|
-
var o =
|
|
11742
|
+
R(r, a);
|
|
11743
|
+
var o = F(r);
|
|
11730
11744
|
function r() {
|
|
11731
11745
|
return L(this, r), o.apply(this, arguments);
|
|
11732
11746
|
}
|
|
@@ -11786,8 +11800,8 @@ var _n = /* @__PURE__ */ function(a) {
|
|
|
11786
11800
|
}
|
|
11787
11801
|
}]), r;
|
|
11788
11802
|
}(W), $l = /* @__PURE__ */ function(a) {
|
|
11789
|
-
|
|
11790
|
-
var o =
|
|
11803
|
+
R(r, a);
|
|
11804
|
+
var o = F(r);
|
|
11791
11805
|
function r() {
|
|
11792
11806
|
return L(this, r), o.apply(this, arguments);
|
|
11793
11807
|
}
|
|
@@ -12040,8 +12054,8 @@ var nt = {
|
|
|
12040
12054
|
mouseover: "onProgressMouseOver",
|
|
12041
12055
|
mouseenter: "onProgressMouseOver"
|
|
12042
12056
|
}, Gl = /* @__PURE__ */ function(a) {
|
|
12043
|
-
|
|
12044
|
-
var o =
|
|
12057
|
+
R(r, a);
|
|
12058
|
+
var o = F(r);
|
|
12045
12059
|
function r(t) {
|
|
12046
12060
|
var e;
|
|
12047
12061
|
return L(this, r), e = o.call(this, t), _(y(e), "onMousemove", function(i) {
|
|
@@ -12315,8 +12329,8 @@ var nt = {
|
|
|
12315
12329
|
}
|
|
12316
12330
|
}]), r;
|
|
12317
12331
|
}(W), Kl = /* @__PURE__ */ function(a) {
|
|
12318
|
-
|
|
12319
|
-
var o =
|
|
12332
|
+
R(r, a);
|
|
12333
|
+
var o = F(r);
|
|
12320
12334
|
function r(t) {
|
|
12321
12335
|
var e;
|
|
12322
12336
|
return L(this, r), e = o.call(this, t), e.ratio = 1, e.interval = null, e._preloadMark = {}, e;
|
|
@@ -12380,20 +12394,20 @@ var nt = {
|
|
|
12380
12394
|
p = p > l ? l : p;
|
|
12381
12395
|
var d = p < u * c ? 0 : Math.ceil(p / (u * c)) - 1, v = p - d * (c * u), m = v > 0 ? Math.ceil(v / c) - 1 : 0, C = v > 0 ? v - m * c - 1 : 0, S = 0, b = 0;
|
|
12382
12396
|
if (i && n) {
|
|
12383
|
-
var
|
|
12384
|
-
|
|
12397
|
+
var B = i / n;
|
|
12398
|
+
B < h / g ? (b = n, S = b * (h / g)) : (S = i, b = S / (h / g));
|
|
12385
12399
|
} else
|
|
12386
12400
|
n ? i || (b = n || g, S = b * (h / g)) : (S = i || h, b = S / (h / g));
|
|
12387
|
-
var
|
|
12401
|
+
var x = this.getUrlByIndex(d);
|
|
12388
12402
|
return {
|
|
12389
12403
|
urlIndex: d,
|
|
12390
12404
|
rowIndex: m,
|
|
12391
12405
|
colIndex: C,
|
|
12392
|
-
url:
|
|
12406
|
+
url: x,
|
|
12393
12407
|
height: b,
|
|
12394
12408
|
width: S,
|
|
12395
12409
|
style: {
|
|
12396
|
-
backgroundImage: "url(".concat(
|
|
12410
|
+
backgroundImage: "url(".concat(x, ")"),
|
|
12397
12411
|
backgroundSize: "".concat(S * c, "px auto"),
|
|
12398
12412
|
backgroundPosition: "-".concat(C * S, "px -").concat(m * b, "px"),
|
|
12399
12413
|
width: "".concat(S, "px"),
|
|
@@ -12453,8 +12467,8 @@ function ii(a) {
|
|
|
12453
12467
|
return a ? "background:".concat(a, ";") : "";
|
|
12454
12468
|
}
|
|
12455
12469
|
var Yl = /* @__PURE__ */ function(a) {
|
|
12456
|
-
|
|
12457
|
-
var o =
|
|
12470
|
+
R(r, a);
|
|
12471
|
+
var o = F(r);
|
|
12458
12472
|
function r() {
|
|
12459
12473
|
var t;
|
|
12460
12474
|
L(this, r);
|
|
@@ -12482,7 +12496,7 @@ var Yl = /* @__PURE__ */ function(a) {
|
|
|
12482
12496
|
key: "afterCreate",
|
|
12483
12497
|
value: function() {
|
|
12484
12498
|
var e = this;
|
|
12485
|
-
this.root && (this.on(
|
|
12499
|
+
this.root && (this.on(ge, this.onTimeupdate), this.on(qe, function() {
|
|
12486
12500
|
e.reset();
|
|
12487
12501
|
}));
|
|
12488
12502
|
}
|
|
@@ -12556,22 +12570,22 @@ function ql() {
|
|
|
12556
12570
|
}
|
|
12557
12571
|
}
|
|
12558
12572
|
var Ct = null, Zl = /* @__PURE__ */ function(a) {
|
|
12559
|
-
|
|
12560
|
-
var o =
|
|
12573
|
+
R(r, a);
|
|
12574
|
+
var o = F(r);
|
|
12561
12575
|
function r() {
|
|
12562
12576
|
var t;
|
|
12563
12577
|
L(this, r);
|
|
12564
12578
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12565
12579
|
i[n] = arguments[n];
|
|
12566
12580
|
return t = o.call.apply(o, [this].concat(i)), _(y(t), "onLoadedData", function(s) {
|
|
12567
|
-
t.player && (t._frameCount = t.config.startFrameCount, t.stop(), t.renderOnTimeupdate(s), t.off(
|
|
12581
|
+
t.player && (t._frameCount = t.config.startFrameCount, t.stop(), t.renderOnTimeupdate(s), t.off(ge, t.renderOnTimeupdate), t.on(ge, t.renderOnTimeupdate));
|
|
12568
12582
|
}), _(y(t), "onVisibilitychange", function(s) {
|
|
12569
12583
|
document.visibilityState === "visible" ? t._checkIfCanStart() && t.start() : document.visibilityState === "hidden" && t.stop();
|
|
12570
12584
|
}), _(y(t), "renderOnTimeupdate", function(s) {
|
|
12571
12585
|
if (t._frameCount > 0)
|
|
12572
12586
|
t.renderOnce(), t._frameCount--;
|
|
12573
12587
|
else {
|
|
12574
|
-
t._isLoaded = !0, t.off(
|
|
12588
|
+
t._isLoaded = !0, t.off(ge, t.renderOnTimeupdate);
|
|
12575
12589
|
var l = t.config.startInterval;
|
|
12576
12590
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
12577
12591
|
}
|
|
@@ -12600,7 +12614,7 @@ var Ct = null, Zl = /* @__PURE__ */ function(a) {
|
|
|
12600
12614
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
12601
12615
|
}), s !== rt.POSTER && (s !== rt.FIRST_FRAME && (this.on(qe, function() {
|
|
12602
12616
|
e.stop();
|
|
12603
|
-
}), this.on(
|
|
12617
|
+
}), this.on(pe, function() {
|
|
12604
12618
|
var u = e.config.startInterval;
|
|
12605
12619
|
e._checkIfCanStart() && e.start(0, u);
|
|
12606
12620
|
}), this.on(ut, function() {
|
|
@@ -12833,8 +12847,8 @@ var Ct = null, Zl = /* @__PURE__ */ function(a) {
|
|
|
12833
12847
|
LIVE_TIP: "直播"
|
|
12834
12848
|
}
|
|
12835
12849
|
}, ht = "info", ni = Jn, Ql = /* @__PURE__ */ function(a) {
|
|
12836
|
-
|
|
12837
|
-
var o =
|
|
12850
|
+
R(r, a);
|
|
12851
|
+
var o = F(r);
|
|
12838
12852
|
function r() {
|
|
12839
12853
|
var t;
|
|
12840
12854
|
L(this, r);
|
|
@@ -12844,7 +12858,7 @@ var Ct = null, Zl = /* @__PURE__ */ function(a) {
|
|
|
12844
12858
|
var l = t._getTime(), u = Object.assign({}, s, {
|
|
12845
12859
|
msg: s.msg || s.action
|
|
12846
12860
|
});
|
|
12847
|
-
t._stats[ht].push(
|
|
12861
|
+
t._stats[ht].push(ee(ee({
|
|
12848
12862
|
type: "userAction"
|
|
12849
12863
|
}, l), {}, {
|
|
12850
12864
|
payload: u
|
|
@@ -12892,7 +12906,7 @@ var Ct = null, Zl = /* @__PURE__ */ function(a) {
|
|
|
12892
12906
|
key: "_info",
|
|
12893
12907
|
value: function(e) {
|
|
12894
12908
|
var i = this._getTime();
|
|
12895
|
-
this._stats[ht].push(
|
|
12909
|
+
this._stats[ht].push(ee(ee({}, i), {}, {
|
|
12896
12910
|
payload: e
|
|
12897
12911
|
}));
|
|
12898
12912
|
}
|
|
@@ -12900,7 +12914,7 @@ var Ct = null, Zl = /* @__PURE__ */ function(a) {
|
|
|
12900
12914
|
key: "_infoProfile",
|
|
12901
12915
|
value: function(e) {
|
|
12902
12916
|
if (e && e.startMs) {
|
|
12903
|
-
var i = Date.now(), n = i - e.startMs, s =
|
|
12917
|
+
var i = Date.now(), n = i - e.startMs, s = ee({
|
|
12904
12918
|
cat: "function",
|
|
12905
12919
|
dur: n,
|
|
12906
12920
|
name: e.name || e.msg,
|
|
@@ -12977,8 +12991,8 @@ var Ct = null, Zl = /* @__PURE__ */ function(a) {
|
|
|
12977
12991
|
}
|
|
12978
12992
|
}]), r;
|
|
12979
12993
|
}(He), or = /* @__PURE__ */ function(a) {
|
|
12980
|
-
|
|
12981
|
-
var o =
|
|
12994
|
+
R(r, a);
|
|
12995
|
+
var o = F(r);
|
|
12982
12996
|
function r() {
|
|
12983
12997
|
var t;
|
|
12984
12998
|
L(this, r);
|
|
@@ -13017,7 +13031,7 @@ var Ct = null, Zl = /* @__PURE__ */ function(a) {
|
|
|
13017
13031
|
key: "afterCreate",
|
|
13018
13032
|
value: function() {
|
|
13019
13033
|
var e = this, i = this.config.useGapJump;
|
|
13020
|
-
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(mt, this.onGapJump), this.on(
|
|
13034
|
+
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(mt, this.onGapJump), this.on(pe, function() {
|
|
13021
13035
|
e.hasPlayed = !0;
|
|
13022
13036
|
}), this.on(Mt, function() {
|
|
13023
13037
|
e.seekingEventReceived = !0;
|
|
@@ -13067,8 +13081,8 @@ var Ct = null, Zl = /* @__PURE__ */ function(a) {
|
|
|
13067
13081
|
}(W);
|
|
13068
13082
|
or.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
13069
13083
|
var eu = /* @__PURE__ */ function(a) {
|
|
13070
|
-
|
|
13071
|
-
var o =
|
|
13084
|
+
R(r, a);
|
|
13085
|
+
var o = F(r);
|
|
13072
13086
|
function r() {
|
|
13073
13087
|
var t;
|
|
13074
13088
|
L(this, r);
|
|
@@ -13092,7 +13106,7 @@ var eu = /* @__PURE__ */ function(a) {
|
|
|
13092
13106
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
13093
13107
|
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(mt, this.onWaiting), this.on([mi, Ie], function() {
|
|
13094
13108
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
13095
|
-
}), this.on(
|
|
13109
|
+
}), this.on(pe, function() {
|
|
13096
13110
|
e.hasPlayed = !0;
|
|
13097
13111
|
}));
|
|
13098
13112
|
}
|
|
@@ -13113,8 +13127,8 @@ var eu = /* @__PURE__ */ function(a) {
|
|
|
13113
13127
|
}
|
|
13114
13128
|
}]), r;
|
|
13115
13129
|
}(W), st = "cdn", wt = ["cdn"], tu = /* @__PURE__ */ function(a) {
|
|
13116
|
-
|
|
13117
|
-
var o =
|
|
13130
|
+
R(r, a);
|
|
13131
|
+
var o = F(r);
|
|
13118
13132
|
function r() {
|
|
13119
13133
|
var t;
|
|
13120
13134
|
L(this, r);
|
|
@@ -13239,8 +13253,8 @@ var eu = /* @__PURE__ */ function(a) {
|
|
|
13239
13253
|
}
|
|
13240
13254
|
}]), r;
|
|
13241
13255
|
}(W), iu = /* @__PURE__ */ function(a) {
|
|
13242
|
-
|
|
13243
|
-
var o =
|
|
13256
|
+
R(r, a);
|
|
13257
|
+
var o = F(r);
|
|
13244
13258
|
function r() {
|
|
13245
13259
|
return L(this, r), o.apply(this, arguments);
|
|
13246
13260
|
}
|
|
@@ -13250,7 +13264,7 @@ var eu = /* @__PURE__ */ function(a) {
|
|
|
13250
13264
|
var e = this, i = this.player, n = this.config, s = i.media || i.video;
|
|
13251
13265
|
if (this.timer = null, this._lastDecodedFrames = 0, this._currentStuckCount = 0, this._lastCheckPoint = null, this._payload = [], !n.disabled) {
|
|
13252
13266
|
var l = s.getVideoPlaybackQuality;
|
|
13253
|
-
l && (this.on(
|
|
13267
|
+
l && (this.on(pe, function() {
|
|
13254
13268
|
e._startTick();
|
|
13255
13269
|
}), this.on(ut, function() {
|
|
13256
13270
|
e._stopTick();
|
|
@@ -13367,8 +13381,8 @@ var nu = /* @__PURE__ */ D(function a(o, r) {
|
|
|
13367
13381
|
}
|
|
13368
13382
|
(z.os.isIpad || h === "pc") && this.plugins.push(Zl), z.os.isIpad && this.plugins.push(ei), this.ignores = [], this.i18n = [];
|
|
13369
13383
|
}), _e = /* @__PURE__ */ function(a) {
|
|
13370
|
-
|
|
13371
|
-
var o =
|
|
13384
|
+
R(r, a);
|
|
13385
|
+
var o = F(r);
|
|
13372
13386
|
function r() {
|
|
13373
13387
|
return L(this, r), o.apply(this, arguments);
|
|
13374
13388
|
}
|
|
@@ -13384,7 +13398,7 @@ _(_e, "BasePlugin", He);
|
|
|
13384
13398
|
_(_e, "I18N", at);
|
|
13385
13399
|
_(_e, "STATE_CLASS", E);
|
|
13386
13400
|
_(_e, "InstManager", nr);
|
|
13387
|
-
const ru = ["id"], su = /* @__PURE__ */
|
|
13401
|
+
const ru = ["id"], su = /* @__PURE__ */ te({
|
|
13388
13402
|
name: "ElImageViewer",
|
|
13389
13403
|
__name: "Player",
|
|
13390
13404
|
props: /* @__PURE__ */ Tt({
|
|
@@ -13448,7 +13462,7 @@ const ru = ["id"], su = /* @__PURE__ */ ee({
|
|
|
13448
13462
|
});
|
|
13449
13463
|
}), (p, d) => {
|
|
13450
13464
|
const v = Ye("el-icon");
|
|
13451
|
-
return u.value ? (k(),
|
|
13465
|
+
return u.value ? (k(), fe(En, {
|
|
13452
13466
|
key: 0,
|
|
13453
13467
|
to: "body"
|
|
13454
13468
|
}, [
|
|
@@ -13462,14 +13476,14 @@ const ru = ["id"], su = /* @__PURE__ */ ee({
|
|
|
13462
13476
|
{
|
|
13463
13477
|
ref: "wrapper",
|
|
13464
13478
|
tabindex: -1,
|
|
13465
|
-
class: K(
|
|
13466
|
-
style:
|
|
13479
|
+
class: K(P(h).e("wrapper")),
|
|
13480
|
+
style: se({ zIndex: a.zIndex })
|
|
13467
13481
|
},
|
|
13468
13482
|
[
|
|
13469
13483
|
w(
|
|
13470
13484
|
"div",
|
|
13471
13485
|
{
|
|
13472
|
-
class: K(
|
|
13486
|
+
class: K(P(h).e("mask"))
|
|
13473
13487
|
},
|
|
13474
13488
|
null,
|
|
13475
13489
|
2
|
|
@@ -13479,21 +13493,21 @@ const ru = ["id"], su = /* @__PURE__ */ ee({
|
|
|
13479
13493
|
w(
|
|
13480
13494
|
"div",
|
|
13481
13495
|
{
|
|
13482
|
-
class: K(
|
|
13496
|
+
class: K(P(h).e("canvas"))
|
|
13483
13497
|
},
|
|
13484
13498
|
[
|
|
13485
|
-
w("div", { id:
|
|
13499
|
+
w("div", { id: P(c) }, null, 8, ru),
|
|
13486
13500
|
I(" CLOSE "),
|
|
13487
13501
|
w(
|
|
13488
13502
|
"span",
|
|
13489
13503
|
{
|
|
13490
|
-
class: K([
|
|
13504
|
+
class: K([P(h).e("btn"), P(h).e("close")]),
|
|
13491
13505
|
onClick: g
|
|
13492
13506
|
},
|
|
13493
13507
|
[
|
|
13494
13508
|
$(v, { onClick: g }, {
|
|
13495
13509
|
default: ne(() => [
|
|
13496
|
-
$(
|
|
13510
|
+
$(P(Pn))
|
|
13497
13511
|
]),
|
|
13498
13512
|
_: 1
|
|
13499
13513
|
/* STABLE */
|
|
@@ -13578,7 +13592,7 @@ const au = /* @__PURE__ */ Ft(su, [["__scopeId", "data-v-b301aa7d"]]), ou = Le(a
|
|
|
13578
13592
|
class: "branch"
|
|
13579
13593
|
}, tc = { class: "branch-card" }, ic = { class: "branch-name" }, nc = {
|
|
13580
13594
|
name: "IkingApprovalProcessDetail"
|
|
13581
|
-
}, rc = /* @__PURE__ */
|
|
13595
|
+
}, rc = /* @__PURE__ */ te({
|
|
13582
13596
|
...nc,
|
|
13583
13597
|
props: {
|
|
13584
13598
|
// 是否本地打开
|
|
@@ -13668,9 +13682,9 @@ const au = /* @__PURE__ */ Ft(su, [["__scopeId", "data-v-b301aa7d"]]), ou = Le(a
|
|
|
13668
13682
|
}, n = (c) => {
|
|
13669
13683
|
var C, S, b;
|
|
13670
13684
|
let h = document.createElement("div"), g = document.getElementById("approveProcess"), p = 0, d = (C = document.getElementById(`${c[0]}`)) == null ? void 0 : C.offsetWidth, v = (S = document.getElementById(`${c[0]}`)) == null ? void 0 : S.offsetLeft, m = (b = document.getElementById(`${c[0]}`)) == null ? void 0 : b.offsetTop;
|
|
13671
|
-
c.forEach((
|
|
13672
|
-
let
|
|
13673
|
-
p +=
|
|
13685
|
+
c.forEach((B) => {
|
|
13686
|
+
let x = document.getElementById(`${B}`);
|
|
13687
|
+
p += x.offsetHeight;
|
|
13674
13688
|
}), setTimeout(() => {
|
|
13675
13689
|
h.style.width = d + 32 + "px", h.style.height = p + "px", h.style.background = "#f9f9f9", h.style.position = "absolute", h.style.top = m - 16 + "px", h.style.left = v - 16 + "px", h.style.zIndex = -1, g == null || g.appendChild(h);
|
|
13676
13690
|
});
|
|
@@ -13716,10 +13730,10 @@ const au = /* @__PURE__ */ Ft(su, [["__scopeId", "data-v-b301aa7d"]]), ou = Le(a
|
|
|
13716
13730
|
const g = Ye("el-image"), p = Ye("IkingApprovalProcessDetail");
|
|
13717
13731
|
return k(), T("div", lu, [
|
|
13718
13732
|
(k(!0), T(
|
|
13719
|
-
|
|
13733
|
+
re,
|
|
13720
13734
|
null,
|
|
13721
13735
|
Se(e.listData, (d, v) => {
|
|
13722
|
-
var m, C, S, b,
|
|
13736
|
+
var m, C, S, b, B, x, H, O, J, q;
|
|
13723
13737
|
return k(), T("div", {
|
|
13724
13738
|
class: "approveBlock",
|
|
13725
13739
|
id: d[e.defaultFile.nodeId],
|
|
@@ -13737,7 +13751,7 @@ const au = /* @__PURE__ */ Ft(su, [["__scopeId", "data-v-b301aa7d"]]), ou = Le(a
|
|
|
13737
13751
|
),
|
|
13738
13752
|
alt: ""
|
|
13739
13753
|
}, null, 8, du)) : (k(), T(
|
|
13740
|
-
|
|
13754
|
+
re,
|
|
13741
13755
|
{ key: 1 },
|
|
13742
13756
|
[
|
|
13743
13757
|
I(" 否则显示对应节点 "),
|
|
@@ -13745,7 +13759,7 @@ const au = /* @__PURE__ */ Ft(su, [["__scopeId", "data-v-b301aa7d"]]), ou = Le(a
|
|
|
13745
13759
|
"i",
|
|
13746
13760
|
{
|
|
13747
13761
|
class: K(
|
|
13748
|
-
|
|
13762
|
+
P(Gs)(
|
|
13749
13763
|
e,
|
|
13750
13764
|
d[e.defaultFile.nodeType],
|
|
13751
13765
|
d[e.defaultFile.approvePersonList]
|
|
@@ -13794,7 +13808,7 @@ const au = /* @__PURE__ */ Ft(su, [["__scopeId", "data-v-b301aa7d"]]), ou = Le(a
|
|
|
13794
13808
|
w(
|
|
13795
13809
|
"span",
|
|
13796
13810
|
{
|
|
13797
|
-
style:
|
|
13811
|
+
style: se({
|
|
13798
13812
|
color: d[e.defaultFile.approveStatus] == e.statusOption.评论 ? "#000" : ""
|
|
13799
13813
|
})
|
|
13800
13814
|
},
|
|
@@ -13820,7 +13834,7 @@ const au = /* @__PURE__ */ Ft(su, [["__scopeId", "data-v-b301aa7d"]]), ou = Le(a
|
|
|
13820
13834
|
)
|
|
13821
13835
|
])) : I("v-if", !0)
|
|
13822
13836
|
])) : (k(), T(
|
|
13823
|
-
|
|
13837
|
+
re,
|
|
13824
13838
|
{ key: 1 },
|
|
13825
13839
|
[
|
|
13826
13840
|
I(" 待审批节点 "),
|
|
@@ -13875,9 +13889,9 @@ const au = /* @__PURE__ */ Ft(su, [["__scopeId", "data-v-b301aa7d"]]), ou = Le(a
|
|
|
13875
13889
|
)
|
|
13876
13890
|
])) : I("v-if", !0),
|
|
13877
13891
|
I(" 抄送多人时 "),
|
|
13878
|
-
((
|
|
13892
|
+
((B = d[e.defaultFile.approvePersonList]) == null ? void 0 : B.length) > 1 ? (k(), T("span", Du, [
|
|
13879
13893
|
Ge(
|
|
13880
|
-
X(`已抄送${(
|
|
13894
|
+
X(`已抄送${(x = d[e.defaultFile.approvePersonList]) == null ? void 0 : x.length}人`) + " ",
|
|
13881
13895
|
1
|
|
13882
13896
|
/* TEXT */
|
|
13883
13897
|
),
|
|
@@ -13900,7 +13914,7 @@ const au = /* @__PURE__ */ Ft(su, [["__scopeId", "data-v-b301aa7d"]]), ou = Le(a
|
|
|
13900
13914
|
d[e.defaultFile.nodeType] != e.nodeType.抄送节点 && d[e.defaultFile.approveStatus] !== e.statusOption.等待 ? (k(), T(
|
|
13901
13915
|
"span",
|
|
13902
13916
|
Bu,
|
|
13903
|
-
X(
|
|
13917
|
+
X(P(Cr).toDateTime(
|
|
13904
13918
|
d[e.defaultFile.operationTime],
|
|
13905
13919
|
"MM/DD HH:mm"
|
|
13906
13920
|
)),
|
|
@@ -13908,7 +13922,7 @@ const au = /* @__PURE__ */ Ft(su, [["__scopeId", "data-v-b301aa7d"]]), ou = Le(a
|
|
|
13908
13922
|
/* TEXT */
|
|
13909
13923
|
)) : I("v-if", !0),
|
|
13910
13924
|
I(" 是抄送节点,并且抄送人员大于1时,展示图标 "),
|
|
13911
|
-
d[e.defaultFile.nodeType] == e.nodeType.抄送节点 && ((
|
|
13925
|
+
d[e.defaultFile.nodeType] == e.nodeType.抄送节点 && ((H = d[e.defaultFile.approvePersonList]) == null ? void 0 : H.length) > 1 ? (k(), T("span", Hu, [
|
|
13912
13926
|
d != null && d.show ? (k(), T("i", {
|
|
13913
13927
|
key: 0,
|
|
13914
13928
|
class: "ikapprove ikapprove-a-putongjiantouzhankai",
|
|
@@ -13927,7 +13941,7 @@ const au = /* @__PURE__ */ Ft(su, [["__scopeId", "data-v-b301aa7d"]]), ou = Le(a
|
|
|
13927
13941
|
"div",
|
|
13928
13942
|
{
|
|
13929
13943
|
class: "bottomBlock",
|
|
13930
|
-
style:
|
|
13944
|
+
style: se({
|
|
13931
13945
|
borderLeft: v == e.listData.length - 1 ? "" : `2px ${d[e.defaultFile.lineType] || "dashed"} var(--el-border-color)`
|
|
13932
13946
|
})
|
|
13933
13947
|
},
|
|
@@ -13944,7 +13958,7 @@ const au = /* @__PURE__ */ Ft(su, [["__scopeId", "data-v-b301aa7d"]]), ou = Le(a
|
|
|
13944
13958
|
d[e.defaultFile.approveStatus] == e.statusOption.加签 ? (k(), T("span", $u, [
|
|
13945
13959
|
Wu,
|
|
13946
13960
|
(k(!0), T(
|
|
13947
|
-
|
|
13961
|
+
re,
|
|
13948
13962
|
null,
|
|
13949
13963
|
Se(d[e.defaultFile.countersignPer], (A, ie) => (k(), T(
|
|
13950
13964
|
"span",
|
|
@@ -13959,14 +13973,14 @@ const au = /* @__PURE__ */ Ft(su, [["__scopeId", "data-v-b301aa7d"]]), ou = Le(a
|
|
|
13959
13973
|
])) : I("v-if", !0)
|
|
13960
13974
|
])) : I("v-if", !0),
|
|
13961
13975
|
I(" 附件 "),
|
|
13962
|
-
(
|
|
13976
|
+
(O = d[e.defaultFile.attachment]) != null && O.length ? (k(), fe(P(ra), {
|
|
13963
13977
|
key: 1,
|
|
13964
13978
|
list: d[e.defaultFile.attachment]
|
|
13965
13979
|
}, null, 8, ["list"])) : I("v-if", !0),
|
|
13966
13980
|
I(" 附件图片 "),
|
|
13967
|
-
(
|
|
13981
|
+
(J = d[e.defaultFile.attachmentImg]) != null && J.length ? (k(), T("div", Ku, [
|
|
13968
13982
|
(k(!0), T(
|
|
13969
|
-
|
|
13983
|
+
re,
|
|
13970
13984
|
null,
|
|
13971
13985
|
Se(d[e.defaultFile.attachmentImg], (A, ie) => (k(), T("div", {
|
|
13972
13986
|
class: "image",
|
|
@@ -13988,7 +14002,7 @@ const au = /* @__PURE__ */ Ft(su, [["__scopeId", "data-v-b301aa7d"]]), ou = Le(a
|
|
|
13988
14002
|
I(" 抄送节点或是等待审批状态并且列表长度大于1 "),
|
|
13989
14003
|
(d[e.defaultFile.nodeType] == e.nodeType.抄送节点 || d[e.defaultFile.approveStatus] == e.statusOption.等待) && ((q = d[e.defaultFile.approvePersonList]) == null ? void 0 : q.length) > 1 ? (k(), T("div", Yu, [
|
|
13990
14004
|
(k(!0), T(
|
|
13991
|
-
|
|
14005
|
+
re,
|
|
13992
14006
|
null,
|
|
13993
14007
|
Se(d[e.defaultFile.approvePersonList], (A) => (k(), T("div", {
|
|
13994
14008
|
class: "perBlock",
|
|
@@ -14024,7 +14038,7 @@ const au = /* @__PURE__ */ Ft(su, [["__scopeId", "data-v-b301aa7d"]]), ou = Le(a
|
|
|
14024
14038
|
),
|
|
14025
14039
|
d[e.defaultFile.nodeType] === e.nodeType.并行分支 ? (k(), T("div", ec, [
|
|
14026
14040
|
(k(!0), T(
|
|
14027
|
-
|
|
14041
|
+
re,
|
|
14028
14042
|
null,
|
|
14029
14043
|
Se(d[e.defaultFile.parallelInstances], (A) => (k(), T("div", tc, [
|
|
14030
14044
|
w(
|