iking-web-ui-pro 1.0.44 → 1.0.46
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/IkApprovalProcess/ik.index.es.js +177 -171
- package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +239 -233
- package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +478 -472
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +88 -82
- package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
- package/dist/IkSearch/ik.index.es.js +273 -267
- package/dist/IkSearch/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +527 -523
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/{index-CS_y74Sj.mjs → index-DTi9E0jO.mjs} +4302 -4292
- package/dist/{index.es-BUP3pLAo.mjs → index.es-B77Iiv-O.mjs} +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +70 -70
- package/dist/{jspdf.es.min-Ct9vMFKc.mjs → jspdf.es.min-DVvGi1xM.mjs} +1 -1
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as se, createElementBlock as D, openBlock as E, createElementVNode as x, computed as le, inject as St, mergeModels as at, useModel as fi, ref as we, reactive as Pl, watch as Dt, nextTick as Lt, createCommentVNode as Q, Fragment as De, createBlock as oe, createVNode as W, unref as
|
|
1
|
+
import { defineComponent as se, createElementBlock as D, openBlock as E, createElementVNode as x, computed as le, inject as St, mergeModels as at, useModel as fi, ref as we, reactive as Pl, watch as Dt, nextTick as Lt, createCommentVNode as Q, Fragment as De, createBlock as oe, createVNode as W, unref as k, withCtx as J, resolveComponent as Qt, normalizeStyle as Rt, normalizeClass as ue, mergeProps as ei, createTextVNode as kt, toDisplayString as Ae, h as Dl, createSlots as yu, renderSlot as Le, getCurrentScope as Ll, onScopeDispose as Rl, markRaw as wa, effectScope as Ol, shallowRef as Ml, onMounted as Fl, Teleport as _u, Transition as bu, withModifiers as bt, resolveDynamicComponent as Nl, renderList as Cu, withDirectives as Bl, vShow as Hl } from "vue";
|
|
2
2
|
import { useLocale as Ul, useNamespace as ku, useZIndex as jl, ElIcon as Ee, EVENT_CODE as dt, ElUpload as Ta, ElTooltip as Sa, ElProgress as Aa, ElButton as zl, ElMessage as Ti } from "element-plus";
|
|
3
3
|
import { buildUUID as wu, ikColor as Vl, paramType as Ea, _ as Si, ikFile as ql } from "iking-utils-pro";
|
|
4
4
|
import Gl from "axios";
|
|
@@ -808,7 +808,7 @@ const he = (a, s) => {
|
|
|
808
808
|
for (const [t, e] of s)
|
|
809
809
|
n[t] = e;
|
|
810
810
|
return n;
|
|
811
|
-
}, Ai = (a) => a % 1 === 0 ? a.toString() : a.toFixed(2),
|
|
811
|
+
}, Ai = (a) => a % 1 === 0 ? a.toString() : a.toFixed(2), Ot = (a, s) => s ? s != null && s.startsWith("http") ? s : `${a || location.origin}${s}` : "", Da = [
|
|
812
812
|
"csv",
|
|
813
813
|
"djvu",
|
|
814
814
|
"doc",
|
|
@@ -923,18 +923,18 @@ const he = (a, s) => {
|
|
|
923
923
|
}), l = (d) => {
|
|
924
924
|
var g, v, m, p, w, b, T;
|
|
925
925
|
try {
|
|
926
|
-
const P = ((g = d == null ? void 0 : d.response) == null ? void 0 : g.data) || d, L = P[i.value.url] || (P == null ? void 0 : P.id) || P.attachmentId,
|
|
926
|
+
const P = ((g = d == null ? void 0 : d.response) == null ? void 0 : g.data) || d, L = P[i.value.url] || (P == null ? void 0 : P.id) || P.attachmentId, H = (v = P[i.value.suffix] || P.attachmentSuffix) == null ? void 0 : v.toLowerCase(), U = P[i.value.name] || (P == null ? void 0 : P.attachmentName) || (P == null ? void 0 : P.originName);
|
|
927
927
|
if (o.value = {
|
|
928
928
|
...d,
|
|
929
929
|
name: d[i.value.name],
|
|
930
|
-
url:
|
|
930
|
+
url: Ot(n.loadUrl, L)
|
|
931
931
|
}, d && he(d, i.value) === "image") {
|
|
932
932
|
u.image = !0;
|
|
933
933
|
return;
|
|
934
934
|
} else if (d && he(d, i.value) === "video") {
|
|
935
935
|
u.video = !0;
|
|
936
936
|
return;
|
|
937
|
-
} else if ((((m = n.onlyOfficeConfig) == null ? void 0 : m.accept) || n.onlyOfficeAccept).includes(
|
|
937
|
+
} else if ((((m = n.onlyOfficeConfig) == null ? void 0 : m.accept) || n.onlyOfficeAccept).includes(H)) {
|
|
938
938
|
u.office = !0, r.value = {
|
|
939
939
|
...n.onlyOfficeConfig,
|
|
940
940
|
editorConfig: {
|
|
@@ -948,12 +948,12 @@ const he = (a, s) => {
|
|
|
948
948
|
},
|
|
949
949
|
document: {
|
|
950
950
|
key: (d == null ? void 0 : d.key) || wu(),
|
|
951
|
-
title:
|
|
952
|
-
url:
|
|
953
|
-
fileType:
|
|
951
|
+
title: U,
|
|
952
|
+
url: Ot(n.loadUrl, L),
|
|
953
|
+
fileType: H,
|
|
954
954
|
...((T = n.onlyOfficeConfig) == null ? void 0 : T.document) || {}
|
|
955
955
|
},
|
|
956
|
-
documentType: yc(
|
|
956
|
+
documentType: yc(H)
|
|
957
957
|
// document_fileType: getFileTypes(suffix),
|
|
958
958
|
}, console.log("config", r.value);
|
|
959
959
|
return;
|
|
@@ -982,7 +982,7 @@ const he = (a, s) => {
|
|
|
982
982
|
De,
|
|
983
983
|
{ key: 0 },
|
|
984
984
|
[
|
|
985
|
-
(v = o.value) != null && v.url && u.image ? (E(), oe(
|
|
985
|
+
(v = o.value) != null && v.url && u.image ? (E(), oe(k(Bh), {
|
|
986
986
|
key: 0,
|
|
987
987
|
onClose: g[0] || (g[0] = (w) => c()),
|
|
988
988
|
ref: "previewImgRef",
|
|
@@ -992,13 +992,13 @@ const he = (a, s) => {
|
|
|
992
992
|
}, null, 8, ["url-list"])) : Q("v-if", !0),
|
|
993
993
|
Q(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
994
994
|
Q(" 文档类 "),
|
|
995
|
-
W(
|
|
995
|
+
W(k($g), {
|
|
996
996
|
modelValue: u.video,
|
|
997
997
|
"onUpdate:modelValue": g[1] || (g[1] = (w) => u.video = w),
|
|
998
998
|
url: (p = o.value) == null ? void 0 : p.url,
|
|
999
999
|
onClose: c
|
|
1000
1000
|
}, null, 8, ["modelValue", "url"]),
|
|
1001
|
-
W(
|
|
1001
|
+
W(k($c), {
|
|
1002
1002
|
modelValue: u.office,
|
|
1003
1003
|
"onUpdate:modelValue": g[2] || (g[2] = (w) => u.office = w),
|
|
1004
1004
|
draggable: "",
|
|
@@ -1023,7 +1023,7 @@ const he = (a, s) => {
|
|
|
1023
1023
|
alt: ""
|
|
1024
1024
|
}, null, 8, Rc)
|
|
1025
1025
|
]),
|
|
1026
|
-
W(
|
|
1026
|
+
W(k(kh), {
|
|
1027
1027
|
"config-options": r.value,
|
|
1028
1028
|
"document-server-url": ((T = a.onlyOfficeConfig) == null ? void 0 : T.serverUrl) || a.onlyofficeServer
|
|
1029
1029
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -1118,7 +1118,7 @@ const Fc = {
|
|
|
1118
1118
|
r("dblclick", f);
|
|
1119
1119
|
};
|
|
1120
1120
|
return (f, d) => {
|
|
1121
|
-
const g =
|
|
1121
|
+
const g = Qt("el-tooltip"), v = Qt("el-button");
|
|
1122
1122
|
return E(), D(
|
|
1123
1123
|
"i",
|
|
1124
1124
|
{
|
|
@@ -1223,7 +1223,7 @@ const Fc = {
|
|
|
1223
1223
|
],
|
|
1224
1224
|
64
|
|
1225
1225
|
/* STABLE_FRAGMENT */
|
|
1226
|
-
)) : (E(), oe(v,
|
|
1226
|
+
)) : (E(), oe(v, ei({ key: 1 }, f.$attrs, {
|
|
1227
1227
|
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
1228
1228
|
}), {
|
|
1229
1229
|
default: J(() => [
|
|
@@ -1261,7 +1261,7 @@ const Fc = {
|
|
|
1261
1261
|
class: ue({ "exit-main-page-maximize": a.showBg && a.fullscreen })
|
|
1262
1262
|
},
|
|
1263
1263
|
[
|
|
1264
|
-
W(
|
|
1264
|
+
W(k(Se), {
|
|
1265
1265
|
name: "iksvg_guanbidanchuang",
|
|
1266
1266
|
error: "",
|
|
1267
1267
|
title: "关闭",
|
|
@@ -1303,13 +1303,13 @@ const Fc = {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
});
|
|
1305
1305
|
return (i, r) => {
|
|
1306
|
-
const o =
|
|
1307
|
-
return E(), oe(o,
|
|
1306
|
+
const o = Qt("el-dialog");
|
|
1307
|
+
return E(), oe(o, ei({
|
|
1308
1308
|
modelValue: n.value,
|
|
1309
1309
|
"onUpdate:modelValue": r[0] || (r[0] = (u) => n.value = u),
|
|
1310
1310
|
"align-center": ""
|
|
1311
1311
|
}, i.$attrs, {
|
|
1312
|
-
"close-icon":
|
|
1312
|
+
"close-icon": k(e),
|
|
1313
1313
|
class: `ik-base-dialog ${a.noHeader ? "no-header" : ""} ${a.noFooter ? "no-footer" : ""}`,
|
|
1314
1314
|
fullscreen: t.value,
|
|
1315
1315
|
"modal-class": "baseDialog"
|
|
@@ -1476,7 +1476,7 @@ var Zc = function(a, s) {
|
|
|
1476
1476
|
}, e.onerror = function(i) {
|
|
1477
1477
|
e.removeAttribute("loading"), t(i);
|
|
1478
1478
|
}, e.setAttribute("loading", ""), e;
|
|
1479
|
-
},
|
|
1479
|
+
}, Wt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1480
1480
|
function Jc(a) {
|
|
1481
1481
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1482
1482
|
}
|
|
@@ -1613,7 +1613,7 @@ var Hi, Ga;
|
|
|
1613
1613
|
function Eu() {
|
|
1614
1614
|
if (Ga) return Hi;
|
|
1615
1615
|
Ga = 1;
|
|
1616
|
-
var a = typeof
|
|
1616
|
+
var a = typeof Wt == "object" && Wt && Wt.Object === Object && Wt;
|
|
1617
1617
|
return Hi = a, Hi;
|
|
1618
1618
|
}
|
|
1619
1619
|
var Ui, Wa;
|
|
@@ -1668,7 +1668,7 @@ function vi() {
|
|
|
1668
1668
|
return qi = r, qi;
|
|
1669
1669
|
}
|
|
1670
1670
|
var Gi, Za;
|
|
1671
|
-
function
|
|
1671
|
+
function Ft() {
|
|
1672
1672
|
if (Za) return Gi;
|
|
1673
1673
|
Za = 1;
|
|
1674
1674
|
function a(s) {
|
|
@@ -1681,7 +1681,7 @@ var Wi, Ja;
|
|
|
1681
1681
|
function xu() {
|
|
1682
1682
|
if (Ja) return Wi;
|
|
1683
1683
|
Ja = 1;
|
|
1684
|
-
var a = vi(), s =
|
|
1684
|
+
var a = vi(), s = Ft(), n = "[object AsyncFunction]", t = "[object Function]", e = "[object GeneratorFunction]", i = "[object Proxy]";
|
|
1685
1685
|
function r(o) {
|
|
1686
1686
|
if (!s(o))
|
|
1687
1687
|
return !1;
|
|
@@ -1734,7 +1734,7 @@ var Xi, is;
|
|
|
1734
1734
|
function df() {
|
|
1735
1735
|
if (is) return Xi;
|
|
1736
1736
|
is = 1;
|
|
1737
|
-
var a = xu(), s = hf(), n =
|
|
1737
|
+
var a = xu(), s = hf(), n = Ft(), t = Iu(), e = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, r = Function.prototype, o = Object.prototype, u = r.toString, l = o.hasOwnProperty, c = RegExp(
|
|
1738
1738
|
"^" + u.call(l).replace(e, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1739
1739
|
);
|
|
1740
1740
|
function f(d) {
|
|
@@ -2047,7 +2047,7 @@ function Lf() {
|
|
|
2047
2047
|
return wn = a, wn;
|
|
2048
2048
|
}
|
|
2049
2049
|
var Tn, Is;
|
|
2050
|
-
function
|
|
2050
|
+
function Nt() {
|
|
2051
2051
|
if (Is) return Tn;
|
|
2052
2052
|
Is = 1;
|
|
2053
2053
|
function a(s) {
|
|
@@ -2059,7 +2059,7 @@ var Sn, Ps;
|
|
|
2059
2059
|
function Rf() {
|
|
2060
2060
|
if (Ps) return Sn;
|
|
2061
2061
|
Ps = 1;
|
|
2062
|
-
var a = vi(), s =
|
|
2062
|
+
var a = vi(), s = Nt(), n = "[object Arguments]";
|
|
2063
2063
|
function t(e) {
|
|
2064
2064
|
return s(e) && a(e) == n;
|
|
2065
2065
|
}
|
|
@@ -2069,7 +2069,7 @@ var An, Ds;
|
|
|
2069
2069
|
function Of() {
|
|
2070
2070
|
if (Ds) return An;
|
|
2071
2071
|
Ds = 1;
|
|
2072
|
-
var a = Rf(), s =
|
|
2072
|
+
var a = Rf(), s = Nt(), n = Object.prototype, t = n.hasOwnProperty, e = n.propertyIsEnumerable, i = a(/* @__PURE__ */ (function() {
|
|
2073
2073
|
return arguments;
|
|
2074
2074
|
})()) ? a : function(r) {
|
|
2075
2075
|
return s(r) && t.call(r, "callee") && !e.call(r, "callee");
|
|
@@ -2125,8 +2125,8 @@ var Dn, Ns;
|
|
|
2125
2125
|
function Nf() {
|
|
2126
2126
|
if (Ns) return Dn;
|
|
2127
2127
|
Ns = 1;
|
|
2128
|
-
var a = vi(), s = Ru(), n =
|
|
2129
|
-
M[b] = M[T] = M[P] = M[L] = M[
|
|
2128
|
+
var a = vi(), s = Ru(), n = Nt(), t = "[object Arguments]", e = "[object Array]", i = "[object Boolean]", r = "[object Date]", o = "[object Error]", u = "[object Function]", l = "[object Map]", c = "[object Number]", f = "[object Object]", d = "[object RegExp]", g = "[object Set]", v = "[object String]", m = "[object WeakMap]", p = "[object ArrayBuffer]", w = "[object DataView]", b = "[object Float32Array]", T = "[object Float64Array]", P = "[object Int8Array]", L = "[object Int16Array]", H = "[object Int32Array]", U = "[object Uint8Array]", ee = "[object Uint8ClampedArray]", q = "[object Uint16Array]", j = "[object Uint32Array]", M = {};
|
|
2129
|
+
M[b] = M[T] = M[P] = M[L] = M[H] = M[U] = M[ee] = M[q] = M[j] = !0, M[t] = M[e] = M[p] = M[i] = M[w] = M[r] = M[o] = M[u] = M[l] = M[c] = M[f] = M[d] = M[g] = M[v] = M[m] = !1;
|
|
2130
2130
|
function ne(ce) {
|
|
2131
2131
|
return n(ce) && s(ce.length) && !!M[a(ce)];
|
|
2132
2132
|
}
|
|
@@ -2273,7 +2273,7 @@ var Vn, Xs;
|
|
|
2273
2273
|
function Vf() {
|
|
2274
2274
|
if (Xs) return Vn;
|
|
2275
2275
|
Xs = 1;
|
|
2276
|
-
var a =
|
|
2276
|
+
var a = Ft(), s = ea(), n = zf(), t = Object.prototype, e = t.hasOwnProperty;
|
|
2277
2277
|
function i(r) {
|
|
2278
2278
|
if (!a(r))
|
|
2279
2279
|
return n(r);
|
|
@@ -2478,9 +2478,9 @@ function ra() {
|
|
|
2478
2478
|
mo = 1;
|
|
2479
2479
|
var a = Jf(), s = Xr(), n = Qf(), t = eh(), e = th(), i = vi(), r = Iu(), o = "[object Map]", u = "[object Object]", l = "[object Promise]", c = "[object Set]", f = "[object WeakMap]", d = "[object DataView]", g = r(a), v = r(s), m = r(n), p = r(t), w = r(e), b = i;
|
|
2480
2480
|
return (a && b(new a(new ArrayBuffer(1))) != d || s && b(new s()) != o || n && b(n.resolve()) != l || t && b(new t()) != c || e && b(new e()) != f) && (b = function(T) {
|
|
2481
|
-
var P = i(T), L = P == u ? T.constructor : void 0,
|
|
2482
|
-
if (
|
|
2483
|
-
switch (
|
|
2481
|
+
var P = i(T), L = P == u ? T.constructor : void 0, H = L ? r(L) : "";
|
|
2482
|
+
if (H)
|
|
2483
|
+
switch (H) {
|
|
2484
2484
|
case g:
|
|
2485
2485
|
return d;
|
|
2486
2486
|
case v:
|
|
@@ -2571,10 +2571,10 @@ var pr, So;
|
|
|
2571
2571
|
function uh() {
|
|
2572
2572
|
if (So) return pr;
|
|
2573
2573
|
So = 1;
|
|
2574
|
-
var a = aa(), s = rh(), n = ah(), t = sh(), e = oh(), i = "[object Boolean]", r = "[object Date]", o = "[object Map]", u = "[object Number]", l = "[object RegExp]", c = "[object Set]", f = "[object String]", d = "[object Symbol]", g = "[object ArrayBuffer]", v = "[object DataView]", m = "[object Float32Array]", p = "[object Float64Array]", w = "[object Int8Array]", b = "[object Int16Array]", T = "[object Int32Array]", P = "[object Uint8Array]", L = "[object Uint8ClampedArray]",
|
|
2575
|
-
function ee(q,
|
|
2574
|
+
var a = aa(), s = rh(), n = ah(), t = sh(), e = oh(), i = "[object Boolean]", r = "[object Date]", o = "[object Map]", u = "[object Number]", l = "[object RegExp]", c = "[object Set]", f = "[object String]", d = "[object Symbol]", g = "[object ArrayBuffer]", v = "[object DataView]", m = "[object Float32Array]", p = "[object Float64Array]", w = "[object Int8Array]", b = "[object Int16Array]", T = "[object Int32Array]", P = "[object Uint8Array]", L = "[object Uint8ClampedArray]", H = "[object Uint16Array]", U = "[object Uint32Array]";
|
|
2575
|
+
function ee(q, j, M) {
|
|
2576
2576
|
var ne = q.constructor;
|
|
2577
|
-
switch (
|
|
2577
|
+
switch (j) {
|
|
2578
2578
|
case g:
|
|
2579
2579
|
return a(q);
|
|
2580
2580
|
case i:
|
|
@@ -2589,8 +2589,8 @@ function uh() {
|
|
|
2589
2589
|
case T:
|
|
2590
2590
|
case P:
|
|
2591
2591
|
case L:
|
|
2592
|
-
case B:
|
|
2593
2592
|
case H:
|
|
2593
|
+
case U:
|
|
2594
2594
|
return e(q, M);
|
|
2595
2595
|
case o:
|
|
2596
2596
|
return new ne();
|
|
@@ -2611,7 +2611,7 @@ var mr, Ao;
|
|
|
2611
2611
|
function lh() {
|
|
2612
2612
|
if (Ao) return mr;
|
|
2613
2613
|
Ao = 1;
|
|
2614
|
-
var a =
|
|
2614
|
+
var a = Ft(), s = Object.create, n = /* @__PURE__ */ (function() {
|
|
2615
2615
|
function t() {
|
|
2616
2616
|
}
|
|
2617
2617
|
return function(e) {
|
|
@@ -2640,7 +2640,7 @@ var _r, xo;
|
|
|
2640
2640
|
function fh() {
|
|
2641
2641
|
if (xo) return _r;
|
|
2642
2642
|
xo = 1;
|
|
2643
|
-
var a = ra(), s =
|
|
2643
|
+
var a = ra(), s = Nt(), n = "[object Map]";
|
|
2644
2644
|
function t(e) {
|
|
2645
2645
|
return s(e) && a(e) == n;
|
|
2646
2646
|
}
|
|
@@ -2657,7 +2657,7 @@ var Cr, Po;
|
|
|
2657
2657
|
function dh() {
|
|
2658
2658
|
if (Po) return Cr;
|
|
2659
2659
|
Po = 1;
|
|
2660
|
-
var a = ra(), s =
|
|
2660
|
+
var a = ra(), s = Nt(), n = "[object Set]";
|
|
2661
2661
|
function t(e) {
|
|
2662
2662
|
return s(e) && a(e) == n;
|
|
2663
2663
|
}
|
|
@@ -2674,29 +2674,29 @@ var wr, Lo;
|
|
|
2674
2674
|
function vh() {
|
|
2675
2675
|
if (Lo) return wr;
|
|
2676
2676
|
Lo = 1;
|
|
2677
|
-
var a = If(), s = Pf(), n = Du(), t = jf(), e = qf(), i = Gf(), r = Wf(), o = $f(), u = Yf(), l = Xf(), c = Zf(), f = ra(), d = ih(), g = uh(), v = ch(), m = Zr(), p = Lu(), w = hh(), b =
|
|
2678
|
-
re[q] = re[
|
|
2679
|
-
function
|
|
2680
|
-
var Ce,
|
|
2681
|
-
if (ft && (Ce =
|
|
2677
|
+
var a = If(), s = Pf(), n = Du(), t = jf(), e = qf(), i = Gf(), r = Wf(), o = $f(), u = Yf(), l = Xf(), c = Zf(), f = ra(), d = ih(), g = uh(), v = ch(), m = Zr(), p = Lu(), w = hh(), b = Ft(), T = gh(), P = ta(), L = ia(), H = 1, U = 2, ee = 4, q = "[object Arguments]", j = "[object Array]", M = "[object Boolean]", ne = "[object Date]", ce = "[object Error]", be = "[object Function]", Ve = "[object GeneratorFunction]", qe = "[object Map]", C = "[object Number]", F = "[object Object]", K = "[object RegExp]", S = "[object Set]", I = "[object String]", G = "[object Symbol]", X = "[object WeakMap]", de = "[object ArrayBuffer]", pe = "[object DataView]", me = "[object Float32Array]", Te = "[object Float64Array]", tt = "[object Int8Array]", Ut = "[object Int16Array]", jt = "[object Int32Array]", Tt = "[object Uint8Array]", Tl = "[object Uint8ClampedArray]", Sl = "[object Uint16Array]", Al = "[object Uint32Array]", re = {};
|
|
2678
|
+
re[q] = re[j] = re[de] = re[pe] = re[M] = re[ne] = re[me] = re[Te] = re[tt] = re[Ut] = re[jt] = re[qe] = re[C] = re[F] = re[K] = re[S] = re[I] = re[G] = re[Tt] = re[Tl] = re[Sl] = re[Al] = !0, re[ce] = re[be] = re[X] = !1;
|
|
2679
|
+
function zt(ie, ct, ft, El, Vt, Ge) {
|
|
2680
|
+
var Ce, qt = ct & H, Gt = ct & U, xl = ct & ee;
|
|
2681
|
+
if (ft && (Ce = Vt ? ft(ie, El, Vt, Ge) : ft(ie)), Ce !== void 0)
|
|
2682
2682
|
return Ce;
|
|
2683
2683
|
if (!b(ie))
|
|
2684
2684
|
return ie;
|
|
2685
2685
|
var _a = m(ie);
|
|
2686
2686
|
if (_a) {
|
|
2687
|
-
if (Ce = d(ie), !
|
|
2687
|
+
if (Ce = d(ie), !qt)
|
|
2688
2688
|
return r(ie, Ce);
|
|
2689
2689
|
} else {
|
|
2690
2690
|
var ht = f(ie), ba = ht == be || ht == Ve;
|
|
2691
2691
|
if (p(ie))
|
|
2692
|
-
return i(ie,
|
|
2693
|
-
if (ht ==
|
|
2694
|
-
if (Ce =
|
|
2695
|
-
return
|
|
2692
|
+
return i(ie, qt);
|
|
2693
|
+
if (ht == F || ht == q || ba && !Vt) {
|
|
2694
|
+
if (Ce = Gt || ba ? {} : v(ie), !qt)
|
|
2695
|
+
return Gt ? u(ie, e(Ce, ie)) : o(ie, t(Ce, ie));
|
|
2696
2696
|
} else {
|
|
2697
2697
|
if (!re[ht])
|
|
2698
|
-
return
|
|
2699
|
-
Ce = g(ie, ht,
|
|
2698
|
+
return Vt ? ie : {};
|
|
2699
|
+
Ce = g(ie, ht, qt);
|
|
2700
2700
|
}
|
|
2701
2701
|
}
|
|
2702
2702
|
Ge || (Ge = new a());
|
|
@@ -2704,16 +2704,16 @@ function vh() {
|
|
|
2704
2704
|
if (Ca)
|
|
2705
2705
|
return Ca;
|
|
2706
2706
|
Ge.set(ie, Ce), T(ie) ? ie.forEach(function(We) {
|
|
2707
|
-
Ce.add(
|
|
2707
|
+
Ce.add(zt(We, ct, ft, We, ie, Ge));
|
|
2708
2708
|
}) : w(ie) && ie.forEach(function(We, it) {
|
|
2709
|
-
Ce.set(it,
|
|
2709
|
+
Ce.set(it, zt(We, ct, ft, it, ie, Ge));
|
|
2710
2710
|
});
|
|
2711
|
-
var Il = xl ?
|
|
2711
|
+
var Il = xl ? Gt ? c : l : Gt ? L : P, ka = _a ? void 0 : Il(ie);
|
|
2712
2712
|
return s(ka || ie, function(We, it) {
|
|
2713
|
-
ka && (it = We, We = ie[it]), n(Ce, it,
|
|
2713
|
+
ka && (it = We, We = ie[it]), n(Ce, it, zt(We, ct, ft, it, ie, Ge));
|
|
2714
2714
|
}), Ce;
|
|
2715
2715
|
}
|
|
2716
|
-
return wr =
|
|
2716
|
+
return wr = zt, wr;
|
|
2717
2717
|
}
|
|
2718
2718
|
var Tr, Ro;
|
|
2719
2719
|
function ph() {
|
|
@@ -2944,7 +2944,7 @@ const Ch = /* @__PURE__ */ se({
|
|
|
2944
2944
|
style: Rt({ height: s.officeHeight })
|
|
2945
2945
|
},
|
|
2946
2946
|
[
|
|
2947
|
-
W(
|
|
2947
|
+
W(k(sa), {
|
|
2948
2948
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
2949
2949
|
ref: "editorRef",
|
|
2950
2950
|
"document-server-url": a.documentServerUrl,
|
|
@@ -2962,7 +2962,7 @@ const zu = typeof window < "u", wh = (a) => typeof a == "string", Th = () => {
|
|
|
2962
2962
|
};
|
|
2963
2963
|
zu && ((Oo = window == null ? void 0 : window.navigator) != null && Oo.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
2964
2964
|
function Vu(a) {
|
|
2965
|
-
return typeof a == "function" ? a() :
|
|
2965
|
+
return typeof a == "function" ? a() : k(a);
|
|
2966
2966
|
}
|
|
2967
2967
|
function Sh(a) {
|
|
2968
2968
|
return a;
|
|
@@ -2976,7 +2976,7 @@ function Eh(a) {
|
|
|
2976
2976
|
return (s = n == null ? void 0 : n.$el) != null ? s : n;
|
|
2977
2977
|
}
|
|
2978
2978
|
const xh = zu ? window : void 0;
|
|
2979
|
-
function
|
|
2979
|
+
function Kt(...a) {
|
|
2980
2980
|
let s, n, t, e;
|
|
2981
2981
|
if (wh(a[0]) || Array.isArray(a[0]) ? ([n, t, e] = a, s = xh) : [s, n, t, e] = a, !s)
|
|
2982
2982
|
return Th;
|
|
@@ -3131,19 +3131,19 @@ const Oh = {
|
|
|
3131
3131
|
}), w = we(i.zIndex ?? l()), b = le(() => {
|
|
3132
3132
|
const { urlList: I } = i;
|
|
3133
3133
|
return I.length <= 1;
|
|
3134
|
-
}), T = le(() => v.value === 0), P = le(() => v.value === i.urlList.length - 1), L = le(() => i.urlList[v.value]),
|
|
3134
|
+
}), T = le(() => v.value === 0), P = le(() => v.value === i.urlList.length - 1), L = le(() => i.urlList[v.value]), H = le(() => [
|
|
3135
3135
|
u.e("btn"),
|
|
3136
3136
|
u.e("prev"),
|
|
3137
3137
|
u.is("disabled", !i.infinite && T.value)
|
|
3138
|
-
]),
|
|
3138
|
+
]), U = le(() => [
|
|
3139
3139
|
u.e("btn"),
|
|
3140
3140
|
u.e("next"),
|
|
3141
3141
|
u.is("disabled", !i.infinite && P.value)
|
|
3142
3142
|
]), ee = le(() => {
|
|
3143
3143
|
const { scale: I, deg: G, offsetX: X, offsetY: de, enableTransition: pe } = p.value;
|
|
3144
3144
|
let me = X / I, Te = de / I;
|
|
3145
|
-
const tt = G * Math.PI / 180,
|
|
3146
|
-
me = me *
|
|
3145
|
+
const tt = G * Math.PI / 180, Ut = Math.cos(tt), jt = Math.sin(tt);
|
|
3146
|
+
me = me * Ut + Te * jt, Te = Te * Ut - X / I * jt;
|
|
3147
3147
|
const Tt = {
|
|
3148
3148
|
transform: `scale(${I}) rotate(${G}deg) translate(${me}px, ${Te}px)`,
|
|
3149
3149
|
transition: pe ? "transform .3s" : ""
|
|
@@ -3153,7 +3153,7 @@ const Oh = {
|
|
|
3153
3153
|
function q() {
|
|
3154
3154
|
M(), r("close");
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3156
|
+
function j() {
|
|
3157
3157
|
const I = Si.throttle((X) => {
|
|
3158
3158
|
switch (X.code) {
|
|
3159
3159
|
// ESC
|
|
@@ -3166,30 +3166,30 @@ const Oh = {
|
|
|
3166
3166
|
break;
|
|
3167
3167
|
// LEFT_ARROW
|
|
3168
3168
|
case dt.left:
|
|
3169
|
-
|
|
3169
|
+
F();
|
|
3170
3170
|
break;
|
|
3171
3171
|
// UP_ARROW
|
|
3172
3172
|
case dt.up:
|
|
3173
|
-
|
|
3173
|
+
S("zoomIn");
|
|
3174
3174
|
break;
|
|
3175
3175
|
// RIGHT_ARROW
|
|
3176
3176
|
case dt.right:
|
|
3177
|
-
|
|
3177
|
+
K();
|
|
3178
3178
|
break;
|
|
3179
3179
|
// DOWN_ARROW
|
|
3180
3180
|
case dt.down:
|
|
3181
|
-
|
|
3181
|
+
S("zoomOut");
|
|
3182
3182
|
break;
|
|
3183
3183
|
}
|
|
3184
3184
|
}), G = Si.throttle((X) => {
|
|
3185
3185
|
const de = X.deltaY || X.deltaX;
|
|
3186
|
-
|
|
3186
|
+
S(de < 0 ? "zoomIn" : "zoomOut", {
|
|
3187
3187
|
zoomRate: i.zoomRate,
|
|
3188
3188
|
enableTransition: !1
|
|
3189
3189
|
});
|
|
3190
3190
|
});
|
|
3191
3191
|
d.run(() => {
|
|
3192
|
-
|
|
3192
|
+
Kt(document, "keydown", I), Kt(document, "wheel", G);
|
|
3193
3193
|
});
|
|
3194
3194
|
}
|
|
3195
3195
|
function M() {
|
|
@@ -3210,8 +3210,8 @@ const Oh = {
|
|
|
3210
3210
|
offsetX: G + tt.pageX - de,
|
|
3211
3211
|
offsetY: X + tt.pageY - pe
|
|
3212
3212
|
};
|
|
3213
|
-
}), Te =
|
|
3214
|
-
|
|
3213
|
+
}), Te = Kt(document, "mousemove", me);
|
|
3214
|
+
Kt(document, "mouseup", () => {
|
|
3215
3215
|
Te();
|
|
3216
3216
|
}), I.preventDefault();
|
|
3217
3217
|
}
|
|
@@ -3229,17 +3229,17 @@ const Oh = {
|
|
|
3229
3229
|
const I = t(e), G = Object.values(e), X = m.value.name, pe = ((G == null ? void 0 : G.findIndex((me) => me.name === X)) + 1) % I.length;
|
|
3230
3230
|
m.value = e[I[pe]], Ve();
|
|
3231
3231
|
}
|
|
3232
|
-
function
|
|
3232
|
+
function C(I) {
|
|
3233
3233
|
const G = i.urlList.length;
|
|
3234
3234
|
v.value = (I + G) % G;
|
|
3235
3235
|
}
|
|
3236
|
-
function
|
|
3237
|
-
T.value && !i.infinite ||
|
|
3236
|
+
function F() {
|
|
3237
|
+
T.value && !i.infinite || C(v.value - 1);
|
|
3238
3238
|
}
|
|
3239
|
-
function
|
|
3240
|
-
P.value && !i.infinite ||
|
|
3239
|
+
function K() {
|
|
3240
|
+
P.value && !i.infinite || C(v.value + 1);
|
|
3241
3241
|
}
|
|
3242
|
-
function
|
|
3242
|
+
function S(I, G = {}) {
|
|
3243
3243
|
if (g.value) return;
|
|
3244
3244
|
const { minScale: X, maxScale: de } = i, { zoomRate: pe, rotateDeg: me, enableTransition: Te } = {
|
|
3245
3245
|
zoomRate: i.zoomRate,
|
|
@@ -3276,12 +3276,12 @@ const Oh = {
|
|
|
3276
3276
|
Ve(), r("switch", I);
|
|
3277
3277
|
}), Fl(() => {
|
|
3278
3278
|
var I, G;
|
|
3279
|
-
|
|
3279
|
+
j(), (G = (I = c.value) == null ? void 0 : I.focus) == null || G.call(I);
|
|
3280
3280
|
}), s({
|
|
3281
3281
|
/**
|
|
3282
3282
|
* @description manually switch image
|
|
3283
3283
|
*/
|
|
3284
|
-
setActiveItem:
|
|
3284
|
+
setActiveItem: C
|
|
3285
3285
|
}), (I, G) => (E(), oe(_u, { to: "body" }, [
|
|
3286
3286
|
W(bu, {
|
|
3287
3287
|
name: "viewer-fade",
|
|
@@ -3294,14 +3294,14 @@ const Oh = {
|
|
|
3294
3294
|
ref_key: "wrapper",
|
|
3295
3295
|
ref: c,
|
|
3296
3296
|
tabindex: -1,
|
|
3297
|
-
class: ue(
|
|
3297
|
+
class: ue(k(u).e("wrapper")),
|
|
3298
3298
|
style: Rt({ zIndex: w.value })
|
|
3299
3299
|
},
|
|
3300
3300
|
[
|
|
3301
3301
|
x(
|
|
3302
3302
|
"div",
|
|
3303
3303
|
{
|
|
3304
|
-
class: ue(
|
|
3304
|
+
class: ue(k(u).e("mask")),
|
|
3305
3305
|
onClick: G[0] || (G[0] = bt((X) => I.hideOnClickModal && q(), ["self"]))
|
|
3306
3306
|
},
|
|
3307
3307
|
null,
|
|
@@ -3312,13 +3312,13 @@ const Oh = {
|
|
|
3312
3312
|
x(
|
|
3313
3313
|
"span",
|
|
3314
3314
|
{
|
|
3315
|
-
class: ue([
|
|
3315
|
+
class: ue([k(u).e("btn"), k(u).e("close")]),
|
|
3316
3316
|
onClick: q
|
|
3317
3317
|
},
|
|
3318
3318
|
[
|
|
3319
|
-
W(
|
|
3319
|
+
W(k(Ee), null, {
|
|
3320
3320
|
default: J(() => [
|
|
3321
|
-
W(
|
|
3321
|
+
W(k(Tu))
|
|
3322
3322
|
]),
|
|
3323
3323
|
_: 1
|
|
3324
3324
|
/* STABLE */
|
|
@@ -3335,13 +3335,13 @@ const Oh = {
|
|
|
3335
3335
|
x(
|
|
3336
3336
|
"span",
|
|
3337
3337
|
{
|
|
3338
|
-
class: ue(
|
|
3339
|
-
onClick:
|
|
3338
|
+
class: ue(H.value),
|
|
3339
|
+
onClick: F
|
|
3340
3340
|
},
|
|
3341
3341
|
[
|
|
3342
|
-
W(
|
|
3342
|
+
W(k(Ee), null, {
|
|
3343
3343
|
default: J(() => [
|
|
3344
|
-
W(
|
|
3344
|
+
W(k($l))
|
|
3345
3345
|
]),
|
|
3346
3346
|
_: 1
|
|
3347
3347
|
/* STABLE */
|
|
@@ -3353,13 +3353,13 @@ const Oh = {
|
|
|
3353
3353
|
x(
|
|
3354
3354
|
"span",
|
|
3355
3355
|
{
|
|
3356
|
-
class: ue(
|
|
3357
|
-
onClick:
|
|
3356
|
+
class: ue(U.value),
|
|
3357
|
+
onClick: K
|
|
3358
3358
|
},
|
|
3359
3359
|
[
|
|
3360
|
-
W(
|
|
3360
|
+
W(k(Ee), null, {
|
|
3361
3361
|
default: J(() => [
|
|
3362
|
-
W(
|
|
3362
|
+
W(k(Xl))
|
|
3363
3363
|
]),
|
|
3364
3364
|
_: 1
|
|
3365
3365
|
/* STABLE */
|
|
@@ -3376,29 +3376,29 @@ const Oh = {
|
|
|
3376
3376
|
x(
|
|
3377
3377
|
"div",
|
|
3378
3378
|
{
|
|
3379
|
-
class: ue([
|
|
3379
|
+
class: ue([k(u).e("btn"), k(u).e("actions")])
|
|
3380
3380
|
},
|
|
3381
3381
|
[
|
|
3382
3382
|
x(
|
|
3383
3383
|
"div",
|
|
3384
3384
|
{
|
|
3385
|
-
class: ue(
|
|
3385
|
+
class: ue(k(u).e("actions__inner"))
|
|
3386
3386
|
},
|
|
3387
3387
|
[
|
|
3388
|
-
W(
|
|
3389
|
-
onClick: G[1] || (G[1] = (X) =>
|
|
3388
|
+
W(k(Ee), {
|
|
3389
|
+
onClick: G[1] || (G[1] = (X) => S("zoomOut"))
|
|
3390
3390
|
}, {
|
|
3391
3391
|
default: J(() => [
|
|
3392
|
-
W(
|
|
3392
|
+
W(k(pc))
|
|
3393
3393
|
]),
|
|
3394
3394
|
_: 1
|
|
3395
3395
|
/* STABLE */
|
|
3396
3396
|
}),
|
|
3397
|
-
W(
|
|
3398
|
-
onClick: G[2] || (G[2] = (X) =>
|
|
3397
|
+
W(k(Ee), {
|
|
3398
|
+
onClick: G[2] || (G[2] = (X) => S("zoomIn"))
|
|
3399
3399
|
}, {
|
|
3400
3400
|
default: J(() => [
|
|
3401
|
-
W(
|
|
3401
|
+
W(k(gc))
|
|
3402
3402
|
]),
|
|
3403
3403
|
_: 1
|
|
3404
3404
|
/* STABLE */
|
|
@@ -3406,13 +3406,13 @@ const Oh = {
|
|
|
3406
3406
|
x(
|
|
3407
3407
|
"i",
|
|
3408
3408
|
{
|
|
3409
|
-
class: ue(
|
|
3409
|
+
class: ue(k(u).e("actions__divider"))
|
|
3410
3410
|
},
|
|
3411
3411
|
null,
|
|
3412
3412
|
2
|
|
3413
3413
|
/* CLASS */
|
|
3414
3414
|
),
|
|
3415
|
-
W(
|
|
3415
|
+
W(k(Ee), { onClick: qe }, {
|
|
3416
3416
|
default: J(() => [
|
|
3417
3417
|
(E(), oe(Nl(m.value.icon)))
|
|
3418
3418
|
]),
|
|
@@ -3422,26 +3422,26 @@ const Oh = {
|
|
|
3422
3422
|
x(
|
|
3423
3423
|
"i",
|
|
3424
3424
|
{
|
|
3425
|
-
class: ue(
|
|
3425
|
+
class: ue(k(u).e("actions__divider"))
|
|
3426
3426
|
},
|
|
3427
3427
|
null,
|
|
3428
3428
|
2
|
|
3429
3429
|
/* CLASS */
|
|
3430
3430
|
),
|
|
3431
|
-
W(
|
|
3432
|
-
onClick: G[3] || (G[3] = (X) =>
|
|
3431
|
+
W(k(Ee), {
|
|
3432
|
+
onClick: G[3] || (G[3] = (X) => S("anticlockwise"))
|
|
3433
3433
|
}, {
|
|
3434
3434
|
default: J(() => [
|
|
3435
|
-
W(
|
|
3435
|
+
W(k(rc))
|
|
3436
3436
|
]),
|
|
3437
3437
|
_: 1
|
|
3438
3438
|
/* STABLE */
|
|
3439
3439
|
}),
|
|
3440
|
-
W(
|
|
3441
|
-
onClick: G[4] || (G[4] = (X) =>
|
|
3440
|
+
W(k(Ee), {
|
|
3441
|
+
onClick: G[4] || (G[4] = (X) => S("clockwise"))
|
|
3442
3442
|
}, {
|
|
3443
3443
|
default: J(() => [
|
|
3444
|
-
W(
|
|
3444
|
+
W(k(sc))
|
|
3445
3445
|
]),
|
|
3446
3446
|
_: 1
|
|
3447
3447
|
/* STABLE */
|
|
@@ -3458,7 +3458,7 @@ const Oh = {
|
|
|
3458
3458
|
x(
|
|
3459
3459
|
"div",
|
|
3460
3460
|
{
|
|
3461
|
-
class: ue(
|
|
3461
|
+
class: ue(k(u).e("canvas"))
|
|
3462
3462
|
},
|
|
3463
3463
|
[
|
|
3464
3464
|
(E(!0), D(
|
|
@@ -3470,7 +3470,7 @@ const Oh = {
|
|
|
3470
3470
|
key: X,
|
|
3471
3471
|
src: X,
|
|
3472
3472
|
style: Rt(ee.value),
|
|
3473
|
-
class: ue(
|
|
3473
|
+
class: ue(k(u).e("img")),
|
|
3474
3474
|
crossorigin: I.crossorigin,
|
|
3475
3475
|
onLoad: ne,
|
|
3476
3476
|
onError: ce,
|
|
@@ -3549,7 +3549,7 @@ function _(a, s, n) {
|
|
|
3549
3549
|
writable: !0
|
|
3550
3550
|
}) : a[s] = n, a;
|
|
3551
3551
|
}
|
|
3552
|
-
function
|
|
3552
|
+
function N(a, s) {
|
|
3553
3553
|
if (typeof s != "function" && s !== null)
|
|
3554
3554
|
throw new TypeError("Super expression must either be null or a function");
|
|
3555
3555
|
a.prototype = Object.create(s && s.prototype, {
|
|
@@ -3596,7 +3596,7 @@ function oa(a, s) {
|
|
|
3596
3596
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
3597
3597
|
return y(a);
|
|
3598
3598
|
}
|
|
3599
|
-
function
|
|
3599
|
+
function B(a) {
|
|
3600
3600
|
var s = Hh();
|
|
3601
3601
|
return function() {
|
|
3602
3602
|
var t = z(a), e;
|
|
@@ -4262,51 +4262,51 @@ function Zh(a, s, n) {
|
|
|
4262
4262
|
if (typeof a != "function")
|
|
4263
4263
|
throw new TypeError("Expected a function");
|
|
4264
4264
|
s = +s || 0, Ku(n) && (c = !!n.leading, f = "maxWait" in n, i = f ? Math.max(+n.maxWait || 0, s) : i, d = "trailing" in n ? !!n.trailing : d);
|
|
4265
|
-
function v(
|
|
4265
|
+
function v(j) {
|
|
4266
4266
|
var M = t, ne = e;
|
|
4267
|
-
return t = e = void 0, l =
|
|
4267
|
+
return t = e = void 0, l = j, r = a.apply(ne, M), r;
|
|
4268
4268
|
}
|
|
4269
|
-
function m(
|
|
4270
|
-
return g ? (window.cancelAnimationFrame(o), window.requestAnimationFrame(
|
|
4269
|
+
function m(j, M) {
|
|
4270
|
+
return g ? (window.cancelAnimationFrame(o), window.requestAnimationFrame(j)) : setTimeout(j, M);
|
|
4271
4271
|
}
|
|
4272
|
-
function p(
|
|
4272
|
+
function p(j) {
|
|
4273
4273
|
if (g)
|
|
4274
|
-
return window.cancelAnimationFrame(
|
|
4275
|
-
clearTimeout(
|
|
4274
|
+
return window.cancelAnimationFrame(j);
|
|
4275
|
+
clearTimeout(j);
|
|
4276
4276
|
}
|
|
4277
|
-
function w(
|
|
4278
|
-
return l =
|
|
4277
|
+
function w(j) {
|
|
4278
|
+
return l = j, o = m(P, s), c ? v(j) : r;
|
|
4279
4279
|
}
|
|
4280
|
-
function b(
|
|
4281
|
-
var M =
|
|
4280
|
+
function b(j) {
|
|
4281
|
+
var M = j - u, ne = j - l, ce = s - M;
|
|
4282
4282
|
return f ? Math.min(ce, i - ne) : ce;
|
|
4283
4283
|
}
|
|
4284
|
-
function T(
|
|
4285
|
-
var M =
|
|
4284
|
+
function T(j) {
|
|
4285
|
+
var M = j - u, ne = j - l;
|
|
4286
4286
|
return u === void 0 || M >= s || M < 0 || f && ne >= i;
|
|
4287
4287
|
}
|
|
4288
4288
|
function P() {
|
|
4289
|
-
var
|
|
4290
|
-
if (T(
|
|
4291
|
-
return L(
|
|
4292
|
-
o = m(P, b(
|
|
4289
|
+
var j = Date.now();
|
|
4290
|
+
if (T(j))
|
|
4291
|
+
return L(j);
|
|
4292
|
+
o = m(P, b(j));
|
|
4293
4293
|
}
|
|
4294
|
-
function L(
|
|
4295
|
-
return o = void 0, d && t ? v(
|
|
4294
|
+
function L(j) {
|
|
4295
|
+
return o = void 0, d && t ? v(j) : (t = e = void 0, r);
|
|
4296
4296
|
}
|
|
4297
|
-
function
|
|
4297
|
+
function H() {
|
|
4298
4298
|
o !== void 0 && p(o), l = 0, t = u = e = o = void 0;
|
|
4299
4299
|
}
|
|
4300
|
-
function
|
|
4300
|
+
function U() {
|
|
4301
4301
|
return o === void 0 ? r : L(Date.now());
|
|
4302
4302
|
}
|
|
4303
4303
|
function ee() {
|
|
4304
4304
|
return o !== void 0;
|
|
4305
4305
|
}
|
|
4306
4306
|
function q() {
|
|
4307
|
-
for (var
|
|
4307
|
+
for (var j = Date.now(), M = T(j), ne = arguments.length, ce = new Array(ne), be = 0; be < ne; be++)
|
|
4308
4308
|
ce[be] = arguments[be];
|
|
4309
|
-
if (t = ce, e = this, u =
|
|
4309
|
+
if (t = ce, e = this, u = j, M) {
|
|
4310
4310
|
if (o === void 0)
|
|
4311
4311
|
return w(u);
|
|
4312
4312
|
if (f)
|
|
@@ -4314,7 +4314,7 @@ function Zh(a, s, n) {
|
|
|
4314
4314
|
}
|
|
4315
4315
|
return o === void 0 && (o = m(P, s)), r;
|
|
4316
4316
|
}
|
|
4317
|
-
return q.cancel =
|
|
4317
|
+
return q.cancel = H, q.flush = U, q.pending = ee, q;
|
|
4318
4318
|
}
|
|
4319
4319
|
function Jh(a, s, n) {
|
|
4320
4320
|
var t = !0, e = !0;
|
|
@@ -4339,9 +4339,9 @@ function ed(a, s, n) {
|
|
|
4339
4339
|
var Vo = {
|
|
4340
4340
|
android: /(Android)\s([\d.]+)/,
|
|
4341
4341
|
ios: /(Version)\/([\d.]+)/
|
|
4342
|
-
}, td = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"],
|
|
4342
|
+
}, td = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], $ = {
|
|
4343
4343
|
get device() {
|
|
4344
|
-
var a =
|
|
4344
|
+
var a = $.os;
|
|
4345
4345
|
return a.isPc ? "pc" : "mobile";
|
|
4346
4346
|
},
|
|
4347
4347
|
get browser() {
|
|
@@ -4499,7 +4499,7 @@ var Vo = {
|
|
|
4499
4499
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
4500
4500
|
}
|
|
4501
4501
|
}
|
|
4502
|
-
), Pe = "play", ua = "playing", ot = "ended", wt = "pause",
|
|
4502
|
+
), Pe = "play", ua = "playing", ot = "ended", wt = "pause", Bt = "error", _i = "seeking", Ue = "seeked", Ie = "timeupdate", Ht = "waiting", He = "canplay", id = "canplaythrough", ze = "durationchange", $u = "volumechange", je = "loadeddata", nd = "loadedmetadata", Yu = "ratechange", Xu = "progress", la = "loadstart", ut = "emptied", rd = "stalled", ad = "suspend", sd = "abort", od = "bufferedChange", ca = "focus", Zu = "blur", fa = "ready", Ju = "urlNull", rt = "autoplay_started", ha = "autoplay_was_prevented", bi = "complete", ii = "replay", da = "destroy", Ci = "urlchange", qr = "download_speed_change", Qu = "leaveplayer", el = "enterplayer", tl = "loading", Be = "fullscreen_change", ni = "cssFullscreen_change", ri = "mini_state_change", ga = "definition_change", ud = "before_definition_change", Gr = "after_definition_change", ld = "SEI_PARSED", cd = "retry", Ze = "video_resize", Wr = "pip_change", il = "rotate", nl = "screenShot", ai = "playnext", rl = "shortcut", al = "xglog", si = "user_action", ki = "reset", sl = "source_error", ol = "source_success", fd = "switch_subtitle", ul = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], ll = {
|
|
4503
4503
|
STATS_INFO: "stats_info",
|
|
4504
4504
|
STATS_DOWNLOAD: "stats_download",
|
|
4505
4505
|
STATS_RESET: "stats_reset"
|
|
@@ -4523,7 +4523,7 @@ const hd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4523
4523
|
EMPTIED: ut,
|
|
4524
4524
|
ENDED: ot,
|
|
4525
4525
|
ENTER_PLAYER: el,
|
|
4526
|
-
ERROR:
|
|
4526
|
+
ERROR: Bt,
|
|
4527
4527
|
FPS_STUCK: cl,
|
|
4528
4528
|
FULLSCREEN_CHANGE: Be,
|
|
4529
4529
|
LEAVE_PLAYER: Qu,
|
|
@@ -4564,7 +4564,7 @@ const hd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4564
4564
|
VIDEO_EVENTS: ul,
|
|
4565
4565
|
VIDEO_RESIZE: Ze,
|
|
4566
4566
|
VOLUME_CHANGE: $u,
|
|
4567
|
-
WAITING:
|
|
4567
|
+
WAITING: Ht,
|
|
4568
4568
|
XGLOG: al
|
|
4569
4569
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4570
4570
|
function xr(a, s) {
|
|
@@ -4606,8 +4606,8 @@ function dd(a, s) {
|
|
|
4606
4606
|
};
|
|
4607
4607
|
}
|
|
4608
4608
|
var gd = /* @__PURE__ */ (function(a) {
|
|
4609
|
-
|
|
4610
|
-
var s =
|
|
4609
|
+
N(n, a);
|
|
4610
|
+
var s = B(n);
|
|
4611
4611
|
function n(t) {
|
|
4612
4612
|
var e;
|
|
4613
4613
|
R(this, n), e = s.call(this, t), e._hasStart = !1, e._currentTime = 0, e._duration = 0, e._internalOp = {}, e._lastMuted = !1, e.vtype = "MP4", e._rate = -1, e.mediaConfig = Object.assign({}, {
|
|
@@ -4625,7 +4625,7 @@ var gd = /* @__PURE__ */ (function(a) {
|
|
|
4625
4625
|
"data-index": -1
|
|
4626
4626
|
}, t.videoConfig, t.videoAttributes);
|
|
4627
4627
|
var i = t["x5-video-player-type"] || t.x5VideoPlayerType;
|
|
4628
|
-
return
|
|
4628
|
+
return $.isWeixin && $.os.isAndroid && i && (e.mediaConfig["x5-video-player-type"] = i, delete e.mediaConfig.playsinline, delete e.mediaConfig["webkit-playsinline"], delete e.mediaConfig["x5-playsinline"]), t.loop && (e.mediaConfig.loop = "loop"), t.autoplayMuted && !Object.prototype.hasOwnProperty.call(e.mediaConfig, "muted") && (e.mediaConfig.muted = !0), e.media = t.mediaEl instanceof HTMLMediaElement ? t.mediaEl : typeof t.mediaEl == "function" ? t.mediaEl(e.mediaConfig) : h.createDom(e.mediaConfig.mediaType, "", e.mediaConfig, ""), t.defaultPlaybackRate && (e.media.defaultPlaybackRate = e.media.playbackRate = t.defaultPlaybackRate), h.typeOf(t.volume) === "Number" && (e.volume = t.volume), t.autoplayMuted && (e.media.muted = !0, e._lastMuted = !0), t.autoplay && (e.media.autoplay = !0), t.playsinline && (e.media.playsinline = !0), e._interval = {}, e.mediaEventMiddleware = {}, e.attachVideoEvents(), e;
|
|
4629
4629
|
}
|
|
4630
4630
|
return O(n, [{
|
|
4631
4631
|
key: "setEventsMiddleware",
|
|
@@ -4959,7 +4959,7 @@ var gd = /* @__PURE__ */ (function(a) {
|
|
|
4959
4959
|
},
|
|
4960
4960
|
set: function(e) {
|
|
4961
4961
|
if (this.media) {
|
|
4962
|
-
if (this.emit(Ci, e), this.emit(
|
|
4962
|
+
if (this.emit(Ci, e), this.emit(Ht), this._currentTime = 0, this._duration = 0, h.isMSE(this.media)) {
|
|
4963
4963
|
this.onWaiting();
|
|
4964
4964
|
return;
|
|
4965
4965
|
}
|
|
@@ -5102,7 +5102,7 @@ var gd = /* @__PURE__ */ (function(a) {
|
|
|
5102
5102
|
}
|
|
5103
5103
|
}]), a;
|
|
5104
5104
|
})(), Wo = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Ko = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], $o = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Xe = "data-xgplayerid";
|
|
5105
|
-
function
|
|
5105
|
+
function $t(a, s, n) {
|
|
5106
5106
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
5107
5107
|
e[i - 3] = arguments[i];
|
|
5108
5108
|
var r = s.call.apply(s, [a].concat(e));
|
|
@@ -5130,15 +5130,15 @@ function oi(a, s) {
|
|
|
5130
5130
|
try {
|
|
5131
5131
|
var r = Fe.apply(void 0, [this, a, s].concat(Array.prototype.slice.call(arguments)));
|
|
5132
5132
|
r ? r.then ? r.then(function(o) {
|
|
5133
|
-
o !== !1 &&
|
|
5133
|
+
o !== !1 && $t.apply(void 0, [e, s, n.next].concat(Re(t)));
|
|
5134
5134
|
}).catch(function(o) {
|
|
5135
5135
|
throw o;
|
|
5136
|
-
}) :
|
|
5136
|
+
}) : $t.apply(void 0, [this, s, n.next].concat(Array.prototype.slice.call(arguments))) : r === void 0 && $t.apply(void 0, [this, s, n.next].concat(Array.prototype.slice.call(arguments)));
|
|
5137
5137
|
} catch (o) {
|
|
5138
5138
|
throw o.message = "[pluginName: ".concat(this.pluginName, ":").concat(a, "] >> ").concat(o.message), o;
|
|
5139
5139
|
}
|
|
5140
5140
|
else
|
|
5141
|
-
|
|
5141
|
+
$t.apply(void 0, [this, s, n.next].concat(Array.prototype.slice.call(arguments)));
|
|
5142
5142
|
}).bind(this);
|
|
5143
5143
|
}
|
|
5144
5144
|
function fl(a, s) {
|
|
@@ -5526,8 +5526,8 @@ function wd(a, s) {
|
|
|
5526
5526
|
});
|
|
5527
5527
|
}
|
|
5528
5528
|
var te = /* @__PURE__ */ (function(a) {
|
|
5529
|
-
|
|
5530
|
-
var s =
|
|
5529
|
+
N(n, a);
|
|
5530
|
+
var s = B(n);
|
|
5531
5531
|
function n() {
|
|
5532
5532
|
var t, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5533
5533
|
return R(this, n), t = s.call(this, e), t.__delegates = [], t;
|
|
@@ -6089,7 +6089,7 @@ var ve = {
|
|
|
6089
6089
|
delete this.pluginGroup[n], delete s._pluginInfoId;
|
|
6090
6090
|
}
|
|
6091
6091
|
}
|
|
6092
|
-
},
|
|
6092
|
+
}, A = {
|
|
6093
6093
|
DEFAULT: "xgplayer",
|
|
6094
6094
|
DEFAULT_SKIN: "xgplayer-skin-default",
|
|
6095
6095
|
ENTER: "xgplayer-is-enter",
|
|
@@ -6213,8 +6213,8 @@ var Ed = function(s, n) {
|
|
|
6213
6213
|
var m = s.config.i18n || [];
|
|
6214
6214
|
v.push.apply(v, Re(m)), s.config.i18n = v;
|
|
6215
6215
|
}, xd = /* @__PURE__ */ (function(a) {
|
|
6216
|
-
|
|
6217
|
-
var s =
|
|
6216
|
+
N(n, a);
|
|
6217
|
+
var s = B(n);
|
|
6218
6218
|
function n() {
|
|
6219
6219
|
var t;
|
|
6220
6220
|
R(this, n);
|
|
@@ -6233,14 +6233,14 @@ var Ed = function(s, n) {
|
|
|
6233
6233
|
return O(n, [{
|
|
6234
6234
|
key: "beforeCreate",
|
|
6235
6235
|
value: function(e) {
|
|
6236
|
-
!e.config.mode &&
|
|
6236
|
+
!e.config.mode && $.device === "mobile" && (e.config.mode = "flex"), e.player.config.marginControls && (e.config.autoHide = !1);
|
|
6237
6237
|
}
|
|
6238
6238
|
}, {
|
|
6239
6239
|
key: "afterCreate",
|
|
6240
6240
|
value: function() {
|
|
6241
6241
|
var e = this, i = this.config, r = i.disable, o = i.height, u = i.mode;
|
|
6242
6242
|
if (!r) {
|
|
6243
|
-
u === "flex" && this.player.addClass(
|
|
6243
|
+
u === "flex" && this.player.addClass(A.FLEX_CONTROLS);
|
|
6244
6244
|
var l = {
|
|
6245
6245
|
height: "".concat(o, "px")
|
|
6246
6246
|
};
|
|
@@ -6250,7 +6250,7 @@ var Ed = function(s, n) {
|
|
|
6250
6250
|
f ? h.addClass(e.root, "mini-controls") : h.removeClass(e.root, "mini-controls");
|
|
6251
6251
|
});
|
|
6252
6252
|
var c = this.playerConfig.isMobileSimulateMode;
|
|
6253
|
-
|
|
6253
|
+
$.device !== "mobile" && c !== "mobile" && (this.bind("mouseenter", this.onMouseEnter), this.bind("mouseleave", this.onMouseLeave));
|
|
6254
6254
|
}
|
|
6255
6255
|
}
|
|
6256
6256
|
}, {
|
|
@@ -6277,12 +6277,12 @@ var Ed = function(s, n) {
|
|
|
6277
6277
|
}, {
|
|
6278
6278
|
key: "recoverAutoHide",
|
|
6279
6279
|
value: function() {
|
|
6280
|
-
this.config.autoHide && h.addClass(this.root,
|
|
6280
|
+
this.config.autoHide && h.addClass(this.root, A.CONTROLS_AUTOHIDE);
|
|
6281
6281
|
}
|
|
6282
6282
|
}, {
|
|
6283
6283
|
key: "pauseAutoHide",
|
|
6284
6284
|
value: function() {
|
|
6285
|
-
h.removeClass(this.root,
|
|
6285
|
+
h.removeClass(this.root, A.CONTROLS_AUTOHIDE);
|
|
6286
6286
|
}
|
|
6287
6287
|
}, {
|
|
6288
6288
|
key: "show",
|
|
@@ -6330,7 +6330,7 @@ var Ed = function(s, n) {
|
|
|
6330
6330
|
}, {
|
|
6331
6331
|
key: "destroy",
|
|
6332
6332
|
value: function() {
|
|
6333
|
-
|
|
6333
|
+
$.device !== "mobile" && (this.unbind("mouseenter", this.onMouseEnter), this.unbind("mouseleave", this.onMouseLeave)), this.left = null, this.center = null, this.right = null, this.innerRoot = null;
|
|
6334
6334
|
}
|
|
6335
6335
|
}, {
|
|
6336
6336
|
key: "render",
|
|
@@ -6343,7 +6343,7 @@ var Ed = function(s, n) {
|
|
|
6343
6343
|
"flex-controls": i === "flex"
|
|
6344
6344
|
}, {
|
|
6345
6345
|
"bottom-controls": i === "bottom"
|
|
6346
|
-
}, _({},
|
|
6346
|
+
}, _({}, A.CONTROLS_AUTOHIDE, r), {
|
|
6347
6347
|
"xgplayer-controls-initshow": o || !r
|
|
6348
6348
|
});
|
|
6349
6349
|
return '<xg-controls class="'.concat(l, `" unselectable="on">
|
|
@@ -6453,13 +6453,13 @@ var Ed = function(s, n) {
|
|
|
6453
6453
|
langKeys: [],
|
|
6454
6454
|
textKeys: []
|
|
6455
6455
|
};
|
|
6456
|
-
function
|
|
6456
|
+
function Mt(a, s) {
|
|
6457
6457
|
return Object.keys(s).forEach(function(n) {
|
|
6458
6458
|
var t = h.typeOf(s[n]), e = h.typeOf(a[n]);
|
|
6459
6459
|
if (t === "Array") {
|
|
6460
6460
|
var i;
|
|
6461
6461
|
e !== "Array" && (a[n] = []), (i = a[n]).push.apply(i, Re(s[n]));
|
|
6462
|
-
} else t === "Object" ? (e !== "Object" && (a[n] = {}),
|
|
6462
|
+
} else t === "Object" ? (e !== "Object" && (a[n] = {}), Mt(a[n], s[n])) : a[n] = s[n];
|
|
6463
6463
|
}), a;
|
|
6464
6464
|
}
|
|
6465
6465
|
function gl() {
|
|
@@ -6479,7 +6479,7 @@ function Pd(a, s) {
|
|
|
6479
6479
|
}) : n = a;
|
|
6480
6480
|
var t = s, e = t.lang;
|
|
6481
6481
|
n.map(function(i) {
|
|
6482
|
-
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ?
|
|
6482
|
+
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? Mt(e[i.LANG] || {}, i.TEXT || {}) : va(i, s);
|
|
6483
6483
|
}), gl();
|
|
6484
6484
|
}
|
|
6485
6485
|
}
|
|
@@ -6487,7 +6487,7 @@ function va(a, s) {
|
|
|
6487
6487
|
var n = a.LANG;
|
|
6488
6488
|
if (s || (s = xe), !!s.lang) {
|
|
6489
6489
|
var t = a.TEXT || {};
|
|
6490
|
-
n === "zh" && (n = "zh-cn"), s.lang[n] ?
|
|
6490
|
+
n === "zh" && (n = "zh-cn"), s.lang[n] ? Mt(s.lang[n], t) : (s.langKeys.push(n), s.lang[n] = t), gl();
|
|
6491
6491
|
}
|
|
6492
6492
|
}
|
|
6493
6493
|
function Dd(a) {
|
|
@@ -6497,7 +6497,7 @@ function Dd(a) {
|
|
|
6497
6497
|
textKeys: {},
|
|
6498
6498
|
pId: a
|
|
6499
6499
|
};
|
|
6500
|
-
return
|
|
6500
|
+
return Mt(n.lang, xe.lang), (s = n.langKeys).push.apply(s, Re(xe.langKeys)), Mt(n.textKeys, xe.textKeys), n;
|
|
6501
6501
|
}
|
|
6502
6502
|
va(Id);
|
|
6503
6503
|
var Ct = {
|
|
@@ -6525,8 +6525,8 @@ var Ct = {
|
|
|
6525
6525
|
RUNNING: 6,
|
|
6526
6526
|
ENDED: 7
|
|
6527
6527
|
}, nu = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], ke = {}, Rr = null, vl = /* @__PURE__ */ (function(a) {
|
|
6528
|
-
|
|
6529
|
-
var s =
|
|
6528
|
+
N(n, a);
|
|
6529
|
+
var s = B(n);
|
|
6530
6530
|
function n() {
|
|
6531
6531
|
return R(this, n), s.apply(this, arguments);
|
|
6532
6532
|
}
|
|
@@ -6620,8 +6620,8 @@ function Ld(a) {
|
|
|
6620
6620
|
return null;
|
|
6621
6621
|
}
|
|
6622
6622
|
var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /* @__PURE__ */ (function(a) {
|
|
6623
|
-
|
|
6624
|
-
var s =
|
|
6623
|
+
N(n, a);
|
|
6624
|
+
var s = B(n);
|
|
6625
6625
|
function n(t) {
|
|
6626
6626
|
var e;
|
|
6627
6627
|
R(this, n);
|
|
@@ -6629,7 +6629,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
6629
6629
|
e = s.call(this, i), _(y(e), "canPlayFunc", function() {
|
|
6630
6630
|
if (e.config) {
|
|
6631
6631
|
var v = e.config, m = v.autoplay, p = v.defaultPlaybackRate;
|
|
6632
|
-
Y.logInfo("player", "canPlayFunc, startTime", e.__startTime), e._seekToStartTime(), e.playbackRate = p, (m || e._useAutoplay) && e.mediaPlay(), e.off(He, e.canPlayFunc), e.removeClass(
|
|
6632
|
+
Y.logInfo("player", "canPlayFunc, startTime", e.__startTime), e._seekToStartTime(), e.playbackRate = p, (m || e._useAutoplay) && e.mediaPlay(), e.off(He, e.canPlayFunc), e.removeClass(A.ENTER);
|
|
6633
6633
|
}
|
|
6634
6634
|
}), _(y(e), "onFullscreenChange", function(v, m) {
|
|
6635
6635
|
var p = function() {
|
|
@@ -6651,17 +6651,17 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
6651
6651
|
});
|
|
6652
6652
|
var b = ed(w, e.playerId, Xe);
|
|
6653
6653
|
if (m || w && (w === e._fullscreenEl || b))
|
|
6654
|
-
p(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, w,
|
|
6654
|
+
p(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, w, A.FULLSCREEN), e.emit(Be, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
6655
6655
|
else if (e.fullscreen) {
|
|
6656
6656
|
p();
|
|
6657
6657
|
var T = y(e), P = T._fullScreenOffset, L = T.config;
|
|
6658
6658
|
if (L.needFullscreenScroll ? (window.scrollTo(P.left, P.top), h.setTimeout(y(e), function() {
|
|
6659
6659
|
e.fullscreen = !1, e._fullScreenOffset = null;
|
|
6660
6660
|
}, 100)) : (!e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !1, e._fullScreenOffset = null), e.cssfullscreen)
|
|
6661
|
-
e.removeClass(
|
|
6661
|
+
e.removeClass(A.FULLSCREEN);
|
|
6662
6662
|
else {
|
|
6663
|
-
var
|
|
6664
|
-
!
|
|
6663
|
+
var H = e._fullscreenEl;
|
|
6664
|
+
!H && (e.root.contains(v.target) || v.target === e.root) && (H = v.target), e.recoverFullStyle(e.root, H, A.FULLSCREEN);
|
|
6665
6665
|
}
|
|
6666
6666
|
e._fullscreenEl = null, e.emit(Be, !1);
|
|
6667
6667
|
}
|
|
@@ -6697,7 +6697,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
6697
6697
|
}, e._offsetInfo = {
|
|
6698
6698
|
currentTime: -1,
|
|
6699
6699
|
duration: 0
|
|
6700
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ct.init(e._pluginInfoId),
|
|
6700
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ct.init(e._pluginInfoId), $.os.isAndroid && $.osVersion > 0 && $.osVersion < 6 && (e.config.autoplay = !1), e.database = new vd(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
6701
6701
|
isActiveLocked: !1
|
|
6702
6702
|
}, e.instManager = Ke;
|
|
6703
6703
|
var u = e._initDOM();
|
|
@@ -6723,7 +6723,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
6723
6723
|
if (r && r.nodeType === 1)
|
|
6724
6724
|
this.root = r;
|
|
6725
6725
|
else
|
|
6726
|
-
return this.emit(
|
|
6726
|
+
return this.emit(Bt, new ti("use", this.config.vid, {
|
|
6727
6727
|
line: 32,
|
|
6728
6728
|
handle: "Constructor",
|
|
6729
6729
|
msg: "container id can't be empty"
|
|
@@ -6736,8 +6736,8 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
6736
6736
|
});
|
|
6737
6737
|
this.controls = l;
|
|
6738
6738
|
}
|
|
6739
|
-
var c = this.config.isMobileSimulateMode === "mobile" ? "mobile" :
|
|
6740
|
-
if (this.addClass("".concat(
|
|
6739
|
+
var c = this.config.isMobileSimulateMode === "mobile" ? "mobile" : $.device;
|
|
6740
|
+
if (this.addClass("".concat(A.DEFAULT, " ").concat(A.INACTIVE, " xgplayer-").concat(c, " ").concat(this.config.controls ? "" : A.NO_CONTROLS)), this.config.autoplay ? this.addClass(A.ENTER) : this.addClass(A.NO_START), this.config.fluid) {
|
|
6741
6741
|
var f = this.config, d = f.width, g = f.height;
|
|
6742
6742
|
(typeof d != "number" || typeof g != "number") && (d = 600, g = 337.5);
|
|
6743
6743
|
var v = {
|
|
@@ -6771,7 +6771,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
6771
6771
|
e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
|
|
6772
6772
|
}), Wo.forEach(function(i) {
|
|
6773
6773
|
document && document.addEventListener(i, e.onFullscreenChange);
|
|
6774
|
-
}),
|
|
6774
|
+
}), $.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(je, this.resize), this.playFunc = function() {
|
|
6775
6775
|
e.config.closeFocusVideoFocus || e.media.focus();
|
|
6776
6776
|
}, this.once(Pe, this.playFunc);
|
|
6777
6777
|
}
|
|
@@ -6797,7 +6797,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
6797
6797
|
var o = this.innerContainer ? this.innerContainer : this.root;
|
|
6798
6798
|
this.media instanceof window.Element && !o.contains(this.media) && o.insertBefore(this.media, o.firstChild);
|
|
6799
6799
|
var u = this.media.readyState;
|
|
6800
|
-
Y.logInfo("_startInit readyState", u), this.config.autoplay && (!h.isMSE(this.media) && this.load(), (
|
|
6800
|
+
Y.logInfo("_startInit readyState", u), this.config.autoplay && (!h.isMSE(this.media) && this.load(), ($.os.isIpad || $.os.isPhone) && this.mediaPlay());
|
|
6801
6801
|
var l = this.config.startTime;
|
|
6802
6802
|
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, u >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(He, this.canPlayFunc), (!this.hasStart || this.state < Z.ATTACHED) && ve.afterInit(this), this.hasStart = !0, this.setState(Z.ATTACHED), h.setTimeout(this, function() {
|
|
6803
6803
|
i.emit(bi);
|
|
@@ -6854,7 +6854,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
6854
6854
|
this.leftBar || (this.leftBar = h.createPositionBar("xg-left-bar", this.root)), i = this.leftBar;
|
|
6855
6855
|
break;
|
|
6856
6856
|
case ae.ROOT_TOP:
|
|
6857
|
-
this.topBar || (this.topBar = h.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && h.addClass(this.topBar,
|
|
6857
|
+
this.topBar || (this.topBar = h.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && h.addClass(this.topBar, A.TOP_BAR_AUTOHIDE)), i = this.topBar;
|
|
6858
6858
|
break;
|
|
6859
6859
|
default:
|
|
6860
6860
|
i = this.innerContainer || this.root;
|
|
@@ -6977,7 +6977,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
6977
6977
|
});
|
|
6978
6978
|
return;
|
|
6979
6979
|
}
|
|
6980
|
-
|
|
6980
|
+
$.os.isAndroid ? r.once("timeupdate", g) : r.once("canplay", g), r.play();
|
|
6981
6981
|
});
|
|
6982
6982
|
}
|
|
6983
6983
|
}, {
|
|
@@ -6990,22 +6990,22 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
6990
6990
|
value: function() {
|
|
6991
6991
|
var e = this;
|
|
6992
6992
|
if (!this.hasStart && this.state < Z.ATTACHED) {
|
|
6993
|
-
this.removeClass(
|
|
6993
|
+
this.removeClass(A.NO_START), this.addClass(A.ENTER), this.start(), this._useAutoplay = !0;
|
|
6994
6994
|
return;
|
|
6995
6995
|
}
|
|
6996
|
-
this.state < Z.RUNNING && (this.removeClass(
|
|
6996
|
+
this.state < Z.RUNNING && (this.removeClass(A.NO_START), !this.isCanplay && this.addClass(A.ENTER));
|
|
6997
6997
|
var i = V(z(n.prototype), "play", this).call(this);
|
|
6998
6998
|
return i !== void 0 && i && i.then ? i.then(function() {
|
|
6999
|
-
e.removeClass(
|
|
6999
|
+
e.removeClass(A.NOT_ALLOW_AUTOPLAY), e.addClass(A.PLAYING), e.state < Z.RUNNING && (Y.logInfo(">>>>playPromise.then"), e.setState(Z.RUNNING), e.emit(rt));
|
|
7000
7000
|
}).catch(function(r) {
|
|
7001
7001
|
if (Y.logWarn(">>>>playPromise.catch", r.name), e.media && e.media.error) {
|
|
7002
|
-
e.onError(), e.removeClass(
|
|
7002
|
+
e.onError(), e.removeClass(A.ENTER);
|
|
7003
7003
|
return;
|
|
7004
7004
|
}
|
|
7005
7005
|
r.name === "NotAllowedError" && (e._errorTimer = h.setTimeout(e, function() {
|
|
7006
|
-
e._errorTimer = null, e.emit(ha), e.addClass(
|
|
7006
|
+
e._errorTimer = null, e.emit(ha), e.addClass(A.NOT_ALLOW_AUTOPLAY), e.removeClass(A.ENTER), e.pause(), e.setState(Z.NOTALLOW);
|
|
7007
7007
|
}, 0));
|
|
7008
|
-
}) : (Y.logWarn("video.play not return promise"), this.state < Z.RUNNING && (this.setState(Z.RUNNING), this.removeClass(
|
|
7008
|
+
}) : (Y.logWarn("video.play not return promise"), this.state < Z.RUNNING && (this.setState(Z.RUNNING), this.removeClass(A.NOT_ALLOW_AUTOPLAY), this.removeClass(A.NO_START), this.removeClass(A.ENTER), this.addClass(A.PLAYING), this.emit(rt))), i;
|
|
7009
7009
|
}
|
|
7010
7010
|
}, {
|
|
7011
7011
|
key: "mediaPause",
|
|
@@ -7021,7 +7021,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7021
7021
|
key: "play",
|
|
7022
7022
|
value: function() {
|
|
7023
7023
|
var e = this;
|
|
7024
|
-
return this.removeClass(
|
|
7024
|
+
return this.removeClass(A.PAUSED), Fe(this, "play", function() {
|
|
7025
7025
|
return e.mediaPlay();
|
|
7026
7026
|
});
|
|
7027
7027
|
}
|
|
@@ -7040,7 +7040,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7040
7040
|
if (!(!this.media || Number.isNaN(Number(e)) || !this.hasStart)) {
|
|
7041
7041
|
var o = this.config, u = o.isSeekedPlay, l = o.seekedStatus, c = i || (u ? "play" : l);
|
|
7042
7042
|
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(Ue, this._onceSeekCanplay), this._onceSeekCanplay = function() {
|
|
7043
|
-
switch (r.removeClass(
|
|
7043
|
+
switch (r.removeClass(A.ENTER), r.isSeeking = !1, c) {
|
|
7044
7044
|
case "play":
|
|
7045
7045
|
r.play();
|
|
7046
7046
|
break;
|
|
@@ -7051,7 +7051,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7051
7051
|
r._isPauseBeforeSeek > 1 || r.paused ? r.pause() : r.play();
|
|
7052
7052
|
}
|
|
7053
7053
|
r._isPauseBeforeSeek = 0, r._onceSeekCanplay = null;
|
|
7054
|
-
}, this.once(Ue, this._onceSeekCanplay), this.state < Z.RUNNING ? (this.removeClass(
|
|
7054
|
+
}, this.once(Ue, this._onceSeekCanplay), this.state < Z.RUNNING ? (this.removeClass(A.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
|
|
7055
7055
|
}
|
|
7056
7056
|
}
|
|
7057
7057
|
}, {
|
|
@@ -7098,10 +7098,10 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7098
7098
|
}, {
|
|
7099
7099
|
key: "resetState",
|
|
7100
7100
|
value: function() {
|
|
7101
|
-
var e = this, i =
|
|
7101
|
+
var e = this, i = A.NOT_ALLOW_AUTOPLAY, r = A.PLAYING, o = A.NO_START, u = A.PAUSED, l = A.REPLAY, c = A.ENTER, f = A.ENDED, d = A.ERROR, g = A.LOADING, v = [i, r, o, u, l, c, f, d, g];
|
|
7102
7102
|
this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, v.forEach(function(m) {
|
|
7103
7103
|
e.removeClass(m);
|
|
7104
|
-
}), this.addClass(
|
|
7104
|
+
}), this.addClass(A.NO_START), this.emit(ki);
|
|
7105
7105
|
}
|
|
7106
7106
|
}, {
|
|
7107
7107
|
key: "reset",
|
|
@@ -7141,7 +7141,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7141
7141
|
key: "replay",
|
|
7142
7142
|
value: function() {
|
|
7143
7143
|
var e = this;
|
|
7144
|
-
this.removeClass(
|
|
7144
|
+
this.removeClass(A.ENDED), this.currentTime = 0, this.isSeeking = !1, Fe(this, "replay", function() {
|
|
7145
7145
|
e.once(Ue, function() {
|
|
7146
7146
|
var i = e.mediaPlay();
|
|
7147
7147
|
i && i.catch && i.catch(function(r) {
|
|
@@ -7154,7 +7154,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7154
7154
|
key: "retry",
|
|
7155
7155
|
value: function() {
|
|
7156
7156
|
var e = this;
|
|
7157
|
-
this.removeClass(
|
|
7157
|
+
this.removeClass(A.ERROR), this.addClass(A.LOADING), Fe(this, "retry", function() {
|
|
7158
7158
|
var i = e.currentTime, r = e.config.url, o = h.isMSE(e.media) ? {
|
|
7159
7159
|
url: r
|
|
7160
7160
|
} : e.preProcessUrl(r);
|
|
@@ -7166,12 +7166,12 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7166
7166
|
}, {
|
|
7167
7167
|
key: "changeFullStyle",
|
|
7168
7168
|
value: function(e, i, r, o) {
|
|
7169
|
-
e && (o || (o =
|
|
7169
|
+
e && (o || (o = A.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = h.filterStyleFromText(e)), h.addClass(e, r), i && i !== e && !this._orgPCss && (this._orgPCss = h.filterStyleFromText(i), h.addClass(i, o), i.setAttribute(Xe, this.playerId)));
|
|
7170
7170
|
}
|
|
7171
7171
|
}, {
|
|
7172
7172
|
key: "recoverFullStyle",
|
|
7173
7173
|
value: function(e, i, r, o) {
|
|
7174
|
-
o || (o =
|
|
7174
|
+
o || (o = A.PARENT_FULLSCREEN), this._orgCss && (h.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), h.removeClass(e, r), i && i !== e && this._orgPCss && (h.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", h.removeClass(i, o), i.removeAttribute(Xe));
|
|
7175
7175
|
}
|
|
7176
7176
|
}, {
|
|
7177
7177
|
key: "getFullscreen",
|
|
@@ -7223,7 +7223,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7223
7223
|
value: function() {
|
|
7224
7224
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
|
|
7225
7225
|
this.isRotateFullscreen ? this.exitRotateFullscreen() : this.fullscreen && this.exitFullscreen();
|
|
7226
|
-
var i = e ? "".concat(
|
|
7226
|
+
var i = e ? "".concat(A.INNER_FULLSCREEN, " ").concat(A.CSS_FULLSCREEN) : A.CSS_FULLSCREEN;
|
|
7227
7227
|
this.changeFullStyle(this.root, e, i);
|
|
7228
7228
|
var r = this.config.fullscreen, o = r === void 0 ? {} : r, u = o.useCssFullscreen === !0 || typeof o.useCssFullscreen == "function" && o.useCssFullscreen();
|
|
7229
7229
|
u && (this.fullscreen = !0, this.emit(Be, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(ni, !0);
|
|
@@ -7231,7 +7231,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7231
7231
|
}, {
|
|
7232
7232
|
key: "exitCssFullscreen",
|
|
7233
7233
|
value: function() {
|
|
7234
|
-
var e = this._cssfullscreenEl ? "".concat(
|
|
7234
|
+
var e = this._cssfullscreenEl ? "".concat(A.INNER_FULLSCREEN, " ").concat(A.CSS_FULLSCREEN) : A.CSS_FULLSCREEN;
|
|
7235
7235
|
if (!this.fullscreen)
|
|
7236
7236
|
this.recoverFullStyle(this.root, this._cssfullscreenEl, e);
|
|
7237
7237
|
else {
|
|
@@ -7245,16 +7245,16 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7245
7245
|
value: function() {
|
|
7246
7246
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
|
|
7247
7247
|
this.cssfullscreen && this.exitCssFullscreen(e);
|
|
7248
|
-
var i = e ? "".concat(
|
|
7249
|
-
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i,
|
|
7248
|
+
var i = e ? "".concat(A.INNER_FULLSCREEN, " ").concat(A.ROTATE_FULLSCREEN) : A.ROTATE_FULLSCREEN;
|
|
7249
|
+
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, A.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style");
|
|
7250
7250
|
var r = Math.abs(window.orientation) === 90 || Math.abs(screen.orientation.angle) === 90;
|
|
7251
7251
|
this.root.style.width = r ? "".concat(window.innerWidth, "px") : "".concat(window.innerHeight, "px"), this.emit(Be, !0);
|
|
7252
7252
|
}
|
|
7253
7253
|
}, {
|
|
7254
7254
|
key: "exitRotateFullscreen",
|
|
7255
7255
|
value: function(e) {
|
|
7256
|
-
var i = this._fullscreenEl !== this.root ? "".concat(
|
|
7257
|
-
this.recoverFullStyle(this.root, this._fullscreenEl, i,
|
|
7256
|
+
var i = this._fullscreenEl !== this.root ? "".concat(A.INNER_FULLSCREEN, " ").concat(A.ROTATE_FULLSCREEN) : A.ROTATE_FULLSCREEN;
|
|
7257
|
+
this.recoverFullStyle(this.root, this._fullscreenEl, i, A.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(Be, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
|
|
7258
7258
|
}
|
|
7259
7259
|
}, {
|
|
7260
7260
|
key: "setRotateDeg",
|
|
@@ -7299,7 +7299,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7299
7299
|
autoHide: !0,
|
|
7300
7300
|
delay: 3e3
|
|
7301
7301
|
}, r = this.innerStates;
|
|
7302
|
-
if (this.isActive = !0, this.removeClass(
|
|
7302
|
+
if (this.isActive = !0, this.removeClass(A.INACTIVE), this._clearUserTimer(), i.isLock !== void 0 && (r.isActiveLocked = i.isLock), i.autoHide === !1 || i.isLock === !0 || r.isActiveLocked) {
|
|
7303
7303
|
this._clearUserTimer();
|
|
7304
7304
|
return;
|
|
7305
7305
|
}
|
|
@@ -7314,7 +7314,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7314
7314
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = e.ignorePaused, r = i === void 0 ? !1 : i;
|
|
7315
7315
|
if (!this.innerStates.isActiveLocked) {
|
|
7316
7316
|
var o = this.config.closePauseVideoFocus;
|
|
7317
|
-
this.isActive = !1, (r || o || !this.paused && !this.ended) && this.addClass(
|
|
7317
|
+
this.isActive = !1, (r || o || !this.paused && !this.ended) && this.addClass(A.INACTIVE);
|
|
7318
7318
|
}
|
|
7319
7319
|
}
|
|
7320
7320
|
}, {
|
|
@@ -7325,7 +7325,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7325
7325
|
}, {
|
|
7326
7326
|
key: "onCanplay",
|
|
7327
7327
|
value: function() {
|
|
7328
|
-
this.removeClass(
|
|
7328
|
+
this.removeClass(A.ENTER), this.removeClass(A.ERROR), this.removeClass(A.LOADING), this.isCanplay = !0, this.waitTimer && h.clearTimeout(this, this.waitTimer);
|
|
7329
7329
|
}
|
|
7330
7330
|
}, {
|
|
7331
7331
|
key: "onLoadeddata",
|
|
@@ -7338,44 +7338,44 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7338
7338
|
}, {
|
|
7339
7339
|
key: "onLoadstart",
|
|
7340
7340
|
value: function() {
|
|
7341
|
-
this.removeClass(
|
|
7341
|
+
this.removeClass(A.ERROR), this.isCanplay = !1;
|
|
7342
7342
|
}
|
|
7343
7343
|
}, {
|
|
7344
7344
|
key: "onPlay",
|
|
7345
7345
|
value: function() {
|
|
7346
|
-
this.state === Z.ENDED && this.setState(Z.RUNNING), this.removeClass(
|
|
7346
|
+
this.state === Z.ENDED && this.setState(Z.RUNNING), this.removeClass(A.PAUSED), this.ended && this.removeClass(A.ENDED), !this.config.closePlayVideoFocus && this.focus();
|
|
7347
7347
|
}
|
|
7348
7348
|
}, {
|
|
7349
7349
|
key: "onPause",
|
|
7350
7350
|
value: function() {
|
|
7351
|
-
this.addClass(
|
|
7351
|
+
this.addClass(A.PAUSED), this.updateAcc("pause"), this.config.closePauseVideoFocus || (this._clearUserTimer(), this.focus());
|
|
7352
7352
|
}
|
|
7353
7353
|
}, {
|
|
7354
7354
|
key: "onEnded",
|
|
7355
7355
|
value: function() {
|
|
7356
|
-
this.updateAcc("ended"), this.addClass(
|
|
7356
|
+
this.updateAcc("ended"), this.addClass(A.ENDED), this.setState(Z.ENDED);
|
|
7357
7357
|
}
|
|
7358
7358
|
}, {
|
|
7359
7359
|
key: "onError",
|
|
7360
7360
|
value: function() {
|
|
7361
|
-
this.isError = !0, this.updateAcc("error"), this.removeClass(
|
|
7361
|
+
this.isError = !0, this.updateAcc("error"), this.removeClass(A.NOT_ALLOW_AUTOPLAY), this.removeClass(A.NO_START), this.removeClass(A.ENTER), this.removeClass(A.LOADING), this.addClass(A.ERROR);
|
|
7362
7362
|
}
|
|
7363
7363
|
}, {
|
|
7364
7364
|
key: "onSeeking",
|
|
7365
7365
|
value: function() {
|
|
7366
|
-
this.isSeeking || this.updateAcc("seeking"), this.isSeeking = !0, this.addClass(
|
|
7366
|
+
this.isSeeking || this.updateAcc("seeking"), this.isSeeking = !0, this.addClass(A.SEEKING);
|
|
7367
7367
|
}
|
|
7368
7368
|
}, {
|
|
7369
7369
|
key: "onSeeked",
|
|
7370
7370
|
value: function() {
|
|
7371
|
-
this.isSeeking = !1, this.waitTimer && h.clearTimeout(this, this.waitTimer), this.removeClass(
|
|
7371
|
+
this.isSeeking = !1, this.waitTimer && h.clearTimeout(this, this.waitTimer), this.removeClass(A.LOADING), this.removeClass(A.SEEKING);
|
|
7372
7372
|
}
|
|
7373
7373
|
}, {
|
|
7374
7374
|
key: "onWaiting",
|
|
7375
7375
|
value: function() {
|
|
7376
7376
|
var e = this;
|
|
7377
7377
|
this.waitTimer && h.clearTimeout(this, this.waitTimer), this.updateAcc("waiting"), this.waitTimer = h.setTimeout(this, function() {
|
|
7378
|
-
e.addClass(
|
|
7378
|
+
e.addClass(A.LOADING), e.emit(tl), h.clearTimeout(e, e.waitTimer), e.waitTimer = null;
|
|
7379
7379
|
}, this.config.minWaitDelay);
|
|
7380
7380
|
}
|
|
7381
7381
|
}, {
|
|
@@ -7383,7 +7383,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7383
7383
|
value: function() {
|
|
7384
7384
|
var e = this;
|
|
7385
7385
|
this.isError = !1;
|
|
7386
|
-
var i =
|
|
7386
|
+
var i = A.NO_START, r = A.PAUSED, o = A.ENDED, u = A.ERROR, l = A.REPLAY, c = A.LOADING, f = [i, r, o, u, l, c];
|
|
7387
7387
|
f.forEach(function(d) {
|
|
7388
7388
|
e.removeClass(d);
|
|
7389
7389
|
}), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
@@ -7391,7 +7391,7 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7391
7391
|
}, {
|
|
7392
7392
|
key: "onTimeupdate",
|
|
7393
7393
|
value: function() {
|
|
7394
|
-
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(
|
|
7394
|
+
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(A.LOADING)) && this.media.readyState > 2 && (this.removeClass(A.LOADING), h.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === Z.NOTALLOW && this.duration && (this.setState(Z.RUNNING), this.emit(rt)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
7395
7395
|
}
|
|
7396
7396
|
}, {
|
|
7397
7397
|
key: "onVolumechange",
|
|
@@ -7450,17 +7450,17 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7450
7450
|
this.videoPos.pi = f, c = c < 0 ? 0 : c;
|
|
7451
7451
|
var d = {
|
|
7452
7452
|
rotate: c
|
|
7453
|
-
}, g = 0, v = 0, m = 1, p = Math.abs(c / 90), w = this.root, b = this.innerContainer, T = w.offsetWidth, P = b ? b.offsetHeight : w.offsetHeight, L = {},
|
|
7453
|
+
}, g = 0, v = 0, m = 1, p = Math.abs(c / 90), w = this.root, b = this.innerContainer, T = w.offsetWidth, P = b ? b.offsetHeight : w.offsetHeight, L = {}, H = P, U = T;
|
|
7454
7454
|
if (p % 2 === 0)
|
|
7455
|
-
m = u > 0 ? 100 / u : l > 0 ? 100 / l : 1, d.scale = m, g = r > 0 ? (100 - u) / 2 - r : 0, d.y = p === 2 ? 0 - g : g, v = o > 0 ? (100 - l) / 2 - o : 0, d.x = p === 2 ? 0 - v : v, L.width = "".concat(
|
|
7455
|
+
m = u > 0 ? 100 / u : l > 0 ? 100 / l : 1, d.scale = m, g = r > 0 ? (100 - u) / 2 - r : 0, d.y = p === 2 ? 0 - g : g, v = o > 0 ? (100 - l) / 2 - o : 0, d.x = p === 2 ? 0 - v : v, L.width = "".concat(U, "px"), L.height = "".concat(H, "px"), L.maxWidth = "", L.maxHeight = "";
|
|
7456
7456
|
else if (p % 2 === 1) {
|
|
7457
|
-
|
|
7457
|
+
U = P, H = T;
|
|
7458
7458
|
var ee = P - T;
|
|
7459
|
-
v = -ee / 2 /
|
|
7459
|
+
v = -ee / 2 / U * 100, d.x = p === 3 ? v + r / 2 : v - r / 2, g = ee / 2 / H * 100, d.y = p === 3 ? g + o / 2 : g - o / 2, d.scale = m, L.width = "".concat(U, "px"), L.maxWidth = "".concat(U, "px"), L.height = "".concat(H, "px"), L.maxHeight = "".concat(H, "px");
|
|
7460
7460
|
}
|
|
7461
7461
|
var q = h.getTransformStyle(d, this.media.style.transform || this.media.style.webkitTransform);
|
|
7462
|
-
L.transform = q, L.webkitTransform = q, Object.keys(L).map(function(
|
|
7463
|
-
e.media.style[
|
|
7462
|
+
L.transform = q, L.webkitTransform = q, Object.keys(L).map(function(j) {
|
|
7463
|
+
e.media.style[j] = L[j];
|
|
7464
7464
|
});
|
|
7465
7465
|
}
|
|
7466
7466
|
}
|
|
@@ -7803,12 +7803,12 @@ var Rd = ["play", "pause", "replay", "retry"], ru = 0, au = 0, Ke = null, wi = /
|
|
|
7803
7803
|
}, {
|
|
7804
7804
|
key: "isHevcSupported",
|
|
7805
7805
|
value: function() {
|
|
7806
|
-
return
|
|
7806
|
+
return $.isHevcSupported();
|
|
7807
7807
|
}
|
|
7808
7808
|
}, {
|
|
7809
7809
|
key: "probeConfigSupported",
|
|
7810
7810
|
value: function(e) {
|
|
7811
|
-
return
|
|
7811
|
+
return $.probeConfigSupported(e);
|
|
7812
7812
|
}
|
|
7813
7813
|
}, {
|
|
7814
7814
|
key: "install",
|
|
@@ -7835,8 +7835,8 @@ function et(a, s, n) {
|
|
|
7835
7835
|
}
|
|
7836
7836
|
}
|
|
7837
7837
|
var lt = /* @__PURE__ */ (function(a) {
|
|
7838
|
-
|
|
7839
|
-
var s =
|
|
7838
|
+
N(n, a);
|
|
7839
|
+
var s = B(n);
|
|
7840
7840
|
function n() {
|
|
7841
7841
|
var t;
|
|
7842
7842
|
R(this, n);
|
|
@@ -7877,8 +7877,8 @@ function Md() {
|
|
|
7877
7877
|
`, "image/svg+xml").firstChild;
|
|
7878
7878
|
}
|
|
7879
7879
|
var Kr = /* @__PURE__ */ (function(a) {
|
|
7880
|
-
|
|
7881
|
-
var s =
|
|
7880
|
+
N(n, a);
|
|
7881
|
+
var s = B(n);
|
|
7882
7882
|
function n() {
|
|
7883
7883
|
return R(this, n), s.apply(this, arguments);
|
|
7884
7884
|
}
|
|
@@ -7979,8 +7979,8 @@ function Fd() {
|
|
|
7979
7979
|
</svg>`, "image/svg+xml").firstChild;
|
|
7980
7980
|
}
|
|
7981
7981
|
var Nd = /* @__PURE__ */ (function(a) {
|
|
7982
|
-
|
|
7983
|
-
var s =
|
|
7982
|
+
N(n, a);
|
|
7983
|
+
var s = B(n);
|
|
7984
7984
|
function n() {
|
|
7985
7985
|
return R(this, n), s.apply(this, arguments);
|
|
7986
7986
|
}
|
|
@@ -8052,8 +8052,8 @@ function Hd() {
|
|
|
8052
8052
|
`, "image/svg+xml").firstChild;
|
|
8053
8053
|
}
|
|
8054
8054
|
var pl = /* @__PURE__ */ (function(a) {
|
|
8055
|
-
|
|
8056
|
-
var s =
|
|
8055
|
+
N(n, a);
|
|
8056
|
+
var s = B(n);
|
|
8057
8057
|
function n() {
|
|
8058
8058
|
var t;
|
|
8059
8059
|
R(this, n);
|
|
@@ -8094,7 +8094,7 @@ var pl = /* @__PURE__ */ (function(a) {
|
|
|
8094
8094
|
}
|
|
8095
8095
|
}
|
|
8096
8096
|
}
|
|
8097
|
-
})),
|
|
8097
|
+
})), $.device === "mobile" && window.addEventListener("orientationchange", this._onOrientationChange);
|
|
8098
8098
|
}
|
|
8099
8099
|
}
|
|
8100
8100
|
}, {
|
|
@@ -8114,7 +8114,7 @@ var pl = /* @__PURE__ */ (function(a) {
|
|
|
8114
8114
|
}, {
|
|
8115
8115
|
key: "destroy",
|
|
8116
8116
|
value: function() {
|
|
8117
|
-
V(z(n.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon",
|
|
8117
|
+
V(z(n.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", $.device === "mobile" ? "touchend" : "click", this.handleFullscreen), $.device === "mobile" && window.removeEventListener("orientationchange", this._onOrientationChange);
|
|
8118
8118
|
}
|
|
8119
8119
|
}, {
|
|
8120
8120
|
key: "initIcons",
|
|
@@ -8201,8 +8201,8 @@ function ma() {
|
|
|
8201
8201
|
`, "image/svg+xml").firstChild;
|
|
8202
8202
|
}
|
|
8203
8203
|
var ml = /* @__PURE__ */ (function(a) {
|
|
8204
|
-
|
|
8205
|
-
var s =
|
|
8204
|
+
N(n, a);
|
|
8205
|
+
var s = B(n);
|
|
8206
8206
|
function n() {
|
|
8207
8207
|
var t;
|
|
8208
8208
|
R(this, n);
|
|
@@ -8229,7 +8229,7 @@ var ml = /* @__PURE__ */ (function(a) {
|
|
|
8229
8229
|
key: "listenEvents",
|
|
8230
8230
|
value: function() {
|
|
8231
8231
|
var e = this, i = this.player;
|
|
8232
|
-
this.on([Pe, wt,
|
|
8232
|
+
this.on([Pe, wt, Bt, ut], function() {
|
|
8233
8233
|
e.animate(i.paused);
|
|
8234
8234
|
});
|
|
8235
8235
|
}
|
|
@@ -8503,8 +8503,8 @@ var ml = /* @__PURE__ */ (function(a) {
|
|
|
8503
8503
|
POINT: "inner-focus-point",
|
|
8504
8504
|
HIGHLIGHT: "inner-focus-highlight"
|
|
8505
8505
|
}, yl = /* @__PURE__ */ (function(a) {
|
|
8506
|
-
|
|
8507
|
-
var s =
|
|
8506
|
+
N(n, a);
|
|
8507
|
+
var s = B(n);
|
|
8508
8508
|
function n(t) {
|
|
8509
8509
|
var e;
|
|
8510
8510
|
return R(this, n), e = s.call(this, t), _(y(e), "onMoveOnly", function(i, r) {
|
|
@@ -8661,7 +8661,7 @@ var ml = /* @__PURE__ */ (function(a) {
|
|
|
8661
8661
|
fragAutoFocus: r,
|
|
8662
8662
|
fragClass: o,
|
|
8663
8663
|
style: this.playerConfig.commonStyle || {}
|
|
8664
|
-
}),
|
|
8664
|
+
}), $.device === "mobile" && (this.config.isDraggingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.listenEvents(), this.bindDomEvents(), this.initCustomStyle();
|
|
8665
8665
|
}
|
|
8666
8666
|
}
|
|
8667
8667
|
}, {
|
|
@@ -8921,8 +8921,8 @@ var ml = /* @__PURE__ */ (function(a) {
|
|
|
8921
8921
|
}
|
|
8922
8922
|
}]), n;
|
|
8923
8923
|
})(te), _l = /* @__PURE__ */ (function(a) {
|
|
8924
|
-
|
|
8925
|
-
var s =
|
|
8924
|
+
N(n, a);
|
|
8925
|
+
var s = B(n);
|
|
8926
8926
|
function n(t) {
|
|
8927
8927
|
var e;
|
|
8928
8928
|
return R(this, n), e = s.call(this, t), e.isActiving = !1, e;
|
|
@@ -9099,8 +9099,8 @@ function qd() {
|
|
|
9099
9099
|
`, "image/svg+xml").firstChild;
|
|
9100
9100
|
}
|
|
9101
9101
|
var bl = /* @__PURE__ */ (function(a) {
|
|
9102
|
-
|
|
9103
|
-
var s =
|
|
9102
|
+
N(n, a);
|
|
9103
|
+
var s = B(n);
|
|
9104
9104
|
function n() {
|
|
9105
9105
|
var t;
|
|
9106
9106
|
R(this, n);
|
|
@@ -9176,7 +9176,7 @@ var bl = /* @__PURE__ */ (function(a) {
|
|
|
9176
9176
|
pre: function(l) {
|
|
9177
9177
|
l.preventDefault(), l.stopPropagation();
|
|
9178
9178
|
}
|
|
9179
|
-
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave),
|
|
9179
|
+
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), $.device !== "mobile" && this.playerConfig.isMobileSimulateMode !== "mobile" && (this.bind("mouseenter", this._onMouseenterHandler), this.bind(["blur", "mouseleave"], this._onMouseleaveHandler), this.bind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.bind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.bind(".xgplayer-slider", "mouseup", this.onBarMouseUp)), this.bind(".xgplayer-icon", ["touchend", "click"], this.changeMutedHandler), this.on($u, this.onVolumeChange), this.once(je, this.onVolumeChange), h.typeOf(o) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
|
|
9180
9180
|
}
|
|
9181
9181
|
}
|
|
9182
9182
|
}, {
|
|
@@ -9254,7 +9254,7 @@ var bl = /* @__PURE__ */ (function(a) {
|
|
|
9254
9254
|
}, {
|
|
9255
9255
|
key: "destroy",
|
|
9256
9256
|
value: function() {
|
|
9257
|
-
this._timerId && (h.clearTimeout(this, this._timerId), this._timerId = null), this.unbind("mouseenter", this.onMouseenter), this.unbind(["blur", "mouseleave"], this.onMouseleave), this.unbind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.unbind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.unbind(".xgplayer-slider", "mouseup", this.onBarMouseUp), document.removeEventListener("mouseup", this.onBarMouseUp), this.unbind(".xgplayer-icon",
|
|
9257
|
+
this._timerId && (h.clearTimeout(this, this._timerId), this._timerId = null), this.unbind("mouseenter", this.onMouseenter), this.unbind(["blur", "mouseleave"], this.onMouseleave), this.unbind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.unbind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.unbind(".xgplayer-slider", "mouseup", this.onBarMouseUp), document.removeEventListener("mouseup", this.onBarMouseUp), this.unbind(".xgplayer-icon", $.device === "mobile" ? "touchend" : "click", this.changeMutedHandler);
|
|
9258
9258
|
}
|
|
9259
9259
|
}, {
|
|
9260
9260
|
key: "render",
|
|
@@ -9305,8 +9305,8 @@ var $e = {
|
|
|
9305
9305
|
SEEK_START: "seekStart",
|
|
9306
9306
|
SEEK_END: "seekEnd"
|
|
9307
9307
|
}, Gd = /* @__PURE__ */ (function(a) {
|
|
9308
|
-
|
|
9309
|
-
var s =
|
|
9308
|
+
N(n, a);
|
|
9309
|
+
var s = B(n);
|
|
9310
9310
|
function n() {
|
|
9311
9311
|
var t;
|
|
9312
9312
|
R(this, n);
|
|
@@ -9367,7 +9367,7 @@ var $e = {
|
|
|
9367
9367
|
e.endState("destroy");
|
|
9368
9368
|
}), this.on(Ci, function() {
|
|
9369
9369
|
e.endState("urlChange"), Y.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
9370
|
-
}), this.on([ua, He], this._onPlaying), this.on(
|
|
9370
|
+
}), this.on([ua, He], this._onPlaying), this.on(Ht, this._onWaiting), this.on(Bt, this._onError), this.on(ki, function() {
|
|
9371
9371
|
Y.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
9372
9372
|
});
|
|
9373
9373
|
}
|
|
@@ -9462,8 +9462,8 @@ function Wd() {
|
|
|
9462
9462
|
`, "image/svg+xml").firstChild;
|
|
9463
9463
|
}
|
|
9464
9464
|
var Kd = /* @__PURE__ */ (function(a) {
|
|
9465
|
-
|
|
9466
|
-
var s =
|
|
9465
|
+
N(n, a);
|
|
9466
|
+
var s = B(n);
|
|
9467
9467
|
function n() {
|
|
9468
9468
|
return R(this, n), s.apply(this, arguments);
|
|
9469
9469
|
}
|
|
@@ -9545,8 +9545,8 @@ var Kd = /* @__PURE__ */ (function(a) {
|
|
|
9545
9545
|
}
|
|
9546
9546
|
}]), n;
|
|
9547
9547
|
})(te), $d = /* @__PURE__ */ (function(a) {
|
|
9548
|
-
|
|
9549
|
-
var s =
|
|
9548
|
+
N(n, a);
|
|
9549
|
+
var s = B(n);
|
|
9550
9550
|
function n() {
|
|
9551
9551
|
return R(this, n), s.apply(this, arguments);
|
|
9552
9552
|
}
|
|
@@ -9675,8 +9675,8 @@ function ou(a) {
|
|
|
9675
9675
|
});
|
|
9676
9676
|
}
|
|
9677
9677
|
var Xd = /* @__PURE__ */ (function(a) {
|
|
9678
|
-
|
|
9679
|
-
var s =
|
|
9678
|
+
N(n, a);
|
|
9679
|
+
var s = B(n);
|
|
9680
9680
|
function n(t) {
|
|
9681
9681
|
var e;
|
|
9682
9682
|
return R(this, n), e = s.call(this, t), _(y(e), "onPlayerReset", function() {
|
|
@@ -9867,8 +9867,8 @@ var Xd = /* @__PURE__ */ (function(a) {
|
|
|
9867
9867
|
}
|
|
9868
9868
|
}]), n;
|
|
9869
9869
|
})(te), Zd = /* @__PURE__ */ (function(a) {
|
|
9870
|
-
|
|
9871
|
-
var s =
|
|
9870
|
+
N(n, a);
|
|
9871
|
+
var s = B(n);
|
|
9872
9872
|
function n() {
|
|
9873
9873
|
return R(this, n), s.apply(this, arguments);
|
|
9874
9874
|
}
|
|
@@ -9902,8 +9902,8 @@ var Xd = /* @__PURE__ */ (function(a) {
|
|
|
9902
9902
|
}
|
|
9903
9903
|
}]), n;
|
|
9904
9904
|
})(te), uu = /* @__PURE__ */ (function(a) {
|
|
9905
|
-
|
|
9906
|
-
var s =
|
|
9905
|
+
N(n, a);
|
|
9906
|
+
var s = B(n);
|
|
9907
9907
|
function n() {
|
|
9908
9908
|
return R(this, n), s.apply(this, arguments);
|
|
9909
9909
|
}
|
|
@@ -10007,8 +10007,8 @@ var Mr = {
|
|
|
10007
10007
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
10008
10008
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
10009
10009
|
}, eg = /* @__PURE__ */ (function(a) {
|
|
10010
|
-
|
|
10011
|
-
var s =
|
|
10010
|
+
N(n, a);
|
|
10011
|
+
var s = B(n);
|
|
10012
10012
|
function n(t) {
|
|
10013
10013
|
var e, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
10014
10014
|
return R(this, n), e = s.call(this), e.isEnabled = !0, e.isDragging = !1, e.isDown = !1, e.position = {}, e.downPoint = {}, e.dragPoint = {
|
|
@@ -10217,8 +10217,8 @@ var Mr = {
|
|
|
10217
10217
|
}
|
|
10218
10218
|
}]), n;
|
|
10219
10219
|
})(Wu), tg = /* @__PURE__ */ (function(a) {
|
|
10220
|
-
|
|
10221
|
-
var s =
|
|
10220
|
+
N(n, a);
|
|
10221
|
+
var s = B(n);
|
|
10222
10222
|
function n(t) {
|
|
10223
10223
|
var e;
|
|
10224
10224
|
R(this, n), e = s.call(this, t), _(y(e), "onCancelClick", function(o) {
|
|
@@ -10371,13 +10371,13 @@ var Mr = {
|
|
|
10371
10371
|
};
|
|
10372
10372
|
}
|
|
10373
10373
|
}]), n;
|
|
10374
|
-
})(te),
|
|
10374
|
+
})(te), Yt = {
|
|
10375
10375
|
mouseenter: "onMouseEnter",
|
|
10376
10376
|
mouseleave: "onMouseLeave",
|
|
10377
10377
|
mousemove: "onMouseMove"
|
|
10378
10378
|
}, Fr = ["videoClick", "videoDbClick"], Nr = /* @__PURE__ */ (function(a) {
|
|
10379
|
-
|
|
10380
|
-
var s =
|
|
10379
|
+
N(n, a);
|
|
10380
|
+
var s = B(n);
|
|
10381
10381
|
function n() {
|
|
10382
10382
|
var t;
|
|
10383
10383
|
R(this, n);
|
|
@@ -10439,14 +10439,14 @@ var Mr = {
|
|
|
10439
10439
|
e.__hooks[r] = null;
|
|
10440
10440
|
});
|
|
10441
10441
|
var i = this.playerConfig.isMobileSimulateMode;
|
|
10442
|
-
i === "mobile" ||
|
|
10442
|
+
i === "mobile" || $.device === "mobile" && !$.os.isIpad || this.initEvents();
|
|
10443
10443
|
}
|
|
10444
10444
|
}, {
|
|
10445
10445
|
key: "initEvents",
|
|
10446
10446
|
value: function() {
|
|
10447
10447
|
var e = this, i = this.player, r = i.media, o = i.root, u = this.playerConfig.enableContextmenu;
|
|
10448
|
-
o && o.addEventListener("click", this.onVideoClick, !1), o && o.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(
|
|
10449
|
-
o.addEventListener(l, e[
|
|
10448
|
+
o && o.addEventListener("click", this.onVideoClick, !1), o && o.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(Yt).map(function(l) {
|
|
10449
|
+
o.addEventListener(l, e[Yt[l]], !1);
|
|
10450
10450
|
}), !u && r && r.addEventListener("contextmenu", this.onContextmenu, !1);
|
|
10451
10451
|
}
|
|
10452
10452
|
}, {
|
|
@@ -10468,8 +10468,8 @@ var Mr = {
|
|
|
10468
10468
|
key: "destroy",
|
|
10469
10469
|
value: function() {
|
|
10470
10470
|
var e = this, i = this.player, r = i.video, o = i.root;
|
|
10471
|
-
this.clickTimer && clearTimeout(this.clickTimer), o.removeEventListener("click", this.onVideoClick, !1), o.removeEventListener("dblclick", this.onVideoDblClick, !1), r.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(
|
|
10472
|
-
o.removeEventListener(u, e[
|
|
10471
|
+
this.clickTimer && clearTimeout(this.clickTimer), o.removeEventListener("click", this.onVideoClick, !1), o.removeEventListener("dblclick", this.onVideoDblClick, !1), r.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(Yt).map(function(u) {
|
|
10472
|
+
o.removeEventListener(u, e[Yt[u]], !1);
|
|
10473
10473
|
});
|
|
10474
10474
|
}
|
|
10475
10475
|
}], [{
|
|
@@ -10631,8 +10631,8 @@ var gt = {
|
|
|
10631
10631
|
SEEKING: "seeking",
|
|
10632
10632
|
PLAYBACK: "playbackrate"
|
|
10633
10633
|
}, Br = ["videoClick", "videoDbClick"], og = /* @__PURE__ */ (function(a) {
|
|
10634
|
-
|
|
10635
|
-
var s =
|
|
10634
|
+
N(n, a);
|
|
10635
|
+
var s = B(n);
|
|
10636
10636
|
function n(t) {
|
|
10637
10637
|
var e;
|
|
10638
10638
|
return R(this, n), e = s.call(this, t), _(y(e), "onTouchStart", function(i) {
|
|
@@ -10841,7 +10841,7 @@ var gt = {
|
|
|
10841
10841
|
this.updateBrightness(i / u);
|
|
10842
10842
|
break;
|
|
10843
10843
|
case 2:
|
|
10844
|
-
|
|
10844
|
+
$.os.isIos || this.updateVolume(i / u);
|
|
10845
10845
|
break;
|
|
10846
10846
|
}
|
|
10847
10847
|
}
|
|
@@ -11070,8 +11070,8 @@ function du(a) {
|
|
|
11070
11070
|
return !!(s === "INPUT" || s === "TEXTAREA" || a.isContentEditable);
|
|
11071
11071
|
}
|
|
11072
11072
|
var gu = /* @__PURE__ */ (function(a) {
|
|
11073
|
-
|
|
11074
|
-
var s =
|
|
11073
|
+
N(n, a);
|
|
11074
|
+
var s = B(n);
|
|
11075
11075
|
function n() {
|
|
11076
11076
|
var t;
|
|
11077
11077
|
R(this, n);
|
|
@@ -11360,8 +11360,8 @@ function lg() {
|
|
|
11360
11360
|
`, "image/svg+xml").firstChild;
|
|
11361
11361
|
}
|
|
11362
11362
|
var cg = /* @__PURE__ */ (function(a) {
|
|
11363
|
-
|
|
11364
|
-
var s =
|
|
11363
|
+
N(n, a);
|
|
11364
|
+
var s = B(n);
|
|
11365
11365
|
function n() {
|
|
11366
11366
|
return R(this, n), s.apply(this, arguments);
|
|
11367
11367
|
}
|
|
@@ -11399,8 +11399,8 @@ var cg = /* @__PURE__ */ (function(a) {
|
|
|
11399
11399
|
}
|
|
11400
11400
|
}]), n;
|
|
11401
11401
|
})(te), fg = /* @__PURE__ */ (function(a) {
|
|
11402
|
-
|
|
11403
|
-
var s =
|
|
11402
|
+
N(n, a);
|
|
11403
|
+
var s = B(n);
|
|
11404
11404
|
function n() {
|
|
11405
11405
|
var t;
|
|
11406
11406
|
R(this, n);
|
|
@@ -11551,8 +11551,8 @@ function hg() {
|
|
|
11551
11551
|
`, "image/svg+xml").firstChild;
|
|
11552
11552
|
}
|
|
11553
11553
|
var dg = /* @__PURE__ */ (function(a) {
|
|
11554
|
-
|
|
11555
|
-
var s =
|
|
11554
|
+
N(n, a);
|
|
11555
|
+
var s = B(n);
|
|
11556
11556
|
function n(t) {
|
|
11557
11557
|
var e;
|
|
11558
11558
|
return R(this, n), e = s.call(this, t), e.rotateDeg = e.config.rotateDeg || 0, e;
|
|
@@ -11597,8 +11597,8 @@ var dg = /* @__PURE__ */ (function(a) {
|
|
|
11597
11597
|
height: m,
|
|
11598
11598
|
width: v
|
|
11599
11599
|
}, P = i ? f : l, L = i ? r.getPlugin("poster") : null;
|
|
11600
|
-
Object.keys(T).map(function(
|
|
11601
|
-
P.style[
|
|
11600
|
+
Object.keys(T).map(function(H) {
|
|
11601
|
+
P.style[H] = T[H], L && L.root && (L.root.style[H] = T[H]);
|
|
11602
11602
|
});
|
|
11603
11603
|
}
|
|
11604
11604
|
}, {
|
|
@@ -11668,8 +11668,8 @@ var vt = {
|
|
|
11668
11668
|
INLINE: "inline",
|
|
11669
11669
|
FULLSCREEN: "fullscreen"
|
|
11670
11670
|
}, pg = /* @__PURE__ */ (function(a) {
|
|
11671
|
-
|
|
11672
|
-
var s =
|
|
11671
|
+
N(n, a);
|
|
11672
|
+
var s = B(n);
|
|
11673
11673
|
function n() {
|
|
11674
11674
|
var t;
|
|
11675
11675
|
R(this, n);
|
|
@@ -11875,8 +11875,8 @@ function mg() {
|
|
|
11875
11875
|
`, "image/svg+xml").firstChild;
|
|
11876
11876
|
}
|
|
11877
11877
|
var yg = /* @__PURE__ */ (function(a) {
|
|
11878
|
-
|
|
11879
|
-
var s =
|
|
11878
|
+
N(n, a);
|
|
11879
|
+
var s = B(n);
|
|
11880
11880
|
function n(t) {
|
|
11881
11881
|
var e;
|
|
11882
11882
|
return R(this, n), e = s.call(this, t), _(y(e), "playNext", function(i) {
|
|
@@ -11900,7 +11900,7 @@ var yg = /* @__PURE__ */ (function(a) {
|
|
|
11900
11900
|
key: "initEvents",
|
|
11901
11901
|
value: function() {
|
|
11902
11902
|
this.nextHandler = this.hook("nextClick", this.changeSrc);
|
|
11903
|
-
var e =
|
|
11903
|
+
var e = $.device === "mobile" ? "touchend" : "click";
|
|
11904
11904
|
this.bind(e, this.playNext), this.show();
|
|
11905
11905
|
}
|
|
11906
11906
|
}, {
|
|
@@ -11942,20 +11942,20 @@ var yg = /* @__PURE__ */ (function(a) {
|
|
|
11942
11942
|
};
|
|
11943
11943
|
}
|
|
11944
11944
|
}]), n;
|
|
11945
|
-
})(te),
|
|
11945
|
+
})(te), Jt = { exports: {} }, _g = Jt.exports, vu;
|
|
11946
11946
|
function bg() {
|
|
11947
11947
|
return vu || (vu = 1, (function(a, s) {
|
|
11948
11948
|
(function(n, t) {
|
|
11949
11949
|
a.exports = t();
|
|
11950
11950
|
})(_g, function() {
|
|
11951
11951
|
return function n(t, e, i) {
|
|
11952
|
-
var r = window, o = "application/octet-stream", u = i || o, l = t, c = !e && !i && l, f = document.createElement("a"), d = function(
|
|
11953
|
-
return String(
|
|
11952
|
+
var r = window, o = "application/octet-stream", u = i || o, l = t, c = !e && !i && l, f = document.createElement("a"), d = function(U) {
|
|
11953
|
+
return String(U);
|
|
11954
11954
|
}, g = r.Blob || r.MozBlob || r.WebKitBlob || d, v = e || "download", m, p;
|
|
11955
11955
|
if (g = g.call ? g.bind(r) : Blob, String(this) === "true" && (l = [l, u], u = l[0], l = l[1]), c && c.length < 2048 && (v = c.split("/").pop().split("?")[0], f.href = c, f.href.indexOf(c) !== -1)) {
|
|
11956
11956
|
var w = new XMLHttpRequest();
|
|
11957
|
-
return w.open("GET", c, !0), w.responseType = "blob", w.onload = function(
|
|
11958
|
-
n(
|
|
11957
|
+
return w.open("GET", c, !0), w.responseType = "blob", w.onload = function(U) {
|
|
11958
|
+
n(U.target.response, v, o);
|
|
11959
11959
|
}, setTimeout(function() {
|
|
11960
11960
|
w.send();
|
|
11961
11961
|
}, 0), w;
|
|
@@ -11967,53 +11967,53 @@ function bg() {
|
|
|
11967
11967
|
return navigator.msSaveBlob ? (
|
|
11968
11968
|
// IE10 can't do a[download], only Blobs:
|
|
11969
11969
|
navigator.msSaveBlob(L(l), v)
|
|
11970
|
-
) :
|
|
11970
|
+
) : H(l);
|
|
11971
11971
|
else if (/([\x80-\xff])/.test(l)) {
|
|
11972
11972
|
var b = 0, T = new Uint8Array(l.length), P = T.length;
|
|
11973
11973
|
for (b; b < P; ++b) T[b] = l.charCodeAt(b);
|
|
11974
11974
|
l = new g([T], { type: u });
|
|
11975
11975
|
}
|
|
11976
11976
|
m = l instanceof g ? l : new g([l], { type: u });
|
|
11977
|
-
function L(
|
|
11978
|
-
var ee =
|
|
11977
|
+
function L(U) {
|
|
11978
|
+
var ee = U.split(/[:;,]/), q = ee[1], j = ee[2] == "base64" ? atob : decodeURIComponent, M = j(ee.pop()), ne = M.length, ce = 0, be = new Uint8Array(ne);
|
|
11979
11979
|
for (ce; ce < ne; ++ce) be[ce] = M.charCodeAt(ce);
|
|
11980
11980
|
return new g([be], { type: q });
|
|
11981
11981
|
}
|
|
11982
|
-
function
|
|
11982
|
+
function H(U, ee) {
|
|
11983
11983
|
if ("download" in f)
|
|
11984
|
-
return f.href =
|
|
11984
|
+
return f.href = U, f.setAttribute("download", v), f.className = "download-js-link", f.innerHTML = "downloading...", f.style.display = "none", document.body.appendChild(f), setTimeout(function() {
|
|
11985
11985
|
f.click(), document.body.removeChild(f), ee === !0 && setTimeout(function() {
|
|
11986
11986
|
r.URL.revokeObjectURL(f.href);
|
|
11987
11987
|
}, 250);
|
|
11988
11988
|
}, 66), !0;
|
|
11989
11989
|
if (/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))
|
|
11990
|
-
return /^data:/.test(
|
|
11990
|
+
return /^data:/.test(U) && (U = "data:" + U.replace(/^data:([\w\/\-\+]+)/, o)), window.open(U) || confirm(`Displaying New Document
|
|
11991
11991
|
|
|
11992
|
-
Use Save As... to download, then click back to return to this page.`) && (location.href =
|
|
11992
|
+
Use Save As... to download, then click back to return to this page.`) && (location.href = U), !0;
|
|
11993
11993
|
var q = document.createElement("iframe");
|
|
11994
|
-
document.body.appendChild(q), !ee && /^data:/.test(
|
|
11994
|
+
document.body.appendChild(q), !ee && /^data:/.test(U) && (U = "data:" + U.replace(/^data:([\w\/\-\+]+)/, o)), q.src = U, setTimeout(function() {
|
|
11995
11995
|
document.body.removeChild(q);
|
|
11996
11996
|
}, 333);
|
|
11997
11997
|
}
|
|
11998
11998
|
if (navigator.msSaveBlob)
|
|
11999
11999
|
return navigator.msSaveBlob(m, v);
|
|
12000
12000
|
if (r.URL)
|
|
12001
|
-
|
|
12001
|
+
H(r.URL.createObjectURL(m), !0);
|
|
12002
12002
|
else {
|
|
12003
12003
|
if (typeof m == "string" || m.constructor === d)
|
|
12004
12004
|
try {
|
|
12005
|
-
return
|
|
12005
|
+
return H("data:" + u + ";base64," + r.btoa(m));
|
|
12006
12006
|
} catch {
|
|
12007
|
-
return
|
|
12007
|
+
return H("data:" + u + "," + encodeURIComponent(m));
|
|
12008
12008
|
}
|
|
12009
|
-
p = new FileReader(), p.onload = function(
|
|
12010
|
-
|
|
12009
|
+
p = new FileReader(), p.onload = function(U) {
|
|
12010
|
+
H(this.result);
|
|
12011
12011
|
}, p.readAsDataURL(m);
|
|
12012
12012
|
}
|
|
12013
12013
|
return !0;
|
|
12014
12014
|
};
|
|
12015
12015
|
});
|
|
12016
|
-
})(
|
|
12016
|
+
})(Jt)), Jt.exports;
|
|
12017
12017
|
}
|
|
12018
12018
|
var Cg = bg();
|
|
12019
12019
|
const kg = /* @__PURE__ */ $r(Cg);
|
|
@@ -12035,8 +12035,8 @@ function wg() {
|
|
|
12035
12035
|
`, "image/svg+xml").firstChild;
|
|
12036
12036
|
}
|
|
12037
12037
|
var Tg = /* @__PURE__ */ (function(a) {
|
|
12038
|
-
|
|
12039
|
-
var s =
|
|
12038
|
+
N(n, a);
|
|
12039
|
+
var s = B(n);
|
|
12040
12040
|
function n(t) {
|
|
12041
12041
|
var e;
|
|
12042
12042
|
return R(this, n), e = s.call(this, t), _(y(e), "download", function(i) {
|
|
@@ -12107,8 +12107,8 @@ var Tg = /* @__PURE__ */ (function(a) {
|
|
|
12107
12107
|
}
|
|
12108
12108
|
}]), n;
|
|
12109
12109
|
})(lt), Sg = /* @__PURE__ */ (function(a) {
|
|
12110
|
-
|
|
12111
|
-
var s =
|
|
12110
|
+
N(n, a);
|
|
12111
|
+
var s = B(n);
|
|
12112
12112
|
function n() {
|
|
12113
12113
|
return R(this, n), s.apply(this, arguments);
|
|
12114
12114
|
}
|
|
@@ -12177,11 +12177,11 @@ var Tg = /* @__PURE__ */ (function(a) {
|
|
|
12177
12177
|
v = l.media.canvas;
|
|
12178
12178
|
else {
|
|
12179
12179
|
r.canvas ? (r.canvas.width = e || u.width, r.canvas.height = i || u.height) : r.createCanvas(e, i), v = r.canvas, m = r.canvasCtx;
|
|
12180
|
-
var p = l.media.videoWidth / l.media.videoHeight, w = v.width / v.height, b = 0, T = 0, P = l.media.videoWidth, L = l.media.videoHeight,
|
|
12181
|
-
p > w ? (ee = v.width, q = v.width / p,
|
|
12180
|
+
var p = l.media.videoWidth / l.media.videoHeight, w = v.width / v.height, b = 0, T = 0, P = l.media.videoWidth, L = l.media.videoHeight, H, U, ee, q;
|
|
12181
|
+
p > w ? (ee = v.width, q = v.width / p, H = 0, U = Math.round((v.height - q) / 2)) : p === w ? (ee = v.width, q = v.height, H = 0, U = 0) : p < w && (ee = v.height * p, q = v.height, H = Math.round((v.width - ee) / 2), U = 0), m.drawImage(l.media, b, T, P, L, H, U, ee, q);
|
|
12182
12182
|
}
|
|
12183
|
-
var
|
|
12184
|
-
|
|
12183
|
+
var j = v.toDataURL(f, c).replace(f, "image/octet-stream");
|
|
12184
|
+
j = j.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(j);
|
|
12185
12185
|
});
|
|
12186
12186
|
}
|
|
12187
12187
|
}, {
|
|
@@ -12315,9 +12315,9 @@ var Tg = /* @__PURE__ */ (function(a) {
|
|
|
12315
12315
|
function Eg(a, s) {
|
|
12316
12316
|
return a === Oe.SIDE ? s === ae.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
12317
12317
|
}
|
|
12318
|
-
var nt =
|
|
12319
|
-
|
|
12320
|
-
var s =
|
|
12318
|
+
var nt = $.device === "mobile", ci = /* @__PURE__ */ (function(a) {
|
|
12319
|
+
N(n, a);
|
|
12320
|
+
var s = B(n);
|
|
12321
12321
|
function n(t) {
|
|
12322
12322
|
var e;
|
|
12323
12323
|
return R(this, n), e = s.call(this, t), _(y(e), "onEnter", function(i) {
|
|
@@ -12347,7 +12347,7 @@ var nt = K.device === "mobile", ci = /* @__PURE__ */ (function(a) {
|
|
|
12347
12347
|
key: "afterCreate",
|
|
12348
12348
|
value: function() {
|
|
12349
12349
|
var e = this, i = this.config;
|
|
12350
|
-
this.initIcons(), nt = nt || this.domEventType === "touch", nt &&
|
|
12350
|
+
this.initIcons(), nt = nt || this.domEventType === "touch", nt && $.device === "mobile" && i.listType === Oe.DEFAULT && (i.listType = Oe.SIDE), i.hidePortrait && h.addClass(this.root, "portrait"), this.on([Ze, Be], function() {
|
|
12351
12351
|
e._resizeList();
|
|
12352
12352
|
}), this.once(He, function() {
|
|
12353
12353
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
@@ -12488,8 +12488,8 @@ var nt = K.device === "mobile", ci = /* @__PURE__ */ (function(a) {
|
|
|
12488
12488
|
}
|
|
12489
12489
|
}]), n;
|
|
12490
12490
|
})(te), xg = /* @__PURE__ */ (function(a) {
|
|
12491
|
-
|
|
12492
|
-
var s =
|
|
12491
|
+
N(n, a);
|
|
12492
|
+
var s = B(n);
|
|
12493
12493
|
function n(t) {
|
|
12494
12494
|
var e;
|
|
12495
12495
|
return R(this, n), e = s.call(this, t), e.curTime = 0, e.isPaused = !0, e;
|
|
@@ -12589,8 +12589,8 @@ var nt = K.device === "mobile", ci = /* @__PURE__ */ (function(a) {
|
|
|
12589
12589
|
}
|
|
12590
12590
|
}]), n;
|
|
12591
12591
|
})(ci), Ig = /* @__PURE__ */ (function(a) {
|
|
12592
|
-
|
|
12593
|
-
var s =
|
|
12592
|
+
N(n, a);
|
|
12593
|
+
var s = B(n);
|
|
12594
12594
|
function n(t) {
|
|
12595
12595
|
var e;
|
|
12596
12596
|
return R(this, n), e = s.call(this, t), e.curRate = 1, e;
|
|
@@ -12681,8 +12681,8 @@ var nt = K.device === "mobile", ci = /* @__PURE__ */ (function(a) {
|
|
|
12681
12681
|
}
|
|
12682
12682
|
}]), n;
|
|
12683
12683
|
})(ci), Pg = /* @__PURE__ */ (function(a) {
|
|
12684
|
-
|
|
12685
|
-
var s =
|
|
12684
|
+
N(n, a);
|
|
12685
|
+
var s = B(n);
|
|
12686
12686
|
function n() {
|
|
12687
12687
|
return R(this, n), s.apply(this, arguments);
|
|
12688
12688
|
}
|
|
@@ -12694,7 +12694,7 @@ var nt = K.device === "mobile", ci = /* @__PURE__ */ (function(a) {
|
|
|
12694
12694
|
pre: function(r) {
|
|
12695
12695
|
r.preventDefault(), r.stopPropagation();
|
|
12696
12696
|
}
|
|
12697
|
-
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(
|
|
12697
|
+
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(Bt, function(i) {
|
|
12698
12698
|
e.onError(i);
|
|
12699
12699
|
});
|
|
12700
12700
|
}
|
|
@@ -12742,8 +12742,8 @@ var nt = K.device === "mobile", ci = /* @__PURE__ */ (function(a) {
|
|
|
12742
12742
|
}
|
|
12743
12743
|
}]), n;
|
|
12744
12744
|
})(te), Dg = /* @__PURE__ */ (function(a) {
|
|
12745
|
-
|
|
12746
|
-
var s =
|
|
12745
|
+
N(n, a);
|
|
12746
|
+
var s = B(n);
|
|
12747
12747
|
function n() {
|
|
12748
12748
|
return R(this, n), s.apply(this, arguments);
|
|
12749
12749
|
}
|
|
@@ -12793,7 +12793,7 @@ var nt = K.device === "mobile", ci = /* @__PURE__ */ (function(a) {
|
|
|
12793
12793
|
}, {
|
|
12794
12794
|
key: "render",
|
|
12795
12795
|
value: function() {
|
|
12796
|
-
return '<xg-prompt class="xgplayer-prompt '.concat(
|
|
12796
|
+
return '<xg-prompt class="xgplayer-prompt '.concat(A.CONTROLS_FOLLOW, `">
|
|
12797
12797
|
<span class="xgplayer-prompt-detail"></span>
|
|
12798
12798
|
</xg-prompt>`);
|
|
12799
12799
|
}
|
|
@@ -12996,8 +12996,8 @@ var mt = {
|
|
|
12996
12996
|
mouseover: "onProgressMouseOver",
|
|
12997
12997
|
mouseenter: "onProgressMouseOver"
|
|
12998
12998
|
}, Rg = /* @__PURE__ */ (function(a) {
|
|
12999
|
-
|
|
13000
|
-
var s =
|
|
12999
|
+
N(n, a);
|
|
13000
|
+
var s = B(n);
|
|
13001
13001
|
function n(t) {
|
|
13002
13002
|
var e;
|
|
13003
13003
|
return R(this, n), e = s.call(this, t), _(y(e), "onMousemove", function(i) {
|
|
@@ -13070,7 +13070,7 @@ var mt = {
|
|
|
13070
13070
|
var e = this, i = this.player.plugins.progress;
|
|
13071
13071
|
if (i && (Object.keys(mt).map(function(o) {
|
|
13072
13072
|
e[mt[o]] = e[mt[o]].bind(e), i.addCallBack(o, e[mt[o]]);
|
|
13073
|
-
}),
|
|
13073
|
+
}), $.device !== "mobile")) {
|
|
13074
13074
|
this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
|
|
13075
13075
|
var r = this.hook("previewClick", function() {
|
|
13076
13076
|
});
|
|
@@ -13146,7 +13146,7 @@ var mt = {
|
|
|
13146
13146
|
key: "registerThumbnail",
|
|
13147
13147
|
value: function() {
|
|
13148
13148
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
13149
|
-
if (
|
|
13149
|
+
if ($.device !== "mobile") {
|
|
13150
13150
|
var i = this.player, r = this.config, o = i.getPlugin("thumbnail");
|
|
13151
13151
|
if (o && o.setConfig(e), !o || !o.usable || !r.isShowThumbnail) {
|
|
13152
13152
|
h.addClass(this.root, "short-line no-thumbnail");
|
|
@@ -13234,7 +13234,7 @@ var mt = {
|
|
|
13234
13234
|
}, {
|
|
13235
13235
|
key: "render",
|
|
13236
13236
|
value: function() {
|
|
13237
|
-
return
|
|
13237
|
+
return $.device === "mobile" || this.playerConfig.isMobileSimulateMode === "mobile" ? "" : '<div class="xg-spot-info hide '.concat(this.config.mode === "short" ? "short-line" : "", `">
|
|
13238
13238
|
<div class="xg-spot-content">
|
|
13239
13239
|
<div class="xg-spot-thumbnail">
|
|
13240
13240
|
<span class="xg-spot-time"></span>
|
|
@@ -13271,8 +13271,8 @@ var mt = {
|
|
|
13271
13271
|
}
|
|
13272
13272
|
}]), n;
|
|
13273
13273
|
})(te), Og = /* @__PURE__ */ (function(a) {
|
|
13274
|
-
|
|
13275
|
-
var s =
|
|
13274
|
+
N(n, a);
|
|
13275
|
+
var s = B(n);
|
|
13276
13276
|
function n(t) {
|
|
13277
13277
|
var e;
|
|
13278
13278
|
return R(this, n), e = s.call(this, t), e.ratio = 1, e.interval = null, e._preloadMark = {}, e;
|
|
@@ -13408,8 +13408,8 @@ function Hr(a) {
|
|
|
13408
13408
|
return a ? "background:".concat(a, ";") : "";
|
|
13409
13409
|
}
|
|
13410
13410
|
var Mg = /* @__PURE__ */ (function(a) {
|
|
13411
|
-
|
|
13412
|
-
var s =
|
|
13411
|
+
N(n, a);
|
|
13412
|
+
var s = B(n);
|
|
13413
13413
|
function n() {
|
|
13414
13414
|
var t;
|
|
13415
13415
|
R(this, n);
|
|
@@ -13509,9 +13509,9 @@ function Ng() {
|
|
|
13509
13509
|
return !1;
|
|
13510
13510
|
}
|
|
13511
13511
|
}
|
|
13512
|
-
var
|
|
13513
|
-
|
|
13514
|
-
var s =
|
|
13512
|
+
var Xt = null, Bg = /* @__PURE__ */ (function(a) {
|
|
13513
|
+
N(n, a);
|
|
13514
|
+
var s = B(n);
|
|
13515
13515
|
function n() {
|
|
13516
13516
|
var t;
|
|
13517
13517
|
R(this, n);
|
|
@@ -13606,7 +13606,7 @@ var Yt = null, Bg = /* @__PURE__ */ (function(a) {
|
|
|
13606
13606
|
if (!e)
|
|
13607
13607
|
return null;
|
|
13608
13608
|
var i = e && e instanceof window.HTMLVideoElement ? e : e.canvas ? e.canvas : e.flyVideo ? e.flyVideo : null;
|
|
13609
|
-
if (i && !(
|
|
13609
|
+
if (i && !($.browser === "safari" && h.isMSE(i)))
|
|
13610
13610
|
return i;
|
|
13611
13611
|
var r = i ? i.tagName.toLowerCase() : "";
|
|
13612
13612
|
return r === "canvas" || r === "img" ? i : null;
|
|
@@ -13703,12 +13703,12 @@ var Yt = null, Bg = /* @__PURE__ */ (function(a) {
|
|
|
13703
13703
|
}, {
|
|
13704
13704
|
key: "isSupport",
|
|
13705
13705
|
get: function() {
|
|
13706
|
-
return typeof
|
|
13706
|
+
return typeof Xt == "boolean" || (Xt = Ng()), Xt;
|
|
13707
13707
|
}
|
|
13708
13708
|
}, {
|
|
13709
13709
|
key: "supportCanvasFilter",
|
|
13710
13710
|
value: function() {
|
|
13711
|
-
return !(
|
|
13711
|
+
return !($.browser === "safari" || $.browser === "firefox");
|
|
13712
13712
|
}
|
|
13713
13713
|
}]), n;
|
|
13714
13714
|
})(te), Hg = {
|
|
@@ -13787,8 +13787,8 @@ var Yt = null, Bg = /* @__PURE__ */ (function(a) {
|
|
|
13787
13787
|
LIVE_TIP: "直播"
|
|
13788
13788
|
}
|
|
13789
13789
|
}, At = "info", Ur = ll, Ug = /* @__PURE__ */ (function(a) {
|
|
13790
|
-
|
|
13791
|
-
var s =
|
|
13790
|
+
N(n, a);
|
|
13791
|
+
var s = B(n);
|
|
13792
13792
|
function n() {
|
|
13793
13793
|
var t;
|
|
13794
13794
|
R(this, n);
|
|
@@ -13931,8 +13931,8 @@ var Yt = null, Bg = /* @__PURE__ */ (function(a) {
|
|
|
13931
13931
|
}
|
|
13932
13932
|
}]), n;
|
|
13933
13933
|
})(Je), wl = /* @__PURE__ */ (function(a) {
|
|
13934
|
-
|
|
13935
|
-
var s =
|
|
13934
|
+
N(n, a);
|
|
13935
|
+
var s = B(n);
|
|
13936
13936
|
function n() {
|
|
13937
13937
|
var t;
|
|
13938
13938
|
R(this, n);
|
|
@@ -13971,7 +13971,7 @@ var Yt = null, Bg = /* @__PURE__ */ (function(a) {
|
|
|
13971
13971
|
key: "afterCreate",
|
|
13972
13972
|
value: function() {
|
|
13973
13973
|
var e = this, i = this.config.useGapJump;
|
|
13974
|
-
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(
|
|
13974
|
+
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(Ht, this.onGapJump), this.on(Pe, function() {
|
|
13975
13975
|
e.hasPlayed = !0;
|
|
13976
13976
|
}), this.on(_i, function() {
|
|
13977
13977
|
e.seekingEventReceived = !0;
|
|
@@ -14021,8 +14021,8 @@ var Yt = null, Bg = /* @__PURE__ */ (function(a) {
|
|
|
14021
14021
|
})(te);
|
|
14022
14022
|
wl.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
14023
14023
|
var jg = /* @__PURE__ */ (function(a) {
|
|
14024
|
-
|
|
14025
|
-
var s =
|
|
14024
|
+
N(n, a);
|
|
14025
|
+
var s = B(n);
|
|
14026
14026
|
function n() {
|
|
14027
14027
|
var t;
|
|
14028
14028
|
R(this, n);
|
|
@@ -14044,7 +14044,7 @@ var jg = /* @__PURE__ */ (function(a) {
|
|
|
14044
14044
|
key: "afterCreate",
|
|
14045
14045
|
value: function() {
|
|
14046
14046
|
var e = this, i = this.config, r = i.useWaitingTimeoutJump, o = i.jumpSize;
|
|
14047
|
-
r !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = o, this.on(
|
|
14047
|
+
r !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = o, this.on(Ht, this.onWaiting), this.on([ua, He], function() {
|
|
14048
14048
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
14049
14049
|
}), this.on(Pe, function() {
|
|
14050
14050
|
e.hasPlayed = !0;
|
|
@@ -14066,9 +14066,9 @@ var jg = /* @__PURE__ */ (function(a) {
|
|
|
14066
14066
|
};
|
|
14067
14067
|
}
|
|
14068
14068
|
}]), n;
|
|
14069
|
-
})(te), _t = "cdn",
|
|
14070
|
-
|
|
14071
|
-
var s =
|
|
14069
|
+
})(te), _t = "cdn", Zt = ["cdn"], zg = /* @__PURE__ */ (function(a) {
|
|
14070
|
+
N(n, a);
|
|
14071
|
+
var s = B(n);
|
|
14072
14072
|
function n() {
|
|
14073
14073
|
var t;
|
|
14074
14074
|
R(this, n);
|
|
@@ -14085,7 +14085,7 @@ var jg = /* @__PURE__ */ (function(a) {
|
|
|
14085
14085
|
}), _(y(t), "startTimer", function() {
|
|
14086
14086
|
h.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
|
|
14087
14087
|
}), _(y(t), "initSpeedList", function() {
|
|
14088
|
-
t.speedListCache = {},
|
|
14088
|
+
t.speedListCache = {}, Zt.forEach(function(o) {
|
|
14089
14089
|
t.speedListCache[o] = [];
|
|
14090
14090
|
});
|
|
14091
14091
|
}), _(y(t), "_onRealSpeedChange", function(o) {
|
|
@@ -14142,7 +14142,7 @@ var jg = /* @__PURE__ */ (function(a) {
|
|
|
14142
14142
|
key: "afterCreate",
|
|
14143
14143
|
value: function() {
|
|
14144
14144
|
var e = this.config, i = e.openSpeed, r = e.addSpeedTypeList;
|
|
14145
|
-
(r == null ? void 0 : r.length) > 0 &&
|
|
14145
|
+
(r == null ? void 0 : r.length) > 0 && Zt.push.apply(Zt, Re(r)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([je, ii], this.startTimer);
|
|
14146
14146
|
}
|
|
14147
14147
|
}, {
|
|
14148
14148
|
key: "getSpeedName",
|
|
@@ -14169,7 +14169,7 @@ var jg = /* @__PURE__ */ (function(a) {
|
|
|
14169
14169
|
key: "destroy",
|
|
14170
14170
|
value: function() {
|
|
14171
14171
|
var e = this;
|
|
14172
|
-
this.off("real_time_speed", this._onRealSpeedChange), this.off([je, ii], this.startTimer),
|
|
14172
|
+
this.off("real_time_speed", this._onRealSpeedChange), this.off([je, ii], this.startTimer), Zt.forEach(function(i) {
|
|
14173
14173
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
14174
14174
|
}), this.speedListCache && (this.speedListCache = {}), clearTimeout(this.timer), this.timer = null, this.xhr && this.xhr.readyState !== 4 && (this.xhr.cancel && this.xhr.cancel(), this.xhr = null);
|
|
14175
14175
|
}
|
|
@@ -14193,8 +14193,8 @@ var jg = /* @__PURE__ */ (function(a) {
|
|
|
14193
14193
|
}
|
|
14194
14194
|
}]), n;
|
|
14195
14195
|
})(te), Vg = /* @__PURE__ */ (function(a) {
|
|
14196
|
-
|
|
14197
|
-
var s =
|
|
14196
|
+
N(n, a);
|
|
14197
|
+
var s = B(n);
|
|
14198
14198
|
function n() {
|
|
14199
14199
|
return R(this, n), s.apply(this, arguments);
|
|
14200
14200
|
}
|
|
@@ -14308,7 +14308,7 @@ var qg = /* @__PURE__ */ O(function a(s, n) {
|
|
|
14308
14308
|
R(this, a);
|
|
14309
14309
|
var r = n && n.isMobileSimulateMode === "mobile", o = n.isLive, u = o ? [] : [fg, yl, Mg, Rg, _l], l = [].concat(u, [ml, pl, dg, yg, xg, Ig, Tg, Sg, bl, pg]), c = [Kd, $d, Xd, cg, Zd, Pg, Dg, Og, tg];
|
|
14310
14310
|
this.plugins = [Ug, Gd].concat(Re(l), c, [wl, jg]);
|
|
14311
|
-
var f = r ? "mobile" :
|
|
14311
|
+
var f = r ? "mobile" : $.device;
|
|
14312
14312
|
switch (f) {
|
|
14313
14313
|
case "pc":
|
|
14314
14314
|
(t = this.plugins).push.apply(t, [gu, Nr, Kr, zg, Vg]);
|
|
@@ -14319,10 +14319,10 @@ var qg = /* @__PURE__ */ O(function a(s, n) {
|
|
|
14319
14319
|
default:
|
|
14320
14320
|
(i = this.plugins).push.apply(i, [gu, Nr, Kr]);
|
|
14321
14321
|
}
|
|
14322
|
-
(
|
|
14322
|
+
($.os.isIpad || f === "pc") && this.plugins.push(Bg), $.os.isIpad && this.plugins.push(Nr), this.ignores = [], this.i18n = [];
|
|
14323
14323
|
}), ge = /* @__PURE__ */ (function(a) {
|
|
14324
|
-
|
|
14325
|
-
var s =
|
|
14324
|
+
N(n, a);
|
|
14325
|
+
var s = B(n);
|
|
14326
14326
|
function n() {
|
|
14327
14327
|
return R(this, n), s.apply(this, arguments);
|
|
14328
14328
|
}
|
|
@@ -14330,13 +14330,13 @@ var qg = /* @__PURE__ */ O(function a(s, n) {
|
|
|
14330
14330
|
})(wi);
|
|
14331
14331
|
_(ge, "defaultPreset", qg);
|
|
14332
14332
|
_(ge, "Util", h);
|
|
14333
|
-
_(ge, "Sniffer",
|
|
14333
|
+
_(ge, "Sniffer", $);
|
|
14334
14334
|
_(ge, "Errors", ti);
|
|
14335
14335
|
_(ge, "Events", hd);
|
|
14336
14336
|
_(ge, "Plugin", te);
|
|
14337
14337
|
_(ge, "BasePlugin", Je);
|
|
14338
14338
|
_(ge, "I18N", Ct);
|
|
14339
|
-
_(ge, "STATE_CLASS",
|
|
14339
|
+
_(ge, "STATE_CLASS", A);
|
|
14340
14340
|
_(ge, "InstManager", vl);
|
|
14341
14341
|
_(ge, "PlayIcon", ml);
|
|
14342
14342
|
_(ge, "TimeIcon", _l);
|
|
@@ -14373,7 +14373,7 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14373
14373
|
}, ["update:modelValue"]),
|
|
14374
14374
|
setup(a, { emit: s }) {
|
|
14375
14375
|
let n = null;
|
|
14376
|
-
const t = a, { cLoadUrl: e } = Su(t), i = le(() =>
|
|
14376
|
+
const t = a, { cLoadUrl: e } = Su(t), i = le(() => Ot(e.value, t.url)), r = {
|
|
14377
14377
|
width: "100%",
|
|
14378
14378
|
height: "100%",
|
|
14379
14379
|
// 是否自动播放
|
|
@@ -14407,7 +14407,7 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14407
14407
|
});
|
|
14408
14408
|
});
|
|
14409
14409
|
}), (g, v) => {
|
|
14410
|
-
const m =
|
|
14410
|
+
const m = Qt("el-icon");
|
|
14411
14411
|
return l.value ? (E(), oe(_u, {
|
|
14412
14412
|
key: 0,
|
|
14413
14413
|
to: "body"
|
|
@@ -14422,14 +14422,14 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14422
14422
|
{
|
|
14423
14423
|
ref: "wrapper",
|
|
14424
14424
|
tabindex: -1,
|
|
14425
|
-
class: ue(
|
|
14425
|
+
class: ue(k(f).e("wrapper")),
|
|
14426
14426
|
style: Rt({ zIndex: a.zIndex })
|
|
14427
14427
|
},
|
|
14428
14428
|
[
|
|
14429
14429
|
x(
|
|
14430
14430
|
"div",
|
|
14431
14431
|
{
|
|
14432
|
-
class: ue(
|
|
14432
|
+
class: ue(k(f).e("mask"))
|
|
14433
14433
|
},
|
|
14434
14434
|
null,
|
|
14435
14435
|
2
|
|
@@ -14439,21 +14439,21 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14439
14439
|
x(
|
|
14440
14440
|
"div",
|
|
14441
14441
|
{
|
|
14442
|
-
class: ue(
|
|
14442
|
+
class: ue(k(f).e("canvas"))
|
|
14443
14443
|
},
|
|
14444
14444
|
[
|
|
14445
|
-
x("div", { id:
|
|
14445
|
+
x("div", { id: k(c) }, null, 8, Gg),
|
|
14446
14446
|
Q(" CLOSE "),
|
|
14447
14447
|
x(
|
|
14448
14448
|
"span",
|
|
14449
14449
|
{
|
|
14450
|
-
class: ue([
|
|
14450
|
+
class: ue([k(f).e("btn"), k(f).e("close")]),
|
|
14451
14451
|
onClick: d
|
|
14452
14452
|
},
|
|
14453
14453
|
[
|
|
14454
14454
|
W(m, { onClick: d }, {
|
|
14455
14455
|
default: J(() => [
|
|
14456
|
-
W(
|
|
14456
|
+
W(k(Tu))
|
|
14457
14457
|
]),
|
|
14458
14458
|
_: 1
|
|
14459
14459
|
/* STABLE */
|
|
@@ -14651,27 +14651,27 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14651
14651
|
size: "size"
|
|
14652
14652
|
},
|
|
14653
14653
|
...n.defaultFileds
|
|
14654
|
-
}, { cLoadUrl: o, cUploadUrl: u, cOnlyofficeConfig: l, cOnlyofficePreviewType: c } = Su(n), f = le(() => n.size), d = we(null), g = we([]), v = we({}), m = we(!1), p = (
|
|
14655
|
-
const
|
|
14656
|
-
return
|
|
14657
|
-
message: `上传文件大小(${
|
|
14654
|
+
}, { cLoadUrl: o, cUploadUrl: u, cOnlyofficeConfig: l, cOnlyofficePreviewType: c } = Su(n), f = le(() => n.size), d = we(null), g = we([]), v = we({}), m = we(!1), p = (C) => {
|
|
14655
|
+
const F = C.size / 1024 / 1024;
|
|
14656
|
+
return F < f.value ? !0 : (t("outSize"), Ti({
|
|
14657
|
+
message: `上传文件大小(${F.toFixed(4)}MB)超出允许最大值(${n.size}MB),请重新选择`,
|
|
14658
14658
|
type: "warning",
|
|
14659
14659
|
showClose: !0,
|
|
14660
14660
|
duration: 5e3
|
|
14661
14661
|
}), !1);
|
|
14662
14662
|
}, w = le(() => {
|
|
14663
|
-
const { accept:
|
|
14664
|
-
return
|
|
14665
|
-
}), b = (
|
|
14663
|
+
const { accept: C } = n;
|
|
14664
|
+
return C === "*" ? "*" : `${C.toLowerCase()},${C.toUpperCase()}`;
|
|
14665
|
+
}), b = (C, F) => {
|
|
14666
14666
|
var I, G, X, de, pe;
|
|
14667
|
-
if (t("change",
|
|
14667
|
+
if (t("change", C), C.size / 1024 / 1024 < f.value || Lt(() => {
|
|
14668
14668
|
e.value.pop();
|
|
14669
14669
|
}), n.accept !== "*") {
|
|
14670
14670
|
let me = !1;
|
|
14671
|
-
w.value.includes("/") && (me = ((G = (I =
|
|
14671
|
+
w.value.includes("/") && (me = ((G = (I = C == null ? void 0 : C.raw) == null ? void 0 : I.type) == null ? void 0 : G.split("/").shift()) === ((X = w.value) == null ? void 0 : X.split("/").shift()));
|
|
14672
14672
|
const Te = (de = w.value) == null ? void 0 : de.split(",");
|
|
14673
|
-
!Te.includes((pe =
|
|
14674
|
-
message: `不允许的文件格式(${
|
|
14673
|
+
!Te.includes((pe = C == null ? void 0 : C.raw) == null ? void 0 : pe.type) && !Te.includes(`.${C.name.split(".").pop()}`) && !me && (Ti({
|
|
14674
|
+
message: `不允许的文件格式(${C.name}),请重新选择`,
|
|
14675
14675
|
type: "warning",
|
|
14676
14676
|
showClose: !0,
|
|
14677
14677
|
duration: 5e3
|
|
@@ -14679,70 +14679,74 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14679
14679
|
e.value.pop();
|
|
14680
14680
|
}));
|
|
14681
14681
|
}
|
|
14682
|
-
}, T = () => !1, P = (
|
|
14683
|
-
var
|
|
14684
|
-
|
|
14685
|
-
}, L = (
|
|
14686
|
-
var
|
|
14687
|
-
|
|
14682
|
+
}, T = () => !1, P = (C, F) => {
|
|
14683
|
+
var K, S;
|
|
14684
|
+
C.status = "ready", F !== void 0 && g.value.splice(F, 1), (K = d.value) == null || K.handleStart(C.raw), (S = d.value) == null || S.submit();
|
|
14685
|
+
}, L = (C, F) => {
|
|
14686
|
+
var K;
|
|
14687
|
+
C.splice(n.limit === 1 ? 1 : n.limit), C.forEach((S) => {
|
|
14688
14688
|
var I;
|
|
14689
|
-
(I = d.value) == null || I.handleStart(
|
|
14690
|
-
}), (
|
|
14689
|
+
(I = d.value) == null || I.handleStart(S);
|
|
14690
|
+
}), (K = d.value) == null || K.submit(), Ti({
|
|
14691
14691
|
message: (n == null ? void 0 : n.limitText) || `最大可上传${n.limit}个文件,已忽略超出文件`,
|
|
14692
14692
|
type: "warning",
|
|
14693
14693
|
showClose: !0,
|
|
14694
14694
|
duration: 5e3
|
|
14695
|
-
}), t("exceed",
|
|
14696
|
-
},
|
|
14697
|
-
|
|
14698
|
-
},
|
|
14699
|
-
g.value.push(
|
|
14700
|
-
}, ee = (
|
|
14701
|
-
var
|
|
14695
|
+
}), t("exceed", C);
|
|
14696
|
+
}, H = (C, F, K) => {
|
|
14697
|
+
C.success ? t("success", C, F, K) : (t("error", C, F, K), ne(F), g.value.push(F));
|
|
14698
|
+
}, U = (C, F, K) => {
|
|
14699
|
+
g.value.push(F), t("error", C, F, K);
|
|
14700
|
+
}, ee = (C) => {
|
|
14701
|
+
var F, K;
|
|
14702
14702
|
v.value = {
|
|
14703
|
-
...
|
|
14704
|
-
name:
|
|
14705
|
-
url:
|
|
14703
|
+
...C,
|
|
14704
|
+
name: C[r.name],
|
|
14705
|
+
url: Ot(
|
|
14706
14706
|
o.value,
|
|
14707
|
-
|
|
14707
|
+
C[r.url] || ((K = (F = C == null ? void 0 : C.response) == null ? void 0 : F.data) == null ? void 0 : K.id)
|
|
14708
14708
|
)
|
|
14709
14709
|
}, n.isOnlyOfficePreview && (m.value = !0), t("handPreview", v.value);
|
|
14710
|
-
}, q = (
|
|
14711
|
-
|
|
14712
|
-
|
|
14713
|
-
|
|
14710
|
+
}, q = (C) => {
|
|
14711
|
+
var F, K, S, I;
|
|
14712
|
+
ql.downloadFile(
|
|
14713
|
+
Ot(
|
|
14714
|
+
o.value,
|
|
14715
|
+
C[r.url] || ((K = (F = C == null ? void 0 : C.response) == null ? void 0 : F.data) == null ? void 0 : K.id)
|
|
14716
|
+
),
|
|
14717
|
+
C[r.name] || ((I = (S = C == null ? void 0 : C.response) == null ? void 0 : S.data) == null ? void 0 : I[r.name])
|
|
14714
14718
|
);
|
|
14715
|
-
},
|
|
14716
|
-
var
|
|
14717
|
-
(
|
|
14719
|
+
}, j = (C, F = !1) => {
|
|
14720
|
+
var K;
|
|
14721
|
+
(K = d.value) == null || K.abort(C);
|
|
14718
14722
|
}, M = {
|
|
14719
14723
|
Authorization: "Bearer iking",
|
|
14720
14724
|
"X-Tenant": "sys",
|
|
14721
14725
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
14722
|
-
}, ne = (
|
|
14723
|
-
var
|
|
14726
|
+
}, ne = (C) => {
|
|
14727
|
+
var F, K, S, I, G;
|
|
14724
14728
|
try {
|
|
14725
|
-
|
|
14726
|
-
fileUrl: ((
|
|
14729
|
+
C.status !== "success" && j(C), (F = d.value) == null || F.handleRemove(C), e.value = e.value.filter((X) => X.uid !== C.uid), t("delete", C), n.trueDelete && Gl.post(u.value.replace("/oss/upload", "/oss/delete"), {
|
|
14730
|
+
fileUrl: ((S = (K = C == null ? void 0 : C.response) == null ? void 0 : K.data) == null ? void 0 : S.id) || ((I = C == null ? void 0 : C.data) == null ? void 0 : I.id) || (C == null ? void 0 : C.id) || C[r.url]
|
|
14727
14731
|
}, {
|
|
14728
14732
|
headers: M
|
|
14729
14733
|
});
|
|
14730
14734
|
} catch (X) {
|
|
14731
|
-
(G = d.value) == null || G.handleRemove(
|
|
14735
|
+
(G = d.value) == null || G.handleRemove(C), e.value = e.value.filter((de) => de.uid !== C.uid), t("delete", C), console.error(X);
|
|
14732
14736
|
}
|
|
14733
|
-
}, ce = (
|
|
14734
|
-
t("progress",
|
|
14735
|
-
}, be = (
|
|
14736
|
-
g.value.splice(
|
|
14737
|
+
}, ce = (C, F, K) => {
|
|
14738
|
+
t("progress", C, F, K), C.percent >= 100 && t("progressEnd", C, F, K);
|
|
14739
|
+
}, be = (C, F) => {
|
|
14740
|
+
g.value.splice(F, 1);
|
|
14737
14741
|
}, Ve = le(
|
|
14738
14742
|
() => e.value.length >= n.limit || n.disabled
|
|
14739
|
-
), qe = (
|
|
14740
|
-
var
|
|
14741
|
-
const
|
|
14742
|
-
return c.includes(
|
|
14743
|
+
), qe = (C) => {
|
|
14744
|
+
var K, S, I;
|
|
14745
|
+
const F = ((S = (K = C == null ? void 0 : C.response) == null ? void 0 : K.data) == null ? void 0 : S[r.suffix]) || ((I = C == null ? void 0 : C.data) == null ? void 0 : I[r.suffix]) || (C == null ? void 0 : C[r.suffix]);
|
|
14746
|
+
return c.includes(F);
|
|
14743
14747
|
};
|
|
14744
|
-
return (
|
|
14745
|
-
var
|
|
14748
|
+
return (C, F) => {
|
|
14749
|
+
var K;
|
|
14746
14750
|
return E(), D(
|
|
14747
14751
|
De,
|
|
14748
14752
|
null,
|
|
@@ -14751,14 +14755,14 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14751
14755
|
De,
|
|
14752
14756
|
{ key: 0 },
|
|
14753
14757
|
[
|
|
14754
|
-
a.type === "button" ? (E(), oe(
|
|
14758
|
+
a.type === "button" ? (E(), oe(k(Ta), ei({
|
|
14755
14759
|
key: 0,
|
|
14756
14760
|
class: "ik-file-upload"
|
|
14757
|
-
},
|
|
14761
|
+
}, C.$attrs, {
|
|
14758
14762
|
accept: a.accept,
|
|
14759
|
-
action:
|
|
14763
|
+
action: k(u),
|
|
14760
14764
|
"file-list": e.value,
|
|
14761
|
-
"onUpdate:fileList":
|
|
14765
|
+
"onUpdate:fileList": F[0] || (F[0] = (S) => e.value = S),
|
|
14762
14766
|
ref_key: "refUpload",
|
|
14763
14767
|
ref: d,
|
|
14764
14768
|
"auto-upload": !0,
|
|
@@ -14770,11 +14774,11 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14770
14774
|
headers: a.headers,
|
|
14771
14775
|
limit: a.limit,
|
|
14772
14776
|
"on-progress": ce,
|
|
14773
|
-
"on-success":
|
|
14774
|
-
"on-error":
|
|
14777
|
+
"on-success": H,
|
|
14778
|
+
"on-error": U
|
|
14775
14779
|
}), {
|
|
14776
14780
|
trigger: J(() => [
|
|
14777
|
-
|
|
14781
|
+
C.$slots.trigger ? Le(C.$slots, "trigger", { key: 0 }, void 0, !0) : (E(), oe(k(zl), {
|
|
14778
14782
|
key: 1,
|
|
14779
14783
|
disabled: Ve.value
|
|
14780
14784
|
}, yu({
|
|
@@ -14791,7 +14795,7 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14791
14795
|
a.showIcon ? {
|
|
14792
14796
|
name: "icon",
|
|
14793
14797
|
fn: J(() => [
|
|
14794
|
-
W(
|
|
14798
|
+
W(k(Se), {
|
|
14795
14799
|
name: "iksvg_daoru",
|
|
14796
14800
|
disabled: Ve.value
|
|
14797
14801
|
}, null, 8, ["disabled"])
|
|
@@ -14800,16 +14804,16 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14800
14804
|
} : void 0
|
|
14801
14805
|
]), 1032, ["disabled"]))
|
|
14802
14806
|
]),
|
|
14803
|
-
file: J(({ file:
|
|
14807
|
+
file: J(({ file: S }) => [
|
|
14804
14808
|
x("div", Yg, [
|
|
14805
14809
|
x("div", Xg, [
|
|
14806
|
-
!
|
|
14810
|
+
!C.$slots.fileIcon && (!a.customIconData[k(he)(S, r)] || !a.customIconData[k(he)(S, r)][a.customIconFields.icon]) ? (E(), oe(k(Pa), {
|
|
14807
14811
|
key: 0,
|
|
14808
|
-
type:
|
|
14809
|
-
}, null, 8, ["type"])) : !
|
|
14810
|
-
a.customIconData[
|
|
14812
|
+
type: k(he)(S, r)
|
|
14813
|
+
}, null, 8, ["type"])) : !C.$slots.fileIcon && a.customIconData[k(he)(S, r)] && a.customIconData[k(he)(S, r)][a.customIconFields.icon] ? (E(), D("div", Zg, [
|
|
14814
|
+
a.customIconData[k(he)(S, r)][a.customIconFields.type] === "img" ? (E(), D("img", {
|
|
14811
14815
|
key: 0,
|
|
14812
|
-
src: a.customIconData[
|
|
14816
|
+
src: a.customIconData[k(he)(S, r)][a.customIconFields.icon],
|
|
14813
14817
|
alt: "",
|
|
14814
14818
|
class: "file-img-icon"
|
|
14815
14819
|
}, null, 8, Jg)) : (E(), D(
|
|
@@ -14817,7 +14821,7 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14817
14821
|
{
|
|
14818
14822
|
key: 1,
|
|
14819
14823
|
class: ue([
|
|
14820
|
-
a.customIconData[
|
|
14824
|
+
a.customIconData[k(he)(S, r)][a.customIconFields.icon],
|
|
14821
14825
|
"file-icon-size"
|
|
14822
14826
|
])
|
|
14823
14827
|
},
|
|
@@ -14827,64 +14831,64 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14827
14831
|
))
|
|
14828
14832
|
])) : Q("v-if", !0),
|
|
14829
14833
|
x("div", Qg, [
|
|
14830
|
-
Le(
|
|
14834
|
+
Le(C.$slots, "fileIcon", { file: S }, void 0, !0)
|
|
14831
14835
|
]),
|
|
14832
14836
|
x("div", ev, [
|
|
14833
14837
|
x("p", tv, [
|
|
14834
14838
|
x(
|
|
14835
14839
|
"p",
|
|
14836
14840
|
iv,
|
|
14837
|
-
Ae(
|
|
14841
|
+
Ae(S[r.name] || S.name),
|
|
14838
14842
|
1
|
|
14839
14843
|
/* TEXT */
|
|
14840
14844
|
),
|
|
14841
|
-
|
|
14845
|
+
S.percentage && S.status === "uploading" ? (E(), D(
|
|
14842
14846
|
"span",
|
|
14843
14847
|
nv,
|
|
14844
|
-
"(" + Ae(
|
|
14848
|
+
"(" + Ae(S.percentage) + "%)",
|
|
14845
14849
|
1
|
|
14846
14850
|
/* TEXT */
|
|
14847
14851
|
)) : Q("v-if", !0)
|
|
14848
14852
|
]),
|
|
14849
|
-
|
|
14853
|
+
S.status === "success" ? (E(), D(
|
|
14850
14854
|
"p",
|
|
14851
14855
|
rv,
|
|
14852
|
-
Ae(
|
|
14856
|
+
Ae(k(Ai)((S[r.size] || S.size) / 1024 / 1024)) + "MB ",
|
|
14853
14857
|
1
|
|
14854
14858
|
/* TEXT */
|
|
14855
14859
|
)) : Q("v-if", !0),
|
|
14856
|
-
|
|
14860
|
+
S.percentage && S.status === "uploading" ? (E(), oe(k(Aa), {
|
|
14857
14861
|
key: 1,
|
|
14858
14862
|
"text-inside": "",
|
|
14859
|
-
percentage:
|
|
14863
|
+
percentage: S.percentage,
|
|
14860
14864
|
color: "var(--el-color-primary)",
|
|
14861
14865
|
"show-text": !1
|
|
14862
14866
|
}, null, 8, ["percentage"])) : Q("v-if", !0)
|
|
14863
14867
|
])
|
|
14864
14868
|
]),
|
|
14865
14869
|
x("div", av, [
|
|
14866
|
-
|
|
14870
|
+
S.status === "success" ? (E(), D(
|
|
14867
14871
|
De,
|
|
14868
14872
|
{ key: 0 },
|
|
14869
14873
|
[
|
|
14870
|
-
qe(
|
|
14874
|
+
qe(S) ? (E(), oe(k(Se), {
|
|
14871
14875
|
key: 0,
|
|
14872
|
-
onClick: (I) => ee(
|
|
14876
|
+
onClick: (I) => ee(S),
|
|
14873
14877
|
name: "iksvg_yulan",
|
|
14874
14878
|
title: "预览",
|
|
14875
14879
|
bg: "",
|
|
14876
14880
|
size: "default"
|
|
14877
14881
|
}, null, 8, ["onClick"])) : Q("v-if", !0),
|
|
14878
|
-
a.isShowDownLoad ? (E(), oe(
|
|
14882
|
+
a.isShowDownLoad ? (E(), oe(k(Se), {
|
|
14879
14883
|
key: 1,
|
|
14880
14884
|
name: "iksvg_daochu",
|
|
14881
|
-
onClick: bt((I) => q(
|
|
14885
|
+
onClick: bt((I) => q(S), ["stop"]),
|
|
14882
14886
|
bg: "",
|
|
14883
14887
|
size: "default",
|
|
14884
14888
|
title: "下载"
|
|
14885
14889
|
}, null, 8, ["onClick"])) : Q("v-if", !0),
|
|
14886
|
-
W(
|
|
14887
|
-
onClick: bt((I) => ne(
|
|
14890
|
+
W(k(Se), {
|
|
14891
|
+
onClick: bt((I) => ne(S), ["stop"]),
|
|
14888
14892
|
error: "",
|
|
14889
14893
|
name: "iksvg_shanchu",
|
|
14890
14894
|
title: "删除",
|
|
@@ -14894,9 +14898,9 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14894
14898
|
],
|
|
14895
14899
|
64
|
|
14896
14900
|
/* STABLE_FRAGMENT */
|
|
14897
|
-
)) : (E(), oe(
|
|
14901
|
+
)) : (E(), oe(k(Se), {
|
|
14898
14902
|
key: 1,
|
|
14899
|
-
onClick: bt((I) => ne(
|
|
14903
|
+
onClick: bt((I) => ne(S), ["stop"]),
|
|
14900
14904
|
error: "",
|
|
14901
14905
|
name: "iksvg_guanbi",
|
|
14902
14906
|
size: "default",
|
|
@@ -14907,21 +14911,21 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14907
14911
|
])
|
|
14908
14912
|
]),
|
|
14909
14913
|
default: J(() => {
|
|
14910
|
-
var
|
|
14914
|
+
var S;
|
|
14911
14915
|
return [
|
|
14912
|
-
!a.preview && a.tip ? (E(), oe(
|
|
14916
|
+
!a.preview && a.tip ? (E(), oe(k(Sa), {
|
|
14913
14917
|
key: 0,
|
|
14914
14918
|
effect: "dark",
|
|
14915
14919
|
content: n.tipText || "",
|
|
14916
14920
|
"popper-class": "_ik_web_ui_file-help-tooltip"
|
|
14917
14921
|
}, {
|
|
14918
14922
|
default: J(() => [
|
|
14919
|
-
W(
|
|
14923
|
+
W(k(Ee), {
|
|
14920
14924
|
size: 23,
|
|
14921
14925
|
class: "_ik_web_ui_file_help_icon"
|
|
14922
14926
|
}, {
|
|
14923
14927
|
default: J(() => [
|
|
14924
|
-
W(
|
|
14928
|
+
W(k(xa))
|
|
14925
14929
|
]),
|
|
14926
14930
|
_: 1
|
|
14927
14931
|
/* STABLE */
|
|
@@ -14930,7 +14934,7 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14930
14934
|
_: 1
|
|
14931
14935
|
/* STABLE */
|
|
14932
14936
|
}, 8, ["content"])) : Q("v-if", !0),
|
|
14933
|
-
(
|
|
14937
|
+
(S = g.value) != null && S.length ? (E(!0), D(
|
|
14934
14938
|
De,
|
|
14935
14939
|
{ key: 1 },
|
|
14936
14940
|
Cu(g.value, (I, G) => (E(), D("div", {
|
|
@@ -14938,13 +14942,13 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14938
14942
|
key: I.uid
|
|
14939
14943
|
}, [
|
|
14940
14944
|
x("div", sv, [
|
|
14941
|
-
W(
|
|
14945
|
+
W(k(Ee), {
|
|
14942
14946
|
size: 32,
|
|
14943
14947
|
class: "info",
|
|
14944
14948
|
style: { "vertical-align": "middle" }
|
|
14945
14949
|
}, {
|
|
14946
14950
|
default: J(() => [
|
|
14947
|
-
W(
|
|
14951
|
+
W(k(hc))
|
|
14948
14952
|
]),
|
|
14949
14953
|
_: 1
|
|
14950
14954
|
/* STABLE */
|
|
@@ -14960,21 +14964,21 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14960
14964
|
x(
|
|
14961
14965
|
"p",
|
|
14962
14966
|
lv,
|
|
14963
|
-
Ae(
|
|
14967
|
+
Ae(k(Ai)(I.size / 1024 / 1024)) + "MB ",
|
|
14964
14968
|
1
|
|
14965
14969
|
/* TEXT */
|
|
14966
14970
|
)
|
|
14967
14971
|
])
|
|
14968
14972
|
]),
|
|
14969
14973
|
x("div", cv, [
|
|
14970
|
-
W(
|
|
14974
|
+
W(k(Se), {
|
|
14971
14975
|
onClick: bt((X) => P(I, G), ["stop"]),
|
|
14972
14976
|
name: "iksvg_zhongzhi",
|
|
14973
14977
|
title: "重新上传",
|
|
14974
14978
|
bg: "",
|
|
14975
14979
|
size: "default"
|
|
14976
14980
|
}, null, 8, ["onClick"]),
|
|
14977
|
-
W(
|
|
14981
|
+
W(k(Se), {
|
|
14978
14982
|
onClick: bt((X) => be(I, G), ["stop"]),
|
|
14979
14983
|
error: "",
|
|
14980
14984
|
name: "iksvg_shanchu",
|
|
@@ -14991,15 +14995,15 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
14991
14995
|
}),
|
|
14992
14996
|
_: 3
|
|
14993
14997
|
/* FORWARDED */
|
|
14994
|
-
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (E(), oe(
|
|
14998
|
+
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (E(), oe(k(Ta), ei({
|
|
14995
14999
|
key: 1,
|
|
14996
15000
|
"file-list": e.value,
|
|
14997
|
-
"onUpdate:fileList":
|
|
15001
|
+
"onUpdate:fileList": F[1] || (F[1] = (S) => e.value = S),
|
|
14998
15002
|
class: ["ik-file-pload-card", { plain: a.plain }],
|
|
14999
15003
|
"auto-upload": !0
|
|
15000
|
-
},
|
|
15004
|
+
}, C.$attrs, {
|
|
15001
15005
|
accept: a.accept,
|
|
15002
|
-
action:
|
|
15006
|
+
action: k(u),
|
|
15003
15007
|
disabled: Ve.value,
|
|
15004
15008
|
ref_key: "refUpload",
|
|
15005
15009
|
ref: d,
|
|
@@ -15009,20 +15013,20 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
15009
15013
|
multiple: a.multiple,
|
|
15010
15014
|
headers: a.headers,
|
|
15011
15015
|
limit: a.limit,
|
|
15012
|
-
"on-success":
|
|
15013
|
-
"on-error":
|
|
15016
|
+
"on-success": H,
|
|
15017
|
+
"on-error": U,
|
|
15014
15018
|
"on-change": b
|
|
15015
15019
|
}), {
|
|
15016
|
-
file: J(({ file:
|
|
15020
|
+
file: J(({ file: S }) => [
|
|
15017
15021
|
x("div", gv, [
|
|
15018
15022
|
x("div", vv, [
|
|
15019
|
-
!
|
|
15023
|
+
!C.$slots.fileIcon && (!a.customIconData[k(he)(S, r)] || !a.customIconData[k(he)(S, r)][a.customIconFields.icon]) ? (E(), oe(k(Pa), {
|
|
15020
15024
|
key: 0,
|
|
15021
|
-
type:
|
|
15022
|
-
}, null, 8, ["type"])) : !
|
|
15023
|
-
a.customIconData[
|
|
15025
|
+
type: k(he)(S, r)
|
|
15026
|
+
}, null, 8, ["type"])) : !C.$slots.fileIcon && a.customIconData[k(he)(S, r)] && a.customIconData[k(he)(S, r)][a.customIconFields.icon] ? (E(), D("div", pv, [
|
|
15027
|
+
a.customIconData[k(he)(S, r)][a.customIconFields.type] === "img" ? (E(), D("img", {
|
|
15024
15028
|
key: 0,
|
|
15025
|
-
src: a.customIconData[
|
|
15029
|
+
src: a.customIconData[k(he)(S, r)][a.customIconFields.icon],
|
|
15026
15030
|
alt: "",
|
|
15027
15031
|
class: "file-img-icon"
|
|
15028
15032
|
}, null, 8, mv)) : (E(), D(
|
|
@@ -15030,7 +15034,7 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
15030
15034
|
{
|
|
15031
15035
|
key: 1,
|
|
15032
15036
|
class: ue([
|
|
15033
|
-
a.customIconData[
|
|
15037
|
+
a.customIconData[k(he)(S, r)][a.customIconFields.icon],
|
|
15034
15038
|
"file-icon-size"
|
|
15035
15039
|
])
|
|
15036
15040
|
},
|
|
@@ -15040,34 +15044,34 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
15040
15044
|
))
|
|
15041
15045
|
])) : Q("v-if", !0),
|
|
15042
15046
|
x("div", yv, [
|
|
15043
|
-
Le(
|
|
15047
|
+
Le(C.$slots, "fileIcon", { file: S }, void 0, !0)
|
|
15044
15048
|
]),
|
|
15045
15049
|
x("div", _v, [
|
|
15046
15050
|
x("p", bv, [
|
|
15047
15051
|
kt(
|
|
15048
|
-
Ae(
|
|
15052
|
+
Ae(S[r.name] || S.name) + " ",
|
|
15049
15053
|
1
|
|
15050
15054
|
/* TEXT */
|
|
15051
15055
|
),
|
|
15052
|
-
|
|
15056
|
+
S.percentage && S.status === "uploading" ? (E(), D(
|
|
15053
15057
|
"span",
|
|
15054
15058
|
Cv,
|
|
15055
|
-
"(" + Ae(
|
|
15059
|
+
"(" + Ae(S.percentage) + "%)",
|
|
15056
15060
|
1
|
|
15057
15061
|
/* TEXT */
|
|
15058
15062
|
)) : Q("v-if", !0)
|
|
15059
15063
|
]),
|
|
15060
|
-
|
|
15064
|
+
S.status === "success" ? (E(), D(
|
|
15061
15065
|
"p",
|
|
15062
15066
|
kv,
|
|
15063
|
-
Ae(
|
|
15067
|
+
Ae(k(Ai)((S[r.size] || S.size) / 1024 / 1024)) + "MB ",
|
|
15064
15068
|
1
|
|
15065
15069
|
/* TEXT */
|
|
15066
15070
|
)) : Q("v-if", !0),
|
|
15067
|
-
|
|
15071
|
+
S.percentage && S.status === "uploading" ? (E(), oe(k(Aa), {
|
|
15068
15072
|
key: 1,
|
|
15069
15073
|
"text-inside": "",
|
|
15070
|
-
percentage:
|
|
15074
|
+
percentage: S.percentage,
|
|
15071
15075
|
color: "var(--el-color-primary)",
|
|
15072
15076
|
"show-text": !1
|
|
15073
15077
|
}, null, 8, ["percentage"])) : Q("v-if", !0)
|
|
@@ -15077,8 +15081,8 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
15077
15081
|
De,
|
|
15078
15082
|
{ key: 1 },
|
|
15079
15083
|
[
|
|
15080
|
-
(a.preview ||
|
|
15081
|
-
|
|
15084
|
+
(a.preview || S.percentage === 100) && qe(S) ? (E(), oe(
|
|
15085
|
+
k(Ee),
|
|
15082
15086
|
{
|
|
15083
15087
|
key: 0,
|
|
15084
15088
|
title: "预览",
|
|
@@ -15086,8 +15090,8 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
15086
15090
|
},
|
|
15087
15091
|
{
|
|
15088
15092
|
default: J(() => [
|
|
15089
|
-
W(
|
|
15090
|
-
onClick: (I) => ee(
|
|
15093
|
+
W(k(cc), {
|
|
15094
|
+
onClick: (I) => ee(S)
|
|
15091
15095
|
}, null, 8, ["onClick"])
|
|
15092
15096
|
]),
|
|
15093
15097
|
_: 2
|
|
@@ -15097,15 +15101,15 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
15097
15101
|
/* DYNAMIC_SLOTS */
|
|
15098
15102
|
)) : Q("v-if", !0),
|
|
15099
15103
|
W(
|
|
15100
|
-
|
|
15104
|
+
k(Ee),
|
|
15101
15105
|
{
|
|
15102
15106
|
title: "下载",
|
|
15103
15107
|
class: "primary"
|
|
15104
15108
|
},
|
|
15105
15109
|
{
|
|
15106
15110
|
default: J(() => [
|
|
15107
|
-
W(
|
|
15108
|
-
onClick: (I) => q(
|
|
15111
|
+
W(k(Ql), {
|
|
15112
|
+
onClick: (I) => q(S)
|
|
15109
15113
|
}, null, 8, ["onClick"])
|
|
15110
15114
|
]),
|
|
15111
15115
|
_: 2
|
|
@@ -15118,20 +15122,20 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
15118
15122
|
64
|
|
15119
15123
|
/* STABLE_FRAGMENT */
|
|
15120
15124
|
)) : (E(), D("div", wv, [
|
|
15121
|
-
|
|
15125
|
+
S.status === "success" ? (E(), D(
|
|
15122
15126
|
De,
|
|
15123
15127
|
{ key: 0 },
|
|
15124
15128
|
[
|
|
15125
|
-
qe(
|
|
15129
|
+
qe(S) ? (E(), oe(k(Se), {
|
|
15126
15130
|
key: 0,
|
|
15127
|
-
onClick: (I) => ee(
|
|
15131
|
+
onClick: (I) => ee(S),
|
|
15128
15132
|
name: "iksvg_yulan",
|
|
15129
15133
|
title: "预览",
|
|
15130
15134
|
bg: "",
|
|
15131
15135
|
size: "default"
|
|
15132
15136
|
}, null, 8, ["onClick"])) : Q("v-if", !0),
|
|
15133
|
-
W(
|
|
15134
|
-
onClick: (I) => ne(
|
|
15137
|
+
W(k(Se), {
|
|
15138
|
+
onClick: (I) => ne(S),
|
|
15135
15139
|
error: "",
|
|
15136
15140
|
name: "iksvg_shanchu",
|
|
15137
15141
|
title: "删除",
|
|
@@ -15141,9 +15145,9 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
15141
15145
|
],
|
|
15142
15146
|
64
|
|
15143
15147
|
/* STABLE_FRAGMENT */
|
|
15144
|
-
)) : (E(), oe(
|
|
15148
|
+
)) : (E(), oe(k(Se), {
|
|
15145
15149
|
key: 1,
|
|
15146
|
-
onClick: (I) => ne(
|
|
15150
|
+
onClick: (I) => ne(S),
|
|
15147
15151
|
error: "",
|
|
15148
15152
|
name: "iksvg_guanbi",
|
|
15149
15153
|
size: "default",
|
|
@@ -15156,8 +15160,8 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
15156
15160
|
default: J(() => [
|
|
15157
15161
|
x("div", fv, [
|
|
15158
15162
|
x("div", hv, [
|
|
15159
|
-
a.imageMode ? Le(
|
|
15160
|
-
|
|
15163
|
+
a.imageMode ? Le(C.$slots, "image", { key: 0 }, () => [
|
|
15164
|
+
F[3] || (F[3] = x(
|
|
15161
15165
|
"img",
|
|
15162
15166
|
{
|
|
15163
15167
|
src: Wl,
|
|
@@ -15167,7 +15171,7 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
15167
15171
|
-1
|
|
15168
15172
|
/* CACHED */
|
|
15169
15173
|
))
|
|
15170
|
-
], !0) : a.showIcon ? (E(), oe(
|
|
15174
|
+
], !0) : a.showIcon ? (E(), oe(k(Se), {
|
|
15171
15175
|
key: 1,
|
|
15172
15176
|
name: "iksvg_img_shangchuanhetongfujianbeifen",
|
|
15173
15177
|
type: "primary",
|
|
@@ -15180,19 +15184,19 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
15180
15184
|
1
|
|
15181
15185
|
/* TEXT */
|
|
15182
15186
|
),
|
|
15183
|
-
!a.preview && a.tip && !
|
|
15187
|
+
!a.preview && a.tip && !C.$slots.tip ? (E(), oe(k(Sa), {
|
|
15184
15188
|
key: 0,
|
|
15185
15189
|
effect: "dark",
|
|
15186
15190
|
content: n.tipText || "",
|
|
15187
15191
|
"popper-class": "_ik_web_ui_file-help-tooltip"
|
|
15188
15192
|
}, {
|
|
15189
15193
|
default: J(() => [
|
|
15190
|
-
W(
|
|
15194
|
+
W(k(Ee), {
|
|
15191
15195
|
size: 23,
|
|
15192
15196
|
class: "_ik_web_ui_file_help_icon"
|
|
15193
15197
|
}, {
|
|
15194
15198
|
default: J(() => [
|
|
15195
|
-
W(
|
|
15199
|
+
W(k(xa))
|
|
15196
15200
|
]),
|
|
15197
15201
|
_: 1
|
|
15198
15202
|
/* STABLE */
|
|
@@ -15203,7 +15207,7 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
15203
15207
|
}, 8, ["content"])) : Q("v-if", !0)
|
|
15204
15208
|
])
|
|
15205
15209
|
]),
|
|
15206
|
-
W(
|
|
15210
|
+
W(k(Se), {
|
|
15207
15211
|
name: "iksvg_daoru",
|
|
15208
15212
|
bg: "",
|
|
15209
15213
|
size: 24,
|
|
@@ -15211,8 +15215,8 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
15211
15215
|
padding: "0"
|
|
15212
15216
|
})
|
|
15213
15217
|
]),
|
|
15214
|
-
|
|
15215
|
-
Le(
|
|
15218
|
+
C.$slots.tip ? (E(), D("div", dv, [
|
|
15219
|
+
Le(C.$slots, "tip", {}, void 0, !0)
|
|
15216
15220
|
])) : Q("v-if", !0)
|
|
15217
15221
|
]),
|
|
15218
15222
|
_: 3
|
|
@@ -15222,13 +15226,13 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
15222
15226
|
64
|
|
15223
15227
|
/* STABLE_FRAGMENT */
|
|
15224
15228
|
)),
|
|
15225
|
-
W(
|
|
15229
|
+
W(k(Mc), {
|
|
15226
15230
|
show: m.value,
|
|
15227
|
-
"onUpdate:show":
|
|
15228
|
-
loadUrl:
|
|
15231
|
+
"onUpdate:show": F[2] || (F[2] = (S) => m.value = S),
|
|
15232
|
+
loadUrl: k(o),
|
|
15229
15233
|
file: v.value,
|
|
15230
|
-
onlyofficeServer: ((
|
|
15231
|
-
onlyOfficeConfig:
|
|
15234
|
+
onlyofficeServer: ((K = k(l)) == null ? void 0 : K.serverUrl) || a.onlyofficeServer,
|
|
15235
|
+
onlyOfficeConfig: k(l) || a.onlyOfficeConfig
|
|
15232
15236
|
}, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig"])
|
|
15233
15237
|
],
|
|
15234
15238
|
64
|
|
@@ -15236,7 +15240,7 @@ const Gg = ["id"], Wg = /* @__PURE__ */ se({
|
|
|
15236
15240
|
);
|
|
15237
15241
|
};
|
|
15238
15242
|
}
|
|
15239
|
-
}), Sv = /* @__PURE__ */ hi(Tv, [["__scopeId", "data-v-
|
|
15243
|
+
}), Sv = /* @__PURE__ */ hi(Tv, [["__scopeId", "data-v-9fad287f"]]), Pv = Qe(Sv);
|
|
15240
15244
|
export {
|
|
15241
15245
|
Pv as IkUploadFile,
|
|
15242
15246
|
Pv as default
|