iking-web-ui-pro 0.3.4 → 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 +612 -640
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +151 -179
- package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +274 -302
- package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +148 -176
- package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
- package/dist/IkDescription/ik.index.es.js +1494 -1522
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +1462 -1490
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +142 -170
- package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +210 -238
- package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +356 -384
- package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +624 -652
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +1438 -1466
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +571 -599
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +324 -352
- package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
- package/dist/IkSideText/ik.index.es.js +163 -191
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +129 -157
- package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +690 -718
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +353 -381
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +199 -227
- package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +1 -1
- package/dist/index.es.js +6833 -6861
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as Q, openBlock as
|
|
2
|
-
import { ikColor as _r, paramType as Li, _ as Mt, buildUUID as
|
|
3
|
-
import { useLocale as Cr, useNamespace as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as Q, openBlock as M, createElementBlock as j, createElementVNode as W, inject as tt, computed as J, resolveComponent as vt, normalizeClass as $, normalizeStyle as rt, Fragment as st, createBlock as De, withCtx as Z, mergeProps as bn, createTextVNode as Jt, toDisplayString as Qt, createVNode as K, unref as P, mergeModels as mt, useModel as oi, ref as _e, h as ar, createSlots as or, renderSlot as qe, createCommentVNode as ue, getCurrentScope as lr, onScopeDispose as ur, watch as at, markRaw as Ai, effectScope as cr, shallowRef as fr, nextTick as li, onMounted as hr, Teleport as wn, Transition as Tn, withModifiers as dr, resolveDynamicComponent as gr, renderList as pr, withDirectives as vr, vShow as mr, reactive as yr } from "vue";
|
|
2
|
+
import { ikColor as _r, paramType as Li, _ as Mt, buildUUID as En } from "iking-utils-pro";
|
|
3
|
+
import { useLocale as Cr, useNamespace as Sn, useZIndex as kr, ElIcon as Ie, EVENT_CODE as je } from "element-plus";
|
|
4
|
+
const Je = (o, a) => (o.install = (r) => {
|
|
5
5
|
for (const t of [o, ...Object.values({})])
|
|
6
6
|
r.component(t.name, t);
|
|
7
7
|
}, o), ei = (o, a) => a ? a.startsWith("http") ? a : `${o || location.origin}${a}` : "", Di = (o, a) => {
|
|
@@ -123,11 +123,11 @@ var Tr = /* @__PURE__ */ Q({
|
|
|
123
123
|
name: "ArrowLeft",
|
|
124
124
|
__name: "arrow-left",
|
|
125
125
|
setup(o) {
|
|
126
|
-
return (a, r) => (
|
|
126
|
+
return (a, r) => (M(), j("svg", {
|
|
127
127
|
xmlns: "http://www.w3.org/2000/svg",
|
|
128
128
|
viewBox: "0 0 1024 1024"
|
|
129
129
|
}, [
|
|
130
|
-
|
|
130
|
+
W("path", {
|
|
131
131
|
fill: "currentColor",
|
|
132
132
|
d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"
|
|
133
133
|
})
|
|
@@ -137,11 +137,11 @@ var Tr = /* @__PURE__ */ Q({
|
|
|
137
137
|
name: "ArrowRight",
|
|
138
138
|
__name: "arrow-right",
|
|
139
139
|
setup(o) {
|
|
140
|
-
return (a, r) => (
|
|
140
|
+
return (a, r) => (M(), j("svg", {
|
|
141
141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
142
142
|
viewBox: "0 0 1024 1024"
|
|
143
143
|
}, [
|
|
144
|
-
|
|
144
|
+
W("path", {
|
|
145
145
|
fill: "currentColor",
|
|
146
146
|
d: "M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
|
|
147
147
|
})
|
|
@@ -151,25 +151,25 @@ var Tr = /* @__PURE__ */ Q({
|
|
|
151
151
|
name: "Close",
|
|
152
152
|
__name: "close",
|
|
153
153
|
setup(o) {
|
|
154
|
-
return (a, r) => (
|
|
154
|
+
return (a, r) => (M(), j("svg", {
|
|
155
155
|
xmlns: "http://www.w3.org/2000/svg",
|
|
156
156
|
viewBox: "0 0 1024 1024"
|
|
157
157
|
}, [
|
|
158
|
-
|
|
158
|
+
W("path", {
|
|
159
159
|
fill: "currentColor",
|
|
160
160
|
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
161
161
|
})
|
|
162
162
|
]));
|
|
163
163
|
}
|
|
164
|
-
}),
|
|
164
|
+
}), xn = Ir, Pr = /* @__PURE__ */ Q({
|
|
165
165
|
name: "FullScreen",
|
|
166
166
|
__name: "full-screen",
|
|
167
167
|
setup(o) {
|
|
168
|
-
return (a, r) => (
|
|
168
|
+
return (a, r) => (M(), j("svg", {
|
|
169
169
|
xmlns: "http://www.w3.org/2000/svg",
|
|
170
170
|
viewBox: "0 0 1024 1024"
|
|
171
171
|
}, [
|
|
172
|
-
|
|
172
|
+
W("path", {
|
|
173
173
|
fill: "currentColor",
|
|
174
174
|
d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"
|
|
175
175
|
})
|
|
@@ -179,11 +179,11 @@ var Tr = /* @__PURE__ */ Q({
|
|
|
179
179
|
name: "RefreshLeft",
|
|
180
180
|
__name: "refresh-left",
|
|
181
181
|
setup(o) {
|
|
182
|
-
return (a, r) => (
|
|
182
|
+
return (a, r) => (M(), j("svg", {
|
|
183
183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
184
184
|
viewBox: "0 0 1024 1024"
|
|
185
185
|
}, [
|
|
186
|
-
|
|
186
|
+
W("path", {
|
|
187
187
|
fill: "currentColor",
|
|
188
188
|
d: "M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"
|
|
189
189
|
})
|
|
@@ -193,11 +193,11 @@ var Tr = /* @__PURE__ */ Q({
|
|
|
193
193
|
name: "RefreshRight",
|
|
194
194
|
__name: "refresh-right",
|
|
195
195
|
setup(o) {
|
|
196
|
-
return (a, r) => (
|
|
196
|
+
return (a, r) => (M(), j("svg", {
|
|
197
197
|
xmlns: "http://www.w3.org/2000/svg",
|
|
198
198
|
viewBox: "0 0 1024 1024"
|
|
199
199
|
}, [
|
|
200
|
-
|
|
200
|
+
W("path", {
|
|
201
201
|
fill: "currentColor",
|
|
202
202
|
d: "M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"
|
|
203
203
|
})
|
|
@@ -207,11 +207,11 @@ var Tr = /* @__PURE__ */ Q({
|
|
|
207
207
|
name: "ScaleToOriginal",
|
|
208
208
|
__name: "scale-to-original",
|
|
209
209
|
setup(o) {
|
|
210
|
-
return (a, r) => (
|
|
210
|
+
return (a, r) => (M(), j("svg", {
|
|
211
211
|
xmlns: "http://www.w3.org/2000/svg",
|
|
212
212
|
viewBox: "0 0 1024 1024"
|
|
213
213
|
}, [
|
|
214
|
-
|
|
214
|
+
W("path", {
|
|
215
215
|
fill: "currentColor",
|
|
216
216
|
d: "M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"
|
|
217
217
|
})
|
|
@@ -221,11 +221,11 @@ var Tr = /* @__PURE__ */ Q({
|
|
|
221
221
|
name: "ZoomIn",
|
|
222
222
|
__name: "zoom-in",
|
|
223
223
|
setup(o) {
|
|
224
|
-
return (a, r) => (
|
|
224
|
+
return (a, r) => (M(), j("svg", {
|
|
225
225
|
xmlns: "http://www.w3.org/2000/svg",
|
|
226
226
|
viewBox: "0 0 1024 1024"
|
|
227
227
|
}, [
|
|
228
|
-
|
|
228
|
+
W("path", {
|
|
229
229
|
fill: "currentColor",
|
|
230
230
|
d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"
|
|
231
231
|
})
|
|
@@ -235,11 +235,11 @@ var Tr = /* @__PURE__ */ Q({
|
|
|
235
235
|
name: "ZoomOut",
|
|
236
236
|
__name: "zoom-out",
|
|
237
237
|
setup(o) {
|
|
238
|
-
return (a, r) => (
|
|
238
|
+
return (a, r) => (M(), j("svg", {
|
|
239
239
|
xmlns: "http://www.w3.org/2000/svg",
|
|
240
240
|
viewBox: "0 0 1024 1024"
|
|
241
241
|
}, [
|
|
242
|
-
|
|
242
|
+
W("path", {
|
|
243
243
|
fill: "currentColor",
|
|
244
244
|
d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"
|
|
245
245
|
})
|
|
@@ -307,7 +307,7 @@ const ui = (o, a) => {
|
|
|
307
307
|
"flv",
|
|
308
308
|
"tls"
|
|
309
309
|
], Vr = (o) => {
|
|
310
|
-
const a =
|
|
310
|
+
const a = tt("loadUrl"), r = J(() => o.loadUrl || o.fileUrl || (a == null ? void 0 : a.value)), t = tt("uploadUrl"), e = J(() => o.action || o.uploadUrl || (t == null ? void 0 : t.value)), i = tt("token"), n = J(() => o.token || (i == null ? void 0 : i.value)), s = tt("onlyofficeConfig"), l = J(() => o.onlyofficeConfig || (s == null ? void 0 : s.value)), u = tt("userInfo"), c = J(() => o.userInfo || (u == null ? void 0 : u.value)), f = [...Oi, ...Oi.map((d) => d.toLocaleUpperCase())];
|
|
311
311
|
return {
|
|
312
312
|
cLoadUrl: r,
|
|
313
313
|
cUploadUrl: e,
|
|
@@ -372,7 +372,6 @@ const ui = (o, a) => {
|
|
|
372
372
|
}
|
|
373
373
|
t.value.rotate && f.push(`rotate(${t.value.rotate % 360}deg)`);
|
|
374
374
|
const d = {
|
|
375
|
-
pointerEvents: t.value.disabled ? "none" : "auto",
|
|
376
375
|
...t.value.color && { color: t.value.color },
|
|
377
376
|
...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
|
|
378
377
|
...f.length && { transform: f.join(" ") },
|
|
@@ -393,158 +392,131 @@ const ui = (o, a) => {
|
|
|
393
392
|
n("dblclick", f);
|
|
394
393
|
};
|
|
395
394
|
return (f, d) => {
|
|
396
|
-
const g =
|
|
397
|
-
return
|
|
398
|
-
|
|
399
|
-
{
|
|
395
|
+
const g = vt("el-tooltip"), p = vt("el-button");
|
|
396
|
+
return M(), j(
|
|
397
|
+
"i",
|
|
398
|
+
{
|
|
399
|
+
class: $(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
400
|
+
[f.iconClass]: !0,
|
|
401
|
+
[f.name]: e.value === "unocss",
|
|
402
|
+
"show-bg": t.value.showBg || t.value.bg,
|
|
403
|
+
default: t.value.size === "default",
|
|
404
|
+
small: t.value.size === "small",
|
|
405
|
+
big: t.value.size === "big",
|
|
406
|
+
warning: t.value.warning || t.value.type === "warning",
|
|
407
|
+
primary: t.value.primary || t.value.type === "primary",
|
|
408
|
+
success: f.success || t.value.type === "success",
|
|
409
|
+
error: t.value.error || t.value.type === "error",
|
|
410
|
+
active: t.value.active,
|
|
411
|
+
disabled: t.value.disabled
|
|
412
|
+
}]),
|
|
413
|
+
style: rt(i.value),
|
|
414
|
+
onClick: s,
|
|
415
|
+
onDblclick: c,
|
|
416
|
+
onMouseenter: l,
|
|
417
|
+
onMouseleave: u
|
|
418
|
+
},
|
|
400
419
|
[
|
|
401
|
-
t.value.
|
|
402
|
-
|
|
403
|
-
{
|
|
404
|
-
key: 0,
|
|
405
|
-
class: Y(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
406
|
-
[f.iconClass]: !0,
|
|
407
|
-
[f.name]: e.value === "unocss",
|
|
408
|
-
"show-bg": t.value.showBg || t.value.bg,
|
|
409
|
-
default: t.value.size === "default",
|
|
410
|
-
small: t.value.size === "small",
|
|
411
|
-
big: t.value.size === "big",
|
|
412
|
-
warning: t.value.warning || t.value.type === "warning",
|
|
413
|
-
primary: t.value.primary || t.value.type === "primary",
|
|
414
|
-
success: f.success || t.value.type === "success",
|
|
415
|
-
error: t.value.error || t.value.type === "error",
|
|
416
|
-
active: t.value.active,
|
|
417
|
-
disabled: t.value.disabled
|
|
418
|
-
}]),
|
|
419
|
-
style: _e(i.value),
|
|
420
|
-
onClick: s,
|
|
421
|
-
onDblclick: c,
|
|
422
|
-
onMouseenter: l,
|
|
423
|
-
onMouseleave: u
|
|
424
|
-
},
|
|
420
|
+
t.value.tableIconType === "icon" || !t.value.tableIconType ? (M(), j(
|
|
421
|
+
st,
|
|
422
|
+
{ key: 0 },
|
|
425
423
|
[
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
{
|
|
429
|
-
key: 0,
|
|
430
|
-
class: Y(`iksig ${t.value.name}`),
|
|
431
|
-
style: _e(i.value)
|
|
432
|
-
},
|
|
433
|
-
null,
|
|
434
|
-
6
|
|
435
|
-
/* CLASS, STYLE */
|
|
436
|
-
)) : e.value === "svg" ? (N(), W("svg", zr, [
|
|
437
|
-
j("use", {
|
|
438
|
-
"xlink:href": `#${t.value.name}`
|
|
439
|
-
}, null, 8, jr)
|
|
440
|
-
])) : e.value === "img" ? (N(), W("img", {
|
|
441
|
-
key: 2,
|
|
442
|
-
src: t.value.name,
|
|
443
|
-
class: "h-[1em] w-[1em]"
|
|
444
|
-
}, null, 8, Wr)) : (N(), W(
|
|
445
|
-
"i",
|
|
446
|
-
{
|
|
447
|
-
key: 3,
|
|
448
|
-
class: Y(t.value.name),
|
|
449
|
-
style: _e(i.value)
|
|
450
|
-
},
|
|
451
|
-
null,
|
|
452
|
-
6
|
|
453
|
-
/* CLASS, STYLE */
|
|
454
|
-
))
|
|
455
|
-
],
|
|
456
|
-
38
|
|
457
|
-
/* CLASS, STYLE, NEED_HYDRATION */
|
|
458
|
-
)) : (N(), Re(g, {
|
|
459
|
-
key: 1,
|
|
460
|
-
content: t.value.title,
|
|
461
|
-
placement: "top",
|
|
462
|
-
"popper-class": "ik-svg-icon-tooltip",
|
|
463
|
-
"hide-after": 0
|
|
464
|
-
}, {
|
|
465
|
-
default: Z(() => [
|
|
466
|
-
j(
|
|
467
|
-
"i",
|
|
468
|
-
{
|
|
469
|
-
class: Y(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
470
|
-
[f.iconClass]: !0,
|
|
471
|
-
[f.name]: e.value === "unocss",
|
|
472
|
-
"show-bg": t.value.showBg || t.value.bg,
|
|
473
|
-
default: t.value.size === "default",
|
|
474
|
-
small: t.value.size === "small",
|
|
475
|
-
big: t.value.size === "big",
|
|
476
|
-
warning: t.value.warning || t.value.type === "warning",
|
|
477
|
-
primary: f.primary || t.value.type === "primary",
|
|
478
|
-
success: f.success || t.value.type === "success",
|
|
479
|
-
error: t.value.error || t.value.type === "error",
|
|
480
|
-
active: t.value.active,
|
|
481
|
-
disabled: t.value.disabled,
|
|
482
|
-
...f.$attrs.class || {}
|
|
483
|
-
}]),
|
|
484
|
-
style: _e(i.value),
|
|
485
|
-
onClick: s,
|
|
486
|
-
onDblclick: c,
|
|
487
|
-
onMouseenter: l,
|
|
488
|
-
onMouseleave: u
|
|
489
|
-
},
|
|
424
|
+
t.value.notip || !t.value.title ? (M(), j(
|
|
425
|
+
st,
|
|
426
|
+
{ key: 0 },
|
|
490
427
|
[
|
|
491
|
-
e.value === "iksig" ? (
|
|
428
|
+
e.value === "iksig" ? (M(), j(
|
|
492
429
|
"i",
|
|
493
430
|
{
|
|
494
431
|
key: 0,
|
|
495
|
-
class:
|
|
496
|
-
style: _e(i.value)
|
|
432
|
+
class: $(`iksig ${t.value.name}`)
|
|
497
433
|
},
|
|
498
434
|
null,
|
|
499
|
-
|
|
500
|
-
/* CLASS
|
|
501
|
-
)) : e.value === "svg" ? (
|
|
502
|
-
|
|
435
|
+
2
|
|
436
|
+
/* CLASS */
|
|
437
|
+
)) : e.value === "svg" ? (M(), j("svg", zr, [
|
|
438
|
+
W("use", {
|
|
503
439
|
"xlink:href": `#${t.value.name}`
|
|
504
|
-
}, null, 8,
|
|
505
|
-
])) : e.value === "img" ? (
|
|
440
|
+
}, null, 8, jr)
|
|
441
|
+
])) : e.value === "img" ? (M(), j("img", {
|
|
506
442
|
key: 2,
|
|
507
443
|
src: t.value.name,
|
|
508
444
|
class: "h-[1em] w-[1em]"
|
|
509
|
-
}, null, 8,
|
|
445
|
+
}, null, 8, Wr)) : (M(), j(
|
|
510
446
|
"i",
|
|
511
447
|
{
|
|
512
448
|
key: 3,
|
|
513
|
-
class:
|
|
514
|
-
style: _e(i.value)
|
|
449
|
+
class: $(t.value.name)
|
|
515
450
|
},
|
|
516
451
|
null,
|
|
517
|
-
|
|
518
|
-
/* CLASS
|
|
452
|
+
2
|
|
453
|
+
/* CLASS */
|
|
519
454
|
))
|
|
520
455
|
],
|
|
521
|
-
|
|
522
|
-
/*
|
|
456
|
+
64
|
|
457
|
+
/* STABLE_FRAGMENT */
|
|
458
|
+
)) : (M(), De(g, {
|
|
459
|
+
key: 1,
|
|
460
|
+
content: t.value.title,
|
|
461
|
+
placement: "top",
|
|
462
|
+
"popper-class": "ik-svg-icon-tooltip",
|
|
463
|
+
"hide-after": 0
|
|
464
|
+
}, {
|
|
465
|
+
default: Z(() => [
|
|
466
|
+
e.value === "iksig" ? (M(), j(
|
|
467
|
+
"i",
|
|
468
|
+
{
|
|
469
|
+
key: 0,
|
|
470
|
+
class: $(`iksig ${t.value.name}`)
|
|
471
|
+
},
|
|
472
|
+
null,
|
|
473
|
+
2
|
|
474
|
+
/* CLASS */
|
|
475
|
+
)) : e.value === "svg" ? (M(), j("svg", Gr, [
|
|
476
|
+
W("use", {
|
|
477
|
+
"xlink:href": `#${t.value.name}`
|
|
478
|
+
}, null, 8, Kr)
|
|
479
|
+
])) : e.value === "img" ? (M(), j("img", {
|
|
480
|
+
key: 2,
|
|
481
|
+
src: t.value.name,
|
|
482
|
+
class: "h-[1em] w-[1em]"
|
|
483
|
+
}, null, 8, Yr)) : (M(), j(
|
|
484
|
+
"i",
|
|
485
|
+
{
|
|
486
|
+
key: 3,
|
|
487
|
+
class: $(t.value.name)
|
|
488
|
+
},
|
|
489
|
+
null,
|
|
490
|
+
2
|
|
491
|
+
/* CLASS */
|
|
492
|
+
))
|
|
493
|
+
]),
|
|
494
|
+
_: 1
|
|
495
|
+
/* STABLE */
|
|
496
|
+
}, 8, ["content"]))
|
|
497
|
+
],
|
|
498
|
+
64
|
|
499
|
+
/* STABLE_FRAGMENT */
|
|
500
|
+
)) : (M(), De(p, bn({ key: 1 }, f.$attrs, {
|
|
501
|
+
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
502
|
+
}), {
|
|
503
|
+
default: Z(() => [
|
|
504
|
+
Jt(
|
|
505
|
+
Qt(t.value.title),
|
|
506
|
+
1
|
|
507
|
+
/* TEXT */
|
|
523
508
|
)
|
|
524
509
|
]),
|
|
525
510
|
_: 1
|
|
526
511
|
/* STABLE */
|
|
527
|
-
},
|
|
512
|
+
}, 16, ["type"]))
|
|
528
513
|
],
|
|
529
|
-
|
|
530
|
-
/*
|
|
531
|
-
)
|
|
532
|
-
key: 1,
|
|
533
|
-
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
534
|
-
}, {
|
|
535
|
-
default: Z(() => [
|
|
536
|
-
Jt(
|
|
537
|
-
Qt(t.value.title),
|
|
538
|
-
1
|
|
539
|
-
/* TEXT */
|
|
540
|
-
)
|
|
541
|
-
]),
|
|
542
|
-
_: 1
|
|
543
|
-
/* STABLE */
|
|
544
|
-
}, 8, ["type"]));
|
|
514
|
+
38
|
|
515
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
516
|
+
);
|
|
545
517
|
};
|
|
546
518
|
}
|
|
547
|
-
}), Xr = /* @__PURE__ */ ui($r, [["__scopeId", "data-v-
|
|
519
|
+
}), Xr = /* @__PURE__ */ ui($r, [["__scopeId", "data-v-2648e369"]]), In = Je(Xr);
|
|
548
520
|
function ci(o) {
|
|
549
521
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
550
522
|
}
|
|
@@ -561,13 +533,13 @@ const qr = /* @__PURE__ */ Q({
|
|
|
561
533
|
}
|
|
562
534
|
},
|
|
563
535
|
setup(o) {
|
|
564
|
-
return (a, r) => (
|
|
536
|
+
return (a, r) => (M(), j(
|
|
565
537
|
"div",
|
|
566
538
|
{
|
|
567
|
-
class:
|
|
539
|
+
class: $({ "exit-main-page-maximize": o.showBg && o.fullscreen })
|
|
568
540
|
},
|
|
569
541
|
[
|
|
570
|
-
K(P(
|
|
542
|
+
K(P(In), {
|
|
571
543
|
name: "iksvg_guanbi",
|
|
572
544
|
title: "关闭",
|
|
573
545
|
size: 20
|
|
@@ -598,19 +570,19 @@ const qr = /* @__PURE__ */ Q({
|
|
|
598
570
|
}),
|
|
599
571
|
emits: ["update:modelValue"],
|
|
600
572
|
setup(o) {
|
|
601
|
-
const a = o, r = oi(o, "modelValue"), t =
|
|
573
|
+
const a = o, r = oi(o, "modelValue"), t = _e(a.fullscreen), e = () => {
|
|
602
574
|
t.value = !t.value;
|
|
603
575
|
}, i = Q({
|
|
604
576
|
setup() {
|
|
605
|
-
return () =>
|
|
577
|
+
return () => ar(Zr, {
|
|
606
578
|
showBg: a.showCloseBg,
|
|
607
579
|
fullscreen: a.fullscreen
|
|
608
580
|
});
|
|
609
581
|
}
|
|
610
582
|
});
|
|
611
583
|
return (n, s) => {
|
|
612
|
-
const l =
|
|
613
|
-
return
|
|
584
|
+
const l = vt("el-dialog");
|
|
585
|
+
return M(), De(l, bn({
|
|
614
586
|
modelValue: r.value,
|
|
615
587
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u),
|
|
616
588
|
"align-center": ""
|
|
@@ -621,7 +593,7 @@ const qr = /* @__PURE__ */ Q({
|
|
|
621
593
|
"modal-class": "baseDialog"
|
|
622
594
|
}), or({
|
|
623
595
|
icon: Z(() => [
|
|
624
|
-
|
|
596
|
+
qe(n.$slots, "title", {}, () => [
|
|
625
597
|
Jt(
|
|
626
598
|
Qt(n.title),
|
|
627
599
|
1
|
|
@@ -630,8 +602,8 @@ const qr = /* @__PURE__ */ Q({
|
|
|
630
602
|
])
|
|
631
603
|
]),
|
|
632
604
|
header: Z(() => [
|
|
633
|
-
|
|
634
|
-
|
|
605
|
+
W("div", Jr, [
|
|
606
|
+
qe(n.$slots, "header", {}, () => [
|
|
635
607
|
Jt(
|
|
636
608
|
Qt(n.title),
|
|
637
609
|
1
|
|
@@ -639,7 +611,7 @@ const qr = /* @__PURE__ */ Q({
|
|
|
639
611
|
)
|
|
640
612
|
])
|
|
641
613
|
]),
|
|
642
|
-
n.$attrs.showClose ? (
|
|
614
|
+
n.$attrs.showClose ? (M(), De(P(In), {
|
|
643
615
|
key: 0,
|
|
644
616
|
onClick: e,
|
|
645
617
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
@@ -648,7 +620,7 @@ const qr = /* @__PURE__ */ Q({
|
|
|
648
620
|
}, null, 8, ["name", "title"])) : ue("v-if", !0)
|
|
649
621
|
]),
|
|
650
622
|
default: Z(() => [
|
|
651
|
-
|
|
623
|
+
qe(n.$slots, "default")
|
|
652
624
|
]),
|
|
653
625
|
_: 2
|
|
654
626
|
/* DYNAMIC */
|
|
@@ -656,14 +628,14 @@ const qr = /* @__PURE__ */ Q({
|
|
|
656
628
|
n.$slots.footer ? {
|
|
657
629
|
name: "footer",
|
|
658
630
|
fn: Z(() => [
|
|
659
|
-
|
|
631
|
+
qe(n.$slots, "footer")
|
|
660
632
|
]),
|
|
661
633
|
key: "0"
|
|
662
634
|
} : void 0
|
|
663
635
|
]), 1040, ["modelValue", "close-icon", "class", "fullscreen"]);
|
|
664
636
|
};
|
|
665
637
|
}
|
|
666
|
-
}), es =
|
|
638
|
+
}), es = Je(Qr);
|
|
667
639
|
function ts(o, a, r, t) {
|
|
668
640
|
function e(i) {
|
|
669
641
|
return i instanceof r ? i : new r(function(n) {
|
|
@@ -957,7 +929,7 @@ var ns = function(o, a) {
|
|
|
957
929
|
});
|
|
958
930
|
const rs = ["id"];
|
|
959
931
|
function ss(o, a, r, t, e, i) {
|
|
960
|
-
return
|
|
932
|
+
return M(), j("div", { id: o.id }, null, 8, rs);
|
|
961
933
|
}
|
|
962
934
|
fi.render = ss;
|
|
963
935
|
fi.__file = "src/components/DocumentEditor.vue";
|
|
@@ -982,7 +954,7 @@ const as = /* @__PURE__ */ Q({
|
|
|
982
954
|
}
|
|
983
955
|
},
|
|
984
956
|
setup(o) {
|
|
985
|
-
const a = o, r =
|
|
957
|
+
const a = o, r = _e({
|
|
986
958
|
width: "100%",
|
|
987
959
|
height: "100%",
|
|
988
960
|
...a.configOptions || {},
|
|
@@ -990,10 +962,10 @@ const as = /* @__PURE__ */ Q({
|
|
|
990
962
|
}), t = () => {
|
|
991
963
|
console.info("文档加载完成", a.configOptions);
|
|
992
964
|
};
|
|
993
|
-
return (e, i) => (
|
|
965
|
+
return (e, i) => (M(), j(
|
|
994
966
|
"div",
|
|
995
967
|
{
|
|
996
|
-
style:
|
|
968
|
+
style: rt({ height: a.officeHeight })
|
|
997
969
|
},
|
|
998
970
|
[
|
|
999
971
|
K(P(fi), {
|
|
@@ -1008,12 +980,12 @@ const as = /* @__PURE__ */ Q({
|
|
|
1008
980
|
/* STYLE */
|
|
1009
981
|
));
|
|
1010
982
|
}
|
|
1011
|
-
}), os =
|
|
983
|
+
}), os = Je(as);
|
|
1012
984
|
var Ni;
|
|
1013
|
-
const
|
|
985
|
+
const Pn = typeof window < "u", ls = (o) => typeof o == "string", us = () => {
|
|
1014
986
|
};
|
|
1015
|
-
|
|
1016
|
-
function
|
|
987
|
+
Pn && ((Ni = window == null ? void 0 : window.navigator) != null && Ni.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
988
|
+
function An(o) {
|
|
1017
989
|
return typeof o == "function" ? o() : P(o);
|
|
1018
990
|
}
|
|
1019
991
|
function cs(o) {
|
|
@@ -1024,18 +996,18 @@ function fs(o) {
|
|
|
1024
996
|
}
|
|
1025
997
|
function hs(o) {
|
|
1026
998
|
var a;
|
|
1027
|
-
const r =
|
|
999
|
+
const r = An(o);
|
|
1028
1000
|
return (a = r == null ? void 0 : r.$el) != null ? a : r;
|
|
1029
1001
|
}
|
|
1030
|
-
const ds =
|
|
1031
|
-
function
|
|
1002
|
+
const ds = Pn ? window : void 0;
|
|
1003
|
+
function ct(...o) {
|
|
1032
1004
|
let a, r, t, e;
|
|
1033
1005
|
if (ls(o[0]) || Array.isArray(o[0]) ? ([r, t, e] = o, a = ds) : [a, r, t, e] = o, !a)
|
|
1034
1006
|
return us;
|
|
1035
1007
|
Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
|
|
1036
1008
|
const i = [], n = () => {
|
|
1037
1009
|
i.forEach((c) => c()), i.length = 0;
|
|
1038
|
-
}, s = (c, f, d, g) => (c.addEventListener(f, d, g), () => c.removeEventListener(f, d, g)), l =
|
|
1010
|
+
}, s = (c, f, d, g) => (c.addEventListener(f, d, g), () => c.removeEventListener(f, d, g)), l = at(() => [hs(a), An(e)], ([c, f]) => {
|
|
1039
1011
|
n(), c && i.push(...r.flatMap((d) => t.map((g) => s(c, d, g, f))));
|
|
1040
1012
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
1041
1013
|
l(), n();
|
|
@@ -1174,13 +1146,13 @@ const _s = {
|
|
|
1174
1146
|
name: "original",
|
|
1175
1147
|
icon: Ai(Nr)
|
|
1176
1148
|
}
|
|
1177
|
-
}, i = o, n = r, { t: s } = Cr(), l =
|
|
1149
|
+
}, i = o, n = r, { t: s } = Cr(), l = Sn("image-viewer"), { nextZIndex: u } = kr(), c = _e(), f = _e([]), d = cr(), g = _e(!0), p = _e(i.initialIndex), m = fr(e.CONTAIN), y = _e({
|
|
1178
1150
|
scale: 1,
|
|
1179
1151
|
deg: 0,
|
|
1180
1152
|
offsetX: 0,
|
|
1181
1153
|
offsetY: 0,
|
|
1182
1154
|
enableTransition: !1
|
|
1183
|
-
}), k =
|
|
1155
|
+
}), k = _e(i.zIndex ?? u()), w = J(() => {
|
|
1184
1156
|
const { urlList: D } = i;
|
|
1185
1157
|
return D.length <= 1;
|
|
1186
1158
|
}), b = J(() => p.value === 0), B = J(() => p.value === i.urlList.length - 1), O = J(() => i.urlList[p.value]), z = J(() => [
|
|
@@ -1192,12 +1164,12 @@ const _s = {
|
|
|
1192
1164
|
l.e("next"),
|
|
1193
1165
|
l.is("disabled", !i.infinite && B.value)
|
|
1194
1166
|
]), ee = J(() => {
|
|
1195
|
-
const { scale: D, deg: V, offsetX:
|
|
1196
|
-
let ve =
|
|
1197
|
-
const
|
|
1198
|
-
ve = ve * Ii +
|
|
1167
|
+
const { scale: D, deg: V, offsetX: Y, offsetY: he, enableTransition: pe } = y.value;
|
|
1168
|
+
let ve = Y / D, xe = he / D;
|
|
1169
|
+
const et = V * Math.PI / 180, Ii = Math.cos(et), Pi = Math.sin(et);
|
|
1170
|
+
ve = ve * Ii + xe * Pi, xe = xe * Ii - Y / D * Pi;
|
|
1199
1171
|
const Ot = {
|
|
1200
|
-
transform: `scale(${D}) rotate(${V}deg) translate(${ve}px, ${
|
|
1172
|
+
transform: `scale(${D}) rotate(${V}deg) translate(${ve}px, ${xe}px)`,
|
|
1201
1173
|
transition: pe ? "transform .3s" : ""
|
|
1202
1174
|
};
|
|
1203
1175
|
return m.value.name === e.CONTAIN.name && (Ot.maxWidth = Ot.maxHeight = "100%"), Ot;
|
|
@@ -1206,42 +1178,42 @@ const _s = {
|
|
|
1206
1178
|
ie(), n("close");
|
|
1207
1179
|
}
|
|
1208
1180
|
function F() {
|
|
1209
|
-
const D = Mt.throttle((
|
|
1210
|
-
switch (
|
|
1181
|
+
const D = Mt.throttle((Y) => {
|
|
1182
|
+
switch (Y.code) {
|
|
1211
1183
|
// ESC
|
|
1212
|
-
case
|
|
1184
|
+
case je.esc:
|
|
1213
1185
|
i.closeOnPressEscape && q();
|
|
1214
1186
|
break;
|
|
1215
1187
|
// SPACE
|
|
1216
|
-
case
|
|
1188
|
+
case je.space:
|
|
1217
1189
|
Ei();
|
|
1218
1190
|
break;
|
|
1219
1191
|
// LEFT_ARROW
|
|
1220
|
-
case
|
|
1192
|
+
case je.left:
|
|
1221
1193
|
Si();
|
|
1222
1194
|
break;
|
|
1223
1195
|
// UP_ARROW
|
|
1224
|
-
case
|
|
1225
|
-
|
|
1196
|
+
case je.up:
|
|
1197
|
+
Ne("zoomIn");
|
|
1226
1198
|
break;
|
|
1227
1199
|
// RIGHT_ARROW
|
|
1228
|
-
case
|
|
1200
|
+
case je.right:
|
|
1229
1201
|
xi();
|
|
1230
1202
|
break;
|
|
1231
1203
|
// DOWN_ARROW
|
|
1232
|
-
case
|
|
1233
|
-
|
|
1204
|
+
case je.down:
|
|
1205
|
+
Ne("zoomOut");
|
|
1234
1206
|
break;
|
|
1235
1207
|
}
|
|
1236
|
-
}), V = Mt.throttle((
|
|
1237
|
-
const he =
|
|
1238
|
-
|
|
1208
|
+
}), V = Mt.throttle((Y) => {
|
|
1209
|
+
const he = Y.deltaY || Y.deltaX;
|
|
1210
|
+
Ne(he < 0 ? "zoomIn" : "zoomOut", {
|
|
1239
1211
|
zoomRate: i.zoomRate,
|
|
1240
1212
|
enableTransition: !1
|
|
1241
1213
|
});
|
|
1242
1214
|
});
|
|
1243
1215
|
d.run(() => {
|
|
1244
|
-
|
|
1216
|
+
ct(document, "keydown", D), ct(document, "wheel", V);
|
|
1245
1217
|
});
|
|
1246
1218
|
}
|
|
1247
1219
|
function ie() {
|
|
@@ -1253,18 +1225,18 @@ const _s = {
|
|
|
1253
1225
|
function oe(D) {
|
|
1254
1226
|
g.value = !1, D.target.alt = s("el.image.error");
|
|
1255
1227
|
}
|
|
1256
|
-
function
|
|
1228
|
+
function ke(D) {
|
|
1257
1229
|
if (g.value || D.button !== 0 || !c.value) return;
|
|
1258
1230
|
y.value.enableTransition = !1;
|
|
1259
|
-
const { offsetX: V, offsetY:
|
|
1231
|
+
const { offsetX: V, offsetY: Y } = y.value, he = D.pageX, pe = D.pageY, ve = Mt.throttle((et) => {
|
|
1260
1232
|
y.value = {
|
|
1261
1233
|
...y.value,
|
|
1262
|
-
offsetX: V +
|
|
1263
|
-
offsetY:
|
|
1234
|
+
offsetX: V + et.pageX - he,
|
|
1235
|
+
offsetY: Y + et.pageY - pe
|
|
1264
1236
|
};
|
|
1265
|
-
}),
|
|
1266
|
-
|
|
1267
|
-
|
|
1237
|
+
}), xe = ct(document, "mousemove", ve);
|
|
1238
|
+
ct(document, "mouseup", () => {
|
|
1239
|
+
xe();
|
|
1268
1240
|
}), D.preventDefault();
|
|
1269
1241
|
}
|
|
1270
1242
|
function Ti() {
|
|
@@ -1278,7 +1250,7 @@ const _s = {
|
|
|
1278
1250
|
}
|
|
1279
1251
|
function Ei() {
|
|
1280
1252
|
if (g.value) return;
|
|
1281
|
-
const D = t(e), V = Object.values(e),
|
|
1253
|
+
const D = t(e), V = Object.values(e), Y = m.value.name, pe = ((V == null ? void 0 : V.findIndex((ve) => ve.name === Y)) + 1) % D.length;
|
|
1282
1254
|
m.value = e[D[pe]], Ti();
|
|
1283
1255
|
}
|
|
1284
1256
|
function Rt(D) {
|
|
@@ -1291,9 +1263,9 @@ const _s = {
|
|
|
1291
1263
|
function xi() {
|
|
1292
1264
|
B.value && !i.infinite || Rt(p.value + 1);
|
|
1293
1265
|
}
|
|
1294
|
-
function
|
|
1266
|
+
function Ne(D, V = {}) {
|
|
1295
1267
|
if (g.value) return;
|
|
1296
|
-
const { minScale:
|
|
1268
|
+
const { minScale: Y, maxScale: he } = i, { zoomRate: pe, rotateDeg: ve, enableTransition: xe } = {
|
|
1297
1269
|
zoomRate: i.zoomRate,
|
|
1298
1270
|
rotateDeg: 90,
|
|
1299
1271
|
enableTransition: !0,
|
|
@@ -1301,7 +1273,7 @@ const _s = {
|
|
|
1301
1273
|
};
|
|
1302
1274
|
switch (D) {
|
|
1303
1275
|
case "zoomOut":
|
|
1304
|
-
y.value.scale >
|
|
1276
|
+
y.value.scale > Y && (y.value.scale = Number.parseFloat(
|
|
1305
1277
|
(y.value.scale / pe).toFixed(3)
|
|
1306
1278
|
));
|
|
1307
1279
|
break;
|
|
@@ -1317,14 +1289,14 @@ const _s = {
|
|
|
1317
1289
|
y.value.deg -= ve, n("rotate", y.value.deg);
|
|
1318
1290
|
break;
|
|
1319
1291
|
}
|
|
1320
|
-
y.value.enableTransition =
|
|
1292
|
+
y.value.enableTransition = xe;
|
|
1321
1293
|
}
|
|
1322
|
-
return
|
|
1294
|
+
return at(O, () => {
|
|
1323
1295
|
li(() => {
|
|
1324
1296
|
const D = f.value[0];
|
|
1325
1297
|
D != null && D.complete || (g.value = !0);
|
|
1326
1298
|
});
|
|
1327
|
-
}),
|
|
1299
|
+
}), at(p, (D) => {
|
|
1328
1300
|
Ti(), n("switch", D);
|
|
1329
1301
|
}), hr(() => {
|
|
1330
1302
|
var D, V;
|
|
@@ -1334,43 +1306,43 @@ const _s = {
|
|
|
1334
1306
|
* @description manually switch image
|
|
1335
1307
|
*/
|
|
1336
1308
|
setActiveItem: Rt
|
|
1337
|
-
}), (D, V) => (
|
|
1338
|
-
K(
|
|
1309
|
+
}), (D, V) => (M(), De(wn, { to: "body" }, [
|
|
1310
|
+
K(Tn, {
|
|
1339
1311
|
name: "viewer-fade",
|
|
1340
1312
|
appear: ""
|
|
1341
1313
|
}, {
|
|
1342
1314
|
default: Z(() => [
|
|
1343
|
-
|
|
1315
|
+
W(
|
|
1344
1316
|
"div",
|
|
1345
1317
|
{
|
|
1346
1318
|
ref_key: "wrapper",
|
|
1347
1319
|
ref: c,
|
|
1348
1320
|
tabindex: -1,
|
|
1349
|
-
class:
|
|
1350
|
-
style:
|
|
1321
|
+
class: $(P(l).e("wrapper")),
|
|
1322
|
+
style: rt({ zIndex: k.value })
|
|
1351
1323
|
},
|
|
1352
1324
|
[
|
|
1353
|
-
|
|
1325
|
+
W(
|
|
1354
1326
|
"div",
|
|
1355
1327
|
{
|
|
1356
|
-
class:
|
|
1357
|
-
onClick: V[0] || (V[0] = dr((
|
|
1328
|
+
class: $(P(l).e("mask")),
|
|
1329
|
+
onClick: V[0] || (V[0] = dr((Y) => D.hideOnClickModal && q(), ["self"]))
|
|
1358
1330
|
},
|
|
1359
1331
|
null,
|
|
1360
1332
|
2
|
|
1361
1333
|
/* CLASS */
|
|
1362
1334
|
),
|
|
1363
1335
|
ue(" CLOSE "),
|
|
1364
|
-
|
|
1336
|
+
W(
|
|
1365
1337
|
"span",
|
|
1366
1338
|
{
|
|
1367
|
-
class:
|
|
1339
|
+
class: $([P(l).e("btn"), P(l).e("close")]),
|
|
1368
1340
|
onClick: q
|
|
1369
1341
|
},
|
|
1370
1342
|
[
|
|
1371
|
-
K(P(
|
|
1343
|
+
K(P(Ie), null, {
|
|
1372
1344
|
default: Z(() => [
|
|
1373
|
-
K(P(
|
|
1345
|
+
K(P(xn))
|
|
1374
1346
|
]),
|
|
1375
1347
|
_: 1
|
|
1376
1348
|
/* STABLE */
|
|
@@ -1380,18 +1352,18 @@ const _s = {
|
|
|
1380
1352
|
/* CLASS */
|
|
1381
1353
|
),
|
|
1382
1354
|
ue(" ARROW "),
|
|
1383
|
-
w.value ? ue("v-if", !0) : (
|
|
1384
|
-
|
|
1355
|
+
w.value ? ue("v-if", !0) : (M(), j(
|
|
1356
|
+
st,
|
|
1385
1357
|
{ key: 0 },
|
|
1386
1358
|
[
|
|
1387
|
-
|
|
1359
|
+
W(
|
|
1388
1360
|
"span",
|
|
1389
1361
|
{
|
|
1390
|
-
class:
|
|
1362
|
+
class: $(z.value),
|
|
1391
1363
|
onClick: Si
|
|
1392
1364
|
},
|
|
1393
1365
|
[
|
|
1394
|
-
K(P(
|
|
1366
|
+
K(P(Ie), null, {
|
|
1395
1367
|
default: Z(() => [
|
|
1396
1368
|
K(P(Er))
|
|
1397
1369
|
]),
|
|
@@ -1402,14 +1374,14 @@ const _s = {
|
|
|
1402
1374
|
2
|
|
1403
1375
|
/* CLASS */
|
|
1404
1376
|
),
|
|
1405
|
-
|
|
1377
|
+
W(
|
|
1406
1378
|
"span",
|
|
1407
1379
|
{
|
|
1408
|
-
class:
|
|
1380
|
+
class: $(L.value),
|
|
1409
1381
|
onClick: xi
|
|
1410
1382
|
},
|
|
1411
1383
|
[
|
|
1412
|
-
K(P(
|
|
1384
|
+
K(P(Ie), null, {
|
|
1413
1385
|
default: Z(() => [
|
|
1414
1386
|
K(P(xr))
|
|
1415
1387
|
]),
|
|
@@ -1425,20 +1397,20 @@ const _s = {
|
|
|
1425
1397
|
/* STABLE_FRAGMENT */
|
|
1426
1398
|
)),
|
|
1427
1399
|
ue(" ACTIONS "),
|
|
1428
|
-
|
|
1400
|
+
W(
|
|
1429
1401
|
"div",
|
|
1430
1402
|
{
|
|
1431
|
-
class:
|
|
1403
|
+
class: $([P(l).e("btn"), P(l).e("actions")])
|
|
1432
1404
|
},
|
|
1433
1405
|
[
|
|
1434
|
-
|
|
1406
|
+
W(
|
|
1435
1407
|
"div",
|
|
1436
1408
|
{
|
|
1437
|
-
class:
|
|
1409
|
+
class: $(P(l).e("actions__inner"))
|
|
1438
1410
|
},
|
|
1439
1411
|
[
|
|
1440
|
-
K(P(
|
|
1441
|
-
onClick: V[1] || (V[1] = (
|
|
1412
|
+
K(P(Ie), {
|
|
1413
|
+
onClick: V[1] || (V[1] = (Y) => Ne("zoomOut"))
|
|
1442
1414
|
}, {
|
|
1443
1415
|
default: Z(() => [
|
|
1444
1416
|
K(P(Ur))
|
|
@@ -1446,8 +1418,8 @@ const _s = {
|
|
|
1446
1418
|
_: 1
|
|
1447
1419
|
/* STABLE */
|
|
1448
1420
|
}),
|
|
1449
|
-
K(P(
|
|
1450
|
-
onClick: V[2] || (V[2] = (
|
|
1421
|
+
K(P(Ie), {
|
|
1422
|
+
onClick: V[2] || (V[2] = (Y) => Ne("zoomIn"))
|
|
1451
1423
|
}, {
|
|
1452
1424
|
default: Z(() => [
|
|
1453
1425
|
K(P(Br))
|
|
@@ -1455,33 +1427,33 @@ const _s = {
|
|
|
1455
1427
|
_: 1
|
|
1456
1428
|
/* STABLE */
|
|
1457
1429
|
}),
|
|
1458
|
-
|
|
1430
|
+
W(
|
|
1459
1431
|
"i",
|
|
1460
1432
|
{
|
|
1461
|
-
class:
|
|
1433
|
+
class: $(P(l).e("actions__divider"))
|
|
1462
1434
|
},
|
|
1463
1435
|
null,
|
|
1464
1436
|
2
|
|
1465
1437
|
/* CLASS */
|
|
1466
1438
|
),
|
|
1467
|
-
K(P(
|
|
1439
|
+
K(P(Ie), { onClick: Ei }, {
|
|
1468
1440
|
default: Z(() => [
|
|
1469
|
-
(
|
|
1441
|
+
(M(), De(gr(m.value.icon)))
|
|
1470
1442
|
]),
|
|
1471
1443
|
_: 1
|
|
1472
1444
|
/* STABLE */
|
|
1473
1445
|
}),
|
|
1474
|
-
|
|
1446
|
+
W(
|
|
1475
1447
|
"i",
|
|
1476
1448
|
{
|
|
1477
|
-
class:
|
|
1449
|
+
class: $(P(l).e("actions__divider"))
|
|
1478
1450
|
},
|
|
1479
1451
|
null,
|
|
1480
1452
|
2
|
|
1481
1453
|
/* CLASS */
|
|
1482
1454
|
),
|
|
1483
|
-
K(P(
|
|
1484
|
-
onClick: V[3] || (V[3] = (
|
|
1455
|
+
K(P(Ie), {
|
|
1456
|
+
onClick: V[3] || (V[3] = (Y) => Ne("anticlockwise"))
|
|
1485
1457
|
}, {
|
|
1486
1458
|
default: Z(() => [
|
|
1487
1459
|
K(P(Dr))
|
|
@@ -1489,8 +1461,8 @@ const _s = {
|
|
|
1489
1461
|
_: 1
|
|
1490
1462
|
/* STABLE */
|
|
1491
1463
|
}),
|
|
1492
|
-
K(P(
|
|
1493
|
-
onClick: V[4] || (V[4] = (
|
|
1464
|
+
K(P(Ie), {
|
|
1465
|
+
onClick: V[4] || (V[4] = (Y) => Ne("clockwise"))
|
|
1494
1466
|
}, {
|
|
1495
1467
|
default: Z(() => [
|
|
1496
1468
|
K(P(Or))
|
|
@@ -1507,26 +1479,26 @@ const _s = {
|
|
|
1507
1479
|
/* CLASS */
|
|
1508
1480
|
),
|
|
1509
1481
|
ue(" CANVAS "),
|
|
1510
|
-
|
|
1482
|
+
W(
|
|
1511
1483
|
"div",
|
|
1512
1484
|
{
|
|
1513
|
-
class:
|
|
1485
|
+
class: $(P(l).e("canvas"))
|
|
1514
1486
|
},
|
|
1515
1487
|
[
|
|
1516
|
-
(
|
|
1517
|
-
|
|
1488
|
+
(M(!0), j(
|
|
1489
|
+
st,
|
|
1518
1490
|
null,
|
|
1519
|
-
pr(D.urlList, (
|
|
1491
|
+
pr(D.urlList, (Y, he) => vr((M(), j("img", {
|
|
1520
1492
|
ref_for: !0,
|
|
1521
1493
|
ref: (pe) => f.value[he] = pe,
|
|
1522
|
-
key:
|
|
1523
|
-
src:
|
|
1524
|
-
style:
|
|
1525
|
-
class:
|
|
1494
|
+
key: Y,
|
|
1495
|
+
src: Y,
|
|
1496
|
+
style: rt(ee.value),
|
|
1497
|
+
class: $(P(l).e("img")),
|
|
1526
1498
|
crossorigin: D.crossorigin,
|
|
1527
1499
|
onLoad: ae,
|
|
1528
1500
|
onError: oe,
|
|
1529
|
-
onMousedown:
|
|
1501
|
+
onMousedown: ke
|
|
1530
1502
|
}, null, 46, ks)), [
|
|
1531
1503
|
[mr, he === p.value]
|
|
1532
1504
|
])),
|
|
@@ -1537,7 +1509,7 @@ const _s = {
|
|
|
1537
1509
|
2
|
|
1538
1510
|
/* CLASS */
|
|
1539
1511
|
),
|
|
1540
|
-
|
|
1512
|
+
qe(D.$slots, "default")
|
|
1541
1513
|
],
|
|
1542
1514
|
6
|
|
1543
1515
|
/* CLASS, STYLE */
|
|
@@ -1548,7 +1520,7 @@ const _s = {
|
|
|
1548
1520
|
})
|
|
1549
1521
|
]));
|
|
1550
1522
|
}
|
|
1551
|
-
}), ws =
|
|
1523
|
+
}), ws = Je(bs);
|
|
1552
1524
|
function zi(o, a) {
|
|
1553
1525
|
var r = Object.keys(o);
|
|
1554
1526
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1585,7 +1557,7 @@ function T(o, a) {
|
|
|
1585
1557
|
function ji(o, a) {
|
|
1586
1558
|
for (var r = 0; r < a.length; r++) {
|
|
1587
1559
|
var t = a[r];
|
|
1588
|
-
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(o,
|
|
1560
|
+
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(o, Ln(t.key), t);
|
|
1589
1561
|
}
|
|
1590
1562
|
}
|
|
1591
1563
|
function E(o, a, r) {
|
|
@@ -1594,7 +1566,7 @@ function E(o, a, r) {
|
|
|
1594
1566
|
}), o;
|
|
1595
1567
|
}
|
|
1596
1568
|
function _(o, a, r) {
|
|
1597
|
-
return a =
|
|
1569
|
+
return a = Ln(a), a in o ? Object.defineProperty(o, a, {
|
|
1598
1570
|
value: r,
|
|
1599
1571
|
enumerable: !0,
|
|
1600
1572
|
configurable: !0,
|
|
@@ -1718,7 +1690,7 @@ function As(o, a) {
|
|
|
1718
1690
|
}
|
|
1719
1691
|
return (a === "string" ? String : Number)(o);
|
|
1720
1692
|
}
|
|
1721
|
-
function
|
|
1693
|
+
function Ln(o) {
|
|
1722
1694
|
var a = As(o, "string");
|
|
1723
1695
|
return typeof a == "symbol" ? a : String(a);
|
|
1724
1696
|
}
|
|
@@ -1829,13 +1801,13 @@ function Ls() {
|
|
|
1829
1801
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, o.exports = s;
|
|
1830
1802
|
}(Nt)), Nt.exports;
|
|
1831
1803
|
}
|
|
1832
|
-
var
|
|
1833
|
-
const
|
|
1804
|
+
var Dn = Ls();
|
|
1805
|
+
const Rn = /* @__PURE__ */ ci(Dn);
|
|
1834
1806
|
var Ds = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Ft = {
|
|
1835
1807
|
info: "color: #525252; background-color: #90ee90;",
|
|
1836
1808
|
error: "color: #525252; background-color: red;",
|
|
1837
1809
|
warn: "color: #525252; background-color: yellow; "
|
|
1838
|
-
}, Bt = "%c[xgplayer]",
|
|
1810
|
+
}, Bt = "%c[xgplayer]", N = {
|
|
1839
1811
|
config: {
|
|
1840
1812
|
debug: Ds ? 3 : 0
|
|
1841
1813
|
},
|
|
@@ -1859,7 +1831,7 @@ var Ds = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
1859
1831
|
}
|
|
1860
1832
|
};
|
|
1861
1833
|
function Rs(o) {
|
|
1862
|
-
o.logInfo =
|
|
1834
|
+
o.logInfo = N.logInfo.bind(o), o.logWarn = N.logWarn.bind(o), o.logError = N.logError.bind(o);
|
|
1863
1835
|
}
|
|
1864
1836
|
var Os = /* @__PURE__ */ function() {
|
|
1865
1837
|
function o(a) {
|
|
@@ -1899,7 +1871,7 @@ h.createDomFromHtml = function(o) {
|
|
|
1899
1871
|
e.setAttribute(i, a[i]);
|
|
1900
1872
|
}), e) : null;
|
|
1901
1873
|
} catch (i) {
|
|
1902
|
-
return
|
|
1874
|
+
return N.logError("util.createDomFromHtml", i), null;
|
|
1903
1875
|
}
|
|
1904
1876
|
};
|
|
1905
1877
|
h.hasClass = function(o, a) {
|
|
@@ -1956,7 +1928,7 @@ h.findDom = function() {
|
|
|
1956
1928
|
try {
|
|
1957
1929
|
r = o.querySelector(a);
|
|
1958
1930
|
} catch (t) {
|
|
1959
|
-
|
|
1931
|
+
N.logError("util.findDom", t), a.indexOf("#") === 0 && (r = o.getElementById(a.slice(1)));
|
|
1960
1932
|
}
|
|
1961
1933
|
return r;
|
|
1962
1934
|
};
|
|
@@ -2305,7 +2277,7 @@ h.getCurrentTimeByOffset = function(o, a) {
|
|
|
2305
2277
|
}
|
|
2306
2278
|
return o;
|
|
2307
2279
|
};
|
|
2308
|
-
function
|
|
2280
|
+
function On(o) {
|
|
2309
2281
|
var a = re(o);
|
|
2310
2282
|
return o !== null && (a === "object" || a === "function");
|
|
2311
2283
|
}
|
|
@@ -2313,7 +2285,7 @@ function Ns(o, a, r) {
|
|
|
2313
2285
|
var t, e, i, n, s, l, u = 0, c = !1, f = !1, d = !0, g = !a && a !== 0 && typeof window.requestAnimationFrame == "function";
|
|
2314
2286
|
if (typeof o != "function")
|
|
2315
2287
|
throw new TypeError("Expected a function");
|
|
2316
|
-
a = +a || 0,
|
|
2288
|
+
a = +a || 0, On(r) && (c = !!r.leading, f = "maxWait" in r, i = f ? Math.max(+r.maxWait || 0, a) : i, d = "trailing" in r ? !!r.trailing : d);
|
|
2317
2289
|
function p(F) {
|
|
2318
2290
|
var ie = t, ae = e;
|
|
2319
2291
|
return t = e = void 0, u = F, n = o.apply(ae, ie), n;
|
|
@@ -2356,8 +2328,8 @@ function Ns(o, a, r) {
|
|
|
2356
2328
|
return s !== void 0;
|
|
2357
2329
|
}
|
|
2358
2330
|
function q() {
|
|
2359
|
-
for (var F = Date.now(), ie = b(F), ae = arguments.length, oe = new Array(ae),
|
|
2360
|
-
oe[
|
|
2331
|
+
for (var F = Date.now(), ie = b(F), ae = arguments.length, oe = new Array(ae), ke = 0; ke < ae; ke++)
|
|
2332
|
+
oe[ke] = arguments[ke];
|
|
2361
2333
|
if (t = oe, e = this, l = F, ie) {
|
|
2362
2334
|
if (s === void 0)
|
|
2363
2335
|
return k(l);
|
|
@@ -2372,7 +2344,7 @@ function Fs(o, a, r) {
|
|
|
2372
2344
|
var t = !0, e = !0;
|
|
2373
2345
|
if (typeof o != "function")
|
|
2374
2346
|
throw new TypeError("Expected a function");
|
|
2375
|
-
return
|
|
2347
|
+
return On(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Ns(o, a, {
|
|
2376
2348
|
leading: t,
|
|
2377
2349
|
trailing: e,
|
|
2378
2350
|
maxWait: a
|
|
@@ -2549,73 +2521,73 @@ var Gi = {
|
|
|
2549
2521
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
2550
2522
|
}
|
|
2551
2523
|
}
|
|
2552
|
-
), fe = "play", di = "playing",
|
|
2524
|
+
), fe = "play", di = "playing", Ue = "ended", Qe = "pause", lt = "error", It = "seeking", Te = "seeked", ce = "timeupdate", ut = "waiting", we = "canplay", Vs = "canplaythrough", Se = "durationchange", Mn = "volumechange", Ee = "loadeddata", zs = "loadedmetadata", Nn = "ratechange", Fn = "progress", gi = "loadstart", Ve = "emptied", js = "stalled", Ws = "suspend", Gs = "abort", Ks = "bufferedChange", pi = "focus", Bn = "blur", vi = "ready", Hn = "urlNull", He = "autoplay_started", mi = "autoplay_was_prevented", Pt = "complete", _t = "replay", yi = "destroy", At = "urlchange", ri = "download_speed_change", Un = "leaveplayer", Vn = "enterplayer", zn = "loading", be = "fullscreen_change", Ct = "cssFullscreen_change", kt = "mini_state_change", _i = "definition_change", Ys = "before_definition_change", si = "after_definition_change", $s = "SEI_PARSED", Xs = "retry", Re = "video_resize", ai = "pip_change", jn = "rotate", Wn = "screenShot", bt = "playnext", Gn = "shortcut", Kn = "xglog", wt = "user_action", Lt = "reset", Yn = "source_error", $n = "source_success", qs = "switch_subtitle", Xn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], qn = {
|
|
2553
2525
|
STATS_INFO: "stats_info",
|
|
2554
2526
|
STATS_DOWNLOAD: "stats_download",
|
|
2555
2527
|
STATS_RESET: "stats_reset"
|
|
2556
|
-
},
|
|
2528
|
+
}, Zn = "fps_stuck";
|
|
2557
2529
|
const Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2558
2530
|
__proto__: null,
|
|
2559
2531
|
ABORT: Gs,
|
|
2560
2532
|
AFTER_DEFINITION_CHANGE: si,
|
|
2561
2533
|
AUTOPLAY_PREVENTED: mi,
|
|
2562
|
-
AUTOPLAY_STARTED:
|
|
2534
|
+
AUTOPLAY_STARTED: He,
|
|
2563
2535
|
BEFORE_DEFINITION_CHANGE: Ys,
|
|
2564
2536
|
BUFFER_CHANGE: Ks,
|
|
2565
|
-
CANPLAY:
|
|
2537
|
+
CANPLAY: we,
|
|
2566
2538
|
CANPLAY_THROUGH: Vs,
|
|
2567
2539
|
COMPLETE: Pt,
|
|
2568
2540
|
CSS_FULLSCREEN_CHANGE: Ct,
|
|
2569
2541
|
DEFINITION_CHANGE: _i,
|
|
2570
2542
|
DESTROY: yi,
|
|
2571
2543
|
DOWNLOAD_SPEED_CHANGE: ri,
|
|
2572
|
-
DURATION_CHANGE:
|
|
2573
|
-
EMPTIED:
|
|
2574
|
-
ENDED:
|
|
2575
|
-
ENTER_PLAYER:
|
|
2576
|
-
ERROR:
|
|
2577
|
-
FPS_STUCK:
|
|
2578
|
-
FULLSCREEN_CHANGE:
|
|
2579
|
-
LEAVE_PLAYER:
|
|
2580
|
-
LOADED_DATA:
|
|
2544
|
+
DURATION_CHANGE: Se,
|
|
2545
|
+
EMPTIED: Ve,
|
|
2546
|
+
ENDED: Ue,
|
|
2547
|
+
ENTER_PLAYER: Vn,
|
|
2548
|
+
ERROR: lt,
|
|
2549
|
+
FPS_STUCK: Zn,
|
|
2550
|
+
FULLSCREEN_CHANGE: be,
|
|
2551
|
+
LEAVE_PLAYER: Un,
|
|
2552
|
+
LOADED_DATA: Ee,
|
|
2581
2553
|
LOADED_METADATA: zs,
|
|
2582
|
-
LOADING:
|
|
2554
|
+
LOADING: zn,
|
|
2583
2555
|
LOAD_START: gi,
|
|
2584
2556
|
MINI_STATE_CHANGE: kt,
|
|
2585
|
-
PAUSE:
|
|
2557
|
+
PAUSE: Qe,
|
|
2586
2558
|
PIP_CHANGE: ai,
|
|
2587
2559
|
PLAY: fe,
|
|
2588
|
-
PLAYER_BLUR:
|
|
2560
|
+
PLAYER_BLUR: Bn,
|
|
2589
2561
|
PLAYER_FOCUS: pi,
|
|
2590
2562
|
PLAYING: di,
|
|
2591
2563
|
PLAYNEXT: bt,
|
|
2592
|
-
PROGRESS:
|
|
2593
|
-
RATE_CHANGE:
|
|
2564
|
+
PROGRESS: Fn,
|
|
2565
|
+
RATE_CHANGE: Nn,
|
|
2594
2566
|
READY: vi,
|
|
2595
2567
|
REPLAY: _t,
|
|
2596
2568
|
RESET: Lt,
|
|
2597
2569
|
RETRY: Xs,
|
|
2598
|
-
ROTATE:
|
|
2599
|
-
SCREEN_SHOT:
|
|
2600
|
-
SEEKED:
|
|
2570
|
+
ROTATE: jn,
|
|
2571
|
+
SCREEN_SHOT: Wn,
|
|
2572
|
+
SEEKED: Te,
|
|
2601
2573
|
SEEKING: It,
|
|
2602
2574
|
SEI_PARSED: $s,
|
|
2603
|
-
SHORTCUT:
|
|
2604
|
-
SOURCE_ERROR:
|
|
2605
|
-
SOURCE_SUCCESS:
|
|
2575
|
+
SHORTCUT: Gn,
|
|
2576
|
+
SOURCE_ERROR: Yn,
|
|
2577
|
+
SOURCE_SUCCESS: $n,
|
|
2606
2578
|
STALLED: js,
|
|
2607
|
-
STATS_EVENTS:
|
|
2579
|
+
STATS_EVENTS: qn,
|
|
2608
2580
|
SUSPEND: Ws,
|
|
2609
2581
|
SWITCH_SUBTITLE: qs,
|
|
2610
2582
|
TIME_UPDATE: ce,
|
|
2611
2583
|
URL_CHANGE: At,
|
|
2612
|
-
URL_NULL:
|
|
2584
|
+
URL_NULL: Hn,
|
|
2613
2585
|
USER_ACTION: wt,
|
|
2614
|
-
VIDEO_EVENTS:
|
|
2615
|
-
VIDEO_RESIZE:
|
|
2616
|
-
VOLUME_CHANGE:
|
|
2617
|
-
WAITING:
|
|
2618
|
-
XGLOG:
|
|
2586
|
+
VIDEO_EVENTS: Xn,
|
|
2587
|
+
VIDEO_RESIZE: Re,
|
|
2588
|
+
VOLUME_CHANGE: Mn,
|
|
2589
|
+
WAITING: ut,
|
|
2590
|
+
XGLOG: Kn
|
|
2619
2591
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2620
2592
|
function Ht(o, a) {
|
|
2621
2593
|
!this || !this.emit || (o === "error" ? this.errorHandler(o, a.error) : this.emit(o, a));
|
|
@@ -2697,7 +2669,7 @@ var Qs = /* @__PURE__ */ function(o) {
|
|
|
2697
2669
|
key: "attachVideoEvents",
|
|
2698
2670
|
value: function() {
|
|
2699
2671
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
2700
|
-
this._evHandlers || (this._evHandlers =
|
|
2672
|
+
this._evHandlers || (this._evHandlers = Xn.map(function(n) {
|
|
2701
2673
|
var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
2702
2674
|
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, Js(n, e));
|
|
2703
2675
|
})), this._evHandlers.forEach(function(n) {
|
|
@@ -2731,7 +2703,7 @@ var Qs = /* @__PURE__ */ function(o) {
|
|
|
2731
2703
|
var s = e.children;
|
|
2732
2704
|
if (s) {
|
|
2733
2705
|
this._videoSourceCount = s.length, this._videoSourceIndex = s.length, this._vLoadeddata = function(f) {
|
|
2734
|
-
n.emit(
|
|
2706
|
+
n.emit($n, {
|
|
2735
2707
|
src: f.target.currentSrc,
|
|
2736
2708
|
host: h.getHostFromUrl(f.target.currentSrc)
|
|
2737
2709
|
});
|
|
@@ -2751,7 +2723,7 @@ var Qs = /* @__PURE__ */ function(o) {
|
|
|
2751
2723
|
l ? l.error(f, g) : n.errorHandler("error", g);
|
|
2752
2724
|
}
|
|
2753
2725
|
var p = Ki[4];
|
|
2754
|
-
n.emit(
|
|
2726
|
+
n.emit(Yn, new yt(n, {
|
|
2755
2727
|
errorType: p,
|
|
2756
2728
|
errorCode: 4,
|
|
2757
2729
|
errorMessage: "sources_load_error",
|
|
@@ -3009,7 +2981,7 @@ var Qs = /* @__PURE__ */ function(o) {
|
|
|
3009
2981
|
},
|
|
3010
2982
|
set: function(e) {
|
|
3011
2983
|
if (this.media) {
|
|
3012
|
-
if (this.emit(At, e), this.emit(
|
|
2984
|
+
if (this.emit(At, e), this.emit(ut), this._currentTime = 0, this._duration = 0, h.isMSE(this.media)) {
|
|
3013
2985
|
this.onWaiting();
|
|
3014
2986
|
return;
|
|
3015
2987
|
}
|
|
@@ -3073,7 +3045,7 @@ var Qs = /* @__PURE__ */ function(o) {
|
|
|
3073
3045
|
A(I(r.prototype), "removeAllListeners", this).call(this);
|
|
3074
3046
|
}
|
|
3075
3047
|
}]), r;
|
|
3076
|
-
}(
|
|
3048
|
+
}(Rn), ea = /* @__PURE__ */ function() {
|
|
3077
3049
|
function o() {
|
|
3078
3050
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
3079
3051
|
name: "xgplayer",
|
|
@@ -3151,8 +3123,8 @@ var Qs = /* @__PURE__ */ function(o) {
|
|
|
3151
3123
|
t.clear();
|
|
3152
3124
|
}
|
|
3153
3125
|
}]), o;
|
|
3154
|
-
}(), $i = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Xi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], qi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"],
|
|
3155
|
-
function
|
|
3126
|
+
}(), $i = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Xi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], qi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Be = "data-xgplayerid";
|
|
3127
|
+
function ft(o, a, r) {
|
|
3156
3128
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
3157
3129
|
e[i - 3] = arguments[i];
|
|
3158
3130
|
var n = a.call.apply(a, [o].concat(e));
|
|
@@ -3178,20 +3150,20 @@ function Tt(o, a) {
|
|
|
3178
3150
|
}
|
|
3179
3151
|
if (this.__hooks && this.__hooks[o])
|
|
3180
3152
|
try {
|
|
3181
|
-
var n =
|
|
3153
|
+
var n = Ce(this, o, a);
|
|
3182
3154
|
n ? n.then ? n.then(function(s) {
|
|
3183
|
-
s !== !1 &&
|
|
3155
|
+
s !== !1 && ft.apply(void 0, [e, a, r.next].concat(de(t)));
|
|
3184
3156
|
}).catch(function(s) {
|
|
3185
3157
|
throw s;
|
|
3186
|
-
}) :
|
|
3158
|
+
}) : ft.apply(void 0, [this, a, r.next].concat(Array.prototype.slice.call(arguments))) : n === void 0 && ft.apply(void 0, [this, a, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
3187
3159
|
} catch (s) {
|
|
3188
3160
|
throw s.message = "[pluginName: ".concat(this.pluginName, ":").concat(o, "] >> ").concat(s.message), s;
|
|
3189
3161
|
}
|
|
3190
3162
|
else
|
|
3191
|
-
|
|
3163
|
+
ft.apply(void 0, [this, a, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
3192
3164
|
}).bind(this);
|
|
3193
3165
|
}
|
|
3194
|
-
function
|
|
3166
|
+
function Jn(o, a) {
|
|
3195
3167
|
var r = this.__hooks;
|
|
3196
3168
|
if (!r || !Array.isArray(r[o]))
|
|
3197
3169
|
return -1;
|
|
@@ -3203,13 +3175,13 @@ function Zn(o, a) {
|
|
|
3203
3175
|
function Et(o, a) {
|
|
3204
3176
|
var r = this.__hooks;
|
|
3205
3177
|
if (r)
|
|
3206
|
-
return r.hasOwnProperty(o) ? (Array.isArray(r[o]) || (r[o] = []),
|
|
3178
|
+
return r.hasOwnProperty(o) ? (Array.isArray(r[o]) || (r[o] = []), Jn.call(this, o, a) === -1 && r[o].push(a), !0) : (console.warn("has no supported hook which name [".concat(o, "]")), !1);
|
|
3207
3179
|
}
|
|
3208
3180
|
function St(o, a) {
|
|
3209
3181
|
var r = this.__hooks;
|
|
3210
3182
|
if (r) {
|
|
3211
3183
|
if (Array.isArray(r[o])) {
|
|
3212
|
-
var t = r[o], e =
|
|
3184
|
+
var t = r[o], e = Jn.call(this, o, a);
|
|
3213
3185
|
e !== -1 && t.splice(e, 1);
|
|
3214
3186
|
}
|
|
3215
3187
|
delete r[o];
|
|
@@ -3232,7 +3204,7 @@ function Ji(o) {
|
|
|
3232
3204
|
}
|
|
3233
3205
|
}
|
|
3234
3206
|
}
|
|
3235
|
-
function
|
|
3207
|
+
function Qn(o) {
|
|
3236
3208
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
3237
3209
|
o.__hooks = {}, a && a.map(function(r) {
|
|
3238
3210
|
o.__hooks[r] = null;
|
|
@@ -3245,10 +3217,10 @@ function Jn(o) {
|
|
|
3245
3217
|
}
|
|
3246
3218
|
});
|
|
3247
3219
|
}
|
|
3248
|
-
function
|
|
3220
|
+
function er(o) {
|
|
3249
3221
|
o.__hooks = null;
|
|
3250
3222
|
}
|
|
3251
|
-
function
|
|
3223
|
+
function Ce(o, a, r) {
|
|
3252
3224
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
3253
3225
|
e[i - 3] = arguments[i];
|
|
3254
3226
|
if (o.__hooks && Array.isArray(o.__hooks[a])) {
|
|
@@ -3272,11 +3244,11 @@ function ke(o, a, r) {
|
|
|
3272
3244
|
return r.call.apply(r, [o, o].concat(e));
|
|
3273
3245
|
}
|
|
3274
3246
|
function Ut(o, a) {
|
|
3275
|
-
|
|
3247
|
+
N.logError("[".concat(o, "] event or callback cant be undefined or null when call ").concat(a));
|
|
3276
3248
|
}
|
|
3277
|
-
var
|
|
3249
|
+
var Oe = /* @__PURE__ */ function() {
|
|
3278
3250
|
function o(a) {
|
|
3279
|
-
T(this, o), h.checkIsFunction(this.beforeCreate) && this.beforeCreate(a),
|
|
3251
|
+
T(this, o), h.checkIsFunction(this.beforeCreate) && this.beforeCreate(a), Qn(this), this.__args = a, this.__events = {}, this.__onceEvents = {}, this.config = a.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(a);
|
|
3280
3252
|
}
|
|
3281
3253
|
return E(o, [{
|
|
3282
3254
|
key: "beforeCreate",
|
|
@@ -3440,7 +3412,7 @@ var Me = /* @__PURE__ */ function() {
|
|
|
3440
3412
|
var r = this, t = this.player, e = this.pluginName;
|
|
3441
3413
|
this.offAll(), h.clearAllTimers(this), h.checkIsFunction(this.destroy) && this.destroy(), ["player", "playerConfig", "pluginName", "logger", "__args", "__hooks"].map(function(i) {
|
|
3442
3414
|
r[i] = null;
|
|
3443
|
-
}), t.unRegisterPlugin(e),
|
|
3415
|
+
}), t.unRegisterPlugin(e), er(this);
|
|
3444
3416
|
}
|
|
3445
3417
|
}], [{
|
|
3446
3418
|
key: "defineGetterOrSetter",
|
|
@@ -3553,11 +3525,11 @@ function rn(o, a) {
|
|
|
3553
3525
|
try {
|
|
3554
3526
|
return i = o(), i instanceof window.Element ? (h.addClass(i, r), Object.keys(t).map(function(n) {
|
|
3555
3527
|
i.setAttribute(n, t[n]);
|
|
3556
|
-
}), i) : (
|
|
3528
|
+
}), i) : (N.logWarn("warn>>icons.".concat(a, " in config of plugin named [").concat(e, "] is a function mast return an Element Object")), null);
|
|
3557
3529
|
} catch (n) {
|
|
3558
|
-
return
|
|
3530
|
+
return N.logError("Plugin named [".concat(e, "]:createIcon"), n), null;
|
|
3559
3531
|
}
|
|
3560
|
-
return typeof o == "string" ? h.createDomFromHtml(o, t, r) : (
|
|
3532
|
+
return typeof o == "string" ? h.createDomFromHtml(o, t, r) : (N.logWarn("warn>>icons.".concat(a, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
3561
3533
|
}
|
|
3562
3534
|
function oa(o, a) {
|
|
3563
3535
|
var r = a.config.icons || a.playerConfig.icons;
|
|
@@ -3597,7 +3569,7 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3597
3569
|
try {
|
|
3598
3570
|
u = this.render();
|
|
3599
3571
|
} catch (d) {
|
|
3600
|
-
throw
|
|
3572
|
+
throw N.logError("Plugin:".concat(this.pluginName, ":render"), d), new Error("Plugin:".concat(this.pluginName, ":render:").concat(d.message));
|
|
3601
3573
|
}
|
|
3602
3574
|
if (u)
|
|
3603
3575
|
n = r.insert(u, i, e.index), n.setAttribute("data-index", e.index);
|
|
@@ -3795,7 +3767,7 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3795
3767
|
try {
|
|
3796
3768
|
return typeof e == "string" ? this.find(e).appendChild(i) : e.appendChild(i);
|
|
3797
3769
|
} catch (n) {
|
|
3798
|
-
return
|
|
3770
|
+
return N.logError("Plugin:appendChild", n), null;
|
|
3799
3771
|
}
|
|
3800
3772
|
}
|
|
3801
3773
|
}, {
|
|
@@ -3868,7 +3840,7 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3868
3840
|
return G;
|
|
3869
3841
|
}
|
|
3870
3842
|
}]), r;
|
|
3871
|
-
}(
|
|
3843
|
+
}(Oe), ua = /* @__PURE__ */ function() {
|
|
3872
3844
|
function o() {
|
|
3873
3845
|
var a = this;
|
|
3874
3846
|
if (T(this, o), _(this, "__trigger", function(r) {
|
|
@@ -3890,7 +3862,7 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3890
3862
|
value: function(r, t) {
|
|
3891
3863
|
if (this.observer) {
|
|
3892
3864
|
this.observer.observe(r);
|
|
3893
|
-
for (var e = r.getAttribute(
|
|
3865
|
+
for (var e = r.getAttribute(Be), i = this.__handlers, n = -1, s = 0; s < i.length; s++)
|
|
3894
3866
|
i[s] && r === i[s].target && (n = s);
|
|
3895
3867
|
n > -1 ? this.__handlers[n].handler = t : this.__handlers.push({
|
|
3896
3868
|
target: r,
|
|
@@ -3934,13 +3906,13 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3934
3906
|
return !1;
|
|
3935
3907
|
}
|
|
3936
3908
|
}]), o;
|
|
3937
|
-
}(),
|
|
3909
|
+
}(), nt = null;
|
|
3938
3910
|
function ca(o, a) {
|
|
3939
|
-
return
|
|
3911
|
+
return nt || (nt = new ua()), nt.addObserver(o, a), nt;
|
|
3940
3912
|
}
|
|
3941
3913
|
function fa(o, a) {
|
|
3942
3914
|
var r;
|
|
3943
|
-
(r =
|
|
3915
|
+
(r = nt) === null || r === void 0 || r.unObserver(o, a);
|
|
3944
3916
|
}
|
|
3945
3917
|
var te = {
|
|
3946
3918
|
pluginGroup: {},
|
|
@@ -4504,16 +4476,16 @@ var ha = function(a, r) {
|
|
|
4504
4476
|
langKeys: [],
|
|
4505
4477
|
textKeys: []
|
|
4506
4478
|
};
|
|
4507
|
-
function
|
|
4479
|
+
function ot(o, a) {
|
|
4508
4480
|
return Object.keys(a).forEach(function(r) {
|
|
4509
4481
|
var t = h.typeOf(a[r]), e = h.typeOf(o[r]);
|
|
4510
4482
|
if (t === "Array") {
|
|
4511
4483
|
var i;
|
|
4512
4484
|
e !== "Array" && (o[r] = []), (i = o[r]).push.apply(i, de(a[r]));
|
|
4513
|
-
} else t === "Object" ? (e !== "Object" && (o[r] = {}),
|
|
4485
|
+
} else t === "Object" ? (e !== "Object" && (o[r] = {}), ot(o[r], a[r])) : o[r] = a[r];
|
|
4514
4486
|
}), o;
|
|
4515
4487
|
}
|
|
4516
|
-
function
|
|
4488
|
+
function tr() {
|
|
4517
4489
|
Object.keys(le.lang.en).map(function(o) {
|
|
4518
4490
|
le.textKeys[o] = o;
|
|
4519
4491
|
});
|
|
@@ -4530,15 +4502,15 @@ function pa(o, a) {
|
|
|
4530
4502
|
}) : r = o;
|
|
4531
4503
|
var t = a, e = t.lang;
|
|
4532
4504
|
r.map(function(i) {
|
|
4533
|
-
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ?
|
|
4534
|
-
}),
|
|
4505
|
+
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? ot(e[i.LANG] || {}, i.TEXT || {}) : Ci(i, a);
|
|
4506
|
+
}), tr();
|
|
4535
4507
|
}
|
|
4536
4508
|
}
|
|
4537
4509
|
function Ci(o, a) {
|
|
4538
4510
|
var r = o.LANG;
|
|
4539
4511
|
if (a || (a = le), !!a.lang) {
|
|
4540
4512
|
var t = o.TEXT || {};
|
|
4541
|
-
r === "zh" && (r = "zh-cn"), a.lang[r] ?
|
|
4513
|
+
r === "zh" && (r = "zh-cn"), a.lang[r] ? ot(a.lang[r], t) : (a.langKeys.push(r), a.lang[r] = t), tr();
|
|
4542
4514
|
}
|
|
4543
4515
|
}
|
|
4544
4516
|
function va(o) {
|
|
@@ -4548,10 +4520,10 @@ function va(o) {
|
|
|
4548
4520
|
textKeys: {},
|
|
4549
4521
|
pId: o
|
|
4550
4522
|
};
|
|
4551
|
-
return
|
|
4523
|
+
return ot(r.lang, le.lang), (a = r.langKeys).push.apply(a, de(le.langKeys)), ot(r.textKeys, le.textKeys), r;
|
|
4552
4524
|
}
|
|
4553
4525
|
Ci(ga);
|
|
4554
|
-
var
|
|
4526
|
+
var Ze = {
|
|
4555
4527
|
get textKeys() {
|
|
4556
4528
|
return le.textKeys;
|
|
4557
4529
|
},
|
|
@@ -4576,7 +4548,7 @@ var Je = {
|
|
|
4576
4548
|
RUNNING: 6,
|
|
4577
4549
|
ENDED: 7,
|
|
4578
4550
|
DESTROYED: 8
|
|
4579
|
-
}, an = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], se = {}, Wt = null,
|
|
4551
|
+
}, an = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], se = {}, Wt = null, ir = /* @__PURE__ */ function(o) {
|
|
4580
4552
|
S(r, o);
|
|
4581
4553
|
var a = x(r);
|
|
4582
4554
|
function r() {
|
|
@@ -4662,7 +4634,7 @@ var Je = {
|
|
|
4662
4634
|
return Wt || (Wt = new r()), Wt;
|
|
4663
4635
|
}
|
|
4664
4636
|
}]), r;
|
|
4665
|
-
}(
|
|
4637
|
+
}(Dn.EventEmitter);
|
|
4666
4638
|
function ma(o) {
|
|
4667
4639
|
for (var a = Object.keys(se), r = 0; r < a.length; r++) {
|
|
4668
4640
|
var t = se[a[r]];
|
|
@@ -4671,7 +4643,7 @@ function ma(o) {
|
|
|
4671
4643
|
}
|
|
4672
4644
|
return null;
|
|
4673
4645
|
}
|
|
4674
|
-
var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0,
|
|
4646
|
+
var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Pe = null, Dt = /* @__PURE__ */ function(o) {
|
|
4675
4647
|
S(r, o);
|
|
4676
4648
|
var a = x(r);
|
|
4677
4649
|
function r(t) {
|
|
@@ -4681,7 +4653,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
4681
4653
|
e = a.call(this, i), _(v(e), "canPlayFunc", function() {
|
|
4682
4654
|
if (e.config) {
|
|
4683
4655
|
var p = e.config, m = p.autoplay, y = p.defaultPlaybackRate;
|
|
4684
|
-
|
|
4656
|
+
N.logInfo("player", "canPlayFunc, startTime", e.__startTime), e._seekToStartTime(), e.playbackRate = y, (m || e._useAutoplay) && e.mediaPlay(), e.off(we, e.canPlayFunc), e.removeClass(C.ENTER);
|
|
4685
4657
|
}
|
|
4686
4658
|
}), _(v(e), "onFullscreenChange", function(p, m) {
|
|
4687
4659
|
var y = function() {
|
|
@@ -4701,9 +4673,9 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
4701
4673
|
to: !1
|
|
4702
4674
|
}]
|
|
4703
4675
|
});
|
|
4704
|
-
var w = Hs(k, e.playerId,
|
|
4676
|
+
var w = Hs(k, e.playerId, Be);
|
|
4705
4677
|
if (m || k && (k === e._fullscreenEl || w))
|
|
4706
|
-
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(
|
|
4678
|
+
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(be, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
4707
4679
|
else if (e.fullscreen) {
|
|
4708
4680
|
y();
|
|
4709
4681
|
var b = v(e), B = b._fullScreenOffset, O = b.config;
|
|
@@ -4715,13 +4687,13 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
4715
4687
|
var z = e._fullscreenEl;
|
|
4716
4688
|
!z && (e.root.contains(p.target) || p.target === e.root) && (z = p.target), e.recoverFullStyle(e.root, z, C.FULLSCREEN);
|
|
4717
4689
|
}
|
|
4718
|
-
e._fullscreenEl = null, e.emit(
|
|
4690
|
+
e._fullscreenEl = null, e.emit(be, !1);
|
|
4719
4691
|
}
|
|
4720
4692
|
}), _(v(e), "_onWebkitbeginfullscreen", function(p) {
|
|
4721
4693
|
e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
|
|
4722
4694
|
}), _(v(e), "_onWebkitendfullscreen", function(p) {
|
|
4723
4695
|
e.onFullscreenChange(p, !1);
|
|
4724
|
-
}),
|
|
4696
|
+
}), Qn(v(e), ya), e.config = i, e._pluginInfoId = h.generateSessionId(), Rs(v(e));
|
|
4725
4697
|
var n = e.constructor.defaultPreset;
|
|
4726
4698
|
if (e.config.presets.length) {
|
|
4727
4699
|
var s = e.config.presets.indexOf("default");
|
|
@@ -4749,9 +4721,9 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
4749
4721
|
}, e._offsetInfo = {
|
|
4750
4722
|
currentTime: -1,
|
|
4751
4723
|
duration: 0
|
|
4752
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n =
|
|
4724
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ze.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new ea(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
4753
4725
|
isActiveLocked: !1
|
|
4754
|
-
}, e.instManager =
|
|
4726
|
+
}, e.instManager = Pe;
|
|
4755
4727
|
var l = e._initDOM();
|
|
4756
4728
|
if (!l)
|
|
4757
4729
|
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), hi(e);
|
|
@@ -4775,14 +4747,14 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
4775
4747
|
if (n && n.nodeType === 1)
|
|
4776
4748
|
this.root = n;
|
|
4777
4749
|
else
|
|
4778
|
-
return this.emit(
|
|
4750
|
+
return this.emit(lt, new yt("use", this.config.vid, {
|
|
4779
4751
|
line: 32,
|
|
4780
4752
|
handle: "Constructor",
|
|
4781
4753
|
msg: "container id can't be empty"
|
|
4782
4754
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
4783
4755
|
}
|
|
4784
4756
|
var s = ma(this.root);
|
|
4785
|
-
s && (
|
|
4757
|
+
s && (N.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Be, this.playerId), (e = Pe) === null || e === void 0 || e.add(this), te.init(this), this._initBaseDoms();
|
|
4786
4758
|
var l = this.constructor.XgVideoProxy;
|
|
4787
4759
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
4788
4760
|
var u = this.innerContainer || this.root;
|
|
@@ -4790,7 +4762,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
4790
4762
|
var c = new l(u, this.config, this.mediaConfig);
|
|
4791
4763
|
this.attachVideoEvents(c), this.media = c;
|
|
4792
4764
|
}
|
|
4793
|
-
if (this.media.setAttribute(
|
|
4765
|
+
if (this.media.setAttribute(Be, this.playerId), this.config.controls) {
|
|
4794
4766
|
var f = this.config.controls.root || null, d = te.register(this, da, {
|
|
4795
4767
|
root: f
|
|
4796
4768
|
});
|
|
@@ -4831,7 +4803,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
4831
4803
|
e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
|
|
4832
4804
|
}), $i.forEach(function(i) {
|
|
4833
4805
|
document && document.addEventListener(i, e.onFullscreenChange);
|
|
4834
|
-
}), R.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(
|
|
4806
|
+
}), R.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Ee, this.resize), this.playFunc = function() {
|
|
4835
4807
|
e.config.closeFocusVideoFocus || e.media.focus();
|
|
4836
4808
|
}, this.once(fe, this.playFunc);
|
|
4837
4809
|
}
|
|
@@ -4841,7 +4813,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
4841
4813
|
var e = this;
|
|
4842
4814
|
this.root.removeEventListener("mousemove", this.mousemoveFunc), $i.forEach(function(i) {
|
|
4843
4815
|
document.removeEventListener(i, e.onFullscreenChange);
|
|
4844
|
-
}), this.playFunc && this.off(fe, this.playFunc), this.off(
|
|
4816
|
+
}), this.playFunc && this.off(fe, this.playFunc), this.off(we, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
|
|
4845
4817
|
}
|
|
4846
4818
|
}, {
|
|
4847
4819
|
key: "_clearUserTimer",
|
|
@@ -4852,14 +4824,14 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
4852
4824
|
key: "_startInit",
|
|
4853
4825
|
value: function(e) {
|
|
4854
4826
|
var i = this;
|
|
4855
|
-
if (this.media && !((!e || e === "" || h.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(
|
|
4827
|
+
if (this.media && !((!e || e === "" || h.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(Hn), N.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
|
|
4856
4828
|
this.handleSource && (this._detachSourceEvents(this.media), h.typeOf(e) === "Array" && e.length > 0 ? this._attachSourceEvents(this.media, e) : !this.media.src || this.media.src !== e ? this.media.src = e : e || this.media.removeAttribute("src")), h.typeOf(this.config.volume) === "Number" && (this.volume = this.config.volume);
|
|
4857
4829
|
var n = this.innerContainer ? this.innerContainer : this.root;
|
|
4858
4830
|
this.media instanceof window.Element && !n.contains(this.media) && n.insertBefore(this.media, n.firstChild);
|
|
4859
4831
|
var s = this.media.readyState;
|
|
4860
|
-
|
|
4832
|
+
N.logInfo("_startInit readyState", s), this.config.autoplay && (!h.isMSE(this.media) && this.load(), (R.os.isIpad || R.os.isPhone) && this.mediaPlay());
|
|
4861
4833
|
var l = this.config.startTime;
|
|
4862
|
-
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(
|
|
4834
|
+
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(we, this.canPlayFunc), (!this.hasStart || this.state < H.ATTACHED) && te.afterInit(this), this.hasStart = !0, this.setState(H.ATTACHED), h.setTimeout(this, function() {
|
|
4863
4835
|
i.emit(Pt);
|
|
4864
4836
|
}, 0);
|
|
4865
4837
|
}
|
|
@@ -4870,7 +4842,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
4870
4842
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
4871
4843
|
this._loadingPlugins = [];
|
|
4872
4844
|
var n = this.config.ignores || [], s = this.config.plugins || [], l = this.config.i18n || [];
|
|
4873
|
-
i &&
|
|
4845
|
+
i && Ze.extend(l, this.__i18n);
|
|
4874
4846
|
var u = n.join("||").toLowerCase().split("||"), c = this.plugins;
|
|
4875
4847
|
s.forEach(function(f) {
|
|
4876
4848
|
try {
|
|
@@ -4884,13 +4856,13 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
4884
4856
|
f.forceBeforeInit && (g.then(function() {
|
|
4885
4857
|
e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
|
|
4886
4858
|
}).catch(function(p) {
|
|
4887
|
-
|
|
4859
|
+
N.logError("_registerPlugins:loadingPlugin", p), e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
|
|
4888
4860
|
}), e._loadingPlugins.push(g));
|
|
4889
4861
|
return;
|
|
4890
4862
|
}
|
|
4891
4863
|
return e.registerPlugin(f);
|
|
4892
4864
|
} catch (p) {
|
|
4893
|
-
|
|
4865
|
+
N.logError("_registerPlugins:", p);
|
|
4894
4866
|
}
|
|
4895
4867
|
});
|
|
4896
4868
|
}
|
|
@@ -4939,7 +4911,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
4939
4911
|
}, {
|
|
4940
4912
|
key: "deregister",
|
|
4941
4913
|
value: function(e) {
|
|
4942
|
-
typeof e == "string" ? te.unRegister(this, e) : e instanceof
|
|
4914
|
+
typeof e == "string" ? te.unRegister(this, e) : e instanceof Oe && te.unRegister(this, e.pluginName);
|
|
4943
4915
|
}
|
|
4944
4916
|
}, {
|
|
4945
4917
|
key: "unRegisterPlugin",
|
|
@@ -4951,7 +4923,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
4951
4923
|
key: "removePluginFromConfig",
|
|
4952
4924
|
value: function(e) {
|
|
4953
4925
|
var i;
|
|
4954
|
-
if (typeof e == "string" ? i = e : e instanceof
|
|
4926
|
+
if (typeof e == "string" ? i = e : e instanceof Oe && (i = e.pluginName), !!i)
|
|
4955
4927
|
for (var n = this.config.plugins.length - 1; n > -1; n--) {
|
|
4956
4928
|
var s = this.config.plugins[n];
|
|
4957
4929
|
if (s.pluginName.toLowerCase() === i.toLowerCase()) {
|
|
@@ -5009,7 +4981,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5009
4981
|
return s;
|
|
5010
4982
|
}
|
|
5011
4983
|
}).catch(function(n) {
|
|
5012
|
-
throw n.fileName = "player", n.lineNumber = "236",
|
|
4984
|
+
throw n.fileName = "player", n.lineNumber = "236", N.logError("start:beforeInit:", n), n;
|
|
5013
4985
|
});
|
|
5014
4986
|
}
|
|
5015
4987
|
}, {
|
|
@@ -5052,16 +5024,16 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5052
5024
|
this.state < H.RUNNING && (this.removeClass(C.NO_START), !this.isCanplay && this.addClass(C.ENTER));
|
|
5053
5025
|
var i = A(I(r.prototype), "play", this).call(this);
|
|
5054
5026
|
return i !== void 0 && i && i.then ? i.then(function() {
|
|
5055
|
-
e.removeClass(C.NOT_ALLOW_AUTOPLAY), e.addClass(C.PLAYING), e.state < H.RUNNING && (
|
|
5027
|
+
e.removeClass(C.NOT_ALLOW_AUTOPLAY), e.addClass(C.PLAYING), e.state < H.RUNNING && (N.logInfo(">>>>playPromise.then"), e.setState(H.RUNNING), e.emit(He));
|
|
5056
5028
|
}).catch(function(n) {
|
|
5057
|
-
if (
|
|
5029
|
+
if (N.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
|
|
5058
5030
|
e.onError(), e.removeClass(C.ENTER);
|
|
5059
5031
|
return;
|
|
5060
5032
|
}
|
|
5061
5033
|
n.name === "NotAllowedError" && (e._errorTimer = h.setTimeout(e, function() {
|
|
5062
5034
|
e._errorTimer = null, e.emit(mi), e.addClass(C.NOT_ALLOW_AUTOPLAY), e.removeClass(C.ENTER), e.pause(), e.setState(H.NOTALLOW);
|
|
5063
5035
|
}, 0));
|
|
5064
|
-
}) : (
|
|
5036
|
+
}) : (N.logWarn("video.play not return promise"), this.state < H.RUNNING && (this.setState(H.RUNNING), this.removeClass(C.NOT_ALLOW_AUTOPLAY), this.removeClass(C.NO_START), this.removeClass(C.ENTER), this.addClass(C.PLAYING), this.emit(He))), i;
|
|
5065
5037
|
}
|
|
5066
5038
|
}, {
|
|
5067
5039
|
key: "mediaPause",
|
|
@@ -5077,7 +5049,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5077
5049
|
key: "play",
|
|
5078
5050
|
value: function() {
|
|
5079
5051
|
var e = this;
|
|
5080
|
-
return this.removeClass(C.PAUSED),
|
|
5052
|
+
return this.removeClass(C.PAUSED), Ce(this, "play", function() {
|
|
5081
5053
|
return e.mediaPlay();
|
|
5082
5054
|
});
|
|
5083
5055
|
}
|
|
@@ -5085,7 +5057,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5085
5057
|
key: "pause",
|
|
5086
5058
|
value: function() {
|
|
5087
5059
|
var e = this;
|
|
5088
|
-
|
|
5060
|
+
Ce(this, "pause", function() {
|
|
5089
5061
|
A(I(r.prototype), "pause", e).call(e);
|
|
5090
5062
|
});
|
|
5091
5063
|
}
|
|
@@ -5095,7 +5067,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5095
5067
|
var n = this;
|
|
5096
5068
|
if (!(!this.media || Number.isNaN(Number(e)) || !this.hasStart)) {
|
|
5097
5069
|
var s = this.config, l = s.isSeekedPlay, u = s.seekedStatus, c = i || (l ? "play" : u);
|
|
5098
|
-
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(
|
|
5070
|
+
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(Te, this._onceSeekCanplay), this._onceSeekCanplay = function() {
|
|
5099
5071
|
switch (n.removeClass(C.ENTER), n.isSeeking = !1, c) {
|
|
5100
5072
|
case "play":
|
|
5101
5073
|
n.play();
|
|
@@ -5107,7 +5079,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5107
5079
|
n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
|
|
5108
5080
|
}
|
|
5109
5081
|
n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
|
|
5110
|
-
}, this.once(
|
|
5082
|
+
}, this.once(Te, this._onceSeekCanplay), this.state < H.RUNNING ? (this.removeClass(C.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
|
|
5111
5083
|
}
|
|
5112
5084
|
}
|
|
5113
5085
|
}, {
|
|
@@ -5149,7 +5121,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5149
5121
|
value: function() {
|
|
5150
5122
|
this.load(), this.reloadFunc = function() {
|
|
5151
5123
|
this.play();
|
|
5152
|
-
}, this.once(
|
|
5124
|
+
}, this.once(Ee, this.reloadFunc);
|
|
5153
5125
|
}
|
|
5154
5126
|
}, {
|
|
5155
5127
|
key: "resetState",
|
|
@@ -5179,7 +5151,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5179
5151
|
value: function() {
|
|
5180
5152
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
5181
5153
|
if (!(!s || !l)) {
|
|
5182
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(
|
|
5154
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Be), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(yi), (e = Pe) === null || e === void 0 || e.remove(this), te.destroy(this), er(this), A(I(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
5183
5155
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
5184
5156
|
n.removeChild(u[c]);
|
|
5185
5157
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -5197,8 +5169,8 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5197
5169
|
key: "replay",
|
|
5198
5170
|
value: function() {
|
|
5199
5171
|
var e = this;
|
|
5200
|
-
this.removeClass(C.ENDED), this.currentTime = 0, this.isSeeking = !1,
|
|
5201
|
-
e.once(
|
|
5172
|
+
this.removeClass(C.ENDED), this.currentTime = 0, this.isSeeking = !1, Ce(this, "replay", function() {
|
|
5173
|
+
e.once(Te, function() {
|
|
5202
5174
|
var i = e.mediaPlay();
|
|
5203
5175
|
i && i.catch && i.catch(function(n) {
|
|
5204
5176
|
console.log(n);
|
|
@@ -5210,11 +5182,11 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5210
5182
|
key: "retry",
|
|
5211
5183
|
value: function() {
|
|
5212
5184
|
var e = this;
|
|
5213
|
-
this.removeClass(C.ERROR), this.addClass(C.LOADING),
|
|
5185
|
+
this.removeClass(C.ERROR), this.addClass(C.LOADING), Ce(this, "retry", function() {
|
|
5214
5186
|
var i = e.currentTime, n = e.config.url, s = h.isMSE(e.media) ? {
|
|
5215
5187
|
url: n
|
|
5216
5188
|
} : e._preProcessUrl(n);
|
|
5217
|
-
e.src = s.url, !e.config.isLive && (e.currentTime = i), e.once(
|
|
5189
|
+
e.src = s.url, !e.config.isLive && (e.currentTime = i), e.once(we, function() {
|
|
5218
5190
|
e.mediaPlay();
|
|
5219
5191
|
});
|
|
5220
5192
|
});
|
|
@@ -5222,12 +5194,12 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5222
5194
|
}, {
|
|
5223
5195
|
key: "changeFullStyle",
|
|
5224
5196
|
value: function(e, i, n, s) {
|
|
5225
|
-
e && (s || (s = C.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(
|
|
5197
|
+
e && (s || (s = C.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(Be, this.playerId)));
|
|
5226
5198
|
}
|
|
5227
5199
|
}, {
|
|
5228
5200
|
key: "recoverFullStyle",
|
|
5229
5201
|
value: function(e, i, n, s) {
|
|
5230
|
-
s || (s = C.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(
|
|
5202
|
+
s || (s = C.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(Be));
|
|
5231
5203
|
}
|
|
5232
5204
|
}, {
|
|
5233
5205
|
key: "getFullscreen",
|
|
@@ -5282,7 +5254,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5282
5254
|
var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.CSS_FULLSCREEN) : C.CSS_FULLSCREEN;
|
|
5283
5255
|
this.changeFullStyle(this.root, e, i);
|
|
5284
5256
|
var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
|
|
5285
|
-
l && (this.fullscreen = !0, this.emit(
|
|
5257
|
+
l && (this.fullscreen = !0, this.emit(be, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(Ct, !0);
|
|
5286
5258
|
}
|
|
5287
5259
|
}, {
|
|
5288
5260
|
key: "exitCssFullscreen",
|
|
@@ -5292,7 +5264,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5292
5264
|
this.recoverFullStyle(this.root, this._cssfullscreenEl, e);
|
|
5293
5265
|
else {
|
|
5294
5266
|
var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
|
|
5295
|
-
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(
|
|
5267
|
+
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(be, !1)) : this.removeClass(e);
|
|
5296
5268
|
}
|
|
5297
5269
|
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(Ct, !1);
|
|
5298
5270
|
}
|
|
@@ -5302,13 +5274,13 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5302
5274
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
|
|
5303
5275
|
this.cssfullscreen && this.exitCssFullscreen(e);
|
|
5304
5276
|
var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.ROTATE_FULLSCREEN) : C.ROTATE_FULLSCREEN;
|
|
5305
|
-
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, C.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(
|
|
5277
|
+
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, C.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(be, !0);
|
|
5306
5278
|
}
|
|
5307
5279
|
}, {
|
|
5308
5280
|
key: "exitRotateFullscreen",
|
|
5309
5281
|
value: function(e) {
|
|
5310
5282
|
var i = this._fullscreenEl !== this.root ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.ROTATE_FULLSCREEN) : C.ROTATE_FULLSCREEN;
|
|
5311
|
-
this.recoverFullStyle(this.root, this._fullscreenEl, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(
|
|
5283
|
+
this.recoverFullStyle(this.root, this._fullscreenEl, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(be, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
|
|
5312
5284
|
}
|
|
5313
5285
|
}, {
|
|
5314
5286
|
key: "setRotateDeg",
|
|
@@ -5341,7 +5313,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5341
5313
|
this.onBlur(e);
|
|
5342
5314
|
return;
|
|
5343
5315
|
}
|
|
5344
|
-
this._clearUserTimer(), this.emit(
|
|
5316
|
+
this._clearUserTimer(), this.emit(Bn, X({
|
|
5345
5317
|
paused: this.paused,
|
|
5346
5318
|
ended: this.ended
|
|
5347
5319
|
}, e));
|
|
@@ -5385,7 +5357,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5385
5357
|
key: "onLoadeddata",
|
|
5386
5358
|
value: function() {
|
|
5387
5359
|
var e = this;
|
|
5388
|
-
this.isError = !1, this.isSeeking = !1, this.__startTime > 0 && (this.duration > 0 ? this._seekToStartTime() : this.once(
|
|
5360
|
+
this.isError = !1, this.isSeeking = !1, this.__startTime > 0 && (this.duration > 0 ? this._seekToStartTime() : this.once(Se, function() {
|
|
5389
5361
|
e._seekToStartTime();
|
|
5390
5362
|
}));
|
|
5391
5363
|
}
|
|
@@ -5429,7 +5401,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5429
5401
|
value: function() {
|
|
5430
5402
|
var e = this;
|
|
5431
5403
|
this.waitTimer && h.clearTimeout(this, this.waitTimer), this.updateAcc("waiting"), this.waitTimer = h.setTimeout(this, function() {
|
|
5432
|
-
e.addClass(C.LOADING), e.emit(
|
|
5404
|
+
e.addClass(C.LOADING), e.emit(zn), h.clearTimeout(e, e.waitTimer), e.waitTimer = null;
|
|
5433
5405
|
}, this.config.minWaitDelay);
|
|
5434
5406
|
}
|
|
5435
5407
|
}, {
|
|
@@ -5445,7 +5417,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5445
5417
|
}, {
|
|
5446
5418
|
key: "onTimeupdate",
|
|
5447
5419
|
value: function() {
|
|
5448
|
-
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(C.LOADING)) && this.media.readyState > 2 && (this.removeClass(C.LOADING), h.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === H.NOTALLOW && this.duration && (this.setState(H.RUNNING), this.emit(
|
|
5420
|
+
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(C.LOADING)) && this.media.readyState > 2 && (this.removeClass(C.LOADING), h.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === H.NOTALLOW && this.duration && (this.setState(H.RUNNING), this.emit(He)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
5449
5421
|
}
|
|
5450
5422
|
}, {
|
|
5451
5423
|
key: "onVolumechange",
|
|
@@ -5547,7 +5519,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5547
5519
|
key: "playNext",
|
|
5548
5520
|
value: function(e) {
|
|
5549
5521
|
var i = this;
|
|
5550
|
-
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0,
|
|
5522
|
+
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, Ce(this, "playnext", function() {
|
|
5551
5523
|
i.start(), i.emit(bt, e);
|
|
5552
5524
|
});
|
|
5553
5525
|
}
|
|
@@ -5572,7 +5544,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5572
5544
|
cWidth: k,
|
|
5573
5545
|
cHeight: w + d
|
|
5574
5546
|
};
|
|
5575
|
-
this.resizePosition(), this.emit(
|
|
5547
|
+
this.resizePosition(), this.emit(Re, B);
|
|
5576
5548
|
}
|
|
5577
5549
|
}
|
|
5578
5550
|
}
|
|
@@ -5589,7 +5561,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5589
5561
|
}, {
|
|
5590
5562
|
key: "setState",
|
|
5591
5563
|
value: function(e) {
|
|
5592
|
-
|
|
5564
|
+
N.logInfo("setState", "state from:".concat(an[this.state], " to:").concat(an[e])), this._state = e;
|
|
5593
5565
|
}
|
|
5594
5566
|
}, {
|
|
5595
5567
|
key: "_preProcessUrl",
|
|
@@ -5668,11 +5640,11 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5668
5640
|
return this.config.lang;
|
|
5669
5641
|
},
|
|
5670
5642
|
set: function(e) {
|
|
5671
|
-
var i =
|
|
5643
|
+
var i = Ze.langKeys.filter(function(n) {
|
|
5672
5644
|
return n === e;
|
|
5673
5645
|
});
|
|
5674
5646
|
if (i.length === 0 && e !== "zh") {
|
|
5675
|
-
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(
|
|
5647
|
+
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(Ze.langKeys.join(), "] "));
|
|
5676
5648
|
return;
|
|
5677
5649
|
}
|
|
5678
5650
|
this.config.lang = e, te.setLang(e, this);
|
|
@@ -5822,35 +5794,35 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5822
5794
|
key: "setUserActive",
|
|
5823
5795
|
value: function(e, i) {
|
|
5824
5796
|
var n;
|
|
5825
|
-
typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), h.typeOf(i) === Boolean && (this.muted = i)), (n =
|
|
5797
|
+
typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), h.typeOf(i) === Boolean && (this.muted = i)), (n = Pe) === null || n === void 0 || n.setActive(this.playerId, e);
|
|
5826
5798
|
}
|
|
5827
5799
|
}], [{
|
|
5828
5800
|
key: "debugger",
|
|
5829
5801
|
get: function() {
|
|
5830
|
-
return
|
|
5802
|
+
return N.config.debug;
|
|
5831
5803
|
},
|
|
5832
5804
|
set: function(e) {
|
|
5833
|
-
|
|
5805
|
+
N.config.debug = e;
|
|
5834
5806
|
}
|
|
5835
5807
|
}, {
|
|
5836
5808
|
key: "instManager",
|
|
5837
5809
|
get: function() {
|
|
5838
|
-
return
|
|
5810
|
+
return Pe;
|
|
5839
5811
|
},
|
|
5840
5812
|
set: function(e) {
|
|
5841
|
-
|
|
5813
|
+
Pe = e;
|
|
5842
5814
|
}
|
|
5843
5815
|
}, {
|
|
5844
5816
|
key: "getCurrentUserActivePlayerId",
|
|
5845
5817
|
value: function() {
|
|
5846
5818
|
var e;
|
|
5847
|
-
return (e =
|
|
5819
|
+
return (e = Pe) === null || e === void 0 ? void 0 : e.getActiveId();
|
|
5848
5820
|
}
|
|
5849
5821
|
}, {
|
|
5850
5822
|
key: "setCurrentUserActive",
|
|
5851
5823
|
value: function(e, i) {
|
|
5852
5824
|
var n;
|
|
5853
|
-
(n =
|
|
5825
|
+
(n = Pe) === null || n === void 0 || n.setActive(e, i);
|
|
5854
5826
|
}
|
|
5855
5827
|
}, {
|
|
5856
5828
|
key: "isHevcSupported",
|
|
@@ -5876,11 +5848,11 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
|
|
|
5876
5848
|
}(Qs);
|
|
5877
5849
|
_(Dt, "defaultPreset", null);
|
|
5878
5850
|
_(Dt, "XgVideoProxy", null);
|
|
5879
|
-
Dt.instManager =
|
|
5851
|
+
Dt.instManager = ir.getInstance();
|
|
5880
5852
|
function ne() {
|
|
5881
5853
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
5882
5854
|
}
|
|
5883
|
-
var
|
|
5855
|
+
var Ae = {
|
|
5884
5856
|
LOAD_START: "loadstart",
|
|
5885
5857
|
LOADED_DATA: "loadeddata",
|
|
5886
5858
|
FIRST_FRAME: "firstFrame",
|
|
@@ -5897,9 +5869,9 @@ var Le = {
|
|
|
5897
5869
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
5898
5870
|
i[n] = arguments[n];
|
|
5899
5871
|
return t = a.call.apply(a, [this].concat(i)), _(v(t), "_onTimeupdate", function() {
|
|
5900
|
-
t._state.isTimeUpdate = !0, t._state.autoplayStart && (
|
|
5872
|
+
t._state.isTimeUpdate = !0, t._state.autoplayStart && (N.logInfo("[xgLogger]".concat(t.player.playerId, " _onTimeupdate")), t._sendFF("onTimeupdate"));
|
|
5901
5873
|
}), _(v(t), "_onAutoplayStart", function() {
|
|
5902
|
-
|
|
5874
|
+
N.logInfo("[xgLogger]".concat(t.player.playerId, " _onAutoplayStart")), t._state.autoplayStart = !0, t.vt && t._sendFF("onAutoplayStart");
|
|
5903
5875
|
}), _(v(t), "_onReset", function() {
|
|
5904
5876
|
t._state = {
|
|
5905
5877
|
autoplayStart: !1,
|
|
@@ -5909,13 +5881,13 @@ var Le = {
|
|
|
5909
5881
|
isLs: !1
|
|
5910
5882
|
}, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = ne(), 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;
|
|
5911
5883
|
}), _(v(t), "_onSeeking", function() {
|
|
5912
|
-
t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = ne(), t.emitLog(
|
|
5884
|
+
t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = ne(), t.emitLog(Ae.SEEK_START, {
|
|
5913
5885
|
start: ne()
|
|
5914
5886
|
}));
|
|
5915
5887
|
}), _(v(t), "_onSeeked", function() {
|
|
5916
5888
|
t.suspendSeekingStatus("seeked");
|
|
5917
5889
|
}), _(v(t), "_onWaitingLoadStart", function() {
|
|
5918
|
-
t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = ne(), t.fixedWaitingStart = ne(), t._waitType = 1, t.emitLog(
|
|
5890
|
+
t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = ne(), t.fixedWaitingStart = ne(), t._waitType = 1, t.emitLog(Ae.WAIT_START, {
|
|
5919
5891
|
fixedStart: t.fixedWaitingStart,
|
|
5920
5892
|
start: t.waitingStart,
|
|
5921
5893
|
type: 1,
|
|
@@ -5923,7 +5895,7 @@ var Le = {
|
|
|
5923
5895
|
}));
|
|
5924
5896
|
}), _(v(t), "_onWaiting", function() {
|
|
5925
5897
|
t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = ne(), t._waitTimer = h.setTimeout(v(t), function() {
|
|
5926
|
-
t._isWaiting && (t.waitingStart = ne(), h.clearTimeout(v(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(
|
|
5898
|
+
t._isWaiting && (t.waitingStart = ne(), h.clearTimeout(v(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(Ae.WAIT_START, {
|
|
5927
5899
|
fixedStart: t.fixedWaitingStart,
|
|
5928
5900
|
start: t.waitingStart,
|
|
5929
5901
|
type: t._waitType,
|
|
@@ -5942,30 +5914,30 @@ var Le = {
|
|
|
5942
5914
|
var e = this;
|
|
5943
5915
|
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = ne(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(gi, function() {
|
|
5944
5916
|
var i = e._state, n = i.autoplayStart, s = i.isFFSend;
|
|
5945
|
-
e.startCostTime = ne() - e.newPointTime,
|
|
5946
|
-
}), this.on(
|
|
5917
|
+
e.startCostTime = ne() - e.newPointTime, N.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(Ae.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = ne(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
|
|
5918
|
+
}), this.on(Ee, function() {
|
|
5947
5919
|
e.vt = ne(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
5948
5920
|
var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
|
|
5949
|
-
|
|
5950
|
-
}), this.on(It, this._onSeeking), this.on(
|
|
5921
|
+
N.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(Ae.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
5922
|
+
}), this.on(It, this._onSeeking), this.on(Te, this._onSeeked), this.on(yi, function() {
|
|
5951
5923
|
e.endState("destroy");
|
|
5952
5924
|
}), this.on(At, function() {
|
|
5953
|
-
e.endState("urlChange"),
|
|
5954
|
-
}), this.on([di,
|
|
5955
|
-
|
|
5925
|
+
e.endState("urlChange"), N.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
5926
|
+
}), this.on([di, we], this._onPlaying), this.on(ut, this._onWaiting), this.on(lt, this._onError), this.on(Lt, function() {
|
|
5927
|
+
N.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
5956
5928
|
});
|
|
5957
5929
|
}
|
|
5958
5930
|
}, {
|
|
5959
5931
|
key: "_initOnceEvents",
|
|
5960
5932
|
value: function() {
|
|
5961
|
-
this.off(
|
|
5933
|
+
this.off(He, this._onAutoplayStart), this.off(ce, this._onTimeupdate), this.once(He, this._onAutoplayStart), this.once(ce, this._onTimeupdate);
|
|
5962
5934
|
}
|
|
5963
5935
|
}, {
|
|
5964
5936
|
key: "_sendFF",
|
|
5965
5937
|
value: function(e) {
|
|
5966
5938
|
this.s = ne();
|
|
5967
5939
|
var i = this._state, n = i.isFFLoading, s = i.isFFSend;
|
|
5968
|
-
|
|
5940
|
+
N.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (N.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(Ae.FIRST_FRAME, {
|
|
5969
5941
|
fvt: this.fvt,
|
|
5970
5942
|
costTime: this.fvt,
|
|
5971
5943
|
vt: this.vt,
|
|
@@ -5991,7 +5963,7 @@ var Le = {
|
|
|
5991
5963
|
value: function(e) {
|
|
5992
5964
|
if (this.seekingStart) {
|
|
5993
5965
|
var i = ne(), n = i - this.seekingStart;
|
|
5994
|
-
this.seekingStart = 0, this.emitLog(
|
|
5966
|
+
this.seekingStart = 0, this.emitLog(Ae.SEEK_END, {
|
|
5995
5967
|
end: i,
|
|
5996
5968
|
costTime: n,
|
|
5997
5969
|
endType: e
|
|
@@ -6003,7 +5975,7 @@ var Le = {
|
|
|
6003
5975
|
value: function(e) {
|
|
6004
5976
|
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) {
|
|
6005
5977
|
var i = ne(), n = i - this.waitingStart, s = i - this.fixedWaitingStart, l = this.config.waitTimeout;
|
|
6006
|
-
this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(
|
|
5978
|
+
this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(Ae.WAIT_END, {
|
|
6007
5979
|
fixedCostTime: s > l ? l : s,
|
|
6008
5980
|
costTime: n > l ? l : n,
|
|
6009
5981
|
type: e === "loadeddata" ? 1 : this._waitType,
|
|
@@ -6015,7 +5987,7 @@ var Le = {
|
|
|
6015
5987
|
key: "emitLog",
|
|
6016
5988
|
value: function(e, i) {
|
|
6017
5989
|
var n = this.player;
|
|
6018
|
-
this.emit(
|
|
5990
|
+
this.emit(Kn, X({
|
|
6019
5991
|
t: ne(),
|
|
6020
5992
|
host: h.getHostFromUrl(n.currentSrc),
|
|
6021
5993
|
vtype: n.vtype,
|
|
@@ -6068,7 +6040,7 @@ var ka = /* @__PURE__ */ function(o) {
|
|
|
6068
6040
|
pre: function(n) {
|
|
6069
6041
|
n.preventDefault(), n.stopPropagation();
|
|
6070
6042
|
}
|
|
6071
|
-
}), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(
|
|
6043
|
+
}), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(Ue, function() {
|
|
6072
6044
|
if (e.playerConfig.loop || h.addClass(e.player.root, "replay"), !e.config.disable) {
|
|
6073
6045
|
e.show();
|
|
6074
6046
|
var i = e.root.querySelector("path");
|
|
@@ -6161,7 +6133,7 @@ var ka = /* @__PURE__ */ function(o) {
|
|
|
6161
6133
|
key: "afterCreate",
|
|
6162
6134
|
value: function() {
|
|
6163
6135
|
var e = this;
|
|
6164
|
-
this.on(
|
|
6136
|
+
this.on(Ue, function() {
|
|
6165
6137
|
e.isEndedShow && h.removeClass(e.root, "hide");
|
|
6166
6138
|
}), this.config.hideCanplay ? (this.once(ce, function() {
|
|
6167
6139
|
e.onTimeUpdate();
|
|
@@ -6299,12 +6271,12 @@ var Ta = /* @__PURE__ */ function(o) {
|
|
|
6299
6271
|
var e = this, i = this.player, n = this.playerConfig;
|
|
6300
6272
|
this.once(vi, function() {
|
|
6301
6273
|
n && (n.lang && n.lang === "en" ? h.addClass(i.root, "lang-is-en") : n.lang === "jp" && h.addClass(i.root, "lang-is-jp"));
|
|
6302
|
-
}), this.on(
|
|
6274
|
+
}), this.on(He, this.onAutoplayStart), this.on(mi, function() {
|
|
6303
6275
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
6304
6276
|
e.setAttr("data-state", "play"), h.removeClass(e.root, s), e.show();
|
|
6305
6277
|
}), this.on(fe, function() {
|
|
6306
6278
|
e.toggleTo("play");
|
|
6307
|
-
}), this.on(
|
|
6279
|
+
}), this.on(Qe, function() {
|
|
6308
6280
|
e.toggleTo("pause");
|
|
6309
6281
|
}), this.on(Lt, function() {
|
|
6310
6282
|
e.onPlayerReset();
|
|
@@ -6499,7 +6471,7 @@ var Ta = /* @__PURE__ */ function(o) {
|
|
|
6499
6471
|
}
|
|
6500
6472
|
}]), r;
|
|
6501
6473
|
}(U);
|
|
6502
|
-
function
|
|
6474
|
+
function Me(o, a, r) {
|
|
6503
6475
|
try {
|
|
6504
6476
|
return ' <div class="xg-tips '.concat(r ? "hide" : " ", '" lang-key="').concat(o.i18nKeys[a], `">
|
|
6505
6477
|
`).concat(o.i18n[a], `
|
|
@@ -6562,7 +6534,7 @@ function fn(o) {
|
|
|
6562
6534
|
var a = parseFloat(o), r = o.indexOf("%") === -1 && !Number.isNaN(a);
|
|
6563
6535
|
return r && a;
|
|
6564
6536
|
}
|
|
6565
|
-
var wi = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"],
|
|
6537
|
+
var wi = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], nr = wi.length;
|
|
6566
6538
|
function Sa() {
|
|
6567
6539
|
for (var o = {
|
|
6568
6540
|
width: 0,
|
|
@@ -6571,7 +6543,7 @@ function Sa() {
|
|
|
6571
6543
|
innerHeight: 0,
|
|
6572
6544
|
outerWidth: 0,
|
|
6573
6545
|
outerHeight: 0
|
|
6574
|
-
}, a = 0; a <
|
|
6546
|
+
}, a = 0; a < nr; a++) {
|
|
6575
6547
|
var r = wi[a];
|
|
6576
6548
|
o[r] = 0;
|
|
6577
6549
|
}
|
|
@@ -6588,7 +6560,7 @@ function hn(o) {
|
|
|
6588
6560
|
return Sa();
|
|
6589
6561
|
var r = {};
|
|
6590
6562
|
r.width = o.offsetWidth, r.height = o.offsetHeight;
|
|
6591
|
-
for (var t = r.isBorderBox = a.boxSizing === "border-box", e = 0; e <
|
|
6563
|
+
for (var t = r.isBorderBox = a.boxSizing === "border-box", e = 0; e < nr; e++) {
|
|
6592
6564
|
var i = wi[e], n = a[i], s = parseFloat(n);
|
|
6593
6565
|
r[i] = Number.isNaN(s) ? 0 : s;
|
|
6594
6566
|
}
|
|
@@ -6823,7 +6795,7 @@ var Kt = {
|
|
|
6823
6795
|
return parseInt(e, 10);
|
|
6824
6796
|
}
|
|
6825
6797
|
}]), r;
|
|
6826
|
-
}(
|
|
6798
|
+
}(Rn), Pa = /* @__PURE__ */ function(o) {
|
|
6827
6799
|
S(r, o);
|
|
6828
6800
|
var a = x(r);
|
|
6829
6801
|
function r(t) {
|
|
@@ -6857,7 +6829,7 @@ var Kt = {
|
|
|
6857
6829
|
key: "afterCreate",
|
|
6858
6830
|
value: function() {
|
|
6859
6831
|
var e = this;
|
|
6860
|
-
this.initIcons(), this.on(
|
|
6832
|
+
this.initIcons(), this.on(Qe, function() {
|
|
6861
6833
|
e.setAttr("data-state", "pause");
|
|
6862
6834
|
}), this.on(fe, function() {
|
|
6863
6835
|
e.setAttr("data-state", "play");
|
|
@@ -6940,7 +6912,7 @@ var Kt = {
|
|
|
6940
6912
|
return `
|
|
6941
6913
|
<xg-mini-layer class="xg-mini-layer">
|
|
6942
6914
|
<xg-mini-header class="xgplayer-mini-header">
|
|
6943
|
-
`.concat(
|
|
6915
|
+
`.concat(Me(this, "MINI_DRAG", this.playerConfig.isHideTips), `
|
|
6944
6916
|
</xg-mini-header>
|
|
6945
6917
|
<div class="mini-cancel-btn">
|
|
6946
6918
|
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
|
@@ -6973,7 +6945,7 @@ var Kt = {
|
|
|
6973
6945
|
};
|
|
6974
6946
|
}
|
|
6975
6947
|
}]), r;
|
|
6976
|
-
}(U),
|
|
6948
|
+
}(U), ht = {
|
|
6977
6949
|
mouseenter: "onMouseEnter",
|
|
6978
6950
|
mouseleave: "onMouseLeave",
|
|
6979
6951
|
mousemove: "onMouseMove"
|
|
@@ -6994,7 +6966,7 @@ var Kt = {
|
|
|
6994
6966
|
var l = v(t), u = l.playerConfig, c = l.player;
|
|
6995
6967
|
!u.closeFocusVideoFocus && c.media.focus(), u.closeDelayBlur ? c.focus({
|
|
6996
6968
|
autoHide: !1
|
|
6997
|
-
}) : c.focus(), t.emit(
|
|
6969
|
+
}) : c.focus(), t.emit(Vn);
|
|
6998
6970
|
}), _(v(t), "onMouseLeave", function(s) {
|
|
6999
6971
|
var l = t.playerConfig, u = l.closePlayerBlur, c = l.leavePlayerTime, f = l.closeDelayBlur;
|
|
7000
6972
|
!u && !f && (c ? t.player.focus({
|
|
@@ -7002,11 +6974,11 @@ var Kt = {
|
|
|
7002
6974
|
delay: c
|
|
7003
6975
|
}) : t.player.blur({
|
|
7004
6976
|
ignorePaused: !0
|
|
7005
|
-
})), t.emit(
|
|
6977
|
+
})), t.emit(Un);
|
|
7006
6978
|
}), _(v(t), "onVideoClick", function(s) {
|
|
7007
6979
|
var l = v(t), u = l.player, c = l.playerConfig;
|
|
7008
6980
|
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() {
|
|
7009
|
-
t._clickCount && (t._clickCount--,
|
|
6981
|
+
t._clickCount && (t._clickCount--, Ce(v(t), Yt[0], function(f, d) {
|
|
7010
6982
|
t.switchPlayPause(d.e);
|
|
7011
6983
|
}, {
|
|
7012
6984
|
e: s,
|
|
@@ -7020,7 +6992,7 @@ var Kt = {
|
|
|
7020
6992
|
t._clickCount = 0;
|
|
7021
6993
|
return;
|
|
7022
6994
|
}
|
|
7023
|
-
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(),
|
|
6995
|
+
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), Ce(v(t), Yt[1], function(f, d) {
|
|
7024
6996
|
t.emitUserAction(d.e, "switch_fullscreen", {
|
|
7025
6997
|
props: "fullscreen",
|
|
7026
6998
|
from: u.fullscreen,
|
|
@@ -7047,8 +7019,8 @@ var Kt = {
|
|
|
7047
7019
|
key: "initEvents",
|
|
7048
7020
|
value: function() {
|
|
7049
7021
|
var e = this, i = this.player, n = i.media, s = i.root, l = this.playerConfig.enableContextmenu;
|
|
7050
|
-
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(
|
|
7051
|
-
s.addEventListener(u, e[
|
|
7022
|
+
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(ht).map(function(u) {
|
|
7023
|
+
s.addEventListener(u, e[ht[u]], !1);
|
|
7052
7024
|
}), !l && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
|
|
7053
7025
|
}
|
|
7054
7026
|
}, {
|
|
@@ -7070,8 +7042,8 @@ var Kt = {
|
|
|
7070
7042
|
key: "destroy",
|
|
7071
7043
|
value: function() {
|
|
7072
7044
|
var e = this, i = this.player, n = i.video, s = i.root;
|
|
7073
|
-
this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(
|
|
7074
|
-
s.removeEventListener(l, e[
|
|
7045
|
+
this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(ht).map(function(l) {
|
|
7046
|
+
s.removeEventListener(l, e[ht[l]], !1);
|
|
7075
7047
|
});
|
|
7076
7048
|
}
|
|
7077
7049
|
}], [{
|
|
@@ -7085,7 +7057,7 @@ var Kt = {
|
|
|
7085
7057
|
return {};
|
|
7086
7058
|
}
|
|
7087
7059
|
}]), r;
|
|
7088
|
-
}(
|
|
7060
|
+
}(Oe), Le = {
|
|
7089
7061
|
PRESS: "press",
|
|
7090
7062
|
PRESS_END: "pressend",
|
|
7091
7063
|
DOUBlE_CLICK: "doubleclick",
|
|
@@ -7124,15 +7096,15 @@ var Ra = /* @__PURE__ */ function() {
|
|
|
7124
7096
|
};
|
|
7125
7097
|
T(this, o), _(this, "onTouchStart", function(e) {
|
|
7126
7098
|
var i = r._pos, n = r.root, s = gn(e.touches);
|
|
7127
|
-
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(
|
|
7099
|
+
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(Le.TOUCH_START, e);
|
|
7128
7100
|
}), _(this, "onTouchCancel", function(e) {
|
|
7129
7101
|
r.onTouchEnd(e);
|
|
7130
7102
|
}), _(this, "onTouchEnd", function(e) {
|
|
7131
7103
|
var i = r._pos, n = r.root;
|
|
7132
|
-
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(
|
|
7104
|
+
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(Le.PRESS_END, e), r.trigger(Le.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
|
|
7133
7105
|
}), _(this, "onTouchMove", function(e) {
|
|
7134
7106
|
var i = r._pos, n = r.config, s = gn(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;
|
|
7135
|
-
Math.abs(f) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(
|
|
7107
|
+
Math.abs(f) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(Le.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(Le.TOUCH_MOVE, e));
|
|
7136
7108
|
}), this._pos = {
|
|
7137
7109
|
moving: !1,
|
|
7138
7110
|
start: !1,
|
|
@@ -7152,7 +7124,7 @@ var Ra = /* @__PURE__ */ function() {
|
|
|
7152
7124
|
value: function(r) {
|
|
7153
7125
|
var t = this, e = this.config;
|
|
7154
7126
|
this.pressIntrvalId && this.__clearPress(), this.pressIntrvalId = setTimeout(function() {
|
|
7155
|
-
t.trigger(
|
|
7127
|
+
t.trigger(Le.PRESS, r), t._pos.press = !0, t.__clearPress();
|
|
7156
7128
|
}, e.pressDelay);
|
|
7157
7129
|
}
|
|
7158
7130
|
}, {
|
|
@@ -7165,11 +7137,11 @@ var Ra = /* @__PURE__ */ function() {
|
|
|
7165
7137
|
value: function(r) {
|
|
7166
7138
|
var t = this, e = this.config;
|
|
7167
7139
|
if (this.dbIntrvalId) {
|
|
7168
|
-
this.__clearDb(), this.trigger(
|
|
7140
|
+
this.__clearDb(), this.trigger(Le.DOUBlE_CLICK, r);
|
|
7169
7141
|
return;
|
|
7170
7142
|
}
|
|
7171
7143
|
this.dbIntrvalId = setTimeout(function() {
|
|
7172
|
-
t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(
|
|
7144
|
+
t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(Le.CLICK, r);
|
|
7173
7145
|
}, e.dbClickDelay);
|
|
7174
7146
|
}
|
|
7175
7147
|
}, {
|
|
@@ -7228,7 +7200,7 @@ function Oa() {
|
|
|
7228
7200
|
<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"/>
|
|
7229
7201
|
</svg>`, "image/svg+xml").firstChild;
|
|
7230
7202
|
}
|
|
7231
|
-
var
|
|
7203
|
+
var We = {
|
|
7232
7204
|
AUTO: "auto",
|
|
7233
7205
|
SEEKING: "seeking",
|
|
7234
7206
|
PLAYBACK: "playbackrate",
|
|
@@ -7267,7 +7239,7 @@ var Ge = {
|
|
|
7267
7239
|
}, 10), !!l.isStart) {
|
|
7268
7240
|
l.scope > -1 && i.cancelable && i.preventDefault();
|
|
7269
7241
|
var c = e.config, f = c.disableGesture, d = c.gestureX;
|
|
7270
|
-
!f && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), h.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(
|
|
7242
|
+
!f && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), h.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(We.AUTO);
|
|
7271
7243
|
}
|
|
7272
7244
|
}), _(v(e), "onRootTouchMove", function(i) {
|
|
7273
7245
|
e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
|
|
@@ -7327,10 +7299,10 @@ var Ge = {
|
|
|
7327
7299
|
d.preventDefault();
|
|
7328
7300
|
}), s.root.addEventListener("touchmove", this.onRootTouchMove, !0), s.root.addEventListener("touchend", this.onRootTouchEnd, !0), s.root.addEventListener("touchcancel", this.onRootTouchEnd, !0);
|
|
7329
7301
|
var u = this.player.controls;
|
|
7330
|
-
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(
|
|
7302
|
+
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(Se, function() {
|
|
7331
7303
|
var d = e.player, g = e.config;
|
|
7332
7304
|
d.duration > 0 && d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
|
|
7333
|
-
}), this.on([
|
|
7305
|
+
}), this.on([we, Ue], function() {
|
|
7334
7306
|
var d = e.pos, g = d.time, p = d.isStart;
|
|
7335
7307
|
!p && g > 0 && (e.pos.time = 0);
|
|
7336
7308
|
});
|
|
@@ -7353,7 +7325,7 @@ var Ge = {
|
|
|
7353
7325
|
e.activeSeekNote(d.currentTime, d.forward);
|
|
7354
7326
|
}), ["dragend", "click"].forEach(function(d) {
|
|
7355
7327
|
f.addCallBack(d, function() {
|
|
7356
|
-
e.changeAction(
|
|
7328
|
+
e.changeAction(We.AUTO);
|
|
7357
7329
|
});
|
|
7358
7330
|
}));
|
|
7359
7331
|
}
|
|
@@ -7459,7 +7431,7 @@ var Ge = {
|
|
|
7459
7431
|
}, 500);
|
|
7460
7432
|
break;
|
|
7461
7433
|
}
|
|
7462
|
-
this.changeAction(
|
|
7434
|
+
this.changeAction(We.AUTO);
|
|
7463
7435
|
}
|
|
7464
7436
|
}, {
|
|
7465
7437
|
key: "checkIsRootTarget",
|
|
@@ -7497,7 +7469,7 @@ var Ge = {
|
|
|
7497
7469
|
key: "onClick",
|
|
7498
7470
|
value: function(e) {
|
|
7499
7471
|
var i = this, n = this.player;
|
|
7500
|
-
|
|
7472
|
+
Ce(this, Xt[0], function(s, l) {
|
|
7501
7473
|
i.clickHandler(l.e);
|
|
7502
7474
|
}, {
|
|
7503
7475
|
e,
|
|
@@ -7508,7 +7480,7 @@ var Ge = {
|
|
|
7508
7480
|
key: "onDbClick",
|
|
7509
7481
|
value: function(e) {
|
|
7510
7482
|
var i = this, n = this.player;
|
|
7511
|
-
|
|
7483
|
+
Ce(this, Xt[1], function(s, l) {
|
|
7512
7484
|
i.dbClickHandler(l.e);
|
|
7513
7485
|
}, {
|
|
7514
7486
|
e,
|
|
@@ -7523,7 +7495,7 @@ var Ge = {
|
|
|
7523
7495
|
prop: "playbackRate",
|
|
7524
7496
|
from: s.playbackRate,
|
|
7525
7497
|
to: n.pressRate
|
|
7526
|
-
}), s.playbackRate = n.pressRate, this.changeAction(
|
|
7498
|
+
}), s.playbackRate = n.pressRate, this.changeAction(We.PLAYBACK));
|
|
7527
7499
|
}
|
|
7528
7500
|
}, {
|
|
7529
7501
|
key: "onPressEnd",
|
|
@@ -7533,7 +7505,7 @@ var Ge = {
|
|
|
7533
7505
|
prop: "playbackRate",
|
|
7534
7506
|
from: s.playbackRate,
|
|
7535
7507
|
to: i.rate
|
|
7536
|
-
}), s.playbackRate = i.rate, i.rate = 1, this.changeAction(
|
|
7508
|
+
}), s.playbackRate = i.rate, i.rate = 1, this.changeAction(We.AUTO));
|
|
7537
7509
|
}
|
|
7538
7510
|
}, {
|
|
7539
7511
|
key: "updateTime",
|
|
@@ -7568,7 +7540,7 @@ var Ge = {
|
|
|
7568
7540
|
value: function(e) {
|
|
7569
7541
|
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);
|
|
7570
7542
|
if (!(!e || typeof e != "number" || l || s.disableActive)) {
|
|
7571
|
-
e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(
|
|
7543
|
+
e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(We.SEEKING);
|
|
7572
7544
|
var u = n.plugins.start;
|
|
7573
7545
|
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);
|
|
7574
7546
|
}
|
|
@@ -7908,7 +7880,7 @@ var vn = /* @__PURE__ */ function(o) {
|
|
|
7908
7880
|
if (f === e) {
|
|
7909
7881
|
if (!d && !(n && p)) {
|
|
7910
7882
|
var m = n && g || c;
|
|
7911
|
-
typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(
|
|
7883
|
+
typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(Gn, X({
|
|
7912
7884
|
key: s[l],
|
|
7913
7885
|
target: i.target,
|
|
7914
7886
|
isPress: n
|
|
@@ -7955,7 +7927,7 @@ var vn = /* @__PURE__ */ function(o) {
|
|
|
7955
7927
|
};
|
|
7956
7928
|
}
|
|
7957
7929
|
}]), r;
|
|
7958
|
-
}(
|
|
7930
|
+
}(Oe);
|
|
7959
7931
|
function Fa() {
|
|
7960
7932
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
7961
7933
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
@@ -8376,19 +8348,19 @@ var Ba = /* @__PURE__ */ function(o) {
|
|
|
8376
8348
|
key: "listenEvents",
|
|
8377
8349
|
value: function() {
|
|
8378
8350
|
var e = this;
|
|
8379
|
-
this.on(
|
|
8351
|
+
this.on(Se, function() {
|
|
8380
8352
|
e.onMouseLeave();
|
|
8381
8353
|
}), this.on(ce, function() {
|
|
8382
8354
|
e.onTimeupdate();
|
|
8383
|
-
}), this.on(
|
|
8355
|
+
}), this.on(Te, function() {
|
|
8384
8356
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
8385
|
-
}), this.on(
|
|
8357
|
+
}), this.on(Fn, function() {
|
|
8386
8358
|
e.onCacheUpdate();
|
|
8387
|
-
}), this.on(
|
|
8359
|
+
}), this.on(Ue, function() {
|
|
8388
8360
|
e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
|
|
8389
|
-
}), this.on(
|
|
8361
|
+
}), this.on(Ve, function() {
|
|
8390
8362
|
e.onReset();
|
|
8391
|
-
}), this.on(
|
|
8363
|
+
}), this.on(Re, function() {
|
|
8392
8364
|
e.onVideoResize();
|
|
8393
8365
|
});
|
|
8394
8366
|
}
|
|
@@ -8628,7 +8600,7 @@ var Ba = /* @__PURE__ */ function(o) {
|
|
|
8628
8600
|
return mn;
|
|
8629
8601
|
}
|
|
8630
8602
|
}]), r;
|
|
8631
|
-
}(U),
|
|
8603
|
+
}(U), ze = /* @__PURE__ */ function(o) {
|
|
8632
8604
|
S(r, o);
|
|
8633
8605
|
var a = x(r);
|
|
8634
8606
|
function r() {
|
|
@@ -8686,7 +8658,7 @@ var Ba = /* @__PURE__ */ function(o) {
|
|
|
8686
8658
|
key: "listenEvents",
|
|
8687
8659
|
value: function() {
|
|
8688
8660
|
var e = this, i = this.player;
|
|
8689
|
-
this.on([fe,
|
|
8661
|
+
this.on([fe, Qe, lt, Ve], function() {
|
|
8690
8662
|
e.animate(i.paused);
|
|
8691
8663
|
});
|
|
8692
8664
|
}
|
|
@@ -8730,7 +8702,7 @@ var Ba = /* @__PURE__ */ function(o) {
|
|
|
8730
8702
|
return `<xg-icon class="xgplayer-play">
|
|
8731
8703
|
<div class="xgplayer-icon">
|
|
8732
8704
|
</div>
|
|
8733
|
-
`.concat(
|
|
8705
|
+
`.concat(Me(this, "PLAY_TIPS", this.playerConfig.isHideTips), `
|
|
8734
8706
|
</xg-icon>`);
|
|
8735
8707
|
}
|
|
8736
8708
|
}], [{
|
|
@@ -8748,7 +8720,7 @@ var Ba = /* @__PURE__ */ function(o) {
|
|
|
8748
8720
|
};
|
|
8749
8721
|
}
|
|
8750
8722
|
}]), r;
|
|
8751
|
-
}(
|
|
8723
|
+
}(ze);
|
|
8752
8724
|
function ja() {
|
|
8753
8725
|
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">
|
|
8754
8726
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
@@ -8860,7 +8832,7 @@ var Ya = /* @__PURE__ */ function(o) {
|
|
|
8860
8832
|
to: !c
|
|
8861
8833
|
});
|
|
8862
8834
|
}
|
|
8863
|
-
}), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(
|
|
8835
|
+
}), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(be, function(l) {
|
|
8864
8836
|
var u = e.find(".xg-tips");
|
|
8865
8837
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
8866
8838
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
@@ -8921,7 +8893,7 @@ var Ya = /* @__PURE__ */ function(o) {
|
|
|
8921
8893
|
return `<xg-icon class="xgplayer-fullscreen">
|
|
8922
8894
|
<div class="xgplayer-icon">
|
|
8923
8895
|
</div>
|
|
8924
|
-
`.concat(
|
|
8896
|
+
`.concat(Me(this, e, this.playerConfig.isHideTips), `
|
|
8925
8897
|
</xg-icon>`);
|
|
8926
8898
|
}
|
|
8927
8899
|
}
|
|
@@ -8965,7 +8937,7 @@ var Ya = /* @__PURE__ */ function(o) {
|
|
|
8965
8937
|
};
|
|
8966
8938
|
}
|
|
8967
8939
|
}]), r;
|
|
8968
|
-
}(
|
|
8940
|
+
}(ze), $a = /* @__PURE__ */ function(o) {
|
|
8969
8941
|
S(r, o);
|
|
8970
8942
|
var a = x(r);
|
|
8971
8943
|
function r(t) {
|
|
@@ -8999,11 +8971,11 @@ var Ya = /* @__PURE__ */ function(o) {
|
|
|
8999
8971
|
key: "listenEvents",
|
|
9000
8972
|
value: function() {
|
|
9001
8973
|
var e = this;
|
|
9002
|
-
this.on([
|
|
8974
|
+
this.on([Se, Te, ce], function(i) {
|
|
9003
8975
|
i.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
9004
|
-
}), this.on(
|
|
8976
|
+
}), this.on(Ue, function() {
|
|
9005
8977
|
e.onTimeUpdate(!0);
|
|
9006
|
-
}), this.on(
|
|
8978
|
+
}), this.on(Ve, function() {
|
|
9007
8979
|
e.onReset();
|
|
9008
8980
|
});
|
|
9009
8981
|
}
|
|
@@ -9087,7 +9059,7 @@ var Ya = /* @__PURE__ */ function(o) {
|
|
|
9087
9059
|
var e = this, i = this.player, n = function() {
|
|
9088
9060
|
e.isActiving = !1;
|
|
9089
9061
|
};
|
|
9090
|
-
this.off(
|
|
9062
|
+
this.off(Te, n), i.isSeeking && i.media.seeking ? this.once(Te, n) : this.isActiving = !1;
|
|
9091
9063
|
}
|
|
9092
9064
|
}, {
|
|
9093
9065
|
key: "destroy",
|
|
@@ -9177,7 +9149,7 @@ var Ya = /* @__PURE__ */ function(o) {
|
|
|
9177
9149
|
return E(r, [{
|
|
9178
9150
|
key: "afterCreate",
|
|
9179
9151
|
value: function() {
|
|
9180
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(
|
|
9152
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Se, this._onDurationChange), this.on(Ee, this._onLoadedData), this.on(ce, this._onTimeupdate), this.on(It, this._onSeeking), this.on(fe, this._onPlay);
|
|
9181
9153
|
}
|
|
9182
9154
|
}, {
|
|
9183
9155
|
key: "setConfig",
|
|
@@ -9258,7 +9230,7 @@ var Ya = /* @__PURE__ */ function(o) {
|
|
|
9258
9230
|
};
|
|
9259
9231
|
}
|
|
9260
9232
|
}]), r;
|
|
9261
|
-
}(
|
|
9233
|
+
}(Oe);
|
|
9262
9234
|
function qa() {
|
|
9263
9235
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9264
9236
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
@@ -9358,7 +9330,7 @@ var Qa = /* @__PURE__ */ function(o) {
|
|
|
9358
9330
|
pre: function(u) {
|
|
9359
9331
|
u.preventDefault(), u.stopPropagation();
|
|
9360
9332
|
}
|
|
9361
|
-
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), R.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(
|
|
9333
|
+
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), R.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(Mn, this.onVolumeChange), this.once(Ee, this.onVolumeChange), h.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
|
|
9362
9334
|
}
|
|
9363
9335
|
}
|
|
9364
9336
|
}, {
|
|
@@ -9501,7 +9473,7 @@ var to = /* @__PURE__ */ function(o) {
|
|
|
9501
9473
|
value: function() {
|
|
9502
9474
|
var e = this;
|
|
9503
9475
|
if (!this.config.disable) {
|
|
9504
|
-
A(I(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(
|
|
9476
|
+
A(I(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(Re, function() {
|
|
9505
9477
|
e.rotateDeg && e.config.innerRotate && h.setTimeout(e, function() {
|
|
9506
9478
|
e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
|
|
9507
9479
|
}, 100);
|
|
@@ -9546,7 +9518,7 @@ var to = /* @__PURE__ */ function(o) {
|
|
|
9546
9518
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, s = this.player;
|
|
9547
9519
|
this.rotateDeg || (this.rotateDeg = 0);
|
|
9548
9520
|
var l = e ? 1 : -1;
|
|
9549
|
-
this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(
|
|
9521
|
+
this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(jn, this.rotateDeg * 360);
|
|
9550
9522
|
}
|
|
9551
9523
|
}, {
|
|
9552
9524
|
key: "registerIcons",
|
|
@@ -9563,7 +9535,7 @@ var to = /* @__PURE__ */ function(o) {
|
|
|
9563
9535
|
<xg-icon class="xgplayer-rotate">
|
|
9564
9536
|
<div class="xgplayer-icon">
|
|
9565
9537
|
</div>
|
|
9566
|
-
`.concat(
|
|
9538
|
+
`.concat(Me(this, "ROTATE_TIPS", this.playerConfig.isHideTips), `
|
|
9567
9539
|
</xg-icon>`);
|
|
9568
9540
|
}
|
|
9569
9541
|
}], [{
|
|
@@ -9584,7 +9556,7 @@ var to = /* @__PURE__ */ function(o) {
|
|
|
9584
9556
|
};
|
|
9585
9557
|
}
|
|
9586
9558
|
}]), r;
|
|
9587
|
-
}(
|
|
9559
|
+
}(ze);
|
|
9588
9560
|
function io() {
|
|
9589
9561
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9590
9562
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
@@ -9602,7 +9574,7 @@ function no() {
|
|
|
9602
9574
|
fill="white" />
|
|
9603
9575
|
</svg>`, "image/svg+xml").firstChild;
|
|
9604
9576
|
}
|
|
9605
|
-
var
|
|
9577
|
+
var Ge = {
|
|
9606
9578
|
PIP: "picture-in-picture",
|
|
9607
9579
|
INLINE: "inline",
|
|
9608
9580
|
FULLSCREEN: "fullscreen"
|
|
@@ -9637,7 +9609,7 @@ var Ke = {
|
|
|
9637
9609
|
key: "afterCreate",
|
|
9638
9610
|
value: function() {
|
|
9639
9611
|
var e = this;
|
|
9640
|
-
this.isPIPAvailable() && (A(I(r.prototype), "afterCreate", this).call(this), this.pMode =
|
|
9612
|
+
this.isPIPAvailable() && (A(I(r.prototype), "afterCreate", this).call(this), this.pMode = Ge.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Pt, function() {
|
|
9641
9613
|
e.config.showIcon && (h.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
9642
9614
|
}));
|
|
9643
9615
|
}
|
|
@@ -9674,7 +9646,7 @@ var Ke = {
|
|
|
9674
9646
|
i.emit(ai, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
9675
9647
|
}, this.onWebkitpresentationmodechanged = function(n) {
|
|
9676
9648
|
var s = i.media.webkitPresentationMode;
|
|
9677
|
-
e.pMode ===
|
|
9649
|
+
e.pMode === Ge.FULLSCREEN && s !== Ge.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === Ge.PIP ? e.enterPIPCallback(n) : s === Ge.INLINE && e.leavePIPCallback(n);
|
|
9678
9650
|
}, i.media && (i.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), i.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), r.checkWebkitSetPresentationMode(i.media) && i.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
|
|
9679
9651
|
}
|
|
9680
9652
|
}, {
|
|
@@ -9751,7 +9723,7 @@ var Ke = {
|
|
|
9751
9723
|
key: "isPip",
|
|
9752
9724
|
get: function() {
|
|
9753
9725
|
var e, i = this.player;
|
|
9754
|
-
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode ===
|
|
9726
|
+
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === Ge.PIP;
|
|
9755
9727
|
}
|
|
9756
9728
|
}, {
|
|
9757
9729
|
key: "isPIPAvailable",
|
|
@@ -9778,7 +9750,7 @@ var Ke = {
|
|
|
9778
9750
|
return `<xg-icon class="xgplayer-pip">
|
|
9779
9751
|
<div class="xgplayer-icon xg-icon-disable">
|
|
9780
9752
|
</div>
|
|
9781
|
-
`.concat(
|
|
9753
|
+
`.concat(Me(this, "PIP", this.playerConfig.isHideTips), `
|
|
9782
9754
|
</xg-icon>`);
|
|
9783
9755
|
}
|
|
9784
9756
|
}], [{
|
|
@@ -9806,7 +9778,7 @@ var Ke = {
|
|
|
9806
9778
|
return typeof e.webkitSetPresentationMode == "function";
|
|
9807
9779
|
}
|
|
9808
9780
|
}]), r;
|
|
9809
|
-
}(
|
|
9781
|
+
}(ze);
|
|
9810
9782
|
function so() {
|
|
9811
9783
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
9812
9784
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
@@ -9861,7 +9833,7 @@ var ao = /* @__PURE__ */ function(o) {
|
|
|
9861
9833
|
<xg-icon class="xgplayer-playnext">
|
|
9862
9834
|
<div class="xgplayer-icon">
|
|
9863
9835
|
</div>
|
|
9864
|
-
`.concat(
|
|
9836
|
+
`.concat(Me(this, "PLAYNEXT_TIPS", this.playerConfig.isHideTips), `
|
|
9865
9837
|
</xg-icon>
|
|
9866
9838
|
`);
|
|
9867
9839
|
}
|
|
@@ -9881,7 +9853,7 @@ var ao = /* @__PURE__ */ function(o) {
|
|
|
9881
9853
|
};
|
|
9882
9854
|
}
|
|
9883
9855
|
}]), r;
|
|
9884
|
-
}(U),
|
|
9856
|
+
}(U), pt = { exports: {} }, oo = pt.exports, yn;
|
|
9885
9857
|
function lo() {
|
|
9886
9858
|
return yn || (yn = 1, function(o, a) {
|
|
9887
9859
|
(function(r, t) {
|
|
@@ -9914,9 +9886,9 @@ function lo() {
|
|
|
9914
9886
|
}
|
|
9915
9887
|
m = u instanceof g ? u : new g([u], { type: l });
|
|
9916
9888
|
function O(L) {
|
|
9917
|
-
var ee = L.split(/[:;,]/), q = ee[1], F = ee[2] == "base64" ? atob : decodeURIComponent, ie = F(ee.pop()), ae = ie.length, oe = 0,
|
|
9918
|
-
for (oe; oe < ae; ++oe)
|
|
9919
|
-
return new g([
|
|
9889
|
+
var ee = L.split(/[:;,]/), q = ee[1], F = ee[2] == "base64" ? atob : decodeURIComponent, ie = F(ee.pop()), ae = ie.length, oe = 0, ke = new Uint8Array(ae);
|
|
9890
|
+
for (oe; oe < ae; ++oe) ke[oe] = ie.charCodeAt(oe);
|
|
9891
|
+
return new g([ke], { type: q });
|
|
9920
9892
|
}
|
|
9921
9893
|
function z(L, ee) {
|
|
9922
9894
|
if ("download" in f)
|
|
@@ -9952,7 +9924,7 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
9952
9924
|
return !0;
|
|
9953
9925
|
};
|
|
9954
9926
|
});
|
|
9955
|
-
}(
|
|
9927
|
+
}(pt)), pt.exports;
|
|
9956
9928
|
}
|
|
9957
9929
|
var uo = lo();
|
|
9958
9930
|
const co = /* @__PURE__ */ ci(uo);
|
|
@@ -10027,7 +9999,7 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
10027
9999
|
return `<xg-icon class="xgplayer-download">
|
|
10028
10000
|
<div class="xgplayer-icon">
|
|
10029
10001
|
</div>
|
|
10030
|
-
`.concat(
|
|
10002
|
+
`.concat(Me(this, "DOWNLOAD_TIPS", this.playerConfig.isHideTips), `
|
|
10031
10003
|
</xg-icon>`);
|
|
10032
10004
|
}
|
|
10033
10005
|
}], [{
|
|
@@ -10045,7 +10017,7 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
10045
10017
|
};
|
|
10046
10018
|
}
|
|
10047
10019
|
}]), r;
|
|
10048
|
-
}(
|
|
10020
|
+
}(ze), go = /* @__PURE__ */ function(o) {
|
|
10049
10021
|
S(r, o);
|
|
10050
10022
|
var a = x(r);
|
|
10051
10023
|
function r() {
|
|
@@ -10063,7 +10035,7 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
10063
10035
|
var e = this.config;
|
|
10064
10036
|
this.initSize = function(i) {
|
|
10065
10037
|
e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
|
|
10066
|
-
}, this.once(
|
|
10038
|
+
}, this.once(Re, this.initSize);
|
|
10067
10039
|
}
|
|
10068
10040
|
}, {
|
|
10069
10041
|
key: "onPluginsReady",
|
|
@@ -10100,7 +10072,7 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
10100
10072
|
e.preventDefault(), e.stopPropagation(), this.emitUserAction(e, "shot");
|
|
10101
10073
|
var n = this.config;
|
|
10102
10074
|
this.shot(n.width, n.height).then(function(s) {
|
|
10103
|
-
i.emit(
|
|
10075
|
+
i.emit(Wn, s), n.saveImg && i.saveScreenShot(s, n.name + n.format);
|
|
10104
10076
|
});
|
|
10105
10077
|
}
|
|
10106
10078
|
}, {
|
|
@@ -10133,7 +10105,7 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
10133
10105
|
}, {
|
|
10134
10106
|
key: "destroy",
|
|
10135
10107
|
value: function() {
|
|
10136
|
-
A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(
|
|
10108
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(Re, this.initSize);
|
|
10137
10109
|
}
|
|
10138
10110
|
}, {
|
|
10139
10111
|
key: "render",
|
|
@@ -10171,7 +10143,7 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
10171
10143
|
};
|
|
10172
10144
|
}
|
|
10173
10145
|
}]), r;
|
|
10174
|
-
}(
|
|
10146
|
+
}(ze), po = /* @__PURE__ */ function() {
|
|
10175
10147
|
function o(a) {
|
|
10176
10148
|
T(this, o), this.config = a.config, this.parent = a.root, this.root = h.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), a.root.appendChild(this.root);
|
|
10177
10149
|
var r = this.config.maxHeight;
|
|
@@ -10247,14 +10219,14 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
10247
10219
|
SIDE: "side",
|
|
10248
10220
|
MIDDLE: "middle",
|
|
10249
10221
|
DEFAULT: "default"
|
|
10250
|
-
},
|
|
10222
|
+
}, Ke = {
|
|
10251
10223
|
CLICK: "click",
|
|
10252
10224
|
HOVER: "hover"
|
|
10253
10225
|
};
|
|
10254
10226
|
function vo(o, a) {
|
|
10255
10227
|
return o === me.SIDE ? a === G.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10256
10228
|
}
|
|
10257
|
-
var
|
|
10229
|
+
var Fe = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
|
|
10258
10230
|
S(r, o);
|
|
10259
10231
|
var a = x(r);
|
|
10260
10232
|
function r(t) {
|
|
@@ -10266,7 +10238,7 @@ var Be = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
|
|
|
10266
10238
|
}), _(v(e), "switchActiveState", function(i) {
|
|
10267
10239
|
i.stopPropagation();
|
|
10268
10240
|
var n = e.config.toggleMode;
|
|
10269
|
-
n ===
|
|
10241
|
+
n === Ke.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
|
|
10270
10242
|
}), _(v(e), "onLeave", function(i) {
|
|
10271
10243
|
i.stopPropagation(), e.emit("icon_mouseleave", {
|
|
10272
10244
|
pluginName: e.pluginName
|
|
@@ -10286,13 +10258,13 @@ var Be = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
|
|
|
10286
10258
|
key: "afterCreate",
|
|
10287
10259
|
value: function() {
|
|
10288
10260
|
var e = this, i = this.config;
|
|
10289
|
-
this.initIcons(),
|
|
10261
|
+
this.initIcons(), Fe = Fe || this.domEventType === "touch", Fe && R.device === "mobile" && i.listType === me.DEFAULT && (i.listType = me.SIDE), i.hidePortrait && h.addClass(this.root, "portrait"), this.on([Re, be], function() {
|
|
10290
10262
|
e._resizeList();
|
|
10291
|
-
}), this.once(
|
|
10263
|
+
}), this.once(we, function() {
|
|
10292
10264
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
10293
|
-
}),
|
|
10265
|
+
}), Fe && this.on(pi, function() {
|
|
10294
10266
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
10295
|
-
}),
|
|
10267
|
+
}), Fe ? (i.toggleMode = Ke.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === Ke.CLICK ? "click" : "mouseenter", i.toggleMode === Ke.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);
|
|
10296
10268
|
}
|
|
10297
10269
|
}, {
|
|
10298
10270
|
key: "initIcons",
|
|
@@ -10340,7 +10312,7 @@ var Be = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
|
|
|
10340
10312
|
var n = this.config, s = n.listType, l = n.list;
|
|
10341
10313
|
this.curIndex = i.to.index, this.curItem = l[this.curIndex], this.changeCurrentText();
|
|
10342
10314
|
var u = this.config.isItemClickHide;
|
|
10343
|
-
(u ||
|
|
10315
|
+
(u || Fe || s === me.SIDE) && this.toggle(!1);
|
|
10344
10316
|
}
|
|
10345
10317
|
}, {
|
|
10346
10318
|
key: "onIconClick",
|
|
@@ -10369,7 +10341,7 @@ var Be = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
|
|
|
10369
10341
|
onItemClick: function(m, y) {
|
|
10370
10342
|
n.onItemClick(m, y);
|
|
10371
10343
|
},
|
|
10372
|
-
domEventType:
|
|
10344
|
+
domEventType: Fe ? "touch" : "mouse"
|
|
10373
10345
|
},
|
|
10374
10346
|
root: s.listType === me.SIDE ? u.innerContainer || u.root : this.root
|
|
10375
10347
|
};
|
|
@@ -10393,7 +10365,7 @@ var Be = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
|
|
|
10393
10365
|
key: "destroy",
|
|
10394
10366
|
value: function() {
|
|
10395
10367
|
var e = this.config;
|
|
10396
|
-
e.toggleMode ===
|
|
10368
|
+
e.toggleMode === Ke.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);
|
|
10397
10369
|
}
|
|
10398
10370
|
}, {
|
|
10399
10371
|
key: "render",
|
|
@@ -10421,7 +10393,7 @@ var Be = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
|
|
|
10421
10393
|
hidePortrait: !0,
|
|
10422
10394
|
isShowIcon: !1,
|
|
10423
10395
|
isItemClickHide: !0,
|
|
10424
|
-
toggleMode:
|
|
10396
|
+
toggleMode: Ke.HOVER,
|
|
10425
10397
|
heightLimit: !0
|
|
10426
10398
|
};
|
|
10427
10399
|
}
|
|
@@ -10549,7 +10521,7 @@ var Be = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
|
|
|
10549
10521
|
key: "afterCreate",
|
|
10550
10522
|
value: function() {
|
|
10551
10523
|
var e = this;
|
|
10552
|
-
A(I(r.prototype), "afterCreate", this).call(this), this.on(
|
|
10524
|
+
A(I(r.prototype), "afterCreate", this).call(this), this.on(Nn, function() {
|
|
10553
10525
|
e.curValue !== e.player.playbackRate && e.renderItemList();
|
|
10554
10526
|
}), this.renderItemList();
|
|
10555
10527
|
}
|
|
@@ -10707,7 +10679,7 @@ var _n = /* @__PURE__ */ function(o) {
|
|
|
10707
10679
|
return `<xg-icon class='xgplayer-cssfullscreen'>
|
|
10708
10680
|
<div class="xgplayer-icon">
|
|
10709
10681
|
</div>
|
|
10710
|
-
`.concat(
|
|
10682
|
+
`.concat(Me(this, "CSSFULLSCREEN_TIPS", this.playerConfig.isHideTips), `
|
|
10711
10683
|
</xg-icon>`);
|
|
10712
10684
|
}
|
|
10713
10685
|
}], [{
|
|
@@ -10726,7 +10698,7 @@ var _n = /* @__PURE__ */ function(o) {
|
|
|
10726
10698
|
};
|
|
10727
10699
|
}
|
|
10728
10700
|
}]), r;
|
|
10729
|
-
}(
|
|
10701
|
+
}(ze), ko = /* @__PURE__ */ function(o) {
|
|
10730
10702
|
S(r, o);
|
|
10731
10703
|
var a = x(r);
|
|
10732
10704
|
function r() {
|
|
@@ -10740,7 +10712,7 @@ var _n = /* @__PURE__ */ function(o) {
|
|
|
10740
10712
|
pre: function(n) {
|
|
10741
10713
|
n.preventDefault(), n.stopPropagation();
|
|
10742
10714
|
}
|
|
10743
|
-
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(
|
|
10715
|
+
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(lt, function(i) {
|
|
10744
10716
|
e.onError(i);
|
|
10745
10717
|
});
|
|
10746
10718
|
}
|
|
@@ -10875,7 +10847,7 @@ var _n = /* @__PURE__ */ function(o) {
|
|
|
10875
10847
|
width: 6,
|
|
10876
10848
|
height: 6
|
|
10877
10849
|
};
|
|
10878
|
-
function
|
|
10850
|
+
function rr(o) {
|
|
10879
10851
|
Object.keys(Cn).map(function(a) {
|
|
10880
10852
|
o[a] === void 0 && (o[a] = Cn[a]);
|
|
10881
10853
|
});
|
|
@@ -10897,7 +10869,7 @@ var kn = {
|
|
|
10897
10869
|
},
|
|
10898
10870
|
createDot: function(a) {
|
|
10899
10871
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, t = this.player.plugins.progress;
|
|
10900
|
-
if (t && (r && (
|
|
10872
|
+
if (t && (r && (rr(a), this._ispots.push(a)), !(!this.ispotsInit && r))) {
|
|
10901
10873
|
var e = this.calcuPosition(a.time, a.duration), i = a.style || {};
|
|
10902
10874
|
i.left = "".concat(e.left, "%"), i.width = "".concat(e.width, "%");
|
|
10903
10875
|
var n = "xgspot_".concat(a.id, " xgplayer-spot");
|
|
@@ -11024,17 +10996,17 @@ function wo(o) {
|
|
|
11024
10996
|
});
|
|
11025
10997
|
var t = r.config.progressDot || a.ispots || [];
|
|
11026
10998
|
o._ispots = t.map(function(e) {
|
|
11027
|
-
return
|
|
10999
|
+
return rr(e), e;
|
|
11028
11000
|
}), o.ispotsInit = !1, o.playerSize = {
|
|
11029
11001
|
left: r.sizeInfo.left,
|
|
11030
11002
|
width: r.sizeInfo.width
|
|
11031
|
-
}, o.on(
|
|
11003
|
+
}, o.on(Se, function() {
|
|
11032
11004
|
o.ispotsInit ? o.updateDuration() : o.initDots();
|
|
11033
|
-
}), o.on(
|
|
11005
|
+
}), o.on(Re, function() {
|
|
11034
11006
|
o.positionDots();
|
|
11035
11007
|
});
|
|
11036
11008
|
}
|
|
11037
|
-
var
|
|
11009
|
+
var Ye = {
|
|
11038
11010
|
dragmove: "onProgressMove",
|
|
11039
11011
|
dragstart: "onProgressDragStart",
|
|
11040
11012
|
dragend: "onProgressDragEnd",
|
|
@@ -11092,7 +11064,7 @@ var $e = {
|
|
|
11092
11064
|
n.seekTime && e.player.seek(n.seekTime);
|
|
11093
11065
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
11094
11066
|
e.setTimeContent(h.format(i));
|
|
11095
|
-
}), wo(this), this.on(
|
|
11067
|
+
}), wo(this), this.on(Se, function() {
|
|
11096
11068
|
e.show();
|
|
11097
11069
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
11098
11070
|
}
|
|
@@ -11114,8 +11086,8 @@ var $e = {
|
|
|
11114
11086
|
key: "bindEvents",
|
|
11115
11087
|
value: function() {
|
|
11116
11088
|
var e = this, i = this.player.plugins.progress;
|
|
11117
|
-
if (i && (Object.keys(
|
|
11118
|
-
e[
|
|
11089
|
+
if (i && (Object.keys(Ye).map(function(s) {
|
|
11090
|
+
e[Ye[s]] = e[Ye[s]].bind(e), i.addCallBack(s, e[Ye[s]]);
|
|
11119
11091
|
}), R.device !== "mobile")) {
|
|
11120
11092
|
this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
|
|
11121
11093
|
var n = this.hook("previewClick", function() {
|
|
@@ -11273,8 +11245,8 @@ var $e = {
|
|
|
11273
11245
|
key: "destroy",
|
|
11274
11246
|
value: function() {
|
|
11275
11247
|
var e = this, i = this.player.plugins.progress;
|
|
11276
|
-
i && Object.keys(
|
|
11277
|
-
i.removeCallBack(n, e[
|
|
11248
|
+
i && Object.keys(Ye).map(function(n) {
|
|
11249
|
+
i.removeCallBack(n, e[Ye[n]]);
|
|
11278
11250
|
}), 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);
|
|
11279
11251
|
}
|
|
11280
11252
|
}, {
|
|
@@ -11327,7 +11299,7 @@ var $e = {
|
|
|
11327
11299
|
key: "afterCreate",
|
|
11328
11300
|
value: function() {
|
|
11329
11301
|
var e = this;
|
|
11330
|
-
this.usable && this.initThumbnail(), this.on([
|
|
11302
|
+
this.usable && this.initThumbnail(), this.on([Se], function() {
|
|
11331
11303
|
var i = e.config, n = i.pic_num, s = i.interval;
|
|
11332
11304
|
e.usable && (e.interval = s > 0 ? s : Math.round(e.player.duration * 1e3 / n) / 1e3);
|
|
11333
11305
|
});
|
|
@@ -11483,7 +11455,7 @@ var So = /* @__PURE__ */ function(o) {
|
|
|
11483
11455
|
key: "afterCreate",
|
|
11484
11456
|
value: function() {
|
|
11485
11457
|
var e = this;
|
|
11486
|
-
this.root && (this.on(ce, this.onTimeupdate), this.on(
|
|
11458
|
+
this.root && (this.on(ce, this.onTimeupdate), this.on(Ve, function() {
|
|
11487
11459
|
e.reset();
|
|
11488
11460
|
}));
|
|
11489
11461
|
}
|
|
@@ -11535,7 +11507,7 @@ var So = /* @__PURE__ */ function(o) {
|
|
|
11535
11507
|
};
|
|
11536
11508
|
}
|
|
11537
11509
|
}]), r;
|
|
11538
|
-
}(U),
|
|
11510
|
+
}(U), $e = {
|
|
11539
11511
|
REAL_TIME: "realtime",
|
|
11540
11512
|
FIRST_FRAME: "firstframe",
|
|
11541
11513
|
FRAME_RATE: "framerate",
|
|
@@ -11556,7 +11528,7 @@ function Io() {
|
|
|
11556
11528
|
return !1;
|
|
11557
11529
|
}
|
|
11558
11530
|
}
|
|
11559
|
-
var
|
|
11531
|
+
var dt = null, Po = /* @__PURE__ */ function(o) {
|
|
11560
11532
|
S(r, o);
|
|
11561
11533
|
var a = x(r);
|
|
11562
11534
|
function r() {
|
|
@@ -11578,7 +11550,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11578
11550
|
}
|
|
11579
11551
|
}), _(v(t), "start", function(s, l) {
|
|
11580
11552
|
var u = t.player.video, c = xo(), f = t.checkVideoIsSupport(u);
|
|
11581
|
-
!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 ===
|
|
11553
|
+
!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 === $e.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));
|
|
11582
11554
|
}), _(v(t), "stop", function() {
|
|
11583
11555
|
t.frameId && (t._loopType === "timer" ? h.clearTimeout(v(t), t.frameId) : h.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
11584
11556
|
}), t;
|
|
@@ -11597,16 +11569,16 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11597
11569
|
x: 0,
|
|
11598
11570
|
y: 0,
|
|
11599
11571
|
pi: 0
|
|
11600
|
-
}, 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 !==
|
|
11572
|
+
}, 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 !== $e.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(Pt, function() {
|
|
11601
11573
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
11602
|
-
}), s !==
|
|
11574
|
+
}), s !== $e.POSTER && (s !== $e.FIRST_FRAME && (this.on(Ve, function() {
|
|
11603
11575
|
e.stop();
|
|
11604
11576
|
}), this.on(fe, function() {
|
|
11605
11577
|
var u = e.config.startInterval;
|
|
11606
11578
|
e._checkIfCanStart() && e.start(0, u);
|
|
11607
|
-
}), this.on(
|
|
11579
|
+
}), this.on(Qe, function() {
|
|
11608
11580
|
e.stop();
|
|
11609
|
-
})), this.on(
|
|
11581
|
+
})), this.on(Ee, this.onLoadedData), this.on(gi, function() {
|
|
11610
11582
|
e._isLoaded = !1, e.stop();
|
|
11611
11583
|
}), document.addEventListener("visibilitychange", this.onVisibilitychange)));
|
|
11612
11584
|
}
|
|
@@ -11628,7 +11600,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11628
11600
|
s || (s = n.isInnerRender && i.innerContainer || i.root), s.insertAdjacentHTML("afterbegin", '<div class="xgplayer-dynamic-bg" data-index="'.concat(n.index, `"><canvas>
|
|
11629
11601
|
</canvas><xgmask></xgmask></div>`)), this.root = s.children[0], this.canvas = this.find("canvas"), this.canvasFilter || (this.canvas.style.filter = n.filter, this.canvas.style.webkitFilter = n.filter), this.mask = this.find("xgmask"), n.addMask && (this.mask.style.background = n.maskBg), this.canvasCtx = this.canvas.getContext("2d");
|
|
11630
11602
|
} catch (l) {
|
|
11631
|
-
|
|
11603
|
+
N.logError("plugin:DynamicBg", l);
|
|
11632
11604
|
}
|
|
11633
11605
|
}
|
|
11634
11606
|
}, {
|
|
@@ -11671,7 +11643,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11671
11643
|
key: "_checkIfCanStart",
|
|
11672
11644
|
value: function() {
|
|
11673
11645
|
var e = this.config.mode;
|
|
11674
|
-
return this._isLoaded && !this.player.paused && e !==
|
|
11646
|
+
return this._isLoaded && !this.player.paused && e !== $e.FIRST_FRAME && e !== $e.POSTER;
|
|
11675
11647
|
}
|
|
11676
11648
|
}, {
|
|
11677
11649
|
key: "renderOnce",
|
|
@@ -11712,7 +11684,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11712
11684
|
}
|
|
11713
11685
|
this.canvasFilter && (this.canvasCtx.filter = s.filter), this.canvasCtx.drawImage(e, n.x, n.y, n.rwidth, n.rheight);
|
|
11714
11686
|
} catch (p) {
|
|
11715
|
-
|
|
11687
|
+
N.logError("plugin:DynamicBg", p);
|
|
11716
11688
|
}
|
|
11717
11689
|
}
|
|
11718
11690
|
}, {
|
|
@@ -11750,7 +11722,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11750
11722
|
}, {
|
|
11751
11723
|
key: "isSupport",
|
|
11752
11724
|
get: function() {
|
|
11753
|
-
return typeof
|
|
11725
|
+
return typeof dt == "boolean" || (dt = Io()), dt;
|
|
11754
11726
|
}
|
|
11755
11727
|
}, {
|
|
11756
11728
|
key: "supportCanvasFilter",
|
|
@@ -11833,7 +11805,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11833
11805
|
FORWARD: "快进中",
|
|
11834
11806
|
LIVE_TIP: "直播"
|
|
11835
11807
|
}
|
|
11836
|
-
},
|
|
11808
|
+
}, it = "info", Zt = qn, Lo = /* @__PURE__ */ function(o) {
|
|
11837
11809
|
S(r, o);
|
|
11838
11810
|
var a = x(r);
|
|
11839
11811
|
function r() {
|
|
@@ -11845,7 +11817,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11845
11817
|
var l = t._getTime(), u = Object.assign({}, s, {
|
|
11846
11818
|
msg: s.msg || s.action
|
|
11847
11819
|
});
|
|
11848
|
-
t._stats[
|
|
11820
|
+
t._stats[it].push(X(X({
|
|
11849
11821
|
type: "userAction"
|
|
11850
11822
|
}, l), {}, {
|
|
11851
11823
|
payload: u
|
|
@@ -11893,7 +11865,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11893
11865
|
key: "_info",
|
|
11894
11866
|
value: function(e) {
|
|
11895
11867
|
var i = this._getTime();
|
|
11896
|
-
this._stats[
|
|
11868
|
+
this._stats[it].push(X(X({}, i), {}, {
|
|
11897
11869
|
payload: e
|
|
11898
11870
|
}));
|
|
11899
11871
|
}
|
|
@@ -11919,7 +11891,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11919
11891
|
key: "reset",
|
|
11920
11892
|
value: function() {
|
|
11921
11893
|
var e;
|
|
11922
|
-
this._stats = (e = {}, _(e,
|
|
11894
|
+
this._stats = (e = {}, _(e, it, []), _(e, "media", {}), e);
|
|
11923
11895
|
}
|
|
11924
11896
|
}, {
|
|
11925
11897
|
key: "getStats",
|
|
@@ -11945,7 +11917,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11945
11917
|
}, {
|
|
11946
11918
|
key: "_getTimeStats",
|
|
11947
11919
|
value: function() {
|
|
11948
|
-
var e = this._stats[
|
|
11920
|
+
var e = this._stats[it], i = e.map(function(n) {
|
|
11949
11921
|
var s = n.payload.data, l = "";
|
|
11950
11922
|
try {
|
|
11951
11923
|
s instanceof Error ? l = s.msg : s !== void 0 && (l = JSON.stringify(s));
|
|
@@ -11961,7 +11933,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11961
11933
|
value: function() {
|
|
11962
11934
|
var e = {
|
|
11963
11935
|
traceEvents: []
|
|
11964
|
-
}, i = this._stats[
|
|
11936
|
+
}, i = this._stats[it];
|
|
11965
11937
|
return i.forEach(function(n) {
|
|
11966
11938
|
n.payload.profile && e.traceEvents.push(n.payload);
|
|
11967
11939
|
}), e;
|
|
@@ -11977,7 +11949,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11977
11949
|
return {};
|
|
11978
11950
|
}
|
|
11979
11951
|
}]), r;
|
|
11980
|
-
}(
|
|
11952
|
+
}(Oe), sr = /* @__PURE__ */ function(o) {
|
|
11981
11953
|
S(r, o);
|
|
11982
11954
|
var a = x(r);
|
|
11983
11955
|
function r() {
|
|
@@ -12018,7 +11990,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
|
|
|
12018
11990
|
key: "afterCreate",
|
|
12019
11991
|
value: function() {
|
|
12020
11992
|
var e = this, i = this.config.useGapJump;
|
|
12021
|
-
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(
|
|
11993
|
+
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(ut, this.onGapJump), this.on(fe, function() {
|
|
12022
11994
|
e.hasPlayed = !0;
|
|
12023
11995
|
}), this.on(It, function() {
|
|
12024
11996
|
e.seekingEventReceived = !0;
|
|
@@ -12066,7 +12038,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
|
|
|
12066
12038
|
}
|
|
12067
12039
|
}]), r;
|
|
12068
12040
|
}(U);
|
|
12069
|
-
|
|
12041
|
+
sr.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
12070
12042
|
var Do = /* @__PURE__ */ function(o) {
|
|
12071
12043
|
S(r, o);
|
|
12072
12044
|
var a = x(r);
|
|
@@ -12091,7 +12063,7 @@ var Do = /* @__PURE__ */ function(o) {
|
|
|
12091
12063
|
key: "afterCreate",
|
|
12092
12064
|
value: function() {
|
|
12093
12065
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
12094
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(
|
|
12066
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(ut, this.onWaiting), this.on([di, we], function() {
|
|
12095
12067
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
12096
12068
|
}), this.on(fe, function() {
|
|
12097
12069
|
e.hasPlayed = !0;
|
|
@@ -12113,7 +12085,7 @@ var Do = /* @__PURE__ */ function(o) {
|
|
|
12113
12085
|
};
|
|
12114
12086
|
}
|
|
12115
12087
|
}]), r;
|
|
12116
|
-
}(U),
|
|
12088
|
+
}(U), Xe = "cdn", gt = ["cdn"], Ro = /* @__PURE__ */ function(o) {
|
|
12117
12089
|
S(r, o);
|
|
12118
12090
|
var a = x(r);
|
|
12119
12091
|
function r() {
|
|
@@ -12122,7 +12094,7 @@ var Do = /* @__PURE__ */ function(o) {
|
|
|
12122
12094
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12123
12095
|
i[n] = arguments[n];
|
|
12124
12096
|
return t = a.call.apply(a, [this].concat(i)), _(v(t), "getSpeed", function() {
|
|
12125
|
-
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
12097
|
+
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xe;
|
|
12126
12098
|
if (!t.speedListCache || !t.speedListCache[s] || t.speedListCache[s].length <= 0)
|
|
12127
12099
|
return 0;
|
|
12128
12100
|
var l = 0;
|
|
@@ -12132,11 +12104,11 @@ var Do = /* @__PURE__ */ function(o) {
|
|
|
12132
12104
|
}), _(v(t), "startTimer", function() {
|
|
12133
12105
|
h.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
|
|
12134
12106
|
}), _(v(t), "initSpeedList", function() {
|
|
12135
|
-
t.speedListCache = {},
|
|
12107
|
+
t.speedListCache = {}, gt.forEach(function(s) {
|
|
12136
12108
|
t.speedListCache[s] = [];
|
|
12137
12109
|
});
|
|
12138
12110
|
}), _(v(t), "_onRealSpeedChange", function(s) {
|
|
12139
|
-
s.speed && t.appendList(s.speed, s.type ||
|
|
12111
|
+
s.speed && t.appendList(s.speed, s.type || Xe);
|
|
12140
12112
|
}), _(v(t), "testSpeed", function() {
|
|
12141
12113
|
if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
|
|
12142
12114
|
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();
|
|
@@ -12161,17 +12133,17 @@ var Do = /* @__PURE__ */ function(o) {
|
|
|
12161
12133
|
}
|
|
12162
12134
|
}
|
|
12163
12135
|
}), _(v(t), "appendList", function(s) {
|
|
12164
|
-
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
12136
|
+
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Xe;
|
|
12165
12137
|
if (!(!t.speedListCache || !t.speedListCache[l])) {
|
|
12166
12138
|
var u = t.config.saveSpeedMax;
|
|
12167
12139
|
t.speedListCache[l].length >= u && t.speedListCache[l].shift(), t.speedListCache[l].push(s);
|
|
12168
12140
|
var c = v(t), f = c.player;
|
|
12169
|
-
f && (l ===
|
|
12141
|
+
f && (l === Xe ? f.realTimeSpeed = s : f[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
|
|
12170
12142
|
}
|
|
12171
12143
|
}), _(v(t), "updateSpeed", function() {
|
|
12172
|
-
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
12144
|
+
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xe, l = t.getSpeed(s), u = v(t), c = u.player;
|
|
12173
12145
|
if (c)
|
|
12174
|
-
if (s ===
|
|
12146
|
+
if (s === Xe)
|
|
12175
12147
|
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(ri, {
|
|
12176
12148
|
speed: l,
|
|
12177
12149
|
realTimeSpeed: c.realTimeSpeed
|
|
@@ -12189,7 +12161,7 @@ var Do = /* @__PURE__ */ function(o) {
|
|
|
12189
12161
|
key: "afterCreate",
|
|
12190
12162
|
value: function() {
|
|
12191
12163
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
12192
|
-
(n == null ? void 0 : n.length) > 0 &&
|
|
12164
|
+
(n == null ? void 0 : n.length) > 0 && gt.push.apply(gt, de(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Ee, _t], this.startTimer);
|
|
12193
12165
|
}
|
|
12194
12166
|
}, {
|
|
12195
12167
|
key: "getSpeedName",
|
|
@@ -12216,7 +12188,7 @@ var Do = /* @__PURE__ */ function(o) {
|
|
|
12216
12188
|
key: "destroy",
|
|
12217
12189
|
value: function() {
|
|
12218
12190
|
var e = this;
|
|
12219
|
-
this.off("real_time_speed", this._onRealSpeedChange), this.off([
|
|
12191
|
+
this.off("real_time_speed", this._onRealSpeedChange), this.off([Ee, _t], this.startTimer), gt.forEach(function(i) {
|
|
12220
12192
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
12221
12193
|
}), 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);
|
|
12222
12194
|
}
|
|
@@ -12253,11 +12225,11 @@ var Do = /* @__PURE__ */ function(o) {
|
|
|
12253
12225
|
var l = s.getVideoPlaybackQuality;
|
|
12254
12226
|
l && (this.on(fe, function() {
|
|
12255
12227
|
e._startTick();
|
|
12256
|
-
}), this.on(
|
|
12228
|
+
}), this.on(Qe, function() {
|
|
12257
12229
|
e._stopTick();
|
|
12258
|
-
}), this.on(
|
|
12230
|
+
}), this.on(Ue, function() {
|
|
12259
12231
|
e._stopTick();
|
|
12260
|
-
}), this.on(
|
|
12232
|
+
}), this.on(Ve, function() {
|
|
12261
12233
|
e._stopTick();
|
|
12262
12234
|
}));
|
|
12263
12235
|
}
|
|
@@ -12306,7 +12278,7 @@ var Do = /* @__PURE__ */ function(o) {
|
|
|
12306
12278
|
totalVideoFrames: i,
|
|
12307
12279
|
droppedVideoFrames: n,
|
|
12308
12280
|
checkInterval: s
|
|
12309
|
-
}), this._currentStuckCount >= this.config.stuckCount && (this.emit(
|
|
12281
|
+
}), this._currentStuckCount >= this.config.stuckCount && (this.emit(Zn, this._payload), this._reset())) : this._reset());
|
|
12310
12282
|
}
|
|
12311
12283
|
}
|
|
12312
12284
|
}, {
|
|
@@ -12349,12 +12321,12 @@ var Do = /* @__PURE__ */ function(o) {
|
|
|
12349
12321
|
}
|
|
12350
12322
|
}]), r;
|
|
12351
12323
|
}(U);
|
|
12352
|
-
|
|
12324
|
+
Ze.use(Ao);
|
|
12353
12325
|
var Mo = /* @__PURE__ */ E(function o(a, r) {
|
|
12354
12326
|
var t, e, i;
|
|
12355
12327
|
T(this, o);
|
|
12356
12328
|
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Xa, Va, So, To, $a], u = [].concat(l, [za, Ya, to, ao, mo, yo, ho, go, Qa, ro]), c = [ka, ba, Ta, Ba, Ea, ko, bo, Eo, Pa];
|
|
12357
|
-
this.plugins = [Lo, _a].concat(de(u), c, [
|
|
12329
|
+
this.plugins = [Lo, _a].concat(de(u), c, [sr, Do]);
|
|
12358
12330
|
var f = n ? "mobile" : R.device;
|
|
12359
12331
|
switch (f) {
|
|
12360
12332
|
case "pc":
|
|
@@ -12381,10 +12353,10 @@ _(ge, "Sniffer", R);
|
|
|
12381
12353
|
_(ge, "Errors", yt);
|
|
12382
12354
|
_(ge, "Events", Zs);
|
|
12383
12355
|
_(ge, "Plugin", U);
|
|
12384
|
-
_(ge, "BasePlugin",
|
|
12385
|
-
_(ge, "I18N",
|
|
12356
|
+
_(ge, "BasePlugin", Oe);
|
|
12357
|
+
_(ge, "I18N", Ze);
|
|
12386
12358
|
_(ge, "STATE_CLASS", C);
|
|
12387
|
-
_(ge, "InstManager",
|
|
12359
|
+
_(ge, "InstManager", ir);
|
|
12388
12360
|
const No = ["id"], Fo = /* @__PURE__ */ Q({
|
|
12389
12361
|
name: "ElImageViewer",
|
|
12390
12362
|
__name: "Player",
|
|
@@ -12435,11 +12407,11 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
|
|
|
12435
12407
|
}, s = J(() => ({
|
|
12436
12408
|
...n,
|
|
12437
12409
|
...t.config
|
|
12438
|
-
})), l = a, u = oi(o, "modelValue"), c =
|
|
12410
|
+
})), l = a, u = oi(o, "modelValue"), c = En(), f = Sn("image-viewer");
|
|
12439
12411
|
function d() {
|
|
12440
12412
|
l("close"), u.value = !1, r.destroy();
|
|
12441
12413
|
}
|
|
12442
|
-
return
|
|
12414
|
+
return at(() => u.value, (g) => {
|
|
12443
12415
|
g && li(() => {
|
|
12444
12416
|
r = new ge({
|
|
12445
12417
|
id: c,
|
|
@@ -12448,53 +12420,53 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
|
|
|
12448
12420
|
});
|
|
12449
12421
|
});
|
|
12450
12422
|
}), (g, p) => {
|
|
12451
|
-
const m =
|
|
12452
|
-
return u.value ? (
|
|
12423
|
+
const m = vt("el-icon");
|
|
12424
|
+
return u.value ? (M(), De(wn, {
|
|
12453
12425
|
key: 0,
|
|
12454
12426
|
to: "body"
|
|
12455
12427
|
}, [
|
|
12456
|
-
K(
|
|
12428
|
+
K(Tn, {
|
|
12457
12429
|
name: "viewer-fade",
|
|
12458
12430
|
appear: ""
|
|
12459
12431
|
}, {
|
|
12460
12432
|
default: Z(() => [
|
|
12461
|
-
|
|
12433
|
+
W(
|
|
12462
12434
|
"div",
|
|
12463
12435
|
{
|
|
12464
12436
|
ref: "wrapper",
|
|
12465
12437
|
tabindex: -1,
|
|
12466
|
-
class:
|
|
12467
|
-
style:
|
|
12438
|
+
class: $(P(f).e("wrapper")),
|
|
12439
|
+
style: rt({ zIndex: o.zIndex })
|
|
12468
12440
|
},
|
|
12469
12441
|
[
|
|
12470
|
-
|
|
12442
|
+
W(
|
|
12471
12443
|
"div",
|
|
12472
12444
|
{
|
|
12473
|
-
class:
|
|
12445
|
+
class: $(P(f).e("mask"))
|
|
12474
12446
|
},
|
|
12475
12447
|
null,
|
|
12476
12448
|
2
|
|
12477
12449
|
/* CLASS */
|
|
12478
12450
|
),
|
|
12479
12451
|
ue(" CANVAS "),
|
|
12480
|
-
|
|
12452
|
+
W(
|
|
12481
12453
|
"div",
|
|
12482
12454
|
{
|
|
12483
|
-
class:
|
|
12455
|
+
class: $(P(f).e("canvas"))
|
|
12484
12456
|
},
|
|
12485
12457
|
[
|
|
12486
|
-
|
|
12458
|
+
W("div", { id: P(c) }, null, 8, No),
|
|
12487
12459
|
ue(" CLOSE "),
|
|
12488
|
-
|
|
12460
|
+
W(
|
|
12489
12461
|
"span",
|
|
12490
12462
|
{
|
|
12491
|
-
class:
|
|
12463
|
+
class: $([P(f).e("btn"), P(f).e("close")]),
|
|
12492
12464
|
onClick: d
|
|
12493
12465
|
},
|
|
12494
12466
|
[
|
|
12495
12467
|
K(m, { onClick: d }, {
|
|
12496
12468
|
default: Z(() => [
|
|
12497
|
-
K(P(
|
|
12469
|
+
K(P(xn))
|
|
12498
12470
|
]),
|
|
12499
12471
|
_: 1
|
|
12500
12472
|
/* STABLE */
|
|
@@ -12507,7 +12479,7 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
|
|
|
12507
12479
|
2
|
|
12508
12480
|
/* CLASS */
|
|
12509
12481
|
),
|
|
12510
|
-
|
|
12482
|
+
qe(g.$slots, "default", {}, void 0, !0)
|
|
12511
12483
|
],
|
|
12512
12484
|
6
|
|
12513
12485
|
/* CLASS, STYLE */
|
|
@@ -12519,7 +12491,7 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
|
|
|
12519
12491
|
])) : ue("v-if", !0);
|
|
12520
12492
|
};
|
|
12521
12493
|
}
|
|
12522
|
-
}), Bo = /* @__PURE__ */ ui(Fo, [["__scopeId", "data-v-b301aa7d"]]), Ho =
|
|
12494
|
+
}), Bo = /* @__PURE__ */ ui(Fo, [["__scopeId", "data-v-b301aa7d"]]), Ho = Je(Bo), Uo = /* @__PURE__ */ Q({
|
|
12523
12495
|
__name: "IkPreviewFileDialog",
|
|
12524
12496
|
props: /* @__PURE__ */ mt({
|
|
12525
12497
|
file: {
|
|
@@ -12562,7 +12534,7 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
|
|
|
12562
12534
|
suffix: "suffix",
|
|
12563
12535
|
size: "fileSize",
|
|
12564
12536
|
...a.field
|
|
12565
|
-
})), e =
|
|
12537
|
+
})), e = _e(null), i = _e(null), n = yr({
|
|
12566
12538
|
image: !1,
|
|
12567
12539
|
office: !1,
|
|
12568
12540
|
video: !1
|
|
@@ -12593,7 +12565,7 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
|
|
|
12593
12565
|
}
|
|
12594
12566
|
},
|
|
12595
12567
|
document: {
|
|
12596
|
-
key:
|
|
12568
|
+
key: En(),
|
|
12597
12569
|
title: B,
|
|
12598
12570
|
url: ei(a.loadUrl, w),
|
|
12599
12571
|
fileType: b,
|
|
@@ -12608,7 +12580,7 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
|
|
|
12608
12580
|
console.info("预览错误: ", k);
|
|
12609
12581
|
}
|
|
12610
12582
|
};
|
|
12611
|
-
|
|
12583
|
+
at([r, a.file], ([u, c]) => {
|
|
12612
12584
|
u && li(() => {
|
|
12613
12585
|
s(a.file);
|
|
12614
12586
|
});
|
|
@@ -12618,11 +12590,11 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
|
|
|
12618
12590
|
};
|
|
12619
12591
|
return (u, c) => {
|
|
12620
12592
|
var f, d, g;
|
|
12621
|
-
return r.value ? (
|
|
12622
|
-
|
|
12593
|
+
return r.value ? (M(), j(
|
|
12594
|
+
st,
|
|
12623
12595
|
{ key: 0 },
|
|
12624
12596
|
[
|
|
12625
|
-
(f = i.value) != null && f.url && n.image ? (
|
|
12597
|
+
(f = i.value) != null && f.url && n.image ? (M(), De(P(ws), {
|
|
12626
12598
|
key: 0,
|
|
12627
12599
|
onClose: c[0] || (c[0] = (p) => l()),
|
|
12628
12600
|
ref: "previewImgRef",
|
|
@@ -12670,7 +12642,7 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
|
|
|
12670
12642
|
)) : ue("v-if", !0);
|
|
12671
12643
|
};
|
|
12672
12644
|
}
|
|
12673
|
-
}), Wo =
|
|
12645
|
+
}), Wo = Je(Uo);
|
|
12674
12646
|
export {
|
|
12675
12647
|
Wo as IkPreviewFileDialog,
|
|
12676
12648
|
Wo as default
|