iking-web-ui-pro 1.2.6 → 1.2.8
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 +123 -132
- package/dist/IkDescription/ik.index.es.js +15 -24
- package/dist/IkDetailPreviewFiles/ik.index.es.js +15 -24
- package/dist/IkImageUploadEditor/ik.index.es.js +1227 -1227
- package/dist/IkPreviewFile/ik.index.es.js +15 -24
- package/dist/IkPrint/ik.index.es.js +1 -1
- package/dist/IkPrint/{index.es-DDNCkl-c.mjs → index.es-OMtWcZN6.mjs} +1 -1
- package/dist/{jspdf.es.min-DsM3mxSl.mjs → IkPrint/jspdf.es.min-CYsYASKt.mjs} +2 -2
- package/dist/IkPrint/purify.es-CiEWEeUM.mjs +605 -0
- package/dist/IkUploadFile/ik.index.es.js +307 -306
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +1 -1
- package/dist/{index-Cba2fjdk.mjs → index-Cbyui2C0.mjs} +9518 -9526
- package/dist/{index.es-DqdRfgV4.mjs → index.es-ByDyBGi-.mjs} +139 -139
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +199 -198
- package/dist/{IkPrint/jspdf.es.min-DLP80Gi4.mjs → jspdf.es.min-BpyVpHjP.mjs} +2 -2
- package/dist/purify.es-CiEWEeUM.mjs +605 -0
- package/dist/src/components/IkBtnSetting/index.d.ts +1 -1
- package/dist/src/components/IkBtnSetting/src/IkBtnSetting.vue.d.ts +1 -1
- package/dist/src/components/IkDragList/index.d.ts +3 -3
- package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +1 -1
- package/dist/src/components/IkMonacoEditor/index.d.ts +16 -16
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +16 -16
- package/dist/src/components/IkPageFull/index.d.ts +3 -3
- package/dist/src/components/IkPageFull/src/IkDialog.d.ts +2 -2
- package/dist/src/components/IkPageFull/src/IkPageHead.vue.d.ts +1 -1
- package/dist/src/components/IkPageFull/src/IkPageTable.vue.d.ts +1 -1
- package/dist/src/components/IkPageFull/src/IkSearchAuto.d.ts +1 -1
- package/dist/src/components/IkPageFull/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/index.d.ts +2 -2
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +2 -2
- package/dist/src/components/IkSideText/IkSideText.vue.d.ts +2 -2
- package/dist/src/components/IkSideText/index.d.ts +2 -2
- package/dist/src/components/IkStatu/index.d.ts +1 -1
- package/dist/src/components/IkStatu/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkSvgIcon/index.d.ts +16 -16
- package/dist/src/components/IkTree/IkTree.vue.d.ts +2532 -788
- package/dist/src/components/IkUploadImage/index.d.ts +3 -3
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
- package/package.json +1 -1
- package/dist/IkPrint/purify.es-D5dazAgD.mjs +0 -553
- package/dist/purify.es-D5dazAgD.mjs +0 -553
- package/dist/src/components/IkTree/index.d.ts +0 -12349
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useLocale as Gl, useNamespace as Su, useZIndex as
|
|
1
|
+
import { defineComponent as le, openBlock as T, createElementBlock as P, createElementVNode as A, computed as ue, inject as bt, useModel as mi, ref as Ce, reactive as Fl, watch as Bt, nextTick as Ht, Fragment as be, createBlock as Z, unref as C, createCommentVNode as B, createVNode as q, withCtx as Y, toDisplayString as ge, mergeModels as ft, resolveComponent as ri, normalizeStyle as De, normalizeClass as J, mergeProps as ai, createTextVNode as lt, h as Nl, createSlots as Cu, renderSlot as Re, getCurrentScope as Bl, onScopeDispose as Hl, markRaw as Ia, effectScope as Ul, shallowRef as zl, onMounted as jl, Teleport as ku, Transition as wu, withModifiers as Pe, resolveDynamicComponent as Vl, renderList as Tu, withDirectives as ql, vShow as Wl } from "vue";
|
|
2
|
+
import { useLocale as Gl, useNamespace as Su, useZIndex as $l, ElIcon as Ae, EVENT_CODE as Ct, ElUpload as Pa, ElTooltip as Da, ElProgress as Zt, ElButton as Kl, ElMessage as Di } from "element-plus";
|
|
3
3
|
import { buildUUID as Au, ikColor as Yl, paramType as La, _ as Li, ikFile as Xl } from "iking-utils-pro";
|
|
4
4
|
import Zl from "axios";
|
|
5
5
|
const nt = (a, s) => (a.install = (r) => {
|
|
@@ -7,7 +7,7 @@ const nt = (a, s) => (a.install = (r) => {
|
|
|
7
7
|
r.component(t.name, t);
|
|
8
8
|
}, a), Jl = "data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwAAAALwAALwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBImAAAAA2AYm3bsuhFm7u72wZoTrbGIcoKaKyAROJQbQmW2IVb/WkW3ZmPd3ymRMQEwJfV56QRo5pHErkUkFdQWRJpeGW6SoL9EvaWxAdbAeiVd5gyAK5NAdOtv4uNfsT21TUukBVjgFubBOQS+Ip7G/k2LpatkF2hAuBI5siAdsL2j3DHQrJ7NKDbUIyOj3bhqADBsgNPUqUlgncLVlA4IOwBAABwDQCdASowADAAPm0yk0ckIyGhJzgMkIANiWwArDM9tzexcZ3vwYZdKHIB749Ap5gP1E/YD34/QB6AH+A9F//S+w1z2/sz/5DzdDABM7ldHg1iMkeWX8LH9T1VzicAWGJgnNq4e/5P/NObJOBUhFC8dPnhmAD+9wGzP9Zfeg5ENi90xn4awZvrlCLnfwvZX//s4u6n2Pa2TF/r8wh0GtdNNJIBMRbrMaCBwyl6z86DqQgvpixbIdOVbwZFf/7KjC+uzJ5nNRyJ1Rpab8pIf2m1+SBOfX9w7EFXUErK8NSCsePMPazMXKH5y9Wl+nfiSrmsv079Fk6NkDF3Dxr+C+Rp4UdG/f3kP8PZfd/FyRupWURiDOrAjLamuF4OPo2BylwD7ulmdgDn4BEMXuvpYCACy4yCVjgsOzqToG2rSfJOtxy6Hh1/B2gu7X1MdJpHsdHdUrlRzTLKyV3wZG5a64SKKB2/QGk8IRZT0veUdDeo579/WyTU3ujQZeKNBS9ANlv1muyN9Kf5bm1f3UoPm/KnDkqf/1f2jf6aQJ7IYNod25fVfhRX+l1u9qBzs/bVezF7ZgC2LOuuJl1Tvwgeujpg9Uc/m0A9X878DzEkgxP/sPGviOfCElM1J/Kr3TTCwCkfW+K3oZuMB7HAAAA=";
|
|
9
9
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
10
|
-
var Ql = /* @__PURE__ */
|
|
10
|
+
var Ql = /* @__PURE__ */ le({
|
|
11
11
|
name: "ArrowLeft",
|
|
12
12
|
__name: "arrow-left",
|
|
13
13
|
setup(a) {
|
|
@@ -21,7 +21,7 @@ var Ql = /* @__PURE__ */ ue({
|
|
|
21
21
|
})
|
|
22
22
|
]));
|
|
23
23
|
}
|
|
24
|
-
}), ec = Ql, tc = /* @__PURE__ */
|
|
24
|
+
}), ec = Ql, tc = /* @__PURE__ */ le({
|
|
25
25
|
name: "ArrowRight",
|
|
26
26
|
__name: "arrow-right",
|
|
27
27
|
setup(a) {
|
|
@@ -35,7 +35,7 @@ var Ql = /* @__PURE__ */ ue({
|
|
|
35
35
|
})
|
|
36
36
|
]));
|
|
37
37
|
}
|
|
38
|
-
}), ic = tc, nc = /* @__PURE__ */
|
|
38
|
+
}), ic = tc, nc = /* @__PURE__ */ le({
|
|
39
39
|
name: "Close",
|
|
40
40
|
__name: "close",
|
|
41
41
|
setup(a) {
|
|
@@ -49,7 +49,7 @@ var Ql = /* @__PURE__ */ ue({
|
|
|
49
49
|
})
|
|
50
50
|
]));
|
|
51
51
|
}
|
|
52
|
-
}), Eu = nc, rc = /* @__PURE__ */
|
|
52
|
+
}), Eu = nc, rc = /* @__PURE__ */ le({
|
|
53
53
|
name: "Download",
|
|
54
54
|
__name: "download",
|
|
55
55
|
setup(a) {
|
|
@@ -63,7 +63,7 @@ var Ql = /* @__PURE__ */ ue({
|
|
|
63
63
|
})
|
|
64
64
|
]));
|
|
65
65
|
}
|
|
66
|
-
}), ac = rc, sc = /* @__PURE__ */
|
|
66
|
+
}), ac = rc, sc = /* @__PURE__ */ le({
|
|
67
67
|
name: "FullScreen",
|
|
68
68
|
__name: "full-screen",
|
|
69
69
|
setup(a) {
|
|
@@ -77,7 +77,7 @@ var Ql = /* @__PURE__ */ ue({
|
|
|
77
77
|
})
|
|
78
78
|
]));
|
|
79
79
|
}
|
|
80
|
-
}), oc = sc, uc = /* @__PURE__ */
|
|
80
|
+
}), oc = sc, uc = /* @__PURE__ */ le({
|
|
81
81
|
name: "QuestionFilled",
|
|
82
82
|
__name: "question-filled",
|
|
83
83
|
setup(a) {
|
|
@@ -91,7 +91,7 @@ var Ql = /* @__PURE__ */ ue({
|
|
|
91
91
|
})
|
|
92
92
|
]));
|
|
93
93
|
}
|
|
94
|
-
}), Ra = uc, lc = /* @__PURE__ */
|
|
94
|
+
}), Ra = uc, lc = /* @__PURE__ */ le({
|
|
95
95
|
name: "RefreshLeft",
|
|
96
96
|
__name: "refresh-left",
|
|
97
97
|
setup(a) {
|
|
@@ -105,7 +105,7 @@ var Ql = /* @__PURE__ */ ue({
|
|
|
105
105
|
})
|
|
106
106
|
]));
|
|
107
107
|
}
|
|
108
|
-
}), cc = lc, fc = /* @__PURE__ */
|
|
108
|
+
}), cc = lc, fc = /* @__PURE__ */ le({
|
|
109
109
|
name: "RefreshRight",
|
|
110
110
|
__name: "refresh-right",
|
|
111
111
|
setup(a) {
|
|
@@ -119,7 +119,7 @@ var Ql = /* @__PURE__ */ ue({
|
|
|
119
119
|
})
|
|
120
120
|
]));
|
|
121
121
|
}
|
|
122
|
-
}), hc = fc, dc = /* @__PURE__ */
|
|
122
|
+
}), hc = fc, dc = /* @__PURE__ */ le({
|
|
123
123
|
name: "ScaleToOriginal",
|
|
124
124
|
__name: "scale-to-original",
|
|
125
125
|
setup(a) {
|
|
@@ -133,7 +133,7 @@ var Ql = /* @__PURE__ */ ue({
|
|
|
133
133
|
})
|
|
134
134
|
]));
|
|
135
135
|
}
|
|
136
|
-
}), gc = dc, vc = /* @__PURE__ */
|
|
136
|
+
}), gc = dc, vc = /* @__PURE__ */ le({
|
|
137
137
|
name: "View",
|
|
138
138
|
__name: "view",
|
|
139
139
|
setup(a) {
|
|
@@ -147,7 +147,7 @@ var Ql = /* @__PURE__ */ ue({
|
|
|
147
147
|
})
|
|
148
148
|
]));
|
|
149
149
|
}
|
|
150
|
-
}), pc = vc, mc = /* @__PURE__ */
|
|
150
|
+
}), pc = vc, mc = /* @__PURE__ */ le({
|
|
151
151
|
name: "WarningFilled",
|
|
152
152
|
__name: "warning-filled",
|
|
153
153
|
setup(a) {
|
|
@@ -161,7 +161,7 @@ var Ql = /* @__PURE__ */ ue({
|
|
|
161
161
|
})
|
|
162
162
|
]));
|
|
163
163
|
}
|
|
164
|
-
}), yc = mc, _c = /* @__PURE__ */
|
|
164
|
+
}), yc = mc, _c = /* @__PURE__ */ le({
|
|
165
165
|
name: "ZoomIn",
|
|
166
166
|
__name: "zoom-in",
|
|
167
167
|
setup(a) {
|
|
@@ -175,7 +175,7 @@ var Ql = /* @__PURE__ */ ue({
|
|
|
175
175
|
})
|
|
176
176
|
]));
|
|
177
177
|
}
|
|
178
|
-
}), bc = _c, Cc = /* @__PURE__ */
|
|
178
|
+
}), bc = _c, Cc = /* @__PURE__ */ le({
|
|
179
179
|
name: "ZoomOut",
|
|
180
180
|
__name: "zoom-out",
|
|
181
181
|
setup(a) {
|
|
@@ -423,7 +423,7 @@ const ne = (a, s) => {
|
|
|
423
423
|
"p-id": "7515",
|
|
424
424
|
width: "200",
|
|
425
425
|
height: "200"
|
|
426
|
-
}, Nc = /* @__PURE__ */
|
|
426
|
+
}, Nc = /* @__PURE__ */ le({
|
|
427
427
|
__name: "IkFileIcon",
|
|
428
428
|
props: {
|
|
429
429
|
type: {
|
|
@@ -444,7 +444,7 @@ const ne = (a, s) => {
|
|
|
444
444
|
}
|
|
445
445
|
},
|
|
446
446
|
setup(a) {
|
|
447
|
-
const s = a, r =
|
|
447
|
+
const s = a, r = ue(() => s.file ? ne(s.file, s.fields) : s.type);
|
|
448
448
|
return (t, e) => r.value === "image" ? (T(), P("svg", Sc, [...e[0] || (e[0] = [
|
|
449
449
|
A(
|
|
450
450
|
"path",
|
|
@@ -874,9 +874,9 @@ const ne = (a, s) => {
|
|
|
874
874
|
"flv",
|
|
875
875
|
"tls"
|
|
876
876
|
], xu = (a) => {
|
|
877
|
-
const s = bt("loadUrl"), r =
|
|
877
|
+
const s = bt("loadUrl"), r = ue(() => a.loadUrl || a.fileUrl || (s == null ? void 0 : s.value)), t = bt("uploadUrl"), e = ue(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = bt("token"), n = ue(() => a.token || (i == null ? void 0 : i.value)), o = bt("header"), u = ue(() => a.header || (o == null ? void 0 : o.value) || {
|
|
878
878
|
Authorization: n.value
|
|
879
|
-
}), l = bt("onlyofficeConfig"), c =
|
|
879
|
+
}), l = bt("onlyofficeConfig"), c = ue(() => a.onlyofficeConfig || (l == null ? void 0 : l.value)), f = bt("userInfo"), d = ue(() => a.userInfo || (f == null ? void 0 : f.value)), g = [...Ma, ...Ma.map((v) => v.toLocaleUpperCase())];
|
|
880
880
|
return {
|
|
881
881
|
cLoadUrl: r,
|
|
882
882
|
cUploadUrl: e,
|
|
@@ -886,7 +886,7 @@ const ne = (a, s) => {
|
|
|
886
886
|
cUserInfo: d,
|
|
887
887
|
cOnlyofficePreviewType: g
|
|
888
888
|
};
|
|
889
|
-
}, Bc = { class: "head-logo" }, Hc = ["src"], Uc = { class: "text-preview-container" }, zc = { class: "text-preview-header" }, jc = { class: "file-name" }, Vc = { class: "text-preview-content" }, qc = /* @__PURE__ */
|
|
889
|
+
}, Bc = { class: "head-logo" }, Hc = ["src"], Uc = { class: "text-preview-container" }, zc = { class: "text-preview-header" }, jc = { class: "file-name" }, Vc = { class: "text-preview-content" }, qc = /* @__PURE__ */ le({
|
|
890
890
|
__name: "IkPreviewFileDialog",
|
|
891
891
|
props: /* @__PURE__ */ ft({
|
|
892
892
|
file: {
|
|
@@ -923,7 +923,7 @@ const ne = (a, s) => {
|
|
|
923
923
|
}),
|
|
924
924
|
emits: /* @__PURE__ */ ft(["close"], ["update:show"]),
|
|
925
925
|
setup(a, { emit: s }) {
|
|
926
|
-
const r = a, t = s, e = mi(a, "show"), i =
|
|
926
|
+
const r = a, t = s, e = mi(a, "show"), i = ue(() => ({
|
|
927
927
|
name: "name",
|
|
928
928
|
url: "url",
|
|
929
929
|
suffix: "suffix",
|
|
@@ -937,7 +937,7 @@ const ne = (a, s) => {
|
|
|
937
937
|
}), c = (v) => {
|
|
938
938
|
var m, p, x, w, k, M, L;
|
|
939
939
|
try {
|
|
940
|
-
const
|
|
940
|
+
const N = ((m = v == null ? void 0 : v.response) == null ? void 0 : m.data) || v, ie = N[i.value.url] || (N == null ? void 0 : N.id) || N.attachmentId, ee = (p = N[i.value.suffix] || N.attachmentSuffix) == null ? void 0 : p.toLowerCase(), G = N[i.value.name] || (N == null ? void 0 : N.attachmentName) || (N == null ? void 0 : N.originName);
|
|
941
941
|
if (o.value = {
|
|
942
942
|
...v,
|
|
943
943
|
name: v[i.value.name],
|
|
@@ -975,8 +975,8 @@ const ne = (a, s) => {
|
|
|
975
975
|
}, console.log("config", n.value);
|
|
976
976
|
return;
|
|
977
977
|
}
|
|
978
|
-
} catch (
|
|
979
|
-
console.info("预览错误: ",
|
|
978
|
+
} catch (N) {
|
|
979
|
+
console.info("预览错误: ", N);
|
|
980
980
|
}
|
|
981
981
|
};
|
|
982
982
|
Bt([e, r.file], ([v, m]) => {
|
|
@@ -1006,7 +1006,7 @@ const ne = (a, s) => {
|
|
|
1006
1006
|
be,
|
|
1007
1007
|
{ key: 0 },
|
|
1008
1008
|
[
|
|
1009
|
-
(p = o.value) != null && p.url && l.image ? (T(), Z(C(
|
|
1009
|
+
(p = o.value) != null && p.url && l.image ? (T(), Z(C($h), {
|
|
1010
1010
|
key: 0,
|
|
1011
1011
|
onClose: m[0] || (m[0] = (k) => d()),
|
|
1012
1012
|
ref: "previewImgRef",
|
|
@@ -1112,11 +1112,11 @@ const Gc = {
|
|
|
1112
1112
|
key: 1,
|
|
1113
1113
|
class: "h-[1em] w-[1em]",
|
|
1114
1114
|
"aria-hidden": "true"
|
|
1115
|
-
},
|
|
1115
|
+
}, $c = ["xlink:href"], Kc = ["src"], Yc = {
|
|
1116
1116
|
key: 1,
|
|
1117
1117
|
class: "h-[1em] w-[1em]",
|
|
1118
1118
|
"aria-hidden": "true"
|
|
1119
|
-
}, Xc = ["xlink:href"], Zc = ["src"], Jc = /* @__PURE__ */
|
|
1119
|
+
}, Xc = ["xlink:href"], Zc = ["src"], Jc = /* @__PURE__ */ le({
|
|
1120
1120
|
name: "IkSvgIcon",
|
|
1121
1121
|
__name: "index",
|
|
1122
1122
|
props: {
|
|
@@ -1145,10 +1145,10 @@ const Gc = {
|
|
|
1145
1145
|
},
|
|
1146
1146
|
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
1147
1147
|
setup(a, { emit: s }) {
|
|
1148
|
-
const r = a, t =
|
|
1148
|
+
const r = a, t = ue(() => r), e = ue(() => {
|
|
1149
1149
|
const { name: f } = t.value;
|
|
1150
1150
|
return /^http?:\/\//.test(f) ? "img" : /i-[^:]+:[^:]+/.test(f) ? "unocss" : f != null && f.startsWith("iksig") ? "iksig" : f != null && f.includes(":") ? "iconify" : f != null && f.startsWith("iksvg") ? "svg" : "i";
|
|
1151
|
-
}), i =
|
|
1151
|
+
}), i = ue(() => {
|
|
1152
1152
|
const f = [];
|
|
1153
1153
|
if (t.value.flip)
|
|
1154
1154
|
switch (t.value.flip) {
|
|
@@ -1229,12 +1229,12 @@ const Gc = {
|
|
|
1229
1229
|
)) : e.value === "svg" ? (T(), P("svg", Gc, [
|
|
1230
1230
|
A("use", {
|
|
1231
1231
|
"xlink:href": `#${t.value.name}`
|
|
1232
|
-
}, null, 8,
|
|
1232
|
+
}, null, 8, $c)
|
|
1233
1233
|
])) : e.value === "img" ? (T(), P("img", {
|
|
1234
1234
|
key: 2,
|
|
1235
1235
|
src: t.value.name,
|
|
1236
1236
|
class: "h-[1em] w-[1em]"
|
|
1237
|
-
}, null, 8,
|
|
1237
|
+
}, null, 8, Kc)) : (T(), P(
|
|
1238
1238
|
"i",
|
|
1239
1239
|
{
|
|
1240
1240
|
key: 3,
|
|
@@ -1308,7 +1308,7 @@ const Gc = {
|
|
|
1308
1308
|
);
|
|
1309
1309
|
};
|
|
1310
1310
|
}
|
|
1311
|
-
}), Qc = /* @__PURE__ */ yi(Jc, [["__scopeId", "data-v-9ebb0a94"]]), de = nt(Qc), ef = /* @__PURE__ */
|
|
1311
|
+
}), Qc = /* @__PURE__ */ yi(Jc, [["__scopeId", "data-v-9ebb0a94"]]), de = nt(Qc), ef = /* @__PURE__ */ le({
|
|
1312
1312
|
__name: "CloseIcon",
|
|
1313
1313
|
props: {
|
|
1314
1314
|
showBg: {
|
|
@@ -1338,7 +1338,7 @@ const Gc = {
|
|
|
1338
1338
|
/* CLASS */
|
|
1339
1339
|
));
|
|
1340
1340
|
}
|
|
1341
|
-
}), tf = /* @__PURE__ */ yi(ef, [["__scopeId", "data-v-da9210e2"]]), nf = { class: "base-header" }, rf = /* @__PURE__ */
|
|
1341
|
+
}), tf = /* @__PURE__ */ yi(ef, [["__scopeId", "data-v-da9210e2"]]), nf = { class: "base-header" }, rf = /* @__PURE__ */ le({
|
|
1342
1342
|
__name: "IkBaseDialog",
|
|
1343
1343
|
props: /* @__PURE__ */ ft({
|
|
1344
1344
|
title: { default: "" },
|
|
@@ -1360,7 +1360,7 @@ const Gc = {
|
|
|
1360
1360
|
}),
|
|
1361
1361
|
emits: ["update:modelValue"],
|
|
1362
1362
|
setup(a) {
|
|
1363
|
-
const s = a, r = mi(a, "modelValue"), t = Ce(s.fullscreen), e =
|
|
1363
|
+
const s = a, r = mi(a, "modelValue"), t = Ce(s.fullscreen), e = le({
|
|
1364
1364
|
setup() {
|
|
1365
1365
|
return () => Nl(tf, {
|
|
1366
1366
|
showBg: s.showCloseBg,
|
|
@@ -1648,20 +1648,20 @@ function gf() {
|
|
|
1648
1648
|
}
|
|
1649
1649
|
return ji = s, ji;
|
|
1650
1650
|
}
|
|
1651
|
-
var Vi,
|
|
1651
|
+
var Vi, $a;
|
|
1652
1652
|
function vf() {
|
|
1653
|
-
if (
|
|
1654
|
-
|
|
1653
|
+
if ($a) return Vi;
|
|
1654
|
+
$a = 1;
|
|
1655
1655
|
function a(s) {
|
|
1656
1656
|
var r = this.__data__, t = r.delete(s);
|
|
1657
1657
|
return this.size = r.size, t;
|
|
1658
1658
|
}
|
|
1659
1659
|
return Vi = a, Vi;
|
|
1660
1660
|
}
|
|
1661
|
-
var qi,
|
|
1661
|
+
var qi, Ka;
|
|
1662
1662
|
function pf() {
|
|
1663
|
-
if (
|
|
1664
|
-
|
|
1663
|
+
if (Ka) return qi;
|
|
1664
|
+
Ka = 1;
|
|
1665
1665
|
function a(s) {
|
|
1666
1666
|
return this.__data__.get(s);
|
|
1667
1667
|
}
|
|
@@ -1683,19 +1683,19 @@ function Du() {
|
|
|
1683
1683
|
var a = typeof Jt == "object" && Jt && Jt.Object === Object && Jt;
|
|
1684
1684
|
return Gi = a, Gi;
|
|
1685
1685
|
}
|
|
1686
|
-
var
|
|
1686
|
+
var $i, Za;
|
|
1687
1687
|
function Ue() {
|
|
1688
|
-
if (Za) return
|
|
1688
|
+
if (Za) return $i;
|
|
1689
1689
|
Za = 1;
|
|
1690
1690
|
var a = Du(), s = typeof self == "object" && self && self.Object === Object && self, r = a || s || Function("return this")();
|
|
1691
|
-
return
|
|
1691
|
+
return $i = r, $i;
|
|
1692
1692
|
}
|
|
1693
|
-
var
|
|
1693
|
+
var Ki, Ja;
|
|
1694
1694
|
function ia() {
|
|
1695
|
-
if (Ja) return
|
|
1695
|
+
if (Ja) return Ki;
|
|
1696
1696
|
Ja = 1;
|
|
1697
1697
|
var a = Ue(), s = a.Symbol;
|
|
1698
|
-
return
|
|
1698
|
+
return Ki = s, Ki;
|
|
1699
1699
|
}
|
|
1700
1700
|
var Yi, Qa;
|
|
1701
1701
|
function yf() {
|
|
@@ -2192,10 +2192,10 @@ var Bn, js;
|
|
|
2192
2192
|
function Gf() {
|
|
2193
2193
|
if (js) return Bn;
|
|
2194
2194
|
js = 1;
|
|
2195
|
-
var a = Ci(), s = Nu(), r = Vt(), t = "[object Arguments]", e = "[object Array]", i = "[object Boolean]", n = "[object Date]", o = "[object Error]", u = "[object Function]", l = "[object Map]", c = "[object Number]", f = "[object Object]", d = "[object RegExp]", g = "[object Set]", v = "[object String]", m = "[object WeakMap]", p = "[object ArrayBuffer]", x = "[object DataView]", w = "[object Float32Array]", k = "[object Float64Array]", M = "[object Int8Array]", L = "[object Int16Array]",
|
|
2196
|
-
j[w] = j[k] = j[M] = j[L] = j[
|
|
2197
|
-
function fe(
|
|
2198
|
-
return r(
|
|
2195
|
+
var a = Ci(), s = Nu(), r = Vt(), t = "[object Arguments]", e = "[object Array]", i = "[object Boolean]", n = "[object Date]", o = "[object Error]", u = "[object Function]", l = "[object Map]", c = "[object Number]", f = "[object Object]", d = "[object RegExp]", g = "[object Set]", v = "[object String]", m = "[object WeakMap]", p = "[object ArrayBuffer]", x = "[object DataView]", w = "[object Float32Array]", k = "[object Float64Array]", M = "[object Int8Array]", L = "[object Int16Array]", N = "[object Int32Array]", ie = "[object Uint8Array]", ee = "[object Uint8ClampedArray]", G = "[object Uint16Array]", H = "[object Uint32Array]", j = {};
|
|
2196
|
+
j[w] = j[k] = j[M] = j[L] = j[N] = j[ie] = j[ee] = j[G] = j[H] = !0, j[t] = j[e] = j[p] = j[i] = j[x] = j[n] = j[o] = j[u] = j[l] = j[c] = j[f] = j[d] = j[g] = j[v] = j[m] = !1;
|
|
2197
|
+
function fe(ce) {
|
|
2198
|
+
return r(ce) && s(ce.length) && !!j[a(ce)];
|
|
2199
2199
|
}
|
|
2200
2200
|
return Bn = fe, Bn;
|
|
2201
2201
|
}
|
|
@@ -2226,7 +2226,7 @@ function sa() {
|
|
|
2226
2226
|
})(Mt, Mt.exports)), Mt.exports;
|
|
2227
2227
|
}
|
|
2228
2228
|
var Un, Ws;
|
|
2229
|
-
function
|
|
2229
|
+
function $f() {
|
|
2230
2230
|
if (Ws) return Un;
|
|
2231
2231
|
Ws = 1;
|
|
2232
2232
|
var a = Gf(), s = aa(), r = sa(), t = r && r.isTypedArray, e = t ? s(t) : a;
|
|
@@ -2236,7 +2236,7 @@ var zn, Gs;
|
|
|
2236
2236
|
function Bu() {
|
|
2237
2237
|
if (Gs) return zn;
|
|
2238
2238
|
Gs = 1;
|
|
2239
|
-
var a = zf(), s = Vf(), r = ra(), t = Fu(), e = Wf(), i =
|
|
2239
|
+
var a = zf(), s = Vf(), r = ra(), t = Fu(), e = Wf(), i = $f(), n = Object.prototype, o = n.hasOwnProperty;
|
|
2240
2240
|
function u(l, c) {
|
|
2241
2241
|
var f = r(l), d = !f && s(l), g = !f && !d && t(l), v = !f && !d && !g && i(l), m = f || d || g || v, p = m ? a(l.length, String) : [], x = p.length;
|
|
2242
2242
|
for (var w in l)
|
|
@@ -2249,10 +2249,10 @@ function Bu() {
|
|
|
2249
2249
|
}
|
|
2250
2250
|
return zn = u, zn;
|
|
2251
2251
|
}
|
|
2252
|
-
var jn,
|
|
2252
|
+
var jn, $s;
|
|
2253
2253
|
function oa() {
|
|
2254
|
-
if (
|
|
2255
|
-
|
|
2254
|
+
if ($s) return jn;
|
|
2255
|
+
$s = 1;
|
|
2256
2256
|
var a = Object.prototype;
|
|
2257
2257
|
function s(r) {
|
|
2258
2258
|
var t = r && r.constructor, e = typeof t == "function" && t.prototype || a;
|
|
@@ -2260,10 +2260,10 @@ function oa() {
|
|
|
2260
2260
|
}
|
|
2261
2261
|
return jn = s, jn;
|
|
2262
2262
|
}
|
|
2263
|
-
var Vn,
|
|
2263
|
+
var Vn, Ks;
|
|
2264
2264
|
function Hu() {
|
|
2265
|
-
if (
|
|
2266
|
-
|
|
2265
|
+
if (Ks) return Vn;
|
|
2266
|
+
Ks = 1;
|
|
2267
2267
|
function a(s, r) {
|
|
2268
2268
|
return function(t) {
|
|
2269
2269
|
return s(r(t));
|
|
@@ -2272,7 +2272,7 @@ function Hu() {
|
|
|
2272
2272
|
return Vn = a, Vn;
|
|
2273
2273
|
}
|
|
2274
2274
|
var qn, Ys;
|
|
2275
|
-
function
|
|
2275
|
+
function Kf() {
|
|
2276
2276
|
if (Ys) return qn;
|
|
2277
2277
|
Ys = 1;
|
|
2278
2278
|
var a = Hu(), s = a(Object.keys, Object);
|
|
@@ -2282,7 +2282,7 @@ var Wn, Xs;
|
|
|
2282
2282
|
function Yf() {
|
|
2283
2283
|
if (Xs) return Wn;
|
|
2284
2284
|
Xs = 1;
|
|
2285
|
-
var a = oa(), s =
|
|
2285
|
+
var a = oa(), s = Kf(), r = Object.prototype, t = r.hasOwnProperty;
|
|
2286
2286
|
function e(i) {
|
|
2287
2287
|
if (!a(i))
|
|
2288
2288
|
return s(i);
|
|
@@ -2303,25 +2303,25 @@ function Uu() {
|
|
|
2303
2303
|
}
|
|
2304
2304
|
return Gn = r, Gn;
|
|
2305
2305
|
}
|
|
2306
|
-
var
|
|
2306
|
+
var $n, Js;
|
|
2307
2307
|
function ua() {
|
|
2308
|
-
if (Js) return
|
|
2308
|
+
if (Js) return $n;
|
|
2309
2309
|
Js = 1;
|
|
2310
2310
|
var a = Bu(), s = Yf(), r = Uu();
|
|
2311
2311
|
function t(e) {
|
|
2312
2312
|
return r(e) ? a(e) : s(e);
|
|
2313
2313
|
}
|
|
2314
|
-
return
|
|
2314
|
+
return $n = t, $n;
|
|
2315
2315
|
}
|
|
2316
|
-
var
|
|
2316
|
+
var Kn, Qs;
|
|
2317
2317
|
function Xf() {
|
|
2318
|
-
if (Qs) return
|
|
2318
|
+
if (Qs) return Kn;
|
|
2319
2319
|
Qs = 1;
|
|
2320
2320
|
var a = Ti(), s = ua();
|
|
2321
2321
|
function r(t, e) {
|
|
2322
2322
|
return t && a(e, s(e), t);
|
|
2323
2323
|
}
|
|
2324
|
-
return
|
|
2324
|
+
return Kn = r, Kn;
|
|
2325
2325
|
}
|
|
2326
2326
|
var Yn, eo;
|
|
2327
2327
|
function Zf() {
|
|
@@ -2545,9 +2545,9 @@ function fa() {
|
|
|
2545
2545
|
ko = 1;
|
|
2546
2546
|
var a = oh(), s = na(), r = uh(), t = lh(), e = ch(), i = Ci(), n = Ru(), o = "[object Map]", u = "[object Object]", l = "[object Promise]", c = "[object Set]", f = "[object WeakMap]", d = "[object DataView]", g = n(a), v = n(s), m = n(r), p = n(t), x = n(e), w = i;
|
|
2547
2547
|
return (a && w(new a(new ArrayBuffer(1))) != d || s && w(new s()) != o || r && w(r.resolve()) != l || t && w(new t()) != c || e && w(new e()) != f) && (w = function(k) {
|
|
2548
|
-
var M = i(k), L = M == u ? k.constructor : void 0,
|
|
2549
|
-
if (
|
|
2550
|
-
switch (
|
|
2548
|
+
var M = i(k), L = M == u ? k.constructor : void 0, N = L ? n(L) : "";
|
|
2549
|
+
if (N)
|
|
2550
|
+
switch (N) {
|
|
2551
2551
|
case g:
|
|
2552
2552
|
return d;
|
|
2553
2553
|
case v:
|
|
@@ -2638,7 +2638,7 @@ var wr, Po;
|
|
|
2638
2638
|
function mh() {
|
|
2639
2639
|
if (Po) return wr;
|
|
2640
2640
|
Po = 1;
|
|
2641
|
-
var a = ha(), s = dh(), r = gh(), t = vh(), e = ph(), i = "[object Boolean]", n = "[object Date]", o = "[object Map]", u = "[object Number]", l = "[object RegExp]", c = "[object Set]", f = "[object String]", d = "[object Symbol]", g = "[object ArrayBuffer]", v = "[object DataView]", m = "[object Float32Array]", p = "[object Float64Array]", x = "[object Int8Array]", w = "[object Int16Array]", k = "[object Int32Array]", M = "[object Uint8Array]", L = "[object Uint8ClampedArray]",
|
|
2641
|
+
var a = ha(), s = dh(), r = gh(), t = vh(), e = ph(), i = "[object Boolean]", n = "[object Date]", o = "[object Map]", u = "[object Number]", l = "[object RegExp]", c = "[object Set]", f = "[object String]", d = "[object Symbol]", g = "[object ArrayBuffer]", v = "[object DataView]", m = "[object Float32Array]", p = "[object Float64Array]", x = "[object Int8Array]", w = "[object Int16Array]", k = "[object Int32Array]", M = "[object Uint8Array]", L = "[object Uint8ClampedArray]", N = "[object Uint16Array]", ie = "[object Uint32Array]";
|
|
2642
2642
|
function ee(G, H, j) {
|
|
2643
2643
|
var fe = G.constructor;
|
|
2644
2644
|
switch (H) {
|
|
@@ -2656,7 +2656,7 @@ function mh() {
|
|
|
2656
2656
|
case k:
|
|
2657
2657
|
case M:
|
|
2658
2658
|
case L:
|
|
2659
|
-
case
|
|
2659
|
+
case N:
|
|
2660
2660
|
case ie:
|
|
2661
2661
|
return e(G, j);
|
|
2662
2662
|
case o:
|
|
@@ -2741,11 +2741,11 @@ var Pr, No;
|
|
|
2741
2741
|
function Th() {
|
|
2742
2742
|
if (No) return Pr;
|
|
2743
2743
|
No = 1;
|
|
2744
|
-
var a = Bf(), s = Hf(), r = Mu(), t = Xf(), e = Qf(), i = eh(), n = th(), o = nh(), u = rh(), l = ah(), c = sh(), f = fa(), d = fh(), g = mh(), v = _h(), m = ra(), p = Fu(), x = Ch(), w = jt(), k = wh(), M = ua(), L = la(),
|
|
2745
|
-
re[G] = re[H] = re[
|
|
2746
|
-
function
|
|
2747
|
-
var ke, Yt = mt &
|
|
2748
|
-
if (yt && (ke =
|
|
2744
|
+
var a = Bf(), s = Hf(), r = Mu(), t = Xf(), e = Qf(), i = eh(), n = th(), o = nh(), u = rh(), l = ah(), c = sh(), f = fa(), d = fh(), g = mh(), v = _h(), m = ra(), p = Fu(), x = Ch(), w = jt(), k = wh(), M = ua(), L = la(), N = 1, ie = 2, ee = 4, G = "[object Arguments]", H = "[object Array]", j = "[object Boolean]", fe = "[object Date]", ce = "[object Error]", Oe = "[object Function]", pt = "[object GeneratorFunction]", $e = "[object Map]", Me = "[object Number]", Ke = "[object Object]", S = "[object RegExp]", F = "[object Set]", I = "[object String]", y = "[object Symbol]", D = "[object WeakMap]", se = "[object ArrayBuffer]", he = "[object DataView]", ve = "[object Float32Array]", Te = "[object Float64Array]", Ne = "[object Int8Array]", at = "[object Int16Array]", Gt = "[object Int32Array]", Pt = "[object Uint8Array]", Pl = "[object Uint8ClampedArray]", Dl = "[object Uint16Array]", Ll = "[object Uint32Array]", re = {};
|
|
2745
|
+
re[G] = re[H] = re[se] = re[he] = re[j] = re[fe] = re[ve] = re[Te] = re[Ne] = re[at] = re[Gt] = re[$e] = re[Me] = re[Ke] = re[S] = re[F] = re[I] = re[y] = re[Pt] = re[Pl] = re[Dl] = re[Ll] = !0, re[ce] = re[Oe] = re[D] = !1;
|
|
2746
|
+
function $t(te, mt, yt, Rl, Kt, Ye) {
|
|
2747
|
+
var ke, Yt = mt & N, Xt = mt & ie, Ol = mt & ee;
|
|
2748
|
+
if (yt && (ke = Kt ? yt(te, Rl, Kt, Ye) : yt(te)), ke !== void 0)
|
|
2749
2749
|
return ke;
|
|
2750
2750
|
if (!w(te))
|
|
2751
2751
|
return te;
|
|
@@ -2757,12 +2757,12 @@ function Th() {
|
|
|
2757
2757
|
var _t = f(te), Aa = _t == Oe || _t == pt;
|
|
2758
2758
|
if (p(te))
|
|
2759
2759
|
return i(te, Yt);
|
|
2760
|
-
if (_t ==
|
|
2760
|
+
if (_t == Ke || _t == G || Aa && !Kt) {
|
|
2761
2761
|
if (ke = Xt || Aa ? {} : v(te), !Yt)
|
|
2762
2762
|
return Xt ? u(te, e(ke, te)) : o(te, t(ke, te));
|
|
2763
2763
|
} else {
|
|
2764
2764
|
if (!re[_t])
|
|
2765
|
-
return
|
|
2765
|
+
return Kt ? te : {};
|
|
2766
2766
|
ke = g(te, _t, Yt);
|
|
2767
2767
|
}
|
|
2768
2768
|
}
|
|
@@ -2771,16 +2771,16 @@ function Th() {
|
|
|
2771
2771
|
if (Ea)
|
|
2772
2772
|
return Ea;
|
|
2773
2773
|
Ye.set(te, ke), k(te) ? te.forEach(function(Xe) {
|
|
2774
|
-
ke.add(
|
|
2774
|
+
ke.add($t(Xe, mt, yt, Xe, te, Ye));
|
|
2775
2775
|
}) : x(te) && te.forEach(function(Xe, st) {
|
|
2776
|
-
ke.set(st,
|
|
2776
|
+
ke.set(st, $t(Xe, mt, yt, st, te, Ye));
|
|
2777
2777
|
});
|
|
2778
2778
|
var Ml = Ol ? Xt ? c : l : Xt ? L : M, xa = Sa ? void 0 : Ml(te);
|
|
2779
2779
|
return s(xa || te, function(Xe, st) {
|
|
2780
|
-
xa && (st = Xe, Xe = te[st]), r(ke, st,
|
|
2780
|
+
xa && (st = Xe, Xe = te[st]), r(ke, st, $t(Xe, mt, yt, st, te, Ye));
|
|
2781
2781
|
}), ke;
|
|
2782
2782
|
}
|
|
2783
|
-
return Pr =
|
|
2783
|
+
return Pr = $t, Pr;
|
|
2784
2784
|
}
|
|
2785
2785
|
var Dr, Bo;
|
|
2786
2786
|
function Sh() {
|
|
@@ -2792,7 +2792,7 @@ function Sh() {
|
|
|
2792
2792
|
}
|
|
2793
2793
|
return Dr = t, Dr;
|
|
2794
2794
|
}
|
|
2795
|
-
var Ah = Sh(), Eh = /* @__PURE__ */ uf(Ah), da =
|
|
2795
|
+
var Ah = Sh(), Eh = /* @__PURE__ */ uf(Ah), da = le({
|
|
2796
2796
|
name: "DocumentEditor",
|
|
2797
2797
|
props: {
|
|
2798
2798
|
id: {
|
|
@@ -2976,7 +2976,7 @@ function Ih(a, s, r, t, e, i) {
|
|
|
2976
2976
|
}
|
|
2977
2977
|
da.render = Ih;
|
|
2978
2978
|
da.__file = "src/components/DocumentEditor.vue";
|
|
2979
|
-
const Ph = /* @__PURE__ */
|
|
2979
|
+
const Ph = /* @__PURE__ */ le({
|
|
2980
2980
|
__name: "IkOnlyOffice",
|
|
2981
2981
|
props: {
|
|
2982
2982
|
// 文件服务器的服务的地址
|
|
@@ -3028,7 +3028,7 @@ var Ho;
|
|
|
3028
3028
|
const Gu = typeof window < "u", Lh = (a) => typeof a == "string", Rh = () => {
|
|
3029
3029
|
};
|
|
3030
3030
|
Gu && ((Ho = window == null ? void 0 : window.navigator) != null && Ho.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
3031
|
-
function
|
|
3031
|
+
function $u(a) {
|
|
3032
3032
|
return typeof a == "function" ? a() : C(a);
|
|
3033
3033
|
}
|
|
3034
3034
|
function Oh(a) {
|
|
@@ -3039,7 +3039,7 @@ function Mh(a) {
|
|
|
3039
3039
|
}
|
|
3040
3040
|
function Fh(a) {
|
|
3041
3041
|
var s;
|
|
3042
|
-
const r =
|
|
3042
|
+
const r = $u(a);
|
|
3043
3043
|
return (s = r == null ? void 0 : r.$el) != null ? s : r;
|
|
3044
3044
|
}
|
|
3045
3045
|
const Nh = Gu ? window : void 0;
|
|
@@ -3050,7 +3050,7 @@ function Qt(...a) {
|
|
|
3050
3050
|
Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
|
|
3051
3051
|
const i = [], n = () => {
|
|
3052
3052
|
i.forEach((c) => c()), i.length = 0;
|
|
3053
|
-
}, o = (c, f, d, g) => (c.addEventListener(f, d, g), () => c.removeEventListener(f, d, g)), u = Bt(() => [Fh(s),
|
|
3053
|
+
}, o = (c, f, d, g) => (c.addEventListener(f, d, g), () => c.removeEventListener(f, d, g)), u = Bt(() => [Fh(s), $u(e)], ([c, f]) => {
|
|
3054
3054
|
n(), c && i.push(...r.flatMap((d) => t.map((g) => o(c, d, g, f))));
|
|
3055
3055
|
}, { immediate: !0, flush: "post" }), l = () => {
|
|
3056
3056
|
u(), n();
|
|
@@ -3174,7 +3174,7 @@ const Vh = {
|
|
|
3174
3174
|
close: () => !0,
|
|
3175
3175
|
switch: (a) => La.isNumber(a),
|
|
3176
3176
|
rotate: (a) => La.isNumber(a)
|
|
3177
|
-
}, Wh = ["src", "crossorigin"], Gh = /* @__PURE__ */
|
|
3177
|
+
}, Wh = ["src", "crossorigin"], Gh = /* @__PURE__ */ le({
|
|
3178
3178
|
name: "ElImageViewer",
|
|
3179
3179
|
__name: "IkImageViewer",
|
|
3180
3180
|
props: Vh,
|
|
@@ -3189,26 +3189,26 @@ const Vh = {
|
|
|
3189
3189
|
name: "original",
|
|
3190
3190
|
icon: Ia(gc)
|
|
3191
3191
|
}
|
|
3192
|
-
}, i = a, n = r, { t: o } = Gl(), u = Su("image-viewer"), { nextZIndex: l } =
|
|
3192
|
+
}, i = a, n = r, { t: o } = Gl(), u = Su("image-viewer"), { nextZIndex: l } = $l(), c = Ce(), f = Ce([]), d = Ul(), g = Ce(!0), v = Ce(i.initialIndex), m = zl(e.CONTAIN), p = Ce({
|
|
3193
3193
|
scale: 1,
|
|
3194
3194
|
deg: 0,
|
|
3195
3195
|
offsetX: 0,
|
|
3196
3196
|
offsetY: 0,
|
|
3197
3197
|
enableTransition: !1
|
|
3198
|
-
}), x = Ce(i.zIndex ?? l()), w =
|
|
3198
|
+
}), x = Ce(i.zIndex ?? l()), w = ue(() => {
|
|
3199
3199
|
const { urlList: I } = i;
|
|
3200
3200
|
return I.length <= 1;
|
|
3201
|
-
}), k =
|
|
3201
|
+
}), k = ue(() => v.value === 0), M = ue(() => v.value === i.urlList.length - 1), L = ue(() => i.urlList[v.value]), N = ue(() => [
|
|
3202
3202
|
u.e("btn"),
|
|
3203
3203
|
u.e("prev"),
|
|
3204
3204
|
u.is("disabled", !i.infinite && k.value)
|
|
3205
|
-
]), ie =
|
|
3205
|
+
]), ie = ue(() => [
|
|
3206
3206
|
u.e("btn"),
|
|
3207
3207
|
u.e("next"),
|
|
3208
3208
|
u.is("disabled", !i.infinite && M.value)
|
|
3209
|
-
]), ee =
|
|
3210
|
-
const { scale: I, deg: y, offsetX: D, offsetY:
|
|
3211
|
-
let ve = D / I, Te =
|
|
3209
|
+
]), ee = ue(() => {
|
|
3210
|
+
const { scale: I, deg: y, offsetX: D, offsetY: se, enableTransition: he } = p.value;
|
|
3211
|
+
let ve = D / I, Te = se / I;
|
|
3212
3212
|
const Ne = y * Math.PI / 180, at = Math.cos(Ne), Gt = Math.sin(Ne);
|
|
3213
3213
|
ve = ve * at + Te * Gt, Te = Te * at - D / I * Gt;
|
|
3214
3214
|
const Pt = {
|
|
@@ -3229,15 +3229,15 @@ const Vh = {
|
|
|
3229
3229
|
break;
|
|
3230
3230
|
// SPACE
|
|
3231
3231
|
case Ct.space:
|
|
3232
|
-
|
|
3232
|
+
$e();
|
|
3233
3233
|
break;
|
|
3234
3234
|
// LEFT_ARROW
|
|
3235
3235
|
case Ct.left:
|
|
3236
|
-
|
|
3236
|
+
Ke();
|
|
3237
3237
|
break;
|
|
3238
3238
|
// UP_ARROW
|
|
3239
3239
|
case Ct.up:
|
|
3240
|
-
|
|
3240
|
+
F("zoomIn");
|
|
3241
3241
|
break;
|
|
3242
3242
|
// RIGHT_ARROW
|
|
3243
3243
|
case Ct.right:
|
|
@@ -3245,12 +3245,12 @@ const Vh = {
|
|
|
3245
3245
|
break;
|
|
3246
3246
|
// DOWN_ARROW
|
|
3247
3247
|
case Ct.down:
|
|
3248
|
-
|
|
3248
|
+
F("zoomOut");
|
|
3249
3249
|
break;
|
|
3250
3250
|
}
|
|
3251
3251
|
}), y = Li.throttle((D) => {
|
|
3252
|
-
const
|
|
3253
|
-
|
|
3252
|
+
const se = D.deltaY || D.deltaX;
|
|
3253
|
+
F(se < 0 ? "zoomIn" : "zoomOut", {
|
|
3254
3254
|
zoomRate: i.zoomRate,
|
|
3255
3255
|
enableTransition: !1
|
|
3256
3256
|
});
|
|
@@ -3265,16 +3265,16 @@ const Vh = {
|
|
|
3265
3265
|
function fe() {
|
|
3266
3266
|
g.value = !1;
|
|
3267
3267
|
}
|
|
3268
|
-
function
|
|
3268
|
+
function ce(I) {
|
|
3269
3269
|
g.value = !1, I.target.alt = o("el.image.error");
|
|
3270
3270
|
}
|
|
3271
3271
|
function Oe(I) {
|
|
3272
3272
|
if (g.value || I.button !== 0 || !c.value) return;
|
|
3273
3273
|
p.value.enableTransition = !1;
|
|
3274
|
-
const { offsetX: y, offsetY: D } = p.value,
|
|
3274
|
+
const { offsetX: y, offsetY: D } = p.value, se = I.pageX, he = I.pageY, ve = Li.throttle((Ne) => {
|
|
3275
3275
|
p.value = {
|
|
3276
3276
|
...p.value,
|
|
3277
|
-
offsetX: y + Ne.pageX -
|
|
3277
|
+
offsetX: y + Ne.pageX - se,
|
|
3278
3278
|
offsetY: D + Ne.pageY - he
|
|
3279
3279
|
};
|
|
3280
3280
|
}), Te = Qt(document, "mousemove", ve);
|
|
@@ -3291,7 +3291,7 @@ const Vh = {
|
|
|
3291
3291
|
enableTransition: !1
|
|
3292
3292
|
};
|
|
3293
3293
|
}
|
|
3294
|
-
function
|
|
3294
|
+
function $e() {
|
|
3295
3295
|
if (g.value) return;
|
|
3296
3296
|
const I = t(e), y = Object.values(e), D = m.value.name, he = ((y == null ? void 0 : y.findIndex((ve) => ve.name === D)) + 1) % I.length;
|
|
3297
3297
|
m.value = e[I[he]], pt();
|
|
@@ -3300,15 +3300,15 @@ const Vh = {
|
|
|
3300
3300
|
const y = i.urlList.length;
|
|
3301
3301
|
v.value = (I + y) % y;
|
|
3302
3302
|
}
|
|
3303
|
-
function
|
|
3303
|
+
function Ke() {
|
|
3304
3304
|
k.value && !i.infinite || Me(v.value - 1);
|
|
3305
3305
|
}
|
|
3306
3306
|
function S() {
|
|
3307
3307
|
M.value && !i.infinite || Me(v.value + 1);
|
|
3308
3308
|
}
|
|
3309
|
-
function
|
|
3309
|
+
function F(I, y = {}) {
|
|
3310
3310
|
if (g.value) return;
|
|
3311
|
-
const { minScale: D, maxScale:
|
|
3311
|
+
const { minScale: D, maxScale: se } = i, { zoomRate: he, rotateDeg: ve, enableTransition: Te } = {
|
|
3312
3312
|
zoomRate: i.zoomRate,
|
|
3313
3313
|
rotateDeg: 90,
|
|
3314
3314
|
enableTransition: !0,
|
|
@@ -3321,7 +3321,7 @@ const Vh = {
|
|
|
3321
3321
|
));
|
|
3322
3322
|
break;
|
|
3323
3323
|
case "zoomIn":
|
|
3324
|
-
p.value.scale <
|
|
3324
|
+
p.value.scale < se && (p.value.scale = Number.parseFloat(
|
|
3325
3325
|
(p.value.scale * he).toFixed(3)
|
|
3326
3326
|
));
|
|
3327
3327
|
break;
|
|
@@ -3402,8 +3402,8 @@ const Vh = {
|
|
|
3402
3402
|
A(
|
|
3403
3403
|
"span",
|
|
3404
3404
|
{
|
|
3405
|
-
class: J(
|
|
3406
|
-
onClick:
|
|
3405
|
+
class: J(N.value),
|
|
3406
|
+
onClick: Ke
|
|
3407
3407
|
},
|
|
3408
3408
|
[
|
|
3409
3409
|
q(C(Ae), null, {
|
|
@@ -3453,7 +3453,7 @@ const Vh = {
|
|
|
3453
3453
|
},
|
|
3454
3454
|
[
|
|
3455
3455
|
q(C(Ae), {
|
|
3456
|
-
onClick: y[1] || (y[1] = (D) =>
|
|
3456
|
+
onClick: y[1] || (y[1] = (D) => F("zoomOut"))
|
|
3457
3457
|
}, {
|
|
3458
3458
|
default: Y(() => [
|
|
3459
3459
|
q(C(kc))
|
|
@@ -3462,7 +3462,7 @@ const Vh = {
|
|
|
3462
3462
|
/* STABLE */
|
|
3463
3463
|
}),
|
|
3464
3464
|
q(C(Ae), {
|
|
3465
|
-
onClick: y[2] || (y[2] = (D) =>
|
|
3465
|
+
onClick: y[2] || (y[2] = (D) => F("zoomIn"))
|
|
3466
3466
|
}, {
|
|
3467
3467
|
default: Y(() => [
|
|
3468
3468
|
q(C(bc))
|
|
@@ -3479,7 +3479,7 @@ const Vh = {
|
|
|
3479
3479
|
2
|
|
3480
3480
|
/* CLASS */
|
|
3481
3481
|
),
|
|
3482
|
-
q(C(Ae), { onClick:
|
|
3482
|
+
q(C(Ae), { onClick: $e }, {
|
|
3483
3483
|
default: Y(() => [
|
|
3484
3484
|
(T(), Z(Vl(m.value.icon)))
|
|
3485
3485
|
]),
|
|
@@ -3496,7 +3496,7 @@ const Vh = {
|
|
|
3496
3496
|
/* CLASS */
|
|
3497
3497
|
),
|
|
3498
3498
|
q(C(Ae), {
|
|
3499
|
-
onClick: y[3] || (y[3] = (D) =>
|
|
3499
|
+
onClick: y[3] || (y[3] = (D) => F("anticlockwise"))
|
|
3500
3500
|
}, {
|
|
3501
3501
|
default: Y(() => [
|
|
3502
3502
|
q(C(cc))
|
|
@@ -3505,7 +3505,7 @@ const Vh = {
|
|
|
3505
3505
|
/* STABLE */
|
|
3506
3506
|
}),
|
|
3507
3507
|
q(C(Ae), {
|
|
3508
|
-
onClick: y[4] || (y[4] = (D) =>
|
|
3508
|
+
onClick: y[4] || (y[4] = (D) => F("clockwise"))
|
|
3509
3509
|
}, {
|
|
3510
3510
|
default: Y(() => [
|
|
3511
3511
|
q(C(hc))
|
|
@@ -3531,19 +3531,19 @@ const Vh = {
|
|
|
3531
3531
|
(T(!0), P(
|
|
3532
3532
|
be,
|
|
3533
3533
|
null,
|
|
3534
|
-
Tu(I.urlList, (D,
|
|
3534
|
+
Tu(I.urlList, (D, se) => ql((T(), P("img", {
|
|
3535
3535
|
ref_for: !0,
|
|
3536
|
-
ref: (he) => f.value[
|
|
3536
|
+
ref: (he) => f.value[se] = he,
|
|
3537
3537
|
key: D,
|
|
3538
3538
|
src: D,
|
|
3539
3539
|
style: De(ee.value),
|
|
3540
3540
|
class: J(C(u).e("img")),
|
|
3541
3541
|
crossorigin: I.crossorigin,
|
|
3542
3542
|
onLoad: fe,
|
|
3543
|
-
onError:
|
|
3543
|
+
onError: ce,
|
|
3544
3544
|
onMousedown: Oe
|
|
3545
3545
|
}, null, 46, Wh)), [
|
|
3546
|
-
[Wl,
|
|
3546
|
+
[Wl, se === v.value]
|
|
3547
3547
|
])),
|
|
3548
3548
|
128
|
|
3549
3549
|
/* KEYED_FRAGMENT */
|
|
@@ -3563,8 +3563,8 @@ const Vh = {
|
|
|
3563
3563
|
})
|
|
3564
3564
|
]));
|
|
3565
3565
|
}
|
|
3566
|
-
}),
|
|
3567
|
-
function
|
|
3566
|
+
}), $h = nt(Gh);
|
|
3567
|
+
function Kh(a, s) {
|
|
3568
3568
|
var r = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
3569
3569
|
if (r != null) {
|
|
3570
3570
|
var t, e, i, n, o = [], u = !0, l = !1;
|
|
@@ -3595,7 +3595,7 @@ function Wo(a, s) {
|
|
|
3595
3595
|
}
|
|
3596
3596
|
return r;
|
|
3597
3597
|
}
|
|
3598
|
-
function
|
|
3598
|
+
function oe(a) {
|
|
3599
3599
|
for (var s = 1; s < arguments.length; s++) {
|
|
3600
3600
|
var r = arguments[s] != null ? arguments[s] : {};
|
|
3601
3601
|
s % 2 ? Wo(Object(r), !0).forEach(function(t) {
|
|
@@ -3711,10 +3711,10 @@ function W() {
|
|
|
3711
3711
|
}, W.apply(this, arguments);
|
|
3712
3712
|
}
|
|
3713
3713
|
function Zh(a, s) {
|
|
3714
|
-
return Qh(a) ||
|
|
3714
|
+
return Qh(a) || Kh(a, s) || Ku(a, s) || id();
|
|
3715
3715
|
}
|
|
3716
3716
|
function Fe(a) {
|
|
3717
|
-
return Jh(a) || ed(a) ||
|
|
3717
|
+
return Jh(a) || ed(a) || Ku(a) || td();
|
|
3718
3718
|
}
|
|
3719
3719
|
function Jh(a) {
|
|
3720
3720
|
if (Array.isArray(a))
|
|
@@ -3728,7 +3728,7 @@ function ed(a) {
|
|
|
3728
3728
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
3729
3729
|
return Array.from(a);
|
|
3730
3730
|
}
|
|
3731
|
-
function
|
|
3731
|
+
function Ku(a, s) {
|
|
3732
3732
|
if (a) {
|
|
3733
3733
|
if (typeof a == "string")
|
|
3734
3734
|
return Xr(a, s);
|
|
@@ -3769,9 +3769,9 @@ function Yu(a) {
|
|
|
3769
3769
|
var s = nd(a, "string");
|
|
3770
3770
|
return typeof s == "symbol" ? s : String(s);
|
|
3771
3771
|
}
|
|
3772
|
-
var Lr = { exports: {} },
|
|
3772
|
+
var Lr = { exports: {} }, $o;
|
|
3773
3773
|
function rd() {
|
|
3774
|
-
return
|
|
3774
|
+
return $o || ($o = 1, (function(a) {
|
|
3775
3775
|
var s = Object.prototype.hasOwnProperty, r = "~";
|
|
3776
3776
|
function t() {
|
|
3777
3777
|
}
|
|
@@ -3882,7 +3882,7 @@ var ad = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
3882
3882
|
info: "color: #525252; background-color: #90ee90;",
|
|
3883
3883
|
error: "color: #525252; background-color: red;",
|
|
3884
3884
|
warn: "color: #525252; background-color: yellow; "
|
|
3885
|
-
}, Or = "%c[xgplayer]",
|
|
3885
|
+
}, Or = "%c[xgplayer]", K = {
|
|
3886
3886
|
config: {
|
|
3887
3887
|
debug: ad ? 3 : 0
|
|
3888
3888
|
},
|
|
@@ -3906,7 +3906,7 @@ var ad = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
3906
3906
|
}
|
|
3907
3907
|
};
|
|
3908
3908
|
function sd(a) {
|
|
3909
|
-
a.logInfo =
|
|
3909
|
+
a.logInfo = K.logInfo.bind(a), a.logWarn = K.logWarn.bind(a), a.logError = K.logError.bind(a);
|
|
3910
3910
|
}
|
|
3911
3911
|
var od = /* @__PURE__ */ (function() {
|
|
3912
3912
|
function a(s) {
|
|
@@ -3946,7 +3946,7 @@ h.createDomFromHtml = function(a) {
|
|
|
3946
3946
|
e.setAttribute(i, s[i]);
|
|
3947
3947
|
}), e) : null;
|
|
3948
3948
|
} catch (i) {
|
|
3949
|
-
return
|
|
3949
|
+
return K.logError("util.createDomFromHtml", i), null;
|
|
3950
3950
|
}
|
|
3951
3951
|
};
|
|
3952
3952
|
h.hasClass = function(a, s) {
|
|
@@ -4003,7 +4003,7 @@ h.findDom = function() {
|
|
|
4003
4003
|
try {
|
|
4004
4004
|
r = a.querySelector(s);
|
|
4005
4005
|
} catch (t) {
|
|
4006
|
-
|
|
4006
|
+
K.logError("util.findDom", t), s.indexOf("#") === 0 && (r = a.getElementById(s.slice(1)));
|
|
4007
4007
|
}
|
|
4008
4008
|
return r;
|
|
4009
4009
|
};
|
|
@@ -4377,8 +4377,8 @@ function ld(a, s, r) {
|
|
|
4377
4377
|
return l = H, o = m(M, s), c ? v(H) : n;
|
|
4378
4378
|
}
|
|
4379
4379
|
function w(H) {
|
|
4380
|
-
var j = H - u, fe = H - l,
|
|
4381
|
-
return f ? Math.min(
|
|
4380
|
+
var j = H - u, fe = H - l, ce = s - j;
|
|
4381
|
+
return f ? Math.min(ce, i - fe) : ce;
|
|
4382
4382
|
}
|
|
4383
4383
|
function k(H) {
|
|
4384
4384
|
var j = H - u, fe = H - l;
|
|
@@ -4393,7 +4393,7 @@ function ld(a, s, r) {
|
|
|
4393
4393
|
function L(H) {
|
|
4394
4394
|
return o = void 0, d && t ? v(H) : (t = e = void 0, n);
|
|
4395
4395
|
}
|
|
4396
|
-
function
|
|
4396
|
+
function N() {
|
|
4397
4397
|
o !== void 0 && p(o), l = 0, t = u = e = o = void 0;
|
|
4398
4398
|
}
|
|
4399
4399
|
function ie() {
|
|
@@ -4403,9 +4403,9 @@ function ld(a, s, r) {
|
|
|
4403
4403
|
return o !== void 0;
|
|
4404
4404
|
}
|
|
4405
4405
|
function G() {
|
|
4406
|
-
for (var H = Date.now(), j = k(H), fe = arguments.length,
|
|
4407
|
-
|
|
4408
|
-
if (t =
|
|
4406
|
+
for (var H = Date.now(), j = k(H), fe = arguments.length, ce = new Array(fe), Oe = 0; Oe < fe; Oe++)
|
|
4407
|
+
ce[Oe] = arguments[Oe];
|
|
4408
|
+
if (t = ce, e = this, u = H, j) {
|
|
4409
4409
|
if (o === void 0)
|
|
4410
4410
|
return x(u);
|
|
4411
4411
|
if (f)
|
|
@@ -4413,7 +4413,7 @@ function ld(a, s, r) {
|
|
|
4413
4413
|
}
|
|
4414
4414
|
return o === void 0 && (o = m(M, s)), n;
|
|
4415
4415
|
}
|
|
4416
|
-
return G.cancel =
|
|
4416
|
+
return G.cancel = N, G.flush = ie, G.pending = ee, G;
|
|
4417
4417
|
}
|
|
4418
4418
|
function cd(a, s, r) {
|
|
4419
4419
|
var t = !0, e = !0;
|
|
@@ -4439,9 +4439,9 @@ var Mr = {
|
|
|
4439
4439
|
android: /(Android)\s([\d.]+)/,
|
|
4440
4440
|
harmony: /(OpenHarmony|HarmonyOS)\s([\d.]+)/,
|
|
4441
4441
|
ios: /(Version)\/([\d.]+)/
|
|
4442
|
-
}, dd = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"],
|
|
4442
|
+
}, dd = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], $ = {
|
|
4443
4443
|
get device() {
|
|
4444
|
-
var a =
|
|
4444
|
+
var a = $.os;
|
|
4445
4445
|
return a.isPc ? "pc" : "mobile";
|
|
4446
4446
|
},
|
|
4447
4447
|
get browser() {
|
|
@@ -4544,7 +4544,7 @@ var Mr = {
|
|
|
4544
4544
|
return Promise.resolve(r);
|
|
4545
4545
|
}
|
|
4546
4546
|
}
|
|
4547
|
-
}, Zr = "3.0.24",
|
|
4547
|
+
}, Zr = "3.0.24", Ko = {
|
|
4548
4548
|
1: "media",
|
|
4549
4549
|
2: "media",
|
|
4550
4550
|
3: "media",
|
|
@@ -4726,7 +4726,7 @@ var Ad = /* @__PURE__ */ (function(a) {
|
|
|
4726
4726
|
"data-index": -1
|
|
4727
4727
|
}, t.videoConfig, t.videoAttributes);
|
|
4728
4728
|
var i = t["x5-video-player-type"] || t.x5VideoPlayerType;
|
|
4729
|
-
return
|
|
4729
|
+
return $.isWeixin && $.os.isAndroid && i && (e.mediaConfig["x5-video-player-type"] = i, delete e.mediaConfig.playsinline, delete e.mediaConfig["webkit-playsinline"], delete e.mediaConfig["x5-playsinline"]), t.loop && (e.mediaConfig.loop = "loop"), t.autoplayMuted && !Object.prototype.hasOwnProperty.call(e.mediaConfig, "muted") && (e.mediaConfig.muted = !0), e.media = t.mediaEl instanceof HTMLMediaElement ? t.mediaEl : typeof t.mediaEl == "function" ? t.mediaEl(e.mediaConfig) : h.createDom(e.mediaConfig.mediaType, "", e.mediaConfig, ""), t.defaultPlaybackRate && (e.media.defaultPlaybackRate = e.media.playbackRate = t.defaultPlaybackRate), h.typeOf(t.volume) === "Number" && (e.volume = t.volume), t.autoplayMuted && (e.media.muted = !0, e._lastMuted = !0), t.autoplay && (e.media.autoplay = !0), t.playsinline && (e.media.playsinline = !0), e._interval = {}, e.mediaEventMiddleware = {}, e.attachVideoEvents(), e;
|
|
4730
4730
|
}
|
|
4731
4731
|
return O(r, [{
|
|
4732
4732
|
key: "setEventsMiddleware",
|
|
@@ -4801,7 +4801,7 @@ var Ad = /* @__PURE__ */ (function(a) {
|
|
|
4801
4801
|
};
|
|
4802
4802
|
u ? u.error(f, g) : n.errorHandler("error", g);
|
|
4803
4803
|
}
|
|
4804
|
-
var v =
|
|
4804
|
+
var v = Ko[4];
|
|
4805
4805
|
n.emit(fl, new si(n, {
|
|
4806
4806
|
errorType: v,
|
|
4807
4807
|
errorCode: 4,
|
|
@@ -4835,7 +4835,7 @@ var Ad = /* @__PURE__ */ (function(a) {
|
|
|
4835
4835
|
value: function(e) {
|
|
4836
4836
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
4837
4837
|
if (this.media && (this.media.error || i)) {
|
|
4838
|
-
var n = this.media.error || i, o = n.code ?
|
|
4838
|
+
var n = this.media.error || i, o = n.code ? Ko[n.code] : "other", u = n.message;
|
|
4839
4839
|
this.media.currentSrc || this.media.srcObject || (u = "empty_src", n = {
|
|
4840
4840
|
code: 6,
|
|
4841
4841
|
message: u
|
|
@@ -5323,7 +5323,7 @@ function Le(a, s, r) {
|
|
|
5323
5323
|
return r.call.apply(r, [a, a].concat(e));
|
|
5324
5324
|
}
|
|
5325
5325
|
function Nr(a, s) {
|
|
5326
|
-
|
|
5326
|
+
K.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(s));
|
|
5327
5327
|
}
|
|
5328
5328
|
var it = /* @__PURE__ */ (function() {
|
|
5329
5329
|
function a(s) {
|
|
@@ -5445,7 +5445,7 @@ var it = /* @__PURE__ */ (function() {
|
|
|
5445
5445
|
value: function(r, t) {
|
|
5446
5446
|
var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5447
5447
|
if (this.player) {
|
|
5448
|
-
var i =
|
|
5448
|
+
var i = oe(oe({}, e), {}, {
|
|
5449
5449
|
pluginName: this.pluginName
|
|
5450
5450
|
});
|
|
5451
5451
|
this.player.emitUserAction(r, t, i);
|
|
@@ -5603,11 +5603,11 @@ function au(a, s) {
|
|
|
5603
5603
|
try {
|
|
5604
5604
|
return i = a(), i instanceof window.Element ? (h.addClass(i, r), Object.keys(t).map(function(n) {
|
|
5605
5605
|
i.setAttribute(n, t[n]);
|
|
5606
|
-
}), i) : (
|
|
5606
|
+
}), i) : (K.logWarn("warn>>icons.".concat(s, " in config of plugin named [").concat(e, "] is a function mast return an Element Object")), null);
|
|
5607
5607
|
} catch (n) {
|
|
5608
|
-
return
|
|
5608
|
+
return K.logError("Plugin named [".concat(e, "]:createIcon"), n), null;
|
|
5609
5609
|
}
|
|
5610
|
-
return typeof a == "string" ? h.createDomFromHtml(a, t, r) : (
|
|
5610
|
+
return typeof a == "string" ? h.createDomFromHtml(a, t, r) : (K.logWarn("warn>>icons.".concat(s, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
5611
5611
|
}
|
|
5612
5612
|
function Od(a, s) {
|
|
5613
5613
|
var r = s.config.icons || s.playerConfig.icons;
|
|
@@ -5647,7 +5647,7 @@ var Q = /* @__PURE__ */ (function(a) {
|
|
|
5647
5647
|
try {
|
|
5648
5648
|
l = this.render();
|
|
5649
5649
|
} catch (d) {
|
|
5650
|
-
throw
|
|
5650
|
+
throw K.logError("Plugin:".concat(this.pluginName, ":render"), d), new Error("Plugin:".concat(this.pluginName, ":render:").concat(d.message));
|
|
5651
5651
|
}
|
|
5652
5652
|
if (l)
|
|
5653
5653
|
n = r.insert(l, i, e.index), n.setAttribute("data-index", e.index);
|
|
@@ -5845,7 +5845,7 @@ var Q = /* @__PURE__ */ (function(a) {
|
|
|
5845
5845
|
try {
|
|
5846
5846
|
return typeof e == "string" ? this.find(e).appendChild(i) : e.appendChild(i);
|
|
5847
5847
|
} catch (n) {
|
|
5848
|
-
return
|
|
5848
|
+
return K.logError("Plugin:appendChild", n), null;
|
|
5849
5849
|
}
|
|
5850
5850
|
}
|
|
5851
5851
|
}, {
|
|
@@ -6334,7 +6334,7 @@ var Hd = function(s, r) {
|
|
|
6334
6334
|
return O(r, [{
|
|
6335
6335
|
key: "beforeCreate",
|
|
6336
6336
|
value: function(e) {
|
|
6337
|
-
!e.config.mode &&
|
|
6337
|
+
!e.config.mode && $.device === "mobile" && (e.config.mode = "flex"), e.player.config.marginControls && (e.config.autoHide = !1);
|
|
6338
6338
|
}
|
|
6339
6339
|
}, {
|
|
6340
6340
|
key: "afterCreate",
|
|
@@ -6351,7 +6351,7 @@ var Hd = function(s, r) {
|
|
|
6351
6351
|
f ? h.addClass(e.root, "mini-controls") : h.removeClass(e.root, "mini-controls");
|
|
6352
6352
|
});
|
|
6353
6353
|
var c = this.playerConfig.isMobileSimulateMode;
|
|
6354
|
-
|
|
6354
|
+
$.device !== "mobile" && c !== "mobile" && (this.bind("mouseenter", this.onMouseEnter), this.bind("mouseleave", this.onMouseLeave));
|
|
6355
6355
|
}
|
|
6356
6356
|
}
|
|
6357
6357
|
}, {
|
|
@@ -6431,7 +6431,7 @@ var Hd = function(s, r) {
|
|
|
6431
6431
|
}, {
|
|
6432
6432
|
key: "destroy",
|
|
6433
6433
|
value: function() {
|
|
6434
|
-
|
|
6434
|
+
$.device !== "mobile" && (this.unbind("mouseenter", this.onMouseEnter), this.unbind("mouseleave", this.onMouseLeave)), this.left = null, this.center = null, this.right = null, this.innerRoot = null;
|
|
6435
6435
|
}
|
|
6436
6436
|
}, {
|
|
6437
6437
|
key: "render",
|
|
@@ -6731,7 +6731,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
6731
6731
|
n = s.call(this, o), b(_(n), "canPlayFunc", function() {
|
|
6732
6732
|
if (n.config) {
|
|
6733
6733
|
var p = n.config, x = p.autoplay, w = p.defaultPlaybackRate;
|
|
6734
|
-
|
|
6734
|
+
K.logInfo("player", "canPlayFunc, startTime", n.__startTime), n._seekToStartTime(), n.playbackRate = w, (x || n._useAutoplay) && n.mediaPlay(), n.off(Ve, n.canPlayFunc), n.removeClass(E.ENTER);
|
|
6735
6735
|
}
|
|
6736
6736
|
}), b(_(n), "onFullscreenChange", function(p, x) {
|
|
6737
6737
|
var w = function() {
|
|
@@ -6756,8 +6756,8 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
6756
6756
|
w(), !n.config.closeFocusVideoFocus && n.media.focus(), n.fullscreen = !0, n.changeFullStyle(n.root, k, E.FULLSCREEN), n.emit(je, !0, n._fullScreenOffset), n.cssfullscreen && n.exitCssFullscreen();
|
|
6757
6757
|
else if (n.fullscreen) {
|
|
6758
6758
|
w();
|
|
6759
|
-
var L = _(n),
|
|
6760
|
-
if (ie.needFullscreenScroll ? (window.scrollTo(
|
|
6759
|
+
var L = _(n), N = L._fullScreenOffset, ie = L.config;
|
|
6760
|
+
if (ie.needFullscreenScroll ? (window.scrollTo(N.left, N.top), h.setTimeout(_(n), function() {
|
|
6761
6761
|
n.fullscreen = !1, n._fullScreenOffset = null;
|
|
6762
6762
|
}, 100)) : (!n.config.closeFocusVideoFocus && n.media.focus(), n.fullscreen = !1, n._fullScreenOffset = null), n.cssfullscreen)
|
|
6763
6763
|
n.removeClass(E.FULLSCREEN);
|
|
@@ -6799,7 +6799,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
6799
6799
|
}, n._offsetInfo = {
|
|
6800
6800
|
currentTime: -1,
|
|
6801
6801
|
duration: 0
|
|
6802
|
-
}, n.innerContainer = null, n.controls = null, n.topBar = null, n.root = null, n.__i18n = xt.init(n._pluginInfoId),
|
|
6802
|
+
}, n.innerContainer = null, n.controls = null, n.topBar = null, n.root = null, n.__i18n = xt.init(n._pluginInfoId), $.os.isAndroid && $.osVersion > 0 && $.osVersion < 6 && (n.config.autoplay = !1), n.database = new Ed(), n.isUserActive = !1, n._onceSeekCanplay = null, n._isPauseBeforeSeek = 0, n.innerStates = {
|
|
6803
6803
|
isActiveLocked: !1
|
|
6804
6804
|
}, n.instManager = Ze;
|
|
6805
6805
|
var c = n._initDOM();
|
|
@@ -6832,13 +6832,13 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
6832
6832
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
6833
6833
|
}
|
|
6834
6834
|
var o = qd(this.root);
|
|
6835
|
-
if (o && (
|
|
6835
|
+
if (o && (K.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), o.destroy()), this.root.setAttribute(et, this.playerId), this.media.setAttribute(et, this.playerId), (e = Ze) === null || e === void 0 || e.add(this), me.init(this), this._initBaseDoms(), this.config.controls) {
|
|
6836
6836
|
var u = this.config.controls.root || null, l = me.register(this, Ud, {
|
|
6837
6837
|
root: u
|
|
6838
6838
|
});
|
|
6839
6839
|
this.controls = l;
|
|
6840
6840
|
}
|
|
6841
|
-
var c = this.config.isMobileSimulateMode === "mobile" ? "mobile" :
|
|
6841
|
+
var c = this.config.isMobileSimulateMode === "mobile" ? "mobile" : $.device;
|
|
6842
6842
|
if (this.addClass("".concat(E.DEFAULT, " ").concat(E.INACTIVE, " xgplayer-").concat(c, " ").concat(this.config.controls ? "" : E.NO_CONTROLS)), this.config.autoplay ? this.addClass(E.ENTER) : this.addClass(E.NO_START), this.config.fluid) {
|
|
6843
6843
|
var f = this.config, d = f.width, g = f.height;
|
|
6844
6844
|
(typeof d != "number" || typeof g != "number") && (d = 600, g = 337.5);
|
|
@@ -6873,7 +6873,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
6873
6873
|
e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
|
|
6874
6874
|
}), Xo.forEach(function(i) {
|
|
6875
6875
|
document && document.addEventListener(i, e.onFullscreenChange);
|
|
6876
|
-
}),
|
|
6876
|
+
}), $.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(We, this.resize), this.playFunc = function() {
|
|
6877
6877
|
e.config.closeFocusVideoFocus || e.media.focus();
|
|
6878
6878
|
}, this.once(Ie, this.playFunc);
|
|
6879
6879
|
}
|
|
@@ -6894,12 +6894,12 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
6894
6894
|
key: "_startInit",
|
|
6895
6895
|
value: function(e) {
|
|
6896
6896
|
var i = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6897
|
-
if (this.media && !((!e || e === "" || h.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(nl),
|
|
6897
|
+
if (this.media && !((!e || e === "" || h.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(nl), K.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
|
|
6898
6898
|
h.isNotNull(n.playSessionId) && (this._playSessionId = n.playSessionId), this.handleSource && (this._detachSourceEvents(this.media), h.typeOf(e) === "Array" && e.length > 0 ? this._attachSourceEvents(this.media, e) : !this.media.src || this.media.src !== e ? this.media.src = e : e || this.media.removeAttribute("src")), h.typeOf(this.config.volume) === "Number" && (this.volume = this.config.volume);
|
|
6899
6899
|
var o = this.innerContainer ? this.innerContainer : this.root;
|
|
6900
6900
|
this.media instanceof window.Element && !o.contains(this.media) && o.insertBefore(this.media, o.firstChild);
|
|
6901
6901
|
var u = this.media.readyState;
|
|
6902
|
-
|
|
6902
|
+
K.logInfo("_startInit readyState", u), this.config.autoplay && (!h.isMSE(this.media) && this.load(), ($.os.isIpad || $.os.isPhone) && this.mediaPlay());
|
|
6903
6903
|
var l = this.config.startTime;
|
|
6904
6904
|
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, u >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Ve, this.canPlayFunc), (!this.hasStart || this.state < X.ATTACHED) && me.afterInit(this), this.hasStart = !0, this.setState(X.ATTACHED), h.setTimeout(this, function() {
|
|
6905
6905
|
i.emit(Ei);
|
|
@@ -6926,13 +6926,13 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
6926
6926
|
f.forceBeforeInit && (g.then(function() {
|
|
6927
6927
|
e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
|
|
6928
6928
|
}).catch(function(v) {
|
|
6929
|
-
|
|
6929
|
+
K.logError("_registerPlugins:loadingPlugin", v), e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
|
|
6930
6930
|
}), e._loadingPlugins.push(g));
|
|
6931
6931
|
return;
|
|
6932
6932
|
}
|
|
6933
6933
|
return e.registerPlugin(f);
|
|
6934
6934
|
} catch (v) {
|
|
6935
|
-
|
|
6935
|
+
K.logError("_registerPlugins:", v);
|
|
6936
6936
|
}
|
|
6937
6937
|
});
|
|
6938
6938
|
}
|
|
@@ -7054,7 +7054,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7054
7054
|
return u;
|
|
7055
7055
|
}
|
|
7056
7056
|
}).catch(function(o) {
|
|
7057
|
-
throw o.fileName = "player", o.lineNumber = "236",
|
|
7057
|
+
throw o.fileName = "player", o.lineNumber = "236", K.logError("start:beforeInit:", o), o;
|
|
7058
7058
|
});
|
|
7059
7059
|
}
|
|
7060
7060
|
}
|
|
@@ -7079,7 +7079,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7079
7079
|
});
|
|
7080
7080
|
return;
|
|
7081
7081
|
}
|
|
7082
|
-
|
|
7082
|
+
$.os.isAndroid ? n.once("timeupdate", g) : n.once("canplay", g), n.play();
|
|
7083
7083
|
});
|
|
7084
7084
|
}
|
|
7085
7085
|
}, {
|
|
@@ -7098,16 +7098,16 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7098
7098
|
this.state < X.RUNNING && (this.removeClass(E.NO_START), !this.isCanplay && this.addClass(E.ENTER));
|
|
7099
7099
|
var i = W(V(r.prototype), "play", this).call(this);
|
|
7100
7100
|
return i !== void 0 && i && i.then ? i.then(function() {
|
|
7101
|
-
e.removeClass(E.NOT_ALLOW_AUTOPLAY), e.addClass(E.PLAYING), e.state < X.RUNNING && (
|
|
7101
|
+
e.removeClass(E.NOT_ALLOW_AUTOPLAY), e.addClass(E.PLAYING), e.state < X.RUNNING && (K.logInfo(">>>>playPromise.then"), e.setState(X.RUNNING), e.emit(ct));
|
|
7102
7102
|
}).catch(function(n) {
|
|
7103
|
-
if (
|
|
7103
|
+
if (K.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
|
|
7104
7104
|
e.onError(), e.removeClass(E.ENTER);
|
|
7105
7105
|
return;
|
|
7106
7106
|
}
|
|
7107
7107
|
n.name === "NotAllowedError" && (e._errorTimer = h.setTimeout(e, function() {
|
|
7108
7108
|
e._errorTimer = null, e.emit(ya), e.addClass(E.NOT_ALLOW_AUTOPLAY), e.removeClass(E.ENTER), e.pause(), e.setState(X.NOTALLOW);
|
|
7109
7109
|
}, 0));
|
|
7110
|
-
}) : (
|
|
7110
|
+
}) : (K.logWarn("video.play not return promise"), this.state < X.RUNNING && (this.setState(X.RUNNING), this.removeClass(E.NOT_ALLOW_AUTOPLAY), this.removeClass(E.NO_START), this.removeClass(E.ENTER), this.addClass(E.PLAYING), this.emit(ct))), i;
|
|
7111
7111
|
}
|
|
7112
7112
|
}, {
|
|
7113
7113
|
key: "mediaPause",
|
|
@@ -7177,7 +7177,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7177
7177
|
this.config.url = e.url;
|
|
7178
7178
|
return;
|
|
7179
7179
|
}
|
|
7180
|
-
var u = this.switchURL(e.url,
|
|
7180
|
+
var u = this.switchURL(e.url, oe({
|
|
7181
7181
|
seamless: o.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
|
|
7182
7182
|
}, e));
|
|
7183
7183
|
u && u.then ? u.then(function() {
|
|
@@ -7380,7 +7380,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7380
7380
|
this.onFocus(e);
|
|
7381
7381
|
return;
|
|
7382
7382
|
}
|
|
7383
|
-
this.emit(pa,
|
|
7383
|
+
this.emit(pa, oe({
|
|
7384
7384
|
paused: this.paused,
|
|
7385
7385
|
ended: this.ended
|
|
7386
7386
|
}, e));
|
|
@@ -7395,7 +7395,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7395
7395
|
this.onBlur(e);
|
|
7396
7396
|
return;
|
|
7397
7397
|
}
|
|
7398
|
-
this._clearUserTimer(), this.emit(il,
|
|
7398
|
+
this._clearUserTimer(), this.emit(il, oe({
|
|
7399
7399
|
paused: this.paused,
|
|
7400
7400
|
ended: this.ended
|
|
7401
7401
|
}, e));
|
|
@@ -7516,7 +7516,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7516
7516
|
value: function(e, i, n) {
|
|
7517
7517
|
if (!(!this.media || !i || !e)) {
|
|
7518
7518
|
var o = h.typeOf(e) === "String" ? e : e.type || "";
|
|
7519
|
-
n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(fi,
|
|
7519
|
+
n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(fi, oe({
|
|
7520
7520
|
eventType: o,
|
|
7521
7521
|
action: i,
|
|
7522
7522
|
currentTime: this.currentTime,
|
|
@@ -7558,13 +7558,13 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7558
7558
|
this.videoPos.pi = f, c = c < 0 ? 0 : c;
|
|
7559
7559
|
var d = {
|
|
7560
7560
|
rotate: c
|
|
7561
|
-
}, g = 0, v = 0, m = 1, p = Math.abs(c / 90), x = this.root, w = this.innerContainer, k = x.offsetWidth, M = w ? w.offsetHeight : x.offsetHeight, L = {},
|
|
7561
|
+
}, g = 0, v = 0, m = 1, p = Math.abs(c / 90), x = this.root, w = this.innerContainer, k = x.offsetWidth, M = w ? w.offsetHeight : x.offsetHeight, L = {}, N = M, ie = k;
|
|
7562
7562
|
if (p % 2 === 0)
|
|
7563
|
-
m = u > 0 ? 100 / u : l > 0 ? 100 / l : 1, d.scale = m, g = n > 0 ? (100 - u) / 2 - n : 0, d.y = p === 2 ? 0 - g : g, v = o > 0 ? (100 - l) / 2 - o : 0, d.x = p === 2 ? 0 - v : v, L.width = "".concat(ie, "px"), L.height = "".concat(
|
|
7563
|
+
m = u > 0 ? 100 / u : l > 0 ? 100 / l : 1, d.scale = m, g = n > 0 ? (100 - u) / 2 - n : 0, d.y = p === 2 ? 0 - g : g, v = o > 0 ? (100 - l) / 2 - o : 0, d.x = p === 2 ? 0 - v : v, L.width = "".concat(ie, "px"), L.height = "".concat(N, "px"), L.maxWidth = "", L.maxHeight = "";
|
|
7564
7564
|
else if (p % 2 === 1) {
|
|
7565
|
-
ie = M,
|
|
7565
|
+
ie = M, N = k;
|
|
7566
7566
|
var ee = M - k;
|
|
7567
|
-
v = -ee / 2 / ie * 100, d.x = p === 3 ? v + n / 2 : v - n / 2, g = ee / 2 /
|
|
7567
|
+
v = -ee / 2 / ie * 100, d.x = p === 3 ? v + n / 2 : v - n / 2, g = ee / 2 / N * 100, d.y = p === 3 ? g + o / 2 : g - o / 2, d.scale = m, L.width = "".concat(ie, "px"), L.maxWidth = "".concat(ie, "px"), L.height = "".concat(N, "px"), L.maxHeight = "".concat(N, "px");
|
|
7568
7568
|
}
|
|
7569
7569
|
var G = h.getTransformStyle(d, this.media.style.transform || this.media.style.webkitTransform);
|
|
7570
7570
|
L.transform = G, L.webkitTransform = G, Object.keys(L).map(function(H) {
|
|
@@ -7645,7 +7645,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7645
7645
|
}, {
|
|
7646
7646
|
key: "setState",
|
|
7647
7647
|
value: function(e) {
|
|
7648
|
-
|
|
7648
|
+
K.logInfo("setState", "state from:".concat(ou[this.state], " to:").concat(ou[e])), this._state = e;
|
|
7649
7649
|
}
|
|
7650
7650
|
}, {
|
|
7651
7651
|
key: "preProcessUrl",
|
|
@@ -7890,10 +7890,10 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7890
7890
|
}], [{
|
|
7891
7891
|
key: "debugger",
|
|
7892
7892
|
get: function() {
|
|
7893
|
-
return
|
|
7893
|
+
return K.config.debug;
|
|
7894
7894
|
},
|
|
7895
7895
|
set: function(e) {
|
|
7896
|
-
|
|
7896
|
+
K.config.debug = e;
|
|
7897
7897
|
}
|
|
7898
7898
|
}, {
|
|
7899
7899
|
key: "instManager",
|
|
@@ -7918,12 +7918,12 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7918
7918
|
}, {
|
|
7919
7919
|
key: "isHevcSupported",
|
|
7920
7920
|
value: function() {
|
|
7921
|
-
return
|
|
7921
|
+
return $.isHevcSupported();
|
|
7922
7922
|
}
|
|
7923
7923
|
}, {
|
|
7924
7924
|
key: "probeConfigSupported",
|
|
7925
7925
|
value: function(e) {
|
|
7926
|
-
return
|
|
7926
|
+
return $.probeConfigSupported(e);
|
|
7927
7927
|
}
|
|
7928
7928
|
}, {
|
|
7929
7929
|
key: "install",
|
|
@@ -7985,7 +7985,7 @@ function Gd() {
|
|
|
7985
7985
|
</svg>
|
|
7986
7986
|
`, "image/svg+xml").firstChild;
|
|
7987
7987
|
}
|
|
7988
|
-
function
|
|
7988
|
+
function $d() {
|
|
7989
7989
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
7990
7990
|
<path fill="#fff" transform="scale(1.3, 1.3)" d="M9,10V9a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1v2a.9.9,0,0,1-1,1H8a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1Zm6,4v1a1,1,0,0,1-2,0V13a.9.9,0,0,1,1-1h2a1,1,0,0,1,0,2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
7991
7991
|
</svg>
|
|
@@ -8049,7 +8049,7 @@ var ta = /* @__PURE__ */ (function(a) {
|
|
|
8049
8049
|
class: "xg-get-cssfull"
|
|
8050
8050
|
},
|
|
8051
8051
|
exitCssFullscreen: {
|
|
8052
|
-
icon:
|
|
8052
|
+
icon: $d,
|
|
8053
8053
|
class: "xg-exit-cssfull"
|
|
8054
8054
|
}
|
|
8055
8055
|
};
|
|
@@ -8086,7 +8086,7 @@ var ta = /* @__PURE__ */ (function(a) {
|
|
|
8086
8086
|
}
|
|
8087
8087
|
}]), r;
|
|
8088
8088
|
})(vt);
|
|
8089
|
-
function
|
|
8089
|
+
function Kd() {
|
|
8090
8090
|
return new DOMParser().parseFromString(`<svg width="32px" height="40px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
8091
8091
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8092
8092
|
<path d="M11.2374369,14 L17.6187184,7.61871843 C17.9604272,7.27700968 17.9604272,6.72299032 17.6187184,6.38128157 C17.2770097,6.03957281 16.7229903,6.03957281 16.3812816,6.38128157 L9.38128157,13.3812816 C9.03957281,13.7229903 9.03957281,14.2770097 9.38128157,14.6187184 L16.3812816,21.6187184 C16.7229903,21.9604272 17.2770097,21.9604272 17.6187184,21.6187184 C17.9604272,21.2770097 17.9604272,20.7229903 17.6187184,20.3812816 L11.2374369,14 L11.2374369,14 Z" fill="#FFFFFF"></path>
|
|
@@ -8112,7 +8112,7 @@ var Yd = /* @__PURE__ */ (function(a) {
|
|
|
8112
8112
|
value: function() {
|
|
8113
8113
|
return {
|
|
8114
8114
|
screenBack: {
|
|
8115
|
-
icon:
|
|
8115
|
+
icon: Kd,
|
|
8116
8116
|
class: "xg-fullscreen-back"
|
|
8117
8117
|
}
|
|
8118
8118
|
};
|
|
@@ -8209,7 +8209,7 @@ var Cl = /* @__PURE__ */ (function(a) {
|
|
|
8209
8209
|
}
|
|
8210
8210
|
}
|
|
8211
8211
|
}
|
|
8212
|
-
})),
|
|
8212
|
+
})), $.device === "mobile" && window.addEventListener("orientationchange", this._onOrientationChange);
|
|
8213
8213
|
}
|
|
8214
8214
|
}
|
|
8215
8215
|
}, {
|
|
@@ -8229,7 +8229,7 @@ var Cl = /* @__PURE__ */ (function(a) {
|
|
|
8229
8229
|
}, {
|
|
8230
8230
|
key: "destroy",
|
|
8231
8231
|
value: function() {
|
|
8232
|
-
W(V(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon",
|
|
8232
|
+
W(V(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", $.device === "mobile" ? "touchend" : "click", this.handleFullscreen), $.device === "mobile" && window.removeEventListener("orientationchange", this._onOrientationChange);
|
|
8233
8233
|
}
|
|
8234
8234
|
}, {
|
|
8235
8235
|
key: "initIcons",
|
|
@@ -8742,7 +8742,7 @@ var kl = /* @__PURE__ */ (function(a) {
|
|
|
8742
8742
|
(!i || i.length === 0) && (i = [{
|
|
8743
8743
|
percent: 1
|
|
8744
8744
|
}]);
|
|
8745
|
-
var o =
|
|
8745
|
+
var o = oe(oe({
|
|
8746
8746
|
fragments: i
|
|
8747
8747
|
}, n), {}, {
|
|
8748
8748
|
actionCallback: function(l) {
|
|
@@ -8776,7 +8776,7 @@ var kl = /* @__PURE__ */ (function(a) {
|
|
|
8776
8776
|
fragAutoFocus: n,
|
|
8777
8777
|
fragClass: o,
|
|
8778
8778
|
style: this.playerConfig.commonStyle || {}
|
|
8779
|
-
}),
|
|
8779
|
+
}), $.device === "mobile" && (this.config.isDraggingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.listenEvents(), this.bindDomEvents(), this.initCustomStyle();
|
|
8780
8780
|
}
|
|
8781
8781
|
}
|
|
8782
8782
|
}, {
|
|
@@ -9291,7 +9291,7 @@ var Sl = /* @__PURE__ */ (function(a) {
|
|
|
9291
9291
|
pre: function(l) {
|
|
9292
9292
|
l.preventDefault(), l.stopPropagation();
|
|
9293
9293
|
}
|
|
9294
|
-
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave),
|
|
9294
|
+
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), $.device !== "mobile" && this.playerConfig.isMobileSimulateMode !== "mobile" && (this.bind("mouseenter", this._onMouseenterHandler), this.bind(["blur", "mouseleave"], this._onMouseleaveHandler), this.bind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.bind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.bind(".xgplayer-slider", "mouseup", this.onBarMouseUp)), this.bind(".xgplayer-icon", ["touchend", "click"], this.changeMutedHandler), this.on(Qu, this.onVolumeChange), this.once(We, this.onVolumeChange), h.typeOf(o) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
|
|
9295
9295
|
}
|
|
9296
9296
|
}
|
|
9297
9297
|
}, {
|
|
@@ -9369,7 +9369,7 @@ var Sl = /* @__PURE__ */ (function(a) {
|
|
|
9369
9369
|
}, {
|
|
9370
9370
|
key: "destroy",
|
|
9371
9371
|
value: function() {
|
|
9372
|
-
this._timerId && (h.clearTimeout(this, this._timerId), this._timerId = null), this.unbind("mouseenter", this.onMouseenter), this.unbind(["blur", "mouseleave"], this.onMouseleave), this.unbind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.unbind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.unbind(".xgplayer-slider", "mouseup", this.onBarMouseUp), document.removeEventListener("mouseup", this.onBarMouseUp), this.unbind(".xgplayer-icon",
|
|
9372
|
+
this._timerId && (h.clearTimeout(this, this._timerId), this._timerId = null), this.unbind("mouseenter", this.onMouseenter), this.unbind(["blur", "mouseleave"], this.onMouseleave), this.unbind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.unbind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.unbind(".xgplayer-slider", "mouseup", this.onBarMouseUp), document.removeEventListener("mouseup", this.onBarMouseUp), this.unbind(".xgplayer-icon", $.device === "mobile" ? "touchend" : "click", this.changeMutedHandler);
|
|
9373
9373
|
}
|
|
9374
9374
|
}, {
|
|
9375
9375
|
key: "render",
|
|
@@ -9428,9 +9428,9 @@ var Je = {
|
|
|
9428
9428
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
9429
9429
|
i[n] = arguments[n];
|
|
9430
9430
|
return t = s.call.apply(s, [this].concat(i)), b(_(t), "_onTimeupdate", function() {
|
|
9431
|
-
t._state.isTimeUpdate = !0, t._state.autoplayStart && (
|
|
9431
|
+
t._state.isTimeUpdate = !0, t._state.autoplayStart && (K.logInfo("[xgLogger]".concat(t.player.playerId, " _onTimeupdate")), t._sendFF("onTimeupdate"));
|
|
9432
9432
|
}), b(_(t), "_onAutoplayStart", function() {
|
|
9433
|
-
|
|
9433
|
+
K.logInfo("[xgLogger]".concat(t.player.playerId, " _onAutoplayStart")), t._state.autoplayStart = !0, t.vt && t._sendFF("onAutoplayStart");
|
|
9434
9434
|
}), b(_(t), "_onReset", function() {
|
|
9435
9435
|
t._state = {
|
|
9436
9436
|
autoplayStart: !1,
|
|
@@ -9473,17 +9473,17 @@ var Je = {
|
|
|
9473
9473
|
var e = this;
|
|
9474
9474
|
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = _e(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(va, function() {
|
|
9475
9475
|
var i = e._state, n = i.autoplayStart, o = i.isFFSend;
|
|
9476
|
-
e.startCostTime = _e() - e.newPointTime,
|
|
9476
|
+
e.startCostTime = _e() - e.newPointTime, K.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(o, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !o && (!i.isLs && e.emitLog(Je.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = _e(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
|
|
9477
9477
|
}), this.on(We, function() {
|
|
9478
9478
|
e.vt = _e(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
9479
9479
|
var i = e._state, n = i.isTimeUpdate, o = i.isFFSend, u = i.autoplayStart;
|
|
9480
|
-
|
|
9480
|
+
K.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || u) && e._sendFF("loadedData"), o || e.emitLog(Je.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
9481
9481
|
}), this.on(Ai, this._onSeeking), this.on(qe, this._onSeeked), this.on(_a, function() {
|
|
9482
9482
|
e.endState("destroy");
|
|
9483
9483
|
}), this.on(xi, function() {
|
|
9484
|
-
e.endState("urlChange"),
|
|
9484
|
+
e.endState("urlChange"), K.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
9485
9485
|
}), this.on([Si, Ve], this._onPlaying), this.on(Wt, this._onWaiting), this.on(qt, this._onError), this.on(Ii, function() {
|
|
9486
|
-
|
|
9486
|
+
K.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
9487
9487
|
});
|
|
9488
9488
|
}
|
|
9489
9489
|
}, {
|
|
@@ -9496,7 +9496,7 @@ var Je = {
|
|
|
9496
9496
|
value: function(e) {
|
|
9497
9497
|
this.s = _e();
|
|
9498
9498
|
var i = this._state, n = i.isFFLoading, o = i.isFFSend;
|
|
9499
|
-
|
|
9499
|
+
K.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!o)), this.vt > 0 && n && !o && (K.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(Je.FIRST_FRAME, {
|
|
9500
9500
|
fvt: this.fvt,
|
|
9501
9501
|
costTime: this.fvt,
|
|
9502
9502
|
vt: this.vt,
|
|
@@ -9546,7 +9546,7 @@ var Je = {
|
|
|
9546
9546
|
key: "emitLog",
|
|
9547
9547
|
value: function(e, i) {
|
|
9548
9548
|
var n = this.player;
|
|
9549
|
-
this.emit(cl,
|
|
9549
|
+
this.emit(cl, oe({
|
|
9550
9550
|
t: _e(),
|
|
9551
9551
|
host: h.getHostFromUrl(n.currentSrc),
|
|
9552
9552
|
vtype: n.vtype,
|
|
@@ -10572,7 +10572,7 @@ var Vr = {
|
|
|
10572
10572
|
e.__hooks[n] = null;
|
|
10573
10573
|
});
|
|
10574
10574
|
var i = this.playerConfig.isMobileSimulateMode;
|
|
10575
|
-
i === "mobile" ||
|
|
10575
|
+
i === "mobile" || $.device === "mobile" && !$.os.isIpad || this.initEvents();
|
|
10576
10576
|
}
|
|
10577
10577
|
}, {
|
|
10578
10578
|
key: "initEvents",
|
|
@@ -10982,7 +10982,7 @@ var kt = {
|
|
|
10982
10982
|
this.updateBrightness(i / u);
|
|
10983
10983
|
break;
|
|
10984
10984
|
case 2:
|
|
10985
|
-
|
|
10985
|
+
$.os.isIos || this.updateVolume(i / u);
|
|
10986
10986
|
break;
|
|
10987
10987
|
}
|
|
10988
10988
|
}
|
|
@@ -11446,7 +11446,7 @@ var yu = /* @__PURE__ */ (function(a) {
|
|
|
11446
11446
|
if (f === e) {
|
|
11447
11447
|
if (!d && !(n && v)) {
|
|
11448
11448
|
var m = n && g || c;
|
|
11449
|
-
typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(ll,
|
|
11449
|
+
typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(ll, oe({
|
|
11450
11450
|
key: o[u],
|
|
11451
11451
|
target: i.target,
|
|
11452
11452
|
isPress: n
|
|
@@ -11738,8 +11738,8 @@ var Sg = /* @__PURE__ */ (function(a) {
|
|
|
11738
11738
|
height: m,
|
|
11739
11739
|
width: v
|
|
11740
11740
|
}, M = i ? f : l, L = i ? n.getPlugin("poster") : null;
|
|
11741
|
-
Object.keys(k).map(function(
|
|
11742
|
-
M.style[
|
|
11741
|
+
Object.keys(k).map(function(N) {
|
|
11742
|
+
M.style[N] = k[N], L && L.root && (L.root.style[N] = k[N]);
|
|
11743
11743
|
});
|
|
11744
11744
|
}
|
|
11745
11745
|
}, {
|
|
@@ -12041,7 +12041,7 @@ var Pg = /* @__PURE__ */ (function(a) {
|
|
|
12041
12041
|
key: "initEvents",
|
|
12042
12042
|
value: function() {
|
|
12043
12043
|
this.nextHandler = this.hook("nextClick", this.changeSrc);
|
|
12044
|
-
var e =
|
|
12044
|
+
var e = $.device === "mobile" ? "touchend" : "click";
|
|
12045
12045
|
this.bind(e, this.playNext), this.show();
|
|
12046
12046
|
}
|
|
12047
12047
|
}, {
|
|
@@ -12113,7 +12113,7 @@ var Se = {
|
|
|
12113
12113
|
return typeof URL < "u" && URL.createObjectURL;
|
|
12114
12114
|
},
|
|
12115
12115
|
isSafari: function() {
|
|
12116
|
-
return
|
|
12116
|
+
return $.browser === "safari";
|
|
12117
12117
|
},
|
|
12118
12118
|
isIEWithMsSaveBlob: function() {
|
|
12119
12119
|
return navigator.msSaveBlob;
|
|
@@ -12216,7 +12216,7 @@ Use Save As... to download, then click back to return to this page.`);
|
|
|
12216
12216
|
};
|
|
12217
12217
|
function El(a, s, r) {
|
|
12218
12218
|
var t = {}, e = Se.fileName, i = Se.mimeType;
|
|
12219
|
-
if (typeof s == "string" ? (e = s || Se.fileName, i = r || Se.mimeType) : ye(s) === "object" && s !== null && (t =
|
|
12219
|
+
if (typeof s == "string" ? (e = s || Se.fileName, i = r || Se.mimeType) : ye(s) === "object" && s !== null && (t = oe(oe({}, Se), s), e = t.fileName || Se.fileName, i = t.mimeType || Se.mimeType), String(this) === "true") {
|
|
12220
12220
|
var n = a;
|
|
12221
12221
|
a = s, s = n, i = r || Se.mimeType;
|
|
12222
12222
|
}
|
|
@@ -12274,7 +12274,7 @@ function El(a, s, r) {
|
|
|
12274
12274
|
}, w.readAsDataURL(g), ze.downloadWithIframe(g, e);
|
|
12275
12275
|
}
|
|
12276
12276
|
function Lg(a) {
|
|
12277
|
-
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r =
|
|
12277
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = oe(oe({}, Se), s), t = r.fileName || a.split("/").pop().split("?")[0] || "download";
|
|
12278
12278
|
return vi.downloadFromURL(a, t, r);
|
|
12279
12279
|
}
|
|
12280
12280
|
var Rg = /* @__PURE__ */ (function(a) {
|
|
@@ -12421,8 +12421,8 @@ var Rg = /* @__PURE__ */ (function(a) {
|
|
|
12421
12421
|
v = l.media.canvas;
|
|
12422
12422
|
else {
|
|
12423
12423
|
n.canvas ? (n.canvas.width = e || u.width, n.canvas.height = i || u.height) : n.createCanvas(e, i), v = n.canvas, m = n.canvasCtx;
|
|
12424
|
-
var p = l.media.videoWidth / l.media.videoHeight, x = v.width / v.height, w = 0, k = 0, M = l.media.videoWidth, L = l.media.videoHeight,
|
|
12425
|
-
p > x ? (ee = v.width, G = v.width / p,
|
|
12424
|
+
var p = l.media.videoWidth / l.media.videoHeight, x = v.width / v.height, w = 0, k = 0, M = l.media.videoWidth, L = l.media.videoHeight, N, ie, ee, G;
|
|
12425
|
+
p > x ? (ee = v.width, G = v.width / p, N = 0, ie = Math.round((v.height - G) / 2)) : p === x ? (ee = v.width, G = v.height, N = 0, ie = 0) : p < x && (ee = v.height * p, G = v.height, N = Math.round((v.width - ee) / 2), ie = 0), m.drawImage(l.media, w, k, M, L, N, ie, ee, G);
|
|
12426
12426
|
}
|
|
12427
12427
|
var H = v.toDataURL(f, c).replace(f, "image/octet-stream");
|
|
12428
12428
|
H = H.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(H);
|
|
@@ -12559,7 +12559,7 @@ var Rg = /* @__PURE__ */ (function(a) {
|
|
|
12559
12559
|
function Fg(a, s) {
|
|
12560
12560
|
return a === Be.SIDE ? s === ae.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
12561
12561
|
}
|
|
12562
|
-
var ot =
|
|
12562
|
+
var ot = $.device === "mobile", pi = /* @__PURE__ */ (function(a) {
|
|
12563
12563
|
U(r, a);
|
|
12564
12564
|
var s = z(r);
|
|
12565
12565
|
function r(t) {
|
|
@@ -12591,7 +12591,7 @@ var ot = K.device === "mobile", pi = /* @__PURE__ */ (function(a) {
|
|
|
12591
12591
|
key: "afterCreate",
|
|
12592
12592
|
value: function() {
|
|
12593
12593
|
var e = this, i = this.config;
|
|
12594
|
-
this.initIcons(), ot = ot || this.domEventType === "touch", ot &&
|
|
12594
|
+
this.initIcons(), ot = ot || this.domEventType === "touch", ot && $.device === "mobile" && i.listType === Be.DEFAULT && (i.listType = Be.SIDE), i.hidePortrait && h.addClass(this.root, "portrait"), this.on([tt, je], function() {
|
|
12595
12595
|
e._resizeList();
|
|
12596
12596
|
}), this.once(Ve, function() {
|
|
12597
12597
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
@@ -12780,7 +12780,7 @@ var ot = K.device === "mobile", pi = /* @__PURE__ */ (function(a) {
|
|
|
12780
12780
|
c.selected = !1;
|
|
12781
12781
|
});
|
|
12782
12782
|
var u = 0, l = i.map(function(c, f) {
|
|
12783
|
-
var d =
|
|
12783
|
+
var d = oe(oe({}, c), {}, {
|
|
12784
12784
|
showText: e.getTextByLang(c) || c.definition,
|
|
12785
12785
|
selected: !1
|
|
12786
12786
|
});
|
|
@@ -12820,7 +12820,7 @@ var ot = K.device === "mobile", pi = /* @__PURE__ */ (function(a) {
|
|
|
12820
12820
|
}, {
|
|
12821
12821
|
key: "defaultConfig",
|
|
12822
12822
|
get: function() {
|
|
12823
|
-
return
|
|
12823
|
+
return oe(oe({}, pi.defaultConfig), {}, {
|
|
12824
12824
|
position: ae.CONTROLS_RIGHT,
|
|
12825
12825
|
index: 3,
|
|
12826
12826
|
list: [],
|
|
@@ -12914,7 +12914,7 @@ var ot = K.device === "mobile", pi = /* @__PURE__ */ (function(a) {
|
|
|
12914
12914
|
}, {
|
|
12915
12915
|
key: "defaultConfig",
|
|
12916
12916
|
get: function() {
|
|
12917
|
-
return
|
|
12917
|
+
return oe(oe({}, pi.defaultConfig), {}, {
|
|
12918
12918
|
position: ae.CONTROLS_RIGHT,
|
|
12919
12919
|
index: 4,
|
|
12920
12920
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
@@ -13314,7 +13314,7 @@ var St = {
|
|
|
13314
13314
|
var e = this, i = this.player.plugins.progress;
|
|
13315
13315
|
if (i && (Object.keys(St).map(function(o) {
|
|
13316
13316
|
e[St[o]] = e[St[o]].bind(e), i.addCallBack(o, e[St[o]]);
|
|
13317
|
-
}),
|
|
13317
|
+
}), $.device !== "mobile")) {
|
|
13318
13318
|
this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
|
|
13319
13319
|
var n = this.hook("previewClick", function() {
|
|
13320
13320
|
});
|
|
@@ -13390,7 +13390,7 @@ var St = {
|
|
|
13390
13390
|
key: "registerThumbnail",
|
|
13391
13391
|
value: function() {
|
|
13392
13392
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
13393
|
-
if (
|
|
13393
|
+
if ($.device !== "mobile") {
|
|
13394
13394
|
var i = this.player, n = this.config, o = i.getPlugin("thumbnail");
|
|
13395
13395
|
if (o && o.setConfig(e), !o || !o.usable || !n.isShowThumbnail) {
|
|
13396
13396
|
h.addClass(this.root, "short-line no-thumbnail");
|
|
@@ -13478,7 +13478,7 @@ var St = {
|
|
|
13478
13478
|
}, {
|
|
13479
13479
|
key: "render",
|
|
13480
13480
|
value: function() {
|
|
13481
|
-
return
|
|
13481
|
+
return $.device === "mobile" || this.playerConfig.isMobileSimulateMode === "mobile" ? "" : '<div class="xg-spot-info hide '.concat(this.config.mode === "short" ? "short-line" : "", `">
|
|
13482
13482
|
<div class="xg-spot-content">
|
|
13483
13483
|
<div class="xg-spot-thumbnail">
|
|
13484
13484
|
<span class="xg-spot-time"></span>
|
|
@@ -13648,7 +13648,7 @@ var St = {
|
|
|
13648
13648
|
}
|
|
13649
13649
|
}]), r;
|
|
13650
13650
|
})(Q);
|
|
13651
|
-
function
|
|
13651
|
+
function $r(a) {
|
|
13652
13652
|
return a ? "background:".concat(a, ";") : "";
|
|
13653
13653
|
}
|
|
13654
13654
|
var qg = /* @__PURE__ */ (function(a) {
|
|
@@ -13708,9 +13708,9 @@ var qg = /* @__PURE__ */ (function(a) {
|
|
|
13708
13708
|
var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
|
|
13709
13709
|
if (n) {
|
|
13710
13710
|
var o = this.config, u = o.mode, l = o.height, c = {
|
|
13711
|
-
cached:
|
|
13712
|
-
played:
|
|
13713
|
-
progress:
|
|
13711
|
+
cached: $r(i.cachedColor),
|
|
13712
|
+
played: $r(i.playedColor),
|
|
13713
|
+
progress: $r(i.progressColor),
|
|
13714
13714
|
height: l > 0 && l !== 2 ? "height: ".concat(l, "px;") : ""
|
|
13715
13715
|
}, f = u === "show" ? "xg-mini-progress-show" : "";
|
|
13716
13716
|
return '<xg-mini-progress class="xg-mini-progress '.concat(f, '" style="').concat(c.progress, " ").concat(c.height, `">
|
|
@@ -13753,7 +13753,7 @@ function Gg() {
|
|
|
13753
13753
|
return !1;
|
|
13754
13754
|
}
|
|
13755
13755
|
}
|
|
13756
|
-
var ii = null,
|
|
13756
|
+
var ii = null, $g = /* @__PURE__ */ (function(a) {
|
|
13757
13757
|
U(r, a);
|
|
13758
13758
|
var s = z(r);
|
|
13759
13759
|
function r() {
|
|
@@ -13825,7 +13825,7 @@ var ii = null, Kg = /* @__PURE__ */ (function(a) {
|
|
|
13825
13825
|
o || (o = n.isInnerRender && i.innerContainer || i.root), o.insertAdjacentHTML("afterbegin", '<div class="xgplayer-dynamic-bg" data-index="'.concat(n.index, `"><canvas>
|
|
13826
13826
|
</canvas><xgmask></xgmask></div>`)), this.root = o.children[0], this.canvas = this.find("canvas"), this.canvasFilter || (this.canvas.style.filter = n.filter, this.canvas.style.webkitFilter = n.filter), this.mask = this.find("xgmask"), n.addMask && (this.mask.style.background = n.maskBg), this.canvasCtx = this.canvas.getContext("2d");
|
|
13827
13827
|
} catch (u) {
|
|
13828
|
-
|
|
13828
|
+
K.logError("plugin:DynamicBg", u);
|
|
13829
13829
|
}
|
|
13830
13830
|
}
|
|
13831
13831
|
}, {
|
|
@@ -13850,7 +13850,7 @@ var ii = null, Kg = /* @__PURE__ */ (function(a) {
|
|
|
13850
13850
|
if (!e)
|
|
13851
13851
|
return null;
|
|
13852
13852
|
var i = e && e instanceof window.HTMLVideoElement ? e : e.canvas ? e.canvas : e.flyVideo ? e.flyVideo : null;
|
|
13853
|
-
if (i && !(
|
|
13853
|
+
if (i && !($.browser === "safari" && h.isMSE(i)))
|
|
13854
13854
|
return i;
|
|
13855
13855
|
var n = i ? i.tagName.toLowerCase() : "";
|
|
13856
13856
|
return n === "canvas" || n === "img" ? i : null;
|
|
@@ -13909,7 +13909,7 @@ var ii = null, Kg = /* @__PURE__ */ (function(a) {
|
|
|
13909
13909
|
}
|
|
13910
13910
|
this.canvasFilter && (this.canvasCtx.filter = o.filter), this.canvasCtx.drawImage(e, n.x, n.y, n.rwidth, n.rheight);
|
|
13911
13911
|
} catch (v) {
|
|
13912
|
-
|
|
13912
|
+
K.logError("plugin:DynamicBg", v);
|
|
13913
13913
|
}
|
|
13914
13914
|
}
|
|
13915
13915
|
}, {
|
|
@@ -13952,10 +13952,10 @@ var ii = null, Kg = /* @__PURE__ */ (function(a) {
|
|
|
13952
13952
|
}, {
|
|
13953
13953
|
key: "supportCanvasFilter",
|
|
13954
13954
|
value: function() {
|
|
13955
|
-
return !(
|
|
13955
|
+
return !($.browser === "safari" || $.browser === "firefox");
|
|
13956
13956
|
}
|
|
13957
13957
|
}]), r;
|
|
13958
|
-
})(Q),
|
|
13958
|
+
})(Q), Kg = {
|
|
13959
13959
|
LANG: "zh-cn",
|
|
13960
13960
|
TEXT: {
|
|
13961
13961
|
ERROR_TYPES: {
|
|
@@ -14031,7 +14031,7 @@ var ii = null, Kg = /* @__PURE__ */ (function(a) {
|
|
|
14031
14031
|
FORWARD: "快进中",
|
|
14032
14032
|
LIVE_TIP: "直播"
|
|
14033
14033
|
}
|
|
14034
|
-
}, Rt = "info",
|
|
14034
|
+
}, Rt = "info", Kr = gl, Yg = /* @__PURE__ */ (function(a) {
|
|
14035
14035
|
U(r, a);
|
|
14036
14036
|
var s = z(r);
|
|
14037
14037
|
function r() {
|
|
@@ -14043,7 +14043,7 @@ var ii = null, Kg = /* @__PURE__ */ (function(a) {
|
|
|
14043
14043
|
var u = t._getTime(), l = Object.assign({}, o, {
|
|
14044
14044
|
msg: o.msg || o.action
|
|
14045
14045
|
});
|
|
14046
|
-
t._stats[Rt].push(
|
|
14046
|
+
t._stats[Rt].push(oe(oe({
|
|
14047
14047
|
type: "userAction"
|
|
14048
14048
|
}, u), {}, {
|
|
14049
14049
|
payload: l
|
|
@@ -14070,7 +14070,7 @@ var ii = null, Kg = /* @__PURE__ */ (function(a) {
|
|
|
14070
14070
|
}, {
|
|
14071
14071
|
key: "afterCreate",
|
|
14072
14072
|
value: function() {
|
|
14073
|
-
this.reset(), this.on(fi, this._recordUserActions), this.on(
|
|
14073
|
+
this.reset(), this.on(fi, this._recordUserActions), this.on(Kr.STATS_INFO, this._recordInfo), this.on(Kr.STATS_DOWNLOAD, this._downloadStats), this.on(Kr.STATS_RESET, this._onReset);
|
|
14074
14074
|
}
|
|
14075
14075
|
}, {
|
|
14076
14076
|
key: "destroy",
|
|
@@ -14091,7 +14091,7 @@ var ii = null, Kg = /* @__PURE__ */ (function(a) {
|
|
|
14091
14091
|
key: "_info",
|
|
14092
14092
|
value: function(e) {
|
|
14093
14093
|
var i = this._getTime();
|
|
14094
|
-
this._stats[Rt].push(
|
|
14094
|
+
this._stats[Rt].push(oe(oe({}, i), {}, {
|
|
14095
14095
|
payload: e
|
|
14096
14096
|
}));
|
|
14097
14097
|
}
|
|
@@ -14099,7 +14099,7 @@ var ii = null, Kg = /* @__PURE__ */ (function(a) {
|
|
|
14099
14099
|
key: "_infoProfile",
|
|
14100
14100
|
value: function(e) {
|
|
14101
14101
|
if (e && e.startMs) {
|
|
14102
|
-
var i = Date.now(), n = i - e.startMs, o =
|
|
14102
|
+
var i = Date.now(), n = i - e.startMs, o = oe({
|
|
14103
14103
|
cat: "function",
|
|
14104
14104
|
dur: n,
|
|
14105
14105
|
name: e.name || e.msg,
|
|
@@ -14547,13 +14547,13 @@ var Xg = /* @__PURE__ */ (function(a) {
|
|
|
14547
14547
|
}
|
|
14548
14548
|
}]), r;
|
|
14549
14549
|
})(Q);
|
|
14550
|
-
xt.use(
|
|
14550
|
+
xt.use(Kg);
|
|
14551
14551
|
var Qg = /* @__PURE__ */ O(function a(s, r) {
|
|
14552
14552
|
var t, e, i;
|
|
14553
14553
|
R(this, a);
|
|
14554
14554
|
var n = r && r.isMobileSimulateMode === "mobile", o = r.isLive, u = o ? [] : [wg, wl, qg, jg, Tl], l = [].concat(u, [kl, Cl, Sg, Pg, Ng, Bg, Rg, Og, Sl, xg]), c = [ag, sg, ug, kg, lg, Hg, Ug, Vg, dg];
|
|
14555
14555
|
this.plugins = [Yg, ng].concat(Fe(l), c, [Il, Xg]);
|
|
14556
|
-
var f = n ? "mobile" :
|
|
14556
|
+
var f = n ? "mobile" : $.device;
|
|
14557
14557
|
switch (f) {
|
|
14558
14558
|
case "pc":
|
|
14559
14559
|
(t = this.plugins).push.apply(t, [yu, Wr, ta, Zg, Jg]);
|
|
@@ -14564,7 +14564,7 @@ var Qg = /* @__PURE__ */ O(function a(s, r) {
|
|
|
14564
14564
|
default:
|
|
14565
14565
|
(i = this.plugins).push.apply(i, [yu, Wr, ta]);
|
|
14566
14566
|
}
|
|
14567
|
-
(
|
|
14567
|
+
($.os.isIpad || f === "pc") && this.plugins.push($g), $.os.isIpad && this.plugins.push(Wr), this.ignores = [], this.i18n = [];
|
|
14568
14568
|
}), pe = /* @__PURE__ */ (function(a) {
|
|
14569
14569
|
U(r, a);
|
|
14570
14570
|
var s = z(r);
|
|
@@ -14575,7 +14575,7 @@ var Qg = /* @__PURE__ */ O(function a(s, r) {
|
|
|
14575
14575
|
})(Pi);
|
|
14576
14576
|
b(pe, "defaultPreset", Qg);
|
|
14577
14577
|
b(pe, "Util", h);
|
|
14578
|
-
b(pe, "Sniffer",
|
|
14578
|
+
b(pe, "Sniffer", $);
|
|
14579
14579
|
b(pe, "Errors", si);
|
|
14580
14580
|
b(pe, "Events", Td);
|
|
14581
14581
|
b(pe, "Plugin", Q);
|
|
@@ -14589,7 +14589,7 @@ b(pe, "Progress", wl);
|
|
|
14589
14589
|
b(pe, "FullscreenIcon", Cl);
|
|
14590
14590
|
b(pe, "CssFullscreenIcon", ta);
|
|
14591
14591
|
b(pe, "VolumeIcon", Sl);
|
|
14592
|
-
const ev = ["id"], tv = /* @__PURE__ */
|
|
14592
|
+
const ev = ["id"], tv = /* @__PURE__ */ le({
|
|
14593
14593
|
name: "ElImageViewer",
|
|
14594
14594
|
__name: "Player",
|
|
14595
14595
|
props: /* @__PURE__ */ ft({
|
|
@@ -14618,7 +14618,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
14618
14618
|
}, ["update:modelValue"]),
|
|
14619
14619
|
setup(a, { emit: s }) {
|
|
14620
14620
|
let r = null;
|
|
14621
|
-
const t = a, { cLoadUrl: e } = xu(t), i =
|
|
14621
|
+
const t = a, { cLoadUrl: e } = xu(t), i = ue(() => Ut(e.value, t.url)), n = {
|
|
14622
14622
|
width: "100%",
|
|
14623
14623
|
height: "100%",
|
|
14624
14624
|
// 是否自动播放
|
|
@@ -14636,7 +14636,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
14636
14636
|
poster: "",
|
|
14637
14637
|
lang: "zh-CN",
|
|
14638
14638
|
screenShot: !0
|
|
14639
|
-
}, o =
|
|
14639
|
+
}, o = ue(() => ({
|
|
14640
14640
|
...n,
|
|
14641
14641
|
...t.config
|
|
14642
14642
|
})), u = s, l = mi(a, "modelValue"), c = Au(), f = Su("image-viewer");
|
|
@@ -14746,7 +14746,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
14746
14746
|
}, Nv = {
|
|
14747
14747
|
key: 0,
|
|
14748
14748
|
class: "operate-btn"
|
|
14749
|
-
}, Bv = /* @__PURE__ */
|
|
14749
|
+
}, Bv = /* @__PURE__ */ le({
|
|
14750
14750
|
__name: "index",
|
|
14751
14751
|
props: /* @__PURE__ */ ft({
|
|
14752
14752
|
// 显示图标
|
|
@@ -14932,24 +14932,24 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
14932
14932
|
size: "size"
|
|
14933
14933
|
},
|
|
14934
14934
|
...r.defaultFileds
|
|
14935
|
-
}, { cLoadUrl: o, cUploadUrl: u, cOnlyofficeConfig: l, cHeader: c, cOnlyofficePreviewType: f } = xu(r), d =
|
|
14936
|
-
const
|
|
14937
|
-
return
|
|
14938
|
-
message: `上传文件大小(${
|
|
14935
|
+
}, { cLoadUrl: o, cUploadUrl: u, cOnlyofficeConfig: l, cHeader: c, cOnlyofficePreviewType: f } = xu(r), d = ue(() => r.size), g = Ce(null), v = Ce([]), m = Ce({}), p = Ce(!1), x = (S) => {
|
|
14936
|
+
const F = S.size / 1024 / 1024;
|
|
14937
|
+
return F < d.value ? !0 : (t("outSize"), Di({
|
|
14938
|
+
message: `上传文件大小(${F.toFixed(4)}MB)超出允许最大值(${r.size}MB),请重新选择`,
|
|
14939
14939
|
type: "warning",
|
|
14940
14940
|
showClose: !0,
|
|
14941
14941
|
duration: 5e3
|
|
14942
14942
|
}), !1);
|
|
14943
|
-
}, w =
|
|
14943
|
+
}, w = ue(() => {
|
|
14944
14944
|
const { accept: S } = r;
|
|
14945
14945
|
return S === "*" ? "*" : `${S.toLowerCase()},${S.toUpperCase()}`;
|
|
14946
|
-
}), k = (S,
|
|
14947
|
-
var D,
|
|
14946
|
+
}), k = (S, F) => {
|
|
14947
|
+
var D, se, he, ve, Te;
|
|
14948
14948
|
if (t("change", S), S.size / 1024 / 1024 < d.value || Ht(() => {
|
|
14949
14949
|
e.value.pop();
|
|
14950
14950
|
}), r.accept !== "*") {
|
|
14951
14951
|
let Ne = !1;
|
|
14952
|
-
w.value.includes("/") && (Ne = ((
|
|
14952
|
+
w.value.includes("/") && (Ne = ((se = (D = S == null ? void 0 : S.raw) == null ? void 0 : D.type) == null ? void 0 : se.split("/").shift()) === ((he = w.value) == null ? void 0 : he.split("/").shift()));
|
|
14953
14953
|
const at = (ve = w.value) == null ? void 0 : ve.split(",");
|
|
14954
14954
|
!at.includes((Te = S == null ? void 0 : S.raw) == null ? void 0 : Te.type) && !at.includes(`.${S.name.split(".").pop()}`) && !Ne && (Di({
|
|
14955
14955
|
message: `不允许的文件格式(${S.name}),请重新选择`,
|
|
@@ -14960,73 +14960,74 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
14960
14960
|
e.value.pop();
|
|
14961
14961
|
}));
|
|
14962
14962
|
}
|
|
14963
|
-
}, M = () => !1, L = (S,
|
|
14963
|
+
}, M = () => !1, L = (S, F) => {
|
|
14964
14964
|
var I, y;
|
|
14965
|
-
S.status = "ready",
|
|
14966
|
-
},
|
|
14967
|
-
var
|
|
14968
|
-
|
|
14969
|
-
|
|
14970
|
-
|
|
14971
|
-
|
|
14965
|
+
S.status = "ready", F !== void 0 && v.value.splice(F, 1), (I = g.value) == null || I.handleStart(S.raw), (y = g.value) == null || y.submit();
|
|
14966
|
+
}, N = (S, F) => {
|
|
14967
|
+
var y;
|
|
14968
|
+
const I = Math.max(0, r.limit - F.length);
|
|
14969
|
+
S.splice(I), S.forEach((D) => {
|
|
14970
|
+
var se;
|
|
14971
|
+
(se = g.value) == null || se.handleStart(D);
|
|
14972
|
+
}), (y = g.value) == null || y.submit(), Di({
|
|
14972
14973
|
message: (r == null ? void 0 : r.limitText) || `最大可上传${r.limit}个文件,已忽略超出文件`,
|
|
14973
14974
|
type: "warning",
|
|
14974
14975
|
showClose: !0,
|
|
14975
14976
|
duration: 5e3
|
|
14976
14977
|
}), t("exceed", S);
|
|
14977
|
-
}, ie = (S,
|
|
14978
|
-
S.success ? t("success", S,
|
|
14979
|
-
}, ee = (S,
|
|
14980
|
-
v.value.push(
|
|
14978
|
+
}, ie = (S, F, I) => {
|
|
14979
|
+
S.success ? t("success", S, F, I) : (t("error", S, F, I), ce(F), v.value.push(F));
|
|
14980
|
+
}, ee = (S, F, I) => {
|
|
14981
|
+
v.value.push(F), t("error", S, F, I);
|
|
14981
14982
|
}, G = (S) => {
|
|
14982
|
-
var
|
|
14983
|
+
var F, I;
|
|
14983
14984
|
m.value = {
|
|
14984
14985
|
...S,
|
|
14985
14986
|
name: S[n.name],
|
|
14986
14987
|
url: Ut(
|
|
14987
14988
|
o.value,
|
|
14988
|
-
S[n.url] || ((I = (
|
|
14989
|
+
S[n.url] || ((I = (F = S == null ? void 0 : S.response) == null ? void 0 : F.data) == null ? void 0 : I.id)
|
|
14989
14990
|
)
|
|
14990
14991
|
}, r.isOnlyOfficePreview && (p.value = !0), t("handPreview", m.value);
|
|
14991
14992
|
}, H = (S) => {
|
|
14992
|
-
var
|
|
14993
|
+
var F, I, y, D;
|
|
14993
14994
|
Xl.downloadFile(
|
|
14994
14995
|
Ut(
|
|
14995
14996
|
o.value,
|
|
14996
|
-
S[n.url] || ((I = (
|
|
14997
|
+
S[n.url] || ((I = (F = S == null ? void 0 : S.response) == null ? void 0 : F.data) == null ? void 0 : I.id)
|
|
14997
14998
|
),
|
|
14998
14999
|
S[n.name] || ((D = (y = S == null ? void 0 : S.response) == null ? void 0 : y.data) == null ? void 0 : D[n.name])
|
|
14999
15000
|
);
|
|
15000
|
-
}, j = (S,
|
|
15001
|
+
}, j = (S, F = !1) => {
|
|
15001
15002
|
var I;
|
|
15002
15003
|
(I = g.value) == null || I.abort(S);
|
|
15003
15004
|
}, fe = {
|
|
15004
15005
|
Authorization: "Bearer iking",
|
|
15005
15006
|
"X-Tenant": "sys",
|
|
15006
15007
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
15007
|
-
},
|
|
15008
|
-
var
|
|
15008
|
+
}, ce = (S) => {
|
|
15009
|
+
var F, I, y, D, se;
|
|
15009
15010
|
try {
|
|
15010
|
-
S.status !== "success" && j(S), (
|
|
15011
|
+
S.status !== "success" && j(S), (F = g.value) == null || F.handleRemove(S), e.value = e.value.filter((he) => he.uid !== S.uid), t("delete", S), r.trueDelete && Zl.post(u.value.replace("/maintenance/uploadOssFileMultipart", "/maintenance/deleteOssFile"), {
|
|
15011
15012
|
fileUrl: ((y = (I = S == null ? void 0 : S.response) == null ? void 0 : I.data) == null ? void 0 : y.id) || ((D = S == null ? void 0 : S.data) == null ? void 0 : D.id) || (S == null ? void 0 : S.id) || S[n.url]
|
|
15012
15013
|
}, {
|
|
15013
15014
|
headers: fe
|
|
15014
15015
|
});
|
|
15015
15016
|
} catch (he) {
|
|
15016
|
-
(
|
|
15017
|
+
(se = g.value) == null || se.handleRemove(S), e.value = e.value.filter((ve) => ve.uid !== S.uid), t("delete", S), console.error(he);
|
|
15017
15018
|
}
|
|
15018
|
-
}, Oe = (S,
|
|
15019
|
-
t("progress", S,
|
|
15020
|
-
}, pt = (S,
|
|
15021
|
-
v.value.splice(
|
|
15022
|
-
},
|
|
15019
|
+
}, Oe = (S, F, I) => {
|
|
15020
|
+
t("progress", S, F, I), S.percent >= 100 && t("progressEnd", S, F, I);
|
|
15021
|
+
}, pt = (S, F) => {
|
|
15022
|
+
v.value.splice(F, 1);
|
|
15023
|
+
}, $e = ue(
|
|
15023
15024
|
() => e.value.length >= r.limit || r.disabled
|
|
15024
15025
|
), Me = (S) => {
|
|
15025
15026
|
var I, y, D;
|
|
15026
|
-
const
|
|
15027
|
-
return f.includes(
|
|
15028
|
-
},
|
|
15029
|
-
return (S,
|
|
15027
|
+
const F = ((y = (I = S == null ? void 0 : S.response) == null ? void 0 : I.data) == null ? void 0 : y[n.suffix]) || ((D = S == null ? void 0 : S.data) == null ? void 0 : D[n.suffix]) || (S == null ? void 0 : S[n.suffix]);
|
|
15028
|
+
return f.includes(F);
|
|
15029
|
+
}, Ke = ue(() => r.simple ? "simple" : r.showType);
|
|
15030
|
+
return (S, F) => {
|
|
15030
15031
|
var I;
|
|
15031
15032
|
return T(), P(
|
|
15032
15033
|
be,
|
|
@@ -15043,13 +15044,13 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15043
15044
|
accept: a.accept,
|
|
15044
15045
|
action: C(u),
|
|
15045
15046
|
"file-list": e.value,
|
|
15046
|
-
"onUpdate:fileList":
|
|
15047
|
+
"onUpdate:fileList": F[0] || (F[0] = (y) => e.value = y),
|
|
15047
15048
|
ref_key: "refUpload",
|
|
15048
15049
|
ref: g,
|
|
15049
15050
|
"auto-upload": !0,
|
|
15050
15051
|
"before-upload": x,
|
|
15051
15052
|
"before-remove": M,
|
|
15052
|
-
"on-exceed":
|
|
15053
|
+
"on-exceed": N,
|
|
15053
15054
|
"on-change": k,
|
|
15054
15055
|
multiple: a.multiple,
|
|
15055
15056
|
headers: a.headers || C(c),
|
|
@@ -15059,9 +15060,9 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15059
15060
|
"on-error": ee
|
|
15060
15061
|
}), {
|
|
15061
15062
|
trigger: Y(() => [
|
|
15062
|
-
S.$slots.trigger ? Re(S.$slots, "trigger", { key: 0 }, void 0, !0) : (T(), Z(C(
|
|
15063
|
+
S.$slots.trigger ? Re(S.$slots, "trigger", { key: 0 }, void 0, !0) : (T(), Z(C(Kl), {
|
|
15063
15064
|
key: 1,
|
|
15064
|
-
disabled:
|
|
15065
|
+
disabled: $e.value
|
|
15065
15066
|
}, Cu({
|
|
15066
15067
|
default: Y(() => [
|
|
15067
15068
|
lt(
|
|
@@ -15078,7 +15079,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15078
15079
|
fn: Y(() => [
|
|
15079
15080
|
q(C(de), {
|
|
15080
15081
|
name: "iksvg_daoru",
|
|
15081
|
-
disabled:
|
|
15082
|
+
disabled: $e.value
|
|
15082
15083
|
}, null, 8, ["disabled"])
|
|
15083
15084
|
]),
|
|
15084
15085
|
key: "0"
|
|
@@ -15087,7 +15088,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15087
15088
|
]),
|
|
15088
15089
|
file: Y(({ file: y }) => [
|
|
15089
15090
|
B(" simple模式 "),
|
|
15090
|
-
|
|
15091
|
+
Ke.value === "simple" ? (T(), P(
|
|
15091
15092
|
"div",
|
|
15092
15093
|
{
|
|
15093
15094
|
key: 0,
|
|
@@ -15136,7 +15137,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15136
15137
|
title: "预览"
|
|
15137
15138
|
}, null, 8, ["onClick"])) : B("v-if", !0),
|
|
15138
15139
|
q(C(de), {
|
|
15139
|
-
onClick: Pe((D) =>
|
|
15140
|
+
onClick: Pe((D) => ce(y), ["stop"]),
|
|
15140
15141
|
error: "",
|
|
15141
15142
|
name: "iksvg_shanchu",
|
|
15142
15143
|
size: 20,
|
|
@@ -15147,7 +15148,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15147
15148
|
/* STABLE_FRAGMENT */
|
|
15148
15149
|
)) : (T(), Z(C(de), {
|
|
15149
15150
|
key: 1,
|
|
15150
|
-
onClick: Pe((D) =>
|
|
15151
|
+
onClick: Pe((D) => ce(y), ["stop"]),
|
|
15151
15152
|
error: "",
|
|
15152
15153
|
name: "iksvg_guanbi",
|
|
15153
15154
|
size: 20,
|
|
@@ -15167,7 +15168,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15167
15168
|
],
|
|
15168
15169
|
2
|
|
15169
15170
|
/* CLASS */
|
|
15170
|
-
)) :
|
|
15171
|
+
)) : Ke.value === "simple-icon" ? (T(), P(
|
|
15171
15172
|
be,
|
|
15172
15173
|
{ key: 1 },
|
|
15173
15174
|
[
|
|
@@ -15263,7 +15264,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15263
15264
|
title: "预览"
|
|
15264
15265
|
}, null, 8, ["onClick"])) : B("v-if", !0),
|
|
15265
15266
|
q(C(de), {
|
|
15266
|
-
onClick: Pe((D) =>
|
|
15267
|
+
onClick: Pe((D) => ce(y), ["stop"]),
|
|
15267
15268
|
error: "",
|
|
15268
15269
|
name: "iksvg_shanchu",
|
|
15269
15270
|
size: 20,
|
|
@@ -15274,7 +15275,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15274
15275
|
/* STABLE_FRAGMENT */
|
|
15275
15276
|
)) : (T(), Z(C(de), {
|
|
15276
15277
|
key: 1,
|
|
15277
|
-
onClick: Pe((D) =>
|
|
15278
|
+
onClick: Pe((D) => ce(y), ["stop"]),
|
|
15278
15279
|
error: "",
|
|
15279
15280
|
name: "iksvg_guanbi",
|
|
15280
15281
|
size: 20,
|
|
@@ -15392,7 +15393,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15392
15393
|
title: "下载"
|
|
15393
15394
|
}, null, 8, ["onClick", "size"])) : B("v-if", !0),
|
|
15394
15395
|
q(C(de), {
|
|
15395
|
-
onClick: Pe((D) =>
|
|
15396
|
+
onClick: Pe((D) => ce(y), ["stop"]),
|
|
15396
15397
|
error: "",
|
|
15397
15398
|
name: "iksvg_shanchu",
|
|
15398
15399
|
title: "删除",
|
|
@@ -15404,7 +15405,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15404
15405
|
/* STABLE_FRAGMENT */
|
|
15405
15406
|
)) : (T(), Z(C(de), {
|
|
15406
15407
|
key: 1,
|
|
15407
|
-
onClick: Pe((D) =>
|
|
15408
|
+
onClick: Pe((D) => ce(y), ["stop"]),
|
|
15408
15409
|
error: "",
|
|
15409
15410
|
name: "iksvg_guanbi",
|
|
15410
15411
|
size: a.showBg ? "default" : 20,
|
|
@@ -15451,7 +15452,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15451
15452
|
(y = v.value) != null && y.length ? (T(!0), P(
|
|
15452
15453
|
be,
|
|
15453
15454
|
{ key: 1 },
|
|
15454
|
-
Tu(v.value, (D,
|
|
15455
|
+
Tu(v.value, (D, se) => (T(), P("div", {
|
|
15455
15456
|
class: "ik-error-flie-list",
|
|
15456
15457
|
key: D.uid
|
|
15457
15458
|
}, [
|
|
@@ -15486,14 +15487,14 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15486
15487
|
]),
|
|
15487
15488
|
A("div", Tv, [
|
|
15488
15489
|
q(C(de), {
|
|
15489
|
-
onClick: Pe((he) => L(D,
|
|
15490
|
+
onClick: Pe((he) => L(D, se), ["stop"]),
|
|
15490
15491
|
name: "iksvg_zhongzhi",
|
|
15491
15492
|
title: "重新上传",
|
|
15492
15493
|
bg: "",
|
|
15493
15494
|
size: "default"
|
|
15494
15495
|
}, null, 8, ["onClick"]),
|
|
15495
15496
|
q(C(de), {
|
|
15496
|
-
onClick: Pe((he) => pt(D,
|
|
15497
|
+
onClick: Pe((he) => pt(D, se), ["stop"]),
|
|
15497
15498
|
error: "",
|
|
15498
15499
|
name: "iksvg_shanchu",
|
|
15499
15500
|
title: "删除",
|
|
@@ -15512,18 +15513,18 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15512
15513
|
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (T(), Z(C(Pa), ai({
|
|
15513
15514
|
key: 1,
|
|
15514
15515
|
"file-list": e.value,
|
|
15515
|
-
"onUpdate:fileList":
|
|
15516
|
+
"onUpdate:fileList": F[1] || (F[1] = (y) => e.value = y),
|
|
15516
15517
|
class: ["ik-file-pload-card", { plain: a.plain }],
|
|
15517
15518
|
"auto-upload": !0
|
|
15518
15519
|
}, S.$attrs, {
|
|
15519
15520
|
accept: a.accept,
|
|
15520
15521
|
action: C(u),
|
|
15521
|
-
disabled:
|
|
15522
|
+
disabled: $e.value,
|
|
15522
15523
|
ref_key: "refUpload",
|
|
15523
15524
|
ref: g,
|
|
15524
15525
|
"before-upload": x,
|
|
15525
15526
|
"before-remove": M,
|
|
15526
|
-
"on-exceed":
|
|
15527
|
+
"on-exceed": N,
|
|
15527
15528
|
multiple: a.multiple,
|
|
15528
15529
|
headers: a.headers || C(c),
|
|
15529
15530
|
limit: a.limit,
|
|
@@ -15605,7 +15606,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15605
15606
|
size: "default"
|
|
15606
15607
|
}, null, 8, ["onClick"])) : B("v-if", !0),
|
|
15607
15608
|
q(C(de), {
|
|
15608
|
-
onClick: (D) =>
|
|
15609
|
+
onClick: (D) => ce(y),
|
|
15609
15610
|
error: "",
|
|
15610
15611
|
name: "iksvg_shanchu",
|
|
15611
15612
|
title: "删除",
|
|
@@ -15617,7 +15618,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15617
15618
|
/* STABLE_FRAGMENT */
|
|
15618
15619
|
)) : (T(), Z(C(de), {
|
|
15619
15620
|
key: 1,
|
|
15620
|
-
onClick: (D) =>
|
|
15621
|
+
onClick: (D) => ce(y),
|
|
15621
15622
|
error: "",
|
|
15622
15623
|
name: "iksvg_guanbi",
|
|
15623
15624
|
size: "default",
|
|
@@ -15675,7 +15676,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15675
15676
|
A("div", Sv, [
|
|
15676
15677
|
A("div", Av, [
|
|
15677
15678
|
a.imageMode ? Re(S.$slots, "image", { key: 0 }, () => [
|
|
15678
|
-
|
|
15679
|
+
F[3] || (F[3] = A(
|
|
15679
15680
|
"img",
|
|
15680
15681
|
{
|
|
15681
15682
|
src: Jl,
|
|
@@ -15742,7 +15743,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15742
15743
|
)),
|
|
15743
15744
|
q(C(Wc), {
|
|
15744
15745
|
show: p.value,
|
|
15745
|
-
"onUpdate:show":
|
|
15746
|
+
"onUpdate:show": F[2] || (F[2] = (y) => p.value = y),
|
|
15746
15747
|
loadUrl: C(o),
|
|
15747
15748
|
file: m.value,
|
|
15748
15749
|
onlyofficeServer: ((I = C(l)) == null ? void 0 : I.serverUrl) || a.onlyofficeServer,
|
|
@@ -15754,7 +15755,7 @@ const ev = ["id"], tv = /* @__PURE__ */ ue({
|
|
|
15754
15755
|
);
|
|
15755
15756
|
};
|
|
15756
15757
|
}
|
|
15757
|
-
}), Hv = /* @__PURE__ */ yi(Bv, [["__scopeId", "data-v-
|
|
15758
|
+
}), Hv = /* @__PURE__ */ yi(Bv, [["__scopeId", "data-v-b3592dd0"]]), qv = nt(Hv);
|
|
15758
15759
|
export {
|
|
15759
15760
|
qv as IkUploadFile,
|
|
15760
15761
|
qv as default
|