iking-web-ui-pro 0.2.20 → 0.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKExpandCollapse/ik.index.es.js +67 -64
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +279 -276
- package/dist/IKPreviewFile/ik.index.umd.js +16 -16
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +102 -99
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +279 -276
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +113 -110
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +208 -205
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +75 -72
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +413 -410
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +272 -269
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +146 -143
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +156 -153
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1129 -1126
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +556 -553
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +1432 -1429
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +99 -96
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +54 -51
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +697 -694
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +204 -201
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/Provider/ik.index.es.js +10 -14
- package/dist/Provider/ik.index.umd.js +1 -1
- package/dist/index.es.js +4121 -4122
- package/dist/index.umd.js +2 -2
- package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +0 -9
- package/dist/src/components/Provider/index.d.ts +0 -19
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as pe, openBlock as U, createElementBlock as W, createElementVNode as le, inject as
|
|
2
|
-
import { ikColor as
|
|
3
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as pe, openBlock as U, createElementBlock as W, createElementVNode as le, inject as ze, computed as ie, resolveComponent as Ye, withModifiers as Ct, normalizeClass as ae, normalizeStyle as Ce, createCommentVNode as fe, createBlock as Ae, withCtx as he, createTextVNode as Mt, toDisplayString as Ft, createVNode as ke, unref as K, mergeModels as it, useModel as Gt, ref as nt, h as yn, mergeProps as _n, createSlots as Cn, renderSlot as Ge, watch as Bi, nextTick as Hi, Teleport as kn, Transition as bn, reactive as Tn, Fragment as wn } from "vue";
|
|
2
|
+
import { ikColor as En, buildUUID as Ui } from "iking-utils-pro";
|
|
3
|
+
import { useNamespace as Sn } from "element-plus";
|
|
4
4
|
const Xe = (a, o) => {
|
|
5
5
|
if (a.install = (r) => {
|
|
6
6
|
for (const t of [a, ...Object.values(o ?? {})])
|
|
@@ -9,9 +9,9 @@ const Xe = (a, o) => {
|
|
|
9
9
|
for (const [r, t] of Object.entries(o))
|
|
10
10
|
a[r] = t;
|
|
11
11
|
return a;
|
|
12
|
-
},
|
|
12
|
+
}, Nt = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "", oi = (a, o) => {
|
|
13
13
|
var i, n, s, l;
|
|
14
|
-
const r = (i = a == null ? void 0 : a.response) != null && i.data ?
|
|
14
|
+
const r = (i = a == null ? void 0 : a.response) != null && i.data ? ai((s = (n = a == null ? void 0 : a.response) == null ? void 0 : n.data) == null ? void 0 : s.suffix) : ((l = a.raw) == null ? void 0 : l.type) || ai(a[o.suffix]), t = r == null ? void 0 : r.toLowerCase(), e = {
|
|
15
15
|
sheet: "excel",
|
|
16
16
|
excel: "excel",
|
|
17
17
|
zip: "zip",
|
|
@@ -31,7 +31,7 @@ const Xe = (a, o) => {
|
|
|
31
31
|
if (typeof t == "string" && (t.includes(u) || t === u))
|
|
32
32
|
return e[u];
|
|
33
33
|
return "unknown";
|
|
34
|
-
},
|
|
34
|
+
}, xn = {
|
|
35
35
|
".doc": "word",
|
|
36
36
|
".docx": "word",
|
|
37
37
|
".docxf": "word",
|
|
@@ -116,15 +116,15 @@ const Xe = (a, o) => {
|
|
|
116
116
|
".vob": "video",
|
|
117
117
|
".txt": "txt",
|
|
118
118
|
".pdf": "pdf"
|
|
119
|
-
},
|
|
119
|
+
}, ai = (a) => {
|
|
120
120
|
const o = a == null ? void 0 : a.toLocaleLowerCase(), r = o != null && o.startsWith(".") ? o : `.${o}`;
|
|
121
|
-
return r &&
|
|
122
|
-
},
|
|
121
|
+
return r && xn[r] || "unknow";
|
|
122
|
+
}, Pn = (a) => {
|
|
123
123
|
let o = "", r = ["doc", "docx"], t = ["xls", "xlsx"], e = ["ppt", "pptx"], i = ["pdf"];
|
|
124
124
|
return r.includes(a) && (o = "word"), t.includes(a) && (o = "cell"), e.includes(a) && (o = "slide"), i.includes(a) && (o = "text-pdf"), o;
|
|
125
125
|
};
|
|
126
126
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
127
|
-
var
|
|
127
|
+
var In = /* @__PURE__ */ pe({
|
|
128
128
|
name: "Close",
|
|
129
129
|
__name: "close",
|
|
130
130
|
setup(a) {
|
|
@@ -138,14 +138,14 @@ var Pn = /* @__PURE__ */ pe({
|
|
|
138
138
|
})
|
|
139
139
|
]));
|
|
140
140
|
}
|
|
141
|
-
}),
|
|
141
|
+
}), An = In;
|
|
142
142
|
const gt = (a, o) => {
|
|
143
143
|
const r = a.__vccOpts || a;
|
|
144
144
|
for (const [t, e] of o)
|
|
145
145
|
r[t] = e;
|
|
146
146
|
return r;
|
|
147
|
-
},
|
|
148
|
-
const o =
|
|
147
|
+
}, Ln = (a) => {
|
|
148
|
+
const o = ze("loadUrl"), r = ie(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = ze("uploadUrl"), e = ie(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = ze("token"), n = ie(() => a.token || (i == null ? void 0 : i.value)), s = ze("onlyofficeConfig"), l = ie(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = ze("userInfo"), c = ie(() => a.userInfo || (u == null ? void 0 : u.value));
|
|
149
149
|
return {
|
|
150
150
|
cLoadUrl: r,
|
|
151
151
|
cUploadUrl: e,
|
|
@@ -153,18 +153,18 @@ const gt = (a, o) => {
|
|
|
153
153
|
cOnlyofficeConfig: l,
|
|
154
154
|
cUserInfo: c
|
|
155
155
|
};
|
|
156
|
-
},
|
|
156
|
+
}, Dn = Ln, Rn = {
|
|
157
157
|
key: 0,
|
|
158
158
|
class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
|
|
159
|
-
},
|
|
159
|
+
}, On = {
|
|
160
160
|
key: 1,
|
|
161
161
|
class: "h-[1em] w-[1em]",
|
|
162
162
|
"aria-hidden": "true"
|
|
163
|
-
},
|
|
163
|
+
}, Mn = ["xlink:href"], Fn = ["src"], Nn = {
|
|
164
164
|
key: 1,
|
|
165
165
|
class: "h-[1em] w-[1em]",
|
|
166
166
|
"aria-hidden": "true"
|
|
167
|
-
},
|
|
167
|
+
}, Bn = ["xlink:href"], Hn = ["src"], Un = /* @__PURE__ */ pe({
|
|
168
168
|
name: "IkSvgIcon",
|
|
169
169
|
__name: "index",
|
|
170
170
|
props: {
|
|
@@ -190,56 +190,57 @@ const gt = (a, o) => {
|
|
|
190
190
|
warning: { type: Boolean },
|
|
191
191
|
width: {}
|
|
192
192
|
},
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
const { name: n } = t.value;
|
|
199
|
-
return /^http?:\/\//.test(n) ? "img" : /i-[^:]+:[^:]+/.test(n) ? "unocss" : n != null && n.startsWith("iksig") ? "iksig" : n != null && n.includes(":") ? "iconify" : n != null && n.startsWith("iksvg") ? "svg" : "i";
|
|
193
|
+
emits: ["click"],
|
|
194
|
+
setup(a, { emit: o }) {
|
|
195
|
+
const r = a, t = ie(() => r), e = ie(() => {
|
|
196
|
+
const { name: l } = t.value;
|
|
197
|
+
return /^http?:\/\//.test(l) ? "img" : /i-[^:]+:[^:]+/.test(l) ? "unocss" : l != null && l.startsWith("iksig") ? "iksig" : l != null && l.includes(":") ? "iconify" : l != null && l.startsWith("iksvg") ? "svg" : "i";
|
|
200
198
|
}), i = ie(() => {
|
|
201
|
-
const
|
|
199
|
+
const l = [];
|
|
202
200
|
if (t.value.flip)
|
|
203
201
|
switch (t.value.flip) {
|
|
204
202
|
case "horizontal":
|
|
205
|
-
|
|
203
|
+
l.push("rotateY(180deg)");
|
|
206
204
|
break;
|
|
207
205
|
case "vertical":
|
|
208
|
-
|
|
206
|
+
l.push("rotateX(180deg)");
|
|
209
207
|
break;
|
|
210
208
|
case "both":
|
|
211
|
-
|
|
209
|
+
l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
|
|
212
210
|
break;
|
|
213
211
|
}
|
|
214
|
-
t.value.rotate &&
|
|
215
|
-
const
|
|
212
|
+
t.value.rotate && l.push(`rotate(${t.value.rotate % 360}deg)`);
|
|
213
|
+
const u = {
|
|
216
214
|
...t.value.color && { color: t.value.color },
|
|
217
215
|
...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
|
|
218
|
-
...
|
|
216
|
+
...l.length && { transform: l.join(" ") },
|
|
219
217
|
padding: t.value.showBg || t.value.bg ? t.value.padding : 0,
|
|
220
218
|
...t.value.color && e.value !== "iksig" ? {
|
|
221
219
|
"--ik-color-icon-dark": t.value.color,
|
|
222
|
-
"--ik-color-icon-light": t.value.colorLight ||
|
|
220
|
+
"--ik-color-icon-light": t.value.colorLight || En.setOpacity(t.value.color, t.value.opacity)
|
|
223
221
|
} : {}
|
|
224
222
|
};
|
|
225
|
-
return t.value.width && (
|
|
226
|
-
})
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
223
|
+
return t.value.width && (u.width = u.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), u;
|
|
224
|
+
}), n = o, s = (l) => {
|
|
225
|
+
t.value.disabled || n("click", l);
|
|
226
|
+
};
|
|
227
|
+
return (l, u) => {
|
|
228
|
+
const c = Ye("el-tooltip"), h = Ye("el-button");
|
|
229
|
+
return t.value.tableIconType === "icon" || !t.value.tableIconType ? (U(), W("span", Rn, [
|
|
230
230
|
t.value.notip || !t.value.title ? (U(), W(
|
|
231
231
|
"i",
|
|
232
232
|
{
|
|
233
233
|
key: 0,
|
|
234
|
+
onClick: Ct(s, ["stop"]),
|
|
234
235
|
class: ae(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
235
|
-
[
|
|
236
|
+
[l.name]: e.value === "unocss",
|
|
236
237
|
"show-bg": t.value.showBg || t.value.bg,
|
|
237
238
|
default: t.value.size === "default",
|
|
238
239
|
small: t.value.size === "small",
|
|
239
240
|
big: t.value.size === "big",
|
|
240
241
|
warning: t.value.warning || t.value.type === "warning",
|
|
241
242
|
primary: t.value.primary || t.value.type === "primary",
|
|
242
|
-
success:
|
|
243
|
+
success: l.success || t.value.type === "success",
|
|
243
244
|
error: t.value.error || t.value.type === "error",
|
|
244
245
|
active: t.value.active,
|
|
245
246
|
disabled: t.value.disabled
|
|
@@ -258,15 +259,15 @@ const gt = (a, o) => {
|
|
|
258
259
|
null,
|
|
259
260
|
6
|
|
260
261
|
/* CLASS, STYLE */
|
|
261
|
-
)) : e.value === "svg" ? (U(), W("svg",
|
|
262
|
+
)) : e.value === "svg" ? (U(), W("svg", On, [
|
|
262
263
|
le("use", {
|
|
263
264
|
"xlink:href": `#${t.value.name}`
|
|
264
|
-
}, null, 8,
|
|
265
|
+
}, null, 8, Mn)
|
|
265
266
|
])) : e.value === "img" ? (U(), W("img", {
|
|
266
267
|
key: 2,
|
|
267
268
|
src: t.value.name,
|
|
268
269
|
class: "h-[1em] w-[1em]"
|
|
269
|
-
}, null, 8,
|
|
270
|
+
}, null, 8, Fn)) : (U(), W(
|
|
270
271
|
"i",
|
|
271
272
|
{
|
|
272
273
|
key: 3,
|
|
@@ -280,7 +281,7 @@ const gt = (a, o) => {
|
|
|
280
281
|
],
|
|
281
282
|
6
|
|
282
283
|
/* CLASS, STYLE */
|
|
283
|
-
)) : (U(), Ae(
|
|
284
|
+
)) : (U(), Ae(c, {
|
|
284
285
|
key: 1,
|
|
285
286
|
content: t.value.title,
|
|
286
287
|
placement: "top"
|
|
@@ -290,17 +291,18 @@ const gt = (a, o) => {
|
|
|
290
291
|
"i",
|
|
291
292
|
{
|
|
292
293
|
class: ae(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
293
|
-
[
|
|
294
|
+
[l.name]: e.value === "unocss",
|
|
294
295
|
"show-bg": t.value.showBg || t.value.bg,
|
|
295
296
|
default: t.value.size === "default",
|
|
296
297
|
small: t.value.size === "small",
|
|
297
298
|
big: t.value.size === "big",
|
|
298
299
|
warning: t.value.warning || t.value.type === "warning",
|
|
299
|
-
primary:
|
|
300
|
-
success:
|
|
300
|
+
primary: l.primary || t.value.type === "primary",
|
|
301
|
+
success: l.success || t.value.type === "success",
|
|
301
302
|
error: t.value.error || t.value.type === "error",
|
|
302
303
|
active: t.value.active
|
|
303
304
|
}]),
|
|
305
|
+
onClick: Ct(s, ["stop"]),
|
|
304
306
|
style: Ce(i.value)
|
|
305
307
|
},
|
|
306
308
|
[
|
|
@@ -314,15 +316,15 @@ const gt = (a, o) => {
|
|
|
314
316
|
null,
|
|
315
317
|
6
|
|
316
318
|
/* CLASS, STYLE */
|
|
317
|
-
)) : e.value === "svg" ? (U(), W("svg",
|
|
319
|
+
)) : e.value === "svg" ? (U(), W("svg", Nn, [
|
|
318
320
|
le("use", {
|
|
319
321
|
"xlink:href": `#${t.value.name}`
|
|
320
|
-
}, null, 8,
|
|
322
|
+
}, null, 8, Bn)
|
|
321
323
|
])) : e.value === "img" ? (U(), W("img", {
|
|
322
324
|
key: 2,
|
|
323
325
|
src: t.value.name,
|
|
324
326
|
class: "h-[1em] w-[1em]"
|
|
325
|
-
}, null, 8,
|
|
327
|
+
}, null, 8, Hn)) : (U(), W(
|
|
326
328
|
"i",
|
|
327
329
|
{
|
|
328
330
|
key: 3,
|
|
@@ -341,13 +343,14 @@ const gt = (a, o) => {
|
|
|
341
343
|
_: 1
|
|
342
344
|
/* STABLE */
|
|
343
345
|
}, 8, ["content"]))
|
|
344
|
-
])) : (U(), Ae(
|
|
346
|
+
])) : (U(), Ae(h, {
|
|
345
347
|
key: 1,
|
|
346
|
-
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
348
|
+
type: ["warning", "error"].includes(t.value.type) ? "danger" : "",
|
|
349
|
+
onClick: Ct(s, ["stop"])
|
|
347
350
|
}, {
|
|
348
351
|
default: he(() => [
|
|
349
|
-
|
|
350
|
-
|
|
352
|
+
Mt(
|
|
353
|
+
Ft(t.value.title),
|
|
351
354
|
1
|
|
352
355
|
/* TEXT */
|
|
353
356
|
)
|
|
@@ -358,10 +361,10 @@ const gt = (a, o) => {
|
|
|
358
361
|
};
|
|
359
362
|
}
|
|
360
363
|
});
|
|
361
|
-
const
|
|
364
|
+
const Vn = /* @__PURE__ */ gt(Un, [["__scopeId", "data-v-4a1004b9"]]), Bt = Xe(Vn), jn = {
|
|
362
365
|
key: 0,
|
|
363
366
|
class: "exit-main-page-maximize"
|
|
364
|
-
},
|
|
367
|
+
}, zn = /* @__PURE__ */ pe({
|
|
365
368
|
__name: "CloseIcon",
|
|
366
369
|
props: {
|
|
367
370
|
showBg: {
|
|
@@ -375,14 +378,14 @@ const Un = /* @__PURE__ */ gt(Hn, [["__scopeId", "data-v-ec9fdc8a"]]), Nt = Xe(U
|
|
|
375
378
|
},
|
|
376
379
|
setup(a) {
|
|
377
380
|
return (o, r) => (U(), W("div", null, [
|
|
378
|
-
a.showBg && a.fullscreen ? (U(), W("div",
|
|
379
|
-
ke(K(
|
|
381
|
+
a.showBg && a.fullscreen ? (U(), W("div", jn, [
|
|
382
|
+
ke(K(Bt), {
|
|
380
383
|
name: "iksvg_guanbidanchuang",
|
|
381
384
|
title: "关闭",
|
|
382
385
|
size: 20,
|
|
383
386
|
error: ""
|
|
384
387
|
})
|
|
385
|
-
])) : (U(), Ae(K(
|
|
388
|
+
])) : (U(), Ae(K(Bt), {
|
|
386
389
|
key: 1,
|
|
387
390
|
error: "",
|
|
388
391
|
name: "iksvg_guanbidanchuang",
|
|
@@ -392,7 +395,7 @@ const Un = /* @__PURE__ */ gt(Hn, [["__scopeId", "data-v-ec9fdc8a"]]), Nt = Xe(U
|
|
|
392
395
|
]));
|
|
393
396
|
}
|
|
394
397
|
});
|
|
395
|
-
const
|
|
398
|
+
const Wn = /* @__PURE__ */ gt(zn, [["__scopeId", "data-v-79f49df8"]]), Gn = { class: "base-header" }, Kn = /* @__PURE__ */ pe({
|
|
396
399
|
__name: "IkBaseDialog",
|
|
397
400
|
props: /* @__PURE__ */ it({
|
|
398
401
|
title: { default: "" },
|
|
@@ -413,11 +416,11 @@ const zn = /* @__PURE__ */ gt(jn, [["__scopeId", "data-v-79f49df8"]]), Wn = { cl
|
|
|
413
416
|
}),
|
|
414
417
|
emits: ["update:modelValue"],
|
|
415
418
|
setup(a) {
|
|
416
|
-
const o = a, r =
|
|
419
|
+
const o = a, r = Gt(a, "modelValue"), t = nt(o.fullscreen), e = () => {
|
|
417
420
|
t.value = !t.value;
|
|
418
421
|
}, i = pe({
|
|
419
422
|
setup() {
|
|
420
|
-
return () =>
|
|
423
|
+
return () => yn(Wn, {
|
|
421
424
|
showBg: o.showCloseBg,
|
|
422
425
|
fullscreen: o.fullscreen
|
|
423
426
|
});
|
|
@@ -425,7 +428,7 @@ const zn = /* @__PURE__ */ gt(jn, [["__scopeId", "data-v-79f49df8"]]), Wn = { cl
|
|
|
425
428
|
});
|
|
426
429
|
return (n, s) => {
|
|
427
430
|
const l = Ye("el-dialog");
|
|
428
|
-
return U(), Ae(l,
|
|
431
|
+
return U(), Ae(l, _n({
|
|
429
432
|
modelValue: r.value,
|
|
430
433
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
|
|
431
434
|
}, n.$attrs, {
|
|
@@ -433,27 +436,27 @@ const zn = /* @__PURE__ */ gt(jn, [["__scopeId", "data-v-79f49df8"]]), Wn = { cl
|
|
|
433
436
|
class: `ik-base-dialog ${n.noHeader ? "no-header" : ""} ${n.noFooter ? "no-footer" : ""}`,
|
|
434
437
|
fullscreen: t.value,
|
|
435
438
|
"modal-class": "baseDialog"
|
|
436
|
-
}),
|
|
439
|
+
}), Cn({
|
|
437
440
|
icon: he(() => [
|
|
438
441
|
Ge(n.$slots, "title", {}, () => [
|
|
439
|
-
|
|
440
|
-
|
|
442
|
+
Mt(
|
|
443
|
+
Ft(n.title),
|
|
441
444
|
1
|
|
442
445
|
/* TEXT */
|
|
443
446
|
)
|
|
444
447
|
])
|
|
445
448
|
]),
|
|
446
449
|
header: he(() => [
|
|
447
|
-
le("div",
|
|
450
|
+
le("div", Gn, [
|
|
448
451
|
Ge(n.$slots, "header", {}, () => [
|
|
449
|
-
|
|
450
|
-
|
|
452
|
+
Mt(
|
|
453
|
+
Ft(n.title),
|
|
451
454
|
1
|
|
452
455
|
/* TEXT */
|
|
453
456
|
)
|
|
454
457
|
])
|
|
455
458
|
]),
|
|
456
|
-
n.$attrs.showClose ? (U(), Ae(K(
|
|
459
|
+
n.$attrs.showClose ? (U(), Ae(K(Bt), {
|
|
457
460
|
key: 0,
|
|
458
461
|
onClick: e,
|
|
459
462
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
@@ -478,12 +481,12 @@ const zn = /* @__PURE__ */ gt(jn, [["__scopeId", "data-v-79f49df8"]]), Wn = { cl
|
|
|
478
481
|
};
|
|
479
482
|
}
|
|
480
483
|
});
|
|
481
|
-
const
|
|
482
|
-
var
|
|
483
|
-
function
|
|
484
|
+
const Yn = Xe(Kn);
|
|
485
|
+
var $n = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
486
|
+
function Kt(a) {
|
|
484
487
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
485
488
|
}
|
|
486
|
-
function
|
|
489
|
+
function Xn(a, o, r, t) {
|
|
487
490
|
function e(i) {
|
|
488
491
|
return i instanceof r ? i : new r(function(n) {
|
|
489
492
|
n(i);
|
|
@@ -510,7 +513,7 @@ function $n(a, o, r, t) {
|
|
|
510
513
|
u((t = t.apply(a, o || [])).next());
|
|
511
514
|
});
|
|
512
515
|
}
|
|
513
|
-
function
|
|
516
|
+
function qn(a, o) {
|
|
514
517
|
var r = { label: 0, sent: function() {
|
|
515
518
|
if (i[0] & 1)
|
|
516
519
|
throw i[1];
|
|
@@ -575,9 +578,9 @@ function Xn(a, o) {
|
|
|
575
578
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
576
579
|
}
|
|
577
580
|
}
|
|
578
|
-
var
|
|
579
|
-
return
|
|
580
|
-
return
|
|
581
|
+
var Zn = function(a, o) {
|
|
582
|
+
return Xn(void 0, void 0, void 0, function() {
|
|
583
|
+
return qn(this, function(r) {
|
|
581
584
|
return [2, new Promise(function(t, e) {
|
|
582
585
|
try {
|
|
583
586
|
if (window.DocsAPI)
|
|
@@ -589,12 +592,12 @@ var qn = function(a, o) {
|
|
|
589
592
|
if (!l) {
|
|
590
593
|
if (clearInterval(n), window.DocsAPI)
|
|
591
594
|
return t(null);
|
|
592
|
-
var u =
|
|
595
|
+
var u = li(o, a, t, e);
|
|
593
596
|
i.remove(), document.body.appendChild(u);
|
|
594
597
|
}
|
|
595
598
|
}, 500);
|
|
596
599
|
else {
|
|
597
|
-
var s =
|
|
600
|
+
var s = li(o, a, t, e);
|
|
598
601
|
document.body.appendChild(s);
|
|
599
602
|
}
|
|
600
603
|
} catch (l) {
|
|
@@ -603,14 +606,14 @@ var qn = function(a, o) {
|
|
|
603
606
|
})];
|
|
604
607
|
});
|
|
605
608
|
});
|
|
606
|
-
},
|
|
609
|
+
}, li = function(a, o, r, t) {
|
|
607
610
|
var e = document.createElement("script");
|
|
608
611
|
return e.id = a, e.type = "text/javascript", e.src = o, e.async = !0, e.onload = function() {
|
|
609
612
|
e.removeAttribute("loading"), r(null);
|
|
610
613
|
}, e.onerror = function(i) {
|
|
611
614
|
e.removeAttribute("loading"), t(i);
|
|
612
615
|
}, e.setAttribute("loading", ""), e;
|
|
613
|
-
},
|
|
616
|
+
}, Yt = pe({
|
|
614
617
|
name: "DocumentEditor",
|
|
615
618
|
props: {
|
|
616
619
|
id: {
|
|
@@ -665,7 +668,7 @@ var qn = function(a, o) {
|
|
|
665
668
|
var a = this, o = this.documentServerUrl;
|
|
666
669
|
o.endsWith("/") || (o += "/");
|
|
667
670
|
var r = "".concat(o, "web-apps/apps/api/documents/api.js");
|
|
668
|
-
|
|
671
|
+
Zn(r, "onlyoffice-api-script").then(function() {
|
|
669
672
|
return a.onLoad();
|
|
670
673
|
}).catch(function() {
|
|
671
674
|
a.onError(-2);
|
|
@@ -779,13 +782,13 @@ var qn = function(a, o) {
|
|
|
779
782
|
}
|
|
780
783
|
}
|
|
781
784
|
});
|
|
782
|
-
const
|
|
783
|
-
function
|
|
784
|
-
return U(), W("div", { id: a.id }, null, 8,
|
|
785
|
+
const Jn = ["id"];
|
|
786
|
+
function Qn(a, o, r, t, e, i) {
|
|
787
|
+
return U(), W("div", { id: a.id }, null, 8, Jn);
|
|
785
788
|
}
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
const
|
|
789
|
+
Yt.render = Qn;
|
|
790
|
+
Yt.__file = "src/components/DocumentEditor.vue";
|
|
791
|
+
const er = /* @__PURE__ */ pe({
|
|
789
792
|
__name: "IkOnlyOffice",
|
|
790
793
|
props: {
|
|
791
794
|
// 文件服务器的服务的地址
|
|
@@ -820,7 +823,7 @@ const Qn = /* @__PURE__ */ pe({
|
|
|
820
823
|
style: Ce({ height: o.officeHeight })
|
|
821
824
|
},
|
|
822
825
|
[
|
|
823
|
-
ke(K(
|
|
826
|
+
ke(K(Yt), {
|
|
824
827
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
825
828
|
ref: "editorRef",
|
|
826
829
|
"document-server-url": a.documentServerUrl,
|
|
@@ -833,8 +836,8 @@ const Qn = /* @__PURE__ */ pe({
|
|
|
833
836
|
));
|
|
834
837
|
}
|
|
835
838
|
});
|
|
836
|
-
const
|
|
837
|
-
function
|
|
839
|
+
const tr = /* @__PURE__ */ gt(er, [["__scopeId", "data-v-98d51ef9"]]), ir = Xe(tr);
|
|
840
|
+
function ui(a, o) {
|
|
838
841
|
var r = Object.keys(a);
|
|
839
842
|
if (Object.getOwnPropertySymbols) {
|
|
840
843
|
var t = Object.getOwnPropertySymbols(a);
|
|
@@ -847,9 +850,9 @@ function li(a, o) {
|
|
|
847
850
|
function V(a) {
|
|
848
851
|
for (var o = 1; o < arguments.length; o++) {
|
|
849
852
|
var r = arguments[o] != null ? arguments[o] : {};
|
|
850
|
-
o % 2 ?
|
|
853
|
+
o % 2 ? ui(Object(r), !0).forEach(function(t) {
|
|
851
854
|
y(a, t, r[t]);
|
|
852
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) :
|
|
855
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) : ui(Object(r)).forEach(function(t) {
|
|
853
856
|
Object.defineProperty(a, t, Object.getOwnPropertyDescriptor(r, t));
|
|
854
857
|
});
|
|
855
858
|
}
|
|
@@ -867,19 +870,19 @@ function w(a, o) {
|
|
|
867
870
|
if (!(a instanceof o))
|
|
868
871
|
throw new TypeError("Cannot call a class as a function");
|
|
869
872
|
}
|
|
870
|
-
function
|
|
873
|
+
function ci(a, o) {
|
|
871
874
|
for (var r = 0; r < o.length; r++) {
|
|
872
875
|
var t = o[r];
|
|
873
|
-
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(a,
|
|
876
|
+
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(a, Vi(t.key), t);
|
|
874
877
|
}
|
|
875
878
|
}
|
|
876
879
|
function E(a, o, r) {
|
|
877
|
-
return o &&
|
|
880
|
+
return o && ci(a.prototype, o), r && ci(a, r), Object.defineProperty(a, "prototype", {
|
|
878
881
|
writable: !1
|
|
879
882
|
}), a;
|
|
880
883
|
}
|
|
881
884
|
function y(a, o, r) {
|
|
882
|
-
return o =
|
|
885
|
+
return o = Vi(o), o in a ? Object.defineProperty(a, o, {
|
|
883
886
|
value: r,
|
|
884
887
|
enumerable: !0,
|
|
885
888
|
configurable: !0,
|
|
@@ -897,19 +900,19 @@ function S(a, o) {
|
|
|
897
900
|
}
|
|
898
901
|
}), Object.defineProperty(a, "prototype", {
|
|
899
902
|
writable: !1
|
|
900
|
-
}), o &&
|
|
903
|
+
}), o && Ht(a, o);
|
|
901
904
|
}
|
|
902
905
|
function P(a) {
|
|
903
906
|
return P = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
904
907
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
905
908
|
}, P(a);
|
|
906
909
|
}
|
|
907
|
-
function
|
|
908
|
-
return
|
|
910
|
+
function Ht(a, o) {
|
|
911
|
+
return Ht = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
909
912
|
return t.__proto__ = e, t;
|
|
910
|
-
},
|
|
913
|
+
}, Ht(a, o);
|
|
911
914
|
}
|
|
912
|
-
function
|
|
915
|
+
function nr() {
|
|
913
916
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
914
917
|
return !1;
|
|
915
918
|
if (typeof Proxy == "function")
|
|
@@ -926,7 +929,7 @@ function v(a) {
|
|
|
926
929
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
927
930
|
return a;
|
|
928
931
|
}
|
|
929
|
-
function
|
|
932
|
+
function $t(a, o) {
|
|
930
933
|
if (o && (typeof o == "object" || typeof o == "function"))
|
|
931
934
|
return o;
|
|
932
935
|
if (o !== void 0)
|
|
@@ -934,7 +937,7 @@ function Yt(a, o) {
|
|
|
934
937
|
return v(a);
|
|
935
938
|
}
|
|
936
939
|
function x(a) {
|
|
937
|
-
var o =
|
|
940
|
+
var o = nr();
|
|
938
941
|
return function() {
|
|
939
942
|
var t = P(a), e;
|
|
940
943
|
if (o) {
|
|
@@ -942,17 +945,17 @@ function x(a) {
|
|
|
942
945
|
e = Reflect.construct(t, arguments, i);
|
|
943
946
|
} else
|
|
944
947
|
e = t.apply(this, arguments);
|
|
945
|
-
return
|
|
948
|
+
return $t(this, e);
|
|
946
949
|
};
|
|
947
950
|
}
|
|
948
|
-
function
|
|
951
|
+
function rr(a, o) {
|
|
949
952
|
for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = P(a), a !== null); )
|
|
950
953
|
;
|
|
951
954
|
return a;
|
|
952
955
|
}
|
|
953
956
|
function I() {
|
|
954
957
|
return typeof Reflect < "u" && Reflect.get ? I = Reflect.get.bind() : I = function(o, r, t) {
|
|
955
|
-
var e =
|
|
958
|
+
var e = rr(o, r);
|
|
956
959
|
if (e) {
|
|
957
960
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
958
961
|
return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
|
|
@@ -960,38 +963,38 @@ function I() {
|
|
|
960
963
|
}, I.apply(this, arguments);
|
|
961
964
|
}
|
|
962
965
|
function ne(a) {
|
|
963
|
-
return
|
|
966
|
+
return sr(a) || or(a) || ar(a) || lr();
|
|
964
967
|
}
|
|
965
|
-
function
|
|
968
|
+
function sr(a) {
|
|
966
969
|
if (Array.isArray(a))
|
|
967
|
-
return
|
|
970
|
+
return Ut(a);
|
|
968
971
|
}
|
|
969
|
-
function
|
|
972
|
+
function or(a) {
|
|
970
973
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
971
974
|
return Array.from(a);
|
|
972
975
|
}
|
|
973
|
-
function
|
|
976
|
+
function ar(a, o) {
|
|
974
977
|
if (a) {
|
|
975
978
|
if (typeof a == "string")
|
|
976
|
-
return
|
|
979
|
+
return Ut(a, o);
|
|
977
980
|
var r = Object.prototype.toString.call(a).slice(8, -1);
|
|
978
981
|
if (r === "Object" && a.constructor && (r = a.constructor.name), r === "Map" || r === "Set")
|
|
979
982
|
return Array.from(a);
|
|
980
983
|
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
981
|
-
return
|
|
984
|
+
return Ut(a, o);
|
|
982
985
|
}
|
|
983
986
|
}
|
|
984
|
-
function
|
|
987
|
+
function Ut(a, o) {
|
|
985
988
|
(o == null || o > a.length) && (o = a.length);
|
|
986
989
|
for (var r = 0, t = new Array(o); r < o; r++)
|
|
987
990
|
t[r] = a[r];
|
|
988
991
|
return t;
|
|
989
992
|
}
|
|
990
|
-
function
|
|
993
|
+
function lr() {
|
|
991
994
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
992
995
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
993
996
|
}
|
|
994
|
-
function
|
|
997
|
+
function ur(a, o) {
|
|
995
998
|
if (typeof a != "object" || a === null)
|
|
996
999
|
return a;
|
|
997
1000
|
var r = a[Symbol.toPrimitive];
|
|
@@ -1003,11 +1006,11 @@ function lr(a, o) {
|
|
|
1003
1006
|
}
|
|
1004
1007
|
return (o === "string" ? String : Number)(a);
|
|
1005
1008
|
}
|
|
1006
|
-
function
|
|
1007
|
-
var o =
|
|
1009
|
+
function Vi(a) {
|
|
1010
|
+
var o = ur(a, "string");
|
|
1008
1011
|
return typeof o == "symbol" ? o : String(o);
|
|
1009
1012
|
}
|
|
1010
|
-
var
|
|
1013
|
+
var ji = { exports: {} };
|
|
1011
1014
|
(function(a) {
|
|
1012
1015
|
var o = Object.prototype.hasOwnProperty, r = "~";
|
|
1013
1016
|
function t() {
|
|
@@ -1117,40 +1120,40 @@ var Vi = { exports: {} };
|
|
|
1117
1120
|
var c;
|
|
1118
1121
|
return u ? (c = r ? r + u : u, this._events[c] && n(this, c)) : (this._events = new t(), this._eventsCount = 0), this;
|
|
1119
1122
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, a.exports = s;
|
|
1120
|
-
})(
|
|
1121
|
-
var
|
|
1122
|
-
const
|
|
1123
|
-
var
|
|
1123
|
+
})(ji);
|
|
1124
|
+
var zi = ji.exports;
|
|
1125
|
+
const Wi = /* @__PURE__ */ Kt(zi);
|
|
1126
|
+
var cr = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, kt = {
|
|
1124
1127
|
info: "color: #525252; background-color: #90ee90;",
|
|
1125
1128
|
error: "color: #525252; background-color: red;",
|
|
1126
1129
|
warn: "color: #525252; background-color: yellow; "
|
|
1127
|
-
},
|
|
1130
|
+
}, bt = "%c[xgplayer]", D = {
|
|
1128
1131
|
config: {
|
|
1129
|
-
debug:
|
|
1132
|
+
debug: cr ? 3 : 0
|
|
1130
1133
|
},
|
|
1131
1134
|
logInfo: function(o) {
|
|
1132
1135
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
1133
1136
|
e[i - 1] = arguments[i];
|
|
1134
|
-
this.config.debug >= 3 && (r = console).log.apply(r, [
|
|
1137
|
+
this.config.debug >= 3 && (r = console).log.apply(r, [bt, kt.info, o].concat(e));
|
|
1135
1138
|
},
|
|
1136
1139
|
logWarn: function(o) {
|
|
1137
1140
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
1138
1141
|
e[i - 1] = arguments[i];
|
|
1139
|
-
this.config.debug >= 1 && (r = console).warn.apply(r, [
|
|
1142
|
+
this.config.debug >= 1 && (r = console).warn.apply(r, [bt, kt.warn, o].concat(e));
|
|
1140
1143
|
},
|
|
1141
1144
|
logError: function(o) {
|
|
1142
1145
|
var r;
|
|
1143
1146
|
if (!(this.config.debug < 1)) {
|
|
1144
1147
|
for (var t = this.config.debug >= 2 ? "trace" : "error", e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
|
|
1145
1148
|
i[n - 1] = arguments[n];
|
|
1146
|
-
(r = console)[t].apply(r, [
|
|
1149
|
+
(r = console)[t].apply(r, [bt, kt.error, o].concat(i));
|
|
1147
1150
|
}
|
|
1148
1151
|
}
|
|
1149
1152
|
};
|
|
1150
|
-
function
|
|
1153
|
+
function fr(a) {
|
|
1151
1154
|
a.logInfo = D.logInfo.bind(a), a.logWarn = D.logWarn.bind(a), a.logError = D.logError.bind(a);
|
|
1152
1155
|
}
|
|
1153
|
-
var
|
|
1156
|
+
var hr = /* @__PURE__ */ function() {
|
|
1154
1157
|
function a(o) {
|
|
1155
1158
|
w(this, a), this.bufferedList = o;
|
|
1156
1159
|
}
|
|
@@ -1396,7 +1399,7 @@ f.setStyleFromCsstext = function(a, o) {
|
|
|
1396
1399
|
a.style[t] = o[t];
|
|
1397
1400
|
});
|
|
1398
1401
|
};
|
|
1399
|
-
function
|
|
1402
|
+
function dr(a, o) {
|
|
1400
1403
|
for (var r = 0, t = o.length; r < t; r++)
|
|
1401
1404
|
if (a.indexOf(o[r]) > -1)
|
|
1402
1405
|
return !0;
|
|
@@ -1410,7 +1413,7 @@ f.filterStyleFromText = function(a) {
|
|
|
1410
1413
|
return t.map(function(n) {
|
|
1411
1414
|
if (n) {
|
|
1412
1415
|
var s = n.split(":");
|
|
1413
|
-
s.length > 1 && (
|
|
1416
|
+
s.length > 1 && (dr(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
|
|
1414
1417
|
}
|
|
1415
1418
|
}), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
|
|
1416
1419
|
a.style[n] = i[n];
|
|
@@ -1475,7 +1478,7 @@ f.getBuffered2 = function(a) {
|
|
|
1475
1478
|
}
|
|
1476
1479
|
else
|
|
1477
1480
|
e = r;
|
|
1478
|
-
return new
|
|
1481
|
+
return new hr(e);
|
|
1479
1482
|
};
|
|
1480
1483
|
f.getEventPos = function(a) {
|
|
1481
1484
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
@@ -1595,15 +1598,15 @@ f.getCurrentTimeByOffset = function(a, o) {
|
|
|
1595
1598
|
}
|
|
1596
1599
|
return a;
|
|
1597
1600
|
};
|
|
1598
|
-
function
|
|
1601
|
+
function Gi(a) {
|
|
1599
1602
|
var o = Y(a);
|
|
1600
1603
|
return a !== null && (o === "object" || o === "function");
|
|
1601
1604
|
}
|
|
1602
|
-
function
|
|
1605
|
+
function gr(a, o, r) {
|
|
1603
1606
|
var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, g = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
|
|
1604
1607
|
if (typeof a != "function")
|
|
1605
1608
|
throw new TypeError("Expected a function");
|
|
1606
|
-
o = +o || 0,
|
|
1609
|
+
o = +o || 0, Gi(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, o) : i, d = "trailing" in r ? !!r.trailing : d);
|
|
1607
1610
|
function p(M) {
|
|
1608
1611
|
var q = t, ee = e;
|
|
1609
1612
|
return t = e = void 0, u = M, n = a.apply(ee, q), n;
|
|
@@ -1658,30 +1661,30 @@ function dr(a, o, r) {
|
|
|
1658
1661
|
}
|
|
1659
1662
|
return j.cancel = B, j.flush = A, j.pending = $, j;
|
|
1660
1663
|
}
|
|
1661
|
-
function
|
|
1664
|
+
function pr(a, o, r) {
|
|
1662
1665
|
var t = !0, e = !0;
|
|
1663
1666
|
if (typeof a != "function")
|
|
1664
1667
|
throw new TypeError("Expected a function");
|
|
1665
|
-
return
|
|
1668
|
+
return Gi(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), gr(a, o, {
|
|
1666
1669
|
leading: t,
|
|
1667
1670
|
trailing: e,
|
|
1668
1671
|
maxWait: o
|
|
1669
1672
|
});
|
|
1670
1673
|
}
|
|
1671
|
-
function
|
|
1674
|
+
function vr() {
|
|
1672
1675
|
var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
|
|
1673
1676
|
return a === "zh-cn" && (a = "zh"), a;
|
|
1674
1677
|
}
|
|
1675
|
-
function
|
|
1678
|
+
function mr(a, o, r) {
|
|
1676
1679
|
if (a) {
|
|
1677
1680
|
var t = a.getAttribute(r);
|
|
1678
1681
|
return !!(t && t === o && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
|
|
1679
1682
|
}
|
|
1680
1683
|
}
|
|
1681
|
-
var
|
|
1684
|
+
var fi = {
|
|
1682
1685
|
android: /(Android)\s([\d.]+)/,
|
|
1683
1686
|
ios: /(Version)\/([\d.]+)/
|
|
1684
|
-
},
|
|
1687
|
+
}, yr = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], L = {
|
|
1685
1688
|
get device() {
|
|
1686
1689
|
var a = L.os;
|
|
1687
1690
|
return a.isPc ? "pc" : "mobile";
|
|
@@ -1720,7 +1723,7 @@ var ci = {
|
|
|
1720
1723
|
if (typeof navigator > "u")
|
|
1721
1724
|
return 0;
|
|
1722
1725
|
var a = navigator.userAgent, o = "";
|
|
1723
|
-
/(?:iPhone)|(?:iPad|PlayBook)/.test(a) ? o =
|
|
1726
|
+
/(?:iPhone)|(?:iPad|PlayBook)/.test(a) ? o = fi.ios : o = fi.android;
|
|
1724
1727
|
var r = o ? o.exec(a) : [];
|
|
1725
1728
|
if (r && r.length >= 3) {
|
|
1726
1729
|
var t = r[2].split(".");
|
|
@@ -1744,7 +1747,7 @@ var ci = {
|
|
|
1744
1747
|
if (this.supportResult)
|
|
1745
1748
|
return this.supportResult;
|
|
1746
1749
|
var r = document.createElement("video");
|
|
1747
|
-
return typeof r.canPlayType == "function" &&
|
|
1750
|
+
return typeof r.canPlayType == "function" && yr.map(function(t) {
|
|
1748
1751
|
r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (o.isSupport = !0, o.mime += "||".concat(t));
|
|
1749
1752
|
}), this.supportResult = o, r = null, o;
|
|
1750
1753
|
},
|
|
@@ -1783,14 +1786,14 @@ var ci = {
|
|
|
1783
1786
|
return Promise.resolve(r);
|
|
1784
1787
|
}
|
|
1785
1788
|
}
|
|
1786
|
-
},
|
|
1789
|
+
}, Vt = "3.0.18", hi = {
|
|
1787
1790
|
1: "media",
|
|
1788
1791
|
2: "media",
|
|
1789
1792
|
3: "media",
|
|
1790
1793
|
4: "media",
|
|
1791
1794
|
5: "media",
|
|
1792
1795
|
6: "media"
|
|
1793
|
-
},
|
|
1796
|
+
}, di = {
|
|
1794
1797
|
1: 5101,
|
|
1795
1798
|
2: 5102,
|
|
1796
1799
|
3: 5103,
|
|
@@ -1811,9 +1814,9 @@ var ci = {
|
|
|
1811
1814
|
var t = o && o.i18n ? o.i18n.ERROR_TYPES : null;
|
|
1812
1815
|
if (o.media) {
|
|
1813
1816
|
var e = r.mediaError ? r.mediaError : o.media.error || {}, i = o.duration, n = o.currentTime, s = o.ended, l = o.src, u = o.currentSrc, c = o.media, h = c.readyState, d = c.networkState, g = r.errorCode || e.code;
|
|
1814
|
-
|
|
1817
|
+
di[g] && (g = di[g]);
|
|
1815
1818
|
var p = {
|
|
1816
|
-
playerVersion:
|
|
1819
|
+
playerVersion: Vt,
|
|
1817
1820
|
currentTime: n,
|
|
1818
1821
|
duration: i,
|
|
1819
1822
|
ended: s,
|
|
@@ -1832,85 +1835,85 @@ var ci = {
|
|
|
1832
1835
|
}), p;
|
|
1833
1836
|
} else if (arguments.length > 1) {
|
|
1834
1837
|
for (var m = {
|
|
1835
|
-
playerVersion:
|
|
1838
|
+
playerVersion: Vt,
|
|
1836
1839
|
domain: document.domain
|
|
1837
1840
|
}, _ = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], k = 0; k < arguments.length; k++)
|
|
1838
1841
|
m[_[k]] = arguments[k];
|
|
1839
1842
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
1840
1843
|
}
|
|
1841
1844
|
}
|
|
1842
|
-
), Q = "play",
|
|
1845
|
+
), Q = "play", Xt = "playing", Le = "ended", je = "pause", qe = "error", pt = "seeking", ge = "seeked", J = "timeupdate", Ze = "waiting", de = "canplay", _r = "canplaythrough", we = "durationchange", Ki = "volumechange", ve = "loadeddata", Cr = "loadedmetadata", Yi = "ratechange", $i = "progress", qt = "loadstart", De = "emptied", kr = "stalled", br = "suspend", Tr = "abort", wr = "bufferedChange", Zt = "focus", Xi = "blur", Jt = "ready", qi = "urlNull", Ie = "autoplay_started", Qt = "autoplay_was_prevented", vt = "complete", st = "replay", ei = "destroy", mt = "urlchange", jt = "download_speed_change", Zi = "leaveplayer", Ji = "enterplayer", Qi = "loading", ue = "fullscreen_change", ot = "cssFullscreen_change", at = "mini_state_change", ti = "definition_change", Er = "before_definition_change", zt = "after_definition_change", Sr = "SEI_PARSED", xr = "retry", be = "video_resize", Wt = "pip_change", en = "rotate", tn = "screenShot", lt = "playnext", nn = "shortcut", rn = "xglog", ut = "user_action", yt = "reset", sn = "source_error", on = "source_success", Pr = "switch_subtitle", an = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], ln = {
|
|
1843
1846
|
STATS_INFO: "stats_info",
|
|
1844
1847
|
STATS_DOWNLOAD: "stats_download",
|
|
1845
1848
|
STATS_RESET: "stats_reset"
|
|
1846
|
-
},
|
|
1847
|
-
const
|
|
1849
|
+
}, un = "fps_stuck";
|
|
1850
|
+
const Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1848
1851
|
__proto__: null,
|
|
1849
|
-
ABORT:
|
|
1850
|
-
AFTER_DEFINITION_CHANGE:
|
|
1851
|
-
AUTOPLAY_PREVENTED:
|
|
1852
|
+
ABORT: Tr,
|
|
1853
|
+
AFTER_DEFINITION_CHANGE: zt,
|
|
1854
|
+
AUTOPLAY_PREVENTED: Qt,
|
|
1852
1855
|
AUTOPLAY_STARTED: Ie,
|
|
1853
|
-
BEFORE_DEFINITION_CHANGE:
|
|
1854
|
-
BUFFER_CHANGE:
|
|
1856
|
+
BEFORE_DEFINITION_CHANGE: Er,
|
|
1857
|
+
BUFFER_CHANGE: wr,
|
|
1855
1858
|
CANPLAY: de,
|
|
1856
|
-
CANPLAY_THROUGH:
|
|
1859
|
+
CANPLAY_THROUGH: _r,
|
|
1857
1860
|
COMPLETE: vt,
|
|
1858
1861
|
CSS_FULLSCREEN_CHANGE: ot,
|
|
1859
|
-
DEFINITION_CHANGE:
|
|
1860
|
-
DESTROY:
|
|
1861
|
-
DOWNLOAD_SPEED_CHANGE:
|
|
1862
|
+
DEFINITION_CHANGE: ti,
|
|
1863
|
+
DESTROY: ei,
|
|
1864
|
+
DOWNLOAD_SPEED_CHANGE: jt,
|
|
1862
1865
|
DURATION_CHANGE: we,
|
|
1863
1866
|
EMPTIED: De,
|
|
1864
1867
|
ENDED: Le,
|
|
1865
|
-
ENTER_PLAYER:
|
|
1868
|
+
ENTER_PLAYER: Ji,
|
|
1866
1869
|
ERROR: qe,
|
|
1867
|
-
FPS_STUCK:
|
|
1870
|
+
FPS_STUCK: un,
|
|
1868
1871
|
FULLSCREEN_CHANGE: ue,
|
|
1869
|
-
LEAVE_PLAYER:
|
|
1872
|
+
LEAVE_PLAYER: Zi,
|
|
1870
1873
|
LOADED_DATA: ve,
|
|
1871
|
-
LOADED_METADATA:
|
|
1872
|
-
LOADING:
|
|
1873
|
-
LOAD_START:
|
|
1874
|
+
LOADED_METADATA: Cr,
|
|
1875
|
+
LOADING: Qi,
|
|
1876
|
+
LOAD_START: qt,
|
|
1874
1877
|
MINI_STATE_CHANGE: at,
|
|
1875
|
-
PAUSE:
|
|
1876
|
-
PIP_CHANGE:
|
|
1878
|
+
PAUSE: je,
|
|
1879
|
+
PIP_CHANGE: Wt,
|
|
1877
1880
|
PLAY: Q,
|
|
1878
|
-
PLAYER_BLUR:
|
|
1879
|
-
PLAYER_FOCUS:
|
|
1880
|
-
PLAYING:
|
|
1881
|
+
PLAYER_BLUR: Xi,
|
|
1882
|
+
PLAYER_FOCUS: Zt,
|
|
1883
|
+
PLAYING: Xt,
|
|
1881
1884
|
PLAYNEXT: lt,
|
|
1882
|
-
PROGRESS:
|
|
1883
|
-
RATE_CHANGE:
|
|
1884
|
-
READY:
|
|
1885
|
+
PROGRESS: $i,
|
|
1886
|
+
RATE_CHANGE: Yi,
|
|
1887
|
+
READY: Jt,
|
|
1885
1888
|
REPLAY: st,
|
|
1886
1889
|
RESET: yt,
|
|
1887
|
-
RETRY:
|
|
1888
|
-
ROTATE:
|
|
1889
|
-
SCREEN_SHOT:
|
|
1890
|
+
RETRY: xr,
|
|
1891
|
+
ROTATE: en,
|
|
1892
|
+
SCREEN_SHOT: tn,
|
|
1890
1893
|
SEEKED: ge,
|
|
1891
1894
|
SEEKING: pt,
|
|
1892
|
-
SEI_PARSED:
|
|
1893
|
-
SHORTCUT:
|
|
1894
|
-
SOURCE_ERROR:
|
|
1895
|
-
SOURCE_SUCCESS:
|
|
1896
|
-
STALLED:
|
|
1897
|
-
STATS_EVENTS:
|
|
1898
|
-
SUSPEND:
|
|
1899
|
-
SWITCH_SUBTITLE:
|
|
1895
|
+
SEI_PARSED: Sr,
|
|
1896
|
+
SHORTCUT: nn,
|
|
1897
|
+
SOURCE_ERROR: sn,
|
|
1898
|
+
SOURCE_SUCCESS: on,
|
|
1899
|
+
STALLED: kr,
|
|
1900
|
+
STATS_EVENTS: ln,
|
|
1901
|
+
SUSPEND: br,
|
|
1902
|
+
SWITCH_SUBTITLE: Pr,
|
|
1900
1903
|
TIME_UPDATE: J,
|
|
1901
1904
|
URL_CHANGE: mt,
|
|
1902
|
-
URL_NULL:
|
|
1905
|
+
URL_NULL: qi,
|
|
1903
1906
|
USER_ACTION: ut,
|
|
1904
|
-
VIDEO_EVENTS:
|
|
1907
|
+
VIDEO_EVENTS: an,
|
|
1905
1908
|
VIDEO_RESIZE: be,
|
|
1906
|
-
VOLUME_CHANGE:
|
|
1909
|
+
VOLUME_CHANGE: Ki,
|
|
1907
1910
|
WAITING: Ze,
|
|
1908
|
-
XGLOG:
|
|
1911
|
+
XGLOG: rn
|
|
1909
1912
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1910
|
-
function
|
|
1913
|
+
function Tt(a, o) {
|
|
1911
1914
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
|
|
1912
1915
|
}
|
|
1913
|
-
function
|
|
1916
|
+
function Ar(a, o) {
|
|
1914
1917
|
return function(r, t) {
|
|
1915
1918
|
var e = {
|
|
1916
1919
|
player: o,
|
|
@@ -1935,17 +1938,17 @@ function Ir(a, o) {
|
|
|
1935
1938
|
o._rate = o.media && o.media.playbackRate;
|
|
1936
1939
|
}
|
|
1937
1940
|
if (a === "durationchange" && (o._duration = o.media.duration), a === "volumechange" && (e.isMutedChange = o._lastMuted !== o.muted, o._lastMuted = o.muted), a === "error" && (e.error = t || o.video.error), o.mediaEventMiddleware[a]) {
|
|
1938
|
-
var n =
|
|
1941
|
+
var n = Tt.bind(o, a, e);
|
|
1939
1942
|
try {
|
|
1940
1943
|
o.mediaEventMiddleware[a].call(o, e, n);
|
|
1941
1944
|
} catch (s) {
|
|
1942
|
-
throw
|
|
1945
|
+
throw Tt.call(o, a, e), s;
|
|
1943
1946
|
}
|
|
1944
1947
|
} else
|
|
1945
|
-
|
|
1948
|
+
Tt.call(o, a, e);
|
|
1946
1949
|
};
|
|
1947
1950
|
}
|
|
1948
|
-
var
|
|
1951
|
+
var Lr = /* @__PURE__ */ function(a) {
|
|
1949
1952
|
S(r, a);
|
|
1950
1953
|
var o = x(r);
|
|
1951
1954
|
function r(t) {
|
|
@@ -1987,9 +1990,9 @@ var Ar = /* @__PURE__ */ function(a) {
|
|
|
1987
1990
|
key: "attachVideoEvents",
|
|
1988
1991
|
value: function() {
|
|
1989
1992
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
1990
|
-
this._evHandlers || (this._evHandlers =
|
|
1993
|
+
this._evHandlers || (this._evHandlers = an.map(function(n) {
|
|
1991
1994
|
var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
1992
|
-
return typeof e[s] == "function" && e.on(n, e[s]), y({}, n,
|
|
1995
|
+
return typeof e[s] == "function" && e.on(n, e[s]), y({}, n, Ar(n, e));
|
|
1993
1996
|
})), this._evHandlers.forEach(function(n) {
|
|
1994
1997
|
var s = Object.keys(n)[0];
|
|
1995
1998
|
i.addEventListener(s, n[s], !1);
|
|
@@ -2021,7 +2024,7 @@ var Ar = /* @__PURE__ */ function(a) {
|
|
|
2021
2024
|
var s = e.children;
|
|
2022
2025
|
if (s) {
|
|
2023
2026
|
this._videoSourceCount = s.length, this._videoSourceIndex = s.length, this._vLoadeddata = function(h) {
|
|
2024
|
-
n.emit(
|
|
2027
|
+
n.emit(on, {
|
|
2025
2028
|
src: h.target.currentSrc,
|
|
2026
2029
|
host: f.getHostFromUrl(h.target.currentSrc)
|
|
2027
2030
|
});
|
|
@@ -2040,8 +2043,8 @@ var Ar = /* @__PURE__ */ function(a) {
|
|
|
2040
2043
|
};
|
|
2041
2044
|
l ? l.error(h, g) : n.errorHandler("error", g);
|
|
2042
2045
|
}
|
|
2043
|
-
var p =
|
|
2044
|
-
n.emit(
|
|
2046
|
+
var p = hi[4];
|
|
2047
|
+
n.emit(sn, new rt(n, {
|
|
2045
2048
|
errorType: p,
|
|
2046
2049
|
errorCode: 4,
|
|
2047
2050
|
errorMessage: "sources_load_error",
|
|
@@ -2074,7 +2077,7 @@ var Ar = /* @__PURE__ */ function(a) {
|
|
|
2074
2077
|
value: function(e) {
|
|
2075
2078
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
2076
2079
|
if (this.media && (this.media.error || i)) {
|
|
2077
|
-
var n = this.media.error || i, s = n.code ?
|
|
2080
|
+
var n = this.media.error || i, s = n.code ? hi[n.code] : "other", l = n.message;
|
|
2078
2081
|
this.media.currentSrc || (l = "empty_src", n = {
|
|
2079
2082
|
code: 6,
|
|
2080
2083
|
message: l
|
|
@@ -2363,7 +2366,7 @@ var Ar = /* @__PURE__ */ function(a) {
|
|
|
2363
2366
|
I(P(r.prototype), "removeAllListeners", this).call(this);
|
|
2364
2367
|
}
|
|
2365
2368
|
}]), r;
|
|
2366
|
-
}(
|
|
2369
|
+
}(Wi), Dr = /* @__PURE__ */ function() {
|
|
2367
2370
|
function a() {
|
|
2368
2371
|
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
2369
2372
|
name: "xgplayer",
|
|
@@ -2441,7 +2444,7 @@ var Ar = /* @__PURE__ */ function(a) {
|
|
|
2441
2444
|
t.clear();
|
|
2442
2445
|
}
|
|
2443
2446
|
}]), a;
|
|
2444
|
-
}(),
|
|
2447
|
+
}(), gi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], pi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], vi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Pe = "data-xgplayerid";
|
|
2445
2448
|
function Je(a, o, r) {
|
|
2446
2449
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
2447
2450
|
e[i - 3] = arguments[i];
|
|
@@ -2490,14 +2493,14 @@ function ht(a, o) {
|
|
|
2490
2493
|
var r = this.__hooks;
|
|
2491
2494
|
r && delete r[a];
|
|
2492
2495
|
}
|
|
2493
|
-
function
|
|
2496
|
+
function mi(a) {
|
|
2494
2497
|
if (!(!this.plugins || !this.plugins[a.toLowerCase()])) {
|
|
2495
2498
|
for (var o = this.plugins[a.toLowerCase()], r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), e = 1; e < r; e++)
|
|
2496
2499
|
t[e - 1] = arguments[e];
|
|
2497
2500
|
return o.useHooks && o.useHooks.apply(o, t);
|
|
2498
2501
|
}
|
|
2499
2502
|
}
|
|
2500
|
-
function
|
|
2503
|
+
function yi(a) {
|
|
2501
2504
|
if (!(!this.plugins || !this.plugins[a.toLowerCase()])) {
|
|
2502
2505
|
var o = this.plugins[a.toLowerCase()];
|
|
2503
2506
|
if (o) {
|
|
@@ -2507,7 +2510,7 @@ function mi(a) {
|
|
|
2507
2510
|
}
|
|
2508
2511
|
}
|
|
2509
2512
|
}
|
|
2510
|
-
function
|
|
2513
|
+
function cn(a) {
|
|
2511
2514
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
2512
2515
|
a.__hooks = {}, o && o.map(function(r) {
|
|
2513
2516
|
a.__hooks[r] = null;
|
|
@@ -2520,7 +2523,7 @@ function un(a) {
|
|
|
2520
2523
|
}
|
|
2521
2524
|
});
|
|
2522
2525
|
}
|
|
2523
|
-
function
|
|
2526
|
+
function fn(a) {
|
|
2524
2527
|
a.__hooks = null;
|
|
2525
2528
|
}
|
|
2526
2529
|
function ce(a, o, r) {
|
|
@@ -2539,12 +2542,12 @@ function ce(a, o, r) {
|
|
|
2539
2542
|
} else
|
|
2540
2543
|
return r.call.apply(r, [a, a].concat(e));
|
|
2541
2544
|
}
|
|
2542
|
-
function
|
|
2545
|
+
function wt(a, o) {
|
|
2543
2546
|
D.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
|
|
2544
2547
|
}
|
|
2545
2548
|
var Te = /* @__PURE__ */ function() {
|
|
2546
2549
|
function a(o) {
|
|
2547
|
-
w(this, a), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(o),
|
|
2550
|
+
w(this, a), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(o), cn(this), this.__args = o, this.__events = {}, this.__onceEvents = {}, this.config = o.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(o);
|
|
2548
2551
|
}
|
|
2549
2552
|
return E(a, [{
|
|
2550
2553
|
key: "beforeCreate",
|
|
@@ -2606,7 +2609,7 @@ var Te = /* @__PURE__ */ function() {
|
|
|
2606
2609
|
value: function(r, t) {
|
|
2607
2610
|
var e = this;
|
|
2608
2611
|
if (!r || !t || !this.player) {
|
|
2609
|
-
|
|
2612
|
+
wt(this.pluginName, "plugin.on(event, callback)");
|
|
2610
2613
|
return;
|
|
2611
2614
|
}
|
|
2612
2615
|
typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -2618,7 +2621,7 @@ var Te = /* @__PURE__ */ function() {
|
|
|
2618
2621
|
value: function(r, t) {
|
|
2619
2622
|
var e = this;
|
|
2620
2623
|
if (!r || !t || !this.player) {
|
|
2621
|
-
|
|
2624
|
+
wt(this.pluginName, "plugin.once(event, callback)");
|
|
2622
2625
|
return;
|
|
2623
2626
|
}
|
|
2624
2627
|
typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -2630,7 +2633,7 @@ var Te = /* @__PURE__ */ function() {
|
|
|
2630
2633
|
value: function(r, t) {
|
|
2631
2634
|
var e = this;
|
|
2632
2635
|
if (!r || !t || !this.player) {
|
|
2633
|
-
|
|
2636
|
+
wt(this.pluginName, "plugin.off(event, callback)");
|
|
2634
2637
|
return;
|
|
2635
2638
|
}
|
|
2636
2639
|
typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -2708,7 +2711,7 @@ var Te = /* @__PURE__ */ function() {
|
|
|
2708
2711
|
var r = this, t = this.player, e = this.pluginName;
|
|
2709
2712
|
this.offAll(), f.clearAllTimers(this), f.checkIsFunction(this.destroy) && this.destroy(), ["player", "playerConfig", "pluginName", "logger", "__args", "__hooks"].map(function(i) {
|
|
2710
2713
|
r[i] = null;
|
|
2711
|
-
}), t.unRegisterPlugin(e),
|
|
2714
|
+
}), t.unRegisterPlugin(e), fn(this);
|
|
2712
2715
|
}
|
|
2713
2716
|
}], [{
|
|
2714
2717
|
key: "defineGetterOrSetter",
|
|
@@ -2727,40 +2730,40 @@ var Te = /* @__PURE__ */ function() {
|
|
|
2727
2730
|
return "pluginName";
|
|
2728
2731
|
}
|
|
2729
2732
|
}]), a;
|
|
2730
|
-
}(),
|
|
2733
|
+
}(), Rr = 9;
|
|
2731
2734
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
2732
2735
|
var Oe = Element.prototype;
|
|
2733
2736
|
Oe.matches = Oe.matchesSelector || Oe.mozMatchesSelector || Oe.msMatchesSelector || Oe.oMatchesSelector || Oe.webkitMatchesSelector;
|
|
2734
2737
|
}
|
|
2735
|
-
function
|
|
2736
|
-
for (; a && a.nodeType !==
|
|
2738
|
+
function Or(a, o) {
|
|
2739
|
+
for (; a && a.nodeType !== Rr; ) {
|
|
2737
2740
|
if (typeof a.matches == "function" && a.matches(o))
|
|
2738
2741
|
return a;
|
|
2739
2742
|
a = a.parentNode;
|
|
2740
2743
|
}
|
|
2741
2744
|
}
|
|
2742
|
-
var
|
|
2743
|
-
function
|
|
2744
|
-
var i =
|
|
2745
|
+
var Mr = Or, Fr = Mr;
|
|
2746
|
+
function Et(a, o, r, t, e) {
|
|
2747
|
+
var i = Br.apply(this, arguments);
|
|
2745
2748
|
return a.addEventListener(r, i, e), {
|
|
2746
2749
|
destroy: function() {
|
|
2747
2750
|
a.removeEventListener(r, i, e);
|
|
2748
2751
|
}
|
|
2749
2752
|
};
|
|
2750
2753
|
}
|
|
2751
|
-
function
|
|
2752
|
-
return typeof a.addEventListener == "function" ?
|
|
2753
|
-
return
|
|
2754
|
+
function Nr(a, o, r, t, e) {
|
|
2755
|
+
return typeof a.addEventListener == "function" ? Et.apply(null, arguments) : typeof r == "function" ? Et.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
|
|
2756
|
+
return Et(i, o, r, t, e);
|
|
2754
2757
|
}));
|
|
2755
2758
|
}
|
|
2756
|
-
function
|
|
2759
|
+
function Br(a, o, r, t) {
|
|
2757
2760
|
return function(e) {
|
|
2758
|
-
e.delegateTarget =
|
|
2761
|
+
e.delegateTarget = Fr(e.target, o), e.delegateTarget && t.call(a, e);
|
|
2759
2762
|
};
|
|
2760
2763
|
}
|
|
2761
|
-
var
|
|
2762
|
-
const
|
|
2763
|
-
var
|
|
2764
|
+
var Hr = Nr;
|
|
2765
|
+
const _i = /* @__PURE__ */ Kt(Hr);
|
|
2766
|
+
var Ur = {
|
|
2764
2767
|
CONTROLS: "controls",
|
|
2765
2768
|
ROOT: "root"
|
|
2766
2769
|
}, H = {
|
|
@@ -2773,29 +2776,29 @@ var Hr = {
|
|
|
2773
2776
|
CONTROLS_RIGHT: "controlsRight",
|
|
2774
2777
|
CONTROLS_CENTER: "controlsCenter",
|
|
2775
2778
|
CONTROLS: "controls"
|
|
2776
|
-
},
|
|
2779
|
+
}, Ci = {
|
|
2777
2780
|
ICON_DISABLE: "xg-icon-disable",
|
|
2778
2781
|
ICON_HIDE: "xg-icon-hide"
|
|
2779
2782
|
};
|
|
2780
|
-
function
|
|
2783
|
+
function St(a) {
|
|
2781
2784
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
2782
2785
|
}
|
|
2783
|
-
function
|
|
2786
|
+
function Vr(a, o) {
|
|
2784
2787
|
return Y(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
|
|
2785
2788
|
}
|
|
2786
|
-
function
|
|
2789
|
+
function jr(a, o) {
|
|
2787
2790
|
return Y(a) === "object" && a.attr && Y(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
|
|
2788
2791
|
o[r] = a.attr[r];
|
|
2789
2792
|
}), o;
|
|
2790
2793
|
}
|
|
2791
|
-
function
|
|
2794
|
+
function ki(a, o) {
|
|
2792
2795
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "", t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, e = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : "", i = null;
|
|
2793
2796
|
if (a instanceof window.Element)
|
|
2794
2797
|
return f.addClass(a, r), Object.keys(t).map(function(n) {
|
|
2795
2798
|
a.setAttribute(n, t[n]);
|
|
2796
2799
|
}), a;
|
|
2797
|
-
if (
|
|
2798
|
-
return t.src =
|
|
2800
|
+
if (St(a) || St(a.url))
|
|
2801
|
+
return t.src = St(a) ? a : a.url || "", i = f.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
|
|
2799
2802
|
if (typeof a == "function")
|
|
2800
2803
|
try {
|
|
2801
2804
|
return i = a(), i instanceof window.Element ? (f.addClass(i, r), Object.keys(t).map(function(n) {
|
|
@@ -2806,14 +2809,14 @@ function Ci(a, o) {
|
|
|
2806
2809
|
}
|
|
2807
2810
|
return typeof a == "string" ? f.createDomFromHtml(a, t, r) : (D.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
2808
2811
|
}
|
|
2809
|
-
function
|
|
2812
|
+
function zr(a, o) {
|
|
2810
2813
|
var r = o.config.icons || o.playerConfig.icons;
|
|
2811
2814
|
Object.keys(a).map(function(t) {
|
|
2812
2815
|
var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
|
|
2813
|
-
r && r[t] && (i =
|
|
2816
|
+
r && r[t] && (i = Vr(r[t], i), n = jr(r[t], n), s = ki(r[t], t, i, n, o.pluginName)), !s && e && (s = ki(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
|
|
2814
2817
|
});
|
|
2815
2818
|
}
|
|
2816
|
-
function
|
|
2819
|
+
function Wr(a, o) {
|
|
2817
2820
|
Object.keys(a).map(function(r) {
|
|
2818
2821
|
Object.defineProperty(o.langText, r, {
|
|
2819
2822
|
get: function() {
|
|
@@ -2837,9 +2840,9 @@ var F = /* @__PURE__ */ function(a) {
|
|
|
2837
2840
|
var i = e.root, n = null;
|
|
2838
2841
|
this.icons = {}, this.root = null, this.parent = null;
|
|
2839
2842
|
var s = this.registerIcons() || {};
|
|
2840
|
-
|
|
2843
|
+
zr(s, this), this.langText = {};
|
|
2841
2844
|
var l = this.registerLanguageTexts() || {};
|
|
2842
|
-
|
|
2845
|
+
Wr(l, this);
|
|
2843
2846
|
var u = "";
|
|
2844
2847
|
try {
|
|
2845
2848
|
u = this.render();
|
|
@@ -2910,12 +2913,12 @@ var F = /* @__PURE__ */ function(a) {
|
|
|
2910
2913
|
}, {
|
|
2911
2914
|
key: "disable",
|
|
2912
2915
|
value: function() {
|
|
2913
|
-
this.config.disable = !0, f.addClass(this.find(".xgplayer-icon"),
|
|
2916
|
+
this.config.disable = !0, f.addClass(this.find(".xgplayer-icon"), Ci.ICON_DISABLE);
|
|
2914
2917
|
}
|
|
2915
2918
|
}, {
|
|
2916
2919
|
key: "enable",
|
|
2917
2920
|
value: function() {
|
|
2918
|
-
this.config.disable = !1, f.removeClass(this.find(".xgplayer-icon"),
|
|
2921
|
+
this.config.disable = !1, f.removeClass(this.find(".xgplayer-icon"), Ci.ICON_DISABLE);
|
|
2919
2922
|
}
|
|
2920
2923
|
}, {
|
|
2921
2924
|
key: "children",
|
|
@@ -3096,11 +3099,11 @@ var F = /* @__PURE__ */ function(a) {
|
|
|
3096
3099
|
if (e instanceof window.Node && typeof s == "function")
|
|
3097
3100
|
if (Array.isArray(n))
|
|
3098
3101
|
n.forEach(function(h) {
|
|
3099
|
-
var d =
|
|
3102
|
+
var d = _i(e, i, h, s, l);
|
|
3100
3103
|
d.key = "".concat(i, "_").concat(h), u.push(d);
|
|
3101
3104
|
});
|
|
3102
3105
|
else {
|
|
3103
|
-
var c =
|
|
3106
|
+
var c = _i(e, i, n, s, l);
|
|
3104
3107
|
c.key = "".concat(i, "_").concat(n), u.push(c);
|
|
3105
3108
|
}
|
|
3106
3109
|
return u;
|
|
@@ -3108,7 +3111,7 @@ var F = /* @__PURE__ */ function(a) {
|
|
|
3108
3111
|
}, {
|
|
3109
3112
|
key: "ROOT_TYPES",
|
|
3110
3113
|
get: function() {
|
|
3111
|
-
return
|
|
3114
|
+
return Ur;
|
|
3112
3115
|
}
|
|
3113
3116
|
}, {
|
|
3114
3117
|
key: "POSITIONS",
|
|
@@ -3116,7 +3119,7 @@ var F = /* @__PURE__ */ function(a) {
|
|
|
3116
3119
|
return H;
|
|
3117
3120
|
}
|
|
3118
3121
|
}]), r;
|
|
3119
|
-
}(Te),
|
|
3122
|
+
}(Te), Gr = /* @__PURE__ */ function() {
|
|
3120
3123
|
function a() {
|
|
3121
3124
|
var o = this;
|
|
3122
3125
|
if (w(this, a), y(this, "__trigger", function(r) {
|
|
@@ -3126,7 +3129,7 @@ var F = /* @__PURE__ */ function(a) {
|
|
|
3126
3129
|
o.__runHandler(r[e].target);
|
|
3127
3130
|
}), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
|
|
3128
3131
|
try {
|
|
3129
|
-
this.observer = new window.ResizeObserver(
|
|
3132
|
+
this.observer = new window.ResizeObserver(pr(this.__trigger, 100, {
|
|
3130
3133
|
trailing: !0
|
|
3131
3134
|
})), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
|
|
3132
3135
|
} catch (r) {
|
|
@@ -3181,17 +3184,17 @@ var F = /* @__PURE__ */ function(a) {
|
|
|
3181
3184
|
}
|
|
3182
3185
|
}]), a;
|
|
3183
3186
|
}(), Ke = null;
|
|
3184
|
-
function Gr(a, o) {
|
|
3185
|
-
return Ke || (Ke = new Wr()), Ke.addObserver(a, o), Ke;
|
|
3186
|
-
}
|
|
3187
3187
|
function Kr(a, o) {
|
|
3188
|
+
return Ke || (Ke = new Gr()), Ke.addObserver(a, o), Ke;
|
|
3189
|
+
}
|
|
3190
|
+
function Yr(a, o) {
|
|
3188
3191
|
Ke.unObserver(a, o);
|
|
3189
3192
|
}
|
|
3190
3193
|
var z = {
|
|
3191
3194
|
pluginGroup: {},
|
|
3192
3195
|
init: function(o) {
|
|
3193
3196
|
var r = o._pluginInfoId;
|
|
3194
|
-
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver &&
|
|
3197
|
+
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && Kr(o.root, function() {
|
|
3195
3198
|
o.resize();
|
|
3196
3199
|
}), this.pluginGroup[r] = {
|
|
3197
3200
|
_originalOptions: o.config || {},
|
|
@@ -3377,7 +3380,7 @@ var z = {
|
|
|
3377
3380
|
destroy: function(o) {
|
|
3378
3381
|
var r = o._pluginInfoId;
|
|
3379
3382
|
if (this.pluginGroup[r]) {
|
|
3380
|
-
|
|
3383
|
+
Yr(o.root);
|
|
3381
3384
|
for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
|
|
3382
3385
|
var n = i[e];
|
|
3383
3386
|
this.unRegister(r, n);
|
|
@@ -3416,7 +3419,7 @@ var z = {
|
|
|
3416
3419
|
MOBILE: "xgplayer-mobile",
|
|
3417
3420
|
MINI: "xgplayer-mini"
|
|
3418
3421
|
};
|
|
3419
|
-
function
|
|
3422
|
+
function bi() {
|
|
3420
3423
|
return {
|
|
3421
3424
|
id: "",
|
|
3422
3425
|
el: null,
|
|
@@ -3463,7 +3466,7 @@ function ki() {
|
|
|
3463
3466
|
ignores: [],
|
|
3464
3467
|
whitelist: [],
|
|
3465
3468
|
inactive: 3e3,
|
|
3466
|
-
lang:
|
|
3469
|
+
lang: vr(),
|
|
3467
3470
|
controls: !0,
|
|
3468
3471
|
marginControls: !1,
|
|
3469
3472
|
fullscreenTarget: null,
|
|
@@ -3499,7 +3502,7 @@ function ki() {
|
|
|
3499
3502
|
}
|
|
3500
3503
|
};
|
|
3501
3504
|
}
|
|
3502
|
-
var
|
|
3505
|
+
var $r = function(o, r) {
|
|
3503
3506
|
var t, e, i;
|
|
3504
3507
|
r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
|
|
3505
3508
|
var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, h = n.icons, d = h === void 0 ? {} : h, g = n.i18n, p = g === void 0 ? [] : g;
|
|
@@ -3508,7 +3511,7 @@ var Yr = function(o, r) {
|
|
|
3508
3511
|
});
|
|
3509
3512
|
var m = o.config.i18n || [];
|
|
3510
3513
|
p.push.apply(p, ne(m)), o.config.i18n = p;
|
|
3511
|
-
},
|
|
3514
|
+
}, Xr = /* @__PURE__ */ function(a) {
|
|
3512
3515
|
S(r, a);
|
|
3513
3516
|
var o = x(r);
|
|
3514
3517
|
function r() {
|
|
@@ -3669,7 +3672,7 @@ var Yr = function(o, r) {
|
|
|
3669
3672
|
};
|
|
3670
3673
|
}
|
|
3671
3674
|
}]), r;
|
|
3672
|
-
}(F),
|
|
3675
|
+
}(F), qr = {
|
|
3673
3676
|
LANG: "en",
|
|
3674
3677
|
TEXT: {
|
|
3675
3678
|
ERROR_TYPES: {
|
|
@@ -3759,12 +3762,12 @@ function $e(a, o) {
|
|
|
3759
3762
|
t === "Object" ? (e !== "Object" && (a[r] = {}), $e(a[r], o[r])) : a[r] = o[r];
|
|
3760
3763
|
}), a;
|
|
3761
3764
|
}
|
|
3762
|
-
function
|
|
3765
|
+
function hn() {
|
|
3763
3766
|
Object.keys(Z.lang.en).map(function(a) {
|
|
3764
3767
|
Z.textKeys[a] = a;
|
|
3765
3768
|
});
|
|
3766
3769
|
}
|
|
3767
|
-
function
|
|
3770
|
+
function Zr(a, o) {
|
|
3768
3771
|
var r = [];
|
|
3769
3772
|
if (o || (o = Z), !!o.lang) {
|
|
3770
3773
|
f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
|
|
@@ -3776,18 +3779,18 @@ function qr(a, o) {
|
|
|
3776
3779
|
}) : r = a;
|
|
3777
3780
|
var t = o, e = t.lang;
|
|
3778
3781
|
r.map(function(i) {
|
|
3779
|
-
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? $e(e[i.LANG] || {}, i.TEXT || {}) :
|
|
3780
|
-
}),
|
|
3782
|
+
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? $e(e[i.LANG] || {}, i.TEXT || {}) : ii(i, o);
|
|
3783
|
+
}), hn();
|
|
3781
3784
|
}
|
|
3782
3785
|
}
|
|
3783
|
-
function
|
|
3786
|
+
function ii(a, o) {
|
|
3784
3787
|
var r = a.LANG;
|
|
3785
3788
|
if (o || (o = Z), !!o.lang) {
|
|
3786
3789
|
var t = a.TEXT || {};
|
|
3787
|
-
r === "zh" && (r = "zh-cn"), o.lang[r] ? $e(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t),
|
|
3790
|
+
r === "zh" && (r = "zh-cn"), o.lang[r] ? $e(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), hn();
|
|
3788
3791
|
}
|
|
3789
3792
|
}
|
|
3790
|
-
function
|
|
3793
|
+
function Jr(a) {
|
|
3791
3794
|
var o, r = {
|
|
3792
3795
|
lang: {},
|
|
3793
3796
|
langKeys: [],
|
|
@@ -3796,8 +3799,8 @@ function Zr(a) {
|
|
|
3796
3799
|
};
|
|
3797
3800
|
return $e(r.lang, Z.lang), (o = r.langKeys).push.apply(o, ne(Z.langKeys)), $e(r.textKeys, Z.textKeys), r;
|
|
3798
3801
|
}
|
|
3799
|
-
|
|
3800
|
-
var
|
|
3802
|
+
ii(qr);
|
|
3803
|
+
var Ve = {
|
|
3801
3804
|
get textKeys() {
|
|
3802
3805
|
return Z.textKeys;
|
|
3803
3806
|
},
|
|
@@ -3810,9 +3813,9 @@ var je = {
|
|
|
3810
3813
|
a[o] = Z.lang[o];
|
|
3811
3814
|
}), Z.lang["zh-cn"] && (a.zh = Z.lang["zh-cn"] || {}), a;
|
|
3812
3815
|
},
|
|
3813
|
-
extend:
|
|
3814
|
-
use:
|
|
3815
|
-
init:
|
|
3816
|
+
extend: Zr,
|
|
3817
|
+
use: ii,
|
|
3818
|
+
init: Jr
|
|
3816
3819
|
}, O = {
|
|
3817
3820
|
INITIAL: 1,
|
|
3818
3821
|
READY: 2,
|
|
@@ -3822,7 +3825,7 @@ var je = {
|
|
|
3822
3825
|
RUNNING: 6,
|
|
3823
3826
|
ENDED: 7,
|
|
3824
3827
|
DESTROYED: 8
|
|
3825
|
-
},
|
|
3828
|
+
}, Ti = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], X = {}, xt = null, dn = /* @__PURE__ */ function(a) {
|
|
3826
3829
|
S(r, a);
|
|
3827
3830
|
var o = x(r);
|
|
3828
3831
|
function r() {
|
|
@@ -3905,11 +3908,11 @@ var je = {
|
|
|
3905
3908
|
}], [{
|
|
3906
3909
|
key: "getInstance",
|
|
3907
3910
|
value: function() {
|
|
3908
|
-
return
|
|
3911
|
+
return xt || (xt = new r()), xt;
|
|
3909
3912
|
}
|
|
3910
3913
|
}]), r;
|
|
3911
|
-
}(
|
|
3912
|
-
function
|
|
3914
|
+
}(zi.EventEmitter);
|
|
3915
|
+
function Qr(a) {
|
|
3913
3916
|
for (var o = Object.keys(X), r = 0; r < o.length; r++) {
|
|
3914
3917
|
var t = X[o[r]];
|
|
3915
3918
|
if (t.root === a)
|
|
@@ -3917,13 +3920,13 @@ function Jr(a) {
|
|
|
3917
3920
|
}
|
|
3918
3921
|
return null;
|
|
3919
3922
|
}
|
|
3920
|
-
var
|
|
3923
|
+
var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /* @__PURE__ */ function(a) {
|
|
3921
3924
|
S(r, a);
|
|
3922
3925
|
var o = x(r);
|
|
3923
3926
|
function r(t) {
|
|
3924
3927
|
var e;
|
|
3925
3928
|
w(this, r);
|
|
3926
|
-
var i = f.deepMerge(
|
|
3929
|
+
var i = f.deepMerge(bi(), t);
|
|
3927
3930
|
e = o.call(this, i), y(v(e), "canPlayFunc", function() {
|
|
3928
3931
|
if (e.config) {
|
|
3929
3932
|
var p = e.config, m = p.autoplay, _ = p.defaultPlaybackRate;
|
|
@@ -3947,7 +3950,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
3947
3950
|
to: !1
|
|
3948
3951
|
}]
|
|
3949
3952
|
});
|
|
3950
|
-
var T =
|
|
3953
|
+
var T = mr(k, e.playerId, Pe);
|
|
3951
3954
|
if (m || k && (k === e._fullscreenEl || T))
|
|
3952
3955
|
_(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(ue, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
3953
3956
|
else if (e.fullscreen) {
|
|
@@ -3967,7 +3970,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
3967
3970
|
e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
|
|
3968
3971
|
}), y(v(e), "_onWebkitendfullscreen", function(p) {
|
|
3969
3972
|
e.onFullscreenChange(p, !1);
|
|
3970
|
-
}),
|
|
3973
|
+
}), cn(v(e), es), e.config = i, e._pluginInfoId = f.generateSessionId(), fr(v(e));
|
|
3971
3974
|
var n = e.constructor.defaultPreset;
|
|
3972
3975
|
if (e.config.presets.length) {
|
|
3973
3976
|
var s = e.config.presets.indexOf("default");
|
|
@@ -3996,12 +3999,12 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
3996
3999
|
}, e._offsetInfo = {
|
|
3997
4000
|
currentTime: -1,
|
|
3998
4001
|
duration: 0
|
|
3999
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n =
|
|
4002
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ve.init(e._pluginInfoId), L.os.isAndroid && L.osVersion > 0 && L.osVersion < 6 && (e.config.autoplay = !1), e.database = new Dr(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
4000
4003
|
isActiveLocked: !1
|
|
4001
4004
|
}, e.instManager = me;
|
|
4002
4005
|
var l = e._initDOM();
|
|
4003
4006
|
if (!l)
|
|
4004
|
-
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))),
|
|
4007
|
+
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), $t(e);
|
|
4005
4008
|
var u = e.config, c = u.definition, h = c === void 0 ? {} : c, d = u.url;
|
|
4006
4009
|
if (!d && h.list && h.list.length > 0) {
|
|
4007
4010
|
var g = h.list.find(function(p) {
|
|
@@ -4010,7 +4013,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4010
4013
|
g || (h.defaultDefinition = h.list[0].definition, g = h.list[0]), e.config.url = g.url, e.curDefinition = g;
|
|
4011
4014
|
}
|
|
4012
4015
|
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), z.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(O.READY), f.setTimeout(v(e), function() {
|
|
4013
|
-
e.emit(
|
|
4016
|
+
e.emit(Jt);
|
|
4014
4017
|
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < O.ATTACHED) && e.start(), e;
|
|
4015
4018
|
}
|
|
4016
4019
|
return E(r, [{
|
|
@@ -4028,7 +4031,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4028
4031
|
msg: "container id can't be empty"
|
|
4029
4032
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
4030
4033
|
}
|
|
4031
|
-
var s =
|
|
4034
|
+
var s = Qr(this.root);
|
|
4032
4035
|
s && (D.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Pe, this.playerId), (e = me) === null || e === void 0 || e.add(this), z.init(this), this._initBaseDoms();
|
|
4033
4036
|
var l = this.constructor.XgVideoProxy;
|
|
4034
4037
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
@@ -4038,7 +4041,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4038
4041
|
this.attachVideoEvents(c), this.media = c;
|
|
4039
4042
|
}
|
|
4040
4043
|
if (this.media.setAttribute(Pe, this.playerId), this.config.controls) {
|
|
4041
|
-
var h = this.config.controls.root || null, d = z.register(this,
|
|
4044
|
+
var h = this.config.controls.root || null, d = z.register(this, Xr, {
|
|
4042
4045
|
root: h
|
|
4043
4046
|
});
|
|
4044
4047
|
this.controls = d;
|
|
@@ -4076,7 +4079,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4076
4079
|
var e = this;
|
|
4077
4080
|
["focus", "blur"].forEach(function(i) {
|
|
4078
4081
|
e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
|
|
4079
|
-
}),
|
|
4082
|
+
}), gi.forEach(function(i) {
|
|
4080
4083
|
document && document.addEventListener(i, e.onFullscreenChange);
|
|
4081
4084
|
}), L.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(ve, this.resize), this.playFunc = function() {
|
|
4082
4085
|
e.config.closeFocusVideoFocus || e.media.focus();
|
|
@@ -4086,7 +4089,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4086
4089
|
key: "_unbindEvents",
|
|
4087
4090
|
value: function() {
|
|
4088
4091
|
var e = this;
|
|
4089
|
-
this.root.removeEventListener("mousemove", this.mousemoveFunc),
|
|
4092
|
+
this.root.removeEventListener("mousemove", this.mousemoveFunc), gi.forEach(function(i) {
|
|
4090
4093
|
document.removeEventListener(i, e.onFullscreenChange);
|
|
4091
4094
|
}), this.playFunc && this.off(Q, this.playFunc), this.off(de, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
|
|
4092
4095
|
}
|
|
@@ -4099,7 +4102,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4099
4102
|
key: "_startInit",
|
|
4100
4103
|
value: function(e) {
|
|
4101
4104
|
var i = this;
|
|
4102
|
-
if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(
|
|
4105
|
+
if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(qi), D.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
|
|
4103
4106
|
this.handleSource && (this._detachSourceEvents(this.media), f.typeOf(e) === "Array" && e.length > 0 ? this._attachSourceEvents(this.media, e) : !this.media.src || this.media.src !== e ? this.media.src = e : e || this.media.removeAttribute("src")), f.typeOf(this.config.volume) === "Number" && (this.volume = this.config.volume);
|
|
4104
4107
|
var n = this.innerContainer ? this.innerContainer : this.root;
|
|
4105
4108
|
this.media instanceof window.Element && !n.contains(this.media) && n.insertBefore(this.media, n.firstChild);
|
|
@@ -4117,7 +4120,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4117
4120
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
4118
4121
|
this._loadingPlugins = [];
|
|
4119
4122
|
var n = this.config.ignores || [], s = this.config.plugins || [], l = this.config.i18n || [];
|
|
4120
|
-
i &&
|
|
4123
|
+
i && Ve.extend(l, this.__i18n);
|
|
4121
4124
|
var u = n.join("||").toLowerCase().split("||"), c = this.plugins;
|
|
4122
4125
|
s.forEach(function(h) {
|
|
4123
4126
|
try {
|
|
@@ -4146,7 +4149,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4146
4149
|
value: function() {
|
|
4147
4150
|
var e = this;
|
|
4148
4151
|
this.config.presets.forEach(function(i) {
|
|
4149
|
-
|
|
4152
|
+
$r(e, i);
|
|
4150
4153
|
});
|
|
4151
4154
|
}
|
|
4152
4155
|
}, {
|
|
@@ -4302,7 +4305,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4302
4305
|
return;
|
|
4303
4306
|
}
|
|
4304
4307
|
n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
|
|
4305
|
-
e._errorTimer = null, e.emit(
|
|
4308
|
+
e._errorTimer = null, e.emit(Qt), e.addClass(C.NOT_ALLOW_AUTOPLAY), e.removeClass(C.ENTER), e.pause(), e.setState(O.NOTALLOW);
|
|
4306
4309
|
}, 0));
|
|
4307
4310
|
}) : (D.logWarn("video.play not return promise"), this.state < O.RUNNING && (this.setState(O.RUNNING), this.removeClass(C.NOT_ALLOW_AUTOPLAY), this.removeClass(C.NO_START), this.removeClass(C.ENTER), this.addClass(C.PLAYING), this.emit(Ie))), i;
|
|
4308
4311
|
}
|
|
@@ -4367,7 +4370,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4367
4370
|
var n = this, s = this.config.definition;
|
|
4368
4371
|
if (Array.isArray(s == null ? void 0 : s.list) && s.list.forEach(function(u) {
|
|
4369
4372
|
(e == null ? void 0 : e.definition) === u.definition && (n.curDefinition = u);
|
|
4370
|
-
}), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(
|
|
4373
|
+
}), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(ti, {
|
|
4371
4374
|
from: i,
|
|
4372
4375
|
to: e
|
|
4373
4376
|
}), !this.hasStart) {
|
|
@@ -4378,11 +4381,11 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4378
4381
|
seamless: s.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
|
|
4379
4382
|
}, e));
|
|
4380
4383
|
l && l.then ? l.then(function() {
|
|
4381
|
-
n.emit(
|
|
4384
|
+
n.emit(zt, {
|
|
4382
4385
|
from: i,
|
|
4383
4386
|
to: e
|
|
4384
4387
|
});
|
|
4385
|
-
}) : this.emit(
|
|
4388
|
+
}) : this.emit(zt, {
|
|
4386
4389
|
from: i,
|
|
4387
4390
|
to: e
|
|
4388
4391
|
});
|
|
@@ -4411,7 +4414,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4411
4414
|
if (s && (i.map(function(u) {
|
|
4412
4415
|
e.deregister(u);
|
|
4413
4416
|
}), n)) {
|
|
4414
|
-
var l =
|
|
4417
|
+
var l = bi();
|
|
4415
4418
|
Object.keys(this.config).keys(function(u) {
|
|
4416
4419
|
e.config[u] !== "undefined" && (u === "plugins" || u === "presets" || u === "el" || u === "id") && (e.config[u] = l[u]);
|
|
4417
4420
|
});
|
|
@@ -4422,7 +4425,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4422
4425
|
value: function() {
|
|
4423
4426
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
4424
4427
|
if (!(!s || !l)) {
|
|
4425
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Pe), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(
|
|
4428
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Pe), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(ei), (e = me) === null || e === void 0 || e.remove(this), z.destroy(this), fn(this), I(P(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
4426
4429
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
4427
4430
|
n.removeChild(u[c]);
|
|
4428
4431
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -4484,8 +4487,8 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4484
4487
|
if (s === this._fullscreenEl)
|
|
4485
4488
|
return this.onFullscreenChange(), Promise.resolve();
|
|
4486
4489
|
try {
|
|
4487
|
-
for (var l = 0; l <
|
|
4488
|
-
var u =
|
|
4490
|
+
for (var l = 0; l < pi.length; l++) {
|
|
4491
|
+
var u = pi[l];
|
|
4489
4492
|
if (e[u]) {
|
|
4490
4493
|
var c = u === "webkitRequestFullscreen" ? e.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT) : e[u]();
|
|
4491
4494
|
return c && c.then ? c : Promise.resolve();
|
|
@@ -4504,8 +4507,8 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4504
4507
|
var i = this.media;
|
|
4505
4508
|
this._fullActionFrom = "exit";
|
|
4506
4509
|
try {
|
|
4507
|
-
for (var n = 0; n <
|
|
4508
|
-
var s =
|
|
4510
|
+
for (var n = 0; n < vi.length; n++) {
|
|
4511
|
+
var s = vi[n];
|
|
4509
4512
|
if (document[s]) {
|
|
4510
4513
|
var l = document[s]();
|
|
4511
4514
|
return l && l.then ? l : Promise.resolve();
|
|
@@ -4569,7 +4572,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4569
4572
|
this.onFocus(e);
|
|
4570
4573
|
return;
|
|
4571
4574
|
}
|
|
4572
|
-
this.emit(
|
|
4575
|
+
this.emit(Zt, V({
|
|
4573
4576
|
paused: this.paused,
|
|
4574
4577
|
ended: this.ended
|
|
4575
4578
|
}, e));
|
|
@@ -4584,7 +4587,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4584
4587
|
this.onBlur(e);
|
|
4585
4588
|
return;
|
|
4586
4589
|
}
|
|
4587
|
-
this._clearUserTimer(), this.emit(
|
|
4590
|
+
this._clearUserTimer(), this.emit(Xi, V({
|
|
4588
4591
|
paused: this.paused,
|
|
4589
4592
|
ended: this.ended
|
|
4590
4593
|
}, e));
|
|
@@ -4669,7 +4672,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4669
4672
|
value: function() {
|
|
4670
4673
|
var e = this;
|
|
4671
4674
|
this.waitTimer && f.clearTimeout(this, this.waitTimer), this.updateAcc("waiting"), this.waitTimer = f.setTimeout(this, function() {
|
|
4672
|
-
e.addClass(C.LOADING), e.emit(
|
|
4675
|
+
e.addClass(C.LOADING), e.emit(Qi), f.clearTimeout(e, e.waitTimer), e.waitTimer = null;
|
|
4673
4676
|
}, this.config.minWaitDelay);
|
|
4674
4677
|
}
|
|
4675
4678
|
}, {
|
|
@@ -4829,7 +4832,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4829
4832
|
}, {
|
|
4830
4833
|
key: "setState",
|
|
4831
4834
|
value: function(e) {
|
|
4832
|
-
D.logInfo("setState", "state from:".concat(
|
|
4835
|
+
D.logInfo("setState", "state from:".concat(Ti[this.state], " to:").concat(Ti[e])), this._state = e;
|
|
4833
4836
|
}
|
|
4834
4837
|
}, {
|
|
4835
4838
|
key: "_preProcessUrl",
|
|
@@ -4903,11 +4906,11 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4903
4906
|
return this.config.lang;
|
|
4904
4907
|
},
|
|
4905
4908
|
set: function(e) {
|
|
4906
|
-
var i =
|
|
4909
|
+
var i = Ve.langKeys.filter(function(n) {
|
|
4907
4910
|
return n === e;
|
|
4908
4911
|
});
|
|
4909
4912
|
if (i.length === 0 && e !== "zh") {
|
|
4910
|
-
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(
|
|
4913
|
+
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(Ve.langKeys.join(), "] "));
|
|
4911
4914
|
return;
|
|
4912
4915
|
}
|
|
4913
4916
|
this.config.lang = e, z.setLang(e, this);
|
|
@@ -4926,7 +4929,7 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4926
4929
|
}, {
|
|
4927
4930
|
key: "version",
|
|
4928
4931
|
get: function() {
|
|
4929
|
-
return
|
|
4932
|
+
return Vt;
|
|
4930
4933
|
}
|
|
4931
4934
|
}, {
|
|
4932
4935
|
key: "playerId",
|
|
@@ -4995,18 +4998,18 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
4995
4998
|
}, {
|
|
4996
4999
|
key: "avgSpeed",
|
|
4997
5000
|
get: function() {
|
|
4998
|
-
return
|
|
5001
|
+
return Ei;
|
|
4999
5002
|
},
|
|
5000
5003
|
set: function(e) {
|
|
5001
|
-
|
|
5004
|
+
Ei = e;
|
|
5002
5005
|
}
|
|
5003
5006
|
}, {
|
|
5004
5007
|
key: "realTimeSpeed",
|
|
5005
5008
|
get: function() {
|
|
5006
|
-
return
|
|
5009
|
+
return wi;
|
|
5007
5010
|
},
|
|
5008
5011
|
set: function(e) {
|
|
5009
|
-
|
|
5012
|
+
wi = e;
|
|
5010
5013
|
}
|
|
5011
5014
|
}, {
|
|
5012
5015
|
key: "offsetCurrentTime",
|
|
@@ -5044,14 +5047,14 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
5044
5047
|
value: function(e, i, n) {
|
|
5045
5048
|
for (var s = arguments.length, l = new Array(s > 3 ? s - 3 : 0), u = 3; u < s; u++)
|
|
5046
5049
|
l[u - 3] = arguments[u];
|
|
5047
|
-
return
|
|
5050
|
+
return mi.call.apply(mi, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5048
5051
|
}
|
|
5049
5052
|
}, {
|
|
5050
5053
|
key: "removePluginHooks",
|
|
5051
5054
|
value: function(e, i, n) {
|
|
5052
5055
|
for (var s = arguments.length, l = new Array(s > 3 ? s - 3 : 0), u = 3; u < s; u++)
|
|
5053
5056
|
l[u - 3] = arguments[u];
|
|
5054
|
-
return
|
|
5057
|
+
return yi.call.apply(yi, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5055
5058
|
}
|
|
5056
5059
|
}, {
|
|
5057
5060
|
key: "setUserActive",
|
|
@@ -5108,10 +5111,10 @@ var Qr = ["play", "pause", "replay", "retry"], Ti = 0, wi = 0, me = null, _t = /
|
|
|
5108
5111
|
r.plugins || (r.plugins = {}), r.plugins[e] = i;
|
|
5109
5112
|
}
|
|
5110
5113
|
}]), r;
|
|
5111
|
-
}(
|
|
5114
|
+
}(Lr);
|
|
5112
5115
|
y(_t, "defaultPreset", null);
|
|
5113
5116
|
y(_t, "XgVideoProxy", null);
|
|
5114
|
-
_t.instManager =
|
|
5117
|
+
_t.instManager = dn.getInstance();
|
|
5115
5118
|
function G() {
|
|
5116
5119
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
5117
5120
|
}
|
|
@@ -5123,7 +5126,7 @@ var ye = {
|
|
|
5123
5126
|
WAIT_END: "waitingEnd",
|
|
5124
5127
|
SEEK_START: "seekStart",
|
|
5125
5128
|
SEEK_END: "seekEnd"
|
|
5126
|
-
},
|
|
5129
|
+
}, ts = /* @__PURE__ */ function(a) {
|
|
5127
5130
|
S(r, a);
|
|
5128
5131
|
var o = x(r);
|
|
5129
5132
|
function r() {
|
|
@@ -5175,18 +5178,18 @@ var ye = {
|
|
|
5175
5178
|
key: "afterCreate",
|
|
5176
5179
|
value: function() {
|
|
5177
5180
|
var e = this;
|
|
5178
|
-
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = G(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(
|
|
5181
|
+
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = G(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(qt, function() {
|
|
5179
5182
|
var i = e._state, n = i.autoplayStart, s = i.isFFSend;
|
|
5180
5183
|
e.startCostTime = G() - e.newPointTime, D.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(ye.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = G(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
|
|
5181
5184
|
}), this.on(ve, function() {
|
|
5182
5185
|
e.vt = G(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
5183
5186
|
var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
|
|
5184
5187
|
D.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(ye.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
5185
|
-
}), this.on(pt, this._onSeeking), this.on(ge, this._onSeeked), this.on(
|
|
5188
|
+
}), this.on(pt, this._onSeeking), this.on(ge, this._onSeeked), this.on(ei, function() {
|
|
5186
5189
|
e.endState("destroy");
|
|
5187
5190
|
}), this.on(mt, function() {
|
|
5188
5191
|
e.endState("urlChange"), D.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
5189
|
-
}), this.on([
|
|
5192
|
+
}), this.on([Xt, de], this._onPlaying), this.on(Ze, this._onWaiting), this.on(qe, this._onError), this.on(yt, function() {
|
|
5190
5193
|
D.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
5191
5194
|
});
|
|
5192
5195
|
}
|
|
@@ -5250,7 +5253,7 @@ var ye = {
|
|
|
5250
5253
|
key: "emitLog",
|
|
5251
5254
|
value: function(e, i) {
|
|
5252
5255
|
var n = this.player;
|
|
5253
|
-
this.emit(
|
|
5256
|
+
this.emit(rn, V({
|
|
5254
5257
|
t: G(),
|
|
5255
5258
|
host: f.getHostFromUrl(n.currentSrc),
|
|
5256
5259
|
vtype: n.vtype,
|
|
@@ -5274,13 +5277,13 @@ var ye = {
|
|
|
5274
5277
|
}
|
|
5275
5278
|
}]), r;
|
|
5276
5279
|
}(F);
|
|
5277
|
-
function
|
|
5280
|
+
function is() {
|
|
5278
5281
|
return new DOMParser().parseFromString(`<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 78 78" width="78" height="78">
|
|
5279
5282
|
<path fill="#fff" transform="translate(20, 20)" d="M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"></path>
|
|
5280
5283
|
</svg>
|
|
5281
5284
|
`, "image/svg+xml").firstChild;
|
|
5282
5285
|
}
|
|
5283
|
-
var
|
|
5286
|
+
var ns = /* @__PURE__ */ function(a) {
|
|
5284
5287
|
S(r, a);
|
|
5285
5288
|
var o = x(r);
|
|
5286
5289
|
function r() {
|
|
@@ -5290,7 +5293,7 @@ var is = /* @__PURE__ */ function(a) {
|
|
|
5290
5293
|
key: "registerIcons",
|
|
5291
5294
|
value: function() {
|
|
5292
5295
|
return {
|
|
5293
|
-
replay:
|
|
5296
|
+
replay: is
|
|
5294
5297
|
};
|
|
5295
5298
|
}
|
|
5296
5299
|
}, {
|
|
@@ -5363,7 +5366,7 @@ var is = /* @__PURE__ */ function(a) {
|
|
|
5363
5366
|
};
|
|
5364
5367
|
}
|
|
5365
5368
|
}]), r;
|
|
5366
|
-
}(F),
|
|
5369
|
+
}(F), rs = /* @__PURE__ */ function(a) {
|
|
5367
5370
|
S(r, a);
|
|
5368
5371
|
var o = x(r);
|
|
5369
5372
|
function r() {
|
|
@@ -5475,20 +5478,20 @@ var is = /* @__PURE__ */ function(a) {
|
|
|
5475
5478
|
}
|
|
5476
5479
|
}]), r;
|
|
5477
5480
|
}(F);
|
|
5478
|
-
function
|
|
5481
|
+
function ni() {
|
|
5479
5482
|
return new DOMParser().parseFromString(`<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
5480
5483
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
|
|
5481
5484
|
</svg>
|
|
5482
5485
|
`, "image/svg+xml").firstChild;
|
|
5483
5486
|
}
|
|
5484
|
-
function
|
|
5487
|
+
function ri() {
|
|
5485
5488
|
return new DOMParser().parseFromString(`<svg class="pause" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
5486
5489
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
|
|
5487
5490
|
</svg>
|
|
5488
5491
|
`, "image/svg+xml").firstChild;
|
|
5489
5492
|
}
|
|
5490
5493
|
var oe = {};
|
|
5491
|
-
function
|
|
5494
|
+
function ss(a, o) {
|
|
5492
5495
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
5493
5496
|
start: null,
|
|
5494
5497
|
end: null
|
|
@@ -5497,7 +5500,7 @@ function rs(a, o) {
|
|
|
5497
5500
|
r.end && r.end(), window.clearTimeout(oe[a].id), delete oe[a];
|
|
5498
5501
|
}, o), oe[a].id;
|
|
5499
5502
|
}
|
|
5500
|
-
function
|
|
5503
|
+
function Si(a) {
|
|
5501
5504
|
if (a) {
|
|
5502
5505
|
window.clearTimeout(a);
|
|
5503
5506
|
return;
|
|
@@ -5506,7 +5509,7 @@ function Ei(a) {
|
|
|
5506
5509
|
window.clearTimeout(oe[o].id), delete oe[o];
|
|
5507
5510
|
});
|
|
5508
5511
|
}
|
|
5509
|
-
var
|
|
5512
|
+
var os = /* @__PURE__ */ function(a) {
|
|
5510
5513
|
S(r, a);
|
|
5511
5514
|
var o = x(r);
|
|
5512
5515
|
function r(t) {
|
|
@@ -5526,14 +5529,14 @@ var ss = /* @__PURE__ */ function(a) {
|
|
|
5526
5529
|
key: "afterCreate",
|
|
5527
5530
|
value: function() {
|
|
5528
5531
|
var e = this, i = this.player, n = this.playerConfig;
|
|
5529
|
-
this.initIcons(), this.once(
|
|
5532
|
+
this.initIcons(), this.once(Jt, function() {
|
|
5530
5533
|
n && (n.lang && n.lang === "en" ? f.addClass(i.root, "lang-is-en") : n.lang === "jp" && f.addClass(i.root, "lang-is-jp"));
|
|
5531
|
-
}), this.on(Ie, this.onAutoplayStart), n.autoplay || this.show(), this.on(
|
|
5534
|
+
}), this.on(Ie, this.onAutoplayStart), n.autoplay || this.show(), this.on(Qt, function() {
|
|
5532
5535
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
5533
5536
|
e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
|
|
5534
5537
|
}), this.on(Q, function() {
|
|
5535
5538
|
e.onPlayPause("play");
|
|
5536
|
-
}), this.on(
|
|
5539
|
+
}), this.on(je, function() {
|
|
5537
5540
|
e.onPlayPause("pause");
|
|
5538
5541
|
}), this.on(yt, function() {
|
|
5539
5542
|
e.onPlayerReset();
|
|
@@ -5554,11 +5557,11 @@ var ss = /* @__PURE__ */ function(a) {
|
|
|
5554
5557
|
value: function() {
|
|
5555
5558
|
return {
|
|
5556
5559
|
startPlay: {
|
|
5557
|
-
icon:
|
|
5560
|
+
icon: ni,
|
|
5558
5561
|
class: "xg-icon-play"
|
|
5559
5562
|
},
|
|
5560
5563
|
startPause: {
|
|
5561
|
-
icon:
|
|
5564
|
+
icon: ri,
|
|
5562
5565
|
class: "xg-icon-pause"
|
|
5563
5566
|
}
|
|
5564
5567
|
};
|
|
@@ -5598,7 +5601,7 @@ var ss = /* @__PURE__ */ function(a) {
|
|
|
5598
5601
|
key: "animate",
|
|
5599
5602
|
value: function(e) {
|
|
5600
5603
|
var i = this;
|
|
5601
|
-
this._animateId =
|
|
5604
|
+
this._animateId = ss("pauseplay", 400, {
|
|
5602
5605
|
start: function() {
|
|
5603
5606
|
f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
|
|
5604
5607
|
},
|
|
@@ -5610,7 +5613,7 @@ var ss = /* @__PURE__ */ function(a) {
|
|
|
5610
5613
|
}, {
|
|
5611
5614
|
key: "endAnimate",
|
|
5612
5615
|
value: function() {
|
|
5613
|
-
f.removeClass(this.root, "interact"),
|
|
5616
|
+
f.removeClass(this.root, "interact"), Si(this._animateId), this._animateId = null;
|
|
5614
5617
|
}
|
|
5615
5618
|
}, {
|
|
5616
5619
|
key: "switchPausePlay",
|
|
@@ -5654,7 +5657,7 @@ var ss = /* @__PURE__ */ function(a) {
|
|
|
5654
5657
|
}, {
|
|
5655
5658
|
key: "destroy",
|
|
5656
5659
|
value: function() {
|
|
5657
|
-
this.unbind(["click", "touchend"], this.clickHandler),
|
|
5660
|
+
this.unbind(["click", "touchend"], this.clickHandler), Si(this._animateId);
|
|
5658
5661
|
}
|
|
5659
5662
|
}, {
|
|
5660
5663
|
key: "render",
|
|
@@ -5681,7 +5684,7 @@ var ss = /* @__PURE__ */ function(a) {
|
|
|
5681
5684
|
};
|
|
5682
5685
|
}
|
|
5683
5686
|
}]), r;
|
|
5684
|
-
}(F),
|
|
5687
|
+
}(F), as = /* @__PURE__ */ function(a) {
|
|
5685
5688
|
S(r, a);
|
|
5686
5689
|
var o = x(r);
|
|
5687
5690
|
function r() {
|
|
@@ -5726,7 +5729,7 @@ function Ee(a, o, r) {
|
|
|
5726
5729
|
return '<div class="xg-tips hide"></div>';
|
|
5727
5730
|
}
|
|
5728
5731
|
}
|
|
5729
|
-
var
|
|
5732
|
+
var xi = /* @__PURE__ */ function(a) {
|
|
5730
5733
|
S(r, a);
|
|
5731
5734
|
var o = x(r);
|
|
5732
5735
|
function r() {
|
|
@@ -5776,12 +5779,12 @@ var Si = /* @__PURE__ */ function(a) {
|
|
|
5776
5779
|
}
|
|
5777
5780
|
}]), r;
|
|
5778
5781
|
}(F);
|
|
5779
|
-
function
|
|
5782
|
+
function Pi(a) {
|
|
5780
5783
|
var o = parseFloat(a), r = a.indexOf("%") === -1 && !Number.isNaN(o);
|
|
5781
5784
|
return r && o;
|
|
5782
5785
|
}
|
|
5783
|
-
var
|
|
5784
|
-
function
|
|
5786
|
+
var si = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], gn = si.length;
|
|
5787
|
+
function ls() {
|
|
5785
5788
|
for (var a = {
|
|
5786
5789
|
width: 0,
|
|
5787
5790
|
height: 0,
|
|
@@ -5789,49 +5792,49 @@ function as() {
|
|
|
5789
5792
|
innerHeight: 0,
|
|
5790
5793
|
outerWidth: 0,
|
|
5791
5794
|
outerHeight: 0
|
|
5792
|
-
}, o = 0; o <
|
|
5793
|
-
var r =
|
|
5795
|
+
}, o = 0; o < gn; o++) {
|
|
5796
|
+
var r = si[o];
|
|
5794
5797
|
a[r] = 0;
|
|
5795
5798
|
}
|
|
5796
5799
|
return a;
|
|
5797
5800
|
}
|
|
5798
|
-
function
|
|
5801
|
+
function us(a) {
|
|
5799
5802
|
var o = window.getComputedStyle(a);
|
|
5800
5803
|
return o;
|
|
5801
5804
|
}
|
|
5802
|
-
function
|
|
5805
|
+
function Ii(a) {
|
|
5803
5806
|
if (typeof a == "string" && (a = document.querySelector(a)), !(!a || Y(a) !== "object" || !a.nodeType)) {
|
|
5804
|
-
var o =
|
|
5807
|
+
var o = us(a);
|
|
5805
5808
|
if (o.display === "none")
|
|
5806
|
-
return
|
|
5809
|
+
return ls();
|
|
5807
5810
|
var r = {};
|
|
5808
5811
|
r.width = a.offsetWidth, r.height = a.offsetHeight;
|
|
5809
|
-
for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e <
|
|
5810
|
-
var i =
|
|
5812
|
+
for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < gn; e++) {
|
|
5813
|
+
var i = si[e], n = o[i], s = parseFloat(n);
|
|
5811
5814
|
r[i] = Number.isNaN(s) ? 0 : s;
|
|
5812
5815
|
}
|
|
5813
|
-
var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, g = r.borderTopWidth + r.borderBottomWidth, p = t, m =
|
|
5816
|
+
var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, g = r.borderTopWidth + r.borderBottomWidth, p = t, m = Pi(o.width);
|
|
5814
5817
|
m !== !1 && (r.width = m + (p ? 0 : l + d));
|
|
5815
|
-
var _ =
|
|
5818
|
+
var _ = Pi(o.height);
|
|
5816
5819
|
return _ !== !1 && (r.height = _ + (p ? 0 : u + g)), r.innerWidth = r.width - (l + d), r.innerHeight = r.height - (u + g), r.outerWidth = r.width + c, r.outerHeight = r.height + h, r;
|
|
5817
5820
|
}
|
|
5818
5821
|
}
|
|
5819
|
-
function
|
|
5822
|
+
function Pt(a, o) {
|
|
5820
5823
|
for (var r = 0; r < a.length; r++) {
|
|
5821
5824
|
var t = a[r];
|
|
5822
5825
|
if (t.identifier === o)
|
|
5823
5826
|
return t;
|
|
5824
5827
|
}
|
|
5825
5828
|
}
|
|
5826
|
-
var
|
|
5829
|
+
var It = {
|
|
5827
5830
|
START: "dragStart",
|
|
5828
5831
|
MOVE: "dragMove",
|
|
5829
5832
|
ENDED: "dragEnded"
|
|
5830
|
-
},
|
|
5833
|
+
}, Ai = {
|
|
5831
5834
|
mousedown: ["mousemove", "mouseup"],
|
|
5832
5835
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
5833
5836
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
5834
|
-
},
|
|
5837
|
+
}, cs = /* @__PURE__ */ function(a) {
|
|
5835
5838
|
S(r, a);
|
|
5836
5839
|
var o = x(r);
|
|
5837
5840
|
function r(t) {
|
|
@@ -5842,13 +5845,13 @@ var Pt = {
|
|
|
5842
5845
|
}, e.startPos = {
|
|
5843
5846
|
x: 0,
|
|
5844
5847
|
y: 0
|
|
5845
|
-
}, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ?
|
|
5848
|
+
}, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ? $t(e) : (e._bindStartEvent(), e);
|
|
5846
5849
|
}
|
|
5847
5850
|
return E(r, [{
|
|
5848
5851
|
key: "_bindStartEvent",
|
|
5849
5852
|
value: function() {
|
|
5850
5853
|
var e = this;
|
|
5851
|
-
"ontouchstart" in window ? this._startKey = "touchstart" : this._startKey = "mousedown", this["on".concat(this._startKey)] = this["on".concat(this._startKey)].bind(this), this._handlerDom.addEventListener(this._startKey, this["on".concat(this._startKey)]),
|
|
5854
|
+
"ontouchstart" in window ? this._startKey = "touchstart" : this._startKey = "mousedown", this["on".concat(this._startKey)] = this["on".concat(this._startKey)].bind(this), this._handlerDom.addEventListener(this._startKey, this["on".concat(this._startKey)]), Ai[this._startKey].map(function(i) {
|
|
5852
5855
|
e["on".concat(i)] = e["on".concat(i)].bind(e);
|
|
5853
5856
|
});
|
|
5854
5857
|
}
|
|
@@ -5862,7 +5865,7 @@ var Pt = {
|
|
|
5862
5865
|
value: function(e) {
|
|
5863
5866
|
var i = this;
|
|
5864
5867
|
if (e) {
|
|
5865
|
-
var n =
|
|
5868
|
+
var n = Ai[this._startKey];
|
|
5866
5869
|
n.map(function(s) {
|
|
5867
5870
|
window.addEventListener(s, i["on".concat(s)]);
|
|
5868
5871
|
}), this._boundPointerEvents = n;
|
|
@@ -5934,19 +5937,19 @@ var Pt = {
|
|
|
5934
5937
|
}, {
|
|
5935
5938
|
key: "ontouchmove",
|
|
5936
5939
|
value: function(e) {
|
|
5937
|
-
var i =
|
|
5940
|
+
var i = Pt(e.changedTouches, this.touchIdentifier);
|
|
5938
5941
|
i && this.dragMove(e, i);
|
|
5939
5942
|
}
|
|
5940
5943
|
}, {
|
|
5941
5944
|
key: "ontouchend",
|
|
5942
5945
|
value: function(e) {
|
|
5943
|
-
var i =
|
|
5946
|
+
var i = Pt(e.changedTouches, this.touchIdentifier);
|
|
5944
5947
|
i && this.dragEnd(e, i), e.preventDefault();
|
|
5945
5948
|
}
|
|
5946
5949
|
}, {
|
|
5947
5950
|
key: "ontouchcancel",
|
|
5948
5951
|
value: function(e) {
|
|
5949
|
-
var i =
|
|
5952
|
+
var i = Pt(e.changedTouches, this.touchIdentifier);
|
|
5950
5953
|
i && this.dragCancel(e, i);
|
|
5951
5954
|
}
|
|
5952
5955
|
}, {
|
|
@@ -5954,19 +5957,19 @@ var Pt = {
|
|
|
5954
5957
|
value: function(e, i) {
|
|
5955
5958
|
if (!(!this._root || this.isDown || !this.isEnabled)) {
|
|
5956
5959
|
this.downPoint = i, this.dragPoint.x = 0, this.dragPoint.y = 0, this._getPosition();
|
|
5957
|
-
var n =
|
|
5960
|
+
var n = Ii(this._root);
|
|
5958
5961
|
this.startPos.x = this.position.x, this.startPos.y = this.position.y, this.startPos.maxY = window.innerHeight - n.height, this.startPos.maxX = window.innerWidth - n.width, this.setLeftTop(), this.isDown = !0, this._bindPostStartEvents(e);
|
|
5959
5962
|
}
|
|
5960
5963
|
}
|
|
5961
5964
|
}, {
|
|
5962
5965
|
key: "dragRealStart",
|
|
5963
5966
|
value: function(e, i) {
|
|
5964
|
-
this.isDragging = !0, this.animate(), this.emit(
|
|
5967
|
+
this.isDragging = !0, this.animate(), this.emit(It.START, this.startPos);
|
|
5965
5968
|
}
|
|
5966
5969
|
}, {
|
|
5967
5970
|
key: "dragEnd",
|
|
5968
5971
|
value: function(e, i) {
|
|
5969
|
-
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(
|
|
5972
|
+
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(It.ENDED)), this.presetInfo());
|
|
5970
5973
|
}
|
|
5971
5974
|
}, {
|
|
5972
5975
|
key: "_dragPointerMove",
|
|
@@ -5982,7 +5985,7 @@ var Pt = {
|
|
|
5982
5985
|
value: function(e, i) {
|
|
5983
5986
|
if (e = e || window.event, !!this.isDown) {
|
|
5984
5987
|
var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, h = u.y;
|
|
5985
|
-
c = this.checkContain("x", c, s), h = this.checkContain("y", h, l), this.position.x = s + c, this.position.y = l + h, this.dragPoint.x = c, this.dragPoint.y = h, this.emit(
|
|
5988
|
+
c = this.checkContain("x", c, s), h = this.checkContain("y", h, l), this.position.x = s + c, this.position.y = l + h, this.dragPoint.x = c, this.dragPoint.y = h, this.emit(It.MOVE, this.position);
|
|
5986
5989
|
}
|
|
5987
5990
|
}
|
|
5988
5991
|
}, {
|
|
@@ -6035,13 +6038,13 @@ var Pt = {
|
|
|
6035
6038
|
key: "_getPositionCoord",
|
|
6036
6039
|
value: function(e, i) {
|
|
6037
6040
|
if (e.indexOf("%") !== -1) {
|
|
6038
|
-
var n =
|
|
6041
|
+
var n = Ii(this._root.parentNode);
|
|
6039
6042
|
return n ? parseFloat(e) / 100 * n[i] : 0;
|
|
6040
6043
|
}
|
|
6041
6044
|
return parseInt(e, 10);
|
|
6042
6045
|
}
|
|
6043
6046
|
}]), r;
|
|
6044
|
-
}(
|
|
6047
|
+
}(Wi), fs = /* @__PURE__ */ function(a) {
|
|
6045
6048
|
S(r, a);
|
|
6046
6049
|
var o = x(r);
|
|
6047
6050
|
function r(t) {
|
|
@@ -6075,7 +6078,7 @@ var Pt = {
|
|
|
6075
6078
|
key: "afterCreate",
|
|
6076
6079
|
value: function() {
|
|
6077
6080
|
var e = this;
|
|
6078
|
-
this.initIcons(), this.on(
|
|
6081
|
+
this.initIcons(), this.on(je, function() {
|
|
6079
6082
|
e.setAttr("data-state", "pause");
|
|
6080
6083
|
}), this.on(Q, function() {
|
|
6081
6084
|
e.setAttr("data-state", "play");
|
|
@@ -6094,10 +6097,10 @@ var Pt = {
|
|
|
6094
6097
|
}
|
|
6095
6098
|
}
|
|
6096
6099
|
};
|
|
6097
|
-
i.controls.registerPlugin(
|
|
6100
|
+
i.controls.registerPlugin(xi, s, xi.pluginName);
|
|
6098
6101
|
}
|
|
6099
6102
|
var l = f.checkTouchSupport() ? "touchend" : "click";
|
|
6100
|
-
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new
|
|
6103
|
+
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new cs(this.player.root, {
|
|
6101
6104
|
handle: this.root
|
|
6102
6105
|
})), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
|
|
6103
6106
|
}
|
|
@@ -6107,11 +6110,11 @@ var Pt = {
|
|
|
6107
6110
|
value: function() {
|
|
6108
6111
|
return {
|
|
6109
6112
|
play: {
|
|
6110
|
-
icon:
|
|
6113
|
+
icon: ni,
|
|
6111
6114
|
class: "xg-icon-play"
|
|
6112
6115
|
},
|
|
6113
6116
|
pause: {
|
|
6114
|
-
icon:
|
|
6117
|
+
icon: ri,
|
|
6115
6118
|
class: "xg-icon-pause"
|
|
6116
6119
|
}
|
|
6117
6120
|
};
|
|
@@ -6195,7 +6198,7 @@ var Pt = {
|
|
|
6195
6198
|
mouseenter: "onMouseEnter",
|
|
6196
6199
|
mouseleave: "onMouseLeave",
|
|
6197
6200
|
mousemove: "onMouseMove"
|
|
6198
|
-
},
|
|
6201
|
+
}, At = ["videoClick", "videoDbClick"], Lt = /* @__PURE__ */ function(a) {
|
|
6199
6202
|
S(r, a);
|
|
6200
6203
|
var o = x(r);
|
|
6201
6204
|
function r() {
|
|
@@ -6212,7 +6215,7 @@ var Pt = {
|
|
|
6212
6215
|
var l = v(t), u = l.playerConfig, c = l.player;
|
|
6213
6216
|
!u.closeFocusVideoFocus && c.media.focus(), u.closeDelayBlur ? c.focus({
|
|
6214
6217
|
autoHide: !1
|
|
6215
|
-
}) : c.focus(), t.emit(
|
|
6218
|
+
}) : c.focus(), t.emit(Ji);
|
|
6216
6219
|
}), y(v(t), "onMouseLeave", function(s) {
|
|
6217
6220
|
var l = t.playerConfig, u = l.closePlayerBlur, c = l.leavePlayerTime, h = l.closeDelayBlur;
|
|
6218
6221
|
!u && !h && (c ? t.player.focus({
|
|
@@ -6220,11 +6223,11 @@ var Pt = {
|
|
|
6220
6223
|
delay: c
|
|
6221
6224
|
}) : t.player.blur({
|
|
6222
6225
|
ignorePaused: !0
|
|
6223
|
-
})), t.emit(
|
|
6226
|
+
})), t.emit(Zi);
|
|
6224
6227
|
}), y(v(t), "onVideoClick", function(s) {
|
|
6225
6228
|
var l = v(t), u = l.player, c = l.playerConfig;
|
|
6226
6229
|
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() {
|
|
6227
|
-
t._clickCount && (t._clickCount--, ce(v(t),
|
|
6230
|
+
t._clickCount && (t._clickCount--, ce(v(t), At[0], function(h, d) {
|
|
6228
6231
|
t.switchPlayPause(d.e);
|
|
6229
6232
|
}, {
|
|
6230
6233
|
e: s,
|
|
@@ -6238,7 +6241,7 @@ var Pt = {
|
|
|
6238
6241
|
t._clickCount = 0;
|
|
6239
6242
|
return;
|
|
6240
6243
|
}
|
|
6241
|
-
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), ce(v(t),
|
|
6244
|
+
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), ce(v(t), At[1], function(h, d) {
|
|
6242
6245
|
t.emitUserAction(d.e, "switch_fullscreen", {
|
|
6243
6246
|
props: "fullscreen",
|
|
6244
6247
|
from: u.fullscreen,
|
|
@@ -6255,7 +6258,7 @@ var Pt = {
|
|
|
6255
6258
|
key: "afterCreate",
|
|
6256
6259
|
value: function() {
|
|
6257
6260
|
var e = this;
|
|
6258
|
-
this._clickCount = 0,
|
|
6261
|
+
this._clickCount = 0, At.map(function(n) {
|
|
6259
6262
|
e.__hooks[n] = null;
|
|
6260
6263
|
});
|
|
6261
6264
|
var i = this.playerConfig.isMobileSimulateMode;
|
|
@@ -6311,21 +6314,21 @@ var Pt = {
|
|
|
6311
6314
|
TOUCH_MOVE: "touchmove",
|
|
6312
6315
|
TOUCH_START: "touchstart",
|
|
6313
6316
|
TOUCH_END: "touchend"
|
|
6314
|
-
},
|
|
6317
|
+
}, hs = {
|
|
6315
6318
|
start: "touchstart",
|
|
6316
6319
|
end: "touchend",
|
|
6317
6320
|
move: "touchmove",
|
|
6318
6321
|
cancel: "touchcancel"
|
|
6319
|
-
},
|
|
6322
|
+
}, ds = {
|
|
6320
6323
|
start: "mousedown",
|
|
6321
6324
|
end: "mouseup",
|
|
6322
6325
|
move: "mousemove",
|
|
6323
6326
|
cancel: "mouseleave"
|
|
6324
6327
|
};
|
|
6325
|
-
function
|
|
6328
|
+
function Li(a) {
|
|
6326
6329
|
return a && a.length > 0 ? a[a.length - 1] : null;
|
|
6327
6330
|
}
|
|
6328
|
-
function
|
|
6331
|
+
function gs() {
|
|
6329
6332
|
return {
|
|
6330
6333
|
pressDelay: 600,
|
|
6331
6334
|
dbClickDelay: 200,
|
|
@@ -6335,13 +6338,13 @@ function ds() {
|
|
|
6335
6338
|
needPreventDefault: !0
|
|
6336
6339
|
};
|
|
6337
6340
|
}
|
|
6338
|
-
var
|
|
6341
|
+
var ps = /* @__PURE__ */ function() {
|
|
6339
6342
|
function a(o) {
|
|
6340
6343
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
6341
6344
|
eventType: "touch"
|
|
6342
6345
|
};
|
|
6343
6346
|
w(this, a), y(this, "onTouchStart", function(e) {
|
|
6344
|
-
var i = r._pos, n = r.root, s =
|
|
6347
|
+
var i = r._pos, n = r.root, s = Li(e.touches);
|
|
6345
6348
|
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(_e.TOUCH_START, e);
|
|
6346
6349
|
}), y(this, "onTouchCancel", function(e) {
|
|
6347
6350
|
r.onTouchEnd(e);
|
|
@@ -6349,16 +6352,16 @@ var gs = /* @__PURE__ */ function() {
|
|
|
6349
6352
|
var i = r._pos, n = r.root;
|
|
6350
6353
|
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(_e.PRESS_END, e), r.trigger(_e.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
|
|
6351
6354
|
}), y(this, "onTouchMove", function(e) {
|
|
6352
|
-
var i = r._pos, n = r.config, s =
|
|
6355
|
+
var i = r._pos, n = r.config, s = Li(e.touches), l = s ? parseInt(s.pageX, 10) : e.pageX, u = s ? parseInt(s.pageY, 10) : e.pageX, c = l - i.x, h = u - i.y;
|
|
6353
6356
|
Math.abs(h) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(_e.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(_e.TOUCH_MOVE, e));
|
|
6354
6357
|
}), this._pos = {
|
|
6355
6358
|
moving: !1,
|
|
6356
6359
|
start: !1,
|
|
6357
6360
|
x: 0,
|
|
6358
6361
|
y: 0
|
|
6359
|
-
}, this.config =
|
|
6362
|
+
}, this.config = gs(), Object.keys(t).map(function(e) {
|
|
6360
6363
|
r.config[e] = t[e];
|
|
6361
|
-
}), this.root = o, this.events = t.eventType === "mouse" ?
|
|
6364
|
+
}), this.root = o, this.events = t.eventType === "mouse" ? ds : hs, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
6362
6365
|
}
|
|
6363
6366
|
return E(a, [{
|
|
6364
6367
|
key: "_initEvent",
|
|
@@ -6437,7 +6440,7 @@ var gs = /* @__PURE__ */ function() {
|
|
|
6437
6440
|
}
|
|
6438
6441
|
}]), a;
|
|
6439
6442
|
}();
|
|
6440
|
-
function
|
|
6443
|
+
function vs() {
|
|
6441
6444
|
return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
6442
6445
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
6443
6446
|
<path opacity="0.54"
|
|
@@ -6451,7 +6454,7 @@ var Me = {
|
|
|
6451
6454
|
SEEKING: "seeking",
|
|
6452
6455
|
PLAYBACK: "playbackrate",
|
|
6453
6456
|
LIGHT: ""
|
|
6454
|
-
},
|
|
6457
|
+
}, Dt = ["videoClick", "videoDbClick"], ms = /* @__PURE__ */ function(a) {
|
|
6455
6458
|
S(r, a);
|
|
6456
6459
|
var o = x(r);
|
|
6457
6460
|
function r(t) {
|
|
@@ -6523,7 +6526,7 @@ var Me = {
|
|
|
6523
6526
|
value: function() {
|
|
6524
6527
|
return {
|
|
6525
6528
|
seekTipIcon: {
|
|
6526
|
-
icon:
|
|
6529
|
+
icon: vs,
|
|
6527
6530
|
class: "xg-seek-pre"
|
|
6528
6531
|
}
|
|
6529
6532
|
};
|
|
@@ -6532,13 +6535,13 @@ var Me = {
|
|
|
6532
6535
|
key: "afterCreate",
|
|
6533
6536
|
value: function() {
|
|
6534
6537
|
var e = this;
|
|
6535
|
-
|
|
6538
|
+
Dt.map(function(d) {
|
|
6536
6539
|
e.__hooks[d] = null;
|
|
6537
6540
|
});
|
|
6538
6541
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
6539
6542
|
i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), f.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = f.createDom("xg-mask", "", {}, "xgmask"), s.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
|
|
6540
6543
|
var l = this.domEventType === "mouse" ? "mouse" : "touch";
|
|
6541
|
-
this.touch = new
|
|
6544
|
+
this.touch = new ps(this.root, {
|
|
6542
6545
|
eventType: l,
|
|
6543
6546
|
needPreventDefault: !this.config.disableGesture
|
|
6544
6547
|
}), this.root.addEventListener("contextmenu", function(d) {
|
|
@@ -6715,7 +6718,7 @@ var Me = {
|
|
|
6715
6718
|
key: "onClick",
|
|
6716
6719
|
value: function(e) {
|
|
6717
6720
|
var i = this, n = this.player;
|
|
6718
|
-
ce(this,
|
|
6721
|
+
ce(this, Dt[0], function(s, l) {
|
|
6719
6722
|
i.clickHandler(l.e);
|
|
6720
6723
|
}, {
|
|
6721
6724
|
e,
|
|
@@ -6726,7 +6729,7 @@ var Me = {
|
|
|
6726
6729
|
key: "onDbClick",
|
|
6727
6730
|
value: function(e) {
|
|
6728
6731
|
var i = this, n = this.player;
|
|
6729
|
-
ce(this,
|
|
6732
|
+
ce(this, Dt[1], function(s, l) {
|
|
6730
6733
|
i.dbClickHandler(l.e);
|
|
6731
6734
|
}, {
|
|
6732
6735
|
e,
|
|
@@ -6880,14 +6883,14 @@ var Me = {
|
|
|
6880
6883
|
}
|
|
6881
6884
|
}]), r;
|
|
6882
6885
|
}(F);
|
|
6883
|
-
function
|
|
6886
|
+
function ys(a) {
|
|
6884
6887
|
a.preventDefault(), a.returnValue = !1;
|
|
6885
6888
|
}
|
|
6886
|
-
function
|
|
6889
|
+
function Di(a) {
|
|
6887
6890
|
var o = a.tagName;
|
|
6888
6891
|
return !!(o === "INPUT" || o === "TEXTAREA" || a.isContentEditable);
|
|
6889
6892
|
}
|
|
6890
|
-
var
|
|
6893
|
+
var Ri = /* @__PURE__ */ function(a) {
|
|
6891
6894
|
S(r, a);
|
|
6892
6895
|
var o = x(r);
|
|
6893
6896
|
function r() {
|
|
@@ -6898,11 +6901,11 @@ var Di = /* @__PURE__ */ function(a) {
|
|
|
6898
6901
|
return t = o.call.apply(o, [this].concat(i)), y(v(t), "onBodyKeyDown", function(s) {
|
|
6899
6902
|
if (t.player) {
|
|
6900
6903
|
var l = s || window.event, u = l.keyCode, c = v(t), h = c._keyState, d = c.player, g = t.config, p = g.disable, m = g.disableBodyTrigger, _ = g.isIgnoreUserActive;
|
|
6901
|
-
if (p || m || !(d.isUserActive || _) ||
|
|
6904
|
+
if (p || m || !(d.isUserActive || _) || Di(l.target) || !t.checkIsVisible() || l.metaKey || l.altKey || l.ctrlKey) {
|
|
6902
6905
|
h.isBodyKeyDown = !1;
|
|
6903
6906
|
return;
|
|
6904
6907
|
}
|
|
6905
|
-
!s.repeat && !h.isKeyDown && ((l.target === document.body || t.config.isGlobalTrigger && !
|
|
6908
|
+
!s.repeat && !h.isKeyDown && ((l.target === document.body || t.config.isGlobalTrigger && !Di(l.target)) && t.checkCode(u, !0) && (h.isBodyKeyDown = !0), document.addEventListener("keyup", t.onBodyKeyUp)), h.isBodyKeyDown && t.handleKeyDown(l);
|
|
6906
6909
|
}
|
|
6907
6910
|
}), y(v(t), "onBodyKeyUp", function(s) {
|
|
6908
6911
|
t.player && (document.removeEventListener("keyup", t.onBodyKeyUp), t.handleKeyUp(s));
|
|
@@ -7123,13 +7126,13 @@ var Di = /* @__PURE__ */ function(a) {
|
|
|
7123
7126
|
if (h === e) {
|
|
7124
7127
|
if (!d && !(n && p)) {
|
|
7125
7128
|
var m = n && g || c;
|
|
7126
|
-
typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(
|
|
7129
|
+
typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(nn, V({
|
|
7127
7130
|
key: s[l],
|
|
7128
7131
|
target: i.target,
|
|
7129
7132
|
isPress: n
|
|
7130
7133
|
}, this.keyCodeMap[s[l]]));
|
|
7131
7134
|
}
|
|
7132
|
-
|
|
7135
|
+
ys(i), i.stopPropagation();
|
|
7133
7136
|
break;
|
|
7134
7137
|
}
|
|
7135
7138
|
}
|
|
@@ -7171,13 +7174,13 @@ var Di = /* @__PURE__ */ function(a) {
|
|
|
7171
7174
|
}
|
|
7172
7175
|
}]), r;
|
|
7173
7176
|
}(Te);
|
|
7174
|
-
function
|
|
7177
|
+
function _s() {
|
|
7175
7178
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
7176
7179
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
7177
7180
|
</svg>
|
|
7178
7181
|
`, "image/svg+xml").firstChild;
|
|
7179
7182
|
}
|
|
7180
|
-
var
|
|
7183
|
+
var Cs = /* @__PURE__ */ function(a) {
|
|
7181
7184
|
S(r, a);
|
|
7182
7185
|
var o = x(r);
|
|
7183
7186
|
function r() {
|
|
@@ -7187,7 +7190,7 @@ var _s = /* @__PURE__ */ function(a) {
|
|
|
7187
7190
|
key: "registerIcons",
|
|
7188
7191
|
value: function() {
|
|
7189
7192
|
return {
|
|
7190
|
-
loadingIcon:
|
|
7193
|
+
loadingIcon: _s
|
|
7191
7194
|
};
|
|
7192
7195
|
}
|
|
7193
7196
|
}, {
|
|
@@ -7216,7 +7219,7 @@ var _s = /* @__PURE__ */ function(a) {
|
|
|
7216
7219
|
};
|
|
7217
7220
|
}
|
|
7218
7221
|
}]), r;
|
|
7219
|
-
}(F),
|
|
7222
|
+
}(F), ks = [{
|
|
7220
7223
|
tag: "xg-cache",
|
|
7221
7224
|
className: "xgplayer-progress-cache",
|
|
7222
7225
|
styleKey: "cachedColor"
|
|
@@ -7224,7 +7227,7 @@ var _s = /* @__PURE__ */ function(a) {
|
|
|
7224
7227
|
tag: "xg-played",
|
|
7225
7228
|
className: "xgplayer-progress-played",
|
|
7226
7229
|
styleKey: "playedColor"
|
|
7227
|
-
}],
|
|
7230
|
+
}], bs = /* @__PURE__ */ function() {
|
|
7228
7231
|
function a(o) {
|
|
7229
7232
|
w(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
7230
7233
|
percent: 1
|
|
@@ -7411,7 +7414,7 @@ var _s = /* @__PURE__ */ function(a) {
|
|
|
7411
7414
|
var l = f.createDom("xg-inner", "", {
|
|
7412
7415
|
style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
|
|
7413
7416
|
}, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
|
|
7414
|
-
return r.root.appendChild(l),
|
|
7417
|
+
return r.root.appendChild(l), ks.forEach(function(u) {
|
|
7415
7418
|
l.appendChild(f.createDom(u.tag, "", {
|
|
7416
7419
|
style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
|
|
7417
7420
|
}, u.className));
|
|
@@ -7424,10 +7427,10 @@ var _s = /* @__PURE__ */ function(a) {
|
|
|
7424
7427
|
return this.root;
|
|
7425
7428
|
}
|
|
7426
7429
|
}]), a;
|
|
7427
|
-
}(),
|
|
7430
|
+
}(), Oi = {
|
|
7428
7431
|
POINT: "inner-focus-point",
|
|
7429
7432
|
HIGHLIGHT: "inner-focus-highlight"
|
|
7430
|
-
},
|
|
7433
|
+
}, Ts = /* @__PURE__ */ function(a) {
|
|
7431
7434
|
S(r, a);
|
|
7432
7435
|
var o = x(r);
|
|
7433
7436
|
function r(t) {
|
|
@@ -7557,7 +7560,7 @@ var _s = /* @__PURE__ */ function(a) {
|
|
|
7557
7560
|
e.emitUserAction("fragment_focus", "fragment_focus", u);
|
|
7558
7561
|
}
|
|
7559
7562
|
});
|
|
7560
|
-
this.innerList ? this.innerList.reset(s) : (this.innerList = new
|
|
7563
|
+
this.innerList ? this.innerList.reset(s) : (this.innerList = new bs(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
|
|
7561
7564
|
e[l] = e.innerList[l].bind(e.innerList);
|
|
7562
7565
|
}));
|
|
7563
7566
|
}
|
|
@@ -7591,7 +7594,7 @@ var _s = /* @__PURE__ */ function(a) {
|
|
|
7591
7594
|
e.onTimeupdate();
|
|
7592
7595
|
}), this.on(ge, function() {
|
|
7593
7596
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
7594
|
-
}), this.on(
|
|
7597
|
+
}), this.on($i, function() {
|
|
7595
7598
|
e.onCacheUpdate();
|
|
7596
7599
|
}), this.on(Le, function() {
|
|
7597
7600
|
e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
|
|
@@ -7820,7 +7823,7 @@ var _s = /* @__PURE__ */ function(a) {
|
|
|
7820
7823
|
fragments: [{
|
|
7821
7824
|
percent: 1
|
|
7822
7825
|
}],
|
|
7823
|
-
fragFocusClass:
|
|
7826
|
+
fragFocusClass: Oi.POINT,
|
|
7824
7827
|
fragClass: "",
|
|
7825
7828
|
fragAutoFocus: !1,
|
|
7826
7829
|
miniMoveStep: 5,
|
|
@@ -7835,7 +7838,7 @@ var _s = /* @__PURE__ */ function(a) {
|
|
|
7835
7838
|
}, {
|
|
7836
7839
|
key: "FRAGMENT_FOCUS_CLASS",
|
|
7837
7840
|
get: function() {
|
|
7838
|
-
return
|
|
7841
|
+
return Oi;
|
|
7839
7842
|
}
|
|
7840
7843
|
}]), r;
|
|
7841
7844
|
}(F), Re = /* @__PURE__ */ function(a) {
|
|
@@ -7867,7 +7870,7 @@ var _s = /* @__PURE__ */ function(a) {
|
|
|
7867
7870
|
this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
|
|
7868
7871
|
}
|
|
7869
7872
|
}]), r;
|
|
7870
|
-
}(F),
|
|
7873
|
+
}(F), ws = /* @__PURE__ */ function(a) {
|
|
7871
7874
|
S(r, a);
|
|
7872
7875
|
var o = x(r);
|
|
7873
7876
|
function r() {
|
|
@@ -7879,7 +7882,7 @@ var _s = /* @__PURE__ */ function(a) {
|
|
|
7879
7882
|
var e = this;
|
|
7880
7883
|
I(P(r.prototype), "afterCreate", this).call(this);
|
|
7881
7884
|
var i = this.player, n = this.config;
|
|
7882
|
-
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([
|
|
7885
|
+
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([je, qe, De], function() {
|
|
7883
7886
|
e.animate(i.paused);
|
|
7884
7887
|
}), this.on(Q, function() {
|
|
7885
7888
|
e.animate(i.paused);
|
|
@@ -7890,11 +7893,11 @@ var _s = /* @__PURE__ */ function(a) {
|
|
|
7890
7893
|
value: function() {
|
|
7891
7894
|
return {
|
|
7892
7895
|
play: {
|
|
7893
|
-
icon:
|
|
7896
|
+
icon: ni,
|
|
7894
7897
|
class: "xg-icon-play"
|
|
7895
7898
|
},
|
|
7896
7899
|
pause: {
|
|
7897
|
-
icon:
|
|
7900
|
+
icon: ri,
|
|
7898
7901
|
class: "xg-icon-pause"
|
|
7899
7902
|
}
|
|
7900
7903
|
};
|
|
@@ -7955,14 +7958,14 @@ var _s = /* @__PURE__ */ function(a) {
|
|
|
7955
7958
|
}
|
|
7956
7959
|
}]), r;
|
|
7957
7960
|
}(Re);
|
|
7958
|
-
function
|
|
7961
|
+
function Es() {
|
|
7959
7962
|
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">
|
|
7960
7963
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
7961
7964
|
<path d="M11.2374369,14 L17.6187184,7.61871843 C17.9604272,7.27700968 17.9604272,6.72299032 17.6187184,6.38128157 C17.2770097,6.03957281 16.7229903,6.03957281 16.3812816,6.38128157 L9.38128157,13.3812816 C9.03957281,13.7229903 9.03957281,14.2770097 9.38128157,14.6187184 L16.3812816,21.6187184 C16.7229903,21.9604272 17.2770097,21.9604272 17.6187184,21.6187184 C17.9604272,21.2770097 17.9604272,20.7229903 17.6187184,20.3812816 L11.2374369,14 L11.2374369,14 Z" fill="#FFFFFF"></path>
|
|
7962
7965
|
</g>
|
|
7963
7966
|
</svg>`, "image/svg+xml").firstChild;
|
|
7964
7967
|
}
|
|
7965
|
-
var
|
|
7968
|
+
var Ss = /* @__PURE__ */ function(a) {
|
|
7966
7969
|
S(r, a);
|
|
7967
7970
|
var o = x(r);
|
|
7968
7971
|
function r() {
|
|
@@ -7981,7 +7984,7 @@ var Es = /* @__PURE__ */ function(a) {
|
|
|
7981
7984
|
value: function() {
|
|
7982
7985
|
return {
|
|
7983
7986
|
screenBack: {
|
|
7984
|
-
icon:
|
|
7987
|
+
icon: Es,
|
|
7985
7988
|
class: "xg-fullscreen-back"
|
|
7986
7989
|
}
|
|
7987
7990
|
};
|
|
@@ -8023,19 +8026,19 @@ var Es = /* @__PURE__ */ function(a) {
|
|
|
8023
8026
|
}
|
|
8024
8027
|
}]), r;
|
|
8025
8028
|
}(F);
|
|
8026
|
-
function
|
|
8029
|
+
function xs() {
|
|
8027
8030
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
8028
8031
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>
|
|
8029
8032
|
</svg>
|
|
8030
8033
|
`, "image/svg+xml").firstChild;
|
|
8031
8034
|
}
|
|
8032
|
-
function
|
|
8035
|
+
function Ps() {
|
|
8033
8036
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
8034
8037
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>
|
|
8035
8038
|
</svg>
|
|
8036
8039
|
`, "image/svg+xml").firstChild;
|
|
8037
8040
|
}
|
|
8038
|
-
var
|
|
8041
|
+
var Is = /* @__PURE__ */ function(a) {
|
|
8039
8042
|
S(r, a);
|
|
8040
8043
|
var o = x(r);
|
|
8041
8044
|
function r() {
|
|
@@ -8070,7 +8073,7 @@ var Ps = /* @__PURE__ */ function(a) {
|
|
|
8070
8073
|
var u = e.find(".xg-tips");
|
|
8071
8074
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
8072
8075
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
8073
|
-
plugin:
|
|
8076
|
+
plugin: Ss,
|
|
8074
8077
|
options: {
|
|
8075
8078
|
config: {
|
|
8076
8079
|
onClick: function(u) {
|
|
@@ -8086,11 +8089,11 @@ var Ps = /* @__PURE__ */ function(a) {
|
|
|
8086
8089
|
value: function() {
|
|
8087
8090
|
return {
|
|
8088
8091
|
fullscreen: {
|
|
8089
|
-
icon:
|
|
8092
|
+
icon: xs,
|
|
8090
8093
|
class: "xg-get-fullscreen"
|
|
8091
8094
|
},
|
|
8092
8095
|
exitFullscreen: {
|
|
8093
|
-
icon:
|
|
8096
|
+
icon: Ps,
|
|
8094
8097
|
class: "xg-exit-fullscreen"
|
|
8095
8098
|
}
|
|
8096
8099
|
};
|
|
@@ -8171,7 +8174,7 @@ var Ps = /* @__PURE__ */ function(a) {
|
|
|
8171
8174
|
};
|
|
8172
8175
|
}
|
|
8173
8176
|
}]), r;
|
|
8174
|
-
}(Re),
|
|
8177
|
+
}(Re), As = /* @__PURE__ */ function(a) {
|
|
8175
8178
|
S(r, a);
|
|
8176
8179
|
var o = x(r);
|
|
8177
8180
|
function r(t) {
|
|
@@ -8321,7 +8324,7 @@ var Ps = /* @__PURE__ */ function(a) {
|
|
|
8321
8324
|
};
|
|
8322
8325
|
}
|
|
8323
8326
|
}]), r;
|
|
8324
|
-
}(F),
|
|
8327
|
+
}(F), Ls = /* @__PURE__ */ function(a) {
|
|
8325
8328
|
S(r, a);
|
|
8326
8329
|
var o = x(r);
|
|
8327
8330
|
function r() {
|
|
@@ -8459,28 +8462,28 @@ var Ps = /* @__PURE__ */ function(a) {
|
|
|
8459
8462
|
}
|
|
8460
8463
|
}]), r;
|
|
8461
8464
|
}(Te);
|
|
8462
|
-
function
|
|
8465
|
+
function Ds() {
|
|
8463
8466
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
8464
8467
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
8465
8468
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
8466
8469
|
</svg>
|
|
8467
8470
|
`, "image/svg+xml").firstChild;
|
|
8468
8471
|
}
|
|
8469
|
-
function
|
|
8472
|
+
function Rs() {
|
|
8470
8473
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
8471
8474
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
8472
8475
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
8473
8476
|
</svg>
|
|
8474
8477
|
`, "image/svg+xml").firstChild;
|
|
8475
8478
|
}
|
|
8476
|
-
function
|
|
8479
|
+
function Os() {
|
|
8477
8480
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
8478
8481
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
8479
8482
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>
|
|
8480
8483
|
</svg>
|
|
8481
8484
|
`, "image/svg+xml").firstChild;
|
|
8482
8485
|
}
|
|
8483
|
-
var
|
|
8486
|
+
var Ms = /* @__PURE__ */ function(a) {
|
|
8484
8487
|
S(r, a);
|
|
8485
8488
|
var o = x(r);
|
|
8486
8489
|
function r() {
|
|
@@ -8528,15 +8531,15 @@ var Os = /* @__PURE__ */ function(a) {
|
|
|
8528
8531
|
value: function() {
|
|
8529
8532
|
return {
|
|
8530
8533
|
volumeSmall: {
|
|
8531
|
-
icon:
|
|
8534
|
+
icon: Rs,
|
|
8532
8535
|
class: "xg-volume-small"
|
|
8533
8536
|
},
|
|
8534
8537
|
volumeLarge: {
|
|
8535
|
-
icon:
|
|
8538
|
+
icon: Ds,
|
|
8536
8539
|
class: "xg-volume"
|
|
8537
8540
|
},
|
|
8538
8541
|
volumeMuted: {
|
|
8539
|
-
icon:
|
|
8542
|
+
icon: Os,
|
|
8540
8543
|
class: "xg-volume-mute"
|
|
8541
8544
|
}
|
|
8542
8545
|
};
|
|
@@ -8558,7 +8561,7 @@ var Os = /* @__PURE__ */ function(a) {
|
|
|
8558
8561
|
pre: function(u) {
|
|
8559
8562
|
u.preventDefault(), u.stopPropagation();
|
|
8560
8563
|
}
|
|
8561
|
-
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), L.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(
|
|
8564
|
+
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), L.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(Ki, this.onVolumeChange), this.once(ve, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
|
|
8562
8565
|
}
|
|
8563
8566
|
}
|
|
8564
8567
|
}, {
|
|
@@ -8675,7 +8678,7 @@ var Os = /* @__PURE__ */ function(a) {
|
|
|
8675
8678
|
}
|
|
8676
8679
|
}]), r;
|
|
8677
8680
|
}(F);
|
|
8678
|
-
function
|
|
8681
|
+
function Fs() {
|
|
8679
8682
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
8680
8683
|
<g clip-path="url(#clip0)">
|
|
8681
8684
|
<path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"/>
|
|
@@ -8689,7 +8692,7 @@ function Ms() {
|
|
|
8689
8692
|
</svg>
|
|
8690
8693
|
`, "image/svg+xml").firstChild;
|
|
8691
8694
|
}
|
|
8692
|
-
var
|
|
8695
|
+
var Ns = /* @__PURE__ */ function(a) {
|
|
8693
8696
|
S(r, a);
|
|
8694
8697
|
var o = x(r);
|
|
8695
8698
|
function r(t) {
|
|
@@ -8746,13 +8749,13 @@ var Fs = /* @__PURE__ */ function(a) {
|
|
|
8746
8749
|
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;
|
|
8747
8750
|
this.rotateDeg || (this.rotateDeg = 0);
|
|
8748
8751
|
var l = e ? 1 : -1;
|
|
8749
|
-
this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(
|
|
8752
|
+
this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(en, this.rotateDeg * 360);
|
|
8750
8753
|
}
|
|
8751
8754
|
}, {
|
|
8752
8755
|
key: "registerIcons",
|
|
8753
8756
|
value: function() {
|
|
8754
8757
|
return {
|
|
8755
|
-
rotate:
|
|
8758
|
+
rotate: Fs
|
|
8756
8759
|
};
|
|
8757
8760
|
}
|
|
8758
8761
|
}, {
|
|
@@ -8785,14 +8788,14 @@ var Fs = /* @__PURE__ */ function(a) {
|
|
|
8785
8788
|
}
|
|
8786
8789
|
}]), r;
|
|
8787
8790
|
}(Re);
|
|
8788
|
-
function
|
|
8791
|
+
function Bs() {
|
|
8789
8792
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8790
8793
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
8791
8794
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
8792
8795
|
fill="white" />
|
|
8793
8796
|
</svg>`, "image/svg+xml").firstChild;
|
|
8794
8797
|
}
|
|
8795
|
-
function
|
|
8798
|
+
function Hs() {
|
|
8796
8799
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8797
8800
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
8798
8801
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
@@ -8806,7 +8809,7 @@ var Fe = {
|
|
|
8806
8809
|
PIP: "picture-in-picture",
|
|
8807
8810
|
INLINE: "inline",
|
|
8808
8811
|
FULLSCREEN: "fullscreen"
|
|
8809
|
-
},
|
|
8812
|
+
}, Us = /* @__PURE__ */ function(a) {
|
|
8810
8813
|
S(r, a);
|
|
8811
8814
|
var o = x(r);
|
|
8812
8815
|
function r() {
|
|
@@ -8846,11 +8849,11 @@ var Fe = {
|
|
|
8846
8849
|
value: function() {
|
|
8847
8850
|
return {
|
|
8848
8851
|
pipIcon: {
|
|
8849
|
-
icon:
|
|
8852
|
+
icon: Bs,
|
|
8850
8853
|
class: "xg-get-pip"
|
|
8851
8854
|
},
|
|
8852
8855
|
pipIconExit: {
|
|
8853
|
-
icon:
|
|
8856
|
+
icon: Hs,
|
|
8854
8857
|
class: "xg-exit-pip"
|
|
8855
8858
|
}
|
|
8856
8859
|
};
|
|
@@ -8869,9 +8872,9 @@ var Fe = {
|
|
|
8869
8872
|
var n = i.paused;
|
|
8870
8873
|
f.setTimeout(e, function() {
|
|
8871
8874
|
!n && i.mediaPlay();
|
|
8872
|
-
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(
|
|
8875
|
+
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(Wt, !1);
|
|
8873
8876
|
}, this.enterPIPCallback = function(n) {
|
|
8874
|
-
i.emit(
|
|
8877
|
+
i.emit(Wt, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
8875
8878
|
}, this.onWebkitpresentationmodechanged = function(n) {
|
|
8876
8879
|
var s = i.media.webkitPresentationMode;
|
|
8877
8880
|
e.pMode === Fe.FULLSCREEN && s !== Fe.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === Fe.PIP ? e.enterPIPCallback(n) : s === Fe.INLINE && e.leavePIPCallback(n);
|
|
@@ -9009,13 +9012,13 @@ var Fe = {
|
|
|
9009
9012
|
}
|
|
9010
9013
|
}]), r;
|
|
9011
9014
|
}(Re);
|
|
9012
|
-
function
|
|
9015
|
+
function Vs() {
|
|
9013
9016
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
9014
9017
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
9015
9018
|
</svg>
|
|
9016
9019
|
`, "image/svg+xml").firstChild;
|
|
9017
9020
|
}
|
|
9018
|
-
var
|
|
9021
|
+
var js = /* @__PURE__ */ function(a) {
|
|
9019
9022
|
S(r, a);
|
|
9020
9023
|
var o = x(r);
|
|
9021
9024
|
function r(t) {
|
|
@@ -9034,7 +9037,7 @@ var Vs = /* @__PURE__ */ function(a) {
|
|
|
9034
9037
|
key: "registerIcons",
|
|
9035
9038
|
value: function() {
|
|
9036
9039
|
return {
|
|
9037
|
-
playNext:
|
|
9040
|
+
playNext: Vs
|
|
9038
9041
|
};
|
|
9039
9042
|
}
|
|
9040
9043
|
}, {
|
|
@@ -9083,11 +9086,11 @@ var Vs = /* @__PURE__ */ function(a) {
|
|
|
9083
9086
|
};
|
|
9084
9087
|
}
|
|
9085
9088
|
}]), r;
|
|
9086
|
-
}(F),
|
|
9089
|
+
}(F), pn = { exports: {} };
|
|
9087
9090
|
(function(a, o) {
|
|
9088
9091
|
(function(r, t) {
|
|
9089
9092
|
a.exports = t();
|
|
9090
|
-
})(
|
|
9093
|
+
})($n, function() {
|
|
9091
9094
|
return function r(t, e, i) {
|
|
9092
9095
|
var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(A) {
|
|
9093
9096
|
return String(A);
|
|
@@ -9155,10 +9158,10 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
9155
9158
|
return !0;
|
|
9156
9159
|
};
|
|
9157
9160
|
});
|
|
9158
|
-
})(
|
|
9159
|
-
var
|
|
9160
|
-
const
|
|
9161
|
-
function
|
|
9161
|
+
})(pn);
|
|
9162
|
+
var zs = pn.exports;
|
|
9163
|
+
const Ws = /* @__PURE__ */ Kt(zs);
|
|
9164
|
+
function Gs() {
|
|
9162
9165
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
9163
9166
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
9164
9167
|
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
@@ -9175,7 +9178,7 @@ function Ws() {
|
|
|
9175
9178
|
</svg>
|
|
9176
9179
|
`, "image/svg+xml").firstChild;
|
|
9177
9180
|
}
|
|
9178
|
-
var
|
|
9181
|
+
var Ks = /* @__PURE__ */ function(a) {
|
|
9179
9182
|
S(r, a);
|
|
9180
9183
|
var o = x(r);
|
|
9181
9184
|
function r(t) {
|
|
@@ -9186,7 +9189,7 @@ var Gs = /* @__PURE__ */ function(a) {
|
|
|
9186
9189
|
var n = e.playerConfig.url, s = "";
|
|
9187
9190
|
f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
|
|
9188
9191
|
var l = e.getAbsoluteURL(s);
|
|
9189
|
-
|
|
9192
|
+
Ws(l), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
9190
9193
|
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
9191
9194
|
}, 300);
|
|
9192
9195
|
}
|
|
@@ -9205,7 +9208,7 @@ var Gs = /* @__PURE__ */ function(a) {
|
|
|
9205
9208
|
key: "registerIcons",
|
|
9206
9209
|
value: function() {
|
|
9207
9210
|
return {
|
|
9208
|
-
download:
|
|
9211
|
+
download: Gs
|
|
9209
9212
|
};
|
|
9210
9213
|
}
|
|
9211
9214
|
}, {
|
|
@@ -9247,7 +9250,7 @@ var Gs = /* @__PURE__ */ function(a) {
|
|
|
9247
9250
|
};
|
|
9248
9251
|
}
|
|
9249
9252
|
}]), r;
|
|
9250
|
-
}(Re),
|
|
9253
|
+
}(Re), Ys = /* @__PURE__ */ function(a) {
|
|
9251
9254
|
S(r, a);
|
|
9252
9255
|
var o = x(r);
|
|
9253
9256
|
function r() {
|
|
@@ -9302,7 +9305,7 @@ var Gs = /* @__PURE__ */ function(a) {
|
|
|
9302
9305
|
e.preventDefault(), e.stopPropagation(), this.emitUserAction(e, "shot");
|
|
9303
9306
|
var n = this.config;
|
|
9304
9307
|
this.shot(n.width, n.height).then(function(s) {
|
|
9305
|
-
i.emit(
|
|
9308
|
+
i.emit(tn, s), n.saveImg && i.saveScreenShot(s, n.name + n.format);
|
|
9306
9309
|
});
|
|
9307
9310
|
}
|
|
9308
9311
|
}, {
|
|
@@ -9373,7 +9376,7 @@ var Gs = /* @__PURE__ */ function(a) {
|
|
|
9373
9376
|
};
|
|
9374
9377
|
}
|
|
9375
9378
|
}]), r;
|
|
9376
|
-
}(Re),
|
|
9379
|
+
}(Re), $s = /* @__PURE__ */ function() {
|
|
9377
9380
|
function a(o) {
|
|
9378
9381
|
w(this, a), this.config = o.config, this.parent = o.root, this.root = f.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), o.root.appendChild(this.root);
|
|
9379
9382
|
var r = this.config.maxHeight;
|
|
@@ -9453,7 +9456,7 @@ var Gs = /* @__PURE__ */ function(a) {
|
|
|
9453
9456
|
CLICK: "click",
|
|
9454
9457
|
HOVER: "hover"
|
|
9455
9458
|
};
|
|
9456
|
-
function
|
|
9459
|
+
function Xs(a, o) {
|
|
9457
9460
|
return a === se.SIDE ? o === H.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
9458
9461
|
}
|
|
9459
9462
|
var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
|
|
@@ -9492,7 +9495,7 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
|
|
|
9492
9495
|
e._resizeList();
|
|
9493
9496
|
}), this.once(de, function() {
|
|
9494
9497
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
9495
|
-
}), xe && this.on(
|
|
9498
|
+
}), xe && this.on(Zt, function() {
|
|
9496
9499
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
9497
9500
|
}), xe ? (i.toggleMode = Ne.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === Ne.CLICK ? "click" : "mouseenter", i.toggleMode === Ne.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);
|
|
9498
9501
|
}
|
|
@@ -9567,7 +9570,7 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
|
|
|
9567
9570
|
var c = {
|
|
9568
9571
|
config: {
|
|
9569
9572
|
data: e || [],
|
|
9570
|
-
className:
|
|
9573
|
+
className: Xs(s.listType, s.position),
|
|
9571
9574
|
onItemClick: function(m, _) {
|
|
9572
9575
|
n.onItemClick(m, _);
|
|
9573
9576
|
},
|
|
@@ -9577,7 +9580,7 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
|
|
|
9577
9580
|
};
|
|
9578
9581
|
if (this.config.isShowIcon) {
|
|
9579
9582
|
var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === se.MIDDLE ? d - 50 : d;
|
|
9580
|
-
g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new
|
|
9583
|
+
g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new $s(c), this.changeCurrentText(), this.show();
|
|
9581
9584
|
}
|
|
9582
9585
|
this._resizeList();
|
|
9583
9586
|
}
|
|
@@ -9628,7 +9631,7 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
|
|
|
9628
9631
|
};
|
|
9629
9632
|
}
|
|
9630
9633
|
}]), r;
|
|
9631
|
-
}(F),
|
|
9634
|
+
}(F), qs = /* @__PURE__ */ function(a) {
|
|
9632
9635
|
S(r, a);
|
|
9633
9636
|
var o = x(r);
|
|
9634
9637
|
function r(t) {
|
|
@@ -9649,7 +9652,7 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
|
|
|
9649
9652
|
var e = this;
|
|
9650
9653
|
I(P(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
|
|
9651
9654
|
e.changeDefinitionList(i);
|
|
9652
|
-
}), this.on(
|
|
9655
|
+
}), this.on(ti, function(i) {
|
|
9653
9656
|
e.renderItemList(e.config.list, i.to);
|
|
9654
9657
|
}), this.player.definitionList.length < 2 && this.hide();
|
|
9655
9658
|
}
|
|
@@ -9729,7 +9732,7 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
|
|
|
9729
9732
|
});
|
|
9730
9733
|
}
|
|
9731
9734
|
}]), r;
|
|
9732
|
-
}(dt),
|
|
9735
|
+
}(dt), Zs = /* @__PURE__ */ function(a) {
|
|
9733
9736
|
S(r, a);
|
|
9734
9737
|
var o = x(r);
|
|
9735
9738
|
function r(t) {
|
|
@@ -9751,7 +9754,7 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
|
|
|
9751
9754
|
key: "afterCreate",
|
|
9752
9755
|
value: function() {
|
|
9753
9756
|
var e = this;
|
|
9754
|
-
I(P(r.prototype), "afterCreate", this).call(this), this.on(
|
|
9757
|
+
I(P(r.prototype), "afterCreate", this).call(this), this.on(Yi, function() {
|
|
9755
9758
|
e.curValue !== e.player.playbackRate && e.renderItemList();
|
|
9756
9759
|
}), this.renderItemList();
|
|
9757
9760
|
}
|
|
@@ -9822,19 +9825,19 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
|
|
|
9822
9825
|
}
|
|
9823
9826
|
}]), r;
|
|
9824
9827
|
}(dt);
|
|
9825
|
-
function
|
|
9828
|
+
function Js() {
|
|
9826
9829
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
9827
9830
|
<path fill="#fff" transform="scale(1.3, 1.3)" class='path_full' d="M9,10v1a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V9A.9.9,0,0,1,8,8h2a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm6,4V13a1,1,0,0,1,2,0v2a.9.9,0,0,1-1,1H14a1,1,0,0,1,0-2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
9828
9831
|
</svg>
|
|
9829
9832
|
`, "image/svg+xml").firstChild;
|
|
9830
9833
|
}
|
|
9831
|
-
function
|
|
9834
|
+
function Qs() {
|
|
9832
9835
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
9833
9836
|
<path fill="#fff" transform="scale(1.3, 1.3)" d="M9,10V9a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1v2a.9.9,0,0,1-1,1H8a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1Zm6,4v1a1,1,0,0,1-2,0V13a.9.9,0,0,1,1-1h2a1,1,0,0,1,0,2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
9834
9837
|
</svg>
|
|
9835
9838
|
`, "image/svg+xml").firstChild;
|
|
9836
9839
|
}
|
|
9837
|
-
var
|
|
9840
|
+
var Mi = /* @__PURE__ */ function(a) {
|
|
9838
9841
|
S(r, a);
|
|
9839
9842
|
var o = x(r);
|
|
9840
9843
|
function r() {
|
|
@@ -9888,11 +9891,11 @@ var Oi = /* @__PURE__ */ function(a) {
|
|
|
9888
9891
|
value: function() {
|
|
9889
9892
|
return {
|
|
9890
9893
|
cssFullscreen: {
|
|
9891
|
-
icon:
|
|
9894
|
+
icon: Js,
|
|
9892
9895
|
class: "xg-get-cssfull"
|
|
9893
9896
|
},
|
|
9894
9897
|
exitCssFullscreen: {
|
|
9895
|
-
icon:
|
|
9898
|
+
icon: Qs,
|
|
9896
9899
|
class: "xg-exit-cssfull"
|
|
9897
9900
|
}
|
|
9898
9901
|
};
|
|
@@ -9928,7 +9931,7 @@ var Oi = /* @__PURE__ */ function(a) {
|
|
|
9928
9931
|
};
|
|
9929
9932
|
}
|
|
9930
9933
|
}]), r;
|
|
9931
|
-
}(Re),
|
|
9934
|
+
}(Re), eo = /* @__PURE__ */ function(a) {
|
|
9932
9935
|
S(r, a);
|
|
9933
9936
|
var o = x(r);
|
|
9934
9937
|
function r() {
|
|
@@ -9989,7 +9992,7 @@ var Oi = /* @__PURE__ */ function(a) {
|
|
|
9989
9992
|
return "error";
|
|
9990
9993
|
}
|
|
9991
9994
|
}]), r;
|
|
9992
|
-
}(F),
|
|
9995
|
+
}(F), to = /* @__PURE__ */ function(a) {
|
|
9993
9996
|
S(r, a);
|
|
9994
9997
|
var o = x(r);
|
|
9995
9998
|
function r() {
|
|
@@ -10067,7 +10070,7 @@ var Oi = /* @__PURE__ */ function(a) {
|
|
|
10067
10070
|
};
|
|
10068
10071
|
}
|
|
10069
10072
|
}]), r;
|
|
10070
|
-
}(F),
|
|
10073
|
+
}(F), Fi = {
|
|
10071
10074
|
time: 0,
|
|
10072
10075
|
text: "",
|
|
10073
10076
|
id: 1,
|
|
@@ -10077,12 +10080,12 @@ var Oi = /* @__PURE__ */ function(a) {
|
|
|
10077
10080
|
width: 6,
|
|
10078
10081
|
height: 6
|
|
10079
10082
|
};
|
|
10080
|
-
function
|
|
10081
|
-
Object.keys(
|
|
10082
|
-
a[o] === void 0 && (a[o] =
|
|
10083
|
+
function vn(a) {
|
|
10084
|
+
Object.keys(Fi).map(function(o) {
|
|
10085
|
+
a[o] === void 0 && (a[o] = Fi[o]);
|
|
10083
10086
|
});
|
|
10084
10087
|
}
|
|
10085
|
-
var
|
|
10088
|
+
var Ni = {
|
|
10086
10089
|
_updateDotDom: function(o, r) {
|
|
10087
10090
|
if (r) {
|
|
10088
10091
|
var t = this.calcuPosition(o.time, o.duration), e = o.style || {};
|
|
@@ -10099,7 +10102,7 @@ var Fi = {
|
|
|
10099
10102
|
},
|
|
10100
10103
|
createDot: function(o) {
|
|
10101
10104
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, t = this.player.plugins.progress;
|
|
10102
|
-
if (t && (r && (
|
|
10105
|
+
if (t && (r && (vn(o), this._ispots.push(o)), !(!this.ispotsInit && r))) {
|
|
10103
10106
|
var e = this.calcuPosition(o.time, o.duration), i = o.style || {};
|
|
10104
10107
|
i.left = "".concat(e.left, "%"), i.width = "".concat(e.width, "%");
|
|
10105
10108
|
var n = "xgspot_".concat(o.id, " xgplayer-spot");
|
|
@@ -10219,14 +10222,14 @@ var Fi = {
|
|
|
10219
10222
|
return r.find('xg-spot[data-id="'.concat(o, '"]'));
|
|
10220
10223
|
}
|
|
10221
10224
|
};
|
|
10222
|
-
function
|
|
10225
|
+
function io(a) {
|
|
10223
10226
|
var o = a.config, r = a.player;
|
|
10224
|
-
Object.keys(
|
|
10225
|
-
a[e] =
|
|
10227
|
+
Object.keys(Ni).map(function(e) {
|
|
10228
|
+
a[e] = Ni[e].bind(a);
|
|
10226
10229
|
});
|
|
10227
10230
|
var t = r.config.progressDot || o.ispots || [];
|
|
10228
10231
|
a._ispots = t.map(function(e) {
|
|
10229
|
-
return
|
|
10232
|
+
return vn(e), e;
|
|
10230
10233
|
}), a.ispotsInit = !1, a.playerSize = {
|
|
10231
10234
|
left: r.sizeInfo.left,
|
|
10232
10235
|
width: r.sizeInfo.width
|
|
@@ -10243,7 +10246,7 @@ var Be = {
|
|
|
10243
10246
|
click: "onProgressClick",
|
|
10244
10247
|
mouseover: "onProgressMouseOver",
|
|
10245
10248
|
mouseenter: "onProgressMouseOver"
|
|
10246
|
-
},
|
|
10249
|
+
}, no = /* @__PURE__ */ function(a) {
|
|
10247
10250
|
S(r, a);
|
|
10248
10251
|
var o = x(r);
|
|
10249
10252
|
function r(t) {
|
|
@@ -10294,7 +10297,7 @@ var Be = {
|
|
|
10294
10297
|
n.seekTime && e.player.seek(n.seekTime);
|
|
10295
10298
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
10296
10299
|
e.setTimeContent(f.format(i));
|
|
10297
|
-
}),
|
|
10300
|
+
}), io(this), this.on(we, function() {
|
|
10298
10301
|
e.show();
|
|
10299
10302
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
10300
10303
|
}
|
|
@@ -10518,7 +10521,7 @@ var Be = {
|
|
|
10518
10521
|
};
|
|
10519
10522
|
}
|
|
10520
10523
|
}]), r;
|
|
10521
|
-
}(F),
|
|
10524
|
+
}(F), ro = /* @__PURE__ */ function(a) {
|
|
10522
10525
|
S(r, a);
|
|
10523
10526
|
var o = x(r);
|
|
10524
10527
|
function r(t) {
|
|
@@ -10653,10 +10656,10 @@ var Be = {
|
|
|
10653
10656
|
}
|
|
10654
10657
|
}]), r;
|
|
10655
10658
|
}(F);
|
|
10656
|
-
function
|
|
10659
|
+
function Rt(a) {
|
|
10657
10660
|
return a ? "background:".concat(a, ";") : "";
|
|
10658
10661
|
}
|
|
10659
|
-
var
|
|
10662
|
+
var so = /* @__PURE__ */ function(a) {
|
|
10660
10663
|
S(r, a);
|
|
10661
10664
|
var o = x(r);
|
|
10662
10665
|
function r() {
|
|
@@ -10713,9 +10716,9 @@ var ro = /* @__PURE__ */ function(a) {
|
|
|
10713
10716
|
var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
|
|
10714
10717
|
if (n) {
|
|
10715
10718
|
var s = this.config, l = s.mode, u = s.height, c = {
|
|
10716
|
-
cached:
|
|
10717
|
-
played:
|
|
10718
|
-
progress:
|
|
10719
|
+
cached: Rt(i.cachedColor),
|
|
10720
|
+
played: Rt(i.playedColor),
|
|
10721
|
+
progress: Rt(i.progressColor),
|
|
10719
10722
|
height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
|
|
10720
10723
|
}, h = l === "show" ? "xg-mini-progress-show" : "";
|
|
10721
10724
|
return '<xg-mini-progress class="xg-mini-progress '.concat(h, '" style="').concat(c.progress, " ").concat(c.height, `">
|
|
@@ -10744,14 +10747,14 @@ var ro = /* @__PURE__ */ function(a) {
|
|
|
10744
10747
|
FRAME_RATE: "framerate",
|
|
10745
10748
|
POSTER: "poster"
|
|
10746
10749
|
};
|
|
10747
|
-
function
|
|
10750
|
+
function oo() {
|
|
10748
10751
|
try {
|
|
10749
10752
|
return parseInt(window.performance.now(), 10);
|
|
10750
10753
|
} catch {
|
|
10751
10754
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
10752
10755
|
}
|
|
10753
10756
|
}
|
|
10754
|
-
function
|
|
10757
|
+
function ao() {
|
|
10755
10758
|
try {
|
|
10756
10759
|
var a = document.createElement("canvas").getContext;
|
|
10757
10760
|
return !!a;
|
|
@@ -10759,7 +10762,7 @@ function oo() {
|
|
|
10759
10762
|
return !1;
|
|
10760
10763
|
}
|
|
10761
10764
|
}
|
|
10762
|
-
var et = null,
|
|
10765
|
+
var et = null, lo = /* @__PURE__ */ function(a) {
|
|
10763
10766
|
S(r, a);
|
|
10764
10767
|
var o = x(r);
|
|
10765
10768
|
function r() {
|
|
@@ -10780,7 +10783,7 @@ var et = null, ao = /* @__PURE__ */ function(a) {
|
|
|
10780
10783
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
10781
10784
|
}
|
|
10782
10785
|
}), y(v(t), "start", function(s, l) {
|
|
10783
|
-
var u = t.player.video, c =
|
|
10786
|
+
var u = t.player.video, c = oo(), h = t.checkVideoIsSupport(u);
|
|
10784
10787
|
!h || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === He.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(v(t), t.start, l) : f.requestAnimationFrame(t.start));
|
|
10785
10788
|
}), y(v(t), "stop", function() {
|
|
10786
10789
|
t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
@@ -10807,9 +10810,9 @@ var et = null, ao = /* @__PURE__ */ function(a) {
|
|
|
10807
10810
|
}), this.on(Q, function() {
|
|
10808
10811
|
var u = e.config.startInterval;
|
|
10809
10812
|
e._checkIfCanStart() && e.start(0, u);
|
|
10810
|
-
}), this.on(
|
|
10813
|
+
}), this.on(je, function() {
|
|
10811
10814
|
e.stop();
|
|
10812
|
-
})), this.on(ve, this.onLoadedData), this.on(
|
|
10815
|
+
})), this.on(ve, this.onLoadedData), this.on(qt, function() {
|
|
10813
10816
|
e._isLoaded = !1, e.stop();
|
|
10814
10817
|
}), document.addEventListener("visibilitychange", this.onVisibilitychange)));
|
|
10815
10818
|
}
|
|
@@ -10953,7 +10956,7 @@ var et = null, ao = /* @__PURE__ */ function(a) {
|
|
|
10953
10956
|
}, {
|
|
10954
10957
|
key: "isSupport",
|
|
10955
10958
|
get: function() {
|
|
10956
|
-
return typeof et == "boolean" || (et =
|
|
10959
|
+
return typeof et == "boolean" || (et = ao()), et;
|
|
10957
10960
|
}
|
|
10958
10961
|
}, {
|
|
10959
10962
|
key: "supportCanvasFilter",
|
|
@@ -10961,7 +10964,7 @@ var et = null, ao = /* @__PURE__ */ function(a) {
|
|
|
10961
10964
|
return !(L.browser === "safari" || L.browser === "firefox");
|
|
10962
10965
|
}
|
|
10963
10966
|
}]), r;
|
|
10964
|
-
}(F),
|
|
10967
|
+
}(F), uo = {
|
|
10965
10968
|
LANG: "zh-cn",
|
|
10966
10969
|
TEXT: {
|
|
10967
10970
|
ERROR_TYPES: {
|
|
@@ -11036,7 +11039,7 @@ var et = null, ao = /* @__PURE__ */ function(a) {
|
|
|
11036
11039
|
FORWARD: "快进中",
|
|
11037
11040
|
LIVE_TIP: "直播"
|
|
11038
11041
|
}
|
|
11039
|
-
}, We = "info",
|
|
11042
|
+
}, We = "info", Ot = ln, co = /* @__PURE__ */ function(a) {
|
|
11040
11043
|
S(r, a);
|
|
11041
11044
|
var o = x(r);
|
|
11042
11045
|
function r() {
|
|
@@ -11075,7 +11078,7 @@ var et = null, ao = /* @__PURE__ */ function(a) {
|
|
|
11075
11078
|
}, {
|
|
11076
11079
|
key: "afterCreate",
|
|
11077
11080
|
value: function() {
|
|
11078
|
-
this.reset(), this.on(ut, this._recordUserActions), this.on(
|
|
11081
|
+
this.reset(), this.on(ut, this._recordUserActions), this.on(Ot.STATS_INFO, this._recordInfo), this.on(Ot.STATS_DOWNLOAD, this._downloadStats), this.on(Ot.STATS_RESET, this._onReset);
|
|
11079
11082
|
}
|
|
11080
11083
|
}, {
|
|
11081
11084
|
key: "destroy",
|
|
@@ -11180,7 +11183,7 @@ var et = null, ao = /* @__PURE__ */ function(a) {
|
|
|
11180
11183
|
return {};
|
|
11181
11184
|
}
|
|
11182
11185
|
}]), r;
|
|
11183
|
-
}(Te),
|
|
11186
|
+
}(Te), mn = /* @__PURE__ */ function(a) {
|
|
11184
11187
|
S(r, a);
|
|
11185
11188
|
var o = x(r);
|
|
11186
11189
|
function r() {
|
|
@@ -11269,8 +11272,8 @@ var et = null, ao = /* @__PURE__ */ function(a) {
|
|
|
11269
11272
|
}
|
|
11270
11273
|
}]), r;
|
|
11271
11274
|
}(F);
|
|
11272
|
-
|
|
11273
|
-
var
|
|
11275
|
+
mn.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
11276
|
+
var fo = /* @__PURE__ */ function(a) {
|
|
11274
11277
|
S(r, a);
|
|
11275
11278
|
var o = x(r);
|
|
11276
11279
|
function r() {
|
|
@@ -11294,7 +11297,7 @@ var co = /* @__PURE__ */ function(a) {
|
|
|
11294
11297
|
key: "afterCreate",
|
|
11295
11298
|
value: function() {
|
|
11296
11299
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
11297
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(Ze, this.onWaiting), this.on([
|
|
11300
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(Ze, this.onWaiting), this.on([Xt, de], function() {
|
|
11298
11301
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
11299
11302
|
}), this.on(Q, function() {
|
|
11300
11303
|
e.hasPlayed = !0;
|
|
@@ -11316,7 +11319,7 @@ var co = /* @__PURE__ */ function(a) {
|
|
|
11316
11319
|
};
|
|
11317
11320
|
}
|
|
11318
11321
|
}]), r;
|
|
11319
|
-
}(F), Ue = "cdn", tt = ["cdn"],
|
|
11322
|
+
}(F), Ue = "cdn", tt = ["cdn"], ho = /* @__PURE__ */ function(a) {
|
|
11320
11323
|
S(r, a);
|
|
11321
11324
|
var o = x(r);
|
|
11322
11325
|
function r() {
|
|
@@ -11375,13 +11378,13 @@ var co = /* @__PURE__ */ function(a) {
|
|
|
11375
11378
|
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ue, l = t.getSpeed(s), u = v(t), c = u.player;
|
|
11376
11379
|
if (c)
|
|
11377
11380
|
if (s === Ue)
|
|
11378
|
-
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(
|
|
11381
|
+
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(jt, {
|
|
11379
11382
|
speed: l,
|
|
11380
11383
|
realTimeSpeed: c.realTimeSpeed
|
|
11381
11384
|
}));
|
|
11382
11385
|
else {
|
|
11383
11386
|
var h = t.getSpeedName("avg", s);
|
|
11384
|
-
(!c[h] || l !== c[h]) && (c[h] = l, c.emit(
|
|
11387
|
+
(!c[h] || l !== c[h]) && (c[h] = l, c.emit(jt, {
|
|
11385
11388
|
speed: l,
|
|
11386
11389
|
realTimeSpeed: c.realTimeSpeed
|
|
11387
11390
|
}));
|
|
@@ -11442,7 +11445,7 @@ var co = /* @__PURE__ */ function(a) {
|
|
|
11442
11445
|
};
|
|
11443
11446
|
}
|
|
11444
11447
|
}]), r;
|
|
11445
|
-
}(F),
|
|
11448
|
+
}(F), go = /* @__PURE__ */ function(a) {
|
|
11446
11449
|
S(r, a);
|
|
11447
11450
|
var o = x(r);
|
|
11448
11451
|
function r() {
|
|
@@ -11456,7 +11459,7 @@ var co = /* @__PURE__ */ function(a) {
|
|
|
11456
11459
|
var l = s.getVideoPlaybackQuality;
|
|
11457
11460
|
l && (this.on(Q, function() {
|
|
11458
11461
|
e._startTick();
|
|
11459
|
-
}), this.on(
|
|
11462
|
+
}), this.on(je, function() {
|
|
11460
11463
|
e._stopTick();
|
|
11461
11464
|
}), this.on(Le, function() {
|
|
11462
11465
|
e._stopTick();
|
|
@@ -11509,7 +11512,7 @@ var co = /* @__PURE__ */ function(a) {
|
|
|
11509
11512
|
totalVideoFrames: i,
|
|
11510
11513
|
droppedVideoFrames: n,
|
|
11511
11514
|
checkInterval: s
|
|
11512
|
-
}), this._currentStuckCount >= this.config.stuckCount && (this.emit(
|
|
11515
|
+
}), this._currentStuckCount >= this.config.stuckCount && (this.emit(un, this._payload), this._reset())) : this._reset());
|
|
11513
11516
|
}
|
|
11514
11517
|
}
|
|
11515
11518
|
}, {
|
|
@@ -11552,24 +11555,24 @@ var co = /* @__PURE__ */ function(a) {
|
|
|
11552
11555
|
}
|
|
11553
11556
|
}]), r;
|
|
11554
11557
|
}(F);
|
|
11555
|
-
|
|
11556
|
-
var
|
|
11558
|
+
Ve.use(uo);
|
|
11559
|
+
var po = /* @__PURE__ */ E(function a(o, r) {
|
|
11557
11560
|
var t, e, i;
|
|
11558
11561
|
w(this, a);
|
|
11559
|
-
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [
|
|
11560
|
-
this.plugins = [
|
|
11562
|
+
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Ls, Ts, so, no, As], u = [].concat(l, [ws, Is, Ns, js, qs, Zs, Ks, Ys, Ms, Us]), c = [ns, rs, os, Cs, as, eo, to, ro, fs];
|
|
11563
|
+
this.plugins = [co, ts].concat(ne(u), c, [mn, fo]);
|
|
11561
11564
|
var h = n ? "mobile" : L.device;
|
|
11562
11565
|
switch (h) {
|
|
11563
11566
|
case "pc":
|
|
11564
|
-
(t = this.plugins).push.apply(t, [
|
|
11567
|
+
(t = this.plugins).push.apply(t, [Ri, Lt, Mi, ho, go]);
|
|
11565
11568
|
break;
|
|
11566
11569
|
case "mobile":
|
|
11567
|
-
(e = this.plugins).push.apply(e, [
|
|
11570
|
+
(e = this.plugins).push.apply(e, [ms]);
|
|
11568
11571
|
break;
|
|
11569
11572
|
default:
|
|
11570
|
-
(i = this.plugins).push.apply(i, [
|
|
11573
|
+
(i = this.plugins).push.apply(i, [Ri, Lt, Mi]);
|
|
11571
11574
|
}
|
|
11572
|
-
(L.os.isIpad || h === "pc") && this.plugins.push(
|
|
11575
|
+
(L.os.isIpad || h === "pc") && this.plugins.push(lo), L.os.isIpad && this.plugins.push(Lt), this.ignores = [], this.i18n = [];
|
|
11573
11576
|
}), re = /* @__PURE__ */ function(a) {
|
|
11574
11577
|
S(r, a);
|
|
11575
11578
|
var o = x(r);
|
|
@@ -11578,17 +11581,17 @@ var go = /* @__PURE__ */ E(function a(o, r) {
|
|
|
11578
11581
|
}
|
|
11579
11582
|
return E(r);
|
|
11580
11583
|
}(_t);
|
|
11581
|
-
y(re, "defaultPreset",
|
|
11584
|
+
y(re, "defaultPreset", po);
|
|
11582
11585
|
y(re, "Util", f);
|
|
11583
11586
|
y(re, "Sniffer", L);
|
|
11584
11587
|
y(re, "Errors", rt);
|
|
11585
|
-
y(re, "Events",
|
|
11588
|
+
y(re, "Events", Ir);
|
|
11586
11589
|
y(re, "Plugin", F);
|
|
11587
11590
|
y(re, "BasePlugin", Te);
|
|
11588
|
-
y(re, "I18N",
|
|
11591
|
+
y(re, "I18N", Ve);
|
|
11589
11592
|
y(re, "STATE_CLASS", C);
|
|
11590
|
-
y(re, "InstManager",
|
|
11591
|
-
const
|
|
11593
|
+
y(re, "InstManager", dn);
|
|
11594
|
+
const vo = ["id"], mo = /* @__PURE__ */ pe({
|
|
11592
11595
|
name: "ElImageViewer",
|
|
11593
11596
|
__name: "Player",
|
|
11594
11597
|
props: /* @__PURE__ */ it({
|
|
@@ -11617,7 +11620,7 @@ const po = ["id"], vo = /* @__PURE__ */ pe({
|
|
|
11617
11620
|
}, ["update:modelValue"]),
|
|
11618
11621
|
setup(a, { emit: o }) {
|
|
11619
11622
|
let r = null;
|
|
11620
|
-
const t = a, { cLoadUrl: e } =
|
|
11623
|
+
const t = a, { cLoadUrl: e } = Dn(t), i = ie(() => Nt(e.value, t.url)), n = {
|
|
11621
11624
|
width: "100%",
|
|
11622
11625
|
height: "100%",
|
|
11623
11626
|
// 是否自动播放
|
|
@@ -11638,12 +11641,12 @@ const po = ["id"], vo = /* @__PURE__ */ pe({
|
|
|
11638
11641
|
}, s = ie(() => ({
|
|
11639
11642
|
...n,
|
|
11640
11643
|
...t.config
|
|
11641
|
-
})), l = o, u =
|
|
11644
|
+
})), l = o, u = Gt(a, "modelValue"), c = Ui(), h = Sn("image-viewer");
|
|
11642
11645
|
function d() {
|
|
11643
11646
|
l("close"), u.value = !1, r.destroy();
|
|
11644
11647
|
}
|
|
11645
|
-
return
|
|
11646
|
-
g &&
|
|
11648
|
+
return Bi(() => u.value, (g) => {
|
|
11649
|
+
g && Hi(() => {
|
|
11647
11650
|
r = new re({
|
|
11648
11651
|
id: c,
|
|
11649
11652
|
url: i.value,
|
|
@@ -11652,11 +11655,11 @@ const po = ["id"], vo = /* @__PURE__ */ pe({
|
|
|
11652
11655
|
});
|
|
11653
11656
|
}), (g, p) => {
|
|
11654
11657
|
const m = Ye("el-icon");
|
|
11655
|
-
return u.value ? (U(), Ae(
|
|
11658
|
+
return u.value ? (U(), Ae(kn, {
|
|
11656
11659
|
key: 0,
|
|
11657
11660
|
to: "body"
|
|
11658
11661
|
}, [
|
|
11659
|
-
ke(
|
|
11662
|
+
ke(bn, {
|
|
11660
11663
|
name: "viewer-fade",
|
|
11661
11664
|
appear: ""
|
|
11662
11665
|
}, {
|
|
@@ -11686,7 +11689,7 @@ const po = ["id"], vo = /* @__PURE__ */ pe({
|
|
|
11686
11689
|
class: ae(K(h).e("canvas"))
|
|
11687
11690
|
},
|
|
11688
11691
|
[
|
|
11689
|
-
le("div", { id: K(c) }, null, 8,
|
|
11692
|
+
le("div", { id: K(c) }, null, 8, vo),
|
|
11690
11693
|
fe(" CLOSE "),
|
|
11691
11694
|
le(
|
|
11692
11695
|
"span",
|
|
@@ -11697,7 +11700,7 @@ const po = ["id"], vo = /* @__PURE__ */ pe({
|
|
|
11697
11700
|
[
|
|
11698
11701
|
ke(m, { onClick: d }, {
|
|
11699
11702
|
default: he(() => [
|
|
11700
|
-
ke(K(
|
|
11703
|
+
ke(K(An))
|
|
11701
11704
|
]),
|
|
11702
11705
|
_: 1
|
|
11703
11706
|
/* STABLE */
|
|
@@ -11723,7 +11726,7 @@ const po = ["id"], vo = /* @__PURE__ */ pe({
|
|
|
11723
11726
|
};
|
|
11724
11727
|
}
|
|
11725
11728
|
});
|
|
11726
|
-
const
|
|
11729
|
+
const yo = /* @__PURE__ */ gt(mo, [["__scopeId", "data-v-b301aa7d"]]), _o = Xe(yo), Co = /* @__PURE__ */ pe({
|
|
11727
11730
|
__name: "IkPreviewFileDialog",
|
|
11728
11731
|
props: /* @__PURE__ */ it({
|
|
11729
11732
|
file: {
|
|
@@ -11760,13 +11763,13 @@ const mo = /* @__PURE__ */ gt(vo, [["__scopeId", "data-v-b301aa7d"]]), yo = Xe(m
|
|
|
11760
11763
|
}),
|
|
11761
11764
|
emits: ["update:show"],
|
|
11762
11765
|
setup(a) {
|
|
11763
|
-
const o = a, r =
|
|
11766
|
+
const o = a, r = Gt(a, "show"), t = ie(() => ({
|
|
11764
11767
|
name: "name",
|
|
11765
11768
|
url: "url",
|
|
11766
11769
|
suffix: "suffix",
|
|
11767
11770
|
size: "fileSize",
|
|
11768
11771
|
...o.field
|
|
11769
|
-
})), e = nt(null), i = nt(null), n =
|
|
11772
|
+
})), e = nt(null), i = nt(null), n = Tn({
|
|
11770
11773
|
image: !1,
|
|
11771
11774
|
office: !1,
|
|
11772
11775
|
video: !1
|
|
@@ -11777,11 +11780,11 @@ const mo = /* @__PURE__ */ gt(vo, [["__scopeId", "data-v-b301aa7d"]]), yo = Xe(m
|
|
|
11777
11780
|
if (i.value = {
|
|
11778
11781
|
...u,
|
|
11779
11782
|
name: u[t.value.name],
|
|
11780
|
-
url:
|
|
11781
|
-
}, u &&
|
|
11783
|
+
url: Nt(o.loadUrl, T)
|
|
11784
|
+
}, u && oi(u, t.value) === "image") {
|
|
11782
11785
|
n.image = !0;
|
|
11783
11786
|
return;
|
|
11784
|
-
} else if (u &&
|
|
11787
|
+
} else if (u && oi(u, t.value) === "video") {
|
|
11785
11788
|
n.video = !0;
|
|
11786
11789
|
return;
|
|
11787
11790
|
} else if ((((d = o.onlyOfficeConfig) == null ? void 0 : d.accept) || o.onlyOfficeAccept).includes(b)) {
|
|
@@ -11797,13 +11800,13 @@ const mo = /* @__PURE__ */ gt(vo, [["__scopeId", "data-v-b301aa7d"]]), yo = Xe(m
|
|
|
11797
11800
|
}
|
|
11798
11801
|
},
|
|
11799
11802
|
document: {
|
|
11800
|
-
key:
|
|
11803
|
+
key: Ui(),
|
|
11801
11804
|
title: N,
|
|
11802
|
-
url:
|
|
11805
|
+
url: Nt(o.loadUrl, T),
|
|
11803
11806
|
fileType: b,
|
|
11804
11807
|
...((_ = o.onlyOfficeConfig) == null ? void 0 : _.document) || {}
|
|
11805
11808
|
},
|
|
11806
|
-
documentType:
|
|
11809
|
+
documentType: Pn(b)
|
|
11807
11810
|
};
|
|
11808
11811
|
return;
|
|
11809
11812
|
}
|
|
@@ -11811,8 +11814,8 @@ const mo = /* @__PURE__ */ gt(vo, [["__scopeId", "data-v-b301aa7d"]]), yo = Xe(m
|
|
|
11811
11814
|
console.info("预览错误: ", k);
|
|
11812
11815
|
}
|
|
11813
11816
|
};
|
|
11814
|
-
|
|
11815
|
-
u &&
|
|
11817
|
+
Bi([r, o.file], ([u, c]) => {
|
|
11818
|
+
u && Hi(() => {
|
|
11816
11819
|
s(o.file);
|
|
11817
11820
|
});
|
|
11818
11821
|
});
|
|
@@ -11823,7 +11826,7 @@ const mo = /* @__PURE__ */ gt(vo, [["__scopeId", "data-v-b301aa7d"]]), yo = Xe(m
|
|
|
11823
11826
|
var d, g, p;
|
|
11824
11827
|
const h = Ye("el-image-viewer");
|
|
11825
11828
|
return r.value ? (U(), W(
|
|
11826
|
-
|
|
11829
|
+
wn,
|
|
11827
11830
|
{ key: 0 },
|
|
11828
11831
|
[
|
|
11829
11832
|
(d = i.value) != null && d.url && n.image ? (U(), Ae(h, {
|
|
@@ -11835,12 +11838,12 @@ const mo = /* @__PURE__ */ gt(vo, [["__scopeId", "data-v-b301aa7d"]]), yo = Xe(m
|
|
|
11835
11838
|
}, null, 8, ["url-list"])) : fe("v-if", !0),
|
|
11836
11839
|
fe(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
11837
11840
|
fe(" 文档类 "),
|
|
11838
|
-
ke(K(
|
|
11841
|
+
ke(K(_o), {
|
|
11839
11842
|
modelValue: n.video,
|
|
11840
11843
|
"onUpdate:modelValue": c[1] || (c[1] = (m) => n.video = m),
|
|
11841
11844
|
url: (p = i.value) == null ? void 0 : p.url
|
|
11842
11845
|
}, null, 8, ["modelValue", "url"]),
|
|
11843
|
-
ke(K(
|
|
11846
|
+
ke(K(Yn), {
|
|
11844
11847
|
modelValue: n.office,
|
|
11845
11848
|
"onUpdate:modelValue": c[2] || (c[2] = (m) => n.office = m),
|
|
11846
11849
|
draggable: "",
|
|
@@ -11858,7 +11861,7 @@ const mo = /* @__PURE__ */ gt(vo, [["__scopeId", "data-v-b301aa7d"]]), yo = Xe(m
|
|
|
11858
11861
|
default: he(() => {
|
|
11859
11862
|
var m;
|
|
11860
11863
|
return [
|
|
11861
|
-
ke(K(
|
|
11864
|
+
ke(K(ir), {
|
|
11862
11865
|
"config-options": e.value,
|
|
11863
11866
|
"document-server-url": ((m = a.onlyOfficeConfig) == null ? void 0 : m.serverUrl) || a.onlyofficeServer
|
|
11864
11867
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -11874,8 +11877,8 @@ const mo = /* @__PURE__ */ gt(vo, [["__scopeId", "data-v-b301aa7d"]]), yo = Xe(m
|
|
|
11874
11877
|
};
|
|
11875
11878
|
}
|
|
11876
11879
|
});
|
|
11877
|
-
const
|
|
11880
|
+
const wo = Xe(Co);
|
|
11878
11881
|
export {
|
|
11879
|
-
|
|
11880
|
-
|
|
11882
|
+
wo as IkPreviewFileDialog,
|
|
11883
|
+
wo as default
|
|
11881
11884
|
};
|