iking-web-ui-pro 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IkApprovalProcessDetail/ik.index.es.js +614 -638
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +153 -177
- package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +272 -296
- package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +153 -177
- package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
- package/dist/IkDescription/ik.index.es.js +1496 -1520
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +1464 -1488
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +144 -168
- package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +227 -244
- package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +357 -381
- package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +626 -650
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +1440 -1464
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +573 -597
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +331 -355
- package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
- package/dist/IkSideText/ik.index.es.js +178 -202
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +131 -155
- package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
- package/dist/IkTree/ik.index.es.js +7 -7
- package/dist/IkTree/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +692 -716
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +385 -409
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +193 -217
- package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/index.es.js +11633 -11650
- package/dist/index.umd.js +99 -99
- package/dist/src/components/IkMonacoEditor/index.d.ts +9 -0
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +9 -0
- package/dist/src/components/IkSvgIcon/index.d.ts +9 -0
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useLocale as Ar, useNamespace as Fn, useZIndex as xr, ElIcon as be, EVENT_CODE as
|
|
3
|
-
import { buildUUID as Nn, ikColor as Pr, paramType as Ui, _ as
|
|
1
|
+
import { defineComponent as te, openBlock as E, createElementBlock as I, createElementVNode as A, computed as se, inject as ht, mergeModels as ut, useModel as zt, ref as me, reactive as mr, watch as vt, nextTick as mt, Fragment as Ae, createBlock as ie, unref as k, createCommentVNode as J, createVNode as B, withCtx as Y, resolveComponent as xt, normalizeClass as ne, normalizeStyle as yt, mergeProps as It, createTextVNode as Xe, toDisplayString as we, h as yr, createSlots as Dn, renderSlot as Re, getCurrentScope as _r, onScopeDispose as kr, markRaw as Fi, effectScope as Cr, shallowRef as wr, onMounted as br, Teleport as Rn, Transition as On, withModifiers as gt, resolveDynamicComponent as Tr, renderList as Mn, withDirectives as Er, vShow as Sr } from "vue";
|
|
2
|
+
import { useLocale as Ar, useNamespace as Fn, useZIndex as xr, ElIcon as be, EVENT_CODE as tt, ElUpload as Ni, ElButton as Ir, ElProgress as Bi, ElTooltip as Hi, ElMessage as Xt } from "element-plus";
|
|
3
|
+
import { buildUUID as Nn, ikColor as Pr, paramType as Ui, _ as qt, ikFile as Lr } from "iking-utils-pro";
|
|
4
4
|
import Dr from "axios";
|
|
5
|
-
const
|
|
5
|
+
const Ge = (a, o) => (a.install = (r) => {
|
|
6
6
|
for (const t of [a, ...Object.values({})])
|
|
7
7
|
r.component(t.name, t);
|
|
8
8
|
}, a), Rr = "data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwAAAALwAALwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBImAAAAA2AYm3bsuhFm7u72wZoTrbGIcoKaKyAROJQbQmW2IVb/WkW3ZmPd3ymRMQEwJfV56QRo5pHErkUkFdQWRJpeGW6SoL9EvaWxAdbAeiVd5gyAK5NAdOtv4uNfsT21TUukBVjgFubBOQS+Ip7G/k2LpatkF2hAuBI5siAdsL2j3DHQrJ7NKDbUIyOj3bhqADBsgNPUqUlgncLVlA4IOwBAABwDQCdASowADAAPm0yk0ckIyGhJzgMkIANiWwArDM9tzexcZ3vwYZdKHIB749Ap5gP1E/YD34/QB6AH+A9F//S+w1z2/sz/5DzdDABM7ldHg1iMkeWX8LH9T1VzicAWGJgnNq4e/5P/NObJOBUhFC8dPnhmAD+9wGzP9Zfeg5ENi90xn4awZvrlCLnfwvZX//s4u6n2Pa2TF/r8wh0GtdNNJIBMRbrMaCBwyl6z86DqQgvpixbIdOVbwZFf/7KjC+uzJ5nNRyJ1Rpab8pIf2m1+SBOfX9w7EFXUErK8NSCsePMPazMXKH5y9Wl+nfiSrmsv079Fk6NkDF3Dxr+C+Rp4UdG/f3kP8PZfd/FyRupWURiDOrAjLamuF4OPo2BylwD7ulmdgDn4BEMXuvpYCACy4yCVjgsOzqToG2rSfJOtxy6Hh1/B2gu7X1MdJpHsdHdUrlRzTLKyV3wZG5a64SKKB2/QGk8IRZT0veUdDeo579/WyTU3ujQZeKNBS9ANlv1muyN9Kf5bm1f3UoPm/KnDkqf/1f2jf6aQJ7IYNod25fVfhRX+l1u9qBzs/bVezF7ZgC2LOuuJl1Tvwgeujpg9Uc/m0A9X878DzEkgxP/sPGviOfCElM1J/Kr3TTCwCkfW+K3oZuMB7HAAAA=";
|
|
9
9
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
10
|
-
var Or = /* @__PURE__ */
|
|
10
|
+
var Or = /* @__PURE__ */ te({
|
|
11
11
|
name: "ArrowLeft",
|
|
12
12
|
__name: "arrow-left",
|
|
13
13
|
setup(a) {
|
|
14
|
-
return (o, r) => (
|
|
14
|
+
return (o, r) => (E(), I("svg", {
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16
16
|
viewBox: "0 0 1024 1024"
|
|
17
17
|
}, [
|
|
@@ -21,11 +21,11 @@ var Or = /* @__PURE__ */ ie({
|
|
|
21
21
|
})
|
|
22
22
|
]));
|
|
23
23
|
}
|
|
24
|
-
}), Mr = Or, Fr = /* @__PURE__ */
|
|
24
|
+
}), Mr = Or, Fr = /* @__PURE__ */ te({
|
|
25
25
|
name: "ArrowRight",
|
|
26
26
|
__name: "arrow-right",
|
|
27
27
|
setup(a) {
|
|
28
|
-
return (o, r) => (
|
|
28
|
+
return (o, r) => (E(), I("svg", {
|
|
29
29
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30
30
|
viewBox: "0 0 1024 1024"
|
|
31
31
|
}, [
|
|
@@ -35,11 +35,11 @@ var Or = /* @__PURE__ */ ie({
|
|
|
35
35
|
})
|
|
36
36
|
]));
|
|
37
37
|
}
|
|
38
|
-
}), Nr = Fr, Br = /* @__PURE__ */
|
|
38
|
+
}), Nr = Fr, Br = /* @__PURE__ */ te({
|
|
39
39
|
name: "Close",
|
|
40
40
|
__name: "close",
|
|
41
41
|
setup(a) {
|
|
42
|
-
return (o, r) => (
|
|
42
|
+
return (o, r) => (E(), I("svg", {
|
|
43
43
|
xmlns: "http://www.w3.org/2000/svg",
|
|
44
44
|
viewBox: "0 0 1024 1024"
|
|
45
45
|
}, [
|
|
@@ -49,11 +49,11 @@ var Or = /* @__PURE__ */ ie({
|
|
|
49
49
|
})
|
|
50
50
|
]));
|
|
51
51
|
}
|
|
52
|
-
}), Bn = Br, Hr = /* @__PURE__ */
|
|
52
|
+
}), Bn = Br, Hr = /* @__PURE__ */ te({
|
|
53
53
|
name: "Download",
|
|
54
54
|
__name: "download",
|
|
55
55
|
setup(a) {
|
|
56
|
-
return (o, r) => (
|
|
56
|
+
return (o, r) => (E(), I("svg", {
|
|
57
57
|
xmlns: "http://www.w3.org/2000/svg",
|
|
58
58
|
viewBox: "0 0 1024 1024"
|
|
59
59
|
}, [
|
|
@@ -63,11 +63,11 @@ var Or = /* @__PURE__ */ ie({
|
|
|
63
63
|
})
|
|
64
64
|
]));
|
|
65
65
|
}
|
|
66
|
-
}), Ur = Hr, zr = /* @__PURE__ */
|
|
66
|
+
}), Ur = Hr, zr = /* @__PURE__ */ te({
|
|
67
67
|
name: "FullScreen",
|
|
68
68
|
__name: "full-screen",
|
|
69
69
|
setup(a) {
|
|
70
|
-
return (o, r) => (
|
|
70
|
+
return (o, r) => (E(), I("svg", {
|
|
71
71
|
xmlns: "http://www.w3.org/2000/svg",
|
|
72
72
|
viewBox: "0 0 1024 1024"
|
|
73
73
|
}, [
|
|
@@ -77,11 +77,11 @@ var Or = /* @__PURE__ */ ie({
|
|
|
77
77
|
})
|
|
78
78
|
]));
|
|
79
79
|
}
|
|
80
|
-
}), Vr = zr, jr = /* @__PURE__ */
|
|
80
|
+
}), Vr = zr, jr = /* @__PURE__ */ te({
|
|
81
81
|
name: "QuestionFilled",
|
|
82
82
|
__name: "question-filled",
|
|
83
83
|
setup(a) {
|
|
84
|
-
return (o, r) => (
|
|
84
|
+
return (o, r) => (E(), I("svg", {
|
|
85
85
|
xmlns: "http://www.w3.org/2000/svg",
|
|
86
86
|
viewBox: "0 0 1024 1024"
|
|
87
87
|
}, [
|
|
@@ -91,11 +91,11 @@ var Or = /* @__PURE__ */ ie({
|
|
|
91
91
|
})
|
|
92
92
|
]));
|
|
93
93
|
}
|
|
94
|
-
}), zi = jr, Wr = /* @__PURE__ */
|
|
94
|
+
}), zi = jr, Wr = /* @__PURE__ */ te({
|
|
95
95
|
name: "RefreshLeft",
|
|
96
96
|
__name: "refresh-left",
|
|
97
97
|
setup(a) {
|
|
98
|
-
return (o, r) => (
|
|
98
|
+
return (o, r) => (E(), I("svg", {
|
|
99
99
|
xmlns: "http://www.w3.org/2000/svg",
|
|
100
100
|
viewBox: "0 0 1024 1024"
|
|
101
101
|
}, [
|
|
@@ -105,11 +105,11 @@ var Or = /* @__PURE__ */ ie({
|
|
|
105
105
|
})
|
|
106
106
|
]));
|
|
107
107
|
}
|
|
108
|
-
}), Gr = Wr, $r = /* @__PURE__ */
|
|
108
|
+
}), Gr = Wr, $r = /* @__PURE__ */ te({
|
|
109
109
|
name: "RefreshRight",
|
|
110
110
|
__name: "refresh-right",
|
|
111
111
|
setup(a) {
|
|
112
|
-
return (o, r) => (
|
|
112
|
+
return (o, r) => (E(), I("svg", {
|
|
113
113
|
xmlns: "http://www.w3.org/2000/svg",
|
|
114
114
|
viewBox: "0 0 1024 1024"
|
|
115
115
|
}, [
|
|
@@ -119,11 +119,11 @@ var Or = /* @__PURE__ */ ie({
|
|
|
119
119
|
})
|
|
120
120
|
]));
|
|
121
121
|
}
|
|
122
|
-
}), Kr = $r, Yr = /* @__PURE__ */
|
|
122
|
+
}), Kr = $r, Yr = /* @__PURE__ */ te({
|
|
123
123
|
name: "ScaleToOriginal",
|
|
124
124
|
__name: "scale-to-original",
|
|
125
125
|
setup(a) {
|
|
126
|
-
return (o, r) => (
|
|
126
|
+
return (o, r) => (E(), I("svg", {
|
|
127
127
|
xmlns: "http://www.w3.org/2000/svg",
|
|
128
128
|
viewBox: "0 0 1024 1024"
|
|
129
129
|
}, [
|
|
@@ -133,11 +133,11 @@ var Or = /* @__PURE__ */ ie({
|
|
|
133
133
|
})
|
|
134
134
|
]));
|
|
135
135
|
}
|
|
136
|
-
}), Xr = Yr, qr = /* @__PURE__ */
|
|
136
|
+
}), Xr = Yr, qr = /* @__PURE__ */ te({
|
|
137
137
|
name: "View",
|
|
138
138
|
__name: "view",
|
|
139
139
|
setup(a) {
|
|
140
|
-
return (o, r) => (
|
|
140
|
+
return (o, r) => (E(), I("svg", {
|
|
141
141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
142
142
|
viewBox: "0 0 1024 1024"
|
|
143
143
|
}, [
|
|
@@ -147,11 +147,11 @@ var Or = /* @__PURE__ */ ie({
|
|
|
147
147
|
})
|
|
148
148
|
]));
|
|
149
149
|
}
|
|
150
|
-
}), Zr = qr, Jr = /* @__PURE__ */
|
|
150
|
+
}), Zr = qr, Jr = /* @__PURE__ */ te({
|
|
151
151
|
name: "WarningFilled",
|
|
152
152
|
__name: "warning-filled",
|
|
153
153
|
setup(a) {
|
|
154
|
-
return (o, r) => (
|
|
154
|
+
return (o, r) => (E(), I("svg", {
|
|
155
155
|
xmlns: "http://www.w3.org/2000/svg",
|
|
156
156
|
viewBox: "0 0 1024 1024"
|
|
157
157
|
}, [
|
|
@@ -161,11 +161,11 @@ var Or = /* @__PURE__ */ ie({
|
|
|
161
161
|
})
|
|
162
162
|
]));
|
|
163
163
|
}
|
|
164
|
-
}), Qr = Jr, es = /* @__PURE__ */
|
|
164
|
+
}), Qr = Jr, es = /* @__PURE__ */ te({
|
|
165
165
|
name: "ZoomIn",
|
|
166
166
|
__name: "zoom-in",
|
|
167
167
|
setup(a) {
|
|
168
|
-
return (o, r) => (
|
|
168
|
+
return (o, r) => (E(), I("svg", {
|
|
169
169
|
xmlns: "http://www.w3.org/2000/svg",
|
|
170
170
|
viewBox: "0 0 1024 1024"
|
|
171
171
|
}, [
|
|
@@ -175,11 +175,11 @@ var Or = /* @__PURE__ */ ie({
|
|
|
175
175
|
})
|
|
176
176
|
]));
|
|
177
177
|
}
|
|
178
|
-
}), ts = es, is = /* @__PURE__ */
|
|
178
|
+
}), ts = es, is = /* @__PURE__ */ te({
|
|
179
179
|
name: "ZoomOut",
|
|
180
180
|
__name: "zoom-out",
|
|
181
181
|
setup(a) {
|
|
182
|
-
return (o, r) => (
|
|
182
|
+
return (o, r) => (E(), I("svg", {
|
|
183
183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
184
184
|
viewBox: "0 0 1024 1024"
|
|
185
185
|
}, [
|
|
@@ -423,7 +423,7 @@ const ue = (a, o) => {
|
|
|
423
423
|
"p-id": "7515",
|
|
424
424
|
width: "200",
|
|
425
425
|
height: "200"
|
|
426
|
-
}, ys = /* @__PURE__ */
|
|
426
|
+
}, ys = /* @__PURE__ */ te({
|
|
427
427
|
__name: "IkFileIcon",
|
|
428
428
|
props: {
|
|
429
429
|
type: {
|
|
@@ -445,7 +445,7 @@ const ue = (a, o) => {
|
|
|
445
445
|
},
|
|
446
446
|
setup(a) {
|
|
447
447
|
const o = a, r = se(() => o.file ? ue(o.file, o.fields) : o.type);
|
|
448
|
-
return (t, e) => r.value === "image" ? (
|
|
448
|
+
return (t, e) => r.value === "image" ? (E(), I("svg", as, e[0] || (e[0] = [
|
|
449
449
|
A(
|
|
450
450
|
"path",
|
|
451
451
|
{
|
|
@@ -490,7 +490,7 @@ const ue = (a, o) => {
|
|
|
490
490
|
-1
|
|
491
491
|
/* HOISTED */
|
|
492
492
|
)
|
|
493
|
-
]))) : r.value === "zip" ? (
|
|
493
|
+
]))) : r.value === "zip" ? (E(), I("svg", os, e[1] || (e[1] = [
|
|
494
494
|
A(
|
|
495
495
|
"path",
|
|
496
496
|
{
|
|
@@ -513,7 +513,7 @@ const ue = (a, o) => {
|
|
|
513
513
|
-1
|
|
514
514
|
/* HOISTED */
|
|
515
515
|
)
|
|
516
|
-
]))) : r.value === "ppt" ? (
|
|
516
|
+
]))) : r.value === "ppt" ? (E(), I("svg", ls, e[2] || (e[2] = [
|
|
517
517
|
A(
|
|
518
518
|
"path",
|
|
519
519
|
{
|
|
@@ -536,7 +536,7 @@ const ue = (a, o) => {
|
|
|
536
536
|
-1
|
|
537
537
|
/* HOISTED */
|
|
538
538
|
)
|
|
539
|
-
]))) : r.value === "word" ? (
|
|
539
|
+
]))) : r.value === "word" ? (E(), I("svg", us, e[3] || (e[3] = [
|
|
540
540
|
A(
|
|
541
541
|
"path",
|
|
542
542
|
{
|
|
@@ -559,7 +559,7 @@ const ue = (a, o) => {
|
|
|
559
559
|
-1
|
|
560
560
|
/* HOISTED */
|
|
561
561
|
)
|
|
562
|
-
]))) : r.value === "pdf" ? (
|
|
562
|
+
]))) : r.value === "pdf" ? (E(), I("svg", cs, e[4] || (e[4] = [
|
|
563
563
|
A(
|
|
564
564
|
"path",
|
|
565
565
|
{
|
|
@@ -582,7 +582,7 @@ const ue = (a, o) => {
|
|
|
582
582
|
-1
|
|
583
583
|
/* HOISTED */
|
|
584
584
|
)
|
|
585
|
-
]))) : r.value === "txt" ? (
|
|
585
|
+
]))) : r.value === "txt" ? (E(), I("svg", fs, e[5] || (e[5] = [
|
|
586
586
|
A(
|
|
587
587
|
"path",
|
|
588
588
|
{
|
|
@@ -605,7 +605,7 @@ const ue = (a, o) => {
|
|
|
605
605
|
-1
|
|
606
606
|
/* HOISTED */
|
|
607
607
|
)
|
|
608
|
-
]))) : r.value === "audio" ? (
|
|
608
|
+
]))) : r.value === "audio" ? (E(), I("svg", hs, e[6] || (e[6] = [
|
|
609
609
|
A(
|
|
610
610
|
"path",
|
|
611
611
|
{
|
|
@@ -628,7 +628,7 @@ const ue = (a, o) => {
|
|
|
628
628
|
-1
|
|
629
629
|
/* HOISTED */
|
|
630
630
|
)
|
|
631
|
-
]))) : r.value === "video" ? (
|
|
631
|
+
]))) : r.value === "video" ? (E(), I("svg", ds, e[7] || (e[7] = [
|
|
632
632
|
A(
|
|
633
633
|
"path",
|
|
634
634
|
{
|
|
@@ -651,7 +651,7 @@ const ue = (a, o) => {
|
|
|
651
651
|
-1
|
|
652
652
|
/* HOISTED */
|
|
653
653
|
)
|
|
654
|
-
]))) : r.value === "excel" ? (
|
|
654
|
+
]))) : r.value === "excel" ? (E(), I("svg", gs, e[8] || (e[8] = [
|
|
655
655
|
A(
|
|
656
656
|
"path",
|
|
657
657
|
{
|
|
@@ -686,7 +686,7 @@ const ue = (a, o) => {
|
|
|
686
686
|
-1
|
|
687
687
|
/* HOISTED */
|
|
688
688
|
)
|
|
689
|
-
]))) : r.value === "exe" ? (
|
|
689
|
+
]))) : r.value === "exe" ? (E(), I("svg", ps, e[9] || (e[9] = [
|
|
690
690
|
A(
|
|
691
691
|
"path",
|
|
692
692
|
{
|
|
@@ -732,7 +732,7 @@ const ue = (a, o) => {
|
|
|
732
732
|
-1
|
|
733
733
|
/* HOISTED */
|
|
734
734
|
)
|
|
735
|
-
]))) : r.value === "json" ? (
|
|
735
|
+
]))) : r.value === "json" ? (E(), I("svg", vs, e[10] || (e[10] = [
|
|
736
736
|
A(
|
|
737
737
|
"path",
|
|
738
738
|
{
|
|
@@ -767,7 +767,7 @@ const ue = (a, o) => {
|
|
|
767
767
|
-1
|
|
768
768
|
/* HOISTED */
|
|
769
769
|
)
|
|
770
|
-
]))) : (
|
|
770
|
+
]))) : (E(), I("svg", ms, e[11] || (e[11] = [
|
|
771
771
|
A(
|
|
772
772
|
"path",
|
|
773
773
|
{
|
|
@@ -803,12 +803,12 @@ const ue = (a, o) => {
|
|
|
803
803
|
)
|
|
804
804
|
])));
|
|
805
805
|
}
|
|
806
|
-
}), ji =
|
|
806
|
+
}), ji = Ge(ys), Vt = (a, o) => {
|
|
807
807
|
const r = a.__vccOpts || a;
|
|
808
808
|
for (const [t, e] of o)
|
|
809
809
|
r[t] = e;
|
|
810
810
|
return r;
|
|
811
|
-
},
|
|
811
|
+
}, Zt = (a) => a % 1 === 0 ? a.toString() : a.toFixed(2), Pt = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "", Wi = [
|
|
812
812
|
"csv",
|
|
813
813
|
"djvu",
|
|
814
814
|
"doc",
|
|
@@ -864,7 +864,7 @@ const ue = (a, o) => {
|
|
|
864
864
|
"flv",
|
|
865
865
|
"tls"
|
|
866
866
|
], Hn = (a) => {
|
|
867
|
-
const o =
|
|
867
|
+
const o = ht("loadUrl"), r = se(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = ht("uploadUrl"), e = se(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = ht("token"), n = se(() => a.token || (i == null ? void 0 : i.value)), s = ht("onlyofficeConfig"), l = se(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = ht("userInfo"), c = se(() => a.userInfo || (u == null ? void 0 : u.value)), f = [...Wi, ...Wi.map((d) => d.toLocaleUpperCase())];
|
|
868
868
|
return {
|
|
869
869
|
cLoadUrl: r,
|
|
870
870
|
cUploadUrl: e,
|
|
@@ -873,9 +873,9 @@ const ue = (a, o) => {
|
|
|
873
873
|
cUserInfo: c,
|
|
874
874
|
cOnlyofficePreviewType: f
|
|
875
875
|
};
|
|
876
|
-
}, _s = /* @__PURE__ */
|
|
876
|
+
}, _s = /* @__PURE__ */ te({
|
|
877
877
|
__name: "IkPreviewFileDialog",
|
|
878
|
-
props: /* @__PURE__ */
|
|
878
|
+
props: /* @__PURE__ */ ut({
|
|
879
879
|
file: {
|
|
880
880
|
type: Object,
|
|
881
881
|
default: () => []
|
|
@@ -910,7 +910,7 @@ const ue = (a, o) => {
|
|
|
910
910
|
}),
|
|
911
911
|
emits: ["update:show"],
|
|
912
912
|
setup(a) {
|
|
913
|
-
const o = a, r =
|
|
913
|
+
const o = a, r = zt(a, "show"), t = se(() => ({
|
|
914
914
|
name: "name",
|
|
915
915
|
url: "url",
|
|
916
916
|
suffix: "suffix",
|
|
@@ -923,11 +923,11 @@ const ue = (a, o) => {
|
|
|
923
923
|
}), s = (u) => {
|
|
924
924
|
var c, f, d, g, p, m, y;
|
|
925
925
|
try {
|
|
926
|
-
const C = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u,
|
|
926
|
+
const C = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, S = C[t.value.url] || (C == null ? void 0 : C.id) || C.attachmentId, T = (f = C[t.value.suffix] || C.attachmentSuffix) == null ? void 0 : f.toLowerCase(), W = C[t.value.name] || (C == null ? void 0 : C.attachmentName) || (C == null ? void 0 : C.originName);
|
|
927
927
|
if (i.value = {
|
|
928
928
|
...u,
|
|
929
929
|
name: u[t.value.name],
|
|
930
|
-
url:
|
|
930
|
+
url: Pt(o.loadUrl, S)
|
|
931
931
|
}, u && ue(u, t.value) === "image") {
|
|
932
932
|
n.image = !0;
|
|
933
933
|
return;
|
|
@@ -949,7 +949,7 @@ const ue = (a, o) => {
|
|
|
949
949
|
document: {
|
|
950
950
|
key: Nn(),
|
|
951
951
|
title: W,
|
|
952
|
-
url:
|
|
952
|
+
url: Pt(o.loadUrl, S),
|
|
953
953
|
fileType: T,
|
|
954
954
|
...((y = o.onlyOfficeConfig) == null ? void 0 : y.document) || {}
|
|
955
955
|
},
|
|
@@ -962,8 +962,8 @@ const ue = (a, o) => {
|
|
|
962
962
|
console.info("预览错误: ", C);
|
|
963
963
|
}
|
|
964
964
|
};
|
|
965
|
-
|
|
966
|
-
u &&
|
|
965
|
+
vt([r, o.file], ([u, c]) => {
|
|
966
|
+
u && mt(() => {
|
|
967
967
|
s(o.file);
|
|
968
968
|
});
|
|
969
969
|
});
|
|
@@ -972,11 +972,11 @@ const ue = (a, o) => {
|
|
|
972
972
|
};
|
|
973
973
|
return (u, c) => {
|
|
974
974
|
var f, d, g;
|
|
975
|
-
return r.value ? (
|
|
976
|
-
|
|
975
|
+
return r.value ? (E(), I(
|
|
976
|
+
Ae,
|
|
977
977
|
{ key: 0 },
|
|
978
978
|
[
|
|
979
|
-
(f = i.value) != null && f.url && n.image ? (
|
|
979
|
+
(f = i.value) != null && f.url && n.image ? (E(), ie(k(ia), {
|
|
980
980
|
key: 0,
|
|
981
981
|
onClose: c[0] || (c[0] = (p) => l()),
|
|
982
982
|
ref: "previewImgRef",
|
|
@@ -1024,7 +1024,7 @@ const ue = (a, o) => {
|
|
|
1024
1024
|
)) : J("v-if", !0);
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
|
-
}), ks =
|
|
1027
|
+
}), ks = Ge(_s), Cs = {
|
|
1028
1028
|
key: 1,
|
|
1029
1029
|
class: "h-[1em] w-[1em]",
|
|
1030
1030
|
"aria-hidden": "true"
|
|
@@ -1032,7 +1032,7 @@ const ue = (a, o) => {
|
|
|
1032
1032
|
key: 1,
|
|
1033
1033
|
class: "h-[1em] w-[1em]",
|
|
1034
1034
|
"aria-hidden": "true"
|
|
1035
|
-
}, Es = ["xlink:href"], Ss = ["src"], As = /* @__PURE__ */
|
|
1035
|
+
}, Es = ["xlink:href"], Ss = ["src"], As = /* @__PURE__ */ te({
|
|
1036
1036
|
name: "IkSvgIcon",
|
|
1037
1037
|
__name: "index",
|
|
1038
1038
|
props: {
|
|
@@ -1056,7 +1056,8 @@ const ue = (a, o) => {
|
|
|
1056
1056
|
title: {},
|
|
1057
1057
|
type: { default: "primary" },
|
|
1058
1058
|
warning: { type: Boolean },
|
|
1059
|
-
width: {}
|
|
1059
|
+
width: {},
|
|
1060
|
+
iconClass: { default: "" }
|
|
1060
1061
|
},
|
|
1061
1062
|
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
1062
1063
|
setup(a, { emit: o }) {
|
|
@@ -1079,7 +1080,6 @@ const ue = (a, o) => {
|
|
|
1079
1080
|
}
|
|
1080
1081
|
t.value.rotate && f.push(`rotate(${t.value.rotate % 360}deg)`);
|
|
1081
1082
|
const d = {
|
|
1082
|
-
pointerEvents: t.value.disabled ? "none" : "auto",
|
|
1083
1083
|
...t.value.color && { color: t.value.color },
|
|
1084
1084
|
...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
|
|
1085
1085
|
...f.length && { transform: f.join(" ") },
|
|
@@ -1101,158 +1101,134 @@ const ue = (a, o) => {
|
|
|
1101
1101
|
};
|
|
1102
1102
|
return (f, d) => {
|
|
1103
1103
|
const g = xt("el-tooltip"), p = xt("el-button");
|
|
1104
|
-
return
|
|
1105
|
-
|
|
1106
|
-
{
|
|
1104
|
+
return E(), I(
|
|
1105
|
+
"i",
|
|
1106
|
+
{
|
|
1107
|
+
class: ne(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1108
|
+
[f.iconClass]: !0,
|
|
1109
|
+
[f.name]: e.value === "unocss",
|
|
1110
|
+
"show-bg": t.value.showBg || t.value.bg,
|
|
1111
|
+
default: t.value.size === "default",
|
|
1112
|
+
small: t.value.size === "small",
|
|
1113
|
+
big: t.value.size === "big",
|
|
1114
|
+
warning: t.value.warning || t.value.type === "warning",
|
|
1115
|
+
primary: t.value.primary || t.value.type === "primary",
|
|
1116
|
+
success: f.success || t.value.type === "success",
|
|
1117
|
+
error: t.value.error || t.value.type === "error",
|
|
1118
|
+
active: t.value.active,
|
|
1119
|
+
disabled: t.value.disabled
|
|
1120
|
+
}]),
|
|
1121
|
+
style: yt(i.value),
|
|
1122
|
+
onClick: s,
|
|
1123
|
+
onDblclick: c,
|
|
1124
|
+
onMouseenter: l,
|
|
1125
|
+
onMouseleave: u
|
|
1126
|
+
},
|
|
1107
1127
|
[
|
|
1108
|
-
t.value.
|
|
1109
|
-
|
|
1110
|
-
{
|
|
1111
|
-
key: 0,
|
|
1112
|
-
class: te(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1113
|
-
[f.name]: e.value === "unocss",
|
|
1114
|
-
"show-bg": t.value.showBg || t.value.bg,
|
|
1115
|
-
default: t.value.size === "default",
|
|
1116
|
-
small: t.value.size === "small",
|
|
1117
|
-
big: t.value.size === "big",
|
|
1118
|
-
warning: t.value.warning || t.value.type === "warning",
|
|
1119
|
-
primary: t.value.primary || t.value.type === "primary",
|
|
1120
|
-
success: f.success || t.value.type === "success",
|
|
1121
|
-
error: t.value.error || t.value.type === "error",
|
|
1122
|
-
active: t.value.active,
|
|
1123
|
-
disabled: t.value.disabled
|
|
1124
|
-
}]),
|
|
1125
|
-
style: De(i.value),
|
|
1126
|
-
onClick: s,
|
|
1127
|
-
onDblclick: c,
|
|
1128
|
-
onMouseenter: l,
|
|
1129
|
-
onMouseleave: u
|
|
1130
|
-
},
|
|
1128
|
+
t.value.tableIconType === "icon" || !t.value.tableIconType ? (E(), I(
|
|
1129
|
+
Ae,
|
|
1130
|
+
{ key: 0 },
|
|
1131
1131
|
[
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
{
|
|
1135
|
-
key: 0,
|
|
1136
|
-
class: te(`iksig ${t.value.name}`),
|
|
1137
|
-
style: De(i.value)
|
|
1138
|
-
},
|
|
1139
|
-
null,
|
|
1140
|
-
6
|
|
1141
|
-
/* CLASS, STYLE */
|
|
1142
|
-
)) : e.value === "svg" ? (S(), I("svg", Cs, [
|
|
1143
|
-
A("use", {
|
|
1144
|
-
"xlink:href": `#${t.value.name}`
|
|
1145
|
-
}, null, 8, ws)
|
|
1146
|
-
])) : e.value === "img" ? (S(), I("img", {
|
|
1147
|
-
key: 2,
|
|
1148
|
-
src: t.value.name,
|
|
1149
|
-
class: "h-[1em] w-[1em]"
|
|
1150
|
-
}, null, 8, bs)) : (S(), I(
|
|
1151
|
-
"i",
|
|
1152
|
-
{
|
|
1153
|
-
key: 3,
|
|
1154
|
-
class: te(t.value.name),
|
|
1155
|
-
style: De(i.value)
|
|
1156
|
-
},
|
|
1157
|
-
null,
|
|
1158
|
-
6
|
|
1159
|
-
/* CLASS, STYLE */
|
|
1160
|
-
))
|
|
1161
|
-
],
|
|
1162
|
-
38
|
|
1163
|
-
/* CLASS, STYLE, NEED_HYDRATION */
|
|
1164
|
-
)) : (S(), ne(g, {
|
|
1165
|
-
key: 1,
|
|
1166
|
-
content: t.value.title,
|
|
1167
|
-
placement: "top",
|
|
1168
|
-
"popper-class": "ik-svg-icon-tooltip",
|
|
1169
|
-
"hide-after": 0
|
|
1170
|
-
}, {
|
|
1171
|
-
default: Y(() => [
|
|
1172
|
-
A(
|
|
1173
|
-
"i",
|
|
1174
|
-
{
|
|
1175
|
-
class: te(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1176
|
-
[f.name]: e.value === "unocss",
|
|
1177
|
-
"show-bg": t.value.showBg || t.value.bg,
|
|
1178
|
-
default: t.value.size === "default",
|
|
1179
|
-
small: t.value.size === "small",
|
|
1180
|
-
big: t.value.size === "big",
|
|
1181
|
-
warning: t.value.warning || t.value.type === "warning",
|
|
1182
|
-
primary: f.primary || t.value.type === "primary",
|
|
1183
|
-
success: f.success || t.value.type === "success",
|
|
1184
|
-
error: t.value.error || t.value.type === "error",
|
|
1185
|
-
active: t.value.active,
|
|
1186
|
-
disabled: t.value.disabled
|
|
1187
|
-
}]),
|
|
1188
|
-
style: De(i.value),
|
|
1189
|
-
onClick: s,
|
|
1190
|
-
onDblclick: c,
|
|
1191
|
-
onMouseenter: l,
|
|
1192
|
-
onMouseleave: u
|
|
1193
|
-
},
|
|
1132
|
+
t.value.notip || !t.value.title ? (E(), I(
|
|
1133
|
+
Ae,
|
|
1134
|
+
{ key: 0 },
|
|
1194
1135
|
[
|
|
1195
|
-
e.value === "iksig" ? (
|
|
1136
|
+
e.value === "iksig" ? (E(), I(
|
|
1196
1137
|
"i",
|
|
1197
1138
|
{
|
|
1198
1139
|
key: 0,
|
|
1199
|
-
class:
|
|
1200
|
-
style: De(i.value)
|
|
1140
|
+
class: ne(`iksig ${t.value.name}`)
|
|
1201
1141
|
},
|
|
1202
1142
|
null,
|
|
1203
|
-
|
|
1204
|
-
/* CLASS
|
|
1205
|
-
)) : e.value === "svg" ? (
|
|
1143
|
+
2
|
|
1144
|
+
/* CLASS */
|
|
1145
|
+
)) : e.value === "svg" ? (E(), I("svg", Cs, [
|
|
1206
1146
|
A("use", {
|
|
1207
1147
|
"xlink:href": `#${t.value.name}`
|
|
1208
|
-
}, null, 8,
|
|
1209
|
-
])) : e.value === "img" ? (
|
|
1148
|
+
}, null, 8, ws)
|
|
1149
|
+
])) : e.value === "img" ? (E(), I("img", {
|
|
1210
1150
|
key: 2,
|
|
1211
1151
|
src: t.value.name,
|
|
1212
1152
|
class: "h-[1em] w-[1em]"
|
|
1213
|
-
}, null, 8,
|
|
1153
|
+
}, null, 8, bs)) : (E(), I(
|
|
1214
1154
|
"i",
|
|
1215
1155
|
{
|
|
1216
1156
|
key: 3,
|
|
1217
|
-
class:
|
|
1218
|
-
style: De(i.value)
|
|
1157
|
+
class: ne(t.value.name)
|
|
1219
1158
|
},
|
|
1220
1159
|
null,
|
|
1221
|
-
|
|
1222
|
-
/* CLASS
|
|
1160
|
+
2
|
|
1161
|
+
/* CLASS */
|
|
1223
1162
|
))
|
|
1224
1163
|
],
|
|
1225
|
-
|
|
1226
|
-
/*
|
|
1164
|
+
64
|
|
1165
|
+
/* STABLE_FRAGMENT */
|
|
1166
|
+
)) : (E(), ie(g, {
|
|
1167
|
+
key: 1,
|
|
1168
|
+
content: t.value.title,
|
|
1169
|
+
placement: "top",
|
|
1170
|
+
"popper-class": "ik-svg-icon-tooltip",
|
|
1171
|
+
"hide-after": 0
|
|
1172
|
+
}, {
|
|
1173
|
+
default: Y(() => [
|
|
1174
|
+
e.value === "iksig" ? (E(), I(
|
|
1175
|
+
"i",
|
|
1176
|
+
{
|
|
1177
|
+
key: 0,
|
|
1178
|
+
class: ne(`iksig ${t.value.name}`)
|
|
1179
|
+
},
|
|
1180
|
+
null,
|
|
1181
|
+
2
|
|
1182
|
+
/* CLASS */
|
|
1183
|
+
)) : e.value === "svg" ? (E(), I("svg", Ts, [
|
|
1184
|
+
A("use", {
|
|
1185
|
+
"xlink:href": `#${t.value.name}`
|
|
1186
|
+
}, null, 8, Es)
|
|
1187
|
+
])) : e.value === "img" ? (E(), I("img", {
|
|
1188
|
+
key: 2,
|
|
1189
|
+
src: t.value.name,
|
|
1190
|
+
class: "h-[1em] w-[1em]"
|
|
1191
|
+
}, null, 8, Ss)) : (E(), I(
|
|
1192
|
+
"i",
|
|
1193
|
+
{
|
|
1194
|
+
key: 3,
|
|
1195
|
+
class: ne(t.value.name)
|
|
1196
|
+
},
|
|
1197
|
+
null,
|
|
1198
|
+
2
|
|
1199
|
+
/* CLASS */
|
|
1200
|
+
))
|
|
1201
|
+
]),
|
|
1202
|
+
_: 1
|
|
1203
|
+
/* STABLE */
|
|
1204
|
+
}, 8, ["content"]))
|
|
1205
|
+
],
|
|
1206
|
+
64
|
|
1207
|
+
/* STABLE_FRAGMENT */
|
|
1208
|
+
)) : (E(), ie(p, It({ key: 1 }, f.$attrs, {
|
|
1209
|
+
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
1210
|
+
}), {
|
|
1211
|
+
default: Y(() => [
|
|
1212
|
+
Xe(
|
|
1213
|
+
we(t.value.title),
|
|
1214
|
+
1
|
|
1215
|
+
/* TEXT */
|
|
1227
1216
|
)
|
|
1228
1217
|
]),
|
|
1229
1218
|
_: 1
|
|
1230
1219
|
/* STABLE */
|
|
1231
|
-
},
|
|
1220
|
+
}, 16, ["type"]))
|
|
1232
1221
|
],
|
|
1233
|
-
|
|
1234
|
-
/*
|
|
1235
|
-
)
|
|
1236
|
-
key: 1,
|
|
1237
|
-
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
1238
|
-
}, {
|
|
1239
|
-
default: Y(() => [
|
|
1240
|
-
qe(
|
|
1241
|
-
we(t.value.title),
|
|
1242
|
-
1
|
|
1243
|
-
/* TEXT */
|
|
1244
|
-
)
|
|
1245
|
-
]),
|
|
1246
|
-
_: 1
|
|
1247
|
-
/* STABLE */
|
|
1248
|
-
}, 8, ["type"]));
|
|
1222
|
+
38
|
|
1223
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
1224
|
+
);
|
|
1249
1225
|
};
|
|
1250
1226
|
}
|
|
1251
|
-
}), xs = /* @__PURE__ */
|
|
1227
|
+
}), xs = /* @__PURE__ */ Vt(As, [["__scopeId", "data-v-2648e369"]]), Ce = Ge(xs);
|
|
1252
1228
|
function ki(a) {
|
|
1253
1229
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1254
1230
|
}
|
|
1255
|
-
const Is = /* @__PURE__ */
|
|
1231
|
+
const Is = /* @__PURE__ */ te({
|
|
1256
1232
|
__name: "CloseIcon",
|
|
1257
1233
|
props: {
|
|
1258
1234
|
showBg: {
|
|
@@ -1265,10 +1241,10 @@ const Is = /* @__PURE__ */ ie({
|
|
|
1265
1241
|
}
|
|
1266
1242
|
},
|
|
1267
1243
|
setup(a) {
|
|
1268
|
-
return (o, r) => (
|
|
1244
|
+
return (o, r) => (E(), I(
|
|
1269
1245
|
"div",
|
|
1270
1246
|
{
|
|
1271
|
-
class:
|
|
1247
|
+
class: ne({ "exit-main-page-maximize": a.showBg && a.fullscreen })
|
|
1272
1248
|
},
|
|
1273
1249
|
[
|
|
1274
1250
|
B(k(Ce), {
|
|
@@ -1281,9 +1257,9 @@ const Is = /* @__PURE__ */ ie({
|
|
|
1281
1257
|
/* CLASS */
|
|
1282
1258
|
));
|
|
1283
1259
|
}
|
|
1284
|
-
}), Ps = /* @__PURE__ */
|
|
1260
|
+
}), Ps = /* @__PURE__ */ Vt(Is, [["__scopeId", "data-v-d9a4ea3c"]]), Ls = { class: "base-header" }, Ds = /* @__PURE__ */ te({
|
|
1285
1261
|
__name: "IkBaseDialog",
|
|
1286
|
-
props: /* @__PURE__ */
|
|
1262
|
+
props: /* @__PURE__ */ ut({
|
|
1287
1263
|
title: { default: "" },
|
|
1288
1264
|
cancelText: { default: "取消" },
|
|
1289
1265
|
confirmText: { default: "确认" },
|
|
@@ -1302,9 +1278,9 @@ const Is = /* @__PURE__ */ ie({
|
|
|
1302
1278
|
}),
|
|
1303
1279
|
emits: ["update:modelValue"],
|
|
1304
1280
|
setup(a) {
|
|
1305
|
-
const o = a, r =
|
|
1281
|
+
const o = a, r = zt(a, "modelValue"), t = me(o.fullscreen), e = () => {
|
|
1306
1282
|
t.value = !t.value;
|
|
1307
|
-
}, i =
|
|
1283
|
+
}, i = te({
|
|
1308
1284
|
setup() {
|
|
1309
1285
|
return () => yr(Ps, {
|
|
1310
1286
|
showBg: o.showCloseBg,
|
|
@@ -1314,7 +1290,7 @@ const Is = /* @__PURE__ */ ie({
|
|
|
1314
1290
|
});
|
|
1315
1291
|
return (n, s) => {
|
|
1316
1292
|
const l = xt("el-dialog");
|
|
1317
|
-
return
|
|
1293
|
+
return E(), ie(l, It({
|
|
1318
1294
|
modelValue: r.value,
|
|
1319
1295
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u),
|
|
1320
1296
|
"align-center": ""
|
|
@@ -1325,8 +1301,8 @@ const Is = /* @__PURE__ */ ie({
|
|
|
1325
1301
|
"modal-class": "baseDialog"
|
|
1326
1302
|
}), Dn({
|
|
1327
1303
|
icon: Y(() => [
|
|
1328
|
-
|
|
1329
|
-
|
|
1304
|
+
Re(n.$slots, "title", {}, () => [
|
|
1305
|
+
Xe(
|
|
1330
1306
|
we(n.title),
|
|
1331
1307
|
1
|
|
1332
1308
|
/* TEXT */
|
|
@@ -1335,15 +1311,15 @@ const Is = /* @__PURE__ */ ie({
|
|
|
1335
1311
|
]),
|
|
1336
1312
|
header: Y(() => [
|
|
1337
1313
|
A("div", Ls, [
|
|
1338
|
-
|
|
1339
|
-
|
|
1314
|
+
Re(n.$slots, "header", {}, () => [
|
|
1315
|
+
Xe(
|
|
1340
1316
|
we(n.title),
|
|
1341
1317
|
1
|
|
1342
1318
|
/* TEXT */
|
|
1343
1319
|
)
|
|
1344
1320
|
])
|
|
1345
1321
|
]),
|
|
1346
|
-
n.$attrs.showClose ? (
|
|
1322
|
+
n.$attrs.showClose ? (E(), ie(k(Ce), {
|
|
1347
1323
|
key: 0,
|
|
1348
1324
|
onClick: e,
|
|
1349
1325
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
@@ -1352,7 +1328,7 @@ const Is = /* @__PURE__ */ ie({
|
|
|
1352
1328
|
}, null, 8, ["name", "title"])) : J("v-if", !0)
|
|
1353
1329
|
]),
|
|
1354
1330
|
default: Y(() => [
|
|
1355
|
-
|
|
1331
|
+
Re(n.$slots, "default")
|
|
1356
1332
|
]),
|
|
1357
1333
|
_: 2
|
|
1358
1334
|
/* DYNAMIC */
|
|
@@ -1360,14 +1336,14 @@ const Is = /* @__PURE__ */ ie({
|
|
|
1360
1336
|
n.$slots.footer ? {
|
|
1361
1337
|
name: "footer",
|
|
1362
1338
|
fn: Y(() => [
|
|
1363
|
-
|
|
1339
|
+
Re(n.$slots, "footer")
|
|
1364
1340
|
]),
|
|
1365
1341
|
key: "0"
|
|
1366
1342
|
} : void 0
|
|
1367
1343
|
]), 1040, ["modelValue", "close-icon", "class", "fullscreen"]);
|
|
1368
1344
|
};
|
|
1369
1345
|
}
|
|
1370
|
-
}), Rs =
|
|
1346
|
+
}), Rs = Ge(Ds);
|
|
1371
1347
|
function Os(a, o, r, t) {
|
|
1372
1348
|
function e(i) {
|
|
1373
1349
|
return i instanceof r ? i : new r(function(n) {
|
|
@@ -1490,7 +1466,7 @@ var Fs = function(a, o) {
|
|
|
1490
1466
|
}, e.onerror = function(i) {
|
|
1491
1467
|
e.removeAttribute("loading"), t(i);
|
|
1492
1468
|
}, e.setAttribute("loading", ""), e;
|
|
1493
|
-
}, Ci =
|
|
1469
|
+
}, Ci = te({
|
|
1494
1470
|
name: "DocumentEditor",
|
|
1495
1471
|
props: {
|
|
1496
1472
|
id: {
|
|
@@ -1661,11 +1637,11 @@ var Fs = function(a, o) {
|
|
|
1661
1637
|
});
|
|
1662
1638
|
const Ns = ["id"];
|
|
1663
1639
|
function Bs(a, o, r, t, e, i) {
|
|
1664
|
-
return
|
|
1640
|
+
return E(), I("div", { id: a.id }, null, 8, Ns);
|
|
1665
1641
|
}
|
|
1666
1642
|
Ci.render = Bs;
|
|
1667
1643
|
Ci.__file = "src/components/DocumentEditor.vue";
|
|
1668
|
-
const Hs = /* @__PURE__ */
|
|
1644
|
+
const Hs = /* @__PURE__ */ te({
|
|
1669
1645
|
__name: "IkOnlyOffice",
|
|
1670
1646
|
props: {
|
|
1671
1647
|
// 文件服务器的服务的地址
|
|
@@ -1694,10 +1670,10 @@ const Hs = /* @__PURE__ */ ie({
|
|
|
1694
1670
|
}), t = () => {
|
|
1695
1671
|
console.info("文档加载完成", o.configOptions);
|
|
1696
1672
|
};
|
|
1697
|
-
return (e, i) => (
|
|
1673
|
+
return (e, i) => (E(), I(
|
|
1698
1674
|
"div",
|
|
1699
1675
|
{
|
|
1700
|
-
style:
|
|
1676
|
+
style: yt({ height: o.officeHeight })
|
|
1701
1677
|
},
|
|
1702
1678
|
[
|
|
1703
1679
|
B(k(Ci), {
|
|
@@ -1712,7 +1688,7 @@ const Hs = /* @__PURE__ */ ie({
|
|
|
1712
1688
|
/* STYLE */
|
|
1713
1689
|
));
|
|
1714
1690
|
}
|
|
1715
|
-
}), Us =
|
|
1691
|
+
}), Us = Ge(Hs);
|
|
1716
1692
|
var $i;
|
|
1717
1693
|
const Un = typeof window < "u", zs = (a) => typeof a == "string", Vs = () => {
|
|
1718
1694
|
};
|
|
@@ -1739,7 +1715,7 @@ function wt(...a) {
|
|
|
1739
1715
|
Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
|
|
1740
1716
|
const i = [], n = () => {
|
|
1741
1717
|
i.forEach((c) => c()), i.length = 0;
|
|
1742
|
-
}, s = (c, f, d, g) => (c.addEventListener(f, d, g), () => c.removeEventListener(f, d, g)), l =
|
|
1718
|
+
}, s = (c, f, d, g) => (c.addEventListener(f, d, g), () => c.removeEventListener(f, d, g)), l = vt(() => [Gs(o), zn(e)], ([c, f]) => {
|
|
1743
1719
|
n(), c && i.push(...r.flatMap((d) => t.map((g) => s(c, d, g, f))));
|
|
1744
1720
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
1745
1721
|
l(), n();
|
|
@@ -1863,7 +1839,7 @@ const Js = {
|
|
|
1863
1839
|
close: () => !0,
|
|
1864
1840
|
switch: (a) => Ui.isNumber(a),
|
|
1865
1841
|
rotate: (a) => Ui.isNumber(a)
|
|
1866
|
-
}, ea = ["src", "crossorigin"], ta = /* @__PURE__ */
|
|
1842
|
+
}, ea = ["src", "crossorigin"], ta = /* @__PURE__ */ te({
|
|
1867
1843
|
name: "ElImageViewer",
|
|
1868
1844
|
__name: "IkImageViewer",
|
|
1869
1845
|
props: Js,
|
|
@@ -1884,7 +1860,7 @@ const Js = {
|
|
|
1884
1860
|
offsetX: 0,
|
|
1885
1861
|
offsetY: 0,
|
|
1886
1862
|
enableTransition: !1
|
|
1887
|
-
}), C = me(i.zIndex ?? u()),
|
|
1863
|
+
}), C = me(i.zIndex ?? u()), S = se(() => {
|
|
1888
1864
|
const { urlList: D } = i;
|
|
1889
1865
|
return D.length <= 1;
|
|
1890
1866
|
}), T = se(() => p.value === 0), W = se(() => p.value === i.urlList.length - 1), U = se(() => i.urlList[p.value]), X = se(() => [
|
|
@@ -1897,47 +1873,47 @@ const Js = {
|
|
|
1897
1873
|
l.is("disabled", !i.infinite && W.value)
|
|
1898
1874
|
]), oe = se(() => {
|
|
1899
1875
|
const { scale: D, deg: z, offsetX: Q, offsetY: pe, enableTransition: _e } = y.value;
|
|
1900
|
-
let ke = Q / D,
|
|
1901
|
-
const
|
|
1902
|
-
ke = ke * Oi +
|
|
1903
|
-
const
|
|
1904
|
-
transform: `scale(${D}) rotate(${z}deg) translate(${ke}px, ${
|
|
1876
|
+
let ke = Q / D, He = pe / D;
|
|
1877
|
+
const ft = z * Math.PI / 180, Oi = Math.cos(ft), Mi = Math.sin(ft);
|
|
1878
|
+
ke = ke * Oi + He * Mi, He = He * Oi - Q / D * Mi;
|
|
1879
|
+
const Yt = {
|
|
1880
|
+
transform: `scale(${D}) rotate(${z}deg) translate(${ke}px, ${He}px)`,
|
|
1905
1881
|
transition: _e ? "transform .3s" : ""
|
|
1906
1882
|
};
|
|
1907
|
-
return m.value.name === e.CONTAIN.name && (
|
|
1883
|
+
return m.value.name === e.CONTAIN.name && (Yt.maxWidth = Yt.maxHeight = "100%"), Yt;
|
|
1908
1884
|
});
|
|
1909
1885
|
function re() {
|
|
1910
1886
|
ce(), n("close");
|
|
1911
1887
|
}
|
|
1912
1888
|
function j() {
|
|
1913
|
-
const D =
|
|
1889
|
+
const D = qt.throttle((Q) => {
|
|
1914
1890
|
switch (Q.code) {
|
|
1915
1891
|
// ESC
|
|
1916
|
-
case
|
|
1892
|
+
case tt.esc:
|
|
1917
1893
|
i.closeOnPressEscape && re();
|
|
1918
1894
|
break;
|
|
1919
1895
|
// SPACE
|
|
1920
|
-
case
|
|
1896
|
+
case tt.space:
|
|
1921
1897
|
b();
|
|
1922
1898
|
break;
|
|
1923
1899
|
// LEFT_ARROW
|
|
1924
|
-
case
|
|
1900
|
+
case tt.left:
|
|
1925
1901
|
q();
|
|
1926
1902
|
break;
|
|
1927
1903
|
// UP_ARROW
|
|
1928
|
-
case
|
|
1904
|
+
case tt.up:
|
|
1929
1905
|
G("zoomIn");
|
|
1930
1906
|
break;
|
|
1931
1907
|
// RIGHT_ARROW
|
|
1932
|
-
case
|
|
1908
|
+
case tt.right:
|
|
1933
1909
|
x();
|
|
1934
1910
|
break;
|
|
1935
1911
|
// DOWN_ARROW
|
|
1936
|
-
case
|
|
1912
|
+
case tt.down:
|
|
1937
1913
|
G("zoomOut");
|
|
1938
1914
|
break;
|
|
1939
1915
|
}
|
|
1940
|
-
}), z =
|
|
1916
|
+
}), z = qt.throttle((Q) => {
|
|
1941
1917
|
const pe = Q.deltaY || Q.deltaX;
|
|
1942
1918
|
G(pe < 0 ? "zoomIn" : "zoomOut", {
|
|
1943
1919
|
zoomRate: i.zoomRate,
|
|
@@ -1960,18 +1936,18 @@ const Js = {
|
|
|
1960
1936
|
function ye(D) {
|
|
1961
1937
|
if (g.value || D.button !== 0 || !c.value) return;
|
|
1962
1938
|
y.value.enableTransition = !1;
|
|
1963
|
-
const { offsetX: z, offsetY: Q } = y.value, pe = D.pageX, _e = D.pageY, ke =
|
|
1939
|
+
const { offsetX: z, offsetY: Q } = y.value, pe = D.pageX, _e = D.pageY, ke = qt.throttle((ft) => {
|
|
1964
1940
|
y.value = {
|
|
1965
1941
|
...y.value,
|
|
1966
|
-
offsetX: z +
|
|
1967
|
-
offsetY: Q +
|
|
1942
|
+
offsetX: z + ft.pageX - pe,
|
|
1943
|
+
offsetY: Q + ft.pageY - _e
|
|
1968
1944
|
};
|
|
1969
|
-
}),
|
|
1945
|
+
}), He = wt(document, "mousemove", ke);
|
|
1970
1946
|
wt(document, "mouseup", () => {
|
|
1971
|
-
|
|
1947
|
+
He();
|
|
1972
1948
|
}), D.preventDefault();
|
|
1973
1949
|
}
|
|
1974
|
-
function
|
|
1950
|
+
function et() {
|
|
1975
1951
|
y.value = {
|
|
1976
1952
|
scale: 1,
|
|
1977
1953
|
deg: 0,
|
|
@@ -1983,7 +1959,7 @@ const Js = {
|
|
|
1983
1959
|
function b() {
|
|
1984
1960
|
if (g.value) return;
|
|
1985
1961
|
const D = t(e), z = Object.values(e), Q = m.value.name, _e = ((z == null ? void 0 : z.findIndex((ke) => ke.name === Q)) + 1) % D.length;
|
|
1986
|
-
m.value = e[D[_e]],
|
|
1962
|
+
m.value = e[D[_e]], et();
|
|
1987
1963
|
}
|
|
1988
1964
|
function H(D) {
|
|
1989
1965
|
const z = i.urlList.length;
|
|
@@ -1997,7 +1973,7 @@ const Js = {
|
|
|
1997
1973
|
}
|
|
1998
1974
|
function G(D, z = {}) {
|
|
1999
1975
|
if (g.value) return;
|
|
2000
|
-
const { minScale: Q, maxScale: pe } = i, { zoomRate: _e, rotateDeg: ke, enableTransition:
|
|
1976
|
+
const { minScale: Q, maxScale: pe } = i, { zoomRate: _e, rotateDeg: ke, enableTransition: He } = {
|
|
2001
1977
|
zoomRate: i.zoomRate,
|
|
2002
1978
|
rotateDeg: 90,
|
|
2003
1979
|
enableTransition: !0,
|
|
@@ -2021,15 +1997,15 @@ const Js = {
|
|
|
2021
1997
|
y.value.deg -= ke, n("rotate", y.value.deg);
|
|
2022
1998
|
break;
|
|
2023
1999
|
}
|
|
2024
|
-
y.value.enableTransition =
|
|
2000
|
+
y.value.enableTransition = He;
|
|
2025
2001
|
}
|
|
2026
|
-
return
|
|
2027
|
-
|
|
2002
|
+
return vt(U, () => {
|
|
2003
|
+
mt(() => {
|
|
2028
2004
|
const D = f.value[0];
|
|
2029
2005
|
D != null && D.complete || (g.value = !0);
|
|
2030
2006
|
});
|
|
2031
|
-
}),
|
|
2032
|
-
|
|
2007
|
+
}), vt(p, (D) => {
|
|
2008
|
+
et(), n("switch", D);
|
|
2033
2009
|
}), br(() => {
|
|
2034
2010
|
var D, z;
|
|
2035
2011
|
j(), (z = (D = c.value) == null ? void 0 : D.focus) == null || z.call(D);
|
|
@@ -2038,7 +2014,7 @@ const Js = {
|
|
|
2038
2014
|
* @description manually switch image
|
|
2039
2015
|
*/
|
|
2040
2016
|
setActiveItem: H
|
|
2041
|
-
}), (D, z) => (
|
|
2017
|
+
}), (D, z) => (E(), ie(Rn, { to: "body" }, [
|
|
2042
2018
|
B(On, {
|
|
2043
2019
|
name: "viewer-fade",
|
|
2044
2020
|
appear: ""
|
|
@@ -2050,15 +2026,15 @@ const Js = {
|
|
|
2050
2026
|
ref_key: "wrapper",
|
|
2051
2027
|
ref: c,
|
|
2052
2028
|
tabindex: -1,
|
|
2053
|
-
class:
|
|
2054
|
-
style:
|
|
2029
|
+
class: ne(k(l).e("wrapper")),
|
|
2030
|
+
style: yt({ zIndex: C.value })
|
|
2055
2031
|
},
|
|
2056
2032
|
[
|
|
2057
2033
|
A(
|
|
2058
2034
|
"div",
|
|
2059
2035
|
{
|
|
2060
|
-
class:
|
|
2061
|
-
onClick: z[0] || (z[0] =
|
|
2036
|
+
class: ne(k(l).e("mask")),
|
|
2037
|
+
onClick: z[0] || (z[0] = gt((Q) => D.hideOnClickModal && re(), ["self"]))
|
|
2062
2038
|
},
|
|
2063
2039
|
null,
|
|
2064
2040
|
2
|
|
@@ -2068,7 +2044,7 @@ const Js = {
|
|
|
2068
2044
|
A(
|
|
2069
2045
|
"span",
|
|
2070
2046
|
{
|
|
2071
|
-
class:
|
|
2047
|
+
class: ne([k(l).e("btn"), k(l).e("close")]),
|
|
2072
2048
|
onClick: re
|
|
2073
2049
|
},
|
|
2074
2050
|
[
|
|
@@ -2084,14 +2060,14 @@ const Js = {
|
|
|
2084
2060
|
/* CLASS */
|
|
2085
2061
|
),
|
|
2086
2062
|
J(" ARROW "),
|
|
2087
|
-
|
|
2088
|
-
|
|
2063
|
+
S.value ? J("v-if", !0) : (E(), I(
|
|
2064
|
+
Ae,
|
|
2089
2065
|
{ key: 0 },
|
|
2090
2066
|
[
|
|
2091
2067
|
A(
|
|
2092
2068
|
"span",
|
|
2093
2069
|
{
|
|
2094
|
-
class:
|
|
2070
|
+
class: ne(X.value),
|
|
2095
2071
|
onClick: q
|
|
2096
2072
|
},
|
|
2097
2073
|
[
|
|
@@ -2109,7 +2085,7 @@ const Js = {
|
|
|
2109
2085
|
A(
|
|
2110
2086
|
"span",
|
|
2111
2087
|
{
|
|
2112
|
-
class:
|
|
2088
|
+
class: ne(M.value),
|
|
2113
2089
|
onClick: x
|
|
2114
2090
|
},
|
|
2115
2091
|
[
|
|
@@ -2132,13 +2108,13 @@ const Js = {
|
|
|
2132
2108
|
A(
|
|
2133
2109
|
"div",
|
|
2134
2110
|
{
|
|
2135
|
-
class:
|
|
2111
|
+
class: ne([k(l).e("btn"), k(l).e("actions")])
|
|
2136
2112
|
},
|
|
2137
2113
|
[
|
|
2138
2114
|
A(
|
|
2139
2115
|
"div",
|
|
2140
2116
|
{
|
|
2141
|
-
class:
|
|
2117
|
+
class: ne(k(l).e("actions__inner"))
|
|
2142
2118
|
},
|
|
2143
2119
|
[
|
|
2144
2120
|
B(k(be), {
|
|
@@ -2162,7 +2138,7 @@ const Js = {
|
|
|
2162
2138
|
A(
|
|
2163
2139
|
"i",
|
|
2164
2140
|
{
|
|
2165
|
-
class:
|
|
2141
|
+
class: ne(k(l).e("actions__divider"))
|
|
2166
2142
|
},
|
|
2167
2143
|
null,
|
|
2168
2144
|
2
|
|
@@ -2170,7 +2146,7 @@ const Js = {
|
|
|
2170
2146
|
),
|
|
2171
2147
|
B(k(be), { onClick: b }, {
|
|
2172
2148
|
default: Y(() => [
|
|
2173
|
-
(
|
|
2149
|
+
(E(), ie(Tr(m.value.icon)))
|
|
2174
2150
|
]),
|
|
2175
2151
|
_: 1
|
|
2176
2152
|
/* STABLE */
|
|
@@ -2178,7 +2154,7 @@ const Js = {
|
|
|
2178
2154
|
A(
|
|
2179
2155
|
"i",
|
|
2180
2156
|
{
|
|
2181
|
-
class:
|
|
2157
|
+
class: ne(k(l).e("actions__divider"))
|
|
2182
2158
|
},
|
|
2183
2159
|
null,
|
|
2184
2160
|
2
|
|
@@ -2214,19 +2190,19 @@ const Js = {
|
|
|
2214
2190
|
A(
|
|
2215
2191
|
"div",
|
|
2216
2192
|
{
|
|
2217
|
-
class:
|
|
2193
|
+
class: ne(k(l).e("canvas"))
|
|
2218
2194
|
},
|
|
2219
2195
|
[
|
|
2220
|
-
(
|
|
2221
|
-
|
|
2196
|
+
(E(!0), I(
|
|
2197
|
+
Ae,
|
|
2222
2198
|
null,
|
|
2223
|
-
Mn(D.urlList, (Q, pe) => Er((
|
|
2199
|
+
Mn(D.urlList, (Q, pe) => Er((E(), I("img", {
|
|
2224
2200
|
ref_for: !0,
|
|
2225
2201
|
ref: (_e) => f.value[pe] = _e,
|
|
2226
2202
|
key: Q,
|
|
2227
2203
|
src: Q,
|
|
2228
|
-
style:
|
|
2229
|
-
class:
|
|
2204
|
+
style: yt(oe.value),
|
|
2205
|
+
class: ne(k(l).e("img")),
|
|
2230
2206
|
crossorigin: D.crossorigin,
|
|
2231
2207
|
onLoad: le,
|
|
2232
2208
|
onError: he,
|
|
@@ -2241,7 +2217,7 @@ const Js = {
|
|
|
2241
2217
|
2
|
|
2242
2218
|
/* CLASS */
|
|
2243
2219
|
),
|
|
2244
|
-
|
|
2220
|
+
Re(D.$slots, "default")
|
|
2245
2221
|
],
|
|
2246
2222
|
6
|
|
2247
2223
|
/* CLASS, STYLE */
|
|
@@ -2252,7 +2228,7 @@ const Js = {
|
|
|
2252
2228
|
})
|
|
2253
2229
|
]));
|
|
2254
2230
|
}
|
|
2255
|
-
}), ia =
|
|
2231
|
+
}), ia = Ge(ta);
|
|
2256
2232
|
function Ji(a, o) {
|
|
2257
2233
|
var r = Object.keys(a);
|
|
2258
2234
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -2378,7 +2354,7 @@ function N() {
|
|
|
2378
2354
|
}
|
|
2379
2355
|
}, N.apply(this, arguments);
|
|
2380
2356
|
}
|
|
2381
|
-
function
|
|
2357
|
+
function xe(a) {
|
|
2382
2358
|
return sa(a) || aa(a) || oa(a) || la();
|
|
2383
2359
|
}
|
|
2384
2360
|
function sa(a) {
|
|
@@ -2426,7 +2402,7 @@ function Vn(a) {
|
|
|
2426
2402
|
var o = ua(a, "string");
|
|
2427
2403
|
return typeof o == "symbol" ? o : String(o);
|
|
2428
2404
|
}
|
|
2429
|
-
var
|
|
2405
|
+
var Jt = { exports: {} }, en;
|
|
2430
2406
|
function ca() {
|
|
2431
2407
|
return en || (en = 1, function(a) {
|
|
2432
2408
|
var o = Object.prototype.hasOwnProperty, r = "~";
|
|
@@ -2467,7 +2443,7 @@ function ca() {
|
|
|
2467
2443
|
}, s.prototype.emit = function(u, c, f, d, g, p) {
|
|
2468
2444
|
var m = r ? r + u : u;
|
|
2469
2445
|
if (!this._events[m]) return !1;
|
|
2470
|
-
var y = this._events[m], C = arguments.length,
|
|
2446
|
+
var y = this._events[m], C = arguments.length, S, T;
|
|
2471
2447
|
if (y.fn) {
|
|
2472
2448
|
switch (y.once && this.removeListener(u, y.fn, void 0, !0), C) {
|
|
2473
2449
|
case 1:
|
|
@@ -2483,9 +2459,9 @@ function ca() {
|
|
|
2483
2459
|
case 6:
|
|
2484
2460
|
return y.fn.call(y.context, c, f, d, g, p), !0;
|
|
2485
2461
|
}
|
|
2486
|
-
for (T = 1,
|
|
2487
|
-
|
|
2488
|
-
y.fn.apply(y.context,
|
|
2462
|
+
for (T = 1, S = new Array(C - 1); T < C; T++)
|
|
2463
|
+
S[T - 1] = arguments[T];
|
|
2464
|
+
y.fn.apply(y.context, S);
|
|
2489
2465
|
} else {
|
|
2490
2466
|
var W = y.length, U;
|
|
2491
2467
|
for (T = 0; T < W; T++)
|
|
@@ -2503,9 +2479,9 @@ function ca() {
|
|
|
2503
2479
|
y[T].fn.call(y[T].context, c, f, d);
|
|
2504
2480
|
break;
|
|
2505
2481
|
default:
|
|
2506
|
-
if (!
|
|
2507
|
-
|
|
2508
|
-
y[T].fn.apply(y[T].context,
|
|
2482
|
+
if (!S) for (U = 1, S = new Array(C - 1); U < C; U++)
|
|
2483
|
+
S[U - 1] = arguments[U];
|
|
2484
|
+
y[T].fn.apply(y[T].context, S);
|
|
2509
2485
|
}
|
|
2510
2486
|
}
|
|
2511
2487
|
return !0;
|
|
@@ -2531,34 +2507,34 @@ function ca() {
|
|
|
2531
2507
|
var c;
|
|
2532
2508
|
return u ? (c = r ? r + u : u, this._events[c] && n(this, c)) : (this._events = new t(), this._eventsCount = 0), this;
|
|
2533
2509
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, a.exports = s;
|
|
2534
|
-
}(
|
|
2510
|
+
}(Jt)), Jt.exports;
|
|
2535
2511
|
}
|
|
2536
2512
|
var jn = ca();
|
|
2537
2513
|
const Wn = /* @__PURE__ */ ki(jn);
|
|
2538
|
-
var fa = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1,
|
|
2514
|
+
var fa = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Qt = {
|
|
2539
2515
|
info: "color: #525252; background-color: #90ee90;",
|
|
2540
2516
|
error: "color: #525252; background-color: red;",
|
|
2541
2517
|
warn: "color: #525252; background-color: yellow; "
|
|
2542
|
-
},
|
|
2518
|
+
}, ei = "%c[xgplayer]", $ = {
|
|
2543
2519
|
config: {
|
|
2544
2520
|
debug: fa ? 3 : 0
|
|
2545
2521
|
},
|
|
2546
2522
|
logInfo: function(o) {
|
|
2547
2523
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
2548
2524
|
e[i - 1] = arguments[i];
|
|
2549
|
-
this.config.debug >= 3 && (r = console).log.apply(r, [
|
|
2525
|
+
this.config.debug >= 3 && (r = console).log.apply(r, [ei, Qt.info, o].concat(e));
|
|
2550
2526
|
},
|
|
2551
2527
|
logWarn: function(o) {
|
|
2552
2528
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
2553
2529
|
e[i - 1] = arguments[i];
|
|
2554
|
-
this.config.debug >= 1 && (r = console).warn.apply(r, [
|
|
2530
|
+
this.config.debug >= 1 && (r = console).warn.apply(r, [ei, Qt.warn, o].concat(e));
|
|
2555
2531
|
},
|
|
2556
2532
|
logError: function(o) {
|
|
2557
2533
|
var r;
|
|
2558
2534
|
if (!(this.config.debug < 1)) {
|
|
2559
2535
|
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++)
|
|
2560
2536
|
i[n - 1] = arguments[n];
|
|
2561
|
-
(r = console)[t].apply(r, [
|
|
2537
|
+
(r = console)[t].apply(r, [ei, Qt.error, o].concat(i));
|
|
2562
2538
|
}
|
|
2563
2539
|
}
|
|
2564
2540
|
};
|
|
@@ -2700,7 +2676,7 @@ h.deepMerge = function(a, o) {
|
|
|
2700
2676
|
if (h.typeOf(o[r]) === "Array" && h.typeOf(a[r]) === "Array") {
|
|
2701
2677
|
if (h.typeOf(a[r]) === "Array") {
|
|
2702
2678
|
var t;
|
|
2703
|
-
(t = a[r]).push.apply(t,
|
|
2679
|
+
(t = a[r]).push.apply(t, xe(o[r]));
|
|
2704
2680
|
}
|
|
2705
2681
|
} else h.typeOf(a[r]) === h.typeOf(o[r]) && a[r] !== null && h.typeOf(a[r]) === "Object" && !(o[r] instanceof window.Node) ? h.deepMerge(a[r], o[r]) : o[r] !== null && (a[r] = o[r]);
|
|
2706
2682
|
}), a;
|
|
@@ -3033,7 +3009,7 @@ function pa(a, o, r) {
|
|
|
3033
3009
|
function C(j) {
|
|
3034
3010
|
return u = j, s = m(W, o), c ? p(j) : n;
|
|
3035
3011
|
}
|
|
3036
|
-
function
|
|
3012
|
+
function S(j) {
|
|
3037
3013
|
var ce = j - l, le = j - u, he = o - ce;
|
|
3038
3014
|
return f ? Math.min(he, i - le) : he;
|
|
3039
3015
|
}
|
|
@@ -3045,7 +3021,7 @@ function pa(a, o, r) {
|
|
|
3045
3021
|
var j = Date.now();
|
|
3046
3022
|
if (T(j))
|
|
3047
3023
|
return U(j);
|
|
3048
|
-
s = m(W,
|
|
3024
|
+
s = m(W, S(j));
|
|
3049
3025
|
}
|
|
3050
3026
|
function U(j) {
|
|
3051
3027
|
return s = void 0, d && t ? p(j) : (t = e = void 0, n);
|
|
@@ -3211,7 +3187,7 @@ var tn = {
|
|
|
3211
3187
|
4: 5104,
|
|
3212
3188
|
5: 5105,
|
|
3213
3189
|
6: 5106
|
|
3214
|
-
},
|
|
3190
|
+
}, Lt = /* @__PURE__ */ L(
|
|
3215
3191
|
function a(o) {
|
|
3216
3192
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
3217
3193
|
errorType: "",
|
|
@@ -3241,8 +3217,8 @@ var tn = {
|
|
|
3241
3217
|
originError: r.originError ? r.originError.stack : "",
|
|
3242
3218
|
host: h.getHostFromUrl(l || u)
|
|
3243
3219
|
};
|
|
3244
|
-
return r.ext && Object.keys(r.ext).map(function(
|
|
3245
|
-
p[
|
|
3220
|
+
return r.ext && Object.keys(r.ext).map(function(S) {
|
|
3221
|
+
p[S] = r.ext[S];
|
|
3246
3222
|
}), p;
|
|
3247
3223
|
} else if (arguments.length > 1) {
|
|
3248
3224
|
for (var m = {
|
|
@@ -3253,7 +3229,7 @@ var tn = {
|
|
|
3253
3229
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
3254
3230
|
}
|
|
3255
3231
|
}
|
|
3256
|
-
), Se = "play", bi = "playing",
|
|
3232
|
+
), Se = "play", bi = "playing", Ze = "ended", ct = "pause", kt = "error", jt = "seeking", Fe = "seeked", Ee = "timeupdate", Ct = "waiting", Me = "canplay", ka = "canplaythrough", Be = "durationchange", $n = "volumechange", Ne = "loadeddata", Ca = "loadedmetadata", Kn = "ratechange", Yn = "progress", Ti = "loadstart", Je = "emptied", wa = "stalled", ba = "suspend", Ta = "abort", Ea = "bufferedChange", Ei = "focus", Xn = "blur", Si = "ready", qn = "urlNull", qe = "autoplay_started", Ai = "autoplay_was_prevented", Wt = "complete", Dt = "replay", xi = "destroy", Gt = "urlchange", mi = "download_speed_change", Zn = "leaveplayer", Jn = "enterplayer", Qn = "loading", Oe = "fullscreen_change", Rt = "cssFullscreen_change", Ot = "mini_state_change", Ii = "definition_change", Sa = "before_definition_change", yi = "after_definition_change", Aa = "SEI_PARSED", xa = "retry", je = "video_resize", _i = "pip_change", er = "rotate", tr = "screenShot", Mt = "playnext", ir = "shortcut", nr = "xglog", Ft = "user_action", $t = "reset", rr = "source_error", sr = "source_success", Ia = "switch_subtitle", ar = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], or = {
|
|
3257
3233
|
STATS_INFO: "stats_info",
|
|
3258
3234
|
STATS_DOWNLOAD: "stats_download",
|
|
3259
3235
|
STATS_RESET: "stats_reset"
|
|
@@ -3263,46 +3239,46 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3263
3239
|
ABORT: Ta,
|
|
3264
3240
|
AFTER_DEFINITION_CHANGE: yi,
|
|
3265
3241
|
AUTOPLAY_PREVENTED: Ai,
|
|
3266
|
-
AUTOPLAY_STARTED:
|
|
3242
|
+
AUTOPLAY_STARTED: qe,
|
|
3267
3243
|
BEFORE_DEFINITION_CHANGE: Sa,
|
|
3268
3244
|
BUFFER_CHANGE: Ea,
|
|
3269
|
-
CANPLAY:
|
|
3245
|
+
CANPLAY: Me,
|
|
3270
3246
|
CANPLAY_THROUGH: ka,
|
|
3271
|
-
COMPLETE:
|
|
3272
|
-
CSS_FULLSCREEN_CHANGE:
|
|
3247
|
+
COMPLETE: Wt,
|
|
3248
|
+
CSS_FULLSCREEN_CHANGE: Rt,
|
|
3273
3249
|
DEFINITION_CHANGE: Ii,
|
|
3274
3250
|
DESTROY: xi,
|
|
3275
3251
|
DOWNLOAD_SPEED_CHANGE: mi,
|
|
3276
|
-
DURATION_CHANGE:
|
|
3277
|
-
EMPTIED:
|
|
3278
|
-
ENDED:
|
|
3252
|
+
DURATION_CHANGE: Be,
|
|
3253
|
+
EMPTIED: Je,
|
|
3254
|
+
ENDED: Ze,
|
|
3279
3255
|
ENTER_PLAYER: Jn,
|
|
3280
3256
|
ERROR: kt,
|
|
3281
3257
|
FPS_STUCK: lr,
|
|
3282
|
-
FULLSCREEN_CHANGE:
|
|
3258
|
+
FULLSCREEN_CHANGE: Oe,
|
|
3283
3259
|
LEAVE_PLAYER: Zn,
|
|
3284
|
-
LOADED_DATA:
|
|
3260
|
+
LOADED_DATA: Ne,
|
|
3285
3261
|
LOADED_METADATA: Ca,
|
|
3286
3262
|
LOADING: Qn,
|
|
3287
3263
|
LOAD_START: Ti,
|
|
3288
|
-
MINI_STATE_CHANGE:
|
|
3289
|
-
PAUSE:
|
|
3264
|
+
MINI_STATE_CHANGE: Ot,
|
|
3265
|
+
PAUSE: ct,
|
|
3290
3266
|
PIP_CHANGE: _i,
|
|
3291
3267
|
PLAY: Se,
|
|
3292
3268
|
PLAYER_BLUR: Xn,
|
|
3293
3269
|
PLAYER_FOCUS: Ei,
|
|
3294
3270
|
PLAYING: bi,
|
|
3295
|
-
PLAYNEXT:
|
|
3271
|
+
PLAYNEXT: Mt,
|
|
3296
3272
|
PROGRESS: Yn,
|
|
3297
3273
|
RATE_CHANGE: Kn,
|
|
3298
3274
|
READY: Si,
|
|
3299
|
-
REPLAY:
|
|
3300
|
-
RESET:
|
|
3275
|
+
REPLAY: Dt,
|
|
3276
|
+
RESET: $t,
|
|
3301
3277
|
RETRY: xa,
|
|
3302
3278
|
ROTATE: er,
|
|
3303
3279
|
SCREEN_SHOT: tr,
|
|
3304
|
-
SEEKED:
|
|
3305
|
-
SEEKING:
|
|
3280
|
+
SEEKED: Fe,
|
|
3281
|
+
SEEKING: jt,
|
|
3306
3282
|
SEI_PARSED: Aa,
|
|
3307
3283
|
SHORTCUT: ir,
|
|
3308
3284
|
SOURCE_ERROR: rr,
|
|
@@ -3312,16 +3288,16 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3312
3288
|
SUSPEND: ba,
|
|
3313
3289
|
SWITCH_SUBTITLE: Ia,
|
|
3314
3290
|
TIME_UPDATE: Ee,
|
|
3315
|
-
URL_CHANGE:
|
|
3291
|
+
URL_CHANGE: Gt,
|
|
3316
3292
|
URL_NULL: qn,
|
|
3317
|
-
USER_ACTION:
|
|
3293
|
+
USER_ACTION: Ft,
|
|
3318
3294
|
VIDEO_EVENTS: ar,
|
|
3319
|
-
VIDEO_RESIZE:
|
|
3295
|
+
VIDEO_RESIZE: je,
|
|
3320
3296
|
VOLUME_CHANGE: $n,
|
|
3321
3297
|
WAITING: Ct,
|
|
3322
3298
|
XGLOG: nr
|
|
3323
3299
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3324
|
-
function
|
|
3300
|
+
function ti(a, o) {
|
|
3325
3301
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
|
|
3326
3302
|
}
|
|
3327
3303
|
function La(a, o) {
|
|
@@ -3349,14 +3325,14 @@ function La(a, o) {
|
|
|
3349
3325
|
o._rate = o.media && o.media.playbackRate;
|
|
3350
3326
|
}
|
|
3351
3327
|
if (a === "durationchange" && (o._duration = o.media.duration), a === "volumechange" && (e.isMutedChange = o._lastMuted !== o.muted, o._lastMuted = o.muted), a === "error" && (e.error = t || o.video.error), o.mediaEventMiddleware[a]) {
|
|
3352
|
-
var n =
|
|
3328
|
+
var n = ti.bind(o, a, e);
|
|
3353
3329
|
try {
|
|
3354
3330
|
o.mediaEventMiddleware[a].call(o, e, n);
|
|
3355
3331
|
} catch (s) {
|
|
3356
|
-
throw
|
|
3332
|
+
throw ti.call(o, a, e), s;
|
|
3357
3333
|
}
|
|
3358
3334
|
} else
|
|
3359
|
-
|
|
3335
|
+
ti.call(o, a, e);
|
|
3360
3336
|
};
|
|
3361
3337
|
}
|
|
3362
3338
|
var Da = /* @__PURE__ */ function(a) {
|
|
@@ -3455,7 +3431,7 @@ var Da = /* @__PURE__ */ function(a) {
|
|
|
3455
3431
|
l ? l.error(f, g) : n.errorHandler("error", g);
|
|
3456
3432
|
}
|
|
3457
3433
|
var p = nn[4];
|
|
3458
|
-
n.emit(rr, new
|
|
3434
|
+
n.emit(rr, new Lt(n, {
|
|
3459
3435
|
errorType: p,
|
|
3460
3436
|
errorCode: 4,
|
|
3461
3437
|
errorMessage: "sources_load_error",
|
|
@@ -3492,7 +3468,7 @@ var Da = /* @__PURE__ */ function(a) {
|
|
|
3492
3468
|
this.media.currentSrc || (l = "empty_src", n = {
|
|
3493
3469
|
code: 6,
|
|
3494
3470
|
message: l
|
|
3495
|
-
}), this.emit(e, new
|
|
3471
|
+
}), this.emit(e, new Lt(this, {
|
|
3496
3472
|
errorType: s,
|
|
3497
3473
|
errorCode: n.code,
|
|
3498
3474
|
errorMessage: n.message || "",
|
|
@@ -3713,7 +3689,7 @@ var Da = /* @__PURE__ */ function(a) {
|
|
|
3713
3689
|
},
|
|
3714
3690
|
set: function(e) {
|
|
3715
3691
|
if (this.media) {
|
|
3716
|
-
if (this.emit(
|
|
3692
|
+
if (this.emit(Gt, e), this.emit(Ct), this._currentTime = 0, this._duration = 0, h.isMSE(this.media)) {
|
|
3717
3693
|
this.onWaiting();
|
|
3718
3694
|
return;
|
|
3719
3695
|
}
|
|
@@ -3855,7 +3831,7 @@ var Da = /* @__PURE__ */ function(a) {
|
|
|
3855
3831
|
t.clear();
|
|
3856
3832
|
}
|
|
3857
3833
|
}]), a;
|
|
3858
|
-
}(), sn = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], an = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], on = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"],
|
|
3834
|
+
}(), sn = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], an = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], on = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Ye = "data-xgplayerid";
|
|
3859
3835
|
function bt(a, o, r) {
|
|
3860
3836
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
3861
3837
|
e[i - 3] = arguments[i];
|
|
@@ -3866,7 +3842,7 @@ function bt(a, o, r) {
|
|
|
3866
3842
|
r.call.apply(r, [a].concat(l));
|
|
3867
3843
|
}) : r.call.apply(r, [a].concat(e)));
|
|
3868
3844
|
}
|
|
3869
|
-
function
|
|
3845
|
+
function Nt(a, o) {
|
|
3870
3846
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
3871
3847
|
pre: null,
|
|
3872
3848
|
next: null
|
|
@@ -3882,9 +3858,9 @@ function Ft(a, o) {
|
|
|
3882
3858
|
}
|
|
3883
3859
|
if (this.__hooks && this.__hooks[a])
|
|
3884
3860
|
try {
|
|
3885
|
-
var n =
|
|
3861
|
+
var n = De(this, a, o);
|
|
3886
3862
|
n ? n.then ? n.then(function(s) {
|
|
3887
|
-
s !== !1 && bt.apply(void 0, [e, o, r.next].concat(
|
|
3863
|
+
s !== !1 && bt.apply(void 0, [e, o, r.next].concat(xe(t)));
|
|
3888
3864
|
}).catch(function(s) {
|
|
3889
3865
|
throw s;
|
|
3890
3866
|
}) : bt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : n === void 0 && bt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
@@ -3904,12 +3880,12 @@ function ur(a, o) {
|
|
|
3904
3880
|
return e;
|
|
3905
3881
|
return -1;
|
|
3906
3882
|
}
|
|
3907
|
-
function
|
|
3883
|
+
function Bt(a, o) {
|
|
3908
3884
|
var r = this.__hooks;
|
|
3909
3885
|
if (r)
|
|
3910
3886
|
return r.hasOwnProperty(a) ? (Array.isArray(r[a]) || (r[a] = []), ur.call(this, a, o) === -1 && r[a].push(o), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
|
|
3911
3887
|
}
|
|
3912
|
-
function
|
|
3888
|
+
function Ht(a, o) {
|
|
3913
3889
|
var r = this.__hooks;
|
|
3914
3890
|
if (r) {
|
|
3915
3891
|
if (Array.isArray(r[a])) {
|
|
@@ -3952,7 +3928,7 @@ function cr(a) {
|
|
|
3952
3928
|
function fr(a) {
|
|
3953
3929
|
a.__hooks = null;
|
|
3954
3930
|
}
|
|
3955
|
-
function
|
|
3931
|
+
function De(a, o, r) {
|
|
3956
3932
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
3957
3933
|
e[i - 3] = arguments[i];
|
|
3958
3934
|
if (a.__hooks && Array.isArray(a.__hooks[o])) {
|
|
@@ -3963,10 +3939,10 @@ function Re(a, o, r) {
|
|
|
3963
3939
|
return d.call.apply(d, [c, c].concat(p));
|
|
3964
3940
|
var y = n[s], C = y.call.apply(y, [c, c].concat(p));
|
|
3965
3941
|
if (C && C.then)
|
|
3966
|
-
return C.then(function(
|
|
3967
|
-
return
|
|
3968
|
-
}).catch(function(
|
|
3969
|
-
console.warn("[runHooks]".concat(f, " reject"),
|
|
3942
|
+
return C.then(function(S) {
|
|
3943
|
+
return S === !1 ? null : u.apply(void 0, [c, f, d].concat(p));
|
|
3944
|
+
}).catch(function(S) {
|
|
3945
|
+
console.warn("[runHooks]".concat(f, " reject"), S.message);
|
|
3970
3946
|
});
|
|
3971
3947
|
if (C !== !1)
|
|
3972
3948
|
return u.apply(void 0, [c, f, d].concat(p));
|
|
@@ -3975,10 +3951,10 @@ function Re(a, o, r) {
|
|
|
3975
3951
|
} else
|
|
3976
3952
|
return r.call.apply(r, [a, a].concat(e));
|
|
3977
3953
|
}
|
|
3978
|
-
function
|
|
3954
|
+
function ii(a, o) {
|
|
3979
3955
|
$.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
|
|
3980
3956
|
}
|
|
3981
|
-
var
|
|
3957
|
+
var We = /* @__PURE__ */ function() {
|
|
3982
3958
|
function a(o) {
|
|
3983
3959
|
P(this, a), h.checkIsFunction(this.beforeCreate) && this.beforeCreate(o), cr(this), this.__args = o, this.__events = {}, this.__onceEvents = {}, this.config = o.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(o);
|
|
3984
3960
|
}
|
|
@@ -4042,7 +4018,7 @@ var Ge = /* @__PURE__ */ function() {
|
|
|
4042
4018
|
value: function(r, t) {
|
|
4043
4019
|
var e = this;
|
|
4044
4020
|
if (!r || !t || !this.player) {
|
|
4045
|
-
|
|
4021
|
+
ii(this.pluginName, "plugin.on(event, callback)");
|
|
4046
4022
|
return;
|
|
4047
4023
|
}
|
|
4048
4024
|
typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -4054,7 +4030,7 @@ var Ge = /* @__PURE__ */ function() {
|
|
|
4054
4030
|
value: function(r, t) {
|
|
4055
4031
|
var e = this;
|
|
4056
4032
|
if (!r || !t || !this.player) {
|
|
4057
|
-
|
|
4033
|
+
ii(this.pluginName, "plugin.once(event, callback)");
|
|
4058
4034
|
return;
|
|
4059
4035
|
}
|
|
4060
4036
|
typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -4066,7 +4042,7 @@ var Ge = /* @__PURE__ */ function() {
|
|
|
4066
4042
|
value: function(r, t) {
|
|
4067
4043
|
var e = this;
|
|
4068
4044
|
if (!r || !t || !this.player) {
|
|
4069
|
-
|
|
4045
|
+
ii(this.pluginName, "plugin.off(event, callback)");
|
|
4070
4046
|
return;
|
|
4071
4047
|
}
|
|
4072
4048
|
typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -4107,21 +4083,21 @@ var Ge = /* @__PURE__ */ function() {
|
|
|
4107
4083
|
}, {
|
|
4108
4084
|
key: "hook",
|
|
4109
4085
|
value: function(r, t) {
|
|
4110
|
-
return
|
|
4086
|
+
return Nt.call.apply(Nt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
4111
4087
|
}
|
|
4112
4088
|
}, {
|
|
4113
4089
|
key: "useHooks",
|
|
4114
4090
|
value: function(r, t) {
|
|
4115
4091
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
4116
4092
|
i[n - 2] = arguments[n];
|
|
4117
|
-
return
|
|
4093
|
+
return Bt.call.apply(Bt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
4118
4094
|
}
|
|
4119
4095
|
}, {
|
|
4120
4096
|
key: "removeHooks",
|
|
4121
4097
|
value: function(r, t) {
|
|
4122
4098
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
4123
4099
|
i[n - 2] = arguments[n];
|
|
4124
|
-
return
|
|
4100
|
+
return Ht.call.apply(Ht, [this].concat(Array.prototype.slice.call(arguments)));
|
|
4125
4101
|
}
|
|
4126
4102
|
}, {
|
|
4127
4103
|
key: "registerPlugin",
|
|
@@ -4172,9 +4148,9 @@ var Ge = /* @__PURE__ */ function() {
|
|
|
4172
4148
|
return "pluginName";
|
|
4173
4149
|
}
|
|
4174
4150
|
}]), a;
|
|
4175
|
-
}(),
|
|
4151
|
+
}(), ni, cn;
|
|
4176
4152
|
function Oa() {
|
|
4177
|
-
if (cn) return
|
|
4153
|
+
if (cn) return ni;
|
|
4178
4154
|
cn = 1;
|
|
4179
4155
|
var a = 9;
|
|
4180
4156
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
@@ -4188,11 +4164,11 @@ function Oa() {
|
|
|
4188
4164
|
t = t.parentNode;
|
|
4189
4165
|
}
|
|
4190
4166
|
}
|
|
4191
|
-
return
|
|
4167
|
+
return ni = r, ni;
|
|
4192
4168
|
}
|
|
4193
|
-
var
|
|
4169
|
+
var ri, fn;
|
|
4194
4170
|
function Ma() {
|
|
4195
|
-
if (fn) return
|
|
4171
|
+
if (fn) return ri;
|
|
4196
4172
|
fn = 1;
|
|
4197
4173
|
var a = Oa();
|
|
4198
4174
|
function o(e, i, n, s, l) {
|
|
@@ -4213,7 +4189,7 @@ function Ma() {
|
|
|
4213
4189
|
l.delegateTarget = a(l.target, i), l.delegateTarget && s.call(e, l);
|
|
4214
4190
|
};
|
|
4215
4191
|
}
|
|
4216
|
-
return
|
|
4192
|
+
return ri = r, ri;
|
|
4217
4193
|
}
|
|
4218
4194
|
var Fa = Ma();
|
|
4219
4195
|
const hn = /* @__PURE__ */ ki(Fa);
|
|
@@ -4234,7 +4210,7 @@ var Na = {
|
|
|
4234
4210
|
ICON_DISABLE: "xg-icon-disable",
|
|
4235
4211
|
ICON_HIDE: "xg-icon-hide"
|
|
4236
4212
|
};
|
|
4237
|
-
function
|
|
4213
|
+
function si(a) {
|
|
4238
4214
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
4239
4215
|
}
|
|
4240
4216
|
function Ba(a, o) {
|
|
@@ -4251,8 +4227,8 @@ function gn(a, o) {
|
|
|
4251
4227
|
return h.addClass(a, r), Object.keys(t).map(function(n) {
|
|
4252
4228
|
a.setAttribute(n, t[n]);
|
|
4253
4229
|
}), a;
|
|
4254
|
-
if (
|
|
4255
|
-
return t.src =
|
|
4230
|
+
if (si(a) || si(a.url))
|
|
4231
|
+
return t.src = si(a) ? a : a.url || "", i = h.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
|
|
4256
4232
|
if (typeof a == "function")
|
|
4257
4233
|
try {
|
|
4258
4234
|
return i = a(), i instanceof window.Element ? (h.addClass(i, r), Object.keys(t).map(function(n) {
|
|
@@ -4572,7 +4548,7 @@ var Z = /* @__PURE__ */ function(a) {
|
|
|
4572
4548
|
return ee;
|
|
4573
4549
|
}
|
|
4574
4550
|
}]), r;
|
|
4575
|
-
}(
|
|
4551
|
+
}(We), Va = /* @__PURE__ */ function() {
|
|
4576
4552
|
function a() {
|
|
4577
4553
|
var o = this;
|
|
4578
4554
|
if (P(this, a), _(this, "__trigger", function(r) {
|
|
@@ -4594,7 +4570,7 @@ var Z = /* @__PURE__ */ function(a) {
|
|
|
4594
4570
|
value: function(r, t) {
|
|
4595
4571
|
if (this.observer) {
|
|
4596
4572
|
this.observer.observe(r);
|
|
4597
|
-
for (var e = r.getAttribute(
|
|
4573
|
+
for (var e = r.getAttribute(Ye), i = this.__handlers, n = -1, s = 0; s < i.length; s++)
|
|
4598
4574
|
i[s] && r === i[s].target && (n = s);
|
|
4599
4575
|
n > -1 ? this.__handlers[n].handler = t : this.__handlers.push({
|
|
4600
4576
|
target: r,
|
|
@@ -4638,13 +4614,13 @@ var Z = /* @__PURE__ */ function(a) {
|
|
|
4638
4614
|
return !1;
|
|
4639
4615
|
}
|
|
4640
4616
|
}]), a;
|
|
4641
|
-
}(),
|
|
4617
|
+
}(), pt = null;
|
|
4642
4618
|
function ja(a, o) {
|
|
4643
|
-
return
|
|
4619
|
+
return pt || (pt = new Va()), pt.addObserver(a, o), pt;
|
|
4644
4620
|
}
|
|
4645
4621
|
function Wa(a, o) {
|
|
4646
4622
|
var r;
|
|
4647
|
-
(r =
|
|
4623
|
+
(r = pt) === null || r === void 0 || r.unObserver(a, o);
|
|
4648
4624
|
}
|
|
4649
4625
|
var fe = {
|
|
4650
4626
|
pluginGroup: {},
|
|
@@ -4962,11 +4938,11 @@ var Ga = function(o, r) {
|
|
|
4962
4938
|
var t, e, i;
|
|
4963
4939
|
r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
|
|
4964
4940
|
var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, f = n.icons, d = f === void 0 ? {} : f, g = n.i18n, p = g === void 0 ? [] : g;
|
|
4965
|
-
o.config.plugins || (o.config.plugins = []), o.config.ignores || (o.config.ignores = []), (t = o.config.plugins).push.apply(t,
|
|
4941
|
+
o.config.plugins || (o.config.plugins = []), o.config.ignores || (o.config.ignores = []), (t = o.config.plugins).push.apply(t, xe(l)), (e = o.config.ignores).push.apply(e, xe(c)), Object.keys(d).map(function(y) {
|
|
4966
4942
|
o.config.icons[y] || (o.config.icons[y] = d[y]);
|
|
4967
4943
|
});
|
|
4968
4944
|
var m = o.config.i18n || [];
|
|
4969
|
-
p.push.apply(p,
|
|
4945
|
+
p.push.apply(p, xe(m)), o.config.i18n = p;
|
|
4970
4946
|
}, $a = /* @__PURE__ */ function(a) {
|
|
4971
4947
|
R(r, a);
|
|
4972
4948
|
var o = O(r);
|
|
@@ -5001,7 +4977,7 @@ var Ga = function(o, r) {
|
|
|
5001
4977
|
};
|
|
5002
4978
|
Object.keys(u).map(function(f) {
|
|
5003
4979
|
e.root.style[f] = u[f];
|
|
5004
|
-
}), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(
|
|
4980
|
+
}), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(Ot, function(f) {
|
|
5005
4981
|
f ? h.addClass(e.root, "mini-controls") : h.removeClass(e.root, "mini-controls");
|
|
5006
4982
|
});
|
|
5007
4983
|
var c = this.playerConfig.isMobileSimulateMode;
|
|
@@ -5213,7 +5189,7 @@ function _t(a, o) {
|
|
|
5213
5189
|
var t = h.typeOf(o[r]), e = h.typeOf(a[r]);
|
|
5214
5190
|
if (t === "Array") {
|
|
5215
5191
|
var i;
|
|
5216
|
-
e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i,
|
|
5192
|
+
e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, xe(o[r]));
|
|
5217
5193
|
} else t === "Object" ? (e !== "Object" && (a[r] = {}), _t(a[r], o[r])) : a[r] = o[r];
|
|
5218
5194
|
}), a;
|
|
5219
5195
|
}
|
|
@@ -5252,10 +5228,10 @@ function Xa(a) {
|
|
|
5252
5228
|
textKeys: {},
|
|
5253
5229
|
pId: a
|
|
5254
5230
|
};
|
|
5255
|
-
return _t(r.lang, Te.lang), (o = r.langKeys).push.apply(o,
|
|
5231
|
+
return _t(r.lang, Te.lang), (o = r.langKeys).push.apply(o, xe(Te.langKeys)), _t(r.textKeys, Te.textKeys), r;
|
|
5256
5232
|
}
|
|
5257
5233
|
Pi(Ka);
|
|
5258
|
-
var
|
|
5234
|
+
var lt = {
|
|
5259
5235
|
get textKeys() {
|
|
5260
5236
|
return Te.textKeys;
|
|
5261
5237
|
},
|
|
@@ -5280,7 +5256,7 @@ var ut = {
|
|
|
5280
5256
|
RUNNING: 6,
|
|
5281
5257
|
ENDED: 7,
|
|
5282
5258
|
DESTROYED: 8
|
|
5283
|
-
}, vn = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], ve = {},
|
|
5259
|
+
}, vn = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], ve = {}, ai = null, dr = /* @__PURE__ */ function(a) {
|
|
5284
5260
|
R(r, a);
|
|
5285
5261
|
var o = O(r);
|
|
5286
5262
|
function r() {
|
|
@@ -5363,7 +5339,7 @@ var ut = {
|
|
|
5363
5339
|
}], [{
|
|
5364
5340
|
key: "getInstance",
|
|
5365
5341
|
value: function() {
|
|
5366
|
-
return
|
|
5342
|
+
return ai || (ai = new r()), ai;
|
|
5367
5343
|
}
|
|
5368
5344
|
}]), r;
|
|
5369
5345
|
}(jn.EventEmitter);
|
|
@@ -5375,7 +5351,7 @@ function qa(a) {
|
|
|
5375
5351
|
}
|
|
5376
5352
|
return null;
|
|
5377
5353
|
}
|
|
5378
|
-
var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0,
|
|
5354
|
+
var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, Ue = null, Kt = /* @__PURE__ */ function(a) {
|
|
5379
5355
|
R(r, a);
|
|
5380
5356
|
var o = O(r);
|
|
5381
5357
|
function r(t) {
|
|
@@ -5385,7 +5361,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5385
5361
|
e = o.call(this, i), _(v(e), "canPlayFunc", function() {
|
|
5386
5362
|
if (e.config) {
|
|
5387
5363
|
var p = e.config, m = p.autoplay, y = p.defaultPlaybackRate;
|
|
5388
|
-
$.logInfo("player", "canPlayFunc, startTime", e.__startTime), e._seekToStartTime(), e.playbackRate = y, (m || e._useAutoplay) && e.mediaPlay(), e.off(
|
|
5364
|
+
$.logInfo("player", "canPlayFunc, startTime", e.__startTime), e._seekToStartTime(), e.playbackRate = y, (m || e._useAutoplay) && e.mediaPlay(), e.off(Me, e.canPlayFunc), e.removeClass(w.ENTER);
|
|
5389
5365
|
}
|
|
5390
5366
|
}), _(v(e), "onFullscreenChange", function(p, m) {
|
|
5391
5367
|
var y = function() {
|
|
@@ -5393,7 +5369,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5393
5369
|
e.resize();
|
|
5394
5370
|
}, 100);
|
|
5395
5371
|
}, C = h.getFullScreenEl();
|
|
5396
|
-
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(
|
|
5372
|
+
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(Ft, {
|
|
5397
5373
|
eventType: "system",
|
|
5398
5374
|
action: "switch_fullscreen",
|
|
5399
5375
|
pluginName: "player",
|
|
@@ -5405,9 +5381,9 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5405
5381
|
to: !1
|
|
5406
5382
|
}]
|
|
5407
5383
|
});
|
|
5408
|
-
var
|
|
5409
|
-
if (m || C && (C === e._fullscreenEl ||
|
|
5410
|
-
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, w.FULLSCREEN), e.emit(
|
|
5384
|
+
var S = ya(C, e.playerId, Ye);
|
|
5385
|
+
if (m || C && (C === e._fullscreenEl || S))
|
|
5386
|
+
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, w.FULLSCREEN), e.emit(Oe, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
5411
5387
|
else if (e.fullscreen) {
|
|
5412
5388
|
y();
|
|
5413
5389
|
var T = v(e), W = T._fullScreenOffset, U = T.config;
|
|
@@ -5419,7 +5395,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5419
5395
|
var X = e._fullscreenEl;
|
|
5420
5396
|
!X && (e.root.contains(p.target) || p.target === e.root) && (X = p.target), e.recoverFullStyle(e.root, X, w.FULLSCREEN);
|
|
5421
5397
|
}
|
|
5422
|
-
e._fullscreenEl = null, e.emit(
|
|
5398
|
+
e._fullscreenEl = null, e.emit(Oe, !1);
|
|
5423
5399
|
}
|
|
5424
5400
|
}), _(v(e), "_onWebkitbeginfullscreen", function(p) {
|
|
5425
5401
|
e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
|
|
@@ -5453,9 +5429,9 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5453
5429
|
}, e._offsetInfo = {
|
|
5454
5430
|
currentTime: -1,
|
|
5455
5431
|
duration: 0
|
|
5456
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n =
|
|
5432
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = lt.init(e._pluginInfoId), V.os.isAndroid && V.osVersion > 0 && V.osVersion < 6 && (e.config.autoplay = !1), e.database = new Ra(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
5457
5433
|
isActiveLocked: !1
|
|
5458
|
-
}, e.instManager =
|
|
5434
|
+
}, e.instManager = Ue;
|
|
5459
5435
|
var l = e._initDOM();
|
|
5460
5436
|
if (!l)
|
|
5461
5437
|
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), wi(e);
|
|
@@ -5479,14 +5455,14 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5479
5455
|
if (n && n.nodeType === 1)
|
|
5480
5456
|
this.root = n;
|
|
5481
5457
|
else
|
|
5482
|
-
return this.emit(kt, new
|
|
5458
|
+
return this.emit(kt, new Lt("use", this.config.vid, {
|
|
5483
5459
|
line: 32,
|
|
5484
5460
|
handle: "Constructor",
|
|
5485
5461
|
msg: "container id can't be empty"
|
|
5486
5462
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
5487
5463
|
}
|
|
5488
5464
|
var s = qa(this.root);
|
|
5489
|
-
s && ($.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(
|
|
5465
|
+
s && ($.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Ye, this.playerId), (e = Ue) === null || e === void 0 || e.add(this), fe.init(this), this._initBaseDoms();
|
|
5490
5466
|
var l = this.constructor.XgVideoProxy;
|
|
5491
5467
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
5492
5468
|
var u = this.innerContainer || this.root;
|
|
@@ -5494,7 +5470,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5494
5470
|
var c = new l(u, this.config, this.mediaConfig);
|
|
5495
5471
|
this.attachVideoEvents(c), this.media = c;
|
|
5496
5472
|
}
|
|
5497
|
-
if (this.media.setAttribute(
|
|
5473
|
+
if (this.media.setAttribute(Ye, this.playerId), this.config.controls) {
|
|
5498
5474
|
var f = this.config.controls.root || null, d = fe.register(this, $a, {
|
|
5499
5475
|
root: f
|
|
5500
5476
|
});
|
|
@@ -5517,7 +5493,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5517
5493
|
["width", "height"].forEach(function(M) {
|
|
5518
5494
|
i.config[M] && (typeof i.config[M] != "number" ? i.root.style[M] = i.config[M] : i.root.style[M] = "".concat(i.config[M], "px"));
|
|
5519
5495
|
});
|
|
5520
|
-
var
|
|
5496
|
+
var S = this.root.getBoundingClientRect(), T = S.width, W = S.height, U = S.left, X = S.top;
|
|
5521
5497
|
return this.sizeInfo.width = T, this.sizeInfo.height = W, this.sizeInfo.left = U, this.sizeInfo.top = X, !0;
|
|
5522
5498
|
}
|
|
5523
5499
|
}, {
|
|
@@ -5535,7 +5511,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5535
5511
|
e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
|
|
5536
5512
|
}), sn.forEach(function(i) {
|
|
5537
5513
|
document && document.addEventListener(i, e.onFullscreenChange);
|
|
5538
|
-
}), V.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(
|
|
5514
|
+
}), V.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Ne, this.resize), this.playFunc = function() {
|
|
5539
5515
|
e.config.closeFocusVideoFocus || e.media.focus();
|
|
5540
5516
|
}, this.once(Se, this.playFunc);
|
|
5541
5517
|
}
|
|
@@ -5545,7 +5521,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5545
5521
|
var e = this;
|
|
5546
5522
|
this.root.removeEventListener("mousemove", this.mousemoveFunc), sn.forEach(function(i) {
|
|
5547
5523
|
document.removeEventListener(i, e.onFullscreenChange);
|
|
5548
|
-
}), this.playFunc && this.off(Se, this.playFunc), this.off(
|
|
5524
|
+
}), this.playFunc && this.off(Se, this.playFunc), this.off(Me, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
|
|
5549
5525
|
}
|
|
5550
5526
|
}, {
|
|
5551
5527
|
key: "_clearUserTimer",
|
|
@@ -5563,8 +5539,8 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5563
5539
|
var s = this.media.readyState;
|
|
5564
5540
|
$.logInfo("_startInit readyState", s), this.config.autoplay && (!h.isMSE(this.media) && this.load(), (V.os.isIpad || V.os.isPhone) && this.mediaPlay());
|
|
5565
5541
|
var l = this.config.startTime;
|
|
5566
|
-
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(
|
|
5567
|
-
i.emit(
|
|
5542
|
+
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Me, this.canPlayFunc), (!this.hasStart || this.state < K.ATTACHED) && fe.afterInit(this), this.hasStart = !0, this.setState(K.ATTACHED), h.setTimeout(this, function() {
|
|
5543
|
+
i.emit(Wt);
|
|
5568
5544
|
}, 0);
|
|
5569
5545
|
}
|
|
5570
5546
|
}
|
|
@@ -5574,7 +5550,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5574
5550
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
5575
5551
|
this._loadingPlugins = [];
|
|
5576
5552
|
var n = this.config.ignores || [], s = this.config.plugins || [], l = this.config.i18n || [];
|
|
5577
|
-
i &&
|
|
5553
|
+
i && lt.extend(l, this.__i18n);
|
|
5578
5554
|
var u = n.join("||").toLowerCase().split("||"), c = this.plugins;
|
|
5579
5555
|
s.forEach(function(f) {
|
|
5580
5556
|
try {
|
|
@@ -5643,7 +5619,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5643
5619
|
}, {
|
|
5644
5620
|
key: "deregister",
|
|
5645
5621
|
value: function(e) {
|
|
5646
|
-
typeof e == "string" ? fe.unRegister(this, e) : e instanceof
|
|
5622
|
+
typeof e == "string" ? fe.unRegister(this, e) : e instanceof We && fe.unRegister(this, e.pluginName);
|
|
5647
5623
|
}
|
|
5648
5624
|
}, {
|
|
5649
5625
|
key: "unRegisterPlugin",
|
|
@@ -5655,7 +5631,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5655
5631
|
key: "removePluginFromConfig",
|
|
5656
5632
|
value: function(e) {
|
|
5657
5633
|
var i;
|
|
5658
|
-
if (typeof e == "string" ? i = e : e instanceof
|
|
5634
|
+
if (typeof e == "string" ? i = e : e instanceof We && (i = e.pluginName), !!i)
|
|
5659
5635
|
for (var n = this.config.plugins.length - 1; n > -1; n--) {
|
|
5660
5636
|
var s = this.config.plugins[n];
|
|
5661
5637
|
if (s.pluginName.toLowerCase() === i.toLowerCase()) {
|
|
@@ -5756,7 +5732,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5756
5732
|
this.state < K.RUNNING && (this.removeClass(w.NO_START), !this.isCanplay && this.addClass(w.ENTER));
|
|
5757
5733
|
var i = N(F(r.prototype), "play", this).call(this);
|
|
5758
5734
|
return i !== void 0 && i && i.then ? i.then(function() {
|
|
5759
|
-
e.removeClass(w.NOT_ALLOW_AUTOPLAY), e.addClass(w.PLAYING), e.state < K.RUNNING && ($.logInfo(">>>>playPromise.then"), e.setState(K.RUNNING), e.emit(
|
|
5735
|
+
e.removeClass(w.NOT_ALLOW_AUTOPLAY), e.addClass(w.PLAYING), e.state < K.RUNNING && ($.logInfo(">>>>playPromise.then"), e.setState(K.RUNNING), e.emit(qe));
|
|
5760
5736
|
}).catch(function(n) {
|
|
5761
5737
|
if ($.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
|
|
5762
5738
|
e.onError(), e.removeClass(w.ENTER);
|
|
@@ -5765,7 +5741,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5765
5741
|
n.name === "NotAllowedError" && (e._errorTimer = h.setTimeout(e, function() {
|
|
5766
5742
|
e._errorTimer = null, e.emit(Ai), e.addClass(w.NOT_ALLOW_AUTOPLAY), e.removeClass(w.ENTER), e.pause(), e.setState(K.NOTALLOW);
|
|
5767
5743
|
}, 0));
|
|
5768
|
-
}) : ($.logWarn("video.play not return promise"), this.state < K.RUNNING && (this.setState(K.RUNNING), this.removeClass(w.NOT_ALLOW_AUTOPLAY), this.removeClass(w.NO_START), this.removeClass(w.ENTER), this.addClass(w.PLAYING), this.emit(
|
|
5744
|
+
}) : ($.logWarn("video.play not return promise"), this.state < K.RUNNING && (this.setState(K.RUNNING), this.removeClass(w.NOT_ALLOW_AUTOPLAY), this.removeClass(w.NO_START), this.removeClass(w.ENTER), this.addClass(w.PLAYING), this.emit(qe))), i;
|
|
5769
5745
|
}
|
|
5770
5746
|
}, {
|
|
5771
5747
|
key: "mediaPause",
|
|
@@ -5781,7 +5757,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5781
5757
|
key: "play",
|
|
5782
5758
|
value: function() {
|
|
5783
5759
|
var e = this;
|
|
5784
|
-
return this.removeClass(w.PAUSED),
|
|
5760
|
+
return this.removeClass(w.PAUSED), De(this, "play", function() {
|
|
5785
5761
|
return e.mediaPlay();
|
|
5786
5762
|
});
|
|
5787
5763
|
}
|
|
@@ -5789,7 +5765,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5789
5765
|
key: "pause",
|
|
5790
5766
|
value: function() {
|
|
5791
5767
|
var e = this;
|
|
5792
|
-
|
|
5768
|
+
De(this, "pause", function() {
|
|
5793
5769
|
N(F(r.prototype), "pause", e).call(e);
|
|
5794
5770
|
});
|
|
5795
5771
|
}
|
|
@@ -5799,7 +5775,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5799
5775
|
var n = this;
|
|
5800
5776
|
if (!(!this.media || Number.isNaN(Number(e)) || !this.hasStart)) {
|
|
5801
5777
|
var s = this.config, l = s.isSeekedPlay, u = s.seekedStatus, c = i || (l ? "play" : u);
|
|
5802
|
-
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(
|
|
5778
|
+
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(Fe, this._onceSeekCanplay), this._onceSeekCanplay = function() {
|
|
5803
5779
|
switch (n.removeClass(w.ENTER), n.isSeeking = !1, c) {
|
|
5804
5780
|
case "play":
|
|
5805
5781
|
n.play();
|
|
@@ -5811,7 +5787,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5811
5787
|
n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
|
|
5812
5788
|
}
|
|
5813
5789
|
n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
|
|
5814
|
-
}, this.once(
|
|
5790
|
+
}, this.once(Fe, this._onceSeekCanplay), this.state < K.RUNNING ? (this.removeClass(w.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
|
|
5815
5791
|
}
|
|
5816
5792
|
}
|
|
5817
5793
|
}, {
|
|
@@ -5853,7 +5829,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5853
5829
|
value: function() {
|
|
5854
5830
|
this.load(), this.reloadFunc = function() {
|
|
5855
5831
|
this.play();
|
|
5856
|
-
}, this.once(
|
|
5832
|
+
}, this.once(Ne, this.reloadFunc);
|
|
5857
5833
|
}
|
|
5858
5834
|
}, {
|
|
5859
5835
|
key: "resetState",
|
|
@@ -5861,7 +5837,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5861
5837
|
var e = this, i = w.NOT_ALLOW_AUTOPLAY, n = w.PLAYING, s = w.NO_START, l = w.PAUSED, u = w.REPLAY, c = w.ENTER, f = w.ENDED, d = w.ERROR, g = w.LOADING, p = [i, n, s, l, u, c, f, d, g];
|
|
5862
5838
|
this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, p.forEach(function(m) {
|
|
5863
5839
|
e.removeClass(m);
|
|
5864
|
-
}), this.addClass(w.NO_START), this.emit(
|
|
5840
|
+
}), this.addClass(w.NO_START), this.emit($t);
|
|
5865
5841
|
}
|
|
5866
5842
|
}, {
|
|
5867
5843
|
key: "reset",
|
|
@@ -5883,7 +5859,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5883
5859
|
value: function() {
|
|
5884
5860
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
5885
5861
|
if (!(!s || !l)) {
|
|
5886
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(
|
|
5862
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Ye), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(xi), (e = Ue) === null || e === void 0 || e.remove(this), fe.destroy(this), fr(this), N(F(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
5887
5863
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
5888
5864
|
n.removeChild(u[c]);
|
|
5889
5865
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -5901,24 +5877,24 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5901
5877
|
key: "replay",
|
|
5902
5878
|
value: function() {
|
|
5903
5879
|
var e = this;
|
|
5904
|
-
this.removeClass(w.ENDED), this.currentTime = 0, this.isSeeking = !1,
|
|
5905
|
-
e.once(
|
|
5880
|
+
this.removeClass(w.ENDED), this.currentTime = 0, this.isSeeking = !1, De(this, "replay", function() {
|
|
5881
|
+
e.once(Fe, function() {
|
|
5906
5882
|
var i = e.mediaPlay();
|
|
5907
5883
|
i && i.catch && i.catch(function(n) {
|
|
5908
5884
|
console.log(n);
|
|
5909
5885
|
});
|
|
5910
|
-
}), e.emit(
|
|
5886
|
+
}), e.emit(Dt), e.onPlay();
|
|
5911
5887
|
});
|
|
5912
5888
|
}
|
|
5913
5889
|
}, {
|
|
5914
5890
|
key: "retry",
|
|
5915
5891
|
value: function() {
|
|
5916
5892
|
var e = this;
|
|
5917
|
-
this.removeClass(w.ERROR), this.addClass(w.LOADING),
|
|
5893
|
+
this.removeClass(w.ERROR), this.addClass(w.LOADING), De(this, "retry", function() {
|
|
5918
5894
|
var i = e.currentTime, n = e.config.url, s = h.isMSE(e.media) ? {
|
|
5919
5895
|
url: n
|
|
5920
5896
|
} : e._preProcessUrl(n);
|
|
5921
|
-
e.src = s.url, !e.config.isLive && (e.currentTime = i), e.once(
|
|
5897
|
+
e.src = s.url, !e.config.isLive && (e.currentTime = i), e.once(Me, function() {
|
|
5922
5898
|
e.mediaPlay();
|
|
5923
5899
|
});
|
|
5924
5900
|
});
|
|
@@ -5926,12 +5902,12 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5926
5902
|
}, {
|
|
5927
5903
|
key: "changeFullStyle",
|
|
5928
5904
|
value: function(e, i, n, s) {
|
|
5929
|
-
e && (s || (s = w.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = h.filterStyleFromText(e)), h.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = h.filterStyleFromText(i), h.addClass(i, s), i.setAttribute(
|
|
5905
|
+
e && (s || (s = w.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = h.filterStyleFromText(e)), h.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = h.filterStyleFromText(i), h.addClass(i, s), i.setAttribute(Ye, this.playerId)));
|
|
5930
5906
|
}
|
|
5931
5907
|
}, {
|
|
5932
5908
|
key: "recoverFullStyle",
|
|
5933
5909
|
value: function(e, i, n, s) {
|
|
5934
|
-
s || (s = w.PARENT_FULLSCREEN), this._orgCss && (h.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), h.removeClass(e, n), i && i !== e && this._orgPCss && (h.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", h.removeClass(i, s), i.removeAttribute(
|
|
5910
|
+
s || (s = w.PARENT_FULLSCREEN), this._orgCss && (h.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), h.removeClass(e, n), i && i !== e && this._orgPCss && (h.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", h.removeClass(i, s), i.removeAttribute(Ye));
|
|
5935
5911
|
}
|
|
5936
5912
|
}, {
|
|
5937
5913
|
key: "getFullscreen",
|
|
@@ -5986,7 +5962,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5986
5962
|
var i = e ? "".concat(w.INNER_FULLSCREEN, " ").concat(w.CSS_FULLSCREEN) : w.CSS_FULLSCREEN;
|
|
5987
5963
|
this.changeFullStyle(this.root, e, i);
|
|
5988
5964
|
var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
|
|
5989
|
-
l && (this.fullscreen = !0, this.emit(
|
|
5965
|
+
l && (this.fullscreen = !0, this.emit(Oe, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(Rt, !0);
|
|
5990
5966
|
}
|
|
5991
5967
|
}, {
|
|
5992
5968
|
key: "exitCssFullscreen",
|
|
@@ -5996,9 +5972,9 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
5996
5972
|
this.recoverFullStyle(this.root, this._cssfullscreenEl, e);
|
|
5997
5973
|
else {
|
|
5998
5974
|
var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
|
|
5999
|
-
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(
|
|
5975
|
+
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(Oe, !1)) : this.removeClass(e);
|
|
6000
5976
|
}
|
|
6001
|
-
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(
|
|
5977
|
+
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(Rt, !1);
|
|
6002
5978
|
}
|
|
6003
5979
|
}, {
|
|
6004
5980
|
key: "getRotateFullscreen",
|
|
@@ -6006,13 +5982,13 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
6006
5982
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
|
|
6007
5983
|
this.cssfullscreen && this.exitCssFullscreen(e);
|
|
6008
5984
|
var i = e ? "".concat(w.INNER_FULLSCREEN, " ").concat(w.ROTATE_FULLSCREEN) : w.ROTATE_FULLSCREEN;
|
|
6009
|
-
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, w.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style"), this.root.style.width = "".concat(window.innerHeight, "px"), this.emit(
|
|
5985
|
+
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, w.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style"), this.root.style.width = "".concat(window.innerHeight, "px"), this.emit(Oe, !0);
|
|
6010
5986
|
}
|
|
6011
5987
|
}, {
|
|
6012
5988
|
key: "exitRotateFullscreen",
|
|
6013
5989
|
value: function(e) {
|
|
6014
5990
|
var i = this._fullscreenEl !== this.root ? "".concat(w.INNER_FULLSCREEN, " ").concat(w.ROTATE_FULLSCREEN) : w.ROTATE_FULLSCREEN;
|
|
6015
|
-
this.recoverFullStyle(this.root, this._fullscreenEl, i, w.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(
|
|
5991
|
+
this.recoverFullStyle(this.root, this._fullscreenEl, i, w.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(Oe, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
|
|
6016
5992
|
}
|
|
6017
5993
|
}, {
|
|
6018
5994
|
key: "setRotateDeg",
|
|
@@ -6089,7 +6065,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
6089
6065
|
key: "onLoadeddata",
|
|
6090
6066
|
value: function() {
|
|
6091
6067
|
var e = this;
|
|
6092
|
-
this.isError = !1, this.isSeeking = !1, this.__startTime > 0 && (this.duration > 0 ? this._seekToStartTime() : this.once(
|
|
6068
|
+
this.isError = !1, this.isSeeking = !1, this.__startTime > 0 && (this.duration > 0 ? this._seekToStartTime() : this.once(Be, function() {
|
|
6093
6069
|
e._seekToStartTime();
|
|
6094
6070
|
}));
|
|
6095
6071
|
}
|
|
@@ -6149,7 +6125,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
6149
6125
|
}, {
|
|
6150
6126
|
key: "onTimeupdate",
|
|
6151
6127
|
value: function() {
|
|
6152
|
-
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(w.LOADING)) && this.media.readyState > 2 && (this.removeClass(w.LOADING), h.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === K.NOTALLOW && this.duration && (this.setState(K.RUNNING), this.emit(
|
|
6128
|
+
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(w.LOADING)) && this.media.readyState > 2 && (this.removeClass(w.LOADING), h.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === K.NOTALLOW && this.duration && (this.setState(K.RUNNING), this.emit(qe)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
6153
6129
|
}
|
|
6154
6130
|
}, {
|
|
6155
6131
|
key: "onVolumechange",
|
|
@@ -6166,7 +6142,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
6166
6142
|
value: function(e, i, n) {
|
|
6167
6143
|
if (!(!this.media || !i || !e)) {
|
|
6168
6144
|
var s = h.typeOf(e) === "String" ? e : e.type || "";
|
|
6169
|
-
n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(
|
|
6145
|
+
n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(Ft, ae({
|
|
6170
6146
|
eventType: s,
|
|
6171
6147
|
action: i,
|
|
6172
6148
|
currentTime: this.currentTime,
|
|
@@ -6208,12 +6184,12 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
6208
6184
|
this.videoPos.pi = c, u = u < 0 ? 0 : u;
|
|
6209
6185
|
var f = {
|
|
6210
6186
|
rotate: u
|
|
6211
|
-
}, d = 0, g = 0, p = 1, m = Math.abs(u / 90), y = this.root, C = this.innerContainer,
|
|
6187
|
+
}, d = 0, g = 0, p = 1, m = Math.abs(u / 90), y = this.root, C = this.innerContainer, S = y.offsetWidth, T = C ? C.offsetHeight : y.offsetHeight, W = T, U = S;
|
|
6212
6188
|
if (m % 2 === 0)
|
|
6213
6189
|
p = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, f.scale = p, d = i > 0 ? (100 - s) / 2 - i : 0, f.y = m === 2 ? 0 - d : d, g = n > 0 ? (100 - l) / 2 - n : 0, f.x = m === 2 ? 0 - g : g, this.media.style.width = "".concat(U, "px"), this.media.style.height = "".concat(W, "px");
|
|
6214
6190
|
else if (m % 2 === 1) {
|
|
6215
|
-
U = T, W =
|
|
6216
|
-
var X = T -
|
|
6191
|
+
U = T, W = S;
|
|
6192
|
+
var X = T - S;
|
|
6217
6193
|
g = -X / 2 / U * 100, f.x = m === 3 ? g + i / 2 : g - i / 2, d = X / 2 / W * 100, f.y = m === 3 ? d + n / 2 : d - n / 2, f.scale = p, this.media.style.width = "".concat(U, "px"), this.media.style.height = "".concat(W, "px");
|
|
6218
6194
|
}
|
|
6219
6195
|
var M = h.getTransformStyle(f, this.media.style.transform || this.media.style.webkitTransform);
|
|
@@ -6251,8 +6227,8 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
6251
6227
|
key: "playNext",
|
|
6252
6228
|
value: function(e) {
|
|
6253
6229
|
var i = this;
|
|
6254
|
-
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0,
|
|
6255
|
-
i.start(), i.emit(
|
|
6230
|
+
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, De(this, "playnext", function() {
|
|
6231
|
+
i.start(), i.emit(Mt, e);
|
|
6256
6232
|
});
|
|
6257
6233
|
}
|
|
6258
6234
|
}, {
|
|
@@ -6265,18 +6241,18 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
6265
6241
|
var n = this.media, s = n.videoWidth, l = n.videoHeight, u = this.config, c = u.fitVideoSize, f = u.videoFillMode;
|
|
6266
6242
|
if ((f === "fill" || f === "cover" || f === "contain") && this.setAttribute("data-xgfill", f), !(!l || !s)) {
|
|
6267
6243
|
this._videoHeight = l, this._videoWidth = s;
|
|
6268
|
-
var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, g = i.width, p = i.height - d, m = parseInt(s / l * 1e3, 10), y = parseInt(g / p * 1e3, 10), C = g,
|
|
6269
|
-
c === "auto" && y > m || c === "fixWidth" ? (
|
|
6244
|
+
var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, g = i.width, p = i.height - d, m = parseInt(s / l * 1e3, 10), y = parseInt(g / p * 1e3, 10), C = g, S = p, T = {};
|
|
6245
|
+
c === "auto" && y > m || c === "fixWidth" ? (S = g / m * 1e3, this.config.fluid ? T.paddingTop = "".concat(S * 100 / C, "%") : T.height = "".concat(S + d, "px")) : (c === "auto" && y < m || c === "fixHeight") && (C = m * p / 1e3, T.width = "".concat(C, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(T).forEach(function(U) {
|
|
6270
6246
|
e.root.style[U] = T[U];
|
|
6271
6247
|
}), (f === "fillHeight" && y < m || f === "fillWidth" && y > m) && this.setAttribute("data-xgfill", "cover");
|
|
6272
6248
|
var W = {
|
|
6273
6249
|
videoScale: m,
|
|
6274
6250
|
vWidth: C,
|
|
6275
|
-
vHeight:
|
|
6251
|
+
vHeight: S,
|
|
6276
6252
|
cWidth: C,
|
|
6277
|
-
cHeight:
|
|
6253
|
+
cHeight: S + d
|
|
6278
6254
|
};
|
|
6279
|
-
this.resizePosition(), this.emit(
|
|
6255
|
+
this.resizePosition(), this.emit(je, W);
|
|
6280
6256
|
}
|
|
6281
6257
|
}
|
|
6282
6258
|
}
|
|
@@ -6372,11 +6348,11 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
6372
6348
|
return this.config.lang;
|
|
6373
6349
|
},
|
|
6374
6350
|
set: function(e) {
|
|
6375
|
-
var i =
|
|
6351
|
+
var i = lt.langKeys.filter(function(n) {
|
|
6376
6352
|
return n === e;
|
|
6377
6353
|
});
|
|
6378
6354
|
if (i.length === 0 && e !== "zh") {
|
|
6379
|
-
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(
|
|
6355
|
+
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(lt.langKeys.join(), "] "));
|
|
6380
6356
|
return;
|
|
6381
6357
|
}
|
|
6382
6358
|
this.config.lang = e, fe.setLang(e, this);
|
|
@@ -6496,17 +6472,17 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
6496
6472
|
}, {
|
|
6497
6473
|
key: "hook",
|
|
6498
6474
|
value: function(e, i) {
|
|
6499
|
-
return
|
|
6475
|
+
return Nt.call.apply(Nt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6500
6476
|
}
|
|
6501
6477
|
}, {
|
|
6502
6478
|
key: "useHooks",
|
|
6503
6479
|
value: function(e, i) {
|
|
6504
|
-
return
|
|
6480
|
+
return Bt.call.apply(Bt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6505
6481
|
}
|
|
6506
6482
|
}, {
|
|
6507
6483
|
key: "removeHooks",
|
|
6508
6484
|
value: function(e, i) {
|
|
6509
|
-
return
|
|
6485
|
+
return Ht.call.apply(Ht, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6510
6486
|
}
|
|
6511
6487
|
}, {
|
|
6512
6488
|
key: "usePluginHooks",
|
|
@@ -6526,7 +6502,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
6526
6502
|
key: "setUserActive",
|
|
6527
6503
|
value: function(e, i) {
|
|
6528
6504
|
var n;
|
|
6529
|
-
typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), h.typeOf(i) === Boolean && (this.muted = i)), (n =
|
|
6505
|
+
typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), h.typeOf(i) === Boolean && (this.muted = i)), (n = Ue) === null || n === void 0 || n.setActive(this.playerId, e);
|
|
6530
6506
|
}
|
|
6531
6507
|
}], [{
|
|
6532
6508
|
key: "debugger",
|
|
@@ -6539,22 +6515,22 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
6539
6515
|
}, {
|
|
6540
6516
|
key: "instManager",
|
|
6541
6517
|
get: function() {
|
|
6542
|
-
return
|
|
6518
|
+
return Ue;
|
|
6543
6519
|
},
|
|
6544
6520
|
set: function(e) {
|
|
6545
|
-
|
|
6521
|
+
Ue = e;
|
|
6546
6522
|
}
|
|
6547
6523
|
}, {
|
|
6548
6524
|
key: "getCurrentUserActivePlayerId",
|
|
6549
6525
|
value: function() {
|
|
6550
6526
|
var e;
|
|
6551
|
-
return (e =
|
|
6527
|
+
return (e = Ue) === null || e === void 0 ? void 0 : e.getActiveId();
|
|
6552
6528
|
}
|
|
6553
6529
|
}, {
|
|
6554
6530
|
key: "setCurrentUserActive",
|
|
6555
6531
|
value: function(e, i) {
|
|
6556
6532
|
var n;
|
|
6557
|
-
(n =
|
|
6533
|
+
(n = Ue) === null || n === void 0 || n.setActive(e, i);
|
|
6558
6534
|
}
|
|
6559
6535
|
}, {
|
|
6560
6536
|
key: "isHevcSupported",
|
|
@@ -6578,13 +6554,13 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
|
|
|
6578
6554
|
}
|
|
6579
6555
|
}]), r;
|
|
6580
6556
|
}(Da);
|
|
6581
|
-
_(
|
|
6582
|
-
_(
|
|
6583
|
-
|
|
6557
|
+
_(Kt, "defaultPreset", null);
|
|
6558
|
+
_(Kt, "XgVideoProxy", null);
|
|
6559
|
+
Kt.instManager = dr.getInstance();
|
|
6584
6560
|
function de() {
|
|
6585
6561
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
6586
6562
|
}
|
|
6587
|
-
var
|
|
6563
|
+
var ze = {
|
|
6588
6564
|
LOAD_START: "loadstart",
|
|
6589
6565
|
LOADED_DATA: "loadeddata",
|
|
6590
6566
|
FIRST_FRAME: "firstFrame",
|
|
@@ -6613,13 +6589,13 @@ var Ve = {
|
|
|
6613
6589
|
isLs: !1
|
|
6614
6590
|
}, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = de(), t.loadedCostTime = 0, t.startCostTime = 0, t._isSeeking = !1, t.seekingStart = 0, t.waitingStart = 0, t.fixedWaitingStart = 0, t._isWaiting = !1, t._waitTimer && h.clearTimeout(v(t), t._waitTimer), t._waittTimer && h.clearTimeout(v(t), t._waittTimer), t._waitTimer = null, t._waittTimer = null, t._waitType = 0;
|
|
6615
6591
|
}), _(v(t), "_onSeeking", function() {
|
|
6616
|
-
t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = de(), t.emitLog(
|
|
6592
|
+
t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = de(), t.emitLog(ze.SEEK_START, {
|
|
6617
6593
|
start: de()
|
|
6618
6594
|
}));
|
|
6619
6595
|
}), _(v(t), "_onSeeked", function() {
|
|
6620
6596
|
t.suspendSeekingStatus("seeked");
|
|
6621
6597
|
}), _(v(t), "_onWaitingLoadStart", function() {
|
|
6622
|
-
t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = de(), t.fixedWaitingStart = de(), t._waitType = 1, t.emitLog(
|
|
6598
|
+
t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = de(), t.fixedWaitingStart = de(), t._waitType = 1, t.emitLog(ze.WAIT_START, {
|
|
6623
6599
|
fixedStart: t.fixedWaitingStart,
|
|
6624
6600
|
start: t.waitingStart,
|
|
6625
6601
|
type: 1,
|
|
@@ -6627,7 +6603,7 @@ var Ve = {
|
|
|
6627
6603
|
}));
|
|
6628
6604
|
}), _(v(t), "_onWaiting", function() {
|
|
6629
6605
|
t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = de(), t._waitTimer = h.setTimeout(v(t), function() {
|
|
6630
|
-
t._isWaiting && (t.waitingStart = de(), h.clearTimeout(v(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(
|
|
6606
|
+
t._isWaiting && (t.waitingStart = de(), h.clearTimeout(v(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(ze.WAIT_START, {
|
|
6631
6607
|
fixedStart: t.fixedWaitingStart,
|
|
6632
6608
|
start: t.waitingStart,
|
|
6633
6609
|
type: t._waitType,
|
|
@@ -6646,30 +6622,30 @@ var Ve = {
|
|
|
6646
6622
|
var e = this;
|
|
6647
6623
|
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = de(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(Ti, function() {
|
|
6648
6624
|
var i = e._state, n = i.autoplayStart, s = i.isFFSend;
|
|
6649
|
-
e.startCostTime = de() - e.newPointTime, $.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(
|
|
6650
|
-
}), this.on(
|
|
6625
|
+
e.startCostTime = de() - e.newPointTime, $.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(ze.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = de(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
|
|
6626
|
+
}), this.on(Ne, function() {
|
|
6651
6627
|
e.vt = de(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
6652
6628
|
var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
|
|
6653
|
-
$.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(
|
|
6654
|
-
}), this.on(
|
|
6629
|
+
$.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(ze.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
6630
|
+
}), this.on(jt, this._onSeeking), this.on(Fe, this._onSeeked), this.on(xi, function() {
|
|
6655
6631
|
e.endState("destroy");
|
|
6656
|
-
}), this.on(
|
|
6632
|
+
}), this.on(Gt, function() {
|
|
6657
6633
|
e.endState("urlChange"), $.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
6658
|
-
}), this.on([bi,
|
|
6634
|
+
}), this.on([bi, Me], this._onPlaying), this.on(Ct, this._onWaiting), this.on(kt, this._onError), this.on($t, function() {
|
|
6659
6635
|
$.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
6660
6636
|
});
|
|
6661
6637
|
}
|
|
6662
6638
|
}, {
|
|
6663
6639
|
key: "_initOnceEvents",
|
|
6664
6640
|
value: function() {
|
|
6665
|
-
this.off(
|
|
6641
|
+
this.off(qe, this._onAutoplayStart), this.off(Ee, this._onTimeupdate), this.once(qe, this._onAutoplayStart), this.once(Ee, this._onTimeupdate);
|
|
6666
6642
|
}
|
|
6667
6643
|
}, {
|
|
6668
6644
|
key: "_sendFF",
|
|
6669
6645
|
value: function(e) {
|
|
6670
6646
|
this.s = de();
|
|
6671
6647
|
var i = this._state, n = i.isFFLoading, s = i.isFFSend;
|
|
6672
|
-
$.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && ($.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(
|
|
6648
|
+
$.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && ($.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(ze.FIRST_FRAME, {
|
|
6673
6649
|
fvt: this.fvt,
|
|
6674
6650
|
costTime: this.fvt,
|
|
6675
6651
|
vt: this.vt,
|
|
@@ -6695,7 +6671,7 @@ var Ve = {
|
|
|
6695
6671
|
value: function(e) {
|
|
6696
6672
|
if (this.seekingStart) {
|
|
6697
6673
|
var i = de(), n = i - this.seekingStart;
|
|
6698
|
-
this.seekingStart = 0, this.emitLog(
|
|
6674
|
+
this.seekingStart = 0, this.emitLog(ze.SEEK_END, {
|
|
6699
6675
|
end: i,
|
|
6700
6676
|
costTime: n,
|
|
6701
6677
|
endType: e
|
|
@@ -6707,7 +6683,7 @@ var Ve = {
|
|
|
6707
6683
|
value: function(e) {
|
|
6708
6684
|
if (this._waitTimer && (h.clearTimeout(this, this._waitTimer), this._waitTimer = null), this._waittTimer && (h.clearTimeout(this, this._waittTimer), this._waittTimer = null), this._isWaiting = !1, !!this.waitingStart) {
|
|
6709
6685
|
var i = de(), n = i - this.waitingStart, s = i - this.fixedWaitingStart, l = this.config.waitTimeout;
|
|
6710
|
-
this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(
|
|
6686
|
+
this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(ze.WAIT_END, {
|
|
6711
6687
|
fixedCostTime: s > l ? l : s,
|
|
6712
6688
|
costTime: n > l ? l : n,
|
|
6713
6689
|
type: e === "loadeddata" ? 1 : this._waitType,
|
|
@@ -6772,7 +6748,7 @@ var eo = /* @__PURE__ */ function(a) {
|
|
|
6772
6748
|
pre: function(n) {
|
|
6773
6749
|
n.preventDefault(), n.stopPropagation();
|
|
6774
6750
|
}
|
|
6775
|
-
}), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(
|
|
6751
|
+
}), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(Ze, function() {
|
|
6776
6752
|
if (e.playerConfig.loop || h.addClass(e.player.root, "replay"), !e.config.disable) {
|
|
6777
6753
|
e.show();
|
|
6778
6754
|
var i = e.root.querySelector("path");
|
|
@@ -6865,11 +6841,11 @@ var eo = /* @__PURE__ */ function(a) {
|
|
|
6865
6841
|
key: "afterCreate",
|
|
6866
6842
|
value: function() {
|
|
6867
6843
|
var e = this;
|
|
6868
|
-
this.on(
|
|
6844
|
+
this.on(Ze, function() {
|
|
6869
6845
|
e.isEndedShow && h.removeClass(e.root, "hide");
|
|
6870
6846
|
}), this.config.hideCanplay ? (this.once(Ee, function() {
|
|
6871
6847
|
e.onTimeUpdate();
|
|
6872
|
-
}), this.on(
|
|
6848
|
+
}), this.on(Gt, function() {
|
|
6873
6849
|
h.removeClass(e.root, "hide"), h.addClass(e.root, "xg-showplay"), e.once(Ee, function() {
|
|
6874
6850
|
e.onTimeUpdate();
|
|
6875
6851
|
});
|
|
@@ -6956,23 +6932,23 @@ function Di() {
|
|
|
6956
6932
|
</svg>
|
|
6957
6933
|
`, "image/svg+xml").firstChild;
|
|
6958
6934
|
}
|
|
6959
|
-
var
|
|
6935
|
+
var Le = {};
|
|
6960
6936
|
function io(a, o) {
|
|
6961
6937
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
6962
6938
|
start: null,
|
|
6963
6939
|
end: null
|
|
6964
6940
|
};
|
|
6965
|
-
return
|
|
6966
|
-
r.end && r.end(), window.clearTimeout(
|
|
6967
|
-
}, o),
|
|
6941
|
+
return Le[a] && window.clearTimeout(Le[a].id), Le[a] = {}, r.start && r.start(), Le[a].id = window.setTimeout(function() {
|
|
6942
|
+
r.end && r.end(), window.clearTimeout(Le[a].id), delete Le[a];
|
|
6943
|
+
}, o), Le[a].id;
|
|
6968
6944
|
}
|
|
6969
6945
|
function _n(a) {
|
|
6970
6946
|
if (a) {
|
|
6971
6947
|
window.clearTimeout(a);
|
|
6972
6948
|
return;
|
|
6973
6949
|
}
|
|
6974
|
-
Object.keys(
|
|
6975
|
-
window.clearTimeout(
|
|
6950
|
+
Object.keys(Le).map(function(o) {
|
|
6951
|
+
window.clearTimeout(Le[o].id), delete Le[o];
|
|
6976
6952
|
});
|
|
6977
6953
|
}
|
|
6978
6954
|
var no = /* @__PURE__ */ function(a) {
|
|
@@ -7003,14 +6979,14 @@ var no = /* @__PURE__ */ function(a) {
|
|
|
7003
6979
|
var e = this, i = this.player, n = this.playerConfig;
|
|
7004
6980
|
this.once(Si, function() {
|
|
7005
6981
|
n && (n.lang && n.lang === "en" ? h.addClass(i.root, "lang-is-en") : n.lang === "jp" && h.addClass(i.root, "lang-is-jp"));
|
|
7006
|
-
}), this.on(
|
|
6982
|
+
}), this.on(qe, this.onAutoplayStart), this.on(Ai, function() {
|
|
7007
6983
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
7008
6984
|
e.setAttr("data-state", "play"), h.removeClass(e.root, s), e.show();
|
|
7009
6985
|
}), this.on(Se, function() {
|
|
7010
6986
|
e.toggleTo("play");
|
|
7011
|
-
}), this.on(
|
|
6987
|
+
}), this.on(ct, function() {
|
|
7012
6988
|
e.toggleTo("pause");
|
|
7013
|
-
}), this.on(
|
|
6989
|
+
}), this.on($t, function() {
|
|
7014
6990
|
e.onPlayerReset();
|
|
7015
6991
|
});
|
|
7016
6992
|
}
|
|
@@ -7203,7 +7179,7 @@ var no = /* @__PURE__ */ function(a) {
|
|
|
7203
7179
|
}
|
|
7204
7180
|
}]), r;
|
|
7205
7181
|
}(Z);
|
|
7206
|
-
function
|
|
7182
|
+
function $e(a, o, r) {
|
|
7207
7183
|
try {
|
|
7208
7184
|
return ' <div class="xg-tips '.concat(r ? "hide" : " ", '" lang-key="').concat(a.i18nKeys[o], `">
|
|
7209
7185
|
`).concat(a.i18n[o], `
|
|
@@ -7302,14 +7278,14 @@ function wn(a) {
|
|
|
7302
7278
|
return y !== !1 && (r.height = y + (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 + f, r;
|
|
7303
7279
|
}
|
|
7304
7280
|
}
|
|
7305
|
-
function
|
|
7281
|
+
function oi(a, o) {
|
|
7306
7282
|
for (var r = 0; r < a.length; r++) {
|
|
7307
7283
|
var t = a[r];
|
|
7308
7284
|
if (t.identifier === o)
|
|
7309
7285
|
return t;
|
|
7310
7286
|
}
|
|
7311
7287
|
}
|
|
7312
|
-
var
|
|
7288
|
+
var li = {
|
|
7313
7289
|
START: "dragStart",
|
|
7314
7290
|
MOVE: "dragMove",
|
|
7315
7291
|
ENDED: "dragEnded"
|
|
@@ -7420,19 +7396,19 @@ var oi = {
|
|
|
7420
7396
|
}, {
|
|
7421
7397
|
key: "ontouchmove",
|
|
7422
7398
|
value: function(e) {
|
|
7423
|
-
var i =
|
|
7399
|
+
var i = oi(e.changedTouches, this.touchIdentifier);
|
|
7424
7400
|
i && this.dragMove(e, i);
|
|
7425
7401
|
}
|
|
7426
7402
|
}, {
|
|
7427
7403
|
key: "ontouchend",
|
|
7428
7404
|
value: function(e) {
|
|
7429
|
-
var i =
|
|
7405
|
+
var i = oi(e.changedTouches, this.touchIdentifier);
|
|
7430
7406
|
i && this.dragEnd(e, i), e.preventDefault();
|
|
7431
7407
|
}
|
|
7432
7408
|
}, {
|
|
7433
7409
|
key: "ontouchcancel",
|
|
7434
7410
|
value: function(e) {
|
|
7435
|
-
var i =
|
|
7411
|
+
var i = oi(e.changedTouches, this.touchIdentifier);
|
|
7436
7412
|
i && this.dragCancel(e, i);
|
|
7437
7413
|
}
|
|
7438
7414
|
}, {
|
|
@@ -7447,12 +7423,12 @@ var oi = {
|
|
|
7447
7423
|
}, {
|
|
7448
7424
|
key: "dragRealStart",
|
|
7449
7425
|
value: function(e, i) {
|
|
7450
|
-
this.isDragging = !0, this.animate(), this.emit(
|
|
7426
|
+
this.isDragging = !0, this.animate(), this.emit(li.START, this.startPos);
|
|
7451
7427
|
}
|
|
7452
7428
|
}, {
|
|
7453
7429
|
key: "dragEnd",
|
|
7454
7430
|
value: function(e, i) {
|
|
7455
|
-
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(
|
|
7431
|
+
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(li.ENDED)), this.presetInfo());
|
|
7456
7432
|
}
|
|
7457
7433
|
}, {
|
|
7458
7434
|
key: "_dragPointerMove",
|
|
@@ -7468,7 +7444,7 @@ var oi = {
|
|
|
7468
7444
|
value: function(e, i) {
|
|
7469
7445
|
if (e = e || window.event, !!this.isDown) {
|
|
7470
7446
|
var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, f = u.y;
|
|
7471
|
-
c = this.checkContain("x", c, s), f = this.checkContain("y", f, l), this.position.x = s + c, this.position.y = l + f, this.dragPoint.x = c, this.dragPoint.y = f, this.emit(
|
|
7447
|
+
c = this.checkContain("x", c, s), f = this.checkContain("y", f, l), this.position.x = s + c, this.position.y = l + f, this.dragPoint.x = c, this.dragPoint.y = f, this.emit(li.MOVE, this.position);
|
|
7472
7448
|
}
|
|
7473
7449
|
}
|
|
7474
7450
|
}, {
|
|
@@ -7561,7 +7537,7 @@ var oi = {
|
|
|
7561
7537
|
key: "afterCreate",
|
|
7562
7538
|
value: function() {
|
|
7563
7539
|
var e = this;
|
|
7564
|
-
this.initIcons(), this.on(
|
|
7540
|
+
this.initIcons(), this.on(ct, function() {
|
|
7565
7541
|
e.setAttr("data-state", "pause");
|
|
7566
7542
|
}), this.on(Se, function() {
|
|
7567
7543
|
e.setAttr("data-state", "play");
|
|
@@ -7616,7 +7592,7 @@ var oi = {
|
|
|
7616
7592
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
7617
7593
|
this.lastStyle = {}, h.addClass(i.root, "xgplayer-mini"), ["width", "height", "top", "left"].map(function(l) {
|
|
7618
7594
|
e.lastStyle[l] = s.style[l], s.style[l] = "".concat(e.pos[l], "px");
|
|
7619
|
-
}), n.fluid && (s.style["padding-top"] = ""), this.emit(
|
|
7595
|
+
}), n.fluid && (s.style["padding-top"] = ""), this.emit(Ot, !0), i.isMini = this.isMini = !0;
|
|
7620
7596
|
}
|
|
7621
7597
|
}
|
|
7622
7598
|
}, {
|
|
@@ -7628,7 +7604,7 @@ var oi = {
|
|
|
7628
7604
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
7629
7605
|
h.removeClass(i.root, "xgplayer-mini"), this.lastStyle && Object.keys(this.lastStyle).map(function(l) {
|
|
7630
7606
|
s.style[l] = e.lastStyle[l];
|
|
7631
|
-
}), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(
|
|
7607
|
+
}), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(Ot, !1), this.isMini = i.isMini = !1;
|
|
7632
7608
|
}
|
|
7633
7609
|
}, {
|
|
7634
7610
|
key: "destroy",
|
|
@@ -7644,7 +7620,7 @@ var oi = {
|
|
|
7644
7620
|
return `
|
|
7645
7621
|
<xg-mini-layer class="xg-mini-layer">
|
|
7646
7622
|
<xg-mini-header class="xgplayer-mini-header">
|
|
7647
|
-
`.concat(
|
|
7623
|
+
`.concat($e(this, "MINI_DRAG", this.playerConfig.isHideTips), `
|
|
7648
7624
|
</xg-mini-header>
|
|
7649
7625
|
<div class="mini-cancel-btn">
|
|
7650
7626
|
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
|
@@ -7681,7 +7657,7 @@ var oi = {
|
|
|
7681
7657
|
mouseenter: "onMouseEnter",
|
|
7682
7658
|
mouseleave: "onMouseLeave",
|
|
7683
7659
|
mousemove: "onMouseMove"
|
|
7684
|
-
},
|
|
7660
|
+
}, ui = ["videoClick", "videoDbClick"], ci = /* @__PURE__ */ function(a) {
|
|
7685
7661
|
R(r, a);
|
|
7686
7662
|
var o = O(r);
|
|
7687
7663
|
function r() {
|
|
@@ -7710,7 +7686,7 @@ var oi = {
|
|
|
7710
7686
|
}), _(v(t), "onVideoClick", function(s) {
|
|
7711
7687
|
var l = v(t), u = l.player, c = l.playerConfig;
|
|
7712
7688
|
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() {
|
|
7713
|
-
t._clickCount && (t._clickCount--,
|
|
7689
|
+
t._clickCount && (t._clickCount--, De(v(t), ui[0], function(f, d) {
|
|
7714
7690
|
t.switchPlayPause(d.e);
|
|
7715
7691
|
}, {
|
|
7716
7692
|
e: s,
|
|
@@ -7724,7 +7700,7 @@ var oi = {
|
|
|
7724
7700
|
t._clickCount = 0;
|
|
7725
7701
|
return;
|
|
7726
7702
|
}
|
|
7727
|
-
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(),
|
|
7703
|
+
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), De(v(t), ui[1], function(f, d) {
|
|
7728
7704
|
t.emitUserAction(d.e, "switch_fullscreen", {
|
|
7729
7705
|
props: "fullscreen",
|
|
7730
7706
|
from: u.fullscreen,
|
|
@@ -7741,7 +7717,7 @@ var oi = {
|
|
|
7741
7717
|
key: "afterCreate",
|
|
7742
7718
|
value: function() {
|
|
7743
7719
|
var e = this;
|
|
7744
|
-
this._clickCount = 0,
|
|
7720
|
+
this._clickCount = 0, ui.map(function(n) {
|
|
7745
7721
|
e.__hooks[n] = null;
|
|
7746
7722
|
});
|
|
7747
7723
|
var i = this.playerConfig.isMobileSimulateMode;
|
|
@@ -7789,7 +7765,7 @@ var oi = {
|
|
|
7789
7765
|
return {};
|
|
7790
7766
|
}
|
|
7791
7767
|
}]), r;
|
|
7792
|
-
}(
|
|
7768
|
+
}(We), Ve = {
|
|
7793
7769
|
PRESS: "press",
|
|
7794
7770
|
PRESS_END: "pressend",
|
|
7795
7771
|
DOUBlE_CLICK: "doubleclick",
|
|
@@ -7828,15 +7804,15 @@ var ho = /* @__PURE__ */ function() {
|
|
|
7828
7804
|
};
|
|
7829
7805
|
P(this, a), _(this, "onTouchStart", function(e) {
|
|
7830
7806
|
var i = r._pos, n = r.root, s = Tn(e.touches);
|
|
7831
|
-
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(
|
|
7807
|
+
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(Ve.TOUCH_START, e);
|
|
7832
7808
|
}), _(this, "onTouchCancel", function(e) {
|
|
7833
7809
|
r.onTouchEnd(e);
|
|
7834
7810
|
}), _(this, "onTouchEnd", function(e) {
|
|
7835
7811
|
var i = r._pos, n = r.root;
|
|
7836
|
-
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(
|
|
7812
|
+
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(Ve.PRESS_END, e), r.trigger(Ve.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
|
|
7837
7813
|
}), _(this, "onTouchMove", function(e) {
|
|
7838
7814
|
var i = r._pos, n = r.config, s = Tn(e.touches), l = s ? parseInt(s.pageX, 10) : e.pageX, u = s ? parseInt(s.pageY, 10) : e.pageX, c = l - i.x, f = u - i.y;
|
|
7839
|
-
Math.abs(f) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(
|
|
7815
|
+
Math.abs(f) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(Ve.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(Ve.TOUCH_MOVE, e));
|
|
7840
7816
|
}), this._pos = {
|
|
7841
7817
|
moving: !1,
|
|
7842
7818
|
start: !1,
|
|
@@ -7856,7 +7832,7 @@ var ho = /* @__PURE__ */ function() {
|
|
|
7856
7832
|
value: function(r) {
|
|
7857
7833
|
var t = this, e = this.config;
|
|
7858
7834
|
this.pressIntrvalId && this.__clearPress(), this.pressIntrvalId = setTimeout(function() {
|
|
7859
|
-
t.trigger(
|
|
7835
|
+
t.trigger(Ve.PRESS, r), t._pos.press = !0, t.__clearPress();
|
|
7860
7836
|
}, e.pressDelay);
|
|
7861
7837
|
}
|
|
7862
7838
|
}, {
|
|
@@ -7869,11 +7845,11 @@ var ho = /* @__PURE__ */ function() {
|
|
|
7869
7845
|
value: function(r) {
|
|
7870
7846
|
var t = this, e = this.config;
|
|
7871
7847
|
if (this.dbIntrvalId) {
|
|
7872
|
-
this.__clearDb(), this.trigger(
|
|
7848
|
+
this.__clearDb(), this.trigger(Ve.DOUBlE_CLICK, r);
|
|
7873
7849
|
return;
|
|
7874
7850
|
}
|
|
7875
7851
|
this.dbIntrvalId = setTimeout(function() {
|
|
7876
|
-
t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(
|
|
7852
|
+
t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(Ve.CLICK, r);
|
|
7877
7853
|
}, e.dbClickDelay);
|
|
7878
7854
|
}
|
|
7879
7855
|
}, {
|
|
@@ -7932,12 +7908,12 @@ function go() {
|
|
|
7932
7908
|
<path transform="translate(5 0)" d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z" fill="white"/>
|
|
7933
7909
|
</svg>`, "image/svg+xml").firstChild;
|
|
7934
7910
|
}
|
|
7935
|
-
var
|
|
7911
|
+
var it = {
|
|
7936
7912
|
AUTO: "auto",
|
|
7937
7913
|
SEEKING: "seeking",
|
|
7938
7914
|
PLAYBACK: "playbackrate",
|
|
7939
7915
|
LIGHT: ""
|
|
7940
|
-
},
|
|
7916
|
+
}, fi = ["videoClick", "videoDbClick"], po = /* @__PURE__ */ function(a) {
|
|
7941
7917
|
R(r, a);
|
|
7942
7918
|
var o = O(r);
|
|
7943
7919
|
function r(t) {
|
|
@@ -7956,12 +7932,12 @@ var nt = {
|
|
|
7956
7932
|
if (!(!n || u.disableGesture || !e.duration || !l.isStart)) {
|
|
7957
7933
|
var f = u.miniMoveStep, d = u.hideControlsActive, g = parseInt(n.pageX - l.left, 10), p = parseInt(n.pageY - l.top, 10), m = c.rotateDeg === 90 ? p : g, y = c.rotateDeg === 90 ? g : p;
|
|
7958
7934
|
if (Math.abs(m - l.x) > f || Math.abs(y - l.y) > f) {
|
|
7959
|
-
var C = m - l.x,
|
|
7960
|
-
if (T === -1 && (T = e.checkScope(m, y, C,
|
|
7935
|
+
var C = m - l.x, S = y - l.y, T = l.scope;
|
|
7936
|
+
if (T === -1 && (T = e.checkScope(m, y, C, S, l), T === 0 && (d ? c.blur() : c.focus({
|
|
7961
7937
|
autoHide: !1
|
|
7962
7938
|
}), !l.time && (l.time = parseInt(c.currentTime * 1e3, 10) + e.timeOffset * 1e3)), l.scope = T), T === -1 || T > 0 && !u.gestureY || T === 0 && !u.gestureX)
|
|
7963
7939
|
return;
|
|
7964
|
-
e.executeMove(C,
|
|
7940
|
+
e.executeMove(C, S, T, l.width, l.height), l.x = m, l.y = y;
|
|
7965
7941
|
}
|
|
7966
7942
|
}
|
|
7967
7943
|
}), _(v(e), "onTouchEnd", function(i) {
|
|
@@ -7971,7 +7947,7 @@ var nt = {
|
|
|
7971
7947
|
}, 10), !!l.isStart) {
|
|
7972
7948
|
l.scope > -1 && i.cancelable && i.preventDefault();
|
|
7973
7949
|
var c = e.config, f = c.disableGesture, d = c.gestureX;
|
|
7974
|
-
!f && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), h.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(
|
|
7950
|
+
!f && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), h.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(it.AUTO);
|
|
7975
7951
|
}
|
|
7976
7952
|
}), _(v(e), "onRootTouchMove", function(i) {
|
|
7977
7953
|
e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
|
|
@@ -8018,7 +7994,7 @@ var nt = {
|
|
|
8018
7994
|
key: "afterCreate",
|
|
8019
7995
|
value: function() {
|
|
8020
7996
|
var e = this;
|
|
8021
|
-
|
|
7997
|
+
fi.map(function(d) {
|
|
8022
7998
|
e.__hooks[d] = null;
|
|
8023
7999
|
});
|
|
8024
8000
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
@@ -8031,10 +8007,10 @@ var nt = {
|
|
|
8031
8007
|
d.preventDefault();
|
|
8032
8008
|
}), s.root.addEventListener("touchmove", this.onRootTouchMove, !0), s.root.addEventListener("touchend", this.onRootTouchEnd, !0), s.root.addEventListener("touchcancel", this.onRootTouchEnd, !0);
|
|
8033
8009
|
var u = this.player.controls;
|
|
8034
|
-
u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(
|
|
8010
|
+
u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(Be, function() {
|
|
8035
8011
|
var d = e.player, g = e.config;
|
|
8036
8012
|
d.duration > 0 && d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
|
|
8037
|
-
}), this.on([
|
|
8013
|
+
}), this.on([Me, Ze], function() {
|
|
8038
8014
|
var d = e.pos, g = d.time, p = d.isStart;
|
|
8039
8015
|
!p && g > 0 && (e.pos.time = 0);
|
|
8040
8016
|
});
|
|
@@ -8057,7 +8033,7 @@ var nt = {
|
|
|
8057
8033
|
e.activeSeekNote(d.currentTime, d.forward);
|
|
8058
8034
|
}), ["dragend", "click"].forEach(function(d) {
|
|
8059
8035
|
f.addCallBack(d, function() {
|
|
8060
|
-
e.changeAction(
|
|
8036
|
+
e.changeAction(it.AUTO);
|
|
8061
8037
|
});
|
|
8062
8038
|
}));
|
|
8063
8039
|
}
|
|
@@ -8163,7 +8139,7 @@ var nt = {
|
|
|
8163
8139
|
}, 500);
|
|
8164
8140
|
break;
|
|
8165
8141
|
}
|
|
8166
|
-
this.changeAction(
|
|
8142
|
+
this.changeAction(it.AUTO);
|
|
8167
8143
|
}
|
|
8168
8144
|
}, {
|
|
8169
8145
|
key: "checkIsRootTarget",
|
|
@@ -8201,7 +8177,7 @@ var nt = {
|
|
|
8201
8177
|
key: "onClick",
|
|
8202
8178
|
value: function(e) {
|
|
8203
8179
|
var i = this, n = this.player;
|
|
8204
|
-
|
|
8180
|
+
De(this, fi[0], function(s, l) {
|
|
8205
8181
|
i.clickHandler(l.e);
|
|
8206
8182
|
}, {
|
|
8207
8183
|
e,
|
|
@@ -8212,7 +8188,7 @@ var nt = {
|
|
|
8212
8188
|
key: "onDbClick",
|
|
8213
8189
|
value: function(e) {
|
|
8214
8190
|
var i = this, n = this.player;
|
|
8215
|
-
|
|
8191
|
+
De(this, fi[1], function(s, l) {
|
|
8216
8192
|
i.dbClickHandler(l.e);
|
|
8217
8193
|
}, {
|
|
8218
8194
|
e,
|
|
@@ -8227,7 +8203,7 @@ var nt = {
|
|
|
8227
8203
|
prop: "playbackRate",
|
|
8228
8204
|
from: s.playbackRate,
|
|
8229
8205
|
to: n.pressRate
|
|
8230
|
-
}), s.playbackRate = n.pressRate, this.changeAction(
|
|
8206
|
+
}), s.playbackRate = n.pressRate, this.changeAction(it.PLAYBACK));
|
|
8231
8207
|
}
|
|
8232
8208
|
}, {
|
|
8233
8209
|
key: "onPressEnd",
|
|
@@ -8237,7 +8213,7 @@ var nt = {
|
|
|
8237
8213
|
prop: "playbackRate",
|
|
8238
8214
|
from: s.playbackRate,
|
|
8239
8215
|
to: i.rate
|
|
8240
|
-
}), s.playbackRate = i.rate, i.rate = 1, this.changeAction(
|
|
8216
|
+
}), s.playbackRate = i.rate, i.rate = 1, this.changeAction(it.AUTO));
|
|
8241
8217
|
}
|
|
8242
8218
|
}, {
|
|
8243
8219
|
key: "updateTime",
|
|
@@ -8272,7 +8248,7 @@ var nt = {
|
|
|
8272
8248
|
value: function(e) {
|
|
8273
8249
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = this.player, s = this.config, l = !(this.duration !== 1 / 0 && this.duration > 0);
|
|
8274
8250
|
if (!(!e || typeof e != "number" || l || s.disableActive)) {
|
|
8275
|
-
e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(
|
|
8251
|
+
e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(it.SEEKING);
|
|
8276
8252
|
var u = n.plugins.start;
|
|
8277
8253
|
u && u.focusHide(), this.find(".xg-dur").innerHTML = h.format(this.duration), this.find(".xg-cur").innerHTML = h.format(e), this.find(".xg-curbar").style.width = "".concat(e / this.duration * 100, "%"), i ? h.removeClass(this.find(".xg-seek-show"), "xg-back") : h.addClass(this.find(".xg-seek-show"), "xg-back"), this.updateThumbnails(e);
|
|
8278
8254
|
}
|
|
@@ -8659,7 +8635,7 @@ var Sn = /* @__PURE__ */ function(a) {
|
|
|
8659
8635
|
};
|
|
8660
8636
|
}
|
|
8661
8637
|
}]), r;
|
|
8662
|
-
}(
|
|
8638
|
+
}(We);
|
|
8663
8639
|
function mo() {
|
|
8664
8640
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
8665
8641
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
@@ -9080,19 +9056,19 @@ var yo = /* @__PURE__ */ function(a) {
|
|
|
9080
9056
|
key: "listenEvents",
|
|
9081
9057
|
value: function() {
|
|
9082
9058
|
var e = this;
|
|
9083
|
-
this.on(
|
|
9059
|
+
this.on(Be, function() {
|
|
9084
9060
|
e.onMouseLeave();
|
|
9085
9061
|
}), this.on(Ee, function() {
|
|
9086
9062
|
e.onTimeupdate();
|
|
9087
|
-
}), this.on(
|
|
9063
|
+
}), this.on(Fe, function() {
|
|
9088
9064
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
9089
9065
|
}), this.on(Yn, function() {
|
|
9090
9066
|
e.onCacheUpdate();
|
|
9091
|
-
}), this.on(
|
|
9067
|
+
}), this.on(Ze, function() {
|
|
9092
9068
|
e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
|
|
9093
|
-
}), this.on(
|
|
9069
|
+
}), this.on(Je, function() {
|
|
9094
9070
|
e.onReset();
|
|
9095
|
-
}), this.on(
|
|
9071
|
+
}), this.on(je, function() {
|
|
9096
9072
|
e.onVideoResize();
|
|
9097
9073
|
});
|
|
9098
9074
|
}
|
|
@@ -9196,11 +9172,11 @@ var yo = /* @__PURE__ */ function(a) {
|
|
|
9196
9172
|
m = m > d ? d : m < 0 ? 0 : m;
|
|
9197
9173
|
var y = m / d;
|
|
9198
9174
|
y = y < 0 ? 0 : y > 1 ? 1 : y;
|
|
9199
|
-
var C = parseInt(y * this.offsetDuration * 1e3, 10) / 1e3,
|
|
9175
|
+
var C = parseInt(y * this.offsetDuration * 1e3, 10) / 1e3, S = h.getCurrentTimeByOffset(C, n.timeSegments);
|
|
9200
9176
|
return {
|
|
9201
9177
|
percent: y,
|
|
9202
9178
|
currentTime: C,
|
|
9203
|
-
seekTime:
|
|
9179
|
+
seekTime: S,
|
|
9204
9180
|
offset: m,
|
|
9205
9181
|
width: d,
|
|
9206
9182
|
left: g,
|
|
@@ -9332,7 +9308,7 @@ var yo = /* @__PURE__ */ function(a) {
|
|
|
9332
9308
|
return An;
|
|
9333
9309
|
}
|
|
9334
9310
|
}]), r;
|
|
9335
|
-
}(Z),
|
|
9311
|
+
}(Z), Qe = /* @__PURE__ */ function(a) {
|
|
9336
9312
|
R(r, a);
|
|
9337
9313
|
var o = O(r);
|
|
9338
9314
|
function r() {
|
|
@@ -9390,7 +9366,7 @@ var yo = /* @__PURE__ */ function(a) {
|
|
|
9390
9366
|
key: "listenEvents",
|
|
9391
9367
|
value: function() {
|
|
9392
9368
|
var e = this, i = this.player;
|
|
9393
|
-
this.on([Se,
|
|
9369
|
+
this.on([Se, ct, kt, Je], function() {
|
|
9394
9370
|
e.animate(i.paused);
|
|
9395
9371
|
});
|
|
9396
9372
|
}
|
|
@@ -9434,7 +9410,7 @@ var yo = /* @__PURE__ */ function(a) {
|
|
|
9434
9410
|
return `<xg-icon class="xgplayer-play">
|
|
9435
9411
|
<div class="xgplayer-icon">
|
|
9436
9412
|
</div>
|
|
9437
|
-
`.concat(
|
|
9413
|
+
`.concat($e(this, "PLAY_TIPS", this.playerConfig.isHideTips), `
|
|
9438
9414
|
</xg-icon>`);
|
|
9439
9415
|
}
|
|
9440
9416
|
}], [{
|
|
@@ -9452,7 +9428,7 @@ var yo = /* @__PURE__ */ function(a) {
|
|
|
9452
9428
|
};
|
|
9453
9429
|
}
|
|
9454
9430
|
}]), r;
|
|
9455
|
-
}(
|
|
9431
|
+
}(Qe);
|
|
9456
9432
|
function bo() {
|
|
9457
9433
|
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">
|
|
9458
9434
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
@@ -9564,7 +9540,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
9564
9540
|
to: !c
|
|
9565
9541
|
});
|
|
9566
9542
|
}
|
|
9567
|
-
}), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(
|
|
9543
|
+
}), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(Oe, function(l) {
|
|
9568
9544
|
var u = e.find(".xg-tips");
|
|
9569
9545
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
9570
9546
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
@@ -9625,7 +9601,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
9625
9601
|
return `<xg-icon class="xgplayer-fullscreen">
|
|
9626
9602
|
<div class="xgplayer-icon">
|
|
9627
9603
|
</div>
|
|
9628
|
-
`.concat(
|
|
9604
|
+
`.concat($e(this, e, this.playerConfig.isHideTips), `
|
|
9629
9605
|
</xg-icon>`);
|
|
9630
9606
|
}
|
|
9631
9607
|
}
|
|
@@ -9669,7 +9645,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
9669
9645
|
};
|
|
9670
9646
|
}
|
|
9671
9647
|
}]), r;
|
|
9672
|
-
}(
|
|
9648
|
+
}(Qe), xo = /* @__PURE__ */ function(a) {
|
|
9673
9649
|
R(r, a);
|
|
9674
9650
|
var o = O(r);
|
|
9675
9651
|
function r(t) {
|
|
@@ -9703,11 +9679,11 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
9703
9679
|
key: "listenEvents",
|
|
9704
9680
|
value: function() {
|
|
9705
9681
|
var e = this;
|
|
9706
|
-
this.on([
|
|
9682
|
+
this.on([Be, Fe, Ee], function(i) {
|
|
9707
9683
|
i.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
9708
|
-
}), this.on(
|
|
9684
|
+
}), this.on(Ze, function() {
|
|
9709
9685
|
e.onTimeUpdate(!0);
|
|
9710
|
-
}), this.on(
|
|
9686
|
+
}), this.on(Je, function() {
|
|
9711
9687
|
e.onReset();
|
|
9712
9688
|
});
|
|
9713
9689
|
}
|
|
@@ -9791,7 +9767,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
9791
9767
|
var e = this, i = this.player, n = function() {
|
|
9792
9768
|
e.isActiving = !1;
|
|
9793
9769
|
};
|
|
9794
|
-
this.off(
|
|
9770
|
+
this.off(Fe, n), i.isSeeking && i.media.seeking ? this.once(Fe, n) : this.isActiving = !1;
|
|
9795
9771
|
}
|
|
9796
9772
|
}, {
|
|
9797
9773
|
key: "destroy",
|
|
@@ -9881,7 +9857,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
9881
9857
|
return L(r, [{
|
|
9882
9858
|
key: "afterCreate",
|
|
9883
9859
|
value: function() {
|
|
9884
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(
|
|
9860
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Be, this._onDurationChange), this.on(Ne, this._onLoadedData), this.on(Ee, this._onTimeupdate), this.on(jt, this._onSeeking), this.on(Se, this._onPlay);
|
|
9885
9861
|
}
|
|
9886
9862
|
}, {
|
|
9887
9863
|
key: "setConfig",
|
|
@@ -9962,7 +9938,7 @@ var Ao = /* @__PURE__ */ function(a) {
|
|
|
9962
9938
|
};
|
|
9963
9939
|
}
|
|
9964
9940
|
}]), r;
|
|
9965
|
-
}(
|
|
9941
|
+
}(We);
|
|
9966
9942
|
function Po() {
|
|
9967
9943
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9968
9944
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
@@ -10062,7 +10038,7 @@ var Ro = /* @__PURE__ */ function(a) {
|
|
|
10062
10038
|
pre: function(u) {
|
|
10063
10039
|
u.preventDefault(), u.stopPropagation();
|
|
10064
10040
|
}
|
|
10065
|
-
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), V.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($n, this.onVolumeChange), this.once(
|
|
10041
|
+
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), V.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($n, this.onVolumeChange), this.once(Ne, this.onVolumeChange), h.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
|
|
10066
10042
|
}
|
|
10067
10043
|
}
|
|
10068
10044
|
}, {
|
|
@@ -10205,7 +10181,7 @@ var Mo = /* @__PURE__ */ function(a) {
|
|
|
10205
10181
|
value: function() {
|
|
10206
10182
|
var e = this;
|
|
10207
10183
|
if (!this.config.disable) {
|
|
10208
|
-
N(F(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(
|
|
10184
|
+
N(F(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(je, function() {
|
|
10209
10185
|
e.rotateDeg && e.config.innerRotate && h.setTimeout(e, function() {
|
|
10210
10186
|
e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
|
|
10211
10187
|
}, 100);
|
|
@@ -10233,10 +10209,10 @@ var Mo = /* @__PURE__ */ function(a) {
|
|
|
10233
10209
|
}
|
|
10234
10210
|
var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, f = n.media, d = u.offsetWidth, g = c && i ? c.offsetHeight : u.offsetHeight, p = s, m = l, y = 0, C = 0;
|
|
10235
10211
|
(e === 0.75 || e === 0.25) && (p = "".concat(g, "px"), m = "".concat(d, "px"), y = -(g - d) / 2, C = -(d - g) / 2);
|
|
10236
|
-
var
|
|
10212
|
+
var S = "translate(".concat(y, "px,").concat(C, "px) rotate(").concat(e, "turn)"), T = {
|
|
10237
10213
|
transformOrigin: "center center",
|
|
10238
|
-
transform:
|
|
10239
|
-
webKitTransform:
|
|
10214
|
+
transform: S,
|
|
10215
|
+
webKitTransform: S,
|
|
10240
10216
|
height: m,
|
|
10241
10217
|
width: p
|
|
10242
10218
|
}, W = i ? f : u, U = i ? n.getPlugin("poster") : null;
|
|
@@ -10267,7 +10243,7 @@ var Mo = /* @__PURE__ */ function(a) {
|
|
|
10267
10243
|
<xg-icon class="xgplayer-rotate">
|
|
10268
10244
|
<div class="xgplayer-icon">
|
|
10269
10245
|
</div>
|
|
10270
|
-
`.concat(
|
|
10246
|
+
`.concat($e(this, "ROTATE_TIPS", this.playerConfig.isHideTips), `
|
|
10271
10247
|
</xg-icon>`);
|
|
10272
10248
|
}
|
|
10273
10249
|
}], [{
|
|
@@ -10288,7 +10264,7 @@ var Mo = /* @__PURE__ */ function(a) {
|
|
|
10288
10264
|
};
|
|
10289
10265
|
}
|
|
10290
10266
|
}]), r;
|
|
10291
|
-
}(
|
|
10267
|
+
}(Qe);
|
|
10292
10268
|
function Fo() {
|
|
10293
10269
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10294
10270
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
@@ -10306,7 +10282,7 @@ function No() {
|
|
|
10306
10282
|
fill="white" />
|
|
10307
10283
|
</svg>`, "image/svg+xml").firstChild;
|
|
10308
10284
|
}
|
|
10309
|
-
var
|
|
10285
|
+
var nt = {
|
|
10310
10286
|
PIP: "picture-in-picture",
|
|
10311
10287
|
INLINE: "inline",
|
|
10312
10288
|
FULLSCREEN: "fullscreen"
|
|
@@ -10341,7 +10317,7 @@ var rt = {
|
|
|
10341
10317
|
key: "afterCreate",
|
|
10342
10318
|
value: function() {
|
|
10343
10319
|
var e = this;
|
|
10344
|
-
this.isPIPAvailable() && (N(F(r.prototype), "afterCreate", this).call(this), this.pMode =
|
|
10320
|
+
this.isPIPAvailable() && (N(F(r.prototype), "afterCreate", this).call(this), this.pMode = nt.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Wt, function() {
|
|
10345
10321
|
e.config.showIcon && (h.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
10346
10322
|
}));
|
|
10347
10323
|
}
|
|
@@ -10378,15 +10354,15 @@ var rt = {
|
|
|
10378
10354
|
i.emit(_i, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
10379
10355
|
}, this.onWebkitpresentationmodechanged = function(n) {
|
|
10380
10356
|
var s = i.media.webkitPresentationMode;
|
|
10381
|
-
e.pMode ===
|
|
10357
|
+
e.pMode === nt.FULLSCREEN && s !== nt.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === nt.PIP ? e.enterPIPCallback(n) : s === nt.INLINE && e.leavePIPCallback(n);
|
|
10382
10358
|
}, i.media && (i.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), i.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), r.checkWebkitSetPresentationMode(i.media) && i.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
|
|
10383
10359
|
}
|
|
10384
10360
|
}, {
|
|
10385
10361
|
key: "copyStyleIntoPiPWindow",
|
|
10386
10362
|
value: function(e) {
|
|
10387
|
-
var i =
|
|
10363
|
+
var i = xe(document.styleSheets).map(function(s) {
|
|
10388
10364
|
try {
|
|
10389
|
-
return
|
|
10365
|
+
return xe(s.cssRules).map(function(u) {
|
|
10390
10366
|
return u.cssText;
|
|
10391
10367
|
}).join("");
|
|
10392
10368
|
} catch {
|
|
@@ -10418,14 +10394,14 @@ var rt = {
|
|
|
10418
10394
|
e.enterPIPCallback();
|
|
10419
10395
|
var p = d || i.root, m = p.parentElement, y = p.previousSibling, C = p.nextSibling;
|
|
10420
10396
|
e.copyStyleIntoPiPWindow(f);
|
|
10421
|
-
var
|
|
10422
|
-
if (
|
|
10397
|
+
var S = document.createElement("style");
|
|
10398
|
+
if (S.append("body{padding:0; margin:0;}"), g) {
|
|
10423
10399
|
var T = "";
|
|
10424
|
-
typeof g == "string" ? T = g : typeof g == "function" && (T = g.call(s)), T &&
|
|
10425
|
-
} else p === i.root &&
|
|
10400
|
+
typeof g == "string" ? T = g : typeof g == "function" && (T = g.call(s)), T && S.append(T);
|
|
10401
|
+
} else p === i.root && S.append(`
|
|
10426
10402
|
.xgplayer{width: 100%!important; height: 100%!important;}
|
|
10427
10403
|
`);
|
|
10428
|
-
f.document.head.append(
|
|
10404
|
+
f.document.head.append(S), f.document.body.append(p), f.addEventListener("pagehide", function(W) {
|
|
10429
10405
|
m && (C ? m.insertBefore(p, C) : y ? m.insertBefore(p, y.nextSibling) : m.appendChild(p)), e.leavePIPCallback();
|
|
10430
10406
|
}, {
|
|
10431
10407
|
once: !0
|
|
@@ -10455,7 +10431,7 @@ var rt = {
|
|
|
10455
10431
|
key: "isPip",
|
|
10456
10432
|
get: function() {
|
|
10457
10433
|
var e, i = this.player;
|
|
10458
|
-
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode ===
|
|
10434
|
+
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === nt.PIP;
|
|
10459
10435
|
}
|
|
10460
10436
|
}, {
|
|
10461
10437
|
key: "isPIPAvailable",
|
|
@@ -10482,7 +10458,7 @@ var rt = {
|
|
|
10482
10458
|
return `<xg-icon class="xgplayer-pip">
|
|
10483
10459
|
<div class="xgplayer-icon xg-icon-disable">
|
|
10484
10460
|
</div>
|
|
10485
|
-
`.concat(
|
|
10461
|
+
`.concat($e(this, "PIP", this.playerConfig.isHideTips), `
|
|
10486
10462
|
</xg-icon>`);
|
|
10487
10463
|
}
|
|
10488
10464
|
}], [{
|
|
@@ -10510,7 +10486,7 @@ var rt = {
|
|
|
10510
10486
|
return typeof e.webkitSetPresentationMode == "function";
|
|
10511
10487
|
}
|
|
10512
10488
|
}]), r;
|
|
10513
|
-
}(
|
|
10489
|
+
}(Qe);
|
|
10514
10490
|
function Ho() {
|
|
10515
10491
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
10516
10492
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
@@ -10524,7 +10500,7 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
10524
10500
|
var e;
|
|
10525
10501
|
return P(this, r), e = o.call(this, t), _(v(e), "playNext", function(i) {
|
|
10526
10502
|
var n = v(e), s = n.player;
|
|
10527
|
-
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(
|
|
10503
|
+
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(Mt, e.idx + 1)) : (e.nextHandler(), s.emit(Mt));
|
|
10528
10504
|
}), e.idx = -1, e;
|
|
10529
10505
|
}
|
|
10530
10506
|
return L(r, [{
|
|
@@ -10565,7 +10541,7 @@ var Uo = /* @__PURE__ */ function(a) {
|
|
|
10565
10541
|
<xg-icon class="xgplayer-playnext">
|
|
10566
10542
|
<div class="xgplayer-icon">
|
|
10567
10543
|
</div>
|
|
10568
|
-
`.concat(
|
|
10544
|
+
`.concat($e(this, "PLAYNEXT_TIPS", this.playerConfig.isHideTips), `
|
|
10569
10545
|
</xg-icon>
|
|
10570
10546
|
`);
|
|
10571
10547
|
}
|
|
@@ -10612,8 +10588,8 @@ function Vo() {
|
|
|
10612
10588
|
navigator.msSaveBlob(U(u), p)
|
|
10613
10589
|
) : X(u);
|
|
10614
10590
|
else if (/([\x80-\xff])/.test(u)) {
|
|
10615
|
-
var
|
|
10616
|
-
for (
|
|
10591
|
+
var S = 0, T = new Uint8Array(u.length), W = T.length;
|
|
10592
|
+
for (S; S < W; ++S) T[S] = u.charCodeAt(S);
|
|
10617
10593
|
u = new g([T], { type: l });
|
|
10618
10594
|
}
|
|
10619
10595
|
m = u instanceof g ? u : new g([u], { type: l });
|
|
@@ -10731,7 +10707,7 @@ var $o = /* @__PURE__ */ function(a) {
|
|
|
10731
10707
|
return `<xg-icon class="xgplayer-download">
|
|
10732
10708
|
<div class="xgplayer-icon">
|
|
10733
10709
|
</div>
|
|
10734
|
-
`.concat(
|
|
10710
|
+
`.concat($e(this, "DOWNLOAD_TIPS", this.playerConfig.isHideTips), `
|
|
10735
10711
|
</xg-icon>`);
|
|
10736
10712
|
}
|
|
10737
10713
|
}], [{
|
|
@@ -10749,7 +10725,7 @@ var $o = /* @__PURE__ */ function(a) {
|
|
|
10749
10725
|
};
|
|
10750
10726
|
}
|
|
10751
10727
|
}]), r;
|
|
10752
|
-
}(
|
|
10728
|
+
}(Qe), Ko = /* @__PURE__ */ function(a) {
|
|
10753
10729
|
R(r, a);
|
|
10754
10730
|
var o = O(r);
|
|
10755
10731
|
function r() {
|
|
@@ -10767,7 +10743,7 @@ var $o = /* @__PURE__ */ function(a) {
|
|
|
10767
10743
|
var e = this.config;
|
|
10768
10744
|
this.initSize = function(i) {
|
|
10769
10745
|
e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
|
|
10770
|
-
}, this.once(
|
|
10746
|
+
}, this.once(je, this.initSize);
|
|
10771
10747
|
}
|
|
10772
10748
|
}, {
|
|
10773
10749
|
key: "onPluginsReady",
|
|
@@ -10820,8 +10796,8 @@ var $o = /* @__PURE__ */ function(a) {
|
|
|
10820
10796
|
p = u.media.canvas;
|
|
10821
10797
|
else {
|
|
10822
10798
|
n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), p = n.canvas, m = n.canvasCtx;
|
|
10823
|
-
var y = u.media.videoWidth / u.media.videoHeight, C = p.width / p.height,
|
|
10824
|
-
y > C ? (oe = p.width, re = p.width / y, X = 0, M = Math.round((p.height - re) / 2)) : y === C ? (oe = p.width, re = p.height, X = 0, M = 0) : y < C && (oe = p.height * y, re = p.height, X = Math.round((p.width - oe) / 2), M = 0), m.drawImage(u.media,
|
|
10799
|
+
var y = u.media.videoWidth / u.media.videoHeight, C = p.width / p.height, S = 0, T = 0, W = u.media.videoWidth, U = u.media.videoHeight, X, M, oe, re;
|
|
10800
|
+
y > C ? (oe = p.width, re = p.width / y, X = 0, M = Math.round((p.height - re) / 2)) : y === C ? (oe = p.width, re = p.height, X = 0, M = 0) : y < C && (oe = p.height * y, re = p.height, X = Math.round((p.width - oe) / 2), M = 0), m.drawImage(u.media, S, T, W, U, X, M, oe, re);
|
|
10825
10801
|
}
|
|
10826
10802
|
var j = p.toDataURL(f, c).replace(f, "image/octet-stream");
|
|
10827
10803
|
j = j.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(j);
|
|
@@ -10837,7 +10813,7 @@ var $o = /* @__PURE__ */ function(a) {
|
|
|
10837
10813
|
}, {
|
|
10838
10814
|
key: "destroy",
|
|
10839
10815
|
value: function() {
|
|
10840
|
-
N(F(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(
|
|
10816
|
+
N(F(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(je, this.initSize);
|
|
10841
10817
|
}
|
|
10842
10818
|
}, {
|
|
10843
10819
|
key: "render",
|
|
@@ -10875,7 +10851,7 @@ var $o = /* @__PURE__ */ function(a) {
|
|
|
10875
10851
|
};
|
|
10876
10852
|
}
|
|
10877
10853
|
}]), r;
|
|
10878
|
-
}(
|
|
10854
|
+
}(Qe), Yo = /* @__PURE__ */ function() {
|
|
10879
10855
|
function a(o) {
|
|
10880
10856
|
P(this, a), this.config = o.config, this.parent = o.root, this.root = h.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), o.root.appendChild(this.root);
|
|
10881
10857
|
var r = this.config.maxHeight;
|
|
@@ -10947,18 +10923,18 @@ var $o = /* @__PURE__ */ function(a) {
|
|
|
10947
10923
|
}), this._delegates = null), this.root.innerHTML = null, this.parent.removeChild(this.root), this.root = null;
|
|
10948
10924
|
}
|
|
10949
10925
|
}]), a;
|
|
10950
|
-
}(),
|
|
10926
|
+
}(), Pe = {
|
|
10951
10927
|
SIDE: "side",
|
|
10952
10928
|
MIDDLE: "middle",
|
|
10953
10929
|
DEFAULT: "default"
|
|
10954
|
-
},
|
|
10930
|
+
}, rt = {
|
|
10955
10931
|
CLICK: "click",
|
|
10956
10932
|
HOVER: "hover"
|
|
10957
10933
|
};
|
|
10958
10934
|
function Xo(a, o) {
|
|
10959
|
-
return a ===
|
|
10935
|
+
return a === Pe.SIDE ? o === ee.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10960
10936
|
}
|
|
10961
|
-
var
|
|
10937
|
+
var Ke = V.device === "mobile", Ut = /* @__PURE__ */ function(a) {
|
|
10962
10938
|
R(r, a);
|
|
10963
10939
|
var o = O(r);
|
|
10964
10940
|
function r(t) {
|
|
@@ -10970,11 +10946,11 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
|
|
|
10970
10946
|
}), _(v(e), "switchActiveState", function(i) {
|
|
10971
10947
|
i.stopPropagation();
|
|
10972
10948
|
var n = e.config.toggleMode;
|
|
10973
|
-
n ===
|
|
10949
|
+
n === rt.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
|
|
10974
10950
|
}), _(v(e), "onLeave", function(i) {
|
|
10975
10951
|
i.stopPropagation(), e.emit("icon_mouseleave", {
|
|
10976
10952
|
pluginName: e.pluginName
|
|
10977
|
-
}), e.config.listType !==
|
|
10953
|
+
}), e.config.listType !== Pe.SIDE && e.isActive && e.toggle(!1);
|
|
10978
10954
|
}), _(v(e), "onListEnter", function(i) {
|
|
10979
10955
|
e.enterType = 2;
|
|
10980
10956
|
}), _(v(e), "onListLeave", function(i) {
|
|
@@ -10990,13 +10966,13 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
|
|
|
10990
10966
|
key: "afterCreate",
|
|
10991
10967
|
value: function() {
|
|
10992
10968
|
var e = this, i = this.config;
|
|
10993
|
-
this.initIcons(),
|
|
10969
|
+
this.initIcons(), Ke = Ke || this.domEventType === "touch", Ke && V.device === "mobile" && i.listType === Pe.DEFAULT && (i.listType = Pe.SIDE), i.hidePortrait && h.addClass(this.root, "portrait"), this.on([je, Oe], function() {
|
|
10994
10970
|
e._resizeList();
|
|
10995
|
-
}), this.once(
|
|
10971
|
+
}), this.once(Me, function() {
|
|
10996
10972
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
10997
|
-
}),
|
|
10973
|
+
}), Ke && this.on(Ei, function() {
|
|
10998
10974
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
10999
|
-
}),
|
|
10975
|
+
}), Ke ? (i.toggleMode = rt.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === rt.CLICK ? "click" : "mouseenter", i.toggleMode === rt.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);
|
|
11000
10976
|
}
|
|
11001
10977
|
}, {
|
|
11002
10978
|
key: "initIcons",
|
|
@@ -11034,7 +11010,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
|
|
|
11034
11010
|
value: function(e) {
|
|
11035
11011
|
if (!(e === this.isActive || this.config.disable)) {
|
|
11036
11012
|
var i = this.player.controls, n = this.config.listType;
|
|
11037
|
-
e ? (n ===
|
|
11013
|
+
e ? (n === Pe.SIDE ? i.blur() : i.focus(), this.optionsList && this.optionsList.show()) : (n === Pe.SIDE ? i.focus() : i.focusAwhile(), this.optionsList && this.optionsList.hide()), this.isActive = e;
|
|
11038
11014
|
}
|
|
11039
11015
|
}
|
|
11040
11016
|
}, {
|
|
@@ -11044,7 +11020,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
|
|
|
11044
11020
|
var n = this.config, s = n.listType, l = n.list;
|
|
11045
11021
|
this.curIndex = i.to.index, this.curItem = l[this.curIndex], this.changeCurrentText();
|
|
11046
11022
|
var u = this.config.isItemClickHide;
|
|
11047
|
-
(u ||
|
|
11023
|
+
(u || Ke || s === Pe.SIDE) && this.toggle(!1);
|
|
11048
11024
|
}
|
|
11049
11025
|
}, {
|
|
11050
11026
|
key: "onIconClick",
|
|
@@ -11073,12 +11049,12 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
|
|
|
11073
11049
|
onItemClick: function(m, y) {
|
|
11074
11050
|
n.onItemClick(m, y);
|
|
11075
11051
|
},
|
|
11076
|
-
domEventType:
|
|
11052
|
+
domEventType: Ke ? "touch" : "mouse"
|
|
11077
11053
|
},
|
|
11078
|
-
root: s.listType ===
|
|
11054
|
+
root: s.listType === Pe.SIDE ? u.innerContainer || u.root : this.root
|
|
11079
11055
|
};
|
|
11080
11056
|
if (this.config.isShowIcon) {
|
|
11081
|
-
var f = this.player.root.getBoundingClientRect(), d = f.height, g = s.listType ===
|
|
11057
|
+
var f = this.player.root.getBoundingClientRect(), d = f.height, g = s.listType === Pe.MIDDLE ? d - 50 : d;
|
|
11082
11058
|
g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new Yo(c), this.changeCurrentText(), this.show();
|
|
11083
11059
|
}
|
|
11084
11060
|
this._resizeList();
|
|
@@ -11087,7 +11063,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
|
|
|
11087
11063
|
key: "_resizeList",
|
|
11088
11064
|
value: function() {
|
|
11089
11065
|
if (this.config.heightLimit) {
|
|
11090
|
-
var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType ===
|
|
11066
|
+
var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType === Pe.MIDDLE ? i - 50 : i;
|
|
11091
11067
|
this.optionsList && this.optionsList.setStyle({
|
|
11092
11068
|
maxHeight: "".concat(n, "px")
|
|
11093
11069
|
});
|
|
@@ -11097,7 +11073,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
|
|
|
11097
11073
|
key: "destroy",
|
|
11098
11074
|
value: function() {
|
|
11099
11075
|
var e = this.config;
|
|
11100
|
-
e.toggleMode ===
|
|
11076
|
+
e.toggleMode === rt.CLICK ? this.unbind(this.activeEvent, this.switchActiveState) : (this.unbind(this.activeEvent, this.onEnter), this.unbind("mouseleave", this.onLeave)), this.isIcons && this.unbind("click", this.onIconClick), this.optionsList && (this.optionsList.destroy(), this.optionsList = null);
|
|
11101
11077
|
}
|
|
11102
11078
|
}, {
|
|
11103
11079
|
key: "render",
|
|
@@ -11125,7 +11101,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
|
|
|
11125
11101
|
hidePortrait: !0,
|
|
11126
11102
|
isShowIcon: !1,
|
|
11127
11103
|
isItemClickHide: !0,
|
|
11128
|
-
toggleMode:
|
|
11104
|
+
toggleMode: rt.HOVER,
|
|
11129
11105
|
heightLimit: !0
|
|
11130
11106
|
};
|
|
11131
11107
|
}
|
|
@@ -11219,7 +11195,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
|
|
|
11219
11195
|
}, {
|
|
11220
11196
|
key: "defaultConfig",
|
|
11221
11197
|
get: function() {
|
|
11222
|
-
return ae(ae({},
|
|
11198
|
+
return ae(ae({}, Ut.defaultConfig), {}, {
|
|
11223
11199
|
position: ee.CONTROLS_RIGHT,
|
|
11224
11200
|
index: 3,
|
|
11225
11201
|
list: [],
|
|
@@ -11231,7 +11207,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
|
|
|
11231
11207
|
});
|
|
11232
11208
|
}
|
|
11233
11209
|
}]), r;
|
|
11234
|
-
}(
|
|
11210
|
+
}(Ut), Zo = /* @__PURE__ */ function(a) {
|
|
11235
11211
|
R(r, a);
|
|
11236
11212
|
var o = O(r);
|
|
11237
11213
|
function r(t) {
|
|
@@ -11313,7 +11289,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
|
|
|
11313
11289
|
}, {
|
|
11314
11290
|
key: "defaultConfig",
|
|
11315
11291
|
get: function() {
|
|
11316
|
-
return ae(ae({},
|
|
11292
|
+
return ae(ae({}, Ut.defaultConfig), {}, {
|
|
11317
11293
|
position: ee.CONTROLS_RIGHT,
|
|
11318
11294
|
index: 4,
|
|
11319
11295
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
@@ -11323,7 +11299,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
|
|
|
11323
11299
|
});
|
|
11324
11300
|
}
|
|
11325
11301
|
}]), r;
|
|
11326
|
-
}(
|
|
11302
|
+
}(Ut);
|
|
11327
11303
|
function Jo() {
|
|
11328
11304
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
11329
11305
|
<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>
|
|
@@ -11351,7 +11327,7 @@ var In = /* @__PURE__ */ function(a) {
|
|
|
11351
11327
|
key: "afterCreate",
|
|
11352
11328
|
value: function() {
|
|
11353
11329
|
var e = this;
|
|
11354
|
-
N(F(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(
|
|
11330
|
+
N(F(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(Rt, function(i) {
|
|
11355
11331
|
e.animate(i);
|
|
11356
11332
|
}), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
|
|
11357
11333
|
pre: function(n) {
|
|
@@ -11411,7 +11387,7 @@ var In = /* @__PURE__ */ function(a) {
|
|
|
11411
11387
|
return `<xg-icon class='xgplayer-cssfullscreen'>
|
|
11412
11388
|
<div class="xgplayer-icon">
|
|
11413
11389
|
</div>
|
|
11414
|
-
`.concat(
|
|
11390
|
+
`.concat($e(this, "CSSFULLSCREEN_TIPS", this.playerConfig.isHideTips), `
|
|
11415
11391
|
</xg-icon>`);
|
|
11416
11392
|
}
|
|
11417
11393
|
}], [{
|
|
@@ -11430,7 +11406,7 @@ var In = /* @__PURE__ */ function(a) {
|
|
|
11430
11406
|
};
|
|
11431
11407
|
}
|
|
11432
11408
|
}]), r;
|
|
11433
|
-
}(
|
|
11409
|
+
}(Qe), el = /* @__PURE__ */ function(a) {
|
|
11434
11410
|
R(r, a);
|
|
11435
11411
|
var o = O(r);
|
|
11436
11412
|
function r() {
|
|
@@ -11732,13 +11708,13 @@ function il(a) {
|
|
|
11732
11708
|
}), a.ispotsInit = !1, a.playerSize = {
|
|
11733
11709
|
left: r.sizeInfo.left,
|
|
11734
11710
|
width: r.sizeInfo.width
|
|
11735
|
-
}, a.on(
|
|
11711
|
+
}, a.on(Be, function() {
|
|
11736
11712
|
a.ispotsInit ? a.updateDuration() : a.initDots();
|
|
11737
|
-
}), a.on(
|
|
11713
|
+
}), a.on(je, function() {
|
|
11738
11714
|
a.positionDots();
|
|
11739
11715
|
});
|
|
11740
11716
|
}
|
|
11741
|
-
var
|
|
11717
|
+
var st = {
|
|
11742
11718
|
dragmove: "onProgressMove",
|
|
11743
11719
|
dragstart: "onProgressDragStart",
|
|
11744
11720
|
dragend: "onProgressDragEnd",
|
|
@@ -11796,7 +11772,7 @@ var at = {
|
|
|
11796
11772
|
n.seekTime && e.player.seek(n.seekTime);
|
|
11797
11773
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
11798
11774
|
e.setTimeContent(h.format(i));
|
|
11799
|
-
}), il(this), this.on(
|
|
11775
|
+
}), il(this), this.on(Be, function() {
|
|
11800
11776
|
e.show();
|
|
11801
11777
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
11802
11778
|
}
|
|
@@ -11818,8 +11794,8 @@ var at = {
|
|
|
11818
11794
|
key: "bindEvents",
|
|
11819
11795
|
value: function() {
|
|
11820
11796
|
var e = this, i = this.player.plugins.progress;
|
|
11821
|
-
if (i && (Object.keys(
|
|
11822
|
-
e[
|
|
11797
|
+
if (i && (Object.keys(st).map(function(s) {
|
|
11798
|
+
e[st[s]] = e[st[s]].bind(e), i.addCallBack(s, e[st[s]]);
|
|
11823
11799
|
}), V.device !== "mobile")) {
|
|
11824
11800
|
this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
|
|
11825
11801
|
var n = this.hook("previewClick", function() {
|
|
@@ -11977,8 +11953,8 @@ var at = {
|
|
|
11977
11953
|
key: "destroy",
|
|
11978
11954
|
value: function() {
|
|
11979
11955
|
var e = this, i = this.player.plugins.progress;
|
|
11980
|
-
i && Object.keys(
|
|
11981
|
-
i.removeCallBack(n, e[
|
|
11956
|
+
i && Object.keys(st).map(function(n) {
|
|
11957
|
+
i.removeCallBack(n, e[st[n]]);
|
|
11982
11958
|
}), this.videothumbnail = null, this.thumbnail = null, this.videoPreview && this.player.root.removeChild(this.videoPreview), this.unbind(".xg-spot-info", "mousemove", this.onMousemove), this.unbind(".xg-spot-info", "mousedown", this.onMousedown), this.unbind(".xg-spot-info", "mouseup", this.onMouseup), this.unbind(".xg-spot-content", "mouseup", this.handlerPreviewClick);
|
|
11983
11959
|
}
|
|
11984
11960
|
}, {
|
|
@@ -12031,7 +12007,7 @@ var at = {
|
|
|
12031
12007
|
key: "afterCreate",
|
|
12032
12008
|
value: function() {
|
|
12033
12009
|
var e = this;
|
|
12034
|
-
this.usable && this.initThumbnail(), this.on([
|
|
12010
|
+
this.usable && this.initThumbnail(), this.on([Be], function() {
|
|
12035
12011
|
var i = e.config, n = i.pic_num, s = i.interval;
|
|
12036
12012
|
e.usable && (e.interval = s > 0 ? s : Math.round(e.player.duration * 1e3 / n) / 1e3);
|
|
12037
12013
|
});
|
|
@@ -12084,11 +12060,11 @@ var at = {
|
|
|
12084
12060
|
this.interval = Math.round(this.player.duration / l);
|
|
12085
12061
|
var g = Math.ceil(e / this.interval);
|
|
12086
12062
|
g = g > l ? l : g;
|
|
12087
|
-
var p = g < u * c ? 0 : Math.ceil(g / (u * c)) - 1, m = g - p * (c * u), y = m > 0 ? Math.ceil(m / c) - 1 : 0, C = m > 0 ? m - y * c - 1 : 0,
|
|
12063
|
+
var p = g < u * c ? 0 : Math.ceil(g / (u * c)) - 1, m = g - p * (c * u), y = m > 0 ? Math.ceil(m / c) - 1 : 0, C = m > 0 ? m - y * c - 1 : 0, S = 0, T = 0;
|
|
12088
12064
|
if (i && n) {
|
|
12089
12065
|
var W = i / n;
|
|
12090
|
-
W < f / d ? (T = n,
|
|
12091
|
-
} else n ? i || (T = n || d,
|
|
12066
|
+
W < f / d ? (T = n, S = T * (f / d)) : (S = i, T = S / (f / d));
|
|
12067
|
+
} else n ? i || (T = n || d, S = T * (f / d)) : (S = i || f, T = S / (f / d));
|
|
12092
12068
|
var U = this.getUrlByIndex(p);
|
|
12093
12069
|
return {
|
|
12094
12070
|
urlIndex: p,
|
|
@@ -12096,12 +12072,12 @@ var at = {
|
|
|
12096
12072
|
colIndex: C,
|
|
12097
12073
|
url: U,
|
|
12098
12074
|
height: T,
|
|
12099
|
-
width:
|
|
12075
|
+
width: S,
|
|
12100
12076
|
style: {
|
|
12101
12077
|
backgroundImage: "url(".concat(U, ")"),
|
|
12102
|
-
backgroundSize: "".concat(
|
|
12103
|
-
backgroundPosition: "-".concat(C *
|
|
12104
|
-
width: "".concat(
|
|
12078
|
+
backgroundSize: "".concat(S * c, "px auto"),
|
|
12079
|
+
backgroundPosition: "-".concat(C * S, "px -").concat(y * T, "px"),
|
|
12080
|
+
width: "".concat(S, "px"),
|
|
12105
12081
|
height: "".concat(T, "px")
|
|
12106
12082
|
}
|
|
12107
12083
|
};
|
|
@@ -12154,7 +12130,7 @@ var at = {
|
|
|
12154
12130
|
}
|
|
12155
12131
|
}]), r;
|
|
12156
12132
|
}(Z);
|
|
12157
|
-
function
|
|
12133
|
+
function hi(a) {
|
|
12158
12134
|
return a ? "background:".concat(a, ";") : "";
|
|
12159
12135
|
}
|
|
12160
12136
|
var sl = /* @__PURE__ */ function(a) {
|
|
@@ -12187,7 +12163,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
12187
12163
|
key: "afterCreate",
|
|
12188
12164
|
value: function() {
|
|
12189
12165
|
var e = this;
|
|
12190
|
-
this.root && (this.on(Ee, this.onTimeupdate), this.on(
|
|
12166
|
+
this.root && (this.on(Ee, this.onTimeupdate), this.on(Je, function() {
|
|
12191
12167
|
e.reset();
|
|
12192
12168
|
}));
|
|
12193
12169
|
}
|
|
@@ -12214,9 +12190,9 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
12214
12190
|
var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
|
|
12215
12191
|
if (n) {
|
|
12216
12192
|
var s = this.config, l = s.mode, u = s.height, c = {
|
|
12217
|
-
cached:
|
|
12218
|
-
played:
|
|
12219
|
-
progress:
|
|
12193
|
+
cached: hi(i.cachedColor),
|
|
12194
|
+
played: hi(i.playedColor),
|
|
12195
|
+
progress: hi(i.progressColor),
|
|
12220
12196
|
height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
|
|
12221
12197
|
}, f = l === "show" ? "xg-mini-progress-show" : "";
|
|
12222
12198
|
return '<xg-mini-progress class="xg-mini-progress '.concat(f, '" style="').concat(c.progress, " ").concat(c.height, `">
|
|
@@ -12239,7 +12215,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
12239
12215
|
};
|
|
12240
12216
|
}
|
|
12241
12217
|
}]), r;
|
|
12242
|
-
}(Z),
|
|
12218
|
+
}(Z), at = {
|
|
12243
12219
|
REAL_TIME: "realtime",
|
|
12244
12220
|
FIRST_FRAME: "firstframe",
|
|
12245
12221
|
FRAME_RATE: "framerate",
|
|
@@ -12282,7 +12258,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
|
|
|
12282
12258
|
}
|
|
12283
12259
|
}), _(v(t), "start", function(s, l) {
|
|
12284
12260
|
var u = t.player.video, c = al(), f = t.checkVideoIsSupport(u);
|
|
12285
|
-
!f || !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 ===
|
|
12261
|
+
!f || !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 === at.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(f, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? h.setTimeout(v(t), t.start, l) : h.requestAnimationFrame(t.start));
|
|
12286
12262
|
}), _(v(t), "stop", function() {
|
|
12287
12263
|
t.frameId && (t._loopType === "timer" ? h.clearTimeout(v(t), t.frameId) : h.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
12288
12264
|
}), t;
|
|
@@ -12301,16 +12277,16 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
|
|
|
12301
12277
|
x: 0,
|
|
12302
12278
|
y: 0,
|
|
12303
12279
|
pi: 0
|
|
12304
|
-
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !==
|
|
12280
|
+
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== at.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(Wt, function() {
|
|
12305
12281
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
12306
|
-
}), s !==
|
|
12282
|
+
}), s !== at.POSTER && (s !== at.FIRST_FRAME && (this.on(Je, function() {
|
|
12307
12283
|
e.stop();
|
|
12308
12284
|
}), this.on(Se, function() {
|
|
12309
12285
|
var u = e.config.startInterval;
|
|
12310
12286
|
e._checkIfCanStart() && e.start(0, u);
|
|
12311
|
-
}), this.on(
|
|
12287
|
+
}), this.on(ct, function() {
|
|
12312
12288
|
e.stop();
|
|
12313
|
-
})), this.on(
|
|
12289
|
+
})), this.on(Ne, this.onLoadedData), this.on(Ti, function() {
|
|
12314
12290
|
e._isLoaded = !1, e.stop();
|
|
12315
12291
|
}), document.addEventListener("visibilitychange", this.onVisibilitychange)));
|
|
12316
12292
|
}
|
|
@@ -12375,7 +12351,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
|
|
|
12375
12351
|
key: "_checkIfCanStart",
|
|
12376
12352
|
value: function() {
|
|
12377
12353
|
var e = this.config.mode;
|
|
12378
|
-
return this._isLoaded && !this.player.paused && e !==
|
|
12354
|
+
return this._isLoaded && !this.player.paused && e !== at.FIRST_FRAME && e !== at.POSTER;
|
|
12379
12355
|
}
|
|
12380
12356
|
}, {
|
|
12381
12357
|
key: "renderOnce",
|
|
@@ -12537,7 +12513,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
|
|
|
12537
12513
|
FORWARD: "快进中",
|
|
12538
12514
|
LIVE_TIP: "直播"
|
|
12539
12515
|
}
|
|
12540
|
-
},
|
|
12516
|
+
}, dt = "info", di = or, cl = /* @__PURE__ */ function(a) {
|
|
12541
12517
|
R(r, a);
|
|
12542
12518
|
var o = O(r);
|
|
12543
12519
|
function r() {
|
|
@@ -12549,7 +12525,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
|
|
|
12549
12525
|
var l = t._getTime(), u = Object.assign({}, s, {
|
|
12550
12526
|
msg: s.msg || s.action
|
|
12551
12527
|
});
|
|
12552
|
-
t._stats[
|
|
12528
|
+
t._stats[dt].push(ae(ae({
|
|
12553
12529
|
type: "userAction"
|
|
12554
12530
|
}, l), {}, {
|
|
12555
12531
|
payload: u
|
|
@@ -12576,7 +12552,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
|
|
|
12576
12552
|
}, {
|
|
12577
12553
|
key: "afterCreate",
|
|
12578
12554
|
value: function() {
|
|
12579
|
-
this.reset(), this.on(
|
|
12555
|
+
this.reset(), this.on(Ft, this._recordUserActions), this.on(di.STATS_INFO, this._recordInfo), this.on(di.STATS_DOWNLOAD, this._downloadStats), this.on(di.STATS_RESET, this._onReset);
|
|
12580
12556
|
}
|
|
12581
12557
|
}, {
|
|
12582
12558
|
key: "destroy",
|
|
@@ -12597,7 +12573,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
|
|
|
12597
12573
|
key: "_info",
|
|
12598
12574
|
value: function(e) {
|
|
12599
12575
|
var i = this._getTime();
|
|
12600
|
-
this._stats[
|
|
12576
|
+
this._stats[dt].push(ae(ae({}, i), {}, {
|
|
12601
12577
|
payload: e
|
|
12602
12578
|
}));
|
|
12603
12579
|
}
|
|
@@ -12623,7 +12599,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
|
|
|
12623
12599
|
key: "reset",
|
|
12624
12600
|
value: function() {
|
|
12625
12601
|
var e;
|
|
12626
|
-
this._stats = (e = {}, _(e,
|
|
12602
|
+
this._stats = (e = {}, _(e, dt, []), _(e, "media", {}), e);
|
|
12627
12603
|
}
|
|
12628
12604
|
}, {
|
|
12629
12605
|
key: "getStats",
|
|
@@ -12649,7 +12625,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
|
|
|
12649
12625
|
}, {
|
|
12650
12626
|
key: "_getTimeStats",
|
|
12651
12627
|
value: function() {
|
|
12652
|
-
var e = this._stats[
|
|
12628
|
+
var e = this._stats[dt], i = e.map(function(n) {
|
|
12653
12629
|
var s = n.payload.data, l = "";
|
|
12654
12630
|
try {
|
|
12655
12631
|
s instanceof Error ? l = s.msg : s !== void 0 && (l = JSON.stringify(s));
|
|
@@ -12665,7 +12641,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
|
|
|
12665
12641
|
value: function() {
|
|
12666
12642
|
var e = {
|
|
12667
12643
|
traceEvents: []
|
|
12668
|
-
}, i = this._stats[
|
|
12644
|
+
}, i = this._stats[dt];
|
|
12669
12645
|
return i.forEach(function(n) {
|
|
12670
12646
|
n.payload.profile && e.traceEvents.push(n.payload);
|
|
12671
12647
|
}), e;
|
|
@@ -12681,7 +12657,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
|
|
|
12681
12657
|
return {};
|
|
12682
12658
|
}
|
|
12683
12659
|
}]), r;
|
|
12684
|
-
}(
|
|
12660
|
+
}(We), vr = /* @__PURE__ */ function(a) {
|
|
12685
12661
|
R(r, a);
|
|
12686
12662
|
var o = O(r);
|
|
12687
12663
|
function r() {
|
|
@@ -12703,8 +12679,8 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
|
|
|
12703
12679
|
console.log("GapJump bufferRange ", c.start(p), c.end(p));
|
|
12704
12680
|
var m = c.start(p) + 0.1, y = l.media.duration;
|
|
12705
12681
|
if (!(m > y)) {
|
|
12706
|
-
var C = m - g,
|
|
12707
|
-
C < r.BROWSER_GAP_TOLERANCE ||
|
|
12682
|
+
var C = m - g, S = C <= f;
|
|
12683
|
+
C < r.BROWSER_GAP_TOLERANCE || S && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ? m + 0.1 : m), t.player && t.player.emit("detectGap"), console.log("gapJump gapIndex", p, " isGapSamll:", S, " currentTime:", l.media.currentTime, " jumpSize:", g - l.media.currentTime), m !== 0.08 && l && l.emit("log", {
|
|
12708
12684
|
type: "oneevent",
|
|
12709
12685
|
end_type: "gap",
|
|
12710
12686
|
vid: l.config.vid,
|
|
@@ -12724,7 +12700,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
|
|
|
12724
12700
|
var e = this, i = this.config.useGapJump;
|
|
12725
12701
|
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(Ct, this.onGapJump), this.on(Se, function() {
|
|
12726
12702
|
e.hasPlayed = !0;
|
|
12727
|
-
}), this.on(
|
|
12703
|
+
}), this.on(jt, function() {
|
|
12728
12704
|
e.seekingEventReceived = !0;
|
|
12729
12705
|
}));
|
|
12730
12706
|
}
|
|
@@ -12795,7 +12771,7 @@ var fl = /* @__PURE__ */ function(a) {
|
|
|
12795
12771
|
key: "afterCreate",
|
|
12796
12772
|
value: function() {
|
|
12797
12773
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
12798
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(Ct, this.onWaiting), this.on([bi,
|
|
12774
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(Ct, this.onWaiting), this.on([bi, Me], function() {
|
|
12799
12775
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
12800
12776
|
}), this.on(Se, function() {
|
|
12801
12777
|
e.hasPlayed = !0;
|
|
@@ -12817,7 +12793,7 @@ var fl = /* @__PURE__ */ function(a) {
|
|
|
12817
12793
|
};
|
|
12818
12794
|
}
|
|
12819
12795
|
}]), r;
|
|
12820
|
-
}(Z),
|
|
12796
|
+
}(Z), ot = "cdn", St = ["cdn"], hl = /* @__PURE__ */ function(a) {
|
|
12821
12797
|
R(r, a);
|
|
12822
12798
|
var o = O(r);
|
|
12823
12799
|
function r() {
|
|
@@ -12826,7 +12802,7 @@ var fl = /* @__PURE__ */ function(a) {
|
|
|
12826
12802
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12827
12803
|
i[n] = arguments[n];
|
|
12828
12804
|
return t = o.call.apply(o, [this].concat(i)), _(v(t), "getSpeed", function() {
|
|
12829
|
-
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
12805
|
+
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ot;
|
|
12830
12806
|
if (!t.speedListCache || !t.speedListCache[s] || t.speedListCache[s].length <= 0)
|
|
12831
12807
|
return 0;
|
|
12832
12808
|
var l = 0;
|
|
@@ -12840,7 +12816,7 @@ var fl = /* @__PURE__ */ function(a) {
|
|
|
12840
12816
|
t.speedListCache[s] = [];
|
|
12841
12817
|
});
|
|
12842
12818
|
}), _(v(t), "_onRealSpeedChange", function(s) {
|
|
12843
|
-
s.speed && t.appendList(s.speed, s.type ||
|
|
12819
|
+
s.speed && t.appendList(s.speed, s.type || ot);
|
|
12844
12820
|
}), _(v(t), "testSpeed", function() {
|
|
12845
12821
|
if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
|
|
12846
12822
|
var s = t.config, l = s.url, u = s.loadSize, c = s.testCnt, f = s.testTimeStep, d = l + (l.indexOf("?") < 0 ? "?testst=" : "&testst=") + Date.now();
|
|
@@ -12850,32 +12826,32 @@ var fl = /* @__PURE__ */ function(a) {
|
|
|
12850
12826
|
var g = (/* @__PURE__ */ new Date()).getTime(), p = null, m = new XMLHttpRequest();
|
|
12851
12827
|
t.xhr = m, m.open("GET", d);
|
|
12852
12828
|
var y = {}, C = Math.floor(Math.random() * 10);
|
|
12853
|
-
y.Range = "bytes=" + C + "-" + (u + C), y && Object.keys(y).forEach(function(
|
|
12854
|
-
m.setRequestHeader(
|
|
12829
|
+
y.Range = "bytes=" + C + "-" + (u + C), y && Object.keys(y).forEach(function(S) {
|
|
12830
|
+
m.setRequestHeader(S, y[S]);
|
|
12855
12831
|
}), m.onreadystatechange = function() {
|
|
12856
12832
|
if (m.readyState === 4) {
|
|
12857
12833
|
t.xhr = null, p = (/* @__PURE__ */ new Date()).getTime();
|
|
12858
|
-
var
|
|
12834
|
+
var S = m.getResponseHeader("Content-Length") / 1024 * 8, T = Math.round(S * 1e3 / (p - g));
|
|
12859
12835
|
t.appendList(T), t.timer = setTimeout(t.testSpeed, f);
|
|
12860
12836
|
}
|
|
12861
12837
|
}, m.send();
|
|
12862
|
-
} catch (
|
|
12863
|
-
console.error(
|
|
12838
|
+
} catch (S) {
|
|
12839
|
+
console.error(S);
|
|
12864
12840
|
}
|
|
12865
12841
|
}
|
|
12866
12842
|
}
|
|
12867
12843
|
}), _(v(t), "appendList", function(s) {
|
|
12868
|
-
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
12844
|
+
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ot;
|
|
12869
12845
|
if (!(!t.speedListCache || !t.speedListCache[l])) {
|
|
12870
12846
|
var u = t.config.saveSpeedMax;
|
|
12871
12847
|
t.speedListCache[l].length >= u && t.speedListCache[l].shift(), t.speedListCache[l].push(s);
|
|
12872
12848
|
var c = v(t), f = c.player;
|
|
12873
|
-
f && (l ===
|
|
12849
|
+
f && (l === ot ? f.realTimeSpeed = s : f[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
|
|
12874
12850
|
}
|
|
12875
12851
|
}), _(v(t), "updateSpeed", function() {
|
|
12876
|
-
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
12852
|
+
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ot, l = t.getSpeed(s), u = v(t), c = u.player;
|
|
12877
12853
|
if (c)
|
|
12878
|
-
if (s ===
|
|
12854
|
+
if (s === ot)
|
|
12879
12855
|
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(mi, {
|
|
12880
12856
|
speed: l,
|
|
12881
12857
|
realTimeSpeed: c.realTimeSpeed
|
|
@@ -12893,7 +12869,7 @@ var fl = /* @__PURE__ */ function(a) {
|
|
|
12893
12869
|
key: "afterCreate",
|
|
12894
12870
|
value: function() {
|
|
12895
12871
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
12896
|
-
(n == null ? void 0 : n.length) > 0 && St.push.apply(St,
|
|
12872
|
+
(n == null ? void 0 : n.length) > 0 && St.push.apply(St, xe(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Ne, Dt], this.startTimer);
|
|
12897
12873
|
}
|
|
12898
12874
|
}, {
|
|
12899
12875
|
key: "getSpeedName",
|
|
@@ -12920,7 +12896,7 @@ var fl = /* @__PURE__ */ function(a) {
|
|
|
12920
12896
|
key: "destroy",
|
|
12921
12897
|
value: function() {
|
|
12922
12898
|
var e = this;
|
|
12923
|
-
this.off("real_time_speed", this._onRealSpeedChange), this.off([
|
|
12899
|
+
this.off("real_time_speed", this._onRealSpeedChange), this.off([Ne, Dt], this.startTimer), St.forEach(function(i) {
|
|
12924
12900
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
12925
12901
|
}), this.speedListCache && (this.speedListCache = {}), clearTimeout(this.timer), this.timer = null, this.xhr && this.xhr.readyState !== 4 && (this.xhr.cancel && this.xhr.cancel(), this.xhr = null);
|
|
12926
12902
|
}
|
|
@@ -12957,11 +12933,11 @@ var fl = /* @__PURE__ */ function(a) {
|
|
|
12957
12933
|
var l = s.getVideoPlaybackQuality;
|
|
12958
12934
|
l && (this.on(Se, function() {
|
|
12959
12935
|
e._startTick();
|
|
12960
|
-
}), this.on(
|
|
12936
|
+
}), this.on(ct, function() {
|
|
12961
12937
|
e._stopTick();
|
|
12962
|
-
}), this.on(
|
|
12938
|
+
}), this.on(Ze, function() {
|
|
12963
12939
|
e._stopTick();
|
|
12964
|
-
}), this.on(
|
|
12940
|
+
}), this.on(Je, function() {
|
|
12965
12941
|
e._stopTick();
|
|
12966
12942
|
}));
|
|
12967
12943
|
}
|
|
@@ -13053,46 +13029,46 @@ var fl = /* @__PURE__ */ function(a) {
|
|
|
13053
13029
|
}
|
|
13054
13030
|
}]), r;
|
|
13055
13031
|
}(Z);
|
|
13056
|
-
|
|
13032
|
+
lt.use(ul);
|
|
13057
13033
|
var gl = /* @__PURE__ */ L(function a(o, r) {
|
|
13058
13034
|
var t, e, i;
|
|
13059
13035
|
P(this, a);
|
|
13060
13036
|
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Io, Co, sl, nl, xo], u = [].concat(l, [wo, Ao, Mo, Uo, qo, Zo, $o, Ko, Ro, Bo]), c = [eo, to, no, yo, ro, el, tl, rl, lo];
|
|
13061
|
-
this.plugins = [cl, Ja].concat(
|
|
13037
|
+
this.plugins = [cl, Ja].concat(xe(u), c, [vr, fl]);
|
|
13062
13038
|
var f = n ? "mobile" : V.device;
|
|
13063
13039
|
switch (f) {
|
|
13064
13040
|
case "pc":
|
|
13065
|
-
(t = this.plugins).push.apply(t, [Sn,
|
|
13041
|
+
(t = this.plugins).push.apply(t, [Sn, ci, In, hl, dl]);
|
|
13066
13042
|
break;
|
|
13067
13043
|
case "mobile":
|
|
13068
13044
|
(e = this.plugins).push.apply(e, [po]);
|
|
13069
13045
|
break;
|
|
13070
13046
|
default:
|
|
13071
|
-
(i = this.plugins).push.apply(i, [Sn,
|
|
13047
|
+
(i = this.plugins).push.apply(i, [Sn, ci, In]);
|
|
13072
13048
|
}
|
|
13073
|
-
(V.os.isIpad || f === "pc") && this.plugins.push(ll), V.os.isIpad && this.plugins.push(
|
|
13074
|
-
}),
|
|
13049
|
+
(V.os.isIpad || f === "pc") && this.plugins.push(ll), V.os.isIpad && this.plugins.push(ci), this.ignores = [], this.i18n = [];
|
|
13050
|
+
}), Ie = /* @__PURE__ */ function(a) {
|
|
13075
13051
|
R(r, a);
|
|
13076
13052
|
var o = O(r);
|
|
13077
13053
|
function r() {
|
|
13078
13054
|
return P(this, r), o.apply(this, arguments);
|
|
13079
13055
|
}
|
|
13080
13056
|
return L(r);
|
|
13081
|
-
}(
|
|
13082
|
-
_(
|
|
13083
|
-
_(
|
|
13084
|
-
_(
|
|
13085
|
-
_(
|
|
13086
|
-
_(
|
|
13087
|
-
_(
|
|
13088
|
-
_(
|
|
13089
|
-
_(
|
|
13090
|
-
_(
|
|
13091
|
-
_(
|
|
13092
|
-
const pl = ["id"], vl = /* @__PURE__ */
|
|
13057
|
+
}(Kt);
|
|
13058
|
+
_(Ie, "defaultPreset", gl);
|
|
13059
|
+
_(Ie, "Util", h);
|
|
13060
|
+
_(Ie, "Sniffer", V);
|
|
13061
|
+
_(Ie, "Errors", Lt);
|
|
13062
|
+
_(Ie, "Events", Pa);
|
|
13063
|
+
_(Ie, "Plugin", Z);
|
|
13064
|
+
_(Ie, "BasePlugin", We);
|
|
13065
|
+
_(Ie, "I18N", lt);
|
|
13066
|
+
_(Ie, "STATE_CLASS", w);
|
|
13067
|
+
_(Ie, "InstManager", dr);
|
|
13068
|
+
const pl = ["id"], vl = /* @__PURE__ */ te({
|
|
13093
13069
|
name: "ElImageViewer",
|
|
13094
13070
|
__name: "Player",
|
|
13095
|
-
props: /* @__PURE__ */
|
|
13071
|
+
props: /* @__PURE__ */ ut({
|
|
13096
13072
|
url: {
|
|
13097
13073
|
type: String,
|
|
13098
13074
|
default: ""
|
|
@@ -13113,12 +13089,12 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13113
13089
|
},
|
|
13114
13090
|
modelModifiers: {}
|
|
13115
13091
|
}),
|
|
13116
|
-
emits: /* @__PURE__ */
|
|
13092
|
+
emits: /* @__PURE__ */ ut({
|
|
13117
13093
|
close: () => !0
|
|
13118
13094
|
}, ["update:modelValue"]),
|
|
13119
13095
|
setup(a, { emit: o }) {
|
|
13120
13096
|
let r = null;
|
|
13121
|
-
const t = a, { cLoadUrl: e } = Hn(t), i = se(() =>
|
|
13097
|
+
const t = a, { cLoadUrl: e } = Hn(t), i = se(() => Pt(e.value, t.url)), n = {
|
|
13122
13098
|
width: "100%",
|
|
13123
13099
|
height: "100%",
|
|
13124
13100
|
// 是否自动播放
|
|
@@ -13139,13 +13115,13 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13139
13115
|
}, s = se(() => ({
|
|
13140
13116
|
...n,
|
|
13141
13117
|
...t.config
|
|
13142
|
-
})), l = o, u =
|
|
13118
|
+
})), l = o, u = zt(a, "modelValue"), c = Nn(), f = Fn("image-viewer");
|
|
13143
13119
|
function d() {
|
|
13144
13120
|
l("close"), u.value = !1, r.destroy();
|
|
13145
13121
|
}
|
|
13146
|
-
return
|
|
13147
|
-
g &&
|
|
13148
|
-
r = new
|
|
13122
|
+
return vt(() => u.value, (g) => {
|
|
13123
|
+
g && mt(() => {
|
|
13124
|
+
r = new Ie({
|
|
13149
13125
|
id: c,
|
|
13150
13126
|
url: i.value,
|
|
13151
13127
|
...s.value
|
|
@@ -13153,7 +13129,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13153
13129
|
});
|
|
13154
13130
|
}), (g, p) => {
|
|
13155
13131
|
const m = xt("el-icon");
|
|
13156
|
-
return u.value ? (
|
|
13132
|
+
return u.value ? (E(), ie(Rn, {
|
|
13157
13133
|
key: 0,
|
|
13158
13134
|
to: "body"
|
|
13159
13135
|
}, [
|
|
@@ -13167,14 +13143,14 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13167
13143
|
{
|
|
13168
13144
|
ref: "wrapper",
|
|
13169
13145
|
tabindex: -1,
|
|
13170
|
-
class:
|
|
13171
|
-
style:
|
|
13146
|
+
class: ne(k(f).e("wrapper")),
|
|
13147
|
+
style: yt({ zIndex: a.zIndex })
|
|
13172
13148
|
},
|
|
13173
13149
|
[
|
|
13174
13150
|
A(
|
|
13175
13151
|
"div",
|
|
13176
13152
|
{
|
|
13177
|
-
class:
|
|
13153
|
+
class: ne(k(f).e("mask"))
|
|
13178
13154
|
},
|
|
13179
13155
|
null,
|
|
13180
13156
|
2
|
|
@@ -13184,7 +13160,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13184
13160
|
A(
|
|
13185
13161
|
"div",
|
|
13186
13162
|
{
|
|
13187
|
-
class:
|
|
13163
|
+
class: ne(k(f).e("canvas"))
|
|
13188
13164
|
},
|
|
13189
13165
|
[
|
|
13190
13166
|
A("div", { id: k(c) }, null, 8, pl),
|
|
@@ -13192,7 +13168,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13192
13168
|
A(
|
|
13193
13169
|
"span",
|
|
13194
13170
|
{
|
|
13195
|
-
class:
|
|
13171
|
+
class: ne([k(f).e("btn"), k(f).e("close")]),
|
|
13196
13172
|
onClick: d
|
|
13197
13173
|
},
|
|
13198
13174
|
[
|
|
@@ -13211,7 +13187,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13211
13187
|
2
|
|
13212
13188
|
/* CLASS */
|
|
13213
13189
|
),
|
|
13214
|
-
|
|
13190
|
+
Re(g.$slots, "default", {}, void 0, !0)
|
|
13215
13191
|
],
|
|
13216
13192
|
6
|
|
13217
13193
|
/* CLASS, STYLE */
|
|
@@ -13223,15 +13199,15 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13223
13199
|
])) : J("v-if", !0);
|
|
13224
13200
|
};
|
|
13225
13201
|
}
|
|
13226
|
-
}), ml = /* @__PURE__ */
|
|
13202
|
+
}), ml = /* @__PURE__ */ Vt(vl, [["__scopeId", "data-v-b301aa7d"]]), yl = Ge(ml), _l = { class: "ik-flie-list" }, kl = { class: "name" }, Cl = { key: 1 }, wl = ["src"], bl = { class: "file-icon" }, Tl = { class: "file-name-loading" }, El = { class: "file-name" }, Sl = { key: 0 }, Al = {
|
|
13227
13203
|
key: 0,
|
|
13228
13204
|
class: "file-size"
|
|
13229
13205
|
}, xl = { class: "name" }, Il = { class: "file-name-loading" }, Pl = { class: "file-name" }, Ll = { class: "file-size" }, Dl = { class: "operate-btn" }, Rl = { class: "card" }, Ol = { class: "title" }, Ml = { class: "ik-flie-list" }, Fl = { class: "name" }, Nl = { key: 1 }, Bl = ["src"], Hl = { class: "file-icon" }, Ul = { class: "file-name-loading" }, zl = { class: "file-name" }, Vl = { key: 0 }, jl = {
|
|
13230
13206
|
key: 0,
|
|
13231
13207
|
class: "file-size"
|
|
13232
|
-
}, Wl = { key: 0 }, Gl = /* @__PURE__ */
|
|
13208
|
+
}, Wl = { key: 0 }, Gl = /* @__PURE__ */ te({
|
|
13233
13209
|
__name: "index",
|
|
13234
|
-
props: /* @__PURE__ */
|
|
13210
|
+
props: /* @__PURE__ */ ut({
|
|
13235
13211
|
// 显示图标
|
|
13236
13212
|
showIcon: {
|
|
13237
13213
|
type: Boolean,
|
|
@@ -13376,9 +13352,9 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13376
13352
|
},
|
|
13377
13353
|
modelModifiers: {}
|
|
13378
13354
|
}),
|
|
13379
|
-
emits: /* @__PURE__ */
|
|
13355
|
+
emits: /* @__PURE__ */ ut(["delete", "exceed", "handPreview", "success", "error", "outSize"], ["update:modelValue"]),
|
|
13380
13356
|
setup(a, { emit: o }) {
|
|
13381
|
-
const r = a, t = o, e =
|
|
13357
|
+
const r = a, t = o, e = zt(a, "modelValue"), n = {
|
|
13382
13358
|
...{
|
|
13383
13359
|
name: "name",
|
|
13384
13360
|
url: "url",
|
|
@@ -13388,7 +13364,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13388
13364
|
...r.defaultFileds
|
|
13389
13365
|
}, { cLoadUrl: s, cUploadUrl: l, cOnlyofficeConfig: u, cOnlyofficePreviewType: c } = Hn(r), f = se(() => r.size), d = me(null), g = me([]), p = me({}), m = me(!1), y = (b) => {
|
|
13390
13366
|
const H = b.size / 1024 / 1024;
|
|
13391
|
-
return H < f.value ? !0 : (t("outSize"),
|
|
13367
|
+
return H < f.value ? !0 : (t("outSize"), Xt({
|
|
13392
13368
|
message: `上传文件大小(${H.toFixed(4)}MB)超出允许最大值(${r.size}MB),请重新选择`,
|
|
13393
13369
|
type: "warning",
|
|
13394
13370
|
showClose: !0,
|
|
@@ -13397,20 +13373,20 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13397
13373
|
}, C = se(() => {
|
|
13398
13374
|
const { accept: b } = r;
|
|
13399
13375
|
return b === "*" ? "*" : `${b.toLowerCase()},${b.toUpperCase()}`;
|
|
13400
|
-
}),
|
|
13376
|
+
}), S = (b, H) => {
|
|
13401
13377
|
var G, D, z, Q, pe;
|
|
13402
|
-
if (b.size / 1024 / 1024 < f.value ||
|
|
13378
|
+
if (b.size / 1024 / 1024 < f.value || mt(() => {
|
|
13403
13379
|
e.value.pop();
|
|
13404
13380
|
}), r.accept !== "*") {
|
|
13405
13381
|
let _e = !1;
|
|
13406
13382
|
C.value.includes("/") && (_e = ((D = (G = b == null ? void 0 : b.raw) == null ? void 0 : G.type) == null ? void 0 : D.split("/").shift()) === ((z = C.value) == null ? void 0 : z.split("/").shift()));
|
|
13407
13383
|
const ke = (Q = C.value) == null ? void 0 : Q.split(",");
|
|
13408
|
-
!ke.includes((pe = b == null ? void 0 : b.raw) == null ? void 0 : pe.type) && !ke.includes(`.${b.name.split(".").pop()}`) && !_e && (
|
|
13384
|
+
!ke.includes((pe = b == null ? void 0 : b.raw) == null ? void 0 : pe.type) && !ke.includes(`.${b.name.split(".").pop()}`) && !_e && (Xt({
|
|
13409
13385
|
message: `不允许的文件格式(${b.name}),请重新选择`,
|
|
13410
13386
|
type: "warning",
|
|
13411
13387
|
showClose: !0,
|
|
13412
13388
|
duration: 5e3
|
|
13413
|
-
}),
|
|
13389
|
+
}), mt(() => {
|
|
13414
13390
|
e.value.pop();
|
|
13415
13391
|
}));
|
|
13416
13392
|
}
|
|
@@ -13422,7 +13398,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13422
13398
|
b.splice(r.limit === 1 ? 1 : r.limit), b.forEach((x) => {
|
|
13423
13399
|
var G;
|
|
13424
13400
|
(G = d.value) == null || G.handleStart(x);
|
|
13425
|
-
}), (q = d.value) == null || q.submit(),
|
|
13401
|
+
}), (q = d.value) == null || q.submit(), Xt({
|
|
13426
13402
|
message: (r == null ? void 0 : r.limitText) || `最大可上传${r.limit}个文件,已忽略超出文件`,
|
|
13427
13403
|
type: "warning",
|
|
13428
13404
|
showClose: !0,
|
|
@@ -13437,7 +13413,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13437
13413
|
p.value = {
|
|
13438
13414
|
...b,
|
|
13439
13415
|
name: b[n.name],
|
|
13440
|
-
url:
|
|
13416
|
+
url: Pt(
|
|
13441
13417
|
s.value,
|
|
13442
13418
|
b[n.url] || ((q = (H = b == null ? void 0 : b.response) == null ? void 0 : H.data) == null ? void 0 : q.id)
|
|
13443
13419
|
)
|
|
@@ -13469,22 +13445,22 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13469
13445
|
g.value.splice(H, 1);
|
|
13470
13446
|
}, ye = se(
|
|
13471
13447
|
() => e.value.length >= r.limit || r.disabled
|
|
13472
|
-
),
|
|
13448
|
+
), et = (b) => {
|
|
13473
13449
|
var q, x, G;
|
|
13474
13450
|
const H = ((x = (q = b == null ? void 0 : b.response) == null ? void 0 : q.data) == null ? void 0 : x[n.suffix]) || ((G = b == null ? void 0 : b.data) == null ? void 0 : G[n.suffix]) || (b == null ? void 0 : b[n.suffix]);
|
|
13475
13451
|
return c.includes(H);
|
|
13476
13452
|
};
|
|
13477
13453
|
return (b, H) => {
|
|
13478
13454
|
var q;
|
|
13479
|
-
return
|
|
13480
|
-
|
|
13455
|
+
return E(), I(
|
|
13456
|
+
Ae,
|
|
13481
13457
|
null,
|
|
13482
13458
|
[
|
|
13483
|
-
a.preview ? J("v-if", !0) : (
|
|
13484
|
-
|
|
13459
|
+
a.preview ? J("v-if", !0) : (E(), I(
|
|
13460
|
+
Ae,
|
|
13485
13461
|
{ key: 0 },
|
|
13486
13462
|
[
|
|
13487
|
-
a.type === "button" ? (
|
|
13463
|
+
a.type === "button" ? (E(), ie(k(Ni), It({
|
|
13488
13464
|
key: 0,
|
|
13489
13465
|
class: "ik-file-upload"
|
|
13490
13466
|
}, b.$attrs, {
|
|
@@ -13498,7 +13474,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13498
13474
|
"before-upload": y,
|
|
13499
13475
|
"before-remove": T,
|
|
13500
13476
|
"on-exceed": U,
|
|
13501
|
-
"on-change":
|
|
13477
|
+
"on-change": S,
|
|
13502
13478
|
multiple: a.multiple,
|
|
13503
13479
|
headers: a.headers,
|
|
13504
13480
|
limit: a.limit,
|
|
@@ -13506,12 +13482,12 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13506
13482
|
"on-error": M
|
|
13507
13483
|
}), {
|
|
13508
13484
|
trigger: Y(() => [
|
|
13509
|
-
b.$slots.trigger ?
|
|
13485
|
+
b.$slots.trigger ? Re(b.$slots, "trigger", { key: 0 }, void 0, !0) : (E(), ie(k(Ir), {
|
|
13510
13486
|
key: 1,
|
|
13511
13487
|
disabled: ye.value
|
|
13512
13488
|
}, Dn({
|
|
13513
13489
|
default: Y(() => [
|
|
13514
|
-
|
|
13490
|
+
Xe(
|
|
13515
13491
|
" " + we(a.title),
|
|
13516
13492
|
1
|
|
13517
13493
|
/* TEXT */
|
|
@@ -13535,20 +13511,20 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13535
13511
|
file: Y(({ file: x }) => [
|
|
13536
13512
|
A("div", _l, [
|
|
13537
13513
|
A("div", kl, [
|
|
13538
|
-
!b.$slots.fileIcon && (!a.customIconData[k(ue)(x, n)] || !a.customIconData[k(ue)(x, n)][a.customIconFields.icon]) ? (
|
|
13514
|
+
!b.$slots.fileIcon && (!a.customIconData[k(ue)(x, n)] || !a.customIconData[k(ue)(x, n)][a.customIconFields.icon]) ? (E(), ie(k(ji), {
|
|
13539
13515
|
key: 0,
|
|
13540
13516
|
type: k(ue)(x, n)
|
|
13541
|
-
}, null, 8, ["type"])) : !b.$slots.fileIcon && a.customIconData[k(ue)(x, n)] && a.customIconData[k(ue)(x, n)][a.customIconFields.icon] ? (
|
|
13542
|
-
a.customIconData[k(ue)(x, n)][a.customIconFields.type] === "img" ? (
|
|
13517
|
+
}, null, 8, ["type"])) : !b.$slots.fileIcon && a.customIconData[k(ue)(x, n)] && a.customIconData[k(ue)(x, n)][a.customIconFields.icon] ? (E(), I("div", Cl, [
|
|
13518
|
+
a.customIconData[k(ue)(x, n)][a.customIconFields.type] === "img" ? (E(), I("img", {
|
|
13543
13519
|
key: 0,
|
|
13544
13520
|
src: a.customIconData[k(ue)(x, n)][a.customIconFields.icon],
|
|
13545
13521
|
alt: "",
|
|
13546
13522
|
class: "file-img-icon"
|
|
13547
|
-
}, null, 8, wl)) : (
|
|
13523
|
+
}, null, 8, wl)) : (E(), I(
|
|
13548
13524
|
"span",
|
|
13549
13525
|
{
|
|
13550
13526
|
key: 1,
|
|
13551
|
-
class:
|
|
13527
|
+
class: ne([
|
|
13552
13528
|
a.customIconData[k(ue)(x, n)][a.customIconFields.icon],
|
|
13553
13529
|
"file-icon-size"
|
|
13554
13530
|
])
|
|
@@ -13559,16 +13535,16 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13559
13535
|
))
|
|
13560
13536
|
])) : J("v-if", !0),
|
|
13561
13537
|
A("div", bl, [
|
|
13562
|
-
|
|
13538
|
+
Re(b.$slots, "fileIcon", { file: x }, void 0, !0)
|
|
13563
13539
|
]),
|
|
13564
13540
|
A("div", Tl, [
|
|
13565
13541
|
A("p", El, [
|
|
13566
|
-
|
|
13542
|
+
Xe(
|
|
13567
13543
|
we(x[n.name] || x.name) + " ",
|
|
13568
13544
|
1
|
|
13569
13545
|
/* TEXT */
|
|
13570
13546
|
),
|
|
13571
|
-
x.percentage && x.status === "uploading" ? (
|
|
13547
|
+
x.percentage && x.status === "uploading" ? (E(), I(
|
|
13572
13548
|
"span",
|
|
13573
13549
|
Sl,
|
|
13574
13550
|
"(" + we(x.percentage) + "%)",
|
|
@@ -13576,14 +13552,14 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13576
13552
|
/* TEXT */
|
|
13577
13553
|
)) : J("v-if", !0)
|
|
13578
13554
|
]),
|
|
13579
|
-
x.status === "success" ? (
|
|
13555
|
+
x.status === "success" ? (E(), I(
|
|
13580
13556
|
"p",
|
|
13581
13557
|
Al,
|
|
13582
|
-
we(k(
|
|
13558
|
+
we(k(Zt)((x[n.size] || x.size) / 1024 / 1024)) + "MB ",
|
|
13583
13559
|
1
|
|
13584
13560
|
/* TEXT */
|
|
13585
13561
|
)) : J("v-if", !0),
|
|
13586
|
-
x.percentage && x.status === "uploading" ? (
|
|
13562
|
+
x.percentage && x.status === "uploading" ? (E(), ie(k(Bi), {
|
|
13587
13563
|
key: 1,
|
|
13588
13564
|
"text-inside": "",
|
|
13589
13565
|
percentage: x.percentage,
|
|
@@ -13593,11 +13569,11 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13593
13569
|
])
|
|
13594
13570
|
]),
|
|
13595
13571
|
A("div", null, [
|
|
13596
|
-
x.status === "success" ? (
|
|
13597
|
-
|
|
13572
|
+
x.status === "success" ? (E(), I(
|
|
13573
|
+
Ae,
|
|
13598
13574
|
{ key: 0 },
|
|
13599
13575
|
[
|
|
13600
|
-
|
|
13576
|
+
et(x) ? (E(), ie(k(Ce), {
|
|
13601
13577
|
key: 0,
|
|
13602
13578
|
onClick: (G) => oe(x),
|
|
13603
13579
|
name: "iksvg_yulan",
|
|
@@ -13606,7 +13582,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13606
13582
|
size: "default"
|
|
13607
13583
|
}, null, 8, ["onClick"])) : J("v-if", !0),
|
|
13608
13584
|
B(k(Ce), {
|
|
13609
|
-
onClick:
|
|
13585
|
+
onClick: gt((G) => le(x), ["stop"]),
|
|
13610
13586
|
error: "",
|
|
13611
13587
|
name: "iksvg_shanchu",
|
|
13612
13588
|
title: "删除",
|
|
@@ -13616,9 +13592,9 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13616
13592
|
],
|
|
13617
13593
|
64
|
|
13618
13594
|
/* STABLE_FRAGMENT */
|
|
13619
|
-
)) : (
|
|
13595
|
+
)) : (E(), ie(k(Ce), {
|
|
13620
13596
|
key: 1,
|
|
13621
|
-
onClick:
|
|
13597
|
+
onClick: gt((G) => le(x), ["stop"]),
|
|
13622
13598
|
error: "",
|
|
13623
13599
|
name: "iksvg_guanbi",
|
|
13624
13600
|
size: "default",
|
|
@@ -13631,7 +13607,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13631
13607
|
default: Y(() => {
|
|
13632
13608
|
var x;
|
|
13633
13609
|
return [
|
|
13634
|
-
!a.preview && a.tip ? (
|
|
13610
|
+
!a.preview && a.tip ? (E(), ie(k(Hi), {
|
|
13635
13611
|
key: 0,
|
|
13636
13612
|
effect: "dark",
|
|
13637
13613
|
content: r.tipText || "",
|
|
@@ -13652,10 +13628,10 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13652
13628
|
_: 1
|
|
13653
13629
|
/* STABLE */
|
|
13654
13630
|
}, 8, ["content"])) : J("v-if", !0),
|
|
13655
|
-
(x = g.value) != null && x.length ? (
|
|
13656
|
-
|
|
13631
|
+
(x = g.value) != null && x.length ? (E(!0), I(
|
|
13632
|
+
Ae,
|
|
13657
13633
|
{ key: 1 },
|
|
13658
|
-
Mn(g.value, (G, D) => (
|
|
13634
|
+
Mn(g.value, (G, D) => (E(), I("div", {
|
|
13659
13635
|
class: "ik-error-flie-list",
|
|
13660
13636
|
key: G.uid
|
|
13661
13637
|
}, [
|
|
@@ -13682,7 +13658,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13682
13658
|
A(
|
|
13683
13659
|
"p",
|
|
13684
13660
|
Ll,
|
|
13685
|
-
we(k(
|
|
13661
|
+
we(k(Zt)(G.size / 1024 / 1024)) + "MB ",
|
|
13686
13662
|
1
|
|
13687
13663
|
/* TEXT */
|
|
13688
13664
|
)
|
|
@@ -13690,14 +13666,14 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13690
13666
|
]),
|
|
13691
13667
|
A("div", Dl, [
|
|
13692
13668
|
B(k(Ce), {
|
|
13693
|
-
onClick:
|
|
13669
|
+
onClick: gt((z) => W(G, D), ["stop"]),
|
|
13694
13670
|
name: "iksvg_zhongzhi",
|
|
13695
13671
|
title: "重新上传",
|
|
13696
13672
|
bg: "",
|
|
13697
13673
|
size: "default"
|
|
13698
13674
|
}, null, 8, ["onClick"]),
|
|
13699
13675
|
B(k(Ce), {
|
|
13700
|
-
onClick:
|
|
13676
|
+
onClick: gt((z) => he(G, D), ["stop"]),
|
|
13701
13677
|
error: "",
|
|
13702
13678
|
name: "iksvg_shanchu",
|
|
13703
13679
|
title: "删除",
|
|
@@ -13713,7 +13689,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13713
13689
|
}),
|
|
13714
13690
|
_: 3
|
|
13715
13691
|
/* FORWARDED */
|
|
13716
|
-
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (
|
|
13692
|
+
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (E(), ie(k(Ni), It({
|
|
13717
13693
|
key: 1,
|
|
13718
13694
|
"file-list": e.value,
|
|
13719
13695
|
"onUpdate:fileList": H[1] || (H[1] = (x) => e.value = x),
|
|
@@ -13733,25 +13709,25 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13733
13709
|
limit: a.limit,
|
|
13734
13710
|
"on-success": X,
|
|
13735
13711
|
"on-error": M,
|
|
13736
|
-
"on-change":
|
|
13712
|
+
"on-change": S
|
|
13737
13713
|
}), {
|
|
13738
13714
|
file: Y(({ file: x }) => [
|
|
13739
13715
|
A("div", Ml, [
|
|
13740
13716
|
A("div", Fl, [
|
|
13741
|
-
!b.$slots.fileIcon && (!a.customIconData[k(ue)(x, n)] || !a.customIconData[k(ue)(x, n)][a.customIconFields.icon]) ? (
|
|
13717
|
+
!b.$slots.fileIcon && (!a.customIconData[k(ue)(x, n)] || !a.customIconData[k(ue)(x, n)][a.customIconFields.icon]) ? (E(), ie(k(ji), {
|
|
13742
13718
|
key: 0,
|
|
13743
13719
|
type: k(ue)(x, n)
|
|
13744
|
-
}, null, 8, ["type"])) : !b.$slots.fileIcon && a.customIconData[k(ue)(x, n)] && a.customIconData[k(ue)(x, n)][a.customIconFields.icon] ? (
|
|
13745
|
-
a.customIconData[k(ue)(x, n)][a.customIconFields.type] === "img" ? (
|
|
13720
|
+
}, null, 8, ["type"])) : !b.$slots.fileIcon && a.customIconData[k(ue)(x, n)] && a.customIconData[k(ue)(x, n)][a.customIconFields.icon] ? (E(), I("div", Nl, [
|
|
13721
|
+
a.customIconData[k(ue)(x, n)][a.customIconFields.type] === "img" ? (E(), I("img", {
|
|
13746
13722
|
key: 0,
|
|
13747
13723
|
src: a.customIconData[k(ue)(x, n)][a.customIconFields.icon],
|
|
13748
13724
|
alt: "",
|
|
13749
13725
|
class: "file-img-icon"
|
|
13750
|
-
}, null, 8, Bl)) : (
|
|
13726
|
+
}, null, 8, Bl)) : (E(), I(
|
|
13751
13727
|
"span",
|
|
13752
13728
|
{
|
|
13753
13729
|
key: 1,
|
|
13754
|
-
class:
|
|
13730
|
+
class: ne([
|
|
13755
13731
|
a.customIconData[k(ue)(x, n)][a.customIconFields.icon],
|
|
13756
13732
|
"file-icon-size"
|
|
13757
13733
|
])
|
|
@@ -13762,16 +13738,16 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13762
13738
|
))
|
|
13763
13739
|
])) : J("v-if", !0),
|
|
13764
13740
|
A("div", Hl, [
|
|
13765
|
-
|
|
13741
|
+
Re(b.$slots, "fileIcon", { file: x }, void 0, !0)
|
|
13766
13742
|
]),
|
|
13767
13743
|
A("div", Ul, [
|
|
13768
13744
|
A("p", zl, [
|
|
13769
|
-
|
|
13745
|
+
Xe(
|
|
13770
13746
|
we(x[n.name] || x.name) + " ",
|
|
13771
13747
|
1
|
|
13772
13748
|
/* TEXT */
|
|
13773
13749
|
),
|
|
13774
|
-
x.percentage && x.status === "uploading" ? (
|
|
13750
|
+
x.percentage && x.status === "uploading" ? (E(), I(
|
|
13775
13751
|
"span",
|
|
13776
13752
|
Vl,
|
|
13777
13753
|
"(" + we(x.percentage) + "%)",
|
|
@@ -13779,14 +13755,14 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13779
13755
|
/* TEXT */
|
|
13780
13756
|
)) : J("v-if", !0)
|
|
13781
13757
|
]),
|
|
13782
|
-
x.status === "success" ? (
|
|
13758
|
+
x.status === "success" ? (E(), I(
|
|
13783
13759
|
"p",
|
|
13784
13760
|
jl,
|
|
13785
|
-
we(k(
|
|
13761
|
+
we(k(Zt)((x[n.size] || x.size) / 1024 / 1024)) + "MB ",
|
|
13786
13762
|
1
|
|
13787
13763
|
/* TEXT */
|
|
13788
13764
|
)) : J("v-if", !0),
|
|
13789
|
-
x.percentage && x.status === "uploading" ? (
|
|
13765
|
+
x.percentage && x.status === "uploading" ? (E(), ie(k(Bi), {
|
|
13790
13766
|
key: 1,
|
|
13791
13767
|
"text-inside": "",
|
|
13792
13768
|
percentage: x.percentage,
|
|
@@ -13795,11 +13771,11 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13795
13771
|
}, null, 8, ["percentage"])) : J("v-if", !0)
|
|
13796
13772
|
])
|
|
13797
13773
|
]),
|
|
13798
|
-
a.preview ? (
|
|
13799
|
-
|
|
13774
|
+
a.preview ? (E(), I(
|
|
13775
|
+
Ae,
|
|
13800
13776
|
{ key: 1 },
|
|
13801
13777
|
[
|
|
13802
|
-
(a.preview || x.percentage === 100) &&
|
|
13778
|
+
(a.preview || x.percentage === 100) && et(x) ? (E(), ie(
|
|
13803
13779
|
k(be),
|
|
13804
13780
|
{
|
|
13805
13781
|
key: 0,
|
|
@@ -13839,12 +13815,12 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13839
13815
|
],
|
|
13840
13816
|
64
|
|
13841
13817
|
/* STABLE_FRAGMENT */
|
|
13842
|
-
)) : (
|
|
13843
|
-
x.status === "success" ? (
|
|
13844
|
-
|
|
13818
|
+
)) : (E(), I("div", Wl, [
|
|
13819
|
+
x.status === "success" ? (E(), I(
|
|
13820
|
+
Ae,
|
|
13845
13821
|
{ key: 0 },
|
|
13846
13822
|
[
|
|
13847
|
-
|
|
13823
|
+
et(x) ? (E(), ie(k(Ce), {
|
|
13848
13824
|
key: 0,
|
|
13849
13825
|
onClick: (G) => oe(x),
|
|
13850
13826
|
name: "iksvg_yulan",
|
|
@@ -13863,7 +13839,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13863
13839
|
],
|
|
13864
13840
|
64
|
|
13865
13841
|
/* STABLE_FRAGMENT */
|
|
13866
|
-
)) : (
|
|
13842
|
+
)) : (E(), ie(k(Ce), {
|
|
13867
13843
|
key: 1,
|
|
13868
13844
|
onClick: (G) => le(x),
|
|
13869
13845
|
error: "",
|
|
@@ -13878,7 +13854,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13878
13854
|
default: Y(() => [
|
|
13879
13855
|
A("div", Rl, [
|
|
13880
13856
|
A("div", Ol, [
|
|
13881
|
-
a.imageMode ?
|
|
13857
|
+
a.imageMode ? Re(b.$slots, "image", { key: 0 }, () => [
|
|
13882
13858
|
H[3] || (H[3] = A(
|
|
13883
13859
|
"img",
|
|
13884
13860
|
{
|
|
@@ -13889,7 +13865,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13889
13865
|
-1
|
|
13890
13866
|
/* HOISTED */
|
|
13891
13867
|
))
|
|
13892
|
-
], !0) : a.showIcon ? (
|
|
13868
|
+
], !0) : a.showIcon ? (E(), ie(k(Ce), {
|
|
13893
13869
|
key: 1,
|
|
13894
13870
|
name: "iksvg_img_shangchuanhetongfujianbeifen",
|
|
13895
13871
|
type: "primary",
|
|
@@ -13897,12 +13873,12 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13897
13873
|
size: 40
|
|
13898
13874
|
})) : J("v-if", !0),
|
|
13899
13875
|
A("span", null, [
|
|
13900
|
-
|
|
13876
|
+
Xe(
|
|
13901
13877
|
we(a.title) + " ",
|
|
13902
13878
|
1
|
|
13903
13879
|
/* TEXT */
|
|
13904
13880
|
),
|
|
13905
|
-
!a.preview && a.tip ? (
|
|
13881
|
+
!a.preview && a.tip ? (E(), ie(k(Hi), {
|
|
13906
13882
|
key: 0,
|
|
13907
13883
|
effect: "dark",
|
|
13908
13884
|
content: r.tipText || "",
|
|
@@ -13955,7 +13931,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
|
|
|
13955
13931
|
);
|
|
13956
13932
|
};
|
|
13957
13933
|
}
|
|
13958
|
-
}), $l = /* @__PURE__ */
|
|
13934
|
+
}), $l = /* @__PURE__ */ Vt(Gl, [["__scopeId", "data-v-2f840f62"]]), Zl = Ge($l);
|
|
13959
13935
|
export {
|
|
13960
13936
|
Zl as IkUploadFile,
|
|
13961
13937
|
Zl as default
|