iking-web-ui-pro 0.2.22 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKExpandCollapse/ik.index.es.js +77 -82
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +727 -745
- package/dist/IKPreviewFile/ik.index.umd.js +46 -46
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKSearch/ik.index.es.js +41 -33
- package/dist/IKSearch/ik.index.umd.js +1 -1
- package/dist/IKSearch/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +125 -130
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcess/ik.index.es.js +167 -159
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcess/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +659 -677
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +47 -47
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +112 -130
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +237 -242
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +73 -65
- package/dist/IkCalendar/ik.index.umd.js +1 -1
- package/dist/IkCalendar/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +78 -83
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +902 -920
- package/dist/IkDescription/ik.index.umd.js +45 -45
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +613 -631
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +45 -45
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +135 -140
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +378 -383
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1305 -1302
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +41 -33
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPickerUser/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +687 -705
- package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2955 -2960
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +106 -111
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +69 -74
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +761 -779
- package/dist/IkUploadFile/ik.index.umd.js +45 -45
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +218 -223
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +7089 -7099
- package/dist/index.umd.js +89 -89
- package/dist/src/components/IkSvgIcon/index.d.ts +2 -6
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +2 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as ne, openBlock as E, createElementBlock as D, createElementVNode as A, computed as ue, inject as it, mergeModels as Qe, useModel as At, ref as Pe, reactive as
|
|
2
|
-
import { useNamespace as
|
|
3
|
-
import { buildUUID as
|
|
1
|
+
import { defineComponent as ne, openBlock as E, createElementBlock as D, createElementVNode as A, computed as ue, inject as it, mergeModels as Qe, useModel as At, ref as Pe, reactive as Rn, watch as Ji, nextTick as pt, resolveComponent as st, Fragment as Ne, createBlock as ee, createCommentVNode as Z, createVNode as Y, unref as T, withCtx as q, normalizeClass as ge, normalizeStyle as Ie, createTextVNode as He, toDisplayString as ce, h as On, mergeProps as Xt, createSlots as Qi, renderSlot as we, Teleport as Fn, Transition as Mn, renderList as Nn, withDirectives as Bn, vShow as Hn, pushScopeId as Un, popScopeId as zn } from "vue";
|
|
2
|
+
import { useNamespace as Vn, ElUpload as vi, ElButton as jn, ElProgress as mi, ElTooltip as yi, ElIcon as Fe, ElMessage as Rt } from "element-plus";
|
|
3
|
+
import { buildUUID as en, ikColor as Wn, ikFile as Gn } from "iking-utils-pro";
|
|
4
4
|
const ze = (o, a) => {
|
|
5
5
|
if (o.install = (r) => {
|
|
6
6
|
for (const t of [o, ...Object.values(a ?? {})])
|
|
@@ -9,9 +9,9 @@ const ze = (o, a) => {
|
|
|
9
9
|
for (const [r, t] of Object.entries(a))
|
|
10
10
|
o[r] = t;
|
|
11
11
|
return o;
|
|
12
|
-
},
|
|
12
|
+
}, $n = "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=";
|
|
13
13
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
14
|
-
var
|
|
14
|
+
var Kn = /* @__PURE__ */ ne({
|
|
15
15
|
name: "Close",
|
|
16
16
|
__name: "close",
|
|
17
17
|
setup(o) {
|
|
@@ -25,7 +25,7 @@ var Yn = /* @__PURE__ */ ne({
|
|
|
25
25
|
})
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
28
|
+
}), Yn = Kn, Xn = /* @__PURE__ */ ne({
|
|
29
29
|
name: "Delete",
|
|
30
30
|
__name: "delete",
|
|
31
31
|
setup(o) {
|
|
@@ -39,7 +39,7 @@ var Yn = /* @__PURE__ */ ne({
|
|
|
39
39
|
})
|
|
40
40
|
]));
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
42
|
+
}), qn = Xn, Zn = /* @__PURE__ */ ne({
|
|
43
43
|
name: "Download",
|
|
44
44
|
__name: "download",
|
|
45
45
|
setup(o) {
|
|
@@ -53,7 +53,7 @@ var Yn = /* @__PURE__ */ ne({
|
|
|
53
53
|
})
|
|
54
54
|
]));
|
|
55
55
|
}
|
|
56
|
-
}),
|
|
56
|
+
}), Jn = Zn, Qn = /* @__PURE__ */ ne({
|
|
57
57
|
name: "QuestionFilled",
|
|
58
58
|
__name: "question-filled",
|
|
59
59
|
setup(o) {
|
|
@@ -67,7 +67,7 @@ var Yn = /* @__PURE__ */ ne({
|
|
|
67
67
|
})
|
|
68
68
|
]));
|
|
69
69
|
}
|
|
70
|
-
}),
|
|
70
|
+
}), _i = Qn, er = /* @__PURE__ */ ne({
|
|
71
71
|
name: "Refresh",
|
|
72
72
|
__name: "refresh",
|
|
73
73
|
setup(o) {
|
|
@@ -81,7 +81,7 @@ var Yn = /* @__PURE__ */ ne({
|
|
|
81
81
|
})
|
|
82
82
|
]));
|
|
83
83
|
}
|
|
84
|
-
}),
|
|
84
|
+
}), tr = er, ir = /* @__PURE__ */ ne({
|
|
85
85
|
name: "View",
|
|
86
86
|
__name: "view",
|
|
87
87
|
setup(o) {
|
|
@@ -95,7 +95,7 @@ var Yn = /* @__PURE__ */ ne({
|
|
|
95
95
|
})
|
|
96
96
|
]));
|
|
97
97
|
}
|
|
98
|
-
}),
|
|
98
|
+
}), nr = ir, rr = /* @__PURE__ */ ne({
|
|
99
99
|
name: "WarningFilled",
|
|
100
100
|
__name: "warning-filled",
|
|
101
101
|
setup(o) {
|
|
@@ -109,10 +109,10 @@ var Yn = /* @__PURE__ */ ne({
|
|
|
109
109
|
})
|
|
110
110
|
]));
|
|
111
111
|
}
|
|
112
|
-
}),
|
|
112
|
+
}), sr = rr;
|
|
113
113
|
const te = (o, a) => {
|
|
114
114
|
var i, n, s, l;
|
|
115
|
-
const r = (i = o == null ? void 0 : o.response) != null && i.data ?
|
|
115
|
+
const r = (i = o == null ? void 0 : o.response) != null && i.data ? ki((s = (n = o == null ? void 0 : o.response) == null ? void 0 : n.data) == null ? void 0 : s.suffix) : ((l = o.raw) == null ? void 0 : l.type) || ki(o[a.suffix]), t = r == null ? void 0 : r.toLowerCase(), e = {
|
|
116
116
|
sheet: "excel",
|
|
117
117
|
excel: "excel",
|
|
118
118
|
zip: "zip",
|
|
@@ -132,7 +132,7 @@ const te = (o, a) => {
|
|
|
132
132
|
if (typeof t == "string" && (t.includes(u) || t === u))
|
|
133
133
|
return e[u];
|
|
134
134
|
return "unknown";
|
|
135
|
-
},
|
|
135
|
+
}, or = {
|
|
136
136
|
".doc": "word",
|
|
137
137
|
".docx": "word",
|
|
138
138
|
".docxf": "word",
|
|
@@ -217,13 +217,13 @@ const te = (o, a) => {
|
|
|
217
217
|
".vob": "video",
|
|
218
218
|
".txt": "txt",
|
|
219
219
|
".pdf": "pdf"
|
|
220
|
-
},
|
|
220
|
+
}, ki = (o) => {
|
|
221
221
|
const a = o == null ? void 0 : o.toLocaleLowerCase(), r = a != null && a.startsWith(".") ? a : `.${a}`;
|
|
222
|
-
return r &&
|
|
223
|
-
},
|
|
222
|
+
return r && or[r] || "unknow";
|
|
223
|
+
}, ar = (o) => {
|
|
224
224
|
let a = "", r = ["doc", "docx"], t = ["xls", "xlsx"], e = ["ppt", "pptx"], i = ["pdf"];
|
|
225
225
|
return r.includes(o) && (a = "word"), t.includes(o) && (a = "cell"), e.includes(o) && (a = "slide"), i.includes(o) && (a = "text-pdf"), a;
|
|
226
|
-
},
|
|
226
|
+
}, lr = {
|
|
227
227
|
key: 0,
|
|
228
228
|
t: "1686300059786",
|
|
229
229
|
class: "icon",
|
|
@@ -233,7 +233,7 @@ const te = (o, a) => {
|
|
|
233
233
|
"p-id": "7671",
|
|
234
234
|
width: "200",
|
|
235
235
|
height: "200"
|
|
236
|
-
},
|
|
236
|
+
}, ur = /* @__PURE__ */ A(
|
|
237
237
|
"path",
|
|
238
238
|
{
|
|
239
239
|
d: "M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",
|
|
@@ -243,7 +243,7 @@ const te = (o, a) => {
|
|
|
243
243
|
null,
|
|
244
244
|
-1
|
|
245
245
|
/* HOISTED */
|
|
246
|
-
),
|
|
246
|
+
), cr = /* @__PURE__ */ A(
|
|
247
247
|
"path",
|
|
248
248
|
{
|
|
249
249
|
d: "M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",
|
|
@@ -253,7 +253,7 @@ const te = (o, a) => {
|
|
|
253
253
|
null,
|
|
254
254
|
-1
|
|
255
255
|
/* HOISTED */
|
|
256
|
-
),
|
|
256
|
+
), fr = /* @__PURE__ */ A(
|
|
257
257
|
"path",
|
|
258
258
|
{
|
|
259
259
|
d: "M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",
|
|
@@ -263,7 +263,7 @@ const te = (o, a) => {
|
|
|
263
263
|
null,
|
|
264
264
|
-1
|
|
265
265
|
/* HOISTED */
|
|
266
|
-
),
|
|
266
|
+
), hr = /* @__PURE__ */ A(
|
|
267
267
|
"path",
|
|
268
268
|
{
|
|
269
269
|
d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
|
|
@@ -273,12 +273,12 @@ const te = (o, a) => {
|
|
|
273
273
|
null,
|
|
274
274
|
-1
|
|
275
275
|
/* HOISTED */
|
|
276
|
-
),
|
|
276
|
+
), dr = [
|
|
277
|
+
ur,
|
|
277
278
|
cr,
|
|
278
279
|
fr,
|
|
279
|
-
hr
|
|
280
|
-
|
|
281
|
-
], pr = {
|
|
280
|
+
hr
|
|
281
|
+
], gr = {
|
|
282
282
|
key: 1,
|
|
283
283
|
t: "1686301531714",
|
|
284
284
|
class: "icon",
|
|
@@ -288,7 +288,7 @@ const te = (o, a) => {
|
|
|
288
288
|
"p-id": "9067",
|
|
289
289
|
width: "200",
|
|
290
290
|
height: "200"
|
|
291
|
-
},
|
|
291
|
+
}, pr = /* @__PURE__ */ A(
|
|
292
292
|
"path",
|
|
293
293
|
{
|
|
294
294
|
d: "M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",
|
|
@@ -298,7 +298,7 @@ const te = (o, a) => {
|
|
|
298
298
|
null,
|
|
299
299
|
-1
|
|
300
300
|
/* HOISTED */
|
|
301
|
-
),
|
|
301
|
+
), vr = /* @__PURE__ */ A(
|
|
302
302
|
"path",
|
|
303
303
|
{
|
|
304
304
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -308,10 +308,10 @@ const te = (o, a) => {
|
|
|
308
308
|
null,
|
|
309
309
|
-1
|
|
310
310
|
/* HOISTED */
|
|
311
|
-
),
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
],
|
|
311
|
+
), mr = [
|
|
312
|
+
pr,
|
|
313
|
+
vr
|
|
314
|
+
], yr = {
|
|
315
315
|
key: 2,
|
|
316
316
|
t: "1686300141125",
|
|
317
317
|
class: "icon",
|
|
@@ -321,7 +321,7 @@ const te = (o, a) => {
|
|
|
321
321
|
"p-id": "8137",
|
|
322
322
|
width: "200",
|
|
323
323
|
height: "200"
|
|
324
|
-
},
|
|
324
|
+
}, _r = /* @__PURE__ */ A(
|
|
325
325
|
"path",
|
|
326
326
|
{
|
|
327
327
|
d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",
|
|
@@ -331,7 +331,7 @@ const te = (o, a) => {
|
|
|
331
331
|
null,
|
|
332
332
|
-1
|
|
333
333
|
/* HOISTED */
|
|
334
|
-
),
|
|
334
|
+
), kr = /* @__PURE__ */ A(
|
|
335
335
|
"path",
|
|
336
336
|
{
|
|
337
337
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -341,10 +341,10 @@ const te = (o, a) => {
|
|
|
341
341
|
null,
|
|
342
342
|
-1
|
|
343
343
|
/* HOISTED */
|
|
344
|
-
),
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
],
|
|
344
|
+
), Cr = [
|
|
345
|
+
_r,
|
|
346
|
+
kr
|
|
347
|
+
], wr = {
|
|
348
348
|
key: 3,
|
|
349
349
|
t: "1686300157181",
|
|
350
350
|
class: "icon",
|
|
@@ -354,7 +354,7 @@ const te = (o, a) => {
|
|
|
354
354
|
"p-id": "8292",
|
|
355
355
|
width: "200",
|
|
356
356
|
height: "200"
|
|
357
|
-
},
|
|
357
|
+
}, br = /* @__PURE__ */ A(
|
|
358
358
|
"path",
|
|
359
359
|
{
|
|
360
360
|
d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",
|
|
@@ -364,7 +364,7 @@ const te = (o, a) => {
|
|
|
364
364
|
null,
|
|
365
365
|
-1
|
|
366
366
|
/* HOISTED */
|
|
367
|
-
),
|
|
367
|
+
), Tr = /* @__PURE__ */ A(
|
|
368
368
|
"path",
|
|
369
369
|
{
|
|
370
370
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -374,10 +374,10 @@ const te = (o, a) => {
|
|
|
374
374
|
null,
|
|
375
375
|
-1
|
|
376
376
|
/* HOISTED */
|
|
377
|
-
),
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
],
|
|
377
|
+
), Er = [
|
|
378
|
+
br,
|
|
379
|
+
Tr
|
|
380
|
+
], Sr = {
|
|
381
381
|
key: 4,
|
|
382
382
|
t: "1686300180947",
|
|
383
383
|
class: "icon",
|
|
@@ -387,7 +387,7 @@ const te = (o, a) => {
|
|
|
387
387
|
"p-id": "8447",
|
|
388
388
|
width: "200",
|
|
389
389
|
height: "200"
|
|
390
|
-
},
|
|
390
|
+
}, Ar = /* @__PURE__ */ A(
|
|
391
391
|
"path",
|
|
392
392
|
{
|
|
393
393
|
d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",
|
|
@@ -397,7 +397,7 @@ const te = (o, a) => {
|
|
|
397
397
|
null,
|
|
398
398
|
-1
|
|
399
399
|
/* HOISTED */
|
|
400
|
-
),
|
|
400
|
+
), xr = /* @__PURE__ */ A(
|
|
401
401
|
"path",
|
|
402
402
|
{
|
|
403
403
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -407,10 +407,10 @@ const te = (o, a) => {
|
|
|
407
407
|
null,
|
|
408
408
|
-1
|
|
409
409
|
/* HOISTED */
|
|
410
|
-
),
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
],
|
|
410
|
+
), Ir = [
|
|
411
|
+
Ar,
|
|
412
|
+
xr
|
|
413
|
+
], Pr = {
|
|
414
414
|
key: 5,
|
|
415
415
|
t: "1686300195363",
|
|
416
416
|
class: "icon",
|
|
@@ -420,7 +420,7 @@ const te = (o, a) => {
|
|
|
420
420
|
"p-id": "8602",
|
|
421
421
|
width: "200",
|
|
422
422
|
height: "200"
|
|
423
|
-
},
|
|
423
|
+
}, Dr = /* @__PURE__ */ A(
|
|
424
424
|
"path",
|
|
425
425
|
{
|
|
426
426
|
d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",
|
|
@@ -430,7 +430,7 @@ const te = (o, a) => {
|
|
|
430
430
|
null,
|
|
431
431
|
-1
|
|
432
432
|
/* HOISTED */
|
|
433
|
-
),
|
|
433
|
+
), Lr = /* @__PURE__ */ A(
|
|
434
434
|
"path",
|
|
435
435
|
{
|
|
436
436
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -440,10 +440,10 @@ const te = (o, a) => {
|
|
|
440
440
|
null,
|
|
441
441
|
-1
|
|
442
442
|
/* HOISTED */
|
|
443
|
-
),
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
],
|
|
443
|
+
), Rr = [
|
|
444
|
+
Dr,
|
|
445
|
+
Lr
|
|
446
|
+
], Or = {
|
|
447
447
|
key: 6,
|
|
448
448
|
t: "1686300209288",
|
|
449
449
|
class: "icon",
|
|
@@ -453,7 +453,7 @@ const te = (o, a) => {
|
|
|
453
453
|
"p-id": "8757",
|
|
454
454
|
width: "200",
|
|
455
455
|
height: "200"
|
|
456
|
-
},
|
|
456
|
+
}, Fr = /* @__PURE__ */ A(
|
|
457
457
|
"path",
|
|
458
458
|
{
|
|
459
459
|
d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",
|
|
@@ -463,7 +463,7 @@ const te = (o, a) => {
|
|
|
463
463
|
null,
|
|
464
464
|
-1
|
|
465
465
|
/* HOISTED */
|
|
466
|
-
),
|
|
466
|
+
), Mr = /* @__PURE__ */ A(
|
|
467
467
|
"path",
|
|
468
468
|
{
|
|
469
469
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -473,10 +473,10 @@ const te = (o, a) => {
|
|
|
473
473
|
null,
|
|
474
474
|
-1
|
|
475
475
|
/* HOISTED */
|
|
476
|
-
),
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
],
|
|
476
|
+
), Nr = [
|
|
477
|
+
Fr,
|
|
478
|
+
Mr
|
|
479
|
+
], Br = {
|
|
480
480
|
key: 7,
|
|
481
481
|
t: "1686300225262",
|
|
482
482
|
class: "icon",
|
|
@@ -486,7 +486,7 @@ const te = (o, a) => {
|
|
|
486
486
|
"p-id": "8912",
|
|
487
487
|
width: "200",
|
|
488
488
|
height: "200"
|
|
489
|
-
},
|
|
489
|
+
}, Hr = /* @__PURE__ */ A(
|
|
490
490
|
"path",
|
|
491
491
|
{
|
|
492
492
|
d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",
|
|
@@ -496,7 +496,7 @@ const te = (o, a) => {
|
|
|
496
496
|
null,
|
|
497
497
|
-1
|
|
498
498
|
/* HOISTED */
|
|
499
|
-
),
|
|
499
|
+
), Ur = /* @__PURE__ */ A(
|
|
500
500
|
"path",
|
|
501
501
|
{
|
|
502
502
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -506,10 +506,10 @@ const te = (o, a) => {
|
|
|
506
506
|
null,
|
|
507
507
|
-1
|
|
508
508
|
/* HOISTED */
|
|
509
|
-
),
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
],
|
|
509
|
+
), zr = [
|
|
510
|
+
Hr,
|
|
511
|
+
Ur
|
|
512
|
+
], Vr = {
|
|
513
513
|
key: 8,
|
|
514
514
|
t: "1692251753690",
|
|
515
515
|
class: "icon",
|
|
@@ -519,7 +519,7 @@ const te = (o, a) => {
|
|
|
519
519
|
"p-id": "4336",
|
|
520
520
|
width: "200",
|
|
521
521
|
height: "200"
|
|
522
|
-
},
|
|
522
|
+
}, jr = /* @__PURE__ */ A(
|
|
523
523
|
"path",
|
|
524
524
|
{
|
|
525
525
|
d: "M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",
|
|
@@ -529,7 +529,7 @@ const te = (o, a) => {
|
|
|
529
529
|
null,
|
|
530
530
|
-1
|
|
531
531
|
/* HOISTED */
|
|
532
|
-
),
|
|
532
|
+
), Wr = /* @__PURE__ */ A(
|
|
533
533
|
"path",
|
|
534
534
|
{
|
|
535
535
|
d: "M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",
|
|
@@ -540,7 +540,7 @@ const te = (o, a) => {
|
|
|
540
540
|
null,
|
|
541
541
|
-1
|
|
542
542
|
/* HOISTED */
|
|
543
|
-
),
|
|
543
|
+
), Gr = /* @__PURE__ */ A(
|
|
544
544
|
"path",
|
|
545
545
|
{
|
|
546
546
|
d: "M640 0l320 320H768a128 128 0 0 1-128-128V0z",
|
|
@@ -550,11 +550,11 @@ const te = (o, a) => {
|
|
|
550
550
|
null,
|
|
551
551
|
-1
|
|
552
552
|
/* HOISTED */
|
|
553
|
-
),
|
|
553
|
+
), $r = [
|
|
554
|
+
jr,
|
|
554
555
|
Wr,
|
|
555
|
-
Gr
|
|
556
|
-
|
|
557
|
-
], Yr = {
|
|
556
|
+
Gr
|
|
557
|
+
], Kr = {
|
|
558
558
|
key: 9,
|
|
559
559
|
t: "1692251753690",
|
|
560
560
|
class: "icon",
|
|
@@ -564,7 +564,7 @@ const te = (o, a) => {
|
|
|
564
564
|
"p-id": "4336",
|
|
565
565
|
width: "200",
|
|
566
566
|
height: "200"
|
|
567
|
-
},
|
|
567
|
+
}, Yr = /* @__PURE__ */ A(
|
|
568
568
|
"path",
|
|
569
569
|
{
|
|
570
570
|
d: "M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",
|
|
@@ -574,7 +574,7 @@ const te = (o, a) => {
|
|
|
574
574
|
null,
|
|
575
575
|
-1
|
|
576
576
|
/* HOISTED */
|
|
577
|
-
),
|
|
577
|
+
), Xr = /* @__PURE__ */ A(
|
|
578
578
|
"path",
|
|
579
579
|
{
|
|
580
580
|
d: "M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",
|
|
@@ -584,7 +584,7 @@ const te = (o, a) => {
|
|
|
584
584
|
null,
|
|
585
585
|
-1
|
|
586
586
|
/* HOISTED */
|
|
587
|
-
),
|
|
587
|
+
), qr = /* @__PURE__ */ A(
|
|
588
588
|
"path",
|
|
589
589
|
{
|
|
590
590
|
d: "M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",
|
|
@@ -595,7 +595,7 @@ const te = (o, a) => {
|
|
|
595
595
|
null,
|
|
596
596
|
-1
|
|
597
597
|
/* HOISTED */
|
|
598
|
-
),
|
|
598
|
+
), Zr = /* @__PURE__ */ A(
|
|
599
599
|
"path",
|
|
600
600
|
{
|
|
601
601
|
d: "M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",
|
|
@@ -605,12 +605,12 @@ const te = (o, a) => {
|
|
|
605
605
|
null,
|
|
606
606
|
-1
|
|
607
607
|
/* HOISTED */
|
|
608
|
-
),
|
|
608
|
+
), Jr = [
|
|
609
|
+
Yr,
|
|
609
610
|
Xr,
|
|
610
611
|
qr,
|
|
611
|
-
Zr
|
|
612
|
-
|
|
613
|
-
], es = {
|
|
612
|
+
Zr
|
|
613
|
+
], Qr = {
|
|
614
614
|
key: 10,
|
|
615
615
|
t: "1714099890925",
|
|
616
616
|
class: "icon",
|
|
@@ -620,7 +620,7 @@ const te = (o, a) => {
|
|
|
620
620
|
"p-id": "2271",
|
|
621
621
|
width: "200",
|
|
622
622
|
height: "200"
|
|
623
|
-
},
|
|
623
|
+
}, es = /* @__PURE__ */ A(
|
|
624
624
|
"path",
|
|
625
625
|
{
|
|
626
626
|
d: "M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",
|
|
@@ -630,7 +630,7 @@ const te = (o, a) => {
|
|
|
630
630
|
null,
|
|
631
631
|
-1
|
|
632
632
|
/* HOISTED */
|
|
633
|
-
),
|
|
633
|
+
), ts = /* @__PURE__ */ A(
|
|
634
634
|
"path",
|
|
635
635
|
{
|
|
636
636
|
d: "M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",
|
|
@@ -641,7 +641,7 @@ const te = (o, a) => {
|
|
|
641
641
|
null,
|
|
642
642
|
-1
|
|
643
643
|
/* HOISTED */
|
|
644
|
-
),
|
|
644
|
+
), is = /* @__PURE__ */ A(
|
|
645
645
|
"path",
|
|
646
646
|
{
|
|
647
647
|
d: "M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",
|
|
@@ -651,11 +651,11 @@ const te = (o, a) => {
|
|
|
651
651
|
null,
|
|
652
652
|
-1
|
|
653
653
|
/* HOISTED */
|
|
654
|
-
),
|
|
654
|
+
), ns = [
|
|
655
|
+
es,
|
|
655
656
|
ts,
|
|
656
|
-
is
|
|
657
|
-
|
|
658
|
-
], ss = {
|
|
657
|
+
is
|
|
658
|
+
], rs = {
|
|
659
659
|
key: 11,
|
|
660
660
|
t: "1686300037564",
|
|
661
661
|
class: "icon",
|
|
@@ -665,7 +665,7 @@ const te = (o, a) => {
|
|
|
665
665
|
"p-id": "7515",
|
|
666
666
|
width: "200",
|
|
667
667
|
height: "200"
|
|
668
|
-
},
|
|
668
|
+
}, ss = /* @__PURE__ */ A(
|
|
669
669
|
"path",
|
|
670
670
|
{
|
|
671
671
|
d: "M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",
|
|
@@ -675,7 +675,7 @@ const te = (o, a) => {
|
|
|
675
675
|
null,
|
|
676
676
|
-1
|
|
677
677
|
/* HOISTED */
|
|
678
|
-
),
|
|
678
|
+
), os = /* @__PURE__ */ A(
|
|
679
679
|
"path",
|
|
680
680
|
{
|
|
681
681
|
d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
|
|
@@ -685,7 +685,7 @@ const te = (o, a) => {
|
|
|
685
685
|
null,
|
|
686
686
|
-1
|
|
687
687
|
/* HOISTED */
|
|
688
|
-
),
|
|
688
|
+
), as = /* @__PURE__ */ A(
|
|
689
689
|
"path",
|
|
690
690
|
{
|
|
691
691
|
d: "M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",
|
|
@@ -695,11 +695,11 @@ const te = (o, a) => {
|
|
|
695
695
|
null,
|
|
696
696
|
-1
|
|
697
697
|
/* HOISTED */
|
|
698
|
-
),
|
|
698
|
+
), ls = [
|
|
699
|
+
ss,
|
|
699
700
|
os,
|
|
700
|
-
as
|
|
701
|
-
|
|
702
|
-
], cs = /* @__PURE__ */ ne({
|
|
701
|
+
as
|
|
702
|
+
], us = /* @__PURE__ */ ne({
|
|
703
703
|
__name: "IkFileIcon",
|
|
704
704
|
props: {
|
|
705
705
|
type: {
|
|
@@ -721,14 +721,14 @@ const te = (o, a) => {
|
|
|
721
721
|
},
|
|
722
722
|
setup(o) {
|
|
723
723
|
const a = o, r = ue(() => a.file ? te(a.file, a.fields) : a.type);
|
|
724
|
-
return (t, e) => r.value === "image" ? (E(), D("svg",
|
|
724
|
+
return (t, e) => r.value === "image" ? (E(), D("svg", lr, dr)) : r.value === "zip" ? (E(), D("svg", gr, mr)) : r.value === "ppt" ? (E(), D("svg", yr, Cr)) : r.value === "word" ? (E(), D("svg", wr, Er)) : r.value === "pdf" ? (E(), D("svg", Sr, Ir)) : r.value === "txt" ? (E(), D("svg", Pr, Rr)) : r.value === "audio" ? (E(), D("svg", Or, Nr)) : r.value === "video" ? (E(), D("svg", Br, zr)) : r.value === "excel" ? (E(), D("svg", Vr, $r)) : r.value === "exe" ? (E(), D("svg", Kr, Jr)) : r.value === "json" ? (E(), D("svg", Qr, ns)) : (E(), D("svg", rs, ls));
|
|
725
725
|
}
|
|
726
|
-
}),
|
|
726
|
+
}), Ci = ze(us), at = (o, a) => {
|
|
727
727
|
const r = o.__vccOpts || o;
|
|
728
728
|
for (const [t, e] of a)
|
|
729
729
|
r[t] = e;
|
|
730
730
|
return r;
|
|
731
|
-
},
|
|
731
|
+
}, Ot = (o) => o % 1 === 0 ? o.toString() : o.toFixed(2), vt = (o, a) => a ? a.startsWith("http") ? a : `${o || location.origin}${a}` : "", cs = (o) => {
|
|
732
732
|
const a = it("loadUrl"), r = ue(() => o.loadUrl || o.fileUrl || (a == null ? void 0 : a.value)), t = it("uploadUrl"), e = ue(() => o.action || o.uploadUrl || (t == null ? void 0 : t.value)), i = it("token"), n = ue(() => o.token || (i == null ? void 0 : i.value)), s = it("onlyofficeConfig"), l = ue(() => o.onlyofficeConfig || (s == null ? void 0 : s.value)), u = it("userInfo"), c = ue(() => o.userInfo || (u == null ? void 0 : u.value));
|
|
733
733
|
return {
|
|
734
734
|
cLoadUrl: r,
|
|
@@ -737,7 +737,7 @@ const te = (o, a) => {
|
|
|
737
737
|
cOnlyofficeConfig: l,
|
|
738
738
|
cUserInfo: c
|
|
739
739
|
};
|
|
740
|
-
},
|
|
740
|
+
}, tn = cs, fs = /* @__PURE__ */ ne({
|
|
741
741
|
__name: "IkPreviewFileDialog",
|
|
742
742
|
props: /* @__PURE__ */ Qe({
|
|
743
743
|
file: {
|
|
@@ -780,7 +780,7 @@ const te = (o, a) => {
|
|
|
780
780
|
suffix: "suffix",
|
|
781
781
|
size: "fileSize",
|
|
782
782
|
...a.field
|
|
783
|
-
})), e = Pe(null), i = Pe(null), n =
|
|
783
|
+
})), e = Pe(null), i = Pe(null), n = Rn({
|
|
784
784
|
image: !1,
|
|
785
785
|
office: !1,
|
|
786
786
|
video: !1
|
|
@@ -811,13 +811,13 @@ const te = (o, a) => {
|
|
|
811
811
|
}
|
|
812
812
|
},
|
|
813
813
|
document: {
|
|
814
|
-
key:
|
|
814
|
+
key: en(),
|
|
815
815
|
title: V,
|
|
816
816
|
url: vt(a.loadUrl, b),
|
|
817
817
|
fileType: w,
|
|
818
818
|
...((_ = a.onlyOfficeConfig) == null ? void 0 : _.document) || {}
|
|
819
819
|
},
|
|
820
|
-
documentType:
|
|
820
|
+
documentType: ar(w)
|
|
821
821
|
};
|
|
822
822
|
return;
|
|
823
823
|
}
|
|
@@ -825,7 +825,7 @@ const te = (o, a) => {
|
|
|
825
825
|
console.info("预览错误: ", C);
|
|
826
826
|
}
|
|
827
827
|
};
|
|
828
|
-
|
|
828
|
+
Ji([r, a.file], ([u, c]) => {
|
|
829
829
|
u && pt(() => {
|
|
830
830
|
s(a.file);
|
|
831
831
|
});
|
|
@@ -849,12 +849,12 @@ const te = (o, a) => {
|
|
|
849
849
|
}, null, 8, ["url-list"])) : Z("v-if", !0),
|
|
850
850
|
Z(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
851
851
|
Z(" 文档类 "),
|
|
852
|
-
|
|
852
|
+
Y(T(Ja), {
|
|
853
853
|
modelValue: n.video,
|
|
854
854
|
"onUpdate:modelValue": c[1] || (c[1] = (m) => n.video = m),
|
|
855
855
|
url: (p = i.value) == null ? void 0 : p.url
|
|
856
856
|
}, null, 8, ["modelValue", "url"]),
|
|
857
|
-
|
|
857
|
+
Y(T(Ss), {
|
|
858
858
|
modelValue: n.office,
|
|
859
859
|
"onUpdate:modelValue": c[2] || (c[2] = (m) => n.office = m),
|
|
860
860
|
draggable: "",
|
|
@@ -872,7 +872,7 @@ const te = (o, a) => {
|
|
|
872
872
|
default: q(() => {
|
|
873
873
|
var m;
|
|
874
874
|
return [
|
|
875
|
-
|
|
875
|
+
Y(T(Fs), {
|
|
876
876
|
"config-options": e.value,
|
|
877
877
|
"document-server-url": ((m = o.onlyOfficeConfig) == null ? void 0 : m.serverUrl) || o.onlyofficeServer
|
|
878
878
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -888,18 +888,18 @@ const te = (o, a) => {
|
|
|
888
888
|
};
|
|
889
889
|
}
|
|
890
890
|
});
|
|
891
|
-
const
|
|
891
|
+
const hs = ze(fs), ds = {
|
|
892
892
|
key: 0,
|
|
893
893
|
class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
|
|
894
|
-
},
|
|
894
|
+
}, gs = {
|
|
895
895
|
key: 1,
|
|
896
896
|
class: "h-[1em] w-[1em]",
|
|
897
897
|
"aria-hidden": "true"
|
|
898
|
-
},
|
|
898
|
+
}, ps = ["xlink:href"], vs = ["src"], ms = {
|
|
899
899
|
key: 1,
|
|
900
900
|
class: "h-[1em] w-[1em]",
|
|
901
901
|
"aria-hidden": "true"
|
|
902
|
-
},
|
|
902
|
+
}, ys = ["xlink:href"], _s = ["src"], ks = /* @__PURE__ */ ne({
|
|
903
903
|
name: "IkSvgIcon",
|
|
904
904
|
__name: "index",
|
|
905
905
|
props: {
|
|
@@ -925,89 +925,86 @@ const ds = ze(hs), gs = {
|
|
|
925
925
|
warning: { type: Boolean },
|
|
926
926
|
width: {}
|
|
927
927
|
},
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
switch (t.value.flip) {
|
|
928
|
+
setup(o) {
|
|
929
|
+
const a = o, r = ue(() => a), t = ue(() => {
|
|
930
|
+
const { name: i } = r.value;
|
|
931
|
+
return /^http?:\/\//.test(i) ? "img" : /i-[^:]+:[^:]+/.test(i) ? "unocss" : i != null && i.startsWith("iksig") ? "iksig" : i != null && i.includes(":") ? "iconify" : i != null && i.startsWith("iksvg") ? "svg" : "i";
|
|
932
|
+
}), e = ue(() => {
|
|
933
|
+
const i = [];
|
|
934
|
+
if (r.value.flip)
|
|
935
|
+
switch (r.value.flip) {
|
|
937
936
|
case "horizontal":
|
|
938
|
-
|
|
937
|
+
i.push("rotateY(180deg)");
|
|
939
938
|
break;
|
|
940
939
|
case "vertical":
|
|
941
|
-
|
|
940
|
+
i.push("rotateX(180deg)");
|
|
942
941
|
break;
|
|
943
942
|
case "both":
|
|
944
|
-
|
|
943
|
+
i.push("rotateX(180deg)"), i.push("rotateY(180deg)");
|
|
945
944
|
break;
|
|
946
945
|
}
|
|
947
|
-
|
|
948
|
-
const
|
|
949
|
-
|
|
950
|
-
...
|
|
951
|
-
...
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
"--ik-color-icon-
|
|
946
|
+
r.value.rotate && i.push(`rotate(${r.value.rotate % 360}deg)`);
|
|
947
|
+
const n = {
|
|
948
|
+
pointerEvents: r.value.disabled ? "none" : "auto",
|
|
949
|
+
...r.value.color && { color: r.value.color },
|
|
950
|
+
...r.value.size && { fontSize: typeof r.value.size == "number" ? `${r.value.size}px` : r.value.size },
|
|
951
|
+
...i.length && { transform: i.join(" ") },
|
|
952
|
+
padding: r.value.showBg || r.value.bg ? r.value.padding : 0,
|
|
953
|
+
...r.value.color && t.value !== "iksig" ? {
|
|
954
|
+
"--ik-color-icon-dark": r.value.color,
|
|
955
|
+
"--ik-color-icon-light": r.value.colorLight || Wn.setOpacity(r.value.color, r.value.opacity)
|
|
956
956
|
} : {}
|
|
957
957
|
};
|
|
958
|
-
return
|
|
959
|
-
})
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
return t.value.tableIconType === "icon" || !t.value.tableIconType ? (E(), D("span", gs, [
|
|
965
|
-
t.value.notip || !t.value.title ? (E(), D(
|
|
958
|
+
return r.value.width && (n.width = n.height = typeof r.value.width == "number" ? `${r.value.width}px` : r.value.width), n;
|
|
959
|
+
});
|
|
960
|
+
return (i, n) => {
|
|
961
|
+
const s = st("el-tooltip"), l = st("el-button");
|
|
962
|
+
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (E(), D("span", ds, [
|
|
963
|
+
r.value.notip || !r.value.title ? (E(), D(
|
|
966
964
|
"i",
|
|
967
965
|
{
|
|
968
966
|
key: 0,
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
disabled: t.value.disabled
|
|
967
|
+
class: ge(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
968
|
+
[i.name]: t.value === "unocss",
|
|
969
|
+
"show-bg": r.value.showBg || r.value.bg,
|
|
970
|
+
default: r.value.size === "default",
|
|
971
|
+
small: r.value.size === "small",
|
|
972
|
+
big: r.value.size === "big",
|
|
973
|
+
warning: r.value.warning || r.value.type === "warning",
|
|
974
|
+
primary: r.value.primary || r.value.type === "primary",
|
|
975
|
+
success: i.success || r.value.type === "success",
|
|
976
|
+
error: r.value.error || r.value.type === "error",
|
|
977
|
+
active: r.value.active,
|
|
978
|
+
disabled: r.value.disabled
|
|
982
979
|
}]),
|
|
983
|
-
style: Ie(
|
|
980
|
+
style: Ie(e.value)
|
|
984
981
|
},
|
|
985
982
|
[
|
|
986
983
|
Z(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
987
|
-
|
|
984
|
+
t.value === "iksig" ? (E(), D(
|
|
988
985
|
"i",
|
|
989
986
|
{
|
|
990
987
|
key: 0,
|
|
991
|
-
class:
|
|
992
|
-
style: Ie(
|
|
988
|
+
class: ge(`iksig ${r.value.name}`),
|
|
989
|
+
style: Ie(e.value)
|
|
993
990
|
},
|
|
994
991
|
null,
|
|
995
992
|
6
|
|
996
993
|
/* CLASS, STYLE */
|
|
997
|
-
)) :
|
|
994
|
+
)) : t.value === "svg" ? (E(), D("svg", gs, [
|
|
998
995
|
A("use", {
|
|
999
|
-
"xlink:href": `#${
|
|
1000
|
-
}, null, 8,
|
|
1001
|
-
])) :
|
|
996
|
+
"xlink:href": `#${r.value.name}`
|
|
997
|
+
}, null, 8, ps)
|
|
998
|
+
])) : t.value === "img" ? (E(), D("img", {
|
|
1002
999
|
key: 2,
|
|
1003
|
-
src:
|
|
1000
|
+
src: r.value.name,
|
|
1004
1001
|
class: "h-[1em] w-[1em]"
|
|
1005
|
-
}, null, 8,
|
|
1002
|
+
}, null, 8, vs)) : (E(), D(
|
|
1006
1003
|
"i",
|
|
1007
1004
|
{
|
|
1008
1005
|
key: 3,
|
|
1009
|
-
class:
|
|
1010
|
-
style: Ie(
|
|
1006
|
+
class: ge(r.value.name),
|
|
1007
|
+
style: Ie(e.value)
|
|
1011
1008
|
},
|
|
1012
1009
|
null,
|
|
1013
1010
|
6
|
|
@@ -1016,55 +1013,54 @@ const ds = ze(hs), gs = {
|
|
|
1016
1013
|
],
|
|
1017
1014
|
6
|
|
1018
1015
|
/* CLASS, STYLE */
|
|
1019
|
-
)) : (E(), ee(
|
|
1016
|
+
)) : (E(), ee(s, {
|
|
1020
1017
|
key: 1,
|
|
1021
|
-
content:
|
|
1018
|
+
content: r.value.title,
|
|
1022
1019
|
placement: "top"
|
|
1023
1020
|
}, {
|
|
1024
1021
|
default: q(() => [
|
|
1025
1022
|
A(
|
|
1026
1023
|
"i",
|
|
1027
1024
|
{
|
|
1028
|
-
class:
|
|
1029
|
-
[
|
|
1030
|
-
"show-bg":
|
|
1031
|
-
default:
|
|
1032
|
-
small:
|
|
1033
|
-
big:
|
|
1034
|
-
warning:
|
|
1035
|
-
primary:
|
|
1036
|
-
success:
|
|
1037
|
-
error:
|
|
1038
|
-
active:
|
|
1025
|
+
class: ge(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1026
|
+
[i.name]: t.value === "unocss",
|
|
1027
|
+
"show-bg": r.value.showBg || r.value.bg,
|
|
1028
|
+
default: r.value.size === "default",
|
|
1029
|
+
small: r.value.size === "small",
|
|
1030
|
+
big: r.value.size === "big",
|
|
1031
|
+
warning: r.value.warning || r.value.type === "warning",
|
|
1032
|
+
primary: i.primary || r.value.type === "primary",
|
|
1033
|
+
success: i.success || r.value.type === "success",
|
|
1034
|
+
error: r.value.error || r.value.type === "error",
|
|
1035
|
+
active: r.value.active
|
|
1039
1036
|
}]),
|
|
1040
|
-
|
|
1041
|
-
style: Ie(i.value)
|
|
1037
|
+
style: Ie(e.value)
|
|
1042
1038
|
},
|
|
1043
1039
|
[
|
|
1044
|
-
|
|
1040
|
+
t.value === "iksig" ? (E(), D(
|
|
1045
1041
|
"i",
|
|
1046
1042
|
{
|
|
1047
1043
|
key: 0,
|
|
1048
|
-
class:
|
|
1049
|
-
style: Ie(
|
|
1044
|
+
class: ge(`iksig ${r.value.name}`),
|
|
1045
|
+
style: Ie(e.value)
|
|
1050
1046
|
},
|
|
1051
1047
|
null,
|
|
1052
1048
|
6
|
|
1053
1049
|
/* CLASS, STYLE */
|
|
1054
|
-
)) :
|
|
1050
|
+
)) : t.value === "svg" ? (E(), D("svg", ms, [
|
|
1055
1051
|
A("use", {
|
|
1056
|
-
"xlink:href": `#${
|
|
1057
|
-
}, null, 8,
|
|
1058
|
-
])) :
|
|
1052
|
+
"xlink:href": `#${r.value.name}`
|
|
1053
|
+
}, null, 8, ys)
|
|
1054
|
+
])) : t.value === "img" ? (E(), D("img", {
|
|
1059
1055
|
key: 2,
|
|
1060
|
-
src:
|
|
1056
|
+
src: r.value.name,
|
|
1061
1057
|
class: "h-[1em] w-[1em]"
|
|
1062
|
-
}, null, 8,
|
|
1058
|
+
}, null, 8, _s)) : (E(), D(
|
|
1063
1059
|
"i",
|
|
1064
1060
|
{
|
|
1065
1061
|
key: 3,
|
|
1066
|
-
class:
|
|
1067
|
-
style: Ie(
|
|
1062
|
+
class: ge(r.value.name),
|
|
1063
|
+
style: Ie(e.value)
|
|
1068
1064
|
},
|
|
1069
1065
|
null,
|
|
1070
1066
|
6
|
|
@@ -1078,14 +1074,13 @@ const ds = ze(hs), gs = {
|
|
|
1078
1074
|
_: 1
|
|
1079
1075
|
/* STABLE */
|
|
1080
1076
|
}, 8, ["content"]))
|
|
1081
|
-
])) : (E(), ee(
|
|
1077
|
+
])) : (E(), ee(l, {
|
|
1082
1078
|
key: 1,
|
|
1083
|
-
type: ["warning", "error"].includes(
|
|
1084
|
-
onClick: Rt(s, ["stop"])
|
|
1079
|
+
type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
|
|
1085
1080
|
}, {
|
|
1086
1081
|
default: q(() => [
|
|
1087
1082
|
He(
|
|
1088
|
-
ce(
|
|
1083
|
+
ce(r.value.title),
|
|
1089
1084
|
1
|
|
1090
1085
|
/* TEXT */
|
|
1091
1086
|
)
|
|
@@ -1096,10 +1091,7 @@ const ds = ze(hs), gs = {
|
|
|
1096
1091
|
};
|
|
1097
1092
|
}
|
|
1098
1093
|
});
|
|
1099
|
-
const
|
|
1100
|
-
key: 0,
|
|
1101
|
-
class: "exit-main-page-maximize"
|
|
1102
|
-
}, Ts = /* @__PURE__ */ ne({
|
|
1094
|
+
const Cs = /* @__PURE__ */ at(ks, [["__scopeId", "data-v-52806adf"]]), pe = ze(Cs), ws = /* @__PURE__ */ ne({
|
|
1103
1095
|
__name: "CloseIcon",
|
|
1104
1096
|
props: {
|
|
1105
1097
|
showBg: {
|
|
@@ -1112,25 +1104,15 @@ const ws = /* @__PURE__ */ at(Cs, [["__scopeId", "data-v-4a1004b9"]]), ge = ze(w
|
|
|
1112
1104
|
}
|
|
1113
1105
|
},
|
|
1114
1106
|
setup(o) {
|
|
1115
|
-
return (a, r) => (E(),
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
error: ""
|
|
1122
|
-
})
|
|
1123
|
-
])) : (E(), ee(T(ge), {
|
|
1124
|
-
key: 1,
|
|
1125
|
-
error: "",
|
|
1126
|
-
name: "iksvg_guanbidanchuang",
|
|
1127
|
-
title: "关闭",
|
|
1128
|
-
size: 20
|
|
1129
|
-
}))
|
|
1130
|
-
]));
|
|
1107
|
+
return (a, r) => (E(), ee(T(pe), {
|
|
1108
|
+
error: "",
|
|
1109
|
+
name: "iksvg_guanbidanchuang",
|
|
1110
|
+
title: "关闭",
|
|
1111
|
+
size: 20
|
|
1112
|
+
}));
|
|
1131
1113
|
}
|
|
1132
1114
|
});
|
|
1133
|
-
const
|
|
1115
|
+
const bs = /* @__PURE__ */ at(ws, [["__scopeId", "data-v-e27fb022"]]), Ts = { class: "base-header" }, Es = /* @__PURE__ */ ne({
|
|
1134
1116
|
__name: "IkBaseDialog",
|
|
1135
1117
|
props: /* @__PURE__ */ Qe({
|
|
1136
1118
|
title: { default: "" },
|
|
@@ -1155,7 +1137,7 @@ const Es = /* @__PURE__ */ at(Ts, [["__scopeId", "data-v-79f49df8"]]), Ss = { cl
|
|
|
1155
1137
|
t.value = !t.value;
|
|
1156
1138
|
}, i = ne({
|
|
1157
1139
|
setup() {
|
|
1158
|
-
return () =>
|
|
1140
|
+
return () => On(bs, {
|
|
1159
1141
|
showBg: a.showCloseBg,
|
|
1160
1142
|
fullscreen: a.fullscreen
|
|
1161
1143
|
});
|
|
@@ -1163,7 +1145,7 @@ const Es = /* @__PURE__ */ at(Ts, [["__scopeId", "data-v-79f49df8"]]), Ss = { cl
|
|
|
1163
1145
|
});
|
|
1164
1146
|
return (n, s) => {
|
|
1165
1147
|
const l = st("el-dialog");
|
|
1166
|
-
return E(), ee(l,
|
|
1148
|
+
return E(), ee(l, Xt({
|
|
1167
1149
|
modelValue: r.value,
|
|
1168
1150
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
|
|
1169
1151
|
}, n.$attrs, {
|
|
@@ -1171,7 +1153,7 @@ const Es = /* @__PURE__ */ at(Ts, [["__scopeId", "data-v-79f49df8"]]), Ss = { cl
|
|
|
1171
1153
|
class: `ik-base-dialog ${n.noHeader ? "no-header" : ""} ${n.noFooter ? "no-footer" : ""}`,
|
|
1172
1154
|
fullscreen: t.value,
|
|
1173
1155
|
"modal-class": "baseDialog"
|
|
1174
|
-
}),
|
|
1156
|
+
}), Qi({
|
|
1175
1157
|
icon: q(() => [
|
|
1176
1158
|
we(n.$slots, "title", {}, () => [
|
|
1177
1159
|
He(
|
|
@@ -1182,7 +1164,7 @@ const Es = /* @__PURE__ */ at(Ts, [["__scopeId", "data-v-79f49df8"]]), Ss = { cl
|
|
|
1182
1164
|
])
|
|
1183
1165
|
]),
|
|
1184
1166
|
header: q(() => [
|
|
1185
|
-
A("div",
|
|
1167
|
+
A("div", Ts, [
|
|
1186
1168
|
we(n.$slots, "header", {}, () => [
|
|
1187
1169
|
He(
|
|
1188
1170
|
ce(n.title),
|
|
@@ -1191,7 +1173,7 @@ const Es = /* @__PURE__ */ at(Ts, [["__scopeId", "data-v-79f49df8"]]), Ss = { cl
|
|
|
1191
1173
|
)
|
|
1192
1174
|
])
|
|
1193
1175
|
]),
|
|
1194
|
-
n.$attrs.showClose ? (E(), ee(T(
|
|
1176
|
+
n.$attrs.showClose ? (E(), ee(T(pe), {
|
|
1195
1177
|
key: 0,
|
|
1196
1178
|
onClick: e,
|
|
1197
1179
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
@@ -1216,12 +1198,12 @@ const Es = /* @__PURE__ */ at(Ts, [["__scopeId", "data-v-79f49df8"]]), Ss = { cl
|
|
|
1216
1198
|
};
|
|
1217
1199
|
}
|
|
1218
1200
|
});
|
|
1219
|
-
const
|
|
1220
|
-
var
|
|
1221
|
-
function
|
|
1201
|
+
const Ss = ze(Es);
|
|
1202
|
+
var As = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1203
|
+
function ii(o) {
|
|
1222
1204
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
1223
1205
|
}
|
|
1224
|
-
function
|
|
1206
|
+
function xs(o, a, r, t) {
|
|
1225
1207
|
function e(i) {
|
|
1226
1208
|
return i instanceof r ? i : new r(function(n) {
|
|
1227
1209
|
n(i);
|
|
@@ -1248,7 +1230,7 @@ function Ps(o, a, r, t) {
|
|
|
1248
1230
|
u((t = t.apply(o, a || [])).next());
|
|
1249
1231
|
});
|
|
1250
1232
|
}
|
|
1251
|
-
function
|
|
1233
|
+
function Is(o, a) {
|
|
1252
1234
|
var r = { label: 0, sent: function() {
|
|
1253
1235
|
if (i[0] & 1)
|
|
1254
1236
|
throw i[1];
|
|
@@ -1313,9 +1295,9 @@ function Ds(o, a) {
|
|
|
1313
1295
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
1314
1296
|
}
|
|
1315
1297
|
}
|
|
1316
|
-
var
|
|
1317
|
-
return
|
|
1318
|
-
return
|
|
1298
|
+
var Ps = function(o, a) {
|
|
1299
|
+
return xs(void 0, void 0, void 0, function() {
|
|
1300
|
+
return Is(this, function(r) {
|
|
1319
1301
|
return [2, new Promise(function(t, e) {
|
|
1320
1302
|
try {
|
|
1321
1303
|
if (window.DocsAPI)
|
|
@@ -1327,12 +1309,12 @@ var Ls = function(o, a) {
|
|
|
1327
1309
|
if (!l) {
|
|
1328
1310
|
if (clearInterval(n), window.DocsAPI)
|
|
1329
1311
|
return t(null);
|
|
1330
|
-
var u =
|
|
1312
|
+
var u = wi(a, o, t, e);
|
|
1331
1313
|
i.remove(), document.body.appendChild(u);
|
|
1332
1314
|
}
|
|
1333
1315
|
}, 500);
|
|
1334
1316
|
else {
|
|
1335
|
-
var s =
|
|
1317
|
+
var s = wi(a, o, t, e);
|
|
1336
1318
|
document.body.appendChild(s);
|
|
1337
1319
|
}
|
|
1338
1320
|
} catch (l) {
|
|
@@ -1341,14 +1323,14 @@ var Ls = function(o, a) {
|
|
|
1341
1323
|
})];
|
|
1342
1324
|
});
|
|
1343
1325
|
});
|
|
1344
|
-
},
|
|
1326
|
+
}, wi = function(o, a, r, t) {
|
|
1345
1327
|
var e = document.createElement("script");
|
|
1346
1328
|
return e.id = o, e.type = "text/javascript", e.src = a, e.async = !0, e.onload = function() {
|
|
1347
1329
|
e.removeAttribute("loading"), r(null);
|
|
1348
1330
|
}, e.onerror = function(i) {
|
|
1349
1331
|
e.removeAttribute("loading"), t(i);
|
|
1350
1332
|
}, e.setAttribute("loading", ""), e;
|
|
1351
|
-
},
|
|
1333
|
+
}, ni = ne({
|
|
1352
1334
|
name: "DocumentEditor",
|
|
1353
1335
|
props: {
|
|
1354
1336
|
id: {
|
|
@@ -1403,7 +1385,7 @@ var Ls = function(o, a) {
|
|
|
1403
1385
|
var o = this, a = this.documentServerUrl;
|
|
1404
1386
|
a.endsWith("/") || (a += "/");
|
|
1405
1387
|
var r = "".concat(a, "web-apps/apps/api/documents/api.js");
|
|
1406
|
-
|
|
1388
|
+
Ps(r, "onlyoffice-api-script").then(function() {
|
|
1407
1389
|
return o.onLoad();
|
|
1408
1390
|
}).catch(function() {
|
|
1409
1391
|
o.onError(-2);
|
|
@@ -1517,13 +1499,13 @@ var Ls = function(o, a) {
|
|
|
1517
1499
|
}
|
|
1518
1500
|
}
|
|
1519
1501
|
});
|
|
1520
|
-
const
|
|
1521
|
-
function
|
|
1522
|
-
return E(), D("div", { id: o.id }, null, 8,
|
|
1502
|
+
const Ds = ["id"];
|
|
1503
|
+
function Ls(o, a, r, t, e, i) {
|
|
1504
|
+
return E(), D("div", { id: o.id }, null, 8, Ds);
|
|
1523
1505
|
}
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
const
|
|
1506
|
+
ni.render = Ls;
|
|
1507
|
+
ni.__file = "src/components/DocumentEditor.vue";
|
|
1508
|
+
const Rs = /* @__PURE__ */ ne({
|
|
1527
1509
|
__name: "IkOnlyOffice",
|
|
1528
1510
|
props: {
|
|
1529
1511
|
// 文件服务器的服务的地址
|
|
@@ -1558,7 +1540,7 @@ const Fs = /* @__PURE__ */ ne({
|
|
|
1558
1540
|
style: Ie({ height: a.officeHeight })
|
|
1559
1541
|
},
|
|
1560
1542
|
[
|
|
1561
|
-
|
|
1543
|
+
Y(T(ni), {
|
|
1562
1544
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1563
1545
|
ref: "editorRef",
|
|
1564
1546
|
"document-server-url": o.documentServerUrl,
|
|
@@ -1571,8 +1553,8 @@ const Fs = /* @__PURE__ */ ne({
|
|
|
1571
1553
|
));
|
|
1572
1554
|
}
|
|
1573
1555
|
});
|
|
1574
|
-
const
|
|
1575
|
-
function
|
|
1556
|
+
const Os = /* @__PURE__ */ at(Rs, [["__scopeId", "data-v-98d51ef9"]]), Fs = ze(Os);
|
|
1557
|
+
function bi(o, a) {
|
|
1576
1558
|
var r = Object.keys(o);
|
|
1577
1559
|
if (Object.getOwnPropertySymbols) {
|
|
1578
1560
|
var t = Object.getOwnPropertySymbols(o);
|
|
@@ -1585,9 +1567,9 @@ function Ti(o, a) {
|
|
|
1585
1567
|
function Q(o) {
|
|
1586
1568
|
for (var a = 1; a < arguments.length; a++) {
|
|
1587
1569
|
var r = arguments[a] != null ? arguments[a] : {};
|
|
1588
|
-
a % 2 ?
|
|
1570
|
+
a % 2 ? bi(Object(r), !0).forEach(function(t) {
|
|
1589
1571
|
y(o, t, r[t]);
|
|
1590
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(r)) :
|
|
1572
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(r)) : bi(Object(r)).forEach(function(t) {
|
|
1591
1573
|
Object.defineProperty(o, t, Object.getOwnPropertyDescriptor(r, t));
|
|
1592
1574
|
});
|
|
1593
1575
|
}
|
|
@@ -1605,19 +1587,19 @@ function I(o, a) {
|
|
|
1605
1587
|
if (!(o instanceof a))
|
|
1606
1588
|
throw new TypeError("Cannot call a class as a function");
|
|
1607
1589
|
}
|
|
1608
|
-
function
|
|
1590
|
+
function Ti(o, a) {
|
|
1609
1591
|
for (var r = 0; r < a.length; r++) {
|
|
1610
1592
|
var t = a[r];
|
|
1611
|
-
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(o,
|
|
1593
|
+
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(o, nn(t.key), t);
|
|
1612
1594
|
}
|
|
1613
1595
|
}
|
|
1614
1596
|
function P(o, a, r) {
|
|
1615
|
-
return a &&
|
|
1597
|
+
return a && Ti(o.prototype, a), r && Ti(o, r), Object.defineProperty(o, "prototype", {
|
|
1616
1598
|
writable: !1
|
|
1617
1599
|
}), o;
|
|
1618
1600
|
}
|
|
1619
1601
|
function y(o, a, r) {
|
|
1620
|
-
return a =
|
|
1602
|
+
return a = nn(a), a in o ? Object.defineProperty(o, a, {
|
|
1621
1603
|
value: r,
|
|
1622
1604
|
enumerable: !0,
|
|
1623
1605
|
configurable: !0,
|
|
@@ -1635,19 +1617,19 @@ function L(o, a) {
|
|
|
1635
1617
|
}
|
|
1636
1618
|
}), Object.defineProperty(o, "prototype", {
|
|
1637
1619
|
writable: !1
|
|
1638
|
-
}), a &&
|
|
1620
|
+
}), a && qt(o, a);
|
|
1639
1621
|
}
|
|
1640
1622
|
function O(o) {
|
|
1641
1623
|
return O = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
1642
1624
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
1643
1625
|
}, O(o);
|
|
1644
1626
|
}
|
|
1645
|
-
function
|
|
1646
|
-
return
|
|
1627
|
+
function qt(o, a) {
|
|
1628
|
+
return qt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
1647
1629
|
return t.__proto__ = e, t;
|
|
1648
|
-
},
|
|
1630
|
+
}, qt(o, a);
|
|
1649
1631
|
}
|
|
1650
|
-
function
|
|
1632
|
+
function Ms() {
|
|
1651
1633
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1652
1634
|
return !1;
|
|
1653
1635
|
if (typeof Proxy == "function")
|
|
@@ -1664,7 +1646,7 @@ function v(o) {
|
|
|
1664
1646
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1665
1647
|
return o;
|
|
1666
1648
|
}
|
|
1667
|
-
function
|
|
1649
|
+
function ri(o, a) {
|
|
1668
1650
|
if (a && (typeof a == "object" || typeof a == "function"))
|
|
1669
1651
|
return a;
|
|
1670
1652
|
if (a !== void 0)
|
|
@@ -1672,7 +1654,7 @@ function si(o, a) {
|
|
|
1672
1654
|
return v(o);
|
|
1673
1655
|
}
|
|
1674
1656
|
function R(o) {
|
|
1675
|
-
var a =
|
|
1657
|
+
var a = Ms();
|
|
1676
1658
|
return function() {
|
|
1677
1659
|
var t = O(o), e;
|
|
1678
1660
|
if (a) {
|
|
@@ -1680,17 +1662,17 @@ function R(o) {
|
|
|
1680
1662
|
e = Reflect.construct(t, arguments, i);
|
|
1681
1663
|
} else
|
|
1682
1664
|
e = t.apply(this, arguments);
|
|
1683
|
-
return
|
|
1665
|
+
return ri(this, e);
|
|
1684
1666
|
};
|
|
1685
1667
|
}
|
|
1686
|
-
function
|
|
1668
|
+
function Ns(o, a) {
|
|
1687
1669
|
for (; !Object.prototype.hasOwnProperty.call(o, a) && (o = O(o), o !== null); )
|
|
1688
1670
|
;
|
|
1689
1671
|
return o;
|
|
1690
1672
|
}
|
|
1691
1673
|
function F() {
|
|
1692
1674
|
return typeof Reflect < "u" && Reflect.get ? F = Reflect.get.bind() : F = function(a, r, t) {
|
|
1693
|
-
var e =
|
|
1675
|
+
var e = Ns(a, r);
|
|
1694
1676
|
if (e) {
|
|
1695
1677
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
1696
1678
|
return i.get ? i.get.call(arguments.length < 3 ? a : t) : i.value;
|
|
@@ -1698,38 +1680,38 @@ function F() {
|
|
|
1698
1680
|
}, F.apply(this, arguments);
|
|
1699
1681
|
}
|
|
1700
1682
|
function ve(o) {
|
|
1701
|
-
return
|
|
1683
|
+
return Bs(o) || Hs(o) || Us(o) || zs();
|
|
1702
1684
|
}
|
|
1703
|
-
function
|
|
1685
|
+
function Bs(o) {
|
|
1704
1686
|
if (Array.isArray(o))
|
|
1705
|
-
return
|
|
1687
|
+
return Zt(o);
|
|
1706
1688
|
}
|
|
1707
|
-
function
|
|
1689
|
+
function Hs(o) {
|
|
1708
1690
|
if (typeof Symbol < "u" && o[Symbol.iterator] != null || o["@@iterator"] != null)
|
|
1709
1691
|
return Array.from(o);
|
|
1710
1692
|
}
|
|
1711
|
-
function
|
|
1693
|
+
function Us(o, a) {
|
|
1712
1694
|
if (o) {
|
|
1713
1695
|
if (typeof o == "string")
|
|
1714
|
-
return
|
|
1696
|
+
return Zt(o, a);
|
|
1715
1697
|
var r = Object.prototype.toString.call(o).slice(8, -1);
|
|
1716
1698
|
if (r === "Object" && o.constructor && (r = o.constructor.name), r === "Map" || r === "Set")
|
|
1717
1699
|
return Array.from(o);
|
|
1718
1700
|
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
1719
|
-
return
|
|
1701
|
+
return Zt(o, a);
|
|
1720
1702
|
}
|
|
1721
1703
|
}
|
|
1722
|
-
function
|
|
1704
|
+
function Zt(o, a) {
|
|
1723
1705
|
(a == null || a > o.length) && (a = o.length);
|
|
1724
1706
|
for (var r = 0, t = new Array(a); r < a; r++)
|
|
1725
1707
|
t[r] = o[r];
|
|
1726
1708
|
return t;
|
|
1727
1709
|
}
|
|
1728
|
-
function
|
|
1710
|
+
function zs() {
|
|
1729
1711
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1730
1712
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1731
1713
|
}
|
|
1732
|
-
function
|
|
1714
|
+
function Vs(o, a) {
|
|
1733
1715
|
if (typeof o != "object" || o === null)
|
|
1734
1716
|
return o;
|
|
1735
1717
|
var r = o[Symbol.toPrimitive];
|
|
@@ -1741,11 +1723,11 @@ function Ws(o, a) {
|
|
|
1741
1723
|
}
|
|
1742
1724
|
return (a === "string" ? String : Number)(o);
|
|
1743
1725
|
}
|
|
1744
|
-
function
|
|
1745
|
-
var a =
|
|
1726
|
+
function nn(o) {
|
|
1727
|
+
var a = Vs(o, "string");
|
|
1746
1728
|
return typeof a == "symbol" ? a : String(a);
|
|
1747
1729
|
}
|
|
1748
|
-
var
|
|
1730
|
+
var rn = { exports: {} };
|
|
1749
1731
|
(function(o) {
|
|
1750
1732
|
var a = Object.prototype.hasOwnProperty, r = "~";
|
|
1751
1733
|
function t() {
|
|
@@ -1855,40 +1837,40 @@ var sn = { exports: {} };
|
|
|
1855
1837
|
var c;
|
|
1856
1838
|
return u ? (c = r ? r + u : u, this._events[c] && n(this, c)) : (this._events = new t(), this._eventsCount = 0), this;
|
|
1857
1839
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, o.exports = s;
|
|
1858
|
-
})(
|
|
1859
|
-
var
|
|
1860
|
-
const
|
|
1861
|
-
var
|
|
1840
|
+
})(rn);
|
|
1841
|
+
var sn = rn.exports;
|
|
1842
|
+
const on = /* @__PURE__ */ ii(sn);
|
|
1843
|
+
var js = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Ft = {
|
|
1862
1844
|
info: "color: #525252; background-color: #90ee90;",
|
|
1863
1845
|
error: "color: #525252; background-color: red;",
|
|
1864
1846
|
warn: "color: #525252; background-color: yellow; "
|
|
1865
|
-
},
|
|
1847
|
+
}, Mt = "%c[xgplayer]", U = {
|
|
1866
1848
|
config: {
|
|
1867
|
-
debug:
|
|
1849
|
+
debug: js ? 3 : 0
|
|
1868
1850
|
},
|
|
1869
1851
|
logInfo: function(a) {
|
|
1870
1852
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
1871
1853
|
e[i - 1] = arguments[i];
|
|
1872
|
-
this.config.debug >= 3 && (r = console).log.apply(r, [
|
|
1854
|
+
this.config.debug >= 3 && (r = console).log.apply(r, [Mt, Ft.info, a].concat(e));
|
|
1873
1855
|
},
|
|
1874
1856
|
logWarn: function(a) {
|
|
1875
1857
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
1876
1858
|
e[i - 1] = arguments[i];
|
|
1877
|
-
this.config.debug >= 1 && (r = console).warn.apply(r, [
|
|
1859
|
+
this.config.debug >= 1 && (r = console).warn.apply(r, [Mt, Ft.warn, a].concat(e));
|
|
1878
1860
|
},
|
|
1879
1861
|
logError: function(a) {
|
|
1880
1862
|
var r;
|
|
1881
1863
|
if (!(this.config.debug < 1)) {
|
|
1882
1864
|
for (var t = this.config.debug >= 2 ? "trace" : "error", e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
|
|
1883
1865
|
i[n - 1] = arguments[n];
|
|
1884
|
-
(r = console)[t].apply(r, [
|
|
1866
|
+
(r = console)[t].apply(r, [Mt, Ft.error, a].concat(i));
|
|
1885
1867
|
}
|
|
1886
1868
|
}
|
|
1887
1869
|
};
|
|
1888
|
-
function
|
|
1870
|
+
function Ws(o) {
|
|
1889
1871
|
o.logInfo = U.logInfo.bind(o), o.logWarn = U.logWarn.bind(o), o.logError = U.logError.bind(o);
|
|
1890
1872
|
}
|
|
1891
|
-
var
|
|
1873
|
+
var Gs = /* @__PURE__ */ function() {
|
|
1892
1874
|
function o(a) {
|
|
1893
1875
|
I(this, o), this.bufferedList = a;
|
|
1894
1876
|
}
|
|
@@ -2134,7 +2116,7 @@ f.setStyleFromCsstext = function(o, a) {
|
|
|
2134
2116
|
o.style[t] = a[t];
|
|
2135
2117
|
});
|
|
2136
2118
|
};
|
|
2137
|
-
function
|
|
2119
|
+
function $s(o, a) {
|
|
2138
2120
|
for (var r = 0, t = a.length; r < t; r++)
|
|
2139
2121
|
if (o.indexOf(a[r]) > -1)
|
|
2140
2122
|
return !0;
|
|
@@ -2148,7 +2130,7 @@ f.filterStyleFromText = function(o) {
|
|
|
2148
2130
|
return t.map(function(n) {
|
|
2149
2131
|
if (n) {
|
|
2150
2132
|
var s = n.split(":");
|
|
2151
|
-
s.length > 1 && (
|
|
2133
|
+
s.length > 1 && ($s(s[0], a) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
|
|
2152
2134
|
}
|
|
2153
2135
|
}), o.setAttribute("style", ""), Object.keys(i).map(function(n) {
|
|
2154
2136
|
o.style[n] = i[n];
|
|
@@ -2213,7 +2195,7 @@ f.getBuffered2 = function(o) {
|
|
|
2213
2195
|
}
|
|
2214
2196
|
else
|
|
2215
2197
|
e = r;
|
|
2216
|
-
return new
|
|
2198
|
+
return new Gs(e);
|
|
2217
2199
|
};
|
|
2218
2200
|
f.getEventPos = function(o) {
|
|
2219
2201
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
@@ -2333,15 +2315,15 @@ f.getCurrentTimeByOffset = function(o, a) {
|
|
|
2333
2315
|
}
|
|
2334
2316
|
return o;
|
|
2335
2317
|
};
|
|
2336
|
-
function
|
|
2318
|
+
function an(o) {
|
|
2337
2319
|
var a = ae(o);
|
|
2338
2320
|
return o !== null && (a === "object" || a === "function");
|
|
2339
2321
|
}
|
|
2340
|
-
function
|
|
2322
|
+
function Ks(o, a, r) {
|
|
2341
2323
|
var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, g = !a && a !== 0 && typeof window.requestAnimationFrame == "function";
|
|
2342
2324
|
if (typeof o != "function")
|
|
2343
2325
|
throw new TypeError("Expected a function");
|
|
2344
|
-
a = +a || 0,
|
|
2326
|
+
a = +a || 0, an(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, a) : i, d = "trailing" in r ? !!r.trailing : d);
|
|
2345
2327
|
function p(z) {
|
|
2346
2328
|
var ie = t, x = e;
|
|
2347
2329
|
return t = e = void 0, u = z, n = o.apply(x, ie), n;
|
|
@@ -2396,30 +2378,30 @@ function Xs(o, a, r) {
|
|
|
2396
2378
|
}
|
|
2397
2379
|
return J.cancel = W, J.flush = M, J.pending = re, J;
|
|
2398
2380
|
}
|
|
2399
|
-
function
|
|
2381
|
+
function Ys(o, a, r) {
|
|
2400
2382
|
var t = !0, e = !0;
|
|
2401
2383
|
if (typeof o != "function")
|
|
2402
2384
|
throw new TypeError("Expected a function");
|
|
2403
|
-
return
|
|
2385
|
+
return an(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Ks(o, a, {
|
|
2404
2386
|
leading: t,
|
|
2405
2387
|
trailing: e,
|
|
2406
2388
|
maxWait: a
|
|
2407
2389
|
});
|
|
2408
2390
|
}
|
|
2409
|
-
function
|
|
2391
|
+
function Xs() {
|
|
2410
2392
|
var o = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
|
|
2411
2393
|
return o === "zh-cn" && (o = "zh"), o;
|
|
2412
2394
|
}
|
|
2413
|
-
function
|
|
2395
|
+
function qs(o, a, r) {
|
|
2414
2396
|
if (o) {
|
|
2415
2397
|
var t = o.getAttribute(r);
|
|
2416
2398
|
return !!(t && t === a && (o.tagName === "VIDEO" || o.tagName === "AUDIO"));
|
|
2417
2399
|
}
|
|
2418
2400
|
}
|
|
2419
|
-
var
|
|
2401
|
+
var Ei = {
|
|
2420
2402
|
android: /(Android)\s([\d.]+)/,
|
|
2421
2403
|
ios: /(Version)\/([\d.]+)/
|
|
2422
|
-
},
|
|
2404
|
+
}, Zs = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], B = {
|
|
2423
2405
|
get device() {
|
|
2424
2406
|
var o = B.os;
|
|
2425
2407
|
return o.isPc ? "pc" : "mobile";
|
|
@@ -2458,7 +2440,7 @@ var Si = {
|
|
|
2458
2440
|
if (typeof navigator > "u")
|
|
2459
2441
|
return 0;
|
|
2460
2442
|
var o = navigator.userAgent, a = "";
|
|
2461
|
-
/(?:iPhone)|(?:iPad|PlayBook)/.test(o) ? a =
|
|
2443
|
+
/(?:iPhone)|(?:iPad|PlayBook)/.test(o) ? a = Ei.ios : a = Ei.android;
|
|
2462
2444
|
var r = a ? a.exec(o) : [];
|
|
2463
2445
|
if (r && r.length >= 3) {
|
|
2464
2446
|
var t = r[2].split(".");
|
|
@@ -2482,7 +2464,7 @@ var Si = {
|
|
|
2482
2464
|
if (this.supportResult)
|
|
2483
2465
|
return this.supportResult;
|
|
2484
2466
|
var r = document.createElement("video");
|
|
2485
|
-
return typeof r.canPlayType == "function" &&
|
|
2467
|
+
return typeof r.canPlayType == "function" && Zs.map(function(t) {
|
|
2486
2468
|
r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (a.isSupport = !0, a.mime += "||".concat(t));
|
|
2487
2469
|
}), this.supportResult = a, r = null, a;
|
|
2488
2470
|
},
|
|
@@ -2521,14 +2503,14 @@ var Si = {
|
|
|
2521
2503
|
return Promise.resolve(r);
|
|
2522
2504
|
}
|
|
2523
2505
|
}
|
|
2524
|
-
},
|
|
2506
|
+
}, Jt = "3.0.18", Si = {
|
|
2525
2507
|
1: "media",
|
|
2526
2508
|
2: "media",
|
|
2527
2509
|
3: "media",
|
|
2528
2510
|
4: "media",
|
|
2529
2511
|
5: "media",
|
|
2530
2512
|
6: "media"
|
|
2531
|
-
},
|
|
2513
|
+
}, Ai = {
|
|
2532
2514
|
1: 5101,
|
|
2533
2515
|
2: 5102,
|
|
2534
2516
|
3: 5103,
|
|
@@ -2549,9 +2531,9 @@ var Si = {
|
|
|
2549
2531
|
var t = a && a.i18n ? a.i18n.ERROR_TYPES : null;
|
|
2550
2532
|
if (a.media) {
|
|
2551
2533
|
var e = r.mediaError ? r.mediaError : a.media.error || {}, i = a.duration, n = a.currentTime, s = a.ended, l = a.src, u = a.currentSrc, c = a.media, h = c.readyState, d = c.networkState, g = r.errorCode || e.code;
|
|
2552
|
-
|
|
2534
|
+
Ai[g] && (g = Ai[g]);
|
|
2553
2535
|
var p = {
|
|
2554
|
-
playerVersion:
|
|
2536
|
+
playerVersion: Jt,
|
|
2555
2537
|
currentTime: n,
|
|
2556
2538
|
duration: i,
|
|
2557
2539
|
ended: s,
|
|
@@ -2570,85 +2552,85 @@ var Si = {
|
|
|
2570
2552
|
}), p;
|
|
2571
2553
|
} else if (arguments.length > 1) {
|
|
2572
2554
|
for (var m = {
|
|
2573
|
-
playerVersion:
|
|
2555
|
+
playerVersion: Jt,
|
|
2574
2556
|
domain: document.domain
|
|
2575
2557
|
}, _ = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], C = 0; C < arguments.length; C++)
|
|
2576
2558
|
m[_[C]] = arguments[C];
|
|
2577
2559
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
2578
2560
|
}
|
|
2579
2561
|
}
|
|
2580
|
-
), de = "play",
|
|
2562
|
+
), de = "play", si = "playing", Ve = "ended", et = "pause", lt = "error", xt = "seeking", Te = "seeked", he = "timeupdate", ut = "waiting", be = "canplay", Js = "canplaythrough", Re = "durationchange", ln = "volumechange", Ee = "loadeddata", Qs = "loadedmetadata", un = "ratechange", cn = "progress", oi = "loadstart", je = "emptied", eo = "stalled", to = "suspend", io = "abort", no = "bufferedChange", ai = "focus", fn = "blur", li = "ready", hn = "urlNull", Ue = "autoplay_started", ui = "autoplay_was_prevented", It = "complete", yt = "replay", ci = "destroy", Pt = "urlchange", Qt = "download_speed_change", dn = "leaveplayer", gn = "enterplayer", pn = "loading", ke = "fullscreen_change", _t = "cssFullscreen_change", kt = "mini_state_change", fi = "definition_change", ro = "before_definition_change", ei = "after_definition_change", so = "SEI_PARSED", oo = "retry", De = "video_resize", ti = "pip_change", vn = "rotate", mn = "screenShot", Ct = "playnext", yn = "shortcut", _n = "xglog", wt = "user_action", Dt = "reset", kn = "source_error", Cn = "source_success", ao = "switch_subtitle", wn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], bn = {
|
|
2581
2563
|
STATS_INFO: "stats_info",
|
|
2582
2564
|
STATS_DOWNLOAD: "stats_download",
|
|
2583
2565
|
STATS_RESET: "stats_reset"
|
|
2584
|
-
},
|
|
2585
|
-
const
|
|
2566
|
+
}, Tn = "fps_stuck";
|
|
2567
|
+
const lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2586
2568
|
__proto__: null,
|
|
2587
|
-
ABORT:
|
|
2588
|
-
AFTER_DEFINITION_CHANGE:
|
|
2589
|
-
AUTOPLAY_PREVENTED:
|
|
2569
|
+
ABORT: io,
|
|
2570
|
+
AFTER_DEFINITION_CHANGE: ei,
|
|
2571
|
+
AUTOPLAY_PREVENTED: ui,
|
|
2590
2572
|
AUTOPLAY_STARTED: Ue,
|
|
2591
|
-
BEFORE_DEFINITION_CHANGE:
|
|
2592
|
-
BUFFER_CHANGE:
|
|
2573
|
+
BEFORE_DEFINITION_CHANGE: ro,
|
|
2574
|
+
BUFFER_CHANGE: no,
|
|
2593
2575
|
CANPLAY: be,
|
|
2594
|
-
CANPLAY_THROUGH:
|
|
2576
|
+
CANPLAY_THROUGH: Js,
|
|
2595
2577
|
COMPLETE: It,
|
|
2596
2578
|
CSS_FULLSCREEN_CHANGE: _t,
|
|
2597
|
-
DEFINITION_CHANGE:
|
|
2598
|
-
DESTROY:
|
|
2599
|
-
DOWNLOAD_SPEED_CHANGE:
|
|
2579
|
+
DEFINITION_CHANGE: fi,
|
|
2580
|
+
DESTROY: ci,
|
|
2581
|
+
DOWNLOAD_SPEED_CHANGE: Qt,
|
|
2600
2582
|
DURATION_CHANGE: Re,
|
|
2601
2583
|
EMPTIED: je,
|
|
2602
2584
|
ENDED: Ve,
|
|
2603
|
-
ENTER_PLAYER:
|
|
2585
|
+
ENTER_PLAYER: gn,
|
|
2604
2586
|
ERROR: lt,
|
|
2605
|
-
FPS_STUCK:
|
|
2587
|
+
FPS_STUCK: Tn,
|
|
2606
2588
|
FULLSCREEN_CHANGE: ke,
|
|
2607
|
-
LEAVE_PLAYER:
|
|
2589
|
+
LEAVE_PLAYER: dn,
|
|
2608
2590
|
LOADED_DATA: Ee,
|
|
2609
|
-
LOADED_METADATA:
|
|
2610
|
-
LOADING:
|
|
2611
|
-
LOAD_START:
|
|
2591
|
+
LOADED_METADATA: Qs,
|
|
2592
|
+
LOADING: pn,
|
|
2593
|
+
LOAD_START: oi,
|
|
2612
2594
|
MINI_STATE_CHANGE: kt,
|
|
2613
2595
|
PAUSE: et,
|
|
2614
|
-
PIP_CHANGE:
|
|
2596
|
+
PIP_CHANGE: ti,
|
|
2615
2597
|
PLAY: de,
|
|
2616
|
-
PLAYER_BLUR:
|
|
2617
|
-
PLAYER_FOCUS:
|
|
2618
|
-
PLAYING:
|
|
2598
|
+
PLAYER_BLUR: fn,
|
|
2599
|
+
PLAYER_FOCUS: ai,
|
|
2600
|
+
PLAYING: si,
|
|
2619
2601
|
PLAYNEXT: Ct,
|
|
2620
|
-
PROGRESS:
|
|
2621
|
-
RATE_CHANGE:
|
|
2622
|
-
READY:
|
|
2602
|
+
PROGRESS: cn,
|
|
2603
|
+
RATE_CHANGE: un,
|
|
2604
|
+
READY: li,
|
|
2623
2605
|
REPLAY: yt,
|
|
2624
2606
|
RESET: Dt,
|
|
2625
|
-
RETRY:
|
|
2626
|
-
ROTATE:
|
|
2627
|
-
SCREEN_SHOT:
|
|
2607
|
+
RETRY: oo,
|
|
2608
|
+
ROTATE: vn,
|
|
2609
|
+
SCREEN_SHOT: mn,
|
|
2628
2610
|
SEEKED: Te,
|
|
2629
2611
|
SEEKING: xt,
|
|
2630
|
-
SEI_PARSED:
|
|
2631
|
-
SHORTCUT:
|
|
2632
|
-
SOURCE_ERROR:
|
|
2633
|
-
SOURCE_SUCCESS:
|
|
2634
|
-
STALLED:
|
|
2635
|
-
STATS_EVENTS:
|
|
2636
|
-
SUSPEND:
|
|
2637
|
-
SWITCH_SUBTITLE:
|
|
2612
|
+
SEI_PARSED: so,
|
|
2613
|
+
SHORTCUT: yn,
|
|
2614
|
+
SOURCE_ERROR: kn,
|
|
2615
|
+
SOURCE_SUCCESS: Cn,
|
|
2616
|
+
STALLED: eo,
|
|
2617
|
+
STATS_EVENTS: bn,
|
|
2618
|
+
SUSPEND: to,
|
|
2619
|
+
SWITCH_SUBTITLE: ao,
|
|
2638
2620
|
TIME_UPDATE: he,
|
|
2639
2621
|
URL_CHANGE: Pt,
|
|
2640
|
-
URL_NULL:
|
|
2622
|
+
URL_NULL: hn,
|
|
2641
2623
|
USER_ACTION: wt,
|
|
2642
|
-
VIDEO_EVENTS:
|
|
2624
|
+
VIDEO_EVENTS: wn,
|
|
2643
2625
|
VIDEO_RESIZE: De,
|
|
2644
|
-
VOLUME_CHANGE:
|
|
2626
|
+
VOLUME_CHANGE: ln,
|
|
2645
2627
|
WAITING: ut,
|
|
2646
|
-
XGLOG:
|
|
2628
|
+
XGLOG: _n
|
|
2647
2629
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2648
|
-
function
|
|
2630
|
+
function Nt(o, a) {
|
|
2649
2631
|
!this || !this.emit || (o === "error" ? this.errorHandler(o, a.error) : this.emit(o, a));
|
|
2650
2632
|
}
|
|
2651
|
-
function
|
|
2633
|
+
function uo(o, a) {
|
|
2652
2634
|
return function(r, t) {
|
|
2653
2635
|
var e = {
|
|
2654
2636
|
player: a,
|
|
@@ -2673,17 +2655,17 @@ function fo(o, a) {
|
|
|
2673
2655
|
a._rate = a.media && a.media.playbackRate;
|
|
2674
2656
|
}
|
|
2675
2657
|
if (o === "durationchange" && (a._duration = a.media.duration), o === "volumechange" && (e.isMutedChange = a._lastMuted !== a.muted, a._lastMuted = a.muted), o === "error" && (e.error = t || a.video.error), a.mediaEventMiddleware[o]) {
|
|
2676
|
-
var n =
|
|
2658
|
+
var n = Nt.bind(a, o, e);
|
|
2677
2659
|
try {
|
|
2678
2660
|
a.mediaEventMiddleware[o].call(a, e, n);
|
|
2679
2661
|
} catch (s) {
|
|
2680
|
-
throw
|
|
2662
|
+
throw Nt.call(a, o, e), s;
|
|
2681
2663
|
}
|
|
2682
2664
|
} else
|
|
2683
|
-
|
|
2665
|
+
Nt.call(a, o, e);
|
|
2684
2666
|
};
|
|
2685
2667
|
}
|
|
2686
|
-
var
|
|
2668
|
+
var co = /* @__PURE__ */ function(o) {
|
|
2687
2669
|
L(r, o);
|
|
2688
2670
|
var a = R(r);
|
|
2689
2671
|
function r(t) {
|
|
@@ -2725,9 +2707,9 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
2725
2707
|
key: "attachVideoEvents",
|
|
2726
2708
|
value: function() {
|
|
2727
2709
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
2728
|
-
this._evHandlers || (this._evHandlers =
|
|
2710
|
+
this._evHandlers || (this._evHandlers = wn.map(function(n) {
|
|
2729
2711
|
var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
2730
|
-
return typeof e[s] == "function" && e.on(n, e[s]), y({}, n,
|
|
2712
|
+
return typeof e[s] == "function" && e.on(n, e[s]), y({}, n, uo(n, e));
|
|
2731
2713
|
})), this._evHandlers.forEach(function(n) {
|
|
2732
2714
|
var s = Object.keys(n)[0];
|
|
2733
2715
|
i.addEventListener(s, n[s], !1);
|
|
@@ -2759,7 +2741,7 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
2759
2741
|
var s = e.children;
|
|
2760
2742
|
if (s) {
|
|
2761
2743
|
this._videoSourceCount = s.length, this._videoSourceIndex = s.length, this._vLoadeddata = function(h) {
|
|
2762
|
-
n.emit(
|
|
2744
|
+
n.emit(Cn, {
|
|
2763
2745
|
src: h.target.currentSrc,
|
|
2764
2746
|
host: f.getHostFromUrl(h.target.currentSrc)
|
|
2765
2747
|
});
|
|
@@ -2778,8 +2760,8 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
2778
2760
|
};
|
|
2779
2761
|
l ? l.error(h, g) : n.errorHandler("error", g);
|
|
2780
2762
|
}
|
|
2781
|
-
var p =
|
|
2782
|
-
n.emit(
|
|
2763
|
+
var p = Si[4];
|
|
2764
|
+
n.emit(kn, new mt(n, {
|
|
2783
2765
|
errorType: p,
|
|
2784
2766
|
errorCode: 4,
|
|
2785
2767
|
errorMessage: "sources_load_error",
|
|
@@ -2812,7 +2794,7 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
2812
2794
|
value: function(e) {
|
|
2813
2795
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
2814
2796
|
if (this.media && (this.media.error || i)) {
|
|
2815
|
-
var n = this.media.error || i, s = n.code ?
|
|
2797
|
+
var n = this.media.error || i, s = n.code ? Si[n.code] : "other", l = n.message;
|
|
2816
2798
|
this.media.currentSrc || (l = "empty_src", n = {
|
|
2817
2799
|
code: 6,
|
|
2818
2800
|
message: l
|
|
@@ -3101,7 +3083,7 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
3101
3083
|
F(O(r.prototype), "removeAllListeners", this).call(this);
|
|
3102
3084
|
}
|
|
3103
3085
|
}]), r;
|
|
3104
|
-
}(
|
|
3086
|
+
}(on), fo = /* @__PURE__ */ function() {
|
|
3105
3087
|
function o() {
|
|
3106
3088
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
3107
3089
|
name: "xgplayer",
|
|
@@ -3179,7 +3161,7 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
3179
3161
|
t.clear();
|
|
3180
3162
|
}
|
|
3181
3163
|
}]), o;
|
|
3182
|
-
}(),
|
|
3164
|
+
}(), xi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Ii = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], Pi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Be = "data-xgplayerid";
|
|
3183
3165
|
function ft(o, a, r) {
|
|
3184
3166
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
3185
3167
|
e[i - 3] = arguments[i];
|
|
@@ -3228,14 +3210,14 @@ function Et(o, a) {
|
|
|
3228
3210
|
var r = this.__hooks;
|
|
3229
3211
|
r && delete r[o];
|
|
3230
3212
|
}
|
|
3231
|
-
function
|
|
3213
|
+
function Di(o) {
|
|
3232
3214
|
if (!(!this.plugins || !this.plugins[o.toLowerCase()])) {
|
|
3233
3215
|
for (var a = this.plugins[o.toLowerCase()], r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), e = 1; e < r; e++)
|
|
3234
3216
|
t[e - 1] = arguments[e];
|
|
3235
3217
|
return a.useHooks && a.useHooks.apply(a, t);
|
|
3236
3218
|
}
|
|
3237
3219
|
}
|
|
3238
|
-
function
|
|
3220
|
+
function Li(o) {
|
|
3239
3221
|
if (!(!this.plugins || !this.plugins[o.toLowerCase()])) {
|
|
3240
3222
|
var a = this.plugins[o.toLowerCase()];
|
|
3241
3223
|
if (a) {
|
|
@@ -3245,7 +3227,7 @@ function Ri(o) {
|
|
|
3245
3227
|
}
|
|
3246
3228
|
}
|
|
3247
3229
|
}
|
|
3248
|
-
function
|
|
3230
|
+
function En(o) {
|
|
3249
3231
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
3250
3232
|
o.__hooks = {}, a && a.map(function(r) {
|
|
3251
3233
|
o.__hooks[r] = null;
|
|
@@ -3258,7 +3240,7 @@ function Sn(o) {
|
|
|
3258
3240
|
}
|
|
3259
3241
|
});
|
|
3260
3242
|
}
|
|
3261
|
-
function
|
|
3243
|
+
function Sn(o) {
|
|
3262
3244
|
o.__hooks = null;
|
|
3263
3245
|
}
|
|
3264
3246
|
function Ce(o, a, r) {
|
|
@@ -3277,12 +3259,12 @@ function Ce(o, a, r) {
|
|
|
3277
3259
|
} else
|
|
3278
3260
|
return r.call.apply(r, [o, o].concat(e));
|
|
3279
3261
|
}
|
|
3280
|
-
function
|
|
3262
|
+
function Bt(o, a) {
|
|
3281
3263
|
U.logError("[".concat(o, "] event or callback cant be undefined or null when call ").concat(a));
|
|
3282
3264
|
}
|
|
3283
3265
|
var Le = /* @__PURE__ */ function() {
|
|
3284
3266
|
function o(a) {
|
|
3285
|
-
I(this, o), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(a),
|
|
3267
|
+
I(this, o), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(a), En(this), this.__args = a, this.__events = {}, this.__onceEvents = {}, this.config = a.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(a);
|
|
3286
3268
|
}
|
|
3287
3269
|
return P(o, [{
|
|
3288
3270
|
key: "beforeCreate",
|
|
@@ -3344,7 +3326,7 @@ var Le = /* @__PURE__ */ function() {
|
|
|
3344
3326
|
value: function(r, t) {
|
|
3345
3327
|
var e = this;
|
|
3346
3328
|
if (!r || !t || !this.player) {
|
|
3347
|
-
|
|
3329
|
+
Bt(this.pluginName, "plugin.on(event, callback)");
|
|
3348
3330
|
return;
|
|
3349
3331
|
}
|
|
3350
3332
|
typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3356,7 +3338,7 @@ var Le = /* @__PURE__ */ function() {
|
|
|
3356
3338
|
value: function(r, t) {
|
|
3357
3339
|
var e = this;
|
|
3358
3340
|
if (!r || !t || !this.player) {
|
|
3359
|
-
|
|
3341
|
+
Bt(this.pluginName, "plugin.once(event, callback)");
|
|
3360
3342
|
return;
|
|
3361
3343
|
}
|
|
3362
3344
|
typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3368,7 +3350,7 @@ var Le = /* @__PURE__ */ function() {
|
|
|
3368
3350
|
value: function(r, t) {
|
|
3369
3351
|
var e = this;
|
|
3370
3352
|
if (!r || !t || !this.player) {
|
|
3371
|
-
|
|
3353
|
+
Bt(this.pluginName, "plugin.off(event, callback)");
|
|
3372
3354
|
return;
|
|
3373
3355
|
}
|
|
3374
3356
|
typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3446,7 +3428,7 @@ var Le = /* @__PURE__ */ function() {
|
|
|
3446
3428
|
var r = this, t = this.player, e = this.pluginName;
|
|
3447
3429
|
this.offAll(), f.clearAllTimers(this), f.checkIsFunction(this.destroy) && this.destroy(), ["player", "playerConfig", "pluginName", "logger", "__args", "__hooks"].map(function(i) {
|
|
3448
3430
|
r[i] = null;
|
|
3449
|
-
}), t.unRegisterPlugin(e),
|
|
3431
|
+
}), t.unRegisterPlugin(e), Sn(this);
|
|
3450
3432
|
}
|
|
3451
3433
|
}], [{
|
|
3452
3434
|
key: "defineGetterOrSetter",
|
|
@@ -3465,40 +3447,40 @@ var Le = /* @__PURE__ */ function() {
|
|
|
3465
3447
|
return "pluginName";
|
|
3466
3448
|
}
|
|
3467
3449
|
}]), o;
|
|
3468
|
-
}(),
|
|
3450
|
+
}(), ho = 9;
|
|
3469
3451
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
3470
3452
|
var Ge = Element.prototype;
|
|
3471
3453
|
Ge.matches = Ge.matchesSelector || Ge.mozMatchesSelector || Ge.msMatchesSelector || Ge.oMatchesSelector || Ge.webkitMatchesSelector;
|
|
3472
3454
|
}
|
|
3473
|
-
function
|
|
3474
|
-
for (; o && o.nodeType !==
|
|
3455
|
+
function go(o, a) {
|
|
3456
|
+
for (; o && o.nodeType !== ho; ) {
|
|
3475
3457
|
if (typeof o.matches == "function" && o.matches(a))
|
|
3476
3458
|
return o;
|
|
3477
3459
|
o = o.parentNode;
|
|
3478
3460
|
}
|
|
3479
3461
|
}
|
|
3480
|
-
var
|
|
3481
|
-
function
|
|
3482
|
-
var i =
|
|
3462
|
+
var po = go, vo = po;
|
|
3463
|
+
function Ht(o, a, r, t, e) {
|
|
3464
|
+
var i = yo.apply(this, arguments);
|
|
3483
3465
|
return o.addEventListener(r, i, e), {
|
|
3484
3466
|
destroy: function() {
|
|
3485
3467
|
o.removeEventListener(r, i, e);
|
|
3486
3468
|
}
|
|
3487
3469
|
};
|
|
3488
3470
|
}
|
|
3489
|
-
function
|
|
3490
|
-
return typeof o.addEventListener == "function" ?
|
|
3491
|
-
return
|
|
3471
|
+
function mo(o, a, r, t, e) {
|
|
3472
|
+
return typeof o.addEventListener == "function" ? Ht.apply(null, arguments) : typeof r == "function" ? Ht.bind(null, document).apply(null, arguments) : (typeof o == "string" && (o = document.querySelectorAll(o)), Array.prototype.map.call(o, function(i) {
|
|
3473
|
+
return Ht(i, a, r, t, e);
|
|
3492
3474
|
}));
|
|
3493
3475
|
}
|
|
3494
|
-
function
|
|
3476
|
+
function yo(o, a, r, t) {
|
|
3495
3477
|
return function(e) {
|
|
3496
|
-
e.delegateTarget =
|
|
3478
|
+
e.delegateTarget = vo(e.target, a), e.delegateTarget && t.call(o, e);
|
|
3497
3479
|
};
|
|
3498
3480
|
}
|
|
3499
|
-
var
|
|
3500
|
-
const
|
|
3501
|
-
var
|
|
3481
|
+
var _o = mo;
|
|
3482
|
+
const Ri = /* @__PURE__ */ ii(_o);
|
|
3483
|
+
var ko = {
|
|
3502
3484
|
CONTROLS: "controls",
|
|
3503
3485
|
ROOT: "root"
|
|
3504
3486
|
}, X = {
|
|
@@ -3511,29 +3493,29 @@ var wo = {
|
|
|
3511
3493
|
CONTROLS_RIGHT: "controlsRight",
|
|
3512
3494
|
CONTROLS_CENTER: "controlsCenter",
|
|
3513
3495
|
CONTROLS: "controls"
|
|
3514
|
-
},
|
|
3496
|
+
}, Oi = {
|
|
3515
3497
|
ICON_DISABLE: "xg-icon-disable",
|
|
3516
3498
|
ICON_HIDE: "xg-icon-hide"
|
|
3517
3499
|
};
|
|
3518
|
-
function
|
|
3500
|
+
function Ut(o) {
|
|
3519
3501
|
return o ? o.indexOf && /^(?:http|data:|\/)/.test(o) : !1;
|
|
3520
3502
|
}
|
|
3521
|
-
function
|
|
3503
|
+
function Co(o, a) {
|
|
3522
3504
|
return ae(o) === "object" && o.class && typeof o.class == "string" ? "".concat(a, " ").concat(o.class) : a;
|
|
3523
3505
|
}
|
|
3524
|
-
function
|
|
3506
|
+
function wo(o, a) {
|
|
3525
3507
|
return ae(o) === "object" && o.attr && ae(o.attr) === "object" && Object.keys(o.attr).map(function(r) {
|
|
3526
3508
|
a[r] = o.attr[r];
|
|
3527
3509
|
}), a;
|
|
3528
3510
|
}
|
|
3529
|
-
function
|
|
3511
|
+
function Fi(o, a) {
|
|
3530
3512
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "", t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, e = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : "", i = null;
|
|
3531
3513
|
if (o instanceof window.Element)
|
|
3532
3514
|
return f.addClass(o, r), Object.keys(t).map(function(n) {
|
|
3533
3515
|
o.setAttribute(n, t[n]);
|
|
3534
3516
|
}), o;
|
|
3535
|
-
if (
|
|
3536
|
-
return t.src =
|
|
3517
|
+
if (Ut(o) || Ut(o.url))
|
|
3518
|
+
return t.src = Ut(o) ? o : o.url || "", i = f.createDom(o.tag || "img", "", t, "xg-img ".concat(r)), i;
|
|
3537
3519
|
if (typeof o == "function")
|
|
3538
3520
|
try {
|
|
3539
3521
|
return i = o(), i instanceof window.Element ? (f.addClass(i, r), Object.keys(t).map(function(n) {
|
|
@@ -3544,14 +3526,14 @@ function Mi(o, a) {
|
|
|
3544
3526
|
}
|
|
3545
3527
|
return typeof o == "string" ? f.createDomFromHtml(o, t, r) : (U.logWarn("warn>>icons.".concat(a, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
3546
3528
|
}
|
|
3547
|
-
function
|
|
3529
|
+
function bo(o, a) {
|
|
3548
3530
|
var r = a.config.icons || a.playerConfig.icons;
|
|
3549
3531
|
Object.keys(o).map(function(t) {
|
|
3550
3532
|
var e = o[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
|
|
3551
|
-
r && r[t] && (i =
|
|
3533
|
+
r && r[t] && (i = Co(r[t], i), n = wo(r[t], n), s = Fi(r[t], t, i, n, a.pluginName)), !s && e && (s = Fi(e.icon ? e.icon : e, n, i, {}, a.pluginName)), a.icons[t] = s;
|
|
3552
3534
|
});
|
|
3553
3535
|
}
|
|
3554
|
-
function
|
|
3536
|
+
function To(o, a) {
|
|
3555
3537
|
Object.keys(o).map(function(r) {
|
|
3556
3538
|
Object.defineProperty(a.langText, r, {
|
|
3557
3539
|
get: function() {
|
|
@@ -3575,9 +3557,9 @@ var $ = /* @__PURE__ */ function(o) {
|
|
|
3575
3557
|
var i = e.root, n = null;
|
|
3576
3558
|
this.icons = {}, this.root = null, this.parent = null;
|
|
3577
3559
|
var s = this.registerIcons() || {};
|
|
3578
|
-
|
|
3560
|
+
bo(s, this), this.langText = {};
|
|
3579
3561
|
var l = this.registerLanguageTexts() || {};
|
|
3580
|
-
|
|
3562
|
+
To(l, this);
|
|
3581
3563
|
var u = "";
|
|
3582
3564
|
try {
|
|
3583
3565
|
u = this.render();
|
|
@@ -3648,12 +3630,12 @@ var $ = /* @__PURE__ */ function(o) {
|
|
|
3648
3630
|
}, {
|
|
3649
3631
|
key: "disable",
|
|
3650
3632
|
value: function() {
|
|
3651
|
-
this.config.disable = !0, f.addClass(this.find(".xgplayer-icon"),
|
|
3633
|
+
this.config.disable = !0, f.addClass(this.find(".xgplayer-icon"), Oi.ICON_DISABLE);
|
|
3652
3634
|
}
|
|
3653
3635
|
}, {
|
|
3654
3636
|
key: "enable",
|
|
3655
3637
|
value: function() {
|
|
3656
|
-
this.config.disable = !1, f.removeClass(this.find(".xgplayer-icon"),
|
|
3638
|
+
this.config.disable = !1, f.removeClass(this.find(".xgplayer-icon"), Oi.ICON_DISABLE);
|
|
3657
3639
|
}
|
|
3658
3640
|
}, {
|
|
3659
3641
|
key: "children",
|
|
@@ -3834,11 +3816,11 @@ var $ = /* @__PURE__ */ function(o) {
|
|
|
3834
3816
|
if (e instanceof window.Node && typeof s == "function")
|
|
3835
3817
|
if (Array.isArray(n))
|
|
3836
3818
|
n.forEach(function(h) {
|
|
3837
|
-
var d =
|
|
3819
|
+
var d = Ri(e, i, h, s, l);
|
|
3838
3820
|
d.key = "".concat(i, "_").concat(h), u.push(d);
|
|
3839
3821
|
});
|
|
3840
3822
|
else {
|
|
3841
|
-
var c =
|
|
3823
|
+
var c = Ri(e, i, n, s, l);
|
|
3842
3824
|
c.key = "".concat(i, "_").concat(n), u.push(c);
|
|
3843
3825
|
}
|
|
3844
3826
|
return u;
|
|
@@ -3846,7 +3828,7 @@ var $ = /* @__PURE__ */ function(o) {
|
|
|
3846
3828
|
}, {
|
|
3847
3829
|
key: "ROOT_TYPES",
|
|
3848
3830
|
get: function() {
|
|
3849
|
-
return
|
|
3831
|
+
return ko;
|
|
3850
3832
|
}
|
|
3851
3833
|
}, {
|
|
3852
3834
|
key: "POSITIONS",
|
|
@@ -3854,7 +3836,7 @@ var $ = /* @__PURE__ */ function(o) {
|
|
|
3854
3836
|
return X;
|
|
3855
3837
|
}
|
|
3856
3838
|
}]), r;
|
|
3857
|
-
}(Le),
|
|
3839
|
+
}(Le), Eo = /* @__PURE__ */ function() {
|
|
3858
3840
|
function o() {
|
|
3859
3841
|
var a = this;
|
|
3860
3842
|
if (I(this, o), y(this, "__trigger", function(r) {
|
|
@@ -3864,7 +3846,7 @@ var $ = /* @__PURE__ */ function(o) {
|
|
|
3864
3846
|
a.__runHandler(r[e].target);
|
|
3865
3847
|
}), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
|
|
3866
3848
|
try {
|
|
3867
|
-
this.observer = new window.ResizeObserver(
|
|
3849
|
+
this.observer = new window.ResizeObserver(Ys(this.__trigger, 100, {
|
|
3868
3850
|
trailing: !0
|
|
3869
3851
|
})), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
|
|
3870
3852
|
} catch (r) {
|
|
@@ -3919,17 +3901,17 @@ var $ = /* @__PURE__ */ function(o) {
|
|
|
3919
3901
|
}
|
|
3920
3902
|
}]), o;
|
|
3921
3903
|
}(), rt = null;
|
|
3922
|
-
function
|
|
3923
|
-
return rt || (rt = new
|
|
3904
|
+
function So(o, a) {
|
|
3905
|
+
return rt || (rt = new Eo()), rt.addObserver(o, a), rt;
|
|
3924
3906
|
}
|
|
3925
|
-
function
|
|
3907
|
+
function Ao(o, a) {
|
|
3926
3908
|
rt.unObserver(o, a);
|
|
3927
3909
|
}
|
|
3928
3910
|
var se = {
|
|
3929
3911
|
pluginGroup: {},
|
|
3930
3912
|
init: function(a) {
|
|
3931
3913
|
var r = a._pluginInfoId;
|
|
3932
|
-
r || (r = (/* @__PURE__ */ new Date()).getTime(), a._pluginInfoId = r), !a.config.closeResizeObserver &&
|
|
3914
|
+
r || (r = (/* @__PURE__ */ new Date()).getTime(), a._pluginInfoId = r), !a.config.closeResizeObserver && So(a.root, function() {
|
|
3933
3915
|
a.resize();
|
|
3934
3916
|
}), this.pluginGroup[r] = {
|
|
3935
3917
|
_originalOptions: a.config || {},
|
|
@@ -4115,7 +4097,7 @@ var se = {
|
|
|
4115
4097
|
destroy: function(a) {
|
|
4116
4098
|
var r = a._pluginInfoId;
|
|
4117
4099
|
if (this.pluginGroup[r]) {
|
|
4118
|
-
|
|
4100
|
+
Ao(a.root);
|
|
4119
4101
|
for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
|
|
4120
4102
|
var n = i[e];
|
|
4121
4103
|
this.unRegister(r, n);
|
|
@@ -4154,7 +4136,7 @@ var se = {
|
|
|
4154
4136
|
MOBILE: "xgplayer-mobile",
|
|
4155
4137
|
MINI: "xgplayer-mini"
|
|
4156
4138
|
};
|
|
4157
|
-
function
|
|
4139
|
+
function Mi() {
|
|
4158
4140
|
return {
|
|
4159
4141
|
id: "",
|
|
4160
4142
|
el: null,
|
|
@@ -4201,7 +4183,7 @@ function Ni() {
|
|
|
4201
4183
|
ignores: [],
|
|
4202
4184
|
whitelist: [],
|
|
4203
4185
|
inactive: 3e3,
|
|
4204
|
-
lang:
|
|
4186
|
+
lang: Xs(),
|
|
4205
4187
|
controls: !0,
|
|
4206
4188
|
marginControls: !1,
|
|
4207
4189
|
fullscreenTarget: null,
|
|
@@ -4237,7 +4219,7 @@ function Ni() {
|
|
|
4237
4219
|
}
|
|
4238
4220
|
};
|
|
4239
4221
|
}
|
|
4240
|
-
var
|
|
4222
|
+
var xo = function(a, r) {
|
|
4241
4223
|
var t, e, i;
|
|
4242
4224
|
r.preset && r.options ? i = new r.preset(r.options, a.config) : i = new r({}, a.config);
|
|
4243
4225
|
var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, h = n.icons, d = h === void 0 ? {} : h, g = n.i18n, p = g === void 0 ? [] : g;
|
|
@@ -4246,7 +4228,7 @@ var Po = function(a, r) {
|
|
|
4246
4228
|
});
|
|
4247
4229
|
var m = a.config.i18n || [];
|
|
4248
4230
|
p.push.apply(p, ve(m)), a.config.i18n = p;
|
|
4249
|
-
},
|
|
4231
|
+
}, Io = /* @__PURE__ */ function(o) {
|
|
4250
4232
|
L(r, o);
|
|
4251
4233
|
var a = R(r);
|
|
4252
4234
|
function r() {
|
|
@@ -4407,7 +4389,7 @@ var Po = function(a, r) {
|
|
|
4407
4389
|
};
|
|
4408
4390
|
}
|
|
4409
4391
|
}]), r;
|
|
4410
|
-
}($),
|
|
4392
|
+
}($), Po = {
|
|
4411
4393
|
LANG: "en",
|
|
4412
4394
|
TEXT: {
|
|
4413
4395
|
ERROR_TYPES: {
|
|
@@ -4497,12 +4479,12 @@ function ot(o, a) {
|
|
|
4497
4479
|
t === "Object" ? (e !== "Object" && (o[r] = {}), ot(o[r], a[r])) : o[r] = a[r];
|
|
4498
4480
|
}), o;
|
|
4499
4481
|
}
|
|
4500
|
-
function
|
|
4482
|
+
function An() {
|
|
4501
4483
|
Object.keys(fe.lang.en).map(function(o) {
|
|
4502
4484
|
fe.textKeys[o] = o;
|
|
4503
4485
|
});
|
|
4504
4486
|
}
|
|
4505
|
-
function
|
|
4487
|
+
function Do(o, a) {
|
|
4506
4488
|
var r = [];
|
|
4507
4489
|
if (a || (a = fe), !!a.lang) {
|
|
4508
4490
|
f.typeOf(o) !== "Array" ? r = Object.keys(o).map(function(i) {
|
|
@@ -4514,18 +4496,18 @@ function Ro(o, a) {
|
|
|
4514
4496
|
}) : r = o;
|
|
4515
4497
|
var t = a, e = t.lang;
|
|
4516
4498
|
r.map(function(i) {
|
|
4517
|
-
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? ot(e[i.LANG] || {}, i.TEXT || {}) :
|
|
4518
|
-
}),
|
|
4499
|
+
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? ot(e[i.LANG] || {}, i.TEXT || {}) : hi(i, a);
|
|
4500
|
+
}), An();
|
|
4519
4501
|
}
|
|
4520
4502
|
}
|
|
4521
|
-
function
|
|
4503
|
+
function hi(o, a) {
|
|
4522
4504
|
var r = o.LANG;
|
|
4523
4505
|
if (a || (a = fe), !!a.lang) {
|
|
4524
4506
|
var t = o.TEXT || {};
|
|
4525
|
-
r === "zh" && (r = "zh-cn"), a.lang[r] ? ot(a.lang[r], t) : (a.langKeys.push(r), a.lang[r] = t),
|
|
4507
|
+
r === "zh" && (r = "zh-cn"), a.lang[r] ? ot(a.lang[r], t) : (a.langKeys.push(r), a.lang[r] = t), An();
|
|
4526
4508
|
}
|
|
4527
4509
|
}
|
|
4528
|
-
function
|
|
4510
|
+
function Lo(o) {
|
|
4529
4511
|
var a, r = {
|
|
4530
4512
|
lang: {},
|
|
4531
4513
|
langKeys: [],
|
|
@@ -4534,7 +4516,7 @@ function Oo(o) {
|
|
|
4534
4516
|
};
|
|
4535
4517
|
return ot(r.lang, fe.lang), (a = r.langKeys).push.apply(a, ve(fe.langKeys)), ot(r.textKeys, fe.textKeys), r;
|
|
4536
4518
|
}
|
|
4537
|
-
|
|
4519
|
+
hi(Po);
|
|
4538
4520
|
var Je = {
|
|
4539
4521
|
get textKeys() {
|
|
4540
4522
|
return fe.textKeys;
|
|
@@ -4548,9 +4530,9 @@ var Je = {
|
|
|
4548
4530
|
o[a] = fe.lang[a];
|
|
4549
4531
|
}), fe.lang["zh-cn"] && (o.zh = fe.lang["zh-cn"] || {}), o;
|
|
4550
4532
|
},
|
|
4551
|
-
extend:
|
|
4552
|
-
use:
|
|
4553
|
-
init:
|
|
4533
|
+
extend: Do,
|
|
4534
|
+
use: hi,
|
|
4535
|
+
init: Lo
|
|
4554
4536
|
}, j = {
|
|
4555
4537
|
INITIAL: 1,
|
|
4556
4538
|
READY: 2,
|
|
@@ -4560,7 +4542,7 @@ var Je = {
|
|
|
4560
4542
|
RUNNING: 6,
|
|
4561
4543
|
ENDED: 7,
|
|
4562
4544
|
DESTROYED: 8
|
|
4563
|
-
},
|
|
4545
|
+
}, Ni = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], le = {}, zt = null, xn = /* @__PURE__ */ function(o) {
|
|
4564
4546
|
L(r, o);
|
|
4565
4547
|
var a = R(r);
|
|
4566
4548
|
function r() {
|
|
@@ -4643,11 +4625,11 @@ var Je = {
|
|
|
4643
4625
|
}], [{
|
|
4644
4626
|
key: "getInstance",
|
|
4645
4627
|
value: function() {
|
|
4646
|
-
return
|
|
4628
|
+
return zt || (zt = new r()), zt;
|
|
4647
4629
|
}
|
|
4648
4630
|
}]), r;
|
|
4649
|
-
}(
|
|
4650
|
-
function
|
|
4631
|
+
}(sn.EventEmitter);
|
|
4632
|
+
function Ro(o) {
|
|
4651
4633
|
for (var a = Object.keys(le), r = 0; r < a.length; r++) {
|
|
4652
4634
|
var t = le[a[r]];
|
|
4653
4635
|
if (t.root === o)
|
|
@@ -4655,13 +4637,13 @@ function Fo(o) {
|
|
|
4655
4637
|
}
|
|
4656
4638
|
return null;
|
|
4657
4639
|
}
|
|
4658
|
-
var
|
|
4640
|
+
var Oo = ["play", "pause", "replay", "retry"], Bi = 0, Hi = 0, Se = null, Lt = /* @__PURE__ */ function(o) {
|
|
4659
4641
|
L(r, o);
|
|
4660
4642
|
var a = R(r);
|
|
4661
4643
|
function r(t) {
|
|
4662
4644
|
var e;
|
|
4663
4645
|
I(this, r);
|
|
4664
|
-
var i = f.deepMerge(
|
|
4646
|
+
var i = f.deepMerge(Mi(), t);
|
|
4665
4647
|
e = a.call(this, i), y(v(e), "canPlayFunc", function() {
|
|
4666
4648
|
if (e.config) {
|
|
4667
4649
|
var p = e.config, m = p.autoplay, _ = p.defaultPlaybackRate;
|
|
@@ -4685,7 +4667,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
4685
4667
|
to: !1
|
|
4686
4668
|
}]
|
|
4687
4669
|
});
|
|
4688
|
-
var b =
|
|
4670
|
+
var b = qs(C, e.playerId, Be);
|
|
4689
4671
|
if (m || C && (C === e._fullscreenEl || b))
|
|
4690
4672
|
_(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, k.FULLSCREEN), e.emit(ke, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
4691
4673
|
else if (e.fullscreen) {
|
|
@@ -4705,7 +4687,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
4705
4687
|
e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
|
|
4706
4688
|
}), y(v(e), "_onWebkitendfullscreen", function(p) {
|
|
4707
4689
|
e.onFullscreenChange(p, !1);
|
|
4708
|
-
}),
|
|
4690
|
+
}), En(v(e), Oo), e.config = i, e._pluginInfoId = f.generateSessionId(), Ws(v(e));
|
|
4709
4691
|
var n = e.constructor.defaultPreset;
|
|
4710
4692
|
if (e.config.presets.length) {
|
|
4711
4693
|
var s = e.config.presets.indexOf("default");
|
|
@@ -4734,12 +4716,12 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
4734
4716
|
}, e._offsetInfo = {
|
|
4735
4717
|
currentTime: -1,
|
|
4736
4718
|
duration: 0
|
|
4737
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Je.init(e._pluginInfoId), B.os.isAndroid && B.osVersion > 0 && B.osVersion < 6 && (e.config.autoplay = !1), e.database = new
|
|
4719
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Je.init(e._pluginInfoId), B.os.isAndroid && B.osVersion > 0 && B.osVersion < 6 && (e.config.autoplay = !1), e.database = new fo(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
4738
4720
|
isActiveLocked: !1
|
|
4739
4721
|
}, e.instManager = Se;
|
|
4740
4722
|
var l = e._initDOM();
|
|
4741
4723
|
if (!l)
|
|
4742
|
-
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))),
|
|
4724
|
+
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), ri(e);
|
|
4743
4725
|
var u = e.config, c = u.definition, h = c === void 0 ? {} : c, d = u.url;
|
|
4744
4726
|
if (!d && h.list && h.list.length > 0) {
|
|
4745
4727
|
var g = h.list.find(function(p) {
|
|
@@ -4748,7 +4730,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
4748
4730
|
g || (h.defaultDefinition = h.list[0].definition, g = h.list[0]), e.config.url = g.url, e.curDefinition = g;
|
|
4749
4731
|
}
|
|
4750
4732
|
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), se.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(j.READY), f.setTimeout(v(e), function() {
|
|
4751
|
-
e.emit(
|
|
4733
|
+
e.emit(li);
|
|
4752
4734
|
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < j.ATTACHED) && e.start(), e;
|
|
4753
4735
|
}
|
|
4754
4736
|
return P(r, [{
|
|
@@ -4766,7 +4748,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
4766
4748
|
msg: "container id can't be empty"
|
|
4767
4749
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
4768
4750
|
}
|
|
4769
|
-
var s =
|
|
4751
|
+
var s = Ro(this.root);
|
|
4770
4752
|
s && (U.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Be, this.playerId), (e = Se) === null || e === void 0 || e.add(this), se.init(this), this._initBaseDoms();
|
|
4771
4753
|
var l = this.constructor.XgVideoProxy;
|
|
4772
4754
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
@@ -4776,7 +4758,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
4776
4758
|
this.attachVideoEvents(c), this.media = c;
|
|
4777
4759
|
}
|
|
4778
4760
|
if (this.media.setAttribute(Be, this.playerId), this.config.controls) {
|
|
4779
|
-
var h = this.config.controls.root || null, d = se.register(this,
|
|
4761
|
+
var h = this.config.controls.root || null, d = se.register(this, Io, {
|
|
4780
4762
|
root: h
|
|
4781
4763
|
});
|
|
4782
4764
|
this.controls = d;
|
|
@@ -4814,7 +4796,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
4814
4796
|
var e = this;
|
|
4815
4797
|
["focus", "blur"].forEach(function(i) {
|
|
4816
4798
|
e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
|
|
4817
|
-
}),
|
|
4799
|
+
}), xi.forEach(function(i) {
|
|
4818
4800
|
document && document.addEventListener(i, e.onFullscreenChange);
|
|
4819
4801
|
}), B.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Ee, this.resize), this.playFunc = function() {
|
|
4820
4802
|
e.config.closeFocusVideoFocus || e.media.focus();
|
|
@@ -4824,7 +4806,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
4824
4806
|
key: "_unbindEvents",
|
|
4825
4807
|
value: function() {
|
|
4826
4808
|
var e = this;
|
|
4827
|
-
this.root.removeEventListener("mousemove", this.mousemoveFunc),
|
|
4809
|
+
this.root.removeEventListener("mousemove", this.mousemoveFunc), xi.forEach(function(i) {
|
|
4828
4810
|
document.removeEventListener(i, e.onFullscreenChange);
|
|
4829
4811
|
}), this.playFunc && this.off(de, this.playFunc), this.off(be, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
|
|
4830
4812
|
}
|
|
@@ -4837,7 +4819,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
4837
4819
|
key: "_startInit",
|
|
4838
4820
|
value: function(e) {
|
|
4839
4821
|
var i = this;
|
|
4840
|
-
if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(
|
|
4822
|
+
if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(hn), U.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
|
|
4841
4823
|
this.handleSource && (this._detachSourceEvents(this.media), f.typeOf(e) === "Array" && e.length > 0 ? this._attachSourceEvents(this.media, e) : !this.media.src || this.media.src !== e ? this.media.src = e : e || this.media.removeAttribute("src")), f.typeOf(this.config.volume) === "Number" && (this.volume = this.config.volume);
|
|
4842
4824
|
var n = this.innerContainer ? this.innerContainer : this.root;
|
|
4843
4825
|
this.media instanceof window.Element && !n.contains(this.media) && n.insertBefore(this.media, n.firstChild);
|
|
@@ -4884,7 +4866,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
4884
4866
|
value: function() {
|
|
4885
4867
|
var e = this;
|
|
4886
4868
|
this.config.presets.forEach(function(i) {
|
|
4887
|
-
|
|
4869
|
+
xo(e, i);
|
|
4888
4870
|
});
|
|
4889
4871
|
}
|
|
4890
4872
|
}, {
|
|
@@ -5040,7 +5022,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
5040
5022
|
return;
|
|
5041
5023
|
}
|
|
5042
5024
|
n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
|
|
5043
|
-
e._errorTimer = null, e.emit(
|
|
5025
|
+
e._errorTimer = null, e.emit(ui), e.addClass(k.NOT_ALLOW_AUTOPLAY), e.removeClass(k.ENTER), e.pause(), e.setState(j.NOTALLOW);
|
|
5044
5026
|
}, 0));
|
|
5045
5027
|
}) : (U.logWarn("video.play not return promise"), this.state < j.RUNNING && (this.setState(j.RUNNING), this.removeClass(k.NOT_ALLOW_AUTOPLAY), this.removeClass(k.NO_START), this.removeClass(k.ENTER), this.addClass(k.PLAYING), this.emit(Ue))), i;
|
|
5046
5028
|
}
|
|
@@ -5105,7 +5087,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
5105
5087
|
var n = this, s = this.config.definition;
|
|
5106
5088
|
if (Array.isArray(s == null ? void 0 : s.list) && s.list.forEach(function(u) {
|
|
5107
5089
|
(e == null ? void 0 : e.definition) === u.definition && (n.curDefinition = u);
|
|
5108
|
-
}), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(
|
|
5090
|
+
}), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(fi, {
|
|
5109
5091
|
from: i,
|
|
5110
5092
|
to: e
|
|
5111
5093
|
}), !this.hasStart) {
|
|
@@ -5116,11 +5098,11 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
5116
5098
|
seamless: s.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
|
|
5117
5099
|
}, e));
|
|
5118
5100
|
l && l.then ? l.then(function() {
|
|
5119
|
-
n.emit(
|
|
5101
|
+
n.emit(ei, {
|
|
5120
5102
|
from: i,
|
|
5121
5103
|
to: e
|
|
5122
5104
|
});
|
|
5123
|
-
}) : this.emit(
|
|
5105
|
+
}) : this.emit(ei, {
|
|
5124
5106
|
from: i,
|
|
5125
5107
|
to: e
|
|
5126
5108
|
});
|
|
@@ -5149,7 +5131,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
5149
5131
|
if (s && (i.map(function(u) {
|
|
5150
5132
|
e.deregister(u);
|
|
5151
5133
|
}), n)) {
|
|
5152
|
-
var l =
|
|
5134
|
+
var l = Mi();
|
|
5153
5135
|
Object.keys(this.config).keys(function(u) {
|
|
5154
5136
|
e.config[u] !== "undefined" && (u === "plugins" || u === "presets" || u === "el" || u === "id") && (e.config[u] = l[u]);
|
|
5155
5137
|
});
|
|
@@ -5160,7 +5142,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
5160
5142
|
value: function() {
|
|
5161
5143
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
5162
5144
|
if (!(!s || !l)) {
|
|
5163
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Be), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(
|
|
5145
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Be), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(ci), (e = Se) === null || e === void 0 || e.remove(this), se.destroy(this), Sn(this), F(O(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
5164
5146
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
5165
5147
|
n.removeChild(u[c]);
|
|
5166
5148
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -5222,8 +5204,8 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
5222
5204
|
if (s === this._fullscreenEl)
|
|
5223
5205
|
return this.onFullscreenChange(), Promise.resolve();
|
|
5224
5206
|
try {
|
|
5225
|
-
for (var l = 0; l <
|
|
5226
|
-
var u =
|
|
5207
|
+
for (var l = 0; l < Ii.length; l++) {
|
|
5208
|
+
var u = Ii[l];
|
|
5227
5209
|
if (e[u]) {
|
|
5228
5210
|
var c = u === "webkitRequestFullscreen" ? e.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT) : e[u]();
|
|
5229
5211
|
return c && c.then ? c : Promise.resolve();
|
|
@@ -5242,8 +5224,8 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
5242
5224
|
var i = this.media;
|
|
5243
5225
|
this._fullActionFrom = "exit";
|
|
5244
5226
|
try {
|
|
5245
|
-
for (var n = 0; n <
|
|
5246
|
-
var s =
|
|
5227
|
+
for (var n = 0; n < Pi.length; n++) {
|
|
5228
|
+
var s = Pi[n];
|
|
5247
5229
|
if (document[s]) {
|
|
5248
5230
|
var l = document[s]();
|
|
5249
5231
|
return l && l.then ? l : Promise.resolve();
|
|
@@ -5307,7 +5289,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
5307
5289
|
this.onFocus(e);
|
|
5308
5290
|
return;
|
|
5309
5291
|
}
|
|
5310
|
-
this.emit(
|
|
5292
|
+
this.emit(ai, Q({
|
|
5311
5293
|
paused: this.paused,
|
|
5312
5294
|
ended: this.ended
|
|
5313
5295
|
}, e));
|
|
@@ -5322,7 +5304,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
5322
5304
|
this.onBlur(e);
|
|
5323
5305
|
return;
|
|
5324
5306
|
}
|
|
5325
|
-
this._clearUserTimer(), this.emit(
|
|
5307
|
+
this._clearUserTimer(), this.emit(fn, Q({
|
|
5326
5308
|
paused: this.paused,
|
|
5327
5309
|
ended: this.ended
|
|
5328
5310
|
}, e));
|
|
@@ -5407,7 +5389,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
5407
5389
|
value: function() {
|
|
5408
5390
|
var e = this;
|
|
5409
5391
|
this.waitTimer && f.clearTimeout(this, this.waitTimer), this.updateAcc("waiting"), this.waitTimer = f.setTimeout(this, function() {
|
|
5410
|
-
e.addClass(k.LOADING), e.emit(
|
|
5392
|
+
e.addClass(k.LOADING), e.emit(pn), f.clearTimeout(e, e.waitTimer), e.waitTimer = null;
|
|
5411
5393
|
}, this.config.minWaitDelay);
|
|
5412
5394
|
}
|
|
5413
5395
|
}, {
|
|
@@ -5567,7 +5549,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
5567
5549
|
}, {
|
|
5568
5550
|
key: "setState",
|
|
5569
5551
|
value: function(e) {
|
|
5570
|
-
U.logInfo("setState", "state from:".concat(
|
|
5552
|
+
U.logInfo("setState", "state from:".concat(Ni[this.state], " to:").concat(Ni[e])), this._state = e;
|
|
5571
5553
|
}
|
|
5572
5554
|
}, {
|
|
5573
5555
|
key: "_preProcessUrl",
|
|
@@ -5664,7 +5646,7 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
5664
5646
|
}, {
|
|
5665
5647
|
key: "version",
|
|
5666
5648
|
get: function() {
|
|
5667
|
-
return
|
|
5649
|
+
return Jt;
|
|
5668
5650
|
}
|
|
5669
5651
|
}, {
|
|
5670
5652
|
key: "playerId",
|
|
@@ -5733,18 +5715,18 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
5733
5715
|
}, {
|
|
5734
5716
|
key: "avgSpeed",
|
|
5735
5717
|
get: function() {
|
|
5736
|
-
return
|
|
5718
|
+
return Hi;
|
|
5737
5719
|
},
|
|
5738
5720
|
set: function(e) {
|
|
5739
|
-
|
|
5721
|
+
Hi = e;
|
|
5740
5722
|
}
|
|
5741
5723
|
}, {
|
|
5742
5724
|
key: "realTimeSpeed",
|
|
5743
5725
|
get: function() {
|
|
5744
|
-
return
|
|
5726
|
+
return Bi;
|
|
5745
5727
|
},
|
|
5746
5728
|
set: function(e) {
|
|
5747
|
-
|
|
5729
|
+
Bi = e;
|
|
5748
5730
|
}
|
|
5749
5731
|
}, {
|
|
5750
5732
|
key: "offsetCurrentTime",
|
|
@@ -5782,14 +5764,14 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
5782
5764
|
value: function(e, i, n) {
|
|
5783
5765
|
for (var s = arguments.length, l = new Array(s > 3 ? s - 3 : 0), u = 3; u < s; u++)
|
|
5784
5766
|
l[u - 3] = arguments[u];
|
|
5785
|
-
return
|
|
5767
|
+
return Di.call.apply(Di, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5786
5768
|
}
|
|
5787
5769
|
}, {
|
|
5788
5770
|
key: "removePluginHooks",
|
|
5789
5771
|
value: function(e, i, n) {
|
|
5790
5772
|
for (var s = arguments.length, l = new Array(s > 3 ? s - 3 : 0), u = 3; u < s; u++)
|
|
5791
5773
|
l[u - 3] = arguments[u];
|
|
5792
|
-
return
|
|
5774
|
+
return Li.call.apply(Li, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5793
5775
|
}
|
|
5794
5776
|
}, {
|
|
5795
5777
|
key: "setUserActive",
|
|
@@ -5846,10 +5828,10 @@ var Mo = ["play", "pause", "replay", "retry"], Hi = 0, Ui = 0, Se = null, Lt = /
|
|
|
5846
5828
|
r.plugins || (r.plugins = {}), r.plugins[e] = i;
|
|
5847
5829
|
}
|
|
5848
5830
|
}]), r;
|
|
5849
|
-
}(
|
|
5831
|
+
}(co);
|
|
5850
5832
|
y(Lt, "defaultPreset", null);
|
|
5851
5833
|
y(Lt, "XgVideoProxy", null);
|
|
5852
|
-
Lt.instManager =
|
|
5834
|
+
Lt.instManager = xn.getInstance();
|
|
5853
5835
|
function oe() {
|
|
5854
5836
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
5855
5837
|
}
|
|
@@ -5861,7 +5843,7 @@ var Ae = {
|
|
|
5861
5843
|
WAIT_END: "waitingEnd",
|
|
5862
5844
|
SEEK_START: "seekStart",
|
|
5863
5845
|
SEEK_END: "seekEnd"
|
|
5864
|
-
},
|
|
5846
|
+
}, Fo = /* @__PURE__ */ function(o) {
|
|
5865
5847
|
L(r, o);
|
|
5866
5848
|
var a = R(r);
|
|
5867
5849
|
function r() {
|
|
@@ -5913,18 +5895,18 @@ var Ae = {
|
|
|
5913
5895
|
key: "afterCreate",
|
|
5914
5896
|
value: function() {
|
|
5915
5897
|
var e = this;
|
|
5916
|
-
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = oe(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(
|
|
5898
|
+
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = oe(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(oi, function() {
|
|
5917
5899
|
var i = e._state, n = i.autoplayStart, s = i.isFFSend;
|
|
5918
5900
|
e.startCostTime = oe() - e.newPointTime, U.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(Ae.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = oe(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
|
|
5919
5901
|
}), this.on(Ee, function() {
|
|
5920
5902
|
e.vt = oe(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
5921
5903
|
var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
|
|
5922
5904
|
U.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(Ae.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
5923
|
-
}), this.on(xt, this._onSeeking), this.on(Te, this._onSeeked), this.on(
|
|
5905
|
+
}), this.on(xt, this._onSeeking), this.on(Te, this._onSeeked), this.on(ci, function() {
|
|
5924
5906
|
e.endState("destroy");
|
|
5925
5907
|
}), this.on(Pt, function() {
|
|
5926
5908
|
e.endState("urlChange"), U.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
5927
|
-
}), this.on([
|
|
5909
|
+
}), this.on([si, be], this._onPlaying), this.on(ut, this._onWaiting), this.on(lt, this._onError), this.on(Dt, function() {
|
|
5928
5910
|
U.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
5929
5911
|
});
|
|
5930
5912
|
}
|
|
@@ -5988,7 +5970,7 @@ var Ae = {
|
|
|
5988
5970
|
key: "emitLog",
|
|
5989
5971
|
value: function(e, i) {
|
|
5990
5972
|
var n = this.player;
|
|
5991
|
-
this.emit(
|
|
5973
|
+
this.emit(_n, Q({
|
|
5992
5974
|
t: oe(),
|
|
5993
5975
|
host: f.getHostFromUrl(n.currentSrc),
|
|
5994
5976
|
vtype: n.vtype,
|
|
@@ -6012,13 +5994,13 @@ var Ae = {
|
|
|
6012
5994
|
}
|
|
6013
5995
|
}]), r;
|
|
6014
5996
|
}($);
|
|
6015
|
-
function
|
|
5997
|
+
function Mo() {
|
|
6016
5998
|
return new DOMParser().parseFromString(`<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 78 78" width="78" height="78">
|
|
6017
5999
|
<path fill="#fff" transform="translate(20, 20)" d="M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"></path>
|
|
6018
6000
|
</svg>
|
|
6019
6001
|
`, "image/svg+xml").firstChild;
|
|
6020
6002
|
}
|
|
6021
|
-
var
|
|
6003
|
+
var No = /* @__PURE__ */ function(o) {
|
|
6022
6004
|
L(r, o);
|
|
6023
6005
|
var a = R(r);
|
|
6024
6006
|
function r() {
|
|
@@ -6028,7 +6010,7 @@ var Ho = /* @__PURE__ */ function(o) {
|
|
|
6028
6010
|
key: "registerIcons",
|
|
6029
6011
|
value: function() {
|
|
6030
6012
|
return {
|
|
6031
|
-
replay:
|
|
6013
|
+
replay: Mo
|
|
6032
6014
|
};
|
|
6033
6015
|
}
|
|
6034
6016
|
}, {
|
|
@@ -6101,7 +6083,7 @@ var Ho = /* @__PURE__ */ function(o) {
|
|
|
6101
6083
|
};
|
|
6102
6084
|
}
|
|
6103
6085
|
}]), r;
|
|
6104
|
-
}($),
|
|
6086
|
+
}($), Bo = /* @__PURE__ */ function(o) {
|
|
6105
6087
|
L(r, o);
|
|
6106
6088
|
var a = R(r);
|
|
6107
6089
|
function r() {
|
|
@@ -6213,20 +6195,20 @@ var Ho = /* @__PURE__ */ function(o) {
|
|
|
6213
6195
|
}
|
|
6214
6196
|
}]), r;
|
|
6215
6197
|
}($);
|
|
6216
|
-
function
|
|
6198
|
+
function di() {
|
|
6217
6199
|
return new DOMParser().parseFromString(`<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
6218
6200
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
|
|
6219
6201
|
</svg>
|
|
6220
6202
|
`, "image/svg+xml").firstChild;
|
|
6221
6203
|
}
|
|
6222
|
-
function
|
|
6204
|
+
function gi() {
|
|
6223
6205
|
return new DOMParser().parseFromString(`<svg class="pause" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
6224
6206
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
|
|
6225
6207
|
</svg>
|
|
6226
6208
|
`, "image/svg+xml").firstChild;
|
|
6227
6209
|
}
|
|
6228
6210
|
var _e = {};
|
|
6229
|
-
function
|
|
6211
|
+
function Ho(o, a) {
|
|
6230
6212
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
6231
6213
|
start: null,
|
|
6232
6214
|
end: null
|
|
@@ -6235,7 +6217,7 @@ function zo(o, a) {
|
|
|
6235
6217
|
r.end && r.end(), window.clearTimeout(_e[o].id), delete _e[o];
|
|
6236
6218
|
}, a), _e[o].id;
|
|
6237
6219
|
}
|
|
6238
|
-
function
|
|
6220
|
+
function Ui(o) {
|
|
6239
6221
|
if (o) {
|
|
6240
6222
|
window.clearTimeout(o);
|
|
6241
6223
|
return;
|
|
@@ -6244,7 +6226,7 @@ function zi(o) {
|
|
|
6244
6226
|
window.clearTimeout(_e[a].id), delete _e[a];
|
|
6245
6227
|
});
|
|
6246
6228
|
}
|
|
6247
|
-
var
|
|
6229
|
+
var Uo = /* @__PURE__ */ function(o) {
|
|
6248
6230
|
L(r, o);
|
|
6249
6231
|
var a = R(r);
|
|
6250
6232
|
function r(t) {
|
|
@@ -6264,9 +6246,9 @@ var Vo = /* @__PURE__ */ function(o) {
|
|
|
6264
6246
|
key: "afterCreate",
|
|
6265
6247
|
value: function() {
|
|
6266
6248
|
var e = this, i = this.player, n = this.playerConfig;
|
|
6267
|
-
this.initIcons(), this.once(
|
|
6249
|
+
this.initIcons(), this.once(li, function() {
|
|
6268
6250
|
n && (n.lang && n.lang === "en" ? f.addClass(i.root, "lang-is-en") : n.lang === "jp" && f.addClass(i.root, "lang-is-jp"));
|
|
6269
|
-
}), this.on(Ue, this.onAutoplayStart), n.autoplay || this.show(), this.on(
|
|
6251
|
+
}), this.on(Ue, this.onAutoplayStart), n.autoplay || this.show(), this.on(ui, function() {
|
|
6270
6252
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
6271
6253
|
e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
|
|
6272
6254
|
}), this.on(de, function() {
|
|
@@ -6292,11 +6274,11 @@ var Vo = /* @__PURE__ */ function(o) {
|
|
|
6292
6274
|
value: function() {
|
|
6293
6275
|
return {
|
|
6294
6276
|
startPlay: {
|
|
6295
|
-
icon:
|
|
6277
|
+
icon: di,
|
|
6296
6278
|
class: "xg-icon-play"
|
|
6297
6279
|
},
|
|
6298
6280
|
startPause: {
|
|
6299
|
-
icon:
|
|
6281
|
+
icon: gi,
|
|
6300
6282
|
class: "xg-icon-pause"
|
|
6301
6283
|
}
|
|
6302
6284
|
};
|
|
@@ -6336,7 +6318,7 @@ var Vo = /* @__PURE__ */ function(o) {
|
|
|
6336
6318
|
key: "animate",
|
|
6337
6319
|
value: function(e) {
|
|
6338
6320
|
var i = this;
|
|
6339
|
-
this._animateId =
|
|
6321
|
+
this._animateId = Ho("pauseplay", 400, {
|
|
6340
6322
|
start: function() {
|
|
6341
6323
|
f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
|
|
6342
6324
|
},
|
|
@@ -6348,7 +6330,7 @@ var Vo = /* @__PURE__ */ function(o) {
|
|
|
6348
6330
|
}, {
|
|
6349
6331
|
key: "endAnimate",
|
|
6350
6332
|
value: function() {
|
|
6351
|
-
f.removeClass(this.root, "interact"),
|
|
6333
|
+
f.removeClass(this.root, "interact"), Ui(this._animateId), this._animateId = null;
|
|
6352
6334
|
}
|
|
6353
6335
|
}, {
|
|
6354
6336
|
key: "switchPausePlay",
|
|
@@ -6392,7 +6374,7 @@ var Vo = /* @__PURE__ */ function(o) {
|
|
|
6392
6374
|
}, {
|
|
6393
6375
|
key: "destroy",
|
|
6394
6376
|
value: function() {
|
|
6395
|
-
this.unbind(["click", "touchend"], this.clickHandler),
|
|
6377
|
+
this.unbind(["click", "touchend"], this.clickHandler), Ui(this._animateId);
|
|
6396
6378
|
}
|
|
6397
6379
|
}, {
|
|
6398
6380
|
key: "render",
|
|
@@ -6419,7 +6401,7 @@ var Vo = /* @__PURE__ */ function(o) {
|
|
|
6419
6401
|
};
|
|
6420
6402
|
}
|
|
6421
6403
|
}]), r;
|
|
6422
|
-
}($),
|
|
6404
|
+
}($), zo = /* @__PURE__ */ function(o) {
|
|
6423
6405
|
L(r, o);
|
|
6424
6406
|
var a = R(r);
|
|
6425
6407
|
function r() {
|
|
@@ -6464,7 +6446,7 @@ function Oe(o, a, r) {
|
|
|
6464
6446
|
return '<div class="xg-tips hide"></div>';
|
|
6465
6447
|
}
|
|
6466
6448
|
}
|
|
6467
|
-
var
|
|
6449
|
+
var zi = /* @__PURE__ */ function(o) {
|
|
6468
6450
|
L(r, o);
|
|
6469
6451
|
var a = R(r);
|
|
6470
6452
|
function r() {
|
|
@@ -6514,12 +6496,12 @@ var Vi = /* @__PURE__ */ function(o) {
|
|
|
6514
6496
|
}
|
|
6515
6497
|
}]), r;
|
|
6516
6498
|
}($);
|
|
6517
|
-
function
|
|
6499
|
+
function Vi(o) {
|
|
6518
6500
|
var a = parseFloat(o), r = o.indexOf("%") === -1 && !Number.isNaN(a);
|
|
6519
6501
|
return r && a;
|
|
6520
6502
|
}
|
|
6521
|
-
var
|
|
6522
|
-
function
|
|
6503
|
+
var pi = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], In = pi.length;
|
|
6504
|
+
function Vo() {
|
|
6523
6505
|
for (var o = {
|
|
6524
6506
|
width: 0,
|
|
6525
6507
|
height: 0,
|
|
@@ -6527,49 +6509,49 @@ function Wo() {
|
|
|
6527
6509
|
innerHeight: 0,
|
|
6528
6510
|
outerWidth: 0,
|
|
6529
6511
|
outerHeight: 0
|
|
6530
|
-
}, a = 0; a <
|
|
6531
|
-
var r =
|
|
6512
|
+
}, a = 0; a < In; a++) {
|
|
6513
|
+
var r = pi[a];
|
|
6532
6514
|
o[r] = 0;
|
|
6533
6515
|
}
|
|
6534
6516
|
return o;
|
|
6535
6517
|
}
|
|
6536
|
-
function
|
|
6518
|
+
function jo(o) {
|
|
6537
6519
|
var a = window.getComputedStyle(o);
|
|
6538
6520
|
return a;
|
|
6539
6521
|
}
|
|
6540
|
-
function
|
|
6522
|
+
function ji(o) {
|
|
6541
6523
|
if (typeof o == "string" && (o = document.querySelector(o)), !(!o || ae(o) !== "object" || !o.nodeType)) {
|
|
6542
|
-
var a =
|
|
6524
|
+
var a = jo(o);
|
|
6543
6525
|
if (a.display === "none")
|
|
6544
|
-
return
|
|
6526
|
+
return Vo();
|
|
6545
6527
|
var r = {};
|
|
6546
6528
|
r.width = o.offsetWidth, r.height = o.offsetHeight;
|
|
6547
|
-
for (var t = r.isBorderBox = a.boxSizing === "border-box", e = 0; e <
|
|
6548
|
-
var i =
|
|
6529
|
+
for (var t = r.isBorderBox = a.boxSizing === "border-box", e = 0; e < In; e++) {
|
|
6530
|
+
var i = pi[e], n = a[i], s = parseFloat(n);
|
|
6549
6531
|
r[i] = Number.isNaN(s) ? 0 : s;
|
|
6550
6532
|
}
|
|
6551
|
-
var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, g = r.borderTopWidth + r.borderBottomWidth, p = t, m =
|
|
6533
|
+
var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, g = r.borderTopWidth + r.borderBottomWidth, p = t, m = Vi(a.width);
|
|
6552
6534
|
m !== !1 && (r.width = m + (p ? 0 : l + d));
|
|
6553
|
-
var _ =
|
|
6535
|
+
var _ = Vi(a.height);
|
|
6554
6536
|
return _ !== !1 && (r.height = _ + (p ? 0 : u + g)), r.innerWidth = r.width - (l + d), r.innerHeight = r.height - (u + g), r.outerWidth = r.width + c, r.outerHeight = r.height + h, r;
|
|
6555
6537
|
}
|
|
6556
6538
|
}
|
|
6557
|
-
function
|
|
6539
|
+
function Vt(o, a) {
|
|
6558
6540
|
for (var r = 0; r < o.length; r++) {
|
|
6559
6541
|
var t = o[r];
|
|
6560
6542
|
if (t.identifier === a)
|
|
6561
6543
|
return t;
|
|
6562
6544
|
}
|
|
6563
6545
|
}
|
|
6564
|
-
var
|
|
6546
|
+
var jt = {
|
|
6565
6547
|
START: "dragStart",
|
|
6566
6548
|
MOVE: "dragMove",
|
|
6567
6549
|
ENDED: "dragEnded"
|
|
6568
|
-
},
|
|
6550
|
+
}, Wi = {
|
|
6569
6551
|
mousedown: ["mousemove", "mouseup"],
|
|
6570
6552
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
6571
6553
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
6572
|
-
},
|
|
6554
|
+
}, Wo = /* @__PURE__ */ function(o) {
|
|
6573
6555
|
L(r, o);
|
|
6574
6556
|
var a = R(r);
|
|
6575
6557
|
function r(t) {
|
|
@@ -6580,13 +6562,13 @@ var Wt = {
|
|
|
6580
6562
|
}, e.startPos = {
|
|
6581
6563
|
x: 0,
|
|
6582
6564
|
y: 0
|
|
6583
|
-
}, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ?
|
|
6565
|
+
}, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ? ri(e) : (e._bindStartEvent(), e);
|
|
6584
6566
|
}
|
|
6585
6567
|
return P(r, [{
|
|
6586
6568
|
key: "_bindStartEvent",
|
|
6587
6569
|
value: function() {
|
|
6588
6570
|
var e = this;
|
|
6589
|
-
"ontouchstart" in window ? this._startKey = "touchstart" : this._startKey = "mousedown", this["on".concat(this._startKey)] = this["on".concat(this._startKey)].bind(this), this._handlerDom.addEventListener(this._startKey, this["on".concat(this._startKey)]),
|
|
6571
|
+
"ontouchstart" in window ? this._startKey = "touchstart" : this._startKey = "mousedown", this["on".concat(this._startKey)] = this["on".concat(this._startKey)].bind(this), this._handlerDom.addEventListener(this._startKey, this["on".concat(this._startKey)]), Wi[this._startKey].map(function(i) {
|
|
6590
6572
|
e["on".concat(i)] = e["on".concat(i)].bind(e);
|
|
6591
6573
|
});
|
|
6592
6574
|
}
|
|
@@ -6600,7 +6582,7 @@ var Wt = {
|
|
|
6600
6582
|
value: function(e) {
|
|
6601
6583
|
var i = this;
|
|
6602
6584
|
if (e) {
|
|
6603
|
-
var n =
|
|
6585
|
+
var n = Wi[this._startKey];
|
|
6604
6586
|
n.map(function(s) {
|
|
6605
6587
|
window.addEventListener(s, i["on".concat(s)]);
|
|
6606
6588
|
}), this._boundPointerEvents = n;
|
|
@@ -6672,19 +6654,19 @@ var Wt = {
|
|
|
6672
6654
|
}, {
|
|
6673
6655
|
key: "ontouchmove",
|
|
6674
6656
|
value: function(e) {
|
|
6675
|
-
var i =
|
|
6657
|
+
var i = Vt(e.changedTouches, this.touchIdentifier);
|
|
6676
6658
|
i && this.dragMove(e, i);
|
|
6677
6659
|
}
|
|
6678
6660
|
}, {
|
|
6679
6661
|
key: "ontouchend",
|
|
6680
6662
|
value: function(e) {
|
|
6681
|
-
var i =
|
|
6663
|
+
var i = Vt(e.changedTouches, this.touchIdentifier);
|
|
6682
6664
|
i && this.dragEnd(e, i), e.preventDefault();
|
|
6683
6665
|
}
|
|
6684
6666
|
}, {
|
|
6685
6667
|
key: "ontouchcancel",
|
|
6686
6668
|
value: function(e) {
|
|
6687
|
-
var i =
|
|
6669
|
+
var i = Vt(e.changedTouches, this.touchIdentifier);
|
|
6688
6670
|
i && this.dragCancel(e, i);
|
|
6689
6671
|
}
|
|
6690
6672
|
}, {
|
|
@@ -6692,19 +6674,19 @@ var Wt = {
|
|
|
6692
6674
|
value: function(e, i) {
|
|
6693
6675
|
if (!(!this._root || this.isDown || !this.isEnabled)) {
|
|
6694
6676
|
this.downPoint = i, this.dragPoint.x = 0, this.dragPoint.y = 0, this._getPosition();
|
|
6695
|
-
var n =
|
|
6677
|
+
var n = ji(this._root);
|
|
6696
6678
|
this.startPos.x = this.position.x, this.startPos.y = this.position.y, this.startPos.maxY = window.innerHeight - n.height, this.startPos.maxX = window.innerWidth - n.width, this.setLeftTop(), this.isDown = !0, this._bindPostStartEvents(e);
|
|
6697
6679
|
}
|
|
6698
6680
|
}
|
|
6699
6681
|
}, {
|
|
6700
6682
|
key: "dragRealStart",
|
|
6701
6683
|
value: function(e, i) {
|
|
6702
|
-
this.isDragging = !0, this.animate(), this.emit(
|
|
6684
|
+
this.isDragging = !0, this.animate(), this.emit(jt.START, this.startPos);
|
|
6703
6685
|
}
|
|
6704
6686
|
}, {
|
|
6705
6687
|
key: "dragEnd",
|
|
6706
6688
|
value: function(e, i) {
|
|
6707
|
-
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(
|
|
6689
|
+
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(jt.ENDED)), this.presetInfo());
|
|
6708
6690
|
}
|
|
6709
6691
|
}, {
|
|
6710
6692
|
key: "_dragPointerMove",
|
|
@@ -6720,7 +6702,7 @@ var Wt = {
|
|
|
6720
6702
|
value: function(e, i) {
|
|
6721
6703
|
if (e = e || window.event, !!this.isDown) {
|
|
6722
6704
|
var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, h = u.y;
|
|
6723
|
-
c = this.checkContain("x", c, s), h = this.checkContain("y", h, l), this.position.x = s + c, this.position.y = l + h, this.dragPoint.x = c, this.dragPoint.y = h, this.emit(
|
|
6705
|
+
c = this.checkContain("x", c, s), h = this.checkContain("y", h, l), this.position.x = s + c, this.position.y = l + h, this.dragPoint.x = c, this.dragPoint.y = h, this.emit(jt.MOVE, this.position);
|
|
6724
6706
|
}
|
|
6725
6707
|
}
|
|
6726
6708
|
}, {
|
|
@@ -6773,13 +6755,13 @@ var Wt = {
|
|
|
6773
6755
|
key: "_getPositionCoord",
|
|
6774
6756
|
value: function(e, i) {
|
|
6775
6757
|
if (e.indexOf("%") !== -1) {
|
|
6776
|
-
var n =
|
|
6758
|
+
var n = ji(this._root.parentNode);
|
|
6777
6759
|
return n ? parseFloat(e) / 100 * n[i] : 0;
|
|
6778
6760
|
}
|
|
6779
6761
|
return parseInt(e, 10);
|
|
6780
6762
|
}
|
|
6781
6763
|
}]), r;
|
|
6782
|
-
}(
|
|
6764
|
+
}(on), Go = /* @__PURE__ */ function(o) {
|
|
6783
6765
|
L(r, o);
|
|
6784
6766
|
var a = R(r);
|
|
6785
6767
|
function r(t) {
|
|
@@ -6832,10 +6814,10 @@ var Wt = {
|
|
|
6832
6814
|
}
|
|
6833
6815
|
}
|
|
6834
6816
|
};
|
|
6835
|
-
i.controls.registerPlugin(
|
|
6817
|
+
i.controls.registerPlugin(zi, s, zi.pluginName);
|
|
6836
6818
|
}
|
|
6837
6819
|
var l = f.checkTouchSupport() ? "touchend" : "click";
|
|
6838
|
-
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new
|
|
6820
|
+
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Wo(this.player.root, {
|
|
6839
6821
|
handle: this.root
|
|
6840
6822
|
})), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
|
|
6841
6823
|
}
|
|
@@ -6845,11 +6827,11 @@ var Wt = {
|
|
|
6845
6827
|
value: function() {
|
|
6846
6828
|
return {
|
|
6847
6829
|
play: {
|
|
6848
|
-
icon:
|
|
6830
|
+
icon: di,
|
|
6849
6831
|
class: "xg-icon-play"
|
|
6850
6832
|
},
|
|
6851
6833
|
pause: {
|
|
6852
|
-
icon:
|
|
6834
|
+
icon: gi,
|
|
6853
6835
|
class: "xg-icon-pause"
|
|
6854
6836
|
}
|
|
6855
6837
|
};
|
|
@@ -6933,7 +6915,7 @@ var Wt = {
|
|
|
6933
6915
|
mouseenter: "onMouseEnter",
|
|
6934
6916
|
mouseleave: "onMouseLeave",
|
|
6935
6917
|
mousemove: "onMouseMove"
|
|
6936
|
-
},
|
|
6918
|
+
}, Wt = ["videoClick", "videoDbClick"], Gt = /* @__PURE__ */ function(o) {
|
|
6937
6919
|
L(r, o);
|
|
6938
6920
|
var a = R(r);
|
|
6939
6921
|
function r() {
|
|
@@ -6950,7 +6932,7 @@ var Wt = {
|
|
|
6950
6932
|
var l = v(t), u = l.playerConfig, c = l.player;
|
|
6951
6933
|
!u.closeFocusVideoFocus && c.media.focus(), u.closeDelayBlur ? c.focus({
|
|
6952
6934
|
autoHide: !1
|
|
6953
|
-
}) : c.focus(), t.emit(
|
|
6935
|
+
}) : c.focus(), t.emit(gn);
|
|
6954
6936
|
}), y(v(t), "onMouseLeave", function(s) {
|
|
6955
6937
|
var l = t.playerConfig, u = l.closePlayerBlur, c = l.leavePlayerTime, h = l.closeDelayBlur;
|
|
6956
6938
|
!u && !h && (c ? t.player.focus({
|
|
@@ -6958,11 +6940,11 @@ var Wt = {
|
|
|
6958
6940
|
delay: c
|
|
6959
6941
|
}) : t.player.blur({
|
|
6960
6942
|
ignorePaused: !0
|
|
6961
|
-
})), t.emit(
|
|
6943
|
+
})), t.emit(dn);
|
|
6962
6944
|
}), y(v(t), "onVideoClick", function(s) {
|
|
6963
6945
|
var l = v(t), u = l.player, c = l.playerConfig;
|
|
6964
6946
|
s.target && c.closeVideoClick || (s.target === u.root || s.target === u.media || s.target === u.innerContainer || s.target === u.media.__canvas) && (s.preventDefault(), c.closeVideoStopPropagation || s.stopPropagation(), t._clickCount++, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), t.clickTimer = setTimeout(function() {
|
|
6965
|
-
t._clickCount && (t._clickCount--, Ce(v(t),
|
|
6947
|
+
t._clickCount && (t._clickCount--, Ce(v(t), Wt[0], function(h, d) {
|
|
6966
6948
|
t.switchPlayPause(d.e);
|
|
6967
6949
|
}, {
|
|
6968
6950
|
e: s,
|
|
@@ -6976,7 +6958,7 @@ var Wt = {
|
|
|
6976
6958
|
t._clickCount = 0;
|
|
6977
6959
|
return;
|
|
6978
6960
|
}
|
|
6979
|
-
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), Ce(v(t),
|
|
6961
|
+
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), Ce(v(t), Wt[1], function(h, d) {
|
|
6980
6962
|
t.emitUserAction(d.e, "switch_fullscreen", {
|
|
6981
6963
|
props: "fullscreen",
|
|
6982
6964
|
from: u.fullscreen,
|
|
@@ -6993,7 +6975,7 @@ var Wt = {
|
|
|
6993
6975
|
key: "afterCreate",
|
|
6994
6976
|
value: function() {
|
|
6995
6977
|
var e = this;
|
|
6996
|
-
this._clickCount = 0,
|
|
6978
|
+
this._clickCount = 0, Wt.map(function(n) {
|
|
6997
6979
|
e.__hooks[n] = null;
|
|
6998
6980
|
});
|
|
6999
6981
|
var i = this.playerConfig.isMobileSimulateMode;
|
|
@@ -7049,21 +7031,21 @@ var Wt = {
|
|
|
7049
7031
|
TOUCH_MOVE: "touchmove",
|
|
7050
7032
|
TOUCH_START: "touchstart",
|
|
7051
7033
|
TOUCH_END: "touchend"
|
|
7052
|
-
},
|
|
7034
|
+
}, $o = {
|
|
7053
7035
|
start: "touchstart",
|
|
7054
7036
|
end: "touchend",
|
|
7055
7037
|
move: "touchmove",
|
|
7056
7038
|
cancel: "touchcancel"
|
|
7057
|
-
},
|
|
7039
|
+
}, Ko = {
|
|
7058
7040
|
start: "mousedown",
|
|
7059
7041
|
end: "mouseup",
|
|
7060
7042
|
move: "mousemove",
|
|
7061
7043
|
cancel: "mouseleave"
|
|
7062
7044
|
};
|
|
7063
|
-
function
|
|
7045
|
+
function Gi(o) {
|
|
7064
7046
|
return o && o.length > 0 ? o[o.length - 1] : null;
|
|
7065
7047
|
}
|
|
7066
|
-
function
|
|
7048
|
+
function Yo() {
|
|
7067
7049
|
return {
|
|
7068
7050
|
pressDelay: 600,
|
|
7069
7051
|
dbClickDelay: 200,
|
|
@@ -7073,13 +7055,13 @@ function qo() {
|
|
|
7073
7055
|
needPreventDefault: !0
|
|
7074
7056
|
};
|
|
7075
7057
|
}
|
|
7076
|
-
var
|
|
7058
|
+
var Xo = /* @__PURE__ */ function() {
|
|
7077
7059
|
function o(a) {
|
|
7078
7060
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
7079
7061
|
eventType: "touch"
|
|
7080
7062
|
};
|
|
7081
7063
|
I(this, o), y(this, "onTouchStart", function(e) {
|
|
7082
|
-
var i = r._pos, n = r.root, s =
|
|
7064
|
+
var i = r._pos, n = r.root, s = Gi(e.touches);
|
|
7083
7065
|
i.x = s ? parseInt(s.pageX, 10) : e.pageX, i.y = s ? parseInt(s.pageX, 10) : e.pageX, i.start = !0, r.__setPress(e), n.addEventListener(r.events.end, r.onTouchEnd), n.addEventListener(r.events.cancel, r.onTouchCancel), n.addEventListener(r.events.move, r.onTouchMove), r.trigger(xe.TOUCH_START, e);
|
|
7084
7066
|
}), y(this, "onTouchCancel", function(e) {
|
|
7085
7067
|
r.onTouchEnd(e);
|
|
@@ -7087,16 +7069,16 @@ var Zo = /* @__PURE__ */ function() {
|
|
|
7087
7069
|
var i = r._pos, n = r.root;
|
|
7088
7070
|
r.__clearPress(), n.removeEventListener(r.events.cancel, r.onTouchCancel), n.removeEventListener(r.events.end, r.onTouchEnd), n.removeEventListener(r.events.move, r.onTouchMove), e.moving = i.moving, e.press = i.press, i.press && r.trigger(xe.PRESS_END, e), r.trigger(xe.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
|
|
7089
7071
|
}), y(this, "onTouchMove", function(e) {
|
|
7090
|
-
var i = r._pos, n = r.config, s =
|
|
7072
|
+
var i = r._pos, n = r.config, s = Gi(e.touches), l = s ? parseInt(s.pageX, 10) : e.pageX, u = s ? parseInt(s.pageY, 10) : e.pageX, c = l - i.x, h = u - i.y;
|
|
7091
7073
|
Math.abs(h) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(xe.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(xe.TOUCH_MOVE, e));
|
|
7092
7074
|
}), this._pos = {
|
|
7093
7075
|
moving: !1,
|
|
7094
7076
|
start: !1,
|
|
7095
7077
|
x: 0,
|
|
7096
7078
|
y: 0
|
|
7097
|
-
}, this.config =
|
|
7079
|
+
}, this.config = Yo(), Object.keys(t).map(function(e) {
|
|
7098
7080
|
r.config[e] = t[e];
|
|
7099
|
-
}), this.root = a, this.events = t.eventType === "mouse" ?
|
|
7081
|
+
}), this.root = a, this.events = t.eventType === "mouse" ? Ko : $o, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
7100
7082
|
}
|
|
7101
7083
|
return P(o, [{
|
|
7102
7084
|
key: "_initEvent",
|
|
@@ -7175,7 +7157,7 @@ var Zo = /* @__PURE__ */ function() {
|
|
|
7175
7157
|
}
|
|
7176
7158
|
}]), o;
|
|
7177
7159
|
}();
|
|
7178
|
-
function
|
|
7160
|
+
function qo() {
|
|
7179
7161
|
return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
7180
7162
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
7181
7163
|
<path opacity="0.54"
|
|
@@ -7189,7 +7171,7 @@ var $e = {
|
|
|
7189
7171
|
SEEKING: "seeking",
|
|
7190
7172
|
PLAYBACK: "playbackrate",
|
|
7191
7173
|
LIGHT: ""
|
|
7192
|
-
},
|
|
7174
|
+
}, $t = ["videoClick", "videoDbClick"], Zo = /* @__PURE__ */ function(o) {
|
|
7193
7175
|
L(r, o);
|
|
7194
7176
|
var a = R(r);
|
|
7195
7177
|
function r(t) {
|
|
@@ -7261,7 +7243,7 @@ var $e = {
|
|
|
7261
7243
|
value: function() {
|
|
7262
7244
|
return {
|
|
7263
7245
|
seekTipIcon: {
|
|
7264
|
-
icon:
|
|
7246
|
+
icon: qo,
|
|
7265
7247
|
class: "xg-seek-pre"
|
|
7266
7248
|
}
|
|
7267
7249
|
};
|
|
@@ -7270,13 +7252,13 @@ var $e = {
|
|
|
7270
7252
|
key: "afterCreate",
|
|
7271
7253
|
value: function() {
|
|
7272
7254
|
var e = this;
|
|
7273
|
-
|
|
7255
|
+
$t.map(function(d) {
|
|
7274
7256
|
e.__hooks[d] = null;
|
|
7275
7257
|
});
|
|
7276
7258
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
7277
7259
|
i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), f.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = f.createDom("xg-mask", "", {}, "xgmask"), s.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
|
|
7278
7260
|
var l = this.domEventType === "mouse" ? "mouse" : "touch";
|
|
7279
|
-
this.touch = new
|
|
7261
|
+
this.touch = new Xo(this.root, {
|
|
7280
7262
|
eventType: l,
|
|
7281
7263
|
needPreventDefault: !this.config.disableGesture
|
|
7282
7264
|
}), this.root.addEventListener("contextmenu", function(d) {
|
|
@@ -7453,7 +7435,7 @@ var $e = {
|
|
|
7453
7435
|
key: "onClick",
|
|
7454
7436
|
value: function(e) {
|
|
7455
7437
|
var i = this, n = this.player;
|
|
7456
|
-
Ce(this,
|
|
7438
|
+
Ce(this, $t[0], function(s, l) {
|
|
7457
7439
|
i.clickHandler(l.e);
|
|
7458
7440
|
}, {
|
|
7459
7441
|
e,
|
|
@@ -7464,7 +7446,7 @@ var $e = {
|
|
|
7464
7446
|
key: "onDbClick",
|
|
7465
7447
|
value: function(e) {
|
|
7466
7448
|
var i = this, n = this.player;
|
|
7467
|
-
Ce(this,
|
|
7449
|
+
Ce(this, $t[1], function(s, l) {
|
|
7468
7450
|
i.dbClickHandler(l.e);
|
|
7469
7451
|
}, {
|
|
7470
7452
|
e,
|
|
@@ -7618,14 +7600,14 @@ var $e = {
|
|
|
7618
7600
|
}
|
|
7619
7601
|
}]), r;
|
|
7620
7602
|
}($);
|
|
7621
|
-
function
|
|
7603
|
+
function Jo(o) {
|
|
7622
7604
|
o.preventDefault(), o.returnValue = !1;
|
|
7623
7605
|
}
|
|
7624
|
-
function
|
|
7606
|
+
function $i(o) {
|
|
7625
7607
|
var a = o.tagName;
|
|
7626
7608
|
return !!(a === "INPUT" || a === "TEXTAREA" || o.isContentEditable);
|
|
7627
7609
|
}
|
|
7628
|
-
var
|
|
7610
|
+
var Ki = /* @__PURE__ */ function(o) {
|
|
7629
7611
|
L(r, o);
|
|
7630
7612
|
var a = R(r);
|
|
7631
7613
|
function r() {
|
|
@@ -7636,11 +7618,11 @@ var Yi = /* @__PURE__ */ function(o) {
|
|
|
7636
7618
|
return t = a.call.apply(a, [this].concat(i)), y(v(t), "onBodyKeyDown", function(s) {
|
|
7637
7619
|
if (t.player) {
|
|
7638
7620
|
var l = s || window.event, u = l.keyCode, c = v(t), h = c._keyState, d = c.player, g = t.config, p = g.disable, m = g.disableBodyTrigger, _ = g.isIgnoreUserActive;
|
|
7639
|
-
if (p || m || !(d.isUserActive || _) ||
|
|
7621
|
+
if (p || m || !(d.isUserActive || _) || $i(l.target) || !t.checkIsVisible() || l.metaKey || l.altKey || l.ctrlKey) {
|
|
7640
7622
|
h.isBodyKeyDown = !1;
|
|
7641
7623
|
return;
|
|
7642
7624
|
}
|
|
7643
|
-
!s.repeat && !h.isKeyDown && ((l.target === document.body || t.config.isGlobalTrigger &&
|
|
7625
|
+
!s.repeat && !h.isKeyDown && ((l.target === document.body || t.config.isGlobalTrigger && !$i(l.target)) && t.checkCode(u, !0) && (h.isBodyKeyDown = !0), document.addEventListener("keyup", t.onBodyKeyUp)), h.isBodyKeyDown && t.handleKeyDown(l);
|
|
7644
7626
|
}
|
|
7645
7627
|
}), y(v(t), "onBodyKeyUp", function(s) {
|
|
7646
7628
|
t.player && (document.removeEventListener("keyup", t.onBodyKeyUp), t.handleKeyUp(s));
|
|
@@ -7861,13 +7843,13 @@ var Yi = /* @__PURE__ */ function(o) {
|
|
|
7861
7843
|
if (h === e) {
|
|
7862
7844
|
if (!d && !(n && p)) {
|
|
7863
7845
|
var m = n && g || c;
|
|
7864
|
-
typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(
|
|
7846
|
+
typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(yn, Q({
|
|
7865
7847
|
key: s[l],
|
|
7866
7848
|
target: i.target,
|
|
7867
7849
|
isPress: n
|
|
7868
7850
|
}, this.keyCodeMap[s[l]]));
|
|
7869
7851
|
}
|
|
7870
|
-
|
|
7852
|
+
Jo(i), i.stopPropagation();
|
|
7871
7853
|
break;
|
|
7872
7854
|
}
|
|
7873
7855
|
}
|
|
@@ -7909,13 +7891,13 @@ var Yi = /* @__PURE__ */ function(o) {
|
|
|
7909
7891
|
}
|
|
7910
7892
|
}]), r;
|
|
7911
7893
|
}(Le);
|
|
7912
|
-
function
|
|
7894
|
+
function Qo() {
|
|
7913
7895
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
7914
7896
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
7915
7897
|
</svg>
|
|
7916
7898
|
`, "image/svg+xml").firstChild;
|
|
7917
7899
|
}
|
|
7918
|
-
var
|
|
7900
|
+
var ea = /* @__PURE__ */ function(o) {
|
|
7919
7901
|
L(r, o);
|
|
7920
7902
|
var a = R(r);
|
|
7921
7903
|
function r() {
|
|
@@ -7925,7 +7907,7 @@ var ia = /* @__PURE__ */ function(o) {
|
|
|
7925
7907
|
key: "registerIcons",
|
|
7926
7908
|
value: function() {
|
|
7927
7909
|
return {
|
|
7928
|
-
loadingIcon:
|
|
7910
|
+
loadingIcon: Qo
|
|
7929
7911
|
};
|
|
7930
7912
|
}
|
|
7931
7913
|
}, {
|
|
@@ -7954,7 +7936,7 @@ var ia = /* @__PURE__ */ function(o) {
|
|
|
7954
7936
|
};
|
|
7955
7937
|
}
|
|
7956
7938
|
}]), r;
|
|
7957
|
-
}($),
|
|
7939
|
+
}($), ta = [{
|
|
7958
7940
|
tag: "xg-cache",
|
|
7959
7941
|
className: "xgplayer-progress-cache",
|
|
7960
7942
|
styleKey: "cachedColor"
|
|
@@ -7962,7 +7944,7 @@ var ia = /* @__PURE__ */ function(o) {
|
|
|
7962
7944
|
tag: "xg-played",
|
|
7963
7945
|
className: "xgplayer-progress-played",
|
|
7964
7946
|
styleKey: "playedColor"
|
|
7965
|
-
}],
|
|
7947
|
+
}], ia = /* @__PURE__ */ function() {
|
|
7966
7948
|
function o(a) {
|
|
7967
7949
|
I(this, o), this.fragments = a.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
7968
7950
|
percent: 1
|
|
@@ -8149,7 +8131,7 @@ var ia = /* @__PURE__ */ function(o) {
|
|
|
8149
8131
|
var l = f.createDom("xg-inner", "", {
|
|
8150
8132
|
style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
|
|
8151
8133
|
}, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
|
|
8152
|
-
return r.root.appendChild(l),
|
|
8134
|
+
return r.root.appendChild(l), ta.forEach(function(u) {
|
|
8153
8135
|
l.appendChild(f.createDom(u.tag, "", {
|
|
8154
8136
|
style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
|
|
8155
8137
|
}, u.className));
|
|
@@ -8162,10 +8144,10 @@ var ia = /* @__PURE__ */ function(o) {
|
|
|
8162
8144
|
return this.root;
|
|
8163
8145
|
}
|
|
8164
8146
|
}]), o;
|
|
8165
|
-
}(),
|
|
8147
|
+
}(), Yi = {
|
|
8166
8148
|
POINT: "inner-focus-point",
|
|
8167
8149
|
HIGHLIGHT: "inner-focus-highlight"
|
|
8168
|
-
},
|
|
8150
|
+
}, na = /* @__PURE__ */ function(o) {
|
|
8169
8151
|
L(r, o);
|
|
8170
8152
|
var a = R(r);
|
|
8171
8153
|
function r(t) {
|
|
@@ -8295,7 +8277,7 @@ var ia = /* @__PURE__ */ function(o) {
|
|
|
8295
8277
|
e.emitUserAction("fragment_focus", "fragment_focus", u);
|
|
8296
8278
|
}
|
|
8297
8279
|
});
|
|
8298
|
-
this.innerList ? this.innerList.reset(s) : (this.innerList = new
|
|
8280
|
+
this.innerList ? this.innerList.reset(s) : (this.innerList = new ia(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
|
|
8299
8281
|
e[l] = e.innerList[l].bind(e.innerList);
|
|
8300
8282
|
}));
|
|
8301
8283
|
}
|
|
@@ -8329,7 +8311,7 @@ var ia = /* @__PURE__ */ function(o) {
|
|
|
8329
8311
|
e.onTimeupdate();
|
|
8330
8312
|
}), this.on(Te, function() {
|
|
8331
8313
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
8332
|
-
}), this.on(
|
|
8314
|
+
}), this.on(cn, function() {
|
|
8333
8315
|
e.onCacheUpdate();
|
|
8334
8316
|
}), this.on(Ve, function() {
|
|
8335
8317
|
e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
|
|
@@ -8558,7 +8540,7 @@ var ia = /* @__PURE__ */ function(o) {
|
|
|
8558
8540
|
fragments: [{
|
|
8559
8541
|
percent: 1
|
|
8560
8542
|
}],
|
|
8561
|
-
fragFocusClass:
|
|
8543
|
+
fragFocusClass: Yi.POINT,
|
|
8562
8544
|
fragClass: "",
|
|
8563
8545
|
fragAutoFocus: !1,
|
|
8564
8546
|
miniMoveStep: 5,
|
|
@@ -8573,7 +8555,7 @@ var ia = /* @__PURE__ */ function(o) {
|
|
|
8573
8555
|
}, {
|
|
8574
8556
|
key: "FRAGMENT_FOCUS_CLASS",
|
|
8575
8557
|
get: function() {
|
|
8576
|
-
return
|
|
8558
|
+
return Yi;
|
|
8577
8559
|
}
|
|
8578
8560
|
}]), r;
|
|
8579
8561
|
}($), We = /* @__PURE__ */ function(o) {
|
|
@@ -8605,7 +8587,7 @@ var ia = /* @__PURE__ */ function(o) {
|
|
|
8605
8587
|
this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
|
|
8606
8588
|
}
|
|
8607
8589
|
}]), r;
|
|
8608
|
-
}($),
|
|
8590
|
+
}($), ra = /* @__PURE__ */ function(o) {
|
|
8609
8591
|
L(r, o);
|
|
8610
8592
|
var a = R(r);
|
|
8611
8593
|
function r() {
|
|
@@ -8628,11 +8610,11 @@ var ia = /* @__PURE__ */ function(o) {
|
|
|
8628
8610
|
value: function() {
|
|
8629
8611
|
return {
|
|
8630
8612
|
play: {
|
|
8631
|
-
icon:
|
|
8613
|
+
icon: di,
|
|
8632
8614
|
class: "xg-icon-play"
|
|
8633
8615
|
},
|
|
8634
8616
|
pause: {
|
|
8635
|
-
icon:
|
|
8617
|
+
icon: gi,
|
|
8636
8618
|
class: "xg-icon-pause"
|
|
8637
8619
|
}
|
|
8638
8620
|
};
|
|
@@ -8693,14 +8675,14 @@ var ia = /* @__PURE__ */ function(o) {
|
|
|
8693
8675
|
}
|
|
8694
8676
|
}]), r;
|
|
8695
8677
|
}(We);
|
|
8696
|
-
function
|
|
8678
|
+
function sa() {
|
|
8697
8679
|
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">
|
|
8698
8680
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8699
8681
|
<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>
|
|
8700
8682
|
</g>
|
|
8701
8683
|
</svg>`, "image/svg+xml").firstChild;
|
|
8702
8684
|
}
|
|
8703
|
-
var
|
|
8685
|
+
var oa = /* @__PURE__ */ function(o) {
|
|
8704
8686
|
L(r, o);
|
|
8705
8687
|
var a = R(r);
|
|
8706
8688
|
function r() {
|
|
@@ -8719,7 +8701,7 @@ var la = /* @__PURE__ */ function(o) {
|
|
|
8719
8701
|
value: function() {
|
|
8720
8702
|
return {
|
|
8721
8703
|
screenBack: {
|
|
8722
|
-
icon:
|
|
8704
|
+
icon: sa,
|
|
8723
8705
|
class: "xg-fullscreen-back"
|
|
8724
8706
|
}
|
|
8725
8707
|
};
|
|
@@ -8761,19 +8743,19 @@ var la = /* @__PURE__ */ function(o) {
|
|
|
8761
8743
|
}
|
|
8762
8744
|
}]), r;
|
|
8763
8745
|
}($);
|
|
8764
|
-
function
|
|
8746
|
+
function aa() {
|
|
8765
8747
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
8766
8748
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>
|
|
8767
8749
|
</svg>
|
|
8768
8750
|
`, "image/svg+xml").firstChild;
|
|
8769
8751
|
}
|
|
8770
|
-
function
|
|
8752
|
+
function la() {
|
|
8771
8753
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
8772
8754
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>
|
|
8773
8755
|
</svg>
|
|
8774
8756
|
`, "image/svg+xml").firstChild;
|
|
8775
8757
|
}
|
|
8776
|
-
var
|
|
8758
|
+
var ua = /* @__PURE__ */ function(o) {
|
|
8777
8759
|
L(r, o);
|
|
8778
8760
|
var a = R(r);
|
|
8779
8761
|
function r() {
|
|
@@ -8808,7 +8790,7 @@ var fa = /* @__PURE__ */ function(o) {
|
|
|
8808
8790
|
var u = e.find(".xg-tips");
|
|
8809
8791
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
8810
8792
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
8811
|
-
plugin:
|
|
8793
|
+
plugin: oa,
|
|
8812
8794
|
options: {
|
|
8813
8795
|
config: {
|
|
8814
8796
|
onClick: function(u) {
|
|
@@ -8824,11 +8806,11 @@ var fa = /* @__PURE__ */ function(o) {
|
|
|
8824
8806
|
value: function() {
|
|
8825
8807
|
return {
|
|
8826
8808
|
fullscreen: {
|
|
8827
|
-
icon:
|
|
8809
|
+
icon: aa,
|
|
8828
8810
|
class: "xg-get-fullscreen"
|
|
8829
8811
|
},
|
|
8830
8812
|
exitFullscreen: {
|
|
8831
|
-
icon:
|
|
8813
|
+
icon: la,
|
|
8832
8814
|
class: "xg-exit-fullscreen"
|
|
8833
8815
|
}
|
|
8834
8816
|
};
|
|
@@ -8909,7 +8891,7 @@ var fa = /* @__PURE__ */ function(o) {
|
|
|
8909
8891
|
};
|
|
8910
8892
|
}
|
|
8911
8893
|
}]), r;
|
|
8912
|
-
}(We),
|
|
8894
|
+
}(We), ca = /* @__PURE__ */ function(o) {
|
|
8913
8895
|
L(r, o);
|
|
8914
8896
|
var a = R(r);
|
|
8915
8897
|
function r(t) {
|
|
@@ -9059,7 +9041,7 @@ var fa = /* @__PURE__ */ function(o) {
|
|
|
9059
9041
|
};
|
|
9060
9042
|
}
|
|
9061
9043
|
}]), r;
|
|
9062
|
-
}($),
|
|
9044
|
+
}($), fa = /* @__PURE__ */ function(o) {
|
|
9063
9045
|
L(r, o);
|
|
9064
9046
|
var a = R(r);
|
|
9065
9047
|
function r() {
|
|
@@ -9197,28 +9179,28 @@ var fa = /* @__PURE__ */ function(o) {
|
|
|
9197
9179
|
}
|
|
9198
9180
|
}]), r;
|
|
9199
9181
|
}(Le);
|
|
9200
|
-
function
|
|
9182
|
+
function ha() {
|
|
9201
9183
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9202
9184
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9203
9185
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
9204
9186
|
</svg>
|
|
9205
9187
|
`, "image/svg+xml").firstChild;
|
|
9206
9188
|
}
|
|
9207
|
-
function
|
|
9189
|
+
function da() {
|
|
9208
9190
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9209
9191
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9210
9192
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
9211
9193
|
</svg>
|
|
9212
9194
|
`, "image/svg+xml").firstChild;
|
|
9213
9195
|
}
|
|
9214
|
-
function
|
|
9196
|
+
function ga() {
|
|
9215
9197
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9216
9198
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9217
9199
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>
|
|
9218
9200
|
</svg>
|
|
9219
9201
|
`, "image/svg+xml").firstChild;
|
|
9220
9202
|
}
|
|
9221
|
-
var
|
|
9203
|
+
var pa = /* @__PURE__ */ function(o) {
|
|
9222
9204
|
L(r, o);
|
|
9223
9205
|
var a = R(r);
|
|
9224
9206
|
function r() {
|
|
@@ -9266,15 +9248,15 @@ var ma = /* @__PURE__ */ function(o) {
|
|
|
9266
9248
|
value: function() {
|
|
9267
9249
|
return {
|
|
9268
9250
|
volumeSmall: {
|
|
9269
|
-
icon:
|
|
9251
|
+
icon: da,
|
|
9270
9252
|
class: "xg-volume-small"
|
|
9271
9253
|
},
|
|
9272
9254
|
volumeLarge: {
|
|
9273
|
-
icon:
|
|
9255
|
+
icon: ha,
|
|
9274
9256
|
class: "xg-volume"
|
|
9275
9257
|
},
|
|
9276
9258
|
volumeMuted: {
|
|
9277
|
-
icon:
|
|
9259
|
+
icon: ga,
|
|
9278
9260
|
class: "xg-volume-mute"
|
|
9279
9261
|
}
|
|
9280
9262
|
};
|
|
@@ -9296,7 +9278,7 @@ var ma = /* @__PURE__ */ function(o) {
|
|
|
9296
9278
|
pre: function(u) {
|
|
9297
9279
|
u.preventDefault(), u.stopPropagation();
|
|
9298
9280
|
}
|
|
9299
|
-
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), B.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(
|
|
9281
|
+
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), B.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(ln, this.onVolumeChange), this.once(Ee, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
|
|
9300
9282
|
}
|
|
9301
9283
|
}
|
|
9302
9284
|
}, {
|
|
@@ -9413,7 +9395,7 @@ var ma = /* @__PURE__ */ function(o) {
|
|
|
9413
9395
|
}
|
|
9414
9396
|
}]), r;
|
|
9415
9397
|
}($);
|
|
9416
|
-
function
|
|
9398
|
+
function va() {
|
|
9417
9399
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
9418
9400
|
<g clip-path="url(#clip0)">
|
|
9419
9401
|
<path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"/>
|
|
@@ -9427,7 +9409,7 @@ function ya() {
|
|
|
9427
9409
|
</svg>
|
|
9428
9410
|
`, "image/svg+xml").firstChild;
|
|
9429
9411
|
}
|
|
9430
|
-
var
|
|
9412
|
+
var ma = /* @__PURE__ */ function(o) {
|
|
9431
9413
|
L(r, o);
|
|
9432
9414
|
var a = R(r);
|
|
9433
9415
|
function r(t) {
|
|
@@ -9484,13 +9466,13 @@ var _a = /* @__PURE__ */ function(o) {
|
|
|
9484
9466
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, s = this.player;
|
|
9485
9467
|
this.rotateDeg || (this.rotateDeg = 0);
|
|
9486
9468
|
var l = e ? 1 : -1;
|
|
9487
|
-
this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(
|
|
9469
|
+
this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(vn, this.rotateDeg * 360);
|
|
9488
9470
|
}
|
|
9489
9471
|
}, {
|
|
9490
9472
|
key: "registerIcons",
|
|
9491
9473
|
value: function() {
|
|
9492
9474
|
return {
|
|
9493
|
-
rotate:
|
|
9475
|
+
rotate: va
|
|
9494
9476
|
};
|
|
9495
9477
|
}
|
|
9496
9478
|
}, {
|
|
@@ -9523,14 +9505,14 @@ var _a = /* @__PURE__ */ function(o) {
|
|
|
9523
9505
|
}
|
|
9524
9506
|
}]), r;
|
|
9525
9507
|
}(We);
|
|
9526
|
-
function
|
|
9508
|
+
function ya() {
|
|
9527
9509
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9528
9510
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
9529
9511
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
9530
9512
|
fill="white" />
|
|
9531
9513
|
</svg>`, "image/svg+xml").firstChild;
|
|
9532
9514
|
}
|
|
9533
|
-
function
|
|
9515
|
+
function _a() {
|
|
9534
9516
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9535
9517
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
9536
9518
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
@@ -9544,7 +9526,7 @@ var Ke = {
|
|
|
9544
9526
|
PIP: "picture-in-picture",
|
|
9545
9527
|
INLINE: "inline",
|
|
9546
9528
|
FULLSCREEN: "fullscreen"
|
|
9547
|
-
},
|
|
9529
|
+
}, ka = /* @__PURE__ */ function(o) {
|
|
9548
9530
|
L(r, o);
|
|
9549
9531
|
var a = R(r);
|
|
9550
9532
|
function r() {
|
|
@@ -9584,11 +9566,11 @@ var Ke = {
|
|
|
9584
9566
|
value: function() {
|
|
9585
9567
|
return {
|
|
9586
9568
|
pipIcon: {
|
|
9587
|
-
icon:
|
|
9569
|
+
icon: ya,
|
|
9588
9570
|
class: "xg-get-pip"
|
|
9589
9571
|
},
|
|
9590
9572
|
pipIconExit: {
|
|
9591
|
-
icon:
|
|
9573
|
+
icon: _a,
|
|
9592
9574
|
class: "xg-exit-pip"
|
|
9593
9575
|
}
|
|
9594
9576
|
};
|
|
@@ -9607,9 +9589,9 @@ var Ke = {
|
|
|
9607
9589
|
var n = i.paused;
|
|
9608
9590
|
f.setTimeout(e, function() {
|
|
9609
9591
|
!n && i.mediaPlay();
|
|
9610
|
-
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(
|
|
9592
|
+
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(ti, !1);
|
|
9611
9593
|
}, this.enterPIPCallback = function(n) {
|
|
9612
|
-
i.emit(
|
|
9594
|
+
i.emit(ti, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
9613
9595
|
}, this.onWebkitpresentationmodechanged = function(n) {
|
|
9614
9596
|
var s = i.media.webkitPresentationMode;
|
|
9615
9597
|
e.pMode === Ke.FULLSCREEN && s !== Ke.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === Ke.PIP ? e.enterPIPCallback(n) : s === Ke.INLINE && e.leavePIPCallback(n);
|
|
@@ -9747,13 +9729,13 @@ var Ke = {
|
|
|
9747
9729
|
}
|
|
9748
9730
|
}]), r;
|
|
9749
9731
|
}(We);
|
|
9750
|
-
function
|
|
9732
|
+
function Ca() {
|
|
9751
9733
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
9752
9734
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
9753
9735
|
</svg>
|
|
9754
9736
|
`, "image/svg+xml").firstChild;
|
|
9755
9737
|
}
|
|
9756
|
-
var
|
|
9738
|
+
var wa = /* @__PURE__ */ function(o) {
|
|
9757
9739
|
L(r, o);
|
|
9758
9740
|
var a = R(r);
|
|
9759
9741
|
function r(t) {
|
|
@@ -9772,7 +9754,7 @@ var Ta = /* @__PURE__ */ function(o) {
|
|
|
9772
9754
|
key: "registerIcons",
|
|
9773
9755
|
value: function() {
|
|
9774
9756
|
return {
|
|
9775
|
-
playNext:
|
|
9757
|
+
playNext: Ca
|
|
9776
9758
|
};
|
|
9777
9759
|
}
|
|
9778
9760
|
}, {
|
|
@@ -9821,11 +9803,11 @@ var Ta = /* @__PURE__ */ function(o) {
|
|
|
9821
9803
|
};
|
|
9822
9804
|
}
|
|
9823
9805
|
}]), r;
|
|
9824
|
-
}($),
|
|
9806
|
+
}($), Pn = { exports: {} };
|
|
9825
9807
|
(function(o, a) {
|
|
9826
9808
|
(function(r, t) {
|
|
9827
9809
|
o.exports = t();
|
|
9828
|
-
})(
|
|
9810
|
+
})(As, function() {
|
|
9829
9811
|
return function r(t, e, i) {
|
|
9830
9812
|
var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(M) {
|
|
9831
9813
|
return String(M);
|
|
@@ -9893,10 +9875,10 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
9893
9875
|
return !0;
|
|
9894
9876
|
};
|
|
9895
9877
|
});
|
|
9896
|
-
})(
|
|
9897
|
-
var
|
|
9898
|
-
const
|
|
9899
|
-
function
|
|
9878
|
+
})(Pn);
|
|
9879
|
+
var ba = Pn.exports;
|
|
9880
|
+
const Ta = /* @__PURE__ */ ii(ba);
|
|
9881
|
+
function Ea() {
|
|
9900
9882
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
9901
9883
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
9902
9884
|
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
@@ -9913,7 +9895,7 @@ function Aa() {
|
|
|
9913
9895
|
</svg>
|
|
9914
9896
|
`, "image/svg+xml").firstChild;
|
|
9915
9897
|
}
|
|
9916
|
-
var
|
|
9898
|
+
var Sa = /* @__PURE__ */ function(o) {
|
|
9917
9899
|
L(r, o);
|
|
9918
9900
|
var a = R(r);
|
|
9919
9901
|
function r(t) {
|
|
@@ -9924,7 +9906,7 @@ var xa = /* @__PURE__ */ function(o) {
|
|
|
9924
9906
|
var n = e.playerConfig.url, s = "";
|
|
9925
9907
|
f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
|
|
9926
9908
|
var l = e.getAbsoluteURL(s);
|
|
9927
|
-
|
|
9909
|
+
Ta(l), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
9928
9910
|
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
9929
9911
|
}, 300);
|
|
9930
9912
|
}
|
|
@@ -9943,7 +9925,7 @@ var xa = /* @__PURE__ */ function(o) {
|
|
|
9943
9925
|
key: "registerIcons",
|
|
9944
9926
|
value: function() {
|
|
9945
9927
|
return {
|
|
9946
|
-
download:
|
|
9928
|
+
download: Ea
|
|
9947
9929
|
};
|
|
9948
9930
|
}
|
|
9949
9931
|
}, {
|
|
@@ -9985,7 +9967,7 @@ var xa = /* @__PURE__ */ function(o) {
|
|
|
9985
9967
|
};
|
|
9986
9968
|
}
|
|
9987
9969
|
}]), r;
|
|
9988
|
-
}(We),
|
|
9970
|
+
}(We), Aa = /* @__PURE__ */ function(o) {
|
|
9989
9971
|
L(r, o);
|
|
9990
9972
|
var a = R(r);
|
|
9991
9973
|
function r() {
|
|
@@ -10040,7 +10022,7 @@ var xa = /* @__PURE__ */ function(o) {
|
|
|
10040
10022
|
e.preventDefault(), e.stopPropagation(), this.emitUserAction(e, "shot");
|
|
10041
10023
|
var n = this.config;
|
|
10042
10024
|
this.shot(n.width, n.height).then(function(s) {
|
|
10043
|
-
i.emit(
|
|
10025
|
+
i.emit(mn, s), n.saveImg && i.saveScreenShot(s, n.name + n.format);
|
|
10044
10026
|
});
|
|
10045
10027
|
}
|
|
10046
10028
|
}, {
|
|
@@ -10111,7 +10093,7 @@ var xa = /* @__PURE__ */ function(o) {
|
|
|
10111
10093
|
};
|
|
10112
10094
|
}
|
|
10113
10095
|
}]), r;
|
|
10114
|
-
}(We),
|
|
10096
|
+
}(We), xa = /* @__PURE__ */ function() {
|
|
10115
10097
|
function o(a) {
|
|
10116
10098
|
I(this, o), this.config = a.config, this.parent = a.root, this.root = f.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), a.root.appendChild(this.root);
|
|
10117
10099
|
var r = this.config.maxHeight;
|
|
@@ -10191,7 +10173,7 @@ var xa = /* @__PURE__ */ function(o) {
|
|
|
10191
10173
|
CLICK: "click",
|
|
10192
10174
|
HOVER: "hover"
|
|
10193
10175
|
};
|
|
10194
|
-
function
|
|
10176
|
+
function Ia(o, a) {
|
|
10195
10177
|
return o === ye.SIDE ? a === X.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10196
10178
|
}
|
|
10197
10179
|
var Me = B.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
@@ -10230,7 +10212,7 @@ var Me = B.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10230
10212
|
e._resizeList();
|
|
10231
10213
|
}), this.once(be, function() {
|
|
10232
10214
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
10233
|
-
}), Me && this.on(
|
|
10215
|
+
}), Me && this.on(ai, function() {
|
|
10234
10216
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
10235
10217
|
}), Me ? (i.toggleMode = Ye.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === Ye.CLICK ? "click" : "mouseenter", i.toggleMode === Ye.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
|
|
10236
10218
|
}
|
|
@@ -10305,7 +10287,7 @@ var Me = B.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10305
10287
|
var c = {
|
|
10306
10288
|
config: {
|
|
10307
10289
|
data: e || [],
|
|
10308
|
-
className:
|
|
10290
|
+
className: Ia(s.listType, s.position),
|
|
10309
10291
|
onItemClick: function(m, _) {
|
|
10310
10292
|
n.onItemClick(m, _);
|
|
10311
10293
|
},
|
|
@@ -10315,7 +10297,7 @@ var Me = B.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10315
10297
|
};
|
|
10316
10298
|
if (this.config.isShowIcon) {
|
|
10317
10299
|
var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === ye.MIDDLE ? d - 50 : d;
|
|
10318
|
-
g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new
|
|
10300
|
+
g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new xa(c), this.changeCurrentText(), this.show();
|
|
10319
10301
|
}
|
|
10320
10302
|
this._resizeList();
|
|
10321
10303
|
}
|
|
@@ -10366,7 +10348,7 @@ var Me = B.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10366
10348
|
};
|
|
10367
10349
|
}
|
|
10368
10350
|
}]), r;
|
|
10369
|
-
}($),
|
|
10351
|
+
}($), Pa = /* @__PURE__ */ function(o) {
|
|
10370
10352
|
L(r, o);
|
|
10371
10353
|
var a = R(r);
|
|
10372
10354
|
function r(t) {
|
|
@@ -10387,7 +10369,7 @@ var Me = B.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10387
10369
|
var e = this;
|
|
10388
10370
|
F(O(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
|
|
10389
10371
|
e.changeDefinitionList(i);
|
|
10390
|
-
}), this.on(
|
|
10372
|
+
}), this.on(fi, function(i) {
|
|
10391
10373
|
e.renderItemList(e.config.list, i.to);
|
|
10392
10374
|
}), this.player.definitionList.length < 2 && this.hide();
|
|
10393
10375
|
}
|
|
@@ -10467,7 +10449,7 @@ var Me = B.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10467
10449
|
});
|
|
10468
10450
|
}
|
|
10469
10451
|
}]), r;
|
|
10470
|
-
}(St),
|
|
10452
|
+
}(St), Da = /* @__PURE__ */ function(o) {
|
|
10471
10453
|
L(r, o);
|
|
10472
10454
|
var a = R(r);
|
|
10473
10455
|
function r(t) {
|
|
@@ -10489,7 +10471,7 @@ var Me = B.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10489
10471
|
key: "afterCreate",
|
|
10490
10472
|
value: function() {
|
|
10491
10473
|
var e = this;
|
|
10492
|
-
F(O(r.prototype), "afterCreate", this).call(this), this.on(
|
|
10474
|
+
F(O(r.prototype), "afterCreate", this).call(this), this.on(un, function() {
|
|
10493
10475
|
e.curValue !== e.player.playbackRate && e.renderItemList();
|
|
10494
10476
|
}), this.renderItemList();
|
|
10495
10477
|
}
|
|
@@ -10560,19 +10542,19 @@ var Me = B.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10560
10542
|
}
|
|
10561
10543
|
}]), r;
|
|
10562
10544
|
}(St);
|
|
10563
|
-
function
|
|
10545
|
+
function La() {
|
|
10564
10546
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10565
10547
|
<path fill="#fff" transform="scale(1.3, 1.3)" class='path_full' d="M9,10v1a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V9A.9.9,0,0,1,8,8h2a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm6,4V13a1,1,0,0,1,2,0v2a.9.9,0,0,1-1,1H14a1,1,0,0,1,0-2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
10566
10548
|
</svg>
|
|
10567
10549
|
`, "image/svg+xml").firstChild;
|
|
10568
10550
|
}
|
|
10569
|
-
function
|
|
10551
|
+
function Ra() {
|
|
10570
10552
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10571
10553
|
<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>
|
|
10572
10554
|
</svg>
|
|
10573
10555
|
`, "image/svg+xml").firstChild;
|
|
10574
10556
|
}
|
|
10575
|
-
var
|
|
10557
|
+
var Xi = /* @__PURE__ */ function(o) {
|
|
10576
10558
|
L(r, o);
|
|
10577
10559
|
var a = R(r);
|
|
10578
10560
|
function r() {
|
|
@@ -10626,11 +10608,11 @@ var qi = /* @__PURE__ */ function(o) {
|
|
|
10626
10608
|
value: function() {
|
|
10627
10609
|
return {
|
|
10628
10610
|
cssFullscreen: {
|
|
10629
|
-
icon:
|
|
10611
|
+
icon: La,
|
|
10630
10612
|
class: "xg-get-cssfull"
|
|
10631
10613
|
},
|
|
10632
10614
|
exitCssFullscreen: {
|
|
10633
|
-
icon:
|
|
10615
|
+
icon: Ra,
|
|
10634
10616
|
class: "xg-exit-cssfull"
|
|
10635
10617
|
}
|
|
10636
10618
|
};
|
|
@@ -10666,7 +10648,7 @@ var qi = /* @__PURE__ */ function(o) {
|
|
|
10666
10648
|
};
|
|
10667
10649
|
}
|
|
10668
10650
|
}]), r;
|
|
10669
|
-
}(We),
|
|
10651
|
+
}(We), Oa = /* @__PURE__ */ function(o) {
|
|
10670
10652
|
L(r, o);
|
|
10671
10653
|
var a = R(r);
|
|
10672
10654
|
function r() {
|
|
@@ -10727,7 +10709,7 @@ var qi = /* @__PURE__ */ function(o) {
|
|
|
10727
10709
|
return "error";
|
|
10728
10710
|
}
|
|
10729
10711
|
}]), r;
|
|
10730
|
-
}($),
|
|
10712
|
+
}($), Fa = /* @__PURE__ */ function(o) {
|
|
10731
10713
|
L(r, o);
|
|
10732
10714
|
var a = R(r);
|
|
10733
10715
|
function r() {
|
|
@@ -10805,7 +10787,7 @@ var qi = /* @__PURE__ */ function(o) {
|
|
|
10805
10787
|
};
|
|
10806
10788
|
}
|
|
10807
10789
|
}]), r;
|
|
10808
|
-
}($),
|
|
10790
|
+
}($), qi = {
|
|
10809
10791
|
time: 0,
|
|
10810
10792
|
text: "",
|
|
10811
10793
|
id: 1,
|
|
@@ -10815,12 +10797,12 @@ var qi = /* @__PURE__ */ function(o) {
|
|
|
10815
10797
|
width: 6,
|
|
10816
10798
|
height: 6
|
|
10817
10799
|
};
|
|
10818
|
-
function
|
|
10819
|
-
Object.keys(
|
|
10820
|
-
o[a] === void 0 && (o[a] =
|
|
10800
|
+
function Dn(o) {
|
|
10801
|
+
Object.keys(qi).map(function(a) {
|
|
10802
|
+
o[a] === void 0 && (o[a] = qi[a]);
|
|
10821
10803
|
});
|
|
10822
10804
|
}
|
|
10823
|
-
var
|
|
10805
|
+
var Zi = {
|
|
10824
10806
|
_updateDotDom: function(a, r) {
|
|
10825
10807
|
if (r) {
|
|
10826
10808
|
var t = this.calcuPosition(a.time, a.duration), e = a.style || {};
|
|
@@ -10837,7 +10819,7 @@ var Ji = {
|
|
|
10837
10819
|
},
|
|
10838
10820
|
createDot: function(a) {
|
|
10839
10821
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, t = this.player.plugins.progress;
|
|
10840
|
-
if (t && (r && (
|
|
10822
|
+
if (t && (r && (Dn(a), this._ispots.push(a)), !(!this.ispotsInit && r))) {
|
|
10841
10823
|
var e = this.calcuPosition(a.time, a.duration), i = a.style || {};
|
|
10842
10824
|
i.left = "".concat(e.left, "%"), i.width = "".concat(e.width, "%");
|
|
10843
10825
|
var n = "xgspot_".concat(a.id, " xgplayer-spot");
|
|
@@ -10957,14 +10939,14 @@ var Ji = {
|
|
|
10957
10939
|
return r.find('xg-spot[data-id="'.concat(a, '"]'));
|
|
10958
10940
|
}
|
|
10959
10941
|
};
|
|
10960
|
-
function
|
|
10942
|
+
function Ma(o) {
|
|
10961
10943
|
var a = o.config, r = o.player;
|
|
10962
|
-
Object.keys(
|
|
10963
|
-
o[e] =
|
|
10944
|
+
Object.keys(Zi).map(function(e) {
|
|
10945
|
+
o[e] = Zi[e].bind(o);
|
|
10964
10946
|
});
|
|
10965
10947
|
var t = r.config.progressDot || a.ispots || [];
|
|
10966
10948
|
o._ispots = t.map(function(e) {
|
|
10967
|
-
return
|
|
10949
|
+
return Dn(e), e;
|
|
10968
10950
|
}), o.ispotsInit = !1, o.playerSize = {
|
|
10969
10951
|
left: r.sizeInfo.left,
|
|
10970
10952
|
width: r.sizeInfo.width
|
|
@@ -10981,7 +10963,7 @@ var Xe = {
|
|
|
10981
10963
|
click: "onProgressClick",
|
|
10982
10964
|
mouseover: "onProgressMouseOver",
|
|
10983
10965
|
mouseenter: "onProgressMouseOver"
|
|
10984
|
-
},
|
|
10966
|
+
}, Na = /* @__PURE__ */ function(o) {
|
|
10985
10967
|
L(r, o);
|
|
10986
10968
|
var a = R(r);
|
|
10987
10969
|
function r(t) {
|
|
@@ -11032,7 +11014,7 @@ var Xe = {
|
|
|
11032
11014
|
n.seekTime && e.player.seek(n.seekTime);
|
|
11033
11015
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
11034
11016
|
e.setTimeContent(f.format(i));
|
|
11035
|
-
}),
|
|
11017
|
+
}), Ma(this), this.on(Re, function() {
|
|
11036
11018
|
e.show();
|
|
11037
11019
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
11038
11020
|
}
|
|
@@ -11256,7 +11238,7 @@ var Xe = {
|
|
|
11256
11238
|
};
|
|
11257
11239
|
}
|
|
11258
11240
|
}]), r;
|
|
11259
|
-
}($),
|
|
11241
|
+
}($), Ba = /* @__PURE__ */ function(o) {
|
|
11260
11242
|
L(r, o);
|
|
11261
11243
|
var a = R(r);
|
|
11262
11244
|
function r(t) {
|
|
@@ -11391,10 +11373,10 @@ var Xe = {
|
|
|
11391
11373
|
}
|
|
11392
11374
|
}]), r;
|
|
11393
11375
|
}($);
|
|
11394
|
-
function
|
|
11376
|
+
function Kt(o) {
|
|
11395
11377
|
return o ? "background:".concat(o, ";") : "";
|
|
11396
11378
|
}
|
|
11397
|
-
var
|
|
11379
|
+
var Ha = /* @__PURE__ */ function(o) {
|
|
11398
11380
|
L(r, o);
|
|
11399
11381
|
var a = R(r);
|
|
11400
11382
|
function r() {
|
|
@@ -11451,9 +11433,9 @@ var za = /* @__PURE__ */ function(o) {
|
|
|
11451
11433
|
var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
|
|
11452
11434
|
if (n) {
|
|
11453
11435
|
var s = this.config, l = s.mode, u = s.height, c = {
|
|
11454
|
-
cached:
|
|
11455
|
-
played:
|
|
11456
|
-
progress:
|
|
11436
|
+
cached: Kt(i.cachedColor),
|
|
11437
|
+
played: Kt(i.playedColor),
|
|
11438
|
+
progress: Kt(i.progressColor),
|
|
11457
11439
|
height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
|
|
11458
11440
|
}, h = l === "show" ? "xg-mini-progress-show" : "";
|
|
11459
11441
|
return '<xg-mini-progress class="xg-mini-progress '.concat(h, '" style="').concat(c.progress, " ").concat(c.height, `">
|
|
@@ -11482,14 +11464,14 @@ var za = /* @__PURE__ */ function(o) {
|
|
|
11482
11464
|
FRAME_RATE: "framerate",
|
|
11483
11465
|
POSTER: "poster"
|
|
11484
11466
|
};
|
|
11485
|
-
function
|
|
11467
|
+
function Ua() {
|
|
11486
11468
|
try {
|
|
11487
11469
|
return parseInt(window.performance.now(), 10);
|
|
11488
11470
|
} catch {
|
|
11489
11471
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
11490
11472
|
}
|
|
11491
11473
|
}
|
|
11492
|
-
function
|
|
11474
|
+
function za() {
|
|
11493
11475
|
try {
|
|
11494
11476
|
var o = document.createElement("canvas").getContext;
|
|
11495
11477
|
return !!o;
|
|
@@ -11497,7 +11479,7 @@ function ja() {
|
|
|
11497
11479
|
return !1;
|
|
11498
11480
|
}
|
|
11499
11481
|
}
|
|
11500
|
-
var dt = null,
|
|
11482
|
+
var dt = null, Va = /* @__PURE__ */ function(o) {
|
|
11501
11483
|
L(r, o);
|
|
11502
11484
|
var a = R(r);
|
|
11503
11485
|
function r() {
|
|
@@ -11518,7 +11500,7 @@ var dt = null, Wa = /* @__PURE__ */ function(o) {
|
|
|
11518
11500
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
11519
11501
|
}
|
|
11520
11502
|
}), y(v(t), "start", function(s, l) {
|
|
11521
|
-
var u = t.player.video, c =
|
|
11503
|
+
var u = t.player.video, c = Ua(), h = t.checkVideoIsSupport(u);
|
|
11522
11504
|
!h || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === qe.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(v(t), t.start, l) : f.requestAnimationFrame(t.start));
|
|
11523
11505
|
}), y(v(t), "stop", function() {
|
|
11524
11506
|
t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
@@ -11547,7 +11529,7 @@ var dt = null, Wa = /* @__PURE__ */ function(o) {
|
|
|
11547
11529
|
e._checkIfCanStart() && e.start(0, u);
|
|
11548
11530
|
}), this.on(et, function() {
|
|
11549
11531
|
e.stop();
|
|
11550
|
-
})), this.on(Ee, this.onLoadedData), this.on(
|
|
11532
|
+
})), this.on(Ee, this.onLoadedData), this.on(oi, function() {
|
|
11551
11533
|
e._isLoaded = !1, e.stop();
|
|
11552
11534
|
}), document.addEventListener("visibilitychange", this.onVisibilitychange)));
|
|
11553
11535
|
}
|
|
@@ -11691,7 +11673,7 @@ var dt = null, Wa = /* @__PURE__ */ function(o) {
|
|
|
11691
11673
|
}, {
|
|
11692
11674
|
key: "isSupport",
|
|
11693
11675
|
get: function() {
|
|
11694
|
-
return typeof dt == "boolean" || (dt =
|
|
11676
|
+
return typeof dt == "boolean" || (dt = za()), dt;
|
|
11695
11677
|
}
|
|
11696
11678
|
}, {
|
|
11697
11679
|
key: "supportCanvasFilter",
|
|
@@ -11699,7 +11681,7 @@ var dt = null, Wa = /* @__PURE__ */ function(o) {
|
|
|
11699
11681
|
return !(B.browser === "safari" || B.browser === "firefox");
|
|
11700
11682
|
}
|
|
11701
11683
|
}]), r;
|
|
11702
|
-
}($),
|
|
11684
|
+
}($), ja = {
|
|
11703
11685
|
LANG: "zh-cn",
|
|
11704
11686
|
TEXT: {
|
|
11705
11687
|
ERROR_TYPES: {
|
|
@@ -11774,7 +11756,7 @@ var dt = null, Wa = /* @__PURE__ */ function(o) {
|
|
|
11774
11756
|
FORWARD: "快进中",
|
|
11775
11757
|
LIVE_TIP: "直播"
|
|
11776
11758
|
}
|
|
11777
|
-
}, nt = "info",
|
|
11759
|
+
}, nt = "info", Yt = bn, Wa = /* @__PURE__ */ function(o) {
|
|
11778
11760
|
L(r, o);
|
|
11779
11761
|
var a = R(r);
|
|
11780
11762
|
function r() {
|
|
@@ -11813,7 +11795,7 @@ var dt = null, Wa = /* @__PURE__ */ function(o) {
|
|
|
11813
11795
|
}, {
|
|
11814
11796
|
key: "afterCreate",
|
|
11815
11797
|
value: function() {
|
|
11816
|
-
this.reset(), this.on(wt, this._recordUserActions), this.on(
|
|
11798
|
+
this.reset(), this.on(wt, this._recordUserActions), this.on(Yt.STATS_INFO, this._recordInfo), this.on(Yt.STATS_DOWNLOAD, this._downloadStats), this.on(Yt.STATS_RESET, this._onReset);
|
|
11817
11799
|
}
|
|
11818
11800
|
}, {
|
|
11819
11801
|
key: "destroy",
|
|
@@ -11918,7 +11900,7 @@ var dt = null, Wa = /* @__PURE__ */ function(o) {
|
|
|
11918
11900
|
return {};
|
|
11919
11901
|
}
|
|
11920
11902
|
}]), r;
|
|
11921
|
-
}(Le),
|
|
11903
|
+
}(Le), Ln = /* @__PURE__ */ function(o) {
|
|
11922
11904
|
L(r, o);
|
|
11923
11905
|
var a = R(r);
|
|
11924
11906
|
function r() {
|
|
@@ -12007,8 +11989,8 @@ var dt = null, Wa = /* @__PURE__ */ function(o) {
|
|
|
12007
11989
|
}
|
|
12008
11990
|
}]), r;
|
|
12009
11991
|
}($);
|
|
12010
|
-
|
|
12011
|
-
var
|
|
11992
|
+
Ln.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
11993
|
+
var Ga = /* @__PURE__ */ function(o) {
|
|
12012
11994
|
L(r, o);
|
|
12013
11995
|
var a = R(r);
|
|
12014
11996
|
function r() {
|
|
@@ -12032,7 +12014,7 @@ var Ka = /* @__PURE__ */ function(o) {
|
|
|
12032
12014
|
key: "afterCreate",
|
|
12033
12015
|
value: function() {
|
|
12034
12016
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
12035
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(ut, this.onWaiting), this.on([
|
|
12017
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(ut, this.onWaiting), this.on([si, be], function() {
|
|
12036
12018
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
12037
12019
|
}), this.on(de, function() {
|
|
12038
12020
|
e.hasPlayed = !0;
|
|
@@ -12054,7 +12036,7 @@ var Ka = /* @__PURE__ */ function(o) {
|
|
|
12054
12036
|
};
|
|
12055
12037
|
}
|
|
12056
12038
|
}]), r;
|
|
12057
|
-
}($), Ze = "cdn", gt = ["cdn"],
|
|
12039
|
+
}($), Ze = "cdn", gt = ["cdn"], $a = /* @__PURE__ */ function(o) {
|
|
12058
12040
|
L(r, o);
|
|
12059
12041
|
var a = R(r);
|
|
12060
12042
|
function r() {
|
|
@@ -12113,13 +12095,13 @@ var Ka = /* @__PURE__ */ function(o) {
|
|
|
12113
12095
|
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ze, l = t.getSpeed(s), u = v(t), c = u.player;
|
|
12114
12096
|
if (c)
|
|
12115
12097
|
if (s === Ze)
|
|
12116
|
-
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(
|
|
12098
|
+
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(Qt, {
|
|
12117
12099
|
speed: l,
|
|
12118
12100
|
realTimeSpeed: c.realTimeSpeed
|
|
12119
12101
|
}));
|
|
12120
12102
|
else {
|
|
12121
12103
|
var h = t.getSpeedName("avg", s);
|
|
12122
|
-
(!c[h] || l !== c[h]) && (c[h] = l, c.emit(
|
|
12104
|
+
(!c[h] || l !== c[h]) && (c[h] = l, c.emit(Qt, {
|
|
12123
12105
|
speed: l,
|
|
12124
12106
|
realTimeSpeed: c.realTimeSpeed
|
|
12125
12107
|
}));
|
|
@@ -12180,7 +12162,7 @@ var Ka = /* @__PURE__ */ function(o) {
|
|
|
12180
12162
|
};
|
|
12181
12163
|
}
|
|
12182
12164
|
}]), r;
|
|
12183
|
-
}($),
|
|
12165
|
+
}($), Ka = /* @__PURE__ */ function(o) {
|
|
12184
12166
|
L(r, o);
|
|
12185
12167
|
var a = R(r);
|
|
12186
12168
|
function r() {
|
|
@@ -12247,7 +12229,7 @@ var Ka = /* @__PURE__ */ function(o) {
|
|
|
12247
12229
|
totalVideoFrames: i,
|
|
12248
12230
|
droppedVideoFrames: n,
|
|
12249
12231
|
checkInterval: s
|
|
12250
|
-
}), this._currentStuckCount >= this.config.stuckCount && (this.emit(
|
|
12232
|
+
}), this._currentStuckCount >= this.config.stuckCount && (this.emit(Tn, this._payload), this._reset())) : this._reset());
|
|
12251
12233
|
}
|
|
12252
12234
|
}
|
|
12253
12235
|
}, {
|
|
@@ -12290,24 +12272,24 @@ var Ka = /* @__PURE__ */ function(o) {
|
|
|
12290
12272
|
}
|
|
12291
12273
|
}]), r;
|
|
12292
12274
|
}($);
|
|
12293
|
-
Je.use(
|
|
12294
|
-
var
|
|
12275
|
+
Je.use(ja);
|
|
12276
|
+
var Ya = /* @__PURE__ */ P(function o(a, r) {
|
|
12295
12277
|
var t, e, i;
|
|
12296
12278
|
I(this, o);
|
|
12297
|
-
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [
|
|
12298
|
-
this.plugins = [
|
|
12279
|
+
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [fa, na, Ha, Na, ca], u = [].concat(l, [ra, ua, ma, wa, Pa, Da, Sa, Aa, pa, ka]), c = [No, Bo, Uo, ea, zo, Oa, Fa, Ba, Go];
|
|
12280
|
+
this.plugins = [Wa, Fo].concat(ve(u), c, [Ln, Ga]);
|
|
12299
12281
|
var h = n ? "mobile" : B.device;
|
|
12300
12282
|
switch (h) {
|
|
12301
12283
|
case "pc":
|
|
12302
|
-
(t = this.plugins).push.apply(t, [
|
|
12284
|
+
(t = this.plugins).push.apply(t, [Ki, Gt, Xi, $a, Ka]);
|
|
12303
12285
|
break;
|
|
12304
12286
|
case "mobile":
|
|
12305
|
-
(e = this.plugins).push.apply(e, [
|
|
12287
|
+
(e = this.plugins).push.apply(e, [Zo]);
|
|
12306
12288
|
break;
|
|
12307
12289
|
default:
|
|
12308
|
-
(i = this.plugins).push.apply(i, [
|
|
12290
|
+
(i = this.plugins).push.apply(i, [Ki, Gt, Xi]);
|
|
12309
12291
|
}
|
|
12310
|
-
(B.os.isIpad || h === "pc") && this.plugins.push(
|
|
12292
|
+
(B.os.isIpad || h === "pc") && this.plugins.push(Va), B.os.isIpad && this.plugins.push(Gt), this.ignores = [], this.i18n = [];
|
|
12311
12293
|
}), me = /* @__PURE__ */ function(o) {
|
|
12312
12294
|
L(r, o);
|
|
12313
12295
|
var a = R(r);
|
|
@@ -12316,17 +12298,17 @@ var qa = /* @__PURE__ */ P(function o(a, r) {
|
|
|
12316
12298
|
}
|
|
12317
12299
|
return P(r);
|
|
12318
12300
|
}(Lt);
|
|
12319
|
-
y(me, "defaultPreset",
|
|
12301
|
+
y(me, "defaultPreset", Ya);
|
|
12320
12302
|
y(me, "Util", f);
|
|
12321
12303
|
y(me, "Sniffer", B);
|
|
12322
12304
|
y(me, "Errors", mt);
|
|
12323
|
-
y(me, "Events",
|
|
12305
|
+
y(me, "Events", lo);
|
|
12324
12306
|
y(me, "Plugin", $);
|
|
12325
12307
|
y(me, "BasePlugin", Le);
|
|
12326
12308
|
y(me, "I18N", Je);
|
|
12327
12309
|
y(me, "STATE_CLASS", k);
|
|
12328
|
-
y(me, "InstManager",
|
|
12329
|
-
const
|
|
12310
|
+
y(me, "InstManager", xn);
|
|
12311
|
+
const Xa = ["id"], qa = /* @__PURE__ */ ne({
|
|
12330
12312
|
name: "ElImageViewer",
|
|
12331
12313
|
__name: "Player",
|
|
12332
12314
|
props: /* @__PURE__ */ Qe({
|
|
@@ -12355,7 +12337,7 @@ const Za = ["id"], Ja = /* @__PURE__ */ ne({
|
|
|
12355
12337
|
}, ["update:modelValue"]),
|
|
12356
12338
|
setup(o, { emit: a }) {
|
|
12357
12339
|
let r = null;
|
|
12358
|
-
const t = o, { cLoadUrl: e } =
|
|
12340
|
+
const t = o, { cLoadUrl: e } = tn(t), i = ue(() => vt(e.value, t.url)), n = {
|
|
12359
12341
|
width: "100%",
|
|
12360
12342
|
height: "100%",
|
|
12361
12343
|
// 是否自动播放
|
|
@@ -12376,11 +12358,11 @@ const Za = ["id"], Ja = /* @__PURE__ */ ne({
|
|
|
12376
12358
|
}, s = ue(() => ({
|
|
12377
12359
|
...n,
|
|
12378
12360
|
...t.config
|
|
12379
|
-
})), l = a, u = At(o, "modelValue"), c =
|
|
12361
|
+
})), l = a, u = At(o, "modelValue"), c = en(), h = Vn("image-viewer");
|
|
12380
12362
|
function d() {
|
|
12381
12363
|
l("close"), u.value = !1, r.destroy();
|
|
12382
12364
|
}
|
|
12383
|
-
return
|
|
12365
|
+
return Ji(() => u.value, (g) => {
|
|
12384
12366
|
g && pt(() => {
|
|
12385
12367
|
r = new me({
|
|
12386
12368
|
id: c,
|
|
@@ -12390,11 +12372,11 @@ const Za = ["id"], Ja = /* @__PURE__ */ ne({
|
|
|
12390
12372
|
});
|
|
12391
12373
|
}), (g, p) => {
|
|
12392
12374
|
const m = st("el-icon");
|
|
12393
|
-
return u.value ? (E(), ee(
|
|
12375
|
+
return u.value ? (E(), ee(Fn, {
|
|
12394
12376
|
key: 0,
|
|
12395
12377
|
to: "body"
|
|
12396
12378
|
}, [
|
|
12397
|
-
|
|
12379
|
+
Y(Mn, {
|
|
12398
12380
|
name: "viewer-fade",
|
|
12399
12381
|
appear: ""
|
|
12400
12382
|
}, {
|
|
@@ -12404,14 +12386,14 @@ const Za = ["id"], Ja = /* @__PURE__ */ ne({
|
|
|
12404
12386
|
{
|
|
12405
12387
|
ref: "wrapper",
|
|
12406
12388
|
tabindex: -1,
|
|
12407
|
-
class:
|
|
12389
|
+
class: ge(T(h).e("wrapper")),
|
|
12408
12390
|
style: Ie({ zIndex: o.zIndex })
|
|
12409
12391
|
},
|
|
12410
12392
|
[
|
|
12411
12393
|
A(
|
|
12412
12394
|
"div",
|
|
12413
12395
|
{
|
|
12414
|
-
class:
|
|
12396
|
+
class: ge(T(h).e("mask"))
|
|
12415
12397
|
},
|
|
12416
12398
|
null,
|
|
12417
12399
|
2
|
|
@@ -12421,21 +12403,21 @@ const Za = ["id"], Ja = /* @__PURE__ */ ne({
|
|
|
12421
12403
|
A(
|
|
12422
12404
|
"div",
|
|
12423
12405
|
{
|
|
12424
|
-
class:
|
|
12406
|
+
class: ge(T(h).e("canvas"))
|
|
12425
12407
|
},
|
|
12426
12408
|
[
|
|
12427
|
-
A("div", { id: T(c) }, null, 8,
|
|
12409
|
+
A("div", { id: T(c) }, null, 8, Xa),
|
|
12428
12410
|
Z(" CLOSE "),
|
|
12429
12411
|
A(
|
|
12430
12412
|
"span",
|
|
12431
12413
|
{
|
|
12432
|
-
class:
|
|
12414
|
+
class: ge([T(h).e("btn"), T(h).e("close")]),
|
|
12433
12415
|
onClick: d
|
|
12434
12416
|
},
|
|
12435
12417
|
[
|
|
12436
|
-
|
|
12418
|
+
Y(m, { onClick: d }, {
|
|
12437
12419
|
default: q(() => [
|
|
12438
|
-
|
|
12420
|
+
Y(T(Yn))
|
|
12439
12421
|
]),
|
|
12440
12422
|
_: 1
|
|
12441
12423
|
/* STABLE */
|
|
@@ -12461,22 +12443,22 @@ const Za = ["id"], Ja = /* @__PURE__ */ ne({
|
|
|
12461
12443
|
};
|
|
12462
12444
|
}
|
|
12463
12445
|
});
|
|
12464
|
-
const
|
|
12446
|
+
const Za = /* @__PURE__ */ at(qa, [["__scopeId", "data-v-b301aa7d"]]), Ja = ze(Za), Qa = (o) => (Un("data-v-8973743d"), o = o(), zn(), o), el = { class: "ik-flie-list" }, tl = { class: "name" }, il = { key: 1 }, nl = ["src"], rl = { class: "file-icon" }, sl = { class: "file-name-loading" }, ol = { class: "file-name" }, al = { key: 0 }, ll = {
|
|
12465
12447
|
key: 0,
|
|
12466
12448
|
class: "file-size"
|
|
12467
|
-
},
|
|
12449
|
+
}, ul = { class: "name" }, cl = { class: "file-name-loading" }, fl = { class: "file-name" }, hl = { class: "file-size" }, dl = { class: "operate-btn" }, gl = { class: "card" }, pl = { class: "title" }, vl = /* @__PURE__ */ Qa(() => /* @__PURE__ */ A(
|
|
12468
12450
|
"img",
|
|
12469
12451
|
{
|
|
12470
|
-
src:
|
|
12452
|
+
src: $n,
|
|
12471
12453
|
class: "w-[48px] h-[48px]"
|
|
12472
12454
|
},
|
|
12473
12455
|
null,
|
|
12474
12456
|
-1
|
|
12475
12457
|
/* HOISTED */
|
|
12476
|
-
)),
|
|
12458
|
+
)), ml = { class: "ik-flie-list" }, yl = { class: "name" }, _l = { key: 1 }, kl = ["src"], Cl = { class: "file-icon" }, wl = { class: "file-name-loading" }, bl = { class: "file-name" }, Tl = { key: 0 }, El = {
|
|
12477
12459
|
key: 0,
|
|
12478
12460
|
class: "file-size"
|
|
12479
|
-
},
|
|
12461
|
+
}, Sl = { key: 0 }, Al = /* @__PURE__ */ ne({
|
|
12480
12462
|
__name: "index",
|
|
12481
12463
|
props: /* @__PURE__ */ Qe({
|
|
12482
12464
|
// 显示图标
|
|
@@ -12628,19 +12610,19 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12628
12610
|
size: "size"
|
|
12629
12611
|
},
|
|
12630
12612
|
...r.defaultFileds
|
|
12631
|
-
}, { cLoadUrl: s, cUploadUrl: l, cOnlyofficeConfig: u } =
|
|
12613
|
+
}, { cLoadUrl: s, cUploadUrl: l, cOnlyofficeConfig: u } = tn(r), c = ue(() => r.size), h = Pe(null), d = Pe([]), g = Pe({}), p = Pe(!1), m = (x) => {
|
|
12632
12614
|
const N = x.size / 1024 / 1024;
|
|
12633
|
-
return N < c.value ? !0 : (t("outSize"),
|
|
12615
|
+
return N < c.value ? !0 : (t("outSize"), Rt({
|
|
12634
12616
|
message: `上传文件大小(${N.toFixed(4)}MB)超出允许最大值(${r.size}MB),请重新选择`,
|
|
12635
12617
|
type: "warning",
|
|
12636
12618
|
showClose: !0,
|
|
12637
12619
|
duration: 5e3
|
|
12638
12620
|
}), !1);
|
|
12639
12621
|
}, _ = (x, N) => {
|
|
12640
|
-
var
|
|
12622
|
+
var K;
|
|
12641
12623
|
x.size / 1024 / 1024 < c.value || pt(() => {
|
|
12642
12624
|
e.value.pop();
|
|
12643
|
-
}), r.accept !== "*" && !r.accept.split(",").includes((
|
|
12625
|
+
}), r.accept !== "*" && !r.accept.split(",").includes((K = x == null ? void 0 : x.raw) == null ? void 0 : K.type) && !r.accept.split(",").includes(`.${x.name.split(".").pop()}`) && (Rt({
|
|
12644
12626
|
message: `不允许的上传文件格式(${x.name}),请重新选择`,
|
|
12645
12627
|
type: "warning",
|
|
12646
12628
|
showClose: !0,
|
|
@@ -12654,10 +12636,10 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12654
12636
|
}, w = (x, N) => {
|
|
12655
12637
|
var tt, ct;
|
|
12656
12638
|
const G = e.value.length, S = r.limit - G;
|
|
12657
|
-
let
|
|
12658
|
-
for (;
|
|
12659
|
-
(tt = h.value) == null || tt.handleStart(x[
|
|
12660
|
-
|
|
12639
|
+
let K = 0;
|
|
12640
|
+
for (; K < S && K < x.length; )
|
|
12641
|
+
(tt = h.value) == null || tt.handleStart(x[K]), (ct = h.value) == null || ct.submit(), K++;
|
|
12642
|
+
Rt({
|
|
12661
12643
|
message: (r == null ? void 0 : r.limitText) || `最大可上传${r.limit}个文件,已忽略超出文件`,
|
|
12662
12644
|
type: "warning",
|
|
12663
12645
|
showClose: !0,
|
|
@@ -12678,7 +12660,7 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12678
12660
|
)
|
|
12679
12661
|
}, p.value = !0;
|
|
12680
12662
|
}, M = (x) => {
|
|
12681
|
-
|
|
12663
|
+
Gn.downloadByOnlineUrl(
|
|
12682
12664
|
x[n.url],
|
|
12683
12665
|
x[n.name]
|
|
12684
12666
|
);
|
|
@@ -12690,7 +12672,7 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12690
12672
|
try {
|
|
12691
12673
|
x.status !== "success" && re(x), (N = h.value) == null || N.handleRemove(x), e.value = e.value.filter((S) => S.uid !== x.uid), t("delete", x);
|
|
12692
12674
|
} catch (S) {
|
|
12693
|
-
(G = h.value) == null || G.handleRemove(x), e.value = e.value.filter((
|
|
12675
|
+
(G = h.value) == null || G.handleRemove(x), e.value = e.value.filter((K) => K.uid !== x.uid), t("delete", x), console.error(S);
|
|
12694
12676
|
}
|
|
12695
12677
|
}, z = (x, N) => {
|
|
12696
12678
|
d.value.splice(N, 1);
|
|
@@ -12707,7 +12689,7 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12707
12689
|
Ne,
|
|
12708
12690
|
{ key: 0 },
|
|
12709
12691
|
[
|
|
12710
|
-
o.type === "button" ? (E(), ee(T(
|
|
12692
|
+
o.type === "button" ? (E(), ee(T(vi), Xt({
|
|
12711
12693
|
key: 0,
|
|
12712
12694
|
class: "ik-file-upload"
|
|
12713
12695
|
}, x.$attrs, {
|
|
@@ -12728,10 +12710,10 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12728
12710
|
"on-error": H
|
|
12729
12711
|
}), {
|
|
12730
12712
|
trigger: q(() => [
|
|
12731
|
-
x.$slots.trigger ? we(x.$slots, "trigger", { key: 0 }, void 0, !0) : (E(), ee(T(
|
|
12713
|
+
x.$slots.trigger ? we(x.$slots, "trigger", { key: 0 }, void 0, !0) : (E(), ee(T(jn), {
|
|
12732
12714
|
key: 1,
|
|
12733
12715
|
disabled: ie.value
|
|
12734
|
-
},
|
|
12716
|
+
}, Qi({
|
|
12735
12717
|
default: q(() => [
|
|
12736
12718
|
He(
|
|
12737
12719
|
" " + ce(o.title),
|
|
@@ -12745,7 +12727,7 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12745
12727
|
o.showIcon ? {
|
|
12746
12728
|
name: "icon",
|
|
12747
12729
|
fn: q(() => [
|
|
12748
|
-
|
|
12730
|
+
Y(T(pe), {
|
|
12749
12731
|
name: "iksvg_daoru",
|
|
12750
12732
|
disabled: ie.value
|
|
12751
12733
|
}, null, 8, ["disabled"])
|
|
@@ -12755,22 +12737,22 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12755
12737
|
]), 1032, ["disabled"]))
|
|
12756
12738
|
]),
|
|
12757
12739
|
file: q(({ file: S }) => [
|
|
12758
|
-
A("div",
|
|
12759
|
-
A("div",
|
|
12760
|
-
!x.$slots.fileIcon && (!o.customIconData[T(te)(S, n)] || !o.customIconData[T(te)(S, n)][o.customIconFields.icon]) ? (E(), ee(T(
|
|
12740
|
+
A("div", el, [
|
|
12741
|
+
A("div", tl, [
|
|
12742
|
+
!x.$slots.fileIcon && (!o.customIconData[T(te)(S, n)] || !o.customIconData[T(te)(S, n)][o.customIconFields.icon]) ? (E(), ee(T(Ci), {
|
|
12761
12743
|
key: 0,
|
|
12762
12744
|
type: T(te)(S, n)
|
|
12763
|
-
}, null, 8, ["type"])) : !x.$slots.fileIcon && o.customIconData[T(te)(S, n)] && o.customIconData[T(te)(S, n)][o.customIconFields.icon] ? (E(), D("div",
|
|
12745
|
+
}, null, 8, ["type"])) : !x.$slots.fileIcon && o.customIconData[T(te)(S, n)] && o.customIconData[T(te)(S, n)][o.customIconFields.icon] ? (E(), D("div", il, [
|
|
12764
12746
|
o.customIconData[T(te)(S, n)][o.customIconFields.type] === "img" ? (E(), D("img", {
|
|
12765
12747
|
key: 0,
|
|
12766
12748
|
src: o.customIconData[T(te)(S, n)][o.customIconFields.icon],
|
|
12767
12749
|
alt: "",
|
|
12768
12750
|
class: "file-img-icon"
|
|
12769
|
-
}, null, 8,
|
|
12751
|
+
}, null, 8, nl)) : (E(), D(
|
|
12770
12752
|
"span",
|
|
12771
12753
|
{
|
|
12772
12754
|
key: 1,
|
|
12773
|
-
class:
|
|
12755
|
+
class: ge([
|
|
12774
12756
|
o.customIconData[T(te)(S, n)][o.customIconFields.icon],
|
|
12775
12757
|
"file-icon-size"
|
|
12776
12758
|
])
|
|
@@ -12780,11 +12762,11 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12780
12762
|
/* CLASS */
|
|
12781
12763
|
))
|
|
12782
12764
|
])) : Z("v-if", !0),
|
|
12783
|
-
A("div",
|
|
12765
|
+
A("div", rl, [
|
|
12784
12766
|
we(x.$slots, "fileIcon", { file: S }, void 0, !0)
|
|
12785
12767
|
]),
|
|
12786
|
-
A("div",
|
|
12787
|
-
A("p",
|
|
12768
|
+
A("div", sl, [
|
|
12769
|
+
A("p", ol, [
|
|
12788
12770
|
He(
|
|
12789
12771
|
ce(S[n.name] || S.name) + " ",
|
|
12790
12772
|
1
|
|
@@ -12792,7 +12774,7 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12792
12774
|
),
|
|
12793
12775
|
S.percentage && S.status === "uploading" ? (E(), D(
|
|
12794
12776
|
"span",
|
|
12795
|
-
|
|
12777
|
+
al,
|
|
12796
12778
|
"(" + ce(S.percentage) + "%)",
|
|
12797
12779
|
1
|
|
12798
12780
|
/* TEXT */
|
|
@@ -12800,12 +12782,12 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12800
12782
|
]),
|
|
12801
12783
|
S.status === "success" ? (E(), D(
|
|
12802
12784
|
"p",
|
|
12803
|
-
|
|
12804
|
-
ce(T(
|
|
12785
|
+
ll,
|
|
12786
|
+
ce(T(Ot)(S.size / 1024 / 1024)) + "MB ",
|
|
12805
12787
|
1
|
|
12806
12788
|
/* TEXT */
|
|
12807
12789
|
)) : Z("v-if", !0),
|
|
12808
|
-
S.percentage && S.status === "uploading" ? (E(), ee(T(
|
|
12790
|
+
S.percentage && S.status === "uploading" ? (E(), ee(T(mi), {
|
|
12809
12791
|
key: 1,
|
|
12810
12792
|
"text-inside": "",
|
|
12811
12793
|
percentage: S.percentage,
|
|
@@ -12819,15 +12801,15 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12819
12801
|
Ne,
|
|
12820
12802
|
{ key: 0 },
|
|
12821
12803
|
[
|
|
12822
|
-
|
|
12823
|
-
onClick: (
|
|
12804
|
+
Y(T(pe), {
|
|
12805
|
+
onClick: (K) => W(S),
|
|
12824
12806
|
name: "iksvg_yulan",
|
|
12825
12807
|
title: "预览",
|
|
12826
12808
|
bg: "",
|
|
12827
12809
|
size: "default"
|
|
12828
12810
|
}, null, 8, ["onClick"]),
|
|
12829
|
-
|
|
12830
|
-
onClick: (
|
|
12811
|
+
Y(T(pe), {
|
|
12812
|
+
onClick: (K) => J(S),
|
|
12831
12813
|
error: "",
|
|
12832
12814
|
name: "iksvg_shanchu",
|
|
12833
12815
|
title: "删除",
|
|
@@ -12837,9 +12819,9 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12837
12819
|
],
|
|
12838
12820
|
64
|
|
12839
12821
|
/* STABLE_FRAGMENT */
|
|
12840
|
-
)) : (E(), ee(T(
|
|
12822
|
+
)) : (E(), ee(T(pe), {
|
|
12841
12823
|
key: 1,
|
|
12842
|
-
onClick: (
|
|
12824
|
+
onClick: (K) => J(S),
|
|
12843
12825
|
error: "",
|
|
12844
12826
|
name: "iksvg_guanbi",
|
|
12845
12827
|
size: "default",
|
|
@@ -12852,19 +12834,19 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12852
12834
|
default: q(() => {
|
|
12853
12835
|
var S;
|
|
12854
12836
|
return [
|
|
12855
|
-
!o.preview && o.tip ? (E(), ee(T(
|
|
12837
|
+
!o.preview && o.tip ? (E(), ee(T(yi), {
|
|
12856
12838
|
key: 0,
|
|
12857
12839
|
effect: "dark",
|
|
12858
12840
|
content: r.tipText || "",
|
|
12859
12841
|
"popper-class": "_ik_web_ui_file-help-tooltip"
|
|
12860
12842
|
}, {
|
|
12861
12843
|
default: q(() => [
|
|
12862
|
-
|
|
12844
|
+
Y(T(Fe), {
|
|
12863
12845
|
size: 23,
|
|
12864
12846
|
class: "_ik_web_ui_file_help_icon"
|
|
12865
12847
|
}, {
|
|
12866
12848
|
default: q(() => [
|
|
12867
|
-
|
|
12849
|
+
Y(T(_i))
|
|
12868
12850
|
]),
|
|
12869
12851
|
_: 1
|
|
12870
12852
|
/* STABLE */
|
|
@@ -12876,62 +12858,62 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12876
12858
|
(S = d.value) != null && S.length ? (E(!0), D(
|
|
12877
12859
|
Ne,
|
|
12878
12860
|
{ key: 1 },
|
|
12879
|
-
|
|
12861
|
+
Nn(d.value, (K, tt) => (E(), D("div", {
|
|
12880
12862
|
class: "ik-error-flie-list",
|
|
12881
|
-
key:
|
|
12863
|
+
key: K.uid
|
|
12882
12864
|
}, [
|
|
12883
|
-
A("div",
|
|
12884
|
-
|
|
12865
|
+
A("div", ul, [
|
|
12866
|
+
Y(T(Fe), {
|
|
12885
12867
|
size: 32,
|
|
12886
12868
|
class: "info",
|
|
12887
12869
|
style: { "vertical-align": "middle" }
|
|
12888
12870
|
}, {
|
|
12889
12871
|
default: q(() => [
|
|
12890
|
-
|
|
12872
|
+
Y(T(sr))
|
|
12891
12873
|
]),
|
|
12892
12874
|
_: 1
|
|
12893
12875
|
/* STABLE */
|
|
12894
12876
|
}),
|
|
12895
|
-
A("div",
|
|
12877
|
+
A("div", cl, [
|
|
12896
12878
|
A(
|
|
12897
12879
|
"p",
|
|
12898
|
-
|
|
12899
|
-
ce(
|
|
12880
|
+
fl,
|
|
12881
|
+
ce(K[n.name] || K.name),
|
|
12900
12882
|
1
|
|
12901
12883
|
/* TEXT */
|
|
12902
12884
|
),
|
|
12903
12885
|
A(
|
|
12904
12886
|
"p",
|
|
12905
|
-
|
|
12906
|
-
ce(T(
|
|
12887
|
+
hl,
|
|
12888
|
+
ce(T(Ot)(K.size / 1024 / 1024)) + "MB ",
|
|
12907
12889
|
1
|
|
12908
12890
|
/* TEXT */
|
|
12909
12891
|
)
|
|
12910
12892
|
])
|
|
12911
12893
|
]),
|
|
12912
|
-
|
|
12894
|
+
Bn(A(
|
|
12913
12895
|
"div",
|
|
12914
|
-
|
|
12896
|
+
dl,
|
|
12915
12897
|
[
|
|
12916
|
-
|
|
12898
|
+
Y(T(Fe), {
|
|
12917
12899
|
style: { "vertical-align": "middle" },
|
|
12918
|
-
onClick: (ct) => b(
|
|
12900
|
+
onClick: (ct) => b(K, tt),
|
|
12919
12901
|
title: "重新上传",
|
|
12920
12902
|
class: "primary"
|
|
12921
12903
|
}, {
|
|
12922
12904
|
default: q(() => [
|
|
12923
|
-
|
|
12905
|
+
Y(T(tr))
|
|
12924
12906
|
]),
|
|
12925
12907
|
_: 2
|
|
12926
12908
|
/* DYNAMIC */
|
|
12927
12909
|
}, 1032, ["onClick"]),
|
|
12928
|
-
|
|
12910
|
+
Y(T(Fe), {
|
|
12929
12911
|
class: "error",
|
|
12930
|
-
onClick: (ct) => z(
|
|
12912
|
+
onClick: (ct) => z(K, tt),
|
|
12931
12913
|
title: "删除"
|
|
12932
12914
|
}, {
|
|
12933
12915
|
default: q(() => [
|
|
12934
|
-
|
|
12916
|
+
Y(T(qn))
|
|
12935
12917
|
]),
|
|
12936
12918
|
_: 2
|
|
12937
12919
|
/* DYNAMIC */
|
|
@@ -12940,7 +12922,7 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12940
12922
|
512
|
|
12941
12923
|
/* NEED_PATCH */
|
|
12942
12924
|
), [
|
|
12943
|
-
[
|
|
12925
|
+
[Hn, (K == null ? void 0 : K.status) === "fail"]
|
|
12944
12926
|
])
|
|
12945
12927
|
]))),
|
|
12946
12928
|
128
|
|
@@ -12950,7 +12932,7 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12950
12932
|
}),
|
|
12951
12933
|
_: 3
|
|
12952
12934
|
/* FORWARDED */
|
|
12953
|
-
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (E(), ee(T(
|
|
12935
|
+
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (E(), ee(T(vi), Xt({
|
|
12954
12936
|
key: 1,
|
|
12955
12937
|
"file-list": e.value,
|
|
12956
12938
|
"onUpdate:fileList": N[1] || (N[1] = (S) => e.value = S),
|
|
@@ -12972,22 +12954,22 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12972
12954
|
"on-change": _
|
|
12973
12955
|
}), {
|
|
12974
12956
|
file: q(({ file: S }) => [
|
|
12975
|
-
A("div",
|
|
12976
|
-
A("div",
|
|
12977
|
-
!x.$slots.fileIcon && (!o.customIconData[T(te)(S, n)] || !o.customIconData[T(te)(S, n)][o.customIconFields.icon]) ? (E(), ee(T(
|
|
12957
|
+
A("div", ml, [
|
|
12958
|
+
A("div", yl, [
|
|
12959
|
+
!x.$slots.fileIcon && (!o.customIconData[T(te)(S, n)] || !o.customIconData[T(te)(S, n)][o.customIconFields.icon]) ? (E(), ee(T(Ci), {
|
|
12978
12960
|
key: 0,
|
|
12979
12961
|
type: T(te)(S, n)
|
|
12980
|
-
}, null, 8, ["type"])) : !x.$slots.fileIcon && o.customIconData[T(te)(S, n)] && o.customIconData[T(te)(S, n)][o.customIconFields.icon] ? (E(), D("div",
|
|
12962
|
+
}, null, 8, ["type"])) : !x.$slots.fileIcon && o.customIconData[T(te)(S, n)] && o.customIconData[T(te)(S, n)][o.customIconFields.icon] ? (E(), D("div", _l, [
|
|
12981
12963
|
o.customIconData[T(te)(S, n)][o.customIconFields.type] === "img" ? (E(), D("img", {
|
|
12982
12964
|
key: 0,
|
|
12983
12965
|
src: o.customIconData[T(te)(S, n)][o.customIconFields.icon],
|
|
12984
12966
|
alt: "",
|
|
12985
12967
|
class: "file-img-icon"
|
|
12986
|
-
}, null, 8,
|
|
12968
|
+
}, null, 8, kl)) : (E(), D(
|
|
12987
12969
|
"span",
|
|
12988
12970
|
{
|
|
12989
12971
|
key: 1,
|
|
12990
|
-
class:
|
|
12972
|
+
class: ge([
|
|
12991
12973
|
o.customIconData[T(te)(S, n)][o.customIconFields.icon],
|
|
12992
12974
|
"file-icon-size"
|
|
12993
12975
|
])
|
|
@@ -12997,11 +12979,11 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
12997
12979
|
/* CLASS */
|
|
12998
12980
|
))
|
|
12999
12981
|
])) : Z("v-if", !0),
|
|
13000
|
-
A("div",
|
|
12982
|
+
A("div", Cl, [
|
|
13001
12983
|
we(x.$slots, "fileIcon", { file: S }, void 0, !0)
|
|
13002
12984
|
]),
|
|
13003
|
-
A("div",
|
|
13004
|
-
A("p",
|
|
12985
|
+
A("div", wl, [
|
|
12986
|
+
A("p", bl, [
|
|
13005
12987
|
He(
|
|
13006
12988
|
ce(S[n.name] || S.name) + " ",
|
|
13007
12989
|
1
|
|
@@ -13009,7 +12991,7 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
13009
12991
|
),
|
|
13010
12992
|
S.percentage && S.status === "uploading" ? (E(), D(
|
|
13011
12993
|
"span",
|
|
13012
|
-
|
|
12994
|
+
Tl,
|
|
13013
12995
|
"(" + ce(S.percentage) + "%)",
|
|
13014
12996
|
1
|
|
13015
12997
|
/* TEXT */
|
|
@@ -13017,12 +12999,12 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
13017
12999
|
]),
|
|
13018
13000
|
S.status === "success" ? (E(), D(
|
|
13019
13001
|
"p",
|
|
13020
|
-
|
|
13021
|
-
ce(T(
|
|
13002
|
+
El,
|
|
13003
|
+
ce(T(Ot)(S.size / 1024 / 1024)) + "MB ",
|
|
13022
13004
|
1
|
|
13023
13005
|
/* TEXT */
|
|
13024
13006
|
)) : Z("v-if", !0),
|
|
13025
|
-
S.percentage && S.status === "uploading" ? (E(), ee(T(
|
|
13007
|
+
S.percentage && S.status === "uploading" ? (E(), ee(T(mi), {
|
|
13026
13008
|
key: 1,
|
|
13027
13009
|
"text-inside": "",
|
|
13028
13010
|
percentage: S.percentage,
|
|
@@ -13044,8 +13026,8 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
13044
13026
|
},
|
|
13045
13027
|
{
|
|
13046
13028
|
default: q(() => [
|
|
13047
|
-
|
|
13048
|
-
onClick: (
|
|
13029
|
+
Y(T(nr), {
|
|
13030
|
+
onClick: (K) => W(S)
|
|
13049
13031
|
}, null, 8, ["onClick"])
|
|
13050
13032
|
]),
|
|
13051
13033
|
_: 2
|
|
@@ -13054,7 +13036,7 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
13054
13036
|
1024
|
|
13055
13037
|
/* DYNAMIC_SLOTS */
|
|
13056
13038
|
)) : Z("v-if", !0),
|
|
13057
|
-
|
|
13039
|
+
Y(
|
|
13058
13040
|
T(Fe),
|
|
13059
13041
|
{
|
|
13060
13042
|
title: "下载",
|
|
@@ -13062,8 +13044,8 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
13062
13044
|
},
|
|
13063
13045
|
{
|
|
13064
13046
|
default: q(() => [
|
|
13065
|
-
|
|
13066
|
-
onClick: (
|
|
13047
|
+
Y(T(Jn), {
|
|
13048
|
+
onClick: (K) => M(S)
|
|
13067
13049
|
}, null, 8, ["onClick"])
|
|
13068
13050
|
]),
|
|
13069
13051
|
_: 2
|
|
@@ -13075,20 +13057,20 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
13075
13057
|
],
|
|
13076
13058
|
64
|
|
13077
13059
|
/* STABLE_FRAGMENT */
|
|
13078
|
-
)) : (E(), D("div",
|
|
13060
|
+
)) : (E(), D("div", Sl, [
|
|
13079
13061
|
S.status === "success" ? (E(), D(
|
|
13080
13062
|
Ne,
|
|
13081
13063
|
{ key: 0 },
|
|
13082
13064
|
[
|
|
13083
|
-
|
|
13084
|
-
onClick: (
|
|
13065
|
+
Y(T(pe), {
|
|
13066
|
+
onClick: (K) => W(S),
|
|
13085
13067
|
name: "iksvg_yulan",
|
|
13086
13068
|
title: "预览",
|
|
13087
13069
|
bg: "",
|
|
13088
13070
|
size: "default"
|
|
13089
13071
|
}, null, 8, ["onClick"]),
|
|
13090
|
-
|
|
13091
|
-
onClick: (
|
|
13072
|
+
Y(T(pe), {
|
|
13073
|
+
onClick: (K) => J(S),
|
|
13092
13074
|
error: "",
|
|
13093
13075
|
name: "iksvg_shanchu",
|
|
13094
13076
|
title: "删除",
|
|
@@ -13098,9 +13080,9 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
13098
13080
|
],
|
|
13099
13081
|
64
|
|
13100
13082
|
/* STABLE_FRAGMENT */
|
|
13101
|
-
)) : (E(), ee(T(
|
|
13083
|
+
)) : (E(), ee(T(pe), {
|
|
13102
13084
|
key: 1,
|
|
13103
|
-
onClick: (
|
|
13085
|
+
onClick: (K) => J(S),
|
|
13104
13086
|
error: "",
|
|
13105
13087
|
name: "iksvg_guanbi",
|
|
13106
13088
|
size: "default",
|
|
@@ -13111,11 +13093,11 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
13111
13093
|
])
|
|
13112
13094
|
]),
|
|
13113
13095
|
default: q(() => [
|
|
13114
|
-
A("div",
|
|
13115
|
-
A("div",
|
|
13096
|
+
A("div", gl, [
|
|
13097
|
+
A("div", pl, [
|
|
13116
13098
|
o.imageMode ? we(x.$slots, "image", { key: 0 }, () => [
|
|
13117
|
-
|
|
13118
|
-
], !0) : o.showIcon ? (E(), ee(T(
|
|
13099
|
+
vl
|
|
13100
|
+
], !0) : o.showIcon ? (E(), ee(T(pe), {
|
|
13119
13101
|
key: 1,
|
|
13120
13102
|
name: "iksvg_img_shangchuanhetongfujianbeifen",
|
|
13121
13103
|
type: "primary",
|
|
@@ -13128,19 +13110,19 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
13128
13110
|
1
|
|
13129
13111
|
/* TEXT */
|
|
13130
13112
|
),
|
|
13131
|
-
!o.preview && o.tip ? (E(), ee(T(
|
|
13113
|
+
!o.preview && o.tip ? (E(), ee(T(yi), {
|
|
13132
13114
|
key: 0,
|
|
13133
13115
|
effect: "dark",
|
|
13134
13116
|
content: r.tipText || "",
|
|
13135
13117
|
"popper-class": "_ik_web_ui_file-help-tooltip"
|
|
13136
13118
|
}, {
|
|
13137
13119
|
default: q(() => [
|
|
13138
|
-
|
|
13120
|
+
Y(T(Fe), {
|
|
13139
13121
|
size: 23,
|
|
13140
13122
|
class: "_ik_web_ui_file_help_icon"
|
|
13141
13123
|
}, {
|
|
13142
13124
|
default: q(() => [
|
|
13143
|
-
|
|
13125
|
+
Y(T(_i))
|
|
13144
13126
|
]),
|
|
13145
13127
|
_: 1
|
|
13146
13128
|
/* STABLE */
|
|
@@ -13151,7 +13133,7 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
13151
13133
|
}, 8, ["content"])) : Z("v-if", !0)
|
|
13152
13134
|
])
|
|
13153
13135
|
]),
|
|
13154
|
-
|
|
13136
|
+
Y(T(pe), {
|
|
13155
13137
|
name: "iksvg_daoru",
|
|
13156
13138
|
bg: "",
|
|
13157
13139
|
size: 24,
|
|
@@ -13167,7 +13149,7 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
13167
13149
|
64
|
|
13168
13150
|
/* STABLE_FRAGMENT */
|
|
13169
13151
|
)),
|
|
13170
|
-
|
|
13152
|
+
Y(T(hs), {
|
|
13171
13153
|
show: p.value,
|
|
13172
13154
|
"onUpdate:show": N[2] || (N[2] = (S) => p.value = S),
|
|
13173
13155
|
loadUrl: T(s),
|
|
@@ -13182,8 +13164,8 @@ const Qa = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-b301aa7d"]]), el = ze(Q
|
|
|
13182
13164
|
};
|
|
13183
13165
|
}
|
|
13184
13166
|
});
|
|
13185
|
-
const
|
|
13167
|
+
const xl = /* @__PURE__ */ at(Al, [["__scopeId", "data-v-8973743d"]]), Ll = ze(xl);
|
|
13186
13168
|
export {
|
|
13187
|
-
|
|
13188
|
-
|
|
13169
|
+
Ll as IkUploadFile,
|
|
13170
|
+
Ll as default
|
|
13189
13171
|
};
|